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,100 @@
1
+ import React from "react";
2
+ import { omit } from "@ezez/utils";
3
+ import { NextLink } from "../../../demo/NextLink.js";
4
+ import { Item } from "./Item.js";
5
+ import { List } from "./List.js";
6
+ import { Label } from "./Label.js";
7
+ import { Value } from "./Value.js";
8
+ const demoControl = {
9
+ table: {
10
+ category: "Demo controls",
11
+ },
12
+ };
13
+ const meta = {
14
+ title: "Components/Layout/List/Item",
15
+ component: Item,
16
+ tags: ["autodocs", "layout"],
17
+ argTypes: {
18
+ inset: {
19
+ type: "boolean",
20
+ },
21
+ selected: {
22
+ type: "boolean",
23
+ },
24
+ Link: {
25
+ controls: "none",
26
+ },
27
+ renderList: {
28
+ ...demoControl,
29
+ type: "boolean",
30
+ name: "Render <List> around",
31
+ },
32
+ },
33
+ };
34
+ const Primary = {
35
+ args: {
36
+ children: "I am a list item",
37
+ Link: NextLink,
38
+ },
39
+ render: (rawProps) => {
40
+ const renderList = rawProps.renderList;
41
+ const args = omit(rawProps, ["renderList"]);
42
+ const items = [
43
+ React.createElement(Item, { key: 1, ...args }),
44
+ React.createElement(Item, { key: 2 }, "Other item"),
45
+ React.createElement(Item, { key: 3 }, "Other item"),
46
+ ];
47
+ if (renderList) {
48
+ return (React.createElement(List, null, items));
49
+ }
50
+ return (React.createElement("div", null, items));
51
+ },
52
+ };
53
+ const Alignment = {
54
+ args: {
55
+ children: [
56
+ React.createElement("div", { key: "1st" }, "first"),
57
+ React.createElement("div", { key: "2nd" }, "2nd"),
58
+ React.createElement("div", { key: "3rd" }, "last"),
59
+ ],
60
+ ratio: "1/2/1",
61
+ },
62
+ render: (args) => {
63
+ return (React.createElement(List, null,
64
+ React.createElement(Item, { ...args }),
65
+ React.createElement(Item, null, "Other item"),
66
+ React.createElement(Item, null, "Other item")));
67
+ },
68
+ };
69
+ const OnClick = {
70
+ args: {
71
+ children: "I am a list item, but I will render a button, click me",
72
+ onClick: () => {
73
+ alert("Clicked!");
74
+ },
75
+ },
76
+ render: (args) => {
77
+ return (React.createElement(List, null,
78
+ React.createElement(Item, { ...args }),
79
+ React.createElement(Item, null, "Other item"),
80
+ React.createElement(Item, null, "Other item")));
81
+ },
82
+ };
83
+ const Complex = {
84
+ args: {
85
+ children: [
86
+ React.createElement(Label, { key: "l" }, "Hi"),
87
+ React.createElement(Value, { key: "v" }, "Value"),
88
+ ],
89
+ selected: true,
90
+ },
91
+ render: (args) => {
92
+ return (React.createElement(List, null,
93
+ React.createElement(Item, { ...args }),
94
+ React.createElement(Item, null, "Other item"),
95
+ React.createElement(Item, null, "Other item")));
96
+ },
97
+ };
98
+ export { Primary, Alignment, OnClick, Complex, };
99
+ export default meta;
100
+ //# sourceMappingURL=Item.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Item.stories.js","sourceRoot":"","sources":["../../../../src/components/layout/list/Item.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAInC,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,WAAW,GAAG;IAChB,KAAK,EAAE;QACH,QAAQ,EAAE,eAAe;KAC5B;CACJ,CAAC;AAEF,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,6BAA6B;IACpC,SAAS,EAAE,IAAI;IACf,IAAI,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;IAC5B,QAAQ,EAAE;QACN,KAAK,EAAE;YACH,IAAI,EAAE,SAAS;SAClB;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,SAAS;SAClB;QACD,IAAI,EAAE;YACF,QAAQ,EAAE,MAAM;SACnB;QACD,UAAU,EAAE;YACR,GAAG,WAAW;YACd,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,sBAAsB;SAC/B;KACJ;CACJ,CAAC;AAIF,MAAM,OAAO,GAAU;IACnB,IAAI,EAAE;QACF,QAAQ,EAAE,kBAAkB;QAC5B,IAAI,EAAE,QAAQ;KACjB;IACD,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE;QACjB,MAAM,UAAU,GAAI,QAAgD,CAAC,UAAU,CAAC;QAEhF,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;QAE5C,MAAM,KAAK,GAAG;YACV,oBAAC,IAAI,IAAC,GAAG,EAAE,CAAC,KAAM,IAAI,GAAI;YAC1B,oBAAC,IAAI,IAAC,GAAG,EAAE,CAAC,iBAAmB;YAC/B,oBAAC,IAAI,IAAC,GAAG,EAAE,CAAC,iBAAmB;SAClC,CAAC;QAEF,IAAI,UAAU,EAAE,CAAC;YACb,OAAO,CACH,oBAAC,IAAI,QAAE,KAAK,CAAQ,CACvB,CAAC;QACN,CAAC;QAED,OAAO,CACH,iCAAM,KAAK,CAAO,CACrB,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,MAAM,SAAS,GAAU;IACrB,IAAI,EAAE;QACF,QAAQ,EAAE;YACN,6BAAK,GAAG,EAAE,KAAK,YAAa;YAC5B,6BAAK,GAAG,EAAE,KAAK,UAAW;YAC1B,6BAAK,GAAG,EAAE,KAAK,WAAY;SAC9B;QACD,KAAK,EAAE,OAAO;KACjB;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACb,OAAO,CACH,oBAAC,IAAI;YACD,oBAAC,IAAI,OAAK,IAAI,GAAI;YAClB,oBAAC,IAAI,qBAAkB;YACvB,oBAAC,IAAI,qBAAkB,CACpB,CACV,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,MAAM,OAAO,GAAU;IACnB,IAAI,EAAE;QACF,QAAQ,EAAE,wDAAwD;QAClE,OAAO,EAAE,GAAG,EAAE;YACV,KAAK,CAAC,UAAU,CAAC,CAAC;QACtB,CAAC;KACJ;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACb,OAAO,CACH,oBAAC,IAAI;YACD,oBAAC,IAAI,OAAK,IAAI,GAAI;YAClB,oBAAC,IAAI,qBAAkB;YACvB,oBAAC,IAAI,qBAAkB,CACpB,CACV,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,MAAM,OAAO,GAAU;IACnB,IAAI,EAAE;QACF,QAAQ,EAAE;YACN,oBAAC,KAAK,IAAC,GAAG,EAAE,GAAG,SAAY;YAC3B,oBAAC,KAAK,IAAC,GAAG,EAAE,GAAG,YAAe;SACjC;QACD,QAAQ,EAAE,IAAI;KACjB;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACb,OAAO,CACH,oBAAC,IAAI;YACD,oBAAC,IAAI,OAAK,IAAI,GAAI;YAClB,oBAAC,IAAI,qBAAkB;YACvB,oBAAC,IAAI,qBAAkB,CACpB,CACV,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,OAAO,EACH,OAAO,EACP,SAAS,EACT,OAAO,EACP,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { StoryObj, Meta } from "@storybook/react";
2
+ import { Label } from "./Label";
3
+ declare const meta: Meta;
4
+ type Story = StoryObj<typeof Label>;
5
+ declare const Primary: Story;
6
+ export { Primary, };
7
+ export default meta;
8
+ //# sourceMappingURL=Label.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Label.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/Label.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAIhC,QAAA,MAAM,IAAI,EAAE,IASX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAEpC,QAAA,MAAM,OAAO,EAAE,KAiBd,CAAC;AAEF,OAAO,EACH,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,29 @@
1
+ import React from "react";
2
+ import { Label } from "./Label.js";
3
+ import { List } from "./List.js";
4
+ import { Item } from "./Item.js";
5
+ const meta = {
6
+ title: "Components/Layout/List/Label",
7
+ component: Label,
8
+ tags: ["autodocs", "layout"],
9
+ argTypes: {
10
+ sub: {
11
+ type: "string",
12
+ },
13
+ },
14
+ };
15
+ const Primary = {
16
+ args: {
17
+ children: "I am a label",
18
+ sub: "Sub text",
19
+ },
20
+ render: (args) => {
21
+ return (React.createElement(List, null,
22
+ React.createElement(Item, null,
23
+ React.createElement(Label, { ...args })),
24
+ React.createElement(Item, null, "I am classic list item")));
25
+ },
26
+ };
27
+ export { Primary, };
28
+ export default meta;
29
+ //# sourceMappingURL=Label.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Label.stories.js","sourceRoot":"","sources":["../../../../src/components/layout/list/Label.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,8BAA8B;IACrC,SAAS,EAAE,KAAK;IAChB,IAAI,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;IAC5B,QAAQ,EAAE;QACN,GAAG,EAAE;YACD,IAAI,EAAE,QAAQ;SACjB;KACJ;CACJ,CAAC;AAIF,MAAM,OAAO,GAAU;IACnB,IAAI,EAAE;QACF,QAAQ,EAAE,cAAc;QACxB,GAAG,EAAE,UAAU;KAClB;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACb,OAAO,CACH,oBAAC,IAAI;YACD,oBAAC,IAAI;gBACD,oBAAC,KAAK,OAAK,IAAI,GAAI,CAChB;YACP,oBAAC,IAAI,iCAEE,CACJ,CACV,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,OAAO,EACH,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { StoryObj, Meta } from "@storybook/react";
2
+ import { List } from "./List";
3
+ declare const meta: Meta;
4
+ type Story = StoryObj<typeof List>;
5
+ declare const Primary: Story;
6
+ declare const FullFeaturedExample: Story;
7
+ export { Primary, FullFeaturedExample, };
8
+ export default meta;
9
+ //# sourceMappingURL=List.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"List.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/List.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,QAAA,MAAM,IAAI,EAAE,IASX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,QAAA,MAAM,OAAO,EAAE,KAYd,CAAC;AAEF,QAAA,MAAM,mBAAmB,EAAE,KAyC1B,CAAC;AAEF,OAAO,EACH,OAAO,EACP,mBAAmB,GACtB,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,46 @@
1
+ import React from "react";
2
+ import { Icon, ICON } from "../../icons/Icon.js";
3
+ import { List } from "./List.js";
4
+ const meta = {
5
+ title: "Components/Layout/List/List",
6
+ component: List,
7
+ tags: ["autodocs", "layout"],
8
+ argTypes: {
9
+ inset: {
10
+ type: "boolean",
11
+ },
12
+ },
13
+ };
14
+ const Primary = {
15
+ args: {
16
+ inset: false,
17
+ },
18
+ render: (args) => {
19
+ return (React.createElement(List, { ...args },
20
+ React.createElement(List.Item, null, "I am a list item"),
21
+ React.createElement(List.Item, null, "I am a list item")));
22
+ },
23
+ };
24
+ const FullFeaturedExample = {
25
+ render: (args) => {
26
+ return (React.createElement(List, null,
27
+ React.createElement(List.Header, null, "GPS settings"),
28
+ React.createElement(List.Item, null,
29
+ React.createElement(List.Item.Label, { sub: "Higher precision means higher battery usage" }, "GPS precision"),
30
+ React.createElement(List.Item.Value, null, "Low"),
31
+ React.createElement(Icon, { name: ICON.forward })),
32
+ React.createElement(List.Item, null,
33
+ React.createElement(List.Item, null, "Something")),
34
+ React.createElement(List.Header, null, "Last trips"),
35
+ React.createElement(List.Item, null, "Portugal"),
36
+ React.createElement(List.Item, null,
37
+ React.createElement(List.Item.Label, { sub: "Visited 2 times in last year" }, "Poland")),
38
+ React.createElement(List.Item, null, "Sweden"),
39
+ React.createElement(List.Header, null, "Choose one option"),
40
+ React.createElement(List.Item, { selected: true }, "yes"),
41
+ React.createElement(List.Item, { selected: false }, "no")));
42
+ },
43
+ };
44
+ export { Primary, FullFeaturedExample, };
45
+ export default meta;
46
+ //# sourceMappingURL=List.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"List.stories.js","sourceRoot":"","sources":["../../../../src/components/layout/list/List.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,6BAA6B;IACpC,SAAS,EAAE,IAAI;IACf,IAAI,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;IAC5B,QAAQ,EAAE;QACN,KAAK,EAAE;YACH,IAAI,EAAE,SAAS;SAClB;KACJ;CACJ,CAAC;AAIF,MAAM,OAAO,GAAU;IACnB,IAAI,EAAE;QACF,KAAK,EAAE,KAAK;KACf;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACb,OAAO,CACH,oBAAC,IAAI,OAAK,IAAI;YACV,oBAAC,IAAI,CAAC,IAAI,2BAA6B;YACvC,oBAAC,IAAI,CAAC,IAAI,2BAA6B,CACpC,CACV,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,MAAM,mBAAmB,GAAU;IAC/B,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACb,OAAO,CACH,oBAAC,IAAI;YACD,oBAAC,IAAI,CAAC,MAAM,uBAA2B;YACvC,oBAAC,IAAI,CAAC,IAAI;gBACN,oBAAC,IAAI,CAAC,IAAI,CAAC,KAAK,IAAC,GAAG,EAAE,6CAA6C,oBAEjD;gBAClB,oBAAC,IAAI,CAAC,IAAI,CAAC,KAAK,cAEE;gBAClB,oBAAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,OAAO,GAAI,CACpB;YACZ,oBAAC,IAAI,CAAC,IAAI;gBACN,oBAAC,IAAI,CAAC,IAAI,oBAEE,CACJ;YACZ,oBAAC,IAAI,CAAC,MAAM,qBAEE;YACd,oBAAC,IAAI,CAAC,IAAI,mBAEE;YACZ,oBAAC,IAAI,CAAC,IAAI;gBACN,oBAAC,IAAI,CAAC,IAAI,CAAC,KAAK,IAAC,GAAG,EAAE,8BAA8B,aAElC,CACV;YACZ,oBAAC,IAAI,CAAC,IAAI,iBAEE;YACZ,oBAAC,IAAI,CAAC,MAAM,4BAEE;YACd,oBAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,IAAI,UAAiB;YAC1C,oBAAC,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,KAAK,SAAgB,CACvC,CACV,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,OAAO,EACH,OAAO,EACP,mBAAmB,GACtB,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { StoryObj, Meta } from "@storybook/react";
2
+ import { Value } from "./Value";
3
+ declare const meta: Meta;
4
+ type Story = StoryObj<typeof Value>;
5
+ declare const Primary: Story;
6
+ export { Primary, };
7
+ export default meta;
8
+ //# sourceMappingURL=Value.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Value.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/Value.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAIhC,QAAA,MAAM,IAAI,EAAE,IAIX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAEpC,QAAA,MAAM,OAAO,EAAE,KAcd,CAAC;AAEF,OAAO,EACH,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ import { Value } from "./Value.js";
3
+ import { List } from "./List.js";
4
+ import { Item } from "./Item.js";
5
+ const meta = {
6
+ title: "Components/Layout/List/Value",
7
+ component: Value,
8
+ tags: ["autodocs", "layout"],
9
+ };
10
+ const Primary = {
11
+ args: {
12
+ children: "23,4*C",
13
+ },
14
+ render: (args) => {
15
+ return (React.createElement(List, null,
16
+ React.createElement(Item, null,
17
+ React.createElement("div", null, "Some label"),
18
+ React.createElement(Value, { ...args }))));
19
+ },
20
+ };
21
+ export { Primary, };
22
+ export default meta;
23
+ //# sourceMappingURL=Value.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Value.stories.js","sourceRoot":"","sources":["../../../../src/components/layout/list/Value.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,8BAA8B;IACrC,SAAS,EAAE,KAAK;IAChB,IAAI,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;CAC/B,CAAC;AAIF,MAAM,OAAO,GAAU;IACnB,IAAI,EAAE;QACF,QAAQ,EAAE,QAAQ;KACrB;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACb,OAAO,CACH,oBAAC,IAAI;YACD,oBAAC,IAAI;gBACD,8CAAqB;gBACrB,oBAAC,KAAK,OAAK,IAAI,GAAI,CAChB,CACJ,CACV,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 { Section } from "./Section";
3
+ declare const meta: Meta;
4
+ type Story = StoryObj<typeof Section>;
5
+ declare const Primary: Story;
6
+ export { Primary, };
7
+ export default meta;
8
+ //# sourceMappingURL=Section.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Section.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/section/Section.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAKvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,QAAA,MAAM,IAAI,EAAE,IAYX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;AAEtC,QAAA,MAAM,OAAO,EAAE,KAsBd,CAAC;AAEF,OAAO,EACH,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,31 @@
1
+ import React from "react";
2
+ import { List } from "../list/List.js";
3
+ import { Item } from "../list/Item.js";
4
+ import { Section } from "./Section.js";
5
+ const meta = {
6
+ title: "Components/Layout/Section",
7
+ component: Section,
8
+ tags: ["autodocs", "layout"],
9
+ argTypes: {
10
+ vertical: {
11
+ type: "boolean",
12
+ },
13
+ horizontal: {
14
+ type: "boolean",
15
+ },
16
+ },
17
+ };
18
+ const Primary = {
19
+ args: {},
20
+ render: (args) => (React.createElement("div", { style: { border: "1px solid #ddd" } },
21
+ React.createElement(Section.Container, null,
22
+ React.createElement(Section, { ...args }, "This is an example section, arguments in the arguments table are applied only to this section. By default sections do not have any padding, so you can place elements that should touch the edges. Use `vertical` and `horizontal` arguments to add padding."),
23
+ React.createElement(Section, { vertical: true, horizontal: true }, "Some section"),
24
+ React.createElement(Section, null,
25
+ React.createElement(List, null,
26
+ React.createElement(Item, null, "Some item"),
27
+ React.createElement(Item, null, "Some item")))))),
28
+ };
29
+ export { Primary, };
30
+ export default meta;
31
+ //# sourceMappingURL=Section.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Section.stories.js","sourceRoot":"","sources":["../../../../src/components/layout/section/Section.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,2BAA2B;IAClC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;IAC5B,QAAQ,EAAE;QACN,QAAQ,EAAE;YACN,IAAI,EAAE,SAAS;SAClB;QACD,UAAU,EAAE;YACR,IAAI,EAAE,SAAS;SAClB;KACJ;CACJ,CAAC;AAIF,MAAM,OAAO,GAAU;IACnB,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CACd,6BAAK,KAAK,EAAE,EAAE,MAAM,EAAE,gBAAgB,EAAE;QACpC,oBAAC,OAAO,CAAC,SAAS;YACd,oBAAC,OAAO,OAAK,IAAI,mQAIP;YACV,oBAAC,OAAO,IAAC,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,mBAE/B;YACV,oBAAC,OAAO;gBACJ,oBAAC,IAAI;oBACD,oBAAC,IAAI,oBAAiB;oBACtB,oBAAC,IAAI,oBAAiB,CACnB,CACD,CACM,CAClB,CACT;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 { Table } from "./Table";
3
+ declare const meta: Meta;
4
+ type Story = StoryObj<typeof Table>;
5
+ declare const Primary: Story;
6
+ export default meta;
7
+ export { Primary, };
8
+ //# sourceMappingURL=Table.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/table/Table.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,QAAA,MAAM,IAAI,EAAE,IAWX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAEpC,QAAA,MAAM,OAAO,EAAE,KA4Cd,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,OAAO,EACH,OAAO,GACV,CAAC"}
@@ -0,0 +1,49 @@
1
+ import React from "react";
2
+ import { Table } from "./Table.js";
3
+ const meta = {
4
+ title: "Components/Layout/Table/Table",
5
+ component: Table,
6
+ tags: ["autodocs", "layout"],
7
+ argTypes: {},
8
+ args: {
9
+ striped: true,
10
+ wide: true,
11
+ centered: true,
12
+ },
13
+ };
14
+ const Primary = {
15
+ render: args => (React.createElement(Table, { ...args },
16
+ React.createElement("thead", null,
17
+ React.createElement("tr", null,
18
+ React.createElement("th", null, "Name"),
19
+ React.createElement("th", null, "Age"),
20
+ React.createElement("th", null, "Actions"))),
21
+ React.createElement("tbody", null,
22
+ React.createElement("tr", null,
23
+ React.createElement("td", null, "Stefan"),
24
+ React.createElement("td", null, "41"),
25
+ React.createElement("td", null, "edit")),
26
+ React.createElement("tr", null,
27
+ React.createElement("td", null, "Juliette"),
28
+ React.createElement("td", null, "23"),
29
+ React.createElement("td", null, "edit")),
30
+ React.createElement("tr", null,
31
+ React.createElement("td", null, "Amy"),
32
+ React.createElement("td", null, "55"),
33
+ React.createElement("td", null, "edit")),
34
+ React.createElement("tr", null,
35
+ React.createElement("td", null, "Stefan"),
36
+ React.createElement("td", null, "41"),
37
+ React.createElement("td", null, "edit")),
38
+ React.createElement("tr", null,
39
+ React.createElement("td", null, "Juliette"),
40
+ React.createElement("td", null, "23"),
41
+ React.createElement("td", null, "edit")),
42
+ React.createElement("tr", null,
43
+ React.createElement("td", null, "Amy"),
44
+ React.createElement("td", null, "55"),
45
+ React.createElement("td", null, "edit"))))),
46
+ };
47
+ export default meta;
48
+ export { Primary, };
49
+ //# sourceMappingURL=Table.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.stories.js","sourceRoot":"","sources":["../../../../src/components/layout/table/Table.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,+BAA+B;IACtC,SAAS,EAAE,KAAK;IAChB,IAAI,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;IAE5B,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE;QACF,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACjB;CACJ,CAAC;AAIF,MAAM,OAAO,GAAU;IACnB,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,CACZ,oBAAC,KAAK,OAAK,IAAI;QACX;YACI;gBACI,uCAAa;gBACb,sCAAY;gBACZ,0CAAgB,CACf,CACD;QACR;YACI;gBACI,yCAAe;gBACf,qCAAW;gBACX,uCAAa,CACZ;YACL;gBACI,2CAAiB;gBACjB,qCAAW;gBACX,uCAAa,CACZ;YACL;gBACI,sCAAY;gBACZ,qCAAW;gBACX,uCAAa,CACZ;YACL;gBACI,yCAAe;gBACf,qCAAW;gBACX,uCAAa,CACZ;YACL;gBACI,2CAAiB;gBACjB,qCAAW;gBACX,uCAAa,CACZ;YACL;gBACI,sCAAY;gBACZ,qCAAW;gBACX,uCAAa,CACZ,CACD,CACJ,CACX;CACJ,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,OAAO,EACH,OAAO,GACV,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { StoryObj, Meta } from "@storybook/react";
2
+ import { Action } from "./Action";
3
+ declare const meta: Meta;
4
+ type Story = StoryObj<typeof Action>;
5
+ declare const Primary: Story;
6
+ declare const Button: Story;
7
+ declare const Link: Story;
8
+ declare const WithCustomLink: Story;
9
+ export { Primary, Button, Link, WithCustomLink, };
10
+ export default meta;
11
+ //# sourceMappingURL=Action.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Action.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/action/Action.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,IAeX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAErC,QAAA,MAAM,OAAO,EAAE,KAcd,CAAC;AAEF,QAAA,MAAM,MAAM,EAAE,KAMb,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,KAMX,CAAC;AAEF,QAAA,MAAM,cAAc,EAAE,KAgBrB,CAAC;AAEF,OAAO,EACH,OAAO,EACP,MAAM,EACN,IAAI,EACJ,cAAc,GACjB,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,58 @@
1
+ import React from "react";
2
+ import { Action } from "./Action.js";
3
+ const meta = {
4
+ title: "Components/UI/Action",
5
+ component: Action,
6
+ tags: ["autodocs", "ui"],
7
+ args: {
8
+ badge: "",
9
+ },
10
+ argTypes: {
11
+ badge: {
12
+ control: {
13
+ type: "text",
14
+ },
15
+ },
16
+ href: { type: "string" },
17
+ },
18
+ };
19
+ const Primary = {
20
+ args: {
21
+ label: "Section name",
22
+ icon: "checkmark",
23
+ },
24
+ render: (args) => {
25
+ const props = { ...args };
26
+ if (!args.label) {
27
+ delete props.label;
28
+ }
29
+ return (React.createElement(Action, { ...props }));
30
+ },
31
+ };
32
+ const Button = {
33
+ args: {
34
+ label: "I am a button",
35
+ icon: "checkmark",
36
+ onClick: () => { alert("Clicked"); },
37
+ },
38
+ };
39
+ const Link = {
40
+ args: {
41
+ label: "I am a link",
42
+ icon: "checkmark",
43
+ href: "https://example.com",
44
+ },
45
+ };
46
+ const WithCustomLink = {
47
+ args: {
48
+ label: "I am a custom link",
49
+ icon: "checkmark",
50
+ to: "/subpage",
51
+ Link: (props) => {
52
+ return (React.createElement("a", { href: props.href, onClick: (e) => { e.preventDefault(); alert("I'd take you to " + props.href); } }, props.children));
53
+ },
54
+ },
55
+ };
56
+ export { Primary, Button, Link, WithCustomLink, };
57
+ export default meta;
58
+ //# sourceMappingURL=Action.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Action.stories.js","sourceRoot":"","sources":["../../../../src/components/ui/action/Action.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,CAAC,UAAU,EAAE,IAAI,CAAC;IACxB,IAAI,EAAE;QACF,KAAK,EAAE,EAAE;KACZ;IACD,QAAQ,EAAE;QACN,KAAK,EAAE;YACH,OAAO,EAAE;gBACL,IAAI,EAAE,MAAM;aACf;SACJ;QACD,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC3B;CACJ,CAAC;AAIF,MAAM,OAAO,GAAU;IACnB,IAAI,EAAE;QACF,KAAK,EAAE,cAAc;QACrB,IAAI,EAAE,WAAW;KACpB;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACb,MAAM,KAAK,GAAG,EAAE,GAAG,IAAI,EAAE,CAAC;QAC1B,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;YACd,OAAO,KAAK,CAAC,KAAK,CAAC;QACvB,CAAC;QACD,OAAO,CACH,oBAAC,MAAM,OAAK,KAAK,GAAI,CACxB,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,MAAM,MAAM,GAAU;IAClB,IAAI,EAAE;QACF,KAAK,EAAE,eAAe;QACtB,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;KACvC;CACJ,CAAC;AAEF,MAAM,IAAI,GAAU;IAChB,IAAI,EAAE;QACF,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,qBAAqB;KAC9B;CACJ,CAAC;AAEF,MAAM,cAAc,GAAU;IAC1B,IAAI,EAAE;QACF,KAAK,EAAE,oBAAoB;QAC3B,IAAI,EAAE,WAAW;QACjB,EAAE,EAAE,UAAU;QACd,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE;YACZ,OAAO,CACH,2BACI,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAE9E,KAAK,CAAC,QAAQ,CACf,CACP,CAAC;QACN,CAAC;KACJ;CACJ,CAAC;AAEF,OAAO,EACH,OAAO,EACP,MAAM,EACN,IAAI,EACJ,cAAc,GACjB,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { StoryObj, Meta } from "@storybook/react";
2
+ import { Button } from "./Button";
3
+ declare const meta: Meta;
4
+ type Story = StoryObj<typeof Button>;
5
+ declare const Primary: Story;
6
+ declare const MultipleAtOnce: Story;
7
+ export { Primary, MultipleAtOnce, };
8
+ export default meta;
9
+ //# sourceMappingURL=Button.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,QAAA,MAAM,IAAI,EAAE,IAIX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAErC,QAAA,MAAM,OAAO,EAAE,KAKd,CAAC;AASF,QAAA,MAAM,cAAc,EAAE,KAerB,CAAC;AAEF,OAAO,EACH,OAAO,EACP,cAAc,GACjB,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,35 @@
1
+ import React, { useCallback } from "react";
2
+ import { styled } from "../../../theme.js";
3
+ import { Button } from "./Button.js";
4
+ const meta = {
5
+ title: "Components/UI/Button",
6
+ component: Button,
7
+ tags: ["autodocs", "ui"],
8
+ };
9
+ const Primary = {
10
+ args: {
11
+ children: "Click me",
12
+ onClick: () => { alert("Clicked"); },
13
+ },
14
+ };
15
+ const Container = styled("div", {
16
+ display: "flex",
17
+ flexDirection: "column",
18
+ alignItems: "flex-start",
19
+ gap: "1rem",
20
+ });
21
+ const MultipleAtOnce = {
22
+ render: () => {
23
+ const handleClick = useCallback(() => {
24
+ alert("Clicked");
25
+ }, []);
26
+ return (React.createElement(Container, null,
27
+ React.createElement(Button, { onClick: handleClick }, "Basic button"),
28
+ React.createElement(Button, { disabled: true, onClick: handleClick }, "Disabled button"),
29
+ React.createElement(Button, { inline: true, onClick: handleClick }, "Inline button"),
30
+ React.createElement(Button, { outline: true, onClick: handleClick }, "Outline button")));
31
+ },
32
+ };
33
+ export { Primary, MultipleAtOnce, };
34
+ export default meta;
35
+ //# sourceMappingURL=Button.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.stories.js","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAI3C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,CAAC,UAAU,EAAE,IAAI,CAAC;CAC3B,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;CACJ,CAAC;AAEF,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,EAAE;IAC5B,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,QAAQ;IACvB,UAAU,EAAE,YAAY;IACxB,GAAG,EAAE,MAAM;CACd,CAAC,CAAC;AAEH,MAAM,cAAc,GAAU;IAC1B,MAAM,EAAE,GAAG,EAAE;QACT,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE;YACjC,KAAK,CAAC,SAAS,CAAC,CAAC;QACrB,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,OAAO,CACH,oBAAC,SAAS;YACN,oBAAC,MAAM,IAAC,OAAO,EAAE,WAAW,mBAAuB;YACnD,oBAAC,MAAM,IAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,sBAA0B;YACtE,oBAAC,MAAM,IAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,oBAAwB;YAClE,oBAAC,MAAM,IAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,qBAAyB,CAC5D,CACf,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,OAAO,EACH,OAAO,EACP,cAAc,GACjB,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { Line } from "./Line";
3
+ declare const meta: Meta;
4
+ type Story = StoryObj<typeof Line>;
5
+ declare const Primary: Story;
6
+ export default meta;
7
+ export { Primary, };
8
+ //# sourceMappingURL=Line.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Line.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/line/Line.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,QAAA,MAAM,IAAI,EAAE,IAaX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,QAAA,MAAM,OAAO,EAAE,KASd,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,OAAO,EACH,OAAO,GACV,CAAC"}
@@ -0,0 +1,27 @@
1
+ import React from "react";
2
+ import { omit } from "@ezez/utils";
3
+ import { Line } from "./Line.js";
4
+ const meta = {
5
+ title: "Components/UI/Line",
6
+ component: Line,
7
+ tags: ["autodocs", "ui"],
8
+ argTypes: {
9
+ "--miui-line-size": {
10
+ description: "CSS property that defines length of the line",
11
+ },
12
+ },
13
+ args: {
14
+ "vertical": false,
15
+ "--miui-line-size": "100px",
16
+ },
17
+ };
18
+ const Primary = {
19
+ render: (args) => {
20
+ const lineSize = args["--miui-line-size"];
21
+ const props = omit(args, ["--miui-line-size"]);
22
+ return React.createElement(Line, { ...props, css: { "--miui-line-size": lineSize } });
23
+ },
24
+ };
25
+ export default meta;
26
+ export { Primary, };
27
+ //# sourceMappingURL=Line.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Line.stories.js","sourceRoot":"","sources":["../../../../src/components/ui/line/Line.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAInC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,IAAI;IACf,IAAI,EAAE,CAAC,UAAU,EAAE,IAAI,CAAC;IACxB,QAAQ,EAAE;QACN,kBAAkB,EAAE;YAChB,WAAW,EAAE,8CAA8C;SAC9D;KACJ;IACD,IAAI,EAAE;QACF,UAAU,EAAE,KAAK;QACjB,kBAAkB,EAAE,OAAO;KAC9B;CACJ,CAAC;AAIF,MAAM,OAAO,GAAU;IACnB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QAIb,MAAM,QAAQ,GAAI,IAAkB,CAAC,kBAAkB,CAAC,CAAC;QACzD,MAAM,KAAK,GAAG,IAAI,CAAC,IAAiB,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC;QAC5D,OAAO,oBAAC,IAAI,OAAK,KAAK,EAAE,GAAG,EAAE,EAAE,kBAAkB,EAAE,QAAQ,EAAE,GAAI,CAAC;IACtE,CAAC;CACJ,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,OAAO,EACH,OAAO,GACV,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { StoryObj, Meta } from "@storybook/react";
2
+ import { CoveringLoader } from "./CoveringLoader";
3
+ declare const meta: Meta;
4
+ type Story = StoryObj<typeof CoveringLoader>;
5
+ declare const Primary: Story;
6
+ export { Primary, };
7
+ export default meta;
8
+ //# sourceMappingURL=CoveringLoader.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CoveringLoader.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/loader/CoveringLoader.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,QAAA,MAAM,IAAI,EAAE,IAIX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAC;AAE7C,QAAA,MAAM,OAAO,EAAE,KAgBd,CAAC;AAEF,OAAO,EACH,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ import { CoveringLoader } from "./CoveringLoader.js";
3
+ const meta = {
4
+ title: "Components/UI/Loader/CoveringLoader",
5
+ component: CoveringLoader,
6
+ tags: ["autodocs", "ui"],
7
+ };
8
+ const Primary = {
9
+ args: {},
10
+ render: () => {
11
+ return (React.createElement(CoveringLoader, { show: true },
12
+ React.createElement("div", { style: { background: "#f0f0f0" } },
13
+ "some contents",
14
+ React.createElement("br", null),
15
+ "some contents Lorem ipsum etc Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quibusdam. some contents",
16
+ React.createElement("br", null),
17
+ "some contents",
18
+ React.createElement("br", null),
19
+ "some contents",
20
+ React.createElement("br", null))));
21
+ },
22
+ };
23
+ export { Primary, };
24
+ export default meta;
25
+ //# sourceMappingURL=CoveringLoader.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CoveringLoader.stories.js","sourceRoot":"","sources":["../../../../src/components/ui/loader/CoveringLoader.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,qCAAqC;IAC5C,SAAS,EAAE,cAAc;IACzB,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,oBAAC,cAAc,IAAC,IAAI,EAAE,IAAI;YACtB,6BAAK,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE;;gBACpB,+BAAM;;gBAGN,+BAAM;;gBACN,+BAAM;;gBACN,+BAAM,CACjB,CACO,CACpB,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 { FullLoader } from "./FullLoader";
3
+ declare const meta: Meta;
4
+ type Story = StoryObj<typeof FullLoader>;
5
+ declare const Primary: Story;
6
+ export { Primary, };
7
+ export default meta;
8
+ //# sourceMappingURL=FullLoader.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FullLoader.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/loader/FullLoader.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,QAAA,MAAM,IAAI,EAAE,IAIX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,QAAA,MAAM,OAAO,EAAE,KAYd,CAAC;AAEF,OAAO,EACH,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}