@cdx-ui/components 0.0.1-beta.4 → 0.0.1-beta.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -11
- package/lib/commonjs/components/Avatar/index.js +1 -1
- package/lib/commonjs/components/Avatar/styles.js +36 -29
- package/lib/commonjs/components/Avatar/styles.js.map +1 -1
- package/lib/commonjs/components/Button/styles.js +2 -2
- package/lib/commonjs/components/Button/styles.js.map +1 -1
- package/lib/commonjs/components/CLAUDE.md +90 -0
- package/lib/commonjs/components/Card/index.js +22 -4
- package/lib/commonjs/components/Card/index.js.map +1 -1
- package/lib/commonjs/components/Card/styles.js +27 -5
- package/lib/commonjs/components/Card/styles.js.map +1 -1
- package/lib/commonjs/components/Checkbox/index.js +5 -29
- package/lib/commonjs/components/Checkbox/index.js.map +1 -1
- package/lib/commonjs/components/Checkbox/styles.js +39 -47
- package/lib/commonjs/components/Checkbox/styles.js.map +1 -1
- package/lib/commonjs/components/Chip/index.js +78 -9
- package/lib/commonjs/components/Chip/index.js.map +1 -1
- package/lib/commonjs/components/Chip/styles.js +207 -21
- package/lib/commonjs/components/Chip/styles.js.map +1 -1
- package/lib/commonjs/components/Field/index.js +8 -2
- package/lib/commonjs/components/Field/index.js.map +1 -1
- package/lib/commonjs/components/Field/styles.js +4 -4
- package/lib/commonjs/components/Field/styles.js.map +1 -1
- package/lib/commonjs/components/Heading/styles.js +1 -1
- package/lib/commonjs/components/Heading/styles.js.map +1 -1
- package/lib/commonjs/components/Icon/index.js +1 -2
- package/lib/commonjs/components/Icon/index.js.map +1 -1
- package/lib/commonjs/components/IconButton/index.js +6 -1
- package/lib/commonjs/components/IconButton/index.js.map +1 -1
- package/lib/commonjs/components/IconButton/styles.js +135 -10
- package/lib/commonjs/components/IconButton/styles.js.map +1 -1
- package/lib/commonjs/components/Input/styles.js +7 -6
- package/lib/commonjs/components/Input/styles.js.map +1 -1
- package/lib/commonjs/components/ListItem/index.js +283 -0
- package/lib/commonjs/components/ListItem/index.js.map +1 -0
- package/lib/commonjs/components/ListItem/styles.js +130 -0
- package/lib/commonjs/components/ListItem/styles.js.map +1 -0
- package/lib/commonjs/components/ProgressSegmented/index.js +22 -10
- package/lib/commonjs/components/ProgressSegmented/index.js.map +1 -1
- package/lib/commonjs/components/Radio/index.js +167 -0
- package/lib/commonjs/components/Radio/index.js.map +1 -0
- package/lib/commonjs/components/Radio/styles.js +31 -0
- package/lib/commonjs/components/Radio/styles.js.map +1 -0
- package/lib/commonjs/components/Text/styles.js +2 -2
- package/lib/commonjs/components/Text/styles.js.map +1 -1
- package/lib/commonjs/components/Tile/index.js +251 -0
- package/lib/commonjs/components/Tile/index.js.map +1 -0
- package/lib/commonjs/components/Tile/styles.js +52 -0
- package/lib/commonjs/components/Tile/styles.js.map +1 -0
- package/lib/commonjs/components/index.js +36 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/figma/Avatar.figma.js +54 -0
- package/lib/commonjs/figma/Avatar.figma.js.map +1 -0
- package/lib/commonjs/figma/Button.figma.js +28 -11
- package/lib/commonjs/figma/Button.figma.js.map +1 -1
- package/lib/commonjs/figma/CLAUDE.md +30 -0
- package/lib/commonjs/figma/Card.Header.figma.js +28 -0
- package/lib/commonjs/figma/Card.Header.figma.js.map +1 -0
- package/lib/commonjs/figma/Card.figma.js +42 -0
- package/lib/commonjs/figma/Card.figma.js.map +1 -0
- package/lib/commonjs/figma/Checkbox.figma.js +55 -0
- package/lib/commonjs/figma/Checkbox.figma.js.map +1 -0
- package/lib/commonjs/figma/Chip.figma.js +68 -0
- package/lib/commonjs/figma/Chip.figma.js.map +1 -0
- package/lib/commonjs/figma/Field.Input.figma.js +57 -0
- package/lib/commonjs/figma/Field.Input.figma.js.map +1 -0
- package/lib/commonjs/figma/Field.Select.figma.js +57 -0
- package/lib/commonjs/figma/Field.Select.figma.js.map +1 -0
- package/lib/commonjs/figma/Heading.figma.js +30 -0
- package/lib/commonjs/figma/Heading.figma.js.map +1 -0
- package/lib/commonjs/figma/Icon.figma.js +20 -0
- package/lib/commonjs/figma/Icon.figma.js.map +1 -0
- package/lib/commonjs/figma/IconButton.figma.js +47 -0
- package/lib/commonjs/figma/IconButton.figma.js.map +1 -0
- package/lib/commonjs/figma/Input.figma.js +52 -0
- package/lib/commonjs/figma/Input.figma.js.map +1 -0
- package/lib/commonjs/figma/ProgressSegmented.figma.js +39 -0
- package/lib/commonjs/figma/ProgressSegmented.figma.js.map +1 -0
- package/lib/commonjs/figma/Radio.figma.js +38 -0
- package/lib/commonjs/figma/Radio.figma.js.map +1 -0
- package/lib/commonjs/figma/Select.figma.js +53 -0
- package/lib/commonjs/figma/Select.figma.js.map +1 -0
- package/lib/commonjs/figma/Text.figma.js +29 -0
- package/lib/commonjs/figma/Text.figma.js.map +1 -0
- package/lib/commonjs/figma/icons.figma.batch.js +27 -0
- package/lib/commonjs/figma/icons.figma.batch.js.map +1 -0
- package/lib/commonjs/figma/icons.figma.batch.json +17705 -0
- package/lib/commonjs/styles/primitives.js +42 -5
- package/lib/commonjs/styles/primitives.js.map +1 -1
- package/lib/module/components/Avatar/index.js +1 -1
- package/lib/module/components/Avatar/styles.js +36 -29
- package/lib/module/components/Avatar/styles.js.map +1 -1
- package/lib/module/components/Button/styles.js +2 -2
- package/lib/module/components/Button/styles.js.map +1 -1
- package/lib/module/components/CLAUDE.md +90 -0
- package/lib/module/components/Card/index.js +23 -4
- package/lib/module/components/Card/index.js.map +1 -1
- package/lib/module/components/Card/styles.js +27 -5
- package/lib/module/components/Card/styles.js.map +1 -1
- package/lib/module/components/Checkbox/index.js +6 -30
- package/lib/module/components/Checkbox/index.js.map +1 -1
- package/lib/module/components/Checkbox/styles.js +40 -48
- package/lib/module/components/Checkbox/styles.js.map +1 -1
- package/lib/module/components/Chip/index.js +82 -13
- package/lib/module/components/Chip/index.js.map +1 -1
- package/lib/module/components/Chip/styles.js +206 -20
- package/lib/module/components/Chip/styles.js.map +1 -1
- package/lib/module/components/Field/index.js +9 -3
- package/lib/module/components/Field/index.js.map +1 -1
- package/lib/module/components/Field/styles.js +4 -4
- package/lib/module/components/Field/styles.js.map +1 -1
- package/lib/module/components/Heading/styles.js +1 -1
- package/lib/module/components/Heading/styles.js.map +1 -1
- package/lib/module/components/Icon/index.js +1 -2
- package/lib/module/components/Icon/index.js.map +1 -1
- package/lib/module/components/IconButton/index.js +6 -1
- package/lib/module/components/IconButton/index.js.map +1 -1
- package/lib/module/components/IconButton/styles.js +135 -10
- package/lib/module/components/IconButton/styles.js.map +1 -1
- package/lib/module/components/Input/styles.js +7 -6
- package/lib/module/components/Input/styles.js.map +1 -1
- package/lib/module/components/ListItem/index.js +226 -0
- package/lib/module/components/ListItem/index.js.map +1 -0
- package/lib/module/components/ListItem/styles.js +127 -0
- package/lib/module/components/ListItem/styles.js.map +1 -0
- package/lib/module/components/ProgressSegmented/index.js +23 -11
- package/lib/module/components/ProgressSegmented/index.js.map +1 -1
- package/lib/module/components/Radio/index.js +164 -0
- package/lib/module/components/Radio/index.js.map +1 -0
- package/lib/module/components/Radio/styles.js +27 -0
- package/lib/module/components/Radio/styles.js.map +1 -0
- package/lib/module/components/Text/styles.js +2 -2
- package/lib/module/components/Text/styles.js.map +1 -1
- package/lib/module/components/Tile/index.js +243 -0
- package/lib/module/components/Tile/index.js.map +1 -0
- package/lib/module/components/Tile/styles.js +48 -0
- package/lib/module/components/Tile/styles.js.map +1 -0
- package/lib/module/components/index.js +3 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/figma/Avatar.figma.js +48 -0
- package/lib/module/figma/Avatar.figma.js.map +1 -0
- package/lib/module/figma/Button.figma.js +28 -11
- package/lib/module/figma/Button.figma.js.map +1 -1
- package/lib/module/figma/CLAUDE.md +30 -0
- package/lib/module/figma/Card.Header.figma.js +22 -0
- package/lib/module/figma/Card.Header.figma.js.map +1 -0
- package/lib/module/figma/Card.figma.js +36 -0
- package/lib/module/figma/Card.figma.js.map +1 -0
- package/lib/module/figma/Checkbox.figma.js +49 -0
- package/lib/module/figma/Checkbox.figma.js.map +1 -0
- package/lib/module/figma/Chip.figma.js +62 -0
- package/lib/module/figma/Chip.figma.js.map +1 -0
- package/lib/module/figma/Field.Input.figma.js +51 -0
- package/lib/module/figma/Field.Input.figma.js.map +1 -0
- package/lib/module/figma/Field.Select.figma.js +51 -0
- package/lib/module/figma/Field.Select.figma.js.map +1 -0
- package/lib/module/figma/Heading.figma.js +24 -0
- package/lib/module/figma/Heading.figma.js.map +1 -0
- package/lib/module/figma/Icon.figma.js +14 -0
- package/lib/module/figma/Icon.figma.js.map +1 -0
- package/lib/module/figma/IconButton.figma.js +41 -0
- package/lib/module/figma/IconButton.figma.js.map +1 -0
- package/lib/module/figma/Input.figma.js +46 -0
- package/lib/module/figma/Input.figma.js.map +1 -0
- package/lib/module/figma/ProgressSegmented.figma.js +33 -0
- package/lib/module/figma/ProgressSegmented.figma.js.map +1 -0
- package/lib/module/figma/Radio.figma.js +32 -0
- package/lib/module/figma/Radio.figma.js.map +1 -0
- package/lib/module/figma/Select.figma.js +47 -0
- package/lib/module/figma/Select.figma.js.map +1 -0
- package/lib/module/figma/Text.figma.js +23 -0
- package/lib/module/figma/Text.figma.js.map +1 -0
- package/lib/module/figma/icons.figma.batch.js +22 -0
- package/lib/module/figma/icons.figma.batch.js.map +1 -0
- package/lib/module/figma/icons.figma.batch.json +17705 -0
- package/lib/module/styles/primitives.js +42 -5
- package/lib/module/styles/primitives.js.map +1 -1
- package/lib/typescript/components/Avatar/styles.d.ts +4 -4
- package/lib/typescript/components/Avatar/styles.d.ts.map +1 -1
- package/lib/typescript/components/Card/index.d.ts +4 -3
- package/lib/typescript/components/Card/index.d.ts.map +1 -1
- package/lib/typescript/components/Card/styles.d.ts +13 -3
- package/lib/typescript/components/Card/styles.d.ts.map +1 -1
- package/lib/typescript/components/Checkbox/index.d.ts +1 -2
- package/lib/typescript/components/Checkbox/index.d.ts.map +1 -1
- package/lib/typescript/components/Checkbox/styles.d.ts +4 -14
- package/lib/typescript/components/Checkbox/styles.d.ts.map +1 -1
- package/lib/typescript/components/Chip/index.d.ts +19 -6
- package/lib/typescript/components/Chip/index.d.ts.map +1 -1
- package/lib/typescript/components/Chip/styles.d.ts +13 -4
- package/lib/typescript/components/Chip/styles.d.ts.map +1 -1
- package/lib/typescript/components/Field/FieldLabel.web.d.ts +2 -2
- package/lib/typescript/components/Field/FieldLabel.web.d.ts.map +1 -1
- package/lib/typescript/components/Field/index.d.ts.map +1 -1
- package/lib/typescript/components/Field/styles.d.ts.map +1 -1
- package/lib/typescript/components/Heading/styles.d.ts +1 -1
- package/lib/typescript/components/Icon/index.d.ts.map +1 -1
- package/lib/typescript/components/IconButton/index.d.ts.map +1 -1
- package/lib/typescript/components/IconButton/styles.d.ts +6 -2
- package/lib/typescript/components/IconButton/styles.d.ts.map +1 -1
- package/lib/typescript/components/Input/styles.d.ts.map +1 -1
- package/lib/typescript/components/ListItem/index.d.ts +49 -0
- package/lib/typescript/components/ListItem/index.d.ts.map +1 -0
- package/lib/typescript/components/ListItem/styles.d.ts +30 -0
- package/lib/typescript/components/ListItem/styles.d.ts.map +1 -0
- package/lib/typescript/components/ProgressSegmented/index.d.ts +14 -3
- package/lib/typescript/components/ProgressSegmented/index.d.ts.map +1 -1
- package/lib/typescript/components/Radio/index.d.ts +40 -0
- package/lib/typescript/components/Radio/index.d.ts.map +1 -0
- package/lib/typescript/components/Radio/styles.d.ts +8 -0
- package/lib/typescript/components/Radio/styles.d.ts.map +1 -0
- package/lib/typescript/components/Stack/styles.d.ts +2 -2
- package/lib/typescript/components/Text/styles.d.ts +1 -1
- package/lib/typescript/components/Tile/index.d.ts +70 -0
- package/lib/typescript/components/Tile/index.d.ts.map +1 -0
- package/lib/typescript/components/Tile/styles.d.ts +18 -0
- package/lib/typescript/components/Tile/styles.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +3 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/figma/Avatar.figma.d.ts +8 -0
- package/lib/typescript/figma/Avatar.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Button.figma.d.ts.map +1 -1
- package/lib/typescript/figma/Card.Header.figma.d.ts +8 -0
- package/lib/typescript/figma/Card.Header.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Card.figma.d.ts +8 -0
- package/lib/typescript/figma/Card.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Checkbox.figma.d.ts +8 -0
- package/lib/typescript/figma/Checkbox.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Chip.figma.d.ts +8 -0
- package/lib/typescript/figma/Chip.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Field.Input.figma.d.ts +8 -0
- package/lib/typescript/figma/Field.Input.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Field.Select.figma.d.ts +8 -0
- package/lib/typescript/figma/Field.Select.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Heading.figma.d.ts +8 -0
- package/lib/typescript/figma/Heading.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Icon.figma.d.ts +8 -0
- package/lib/typescript/figma/Icon.figma.d.ts.map +1 -0
- package/lib/typescript/figma/IconButton.figma.d.ts +8 -0
- package/lib/typescript/figma/IconButton.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Input.figma.d.ts +8 -0
- package/lib/typescript/figma/Input.figma.d.ts.map +1 -0
- package/lib/typescript/figma/ProgressSegmented.figma.d.ts +8 -0
- package/lib/typescript/figma/ProgressSegmented.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Radio.figma.d.ts +8 -0
- package/lib/typescript/figma/Radio.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Select.figma.d.ts +8 -0
- package/lib/typescript/figma/Select.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Text.figma.d.ts +8 -0
- package/lib/typescript/figma/Text.figma.d.ts.map +1 -0
- package/lib/typescript/figma/icons.figma.batch.d.ts +14 -0
- package/lib/typescript/figma/icons.figma.batch.d.ts.map +1 -0
- package/lib/typescript/styles/primitives.d.ts +38 -0
- package/lib/typescript/styles/primitives.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/components/Avatar/index.tsx +1 -1
- package/src/components/Avatar/styles.ts +49 -34
- package/src/components/Button/styles.ts +2 -2
- package/src/components/CLAUDE.md +90 -0
- package/src/components/Card/index.tsx +41 -16
- package/src/components/Card/styles.ts +43 -23
- package/src/components/Checkbox/index.tsx +8 -19
- package/src/components/Checkbox/styles.ts +82 -86
- package/src/components/Chip/index.tsx +104 -27
- package/src/components/Chip/styles.ts +232 -18
- package/src/components/Field/FieldLabel.web.tsx +1 -1
- package/src/components/Field/index.tsx +10 -3
- package/src/components/Field/styles.ts +5 -4
- package/src/components/Heading/styles.ts +1 -1
- package/src/components/Icon/index.tsx +1 -2
- package/src/components/IconButton/index.tsx +3 -2
- package/src/components/IconButton/styles.ts +136 -10
- package/src/components/Input/styles.ts +14 -9
- package/src/components/ListItem/index.tsx +285 -0
- package/src/components/ListItem/styles.ts +153 -0
- package/src/components/ProgressSegmented/index.tsx +49 -14
- package/src/components/Radio/index.tsx +192 -0
- package/src/components/Radio/styles.ts +59 -0
- package/src/components/Text/styles.ts +2 -2
- package/src/components/Tile/index.tsx +296 -0
- package/src/components/Tile/styles.ts +82 -0
- package/src/components/index.ts +3 -0
- package/src/styles/primitives.ts +42 -5
|
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.fieldRootVariants = exports.fieldLabelVariants = exports.fieldHelperVariants = exports.fieldHelperTextVariants = exports.fieldErrorVariants = exports.fieldErrorTextVariants = exports.fieldErrorIconVariants = void 0;
|
|
7
7
|
var _classVarianceAuthority = require("class-variance-authority");
|
|
8
8
|
var _primitives = require("../../styles/primitives");
|
|
9
|
-
const fieldRootVariants = exports.fieldRootVariants = (0, _classVarianceAuthority.cva)(['flex-col gap-2', 'web:last:mb-0', _primitives.DISABLED_OPACITY]);
|
|
10
|
-
const fieldLabelVariants = exports.fieldLabelVariants = (0, _classVarianceAuthority.cva)(['body-md', 'font-medium', 'text-content-primary', 'flex-row items-center',
|
|
11
|
-
const fieldHelperVariants = exports.fieldHelperVariants = (0, _classVarianceAuthority.cva)(['flex-row items-center']);
|
|
9
|
+
const fieldRootVariants = exports.fieldRootVariants = (0, _classVarianceAuthority.cva)(['group flex-col gap-2', 'web:last:mb-0', _primitives.DISABLED_OPACITY]);
|
|
10
|
+
const fieldLabelVariants = exports.fieldLabelVariants = (0, _classVarianceAuthority.cva)(['body-md', 'font-medium', 'text-content-primary', 'flex-row items-center', 'overflow-hidden', 'web:cursor-pointer', 'web:group-has-[[data-focus=true]]:data-[invalid=false]:text-content-action', 'data-[invalid=true]:text-content-danger']);
|
|
11
|
+
const fieldHelperVariants = exports.fieldHelperVariants = (0, _classVarianceAuthority.cva)(['flex-row items-center min-h-4']);
|
|
12
12
|
const fieldHelperTextVariants = exports.fieldHelperTextVariants = (0, _classVarianceAuthority.cva)(['body-sm', 'text-content-tertiary']);
|
|
13
|
-
const fieldErrorVariants = exports.fieldErrorVariants = (0, _classVarianceAuthority.cva)(['flex-row items-center gap-
|
|
13
|
+
const fieldErrorVariants = exports.fieldErrorVariants = (0, _classVarianceAuthority.cva)(['flex-row items-center gap-0.5 min-h-4']);
|
|
14
14
|
const fieldErrorTextVariants = exports.fieldErrorTextVariants = (0, _classVarianceAuthority.cva)(['body-sm', 'text-content-danger']);
|
|
15
15
|
const fieldErrorIconVariants = exports.fieldErrorIconVariants = (0, _classVarianceAuthority.cva)(['size-3.5', 'text-content-danger']);
|
|
16
16
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_classVarianceAuthority","require","_primitives","fieldRootVariants","exports","cva","DISABLED_OPACITY","fieldLabelVariants","fieldHelperVariants","fieldHelperTextVariants","fieldErrorVariants","fieldErrorTextVariants","fieldErrorIconVariants"],"sourceRoot":"../../../../src","sources":["components/Field/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEO,MAAME,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,IAAAE,2BAAG,EAAC,CAAC,
|
|
1
|
+
{"version":3,"names":["_classVarianceAuthority","require","_primitives","fieldRootVariants","exports","cva","DISABLED_OPACITY","fieldLabelVariants","fieldHelperVariants","fieldHelperTextVariants","fieldErrorVariants","fieldErrorTextVariants","fieldErrorIconVariants"],"sourceRoot":"../../../../src","sources":["components/Field/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEO,MAAME,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,IAAAE,2BAAG,EAAC,CAAC,sBAAsB,EAAE,eAAe,EAAEC,4BAAgB,CAAC,CAAC;AAE1F,MAAMC,kBAAkB,GAAAH,OAAA,CAAAG,kBAAA,GAAG,IAAAF,2BAAG,EAAC,CACpC,SAAS,EACT,aAAa,EACb,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,oBAAoB,EACpB,4EAA4E,EAC5E,yCAAyC,CAC1C,CAAC;AAEK,MAAMG,mBAAmB,GAAAJ,OAAA,CAAAI,mBAAA,GAAG,IAAAH,2BAAG,EAAC,CAAC,+BAA+B,CAAC,CAAC;AAElE,MAAMI,uBAAuB,GAAAL,OAAA,CAAAK,uBAAA,GAAG,IAAAJ,2BAAG,EAAC,CAAC,SAAS,EAAE,uBAAuB,CAAC,CAAC;AAEzE,MAAMK,kBAAkB,GAAAN,OAAA,CAAAM,kBAAA,GAAG,IAAAL,2BAAG,EAAC,CAAC,uCAAuC,CAAC,CAAC;AAEzE,MAAMM,sBAAsB,GAAAP,OAAA,CAAAO,sBAAA,GAAG,IAAAN,2BAAG,EAAC,CAAC,SAAS,EAAE,qBAAqB,CAAC,CAAC;AAEtE,MAAMO,sBAAsB,GAAAR,OAAA,CAAAQ,sBAAA,GAAG,IAAAP,2BAAG,EAAC,CAAC,UAAU,EAAE,qBAAqB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ exports.headingStyle = void 0;
|
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
8
|
var _classVarianceAuthority = require("class-variance-authority");
|
|
9
9
|
const headingStyle = exports.headingStyle = (0, _classVarianceAuthority.cva)([`text-content-primary my-0`, _reactNative.Platform.select({
|
|
10
|
-
web: 'bg-transparent
|
|
10
|
+
web: 'bg-transparent no-underline',
|
|
11
11
|
default: ''
|
|
12
12
|
})], {
|
|
13
13
|
variants: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_classVarianceAuthority","headingStyle","exports","cva","Platform","select","web","default","variants","size","xl","lg","md","sm","xs"],"sourceRoot":"../../../../src","sources":["components/Heading/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AAEO,MAAME,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG,IAAAE,2BAAG,EAC7B,CACE,2BAA2B,EAC3BC,qBAAQ,CAACC,MAAM,CAAC;EACdC,GAAG,EAAE,
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_classVarianceAuthority","headingStyle","exports","cva","Platform","select","web","default","variants","size","xl","lg","md","sm","xs"],"sourceRoot":"../../../../src","sources":["components/Heading/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AAEO,MAAME,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG,IAAAE,2BAAG,EAC7B,CACE,2BAA2B,EAC3BC,qBAAQ,CAACC,MAAM,CAAC;EACdC,GAAG,EAAE,6BAA6B;EAClCC,OAAO,EAAE;AACX,CAAC,CAAC,CACH,EACD;EACEC,QAAQ,EAAE;IACRC,IAAI,EAAE;MACJC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE;IACN;EACF;AACF,CACF,CAAC","ignoreList":[]}
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Icon = Icon;
|
|
7
7
|
var _uniwind = require("uniwind");
|
|
8
8
|
var _utils = require("@cdx-ui/utils");
|
|
9
|
-
var _primitives = require("../../styles/primitives");
|
|
10
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
10
|
function IconImpl({
|
|
12
11
|
as: IconComponent,
|
|
@@ -54,7 +53,7 @@ function Icon({
|
|
|
54
53
|
}) {
|
|
55
54
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledIcon, {
|
|
56
55
|
as: IconComponent,
|
|
57
|
-
className: (0, _utils.cn)(
|
|
56
|
+
className: (0, _utils.cn)('text-content-primary size-5', className),
|
|
58
57
|
...props
|
|
59
58
|
});
|
|
60
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_uniwind","require","_utils","
|
|
1
|
+
{"version":3,"names":["_uniwind","require","_utils","_jsxRuntime","IconImpl","as","IconComponent","props","jsx","StyledIcon","withUniwind","size","fromClassName","styleProperty","color","Icon","className","cn"],"sourceRoot":"../../../../src","sources":["components/Icon/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAmC,IAAAE,WAAA,GAAAF,OAAA;AAQnC,SAASG,QAAQA,CAAC;EAAEC,EAAE,EAAEC,aAAa;EAAE,GAAGC;AAAiB,CAAC,EAAE;EAC5D,oBAAO,IAAAJ,WAAA,CAAAK,GAAA,EAACF,aAAa;IAAA,GAAKC;EAAK,CAAG,CAAC;AACrC;AAEA,MAAME,UAAU,GAAG,IAAAC,oBAAW,EAACN,QAAQ,EAAE;EACvCO,IAAI,EAAE;IACJC,aAAa,EAAE,WAAW;IAC1BC,aAAa,EAAE;EACjB,CAAC;EACDC,KAAK,EAAE;IACLF,aAAa,EAAE,WAAW;IAC1BC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASE,IAAIA,CAAC;EAAEV,EAAE,EAAEC,aAAa;EAAEU,SAAS;EAAE,GAAGT;AAAiB,CAAC,EAAE;EAC1E,oBACE,IAAAJ,WAAA,CAAAK,GAAA,EAACC,UAAU;IACTJ,EAAE,EAAEC,aAAc;IAClBU,SAAS,EAAE,IAAAC,SAAE,EAAC,6BAA6B,EAAED,SAAS,CAAE;IAAA,GACpDT;EAAK,CACV,CAAC;AAEN","ignoreList":[]}
|
|
@@ -43,6 +43,7 @@ function IconButtonGlyph({
|
|
|
43
43
|
}
|
|
44
44
|
const IconButtonRoot = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
45
45
|
variant = 'solid',
|
|
46
|
+
color = 'neutral',
|
|
46
47
|
size = 'default',
|
|
47
48
|
className,
|
|
48
49
|
style,
|
|
@@ -53,11 +54,15 @@ const IconButtonRoot = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
53
54
|
}, ref) => {
|
|
54
55
|
const rootClassName = (0, _utils.cn)((0, _styles.iconButtonRootVariants)({
|
|
55
56
|
variant,
|
|
57
|
+
color,
|
|
56
58
|
size
|
|
57
59
|
}), className);
|
|
58
60
|
const glyphClassName = (0, _utils.cn)((0, _styles.iconButtonGlyphVariants)({
|
|
59
61
|
size
|
|
60
|
-
}), (0, _styles.iconButtonIconColorVariants)(
|
|
62
|
+
}), (0, _styles.iconButtonIconColorVariants)({
|
|
63
|
+
variant,
|
|
64
|
+
color
|
|
65
|
+
}), iconClassName);
|
|
61
66
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(IconButtonPrimitive, {
|
|
62
67
|
ref: ref,
|
|
63
68
|
accessibilityRole: accessibilityRole,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_primitives","_utils","_Icon","_styles","_jsxRuntime","IconButtonPrimitive","createButton","Root","Pressable","Text","Group","View","Spinner","ActivityIndicator","Icon","IconButtonGlyph","as","IconComponent","className","hover","focus","active","disabled","focusVisible","useButtonContext","jsx","dataAttributes","IconButtonRoot","forwardRef","variant","size","style","iconClassName","accessibilityRole","props","ref","rootClassName","cn","iconButtonRootVariants","glyphClassName","iconButtonGlyphVariants","iconButtonIconColorVariants","children","displayName","IconButton","exports"],"sourceRoot":"../../../../src","sources":["components/IconButton/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAOA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAKkB,IAAAM,WAAA,GAAAN,OAAA;AAElB,MAAMO,mBAAmB,GAAG,IAAAC,wBAAY,EAAC;EACvCC,IAAI,EAAEC,sBAAS;EACfC,IAAI,EAAJA,iBAAI;EACJC,KAAK,EAAEC,iBAAI;EACXC,OAAO,EAAEC,8BAAiB;EAC1BC,IAAI,EAAEH;AACR,CAAC,CAAC;AAEF,SAASI,eAAeA,CAAC;EAAEC,EAAE,EAAEC,aAAa;EAAEC;AAA8C,CAAC,EAAE;EAC7F,MAAM;IAAEC,KAAK;IAAEC,KAAK;IAAEC,MAAM;IAAEC,QAAQ;IAAEC;EAAa,CAAC,GAAG,IAAAC,4BAAgB,EAAC,CAAC;EAC3E,oBACE,IAAApB,WAAA,CAAAqB,GAAA,EAACvB,KAAA,CAAAY,IAAI;IACHE,EAAE,EAAEC,aAAc;IAClBC,SAAS,EAAEA,SAAU;IAAA,GACjB,IAAAQ,0BAAc,EAAC;MACjBP,KAAK;MACLC,KAAK;MACLC,MAAM;MACNC,QAAQ;MACRC;IACF,CAAC;EAAC,CACH,CAAC;AAEN;AAUA,MAAMI,cAAc,gBAAG,IAAAC,iBAAU,EAC/B,CACE;EACEC,OAAO,GAAG,OAAO;EACjBC,IAAI,GAAG,SAAS;
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_primitives","_utils","_Icon","_styles","_jsxRuntime","IconButtonPrimitive","createButton","Root","Pressable","Text","Group","View","Spinner","ActivityIndicator","Icon","IconButtonGlyph","as","IconComponent","className","hover","focus","active","disabled","focusVisible","useButtonContext","jsx","dataAttributes","IconButtonRoot","forwardRef","variant","color","size","style","iconClassName","accessibilityRole","props","ref","rootClassName","cn","iconButtonRootVariants","glyphClassName","iconButtonGlyphVariants","iconButtonIconColorVariants","children","displayName","IconButton","exports"],"sourceRoot":"../../../../src","sources":["components/IconButton/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAOA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAKkB,IAAAM,WAAA,GAAAN,OAAA;AAElB,MAAMO,mBAAmB,GAAG,IAAAC,wBAAY,EAAC;EACvCC,IAAI,EAAEC,sBAAS;EACfC,IAAI,EAAJA,iBAAI;EACJC,KAAK,EAAEC,iBAAI;EACXC,OAAO,EAAEC,8BAAiB;EAC1BC,IAAI,EAAEH;AACR,CAAC,CAAC;AAEF,SAASI,eAAeA,CAAC;EAAEC,EAAE,EAAEC,aAAa;EAAEC;AAA8C,CAAC,EAAE;EAC7F,MAAM;IAAEC,KAAK;IAAEC,KAAK;IAAEC,MAAM;IAAEC,QAAQ;IAAEC;EAAa,CAAC,GAAG,IAAAC,4BAAgB,EAAC,CAAC;EAC3E,oBACE,IAAApB,WAAA,CAAAqB,GAAA,EAACvB,KAAA,CAAAY,IAAI;IACH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tonRootVariants = exports.iconButtonIconColorVariants = exports.i
|
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
8
|
var _classVarianceAuthority = require("class-variance-authority");
|
|
9
9
|
var _primitives = require("../../styles/primitives");
|
|
10
|
-
const iconButtonRootVariants = exports.iconButtonRootVariants = (0, _classVarianceAuthority.cva)(['flex items-center justify-center', 'rounded-[var(--border-radius-round)]', 'web:outline-none web:focus:outline-none web:focus-visible:outline-none', _primitives.TRANSITION_COLORS, 'data-[disabled=true]:opacity-[--opacity-disabled]', _primitives.DISABLED_CURSOR, 'web:data-[focus-visible=true]:ring-2 web:data-[focus-visible=true]:ring-[--color-stroke-ring] web:data-[focus-visible=true]:ring-offset-2'], {
|
|
10
|
+
const iconButtonRootVariants = exports.iconButtonRootVariants = (0, _classVarianceAuthority.cva)(['flex items-center justify-center', 'rounded-[var(--border-radius-round)]', 'web:outline-none web:focus:outline-none web:focus-visible:outline-none', _primitives.TRANSITION_COLORS, 'data-[disabled=true]:opacity-[var(--opacity-disabled)]', _primitives.DISABLED_CURSOR, 'web:data-[focus-visible=true]:ring-2 web:data-[focus-visible=true]:ring-[var(--color-stroke-ring)] web:data-[focus-visible=true]:ring-offset-2'], {
|
|
11
11
|
variants: {
|
|
12
12
|
variant: {
|
|
13
|
-
solid: [
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
solid: [],
|
|
14
|
+
tint: [],
|
|
15
|
+
ghost: ['bg-transparent']
|
|
16
|
+
},
|
|
17
|
+
color: {
|
|
18
|
+
neutral: [],
|
|
19
|
+
action: [],
|
|
20
|
+
danger: []
|
|
21
21
|
},
|
|
22
22
|
size: {
|
|
23
23
|
default: 'h-11 w-11 min-w-11 shrink-0 p-2.5',
|
|
24
24
|
small: 'h-8 w-8 min-w-8 shrink-0 p-1.5'
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
|
+
compoundVariants: [
|
|
28
|
+
// ── solid × color ───────────────────────────────────────────────────
|
|
29
|
+
{
|
|
30
|
+
variant: 'solid',
|
|
31
|
+
color: 'neutral',
|
|
32
|
+
className: ['bg-surface-primary border border-stroke-secondary', _reactNative.Platform.select({
|
|
33
|
+
default: 'data-[active=true]:bg-surface-primary-active',
|
|
34
|
+
web: 'data-[hover=true]:bg-surface-primary-hover data-[active=true]:data-[hover=true]:bg-surface-secondary-active'
|
|
35
|
+
})]
|
|
36
|
+
}, {
|
|
37
|
+
variant: 'solid',
|
|
38
|
+
color: 'action',
|
|
39
|
+
className: ['bg-surface-action-strong', _reactNative.Platform.select({
|
|
40
|
+
default: 'data-[active=true]:bg-surface-action-strong-active',
|
|
41
|
+
web: 'data-[hover=true]:bg-surface-action-strong-hover data-[active=true]:data-[hover=true]:bg-surface-action-strong-active'
|
|
42
|
+
})]
|
|
43
|
+
}, {
|
|
44
|
+
variant: 'solid',
|
|
45
|
+
color: 'danger',
|
|
46
|
+
className: ['bg-surface-danger-strong', _reactNative.Platform.select({
|
|
47
|
+
default: 'data-[active=true]:bg-surface-danger-strong-active',
|
|
48
|
+
web: 'data-[hover=true]:bg-surface-danger-strong-hover data-[active=true]:data-[hover=true]:bg-surface-danger-strong-active'
|
|
49
|
+
})]
|
|
50
|
+
},
|
|
51
|
+
// ── tint × color ─────────────────────────────────────────────────
|
|
52
|
+
{
|
|
53
|
+
variant: 'tint',
|
|
54
|
+
color: 'neutral',
|
|
55
|
+
className: ['bg-surface-neutral-tint', _reactNative.Platform.select({
|
|
56
|
+
default: 'data-[active=true]:bg-surface-neutral-tint-active',
|
|
57
|
+
web: 'data-[hover=true]:bg-surface-neutral-tint-hover data-[active=true]:data-[hover=true]:bg-surface-neutral-tint-active'
|
|
58
|
+
})]
|
|
59
|
+
}, {
|
|
60
|
+
variant: 'tint',
|
|
61
|
+
color: 'action',
|
|
62
|
+
className: ['bg-surface-action-tint', _reactNative.Platform.select({
|
|
63
|
+
default: 'data-[active=true]:bg-surface-action-tint-active',
|
|
64
|
+
web: 'data-[hover=true]:bg-surface-action-tint-hover data-[active=true]:data-[hover=true]:bg-surface-action-tint-active'
|
|
65
|
+
})]
|
|
66
|
+
}, {
|
|
67
|
+
variant: 'tint',
|
|
68
|
+
color: 'danger',
|
|
69
|
+
className: ['bg-surface-danger-tint', _reactNative.Platform.select({
|
|
70
|
+
default: 'data-[active=true]:bg-surface-danger-tint-active',
|
|
71
|
+
web: 'data-[hover=true]:bg-surface-danger-tint-hover data-[active=true]:data-[hover=true]:bg-surface-danger-tint-active'
|
|
72
|
+
})]
|
|
73
|
+
},
|
|
74
|
+
// ── ghost × color ──────────────────────────────────────────────────
|
|
75
|
+
{
|
|
76
|
+
variant: 'ghost',
|
|
77
|
+
color: 'neutral',
|
|
78
|
+
className: [_reactNative.Platform.select({
|
|
79
|
+
default: 'data-[active=true]:bg-surface-primary-active',
|
|
80
|
+
web: 'data-[hover=true]:bg-surface-primary-hover data-[active=true]:data-[hover=true]:bg-surface-secondary-active'
|
|
81
|
+
})]
|
|
82
|
+
}, {
|
|
83
|
+
variant: 'ghost',
|
|
84
|
+
color: 'action',
|
|
85
|
+
className: [_reactNative.Platform.select({
|
|
86
|
+
default: 'data-[active=true]:bg-surface-action-tint-active',
|
|
87
|
+
web: 'data-[hover=true]:bg-surface-action-tint-hover data-[active=true]:data-[hover=true]:bg-surface-action-tint-active'
|
|
88
|
+
})]
|
|
89
|
+
}, {
|
|
90
|
+
variant: 'ghost',
|
|
91
|
+
color: 'danger',
|
|
92
|
+
className: [_reactNative.Platform.select({
|
|
93
|
+
default: 'data-[active=true]:bg-surface-danger-tint-active',
|
|
94
|
+
web: 'data-[hover=true]:bg-surface-danger-tint-hover data-[active=true]:data-[hover=true]:bg-surface-danger-tint-active'
|
|
95
|
+
})]
|
|
96
|
+
}],
|
|
27
97
|
defaultVariants: {
|
|
28
98
|
variant: 'solid',
|
|
99
|
+
color: 'neutral',
|
|
29
100
|
size: 'default'
|
|
30
101
|
}
|
|
31
102
|
});
|
|
@@ -40,5 +111,59 @@ const iconButtonGlyphVariants = exports.iconButtonGlyphVariants = (0, _classVari
|
|
|
40
111
|
size: 'default'
|
|
41
112
|
}
|
|
42
113
|
});
|
|
43
|
-
const iconButtonIconColorVariants = exports.iconButtonIconColorVariants = (0, _classVarianceAuthority.cva)([
|
|
114
|
+
const iconButtonIconColorVariants = exports.iconButtonIconColorVariants = (0, _classVarianceAuthority.cva)([], {
|
|
115
|
+
variants: {
|
|
116
|
+
variant: {
|
|
117
|
+
solid: [],
|
|
118
|
+
tint: [],
|
|
119
|
+
ghost: []
|
|
120
|
+
},
|
|
121
|
+
color: {
|
|
122
|
+
neutral: [],
|
|
123
|
+
action: [],
|
|
124
|
+
danger: []
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
compoundVariants: [{
|
|
128
|
+
variant: 'solid',
|
|
129
|
+
color: 'neutral',
|
|
130
|
+
className: 'text-content-primary'
|
|
131
|
+
}, {
|
|
132
|
+
variant: 'solid',
|
|
133
|
+
color: 'action',
|
|
134
|
+
className: 'text-content-action-on-strong'
|
|
135
|
+
}, {
|
|
136
|
+
variant: 'solid',
|
|
137
|
+
color: 'danger',
|
|
138
|
+
className: 'text-content-danger-on-strong'
|
|
139
|
+
}, {
|
|
140
|
+
variant: 'tint',
|
|
141
|
+
color: 'neutral',
|
|
142
|
+
className: 'text-content-primary'
|
|
143
|
+
}, {
|
|
144
|
+
variant: 'tint',
|
|
145
|
+
color: 'action',
|
|
146
|
+
className: 'text-content-action-on-subtle'
|
|
147
|
+
}, {
|
|
148
|
+
variant: 'tint',
|
|
149
|
+
color: 'danger',
|
|
150
|
+
className: 'text-content-danger-on-subtle'
|
|
151
|
+
}, {
|
|
152
|
+
variant: 'ghost',
|
|
153
|
+
color: 'neutral',
|
|
154
|
+
className: 'text-content-primary'
|
|
155
|
+
}, {
|
|
156
|
+
variant: 'ghost',
|
|
157
|
+
color: 'action',
|
|
158
|
+
className: 'text-content-action'
|
|
159
|
+
}, {
|
|
160
|
+
variant: 'ghost',
|
|
161
|
+
color: 'danger',
|
|
162
|
+
className: 'text-content-danger'
|
|
163
|
+
}],
|
|
164
|
+
defaultVariants: {
|
|
165
|
+
variant: 'solid',
|
|
166
|
+
color: 'neutral'
|
|
167
|
+
}
|
|
168
|
+
});
|
|
44
169
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_classVarianceAuthority","_primitives","iconButtonRootVariants","exports","cva","TRANSITION_COLORS","DISABLED_CURSOR","variants","variant","solid","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_classVarianceAuthority","_primitives","iconButtonRootVariants","exports","cva","TRANSITION_COLORS","DISABLED_CURSOR","variants","variant","solid","tint","ghost","color","neutral","action","danger","size","default","small","compoundVariants","className","Platform","select","web","defaultVariants","iconButtonGlyphVariants","iconButtonIconColorVariants"],"sourceRoot":"../../../../src","sources":["components/IconButton/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAEO,MAAMG,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,GAAG,IAAAE,2BAAG,EACvC,CACE,kCAAkC,EAClC,sCAAsC,EACtC,wEAAwE,EACxEC,6BAAiB,EACjB,wDAAwD,EACxDC,2BAAe,EACf,gJAAgJ,CACjJ,EACD;EACEC,QAAQ,EAAE;IACRC,OAAO,EAAE;MACPC,KAAK,EAAE,EAAE;MACTC,IAAI,EAAE,EAAE;MACRC,KAAK,EAAE,CAAC,gBAAgB;IAC1B,CAAC;IACDC,KAAK,EAAE;MACLC,OAAO,EAAE,EAAE;MACXC,MAAM,EAAE,EAAE;MACVC,MAAM,EAAE;IACV,CAAC;IACDC,IAAI,EAAE;MACJC,OAAO,EAAE,mCAAmC;MAC5CC,KAAK,EAAE;IACT;EACF,CAAC;EACDC,gBAAgB,EAAE;EAChB;EACA;IACE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AAE,SAAS;IAAEQ,SAAS,EAAE;EAAuB,CAAC,EACzE;IAAEZ,OAAO,EAAE,OAAO;IAAEI,KAAK,EAAE,QAAQ;IAAEQ,SAAS,EAAE;EAAgC,CAAC,EACjF;IAAEZ,OAAO,EAAE,OAAO;IAAEI,KAAK,EAAE,QAAQ;IAAEQ,SAAS,EAAE;EAAgC,CAAC,EACjF;IAAEZ,OAAO,EAAE,MAAM;IAAEI,KAAK,EAAE,SAAS;IAAEQ,SAAS,EAAE;EAAuB,CAAC,EACxE;IAAEZ,OAAO,EAAE,MAAM;IAAEI,KAAK,EAAE,QAAQ;IAAEQ,SAAS,EAAE;EAAgC,CAAC,EAChF;IAAEZ,OAAO,EAAE,MAAM;IAAEI,KAAK,EAAE,QAAQ;IAAEQ,SAAS,EAAE;EAAgC,CAAC,EAChF;IAAEZ,OAAO,EAAE,OAAO;IAAEI,KAAK,EAAE,SAAS;IAAEQ,SAAS,EAAE;EAAuB,CAAC,EACzE;IAAEZ,OAAO,EAAE,OAAO;IAAEI,KAAK,EAAE,QAAQ;IAAEQ,SAAS,EAAE;EAAsB,CAAC,EACvE;IAAEZ,OAAO,EAAE,OAAO;IAAEI,KAAK,EAAE,QAAQ;IAAEQ,SAAS,EAAE;EAAsB,CAAC,CACxE;EACDI,eAAe,EAAE;IACfhB,OAAO,EAAE,OAAO;IAChBI,KAAK,EAAE;EACT;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -6,15 +6,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.inputSlotVariants = exports.inputRootVariants = exports.inputIconVariants = exports.inputFieldVariants = exports.inputFieldPlaceholderVariants = void 0;
|
|
7
7
|
var _classVarianceAuthority = require("class-variance-authority");
|
|
8
8
|
var _primitives = require("../../styles/primitives");
|
|
9
|
-
const inputRootVariants = exports.inputRootVariants = (0, _classVarianceAuthority.cva)(['w-full flex-row items-
|
|
9
|
+
const inputRootVariants = exports.inputRootVariants = (0, _classVarianceAuthority.cva)(['w-full flex-row items-center overflow-hidden', 'bg-surface-primary', 'border-solid border-2 border-stroke-primary', 'rounded-[var(--border-radius-default)]', _primitives.TRANSITION_COLORS, 'data-[disabled=true]:bg-surface-secondary', 'data-[disabled=true]:opacity-[var(--opacity-disabled)]', _primitives.DISABLED_CURSOR, 'data-[readonly=true]:cursor-default', 'data-[readonly=true]:bg-surface-secondary', 'web:data-[hover=true]:data-[focus=false]:data-[invalid=false]:border-stroke-hover', 'data-[focus=true]:border-[length:var(--border-width-focused)]', 'data-[focus=true]:border-stroke-action', 'data-[invalid=true]:border-stroke-danger'], {
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
12
12
|
outline: []
|
|
13
13
|
},
|
|
14
14
|
size: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
default: ['h-11 min-h-11 px-4 py-3 gap-4',
|
|
16
|
+
// Subtract one hairline from padding when focused so the wider focus border doesn’t shift layout.
|
|
17
|
+
'data-[focus=true]:px-[calc(var(--spacing-4)-var(--spacing-px))]', 'data-[focus=true]:py-[calc(var(--spacing-3)-var(--spacing-px))]'],
|
|
18
|
+
small: ['h-8 min-h-8 px-3 py-2 gap-1.5', 'data-[focus=true]:px-[calc(var(--spacing-3)-var(--spacing-px))]', 'data-[focus=true]:py-[calc(var(--spacing-2)-var(--spacing-px))]']
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
21
|
defaultVariants: {
|
|
@@ -22,7 +23,7 @@ const inputRootVariants = exports.inputRootVariants = (0, _classVarianceAuthorit
|
|
|
22
23
|
size: 'default'
|
|
23
24
|
}
|
|
24
25
|
});
|
|
25
|
-
const inputFieldVariants = exports.inputFieldVariants = (0, _classVarianceAuthority.cva)(['flex-1 justify-center bg-transparent p-0', '
|
|
26
|
+
const inputFieldVariants = exports.inputFieldVariants = (0, _classVarianceAuthority.cva)(['flex-1 justify-center bg-transparent p-0', 'text-content-primary', 'placeholder:text-content-tertiary', 'web:outline-none', 'tracking-normal'], {
|
|
26
27
|
variants: {
|
|
27
28
|
size: {
|
|
28
29
|
default: 'text-[0.875rem]',
|
|
@@ -33,7 +34,7 @@ const inputFieldVariants = exports.inputFieldVariants = (0, _classVarianceAuthor
|
|
|
33
34
|
size: 'default'
|
|
34
35
|
}
|
|
35
36
|
});
|
|
36
|
-
const inputSlotVariants = exports.inputSlotVariants = (0, _classVarianceAuthority.cva)(['items-center justify-center self-center']);
|
|
37
|
+
const inputSlotVariants = exports.inputSlotVariants = (0, _classVarianceAuthority.cva)(['items-center justify-center self-center shrink-0']);
|
|
37
38
|
const inputIconVariants = exports.inputIconVariants = (0, _classVarianceAuthority.cva)(['text-content-tertiary'], {
|
|
38
39
|
variants: {
|
|
39
40
|
size: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_classVarianceAuthority","require","_primitives","inputRootVariants","exports","cva","TRANSITION_COLORS","DISABLED_CURSOR","variants","variant","outline","size","default","small","defaultVariants","inputFieldVariants","inputSlotVariants","inputIconVariants","inputFieldPlaceholderVariants"],"sourceRoot":"../../../../src","sources":["components/Input/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEO,MAAME,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,IAAAE,2BAAG,EAClC,CACE
|
|
1
|
+
{"version":3,"names":["_classVarianceAuthority","require","_primitives","inputRootVariants","exports","cva","TRANSITION_COLORS","DISABLED_CURSOR","variants","variant","outline","size","default","small","defaultVariants","inputFieldVariants","inputSlotVariants","inputIconVariants","inputFieldPlaceholderVariants"],"sourceRoot":"../../../../src","sources":["components/Input/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEO,MAAME,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,IAAAE,2BAAG,EAClC,CACE,8CAA8C,EAC9C,oBAAoB,EACpB,6CAA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IAAAb,2BAAG,EAAC,CAAC,yBAAyB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ListItem = void 0;
|
|
7
|
+
Object.defineProperty(exports, "listItemContentVariants", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return _styles.listItemContentVariants;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "listItemDescriptionVariants", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return _styles.listItemDescriptionVariants;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "listItemLeadingSlotVariants", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () {
|
|
22
|
+
return _styles.listItemLeadingSlotVariants;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "listItemMetaVariants", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return _styles.listItemMetaVariants;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "listItemRootVariants", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () {
|
|
34
|
+
return _styles.listItemRootVariants;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "listItemSectionHeaderLabelVariants", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () {
|
|
40
|
+
return _styles.listItemSectionHeaderLabelVariants;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "listItemSectionHeaderVariants", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return _styles.listItemSectionHeaderVariants;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
Object.defineProperty(exports, "listItemTitleVariants", {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
get: function () {
|
|
52
|
+
return _styles.listItemTitleVariants;
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(exports, "listItemTrailingSlotVariants", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () {
|
|
58
|
+
return _styles.listItemTrailingSlotVariants;
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
var _react = require("react");
|
|
62
|
+
var _reactNative = require("react-native");
|
|
63
|
+
var _primitives = require("@cdx-ui/primitives");
|
|
64
|
+
var _utils = require("@cdx-ui/utils");
|
|
65
|
+
var _styles = require("./styles");
|
|
66
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
67
|
+
const SCOPE = 'LIST_ITEM';
|
|
68
|
+
const RootView = (0, _utils.withStyleContext)(_reactNative.View, SCOPE);
|
|
69
|
+
const RootPressable = (0, _utils.withStyleContext)(_reactNative.Pressable, SCOPE);
|
|
70
|
+
const ListItemPrimitive = (0, _primitives.createListItem)({
|
|
71
|
+
View: RootView,
|
|
72
|
+
Pressable: RootPressable,
|
|
73
|
+
LeadingSlot: _reactNative.View,
|
|
74
|
+
Content: _reactNative.View,
|
|
75
|
+
Title: _reactNative.Text,
|
|
76
|
+
Description: _reactNative.Text,
|
|
77
|
+
Meta: _reactNative.Text,
|
|
78
|
+
TrailingSlot: _reactNative.View,
|
|
79
|
+
SectionHeader: _reactNative.View
|
|
80
|
+
});
|
|
81
|
+
const useListItemStyleContext = () => {
|
|
82
|
+
const ctx = (0, _utils.useStyleContext)(SCOPE);
|
|
83
|
+
return {
|
|
84
|
+
size: ctx?.size ?? 'default',
|
|
85
|
+
crossAlign: ctx?.crossAlign ?? 'center'
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
// =============================================================================
|
|
90
|
+
// ROOT
|
|
91
|
+
// =============================================================================
|
|
92
|
+
|
|
93
|
+
const ListItemRoot = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
94
|
+
size = 'default',
|
|
95
|
+
surface = 'default',
|
|
96
|
+
showSeparator = true,
|
|
97
|
+
crossAlign = 'center',
|
|
98
|
+
className,
|
|
99
|
+
style,
|
|
100
|
+
...props
|
|
101
|
+
}, ref) => {
|
|
102
|
+
const computedClassName = (0, _utils.cn)((0, _styles.listItemRootVariants)({
|
|
103
|
+
size,
|
|
104
|
+
surface,
|
|
105
|
+
showSeparator,
|
|
106
|
+
crossAlign
|
|
107
|
+
}), className);
|
|
108
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ListItemPrimitive, {
|
|
109
|
+
ref: ref,
|
|
110
|
+
className: computedClassName,
|
|
111
|
+
context: {
|
|
112
|
+
size,
|
|
113
|
+
surface,
|
|
114
|
+
showSeparator,
|
|
115
|
+
crossAlign
|
|
116
|
+
},
|
|
117
|
+
crossAlign: crossAlign,
|
|
118
|
+
showSeparator: showSeparator,
|
|
119
|
+
size: size,
|
|
120
|
+
style: style,
|
|
121
|
+
surface: surface,
|
|
122
|
+
...props
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
ListItemRoot.displayName = 'ListItem';
|
|
126
|
+
|
|
127
|
+
// =============================================================================
|
|
128
|
+
// SLOTS & TEXT
|
|
129
|
+
// =============================================================================
|
|
130
|
+
|
|
131
|
+
const ListItemLeadingSlot = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
132
|
+
className,
|
|
133
|
+
style,
|
|
134
|
+
...props
|
|
135
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(ListItemPrimitive.LeadingSlot, {
|
|
136
|
+
ref: ref,
|
|
137
|
+
className: (0, _utils.cn)((0, _styles.listItemLeadingSlotVariants)(), className),
|
|
138
|
+
style: style,
|
|
139
|
+
...props
|
|
140
|
+
}));
|
|
141
|
+
ListItemLeadingSlot.displayName = 'ListItem.LeadingSlot';
|
|
142
|
+
const ListItemContent = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
143
|
+
className,
|
|
144
|
+
style,
|
|
145
|
+
...props
|
|
146
|
+
}, ref) => {
|
|
147
|
+
const {
|
|
148
|
+
crossAlign
|
|
149
|
+
} = useListItemStyleContext();
|
|
150
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ListItemPrimitive.Content, {
|
|
151
|
+
ref: ref,
|
|
152
|
+
className: (0, _utils.cn)((0, _styles.listItemContentVariants)({
|
|
153
|
+
crossAlign
|
|
154
|
+
}), className),
|
|
155
|
+
style: style,
|
|
156
|
+
...props
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
ListItemContent.displayName = 'ListItem.Content';
|
|
160
|
+
const ListItemTitle = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
161
|
+
className,
|
|
162
|
+
numberOfLines = 1,
|
|
163
|
+
style,
|
|
164
|
+
...props
|
|
165
|
+
}, ref) => {
|
|
166
|
+
const {
|
|
167
|
+
size
|
|
168
|
+
} = useListItemStyleContext();
|
|
169
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ListItemPrimitive.Title, {
|
|
170
|
+
ref: ref,
|
|
171
|
+
className: (0, _utils.cn)((0, _styles.listItemTitleVariants)({
|
|
172
|
+
size
|
|
173
|
+
}), className),
|
|
174
|
+
numberOfLines: numberOfLines,
|
|
175
|
+
style: style,
|
|
176
|
+
...props
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
ListItemTitle.displayName = 'ListItem.Title';
|
|
180
|
+
const ListItemDescription = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
181
|
+
className,
|
|
182
|
+
style,
|
|
183
|
+
...props
|
|
184
|
+
}, ref) => {
|
|
185
|
+
const {
|
|
186
|
+
size
|
|
187
|
+
} = useListItemStyleContext();
|
|
188
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ListItemPrimitive.Description, {
|
|
189
|
+
ref: ref,
|
|
190
|
+
className: (0, _utils.cn)((0, _styles.listItemDescriptionVariants)({
|
|
191
|
+
size
|
|
192
|
+
}), className),
|
|
193
|
+
style: style,
|
|
194
|
+
...props
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
ListItemDescription.displayName = 'ListItem.Description';
|
|
198
|
+
const ListItemMeta = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
199
|
+
className,
|
|
200
|
+
numberOfLines = 1,
|
|
201
|
+
style,
|
|
202
|
+
...props
|
|
203
|
+
}, ref) => {
|
|
204
|
+
const {
|
|
205
|
+
size
|
|
206
|
+
} = useListItemStyleContext();
|
|
207
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ListItemPrimitive.Meta, {
|
|
208
|
+
ref: ref,
|
|
209
|
+
className: (0, _utils.cn)((0, _styles.listItemMetaVariants)({
|
|
210
|
+
size
|
|
211
|
+
}), className),
|
|
212
|
+
numberOfLines: numberOfLines,
|
|
213
|
+
style: style,
|
|
214
|
+
...props
|
|
215
|
+
});
|
|
216
|
+
});
|
|
217
|
+
ListItemMeta.displayName = 'ListItem.Meta';
|
|
218
|
+
const ListItemTrailingSlot = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
219
|
+
className,
|
|
220
|
+
style,
|
|
221
|
+
...props
|
|
222
|
+
}, ref) => {
|
|
223
|
+
const {
|
|
224
|
+
crossAlign
|
|
225
|
+
} = useListItemStyleContext();
|
|
226
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ListItemPrimitive.TrailingSlot, {
|
|
227
|
+
ref: ref,
|
|
228
|
+
className: (0, _utils.cn)((0, _styles.listItemTrailingSlotVariants)({
|
|
229
|
+
crossAlign
|
|
230
|
+
}), className),
|
|
231
|
+
style: style,
|
|
232
|
+
...props
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
ListItemTrailingSlot.displayName = 'ListItem.TrailingSlot';
|
|
236
|
+
const wrapSectionHeaderLabel = children => {
|
|
237
|
+
if (typeof children === 'string' || typeof children === 'number') {
|
|
238
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
239
|
+
className: (0, _utils.cn)((0, _styles.listItemSectionHeaderLabelVariants)()),
|
|
240
|
+
children: children
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
return children;
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
// =============================================================================
|
|
247
|
+
// SECTION HEADER
|
|
248
|
+
// =============================================================================
|
|
249
|
+
|
|
250
|
+
const ListItemSectionHeader = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
251
|
+
children,
|
|
252
|
+
className,
|
|
253
|
+
showDivider = true,
|
|
254
|
+
style,
|
|
255
|
+
trailing,
|
|
256
|
+
...props
|
|
257
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(ListItemPrimitive.SectionHeader, {
|
|
258
|
+
ref: ref,
|
|
259
|
+
className: (0, _utils.cn)((0, _styles.listItemSectionHeaderVariants)({
|
|
260
|
+
showDivider
|
|
261
|
+
}), className),
|
|
262
|
+
showDivider: showDivider,
|
|
263
|
+
style: style,
|
|
264
|
+
trailing: trailing,
|
|
265
|
+
...props,
|
|
266
|
+
children: wrapSectionHeaderLabel(children)
|
|
267
|
+
}));
|
|
268
|
+
ListItemSectionHeader.displayName = 'ListItem.SectionHeader';
|
|
269
|
+
|
|
270
|
+
// =============================================================================
|
|
271
|
+
// COMPOUND EXPORT
|
|
272
|
+
// =============================================================================
|
|
273
|
+
|
|
274
|
+
const ListItem = exports.ListItem = Object.assign(ListItemRoot, {
|
|
275
|
+
LeadingSlot: ListItemLeadingSlot,
|
|
276
|
+
Content: ListItemContent,
|
|
277
|
+
Title: ListItemTitle,
|
|
278
|
+
Description: ListItemDescription,
|
|
279
|
+
Meta: ListItemMeta,
|
|
280
|
+
TrailingSlot: ListItemTrailingSlot,
|
|
281
|
+
SectionHeader: ListItemSectionHeader
|
|
282
|
+
});
|
|
283
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_primitives","_utils","_styles","_jsxRuntime","SCOPE","RootView","withStyleContext","View","RootPressable","Pressable","ListItemPrimitive","createListItem","LeadingSlot","Content","Title","Text","Description","Meta","TrailingSlot","SectionHeader","useListItemStyleContext","ctx","useStyleContext","size","crossAlign","ListItemRoot","forwardRef","surface","showSeparator","className","style","props","ref","computedClassName","cn","listItemRootVariants","jsx","context","displayName","ListItemLeadingSlot","listItemLeadingSlotVariants","ListItemContent","listItemContentVariants","ListItemTitle","numberOfLines","listItemTitleVariants","ListItemDescription","listItemDescriptionVariants","ListItemMeta","listItemMetaVariants","ListItemTrailingSlot","listItemTrailingSlotVariants","wrapSectionHeaderLabel","children","listItemSectionHeaderLabelVariants","ListItemSectionHeader","showDivider","trailing","listItemSectionHeaderVariants","ListItem","exports","Object","assign"],"sourceRoot":"../../../../src","sources":["components/ListItem/index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAOA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAWkB,IAAAK,WAAA,GAAAL,OAAA;AAElB,MAAMM,KAAK,GAAG,WAAW;AAEzB,MAAMC,QAAQ,GAAG,IAAAC,uBAAgB,EAACC,iBAAI,EAAEH,KAAK,CAAC;AAC9C,MAAMI,aAAa,GAAG,IAAAF,uBAAgB,EAACG,sBAAS,EAAEL,KAAK,CAAC;AAExD,MAAMM,iBAAiB,GAAG,IAAAC,0BAAc,EAAC;EACvCJ,IAAI,EAAEF,QAAQ;EACdI,SAAS,EAAED,aAAa;EACxBI,WAAW,EAAEL,iBAAI;EACjBM,OAAO,EAAEN,iBAAI;EACbO,KAAK,EAAEC,iBAAI;EACXC,WAAW,EAAED,iBAAI;EAC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