-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(theme): prepare Autocomplete Classic Theme (#361)
- Loading branch information
1 parent
f22a6c8
commit 8638a98
Showing
20 changed files
with
451 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
defaults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Component } from '../types/Component'; | ||
|
||
export const LoadingIcon: Component<{}, SVGSVGElement> = () => { | ||
const element = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); | ||
element.setAttribute('class', 'aa-LoadingIcon'); | ||
element.setAttribute('viewBox', '0 0 100 100'); | ||
element.setAttribute('width', '20'); | ||
element.setAttribute('height', '20'); | ||
|
||
element.innerHTML = `<circle | ||
cx="50" | ||
cy="50" | ||
fill="none" | ||
r="35" | ||
stroke="currentColor" | ||
stroke-dasharray="164.93361431346415 56.97787143782138" | ||
stroke-width="4" | ||
> | ||
<animateTransform | ||
attributeName="transform" | ||
type="rotate" | ||
repeatCount="indefinite" | ||
dur="1s" | ||
values="0 50 50;90 50 50;180 50 50;360 50 50" | ||
keyTimes="0;0.40;0.65;1" | ||
/> | ||
</circle>`; | ||
|
||
return element; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# @algolia/autocomplete-theme-classic | ||
|
||
Classic theme for Algolia Autocomplete. | ||
|
||
## Installation | ||
|
||
```sh | ||
yarn add @algolia/autocomplete-theme-classic@alpha | ||
# or | ||
npm install @algolia/autocomplete-theme-classic@alpha | ||
``` | ||
|
||
## Documentation | ||
|
||
[Read documentation →](https://algolia-autocomplete.netlify.app) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "@algolia/autocomplete-theme-classic", | ||
"description": "Classic theme for Algolia Autocomplete.", | ||
"version": "1.0.0-alpha.35", | ||
"license": "MIT", | ||
"homepage": "https://github.com/algolia/autocomplete.js", | ||
"repository": "algolia/autocomplete.js", | ||
"author": { | ||
"name": "Algolia, Inc.", | ||
"url": "https://www.algolia.com" | ||
}, | ||
"sideEffects": false, | ||
"files": [ | ||
"dist/" | ||
], | ||
"main": "dist/theme.css", | ||
"unpkg": "dist/theme.css", | ||
"jsdelivr": "dist/theme.css", | ||
"scripts": { | ||
"build:clean": "rm -rf ./dist", | ||
"build:css": "node ../../scripts/buildCss.mjs src/theme.scss dist/theme.css", | ||
"build": "yarn build:clean && yarn build:css", | ||
"on:change": "yarn build:css", | ||
"prepare": "yarn build:css", | ||
"watch": "watch \"yarn on:change\" --ignoreDirectoryPattern \"/dist/\"" | ||
} | ||
} |
Oops, something went wrong.