@gobolt/genesis 0.0.7 → 0.0.9

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 (254) hide show
  1. package/README.md +18 -2
  2. package/dist/{AntdIcon-Bsnbyy6g.js → AntdIcon-BoLh1dP8.js} +37 -35
  3. package/dist/CheckOutlined-CeTKr6II.js +13 -0
  4. package/dist/{CloseCircleFilled-ZIY-u-27.js → CloseCircleFilled-DXCxlIQL.js} +2 -2
  5. package/dist/CloseOutlined-ClXDNn82.js +13 -0
  6. package/dist/{Compact-CJBo3f0u.js → Compact-CGY560JF.js} +45 -53
  7. package/dist/{ContextIsolator-CGkdKtc3.js → ContextIsolator-D5x2Ih51.js} +2 -2
  8. package/dist/{ExclamationCircleFilled-BICVVQIg.js → ExclamationCircleFilled-C0Kj5KQV.js} +2 -2
  9. package/dist/{CheckOutlined-DAynWe12.js → KeyCode-DM2sFh3-.js} +10 -20
  10. package/dist/LoadingOutlined-8EnJdZ7I.js +13 -0
  11. package/dist/Overflow-PBZD-PFm.js +360 -0
  12. package/dist/PurePanel-BqPLRtc2.js +203 -0
  13. package/dist/SearchOutlined-BP3Z2K6j.js +13 -0
  14. package/dist/{TextArea-3MOYYuAQ.js → TextArea-DKwCct3i.js} +26 -16
  15. package/dist/Typography-aGoDUl4R.js +710 -0
  16. package/dist/bundle.css +1204 -0
  17. package/dist/{button-BNV2qdrP.js → button-CDQgO1OK.js} +200 -197
  18. package/dist/collapse-Dtpt-6W_.js +20 -0
  19. package/dist/components/Badge/Badge.d.ts +6 -0
  20. package/dist/components/Badge/Badge.js +103 -0
  21. package/dist/components/Badge/__stories__/Badge.stories.d.ts +13 -0
  22. package/dist/components/Badge/__tests__/Badge.test.js +18 -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 +4 -0
  43. package/dist/components/Badge/styles.d.ts +3 -0
  44. package/dist/components/Badge/styles.js +34 -0
  45. package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
  46. package/dist/components/Breadcrumb/Breadcrumb.js +11 -0
  47. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +22 -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 +23 -0
  51. package/dist/components/Breadcrumb/index.d.ts +3 -0
  52. package/dist/components/Breadcrumb/index.js +4 -0
  53. package/dist/components/Breadcrumb/styles.d.ts +27 -0
  54. package/dist/components/Breadcrumb/styles.js +2436 -0
  55. package/dist/components/Button/Button.d.ts +14 -0
  56. package/dist/components/Button/Button.js +22 -0
  57. package/dist/components/Button/__tests__/Button.test.js +16 -0
  58. package/dist/components/Button/styles.d.ts +16 -0
  59. package/dist/components/{atoms/button → Button}/styles.js +12 -12
  60. package/dist/components/{atoms/checkbox → Checkbox}/Checkbox.d.ts +2 -1
  61. package/dist/components/Checkbox/Checkbox.js +40 -0
  62. package/dist/components/{atoms/checkbox → Checkbox}/__tests__/Checkbox.test.js +1 -1
  63. package/dist/components/{atoms/checkbox → Checkbox}/styles.d.ts +5 -0
  64. package/dist/components/{atoms/checkbox → Checkbox}/styles.js +97 -96
  65. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +8 -0
  66. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +40 -0
  67. package/dist/components/ErrorBoundaryFallback/index.d.ts +2 -0
  68. package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.js +22 -21
  69. package/dist/components/Form/Form.d.ts +26 -0
  70. package/dist/components/Form/Form.js +8 -0
  71. package/dist/components/Form/__stories__/FormStory.js +93 -0
  72. package/dist/components/Form/__tests__/form.test.d.ts +1 -0
  73. package/dist/components/Form/__tests__/form.test.js +18 -0
  74. package/dist/components/Form/index.js +4 -0
  75. package/dist/components/Form/styles.d.ts +3 -0
  76. package/dist/components/Form/styles.js +5 -0
  77. package/dist/components/{atoms/input → Input}/Input.d.ts +1 -3
  78. package/dist/components/Input/Input.js +19 -0
  79. package/dist/components/{atoms/input → Input}/__stories__/Input.stories.d.ts +5 -1
  80. package/dist/components/Input/__tests__/Input.test.d.ts +1 -0
  81. package/dist/components/Input/__tests__/Input.test.js +24 -0
  82. package/dist/components/{atoms/input → Input}/styles.d.ts +2 -0
  83. package/dist/components/Input/styles.js +529 -0
  84. package/dist/components/Message/Message.d.ts +13 -0
  85. package/dist/components/Message/Message.js +78 -0
  86. package/dist/components/Message/__stories__/Message.stories.d.ts +15 -0
  87. package/dist/components/Message/__tests__/Message.test.d.ts +1 -0
  88. package/dist/components/Message/__tests__/Message.test.js +42 -0
  89. package/dist/components/Message/index.d.ts +2 -0
  90. package/dist/components/Message/index.js +4 -0
  91. package/dist/components/Message/styles.d.ts +8 -0
  92. package/dist/components/Message/styles.js +41 -0
  93. package/dist/components/Notification/Notification.d.ts +17 -0
  94. package/dist/components/Notification/Notification.js +1370 -0
  95. package/dist/components/Notification/NotificationRightChevron.d.ts +2 -0
  96. package/dist/components/Notification/NotificationRightChevron.js +23 -0
  97. package/dist/components/Notification/__stories__/Notification.stories.d.ts +10 -0
  98. package/dist/components/Notification/__tests__/Notification.test.d.ts +1 -0
  99. package/dist/components/Notification/__tests__/Notification.test.js +15 -0
  100. package/dist/components/Notification/index.d.ts +2 -0
  101. package/dist/components/Notification/index.js +4 -0
  102. package/dist/components/Notification/styles.d.ts +16 -0
  103. package/dist/components/Notification/styles.js +65 -0
  104. package/dist/components/Radio/Radio.d.ts +14 -0
  105. package/dist/components/Radio/Radio.js +28 -0
  106. package/dist/components/Radio/RadioGroup.d.ts +12 -0
  107. package/dist/components/Radio/RadioGroup.js +33 -0
  108. package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +9 -0
  109. package/dist/components/Radio/__tests__/RadioGroup.test.d.ts +1 -0
  110. package/dist/components/Radio/__tests__/RadioGroup.test.js +30 -0
  111. package/dist/components/Radio/index.d.ts +2 -0
  112. package/dist/components/Radio/index.js +4 -0
  113. package/dist/components/Radio/states/RadioChecked.d.ts +2 -0
  114. package/dist/components/Radio/states/RadioChecked.js +18 -0
  115. package/dist/components/Radio/states/RadioCheckedDisabled.d.ts +2 -0
  116. package/dist/components/Radio/states/RadioCheckedDisabled.js +18 -0
  117. package/dist/components/Radio/states/RadioCheckedFocussed.d.ts +2 -0
  118. package/dist/components/Radio/states/RadioCheckedFocussed.js +30 -0
  119. package/dist/components/Radio/states/RadioCheckedHover.d.ts +2 -0
  120. package/dist/components/Radio/states/RadioCheckedHover.js +18 -0
  121. package/dist/components/Radio/states/RadioUnchecked.d.ts +2 -0
  122. package/dist/components/Radio/states/RadioUnchecked.js +15 -0
  123. package/dist/components/Radio/states/RadioUncheckedDisabled.d.ts +2 -0
  124. package/dist/components/Radio/states/RadioUncheckedDisabled.js +15 -0
  125. package/dist/components/Radio/states/RadioUncheckedFocussed.d.ts +2 -0
  126. package/dist/components/Radio/states/RadioUncheckedFocussed.js +29 -0
  127. package/dist/components/Radio/states/RadioUncheckedHover.d.ts +2 -0
  128. package/dist/components/Radio/states/RadioUncheckedHover.js +18 -0
  129. package/dist/components/Select/DropdownChevron.d.ts +2 -0
  130. package/dist/components/Select/DropdownChevron.js +23 -0
  131. package/dist/components/Select/Select.d.ts +16 -0
  132. package/dist/components/Select/Select.js +36 -0
  133. package/dist/components/{atoms/select → Select}/__stories__/Select.stories.d.ts +3 -1
  134. package/dist/components/Select/__tests__/Select.test.d.ts +1 -0
  135. package/dist/components/{atoms/select → Select}/__tests__/Select.test.js +1165 -1140
  136. package/dist/components/Select/styles.d.ts +32 -0
  137. package/dist/components/{atoms/select → Select}/styles.js +1517 -1651
  138. package/dist/components/Toast/Toast.d.ts +14 -0
  139. package/dist/components/Toast/Toast.js +19 -0
  140. package/dist/components/Toast/__stories__/Toast.stories.d.ts +16 -0
  141. package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -0
  142. package/dist/components/Toast/__tests__/Toast.test.js +18 -0
  143. package/dist/components/Toast/index.d.ts +2 -0
  144. package/dist/components/Toast/index.js +4 -0
  145. package/dist/components/Toast/styles.d.ts +10 -0
  146. package/dist/components/Toast/styles.js +54 -0
  147. package/dist/components/Typography/Typography.d.ts +15 -0
  148. package/dist/components/Typography/Typography.js +8 -0
  149. package/dist/components/{atoms/typography → Typography}/__stories__/Typography.stories.d.ts +1 -0
  150. package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
  151. package/dist/components/Typography/__tests__/Typography.test.js +23 -0
  152. package/dist/components/Typography/index.js +4 -0
  153. package/dist/components/Typography/styles.d.ts +21 -0
  154. package/dist/components/Typography/styles.js +48 -0
  155. package/dist/components/index.d.ts +26 -14
  156. package/dist/components/index.js +23 -13
  157. package/dist/constants/index.d.ts +104 -0
  158. package/dist/constants/index.js +41 -7
  159. package/dist/{context-CZsFJmh6.js → context-BMW3aJEf.js} +162 -161
  160. package/dist/genesis/GenesisThemeBreakdown.js +54 -24
  161. package/dist/genesis/GenesisThemeDemo.d.ts +0 -2
  162. package/dist/genesis/GenesisThemeDemo.js +3 -4
  163. package/dist/genesis/styles.js +1095 -2186
  164. package/dist/{index-C7kFNqp2.js → index-1CBpubM3.js} +36 -36
  165. package/dist/{index-3MWkSVA1.js → index-BZAhCB_K.js} +6 -5
  166. package/dist/{index-D1v_7IIx.js → index-C0SmxWLS.js} +95 -94
  167. package/dist/index-C8haFnXI.js +1112 -0
  168. package/dist/{index-VDH3iLaC.js → index-CfDY25LP.js} +298 -309
  169. package/dist/{index-SAAXFt-P.js → index-DPW8XdWj.js} +255 -249
  170. package/dist/{index-BQO27mgE.js → index-bKlRxQp4.js} +52 -51
  171. package/dist/index-oK7z6jnz.js +22795 -0
  172. package/dist/index.d.ts +2 -0
  173. package/dist/index.js +31 -18
  174. package/dist/{isVisible-CNQjrJPN.js → isVisible-A-IfeFoT.js} +34 -33
  175. package/dist/{magic-string.es-BkUFmFT4.js → magic-string.es-D2FWSwU3.js} +1 -1
  176. package/dist/{SearchOutlined-DuzJkIiQ.js → pickAttrs-B0YTfcV1.js} +16 -26
  177. package/dist/providers/GenesisProvider.js +9 -5
  178. package/dist/providers/ThemeProvider.d.ts +2 -2
  179. package/dist/providers/ThemeProvider.js +4 -1
  180. package/dist/providers/ToastProvider.d.ts +13 -0
  181. package/dist/providers/ToastProvider.js +20 -0
  182. package/dist/providers/__stories__/GenesisProvider.stories.d.ts +6 -0
  183. package/dist/providers/index.d.ts +1 -1
  184. package/dist/providers/index.js +4 -4
  185. package/dist/providers/useGenesis.d.ts +7 -0
  186. package/dist/providers/useGenesis.js +6 -0
  187. package/dist/{setup-CMYVZCPF.js → setup-BvfREoHl.js} +6948 -6940
  188. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +22 -16
  189. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +21 -15
  190. package/dist/styles/design-tokens/{typography → typography-tokens}/TypographyTokens.stories.d.ts +1 -0
  191. package/dist/styles/design-tokens/variables.d.ts +17 -17
  192. package/dist/styles/design-tokens/variables.js +48 -48
  193. package/dist/styles/global-styles.d.ts +1 -0
  194. package/dist/styles/global-styles.js +13 -29
  195. package/dist/styles/theme/genesis-theme.d.ts +3 -0
  196. package/dist/styles/theme/genesis-theme.js +461 -277
  197. package/dist/styles/theme/genesis-theme.types.d.ts +46 -0
  198. package/dist/{Form-Cylpi4M4.js → styles-CT_fyXBd.js} +417 -424
  199. package/dist/test/setup.js +2 -1
  200. package/dist/useLocale-DT-z_vQ6.js +16 -0
  201. package/dist/{useVariants-CEpw6Ww6.js → useVariants-DvhXfgJY.js} +9 -8
  202. package/dist/warning-C63HNL9U.js +789 -0
  203. package/package.json +10 -4
  204. package/dist/Overflow-CP1M4Z0s.js +0 -369
  205. package/dist/components/atoms/button/Button.d.ts +0 -12
  206. package/dist/components/atoms/button/Button.js +0 -27
  207. package/dist/components/atoms/button/styles.d.ts +0 -12
  208. package/dist/components/atoms/checkbox/Checkbox.js +0 -13
  209. package/dist/components/atoms/index.d.ts +0 -1
  210. package/dist/components/atoms/index.js +0 -3
  211. package/dist/components/atoms/input/Input.js +0 -12
  212. package/dist/components/atoms/input/__tests__/Input.test.js +0 -28
  213. package/dist/components/atoms/input/styles.js +0 -415
  214. package/dist/components/atoms/select/Select.d.ts +0 -11
  215. package/dist/components/atoms/select/Select.js +0 -24
  216. package/dist/components/atoms/select/styles.d.ts +0 -15
  217. package/dist/components/atoms/typography/Typography.d.ts +0 -11
  218. package/dist/components/atoms/typography/Typography.js +0 -44
  219. package/dist/components/atoms/typography/__tests__/Typography.test.js +0 -16
  220. package/dist/components/atoms/typography/index.js +0 -4
  221. package/dist/components/atoms/typography/styles.d.ts +0 -11
  222. package/dist/components/atoms/typography/styles.js +0 -28
  223. package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.d.ts +0 -10
  224. package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +0 -35
  225. package/dist/components/molecules/error-boundary-fallback/index.d.ts +0 -1
  226. package/dist/components/molecules/form/Form.d.ts +0 -15
  227. package/dist/components/molecules/form/Form.js +0 -7
  228. package/dist/components/molecules/form/__stories__/FormStory.js +0 -90
  229. package/dist/components/molecules/form/index.js +0 -4
  230. package/dist/index-BPtFqhcp.js +0 -19110
  231. package/dist/index-BWys7dkb.js +0 -4462
  232. package/dist/styles/theme/global-styles.d.ts +0 -1
  233. package/dist/styles/theme/global-styles.js +0 -35
  234. /package/dist/components/{atoms/checkbox/__tests__/Checkbox.test.d.ts → Badge/__tests__/Badge.test.d.ts} +0 -0
  235. /package/dist/components/{atoms/input/__tests__/Input.test.d.ts → Breadcrumb/__tests__/Breadcrumb.test.d.ts} +0 -0
  236. /package/dist/components/{atoms/button → Button}/__stories__/Button.stories.d.ts +0 -0
  237. /package/dist/components/{atoms/select/__tests__/Select.test.d.ts → Button/__tests__/Button.test.d.ts} +0 -0
  238. /package/dist/components/{atoms/button → Button}/index.d.ts +0 -0
  239. /package/dist/components/{atoms/button → Button}/index.js +0 -0
  240. /package/dist/components/{atoms/checkbox → Checkbox}/__stories__/Checkbox.stories.d.ts +0 -0
  241. /package/dist/components/{atoms/typography/__tests__/Typography.test.d.ts → Checkbox/__tests__/Checkbox.test.d.ts} +0 -0
  242. /package/dist/components/{atoms/checkbox → Checkbox}/index.d.ts +0 -0
  243. /package/dist/components/{atoms/checkbox → Checkbox}/index.js +0 -0
  244. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -0
  245. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/index.js +0 -0
  246. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.d.ts +0 -0
  247. /package/dist/components/{molecules/form → Form}/__stories__/Form.stories.d.ts +0 -0
  248. /package/dist/components/{molecules/form → Form}/__stories__/FormStory.d.ts +0 -0
  249. /package/dist/components/{molecules/form → Form}/index.d.ts +0 -0
  250. /package/dist/components/{atoms/input → Input}/index.d.ts +0 -0
  251. /package/dist/components/{atoms/input → Input}/index.js +0 -0
  252. /package/dist/components/{atoms/select → Select}/index.d.ts +0 -0
  253. /package/dist/components/{atoms/select → Select}/index.js +0 -0
  254. /package/dist/components/{atoms/typography → Typography}/index.d.ts +0 -0
package/README.md CHANGED
@@ -22,14 +22,20 @@ pnpm install
22
22
  pnpm start
23
23
  ```
24
24
 
25
- To scaffold a new component, run `pnpm generate` and follow the prompts
25
+ To scaffold a new component, run `pnpm generate --path` and add the component name in PascalCase
26
+
27
+ example:
28
+ ```
29
+ pnpm generate --path RadioGroup
30
+ ```
31
+
26
32
 
27
33
  ## 🔨 Usage
28
34
 
29
35
  Install the GENESIS library
30
36
 
31
37
  ```
32
- pnpm install @second-closet/genesis
38
+ pnpm install @gobolt/genesis
33
39
  ```
34
40
 
35
41
  The `GenesisProvider` must included within the application as it supplies the Genesis Theme.
@@ -83,4 +89,14 @@ requires: [just](https://github.com/casey/just)
83
89
 
84
90
  ```
85
91
  brew install just
92
+ ```
93
+
94
+ ## Test the build
95
+
96
+ If you want to test the build before deploying...
97
+
98
+ ```
99
+ rm -rf storybook-static
100
+ pnpm build-storybook
101
+ python3 -m http.server 6006 -d storybook-static
86
102
  ```
@@ -1,5 +1,5 @@
1
- import { w as L, b, a as c, g as U, I, u as W, d as N, e as R, f as q, c as F, h, _ as G } from "./index-BWys7dkb.js";
2
- import * as f from "react";
1
+ import { w as L, d as b, _ as l, g as U, I, u as W, e as N, f as R, c as q, h, a as F, i as G } from "./warning-C63HNL9U.js";
2
+ import * as m from "react";
3
3
  import x, { useContext as H, useEffect as J } from "react";
4
4
  function S(n) {
5
5
  var o;
@@ -37,11 +37,11 @@ function k() {
37
37
  }, {});
38
38
  }
39
39
  function T(n, o, e) {
40
- return e ? /* @__PURE__ */ x.createElement(n.tag, c(c({
40
+ return e ? /* @__PURE__ */ x.createElement(n.tag, l(l({
41
41
  key: o
42
42
  }, k(n.attrs)), e), (n.children || []).map(function(r, t) {
43
43
  return T(r, "".concat(o, "-").concat(n.tag, "-").concat(t));
44
- })) : /* @__PURE__ */ x.createElement(n.tag, c({
44
+ })) : /* @__PURE__ */ x.createElement(n.tag, l({
45
45
  key: o
46
46
  }, k(n.attrs)), (n.children || []).map(function(r, t) {
47
47
  return T(r, "".concat(o, "-").concat(n.tag, "-").concat(t));
@@ -109,48 +109,50 @@ var X = `
109
109
  }
110
110
  }
111
111
  `, Y = function(o) {
112
- var e = H(I), r = e.csp, t = e.prefixCls, i = X;
113
- t && (i = i.replace(/anticon/g, t)), J(function() {
114
- var l = o.current, s = M(l);
115
- W(i, "@ant-design-icons", {
112
+ var e = H(I), r = e.csp, t = e.prefixCls, c = e.layer, a = X;
113
+ t && (a = a.replace(/anticon/g, t)), c && (a = "@layer ".concat(c, ` {
114
+ `).concat(a, `
115
+ }`)), J(function() {
116
+ var s = o.current, f = M(s);
117
+ W(a, "@ant-design-icons", {
116
118
  prepend: !0,
117
119
  csp: r,
118
- attachTo: s
120
+ attachTo: f
119
121
  });
120
122
  }, []);
121
- }, Z = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], m = {
123
+ }, Z = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], C = {
122
124
  primaryColor: "#333",
123
125
  secondaryColor: "#E6E6E6",
124
126
  calculated: !1
125
127
  };
126
128
  function nn(n) {
127
129
  var o = n.primaryColor, e = n.secondaryColor;
128
- m.primaryColor = o, m.secondaryColor = e || z(o), m.calculated = !!e;
130
+ C.primaryColor = o, C.secondaryColor = e || z(o), C.calculated = !!e;
129
131
  }
130
132
  function on() {
131
- return c({}, m);
133
+ return l({}, C);
132
134
  }
133
135
  var d = function(o) {
134
- var e = o.icon, r = o.className, t = o.onClick, i = o.style, l = o.primaryColor, s = o.secondaryColor, y = N(o, Z), C = f.useRef(), u = m;
135
- if (l && (u = {
136
- primaryColor: l,
137
- secondaryColor: s || z(l)
138
- }), Y(C), V(_(e), "icon should be icon definiton, but got ".concat(e)), !_(e))
136
+ var e = o.icon, r = o.className, t = o.onClick, c = o.style, a = o.primaryColor, s = o.secondaryColor, f = N(o, Z), y = m.useRef(), u = C;
137
+ if (a && (u = {
138
+ primaryColor: a,
139
+ secondaryColor: s || z(a)
140
+ }), Y(y), V(_(e), "icon should be icon definiton, but got ".concat(e)), !_(e))
139
141
  return null;
140
- var a = e;
141
- return a && typeof a.icon == "function" && (a = c(c({}, a), {}, {
142
- icon: a.icon(u.primaryColor, u.secondaryColor)
143
- })), T(a.icon, "svg-".concat(a.name), c(c({
142
+ var i = e;
143
+ return i && typeof i.icon == "function" && (i = l(l({}, i), {}, {
144
+ icon: i.icon(u.primaryColor, u.secondaryColor)
145
+ })), T(i.icon, "svg-".concat(i.name), l(l({
144
146
  className: r,
145
147
  onClick: t,
146
- style: i,
147
- "data-icon": a.name,
148
+ style: c,
149
+ "data-icon": i.name,
148
150
  width: "1em",
149
151
  height: "1em",
150
152
  fill: "currentColor",
151
153
  "aria-hidden": "true"
152
- }, y), {}, {
153
- ref: C
154
+ }, f), {}, {
155
+ ref: y
154
156
  }));
155
157
  };
156
158
  d.displayName = "IconReact";
@@ -168,23 +170,23 @@ function en() {
168
170
  return n.calculated ? [n.primaryColor, n.secondaryColor] : n.primaryColor;
169
171
  }
170
172
  var rn = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
171
- $(q.primary);
172
- var v = /* @__PURE__ */ f.forwardRef(function(n, o) {
173
- var e = n.className, r = n.icon, t = n.spin, i = n.rotate, l = n.tabIndex, s = n.onClick, y = n.twoToneColor, C = N(n, rn), u = f.useContext(I), a = u.prefixCls, g = a === void 0 ? "anticon" : a, j = u.rootClassName, A = F(j, g, h(h({}, "".concat(g, "-").concat(r.name), !!r.name), "".concat(g, "-spin"), !!t || r.name === "loading"), e), p = l;
173
+ $(G.primary);
174
+ var v = /* @__PURE__ */ m.forwardRef(function(n, o) {
175
+ var e = n.className, r = n.icon, t = n.spin, c = n.rotate, a = n.tabIndex, s = n.onClick, f = n.twoToneColor, y = N(n, rn), u = m.useContext(I), i = u.prefixCls, g = i === void 0 ? "anticon" : i, j = u.rootClassName, A = q(j, g, h(h({}, "".concat(g, "-").concat(r.name), !!r.name), "".concat(g, "-spin"), !!t || r.name === "loading"), e), p = a;
174
176
  p === void 0 && s && (p = -1);
175
- var P = i ? {
176
- msTransform: "rotate(".concat(i, "deg)"),
177
- transform: "rotate(".concat(i, "deg)")
178
- } : void 0, B = E(y), w = R(B, 2), O = w[0], D = w[1];
179
- return /* @__PURE__ */ f.createElement("span", G({
177
+ var P = c ? {
178
+ msTransform: "rotate(".concat(c, "deg)"),
179
+ transform: "rotate(".concat(c, "deg)")
180
+ } : void 0, B = E(f), w = R(B, 2), O = w[0], D = w[1];
181
+ return /* @__PURE__ */ m.createElement("span", F({
180
182
  role: "img",
181
183
  "aria-label": r.name
182
- }, C, {
184
+ }, y, {
183
185
  ref: o,
184
186
  tabIndex: p,
185
187
  onClick: s,
186
188
  className: A
187
- }), /* @__PURE__ */ f.createElement(d, {
189
+ }), /* @__PURE__ */ m.createElement(d, {
188
190
  icon: r,
189
191
  primaryColor: O,
190
192
  secondaryColor: D,
@@ -0,0 +1,13 @@
1
+ import { a as c } from "./warning-C63HNL9U.js";
2
+ import * as e from "react";
3
+ import { I as r } from "./AntdIcon-BoLh1dP8.js";
4
+ var o = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, name: "check", theme: "outlined" }, n = function(t, a) {
5
+ return /* @__PURE__ */ e.createElement(r, c({}, t, {
6
+ ref: a,
7
+ icon: o
8
+ }));
9
+ }, i = /* @__PURE__ */ e.forwardRef(n);
10
+ process.env.NODE_ENV !== "production" && (i.displayName = "CheckOutlined");
11
+ export {
12
+ i as R
13
+ };
@@ -1,6 +1,6 @@
1
- import { _ as c } from "./index-BWys7dkb.js";
1
+ import { a as c } from "./warning-C63HNL9U.js";
2
2
  import * as e from "react";
3
- import { I as r } from "./AntdIcon-Bsnbyy6g.js";
3
+ import { I as r } from "./AntdIcon-BoLh1dP8.js";
4
4
  var o = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" } }] }, name: "close-circle", theme: "filled" }, i = function(l, a) {
5
5
  return /* @__PURE__ */ e.createElement(r, c({}, l, {
6
6
  ref: a,
@@ -0,0 +1,13 @@
1
+ import { a as l } from "./warning-C63HNL9U.js";
2
+ import * as e from "react";
3
+ import { I as o } from "./AntdIcon-BoLh1dP8.js";
4
+ var t = { 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" }, r = function(a, c) {
5
+ return /* @__PURE__ */ e.createElement(o, l({}, a, {
6
+ ref: c,
7
+ icon: t
8
+ }));
9
+ }, n = /* @__PURE__ */ e.forwardRef(r);
10
+ process.env.NODE_ENV !== "production" && (n.displayName = "CloseOutlined");
11
+ export {
12
+ n as R
13
+ };
@@ -1,19 +1,12 @@
1
- import { _ as O, S as w, m as N, n as L, c as C, C as P } from "./index-BWys7dkb.js";
2
1
  import * as r from "react";
3
2
  import g from "react";
4
- import { I as D } from "./AntdIcon-Bsnbyy6g.js";
5
- import { t as E } from "./isVisible-CNQjrJPN.js";
6
- var _ = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, name: "loading", theme: "outlined" }, M = function(t, n) {
7
- return /* @__PURE__ */ r.createElement(D, O({}, t, {
8
- ref: n,
9
- icon: _
10
- }));
11
- }, j = /* @__PURE__ */ r.forwardRef(M);
12
- process.env.NODE_ENV !== "production" && (j.displayName = "LoadingOutlined");
13
- const R = (e) => {
14
- const t = g.useContext(w);
3
+ import { c as S } from "./warning-C63HNL9U.js";
4
+ import { t as w } from "./isVisible-A-IfeFoT.js";
5
+ import { S as O, g as N, m as P, C as D } from "./index-oK7z6jnz.js";
6
+ const L = (e) => {
7
+ const t = g.useContext(O);
15
8
  return g.useMemo(() => e ? typeof e == "string" ? e ?? t : e instanceof Function ? e(t) : t : t, [e, t]);
16
- }, F = (e) => {
9
+ }, M = (e) => {
17
10
  const {
18
11
  componentCls: t
19
12
  } = e;
@@ -28,7 +21,7 @@ const R = (e) => {
28
21
  }
29
22
  }
30
23
  };
31
- }, V = (e) => {
24
+ }, _ = (e) => {
32
25
  const {
33
26
  componentCls: t,
34
27
  antCls: n
@@ -66,7 +59,7 @@ const R = (e) => {
66
59
  }
67
60
  }
68
61
  };
69
- }, k = (e) => {
62
+ }, j = (e) => {
70
63
  const {
71
64
  componentCls: t
72
65
  } = e;
@@ -92,27 +85,27 @@ const R = (e) => {
92
85
  }
93
86
  }
94
87
  };
95
- }, A = N("Space", (e) => {
96
- const t = L(e, {
88
+ }, E = N("Space", (e) => {
89
+ const t = P(e, {
97
90
  spaceGapSmallSize: e.paddingXS,
98
91
  spaceGapMiddleSize: e.padding,
99
92
  spaceGapLargeSize: e.paddingLG
100
93
  });
101
- return [V(t), k(t), F(t)];
94
+ return [_(t), j(t), M(t)];
102
95
  }, () => ({}), {
103
96
  // Space component don't apply extra font style
104
97
  // https://github.com/ant-design/ant-design/issues/40315
105
98
  resetStyle: !1
106
99
  });
107
- var S = function(e, t) {
100
+ var C = function(e, t) {
108
101
  var n = {};
109
102
  for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
110
103
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var c = 0, a = Object.getOwnPropertySymbols(e); c < a.length; c++)
111
104
  t.indexOf(a[c]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[c]) && (n[a[c]] = e[a[c]]);
112
105
  return n;
113
106
  };
114
- const m = /* @__PURE__ */ r.createContext(null), J = (e, t) => {
115
- const n = r.useContext(m), a = r.useMemo(() => {
107
+ const p = /* @__PURE__ */ r.createContext(null), T = (e, t) => {
108
+ const n = r.useContext(p), a = r.useMemo(() => {
116
109
  if (!n)
117
110
  return "";
118
111
  const {
@@ -120,7 +113,7 @@ const m = /* @__PURE__ */ r.createContext(null), J = (e, t) => {
120
113
  isFirstItem: d,
121
114
  isLastItem: u
122
115
  } = n, l = c === "vertical" ? "-vertical-" : "-";
123
- return C(`${e}-compact${l}item`, {
116
+ return S(`${e}-compact${l}item`, {
124
117
  [`${e}-compact${l}first-item`]: d,
125
118
  [`${e}-compact${l}last-item`]: u,
126
119
  [`${e}-compact${l}item-rtl`]: t === "rtl"
@@ -131,25 +124,25 @@ const m = /* @__PURE__ */ r.createContext(null), J = (e, t) => {
131
124
  compactDirection: n == null ? void 0 : n.compactDirection,
132
125
  compactItemClassnames: a
133
126
  };
134
- }, K = (e) => {
135
- let {
127
+ }, V = (e) => {
128
+ const {
136
129
  children: t
137
130
  } = e;
138
- return /* @__PURE__ */ r.createElement(m.Provider, {
131
+ return /* @__PURE__ */ r.createElement(p.Provider, {
139
132
  value: null
140
133
  }, t);
141
- }, B = (e) => {
142
- var {
134
+ }, F = (e) => {
135
+ const {
143
136
  children: t
144
- } = e, n = S(e, ["children"]);
145
- return /* @__PURE__ */ r.createElement(m.Provider, {
146
- value: n
137
+ } = e, n = C(e, ["children"]);
138
+ return /* @__PURE__ */ r.createElement(p.Provider, {
139
+ value: r.useMemo(() => n, [n])
147
140
  }, t);
148
- }, Q = (e) => {
141
+ }, X = (e) => {
149
142
  const {
150
143
  getPrefixCls: t,
151
144
  direction: n
152
- } = r.useContext(P), {
145
+ } = r.useContext(D), {
153
146
  size: a,
154
147
  direction: c,
155
148
  block: d,
@@ -157,29 +150,28 @@ const m = /* @__PURE__ */ r.createContext(null), J = (e, t) => {
157
150
  className: l,
158
151
  rootClassName: y,
159
152
  children: x
160
- } = e, v = S(e, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]), I = R((s) => a ?? s), i = t("space-compact", u), [b, G] = A(i), $ = C(i, G, {
161
- [`${i}-rtl`]: n === "rtl",
162
- [`${i}-block`]: d,
163
- [`${i}-vertical`]: c === "vertical"
164
- }, l, y), o = r.useContext(m), p = E(x), h = r.useMemo(() => p.map((s, f) => {
165
- const z = (s == null ? void 0 : s.key) || `${i}-item-${f}`;
166
- return /* @__PURE__ */ r.createElement(B, {
167
- key: z,
168
- compactSize: I,
153
+ } = e, I = C(e, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]), b = L((i) => a ?? i), s = t("space-compact", u), [G, $] = E(s), v = S(s, $, {
154
+ [`${s}-rtl`]: n === "rtl",
155
+ [`${s}-block`]: d,
156
+ [`${s}-vertical`]: c === "vertical"
157
+ }, l, y), o = r.useContext(p), m = w(x), z = r.useMemo(() => m.map((i, f) => {
158
+ const h = (i == null ? void 0 : i.key) || `${s}-item-${f}`;
159
+ return /* @__PURE__ */ r.createElement(F, {
160
+ key: h,
161
+ compactSize: b,
169
162
  compactDirection: c,
170
163
  isFirstItem: f === 0 && (!o || (o == null ? void 0 : o.isFirstItem)),
171
- isLastItem: f === p.length - 1 && (!o || (o == null ? void 0 : o.isLastItem))
172
- }, s);
173
- }), [a, p, o]);
174
- return p.length === 0 ? null : b(/* @__PURE__ */ r.createElement("div", Object.assign({
175
- className: $
176
- }, v), h));
164
+ isLastItem: f === m.length - 1 && (!o || (o == null ? void 0 : o.isLastItem))
165
+ }, i);
166
+ }), [a, m, o]);
167
+ return m.length === 0 ? null : G(/* @__PURE__ */ r.createElement("div", Object.assign({
168
+ className: v
169
+ }, I), z));
177
170
  };
178
171
  export {
179
- Q as C,
180
- K as N,
181
- j as R,
182
- R as a,
183
- J as b,
184
- A as u
172
+ X as C,
173
+ V as N,
174
+ L as a,
175
+ T as b,
176
+ E as u
185
177
  };
@@ -1,6 +1,6 @@
1
1
  import r from "react";
2
- import { N as a } from "./context-CZsFJmh6.js";
3
- import { N as m } from "./Compact-CJBo3f0u.js";
2
+ import { N as a } from "./context-BMW3aJEf.js";
3
+ import { N as m } from "./Compact-CGY560JF.js";
4
4
  const i = (o) => {
5
5
  const {
6
6
  space: l,
@@ -1,6 +1,6 @@
1
- import { _ as l } from "./index-BWys7dkb.js";
1
+ import { a as l } from "./warning-C63HNL9U.js";
2
2
  import * as e from "react";
3
- import { I as r } from "./AntdIcon-Bsnbyy6g.js";
3
+ import { I as r } from "./AntdIcon-BoLh1dP8.js";
4
4
  var t = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" } }] }, name: "check-circle", theme: "filled" }, o = function(c, a) {
5
5
  return /* @__PURE__ */ e.createElement(r, l({}, c, {
6
6
  ref: a,
@@ -1,6 +1,3 @@
1
- import { _ as s } from "./index-BWys7dkb.js";
2
- import * as c from "react";
3
- import { I as _ } from "./AntdIcon-Bsnbyy6g.js";
4
1
  var E = {
5
2
  /**
6
3
  * MAC_ENTER
@@ -451,12 +448,12 @@ var E = {
451
448
  /**
452
449
  * whether text and modified key is entered at the same time.
453
450
  */
454
- isTextModifyingKeyEvent: function(e) {
455
- var a = e.keyCode;
456
- if (e.altKey && !e.ctrlKey || e.metaKey || // Function keys don't generate text
457
- a >= E.F1 && a <= E.F12)
451
+ isTextModifyingKeyEvent: function(N) {
452
+ var e = N.keyCode;
453
+ if (N.altKey && !N.ctrlKey || N.metaKey || // Function keys don't generate text
454
+ e >= E.F1 && e <= E.F12)
458
455
  return !1;
459
- switch (a) {
456
+ switch (e) {
460
457
  case E.ALT:
461
458
  case E.CAPS_LOCK:
462
459
  case E.CONTEXT_MENU:
@@ -488,10 +485,10 @@ var E = {
488
485
  /**
489
486
  * whether character is entered.
490
487
  */
491
- isCharacterKey: function(e) {
492
- if (e >= E.ZERO && e <= E.NINE || e >= E.NUM_ZERO && e <= E.NUM_MULTIPLY || e >= E.A && e <= E.Z || window.navigator.userAgent.indexOf("WebKit") !== -1 && e === 0)
488
+ isCharacterKey: function(N) {
489
+ if (N >= E.ZERO && N <= E.NINE || N >= E.NUM_ZERO && N <= E.NUM_MULTIPLY || N >= E.A && N <= E.Z || window.navigator.userAgent.indexOf("WebKit") !== -1 && N === 0)
493
490
  return !0;
494
- switch (e) {
491
+ switch (N) {
495
492
  case E.SPACE:
496
493
  case E.QUESTION_MARK:
497
494
  case E.NUM_PLUS:
@@ -514,14 +511,7 @@ var E = {
514
511
  return !1;
515
512
  }
516
513
  }
517
- }, t = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, name: "check", theme: "outlined" }, r = function(e, a) {
518
- return /* @__PURE__ */ c.createElement(_, s({}, e, {
519
- ref: a,
520
- icon: t
521
- }));
522
- }, M = /* @__PURE__ */ c.forwardRef(r);
523
- process.env.NODE_ENV !== "production" && (M.displayName = "CheckOutlined");
514
+ };
524
515
  export {
525
- E as K,
526
- M as R
516
+ E as K
527
517
  };
@@ -0,0 +1,13 @@
1
+ import { a as t } from "./warning-C63HNL9U.js";
2
+ import * as a from "react";
3
+ import { I as n } from "./AntdIcon-BoLh1dP8.js";
4
+ var i = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, name: "loading", theme: "outlined" }, r = function(e, o) {
5
+ return /* @__PURE__ */ a.createElement(n, t({}, e, {
6
+ ref: o,
7
+ icon: i
8
+ }));
9
+ }, d = /* @__PURE__ */ a.forwardRef(r);
10
+ process.env.NODE_ENV !== "production" && (d.displayName = "LoadingOutlined");
11
+ export {
12
+ d as R
13
+ };