@julseb-lib/react 0.0.51 → 0.0.52

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.
Files changed (1132) hide show
  1. package/dist/index-BibeNxro.js +23522 -0
  2. package/dist/index-CGKwmKg1.cjs +4142 -0
  3. package/dist/julseb-lib-react.cjs.js +1 -0
  4. package/dist/julseb-lib-react.es.d.ts +1 -0
  5. package/dist/julseb-lib-react.es.js +207 -0
  6. package/dist/julseb-lib-react.umd.js +4148 -0
  7. package/dist/styles-CN8Ocssg.js +15 -0
  8. package/dist/styles-CYn3EVay.cjs +7 -0
  9. package/dist/types/component-items.d.ts +438 -0
  10. package/dist/types/component-items.js +2 -0
  11. package/dist/types/generate-int-range.d.ts +7 -0
  12. package/dist/types/generate-int-range.js +3 -0
  13. package/dist/types/global.d.ts +350 -0
  14. package/dist/types/global.js +2 -0
  15. package/dist/types/index.d.ts +5 -0
  16. package/dist/types/index.js +6 -0
  17. package/dist/types/require-at-least-one.d.ts +3 -0
  18. package/dist/types/require-at-least-one.js +1 -0
  19. package/dist/types/type-values.d.ts +2285 -0
  20. package/dist/types/type-values.js +2151 -0
  21. package/dist/types/types/component-items.ts +545 -0
  22. package/dist/types/types/components-props.ts +82 -0
  23. package/dist/types/types/generate-int-range.ts +19 -0
  24. package/dist/types/types/global.ts +443 -0
  25. package/dist/types/types/index.ts +7 -0
  26. package/dist/types/types/require-at-least-one.ts +7 -0
  27. package/dist/types/types/theme.ts +168 -0
  28. package/dist/types/types/type-values.ts +2218 -0
  29. package/package.json +33 -1
  30. package/.prettierrc +0 -5
  31. package/cypress/fixtures/example.json +0 -5
  32. package/cypress/index.d.ts +0 -5
  33. package/cypress/screenshots/ButtonGroup/__tests__/ButtonGroup.cy.tsx/ButtonGroup -- renders first button as ButtonIcon (failed).png +0 -0
  34. package/cypress/screenshots/Datepicker/__tests__/Datepicker.cy.tsx/Datepicker -- renders Datepicker component (failed).png +0 -0
  35. package/cypress/screenshots/Paginator/__tests__/Paginator.cy.tsx/Paginator -- renders text instead of an input (failed).png +0 -0
  36. package/cypress/screenshots/ProgressBar/__tests__/ProgressBar.cy.tsx/ProgressBar -- renders without animation (failed).png +0 -0
  37. package/cypress/support/commands.ts +0 -52
  38. package/cypress/support/component-index.html +0 -12
  39. package/cypress/support/component.tsx +0 -79
  40. package/cypress/tsconfig.json +0 -9
  41. package/cypress.config.ts +0 -10
  42. package/eslint.config.js +0 -82
  43. package/index.html +0 -13
  44. package/public/vite.svg +0 -1
  45. package/src/App.tsx +0 -22
  46. package/src/components/BaseCard.tsx +0 -20
  47. package/src/components/BasePage.tsx +0 -26
  48. package/src/components/ColorCard/ColorCard.tsx +0 -41
  49. package/src/components/ColorCard/index.ts +0 -3
  50. package/src/components/ColorCard/styles.tsx +0 -28
  51. package/src/components/ColorCard/types.ts +0 -11
  52. package/src/components/ComponentPreview.tsx +0 -47
  53. package/src/components/CoverLayout.tsx +0 -99
  54. package/src/components/DemoContainerStyles.tsx +0 -19
  55. package/src/components/GridItem.tsx +0 -19
  56. package/src/components/NavDemo/NavDemo.tsx +0 -48
  57. package/src/components/NavDemo/index.ts +0 -3
  58. package/src/components/NavDemo/styles.tsx +0 -49
  59. package/src/components/Page.tsx +0 -23
  60. package/src/components/ResetScroll.tsx +0 -18
  61. package/src/components/SbDemoLayout.tsx +0 -30
  62. package/src/components/StylesCard/StylesCard.tsx +0 -50
  63. package/src/components/StylesCard/index.ts +0 -3
  64. package/src/components/StylesCard/styles.tsx +0 -54
  65. package/src/components/StylesCard/types.ts +0 -16
  66. package/src/components/index.ts +0 -12
  67. package/src/components/layouts/MainDemo.tsx +0 -16
  68. package/src/components/layouts/WrapperDemo.tsx +0 -14
  69. package/src/data/components.tsx +0 -242
  70. package/src/data/docgen.json +0 -2909
  71. package/src/data/french-cities.ts +0 -8683
  72. package/src/data/index.ts +0 -9
  73. package/src/data/previews/layouts/Container.preview.tsx +0 -23
  74. package/src/data/previews/styles/Colors.preview.tsx +0 -29
  75. package/src/data/previews/styles/Overlays.preview.tsx +0 -29
  76. package/src/data/previews/styles/Radiuses.preview.tsx +0 -29
  77. package/src/data/previews/styles/Shadows.preview.tsx +0 -29
  78. package/src/data/previews/styles/Spacers.preview.tsx +0 -29
  79. package/src/data/previews/styles/ThemeProvider.preview.tsx +0 -28
  80. package/src/data/previews/utils/Helpers.preview.tsx +0 -18
  81. package/src/data/previews/utils/Hooks.preview.tsx +0 -68
  82. package/src/data/previews/utils/JsUtils.preview.tsx +0 -67
  83. package/src/data/previews/utils/Mixins.preview.tsx +0 -18
  84. package/src/data/previews/utils/OptionsMarkdown.tsx +0 -108
  85. package/src/data/previews/utils/RenderPreview.tsx +0 -52
  86. package/src/data/previews/utils/Variables.preview.tsx +0 -51
  87. package/src/data/previews/utils/hooks/index.ts +0 -15
  88. package/src/data/previews/utils/hooks/useClickOutside.preview.tsx +0 -18
  89. package/src/data/previews/utils/hooks/useCopyToClipboard.preview.tsx +0 -17
  90. package/src/data/previews/utils/hooks/useDebounce.preview.tsx +0 -62
  91. package/src/data/previews/utils/hooks/useExportData.preview.tsx +0 -73
  92. package/src/data/previews/utils/hooks/useFetch.preview.tsx +0 -29
  93. package/src/data/previews/utils/hooks/useForm.preview.tsx +0 -39
  94. package/src/data/previews/utils/hooks/useIsOverflow.preview.tsx +0 -22
  95. package/src/data/previews/utils/hooks/useKeyPress.preview.tsx +0 -15
  96. package/src/data/previews/utils/hooks/useMaxWidth.preview.tsx +0 -7
  97. package/src/data/previews/utils/hooks/useMergeRefs.preview.tsx +0 -5
  98. package/src/data/previews/utils/hooks/useMinWidth.preview.tsx +0 -7
  99. package/src/data/previews/utils/hooks/usePaginatedData.preview.tsx +0 -12
  100. package/src/data/previews/utils/hooks/usePagination.preview.tsx +0 -12
  101. package/src/data/previews/utils/hooks/useTouchScreen.preview.tsx +0 -7
  102. package/src/data/previews/utils/hooks/useTranslation.preview.tsx +0 -44
  103. package/src/data/site-data.ts +0 -7
  104. package/src/data/styles/all-colors.ts +0 -908
  105. package/src/data/styles/all-font-families.ts +0 -16
  106. package/src/data/styles/all-font-sizes.ts +0 -82
  107. package/src/data/styles/all-font-weights.ts +0 -22
  108. package/src/data/styles/all-layouts.ts +0 -60
  109. package/src/data/styles/all-line-heights.ts +0 -16
  110. package/src/data/styles/all-overlays.ts +0 -43
  111. package/src/data/styles/all-radiuses.ts +0 -55
  112. package/src/data/styles/all-shadows.ts +0 -43
  113. package/src/data/styles/all-spacers.ts +0 -49
  114. package/src/data/styles/all-transition.ts +0 -22
  115. package/src/data/styles/index.ts +0 -13
  116. package/src/data/styles.json +0 -1538
  117. package/src/data/types.ts +0 -16
  118. package/src/data/utils/all-helpers.ts +0 -877
  119. package/src/data/utils/all-js-utils.tsx +0 -484
  120. package/src/data/utils/all-mixins.ts +0 -207
  121. package/src/lib/Mixins.tsx +0 -985
  122. package/src/lib/Variables.ts +0 -296
  123. package/src/lib/components/Accordion/Accordion.tsx +0 -86
  124. package/src/lib/components/Accordion/AccordionButton.tsx +0 -72
  125. package/src/lib/components/Accordion/AccordionContent.tsx +0 -27
  126. package/src/lib/components/Accordion/AccordionItem.tsx +0 -70
  127. package/src/lib/components/Accordion/__preview__/Accordion.preview.tsx +0 -61
  128. package/src/lib/components/Accordion/__tests__/Accordion.cy.tsx +0 -93
  129. package/src/lib/components/Accordion/__tests__/data.ts +0 -22
  130. package/src/lib/components/Accordion/index.ts +0 -4
  131. package/src/lib/components/Accordion/styles.tsx +0 -165
  132. package/src/lib/components/Accordion/subtypes.ts +0 -22
  133. package/src/lib/components/Accordion/types.ts +0 -33
  134. package/src/lib/components/Alert/Alert.tsx +0 -118
  135. package/src/lib/components/Alert/__preview__/Alert.preview.tsx +0 -52
  136. package/src/lib/components/Alert/__tests__/Alert.cy.tsx +0 -97
  137. package/src/lib/components/Alert/index.ts +0 -3
  138. package/src/lib/components/Alert/styles.tsx +0 -39
  139. package/src/lib/components/Alert/types.ts +0 -33
  140. package/src/lib/components/Aside/Aside.tsx +0 -42
  141. package/src/lib/components/Aside/__preview__/Aside.preview.tsx +0 -27
  142. package/src/lib/components/Aside/index.ts +0 -3
  143. package/src/lib/components/Aside/styles.tsx +0 -46
  144. package/src/lib/components/Aside/types.ts +0 -8
  145. package/src/lib/components/Autocomplete/Autocomplete.tsx +0 -352
  146. package/src/lib/components/Autocomplete/__preview__/Autocomplete.preview.tsx +0 -50
  147. package/src/lib/components/Autocomplete/__tests__/Autocomplete.cy.tsx +0 -38
  148. package/src/lib/components/Autocomplete/__tests__/Preview.tsx +0 -19
  149. package/src/lib/components/Autocomplete/index.ts +0 -3
  150. package/src/lib/components/Autocomplete/styles.tsx +0 -13
  151. package/src/lib/components/Autocomplete/types.ts +0 -42
  152. package/src/lib/components/Avatar/Avatar.tsx +0 -143
  153. package/src/lib/components/Avatar/AvatarFunction.tsx +0 -136
  154. package/src/lib/components/Avatar/__preview__/Avatar.preview.tsx +0 -82
  155. package/src/lib/components/Avatar/__tests__/Avatar.cy.tsx +0 -167
  156. package/src/lib/components/Avatar/index.ts +0 -3
  157. package/src/lib/components/Avatar/styles.tsx +0 -117
  158. package/src/lib/components/Avatar/types.ts +0 -86
  159. package/src/lib/components/BackToTop/BackToTop.tsx +0 -101
  160. package/src/lib/components/BackToTop/__preview__/BackToTop.preview.tsx +0 -33
  161. package/src/lib/components/BackToTop/index.ts +0 -3
  162. package/src/lib/components/BackToTop/styles.tsx +0 -35
  163. package/src/lib/components/BackToTop/types.ts +0 -8
  164. package/src/lib/components/Badge/Badge.tsx +0 -94
  165. package/src/lib/components/Badge/__preview__/Badge.preview.tsx +0 -74
  166. package/src/lib/components/Badge/__tests__/Badge.cy.tsx +0 -130
  167. package/src/lib/components/Badge/index.ts +0 -3
  168. package/src/lib/components/Badge/styles.tsx +0 -41
  169. package/src/lib/components/Badge/types.ts +0 -34
  170. package/src/lib/components/Breadcrumbs/BreadcrumbItem.tsx +0 -42
  171. package/src/lib/components/Breadcrumbs/Breadcrumbs.tsx +0 -52
  172. package/src/lib/components/Breadcrumbs/BreadcrumbsFn.tsx +0 -76
  173. package/src/lib/components/Breadcrumbs/__preview__/Breadcrumbs.preview.tsx +0 -66
  174. package/src/lib/components/Breadcrumbs/__tests__/Breadcrumbs.cy.tsx +0 -70
  175. package/src/lib/components/Breadcrumbs/__tests__/Preview.tsx +0 -0
  176. package/src/lib/components/Breadcrumbs/__tests__/data.ts +0 -24
  177. package/src/lib/components/Breadcrumbs/index.ts +0 -3
  178. package/src/lib/components/Breadcrumbs/styles.tsx +0 -64
  179. package/src/lib/components/Breadcrumbs/subtypes.ts +0 -12
  180. package/src/lib/components/Breadcrumbs/types.ts +0 -31
  181. package/src/lib/components/Burger/Burger.tsx +0 -59
  182. package/src/lib/components/Burger/__preview__/Burger.preview.tsx +0 -60
  183. package/src/lib/components/Burger/__tests__/Burger.cy.tsx +0 -59
  184. package/src/lib/components/Burger/__tests__/Preview.tsx +0 -13
  185. package/src/lib/components/Burger/index.ts +0 -3
  186. package/src/lib/components/Burger/styles.tsx +0 -93
  187. package/src/lib/components/Burger/types.ts +0 -13
  188. package/src/lib/components/Button/Button.tsx +0 -134
  189. package/src/lib/components/Button/__preview__/Button.preview.tsx +0 -183
  190. package/src/lib/components/Button/__tests__/Button.cy.tsx +0 -221
  191. package/src/lib/components/Button/index.ts +0 -3
  192. package/src/lib/components/Button/styles.tsx +0 -32
  193. package/src/lib/components/Button/subtypes.ts +0 -12
  194. package/src/lib/components/Button/types.ts +0 -72
  195. package/src/lib/components/ButtonGroup/ButtonGroup.tsx +0 -158
  196. package/src/lib/components/ButtonGroup/ButtonGroupButton.tsx +0 -89
  197. package/src/lib/components/ButtonGroup/ButtonGroupToggle.tsx +0 -99
  198. package/src/lib/components/ButtonGroup/__preview__/ButtonGroup.preview.tsx +0 -129
  199. package/src/lib/components/ButtonGroup/__tests__/ButtonGroup.cy.tsx +0 -184
  200. package/src/lib/components/ButtonGroup/__tests__/data.ts +0 -33
  201. package/src/lib/components/ButtonGroup/index.ts +0 -3
  202. package/src/lib/components/ButtonGroup/styles.tsx +0 -91
  203. package/src/lib/components/ButtonGroup/subtypes.ts +0 -42
  204. package/src/lib/components/ButtonGroup/types.ts +0 -36
  205. package/src/lib/components/ButtonIcon/ButtonFunction.tsx +0 -95
  206. package/src/lib/components/ButtonIcon/ButtonIcon.tsx +0 -139
  207. package/src/lib/components/ButtonIcon/__preview__/ButtonIcon.preview.tsx +0 -129
  208. package/src/lib/components/ButtonIcon/__tests__/ButtonIcon.cy.tsx +0 -180
  209. package/src/lib/components/ButtonIcon/index.ts +0 -3
  210. package/src/lib/components/ButtonIcon/styles.tsx +0 -31
  211. package/src/lib/components/ButtonIcon/subtypes.ts +0 -12
  212. package/src/lib/components/ButtonIcon/types.ts +0 -90
  213. package/src/lib/components/Card/Card.tsx +0 -133
  214. package/src/lib/components/Card/__preview__/Card.preview.tsx +0 -122
  215. package/src/lib/components/Card/__tests__/Card.cy.tsx +0 -49
  216. package/src/lib/components/Card/index.ts +0 -3
  217. package/src/lib/components/Card/styles.tsx +0 -75
  218. package/src/lib/components/Card/types.ts +0 -29
  219. package/src/lib/components/CodeContainer/CodeContainer.tsx +0 -135
  220. package/src/lib/components/CodeContainer/__preview__/CodeContainer.preview.tsx +0 -29
  221. package/src/lib/components/CodeContainer/index.ts +0 -3
  222. package/src/lib/components/CodeContainer/styles.tsx +0 -65
  223. package/src/lib/components/CodeContainer/types.ts +0 -235
  224. package/src/lib/components/ComponentsMixins/ComponentsMixins.tsx +0 -441
  225. package/src/lib/components/ComponentsMixins/hooks/useKeyboardNavigation.tsx +0 -81
  226. package/src/lib/components/ComponentsMixins/index.ts +0 -5
  227. package/src/lib/components/ComponentsMixins/types.ts +0 -37
  228. package/src/lib/components/Cover/Cover.tsx +0 -72
  229. package/src/lib/components/Cover/__preview__/Cover.preview.tsx +0 -45
  230. package/src/lib/components/Cover/__tests__/Cover.cy.tsx +0 -58
  231. package/src/lib/components/Cover/index.ts +0 -3
  232. package/src/lib/components/Cover/styles.tsx +0 -80
  233. package/src/lib/components/Cover/types.ts +0 -14
  234. package/src/lib/components/Datepicker/Calendar.tsx +0 -395
  235. package/src/lib/components/Datepicker/Datepicker.tsx +0 -254
  236. package/src/lib/components/Datepicker/__preview__/Datepicker.preview.tsx +0 -107
  237. package/src/lib/components/Datepicker/__tests__/Datepicker.cy.tsx +0 -40
  238. package/src/lib/components/Datepicker/__tests__/Preview.tsx +0 -19
  239. package/src/lib/components/Datepicker/data.ts +0 -33
  240. package/src/lib/components/Datepicker/index.ts +0 -3
  241. package/src/lib/components/Datepicker/styles.tsx +0 -456
  242. package/src/lib/components/Datepicker/types.ts +0 -68
  243. package/src/lib/components/DragList/DragList.tsx +0 -127
  244. package/src/lib/components/DragList/DragListItem.tsx +0 -191
  245. package/src/lib/components/DragList/__preview__/DragList.preview.tsx +0 -57
  246. package/src/lib/components/DragList/__tests__/DragList.cy.tsx +0 -25
  247. package/src/lib/components/DragList/__tests__/Preview.tsx +0 -34
  248. package/src/lib/components/DragList/index.ts +0 -4
  249. package/src/lib/components/DragList/styles.tsx +0 -75
  250. package/src/lib/components/DragList/types.ts +0 -65
  251. package/src/lib/components/Drawer/Drawer.tsx +0 -110
  252. package/src/lib/components/Drawer/__preview__/Drawer.preview.tsx +0 -67
  253. package/src/lib/components/Drawer/__tests__/Drawer.cy.tsx +0 -98
  254. package/src/lib/components/Drawer/__tests__/Preview.tsx +0 -43
  255. package/src/lib/components/Drawer/index.ts +0 -3
  256. package/src/lib/components/Drawer/styles.tsx +0 -136
  257. package/src/lib/components/Drawer/types.ts +0 -28
  258. package/src/lib/components/Dropdown/Dropdown.tsx +0 -89
  259. package/src/lib/components/Dropdown/DropdownContainer.tsx +0 -39
  260. package/src/lib/components/Dropdown/DropdownItem.tsx +0 -97
  261. package/src/lib/components/Dropdown/__preview__/Dropdown.preview.tsx +0 -62
  262. package/src/lib/components/Dropdown/__tests__/Dropdown.cy.tsx +0 -73
  263. package/src/lib/components/Dropdown/__tests__/Preview.tsx +0 -103
  264. package/src/lib/components/Dropdown/index.ts +0 -5
  265. package/src/lib/components/Dropdown/styles.tsx +0 -156
  266. package/src/lib/components/Dropdown/types.ts +0 -71
  267. package/src/lib/components/Fade/Fade.tsx +0 -42
  268. package/src/lib/components/Fade/__preview__/Fade.preview.tsx +0 -37
  269. package/src/lib/components/Fade/index.ts +0 -3
  270. package/src/lib/components/Fade/styles.tsx +0 -19
  271. package/src/lib/components/Fade/types.ts +0 -5
  272. package/src/lib/components/Fallback/Fallback.tsx +0 -37
  273. package/src/lib/components/Fallback/index.ts +0 -3
  274. package/src/lib/components/Fieldset/Fieldset.tsx +0 -107
  275. package/src/lib/components/Fieldset/__preview__/Fieldset.preview.tsx +0 -41
  276. package/src/lib/components/Fieldset/__preview__/Previews.tsx +0 -72
  277. package/src/lib/components/Fieldset/index.ts +0 -3
  278. package/src/lib/components/Fieldset/styles.tsx +0 -50
  279. package/src/lib/components/Fieldset/types.ts +0 -34
  280. package/src/lib/components/Flexbox/Flexbox.tsx +0 -69
  281. package/src/lib/components/Flexbox/__preview__/Flexbox.preview.tsx +0 -38
  282. package/src/lib/components/Flexbox/__tests__/Flexbox.cy.tsx +0 -23
  283. package/src/lib/components/Flexbox/index.ts +0 -3
  284. package/src/lib/components/Flexbox/styles.tsx +0 -34
  285. package/src/lib/components/Flexbox/types.ts +0 -27
  286. package/src/lib/components/Footer/Footer.tsx +0 -106
  287. package/src/lib/components/Footer/FooterLink.tsx +0 -31
  288. package/src/lib/components/Footer/FooterLogo.tsx +0 -30
  289. package/src/lib/components/Footer/__preview__/Footer.preview.tsx +0 -69
  290. package/src/lib/components/Footer/index.ts +0 -3
  291. package/src/lib/components/Footer/styles.tsx +0 -126
  292. package/src/lib/components/Footer/subtypes.ts +0 -14
  293. package/src/lib/components/Footer/types.ts +0 -76
  294. package/src/lib/components/Form/Form.tsx +0 -148
  295. package/src/lib/components/Form/__preview__/Form.preview.tsx +0 -76
  296. package/src/lib/components/Form/index.ts +0 -3
  297. package/src/lib/components/Form/styles.tsx +0 -24
  298. package/src/lib/components/Form/types.ts +0 -32
  299. package/src/lib/components/FullBleed/FullBleed.tsx +0 -45
  300. package/src/lib/components/FullBleed/__preview__/FullBleed.preview.tsx +0 -33
  301. package/src/lib/components/FullBleed/__tests__/FullBleed.cy.tsx +0 -27
  302. package/src/lib/components/FullBleed/index.ts +0 -3
  303. package/src/lib/components/FullBleed/styles.tsx +0 -32
  304. package/src/lib/components/FullBleed/types.ts +0 -9
  305. package/src/lib/components/Grid/Grid.tsx +0 -66
  306. package/src/lib/components/Grid/__preview__/Grid.preview.tsx +0 -37
  307. package/src/lib/components/Grid/__tests__/Grid.cy.tsx +0 -39
  308. package/src/lib/components/Grid/index.ts +0 -3
  309. package/src/lib/components/Grid/styles.tsx +0 -31
  310. package/src/lib/components/Grid/types.ts +0 -24
  311. package/src/lib/components/Header/Header.tsx +0 -212
  312. package/src/lib/components/Header/HeaderBurger.tsx +0 -59
  313. package/src/lib/components/Header/HeaderLogo.tsx +0 -65
  314. package/src/lib/components/Header/HeaderNav.tsx +0 -82
  315. package/src/lib/components/Header/HeaderNavLink.tsx +0 -32
  316. package/src/lib/components/Header/HeaderSearch.tsx +0 -83
  317. package/src/lib/components/Header/__preview__/Header.preview.tsx +0 -33
  318. package/src/lib/components/Header/__tests__/Header.cy.tsx +0 -95
  319. package/src/lib/components/Header/index.ts +0 -3
  320. package/src/lib/components/Header/styles.tsx +0 -352
  321. package/src/lib/components/Header/subtypes.ts +0 -86
  322. package/src/lib/components/Header/types.ts +0 -91
  323. package/src/lib/components/Helmet/Helmet.tsx +0 -67
  324. package/src/lib/components/Helmet/__preview__/Helmet.preview.tsx +0 -26
  325. package/src/lib/components/Helmet/index.ts +0 -3
  326. package/src/lib/components/Helmet/types.ts +0 -17
  327. package/src/lib/components/Highlight/Highlight.tsx +0 -45
  328. package/src/lib/components/Highlight/__preview__/Highlight.preview.tsx +0 -40
  329. package/src/lib/components/Highlight/__tests__/Highlight.cy.tsx +0 -32
  330. package/src/lib/components/Highlight/index.ts +0 -3
  331. package/src/lib/components/Highlight/types.ts +0 -11
  332. package/src/lib/components/Hr/Hr.tsx +0 -50
  333. package/src/lib/components/Hr/__preview__/Hr.preview.tsx +0 -32
  334. package/src/lib/components/Hr/__tests__/Hr.cy.tsx +0 -69
  335. package/src/lib/components/Hr/index.ts +0 -3
  336. package/src/lib/components/Hr/styles.tsx +0 -29
  337. package/src/lib/components/Hr/types.ts +0 -12
  338. package/src/lib/components/Icon/Icon.tsx +0 -42
  339. package/src/lib/components/Icon/__preview__/Icon.preview.tsx +0 -55
  340. package/src/lib/components/Icon/__tests__/Icon.cy.tsx +0 -43
  341. package/src/lib/components/Icon/index.ts +0 -3
  342. package/src/lib/components/Icon/styles.tsx +0 -21
  343. package/src/lib/components/Icon/types.ts +0 -13
  344. package/src/lib/components/IconMenu/IconMenu.tsx +0 -157
  345. package/src/lib/components/IconMenu/IconMenuItem.tsx +0 -74
  346. package/src/lib/components/IconMenu/__preview__/IconMenu.preview.tsx +0 -59
  347. package/src/lib/components/IconMenu/__tests__/IconMenu.cy.tsx +0 -35
  348. package/src/lib/components/IconMenu/index.ts +0 -4
  349. package/src/lib/components/IconMenu/styles.tsx +0 -116
  350. package/src/lib/components/IconMenu/types.ts +0 -56
  351. package/src/lib/components/Image/Image.tsx +0 -106
  352. package/src/lib/components/Image/ImageFunction.tsx +0 -53
  353. package/src/lib/components/Image/__preview__/Image.preview.tsx +0 -88
  354. package/src/lib/components/Image/__tests__/Image.cy.tsx +0 -105
  355. package/src/lib/components/Image/index.ts +0 -3
  356. package/src/lib/components/Image/styles.tsx +0 -87
  357. package/src/lib/components/Image/types.ts +0 -48
  358. package/src/lib/components/Input/Input.tsx +0 -189
  359. package/src/lib/components/Input/__preview__/Input.demo.tsx +0 -73
  360. package/src/lib/components/Input/__preview__/Input.preview.tsx +0 -164
  361. package/src/lib/components/Input/__tests__/Input.cy.tsx +0 -145
  362. package/src/lib/components/Input/__tests__/Preview.tsx +0 -52
  363. package/src/lib/components/Input/index.ts +0 -3
  364. package/src/lib/components/Input/styles.tsx +0 -41
  365. package/src/lib/components/Input/subtypes.ts +0 -186
  366. package/src/lib/components/Input/templates/ColorInput.tsx +0 -40
  367. package/src/lib/components/Input/templates/DateInput.tsx +0 -127
  368. package/src/lib/components/Input/templates/FileInput.tsx +0 -61
  369. package/src/lib/components/Input/templates/PasswordInput.tsx +0 -197
  370. package/src/lib/components/Input/templates/SearchInput.tsx +0 -140
  371. package/src/lib/components/Input/templates/SelectInput.tsx +0 -116
  372. package/src/lib/components/Input/templates/TextInput.tsx +0 -116
  373. package/src/lib/components/Input/templates/TextareaInput.tsx +0 -43
  374. package/src/lib/components/Input/templates/TimeInput.tsx +0 -126
  375. package/src/lib/components/Input/types.ts +0 -24
  376. package/src/lib/components/InputCheck/InputCheck.tsx +0 -138
  377. package/src/lib/components/InputCheck/__preview__/InputCheck.demo.tsx +0 -422
  378. package/src/lib/components/InputCheck/__preview__/InputCheck.preview.tsx +0 -39
  379. package/src/lib/components/InputCheck/__tests__/InputCheck.cy.tsx +0 -100
  380. package/src/lib/components/InputCheck/index.ts +0 -3
  381. package/src/lib/components/InputCheck/styles.tsx +0 -284
  382. package/src/lib/components/InputCheck/types.ts +0 -35
  383. package/src/lib/components/InputComponents/components/InputAndListContainer.tsx +0 -51
  384. package/src/lib/components/InputComponents/components/InputButton.tsx +0 -62
  385. package/src/lib/components/InputComponents/components/InputContainer.tsx +0 -70
  386. package/src/lib/components/InputComponents/components/InputIcon.tsx +0 -51
  387. package/src/lib/components/InputComponents/components/InputLeftContainer.tsx +0 -29
  388. package/src/lib/components/InputComponents/components/InputPrefix.tsx +0 -31
  389. package/src/lib/components/InputComponents/components/InputRightContainer.tsx +0 -35
  390. package/src/lib/components/InputComponents/components/InputSuffix.tsx +0 -31
  391. package/src/lib/components/InputComponents/components/InputValidationHelper.tsx +0 -98
  392. package/src/lib/components/InputComponents/components/InputValidationIcon.tsx +0 -66
  393. package/src/lib/components/InputComponents/components/InputWrapper.tsx +0 -46
  394. package/src/lib/components/InputComponents/components/ListInput.tsx +0 -51
  395. package/src/lib/components/InputComponents/components/ListInputItem.tsx +0 -56
  396. package/src/lib/components/InputComponents/index.ts +0 -15
  397. package/src/lib/components/InputComponents/styles.tsx +0 -738
  398. package/src/lib/components/InputComponents/types.ts +0 -289
  399. package/src/lib/components/InputContainer/HelperBottom.tsx +0 -96
  400. package/src/lib/components/InputContainer/InputContainer.tsx +0 -132
  401. package/src/lib/components/InputContainer/index.ts +0 -3
  402. package/src/lib/components/InputContainer/styles.tsx +0 -89
  403. package/src/lib/components/InputContainer/subtypes.ts +0 -10
  404. package/src/lib/components/InputContainer/types.ts +0 -25
  405. package/src/lib/components/InputCounter/InputCounter.tsx +0 -287
  406. package/src/lib/components/InputCounter/__preview__/InputCounter.preview.tsx +0 -42
  407. package/src/lib/components/InputCounter/__tests__/InputCounter.cy.tsx +0 -99
  408. package/src/lib/components/InputCounter/__tests__/Preview.tsx +0 -58
  409. package/src/lib/components/InputCounter/index.ts +0 -3
  410. package/src/lib/components/InputCounter/styles.tsx +0 -53
  411. package/src/lib/components/InputCounter/subtypes.ts +0 -9
  412. package/src/lib/components/InputCounter/types.ts +0 -51
  413. package/src/lib/components/InputImage/EmptyContainer.tsx +0 -41
  414. package/src/lib/components/InputImage/HoverContainer.tsx +0 -48
  415. package/src/lib/components/InputImage/InputImage.tsx +0 -151
  416. package/src/lib/components/InputImage/__preview__/InputImage.demo.tsx +0 -91
  417. package/src/lib/components/InputImage/__preview__/InputImage.preview.tsx +0 -33
  418. package/src/lib/components/InputImage/__tests__/InputImage.cy.tsx +0 -85
  419. package/src/lib/components/InputImage/index.ts +0 -3
  420. package/src/lib/components/InputImage/styles.tsx +0 -115
  421. package/src/lib/components/InputImage/subtypes.ts +0 -30
  422. package/src/lib/components/InputImage/types.ts +0 -25
  423. package/src/lib/components/InputPhone/InputPhone.tsx +0 -386
  424. package/src/lib/components/InputPhone/__preview__/InputPhone.preview.tsx +0 -76
  425. package/src/lib/components/InputPhone/__tests__/InputPhone.cy.tsx +0 -52
  426. package/src/lib/components/InputPhone/__tests__/Preview.tsx +0 -23
  427. package/src/lib/components/InputPhone/index.ts +0 -3
  428. package/src/lib/components/InputPhone/styles.tsx +0 -219
  429. package/src/lib/components/InputPhone/types.ts +0 -35
  430. package/src/lib/components/InputPhone/utils/countries.ts +0 -648
  431. package/src/lib/components/InputPhone/utils/flags/ac.svg +0 -76
  432. package/src/lib/components/InputPhone/utils/flags/ad.svg +0 -150
  433. package/src/lib/components/InputPhone/utils/flags/ae.svg +0 -6
  434. package/src/lib/components/InputPhone/utils/flags/af.svg +0 -81
  435. package/src/lib/components/InputPhone/utils/flags/ag.svg +0 -14
  436. package/src/lib/components/InputPhone/utils/flags/ai.svg +0 -758
  437. package/src/lib/components/InputPhone/utils/flags/al.svg +0 -5
  438. package/src/lib/components/InputPhone/utils/flags/am.svg +0 -5
  439. package/src/lib/components/InputPhone/utils/flags/ao.svg +0 -13
  440. package/src/lib/components/InputPhone/utils/flags/aq.svg +0 -5
  441. package/src/lib/components/InputPhone/utils/flags/ar.svg +0 -32
  442. package/src/lib/components/InputPhone/utils/flags/as.svg +0 -72
  443. package/src/lib/components/InputPhone/utils/flags/at.svg +0 -6
  444. package/src/lib/components/InputPhone/utils/flags/au.svg +0 -8
  445. package/src/lib/components/InputPhone/utils/flags/aw.svg +0 -186
  446. package/src/lib/components/InputPhone/utils/flags/ax.svg +0 -18
  447. package/src/lib/components/InputPhone/utils/flags/az.svg +0 -8
  448. package/src/lib/components/InputPhone/utils/flags/ba.svg +0 -12
  449. package/src/lib/components/InputPhone/utils/flags/bb.svg +0 -6
  450. package/src/lib/components/InputPhone/utils/flags/bd.svg +0 -4
  451. package/src/lib/components/InputPhone/utils/flags/be.svg +0 -7
  452. package/src/lib/components/InputPhone/utils/flags/bf.svg +0 -7
  453. package/src/lib/components/InputPhone/utils/flags/bg.svg +0 -7
  454. package/src/lib/components/InputPhone/utils/flags/bh.svg +0 -4
  455. package/src/lib/components/InputPhone/utils/flags/bi.svg +0 -15
  456. package/src/lib/components/InputPhone/utils/flags/bj.svg +0 -14
  457. package/src/lib/components/InputPhone/utils/flags/bl.svg +0 -7
  458. package/src/lib/components/InputPhone/utils/flags/bm.svg +0 -97
  459. package/src/lib/components/InputPhone/utils/flags/bn.svg +0 -36
  460. package/src/lib/components/InputPhone/utils/flags/bo.svg +0 -676
  461. package/src/lib/components/InputPhone/utils/flags/bq.svg +0 -5
  462. package/src/lib/components/InputPhone/utils/flags/br.svg +0 -45
  463. package/src/lib/components/InputPhone/utils/flags/bs.svg +0 -13
  464. package/src/lib/components/InputPhone/utils/flags/bt.svg +0 -89
  465. package/src/lib/components/InputPhone/utils/flags/bv.svg +0 -13
  466. package/src/lib/components/InputPhone/utils/flags/bw.svg +0 -7
  467. package/src/lib/components/InputPhone/utils/flags/by.svg +0 -20
  468. package/src/lib/components/InputPhone/utils/flags/bz.svg +0 -145
  469. package/src/lib/components/InputPhone/utils/flags/ca.svg +0 -4
  470. package/src/lib/components/InputPhone/utils/flags/cc.svg +0 -19
  471. package/src/lib/components/InputPhone/utils/flags/cd.svg +0 -5
  472. package/src/lib/components/InputPhone/utils/flags/cefta.svg +0 -13
  473. package/src/lib/components/InputPhone/utils/flags/cf.svg +0 -15
  474. package/src/lib/components/InputPhone/utils/flags/cg.svg +0 -12
  475. package/src/lib/components/InputPhone/utils/flags/ch.svg +0 -9
  476. package/src/lib/components/InputPhone/utils/flags/ci.svg +0 -7
  477. package/src/lib/components/InputPhone/utils/flags/ck.svg +0 -9
  478. package/src/lib/components/InputPhone/utils/flags/cl.svg +0 -13
  479. package/src/lib/components/InputPhone/utils/flags/cm.svg +0 -15
  480. package/src/lib/components/InputPhone/utils/flags/cn.svg +0 -11
  481. package/src/lib/components/InputPhone/utils/flags/co.svg +0 -7
  482. package/src/lib/components/InputPhone/utils/flags/cp.svg +0 -7
  483. package/src/lib/components/InputPhone/utils/flags/cr.svg +0 -7
  484. package/src/lib/components/InputPhone/utils/flags/cu.svg +0 -13
  485. package/src/lib/components/InputPhone/utils/flags/cv.svg +0 -13
  486. package/src/lib/components/InputPhone/utils/flags/cw.svg +0 -14
  487. package/src/lib/components/InputPhone/utils/flags/cx.svg +0 -15
  488. package/src/lib/components/InputPhone/utils/flags/cy.svg +0 -6
  489. package/src/lib/components/InputPhone/utils/flags/cz.svg +0 -5
  490. package/src/lib/components/InputPhone/utils/flags/de.svg +0 -5
  491. package/src/lib/components/InputPhone/utils/flags/dg.svg +0 -129
  492. package/src/lib/components/InputPhone/utils/flags/dj.svg +0 -13
  493. package/src/lib/components/InputPhone/utils/flags/dk.svg +0 -5
  494. package/src/lib/components/InputPhone/utils/flags/dm.svg +0 -152
  495. package/src/lib/components/InputPhone/utils/flags/do.svg +0 -6745
  496. package/src/lib/components/InputPhone/utils/flags/dz.svg +0 -5
  497. package/src/lib/components/InputPhone/utils/flags/ea.svg +0 -544
  498. package/src/lib/components/InputPhone/utils/flags/ec.svg +0 -138
  499. package/src/lib/components/InputPhone/utils/flags/ee.svg +0 -7
  500. package/src/lib/components/InputPhone/utils/flags/eg.svg +0 -38
  501. package/src/lib/components/InputPhone/utils/flags/eh.svg +0 -16
  502. package/src/lib/components/InputPhone/utils/flags/er.svg +0 -8
  503. package/src/lib/components/InputPhone/utils/flags/es-ct.svg +0 -4
  504. package/src/lib/components/InputPhone/utils/flags/es-ga.svg +0 -187
  505. package/src/lib/components/InputPhone/utils/flags/es.svg +0 -544
  506. package/src/lib/components/InputPhone/utils/flags/et.svg +0 -14
  507. package/src/lib/components/InputPhone/utils/flags/eu.svg +0 -28
  508. package/src/lib/components/InputPhone/utils/flags/fi.svg +0 -5
  509. package/src/lib/components/InputPhone/utils/flags/fj.svg +0 -120
  510. package/src/lib/components/InputPhone/utils/flags/fk.svg +0 -90
  511. package/src/lib/components/InputPhone/utils/flags/fm.svg +0 -11
  512. package/src/lib/components/InputPhone/utils/flags/fo.svg +0 -12
  513. package/src/lib/components/InputPhone/utils/flags/fr.svg +0 -7
  514. package/src/lib/components/InputPhone/utils/flags/ga.svg +0 -7
  515. package/src/lib/components/InputPhone/utils/flags/gb-eng.svg +0 -5
  516. package/src/lib/components/InputPhone/utils/flags/gb-nir.svg +0 -132
  517. package/src/lib/components/InputPhone/utils/flags/gb-sct.svg +0 -4
  518. package/src/lib/components/InputPhone/utils/flags/gb-wls.svg +0 -9
  519. package/src/lib/components/InputPhone/utils/flags/gb.svg +0 -7
  520. package/src/lib/components/InputPhone/utils/flags/gd.svg +0 -27
  521. package/src/lib/components/InputPhone/utils/flags/ge.svg +0 -6
  522. package/src/lib/components/InputPhone/utils/flags/gf.svg +0 -7
  523. package/src/lib/components/InputPhone/utils/flags/gg.svg +0 -9
  524. package/src/lib/components/InputPhone/utils/flags/gh.svg +0 -6
  525. package/src/lib/components/InputPhone/utils/flags/gi.svg +0 -32
  526. package/src/lib/components/InputPhone/utils/flags/gl.svg +0 -4
  527. package/src/lib/components/InputPhone/utils/flags/gm.svg +0 -14
  528. package/src/lib/components/InputPhone/utils/flags/gn.svg +0 -7
  529. package/src/lib/components/InputPhone/utils/flags/gp.svg +0 -7
  530. package/src/lib/components/InputPhone/utils/flags/gq.svg +0 -23
  531. package/src/lib/components/InputPhone/utils/flags/gr.svg +0 -16
  532. package/src/lib/components/InputPhone/utils/flags/gs.svg +0 -133
  533. package/src/lib/components/InputPhone/utils/flags/gt.svg +0 -220
  534. package/src/lib/components/InputPhone/utils/flags/gu.svg +0 -23
  535. package/src/lib/components/InputPhone/utils/flags/gw.svg +0 -13
  536. package/src/lib/components/InputPhone/utils/flags/gy.svg +0 -9
  537. package/src/lib/components/InputPhone/utils/flags/hk.svg +0 -30
  538. package/src/lib/components/InputPhone/utils/flags/hm.svg +0 -8
  539. package/src/lib/components/InputPhone/utils/flags/hn.svg +0 -18
  540. package/src/lib/components/InputPhone/utils/flags/hr.svg +0 -58
  541. package/src/lib/components/InputPhone/utils/flags/ht.svg +0 -116
  542. package/src/lib/components/InputPhone/utils/flags/hu.svg +0 -7
  543. package/src/lib/components/InputPhone/utils/flags/ic.svg +0 -7
  544. package/src/lib/components/InputPhone/utils/flags/id.svg +0 -4
  545. package/src/lib/components/InputPhone/utils/flags/ie.svg +0 -7
  546. package/src/lib/components/InputPhone/utils/flags/il.svg +0 -14
  547. package/src/lib/components/InputPhone/utils/flags/im.svg +0 -36
  548. package/src/lib/components/InputPhone/utils/flags/in.svg +0 -25
  549. package/src/lib/components/InputPhone/utils/flags/io.svg +0 -129
  550. package/src/lib/components/InputPhone/utils/flags/iq.svg +0 -10
  551. package/src/lib/components/InputPhone/utils/flags/ir.svg +0 -219
  552. package/src/lib/components/InputPhone/utils/flags/is.svg +0 -12
  553. package/src/lib/components/InputPhone/utils/flags/it.svg +0 -7
  554. package/src/lib/components/InputPhone/utils/flags/je.svg +0 -45
  555. package/src/lib/components/InputPhone/utils/flags/jm.svg +0 -8
  556. package/src/lib/components/InputPhone/utils/flags/jo.svg +0 -16
  557. package/src/lib/components/InputPhone/utils/flags/jp.svg +0 -11
  558. package/src/lib/components/InputPhone/utils/flags/ke.svg +0 -23
  559. package/src/lib/components/InputPhone/utils/flags/kg.svg +0 -15
  560. package/src/lib/components/InputPhone/utils/flags/kh.svg +0 -61
  561. package/src/lib/components/InputPhone/utils/flags/ki.svg +0 -36
  562. package/src/lib/components/InputPhone/utils/flags/km.svg +0 -16
  563. package/src/lib/components/InputPhone/utils/flags/kn.svg +0 -14
  564. package/src/lib/components/InputPhone/utils/flags/kp.svg +0 -15
  565. package/src/lib/components/InputPhone/utils/flags/kr.svg +0 -24
  566. package/src/lib/components/InputPhone/utils/flags/kw.svg +0 -13
  567. package/src/lib/components/InputPhone/utils/flags/ky.svg +0 -109
  568. package/src/lib/components/InputPhone/utils/flags/kz.svg +0 -23
  569. package/src/lib/components/InputPhone/utils/flags/la.svg +0 -12
  570. package/src/lib/components/InputPhone/utils/flags/lb.svg +0 -15
  571. package/src/lib/components/InputPhone/utils/flags/lc.svg +0 -8
  572. package/src/lib/components/InputPhone/utils/flags/li.svg +0 -43
  573. package/src/lib/components/InputPhone/utils/flags/lk.svg +0 -22
  574. package/src/lib/components/InputPhone/utils/flags/lr.svg +0 -14
  575. package/src/lib/components/InputPhone/utils/flags/ls.svg +0 -8
  576. package/src/lib/components/InputPhone/utils/flags/lt.svg +0 -7
  577. package/src/lib/components/InputPhone/utils/flags/lu.svg +0 -5
  578. package/src/lib/components/InputPhone/utils/flags/lv.svg +0 -6
  579. package/src/lib/components/InputPhone/utils/flags/ly.svg +0 -13
  580. package/src/lib/components/InputPhone/utils/flags/ma.svg +0 -4
  581. package/src/lib/components/InputPhone/utils/flags/mc.svg +0 -6
  582. package/src/lib/components/InputPhone/utils/flags/md.svg +0 -70
  583. package/src/lib/components/InputPhone/utils/flags/me.svg +0 -116
  584. package/src/lib/components/InputPhone/utils/flags/mf.svg +0 -7
  585. package/src/lib/components/InputPhone/utils/flags/mg.svg +0 -7
  586. package/src/lib/components/InputPhone/utils/flags/mh.svg +0 -7
  587. package/src/lib/components/InputPhone/utils/flags/mk.svg +0 -5
  588. package/src/lib/components/InputPhone/utils/flags/ml.svg +0 -7
  589. package/src/lib/components/InputPhone/utils/flags/mm.svg +0 -12
  590. package/src/lib/components/InputPhone/utils/flags/mn.svg +0 -14
  591. package/src/lib/components/InputPhone/utils/flags/mo.svg +0 -9
  592. package/src/lib/components/InputPhone/utils/flags/mp.svg +0 -86
  593. package/src/lib/components/InputPhone/utils/flags/mq.svg +0 -7
  594. package/src/lib/components/InputPhone/utils/flags/mr.svg +0 -6
  595. package/src/lib/components/InputPhone/utils/flags/ms.svg +0 -33
  596. package/src/lib/components/InputPhone/utils/flags/mt.svg +0 -49
  597. package/src/lib/components/InputPhone/utils/flags/mu.svg +0 -8
  598. package/src/lib/components/InputPhone/utils/flags/mv.svg +0 -6
  599. package/src/lib/components/InputPhone/utils/flags/mw.svg +0 -10
  600. package/src/lib/components/InputPhone/utils/flags/mx.svg +0 -382
  601. package/src/lib/components/InputPhone/utils/flags/my.svg +0 -7
  602. package/src/lib/components/InputPhone/utils/flags/mz.svg +0 -21
  603. package/src/lib/components/InputPhone/utils/flags/na.svg +0 -16
  604. package/src/lib/components/InputPhone/utils/flags/nc.svg +0 -13
  605. package/src/lib/components/InputPhone/utils/flags/ne.svg +0 -6
  606. package/src/lib/components/InputPhone/utils/flags/nf.svg +0 -9
  607. package/src/lib/components/InputPhone/utils/flags/ng.svg +0 -6
  608. package/src/lib/components/InputPhone/utils/flags/ni.svg +0 -129
  609. package/src/lib/components/InputPhone/utils/flags/nl.svg +0 -5
  610. package/src/lib/components/InputPhone/utils/flags/no.svg +0 -7
  611. package/src/lib/components/InputPhone/utils/flags/np.svg +0 -14
  612. package/src/lib/components/InputPhone/utils/flags/nr.svg +0 -12
  613. package/src/lib/components/InputPhone/utils/flags/nu.svg +0 -10
  614. package/src/lib/components/InputPhone/utils/flags/nz.svg +0 -36
  615. package/src/lib/components/InputPhone/utils/flags/om.svg +0 -115
  616. package/src/lib/components/InputPhone/utils/flags/pa.svg +0 -14
  617. package/src/lib/components/InputPhone/utils/flags/pe.svg +0 -244
  618. package/src/lib/components/InputPhone/utils/flags/pf.svg +0 -19
  619. package/src/lib/components/InputPhone/utils/flags/pg.svg +0 -9
  620. package/src/lib/components/InputPhone/utils/flags/ph.svg +0 -6
  621. package/src/lib/components/InputPhone/utils/flags/pk.svg +0 -15
  622. package/src/lib/components/InputPhone/utils/flags/pl.svg +0 -6
  623. package/src/lib/components/InputPhone/utils/flags/pm.svg +0 -7
  624. package/src/lib/components/InputPhone/utils/flags/pn.svg +0 -53
  625. package/src/lib/components/InputPhone/utils/flags/pr.svg +0 -13
  626. package/src/lib/components/InputPhone/utils/flags/ps.svg +0 -15
  627. package/src/lib/components/InputPhone/utils/flags/pt.svg +0 -57
  628. package/src/lib/components/InputPhone/utils/flags/pw.svg +0 -11
  629. package/src/lib/components/InputPhone/utils/flags/py.svg +0 -157
  630. package/src/lib/components/InputPhone/utils/flags/qa.svg +0 -4
  631. package/src/lib/components/InputPhone/utils/flags/re.svg +0 -7
  632. package/src/lib/components/InputPhone/utils/flags/ro.svg +0 -7
  633. package/src/lib/components/InputPhone/utils/flags/rs.svg +0 -292
  634. package/src/lib/components/InputPhone/utils/flags/ru.svg +0 -7
  635. package/src/lib/components/InputPhone/utils/flags/rw.svg +0 -13
  636. package/src/lib/components/InputPhone/utils/flags/sa.svg +0 -26
  637. package/src/lib/components/InputPhone/utils/flags/sb.svg +0 -13
  638. package/src/lib/components/InputPhone/utils/flags/sc.svg +0 -7
  639. package/src/lib/components/InputPhone/utils/flags/sd.svg +0 -13
  640. package/src/lib/components/InputPhone/utils/flags/se.svg +0 -4
  641. package/src/lib/components/InputPhone/utils/flags/sg.svg +0 -13
  642. package/src/lib/components/InputPhone/utils/flags/sh.svg +0 -76
  643. package/src/lib/components/InputPhone/utils/flags/si.svg +0 -18
  644. package/src/lib/components/InputPhone/utils/flags/sj.svg +0 -7
  645. package/src/lib/components/InputPhone/utils/flags/sk.svg +0 -9
  646. package/src/lib/components/InputPhone/utils/flags/sl.svg +0 -7
  647. package/src/lib/components/InputPhone/utils/flags/sm.svg +0 -75
  648. package/src/lib/components/InputPhone/utils/flags/sn.svg +0 -8
  649. package/src/lib/components/InputPhone/utils/flags/so.svg +0 -11
  650. package/src/lib/components/InputPhone/utils/flags/sr.svg +0 -6
  651. package/src/lib/components/InputPhone/utils/flags/ss.svg +0 -8
  652. package/src/lib/components/InputPhone/utils/flags/st.svg +0 -16
  653. package/src/lib/components/InputPhone/utils/flags/sv.svg +0 -594
  654. package/src/lib/components/InputPhone/utils/flags/sx.svg +0 -56
  655. package/src/lib/components/InputPhone/utils/flags/sy.svg +0 -6
  656. package/src/lib/components/InputPhone/utils/flags/sz.svg +0 -34
  657. package/src/lib/components/InputPhone/utils/flags/ta.svg +0 -76
  658. package/src/lib/components/InputPhone/utils/flags/tc.svg +0 -50
  659. package/src/lib/components/InputPhone/utils/flags/td.svg +0 -7
  660. package/src/lib/components/InputPhone/utils/flags/tf.svg +0 -15
  661. package/src/lib/components/InputPhone/utils/flags/tg.svg +0 -14
  662. package/src/lib/components/InputPhone/utils/flags/th.svg +0 -7
  663. package/src/lib/components/InputPhone/utils/flags/tj.svg +0 -22
  664. package/src/lib/components/InputPhone/utils/flags/tk.svg +0 -5
  665. package/src/lib/components/InputPhone/utils/flags/tl.svg +0 -13
  666. package/src/lib/components/InputPhone/utils/flags/tm.svg +0 -205
  667. package/src/lib/components/InputPhone/utils/flags/tn.svg +0 -13
  668. package/src/lib/components/InputPhone/utils/flags/to.svg +0 -10
  669. package/src/lib/components/InputPhone/utils/flags/tr.svg +0 -8
  670. package/src/lib/components/InputPhone/utils/flags/tt.svg +0 -5
  671. package/src/lib/components/InputPhone/utils/flags/tv.svg +0 -9
  672. package/src/lib/components/InputPhone/utils/flags/tw.svg +0 -34
  673. package/src/lib/components/InputPhone/utils/flags/tz.svg +0 -13
  674. package/src/lib/components/InputPhone/utils/flags/ua.svg +0 -6
  675. package/src/lib/components/InputPhone/utils/flags/ug.svg +0 -30
  676. package/src/lib/components/InputPhone/utils/flags/um.svg +0 -15
  677. package/src/lib/components/InputPhone/utils/flags/un.svg +0 -16
  678. package/src/lib/components/InputPhone/utils/flags/us.svg +0 -10
  679. package/src/lib/components/InputPhone/utils/flags/uy.svg +0 -28
  680. package/src/lib/components/InputPhone/utils/flags/uz.svg +0 -30
  681. package/src/lib/components/InputPhone/utils/flags/va.svg +0 -479
  682. package/src/lib/components/InputPhone/utils/flags/vc.svg +0 -8
  683. package/src/lib/components/InputPhone/utils/flags/ve.svg +0 -26
  684. package/src/lib/components/InputPhone/utils/flags/vg.svg +0 -63
  685. package/src/lib/components/InputPhone/utils/flags/vi.svg +0 -28
  686. package/src/lib/components/InputPhone/utils/flags/vn.svg +0 -11
  687. package/src/lib/components/InputPhone/utils/flags/vu.svg +0 -21
  688. package/src/lib/components/InputPhone/utils/flags/wf.svg +0 -7
  689. package/src/lib/components/InputPhone/utils/flags/ws.svg +0 -7
  690. package/src/lib/components/InputPhone/utils/flags/xk.svg +0 -8
  691. package/src/lib/components/InputPhone/utils/flags/xx.svg +0 -4
  692. package/src/lib/components/InputPhone/utils/flags/ye.svg +0 -7
  693. package/src/lib/components/InputPhone/utils/flags/yt.svg +0 -7
  694. package/src/lib/components/InputPhone/utils/flags/za.svg +0 -17
  695. package/src/lib/components/InputPhone/utils/flags/zm.svg +0 -27
  696. package/src/lib/components/InputPhone/utils/flags/zw.svg +0 -21
  697. package/src/lib/components/InputPin/InputPin.tsx +0 -138
  698. package/src/lib/components/InputPin/__preview__/InputPin.preview.tsx +0 -87
  699. package/src/lib/components/InputPin/__tests__/InputPin.cy.tsx +0 -43
  700. package/src/lib/components/InputPin/__tests__/Preview.tsx +0 -28
  701. package/src/lib/components/InputPin/index.ts +0 -3
  702. package/src/lib/components/InputPin/styles.tsx +0 -70
  703. package/src/lib/components/InputPin/subtypes.ts +0 -11
  704. package/src/lib/components/InputPin/types.ts +0 -31
  705. package/src/lib/components/InputSlider/InputSlider.tsx +0 -184
  706. package/src/lib/components/InputSlider/Slider.tsx +0 -52
  707. package/src/lib/components/InputSlider/__preview__/InputSlider.preview.tsx +0 -57
  708. package/src/lib/components/InputSlider/__tests__/InputSlider.cy.tsx +0 -56
  709. package/src/lib/components/InputSlider/__tests__/Preview.tsx +0 -20
  710. package/src/lib/components/InputSlider/index.ts +0 -3
  711. package/src/lib/components/InputSlider/styles.tsx +0 -292
  712. package/src/lib/components/InputSlider/types.ts +0 -14
  713. package/src/lib/components/Key/Key.tsx +0 -45
  714. package/src/lib/components/Key/__preview__/Key.preview.tsx +0 -45
  715. package/src/lib/components/Key/__tests__/Key.cy.tsx +0 -80
  716. package/src/lib/components/Key/index.ts +0 -3
  717. package/src/lib/components/Key/styles.tsx +0 -29
  718. package/src/lib/components/Key/types.ts +0 -11
  719. package/src/lib/components/LibIcon/LibIcon.tsx +0 -35
  720. package/src/lib/components/LibIcon/index.ts +0 -3
  721. package/src/lib/components/LibIcon/types.ts +0 -9
  722. package/src/lib/components/Link/Link.tsx +0 -68
  723. package/src/lib/components/Link/__preview__/Link.preview.tsx +0 -55
  724. package/src/lib/components/Link/__tests__/Link.cy.tsx +0 -16
  725. package/src/lib/components/Link/index.ts +0 -3
  726. package/src/lib/components/Link/types.ts +0 -9
  727. package/src/lib/components/Linkify/Linkify.tsx +0 -51
  728. package/src/lib/components/Linkify/__preview__/Linkify.preview.tsx +0 -28
  729. package/src/lib/components/Linkify/__tests__/Linkify.cy.tsx +0 -28
  730. package/src/lib/components/Linkify/index.ts +0 -3
  731. package/src/lib/components/Linkify/types.ts +0 -8
  732. package/src/lib/components/ListGroup/ListGroup.tsx +0 -113
  733. package/src/lib/components/ListGroup/ListGroupItem.tsx +0 -164
  734. package/src/lib/components/ListGroup/ListGroupTitle.tsx +0 -56
  735. package/src/lib/components/ListGroup/__preview__/ListGroup.preview.tsx +0 -102
  736. package/src/lib/components/ListGroup/__tests__/ListGroup.cy.tsx +0 -85
  737. package/src/lib/components/ListGroup/__tests__/data.ts +0 -58
  738. package/src/lib/components/ListGroup/index.ts +0 -5
  739. package/src/lib/components/ListGroup/styles.tsx +0 -179
  740. package/src/lib/components/ListGroup/types.ts +0 -114
  741. package/src/lib/components/Loader/Loader.tsx +0 -35
  742. package/src/lib/components/Loader/__preview__/Loader.preview.tsx +0 -39
  743. package/src/lib/components/Loader/__tests__/Loader.cy.tsx +0 -72
  744. package/src/lib/components/Loader/index.ts +0 -3
  745. package/src/lib/components/Loader/styles.tsx +0 -140
  746. package/src/lib/components/Loader/templates/LoaderFour.tsx +0 -24
  747. package/src/lib/components/Loader/templates/LoaderOne.tsx +0 -24
  748. package/src/lib/components/Loader/templates/LoaderThree.tsx +0 -29
  749. package/src/lib/components/Loader/templates/LoaderTwo.tsx +0 -24
  750. package/src/lib/components/Loader/types.ts +0 -25
  751. package/src/lib/components/Main/Main.tsx +0 -45
  752. package/src/lib/components/Main/__preview__/Main.preview.tsx +0 -33
  753. package/src/lib/components/Main/index.ts +0 -3
  754. package/src/lib/components/Main/styles.tsx +0 -61
  755. package/src/lib/components/Main/types.ts +0 -19
  756. package/src/lib/components/MarkdownContainer/MarkdownContainer.tsx +0 -35
  757. package/src/lib/components/MarkdownContainer/__preview__/MarkdownContainer.preview.tsx +0 -28
  758. package/src/lib/components/MarkdownContainer/index.ts +0 -3
  759. package/src/lib/components/MarkdownContainer/styles.tsx +0 -17
  760. package/src/lib/components/MarkdownContainer/types.ts +0 -9
  761. package/src/lib/components/MarkdownEditor/MarkdownEditor.tsx +0 -196
  762. package/src/lib/components/MarkdownEditor/MdEditorButtons/EditorButtonTitles.tsx +0 -77
  763. package/src/lib/components/MarkdownEditor/MdEditorButtons/EditorButtons.tsx +0 -75
  764. package/src/lib/components/MarkdownEditor/MdEditorButtons/MarkdownButtons.tsx +0 -54
  765. package/src/lib/components/MarkdownEditor/MdEditorInput.tsx +0 -98
  766. package/src/lib/components/MarkdownEditor/__preview__/MarkdownEditor.demo.tsx +0 -11
  767. package/src/lib/components/MarkdownEditor/__preview__/MarkdownEditor.preview.tsx +0 -28
  768. package/src/lib/components/MarkdownEditor/__tests__/MarkdownEditor.cy.tsx +0 -50
  769. package/src/lib/components/MarkdownEditor/__tests__/Preview.tsx +0 -11
  770. package/src/lib/components/MarkdownEditor/index.ts +0 -3
  771. package/src/lib/components/MarkdownEditor/markdown-buttons.tsx +0 -182
  772. package/src/lib/components/MarkdownEditor/styles.tsx +0 -186
  773. package/src/lib/components/MarkdownEditor/subtypes.ts +0 -54
  774. package/src/lib/components/MarkdownEditor/types.ts +0 -59
  775. package/src/lib/components/Masonry/Masonry.tsx +0 -67
  776. package/src/lib/components/Masonry/__preview__/Masonry.preview.tsx +0 -48
  777. package/src/lib/components/Masonry/__tests__/Masonry.cy.tsx +0 -35
  778. package/src/lib/components/Masonry/index.ts +0 -3
  779. package/src/lib/components/Masonry/styles.tsx +0 -24
  780. package/src/lib/components/Masonry/types.ts +0 -10
  781. package/src/lib/components/Masonry/utils.ts +0 -30
  782. package/src/lib/components/Messaging/Message.tsx +0 -106
  783. package/src/lib/components/Messaging/MessageForm.tsx +0 -144
  784. package/src/lib/components/Messaging/MessagesContainer.tsx +0 -29
  785. package/src/lib/components/Messaging/MessagesList.tsx +0 -136
  786. package/src/lib/components/Messaging/Messaging.tsx +0 -123
  787. package/src/lib/components/Messaging/__preview__/Messaging.demo.tsx +0 -39
  788. package/src/lib/components/Messaging/__preview__/Messaging.preview.tsx +0 -130
  789. package/src/lib/components/Messaging/__tests__/Messaging.cy.tsx +0 -31
  790. package/src/lib/components/Messaging/__tests__/Preview.tsx +0 -69
  791. package/src/lib/components/Messaging/index.ts +0 -7
  792. package/src/lib/components/Messaging/styles.tsx +0 -177
  793. package/src/lib/components/Messaging/types.ts +0 -131
  794. package/src/lib/components/Modal/Modal.tsx +0 -127
  795. package/src/lib/components/Modal/__preview__/Modal.preview.tsx +0 -37
  796. package/src/lib/components/Modal/__preview__/Previews.tsx +0 -65
  797. package/src/lib/components/Modal/__tests__/Modal.cy.tsx +0 -54
  798. package/src/lib/components/Modal/__tests__/Preview.tsx +0 -72
  799. package/src/lib/components/Modal/index.ts +0 -3
  800. package/src/lib/components/Modal/styles.tsx +0 -62
  801. package/src/lib/components/Modal/types.ts +0 -38
  802. package/src/lib/components/PageLayout/PageLayout.tsx +0 -80
  803. package/src/lib/components/PageLayout/__preview__/PageLayout.preview.tsx +0 -34
  804. package/src/lib/components/PageLayout/index.ts +0 -3
  805. package/src/lib/components/PageLayout/types.ts +0 -47
  806. package/src/lib/components/PageLoading/PageLoading.tsx +0 -64
  807. package/src/lib/components/PageLoading/__preview__/PageLoading.preview.tsx +0 -33
  808. package/src/lib/components/PageLoading/__tests__/PageLoading.cy.tsx +0 -21
  809. package/src/lib/components/PageLoading/index.ts +0 -3
  810. package/src/lib/components/PageLoading/styles.tsx +0 -24
  811. package/src/lib/components/PageLoading/types.ts +0 -15
  812. package/src/lib/components/Pagination/Pagination.tsx +0 -265
  813. package/src/lib/components/Pagination/PaginationButton.tsx +0 -51
  814. package/src/lib/components/Pagination/__preview__/Pagination.preview.tsx +0 -61
  815. package/src/lib/components/Pagination/__tests__/Pagination.cy.tsx +0 -51
  816. package/src/lib/components/Pagination/__tests__/Preview.tsx +0 -76
  817. package/src/lib/components/Pagination/index.ts +0 -4
  818. package/src/lib/components/Pagination/styles.tsx +0 -72
  819. package/src/lib/components/Pagination/types.ts +0 -61
  820. package/src/lib/components/Paginator/Paginator.tsx +0 -162
  821. package/src/lib/components/Paginator/__preview__/Paginator.preview.tsx +0 -60
  822. package/src/lib/components/Paginator/__tests__/Paginator.cy.tsx +0 -74
  823. package/src/lib/components/Paginator/__tests__/Preview.tsx +0 -107
  824. package/src/lib/components/Paginator/index.ts +0 -3
  825. package/src/lib/components/Paginator/styles.tsx +0 -36
  826. package/src/lib/components/Paginator/types.ts +0 -16
  827. package/src/lib/components/ProgressBar/ProgressBar.tsx +0 -68
  828. package/src/lib/components/ProgressBar/__preview__/ProgressBar.preview.tsx +0 -28
  829. package/src/lib/components/ProgressBar/__tests__/ProgressBar.cy.tsx +0 -63
  830. package/src/lib/components/ProgressBar/index.ts +0 -3
  831. package/src/lib/components/ProgressBar/styles.tsx +0 -55
  832. package/src/lib/components/ProgressBar/types.ts +0 -13
  833. package/src/lib/components/ProgressCircle/Circle.tsx +0 -30
  834. package/src/lib/components/ProgressCircle/ProgressCircle.tsx +0 -93
  835. package/src/lib/components/ProgressCircle/ProgressCircleFn.tsx +0 -48
  836. package/src/lib/components/ProgressCircle/Value.tsx +0 -31
  837. package/src/lib/components/ProgressCircle/__preview__/ProgressCircle.preview.tsx +0 -55
  838. package/src/lib/components/ProgressCircle/__tests__/ProgressCircle.cy.tsx +0 -81
  839. package/src/lib/components/ProgressCircle/clean-percentage.ts +0 -7
  840. package/src/lib/components/ProgressCircle/index.ts +0 -3
  841. package/src/lib/components/ProgressCircle/styles.tsx +0 -55
  842. package/src/lib/components/ProgressCircle/subtypes.ts +0 -11
  843. package/src/lib/components/ProgressCircle/types.ts +0 -31
  844. package/src/lib/components/Rating/Rating.tsx +0 -177
  845. package/src/lib/components/Rating/__preview__/Rating.preview.tsx +0 -56
  846. package/src/lib/components/Rating/__tests__/Preview.tsx +0 -28
  847. package/src/lib/components/Rating/__tests__/Rating.cy.tsx +0 -55
  848. package/src/lib/components/Rating/index.ts +0 -3
  849. package/src/lib/components/Rating/styles.tsx +0 -52
  850. package/src/lib/components/Rating/types.ts +0 -24
  851. package/src/lib/components/ResetScroll/ResetScroll.tsx +0 -22
  852. package/src/lib/components/ResetScroll/__preview__/ResetScroll.preview.tsx +0 -19
  853. package/src/lib/components/ResetScroll/index.ts +0 -3
  854. package/src/lib/components/Section/Section.tsx +0 -30
  855. package/src/lib/components/Section/__preview__/Section.preview.tsx +0 -34
  856. package/src/lib/components/Section/__tests__/Section.cy.tsx +0 -26
  857. package/src/lib/components/Section/index.ts +0 -3
  858. package/src/lib/components/Section/styles.tsx +0 -24
  859. package/src/lib/components/Section/types.ts +0 -7
  860. package/src/lib/components/Select/Select.tsx +0 -284
  861. package/src/lib/components/Select/SelectButton.tsx +0 -58
  862. package/src/lib/components/Select/__preview__/Select.preview.tsx +0 -40
  863. package/src/lib/components/Select/__tests__/Preview.tsx +0 -32
  864. package/src/lib/components/Select/__tests__/Select.cy.tsx +0 -47
  865. package/src/lib/components/Select/index.ts +0 -3
  866. package/src/lib/components/Select/styles.tsx +0 -22
  867. package/src/lib/components/Select/subtypes.ts +0 -32
  868. package/src/lib/components/Select/types.ts +0 -33
  869. package/src/lib/components/Skeleton/Skeleton.tsx +0 -60
  870. package/src/lib/components/Skeleton/SkeletonCard.tsx +0 -78
  871. package/src/lib/components/Skeleton/SkeletonShine.tsx +0 -26
  872. package/src/lib/components/Skeleton/__preview__/Skeleton.preview.tsx +0 -115
  873. package/src/lib/components/Skeleton/__tests__/Skeleton.cy.tsx +0 -118
  874. package/src/lib/components/Skeleton/index.ts +0 -5
  875. package/src/lib/components/Skeleton/styles.tsx +0 -102
  876. package/src/lib/components/Skeleton/subtypes.ts +0 -16
  877. package/src/lib/components/Skeleton/types.ts +0 -39
  878. package/src/lib/components/Slideshow/Slideshow.tsx +0 -218
  879. package/src/lib/components/Slideshow/SlideshowButton.tsx +0 -99
  880. package/src/lib/components/Slideshow/SlideshowPagination.tsx +0 -84
  881. package/src/lib/components/Slideshow/__preview__/Slideshow.preview.tsx +0 -53
  882. package/src/lib/components/Slideshow/__tests__/Slideshow.cy.tsx +0 -81
  883. package/src/lib/components/Slideshow/index.ts +0 -3
  884. package/src/lib/components/Slideshow/styles.tsx +0 -361
  885. package/src/lib/components/Slideshow/subtypes.ts +0 -22
  886. package/src/lib/components/Slideshow/types.ts +0 -99
  887. package/src/lib/components/SrOnly/SrOnly.tsx +0 -23
  888. package/src/lib/components/SrOnly/__preview__/SrOnly.preview.tsx +0 -28
  889. package/src/lib/components/SrOnly/__tests__/SrOnly.cy.tsx +0 -17
  890. package/src/lib/components/SrOnly/index.ts +0 -3
  891. package/src/lib/components/SrOnly/styles.tsx +0 -21
  892. package/src/lib/components/SrOnly/types.ts +0 -5
  893. package/src/lib/components/Stepper/Step.tsx +0 -118
  894. package/src/lib/components/Stepper/Stepper.tsx +0 -96
  895. package/src/lib/components/Stepper/__preview__/Stepper.preview.tsx +0 -63
  896. package/src/lib/components/Stepper/__tests__/Stepper.cy.tsx +0 -96
  897. package/src/lib/components/Stepper/__tests__/data.ts +0 -29
  898. package/src/lib/components/Stepper/index.ts +0 -4
  899. package/src/lib/components/Stepper/styles.tsx +0 -115
  900. package/src/lib/components/Stepper/types.ts +0 -48
  901. package/src/lib/components/Sticky/Sticky.tsx +0 -30
  902. package/src/lib/components/Sticky/__preview__/Sticky.preview.tsx +0 -180
  903. package/src/lib/components/Sticky/index.ts +0 -3
  904. package/src/lib/components/Sticky/styles.tsx +0 -15
  905. package/src/lib/components/Sticky/types.ts +0 -7
  906. package/src/lib/components/Table/TBody.tsx +0 -17
  907. package/src/lib/components/Table/THead.tsx +0 -17
  908. package/src/lib/components/Table/Table.tsx +0 -124
  909. package/src/lib/components/Table/Td.tsx +0 -26
  910. package/src/lib/components/Table/Tr.tsx +0 -17
  911. package/src/lib/components/Table/__preview__/Table.preview.tsx +0 -112
  912. package/src/lib/components/Table/__tests__/Table.cy.tsx +0 -24
  913. package/src/lib/components/Table/index.ts +0 -7
  914. package/src/lib/components/Table/styles.tsx +0 -114
  915. package/src/lib/components/Table/types.ts +0 -52
  916. package/src/lib/components/Tabs/TabButton.tsx +0 -50
  917. package/src/lib/components/Tabs/TabItem.tsx +0 -34
  918. package/src/lib/components/Tabs/Tabs.tsx +0 -137
  919. package/src/lib/components/Tabs/TabsButtonsContainer.tsx +0 -46
  920. package/src/lib/components/Tabs/TabsContainer.tsx +0 -23
  921. package/src/lib/components/Tabs/__preview__/Tabs.preview.tsx +0 -64
  922. package/src/lib/components/Tabs/__tests__/Tabs.cy.tsx +0 -62
  923. package/src/lib/components/Tabs/__tests__/data.tsx +0 -24
  924. package/src/lib/components/Tabs/index.ts +0 -7
  925. package/src/lib/components/Tabs/styles.tsx +0 -178
  926. package/src/lib/components/Tabs/types.ts +0 -60
  927. package/src/lib/components/Tag/Tag.tsx +0 -97
  928. package/src/lib/components/Tag/__preview__/Tag.preview.tsx +0 -63
  929. package/src/lib/components/Tag/__tests__/Tag.cy.tsx +0 -155
  930. package/src/lib/components/Tag/index.ts +0 -3
  931. package/src/lib/components/Tag/styles.tsx +0 -41
  932. package/src/lib/components/Tag/types.ts +0 -43
  933. package/src/lib/components/Text/Text.tsx +0 -69
  934. package/src/lib/components/Text/__preview__/Text.tsx +0 -35
  935. package/src/lib/components/Text/__preview__/previews/Description.tsx +0 -20
  936. package/src/lib/components/Text/__preview__/previews/Ordered.tsx +0 -15
  937. package/src/lib/components/Text/__preview__/previews/Paragraphs.tsx +0 -37
  938. package/src/lib/components/Text/__preview__/previews/Quote.tsx +0 -11
  939. package/src/lib/components/Text/__preview__/previews/Small.tsx +0 -11
  940. package/src/lib/components/Text/__preview__/previews/TextDisplay.tsx +0 -30
  941. package/src/lib/components/Text/__preview__/previews/TextTitles.tsx +0 -34
  942. package/src/lib/components/Text/__preview__/previews/Unordered.tsx +0 -15
  943. package/src/lib/components/Text/__tests__/Text.cy.tsx +0 -83
  944. package/src/lib/components/Text/__tests__/utils.ts +0 -7
  945. package/src/lib/components/Text/index.ts +0 -3
  946. package/src/lib/components/Text/styles.tsx +0 -230
  947. package/src/lib/components/Text/subtypes.ts +0 -15
  948. package/src/lib/components/Text/templates/Blockquote.tsx +0 -34
  949. package/src/lib/components/Text/templates/Dl.tsx +0 -34
  950. package/src/lib/components/Text/templates/Em.tsx +0 -34
  951. package/src/lib/components/Text/templates/H1.tsx +0 -36
  952. package/src/lib/components/Text/templates/H2.tsx +0 -36
  953. package/src/lib/components/Text/templates/H3.tsx +0 -36
  954. package/src/lib/components/Text/templates/H4.tsx +0 -36
  955. package/src/lib/components/Text/templates/H5.tsx +0 -36
  956. package/src/lib/components/Text/templates/H6.tsx +0 -34
  957. package/src/lib/components/Text/templates/Ol.tsx +0 -34
  958. package/src/lib/components/Text/templates/P.tsx +0 -34
  959. package/src/lib/components/Text/templates/Small.tsx +0 -34
  960. package/src/lib/components/Text/templates/Strong.tsx +0 -34
  961. package/src/lib/components/Text/templates/Ul.tsx +0 -34
  962. package/src/lib/components/Text/types.ts +0 -28
  963. package/src/lib/components/TextIcon/TextIcon.tsx +0 -104
  964. package/src/lib/components/TextIcon/__preview__/TextIcon.preview.tsx +0 -29
  965. package/src/lib/components/TextIcon/__tests__/TextIcon.cy.tsx +0 -131
  966. package/src/lib/components/TextIcon/index.ts +0 -3
  967. package/src/lib/components/TextIcon/styles.tsx +0 -38
  968. package/src/lib/components/TextIcon/types.ts +0 -21
  969. package/src/lib/components/TextIcon/utils.ts +0 -56
  970. package/src/lib/components/Timepicker/Timepicker.tsx +0 -294
  971. package/src/lib/components/Timepicker/__preview__/Timepicker.demo.tsx +0 -70
  972. package/src/lib/components/Timepicker/__preview__/Timepicker.preview.tsx +0 -60
  973. package/src/lib/components/Timepicker/__tests__/Preview.tsx +0 -68
  974. package/src/lib/components/Timepicker/__tests__/Timepicker.cy.tsx +0 -18
  975. package/src/lib/components/Timepicker/index.ts +0 -3
  976. package/src/lib/components/Timepicker/styles.tsx +0 -34
  977. package/src/lib/components/Timepicker/types.ts +0 -69
  978. package/src/lib/components/Toast/Toast.tsx +0 -210
  979. package/src/lib/components/Toast/Toaster.tsx +0 -168
  980. package/src/lib/components/Toast/__preview__/Toast.preview.tsx +0 -32
  981. package/src/lib/components/Toast/__preview__/Toaster.demo.tsx +0 -79
  982. package/src/lib/components/Toast/__tests__/Preview.tsx +0 -78
  983. package/src/lib/components/Toast/__tests__/Toast.cy.tsx +0 -99
  984. package/src/lib/components/Toast/index.ts +0 -3
  985. package/src/lib/components/Toast/styles.tsx +0 -249
  986. package/src/lib/components/Toast/types.ts +0 -32
  987. package/src/lib/components/Tooltip/Tooltip.tsx +0 -120
  988. package/src/lib/components/Tooltip/__preview__/Tooltip.preview.tsx +0 -59
  989. package/src/lib/components/Tooltip/__tests__/Tooltip.cy.tsx +0 -40
  990. package/src/lib/components/Tooltip/index.ts +0 -3
  991. package/src/lib/components/Tooltip/styles.tsx +0 -151
  992. package/src/lib/components/Tooltip/types.ts +0 -22
  993. package/src/lib/components/Truncate/Truncate.tsx +0 -113
  994. package/src/lib/components/Truncate/__preview__/Truncate.demo.tsx +0 -45
  995. package/src/lib/components/Truncate/__preview__/Truncate.preview.tsx +0 -19
  996. package/src/lib/components/Truncate/__tests__/Truncate.cy.tsx +0 -71
  997. package/src/lib/components/Truncate/__tests__/utils.ts +0 -12
  998. package/src/lib/components/Truncate/index.ts +0 -3
  999. package/src/lib/components/Truncate/styles.tsx +0 -37
  1000. package/src/lib/components/Truncate/types.ts +0 -7
  1001. package/src/lib/components/Video/Video.tsx +0 -66
  1002. package/src/lib/components/Video/__preview__/Video.preview.tsx +0 -45
  1003. package/src/lib/components/Video/__tests__/Video.cy.tsx +0 -18
  1004. package/src/lib/components/Video/index.ts +0 -3
  1005. package/src/lib/components/Video/styles.tsx +0 -24
  1006. package/src/lib/components/Video/types.ts +0 -22
  1007. package/src/lib/components/Wrapper/Wrapper.tsx +0 -43
  1008. package/src/lib/components/Wrapper/__preview__/Wrapper.preview.tsx +0 -25
  1009. package/src/lib/components/Wrapper/index.ts +0 -3
  1010. package/src/lib/components/Wrapper/styles.tsx +0 -29
  1011. package/src/lib/components/Wrapper/types.ts +0 -9
  1012. package/src/lib/components/Youtube/Youtube.tsx +0 -44
  1013. package/src/lib/components/Youtube/__preview__/Youtube.preview.tsx +0 -28
  1014. package/src/lib/components/Youtube/__tests__/Youtube.cy.tsx +0 -26
  1015. package/src/lib/components/Youtube/index.ts +0 -3
  1016. package/src/lib/components/Youtube/styles.tsx +0 -20
  1017. package/src/lib/components/Youtube/types.ts +0 -11
  1018. package/src/lib/context/Theme.context.tsx +0 -104
  1019. package/src/lib/context/Toaster/Toaster.context.tsx +0 -130
  1020. package/src/lib/context/Toaster/index.ts +0 -3
  1021. package/src/lib/context/Toaster/toast.reducer.ts +0 -36
  1022. package/src/lib/hooks/index.ts +0 -17
  1023. package/src/lib/hooks/useClickOutside.tsx +0 -37
  1024. package/src/lib/hooks/useCopyToClipboard.tsx +0 -33
  1025. package/src/lib/hooks/useDebounce.tsx +0 -21
  1026. package/src/lib/hooks/useExportData.tsx +0 -55
  1027. package/src/lib/hooks/useFetch.tsx +0 -25
  1028. package/src/lib/hooks/useForm.tsx +0 -28
  1029. package/src/lib/hooks/useIsOverflow.ts +0 -44
  1030. package/src/lib/hooks/useKeyPress.tsx +0 -95
  1031. package/src/lib/hooks/useMaxWidth.tsx +0 -28
  1032. package/src/lib/hooks/useMergeRefs.ts +0 -33
  1033. package/src/lib/hooks/useMinWidth.tsx +0 -28
  1034. package/src/lib/hooks/usePaginatedData.tsx +0 -37
  1035. package/src/lib/hooks/usePagination.tsx +0 -112
  1036. package/src/lib/hooks/useTouchScreen.tsx +0 -21
  1037. package/src/lib/hooks/useTranslation.tsx +0 -30
  1038. package/src/lib/icons/ArrowUp.tsx +0 -32
  1039. package/src/lib/icons/Bold.tsx +0 -32
  1040. package/src/lib/icons/Calendar.tsx +0 -40
  1041. package/src/lib/icons/CaretDown.tsx +0 -32
  1042. package/src/lib/icons/Check.tsx +0 -32
  1043. package/src/lib/icons/CheckCircle.tsx +0 -38
  1044. package/src/lib/icons/ChevronDown.tsx +0 -32
  1045. package/src/lib/icons/ChevronLeft.tsx +0 -32
  1046. package/src/lib/icons/ChevronRight.tsx +0 -32
  1047. package/src/lib/icons/ChevronUp.tsx +0 -32
  1048. package/src/lib/icons/Clipboard.tsx +0 -32
  1049. package/src/lib/icons/Clock.tsx +0 -35
  1050. package/src/lib/icons/Close.tsx +0 -32
  1051. package/src/lib/icons/CloseCircle.tsx +0 -38
  1052. package/src/lib/icons/Code.tsx +0 -32
  1053. package/src/lib/icons/CodeBlock.tsx +0 -42
  1054. package/src/lib/icons/Comment.tsx +0 -42
  1055. package/src/lib/icons/Drag.tsx +0 -32
  1056. package/src/lib/icons/Edit.tsx +0 -38
  1057. package/src/lib/icons/EditorCode.tsx +0 -36
  1058. package/src/lib/icons/EditorLive.tsx +0 -36
  1059. package/src/lib/icons/EditorPreview.tsx +0 -36
  1060. package/src/lib/icons/Hide.tsx +0 -32
  1061. package/src/lib/icons/Image.tsx +0 -42
  1062. package/src/lib/icons/Italic.tsx +0 -32
  1063. package/src/lib/icons/Link.tsx +0 -36
  1064. package/src/lib/icons/Minus.tsx +0 -29
  1065. package/src/lib/icons/OrderedList.tsx +0 -32
  1066. package/src/lib/icons/Plus.tsx +0 -32
  1067. package/src/lib/icons/Quote.tsx +0 -32
  1068. package/src/lib/icons/Search.tsx +0 -38
  1069. package/src/lib/icons/Send.tsx +0 -32
  1070. package/src/lib/icons/Separator.tsx +0 -32
  1071. package/src/lib/icons/Show.tsx +0 -38
  1072. package/src/lib/icons/Star.tsx +0 -32
  1073. package/src/lib/icons/StarFull.tsx +0 -32
  1074. package/src/lib/icons/Strikethrough.tsx +0 -32
  1075. package/src/lib/icons/Underline.tsx +0 -36
  1076. package/src/lib/icons/UnorderedList.tsx +0 -32
  1077. package/src/lib/icons/index.ts +0 -41
  1078. package/src/lib/icons/styles.tsx +0 -19
  1079. package/src/lib/icons/types.ts +0 -11
  1080. package/src/lib/index.ts +0 -159
  1081. package/src/lib/lib-utils/append-styles.ts +0 -9
  1082. package/src/lib/lib-utils/colors-maps.ts +0 -176
  1083. package/src/lib/lib-utils/get-highlighted-text.tsx +0 -31
  1084. package/src/lib/lib-utils/get-icon-size-from-font.ts +0 -27
  1085. package/src/lib/lib-utils/index.ts +0 -11
  1086. package/src/lib/lib-utils/round-icon-size.ts +0 -7
  1087. package/src/lib/lib-utils/transfom-search-keys.ts +0 -15
  1088. package/src/lib/modules-declare.d.ts +0 -18
  1089. package/src/lib/utils/StyleSheetManager.tsx +0 -32
  1090. package/src/lib/utils/index.ts +0 -6
  1091. package/src/lib/utils/lib-tokens.json +0 -860
  1092. package/src/lib/utils/linkify-text.tsx +0 -28
  1093. package/src/lib/utils/options-markdown.ts +0 -133
  1094. package/src/lib/utils/set-default-theme.ts +0 -14
  1095. package/src/main.tsx +0 -13
  1096. package/src/pages/404.tsx +0 -20
  1097. package/src/pages/Generate.tsx +0 -505
  1098. package/src/pages/GenerateOLD.tsx +0 -204
  1099. package/src/pages/Homepage.tsx +0 -8
  1100. package/src/pages/components/ComponentPage.tsx +0 -46
  1101. package/src/pages/demos/BackToTopDemo.tsx +0 -176
  1102. package/src/pages/demos/DemoAsideBoth.tsx +0 -37
  1103. package/src/pages/demos/DemoAsideDefault.tsx +0 -25
  1104. package/src/pages/demos/DemoAsideSmall.tsx +0 -29
  1105. package/src/pages/demos/DemoCoverBottom.tsx +0 -27
  1106. package/src/pages/demos/DemoCoverBottomOverlay.tsx +0 -27
  1107. package/src/pages/demos/DemoCoverCenter.tsx +0 -27
  1108. package/src/pages/demos/DemoCoverCenterOverlay.tsx +0 -28
  1109. package/src/pages/demos/DemoHeader.tsx +0 -76
  1110. package/src/pages/demos/DemoMainDefault.tsx +0 -16
  1111. package/src/pages/demos/DemoMainForm.tsx +0 -20
  1112. package/src/pages/demos/DemoMainFull.tsx +0 -126
  1113. package/src/pages/demos/DemoMainLarge.tsx +0 -21
  1114. package/src/pages/demos/DemoMainNumber.tsx +0 -21
  1115. package/src/pages/demos/DemoPageLoading.tsx +0 -18
  1116. package/src/pages/demos/PageLayoutDemo.tsx +0 -53
  1117. package/src/routes/index.tsx +0 -91
  1118. package/src/vite-env.d.ts +0 -1
  1119. package/tsconfig-types.json +0 -32
  1120. package/tsconfig.app.json +0 -26
  1121. package/tsconfig.json +0 -7
  1122. package/tsconfig.node.json +0 -24
  1123. package/vite.config.ts +0 -49
  1124. /package/{src/lib → dist}/index.css +0 -0
  1125. /package/{src/lib → dist}/types/component-items.ts +0 -0
  1126. /package/{src/lib → dist}/types/components-props.ts +0 -0
  1127. /package/{src/lib → dist}/types/generate-int-range.ts +0 -0
  1128. /package/{src/lib → dist}/types/global.ts +0 -0
  1129. /package/{src/lib → dist}/types/index.ts +0 -0
  1130. /package/{src/lib → dist}/types/require-at-least-one.ts +0 -0
  1131. /package/{src/lib → dist}/types/theme.ts +0 -0
  1132. /package/{src/lib → dist}/types/type-values.ts +0 -0
@@ -1,985 +0,0 @@
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()