react-miui 0.28.0 → 0.28.2

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 (262) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/components/form/ColorPicker.js +1 -3
  3. package/dist/components/form/ColorPicker.js.map +1 -1
  4. package/dist/components/form/choice/Choice.d.ts +4 -4
  5. package/dist/components/form/choice/Choice.d.ts.map +1 -1
  6. package/dist/components/form/choice/Choice.js.map +1 -1
  7. package/dist/components/form/input/Input.d.ts +1 -1
  8. package/dist/components/form/input/Input.d.ts.map +1 -1
  9. package/dist/components/form/input/Input.js +3 -2
  10. package/dist/components/form/input/Input.js.map +1 -1
  11. package/dist/components/utils/Spacer.d.ts +83 -4
  12. package/dist/components/utils/Spacer.d.ts.map +1 -1
  13. package/dist/components/utils/Spacer.js +2 -8
  14. package/dist/components/utils/Spacer.js.map +1 -1
  15. package/dist/components/utils/colors.d.ts.map +1 -1
  16. package/dist/components/utils/colors.js +1 -1
  17. package/dist/components/utils/colors.js.map +1 -1
  18. package/docs/classes/Drawer.html +14 -14
  19. package/docs/classes/Pop.html +14 -14
  20. package/docs/classes/ToasterProvider.html +10 -10
  21. package/docs/enums/ICON.html +14 -14
  22. package/docs/functions/Action.html +4 -4
  23. package/docs/functions/Button.html +4 -4
  24. package/docs/functions/Card.html +4 -4
  25. package/docs/functions/Checkbox.html +4 -4
  26. package/docs/functions/Choice.html +13 -12
  27. package/docs/functions/ColorPicker.html +4 -4
  28. package/docs/functions/CoveringLoader.html +4 -4
  29. package/docs/functions/DirectionPad.html +4 -4
  30. package/docs/functions/EqualActions.html +4 -4
  31. package/docs/functions/FullLoader.html +4 -4
  32. package/docs/functions/HandleEsc.html +4 -4
  33. package/docs/functions/Header.html +4 -4
  34. package/docs/functions/HeaderIconAction.html +4 -4
  35. package/docs/functions/Icon-1.html +4 -4
  36. package/docs/functions/If.html +4 -4
  37. package/docs/functions/Input.html +8 -10
  38. package/docs/functions/KeyValue.html +4 -4
  39. package/docs/functions/Label.html +4 -4
  40. package/docs/functions/Line.html +4 -4
  41. package/docs/functions/List-1.html +4 -4
  42. package/docs/functions/Loader.html +4 -4
  43. package/docs/functions/Loading.html +4 -4
  44. package/docs/functions/Message.html +4 -4
  45. package/docs/functions/Modal-1.html +4 -4
  46. package/docs/functions/ModalButtons.html +4 -4
  47. package/docs/functions/PopLoader.html +4 -4
  48. package/docs/functions/PopOption.html +4 -4
  49. package/docs/functions/Progress.html +4 -4
  50. package/docs/functions/SearchContainer.html +4 -4
  51. package/docs/functions/Section.html +4 -4
  52. package/docs/functions/Select.html +4 -4
  53. package/docs/functions/Selector.html +5 -5
  54. package/docs/functions/Spacer.html +35 -12
  55. package/docs/functions/Stats.html +4 -4
  56. package/docs/functions/StickyHeader.html +4 -4
  57. package/docs/functions/Table.html +4 -4
  58. package/docs/functions/TextArea.html +4 -4
  59. package/docs/functions/Toggle.html +4 -4
  60. package/docs/functions/ToolButton.html +4 -4
  61. package/docs/functions/borderPxToRem.html +5 -5
  62. package/docs/functions/createTheme.html +4 -4
  63. package/docs/functions/css.html +4 -4
  64. package/docs/functions/dimensionsPxToRem.html +5 -5
  65. package/docs/functions/fontPxToRem.html +5 -5
  66. package/docs/functions/getCssText.html +4 -4
  67. package/docs/functions/globalCss.html +4 -4
  68. package/docs/functions/keyframes.html +4 -4
  69. package/docs/functions/pxToRem.html +5 -5
  70. package/docs/functions/styled.html +4 -4
  71. package/docs/functions/useToaster.html +5 -5
  72. package/docs/index.html +4 -4
  73. package/docs/interfaces/IconProps.html +7 -7
  74. package/docs/interfaces/InputCustomProps.html +11 -11
  75. package/docs/interfaces/LabelProps.html +8 -8
  76. package/docs/interfaces/StickyHeaderProps.html +9 -9
  77. package/docs/interfaces/ToggleProps.html +10 -10
  78. package/docs/modules/List.html +7 -7
  79. package/docs/modules/Modal.html +6 -6
  80. package/docs/modules.html +4 -4
  81. package/docs/pages/tutorials/Test.html +4 -4
  82. package/docs/types/ActionProps.html +5 -5
  83. package/docs/types/ChoiceProps.html +7 -12
  84. package/docs/types/InputProps.html +5 -5
  85. package/docs/types/OverwriteProps.html +5 -5
  86. package/docs/types/ThemeCSS.html +5 -5
  87. package/docs/variables/List.Header.html +5 -5
  88. package/docs/variables/List.Item.html +5 -5
  89. package/docs/variables/Modal.RemovePadding.html +5 -5
  90. package/docs/variables/config.html +5 -5
  91. package/docs/variables/cssReset.html +5 -5
  92. package/docs/variables/miuiScrollbars.html +5 -5
  93. package/docs/variables/theme.html +5 -5
  94. package/esm/components/form/Checkbox.stories.d.ts +9 -0
  95. package/esm/components/form/Checkbox.stories.d.ts.map +1 -0
  96. package/esm/components/form/Checkbox.stories.js +80 -0
  97. package/esm/components/form/Checkbox.stories.js.map +1 -0
  98. package/esm/components/form/ColorPicker.js +1 -3
  99. package/esm/components/form/ColorPicker.js.map +1 -1
  100. package/esm/components/form/ColorPicker.stories.d.ts +10 -0
  101. package/esm/components/form/ColorPicker.stories.d.ts.map +1 -0
  102. package/esm/components/form/ColorPicker.stories.js +75 -0
  103. package/esm/components/form/ColorPicker.stories.js.map +1 -0
  104. package/esm/components/form/Label.stories.d.ts +11 -0
  105. package/esm/components/form/Label.stories.d.ts.map +1 -0
  106. package/esm/components/form/Label.stories.js +43 -0
  107. package/esm/components/form/Label.stories.js.map +1 -0
  108. package/esm/components/form/Select.stories.d.ts +8 -0
  109. package/esm/components/form/Select.stories.d.ts.map +1 -0
  110. package/esm/components/form/Select.stories.js +24 -0
  111. package/esm/components/form/Select.stories.js.map +1 -0
  112. package/esm/components/form/Toggle.stories.d.ts +14 -0
  113. package/esm/components/form/Toggle.stories.d.ts.map +1 -0
  114. package/esm/components/form/Toggle.stories.js +76 -0
  115. package/esm/components/form/Toggle.stories.js.map +1 -0
  116. package/esm/components/form/choice/Choice.d.ts +4 -4
  117. package/esm/components/form/choice/Choice.d.ts.map +1 -1
  118. package/esm/components/form/choice/Choice.js.map +1 -1
  119. package/esm/components/form/choice/Choice.stories.d.ts +10 -0
  120. package/esm/components/form/choice/Choice.stories.d.ts.map +1 -0
  121. package/esm/components/form/choice/Choice.stories.js +80 -0
  122. package/esm/components/form/choice/Choice.stories.js.map +1 -0
  123. package/esm/components/form/input/Input.d.ts +1 -1
  124. package/esm/components/form/input/Input.d.ts.map +1 -1
  125. package/esm/components/form/input/Input.js +3 -2
  126. package/esm/components/form/input/Input.js.map +1 -1
  127. package/esm/components/form/input/Input.stories.d.ts +10 -0
  128. package/esm/components/form/input/Input.stories.d.ts.map +1 -0
  129. package/esm/components/form/input/Input.stories.js +53 -0
  130. package/esm/components/form/input/Input.stories.js.map +1 -0
  131. package/esm/components/form/textarea/TextArea.stories.d.ts +8 -0
  132. package/esm/components/form/textarea/TextArea.stories.d.ts.map +1 -0
  133. package/esm/components/form/textarea/TextArea.stories.js +19 -0
  134. package/esm/components/form/textarea/TextArea.stories.js.map +1 -0
  135. package/esm/components/layout/header/Header.stories.d.ts +11 -0
  136. package/esm/components/layout/header/Header.stories.d.ts.map +1 -0
  137. package/esm/components/layout/header/Header.stories.js +56 -0
  138. package/esm/components/layout/header/Header.stories.js.map +1 -0
  139. package/esm/components/layout/header/HeaderIconAction.stories.d.ts +9 -0
  140. package/esm/components/layout/header/HeaderIconAction.stories.d.ts.map +1 -0
  141. package/esm/components/layout/header/HeaderIconAction.stories.js +24 -0
  142. package/esm/components/layout/header/HeaderIconAction.stories.js.map +1 -0
  143. package/esm/components/layout/header/StickyHeader.stories.d.ts +9 -0
  144. package/esm/components/layout/header/StickyHeader.stories.d.ts.map +1 -0
  145. package/esm/components/layout/header/StickyHeader.stories.js +60 -0
  146. package/esm/components/layout/header/StickyHeader.stories.js.map +1 -0
  147. package/esm/components/layout/list/Header.stories.d.ts +8 -0
  148. package/esm/components/layout/list/Header.stories.d.ts.map +1 -0
  149. package/esm/components/layout/list/Header.stories.js +27 -0
  150. package/esm/components/layout/list/Header.stories.js.map +1 -0
  151. package/esm/components/layout/list/Item.stories.d.ts +11 -0
  152. package/esm/components/layout/list/Item.stories.d.ts.map +1 -0
  153. package/esm/components/layout/list/Item.stories.js +100 -0
  154. package/esm/components/layout/list/Item.stories.js.map +1 -0
  155. package/esm/components/layout/list/Label.stories.d.ts +8 -0
  156. package/esm/components/layout/list/Label.stories.d.ts.map +1 -0
  157. package/esm/components/layout/list/Label.stories.js +29 -0
  158. package/esm/components/layout/list/Label.stories.js.map +1 -0
  159. package/esm/components/layout/list/List.stories.d.ts +9 -0
  160. package/esm/components/layout/list/List.stories.d.ts.map +1 -0
  161. package/esm/components/layout/list/List.stories.js +46 -0
  162. package/esm/components/layout/list/List.stories.js.map +1 -0
  163. package/esm/components/layout/list/Value.stories.d.ts +8 -0
  164. package/esm/components/layout/list/Value.stories.d.ts.map +1 -0
  165. package/esm/components/layout/list/Value.stories.js +23 -0
  166. package/esm/components/layout/list/Value.stories.js.map +1 -0
  167. package/esm/components/layout/section/Section.stories.d.ts +8 -0
  168. package/esm/components/layout/section/Section.stories.d.ts.map +1 -0
  169. package/esm/components/layout/section/Section.stories.js +31 -0
  170. package/esm/components/layout/section/Section.stories.js.map +1 -0
  171. package/esm/components/layout/table/Table.stories.d.ts +8 -0
  172. package/esm/components/layout/table/Table.stories.d.ts.map +1 -0
  173. package/esm/components/layout/table/Table.stories.js +49 -0
  174. package/esm/components/layout/table/Table.stories.js.map +1 -0
  175. package/esm/components/ui/action/Action.stories.d.ts +11 -0
  176. package/esm/components/ui/action/Action.stories.d.ts.map +1 -0
  177. package/esm/components/ui/action/Action.stories.js +58 -0
  178. package/esm/components/ui/action/Action.stories.js.map +1 -0
  179. package/esm/components/ui/button/Button.stories.d.ts +9 -0
  180. package/esm/components/ui/button/Button.stories.d.ts.map +1 -0
  181. package/esm/components/ui/button/Button.stories.js +35 -0
  182. package/esm/components/ui/button/Button.stories.js.map +1 -0
  183. package/esm/components/ui/line/Line.stories.d.ts +8 -0
  184. package/esm/components/ui/line/Line.stories.d.ts.map +1 -0
  185. package/esm/components/ui/line/Line.stories.js +27 -0
  186. package/esm/components/ui/line/Line.stories.js.map +1 -0
  187. package/esm/components/ui/loader/CoveringLoader.stories.d.ts +8 -0
  188. package/esm/components/ui/loader/CoveringLoader.stories.d.ts.map +1 -0
  189. package/esm/components/ui/loader/CoveringLoader.stories.js +25 -0
  190. package/esm/components/ui/loader/CoveringLoader.stories.js.map +1 -0
  191. package/esm/components/ui/loader/FullLoader.stories.d.ts +8 -0
  192. package/esm/components/ui/loader/FullLoader.stories.d.ts.map +1 -0
  193. package/esm/components/ui/loader/FullLoader.stories.js +19 -0
  194. package/esm/components/ui/loader/FullLoader.stories.js.map +1 -0
  195. package/esm/components/ui/loader/Loader.stories.d.ts +8 -0
  196. package/esm/components/ui/loader/Loader.stories.d.ts.map +1 -0
  197. package/esm/components/ui/loader/Loader.stories.js +23 -0
  198. package/esm/components/ui/loader/Loader.stories.js.map +1 -0
  199. package/esm/components/ui/loader/Loading.stories.d.ts +8 -0
  200. package/esm/components/ui/loader/Loading.stories.d.ts.map +1 -0
  201. package/esm/components/ui/loader/Loading.stories.js +32 -0
  202. package/esm/components/ui/loader/Loading.stories.js.map +1 -0
  203. package/esm/components/ui/loader/PopLoader.stories.d.ts +8 -0
  204. package/esm/components/ui/loader/PopLoader.stories.d.ts.map +1 -0
  205. package/esm/components/ui/loader/PopLoader.stories.js +24 -0
  206. package/esm/components/ui/loader/PopLoader.stories.js.map +1 -0
  207. package/esm/components/ui/message/Message.stories.d.ts +9 -0
  208. package/esm/components/ui/message/Message.stories.d.ts.map +1 -0
  209. package/esm/components/ui/message/Message.stories.js +43 -0
  210. package/esm/components/ui/message/Message.stories.js.map +1 -0
  211. package/esm/components/ui/modal/Modal.stories.d.ts +10 -0
  212. package/esm/components/ui/modal/Modal.stories.d.ts.map +1 -0
  213. package/esm/components/ui/modal/Modal.stories.js +84 -0
  214. package/esm/components/ui/modal/Modal.stories.js.map +1 -0
  215. package/esm/components/ui/modal/ModalButtons.stories.d.ts +8 -0
  216. package/esm/components/ui/modal/ModalButtons.stories.d.ts.map +1 -0
  217. package/esm/components/ui/modal/ModalButtons.stories.js +19 -0
  218. package/esm/components/ui/modal/ModalButtons.stories.js.map +1 -0
  219. package/esm/components/ui/pop/Pop.stories.d.ts +8 -0
  220. package/esm/components/ui/pop/Pop.stories.d.ts.map +1 -0
  221. package/esm/components/ui/pop/Pop.stories.js +65 -0
  222. package/esm/components/ui/pop/Pop.stories.js.map +1 -0
  223. package/esm/components/ui/progress/Progress.stories.d.ts +9 -0
  224. package/esm/components/ui/progress/Progress.stories.d.ts.map +1 -0
  225. package/esm/components/ui/progress/Progress.stories.js +29 -0
  226. package/esm/components/ui/progress/Progress.stories.js.map +1 -0
  227. package/esm/components/ui/toaster/Toaster.stories.d.ts +7 -0
  228. package/esm/components/ui/toaster/Toaster.stories.d.ts.map +1 -0
  229. package/esm/components/ui/toaster/Toaster.stories.js +39 -0
  230. package/esm/components/ui/toaster/Toaster.stories.js.map +1 -0
  231. package/esm/components/ui/toolButton/ToolButton.stories.d.ts +8 -0
  232. package/esm/components/ui/toolButton/ToolButton.stories.d.ts.map +1 -0
  233. package/esm/components/ui/toolButton/ToolButton.stories.js +29 -0
  234. package/esm/components/ui/toolButton/ToolButton.stories.js.map +1 -0
  235. package/esm/components/utils/Spacer.d.ts +83 -4
  236. package/esm/components/utils/Spacer.d.ts.map +1 -1
  237. package/esm/components/utils/Spacer.js +2 -5
  238. package/esm/components/utils/Spacer.js.map +1 -1
  239. package/esm/components/utils/colors.d.ts.map +1 -1
  240. package/esm/components/utils/colors.js +1 -1
  241. package/esm/components/utils/colors.js.map +1 -1
  242. package/package.json +1 -1
  243. package/src/components/form/ColorPicker.tsx +3 -3
  244. package/src/components/form/Label.styled.ts +1 -1
  245. package/src/components/form/choice/Choice.tsx +6 -6
  246. package/src/components/form/input/Input.stories.tsx +22 -2
  247. package/src/components/form/input/Input.tsx +8 -2
  248. package/src/components/ui/pop/Pop.stories.tsx +0 -1
  249. package/src/components/utils/Spacer.tsx +2 -8
  250. package/src/components/utils/colors.ts +3 -1
  251. package/src/demo/Main.tsx +1 -1
  252. package/dist/components/utils/Spacer.module.scss +0 -3
  253. package/esm/components/utils/Spacer.module.scss +0 -3
  254. package/src/components/form/choice/Choice.js +0 -32
  255. package/src/components/form/choice/Choice.styled.js +0 -65
  256. package/src/components/utils/Spacer.module.scss +0 -3
  257. package/src/theme.js +0 -98
  258. package/src/types/form.js +0 -2
  259. package/src/utils/index.js +0 -19
  260. package/src/utils/makeVariants.js +0 -13
  261. package/src/utils/toObjectValue.js +0 -7
  262. package/src/utils/useKeyPress.js +0 -29
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ import { FullLoader } from "./FullLoader.js";
3
+ const meta = {
4
+ title: "Components/UI/Loader/FullLoader",
5
+ component: FullLoader,
6
+ tags: ["autodocs", "ui"],
7
+ };
8
+ const Primary = {
9
+ args: {},
10
+ render: () => {
11
+ return (React.createElement(React.Fragment, null,
12
+ "Container:",
13
+ React.createElement("div", { style: { border: "1px solid black", width: 300, height: 300 } },
14
+ React.createElement(FullLoader, null))));
15
+ },
16
+ };
17
+ export { Primary, };
18
+ export default meta;
19
+ //# sourceMappingURL=FullLoader.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FullLoader.stories.js","sourceRoot":"","sources":["../../../../src/components/ui/loader/FullLoader.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,iCAAiC;IACxC,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,CAAC,UAAU,EAAE,IAAI,CAAC;CAC3B,CAAC;AAIF,MAAM,OAAO,GAAU;IACnB,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,GAAG,EAAE;QACT,OAAO,CACH;;YAEI,6BAAK,KAAK,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE;gBAC9D,oBAAC,UAAU,OAAG,CACZ,CACP,CACN,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,OAAO,EACH,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { Loader } from "./Loader";
3
+ declare const meta: Meta<typeof Loader>;
4
+ type Story = StoryObj<typeof Loader>;
5
+ declare const Primary: Story;
6
+ export { Primary, };
7
+ export default meta;
8
+ //# sourceMappingURL=Loader.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Loader.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/loader/Loader.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAY7B,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAErC,QAAA,MAAM,OAAO,EAAE,KAKd,CAAC;AAEF,OAAO,EACH,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { Loader } from "./Loader.js";
2
+ const meta = {
3
+ title: "Components/UI/Loader/Basic",
4
+ component: Loader,
5
+ tags: ["autodocs", "ui"],
6
+ argTypes: {
7
+ show: {
8
+ type: "boolean",
9
+ },
10
+ size: {
11
+ type: "string",
12
+ },
13
+ },
14
+ };
15
+ const Primary = {
16
+ args: {
17
+ size: 32,
18
+ show: true,
19
+ },
20
+ };
21
+ export { Primary, };
22
+ export default meta;
23
+ //# sourceMappingURL=Loader.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Loader.stories.js","sourceRoot":"","sources":["../../../../src/components/ui/loader/Loader.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,IAAI,GAAwB;IAC9B,KAAK,EAAE,4BAA4B;IACnC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,CAAC,UAAU,EAAE,IAAI,CAAC;IACxB,QAAQ,EAAE;QACN,IAAI,EAAE;YACF,IAAI,EAAE,SAAS;SAClB;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;SACjB;KACJ;CACJ,CAAC;AAIF,MAAM,OAAO,GAAU;IACnB,IAAI,EAAE;QACF,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,IAAI;KACb;CACJ,CAAC;AAEF,OAAO,EACH,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { StoryObj, Meta } from "@storybook/react";
2
+ import { Loading } from "./Loading";
3
+ declare const meta: Meta;
4
+ type Story = StoryObj<typeof Loading>;
5
+ declare const Primary: Story;
6
+ export { Primary, };
7
+ export default meta;
8
+ //# sourceMappingURL=Loading.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Loading.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/loader/Loading.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,QAAA,MAAM,IAAI,EAAE,IAYX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;AAMtC,QAAA,MAAM,OAAO,EAAE,KAcd,CAAC;AAEF,OAAO,EACH,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,32 @@
1
+ import React from "react";
2
+ import { styled } from "../../../theme.js";
3
+ import { Loading } from "./Loading.js";
4
+ const meta = {
5
+ title: "Components/UI/Loader/Loading",
6
+ component: Loading,
7
+ tags: ["autodocs", "ui"],
8
+ argTypes: {
9
+ data: {
10
+ type: "boolean",
11
+ },
12
+ isLoading: {
13
+ type: "boolean",
14
+ },
15
+ },
16
+ };
17
+ const Container = styled("div", {
18
+ border: "1px solid black", background: "#ddd", width: 300, height: 300, position: "relative",
19
+ });
20
+ const Primary = {
21
+ args: {
22
+ isLoading: false,
23
+ data: true,
24
+ },
25
+ render: (args) => {
26
+ return (React.createElement(Container, null,
27
+ React.createElement(Loading, { isLoading: Boolean(args.isLoading), data: args.data }, "Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quibusdam.")));
28
+ },
29
+ };
30
+ export { Primary, };
31
+ export default meta;
32
+ //# sourceMappingURL=Loading.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Loading.stories.js","sourceRoot":"","sources":["../../../../src/components/ui/loader/Loading.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,8BAA8B;IACrC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,CAAC,UAAU,EAAE,IAAI,CAAC;IACxB,QAAQ,EAAE;QACN,IAAI,EAAE;YACF,IAAI,EAAE,SAAS;SAClB;QACD,SAAS,EAAE;YACP,IAAI,EAAE,SAAS;SAClB;KACJ;CACJ,CAAC;AAIF,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,EAAE;IAC5B,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,UAAU;CAC/F,CAAC,CAAC;AAEH,MAAM,OAAO,GAAU;IACnB,IAAI,EAAE;QACF,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,IAAI;KACb;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACb,OAAO,CACH,oBAAC,SAAS;YACN,oBAAC,OAAO,IAAC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,oFAElD,CACF,CACf,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,OAAO,EACH,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { StoryObj, Meta } from "@storybook/react";
2
+ import { PopLoader } from "./PopLoader";
3
+ declare const meta: Meta;
4
+ type Story = StoryObj<typeof PopLoader>;
5
+ declare const Primary: Story;
6
+ export { Primary, };
7
+ export default meta;
8
+ //# sourceMappingURL=PopLoader.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopLoader.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/loader/PopLoader.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,QAAA,MAAM,IAAI,EAAE,IAIX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAMxC,QAAA,MAAM,OAAO,EAAE,KAWd,CAAC;AAEF,OAAO,EACH,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ import { styled } from "../../../theme.js";
3
+ import { PopLoader } from "./PopLoader.js";
4
+ const meta = {
5
+ title: "Components/UI/Loader/PopLoader",
6
+ component: PopLoader,
7
+ tags: ["autodocs", "ui"],
8
+ };
9
+ const Container = styled("div", {
10
+ border: "1px solid black", background: "#ddd", width: 300, height: 300, position: "relative",
11
+ });
12
+ const Primary = {
13
+ args: {},
14
+ render: () => {
15
+ return (React.createElement(Container, null,
16
+ React.createElement(PopLoader, null),
17
+ "content, content,",
18
+ React.createElement("br", null),
19
+ "content, content"));
20
+ },
21
+ };
22
+ export { Primary, };
23
+ export default meta;
24
+ //# sourceMappingURL=PopLoader.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopLoader.stories.js","sourceRoot":"","sources":["../../../../src/components/ui/loader/PopLoader.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,gCAAgC;IACvC,SAAS,EAAE,SAAS;IACpB,IAAI,EAAE,CAAC,UAAU,EAAE,IAAI,CAAC;CAC3B,CAAC;AAIF,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,EAAE;IAC5B,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,UAAU;CAC/F,CAAC,CAAC;AAEH,MAAM,OAAO,GAAU;IACnB,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,GAAG,EAAE;QACT,OAAO,CACH,oBAAC,SAAS;YACN,oBAAC,SAAS,OAAG;;YACI,+BAAM;+BAEf,CACf,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,OAAO,EACH,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { Message } from "./Message";
3
+ declare const meta: Meta<typeof Message>;
4
+ type Story = StoryObj<typeof Message>;
5
+ declare const Primary: Story;
6
+ declare const MultipleAtOnce: Story;
7
+ export { Primary, MultipleAtOnce, };
8
+ export default meta;
9
+ //# sourceMappingURL=Message.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Message.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/message/Message.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,OAAO,CAiB9B,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;AAEtC,QAAA,MAAM,OAAO,EAAE,KAId,CAAC;AAQF,QAAA,MAAM,cAAc,EAAE,KAYrB,CAAC;AAEF,OAAO,EACH,OAAO,EACP,cAAc,GACjB,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,43 @@
1
+ import React from "react";
2
+ import { styled } from "../../../theme.js";
3
+ import { Message } from "./Message.js";
4
+ const meta = {
5
+ title: "Components/UI/Message",
6
+ component: Message,
7
+ tags: ["autodocs", "ui"],
8
+ argTypes: {
9
+ children: {
10
+ control: { type: "text" },
11
+ type: "string",
12
+ defaultValue: "This is an example message.",
13
+ },
14
+ type: {
15
+ options: ["tip", "warning", "error", "info"],
16
+ },
17
+ variant: {
18
+ options: ["stretch", "box"],
19
+ },
20
+ },
21
+ };
22
+ const Primary = {
23
+ args: {
24
+ children: "This is an example message.",
25
+ },
26
+ };
27
+ const Container = styled("div", {
28
+ display: "flex",
29
+ flexDirection: "column",
30
+ gap: 10,
31
+ });
32
+ const MultipleAtOnce = {
33
+ render: () => (React.createElement(Container, null,
34
+ React.createElement(Message, { type: "warning" }, "Files will be deleted after 30 days."),
35
+ React.createElement(Message, { type: "error" }, "Files cannot be deleted."),
36
+ React.createElement(Message, { type: "info" }, "These files got deleted."),
37
+ React.createElement(Message, { type: "warning", variant: "box" }, "Files will be deleted after 30 days."),
38
+ React.createElement(Message, { type: "error", variant: "box" }, "Files cannot be deleted."),
39
+ React.createElement(Message, { type: "info", variant: "box" }, "These files got deleted."))),
40
+ };
41
+ export { Primary, MultipleAtOnce, };
42
+ export default meta;
43
+ //# sourceMappingURL=Message.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Message.stories.js","sourceRoot":"","sources":["../../../../src/components/ui/message/Message.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,IAAI,GAAyB;IAC/B,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,CAAC,UAAU,EAAE,IAAI,CAAC;IACxB,QAAQ,EAAE;QACN,QAAQ,EAAE;YACN,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACzB,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,6BAA6B;SAC9C;QACD,IAAI,EAAE;YACF,OAAO,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC;SAC/C;QACD,OAAO,EAAE;YACL,OAAO,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC;SAC9B;KACJ;CACJ,CAAC;AAIF,MAAM,OAAO,GAAU;IACnB,IAAI,EAAE;QACF,QAAQ,EAAE,6BAA6B;KAC1C;CACJ,CAAC;AAEF,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,EAAE;IAC5B,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,QAAQ;IACvB,GAAG,EAAE,EAAE;CACV,CAAC,CAAC;AAEH,MAAM,cAAc,GAAU;IAC1B,MAAM,EAAE,GAAG,EAAE,CAAC,CACV,oBAAC,SAAS;QACN,oBAAC,OAAO,IAAC,IAAI,EAAE,SAAS,2CAAgD;QACxE,oBAAC,OAAO,IAAC,IAAI,EAAE,OAAO,+BAAoC;QAC1D,oBAAC,OAAO,IAAC,IAAI,EAAE,MAAM,+BAAoC;QAEzD,oBAAC,OAAO,IAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,2CAAgD;QACxF,oBAAC,OAAO,IAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,+BAAoC;QAC1E,oBAAC,OAAO,IAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,+BAAoC,CACjE,CACf;CACJ,CAAC;AAEF,OAAO,EACH,OAAO,EACP,cAAc,GACjB,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { StoryObj, Meta } from "@storybook/react";
2
+ import { Modal } from "./Modal";
3
+ declare const meta: Meta;
4
+ type Story = StoryObj<typeof Modal>;
5
+ declare const Primary: Story;
6
+ declare const WithRemovedPaddingSections: Story;
7
+ declare const WithList: Story;
8
+ export { Primary, WithRemovedPaddingSections, WithList, };
9
+ export default meta;
10
+ //# sourceMappingURL=Modal.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Modal.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/modal/Modal.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAQvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAIhC,QAAA,MAAM,IAAI,EAAE,IAIX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAIpC,QAAA,MAAM,OAAO,EAAE,KAsCd,CAAC;AAEF,QAAA,MAAM,0BAA0B,EAAE,KAmCjC,CAAC;AAKF,QAAA,MAAM,QAAQ,EAAE,KA8Bf,CAAC;AAEF,OAAO,EACH,OAAO,EACP,0BAA0B,EAC1B,QAAQ,GACX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,84 @@
1
+ import React, { useCallback, useState } from "react";
2
+ import { Button } from "../button/Button.js";
3
+ import { Label } from "../../form/Label.js";
4
+ import { Input } from "../../form/input/Input.js";
5
+ import { Checkbox } from "../../form/Checkbox.js";
6
+ import { List } from "../../layout/list/List.js";
7
+ import { Modal } from "./Modal.js";
8
+ import { ModalButtons } from "./ModalButtons.js";
9
+ import { RemovePadding } from "./Modal.styled.js";
10
+ const meta = {
11
+ title: "Components/UI/Modal",
12
+ component: Modal,
13
+ tags: ["autodocs", "ui"],
14
+ };
15
+ const handleNoop = () => undefined;
16
+ const Primary = {
17
+ args: {},
18
+ render: () => {
19
+ const [open, setIsOpen] = useState(false);
20
+ const handleClose = useCallback(() => {
21
+ setIsOpen(false);
22
+ }, []);
23
+ const handleOpen = useCallback(() => {
24
+ setIsOpen(true);
25
+ }, []);
26
+ return (React.createElement("div", null,
27
+ React.createElement(Button, { onClick: handleOpen }, "Open modal"),
28
+ React.createElement(Modal, { onClose: handleClose, isOpen: open, title: "95.5 MHz", position: "bottom", full: true },
29
+ React.createElement(Label, null,
30
+ React.createElement(Input, { placeholder: "New station" })),
31
+ React.createElement(Label, null,
32
+ React.createElement(Checkbox, { name: "", onChange: handleNoop, checked: true }, "Remember me")),
33
+ React.createElement(ModalButtons, null,
34
+ React.createElement(ModalButtons.Button, { onClick: handleClose }, "Cancel"),
35
+ React.createElement(ModalButtons.Button, { variant: "main", onClick: handleClose }, "Ok")))));
36
+ },
37
+ };
38
+ const WithRemovedPaddingSections = {
39
+ args: {},
40
+ render: () => {
41
+ const [open, setIsOpen] = useState(false);
42
+ const handleClose = useCallback(() => {
43
+ setIsOpen(false);
44
+ }, []);
45
+ const handleOpen = useCallback(() => {
46
+ setIsOpen(true);
47
+ }, []);
48
+ return (React.createElement("div", null,
49
+ React.createElement(Button, { onClick: handleOpen }, "Open modal"),
50
+ React.createElement(Modal, { onClose: handleClose, isOpen: open, position: "bottom", full: true },
51
+ React.createElement(RemovePadding, null,
52
+ React.createElement(Label, null,
53
+ React.createElement(Input, { placeholder: "New station" }))),
54
+ React.createElement(Label, null,
55
+ React.createElement(Input, { placeholder: "New station" })),
56
+ React.createElement(RemovePadding, null,
57
+ React.createElement(Label, null,
58
+ React.createElement(Input, { placeholder: "New station" }))))));
59
+ },
60
+ };
61
+ const WithList = {
62
+ args: {},
63
+ render: () => {
64
+ const [open, setIsOpen] = useState(false);
65
+ const handleClose = useCallback(() => {
66
+ setIsOpen(false);
67
+ }, []);
68
+ const handleOpen = useCallback(() => {
69
+ setIsOpen(true);
70
+ }, []);
71
+ return (React.createElement("div", null,
72
+ React.createElement(Button, { onClick: handleOpen }, "Open modal"),
73
+ React.createElement(Modal, { onClose: handleClose, isOpen: open, position: "bottom", full: true },
74
+ React.createElement(RemovePadding, null,
75
+ React.createElement(List, { inset: true },
76
+ React.createElement(List.Item, { selected: false, onClick: handleClose }, "First item"),
77
+ React.createElement(List.Item, { selected: true, onClick: handleClose }, "Second item"),
78
+ React.createElement(List.Item, { selected: false, onClick: handleClose }, "Third item"),
79
+ React.createElement(List.Item, { selected: false, onClick: handleClose }, "Last option"))))));
80
+ },
81
+ };
82
+ export { Primary, WithRemovedPaddingSections, WithList, };
83
+ export default meta;
84
+ //# sourceMappingURL=Modal.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Modal.stories.js","sourceRoot":"","sources":["../../../../src/components/ui/modal/Modal.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAIrD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CA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CAAC;QACrB,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,EAAE;YAChC,SAAS,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,OAAO,CACH;YACI,oBAAC,MAAM,IAAC,OAAO,EAAE,UAAU,iBAAqB;YAChD,oBAAC,KAAK,IAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI;gBACrE,oBAAC,aAAa;oBACV,oBAAC,IAAI,IAAC,KAAK,EAAE,IAAI;wBACb,oBAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,iBAAwB;wBACxE,oBAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,kBAAyB;wBACxE,oBAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,iBAAwB;wBACxE,oBAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,kBAAyB,CACtE,CACK,CACZ,CACN,CACT,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,OAAO,EACH,OAAO,EACP,0BAA0B,EAC1B,QAAQ,GACX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { StoryObj, Meta } from "@storybook/react";
2
+ import { ModalButtons } from "./ModalButtons";
3
+ declare const meta: Meta;
4
+ type Story = StoryObj<typeof ModalButtons>;
5
+ declare const Primary: Story;
6
+ export { Primary, };
7
+ export default meta;
8
+ //# sourceMappingURL=ModalButtons.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalButtons.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalButtons.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,QAAA,MAAM,IAAI,EAAE,IAIX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3C,QAAA,MAAM,OAAO,EAAE,KAkBd,CAAC;AAEF,OAAO,EACH,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ import { ModalButtons } from "./ModalButtons.js";
3
+ import { Modal } from "./Modal.js";
4
+ const meta = {
5
+ title: "Components/UI/ModalButtons",
6
+ component: ModalButtons,
7
+ tags: ["autodocs", "ui"],
8
+ };
9
+ const Primary = {
10
+ args: {},
11
+ render: () => (React.createElement(Modal, { onClose: () => null, isOpen: true, title: "System message" },
12
+ React.createElement("div", null, "Check out these pretty buttons. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec consectetur, diam eget aliquam tincidunt, diam nisl ultrices velit, nec aliquet nunc diam eget."),
13
+ React.createElement(ModalButtons, null,
14
+ React.createElement(ModalButtons.Button, { onClick: () => null }, "Cancel"),
15
+ React.createElement(ModalButtons.Button, { variant: "main", onClick: () => null }, "Ok")))),
16
+ };
17
+ export { Primary, };
18
+ export default meta;
19
+ //# sourceMappingURL=ModalButtons.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalButtons.stories.js","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalButtons.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,4BAA4B;IACnC,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,CAAC,UAAU,EAAE,IAAI,CAAC;CAC3B,CAAC;AAIF,MAAM,OAAO,GAAU;IACnB,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,GAAG,EAAE,CAAC,CACV,oBAAC,KAAK,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,gBAAgB;QAC7D,kOAGM;QACN,oBAAC,YAAY;YACT,oBAAC,YAAY,CAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,aAElB;YACtB,oBAAC,YAAY,CAAC,MAAM,IAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,SAEnC,CACX,CACX,CACX;CACJ,CAAC;AAEF,OAAO,EACH,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { Pop } from "./Pop";
3
+ declare const meta: Meta;
4
+ type Story = StoryObj<typeof Pop>;
5
+ declare const Primary: Story;
6
+ export default meta;
7
+ export { Primary, };
8
+ //# sourceMappingURL=Pop.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pop.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/pop/Pop.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAQvD,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,QAAA,MAAM,IAAI,EAAE,IAUX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,GAAG,CAAC,CAAC;AAMlC,QAAA,MAAM,OAAO,EAAE,KA+Dd,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,OAAO,EACH,OAAO,GACV,CAAC"}
@@ -0,0 +1,65 @@
1
+ import React, { useCallback, useState } from "react";
2
+ import { SunOne } from "@icon-park/react";
3
+ import { HeaderIconAction } from "../../layout/header/HeaderIconAction.js";
4
+ import { Icon, ICON } from "../../icons/Icon.js";
5
+ import { StickyHeader } from "../../layout/header/StickyHeader.js";
6
+ import { Header } from "../../layout/header/Header.js";
7
+ import { Section } from "../../layout/section/Section.js";
8
+ import { Pop } from "./Pop.js";
9
+ const meta = {
10
+ title: "Components/UI/Pop",
11
+ component: Pop,
12
+ tags: ["autodocs", "layout"],
13
+ args: {
14
+ value: 25,
15
+ valueFrom: 15,
16
+ scaleFrom: 10,
17
+ scaleTo: 30,
18
+ },
19
+ };
20
+ const handleClick = () => {
21
+ console.info("Clicked an option");
22
+ };
23
+ const Primary = {
24
+ render: (args) => {
25
+ const [open, setOpen] = useState(false);
26
+ const [leftOpen, setLeftOpen] = useState(false);
27
+ const handleToggle = useCallback(() => {
28
+ setOpen(p => !p);
29
+ }, []);
30
+ const handleLeftToggle = useCallback(() => {
31
+ setLeftOpen(p => !p);
32
+ }, []);
33
+ const handleClose = useCallback(() => {
34
+ setOpen(false);
35
+ }, []);
36
+ const handleLeftClose = useCallback(() => {
37
+ setLeftOpen(false);
38
+ }, []);
39
+ const after = (React.createElement(React.Fragment, null,
40
+ React.createElement(HeaderIconAction, { icon: ICON.config, onClick: handleToggle }),
41
+ React.createElement(Pop, { anchor: "prev", open: open, onClose: handleClose },
42
+ React.createElement(Pop.Option, { icon: React.createElement(Icon, { name: ICON.heart }), onClick: handleClick }, "Add new list"),
43
+ React.createElement(Pop.Option, { icon: React.createElement(Icon, { name: ICON.trash }), onClick: handleClick }, "Remove empty lists"),
44
+ React.createElement(Pop.Option, { onClick: handleClick }, "Configure"))));
45
+ const left = (React.createElement(React.Fragment, null,
46
+ React.createElement(HeaderIconAction, { icon: ICON.checkmark, onClick: handleLeftToggle }),
47
+ React.createElement(Pop, { anchor: "prev", open: leftOpen, onClose: handleLeftClose },
48
+ React.createElement(Pop.Option, { icon: React.createElement(Icon, { name: ICON.heart }), onClick: handleClick }, "Add new list"),
49
+ React.createElement(Pop.Option, { icon: React.createElement(Icon, { name: ICON.trash }), onClick: handleClick }, "Remove empty lists"),
50
+ React.createElement(Pop.Option, { icon: React.createElement(SunOne, null), onClick: handleClick }, "Configure"),
51
+ React.createElement(Pop.Option, { icon: React.createElement(Icon, { name: ICON.heart }), onClick: handleClick }, "Add new list"),
52
+ React.createElement(Pop.Option, { icon: React.createElement(Icon, { name: ICON.trash }), onClick: handleClick }, "Remove empty lists"),
53
+ React.createElement(Pop.Option, { onClick: handleClick }, "Configure"),
54
+ React.createElement(Pop.Option, { icon: React.createElement(Icon, { name: ICON.heart }), onClick: handleClick }, "Add new list"),
55
+ React.createElement(Pop.Option, { icon: React.createElement(Icon, { name: ICON.trash }), onClick: handleClick }, "Remove empty lists"),
56
+ React.createElement(Pop.Option, { icon: React.createElement(React.Fragment, null, "text"), onClick: handleClick }, "Configure"))));
57
+ return (React.createElement(StickyHeader, null,
58
+ React.createElement(Header, { before: left, after: after }, "Some place"),
59
+ React.createElement(StickyHeader.Content, null,
60
+ React.createElement(Section, { horizontal: true, vertical: true, css: { minHeight: 600 } }, "Click on the left or right icon to open the menu"))));
61
+ },
62
+ };
63
+ export default meta;
64
+ export { Primary, };
65
+ //# sourceMappingURL=Pop.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pop.stories.js","sourceRoot":"","sources":["../../../../src/components/ui/pop/Pop.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAI1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,M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AAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAI,EAAE,OAAO,EAAE,WAAW,mBAA2B;gBAC7F,oBAAC,GAAG,CAAC,MAAM,IAAC,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAI,EAAE,OAAO,EAAE,WAAW,yBAAiC;gBACnG,oBAAC,GAAG,CAAC,MAAM,IAAC,OAAO,EAAE,WAAW,gBAAwB;gBACxD,oBAAC,GAAG,CAAC,MAAM,IAAC,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAI,EAAE,OAAO,EAAE,WAAW,mBAA2B;gBAC7F,oBAAC,GAAG,CAAC,MAAM,IAAC,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAI,EAAE,OAAO,EAAE,WAAW,yBAAiC;gBACnG,oBAAC,GAAG,CAAC,MAAM,IAAC,IAAI,EAAE,iDAAS,EAAE,OAAO,EAAE,WAAW,gBAAwB,CACvE,CACP,CACN,CAAC;QAEF,OAAO,CACH,oBAAC,YAAY;YACT,oBAAC,MAAM,IAAC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,iBAEzB;YACT,oBAAC,YAAY,CAAC,OAAO;gBACjB,oBAAC,OAAO,IAAC,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,uDAExD,CACS,CACZ,CAClB,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,OAAO,EACH,OAAO,GACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { Progress } from "./Progress";
3
+ declare const meta: Meta;
4
+ type Story = StoryObj<typeof Progress>;
5
+ declare const Primary: Story;
6
+ declare const CustomizedColors: Story;
7
+ export default meta;
8
+ export { Primary, CustomizedColors, };
9
+ //# sourceMappingURL=Progress.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Progress.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/progress/Progress.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,QAAA,MAAM,IAAI,EAAE,IAUX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEvC,QAAA,MAAM,OAAO,EAAE,KAAU,CAAC;AAW1B,QAAA,MAAM,gBAAgB,EAAE,KAMvB,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,OAAO,EACH,OAAO,EACP,gBAAgB,GACnB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import React from "react";
2
+ import { styled } from "../../../theme.js";
3
+ import { Progress } from "./Progress.js";
4
+ const meta = {
5
+ title: "Components/UI/Progress",
6
+ component: Progress,
7
+ tags: ["autodocs", "layout"],
8
+ args: {
9
+ value: 25,
10
+ valueFrom: 15,
11
+ scaleFrom: 10,
12
+ scaleTo: 30,
13
+ },
14
+ };
15
+ const Primary = {};
16
+ const CustomProgress = styled(Progress, {
17
+ "--value-background-color": "linear-gradient(to right, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff)",
18
+ [`& ${Progress.selectors.value}`]: {
19
+ borderWidth: 0,
20
+ },
21
+ });
22
+ const CustomizedColors = {
23
+ render: (args) => {
24
+ return (React.createElement(CustomProgress, { ...args }));
25
+ },
26
+ };
27
+ export default meta;
28
+ export { Primary, CustomizedColors, };
29
+ //# sourceMappingURL=Progress.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Progress.stories.js","sourceRoot":"","sources":["../../../../src/components/ui/progress/Progress.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,QAAQ;IACnB,IAAI,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;IAC5B,IAAI,EAAE;QACF,KAAK,EAAE,EAAE;QACT,SAAS,EAAE,EAAE;QACb,SAAS,EAAE,EAAE;QACb,OAAO,EAAE,EAAE;KACd;CACJ,CAAC;AAIF,MAAM,OAAO,GAAU,EAAE,CAAC;AAE1B,MAAM,cAAc,GAAG,MAAM,CAAC,QAAQ,EAAE;IACpC,0BAA0B,EACtB,0FAA0F;IAE9F,CAAC,KAAK,QAAQ,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,EAAE;QAC/B,WAAW,EAAE,CAAC;KACjB;CACJ,CAAC,CAAC;AAEH,MAAM,gBAAgB,GAAU;IAC5B,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACb,OAAO,CACH,oBAAC,cAAc,OAAK,IAAI,GAAI,CAC/B,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,OAAO,EACH,OAAO,EACP,gBAAgB,GACnB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { StoryObj, Meta } from "@storybook/react";
2
+ declare const meta: Meta;
3
+ type Story = StoryObj;
4
+ declare const Primary: Story;
5
+ export { Primary, };
6
+ export default meta;
7
+ //# sourceMappingURL=Toaster.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toaster.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/toaster/Toaster.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAOvD,QAAA,MAAM,IAAI,EAAE,IAgBX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC;AAEtB,QAAA,MAAM,OAAO,EAAE,KA2Bd,CAAC;AAEF,OAAO,EACH,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,39 @@
1
+ import React from "react";
2
+ import { Div } from "../../native/index.js";
3
+ import { Button } from "../button/Button.js";
4
+ import { useToaster } from "./Toaster.js";
5
+ const meta = {
6
+ title: "Components/UI/Toaster",
7
+ tags: ["autodocs", "ui"],
8
+ argTypes: {
9
+ text: {
10
+ control: {
11
+ type: "text",
12
+ },
13
+ },
14
+ time: {
15
+ control: {
16
+ type: "number",
17
+ step: 100,
18
+ },
19
+ },
20
+ },
21
+ };
22
+ const Primary = {
23
+ args: {
24
+ text: "",
25
+ time: 5000,
26
+ },
27
+ render: (args) => {
28
+ const toast = useToaster();
29
+ const { text, time } = args;
30
+ const handleClick = () => {
31
+ toast(text || "Lorem ipsum dolor sit amet", time);
32
+ };
33
+ return (React.createElement(Div, { css: { height: 400 } },
34
+ React.createElement(Button, { onClick: handleClick }, "Show toast")));
35
+ },
36
+ };
37
+ export { Primary, };
38
+ export default meta;
39
+ //# sourceMappingURL=Toaster.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toaster.stories.js","sourceRoot":"","sources":["../../../../src/components/ui/toaster/Toaster.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,uBAAuB;IAC9B,IAAI,EAAE,CAAC,UAAU,EAAE,IAAI,CAAC;IACxB,QAAQ,EAAE;QACN,IAAI,EAAE;YACF,OAAO,EAAE;gBACL,IAAI,EAAE,MAAM;aACf;SACJ;QACD,IAAI,EAAE;YACF,OAAO,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,GAAG;aACZ;SACJ;KACJ;CACJ,CAAC;AAIF,MAAM,OAAO,GAAU;IACnB,IAAI,EAAE;QACF,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,IAAI;KACb;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACb,MAAM,KAAK,GAAG,UAAU,EAAE,CAAC;QAC3B,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,IAAsC,CAAC;QAE9D,MAAM,WAAW,GAAG,GAAG,EAAE;YACrB,KAAK,CAAC,IAAI,IAAI,4BAA4B,EAAE,IAAI,CAAC,CAAC;QACtD,CAAC,CAAC;QAEF,OAAO,CACH,oBAAC,GAAG,IAAC,GAAG,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE;YASrB,oBAAC,MAAM,IAAC,OAAO,EAAE,WAAW,iBAAqB,CAC/C,CACT,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,OAAO,EACH,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { ToolButton } from "./ToolButton";
3
+ declare const meta: Meta;
4
+ type Story = StoryObj<typeof ToolButton>;
5
+ declare const Primary: Story;
6
+ export default meta;
7
+ export { Primary, };
8
+ //# sourceMappingURL=ToolButton.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolButton.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/toolButton/ToolButton.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,QAAA,MAAM,IAAI,EAAE,IAYX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,QAAA,MAAM,OAAO,EAAE,KAYd,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,OAAO,EACH,OAAO,GACV,CAAC"}
@@ -0,0 +1,29 @@
1
+ import React from "react";
2
+ import { Div } from "../../native/index.js";
3
+ import { ToolButton } from "./ToolButton.js";
4
+ const meta = {
5
+ title: "Components/UI/ToolButton",
6
+ component: ToolButton,
7
+ tags: ["autodocs", "ui"],
8
+ argTypes: {
9
+ variant: {
10
+ control: {
11
+ type: "select",
12
+ },
13
+ options: ["default", "secondary", "secondaryOnLight"],
14
+ },
15
+ },
16
+ };
17
+ const Primary = {
18
+ args: {
19
+ children: "Click me",
20
+ onClick: () => { alert("Clicked"); },
21
+ },
22
+ render: args => {
23
+ return (React.createElement(Div, { css: { background: args.variant === "secondaryOnLight" ? "white" : "$blue5", padding: 50 } },
24
+ React.createElement(ToolButton, { ...args })));
25
+ },
26
+ };
27
+ export default meta;
28
+ export { Primary, };
29
+ //# sourceMappingURL=ToolButton.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolButton.stories.js","sourceRoot":"","sources":["../../../../src/components/ui/toolButton/ToolButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,CAAC,UAAU,EAAE,IAAI,CAAC;IACxB,QAAQ,EAAE;QACN,OAAO,EAAE;YACL,OAAO,EAAE;gBACL,IAAI,EAAE,QAAQ;aACjB;YACD,OAAO,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,kBAAkB,CAAC;SACxD;KACJ;CACJ,CAAC;AAIF,MAAM,OAAO,GAAU;IACnB,IAAI,EAAE;QACF,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;KACvC;IACD,MAAM,EAAE,IAAI,CAAC,EAAE;QACX,OAAO,CACH,oBAAC,GAAG,IAAC,GAAG,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,OAAO,KAAK,kBAAkB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;YAC3F,oBAAC,UAAU,OAAK,IAAI,GAAI,CACtB,CACT,CAAC;IACN,CAAC;CACJ,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,OAAO,EACH,OAAO,GACV,CAAC"}