@gobolt/genesis 0.0.8 → 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 (170) hide show
  1. package/README.md +10 -0
  2. package/dist/{AntdIcon-c395a1c4.js → AntdIcon-BoLh1dP8.js} +66 -68
  3. package/dist/CheckOutlined-CeTKr6II.js +13 -0
  4. package/dist/{CloseCircleFilled-ddc51e7e.js → CloseCircleFilled-DXCxlIQL.js} +8 -11
  5. package/dist/{CloseOutlined-14b8bba1.js → CloseOutlined-ClXDNn82.js} +9 -12
  6. package/dist/{Compact-c39ed20d.js → Compact-CGY560JF.js} +63 -65
  7. package/dist/ContextIsolator-D5x2Ih51.js +20 -0
  8. package/dist/{ExclamationCircleFilled-23ef9812.js → ExclamationCircleFilled-C0Kj5KQV.js} +16 -22
  9. package/dist/KeyCode-DM2sFh3-.js +517 -0
  10. package/dist/LoadingOutlined-8EnJdZ7I.js +13 -0
  11. package/dist/{Overflow-a570fa69.js → Overflow-PBZD-PFm.js} +63 -64
  12. package/dist/{DownOutlined-64a4732a.js → PurePanel-BqPLRtc2.js} +67 -70
  13. package/dist/{SearchOutlined-a9014e08.js → SearchOutlined-BP3Z2K6j.js} +8 -11
  14. package/dist/{TextArea-20825221.js → TextArea-DKwCct3i.js} +583 -588
  15. package/dist/Typography-aGoDUl4R.js +710 -0
  16. package/dist/bundle.css +1204 -0
  17. package/dist/{button-fa1c119c.js → button-CDQgO1OK.js} +274 -278
  18. package/dist/{collapse-345bc884.js → collapse-Dtpt-6W_.js} +2 -2
  19. package/dist/compact-item-DH13cl8A.js +61 -0
  20. package/dist/components/Badge/Badge.d.ts +2 -2
  21. package/dist/components/Badge/Badge.js +63 -62
  22. package/dist/components/Badge/__tests__/Badge.test.js +11 -65
  23. package/dist/components/Badge/index.js +2 -21
  24. package/dist/components/Badge/styles.js +7 -8
  25. package/dist/components/Breadcrumb/Breadcrumb.js +8 -24
  26. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +21 -7
  27. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +13 -60
  28. package/dist/components/Breadcrumb/index.js +2 -25
  29. package/dist/components/Breadcrumb/styles.d.ts +10 -6
  30. package/dist/components/Breadcrumb/styles.js +787 -808
  31. package/dist/components/Button/Button.d.ts +6 -4
  32. package/dist/components/Button/Button.js +20 -40
  33. package/dist/components/Button/__tests__/Button.test.js +9 -54
  34. package/dist/components/Button/index.js +2 -20
  35. package/dist/components/Button/styles.d.ts +9 -5
  36. package/dist/components/Button/styles.js +19 -30
  37. package/dist/components/Checkbox/Checkbox.js +8 -38
  38. package/dist/components/Checkbox/__tests__/Checkbox.test.js +16 -62
  39. package/dist/components/Checkbox/index.js +2 -47
  40. package/dist/components/Checkbox/styles.d.ts +8 -1
  41. package/dist/components/Checkbox/styles.js +181 -188
  42. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -4
  43. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +19 -51
  44. package/dist/components/ErrorBoundaryFallback/index.d.ts +1 -0
  45. package/dist/components/ErrorBoundaryFallback/index.js +2 -49
  46. package/dist/components/ErrorBoundaryFallback/styles.d.ts +1 -3
  47. package/dist/components/ErrorBoundaryFallback/styles.js +34 -37
  48. package/dist/components/Form/Form.d.ts +18 -5
  49. package/dist/components/Form/Form.js +4 -45
  50. package/dist/components/Form/__stories__/FormStory.js +44 -81
  51. package/dist/components/Form/__tests__/form.test.d.ts +1 -0
  52. package/dist/components/Form/__tests__/form.test.js +18 -0
  53. package/dist/components/Form/index.js +2 -46
  54. package/dist/components/Form/styles.d.ts +3 -0
  55. package/dist/components/Form/styles.js +5 -0
  56. package/dist/components/Input/Input.js +6 -29
  57. package/dist/components/Input/__tests__/Input.test.js +21 -66
  58. package/dist/components/Input/index.js +2 -29
  59. package/dist/components/Input/styles.d.ts +5 -2
  60. package/dist/components/Input/styles.js +319 -332
  61. package/dist/components/Message/Message.d.ts +4 -4
  62. package/dist/components/Message/Message.js +53 -80
  63. package/dist/components/Message/__tests__/Message.test.js +24 -70
  64. package/dist/components/Message/index.js +2 -48
  65. package/dist/components/Message/styles.d.ts +4 -1
  66. package/dist/components/Message/styles.js +24 -18
  67. package/dist/components/Notification/Notification.d.ts +11 -10
  68. package/dist/components/Notification/Notification.js +306 -372
  69. package/dist/components/Notification/NotificationRightChevron.d.ts +2 -0
  70. package/dist/components/Notification/NotificationRightChevron.js +23 -0
  71. package/dist/components/Notification/__tests__/Notification.test.js +8 -69
  72. package/dist/components/Notification/index.js +2 -59
  73. package/dist/components/Notification/styles.d.ts +13 -3
  74. package/dist/components/Notification/styles.js +36 -20
  75. package/dist/components/Radio/Radio.js +20 -106
  76. package/dist/components/Radio/RadioGroup.js +18 -71
  77. package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +1 -1
  78. package/dist/components/Radio/__tests__/RadioGroup.test.js +15 -70
  79. package/dist/components/Radio/index.d.ts +1 -1
  80. package/dist/components/Radio/index.js +2 -56
  81. package/dist/components/Select/DropdownChevron.d.ts +2 -0
  82. package/dist/components/Select/DropdownChevron.js +23 -0
  83. package/dist/components/Select/Select.d.ts +9 -4
  84. package/dist/components/Select/Select.js +29 -41
  85. package/dist/components/Select/__tests__/Select.test.js +10752 -93
  86. package/dist/components/Select/index.js +2 -28
  87. package/dist/components/Select/styles.d.ts +20 -6
  88. package/dist/components/Select/styles.js +1381 -1370
  89. package/dist/components/Toast/Toast.d.ts +4 -4
  90. package/dist/components/Toast/Toast.js +8 -37
  91. package/dist/components/Toast/__stories__/Toast.stories.d.ts +1 -0
  92. package/dist/components/Toast/__tests__/Toast.test.js +10 -55
  93. package/dist/components/Toast/index.js +2 -46
  94. package/dist/components/Toast/styles.d.ts +6 -1
  95. package/dist/components/Toast/styles.js +36 -21
  96. package/dist/components/Typography/Typography.d.ts +7 -4
  97. package/dist/components/Typography/Typography.js +2 -42
  98. package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
  99. package/dist/components/Typography/__tests__/Typography.test.js +19 -56
  100. package/dist/components/Typography/index.js +2 -46
  101. package/dist/components/Typography/styles.d.ts +18 -4
  102. package/dist/components/Typography/styles.js +36 -43
  103. package/dist/components/index.d.ts +13 -5
  104. package/dist/components/index.js +24 -70
  105. package/dist/{context-3b8a39af.js → context-BMW3aJEf.js} +538 -548
  106. package/dist/genesis/GenesisThemeBreakdown.js +38 -55
  107. package/dist/genesis/GenesisThemeDemo.js +3 -53
  108. package/dist/genesis/styles.d.ts +6 -2
  109. package/dist/genesis/styles.js +496 -521
  110. package/dist/{index-e2b72ca8.js → index-1CBpubM3.js} +97 -102
  111. package/dist/index-BZAhCB_K.js +97 -0
  112. package/dist/{index-501fc13d.js → index-C0SmxWLS.js} +367 -392
  113. package/dist/index-C8haFnXI.js +1112 -0
  114. package/dist/index-CfDY25LP.js +873 -0
  115. package/dist/index-DPW8XdWj.js +952 -0
  116. package/dist/{index-8c8d2d0c.js → index-bKlRxQp4.js} +114 -114
  117. package/dist/index-oK7z6jnz.js +22795 -0
  118. package/dist/index.d.ts +1 -0
  119. package/dist/index.js +31 -77
  120. package/dist/{isVisible-729780f5.js → isVisible-A-IfeFoT.js} +67 -94
  121. package/dist/{magic-string.es-b7491176.js → magic-string.es-D2FWSwU3.js} +56 -103
  122. package/dist/{pickAttrs-00ba4687.js → pickAttrs-B0YTfcV1.js} +1 -1
  123. package/dist/providers/GenesisProvider.d.ts +0 -5
  124. package/dist/providers/GenesisProvider.js +9 -59
  125. package/dist/providers/ThemeProvider.d.ts +1 -2
  126. package/dist/providers/ThemeProvider.js +11 -13
  127. package/dist/providers/ToastProvider.d.ts +11 -4
  128. package/dist/providers/ToastProvider.js +10 -39
  129. package/dist/providers/index.d.ts +2 -3
  130. package/dist/providers/index.js +4 -51
  131. package/dist/providers/useGenesis.d.ts +7 -0
  132. package/dist/providers/useGenesis.js +6 -0
  133. package/dist/setup-BvfREoHl.js +33891 -0
  134. package/dist/{styled-components.browser.esm-02f500bc.js → styled-components.browser.esm-CZ1XM4o4.js} +72 -134
  135. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +15 -45
  136. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +15 -45
  137. package/dist/styles/design-tokens/{typography → typography-tokens}/TypographyTokens.stories.d.ts +1 -0
  138. package/dist/styles/design-tokens/variables.d.ts +10 -10
  139. package/dist/styles/design-tokens/variables.js +1 -1
  140. package/dist/styles/global-styles.d.ts +1 -0
  141. package/dist/styles/global-styles.js +14 -31
  142. package/dist/styles/theme/genesis-theme.js +257 -212
  143. package/dist/styles/theme/genesis-theme.types.d.ts +46 -0
  144. package/dist/styles/theme/index.js +4 -5
  145. package/dist/styles-CT_fyXBd.js +1808 -0
  146. package/dist/test/setup.js +3 -46
  147. package/dist/useLocale-DT-z_vQ6.js +16 -0
  148. package/dist/useVariants-DvhXfgJY.js +30 -0
  149. package/dist/utils/isAllEnglishString.js +1 -2
  150. package/dist/{presets-83ccb923.js → warning-C63HNL9U.js} +358 -356
  151. package/package.json +35 -35
  152. package/dist/CheckOutlined-52d9ac25.js +0 -29
  153. package/dist/ContextIsolator-b09b2c52.js +0 -20
  154. package/dist/EllipsisOutlined-60122660.js +0 -1115
  155. package/dist/InfoCircleFilled-c5f90c20.js +0 -16
  156. package/dist/RightOutlined-83515eb4.js +0 -16
  157. package/dist/compact-item-b8f85aa6.js +0 -75
  158. package/dist/index-0a886e53.js +0 -100
  159. package/dist/index-0b9ee239.js +0 -955
  160. package/dist/index-1a33c134.js +0 -1389
  161. package/dist/index-4003d75b.js +0 -3748
  162. package/dist/index-89035ea5.js +0 -3242
  163. package/dist/providers/ToastWrapper.d.ts +0 -7
  164. package/dist/providers/ToastWrapper.js +0 -56
  165. package/dist/setup-aaca7b6f.js +0 -21158
  166. package/dist/styles/theme/global-styles.d.ts +0 -1
  167. package/dist/styles/theme/global-styles.js +0 -36
  168. package/dist/useVariants-a0d64298.js +0 -30
  169. /package/dist/{presetColors-ccf8cb4c.js → presetColors-Cl8UP3Nw.js} +0 -0
  170. /package/dist/{reactNode-f4391605.js → reactNode-sKPeiqPL.js} +0 -0
package/README.md CHANGED
@@ -89,4 +89,14 @@ requires: [just](https://github.com/casey/just)
89
89
 
90
90
  ```
91
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
92
102
  ```
@@ -1,28 +1,28 @@
1
- import { w as U, d as h, _ as l, g as W, C as I, u as q, e as R, f as S, c as F, h as x, a as G, i as H } from "./presets-83ccb923.js";
2
- import * as d from "react";
3
- import _, { useContext as J, useEffect as K } from "react";
4
- function z(n) {
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
+ import x, { useContext as H, useEffect as J } from "react";
4
+ function S(n) {
5
5
  var o;
6
6
  return n == null || (o = n.getRootNode) === null || o === void 0 ? void 0 : o.call(n);
7
7
  }
8
+ function K(n) {
9
+ return S(n) instanceof ShadowRoot;
10
+ }
8
11
  function M(n) {
9
- return z(n) instanceof ShadowRoot;
12
+ return K(n) ? S(n) : null;
10
13
  }
11
14
  function Q(n) {
12
- return M(n) ? z(n) : null;
13
- }
14
- function V(n) {
15
15
  return n.replace(/-(.)/g, function(o, e) {
16
16
  return e.toUpperCase();
17
17
  });
18
18
  }
19
- function X(n, o) {
20
- U(n, "[@ant-design/icons] ".concat(o));
19
+ function V(n, o) {
20
+ L(n, "[@ant-design/icons] ".concat(o));
21
21
  }
22
- function k(n) {
23
- return h(n) === "object" && typeof n.name == "string" && typeof n.theme == "string" && (h(n.icon) === "object" || typeof n.icon == "function");
22
+ function _(n) {
23
+ return b(n) === "object" && typeof n.name == "string" && typeof n.theme == "string" && (b(n.icon) === "object" || typeof n.icon == "function");
24
24
  }
25
- function N() {
25
+ function k() {
26
26
  var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
27
27
  return Object.keys(n).reduce(function(o, e) {
28
28
  var r = n[e];
@@ -31,29 +31,29 @@ function N() {
31
31
  o.className = r, delete o.class;
32
32
  break;
33
33
  default:
34
- delete o[e], o[V(e)] = r;
34
+ delete o[e], o[Q(e)] = r;
35
35
  }
36
36
  return o;
37
37
  }, {});
38
38
  }
39
39
  function T(n, o, e) {
40
- return e ? /* @__PURE__ */ _.createElement(n.tag, l(l({
40
+ return e ? /* @__PURE__ */ x.createElement(n.tag, l(l({
41
41
  key: o
42
- }, N(n.attrs)), e), (n.children || []).map(function(r, t) {
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__ */ _.createElement(n.tag, l({
44
+ })) : /* @__PURE__ */ x.createElement(n.tag, l({
45
45
  key: o
46
- }, N(n.attrs)), (n.children || []).map(function(r, t) {
46
+ }, k(n.attrs)), (n.children || []).map(function(r, t) {
47
47
  return T(r, "".concat(o, "-").concat(n.tag, "-").concat(t));
48
48
  }));
49
49
  }
50
- function E(n) {
51
- return W(n)[0];
50
+ function z(n) {
51
+ return U(n)[0];
52
52
  }
53
- function A(n) {
53
+ function E(n) {
54
54
  return n ? Array.isArray(n) ? n : [n] : [];
55
55
  }
56
- var Y = `
56
+ var X = `
57
57
  .anticon {
58
58
  display: inline-flex;
59
59
  align-items: center;
@@ -108,40 +108,40 @@ var Y = `
108
108
  transform: rotate(360deg);
109
109
  }
110
110
  }
111
- `, Z = function(o) {
112
- var e = J(I), r = e.csp, t = e.prefixCls, c = e.layer, a = Y;
111
+ `, Y = function(o) {
112
+ var e = H(I), r = e.csp, t = e.prefixCls, c = e.layer, a = X;
113
113
  t && (a = a.replace(/anticon/g, t)), c && (a = "@layer ".concat(c, ` {
114
114
  `).concat(a, `
115
- }`)), K(function() {
116
- var s = o.current, u = Q(s);
117
- q(a, "@ant-design-icons", {
115
+ }`)), J(function() {
116
+ var s = o.current, f = M(s);
117
+ W(a, "@ant-design-icons", {
118
118
  prepend: !0,
119
119
  csp: r,
120
- attachTo: u
120
+ attachTo: f
121
121
  });
122
122
  }, []);
123
- }, nn = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], f = {
123
+ }, Z = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], C = {
124
124
  primaryColor: "#333",
125
125
  secondaryColor: "#E6E6E6",
126
126
  calculated: !1
127
127
  };
128
- function on(n) {
128
+ function nn(n) {
129
129
  var o = n.primaryColor, e = n.secondaryColor;
130
- f.primaryColor = o, f.secondaryColor = e || E(o), f.calculated = !!e;
130
+ C.primaryColor = o, C.secondaryColor = e || z(o), C.calculated = !!e;
131
131
  }
132
- function en() {
133
- return l({}, f);
132
+ function on() {
133
+ return l({}, C);
134
134
  }
135
- var y = function(o) {
136
- var e = o.icon, r = o.className, t = o.onClick, c = o.style, a = o.primaryColor, s = o.secondaryColor, u = R(o, nn), C = d.useRef(), m = f;
137
- if (a && (m = {
135
+ var d = function(o) {
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
138
  primaryColor: a,
139
- secondaryColor: s || E(a)
140
- }), Z(C), X(k(e), "icon should be icon definiton, but got ".concat(e)), !k(e))
139
+ secondaryColor: s || z(a)
140
+ }), Y(y), V(_(e), "icon should be icon definiton, but got ".concat(e)), !_(e))
141
141
  return null;
142
142
  var i = e;
143
143
  return i && typeof i.icon == "function" && (i = l(l({}, i), {}, {
144
- icon: i.icon(m.primaryColor, m.secondaryColor)
144
+ icon: i.icon(u.primaryColor, u.secondaryColor)
145
145
  })), T(i.icon, "svg-".concat(i.name), l(l({
146
146
  className: r,
147
147
  onClick: t,
@@ -151,54 +151,52 @@ var y = function(o) {
151
151
  height: "1em",
152
152
  fill: "currentColor",
153
153
  "aria-hidden": "true"
154
- }, u), {}, {
155
- ref: C
154
+ }, f), {}, {
155
+ ref: y
156
156
  }));
157
157
  };
158
- y.displayName = "IconReact";
159
- y.getTwoToneColors = en;
160
- y.setTwoToneColors = on;
161
- const w = y;
158
+ d.displayName = "IconReact";
159
+ d.getTwoToneColors = on;
160
+ d.setTwoToneColors = nn;
162
161
  function $(n) {
163
- var o = A(n), e = S(o, 2), r = e[0], t = e[1];
164
- return w.setTwoToneColors({
162
+ var o = E(n), e = R(o, 2), r = e[0], t = e[1];
163
+ return d.setTwoToneColors({
165
164
  primaryColor: r,
166
165
  secondaryColor: t
167
166
  });
168
167
  }
169
- function rn() {
170
- var n = w.getTwoToneColors();
168
+ function en() {
169
+ var n = d.getTwoToneColors();
171
170
  return n.calculated ? [n.primaryColor, n.secondaryColor] : n.primaryColor;
172
171
  }
173
- var tn = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
174
- $(H.primary);
175
- var g = /* @__PURE__ */ d.forwardRef(function(n, o) {
176
- var e = n.className, r = n.icon, t = n.spin, c = n.rotate, a = n.tabIndex, s = n.onClick, u = n.twoToneColor, C = R(n, tn), m = d.useContext(I), i = m.prefixCls, v = i === void 0 ? "anticon" : i, j = m.rootClassName, P = F(j, v, x(x({}, "".concat(v, "-").concat(r.name), !!r.name), "".concat(v, "-spin"), !!t || r.name === "loading"), e), p = a;
172
+ var rn = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
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;
177
176
  p === void 0 && s && (p = -1);
178
- var B = c ? {
177
+ var P = c ? {
179
178
  msTransform: "rotate(".concat(c, "deg)"),
180
179
  transform: "rotate(".concat(c, "deg)")
181
- } : void 0, O = A(u), b = S(O, 2), D = b[0], L = b[1];
182
- return /* @__PURE__ */ d.createElement("span", G({
180
+ } : void 0, B = E(f), w = R(B, 2), O = w[0], D = w[1];
181
+ return /* @__PURE__ */ m.createElement("span", F({
183
182
  role: "img",
184
183
  "aria-label": r.name
185
- }, C, {
184
+ }, y, {
186
185
  ref: o,
187
186
  tabIndex: p,
188
187
  onClick: s,
189
- className: P
190
- }), /* @__PURE__ */ d.createElement(w, {
188
+ className: A
189
+ }), /* @__PURE__ */ m.createElement(d, {
191
190
  icon: r,
192
- primaryColor: D,
193
- secondaryColor: L,
194
- style: B
191
+ primaryColor: O,
192
+ secondaryColor: D,
193
+ style: P
195
194
  }));
196
195
  });
197
- g.displayName = "AntdIcon";
198
- g.getTwoToneColor = rn;
199
- g.setTwoToneColor = $;
200
- const ln = g;
196
+ v.displayName = "AntdIcon";
197
+ v.getTwoToneColor = en;
198
+ v.setTwoToneColor = $;
201
199
  export {
202
- ln as A,
203
- Q as g
200
+ v as I,
201
+ M as g
204
202
  };
@@ -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,16 +1,13 @@
1
- import { a as r } from "./presets-83ccb923.js";
1
+ import { a as c } from "./warning-C63HNL9U.js";
2
2
  import * as e from "react";
3
- import { A as o } from "./AntdIcon-c395a1c4.js";
4
- var i = { 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" };
5
- const s = i;
6
- var t = function(c, a) {
7
- return /* @__PURE__ */ e.createElement(o, r({}, c, {
3
+ import { I as r } from "./AntdIcon-BoLh1dP8.js";
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
+ return /* @__PURE__ */ e.createElement(r, c({}, l, {
8
6
  ref: a,
9
- icon: s
7
+ icon: o
10
8
  }));
11
- }, l = /* @__PURE__ */ e.forwardRef(t);
12
- process.env.NODE_ENV !== "production" && (l.displayName = "CloseCircleFilled");
13
- const C = l;
9
+ }, t = /* @__PURE__ */ e.forwardRef(i);
10
+ process.env.NODE_ENV !== "production" && (t.displayName = "CloseCircleFilled");
14
11
  export {
15
- C
12
+ t as R
16
13
  };
@@ -1,16 +1,13 @@
1
- import { a as o } from "./presets-83ccb923.js";
1
+ import { a as l } from "./warning-C63HNL9U.js";
2
2
  import * as e from "react";
3
- import { A as t } from "./AntdIcon-c395a1c4.js";
4
- var n = { 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" };
5
- const r = n;
6
- var s = function(l, a) {
7
- return /* @__PURE__ */ e.createElement(t, o({}, l, {
8
- ref: a,
9
- icon: r
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
10
8
  }));
11
- }, c = /* @__PURE__ */ e.forwardRef(s);
12
- process.env.NODE_ENV !== "production" && (c.displayName = "CloseOutlined");
13
- const u = c;
9
+ }, n = /* @__PURE__ */ e.forwardRef(r);
10
+ process.env.NODE_ENV !== "production" && (n.displayName = "CloseOutlined");
14
11
  export {
15
- u as C
12
+ n as R
16
13
  };
@@ -1,12 +1,12 @@
1
- import * as c from "react";
2
- import f from "react";
3
- import { c as S } from "./presets-83ccb923.js";
4
- import { t as w } from "./isVisible-729780f5.js";
5
- import { S as O, g as N, m as P, C as D } from "./index-4003d75b.js";
1
+ import * as r from "react";
2
+ import g from "react";
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
6
  const L = (e) => {
7
- const t = f.useContext(O);
8
- return f.useMemo(() => e ? typeof e == "string" ? e ?? t : e instanceof Function ? e(t) : t : t, [e, t]);
9
- }, M = L, j = (e) => {
7
+ const t = g.useContext(O);
8
+ return g.useMemo(() => e ? typeof e == "string" ? e ?? t : e instanceof Function ? e(t) : t : t, [e, t]);
9
+ }, M = (e) => {
10
10
  const {
11
11
  componentCls: t
12
12
  } = e;
@@ -21,10 +21,10 @@ const L = (e) => {
21
21
  }
22
22
  }
23
23
  };
24
- }, E = j, _ = (e) => {
24
+ }, _ = (e) => {
25
25
  const {
26
26
  componentCls: t,
27
- antCls: a
27
+ antCls: n
28
28
  } = e;
29
29
  return {
30
30
  [t]: {
@@ -54,12 +54,12 @@ const L = (e) => {
54
54
  display: "none"
55
55
  },
56
56
  // https://github.com/ant-design/ant-design/issues/47875
57
- [`${t}-item > ${a}-badge-not-a-wrapper:only-child`]: {
57
+ [`${t}-item > ${n}-badge-not-a-wrapper:only-child`]: {
58
58
  display: "block"
59
59
  }
60
60
  }
61
61
  };
62
- }, F = (e) => {
62
+ }, j = (e) => {
63
63
  const {
64
64
  componentCls: t
65
65
  } = e;
@@ -85,95 +85,93 @@ const L = (e) => {
85
85
  }
86
86
  }
87
87
  };
88
- }, T = N("Space", (e) => {
88
+ }, E = N("Space", (e) => {
89
89
  const t = P(e, {
90
90
  spaceGapSmallSize: e.paddingXS,
91
91
  spaceGapMiddleSize: e.padding,
92
92
  spaceGapLargeSize: e.paddingLG
93
93
  });
94
- return [_(t), F(t), E(t)];
94
+ return [_(t), j(t), M(t)];
95
95
  }, () => ({}), {
96
96
  // Space component don't apply extra font style
97
97
  // https://github.com/ant-design/ant-design/issues/40315
98
98
  resetStyle: !1
99
99
  });
100
- var C = globalThis && globalThis.__rest || function(e, t) {
101
- var a = {};
102
- for (var o in e)
103
- Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (a[o] = e[o]);
104
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
105
- for (var n = 0, o = Object.getOwnPropertySymbols(e); n < o.length; n++)
106
- t.indexOf(o[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[n]) && (a[o[n]] = e[o[n]]);
107
- return a;
100
+ var C = function(e, t) {
101
+ var n = {};
102
+ for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
103
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var c = 0, a = Object.getOwnPropertySymbols(e); c < a.length; c++)
104
+ t.indexOf(a[c]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[c]) && (n[a[c]] = e[a[c]]);
105
+ return n;
108
106
  };
109
- const m = /* @__PURE__ */ c.createContext(null), q = (e, t) => {
110
- const a = c.useContext(m), o = c.useMemo(() => {
111
- if (!a)
107
+ const p = /* @__PURE__ */ r.createContext(null), T = (e, t) => {
108
+ const n = r.useContext(p), a = r.useMemo(() => {
109
+ if (!n)
112
110
  return "";
113
111
  const {
114
- compactDirection: n,
112
+ compactDirection: c,
115
113
  isFirstItem: d,
116
114
  isLastItem: u
117
- } = a, l = n === "vertical" ? "-vertical-" : "-";
115
+ } = n, l = c === "vertical" ? "-vertical-" : "-";
118
116
  return S(`${e}-compact${l}item`, {
119
117
  [`${e}-compact${l}first-item`]: d,
120
118
  [`${e}-compact${l}last-item`]: u,
121
119
  [`${e}-compact${l}item-rtl`]: t === "rtl"
122
120
  });
123
- }, [e, t, a]);
121
+ }, [e, t, n]);
124
122
  return {
125
- compactSize: a == null ? void 0 : a.compactSize,
126
- compactDirection: a == null ? void 0 : a.compactDirection,
127
- compactItemClassnames: o
123
+ compactSize: n == null ? void 0 : n.compactSize,
124
+ compactDirection: n == null ? void 0 : n.compactDirection,
125
+ compactItemClassnames: a
128
126
  };
129
- }, B = (e) => {
130
- let {
127
+ }, V = (e) => {
128
+ const {
131
129
  children: t
132
130
  } = e;
133
- return /* @__PURE__ */ c.createElement(m.Provider, {
131
+ return /* @__PURE__ */ r.createElement(p.Provider, {
134
132
  value: null
135
133
  }, t);
136
- }, R = (e) => {
137
- var {
134
+ }, F = (e) => {
135
+ const {
138
136
  children: t
139
- } = e, a = C(e, ["children"]);
140
- return /* @__PURE__ */ c.createElement(m.Provider, {
141
- value: a
137
+ } = e, n = C(e, ["children"]);
138
+ return /* @__PURE__ */ r.createElement(p.Provider, {
139
+ value: r.useMemo(() => n, [n])
142
140
  }, t);
143
- }, k = (e) => {
141
+ }, X = (e) => {
144
142
  const {
145
143
  getPrefixCls: t,
146
- direction: a
147
- } = c.useContext(D), {
148
- size: o,
149
- direction: n,
144
+ direction: n
145
+ } = r.useContext(D), {
146
+ size: a,
147
+ direction: c,
150
148
  block: d,
151
149
  prefixCls: u,
152
150
  className: l,
153
- rootClassName: v,
154
- children: y
155
- } = e, x = C(e, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]), b = M((i) => o ?? i), s = t("space-compact", u), [$, I] = T(s), G = S(s, I, {
156
- [`${s}-rtl`]: a === "rtl",
151
+ rootClassName: y,
152
+ children: x
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",
157
155
  [`${s}-block`]: d,
158
- [`${s}-vertical`]: n === "vertical"
159
- }, l, v), r = c.useContext(m), p = w(y), z = c.useMemo(() => p.map((i, g) => {
160
- const h = (i == null ? void 0 : i.key) || `${s}-item-${g}`;
161
- return /* @__PURE__ */ c.createElement(R, {
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, {
162
160
  key: h,
163
161
  compactSize: b,
164
- compactDirection: n,
165
- isFirstItem: g === 0 && (!r || (r == null ? void 0 : r.isFirstItem)),
166
- isLastItem: g === p.length - 1 && (!r || (r == null ? void 0 : r.isLastItem))
162
+ compactDirection: c,
163
+ isFirstItem: f === 0 && (!o || (o == null ? void 0 : o.isFirstItem)),
164
+ isLastItem: f === m.length - 1 && (!o || (o == null ? void 0 : o.isLastItem))
167
165
  }, i);
168
- }), [o, p, r]);
169
- return p.length === 0 ? null : $(/* @__PURE__ */ c.createElement("div", Object.assign({
170
- className: G
171
- }, x), z));
172
- }, J = k;
166
+ }), [a, m, o]);
167
+ return m.length === 0 ? null : G(/* @__PURE__ */ r.createElement("div", Object.assign({
168
+ className: v
169
+ }, I), z));
170
+ };
173
171
  export {
174
- J as C,
175
- B as N,
176
- M as a,
177
- q as b,
178
- T as u
172
+ X as C,
173
+ V as N,
174
+ L as a,
175
+ T as b,
176
+ E as u
179
177
  };
@@ -0,0 +1,20 @@
1
+ import r from "react";
2
+ import { N as a } from "./context-BMW3aJEf.js";
3
+ import { N as m } from "./Compact-CGY560JF.js";
4
+ const i = (o) => {
5
+ const {
6
+ space: l,
7
+ form: n,
8
+ children: t
9
+ } = o;
10
+ if (t == null)
11
+ return null;
12
+ let e = t;
13
+ return n && (e = /* @__PURE__ */ r.createElement(a, {
14
+ override: !0,
15
+ status: !0
16
+ }, e)), l && (e = /* @__PURE__ */ r.createElement(m, null, e)), e;
17
+ };
18
+ export {
19
+ i as C
20
+ };
@@ -1,27 +1,21 @@
1
- import { a as i } from "./presets-83ccb923.js";
1
+ import { a as l } from "./warning-C63HNL9U.js";
2
2
  import * as e from "react";
3
- import { A as a } from "./AntdIcon-c395a1c4.js";
4
- var n = { 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" };
5
- const s = n;
6
- var d = function(c, l) {
7
- return /* @__PURE__ */ e.createElement(a, i({}, c, {
8
- ref: l,
9
- icon: s
3
+ import { I as r } from "./AntdIcon-BoLh1dP8.js";
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
+ return /* @__PURE__ */ e.createElement(r, l({}, c, {
6
+ ref: a,
7
+ icon: t
10
8
  }));
11
- }, r = /* @__PURE__ */ e.forwardRef(d);
12
- process.env.NODE_ENV !== "production" && (r.displayName = "CheckCircleFilled");
13
- const E = r;
14
- var m = { 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 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "exclamation-circle", theme: "filled" };
15
- const f = m;
16
- var C = function(c, l) {
17
- return /* @__PURE__ */ e.createElement(a, i({}, c, {
18
- ref: l,
19
- icon: f
9
+ }, n = /* @__PURE__ */ e.forwardRef(o);
10
+ process.env.NODE_ENV !== "production" && (n.displayName = "CheckCircleFilled");
11
+ var s = { 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 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "exclamation-circle", theme: "filled" }, m = function(c, a) {
12
+ return /* @__PURE__ */ e.createElement(r, l({}, c, {
13
+ ref: a,
14
+ icon: s
20
15
  }));
21
- }, t = /* @__PURE__ */ e.forwardRef(C);
22
- process.env.NODE_ENV !== "production" && (t.displayName = "ExclamationCircleFilled");
23
- const p = t;
16
+ }, d = /* @__PURE__ */ e.forwardRef(m);
17
+ process.env.NODE_ENV !== "production" && (d.displayName = "ExclamationCircleFilled");
24
18
  export {
25
- E as C,
26
- p as E
19
+ n as R,
20
+ d as a
27
21
  };