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