@gobolt/genesis 0.0.11 → 0.1.0
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 +6 -0
- package/dist/ClockCircleOutlined-BaXQuLIn.js +13 -0
- package/dist/{Compact-DBh6nSYB.js → Compact-Du9689ax.js} +8 -8
- package/dist/{ContextIsolator-CwuJooYf.js → ContextIsolator-BmfhJgG0.js} +2 -2
- package/dist/{DownOutlined-5-15jS0h.js → DownOutlined-Dcq69ZKM.js} +9 -9
- package/dist/{EllipsisOutlined-CJ2pgE2d.js → EllipsisOutlined-DGMph0Bj.js} +110 -110
- package/dist/{Keyframes-sPZXYuXt.js → Keyframes-C9_aCDvn.js} +1 -1
- package/dist/{Overflow-DdNKJLQh.js → Overflow-DWf4XIal.js} +31 -31
- package/dist/{Skeleton-B3vg9CbL.js → Skeleton-BVN4pcVe.js} +2 -2
- package/dist/TextArea-Bkf9hh7l.js +708 -0
- package/dist/{Typography-DqI7RslA.js → Typography-CoZ5qD-t.js} +3 -3
- package/dist/{button-B2Rgggx2.js → button-BwqpCxVM.js} +5 -5
- package/dist/components/Avatar/Avatar.js +3 -3
- package/dist/components/Avatar/__tests__/Avatar.test.js +1 -1
- package/dist/components/Avatar/styles.js +42 -42
- package/dist/components/Badge/Badge.js +3 -3
- package/dist/components/Badge/__tests__/Badge.test.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
- package/dist/components/Breadcrumb/styles.js +4 -4
- package/dist/components/Button/__tests__/Button.test.js +1 -1
- package/dist/components/Button/styles.js +1 -1
- package/dist/components/Card/__tests__/Card.test.js +1 -1
- package/dist/components/Card/styles.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +3 -3
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
- package/dist/components/Checkbox/styles.js +1 -1
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +8 -8
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +4 -4
- package/dist/components/Dashboard/__tests__/Dashboard.test.js +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +6 -0
- package/dist/components/DatePicker/DatePicker.js +5 -0
- package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +10 -0
- package/dist/components/DatePicker/__tests__/DatePicker.test.d.ts +1 -0
- package/dist/components/DatePicker/__tests__/DatePicker.test.js +19 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/index.js +4 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +5 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +5 -0
- package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +9 -0
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.d.ts +1 -0
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +23 -0
- package/dist/components/DateRangePicker/index.d.ts +2 -0
- package/dist/components/DateRangePicker/index.js +4 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.js +3 -3
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +1 -1
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +3 -3
- package/dist/components/ErrorBoundaryFallback/styles.js +1 -1
- package/dist/components/Form/Form.js +2 -2
- package/dist/components/Form/__stories__/FormStory.js +4 -4
- package/dist/components/Form/__tests__/form.test.js +2 -2
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/styles.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/__tests__/Input.test.js +1 -1
- package/dist/components/Input/styles.js +1 -1
- package/dist/components/Layout/Content/ResponsiveContent.js +3 -3
- package/dist/components/Layout/MainLayout/MainLayout.js +1 -1
- package/dist/components/Layout/__tests__/Layout.test.js +1 -1
- package/dist/components/Message/Message.js +3 -3
- package/dist/components/Message/__tests__/Message.test.js +1 -1
- package/dist/components/Notification/Notification.js +3 -3
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +1 -1
- package/dist/components/Notification/__tests__/Notification.test.js +1 -1
- package/dist/components/Popover/Popover.js +1 -1
- package/dist/components/Popover/__tests__/Popover.test.js +1 -1
- package/dist/components/Popover/styles.js +1 -1
- package/dist/components/Progress/Progress.js +3 -3
- package/dist/components/Progress/Progress.util.js +3 -3
- package/dist/components/Progress/ProgressText.js +3 -3
- package/dist/components/Progress/__tests__/Progress.test.js +1 -1
- package/dist/components/Progress/styles.js +3 -3
- package/dist/components/Radio/Radio.js +3 -3
- package/dist/components/Radio/RadioGroup.js +1 -1
- package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
- package/dist/components/Row/Row.js +1 -1
- package/dist/components/Row/RowActions/RowActions.js +3 -3
- package/dist/components/Row/RowLabelValue/RowLabelValue.js +3 -3
- package/dist/components/Row/RowLabelValue/styles.js +1 -1
- package/dist/components/Row/__tests__/Row.test.js +1 -1
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +1 -1
- package/dist/components/SegmentedControls/styles.js +27 -27
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/__tests__/Select.test.js +1 -1
- package/dist/components/Select/styles.js +1 -1
- package/dist/components/Shapes/__tests__/Shapes.test.js +1 -1
- package/dist/components/Switch/__tests__/Switch.test.js +1 -1
- package/dist/components/Switch/styles.js +15 -15
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/__mocks__/table-mocks.js +3 -3
- package/dist/components/Table/__tests__/Table.test.js +1 -1
- package/dist/components/Table/styles.js +1 -1
- package/dist/components/Tabs/__tests__/Tabs.test.js +1 -1
- package/dist/components/Tabs/styles.js +1 -1
- package/dist/components/Tile/__tests__/Tile.test.js +1 -1
- package/dist/components/Toast/Toast.js +3 -3
- package/dist/components/Toast/__tests__/Toast.test.js +2 -2
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +3 -3
- package/dist/components/Tooltip/__tests__/Tooltip.test.js +1 -1
- package/dist/components/Tooltip/styles.js +1 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/Typography/__tests__/Typography.test.js +2 -2
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/Typography/styles.js +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +46 -42
- package/dist/{context-Cx7GtZpz.js → context-DIFtNa4d.js} +70 -70
- package/dist/{dropdown-zGGFIyJ_.js → dropdown-Dp_PTQ2u.js} +60 -59
- package/dist/genesis/GenesisThemeBreakdown.js +86 -44
- package/dist/genesis/labs/Lab.stories.d.ts +6 -0
- package/dist/genesis/styles.js +2 -2
- package/dist/{index-CdiHBmVe.js → index-BPVue1Yd.js} +44 -44
- package/dist/{index-CRotrkWm.js → index-BQM5OniU.js} +7 -7
- package/dist/{index-BTGF--50.js → index-B_1Ge8na.js} +20 -19
- package/dist/{index-ByspLxrB.js → index-BbTV2Cw5.js} +32 -31
- package/dist/index-BeGv28kJ.js +5173 -0
- package/dist/{index-Dyl-ddV6.js → index-BpZSuIUV.js} +16 -16
- package/dist/{index-CodMmNWv.js → index-BvOLXELm.js} +3 -3
- package/dist/{index-hoPiccJv.js → index-CLSrpQRW.js} +9 -8
- package/dist/{index-D0P16DlX.js → index-CbVOl2U6.js} +26 -24
- package/dist/{index-DWUXwgXK.js → index-D0U6r5O7.js} +265 -294
- package/dist/{index-BW_7pvTr.js → index-DEu2PVzQ.js} +4 -4
- package/dist/{index-DmZOkMjs.js → index-DNQ-jnBx.js} +1207 -1514
- package/dist/index-DOsPeIWJ.js +1000 -0
- package/dist/{index-CSPlXIlA.js → index-DRGX1Wem.js} +7 -7
- package/dist/index-DWjq9XYj.js +899 -0
- package/dist/index.js +53 -49
- package/dist/motion-CUN72xsH.js +33 -0
- package/dist/providers/GenesisProvider.js +1 -1
- package/dist/providers/ToastProvider.js +3 -3
- package/dist/providers/index.js +1 -1
- package/dist/providers/useGenesis.js +1 -1
- package/dist/{responsiveObserver-O1kw80RG.js → responsiveObserver-dCkpy7Cb.js} +1 -1
- package/dist/roundedArrow-DI_Q-xdU.js +65 -0
- package/dist/{setup-CKu7-AfI.js → setup-CUbCc8fQ.js} +2 -2
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +7 -7
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +3 -3
- package/dist/styles/theme/genesis-theme.js +211 -349
- package/dist/styles/theme/theme-tree/ThemeTree.js +114 -113
- package/dist/{styles-BSD221S5.js → styles-CWdUpZom.js} +12 -12
- package/dist/{styles-BDbHpHsc.js → styles-D1vKDy9V.js} +9 -9
- package/dist/{styles-D9iYILpv.js → styles-qerRs7Rn.js} +493 -492
- package/dist/test/setup.js +2 -2
- package/dist/{toArray-DGvPoJP_.js → toArray-U3Az44CO.js} +1 -1
- package/dist/{useBreakpoint-CAMzKscx.js → useBreakpoint-TkMv121M.js} +2 -2
- package/dist/{useCSSVarCls-C-MlZC6a.js → useCSSVarCls-Dau77fzS.js} +1 -1
- package/dist/useIcons-Ck4JP1m9.js +321 -0
- package/dist/{useLocale-DWRfeMSS.js → useLocale-CTfNpakL.js} +1 -1
- package/dist/{useMergedState-BoELfaU9.js → useMergedState-D6toxSxh.js} +1 -1
- package/dist/{useSize-CPo2bUE3.js → useSize-DSq4r6zy.js} +1 -1
- package/dist/{useVariants-Cin23jEC.js → useVariants-DrLzUVLU.js} +2 -2
- package/dist/{useZIndex-D81lkWy4.js → useZIndex-DhyHuZTN.js} +1 -1
- package/dist/utils/icon-util.js +38 -44
- package/package.json +2 -1
- package/dist/TextArea-CKWbFr0u.js +0 -1698
- package/dist/index-CqqwGTME.js +0 -956
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
2
|
import X, { forwardRef as ne, useRef as G, useImperativeHandle as re } from "react";
|
|
3
|
-
import { g as te, a as ae, e as V, b as
|
|
4
|
-
import { u as le } from "./useMergedState-
|
|
5
|
-
import {
|
|
6
|
-
import { T as pe, W as be } from "./index-
|
|
7
|
-
import { u as U } from "./useCSSVarCls-
|
|
8
|
-
import { F as me } from "./context-
|
|
3
|
+
import { g as te, a as ae, e as V, b as F, d as oe, _ as W } from "./presets-Djh_L_6R.js";
|
|
4
|
+
import { u as le } from "./useMergedState-D6toxSxh.js";
|
|
5
|
+
import { F as H, j as ie, m as se, k as M, w as ce, f as q, C as K, D as de, t as ue, g as fe, o as A } from "./index-BbTV2Cw5.js";
|
|
6
|
+
import { T as pe, W as be } from "./index-BpZSuIUV.js";
|
|
7
|
+
import { u as U } from "./useCSSVarCls-Dau77fzS.js";
|
|
8
|
+
import { F as me } from "./context-DIFtNa4d.js";
|
|
9
9
|
import "./index-DLdU7Tpd.js";
|
|
10
|
-
import { o as
|
|
11
|
-
var
|
|
12
|
-
var r = e.prefixCls, t = r === void 0 ? "rc-checkbox" : r, c = e.className,
|
|
10
|
+
import { o as Ce } from "./omit-B_u6A-HL.js";
|
|
11
|
+
var he = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"], ge = /* @__PURE__ */ ne(function(e, n) {
|
|
12
|
+
var r = e.prefixCls, t = r === void 0 ? "rc-checkbox" : r, c = e.className, h = e.style, $ = e.checked, b = e.disabled, _ = e.defaultChecked, S = _ === void 0 ? !1 : _, d = e.type, O = d === void 0 ? "checkbox" : d, R = e.title, i = e.onChange, k = te(e, he), g = G(null), u = G(null), a = le(S, {
|
|
13
13
|
value: $
|
|
14
|
-
}), N = ae(a, 2), P = N[0],
|
|
14
|
+
}), N = ae(a, 2), P = N[0], w = N[1];
|
|
15
15
|
re(n, function() {
|
|
16
16
|
return {
|
|
17
17
|
focus: function(s) {
|
|
@@ -26,9 +26,9 @@ var Ce = ["prefixCls", "className", "style", "checked", "disabled", "defaultChec
|
|
|
26
26
|
nativeElement: u.current
|
|
27
27
|
};
|
|
28
28
|
});
|
|
29
|
-
var f = V(t, c,
|
|
30
|
-
b || ("checked" in e ||
|
|
31
|
-
target:
|
|
29
|
+
var f = V(t, c, F(F({}, "".concat(t, "-checked"), P), "".concat(t, "-disabled"), b)), m = function(s) {
|
|
30
|
+
b || ("checked" in e || w(s.target.checked), i == null || i({
|
|
31
|
+
target: W(W({}, e), {}, {
|
|
32
32
|
type: O,
|
|
33
33
|
checked: s.target.checked
|
|
34
34
|
}),
|
|
@@ -44,7 +44,7 @@ var Ce = ["prefixCls", "className", "style", "checked", "disabled", "defaultChec
|
|
|
44
44
|
return /* @__PURE__ */ l.createElement("span", {
|
|
45
45
|
className: f,
|
|
46
46
|
title: R,
|
|
47
|
-
style:
|
|
47
|
+
style: h,
|
|
48
48
|
ref: u
|
|
49
49
|
}, /* @__PURE__ */ l.createElement("input", oe({}, k, {
|
|
50
50
|
className: "".concat(t, "-input"),
|
|
@@ -59,14 +59,14 @@ var Ce = ["prefixCls", "className", "style", "checked", "disabled", "defaultChec
|
|
|
59
59
|
});
|
|
60
60
|
function ve(e) {
|
|
61
61
|
const n = X.useRef(null), r = () => {
|
|
62
|
-
|
|
62
|
+
H.cancel(n.current), n.current = null;
|
|
63
63
|
};
|
|
64
64
|
return [() => {
|
|
65
|
-
r(), n.current =
|
|
65
|
+
r(), n.current = H(() => {
|
|
66
66
|
n.current = null;
|
|
67
67
|
});
|
|
68
|
-
}, (
|
|
69
|
-
n.current && (
|
|
68
|
+
}, (h) => {
|
|
69
|
+
n.current && (h.stopPropagation(), r()), e == null || e(h);
|
|
70
70
|
}];
|
|
71
71
|
}
|
|
72
72
|
const xe = (e) => {
|
|
@@ -142,7 +142,7 @@ const xe = (e) => {
|
|
|
142
142
|
height: e.checkboxSize,
|
|
143
143
|
direction: "ltr",
|
|
144
144
|
backgroundColor: e.colorBgContainer,
|
|
145
|
-
border: `${
|
|
145
|
+
border: `${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
|
|
146
146
|
borderRadius: e.borderRadiusSM,
|
|
147
147
|
borderCollapse: "separate",
|
|
148
148
|
transition: `all ${e.motionDurationSlow}`,
|
|
@@ -154,7 +154,7 @@ const xe = (e) => {
|
|
|
154
154
|
display: "table",
|
|
155
155
|
width: e.calc(e.checkboxSize).div(14).mul(5).equal(),
|
|
156
156
|
height: e.calc(e.checkboxSize).div(14).mul(8).equal(),
|
|
157
|
-
border: `${
|
|
157
|
+
border: `${q(e.lineWidthBold)} solid ${e.colorWhite}`,
|
|
158
158
|
borderTop: 0,
|
|
159
159
|
borderInlineStart: 0,
|
|
160
160
|
transform: "rotate(45deg) scale(0) translate(-50%,-50%)",
|
|
@@ -304,7 +304,7 @@ const Se = (e, n) => {
|
|
|
304
304
|
const {
|
|
305
305
|
prefixCls: t,
|
|
306
306
|
className: c,
|
|
307
|
-
rootClassName:
|
|
307
|
+
rootClassName: h,
|
|
308
308
|
children: $,
|
|
309
309
|
indeterminate: b = !1,
|
|
310
310
|
style: _,
|
|
@@ -318,10 +318,10 @@ const Se = (e, n) => {
|
|
|
318
318
|
checkbox: u
|
|
319
319
|
} = l.useContext(K), a = l.useContext(Q), {
|
|
320
320
|
isFormItemInput: N
|
|
321
|
-
} = l.useContext(me), P = l.useContext(de),
|
|
321
|
+
} = l.useContext(me), P = l.useContext(de), w = (r = (a == null ? void 0 : a.disabled) || R) !== null && r !== void 0 ? r : P, f = l.useRef(i.value), m = l.useRef(null), E = ue(n, m);
|
|
322
322
|
if (process.env.NODE_ENV !== "production") {
|
|
323
|
-
const
|
|
324
|
-
process.env.NODE_ENV !== "production" &&
|
|
323
|
+
const C = fe("Checkbox");
|
|
324
|
+
process.env.NODE_ENV !== "production" && C("checked" in i || !!a || !("value" in i), "usage", "`value` is not a valid prop, do you mean `checked`?");
|
|
325
325
|
}
|
|
326
326
|
l.useEffect(() => {
|
|
327
327
|
a == null || a.registerValue(i.value);
|
|
@@ -329,8 +329,8 @@ const Se = (e, n) => {
|
|
|
329
329
|
if (!O)
|
|
330
330
|
return i.value !== f.current && (a == null || a.cancelValue(f.current), a == null || a.registerValue(i.value), f.current = i.value), () => a == null ? void 0 : a.cancelValue(i.value);
|
|
331
331
|
}, [i.value]), l.useEffect(() => {
|
|
332
|
-
var
|
|
333
|
-
!((
|
|
332
|
+
var C;
|
|
333
|
+
!((C = m.current) === null || C === void 0) && C.input && (m.current.input.indeterminate = b);
|
|
334
334
|
}, [b]);
|
|
335
335
|
const s = k("checkbox", t), p = U(s), [j, I, D] = J(s, p), v = Object.assign({}, i);
|
|
336
336
|
a && !O && (v.onChange = function() {
|
|
@@ -339,19 +339,19 @@ const Se = (e, n) => {
|
|
|
339
339
|
value: i.value
|
|
340
340
|
});
|
|
341
341
|
}, v.name = a.name, v.checked = a.value.includes(i.value));
|
|
342
|
-
const
|
|
342
|
+
const z = V(`${s}-wrapper`, {
|
|
343
343
|
[`${s}-rtl`]: g === "rtl",
|
|
344
344
|
[`${s}-wrapper-checked`]: v.checked,
|
|
345
|
-
[`${s}-wrapper-disabled`]:
|
|
345
|
+
[`${s}-wrapper-disabled`]: w,
|
|
346
346
|
[`${s}-wrapper-in-form-item`]: N
|
|
347
|
-
}, u == null ? void 0 : u.className, c,
|
|
347
|
+
}, u == null ? void 0 : u.className, c, h, D, p, I), o = V({
|
|
348
348
|
[`${s}-indeterminate`]: b
|
|
349
349
|
}, pe, I), [x, y] = ve(v.onClick);
|
|
350
350
|
return j(/* @__PURE__ */ l.createElement(be, {
|
|
351
351
|
component: "Checkbox",
|
|
352
|
-
disabled:
|
|
352
|
+
disabled: w
|
|
353
353
|
}, /* @__PURE__ */ l.createElement("label", {
|
|
354
|
-
className:
|
|
354
|
+
className: z,
|
|
355
355
|
style: Object.assign(Object.assign({}, u == null ? void 0 : u.style), _),
|
|
356
356
|
onMouseEnter: S,
|
|
357
357
|
onMouseLeave: d,
|
|
@@ -360,8 +360,8 @@ const Se = (e, n) => {
|
|
|
360
360
|
onClick: y,
|
|
361
361
|
prefixCls: s,
|
|
362
362
|
className: o,
|
|
363
|
-
disabled:
|
|
364
|
-
ref:
|
|
363
|
+
disabled: w,
|
|
364
|
+
ref: E
|
|
365
365
|
})), $ !== void 0 && /* @__PURE__ */ l.createElement("span", null, $))));
|
|
366
366
|
}, L = /* @__PURE__ */ l.forwardRef(Se);
|
|
367
367
|
process.env.NODE_ENV !== "production" && (L.displayName = "Checkbox");
|
|
@@ -372,12 +372,12 @@ var Oe = function(e, n) {
|
|
|
372
372
|
n.indexOf(t[c]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[c]) && (r[t[c]] = e[t[c]]);
|
|
373
373
|
return r;
|
|
374
374
|
};
|
|
375
|
-
const
|
|
375
|
+
const we = /* @__PURE__ */ l.forwardRef((e, n) => {
|
|
376
376
|
const {
|
|
377
377
|
defaultValue: r,
|
|
378
378
|
children: t,
|
|
379
379
|
options: c = [],
|
|
380
|
-
prefixCls:
|
|
380
|
+
prefixCls: h,
|
|
381
381
|
className: $,
|
|
382
382
|
rootClassName: b,
|
|
383
383
|
style: _,
|
|
@@ -396,13 +396,13 @@ const Ee = /* @__PURE__ */ l.forwardRef((e, n) => {
|
|
|
396
396
|
u((x) => x.filter((y) => y !== o));
|
|
397
397
|
}, P = (o) => {
|
|
398
398
|
u((x) => [].concat(A(x), [o]));
|
|
399
|
-
},
|
|
399
|
+
}, w = (o) => {
|
|
400
400
|
const x = i.indexOf(o.value), y = A(i);
|
|
401
|
-
x === -1 ? y.push(o.value) : y.splice(x, 1), "value" in d || k(y), S == null || S(y.filter((
|
|
402
|
-
const Z = a.findIndex((
|
|
401
|
+
x === -1 ? y.push(o.value) : y.splice(x, 1), "value" in d || k(y), S == null || S(y.filter((C) => g.includes(C)).sort((C, Y) => {
|
|
402
|
+
const Z = a.findIndex((B) => B.value === C), ee = a.findIndex((B) => B.value === Y);
|
|
403
403
|
return Z - ee;
|
|
404
404
|
}));
|
|
405
|
-
}, f = O("checkbox",
|
|
405
|
+
}, f = O("checkbox", h), m = `${f}-group`, E = U(f), [s, p, j] = J(f, E), I = Ce(d, ["value", "disabled"]), D = c.length ? a.map((o) => /* @__PURE__ */ l.createElement(L, {
|
|
406
406
|
prefixCls: f,
|
|
407
407
|
key: o.value.toString(),
|
|
408
408
|
disabled: "disabled" in o ? o.disabled : d.disabled,
|
|
@@ -415,18 +415,18 @@ const Ee = /* @__PURE__ */ l.forwardRef((e, n) => {
|
|
|
415
415
|
id: o.id,
|
|
416
416
|
required: o.required
|
|
417
417
|
}, o.label)) : t, v = {
|
|
418
|
-
toggleOption:
|
|
418
|
+
toggleOption: w,
|
|
419
419
|
value: i,
|
|
420
420
|
disabled: d.disabled,
|
|
421
421
|
name: d.name,
|
|
422
422
|
// https://github.com/ant-design/ant-design/issues/16376
|
|
423
423
|
registerValue: P,
|
|
424
424
|
cancelValue: N
|
|
425
|
-
},
|
|
425
|
+
}, z = V(m, {
|
|
426
426
|
[`${m}-rtl`]: R === "rtl"
|
|
427
|
-
}, $, b, j,
|
|
427
|
+
}, $, b, j, E, p);
|
|
428
428
|
return s(/* @__PURE__ */ l.createElement("div", Object.assign({
|
|
429
|
-
className:
|
|
429
|
+
className: z,
|
|
430
430
|
style: _
|
|
431
431
|
}, I, {
|
|
432
432
|
ref: n
|
|
@@ -434,7 +434,7 @@ const Ee = /* @__PURE__ */ l.forwardRef((e, n) => {
|
|
|
434
434
|
value: v
|
|
435
435
|
}, D)));
|
|
436
436
|
}), T = L;
|
|
437
|
-
T.Group =
|
|
437
|
+
T.Group = we;
|
|
438
438
|
T.__ANT_CHECKBOX = !0;
|
|
439
439
|
process.env.NODE_ENV !== "production" && (T.displayName = "Checkbox");
|
|
440
440
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as H, f as U, j as P, d as Z } from "./presets-Djh_L_6R.js";
|
|
2
2
|
import * as a from "react";
|
|
3
|
-
import { t as ee } from "./toArray-
|
|
4
|
-
import {
|
|
3
|
+
import { t as ee } from "./toArray-U3Az44CO.js";
|
|
4
|
+
import { x as te, y as ne, e as re, _ as ie, z as oe, A as se, B as ae, E } from "./index-BbTV2Cw5.js";
|
|
5
5
|
var O = /* @__PURE__ */ a.createContext(null);
|
|
6
6
|
function ue(e) {
|
|
7
7
|
var t = e.children, n = e.onBatchResize, r = a.useRef(0), i = a.useRef([]), o = a.useContext(O), s = a.useCallback(function(f, u, c) {
|
|
@@ -279,7 +279,7 @@ var Ee = (
|
|
|
279
279
|
return this.activeObservations_.length > 0;
|
|
280
280
|
}, e;
|
|
281
281
|
}()
|
|
282
|
-
),
|
|
282
|
+
), B = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new I(), j = (
|
|
283
283
|
/** @class */
|
|
284
284
|
/* @__PURE__ */ function() {
|
|
285
285
|
function e(t) {
|
|
@@ -288,7 +288,7 @@ var Ee = (
|
|
|
288
288
|
if (!arguments.length)
|
|
289
289
|
throw new TypeError("1 argument required, but only 0 present.");
|
|
290
290
|
var n = pe.getInstance(), r = new ze(t, n, this);
|
|
291
|
-
|
|
291
|
+
B.set(this, r);
|
|
292
292
|
}
|
|
293
293
|
return e;
|
|
294
294
|
}()
|
|
@@ -298,13 +298,13 @@ var Ee = (
|
|
|
298
298
|
"unobserve",
|
|
299
299
|
"disconnect"
|
|
300
300
|
].forEach(function(e) {
|
|
301
|
-
|
|
301
|
+
j.prototype[e] = function() {
|
|
302
302
|
var t;
|
|
303
|
-
return (t =
|
|
303
|
+
return (t = B.get(this))[e].apply(t, arguments);
|
|
304
304
|
};
|
|
305
305
|
});
|
|
306
306
|
var Ce = function() {
|
|
307
|
-
return typeof _.ResizeObserver < "u" ? _.ResizeObserver :
|
|
307
|
+
return typeof _.ResizeObserver < "u" ? _.ResizeObserver : j;
|
|
308
308
|
}(), d = /* @__PURE__ */ new Map();
|
|
309
309
|
function F(e) {
|
|
310
310
|
e.forEach(function(t) {
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
2
|
import ra, { createContext as ia, useState as j, useRef as U, useEffect as ce, useMemo as Tt } from "react";
|
|
3
3
|
import { R as oa } from "./CloseOutlined-ogxnm7Oy.js";
|
|
4
|
-
import { E as la, M as ca, D as da, R as sa } from "./EllipsisOutlined-
|
|
4
|
+
import { E as la, M as ca, D as da, R as sa } from "./EllipsisOutlined-DGMph0Bj.js";
|
|
5
5
|
import { d as fe, a as I, _ as ne, f as qe, b as Y, e as J, g as De, w as ua } from "./presets-Djh_L_6R.js";
|
|
6
6
|
import { I as fa } from "./AntdIcon-nCNB0J1E.js";
|
|
7
|
-
import { u as mt } from "./useMergedState-
|
|
8
|
-
import { a as va
|
|
9
|
-
import {
|
|
10
|
-
import { R as Xe } from "./index-
|
|
7
|
+
import { u as mt } from "./useMergedState-D6toxSxh.js";
|
|
8
|
+
import { a as va } from "./index-D0U6r5O7.js";
|
|
9
|
+
import { F as pt, b as ba, a as ma, o as gt, B as pa, s as ga, g as Pt, j as ha, m as $a, f as $, w as Rt, k as It, v as ya, p as Ue, C as Sa } from "./index-BbTV2Cw5.js";
|
|
10
|
+
import { R as Xe } from "./index-BQM5OniU.js";
|
|
11
11
|
import { K as pe } from "./KeyCode-DM2sFh3-.js";
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
14
|
-
import {
|
|
12
|
+
import { u as _a } from "./useCSSVarCls-Dau77fzS.js";
|
|
13
|
+
import { u as xa } from "./useSize-DSq4r6zy.js";
|
|
14
|
+
import { g as Ca } from "./motion-CUN72xsH.js";
|
|
15
|
+
import { t as wa } from "./toArray-U3Az44CO.js";
|
|
15
16
|
import "./index-DLdU7Tpd.js";
|
|
16
|
-
import { i as ht } from "./Overflow-
|
|
17
|
+
import { i as ht } from "./Overflow-DWf4XIal.js";
|
|
17
18
|
var Ea = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" }, Ta = function(t, a) {
|
|
18
19
|
return /* @__PURE__ */ c.createElement(fa, fe({}, t, {
|
|
19
20
|
ref: a,
|
|
@@ -153,7 +154,7 @@ function Na(e, t) {
|
|
|
153
154
|
}
|
|
154
155
|
function Mt(e) {
|
|
155
156
|
var t = j(0), a = I(t, 2), n = a[0], r = a[1], o = U(0), l = U();
|
|
156
|
-
return l.current = e,
|
|
157
|
+
return l.current = e, ba(function() {
|
|
157
158
|
var i;
|
|
158
159
|
(i = l.current) === null || i === void 0 || i.call(l);
|
|
159
160
|
}, [n]), function() {
|
|
@@ -490,7 +491,7 @@ var Ba = function(t) {
|
|
|
490
491
|
ne(ne({}, e), {}, {
|
|
491
492
|
tabs: P
|
|
492
493
|
})
|
|
493
|
-
), nt = I(Gt, 2), Vt = nt[0], Kt = nt[1], rt =
|
|
494
|
+
), nt = I(Gt, 2), Vt = nt[0], Kt = nt[1], rt = ma(function() {
|
|
494
495
|
var T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : l, u = Re.get(T) || {
|
|
495
496
|
width: 0,
|
|
496
497
|
height: 0,
|
|
@@ -637,7 +638,7 @@ var Ba = function(t) {
|
|
|
637
638
|
return v ? i ? (Ve = S > 0, Ge = S !== ge) : (Ge = S < 0, Ve = S !== me) : (vt = F < 0, bt = F !== me), /* @__PURE__ */ c.createElement(Xe, {
|
|
638
639
|
onResize: Me
|
|
639
640
|
}, /* @__PURE__ */ c.createElement("div", {
|
|
640
|
-
ref:
|
|
641
|
+
ref: pa(t, B),
|
|
641
642
|
role: "tablist",
|
|
642
643
|
"aria-orientation": v ? "horizontal" : "vertical",
|
|
643
644
|
className: J("".concat(p, "-nav"), a),
|
|
@@ -729,7 +730,7 @@ var Ha = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"],
|
|
|
729
730
|
className: J("".concat(s, "-content"), "".concat(s, "-content-").concat(o), Y({}, "".concat(s, "-content-animated"), m))
|
|
730
731
|
}, d.map(function(_) {
|
|
731
732
|
var R = _.key, O = _.forceRender, C = _.style, z = _.className, h = _.destroyInactiveTabPane, p = De(_, Ha), P = R === n;
|
|
732
|
-
return /* @__PURE__ */ c.createElement(
|
|
733
|
+
return /* @__PURE__ */ c.createElement(ga, fe({
|
|
733
734
|
key: R,
|
|
734
735
|
visible: P,
|
|
735
736
|
forceRender: O,
|
|
@@ -866,7 +867,7 @@ function Xa(e) {
|
|
|
866
867
|
} : a = Object.assign({
|
|
867
868
|
inkBar: !0
|
|
868
869
|
}, typeof t == "object" ? t : {}), a.tabPane && (a.tabPaneMotion = Object.assign(Object.assign({}, Ka), {
|
|
869
|
-
motionName:
|
|
870
|
+
motionName: Ca(e, "switch")
|
|
870
871
|
})), a;
|
|
871
872
|
}
|
|
872
873
|
var Ua = function(e, t) {
|
|
@@ -1076,7 +1077,7 @@ const Ya = (e) => {
|
|
|
1076
1077
|
borderRadius: e.borderRadiusLG,
|
|
1077
1078
|
outline: "none",
|
|
1078
1079
|
boxShadow: e.boxShadowSecondary,
|
|
1079
|
-
"&-item": Object.assign(Object.assign({},
|
|
1080
|
+
"&-item": Object.assign(Object.assign({}, ya), {
|
|
1080
1081
|
display: "flex",
|
|
1081
1082
|
alignItems: "center",
|
|
1082
1083
|
minWidth: e.tabsDropdownWidth,
|
|
@@ -1742,8 +1743,8 @@ const Ya = (e) => {
|
|
|
1742
1743
|
itemActiveColor: e.colorPrimaryActive,
|
|
1743
1744
|
cardGutter: e.marginXXS / 2
|
|
1744
1745
|
};
|
|
1745
|
-
}, on =
|
|
1746
|
-
const t =
|
|
1746
|
+
}, on = ha("Tabs", (e) => {
|
|
1747
|
+
const t = $a(e, {
|
|
1747
1748
|
// `cardPadding` is empty by default, so we could calculate with dynamic `cardHeight`
|
|
1748
1749
|
tabsCardPadding: e.cardPadding,
|
|
1749
1750
|
dropdownEdgeChildVerticalPadding: e.paddingXXS,
|
|
@@ -1791,7 +1792,7 @@ const kt = (e) => {
|
|
|
1791
1792
|
tabs: f,
|
|
1792
1793
|
getPrefixCls: F,
|
|
1793
1794
|
getPopupContainer: de
|
|
1794
|
-
} = c.useContext(
|
|
1795
|
+
} = c.useContext(Sa), G = F("tabs", K), Q = _a(G), [ve, w, k] = on(G, Q);
|
|
1795
1796
|
let V;
|
|
1796
1797
|
_ === "editable-card" && (V = {
|
|
1797
1798
|
onEdit: (oe, $e) => {
|
|
@@ -1810,7 +1811,7 @@ const kt = (e) => {
|
|
|
1810
1811
|
const oe = Pt("Tabs");
|
|
1811
1812
|
process.env.NODE_ENV !== "production" && oe(!("onPrevClick" in e) && !("onNextClick" in e), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."), process.env.NODE_ENV !== "production" && oe(!(y || f != null && f.indicatorSize), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.");
|
|
1812
1813
|
}
|
|
1813
|
-
const Z =
|
|
1814
|
+
const Z = xa(C), re = qa(x, L), ee = Xa(G, E), he = Object.assign(Object.assign({}, f == null ? void 0 : f.style), v), be = {
|
|
1814
1815
|
align: (a = g == null ? void 0 : g.align) !== null && a !== void 0 ? a : (n = f == null ? void 0 : f.indicator) === null || n === void 0 ? void 0 : n.align,
|
|
1815
1816
|
size: (i = (o = (r = g == null ? void 0 : g.size) !== null && r !== void 0 ? r : y) !== null && o !== void 0 ? o : (l = f == null ? void 0 : f.indicator) === null || l === void 0 ? void 0 : l.size) !== null && i !== void 0 ? i : f == null ? void 0 : f.indicatorSize
|
|
1816
1817
|
};
|
|
@@ -22570,19 +22570,19 @@ Object.defineProperty(Zf, "SizeContext", {
|
|
|
22570
22570
|
process.env.NODE_ENV !== "production" && (Zf.displayName = "ConfigProvider");
|
|
22571
22571
|
export {
|
|
22572
22572
|
qM as $,
|
|
22573
|
-
|
|
22574
|
-
|
|
22573
|
+
QM as A,
|
|
22574
|
+
Fz as B,
|
|
22575
22575
|
xv as C,
|
|
22576
22576
|
ZC as D,
|
|
22577
|
-
|
|
22578
|
-
|
|
22579
|
-
|
|
22580
|
-
|
|
22581
|
-
|
|
22582
|
-
|
|
22583
|
-
|
|
22577
|
+
YM as E,
|
|
22578
|
+
Fy as F,
|
|
22579
|
+
Ab as G,
|
|
22580
|
+
qf as H,
|
|
22581
|
+
Xz as I,
|
|
22582
|
+
Ub as J,
|
|
22583
|
+
tb as K,
|
|
22584
22584
|
fR as L,
|
|
22585
|
-
|
|
22585
|
+
hN as M,
|
|
22586
22586
|
Kz as N,
|
|
22587
22587
|
Pz as O,
|
|
22588
22588
|
Qz as P,
|
|
@@ -22607,31 +22607,32 @@ export {
|
|
|
22607
22607
|
Vs as a6,
|
|
22608
22608
|
aN as a7,
|
|
22609
22609
|
tN as a8,
|
|
22610
|
-
|
|
22611
|
-
|
|
22610
|
+
vb as a9,
|
|
22611
|
+
FC as aa,
|
|
22612
|
+
oN as ab,
|
|
22612
22613
|
Vz as b,
|
|
22613
22614
|
pE as c,
|
|
22614
|
-
|
|
22615
|
-
|
|
22616
|
-
|
|
22617
|
-
|
|
22618
|
-
|
|
22615
|
+
qC as d,
|
|
22616
|
+
xo as e,
|
|
22617
|
+
IC as f,
|
|
22618
|
+
Gy as g,
|
|
22619
|
+
Yb as h,
|
|
22619
22620
|
FM as i,
|
|
22620
|
-
|
|
22621
|
-
|
|
22621
|
+
Gz as j,
|
|
22622
|
+
Yz as k,
|
|
22622
22623
|
Xy as l,
|
|
22623
22624
|
CR as m,
|
|
22624
|
-
|
|
22625
|
-
|
|
22626
|
-
|
|
22627
|
-
|
|
22628
|
-
|
|
22629
|
-
|
|
22630
|
-
|
|
22625
|
+
Wz as n,
|
|
22626
|
+
Eo as o,
|
|
22627
|
+
XN as p,
|
|
22628
|
+
Zf as q,
|
|
22629
|
+
YN as r,
|
|
22630
|
+
mz as s,
|
|
22631
|
+
WM as t,
|
|
22631
22632
|
eE as u,
|
|
22632
|
-
|
|
22633
|
-
|
|
22634
|
-
|
|
22635
|
-
|
|
22636
|
-
|
|
22633
|
+
Iz as v,
|
|
22634
|
+
GN as w,
|
|
22635
|
+
$y as x,
|
|
22636
|
+
Iy as y,
|
|
22637
|
+
Hb as z
|
|
22637
22638
|
};
|