@gobolt/genesis 0.0.7 → 0.0.8

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 (258) hide show
  1. package/README.md +8 -2
  2. package/dist/AntdIcon-c395a1c4.js +204 -0
  3. package/dist/CheckOutlined-52d9ac25.js +29 -0
  4. package/dist/{CloseCircleFilled-ZIY-u-27.js → CloseCircleFilled-ddc51e7e.js} +11 -8
  5. package/dist/CloseOutlined-14b8bba1.js +16 -0
  6. package/dist/Compact-c39ed20d.js +179 -0
  7. package/dist/ContextIsolator-b09b2c52.js +20 -0
  8. package/dist/DownOutlined-64a4732a.js +206 -0
  9. package/dist/EllipsisOutlined-60122660.js +1115 -0
  10. package/dist/{ExclamationCircleFilled-BICVVQIg.js → ExclamationCircleFilled-23ef9812.js} +22 -16
  11. package/dist/InfoCircleFilled-c5f90c20.js +16 -0
  12. package/dist/Overflow-a570fa69.js +361 -0
  13. package/dist/RightOutlined-83515eb4.js +16 -0
  14. package/dist/SearchOutlined-a9014e08.js +16 -0
  15. package/dist/{TextArea-3MOYYuAQ.js → TextArea-20825221.js} +597 -582
  16. package/dist/{button-BNV2qdrP.js → button-fa1c119c.js} +287 -280
  17. package/dist/collapse-345bc884.js +20 -0
  18. package/dist/compact-item-b8f85aa6.js +75 -0
  19. package/dist/components/Badge/Badge.d.ts +6 -0
  20. package/dist/components/Badge/Badge.js +102 -0
  21. package/dist/components/Badge/__stories__/Badge.stories.d.ts +13 -0
  22. package/dist/components/Badge/__tests__/Badge.test.js +72 -0
  23. package/dist/components/Badge/icons/ASN.d.ts +2 -0
  24. package/dist/components/Badge/icons/ASN.js +23 -0
  25. package/dist/components/Badge/icons/Appointment.d.ts +2 -0
  26. package/dist/components/Badge/icons/Appointment.js +23 -0
  27. package/dist/components/Badge/icons/Inventory.d.ts +2 -0
  28. package/dist/components/Badge/icons/Inventory.js +23 -0
  29. package/dist/components/Badge/icons/Parcel.d.ts +2 -0
  30. package/dist/components/Badge/icons/Parcel.js +23 -0
  31. package/dist/components/Badge/icons/Product.d.ts +2 -0
  32. package/dist/components/Badge/icons/Product.js +23 -0
  33. package/dist/components/Badge/icons/Route.d.ts +2 -0
  34. package/dist/components/Badge/icons/Route.js +23 -0
  35. package/dist/components/Badge/icons/Shipment.d.ts +2 -0
  36. package/dist/components/Badge/icons/Shipment.js +23 -0
  37. package/dist/components/Badge/icons/ShoppingCart.d.ts +2 -0
  38. package/dist/components/Badge/icons/ShoppingCart.js +23 -0
  39. package/dist/components/Badge/icons/System.d.ts +2 -0
  40. package/dist/components/Badge/icons/System.js +23 -0
  41. package/dist/components/Badge/index.d.ts +2 -0
  42. package/dist/components/Badge/index.js +23 -0
  43. package/dist/components/Badge/styles.d.ts +3 -0
  44. package/dist/components/Badge/styles.js +35 -0
  45. package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
  46. package/dist/components/Breadcrumb/Breadcrumb.js +27 -0
  47. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +8 -0
  48. package/dist/components/Breadcrumb/Breadcrumb.types.js +1 -0
  49. package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +10 -0
  50. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +70 -0
  51. package/dist/components/Breadcrumb/index.d.ts +3 -0
  52. package/dist/components/Breadcrumb/index.js +27 -0
  53. package/dist/components/Breadcrumb/styles.d.ts +23 -0
  54. package/dist/components/Breadcrumb/styles.js +2457 -0
  55. package/dist/components/Button/Button.js +42 -0
  56. package/dist/components/Button/__tests__/Button.test.js +61 -0
  57. package/dist/components/Button/index.js +22 -0
  58. package/dist/components/{atoms/button → Button}/styles.js +30 -19
  59. package/dist/components/{atoms/checkbox → Checkbox}/Checkbox.d.ts +2 -1
  60. package/dist/components/Checkbox/Checkbox.js +70 -0
  61. package/dist/components/Checkbox/__tests__/Checkbox.test.js +64 -0
  62. package/dist/components/Checkbox/index.js +49 -0
  63. package/dist/components/{atoms/checkbox → Checkbox}/styles.d.ts +1 -3
  64. package/dist/components/{atoms/checkbox → Checkbox}/styles.js +165 -157
  65. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +72 -0
  66. package/dist/components/ErrorBoundaryFallback/index.js +51 -0
  67. package/dist/components/ErrorBoundaryFallback/styles.d.ts +3 -0
  68. package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.js +38 -34
  69. package/dist/components/{molecules/form → Form}/Form.d.ts +2 -4
  70. package/dist/components/Form/Form.js +49 -0
  71. package/dist/components/Form/__stories__/FormStory.js +130 -0
  72. package/dist/components/Form/index.js +48 -0
  73. package/dist/components/{atoms/input → Input}/Input.d.ts +1 -3
  74. package/dist/components/Input/Input.js +42 -0
  75. package/dist/components/{atoms/input → Input}/__stories__/Input.stories.d.ts +5 -1
  76. package/dist/components/Input/__tests__/Input.test.d.ts +1 -0
  77. package/dist/components/Input/__tests__/Input.test.js +69 -0
  78. package/dist/components/Input/index.js +31 -0
  79. package/dist/components/{atoms/input → Input}/styles.d.ts +2 -3
  80. package/dist/components/Input/styles.js +542 -0
  81. package/dist/components/Message/Message.d.ts +13 -0
  82. package/dist/components/Message/Message.js +105 -0
  83. package/dist/components/Message/__stories__/Message.stories.d.ts +15 -0
  84. package/dist/components/Message/__tests__/Message.test.d.ts +1 -0
  85. package/dist/components/Message/__tests__/Message.test.js +88 -0
  86. package/dist/components/Message/index.d.ts +2 -0
  87. package/dist/components/Message/index.js +50 -0
  88. package/dist/components/Message/styles.d.ts +5 -0
  89. package/dist/components/Message/styles.js +35 -0
  90. package/dist/components/Notification/Notification.d.ts +16 -0
  91. package/dist/components/Notification/Notification.js +1436 -0
  92. package/dist/components/Notification/__stories__/Notification.stories.d.ts +10 -0
  93. package/dist/components/Notification/__tests__/Notification.test.d.ts +1 -0
  94. package/dist/components/Notification/__tests__/Notification.test.js +76 -0
  95. package/dist/components/Notification/index.d.ts +2 -0
  96. package/dist/components/Notification/index.js +61 -0
  97. package/dist/components/Notification/styles.d.ts +6 -0
  98. package/dist/components/Notification/styles.js +49 -0
  99. package/dist/components/Radio/Radio.d.ts +14 -0
  100. package/dist/components/Radio/Radio.js +114 -0
  101. package/dist/components/Radio/RadioGroup.d.ts +12 -0
  102. package/dist/components/Radio/RadioGroup.js +86 -0
  103. package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +9 -0
  104. package/dist/components/Radio/__tests__/RadioGroup.test.d.ts +1 -0
  105. package/dist/components/Radio/__tests__/RadioGroup.test.js +85 -0
  106. package/dist/components/Radio/index.d.ts +2 -0
  107. package/dist/components/Radio/index.js +58 -0
  108. package/dist/components/Radio/states/RadioChecked.d.ts +2 -0
  109. package/dist/components/Radio/states/RadioChecked.js +18 -0
  110. package/dist/components/Radio/states/RadioCheckedDisabled.d.ts +2 -0
  111. package/dist/components/Radio/states/RadioCheckedDisabled.js +18 -0
  112. package/dist/components/Radio/states/RadioCheckedFocussed.d.ts +2 -0
  113. package/dist/components/Radio/states/RadioCheckedFocussed.js +30 -0
  114. package/dist/components/Radio/states/RadioCheckedHover.d.ts +2 -0
  115. package/dist/components/Radio/states/RadioCheckedHover.js +18 -0
  116. package/dist/components/Radio/states/RadioUnchecked.d.ts +2 -0
  117. package/dist/components/Radio/states/RadioUnchecked.js +15 -0
  118. package/dist/components/Radio/states/RadioUncheckedDisabled.d.ts +2 -0
  119. package/dist/components/Radio/states/RadioUncheckedDisabled.js +15 -0
  120. package/dist/components/Radio/states/RadioUncheckedFocussed.d.ts +2 -0
  121. package/dist/components/Radio/states/RadioUncheckedFocussed.js +29 -0
  122. package/dist/components/Radio/states/RadioUncheckedHover.d.ts +2 -0
  123. package/dist/components/Radio/states/RadioUncheckedHover.js +18 -0
  124. package/dist/components/{atoms/select → Select}/Select.d.ts +1 -1
  125. package/dist/components/Select/Select.js +48 -0
  126. package/dist/components/{atoms/select → Select}/__stories__/Select.stories.d.ts +3 -1
  127. package/dist/components/Select/__tests__/Select.test.d.ts +1 -0
  128. package/dist/components/Select/__tests__/Select.test.js +101 -0
  129. package/dist/components/Select/index.js +30 -0
  130. package/dist/components/{atoms/select → Select}/styles.d.ts +4 -1
  131. package/dist/components/Select/styles.js +3723 -0
  132. package/dist/components/Toast/Toast.d.ts +14 -0
  133. package/dist/components/Toast/Toast.js +48 -0
  134. package/dist/components/Toast/__stories__/Toast.stories.d.ts +15 -0
  135. package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -0
  136. package/dist/components/Toast/__tests__/Toast.test.js +63 -0
  137. package/dist/components/Toast/index.d.ts +2 -0
  138. package/dist/components/Toast/index.js +48 -0
  139. package/dist/components/Toast/styles.d.ts +5 -0
  140. package/dist/components/Toast/styles.js +39 -0
  141. package/dist/components/{atoms/typography → Typography}/Typography.d.ts +2 -1
  142. package/dist/components/Typography/Typography.js +48 -0
  143. package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
  144. package/dist/components/Typography/__tests__/Typography.test.js +60 -0
  145. package/dist/components/Typography/index.js +48 -0
  146. package/dist/components/Typography/styles.d.ts +7 -0
  147. package/dist/components/Typography/styles.js +55 -0
  148. package/dist/components/index.d.ts +18 -14
  149. package/dist/components/index.js +70 -14
  150. package/dist/constants/index.d.ts +104 -0
  151. package/dist/constants/index.js +41 -7
  152. package/dist/{context-CZsFJmh6.js → context-3b8a39af.js} +547 -536
  153. package/dist/genesis/GenesisThemeBreakdown.js +69 -22
  154. package/dist/genesis/GenesisThemeDemo.d.ts +0 -2
  155. package/dist/genesis/GenesisThemeDemo.js +53 -4
  156. package/dist/genesis/styles.d.ts +2 -6
  157. package/dist/genesis/styles.js +1144 -2210
  158. package/dist/index-0a886e53.js +100 -0
  159. package/dist/{index-SAAXFt-P.js → index-0b9ee239.js} +347 -338
  160. package/dist/index-1a33c134.js +1389 -0
  161. package/dist/index-4003d75b.js +3748 -0
  162. package/dist/{index-D1v_7IIx.js → index-501fc13d.js} +369 -343
  163. package/dist/index-89035ea5.js +3242 -0
  164. package/dist/{index-BQO27mgE.js → index-8c8d2d0c.js} +123 -122
  165. package/dist/{index-C7kFNqp2.js → index-e2b72ca8.js} +107 -102
  166. package/dist/index.d.ts +1 -0
  167. package/dist/index.js +77 -18
  168. package/dist/{isVisible-CNQjrJPN.js → isVisible-729780f5.js} +110 -82
  169. package/dist/{magic-string.es-BkUFmFT4.js → magic-string.es-b7491176.js} +103 -56
  170. package/dist/{SearchOutlined-DuzJkIiQ.js → pickAttrs-00ba4687.js} +16 -26
  171. package/dist/presets-83ccb923.js +787 -0
  172. package/dist/providers/GenesisProvider.d.ts +5 -0
  173. package/dist/providers/GenesisProvider.js +59 -5
  174. package/dist/providers/ThemeProvider.d.ts +2 -1
  175. package/dist/providers/ThemeProvider.js +16 -11
  176. package/dist/providers/ToastProvider.d.ts +6 -0
  177. package/dist/providers/ToastProvider.js +49 -0
  178. package/dist/providers/ToastWrapper.d.ts +7 -0
  179. package/dist/providers/ToastWrapper.js +56 -0
  180. package/dist/providers/__stories__/GenesisProvider.stories.d.ts +6 -0
  181. package/dist/providers/index.d.ts +3 -2
  182. package/dist/providers/index.js +51 -4
  183. package/dist/setup-aaca7b6f.js +21158 -0
  184. package/dist/{styled-components.browser.esm-CZ1XM4o4.js → styled-components.browser.esm-02f500bc.js} +134 -72
  185. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +54 -18
  186. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +51 -15
  187. package/dist/styles/design-tokens/variables.d.ts +7 -7
  188. package/dist/styles/design-tokens/variables.js +48 -48
  189. package/dist/styles/global-styles.js +4 -3
  190. package/dist/styles/theme/genesis-theme.d.ts +3 -0
  191. package/dist/styles/theme/genesis-theme.js +402 -263
  192. package/dist/styles/theme/global-styles.js +4 -3
  193. package/dist/styles/theme/index.js +5 -4
  194. package/dist/test/setup.js +46 -2
  195. package/dist/useVariants-a0d64298.js +30 -0
  196. package/dist/utils/isAllEnglishString.js +2 -1
  197. package/package.json +34 -28
  198. package/dist/AntdIcon-Bsnbyy6g.js +0 -200
  199. package/dist/CheckOutlined-DAynWe12.js +0 -527
  200. package/dist/Compact-CJBo3f0u.js +0 -185
  201. package/dist/ContextIsolator-CGkdKtc3.js +0 -20
  202. package/dist/Form-Cylpi4M4.js +0 -1815
  203. package/dist/Overflow-CP1M4Z0s.js +0 -369
  204. package/dist/compact-item-DH13cl8A.js +0 -61
  205. package/dist/components/atoms/button/Button.js +0 -27
  206. package/dist/components/atoms/button/index.js +0 -4
  207. package/dist/components/atoms/checkbox/Checkbox.js +0 -13
  208. package/dist/components/atoms/checkbox/__tests__/Checkbox.test.js +0 -18
  209. package/dist/components/atoms/checkbox/index.js +0 -4
  210. package/dist/components/atoms/index.d.ts +0 -1
  211. package/dist/components/atoms/index.js +0 -3
  212. package/dist/components/atoms/input/Input.js +0 -12
  213. package/dist/components/atoms/input/__tests__/Input.test.js +0 -28
  214. package/dist/components/atoms/input/index.js +0 -4
  215. package/dist/components/atoms/input/styles.js +0 -415
  216. package/dist/components/atoms/select/Select.js +0 -24
  217. package/dist/components/atoms/select/__tests__/Select.test.js +0 -10735
  218. package/dist/components/atoms/select/index.js +0 -4
  219. package/dist/components/atoms/select/styles.js +0 -3868
  220. package/dist/components/atoms/typography/Typography.js +0 -44
  221. package/dist/components/atoms/typography/__tests__/Typography.test.js +0 -16
  222. package/dist/components/atoms/typography/index.js +0 -4
  223. package/dist/components/atoms/typography/styles.d.ts +0 -11
  224. package/dist/components/atoms/typography/styles.js +0 -28
  225. package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +0 -35
  226. package/dist/components/molecules/error-boundary-fallback/index.js +0 -4
  227. package/dist/components/molecules/error-boundary-fallback/styles.d.ts +0 -1
  228. package/dist/components/molecules/form/Form.js +0 -7
  229. package/dist/components/molecules/form/__stories__/FormStory.js +0 -90
  230. package/dist/components/molecules/form/index.js +0 -4
  231. package/dist/index-3MWkSVA1.js +0 -96
  232. package/dist/index-BPtFqhcp.js +0 -19110
  233. package/dist/index-BWys7dkb.js +0 -4462
  234. package/dist/index-VDH3iLaC.js +0 -884
  235. package/dist/setup-CMYVZCPF.js +0 -33883
  236. package/dist/useVariants-CEpw6Ww6.js +0 -29
  237. /package/dist/components/{atoms/checkbox/__tests__/Checkbox.test.d.ts → Badge/__tests__/Badge.test.d.ts} +0 -0
  238. /package/dist/components/{atoms/input/__tests__/Input.test.d.ts → Breadcrumb/__tests__/Breadcrumb.test.d.ts} +0 -0
  239. /package/dist/components/{atoms/button → Button}/Button.d.ts +0 -0
  240. /package/dist/components/{atoms/button → Button}/__stories__/Button.stories.d.ts +0 -0
  241. /package/dist/components/{atoms/select/__tests__/Select.test.d.ts → Button/__tests__/Button.test.d.ts} +0 -0
  242. /package/dist/components/{atoms/button → Button}/index.d.ts +0 -0
  243. /package/dist/components/{atoms/button → Button}/styles.d.ts +0 -0
  244. /package/dist/components/{atoms/checkbox → Checkbox}/__stories__/Checkbox.stories.d.ts +0 -0
  245. /package/dist/components/{atoms/typography/__tests__/Typography.test.d.ts → Checkbox/__tests__/Checkbox.test.d.ts} +0 -0
  246. /package/dist/components/{atoms/checkbox → Checkbox}/index.d.ts +0 -0
  247. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/ErrorBoundaryFallback.d.ts +0 -0
  248. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -0
  249. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/index.d.ts +0 -0
  250. /package/dist/components/{molecules/form → Form}/__stories__/Form.stories.d.ts +0 -0
  251. /package/dist/components/{molecules/form → Form}/__stories__/FormStory.d.ts +0 -0
  252. /package/dist/components/{molecules/form → Form}/index.d.ts +0 -0
  253. /package/dist/components/{atoms/input → Input}/index.d.ts +0 -0
  254. /package/dist/components/{atoms/select → Select}/index.d.ts +0 -0
  255. /package/dist/components/{atoms/typography → Typography}/__stories__/Typography.stories.d.ts +0 -0
  256. /package/dist/components/{atoms/typography → Typography}/index.d.ts +0 -0
  257. /package/dist/{presetColors-Cl8UP3Nw.js → presetColors-ccf8cb4c.js} +0 -0
  258. /package/dist/{reactNode-sKPeiqPL.js → reactNode-f4391605.js} +0 -0
@@ -1,369 +0,0 @@
1
- import { _ as S, d as P, c as oe, a as b, B as Ze, e as p, k as et, O as tt } from "./index-BWys7dkb.js";
2
- import * as r from "react";
3
- import nt, { useState as se, useMemo as Ce, useCallback as Oe } from "react";
4
- import { I as rt } from "./AntdIcon-Bsnbyy6g.js";
5
- import { K as E, i as at } from "./index-VDH3iLaC.js";
6
- import { R as Ie } from "./index-BQO27mgE.js";
7
- import { r as it } from "./index-BPtFqhcp.js";
8
- var st = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, name: "close", theme: "outlined" }, ot = function(i, f) {
9
- return /* @__PURE__ */ r.createElement(rt, S({}, i, {
10
- ref: f,
11
- icon: st
12
- }));
13
- }, ft = /* @__PURE__ */ r.forwardRef(ot);
14
- process.env.NODE_ENV !== "production" && (ft.displayName = "CloseOutlined");
15
- const lt = new E("antSlideUpIn", {
16
- "0%": {
17
- transform: "scaleY(0.8)",
18
- transformOrigin: "0% 0%",
19
- opacity: 0
20
- },
21
- "100%": {
22
- transform: "scaleY(1)",
23
- transformOrigin: "0% 0%",
24
- opacity: 1
25
- }
26
- }), ct = new E("antSlideUpOut", {
27
- "0%": {
28
- transform: "scaleY(1)",
29
- transformOrigin: "0% 0%",
30
- opacity: 1
31
- },
32
- "100%": {
33
- transform: "scaleY(0.8)",
34
- transformOrigin: "0% 0%",
35
- opacity: 0
36
- }
37
- }), ut = new E("antSlideDownIn", {
38
- "0%": {
39
- transform: "scaleY(0.8)",
40
- transformOrigin: "100% 100%",
41
- opacity: 0
42
- },
43
- "100%": {
44
- transform: "scaleY(1)",
45
- transformOrigin: "100% 100%",
46
- opacity: 1
47
- }
48
- }), dt = new E("antSlideDownOut", {
49
- "0%": {
50
- transform: "scaleY(1)",
51
- transformOrigin: "100% 100%",
52
- opacity: 1
53
- },
54
- "100%": {
55
- transform: "scaleY(0.8)",
56
- transformOrigin: "100% 100%",
57
- opacity: 0
58
- }
59
- }), mt = new E("antSlideLeftIn", {
60
- "0%": {
61
- transform: "scaleX(0.8)",
62
- transformOrigin: "0% 0%",
63
- opacity: 0
64
- },
65
- "100%": {
66
- transform: "scaleX(1)",
67
- transformOrigin: "0% 0%",
68
- opacity: 1
69
- }
70
- }), vt = new E("antSlideLeftOut", {
71
- "0%": {
72
- transform: "scaleX(1)",
73
- transformOrigin: "0% 0%",
74
- opacity: 1
75
- },
76
- "100%": {
77
- transform: "scaleX(0.8)",
78
- transformOrigin: "0% 0%",
79
- opacity: 0
80
- }
81
- }), yt = new E("antSlideRightIn", {
82
- "0%": {
83
- transform: "scaleX(0.8)",
84
- transformOrigin: "100% 0%",
85
- opacity: 0
86
- },
87
- "100%": {
88
- transform: "scaleX(1)",
89
- transformOrigin: "100% 0%",
90
- opacity: 1
91
- }
92
- }), pt = new E("antSlideRightOut", {
93
- "0%": {
94
- transform: "scaleX(1)",
95
- transformOrigin: "100% 0%",
96
- opacity: 1
97
- },
98
- "100%": {
99
- transform: "scaleX(0.8)",
100
- transformOrigin: "100% 0%",
101
- opacity: 0
102
- }
103
- }), gt = {
104
- "slide-up": {
105
- inKeyframes: lt,
106
- outKeyframes: ct
107
- },
108
- "slide-down": {
109
- inKeyframes: ut,
110
- outKeyframes: dt
111
- },
112
- "slide-left": {
113
- inKeyframes: mt,
114
- outKeyframes: vt
115
- },
116
- "slide-right": {
117
- inKeyframes: yt,
118
- outKeyframes: pt
119
- }
120
- }, $t = (e, i) => {
121
- const {
122
- antCls: f
123
- } = e, s = `${f}-${i}`, {
124
- inKeyframes: l,
125
- outKeyframes: a
126
- } = gt[i];
127
- return [at(s, l, a, e.motionDurationMid), {
128
- [`
129
- ${s}-enter,
130
- ${s}-appear
131
- `]: {
132
- transform: "scale(0)",
133
- transformOrigin: "0% 0%",
134
- opacity: 0,
135
- animationTimingFunction: e.motionEaseOutQuint,
136
- "&-prepare": {
137
- transform: "scale(1)"
138
- }
139
- },
140
- [`${s}-leave`]: {
141
- animationTimingFunction: e.motionEaseInQuint
142
- }
143
- }];
144
- };
145
- var Rt = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"], x = void 0;
146
- function St(e, i) {
147
- var f = e.prefixCls, s = e.invalidate, l = e.item, a = e.renderItem, c = e.responsive, g = e.responsiveDisabled, m = e.registerSize, C = e.itemKey, O = e.className, Q = e.style, H = e.children, q = e.display, u = e.order, W = e.component, L = W === void 0 ? "div" : W, K = P(e, Rt), v = c && !q;
148
- function U(R) {
149
- m(C, R);
150
- }
151
- r.useEffect(function() {
152
- return function() {
153
- U(null);
154
- };
155
- }, []);
156
- var J = a && l !== x ? a(l, {
157
- index: u
158
- }) : H, I;
159
- s || (I = {
160
- opacity: v ? 0 : 1,
161
- height: v ? 0 : x,
162
- overflowY: v ? "hidden" : x,
163
- order: c ? u : x,
164
- pointerEvents: v ? "none" : x,
165
- position: v ? "absolute" : x
166
- });
167
- var X = {};
168
- v && (X["aria-hidden"] = !0);
169
- var h = /* @__PURE__ */ r.createElement(L, S({
170
- className: oe(!s && f, O),
171
- style: b(b({}, I), Q)
172
- }, X, K, {
173
- ref: i
174
- }), J);
175
- return c && (h = /* @__PURE__ */ r.createElement(Ie, {
176
- onResize: function(Z) {
177
- var A = Z.offsetWidth;
178
- U(A);
179
- },
180
- disabled: g
181
- }, h)), h;
182
- }
183
- var $ = /* @__PURE__ */ r.forwardRef(St);
184
- $.displayName = "Item";
185
- function Et(e) {
186
- if (typeof MessageChannel > "u")
187
- Ze(e);
188
- else {
189
- var i = new MessageChannel();
190
- i.port1.onmessage = function() {
191
- return e();
192
- }, i.port2.postMessage(void 0);
193
- }
194
- }
195
- function ht() {
196
- var e = r.useRef(null), i = function(s) {
197
- e.current || (e.current = [], Et(function() {
198
- it.unstable_batchedUpdates(function() {
199
- e.current.forEach(function(l) {
200
- l();
201
- }), e.current = null;
202
- });
203
- })), e.current.push(s);
204
- };
205
- return i;
206
- }
207
- function M(e, i) {
208
- var f = r.useState(i), s = p(f, 2), l = s[0], a = s[1], c = et(function(g) {
209
- e(function() {
210
- a(g);
211
- });
212
- });
213
- return [l, c];
214
- }
215
- var j = /* @__PURE__ */ nt.createContext(null), wt = ["component"], _t = ["className"], Ct = ["className"], Ot = function(i, f) {
216
- var s = r.useContext(j);
217
- if (!s) {
218
- var l = i.component, a = l === void 0 ? "div" : l, c = P(i, wt);
219
- return /* @__PURE__ */ r.createElement(a, S({}, c, {
220
- ref: f
221
- }));
222
- }
223
- var g = s.className, m = P(s, _t), C = i.className, O = P(i, Ct);
224
- return /* @__PURE__ */ r.createElement(j.Provider, {
225
- value: null
226
- }, /* @__PURE__ */ r.createElement($, S({
227
- ref: f,
228
- className: oe(g, C)
229
- }, m, O)));
230
- }, Ne = /* @__PURE__ */ r.forwardRef(Ot);
231
- Ne.displayName = "RawItem";
232
- var It = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"], xe = "responsive", be = "invalidate";
233
- function Nt(e) {
234
- return "+ ".concat(e.length, " ...");
235
- }
236
- function xt(e, i) {
237
- var f = e.prefixCls, s = f === void 0 ? "rc-overflow" : f, l = e.data, a = l === void 0 ? [] : l, c = e.renderItem, g = e.renderRawItem, m = e.itemKey, C = e.itemWidth, O = C === void 0 ? 10 : C, Q = e.ssr, H = e.style, q = e.className, u = e.maxCount, W = e.renderRest, L = e.renderRawRest, K = e.suffix, v = e.component, U = v === void 0 ? "div" : v, J = e.itemComponent, I = e.onVisibleChange, X = P(e, It), h = Q === "full", R = ht(), Z = M(R, null), A = p(Z, 2), Y = A[0], Ke = A[1], w = Y || 0, De = M(R, /* @__PURE__ */ new Map()), fe = p(De, 2), le = fe[0], ze = fe[1], Me = M(R, 0), ce = p(Me, 2), Pe = ce[0], $e = ce[1], We = M(R, 0), ue = p(We, 2), V = ue[0], Le = ue[1], Ue = M(R, 0), de = p(Ue, 2), F = de[0], Xe = de[1], Ae = se(null), me = p(Ae, 2), ee = me[0], ve = me[1], Ye = se(null), ye = p(Ye, 2), T = ye[0], Ve = ye[1], N = r.useMemo(function() {
238
- return T === null && h ? Number.MAX_SAFE_INTEGER : T || 0;
239
- }, [T, Y]), Fe = se(!1), pe = p(Fe, 2), Te = pe[0], ke = pe[1], te = "".concat(s, "-item"), ge = Math.max(Pe, V), ne = u === xe, y = a.length && ne, Re = u === be, Be = y || typeof u == "number" && a.length > u, _ = Ce(function() {
240
- var t = a;
241
- return y ? Y === null && h ? t = a : t = a.slice(0, Math.min(a.length, w / O)) : typeof u == "number" && (t = a.slice(0, u)), t;
242
- }, [a, O, Y, u, y]), re = Ce(function() {
243
- return y ? a.slice(N + 1) : a.slice(_.length);
244
- }, [a, _, y, N]), k = Oe(function(t, n) {
245
- var o;
246
- return typeof m == "function" ? m(t) : (o = m && (t == null ? void 0 : t[m])) !== null && o !== void 0 ? o : n;
247
- }, [m]), je = Oe(c || function(t) {
248
- return t;
249
- }, [c]);
250
- function B(t, n, o) {
251
- T === t && (n === void 0 || n === ee) || (Ve(t), o || (ke(t < a.length - 1), I == null || I(t)), n !== void 0 && ve(n));
252
- }
253
- function Ge(t, n) {
254
- Ke(n.clientWidth);
255
- }
256
- function Se(t, n) {
257
- ze(function(o) {
258
- var d = new Map(o);
259
- return n === null ? d.delete(t) : d.set(t, n), d;
260
- });
261
- }
262
- function Qe(t, n) {
263
- Le(n), $e(V);
264
- }
265
- function He(t, n) {
266
- Xe(n);
267
- }
268
- function ae(t) {
269
- return le.get(k(_[t], t));
270
- }
271
- tt(function() {
272
- if (w && typeof ge == "number" && _) {
273
- var t = F, n = _.length, o = n - 1;
274
- if (!n) {
275
- B(0, null);
276
- return;
277
- }
278
- for (var d = 0; d < n; d += 1) {
279
- var z = ae(d);
280
- if (h && (z = z || 0), z === void 0) {
281
- B(d - 1, void 0, !0);
282
- break;
283
- }
284
- if (t += z, // Only one means `totalWidth` is the final width
285
- o === 0 && t <= w || // Last two width will be the final width
286
- d === o - 1 && t + ae(o) <= w) {
287
- B(o, null);
288
- break;
289
- } else if (t + ge > w) {
290
- B(d - 1, t - z - F + V);
291
- break;
292
- }
293
- }
294
- K && ae(0) + F > w && ve(null);
295
- }
296
- }, [w, le, V, F, k, _]);
297
- var Ee = Te && !!re.length, he = {};
298
- ee !== null && y && (he = {
299
- position: "absolute",
300
- left: ee,
301
- top: 0
302
- });
303
- var D = {
304
- prefixCls: te,
305
- responsive: y,
306
- component: J,
307
- invalidate: Re
308
- }, qe = g ? function(t, n) {
309
- var o = k(t, n);
310
- return /* @__PURE__ */ r.createElement(j.Provider, {
311
- key: o,
312
- value: b(b({}, D), {}, {
313
- order: n,
314
- item: t,
315
- itemKey: o,
316
- registerSize: Se,
317
- display: n <= N
318
- })
319
- }, g(t, n));
320
- } : function(t, n) {
321
- var o = k(t, n);
322
- return /* @__PURE__ */ r.createElement($, S({}, D, {
323
- order: n,
324
- key: o,
325
- item: t,
326
- renderItem: je,
327
- itemKey: o,
328
- registerSize: Se,
329
- display: n <= N
330
- }));
331
- }, we = {
332
- order: Ee ? N : Number.MAX_SAFE_INTEGER,
333
- className: "".concat(te, "-rest"),
334
- registerSize: Qe,
335
- display: Ee
336
- }, ie = W || Nt, Je = L ? /* @__PURE__ */ r.createElement(j.Provider, {
337
- value: b(b({}, D), we)
338
- }, L(re)) : /* @__PURE__ */ r.createElement($, S({}, D, we), typeof ie == "function" ? ie(re) : ie), _e = /* @__PURE__ */ r.createElement(U, S({
339
- className: oe(!Re && s, q),
340
- style: H,
341
- ref: i
342
- }, X), _.map(qe), Be ? Je : null, K && /* @__PURE__ */ r.createElement($, S({}, D, {
343
- responsive: ne,
344
- responsiveDisabled: !y,
345
- order: N,
346
- className: "".concat(te, "-suffix"),
347
- registerSize: He,
348
- display: !0,
349
- style: he
350
- }), K));
351
- return ne ? /* @__PURE__ */ r.createElement(Ie, {
352
- onResize: Ge,
353
- disabled: !y
354
- }, _e) : _e;
355
- }
356
- var G = /* @__PURE__ */ r.forwardRef(xt);
357
- G.displayName = "Overflow";
358
- G.Item = Ne;
359
- G.RESPONSIVE = xe;
360
- G.INVALIDATE = be;
361
- export {
362
- G as F,
363
- ft as R,
364
- ut as a,
365
- ct as b,
366
- dt as c,
367
- $t as i,
368
- lt as s
369
- };
@@ -1,61 +0,0 @@
1
- function m(e, t, i) {
2
- const {
3
- focusElCls: n,
4
- focus: o,
5
- borderElCls: c
6
- } = i, s = c ? "> *" : "", r = ["hover", o ? "focus" : null, "active"].filter(Boolean).map((a) => `&:${a} ${s}`).join(",");
7
- return {
8
- [`&-item:not(${t}-last-item)`]: {
9
- marginInlineEnd: e.calc(e.lineWidth).mul(-1).equal()
10
- },
11
- "&-item": Object.assign(Object.assign({
12
- [r]: {
13
- zIndex: 2
14
- }
15
- }, n ? {
16
- [`&${n}`]: {
17
- zIndex: 2
18
- }
19
- } : {}), {
20
- [`&[disabled] ${s}`]: {
21
- zIndex: 0
22
- }
23
- })
24
- };
25
- }
26
- function d(e, t, i) {
27
- const {
28
- borderElCls: n
29
- } = i, o = n ? `> ${n}` : "";
30
- return {
31
- [`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]: {
32
- borderRadius: 0
33
- },
34
- [`&-item:not(${t}-last-item)${t}-first-item`]: {
35
- [`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]: {
36
- borderStartEndRadius: 0,
37
- borderEndEndRadius: 0
38
- }
39
- },
40
- [`&-item:not(${t}-first-item)${t}-last-item`]: {
41
- [`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]: {
42
- borderStartStartRadius: 0,
43
- borderEndStartRadius: 0
44
- }
45
- }
46
- };
47
- }
48
- function u(e) {
49
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
50
- focus: !0
51
- };
52
- const {
53
- componentCls: i
54
- } = e, n = `${i}-compact`;
55
- return {
56
- [n]: Object.assign(Object.assign({}, m(e, n, t)), d(i, n, t))
57
- };
58
- }
59
- export {
60
- u as g
61
- };
@@ -1,27 +0,0 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { Button as m } from "./styles.js";
3
- import { useBreakpoint as p } from "../../../providers/ThemeProvider.js";
4
- const f = ({
5
- children: o,
6
- onClick: r,
7
- type: i = "primary",
8
- state: t = "active",
9
- ...a
10
- }) => {
11
- const e = p();
12
- return /* @__PURE__ */ n(
13
- m,
14
- {
15
- onClick: r,
16
- type: i,
17
- state: t,
18
- breakpoint: e,
19
- disabled: t === "disabled",
20
- ...a,
21
- children: o
22
- }
23
- );
24
- };
25
- export {
26
- f as default
27
- };
@@ -1,4 +0,0 @@
1
- import { default as o } from "./Button.js";
2
- export {
3
- o as default
4
- };
@@ -1,13 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { StyledCheckbox as t } from "./styles.js";
3
- import { useBreakpoint as d } from "../../../providers/ThemeProvider.js";
4
- const s = ({ state: o = "active", ...e }) => (d(), /* @__PURE__ */ r(
5
- t,
6
- {
7
- ...e,
8
- disabled: o === "disabled" || e.disabled
9
- }
10
- ));
11
- export {
12
- s as default
13
- };
@@ -1,18 +0,0 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { d as a, i as o, a as t, s, g as r } from "../../../../setup-CMYVZCPF.js";
3
- import d from "../Checkbox.js";
4
- a("Checkbox", () => {
5
- o("renders checkbox component", () => {
6
- t(/* @__PURE__ */ c(d, {}));
7
- const e = s.getByRole("checkbox");
8
- r(e).toBeInTheDocument();
9
- }), o("renders with default checked state", () => {
10
- t(/* @__PURE__ */ c(d, { defaultChecked: !0 }));
11
- const e = s.getByRole("checkbox");
12
- r(e).toBeChecked();
13
- }), o("renders in disabled state", () => {
14
- t(/* @__PURE__ */ c(d, { disabled: !0 }));
15
- const e = s.getByRole("checkbox");
16
- r(e).toBeDisabled();
17
- });
18
- });
@@ -1,4 +0,0 @@
1
- import { default as o } from "./Checkbox.js";
2
- export {
3
- o as default
4
- };
@@ -1 +0,0 @@
1
- export * from './button';
@@ -1,3 +0,0 @@
1
- import "react/jsx-runtime";
2
- import "./button/styles.js";
3
- import "../../providers/ThemeProvider.js";
@@ -1,12 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { Input as o } from "./styles.js";
3
- import { useBreakpoint as p } from "../../../providers/ThemeProvider.js";
4
- import { TYPE as m, STATE as e } from "../../../constants/index.js";
5
- const I = ({
6
- type: a = m.primary,
7
- state: i = e.active,
8
- ...t
9
- }) => (p(), /* @__PURE__ */ r(o, { ...t }));
10
- export {
11
- I as default
12
- };
@@ -1,28 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { d as r, i as o, a as s, s as n, g as i } from "../../../../setup-CMYVZCPF.js";
3
- import p from "../Input.js";
4
- import { TYPE as u, STATE as c } from "../../../../constants/index.js";
5
- r("Input Component", () => {
6
- o("customRenders input with default props", () => {
7
- s(/* @__PURE__ */ e(p, {}));
8
- const t = n.getByRole("textbox");
9
- i(t).toBeInTheDocument();
10
- }), o("customRenders input with primary type", () => {
11
- s(/* @__PURE__ */ e(p, { type: u.primary }));
12
- const t = n.getByRole("textbox");
13
- i(t).toHaveAttribute("type", "text");
14
- }), o("customRenders input with active state", () => {
15
- s(/* @__PURE__ */ e(p, { state: c.active }));
16
- const t = n.getByRole("textbox");
17
- i(t).toBeEnabled();
18
- }), o("passes through additional props", () => {
19
- const t = "Enter text";
20
- s(/* @__PURE__ */ e(p, { placeholder: t }));
21
- const a = n.getByPlaceholderText(t);
22
- i(a).toBeInTheDocument();
23
- }), o("handles disabled state", () => {
24
- s(/* @__PURE__ */ e(p, { disabled: !0 }));
25
- const t = n.getByRole("textbox");
26
- i(t).toBeDisabled();
27
- });
28
- });
@@ -1,4 +0,0 @@
1
- import { default as o } from "./Input.js";
2
- export {
3
- o as default
4
- };