@julseb-lib/react 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +7 -0
- package/.prettierrc +5 -0
- package/README.md +1 -1
- package/eslint.config.js +177 -0
- package/index.html +14 -0
- package/package.json +41 -67
- package/plop/actions/index.ts +1 -0
- package/plop/actions/run-command.ts +21 -0
- package/plop/generators/component.ts +87 -0
- package/plop/generators/demo.ts +38 -0
- package/plop/generators/generator.ts +49 -0
- package/plop/generators/index.ts +6 -0
- package/plop/generators/preview.ts +58 -0
- package/plop/generators/subtype.ts +25 -0
- package/plop/partials/index.ts +2 -0
- package/plop/partials/kebab-name.ts +7 -0
- package/plop/partials/pascal-name.ts +7 -0
- package/plop/plopfile.ts +32 -0
- package/plop/templates/__preview__/preview-props.hbs +34 -0
- package/plop/templates/__preview__/preview.hbs +25 -0
- package/plop/templates/component/__preview__/preview.hbs +21 -0
- package/plop/templates/component/index.ts.hbs +1 -0
- package/plop/templates/component/types.ts.hbs +5 -0
- package/plop/templates/component/{{ pascalCase name }}.tsx.hbs +32 -0
- package/plop/templates/demo.hbs +9 -0
- package/plop/templates/generator.hbs +16 -0
- package/plop/templates/subtypes.hbs +3 -0
- package/plop/utils/addClosingBrackets.ts +13 -0
- package/plop/utils/addOpenBrackets.ts +13 -0
- package/plop/utils/all-components.ts +72 -0
- package/plop/utils/constants.ts +1 -0
- package/plop/utils/index.ts +5 -0
- package/plop/utils/surround-brackets.ts +12 -0
- package/public/favicon.svg +24 -0
- package/public/images/cover-img.avif +0 -0
- package/public/images/image-card.jpg +0 -0
- package/public/images/logo-fajny-css-white.svg +37 -0
- package/public/images/logo-fajny-css.svg +35 -0
- package/public/images/pic-avatar.jpg +0 -0
- package/public/images/slideshow-1.avif +0 -0
- package/public/images/slideshow-2.avif +0 -0
- package/public/images/slideshow-3.avif +0 -0
- package/public/images/slideshow-4.avif +0 -0
- package/public/vite.svg +1 -0
- package/src/App.tsx +6 -0
- package/src/components/ComponentPreview.tsx +46 -0
- package/src/components/GridItem.tsx +9 -0
- package/src/components/index.ts +4 -0
- package/src/components/layout/BasePage.tsx +27 -0
- package/src/components/layout/CoverLayout.tsx +97 -0
- package/src/components/layout/Nav.tsx +63 -0
- package/src/components/layout/Page.tsx +24 -0
- package/src/data/components.tsx +220 -0
- package/src/data/french-cities.ts +8683 -0
- package/src/data/index.ts +3 -0
- package/src/data/previews/styles/Colors.preview.tsx +94 -0
- package/src/data/previews/styles/Overlays.preview.tsx +48 -0
- package/src/data/previews/styles/Radiuses.preview.tsx +49 -0
- package/src/data/previews/styles/Shadows.preview.tsx +49 -0
- package/src/data/previews/styles/Spacers.preview.tsx +50 -0
- package/src/data/previews/styles/Theme.preview.tsx +32 -0
- package/src/data/site-data.ts +4 -0
- package/src/data/styles/colors.ts +1985 -0
- package/src/data/styles/index.ts +5 -0
- package/src/data/styles/overlays.ts +47 -0
- package/src/data/styles/radiuses.ts +68 -0
- package/src/data/styles/shadows.ts +61 -0
- package/src/data/styles/spacers.ts +54 -0
- package/src/data/types/index.ts +1 -0
- package/src/data/types/variables.ts +7 -0
- package/src/lib/Variables.ts +201 -0
- package/src/lib/components/Accordion/Accordion.tsx +73 -0
- package/src/lib/components/Accordion/AccordionContent.tsx +55 -0
- package/src/lib/components/Accordion/AccordionItem.tsx +66 -0
- package/src/lib/components/Accordion/AccordionTitle.tsx +79 -0
- package/src/lib/components/Accordion/__preview__/Accordion.preview.tsx +107 -0
- package/src/lib/components/Accordion/subtypes.ts +26 -0
- package/src/lib/components/Accordion/types.ts +37 -0
- package/src/lib/components/Alert/Alert.tsx +57 -0
- package/src/lib/components/Alert/__preview__/Alert.preview.tsx +72 -0
- package/src/lib/components/Alert/types.ts +8 -0
- package/src/lib/components/Aside/Aside.tsx +58 -0
- package/src/lib/components/Aside/__preview__/Aside.preview.tsx +59 -0
- package/src/lib/components/Aside/types.ts +6 -0
- package/src/lib/components/Autocomplete/Autocomplete.tsx +222 -0
- package/src/lib/components/Autocomplete/__preview__/Autocomplete.preview.tsx +181 -0
- package/src/lib/components/Autocomplete/__preview__/Preview.tsx +17 -0
- package/src/lib/components/Autocomplete/types.ts +35 -0
- package/src/lib/components/Avatar/Avatar.tsx +97 -0
- package/src/lib/components/Avatar/AvatarFn.tsx +44 -0
- package/src/lib/components/Avatar/__preview__/Avatar.preview.tsx +107 -0
- package/src/lib/components/Avatar/types.ts +37 -0
- package/src/lib/components/BackToTop/BackToTop.tsx +95 -0
- package/src/lib/components/BackToTop/__preview__/BackToTop.preview.tsx +115 -0
- package/src/lib/components/BackToTop/types.ts +9 -0
- package/src/lib/components/Badge/Badge.tsx +61 -0
- package/src/lib/components/Badge/__preview__/Badge.preview.tsx +84 -0
- package/src/lib/components/Badge/types.ts +7 -0
- package/src/lib/components/Breadcrumbs/Breadcrumbs.tsx +72 -0
- package/src/lib/components/Breadcrumbs/__preview__/Breadcrumbs.preview.tsx +55 -0
- package/src/lib/components/Breadcrumbs/types.ts +5 -0
- package/src/lib/components/Burger/Burger.tsx +103 -0
- package/src/lib/components/Burger/__preview__/Burger.preview.tsx +55 -0
- package/src/lib/components/Burger/__preview__/Preview.tsx +11 -0
- package/src/lib/components/Burger/types.ts +11 -0
- package/src/lib/components/Button/Button.tsx +108 -0
- package/src/lib/components/Button/__preview__/Button.preview.tsx +182 -0
- package/src/lib/components/Button/types.ts +30 -0
- package/src/lib/components/ButtonGroup/ButtonGroup.tsx +124 -0
- package/src/lib/components/ButtonGroup/__preview__/ButtonGroup.preview.tsx +101 -0
- package/src/lib/components/ButtonGroup/types.ts +28 -0
- package/src/lib/components/ButtonIcon/ButtonFn.tsx +74 -0
- package/src/lib/components/ButtonIcon/ButtonIcon.tsx +127 -0
- package/src/lib/components/ButtonIcon/__preview__/ButtonIcon.preview.tsx +239 -0
- package/src/lib/components/ButtonIcon/types.ts +52 -0
- package/src/lib/components/CodeContainer/CodeContainer.tsx +108 -0
- package/src/lib/components/CodeContainer/__preview__/CodeContainer.preview.tsx +280 -0
- package/src/lib/components/CodeContainer/types.ts +230 -0
- package/src/lib/components/Cover/Cover.tsx +91 -0
- package/src/lib/components/Cover/__preview__/Cover.preview.tsx +154 -0
- package/src/lib/components/Cover/types.ts +10 -0
- package/src/lib/components/DragList/DragList.tsx +111 -0
- package/src/lib/components/DragList/DragListItem.tsx +113 -0
- package/src/lib/components/DragList/__preview__/Draglist.preview.tsx +156 -0
- package/src/lib/components/DragList/types.ts +55 -0
- package/src/lib/components/Drawer/Drawer.tsx +145 -0
- package/src/lib/components/Drawer/__preview__/Drawer.preview.tsx +159 -0
- package/src/lib/components/Drawer/types.ts +24 -0
- package/src/lib/components/Dropdown/Dropdown.tsx +89 -0
- package/src/lib/components/Dropdown/DropdownItem.tsx +49 -0
- package/src/lib/components/Dropdown/__preview__/Dropdown.preview.tsx +83 -0
- package/src/lib/components/Dropdown/__preview__/Preview.tsx +52 -0
- package/src/lib/components/Dropdown/index.ts +2 -0
- package/src/lib/components/Dropdown/types.ts +35 -0
- package/src/lib/components/Fade/Fade.tsx +62 -0
- package/src/lib/components/Fade/__preview__/Fade.preview.tsx +33 -0
- package/src/lib/components/Fieldset/Fieldset.tsx +85 -0
- package/src/lib/components/Fieldset/__preview__/Fieldset.preview.tsx +99 -0
- package/src/lib/components/Fieldset/__preview__/Preview.tsx +70 -0
- package/src/lib/components/Fieldset/types.ts +15 -0
- package/src/lib/components/Flexbox/Flexbox.tsx +99 -0
- package/src/lib/components/Flexbox/__preview__/Flexbox.preview.tsx +155 -0
- package/src/lib/components/Flexbox/types.ts +23 -0
- package/src/lib/components/Form/Form.tsx +83 -0
- package/src/lib/components/Form/__preview__/Form.preview.tsx +124 -0
- package/src/lib/components/Form/types.ts +32 -0
- package/src/lib/components/Grid/Grid.tsx +98 -0
- package/src/lib/components/Grid/__preview__/Grid.preview.tsx +146 -0
- package/src/lib/components/Grid/types.ts +20 -0
- package/src/lib/components/Header/Header.tsx +232 -0
- package/src/lib/components/Header/HeaderSearch.tsx +50 -0
- package/src/lib/components/Header/__preview__/Header.preview.tsx +33 -0
- package/src/lib/components/Header/subtypes.ts +28 -0
- package/src/lib/components/Header/types.ts +57 -0
- package/src/lib/components/Highlight/Highlight.tsx +45 -0
- package/src/lib/components/Highlight/__preview__/Highlight.preview.tsx +60 -0
- package/src/lib/components/Highlight/types.ts +9 -0
- package/src/lib/components/Hr/Hr.tsx +48 -0
- package/src/lib/components/Hr/__preview__/Hr.preview.tsx +75 -0
- package/src/lib/components/Hr/types.ts +8 -0
- package/src/lib/components/IconMenu/IconMenu.module.css +239 -0
- package/src/lib/components/IconMenu/IconMenu.tsx +101 -0
- package/src/lib/components/IconMenu/IconMenuItem.tsx +53 -0
- package/src/lib/components/IconMenu/__preview__/IconMenu.preview.tsx +55 -0
- package/src/lib/components/IconMenu/index.ts +1 -0
- package/src/lib/components/IconMenu/types.ts +48 -0
- package/src/lib/components/Image/Image.tsx +92 -0
- package/src/lib/components/Image/__preview__/Image.preview.tsx +71 -0
- package/src/lib/components/Image/types.ts +25 -0
- package/src/lib/components/Input/Input.tsx +130 -0
- package/src/lib/components/Input/__preview__/Input.preview.tsx +237 -0
- package/src/lib/components/Input/__preview__/Previews.tsx +67 -0
- package/src/lib/components/Input/classes.ts +1 -0
- package/src/lib/components/Input/subtypes.ts +173 -0
- package/src/lib/components/Input/templates/ColorInput.tsx +40 -0
- package/src/lib/components/Input/templates/DateInput.tsx +63 -0
- package/src/lib/components/Input/templates/FileInput.tsx +42 -0
- package/src/lib/components/Input/templates/PasswordInput.tsx +73 -0
- package/src/lib/components/Input/templates/SearchInput.tsx +89 -0
- package/src/lib/components/Input/templates/SelectInput.tsx +79 -0
- package/src/lib/components/Input/templates/TextInput.tsx +58 -0
- package/src/lib/components/Input/templates/TextareaInput.tsx +27 -0
- package/src/lib/components/Input/templates/TimeInput.tsx +67 -0
- package/src/lib/components/Input/types.ts +22 -0
- package/src/lib/components/InputCheck/InputCheck.tsx +161 -0
- package/src/lib/components/InputCheck/__preview__/InputCheck.preview.tsx +84 -0
- package/src/lib/components/InputCheck/__preview__/Previews.tsx +136 -0
- package/src/lib/components/InputCheck/types.ts +27 -0
- package/src/lib/components/InputComponents/InputButton.tsx +26 -0
- package/src/lib/components/InputComponents/InputIcon.tsx +28 -0
- package/src/lib/components/InputComponents/InputList.tsx +53 -0
- package/src/lib/components/InputComponents/InputListItem.tsx +68 -0
- package/src/lib/components/InputComponents/InputPrefix.tsx +15 -0
- package/src/lib/components/InputComponents/InputSuffix.tsx +15 -0
- package/src/lib/components/InputComponents/InputValidation.tsx +32 -0
- package/src/lib/components/InputComponents/InputWithListWrapper.tsx +29 -0
- package/src/lib/components/InputComponents/InputWrapper.tsx +45 -0
- package/src/lib/components/InputComponents/classes.ts +101 -0
- package/src/lib/components/InputComponents/index.ts +11 -0
- package/src/lib/components/InputComponents/types.ts +63 -0
- package/src/lib/components/InputContainer/InputContainer.tsx +149 -0
- package/src/lib/components/InputContainer/types.ts +11 -0
- package/src/lib/components/InputCounter/InputCounter.tsx +141 -0
- package/src/lib/components/InputCounter/__preview__/InputCounter.preview.tsx +153 -0
- package/src/lib/components/InputCounter/__preview__/Preview.tsx +13 -0
- package/src/lib/components/InputCounter/types.ts +45 -0
- package/src/lib/components/InputImage/EmptyContainer.tsx +17 -0
- package/src/lib/components/InputImage/HoverContainer.tsx +21 -0
- package/src/lib/components/InputImage/InputImage.tsx +104 -0
- package/src/lib/components/InputImage/__preview__/InputImage.preview.tsx +133 -0
- package/src/lib/components/InputImage/__preview__/Preview.tsx +29 -0
- package/src/lib/components/InputImage/subtypes.ts +7 -0
- package/src/lib/components/InputImage/types.ts +24 -0
- package/src/lib/components/InputPhone/InputPhone.tsx +256 -0
- package/src/lib/components/InputPhone/__preview__/InputPhone.preview.tsx +165 -0
- package/src/lib/components/InputPhone/__preview__/Preview.tsx +42 -0
- package/src/lib/components/InputPhone/types.ts +32 -0
- package/src/lib/components/InputPin/InputPin.tsx +119 -0
- package/src/lib/components/InputPin/__preview__/InputPin.preview.tsx +154 -0
- package/src/lib/components/InputPin/types.ts +22 -0
- package/src/lib/components/InputSlider/InputSlider.tsx +176 -0
- package/src/lib/components/InputSlider/__preview__/InputSlider.preview.tsx +128 -0
- package/src/lib/components/InputSlider/__preview__/Preview.tsx +17 -0
- package/src/lib/components/InputSlider/types.ts +22 -0
- package/src/lib/components/Key/Key.tsx +84 -0
- package/src/lib/components/Key/__preview__/Key.preview.tsx +80 -0
- package/src/lib/components/Key/types.ts +16 -0
- package/src/lib/components/Linkify/Linkify.tsx +67 -0
- package/src/lib/components/Linkify/__preview__/Linkify.preview.tsx +33 -0
- package/src/lib/components/Linkify/types.ts +8 -0
- package/src/lib/components/ListGroup/ListGroup.tsx +96 -0
- package/src/lib/components/ListGroup/ListGroupItem.tsx +86 -0
- package/src/lib/components/ListGroup/ListGroupTitle.tsx +84 -0
- package/src/lib/components/ListGroup/__preview__/ListGroup.preview.tsx +246 -0
- package/src/lib/components/ListGroup/index.ts +3 -0
- package/src/lib/components/ListGroup/types.ts +69 -0
- package/src/lib/components/Loader/Loader.tsx +38 -0
- package/src/lib/components/Loader/__preview__/Loader.preview.tsx +38 -0
- package/src/lib/components/Loader/templates/LoaderOne.tsx +27 -0
- package/src/lib/components/Loader/templates/LoaderThree.tsx +47 -0
- package/src/lib/components/Loader/templates/LoaderTwo.tsx +61 -0
- package/src/lib/components/Loader/types.ts +13 -0
- package/src/lib/components/Loader/utils/gen-border-bottom.ts +95 -0
- package/src/lib/components/Main/Main.tsx +63 -0
- package/src/lib/components/Main/__preview__/Main.preview.tsx +67 -0
- package/src/lib/components/Main/types.ts +12 -0
- package/src/lib/components/MarkdownContainer/MarkdownContainer.tsx +50 -0
- package/src/lib/components/MarkdownContainer/__preview__/MarkdownContainer.preview.tsx +34 -0
- package/src/lib/components/MarkdownContainer/types.ts +8 -0
- package/src/lib/components/MarkdownEditor/MarkdownButtons.tsx +42 -0
- package/src/lib/components/MarkdownEditor/MarkdownEditor.tsx +186 -0
- package/src/lib/components/MarkdownEditor/MarkdownEditorTitles.tsx +86 -0
- package/src/lib/components/MarkdownEditor/MarkdownViewButtons.tsx +48 -0
- package/src/lib/components/MarkdownEditor/__preview__/MarkdownEditor.preview.tsx +143 -0
- package/src/lib/components/MarkdownEditor/buttons/icons.tsx +85 -0
- package/src/lib/components/MarkdownEditor/buttons/markdown-buttons.tsx +176 -0
- package/src/lib/components/MarkdownEditor/types.ts +42 -0
- package/src/lib/components/Masonry/Masonry.tsx +83 -0
- package/src/lib/components/Masonry/__preview__/Masonry.preview.tsx +58 -0
- package/src/lib/components/Masonry/types.ts +8 -0
- package/src/lib/components/Masonry/utils.tsx +28 -0
- package/src/lib/components/Modal/Modal.tsx +107 -0
- package/src/lib/components/Modal/__preview__/Modal.preview.tsx +125 -0
- package/src/lib/components/Modal/types.ts +21 -0
- package/src/lib/components/PageLoading/PageLoading.tsx +64 -0
- package/src/lib/components/PageLoading/__preview__/PageLoading.preview.tsx +66 -0
- package/src/lib/components/PageLoading/types.ts +13 -0
- package/src/lib/components/Pagination/Pagination.tsx +163 -0
- package/src/lib/components/Pagination/PaginationButton.tsx +65 -0
- package/src/lib/components/Pagination/__preview__/Pagination.preview.tsx +264 -0
- package/src/lib/components/Pagination/types.ts +56 -0
- package/src/lib/components/Paginator/Paginator.tsx +136 -0
- package/src/lib/components/Paginator/__preview__/Paginator.preview.tsx +212 -0
- package/src/lib/components/Paginator/types.ts +16 -0
- package/src/lib/components/ProgressBar/ProgressBar.tsx +90 -0
- package/src/lib/components/ProgressBar/__preview__/ProgressBar.preview.tsx +63 -0
- package/src/lib/components/ProgressBar/types.ts +14 -0
- package/src/lib/components/ProgressCircle/ProgressCircle.tsx +142 -0
- package/src/lib/components/ProgressCircle/__preview__/ProgressCircle.preview.tsx +107 -0
- package/src/lib/components/ProgressCircle/types.ts +32 -0
- package/src/lib/components/Rating/Rating.tsx +116 -0
- package/src/lib/components/Rating/__preview__/Rating.preview.tsx +133 -0
- package/src/lib/components/Rating/types.ts +25 -0
- package/src/lib/components/Section/Section.tsx +51 -0
- package/src/lib/components/Section/__preview__/Section.preview.tsx +35 -0
- package/src/lib/components/Section/types.ts +5 -0
- package/src/lib/components/Select/Select.tsx +191 -0
- package/src/lib/components/Select/__preview__/Select.preview.tsx +168 -0
- package/src/lib/components/Select/types.ts +23 -0
- package/src/lib/components/Skeleton/Skeleton.tsx +54 -0
- package/src/lib/components/Skeleton/SkeletonCard.tsx +57 -0
- package/src/lib/components/Skeleton/__preview__/Skeleton.preview.tsx +240 -0
- package/src/lib/components/Skeleton/index.ts +2 -0
- package/src/lib/components/Skeleton/types.ts +27 -0
- package/src/lib/components/Slideshow/Slideshow.tsx +324 -0
- package/src/lib/components/Slideshow/SlideshowButton.tsx +63 -0
- package/src/lib/components/Slideshow/SlideshowPagination.tsx +111 -0
- package/src/lib/components/Slideshow/__preview__/Slideshow.preview.tsx +133 -0
- package/src/lib/components/Slideshow/subtypes.ts +62 -0
- package/src/lib/components/Slideshow/types.ts +41 -0
- package/src/lib/components/Sticky/Sticky.tsx +58 -0
- package/src/lib/components/Sticky/__preview__/Sticky.preview.tsx +188 -0
- package/src/lib/components/Sticky/types.ts +5 -0
- package/src/lib/components/Table/Table.tsx +138 -0
- package/src/lib/components/Table/__preview__/Table.preview.tsx +173 -0
- package/src/lib/components/Table/index.ts +1 -0
- package/src/lib/components/Table/types.ts +43 -0
- package/src/lib/components/Tabs/Tabs.tsx +88 -0
- package/src/lib/components/Tabs/TabsButton.tsx +71 -0
- package/src/lib/components/Tabs/TabsButtonsContainer.tsx +58 -0
- package/src/lib/components/Tabs/TabsContainer.tsx +49 -0
- package/src/lib/components/Tabs/TabsContent.tsx +52 -0
- package/src/lib/components/Tabs/__preview__/Tabs.preview.tsx +155 -0
- package/src/lib/components/Tabs/index.ts +5 -0
- package/src/lib/components/Tabs/types.ts +46 -0
- package/src/lib/components/Tag/Tag.tsx +77 -0
- package/src/lib/components/Tag/__preview__/Tag.preview.tsx +128 -0
- package/src/lib/components/Tag/types.ts +13 -0
- package/src/lib/components/Text/Text.tsx +88 -0
- package/src/lib/components/Text/__preview__/Text.preview.tsx +97 -0
- package/src/lib/components/Text/__preview__/previews/Description.tsx +18 -0
- package/src/lib/components/Text/__preview__/previews/Ordered.tsx +13 -0
- package/src/lib/components/Text/__preview__/previews/Paragraphs.tsx +26 -0
- package/src/lib/components/Text/__preview__/previews/Quote.tsx +5 -0
- package/src/lib/components/Text/__preview__/previews/Small.tsx +5 -0
- package/src/lib/components/Text/__preview__/previews/TextDisplay.tsx +27 -0
- package/src/lib/components/Text/__preview__/previews/TextTitles.tsx +19 -0
- package/src/lib/components/Text/__preview__/previews/Unordered.tsx +13 -0
- package/src/lib/components/Text/templates/Blockquote.tsx +41 -0
- package/src/lib/components/Text/templates/Dl.tsx +42 -0
- package/src/lib/components/Text/templates/Em.tsx +40 -0
- package/src/lib/components/Text/templates/H1.tsx +44 -0
- package/src/lib/components/Text/templates/H2.tsx +44 -0
- package/src/lib/components/Text/templates/H3.tsx +44 -0
- package/src/lib/components/Text/templates/H4.tsx +44 -0
- package/src/lib/components/Text/templates/H5.tsx +44 -0
- package/src/lib/components/Text/templates/H6.tsx +41 -0
- package/src/lib/components/Text/templates/Ol.tsx +41 -0
- package/src/lib/components/Text/templates/P.tsx +40 -0
- package/src/lib/components/Text/templates/Small.tsx +40 -0
- package/src/lib/components/Text/templates/Strong.tsx +40 -0
- package/src/lib/components/Text/templates/Ul.tsx +41 -0
- package/src/lib/components/Text/types.ts +36 -0
- package/src/lib/components/Toast/Toast.tsx +112 -0
- package/src/lib/components/Toast/ToastContainer.tsx +43 -0
- package/src/lib/components/Toast/ToastFn.tsx +236 -0
- package/src/lib/components/Toast/__preview__/Toast.preview.tsx +115 -0
- package/src/lib/components/Toast/index.ts +3 -0
- package/src/lib/components/Toast/types.ts +18 -0
- package/src/lib/components/Toast/utils.ts +9 -0
- package/src/lib/components/Tooltip/Tooltip.tsx +190 -0
- package/src/lib/components/Tooltip/__preview__/Tooltip.preview.tsx +117 -0
- package/src/lib/components/Tooltip/types.ts +23 -0
- package/src/lib/components/Wrapper/Wrapper.tsx +75 -0
- package/src/lib/components/Wrapper/__preview__/Wrapper.preview.tsx +78 -0
- package/src/lib/components/Wrapper/types.ts +12 -0
- package/src/lib/context/Theme.context.tsx +66 -0
- package/src/lib/context/index.ts +1 -0
- package/src/lib/hooks/useClickOutside.tsx +50 -0
- package/src/lib/hooks/useCopyToClipboard.tsx +50 -0
- package/src/lib/hooks/useDebounce.tsx +37 -0
- package/src/lib/hooks/useExportData.tsx +78 -0
- package/src/lib/hooks/useFetch.tsx +42 -0
- package/src/lib/hooks/useForm.tsx +51 -0
- package/src/lib/hooks/useIsOverflow.ts +61 -0
- package/src/lib/hooks/useKeyPress.tsx +110 -0
- package/src/lib/hooks/useMaxWidth.tsx +40 -0
- package/src/lib/hooks/useMergeRefs.ts +45 -0
- package/src/lib/hooks/useMinWidth.tsx +40 -0
- package/src/lib/hooks/usePaginatedData.tsx +52 -0
- package/src/lib/hooks/usePagination.tsx +75 -0
- package/src/lib/hooks/useTouchScreen.tsx +34 -0
- package/src/lib/hooks/useTranslation.tsx +58 -0
- package/src/lib/index.css +443 -0
- package/src/lib/index.ts +126 -0
- package/src/lib/lib-utils/get-highlighted-text.tsx +30 -0
- package/src/lib/lib-utils/index.ts +3 -0
- package/src/lib/lib-utils/use-keyboard-navigation.tsx +79 -0
- package/src/lib/types/components-items-props.ts +207 -0
- package/src/lib/types/components-props.ts +63 -0
- package/src/lib/types/global.ts +855 -0
- package/src/lib/types/index.ts +4 -0
- package/src/lib/types/tailwind.ts +9041 -0
- package/src/lib/utils/clsx.tsx +6 -0
- package/src/lib/utils/design-tokens.ts +789 -0
- package/src/lib/utils/gen-align.ts +24 -0
- package/src/lib/utils/gen-bg-color.ts +158 -0
- package/src/lib/utils/gen-border-color.ts +110 -0
- package/src/lib/utils/gen-border-radius.ts +13 -0
- package/src/lib/utils/gen-border.ts +30 -0
- package/src/lib/utils/gen-box-shadow.ts +12 -0
- package/src/lib/utils/gen-button-color.ts +9 -0
- package/src/lib/utils/gen-gap.ts +34 -0
- package/src/lib/utils/gen-justify.ts +25 -0
- package/src/lib/utils/gen-link-color.ts +29 -0
- package/src/lib/utils/gen-max-width.ts +30 -0
- package/src/lib/utils/gen-object-fit.ts +9 -0
- package/src/lib/utils/gen-text-align.ts +10 -0
- package/src/lib/utils/gen-text-color.ts +111 -0
- package/src/lib/utils/gen-vertical-align.ts +12 -0
- package/src/lib/utils/index.ts +18 -0
- package/src/lib/utils/linkify-text.tsx +26 -0
- package/src/lib/utils/options-markdown.ts +60 -0
- package/src/lib/utils/tools.ts +15 -0
- package/src/main.tsx +11 -0
- package/src/pages/Component.tsx +29 -0
- package/src/pages/Homepage.tsx +53 -0
- package/src/pages/NotFound.tsx +10 -0
- package/src/pages/demos/AsideBothDemo.tsx +22 -0
- package/src/pages/demos/AsideDefaultDemo.tsx +18 -0
- package/src/pages/demos/AsideRightDemo.tsx +18 -0
- package/src/pages/demos/CoverBottomDemo.tsx +24 -0
- package/src/pages/demos/CoverBottomOverlayDemo.tsx +25 -0
- package/src/pages/demos/CoverCenterDemo.tsx +24 -0
- package/src/pages/demos/CoverCenterOverlayDemo.tsx +25 -0
- package/src/pages/demos/HeaderDemo.tsx +76 -0
- package/src/pages/demos/MainDefaultDemo.tsx +14 -0
- package/src/pages/demos/MainFormDemo.tsx +14 -0
- package/src/pages/demos/MainLargeDemo.tsx +14 -0
- package/src/pages/demos/PageLoadingDemo.tsx +10 -0
- package/src/routes/index.tsx +59 -0
- package/src/types/global.d.ts +11 -0
- package/src/vite-env.d.ts +1 -0
- package/tailwind.config.ts +19 -0
- package/tsconfig.app.json +28 -0
- package/tsconfig.json +7 -0
- package/tsconfig.node.json +25 -0
- package/vite.config.ts +53 -0
- package/dist/index.cjs.js +0 -4174
- package/dist/index.css +0 -1491
- package/dist/index.d.ts +0 -1
- package/dist/index.es.js +0 -21211
- package/dist/index.umd.js +0 -4180
- package/dist/lib/Mixins.tsx +0 -990
- package/dist/lib/Variables.ts +0 -266
- package/dist/lib/components/Accordion/Accordion.tsx +0 -83
- package/dist/lib/components/Accordion/AccordionButton.tsx +0 -70
- package/dist/lib/components/Accordion/AccordionContent.tsx +0 -26
- package/dist/lib/components/Accordion/AccordionItem.tsx +0 -72
- package/dist/lib/components/Accordion/styles.tsx +0 -163
- package/dist/lib/components/Accordion/subtypes.ts +0 -20
- package/dist/lib/components/Accordion/types.ts +0 -31
- package/dist/lib/components/Alert/Alert.tsx +0 -122
- package/dist/lib/components/Alert/styles.tsx +0 -37
- package/dist/lib/components/Alert/types.ts +0 -31
- package/dist/lib/components/Aside/Aside.tsx +0 -41
- package/dist/lib/components/Aside/styles.tsx +0 -47
- package/dist/lib/components/Aside/types.ts +0 -5
- package/dist/lib/components/Autocomplete/Autocomplete.tsx +0 -356
- package/dist/lib/components/Autocomplete/styles.tsx +0 -11
- package/dist/lib/components/Autocomplete/types.ts +0 -41
- package/dist/lib/components/Avatar/Avatar.tsx +0 -147
- package/dist/lib/components/Avatar/AvatarFunction.tsx +0 -119
- package/dist/lib/components/Avatar/styles.tsx +0 -88
- package/dist/lib/components/Avatar/types.ts +0 -84
- package/dist/lib/components/BackToTop/BackToTop.tsx +0 -104
- package/dist/lib/components/BackToTop/styles.tsx +0 -33
- package/dist/lib/components/BackToTop/types.ts +0 -6
- package/dist/lib/components/Badge/Badge.tsx +0 -99
- package/dist/lib/components/Badge/styles.tsx +0 -39
- package/dist/lib/components/Badge/types.ts +0 -32
- package/dist/lib/components/Breadcrumbs/BreadcrumbItem.tsx +0 -41
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.tsx +0 -62
- package/dist/lib/components/Breadcrumbs/BreadcrumbsFn.tsx +0 -64
- package/dist/lib/components/Breadcrumbs/styles.tsx +0 -62
- package/dist/lib/components/Breadcrumbs/subtypes.ts +0 -10
- package/dist/lib/components/Breadcrumbs/types.ts +0 -29
- package/dist/lib/components/Burger/Burger.tsx +0 -62
- package/dist/lib/components/Burger/styles.tsx +0 -91
- package/dist/lib/components/Burger/types.ts +0 -11
- package/dist/lib/components/Button/Button.tsx +0 -136
- package/dist/lib/components/Button/styles.tsx +0 -30
- package/dist/lib/components/Button/subtypes.ts +0 -10
- package/dist/lib/components/Button/types.ts +0 -70
- package/dist/lib/components/ButtonGroup/ButtonGroup.tsx +0 -136
- package/dist/lib/components/ButtonGroup/ButtonGroupButton.tsx +0 -76
- package/dist/lib/components/ButtonGroup/ButtonGroupToggle.tsx +0 -88
- package/dist/lib/components/ButtonGroup/styles.tsx +0 -89
- package/dist/lib/components/ButtonGroup/subtypes.ts +0 -43
- package/dist/lib/components/ButtonGroup/types.ts +0 -34
- package/dist/lib/components/ButtonIcon/ButtonFunction.tsx +0 -84
- package/dist/lib/components/ButtonIcon/ButtonIcon.tsx +0 -140
- package/dist/lib/components/ButtonIcon/styles.tsx +0 -29
- package/dist/lib/components/ButtonIcon/subtypes.ts +0 -10
- package/dist/lib/components/ButtonIcon/types.ts +0 -88
- package/dist/lib/components/Card/Card.tsx +0 -132
- package/dist/lib/components/Card/index.ts +0 -1
- package/dist/lib/components/Card/styles.tsx +0 -77
- package/dist/lib/components/Card/types.ts +0 -29
- package/dist/lib/components/CodeContainer/CodeContainer.tsx +0 -133
- package/dist/lib/components/CodeContainer/styles.tsx +0 -63
- package/dist/lib/components/CodeContainer/types.ts +0 -233
- package/dist/lib/components/ComponentsMixins/ComponentsMixins.tsx +0 -434
- package/dist/lib/components/ComponentsMixins/hooks/useKeyboardNavigation.tsx +0 -79
- package/dist/lib/components/ComponentsMixins/index.ts +0 -3
- package/dist/lib/components/ComponentsMixins/types.ts +0 -35
- package/dist/lib/components/Cover/Cover.tsx +0 -79
- package/dist/lib/components/Cover/styles.tsx +0 -78
- package/dist/lib/components/Cover/types.ts +0 -12
- package/dist/lib/components/Datepicker/Calendar.tsx +0 -394
- package/dist/lib/components/Datepicker/Datepicker.tsx +0 -255
- package/dist/lib/components/Datepicker/data.ts +0 -31
- package/dist/lib/components/Datepicker/index.ts +0 -1
- package/dist/lib/components/Datepicker/styles.tsx +0 -454
- package/dist/lib/components/Datepicker/types.ts +0 -66
- package/dist/lib/components/DragList/DragList.tsx +0 -121
- package/dist/lib/components/DragList/DragListItem.tsx +0 -184
- package/dist/lib/components/DragList/styles.tsx +0 -73
- package/dist/lib/components/DragList/types.ts +0 -59
- package/dist/lib/components/Drawer/Drawer.tsx +0 -113
- package/dist/lib/components/Drawer/styles.tsx +0 -134
- package/dist/lib/components/Drawer/types.ts +0 -26
- package/dist/lib/components/Dropdown/Dropdown.tsx +0 -98
- package/dist/lib/components/Dropdown/DropdownContainer.tsx +0 -48
- package/dist/lib/components/Dropdown/DropdownItem.tsx +0 -97
- package/dist/lib/components/Dropdown/index.ts +0 -3
- package/dist/lib/components/Dropdown/styles.tsx +0 -155
- package/dist/lib/components/Dropdown/types.ts +0 -63
- package/dist/lib/components/Fade/Fade.tsx +0 -54
- package/dist/lib/components/Fade/styles.tsx +0 -17
- package/dist/lib/components/Fallback/Fallback.tsx +0 -40
- package/dist/lib/components/Fallback/index.ts +0 -1
- package/dist/lib/components/Fieldset/Fieldset.tsx +0 -111
- package/dist/lib/components/Fieldset/styles.tsx +0 -48
- package/dist/lib/components/Fieldset/types.ts +0 -32
- package/dist/lib/components/Flexbox/Flexbox.tsx +0 -73
- package/dist/lib/components/Flexbox/styles.tsx +0 -32
- package/dist/lib/components/Flexbox/types.ts +0 -25
- package/dist/lib/components/Footer/Footer.tsx +0 -103
- package/dist/lib/components/Footer/FooterLink.tsx +0 -31
- package/dist/lib/components/Footer/FooterLogo.tsx +0 -29
- package/dist/lib/components/Footer/index.ts +0 -1
- package/dist/lib/components/Footer/styles.tsx +0 -124
- package/dist/lib/components/Footer/subtypes.ts +0 -14
- package/dist/lib/components/Footer/types.ts +0 -70
- package/dist/lib/components/Form/Form.tsx +0 -157
- package/dist/lib/components/Form/styles.tsx +0 -22
- package/dist/lib/components/Form/types.ts +0 -30
- package/dist/lib/components/FullBleed/FullBleed.tsx +0 -48
- package/dist/lib/components/FullBleed/index.ts +0 -1
- package/dist/lib/components/FullBleed/styles.tsx +0 -30
- package/dist/lib/components/FullBleed/types.ts +0 -7
- package/dist/lib/components/Grid/Grid.tsx +0 -71
- package/dist/lib/components/Grid/styles.tsx +0 -29
- package/dist/lib/components/Grid/types.ts +0 -22
- package/dist/lib/components/Header/Header.tsx +0 -223
- package/dist/lib/components/Header/HeaderBurger.tsx +0 -52
- package/dist/lib/components/Header/HeaderLogo.tsx +0 -68
- package/dist/lib/components/Header/HeaderNav.tsx +0 -89
- package/dist/lib/components/Header/HeaderNavLink.tsx +0 -31
- package/dist/lib/components/Header/HeaderSearch.tsx +0 -81
- package/dist/lib/components/Header/styles.tsx +0 -350
- package/dist/lib/components/Header/subtypes.ts +0 -79
- package/dist/lib/components/Header/types.ts +0 -89
- package/dist/lib/components/Highlight/Highlight.tsx +0 -47
- package/dist/lib/components/Highlight/types.ts +0 -9
- package/dist/lib/components/Hr/Hr.tsx +0 -52
- package/dist/lib/components/Hr/styles.tsx +0 -27
- package/dist/lib/components/Hr/types.ts +0 -10
- package/dist/lib/components/Icon/Icon.tsx +0 -42
- package/dist/lib/components/Icon/index.ts +0 -1
- package/dist/lib/components/Icon/styles.tsx +0 -19
- package/dist/lib/components/Icon/types.ts +0 -13
- package/dist/lib/components/IconMenu/IconMenu.tsx +0 -148
- package/dist/lib/components/IconMenu/IconMenuItem.tsx +0 -75
- package/dist/lib/components/IconMenu/index.ts +0 -2
- package/dist/lib/components/IconMenu/styles.tsx +0 -114
- package/dist/lib/components/IconMenu/types.ts +0 -50
- package/dist/lib/components/Image/Image.tsx +0 -124
- package/dist/lib/components/Image/ImageFunction.tsx +0 -47
- package/dist/lib/components/Image/styles.tsx +0 -85
- package/dist/lib/components/Image/types.ts +0 -46
- package/dist/lib/components/Input/Input.tsx +0 -163
- package/dist/lib/components/Input/styles.tsx +0 -39
- package/dist/lib/components/Input/subtypes.ts +0 -166
- package/dist/lib/components/Input/templates/ColorInput.tsx +0 -34
- package/dist/lib/components/Input/templates/DateInput.tsx +0 -118
- package/dist/lib/components/Input/templates/FileInput.tsx +0 -55
- package/dist/lib/components/Input/templates/PasswordInput.tsx +0 -185
- package/dist/lib/components/Input/templates/SearchInput.tsx +0 -132
- package/dist/lib/components/Input/templates/SelectInput.tsx +0 -110
- package/dist/lib/components/Input/templates/TextInput.tsx +0 -110
- package/dist/lib/components/Input/templates/TextareaInput.tsx +0 -37
- package/dist/lib/components/Input/templates/TimeInput.tsx +0 -117
- package/dist/lib/components/Input/types.ts +0 -22
- package/dist/lib/components/InputCheck/InputCheck.tsx +0 -145
- package/dist/lib/components/InputCheck/styles.tsx +0 -282
- package/dist/lib/components/InputCheck/types.ts +0 -34
- package/dist/lib/components/InputComponents/components/InputAndListContainer.tsx +0 -42
- package/dist/lib/components/InputComponents/components/InputButton.tsx +0 -61
- package/dist/lib/components/InputComponents/components/InputContainer.tsx +0 -69
- package/dist/lib/components/InputComponents/components/InputIcon.tsx +0 -57
- package/dist/lib/components/InputComponents/components/InputLeftContainer.tsx +0 -28
- package/dist/lib/components/InputComponents/components/InputPrefix.tsx +0 -30
- package/dist/lib/components/InputComponents/components/InputRightContainer.tsx +0 -34
- package/dist/lib/components/InputComponents/components/InputSuffix.tsx +0 -30
- package/dist/lib/components/InputComponents/components/InputValidationHelper.tsx +0 -97
- package/dist/lib/components/InputComponents/components/InputValidationIcon.tsx +0 -65
- package/dist/lib/components/InputComponents/components/InputWrapper.tsx +0 -45
- package/dist/lib/components/InputComponents/components/ListInput.tsx +0 -42
- package/dist/lib/components/InputComponents/components/ListInputItem.tsx +0 -48
- package/dist/lib/components/InputComponents/index.ts +0 -13
- package/dist/lib/components/InputComponents/styles.tsx +0 -716
- package/dist/lib/components/InputComponents/types.ts +0 -262
- package/dist/lib/components/InputContainer/HelperBottom.tsx +0 -94
- package/dist/lib/components/InputContainer/InputContainer.tsx +0 -143
- package/dist/lib/components/InputContainer/styles.tsx +0 -87
- package/dist/lib/components/InputContainer/subtypes.ts +0 -8
- package/dist/lib/components/InputContainer/types.ts +0 -23
- package/dist/lib/components/InputCounter/InputCounter.tsx +0 -296
- package/dist/lib/components/InputCounter/styles.tsx +0 -51
- package/dist/lib/components/InputCounter/subtypes.ts +0 -7
- package/dist/lib/components/InputCounter/types.ts +0 -49
- package/dist/lib/components/InputImage/EmptyContainer.tsx +0 -40
- package/dist/lib/components/InputImage/HoverContainer.tsx +0 -47
- package/dist/lib/components/InputImage/InputImage.tsx +0 -160
- package/dist/lib/components/InputImage/styles.tsx +0 -113
- package/dist/lib/components/InputImage/subtypes.ts +0 -28
- package/dist/lib/components/InputImage/types.ts +0 -23
- package/dist/lib/components/InputPhone/InputPhone.tsx +0 -392
- package/dist/lib/components/InputPhone/styles.tsx +0 -216
- package/dist/lib/components/InputPhone/types.ts +0 -33
- package/dist/lib/components/InputPin/InputPin.tsx +0 -137
- package/dist/lib/components/InputPin/styles.tsx +0 -68
- package/dist/lib/components/InputPin/subtypes.ts +0 -9
- package/dist/lib/components/InputPin/types.ts +0 -29
- package/dist/lib/components/InputSlider/InputSlider.tsx +0 -193
- package/dist/lib/components/InputSlider/Slider.tsx +0 -43
- package/dist/lib/components/InputSlider/styles.tsx +0 -290
- package/dist/lib/components/InputSlider/types.ts +0 -13
- package/dist/lib/components/Key/Key.tsx +0 -46
- package/dist/lib/components/Key/styles.tsx +0 -27
- package/dist/lib/components/Key/types.ts +0 -9
- package/dist/lib/components/LibIcon/LibIcon.tsx +0 -34
- package/dist/lib/components/LibIcon/index.ts +0 -1
- package/dist/lib/components/LibIcon/types.ts +0 -7
- package/dist/lib/components/Link/Link.tsx +0 -88
- package/dist/lib/components/Link/index.ts +0 -1
- package/dist/lib/components/Link/types.ts +0 -7
- package/dist/lib/components/Linkify/Linkify.tsx +0 -58
- package/dist/lib/components/Linkify/types.ts +0 -6
- package/dist/lib/components/ListGroup/ListGroup.tsx +0 -110
- package/dist/lib/components/ListGroup/ListGroupItem.tsx +0 -171
- package/dist/lib/components/ListGroup/ListGroupTitle.tsx +0 -56
- package/dist/lib/components/ListGroup/index.ts +0 -3
- package/dist/lib/components/ListGroup/styles.tsx +0 -177
- package/dist/lib/components/ListGroup/types.ts +0 -106
- package/dist/lib/components/Loader/Loader.tsx +0 -45
- package/dist/lib/components/Loader/styles.tsx +0 -138
- package/dist/lib/components/Loader/templates/LoaderFour.tsx +0 -27
- package/dist/lib/components/Loader/templates/LoaderOne.tsx +0 -21
- package/dist/lib/components/Loader/templates/LoaderThree.tsx +0 -30
- package/dist/lib/components/Loader/templates/LoaderTwo.tsx +0 -25
- package/dist/lib/components/Loader/types.ts +0 -23
- package/dist/lib/components/Main/Main.tsx +0 -48
- package/dist/lib/components/Main/styles.tsx +0 -61
- package/dist/lib/components/Main/types.ts +0 -15
- package/dist/lib/components/MarkdownContainer/MarkdownContainer.tsx +0 -42
- package/dist/lib/components/MarkdownContainer/styles.tsx +0 -15
- package/dist/lib/components/MarkdownContainer/types.ts +0 -7
- package/dist/lib/components/MarkdownEditor/MarkdownEditor.tsx +0 -200
- package/dist/lib/components/MarkdownEditor/MdEditorButtons/EditorButtonTitles.tsx +0 -75
- package/dist/lib/components/MarkdownEditor/MdEditorButtons/EditorButtons.tsx +0 -73
- package/dist/lib/components/MarkdownEditor/MdEditorButtons/MarkdownButtons.tsx +0 -52
- package/dist/lib/components/MarkdownEditor/MdEditorInput.tsx +0 -88
- package/dist/lib/components/MarkdownEditor/markdown-buttons.tsx +0 -180
- package/dist/lib/components/MarkdownEditor/styles.tsx +0 -187
- package/dist/lib/components/MarkdownEditor/subtypes.ts +0 -54
- package/dist/lib/components/MarkdownEditor/types.ts +0 -57
- package/dist/lib/components/Masonry/Masonry.tsx +0 -73
- package/dist/lib/components/Masonry/styles.tsx +0 -22
- package/dist/lib/components/Masonry/types.ts +0 -8
- package/dist/lib/components/Masonry/utils.ts +0 -28
- package/dist/lib/components/Messaging/Message.tsx +0 -112
- package/dist/lib/components/Messaging/MessageForm.tsx +0 -153
- package/dist/lib/components/Messaging/MessagesContainer.tsx +0 -42
- package/dist/lib/components/Messaging/MessagesList.tsx +0 -140
- package/dist/lib/components/Messaging/Messaging.tsx +0 -123
- package/dist/lib/components/Messaging/index.ts +0 -5
- package/dist/lib/components/Messaging/styles.tsx +0 -176
- package/dist/lib/components/Messaging/types.ts +0 -119
- package/dist/lib/components/Meta/Meta.tsx +0 -125
- package/dist/lib/components/Meta/index.ts +0 -3
- package/dist/lib/components/Meta/types.ts +0 -17
- package/dist/lib/components/Modal/Modal.tsx +0 -134
- package/dist/lib/components/Modal/styles.tsx +0 -60
- package/dist/lib/components/Modal/types.ts +0 -36
- package/dist/lib/components/PageLayout/PageLayout.tsx +0 -96
- package/dist/lib/components/PageLayout/index.ts +0 -1
- package/dist/lib/components/PageLayout/types.ts +0 -45
- package/dist/lib/components/PageLoading/PageLoading.tsx +0 -67
- package/dist/lib/components/PageLoading/styles.tsx +0 -22
- package/dist/lib/components/PageLoading/types.ts +0 -13
- package/dist/lib/components/Pagination/Pagination.tsx +0 -262
- package/dist/lib/components/Pagination/PaginationButton.tsx +0 -52
- package/dist/lib/components/Pagination/styles.tsx +0 -70
- package/dist/lib/components/Pagination/types.ts +0 -55
- package/dist/lib/components/Paginator/Paginator.tsx +0 -169
- package/dist/lib/components/Paginator/styles.tsx +0 -34
- package/dist/lib/components/Paginator/types.ts +0 -14
- package/dist/lib/components/ProgressBar/ProgressBar.tsx +0 -74
- package/dist/lib/components/ProgressBar/styles.tsx +0 -76
- package/dist/lib/components/ProgressBar/types.ts +0 -11
- package/dist/lib/components/ProgressCircle/Circle.tsx +0 -29
- package/dist/lib/components/ProgressCircle/ProgressCircle.tsx +0 -96
- package/dist/lib/components/ProgressCircle/ProgressCircleFn.tsx +0 -42
- package/dist/lib/components/ProgressCircle/Value.tsx +0 -30
- package/dist/lib/components/ProgressCircle/clean-percentage.ts +0 -5
- package/dist/lib/components/ProgressCircle/styles.tsx +0 -53
- package/dist/lib/components/ProgressCircle/subtypes.ts +0 -9
- package/dist/lib/components/ProgressCircle/types.ts +0 -29
- package/dist/lib/components/Rating/Rating.tsx +0 -178
- package/dist/lib/components/Rating/styles.tsx +0 -50
- package/dist/lib/components/Rating/types.ts +0 -22
- package/dist/lib/components/ResetScroll/ResetScroll.tsx +0 -27
- package/dist/lib/components/ResetScroll/index.ts +0 -1
- package/dist/lib/components/Section/Section.tsx +0 -45
- package/dist/lib/components/Section/styles.tsx +0 -22
- package/dist/lib/components/Section/types.ts +0 -5
- package/dist/lib/components/Select/Select.tsx +0 -290
- package/dist/lib/components/Select/SelectButton.tsx +0 -52
- package/dist/lib/components/Select/styles.tsx +0 -20
- package/dist/lib/components/Select/subtypes.ts +0 -31
- package/dist/lib/components/Select/types.ts +0 -31
- package/dist/lib/components/Skeleton/Skeleton.tsx +0 -62
- package/dist/lib/components/Skeleton/SkeletonCard.tsx +0 -81
- package/dist/lib/components/Skeleton/SkeletonShine.tsx +0 -30
- package/dist/lib/components/Skeleton/index.ts +0 -3
- package/dist/lib/components/Skeleton/styles.tsx +0 -94
- package/dist/lib/components/Skeleton/subtypes.ts +0 -14
- package/dist/lib/components/Skeleton/types.ts +0 -37
- package/dist/lib/components/Slideshow/Slideshow.tsx +0 -191
- package/dist/lib/components/Slideshow/SlideshowButton.tsx +0 -98
- package/dist/lib/components/Slideshow/SlideshowPagination.tsx +0 -83
- package/dist/lib/components/Slideshow/styles.tsx +0 -359
- package/dist/lib/components/Slideshow/subtypes.ts +0 -20
- package/dist/lib/components/Slideshow/types.ts +0 -97
- package/dist/lib/components/SrOnly/SrOnly.tsx +0 -34
- package/dist/lib/components/SrOnly/index.ts +0 -1
- package/dist/lib/components/SrOnly/styles.tsx +0 -19
- package/dist/lib/components/SrOnly/types.ts +0 -3
- package/dist/lib/components/Stepper/Step.tsx +0 -122
- package/dist/lib/components/Stepper/Stepper.tsx +0 -92
- package/dist/lib/components/Stepper/index.ts +0 -2
- package/dist/lib/components/Stepper/styles.tsx +0 -113
- package/dist/lib/components/Stepper/types.ts +0 -42
- package/dist/lib/components/Sticky/Sticky.tsx +0 -44
- package/dist/lib/components/Sticky/styles.tsx +0 -13
- package/dist/lib/components/Sticky/types.ts +0 -5
- package/dist/lib/components/Table/TBody.tsx +0 -27
- package/dist/lib/components/Table/THead.tsx +0 -27
- package/dist/lib/components/Table/Table.tsx +0 -128
- package/dist/lib/components/Table/Td.tsx +0 -35
- package/dist/lib/components/Table/Tr.tsx +0 -23
- package/dist/lib/components/Table/index.ts +0 -5
- package/dist/lib/components/Table/styles.tsx +0 -112
- package/dist/lib/components/Table/types.ts +0 -40
- package/dist/lib/components/Tabs/TabButton.tsx +0 -54
- package/dist/lib/components/Tabs/TabItem.tsx +0 -45
- package/dist/lib/components/Tabs/Tabs.tsx +0 -140
- package/dist/lib/components/Tabs/TabsButtonsContainer.tsx +0 -48
- package/dist/lib/components/Tabs/TabsContainer.tsx +0 -36
- package/dist/lib/components/Tabs/index.ts +0 -5
- package/dist/lib/components/Tabs/styles.tsx +0 -176
- package/dist/lib/components/Tabs/types.ts +0 -48
- package/dist/lib/components/Tag/Tag.tsx +0 -101
- package/dist/lib/components/Tag/styles.tsx +0 -39
- package/dist/lib/components/Tag/types.ts +0 -41
- package/dist/lib/components/Text/Text.tsx +0 -71
- package/dist/lib/components/Text/styles.tsx +0 -250
- package/dist/lib/components/Text/subtypes.ts +0 -13
- package/dist/lib/components/Text/templates/Blockquote.tsx +0 -28
- package/dist/lib/components/Text/templates/Dl.tsx +0 -28
- package/dist/lib/components/Text/templates/Em.tsx +0 -28
- package/dist/lib/components/Text/templates/H1.tsx +0 -30
- package/dist/lib/components/Text/templates/H2.tsx +0 -30
- package/dist/lib/components/Text/templates/H3.tsx +0 -30
- package/dist/lib/components/Text/templates/H4.tsx +0 -30
- package/dist/lib/components/Text/templates/H5.tsx +0 -30
- package/dist/lib/components/Text/templates/H6.tsx +0 -28
- package/dist/lib/components/Text/templates/Ol.tsx +0 -28
- package/dist/lib/components/Text/templates/P.tsx +0 -28
- package/dist/lib/components/Text/templates/Small.tsx +0 -28
- package/dist/lib/components/Text/templates/Strong.tsx +0 -28
- package/dist/lib/components/Text/templates/Ul.tsx +0 -28
- package/dist/lib/components/Text/types.ts +0 -26
- package/dist/lib/components/TextIcon/TextIcon.tsx +0 -100
- package/dist/lib/components/TextIcon/index.ts +0 -1
- package/dist/lib/components/TextIcon/styles.tsx +0 -36
- package/dist/lib/components/TextIcon/types.ts +0 -19
- package/dist/lib/components/TextIcon/utils.ts +0 -56
- package/dist/lib/components/Timepicker/Timepicker.tsx +0 -306
- package/dist/lib/components/Timepicker/index.ts +0 -1
- package/dist/lib/components/Timepicker/styles.tsx +0 -32
- package/dist/lib/components/Timepicker/types.ts +0 -67
- package/dist/lib/components/Toast/Toast.tsx +0 -202
- package/dist/lib/components/Toast/Toaster.tsx +0 -156
- package/dist/lib/components/Toast/index.ts +0 -1
- package/dist/lib/components/Toast/styles.tsx +0 -247
- package/dist/lib/components/Toast/types.ts +0 -30
- package/dist/lib/components/Tooltip/Tooltip.tsx +0 -129
- package/dist/lib/components/Tooltip/styles.tsx +0 -149
- package/dist/lib/components/Tooltip/types.ts +0 -21
- package/dist/lib/components/Truncate/Truncate.tsx +0 -128
- package/dist/lib/components/Truncate/index.ts +0 -1
- package/dist/lib/components/Truncate/styles.tsx +0 -36
- package/dist/lib/components/Truncate/types.ts +0 -5
- package/dist/lib/components/Video/Video.tsx +0 -74
- package/dist/lib/components/Video/index.ts +0 -1
- package/dist/lib/components/Video/styles.tsx +0 -22
- package/dist/lib/components/Video/types.ts +0 -20
- package/dist/lib/components/Wrapper/Wrapper.tsx +0 -50
- package/dist/lib/components/Wrapper/styles.tsx +0 -33
- package/dist/lib/components/Wrapper/types.ts +0 -7
- package/dist/lib/components/Youtube/Youtube.tsx +0 -49
- package/dist/lib/components/Youtube/index.ts +0 -1
- package/dist/lib/components/Youtube/styles.tsx +0 -18
- package/dist/lib/components/Youtube/types.ts +0 -10
- package/dist/lib/context/Theme.context.tsx +0 -116
- package/dist/lib/context/Toaster/Toaster.context.tsx +0 -131
- package/dist/lib/context/Toaster/index.ts +0 -3
- package/dist/lib/context/Toaster/toast.reducer.ts +0 -34
- package/dist/lib/design-tokens.ts +0 -2217
- package/dist/lib/hooks/useClickOutside.tsx +0 -42
- package/dist/lib/hooks/useCopyToClipboard.tsx +0 -38
- package/dist/lib/hooks/useDebounce.tsx +0 -26
- package/dist/lib/hooks/useExportData.tsx +0 -65
- package/dist/lib/hooks/useFetch.tsx +0 -30
- package/dist/lib/hooks/useForm.tsx +0 -38
- package/dist/lib/hooks/useIsOverflow.ts +0 -46
- package/dist/lib/hooks/useKeyPress.tsx +0 -101
- package/dist/lib/hooks/useMaxWidth.tsx +0 -32
- package/dist/lib/hooks/useMergeRefs.ts +0 -36
- package/dist/lib/hooks/useMinWidth.tsx +0 -32
- package/dist/lib/hooks/usePaginatedData.tsx +0 -42
- package/dist/lib/hooks/usePagination.tsx +0 -122
- package/dist/lib/hooks/useTouchScreen.tsx +0 -25
- package/dist/lib/hooks/useTranslation.tsx +0 -43
- package/dist/lib/icons/ArrowUp.tsx +0 -31
- package/dist/lib/icons/Bold.tsx +0 -31
- package/dist/lib/icons/Calendar.tsx +0 -39
- package/dist/lib/icons/CaretDown.tsx +0 -31
- package/dist/lib/icons/Check.tsx +0 -31
- package/dist/lib/icons/CheckCircle.tsx +0 -37
- package/dist/lib/icons/ChevronDown.tsx +0 -31
- package/dist/lib/icons/ChevronLeft.tsx +0 -31
- package/dist/lib/icons/ChevronRight.tsx +0 -31
- package/dist/lib/icons/ChevronUp.tsx +0 -31
- package/dist/lib/icons/Clipboard.tsx +0 -31
- package/dist/lib/icons/Clock.tsx +0 -34
- package/dist/lib/icons/Close.tsx +0 -31
- package/dist/lib/icons/CloseCircle.tsx +0 -37
- package/dist/lib/icons/Code.tsx +0 -31
- package/dist/lib/icons/CodeBlock.tsx +0 -41
- package/dist/lib/icons/Comment.tsx +0 -41
- package/dist/lib/icons/Drag.tsx +0 -31
- package/dist/lib/icons/Edit.tsx +0 -37
- package/dist/lib/icons/EditorCode.tsx +0 -35
- package/dist/lib/icons/EditorLive.tsx +0 -35
- package/dist/lib/icons/EditorPreview.tsx +0 -35
- package/dist/lib/icons/Hide.tsx +0 -31
- package/dist/lib/icons/Image.tsx +0 -41
- package/dist/lib/icons/Italic.tsx +0 -31
- package/dist/lib/icons/Link.tsx +0 -35
- package/dist/lib/icons/Minus.tsx +0 -28
- package/dist/lib/icons/OrderedList.tsx +0 -31
- package/dist/lib/icons/Plus.tsx +0 -31
- package/dist/lib/icons/Quote.tsx +0 -31
- package/dist/lib/icons/Search.tsx +0 -37
- package/dist/lib/icons/Send.tsx +0 -31
- package/dist/lib/icons/Separator.tsx +0 -31
- package/dist/lib/icons/Show.tsx +0 -37
- package/dist/lib/icons/Star.tsx +0 -31
- package/dist/lib/icons/StarFull.tsx +0 -31
- package/dist/lib/icons/Strikethrough.tsx +0 -31
- package/dist/lib/icons/Underline.tsx +0 -31
- package/dist/lib/icons/UnorderedList.tsx +0 -31
- package/dist/lib/icons/index.ts +0 -39
- package/dist/lib/icons/styles.tsx +0 -17
- package/dist/lib/icons/types.ts +0 -9
- package/dist/lib/index.css +0 -1491
- package/dist/lib/index.ts +0 -159
- package/dist/lib/lib-utils/append-styles.ts +0 -7
- package/dist/lib/lib-utils/colors-maps.ts +0 -174
- package/dist/lib/lib-utils/generate-lib-tokens.ts +0 -38
- package/dist/lib/lib-utils/get-highlighted-text.tsx +0 -29
- package/dist/lib/lib-utils/get-icon-size-from-font.ts +0 -25
- package/dist/lib/lib-utils/index.ts +0 -9
- package/dist/lib/lib-utils/round-icon-size.ts +0 -5
- package/dist/lib/modules-declare.d.ts +0 -19
- package/dist/lib/types/component-items.ts +0 -511
- package/dist/lib/types/components-props.ts +0 -80
- package/dist/lib/types/generate-int-range.ts +0 -17
- package/dist/lib/types/global.ts +0 -436
- package/dist/lib/types/index.ts +0 -5
- package/dist/lib/types/theme.ts +0 -166
- package/dist/lib/utils/StyleSheetManager.tsx +0 -30
- package/dist/lib/utils/index.ts +0 -4
- package/dist/lib/utils/lib-tokens.json +0 -860
- package/dist/lib/utils/linkify-text.tsx +0 -26
- package/dist/lib/utils/options-markdown.ts +0 -132
- package/dist/lib/utils/set-default-theme.ts +0 -12
- package/dist/styles-BCSPldCD.js +0 -16
- package/dist/styles-CtcGw3Gv.cjs +0 -7
- /package/{license.md → LICENSE} +0 -0
- /package/{dist → src}/lib/components/Accordion/index.ts +0 -0
- /package/{dist → src}/lib/components/Alert/index.ts +0 -0
- /package/{dist → src}/lib/components/Aside/index.ts +0 -0
- /package/{dist → src}/lib/components/Autocomplete/index.ts +0 -0
- /package/{dist → src}/lib/components/Avatar/index.ts +0 -0
- /package/{dist → src}/lib/components/BackToTop/index.ts +0 -0
- /package/{dist → src}/lib/components/Badge/index.ts +0 -0
- /package/{dist → src}/lib/components/Breadcrumbs/index.ts +0 -0
- /package/{dist → src}/lib/components/Burger/index.ts +0 -0
- /package/{dist → src}/lib/components/Button/index.ts +0 -0
- /package/{dist → src}/lib/components/ButtonGroup/index.ts +0 -0
- /package/{dist → src}/lib/components/ButtonIcon/index.ts +0 -0
- /package/{dist → src}/lib/components/CodeContainer/index.ts +0 -0
- /package/{dist → src}/lib/components/Cover/index.ts +0 -0
- /package/{dist → src}/lib/components/DragList/index.ts +0 -0
- /package/{dist → src}/lib/components/Drawer/index.ts +0 -0
- /package/{dist → src}/lib/components/Fade/index.ts +0 -0
- /package/{dist → src}/lib/components/Fade/types.ts +0 -0
- /package/{dist → src}/lib/components/Fieldset/index.ts +0 -0
- /package/{dist → src}/lib/components/Flexbox/index.ts +0 -0
- /package/{dist → src}/lib/components/Form/index.ts +0 -0
- /package/{dist → src}/lib/components/Grid/index.ts +0 -0
- /package/{dist → src}/lib/components/Header/index.ts +0 -0
- /package/{dist → src}/lib/components/Highlight/index.ts +0 -0
- /package/{dist → src}/lib/components/Hr/index.ts +0 -0
- /package/{dist → src}/lib/components/Image/index.ts +0 -0
- /package/{dist → src}/lib/components/Input/index.ts +0 -0
- /package/{dist → src}/lib/components/InputCheck/index.ts +0 -0
- /package/{dist → src}/lib/components/InputContainer/index.ts +0 -0
- /package/{dist → src}/lib/components/InputCounter/index.ts +0 -0
- /package/{dist → src}/lib/components/InputImage/index.ts +0 -0
- /package/{dist → src}/lib/components/InputPhone/index.ts +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/countries.ts +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ac.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ad.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ae.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/af.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ag.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ai.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/al.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/am.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ao.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/aq.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ar.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/as.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/at.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/au.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/aw.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ax.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/az.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ba.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/bb.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/bd.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/be.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/bf.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/bg.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/bh.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/bi.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/bj.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/bl.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/bm.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/bn.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/bo.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/bq.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/br.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/bs.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/bt.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/bv.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/bw.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/by.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/bz.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ca.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/cc.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/cd.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/cefta.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/cf.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/cg.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ch.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ci.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ck.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/cl.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/cm.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/cn.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/co.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/cp.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/cr.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/cu.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/cv.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/cw.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/cx.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/cy.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/cz.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/de.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/dg.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/dj.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/dk.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/dm.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/do.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/dz.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ea.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ec.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ee.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/eg.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/eh.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/er.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/es-ct.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/es-ga.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/es.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/et.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/eu.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/fi.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/fj.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/fk.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/fm.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/fo.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/fr.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ga.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/gb-eng.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/gb-nir.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/gb-sct.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/gb-wls.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/gb.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/gd.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ge.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/gf.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/gg.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/gh.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/gi.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/gl.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/gm.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/gn.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/gp.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/gq.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/gr.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/gs.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/gt.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/gu.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/gw.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/gy.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/hk.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/hm.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/hn.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/hr.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ht.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/hu.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ic.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/id.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ie.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/il.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/im.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/in.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/io.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/iq.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ir.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/is.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/it.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/je.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/jm.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/jo.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/jp.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ke.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/kg.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/kh.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ki.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/km.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/kn.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/kp.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/kr.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/kw.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ky.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/kz.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/la.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/lb.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/lc.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/li.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/lk.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/lr.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ls.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/lt.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/lu.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/lv.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ly.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ma.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/mc.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/md.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/me.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/mf.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/mg.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/mh.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/mk.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ml.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/mm.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/mn.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/mo.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/mp.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/mq.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/mr.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ms.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/mt.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/mu.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/mv.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/mw.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/mx.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/my.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/mz.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/na.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/nc.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ne.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/nf.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ng.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ni.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/nl.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/no.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/np.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/nr.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/nu.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/nz.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/om.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/pa.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/pe.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/pf.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/pg.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ph.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/pk.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/pl.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/pm.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/pn.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/pr.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ps.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/pt.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/pw.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/py.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/qa.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/re.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ro.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/rs.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ru.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/rw.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/sa.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/sb.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/sc.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/sd.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/se.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/sg.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/sh.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/si.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/sj.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/sk.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/sl.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/sm.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/sn.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/so.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/sr.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ss.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/st.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/sv.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/sx.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/sy.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/sz.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ta.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/tc.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/td.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/tf.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/tg.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/th.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/tj.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/tk.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/tl.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/tm.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/tn.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/to.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/tr.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/tt.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/tv.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/tw.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/tz.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ua.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ug.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/um.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/un.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/us.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/uy.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/uz.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/va.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/vc.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ve.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/vg.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/vi.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/vn.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/vu.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/wf.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ws.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/xk.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/xx.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/ye.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/yt.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/za.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/zm.svg +0 -0
- /package/{dist → src}/lib/components/InputPhone/utils/flags/zw.svg +0 -0
- /package/{dist → src}/lib/components/InputPin/index.ts +0 -0
- /package/{dist → src}/lib/components/InputSlider/index.ts +0 -0
- /package/{dist → src}/lib/components/Key/index.ts +0 -0
- /package/{dist → src}/lib/components/Linkify/index.ts +0 -0
- /package/{dist → src}/lib/components/Loader/index.ts +0 -0
- /package/{dist → src}/lib/components/Main/index.ts +0 -0
- /package/{dist → src}/lib/components/MarkdownContainer/index.ts +0 -0
- /package/{dist → src}/lib/components/MarkdownEditor/index.ts +0 -0
- /package/{dist → src}/lib/components/Masonry/index.ts +0 -0
- /package/{dist → src}/lib/components/Modal/index.ts +0 -0
- /package/{dist → src}/lib/components/PageLoading/index.ts +0 -0
- /package/{dist → src}/lib/components/Pagination/index.ts +0 -0
- /package/{dist → src}/lib/components/Paginator/index.ts +0 -0
- /package/{dist → src}/lib/components/ProgressBar/index.ts +0 -0
- /package/{dist → src}/lib/components/ProgressCircle/index.ts +0 -0
- /package/{dist → src}/lib/components/Rating/index.ts +0 -0
- /package/{dist → src}/lib/components/Section/index.ts +0 -0
- /package/{dist → src}/lib/components/Select/index.ts +0 -0
- /package/{dist → src}/lib/components/Slideshow/index.ts +0 -0
- /package/{dist → src}/lib/components/Sticky/index.ts +0 -0
- /package/{dist → src}/lib/components/Tag/index.ts +0 -0
- /package/{dist → src}/lib/components/Text/index.ts +0 -0
- /package/{dist → src}/lib/components/Tooltip/index.ts +0 -0
- /package/{dist → src}/lib/components/Wrapper/index.ts +0 -0
- /package/{dist → src}/lib/hooks/index.ts +0 -0
- /package/{dist → src}/lib/lib-utils/transfom-search-keys.ts +0 -0
- /package/{dist → src}/lib/types/require-at-least-one.ts +0 -0
package/dist/lib/Mixins.tsx
DELETED
|
@@ -1,990 +0,0 @@
|
|
|
1
|
-
import { css, type DefaultTheme } from "styled-components"
|
|
2
|
-
import type { Property } from "csstype"
|
|
3
|
-
import { stringifyPx } from "@julseb-lib/utils"
|
|
4
|
-
import { overlaysMap } from "./lib-utils"
|
|
5
|
-
import {
|
|
6
|
-
COLORS_LIGHT,
|
|
7
|
-
COLORS_DARK,
|
|
8
|
-
RADIUSES,
|
|
9
|
-
SHADOWS,
|
|
10
|
-
SPACERS,
|
|
11
|
-
TRANSITIONS,
|
|
12
|
-
FONT_SIZES,
|
|
13
|
-
FONT_WEIGHTS,
|
|
14
|
-
} from "./Variables"
|
|
15
|
-
import { designTokens } from "./design-tokens"
|
|
16
|
-
import {
|
|
17
|
-
type LibAllColors,
|
|
18
|
-
type LibColorsShort,
|
|
19
|
-
type LibColorsHover,
|
|
20
|
-
type LibOverlays,
|
|
21
|
-
type ILibRadius,
|
|
22
|
-
type LibShadows,
|
|
23
|
-
type ILibBoxShadow,
|
|
24
|
-
type LibSpacers,
|
|
25
|
-
type ILibPadding,
|
|
26
|
-
type LibTransitions,
|
|
27
|
-
type LibRadiuses,
|
|
28
|
-
type CssJustifyItems,
|
|
29
|
-
type CssAlignItems,
|
|
30
|
-
type CssJustifyContent,
|
|
31
|
-
type CssAlignContent,
|
|
32
|
-
type CssFlexDirection,
|
|
33
|
-
type CssFlexWrap,
|
|
34
|
-
type LibFontSizes,
|
|
35
|
-
type LibFontWeights,
|
|
36
|
-
type ILibMargin,
|
|
37
|
-
type ILibBorder,
|
|
38
|
-
type LibAllColorsAndOverlays,
|
|
39
|
-
type ILibOutline,
|
|
40
|
-
type LibColorsHoverAndCurrent,
|
|
41
|
-
type LibThemeNames,
|
|
42
|
-
type LibPositionExtract,
|
|
43
|
-
} from "./types"
|
|
44
|
-
|
|
45
|
-
type ILibIconMixin = {
|
|
46
|
-
$name: string
|
|
47
|
-
$color?: LibAllColors
|
|
48
|
-
$size?: number
|
|
49
|
-
$isLibIcon?: boolean
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
const getColorMixinFromTheme = (
|
|
53
|
-
theme: DefaultTheme | null = COLORS_LIGHT,
|
|
54
|
-
themeName?: LibThemeNames
|
|
55
|
-
) => {
|
|
56
|
-
let THEME: DefaultTheme
|
|
57
|
-
|
|
58
|
-
if (themeName) {
|
|
59
|
-
THEME = (
|
|
60
|
-
themeName === "dark" ? COLORS_DARK : COLORS_LIGHT
|
|
61
|
-
) as DefaultTheme
|
|
62
|
-
} else if (theme === null) {
|
|
63
|
-
THEME = COLORS_LIGHT
|
|
64
|
-
} else {
|
|
65
|
-
THEME = theme
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
const colorsShortMap = new Map<LibColorsShort, keyof typeof THEME>([
|
|
69
|
-
["primary", "PRIMARY_500"],
|
|
70
|
-
["secondary", "SECONDARY_500"],
|
|
71
|
-
["success", "SUCCESS_500"],
|
|
72
|
-
["danger", "DANGER_500"],
|
|
73
|
-
["warning", "WARNING_500"],
|
|
74
|
-
["gray", "GRAY_500"],
|
|
75
|
-
["black", "BLACK"],
|
|
76
|
-
["white", "WHITE"],
|
|
77
|
-
])
|
|
78
|
-
|
|
79
|
-
const allColorsMap = new Map<LibAllColors, keyof typeof THEME>([
|
|
80
|
-
...Array.from(colorsShortMap.entries()),
|
|
81
|
-
["gray-50", "GRAY_50"],
|
|
82
|
-
["gray-100", "GRAY_100"],
|
|
83
|
-
["gray-200", "GRAY_200"],
|
|
84
|
-
["gray-300", "GRAY_300"],
|
|
85
|
-
["gray-400", "GRAY_400"],
|
|
86
|
-
["gray-500", "GRAY_500"],
|
|
87
|
-
["gray-600", "GRAY_600"],
|
|
88
|
-
["gray-700", "GRAY_700"],
|
|
89
|
-
["gray-800", "GRAY_800"],
|
|
90
|
-
["gray-900", "GRAY_900"],
|
|
91
|
-
["primary-50", "PRIMARY_50"],
|
|
92
|
-
["primary-100", "PRIMARY_100"],
|
|
93
|
-
["primary-200", "PRIMARY_200"],
|
|
94
|
-
["primary-300", "PRIMARY_300"],
|
|
95
|
-
["primary-400", "PRIMARY_400"],
|
|
96
|
-
["primary-500", "PRIMARY_500"],
|
|
97
|
-
["primary-600", "PRIMARY_600"],
|
|
98
|
-
["primary-700", "PRIMARY_700"],
|
|
99
|
-
["primary-800", "PRIMARY_800"],
|
|
100
|
-
["primary-900", "PRIMARY_900"],
|
|
101
|
-
["secondary-50", "SECONDARY_50"],
|
|
102
|
-
["secondary-100", "SECONDARY_100"],
|
|
103
|
-
["secondary-200", "SECONDARY_200"],
|
|
104
|
-
["secondary-300", "SECONDARY_300"],
|
|
105
|
-
["secondary-400", "SECONDARY_400"],
|
|
106
|
-
["secondary-500", "SECONDARY_500"],
|
|
107
|
-
["secondary-600", "SECONDARY_600"],
|
|
108
|
-
["secondary-700", "SECONDARY_700"],
|
|
109
|
-
["secondary-800", "SECONDARY_800"],
|
|
110
|
-
["secondary-900", "SECONDARY_900"],
|
|
111
|
-
["success-50", "SUCCESS_50"],
|
|
112
|
-
["success-100", "SUCCESS_100"],
|
|
113
|
-
["success-200", "SUCCESS_200"],
|
|
114
|
-
["success-300", "SUCCESS_300"],
|
|
115
|
-
["success-400", "SUCCESS_400"],
|
|
116
|
-
["success-500", "SUCCESS_500"],
|
|
117
|
-
["success-600", "SUCCESS_600"],
|
|
118
|
-
["success-700", "SUCCESS_700"],
|
|
119
|
-
["success-800", "SUCCESS_800"],
|
|
120
|
-
["success-900", "SUCCESS_900"],
|
|
121
|
-
["danger-50", "DANGER_50"],
|
|
122
|
-
["danger-100", "DANGER_100"],
|
|
123
|
-
["danger-200", "DANGER_200"],
|
|
124
|
-
["danger-300", "DANGER_300"],
|
|
125
|
-
["danger-400", "DANGER_400"],
|
|
126
|
-
["danger-500", "DANGER_500"],
|
|
127
|
-
["danger-600", "DANGER_600"],
|
|
128
|
-
["danger-700", "DANGER_700"],
|
|
129
|
-
["danger-800", "DANGER_800"],
|
|
130
|
-
["danger-900", "DANGER_900"],
|
|
131
|
-
["warning-50", "WARNING_50"],
|
|
132
|
-
["warning-100", "WARNING_100"],
|
|
133
|
-
["warning-200", "WARNING_200"],
|
|
134
|
-
["warning-300", "WARNING_300"],
|
|
135
|
-
["warning-400", "WARNING_400"],
|
|
136
|
-
["warning-500", "WARNING_500"],
|
|
137
|
-
["warning-600", "WARNING_600"],
|
|
138
|
-
["warning-700", "WARNING_700"],
|
|
139
|
-
["warning-800", "WARNING_800"],
|
|
140
|
-
["warning-900", "WARNING_900"],
|
|
141
|
-
["background", "BACKGROUND"],
|
|
142
|
-
["font", "FONT"],
|
|
143
|
-
["currentColor", "CURRENT_COLOR"],
|
|
144
|
-
["transparent", "TRANSPARENT"],
|
|
145
|
-
])
|
|
146
|
-
|
|
147
|
-
const ColorsShort = ($color: LibColorsShort = "primary") =>
|
|
148
|
-
THEME[colorsShortMap.get($color) as keyof typeof THEME]
|
|
149
|
-
|
|
150
|
-
const AllColors = ($color: LibAllColors) =>
|
|
151
|
-
THEME[allColorsMap.get($color) as keyof typeof THEME]
|
|
152
|
-
|
|
153
|
-
const ColorsAndOverlays = ($color: LibAllColorsAndOverlays | undefined) => {
|
|
154
|
-
if (!$color) return null as any
|
|
155
|
-
|
|
156
|
-
const overlayColors = Object.keys(
|
|
157
|
-
designTokens.overlays
|
|
158
|
-
) as Array<LibOverlays>
|
|
159
|
-
|
|
160
|
-
if (overlayColors.find(c => c === $color)) {
|
|
161
|
-
return Mixins.Overlay($color as LibOverlays)
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
return Mixins.AllColors($color as LibAllColors, theme, themeName)
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
const ColorsHoverDefault = (
|
|
168
|
-
$color: LibColorsHoverAndCurrent = "primary"
|
|
169
|
-
) => {
|
|
170
|
-
if ($color === "currentColor") return "currentColor"
|
|
171
|
-
|
|
172
|
-
// @ts-ignore
|
|
173
|
-
const colorsMap = new Map<LibColorsHover, keyof typeof THEME>([
|
|
174
|
-
["primary", THEME.PRIMARY_500],
|
|
175
|
-
["secondary", THEME.SECONDARY_500],
|
|
176
|
-
["success", THEME.SUCCESS_500],
|
|
177
|
-
["danger", THEME.DANGER_500],
|
|
178
|
-
["warning", THEME.WARNING_500],
|
|
179
|
-
["white", THEME.WHITE],
|
|
180
|
-
["gray", THEME.GRAY_500],
|
|
181
|
-
["font", THEME.LINK_FONT_DEFAULT],
|
|
182
|
-
["background", THEME.LINK_BACKGROUND_DEFAULT],
|
|
183
|
-
])
|
|
184
|
-
|
|
185
|
-
return colorsMap.get($color)
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
const ColorsHoverHover = ($color: LibColorsHoverAndCurrent = "primary") => {
|
|
189
|
-
if ($color === "currentColor") return "currentColor"
|
|
190
|
-
|
|
191
|
-
// @ts-ignore
|
|
192
|
-
const colorsMap = new Map<LibColorsHover, keyof typeof THEME>([
|
|
193
|
-
["primary", THEME.PRIMARY_300],
|
|
194
|
-
["secondary", THEME.SECONDARY_300],
|
|
195
|
-
["success", THEME.SUCCESS_300],
|
|
196
|
-
["danger", THEME.DANGER_300],
|
|
197
|
-
["warning", THEME.WARNING_300],
|
|
198
|
-
["white", THEME.GRAY_300],
|
|
199
|
-
["gray", THEME.GRAY_300],
|
|
200
|
-
["font", THEME.LINK_FONT_HOVER],
|
|
201
|
-
["background", THEME.LINK_BACKGROUND_HOVER],
|
|
202
|
-
])
|
|
203
|
-
|
|
204
|
-
return colorsMap.get($color)
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
const ColorsHoverActive = (
|
|
208
|
-
$color: LibColorsHoverAndCurrent = "primary"
|
|
209
|
-
) => {
|
|
210
|
-
if ($color === "currentColor") return "currentColor"
|
|
211
|
-
// @ts-ignore
|
|
212
|
-
const colorsMap = new Map<LibColorsHover, keyof typeof THEME>([
|
|
213
|
-
["primary", THEME.PRIMARY_600],
|
|
214
|
-
["secondary", THEME.SECONDARY_600],
|
|
215
|
-
["success", THEME.SUCCESS_600],
|
|
216
|
-
["danger", THEME.DANGER_600],
|
|
217
|
-
["warning", THEME.WARNING_600],
|
|
218
|
-
["white", THEME.GRAY_100],
|
|
219
|
-
["gray", THEME.GRAY_600],
|
|
220
|
-
["font", THEME.LINK_FONT_ACTIVE],
|
|
221
|
-
["background", THEME.LINK_BACKGROUND_ACTIVE],
|
|
222
|
-
])
|
|
223
|
-
|
|
224
|
-
return colorsMap.get($color)
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
const ColorsGhostDefault = (
|
|
228
|
-
$color: LibColorsHoverAndCurrent = "primary"
|
|
229
|
-
) => {
|
|
230
|
-
if ($color === "currentColor") return "currentColor"
|
|
231
|
-
|
|
232
|
-
// @ts-ignore
|
|
233
|
-
const colorsMap = new Map<LibColorsHover, keyof typeof THEME>([
|
|
234
|
-
["primary", THEME.PRIMARY_50],
|
|
235
|
-
["secondary", THEME.SECONDARY_50],
|
|
236
|
-
["success", THEME.SUCCESS_50],
|
|
237
|
-
["danger", THEME.DANGER_50],
|
|
238
|
-
["warning", THEME.WARNING_50],
|
|
239
|
-
["white", THEME.GRAY_50],
|
|
240
|
-
["gray", THEME.GRAY_50],
|
|
241
|
-
["font", THEME.FONT_GHOST_DEFAULT],
|
|
242
|
-
["background", THEME.BACKGROUND_GHOST_DEFAULT],
|
|
243
|
-
])
|
|
244
|
-
|
|
245
|
-
return colorsMap.get($color)
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
const ColorsGhostHover = ($color: LibColorsHoverAndCurrent = "primary") => {
|
|
249
|
-
if ($color === "currentColor") return "currentColor"
|
|
250
|
-
|
|
251
|
-
// @ts-ignore
|
|
252
|
-
const colorsMap = new Map<LibColorsHover, keyof typeof THEME>([
|
|
253
|
-
["primary", THEME.PRIMARY_200],
|
|
254
|
-
["secondary", THEME.SECONDARY_200],
|
|
255
|
-
["success", THEME.SUCCESS_200],
|
|
256
|
-
["danger", THEME.DANGER_200],
|
|
257
|
-
["warning", THEME.WARNING_200],
|
|
258
|
-
["white", THEME.GRAY_200],
|
|
259
|
-
["gray", THEME.GRAY_200],
|
|
260
|
-
["font", THEME.FONT_GHOST_HOVER],
|
|
261
|
-
["background", THEME.BACKGROUND_GHOST_HOVER],
|
|
262
|
-
])
|
|
263
|
-
|
|
264
|
-
return colorsMap.get($color)
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
const ColorsGhostActive = (
|
|
268
|
-
$color: LibColorsHoverAndCurrent = "primary"
|
|
269
|
-
) => {
|
|
270
|
-
if ($color === "currentColor") return "currentColor"
|
|
271
|
-
|
|
272
|
-
// @ts-ignore
|
|
273
|
-
const colorsMap = new Map<LibColorsHover, keyof typeof THEME>([
|
|
274
|
-
["primary", THEME.PRIMARY_100],
|
|
275
|
-
["secondary", THEME.SECONDARY_100],
|
|
276
|
-
["success", THEME.SUCCESS_100],
|
|
277
|
-
["danger", THEME.DANGER_100],
|
|
278
|
-
["warning", THEME.WARNING_100],
|
|
279
|
-
["white", THEME.GRAY_100],
|
|
280
|
-
["gray", THEME.GRAY_100],
|
|
281
|
-
["font", THEME.FONT_GHOST_ACTIVE],
|
|
282
|
-
["background", THEME.BACKGROUND_GHOST_ACTIVE],
|
|
283
|
-
])
|
|
284
|
-
|
|
285
|
-
return colorsMap.get($color)
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
const Colors50 = (
|
|
289
|
-
$color: Exclude<LibColorsShort, "black" | "white"> = "primary"
|
|
290
|
-
) => {
|
|
291
|
-
// @ts-ignore
|
|
292
|
-
const colorsMap = new Map<LibColorsShort, keyof typeof THEME>([
|
|
293
|
-
["primary", THEME.PRIMARY_50],
|
|
294
|
-
["secondary", THEME.SECONDARY_50],
|
|
295
|
-
["success", THEME.SUCCESS_50],
|
|
296
|
-
["danger", THEME.DANGER_50],
|
|
297
|
-
["warning", THEME.WARNING_50],
|
|
298
|
-
["gray", THEME.GRAY_50],
|
|
299
|
-
])
|
|
300
|
-
|
|
301
|
-
return colorsMap.get($color)
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
return {
|
|
305
|
-
ColorsShort,
|
|
306
|
-
AllColors,
|
|
307
|
-
ColorsAndOverlays,
|
|
308
|
-
ColorsHoverDefault,
|
|
309
|
-
ColorsHoverHover,
|
|
310
|
-
ColorsHoverActive,
|
|
311
|
-
ColorsGhostDefault,
|
|
312
|
-
ColorsGhostHover,
|
|
313
|
-
ColorsGhostActive,
|
|
314
|
-
Colors50,
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
class mixins {
|
|
319
|
-
/**
|
|
320
|
-
* @description Returns any color from the library
|
|
321
|
-
* @param $color: Any color from the library
|
|
322
|
-
* @param theme?: Default theme
|
|
323
|
-
* @param themeName?: "light" | "dark"
|
|
324
|
-
* @example background-color: ${({ theme }) => Mixins.AllColors("primary", theme)}
|
|
325
|
-
*/
|
|
326
|
-
AllColors = (
|
|
327
|
-
$color: LibAllColors,
|
|
328
|
-
theme: DefaultTheme | null = COLORS_LIGHT,
|
|
329
|
-
themeName?: LibThemeNames
|
|
330
|
-
) => getColorMixinFromTheme(theme, themeName).AllColors($color)
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* @description Returns a color by short name
|
|
334
|
-
* @param $color: "primary" | "secondary" | "success" | "danger" | "warning" | "gray" | "black" | "white"
|
|
335
|
-
* @param theme?: Default theme
|
|
336
|
-
* @param themeName?: "light" | "dark"
|
|
337
|
-
* @example background-color: ${({ theme }) => Mixins.ColorsShort("secondary", theme)}
|
|
338
|
-
*/
|
|
339
|
-
ColorsShort = (
|
|
340
|
-
$color: LibColorsShort,
|
|
341
|
-
theme: DefaultTheme | null = COLORS_LIGHT,
|
|
342
|
-
themeName?: LibThemeNames
|
|
343
|
-
) => getColorMixinFromTheme(theme, themeName).ColorsShort($color)
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* @description Returns any color or overlay from the library
|
|
347
|
-
* @param $color: Any color or overlay from the library
|
|
348
|
-
* @param theme?: Default theme
|
|
349
|
-
* @param themeName?: "light" | "dark"
|
|
350
|
-
* @example background-color: ${({ theme }) => Mixins.ColorsAndOverlays("gray-200", theme)}
|
|
351
|
-
*/
|
|
352
|
-
ColorsAndOverlays = (
|
|
353
|
-
$color: LibAllColorsAndOverlays | undefined,
|
|
354
|
-
theme: DefaultTheme | null = COLORS_LIGHT,
|
|
355
|
-
themeName?: LibThemeNames
|
|
356
|
-
) => getColorMixinFromTheme(theme, themeName).ColorsAndOverlays($color)
|
|
357
|
-
|
|
358
|
-
/**
|
|
359
|
-
* @description Returns a color for components changing on hover, default state
|
|
360
|
-
* @param $color: "primary" | "secondary" | "success" | "danger" | "warning" | "white" | "gray" | "font" | "background" | "currentColor"
|
|
361
|
-
* @param theme?: Default theme
|
|
362
|
-
* @param themeName?: "light" | "dark"
|
|
363
|
-
* @example background-color: ${({ theme }) => Mixins.ColorsHoverDefault("success", theme)}
|
|
364
|
-
*/
|
|
365
|
-
ColorsHoverDefault = (
|
|
366
|
-
$color: LibColorsHoverAndCurrent,
|
|
367
|
-
theme: DefaultTheme | null = COLORS_LIGHT,
|
|
368
|
-
themeName?: LibThemeNames
|
|
369
|
-
) => getColorMixinFromTheme(theme, themeName).ColorsHoverDefault($color)
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* @description Returns a color for components changing on hover, hover state
|
|
373
|
-
* @param $color: "primary" | "secondary" | "success" | "danger" | "warning" | "white" | "gray" | "font" | "background" | "currentColor"
|
|
374
|
-
* @param theme?: Default theme
|
|
375
|
-
* @param themeName?: "light" | "dark"
|
|
376
|
-
* @example background-color: ${({ theme }) => Mixins.ColorsHoverHover("success", theme)}
|
|
377
|
-
*/
|
|
378
|
-
ColorsHoverHover = (
|
|
379
|
-
$color: LibColorsHoverAndCurrent,
|
|
380
|
-
theme: DefaultTheme | null = COLORS_LIGHT,
|
|
381
|
-
themeName?: LibThemeNames
|
|
382
|
-
) => getColorMixinFromTheme(theme, themeName).ColorsHoverHover($color)
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* @description Returns a color for components changing on hover, active state
|
|
386
|
-
* @param $color: "primary" | "secondary" | "success" | "danger" | "warning" | "white" | "gray" | "font" | "background" | "currentColor"
|
|
387
|
-
* @param theme?: Default theme
|
|
388
|
-
* @param themeName?: "light" | "dark"
|
|
389
|
-
* @example background-color: ${({ theme }) => Mixins.ColorsHoverActive("success", theme)}
|
|
390
|
-
*/
|
|
391
|
-
ColorsHoverActive = (
|
|
392
|
-
$color: LibColorsHoverAndCurrent,
|
|
393
|
-
theme: DefaultTheme | null = COLORS_LIGHT,
|
|
394
|
-
themeName?: LibThemeNames
|
|
395
|
-
) => getColorMixinFromTheme(theme, themeName).ColorsHoverActive($color)
|
|
396
|
-
|
|
397
|
-
/**
|
|
398
|
-
* @description Returns a color for components changing on hover with ghost colors, default state
|
|
399
|
-
* @param $color: "primary" | "secondary" | "success" | "danger" | "warning" | "white" | "gray" | "font" | "background" | "currentColor"
|
|
400
|
-
* @param theme?: Default theme
|
|
401
|
-
* @param themeName?: "light" | "dark"
|
|
402
|
-
* @example background-color: ${({ theme }) => Mixins.ColorsGhostDefault("danger", theme)}
|
|
403
|
-
*/
|
|
404
|
-
ColorsGhostDefault = (
|
|
405
|
-
$color: LibColorsHoverAndCurrent,
|
|
406
|
-
theme: DefaultTheme | null = COLORS_LIGHT,
|
|
407
|
-
themeName?: LibThemeNames
|
|
408
|
-
) => getColorMixinFromTheme(theme, themeName).ColorsGhostDefault($color)
|
|
409
|
-
|
|
410
|
-
/**
|
|
411
|
-
* @description Returns a color for components changing on hover with ghost colors, hover state
|
|
412
|
-
* @param $color: "primary" | "secondary" | "success" | "danger" | "warning" | "white" | "gray" | "font" | "background" | "currentColor"
|
|
413
|
-
* @param theme?: Default theme
|
|
414
|
-
* @param themeName?: "light" | "dark"
|
|
415
|
-
* @example background-color: ${({ theme }) => Mixins.ColorsGhostHover("danger", theme)}
|
|
416
|
-
*/
|
|
417
|
-
ColorsGhostHover = (
|
|
418
|
-
$color: LibColorsHoverAndCurrent,
|
|
419
|
-
theme: DefaultTheme | null = COLORS_LIGHT,
|
|
420
|
-
themeName?: LibThemeNames
|
|
421
|
-
) => getColorMixinFromTheme(theme, themeName).ColorsGhostHover($color)
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* @description Returns a color for components changing on hover with ghost colors, active state
|
|
425
|
-
* @param $color: "primary" | "secondary" | "success" | "danger" | "warning" | "white" | "gray" | "font" | "background" | "currentColor"
|
|
426
|
-
* @param theme?: Default theme
|
|
427
|
-
* @param themeName?: "light" | "dark"
|
|
428
|
-
* @example background-color: ${({ theme }) => Mixins.ColorsGhostActive("danger", theme)}
|
|
429
|
-
*/
|
|
430
|
-
ColorsGhostActive = (
|
|
431
|
-
$color: LibColorsHoverAndCurrent,
|
|
432
|
-
theme: DefaultTheme | null = COLORS_LIGHT,
|
|
433
|
-
themeName?: LibThemeNames
|
|
434
|
-
) => getColorMixinFromTheme(theme, themeName).ColorsGhostActive($color)
|
|
435
|
-
|
|
436
|
-
/**
|
|
437
|
-
* @description Returns one of the colors 50
|
|
438
|
-
* @param $color: "primary" | "secondary" | "success" | "danger" | "warning" | "gray"
|
|
439
|
-
* @param theme?: Default theme
|
|
440
|
-
* @param themeName?: "light" | "dark"
|
|
441
|
-
* @example background-color: ${({ theme }) => Mixins.Colors50("secondary", theme)}
|
|
442
|
-
*/
|
|
443
|
-
Colors50 = (
|
|
444
|
-
$color: Exclude<LibColorsShort, "black" | "white">,
|
|
445
|
-
theme: DefaultTheme | null = COLORS_LIGHT,
|
|
446
|
-
themeName?: LibThemeNames
|
|
447
|
-
) => getColorMixinFromTheme(theme, themeName).Colors50($color)
|
|
448
|
-
|
|
449
|
-
/**
|
|
450
|
-
* @description Returns an icon mixin component
|
|
451
|
-
* @prop $name: string
|
|
452
|
-
* @prop $color?: Any color from the library
|
|
453
|
-
* @prop $size?: number
|
|
454
|
-
*/
|
|
455
|
-
Icon = ({
|
|
456
|
-
$name,
|
|
457
|
-
$color = "currentColor",
|
|
458
|
-
$size = 16,
|
|
459
|
-
$isLibIcon,
|
|
460
|
-
}: ILibIconMixin) => {
|
|
461
|
-
const iconURL = $isLibIcon ? $name : `/icons/${$name}.svg`
|
|
462
|
-
|
|
463
|
-
return css`
|
|
464
|
-
content: "";
|
|
465
|
-
background-color: ${({ theme }) => Mixins.AllColors($color, theme)};
|
|
466
|
-
-webkit-mask-image: url(${iconURL});
|
|
467
|
-
-webkit-mask-size: cover;
|
|
468
|
-
mask-image: url(${$isLibIcon ? $name : `/icons/${$name}.svg`});
|
|
469
|
-
mask-size: cover;
|
|
470
|
-
width: ${$size}px;
|
|
471
|
-
height: ${$size}px;
|
|
472
|
-
display: inline-block;
|
|
473
|
-
`
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
/**
|
|
477
|
-
* @description Returns an overlay from the library
|
|
478
|
-
* @param $overlay?: "black-50" | "black-80" | "white-50" | "white-80" | "gradient-black" | "gradient-white"
|
|
479
|
-
*/
|
|
480
|
-
Overlay = ($overlay: LibOverlays | undefined) => {
|
|
481
|
-
if (!$overlay) return null
|
|
482
|
-
|
|
483
|
-
return overlaysMap.get($overlay)
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* @description Returns a border radius with the radiuses from the library
|
|
488
|
-
* @param $borderRadius: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "round" | "circle" | number | { topLeft?: LibRadiuses; topRight?: LibRadiuses; bottomLeft?: LibRadiuses; bottomRight?: LibRadiuses }
|
|
489
|
-
*/
|
|
490
|
-
BorderRadius = ($borderRadius: ILibRadius | undefined) => {
|
|
491
|
-
if (!$borderRadius) return null
|
|
492
|
-
|
|
493
|
-
const radiusMap = new Map<ILibRadius, RADIUSES>([
|
|
494
|
-
["xxl", RADIUSES.XXL],
|
|
495
|
-
["xl", RADIUSES.XL],
|
|
496
|
-
["l", RADIUSES.L],
|
|
497
|
-
["m", RADIUSES.M],
|
|
498
|
-
["s", RADIUSES.S],
|
|
499
|
-
["xs", RADIUSES.XS],
|
|
500
|
-
["round", RADIUSES.ROUND],
|
|
501
|
-
["circle", RADIUSES.CIRCLE],
|
|
502
|
-
])
|
|
503
|
-
|
|
504
|
-
const getRadius = ($radius: LibRadiuses) =>
|
|
505
|
-
typeof $radius === "number"
|
|
506
|
-
? stringifyPx($radius)
|
|
507
|
-
: radiusMap.get($radius)
|
|
508
|
-
|
|
509
|
-
if (
|
|
510
|
-
typeof $borderRadius === "number" ||
|
|
511
|
-
typeof $borderRadius === "string"
|
|
512
|
-
)
|
|
513
|
-
return css`
|
|
514
|
-
border-radius: ${getRadius($borderRadius)};
|
|
515
|
-
`
|
|
516
|
-
|
|
517
|
-
const { topLeft, topRight, bottomLeft, bottomRight } = $borderRadius
|
|
518
|
-
|
|
519
|
-
return css`
|
|
520
|
-
border-top-left-radius: ${topLeft && getRadius(topLeft)};
|
|
521
|
-
border-top-right-radius: ${topRight && getRadius(topRight)};
|
|
522
|
-
border-bottom-left-radius: ${bottomLeft && getRadius(bottomLeft)};
|
|
523
|
-
border-bottom-right-radius: ${bottomRight &&
|
|
524
|
-
getRadius(bottomRight)};
|
|
525
|
-
`
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
/**
|
|
529
|
-
* @description Returns a transition from the library
|
|
530
|
-
* @param $transition: "short" | "long" | "bezier"
|
|
531
|
-
*/
|
|
532
|
-
Transition = ($transition: LibTransitions | undefined) => {
|
|
533
|
-
if (!$transition) return null
|
|
534
|
-
|
|
535
|
-
const transitionsMap = new Map<LibTransitions, TRANSITIONS>([
|
|
536
|
-
["short", TRANSITIONS.SHORT],
|
|
537
|
-
["long", TRANSITIONS.LONG],
|
|
538
|
-
["bezier", TRANSITIONS.BEZIER],
|
|
539
|
-
])
|
|
540
|
-
|
|
541
|
-
return transitionsMap.get($transition)
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
/**
|
|
545
|
-
* @description Returns a shadow from the library
|
|
546
|
-
* @param $shadow "xxl" | "xl" | "l" | "m" | "s" | "xs"
|
|
547
|
-
*/
|
|
548
|
-
Shadow = ($shadow: LibShadows | undefined) => {
|
|
549
|
-
if (!$shadow) return null
|
|
550
|
-
|
|
551
|
-
const shadowMap = new Map<LibShadows, SHADOWS>([
|
|
552
|
-
["xxl", SHADOWS.XXL],
|
|
553
|
-
["xl", SHADOWS.XL],
|
|
554
|
-
["l", SHADOWS.L],
|
|
555
|
-
["m", SHADOWS.M],
|
|
556
|
-
["s", SHADOWS.S],
|
|
557
|
-
["xs", SHADOWS.XS],
|
|
558
|
-
])
|
|
559
|
-
|
|
560
|
-
return shadowMap.get($shadow)
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
/**
|
|
564
|
-
* @description Returns a box shadow
|
|
565
|
-
* @param $boxShadow "xxl" | "xl" | "l" | "m" | "s" | "xs" | { default: LibShadows; hover: LibShadows; active: LibShadows }
|
|
566
|
-
*/
|
|
567
|
-
BoxShadow = ($boxShadow?: ILibBoxShadow) => {
|
|
568
|
-
if (!$boxShadow) return null
|
|
569
|
-
|
|
570
|
-
if (typeof $boxShadow === "string")
|
|
571
|
-
return css`
|
|
572
|
-
box-shadow: ${Mixins.Shadow($boxShadow)};
|
|
573
|
-
`
|
|
574
|
-
|
|
575
|
-
return css`
|
|
576
|
-
box-shadow: ${Mixins.Shadow($boxShadow.default)};
|
|
577
|
-
|
|
578
|
-
&:hover {
|
|
579
|
-
box-shadow: ${Mixins.Shadow($boxShadow.hover)};
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
&:active {
|
|
583
|
-
box-shadow: ${Mixins.Shadow($boxShadow.active)};
|
|
584
|
-
}
|
|
585
|
-
`
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
/**
|
|
589
|
-
* @description Returns a font size from the library
|
|
590
|
-
* @param $fontSize "display-h1" | "display-h2" | "display-h3" | "display-h4" | "display-h5" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "body" | "small" | "inherit" | number
|
|
591
|
-
*/
|
|
592
|
-
FontSize = (
|
|
593
|
-
$fontSize: LibFontSizes | "inherit" | number | undefined = "body"
|
|
594
|
-
) => {
|
|
595
|
-
if (!$fontSize) return null
|
|
596
|
-
|
|
597
|
-
if (typeof $fontSize === "number") return stringifyPx($fontSize)
|
|
598
|
-
|
|
599
|
-
const fontSizesMap = new Map<
|
|
600
|
-
LibFontSizes | "inherit",
|
|
601
|
-
FONT_SIZES | "inherit"
|
|
602
|
-
>([
|
|
603
|
-
["display-h1", FONT_SIZES.DISPLAY_H1],
|
|
604
|
-
["display-h2", FONT_SIZES.DISPLAY_H2],
|
|
605
|
-
["display-h3", FONT_SIZES.DISPLAY_H3],
|
|
606
|
-
["display-h4", FONT_SIZES.DISPLAY_H4],
|
|
607
|
-
["display-h5", FONT_SIZES.DISPLAY_H5],
|
|
608
|
-
["h1", FONT_SIZES.H1],
|
|
609
|
-
["h2", FONT_SIZES.H2],
|
|
610
|
-
["h3", FONT_SIZES.H3],
|
|
611
|
-
["h4", FONT_SIZES.H4],
|
|
612
|
-
["h5", FONT_SIZES.H5],
|
|
613
|
-
["h6", FONT_SIZES.H6],
|
|
614
|
-
["body", FONT_SIZES.BODY],
|
|
615
|
-
["small", FONT_SIZES.SMALL],
|
|
616
|
-
["inherit", "inherit"],
|
|
617
|
-
])
|
|
618
|
-
|
|
619
|
-
return fontSizesMap.get($fontSize)
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
/**
|
|
623
|
-
* @description Returns a font weight from the library
|
|
624
|
-
* @param $fontWeight: "regular" | "bold" | "black"
|
|
625
|
-
*/
|
|
626
|
-
FontWeight = ($fontWeight: LibFontWeights = "regular") => {
|
|
627
|
-
if (!$fontWeight) return null
|
|
628
|
-
|
|
629
|
-
const fontWeightsMap = new Map<LibFontWeights, FONT_WEIGHTS>([
|
|
630
|
-
["regular", FONT_WEIGHTS.REGULAR],
|
|
631
|
-
["bold", FONT_WEIGHTS.BOLD],
|
|
632
|
-
["black", FONT_WEIGHTS.BLACK],
|
|
633
|
-
])
|
|
634
|
-
|
|
635
|
-
return fontWeightsMap.get($fontWeight)
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
/**
|
|
639
|
-
* @description Returns a spacer from the library
|
|
640
|
-
* @param $spacer: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "xxs" | number | "0px" | "auto"
|
|
641
|
-
*/
|
|
642
|
-
Spacer = ($spacer: LibSpacers | "auto" | undefined) => {
|
|
643
|
-
if (!$spacer) return null
|
|
644
|
-
|
|
645
|
-
if (typeof $spacer === "number") return stringifyPx($spacer)
|
|
646
|
-
|
|
647
|
-
if ($spacer === "0px") return "0px"
|
|
648
|
-
|
|
649
|
-
const spacersMap = new Map<LibSpacers | "auto", SPACERS | "auto">([
|
|
650
|
-
["xxl", SPACERS.XXL],
|
|
651
|
-
["xl", SPACERS.XL],
|
|
652
|
-
["l", SPACERS.L],
|
|
653
|
-
["m", SPACERS.M],
|
|
654
|
-
["s", SPACERS.S],
|
|
655
|
-
["xs", SPACERS.XS],
|
|
656
|
-
["xxs", SPACERS.XXS],
|
|
657
|
-
["auto", "auto"],
|
|
658
|
-
])
|
|
659
|
-
|
|
660
|
-
return spacersMap.get($spacer)
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
/**
|
|
664
|
-
* @description Shorthand to hide a scroolbar in CSS
|
|
665
|
-
*/
|
|
666
|
-
HideScrollbar = css`
|
|
667
|
-
-ms-overflow-style: none;
|
|
668
|
-
scrollbar-width: none;
|
|
669
|
-
|
|
670
|
-
&::-webkit-scrollbar {
|
|
671
|
-
display: none;
|
|
672
|
-
}
|
|
673
|
-
`
|
|
674
|
-
|
|
675
|
-
/**
|
|
676
|
-
* @description Shorthand to stretch all the tags inside the Wrapper / Wain / Aside compoents
|
|
677
|
-
*/
|
|
678
|
-
StretchTags = css`
|
|
679
|
-
& > div,
|
|
680
|
-
& > h1,
|
|
681
|
-
& > h2,
|
|
682
|
-
& > h3,
|
|
683
|
-
& > h4,
|
|
684
|
-
& > h5,
|
|
685
|
-
& > h6,
|
|
686
|
-
& > p,
|
|
687
|
-
& > ul,
|
|
688
|
-
& > ol,
|
|
689
|
-
& > dl,
|
|
690
|
-
& > section,
|
|
691
|
-
& > input,
|
|
692
|
-
& > article,
|
|
693
|
-
& > hr,
|
|
694
|
-
& > pre,
|
|
695
|
-
& > table,
|
|
696
|
-
& > header,
|
|
697
|
-
& > footer,
|
|
698
|
-
& > iframe,
|
|
699
|
-
& > nav,
|
|
700
|
-
& > noscript,
|
|
701
|
-
& > picture,
|
|
702
|
-
& > select,
|
|
703
|
-
& > textarea,
|
|
704
|
-
& > form {
|
|
705
|
-
align-self: stretch;
|
|
706
|
-
}
|
|
707
|
-
`
|
|
708
|
-
|
|
709
|
-
/**
|
|
710
|
-
* @description Adds padding to element
|
|
711
|
-
* @argument $padding: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "xxs" | number | "0px" | { left?: LibSpacers | "auto"; top?: LibSpacers | "auto"; right?: LibSpacers | "auto"; bottom?: LibSpacers | "auto"; leftRight?: LibSpacers | "auto"; topBottom?: LibSpacers | "auto" }
|
|
712
|
-
*/
|
|
713
|
-
Padding = ($padding: ILibPadding | undefined) => {
|
|
714
|
-
if (!$padding) return null
|
|
715
|
-
|
|
716
|
-
if (typeof $padding === "string" || typeof $padding === "number")
|
|
717
|
-
return css`
|
|
718
|
-
padding: ${Mixins.Spacer($padding)};
|
|
719
|
-
`
|
|
720
|
-
|
|
721
|
-
return css`
|
|
722
|
-
padding-left: ${($padding?.left || $padding?.leftRight) &&
|
|
723
|
-
Mixins.Spacer($padding?.left || $padding?.leftRight)};
|
|
724
|
-
padding-top: ${($padding?.top || $padding?.topBottom) &&
|
|
725
|
-
Mixins.Spacer($padding?.top || $padding?.topBottom)};
|
|
726
|
-
padding-right: ${($padding?.right || $padding?.leftRight) &&
|
|
727
|
-
Mixins.Spacer($padding?.right || $padding?.leftRight)};
|
|
728
|
-
padding-bottom: ${($padding?.bottom || $padding?.topBottom) &&
|
|
729
|
-
Mixins.Spacer($padding?.bottom || $padding?.topBottom)};
|
|
730
|
-
`
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
/**
|
|
734
|
-
* @description Adds margins to element
|
|
735
|
-
* @argument $margin: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "xxs" | number | "0px" | "auto" | "0 auto" | { left?: LibSpacers | "auto"; top?: LibSpacers | "auto"; right?: LibSpacers | "auto"; bottom?: LibSpacers | "auto"; leftRight?: LibSpacers | "auto"; topBottom?: LibSpacers | "auto" }
|
|
736
|
-
*/
|
|
737
|
-
Margin = ($margin: ILibMargin) => {
|
|
738
|
-
if (!$margin) return null
|
|
739
|
-
|
|
740
|
-
if ($margin === "0 auto")
|
|
741
|
-
return css`
|
|
742
|
-
margin: 0 auto;
|
|
743
|
-
`
|
|
744
|
-
|
|
745
|
-
if (typeof $margin === "string" || typeof $margin === "number")
|
|
746
|
-
return css`
|
|
747
|
-
margin: ${Mixins.Spacer($margin)};
|
|
748
|
-
`
|
|
749
|
-
|
|
750
|
-
return css`
|
|
751
|
-
margin-left: ${($margin?.left || $margin?.leftRight) &&
|
|
752
|
-
Mixins.Spacer($margin?.left || $margin?.leftRight)};
|
|
753
|
-
margin-top: ${($margin?.top || $margin?.topBottom) &&
|
|
754
|
-
Mixins.Spacer($margin?.top || $margin?.topBottom)};
|
|
755
|
-
margin-right: ${($margin?.right || $margin?.leftRight) &&
|
|
756
|
-
Mixins.Spacer($margin?.right || $margin?.leftRight)};
|
|
757
|
-
margin-bottom: ${($margin?.bottom || $margin?.topBottom) &&
|
|
758
|
-
Mixins.Spacer($margin?.bottom || $margin?.topBottom)};
|
|
759
|
-
`
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
/**
|
|
763
|
-
* @description Mixin for components using CSS Grid
|
|
764
|
-
* @prop $inline?: boolean
|
|
765
|
-
* @prop $col?: number | string
|
|
766
|
-
* @prop $gap?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "xxs" | number | "0px"
|
|
767
|
-
* @prop $columnGap?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "xxs" | number | "0px"
|
|
768
|
-
* @prop $rowGap?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "xxs" | number | "0px"
|
|
769
|
-
* @prop $justifyItems?: CssJustifyItems
|
|
770
|
-
* @prop $alignItems?: CssAlignItems
|
|
771
|
-
* @prop $justifyContent?: CssJustifyContent
|
|
772
|
-
* @prop $alignContent?: CssAlignContent
|
|
773
|
-
*/
|
|
774
|
-
Grid = ({
|
|
775
|
-
$inline,
|
|
776
|
-
$col,
|
|
777
|
-
$gap,
|
|
778
|
-
$columnGap,
|
|
779
|
-
$rowGap,
|
|
780
|
-
$justifyItems,
|
|
781
|
-
$alignItems,
|
|
782
|
-
$justifyContent,
|
|
783
|
-
$alignContent,
|
|
784
|
-
$padding,
|
|
785
|
-
}: {
|
|
786
|
-
$inline?: boolean
|
|
787
|
-
$col?: number | string
|
|
788
|
-
$gap?: LibSpacers
|
|
789
|
-
$columnGap?: LibSpacers
|
|
790
|
-
$rowGap?: LibSpacers
|
|
791
|
-
$justifyItems?: CssJustifyItems
|
|
792
|
-
$alignItems?: CssAlignItems
|
|
793
|
-
$justifyContent?: CssJustifyContent
|
|
794
|
-
$alignContent?: CssAlignContent
|
|
795
|
-
$padding?: ILibPadding
|
|
796
|
-
}) => css`
|
|
797
|
-
display: ${$inline ? "inline-grid" : "grid"};
|
|
798
|
-
grid-template-columns: ${$col && typeof $col === "number"
|
|
799
|
-
? `repeat(${$col}, 1fr)`
|
|
800
|
-
: $col};
|
|
801
|
-
gap: ${$gap && Mixins.Spacer($gap)};
|
|
802
|
-
column-gap: ${$columnGap && Mixins.Spacer($columnGap)};
|
|
803
|
-
row-gap: ${$rowGap && Mixins.Spacer($rowGap)};
|
|
804
|
-
justify-content: ${$justifyContent};
|
|
805
|
-
justify-items: ${$justifyItems};
|
|
806
|
-
align-items: ${$alignItems};
|
|
807
|
-
align-content: ${$alignContent};
|
|
808
|
-
${Mixins.Padding($padding)}
|
|
809
|
-
`
|
|
810
|
-
|
|
811
|
-
/**
|
|
812
|
-
* @description Mixin for components using CSS Flexbox
|
|
813
|
-
* @prop $inline?: boolean
|
|
814
|
-
* @prop $flexDirection?: CssFlexDirection
|
|
815
|
-
* @prop $flexWrap?: CssFlexWrap
|
|
816
|
-
* @prop $justifyContent?: CssJustifyContent
|
|
817
|
-
* @prop $alignItems?: CssAlignItems
|
|
818
|
-
* @prop $justifyItems?: CssJustifyItems
|
|
819
|
-
* @prop $alignContent?: CssAlignContent
|
|
820
|
-
* @prop $gap?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "xxs" | number | "0px"
|
|
821
|
-
* @prop $columnGap?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "xxs" | number | "0px"
|
|
822
|
-
* @prop $rowGap?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "xxs" | number | "0px"
|
|
823
|
-
*/
|
|
824
|
-
Flexbox = ({
|
|
825
|
-
$inline,
|
|
826
|
-
$flexDirection,
|
|
827
|
-
$flexWrap,
|
|
828
|
-
$justifyContent,
|
|
829
|
-
$alignItems,
|
|
830
|
-
$justifyItems,
|
|
831
|
-
$alignContent,
|
|
832
|
-
$gap,
|
|
833
|
-
$columnGap,
|
|
834
|
-
$rowGap,
|
|
835
|
-
$padding,
|
|
836
|
-
}: {
|
|
837
|
-
$inline?: boolean
|
|
838
|
-
$flexDirection?: CssFlexDirection
|
|
839
|
-
$flexWrap?: CssFlexWrap
|
|
840
|
-
$justifyContent?: CssJustifyContent
|
|
841
|
-
$alignItems?: CssAlignItems
|
|
842
|
-
$justifyItems?: CssJustifyItems
|
|
843
|
-
$alignContent?: CssAlignContent
|
|
844
|
-
$gap?: LibSpacers
|
|
845
|
-
$columnGap?: LibSpacers
|
|
846
|
-
$rowGap?: LibSpacers
|
|
847
|
-
$padding?: ILibPadding
|
|
848
|
-
}) => css`
|
|
849
|
-
display: ${$inline ? "inline-flex" : "flex"};
|
|
850
|
-
flex-direction: ${$flexDirection};
|
|
851
|
-
flex-wrap: ${$flexWrap};
|
|
852
|
-
justify-content: ${$justifyContent};
|
|
853
|
-
justify-items: ${$justifyItems};
|
|
854
|
-
align-items: ${$alignItems};
|
|
855
|
-
align-content: ${$alignContent};
|
|
856
|
-
gap: ${$gap && Mixins.Spacer($gap)};
|
|
857
|
-
column-gap: ${$columnGap && Mixins.Spacer($columnGap)};
|
|
858
|
-
row-gap: ${$rowGap && Mixins.Spacer($rowGap)};
|
|
859
|
-
${Mixins.Padding($padding)}
|
|
860
|
-
`
|
|
861
|
-
|
|
862
|
-
/**
|
|
863
|
-
* @description Adds border to element
|
|
864
|
-
* @prop style?: CssBorderStyle
|
|
865
|
-
* @prop width?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "xxs" | number | "0px"
|
|
866
|
-
* @prop color?: Any color from the library
|
|
867
|
-
*/
|
|
868
|
-
Border = ($border?: ILibBorder) => {
|
|
869
|
-
if (!$border) return null
|
|
870
|
-
|
|
871
|
-
const { style, width, color } = $border
|
|
872
|
-
|
|
873
|
-
const borderValues: ILibBorder = {
|
|
874
|
-
style: style || "solid",
|
|
875
|
-
width: width || 1,
|
|
876
|
-
color: color || "gray-200",
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
return css`
|
|
880
|
-
border-style: ${borderValues.style};
|
|
881
|
-
border-width: ${Mixins.Spacer(borderValues.width)};
|
|
882
|
-
border-color: ${({ theme }) =>
|
|
883
|
-
Mixins.AllColors(borderValues.color as LibAllColors, theme)};
|
|
884
|
-
`
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
/**
|
|
888
|
-
* @description Adds outline to element
|
|
889
|
-
* @prop style?: CssOutlineStyle
|
|
890
|
-
* @prop width?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "xxs" | number | "0px"
|
|
891
|
-
* @prop color?: Any color from the library
|
|
892
|
-
*/
|
|
893
|
-
Outline = ($outline?: ILibOutline) => {
|
|
894
|
-
if (!$outline) return null
|
|
895
|
-
|
|
896
|
-
const { style, width, color } = $outline
|
|
897
|
-
|
|
898
|
-
const outlineValues: ILibBorder = {
|
|
899
|
-
style: style || "solid",
|
|
900
|
-
width: width || 1,
|
|
901
|
-
color: color || "white",
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
return css`
|
|
905
|
-
outline-style: ${outlineValues.style};
|
|
906
|
-
outline-width: ${Mixins.Spacer(outlineValues.width)};
|
|
907
|
-
outline-color: ${({ theme }) =>
|
|
908
|
-
Mixins.AllColors(outlineValues.color as LibAllColors, theme)};
|
|
909
|
-
`
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
/**
|
|
913
|
-
* @description Adds background-image to element
|
|
914
|
-
* @prop img: string
|
|
915
|
-
* @prop clip?: CssBackgroundClip
|
|
916
|
-
* @prop origin?: CssBackgroundOrigin
|
|
917
|
-
* @prop position?: CssBackgroundPosition
|
|
918
|
-
* @prop repeat?: CssBackgroundRepeat
|
|
919
|
-
* @prop size?: CssBackgroundSize
|
|
920
|
-
*/
|
|
921
|
-
BackgroundImage = ({
|
|
922
|
-
$img,
|
|
923
|
-
$clip,
|
|
924
|
-
$origin = "border-box",
|
|
925
|
-
$position = "center",
|
|
926
|
-
$repeat = "no-repeat",
|
|
927
|
-
$size = "cover",
|
|
928
|
-
}: {
|
|
929
|
-
$img: string
|
|
930
|
-
$clip?: Property.BackgroundClip
|
|
931
|
-
$origin?: Property.BackgroundOrigin
|
|
932
|
-
$position?: Property.BackgroundPosition
|
|
933
|
-
$repeat?: Property.BackgroundRepeat
|
|
934
|
-
$size?: Property.BackgroundSize
|
|
935
|
-
}) => {
|
|
936
|
-
if (!$img) return null
|
|
937
|
-
|
|
938
|
-
return css`
|
|
939
|
-
background-image: url(${$img});
|
|
940
|
-
background-origin: ${$origin};
|
|
941
|
-
background-position: ${$position};
|
|
942
|
-
background-repeat: ${$repeat};
|
|
943
|
-
background-size: ${$size};
|
|
944
|
-
|
|
945
|
-
${$clip &&
|
|
946
|
-
($clip === "text"
|
|
947
|
-
? css`
|
|
948
|
-
background-clip: text;
|
|
949
|
-
-webkit-background-clip: text;
|
|
950
|
-
color: transparent;
|
|
951
|
-
`
|
|
952
|
-
: css`
|
|
953
|
-
background-clip: ${$clip};
|
|
954
|
-
`)}
|
|
955
|
-
`
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
/**
|
|
959
|
-
* @description Adds position to element
|
|
960
|
-
* @prop $position?: "relative" | "absolute" | "fixed"
|
|
961
|
-
* @prop $left?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "xxs" | number | "0px"
|
|
962
|
-
* @prop $top?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "xxs" | number | "0px"
|
|
963
|
-
* @prop $right?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "xxs" | number | "0px"
|
|
964
|
-
* @prop $bottom?: "xxl" | "xl" | "l" | "m" | "s" | "xs" | "xxs" | number | "0px"
|
|
965
|
-
*/
|
|
966
|
-
Position = ({
|
|
967
|
-
$position,
|
|
968
|
-
$left,
|
|
969
|
-
$top,
|
|
970
|
-
$right,
|
|
971
|
-
$bottom,
|
|
972
|
-
$zIndex,
|
|
973
|
-
}: {
|
|
974
|
-
$position?: LibPositionExtract
|
|
975
|
-
$left?: LibSpacers | "unset"
|
|
976
|
-
$top?: LibSpacers | "unset"
|
|
977
|
-
$right?: LibSpacers | "unset"
|
|
978
|
-
$bottom?: LibSpacers | "unset"
|
|
979
|
-
$zIndex?: number
|
|
980
|
-
}) => css`
|
|
981
|
-
position: ${$position};
|
|
982
|
-
left: ${$left && $left !== "unset" && Mixins.Spacer($left)};
|
|
983
|
-
top: ${$top && $top !== "unset" && Mixins.Spacer($top)};
|
|
984
|
-
right: ${$right && $right !== "unset" && Mixins.Spacer($right)};
|
|
985
|
-
bottom: ${$bottom && $bottom !== "unset" && Mixins.Spacer($bottom)};
|
|
986
|
-
z-index: ${$zIndex};
|
|
987
|
-
`
|
|
988
|
-
}
|
|
989
|
-
|
|
990
|
-
export const Mixins = new mixins()
|