react-miui 0.21.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (340) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/components/form/Checkbox.js.map +1 -1
  3. package/dist/components/form/Label.js.map +1 -1
  4. package/dist/components/form/Select.d.ts +1 -5
  5. package/dist/components/form/Select.d.ts.map +1 -1
  6. package/dist/components/form/Select.js +2 -23
  7. package/dist/components/form/Select.js.map +1 -1
  8. package/dist/components/form/Select.stories.d.ts +8 -0
  9. package/dist/components/form/Select.stories.d.ts.map +1 -0
  10. package/dist/components/form/Select.stories.js +26 -0
  11. package/dist/components/form/Select.stories.js.map +1 -0
  12. package/dist/components/form/Select.styled.d.ts +82 -0
  13. package/dist/components/form/Select.styled.d.ts.map +1 -0
  14. package/dist/components/form/Select.styled.js +24 -0
  15. package/dist/components/form/Select.styled.js.map +1 -0
  16. package/dist/components/form/Toggle.js.map +1 -1
  17. package/dist/components/form/choice/Choice.d.ts.map +1 -1
  18. package/dist/components/form/choice/Choice.js.map +1 -1
  19. package/dist/components/form/input/Input.d.ts.map +1 -1
  20. package/dist/components/form/input/Input.js +1 -1
  21. package/dist/components/form/input/Input.js.map +1 -1
  22. package/dist/components/form/textarea/TextArea.styled.d.ts.map +1 -1
  23. package/dist/components/form/textarea/TextArea.styled.js.map +1 -1
  24. package/dist/components/layout/card/Card.js.map +1 -1
  25. package/dist/components/layout/header/Header.js.map +1 -1
  26. package/dist/components/layout/header/HeaderIconAction.js.map +1 -1
  27. package/dist/components/layout/header/StickyHeader.d.ts.map +1 -1
  28. package/dist/components/layout/header/StickyHeader.js.map +1 -1
  29. package/dist/components/layout/table/Table.js.map +1 -1
  30. package/dist/components/ui/action/Action.d.ts +1 -0
  31. package/dist/components/ui/action/Action.d.ts.map +1 -1
  32. package/dist/components/ui/action/EqualActions.d.ts.map +1 -1
  33. package/dist/components/ui/action/EqualActions.js.map +1 -1
  34. package/dist/components/ui/button/Button.d.ts +1 -7
  35. package/dist/components/ui/button/Button.d.ts.map +1 -1
  36. package/dist/components/ui/button/Button.js +2 -28
  37. package/dist/components/ui/button/Button.js.map +1 -1
  38. package/dist/components/ui/button/Button.stories.d.ts +9 -0
  39. package/dist/components/ui/button/Button.stories.d.ts.map +1 -0
  40. package/dist/components/ui/button/Button.stories.js +62 -0
  41. package/dist/components/ui/button/Button.stories.js.map +1 -0
  42. package/dist/components/ui/button/Button.styled.d.ts +85 -0
  43. package/dist/components/ui/button/Button.styled.d.ts.map +1 -0
  44. package/dist/components/ui/button/Button.styled.js +38 -0
  45. package/dist/components/ui/button/Button.styled.js.map +1 -0
  46. package/dist/components/ui/directionPad/Pad.d.ts.map +1 -1
  47. package/dist/components/ui/directionPad/Pad.js.map +1 -1
  48. package/dist/components/ui/keyValue/KeyValue.js.map +1 -1
  49. package/dist/components/ui/modal/Modal.d.ts +6 -4
  50. package/dist/components/ui/modal/Modal.d.ts.map +1 -1
  51. package/dist/components/ui/modal/Modal.js +30 -21
  52. package/dist/components/ui/modal/Modal.js.map +1 -1
  53. package/dist/components/ui/modal/Modal.stories.d.ts +10 -0
  54. package/dist/components/ui/modal/Modal.stories.d.ts.map +1 -0
  55. package/dist/components/ui/modal/Modal.stories.js +112 -0
  56. package/dist/components/ui/modal/Modal.stories.js.map +1 -0
  57. package/dist/components/ui/modal/Modal.styled.d.ts +329 -0
  58. package/dist/components/ui/modal/Modal.styled.d.ts.map +1 -0
  59. package/dist/components/ui/modal/Modal.styled.js +90 -0
  60. package/dist/components/ui/modal/Modal.styled.js.map +1 -0
  61. package/dist/components/ui/modal/ModalButton.js.map +1 -1
  62. package/dist/components/ui/modal/ModalButtons.d.ts +1 -11
  63. package/dist/components/ui/modal/ModalButtons.d.ts.map +1 -1
  64. package/dist/components/ui/modal/ModalButtons.js +2 -12
  65. package/dist/components/ui/modal/ModalButtons.js.map +1 -1
  66. package/dist/components/ui/modal/ModalButtons.stories.d.ts +8 -0
  67. package/dist/components/ui/modal/ModalButtons.stories.d.ts.map +1 -0
  68. package/dist/components/ui/modal/ModalButtons.stories.js +25 -0
  69. package/dist/components/ui/modal/ModalButtons.stories.js.map +1 -0
  70. package/dist/components/ui/modal/ModalButtons.styled.d.ts +166 -0
  71. package/dist/components/ui/modal/ModalButtons.styled.d.ts.map +1 -0
  72. package/dist/components/ui/modal/ModalButtons.styled.js +42 -0
  73. package/dist/components/ui/modal/ModalButtons.styled.js.map +1 -0
  74. package/dist/components/ui/pop/Pop.d.ts.map +1 -1
  75. package/dist/components/ui/pop/Pop.js.map +1 -1
  76. package/dist/components/ui/stats/Stats.js.map +1 -1
  77. package/dist/components/ui/tabs/Item.js.map +1 -1
  78. package/dist/components/ui/tabs/Selector.d.ts.map +1 -1
  79. package/dist/components/ui/tabs/Selector.js.map +1 -1
  80. package/dist/components/ui/toaster/Notification.js.map +1 -1
  81. package/docs/assets/search.js +1 -1
  82. package/docs/classes/Drawer.html +30 -31
  83. package/docs/classes/Pop.html +32 -33
  84. package/docs/classes/ToasterProvider.html +29 -30
  85. package/docs/enums/ICON.html +14 -15
  86. package/docs/functions/Action.html +9 -9
  87. package/docs/functions/Button.html +44 -11
  88. package/docs/functions/Card.html +7 -7
  89. package/docs/functions/Checkbox.html +7 -7
  90. package/docs/functions/Choice.html +7 -7
  91. package/docs/functions/CoveringLoader.html +7 -7
  92. package/docs/functions/DirectionPad.html +7 -7
  93. package/docs/functions/EqualActions.html +7 -7
  94. package/docs/functions/FullLoader.html +7 -7
  95. package/docs/functions/HandleEsc.html +7 -7
  96. package/docs/functions/Header.html +7 -7
  97. package/docs/functions/HeaderIconAction.html +7 -7
  98. package/docs/functions/Icon-1.html +7 -7
  99. package/docs/functions/If.html +7 -7
  100. package/docs/functions/Input.html +7 -7
  101. package/docs/functions/KeyValue.html +7 -7
  102. package/docs/functions/Label.html +7 -7
  103. package/docs/functions/List-1.html +7 -7
  104. package/docs/functions/Loader.html +7 -7
  105. package/docs/functions/Loading.html +7 -7
  106. package/docs/functions/Message.html +9 -9
  107. package/docs/functions/Modal-1.html +7 -7
  108. package/docs/functions/ModalButtons.html +136 -0
  109. package/docs/functions/PopLoader.html +7 -7
  110. package/docs/functions/PopOption.html +7 -7
  111. package/docs/functions/SearchContainer.html +7 -7
  112. package/docs/functions/Section.html +9 -9
  113. package/docs/functions/Select.html +40 -11
  114. package/docs/functions/Selector.html +7 -7
  115. package/docs/functions/Spacer.html +7 -7
  116. package/docs/functions/Stats.html +7 -7
  117. package/docs/functions/StickyHeader-1.html +7 -7
  118. package/docs/functions/StickyHeader.Content.html +5 -6
  119. package/docs/functions/Table.html +7 -7
  120. package/docs/functions/TextArea.html +7 -7
  121. package/docs/functions/Toggle.html +7 -7
  122. package/docs/functions/getCssText.html +7 -7
  123. package/docs/functions/styled.html +7 -7
  124. package/docs/functions/useToaster.html +7 -7
  125. package/docs/index.html +6 -6
  126. package/docs/interfaces/ActionProps.html +122 -0
  127. package/docs/modules/List.html +7 -8
  128. package/docs/modules/Modal.html +8 -9
  129. package/docs/modules/StickyHeader.html +6 -7
  130. package/docs/modules.html +11 -8
  131. package/docs/pages/tutorials/Test.html +6 -6
  132. package/docs/types/ThemeCSS.html +7 -7
  133. package/docs/variables/List.Header.html +5 -6
  134. package/docs/variables/List.Item.html +5 -6
  135. package/docs/variables/{ModalButtons.Button.html → Modal.RemovePadding.html} +11 -12
  136. package/docs/variables/cssReset.html +7 -7
  137. package/docs/variables/miuiScrollbars.html +7 -7
  138. package/esm/components/form/Checkbox.js.map +1 -1
  139. package/esm/components/form/Label.js.map +1 -1
  140. package/esm/components/form/Select.d.ts +1 -5
  141. package/esm/components/form/Select.d.ts.map +1 -1
  142. package/esm/components/form/Select.js +1 -8
  143. package/esm/components/form/Select.js.map +1 -1
  144. package/esm/components/form/Select.stories.d.ts +8 -0
  145. package/esm/components/form/Select.stories.d.ts.map +1 -0
  146. package/esm/components/form/Select.stories.js +20 -0
  147. package/esm/components/form/Select.stories.js.map +1 -0
  148. package/esm/components/form/Select.styled.d.ts +82 -0
  149. package/esm/components/form/Select.styled.d.ts.map +1 -0
  150. package/esm/components/form/Select.styled.js +21 -0
  151. package/esm/components/form/Select.styled.js.map +1 -0
  152. package/esm/components/form/Toggle.js.map +1 -1
  153. package/esm/components/form/choice/Choice.d.ts.map +1 -1
  154. package/esm/components/form/choice/Choice.js.map +1 -1
  155. package/esm/components/form/input/Input.d.ts.map +1 -1
  156. package/esm/components/form/input/Input.js +1 -1
  157. package/esm/components/form/input/Input.js.map +1 -1
  158. package/esm/components/form/input/Input.stories.js +1 -1
  159. package/esm/components/form/textarea/TextArea.js +1 -1
  160. package/esm/components/form/textarea/TextArea.styled.d.ts.map +1 -1
  161. package/esm/components/form/textarea/TextArea.styled.js +2 -2
  162. package/esm/components/form/textarea/TextArea.styled.js.map +1 -1
  163. package/esm/components/layout/card/Card.js.map +1 -1
  164. package/esm/components/layout/header/Header.js.map +1 -1
  165. package/esm/components/layout/header/HeaderIconAction.js.map +1 -1
  166. package/esm/components/layout/header/StickyHeader.d.ts.map +1 -1
  167. package/esm/components/layout/header/StickyHeader.js.map +1 -1
  168. package/esm/components/layout/table/Table.js.map +1 -1
  169. package/esm/components/ui/action/Action.d.ts +1 -0
  170. package/esm/components/ui/action/Action.d.ts.map +1 -1
  171. package/esm/components/ui/action/EqualActions.d.ts.map +1 -1
  172. package/esm/components/ui/action/EqualActions.js.map +1 -1
  173. package/esm/components/ui/button/Button.d.ts +1 -7
  174. package/esm/components/ui/button/Button.d.ts.map +1 -1
  175. package/esm/components/ui/button/Button.js +1 -13
  176. package/esm/components/ui/button/Button.js.map +1 -1
  177. package/esm/components/ui/button/Button.stories.d.ts +9 -0
  178. package/esm/components/ui/button/Button.stories.d.ts.map +1 -0
  179. package/esm/components/ui/button/Button.stories.js +35 -0
  180. package/esm/components/ui/button/Button.stories.js.map +1 -0
  181. package/esm/components/ui/button/Button.styled.d.ts +85 -0
  182. package/esm/components/ui/button/Button.styled.d.ts.map +1 -0
  183. package/esm/components/ui/button/Button.styled.js +35 -0
  184. package/esm/components/ui/button/Button.styled.js.map +1 -0
  185. package/esm/components/ui/directionPad/Pad.d.ts.map +1 -1
  186. package/esm/components/ui/directionPad/Pad.js.map +1 -1
  187. package/esm/components/ui/keyValue/KeyValue.js.map +1 -1
  188. package/esm/components/ui/modal/Modal.d.ts +6 -4
  189. package/esm/components/ui/modal/Modal.d.ts.map +1 -1
  190. package/esm/components/ui/modal/Modal.js +30 -18
  191. package/esm/components/ui/modal/Modal.js.map +1 -1
  192. package/esm/components/ui/modal/Modal.stories.d.ts +10 -0
  193. package/esm/components/ui/modal/Modal.stories.d.ts.map +1 -0
  194. package/esm/components/ui/modal/Modal.stories.js +84 -0
  195. package/esm/components/ui/modal/Modal.stories.js.map +1 -0
  196. package/esm/components/ui/modal/Modal.styled.d.ts +329 -0
  197. package/esm/components/ui/modal/Modal.styled.d.ts.map +1 -0
  198. package/esm/components/ui/modal/Modal.styled.js +83 -0
  199. package/esm/components/ui/modal/Modal.styled.js.map +1 -0
  200. package/esm/components/ui/modal/ModalButton.js.map +1 -1
  201. package/esm/components/ui/modal/ModalButtons.d.ts +1 -11
  202. package/esm/components/ui/modal/ModalButtons.d.ts.map +1 -1
  203. package/esm/components/ui/modal/ModalButtons.js +1 -9
  204. package/esm/components/ui/modal/ModalButtons.js.map +1 -1
  205. package/esm/components/ui/modal/ModalButtons.stories.d.ts +8 -0
  206. package/esm/components/ui/modal/ModalButtons.stories.d.ts.map +1 -0
  207. package/esm/components/ui/modal/ModalButtons.stories.js +19 -0
  208. package/esm/components/ui/modal/ModalButtons.stories.js.map +1 -0
  209. package/esm/components/ui/modal/ModalButtons.styled.d.ts +166 -0
  210. package/esm/components/ui/modal/ModalButtons.styled.d.ts.map +1 -0
  211. package/esm/components/ui/modal/ModalButtons.styled.js +39 -0
  212. package/esm/components/ui/modal/ModalButtons.styled.js.map +1 -0
  213. package/esm/components/ui/pop/Pop.d.ts.map +1 -1
  214. package/esm/components/ui/pop/Pop.js.map +1 -1
  215. package/esm/components/ui/stats/Stats.js.map +1 -1
  216. package/esm/components/ui/tabs/Item.js.map +1 -1
  217. package/esm/components/ui/tabs/Selector.d.ts.map +1 -1
  218. package/esm/components/ui/tabs/Selector.js.map +1 -1
  219. package/esm/components/ui/toaster/Notification.js.map +1 -1
  220. package/package.json +18 -17
  221. package/pnpm-lock.yaml +11957 -0
  222. package/src/components/form/Checkbox.tsx +5 -5
  223. package/src/components/form/Label.tsx +1 -1
  224. package/src/components/form/Select.stories.tsx +30 -0
  225. package/src/components/form/Select.styled.ts +25 -0
  226. package/src/components/form/Select.tsx +1 -22
  227. package/src/components/form/Toggle.tsx +1 -1
  228. package/src/components/form/choice/Choice.tsx +3 -2
  229. package/src/components/form/input/Input.tsx +2 -1
  230. package/src/components/form/textarea/TextArea.styled.ts +1 -0
  231. package/src/components/layout/card/Card.tsx +1 -1
  232. package/src/components/layout/header/Header.tsx +4 -4
  233. package/src/components/layout/header/HeaderIconAction.tsx +1 -1
  234. package/src/components/layout/header/StickyHeader.tsx +1 -0
  235. package/src/components/layout/table/Table.tsx +4 -4
  236. package/src/components/ui/action/Action.tsx +2 -0
  237. package/src/components/ui/action/EqualActions.tsx +2 -1
  238. package/src/components/ui/button/Button.stories.tsx +55 -0
  239. package/src/components/ui/button/Button.styled.ts +43 -0
  240. package/src/components/ui/button/Button.tsx +1 -35
  241. package/src/components/ui/directionPad/Pad.tsx +1 -0
  242. package/src/components/ui/keyValue/KeyValue.tsx +2 -2
  243. package/src/components/ui/modal/Modal.stories.tsx +143 -0
  244. package/src/components/ui/modal/Modal.styled.ts +100 -0
  245. package/src/components/ui/modal/Modal.tsx +48 -26
  246. package/src/components/ui/modal/ModalButton.tsx +1 -1
  247. package/src/components/ui/modal/ModalButtons.stories.tsx +40 -0
  248. package/src/components/ui/modal/ModalButtons.styled.ts +51 -0
  249. package/src/components/ui/modal/ModalButtons.tsx +1 -22
  250. package/src/components/ui/pop/Pop.module.scss +1 -0
  251. package/src/components/ui/pop/Pop.tsx +1 -0
  252. package/src/components/ui/stats/Stats.tsx +1 -1
  253. package/src/components/ui/tabs/Item.tsx +1 -1
  254. package/src/components/ui/tabs/Selector.tsx +1 -0
  255. package/src/components/ui/toaster/Notification.tsx +1 -1
  256. package/src/demo/Demo.tsx +3 -3
  257. package/src/demo/Main.tsx +4 -3
  258. package/src/demo/components/form/Choice.tsx +3 -3
  259. package/src/demo/components/layout/header/StickyHeader.tsx +1 -1
  260. package/src/demo/components/ui/action/Action.tsx +4 -4
  261. package/src/demo/components/ui/stats/Stats.tsx +2 -2
  262. package/src/demo/componentsMap.ts +0 -25
  263. package/src/pages/_app.tsx +2 -1
  264. package/dist/components/form/Checkbox.module.scss +0 -71
  265. package/dist/components/form/Label.module.scss +0 -15
  266. package/dist/components/form/Select.module.scss +0 -18
  267. package/dist/components/form/Toggle.module.scss +0 -55
  268. package/dist/components/form/choice/Choice.module.scss +0 -56
  269. package/dist/components/form/input/Input.module.scss +0 -7
  270. package/dist/components/layout/card/Card.module.scss +0 -15
  271. package/dist/components/layout/header/Header.module.scss +0 -108
  272. package/dist/components/layout/header/HeaderIconAction.module.scss +0 -26
  273. package/dist/components/layout/header/StickyHeader.module.scss +0 -18
  274. package/dist/components/layout/section/SearchContainer.module.scss +0 -3
  275. package/dist/components/layout/table/Table.module.scss +0 -30
  276. package/dist/components/ui/action/Action.module.scss +0 -26
  277. package/dist/components/ui/action/EqualActions.module.scss +0 -11
  278. package/dist/components/ui/button/Button.module.scss +0 -25
  279. package/dist/components/ui/directionPad/Pad.module.scss +0 -45
  280. package/dist/components/ui/drawer/Drawer.module.scss +0 -15
  281. package/dist/components/ui/keyValue/KeyValue.module.scss +0 -57
  282. package/dist/components/ui/message/Message.module.scss +0 -31
  283. package/dist/components/ui/modal/Modal.module.scss +0 -92
  284. package/dist/components/ui/modal/ModalButtons.module.scss +0 -32
  285. package/dist/components/ui/modal/ModalNoMargin.d.ts +0 -7
  286. package/dist/components/ui/modal/ModalNoMargin.d.ts.map +0 -1
  287. package/dist/components/ui/modal/ModalNoMargin.js +0 -22
  288. package/dist/components/ui/modal/ModalNoMargin.js.map +0 -1
  289. package/dist/components/ui/pop/Pop.module.scss +0 -59
  290. package/dist/components/ui/stats/Stats.module.scss +0 -48
  291. package/dist/components/ui/tabs/Item.module.scss +0 -11
  292. package/dist/components/ui/tabs/Selector.module.scss +0 -6
  293. package/dist/components/ui/toaster/Toaster.module.scss +0 -32
  294. package/dist/components/utils/Spacer.module.scss +0 -3
  295. package/dist/global.scss +0 -95
  296. package/dist/scrollbars.scss +0 -22
  297. package/docs/functions/ModalButtons-1.html +0 -107
  298. package/docs/modules/ModalButtons.html +0 -59
  299. package/docs/variables/Modal.NegateMargin.html +0 -53
  300. package/esm/components/form/Checkbox.module.scss +0 -71
  301. package/esm/components/form/Label.module.scss +0 -15
  302. package/esm/components/form/Select.module.scss +0 -18
  303. package/esm/components/form/Toggle.module.scss +0 -55
  304. package/esm/components/form/choice/Choice.module.scss +0 -56
  305. package/esm/components/form/input/Input.module.scss +0 -7
  306. package/esm/components/layout/card/Card.module.scss +0 -15
  307. package/esm/components/layout/header/Header.module.scss +0 -108
  308. package/esm/components/layout/header/HeaderIconAction.module.scss +0 -26
  309. package/esm/components/layout/header/StickyHeader.module.scss +0 -18
  310. package/esm/components/layout/section/SearchContainer.module.scss +0 -3
  311. package/esm/components/layout/table/Table.module.scss +0 -30
  312. package/esm/components/ui/action/Action.module.scss +0 -26
  313. package/esm/components/ui/action/EqualActions.module.scss +0 -11
  314. package/esm/components/ui/button/Button.module.scss +0 -25
  315. package/esm/components/ui/directionPad/Pad.module.scss +0 -45
  316. package/esm/components/ui/drawer/Drawer.module.scss +0 -15
  317. package/esm/components/ui/keyValue/KeyValue.module.scss +0 -57
  318. package/esm/components/ui/message/Message.module.scss +0 -31
  319. package/esm/components/ui/modal/Modal.module.scss +0 -92
  320. package/esm/components/ui/modal/ModalButtons.module.scss +0 -32
  321. package/esm/components/ui/modal/ModalNoMargin.d.ts +0 -7
  322. package/esm/components/ui/modal/ModalNoMargin.d.ts.map +0 -1
  323. package/esm/components/ui/modal/ModalNoMargin.js +0 -16
  324. package/esm/components/ui/modal/ModalNoMargin.js.map +0 -1
  325. package/esm/components/ui/pop/Pop.module.scss +0 -59
  326. package/esm/components/ui/stats/Stats.module.scss +0 -48
  327. package/esm/components/ui/tabs/Item.module.scss +0 -11
  328. package/esm/components/ui/tabs/Selector.module.scss +0 -6
  329. package/esm/components/ui/toaster/Toaster.module.scss +0 -32
  330. package/esm/components/utils/Spacer.module.scss +0 -3
  331. package/esm/global.scss +0 -95
  332. package/esm/scrollbars.scss +0 -22
  333. package/src/components/form/Select.module.scss +0 -18
  334. package/src/components/ui/button/Button.module.scss +0 -25
  335. package/src/components/ui/modal/Modal.module.scss +0 -92
  336. package/src/components/ui/modal/ModalButtons.module.scss +0 -32
  337. package/src/components/ui/modal/ModalNoMargin.tsx +0 -25
  338. package/src/demo/components/form/Select.tsx +0 -26
  339. package/src/demo/components/ui/button/ButtonDemo.tsx +0 -23
  340. package/src/demo/components/ui/modal/Modal.tsx +0 -106
@@ -1,92 +0,0 @@
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
- }
@@ -1,32 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- interface Props {
3
- children: React.ReactNode;
4
- }
5
- declare const ModalNegateMargin: React.FC<Props>;
6
- export { ModalNegateMargin };
7
- //# sourceMappingURL=ModalNoMargin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ModalNoMargin.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalNoMargin.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,KAAK;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAYtC,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -1,16 +0,0 @@
1
- import React from "react";
2
- import { List } from "../../layout/list/List.js";
3
- import styles from "./Modal.module.scss";
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"ModalNoMargin.js","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalNoMargin.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEjD,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAMzC,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"}
@@ -1,59 +0,0 @@
1
- .overlay {
2
- position: fixed;
3
- background: #0000004c;
4
- top: 0;
5
- left: 0;
6
- right: 0;
7
- bottom: 0;
8
- z-index: 4;
9
- }
10
-
11
- .pop {
12
- z-index: 5;
13
- position: absolute;
14
- background: white;
15
- margin: 0;
16
- padding: 0;
17
- list-style-type: none;
18
- }
19
-
20
- .li {
21
- margin: 0;
22
- padding: 0;
23
- list-style-type: none;
24
-
25
- + .li {
26
- border-top: 1px solid var(--border);
27
- }
28
- }
29
-
30
- .button {
31
- border: none;
32
- background: white;
33
- height: calc(116px / var(--ratio-dimensions));
34
- padding: 0 calc(42px / var(--ratio-dimensions));
35
- box-sizing: border-box;
36
- width: 100%;
37
- min-width: calc(460px / var(--ratio-dimensions));
38
- text-align: left;
39
- color: var(--pop-text);
40
- font-size: calc(26px / var(--ratio-font));
41
- display: flex;
42
- align-items: center;
43
-
44
- &:hover {
45
- background: var(--active-bg);
46
- }
47
- }
48
-
49
- .icon {
50
- fill: currentColor;
51
- margin-right: calc(42px / var(--ratio-dimensions));
52
- }
53
-
54
- .fakeIcon {
55
- display: inline-block;
56
- width: 16px;
57
- height: 16px;
58
- margin-right: calc(42px / var(--ratio-dimensions));
59
- }
@@ -1,48 +0,0 @@
1
- .stats {
2
- --stats-border: 1px solid rgba(255, 255, 255, .15);
3
- --stats-bg: rgba(255, 255, 255, .05);
4
- --stats-value-color: rgba(255, 255, 255, .9);
5
- --stats-label-color: rgba(255, 255, 255, .61);
6
-
7
- display: flex;
8
- width: 100%;
9
- padding: calc(60px / var(--ratio-dimensions)) 0;
10
- margin: 0;
11
- border-top: var(--stats-border);
12
- background: var(--stats-bg);
13
- background-clip: padding-box;
14
- list-style-type: none;
15
- }
16
-
17
- .stats-dark {
18
- --stats-border: 1px solid rgba(0, 0, 0, .15);
19
- --stats-bg: rgba(0, 0, 0, .05);
20
- --stats-value-color: rgba(0, 0, 0, .9);
21
- --stats-label-color: rgba(0, 0, 0, .61);
22
- }
23
-
24
- .item {
25
- flex: 1;
26
- display: flex;
27
- align-items: center;
28
- justify-content: center;
29
- flex-direction: column;
30
- text-align: center;
31
- gap: calc(20px / var(--ratio-dimensions));
32
- }
33
-
34
- .separator {
35
- border-left: var(--stats-border);
36
- }
37
-
38
- .label {
39
- display: block;
40
- color: var(--stats-label-color);
41
- font-size: calc(22px / var(--ratio-font));
42
- }
43
-
44
- .value {
45
- display: block;
46
- color: var(--stats-value-color);
47
- font-size: calc(30px / var(--ratio-font));
48
- }
@@ -1,11 +0,0 @@
1
- .button {
2
- border: none;
3
- padding: 0;
4
- font-size: calc(29px / var(--ratio-font));
5
- color: var(--selector-text);
6
- background: none;
7
- }
8
-
9
- .active {
10
- color: var(--selector-active);
11
- }
@@ -1,6 +0,0 @@
1
- .selector {
2
- display: flex;
3
- flex: 1;
4
- justify-content: center;
5
- gap: calc(114px / var(--ratio-dimensions));
6
- }
@@ -1,32 +0,0 @@
1
- @keyframes show {
2
- from {
3
- transform: translateY(calc(100% + calc(190px / var(--ratio-dimensions))))
4
- }
5
- }
6
-
7
- .toast {
8
- position: fixed;
9
- bottom: 0;
10
- display: flex;
11
- justify-content: center;
12
- z-index: 6;
13
- left: 50%;
14
- transform: translateX(-50%);
15
-
16
- span {
17
- background: rgba(56, 50, 46, 0.85);
18
- color: #F9F6F2;
19
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.37);
20
- border-radius: 12px; // around 22 @TODO use calc here
21
- display: inline-block;
22
- padding: 1em 1em;
23
- animation: show 500ms 1;
24
- animation-fill-mode: forwards;
25
- margin-bottom: calc(190px / var(--ratio-dimensions));
26
- }
27
- }
28
-
29
- .hide {
30
- transition: opacity 300ms;
31
- opacity: 0;
32
- }
@@ -1,3 +0,0 @@
1
- .spacer {
2
- flex: 1;
3
- }
package/esm/global.scss DELETED
@@ -1,95 +0,0 @@
1
- // @TODO prefix variable names
2
- :root {
3
- --ratio-dimensions: 3;
4
- --ratio-border: 2.666666;
5
- // font is calculated from top to bottom
6
- --ratio-font: 1.666666;
7
-
8
- --background: white;
9
-
10
- --main-color: #008ad2;
11
- --main-color-alt: #006AA9;
12
-
13
- --active-bg: #e7e7e7;
14
- --inactive-bg: #d3d3d3;
15
- --inactive-dark-bg: #999;
16
-
17
- --toggle-handle-bg: #e0e0e0;
18
- --toggle-handle-border: #cdcdcd;
19
- --toggle-bg-disabled: #f0f0f0;
20
- --toggle-handle-border-disabled: #c29f7d;
21
- --toggle-handle-bg-disabled: #deae84;
22
-
23
- --icon: #636363;
24
- --border: #d5d5d5;
25
- --button-border: #bababa;
26
-
27
- --header-border: #c8c8c9;
28
- --header-bg: #efeff0;
29
- --header-text: #484848;
30
- --text: #323232;
31
- --sub: #959595;
32
-
33
- --pop-text: #666;
34
-
35
- --toolbar-border: #ababab;
36
- --toolbar-bg: #f8f8f8;
37
- --modal-bg: #f7f7f7;
38
- --modal-button-bg: #f8f8f8;
39
- --modal-button-border: #c2c2c2;
40
-
41
- --input-disabled-bg: #f3f3f3;
42
- --input-disabled-text: #959595;
43
-
44
- --choice-bg: #ffffff;
45
- --choice-text: #999999;
46
- --choice-active-bg: #f3f3f3;
47
- --choice-active-text: #313131;
48
- --choice-border: #cfcfcf;
49
-
50
- --selector-text: #606060;
51
- --selector-active: var(--main-color);
52
-
53
- // Shades: https://maketintsandshades.com/#038bf4,ff7200,7357e8,3ec234,3ec234,ff388f,ea2700
54
- --blue1: #038bf4;
55
- --blue2: #b7d6f5;
56
- --blue3: #dbe6ff;
57
- --orange1: #ff7200;
58
- --orange1-darker: #cc5b00;
59
- --purple1: #7357e8;
60
- --green1: #3ec234;
61
- --green1-darker: #38af2f;
62
- --pink1: #ff388f;
63
- --red1: #ea2700;
64
- --yellow1: #ffde9d;
65
- --yellow2: #e4a429;
66
- --yellow3: #fff5db;
67
- --pinky1: #f5c0b7;
68
- --pinky2: #e07b67;
69
- --pinky3: #ffe1db;
70
-
71
- --grey1: #737373;
72
-
73
- --focus-color: #dcaf00;
74
-
75
- --scrollbars-thumb: var(--grey1);
76
- --scrollbars-bg: transparent;
77
-
78
- --table-striped-bg: #fafafa;
79
- }
80
-
81
- *:focus {
82
- outline: none!important;
83
- }
84
-
85
- *:focus-visible:focus-visible {
86
- outline: none!important;
87
- border-color: var(--focus-color);
88
- background-color: var(--focus-bg-set);
89
- }
90
-
91
-
92
- body {
93
- font-size: 15px;
94
- color: var(--text);
95
- }
@@ -1,22 +0,0 @@
1
- .miui-scrollbars {
2
- overflow-y: auto;
3
- scrollbar-color: var(--scrollbars-thumb) var(--scrollbars-bg);
4
- scrollbar-width: thin !important;
5
-
6
- &::-webkit-scrollbar {
7
- width: 6px;
8
- background-color: transparent;
9
- }
10
-
11
- &::-webkit-scrollbar-thumb:vertical {
12
- background: var(--scrollbars-thumb);
13
- background-clip: padding-box;
14
- border: 2px solid var(--scrollbars-bg);
15
- min-height: 10px;
16
- }
17
-
18
- &::-webkit-scrollbar-thumb:vertical:active {
19
- background: var(--scrollbars-thumb);
20
- border: 2px solid var(--scrollbars-bg);
21
- }
22
- }
@@ -1,18 +0,0 @@
1
- .select {
2
- box-sizing: border-box;
3
- height: calc(103px / var(--ratio-dimensions));
4
- font-size: calc(34 / var(--ratio-font));
5
- color: var(--text);
6
- display: block;
7
- width: 100%;
8
- background: white;
9
- font-family: inherit;
10
- border-radius: 2px;
11
- padding: 0 calc(36px / var(--ratio-dimensions));
12
- border: calc(1px / var(--ratio-border)) solid var(--border);
13
-
14
- &:disabled {
15
- background: var(--input-disabled-bg);
16
- color: var(--input-disabled-text);
17
- }
18
- }
@@ -1,25 +0,0 @@
1
- .btn {
2
- height: calc(118px / var(--ratio-dimensions));
3
- background: var(--green1);
4
- border: calc(1px / var(--ratio-border)) solid var(--green1-darker);
5
- color: white;
6
- border-radius: 1000px;
7
- display: block;
8
- width: 100%;
9
- font-size: calc(26px / var(--ratio-font));
10
- padding: 0 1em;
11
-
12
- &:disabled {
13
- opacity: 0.5;
14
- }
15
- }
16
-
17
- .btn--inline {
18
- width: auto;
19
- }
20
-
21
- .btn--outline {
22
- background: white;
23
- border-color: var(--button-border);
24
- color: var(--grey1);
25
- }
@@ -1,92 +0,0 @@
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
- }
@@ -1,32 +0,0 @@
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
- }
@@ -1,25 +0,0 @@
1
- import React from "react";
2
-
3
- import { List } from "../../layout/list/List.js";
4
-
5
- import styles from "./Modal.module.scss";
6
-
7
- interface Props {
8
- children: React.ReactNode;
9
- }
10
-
11
- const ModalNegateMargin: React.FC<Props> = (props) => {
12
- const chld = React.Children.map(props.children, (child, index) => {
13
- if (child && typeof child === "object" && "type" in child && child.type === List) {
14
- return React.cloneElement(child, {
15
- // @TODO this will overwrite className
16
- className: styles.removeMargin,
17
- });
18
- }
19
-
20
- return child;
21
- });
22
- return <div className={styles.negateMargin}>{chld}</div>;
23
- };
24
-
25
- export { ModalNegateMargin };
@@ -1,26 +0,0 @@
1
- import React from "react";
2
-
3
- import { Label, Select } from "../../../index.js";
4
-
5
- const SelectDemo: React.FC = () => {
6
- return (
7
- <>
8
- <Label label={"Normal select"}>
9
- <Select>
10
- <option>Cookie</option>
11
- <option>Ice cream</option>
12
- <option>Sweets</option>
13
- </Select>
14
- </Label>
15
- <Label label={"Disabled"}>
16
- <Select disabled={true}>
17
- <option>Cookie</option>
18
- <option>Ice cream</option>
19
- <option>Sweets</option>
20
- </Select>
21
- </Label>
22
- </>
23
- );
24
- };
25
-
26
- export { SelectDemo };
@@ -1,23 +0,0 @@
1
- import React, { useCallback } from "react";
2
-
3
- import { Button } from "../../../../index.js";
4
-
5
- const ButtonDemo = () => {
6
- const handleClick = useCallback(() => {
7
- alert("Clicked");
8
- }, []);
9
-
10
- return (
11
- <div>
12
- <Button onClick={handleClick}>Basic button</Button>
13
- <br />
14
- <Button disabled={true} onClick={handleClick}>Disabled button</Button>
15
- <br />
16
- <Button variant={"inline"} onClick={handleClick}>Inline button</Button>
17
- <br />
18
- <Button variant={"outline"} onClick={handleClick}>Outline button</Button>
19
- </div>
20
- );
21
- };
22
-
23
- export { ButtonDemo };