@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,89 +1,92 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { _ as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
2
|
+
import $, { useContext as Z, useRef as ee } from "react";
|
|
3
|
+
import { _ as te, d as ne, c as D } from "./presets-83ccb923.js";
|
|
4
|
+
import { _ as k, a as E, i as oe } from "./isVisible-729780f5.js";
|
|
5
|
+
import { x as re, y as se, z as ae, w as g, A as ie, q as A, C as I, B as ue, b as ce, s as le, j as de } from "./index-4003d75b.js";
|
|
6
|
+
import { c as fe } from "./reactNode-f4391605.js";
|
|
7
|
+
import * as U from "react-dom";
|
|
8
|
+
var _ = te({}, U), pe = _.version, w = _.render, me = _.unmountComponentAtNode, C;
|
|
8
9
|
try {
|
|
9
|
-
var
|
|
10
|
-
|
|
10
|
+
var ve = Number((pe || "").split(".")[0]);
|
|
11
|
+
ve >= 18 && (C = _.createRoot);
|
|
11
12
|
} catch {
|
|
12
13
|
}
|
|
13
|
-
function
|
|
14
|
+
function L(e) {
|
|
14
15
|
var t = _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
15
|
-
t &&
|
|
16
|
+
t && ne(t) === "object" && (t.usingClientEntryPoint = e);
|
|
16
17
|
}
|
|
17
18
|
var y = "__rc_react_root__";
|
|
18
|
-
function ve(e, t) {
|
|
19
|
-
k(!0);
|
|
20
|
-
var n = t[y] || C(t);
|
|
21
|
-
k(!1), n.render(e), t[y] = n;
|
|
22
|
-
}
|
|
23
19
|
function be(e, t) {
|
|
24
|
-
|
|
20
|
+
L(!0);
|
|
21
|
+
var n = t[y] || C(t);
|
|
22
|
+
L(!1), n.render(e), t[y] = n;
|
|
25
23
|
}
|
|
26
24
|
function Re(e, t) {
|
|
25
|
+
w == null || w(e, t);
|
|
26
|
+
}
|
|
27
|
+
function _e(e, t) {
|
|
27
28
|
if (C) {
|
|
28
|
-
|
|
29
|
+
be(e, t);
|
|
29
30
|
return;
|
|
30
31
|
}
|
|
31
|
-
|
|
32
|
+
Re(e, t);
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
+
function he(e) {
|
|
34
35
|
return W.apply(this, arguments);
|
|
35
36
|
}
|
|
36
37
|
function W() {
|
|
37
|
-
return W =
|
|
38
|
-
return
|
|
39
|
-
for (; ; )
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
38
|
+
return W = k(/* @__PURE__ */ E().mark(function e(t) {
|
|
39
|
+
return E().wrap(function(o) {
|
|
40
|
+
for (; ; )
|
|
41
|
+
switch (o.prev = o.next) {
|
|
42
|
+
case 0:
|
|
43
|
+
return o.abrupt("return", Promise.resolve().then(function() {
|
|
44
|
+
var s;
|
|
45
|
+
(s = t[y]) === null || s === void 0 || s.unmount(), delete t[y];
|
|
46
|
+
}));
|
|
47
|
+
case 1:
|
|
48
|
+
case "end":
|
|
49
|
+
return o.stop();
|
|
50
|
+
}
|
|
49
51
|
}, e);
|
|
50
52
|
})), W.apply(this, arguments);
|
|
51
53
|
}
|
|
52
|
-
function he(e) {
|
|
53
|
-
pe(e);
|
|
54
|
-
}
|
|
55
54
|
function Ee(e) {
|
|
55
|
+
me(e);
|
|
56
|
+
}
|
|
57
|
+
function ge(e) {
|
|
56
58
|
return O.apply(this, arguments);
|
|
57
59
|
}
|
|
58
60
|
function O() {
|
|
59
|
-
return O =
|
|
60
|
-
return
|
|
61
|
-
for (; ; )
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
61
|
+
return O = k(/* @__PURE__ */ E().mark(function e(t) {
|
|
62
|
+
return E().wrap(function(o) {
|
|
63
|
+
for (; ; )
|
|
64
|
+
switch (o.prev = o.next) {
|
|
65
|
+
case 0:
|
|
66
|
+
if (C === void 0) {
|
|
67
|
+
o.next = 2;
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
return o.abrupt("return", he(t));
|
|
71
|
+
case 2:
|
|
72
|
+
Ee(t);
|
|
73
|
+
case 3:
|
|
74
|
+
case "end":
|
|
75
|
+
return o.stop();
|
|
76
|
+
}
|
|
74
77
|
}, e);
|
|
75
78
|
})), O.apply(this, arguments);
|
|
76
79
|
}
|
|
77
|
-
const
|
|
80
|
+
const ye = (e, t) => {
|
|
78
81
|
if (process.env.NODE_ENV !== "production") {
|
|
79
82
|
const n = parseInt(r.version.split(".")[0], 10), o = Object.keys(U);
|
|
80
|
-
process.env.NODE_ENV !== "production" &&
|
|
83
|
+
process.env.NODE_ENV !== "production" && re(n < 19 || o.includes("createRoot"), "compatible", "antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.");
|
|
81
84
|
}
|
|
82
|
-
return
|
|
85
|
+
return _e(e, t), () => ge(t);
|
|
83
86
|
};
|
|
84
|
-
let
|
|
85
|
-
function
|
|
86
|
-
return
|
|
87
|
+
let Ce = ye;
|
|
88
|
+
function we() {
|
|
89
|
+
return Ce;
|
|
87
90
|
}
|
|
88
91
|
const Se = (e) => {
|
|
89
92
|
const {
|
|
@@ -112,97 +115,97 @@ const Se = (e) => {
|
|
|
112
115
|
}
|
|
113
116
|
}
|
|
114
117
|
};
|
|
115
|
-
},
|
|
116
|
-
function
|
|
118
|
+
}, Ne = se("Wave", (e) => [Se(e)]), j = `${ae}-wave-target`;
|
|
119
|
+
function S(e) {
|
|
117
120
|
return e && e !== "#fff" && e !== "#ffffff" && e !== "rgb(255, 255, 255)" && e !== "rgba(255, 255, 255, 1)" && !/rgba\((?:\d*, ){3}0\)/.test(e) && // any transparent rgba color
|
|
118
121
|
e !== "transparent";
|
|
119
122
|
}
|
|
120
|
-
function
|
|
123
|
+
function We(e) {
|
|
121
124
|
const {
|
|
122
125
|
borderTopColor: t,
|
|
123
126
|
borderColor: n,
|
|
124
127
|
backgroundColor: o
|
|
125
128
|
} = getComputedStyle(e);
|
|
126
|
-
return
|
|
129
|
+
return S(t) ? t : S(n) ? n : S(o) ? o : null;
|
|
127
130
|
}
|
|
128
131
|
function N(e) {
|
|
129
132
|
return Number.isNaN(e) ? 0 : e;
|
|
130
133
|
}
|
|
131
|
-
const
|
|
134
|
+
const Oe = (e) => {
|
|
132
135
|
const {
|
|
133
136
|
className: t,
|
|
134
137
|
target: n,
|
|
135
138
|
component: o,
|
|
136
139
|
registerUnmount: s
|
|
137
|
-
} = e,
|
|
140
|
+
} = e, u = r.useRef(null), c = r.useRef(null);
|
|
138
141
|
r.useEffect(() => {
|
|
139
142
|
c.current = s();
|
|
140
143
|
}, []);
|
|
141
|
-
const [d, h] = r.useState(null), [f, a] = r.useState([]), [m, v] = r.useState(0), [
|
|
144
|
+
const [d, h] = r.useState(null), [f, a] = r.useState([]), [m, v] = r.useState(0), [V, P] = r.useState(0), [q, z] = r.useState(0), [F, M] = r.useState(0), [H, K] = r.useState(!1), T = {
|
|
142
145
|
left: m,
|
|
143
|
-
top:
|
|
144
|
-
width:
|
|
145
|
-
height:
|
|
146
|
+
top: V,
|
|
147
|
+
width: q,
|
|
148
|
+
height: F,
|
|
146
149
|
borderRadius: f.map((l) => `${l}px`).join(" ")
|
|
147
150
|
};
|
|
148
151
|
d && (T["--wave-color"] = d);
|
|
149
152
|
function x() {
|
|
150
153
|
const l = getComputedStyle(n);
|
|
151
|
-
h(
|
|
152
|
-
const
|
|
154
|
+
h(We(n));
|
|
155
|
+
const i = l.position === "static", {
|
|
153
156
|
borderLeftWidth: p,
|
|
154
157
|
borderTopWidth: b
|
|
155
158
|
} = l;
|
|
156
|
-
v(
|
|
159
|
+
v(i ? n.offsetLeft : N(-parseFloat(p))), P(i ? n.offsetTop : N(-parseFloat(b))), z(n.offsetWidth), M(n.offsetHeight);
|
|
157
160
|
const {
|
|
158
161
|
borderTopLeftRadius: R,
|
|
159
|
-
borderTopRightRadius:
|
|
160
|
-
borderBottomLeftRadius:
|
|
161
|
-
borderBottomRightRadius:
|
|
162
|
+
borderTopRightRadius: Y,
|
|
163
|
+
borderBottomLeftRadius: J,
|
|
164
|
+
borderBottomRightRadius: Q
|
|
162
165
|
} = l;
|
|
163
|
-
a([R,
|
|
166
|
+
a([R, Y, Q, J].map((X) => N(parseFloat(X))));
|
|
164
167
|
}
|
|
165
168
|
if (r.useEffect(() => {
|
|
166
169
|
if (n) {
|
|
167
|
-
const l =
|
|
170
|
+
const l = g(() => {
|
|
168
171
|
x(), K(!0);
|
|
169
172
|
});
|
|
170
|
-
let
|
|
171
|
-
return typeof ResizeObserver < "u" && (
|
|
172
|
-
|
|
173
|
+
let i;
|
|
174
|
+
return typeof ResizeObserver < "u" && (i = new ResizeObserver(x), i.observe(n)), () => {
|
|
175
|
+
g.cancel(l), i == null || i.disconnect();
|
|
173
176
|
};
|
|
174
177
|
}
|
|
175
|
-
}, []), !
|
|
178
|
+
}, []), !H)
|
|
176
179
|
return null;
|
|
177
180
|
const G = (o === "Checkbox" || o === "Radio") && (n == null ? void 0 : n.classList.contains(j));
|
|
178
|
-
return /* @__PURE__ */ r.createElement(
|
|
181
|
+
return /* @__PURE__ */ r.createElement(ie, {
|
|
179
182
|
visible: !0,
|
|
180
183
|
motionAppear: !0,
|
|
181
184
|
motionName: "wave-motion",
|
|
182
185
|
motionDeadline: 5e3,
|
|
183
|
-
onAppearEnd: (l,
|
|
186
|
+
onAppearEnd: (l, i) => {
|
|
184
187
|
var p, b;
|
|
185
|
-
if (
|
|
186
|
-
const R = (p =
|
|
188
|
+
if (i.deadline || i.propertyName === "opacity") {
|
|
189
|
+
const R = (p = u.current) === null || p === void 0 ? void 0 : p.parentElement;
|
|
187
190
|
(b = c.current) === null || b === void 0 || b.call(c).then(() => {
|
|
188
191
|
R == null || R.remove();
|
|
189
192
|
});
|
|
190
193
|
}
|
|
191
194
|
return !1;
|
|
192
195
|
}
|
|
193
|
-
}, (l,
|
|
196
|
+
}, (l, i) => {
|
|
194
197
|
let {
|
|
195
198
|
className: p
|
|
196
199
|
} = l;
|
|
197
200
|
return /* @__PURE__ */ r.createElement("div", {
|
|
198
|
-
ref:
|
|
199
|
-
className:
|
|
201
|
+
ref: A(u, i),
|
|
202
|
+
className: D(t, p, {
|
|
200
203
|
"wave-quick": G
|
|
201
204
|
}),
|
|
202
205
|
style: T
|
|
203
206
|
});
|
|
204
207
|
});
|
|
205
|
-
},
|
|
208
|
+
}, Te = (e, t) => {
|
|
206
209
|
var n;
|
|
207
210
|
const {
|
|
208
211
|
component: o
|
|
@@ -211,66 +214,68 @@ const We = (e) => {
|
|
|
211
214
|
return;
|
|
212
215
|
const s = document.createElement("div");
|
|
213
216
|
s.style.position = "absolute", s.style.left = "0px", s.style.top = "0px", e == null || e.insertBefore(s, e == null ? void 0 : e.firstChild);
|
|
214
|
-
const
|
|
217
|
+
const u = we();
|
|
215
218
|
let c = null;
|
|
216
219
|
function d() {
|
|
217
220
|
return c;
|
|
218
221
|
}
|
|
219
|
-
c =
|
|
222
|
+
c = u(/* @__PURE__ */ r.createElement(Oe, Object.assign({}, t, {
|
|
220
223
|
target: e,
|
|
221
224
|
registerUnmount: d
|
|
222
225
|
})), s);
|
|
223
|
-
}, Te = (e, t, n) => {
|
|
226
|
+
}, xe = Te, $e = (e, t, n) => {
|
|
224
227
|
const {
|
|
225
228
|
wave: o
|
|
226
|
-
} = r.useContext(I), [, s,
|
|
229
|
+
} = r.useContext(I), [, s, u] = ue(), c = ce((f) => {
|
|
227
230
|
const a = e.current;
|
|
228
231
|
if (o != null && o.disabled || !a)
|
|
229
232
|
return;
|
|
230
233
|
const m = a.querySelector(`.${j}`) || a, {
|
|
231
234
|
showEffect: v
|
|
232
235
|
} = o || {};
|
|
233
|
-
(v ||
|
|
236
|
+
(v || xe)(m, {
|
|
234
237
|
className: t,
|
|
235
238
|
token: s,
|
|
236
239
|
component: n,
|
|
237
240
|
event: f,
|
|
238
|
-
hashId:
|
|
241
|
+
hashId: u
|
|
239
242
|
});
|
|
240
243
|
}), d = r.useRef(null);
|
|
241
244
|
return (f) => {
|
|
242
|
-
|
|
245
|
+
g.cancel(d.current), d.current = g(() => {
|
|
243
246
|
c(f);
|
|
244
247
|
});
|
|
245
248
|
};
|
|
246
|
-
},
|
|
249
|
+
}, Le = $e, B = (e) => {
|
|
247
250
|
const {
|
|
248
251
|
children: t,
|
|
249
252
|
disabled: n,
|
|
250
253
|
component: o
|
|
251
254
|
} = e, {
|
|
252
255
|
getPrefixCls: s
|
|
253
|
-
} =
|
|
254
|
-
if (
|
|
255
|
-
const a =
|
|
256
|
+
} = Z(I), u = ee(null), c = s("wave"), [, d] = Ne(c), h = Le(u, D(c, d), o);
|
|
257
|
+
if ($.useEffect(() => {
|
|
258
|
+
const a = u.current;
|
|
256
259
|
if (!a || a.nodeType !== 1 || n)
|
|
257
260
|
return;
|
|
258
261
|
const m = (v) => {
|
|
259
|
-
!
|
|
262
|
+
!oe(v.target) || // No need wave
|
|
260
263
|
!a.getAttribute || a.getAttribute("disabled") || a.disabled || a.className.includes("disabled") || a.className.includes("-leave") || h(v);
|
|
261
264
|
};
|
|
262
265
|
return a.addEventListener("click", m, !0), () => {
|
|
263
266
|
a.removeEventListener("click", m, !0);
|
|
264
267
|
};
|
|
265
|
-
}, [n]), !/* @__PURE__ */
|
|
268
|
+
}, [n]), !/* @__PURE__ */ $.isValidElement(t))
|
|
266
269
|
return t ?? null;
|
|
267
|
-
const f =
|
|
268
|
-
return
|
|
270
|
+
const f = le(t) ? A(de(t), u) : u;
|
|
271
|
+
return fe(t, {
|
|
269
272
|
ref: f
|
|
270
273
|
});
|
|
271
274
|
};
|
|
272
|
-
process.env.NODE_ENV !== "production" && (
|
|
275
|
+
process.env.NODE_ENV !== "production" && (B.displayName = "Wave");
|
|
276
|
+
const je = B;
|
|
273
277
|
export {
|
|
274
278
|
j as T,
|
|
275
|
-
|
|
279
|
+
je as W,
|
|
280
|
+
we as g
|
|
276
281
|
};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,20 +1,79 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import {
|
|
5
|
-
import { default as
|
|
6
|
-
import {
|
|
7
|
-
import { default as
|
|
8
|
-
import { GenesisProvider as
|
|
9
|
-
import { useBreakpoint as
|
|
1
|
+
import { default as oo } from "./components/Button/Button.js";
|
|
2
|
+
import { default as to } from "./components/Checkbox/Checkbox.js";
|
|
3
|
+
import { default as mo } from "./components/ErrorBoundaryFallback/ErrorBoundaryFallback.js";
|
|
4
|
+
import { F as eo, a as ao, T as so, u as fo } from "./index-89035ea5.js";
|
|
5
|
+
import { default as xo } from "./components/Input/Input.js";
|
|
6
|
+
import { default as no } from "./components/Select/Select.js";
|
|
7
|
+
import { default as Bo } from "./components/Badge/Badge.js";
|
|
8
|
+
import { GenesisProvider as co, useGenesis as ho } from "./providers/GenesisProvider.js";
|
|
9
|
+
import { useBreakpoint as yo, useGenesisTheme as Eo } from "./providers/ThemeProvider.js";
|
|
10
|
+
import { default as So } from "./constants/index.js";
|
|
11
|
+
import "react/jsx-runtime";
|
|
12
|
+
import "./components/Button/styles.js";
|
|
13
|
+
import "./styled-components.browser.esm-02f500bc.js";
|
|
14
|
+
import "react";
|
|
15
|
+
import "./button-fa1c119c.js";
|
|
16
|
+
import "./presets-83ccb923.js";
|
|
17
|
+
import "./isVisible-729780f5.js";
|
|
18
|
+
import "./index-4003d75b.js";
|
|
19
|
+
import "react-dom";
|
|
20
|
+
import "./index-e2b72ca8.js";
|
|
21
|
+
import "./reactNode-f4391605.js";
|
|
22
|
+
import "./Compact-c39ed20d.js";
|
|
23
|
+
import "./presetColors-ccf8cb4c.js";
|
|
24
|
+
import "./compact-item-b8f85aa6.js";
|
|
25
|
+
import "./AntdIcon-c395a1c4.js";
|
|
26
|
+
import "./components/Checkbox/styles.js";
|
|
27
|
+
import "./context-3b8a39af.js";
|
|
28
|
+
import "./components/ErrorBoundaryFallback/styles.js";
|
|
29
|
+
import "./ExclamationCircleFilled-23ef9812.js";
|
|
30
|
+
import "./CloseCircleFilled-ddc51e7e.js";
|
|
31
|
+
import "./components/Input/styles.js";
|
|
32
|
+
import "./TextArea-20825221.js";
|
|
33
|
+
import "./index-8c8d2d0c.js";
|
|
34
|
+
import "./useVariants-a0d64298.js";
|
|
35
|
+
import "./ContextIsolator-b09b2c52.js";
|
|
36
|
+
import "./pickAttrs-00ba4687.js";
|
|
37
|
+
import "./SearchOutlined-a9014e08.js";
|
|
38
|
+
import "./components/Select/styles.js";
|
|
39
|
+
import "./index-1a33c134.js";
|
|
40
|
+
import "./Overflow-a570fa69.js";
|
|
41
|
+
import "./DownOutlined-64a4732a.js";
|
|
42
|
+
import "./CheckOutlined-52d9ac25.js";
|
|
43
|
+
import "./CloseOutlined-14b8bba1.js";
|
|
44
|
+
import "./components/Badge/styles.js";
|
|
45
|
+
import "./components/Toast/styles.js";
|
|
46
|
+
import "./index-0a886e53.js";
|
|
47
|
+
import "./components/Typography/styles.js";
|
|
48
|
+
import "./index-501fc13d.js";
|
|
49
|
+
import "./index-0b9ee239.js";
|
|
50
|
+
import "./InfoCircleFilled-c5f90c20.js";
|
|
51
|
+
import "./collapse-345bc884.js";
|
|
52
|
+
import "./components/Badge/icons/Appointment.js";
|
|
53
|
+
import "./components/Badge/icons/ASN.js";
|
|
54
|
+
import "./components/Badge/icons/Inventory.js";
|
|
55
|
+
import "./components/Badge/icons/Parcel.js";
|
|
56
|
+
import "./components/Badge/icons/Product.js";
|
|
57
|
+
import "./components/Badge/icons/Route.js";
|
|
58
|
+
import "./components/Badge/icons/Shipment.js";
|
|
59
|
+
import "./components/Badge/icons/ShoppingCart.js";
|
|
60
|
+
import "./components/Badge/icons/System.js";
|
|
61
|
+
import "./styles/theme/genesis-theme.js";
|
|
62
|
+
import "./styles/design-tokens/variables.js";
|
|
10
63
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
64
|
+
Bo as Badge,
|
|
65
|
+
oo as Button,
|
|
66
|
+
to as Checkbox,
|
|
67
|
+
mo as ErrorBoundaryFallback,
|
|
68
|
+
eo as Form,
|
|
69
|
+
So as GENESIS,
|
|
70
|
+
co as GenesisProvider,
|
|
71
|
+
xo as Input,
|
|
72
|
+
no as Select,
|
|
73
|
+
ao as Toast,
|
|
74
|
+
so as Typography,
|
|
75
|
+
yo as useBreakpoint,
|
|
76
|
+
ho as useGenesis,
|
|
77
|
+
Eo as useGenesisTheme,
|
|
78
|
+
fo as useToast
|
|
20
79
|
};
|