@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
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as i } from "./presets-83ccb923.js";
|
|
2
2
|
import * as e from "react";
|
|
3
|
-
import {
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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,
|
|
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,
|
|
14
9
|
icon: s
|
|
15
10
|
}));
|
|
16
|
-
},
|
|
17
|
-
process.env.NODE_ENV !== "production" && (
|
|
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
|
|
20
|
+
}));
|
|
21
|
+
}, t = /* @__PURE__ */ e.forwardRef(C);
|
|
22
|
+
process.env.NODE_ENV !== "production" && (t.displayName = "ExclamationCircleFilled");
|
|
23
|
+
const p = t;
|
|
18
24
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
25
|
+
E as C,
|
|
26
|
+
p as E
|
|
21
27
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { a as l } from "./presets-83ccb923.js";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
import { A as c } 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 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "info-circle", theme: "filled" };
|
|
5
|
+
const a = n;
|
|
6
|
+
var t = function(o, i) {
|
|
7
|
+
return /* @__PURE__ */ e.createElement(c, l({}, o, {
|
|
8
|
+
ref: i,
|
|
9
|
+
icon: a
|
|
10
|
+
}));
|
|
11
|
+
}, r = /* @__PURE__ */ e.forwardRef(t);
|
|
12
|
+
process.env.NODE_ENV !== "production" && (r.displayName = "InfoCircleFilled");
|
|
13
|
+
const m = r;
|
|
14
|
+
export {
|
|
15
|
+
m as I
|
|
16
|
+
};
|
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
import { w as Ze, b as et, n as tt } from "./index-4003d75b.js";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import rt, { useState as se, useMemo as Ce, useCallback as Ie } from "react";
|
|
4
|
+
import { e as P, a as _, c as oe, _ as x, f as g } from "./presets-83ccb923.js";
|
|
5
|
+
import { K as S, i as nt } from "./index-1a33c134.js";
|
|
6
|
+
import { R as Ne } from "./index-8c8d2d0c.js";
|
|
7
|
+
import { unstable_batchedUpdates as at } from "react-dom";
|
|
8
|
+
const it = new S("antSlideUpIn", {
|
|
9
|
+
"0%": {
|
|
10
|
+
transform: "scaleY(0.8)",
|
|
11
|
+
transformOrigin: "0% 0%",
|
|
12
|
+
opacity: 0
|
|
13
|
+
},
|
|
14
|
+
"100%": {
|
|
15
|
+
transform: "scaleY(1)",
|
|
16
|
+
transformOrigin: "0% 0%",
|
|
17
|
+
opacity: 1
|
|
18
|
+
}
|
|
19
|
+
}), st = new S("antSlideUpOut", {
|
|
20
|
+
"0%": {
|
|
21
|
+
transform: "scaleY(1)",
|
|
22
|
+
transformOrigin: "0% 0%",
|
|
23
|
+
opacity: 1
|
|
24
|
+
},
|
|
25
|
+
"100%": {
|
|
26
|
+
transform: "scaleY(0.8)",
|
|
27
|
+
transformOrigin: "0% 0%",
|
|
28
|
+
opacity: 0
|
|
29
|
+
}
|
|
30
|
+
}), ot = new S("antSlideDownIn", {
|
|
31
|
+
"0%": {
|
|
32
|
+
transform: "scaleY(0.8)",
|
|
33
|
+
transformOrigin: "100% 100%",
|
|
34
|
+
opacity: 0
|
|
35
|
+
},
|
|
36
|
+
"100%": {
|
|
37
|
+
transform: "scaleY(1)",
|
|
38
|
+
transformOrigin: "100% 100%",
|
|
39
|
+
opacity: 1
|
|
40
|
+
}
|
|
41
|
+
}), ft = new S("antSlideDownOut", {
|
|
42
|
+
"0%": {
|
|
43
|
+
transform: "scaleY(1)",
|
|
44
|
+
transformOrigin: "100% 100%",
|
|
45
|
+
opacity: 1
|
|
46
|
+
},
|
|
47
|
+
"100%": {
|
|
48
|
+
transform: "scaleY(0.8)",
|
|
49
|
+
transformOrigin: "100% 100%",
|
|
50
|
+
opacity: 0
|
|
51
|
+
}
|
|
52
|
+
}), lt = new S("antSlideLeftIn", {
|
|
53
|
+
"0%": {
|
|
54
|
+
transform: "scaleX(0.8)",
|
|
55
|
+
transformOrigin: "0% 0%",
|
|
56
|
+
opacity: 0
|
|
57
|
+
},
|
|
58
|
+
"100%": {
|
|
59
|
+
transform: "scaleX(1)",
|
|
60
|
+
transformOrigin: "0% 0%",
|
|
61
|
+
opacity: 1
|
|
62
|
+
}
|
|
63
|
+
}), ut = new S("antSlideLeftOut", {
|
|
64
|
+
"0%": {
|
|
65
|
+
transform: "scaleX(1)",
|
|
66
|
+
transformOrigin: "0% 0%",
|
|
67
|
+
opacity: 1
|
|
68
|
+
},
|
|
69
|
+
"100%": {
|
|
70
|
+
transform: "scaleX(0.8)",
|
|
71
|
+
transformOrigin: "0% 0%",
|
|
72
|
+
opacity: 0
|
|
73
|
+
}
|
|
74
|
+
}), ct = new S("antSlideRightIn", {
|
|
75
|
+
"0%": {
|
|
76
|
+
transform: "scaleX(0.8)",
|
|
77
|
+
transformOrigin: "100% 0%",
|
|
78
|
+
opacity: 0
|
|
79
|
+
},
|
|
80
|
+
"100%": {
|
|
81
|
+
transform: "scaleX(1)",
|
|
82
|
+
transformOrigin: "100% 0%",
|
|
83
|
+
opacity: 1
|
|
84
|
+
}
|
|
85
|
+
}), mt = new S("antSlideRightOut", {
|
|
86
|
+
"0%": {
|
|
87
|
+
transform: "scaleX(1)",
|
|
88
|
+
transformOrigin: "100% 0%",
|
|
89
|
+
opacity: 1
|
|
90
|
+
},
|
|
91
|
+
"100%": {
|
|
92
|
+
transform: "scaleX(0.8)",
|
|
93
|
+
transformOrigin: "100% 0%",
|
|
94
|
+
opacity: 0
|
|
95
|
+
}
|
|
96
|
+
}), dt = {
|
|
97
|
+
"slide-up": {
|
|
98
|
+
inKeyframes: it,
|
|
99
|
+
outKeyframes: st
|
|
100
|
+
},
|
|
101
|
+
"slide-down": {
|
|
102
|
+
inKeyframes: ot,
|
|
103
|
+
outKeyframes: ft
|
|
104
|
+
},
|
|
105
|
+
"slide-left": {
|
|
106
|
+
inKeyframes: lt,
|
|
107
|
+
outKeyframes: ut
|
|
108
|
+
},
|
|
109
|
+
"slide-right": {
|
|
110
|
+
inKeyframes: ct,
|
|
111
|
+
outKeyframes: mt
|
|
112
|
+
}
|
|
113
|
+
}, Dt = (e, s) => {
|
|
114
|
+
const {
|
|
115
|
+
antCls: l
|
|
116
|
+
} = e, i = `${l}-${s}`, {
|
|
117
|
+
inKeyframes: f,
|
|
118
|
+
outKeyframes: n
|
|
119
|
+
} = dt[s];
|
|
120
|
+
return [nt(i, f, n, e.motionDurationMid), {
|
|
121
|
+
[`
|
|
122
|
+
${i}-enter,
|
|
123
|
+
${i}-appear
|
|
124
|
+
`]: {
|
|
125
|
+
transform: "scale(0)",
|
|
126
|
+
transformOrigin: "0% 0%",
|
|
127
|
+
opacity: 0,
|
|
128
|
+
animationTimingFunction: e.motionEaseOutQuint,
|
|
129
|
+
"&-prepare": {
|
|
130
|
+
transform: "scale(1)"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
[`${i}-leave`]: {
|
|
134
|
+
animationTimingFunction: e.motionEaseInQuint
|
|
135
|
+
}
|
|
136
|
+
}];
|
|
137
|
+
};
|
|
138
|
+
var vt = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"], b = void 0;
|
|
139
|
+
function yt(e, s) {
|
|
140
|
+
var l = e.prefixCls, i = e.invalidate, f = e.item, n = e.renderItem, u = e.responsive, p = e.responsiveDisabled, d = e.registerSize, C = e.itemKey, I = e.className, B = e.style, H = e.children, q = e.display, c = e.order, $ = e.component, U = $ === void 0 ? "div" : $, K = P(e, vt), v = u && !q;
|
|
141
|
+
function X(R) {
|
|
142
|
+
d(C, R);
|
|
143
|
+
}
|
|
144
|
+
a.useEffect(function() {
|
|
145
|
+
return function() {
|
|
146
|
+
X(null);
|
|
147
|
+
};
|
|
148
|
+
}, []);
|
|
149
|
+
var J = n && f !== b ? n(f, {
|
|
150
|
+
index: c
|
|
151
|
+
}) : H, N;
|
|
152
|
+
i || (N = {
|
|
153
|
+
opacity: v ? 0 : 1,
|
|
154
|
+
height: v ? 0 : b,
|
|
155
|
+
overflowY: v ? "hidden" : b,
|
|
156
|
+
order: u ? c : b,
|
|
157
|
+
pointerEvents: v ? "none" : b,
|
|
158
|
+
position: v ? "absolute" : b
|
|
159
|
+
});
|
|
160
|
+
var A = {};
|
|
161
|
+
v && (A["aria-hidden"] = !0);
|
|
162
|
+
var E = /* @__PURE__ */ a.createElement(U, _({
|
|
163
|
+
className: oe(!i && l, I),
|
|
164
|
+
style: x(x({}, N), B)
|
|
165
|
+
}, A, K, {
|
|
166
|
+
ref: s
|
|
167
|
+
}), J);
|
|
168
|
+
return u && (E = /* @__PURE__ */ a.createElement(Ne, {
|
|
169
|
+
onResize: function(Z) {
|
|
170
|
+
var Y = Z.offsetWidth;
|
|
171
|
+
X(Y);
|
|
172
|
+
},
|
|
173
|
+
disabled: p
|
|
174
|
+
}, E)), E;
|
|
175
|
+
}
|
|
176
|
+
var W = /* @__PURE__ */ a.forwardRef(yt);
|
|
177
|
+
W.displayName = "Item";
|
|
178
|
+
function gt(e) {
|
|
179
|
+
if (typeof MessageChannel > "u")
|
|
180
|
+
Ze(e);
|
|
181
|
+
else {
|
|
182
|
+
var s = new MessageChannel();
|
|
183
|
+
s.port1.onmessage = function() {
|
|
184
|
+
return e();
|
|
185
|
+
}, s.port2.postMessage(void 0);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
function pt() {
|
|
189
|
+
var e = a.useRef(null), s = function(i) {
|
|
190
|
+
e.current || (e.current = [], gt(function() {
|
|
191
|
+
at(function() {
|
|
192
|
+
e.current.forEach(function(f) {
|
|
193
|
+
f();
|
|
194
|
+
}), e.current = null;
|
|
195
|
+
});
|
|
196
|
+
})), e.current.push(i);
|
|
197
|
+
};
|
|
198
|
+
return s;
|
|
199
|
+
}
|
|
200
|
+
function M(e, s) {
|
|
201
|
+
var l = a.useState(s), i = g(l, 2), f = i[0], n = i[1], u = et(function(p) {
|
|
202
|
+
e(function() {
|
|
203
|
+
n(p);
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
return [f, u];
|
|
207
|
+
}
|
|
208
|
+
var G = /* @__PURE__ */ rt.createContext(null), Rt = ["component"], St = ["className"], Et = ["className"], ht = function(s, l) {
|
|
209
|
+
var i = a.useContext(G);
|
|
210
|
+
if (!i) {
|
|
211
|
+
var f = s.component, n = f === void 0 ? "div" : f, u = P(s, Rt);
|
|
212
|
+
return /* @__PURE__ */ a.createElement(n, _({}, u, {
|
|
213
|
+
ref: l
|
|
214
|
+
}));
|
|
215
|
+
}
|
|
216
|
+
var p = i.className, d = P(i, St), C = s.className, I = P(s, Et);
|
|
217
|
+
return /* @__PURE__ */ a.createElement(G.Provider, {
|
|
218
|
+
value: null
|
|
219
|
+
}, /* @__PURE__ */ a.createElement(W, _({
|
|
220
|
+
ref: l,
|
|
221
|
+
className: oe(p, C)
|
|
222
|
+
}, d, I)));
|
|
223
|
+
}, Oe = /* @__PURE__ */ a.forwardRef(ht);
|
|
224
|
+
Oe.displayName = "RawItem";
|
|
225
|
+
var wt = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"], be = "responsive", xe = "invalidate";
|
|
226
|
+
function _t(e) {
|
|
227
|
+
return "+ ".concat(e.length, " ...");
|
|
228
|
+
}
|
|
229
|
+
function Ct(e, s) {
|
|
230
|
+
var l = e.prefixCls, i = l === void 0 ? "rc-overflow" : l, f = e.data, n = f === void 0 ? [] : f, u = e.renderItem, p = e.renderRawItem, d = e.itemKey, C = e.itemWidth, I = C === void 0 ? 10 : C, B = e.ssr, H = e.style, q = e.className, c = e.maxCount, $ = e.renderRest, U = e.renderRawRest, K = e.suffix, v = e.component, X = v === void 0 ? "div" : v, J = e.itemComponent, N = e.onVisibleChange, A = P(e, wt), E = B === "full", R = pt(), Z = M(R, null), Y = g(Z, 2), F = Y[0], Ke = Y[1], h = F || 0, De = M(R, /* @__PURE__ */ new Map()), fe = g(De, 2), le = fe[0], ze = fe[1], Me = M(R, 0), ue = g(Me, 2), Pe = ue[0], We = ue[1], $e = M(R, 0), ce = g($e, 2), L = ce[0], Ue = ce[1], Xe = M(R, 0), me = g(Xe, 2), T = me[0], Ae = me[1], Ye = se(null), de = g(Ye, 2), ee = de[0], ve = de[1], Fe = se(null), ye = g(Fe, 2), V = ye[0], Le = ye[1], O = a.useMemo(function() {
|
|
231
|
+
return V === null && E ? Number.MAX_SAFE_INTEGER : V || 0;
|
|
232
|
+
}, [V, F]), Te = se(!1), ge = g(Te, 2), Ve = ge[0], ke = ge[1], te = "".concat(i, "-item"), pe = Math.max(Pe, L), re = c === be, y = n.length && re, Re = c === xe, je = y || typeof c == "number" && n.length > c, w = Ce(function() {
|
|
233
|
+
var t = n;
|
|
234
|
+
return y ? F === null && E ? t = n : t = n.slice(0, Math.min(n.length, h / I)) : typeof c == "number" && (t = n.slice(0, c)), t;
|
|
235
|
+
}, [n, I, F, c, y]), ne = Ce(function() {
|
|
236
|
+
return y ? n.slice(O + 1) : n.slice(w.length);
|
|
237
|
+
}, [n, w, y, O]), k = Ie(function(t, r) {
|
|
238
|
+
var o;
|
|
239
|
+
return typeof d == "function" ? d(t) : (o = d && (t == null ? void 0 : t[d])) !== null && o !== void 0 ? o : r;
|
|
240
|
+
}, [d]), Ge = Ie(u || function(t) {
|
|
241
|
+
return t;
|
|
242
|
+
}, [u]);
|
|
243
|
+
function j(t, r, o) {
|
|
244
|
+
V === t && (r === void 0 || r === ee) || (Le(t), o || (ke(t < n.length - 1), N == null || N(t)), r !== void 0 && ve(r));
|
|
245
|
+
}
|
|
246
|
+
function Qe(t, r) {
|
|
247
|
+
Ke(r.clientWidth);
|
|
248
|
+
}
|
|
249
|
+
function Se(t, r) {
|
|
250
|
+
ze(function(o) {
|
|
251
|
+
var m = new Map(o);
|
|
252
|
+
return r === null ? m.delete(t) : m.set(t, r), m;
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
function Be(t, r) {
|
|
256
|
+
Ue(r), We(L);
|
|
257
|
+
}
|
|
258
|
+
function He(t, r) {
|
|
259
|
+
Ae(r);
|
|
260
|
+
}
|
|
261
|
+
function ae(t) {
|
|
262
|
+
return le.get(k(w[t], t));
|
|
263
|
+
}
|
|
264
|
+
tt(function() {
|
|
265
|
+
if (h && typeof pe == "number" && w) {
|
|
266
|
+
var t = T, r = w.length, o = r - 1;
|
|
267
|
+
if (!r) {
|
|
268
|
+
j(0, null);
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
for (var m = 0; m < r; m += 1) {
|
|
272
|
+
var z = ae(m);
|
|
273
|
+
if (E && (z = z || 0), z === void 0) {
|
|
274
|
+
j(m - 1, void 0, !0);
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
if (t += z, // Only one means `totalWidth` is the final width
|
|
278
|
+
o === 0 && t <= h || // Last two width will be the final width
|
|
279
|
+
m === o - 1 && t + ae(o) <= h) {
|
|
280
|
+
j(o, null);
|
|
281
|
+
break;
|
|
282
|
+
} else if (t + pe > h) {
|
|
283
|
+
j(m - 1, t - z - T + L);
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
K && ae(0) + T > h && ve(null);
|
|
288
|
+
}
|
|
289
|
+
}, [h, le, L, T, k, w]);
|
|
290
|
+
var Ee = Ve && !!ne.length, he = {};
|
|
291
|
+
ee !== null && y && (he = {
|
|
292
|
+
position: "absolute",
|
|
293
|
+
left: ee,
|
|
294
|
+
top: 0
|
|
295
|
+
});
|
|
296
|
+
var D = {
|
|
297
|
+
prefixCls: te,
|
|
298
|
+
responsive: y,
|
|
299
|
+
component: J,
|
|
300
|
+
invalidate: Re
|
|
301
|
+
}, qe = p ? function(t, r) {
|
|
302
|
+
var o = k(t, r);
|
|
303
|
+
return /* @__PURE__ */ a.createElement(G.Provider, {
|
|
304
|
+
key: o,
|
|
305
|
+
value: x(x({}, D), {}, {
|
|
306
|
+
order: r,
|
|
307
|
+
item: t,
|
|
308
|
+
itemKey: o,
|
|
309
|
+
registerSize: Se,
|
|
310
|
+
display: r <= O
|
|
311
|
+
})
|
|
312
|
+
}, p(t, r));
|
|
313
|
+
} : function(t, r) {
|
|
314
|
+
var o = k(t, r);
|
|
315
|
+
return /* @__PURE__ */ a.createElement(W, _({}, D, {
|
|
316
|
+
order: r,
|
|
317
|
+
key: o,
|
|
318
|
+
item: t,
|
|
319
|
+
renderItem: Ge,
|
|
320
|
+
itemKey: o,
|
|
321
|
+
registerSize: Se,
|
|
322
|
+
display: r <= O
|
|
323
|
+
}));
|
|
324
|
+
}, we = {
|
|
325
|
+
order: Ee ? O : Number.MAX_SAFE_INTEGER,
|
|
326
|
+
className: "".concat(te, "-rest"),
|
|
327
|
+
registerSize: Be,
|
|
328
|
+
display: Ee
|
|
329
|
+
}, ie = $ || _t, Je = U ? /* @__PURE__ */ a.createElement(G.Provider, {
|
|
330
|
+
value: x(x({}, D), we)
|
|
331
|
+
}, U(ne)) : /* @__PURE__ */ a.createElement(W, _({}, D, we), typeof ie == "function" ? ie(ne) : ie), _e = /* @__PURE__ */ a.createElement(X, _({
|
|
332
|
+
className: oe(!Re && i, q),
|
|
333
|
+
style: H,
|
|
334
|
+
ref: s
|
|
335
|
+
}, A), w.map(qe), je ? Je : null, K && /* @__PURE__ */ a.createElement(W, _({}, D, {
|
|
336
|
+
responsive: re,
|
|
337
|
+
responsiveDisabled: !y,
|
|
338
|
+
order: O,
|
|
339
|
+
className: "".concat(te, "-suffix"),
|
|
340
|
+
registerSize: He,
|
|
341
|
+
display: !0,
|
|
342
|
+
style: he
|
|
343
|
+
}), K));
|
|
344
|
+
return re ? /* @__PURE__ */ a.createElement(Ne, {
|
|
345
|
+
onResize: Qe,
|
|
346
|
+
disabled: !y
|
|
347
|
+
}, _e) : _e;
|
|
348
|
+
}
|
|
349
|
+
var Q = /* @__PURE__ */ a.forwardRef(Ct);
|
|
350
|
+
Q.displayName = "Overflow";
|
|
351
|
+
Q.Item = Oe;
|
|
352
|
+
Q.RESPONSIVE = be;
|
|
353
|
+
Q.INVALIDATE = xe;
|
|
354
|
+
export {
|
|
355
|
+
Q as F,
|
|
356
|
+
ot as a,
|
|
357
|
+
st as b,
|
|
358
|
+
ft as c,
|
|
359
|
+
Dt as i,
|
|
360
|
+
it as s
|
|
361
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { a } from "./presets-83ccb923.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { A as r } from "./AntdIcon-c395a1c4.js";
|
|
4
|
+
var o = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" };
|
|
5
|
+
const c = o;
|
|
6
|
+
var s = function(i, n) {
|
|
7
|
+
return /* @__PURE__ */ t.createElement(r, a({}, i, {
|
|
8
|
+
ref: n,
|
|
9
|
+
icon: c
|
|
10
|
+
}));
|
|
11
|
+
}, e = /* @__PURE__ */ t.forwardRef(s);
|
|
12
|
+
process.env.NODE_ENV !== "production" && (e.displayName = "RightOutlined");
|
|
13
|
+
const g = e;
|
|
14
|
+
export {
|
|
15
|
+
g as R
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { a as c } from "./presets-83ccb923.js";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
import { A as n } from "./AntdIcon-c395a1c4.js";
|
|
4
|
+
var o = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, name: "search", theme: "outlined" };
|
|
5
|
+
const s = o;
|
|
6
|
+
var i = function(t, r) {
|
|
7
|
+
return /* @__PURE__ */ e.createElement(n, c({}, t, {
|
|
8
|
+
ref: r,
|
|
9
|
+
icon: s
|
|
10
|
+
}));
|
|
11
|
+
}, a = /* @__PURE__ */ e.forwardRef(i);
|
|
12
|
+
process.env.NODE_ENV !== "production" && (a.displayName = "SearchOutlined");
|
|
13
|
+
const u = a;
|
|
14
|
+
export {
|
|
15
|
+
u as S
|
|
16
|
+
};
|