@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.
- package/README.md +10 -0
- package/dist/{AntdIcon-c395a1c4.js → AntdIcon-BoLh1dP8.js} +66 -68
- package/dist/CheckOutlined-CeTKr6II.js +13 -0
- package/dist/{CloseCircleFilled-ddc51e7e.js → CloseCircleFilled-DXCxlIQL.js} +8 -11
- package/dist/{CloseOutlined-14b8bba1.js → CloseOutlined-ClXDNn82.js} +9 -12
- package/dist/{Compact-c39ed20d.js → Compact-CGY560JF.js} +63 -65
- package/dist/ContextIsolator-D5x2Ih51.js +20 -0
- package/dist/{ExclamationCircleFilled-23ef9812.js → ExclamationCircleFilled-C0Kj5KQV.js} +16 -22
- package/dist/KeyCode-DM2sFh3-.js +517 -0
- package/dist/LoadingOutlined-8EnJdZ7I.js +13 -0
- package/dist/{Overflow-a570fa69.js → Overflow-PBZD-PFm.js} +63 -64
- package/dist/{DownOutlined-64a4732a.js → PurePanel-BqPLRtc2.js} +67 -70
- package/dist/{SearchOutlined-a9014e08.js → SearchOutlined-BP3Z2K6j.js} +8 -11
- package/dist/{TextArea-20825221.js → TextArea-DKwCct3i.js} +583 -588
- package/dist/Typography-aGoDUl4R.js +710 -0
- package/dist/bundle.css +1204 -0
- package/dist/{button-fa1c119c.js → button-CDQgO1OK.js} +274 -278
- package/dist/{collapse-345bc884.js → collapse-Dtpt-6W_.js} +2 -2
- package/dist/compact-item-DH13cl8A.js +61 -0
- package/dist/components/Badge/Badge.d.ts +2 -2
- package/dist/components/Badge/Badge.js +63 -62
- package/dist/components/Badge/__tests__/Badge.test.js +11 -65
- package/dist/components/Badge/index.js +2 -21
- package/dist/components/Badge/styles.js +7 -8
- package/dist/components/Breadcrumb/Breadcrumb.js +8 -24
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +21 -7
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +13 -60
- package/dist/components/Breadcrumb/index.js +2 -25
- package/dist/components/Breadcrumb/styles.d.ts +10 -6
- package/dist/components/Breadcrumb/styles.js +787 -808
- package/dist/components/Button/Button.d.ts +6 -4
- package/dist/components/Button/Button.js +20 -40
- package/dist/components/Button/__tests__/Button.test.js +9 -54
- package/dist/components/Button/index.js +2 -20
- package/dist/components/Button/styles.d.ts +9 -5
- package/dist/components/Button/styles.js +19 -30
- package/dist/components/Checkbox/Checkbox.js +8 -38
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +16 -62
- package/dist/components/Checkbox/index.js +2 -47
- package/dist/components/Checkbox/styles.d.ts +8 -1
- package/dist/components/Checkbox/styles.js +181 -188
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -4
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +19 -51
- package/dist/components/ErrorBoundaryFallback/index.d.ts +1 -0
- package/dist/components/ErrorBoundaryFallback/index.js +2 -49
- package/dist/components/ErrorBoundaryFallback/styles.d.ts +1 -3
- package/dist/components/ErrorBoundaryFallback/styles.js +34 -37
- package/dist/components/Form/Form.d.ts +18 -5
- package/dist/components/Form/Form.js +4 -45
- package/dist/components/Form/__stories__/FormStory.js +44 -81
- package/dist/components/Form/__tests__/form.test.d.ts +1 -0
- package/dist/components/Form/__tests__/form.test.js +18 -0
- package/dist/components/Form/index.js +2 -46
- package/dist/components/Form/styles.d.ts +3 -0
- package/dist/components/Form/styles.js +5 -0
- package/dist/components/Input/Input.js +6 -29
- package/dist/components/Input/__tests__/Input.test.js +21 -66
- package/dist/components/Input/index.js +2 -29
- package/dist/components/Input/styles.d.ts +5 -2
- package/dist/components/Input/styles.js +319 -332
- package/dist/components/Message/Message.d.ts +4 -4
- package/dist/components/Message/Message.js +53 -80
- package/dist/components/Message/__tests__/Message.test.js +24 -70
- package/dist/components/Message/index.js +2 -48
- package/dist/components/Message/styles.d.ts +4 -1
- package/dist/components/Message/styles.js +24 -18
- package/dist/components/Notification/Notification.d.ts +11 -10
- package/dist/components/Notification/Notification.js +306 -372
- package/dist/components/Notification/NotificationRightChevron.d.ts +2 -0
- package/dist/components/Notification/NotificationRightChevron.js +23 -0
- package/dist/components/Notification/__tests__/Notification.test.js +8 -69
- package/dist/components/Notification/index.js +2 -59
- package/dist/components/Notification/styles.d.ts +13 -3
- package/dist/components/Notification/styles.js +36 -20
- package/dist/components/Radio/Radio.js +20 -106
- package/dist/components/Radio/RadioGroup.js +18 -71
- package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +1 -1
- package/dist/components/Radio/__tests__/RadioGroup.test.js +15 -70
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Radio/index.js +2 -56
- package/dist/components/Select/DropdownChevron.d.ts +2 -0
- package/dist/components/Select/DropdownChevron.js +23 -0
- package/dist/components/Select/Select.d.ts +9 -4
- package/dist/components/Select/Select.js +29 -41
- package/dist/components/Select/__tests__/Select.test.js +10752 -93
- package/dist/components/Select/index.js +2 -28
- package/dist/components/Select/styles.d.ts +20 -6
- package/dist/components/Select/styles.js +1381 -1370
- package/dist/components/Toast/Toast.d.ts +4 -4
- package/dist/components/Toast/Toast.js +8 -37
- package/dist/components/Toast/__stories__/Toast.stories.d.ts +1 -0
- package/dist/components/Toast/__tests__/Toast.test.js +10 -55
- package/dist/components/Toast/index.js +2 -46
- package/dist/components/Toast/styles.d.ts +6 -1
- package/dist/components/Toast/styles.js +36 -21
- package/dist/components/Typography/Typography.d.ts +7 -4
- package/dist/components/Typography/Typography.js +2 -42
- package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.js +19 -56
- package/dist/components/Typography/index.js +2 -46
- package/dist/components/Typography/styles.d.ts +18 -4
- package/dist/components/Typography/styles.js +36 -43
- package/dist/components/index.d.ts +13 -5
- package/dist/components/index.js +24 -70
- package/dist/{context-3b8a39af.js → context-BMW3aJEf.js} +538 -548
- package/dist/genesis/GenesisThemeBreakdown.js +38 -55
- package/dist/genesis/GenesisThemeDemo.js +3 -53
- package/dist/genesis/styles.d.ts +6 -2
- package/dist/genesis/styles.js +496 -521
- package/dist/{index-e2b72ca8.js → index-1CBpubM3.js} +97 -102
- package/dist/index-BZAhCB_K.js +97 -0
- package/dist/{index-501fc13d.js → index-C0SmxWLS.js} +367 -392
- package/dist/index-C8haFnXI.js +1112 -0
- package/dist/index-CfDY25LP.js +873 -0
- package/dist/index-DPW8XdWj.js +952 -0
- package/dist/{index-8c8d2d0c.js → index-bKlRxQp4.js} +114 -114
- package/dist/index-oK7z6jnz.js +22795 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +31 -77
- package/dist/{isVisible-729780f5.js → isVisible-A-IfeFoT.js} +67 -94
- package/dist/{magic-string.es-b7491176.js → magic-string.es-D2FWSwU3.js} +56 -103
- package/dist/{pickAttrs-00ba4687.js → pickAttrs-B0YTfcV1.js} +1 -1
- package/dist/providers/GenesisProvider.d.ts +0 -5
- package/dist/providers/GenesisProvider.js +9 -59
- package/dist/providers/ThemeProvider.d.ts +1 -2
- package/dist/providers/ThemeProvider.js +11 -13
- package/dist/providers/ToastProvider.d.ts +11 -4
- package/dist/providers/ToastProvider.js +10 -39
- package/dist/providers/index.d.ts +2 -3
- package/dist/providers/index.js +4 -51
- package/dist/providers/useGenesis.d.ts +7 -0
- package/dist/providers/useGenesis.js +6 -0
- package/dist/setup-BvfREoHl.js +33891 -0
- package/dist/{styled-components.browser.esm-02f500bc.js → styled-components.browser.esm-CZ1XM4o4.js} +72 -134
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +15 -45
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +15 -45
- package/dist/styles/design-tokens/{typography → typography-tokens}/TypographyTokens.stories.d.ts +1 -0
- package/dist/styles/design-tokens/variables.d.ts +10 -10
- package/dist/styles/design-tokens/variables.js +1 -1
- package/dist/styles/global-styles.d.ts +1 -0
- package/dist/styles/global-styles.js +14 -31
- package/dist/styles/theme/genesis-theme.js +257 -212
- package/dist/styles/theme/genesis-theme.types.d.ts +46 -0
- package/dist/styles/theme/index.js +4 -5
- package/dist/styles-CT_fyXBd.js +1808 -0
- package/dist/test/setup.js +3 -46
- package/dist/useLocale-DT-z_vQ6.js +16 -0
- package/dist/useVariants-DvhXfgJY.js +30 -0
- package/dist/utils/isAllEnglishString.js +1 -2
- package/dist/{presets-83ccb923.js → warning-C63HNL9U.js} +358 -356
- package/package.json +35 -35
- package/dist/CheckOutlined-52d9ac25.js +0 -29
- package/dist/ContextIsolator-b09b2c52.js +0 -20
- package/dist/EllipsisOutlined-60122660.js +0 -1115
- package/dist/InfoCircleFilled-c5f90c20.js +0 -16
- package/dist/RightOutlined-83515eb4.js +0 -16
- package/dist/compact-item-b8f85aa6.js +0 -75
- package/dist/index-0a886e53.js +0 -100
- package/dist/index-0b9ee239.js +0 -955
- package/dist/index-1a33c134.js +0 -1389
- package/dist/index-4003d75b.js +0 -3748
- package/dist/index-89035ea5.js +0 -3242
- package/dist/providers/ToastWrapper.d.ts +0 -7
- package/dist/providers/ToastWrapper.js +0 -56
- package/dist/setup-aaca7b6f.js +0 -21158
- package/dist/styles/theme/global-styles.d.ts +0 -1
- package/dist/styles/theme/global-styles.js +0 -36
- package/dist/useVariants-a0d64298.js +0 -30
- /package/dist/{presetColors-ccf8cb4c.js → presetColors-Cl8UP3Nw.js} +0 -0
- /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
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
function
|
|
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
|
|
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
|
|
20
|
-
|
|
19
|
+
function V(n, o) {
|
|
20
|
+
L(n, "[@ant-design/icons] ".concat(o));
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
return
|
|
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
|
|
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[
|
|
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__ */
|
|
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__ */
|
|
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));
|
|
48
48
|
}));
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return
|
|
50
|
+
function z(n) {
|
|
51
|
+
return U(n)[0];
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function E(n) {
|
|
54
54
|
return n ? Array.isArray(n) ? n : [n] : [];
|
|
55
55
|
}
|
|
56
|
-
var
|
|
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
|
-
`,
|
|
112
|
-
var e =
|
|
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
|
-
}`)),
|
|
116
|
-
var s = o.current,
|
|
117
|
-
|
|
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:
|
|
120
|
+
attachTo: f
|
|
121
121
|
});
|
|
122
122
|
}, []);
|
|
123
|
-
},
|
|
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
|
|
128
|
+
function nn(n) {
|
|
129
129
|
var o = n.primaryColor, e = n.secondaryColor;
|
|
130
|
-
|
|
130
|
+
C.primaryColor = o, C.secondaryColor = e || z(o), C.calculated = !!e;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
return l({},
|
|
132
|
+
function on() {
|
|
133
|
+
return l({}, C);
|
|
134
134
|
}
|
|
135
|
-
var
|
|
136
|
-
var e = o.icon, r = o.className, t = o.onClick, c = o.style, a = o.primaryColor, s = o.secondaryColor,
|
|
137
|
-
if (a && (
|
|
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 ||
|
|
140
|
-
}),
|
|
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(
|
|
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
|
-
},
|
|
155
|
-
ref:
|
|
154
|
+
}, f), {}, {
|
|
155
|
+
ref: y
|
|
156
156
|
}));
|
|
157
157
|
};
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
const w = y;
|
|
158
|
+
d.displayName = "IconReact";
|
|
159
|
+
d.getTwoToneColors = on;
|
|
160
|
+
d.setTwoToneColors = nn;
|
|
162
161
|
function $(n) {
|
|
163
|
-
var o =
|
|
164
|
-
return
|
|
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
|
|
170
|
-
var n =
|
|
168
|
+
function en() {
|
|
169
|
+
var n = d.getTwoToneColors();
|
|
171
170
|
return n.calculated ? [n.primaryColor, n.secondaryColor] : n.primaryColor;
|
|
172
171
|
}
|
|
173
|
-
var
|
|
174
|
-
$(
|
|
175
|
-
var
|
|
176
|
-
var e = n.className, r = n.icon, t = n.spin, c = n.rotate, a = n.tabIndex, s = n.onClick,
|
|
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
|
|
177
|
+
var P = c ? {
|
|
179
178
|
msTransform: "rotate(".concat(c, "deg)"),
|
|
180
179
|
transform: "rotate(".concat(c, "deg)")
|
|
181
|
-
} : void 0,
|
|
182
|
-
return /* @__PURE__ */
|
|
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
|
-
},
|
|
184
|
+
}, y, {
|
|
186
185
|
ref: o,
|
|
187
186
|
tabIndex: p,
|
|
188
187
|
onClick: s,
|
|
189
|
-
className:
|
|
190
|
-
}), /* @__PURE__ */
|
|
188
|
+
className: A
|
|
189
|
+
}), /* @__PURE__ */ m.createElement(d, {
|
|
191
190
|
icon: r,
|
|
192
|
-
primaryColor:
|
|
193
|
-
secondaryColor:
|
|
194
|
-
style:
|
|
191
|
+
primaryColor: O,
|
|
192
|
+
secondaryColor: D,
|
|
193
|
+
style: P
|
|
195
194
|
}));
|
|
196
195
|
});
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
const ln = g;
|
|
196
|
+
v.displayName = "AntdIcon";
|
|
197
|
+
v.getTwoToneColor = en;
|
|
198
|
+
v.setTwoToneColor = $;
|
|
201
199
|
export {
|
|
202
|
-
|
|
203
|
-
|
|
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
|
|
1
|
+
import { a as c } from "./warning-C63HNL9U.js";
|
|
2
2
|
import * as e from "react";
|
|
3
|
-
import {
|
|
4
|
-
var
|
|
5
|
-
|
|
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:
|
|
7
|
+
icon: o
|
|
10
8
|
}));
|
|
11
|
-
},
|
|
12
|
-
process.env.NODE_ENV !== "production" && (
|
|
13
|
-
const C = l;
|
|
9
|
+
}, t = /* @__PURE__ */ e.forwardRef(i);
|
|
10
|
+
process.env.NODE_ENV !== "production" && (t.displayName = "CloseCircleFilled");
|
|
14
11
|
export {
|
|
15
|
-
|
|
12
|
+
t as R
|
|
16
13
|
};
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as l } from "./warning-C63HNL9U.js";
|
|
2
2
|
import * as e from "react";
|
|
3
|
-
import {
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
},
|
|
12
|
-
process.env.NODE_ENV !== "production" && (
|
|
13
|
-
const u = c;
|
|
9
|
+
}, n = /* @__PURE__ */ e.forwardRef(r);
|
|
10
|
+
process.env.NODE_ENV !== "production" && (n.displayName = "CloseOutlined");
|
|
14
11
|
export {
|
|
15
|
-
|
|
12
|
+
n as R
|
|
16
13
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import { c as S } from "./
|
|
4
|
-
import { t as w } from "./isVisible-
|
|
5
|
-
import { S as O, g as N, m as P, C as D } from "./index-
|
|
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 =
|
|
8
|
-
return
|
|
9
|
-
}, M =
|
|
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
|
-
},
|
|
24
|
+
}, _ = (e) => {
|
|
25
25
|
const {
|
|
26
26
|
componentCls: t,
|
|
27
|
-
antCls:
|
|
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 > ${
|
|
57
|
+
[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]: {
|
|
58
58
|
display: "block"
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
|
-
},
|
|
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
|
-
},
|
|
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),
|
|
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 =
|
|
101
|
-
var
|
|
102
|
-
for (var
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
|
110
|
-
const
|
|
111
|
-
if (!
|
|
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:
|
|
112
|
+
compactDirection: c,
|
|
115
113
|
isFirstItem: d,
|
|
116
114
|
isLastItem: u
|
|
117
|
-
} =
|
|
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,
|
|
121
|
+
}, [e, t, n]);
|
|
124
122
|
return {
|
|
125
|
-
compactSize:
|
|
126
|
-
compactDirection:
|
|
127
|
-
compactItemClassnames:
|
|
123
|
+
compactSize: n == null ? void 0 : n.compactSize,
|
|
124
|
+
compactDirection: n == null ? void 0 : n.compactDirection,
|
|
125
|
+
compactItemClassnames: a
|
|
128
126
|
};
|
|
129
|
-
},
|
|
130
|
-
|
|
127
|
+
}, V = (e) => {
|
|
128
|
+
const {
|
|
131
129
|
children: t
|
|
132
130
|
} = e;
|
|
133
|
-
return /* @__PURE__ */
|
|
131
|
+
return /* @__PURE__ */ r.createElement(p.Provider, {
|
|
134
132
|
value: null
|
|
135
133
|
}, t);
|
|
136
|
-
},
|
|
137
|
-
|
|
134
|
+
}, F = (e) => {
|
|
135
|
+
const {
|
|
138
136
|
children: t
|
|
139
|
-
} = e,
|
|
140
|
-
return /* @__PURE__ */
|
|
141
|
-
value:
|
|
137
|
+
} = e, n = C(e, ["children"]);
|
|
138
|
+
return /* @__PURE__ */ r.createElement(p.Provider, {
|
|
139
|
+
value: r.useMemo(() => n, [n])
|
|
142
140
|
}, t);
|
|
143
|
-
},
|
|
141
|
+
}, X = (e) => {
|
|
144
142
|
const {
|
|
145
143
|
getPrefixCls: t,
|
|
146
|
-
direction:
|
|
147
|
-
} =
|
|
148
|
-
size:
|
|
149
|
-
direction:
|
|
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:
|
|
154
|
-
children:
|
|
155
|
-
} = e,
|
|
156
|
-
[`${s}-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`]:
|
|
159
|
-
}, l,
|
|
160
|
-
const h = (i == null ? void 0 : i.key) || `${s}-item-${
|
|
161
|
-
return /* @__PURE__ */
|
|
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:
|
|
165
|
-
isFirstItem:
|
|
166
|
-
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
|
-
}), [
|
|
169
|
-
return
|
|
170
|
-
className:
|
|
171
|
-
},
|
|
172
|
-
}
|
|
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
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
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
|
|
1
|
+
import { a as l } from "./warning-C63HNL9U.js";
|
|
2
2
|
import * as e from "react";
|
|
3
|
-
import {
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
},
|
|
12
|
-
process.env.NODE_ENV !== "production" && (
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
},
|
|
22
|
-
process.env.NODE_ENV !== "production" && (
|
|
23
|
-
const p = t;
|
|
16
|
+
}, d = /* @__PURE__ */ e.forwardRef(m);
|
|
17
|
+
process.env.NODE_ENV !== "production" && (d.displayName = "ExclamationCircleFilled");
|
|
24
18
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
n as R,
|
|
20
|
+
d as a
|
|
27
21
|
};
|