@cdx-ui/components 0.2.1 → 0.2.3

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 (158) hide show
  1. package/README.md +4 -2
  2. package/coverage.svg +1 -1
  3. package/lib/commonjs/components/Button/styles.js +7 -2
  4. package/lib/commonjs/components/Button/styles.js.map +1 -1
  5. package/lib/commonjs/components/Checkbox/index.js.map +1 -1
  6. package/lib/commonjs/components/Field/index.js +1 -1
  7. package/lib/commonjs/components/Field/index.js.map +1 -1
  8. package/lib/commonjs/components/Heading/index.js.map +1 -1
  9. package/lib/commonjs/components/Icon/index.js.map +1 -1
  10. package/lib/commonjs/components/ListItem/index.js +170 -9
  11. package/lib/commonjs/components/ListItem/index.js.map +1 -1
  12. package/lib/commonjs/components/ListItem/styles.js +36 -1
  13. package/lib/commonjs/components/ListItem/styles.js.map +1 -1
  14. package/lib/commonjs/components/Menu/index.js.map +1 -1
  15. package/lib/commonjs/components/RangeCalendar/index.js.map +1 -1
  16. package/lib/commonjs/components/ReorderableList/ReorderableListShared.js +91 -0
  17. package/lib/commonjs/components/ReorderableList/ReorderableListShared.js.map +1 -0
  18. package/lib/commonjs/components/ReorderableList/index.js +135 -0
  19. package/lib/commonjs/components/ReorderableList/index.js.map +1 -0
  20. package/lib/commonjs/components/ReorderableList/index.web.js +233 -0
  21. package/lib/commonjs/components/ReorderableList/index.web.js.map +1 -0
  22. package/lib/commonjs/components/ReorderableList/labels.js +47 -0
  23. package/lib/commonjs/components/ReorderableList/labels.js.map +1 -0
  24. package/lib/commonjs/components/ReorderableList/reorderItems.js +16 -0
  25. package/lib/commonjs/components/ReorderableList/reorderItems.js.map +1 -0
  26. package/lib/commonjs/components/ReorderableList/rowContext.js +42 -0
  27. package/lib/commonjs/components/ReorderableList/rowContext.js.map +1 -0
  28. package/lib/commonjs/components/ReorderableList/types.js +6 -0
  29. package/lib/commonjs/components/ReorderableList/types.js.map +1 -0
  30. package/lib/commonjs/components/ReorderableList/useReorder.js +131 -0
  31. package/lib/commonjs/components/ReorderableList/useReorder.js.map +1 -0
  32. package/lib/commonjs/components/ReorderableList/webDnd.js +64 -0
  33. package/lib/commonjs/components/ReorderableList/webDnd.js.map +1 -0
  34. package/lib/commonjs/components/ScopedTheme/index.js.map +1 -1
  35. package/lib/commonjs/components/Skeleton/index.js.map +1 -1
  36. package/lib/commonjs/components/TablePagination/index.js.map +1 -1
  37. package/lib/commonjs/components/Text/index.js.map +1 -1
  38. package/lib/commonjs/components/Tile/styles.js +1 -1
  39. package/lib/commonjs/components/Tile/styles.js.map +1 -1
  40. package/lib/commonjs/components/index.js.map +1 -1
  41. package/lib/commonjs/reorderable-list.js +17 -0
  42. package/lib/commonjs/reorderable-list.js.map +1 -0
  43. package/lib/commonjs/styles.css +18 -0
  44. package/lib/module/components/Button/styles.js +7 -2
  45. package/lib/module/components/Button/styles.js.map +1 -1
  46. package/lib/module/components/Checkbox/index.js.map +1 -1
  47. package/lib/module/components/Field/index.js +1 -1
  48. package/lib/module/components/Field/index.js.map +1 -1
  49. package/lib/module/components/Heading/index.js.map +1 -1
  50. package/lib/module/components/Icon/index.js.map +1 -1
  51. package/lib/module/components/ListItem/index.js +163 -14
  52. package/lib/module/components/ListItem/index.js.map +1 -1
  53. package/lib/module/components/ListItem/styles.js +35 -0
  54. package/lib/module/components/ListItem/styles.js.map +1 -1
  55. package/lib/module/components/Menu/index.js.map +1 -1
  56. package/lib/module/components/RangeCalendar/index.js.map +1 -1
  57. package/lib/module/components/ReorderableList/ReorderableListShared.js +86 -0
  58. package/lib/module/components/ReorderableList/ReorderableListShared.js.map +1 -0
  59. package/lib/module/components/ReorderableList/index.js +130 -0
  60. package/lib/module/components/ReorderableList/index.js.map +1 -0
  61. package/lib/module/components/ReorderableList/index.web.js +229 -0
  62. package/lib/module/components/ReorderableList/index.web.js.map +1 -0
  63. package/lib/module/components/ReorderableList/labels.js +41 -0
  64. package/lib/module/components/ReorderableList/labels.js.map +1 -0
  65. package/lib/module/components/ReorderableList/reorderItems.js +12 -0
  66. package/lib/module/components/ReorderableList/reorderItems.js.map +1 -0
  67. package/lib/module/components/ReorderableList/rowContext.js +38 -0
  68. package/lib/module/components/ReorderableList/rowContext.js.map +1 -0
  69. package/lib/module/components/ReorderableList/types.js +4 -0
  70. package/lib/module/components/ReorderableList/types.js.map +1 -0
  71. package/lib/module/components/ReorderableList/useReorder.js +123 -0
  72. package/lib/module/components/ReorderableList/useReorder.js.map +1 -0
  73. package/lib/module/components/ReorderableList/webDnd.js +59 -0
  74. package/lib/module/components/ReorderableList/webDnd.js.map +1 -0
  75. package/lib/module/components/ScopedTheme/index.js.map +1 -1
  76. package/lib/module/components/Skeleton/index.js.map +1 -1
  77. package/lib/module/components/TablePagination/index.js.map +1 -1
  78. package/lib/module/components/Text/index.js.map +1 -1
  79. package/lib/module/components/Tile/styles.js +1 -1
  80. package/lib/module/components/Tile/styles.js.map +1 -1
  81. package/lib/module/components/index.js.map +1 -1
  82. package/lib/module/reorderable-list.js +4 -0
  83. package/lib/module/reorderable-list.js.map +1 -0
  84. package/lib/module/styles.css +18 -0
  85. package/lib/typescript/components/Button/styles.d.ts.map +1 -1
  86. package/lib/typescript/components/Checkbox/index.d.ts +22 -0
  87. package/lib/typescript/components/Checkbox/index.d.ts.map +1 -1
  88. package/lib/typescript/components/Heading/index.d.ts +20 -2
  89. package/lib/typescript/components/Heading/index.d.ts.map +1 -1
  90. package/lib/typescript/components/Icon/index.d.ts +2 -0
  91. package/lib/typescript/components/Icon/index.d.ts.map +1 -1
  92. package/lib/typescript/components/ListItem/index.d.ts +23 -1
  93. package/lib/typescript/components/ListItem/index.d.ts.map +1 -1
  94. package/lib/typescript/components/ListItem/styles.d.ts +5 -0
  95. package/lib/typescript/components/ListItem/styles.d.ts.map +1 -1
  96. package/lib/typescript/components/Menu/index.d.ts +116 -4
  97. package/lib/typescript/components/Menu/index.d.ts.map +1 -1
  98. package/lib/typescript/components/RangeCalendar/index.d.ts +2 -0
  99. package/lib/typescript/components/RangeCalendar/index.d.ts.map +1 -1
  100. package/lib/typescript/components/ReorderableList/ReorderableListShared.d.ts +31 -0
  101. package/lib/typescript/components/ReorderableList/ReorderableListShared.d.ts.map +1 -0
  102. package/lib/typescript/components/ReorderableList/index.d.ts +8 -0
  103. package/lib/typescript/components/ReorderableList/index.d.ts.map +1 -0
  104. package/lib/typescript/components/ReorderableList/index.web.d.ts +8 -0
  105. package/lib/typescript/components/ReorderableList/index.web.d.ts.map +1 -0
  106. package/lib/typescript/components/ReorderableList/labels.d.ts +16 -0
  107. package/lib/typescript/components/ReorderableList/labels.d.ts.map +1 -0
  108. package/lib/typescript/components/ReorderableList/reorderItems.d.ts +3 -0
  109. package/lib/typescript/components/ReorderableList/reorderItems.d.ts.map +1 -0
  110. package/lib/typescript/components/ReorderableList/rowContext.d.ts +57 -0
  111. package/lib/typescript/components/ReorderableList/rowContext.d.ts.map +1 -0
  112. package/lib/typescript/components/ReorderableList/types.d.ts +75 -0
  113. package/lib/typescript/components/ReorderableList/types.d.ts.map +1 -0
  114. package/lib/typescript/components/ReorderableList/useReorder.d.ts +31 -0
  115. package/lib/typescript/components/ReorderableList/useReorder.d.ts.map +1 -0
  116. package/lib/typescript/components/ReorderableList/webDnd.d.ts +27 -0
  117. package/lib/typescript/components/ReorderableList/webDnd.d.ts.map +1 -0
  118. package/lib/typescript/components/ScopedTheme/index.d.ts +6 -1
  119. package/lib/typescript/components/ScopedTheme/index.d.ts.map +1 -1
  120. package/lib/typescript/components/Skeleton/index.d.ts +3 -0
  121. package/lib/typescript/components/Skeleton/index.d.ts.map +1 -1
  122. package/lib/typescript/components/TablePagination/index.d.ts +54 -0
  123. package/lib/typescript/components/TablePagination/index.d.ts.map +1 -1
  124. package/lib/typescript/components/Text/index.d.ts +12 -2
  125. package/lib/typescript/components/Text/index.d.ts.map +1 -1
  126. package/lib/typescript/components/Tile/styles.d.ts.map +1 -1
  127. package/lib/typescript/components/ToggleButton/styles.d.ts +1 -1
  128. package/lib/typescript/components/index.d.ts +1 -0
  129. package/lib/typescript/components/index.d.ts.map +1 -1
  130. package/lib/typescript/reorderable-list.d.ts +2 -0
  131. package/lib/typescript/reorderable-list.d.ts.map +1 -0
  132. package/package.json +34 -7
  133. package/src/components/Button/styles.ts +7 -1
  134. package/src/components/Checkbox/index.tsx +22 -0
  135. package/src/components/Field/index.tsx +1 -1
  136. package/src/components/Heading/index.tsx +10 -1
  137. package/src/components/Icon/index.tsx +2 -0
  138. package/src/components/ListItem/index.tsx +227 -11
  139. package/src/components/ListItem/styles.ts +40 -0
  140. package/src/components/Menu/index.tsx +117 -4
  141. package/src/components/RangeCalendar/index.tsx +2 -0
  142. package/src/components/ReorderableList/ReorderableListShared.tsx +113 -0
  143. package/src/components/ReorderableList/index.tsx +162 -0
  144. package/src/components/ReorderableList/index.web.tsx +254 -0
  145. package/src/components/ReorderableList/labels.ts +52 -0
  146. package/src/components/ReorderableList/reorderItems.ts +16 -0
  147. package/src/components/ReorderableList/rowContext.tsx +72 -0
  148. package/src/components/ReorderableList/types.ts +80 -0
  149. package/src/components/ReorderableList/useReorder.ts +159 -0
  150. package/src/components/ReorderableList/webDnd.ts +60 -0
  151. package/src/components/ScopedTheme/index.tsx +6 -1
  152. package/src/components/Skeleton/index.tsx +3 -0
  153. package/src/components/TablePagination/index.tsx +54 -0
  154. package/src/components/Text/index.tsx +6 -1
  155. package/src/components/Tile/styles.ts +4 -1
  156. package/src/components/index.ts +5 -0
  157. package/src/reorderable-list.ts +1 -0
  158. package/src/styles.css +18 -0
@@ -0,0 +1,27 @@
1
+ import type { ReorderController } from './useReorder';
2
+ type Id = string | number;
3
+ interface DragArgs {
4
+ active: {
5
+ id: Id;
6
+ };
7
+ over: {
8
+ id: Id;
9
+ } | null;
10
+ }
11
+ /** Maps a dnd-kit drop to `data` positions, or `null` when nothing should move. */
12
+ export declare function resolveDragEnd(ids: readonly string[], activeId: Id, overId: Id | null | undefined): {
13
+ from: number;
14
+ to: number;
15
+ } | null;
16
+ /**
17
+ * Position-based dnd-kit announcements. dnd-kit's defaults read the raw draggable ids, which are
18
+ * `keyExtractor` keys — these never mention them.
19
+ */
20
+ export declare function createReorderAnnouncements<T>(ids: readonly string[], describe: ReorderController<T>['describe']): {
21
+ onDragStart({ active }: Pick<DragArgs, "active">): string | undefined;
22
+ onDragOver({ active, over }: DragArgs): string | undefined;
23
+ onDragEnd({ active, over }: DragArgs): string | undefined;
24
+ onDragCancel({ active }: DragArgs): string | undefined;
25
+ };
26
+ export {};
27
+ //# sourceMappingURL=webDnd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webDnd.d.ts","sourceRoot":"","sources":["../../../../src/components/ReorderableList/webDnd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,KAAK,EAAE,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1B,UAAU,QAAQ;IAChB,MAAM,EAAE;QAAE,EAAE,EAAE,EAAE,CAAA;KAAE,CAAC;IACnB,IAAI,EAAE;QAAE,EAAE,EAAE,EAAE,CAAA;KAAE,GAAG,IAAI,CAAC;CACzB;AAED,mFAAmF;AACnF,wBAAgB,cAAc,CAC5B,GAAG,EAAE,SAAS,MAAM,EAAE,EACtB,QAAQ,EAAE,EAAE,EACZ,MAAM,EAAE,EAAE,GAAG,IAAI,GAAG,SAAS,GAC5B;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAMrC;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,CAAC,EAC1C,GAAG,EAAE,SAAS,MAAM,EAAE,EACtB,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;4BAQhB,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC;iCAKnB,QAAQ;gCAOT,QAAQ;6BAMX,QAAQ;EAKpC"}
@@ -1,6 +1,11 @@
1
1
  import type { ComponentProps } from 'react';
2
2
  import { ScopedTheme as UniwindScopedTheme } from 'uniwind';
3
- export type ScopedThemeProps = ComponentProps<typeof UniwindScopedTheme>;
3
+ export type ScopedThemeProps = ComponentProps<typeof UniwindScopedTheme> & {
4
+ /** The theme forced on the subtree, such as `'dark'` or `'light'`. */
5
+ theme: ComponentProps<typeof UniwindScopedTheme>['theme'];
6
+ /** The subtree that renders in `theme`. */
7
+ children?: ComponentProps<typeof UniwindScopedTheme>['children'];
8
+ };
4
9
  /**
5
10
  * Forces a specific theme on a component subtree, regardless of the application's
6
11
  * global theme. Useful for marketing heroes, embedded widgets, or preview surfaces
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ScopedTheme/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,WAAW,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE5D,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEzE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,4CAAsC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ScopedTheme/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,WAAW,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE5D,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,GAAG;IACzE,sEAAsE;IACtE,KAAK,EAAE,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAC,OAAO,CAAC,CAAC;IAC1D,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAC,UAAU,CAAC,CAAC;CAClE,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,4CAAsC,CAAC"}
@@ -1,7 +1,10 @@
1
1
  import { type ViewProps } from 'react-native';
2
2
  import Animated from 'react-native-reanimated';
3
3
  export interface SkeletonProps extends ViewProps {
4
+ /** Size and shape classes for the placeholder, such as `h-4 w-32 rounded-md`. */
4
5
  className?: string;
6
+ /** Optional content to render inside the placeholder. */
7
+ children?: ViewProps['children'];
5
8
  /**
6
9
  * Half-cycle of the opacity pulse (`1` → `0.35`) in milliseconds.
7
10
  * A full pulse takes `duration × 2`.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Skeleton/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,QAMN,MAAM,yBAAyB,CAAC;AAIjC,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ,yGAsBpB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Skeleton/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,QAMN,MAAM,yBAAyB,CAAC;AAIjC,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACjC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ,yGAsBpB,CAAC"}
@@ -7,52 +7,106 @@ export type TablePaginationPageSizeOption = number | {
7
7
  label: string;
8
8
  };
9
9
  export interface TablePaginationProps extends ViewProps {
10
+ /** Render the consumer's child element in place of the default container. */
10
11
  asChild?: boolean;
12
+ /** Additional Uniwind/Tailwind classes, merged after the container's own styles. */
11
13
  className?: string;
14
+ /** Custom layout of pagination parts. Omit to render the status, controls and generated page items. */
12
15
  children?: ReactNode;
13
16
  /** 1-based current page. Controlled when set. */
14
17
  page?: number;
18
+ /**
19
+ * Initial 1-based page when uncontrolled.
20
+ * @default 1
21
+ */
15
22
  defaultPage?: number;
16
23
  /** Total page count. When set with no children, items are generated. */
17
24
  count?: number;
25
+ /** Called with the new 1-based page when the user changes page. */
18
26
  onPageChange?: (page: number) => void;
27
+ /**
28
+ * Number of page items shown on each side of the current page before an ellipsis.
29
+ * @default 1
30
+ */
19
31
  siblingCount?: number;
32
+ /** Current rows-per-page value. When set with no children, the page-size select is rendered. */
20
33
  pageSize?: number;
34
+ /**
35
+ * Choices offered by `TablePagination.PageSize`, as numbers or `{ value, label }` pairs.
36
+ * @default [25, 50, 100]
37
+ */
21
38
  pageSizeOptions?: readonly TablePaginationPageSizeOption[];
39
+ /** Called with the new rows-per-page value when the user picks one. */
22
40
  onPageSizeChange?: (pageSize: number) => void;
41
+ /**
42
+ * Disables every control in the pagination.
43
+ * @default false
44
+ */
23
45
  disabled?: boolean;
46
+ /**
47
+ * Accessible name for the pagination.
48
+ * @default 'Table pagination'
49
+ */
24
50
  'aria-label'?: string;
25
51
  }
26
52
  export interface TablePaginationItemProps extends ViewProps {
53
+ /** Render the consumer's child element in place of the default page button. */
27
54
  asChild?: boolean;
55
+ /** Additional Uniwind/Tailwind classes, merged after the item's own styles. */
28
56
  className?: string;
57
+ /** The page number or label to display. */
29
58
  children?: ReactNode;
59
+ /** 1-based page this item navigates to when pressed. */
30
60
  page?: number;
61
+ /**
62
+ * Marks the item as the current page. Set automatically when `page` matches the current page.
63
+ * @default false
64
+ */
31
65
  current?: boolean;
66
+ /** Disables the item. Defaults to the pagination's `disabled`. */
32
67
  disabled?: boolean;
68
+ /** Called on press, before the pagination navigates to `page`. */
33
69
  onPress?: PressableProps['onPress'];
34
70
  }
35
71
  export interface TablePaginationControlProps extends ViewProps {
72
+ /** Render the consumer's child element in place of the default icon button. */
36
73
  asChild?: boolean;
74
+ /** Additional Uniwind/Tailwind classes, merged after the control's own styles. */
37
75
  className?: string;
76
+ /** The element to render when `asChild` is set. */
38
77
  children?: ReactNode;
78
+ /** Disables the control. It is also disabled at the first or last page, or when the pagination is disabled. */
39
79
  disabled?: boolean;
80
+ /** Called on press, before the pagination moves to the adjacent page. */
40
81
  onPress?: PressableProps['onPress'];
41
82
  }
42
83
  export interface TablePaginationEllipsisProps extends ViewProps {
84
+ /** Render the consumer's child element in place of the default `View` host. */
43
85
  asChild?: boolean;
86
+ /** Additional Uniwind/Tailwind classes, merged after the ellipsis's own styles. */
44
87
  className?: string;
88
+ /** Custom content in place of the default `…`. */
45
89
  children?: ReactNode;
46
90
  }
47
91
  export interface TablePaginationStatusProps extends ViewProps {
92
+ /** Render the consumer's child element in place of the default `View` host. */
48
93
  asChild?: boolean;
94
+ /** Additional Uniwind/Tailwind classes, merged after the status's own styles. */
49
95
  className?: string;
96
+ /** Custom status content in place of the default "Page N of M" text. */
50
97
  children?: ReactNode;
51
98
  }
52
99
  export interface TablePaginationPageSizeProps extends ViewProps {
100
+ /** Render the consumer's child element in place of the default select. */
53
101
  asChild?: boolean;
102
+ /** Additional Uniwind/Tailwind classes, merged after the select's own styles. */
54
103
  className?: string;
104
+ /** The element to render when `asChild` is set. */
55
105
  children?: ReactNode;
106
+ /**
107
+ * Accessible name for the page-size select.
108
+ * @default 'Rows per page'
109
+ */
56
110
  'aria-label'?: string;
57
111
  }
58
112
  declare const TablePaginationRoot: import("react").ForwardRefExoticComponent<TablePaginationProps & import("react").RefAttributes<View>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TablePagination/index.tsx"],"names":[],"mappings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OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,4BAA6B,SAAQ,SAAS;IAC7D,0EAA0E;IAC1E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAUD,QAAA,MAAM,mBAAmB,uGA0HxB,CAAC;AAIF,QAAA,MAAM,mBAAmB,2GA6DxB,CAAC;AAIF,QAAA,MAAM,uBAAuB,8GA0C5B,CAAC;AAIF,QAAA,MAAM,mBAAmB,8GA0CxB,CAAC;AAIF,QAAA,MAAM,uBAAuB,+GAwB5B,CAAC;AAIF,QAAA,MAAM,qBAAqB,6GA2B1B,CAAC;AAIF,QAAA,MAAM,uBAAuB,+GA6C5B,CAAC;AAIF,KAAK,gCAAgC,GAAG,OAAO,mBAAmB,GAAG;IACnE,QAAQ,EAAE,OAAO,uBAAuB,CAAC;IACzC,IAAI,EAAE,OAAO,mBAAmB,CAAC;IACjC,IAAI,EAAE,OAAO,mBAAmB,CAAC;IACjC,QAAQ,EAAE,OAAO,uBAAuB,CAAC;IACzC,MAAM,EAAE,OAAO,qBAAqB,CAAC;IACrC,QAAQ,EAAE,OAAO,uBAAuB,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,eAAe,EAOtB,gCAAgC,CAAC"}
@@ -4,7 +4,7 @@ import { type TextVariantProps } from './styles';
4
4
  export type TextColor = NonNullable<TextVariantProps['color']>;
5
5
  export type TextSize = NonNullable<TextVariantProps['size']>;
6
6
  export type TextWeight = NonNullable<TextVariantProps['weight']>;
7
- export type TextProps = Omit<TextVariantProps, 'color' | 'size' | 'weight'> & ComponentPropsWithoutRef<typeof RNText> & {
7
+ export type TextProps = Omit<TextVariantProps, 'color' | 'size' | 'weight' | 'italic'> & ComponentPropsWithoutRef<typeof RNText> & {
8
8
  /**
9
9
  * Semantic content color, mapped to the matching `text-content-*` token.
10
10
  * A `Text` nested inside another text element inherits its parent's color when omitted.
@@ -22,9 +22,14 @@ export type TextProps = Omit<TextVariantProps, 'color' | 'size' | 'weight'> & Co
22
22
  * @default 'normal'
23
23
  */
24
24
  weight?: TextWeight;
25
+ /** Renders the text in italics. A nested `Text` inherits its parent's style when omitted. */
26
+ italic?: TextVariantProps['italic'];
27
+ /** Additional Uniwind/Tailwind classes, merged after the text's own styles. */
25
28
  className?: string;
29
+ /** Text content, which may include nested `Text` elements. */
30
+ children?: ComponentPropsWithoutRef<typeof RNText>['children'];
26
31
  };
27
- export declare const Text: import("react").ForwardRefExoticComponent<Omit<TextVariantProps, "color" | "size" | "weight"> & import("react-native").TextProps & {
32
+ export declare const Text: import("react").ForwardRefExoticComponent<Omit<TextVariantProps, "color" | "size" | "italic" | "weight"> & import("react-native").TextProps & {
28
33
  /**
29
34
  * Semantic content color, mapped to the matching `text-content-*` token.
30
35
  * A `Text` nested inside another text element inherits its parent's color when omitted.
@@ -42,6 +47,11 @@ export declare const Text: import("react").ForwardRefExoticComponent<Omit<TextVa
42
47
  * @default 'normal'
43
48
  */
44
49
  weight?: TextWeight;
50
+ /** Renders the text in italics. A nested `Text` inherits its parent's style when omitted. */
51
+ italic?: TextVariantProps["italic"];
52
+ /** Additional Uniwind/Tailwind classes, merged after the text's own styles. */
45
53
  className?: string;
54
+ /** Text content, which may include nested `Text` elements. */
55
+ children?: ComponentPropsWithoutRef<typeof RNText>["children"];
46
56
  } & import("react").RefAttributes<RNText>>;
47
57
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,wBAAwB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EA4C5B,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"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Tile/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAGvD,eAAO,MAAM,iBAAiB;;;8EAe5B,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE3E,eAAO,MAAM,gBAAgB;;;8EA+C5B,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"}
@@ -12,7 +12,7 @@ export declare const toggleButtonRootVariants: (props?: ({
12
12
  */
13
13
  export declare const toggleButtonAttachedVariants: (props?: ({
14
14
  orientation?: "vertical" | "horizontal" | null | undefined;
15
- position?: "middle" | "only" | "first" | "last" | null | undefined;
15
+ position?: "middle" | "first" | "only" | "last" | null | undefined;
16
16
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
17
17
  export type ToggleButtonAttachedPosition = NonNullable<VariantProps<typeof toggleButtonAttachedVariants>['position']>;
18
18
  export declare const toggleButtonGroupVariants: (props?: ({
@@ -52,6 +52,7 @@ export * from './ScrollShadow';
52
52
  export * from './Select';
53
53
  export * from './Slider';
54
54
  export * from './VirtualizedList';
55
+ export type { ReorderableListLabels, ReorderableListProps, ReorderableListRenderItemInfo, } from './ReorderableList/types';
55
56
  export * from './Switch';
56
57
  export * from './Tabs';
57
58
  export * from './Table';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACjG,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AAC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V,qBAAqB,EACrB,oBAAoB,EACpB,6BAA6B,GAC9B,MAAM,yBAAyB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,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;AAC7B,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './components/ReorderableList';
2
+ //# sourceMappingURL=reorderable-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reorderable-list.d.ts","sourceRoot":"","sources":["../../src/reorderable-list.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdx-ui/components",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,6 +20,13 @@
20
20
  "require": "./lib/commonjs/index.js",
21
21
  "default": "./lib/module/index.js"
22
22
  },
23
+ "./reorderable-list": {
24
+ "react-native": "./src/reorderable-list.ts",
25
+ "types": "./lib/typescript/reorderable-list.d.ts",
26
+ "import": "./lib/module/reorderable-list.js",
27
+ "require": "./lib/commonjs/reorderable-list.js",
28
+ "default": "./lib/module/reorderable-list.js"
29
+ },
23
30
  "./styles.css": "./src/styles.css"
24
31
  },
25
32
  "files": [
@@ -43,17 +50,30 @@
43
50
  ]
44
51
  },
45
52
  "peerDependencies": {
53
+ "@dnd-kit/core": "^6.3.0",
54
+ "@dnd-kit/sortable": "^10.0.0",
55
+ "@dnd-kit/utilities": "^3.2.0",
46
56
  "@shopify/flash-list": ">=2.0.0",
47
57
  "react": "^18.2.0 || ^19.0.0",
48
58
  "react-native": ">=0.76.0",
49
59
  "react-native-gesture-handler": ">=2.0.0",
50
60
  "react-native-reanimated": ">=4.0.0",
51
- "react-native-svg": "^13.0.0 || ^14.0.0 || ^15.0.0",
52
61
  "react-native-safe-area-context": ">=4.0.0",
62
+ "react-native-sortables": "^1.10.1",
63
+ "react-native-svg": "^13.0.0 || ^14.0.0 || ^15.0.0",
53
64
  "react-native-web": ">=0.19.0",
54
65
  "react-native-worklets": ">=0.4.0"
55
66
  },
56
67
  "peerDependenciesMeta": {
68
+ "@dnd-kit/core": {
69
+ "optional": true
70
+ },
71
+ "@dnd-kit/sortable": {
72
+ "optional": true
73
+ },
74
+ "@dnd-kit/utilities": {
75
+ "optional": true
76
+ },
57
77
  "@shopify/flash-list": {
58
78
  "optional": true
59
79
  },
@@ -66,6 +86,9 @@
66
86
  "react-native-reanimated": {
67
87
  "optional": true
68
88
  },
89
+ "react-native-sortables": {
90
+ "optional": true
91
+ },
69
92
  "react-native-svg": {
70
93
  "optional": true
71
94
  },
@@ -81,20 +104,24 @@
81
104
  "@marceloterreiro/flash-calendar": "2.0.0",
82
105
  "react-native-reanimated-carousel": "5.0.0-beta.5",
83
106
  "uniwind": "1.10.0",
84
- "@cdx-ui/formatters": "0.2.1",
85
- "@cdx-ui/icons": "0.2.1",
86
- "@cdx-ui/utils": "0.2.1",
87
- "@cdx-ui/primitives": "0.2.1"
107
+ "@cdx-ui/formatters": "0.2.3",
108
+ "@cdx-ui/utils": "0.2.3",
109
+ "@cdx-ui/icons": "0.2.3",
110
+ "@cdx-ui/primitives": "0.2.3"
88
111
  },
89
112
  "devDependencies": {
113
+ "@dnd-kit/core": "6.3.1",
114
+ "@dnd-kit/sortable": "10.0.0",
115
+ "@dnd-kit/utilities": "3.2.2",
90
116
  "@react-navigation/bottom-tabs": "*",
91
- "react-native-screens": "*",
92
117
  "@types/react": "19.1.17",
93
118
  "@types/react-dom": "*",
94
119
  "react": "19.1.0",
95
120
  "react-dom": "19.1.0",
96
121
  "react-native": "*",
97
122
  "react-native-builder-bob": "*",
123
+ "react-native-screens": "*",
124
+ "react-native-sortables": "1.10.1",
98
125
  "react-native-svg": "*",
99
126
  "react-native-web": "*",
100
127
  "typescript": "*"
@@ -17,7 +17,13 @@ export const buttonRootVariants = cva(
17
17
  {
18
18
  variants: {
19
19
  variant: {
20
- solid: ['border-b-1 border-black/75'], // TODO: Replace with token
20
+ // Native border renderers don't taper a single-side border around rounded corners the
21
+ // way browsers do; an inset shadow is clipped to the radius, so it reproduces the web curl.
22
+ // TODO: Replace color with token
23
+ solid: Platform.select({
24
+ default: 'inset-shadow-[0_-1px_0_rgb(0_0_0/0.75)]',
25
+ web: 'border-b-1 border-black/75',
26
+ }),
21
27
  outline: ['bg-transparent', 'border border-stroke-primary'],
22
28
  ghost: ['bg-transparent'],
23
29
  },
@@ -25,7 +25,9 @@ import {
25
25
  // =============================================================================
26
26
 
27
27
  export interface CheckboxProps extends ICheckboxProps {
28
+ /** Additional Uniwind/Tailwind classes, merged after the checkbox's own styles. */
28
29
  className?: string;
30
+ /** Content rendered after the indicator, typically a `Checkbox.Label`. */
29
31
  children?: ReactNode;
30
32
  }
31
33
 
@@ -74,8 +76,11 @@ const INDICATOR_STATES = {
74
76
  } as const;
75
77
 
76
78
  export interface CheckboxIndicatorProps extends ViewProps {
79
+ /** Render the consumer's child element in place of the default `View` host. */
77
80
  asChild?: boolean;
81
+ /** Additional Uniwind/Tailwind classes, merged after the indicator's own styles. */
78
82
  className?: string;
83
+ /** Indicator content, typically a `Checkbox.Icon`. */
79
84
  children?: ReactNode;
80
85
  }
81
86
 
@@ -183,8 +188,11 @@ const CheckboxIconSlot = ({
183
188
  // =============================================================================
184
189
 
185
190
  export interface CheckboxLabelProps extends TextProps {
191
+ /** Render the consumer's child element in place of the default `Text` host. */
186
192
  asChild?: boolean;
193
+ /** Additional Uniwind/Tailwind classes, merged after the label's own styles. */
187
194
  className?: string;
195
+ /** Label content (or a custom element when `asChild` is set). */
188
196
  children?: ReactNode;
189
197
  }
190
198
 
@@ -222,13 +230,27 @@ CheckboxLabel.displayName = 'Checkbox.Label';
222
230
  // =============================================================================
223
231
 
224
232
  export interface CheckboxGroupProps extends ViewProps {
233
+ /** Additional Uniwind/Tailwind classes, merged after the group's own styles. */
225
234
  className?: string;
235
+ /** The `Checkbox` items in the group. */
226
236
  children?: ReactNode;
237
+ /**
238
+ * The `value` of every checked checkbox in the group.
239
+ * @default []
240
+ */
227
241
  value?: string[];
242
+ /** Called with the updated list of checked values when the user toggles a checkbox. */
228
243
  onChange?: (value: string[]) => void;
244
+ /** Disables every checkbox in the group. */
229
245
  isDisabled?: boolean;
246
+ /** Marks the group as invalid. Set `isInvalid` on each `Checkbox` to style it as invalid. */
230
247
  isInvalid?: boolean;
248
+ /** Makes every checkbox in the group focusable but unchangeable. */
231
249
  isReadOnly?: boolean;
250
+ /**
251
+ * Stacks the checkboxes vertically (`column`) or lays them out in a row.
252
+ * @default 'column'
253
+ */
232
254
  direction?: 'column' | 'row';
233
255
  'aria-label'?: string;
234
256
  'aria-labelledby'?: string;
@@ -80,7 +80,7 @@ const FieldLabel = forwardRef<View, FieldLabelProps>(
80
80
  style={style}
81
81
  htmlFor={htmlFor}
82
82
  requiredIndicator={
83
- <Text className="text-content-danger" aria-hidden>
83
+ <Text className="text-content-danger web:inline" aria-hidden>
84
84
  {' *'}
85
85
  </Text>
86
86
  }
@@ -11,9 +11,18 @@ const sizeToLevel = {
11
11
  xs: 5,
12
12
  } as const;
13
13
 
14
- export type HeadingProps = HeadingVariantProps &
14
+ export type HeadingProps = Omit<HeadingVariantProps, 'size'> &
15
15
  ComponentPropsWithoutRef<typeof Text> & {
16
+ /**
17
+ * Heading typography style. Also sets the accessibility heading level: `xl` is level 1
18
+ * through `xs` at level 5.
19
+ * @default 'lg'
20
+ */
21
+ size?: HeadingVariantProps['size'];
22
+ /** Additional Uniwind/Tailwind classes, merged after the heading's own styles. */
16
23
  className?: string;
24
+ /** Heading text. */
25
+ children?: ComponentPropsWithoutRef<typeof Text>['children'];
17
26
  };
18
27
 
19
28
  export const Heading = memo(
@@ -18,7 +18,9 @@ export type IconProps = Omit<ForgeIconProps, 'color'> & {
18
18
  * @default 'primary'
19
19
  */
20
20
  color?: IconColor | (string & {}) | Exclude<SvgColor, string>;
21
+ /** Utility classes for size (`size-*`) and placement, merged after the defaults. */
21
22
  className?: string; // TODO: Why does this need to specified manually?
23
+ /** The `@cdx-ui/icons` component to render. */
22
24
  as: ForgeIcon;
23
25
  };
24
26