@gobolt/genesis 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -2
- package/dist/{AntdIcon-Bsnbyy6g.js → AntdIcon-BoLh1dP8.js} +37 -35
- package/dist/CheckOutlined-CeTKr6II.js +13 -0
- package/dist/{CloseCircleFilled-ZIY-u-27.js → CloseCircleFilled-DXCxlIQL.js} +2 -2
- package/dist/CloseOutlined-ClXDNn82.js +13 -0
- package/dist/{Compact-CJBo3f0u.js → Compact-CGY560JF.js} +45 -53
- package/dist/{ContextIsolator-CGkdKtc3.js → ContextIsolator-D5x2Ih51.js} +2 -2
- package/dist/{ExclamationCircleFilled-BICVVQIg.js → ExclamationCircleFilled-C0Kj5KQV.js} +2 -2
- package/dist/{CheckOutlined-DAynWe12.js → KeyCode-DM2sFh3-.js} +10 -20
- package/dist/LoadingOutlined-8EnJdZ7I.js +13 -0
- package/dist/Overflow-PBZD-PFm.js +360 -0
- package/dist/PurePanel-BqPLRtc2.js +203 -0
- package/dist/SearchOutlined-BP3Z2K6j.js +13 -0
- package/dist/{TextArea-3MOYYuAQ.js → TextArea-DKwCct3i.js} +26 -16
- package/dist/Typography-aGoDUl4R.js +710 -0
- package/dist/bundle.css +1204 -0
- package/dist/{button-BNV2qdrP.js → button-CDQgO1OK.js} +200 -197
- package/dist/collapse-Dtpt-6W_.js +20 -0
- package/dist/components/Badge/Badge.d.ts +6 -0
- package/dist/components/Badge/Badge.js +103 -0
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +13 -0
- package/dist/components/Badge/__tests__/Badge.test.js +18 -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 +4 -0
- package/dist/components/Badge/styles.d.ts +3 -0
- package/dist/components/Badge/styles.js +34 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +11 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +22 -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 +23 -0
- package/dist/components/Breadcrumb/index.d.ts +3 -0
- package/dist/components/Breadcrumb/index.js +4 -0
- package/dist/components/Breadcrumb/styles.d.ts +27 -0
- package/dist/components/Breadcrumb/styles.js +2436 -0
- package/dist/components/Button/Button.d.ts +14 -0
- package/dist/components/Button/Button.js +22 -0
- package/dist/components/Button/__tests__/Button.test.js +16 -0
- package/dist/components/Button/styles.d.ts +16 -0
- package/dist/components/{atoms/button → Button}/styles.js +12 -12
- package/dist/components/{atoms/checkbox → Checkbox}/Checkbox.d.ts +2 -1
- package/dist/components/Checkbox/Checkbox.js +40 -0
- package/dist/components/{atoms/checkbox → Checkbox}/__tests__/Checkbox.test.js +1 -1
- package/dist/components/{atoms/checkbox → Checkbox}/styles.d.ts +5 -0
- package/dist/components/{atoms/checkbox → Checkbox}/styles.js +97 -96
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +8 -0
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +40 -0
- package/dist/components/ErrorBoundaryFallback/index.d.ts +2 -0
- package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.js +22 -21
- package/dist/components/Form/Form.d.ts +26 -0
- package/dist/components/Form/Form.js +8 -0
- package/dist/components/Form/__stories__/FormStory.js +93 -0
- package/dist/components/Form/__tests__/form.test.d.ts +1 -0
- package/dist/components/Form/__tests__/form.test.js +18 -0
- package/dist/components/Form/index.js +4 -0
- package/dist/components/Form/styles.d.ts +3 -0
- package/dist/components/Form/styles.js +5 -0
- package/dist/components/{atoms/input → Input}/Input.d.ts +1 -3
- package/dist/components/Input/Input.js +19 -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 +24 -0
- package/dist/components/{atoms/input → Input}/styles.d.ts +2 -0
- package/dist/components/Input/styles.js +529 -0
- package/dist/components/Message/Message.d.ts +13 -0
- package/dist/components/Message/Message.js +78 -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 +42 -0
- package/dist/components/Message/index.d.ts +2 -0
- package/dist/components/Message/index.js +4 -0
- package/dist/components/Message/styles.d.ts +8 -0
- package/dist/components/Message/styles.js +41 -0
- package/dist/components/Notification/Notification.d.ts +17 -0
- package/dist/components/Notification/Notification.js +1370 -0
- package/dist/components/Notification/NotificationRightChevron.d.ts +2 -0
- package/dist/components/Notification/NotificationRightChevron.js +23 -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 +15 -0
- package/dist/components/Notification/index.d.ts +2 -0
- package/dist/components/Notification/index.js +4 -0
- package/dist/components/Notification/styles.d.ts +16 -0
- package/dist/components/Notification/styles.js +65 -0
- package/dist/components/Radio/Radio.d.ts +14 -0
- package/dist/components/Radio/Radio.js +28 -0
- package/dist/components/Radio/RadioGroup.d.ts +12 -0
- package/dist/components/Radio/RadioGroup.js +33 -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 +30 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/index.js +4 -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/Select/DropdownChevron.d.ts +2 -0
- package/dist/components/Select/DropdownChevron.js +23 -0
- package/dist/components/Select/Select.d.ts +16 -0
- package/dist/components/Select/Select.js +36 -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/{atoms/select → Select}/__tests__/Select.test.js +1165 -1140
- package/dist/components/Select/styles.d.ts +32 -0
- package/dist/components/{atoms/select → Select}/styles.js +1517 -1651
- package/dist/components/Toast/Toast.d.ts +14 -0
- package/dist/components/Toast/Toast.js +19 -0
- package/dist/components/Toast/__stories__/Toast.stories.d.ts +16 -0
- package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -0
- package/dist/components/Toast/__tests__/Toast.test.js +18 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Toast/index.js +4 -0
- package/dist/components/Toast/styles.d.ts +10 -0
- package/dist/components/Toast/styles.js +54 -0
- package/dist/components/Typography/Typography.d.ts +15 -0
- package/dist/components/Typography/Typography.js +8 -0
- package/dist/components/{atoms/typography → Typography}/__stories__/Typography.stories.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.js +23 -0
- package/dist/components/Typography/index.js +4 -0
- package/dist/components/Typography/styles.d.ts +21 -0
- package/dist/components/Typography/styles.js +48 -0
- package/dist/components/index.d.ts +26 -14
- package/dist/components/index.js +23 -13
- package/dist/constants/index.d.ts +104 -0
- package/dist/constants/index.js +41 -7
- package/dist/{context-CZsFJmh6.js → context-BMW3aJEf.js} +162 -161
- package/dist/genesis/GenesisThemeBreakdown.js +54 -24
- package/dist/genesis/GenesisThemeDemo.d.ts +0 -2
- package/dist/genesis/GenesisThemeDemo.js +3 -4
- package/dist/genesis/styles.js +1095 -2186
- package/dist/{index-C7kFNqp2.js → index-1CBpubM3.js} +36 -36
- package/dist/{index-3MWkSVA1.js → index-BZAhCB_K.js} +6 -5
- package/dist/{index-D1v_7IIx.js → index-C0SmxWLS.js} +95 -94
- package/dist/index-C8haFnXI.js +1112 -0
- package/dist/{index-VDH3iLaC.js → index-CfDY25LP.js} +298 -309
- package/dist/{index-SAAXFt-P.js → index-DPW8XdWj.js} +255 -249
- package/dist/{index-BQO27mgE.js → index-bKlRxQp4.js} +52 -51
- package/dist/index-oK7z6jnz.js +22795 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +31 -18
- package/dist/{isVisible-CNQjrJPN.js → isVisible-A-IfeFoT.js} +34 -33
- package/dist/{magic-string.es-BkUFmFT4.js → magic-string.es-D2FWSwU3.js} +1 -1
- package/dist/{SearchOutlined-DuzJkIiQ.js → pickAttrs-B0YTfcV1.js} +16 -26
- package/dist/providers/GenesisProvider.js +9 -5
- package/dist/providers/ThemeProvider.d.ts +2 -2
- package/dist/providers/ThemeProvider.js +4 -1
- package/dist/providers/ToastProvider.d.ts +13 -0
- package/dist/providers/ToastProvider.js +20 -0
- package/dist/providers/__stories__/GenesisProvider.stories.d.ts +6 -0
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.js +4 -4
- package/dist/providers/useGenesis.d.ts +7 -0
- package/dist/providers/useGenesis.js +6 -0
- package/dist/{setup-CMYVZCPF.js → setup-BvfREoHl.js} +6948 -6940
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +22 -16
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +21 -15
- package/dist/styles/design-tokens/{typography → typography-tokens}/TypographyTokens.stories.d.ts +1 -0
- package/dist/styles/design-tokens/variables.d.ts +17 -17
- package/dist/styles/design-tokens/variables.js +48 -48
- package/dist/styles/global-styles.d.ts +1 -0
- package/dist/styles/global-styles.js +13 -29
- package/dist/styles/theme/genesis-theme.d.ts +3 -0
- package/dist/styles/theme/genesis-theme.js +461 -277
- package/dist/styles/theme/genesis-theme.types.d.ts +46 -0
- package/dist/{Form-Cylpi4M4.js → styles-CT_fyXBd.js} +417 -424
- package/dist/test/setup.js +2 -1
- package/dist/useLocale-DT-z_vQ6.js +16 -0
- package/dist/{useVariants-CEpw6Ww6.js → useVariants-DvhXfgJY.js} +9 -8
- package/dist/warning-C63HNL9U.js +789 -0
- package/package.json +10 -4
- package/dist/Overflow-CP1M4Z0s.js +0 -369
- package/dist/components/atoms/button/Button.d.ts +0 -12
- package/dist/components/atoms/button/Button.js +0 -27
- package/dist/components/atoms/button/styles.d.ts +0 -12
- package/dist/components/atoms/checkbox/Checkbox.js +0 -13
- 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/styles.js +0 -415
- package/dist/components/atoms/select/Select.d.ts +0 -11
- package/dist/components/atoms/select/Select.js +0 -24
- package/dist/components/atoms/select/styles.d.ts +0 -15
- package/dist/components/atoms/typography/Typography.d.ts +0 -11
- 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.d.ts +0 -10
- package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +0 -35
- package/dist/components/molecules/error-boundary-fallback/index.d.ts +0 -1
- package/dist/components/molecules/form/Form.d.ts +0 -15
- 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-BPtFqhcp.js +0 -19110
- package/dist/index-BWys7dkb.js +0 -4462
- package/dist/styles/theme/global-styles.d.ts +0 -1
- package/dist/styles/theme/global-styles.js +0 -35
- /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}/__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}/index.js +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/{atoms/checkbox → Checkbox}/index.js +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.js +0 -0
- /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.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/input → Input}/index.js +0 -0
- /package/dist/components/{atoms/select → Select}/index.d.ts +0 -0
- /package/dist/components/{atoms/select → Select}/index.js +0 -0
- /package/dist/components/{atoms/typography → Typography}/index.d.ts +0 -0
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
2
|
import L, { useContext as X, useRef as Z } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { _ as
|
|
3
|
+
import { _ as ee, d as te, c as $ } from "./warning-C63HNL9U.js";
|
|
4
|
+
import { _ as k, a as E, i as ne } from "./isVisible-A-IfeFoT.js";
|
|
5
|
+
import { R as A, y as oe, z as re, A as se, w as g, B as ae, t as I, C as U, E as ue, b as ie, s as ce, h as le } from "./index-oK7z6jnz.js";
|
|
5
6
|
import { c as de } from "./reactNode-sKPeiqPL.js";
|
|
6
|
-
|
|
7
|
-
var _ = ee({}, U), fe = _.version, S = _.render, pe = _.unmountComponentAtNode, C;
|
|
7
|
+
var _ = ee({}, A), fe = _.version, w = _.render, pe = _.unmountComponentAtNode, C;
|
|
8
8
|
try {
|
|
9
9
|
var me = Number((fe || "").split(".")[0]);
|
|
10
10
|
me >= 18 && (C = _.createRoot);
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function D(e) {
|
|
14
14
|
var t = _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
15
15
|
t && te(t) === "object" && (t.usingClientEntryPoint = e);
|
|
16
16
|
}
|
|
17
17
|
var y = "__rc_react_root__";
|
|
18
18
|
function ve(e, t) {
|
|
19
|
-
|
|
19
|
+
D(!0);
|
|
20
20
|
var n = t[y] || C(t);
|
|
21
|
-
|
|
21
|
+
D(!1), n.render(e), t[y] = n;
|
|
22
22
|
}
|
|
23
23
|
function be(e, t) {
|
|
24
|
-
|
|
24
|
+
w == null || w(e, t);
|
|
25
25
|
}
|
|
26
26
|
function Re(e, t) {
|
|
27
27
|
if (C) {
|
|
@@ -34,8 +34,8 @@ function _e(e) {
|
|
|
34
34
|
return W.apply(this, arguments);
|
|
35
35
|
}
|
|
36
36
|
function W() {
|
|
37
|
-
return W =
|
|
38
|
-
return
|
|
37
|
+
return W = k(/* @__PURE__ */ E().mark(function e(t) {
|
|
38
|
+
return E().wrap(function(o) {
|
|
39
39
|
for (; ; ) switch (o.prev = o.next) {
|
|
40
40
|
case 0:
|
|
41
41
|
return o.abrupt("return", Promise.resolve().then(function() {
|
|
@@ -56,8 +56,8 @@ function Ee(e) {
|
|
|
56
56
|
return O.apply(this, arguments);
|
|
57
57
|
}
|
|
58
58
|
function O() {
|
|
59
|
-
return O =
|
|
60
|
-
return
|
|
59
|
+
return O = k(/* @__PURE__ */ E().mark(function e(t) {
|
|
60
|
+
return E().wrap(function(o) {
|
|
61
61
|
for (; ; ) switch (o.prev = o.next) {
|
|
62
62
|
case 0:
|
|
63
63
|
if (C === void 0) {
|
|
@@ -76,8 +76,8 @@ function O() {
|
|
|
76
76
|
}
|
|
77
77
|
const ge = (e, t) => {
|
|
78
78
|
if (process.env.NODE_ENV !== "production") {
|
|
79
|
-
const n = parseInt(r.version.split(".")[0], 10), o = Object.keys(
|
|
80
|
-
process.env.NODE_ENV !== "production" &&
|
|
79
|
+
const n = parseInt(r.version.split(".")[0], 10), o = Object.keys(A);
|
|
80
|
+
process.env.NODE_ENV !== "production" && oe(n < 19 || o.includes("createRoot"), "compatible", "antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.");
|
|
81
81
|
}
|
|
82
82
|
return Re(e, t), () => Ee(t);
|
|
83
83
|
};
|
|
@@ -85,7 +85,7 @@ let ye = ge;
|
|
|
85
85
|
function Ce() {
|
|
86
86
|
return ye;
|
|
87
87
|
}
|
|
88
|
-
const
|
|
88
|
+
const we = (e) => {
|
|
89
89
|
const {
|
|
90
90
|
componentCls: t,
|
|
91
91
|
colorPrimary: n
|
|
@@ -112,8 +112,8 @@ const Se = (e) => {
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
|
-
},
|
|
116
|
-
function
|
|
115
|
+
}, Se = re("Wave", (e) => [we(e)]), j = `${se}-wave-target`;
|
|
116
|
+
function S(e) {
|
|
117
117
|
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
118
|
e !== "transparent";
|
|
119
119
|
}
|
|
@@ -123,7 +123,7 @@ function Ne(e) {
|
|
|
123
123
|
borderColor: n,
|
|
124
124
|
backgroundColor: o
|
|
125
125
|
} = getComputedStyle(e);
|
|
126
|
-
return
|
|
126
|
+
return S(t) ? t : S(n) ? n : S(o) ? o : null;
|
|
127
127
|
}
|
|
128
128
|
function N(e) {
|
|
129
129
|
return Number.isNaN(e) ? 0 : e;
|
|
@@ -138,11 +138,11 @@ const We = (e) => {
|
|
|
138
138
|
r.useEffect(() => {
|
|
139
139
|
c.current = s();
|
|
140
140
|
}, []);
|
|
141
|
-
const [d, h] = r.useState(null), [f, a] = r.useState([]), [m, v] = r.useState(0), [B, V] = r.useState(0), [P,
|
|
141
|
+
const [d, h] = r.useState(null), [f, a] = r.useState([]), [m, v] = r.useState(0), [B, V] = r.useState(0), [P, z] = r.useState(0), [F, q] = r.useState(0), [M, H] = r.useState(!1), T = {
|
|
142
142
|
left: m,
|
|
143
143
|
top: B,
|
|
144
144
|
width: P,
|
|
145
|
-
height:
|
|
145
|
+
height: F,
|
|
146
146
|
borderRadius: f.map((l) => `${l}px`).join(" ")
|
|
147
147
|
};
|
|
148
148
|
d && (T["--wave-color"] = d);
|
|
@@ -153,29 +153,29 @@ const We = (e) => {
|
|
|
153
153
|
borderLeftWidth: p,
|
|
154
154
|
borderTopWidth: b
|
|
155
155
|
} = l;
|
|
156
|
-
v(u ? n.offsetLeft : N(-parseFloat(p))), V(u ? n.offsetTop : N(-parseFloat(b))),
|
|
156
|
+
v(u ? n.offsetLeft : N(-parseFloat(p))), V(u ? n.offsetTop : N(-parseFloat(b))), z(n.offsetWidth), q(n.offsetHeight);
|
|
157
157
|
const {
|
|
158
158
|
borderTopLeftRadius: R,
|
|
159
|
-
borderTopRightRadius:
|
|
159
|
+
borderTopRightRadius: G,
|
|
160
160
|
borderBottomLeftRadius: Y,
|
|
161
161
|
borderBottomRightRadius: J
|
|
162
162
|
} = l;
|
|
163
|
-
a([R,
|
|
163
|
+
a([R, G, J, Y].map((Q) => N(parseFloat(Q))));
|
|
164
164
|
}
|
|
165
165
|
if (r.useEffect(() => {
|
|
166
166
|
if (n) {
|
|
167
|
-
const l =
|
|
168
|
-
x(),
|
|
167
|
+
const l = g(() => {
|
|
168
|
+
x(), H(!0);
|
|
169
169
|
});
|
|
170
170
|
let u;
|
|
171
171
|
return typeof ResizeObserver < "u" && (u = new ResizeObserver(x), u.observe(n)), () => {
|
|
172
|
-
|
|
172
|
+
g.cancel(l), u == null || u.disconnect();
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
|
-
}, []), !
|
|
175
|
+
}, []), !M)
|
|
176
176
|
return null;
|
|
177
|
-
const
|
|
178
|
-
return /* @__PURE__ */ r.createElement(
|
|
177
|
+
const K = (o === "Checkbox" || o === "Radio") && (n == null ? void 0 : n.classList.contains(j));
|
|
178
|
+
return /* @__PURE__ */ r.createElement(ae, {
|
|
179
179
|
visible: !0,
|
|
180
180
|
motionAppear: !0,
|
|
181
181
|
motionName: "wave-motion",
|
|
@@ -195,9 +195,9 @@ const We = (e) => {
|
|
|
195
195
|
className: p
|
|
196
196
|
} = l;
|
|
197
197
|
return /* @__PURE__ */ r.createElement("div", {
|
|
198
|
-
ref:
|
|
198
|
+
ref: I(i, u),
|
|
199
199
|
className: $(t, p, {
|
|
200
|
-
"wave-quick":
|
|
200
|
+
"wave-quick": K
|
|
201
201
|
}),
|
|
202
202
|
style: T
|
|
203
203
|
});
|
|
@@ -223,7 +223,7 @@ const We = (e) => {
|
|
|
223
223
|
}, Te = (e, t, n) => {
|
|
224
224
|
const {
|
|
225
225
|
wave: o
|
|
226
|
-
} = r.useContext(
|
|
226
|
+
} = r.useContext(U), [, s, i] = ue(), c = ie((f) => {
|
|
227
227
|
const a = e.current;
|
|
228
228
|
if (o != null && o.disabled || !a)
|
|
229
229
|
return;
|
|
@@ -239,7 +239,7 @@ const We = (e) => {
|
|
|
239
239
|
});
|
|
240
240
|
}), d = r.useRef(null);
|
|
241
241
|
return (f) => {
|
|
242
|
-
|
|
242
|
+
g.cancel(d.current), d.current = g(() => {
|
|
243
243
|
c(f);
|
|
244
244
|
});
|
|
245
245
|
};
|
|
@@ -250,13 +250,13 @@ const We = (e) => {
|
|
|
250
250
|
component: o
|
|
251
251
|
} = e, {
|
|
252
252
|
getPrefixCls: s
|
|
253
|
-
} = X(
|
|
253
|
+
} = X(U), i = Z(null), c = s("wave"), [, d] = Se(c), h = Te(i, $(c, d), o);
|
|
254
254
|
if (L.useEffect(() => {
|
|
255
255
|
const a = i.current;
|
|
256
256
|
if (!a || a.nodeType !== 1 || n)
|
|
257
257
|
return;
|
|
258
258
|
const m = (v) => {
|
|
259
|
-
!
|
|
259
|
+
!ne(v.target) || // No need wave
|
|
260
260
|
!a.getAttribute || a.getAttribute("disabled") || a.disabled || a.className.includes("disabled") || a.className.includes("-leave") || h(v);
|
|
261
261
|
};
|
|
262
262
|
return a.addEventListener("click", m, !0), () => {
|
|
@@ -264,7 +264,7 @@ const We = (e) => {
|
|
|
264
264
|
};
|
|
265
265
|
}, [n]), !/* @__PURE__ */ L.isValidElement(t))
|
|
266
266
|
return t ?? null;
|
|
267
|
-
const f =
|
|
267
|
+
const f = ce(t) ? I(le(t), i) : i;
|
|
268
268
|
return de(t, {
|
|
269
269
|
ref: f
|
|
270
270
|
});
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
2
|
import U from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { C as
|
|
3
|
+
import { c as P } from "./warning-C63HNL9U.js";
|
|
4
|
+
import { t as X } from "./isVisible-A-IfeFoT.js";
|
|
5
|
+
import { C as Y } from "./index-oK7z6jnz.js";
|
|
6
|
+
import { C as Z, u as ee } from "./Compact-CGY560JF.js";
|
|
6
7
|
function w(e) {
|
|
7
8
|
return ["small", "middle", "large"].includes(e);
|
|
8
9
|
}
|
|
@@ -42,7 +43,7 @@ const le = /* @__PURE__ */ l.forwardRef((e, i) => {
|
|
|
42
43
|
getPrefixCls: m,
|
|
43
44
|
space: t,
|
|
44
45
|
direction: V
|
|
45
|
-
} = l.useContext(
|
|
46
|
+
} = l.useContext(Y), {
|
|
46
47
|
size: c = (a = t == null ? void 0 : t.size) !== null && a !== void 0 ? a : "small",
|
|
47
48
|
align: S,
|
|
48
49
|
className: I,
|
|
@@ -55,7 +56,7 @@ const le = /* @__PURE__ */ l.forwardRef((e, i) => {
|
|
|
55
56
|
wrap: D = !1,
|
|
56
57
|
classNames: p,
|
|
57
58
|
styles: y
|
|
58
|
-
} = e, F = se(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [d, u] = Array.isArray(c) ? c : [c, c], z = w(u), O = w(d), M = E(u), W = E(d), v =
|
|
59
|
+
} = e, F = se(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [d, u] = Array.isArray(c) ? c : [c, c], z = w(u), O = w(d), M = E(u), W = E(d), v = X(A, {
|
|
59
60
|
keepEmpty: !0
|
|
60
61
|
}), $ = S === void 0 && b === "horizontal" ? "center" : S, r = m("space", G), [q, B, J] = ee(r), K = P(r, t == null ? void 0 : t.className, B, `${r}-${b}`, {
|
|
61
62
|
[`${r}-rtl`]: V === "rtl",
|