@okam/stack-ui 1.25.3 → 1.25.4

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 (382) hide show
  1. package/components/Accordion/components/AccordionItem.d.ts +3 -0
  2. package/components/Accordion/components/AriaAccordionItem.d.ts +3 -0
  3. package/components/Accordion/hooks/useAccordionState.d.ts +10 -0
  4. package/components/Accordion/index.d.ts +3 -0
  5. package/{src/components/Accordion/interface.ts → components/Accordion/interface.d.ts} +17 -23
  6. package/components/Alerts/components/AlertsCloseButton.d.ts +4 -0
  7. package/components/Alerts/components/AlertsItem.d.ts +3 -0
  8. package/components/Alerts/components/AlertsNavigationButton.d.ts +8 -0
  9. package/components/Alerts/components/AlertsSwiper.d.ts +3 -0
  10. package/components/Alerts/components/pagination/AlertsPagination.d.ts +3 -0
  11. package/components/Alerts/components/pagination/AlertsPaginationBullet.d.ts +3 -0
  12. package/components/Alerts/index.d.ts +3 -0
  13. package/components/Alerts/interface.d.ts +41 -0
  14. package/components/Box/index.d.ts +5 -0
  15. package/components/Box/interface.d.ts +11 -0
  16. package/components/Button/index.d.ts +6 -0
  17. package/components/Button/interface.d.ts +20 -0
  18. package/components/Calendar/RangeCalendar.d.ts +3 -0
  19. package/components/Calendar/components/CalendarCell.d.ts +3 -0
  20. package/components/Calendar/components/CalendarGrid.d.ts +3 -0
  21. package/components/Calendar/index.d.ts +3 -0
  22. package/components/Calendar/interface.d.ts +32 -0
  23. package/components/Carousel/index.d.ts +3 -0
  24. package/components/Carousel/interface.d.ts +24 -0
  25. package/components/Date/index.d.ts +3 -0
  26. package/components/Date/interface.d.ts +6 -0
  27. package/components/Dialog/index.d.ts +2 -0
  28. package/components/Dialog/interface.d.ts +6 -0
  29. package/components/DirectusImg/index.d.ts +3 -0
  30. package/components/DirectusImg/interface.d.ts +17 -0
  31. package/components/Icon/index.d.ts +3 -0
  32. package/components/Icon/interface.d.ts +7 -0
  33. package/components/Img/index.d.ts +3 -0
  34. package/components/Img/interface.d.ts +6 -0
  35. package/components/Lightbox/index.d.ts +3 -0
  36. package/components/Lightbox/interface.d.ts +25 -0
  37. package/components/Menu/Menu.d.ts +3 -0
  38. package/components/Menu/MenuSidePanel.d.ts +3 -0
  39. package/components/Menu/components/InnerContent.d.ts +3 -0
  40. package/components/Menu/components/MenuItems.d.ts +3 -0
  41. package/components/Menu/components/TabContainer.d.ts +3 -0
  42. package/components/Menu/interface.d.ts +31 -0
  43. package/components/Modal/components/ModalDialog.d.ts +3 -0
  44. package/components/Modal/components/ModalOverlay.d.ts +3 -0
  45. package/components/Modal/index.d.ts +3 -0
  46. package/{src/components/Modal/interface.ts → components/Modal/interface.d.ts} +11 -14
  47. package/components/Popover/index.d.ts +3 -0
  48. package/components/Popover/interface.d.ts +21 -0
  49. package/components/ShareButton/index.d.ts +4 -0
  50. package/components/ShareButton/interface.d.ts +26 -0
  51. package/components/ShareButton/utils/generateUtmTags.d.ts +2 -0
  52. package/components/ShareButton/utils/useFacebookShareUrl.d.ts +2 -0
  53. package/components/ShareButton/utils/useMailToShareUrl.d.ts +2 -0
  54. package/components/ShareButton/utils/useTwitterShareUrl.d.ts +2 -0
  55. package/components/ShareButton/utils/useWindow.d.ts +5 -0
  56. package/components/SidePanel/index.d.ts +4 -0
  57. package/components/SidePanel/interface.d.ts +12 -0
  58. package/components/TabList/components/TabPanel/TabPanel.d.ts +4 -0
  59. package/components/TabList/interface.d.ts +18 -0
  60. package/components/Typography/index.d.ts +5 -0
  61. package/components/Typography/interface.d.ts +10 -0
  62. package/components/WysiwygBlock/index.d.ts +3 -0
  63. package/components/WysiwygBlock/interface.d.ts +5 -0
  64. package/components/fields/Checkbox/Checkbox.interface.d.ts +18 -0
  65. package/components/fields/Checkbox/index.d.ts +3 -0
  66. package/components/fields/CheckboxGroup/components/CheckboxGroupItem/index.d.ts +3 -0
  67. package/components/fields/CheckboxGroup/index.d.ts +3 -0
  68. package/components/fields/CheckboxGroup/interface.d.ts +13 -0
  69. package/components/fields/DatePicker/DateRangePicker.d.ts +3 -0
  70. package/components/fields/DatePicker/components/CalendarPopover.d.ts +2 -0
  71. package/components/fields/DatePicker/components/DateField.d.ts +4 -0
  72. package/components/fields/DatePicker/index.d.ts +3 -0
  73. package/components/fields/DatePicker/interface.d.ts +37 -0
  74. package/components/fields/Radio/Radio.interface.d.ts +26 -0
  75. package/components/fields/Radio/index.d.ts +4 -0
  76. package/components/fields/RadioGroup/index.d.ts +3 -0
  77. package/components/fields/RadioGroup/interface.d.ts +9 -0
  78. package/components/fields/SearchField/index.d.ts +3 -0
  79. package/components/fields/SearchField/interface.d.ts +9 -0
  80. package/components/fields/Select/Select.d.ts +4 -0
  81. package/components/fields/Select/Select.interface.d.ts +26 -0
  82. package/components/fields/Select/components/Listbox.d.ts +4 -0
  83. package/{src/components/fields/Select/components/Listbox.interface.ts → components/fields/Select/components/Listbox.interface.d.ts} +8 -11
  84. package/components/fields/Select/components/Popover.d.ts +3 -0
  85. package/components/fields/Select/components/Popover.interface.d.ts +13 -0
  86. package/components/fields/SelectItem/SelectItem.d.ts +3 -0
  87. package/{src/components/fields/SelectItem/SelectItem.interface.ts → components/fields/SelectItem/SelectItem.interface.d.ts} +3 -4
  88. package/components/fields/TextArea/index.d.ts +4 -0
  89. package/components/fields/TextInputField/index.d.ts +4 -0
  90. package/components/fields/TextInputField/interface.d.ts +24 -0
  91. package/components/icons/ArrowDown.d.ts +3 -0
  92. package/components/icons/ArrowLeft.d.ts +3 -0
  93. package/components/icons/ArrowRight.d.ts +3 -0
  94. package/components/icons/Check.d.ts +3 -0
  95. package/components/icons/ChevronLeft.d.ts +3 -0
  96. package/components/icons/ChevronRight.d.ts +3 -0
  97. package/components/icons/CloseBtn.d.ts +3 -0
  98. package/components/icons/Facebook.d.ts +3 -0
  99. package/components/icons/FacebookColored.d.ts +3 -0
  100. package/components/icons/FacebookRounded.d.ts +3 -0
  101. package/components/icons/Globe.d.ts +3 -0
  102. package/components/icons/IconFallback.d.ts +3 -0
  103. package/components/icons/Instagram.d.ts +3 -0
  104. package/components/icons/InstagramColored.d.ts +3 -0
  105. package/components/icons/Link.d.ts +3 -0
  106. package/components/icons/LinkedIn.d.ts +3 -0
  107. package/components/icons/Mail.d.ts +3 -0
  108. package/components/icons/Plus.d.ts +3 -0
  109. package/components/icons/Search.d.ts +3 -0
  110. package/components/icons/Share.d.ts +3 -0
  111. package/components/icons/Twitter.d.ts +3 -0
  112. package/components/icons/TwitterColored.d.ts +3 -0
  113. package/components/icons/Upload.d.ts +3 -0
  114. package/components/icons/X.d.ts +3 -0
  115. package/components/icons/YouTube.d.ts +3 -0
  116. package/components/icons/YouTubeColored.d.ts +3 -0
  117. package/components/icons/index.d.ts +24 -0
  118. package/{src/index.ts → index.d.ts} +57 -72
  119. package/index.js +110 -0
  120. package/index.mjs +12755 -0
  121. package/package.json +1 -1
  122. package/providers/Accordion/index.d.ts +4 -0
  123. package/providers/Accordion/interface.d.ts +12 -0
  124. package/providers/Alerts/index.d.ts +4 -0
  125. package/providers/Alerts/interface.d.ts +9 -0
  126. package/providers/CheckboxGroup/index.d.ts +5 -0
  127. package/{src/providers/CheckboxGroup/interface.ts → providers/CheckboxGroup/interface.d.ts} +4 -5
  128. package/providers/Client/index.d.ts +4 -0
  129. package/providers/Client/interface.d.ts +10 -0
  130. package/providers/Menu/index.d.ts +4 -0
  131. package/providers/Menu/interface.d.ts +28 -0
  132. package/providers/RadioGroup/RadioGroup.d.ts +5 -0
  133. package/providers/RadioGroup/RadioGroup.interface.d.ts +7 -0
  134. package/providers/SidePanel/index.d.ts +4 -0
  135. package/providers/SidePanel/interface.d.ts +23 -0
  136. package/providers/Theme/hooks.d.ts +3 -0
  137. package/providers/Theme/index.d.ts +10 -0
  138. package/providers/Theme/interface.d.ts +24 -0
  139. package/providers/Theme/utils.d.ts +2 -0
  140. package/providers/UserSearchQuery/index.d.ts +4 -0
  141. package/providers/UserSearchQuery/interface.d.ts +10 -0
  142. package/style.css +1 -0
  143. package/theme/Accordion/index.d.ts +274 -0
  144. package/theme/Alerts/index.d.ts +1167 -0
  145. package/theme/Box/index.d.ts +214 -0
  146. package/theme/Button/index.d.ts +121 -0
  147. package/theme/Calendar/index.d.ts +366 -0
  148. package/theme/Carousel/index.d.ts +9 -0
  149. package/theme/Checkbox/index.d.ts +159 -0
  150. package/theme/CheckboxGroup/index.d.ts +30 -0
  151. package/theme/DatePicker/index.d.ts +43 -0
  152. package/theme/Image/index.d.ts +3 -0
  153. package/theme/LightBox/index.d.ts +455 -0
  154. package/theme/Radio/index.d.ts +108 -0
  155. package/theme/RadioGroup/index.d.ts +30 -0
  156. package/theme/Search/index.d.ts +30 -0
  157. package/theme/ShareButton/index.d.ts +174 -0
  158. package/theme/SidePanel/index.d.ts +3 -0
  159. package/theme/TextArea/index.d.ts +29 -0
  160. package/theme/Typography/index.d.ts +233 -0
  161. package/theme/index.d.ts +5 -0
  162. package/transitions/AccordionTransition.d.ts +4 -0
  163. package/transitions/ModalTransition.d.ts +7 -0
  164. package/transitions/RenderWithOpacity.d.ts +4 -0
  165. package/transitions/RenderWithSlide.d.ts +7 -0
  166. package/transitions/SidePanelTransition.d.ts +7 -0
  167. package/types/components.d.ts +28 -0
  168. package/.eslintrc.js +0 -32
  169. package/.storybook/.eslintrc.js +0 -29
  170. package/.storybook/main.ts +0 -33
  171. package/.storybook/preview.js +0 -56
  172. package/.storybook/tsconfig.json +0 -17
  173. package/CHANGELOG.md +0 -574
  174. package/README.md +0 -8
  175. package/postcss.config.js +0 -15
  176. package/project.json +0 -77
  177. package/src/_stories/icons/code-brackets.svg +0 -1
  178. package/src/_stories/icons/colors.svg +0 -1
  179. package/src/_stories/icons/comments.svg +0 -1
  180. package/src/_stories/icons/direction.svg +0 -1
  181. package/src/_stories/icons/flow.svg +0 -1
  182. package/src/_stories/icons/plugin.svg +0 -1
  183. package/src/_stories/icons/repo.svg +0 -1
  184. package/src/_stories/icons/stackalt.svg +0 -1
  185. package/src/components/Accordion/accordion.stories.mdx +0 -240
  186. package/src/components/Accordion/components/AccordionItem.tsx +0 -53
  187. package/src/components/Accordion/components/AriaAccordionItem.tsx +0 -76
  188. package/src/components/Accordion/hooks/useAccordionState.ts +0 -46
  189. package/src/components/Accordion/index.tsx +0 -38
  190. package/src/components/Alerts/alerts.stories.mdx +0 -282
  191. package/src/components/Alerts/components/AlertsCloseButton.tsx +0 -20
  192. package/src/components/Alerts/components/AlertsItem.tsx +0 -39
  193. package/src/components/Alerts/components/AlertsNavigationButton.tsx +0 -71
  194. package/src/components/Alerts/components/AlertsSwiper.tsx +0 -125
  195. package/src/components/Alerts/components/pagination/AlertsPagination.tsx +0 -32
  196. package/src/components/Alerts/components/pagination/AlertsPaginationBullet.tsx +0 -61
  197. package/src/components/Alerts/index.tsx +0 -54
  198. package/src/components/Alerts/interface.ts +0 -51
  199. package/src/components/Box/box.stories.mdx +0 -27
  200. package/src/components/Box/index.tsx +0 -36
  201. package/src/components/Box/interface.ts +0 -10
  202. package/src/components/Button/button.stories.mdx +0 -99
  203. package/src/components/Button/index.tsx +0 -92
  204. package/src/components/Button/interface.ts +0 -22
  205. package/src/components/Calendar/RangeCalendar.tsx +0 -61
  206. package/src/components/Calendar/calendar.stories.mdx +0 -28
  207. package/src/components/Calendar/components/CalendarCell.tsx +0 -60
  208. package/src/components/Calendar/components/CalendarGrid.tsx +0 -44
  209. package/src/components/Calendar/index.tsx +0 -63
  210. package/src/components/Calendar/interface.ts +0 -37
  211. package/src/components/Carousel/carousel.stories.mdx +0 -182
  212. package/src/components/Carousel/index.tsx +0 -99
  213. package/src/components/Carousel/interface.ts +0 -26
  214. package/src/components/Date/date.stories.mdx +0 -122
  215. package/src/components/Date/index.tsx +0 -35
  216. package/src/components/Date/interface.ts +0 -7
  217. package/src/components/Dialog/index.tsx +0 -14
  218. package/src/components/Dialog/interface.ts +0 -6
  219. package/src/components/DirectusImg/index.tsx +0 -59
  220. package/src/components/DirectusImg/interface.ts +0 -19
  221. package/src/components/Icon/index.tsx +0 -40
  222. package/src/components/Icon/interface.ts +0 -8
  223. package/src/components/Img/img.stories.mdx +0 -28
  224. package/src/components/Img/index.tsx +0 -30
  225. package/src/components/Img/interface.ts +0 -9
  226. package/src/components/Lightbox/hooks/overlay/index.tsx +0 -36
  227. package/src/components/Lightbox/index.tsx +0 -82
  228. package/src/components/Lightbox/interface.ts +0 -28
  229. package/src/components/Lightbox/lightbox.stories.mdx +0 -79
  230. package/src/components/Menu/Menu.tsx +0 -43
  231. package/src/components/Menu/MenuSidePanel.tsx +0 -41
  232. package/src/components/Menu/components/InnerContent.tsx +0 -26
  233. package/src/components/Menu/components/MenuItems.tsx +0 -133
  234. package/src/components/Menu/components/TabContainer.tsx +0 -13
  235. package/src/components/Menu/interface.ts +0 -41
  236. package/src/components/Menu/menu.stories.mdx +0 -23
  237. package/src/components/Modal/components/ModalDialog.tsx +0 -31
  238. package/src/components/Modal/components/ModalOverlay.tsx +0 -21
  239. package/src/components/Modal/index.tsx +0 -32
  240. package/src/components/Popover/index.tsx +0 -138
  241. package/src/components/Popover/interface.ts +0 -25
  242. package/src/components/Popover/popover.stories.mdx +0 -66
  243. package/src/components/ShareButton/index.tsx +0 -172
  244. package/src/components/ShareButton/interface.ts +0 -29
  245. package/src/components/ShareButton/share-button.stories.mdx +0 -48
  246. package/src/components/ShareButton/utils/generateUtmTags.ts +0 -4
  247. package/src/components/ShareButton/utils/useFacebookShareUrl.ts +0 -15
  248. package/src/components/ShareButton/utils/useMailToShareUrl.ts +0 -15
  249. package/src/components/ShareButton/utils/useTwitterShareUrl.ts +0 -15
  250. package/src/components/ShareButton/utils/useWindow.ts +0 -17
  251. package/src/components/SidePanel/index.tsx +0 -43
  252. package/src/components/SidePanel/interface.ts +0 -16
  253. package/src/components/SidePanel/side-panel.stories.mdx +0 -44
  254. package/src/components/TabList/components/Tab/Tab.tsx +0 -19
  255. package/src/components/TabList/components/TabPanel/TabPanel.tsx +0 -27
  256. package/src/components/TabList/index.tsx +0 -44
  257. package/src/components/TabList/interface.ts +0 -23
  258. package/src/components/Typography/index.tsx +0 -35
  259. package/src/components/Typography/interface.ts +0 -9
  260. package/src/components/Typography/typo.stories.mdx +0 -157
  261. package/src/components/WysiwygBlock/index.tsx +0 -20
  262. package/src/components/WysiwygBlock/interface.ts +0 -7
  263. package/src/components/WysiwygBlock/wysiwyg.stories.mdx +0 -53
  264. package/src/components/fields/Checkbox/Checkbox.interface.ts +0 -21
  265. package/src/components/fields/Checkbox/Checkbox.stories.mdx +0 -127
  266. package/src/components/fields/Checkbox/index.tsx +0 -62
  267. package/src/components/fields/CheckboxGroup/checkbox-group.stories.mdx +0 -59
  268. package/src/components/fields/CheckboxGroup/components/CheckboxGroupItem/index.tsx +0 -66
  269. package/src/components/fields/CheckboxGroup/index.tsx +0 -49
  270. package/src/components/fields/CheckboxGroup/interface.ts +0 -17
  271. package/src/components/fields/DatePicker/DateRangePicker.tsx +0 -73
  272. package/src/components/fields/DatePicker/components/CalendarPopover.tsx +0 -31
  273. package/src/components/fields/DatePicker/components/DateField.tsx +0 -61
  274. package/src/components/fields/DatePicker/date-picker.stories.mdx +0 -55
  275. package/src/components/fields/DatePicker/index.tsx +0 -71
  276. package/src/components/fields/DatePicker/interface.ts +0 -69
  277. package/src/components/fields/Radio/Radio.interface.ts +0 -30
  278. package/src/components/fields/Radio/index.tsx +0 -63
  279. package/src/components/fields/RadioGroup/index.tsx +0 -33
  280. package/src/components/fields/RadioGroup/interface.ts +0 -10
  281. package/src/components/fields/RadioGroup/radio-group.stories.mdx +0 -56
  282. package/src/components/fields/SearchField/index.tsx +0 -59
  283. package/src/components/fields/SearchField/interface.ts +0 -10
  284. package/src/components/fields/SearchField/search.stories.mdx +0 -91
  285. package/src/components/fields/Select/Select.interface.ts +0 -24
  286. package/src/components/fields/Select/Select.stories.mdx +0 -53
  287. package/src/components/fields/Select/Select.tsx +0 -108
  288. package/src/components/fields/Select/components/Listbox.tsx +0 -40
  289. package/src/components/fields/Select/components/Popover.interface.ts +0 -14
  290. package/src/components/fields/Select/components/Popover.tsx +0 -32
  291. package/src/components/fields/SelectItem/SelectItem.tsx +0 -10
  292. package/src/components/fields/TextArea/index.tsx +0 -105
  293. package/src/components/fields/TextArea/textArea.stories.mdx +0 -60
  294. package/src/components/fields/TextInputField/index.tsx +0 -107
  295. package/src/components/fields/TextInputField/interface.ts +0 -30
  296. package/src/components/fields/TextInputField/text-input-field.stories.mdx +0 -64
  297. package/src/components/icons/ArrowDown.tsx +0 -11
  298. package/src/components/icons/ArrowLeft.tsx +0 -18
  299. package/src/components/icons/ArrowRight.tsx +0 -18
  300. package/src/components/icons/Check.tsx +0 -11
  301. package/src/components/icons/ChevronLeft.tsx +0 -11
  302. package/src/components/icons/ChevronRight.tsx +0 -11
  303. package/src/components/icons/CloseBtn.tsx +0 -11
  304. package/src/components/icons/Facebook.tsx +0 -14
  305. package/src/components/icons/FacebookColored.tsx +0 -16
  306. package/src/components/icons/FacebookRounded.tsx +0 -16
  307. package/src/components/icons/Globe.tsx +0 -38
  308. package/src/components/icons/IconFallback.tsx +0 -8
  309. package/src/components/icons/Instagram.tsx +0 -14
  310. package/src/components/icons/InstagramColored.tsx +0 -59
  311. package/src/components/icons/Link.tsx +0 -14
  312. package/src/components/icons/LinkedIn.tsx +0 -16
  313. package/src/components/icons/Mail.tsx +0 -16
  314. package/src/components/icons/Plus.tsx +0 -18
  315. package/src/components/icons/Search.tsx +0 -19
  316. package/src/components/icons/Share.tsx +0 -16
  317. package/src/components/icons/Twitter.tsx +0 -16
  318. package/src/components/icons/TwitterColored.tsx +0 -16
  319. package/src/components/icons/Upload.tsx +0 -14
  320. package/src/components/icons/X.tsx +0 -14
  321. package/src/components/icons/YouTube.tsx +0 -16
  322. package/src/components/icons/YouTubeColored.tsx +0 -17
  323. package/src/components/icons/index.ts +0 -24
  324. package/src/examples/PageLayout/index.tsx +0 -61
  325. package/src/examples/PageLayout/layout.stories.mdx +0 -35
  326. package/src/message.tsx +0 -8
  327. package/src/providers/Accordion/index.tsx +0 -15
  328. package/src/providers/Accordion/interface.ts +0 -14
  329. package/src/providers/Alerts/index.tsx +0 -15
  330. package/src/providers/Alerts/interface.ts +0 -11
  331. package/src/providers/CheckboxGroup/index.tsx +0 -22
  332. package/src/providers/Client/index.tsx +0 -21
  333. package/src/providers/Client/interface.ts +0 -13
  334. package/src/providers/Menu/index.tsx +0 -43
  335. package/src/providers/Menu/interface.ts +0 -32
  336. package/src/providers/RadioGroup/RadioGroup.interface.ts +0 -8
  337. package/src/providers/RadioGroup/RadioGroup.tsx +0 -25
  338. package/src/providers/SidePanel/index.tsx +0 -55
  339. package/src/providers/SidePanel/interface.ts +0 -26
  340. package/src/providers/Theme/hooks.ts +0 -25
  341. package/src/providers/Theme/index.tsx +0 -40
  342. package/src/providers/Theme/interface.ts +0 -28
  343. package/src/providers/Theme/utils.ts +0 -3
  344. package/src/providers/UserSearchQuery/index.tsx +0 -20
  345. package/src/providers/UserSearchQuery/interface.ts +0 -12
  346. package/src/storybook/Lightbox/LightboxControlledState.tsx +0 -28
  347. package/src/storybook/Menu/Menu.tsx +0 -177
  348. package/src/storybook/Menu/NestedMenu.tsx +0 -24
  349. package/src/storybook/Menu/mock.tsx +0 -84
  350. package/src/storybook/SelectField/index.tsx +0 -57
  351. package/src/storybook/ShareButtonExample/index.tsx +0 -66
  352. package/src/tailwind.css +0 -3
  353. package/src/theme/Accordion/index.tsx +0 -101
  354. package/src/theme/Alerts/index.ts +0 -97
  355. package/src/theme/Box/index.ts +0 -45
  356. package/src/theme/Button/index.tsx +0 -72
  357. package/src/theme/Calendar/index.tsx +0 -167
  358. package/src/theme/Carousel/index.ts +0 -36
  359. package/src/theme/Checkbox/index.ts +0 -49
  360. package/src/theme/CheckboxGroup/index.ts +0 -14
  361. package/src/theme/DatePicker/index.tsx +0 -42
  362. package/src/theme/Image/index.ts +0 -8
  363. package/src/theme/LightBox/index.ts +0 -56
  364. package/src/theme/Radio/index.ts +0 -31
  365. package/src/theme/RadioGroup/index.ts +0 -14
  366. package/src/theme/Search/index.ts +0 -20
  367. package/src/theme/ShareButton/index.tsx +0 -76
  368. package/src/theme/SidePanel/index.ts +0 -9
  369. package/src/theme/TextArea/index.ts +0 -25
  370. package/src/theme/Typography/index.tsx +0 -44
  371. package/src/theme/index.tsx +0 -178
  372. package/src/transitions/AccordionTransition.tsx +0 -26
  373. package/src/transitions/ModalTransition.tsx +0 -38
  374. package/src/transitions/RenderWithOpacity.tsx +0 -25
  375. package/src/transitions/RenderWithSlide.tsx +0 -21
  376. package/src/transitions/SidePanelTransition.tsx +0 -30
  377. package/src/types/components.ts +0 -34
  378. package/static/images/image.png +0 -0
  379. package/tailwind.config.js +0 -14
  380. package/tsconfig.json +0 -20
  381. package/tsconfig.lib.json +0 -25
  382. package/vite.config.ts +0 -58
@@ -1,72 +0,0 @@
1
- import { tv } from 'tailwind-variants'
2
-
3
- const button = tv({
4
- base: `
5
- flex
6
- items-center
7
- justify-center
8
- gap-4
9
- transition
10
- duration-300
11
- ease-in-out
12
- disabled:pointer-events-none
13
- disabled:opacity-30
14
- focus-ring-black
15
- `,
16
- defaultVariants: {
17
- buttonStyle: 'default',
18
- type: 'button',
19
- size: 'default',
20
- shape: 'rounded',
21
- },
22
- variants: {
23
- buttonStyle: {
24
- default: `
25
- px-4
26
- py-2
27
- text-white
28
- !bg-color-1-500
29
- hover:!bg-color-1-400
30
- active:!bg-color-1-400
31
- `,
32
- outline: `
33
- px-4
34
- py-2
35
- bg-transparent
36
- !border-color-1-500
37
- text-color-1-500
38
- hover:bg-color-1-500
39
- hover:text-white
40
- active:bg-color-1-500
41
- active:text-white
42
- `,
43
- hollow: `
44
- px-2
45
- bg-transparent
46
- text-color-1-500
47
- hover:border-b-color-1-500
48
- active:border-b-color-1-500
49
- focus:border-b-color-1-500
50
-
51
- `,
52
- },
53
- intent: {
54
- error: `
55
- !bg-error
56
- text-white
57
- pointer-events-none
58
- !border-error
59
- `,
60
- },
61
- size: {
62
- default: `min-w-12 min-h-6`,
63
- large: `min-w-36 min-h-18`,
64
- },
65
- shape: {
66
- rounded: `rounded-md`,
67
- circular: `rounded-full`,
68
- },
69
- },
70
- })
71
-
72
- export default button
@@ -1,167 +0,0 @@
1
- import { tv } from 'tailwind-variants'
2
-
3
- export const calendarContainer = tv({
4
- base: 'inline-block text-gray-800',
5
- })
6
-
7
- export const calendarHeaderContainer = tv({
8
- base: 'flex items-center justify-between pb-4',
9
- })
10
-
11
- export const calendarNavigationButtonsContainer = tv({
12
- base: 'flex items-center gap-1',
13
- })
14
-
15
- export const calendarNavigationButtons = tv({
16
- base: 'active:bg-color-1-500 p-2 rounded-full active:text-color-1-100 hover:bg-color-1-200 focus-ring-black',
17
- })
18
-
19
- export const calendarTable = tv({
20
- base: 'flex-1',
21
- })
22
-
23
- export const calendarDayLabel = tv({
24
- base: 'text-center',
25
- })
26
-
27
- export const calendarCellContainer = tv({
28
- base: 'py-0.5 relative',
29
- variants: {
30
- isFocusVisible: {
31
- true: 'z-10',
32
- false: '',
33
- },
34
- },
35
- })
36
-
37
- export const calendarCell = tv({
38
- base: 'w-10 h-10 outline-none group',
39
- variants: {
40
- isSelected: {
41
- true: '',
42
- false: '',
43
- },
44
- isInvalid: {
45
- true: '',
46
- fasle: '',
47
- },
48
- isDisabled: {
49
- true: 'disabled',
50
- false: '',
51
- },
52
- isRoundedLeft: {
53
- true: 'rounded-l-full',
54
- false: '',
55
- },
56
- isRoundedRight: {
57
- true: 'rounded-r-full',
58
- false: '',
59
- },
60
- },
61
- compoundVariants: [
62
- {
63
- isSelected: true,
64
- isInvalid: true,
65
- class: 'bg-red-300',
66
- },
67
- {
68
- isSelected: true,
69
- isInvalid: false,
70
- class: 'bg-color-1-300',
71
- },
72
- ],
73
- })
74
-
75
- export const calendarCellFormattedDate = tv({
76
- base: 'w-full h-full rounded-full flex items-center justify-center cursor-pointer',
77
- variants: {
78
- isSelected: {
79
- true: '',
80
- false: '',
81
- },
82
- isInvalid: {
83
- true: '',
84
- fasle: '',
85
- },
86
- isDisabled: {
87
- true: '',
88
- false: '',
89
- },
90
- isFocusVisible: {
91
- true: 'ring-2 group-focus:z-2 ring-violet-600 ring-offset-2',
92
- false: '',
93
- },
94
- isSelectionStart: {
95
- true: '',
96
- false: '',
97
- },
98
- isSelectionEnd: {
99
- true: '',
100
- false: '',
101
- },
102
- },
103
- compoundVariants: [
104
- {
105
- isDisabled: true,
106
- isInvalid: false,
107
- class: 'text-gray-400',
108
- },
109
- {
110
- isSelectionStart: true,
111
- isSelectionEnd: false,
112
- isInvalid: true,
113
- class: 'bg-red-600 text-white hover:bg-red-700',
114
- },
115
- {
116
- isSelectionStart: true,
117
- isSelectionEnd: true,
118
- isInvalid: true,
119
- class: 'bg-red-600 text-white hover:bg-red-700',
120
- },
121
- {
122
- isSelectionStart: true,
123
- isSelectionEnd: false,
124
- isInvalid: false,
125
- class: 'bg-color-1-400 text-white hover:bg-color-1-500',
126
- },
127
- {
128
- isSelectionStart: true,
129
- isSelectionEnd: true,
130
- isInvalid: false,
131
- class: 'bg-color-1-400 rounded-full text-white hover:bg-color-1-500',
132
- },
133
- {
134
- isSelectionStart: false,
135
- isSelectionEnd: true,
136
- isInvalid: true,
137
- class: 'bg-red-600 text-white hover:bg-red-700',
138
- },
139
- {
140
- isSelectionStart: false,
141
- isSelectionEnd: true,
142
- isInvalid: false,
143
- class: 'bg-color-1-400 text-white hover:bg-color-1-500',
144
- },
145
- {
146
- isSelected: false,
147
- isDisabled: false,
148
- class: 'hover:bg-color-1-100',
149
- },
150
- {
151
- isSelected: true,
152
- isDisabled: false,
153
- isInvalid: false,
154
- isSelectionStart: false,
155
- isSelectionEnd: false,
156
- class: 'hover:bg-color-1-300',
157
- },
158
- {
159
- isSelected: true,
160
- isDisabled: false,
161
- isInvalid: true,
162
- isSelectionStart: false,
163
- isSelectionEnd: false,
164
- class: 'hover:bg-red-400',
165
- },
166
- ],
167
- })
@@ -1,36 +0,0 @@
1
- import { tv } from 'tailwind-variants'
2
-
3
- const carouselContainer = tv({
4
- base: 'flex justify-between items-center relative h-[475px] mb-18 lg:h-[650px]',
5
- })
6
-
7
- const carouselSwiper = tv({
8
- base: 'bg-color-1-400 !py-4',
9
- })
10
-
11
- const carouselSwiperWrapper = tv({
12
- base: 'bg-color-1-100 py-4',
13
- })
14
-
15
- const carouselSlideContainer = tv({
16
- base: 'flex justify-center m-auto px-8 w-full h-full',
17
- })
18
-
19
- const carouselSlideWrapper = tv({
20
- base: 'bg-color-1-200 p-2',
21
- })
22
-
23
- const carouselNavigationButtons = tv({
24
- base: 'bg-color-1-500 rounded-full p-4 text-white',
25
- })
26
-
27
- const carousel = {
28
- container: carouselContainer,
29
- slideContainer: carouselSlideContainer,
30
- slideWrapper: carouselSlideWrapper,
31
- navigationButtons: carouselNavigationButtons,
32
- swiper: carouselSwiper,
33
- swiperWrapper: carouselSwiperWrapper,
34
- }
35
-
36
- export default carousel
@@ -1,49 +0,0 @@
1
- import { tv } from 'tailwind-variants'
2
-
3
- export const checkboxContainer = tv({
4
- base: 'flex focus-ring-black',
5
- })
6
-
7
- export const checkboxLabel = tv({
8
- base: `hover:cursor-pointer`,
9
- variants: {
10
- color: {
11
- gray: 'text-gray-300',
12
- black: 'text-black',
13
- },
14
- isDisabled: {
15
- true: 'text-gray-6',
16
- },
17
- },
18
- defaultVariants: {
19
- color: 'black',
20
- },
21
- })
22
-
23
- export const checkBox = tv({
24
- base: `w-6 h-6 mt-0.5 mr-2.5 rounded-full border-2 border-gray-2 shrink-0 hover:cursor-pointer flex items-center justify-center`,
25
- variants: {
26
- isDisabled: {
27
- true: 'border-gray-6',
28
- },
29
- isFocused: {
30
- true: `outline-black [outline-offset: 2px]`,
31
- },
32
- isError: {
33
- true: 'border-red-500',
34
- },
35
- },
36
- })
37
-
38
- export const checkMark = tv({
39
- base: `hidden w-4 h-4 bg-gray-300 rounded-full`,
40
- variants: {
41
- selected: {
42
- true: 'block text-white',
43
- },
44
- },
45
- })
46
-
47
- export const checkMarkIcon = tv({
48
- base: 'text-white w-4 h-4 [&_svg]:w-4 [&_svg]:h-4',
49
- })
@@ -1,14 +0,0 @@
1
- import { tv } from 'tailwind-variants'
2
-
3
- export const checkboxGroup = tv({
4
- base: `block`,
5
- variants: {
6
- isDisabled: {
7
- true: 'opacity-60 pointer-events-none',
8
- },
9
- },
10
- })
11
-
12
- export const checkboxGroupItemsGroup = tv({
13
- base: `flex flex-col gap-4 py-8`,
14
- })
@@ -1,42 +0,0 @@
1
- import { tv } from 'tailwind-variants'
2
-
3
- export const datePickerContainer = tv({
4
- base: 'relative inline-flex flex-col text-left',
5
- })
6
-
7
- export const datePickerButton = tv({
8
- base: 'flex items-center border-2 border-color-1-500 rounded focus-ring-black',
9
- })
10
-
11
- export const datePickerCalendarPopoverUnderlay = tv({
12
- base: 'fixed inset-0',
13
- })
14
-
15
- export const datePickerCalendarPopoverContainer = tv({
16
- base: 'absolute top-full bg-white border border-gray-300 rounded-md shadow-lg mt-2 p-8 z-10',
17
- })
18
-
19
- export const datePickerDateField = tv({
20
- base: 'pr-1 flex gap-2',
21
- defaultVariants: {
22
- dateFieldShown: true,
23
- },
24
- variants: {
25
- dateFieldShown: {
26
- true: '',
27
- false: 'hidden',
28
- },
29
- },
30
- })
31
-
32
- export const datePickerDateSegment = tv({
33
- base: 'focus-ring-black',
34
- })
35
-
36
- export const datePickerIcon = tv({
37
- base: 'text-color-1-500 bg-color-1-100 border-l-2 border-color-1-500 h-full py-2 px-2',
38
- })
39
-
40
- export const datePickerLabel = tv({
41
- base: 'text-color-1-500 font-bold px-2',
42
- })
@@ -1,8 +0,0 @@
1
- import { tv } from 'tailwind-variants'
2
- import type { TToken } from '../../providers/Theme/interface'
3
-
4
- export const imgStyles = tv({
5
- base: 'object-contain',
6
- })
7
-
8
- export const imgTheme = (props: TToken) => imgStyles(props)
@@ -1,56 +0,0 @@
1
- import { tv } from 'tailwind-variants'
2
- import typography from '../Typography'
3
-
4
- const lightBoxWrapper = tv({
5
- base: 'focus-ring-black',
6
- })
7
-
8
- const lightBoxContainer = tv({
9
- base: `rounded-3xl overflow-hidden`,
10
- })
11
-
12
- const lightBoxCloseBtn = tv({
13
- base: `
14
- absolute
15
- xl:top-10
16
- xl:right-20
17
- lg:top-8
18
- lg:right-8
19
- z-[10000]
20
- top-4
21
- right-4
22
- size-10
23
- focus-ring-black
24
- `,
25
- })
26
-
27
- const lightBoxLabel = tv({
28
- extend: typography,
29
- base: 'sr-only',
30
- })
31
-
32
- const lightBoxModalUnderlay = tv({
33
- base: 'w-screen h-screen bg-black/50 absolute top-0 left-0 flex justify-center items-center',
34
- })
35
-
36
- const lightBoxModalOverlay = tv({
37
- base: '',
38
- })
39
-
40
- const lightBoxModalDialog = tv({
41
- base: 'flex flex-col gap-4 items-center',
42
- })
43
-
44
- const lightboxTheme = {
45
- wrapper: lightBoxWrapper,
46
- container: lightBoxContainer,
47
- label: lightBoxLabel,
48
- closeBtn: lightBoxCloseBtn,
49
- modal: {
50
- underlay: lightBoxModalUnderlay,
51
- overlay: lightBoxModalOverlay,
52
- dialog: lightBoxModalDialog,
53
- },
54
- }
55
-
56
- export default lightboxTheme
@@ -1,31 +0,0 @@
1
- import { tv } from 'tailwind-variants'
2
-
3
- export const radioLabel = tv({
4
- base: `text-black flex flex-row items-center hover:cursor-pointer focus-ring-black`,
5
- variants: {
6
- isDisabled: {
7
- true: 'text-gray-6',
8
- },
9
- },
10
- })
11
-
12
- export const radio = tv({
13
- base: `w-6 h-6 mt-0.5 mr-2.5 rounded-full border-2 border-gray-2 shrink-0 hover:cursor-pointer flex items-center justify-center`,
14
- variants: {
15
- isDisabled: {
16
- true: 'border-gray-6',
17
- },
18
- isFocused: {
19
- true: `outline-black [outline-offset: 2px]`,
20
- },
21
- },
22
- })
23
-
24
- export const selectedMark = tv({
25
- base: `hidden w-4 h-4 bg-gray-300 rounded-full`,
26
- variants: {
27
- selected: {
28
- true: 'block text-white',
29
- },
30
- },
31
- })
@@ -1,14 +0,0 @@
1
- import { tv } from 'tailwind-variants'
2
-
3
- export const radioGroup = tv({
4
- base: `block`,
5
- variants: {
6
- isDisabled: {
7
- true: 'opacity-60 pointer-events-none',
8
- },
9
- },
10
- })
11
-
12
- export const radioGroupItemsGroup = tv({
13
- base: `flex flex-col gap-4 py-8`,
14
- })
@@ -1,20 +0,0 @@
1
- import { tv } from 'tailwind-variants'
2
-
3
- export const searchInput = tv({
4
- base: 'p-4 w-full outline-0 search-cancel:appearance-none',
5
- variants: {
6
- isDisabled: {
7
- true: 'opacity-60 pointer-events-none',
8
- },
9
- },
10
- })
11
-
12
- export const searchIcon = tv({
13
- base: `
14
- box-border
15
- absolute
16
- right-4
17
- focus-ring-black
18
- outline-0
19
- `,
20
- })
@@ -1,76 +0,0 @@
1
- import { tv } from 'tailwind-variants'
2
-
3
- export const shareButtonContainer = tv({
4
- base: 'flex print:hidden relative',
5
- defaultVariants: {
6
- listDirection: 'row',
7
- },
8
- variants: {
9
- listDirection: {
10
- row: 'flex-row',
11
- column: 'flex-col',
12
- },
13
- },
14
- })
15
-
16
- export const shareButton = tv({
17
- base: 'relative z-20 !bg-color-1-500 hover:!bg-color-1-400 w-16 h-16 flex justify-center items-center active:!bg-color-1-400 rounded-full text-white focus-ring-black',
18
- variants: {
19
- isOpen: {
20
- true: '',
21
- false: '',
22
- },
23
- },
24
- })
25
-
26
- export const shareButtonLinksList = tv({
27
- base: '!bg-color-1-200 absolute opacity-0 invisible flex transition duration-300 items-center p-0 bg-primary-1 z-0 rounded-b-full rounded-t-full',
28
- defaultVariants: {
29
- listDirection: 'row',
30
- },
31
- variants: {
32
- listDirection: {
33
- row: 'flex-row pl-14 h-16 left-0',
34
- column: 'flex-col [width:calc(100% + .5rem)] pt-14 w-16 top-0',
35
- },
36
- isOpen: {
37
- true: 'opacity-100 visible',
38
- false: '',
39
- },
40
- },
41
- })
42
-
43
- export const shareButtonLink = tv({
44
- base: `
45
- flex
46
- items-center
47
- justify-center
48
- cursor-pointer
49
- bg-color-1-200
50
- hover:bg-color-1-300
51
- w-full
52
- text-color-1-500
53
- rounded-none
54
- p-2
55
- focus-ring-black
56
- z-10
57
- has-focus-ring:z-20
58
- `,
59
- defaultVariants: {
60
- listDirection: 'row',
61
- },
62
- variants: {
63
- listDirection: {
64
- row: 'last:rounded-r-full h-full',
65
- column: 'last:rounded-b-full',
66
- },
67
- },
68
- })
69
-
70
- export const shareButtonIcon = tv({
71
- base: 'text-white',
72
- })
73
-
74
- export const shareButtonLinkIcons = tv({
75
- base: '',
76
- })
@@ -1,9 +0,0 @@
1
- import { tv } from 'tailwind-variants'
2
-
3
- export const sidePanelWrapper = tv({
4
- base: 'm-auto fixed right-0 top-0 bottom-0 w-full max-w-[512px] [&>div]:h-full',
5
- })
6
-
7
- export const sidePanelContainer = tv({ base: 'h-full w-full flex justify-end' })
8
-
9
- export const sidePanelInnerContainer = tv({ base: 'bg-black h-full w-full overflow-y-auto' })
@@ -1,25 +0,0 @@
1
- import { tv } from 'tailwind-variants'
2
-
3
- export const textArea = tv({
4
- base: `
5
- w-full
6
- min-h-32
7
- rounded-2xl
8
- px-6
9
- h-12
10
- border-2
11
- border-solid
12
- transition
13
- duration-300
14
- ease-in-out
15
- text-gray-2
16
- placeholder:text-gray-2
17
- focus-ring-black
18
-
19
- `,
20
- variants: {
21
- isError: {
22
- true: 'border-red-500',
23
- },
24
- },
25
- })
@@ -1,44 +0,0 @@
1
- import { tv } from 'tailwind-variants'
2
-
3
- const typography = tv({
4
- variants: {
5
- size: {
6
- h1: `text-5xl`,
7
- h2: `text-4xl`,
8
- h3: `text-3xl`,
9
- h4: `text-2xl`,
10
- h5: `text-xl`,
11
- h6: `text-lg`,
12
- leading: `text-md font-bold leading-normal`,
13
- paragraph: `text-md inline`,
14
- footnotes: `text-sm`,
15
- xs: `text-xs`,
16
- },
17
- font: {
18
- body: `font-body`,
19
- },
20
- weight: {
21
- normal: `font-normal`,
22
- light: `font-light`,
23
- bold: 'font-bold',
24
- },
25
- color: {
26
- gray: `text-gray-500`,
27
- white: `text-white`,
28
- },
29
- isError: {
30
- true: 'text-sm text-error py-3',
31
- },
32
- align: {
33
- center: 'text-center',
34
- left: 'text-left',
35
- right: 'text-right',
36
- },
37
- },
38
- defaultVariants: {
39
- size: 'paragraph',
40
- font: 'body',
41
- },
42
- })
43
-
44
- export default typography