react-miui 0.32.2 → 0.33.0

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 (573) hide show
  1. package/.claude/settings.local.json +8 -1
  2. package/.storybook/main.ts +4 -1
  3. package/CHANGELOG.md +11 -0
  4. package/dist/components/form/Checkbox.styled.d.ts +6 -6
  5. package/dist/components/form/ColorPicker.styled.d.ts +5 -5
  6. package/dist/components/form/Label.d.ts +3 -3
  7. package/dist/components/form/Label.styled.d.ts +5 -5
  8. package/dist/components/form/Select.styled.d.ts +3 -3
  9. package/dist/components/form/Toggle.d.ts +3 -3
  10. package/dist/components/form/Toggle.styled.d.ts +5 -5
  11. package/dist/components/form/choice/Choice.styled.d.ts +3 -3
  12. package/dist/components/form/choice/ChoiceItem.styled.d.ts +2 -2
  13. package/dist/components/form/input/Input.css.d.ts +47 -1
  14. package/dist/components/form/input/Input.css.d.ts.map +1 -1
  15. package/dist/components/form/input/Input.css.js +49 -1
  16. package/dist/components/form/input/Input.css.js.map +1 -1
  17. package/dist/components/form/input/Input.d.ts +5 -1
  18. package/dist/components/form/input/Input.d.ts.map +1 -1
  19. package/dist/components/form/input/Input.js +28 -5
  20. package/dist/components/form/input/Input.js.map +1 -1
  21. package/dist/components/form/input/Input.styled.d.ts +183 -10
  22. package/dist/components/form/input/Input.styled.d.ts.map +1 -1
  23. package/dist/components/form/input/Input.styled.js +5 -1
  24. package/dist/components/form/input/Input.styled.js.map +1 -1
  25. package/dist/components/form/textarea/TextArea.d.ts +6 -1
  26. package/dist/components/form/textarea/TextArea.d.ts.map +1 -1
  27. package/dist/components/form/textarea/TextArea.js +32 -4
  28. package/dist/components/form/textarea/TextArea.js.map +1 -1
  29. package/dist/components/form/textarea/TextArea.styled.d.ts +177 -4
  30. package/dist/components/form/textarea/TextArea.styled.d.ts.map +1 -1
  31. package/dist/components/form/textarea/TextArea.styled.js +10 -2
  32. package/dist/components/form/textarea/TextArea.styled.js.map +1 -1
  33. package/dist/components/layout/card/Card.styled.d.ts +3 -3
  34. package/dist/components/layout/header/Header.styled.d.ts +9 -9
  35. package/dist/components/layout/header/HeaderIconAction.styled.d.ts +8 -8
  36. package/dist/components/layout/header/StickyHeader.d.ts +3 -3
  37. package/dist/components/layout/header/StickyHeader.styled.d.ts +6 -6
  38. package/dist/components/layout/list/Header.d.ts +7 -7
  39. package/dist/components/layout/list/Item.d.ts +8 -8
  40. package/dist/components/layout/list/Item.styled.d.ts +9 -9
  41. package/dist/components/layout/list/Label.d.ts +2 -2
  42. package/dist/components/layout/list/List.d.ts +18 -18
  43. package/dist/components/layout/list/Value.d.ts +2 -2
  44. package/dist/components/layout/section/SearchContainer.d.ts +2 -2
  45. package/dist/components/layout/section/Section.d.ts +5 -5
  46. package/dist/components/layout/section/SectionContainer.d.ts +2 -2
  47. package/dist/components/layout/table/Table.styled.d.ts +3 -3
  48. package/dist/components/native/index.d.ts +2 -2
  49. package/dist/components/ui/action/Action.styled.d.ts +8 -8
  50. package/dist/components/ui/action/EqualActions.styled.d.ts +3 -3
  51. package/dist/components/ui/button/Button.styled.d.ts +3 -3
  52. package/dist/components/ui/directionPad/Button.styled.d.ts +4 -4
  53. package/dist/components/ui/directionPad/Middle.styled.d.ts +2 -2
  54. package/dist/components/ui/directionPad/Pad.styled.d.ts +4 -4
  55. package/dist/components/ui/drawer/Drawer.styled.d.ts +4 -4
  56. package/dist/components/ui/keyValue/KeyValue.styled.d.ts +13 -13
  57. package/dist/components/ui/line/Line.d.ts +3 -3
  58. package/dist/components/ui/loader/CoveringLoader.d.ts.map +1 -1
  59. package/dist/components/ui/loader/CoveringLoader.js +2 -3
  60. package/dist/components/ui/loader/CoveringLoader.js.map +1 -1
  61. package/dist/components/ui/message/Message.styled.d.ts +3 -3
  62. package/dist/components/ui/modal/Modal.d.ts +2 -2
  63. package/dist/components/ui/modal/Modal.d.ts.map +1 -1
  64. package/dist/components/ui/modal/Modal.js.map +1 -1
  65. package/dist/components/ui/modal/Modal.styled.d.ts +10 -10
  66. package/dist/components/ui/modal/ModalButtons.styled.d.ts +5 -5
  67. package/dist/components/ui/pop/Pop.styled.d.ts +12 -12
  68. package/dist/components/ui/progress/Progress.styled.d.ts +8 -8
  69. package/dist/components/ui/stats/Stats.styled.d.ts +11 -11
  70. package/dist/components/ui/tabs/Item.styled.d.ts +2 -2
  71. package/dist/components/ui/tabs/Selector.styled.d.ts +5 -5
  72. package/dist/components/ui/toaster/Toaster.d.ts +8 -15
  73. package/dist/components/ui/toaster/Toaster.d.ts.map +1 -1
  74. package/dist/components/ui/toaster/Toaster.js +25 -55
  75. package/dist/components/ui/toaster/Toaster.js.map +1 -1
  76. package/dist/components/ui/toolButton/ToolButton.styled.d.ts +3 -3
  77. package/dist/components/utils/Gap.d.ts +3 -3
  78. package/dist/components/utils/Spacer.d.ts +2 -2
  79. package/dist/theme.d.ts +86 -86
  80. package/docs/assets/navigation.js +1 -1
  81. package/docs/assets/search.js +1 -1
  82. package/docs/classes/index.Pop.html +18 -18
  83. package/docs/documents/Test.html +2 -2
  84. package/docs/enums/index.ICON.html +2 -2
  85. package/docs/functions/index.Action.html +5 -5
  86. package/docs/functions/index.Button.html +5 -5
  87. package/docs/functions/index.Card.html +4 -4
  88. package/docs/functions/index.Checkbox.html +5 -5
  89. package/docs/functions/index.Choice.html +4 -4
  90. package/docs/functions/index.ColorPicker.html +5 -5
  91. package/docs/functions/index.CoveringLoader.html +5 -5
  92. package/docs/functions/index.DirectionPad.html +4 -4
  93. package/docs/functions/index.Drawer.html +4 -4
  94. package/docs/functions/index.EqualActions.html +4 -4
  95. package/docs/functions/index.FullLoader.html +5 -5
  96. package/docs/functions/index.Gap.html +4 -4
  97. package/docs/functions/index.HandleEsc.html +6 -6
  98. package/docs/functions/index.Header.html +5 -5
  99. package/docs/functions/index.HeaderIconAction.html +5 -5
  100. package/docs/functions/index.Icon-1.html +4 -4
  101. package/docs/functions/index.If.html +6 -6
  102. package/docs/functions/index.Input.html +1 -1
  103. package/docs/functions/index.KeyValue.html +4 -4
  104. package/docs/functions/index.Label.html +4 -4
  105. package/docs/functions/index.Line.html +5 -5
  106. package/docs/functions/index.List.html +4 -4
  107. package/docs/functions/index.Loader.html +5 -5
  108. package/docs/functions/index.Loading.html +6 -6
  109. package/docs/functions/index.Message.html +5 -5
  110. package/docs/functions/index.Modal.html +4 -4
  111. package/docs/functions/index.ModalButtons.html +4 -4
  112. package/docs/functions/index.PopLoader.html +5 -5
  113. package/docs/functions/index.PopOption.html +4 -4
  114. package/docs/functions/index.Progress.html +4 -4
  115. package/docs/functions/index.SearchContainer.html +4 -4
  116. package/docs/functions/index.Section.html +5 -5
  117. package/docs/functions/index.Select.html +4 -4
  118. package/docs/functions/index.Selector.html +4 -4
  119. package/docs/functions/index.Spacer.html +4 -4
  120. package/docs/functions/index.Stats.html +4 -4
  121. package/docs/functions/index.StickyHeader.html +5 -5
  122. package/docs/functions/index.Table.html +4 -4
  123. package/docs/functions/index.TextArea.html +4 -4
  124. package/docs/functions/index.ToasterProvider.html +29 -0
  125. package/docs/functions/index.Toggle.html +5 -5
  126. package/docs/functions/index.ToolButton.html +5 -5
  127. package/docs/functions/index.borderPxToRem.html +1 -1
  128. package/docs/functions/index.createTheme.html +1 -1
  129. package/docs/functions/index.css.html +1 -1
  130. package/docs/functions/index.dimensionsPxToRem.html +1 -1
  131. package/docs/functions/index.fontPxToRem.html +1 -1
  132. package/docs/functions/index.getCssText.html +1 -1
  133. package/docs/functions/index.globalCss.html +2 -2
  134. package/docs/functions/index.injectGlobalStyles.html +1 -1
  135. package/docs/functions/index.keyframes.html +1 -1
  136. package/docs/functions/index.pxToRem.html +1 -1
  137. package/docs/functions/index.styled.html +1 -1
  138. package/docs/functions/index.toast.html +12 -0
  139. package/docs/functions/index.useToaster.html +1 -1
  140. package/docs/index.html +2 -2
  141. package/docs/interfaces/index.IconProps.html +2 -2
  142. package/docs/interfaces/index.InputCustomProps.html +7 -2
  143. package/docs/interfaces/index.LoaderProps.html +6 -6
  144. package/docs/interfaces/index.StickyHeaderProps.html +4 -4
  145. package/docs/interfaces/index.ToasterProviderProps.html +28 -0
  146. package/docs/modules/index.html +1 -1
  147. package/docs/modules.html +1 -1
  148. package/docs/types/index.ActionProps.html +1 -1
  149. package/docs/types/index.CardProps.html +1 -1
  150. package/docs/types/index.CheckboxProps.html +2 -2
  151. package/docs/types/index.ChoiceProps.html +1 -1
  152. package/docs/types/index.ColorPickerProps.html +1 -1
  153. package/docs/types/index.DirectionPadProps.html +1 -1
  154. package/docs/types/index.DrawerProps.html +1 -1
  155. package/docs/types/index.EqualActionsProps.html +1 -1
  156. package/docs/types/index.HeaderProps.html +1 -1
  157. package/docs/types/index.InputProps.html +1 -1
  158. package/docs/types/index.KeyValueProps.html +1 -1
  159. package/docs/types/index.LabelProps.html +1 -1
  160. package/docs/types/index.OverwriteProps.html +1 -1
  161. package/docs/types/index.ProgressProps.html +2 -2
  162. package/docs/types/index.SelectProps.html +1 -1
  163. package/docs/types/index.SelectorProps.html +1 -1
  164. package/docs/types/index.Stat.html +1 -1
  165. package/docs/types/index.StatsProps.html +1 -1
  166. package/docs/types/index.TextAreaProps.html +1 -1
  167. package/docs/types/index.ThemeCSS.html +1 -1
  168. package/docs/types/index.ToggleProps.html +2 -2
  169. package/docs/variables/index.ActionBadgeSelector.html +1 -1
  170. package/docs/variables/index.ActionCircleSelector.html +1 -1
  171. package/docs/variables/index.CheckboxCheckmarkWrapperSelector.html +1 -1
  172. package/docs/variables/index.CheckboxTextLabelSelector.html +1 -1
  173. package/docs/variables/index.ChoiceItemSelector.html +1 -1
  174. package/docs/variables/index.ColorPickerColorDisplaySelector.html +1 -1
  175. package/docs/variables/index.DirectionPadButtonDotSelector.html +1 -1
  176. package/docs/variables/index.DirectionPadButtonSelector.html +1 -1
  177. package/docs/variables/index.DirectionPadLineSelector.html +1 -1
  178. package/docs/variables/index.DirectionPadMiddleSelector.html +1 -1
  179. package/docs/variables/index.DrawerContentSelector.html +1 -1
  180. package/docs/variables/index.HeaderAfterSelector.html +1 -1
  181. package/docs/variables/index.HeaderBeforeSelector.html +1 -1
  182. package/docs/variables/index.HeaderContentsSelector.html +1 -1
  183. package/docs/variables/index.HeaderIconActionIconSelector.html +1 -1
  184. package/docs/variables/index.InputContainerSelector.html +1 -0
  185. package/docs/variables/index.InputInputSelector.html +1 -1
  186. package/docs/variables/index.InputLabelSelector.html +1 -0
  187. package/docs/variables/index.InputPrefixSelector.html +1 -1
  188. package/docs/variables/index.InputSuffixSelector.html +1 -1
  189. package/docs/variables/index.KeyValueIconSelector.html +1 -1
  190. package/docs/variables/index.KeyValueItemSelector.html +1 -1
  191. package/docs/variables/index.KeyValueKeySelector.html +1 -1
  192. package/docs/variables/index.KeyValuePairSelector.html +1 -1
  193. package/docs/variables/index.KeyValueValueSelector.html +1 -1
  194. package/docs/variables/index.LabelTextSelector.html +1 -1
  195. package/docs/variables/index.ListItemInnerContainerClassNameSelector.html +1 -1
  196. package/docs/variables/index.ModalContainerSelector.html +1 -1
  197. package/docs/variables/index.ModalRemovePaddingSelector.html +1 -1
  198. package/docs/variables/index.ModalTitleSelector.html +1 -1
  199. package/docs/variables/index.PopListSelector.html +1 -1
  200. package/docs/variables/index.PopOptionButtonSelector.html +1 -1
  201. package/docs/variables/index.PopOptionIconSelector.html +1 -1
  202. package/docs/variables/index.PopOverlaySelector.html +1 -1
  203. package/docs/variables/index.ProgressBackgroundSelector.html +1 -1
  204. package/docs/variables/index.ProgressValueSelector.html +1 -1
  205. package/docs/variables/index.SelectorItemSelector.html +1 -1
  206. package/docs/variables/index.StatsItemSelector.html +1 -1
  207. package/docs/variables/index.StatsLabelSelector.html +1 -1
  208. package/docs/variables/index.StatsSeparatorSelector.html +1 -1
  209. package/docs/variables/index.StatsValueSelector.html +1 -1
  210. package/docs/variables/index.TextAreaLabelSelector.html +1 -0
  211. package/docs/variables/index.TextAreaTextAreaSelector.html +1 -0
  212. package/docs/variables/index.TextAreaWrapperSelector.html +1 -0
  213. package/docs/variables/index.ToggleStyledToggleSelector.html +1 -1
  214. package/docs/variables/index.config.html +1 -1
  215. package/docs/variables/index.cssReset.html +2 -2
  216. package/docs/variables/index.darkTheme.html +1 -1
  217. package/docs/variables/index.miuiScrollbars.html +1 -1
  218. package/docs/variables/index.theme.html +1 -1
  219. package/esm/components/form/Checkbox.styled.d.ts +6 -6
  220. package/esm/components/form/ColorPicker.styled.d.ts +5 -5
  221. package/esm/components/form/Label.d.ts +3 -3
  222. package/esm/components/form/Label.styled.d.ts +5 -5
  223. package/esm/components/form/Select.styled.d.ts +3 -3
  224. package/esm/components/form/Toggle.d.ts +3 -3
  225. package/esm/components/form/Toggle.styled.d.ts +5 -5
  226. package/esm/components/form/choice/Choice.styled.d.ts +3 -3
  227. package/esm/components/form/choice/ChoiceItem.styled.d.ts +2 -2
  228. package/esm/components/form/input/Input.css.d.ts +47 -1
  229. package/esm/components/form/input/Input.css.d.ts.map +1 -1
  230. package/esm/components/form/input/Input.css.js +47 -1
  231. package/esm/components/form/input/Input.css.js.map +1 -1
  232. package/esm/components/form/input/Input.d.ts +5 -1
  233. package/esm/components/form/input/Input.d.ts.map +1 -1
  234. package/esm/components/form/input/Input.js +27 -6
  235. package/esm/components/form/input/Input.js.map +1 -1
  236. package/esm/components/form/input/Input.styled.d.ts +183 -10
  237. package/esm/components/form/input/Input.styled.d.ts.map +1 -1
  238. package/esm/components/form/input/Input.styled.js +4 -2
  239. package/esm/components/form/input/Input.styled.js.map +1 -1
  240. package/esm/components/form/textarea/TextArea.d.ts +6 -1
  241. package/esm/components/form/textarea/TextArea.d.ts.map +1 -1
  242. package/esm/components/form/textarea/TextArea.js +31 -6
  243. package/esm/components/form/textarea/TextArea.js.map +1 -1
  244. package/esm/components/form/textarea/TextArea.styled.d.ts +177 -4
  245. package/esm/components/form/textarea/TextArea.styled.d.ts.map +1 -1
  246. package/esm/components/form/textarea/TextArea.styled.js +14 -4
  247. package/esm/components/form/textarea/TextArea.styled.js.map +1 -1
  248. package/esm/components/layout/card/Card.styled.d.ts +3 -3
  249. package/esm/components/layout/header/Header.styled.d.ts +9 -9
  250. package/esm/components/layout/header/HeaderIconAction.styled.d.ts +8 -8
  251. package/esm/components/layout/header/StickyHeader.d.ts +3 -3
  252. package/esm/components/layout/header/StickyHeader.styled.d.ts +6 -6
  253. package/esm/components/layout/list/Header.d.ts +7 -7
  254. package/esm/components/layout/list/Item.d.ts +8 -8
  255. package/esm/components/layout/list/Item.styled.d.ts +9 -9
  256. package/esm/components/layout/list/Label.d.ts +2 -2
  257. package/esm/components/layout/list/List.d.ts +18 -18
  258. package/esm/components/layout/list/Value.d.ts +2 -2
  259. package/esm/components/layout/section/SearchContainer.d.ts +2 -2
  260. package/esm/components/layout/section/Section.d.ts +5 -5
  261. package/esm/components/layout/section/SectionContainer.d.ts +2 -2
  262. package/esm/components/layout/table/Table.styled.d.ts +3 -3
  263. package/esm/components/native/index.d.ts +2 -2
  264. package/esm/components/ui/action/Action.styled.d.ts +8 -8
  265. package/esm/components/ui/action/EqualActions.styled.d.ts +3 -3
  266. package/esm/components/ui/button/Button.styled.d.ts +3 -3
  267. package/esm/components/ui/directionPad/Button.styled.d.ts +4 -4
  268. package/esm/components/ui/directionPad/Middle.styled.d.ts +2 -2
  269. package/esm/components/ui/directionPad/Pad.styled.d.ts +4 -4
  270. package/esm/components/ui/drawer/Drawer.styled.d.ts +4 -4
  271. package/esm/components/ui/keyValue/KeyValue.styled.d.ts +13 -13
  272. package/esm/components/ui/line/Line.d.ts +3 -3
  273. package/esm/components/ui/loader/CoveringLoader.d.ts.map +1 -1
  274. package/esm/components/ui/loader/CoveringLoader.js +2 -3
  275. package/esm/components/ui/loader/CoveringLoader.js.map +1 -1
  276. package/esm/components/ui/message/Message.styled.d.ts +3 -3
  277. package/esm/components/ui/modal/Modal.d.ts +2 -2
  278. package/esm/components/ui/modal/Modal.d.ts.map +1 -1
  279. package/esm/components/ui/modal/Modal.js.map +1 -1
  280. package/esm/components/ui/modal/Modal.styled.d.ts +10 -10
  281. package/esm/components/ui/modal/ModalButtons.styled.d.ts +5 -5
  282. package/esm/components/ui/pop/Pop.styled.d.ts +12 -12
  283. package/esm/components/ui/progress/Progress.styled.d.ts +8 -8
  284. package/esm/components/ui/stats/Stats.styled.d.ts +11 -11
  285. package/esm/components/ui/tabs/Item.styled.d.ts +2 -2
  286. package/esm/components/ui/tabs/Selector.styled.d.ts +5 -5
  287. package/esm/components/ui/toaster/Toaster.d.ts +8 -15
  288. package/esm/components/ui/toaster/Toaster.d.ts.map +1 -1
  289. package/esm/components/ui/toaster/Toaster.js +13 -74
  290. package/esm/components/ui/toaster/Toaster.js.map +1 -1
  291. package/esm/components/ui/toolButton/ToolButton.styled.d.ts +3 -3
  292. package/esm/components/utils/Gap.d.ts +3 -3
  293. package/esm/components/utils/Spacer.d.ts +2 -2
  294. package/esm/theme.d.ts +86 -86
  295. package/package.json +21 -22
  296. package/patches/{@stitches+react+1.2.8.patch → @stitches__react@1.2.8.patch} +6 -6
  297. package/src/components/form/input/Input.css.ts +52 -0
  298. package/src/components/form/input/Input.stories.tsx +32 -1
  299. package/src/components/form/input/Input.styled.ts +7 -1
  300. package/src/components/form/input/Input.tsx +67 -13
  301. package/src/components/form/textarea/TextArea.stories.tsx +25 -1
  302. package/src/components/form/textarea/TextArea.styled.ts +17 -3
  303. package/src/components/form/textarea/TextArea.tsx +76 -12
  304. package/src/components/ui/loader/CoveringLoader.tsx +3 -4
  305. package/src/components/ui/modal/Modal.tsx +0 -1
  306. package/src/components/ui/modal/ModalButtons.stories.tsx +3 -3
  307. package/src/components/ui/toaster/Toaster.stories.tsx +160 -30
  308. package/src/components/ui/toaster/Toaster.tsx +24 -100
  309. package/storybook-static/assets/Action.stories-DBtNlWQo.js +1 -0
  310. package/storybook-static/assets/Button.stories-DFO8nsTN.js +1 -0
  311. package/storybook-static/assets/Card.stories-BoCt66U4.js +1 -0
  312. package/storybook-static/assets/Checkbox.stories-C58YeH4u.js +1 -0
  313. package/storybook-static/assets/Choice.stories-Cf7UbPxn.js +1 -0
  314. package/storybook-static/assets/Color-23OOGO2C-CELuW8GR.js +1 -0
  315. package/storybook-static/assets/ColorPicker.stories-Dc7-AuPQ.js +1 -0
  316. package/storybook-static/assets/CoveringLoader.stories-DrUQAhI6.js +1 -0
  317. package/storybook-static/assets/DocsRenderer-LL677BLK-BOcEjZ28.js +755 -0
  318. package/storybook-static/assets/Drawer.stories-D3_-TuT0.js +1 -0
  319. package/storybook-static/assets/EqualActions.stories-CwjZlkUA.js +1 -0
  320. package/storybook-static/assets/FullLoader.stories-DFAaVMfI.js +1 -0
  321. package/storybook-static/assets/Header.stories-BN7BuQx2.js +1 -0
  322. package/storybook-static/assets/Header.stories-CzPBNEkp.js +1 -0
  323. package/storybook-static/assets/HeaderIconAction.stories-Dm3Q-BVW.js +1 -0
  324. package/storybook-static/assets/Icon.stories-D1YeVBlB.js +1 -0
  325. package/storybook-static/assets/Input.stories-Cbj2X3kT.js +197 -0
  326. package/storybook-static/assets/Item.stories-CmjyxdgQ.js +1 -0
  327. package/storybook-static/assets/KeyValue.stories-CogaZP09.js +1 -0
  328. package/storybook-static/assets/Label.stories-B6pCT45X.js +1 -0
  329. package/storybook-static/assets/Label.stories-BR3gNHqM.js +1 -0
  330. package/storybook-static/assets/Line.stories-BJLer7gg.js +1 -0
  331. package/storybook-static/assets/List.stories-MSQY1Rdo.js +1 -0
  332. package/storybook-static/assets/Loader.stories-CbN84qNp.js +1 -0
  333. package/storybook-static/assets/Loading.stories-BOANGXsc.js +1 -0
  334. package/storybook-static/assets/Message.stories-_51K9ZDn.js +1 -0
  335. package/storybook-static/assets/Modal.stories-CixfvMuM.js +1 -0
  336. package/storybook-static/assets/ModalButtons.stories-DHHsnoGB.js +1 -0
  337. package/storybook-static/assets/Pad.stories-hrKerezi.js +1 -0
  338. package/storybook-static/assets/Pop.stories-BTlQGve1.js +1 -0
  339. package/storybook-static/assets/PopLoader.stories-CyskY4fX.js +1 -0
  340. package/storybook-static/assets/Progress.stories-BLMPF6Ju.js +1 -0
  341. package/storybook-static/assets/Section.stories-M-QRH2_i.js +1 -0
  342. package/storybook-static/assets/Select.stories-BJjJqLTa.js +1 -0
  343. package/storybook-static/assets/Selector.stories-BxHyFnYo.js +1 -0
  344. package/storybook-static/assets/Stats.stories-VB0pi5k5.js +1 -0
  345. package/storybook-static/assets/StickyHeader.stories-BnxgnjJW.js +3 -0
  346. package/storybook-static/assets/Table.stories-6F-WrDBs.js +1 -0
  347. package/storybook-static/assets/TextArea.stories-DqzHYgIv.js +1 -0
  348. package/storybook-static/assets/Toaster.stories-C0ktk0DW.js +1 -0
  349. package/storybook-static/assets/Toggle.stories-tBlD8SJi.js +1 -0
  350. package/storybook-static/assets/ToolButton.stories-0rGBGqAt.js +1 -0
  351. package/storybook-static/assets/Value.stories-CFT20m8r.js +1 -0
  352. package/storybook-static/assets/WithTooltip-65CFNBJE-CEiAC9o_.js +9 -0
  353. package/storybook-static/assets/formatter-EIJCOSYU-3FZOx6vn.js +1 -0
  354. package/storybook-static/assets/iframe-DvhcA1iZ.js +1244 -0
  355. package/storybook-static/assets/preload-helper-PPVm8Dsz.js +1 -0
  356. package/storybook-static/assets/react-18-oqx706Mo.js +1 -0
  357. package/storybook-static/assets/syntaxhighlighter-W7WJGI2T-D7f2o1Z3.js +6 -0
  358. package/storybook-static/favicon-wrapper.svg +46 -0
  359. package/storybook-static/favicon.svg +1 -0
  360. package/storybook-static/iframe.html +709 -0
  361. package/storybook-static/index.html +146 -0
  362. package/storybook-static/index.json +1 -0
  363. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  364. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  365. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  366. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  367. package/storybook-static/project.json +1 -0
  368. package/storybook-static/sb-addons/docs-1/manager-bundle.js +3 -0
  369. package/storybook-static/sb-addons/onboarding-2/manager-bundle.js +97 -0
  370. package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +630 -0
  371. package/storybook-static/sb-common-assets/favicon-wrapper.svg +46 -0
  372. package/storybook-static/sb-common-assets/favicon.svg +1 -0
  373. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  374. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  375. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  376. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  377. package/storybook-static/sb-manager/globals-runtime.js +76749 -0
  378. package/storybook-static/sb-manager/globals.js +24 -0
  379. package/storybook-static/sb-manager/manager-stores.js +23 -0
  380. package/storybook-static/sb-manager/runtime.js +27463 -0
  381. package/storybook-static/vite-inject-mocker-entry.js +2 -0
  382. package/dist/components/ui/toaster/Notification.d.ts +0 -9
  383. package/dist/components/ui/toaster/Notification.d.ts.map +0 -1
  384. package/dist/components/ui/toaster/Notification.js +0 -53
  385. package/dist/components/ui/toaster/Notification.js.map +0 -1
  386. package/dist/components/ui/toaster/Toaster.styled.d.ts +0 -89
  387. package/dist/components/ui/toaster/Toaster.styled.d.ts.map +0 -1
  388. package/dist/components/ui/toaster/Toaster.styled.js +0 -39
  389. package/dist/components/ui/toaster/Toaster.styled.js.map +0 -1
  390. package/dist/components/ui/toaster/types.d.ts +0 -7
  391. package/dist/components/ui/toaster/types.d.ts.map +0 -1
  392. package/dist/components/ui/toaster/types.js +0 -3
  393. package/dist/components/ui/toaster/types.js.map +0 -1
  394. package/docs/classes/index.ToasterProvider.html +0 -120
  395. package/esm/components/form/Checkbox.stories.d.ts +0 -9
  396. package/esm/components/form/Checkbox.stories.d.ts.map +0 -1
  397. package/esm/components/form/Checkbox.stories.js +0 -80
  398. package/esm/components/form/Checkbox.stories.js.map +0 -1
  399. package/esm/components/form/ColorPicker.stories.d.ts +0 -10
  400. package/esm/components/form/ColorPicker.stories.d.ts.map +0 -1
  401. package/esm/components/form/ColorPicker.stories.js +0 -75
  402. package/esm/components/form/ColorPicker.stories.js.map +0 -1
  403. package/esm/components/form/Label.stories.d.ts +0 -11
  404. package/esm/components/form/Label.stories.d.ts.map +0 -1
  405. package/esm/components/form/Label.stories.js +0 -43
  406. package/esm/components/form/Label.stories.js.map +0 -1
  407. package/esm/components/form/Select.stories.d.ts +0 -8
  408. package/esm/components/form/Select.stories.d.ts.map +0 -1
  409. package/esm/components/form/Select.stories.js +0 -24
  410. package/esm/components/form/Select.stories.js.map +0 -1
  411. package/esm/components/form/Toggle.stories.d.ts +0 -14
  412. package/esm/components/form/Toggle.stories.d.ts.map +0 -1
  413. package/esm/components/form/Toggle.stories.js +0 -76
  414. package/esm/components/form/Toggle.stories.js.map +0 -1
  415. package/esm/components/form/choice/Choice.stories.d.ts +0 -10
  416. package/esm/components/form/choice/Choice.stories.d.ts.map +0 -1
  417. package/esm/components/form/choice/Choice.stories.js +0 -80
  418. package/esm/components/form/choice/Choice.stories.js.map +0 -1
  419. package/esm/components/form/input/Input.stories.d.ts +0 -10
  420. package/esm/components/form/input/Input.stories.d.ts.map +0 -1
  421. package/esm/components/form/input/Input.stories.js +0 -54
  422. package/esm/components/form/input/Input.stories.js.map +0 -1
  423. package/esm/components/form/textarea/TextArea.stories.d.ts +0 -8
  424. package/esm/components/form/textarea/TextArea.stories.d.ts.map +0 -1
  425. package/esm/components/form/textarea/TextArea.stories.js +0 -19
  426. package/esm/components/form/textarea/TextArea.stories.js.map +0 -1
  427. package/esm/components/icons/Icon.stories.d.ts +0 -10
  428. package/esm/components/icons/Icon.stories.d.ts.map +0 -1
  429. package/esm/components/icons/Icon.stories.js +0 -49
  430. package/esm/components/icons/Icon.stories.js.map +0 -1
  431. package/esm/components/layout/card/Card.stories.d.ts +0 -11
  432. package/esm/components/layout/card/Card.stories.d.ts.map +0 -1
  433. package/esm/components/layout/card/Card.stories.js +0 -39
  434. package/esm/components/layout/card/Card.stories.js.map +0 -1
  435. package/esm/components/layout/header/Header.stories.d.ts +0 -11
  436. package/esm/components/layout/header/Header.stories.d.ts.map +0 -1
  437. package/esm/components/layout/header/Header.stories.js +0 -56
  438. package/esm/components/layout/header/Header.stories.js.map +0 -1
  439. package/esm/components/layout/header/HeaderIconAction.stories.d.ts +0 -10
  440. package/esm/components/layout/header/HeaderIconAction.stories.d.ts.map +0 -1
  441. package/esm/components/layout/header/HeaderIconAction.stories.js +0 -43
  442. package/esm/components/layout/header/HeaderIconAction.stories.js.map +0 -1
  443. package/esm/components/layout/header/StickyHeader.stories.d.ts +0 -9
  444. package/esm/components/layout/header/StickyHeader.stories.d.ts.map +0 -1
  445. package/esm/components/layout/header/StickyHeader.stories.js +0 -60
  446. package/esm/components/layout/header/StickyHeader.stories.js.map +0 -1
  447. package/esm/components/layout/list/Header.stories.d.ts +0 -8
  448. package/esm/components/layout/list/Header.stories.d.ts.map +0 -1
  449. package/esm/components/layout/list/Header.stories.js +0 -27
  450. package/esm/components/layout/list/Header.stories.js.map +0 -1
  451. package/esm/components/layout/list/Item.stories.d.ts +0 -11
  452. package/esm/components/layout/list/Item.stories.d.ts.map +0 -1
  453. package/esm/components/layout/list/Item.stories.js +0 -98
  454. package/esm/components/layout/list/Item.stories.js.map +0 -1
  455. package/esm/components/layout/list/Label.stories.d.ts +0 -8
  456. package/esm/components/layout/list/Label.stories.d.ts.map +0 -1
  457. package/esm/components/layout/list/Label.stories.js +0 -29
  458. package/esm/components/layout/list/Label.stories.js.map +0 -1
  459. package/esm/components/layout/list/List.stories.d.ts +0 -9
  460. package/esm/components/layout/list/List.stories.d.ts.map +0 -1
  461. package/esm/components/layout/list/List.stories.js +0 -46
  462. package/esm/components/layout/list/List.stories.js.map +0 -1
  463. package/esm/components/layout/list/Value.stories.d.ts +0 -8
  464. package/esm/components/layout/list/Value.stories.d.ts.map +0 -1
  465. package/esm/components/layout/list/Value.stories.js +0 -23
  466. package/esm/components/layout/list/Value.stories.js.map +0 -1
  467. package/esm/components/layout/section/Section.stories.d.ts +0 -8
  468. package/esm/components/layout/section/Section.stories.d.ts.map +0 -1
  469. package/esm/components/layout/section/Section.stories.js +0 -31
  470. package/esm/components/layout/section/Section.stories.js.map +0 -1
  471. package/esm/components/layout/table/Table.stories.d.ts +0 -8
  472. package/esm/components/layout/table/Table.stories.d.ts.map +0 -1
  473. package/esm/components/layout/table/Table.stories.js +0 -49
  474. package/esm/components/layout/table/Table.stories.js.map +0 -1
  475. package/esm/components/ui/action/Action.stories.d.ts +0 -11
  476. package/esm/components/ui/action/Action.stories.d.ts.map +0 -1
  477. package/esm/components/ui/action/Action.stories.js +0 -58
  478. package/esm/components/ui/action/Action.stories.js.map +0 -1
  479. package/esm/components/ui/action/EqualActions.stories.d.ts +0 -10
  480. package/esm/components/ui/action/EqualActions.stories.d.ts.map +0 -1
  481. package/esm/components/ui/action/EqualActions.stories.js +0 -38
  482. package/esm/components/ui/action/EqualActions.stories.js.map +0 -1
  483. package/esm/components/ui/button/Button.stories.d.ts +0 -9
  484. package/esm/components/ui/button/Button.stories.d.ts.map +0 -1
  485. package/esm/components/ui/button/Button.stories.js +0 -35
  486. package/esm/components/ui/button/Button.stories.js.map +0 -1
  487. package/esm/components/ui/directionPad/Pad.stories.d.ts +0 -10
  488. package/esm/components/ui/directionPad/Pad.stories.d.ts.map +0 -1
  489. package/esm/components/ui/directionPad/Pad.stories.js +0 -79
  490. package/esm/components/ui/directionPad/Pad.stories.js.map +0 -1
  491. package/esm/components/ui/drawer/Drawer.stories.d.ts +0 -11
  492. package/esm/components/ui/drawer/Drawer.stories.d.ts.map +0 -1
  493. package/esm/components/ui/drawer/Drawer.stories.js +0 -102
  494. package/esm/components/ui/drawer/Drawer.stories.js.map +0 -1
  495. package/esm/components/ui/keyValue/KeyValue.stories.d.ts +0 -11
  496. package/esm/components/ui/keyValue/KeyValue.stories.d.ts.map +0 -1
  497. package/esm/components/ui/keyValue/KeyValue.stories.js +0 -98
  498. package/esm/components/ui/keyValue/KeyValue.stories.js.map +0 -1
  499. package/esm/components/ui/line/Line.stories.d.ts +0 -8
  500. package/esm/components/ui/line/Line.stories.d.ts.map +0 -1
  501. package/esm/components/ui/line/Line.stories.js +0 -27
  502. package/esm/components/ui/line/Line.stories.js.map +0 -1
  503. package/esm/components/ui/loader/CoveringLoader.stories.d.ts +0 -8
  504. package/esm/components/ui/loader/CoveringLoader.stories.d.ts.map +0 -1
  505. package/esm/components/ui/loader/CoveringLoader.stories.js +0 -50
  506. package/esm/components/ui/loader/CoveringLoader.stories.js.map +0 -1
  507. package/esm/components/ui/loader/FullLoader.stories.d.ts +0 -8
  508. package/esm/components/ui/loader/FullLoader.stories.d.ts.map +0 -1
  509. package/esm/components/ui/loader/FullLoader.stories.js +0 -19
  510. package/esm/components/ui/loader/FullLoader.stories.js.map +0 -1
  511. package/esm/components/ui/loader/Loader.stories.d.ts +0 -8
  512. package/esm/components/ui/loader/Loader.stories.d.ts.map +0 -1
  513. package/esm/components/ui/loader/Loader.stories.js +0 -23
  514. package/esm/components/ui/loader/Loader.stories.js.map +0 -1
  515. package/esm/components/ui/loader/Loading.stories.d.ts +0 -8
  516. package/esm/components/ui/loader/Loading.stories.d.ts.map +0 -1
  517. package/esm/components/ui/loader/Loading.stories.js +0 -32
  518. package/esm/components/ui/loader/Loading.stories.js.map +0 -1
  519. package/esm/components/ui/loader/PopLoader.stories.d.ts +0 -8
  520. package/esm/components/ui/loader/PopLoader.stories.d.ts.map +0 -1
  521. package/esm/components/ui/loader/PopLoader.stories.js +0 -24
  522. package/esm/components/ui/loader/PopLoader.stories.js.map +0 -1
  523. package/esm/components/ui/message/Message.stories.d.ts +0 -9
  524. package/esm/components/ui/message/Message.stories.d.ts.map +0 -1
  525. package/esm/components/ui/message/Message.stories.js +0 -43
  526. package/esm/components/ui/message/Message.stories.js.map +0 -1
  527. package/esm/components/ui/modal/Modal.stories.d.ts +0 -10
  528. package/esm/components/ui/modal/Modal.stories.d.ts.map +0 -1
  529. package/esm/components/ui/modal/Modal.stories.js +0 -84
  530. package/esm/components/ui/modal/Modal.stories.js.map +0 -1
  531. package/esm/components/ui/modal/ModalButtons.stories.d.ts +0 -8
  532. package/esm/components/ui/modal/ModalButtons.stories.d.ts.map +0 -1
  533. package/esm/components/ui/modal/ModalButtons.stories.js +0 -19
  534. package/esm/components/ui/modal/ModalButtons.stories.js.map +0 -1
  535. package/esm/components/ui/pop/Pop.stories.d.ts +0 -8
  536. package/esm/components/ui/pop/Pop.stories.d.ts.map +0 -1
  537. package/esm/components/ui/pop/Pop.stories.js +0 -65
  538. package/esm/components/ui/pop/Pop.stories.js.map +0 -1
  539. package/esm/components/ui/progress/Progress.stories.d.ts +0 -9
  540. package/esm/components/ui/progress/Progress.stories.d.ts.map +0 -1
  541. package/esm/components/ui/progress/Progress.stories.js +0 -29
  542. package/esm/components/ui/progress/Progress.stories.js.map +0 -1
  543. package/esm/components/ui/stats/Stats.stories.d.ts +0 -11
  544. package/esm/components/ui/stats/Stats.stories.d.ts.map +0 -1
  545. package/esm/components/ui/stats/Stats.stories.js +0 -104
  546. package/esm/components/ui/stats/Stats.stories.js.map +0 -1
  547. package/esm/components/ui/tabs/Selector.stories.d.ts +0 -12
  548. package/esm/components/ui/tabs/Selector.stories.d.ts.map +0 -1
  549. package/esm/components/ui/tabs/Selector.stories.js +0 -110
  550. package/esm/components/ui/tabs/Selector.stories.js.map +0 -1
  551. package/esm/components/ui/toaster/Notification.d.ts +0 -9
  552. package/esm/components/ui/toaster/Notification.d.ts.map +0 -1
  553. package/esm/components/ui/toaster/Notification.js +0 -17
  554. package/esm/components/ui/toaster/Notification.js.map +0 -1
  555. package/esm/components/ui/toaster/Toaster.stories.d.ts +0 -7
  556. package/esm/components/ui/toaster/Toaster.stories.d.ts.map +0 -1
  557. package/esm/components/ui/toaster/Toaster.stories.js +0 -39
  558. package/esm/components/ui/toaster/Toaster.stories.js.map +0 -1
  559. package/esm/components/ui/toaster/Toaster.styled.d.ts +0 -89
  560. package/esm/components/ui/toaster/Toaster.styled.d.ts.map +0 -1
  561. package/esm/components/ui/toaster/Toaster.styled.js +0 -36
  562. package/esm/components/ui/toaster/Toaster.styled.js.map +0 -1
  563. package/esm/components/ui/toaster/types.d.ts +0 -7
  564. package/esm/components/ui/toaster/types.d.ts.map +0 -1
  565. package/esm/components/ui/toaster/types.js +0 -2
  566. package/esm/components/ui/toaster/types.js.map +0 -1
  567. package/esm/components/ui/toolButton/ToolButton.stories.d.ts +0 -8
  568. package/esm/components/ui/toolButton/ToolButton.stories.d.ts.map +0 -1
  569. package/esm/components/ui/toolButton/ToolButton.stories.js +0 -29
  570. package/esm/components/ui/toolButton/ToolButton.stories.js.map +0 -1
  571. package/src/components/ui/toaster/Notification.tsx +0 -39
  572. package/src/components/ui/toaster/Toaster.styled.ts +0 -42
  573. package/src/components/ui/toaster/types.ts +0 -9
@@ -1,10 +1,10 @@
1
- declare const Root: import("@stitches/react/types/styled-component").StyledComponent<"div", {
1
+ declare const Root: import("../../../../node_modules/@stitches/react/types/styled-component").StyledComponent<"div", {
2
2
  multiLine?: boolean | "true" | "false";
3
- }, {}, import("@stitches/react/types/css-util").CSS<{}, {}, {}, {}>>;
4
- declare const Wrapper: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {}, import("@stitches/react/types/css-util").CSS<{}, {}, {}, {}>>;
5
- declare const Arrow: import("@stitches/react/types/styled-component").StyledComponent<"div", {
3
+ }, {}, import("../../../../node_modules/@stitches/react/types/css-util").CSS<{}, {}, {}, {}>>;
4
+ declare const Wrapper: import("../../../../node_modules/@stitches/react/types/styled-component").StyledComponent<"div", {}, {}, import("../../../../node_modules/@stitches/react/types/css-util").CSS<{}, {}, {}, {}>>;
5
+ declare const Arrow: import("../../../../node_modules/@stitches/react/types/styled-component").StyledComponent<"div", {
6
6
  side?: "left" | "right";
7
7
  visible?: boolean | "true";
8
- }, {}, import("@stitches/react/types/css-util").CSS<{}, {}, {}, {}>>;
8
+ }, {}, import("../../../../node_modules/@stitches/react/types/css-util").CSS<{}, {}, {}, {}>>;
9
9
  export { Arrow, Root, Wrapper };
10
10
  //# sourceMappingURL=Selector.styled.d.ts.map
@@ -1,19 +1,12 @@
1
1
  import React from "react";
2
- import type { Toast } from "./types";
3
- type ToasterFn = (text: string, timeout?: number) => void;
4
- interface Props {
5
- children: React.ReactNode;
6
- }
7
- interface State {
8
- list: Toast[];
9
- }
10
- declare class ToasterProvider extends React.Component<Props, State> {
11
- constructor(props: Props, context: unknown);
12
- private readonly _add;
13
- private readonly _handleRemove;
14
- private readonly _removeAllToasts;
15
- render(): React.JSX.Element;
2
+ import { toast, Toaster as SonnerToaster } from "sonner";
3
+ type SonnerToasterProps = React.ComponentProps<typeof SonnerToaster>;
4
+ interface ToasterProviderProps extends SonnerToasterProps {
5
+ children?: React.ReactNode;
16
6
  }
7
+ declare const ToasterProvider: React.FC<ToasterProviderProps>;
8
+ type ToasterFn = (text: string, timeout?: number) => string | number;
17
9
  declare const useToaster: () => ToasterFn;
18
- export { ToasterProvider, useToaster };
10
+ export { ToasterProvider, useToaster, toast };
11
+ export type { ToasterProviderProps };
19
12
  //# sourceMappingURL=Toaster.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toaster.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/toaster/Toaster.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAKrC,KAAK,SAAS,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;AAU1D,UAAU,KAAK;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AACD,UAAU,KAAK;IACX,IAAI,EAAE,KAAK,EAAE,CAAC;CACjB;AAID,cAAM,eAAgB,SAAQ,KAAK,CAAC,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;gBACpC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO;IAQjD,OAAO,CAAC,QAAQ,CAAC,IAAI,CA6BnB;IAEF,OAAO,CAAC,QAAQ,CAAC,aAAa,CAK5B;IAEF,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAa/B;IAEc,MAAM;CAYzB;AAED,QAAA,MAAM,UAAU,iBAAmC,CAAC;AAEpD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"Toaster.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/toaster/Toaster.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEzD,KAAK,kBAAkB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;AAErE,UAAU,oBAAqB,SAAQ,kBAAkB;IACrD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAOnD,CAAC;AAEF,KAAK,SAAS,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,CAAC;AAErE,QAAA,MAAM,UAAU,QAAO,SAItB,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;AAC9C,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1,75 +1,14 @@
1
- import React, { createContext, useContext } from "react";
2
- import { Notification } from "./Notification.js";
3
- const ToasterContext = createContext(() => {
4
- throw new Error("Toaster Provider missing in the tree");
5
- });
6
- ToasterContext.displayName = "ToasterContext";
7
- const prefix = `${Date.now()}_`;
8
- let counter = 0;
9
- const DEFAULT_TIMEOUT = 5000;
10
- class ToasterProvider extends React.Component {
11
- constructor(props, context) {
12
- super(props, context);
13
- this._add = (text, timeout = DEFAULT_TIMEOUT) => {
14
- this._removeAllToasts();
15
- const id = prefix + String(counter++);
16
- const hide = false;
17
- this.setState(prev => ({
18
- ...prev,
19
- list: [...prev.list, {
20
- id,
21
- text,
22
- hide,
23
- }],
24
- }));
25
- setTimeout(() => {
26
- this.setState(prev => ({
27
- ...prev,
28
- list: prev.list.map(p => {
29
- if (p.id !== id) {
30
- return p;
31
- }
32
- return {
33
- ...p,
34
- hide: true,
35
- };
36
- }),
37
- }));
38
- }, timeout);
39
- };
40
- this._handleRemove = (id) => {
41
- this.setState(prev => ({
42
- ...prev,
43
- list: prev.list.filter(p => p.id !== id),
44
- }));
45
- };
46
- this._removeAllToasts = () => {
47
- this.setState(prev => ({
48
- ...prev,
49
- list: prev.list.map(p => {
50
- if (p.hide) {
51
- return p;
52
- }
53
- return {
54
- ...p,
55
- hide: true,
56
- };
57
- }),
58
- }));
59
- };
60
- this.state = {
61
- list: [],
62
- };
63
- }
64
- render() {
65
- const notifications = this.state.list.map((t) => {
66
- return React.createElement(Notification, { onRemove: this._handleRemove, key: t.id, toast: t });
67
- });
68
- return (React.createElement(ToasterContext.Provider, { value: this._add },
69
- notifications,
70
- this.props.children));
71
- }
72
- }
73
- const useToaster = () => useContext(ToasterContext);
74
- export { ToasterProvider, useToaster };
1
+ import React, { useCallback } from "react";
2
+ import { toast, Toaster as SonnerToaster } from "sonner";
3
+ const ToasterProvider = ({ children, position = "bottom-center", ...rest }) => {
4
+ return (React.createElement(React.Fragment, null,
5
+ children,
6
+ React.createElement(SonnerToaster, { position: position, ...rest })));
7
+ };
8
+ const useToaster = () => {
9
+ return useCallback((text, timeout) => {
10
+ return toast(text, timeout != null ? { duration: timeout } : undefined);
11
+ }, []);
12
+ };
13
+ export { ToasterProvider, useToaster, toast };
75
14
  //# sourceMappingURL=Toaster.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toaster.js","sourceRoot":"","sources":["../../../../src/components/ui/toaster/Toaster.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAKzD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAI9C,MAAM,cAAc,GAAG,aAAa,CAAY,GAAG,EAAE;IACjD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;AAC5D,CAAC,CAAC,CAAC;AACH,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAE9C,MAAM,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC;AAChC,IAAI,OAAO,GAAG,CAAC,CAAC;AAShB,MAAM,eAAe,GAAG,IAAI,CAAC;AAE7B,MAAM,eAAgB,SAAQ,KAAK,CAAC,SAAuB;IACvD,YAAmB,KAAY,EAAE,OAAgB;QAC7C,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAOT,SAAI,GAAG,CAAC,IAAY,EAAE,OAAO,GAAG,eAAe,EAAE,EAAE;YAChE,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAExB,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;YACtC,MAAM,IAAI,GAAG,KAAK,CAAC;YAEnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACnB,GAAG,IAAI;gBACP,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,IAAI,EAAE;wBACjB,EAAE;wBACF,IAAI;wBACJ,IAAI;qBACP,CAAC;aACL,CAAC,CAAC,CAAC;YAEJ,UAAU,CAAC,GAAG,EAAE;gBACZ,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;oBACnB,GAAG,IAAI;oBACP,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;wBACpB,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;4BACd,OAAO,CAAC,CAAC;wBACb,CAAC;wBACD,OAAO;4BACH,GAAG,CAAC;4BACJ,IAAI,EAAE,IAAI;yBACb,CAAC;oBACN,CAAC,CAAC;iBACL,CAAC,CAAC,CAAC;YACR,CAAC,EAAE,OAAO,CAAC,CAAC;QAChB,CAAC,CAAC;QAEe,kBAAa,GAAG,CAAC,EAAe,EAAE,EAAE;YACjD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACnB,GAAG,IAAI;gBACP,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC;aAC3C,CAAC,CAAC,CAAC;QACR,CAAC,CAAC;QAEe,qBAAgB,GAAG,GAAG,EAAE;YACrC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACnB,GAAG,IAAI;gBACP,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;oBACpB,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;wBACT,OAAO,CAAC,CAAC;oBACb,CAAC;oBACD,OAAO;wBACH,GAAG,CAAC;wBACJ,IAAI,EAAE,IAAI;qBACb,CAAC;gBACN,CAAC,CAAC;aACL,CAAC,CAAC,CAAC;QACR,CAAC,CAAC;QAxDE,IAAI,CAAC,KAAK,GAAG;YACT,IAAI,EAAE,EAAE;SACX,CAAC;IACN,CAAC;IAuDe,MAAM;QAClB,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YAC5C,OAAO,oBAAC,YAAY,IAAC,QAAQ,EAAE,IAAI,CAAC,aAAa,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,GAAI,CAAC;QAC/E,CAAC,CAAC,CAAC;QAEH,OAAO,CACH,oBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,IAAI;YACpC,aAAa;YACb,IAAI,CAAC,KAAK,CAAC,QAAQ,CACE,CAC7B,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;AAEpD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"Toaster.js","sourceRoot":"","sources":["../../../../src/components/ui/toaster/Toaster.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,QAAQ,CAAC;AAQzD,MAAM,eAAe,GAAmC,CAAC,EAAE,QAAQ,EAAE,QAAQ,GAAG,eAAe,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC1G,OAAO,CACH;QACK,QAAQ;QACT,oBAAC,aAAa,IAAC,QAAQ,EAAE,QAAQ,KAAM,IAAI,GAAI,CAChD,CACN,CAAC;AACN,CAAC,CAAC;AAIF,MAAM,UAAU,GAAG,GAAc,EAAE;IAC/B,OAAO,WAAW,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;QACjC,OAAO,KAAK,CAAC,IAAI,EAAE,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC5E,CAAC,EAAE,EAAE,CAAC,CAAC;AACX,CAAC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
- declare const ToolButton: import("@stitches/react/types/styled-component").StyledComponent<"button", {
1
+ declare const ToolButton: import("../../../../node_modules/@stitches/react/types/styled-component").StyledComponent<"button", {
2
2
  inline?: boolean | "true";
3
3
  variant?: "secondary" | "secondaryOnLight";
4
- }, {}, import("@stitches/react/types/css-util").CSS<{}, {
4
+ }, {}, import("../../../../node_modules/@stitches/react/types/css-util").CSS<{}, {
5
5
  colors: {
6
6
  background: "white";
7
7
  mainColor: "#008ad2";
@@ -64,7 +64,7 @@ declare const ToolButton: import("@stitches/react/types/styled-component").Style
64
64
  tableStripedBg: "#fafafa";
65
65
  toolButtonText: "#666e80";
66
66
  };
67
- }, import("@stitches/react/types/config").DefaultThemeMap, {
67
+ }, import("../../../../node_modules/@stitches/react/types/config").DefaultThemeMap, {
68
68
  mx: (value: string | number) => {
69
69
  marginLeft: string | number;
70
70
  marginRight: string | number;
@@ -1,6 +1,6 @@
1
- declare const Gap: import("@stitches/react/types/styled-component").StyledComponent<"div", {
1
+ declare const Gap: import("../../../node_modules/@stitches/react/types/styled-component").StyledComponent<"div", {
2
2
  row?: boolean | "true";
3
- }, {}, import("@stitches/react/types/css-util").CSS<{}, {
3
+ }, {}, import("../../../node_modules/@stitches/react/types/css-util").CSS<{}, {
4
4
  colors: {
5
5
  background: "white";
6
6
  mainColor: "#008ad2";
@@ -63,7 +63,7 @@ declare const Gap: import("@stitches/react/types/styled-component").StyledCompon
63
63
  tableStripedBg: "#fafafa";
64
64
  toolButtonText: "#666e80";
65
65
  };
66
- }, import("@stitches/react/types/config").DefaultThemeMap, {
66
+ }, import("../../../node_modules/@stitches/react/types/config").DefaultThemeMap, {
67
67
  mx: (value: string | number) => {
68
68
  marginLeft: string | number;
69
69
  marginRight: string | number;
@@ -1,4 +1,4 @@
1
- declare const Spacer: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {}, import("@stitches/react/types/css-util").CSS<{}, {
1
+ declare const Spacer: import("../../../node_modules/@stitches/react/types/styled-component").StyledComponent<"div", {}, {}, import("../../../node_modules/@stitches/react/types/css-util").CSS<{}, {
2
2
  colors: {
3
3
  background: "white";
4
4
  mainColor: "#008ad2";
@@ -61,7 +61,7 @@ declare const Spacer: import("@stitches/react/types/styled-component").StyledCom
61
61
  tableStripedBg: "#fafafa";
62
62
  toolButtonText: "#666e80";
63
63
  };
64
- }, import("@stitches/react/types/config").DefaultThemeMap, {
64
+ }, import("../../../node_modules/@stitches/react/types/config").DefaultThemeMap, {
65
65
  mx: (value: string | number) => {
66
66
  marginLeft: string | number;
67
67
  marginRight: string | number;
package/esm/theme.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import type { CSS as StitchesCSS } from "@stitches/react";
2
- import type { StyledComponent } from "@stitches/react/types/styled-component";
2
+ import type { StyledComponent } from "../node_modules/@stitches/react/types/styled-component";
3
3
  declare const pxToRem: (px: number) => string;
4
4
  declare const dimensionsPxToRem: (px: number) => string;
5
5
  declare const borderPxToRem: (px: number) => string;
6
6
  declare const fontPxToRem: (px: number) => string;
7
- declare const styled: <Type extends keyof JSX.IntrinsicElements | React.ComponentType<any> | import("@stitches/react/types/util").Function, Composers extends (string | React.ComponentType<any> | import("@stitches/react/types/util").Function | {
7
+ declare const styled: <Type extends keyof JSX.IntrinsicElements | React.ComponentType<any> | import("../node_modules/@stitches/react/types/util").Function, Composers extends (string | React.ComponentType<any> | import("../node_modules/@stitches/react/types/util").Function | {
8
8
  [name: string]: unknown;
9
- })[], CSS = import("@stitches/react/types/css-util").CSS<{}, {
9
+ })[], CSS = import("../node_modules/@stitches/react/types/css-util").CSS<{}, {
10
10
  colors: {
11
11
  background: "white";
12
12
  mainColor: "#008ad2";
@@ -69,7 +69,7 @@ declare const styled: <Type extends keyof JSX.IntrinsicElements | React.Componen
69
69
  tableStripedBg: "#fafafa";
70
70
  toolButtonText: "#666e80";
71
71
  };
72
- }, import("@stitches/react/types/config").DefaultThemeMap, {
72
+ }, import("../node_modules/@stitches/react/types/config").DefaultThemeMap, {
73
73
  mx: (value: string | number) => {
74
74
  marginLeft: string | number;
75
75
  marginRight: string | number;
@@ -90,18 +90,18 @@ declare const styled: <Type extends keyof JSX.IntrinsicElements | React.Componen
90
90
  width: string | number;
91
91
  height: string | number;
92
92
  };
93
- }>>(type: Type, ...composers: { [K in keyof Composers]: string extends Composers[K] ? Composers[K] : Composers[K] extends string | import("@stitches/react/types/util").Function | import("react").ComponentType<any> ? Composers[K] : import("@stitches/react/types/stitches").RemoveIndex<CSS> & {
93
+ }>>(type: Type, ...composers: { [K in keyof Composers]: string extends Composers[K] ? Composers[K] : Composers[K] extends string | import("../node_modules/@stitches/react/types/util").Function | import("react").ComponentType<any> ? Composers[K] : import("../node_modules/@stitches/react/types/stitches").RemoveIndex<CSS> & {
94
94
  variants?: {
95
95
  [x: string]: {
96
96
  [x: string]: CSS;
97
97
  [x: number]: CSS;
98
98
  };
99
99
  };
100
- compoundVariants?: (("variants" extends keyof Composers[K] ? { [Name in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name]>; } : import("@stitches/react/types/util").WideObject) & {
100
+ compoundVariants?: (("variants" extends keyof Composers[K] ? { [Name in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("../node_modules/@stitches/react/types/util").String | import("../node_modules/@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name]>; } : import("../node_modules/@stitches/react/types/util").WideObject) & {
101
101
  css: CSS;
102
102
  })[];
103
- defaultVariants?: "variants" extends keyof Composers[K] ? { [Name_1 in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]>; } : import("@stitches/react/types/util").WideObject;
104
- } & CSS & { [K2 in keyof Composers[K]]: K2 extends "compoundVariants" | "defaultVariants" | "variants" ? unknown : K2 extends keyof CSS ? CSS[K2] : unknown; }; }) => StyledComponent<Type, import("@stitches/react/types/styled-component").StyledComponentProps<Composers>, {}, import("@stitches/react/types/css-util").CSS<{}, {
103
+ defaultVariants?: "variants" extends keyof Composers[K] ? { [Name_1 in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("../node_modules/@stitches/react/types/util").String | import("../node_modules/@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]>; } : import("../node_modules/@stitches/react/types/util").WideObject;
104
+ } & CSS & { [K2 in keyof Composers[K]]: K2 extends "compoundVariants" | "defaultVariants" | "variants" ? unknown : K2 extends keyof CSS ? CSS[K2] : unknown; }; }) => StyledComponent<Type, import("../node_modules/@stitches/react/types/styled-component").StyledComponentProps<Composers>, {}, import("../node_modules/@stitches/react/types/css-util").CSS<{}, {
105
105
  colors: {
106
106
  background: "white";
107
107
  mainColor: "#008ad2";
@@ -164,7 +164,7 @@ declare const styled: <Type extends keyof JSX.IntrinsicElements | React.Componen
164
164
  tableStripedBg: "#fafafa";
165
165
  toolButtonText: "#666e80";
166
166
  };
167
- }, import("@stitches/react/types/config").DefaultThemeMap, {
167
+ }, import("../node_modules/@stitches/react/types/config").DefaultThemeMap, {
168
168
  mx: (value: string | number) => {
169
169
  marginLeft: string | number;
170
170
  marginRight: string | number;
@@ -185,9 +185,9 @@ declare const styled: <Type extends keyof JSX.IntrinsicElements | React.Componen
185
185
  width: string | number;
186
186
  height: string | number;
187
187
  };
188
- }>>, css: <Composers extends (string | React.ExoticComponent<any> | React.JSXElementConstructor<any> | import("@stitches/react/types/util").Function | {
188
+ }>>, css: <Composers extends (string | React.ExoticComponent<any> | React.JSXElementConstructor<any> | import("../node_modules/@stitches/react/types/util").Function | {
189
189
  [name: string]: unknown;
190
- })[], CSS = import("@stitches/react/types/css-util").CSS<{}, {
190
+ })[], CSS = import("../node_modules/@stitches/react/types/css-util").CSS<{}, {
191
191
  colors: {
192
192
  background: "white";
193
193
  mainColor: "#008ad2";
@@ -250,7 +250,7 @@ declare const styled: <Type extends keyof JSX.IntrinsicElements | React.Componen
250
250
  tableStripedBg: "#fafafa";
251
251
  toolButtonText: "#666e80";
252
252
  };
253
- }, import("@stitches/react/types/config").DefaultThemeMap, {
253
+ }, import("../node_modules/@stitches/react/types/config").DefaultThemeMap, {
254
254
  mx: (value: string | number) => {
255
255
  marginLeft: string | number;
256
256
  marginRight: string | number;
@@ -271,24 +271,24 @@ declare const styled: <Type extends keyof JSX.IntrinsicElements | React.Componen
271
271
  width: string | number;
272
272
  height: string | number;
273
273
  };
274
- }>>(...composers: { [K in keyof Composers]: string extends Composers[K] ? Composers[K] : Composers[K] extends string | import("@stitches/react/types/util").Function | import("react").JSXElementConstructor<any> | import("react").ExoticComponent<any> ? Composers[K] : import("@stitches/react/types/stitches").RemoveIndex<CSS> & {
274
+ }>>(...composers: { [K in keyof Composers]: string extends Composers[K] ? Composers[K] : Composers[K] extends string | import("../node_modules/@stitches/react/types/util").Function | import("react").JSXElementConstructor<any> | import("react").ExoticComponent<any> ? Composers[K] : import("../node_modules/@stitches/react/types/stitches").RemoveIndex<CSS> & {
275
275
  variants?: {
276
276
  [x: string]: {
277
277
  [x: string]: CSS;
278
278
  [x: number]: CSS;
279
279
  };
280
280
  };
281
- compoundVariants?: (("variants" extends keyof Composers[K] ? { [Name in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name]>; } : import("@stitches/react/types/util").WideObject) & {
281
+ compoundVariants?: (("variants" extends keyof Composers[K] ? { [Name in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("../node_modules/@stitches/react/types/util").String | import("../node_modules/@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name]>; } : import("../node_modules/@stitches/react/types/util").WideObject) & {
282
282
  css: CSS;
283
283
  })[];
284
- defaultVariants?: "variants" extends keyof Composers[K] ? { [Name_1 in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]>; } : import("@stitches/react/types/util").WideObject;
285
- } & CSS & { [K2 in keyof Composers[K]]: K2 extends "compoundVariants" | "defaultVariants" | "variants" ? unknown : K2 extends keyof CSS ? CSS[K2] : unknown; }; }) => import("@stitches/react/types/styled-component").CssComponent<import("@stitches/react/types/styled-component").StyledComponentType<Composers>, import("@stitches/react/types/styled-component").StyledComponentProps<Composers>, {}, CSS>, globalCss: <Styles extends {
284
+ defaultVariants?: "variants" extends keyof Composers[K] ? { [Name_1 in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("../node_modules/@stitches/react/types/util").String | import("../node_modules/@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]>; } : import("../node_modules/@stitches/react/types/util").WideObject;
285
+ } & CSS & { [K2 in keyof Composers[K]]: K2 extends "compoundVariants" | "defaultVariants" | "variants" ? unknown : K2 extends keyof CSS ? CSS[K2] : unknown; }; }) => import("../node_modules/@stitches/react/types/styled-component").CssComponent<import("../node_modules/@stitches/react/types/styled-component").StyledComponentType<Composers>, import("../node_modules/@stitches/react/types/styled-component").StyledComponentProps<Composers>, {}, CSS>, globalCss: <Styles extends {
286
286
  [K: string]: any;
287
287
  }>(...styles: ({
288
288
  '@import'?: unknown;
289
289
  '@font-face'?: unknown;
290
- } & { [K in keyof Styles]: K extends "@import" ? string | string[] : K extends "@font-face" ? import("@stitches/react/types/css").AtRule.FontFace | import("@stitches/react/types/css").AtRule.FontFace[] : K extends `@keyframes ${string}` ? {
291
- [x: string]: import("@stitches/react/types/css-util").CSS<{}, {
290
+ } & { [K in keyof Styles]: K extends "@import" ? string | string[] : K extends "@font-face" ? import("../node_modules/@stitches/react/types/css").AtRule.FontFace | import("../node_modules/@stitches/react/types/css").AtRule.FontFace[] : K extends `@keyframes ${string}` ? {
291
+ [x: string]: import("../node_modules/@stitches/react/types/css-util").CSS<{}, {
292
292
  colors: {
293
293
  background: "white";
294
294
  mainColor: "#008ad2";
@@ -351,7 +351,7 @@ declare const styled: <Type extends keyof JSX.IntrinsicElements | React.Componen
351
351
  tableStripedBg: "#fafafa";
352
352
  toolButtonText: "#666e80";
353
353
  };
354
- }, import("@stitches/react/types/config").DefaultThemeMap, {
354
+ }, import("../node_modules/@stitches/react/types/config").DefaultThemeMap, {
355
355
  mx: (value: string | number) => {
356
356
  marginLeft: string | number;
357
357
  marginRight: string | number;
@@ -373,7 +373,7 @@ declare const styled: <Type extends keyof JSX.IntrinsicElements | React.Componen
373
373
  height: string | number;
374
374
  };
375
375
  }>;
376
- } : K extends `@property ${string}` ? import("@stitches/react/types/css").AtRule.Property : import("@stitches/react/types/css-util").CSS<{}, {
376
+ } : K extends `@property ${string}` ? import("../node_modules/@stitches/react/types/css").AtRule.Property : import("../node_modules/@stitches/react/types/css-util").CSS<{}, {
377
377
  colors: {
378
378
  background: "white";
379
379
  mainColor: "#008ad2";
@@ -436,7 +436,7 @@ declare const styled: <Type extends keyof JSX.IntrinsicElements | React.Componen
436
436
  tableStripedBg: "#fafafa";
437
437
  toolButtonText: "#666e80";
438
438
  };
439
- }, import("@stitches/react/types/config").DefaultThemeMap, {
439
+ }, import("../node_modules/@stitches/react/types/config").DefaultThemeMap, {
440
440
  mx: (value: string | number) => {
441
441
  marginLeft: string | number;
442
442
  marginRight: string | number;
@@ -460,7 +460,7 @@ declare const styled: <Type extends keyof JSX.IntrinsicElements | React.Componen
460
460
  }>; })[]) => {
461
461
  (): string;
462
462
  }, keyframes: (style: {
463
- [offset: string]: import("@stitches/react/types/css-util").CSS<{}, {
463
+ [offset: string]: import("../node_modules/@stitches/react/types/css-util").CSS<{}, {
464
464
  colors: {
465
465
  background: "white";
466
466
  mainColor: "#008ad2";
@@ -523,7 +523,7 @@ declare const styled: <Type extends keyof JSX.IntrinsicElements | React.Componen
523
523
  tableStripedBg: "#fafafa";
524
524
  toolButtonText: "#666e80";
525
525
  };
526
- }, import("@stitches/react/types/config").DefaultThemeMap, {
526
+ }, import("../node_modules/@stitches/react/types/config").DefaultThemeMap, {
527
527
  mx: (value: string | number) => {
528
528
  marginLeft: string | number;
529
529
  marginRight: string | number;
@@ -553,66 +553,66 @@ declare const styled: <Type extends keyof JSX.IntrinsicElements | React.Componen
553
553
  selector: string;
554
554
  } & {
555
555
  colors: {
556
- background: import("@stitches/react/types/theme").Token<"background", string, "colors", "">;
557
- mainColor: import("@stitches/react/types/theme").Token<"mainColor", string, "colors", "">;
558
- mainColorAlt: import("@stitches/react/types/theme").Token<"mainColorAlt", string, "colors", "">;
559
- activeBg: import("@stitches/react/types/theme").Token<"activeBg", string, "colors", "">;
560
- inactiveBg: import("@stitches/react/types/theme").Token<"inactiveBg", string, "colors", "">;
561
- inactiveDarkBg: import("@stitches/react/types/theme").Token<"inactiveDarkBg", string, "colors", "">;
562
- toggleHandleBg: import("@stitches/react/types/theme").Token<"toggleHandleBg", string, "colors", "">;
563
- toggleHandleBorder: import("@stitches/react/types/theme").Token<"toggleHandleBorder", string, "colors", "">;
564
- toggleBgDisabled: import("@stitches/react/types/theme").Token<"toggleBgDisabled", string, "colors", "">;
565
- toggleHandleBorderDisabled: import("@stitches/react/types/theme").Token<"toggleHandleBorderDisabled", string, "colors", "">;
566
- toggleHandleBgDisabled: import("@stitches/react/types/theme").Token<"toggleHandleBgDisabled", string, "colors", "">;
567
- icon: import("@stitches/react/types/theme").Token<"icon", string, "colors", "">;
568
- border: import("@stitches/react/types/theme").Token<"border", string, "colors", "">;
569
- buttonBorder: import("@stitches/react/types/theme").Token<"buttonBorder", string, "colors", "">;
570
- headerBorder: import("@stitches/react/types/theme").Token<"headerBorder", string, "colors", "">;
571
- headerBg: import("@stitches/react/types/theme").Token<"headerBg", string, "colors", "">;
572
- headerText: import("@stitches/react/types/theme").Token<"headerText", string, "colors", "">;
573
- text: import("@stitches/react/types/theme").Token<"text", string, "colors", "">;
574
- text2: import("@stitches/react/types/theme").Token<"text2", string, "colors", "">;
575
- text3: import("@stitches/react/types/theme").Token<"text3", string, "colors", "">;
576
- sub: import("@stitches/react/types/theme").Token<"sub", string, "colors", "">;
577
- popText: import("@stitches/react/types/theme").Token<"popText", string, "colors", "">;
578
- toolbarBorder: import("@stitches/react/types/theme").Token<"toolbarBorder", string, "colors", "">;
579
- toolbarBg: import("@stitches/react/types/theme").Token<"toolbarBg", string, "colors", "">;
580
- modalBg: import("@stitches/react/types/theme").Token<"modalBg", string, "colors", "">;
581
- modalButtonBg: import("@stitches/react/types/theme").Token<"modalButtonBg", string, "colors", "">;
582
- modalButtonBorder: import("@stitches/react/types/theme").Token<"modalButtonBorder", string, "colors", "">;
583
- inputDisabledBg: import("@stitches/react/types/theme").Token<"inputDisabledBg", string, "colors", "">;
584
- inputDisabledText: import("@stitches/react/types/theme").Token<"inputDisabledText", string, "colors", "">;
585
- choiceBg: import("@stitches/react/types/theme").Token<"choiceBg", string, "colors", "">;
586
- choiceText: import("@stitches/react/types/theme").Token<"choiceText", string, "colors", "">;
587
- choiceActiveBg: import("@stitches/react/types/theme").Token<"choiceActiveBg", string, "colors", "">;
588
- choiceActiveText: import("@stitches/react/types/theme").Token<"choiceActiveText", string, "colors", "">;
589
- choiceBorder: import("@stitches/react/types/theme").Token<"choiceBorder", string, "colors", "">;
590
- selectorText: import("@stitches/react/types/theme").Token<"selectorText", string, "colors", "">;
591
- selectorActive: import("@stitches/react/types/theme").Token<"selectorActive", string, "colors", "">;
592
- blue1: import("@stitches/react/types/theme").Token<"blue1", string, "colors", "">;
593
- blue2: import("@stitches/react/types/theme").Token<"blue2", string, "colors", "">;
594
- blue3: import("@stitches/react/types/theme").Token<"blue3", string, "colors", "">;
595
- blue4: import("@stitches/react/types/theme").Token<"blue4", string, "colors", "">;
596
- blue5: import("@stitches/react/types/theme").Token<"blue5", string, "colors", "">;
597
- orange1: import("@stitches/react/types/theme").Token<"orange1", string, "colors", "">;
598
- orange1Darker: import("@stitches/react/types/theme").Token<"orange1Darker", string, "colors", "">;
599
- purple1: import("@stitches/react/types/theme").Token<"purple1", string, "colors", "">;
600
- green1: import("@stitches/react/types/theme").Token<"green1", string, "colors", "">;
601
- green1Darker: import("@stitches/react/types/theme").Token<"green1Darker", string, "colors", "">;
602
- pink1: import("@stitches/react/types/theme").Token<"pink1", string, "colors", "">;
603
- red1: import("@stitches/react/types/theme").Token<"red1", string, "colors", "">;
604
- yellow1: import("@stitches/react/types/theme").Token<"yellow1", string, "colors", "">;
605
- yellow2: import("@stitches/react/types/theme").Token<"yellow2", string, "colors", "">;
606
- yellow3: import("@stitches/react/types/theme").Token<"yellow3", string, "colors", "">;
607
- pinky1: import("@stitches/react/types/theme").Token<"pinky1", string, "colors", "">;
608
- pinky2: import("@stitches/react/types/theme").Token<"pinky2", string, "colors", "">;
609
- pinky3: import("@stitches/react/types/theme").Token<"pinky3", string, "colors", "">;
610
- grey1: import("@stitches/react/types/theme").Token<"grey1", string, "colors", "">;
611
- focusColor: import("@stitches/react/types/theme").Token<"focusColor", string, "colors", "">;
612
- scrollbarsThumb: import("@stitches/react/types/theme").Token<"scrollbarsThumb", string, "colors", "">;
613
- scrollbarsBg: import("@stitches/react/types/theme").Token<"scrollbarsBg", string, "colors", "">;
614
- tableStripedBg: import("@stitches/react/types/theme").Token<"tableStripedBg", string, "colors", "">;
615
- toolButtonText: import("@stitches/react/types/theme").Token<"toolButtonText", string, "colors", "">;
556
+ background: import("../node_modules/@stitches/react/types/theme").Token<"background", string, "colors", "">;
557
+ mainColor: import("../node_modules/@stitches/react/types/theme").Token<"mainColor", string, "colors", "">;
558
+ mainColorAlt: import("../node_modules/@stitches/react/types/theme").Token<"mainColorAlt", string, "colors", "">;
559
+ activeBg: import("../node_modules/@stitches/react/types/theme").Token<"activeBg", string, "colors", "">;
560
+ inactiveBg: import("../node_modules/@stitches/react/types/theme").Token<"inactiveBg", string, "colors", "">;
561
+ inactiveDarkBg: import("../node_modules/@stitches/react/types/theme").Token<"inactiveDarkBg", string, "colors", "">;
562
+ toggleHandleBg: import("../node_modules/@stitches/react/types/theme").Token<"toggleHandleBg", string, "colors", "">;
563
+ toggleHandleBorder: import("../node_modules/@stitches/react/types/theme").Token<"toggleHandleBorder", string, "colors", "">;
564
+ toggleBgDisabled: import("../node_modules/@stitches/react/types/theme").Token<"toggleBgDisabled", string, "colors", "">;
565
+ toggleHandleBorderDisabled: import("../node_modules/@stitches/react/types/theme").Token<"toggleHandleBorderDisabled", string, "colors", "">;
566
+ toggleHandleBgDisabled: import("../node_modules/@stitches/react/types/theme").Token<"toggleHandleBgDisabled", string, "colors", "">;
567
+ icon: import("../node_modules/@stitches/react/types/theme").Token<"icon", string, "colors", "">;
568
+ border: import("../node_modules/@stitches/react/types/theme").Token<"border", string, "colors", "">;
569
+ buttonBorder: import("../node_modules/@stitches/react/types/theme").Token<"buttonBorder", string, "colors", "">;
570
+ headerBorder: import("../node_modules/@stitches/react/types/theme").Token<"headerBorder", string, "colors", "">;
571
+ headerBg: import("../node_modules/@stitches/react/types/theme").Token<"headerBg", string, "colors", "">;
572
+ headerText: import("../node_modules/@stitches/react/types/theme").Token<"headerText", string, "colors", "">;
573
+ text: import("../node_modules/@stitches/react/types/theme").Token<"text", string, "colors", "">;
574
+ text2: import("../node_modules/@stitches/react/types/theme").Token<"text2", string, "colors", "">;
575
+ text3: import("../node_modules/@stitches/react/types/theme").Token<"text3", string, "colors", "">;
576
+ sub: import("../node_modules/@stitches/react/types/theme").Token<"sub", string, "colors", "">;
577
+ popText: import("../node_modules/@stitches/react/types/theme").Token<"popText", string, "colors", "">;
578
+ toolbarBorder: import("../node_modules/@stitches/react/types/theme").Token<"toolbarBorder", string, "colors", "">;
579
+ toolbarBg: import("../node_modules/@stitches/react/types/theme").Token<"toolbarBg", string, "colors", "">;
580
+ modalBg: import("../node_modules/@stitches/react/types/theme").Token<"modalBg", string, "colors", "">;
581
+ modalButtonBg: import("../node_modules/@stitches/react/types/theme").Token<"modalButtonBg", string, "colors", "">;
582
+ modalButtonBorder: import("../node_modules/@stitches/react/types/theme").Token<"modalButtonBorder", string, "colors", "">;
583
+ inputDisabledBg: import("../node_modules/@stitches/react/types/theme").Token<"inputDisabledBg", string, "colors", "">;
584
+ inputDisabledText: import("../node_modules/@stitches/react/types/theme").Token<"inputDisabledText", string, "colors", "">;
585
+ choiceBg: import("../node_modules/@stitches/react/types/theme").Token<"choiceBg", string, "colors", "">;
586
+ choiceText: import("../node_modules/@stitches/react/types/theme").Token<"choiceText", string, "colors", "">;
587
+ choiceActiveBg: import("../node_modules/@stitches/react/types/theme").Token<"choiceActiveBg", string, "colors", "">;
588
+ choiceActiveText: import("../node_modules/@stitches/react/types/theme").Token<"choiceActiveText", string, "colors", "">;
589
+ choiceBorder: import("../node_modules/@stitches/react/types/theme").Token<"choiceBorder", string, "colors", "">;
590
+ selectorText: import("../node_modules/@stitches/react/types/theme").Token<"selectorText", string, "colors", "">;
591
+ selectorActive: import("../node_modules/@stitches/react/types/theme").Token<"selectorActive", string, "colors", "">;
592
+ blue1: import("../node_modules/@stitches/react/types/theme").Token<"blue1", string, "colors", "">;
593
+ blue2: import("../node_modules/@stitches/react/types/theme").Token<"blue2", string, "colors", "">;
594
+ blue3: import("../node_modules/@stitches/react/types/theme").Token<"blue3", string, "colors", "">;
595
+ blue4: import("../node_modules/@stitches/react/types/theme").Token<"blue4", string, "colors", "">;
596
+ blue5: import("../node_modules/@stitches/react/types/theme").Token<"blue5", string, "colors", "">;
597
+ orange1: import("../node_modules/@stitches/react/types/theme").Token<"orange1", string, "colors", "">;
598
+ orange1Darker: import("../node_modules/@stitches/react/types/theme").Token<"orange1Darker", string, "colors", "">;
599
+ purple1: import("../node_modules/@stitches/react/types/theme").Token<"purple1", string, "colors", "">;
600
+ green1: import("../node_modules/@stitches/react/types/theme").Token<"green1", string, "colors", "">;
601
+ green1Darker: import("../node_modules/@stitches/react/types/theme").Token<"green1Darker", string, "colors", "">;
602
+ pink1: import("../node_modules/@stitches/react/types/theme").Token<"pink1", string, "colors", "">;
603
+ red1: import("../node_modules/@stitches/react/types/theme").Token<"red1", string, "colors", "">;
604
+ yellow1: import("../node_modules/@stitches/react/types/theme").Token<"yellow1", string, "colors", "">;
605
+ yellow2: import("../node_modules/@stitches/react/types/theme").Token<"yellow2", string, "colors", "">;
606
+ yellow3: import("../node_modules/@stitches/react/types/theme").Token<"yellow3", string, "colors", "">;
607
+ pinky1: import("../node_modules/@stitches/react/types/theme").Token<"pinky1", string, "colors", "">;
608
+ pinky2: import("../node_modules/@stitches/react/types/theme").Token<"pinky2", string, "colors", "">;
609
+ pinky3: import("../node_modules/@stitches/react/types/theme").Token<"pinky3", string, "colors", "">;
610
+ grey1: import("../node_modules/@stitches/react/types/theme").Token<"grey1", string, "colors", "">;
611
+ focusColor: import("../node_modules/@stitches/react/types/theme").Token<"focusColor", string, "colors", "">;
612
+ scrollbarsThumb: import("../node_modules/@stitches/react/types/theme").Token<"scrollbarsThumb", string, "colors", "">;
613
+ scrollbarsBg: import("../node_modules/@stitches/react/types/theme").Token<"scrollbarsBg", string, "colors", "">;
614
+ tableStripedBg: import("../node_modules/@stitches/react/types/theme").Token<"tableStripedBg", string, "colors", "">;
615
+ toolButtonText: import("../node_modules/@stitches/react/types/theme").Token<"toolButtonText", string, "colors", "">;
616
616
  };
617
617
  }, createTheme: <Argument0 extends string | ({
618
618
  colors?: {
@@ -753,7 +753,7 @@ declare const styled: <Type extends keyof JSX.IntrinsicElements | React.Componen
753
753
  })>(nameOrScalesArg0: Argument0, nameOrScalesArg1?: Argument1 | undefined) => string & {
754
754
  className: string;
755
755
  selector: string;
756
- } & (Argument0 extends string ? import("@stitches/react/types/stitches").ThemeTokens<Argument1, ""> : import("@stitches/react/types/stitches").ThemeTokens<Argument0, "">), config: {
756
+ } & (Argument0 extends string ? import("../node_modules/@stitches/react/types/stitches").ThemeTokens<Argument1, ""> : import("../node_modules/@stitches/react/types/stitches").ThemeTokens<Argument0, "">), config: {
757
757
  prefix: "";
758
758
  media: {};
759
759
  theme: {
@@ -820,7 +820,7 @@ declare const styled: <Type extends keyof JSX.IntrinsicElements | React.Componen
820
820
  toolButtonText: "#666e80";
821
821
  };
822
822
  };
823
- themeMap: import("@stitches/react/types/config").DefaultThemeMap;
823
+ themeMap: import("../node_modules/@stitches/react/types/config").DefaultThemeMap;
824
824
  utils: {
825
825
  mx: (value: string | number) => {
826
826
  marginLeft: string | number;
@@ -847,7 +847,7 @@ declare const styled: <Type extends keyof JSX.IntrinsicElements | React.Componen
847
847
  declare const darkTheme: string & {
848
848
  className: string;
849
849
  selector: string;
850
- } & import("@stitches/react/types/stitches").ThemeTokens<{
850
+ } & import("../node_modules/@stitches/react/types/stitches").ThemeTokens<{
851
851
  colors: {
852
852
  background: string;
853
853
  mainColor: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-miui",
3
- "version": "0.32.2",
3
+ "version": "0.33.0",
4
4
  "author": "Jacek Nowacki",
5
5
  "license": "MIT",
6
6
  "exports": {
@@ -18,37 +18,36 @@
18
18
  "@ezez/utils": "^3.0.0",
19
19
  "@stitches/react": "^1.2.8",
20
20
  "classnames": "^2.5.1",
21
- "oop-timers": "^5.1.0",
22
- "patch-package": "^8.0.0"
21
+ "oop-timers": "^5.2.1",
22
+ "sonner": "^2.0.7"
23
23
  },
24
24
  "devDependencies": {
25
- "@babel/core": "^7.26.0",
26
- "@babel/preset-env": "^7.26.0",
27
- "@babel/preset-typescript": "^7.26.0",
28
- "@ezez/eslint": "^9.39.3",
29
- "@ezez/hooks": "^2.2.0",
25
+ "@babel/core": "^7.29.0",
26
+ "@babel/preset-env": "^7.29.5",
27
+ "@babel/preset-typescript": "^7.28.5",
28
+ "@ezez/eslint": "^9.39.4",
29
+ "@ezez/hooks": "^2.3.1",
30
30
  "@icon-park/react": "^1.4.2",
31
- "@storybook/addon-docs": "^9.1.10",
32
- "@storybook/addon-onboarding": "^9.1.10",
33
- "@storybook/react-vite": "^9.1.10",
31
+ "@storybook/addon-docs": "^10.4.0",
32
+ "@storybook/addon-onboarding": "^10.4.0",
33
+ "@storybook/react-vite": "^10.4.0",
34
34
  "@types/jest": "^29.5.14",
35
- "@types/react": "^18.3.12",
36
- "@types/react-dom": "^18.3.1",
35
+ "@types/react": "^18.3.28",
36
+ "@types/react-dom": "^18.3.7",
37
37
  "babel-plugin-module-extension": "^0.1.3",
38
- "babel-plugin-module-resolver": "^5.0.2",
39
- "eslint-plugin-storybook": "^0.6.15",
40
- "jest": "^29.7.0",
38
+ "babel-plugin-module-resolver": "^5.0.3",
39
+ "eslint-plugin-storybook": "^10.4.0",
40
+ "jest": "^30.4.2",
41
41
  "must": "^0.13.4",
42
- "nodemon": "^3.1.9",
43
- "prettier": "^3.4.2",
42
+ "prettier": "^3.8.3",
44
43
  "react": "^18.3.1",
45
44
  "react-dom": "^18.3.1",
46
- "react-use": "^17.5.1",
45
+ "react-use": "^17.6.0",
47
46
  "resolve-tspaths": "^0.8.23",
48
- "storybook": "^9.1.10",
49
- "ts-node": "^10.9.2",
47
+ "storybook": "^10.4.0",
50
48
  "typedoc": "0.27.6",
51
- "typescript": "^5.7.3"
49
+ "typescript": "^5.9.3",
50
+ "vite": "^7.3.2"
52
51
  },
53
52
  "peerDependencies": {
54
53
  "react": "^18.2.0",