@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
@@ -0,0 +1,174 @@
1
+ export declare const shareButtonContainer: import("tailwind-variants").TVReturnType<{
2
+ listDirection: {
3
+ row: "flex-row";
4
+ column: "flex-col";
5
+ };
6
+ }, undefined, "flex print:hidden relative", import("tailwind-variants/dist/config").TVConfig<{
7
+ listDirection: {
8
+ row: "flex-row";
9
+ column: "flex-col";
10
+ };
11
+ }, {
12
+ listDirection: {
13
+ row: "flex-row";
14
+ column: "flex-col";
15
+ };
16
+ }>, {
17
+ listDirection: {
18
+ row: "flex-row";
19
+ column: "flex-col";
20
+ };
21
+ }, undefined, import("tailwind-variants").TVReturnType<{
22
+ listDirection: {
23
+ row: "flex-row";
24
+ column: "flex-col";
25
+ };
26
+ }, undefined, "flex print:hidden relative", import("tailwind-variants/dist/config").TVConfig<{
27
+ listDirection: {
28
+ row: "flex-row";
29
+ column: "flex-col";
30
+ };
31
+ }, {
32
+ listDirection: {
33
+ row: "flex-row";
34
+ column: "flex-col";
35
+ };
36
+ }>, unknown, unknown, undefined>>;
37
+ export declare const shareButton: import("tailwind-variants").TVReturnType<{
38
+ isOpen: {
39
+ true: "";
40
+ false: "";
41
+ };
42
+ }, undefined, "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", import("tailwind-variants/dist/config").TVConfig<{
43
+ isOpen: {
44
+ true: "";
45
+ false: "";
46
+ };
47
+ }, {
48
+ isOpen: {
49
+ true: "";
50
+ false: "";
51
+ };
52
+ }>, {
53
+ isOpen: {
54
+ true: "";
55
+ false: "";
56
+ };
57
+ }, undefined, import("tailwind-variants").TVReturnType<{
58
+ isOpen: {
59
+ true: "";
60
+ false: "";
61
+ };
62
+ }, undefined, "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", import("tailwind-variants/dist/config").TVConfig<{
63
+ isOpen: {
64
+ true: "";
65
+ false: "";
66
+ };
67
+ }, {
68
+ isOpen: {
69
+ true: "";
70
+ false: "";
71
+ };
72
+ }>, unknown, unknown, undefined>>;
73
+ export declare const shareButtonLinksList: import("tailwind-variants").TVReturnType<{
74
+ listDirection: {
75
+ row: "flex-row pl-14 h-16 left-0";
76
+ column: "flex-col [width:calc(100% + .5rem)] pt-14 w-16 top-0";
77
+ };
78
+ isOpen: {
79
+ true: "opacity-100 visible";
80
+ false: "";
81
+ };
82
+ }, undefined, "!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", import("tailwind-variants/dist/config").TVConfig<{
83
+ listDirection: {
84
+ row: "flex-row pl-14 h-16 left-0";
85
+ column: "flex-col [width:calc(100% + .5rem)] pt-14 w-16 top-0";
86
+ };
87
+ isOpen: {
88
+ true: "opacity-100 visible";
89
+ false: "";
90
+ };
91
+ }, {
92
+ listDirection: {
93
+ row: "flex-row pl-14 h-16 left-0";
94
+ column: "flex-col [width:calc(100% + .5rem)] pt-14 w-16 top-0";
95
+ };
96
+ isOpen: {
97
+ true: "opacity-100 visible";
98
+ false: "";
99
+ };
100
+ }>, {
101
+ listDirection: {
102
+ row: "flex-row pl-14 h-16 left-0";
103
+ column: "flex-col [width:calc(100% + .5rem)] pt-14 w-16 top-0";
104
+ };
105
+ isOpen: {
106
+ true: "opacity-100 visible";
107
+ false: "";
108
+ };
109
+ }, undefined, import("tailwind-variants").TVReturnType<{
110
+ listDirection: {
111
+ row: "flex-row pl-14 h-16 left-0";
112
+ column: "flex-col [width:calc(100% + .5rem)] pt-14 w-16 top-0";
113
+ };
114
+ isOpen: {
115
+ true: "opacity-100 visible";
116
+ false: "";
117
+ };
118
+ }, undefined, "!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", import("tailwind-variants/dist/config").TVConfig<{
119
+ listDirection: {
120
+ row: "flex-row pl-14 h-16 left-0";
121
+ column: "flex-col [width:calc(100% + .5rem)] pt-14 w-16 top-0";
122
+ };
123
+ isOpen: {
124
+ true: "opacity-100 visible";
125
+ false: "";
126
+ };
127
+ }, {
128
+ listDirection: {
129
+ row: "flex-row pl-14 h-16 left-0";
130
+ column: "flex-col [width:calc(100% + .5rem)] pt-14 w-16 top-0";
131
+ };
132
+ isOpen: {
133
+ true: "opacity-100 visible";
134
+ false: "";
135
+ };
136
+ }>, unknown, unknown, undefined>>;
137
+ export declare const shareButtonLink: import("tailwind-variants").TVReturnType<{
138
+ listDirection: {
139
+ row: "last:rounded-r-full h-full";
140
+ column: "last:rounded-b-full";
141
+ };
142
+ }, undefined, "\n flex\n items-center\n justify-center\n cursor-pointer\n bg-color-1-200\n hover:bg-color-1-300\n w-full\n text-color-1-500\n rounded-none\n p-2\n focus-ring-black\n z-10\n has-focus-ring:z-20\n ", import("tailwind-variants/dist/config").TVConfig<{
143
+ listDirection: {
144
+ row: "last:rounded-r-full h-full";
145
+ column: "last:rounded-b-full";
146
+ };
147
+ }, {
148
+ listDirection: {
149
+ row: "last:rounded-r-full h-full";
150
+ column: "last:rounded-b-full";
151
+ };
152
+ }>, {
153
+ listDirection: {
154
+ row: "last:rounded-r-full h-full";
155
+ column: "last:rounded-b-full";
156
+ };
157
+ }, undefined, import("tailwind-variants").TVReturnType<{
158
+ listDirection: {
159
+ row: "last:rounded-r-full h-full";
160
+ column: "last:rounded-b-full";
161
+ };
162
+ }, undefined, "\n flex\n items-center\n justify-center\n cursor-pointer\n bg-color-1-200\n hover:bg-color-1-300\n w-full\n text-color-1-500\n rounded-none\n p-2\n focus-ring-black\n z-10\n has-focus-ring:z-20\n ", import("tailwind-variants/dist/config").TVConfig<{
163
+ listDirection: {
164
+ row: "last:rounded-r-full h-full";
165
+ column: "last:rounded-b-full";
166
+ };
167
+ }, {
168
+ listDirection: {
169
+ row: "last:rounded-r-full h-full";
170
+ column: "last:rounded-b-full";
171
+ };
172
+ }>, unknown, unknown, undefined>>;
173
+ export declare const shareButtonIcon: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "text-white", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "text-white", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
174
+ export declare const shareButtonLinkIcons: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
@@ -0,0 +1,3 @@
1
+ export declare const sidePanelWrapper: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "m-auto fixed right-0 top-0 bottom-0 w-full max-w-[512px] [&>div]:h-full", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "m-auto fixed right-0 top-0 bottom-0 w-full max-w-[512px] [&>div]:h-full", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
2
+ export declare const sidePanelContainer: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "h-full w-full flex justify-end", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "h-full w-full flex justify-end", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
3
+ export declare const sidePanelInnerContainer: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "bg-black h-full w-full overflow-y-auto", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "bg-black h-full w-full overflow-y-auto", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
@@ -0,0 +1,29 @@
1
+ export declare const textArea: import("tailwind-variants").TVReturnType<{
2
+ isError: {
3
+ true: "border-red-500";
4
+ };
5
+ }, undefined, "\n w-full\n min-h-32\n rounded-2xl\n px-6\n h-12\n border-2\n border-solid\n transition\n duration-300\n ease-in-out\n text-gray-2\n placeholder:text-gray-2\n focus-ring-black\n \n ", import("tailwind-variants/dist/config").TVConfig<{
6
+ isError: {
7
+ true: "border-red-500";
8
+ };
9
+ }, {
10
+ isError: {
11
+ true: "border-red-500";
12
+ };
13
+ }>, {
14
+ isError: {
15
+ true: "border-red-500";
16
+ };
17
+ }, undefined, import("tailwind-variants").TVReturnType<{
18
+ isError: {
19
+ true: "border-red-500";
20
+ };
21
+ }, undefined, "\n w-full\n min-h-32\n rounded-2xl\n px-6\n h-12\n border-2\n border-solid\n transition\n duration-300\n ease-in-out\n text-gray-2\n placeholder:text-gray-2\n focus-ring-black\n \n ", import("tailwind-variants/dist/config").TVConfig<{
22
+ isError: {
23
+ true: "border-red-500";
24
+ };
25
+ }, {
26
+ isError: {
27
+ true: "border-red-500";
28
+ };
29
+ }>, unknown, unknown, undefined>>;
@@ -0,0 +1,233 @@
1
+ declare const typography: import("tailwind-variants").TVReturnType<{
2
+ size: {
3
+ h1: "text-5xl";
4
+ h2: "text-4xl";
5
+ h3: "text-3xl";
6
+ h4: "text-2xl";
7
+ h5: "text-xl";
8
+ h6: "text-lg";
9
+ leading: "text-md font-bold leading-normal";
10
+ paragraph: "text-md inline";
11
+ footnotes: "text-sm";
12
+ xs: "text-xs";
13
+ };
14
+ font: {
15
+ body: "font-body";
16
+ };
17
+ weight: {
18
+ normal: "font-normal";
19
+ light: "font-light";
20
+ bold: "font-bold";
21
+ };
22
+ color: {
23
+ gray: "text-gray-500";
24
+ white: "text-white";
25
+ };
26
+ isError: {
27
+ true: "text-sm text-error py-3";
28
+ };
29
+ align: {
30
+ center: "text-center";
31
+ left: "text-left";
32
+ right: "text-right";
33
+ };
34
+ }, undefined, undefined, import("tailwind-variants/dist/config").TVConfig<{
35
+ size: {
36
+ h1: "text-5xl";
37
+ h2: "text-4xl";
38
+ h3: "text-3xl";
39
+ h4: "text-2xl";
40
+ h5: "text-xl";
41
+ h6: "text-lg";
42
+ leading: "text-md font-bold leading-normal";
43
+ paragraph: "text-md inline";
44
+ footnotes: "text-sm";
45
+ xs: "text-xs";
46
+ };
47
+ font: {
48
+ body: "font-body";
49
+ };
50
+ weight: {
51
+ normal: "font-normal";
52
+ light: "font-light";
53
+ bold: "font-bold";
54
+ };
55
+ color: {
56
+ gray: "text-gray-500";
57
+ white: "text-white";
58
+ };
59
+ isError: {
60
+ true: "text-sm text-error py-3";
61
+ };
62
+ align: {
63
+ center: "text-center";
64
+ left: "text-left";
65
+ right: "text-right";
66
+ };
67
+ }, {
68
+ size: {
69
+ h1: "text-5xl";
70
+ h2: "text-4xl";
71
+ h3: "text-3xl";
72
+ h4: "text-2xl";
73
+ h5: "text-xl";
74
+ h6: "text-lg";
75
+ leading: "text-md font-bold leading-normal";
76
+ paragraph: "text-md inline";
77
+ footnotes: "text-sm";
78
+ xs: "text-xs";
79
+ };
80
+ font: {
81
+ body: "font-body";
82
+ };
83
+ weight: {
84
+ normal: "font-normal";
85
+ light: "font-light";
86
+ bold: "font-bold";
87
+ };
88
+ color: {
89
+ gray: "text-gray-500";
90
+ white: "text-white";
91
+ };
92
+ isError: {
93
+ true: "text-sm text-error py-3";
94
+ };
95
+ align: {
96
+ center: "text-center";
97
+ left: "text-left";
98
+ right: "text-right";
99
+ };
100
+ }>, {
101
+ size: {
102
+ h1: "text-5xl";
103
+ h2: "text-4xl";
104
+ h3: "text-3xl";
105
+ h4: "text-2xl";
106
+ h5: "text-xl";
107
+ h6: "text-lg";
108
+ leading: "text-md font-bold leading-normal";
109
+ paragraph: "text-md inline";
110
+ footnotes: "text-sm";
111
+ xs: "text-xs";
112
+ };
113
+ font: {
114
+ body: "font-body";
115
+ };
116
+ weight: {
117
+ normal: "font-normal";
118
+ light: "font-light";
119
+ bold: "font-bold";
120
+ };
121
+ color: {
122
+ gray: "text-gray-500";
123
+ white: "text-white";
124
+ };
125
+ isError: {
126
+ true: "text-sm text-error py-3";
127
+ };
128
+ align: {
129
+ center: "text-center";
130
+ left: "text-left";
131
+ right: "text-right";
132
+ };
133
+ }, undefined, import("tailwind-variants").TVReturnType<{
134
+ size: {
135
+ h1: "text-5xl";
136
+ h2: "text-4xl";
137
+ h3: "text-3xl";
138
+ h4: "text-2xl";
139
+ h5: "text-xl";
140
+ h6: "text-lg";
141
+ leading: "text-md font-bold leading-normal";
142
+ paragraph: "text-md inline";
143
+ footnotes: "text-sm";
144
+ xs: "text-xs";
145
+ };
146
+ font: {
147
+ body: "font-body";
148
+ };
149
+ weight: {
150
+ normal: "font-normal";
151
+ light: "font-light";
152
+ bold: "font-bold";
153
+ };
154
+ color: {
155
+ gray: "text-gray-500";
156
+ white: "text-white";
157
+ };
158
+ isError: {
159
+ true: "text-sm text-error py-3";
160
+ };
161
+ align: {
162
+ center: "text-center";
163
+ left: "text-left";
164
+ right: "text-right";
165
+ };
166
+ }, undefined, undefined, import("tailwind-variants/dist/config").TVConfig<{
167
+ size: {
168
+ h1: "text-5xl";
169
+ h2: "text-4xl";
170
+ h3: "text-3xl";
171
+ h4: "text-2xl";
172
+ h5: "text-xl";
173
+ h6: "text-lg";
174
+ leading: "text-md font-bold leading-normal";
175
+ paragraph: "text-md inline";
176
+ footnotes: "text-sm";
177
+ xs: "text-xs";
178
+ };
179
+ font: {
180
+ body: "font-body";
181
+ };
182
+ weight: {
183
+ normal: "font-normal";
184
+ light: "font-light";
185
+ bold: "font-bold";
186
+ };
187
+ color: {
188
+ gray: "text-gray-500";
189
+ white: "text-white";
190
+ };
191
+ isError: {
192
+ true: "text-sm text-error py-3";
193
+ };
194
+ align: {
195
+ center: "text-center";
196
+ left: "text-left";
197
+ right: "text-right";
198
+ };
199
+ }, {
200
+ size: {
201
+ h1: "text-5xl";
202
+ h2: "text-4xl";
203
+ h3: "text-3xl";
204
+ h4: "text-2xl";
205
+ h5: "text-xl";
206
+ h6: "text-lg";
207
+ leading: "text-md font-bold leading-normal";
208
+ paragraph: "text-md inline";
209
+ footnotes: "text-sm";
210
+ xs: "text-xs";
211
+ };
212
+ font: {
213
+ body: "font-body";
214
+ };
215
+ weight: {
216
+ normal: "font-normal";
217
+ light: "font-light";
218
+ bold: "font-bold";
219
+ };
220
+ color: {
221
+ gray: "text-gray-500";
222
+ white: "text-white";
223
+ };
224
+ isError: {
225
+ true: "text-sm text-error py-3";
226
+ };
227
+ align: {
228
+ center: "text-center";
229
+ left: "text-left";
230
+ right: "text-right";
231
+ };
232
+ }>, unknown, unknown, undefined>>;
233
+ export default typography;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare const _default: React.MemoExoticComponent<({ children }: {
3
+ children: React.ReactNode;
4
+ }) => import("react/jsx-runtime").JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { TTransition } from '../types/components';
3
+ declare const AccordionTransition: (props: TTransition) => JSX.Element;
4
+ export default AccordionTransition;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface TProps {
3
+ isVisible: boolean;
4
+ children: React.ReactNode;
5
+ }
6
+ declare const ModalTransition: ({ isVisible, children }: TProps) => JSX.Element;
7
+ export default ModalTransition;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { TTransition } from '../types/components';
3
+ declare const RenderWithOpacity: ({ isVisible, children, themeName, tokens, customTheme, ...rest }: TTransition) => JSX.Element;
4
+ export default RenderWithOpacity;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface TProps {
3
+ isVisible: boolean;
4
+ children: React.ReactNode;
5
+ }
6
+ declare const RenderWithSlide: ({ isVisible, children }: TProps) => JSX.Element;
7
+ export default RenderWithSlide;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface TProps {
3
+ isVisible: boolean;
4
+ children: React.ReactNode;
5
+ }
6
+ declare const SidePanelTransition: ({ isVisible, children }: TProps) => JSX.Element;
7
+ export default SidePanelTransition;
@@ -0,0 +1,28 @@
1
+ import type React from 'react';
2
+ import type { HTMLAttributes } from 'react';
3
+ import type { RefCallBack } from 'react-hook-form';
4
+ import type { TCustomTheme, TToken } from '../providers/Theme/interface';
5
+ export interface TDefaultComponent<T = TToken> {
6
+ as?: React.ElementType<any>;
7
+ customTheme?: TCustomTheme;
8
+ tokens?: T;
9
+ themeName?: string | null;
10
+ children?: React.ReactNode;
11
+ }
12
+ export type TReactHookForm = {
13
+ onBlur?: (...event: any[]) => void;
14
+ onChange?: (...event: any[]) => void;
15
+ fieldRef?: RefCallBack;
16
+ min?: string | number | undefined;
17
+ max?: string | number | undefined;
18
+ maxLength?: number | undefined;
19
+ minLength?: number | undefined;
20
+ pattern?: string | undefined;
21
+ validation?: object;
22
+ };
23
+ export interface TTransition extends TDefaultComponent, HTMLAttributes<HTMLElement> {
24
+ isVisible: boolean;
25
+ children: React.ReactNode;
26
+ }
27
+ export type Nullable<T> = T | undefined | null;
28
+ export type Maybe<T> = T | null;
package/.eslintrc.js DELETED
@@ -1,32 +0,0 @@
1
- const { getDefaultIgnorePatterns } = require('../../../linter/helpers')
2
-
3
- module.exports = {
4
- extends: [
5
- 'plugin:@nx/react',
6
- '../../../.eslintrc.js',
7
- '../../../linter/bases/typescript',
8
- '../../../linter/bases/regexp',
9
- '../../../linter/bases/jest',
10
- '../../../linter/bases/rtl',
11
- '../../../linter/bases/storybook',
12
- '../../../linter/bases/react',
13
- '../../../linter/bases/prettier',
14
- 'plugin:storybook/recommended',
15
- ],
16
- ignorePatterns: ['!**/*', ...getDefaultIgnorePatterns()],
17
- overrides: [
18
- {
19
- files: ['*.ts', '*.tsx', '*.js', '*.jsx'],
20
- // We set parserOptions.project for the project to allow TypeScript to create the type-checker behind the scenes when we run linting
21
- parserOptions: {
22
- project: `${__dirname}/tsconfig.*?.json`,
23
- },
24
- rules: {
25
- '@nx/dependency-checks': 'error',
26
- },
27
- },
28
- ],
29
- rules: {
30
- 'react/react-in-jsx-scope': 'off',
31
- },
32
- }
@@ -1,29 +0,0 @@
1
- const { getDefaultIgnorePatterns } = require('../../../../linter/helpers')
2
-
3
- module.exports = {
4
- extends: [
5
- 'plugin:@nx/react',
6
- '../../../../.eslintrc.js',
7
- '../../../../linter/bases/typescript',
8
- '../../../../linter/bases/regexp',
9
- '../../../../linter/bases/jest',
10
- '../../../../linter/bases/rtl',
11
- '../../../../linter/bases/storybook',
12
- '../../../../linter/bases/react',
13
- '../../../../linter/bases/prettier',
14
- 'plugin:storybook/recommended',
15
- ],
16
- ignorePatterns: ['!**/*', ...getDefaultIgnorePatterns()],
17
- overrides: [
18
- {
19
- files: ['*.ts', '*.tsx', '*.js', '*.jsx'],
20
- // We set parserOptions.project for the project to allow TypeScript to create the type-checker behind the scenes when we run linting
21
- parserOptions: {
22
- project: `${__dirname}/tsconfig.*?.json`,
23
- },
24
- },
25
- ],
26
- rules: {
27
- 'react/react-in-jsx-scope': 'off',
28
- },
29
- }
@@ -1,33 +0,0 @@
1
- /* eslint-disable @typescript-eslint/ban-ts-comment */
2
- import type { StorybookConfig } from '@storybook/nextjs'
3
-
4
- const config: StorybookConfig = {
5
- stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
6
- addons: [
7
- '@storybook/addon-a11y',
8
- '@storybook/addon-links',
9
- '@storybook/addon-essentials',
10
- '@storybook/addon-interactions',
11
- {
12
- name: '@storybook/addon-styling',
13
- options: {
14
- // Check out https://github.com/storybookjs/addon-styling/blob/main/docs/api.md
15
- // For more details on this addon's options.
16
- postCss: true,
17
- },
18
- },
19
- ],
20
- framework: {
21
- name: '@storybook/nextjs',
22
- options: {},
23
- },
24
- docs: {
25
- autodocs: 'tag',
26
- },
27
- }
28
-
29
- export default config
30
-
31
- // To customize your Vite configuration you can use the viteFinal field.
32
- // Check https://storybook.js.org/docs/react/builders/vite#configuration
33
- // and https://nx.dev/packages/storybook/documents/custom-builder-configs
@@ -1,56 +0,0 @@
1
- /** @type { import('@storybook/react').Preview } */
2
-
3
- import '../src/tailwind.css' // replace with the name of your tailwind css file
4
- import React, { Suspense } from 'react'
5
- import { I18nProvider, OverlayProvider } from 'react-aria'
6
- import { useGlobals } from '@storybook/client-api'
7
- import BaseThemeProvider from '../src/theme'
8
- import { IsClientContextProvider } from '../src/providers/Client'
9
-
10
- export const parameters = {
11
- actions: { argTypesRegex: '^on[A-Z].*' },
12
- layout: 'centered',
13
- controls: { expanded: true },
14
- backgrounds: {
15
- default: 'light',
16
- values: [
17
- {
18
- name: 'light',
19
- value: '#ffffff',
20
- },
21
- {
22
- name: 'dark',
23
- value: '#000000',
24
- },
25
- ],
26
- },
27
- }
28
-
29
- export const decorators = [
30
- (Story, context) => {
31
- const [{ locale }] = useGlobals()
32
-
33
- return (
34
- <>
35
- <style>
36
- {`
37
- #root {
38
- padding: 0 !important;
39
- }
40
- `}
41
- </style>
42
- <BaseThemeProvider>
43
- <I18nProvider locale={locale}>
44
- <IsClientContextProvider>
45
- <OverlayProvider>
46
- <Suspense fallback={<div>Loading... </div>}>
47
- <Story />
48
- </Suspense>
49
- </OverlayProvider>
50
- </IsClientContextProvider>
51
- </I18nProvider>
52
- </BaseThemeProvider>
53
- </>
54
- )
55
- },
56
- ]