@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,31 +1,34 @@
|
|
|
1
|
-
import { d as ne } from "
|
|
1
|
+
import { d as ne } from "../../styled-components.browser.esm-02f500bc.js";
|
|
2
2
|
import * as c from "react";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
import X, { forwardRef as te, useRef as G, useImperativeHandle as ae } from "react";
|
|
4
|
+
import { e as ce, f as le, c as I, h as M, a as ie, _ as L } from "../../presets-83ccb923.js";
|
|
5
|
+
import { u as se, o as de } from "../../isVisible-729780f5.js";
|
|
6
|
+
import { w as W, g as ue, m as be, r as z, o as he, p as q, C as K, D as fe, q as pe, t as xe, v as H } from "../../index-4003d75b.js";
|
|
7
|
+
import { T as Ce, W as ve } from "../../index-e2b72ca8.js";
|
|
8
|
+
import { F as ge, u as U } from "../../context-3b8a39af.js";
|
|
9
|
+
import "react-dom";
|
|
10
|
+
import "../../reactNode-f4391605.js";
|
|
11
|
+
var me = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"], ke = /* @__PURE__ */ te(function(e, o) {
|
|
12
|
+
var r = e.prefixCls, n = r === void 0 ? "rc-checkbox" : r, s = e.className, C = e.style, $ = e.checked, f = e.disabled, O = e.defaultChecked, y = O === void 0 ? !1 : O, d = e.type, S = d === void 0 ? "checkbox" : d, P = e.title, l = e.onChange, E = ce(e, me), v = G(null), u = G(null), t = se(y, {
|
|
10
13
|
value: $
|
|
11
|
-
}), _ =
|
|
12
|
-
ae(
|
|
14
|
+
}), _ = le(t, 2), N = _[0], A = _[1];
|
|
15
|
+
ae(o, function() {
|
|
13
16
|
return {
|
|
14
17
|
focus: function(i) {
|
|
15
|
-
var
|
|
16
|
-
(
|
|
18
|
+
var h;
|
|
19
|
+
(h = v.current) === null || h === void 0 || h.focus(i);
|
|
17
20
|
},
|
|
18
21
|
blur: function() {
|
|
19
22
|
var i;
|
|
20
|
-
(i =
|
|
23
|
+
(i = v.current) === null || i === void 0 || i.blur();
|
|
21
24
|
},
|
|
22
|
-
input:
|
|
25
|
+
input: v.current,
|
|
23
26
|
nativeElement: u.current
|
|
24
27
|
};
|
|
25
28
|
});
|
|
26
|
-
var b = I(
|
|
27
|
-
|
|
28
|
-
target:
|
|
29
|
+
var b = I(n, s, M(M({}, "".concat(n, "-checked"), N), "".concat(n, "-disabled"), f)), p = function(i) {
|
|
30
|
+
f || ("checked" in e || A(i.target.checked), l == null || l({
|
|
31
|
+
target: L(L({}, e), {}, {
|
|
29
32
|
type: S,
|
|
30
33
|
checked: i.target.checked
|
|
31
34
|
}),
|
|
@@ -43,38 +46,38 @@ var ge = ["prefixCls", "className", "style", "checked", "disabled", "defaultChec
|
|
|
43
46
|
title: P,
|
|
44
47
|
style: C,
|
|
45
48
|
ref: u
|
|
46
|
-
}, /* @__PURE__ */ c.createElement("input",
|
|
47
|
-
className: "".concat(
|
|
48
|
-
ref:
|
|
49
|
+
}, /* @__PURE__ */ c.createElement("input", ie({}, E, {
|
|
50
|
+
className: "".concat(n, "-input"),
|
|
51
|
+
ref: v,
|
|
49
52
|
onChange: p,
|
|
50
|
-
disabled:
|
|
53
|
+
disabled: f,
|
|
51
54
|
checked: !!N,
|
|
52
55
|
type: S
|
|
53
56
|
})), /* @__PURE__ */ c.createElement("span", {
|
|
54
|
-
className: "".concat(
|
|
57
|
+
className: "".concat(n, "-inner")
|
|
55
58
|
}));
|
|
56
59
|
});
|
|
57
|
-
function
|
|
58
|
-
const
|
|
59
|
-
W.cancel(
|
|
60
|
+
function $e(e) {
|
|
61
|
+
const o = X.useRef(null), r = () => {
|
|
62
|
+
W.cancel(o.current), o.current = null;
|
|
60
63
|
};
|
|
61
64
|
return [() => {
|
|
62
|
-
|
|
63
|
-
|
|
65
|
+
r(), o.current = W(() => {
|
|
66
|
+
o.current = null;
|
|
64
67
|
});
|
|
65
68
|
}, (C) => {
|
|
66
|
-
|
|
69
|
+
o.current && (C.stopPropagation(), r()), e == null || e(C);
|
|
67
70
|
}];
|
|
68
71
|
}
|
|
69
|
-
const
|
|
72
|
+
const ye = (e) => {
|
|
70
73
|
const {
|
|
71
|
-
checkboxCls:
|
|
72
|
-
} = e,
|
|
74
|
+
checkboxCls: o
|
|
75
|
+
} = e, r = `${o}-wrapper`;
|
|
73
76
|
return [
|
|
74
77
|
// ===================== Basic =====================
|
|
75
78
|
{
|
|
76
79
|
// Group
|
|
77
|
-
[`${
|
|
80
|
+
[`${o}-group`]: Object.assign(Object.assign({}, z(e)), {
|
|
78
81
|
display: "inline-flex",
|
|
79
82
|
flexWrap: "wrap",
|
|
80
83
|
columnGap: e.marginXS,
|
|
@@ -84,7 +87,7 @@ const $e = (e) => {
|
|
|
84
87
|
}
|
|
85
88
|
}),
|
|
86
89
|
// Wrapper
|
|
87
|
-
[
|
|
90
|
+
[r]: Object.assign(Object.assign({}, z(e)), {
|
|
88
91
|
display: "inline-flex",
|
|
89
92
|
alignItems: "baseline",
|
|
90
93
|
cursor: "pointer",
|
|
@@ -96,10 +99,10 @@ const $e = (e) => {
|
|
|
96
99
|
content: "'\\a0'"
|
|
97
100
|
},
|
|
98
101
|
// Checkbox near checkbox
|
|
99
|
-
[`& + ${
|
|
102
|
+
[`& + ${r}`]: {
|
|
100
103
|
marginInlineStart: 0
|
|
101
104
|
},
|
|
102
|
-
[`&${
|
|
105
|
+
[`&${r}-in-form-item`]: {
|
|
103
106
|
'input[type="checkbox"]': {
|
|
104
107
|
width: 14,
|
|
105
108
|
// FIXME: magic
|
|
@@ -109,7 +112,7 @@ const $e = (e) => {
|
|
|
109
112
|
}
|
|
110
113
|
}),
|
|
111
114
|
// Wrapper > Checkbox
|
|
112
|
-
[
|
|
115
|
+
[o]: Object.assign(Object.assign({}, z(e)), {
|
|
113
116
|
position: "relative",
|
|
114
117
|
whiteSpace: "nowrap",
|
|
115
118
|
lineHeight: 1,
|
|
@@ -119,7 +122,7 @@ const $e = (e) => {
|
|
|
119
122
|
// Ref: https://github.com/ant-design/ant-design/issues/41564
|
|
120
123
|
alignSelf: "center",
|
|
121
124
|
// Wrapper > Checkbox > input
|
|
122
|
-
[`${
|
|
125
|
+
[`${o}-input`]: {
|
|
123
126
|
position: "absolute",
|
|
124
127
|
// Since baseline align will get additional space offset,
|
|
125
128
|
// we need to move input to top to make it align with text.
|
|
@@ -129,10 +132,10 @@ const $e = (e) => {
|
|
|
129
132
|
cursor: "pointer",
|
|
130
133
|
opacity: 0,
|
|
131
134
|
margin: 0,
|
|
132
|
-
[`&:focus-visible + ${
|
|
135
|
+
[`&:focus-visible + ${o}-inner`]: Object.assign({}, he(e))
|
|
133
136
|
},
|
|
134
137
|
// Wrapper > Checkbox > inner
|
|
135
|
-
[`${
|
|
138
|
+
[`${o}-inner`]: {
|
|
136
139
|
boxSizing: "border-box",
|
|
137
140
|
display: "block",
|
|
138
141
|
width: e.checkboxSize,
|
|
@@ -171,19 +174,19 @@ const $e = (e) => {
|
|
|
171
174
|
{
|
|
172
175
|
// Wrapper & Wrapper > Checkbox
|
|
173
176
|
[`
|
|
174
|
-
${
|
|
175
|
-
${
|
|
177
|
+
${r}:not(${r}-disabled),
|
|
178
|
+
${o}:not(${o}-disabled)
|
|
176
179
|
`]: {
|
|
177
|
-
[`&:hover ${
|
|
180
|
+
[`&:hover ${o}-inner`]: {
|
|
178
181
|
borderColor: e.colorPrimary
|
|
179
182
|
}
|
|
180
183
|
},
|
|
181
|
-
[`${
|
|
182
|
-
[`&:hover ${
|
|
184
|
+
[`${r}:not(${r}-disabled)`]: {
|
|
185
|
+
[`&:hover ${o}-checked:not(${o}-disabled) ${o}-inner`]: {
|
|
183
186
|
backgroundColor: e.colorPrimaryHover,
|
|
184
187
|
borderColor: "transparent"
|
|
185
188
|
},
|
|
186
|
-
[`&:hover ${
|
|
189
|
+
[`&:hover ${o}-checked:not(${o}-disabled):after`]: {
|
|
187
190
|
borderColor: e.colorPrimaryHover
|
|
188
191
|
}
|
|
189
192
|
}
|
|
@@ -191,8 +194,8 @@ const $e = (e) => {
|
|
|
191
194
|
// ==================== Checked ====================
|
|
192
195
|
{
|
|
193
196
|
// Wrapper > Checkbox
|
|
194
|
-
[`${
|
|
195
|
-
[`${
|
|
197
|
+
[`${o}-checked`]: {
|
|
198
|
+
[`${o}-inner`]: {
|
|
196
199
|
backgroundColor: e.colorPrimary,
|
|
197
200
|
borderColor: e.colorPrimary,
|
|
198
201
|
"&:after": {
|
|
@@ -203,10 +206,10 @@ const $e = (e) => {
|
|
|
203
206
|
}
|
|
204
207
|
},
|
|
205
208
|
[`
|
|
206
|
-
${
|
|
207
|
-
${
|
|
209
|
+
${r}-checked:not(${r}-disabled),
|
|
210
|
+
${o}-checked:not(${o}-disabled)
|
|
208
211
|
`]: {
|
|
209
|
-
[`&:hover ${
|
|
212
|
+
[`&:hover ${o}-inner`]: {
|
|
210
213
|
backgroundColor: e.colorPrimaryHover,
|
|
211
214
|
borderColor: "transparent"
|
|
212
215
|
}
|
|
@@ -214,10 +217,10 @@ const $e = (e) => {
|
|
|
214
217
|
},
|
|
215
218
|
// ================= Indeterminate =================
|
|
216
219
|
{
|
|
217
|
-
[
|
|
220
|
+
[o]: {
|
|
218
221
|
"&-indeterminate": {
|
|
219
222
|
// Wrapper > Checkbox > inner
|
|
220
|
-
[`${
|
|
223
|
+
[`${o}-inner`]: {
|
|
221
224
|
backgroundColor: `${e.colorBgContainer} !important`,
|
|
222
225
|
borderColor: `${e.colorBorder} !important`,
|
|
223
226
|
"&:after": {
|
|
@@ -233,7 +236,7 @@ const $e = (e) => {
|
|
|
233
236
|
}
|
|
234
237
|
},
|
|
235
238
|
// https://github.com/ant-design/ant-design/issues/50074
|
|
236
|
-
[`&:hover ${
|
|
239
|
+
[`&:hover ${o}-inner`]: {
|
|
237
240
|
backgroundColor: `${e.colorBgContainer} !important`,
|
|
238
241
|
borderColor: `${e.colorPrimary} !important`
|
|
239
242
|
}
|
|
@@ -243,20 +246,20 @@ const $e = (e) => {
|
|
|
243
246
|
// ==================== Disable ====================
|
|
244
247
|
{
|
|
245
248
|
// Wrapper
|
|
246
|
-
[`${
|
|
249
|
+
[`${r}-disabled`]: {
|
|
247
250
|
cursor: "not-allowed"
|
|
248
251
|
},
|
|
249
252
|
// Wrapper > Checkbox
|
|
250
|
-
[`${
|
|
253
|
+
[`${o}-disabled`]: {
|
|
251
254
|
// Wrapper > Checkbox > input
|
|
252
|
-
[`&, ${
|
|
255
|
+
[`&, ${o}-input`]: {
|
|
253
256
|
cursor: "not-allowed",
|
|
254
257
|
// Disabled for native input to enable Tooltip event handler
|
|
255
258
|
// ref: https://github.com/ant-design/ant-design/issues/39822#issuecomment-1365075901
|
|
256
259
|
pointerEvents: "none"
|
|
257
260
|
},
|
|
258
261
|
// Wrapper > Checkbox > inner
|
|
259
|
-
[`${
|
|
262
|
+
[`${o}-inner`]: {
|
|
260
263
|
background: e.colorBgContainerDisabled,
|
|
261
264
|
borderColor: e.colorBorder,
|
|
262
265
|
"&:after": {
|
|
@@ -269,82 +272,84 @@ const $e = (e) => {
|
|
|
269
272
|
"& + span": {
|
|
270
273
|
color: e.colorTextDisabled
|
|
271
274
|
},
|
|
272
|
-
[`&${
|
|
275
|
+
[`&${o}-indeterminate ${o}-inner::after`]: {
|
|
273
276
|
background: e.colorTextDisabled
|
|
274
277
|
}
|
|
275
278
|
}
|
|
276
279
|
}
|
|
277
280
|
];
|
|
278
281
|
};
|
|
279
|
-
function
|
|
280
|
-
const
|
|
282
|
+
function Se(e, o) {
|
|
283
|
+
const r = be(o, {
|
|
281
284
|
checkboxCls: `.${e}`,
|
|
282
|
-
checkboxSize:
|
|
285
|
+
checkboxSize: o.controlInteractiveSize
|
|
283
286
|
});
|
|
284
|
-
return [
|
|
287
|
+
return [ye(r)];
|
|
285
288
|
}
|
|
286
|
-
const
|
|
289
|
+
const J = ue("Checkbox", (e, o) => {
|
|
287
290
|
let {
|
|
288
|
-
prefixCls:
|
|
289
|
-
} =
|
|
290
|
-
return [
|
|
291
|
-
}),
|
|
292
|
-
var
|
|
293
|
-
var
|
|
294
|
-
for (var
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
291
|
+
prefixCls: r
|
|
292
|
+
} = o;
|
|
293
|
+
return [Se(r, e)];
|
|
294
|
+
}), Ae = /* @__PURE__ */ X.createContext(null), Q = Ae;
|
|
295
|
+
var we = globalThis && globalThis.__rest || function(e, o) {
|
|
296
|
+
var r = {};
|
|
297
|
+
for (var n in e)
|
|
298
|
+
Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (r[n] = e[n]);
|
|
299
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
300
|
+
for (var s = 0, n = Object.getOwnPropertySymbols(e); s < n.length; s++)
|
|
301
|
+
o.indexOf(n[s]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[s]) && (r[n[s]] = e[n[s]]);
|
|
302
|
+
return r;
|
|
298
303
|
};
|
|
299
|
-
const
|
|
300
|
-
var
|
|
304
|
+
const Oe = (e, o) => {
|
|
305
|
+
var r;
|
|
301
306
|
const {
|
|
302
|
-
prefixCls:
|
|
307
|
+
prefixCls: n,
|
|
303
308
|
className: s,
|
|
304
309
|
rootClassName: C,
|
|
305
310
|
children: $,
|
|
306
|
-
indeterminate:
|
|
311
|
+
indeterminate: f = !1,
|
|
307
312
|
style: O,
|
|
308
313
|
onMouseEnter: y,
|
|
309
314
|
onMouseLeave: d,
|
|
310
315
|
skipGroup: S = !1,
|
|
311
316
|
disabled: P
|
|
312
|
-
} = e, l =
|
|
317
|
+
} = e, l = we(e, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]), {
|
|
313
318
|
getPrefixCls: E,
|
|
314
|
-
direction:
|
|
319
|
+
direction: v,
|
|
315
320
|
checkbox: u
|
|
316
|
-
} = c.useContext(
|
|
321
|
+
} = c.useContext(K), t = c.useContext(Q), {
|
|
317
322
|
isFormItemInput: _
|
|
318
|
-
} = c.useContext(
|
|
323
|
+
} = c.useContext(ge), N = c.useContext(fe), A = (r = (t == null ? void 0 : t.disabled) || P) !== null && r !== void 0 ? r : N, b = c.useRef(l.value), p = c.useRef(null), w = pe(o, p);
|
|
319
324
|
if (process.env.NODE_ENV !== "production") {
|
|
320
|
-
const x =
|
|
321
|
-
process.env.NODE_ENV !== "production" && x("checked" in l || !!
|
|
325
|
+
const x = xe("Checkbox");
|
|
326
|
+
process.env.NODE_ENV !== "production" && x("checked" in l || !!t || !("value" in l), "usage", "`value` is not a valid prop, do you mean `checked`?");
|
|
322
327
|
}
|
|
323
328
|
c.useEffect(() => {
|
|
324
|
-
|
|
329
|
+
t == null || t.registerValue(l.value);
|
|
325
330
|
}, []), c.useEffect(() => {
|
|
326
331
|
if (!S)
|
|
327
|
-
return l.value !== b.current && (
|
|
332
|
+
return l.value !== b.current && (t == null || t.cancelValue(b.current), t == null || t.registerValue(l.value), b.current = l.value), () => t == null ? void 0 : t.cancelValue(l.value);
|
|
328
333
|
}, [l.value]), c.useEffect(() => {
|
|
329
334
|
var x;
|
|
330
|
-
!((x = p.current) === null || x === void 0) && x.input && (p.current.input.indeterminate =
|
|
331
|
-
}, [
|
|
332
|
-
const i = E("checkbox",
|
|
333
|
-
|
|
334
|
-
l.onChange && l.onChange.apply(l, arguments),
|
|
335
|
+
!((x = p.current) === null || x === void 0) && x.input && (p.current.input.indeterminate = f);
|
|
336
|
+
}, [f]);
|
|
337
|
+
const i = E("checkbox", n), h = U(i), [j, F, D] = J(i, h), g = Object.assign({}, l);
|
|
338
|
+
t && !S && (g.onChange = function() {
|
|
339
|
+
l.onChange && l.onChange.apply(l, arguments), t.toggleOption && t.toggleOption({
|
|
335
340
|
label: $,
|
|
336
341
|
value: l.value
|
|
337
342
|
});
|
|
338
|
-
}, g.name =
|
|
343
|
+
}, g.name = t.name, g.checked = t.value.includes(l.value));
|
|
339
344
|
const B = I(`${i}-wrapper`, {
|
|
340
|
-
[`${i}-rtl`]:
|
|
345
|
+
[`${i}-rtl`]: v === "rtl",
|
|
341
346
|
[`${i}-wrapper-checked`]: g.checked,
|
|
342
347
|
[`${i}-wrapper-disabled`]: A,
|
|
343
348
|
[`${i}-wrapper-in-form-item`]: _
|
|
344
|
-
}, u == null ? void 0 : u.className, s, C, D,
|
|
345
|
-
[`${i}-indeterminate`]:
|
|
346
|
-
},
|
|
347
|
-
return j(/* @__PURE__ */ c.createElement(
|
|
349
|
+
}, u == null ? void 0 : u.className, s, C, D, h, F), a = I({
|
|
350
|
+
[`${i}-indeterminate`]: f
|
|
351
|
+
}, Ce, F), [m, k] = $e(g.onClick);
|
|
352
|
+
return j(/* @__PURE__ */ c.createElement(ve, {
|
|
348
353
|
component: "Checkbox",
|
|
349
354
|
disabled: A
|
|
350
355
|
}, /* @__PURE__ */ c.createElement("label", {
|
|
@@ -352,66 +357,69 @@ const Ae = (e, r) => {
|
|
|
352
357
|
style: Object.assign(Object.assign({}, u == null ? void 0 : u.style), O),
|
|
353
358
|
onMouseEnter: y,
|
|
354
359
|
onMouseLeave: d,
|
|
355
|
-
onClick:
|
|
360
|
+
onClick: m
|
|
356
361
|
}, /* @__PURE__ */ c.createElement(ke, Object.assign({}, g, {
|
|
357
|
-
onClick:
|
|
362
|
+
onClick: k,
|
|
358
363
|
prefixCls: i,
|
|
359
|
-
className:
|
|
364
|
+
className: a,
|
|
360
365
|
disabled: A,
|
|
361
366
|
ref: w
|
|
362
367
|
})), $ !== void 0 && /* @__PURE__ */ c.createElement("span", null, $))));
|
|
363
|
-
},
|
|
364
|
-
process.env.NODE_ENV !== "production" && (
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
368
|
+
}, Y = /* @__PURE__ */ c.forwardRef(Oe);
|
|
369
|
+
process.env.NODE_ENV !== "production" && (Y.displayName = "Checkbox");
|
|
370
|
+
const Z = Y;
|
|
371
|
+
var Ee = globalThis && globalThis.__rest || function(e, o) {
|
|
372
|
+
var r = {};
|
|
373
|
+
for (var n in e)
|
|
374
|
+
Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (r[n] = e[n]);
|
|
375
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
376
|
+
for (var s = 0, n = Object.getOwnPropertySymbols(e); s < n.length; s++)
|
|
377
|
+
o.indexOf(n[s]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[s]) && (r[n[s]] = e[n[s]]);
|
|
378
|
+
return r;
|
|
371
379
|
};
|
|
372
|
-
const
|
|
380
|
+
const _e = /* @__PURE__ */ c.forwardRef((e, o) => {
|
|
373
381
|
const {
|
|
374
|
-
defaultValue:
|
|
375
|
-
children:
|
|
382
|
+
defaultValue: r,
|
|
383
|
+
children: n,
|
|
376
384
|
options: s = [],
|
|
377
385
|
prefixCls: C,
|
|
378
386
|
className: $,
|
|
379
|
-
rootClassName:
|
|
387
|
+
rootClassName: f,
|
|
380
388
|
style: O,
|
|
381
389
|
onChange: y
|
|
382
|
-
} = e, d =
|
|
390
|
+
} = e, d = Ee(e, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]), {
|
|
383
391
|
getPrefixCls: S,
|
|
384
392
|
direction: P
|
|
385
|
-
} = c.useContext(
|
|
393
|
+
} = c.useContext(K), [l, E] = c.useState(d.value || r || []), [v, u] = c.useState([]);
|
|
386
394
|
c.useEffect(() => {
|
|
387
395
|
"value" in d && E(d.value || []);
|
|
388
396
|
}, [d.value]);
|
|
389
|
-
const
|
|
390
|
-
label:
|
|
391
|
-
value:
|
|
392
|
-
} :
|
|
393
|
-
u((
|
|
394
|
-
}, N = (
|
|
395
|
-
u((
|
|
396
|
-
}, A = (
|
|
397
|
-
const
|
|
398
|
-
|
|
399
|
-
const
|
|
400
|
-
return
|
|
397
|
+
const t = c.useMemo(() => s.map((a) => typeof a == "string" || typeof a == "number" ? {
|
|
398
|
+
label: a,
|
|
399
|
+
value: a
|
|
400
|
+
} : a), [s]), _ = (a) => {
|
|
401
|
+
u((m) => m.filter((k) => k !== a));
|
|
402
|
+
}, N = (a) => {
|
|
403
|
+
u((m) => [].concat(H(m), [a]));
|
|
404
|
+
}, A = (a) => {
|
|
405
|
+
const m = l.indexOf(a.value), k = H(l);
|
|
406
|
+
m === -1 ? k.push(a.value) : k.splice(m, 1), "value" in d || E(k), y == null || y(k.filter((x) => v.includes(x)).sort((x, ee) => {
|
|
407
|
+
const oe = t.findIndex((T) => T.value === x), re = t.findIndex((T) => T.value === ee);
|
|
408
|
+
return oe - re;
|
|
401
409
|
}));
|
|
402
|
-
}, b = S("checkbox", C), p = `${b}-group`, w =
|
|
410
|
+
}, b = S("checkbox", C), p = `${b}-group`, w = U(b), [i, h, j] = J(b, w), F = de(d, ["value", "disabled"]), D = s.length ? t.map((a) => /* @__PURE__ */ c.createElement(Z, {
|
|
403
411
|
prefixCls: b,
|
|
404
|
-
key:
|
|
405
|
-
disabled: "disabled" in
|
|
406
|
-
value:
|
|
407
|
-
checked: l.includes(
|
|
408
|
-
onChange:
|
|
412
|
+
key: a.value.toString(),
|
|
413
|
+
disabled: "disabled" in a ? a.disabled : d.disabled,
|
|
414
|
+
value: a.value,
|
|
415
|
+
checked: l.includes(a.value),
|
|
416
|
+
onChange: a.onChange,
|
|
409
417
|
className: `${p}-item`,
|
|
410
|
-
style:
|
|
411
|
-
title:
|
|
412
|
-
id:
|
|
413
|
-
required:
|
|
414
|
-
},
|
|
418
|
+
style: a.style,
|
|
419
|
+
title: a.title,
|
|
420
|
+
id: a.id,
|
|
421
|
+
required: a.required
|
|
422
|
+
}, a.label)) : n, g = {
|
|
415
423
|
toggleOption: A,
|
|
416
424
|
value: l,
|
|
417
425
|
disabled: d.disabled,
|
|
@@ -421,20 +429,20 @@ const Oe = /* @__PURE__ */ c.forwardRef((e, r) => {
|
|
|
421
429
|
cancelValue: _
|
|
422
430
|
}, B = I(p, {
|
|
423
431
|
[`${p}-rtl`]: P === "rtl"
|
|
424
|
-
}, $,
|
|
432
|
+
}, $, f, j, w, h);
|
|
425
433
|
return i(/* @__PURE__ */ c.createElement("div", Object.assign({
|
|
426
434
|
className: B,
|
|
427
435
|
style: O
|
|
428
436
|
}, F, {
|
|
429
|
-
ref:
|
|
430
|
-
}), /* @__PURE__ */ c.createElement(
|
|
437
|
+
ref: o
|
|
438
|
+
}), /* @__PURE__ */ c.createElement(Q.Provider, {
|
|
431
439
|
value: g
|
|
432
440
|
}, D)));
|
|
433
|
-
}), V =
|
|
434
|
-
V.Group =
|
|
441
|
+
}), Ne = _e, V = Z;
|
|
442
|
+
V.Group = Ne;
|
|
435
443
|
V.__ANT_CHECKBOX = !0;
|
|
436
444
|
process.env.NODE_ENV !== "production" && (V.displayName = "Checkbox");
|
|
437
|
-
const R = "#384DF6",
|
|
445
|
+
const Pe = V, R = "#384DF6", Fe = ({ colors: e, borderRadius: o }, r = "primary", n = "active") => `
|
|
438
446
|
.ant-checkbox-inner {
|
|
439
447
|
background-color: #FFFFFF;
|
|
440
448
|
border-color: #9A9A9A;
|
|
@@ -443,7 +451,7 @@ const R = "#384DF6", Ee = ({ colors: e, borderRadius: r }, n = "primary", o = "a
|
|
|
443
451
|
|
|
444
452
|
&::after {
|
|
445
453
|
border-color: #9A9A9A;
|
|
446
|
-
border: 2px solid ${e[
|
|
454
|
+
border: 2px solid ${e[r][n].color};
|
|
447
455
|
border-top: 0;
|
|
448
456
|
border-left: 0;
|
|
449
457
|
content: "";
|
|
@@ -504,7 +512,7 @@ const R = "#384DF6", Ee = ({ colors: e, borderRadius: r }, n = "primary", o = "a
|
|
|
504
512
|
}
|
|
505
513
|
|
|
506
514
|
.ant-checkbox-checked .ant-checkbox-inner::after {
|
|
507
|
-
border-color: ${e[
|
|
515
|
+
border-color: ${e[r].active.color};
|
|
508
516
|
}
|
|
509
517
|
|
|
510
518
|
&:hover .ant-checkbox-inner {
|
|
@@ -524,7 +532,7 @@ const R = "#384DF6", Ee = ({ colors: e, borderRadius: r }, n = "primary", o = "a
|
|
|
524
532
|
}
|
|
525
533
|
|
|
526
534
|
.ant-checkbox-checked .ant-checkbox-inner {
|
|
527
|
-
background-color:${e[
|
|
535
|
+
background-color:${e[r].focussed.ringColor};
|
|
528
536
|
border-color: #6C6C6C;
|
|
529
537
|
}
|
|
530
538
|
|
|
@@ -547,36 +555,36 @@ const R = "#384DF6", Ee = ({ colors: e, borderRadius: r }, n = "primary", o = "a
|
|
|
547
555
|
}
|
|
548
556
|
|
|
549
557
|
&:hover .ant-checkbox-checked .ant-checkbox-inner {
|
|
550
|
-
background-color: ${e[
|
|
558
|
+
background-color: ${e[r].focussed.ringColor};
|
|
551
559
|
border-color: #6C6C6C;
|
|
552
560
|
}
|
|
553
561
|
|
|
554
562
|
.ant-checkbox:focus-visible .ant-checkbox-inner,
|
|
555
563
|
.ant-checkbox-input:focus-visible + .ant-checkbox-inner {
|
|
556
564
|
outline: none;
|
|
557
|
-
box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${e[
|
|
558
|
-
border-radius: ${
|
|
565
|
+
box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${e[r].focussed.ringColor};
|
|
566
|
+
border-radius: ${o.BorderRadiusXs}px;
|
|
559
567
|
border-color: #9A9A9A;
|
|
560
568
|
transition: box-shadow 0.2s ease-in-out;
|
|
561
569
|
}
|
|
562
570
|
|
|
563
571
|
.ant-checkbox-input:focus + .ant-checkbox-inner {
|
|
564
|
-
border-color: ${e[
|
|
572
|
+
border-color: ${e[r].hover.borderColor};
|
|
565
573
|
}
|
|
566
574
|
|
|
567
575
|
&:focus-visible {
|
|
568
576
|
outline: none;
|
|
569
|
-
color: ${e[
|
|
570
|
-
background-color: ${e[
|
|
571
|
-
box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${e[
|
|
572
|
-
border-radius: ${
|
|
577
|
+
color: ${e[r].focussed.color};
|
|
578
|
+
background-color: ${e[r].focussed.backgroundColor};
|
|
579
|
+
box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${e[r].focussed.ringColor};
|
|
580
|
+
border-radius: ${o.BorderRadiusXs}px;
|
|
573
581
|
border-color: #9A9A9A;
|
|
574
582
|
transition: box-shadow 0.2s ease-in-out;
|
|
575
583
|
}
|
|
576
|
-
`,
|
|
577
|
-
${({ theme: e, type:
|
|
584
|
+
`, Me = ne(Pe)`
|
|
585
|
+
${({ theme: e, type: o, state: r }) => Fe(e, o, r)}
|
|
578
586
|
`;
|
|
579
587
|
export {
|
|
580
|
-
|
|
581
|
-
|
|
588
|
+
Me as StyledCheckbox,
|
|
589
|
+
Fe as getGenesisClass
|
|
582
590
|
};
|