@cdx-ui/components 0.0.1-beta.12 → 0.0.1-beta.14

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.
Files changed (42) hide show
  1. package/README.md +3 -2
  2. package/lib/commonjs/components/Checkbox/styles.js +1 -1
  3. package/lib/commonjs/components/Checkbox/styles.js.map +1 -1
  4. package/lib/commonjs/components/ListItem/styles.js +9 -9
  5. package/lib/commonjs/components/ListItem/styles.js.map +1 -1
  6. package/lib/commonjs/components/Tile/index.js +251 -0
  7. package/lib/commonjs/components/Tile/index.js.map +1 -0
  8. package/lib/commonjs/components/Tile/styles.js +52 -0
  9. package/lib/commonjs/components/Tile/styles.js.map +1 -0
  10. package/lib/commonjs/components/index.js +12 -0
  11. package/lib/commonjs/components/index.js.map +1 -1
  12. package/lib/commonjs/styles/primitives.js +36 -2
  13. package/lib/commonjs/styles/primitives.js.map +1 -1
  14. package/lib/module/components/Checkbox/styles.js +2 -2
  15. package/lib/module/components/Checkbox/styles.js.map +1 -1
  16. package/lib/module/components/ListItem/styles.js +10 -10
  17. package/lib/module/components/ListItem/styles.js.map +1 -1
  18. package/lib/module/components/Tile/index.js +243 -0
  19. package/lib/module/components/Tile/index.js.map +1 -0
  20. package/lib/module/components/Tile/styles.js +48 -0
  21. package/lib/module/components/Tile/styles.js.map +1 -0
  22. package/lib/module/components/index.js +1 -0
  23. package/lib/module/components/index.js.map +1 -1
  24. package/lib/module/styles/primitives.js +36 -2
  25. package/lib/module/styles/primitives.js.map +1 -1
  26. package/lib/typescript/components/Checkbox/styles.d.ts.map +1 -1
  27. package/lib/typescript/components/ListItem/styles.d.ts.map +1 -1
  28. package/lib/typescript/components/Tile/index.d.ts +70 -0
  29. package/lib/typescript/components/Tile/index.d.ts.map +1 -0
  30. package/lib/typescript/components/Tile/styles.d.ts +18 -0
  31. package/lib/typescript/components/Tile/styles.d.ts.map +1 -0
  32. package/lib/typescript/components/index.d.ts +1 -0
  33. package/lib/typescript/components/index.d.ts.map +1 -1
  34. package/lib/typescript/styles/primitives.d.ts +35 -0
  35. package/lib/typescript/styles/primitives.d.ts.map +1 -1
  36. package/package.json +4 -4
  37. package/src/components/Checkbox/styles.ts +7 -9
  38. package/src/components/ListItem/styles.ts +12 -19
  39. package/src/components/Tile/index.tsx +296 -0
  40. package/src/components/Tile/styles.ts +82 -0
  41. package/src/components/index.ts +1 -0
  42. package/src/styles/primitives.ts +36 -2
@@ -5,36 +5,65 @@
5
5
 
6
6
  // ─── Colors ──────────────────────────────────────────────
7
7
  // Surface & background
8
+ /** @deprecated Use `bg-surface-primary` (--color-surface-primary) instead. */
8
9
  export const COLOR_BG_PRIMARY = 'bg-white';
10
+ /** @deprecated Use `bg-surface-secondary` (--color-surface-secondary) instead. */
9
11
  export const COLOR_BG_SUBTLE = 'bg-slate-50';
12
+ /** @deprecated Use `bg-surface-neutral-subtle` (--color-surface-neutral-subtle) instead. */
10
13
  export const COLOR_BG_MUTED = 'bg-slate-100';
14
+ /** @deprecated Use `bg-base-950` (--color-base-950) instead. */
11
15
  export const COLOR_BG_INVERSE = 'bg-slate-900';
12
16
 
13
17
  // Border
18
+ /** @deprecated Use `border-stroke-secondary` (--color-stroke-secondary) instead. */
14
19
  export const COLOR_BORDER_DEFAULT = 'border-slate-200';
20
+ /** @deprecated Use `border-stroke-hover` (--color-stroke-hover) instead. */
15
21
  export const COLOR_BORDER_STRONG = 'border-slate-300';
22
+ /** @deprecated Use `border-stroke-focus` (--color-stroke-focus) instead. */
16
23
  export const COLOR_BORDER_FOCUS = 'border-slate-900';
24
+ /** @deprecated Use `border-stroke-danger` (--color-stroke-danger) instead. */
17
25
  export const COLOR_BORDER_INVALID = 'border-red-500';
18
26
 
19
27
  // Text
28
+ /** @deprecated Use `text-content-primary` (--color-content-primary) instead. */
20
29
  export const COLOR_TEXT_PRIMARY = 'text-slate-900';
30
+ /** @deprecated Use `text-content-secondary` (--color-content-secondary) instead. */
21
31
  export const COLOR_TEXT_SECONDARY = 'text-slate-500';
32
+ /** @deprecated Use `text-content-tertiary` (--color-content-tertiary) instead. */
22
33
  export const COLOR_TEXT_MUTED = 'text-slate-400';
34
+ /** @deprecated Use the appropriate `text-content-*-on-strong` token for the surface color, e.g. `text-content-action-on-strong` (--color-content-action-on-strong). */
23
35
  export const COLOR_TEXT_INVERSE = 'text-white';
36
+ /** @deprecated Use `text-content-tertiary` (--color-content-tertiary) instead. */
24
37
  export const COLOR_TEXT_PLACEHOLDER = 'text-slate-400';
38
+ /** @deprecated Use `text-content-danger` (--color-content-danger) instead. */
25
39
  export const COLOR_TEXT_INVALID = 'text-red-600';
26
40
 
27
41
  // Brand / Action
42
+ /** @deprecated Use `bg-surface-action-strong` (--color-surface-action-strong) instead. */
28
43
  export const COLOR_BRAND_DEFAULT = 'bg-slate-900';
44
+ /** @deprecated Use `bg-surface-action-strong-hover` (--color-surface-action-strong-hover) instead. */
29
45
  export const COLOR_BRAND_HOVER = 'bg-slate-800';
46
+ /** @deprecated Use `bg-surface-action-strong-active` (--color-surface-action-strong-active) instead. */
30
47
  export const COLOR_BRAND_ACTIVE = 'bg-slate-700';
31
48
 
32
49
  // Accent (for checked states, active indicators)
50
+ /** @deprecated Use `bg-surface-action-strong` (--color-surface-action-strong) instead. */
33
51
  export const COLOR_ACCENT_DEFAULT = 'bg-slate-900';
52
+ /** @deprecated Use `border-stroke-action` (--color-stroke-action) instead. */
34
53
  export const COLOR_ACCENT_BORDER = 'border-slate-900';
35
54
 
36
- // Semantic colors (danger, warning, success, info)
37
- // Kept for Button's 5-color system
55
+ /**
56
+ * @deprecated Use semantic token classes directly instead. Map each color key to its
57
+ * corresponding `--color-surface-*`, `--color-stroke-*`, and `--color-content-*` tokens:
58
+ * - `bg` → `bg-surface-{color}-strong` (--color-surface-{color}-strong)
59
+ * - `bgHover` → `bg-surface-{color}-strong-hover` (--color-surface-{color}-strong-hover)
60
+ * - `bgActive` → `bg-surface-{color}-strong-active` (--color-surface-{color}-strong-active)
61
+ * - `border` → `border-stroke-{color}` (--color-stroke-{color})
62
+ * - `text` → `text-content-{color}` (--color-content-{color})
63
+ * - `ring` → `ring-[--color-stroke-focus]` (--color-stroke-focus)
64
+ *
65
+ * See Button/styles.ts for a complete migration example.
66
+ */
38
67
  export const SEMANTIC_COLORS = {
39
68
  action: {
40
69
  bg: 'bg-slate-900',
@@ -79,6 +108,7 @@ export const SEMANTIC_COLORS = {
79
108
  };
80
109
 
81
110
  // ─── Focus ───────────────────────────────────────────────
111
+ /** @deprecated Use `ring-2 ring-[--color-stroke-focus] ring-offset-2` (--color-stroke-focus) instead. */
82
112
  export const FOCUS_RING = 'ring-2 ring-slate-400/50 ring-offset-2';
83
113
 
84
114
  // ─── Radius ──────────────────────────────────────────────
@@ -87,13 +117,17 @@ export const RADIUS_MD = 'rounded-xl'; // cards, dropdowns, modals
87
117
  export const RADIUS_FULL = 'rounded-full'; // pills, avatars, switches
88
118
 
89
119
  // ─── Shadows ─────────────────────────────────────────────
120
+
121
+ /** @deprecated Use `shadow-sm` directly instead */
90
122
  export const SHADOW_SM = 'shadow-sm';
123
+ /** @deprecated Use `shadow-md` directly instead */
91
124
  export const SHADOW_MD = 'shadow-md';
92
125
 
93
126
  // ─── Sizing ──────────────────────────────────────────────
94
127
  // Unified size scale for interactive/form components (Button, Input, Select, Checkbox).
95
128
  // Only two sizes: 'default' (regular) and 'small' (compact).
96
129
  // NOTE: Text and Heading use a separate typography scale (xs/sm/md/lg/xl) — not this.
130
+ /** @deprecated */
97
131
  export const SIZE_SCALE = {
98
132
  default: {
99
133
  height: 'h-10',
@@ -1 +1 @@
1
- {"version":3,"names":["COLOR_BG_PRIMARY","COLOR_BG_SUBTLE","COLOR_BG_MUTED","COLOR_BG_INVERSE","COLOR_BORDER_DEFAULT","COLOR_BORDER_STRONG","COLOR_BORDER_FOCUS","COLOR_BORDER_INVALID","COLOR_TEXT_PRIMARY","COLOR_TEXT_SECONDARY","COLOR_TEXT_MUTED","COLOR_TEXT_INVERSE","COLOR_TEXT_PLACEHOLDER","COLOR_TEXT_INVALID","COLOR_BRAND_DEFAULT","COLOR_BRAND_HOVER","COLOR_BRAND_ACTIVE","COLOR_ACCENT_DEFAULT","COLOR_ACCENT_BORDER","SEMANTIC_COLORS","action","bg","bgHover","bgActive","border","text","ring","danger","warning","success","info","FOCUS_RING","RADIUS_SM","RADIUS_MD","RADIUS_FULL","SHADOW_SM","SHADOW_MD","SIZE_SCALE","default","height","px","gap","small","TRANSITION_COLORS","DISABLED_OPACITY","DISABLED_CURSOR"],"sourceRoot":"../../../src","sources":["styles/primitives.ts"],"mappings":";;AAAA;AACA;;AAEA;AACA;AACA,OAAO,MAAMA,gBAAgB,GAAG,UAAU;AAC1C,OAAO,MAAMC,eAAe,GAAG,aAAa;AAC5C,OAAO,MAAMC,cAAc,GAAG,cAAc;AAC5C,OAAO,MAAMC,gBAAgB,GAAG,cAAc;;AAE9C;AACA,OAAO,MAAMC,oBAAoB,GAAG,kBAAkB;AACtD,OAAO,MAAMC,mBAAmB,GAAG,kBAAkB;AACrD,OAAO,MAAMC,kBAAkB,GAAG,kBAAkB;AACpD,OAAO,MAAMC,oBAAoB,GAAG,gBAAgB;;AAEpD;AACA,OAAO,MAAMC,kBAAkB,GAAG,gBAAgB;AAClD,OAAO,MAAMC,oBAAoB,GAAG,gBAAgB;AACpD,OAAO,MAAMC,gBAAgB,GAAG,gBAAgB;AAChD,OAAO,MAAMC,kBAAkB,GAAG,YAAY;AAC9C,OAAO,MAAMC,sBAAsB,GAAG,gBAAgB;AACtD,OAAO,MAAMC,kBAAkB,GAAG,cAAc;;AAEhD;AACA,OAAO,MAAMC,mBAAmB,GAAG,cAAc;AACjD,OAAO,MAAMC,iBAAiB,GAAG,cAAc;AAC/C,OAAO,MAAMC,kBAAkB,GAAG,cAAc;;AAEhD;AACA,OAAO,MAAMC,oBAAoB,GAAG,cAAc;AAClD,OAAO,MAAMC,mBAAmB,GAAG,kBAAkB;;AAErD;AACA;AACA,OAAO,MAAMC,eAAe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UAAU,GAAG;EACxBC,OAAO,EAAE;IAAEC,MAAM,EAAE,MAAM;IAAEC,EAAE,EAAE,MAAM;IAAEC,GAAG,EAAE,OAAO;IAAEhB,IAAI,EAAE;EAAY,CAAC;EACxEiB,KAAK,EAAE;IAAEH,MAAM,EAAE,KAAK;IAAEC,EAAE,EAAE,MAAM;IAAEC,GAAG,EAAE,SAAS;IAAEhB,IAAI,EAAE;EAAU;AACtE,CAAU;;AAEV;AACA,OAAO,MAAMkB,iBAAiB,GAAG,gCAAgC;;AAEjE;AACA,OAAO,MAAMC,gBAAgB,GAAG,iCAAiC;AACjE,OAAO,MAAMC,eAAe,GAC1B,kFAAkF","ignoreList":[]}
1
+ {"version":3,"names":["COLOR_BG_PRIMARY","COLOR_BG_SUBTLE","COLOR_BG_MUTED","COLOR_BG_INVERSE","COLOR_BORDER_DEFAULT","COLOR_BORDER_STRONG","COLOR_BORDER_FOCUS","COLOR_BORDER_INVALID","COLOR_TEXT_PRIMARY","COLOR_TEXT_SECONDARY","COLOR_TEXT_MUTED","COLOR_TEXT_INVERSE","COLOR_TEXT_PLACEHOLDER","COLOR_TEXT_INVALID","COLOR_BRAND_DEFAULT","COLOR_BRAND_HOVER","COLOR_BRAND_ACTIVE","COLOR_ACCENT_DEFAULT","COLOR_ACCENT_BORDER","SEMANTIC_COLORS","action","bg","bgHover","bgActive","border","text","ring","danger","warning","success","info","FOCUS_RING","RADIUS_SM","RADIUS_MD","RADIUS_FULL","SHADOW_SM","SHADOW_MD","SIZE_SCALE","default","height","px","gap","small","TRANSITION_COLORS","DISABLED_OPACITY","DISABLED_CURSOR"],"sourceRoot":"../../../src","sources":["styles/primitives.ts"],"mappings":";;AAAA;AACA;;AAEA;AACA;AACA;AACA,OAAO,MAAMA,gBAAgB,GAAG,UAAU;AAC1C;AACA,OAAO,MAAMC,eAAe,GAAG,aAAa;AAC5C;AACA,OAAO,MAAMC,cAAc,GAAG,cAAc;AAC5C;AACA,OAAO,MAAMC,gBAAgB,GAAG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AC1B,kFAAkF","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAUlE,eAAO,MAAM,oBAAoB;;8EAahC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;8EAmCrC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;8EAU/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;8EAajC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;8EAUhC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAQlE,eAAO,MAAM,oBAAoB;;8EAahC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;8EAmCrC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;8EAU/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;8EAajC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;8EAUhC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ListItem/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAWlE,eAAO,MAAM,oBAAoB;;;;;8EAmDhC,CAAC;AAIF,eAAO,MAAM,2BAA2B,oFAAqD,CAAC;AAE9F,eAAO,MAAM,4BAA4B;;8EAUvC,CAAC;AAIH,eAAO,MAAM,uBAAuB;;8EAUlC,CAAC;AAIH,eAAO,MAAM,qBAAqB;;8EAUhC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;8EAUtC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;8EAU/B,CAAC;AAIH,eAAO,MAAM,6BAA6B;;8EAgBzC,CAAC;AAEF,8IAA8I;AAC9I,eAAO,MAAM,kCAAkC,oFAG7C,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ListItem/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,eAAO,MAAM,oBAAoB;;;;;8EAmDhC,CAAC;AAIF,eAAO,MAAM,2BAA2B,oFAAqD,CAAC;AAE9F,eAAO,MAAM,4BAA4B;;8EAUvC,CAAC;AAIH,eAAO,MAAM,uBAAuB;;8EAUlC,CAAC;AAIH,eAAO,MAAM,qBAAqB;;8EAUhC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;8EAUtC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;8EAU/B,CAAC;AAIH,eAAO,MAAM,6BAA6B;;8EAgBzC,CAAC;AAEF,8IAA8I;AAC9I,eAAO,MAAM,kCAAkC,oFAE9C,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -0,0 +1,70 @@
1
+ import { type ReactNode } from 'react';
2
+ import { Text, View, type TextProps, type ViewProps } from 'react-native';
3
+ import { type ITileGroupMultipleProps, type ITileGroupSingleProps, type ITileIndicatorProps, type ITileLeadingSlotProps, type ITileProps, type ITileTrailingSlotProps, useTileContext } from '@cdx-ui/primitives';
4
+ import { type TileGroupVariantProps, type TileVariantProps } from './styles';
5
+ /**
6
+ * Discriminated union mirroring `ITileGroupProps`, with `className` and layout variants added at
7
+ * the styled layer. Distributing the intersection across each branch keeps `interface … extends`
8
+ * ergonomics and avoids tripping `@typescript-eslint` on `(union) & { ... }`.
9
+ *
10
+ * `direction` and `spacing` constrain the group layout to the three supported patterns:
11
+ * - `direction="column"` + `spacing="default"` — vertical stack with gaps (default).
12
+ * - `direction="column"` + `spacing="none"` — tight vertical stack (rows touch).
13
+ * - `direction="row"` + `spacing="default"` — side-by-side horizontal layout.
14
+ *
15
+ * `shape` (when set) is propagated to child `Tile`s via `withStyleContext`, matching the
16
+ * Avatar size-propagation pattern. A per-tile `shape` prop overrides the inherited value.
17
+ */
18
+ export interface TileGroupSingleProps extends ITileGroupSingleProps, TileGroupVariantProps {
19
+ className?: string;
20
+ /** Visual shape inherited by child `Tile`s. Per-tile `shape` overrides this. */
21
+ shape?: TileVariantProps['shape'];
22
+ }
23
+ export interface TileGroupMultipleProps extends ITileGroupMultipleProps, TileGroupVariantProps {
24
+ className?: string;
25
+ /** Visual shape inherited by child `Tile`s. Per-tile `shape` overrides this. */
26
+ shape?: TileVariantProps['shape'];
27
+ }
28
+ export type TileGroupProps = TileGroupSingleProps | TileGroupMultipleProps;
29
+ declare const TileGroup: import("react").ForwardRefExoticComponent<TileGroupProps & import("react").RefAttributes<View>>;
30
+ export interface TileProps extends ITileProps, TileVariantProps {
31
+ className?: string;
32
+ }
33
+ declare const TileRoot: import("react").ForwardRefExoticComponent<TileProps & import("react").RefAttributes<View>>;
34
+ export interface TileLeadingSlotProps extends ITileLeadingSlotProps {
35
+ className?: string;
36
+ }
37
+ declare const TileLeadingSlot: import("react").ForwardRefExoticComponent<TileLeadingSlotProps & import("react").RefAttributes<View>>;
38
+ export interface TileContentProps extends ViewProps {
39
+ className?: string;
40
+ }
41
+ declare const TileContent: import("react").ForwardRefExoticComponent<TileContentProps & import("react").RefAttributes<View>>;
42
+ export interface TileTitleProps extends TextProps {
43
+ className?: string;
44
+ }
45
+ declare const TileTitle: import("react").ForwardRefExoticComponent<TileTitleProps & import("react").RefAttributes<Text>>;
46
+ export interface TileDescriptionProps extends TextProps {
47
+ className?: string;
48
+ }
49
+ declare const TileDescription: import("react").ForwardRefExoticComponent<TileDescriptionProps & import("react").RefAttributes<Text>>;
50
+ export interface TileIndicatorProps extends ITileIndicatorProps {
51
+ className?: string;
52
+ children?: ReactNode;
53
+ }
54
+ declare const TileIndicator: import("react").ForwardRefExoticComponent<TileIndicatorProps & import("react").RefAttributes<View>>;
55
+ export interface TileTrailingSlotProps extends ITileTrailingSlotProps {
56
+ className?: string;
57
+ }
58
+ declare const TileTrailingSlot: import("react").ForwardRefExoticComponent<TileTrailingSlotProps & import("react").RefAttributes<View>>;
59
+ type TileCompound = typeof TileRoot & {
60
+ Group: typeof TileGroup;
61
+ LeadingSlot: typeof TileLeadingSlot;
62
+ Content: typeof TileContent;
63
+ Title: typeof TileTitle;
64
+ Description: typeof TileDescription;
65
+ Indicator: typeof TileIndicator;
66
+ TrailingSlot: typeof TileTrailingSlot;
67
+ };
68
+ export declare const Tile: TileCompound;
69
+ export { useTileContext };
70
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Tile/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAa,IAAI,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACrF,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,UAAU,EACf,KAAK,sBAAsB,EAC3B,cAAc,EACf,MAAM,oBAAoB,CAAC;AAO5B,OAAO,EASL,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACtB,MAAM,UAAU,CAAC;AAmClB;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,oBAAqB,SAAQ,qBAAqB,EAAE,qBAAqB;IACxF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB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F,KAAK,YAAY,GAAG,OAAO,QAAQ,GAAG;IACpC,KAAK,EAAE,OAAO,SAAS,CAAC;IACxB,WAAW,EAAE,OAAO,eAAe,CAAC;IACpC,OAAO,EAAE,OAAO,WAAW,CAAC;IAC5B,KAAK,EAAE,OAAO,SAAS,CAAC;IACxB,WAAW,EAAE,OAAO,eAAe,CAAC;IACpC,SAAS,EAAE,OAAO,aAAa,CAAC;IAChC,YAAY,EAAE,OAAO,gBAAgB,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,IAAI,EAQX,YAAY,CAAC;AAEnB,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ export declare const tileGroupVariants: (props?: ({
3
+ direction?: "row" | "column" | null | undefined;
4
+ spacing?: "default" | "none" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ export type TileGroupVariantProps = VariantProps<typeof tileGroupVariants>;
7
+ export declare const tileRootVariants: (props?: ({
8
+ shape?: "flat" | "card" | null | undefined;
9
+ showSeparator?: boolean | null | undefined;
10
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
+ export declare const tileLeadingSlotVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
12
+ export declare const tileTrailingSlotVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
13
+ export declare const tileContentVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
14
+ export declare const tileTitleVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
15
+ export declare const tileDescriptionVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
16
+ export declare const tileIndicatorVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
17
+ export type TileVariantProps = VariantProps<typeof tileRootVariants>;
18
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Tile/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,eAAO,MAAM,iBAAiB;;;8EAe5B,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE3E,eAAO,MAAM,gBAAgB;;;8EA4C5B,CAAC;AAEF,eAAO,MAAM,uBAAuB,oFAAqD,CAAC;AAE1F,eAAO,MAAM,wBAAwB,oFAAqD,CAAC;AAE3F,eAAO,MAAM,mBAAmB,oFAAwD,CAAC;AAEzF,eAAO,MAAM,iBAAiB,oFAAmE,CAAC;AAElG,eAAO,MAAM,uBAAuB,oFAAuD,CAAC;AAE5F,eAAO,MAAM,qBAAqB,oFAAqD,CAAC;AAExF,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -20,6 +20,7 @@ export * from './Radio';
20
20
  export * from './Select';
21
21
  export * from './VirtualizedList';
22
22
  export * from './Switch';
23
+ export * from './Tile';
23
24
  export { HStack, VStack } from './Stack';
24
25
  export * from './Heading';
25
26
  export * from './Text';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACzC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACzC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"}
@@ -1,22 +1,53 @@
1
+ /** @deprecated Use `bg-surface-primary` (--color-surface-primary) instead. */
1
2
  export declare const COLOR_BG_PRIMARY = "bg-white";
3
+ /** @deprecated Use `bg-surface-secondary` (--color-surface-secondary) instead. */
2
4
  export declare const COLOR_BG_SUBTLE = "bg-slate-50";
5
+ /** @deprecated Use `bg-surface-neutral-subtle` (--color-surface-neutral-subtle) instead. */
3
6
  export declare const COLOR_BG_MUTED = "bg-slate-100";
7
+ /** @deprecated Use `bg-base-950` (--color-base-950) instead. */
4
8
  export declare const COLOR_BG_INVERSE = "bg-slate-900";
9
+ /** @deprecated Use `border-stroke-secondary` (--color-stroke-secondary) instead. */
5
10
  export declare const COLOR_BORDER_DEFAULT = "border-slate-200";
11
+ /** @deprecated Use `border-stroke-hover` (--color-stroke-hover) instead. */
6
12
  export declare const COLOR_BORDER_STRONG = "border-slate-300";
13
+ /** @deprecated Use `border-stroke-focus` (--color-stroke-focus) instead. */
7
14
  export declare const COLOR_BORDER_FOCUS = "border-slate-900";
15
+ /** @deprecated Use `border-stroke-danger` (--color-stroke-danger) instead. */
8
16
  export declare const COLOR_BORDER_INVALID = "border-red-500";
17
+ /** @deprecated Use `text-content-primary` (--color-content-primary) instead. */
9
18
  export declare const COLOR_TEXT_PRIMARY = "text-slate-900";
19
+ /** @deprecated Use `text-content-secondary` (--color-content-secondary) instead. */
10
20
  export declare const COLOR_TEXT_SECONDARY = "text-slate-500";
21
+ /** @deprecated Use `text-content-tertiary` (--color-content-tertiary) instead. */
11
22
  export declare const COLOR_TEXT_MUTED = "text-slate-400";
23
+ /** @deprecated Use the appropriate `text-content-*-on-strong` token for the surface color, e.g. `text-content-action-on-strong` (--color-content-action-on-strong). */
12
24
  export declare const COLOR_TEXT_INVERSE = "text-white";
25
+ /** @deprecated Use `text-content-tertiary` (--color-content-tertiary) instead. */
13
26
  export declare const COLOR_TEXT_PLACEHOLDER = "text-slate-400";
27
+ /** @deprecated Use `text-content-danger` (--color-content-danger) instead. */
14
28
  export declare const COLOR_TEXT_INVALID = "text-red-600";
29
+ /** @deprecated Use `bg-surface-action-strong` (--color-surface-action-strong) instead. */
15
30
  export declare const COLOR_BRAND_DEFAULT = "bg-slate-900";
31
+ /** @deprecated Use `bg-surface-action-strong-hover` (--color-surface-action-strong-hover) instead. */
16
32
  export declare const COLOR_BRAND_HOVER = "bg-slate-800";
33
+ /** @deprecated Use `bg-surface-action-strong-active` (--color-surface-action-strong-active) instead. */
17
34
  export declare const COLOR_BRAND_ACTIVE = "bg-slate-700";
35
+ /** @deprecated Use `bg-surface-action-strong` (--color-surface-action-strong) instead. */
18
36
  export declare const COLOR_ACCENT_DEFAULT = "bg-slate-900";
37
+ /** @deprecated Use `border-stroke-action` (--color-stroke-action) instead. */
19
38
  export declare const COLOR_ACCENT_BORDER = "border-slate-900";
39
+ /**
40
+ * @deprecated Use semantic token classes directly instead. Map each color key to its
41
+ * corresponding `--color-surface-*`, `--color-stroke-*`, and `--color-content-*` tokens:
42
+ * - `bg` → `bg-surface-{color}-strong` (--color-surface-{color}-strong)
43
+ * - `bgHover` → `bg-surface-{color}-strong-hover` (--color-surface-{color}-strong-hover)
44
+ * - `bgActive` → `bg-surface-{color}-strong-active` (--color-surface-{color}-strong-active)
45
+ * - `border` → `border-stroke-{color}` (--color-stroke-{color})
46
+ * - `text` → `text-content-{color}` (--color-content-{color})
47
+ * - `ring` → `ring-[--color-stroke-focus]` (--color-stroke-focus)
48
+ *
49
+ * See Button/styles.ts for a complete migration example.
50
+ */
20
51
  export declare const SEMANTIC_COLORS: {
21
52
  readonly action: {
22
53
  readonly bg: "bg-slate-900";
@@ -59,12 +90,16 @@ export declare const SEMANTIC_COLORS: {
59
90
  readonly ring: "ring-sky-400/50";
60
91
  };
61
92
  };
93
+ /** @deprecated Use `ring-2 ring-[--color-stroke-focus] ring-offset-2` (--color-stroke-focus) instead. */
62
94
  export declare const FOCUS_RING = "ring-2 ring-slate-400/50 ring-offset-2";
63
95
  export declare const RADIUS_SM = "rounded-lg";
64
96
  export declare const RADIUS_MD = "rounded-xl";
65
97
  export declare const RADIUS_FULL = "rounded-full";
98
+ /** @deprecated Use `shadow-sm` directly instead */
66
99
  export declare const SHADOW_SM = "shadow-sm";
100
+ /** @deprecated Use `shadow-md` directly instead */
67
101
  export declare const SHADOW_MD = "shadow-md";
102
+ /** @deprecated */
68
103
  export declare const SIZE_SCALE: {
69
104
  readonly default: {
70
105
  readonly height: "h-10";
@@ -1 +1 @@
1
- {"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../../src/styles/primitives.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,aAAa,CAAC;AAC3C,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAC7C,eAAO,MAAM,cAAc,iBAAiB,CAAC;AAC7C,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAG/C,eAAO,MAAM,oBAAoB,qBAAqB,CAAC;AACvD,eAAO,MAAM,mBAAmB,qBAAqB,CAAC;AACtD,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AACrD,eAAO,MAAM,oBAAoB,mBAAmB,CAAC;AAGrD,eAAO,MAAM,kBAAkB,mBAAmB,CAAC;AACnD,eAAO,MAAM,oBAAoB,mBAAmB,CAAC;AACrD,eAAO,MAAM,gBAAgB,mBAAmB,CAAC;AACjD,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAC/C,eAAO,MAAM,sBAAsB,mBAAmB,CAAC;AACvD,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;AAGjD,eAAO,MAAM,mBAAmB,iBAAiB,CAAC;AAClD,eAAO,MAAM,iBAAiB,iBAAiB,CAAC;AAChD,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;AAGjD,eAAO,MAAM,oBAAoB,iBAAiB,CAAC;AACnD,eAAO,MAAM,mBAAmB,qBAAqB,CAAC;AAItD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyClB,CAAC;AAGX,eAAO,MAAM,UAAU,2CAA2C,CAAC;AAGnE,eAAO,MAAM,SAAS,eAAe,CAAC;AACtC,eAAO,MAAM,SAAS,eAAe,CAAC;AACtC,eAAO,MAAM,WAAW,iBAAiB,CAAC;AAG1C,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AO,MAAM,kBAAkB,iBAAiB,CAAC;AAGjD,0FAA0F;AAC1F,eAAO,MAAM,oBAAoB,iBAAiB,CAAC;AACnD,8EAA8E;AAC9E,eAAO,MAAM,mBAAmB,qBAAqB,CAAC;AAEtD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyClB,CAAC;AAGX,yGAAyG;AACzG,eAAO,MAAM,UAAU,2CAA2C,CAAC;AAGnE,eAAO,MAAM,SAAS,eAAe,CAAC;AACtC,eAAO,MAAM,SAAS,eAAe,CAAC;AACtC,eAAO,MAAM,WAAW,iBAAiB,CAAC;AAI1C,mDAAmD;AACnD,eAAO,MAAM,SAAS,cAAc,CAAC;AACrC,mDAAmD;AACnD,eAAO,MAAM,SAAS,cAAc,CAAC;AAMrC,kBAAkB;AAClB,eAAO,MAAM,UAAU;;;;;;;;;;;;;CAGb,CAAC;AAGX,eAAO,MAAM,iBAAiB,mCAAmC,CAAC;AAGlE,eAAO,MAAM,gBAAgB,oCAAoC,CAAC;AAClE,eAAO,MAAM,eAAe,qFACwD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdx-ui/components",
3
- "version": "0.0.1-beta.12",
3
+ "version": "0.0.1-beta.14",
4
4
  "main": "lib/commonjs/index.js",
5
5
  "module": "lib/module/index.js",
6
6
  "react-native": "src/index.ts",
@@ -67,9 +67,9 @@
67
67
  "@gorhom/bottom-sheet": "^5.2.6",
68
68
  "class-variance-authority": "^0.7.1",
69
69
  "uniwind": "1.6.1",
70
- "@cdx-ui/primitives": "0.0.1-beta.12",
71
- "@cdx-ui/utils": "0.0.1-beta.12",
72
- "@cdx-ui/icons": "0.0.1-beta.12"
70
+ "@cdx-ui/primitives": "0.0.1-beta.14",
71
+ "@cdx-ui/utils": "0.0.1-beta.14",
72
+ "@cdx-ui/icons": "0.0.1-beta.14"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@types/react": "*",
@@ -1,8 +1,6 @@
1
1
  import { Platform } from 'react-native';
2
2
  import { cva, type VariantProps } from 'class-variance-authority';
3
3
  import {
4
- COLOR_BG_PRIMARY,
5
- COLOR_BORDER_STRONG,
6
4
  COLOR_TEXT_PRIMARY,
7
5
  DISABLED_CURSOR,
8
6
  DISABLED_OPACITY,
@@ -29,14 +27,14 @@ export const checkboxIndicatorVariants = cva(
29
27
  'items-center justify-center',
30
28
  'rounded',
31
29
  'border-2',
32
- COLOR_BORDER_STRONG,
33
- COLOR_BG_PRIMARY,
34
- 'data-[checked=true]:bg-slate-900 data-[checked=true]:border-slate-900',
35
- 'data-[indeterminate=true]:bg-slate-900 data-[indeterminate=true]:border-slate-900',
30
+ 'border-stroke-secondary',
31
+ 'bg-surface-primary',
32
+ 'data-[checked=true]:bg-surface-action-strong data-[checked=true]:border-stroke-action',
33
+ 'data-[indeterminate=true]:bg-surface-action-strong data-[indeterminate=true]:border-stroke-action',
36
34
  'data-[disabled=true]:opacity-50',
37
- 'data-[invalid=true]:border-red-500',
38
- 'data-[checked=true]:data-[invalid=true]:bg-red-500 data-[checked=true]:data-[invalid=true]:border-red-500',
39
- 'data-[indeterminate=true]:data-[invalid=true]:bg-red-500 data-[indeterminate=true]:data-[invalid=true]:border-red-500',
35
+ 'data-[invalid=true]:border-stroke-danger',
36
+ 'data-[checked=true]:data-[invalid=true]:bg-surface-danger-strong data-[checked=true]:data-[invalid=true]:border-stroke-danger',
37
+ 'data-[indeterminate=true]:data-[invalid=true]:bg-surface-danger-strong data-[indeterminate=true]:data-[invalid=true]:border-stroke-danger',
40
38
  Platform.select({
41
39
  web: [
42
40
  TRANSITION_COLORS,
@@ -1,12 +1,6 @@
1
1
  import { Platform } from 'react-native';
2
2
  import { cva, type VariantProps } from 'class-variance-authority';
3
- import {
4
- COLOR_BORDER_DEFAULT,
5
- COLOR_TEXT_MUTED,
6
- COLOR_TEXT_PRIMARY,
7
- COLOR_TEXT_SECONDARY,
8
- TRANSITION_COLORS,
9
- } from '../../styles/primitives';
3
+ import { TRANSITION_COLORS } from '../../styles/primitives';
10
4
 
11
5
  // ── Root (row): density, surface, separator, interactive feedback ──────────
12
6
 
@@ -19,7 +13,7 @@ export const listItemRootVariants = cva(
19
13
  Platform.select({
20
14
  web: [
21
15
  'outline-none',
22
- 'web:data-[hovered=true]:bg-slate-50',
16
+ 'web:data-[hover=true]:bg-slate-50',
23
17
  'web:focus-visible:data-[disabled=false]:bg-slate-50',
24
18
  'web:focus-visible:data-[disabled=false]:ring-2 web:focus-visible:data-[disabled=false]:ring-slate-400/40 web:focus-visible:data-[disabled=false]:ring-offset-2',
25
19
  ].join(' '),
@@ -37,7 +31,7 @@ export const listItemRootVariants = cva(
37
31
  negative: 'bg-red-50',
38
32
  },
39
33
  showSeparator: {
40
- true: ['border-b border-solid', COLOR_BORDER_DEFAULT],
34
+ true: 'border-b border-solid border-stroke-secondary',
41
35
  false: 'border-b-0',
42
36
  },
43
37
  crossAlign: {
@@ -49,7 +43,7 @@ export const listItemRootVariants = cva(
49
43
  {
50
44
  surface: 'negative',
51
45
  className: Platform.select({
52
- web: 'web:data-[hovered=true]:bg-red-100/90',
46
+ web: 'web:data-[hover=true]:bg-red-100/90',
53
47
  default: '',
54
48
  }),
55
49
  },
@@ -81,7 +75,7 @@ export const listItemTrailingSlotVariants = cva(['flex shrink-0 flex-row justify
81
75
 
82
76
  // ── Content stack (title / description / meta) ───────────────────────────────
83
77
 
84
- export const listItemContentVariants = cva(['flex min-w-0 flex-1 flex-col gap-1'], {
78
+ export const listItemContentVariants = cva('flex min-w-0 flex-1 flex-col gap-1', {
85
79
  variants: {
86
80
  crossAlign: {
87
81
  center: 'justify-center',
@@ -95,7 +89,7 @@ export const listItemContentVariants = cva(['flex min-w-0 flex-1 flex-col gap-1'
95
89
 
96
90
  // ── Typography ───────────────────────────────────────────────────────────────
97
91
 
98
- export const listItemTitleVariants = cva([COLOR_TEXT_PRIMARY, 'font-medium'], {
92
+ export const listItemTitleVariants = cva('text-content-primary font-medium', {
99
93
  variants: {
100
94
  size: {
101
95
  default: 'text-base leading-snug',
@@ -107,7 +101,7 @@ export const listItemTitleVariants = cva([COLOR_TEXT_PRIMARY, 'font-medium'], {
107
101
  },
108
102
  });
109
103
 
110
- export const listItemDescriptionVariants = cva([COLOR_TEXT_SECONDARY], {
104
+ export const listItemDescriptionVariants = cva('text-content-secondary', {
111
105
  variants: {
112
106
  size: {
113
107
  default: 'text-sm leading-normal',
@@ -119,7 +113,7 @@ export const listItemDescriptionVariants = cva([COLOR_TEXT_SECONDARY], {
119
113
  },
120
114
  });
121
115
 
122
- export const listItemMetaVariants = cva([COLOR_TEXT_MUTED], {
116
+ export const listItemMetaVariants = cva('text-content-tertiary', {
123
117
  variants: {
124
118
  size: {
125
119
  default: 'text-xs leading-normal',
@@ -136,7 +130,7 @@ export const listItemMetaVariants = cva([COLOR_TEXT_MUTED], {
136
130
  export const listItemSectionHeaderVariants = cva(
137
131
  [
138
132
  'flex-row items-center justify-between gap-2 border-b border-solid px-4 py-3',
139
- COLOR_BORDER_DEFAULT,
133
+ 'border-stroke-secondary',
140
134
  ],
141
135
  {
142
136
  variants: {
@@ -152,9 +146,8 @@ export const listItemSectionHeaderVariants = cva(
152
146
  );
153
147
 
154
148
  /** Default section-title typography; applied by `ListItem.SectionHeader` for string/number children. Exported for rare custom composition. */
155
- export const listItemSectionHeaderLabelVariants = cva([
156
- 'text-xs font-semibold uppercase tracking-wide',
157
- COLOR_TEXT_SECONDARY,
158
- ]);
149
+ export const listItemSectionHeaderLabelVariants = cva(
150
+ 'text-xs font-semibold uppercase tracking-wide text-content-secondary',
151
+ );
159
152
 
160
153
  export type ListItemVariantProps = VariantProps<typeof listItemRootVariants>;