@gobolt/genesis 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/dist/AntdIcon-c395a1c4.js +204 -0
- package/dist/CheckOutlined-52d9ac25.js +29 -0
- package/dist/{CloseCircleFilled-ZIY-u-27.js → CloseCircleFilled-ddc51e7e.js} +11 -8
- package/dist/CloseOutlined-14b8bba1.js +16 -0
- package/dist/Compact-c39ed20d.js +179 -0
- package/dist/ContextIsolator-b09b2c52.js +20 -0
- package/dist/DownOutlined-64a4732a.js +206 -0
- package/dist/EllipsisOutlined-60122660.js +1115 -0
- package/dist/{ExclamationCircleFilled-BICVVQIg.js → ExclamationCircleFilled-23ef9812.js} +22 -16
- package/dist/InfoCircleFilled-c5f90c20.js +16 -0
- package/dist/Overflow-a570fa69.js +361 -0
- package/dist/RightOutlined-83515eb4.js +16 -0
- package/dist/SearchOutlined-a9014e08.js +16 -0
- package/dist/{TextArea-3MOYYuAQ.js → TextArea-20825221.js} +597 -582
- package/dist/{button-BNV2qdrP.js → button-fa1c119c.js} +287 -280
- package/dist/collapse-345bc884.js +20 -0
- package/dist/compact-item-b8f85aa6.js +75 -0
- package/dist/components/Badge/Badge.d.ts +6 -0
- package/dist/components/Badge/Badge.js +102 -0
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +13 -0
- package/dist/components/Badge/__tests__/Badge.test.js +72 -0
- package/dist/components/Badge/icons/ASN.d.ts +2 -0
- package/dist/components/Badge/icons/ASN.js +23 -0
- package/dist/components/Badge/icons/Appointment.d.ts +2 -0
- package/dist/components/Badge/icons/Appointment.js +23 -0
- package/dist/components/Badge/icons/Inventory.d.ts +2 -0
- package/dist/components/Badge/icons/Inventory.js +23 -0
- package/dist/components/Badge/icons/Parcel.d.ts +2 -0
- package/dist/components/Badge/icons/Parcel.js +23 -0
- package/dist/components/Badge/icons/Product.d.ts +2 -0
- package/dist/components/Badge/icons/Product.js +23 -0
- package/dist/components/Badge/icons/Route.d.ts +2 -0
- package/dist/components/Badge/icons/Route.js +23 -0
- package/dist/components/Badge/icons/Shipment.d.ts +2 -0
- package/dist/components/Badge/icons/Shipment.js +23 -0
- package/dist/components/Badge/icons/ShoppingCart.d.ts +2 -0
- package/dist/components/Badge/icons/ShoppingCart.js +23 -0
- package/dist/components/Badge/icons/System.d.ts +2 -0
- package/dist/components/Badge/icons/System.js +23 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge/index.js +23 -0
- package/dist/components/Badge/styles.d.ts +3 -0
- package/dist/components/Badge/styles.js +35 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +27 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +8 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.js +1 -0
- package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +10 -0
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +70 -0
- package/dist/components/Breadcrumb/index.d.ts +3 -0
- package/dist/components/Breadcrumb/index.js +27 -0
- package/dist/components/Breadcrumb/styles.d.ts +23 -0
- package/dist/components/Breadcrumb/styles.js +2457 -0
- package/dist/components/Button/Button.js +42 -0
- package/dist/components/Button/__tests__/Button.test.js +61 -0
- package/dist/components/Button/index.js +22 -0
- package/dist/components/{atoms/button → Button}/styles.js +30 -19
- package/dist/components/{atoms/checkbox → Checkbox}/Checkbox.d.ts +2 -1
- package/dist/components/Checkbox/Checkbox.js +70 -0
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +64 -0
- package/dist/components/Checkbox/index.js +49 -0
- package/dist/components/{atoms/checkbox → Checkbox}/styles.d.ts +1 -3
- package/dist/components/{atoms/checkbox → Checkbox}/styles.js +165 -157
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +72 -0
- package/dist/components/ErrorBoundaryFallback/index.js +51 -0
- package/dist/components/ErrorBoundaryFallback/styles.d.ts +3 -0
- package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.js +38 -34
- package/dist/components/{molecules/form → Form}/Form.d.ts +2 -4
- package/dist/components/Form/Form.js +49 -0
- package/dist/components/Form/__stories__/FormStory.js +130 -0
- package/dist/components/Form/index.js +48 -0
- package/dist/components/{atoms/input → Input}/Input.d.ts +1 -3
- package/dist/components/Input/Input.js +42 -0
- package/dist/components/{atoms/input → Input}/__stories__/Input.stories.d.ts +5 -1
- package/dist/components/Input/__tests__/Input.test.d.ts +1 -0
- package/dist/components/Input/__tests__/Input.test.js +69 -0
- package/dist/components/Input/index.js +31 -0
- package/dist/components/{atoms/input → Input}/styles.d.ts +2 -3
- package/dist/components/Input/styles.js +542 -0
- package/dist/components/Message/Message.d.ts +13 -0
- package/dist/components/Message/Message.js +105 -0
- package/dist/components/Message/__stories__/Message.stories.d.ts +15 -0
- package/dist/components/Message/__tests__/Message.test.d.ts +1 -0
- package/dist/components/Message/__tests__/Message.test.js +88 -0
- package/dist/components/Message/index.d.ts +2 -0
- package/dist/components/Message/index.js +50 -0
- package/dist/components/Message/styles.d.ts +5 -0
- package/dist/components/Message/styles.js +35 -0
- package/dist/components/Notification/Notification.d.ts +16 -0
- package/dist/components/Notification/Notification.js +1436 -0
- package/dist/components/Notification/__stories__/Notification.stories.d.ts +10 -0
- package/dist/components/Notification/__tests__/Notification.test.d.ts +1 -0
- package/dist/components/Notification/__tests__/Notification.test.js +76 -0
- package/dist/components/Notification/index.d.ts +2 -0
- package/dist/components/Notification/index.js +61 -0
- package/dist/components/Notification/styles.d.ts +6 -0
- package/dist/components/Notification/styles.js +49 -0
- package/dist/components/Radio/Radio.d.ts +14 -0
- package/dist/components/Radio/Radio.js +114 -0
- package/dist/components/Radio/RadioGroup.d.ts +12 -0
- package/dist/components/Radio/RadioGroup.js +86 -0
- package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +9 -0
- package/dist/components/Radio/__tests__/RadioGroup.test.d.ts +1 -0
- package/dist/components/Radio/__tests__/RadioGroup.test.js +85 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/index.js +58 -0
- package/dist/components/Radio/states/RadioChecked.d.ts +2 -0
- package/dist/components/Radio/states/RadioChecked.js +18 -0
- package/dist/components/Radio/states/RadioCheckedDisabled.d.ts +2 -0
- package/dist/components/Radio/states/RadioCheckedDisabled.js +18 -0
- package/dist/components/Radio/states/RadioCheckedFocussed.d.ts +2 -0
- package/dist/components/Radio/states/RadioCheckedFocussed.js +30 -0
- package/dist/components/Radio/states/RadioCheckedHover.d.ts +2 -0
- package/dist/components/Radio/states/RadioCheckedHover.js +18 -0
- package/dist/components/Radio/states/RadioUnchecked.d.ts +2 -0
- package/dist/components/Radio/states/RadioUnchecked.js +15 -0
- package/dist/components/Radio/states/RadioUncheckedDisabled.d.ts +2 -0
- package/dist/components/Radio/states/RadioUncheckedDisabled.js +15 -0
- package/dist/components/Radio/states/RadioUncheckedFocussed.d.ts +2 -0
- package/dist/components/Radio/states/RadioUncheckedFocussed.js +29 -0
- package/dist/components/Radio/states/RadioUncheckedHover.d.ts +2 -0
- package/dist/components/Radio/states/RadioUncheckedHover.js +18 -0
- package/dist/components/{atoms/select → Select}/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +48 -0
- package/dist/components/{atoms/select → Select}/__stories__/Select.stories.d.ts +3 -1
- package/dist/components/Select/__tests__/Select.test.d.ts +1 -0
- package/dist/components/Select/__tests__/Select.test.js +101 -0
- package/dist/components/Select/index.js +30 -0
- package/dist/components/{atoms/select → Select}/styles.d.ts +4 -1
- package/dist/components/Select/styles.js +3723 -0
- package/dist/components/Toast/Toast.d.ts +14 -0
- package/dist/components/Toast/Toast.js +48 -0
- package/dist/components/Toast/__stories__/Toast.stories.d.ts +15 -0
- package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -0
- package/dist/components/Toast/__tests__/Toast.test.js +63 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Toast/index.js +48 -0
- package/dist/components/Toast/styles.d.ts +5 -0
- package/dist/components/Toast/styles.js +39 -0
- package/dist/components/{atoms/typography → Typography}/Typography.d.ts +2 -1
- package/dist/components/Typography/Typography.js +48 -0
- package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.js +60 -0
- package/dist/components/Typography/index.js +48 -0
- package/dist/components/Typography/styles.d.ts +7 -0
- package/dist/components/Typography/styles.js +55 -0
- package/dist/components/index.d.ts +18 -14
- package/dist/components/index.js +70 -14
- package/dist/constants/index.d.ts +104 -0
- package/dist/constants/index.js +41 -7
- package/dist/{context-CZsFJmh6.js → context-3b8a39af.js} +547 -536
- package/dist/genesis/GenesisThemeBreakdown.js +69 -22
- package/dist/genesis/GenesisThemeDemo.d.ts +0 -2
- package/dist/genesis/GenesisThemeDemo.js +53 -4
- package/dist/genesis/styles.d.ts +2 -6
- package/dist/genesis/styles.js +1144 -2210
- package/dist/index-0a886e53.js +100 -0
- package/dist/{index-SAAXFt-P.js → index-0b9ee239.js} +347 -338
- package/dist/index-1a33c134.js +1389 -0
- package/dist/index-4003d75b.js +3748 -0
- package/dist/{index-D1v_7IIx.js → index-501fc13d.js} +369 -343
- package/dist/index-89035ea5.js +3242 -0
- package/dist/{index-BQO27mgE.js → index-8c8d2d0c.js} +123 -122
- package/dist/{index-C7kFNqp2.js → index-e2b72ca8.js} +107 -102
- package/dist/index.d.ts +1 -0
- package/dist/index.js +77 -18
- package/dist/{isVisible-CNQjrJPN.js → isVisible-729780f5.js} +110 -82
- package/dist/{magic-string.es-BkUFmFT4.js → magic-string.es-b7491176.js} +103 -56
- package/dist/{SearchOutlined-DuzJkIiQ.js → pickAttrs-00ba4687.js} +16 -26
- package/dist/presets-83ccb923.js +787 -0
- package/dist/providers/GenesisProvider.d.ts +5 -0
- package/dist/providers/GenesisProvider.js +59 -5
- package/dist/providers/ThemeProvider.d.ts +2 -1
- package/dist/providers/ThemeProvider.js +16 -11
- package/dist/providers/ToastProvider.d.ts +6 -0
- package/dist/providers/ToastProvider.js +49 -0
- package/dist/providers/ToastWrapper.d.ts +7 -0
- package/dist/providers/ToastWrapper.js +56 -0
- package/dist/providers/__stories__/GenesisProvider.stories.d.ts +6 -0
- package/dist/providers/index.d.ts +3 -2
- package/dist/providers/index.js +51 -4
- package/dist/setup-aaca7b6f.js +21158 -0
- package/dist/{styled-components.browser.esm-CZ1XM4o4.js → styled-components.browser.esm-02f500bc.js} +134 -72
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +54 -18
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +51 -15
- package/dist/styles/design-tokens/variables.d.ts +7 -7
- package/dist/styles/design-tokens/variables.js +48 -48
- package/dist/styles/global-styles.js +4 -3
- package/dist/styles/theme/genesis-theme.d.ts +3 -0
- package/dist/styles/theme/genesis-theme.js +402 -263
- package/dist/styles/theme/global-styles.js +4 -3
- package/dist/styles/theme/index.js +5 -4
- package/dist/test/setup.js +46 -2
- package/dist/useVariants-a0d64298.js +30 -0
- package/dist/utils/isAllEnglishString.js +2 -1
- package/package.json +34 -28
- package/dist/AntdIcon-Bsnbyy6g.js +0 -200
- package/dist/CheckOutlined-DAynWe12.js +0 -527
- package/dist/Compact-CJBo3f0u.js +0 -185
- package/dist/ContextIsolator-CGkdKtc3.js +0 -20
- package/dist/Form-Cylpi4M4.js +0 -1815
- package/dist/Overflow-CP1M4Z0s.js +0 -369
- package/dist/compact-item-DH13cl8A.js +0 -61
- package/dist/components/atoms/button/Button.js +0 -27
- package/dist/components/atoms/button/index.js +0 -4
- package/dist/components/atoms/checkbox/Checkbox.js +0 -13
- package/dist/components/atoms/checkbox/__tests__/Checkbox.test.js +0 -18
- package/dist/components/atoms/checkbox/index.js +0 -4
- package/dist/components/atoms/index.d.ts +0 -1
- package/dist/components/atoms/index.js +0 -3
- package/dist/components/atoms/input/Input.js +0 -12
- package/dist/components/atoms/input/__tests__/Input.test.js +0 -28
- package/dist/components/atoms/input/index.js +0 -4
- package/dist/components/atoms/input/styles.js +0 -415
- package/dist/components/atoms/select/Select.js +0 -24
- package/dist/components/atoms/select/__tests__/Select.test.js +0 -10735
- package/dist/components/atoms/select/index.js +0 -4
- package/dist/components/atoms/select/styles.js +0 -3868
- package/dist/components/atoms/typography/Typography.js +0 -44
- package/dist/components/atoms/typography/__tests__/Typography.test.js +0 -16
- package/dist/components/atoms/typography/index.js +0 -4
- package/dist/components/atoms/typography/styles.d.ts +0 -11
- package/dist/components/atoms/typography/styles.js +0 -28
- package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +0 -35
- package/dist/components/molecules/error-boundary-fallback/index.js +0 -4
- package/dist/components/molecules/error-boundary-fallback/styles.d.ts +0 -1
- package/dist/components/molecules/form/Form.js +0 -7
- package/dist/components/molecules/form/__stories__/FormStory.js +0 -90
- package/dist/components/molecules/form/index.js +0 -4
- package/dist/index-3MWkSVA1.js +0 -96
- package/dist/index-BPtFqhcp.js +0 -19110
- package/dist/index-BWys7dkb.js +0 -4462
- package/dist/index-VDH3iLaC.js +0 -884
- package/dist/setup-CMYVZCPF.js +0 -33883
- package/dist/useVariants-CEpw6Ww6.js +0 -29
- /package/dist/components/{atoms/checkbox/__tests__/Checkbox.test.d.ts → Badge/__tests__/Badge.test.d.ts} +0 -0
- /package/dist/components/{atoms/input/__tests__/Input.test.d.ts → Breadcrumb/__tests__/Breadcrumb.test.d.ts} +0 -0
- /package/dist/components/{atoms/button → Button}/Button.d.ts +0 -0
- /package/dist/components/{atoms/button → Button}/__stories__/Button.stories.d.ts +0 -0
- /package/dist/components/{atoms/select/__tests__/Select.test.d.ts → Button/__tests__/Button.test.d.ts} +0 -0
- /package/dist/components/{atoms/button → Button}/index.d.ts +0 -0
- /package/dist/components/{atoms/button → Button}/styles.d.ts +0 -0
- /package/dist/components/{atoms/checkbox → Checkbox}/__stories__/Checkbox.stories.d.ts +0 -0
- /package/dist/components/{atoms/typography/__tests__/Typography.test.d.ts → Checkbox/__tests__/Checkbox.test.d.ts} +0 -0
- /package/dist/components/{atoms/checkbox → Checkbox}/index.d.ts +0 -0
- /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/ErrorBoundaryFallback.d.ts +0 -0
- /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -0
- /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/index.d.ts +0 -0
- /package/dist/components/{molecules/form → Form}/__stories__/Form.stories.d.ts +0 -0
- /package/dist/components/{molecules/form → Form}/__stories__/FormStory.d.ts +0 -0
- /package/dist/components/{molecules/form → Form}/index.d.ts +0 -0
- /package/dist/components/{atoms/input → Input}/index.d.ts +0 -0
- /package/dist/components/{atoms/select → Select}/index.d.ts +0 -0
- /package/dist/components/{atoms/typography → Typography}/__stories__/Typography.stories.d.ts +0 -0
- /package/dist/components/{atoms/typography → Typography}/index.d.ts +0 -0
- /package/dist/{presetColors-Cl8UP3Nw.js → presetColors-ccf8cb4c.js} +0 -0
- /package/dist/{reactNode-sKPeiqPL.js → reactNode-f4391605.js} +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
|
|
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 @
|
|
38
|
+
pnpm install @gobolt/genesis
|
|
33
39
|
```
|
|
34
40
|
|
|
35
41
|
The `GenesisProvider` must included within the application as it supplies the Genesis Theme.
|
|
@@ -0,0 +1,204 @@
|
|
|
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) {
|
|
5
|
+
var o;
|
|
6
|
+
return n == null || (o = n.getRootNode) === null || o === void 0 ? void 0 : o.call(n);
|
|
7
|
+
}
|
|
8
|
+
function M(n) {
|
|
9
|
+
return z(n) instanceof ShadowRoot;
|
|
10
|
+
}
|
|
11
|
+
function Q(n) {
|
|
12
|
+
return M(n) ? z(n) : null;
|
|
13
|
+
}
|
|
14
|
+
function V(n) {
|
|
15
|
+
return n.replace(/-(.)/g, function(o, e) {
|
|
16
|
+
return e.toUpperCase();
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function X(n, o) {
|
|
20
|
+
U(n, "[@ant-design/icons] ".concat(o));
|
|
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");
|
|
24
|
+
}
|
|
25
|
+
function N() {
|
|
26
|
+
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
27
|
+
return Object.keys(n).reduce(function(o, e) {
|
|
28
|
+
var r = n[e];
|
|
29
|
+
switch (e) {
|
|
30
|
+
case "class":
|
|
31
|
+
o.className = r, delete o.class;
|
|
32
|
+
break;
|
|
33
|
+
default:
|
|
34
|
+
delete o[e], o[V(e)] = r;
|
|
35
|
+
}
|
|
36
|
+
return o;
|
|
37
|
+
}, {});
|
|
38
|
+
}
|
|
39
|
+
function T(n, o, e) {
|
|
40
|
+
return e ? /* @__PURE__ */ _.createElement(n.tag, l(l({
|
|
41
|
+
key: o
|
|
42
|
+
}, N(n.attrs)), e), (n.children || []).map(function(r, t) {
|
|
43
|
+
return T(r, "".concat(o, "-").concat(n.tag, "-").concat(t));
|
|
44
|
+
})) : /* @__PURE__ */ _.createElement(n.tag, l({
|
|
45
|
+
key: o
|
|
46
|
+
}, N(n.attrs)), (n.children || []).map(function(r, t) {
|
|
47
|
+
return T(r, "".concat(o, "-").concat(n.tag, "-").concat(t));
|
|
48
|
+
}));
|
|
49
|
+
}
|
|
50
|
+
function E(n) {
|
|
51
|
+
return W(n)[0];
|
|
52
|
+
}
|
|
53
|
+
function A(n) {
|
|
54
|
+
return n ? Array.isArray(n) ? n : [n] : [];
|
|
55
|
+
}
|
|
56
|
+
var Y = `
|
|
57
|
+
.anticon {
|
|
58
|
+
display: inline-flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
color: inherit;
|
|
61
|
+
font-style: normal;
|
|
62
|
+
line-height: 0;
|
|
63
|
+
text-align: center;
|
|
64
|
+
text-transform: none;
|
|
65
|
+
vertical-align: -0.125em;
|
|
66
|
+
text-rendering: optimizeLegibility;
|
|
67
|
+
-webkit-font-smoothing: antialiased;
|
|
68
|
+
-moz-osx-font-smoothing: grayscale;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.anticon > * {
|
|
72
|
+
line-height: 1;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.anticon svg {
|
|
76
|
+
display: inline-block;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.anticon::before {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.anticon .anticon-icon {
|
|
84
|
+
display: block;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.anticon[tabindex] {
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.anticon-spin::before,
|
|
92
|
+
.anticon-spin {
|
|
93
|
+
display: inline-block;
|
|
94
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
95
|
+
animation: loadingCircle 1s infinite linear;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@-webkit-keyframes loadingCircle {
|
|
99
|
+
100% {
|
|
100
|
+
-webkit-transform: rotate(360deg);
|
|
101
|
+
transform: rotate(360deg);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@keyframes loadingCircle {
|
|
106
|
+
100% {
|
|
107
|
+
-webkit-transform: rotate(360deg);
|
|
108
|
+
transform: rotate(360deg);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
`, Z = function(o) {
|
|
112
|
+
var e = J(I), r = e.csp, t = e.prefixCls, c = e.layer, a = Y;
|
|
113
|
+
t && (a = a.replace(/anticon/g, t)), c && (a = "@layer ".concat(c, ` {
|
|
114
|
+
`).concat(a, `
|
|
115
|
+
}`)), K(function() {
|
|
116
|
+
var s = o.current, u = Q(s);
|
|
117
|
+
q(a, "@ant-design-icons", {
|
|
118
|
+
prepend: !0,
|
|
119
|
+
csp: r,
|
|
120
|
+
attachTo: u
|
|
121
|
+
});
|
|
122
|
+
}, []);
|
|
123
|
+
}, nn = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], f = {
|
|
124
|
+
primaryColor: "#333",
|
|
125
|
+
secondaryColor: "#E6E6E6",
|
|
126
|
+
calculated: !1
|
|
127
|
+
};
|
|
128
|
+
function on(n) {
|
|
129
|
+
var o = n.primaryColor, e = n.secondaryColor;
|
|
130
|
+
f.primaryColor = o, f.secondaryColor = e || E(o), f.calculated = !!e;
|
|
131
|
+
}
|
|
132
|
+
function en() {
|
|
133
|
+
return l({}, f);
|
|
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 = {
|
|
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))
|
|
141
|
+
return null;
|
|
142
|
+
var i = e;
|
|
143
|
+
return i && typeof i.icon == "function" && (i = l(l({}, i), {}, {
|
|
144
|
+
icon: i.icon(m.primaryColor, m.secondaryColor)
|
|
145
|
+
})), T(i.icon, "svg-".concat(i.name), l(l({
|
|
146
|
+
className: r,
|
|
147
|
+
onClick: t,
|
|
148
|
+
style: c,
|
|
149
|
+
"data-icon": i.name,
|
|
150
|
+
width: "1em",
|
|
151
|
+
height: "1em",
|
|
152
|
+
fill: "currentColor",
|
|
153
|
+
"aria-hidden": "true"
|
|
154
|
+
}, u), {}, {
|
|
155
|
+
ref: C
|
|
156
|
+
}));
|
|
157
|
+
};
|
|
158
|
+
y.displayName = "IconReact";
|
|
159
|
+
y.getTwoToneColors = en;
|
|
160
|
+
y.setTwoToneColors = on;
|
|
161
|
+
const w = y;
|
|
162
|
+
function $(n) {
|
|
163
|
+
var o = A(n), e = S(o, 2), r = e[0], t = e[1];
|
|
164
|
+
return w.setTwoToneColors({
|
|
165
|
+
primaryColor: r,
|
|
166
|
+
secondaryColor: t
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
function rn() {
|
|
170
|
+
var n = w.getTwoToneColors();
|
|
171
|
+
return n.calculated ? [n.primaryColor, n.secondaryColor] : n.primaryColor;
|
|
172
|
+
}
|
|
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;
|
|
177
|
+
p === void 0 && s && (p = -1);
|
|
178
|
+
var B = c ? {
|
|
179
|
+
msTransform: "rotate(".concat(c, "deg)"),
|
|
180
|
+
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({
|
|
183
|
+
role: "img",
|
|
184
|
+
"aria-label": r.name
|
|
185
|
+
}, C, {
|
|
186
|
+
ref: o,
|
|
187
|
+
tabIndex: p,
|
|
188
|
+
onClick: s,
|
|
189
|
+
className: P
|
|
190
|
+
}), /* @__PURE__ */ d.createElement(w, {
|
|
191
|
+
icon: r,
|
|
192
|
+
primaryColor: D,
|
|
193
|
+
secondaryColor: L,
|
|
194
|
+
style: B
|
|
195
|
+
}));
|
|
196
|
+
});
|
|
197
|
+
g.displayName = "AntdIcon";
|
|
198
|
+
g.getTwoToneColor = rn;
|
|
199
|
+
g.setTwoToneColor = $;
|
|
200
|
+
const ln = g;
|
|
201
|
+
export {
|
|
202
|
+
ln as A,
|
|
203
|
+
Q as g
|
|
204
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
import { L as d, d as a } from "./index-4003d75b.js";
|
|
3
|
+
import { a as f } from "./presets-83ccb923.js";
|
|
4
|
+
import { A as v } from "./AntdIcon-c395a1c4.js";
|
|
5
|
+
const C = (c, n) => {
|
|
6
|
+
const e = t.useContext(d), r = t.useMemo(() => {
|
|
7
|
+
var o;
|
|
8
|
+
const l = n || a[c], u = (o = e == null ? void 0 : e[c]) !== null && o !== void 0 ? o : {};
|
|
9
|
+
return Object.assign(Object.assign({}, typeof l == "function" ? l() : l), u || {});
|
|
10
|
+
}, [c, n, e]), i = t.useMemo(() => {
|
|
11
|
+
const o = e == null ? void 0 : e.locale;
|
|
12
|
+
return e != null && e.exist && !o ? a.locale : o;
|
|
13
|
+
}, [e]);
|
|
14
|
+
return [r, i];
|
|
15
|
+
}, k = C;
|
|
16
|
+
var h = { 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" };
|
|
17
|
+
const m = h;
|
|
18
|
+
var O = function(n, e) {
|
|
19
|
+
return /* @__PURE__ */ t.createElement(v, f({}, n, {
|
|
20
|
+
ref: e,
|
|
21
|
+
icon: m
|
|
22
|
+
}));
|
|
23
|
+
}, s = /* @__PURE__ */ t.forwardRef(O);
|
|
24
|
+
process.env.NODE_ENV !== "production" && (s.displayName = "CheckOutlined");
|
|
25
|
+
const x = s;
|
|
26
|
+
export {
|
|
27
|
+
x as C,
|
|
28
|
+
k as u
|
|
29
|
+
};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as r } from "./presets-83ccb923.js";
|
|
2
2
|
import * as e from "react";
|
|
3
|
-
import {
|
|
4
|
-
var
|
|
5
|
-
|
|
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, {
|
|
6
8
|
ref: a,
|
|
7
|
-
icon:
|
|
9
|
+
icon: s
|
|
8
10
|
}));
|
|
9
|
-
},
|
|
10
|
-
process.env.NODE_ENV !== "production" && (
|
|
11
|
+
}, l = /* @__PURE__ */ e.forwardRef(t);
|
|
12
|
+
process.env.NODE_ENV !== "production" && (l.displayName = "CloseCircleFilled");
|
|
13
|
+
const C = l;
|
|
11
14
|
export {
|
|
12
|
-
|
|
15
|
+
C
|
|
13
16
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { a as o } from "./presets-83ccb923.js";
|
|
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
|
|
10
|
+
}));
|
|
11
|
+
}, c = /* @__PURE__ */ e.forwardRef(s);
|
|
12
|
+
process.env.NODE_ENV !== "production" && (c.displayName = "CloseOutlined");
|
|
13
|
+
const u = c;
|
|
14
|
+
export {
|
|
15
|
+
u as C
|
|
16
|
+
};
|
|
@@ -0,0 +1,179 @@
|
|
|
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";
|
|
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) => {
|
|
10
|
+
const {
|
|
11
|
+
componentCls: t
|
|
12
|
+
} = e;
|
|
13
|
+
return {
|
|
14
|
+
[t]: {
|
|
15
|
+
"&-block": {
|
|
16
|
+
display: "flex",
|
|
17
|
+
width: "100%"
|
|
18
|
+
},
|
|
19
|
+
"&-vertical": {
|
|
20
|
+
flexDirection: "column"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}, E = j, _ = (e) => {
|
|
25
|
+
const {
|
|
26
|
+
componentCls: t,
|
|
27
|
+
antCls: a
|
|
28
|
+
} = e;
|
|
29
|
+
return {
|
|
30
|
+
[t]: {
|
|
31
|
+
display: "inline-flex",
|
|
32
|
+
"&-rtl": {
|
|
33
|
+
direction: "rtl"
|
|
34
|
+
},
|
|
35
|
+
"&-vertical": {
|
|
36
|
+
flexDirection: "column"
|
|
37
|
+
},
|
|
38
|
+
"&-align": {
|
|
39
|
+
flexDirection: "column",
|
|
40
|
+
"&-center": {
|
|
41
|
+
alignItems: "center"
|
|
42
|
+
},
|
|
43
|
+
"&-start": {
|
|
44
|
+
alignItems: "flex-start"
|
|
45
|
+
},
|
|
46
|
+
"&-end": {
|
|
47
|
+
alignItems: "flex-end"
|
|
48
|
+
},
|
|
49
|
+
"&-baseline": {
|
|
50
|
+
alignItems: "baseline"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
[`${t}-item:empty`]: {
|
|
54
|
+
display: "none"
|
|
55
|
+
},
|
|
56
|
+
// https://github.com/ant-design/ant-design/issues/47875
|
|
57
|
+
[`${t}-item > ${a}-badge-not-a-wrapper:only-child`]: {
|
|
58
|
+
display: "block"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
}, F = (e) => {
|
|
63
|
+
const {
|
|
64
|
+
componentCls: t
|
|
65
|
+
} = e;
|
|
66
|
+
return {
|
|
67
|
+
[t]: {
|
|
68
|
+
"&-gap-row-small": {
|
|
69
|
+
rowGap: e.spaceGapSmallSize
|
|
70
|
+
},
|
|
71
|
+
"&-gap-row-middle": {
|
|
72
|
+
rowGap: e.spaceGapMiddleSize
|
|
73
|
+
},
|
|
74
|
+
"&-gap-row-large": {
|
|
75
|
+
rowGap: e.spaceGapLargeSize
|
|
76
|
+
},
|
|
77
|
+
"&-gap-col-small": {
|
|
78
|
+
columnGap: e.spaceGapSmallSize
|
|
79
|
+
},
|
|
80
|
+
"&-gap-col-middle": {
|
|
81
|
+
columnGap: e.spaceGapMiddleSize
|
|
82
|
+
},
|
|
83
|
+
"&-gap-col-large": {
|
|
84
|
+
columnGap: e.spaceGapLargeSize
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
}, T = N("Space", (e) => {
|
|
89
|
+
const t = P(e, {
|
|
90
|
+
spaceGapSmallSize: e.paddingXS,
|
|
91
|
+
spaceGapMiddleSize: e.padding,
|
|
92
|
+
spaceGapLargeSize: e.paddingLG
|
|
93
|
+
});
|
|
94
|
+
return [_(t), F(t), E(t)];
|
|
95
|
+
}, () => ({}), {
|
|
96
|
+
// Space component don't apply extra font style
|
|
97
|
+
// https://github.com/ant-design/ant-design/issues/40315
|
|
98
|
+
resetStyle: !1
|
|
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;
|
|
108
|
+
};
|
|
109
|
+
const m = /* @__PURE__ */ c.createContext(null), q = (e, t) => {
|
|
110
|
+
const a = c.useContext(m), o = c.useMemo(() => {
|
|
111
|
+
if (!a)
|
|
112
|
+
return "";
|
|
113
|
+
const {
|
|
114
|
+
compactDirection: n,
|
|
115
|
+
isFirstItem: d,
|
|
116
|
+
isLastItem: u
|
|
117
|
+
} = a, l = n === "vertical" ? "-vertical-" : "-";
|
|
118
|
+
return S(`${e}-compact${l}item`, {
|
|
119
|
+
[`${e}-compact${l}first-item`]: d,
|
|
120
|
+
[`${e}-compact${l}last-item`]: u,
|
|
121
|
+
[`${e}-compact${l}item-rtl`]: t === "rtl"
|
|
122
|
+
});
|
|
123
|
+
}, [e, t, a]);
|
|
124
|
+
return {
|
|
125
|
+
compactSize: a == null ? void 0 : a.compactSize,
|
|
126
|
+
compactDirection: a == null ? void 0 : a.compactDirection,
|
|
127
|
+
compactItemClassnames: o
|
|
128
|
+
};
|
|
129
|
+
}, B = (e) => {
|
|
130
|
+
let {
|
|
131
|
+
children: t
|
|
132
|
+
} = e;
|
|
133
|
+
return /* @__PURE__ */ c.createElement(m.Provider, {
|
|
134
|
+
value: null
|
|
135
|
+
}, t);
|
|
136
|
+
}, R = (e) => {
|
|
137
|
+
var {
|
|
138
|
+
children: t
|
|
139
|
+
} = e, a = C(e, ["children"]);
|
|
140
|
+
return /* @__PURE__ */ c.createElement(m.Provider, {
|
|
141
|
+
value: a
|
|
142
|
+
}, t);
|
|
143
|
+
}, k = (e) => {
|
|
144
|
+
const {
|
|
145
|
+
getPrefixCls: t,
|
|
146
|
+
direction: a
|
|
147
|
+
} = c.useContext(D), {
|
|
148
|
+
size: o,
|
|
149
|
+
direction: n,
|
|
150
|
+
block: d,
|
|
151
|
+
prefixCls: u,
|
|
152
|
+
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",
|
|
157
|
+
[`${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, {
|
|
162
|
+
key: h,
|
|
163
|
+
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))
|
|
167
|
+
}, 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;
|
|
173
|
+
export {
|
|
174
|
+
J as C,
|
|
175
|
+
B as N,
|
|
176
|
+
M as a,
|
|
177
|
+
q as b,
|
|
178
|
+
T as u
|
|
179
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import r from "react";
|
|
2
|
+
import { N as a } from "./context-3b8a39af.js";
|
|
3
|
+
import { N as s } from "./Compact-c39ed20d.js";
|
|
4
|
+
const m = (o) => {
|
|
5
|
+
const {
|
|
6
|
+
space: l,
|
|
7
|
+
form: n,
|
|
8
|
+
children: e
|
|
9
|
+
} = o;
|
|
10
|
+
if (e == null)
|
|
11
|
+
return null;
|
|
12
|
+
let t = e;
|
|
13
|
+
return n && (t = /* @__PURE__ */ r.createElement(a, {
|
|
14
|
+
override: !0,
|
|
15
|
+
status: !0
|
|
16
|
+
}, t)), l && (t = /* @__PURE__ */ r.createElement(s, null, t)), t;
|
|
17
|
+
}, i = m;
|
|
18
|
+
export {
|
|
19
|
+
i as C
|
|
20
|
+
};
|