@cdx-ui/components 0.0.1-beta.64 → 0.0.1-beta.66
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/lib/commonjs/components/AlertDialog/index.js +12 -10
- package/lib/commonjs/components/AlertDialog/index.js.map +1 -1
- package/lib/commonjs/components/Avatar/index.js +125 -25
- package/lib/commonjs/components/Avatar/index.js.map +1 -1
- package/lib/commonjs/components/Button/index.js +127 -28
- package/lib/commonjs/components/Button/index.js.map +1 -1
- package/lib/commonjs/components/Button/styles.js +9 -3
- package/lib/commonjs/components/Button/styles.js.map +1 -1
- package/lib/commonjs/components/CLAUDE.md +115 -11
- package/lib/commonjs/components/Checkbox/index.js +69 -22
- package/lib/commonjs/components/Checkbox/index.js.map +1 -1
- package/lib/commonjs/components/Checkbox/styles.js +1 -1
- package/lib/commonjs/components/Checkbox/styles.js.map +1 -1
- package/lib/commonjs/components/Chip/index.js +44 -36
- package/lib/commonjs/components/Chip/index.js.map +1 -1
- package/lib/commonjs/components/Chip/styles.js +6 -35
- package/lib/commonjs/components/Chip/styles.js.map +1 -1
- package/lib/commonjs/components/Dialog/index.js +92 -72
- package/lib/commonjs/components/Dialog/index.js.map +1 -1
- package/lib/commonjs/components/Field/index.js +70 -26
- package/lib/commonjs/components/Field/index.js.map +1 -1
- package/lib/commonjs/components/Form/index.js +5 -12
- package/lib/commonjs/components/Form/index.js.map +1 -1
- package/lib/commonjs/components/IconButton/index.js +5 -33
- package/lib/commonjs/components/IconButton/index.js.map +1 -1
- package/lib/commonjs/components/Input/index.js +50 -20
- package/lib/commonjs/components/Input/index.js.map +1 -1
- package/lib/commonjs/components/Link/index.js +14 -7
- package/lib/commonjs/components/Link/index.js.map +1 -1
- package/lib/commonjs/components/ListItem/index.js +129 -54
- package/lib/commonjs/components/ListItem/index.js.map +1 -1
- package/lib/commonjs/components/OtpInput/index.js +94 -28
- package/lib/commonjs/components/OtpInput/index.js.map +1 -1
- package/lib/commonjs/components/ProgressBar/index.js +8 -13
- package/lib/commonjs/components/ProgressBar/index.js.map +1 -1
- package/lib/commonjs/components/Radio/index.js +51 -53
- package/lib/commonjs/components/Radio/index.js.map +1 -1
- package/lib/commonjs/components/Select/index.js +112 -46
- package/lib/commonjs/components/Select/index.js.map +1 -1
- package/lib/commonjs/components/Select/styles.js +2 -2
- package/lib/commonjs/components/Select/styles.js.map +1 -1
- package/lib/commonjs/components/Skeleton/index.js +37 -0
- package/lib/commonjs/components/Skeleton/index.js.map +1 -0
- package/lib/commonjs/components/Skeleton/styles.js +9 -0
- package/lib/commonjs/components/Skeleton/styles.js.map +1 -0
- package/lib/commonjs/components/Switch/BaseSwitch.js +23 -13
- package/lib/commonjs/components/Switch/BaseSwitch.js.map +1 -1
- package/lib/commonjs/components/Switch/BaseSwitch.web.js +25 -21
- package/lib/commonjs/components/Switch/BaseSwitch.web.js.map +1 -1
- package/lib/commonjs/components/Switch/index.js +34 -3
- package/lib/commonjs/components/Switch/index.js.map +1 -1
- package/lib/commonjs/components/Tile/index.js +150 -77
- package/lib/commonjs/components/Tile/index.js.map +1 -1
- package/lib/commonjs/components/index.js +12 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/figma/Chip.figma.js +2 -2
- package/lib/commonjs/figma/Chip.figma.js.map +1 -1
- package/lib/commonjs/utils/positionToDataIcon.js +41 -0
- package/lib/commonjs/utils/positionToDataIcon.js.map +1 -0
- package/lib/module/components/AlertDialog/index.js +13 -11
- package/lib/module/components/AlertDialog/index.js.map +1 -1
- package/lib/module/components/Avatar/index.js +128 -28
- package/lib/module/components/Avatar/index.js.map +1 -1
- package/lib/module/components/Button/index.js +130 -32
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Button/styles.js +8 -2
- package/lib/module/components/Button/styles.js.map +1 -1
- package/lib/module/components/CLAUDE.md +115 -11
- package/lib/module/components/Checkbox/index.js +72 -25
- package/lib/module/components/Checkbox/index.js.map +1 -1
- package/lib/module/components/Checkbox/styles.js +1 -1
- package/lib/module/components/Checkbox/styles.js.map +1 -1
- package/lib/module/components/Chip/index.js +47 -39
- package/lib/module/components/Chip/index.js.map +1 -1
- package/lib/module/components/Chip/styles.js +6 -35
- package/lib/module/components/Chip/styles.js.map +1 -1
- package/lib/module/components/Dialog/index.js +96 -76
- package/lib/module/components/Dialog/index.js.map +1 -1
- package/lib/module/components/Field/index.js +74 -31
- package/lib/module/components/Field/index.js.map +1 -1
- package/lib/module/components/Form/index.js +7 -14
- package/lib/module/components/Form/index.js.map +1 -1
- package/lib/module/components/IconButton/index.js +6 -34
- package/lib/module/components/IconButton/index.js.map +1 -1
- package/lib/module/components/Input/index.js +53 -23
- package/lib/module/components/Input/index.js.map +1 -1
- package/lib/module/components/Link/index.js +16 -8
- package/lib/module/components/Link/index.js.map +1 -1
- package/lib/module/components/ListItem/index.js +134 -59
- package/lib/module/components/ListItem/index.js.map +1 -1
- package/lib/module/components/OtpInput/index.js +94 -28
- package/lib/module/components/OtpInput/index.js.map +1 -1
- package/lib/module/components/ProgressBar/index.js +9 -14
- package/lib/module/components/ProgressBar/index.js.map +1 -1
- package/lib/module/components/Radio/index.js +54 -57
- package/lib/module/components/Radio/index.js.map +1 -1
- package/lib/module/components/Select/index.js +118 -52
- package/lib/module/components/Select/index.js.map +1 -1
- package/lib/module/components/Select/styles.js +2 -2
- package/lib/module/components/Select/styles.js.map +1 -1
- package/lib/module/components/Skeleton/index.js +32 -0
- package/lib/module/components/Skeleton/index.js.map +1 -0
- package/lib/module/components/Skeleton/styles.js +5 -0
- package/lib/module/components/Skeleton/styles.js.map +1 -0
- package/lib/module/components/Switch/BaseSwitch.js +24 -14
- package/lib/module/components/Switch/BaseSwitch.js.map +1 -1
- package/lib/module/components/Switch/BaseSwitch.web.js +26 -22
- package/lib/module/components/Switch/BaseSwitch.web.js.map +1 -1
- package/lib/module/components/Switch/index.js +35 -4
- package/lib/module/components/Switch/index.js.map +1 -1
- package/lib/module/components/Tile/index.js +155 -83
- package/lib/module/components/Tile/index.js.map +1 -1
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/figma/Chip.figma.js +2 -2
- package/lib/module/figma/Chip.figma.js.map +1 -1
- package/lib/module/utils/positionToDataIcon.js +38 -0
- package/lib/module/utils/positionToDataIcon.js.map +1 -0
- package/lib/typescript/components/AlertDialog/index.d.ts.map +1 -1
- package/lib/typescript/components/Avatar/index.d.ts +6 -2
- package/lib/typescript/components/Avatar/index.d.ts.map +1 -1
- package/lib/typescript/components/Button/index.d.ts +31 -8
- package/lib/typescript/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/components/Button/styles.d.ts +2 -1
- package/lib/typescript/components/Button/styles.d.ts.map +1 -1
- package/lib/typescript/components/Checkbox/index.d.ts +3 -1
- package/lib/typescript/components/Checkbox/index.d.ts.map +1 -1
- package/lib/typescript/components/Chip/index.d.ts +19 -9
- package/lib/typescript/components/Chip/index.d.ts.map +1 -1
- package/lib/typescript/components/Chip/styles.d.ts +0 -1
- package/lib/typescript/components/Chip/styles.d.ts.map +1 -1
- package/lib/typescript/components/Dialog/index.d.ts +12 -6
- package/lib/typescript/components/Dialog/index.d.ts.map +1 -1
- package/lib/typescript/components/Dialog/styles.d.ts +1 -1
- package/lib/typescript/components/Field/index.d.ts +14 -7
- package/lib/typescript/components/Field/index.d.ts.map +1 -1
- package/lib/typescript/components/Form/index.d.ts +4 -4
- package/lib/typescript/components/Form/index.d.ts.map +1 -1
- package/lib/typescript/components/IconButton/index.d.ts.map +1 -1
- package/lib/typescript/components/Input/index.d.ts +11 -3
- package/lib/typescript/components/Input/index.d.ts.map +1 -1
- package/lib/typescript/components/Link/index.d.ts +2 -0
- package/lib/typescript/components/Link/index.d.ts.map +1 -1
- package/lib/typescript/components/ListItem/index.d.ts +28 -6
- package/lib/typescript/components/ListItem/index.d.ts.map +1 -1
- package/lib/typescript/components/OtpInput/index.d.ts +1 -1
- package/lib/typescript/components/OtpInput/index.d.ts.map +1 -1
- package/lib/typescript/components/ProgressBar/index.d.ts +4 -4
- package/lib/typescript/components/ProgressBar/index.d.ts.map +1 -1
- package/lib/typescript/components/Radio/index.d.ts +4 -0
- package/lib/typescript/components/Radio/index.d.ts.map +1 -1
- package/lib/typescript/components/Select/index.d.ts +35 -2
- package/lib/typescript/components/Select/index.d.ts.map +1 -1
- package/lib/typescript/components/Select/styles.d.ts.map +1 -1
- package/lib/typescript/components/Skeleton/index.d.ts +9 -0
- package/lib/typescript/components/Skeleton/index.d.ts.map +1 -0
- package/lib/typescript/components/Skeleton/styles.d.ts +4 -0
- package/lib/typescript/components/Skeleton/styles.d.ts.map +1 -0
- package/lib/typescript/components/Switch/BaseSwitch.d.ts +12 -5
- package/lib/typescript/components/Switch/BaseSwitch.d.ts.map +1 -1
- package/lib/typescript/components/Switch/BaseSwitch.web.d.ts +11 -5
- package/lib/typescript/components/Switch/BaseSwitch.web.d.ts.map +1 -1
- package/lib/typescript/components/Switch/index.d.ts +5 -1
- package/lib/typescript/components/Switch/index.d.ts.map +1 -1
- package/lib/typescript/components/Tile/index.d.ts +8 -2
- package/lib/typescript/components/Tile/index.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +1 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/utils/positionToDataIcon.d.ts +29 -0
- package/lib/typescript/utils/positionToDataIcon.d.ts.map +1 -0
- package/package.json +5 -5
- package/src/components/AlertDialog/index.tsx +13 -14
- package/src/components/Avatar/index.tsx +134 -44
- package/src/components/Button/index.tsx +216 -44
- package/src/components/Button/styles.ts +50 -38
- package/src/components/CLAUDE.md +115 -11
- package/src/components/Checkbox/index.tsx +93 -32
- package/src/components/Checkbox/styles.ts +1 -1
- package/src/components/Chip/index.tsx +88 -61
- package/src/components/Chip/styles.ts +6 -18
- package/src/components/Dialog/index.tsx +139 -99
- package/src/components/Field/index.tsx +113 -49
- package/src/components/Form/index.tsx +18 -14
- package/src/components/IconButton/index.tsx +7 -31
- package/src/components/Input/index.tsx +75 -32
- package/src/components/Link/index.tsx +38 -12
- package/src/components/ListItem/index.tsx +158 -73
- package/src/components/OtpInput/index.tsx +126 -43
- package/src/components/ProgressBar/index.tsx +11 -16
- package/src/components/Radio/index.tsx +76 -54
- package/src/components/Select/index.tsx +174 -59
- package/src/components/Select/styles.ts +1 -2
- package/src/components/Skeleton/index.tsx +42 -0
- package/src/components/Skeleton/styles.ts +5 -0
- package/src/components/Switch/BaseSwitch.tsx +38 -16
- package/src/components/Switch/BaseSwitch.web.tsx +28 -35
- package/src/components/Switch/index.tsx +51 -4
- package/src/components/Tile/index.tsx +145 -94
- package/src/components/index.ts +1 -0
- package/src/utils/positionToDataIcon.ts +34 -0
- package/lib/commonjs/components/Field/FieldLabel.js +0 -33
- package/lib/commonjs/components/Field/FieldLabel.js.map +0 -1
- package/lib/commonjs/components/Field/FieldLabel.web.js +0 -22
- package/lib/commonjs/components/Field/FieldLabel.web.js.map +0 -1
- package/lib/commonjs/components/Form/FormRoot.js +0 -25
- package/lib/commonjs/components/Form/FormRoot.js.map +0 -1
- package/lib/commonjs/components/Form/FormRoot.web.js +0 -17
- package/lib/commonjs/components/Form/FormRoot.web.js.map +0 -1
- package/lib/commonjs/components/Input/BaseInput.android.js +0 -20
- package/lib/commonjs/components/Input/BaseInput.android.js.map +0 -1
- package/lib/commonjs/components/Input/BaseInput.js +0 -13
- package/lib/commonjs/components/Input/BaseInput.js.map +0 -1
- package/lib/commonjs/components/Input/BaseInput.web.js +0 -50
- package/lib/commonjs/components/Input/BaseInput.web.js.map +0 -1
- package/lib/commonjs/components/Select/SelectTriggerHost.js +0 -10
- package/lib/commonjs/components/Select/SelectTriggerHost.js.map +0 -1
- package/lib/commonjs/components/Select/SelectTriggerHost.web.js +0 -102
- package/lib/commonjs/components/Select/SelectTriggerHost.web.js.map +0 -1
- package/lib/module/components/Field/FieldLabel.js +0 -29
- package/lib/module/components/Field/FieldLabel.js.map +0 -1
- package/lib/module/components/Field/FieldLabel.web.js +0 -17
- package/lib/module/components/Field/FieldLabel.web.js.map +0 -1
- package/lib/module/components/Form/FormRoot.js +0 -21
- package/lib/module/components/Form/FormRoot.js.map +0 -1
- package/lib/module/components/Form/FormRoot.web.js +0 -12
- package/lib/module/components/Form/FormRoot.web.js.map +0 -1
- package/lib/module/components/Input/BaseInput.android.js +0 -16
- package/lib/module/components/Input/BaseInput.android.js.map +0 -1
- package/lib/module/components/Input/BaseInput.js +0 -4
- package/lib/module/components/Input/BaseInput.js.map +0 -1
- package/lib/module/components/Input/BaseInput.web.js +0 -45
- package/lib/module/components/Input/BaseInput.web.js.map +0 -1
- package/lib/module/components/Select/SelectTriggerHost.js +0 -7
- package/lib/module/components/Select/SelectTriggerHost.js.map +0 -1
- package/lib/module/components/Select/SelectTriggerHost.web.js +0 -97
- package/lib/module/components/Select/SelectTriggerHost.web.js.map +0 -1
- package/lib/typescript/components/Field/FieldLabel.d.ts +0 -18
- package/lib/typescript/components/Field/FieldLabel.d.ts.map +0 -1
- package/lib/typescript/components/Field/FieldLabel.web.d.ts +0 -16
- package/lib/typescript/components/Field/FieldLabel.web.d.ts.map +0 -1
- package/lib/typescript/components/Form/FormRoot.d.ts +0 -14
- package/lib/typescript/components/Form/FormRoot.d.ts.map +0 -1
- package/lib/typescript/components/Form/FormRoot.web.d.ts +0 -10
- package/lib/typescript/components/Form/FormRoot.web.d.ts.map +0 -1
- package/lib/typescript/components/Input/BaseInput.android.d.ts +0 -3
- package/lib/typescript/components/Input/BaseInput.android.d.ts.map +0 -1
- package/lib/typescript/components/Input/BaseInput.d.ts +0 -2
- package/lib/typescript/components/Input/BaseInput.d.ts.map +0 -1
- package/lib/typescript/components/Input/BaseInput.web.d.ts +0 -3
- package/lib/typescript/components/Input/BaseInput.web.d.ts.map +0 -1
- package/lib/typescript/components/Select/SelectTriggerHost.d.ts +0 -3
- package/lib/typescript/components/Select/SelectTriggerHost.d.ts.map +0 -1
- package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts +0 -16
- package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts.map +0 -1
- package/src/components/Field/FieldLabel.tsx +0 -33
- package/src/components/Field/FieldLabel.web.tsx +0 -25
- package/src/components/Form/FormRoot.tsx +0 -20
- package/src/components/Form/FormRoot.web.tsx +0 -12
- package/src/components/Input/BaseInput.android.tsx +0 -13
- package/src/components/Input/BaseInput.tsx +0 -1
- package/src/components/Input/BaseInput.web.tsx +0 -41
- package/src/components/Select/SelectTriggerHost.tsx +0 -4
- package/src/components/Select/SelectTriggerHost.web.tsx +0 -143
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { Text, View } from 'react-native';
|
|
5
5
|
import { Check, CheckIndeterminateSmall } from '@cdx-ui/icons';
|
|
6
|
-
import {
|
|
6
|
+
import { CheckboxRoot as CheckboxRootPrimitive, CheckboxGroup as CheckboxGroupPrimitive, Slot, dataAttributes, mergeDataAttributes, useCheckboxContext } from '@cdx-ui/primitives';
|
|
7
7
|
import { cn } from '@cdx-ui/utils';
|
|
8
8
|
import { Icon } from '../Icon';
|
|
9
9
|
import { checkboxGroupVariants, checkboxIconVariants, checkboxIndicatorVariants, checkboxLabelVariants, checkboxRootVariants } from './styles';
|
|
10
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
-
const CheckboxPrimitive = createCheckbox({
|
|
12
|
-
Root: Pressable,
|
|
13
|
-
Indicator: View,
|
|
14
|
-
Icon: View,
|
|
15
|
-
Label: Text,
|
|
16
|
-
Group: View
|
|
17
|
-
});
|
|
18
10
|
|
|
19
11
|
// =============================================================================
|
|
20
12
|
// CHECKBOX ROOT
|
|
21
13
|
// =============================================================================
|
|
22
|
-
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
15
|
const CheckboxRoot = /*#__PURE__*/forwardRef(({
|
|
24
16
|
className,
|
|
25
17
|
isIndeterminate,
|
|
@@ -28,17 +20,18 @@ const CheckboxRoot = /*#__PURE__*/forwardRef(({
|
|
|
28
20
|
...props
|
|
29
21
|
}, ref) => {
|
|
30
22
|
const computedClassName = cn(checkboxRootVariants(), className);
|
|
31
|
-
return /*#__PURE__*/_jsxs(
|
|
23
|
+
return /*#__PURE__*/_jsxs(CheckboxRootPrimitive, {
|
|
32
24
|
ref: ref,
|
|
33
25
|
className: computedClassName,
|
|
34
26
|
isIndeterminate: isIndeterminate,
|
|
35
27
|
style: style,
|
|
36
28
|
...props,
|
|
29
|
+
...mergeDataAttributes(props, dataAttributes({
|
|
30
|
+
slot: 'checkbox'
|
|
31
|
+
})),
|
|
37
32
|
children: [/*#__PURE__*/_jsx(CheckboxIndicator, {
|
|
38
|
-
children: /*#__PURE__*/_jsx(
|
|
39
|
-
|
|
40
|
-
as: isIndeterminate ? CheckIndeterminateSmall : Check
|
|
41
|
-
})
|
|
33
|
+
children: /*#__PURE__*/_jsx(CheckboxIconSlot, {
|
|
34
|
+
isIndeterminate: isIndeterminate
|
|
42
35
|
})
|
|
43
36
|
}), children]
|
|
44
37
|
});
|
|
@@ -46,28 +39,53 @@ const CheckboxRoot = /*#__PURE__*/forwardRef(({
|
|
|
46
39
|
CheckboxRoot.displayName = 'Checkbox';
|
|
47
40
|
|
|
48
41
|
// =============================================================================
|
|
49
|
-
// CHECKBOX INDICATOR
|
|
42
|
+
// CHECKBOX INDICATOR (styled-only, reads context for data-* styling)
|
|
50
43
|
// =============================================================================
|
|
51
44
|
|
|
52
45
|
const CheckboxIndicator = /*#__PURE__*/forwardRef(({
|
|
46
|
+
asChild,
|
|
53
47
|
className,
|
|
54
48
|
children,
|
|
55
49
|
style,
|
|
56
50
|
...props
|
|
57
51
|
}, ref) => {
|
|
52
|
+
const {
|
|
53
|
+
isChecked,
|
|
54
|
+
isDisabled,
|
|
55
|
+
isHovered,
|
|
56
|
+
isInvalid,
|
|
57
|
+
isReadOnly,
|
|
58
|
+
isPressed,
|
|
59
|
+
isFocused,
|
|
60
|
+
isIndeterminate,
|
|
61
|
+
isFocusVisible
|
|
62
|
+
} = useCheckboxContext();
|
|
58
63
|
const computedClassName = cn(checkboxIndicatorVariants(), className);
|
|
59
|
-
|
|
64
|
+
const Comp = asChild ? Slot : View;
|
|
65
|
+
return /*#__PURE__*/_jsx(Comp, {
|
|
60
66
|
ref: ref,
|
|
61
67
|
className: computedClassName,
|
|
62
68
|
style: style,
|
|
63
69
|
...props,
|
|
70
|
+
...mergeDataAttributes(props, dataAttributes({
|
|
71
|
+
slot: 'checkbox-indicator',
|
|
72
|
+
hover: isHovered,
|
|
73
|
+
checked: isChecked,
|
|
74
|
+
disabled: isDisabled,
|
|
75
|
+
focusVisible: isFocusVisible,
|
|
76
|
+
invalid: isInvalid,
|
|
77
|
+
readonly: isReadOnly,
|
|
78
|
+
active: isPressed,
|
|
79
|
+
focused: isFocused,
|
|
80
|
+
indeterminate: isIndeterminate
|
|
81
|
+
})),
|
|
64
82
|
children: children
|
|
65
83
|
});
|
|
66
84
|
});
|
|
67
85
|
CheckboxIndicator.displayName = 'Checkbox.Indicator';
|
|
68
86
|
|
|
69
87
|
// =============================================================================
|
|
70
|
-
// CHECKBOX ICON
|
|
88
|
+
// CHECKBOX ICON (styled-only, reads context for conditional mount)
|
|
71
89
|
// =============================================================================
|
|
72
90
|
|
|
73
91
|
const CheckboxIcon = ({
|
|
@@ -79,34 +97,61 @@ const CheckboxIcon = ({
|
|
|
79
97
|
return /*#__PURE__*/_jsx(Icon, {
|
|
80
98
|
className: computedClassName,
|
|
81
99
|
style: style,
|
|
82
|
-
...props
|
|
100
|
+
...props,
|
|
101
|
+
...mergeDataAttributes(props, dataAttributes({
|
|
102
|
+
slot: 'checkbox-icon'
|
|
103
|
+
}))
|
|
83
104
|
});
|
|
84
105
|
};
|
|
85
106
|
CheckboxIcon.displayName = 'Checkbox.Icon';
|
|
86
107
|
|
|
108
|
+
// Internal helper that reads context for conditional rendering
|
|
109
|
+
const CheckboxIconSlot = ({
|
|
110
|
+
isIndeterminate: isIndeterminateProp
|
|
111
|
+
}) => {
|
|
112
|
+
const {
|
|
113
|
+
isChecked,
|
|
114
|
+
isIndeterminate
|
|
115
|
+
} = useCheckboxContext();
|
|
116
|
+
const showIcon = isChecked || isIndeterminateProp || isIndeterminate;
|
|
117
|
+
if (!showIcon) return null;
|
|
118
|
+
return /*#__PURE__*/_jsx(CheckboxIcon, {
|
|
119
|
+
as: isIndeterminate || isIndeterminateProp ? CheckIndeterminateSmall : Check
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
|
|
87
123
|
// =============================================================================
|
|
88
|
-
// CHECKBOX LABEL
|
|
124
|
+
// CHECKBOX LABEL (styled-only)
|
|
89
125
|
// =============================================================================
|
|
90
126
|
|
|
91
127
|
const CheckboxLabel = /*#__PURE__*/forwardRef(({
|
|
128
|
+
asChild,
|
|
92
129
|
className,
|
|
93
130
|
children,
|
|
94
131
|
style,
|
|
95
132
|
...props
|
|
96
133
|
}, ref) => {
|
|
134
|
+
const {
|
|
135
|
+
isDisabled
|
|
136
|
+
} = useCheckboxContext();
|
|
97
137
|
const computedClassName = cn(checkboxLabelVariants(), className);
|
|
98
|
-
|
|
138
|
+
const Comp = asChild ? Slot : Text;
|
|
139
|
+
return /*#__PURE__*/_jsx(Comp, {
|
|
99
140
|
ref: ref,
|
|
100
141
|
className: computedClassName,
|
|
101
142
|
style: style,
|
|
102
143
|
...props,
|
|
144
|
+
...mergeDataAttributes(props, dataAttributes({
|
|
145
|
+
slot: 'checkbox-label',
|
|
146
|
+
disabled: isDisabled
|
|
147
|
+
})),
|
|
103
148
|
children: children
|
|
104
149
|
});
|
|
105
150
|
});
|
|
106
151
|
CheckboxLabel.displayName = 'Checkbox.Label';
|
|
107
152
|
|
|
108
153
|
// =============================================================================
|
|
109
|
-
// CHECKBOX GROUP
|
|
154
|
+
// CHECKBOX GROUP (wraps the primitive)
|
|
110
155
|
// =============================================================================
|
|
111
156
|
|
|
112
157
|
const CheckboxGroup = /*#__PURE__*/forwardRef(({
|
|
@@ -124,7 +169,7 @@ const CheckboxGroup = /*#__PURE__*/forwardRef(({
|
|
|
124
169
|
const computedClassName = cn(checkboxGroupVariants({
|
|
125
170
|
direction
|
|
126
171
|
}), className);
|
|
127
|
-
return /*#__PURE__*/_jsx(
|
|
172
|
+
return /*#__PURE__*/_jsx(CheckboxGroupPrimitive, {
|
|
128
173
|
ref: ref,
|
|
129
174
|
className: computedClassName,
|
|
130
175
|
style: style,
|
|
@@ -133,7 +178,9 @@ const CheckboxGroup = /*#__PURE__*/forwardRef(({
|
|
|
133
178
|
isDisabled: isDisabled,
|
|
134
179
|
isInvalid: isInvalid,
|
|
135
180
|
isReadOnly: isReadOnly,
|
|
136
|
-
...viewProps,
|
|
181
|
+
...mergeDataAttributes(viewProps, dataAttributes({
|
|
182
|
+
slot: 'checkbox-group'
|
|
183
|
+
})),
|
|
137
184
|
children: children
|
|
138
185
|
});
|
|
139
186
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","
|
|
1
|
+
{"version":3,"names":["forwardRef","Text","View","Check","CheckIndeterminateSmall","CheckboxRoot","CheckboxRootPrimitive","CheckboxGroup","CheckboxGroupPrimitive","Slot","dataAttributes","mergeDataAttributes","useCheckboxContext","cn","Icon","checkboxGroupVariants","checkboxIconVariants","checkboxIndicatorVariants","checkboxLabelVariants","checkboxRootVariants","jsx","_jsx","jsxs","_jsxs","className","isIndeterminate","children","style","props","ref","computedClassName","slot","CheckboxIndicator","CheckboxIconSlot","displayName","asChild","isChecked","isDisabled","isHovered","isInvalid","isReadOnly","isPressed","isFocused","isFocusVisible","Comp","hover","checked","disabled","focusVisible","invalid","readonly","active","focused","indeterminate","CheckboxIcon","isIndeterminateProp","showIcon","as","CheckboxLabel","direction","value","onChange","viewProps","Checkbox","Object","assign","Indicator","Label","Group"],"sourceRoot":"../../../../src","sources":["components/Checkbox/index.tsx"],"mappings":";;AAAA,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ants = cva(['items-center justify-center', 'h-
|
|
|
31
31
|
// data-[hover=true] guard ensures active beats hover by specificity (0,3,0 > 0,2,0).
|
|
32
32
|
'web:active:data-[hover=true]:data-[checked=true]:bg-surface-action-strong-active', 'web:active:data-[hover=true]:data-[checked=true]:border-[--color-surface-action-strong-active]', 'web:active:data-[hover=true]:data-[indeterminate=true]:bg-surface-action-strong-active', 'web:active:data-[hover=true]:data-[indeterminate=true]:border-[--color-surface-action-strong-active]', 'web:active:data-[hover=true]:data-[checked=true]:data-[invalid=true]:bg-surface-danger-strong-active', 'web:active:data-[hover=true]:data-[checked=true]:data-[invalid=true]:border-[--color-surface-danger-strong-active]', 'web:active:data-[hover=true]:data-[indeterminate=true]:data-[invalid=true]:bg-surface-danger-strong-active', 'web:active:data-[hover=true]:data-[indeterminate=true]:data-[invalid=true]:border-[--color-surface-danger-strong-active]',
|
|
33
33
|
// Focus ring
|
|
34
|
-
'web:data-[focus-visible=true]:outline-none', 'web:data-[focus-visible=true]:ring-2 web:data-[focus-visible=true]:ring-
|
|
34
|
+
'web:data-[focus-visible=true]:outline-none', 'web:data-[focus-visible=true]:ring-2 web:data-[focus-visible=true]:ring-stroke-focus web:data-[focus-visible=true]:ring-offset-2'].join(' '),
|
|
35
35
|
default: [
|
|
36
36
|
// Invalid bg is NOT styled on native. Compound data-[] selectors cannot express
|
|
37
37
|
// "invalid AND checked" without false-matching other states (Uniwind only evaluates
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Platform","cva","DISABLED_CURSOR","DISABLED_OPACITY","TRANSITION_COLORS","checkboxRootVariants","checkboxIndicatorVariants","select","web","join","default","checkboxIconVariants","checkboxLabelVariants","checkboxGroupVariants","variants","direction","column","row","defaultVariants"],"sourceRoot":"../../../../src","sources":["components/Checkbox/styles.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AACvC,SAASC,GAAG,QAAQ,0BAA0B;AAC9C,SAASC,eAAe,EAAEC,gBAAgB,EAAEC,iBAAiB,QAAQ,yBAAyB;;AAE9F;;AAEA,OAAO,MAAMC,oBAAoB,GAAGJ,GAAG,CAAC,CACtC,+BAA+B,EAC/BE,gBAAgB,EAChBD,eAAe;AACf;AACA,wEAAwE,CACzE,CAAC;AAEF,OAAO,MAAMI,yBAAyB,GAAGL,GAAG,CAAC,CAC3C,6BAA6B,EAC7B,SAAS,EACT,SAAS,EACT,uBAAuB,EACvB,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA,yCAAyC,EACzC,8CAA8C,EAC9C,oDAAoD;AACpD;AACA,+CAA+C,EAC/C,0CAA0C,EAC1C,gDAAgD,EAChD,0CAA0C,EAC1CD,QAAQ,CAACO,MAAM,CAAC;EACdC,GAAG,EAAE;EACH;EACA,kEAAkE,EAClE,wEAAwE,EACxEJ,iBAAiB;EACjB;EACA,+FAA+F;EAC/F;EACA,uHAAuH;EACvH;EACA,sEAAsE,EACtE,oFAAoF,EACpF,4EAA4E,EAC5E,0FAA0F,EAC1F,0FAA0F,EAC1F,wGAAwG,EACxG,gGAAgG,EAChG,8GAA8G;EAC9G;EACA;EACA,kFAAkF,EAClF,gGAAgG,EAChG,wFAAwF,EACxF,sGAAsG,EACtG,sGAAsG,EACtG,oHAAoH,EACpH,4GAA4G,EAC5G,0HAA0H;EAC1H;EACA,4CAA4C,EAC5C,
|
|
1
|
+
{"version":3,"names":["Platform","cva","DISABLED_CURSOR","DISABLED_OPACITY","TRANSITION_COLORS","checkboxRootVariants","checkboxIndicatorVariants","select","web","join","default","checkboxIconVariants","checkboxLabelVariants","checkboxGroupVariants","variants","direction","column","row","defaultVariants"],"sourceRoot":"../../../../src","sources":["components/Checkbox/styles.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AACvC,SAASC,GAAG,QAAQ,0BAA0B;AAC9C,SAASC,eAAe,EAAEC,gBAAgB,EAAEC,iBAAiB,QAAQ,yBAAyB;;AAE9F;;AAEA,OAAO,MAAMC,oBAAoB,GAAGJ,GAAG,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,EAAE;MACTC,MAAM,EAAE,OAAO;MACfC,GAAG,EAAE;IACP;EACF,CAAC;EACDC,eAAe,EAAE;IACfH,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { forwardRef, useMemo } from 'react';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { cn, ParentContext, useParentContext, useStyleContext
|
|
4
|
+
import { Text } from 'react-native';
|
|
5
|
+
import { ChipRoot as ChipRootPrimitive, Slot, dataAttributes, mergeDataAttributes } from '@cdx-ui/primitives';
|
|
6
|
+
import { cn, ParentContext, useParentContext, useStyleContext } from '@cdx-ui/utils';
|
|
7
7
|
import { Avatar } from '../Avatar';
|
|
8
8
|
import { Icon } from '../Icon';
|
|
9
|
+
import { positionToDataIcon } from '../../utils/positionToDataIcon';
|
|
9
10
|
import { chipAvatarVariants, chipIconVariants, chipLabelVariants, chipRootVariants } from './styles';
|
|
10
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
12
|
const SCOPE = 'CHIP';
|
|
12
|
-
const RootView = withStyleContext(View, SCOPE);
|
|
13
|
-
const RootPressable = withStyleContext(Pressable, SCOPE);
|
|
14
|
-
const ChipPrimitive = createChip({
|
|
15
|
-
View: RootView,
|
|
16
|
-
Pressable: RootPressable
|
|
17
|
-
});
|
|
18
13
|
const useChipStyleContext = () => useStyleContext(SCOPE);
|
|
19
14
|
|
|
20
15
|
// =============================================================================
|
|
@@ -28,43 +23,35 @@ const ChipRoot = /*#__PURE__*/forwardRef(({
|
|
|
28
23
|
color = 'default',
|
|
29
24
|
className,
|
|
30
25
|
style,
|
|
31
|
-
asChild,
|
|
32
26
|
...props
|
|
33
27
|
}, ref) => {
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
...
|
|
28
|
+
const parent = useParentContext();
|
|
29
|
+
const ctx = useMemo(() => ({
|
|
30
|
+
...parent,
|
|
37
31
|
[SCOPE]: {
|
|
38
32
|
variant,
|
|
39
33
|
size,
|
|
40
34
|
color
|
|
41
35
|
}
|
|
42
|
-
}), [
|
|
36
|
+
}), [parent, variant, size, color]);
|
|
43
37
|
const computedClassName = cn(chipRootVariants({
|
|
44
38
|
variant,
|
|
45
39
|
size,
|
|
46
40
|
color
|
|
47
41
|
}), className);
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
42
|
+
return /*#__PURE__*/_jsx(ParentContext.Provider, {
|
|
43
|
+
value: ctx,
|
|
44
|
+
children: /*#__PURE__*/_jsx(ChipRootPrimitive, {
|
|
45
|
+
ref: ref,
|
|
46
|
+
className: computedClassName,
|
|
47
|
+
style: style,
|
|
48
|
+
...props,
|
|
49
|
+
...mergeDataAttributes(props, dataAttributes({
|
|
50
|
+
slot: 'chip'
|
|
51
|
+
})),
|
|
52
|
+
children: children
|
|
53
|
+
})
|
|
60
54
|
});
|
|
61
|
-
if (asChild) {
|
|
62
|
-
return /*#__PURE__*/_jsx(ParentContext.Provider, {
|
|
63
|
-
value: styleContextValues,
|
|
64
|
-
children: root
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
return root;
|
|
68
55
|
});
|
|
69
56
|
ChipRoot.displayName = 'Chip';
|
|
70
57
|
|
|
@@ -73,6 +60,7 @@ ChipRoot.displayName = 'Chip';
|
|
|
73
60
|
// =============================================================================
|
|
74
61
|
|
|
75
62
|
const ChipLabel = /*#__PURE__*/forwardRef(({
|
|
63
|
+
asChild,
|
|
76
64
|
className,
|
|
77
65
|
children,
|
|
78
66
|
style,
|
|
@@ -88,11 +76,15 @@ const ChipLabel = /*#__PURE__*/forwardRef(({
|
|
|
88
76
|
variant,
|
|
89
77
|
color
|
|
90
78
|
}), className);
|
|
91
|
-
|
|
79
|
+
const Comp = asChild ? Slot : Text;
|
|
80
|
+
return /*#__PURE__*/_jsx(Comp, {
|
|
92
81
|
ref: ref,
|
|
93
82
|
className: computedClassName,
|
|
94
83
|
style: style,
|
|
95
84
|
...props,
|
|
85
|
+
...mergeDataAttributes(props, dataAttributes({
|
|
86
|
+
slot: 'chip-label'
|
|
87
|
+
})),
|
|
96
88
|
children: children
|
|
97
89
|
});
|
|
98
90
|
});
|
|
@@ -103,10 +95,11 @@ ChipLabel.displayName = 'Chip.Label';
|
|
|
103
95
|
// =============================================================================
|
|
104
96
|
|
|
105
97
|
const ChipIcon = ({
|
|
98
|
+
asChild,
|
|
106
99
|
className,
|
|
107
100
|
style,
|
|
108
101
|
as,
|
|
109
|
-
|
|
102
|
+
position,
|
|
110
103
|
...props
|
|
111
104
|
}) => {
|
|
112
105
|
const {
|
|
@@ -115,14 +108,29 @@ const ChipIcon = ({
|
|
|
115
108
|
} = useChipStyleContext();
|
|
116
109
|
const computedClassName = cn(chipIconVariants({
|
|
117
110
|
size,
|
|
118
|
-
color
|
|
119
|
-
slot
|
|
111
|
+
color
|
|
120
112
|
}), className);
|
|
113
|
+
if (asChild) {
|
|
114
|
+
return /*#__PURE__*/_jsx(Slot, {
|
|
115
|
+
className: computedClassName,
|
|
116
|
+
style: style,
|
|
117
|
+
...props,
|
|
118
|
+
...mergeDataAttributes(props, dataAttributes({
|
|
119
|
+
slot: 'chip-icon'
|
|
120
|
+
}), positionToDataIcon(position))
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
if (!as) {
|
|
124
|
+
return null;
|
|
125
|
+
}
|
|
121
126
|
return /*#__PURE__*/_jsx(Icon, {
|
|
122
127
|
as: as,
|
|
123
128
|
className: computedClassName,
|
|
124
129
|
style: style,
|
|
125
|
-
...props
|
|
130
|
+
...props,
|
|
131
|
+
...mergeDataAttributes(props, dataAttributes({
|
|
132
|
+
slot: 'chip-icon'
|
|
133
|
+
}), positionToDataIcon(position))
|
|
126
134
|
});
|
|
127
135
|
};
|
|
128
136
|
ChipIcon.displayName = 'Chip.Icon';
|
|
@@ -140,7 +148,7 @@ const ChipAvatar = ({
|
|
|
140
148
|
const {
|
|
141
149
|
size
|
|
142
150
|
} = useChipStyleContext();
|
|
143
|
-
// chipAvatarVariants sets w/h and the leading
|
|
151
|
+
// chipAvatarVariants sets w/h and the leading-edge negative margin.
|
|
144
152
|
// Avatar renders with size="sm" (its smallest named size) but chipAvatarVariants
|
|
145
153
|
// overrides the w/h via tailwind-merge so the chip size wins.
|
|
146
154
|
const computedClassName = cn(chipAvatarVariants({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","useMemo","
|
|
1
|
+
{"version":3,"names":["forwardRef","useMemo","Text","ChipRoot","ChipRootPrimitive","Slot","dataAttributes","mergeDataAttributes","cn","ParentContext","useParentContext","useStyleContext","Avatar","Icon","positionToDataIcon","chipAvatarVariants","chipIconVariants","chipLabelVariants","chipRootVariants","jsx","_jsx","SCOPE","useChipStyleContext","children","variant","size","color","className","style","props","ref","parent","ctx","computedClassName","Provider","value","slot","displayName","ChipLabel","asChild","Comp","ChipIcon","as","position","ChipAvatar","Chip","Object","assign","Label"],"sourceRoot":"../../../../src","sources":["components/Chip/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,OAAO,QAAwB,OAAO;AAC3D,SAASC,IAAI,QAA8B,cAAc;AACzD,SACEC,QAAQ,IAAIC,iBAAiB,EAC7BC,IAAI,EACJC,cAAc,EACdC,mBAAmB,QAEd,oBAAoB;AAC3B,SAASC,EAAE,EAAEC,aAAa,EAAEC,gBAAgB,EAAEC,eAAe,QAAQ,eAAe;AACpF,SAASC,MAAM,QAA0B,WAAW;AACpD,SAASC,IAAI,QAAwB,SAAS;AAC9C,SAASC,kBAAkB,QAA+B,gCAAgC;AAC1F,SACEC,kBAAkB,EAClBC,gBAAgB,EAChBC,iBAAiB,EACjBC,gBAAgB,QAEX,UAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEl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font-medium'], {
|
|
|
172
172
|
export const chipIconVariants = cva(['shrink-0'], {
|
|
173
173
|
variants: {
|
|
174
174
|
size: {
|
|
175
|
-
default: 'size-5',
|
|
176
|
-
small: 'size-4',
|
|
177
|
-
xsmall: 'size-2.5'
|
|
175
|
+
default: 'size-5 data-[icon=inline-start]:-ms-1.5 data-[icon=inline-end]:-me-1.5',
|
|
176
|
+
small: 'size-4 data-[icon=inline-start]:-ms-0.5 data-[icon=inline-end]:-me-0.5',
|
|
177
|
+
xsmall: 'size-2.5 data-[icon=inline-start]:-ms-px data-[icon=inline-end]:-me-px'
|
|
178
178
|
},
|
|
179
179
|
color: {
|
|
180
180
|
default: 'text-content-primary',
|
|
@@ -183,37 +183,8 @@ export const chipIconVariants = cva(['shrink-0'], {
|
|
|
183
183
|
warning: 'text-content-warning',
|
|
184
184
|
success: 'text-content-success',
|
|
185
185
|
info: 'text-content-info'
|
|
186
|
-
},
|
|
187
|
-
slot: {
|
|
188
|
-
leading: '',
|
|
189
|
-
trailing: ''
|
|
190
186
|
}
|
|
191
187
|
},
|
|
192
|
-
compoundVariants: [{
|
|
193
|
-
slot: 'leading',
|
|
194
|
-
size: 'default',
|
|
195
|
-
className: '-ml-1.5'
|
|
196
|
-
}, {
|
|
197
|
-
slot: 'leading',
|
|
198
|
-
size: 'small',
|
|
199
|
-
className: '-ml-0.5'
|
|
200
|
-
}, {
|
|
201
|
-
slot: 'leading',
|
|
202
|
-
size: 'xsmall',
|
|
203
|
-
className: '-ml-px'
|
|
204
|
-
}, {
|
|
205
|
-
slot: 'trailing',
|
|
206
|
-
size: 'default',
|
|
207
|
-
className: '-mr-1.5'
|
|
208
|
-
}, {
|
|
209
|
-
slot: 'trailing',
|
|
210
|
-
size: 'small',
|
|
211
|
-
className: '-mr-0.5'
|
|
212
|
-
}, {
|
|
213
|
-
slot: 'trailing',
|
|
214
|
-
size: 'xsmall',
|
|
215
|
-
className: '-mr-px'
|
|
216
|
-
}],
|
|
217
188
|
defaultVariants: {
|
|
218
189
|
size: 'default',
|
|
219
190
|
color: 'default'
|
|
@@ -222,9 +193,9 @@ export const chipIconVariants = cva(['shrink-0'], {
|
|
|
222
193
|
export const chipAvatarVariants = cva(['shrink-0 rounded-full overflow-hidden'], {
|
|
223
194
|
variants: {
|
|
224
195
|
size: {
|
|
225
|
-
default: 'size-5 -
|
|
226
|
-
small: 'size-4 -
|
|
227
|
-
xsmall: 'size-2.5 -
|
|
196
|
+
default: 'size-5 -ms-1.5',
|
|
197
|
+
small: 'size-4 -ms-0.5',
|
|
198
|
+
xsmall: 'size-2.5 -ms-px'
|
|
228
199
|
}
|
|
229
200
|
},
|
|
230
201
|
defaultVariants: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Platform","cva","DISABLED_CURSOR","TRANSITION_COLORS","chipInteractiveRoot","select","web","join","default","chipRootVariants","variants","variant","tint","outline","color","action","danger","warning","success","info","size","small","xsmall","compoundVariants","className","defaultVariants","chipLabelVariants","chipIconVariants","
|
|
1
|
+
{"version":3,"names":["Platform","cva","DISABLED_CURSOR","TRANSITION_COLORS","chipInteractiveRoot","select","web","join","default","chipRootVariants","variants","variant","tint","outline","color","action","danger","warning","success","info","size","small","xsmall","compoundVariants","className","defaultVariants","chipLabelVariants","chipIconVariants","chipAvatarVariants"],"sourceRoot":"../../../../src","sources":["components/Chip/styles.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AACvC,SAASC,GAAG,QAA2B,0BAA0B;AACjE,SAASC,eAAe,EAAEC,iBAAiB,QAAQ,yBAAyB;AAE5E,MAAMC,mBAAmB,GAAG,CAC1BD,iBAAiB,EACjB,wDAAwD,EACxDD,eAAe,EACfF,QAAQ,CAACK,MAAM,CAAC;EACdC,GAAG,EAAE,CACH,cAAc,EACd,kIAAkI,CACnI,CAACC,IAAI,CAAC,GAAG,CAAC;EACXC,OAAO,EAAE;AACX,CAAC,CAAC,CACH;AAED,OAAO,MAAMC,gBAAgB,GAAGR,GAAG,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