react-miui 0.7.0 → 0.9.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 (238) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/components/form/choice/Choice.d.ts +11 -0
  3. package/dist/components/form/choice/Choice.d.ts.map +1 -0
  4. package/dist/components/form/choice/Choice.js +19 -0
  5. package/dist/components/form/choice/Choice.js.map +1 -0
  6. package/dist/components/form/choice/Choice.module.scss +43 -0
  7. package/dist/components/form/choice/ChoiceItem.d.ts +11 -0
  8. package/dist/components/form/choice/ChoiceItem.d.ts.map +1 -0
  9. package/dist/components/form/choice/ChoiceItem.js +33 -0
  10. package/dist/components/form/choice/ChoiceItem.js.map +1 -0
  11. package/dist/components/layout/list/Header.d.ts +6 -1
  12. package/dist/components/layout/list/Header.d.ts.map +1 -1
  13. package/dist/components/layout/list/Header.js +6 -1
  14. package/dist/components/layout/list/Header.js.map +1 -1
  15. package/dist/components/layout/list/Item.d.ts +3 -0
  16. package/dist/components/layout/list/Item.d.ts.map +1 -1
  17. package/dist/components/layout/list/Item.js +20 -6
  18. package/dist/components/layout/list/Item.js.map +1 -1
  19. package/dist/components/layout/list/Item.module.scss +16 -1
  20. package/dist/components/layout/list/Label.d.ts +1 -0
  21. package/dist/components/layout/list/Label.d.ts.map +1 -1
  22. package/dist/components/layout/list/Label.js +2 -1
  23. package/dist/components/layout/list/Label.js.map +1 -1
  24. package/dist/components/layout/list/List.d.ts +6 -1
  25. package/dist/components/layout/list/List.d.ts.map +1 -1
  26. package/dist/components/layout/list/List.js +16 -1
  27. package/dist/components/layout/list/List.js.map +1 -1
  28. package/dist/components/layout/list/List.module.scss +4 -0
  29. package/dist/components/layout/list/Value.d.ts +4 -1
  30. package/dist/components/layout/list/Value.d.ts.map +1 -1
  31. package/dist/components/layout/list/Value.js +2 -1
  32. package/dist/components/layout/list/Value.js.map +1 -1
  33. package/dist/components/ui/button/Button.d.ts.map +1 -1
  34. package/dist/components/ui/button/Button.js +2 -2
  35. package/dist/components/ui/button/Button.js.map +1 -1
  36. package/dist/components/ui/modal/Modal.d.ts +18 -0
  37. package/dist/components/ui/modal/Modal.d.ts.map +1 -0
  38. package/dist/components/ui/modal/Modal.js +108 -0
  39. package/dist/components/ui/modal/Modal.js.map +1 -0
  40. package/dist/components/ui/modal/Modal.module.scss +92 -0
  41. package/dist/components/ui/modal/ModalButton.d.ts +8 -0
  42. package/dist/components/ui/modal/ModalButton.d.ts.map +1 -0
  43. package/dist/components/ui/modal/ModalButton.js +31 -0
  44. package/dist/components/ui/modal/ModalButton.js.map +1 -0
  45. package/dist/components/ui/modal/ModalButtons.d.ts +10 -0
  46. package/dist/components/ui/modal/ModalButtons.d.ts.map +1 -0
  47. package/dist/components/ui/modal/ModalButtons.js +15 -0
  48. package/dist/components/ui/modal/ModalButtons.js.map +1 -0
  49. package/dist/components/ui/modal/ModalButtons.module.scss +32 -0
  50. package/dist/components/ui/modal/ModalNoMargin.d.ts +6 -0
  51. package/dist/components/ui/modal/ModalNoMargin.d.ts.map +1 -0
  52. package/dist/components/ui/modal/ModalNoMargin.js +22 -0
  53. package/dist/components/ui/modal/ModalNoMargin.js.map +1 -0
  54. package/dist/components/ui/tabs/Item.d.ts +10 -0
  55. package/dist/components/ui/tabs/Item.d.ts.map +1 -0
  56. package/dist/components/ui/tabs/Item.js +39 -0
  57. package/dist/components/ui/tabs/Item.js.map +1 -0
  58. package/dist/components/ui/tabs/Item.module.scss +11 -0
  59. package/dist/components/ui/tabs/Selector.d.ts +10 -0
  60. package/dist/components/ui/tabs/Selector.d.ts.map +1 -0
  61. package/dist/components/ui/tabs/Selector.js +46 -0
  62. package/dist/components/ui/tabs/Selector.js.map +1 -0
  63. package/dist/components/ui/tabs/Selector.module.scss +6 -0
  64. package/dist/components/ui/toaster/Notification.d.ts +9 -0
  65. package/dist/components/ui/toaster/Notification.d.ts.map +1 -0
  66. package/dist/components/ui/toaster/Notification.js +39 -0
  67. package/dist/components/ui/toaster/Notification.js.map +1 -0
  68. package/dist/components/ui/toaster/Toaster.d.ts +18 -0
  69. package/dist/components/ui/toaster/Toaster.d.ts.map +1 -0
  70. package/dist/components/ui/toaster/Toaster.js +79 -0
  71. package/dist/components/ui/toaster/Toaster.js.map +1 -0
  72. package/dist/components/ui/toaster/Toaster.module.scss +32 -0
  73. package/dist/components/ui/toaster/types.d.ts +7 -0
  74. package/dist/components/ui/toaster/types.d.ts.map +1 -0
  75. package/dist/components/ui/toaster/types.js +3 -0
  76. package/dist/components/ui/toaster/types.js.map +1 -0
  77. package/dist/global.scss +12 -0
  78. package/dist/index.d.ts +5 -0
  79. package/dist/index.d.ts.map +1 -1
  80. package/dist/index.js +5 -0
  81. package/dist/index.js.map +1 -1
  82. package/dist/types/form.d.ts +7 -0
  83. package/dist/types/form.d.ts.map +1 -0
  84. package/dist/types/form.js +3 -0
  85. package/dist/types/form.js.map +1 -0
  86. package/dist/utils/index.d.ts +3 -0
  87. package/dist/utils/index.d.ts.map +1 -0
  88. package/dist/utils/index.js +15 -0
  89. package/dist/utils/index.js.map +1 -0
  90. package/dist/utils/toObjectValue.d.ts +4 -0
  91. package/dist/utils/toObjectValue.d.ts.map +1 -0
  92. package/dist/utils/toObjectValue.js +8 -0
  93. package/dist/utils/toObjectValue.js.map +1 -0
  94. package/docs/assets/js/search.js +1 -1
  95. package/docs/assets/js/search.json +1 -1
  96. package/docs/classes/ToasterProvider.html +1096 -0
  97. package/docs/enums/ICON.html +33 -8
  98. package/docs/index.html +35 -4
  99. package/docs/modules/Item.html +17 -4
  100. package/docs/modules/List.html +17 -4
  101. package/docs/modules/Modal.html +160 -0
  102. package/docs/modules/ModalButtons.html +160 -0
  103. package/docs/modules/Section.html +16 -3
  104. package/docs/modules/StickyHeader.html +17 -4
  105. package/docs/modules.html +132 -23
  106. package/docs/pages/Tutorials/Test.html +16 -3
  107. package/esm/components/form/choice/Choice.d.ts +11 -0
  108. package/esm/components/form/choice/Choice.d.ts.map +1 -0
  109. package/esm/components/form/choice/Choice.js +13 -0
  110. package/esm/components/form/choice/Choice.js.map +1 -0
  111. package/esm/components/form/choice/Choice.module.scss +43 -0
  112. package/esm/components/form/choice/ChoiceItem.d.ts +11 -0
  113. package/esm/components/form/choice/ChoiceItem.d.ts.map +1 -0
  114. package/esm/components/form/choice/ChoiceItem.js +11 -0
  115. package/esm/components/form/choice/ChoiceItem.js.map +1 -0
  116. package/esm/components/layout/list/Header.d.ts +6 -1
  117. package/esm/components/layout/list/Header.d.ts.map +1 -1
  118. package/esm/components/layout/list/Header.js +6 -1
  119. package/esm/components/layout/list/Header.js.map +1 -1
  120. package/esm/components/layout/list/Item.d.ts +3 -0
  121. package/esm/components/layout/list/Item.d.ts.map +1 -1
  122. package/esm/components/layout/list/Item.js +20 -6
  123. package/esm/components/layout/list/Item.js.map +1 -1
  124. package/esm/components/layout/list/Item.module.scss +16 -1
  125. package/esm/components/layout/list/Label.d.ts +1 -0
  126. package/esm/components/layout/list/Label.d.ts.map +1 -1
  127. package/esm/components/layout/list/Label.js +2 -1
  128. package/esm/components/layout/list/Label.js.map +1 -1
  129. package/esm/components/layout/list/List.d.ts +6 -1
  130. package/esm/components/layout/list/List.d.ts.map +1 -1
  131. package/esm/components/layout/list/List.js +16 -1
  132. package/esm/components/layout/list/List.js.map +1 -1
  133. package/esm/components/layout/list/List.module.scss +4 -0
  134. package/esm/components/layout/list/Value.d.ts +4 -1
  135. package/esm/components/layout/list/Value.d.ts.map +1 -1
  136. package/esm/components/layout/list/Value.js +2 -1
  137. package/esm/components/layout/list/Value.js.map +1 -1
  138. package/esm/components/ui/button/Button.d.ts.map +1 -1
  139. package/esm/components/ui/button/Button.js +2 -2
  140. package/esm/components/ui/button/Button.js.map +1 -1
  141. package/esm/components/ui/modal/Modal.d.ts +18 -0
  142. package/esm/components/ui/modal/Modal.d.ts.map +1 -0
  143. package/esm/components/ui/modal/Modal.js +83 -0
  144. package/esm/components/ui/modal/Modal.js.map +1 -0
  145. package/esm/components/ui/modal/Modal.module.scss +92 -0
  146. package/esm/components/ui/modal/ModalButton.d.ts +8 -0
  147. package/esm/components/ui/modal/ModalButton.d.ts.map +1 -0
  148. package/esm/components/ui/modal/ModalButton.js +13 -0
  149. package/esm/components/ui/modal/ModalButton.js.map +1 -0
  150. package/esm/components/ui/modal/ModalButtons.d.ts +10 -0
  151. package/esm/components/ui/modal/ModalButtons.d.ts.map +1 -0
  152. package/esm/components/ui/modal/ModalButtons.js +9 -0
  153. package/esm/components/ui/modal/ModalButtons.js.map +1 -0
  154. package/esm/components/ui/modal/ModalButtons.module.scss +32 -0
  155. package/esm/components/ui/modal/ModalNoMargin.d.ts +6 -0
  156. package/esm/components/ui/modal/ModalNoMargin.d.ts.map +1 -0
  157. package/esm/components/ui/modal/ModalNoMargin.js +16 -0
  158. package/esm/components/ui/modal/ModalNoMargin.js.map +1 -0
  159. package/esm/components/ui/tabs/Item.d.ts +10 -0
  160. package/esm/components/ui/tabs/Item.d.ts.map +1 -0
  161. package/esm/components/ui/tabs/Item.js +14 -0
  162. package/esm/components/ui/tabs/Item.js.map +1 -0
  163. package/esm/components/ui/tabs/Item.module.scss +11 -0
  164. package/esm/components/ui/tabs/Selector.d.ts +10 -0
  165. package/esm/components/ui/tabs/Selector.d.ts.map +1 -0
  166. package/esm/components/ui/tabs/Selector.js +21 -0
  167. package/esm/components/ui/tabs/Selector.js.map +1 -0
  168. package/esm/components/ui/tabs/Selector.module.scss +6 -0
  169. package/esm/components/ui/toaster/Notification.d.ts +9 -0
  170. package/esm/components/ui/toaster/Notification.d.ts.map +1 -0
  171. package/esm/components/ui/toaster/Notification.js +14 -0
  172. package/esm/components/ui/toaster/Notification.js.map +1 -0
  173. package/esm/components/ui/toaster/Toaster.d.ts +18 -0
  174. package/esm/components/ui/toaster/Toaster.d.ts.map +1 -0
  175. package/esm/components/ui/toaster/Toaster.js +74 -0
  176. package/esm/components/ui/toaster/Toaster.js.map +1 -0
  177. package/esm/components/ui/toaster/Toaster.module.scss +32 -0
  178. package/esm/components/ui/toaster/types.d.ts +7 -0
  179. package/esm/components/ui/toaster/types.d.ts.map +1 -0
  180. package/esm/components/ui/toaster/types.js +2 -0
  181. package/esm/components/ui/toaster/types.js.map +1 -0
  182. package/esm/global.scss +12 -0
  183. package/esm/index.d.ts +5 -0
  184. package/esm/index.d.ts.map +1 -1
  185. package/esm/index.js +5 -0
  186. package/esm/index.js.map +1 -1
  187. package/esm/types/form.d.ts +7 -0
  188. package/esm/types/form.d.ts.map +1 -0
  189. package/esm/types/form.js +2 -0
  190. package/esm/types/form.js.map +1 -0
  191. package/esm/utils/index.d.ts +3 -0
  192. package/esm/utils/index.d.ts.map +1 -0
  193. package/esm/utils/index.js +3 -0
  194. package/esm/utils/index.js.map +1 -0
  195. package/esm/utils/toObjectValue.d.ts +4 -0
  196. package/esm/utils/toObjectValue.d.ts.map +1 -0
  197. package/esm/utils/toObjectValue.js +5 -0
  198. package/esm/utils/toObjectValue.js.map +1 -0
  199. package/package.json +6 -6
  200. package/src/components/form/choice/Choice.module.scss +43 -0
  201. package/src/components/form/choice/Choice.tsx +32 -0
  202. package/src/components/form/choice/ChoiceItem.tsx +30 -0
  203. package/src/components/layout/list/Header.tsx +16 -2
  204. package/src/components/layout/list/Item.module.scss +16 -1
  205. package/src/components/layout/list/Item.tsx +28 -7
  206. package/src/components/layout/list/Label.tsx +3 -1
  207. package/src/components/layout/list/List.module.scss +4 -0
  208. package/src/components/layout/list/List.tsx +28 -2
  209. package/src/components/layout/list/Value.tsx +7 -2
  210. package/src/components/ui/button/Button.tsx +4 -2
  211. package/src/components/ui/modal/Modal.module.scss +92 -0
  212. package/src/components/ui/modal/Modal.tsx +136 -0
  213. package/src/components/ui/modal/ModalButton.tsx +25 -0
  214. package/src/components/ui/modal/ModalButtons.module.scss +32 -0
  215. package/src/components/ui/modal/ModalButtons.tsx +17 -0
  216. package/src/components/ui/modal/ModalNoMargin.tsx +22 -0
  217. package/src/components/ui/tabs/Item.module.scss +11 -0
  218. package/src/components/ui/tabs/Item.tsx +26 -0
  219. package/src/components/ui/tabs/Selector.module.scss +6 -0
  220. package/src/components/ui/tabs/Selector.tsx +31 -0
  221. package/src/components/ui/toaster/Notification.tsx +31 -0
  222. package/src/components/ui/toaster/Toaster.module.scss +32 -0
  223. package/src/components/ui/toaster/Toaster.tsx +101 -0
  224. package/src/components/ui/toaster/types.ts +9 -0
  225. package/src/demo/Demo.tsx +7 -4
  226. package/src/demo/Menu.module.scss +1 -0
  227. package/src/demo/components/form/Choice.tsx +19 -0
  228. package/src/demo/components/layout/list/Inset.tsx +24 -0
  229. package/src/demo/components/layout/list/Selection.tsx +17 -0
  230. package/src/demo/components/ui/modal/Modal.tsx +110 -0
  231. package/src/demo/components/ui/tabs/Tabs.tsx +15 -0
  232. package/src/demo/components/ui/toaster/Toaster.tsx +28 -0
  233. package/src/demo/componentsMap.ts +41 -0
  234. package/src/global.scss +12 -0
  235. package/src/index.ts +5 -0
  236. package/src/types/form.ts +7 -0
  237. package/src/utils/index.ts +2 -0
  238. package/src/utils/toObjectValue.ts +9 -0
@@ -4,6 +4,7 @@ import { Label } from "./Label.js";
4
4
  interface LinkProps {
5
5
  href: string;
6
6
  }
7
+ declare type Variant = "inset";
7
8
  interface Props {
8
9
  href?: string;
9
10
  to?: string;
@@ -11,6 +12,8 @@ interface Props {
11
12
  className?: string;
12
13
  Link?: React.ComponentClass<LinkProps> | React.FC<LinkProps>;
13
14
  ratio?: string;
15
+ variant?: Variant | Variant[];
16
+ selected?: boolean | undefined;
14
17
  }
15
18
  interface SubComponents {
16
19
  Label: typeof Label;
@@ -1 +1 @@
1
- {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,UAAU,SAA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AE,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAClC;AAED,UAAU,aAAa;IACnB,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,KAAK,EAAE,OAAO,KAAK,CAAC;CACvB;AAMD,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,aAyD7B,CAAC;AAKF,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -3,9 +3,21 @@ import classnames from "classnames";
3
3
  import styles from "./Item.module.scss";
4
4
  import { Value } from "./Value.js";
5
5
  import { Label } from "./Label.js";
6
+ import { makeVariants } from "../../../utils/makeVariants";
7
+ import { ICON, Icon } from "../../icons/Icon";
8
+ const icon = React.createElement(Icon, { className: styles.icon, name: ICON.forward });
9
+ const noIcon = React.createElement("span", { className: styles.icon });
6
10
  const Item = (props) => {
7
- const { className, children, href, to, onClick, Link, ratio, ...restProps } = props;
11
+ const { className, children, href, to, onClick, Link, ratio, variant, selected, ...restProps } = props;
12
+ const v = makeVariants(variant);
8
13
  const cls = classnames(styles.item, className);
14
+ const innerCls = classnames(styles.content, {
15
+ [styles.inset]: v.includes("inset"),
16
+ [styles.selected]: selected,
17
+ });
18
+ const pre = typeof selected === "boolean"
19
+ ? (selected ? icon : noIcon)
20
+ : null;
9
21
  const liProps = {
10
22
  className: cls,
11
23
  };
@@ -18,7 +30,9 @@ const Item = (props) => {
18
30
  if (index in r) {
19
31
  flex = r[index];
20
32
  }
21
- return React.createElement("div", { style: { flex } }, child);
33
+ return React.createElement("div", { style: { flex } },
34
+ pre,
35
+ child);
22
36
  });
23
37
  if (to) {
24
38
  if (!Link) {
@@ -26,7 +40,7 @@ const Item = (props) => {
26
40
  }
27
41
  return React.createElement("li", { ...liProps },
28
42
  React.createElement(Link, { href: to, ...restProps },
29
- React.createElement("a", { className: styles.content }, ren)));
43
+ React.createElement("a", { className: innerCls }, ren)));
30
44
  }
31
45
  if (href) {
32
46
  const aProps = { ...restProps };
@@ -34,14 +48,14 @@ const Item = (props) => {
34
48
  aProps.onClick = onClick;
35
49
  }
36
50
  return React.createElement("li", { ...liProps },
37
- React.createElement("a", { href: href, ...aProps, className: styles.content }, ren));
51
+ React.createElement("a", { href: href, ...aProps, className: innerCls }, ren));
38
52
  }
39
53
  if (onClick) {
40
54
  return (React.createElement("li", { ...liProps },
41
- React.createElement("button", { className: classnames(styles.button, styles.content), onClick: props.onClick, ...restProps }, ren)));
55
+ React.createElement("button", { className: classnames(styles.button, innerCls), onClick: props.onClick, ...restProps }, ren)));
42
56
  }
43
57
  return React.createElement("li", { ...liProps },
44
- React.createElement("div", { ...restProps, className: styles.content }, ren));
58
+ React.createElement("div", { ...restProps, className: innerCls }, ren));
45
59
  };
46
60
  Item.Label = Label;
47
61
  Item.Value = Value;
@@ -1 +1 @@
1
- {"version":3,"file":"Item.js","sourceRoot":"","sources":["../../../../src/components/layout/list/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAqBnC,MAAM,IAAI,GAAoC,CAAC,KAAK,EAAE,EAAE;IACpD,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IACpF,MAAM,GAAG,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAE/C,MAAM,OAAO,GAAG;QACZ,SAAS,EAAE,GAAG;KACjB,CAAC;IAEF,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,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AAC,0CAA0C,CAAC,CAAC;SACnE;QAED,OAAO,+BAAQ,OAAO;YAAE,oBAAC,IAAI,IAAC,IAAI,EAAE,EAAE,KAAM,SAAS;gBAAE,2BAAG,SAAS,EAAE,QAAQ,IAAG,GAAG,CAAK,CAAO,CAAK,CAAC;KACxG;IACD,IAAI,IAAI,EAAE;QACN,MAAM,MAAM,GAAqD,EAAE,GAAG,SAAS,EAAE,CAAC;QAClF,IAAI,OAAO,EAAE;YACT,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;SAC5B;QACD,OAAO,+BAAQ,OAAO;YAAE,2BAAG,IAAI,EAAE,IAAI,KAAM,MAAM,EAAE,SAAS,EAAE,QAAQ,IAAG,GAAG,CAAK,CAAK,CAAC;KAC1F;IACD,IAAI,OAAO,EAAE;QACT,OAAO,CACH,+BAAQ,OAAO;YACX,gCAAQ,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,KAAM,SAAS,IACxF,GAAG,CACC,CACR,CACR,CAAC;KACL;IACD,OAAO,+BAAQ,OAAO;QAAE,gCAAS,SAAS,EAAE,SAAS,EAAE,QAAQ,IAAG,GAAG,CAAO,CAAK,CAAC;AACtF,CAAC,CAAC;AAEF,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;AACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;AAEnB,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -4,7 +4,7 @@
4
4
  padding: 0;
5
5
  font-size: calc(34px / var(--ratio-font));
6
6
 
7
- &:not(:first-child) > * {
7
+ &:not(:first-child) {
8
8
  border-top: 0.37px solid var(--header-border);
9
9
  }
10
10
 
@@ -29,3 +29,18 @@
29
29
  min-height: calc(174px / var(--ratio-dimensions));
30
30
  align-items: center;
31
31
  }
32
+
33
+ .inset {
34
+ padding-left: calc(37px / var(--ratio-dimensions));
35
+ padding-right: calc(37px / var(--ratio-dimensions));
36
+ }
37
+
38
+ .icon {
39
+ width: 7px;
40
+ margin-right: 10px;
41
+ display: inline-block;
42
+ }
43
+
44
+ .selected {
45
+ color: var(--main-color);
46
+ }
@@ -2,6 +2,7 @@ import React from "react";
2
2
  import type { ReactNode } from "react";
3
3
  interface Props {
4
4
  sub?: ReactNode;
5
+ className?: string;
5
6
  }
6
7
  declare const Label: React.FC<Props>;
7
8
  export { Label };
@@ -1 +1 @@
1
- {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,UAAU,KAAK;IACX,GAAG,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAS1B,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,UAAU,KAAK;IACX,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAS1B,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import React from "react";
2
+ import classnames from "classnames";
2
3
  import styles from "./Label.module.scss";
3
4
  const Label = (props) => {
4
5
  const sub = props.sub ? React.createElement("div", { className: styles.sub }, props.sub) : null;
5
- return (React.createElement("div", { className: styles.root },
6
+ return (React.createElement("div", { className: classnames(styles.root, props.className) },
6
7
  React.createElement("div", null, props.children),
7
8
  sub));
8
9
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Label.js","sourceRoot":"","sources":["../../../../src/components/layout/list/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAMzC,MAAM,KAAK,GAAoB,CAAC,KAAK,EAAE,EAAE;IACrC,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,6BAAK,SAAS,EAAE,MAAM,CAAC,GAAG,IAAG,KAAK,CAAC,GAAG,CAAO,CAAC,CAAC,CAAC,IAAI,CAAC;IAE7E,OAAO,CACH,6BAAK,SAAS,EAAE,MAAM,CAAC,IAAI;QACvB,iCAAM,KAAK,CAAC,QAAQ,CAAO;QAC1B,GAAG,CACF,CACT,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"Label.js","sourceRoot":"","sources":["../../../../src/components/layout/list/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAGpC,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAOzC,MAAM,KAAK,GAAoB,CAAC,KAAK,EAAE,EAAE;IACrC,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,6BAAK,SAAS,EAAE,MAAM,CAAC,GAAG,IAAG,KAAK,CAAC,GAAG,CAAO,CAAC,CAAC,CAAC,IAAI,CAAC;IAE7E,OAAO,CACH,6BAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;QACpD,iCAAM,KAAK,CAAC,QAAQ,CAAO;QAC1B,GAAG,CACF,CACT,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -1,8 +1,13 @@
1
1
  import React from "react";
2
2
  import { Header } from "./Header.js";
3
+ declare type Variant = "inset";
4
+ interface Props {
5
+ className?: string;
6
+ variant?: Variant | Variant[];
7
+ }
3
8
  interface SubComponents {
4
9
  Header: typeof Header;
5
10
  }
6
- declare const List: React.FC & SubComponents;
11
+ declare const List: React.FC<Props> & SubComponents;
7
12
  export { List };
8
13
  //# sourceMappingURL=List.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/List.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGrC,UAAU,aAAa;IACnB,MAAM,EAAE,OAAO,MAAM,CAAC;CACzB;AAED,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,GAAG,aAItB,CAAC;AAIF,OAAO,EAAE,IAAI,EAAE,CAAC"}
1
+ {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/List.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAKrC,aAAK,OAAO,GAAG,OAAO,CAAC;AAEvB,UAAU,KAAK;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,EAAE,CAAC;CACjC;AAED,UAAU,aAAa;IACnB,MAAM,EAAE,OAAO,MAAM,CAAC;CACzB;AAED,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,aAoB7B,CAAC;AAIF,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -1,8 +1,23 @@
1
1
  import React from "react";
2
+ import classnames from "classnames";
2
3
  import { Header } from "./Header.js";
4
+ import { makeVariants } from "../../../utils/makeVariants";
5
+ import { Item } from "./Item";
3
6
  import styles from "./List.module.scss";
4
7
  const List = (props) => {
5
- return (React.createElement("ul", { className: styles.list }, props.children));
8
+ const v = makeVariants(props.variant);
9
+ const chld = React.Children.map(props.children, (child) => {
10
+ if (child && typeof child === "object" && "type" in child && (child.type === Item || child.type === Header)) {
11
+ return React.cloneElement(child, {
12
+ variant: props.variant,
13
+ });
14
+ }
15
+ return child;
16
+ });
17
+ const cls = classnames(props.className, styles.list, {
18
+ [styles.inset]: v.includes("inset"),
19
+ });
20
+ return (React.createElement("ul", { className: cls }, chld));
6
21
  };
7
22
  List.Header = Header;
8
23
  export { List };
@@ -1 +1 @@
1
- {"version":3,"file":"List.js","sourceRoot":"","sources":["../../../../src/components/layout/list/List.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAMxC,MAAM,IAAI,GAA6B,CAAC,KAAK,EAAE,EAAE;IAC7C,OAAO,CACH,4BAAI,SAAS,EAAE,MAAM,CAAC,IAAI,IAAG,KAAK,CAAC,QAAQ,CAAM,CACpD,CAAC;AACN,CAAC,CAAC;AAEF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AAErB,OAAO,EAAE,IAAI,EAAE,CAAC"}
1
+ {"version":3,"file":"List.js","sourceRoot":"","sources":["../../../../src/components/layout/list/List.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAaxC,MAAM,IAAI,GAAoC,CAAC,KAAK,EAAE,EAAE;IACpD,MAAM,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAEtC,MAAM,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;QACtD,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,EAAE;YACzG,OAAO,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE;gBAE7B,OAAO,EAAE,KAAK,CAAC,OAAO;aACzB,CAAC,CAAC;SACN;QACD,OAAO,KAAK,CAAC;IACjB,CAAC,CAAC,CAAC;IAEH,MAAM,GAAG,GAAG,UAAU,CAAC,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE;QACjD,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;KACtC,CAAC,CAAC;IAEH,OAAO,CACH,4BAAI,SAAS,EAAE,GAAG,IAAG,IAAI,CAAM,CAClC,CAAC;AACN,CAAC,CAAC;AAEF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AAErB,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -2,3 +2,7 @@
2
2
  margin: 0 23px;
3
3
  padding: 0;
4
4
  }
5
+
6
+ .inset {
7
+ margin: 0;
8
+ }
@@ -1,4 +1,7 @@
1
1
  import React from "react";
2
- declare const Value: React.FC;
2
+ interface Props {
3
+ className?: string;
4
+ }
5
+ declare const Value: React.FC<Props>;
3
6
  export { Value };
4
7
  //# sourceMappingURL=Value.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Value.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/Value.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAIlB,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"Value.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/Value.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,KAAK;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAI1B,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
+ import classnames from "classnames";
2
3
  import styles from "./Value.module.scss";
3
4
  const Value = (props) => {
4
- return (React.createElement("div", { className: styles.value }, props.children));
5
+ return (React.createElement("div", { className: classnames(styles.value, props.className) }, props.children));
5
6
  };
6
7
  export { Value };
7
8
  //# sourceMappingURL=Value.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Value.js","sourceRoot":"","sources":["../../../../src/components/layout/list/Value.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,KAAK,GAAa,CAAC,KAAK,EAAE,EAAE;IAC9B,OAAO,CACH,6BAAK,SAAS,EAAE,MAAM,CAAC,KAAK,IAAG,KAAK,CAAC,QAAQ,CAAO,CACvD,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"Value.js","sourceRoot":"","sources":["../../../../src/components/layout/list/Value.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAMzC,MAAM,KAAK,GAAoB,CAAC,KAAK,EAAE,EAAE;IACrC,OAAO,CACH,6BAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,IAAG,KAAK,CAAC,QAAQ,CAAO,CACpF,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,KAAK;IACX,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAClC;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAgB3E,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,KAAK;IACX,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAClC;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAkB3E,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -2,8 +2,8 @@ import React from "react";
2
2
  import classnames from "classnames";
3
3
  import styles from "./Button.module.scss";
4
4
  import { makeVariants } from "../../../utils/makeVariants.js";
5
- const Button = ({ className, children, ...props }) => {
6
- const variants = makeVariants(props.variant);
5
+ const Button = ({ className, children, variant, ...props }) => {
6
+ const variants = makeVariants(variant);
7
7
  const cls = classnames(styles.btn, {
8
8
  [styles["btn--inline"]]: variants.includes("inline"),
9
9
  [styles["btn--outline"]]: variants.includes("outline"),
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,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AC,MAAM,CAAC,aAAa,CAAC,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC;QACpD,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC;KACzD,EAAE,SAAS,CAAC,CAAC;IAEd,OAAO,CACH,mCACQ,KAAK,EACT,SAAS,EAAE,GAAG,EACd,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAC1B,QAAQ,CACD,CACZ,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import { ModalNegateMargin } from "./ModalNoMargin";
3
+ declare type Variant = "bottom" | "full";
4
+ interface Props {
5
+ onOverlayClick?: (() => void) | "close" | null;
6
+ closeOnEsc?: boolean;
7
+ onClose: () => void;
8
+ isOpen: boolean;
9
+ title?: React.ReactNode;
10
+ className?: string;
11
+ variant?: Variant | Variant[];
12
+ }
13
+ interface SubComponents {
14
+ NegateMargin: typeof ModalNegateMargin;
15
+ }
16
+ declare const Modal: React.FC<Props> & SubComponents;
17
+ export { Modal };
18
+ //# sourceMappingURL=Modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAKxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,aAAK,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEjC,UAAU,KAAK;IACX,cAAc,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC;IAC/C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,EAAE,CAAC;CACjC;AAED,UAAU,aAAa;IACnB,YAAY,EAAE,OAAO,iBAAiB,CAAC;CAC1C;AAGD,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,aA4G9B,CAAC;AAGF,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -0,0 +1,83 @@
1
+ import React, { useCallback, useEffect, useRef, useState } from "react";
2
+ import classnames from "classnames";
3
+ import styles from "./Modal.module.scss";
4
+ import { makeVariants } from "../../../utils/makeVariants";
5
+ import { ModalNegateMargin } from "./ModalNoMargin";
6
+ const Modal = ({ children, onClose, isOpen, title, className, onOverlayClick = "close", closeOnEsc = true, variant, }) => {
7
+ const [isClosing, setIsClosing] = useState(false);
8
+ const [isRendered, setIsRendered] = useState(false);
9
+ const overlayRef = useRef(null);
10
+ const containerRef = useRef(null);
11
+ const v = makeVariants(variant);
12
+ useEffect(() => {
13
+ if (!isOpen || !closeOnEsc) {
14
+ return;
15
+ }
16
+ const onKeyDown = (e) => {
17
+ if (e.key === "Escape") {
18
+ onClose();
19
+ }
20
+ };
21
+ document.addEventListener("keydown", onKeyDown);
22
+ return () => {
23
+ document.removeEventListener("keydown", onKeyDown);
24
+ };
25
+ }, [isOpen, closeOnEsc]);
26
+ useEffect(() => {
27
+ if (!isOpen) {
28
+ setIsClosing(true);
29
+ return;
30
+ }
31
+ setIsRendered(true);
32
+ setIsClosing(false);
33
+ }, [isOpen]);
34
+ useEffect(() => {
35
+ if (!isClosing) {
36
+ return;
37
+ }
38
+ if (!overlayRef.current || !containerRef.current) {
39
+ return;
40
+ }
41
+ overlayRef.current.style.animation = "none";
42
+ containerRef.current.style.animation = "none";
43
+ overlayRef.current.offsetHeight;
44
+ overlayRef.current.style.removeProperty("animation");
45
+ containerRef.current.style.removeProperty("animation");
46
+ }, [isClosing]);
47
+ const titleElem = title && React.createElement("div", { className: styles.title }, title);
48
+ const handleOverlayClick = useCallback((e) => {
49
+ if (e.target !== e.currentTarget) {
50
+ return;
51
+ }
52
+ if (onOverlayClick === "close") {
53
+ onClose();
54
+ }
55
+ if (typeof onOverlayClick === "function") {
56
+ onOverlayClick();
57
+ }
58
+ }, [onOverlayClick, onClose]);
59
+ const handleAnimationEnd = useCallback(() => {
60
+ if (isOpen) {
61
+ return;
62
+ }
63
+ setIsRendered(false);
64
+ }, [isOpen]);
65
+ if (!isRendered) {
66
+ return null;
67
+ }
68
+ const overlayCls = classnames(styles.overlay, {
69
+ [styles.isClosing]: isClosing,
70
+ [styles.overlayOnBottom]: v.includes("bottom"),
71
+ });
72
+ const containerCls = classnames(styles.container, className, {
73
+ [styles.isClosing]: isClosing,
74
+ [styles.full]: v.includes("full"),
75
+ });
76
+ return (React.createElement("div", { className: overlayCls, onClick: handleOverlayClick, ref: overlayRef, onAnimationEnd: handleAnimationEnd },
77
+ React.createElement("div", { className: containerCls, ref: containerRef },
78
+ titleElem,
79
+ children)));
80
+ };
81
+ Modal.NegateMargin = ModalNegateMargin;
82
+ export { Modal };
83
+ //# sourceMappingURL=Modal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../../src/components/ui/modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAmBpD,MAAM,KAAK,GAAoC,CAAC,EAC5C,QAAQ,EACR,OAAO,EACP,MAAM,EACN,KAAK,EACL,SAAS,EACT,cAAc,GAAG,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,CAAC;KACjD,CAAC,CAAC;IAEH,MAAM,YAAY,GAAG,UAAU,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE;QACzD,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,SAAS;QAC7B,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;KACpC,CAAC,CAAC;IAEH,OAAO,CACH,6BACI,SAAS,EAAE,UAAU,EACrB,OAAO,EAAE,kBAAkB,EAC3B,GAAG,EAAE,UAAU,EACf,cAAc,EAAE,kBAAkB;QAElC,6BAAK,SAAS,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY;YAC1C,SAAS;YACT,QAAQ,CACP,CACJ,CACT,CAAC;AACN,CAAC,CAAC;AACF,KAAK,CAAC,YAAY,GAAG,iBAAiB,CAAC;AAEvC,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -0,0 +1,92 @@
1
+ @keyframes overlay {
2
+ from {
3
+ background: #00000000;
4
+ }
5
+
6
+ to {
7
+ background: #0000004c;
8
+ }
9
+ }
10
+
11
+ .overlay {
12
+ position: fixed;
13
+ z-index: 4;
14
+ top: 0;
15
+ bottom: 0;
16
+ left: 0;
17
+ right: 0;
18
+ display: flex;
19
+ align-items: center;
20
+ justify-content: center;
21
+ animation: overlay 300ms;
22
+ animation-fill-mode: forwards;
23
+ }
24
+
25
+ .overlayOnBottom {
26
+ align-items: flex-end;
27
+ padding-bottom: calc(24px / var(--ratio-dimensions));
28
+ }
29
+
30
+ @keyframes container {
31
+ from {
32
+ transform: translateY(30px);
33
+ opacity: 0;
34
+ }
35
+
36
+ to {
37
+ transform: translateY(0);
38
+ opacity: 1;
39
+ }
40
+ }
41
+
42
+ .container {
43
+ background: var(--modal-bg);
44
+ border-radius: calc(12px / var(--ratio-dimensions));
45
+ max-width: 333px;
46
+ width: calc(100% - 30px);
47
+ padding: 20px;
48
+ position: relative;
49
+ box-sizing: border-box;
50
+ animation: container 300ms;
51
+ animation-fill-mode: forwards;
52
+ }
53
+
54
+ .full {
55
+ width: calc(100vw - 30px);
56
+ max-width: 1000px;
57
+ }
58
+
59
+ .isClosing {
60
+ // keep this after .overlay .container to prevent overwriting
61
+ animation-direction: reverse;
62
+ }
63
+
64
+ .close {
65
+ position: absolute;
66
+ top: 20px;
67
+ right: 20px;
68
+ background: none;
69
+ border: none;
70
+ padding: 0;
71
+ margin: 0;
72
+
73
+ + .title {
74
+ margin-right: 40px;
75
+ margin-top: -4px;
76
+ }
77
+ }
78
+
79
+ .title {
80
+ font-size: calc(40px / var(--ratio-font));
81
+ text-align: center;
82
+ color: black;
83
+ margin: calc(90px / var(--ratio-dimensions)) 0;
84
+ }
85
+
86
+ .negateMargin {
87
+ margin: 0 -20px -20px;
88
+ }
89
+
90
+ .removeMargin {
91
+ margin: 0;
92
+ }
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ declare type Variant = "main";
3
+ interface Props {
4
+ variant?: Variant | Variant[];
5
+ }
6
+ declare const ModalButton: React.FC<React.ButtonHTMLAttributes<HTMLButtonElement> & Props>;
7
+ export { ModalButton };
8
+ //# sourceMappingURL=ModalButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalButton.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,aAAK,OAAO,GAAG,MAAM,CAAC;AAEtB,UAAU,KAAK;IACX,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,EAAE,CAAC;CACjC;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAUhF,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import styles from "./ModalButtons.module.scss";
3
+ import { makeVariants } from "../../../utils/makeVariants";
4
+ import classnames from "classnames";
5
+ const ModalButton = ({ className, children, variant, ...props }) => {
6
+ const v = makeVariants(variant);
7
+ const cls = classnames(styles.button, {
8
+ [styles.buttonMain]: v.includes("main"),
9
+ }, className);
10
+ return React.createElement("button", { ...props, className: cls }, children);
11
+ };
12
+ export { ModalButton };
13
+ //# sourceMappingURL=ModalButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalButton.js","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,UAAU,MAAM,YAAY,CAAC;AAQpC,MAAM,WAAW,GAAoE,CAAC,EAClF,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,KAAK,EACzC,EAAE,EAAE;IACD,MAAM,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IAEhC,MAAM,GAAG,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE;QAClC,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;KAC1C,EAAE,SAAS,CAAC,CAAC;IAEd,OAAO,mCAAY,KAAK,EAAE,SAAS,EAAE,GAAG,IAAG,QAAQ,CAAU,CAAC;AAClE,CAAC,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { ModalButton } from "./ModalButton";
3
+ interface Props {
4
+ }
5
+ interface SubComponents {
6
+ Button: typeof ModalButton;
7
+ }
8
+ declare const ModalButtons: React.FC<Props> & SubComponents;
9
+ export { ModalButtons };
10
+ //# sourceMappingURL=ModalButtons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,UAAU,KAAK;CAAG;AAElB,UAAU,aAAa;IACnB,MAAM,EAAE,OAAO,WAAW,CAAC;CAC9B;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,aAErC,CAAC;AAGF,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { ModalButton } from "./ModalButton";
3
+ import styles from "./ModalButtons.module.scss";
4
+ const ModalButtons = (props) => {
5
+ return React.createElement("div", { className: styles.container }, props.children);
6
+ };
7
+ ModalButtons.Button = ModalButton;
8
+ export { ModalButtons };
9
+ //# sourceMappingURL=ModalButtons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalButtons.js","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAQhD,MAAM,YAAY,GAAoC,CAAC,KAAK,EAAE,EAAE;IAC5D,OAAO,6BAAK,SAAS,EAAE,MAAM,CAAC,SAAS,IAAG,KAAK,CAAC,QAAQ,CAAO,CAAC;AACpE,CAAC,CAAC;AACF,YAAY,CAAC,MAAM,GAAG,WAAW,CAAC;AAElC,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,32 @@
1
+ .container {
2
+ display: flex;
3
+ margin-top: calc(100px / var(--ratio-dimensions));
4
+ margin-left: -20px;
5
+ margin-right: -20px;
6
+ margin-bottom: -20px;
7
+ }
8
+
9
+ .button {
10
+ border: none;
11
+ border-top: 1px solid var(--modal-button-border);
12
+ background: var(--modal-button-bg);
13
+ flex: 1;
14
+ height: calc(156px / var(--ratio-dimensions));
15
+ font-weight: 500;
16
+
17
+ &:not(:first-child) {
18
+ border-left: 1px solid var(--modal-button-border);
19
+ }
20
+
21
+ &:first-child {
22
+ border-bottom-left-radius: calc(12px / var(--ratio-dimensions));
23
+ }
24
+
25
+ &:last-child {
26
+ border-bottom-right-radius: calc(12px / var(--ratio-dimensions));
27
+ }
28
+ }
29
+
30
+ .buttonMain {
31
+ color: var(--main-color);
32
+ }
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ interface Props {
3
+ }
4
+ declare const ModalNegateMargin: React.FC<Props>;
5
+ export { ModalNegateMargin };
6
+ //# sourceMappingURL=ModalNoMargin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalNoMargin.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalNoMargin.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,KAAK;CAAG;AAElB,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAYtC,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import styles from "./Modal.module.scss";
3
+ import { List } from "../../layout/list/List";
4
+ const ModalNegateMargin = (props) => {
5
+ const chld = React.Children.map(props.children, (child, index) => {
6
+ if (child && typeof child === "object" && "type" in child && child.type === List) {
7
+ return React.cloneElement(child, {
8
+ className: styles.removeMargin,
9
+ });
10
+ }
11
+ return child;
12
+ });
13
+ return React.createElement("div", { className: styles.negateMargin }, chld);
14
+ };
15
+ export { ModalNegateMargin };
16
+ //# sourceMappingURL=ModalNoMargin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalNoMargin.js","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalNoMargin.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAI9C,MAAM,iBAAiB,GAAoB,CAAC,KAAK,EAAE,EAAE;IACjD,MAAM,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;QAC7D,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,EAAE;YAC9E,OAAO,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE;gBAE7B,SAAS,EAAE,MAAM,CAAC,YAAY;aACjC,CAAC,CAAC;SACN;QAED,OAAO,KAAK,CAAC;IACjB,CAAC,CAAC,CAAC;IACH,OAAO,6BAAK,SAAS,EAAE,MAAM,CAAC,YAAY,IAAG,IAAI,CAAO,CAAC;AAC7D,CAAC,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import type { ObjectValue } from "../../../types/form";
3
+ interface Props {
4
+ value: ObjectValue;
5
+ onClick: (value: string) => void;
6
+ active: boolean;
7
+ }
8
+ declare const Item: React.FC<Props>;
9
+ export { Item };
10
+ //# sourceMappingURL=Item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/tabs/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAG3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIvD,UAAU,KAAK;IACX,KAAK,EAAE,WAAW,CAAC;IACnB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,MAAM,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAUzB,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,CAAC"}