react-miui 0.2.0 → 0.4.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 (302) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/assets/forward.svg +1 -0
  3. package/assets/sources/back.fla +0 -0
  4. package/dist/components/form/Checkbox.js +2 -2
  5. package/dist/components/form/Checkbox.js.map +1 -1
  6. package/dist/components/form/Toggle.d.ts +8 -0
  7. package/dist/components/form/Toggle.d.ts.map +1 -0
  8. package/dist/{demo/components/form/Checkbox.js → components/form/Toggle.js} +17 -8
  9. package/dist/components/form/Toggle.js.map +1 -0
  10. package/dist/components/form/Toggle.module.scss +46 -0
  11. package/dist/components/icons/Back.d.ts.map +1 -1
  12. package/dist/components/icons/Back.js.map +1 -1
  13. package/dist/components/icons/Forward.d.ts +7 -0
  14. package/dist/components/icons/Forward.d.ts.map +1 -0
  15. package/dist/components/icons/Forward.js +13 -0
  16. package/dist/components/icons/Forward.js.map +1 -0
  17. package/dist/components/icons/Icon.d.ts +2 -1
  18. package/dist/components/icons/Icon.d.ts.map +1 -1
  19. package/dist/components/icons/Icon.js +7 -4
  20. package/dist/components/icons/Icon.js.map +1 -1
  21. package/dist/components/layout/header/Header.js +4 -4
  22. package/dist/components/layout/header/Header.js.map +1 -1
  23. package/dist/components/layout/list/Header.d.ts +4 -0
  24. package/dist/components/layout/list/Header.d.ts.map +1 -0
  25. package/dist/components/layout/list/Header.js +16 -0
  26. package/dist/components/layout/list/Header.js.map +1 -0
  27. package/dist/components/layout/list/Header.module.scss +8 -0
  28. package/dist/components/layout/list/Item.d.ts +8 -1
  29. package/dist/components/layout/list/Item.d.ts.map +1 -1
  30. package/dist/components/layout/list/Item.js +21 -5
  31. package/dist/components/layout/list/Item.js.map +1 -1
  32. package/dist/components/layout/list/Item.module.scss +10 -2
  33. package/dist/components/layout/list/Label.d.ts +8 -0
  34. package/dist/components/layout/list/Label.d.ts.map +1 -0
  35. package/dist/components/layout/list/Label.js +16 -0
  36. package/dist/components/layout/list/Label.js.map +1 -0
  37. package/dist/components/layout/list/Label.module.scss +9 -0
  38. package/dist/components/layout/list/List.d.ts +5 -1
  39. package/dist/components/layout/list/List.d.ts.map +1 -1
  40. package/dist/components/layout/list/List.js +2 -0
  41. package/dist/components/layout/list/List.js.map +1 -1
  42. package/dist/components/layout/list/Value.d.ts +4 -0
  43. package/dist/components/layout/list/Value.d.ts.map +1 -0
  44. package/dist/components/layout/list/Value.js +13 -0
  45. package/dist/components/layout/list/Value.js.map +1 -0
  46. package/dist/components/layout/list/Value.module.scss +7 -0
  47. package/dist/components/ui/action/Action.js +2 -2
  48. package/dist/components/ui/action/Action.js.map +1 -1
  49. package/dist/components/ui/action/EqualActions.js +3 -3
  50. package/dist/components/ui/action/EqualActions.js.map +1 -1
  51. package/dist/components/ui/button/Button.js +3 -3
  52. package/dist/components/ui/button/Button.js.map +1 -1
  53. package/dist/global.scss +8 -1
  54. package/dist/index.d.ts +4 -0
  55. package/dist/index.d.ts.map +1 -1
  56. package/dist/index.js +4 -0
  57. package/dist/index.js.map +1 -1
  58. package/docs/assets/js/search.js +1 -1
  59. package/docs/assets/js/search.json +1 -1
  60. package/docs/enums/ICON.html +31 -5
  61. package/docs/index.html +22 -4
  62. package/docs/modules/Item.html +155 -0
  63. package/docs/modules/List.html +144 -0
  64. package/docs/modules/StickyHeader.html +10 -4
  65. package/docs/modules.html +78 -14
  66. package/docs/pages/Tutorials/Test.html +9 -3
  67. package/esm/components/form/Checkbox.js +1 -1
  68. package/esm/components/form/Checkbox.js.map +1 -1
  69. package/esm/components/form/Toggle.d.ts +8 -0
  70. package/esm/components/form/Toggle.d.ts.map +1 -0
  71. package/esm/components/form/Toggle.js +15 -0
  72. package/esm/components/form/Toggle.js.map +1 -0
  73. package/esm/components/form/Toggle.module.scss +46 -0
  74. package/esm/components/icons/Back.d.ts.map +1 -1
  75. package/esm/components/icons/Back.js.map +1 -1
  76. package/esm/components/icons/Forward.d.ts +7 -0
  77. package/esm/components/icons/Forward.d.ts.map +1 -0
  78. package/esm/components/icons/Forward.js +7 -0
  79. package/esm/components/icons/Forward.js.map +1 -0
  80. package/esm/components/icons/Icon.d.ts +2 -1
  81. package/esm/components/icons/Icon.d.ts.map +1 -1
  82. package/esm/components/icons/Icon.js +5 -2
  83. package/esm/components/icons/Icon.js.map +1 -1
  84. package/esm/components/layout/header/Header.js +2 -2
  85. package/esm/components/layout/header/Header.js.map +1 -1
  86. package/esm/components/layout/list/Header.d.ts +4 -0
  87. package/esm/components/layout/list/Header.d.ts.map +1 -0
  88. package/esm/components/layout/list/Header.js +10 -0
  89. package/esm/components/layout/list/Header.js.map +1 -0
  90. package/esm/components/layout/list/Header.module.scss +8 -0
  91. package/esm/components/layout/list/Item.d.ts +8 -1
  92. package/esm/components/layout/list/Item.d.ts.map +1 -1
  93. package/esm/components/layout/list/Item.js +21 -5
  94. package/esm/components/layout/list/Item.js.map +1 -1
  95. package/esm/components/layout/list/Item.module.scss +10 -2
  96. package/esm/components/layout/list/Label.d.ts +8 -0
  97. package/esm/components/layout/list/Label.d.ts.map +1 -0
  98. package/esm/components/layout/list/Label.js +10 -0
  99. package/esm/components/layout/list/Label.js.map +1 -0
  100. package/esm/components/layout/list/Label.module.scss +9 -0
  101. package/esm/components/layout/list/List.d.ts +5 -1
  102. package/esm/components/layout/list/List.d.ts.map +1 -1
  103. package/esm/components/layout/list/List.js +2 -0
  104. package/esm/components/layout/list/List.js.map +1 -1
  105. package/esm/components/layout/list/Value.d.ts +4 -0
  106. package/esm/components/layout/list/Value.d.ts.map +1 -0
  107. package/esm/components/layout/list/Value.js +7 -0
  108. package/esm/components/layout/list/Value.js.map +1 -0
  109. package/esm/components/layout/list/Value.module.scss +7 -0
  110. package/esm/components/ui/action/Action.js +1 -1
  111. package/esm/components/ui/action/Action.js.map +1 -1
  112. package/esm/components/ui/action/EqualActions.js +2 -2
  113. package/esm/components/ui/action/EqualActions.js.map +1 -1
  114. package/esm/components/ui/button/Button.js +2 -2
  115. package/esm/components/ui/button/Button.js.map +1 -1
  116. package/esm/global.scss +8 -1
  117. package/esm/index.d.ts +4 -0
  118. package/esm/index.d.ts.map +1 -1
  119. package/esm/index.js +4 -0
  120. package/esm/index.js.map +1 -1
  121. package/package.json +1 -1
  122. package/src/components/form/Checkbox.tsx +1 -1
  123. package/src/components/form/Toggle.module.scss +46 -0
  124. package/src/components/form/Toggle.tsx +33 -0
  125. package/src/components/icons/Back.tsx +7 -1
  126. package/src/components/icons/Forward.tsx +21 -0
  127. package/src/components/icons/Icon.tsx +7 -4
  128. package/src/components/layout/header/Header.tsx +2 -2
  129. package/src/components/layout/list/Header.module.scss +8 -0
  130. package/src/components/layout/list/Header.tsx +16 -0
  131. package/src/components/layout/list/Item.module.scss +10 -2
  132. package/src/components/layout/list/Item.tsx +33 -6
  133. package/src/components/layout/list/Label.module.scss +9 -0
  134. package/src/components/layout/list/Label.tsx +21 -0
  135. package/src/components/layout/list/List.tsx +8 -1
  136. package/src/components/layout/list/Value.module.scss +7 -0
  137. package/src/components/layout/list/Value.tsx +11 -0
  138. package/src/components/ui/action/Action.tsx +1 -1
  139. package/src/components/ui/action/EqualActions.tsx +2 -2
  140. package/src/components/ui/button/Button.tsx +2 -2
  141. package/src/demo/components/form/Toggle.tsx +49 -0
  142. package/src/demo/components/layout/header/Header.tsx +9 -1
  143. package/src/demo/components/layout/list/Header.tsx +24 -0
  144. package/src/demo/components/layout/list/ItemRatio.tsx +21 -0
  145. package/src/demo/components/layout/list/Label.tsx +31 -0
  146. package/src/demo/components/layout/list/List.Item.module.scss +4 -0
  147. package/src/demo/components/layout/list/Value.module.scss +4 -0
  148. package/src/demo/components/layout/list/Value.tsx +26 -0
  149. package/src/demo/components/ui/icons/Icons.tsx +3 -7
  150. package/src/demo/componentsMap.ts +32 -1
  151. package/src/global.scss +8 -1
  152. package/src/index.ts +4 -0
  153. package/dist/demo/Demo.d.ts +0 -4
  154. package/dist/demo/Demo.d.ts.map +0 -1
  155. package/dist/demo/Demo.js +0 -18
  156. package/dist/demo/Demo.js.map +0 -1
  157. package/dist/demo/Demo.module.scss +0 -4
  158. package/dist/demo/Main.d.ts +0 -4
  159. package/dist/demo/Main.d.ts.map +0 -1
  160. package/dist/demo/Main.js +0 -83
  161. package/dist/demo/Main.js.map +0 -1
  162. package/dist/demo/Main.module.scss +0 -30
  163. package/dist/demo/Menu.d.ts +0 -9
  164. package/dist/demo/Menu.d.ts.map +0 -1
  165. package/dist/demo/Menu.js +0 -31
  166. package/dist/demo/Menu.js.map +0 -1
  167. package/dist/demo/Menu.module.scss +0 -41
  168. package/dist/demo/components/form/Checkbox.d.ts +0 -4
  169. package/dist/demo/components/form/Checkbox.d.ts.map +0 -1
  170. package/dist/demo/components/form/Checkbox.js.map +0 -1
  171. package/dist/demo/components/layout/header/Header.d.ts +0 -7
  172. package/dist/demo/components/layout/header/Header.d.ts.map +0 -1
  173. package/dist/demo/components/layout/header/Header.js +0 -55
  174. package/dist/demo/components/layout/header/Header.js.map +0 -1
  175. package/dist/demo/components/layout/header/StickyHeader.d.ts +0 -9
  176. package/dist/demo/components/layout/header/StickyHeader.d.ts.map +0 -1
  177. package/dist/demo/components/layout/header/StickyHeader.js +0 -73
  178. package/dist/demo/components/layout/header/StickyHeader.js.map +0 -1
  179. package/dist/demo/components/layout/list/List.Item.d.ts +0 -4
  180. package/dist/demo/components/layout/list/List.Item.d.ts.map +0 -1
  181. package/dist/demo/components/layout/list/List.Item.js +0 -42
  182. package/dist/demo/components/layout/list/List.Item.js.map +0 -1
  183. package/dist/demo/components/layout/list/List.Item.module.scss +0 -3
  184. package/dist/demo/components/ui/action/Action.d.ts +0 -8
  185. package/dist/demo/components/ui/action/Action.d.ts.map +0 -1
  186. package/dist/demo/components/ui/action/Action.js +0 -83
  187. package/dist/demo/components/ui/action/Action.js.map +0 -1
  188. package/dist/demo/components/ui/action/ActionDemo.module.scss +0 -3
  189. package/dist/demo/components/ui/button/ButtonDemo.d.ts +0 -4
  190. package/dist/demo/components/ui/button/ButtonDemo.d.ts.map +0 -1
  191. package/dist/demo/components/ui/button/ButtonDemo.js +0 -20
  192. package/dist/demo/components/ui/button/ButtonDemo.js.map +0 -1
  193. package/dist/demo/components/ui/directionPad/Pad.d.ts +0 -4
  194. package/dist/demo/components/ui/directionPad/Pad.d.ts.map +0 -1
  195. package/dist/demo/components/ui/directionPad/Pad.js +0 -49
  196. package/dist/demo/components/ui/directionPad/Pad.js.map +0 -1
  197. package/dist/demo/components/ui/icons/Icons.d.ts +0 -4
  198. package/dist/demo/components/ui/icons/Icons.d.ts.map +0 -1
  199. package/dist/demo/components/ui/icons/Icons.js +0 -20
  200. package/dist/demo/components/ui/icons/Icons.js.map +0 -1
  201. package/dist/demo/components/ui/icons/Icons.module.scss +0 -4
  202. package/dist/demo/componentsMap.d.ts +0 -13
  203. package/dist/demo/componentsMap.d.ts.map +0 -1
  204. package/dist/demo/componentsMap.js +0 -103
  205. package/dist/demo/componentsMap.js.map +0 -1
  206. package/dist/demo/utils/makeVariants.d.ts +0 -3
  207. package/dist/demo/utils/makeVariants.d.ts.map +0 -1
  208. package/dist/demo/utils/makeVariants.js +0 -14
  209. package/dist/demo/utils/makeVariants.js.map +0 -1
  210. package/dist/demo/utils/safeUseHash.d.ts +0 -3
  211. package/dist/demo/utils/safeUseHash.d.ts.map +0 -1
  212. package/dist/demo/utils/safeUseHash.js +0 -13
  213. package/dist/demo/utils/safeUseHash.js.map +0 -1
  214. package/dist/demo-global.scss +0 -9
  215. package/dist/pages/_app.d.ts +0 -7
  216. package/dist/pages/_app.d.ts.map +0 -1
  217. package/dist/pages/_app.js +0 -15
  218. package/dist/pages/_app.js.map +0 -1
  219. package/dist/pages/index.d.ts +0 -4
  220. package/dist/pages/index.d.ts.map +0 -1
  221. package/dist/pages/index.js +0 -10
  222. package/dist/pages/index.js.map +0 -1
  223. package/dist/pages/react-miui.d.ts +0 -4
  224. package/dist/pages/react-miui.d.ts.map +0 -1
  225. package/dist/pages/react-miui.js +0 -11
  226. package/dist/pages/react-miui.js.map +0 -1
  227. package/esm/demo/Demo.d.ts +0 -4
  228. package/esm/demo/Demo.d.ts.map +0 -1
  229. package/esm/demo/Demo.js +0 -12
  230. package/esm/demo/Demo.js.map +0 -1
  231. package/esm/demo/Demo.module.scss +0 -4
  232. package/esm/demo/Main.d.ts +0 -4
  233. package/esm/demo/Main.d.ts.map +0 -1
  234. package/esm/demo/Main.js +0 -58
  235. package/esm/demo/Main.js.map +0 -1
  236. package/esm/demo/Main.module.scss +0 -30
  237. package/esm/demo/Menu.d.ts +0 -9
  238. package/esm/demo/Menu.d.ts.map +0 -1
  239. package/esm/demo/Menu.js +0 -25
  240. package/esm/demo/Menu.js.map +0 -1
  241. package/esm/demo/Menu.module.scss +0 -41
  242. package/esm/demo/components/form/Checkbox.d.ts +0 -4
  243. package/esm/demo/components/form/Checkbox.d.ts.map +0 -1
  244. package/esm/demo/components/form/Checkbox.js +0 -9
  245. package/esm/demo/components/form/Checkbox.js.map +0 -1
  246. package/esm/demo/components/layout/header/Header.d.ts +0 -7
  247. package/esm/demo/components/layout/header/Header.d.ts.map +0 -1
  248. package/esm/demo/components/layout/header/Header.js +0 -46
  249. package/esm/demo/components/layout/header/Header.js.map +0 -1
  250. package/esm/demo/components/layout/header/StickyHeader.d.ts +0 -9
  251. package/esm/demo/components/layout/header/StickyHeader.d.ts.map +0 -1
  252. package/esm/demo/components/layout/header/StickyHeader.js +0 -62
  253. package/esm/demo/components/layout/header/StickyHeader.js.map +0 -1
  254. package/esm/demo/components/layout/list/List.Item.d.ts +0 -4
  255. package/esm/demo/components/layout/list/List.Item.d.ts.map +0 -1
  256. package/esm/demo/components/layout/list/List.Item.js +0 -17
  257. package/esm/demo/components/layout/list/List.Item.js.map +0 -1
  258. package/esm/demo/components/layout/list/List.Item.module.scss +0 -3
  259. package/esm/demo/components/ui/action/Action.d.ts +0 -8
  260. package/esm/demo/components/ui/action/Action.d.ts.map +0 -1
  261. package/esm/demo/components/ui/action/Action.js +0 -73
  262. package/esm/demo/components/ui/action/Action.js.map +0 -1
  263. package/esm/demo/components/ui/action/ActionDemo.module.scss +0 -3
  264. package/esm/demo/components/ui/button/ButtonDemo.d.ts +0 -4
  265. package/esm/demo/components/ui/button/ButtonDemo.d.ts.map +0 -1
  266. package/esm/demo/components/ui/button/ButtonDemo.js +0 -14
  267. package/esm/demo/components/ui/button/ButtonDemo.js.map +0 -1
  268. package/esm/demo/components/ui/directionPad/Pad.d.ts +0 -4
  269. package/esm/demo/components/ui/directionPad/Pad.d.ts.map +0 -1
  270. package/esm/demo/components/ui/directionPad/Pad.js +0 -27
  271. package/esm/demo/components/ui/directionPad/Pad.js.map +0 -1
  272. package/esm/demo/components/ui/icons/Icons.d.ts +0 -4
  273. package/esm/demo/components/ui/icons/Icons.d.ts.map +0 -1
  274. package/esm/demo/components/ui/icons/Icons.js +0 -14
  275. package/esm/demo/components/ui/icons/Icons.js.map +0 -1
  276. package/esm/demo/components/ui/icons/Icons.module.scss +0 -4
  277. package/esm/demo/componentsMap.d.ts +0 -13
  278. package/esm/demo/componentsMap.d.ts.map +0 -1
  279. package/esm/demo/componentsMap.js +0 -100
  280. package/esm/demo/componentsMap.js.map +0 -1
  281. package/esm/demo/utils/makeVariants.d.ts +0 -3
  282. package/esm/demo/utils/makeVariants.d.ts.map +0 -1
  283. package/esm/demo/utils/makeVariants.js +0 -11
  284. package/esm/demo/utils/makeVariants.js.map +0 -1
  285. package/esm/demo/utils/safeUseHash.d.ts +0 -3
  286. package/esm/demo/utils/safeUseHash.d.ts.map +0 -1
  287. package/esm/demo/utils/safeUseHash.js +0 -10
  288. package/esm/demo/utils/safeUseHash.js.map +0 -1
  289. package/esm/demo-global.scss +0 -9
  290. package/esm/pages/_app.d.ts +0 -7
  291. package/esm/pages/_app.d.ts.map +0 -1
  292. package/esm/pages/_app.js +0 -10
  293. package/esm/pages/_app.js.map +0 -1
  294. package/esm/pages/index.d.ts +0 -4
  295. package/esm/pages/index.d.ts.map +0 -1
  296. package/esm/pages/index.js +0 -5
  297. package/esm/pages/index.js.map +0 -1
  298. package/esm/pages/react-miui.d.ts +0 -4
  299. package/esm/pages/react-miui.d.ts.map +0 -1
  300. package/esm/pages/react-miui.js +0 -6
  301. package/esm/pages/react-miui.js.map +0 -1
  302. package/src/demo/components/ui/icons/Icons.module.scss +0 -4
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- declare const HeaderDemo: () => JSX.Element;
3
- declare const CenteredHeaderDemo: () => JSX.Element;
4
- declare const HeaderWithButtonsDemo: () => JSX.Element;
5
- declare const HeaderWithButtonsOnSideDemo: () => JSX.Element;
6
- export { HeaderDemo, CenteredHeaderDemo, HeaderWithButtonsDemo, HeaderWithButtonsOnSideDemo };
7
- //# sourceMappingURL=Header.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../src/demo/components/layout/header/Header.tsx"],"names":[],"mappings":";AAMA,QAAA,MAAM,UAAU,mBAUf,CAAC;AAEF,QAAA,MAAM,kBAAkB,mBASvB,CAAC;AAKF,QAAA,MAAM,qBAAqB,mBAqD1B,CAAC;AAEF,QAAA,MAAM,2BAA2B,mBAqBhC,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,CAAC"}
@@ -1,46 +0,0 @@
1
- import React from "react";
2
- import Link from "next/link";
3
- import { Header, ICON, StickyHeader } from "../../../../index.js";
4
- import { HeaderIconAction } from "../../../../components/layout/header/HeaderIconAction";
5
- const HeaderDemo = () => {
6
- const longContent = new Array(1000).fill(null).map((_, key) => React.createElement("div", { key: key }, "content"));
7
- return (React.createElement(React.Fragment, null,
8
- React.createElement(Header, null, "Some place"),
9
- longContent));
10
- };
11
- const CenteredHeaderDemo = () => {
12
- return (React.createElement(React.Fragment, null,
13
- React.createElement(Header, { center: true }, "Messages"),
14
- React.createElement("div", null, "Header text is centered")));
15
- };
16
- const handleClick = () => { alert(1); };
17
- const HeaderWithButtonsDemo = () => {
18
- const demo = (React.createElement(React.Fragment, null,
19
- React.createElement(HeaderIconAction, { icon: ICON.back, onClick: handleClick }),
20
- React.createElement(HeaderIconAction, { icon: ICON.checkmark, onClick: handleClick })));
21
- return (React.createElement(React.Fragment, null,
22
- React.createElement(Header, { center: true, before: "A text" }, "Messages"),
23
- React.createElement("div", null, "Header text is centered"),
24
- React.createElement(Header, { before: "A text" }, "Messages"),
25
- React.createElement("div", null, "Header text is start aligned"),
26
- React.createElement(Header, { before: demo }, "Messages"),
27
- React.createElement("div", null, "Some button icons are added on the left to left aligned title"),
28
- React.createElement(Header, { before: demo, center: true }, "Messages"),
29
- React.createElement("div", null, "Some button icons are added on the left to centered aligned title"),
30
- React.createElement(Header, { before: React.createElement(HeaderIconAction, { icon: ICON.back, to: "/react-miui", Link: Link }), center: true }, "Messages"),
31
- React.createElement("div", null, "Some internal link icons are added on the left to centered aligned title"),
32
- React.createElement(Header, { before: React.createElement(HeaderIconAction, { icon: ICON.back, href: "https://www.npmjs.com/package/react-miui" }), center: true }, "Messages"),
33
- React.createElement("div", null, "Some external link icons are added on the left to centered aligned title"),
34
- React.createElement(Header, { before: React.createElement(HeaderIconAction, { icon: ICON.back, href: "https://www.npmjs.com/package/react-miui" }), after: React.createElement(HeaderIconAction, { icon: ICON.checkmark, href: "https://www.npmjs.com/package/react-miui" }), center: true }, "Messages"),
35
- React.createElement("div", null, "Some external link icons are added on both sides to centered aligned title")));
36
- };
37
- const HeaderWithButtonsOnSideDemo = () => {
38
- const demo = (React.createElement(React.Fragment, null,
39
- React.createElement(HeaderIconAction, { icon: ICON.back, onClick: handleClick }),
40
- React.createElement(HeaderIconAction, { icon: ICON.checkmark, onClick: handleClick })));
41
- return (React.createElement(StickyHeader, { position: "left" },
42
- React.createElement(Header, { center: true, before: demo, after: demo }, "M"),
43
- React.createElement(StickyHeader.Content, null, "Header is on the side")));
44
- };
45
- export { HeaderDemo, CenteredHeaderDemo, HeaderWithButtonsDemo, HeaderWithButtonsOnSideDemo };
46
- //# sourceMappingURL=Header.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../../src/demo/components/layout/header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AAEzF,MAAM,UAAU,GAAG,GAAG,EAAE;IAEpB,MAAM,WAAW,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,6BAAK,GAAG,EAAE,GAAG,cAAe,CAAC,CAAC;IAE7F,OAAO,CACH;QACI,oBAAC,MAAM,qBAAoB;QAC1B,WAAW,CACb,CACN,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC5B,OAAO,CACH;QACI,oBAAC,MAAM,IAAC,MAAM,EAAE,IAAI,eAAmB;QACvC,2DAEM,CACP,CACN,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,GAAG,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAGxC,MAAM,qBAAqB,GAAG,GAAG,EAAE;IAC/B,MAAM,IAAI,GAAG,CACT;QACI,oBAAC,gBAAgB,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,WAAW,GAAI;QAC3D,oBAAC,gBAAgB,IAAC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,GAAI,CACjE,CACN,CAAC;IAEF,OAAO,CACH;QACI,oBAAC,MAAM,IAAC,MAAM,EAAE,I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BAAC,MAAM,IACH,MAAM,EAAE,IAAI,EACZ,MAAM,EAAE,IAAI,EACZ,KAAK,EAAE,IAAI,QAEN;QACT,oBAAC,YAAY,CAAC,OAAO,gCAEE,CACZ,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,CAAC"}
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- declare const StickyHeaderDemo: () => JSX.Element;
3
- declare const StickyHeaderBottomDemo: () => JSX.Element;
4
- declare const StickyHeaderTopBottomDemo: () => JSX.Element;
5
- declare const StickyHeaderLeftDemo: () => JSX.Element;
6
- declare const StickyHeaderRightDemo: () => JSX.Element;
7
- declare const StickyHeaderLeftCenterDemo: () => JSX.Element;
8
- export { StickyHeaderDemo, StickyHeaderBottomDemo, StickyHeaderTopBottomDemo, StickyHeaderLeftDemo, StickyHeaderRightDemo, StickyHeaderLeftCenterDemo, };
9
- //# sourceMappingURL=StickyHeader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StickyHeader.d.ts","sourceRoot":"","sources":["../../../../../src/demo/components/layout/header/StickyHeader.tsx"],"names":[],"mappings":";AAUA,QAAA,MAAM,gBAAgB,mBASrB,CAAC;AAEF,QAAA,MAAM,sBAAsB,mBAS3B,CAAC;AAEF,QAAA,MAAM,yBAAyB,mBAc9B,CAAC;AAEF,QAAA,MAAM,oBAAoB,mBASzB,CAAC;AAEF,QAAA,MAAM,qBAAqB,mBAS1B,CAAC;AAEF,QAAA,MAAM,0BAA0B,mBAS/B,CAAC;AAEF,OAAO,EACH,gBAAgB,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,qBAAqB,EAChH,0BAA0B,GAC7B,CAAC"}
@@ -1,62 +0,0 @@
1
- import React from "react";
2
- import { Header, StickyHeader } from "../../../../index.js";
3
- const LongContent = () => {
4
- const longContent = new Array(1000).fill(null).map((_, key) => React.createElement("div", { key: key }, "content"));
5
- return React.createElement(React.Fragment, null, longContent);
6
- };
7
- const StickyHeaderDemo = () => {
8
- return (React.createElement(StickyHeader, null,
9
- React.createElement(Header, null, "Some place"),
10
- React.createElement(StickyHeader.Content, null,
11
- React.createElement(LongContent, null))));
12
- };
13
- const StickyHeaderBottomDemo = () => {
14
- return (React.createElement(StickyHeader, { position: "bottom" },
15
- React.createElement(Header, null, "Some place"),
16
- React.createElement(StickyHeader.Content, null,
17
- React.createElement(LongContent, null))));
18
- };
19
- const StickyHeaderTopBottomDemo = () => {
20
- return (React.createElement(StickyHeader, { position: "top" },
21
- React.createElement(Header, null, "Some place"),
22
- React.createElement(StickyHeader.Content, null,
23
- React.createElement(StickyHeader, { position: "bottom" },
24
- React.createElement(Header, null, "Some place"),
25
- React.createElement(StickyHeader.Content, null,
26
- React.createElement(LongContent, null))))));
27
- };
28
- const StickyHeaderLeftDemo = () => {
29
- return (React.createElement(StickyHeader, { position: "left" },
30
- React.createElement(Header, null,
31
- "x",
32
- React.createElement("br", null),
33
- "x",
34
- React.createElement("br", null),
35
- "x"),
36
- React.createElement(StickyHeader.Content, null,
37
- React.createElement(LongContent, null))));
38
- };
39
- const StickyHeaderRightDemo = () => {
40
- return (React.createElement(StickyHeader, { position: "right" },
41
- React.createElement(Header, null,
42
- "x",
43
- React.createElement("br", null),
44
- "x",
45
- React.createElement("br", null),
46
- "x"),
47
- React.createElement(StickyHeader.Content, null,
48
- React.createElement(LongContent, null))));
49
- };
50
- const StickyHeaderLeftCenterDemo = () => {
51
- return (React.createElement(StickyHeader, { position: "left" },
52
- React.createElement(Header, { center: true },
53
- "x",
54
- React.createElement("br", null),
55
- "x",
56
- React.createElement("br", null),
57
- "x"),
58
- React.createElement(StickyHeader.Content, null,
59
- React.createElement(LongContent, null))));
60
- };
61
- export { StickyHeaderDemo, StickyHeaderBottomDemo, StickyHeaderTopBottomDemo, StickyHeaderLeftDemo, StickyHeaderRightDemo, StickyHeaderLeftCenterDemo, };
62
- //# sourceMappingURL=StickyHeader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StickyHeader.js","sourceRoot":"","sources":["../../../../../src/demo/components/layout/header/StickyHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,WAAW,GAAa,GAAG,EAAE;IAE/B,MAAM,WAAW,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,6BAAK,GAAG,EAAE,GAAG,cAAe,CAAC,CAAC;IAC7F,OAAO,0CAAG,WAAW,CAAI,CAAC;AAC9B,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,GAAG,EAAE;IAC1B,OAAO,CACH,oBAAC,YAAY;QACT,oBAAC,MAAM,qBAAoB;QAC3B,oBAAC,YAAY,CAAC,OAAO;YACjB,oBAAC,WAAW,OAAG,CACI,CACZ,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,sBAAsB,GAAG,GAAG,EAAE;IAChC,OAAO,CACH,oBAAC,YAAY,IAAC,QAAQ,EAAE,QAAQ;QAC5B,oBAAC,MAAM,qBAAoB;QAC3B,oBAAC,YAAY,CAAC,OAAO;YACjB,oBAAC,WAAW,OAAG,CACI,CACZ,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,yBAAyB,GAAG,GAAG,EAAE;IACnC,OAAO,CACH,oBAAC,YAAY,IAAC,QAAQ,EAAE,KAAK;QACzB,oBAAC,MAAM,qBAAoB;QAC3B,oBAAC,YAAY,CAAC,OAAO;YACjB,oBAAC,YAAY,IAAC,QAAQ,EAAE,QAAQ;gBAC5B,oBAAC,MAAM,qBAAoB;gBAC3B,oBAAC,YAAY,CAAC,OAAO;oBACjB,oBAAC,WAAW,OAAG,CACI,CACZ,CACI,CACZ,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,GAAG,EAAE;IAC9B,OAAO,CACH,oBAAC,YAAY,IAAC,QAAQ,EAAE,MAAM;QAC1B,oBAAC,MAAM;;YAAE,+BAAM;;YAAC,+BAAM;gBAAU;QAChC,oBAAC,YAAY,CAAC,OAAO;YACjB,oBAAC,WAAW,OAAG,CACI,CACZ,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,GAAG,EAAE;IAC/B,OAAO,CACH,oBAAC,YAAY,IAAC,QAAQ,EAAE,OAAO;QAC3B,oBAAC,MAAM;;YAAE,+BAAM;;YAAC,+BAAM;gBAAU;QAChC,oBAAC,YAAY,CAAC,OAAO;YACjB,oBAAC,WAAW,OAAG,CACI,CACZ,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,0BAA0B,GAAG,GAAG,EAAE;IACpC,OAAO,CACH,oBAAC,YAAY,IAAC,QAAQ,EAAE,MAAM;QAC1B,oBAAC,MAAM,IAAC,MAAM,EAAE,IAAI;;YAAG,+BAAM;;YAAC,+BAAM;gBAAU;QAC9C,oBAAC,YAAY,CAAC,OAAO;YACjB,oBAAC,WAAW,OAAG,CACI,CACZ,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EACH,gBAAgB,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,qBAAqB,EAChH,0BAA0B,GAC7B,CAAC"}
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- declare const ListItemDemo: () => JSX.Element;
3
- export { ListItemDemo };
4
- //# sourceMappingURL=List.Item.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"List.Item.d.ts","sourceRoot":"","sources":["../../../../../src/demo/components/layout/list/List.Item.tsx"],"names":[],"mappings":";AAMA,QAAA,MAAM,YAAY,mBAcjB,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -1,17 +0,0 @@
1
- import React, { useCallback } from "react";
2
- import Link from "next/link";
3
- import { Item, List } from "../../../../index.js";
4
- import styles from "./List.Item.module.scss";
5
- const ListItemDemo = () => {
6
- const handleClick = useCallback(() => { window.alert("Clicked"); }, []);
7
- return (React.createElement(List, null,
8
- React.createElement(Item, null, "I am an item"),
9
- React.createElement(Item, null, "I am an item"),
10
- React.createElement(Item, { href: "https://www.npmjs.com/package/react-miui" }, "I am clickable item"),
11
- React.createElement(Item, { to: "/react-miui", Link: Link }, "I am local link item"),
12
- React.createElement(Item, { onClick: handleClick }, "Click me to see my action"),
13
- React.createElement(Item, { className: styles.custom }, "I'm a custom item"),
14
- React.createElement(Item, null, "I am an item")));
15
- };
16
- export { ListItemDemo };
17
- //# sourceMappingURL=List.Item.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"List.Item.js","sourceRoot":"","sources":["../../../../../src/demo/components/layout/list/List.Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAE7C,MAAM,YAAY,GAAG,GAAG,EAAE;IACtB,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAExE,OAAO,CACH,oBAAC,IAAI;QACD,oBAAC,IAAI,uBAAoB;QACzB,oBAAC,IAAI,uBAAoB;QACzB,oBAAC,IAAI,IAAC,IAAI,EAAE,0CAA0C,0BAA4B;QAClF,oBAAC,IAAI,IAAC,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,2BAA6B;QAChE,oBAAC,IAAI,IAAC,OAAO,EAAE,WAAW,gCAAkC;QAC5D,oBAAC,IAAI,IAAC,SAAS,EAAE,MAAM,CAAC,MAAM,wBAA0B;QACxD,oBAAC,IAAI,uBAAoB,CACtB,CACV,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -1,3 +0,0 @@
1
- .custom {
2
- border-left: 3px solid green;
3
- }
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- declare const ActionDemo: React.FC;
3
- declare const ActionsOnLeft: () => JSX.Element;
4
- declare const ActionsOnBottom: () => JSX.Element;
5
- declare const ActionLabelsOnBottom: () => JSX.Element;
6
- declare const ActionsDemo: () => JSX.Element;
7
- export { ActionDemo, ActionsOnLeft, ActionsOnBottom, ActionLabelsOnBottom, ActionsDemo };
8
- //# sourceMappingURL=Action.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../../../src/demo/components/ui/action/Action.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAoBvB,CAAC;AAEF,QAAA,MAAM,aAAa,mBAclB,CAAC;AAEF,QAAA,MAAM,eAAe,mBAcpB,CAAC;AAEF,QAAA,MAAM,oBAAoB,mBAyBzB,CAAC;AAEF,QAAA,MAAM,WAAW,mBAgBhB,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,oBAAoB,EAAE,WAAW,EAAE,CAAC"}
@@ -1,73 +0,0 @@
1
- import React from "react";
2
- import Link from "next/link";
3
- import { Action } from "../../../../components/ui/action/Action";
4
- import { ICON } from "../../../../components/icons/Icon";
5
- import { StickyHeader } from "../../../../components/layout/header/StickyHeader";
6
- import { Header } from "../../../../components/layout/header/Header";
7
- import styles from "./ActionDemo.module.scss";
8
- import { EqualActions } from "../../../../components/ui/action/EqualActions";
9
- const handleClick = () => { alert(1); };
10
- const ActionDemo = () => {
11
- return (React.createElement(React.Fragment, null,
12
- React.createElement("div", null,
13
- React.createElement(Action, { icon: ICON.checkmark }),
14
- " - action without action"),
15
- React.createElement("div", null,
16
- React.createElement(Action, { icon: ICON.checkmark, Link: Link, to: "react-miui" }),
17
- " - internal link action"),
18
- React.createElement("div", null,
19
- React.createElement(Action, { icon: ICON.checkmark, href: "https://www.npmjs.com/package/react-miui" }),
20
- " - external link action"),
21
- React.createElement("div", null,
22
- React.createElement(Action, { icon: ICON.checkmark, onClick: handleClick }),
23
- " - onClick action"),
24
- React.createElement("div", null,
25
- React.createElement(Action, { icon: ICON.checkmark, onClick: handleClick, label: "Pineapple" }),
26
- " - onClick action with label")));
27
- };
28
- const ActionsOnLeft = () => {
29
- return (React.createElement(StickyHeader, { position: "left" },
30
- React.createElement(Header, { center: true, className: styles.header },
31
- React.createElement(Action, { icon: ICON.checkmark }),
32
- React.createElement(Action, { icon: ICON.checkmark }),
33
- React.createElement(Action, { icon: ICON.checkmark })),
34
- React.createElement(StickyHeader.Content, null, "content")));
35
- };
36
- const ActionsOnBottom = () => {
37
- return (React.createElement(StickyHeader, { position: "bottom" },
38
- React.createElement(Header, { center: true, className: styles.header },
39
- React.createElement(Action, { icon: ICON.checkmark }),
40
- React.createElement(Action, { icon: ICON.checkmark }),
41
- React.createElement(Action, { icon: ICON.checkmark })),
42
- React.createElement(StickyHeader.Content, null, "content")));
43
- };
44
- const ActionLabelsOnBottom = () => {
45
- return (React.createElement(StickyHeader, { position: "bottom" },
46
- React.createElement(Header, { center: true, className: styles.header },
47
- React.createElement(Action, { icon: ICON.checkmark, label: "Add" }),
48
- React.createElement(Action, { icon: ICON.checkmark, label: "Delete" }),
49
- React.createElement(Action, { icon: ICON.checkmark, label: "Share on Web" })),
50
- React.createElement(StickyHeader.Content, null,
51
- React.createElement(StickyHeader, { position: "top" },
52
- React.createElement(Header, { center: true, className: styles.header },
53
- React.createElement(Action, { icon: ICON.checkmark, label: "Add" }),
54
- React.createElement(Action, { icon: ICON.checkmark, label: "Delete" }),
55
- React.createElement(Action, { icon: ICON.checkmark, label: "Share" })),
56
- React.createElement(StickyHeader.Content, null,
57
- "When you put just `Action`s into Header it will be automatically wrapped with EqualActions so if labels width are not equal each action will take the same space as the most wide item. If you don't like this behavior - wrap your actions into React.Fragment ",
58
- "<></>",
59
- " or pass extra",
60
- "<span />",
61
- ".")))));
62
- };
63
- const ActionsDemo = () => {
64
- return (React.createElement("div", null,
65
- "To make every action take the same amount of horizontal space you need to wrap every Action with EqualActions wrapper. Some components (like Header) will do that automatically for you. If you need to use Actions outside of such components - manually wrap them with EqualActions.",
66
- React.createElement("div", null,
67
- React.createElement(EqualActions, null,
68
- React.createElement(Action, { icon: ICON.checkmark, label: "Add" }),
69
- React.createElement(Action, { icon: ICON.checkmark, label: "Delete" }),
70
- React.createElement(Action, { icon: ICON.checkmark, label: "Share on Web" })))));
71
- };
72
- export { ActionDemo, ActionsOnLeft, ActionsOnBottom, ActionLabelsOnBottom, ActionsDemo };
73
- //# sourceMappingURL=Action.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../../../src/demo/components/ui/action/Action.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,yCAAyC,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAE,MAAM,EAAE,MAAM,6CAA6C,CAAC;AAErE,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAE7E,MAAM,WAAW,GAAG,GAAG,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAExC,MAAM,UAAU,GAAa,GAAG,EAAE;IAC9B,OAAO,CACH;QACI;YACI,oBAAC,MA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T,oBAAC,MAAM,IAAC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,KAAK,GAAI;gBAC9C,oBAAC,MAAM,IAAC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,QAAQ,GAAI;gBACjD,oBAAC,MAAM,IAAC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,cAAc,GAAI,CAC5C,CACb,CACJ,CACT,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,oBAAoB,EAAE,WAAW,EAAE,CAAC"}
@@ -1,3 +0,0 @@
1
- .header {
2
- gap: calc(56px / var(--ratio-dimensions));
3
- }
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- declare const ButtonDemo: () => JSX.Element;
3
- export { ButtonDemo };
4
- //# sourceMappingURL=ButtonDemo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonDemo.d.ts","sourceRoot":"","sources":["../../../../../src/demo/components/ui/button/ButtonDemo.tsx"],"names":[],"mappings":";AAGA,QAAA,MAAM,UAAU,mBAYf,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -1,14 +0,0 @@
1
- import React from "react";
2
- import { Button } from "../../../../index.js";
3
- const ButtonDemo = () => {
4
- return (React.createElement("div", null,
5
- React.createElement(Button, null, "Basic button"),
6
- React.createElement("br", null),
7
- React.createElement(Button, { disabled: true }, "Disabled button"),
8
- React.createElement("br", null),
9
- React.createElement(Button, { variant: "inline" }, "Inline button"),
10
- React.createElement("br", null),
11
- React.createElement(Button, { variant: "outline" }, "Outline button")));
12
- };
13
- export { ButtonDemo };
14
- //# sourceMappingURL=ButtonDemo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonDemo.js","sourceRoot":"","sources":["../../../../../src/demo/components/ui/button/ButtonDemo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,MAAM,UAAU,GAAG,GAAG,EAAE;IACpB,OAAO,CACH;QACI,oBAAC,MAAM,uBAAsB;QAC7B,+BAAM;QACN,oBAAC,MAAM,IAAC,QAAQ,EAAE,IAAI,sBAA0B;QAChD,+BAAM;QACN,oBAAC,MAAM,IAAC,OAAO,EAAE,QAAQ,oBAAwB;QACjD,+BAAM;QACN,oBAAC,MAAM,IAAC,OAAO,EAAE,SAAS,qBAAyB,CACjD,CACT,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- declare const DirectionPadDemo: React.FC;
3
- export { DirectionPadDemo };
4
- //# sourceMappingURL=Pad.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Pad.d.ts","sourceRoot":"","sources":["../../../../../src/demo/components/ui/directionPad/Pad.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAGrD,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAkC7B,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1,27 +0,0 @@
1
- import React, { useCallback, useState } from "react";
2
- import { DirectionPad } from "../../../..";
3
- const DirectionPadDemo = (props) => {
4
- const [lastClick, setLastClick] = useState("<none>");
5
- const handleLeftClick = useCallback(() => {
6
- setLastClick("left");
7
- }, []);
8
- const handleRightClick = useCallback(() => {
9
- setLastClick("right");
10
- }, []);
11
- const handleUpClick = useCallback(() => {
12
- setLastClick("up");
13
- }, []);
14
- const handleDownClick = useCallback(() => {
15
- setLastClick("down");
16
- }, []);
17
- const handleMiddleClick = useCallback(() => {
18
- setLastClick("res");
19
- }, []);
20
- return (React.createElement(React.Fragment, null,
21
- React.createElement(DirectionPad, { onLeftPress: handleLeftClick, onRightPress: handleRightClick, onUpPress: handleUpClick, onDownPress: handleDownClick, onMiddlePress: handleMiddleClick, middleLabel: "RES" }),
22
- React.createElement("div", null,
23
- "Last clicked button: ",
24
- lastClick)));
25
- };
26
- export { DirectionPadDemo };
27
- //# sourceMappingURL=Pad.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Pad.js","sourceRoot":"","sources":["../../../../../src/demo/components/ui/directionPad/Pad.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,gBAAgB,GAAa,CAAC,KAAK,EAAE,EAAE;IACzC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAErD,MAAM,eAAe,GAAG,WAAW,CAAC,GAAG,EAAE;QACrC,YAAY,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,MAAM,gBAAgB,GAAG,WAAW,CAAC,GAAG,EAAE;QACtC,YAAY,CAAC,OAAO,CAAC,CAAC;IAC1B,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,MAAM,aAAa,GAAG,WAAW,CAAC,GAAG,EAAE;QACnC,YAAY,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,MAAM,eAAe,GAAG,WAAW,CAAC,GAAG,EAAE;QACrC,YAAY,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,MAAM,iBAAiB,GAAG,WAAW,CAAC,GAAG,EAAE;QACvC,YAAY,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACH;QACI,oBAAC,YAAY,IACT,WAAW,EAAE,eAAe,EAC5B,YAAY,EAAE,gBAAgB,EAC9B,SAAS,EAAE,aAAa,EACxB,WAAW,EAAE,eAAe,EAC5B,aAAa,EAAE,iBAAiB,EAChC,WAAW,EAAE,KAAK,GACpB;QACF;;YAC0B,SAAS,CAC7B,CACP,CACN,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- declare const IconsDemo: React.FC;
3
- export { IconsDemo };
4
- //# sourceMappingURL=Icons.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icons.d.ts","sourceRoot":"","sources":["../../../../../src/demo/components/ui/icons/Icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAiBtB,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -1,14 +0,0 @@
1
- import React from "react";
2
- import { Icon, ICON, Item, List } from "../../../../index.js";
3
- import styles from "./Icons.module.scss";
4
- const IconsDemo = () => {
5
- const icons = Object.values(ICON).map((value) => {
6
- return (React.createElement(Item, { key: value },
7
- React.createElement("div", { className: styles.row },
8
- value,
9
- React.createElement(Icon, { name: value }))));
10
- });
11
- return (React.createElement(List, null, icons));
12
- };
13
- export { IconsDemo };
14
- //# sourceMappingURL=Icons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icons.js","sourceRoot":"","sources":["../../../../../src/demo/components/ui/icons/Icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,SAAS,GAAa,GAAG,EAAE;IAC7B,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QAC5C,OAAO,CACH,oBAAC,IAAI,IAAC,GAAG,EAAE,KAAK;YACZ,6BAAK,SAAS,EAAE,MAAM,CAAC,GAAG;gBACrB,KAAK;gBACN,oBAAC,IAAI,IAAC,IAAI,EAAE,KAAK,GAAI,CACnB,CACH,CACV,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,OAAO,CACH,oBAAC,IAAI,QACA,KAAK,CACH,CACV,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -1,4 +0,0 @@
1
- .row {
2
- display: flex;
3
- justify-content: space-between;
4
- }
@@ -1,13 +0,0 @@
1
- import type { AnyComponent } from "../types";
2
- interface TheMap {
3
- [key: string]: TheMapItem;
4
- }
5
- interface TheMapItem {
6
- name: string;
7
- Component: AnyComponent;
8
- children?: TheMap;
9
- }
10
- declare const componentsMap: TheMap;
11
- export { componentsMap, };
12
- export type { TheMap, TheMapItem, };
13
- //# sourceMappingURL=componentsMap.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"componentsMap.d.ts","sourceRoot":"","sources":["../../src/demo/componentsMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAyB7C,UAAU,MAAM;IAEZ,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC;CAC7B;AAED,UAAU,UAAU;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,YAAY,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,QAAA,MAAM,aAAa,EAAE,MAyFpB,CAAC;AAEF,OAAO,EACH,aAAa,GAChB,CAAC;AAEF,YAAY,EACR,MAAM,EACN,UAAU,GACb,CAAC"}
@@ -1,100 +0,0 @@
1
- import { CheckboxDemo } from "./components/form/Checkbox";
2
- import { CenteredHeaderDemo, HeaderDemo, HeaderWithButtonsDemo, HeaderWithButtonsOnSideDemo, } from "./components/layout/header/Header";
3
- import { StickyHeaderBottomDemo, StickyHeaderDemo, StickyHeaderLeftCenterDemo, StickyHeaderLeftDemo, StickyHeaderRightDemo, StickyHeaderTopBottomDemo, } from "./components/layout/header/StickyHeader";
4
- import { ListItemDemo } from "./components/layout/list/List.Item";
5
- import { DirectionPadDemo } from "./components/ui/directionPad/Pad";
6
- import { IconsDemo } from "./components/ui/icons/Icons";
7
- import { ButtonDemo } from "./components/ui/button/ButtonDemo";
8
- import { ActionDemo, ActionLabelsOnBottom, ActionsDemo, ActionsOnBottom, ActionsOnLeft, } from "./components/ui/action/Action";
9
- const componentsMap = {
10
- Button: {
11
- name: "Button",
12
- Component: ButtonDemo,
13
- },
14
- Checkbox: {
15
- name: "Checkbox",
16
- Component: CheckboxDemo,
17
- },
18
- Header: {
19
- name: "Header",
20
- Component: HeaderDemo,
21
- children: {
22
- Centered: {
23
- name: "Centered",
24
- Component: CenteredHeaderDemo,
25
- },
26
- WithButtons: {
27
- name: "With buttons",
28
- Component: HeaderWithButtonsDemo,
29
- children: {
30
- OnLeft: {
31
- name: "On the side",
32
- Component: HeaderWithButtonsOnSideDemo,
33
- },
34
- },
35
- },
36
- Sticky: {
37
- name: "Sticky",
38
- Component: StickyHeaderDemo,
39
- children: {
40
- StickyBottom: {
41
- name: "On bottom",
42
- Component: StickyHeaderBottomDemo,
43
- },
44
- StickyTopBottom: {
45
- name: "On top & bottom",
46
- Component: StickyHeaderTopBottomDemo,
47
- },
48
- StickyLeft: {
49
- name: "On left",
50
- Component: StickyHeaderLeftDemo,
51
- },
52
- StickyRight: {
53
- name: "On right",
54
- Component: StickyHeaderRightDemo,
55
- },
56
- StickyLeftCentered: {
57
- name: "On left centered",
58
- Component: StickyHeaderLeftCenterDemo,
59
- },
60
- },
61
- },
62
- },
63
- },
64
- Action: {
65
- name: "Action",
66
- Component: ActionDemo,
67
- children: {
68
- ActionOnBottom: {
69
- name: "Actions on header",
70
- Component: ActionsOnBottom,
71
- },
72
- ActionLabelsOnBottom: {
73
- name: "Actions with labels on header",
74
- Component: ActionLabelsOnBottom,
75
- },
76
- ActionOnLeft: {
77
- name: "Actions on left header",
78
- Component: ActionsOnLeft,
79
- },
80
- EqualActions: {
81
- name: "EqualActions (wrapper)",
82
- Component: ActionsDemo,
83
- },
84
- },
85
- },
86
- ListItem: {
87
- name: "List & Item",
88
- Component: ListItemDemo,
89
- },
90
- Pad: {
91
- name: "Direction pad",
92
- Component: DirectionPadDemo,
93
- },
94
- Icons: {
95
- name: "Icons",
96
- Component: IconsDemo,
97
- },
98
- };
99
- export { componentsMap, };
100
- //# sourceMappingURL=componentsMap.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"componentsMap.js","sourceRoot":"","sources":["../../src/demo/componentsMap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EACH,kBAAkB,EAClB,UAAU,EACV,qBAAqB,EACrB,2BAA2B,GAC9B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACH,sBAAsB,EACtB,gBAAgB,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,qBAAqB,EACzF,yBAAyB,GAC5B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EACH,UAAU,EACV,oBAAoB,EACpB,WAAW,EACX,eAAe,EACf,aAAa,GAChB,MAAM,+BAA+B,CAAC;AAavC,MAAM,aAAa,GAAW;IAC1B,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,UAAU;KACxB;IACD,QAAQ,EAAE;QACN,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,YAAY;KAC1B;IACD,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,UAAU;QACr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B,SAAS,EAAE,YAAY;KAC1B;IACD,GAAG,EAAE;QACD,IAAI,EAAE,eAAe;QACrB,SAAS,EAAE,gBAAgB;KAC9B;IACD,KAAK,EAAE;QACH,IAAI,EAAE,OAAO;QACb,SAAS,EAAE,SAAS;KACvB;CACJ,CAAC;AAEF,OAAO,EACH,aAAa,GAChB,CAAC"}
@@ -1,3 +0,0 @@
1
- declare const makeVariants: <T extends string>(variants: T | T[] | undefined) => T[];
2
- export { makeVariants, };
3
- //# sourceMappingURL=makeVariants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"makeVariants.d.ts","sourceRoot":"","sources":["../../../src/demo/utils/makeVariants.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY,0DAQjB,CAAC;AAEF,OAAO,EACH,YAAY,GACf,CAAC"}
@@ -1,11 +0,0 @@
1
- const makeVariants = (variants) => {
2
- if (!variants) {
3
- return [];
4
- }
5
- if (typeof variants === "string") {
6
- return variants.split(" ").filter(Boolean);
7
- }
8
- return variants;
9
- };
10
- export { makeVariants, };
11
- //# sourceMappingURL=makeVariants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"makeVariants.js","sourceRoot":"","sources":["../../../src/demo/utils/makeVariants.ts"],"names":[],"mappings":"AAAA,MAAM,YAAY,GAAG,CAAmB,QAA6B,EAAO,EAAE;IAC1E,IAAI,CAAC,QAAQ,EAAE;QACX,OAAO,EAAE,CAAC;KACb;IACD,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QAC9B,OAAO,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAQ,CAAC;KACrD;IACD,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAC;AAEF,OAAO,EACH,YAAY,GACf,CAAC"}
@@ -1,3 +0,0 @@
1
- declare const safeUseHash: () => string;
2
- export { safeUseHash, };
3
- //# sourceMappingURL=safeUseHash.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"safeUseHash.d.ts","sourceRoot":"","sources":["../../../src/demo/utils/safeUseHash.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,WAAW,cAQhB,CAAC;AAEF,OAAO,EACH,WAAW,GACd,CAAC"}
@@ -1,10 +0,0 @@
1
- import { useHash } from "react-use";
2
- const safeUseHash = () => {
3
- if (typeof window === "undefined") {
4
- return "";
5
- }
6
- const [hash] = useHash();
7
- return hash;
8
- };
9
- export { safeUseHash, };
10
- //# sourceMappingURL=safeUseHash.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"safeUseHash.js","sourceRoot":"","sources":["../../../src/demo/utils/safeUseHash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,WAAW,GAAG,GAAG,EAAE;IACrB,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QAC/B,OAAO,EAAE,CAAC;KACb;IAED,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,EAAE,CAAC;IAEzB,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;AAEF,OAAO,EACH,WAAW,GACd,CAAC"}
@@ -1,9 +0,0 @@
1
- html, body, #__next {
2
- height: 100%;
3
- margin: 0;
4
- padding: 0;
5
- }
6
-
7
- body {
8
- font-family: sans-serif;
9
- }
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import type { AppProps } from "next/app";
3
- import "../global.scss";
4
- import "../demo-global.scss";
5
- declare const MyApp: ({ Component, pageProps }: AppProps) => JSX.Element;
6
- export default MyApp;
7
- //# sourceMappingURL=_app.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_app.d.ts","sourceRoot":"","sources":["../../src/pages/_app.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,gBAAgB,CAAC;AACxB,OAAO,qBAAqB,CAAC;AAE7B,QAAA,MAAM,KAAK,6BAA8B,QAAQ,gBAOhD,CAAC;AAEF,eAAe,KAAK,CAAC"}
package/esm/pages/_app.js DELETED
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- import Head from "next/head";
3
- import "../global.scss";
4
- import "../demo-global.scss";
5
- const MyApp = ({ Component, pageProps }) => (React.createElement(React.Fragment, null,
6
- React.createElement(Head, null,
7
- React.createElement("title", null, "MIUI in React")),
8
- React.createElement(Component, { ...pageProps })));
9
- export default MyApp;
10
- //# sourceMappingURL=_app.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_app.js","sourceRoot":"","sources":["../../src/pages/_app.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,gBAAgB,CAAC;AACxB,OAAO,qBAAqB,CAAC;AAE7B,MAAM,KAAK,GAAG,CAAC,EAAE,SAAS,EAAE,SAAS,EAAY,EAAE,EAAE,CAAC,CAClD;IACI,oBAAC,IAAI;QACD,mDAA4B,CACzB;IACP,oBAAC,SAAS,OAAK,SAAS,GAAI,CAC7B,CACN,CAAC;AAEF,eAAe,KAAK,CAAC"}