@cdx-ui/components 0.2.2 → 0.2.4

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 (373) hide show
  1. package/AGENTS.md +24 -0
  2. package/README.md +6 -2
  3. package/coverage.svg +1 -1
  4. package/docs/components/accordion/content.md +538 -0
  5. package/docs/components/alert/content.md +203 -0
  6. package/docs/components/alert-dialog/content.md +319 -0
  7. package/docs/components/avatar/content.md +368 -0
  8. package/docs/components/avatar/design.md +202 -0
  9. package/docs/components/badge/content.md +235 -0
  10. package/docs/components/bottom-sheet/content.md +351 -0
  11. package/docs/components/bottom-sheet/design.md +249 -0
  12. package/docs/components/breadcrumbs/content.md +169 -0
  13. package/docs/components/button/content.md +398 -0
  14. package/docs/components/button/design.md +258 -0
  15. package/docs/components/calendar/content.md +137 -0
  16. package/docs/components/card/content.md +283 -0
  17. package/docs/components/carousel/content.md +416 -0
  18. package/docs/components/checkbox/content.md +236 -0
  19. package/docs/components/checkbox/design.md +214 -0
  20. package/docs/components/chip/content.md +439 -0
  21. package/docs/components/chip/design.md +418 -0
  22. package/docs/components/color-area/content.md +86 -0
  23. package/docs/components/color-field/content.md +134 -0
  24. package/docs/components/color-picker/content.md +208 -0
  25. package/docs/components/color-slider/content.md +120 -0
  26. package/docs/components/color-swatch/content.md +64 -0
  27. package/docs/components/color-swatch-picker/content.md +126 -0
  28. package/docs/components/content.md +97 -0
  29. package/docs/components/currency-input/content.md +205 -0
  30. package/docs/components/data-grid/content.md +522 -0
  31. package/docs/components/date-field/content.md +147 -0
  32. package/docs/components/date-picker/content.md +360 -0
  33. package/docs/components/date-range-picker/content.md +301 -0
  34. package/docs/components/date-time-field/content.md +157 -0
  35. package/docs/components/date-time-list/content.md +105 -0
  36. package/docs/components/date-time-picker/content.md +272 -0
  37. package/docs/components/dialog/content.md +436 -0
  38. package/docs/components/dialog/design.md +192 -0
  39. package/docs/components/divider/content.md +112 -0
  40. package/docs/components/drawer/content.md +436 -0
  41. package/docs/components/field/content.md +277 -0
  42. package/docs/components/form/content.md +62 -0
  43. package/docs/components/full-screen-dialog/content.md +881 -0
  44. package/docs/components/heading/content.md +55 -0
  45. package/docs/components/icon/content.md +190 -0
  46. package/docs/components/icon-button/content.md +200 -0
  47. package/docs/components/icon-button/design.md +165 -0
  48. package/docs/components/image/content.md +104 -0
  49. package/docs/components/input/content.md +281 -0
  50. package/docs/components/input/design.md +389 -0
  51. package/docs/components/insurance-disclosure/content.md +103 -0
  52. package/docs/components/link/content.md +180 -0
  53. package/docs/components/link/design.md +160 -0
  54. package/docs/components/list-item/content.md +695 -0
  55. package/docs/components/menu/content.md +1247 -0
  56. package/docs/components/month-calendar/content.md +84 -0
  57. package/docs/components/month-picker/content.md +273 -0
  58. package/docs/components/otp-input/content.md +327 -0
  59. package/docs/components/progress-bar/content.md +87 -0
  60. package/docs/components/progress-circle/content.md +176 -0
  61. package/docs/components/progress-segmented/content.md +119 -0
  62. package/docs/components/quick-action-button/content.md +154 -0
  63. package/docs/components/quick-action-button/design.md +170 -0
  64. package/docs/components/radio/content.md +224 -0
  65. package/docs/components/range-calendar/content.md +123 -0
  66. package/docs/components/reorderable-list/content.md +309 -0
  67. package/docs/components/scoped-theme/content.md +47 -0
  68. package/docs/components/scroll-shadow/content.md +686 -0
  69. package/docs/components/select/content.md +400 -0
  70. package/docs/components/select/design.md +301 -0
  71. package/docs/components/skeleton/content.md +103 -0
  72. package/docs/components/slider/content.md +423 -0
  73. package/docs/components/stack/content.md +161 -0
  74. package/docs/components/switch/content.md +150 -0
  75. package/docs/components/switch/design.md +208 -0
  76. package/docs/components/table/content.md +548 -0
  77. package/docs/components/table-pagination/content.md +177 -0
  78. package/docs/components/tabs/content.md +292 -0
  79. package/docs/components/text/content.md +142 -0
  80. package/docs/components/textarea/content.md +222 -0
  81. package/docs/components/tile/content.md +703 -0
  82. package/docs/components/toast/content.md +456 -0
  83. package/docs/components/toggle-button/content.md +505 -0
  84. package/docs/components/tooltip/content.md +350 -0
  85. package/docs/components/virtualized-list/content.md +250 -0
  86. package/docs/foundations/content.md +9 -0
  87. package/docs/foundations/expressions/icons/content.md +19 -0
  88. package/docs/foundations/styles/tokens/all-tokens/content.md +192 -0
  89. package/docs/foundations/styles/tokens/what-are-tokens/content.md +33 -0
  90. package/docs/foundations/styles/tokens/what-are-tokens/design.md +33 -0
  91. package/docs/getting-started/content.md +4 -0
  92. package/docs/getting-started/designers/content.md +13 -0
  93. package/docs/getting-started/designers/design.md +13 -0
  94. package/docs/getting-started/developers/accessibility/content.md +31 -0
  95. package/docs/getting-started/developers/content.md +612 -0
  96. package/docs/getting-started/developers/styling/content.md +193 -0
  97. package/docs/llms.txt +193 -0
  98. package/docs/patterns/account-management/content.md +75 -0
  99. package/docs/patterns/authentication/content.md +52 -0
  100. package/docs/patterns/content.md +10 -0
  101. package/docs/patterns/dashboard/content.md +39 -0
  102. package/docs/patterns/empty-states/content.md +31 -0
  103. package/docs/patterns/forms/content.md +109 -0
  104. package/docs/patterns/onboarding/content.md +69 -0
  105. package/docs/patterns/payments/content.md +35 -0
  106. package/docs/patterns/settings/content.md +72 -0
  107. package/docs/resources/content.md +9 -0
  108. package/docs/resources/figma-libraries/content.md +42 -0
  109. package/docs/resources/release-notes/0.0.1-beta.118/content.md +27 -0
  110. package/docs/resources/release-notes/0.0.1-beta.122/content.md +21 -0
  111. package/docs/resources/release-notes/0.0.1-beta.124/content.md +16 -0
  112. package/docs/resources/release-notes/0.0.1-beta.126/content.md +10 -0
  113. package/docs/resources/release-notes/0.0.1-beta.127/content.md +14 -0
  114. package/docs/resources/release-notes/0.0.1-beta.128/content.md +9 -0
  115. package/docs/resources/release-notes/0.0.1-beta.129/content.md +18 -0
  116. package/docs/resources/release-notes/0.0.1-beta.130/content.md +18 -0
  117. package/docs/resources/release-notes/0.0.1-beta.133/content.md +7 -0
  118. package/docs/resources/release-notes/0.0.1-beta.134/content.md +17 -0
  119. package/docs/resources/release-notes/0.0.1-beta.136/content.md +7 -0
  120. package/docs/resources/release-notes/0.0.1-beta.137/content.md +10 -0
  121. package/docs/resources/release-notes/0.0.1-beta.138/content.md +7 -0
  122. package/docs/resources/release-notes/0.0.1-beta.139/content.md +13 -0
  123. package/docs/resources/release-notes/0.0.1-beta.140/content.md +26 -0
  124. package/docs/resources/release-notes/0.0.1-beta.141/content.md +63 -0
  125. package/docs/resources/release-notes/0.0.1-beta.142/content.md +7 -0
  126. package/docs/resources/release-notes/0.0.1-beta.143/content.md +12 -0
  127. package/docs/resources/release-notes/0.0.1-beta.144/content.md +7 -0
  128. package/docs/resources/release-notes/0.0.1-beta.145/content.md +7 -0
  129. package/docs/resources/release-notes/0.0.1-beta.147/content.md +10 -0
  130. package/docs/resources/release-notes/0.0.1-beta.149/content.md +10 -0
  131. package/docs/resources/release-notes/0.0.1-beta.150/content.md +13 -0
  132. package/docs/resources/release-notes/0.0.1-beta.152/content.md +7 -0
  133. package/docs/resources/release-notes/0.0.1-beta.154/content.md +15 -0
  134. package/docs/resources/release-notes/0.0.1-beta.156/content.md +7 -0
  135. package/docs/resources/release-notes/0.0.1-beta.158/content.md +9 -0
  136. package/docs/resources/release-notes/0.0.1-beta.159/content.md +11 -0
  137. package/docs/resources/release-notes/0.0.1-beta.160/content.md +7 -0
  138. package/docs/resources/release-notes/0.0.1-beta.161/content.md +7 -0
  139. package/docs/resources/release-notes/0.0.1-beta.163/content.md +7 -0
  140. package/docs/resources/release-notes/0.0.1-beta.164/content.md +9 -0
  141. package/docs/resources/release-notes/0.0.1-beta.166/content.md +17 -0
  142. package/docs/resources/release-notes/0.0.1-beta.167/content.md +7 -0
  143. package/docs/resources/release-notes/0.0.1-beta.168/content.md +7 -0
  144. package/docs/resources/release-notes/0.0.1-beta.169/content.md +7 -0
  145. package/docs/resources/release-notes/0.0.1-beta.171/content.md +16 -0
  146. package/docs/resources/release-notes/0.0.1-beta.172/content.md +24 -0
  147. package/docs/resources/release-notes/0.0.1-beta.173/content.md +15 -0
  148. package/docs/resources/release-notes/0.0.1-beta.174/content.md +7 -0
  149. package/docs/resources/release-notes/0.0.1-beta.176/content.md +32 -0
  150. package/docs/resources/release-notes/0.0.1-beta.179/content.md +11 -0
  151. package/docs/resources/release-notes/0.0.1-beta.182/content.md +13 -0
  152. package/docs/resources/release-notes/0.0.1-beta.185/content.md +7 -0
  153. package/docs/resources/release-notes/0.0.1-beta.187/content.md +27 -0
  154. package/docs/resources/release-notes/0.1.1/content.md +23 -0
  155. package/docs/resources/release-notes/0.1.2/content.md +7 -0
  156. package/docs/resources/release-notes/0.1.4/content.md +19 -0
  157. package/docs/resources/release-notes/0.1.5/content.md +7 -0
  158. package/docs/resources/release-notes/0.1.6/content.md +7 -0
  159. package/docs/resources/release-notes/0.2.0/content.md +31 -0
  160. package/docs/resources/release-notes/0.2.1/content.md +17 -0
  161. package/docs/resources/release-notes/0.2.2/content.md +11 -0
  162. package/docs/resources/release-notes/0.2.3/content.md +15 -0
  163. package/docs/resources/release-notes/content.md +64 -0
  164. package/lib/commonjs/components/Checkbox/index.js.map +1 -1
  165. package/lib/commonjs/components/DateTimeList/index.js +11 -26
  166. package/lib/commonjs/components/DateTimeList/index.js.map +1 -1
  167. package/lib/commonjs/components/DateTimeList/styles.js +2 -12
  168. package/lib/commonjs/components/DateTimeList/styles.js.map +1 -1
  169. package/lib/commonjs/components/Heading/index.js.map +1 -1
  170. package/lib/commonjs/components/Icon/index.js.map +1 -1
  171. package/lib/commonjs/components/ListItem/index.js +170 -9
  172. package/lib/commonjs/components/ListItem/index.js.map +1 -1
  173. package/lib/commonjs/components/ListItem/styles.js +38 -2
  174. package/lib/commonjs/components/ListItem/styles.js.map +1 -1
  175. package/lib/commonjs/components/Menu/index.js +11 -5
  176. package/lib/commonjs/components/Menu/index.js.map +1 -1
  177. package/lib/commonjs/components/RangeCalendar/index.js.map +1 -1
  178. package/lib/commonjs/components/ReorderableList/ReorderableListShared.js +91 -0
  179. package/lib/commonjs/components/ReorderableList/ReorderableListShared.js.map +1 -0
  180. package/lib/commonjs/components/ReorderableList/index.js +135 -0
  181. package/lib/commonjs/components/ReorderableList/index.js.map +1 -0
  182. package/lib/commonjs/components/ReorderableList/index.web.js +233 -0
  183. package/lib/commonjs/components/ReorderableList/index.web.js.map +1 -0
  184. package/lib/commonjs/components/ReorderableList/labels.js +47 -0
  185. package/lib/commonjs/components/ReorderableList/labels.js.map +1 -0
  186. package/lib/commonjs/components/ReorderableList/reorderItems.js +16 -0
  187. package/lib/commonjs/components/ReorderableList/reorderItems.js.map +1 -0
  188. package/lib/commonjs/components/ReorderableList/rowContext.js +42 -0
  189. package/lib/commonjs/components/ReorderableList/rowContext.js.map +1 -0
  190. package/lib/commonjs/components/ReorderableList/types.js +6 -0
  191. package/lib/commonjs/components/ReorderableList/types.js.map +1 -0
  192. package/lib/commonjs/components/ReorderableList/useReorder.js +131 -0
  193. package/lib/commonjs/components/ReorderableList/useReorder.js.map +1 -0
  194. package/lib/commonjs/components/ReorderableList/webDnd.js +64 -0
  195. package/lib/commonjs/components/ReorderableList/webDnd.js.map +1 -0
  196. package/lib/commonjs/components/ScopedTheme/index.js.map +1 -1
  197. package/lib/commonjs/components/ScrollShadow/gradient.js +29 -0
  198. package/lib/commonjs/components/ScrollShadow/gradient.js.map +1 -0
  199. package/lib/commonjs/components/ScrollShadow/index.js +171 -44
  200. package/lib/commonjs/components/ScrollShadow/index.js.map +1 -1
  201. package/lib/commonjs/components/ScrollShadow/styles.js +58 -14
  202. package/lib/commonjs/components/ScrollShadow/styles.js.map +1 -1
  203. package/lib/commonjs/components/ScrollShadow/useComposedScrollHandler.js +63 -0
  204. package/lib/commonjs/components/ScrollShadow/useComposedScrollHandler.js.map +1 -0
  205. package/lib/commonjs/components/ScrollShadow/useScrollShadow.js +48 -8
  206. package/lib/commonjs/components/ScrollShadow/useScrollShadow.js.map +1 -1
  207. package/lib/commonjs/components/Skeleton/index.js.map +1 -1
  208. package/lib/commonjs/components/TablePagination/index.js.map +1 -1
  209. package/lib/commonjs/components/Tabs/index.js +16 -23
  210. package/lib/commonjs/components/Tabs/index.js.map +1 -1
  211. package/lib/commonjs/components/Tabs/styles.js +1 -10
  212. package/lib/commonjs/components/Tabs/styles.js.map +1 -1
  213. package/lib/commonjs/components/Text/index.js.map +1 -1
  214. package/lib/commonjs/components/Tile/styles.js +1 -1
  215. package/lib/commonjs/components/Tile/styles.js.map +1 -1
  216. package/lib/commonjs/components/index.js.map +1 -1
  217. package/lib/commonjs/figma/ListItem.SectionHeader.figma.js +20 -5
  218. package/lib/commonjs/figma/ListItem.SectionHeader.figma.js.map +1 -1
  219. package/lib/commonjs/reorderable-list.js +17 -0
  220. package/lib/commonjs/reorderable-list.js.map +1 -0
  221. package/lib/module/components/Checkbox/index.js.map +1 -1
  222. package/lib/module/components/DateTimeList/index.js +12 -27
  223. package/lib/module/components/DateTimeList/index.js.map +1 -1
  224. package/lib/module/components/DateTimeList/styles.js +1 -11
  225. package/lib/module/components/DateTimeList/styles.js.map +1 -1
  226. package/lib/module/components/Heading/index.js.map +1 -1
  227. package/lib/module/components/Icon/index.js.map +1 -1
  228. package/lib/module/components/ListItem/index.js +163 -14
  229. package/lib/module/components/ListItem/index.js.map +1 -1
  230. package/lib/module/components/ListItem/styles.js +37 -1
  231. package/lib/module/components/ListItem/styles.js.map +1 -1
  232. package/lib/module/components/Menu/index.js +11 -5
  233. package/lib/module/components/Menu/index.js.map +1 -1
  234. package/lib/module/components/RangeCalendar/index.js.map +1 -1
  235. package/lib/module/components/ReorderableList/ReorderableListShared.js +86 -0
  236. package/lib/module/components/ReorderableList/ReorderableListShared.js.map +1 -0
  237. package/lib/module/components/ReorderableList/index.js +130 -0
  238. package/lib/module/components/ReorderableList/index.js.map +1 -0
  239. package/lib/module/components/ReorderableList/index.web.js +229 -0
  240. package/lib/module/components/ReorderableList/index.web.js.map +1 -0
  241. package/lib/module/components/ReorderableList/labels.js +41 -0
  242. package/lib/module/components/ReorderableList/labels.js.map +1 -0
  243. package/lib/module/components/ReorderableList/reorderItems.js +12 -0
  244. package/lib/module/components/ReorderableList/reorderItems.js.map +1 -0
  245. package/lib/module/components/ReorderableList/rowContext.js +38 -0
  246. package/lib/module/components/ReorderableList/rowContext.js.map +1 -0
  247. package/lib/module/components/ReorderableList/types.js +4 -0
  248. package/lib/module/components/ReorderableList/types.js.map +1 -0
  249. package/lib/module/components/ReorderableList/useReorder.js +123 -0
  250. package/lib/module/components/ReorderableList/useReorder.js.map +1 -0
  251. package/lib/module/components/ReorderableList/webDnd.js +59 -0
  252. package/lib/module/components/ReorderableList/webDnd.js.map +1 -0
  253. package/lib/module/components/ScopedTheme/index.js.map +1 -1
  254. package/lib/module/components/ScrollShadow/gradient.js +24 -0
  255. package/lib/module/components/ScrollShadow/gradient.js.map +1 -0
  256. package/lib/module/components/ScrollShadow/index.js +170 -48
  257. package/lib/module/components/ScrollShadow/index.js.map +1 -1
  258. package/lib/module/components/ScrollShadow/styles.js +57 -13
  259. package/lib/module/components/ScrollShadow/styles.js.map +1 -1
  260. package/lib/module/components/ScrollShadow/useComposedScrollHandler.js +57 -0
  261. package/lib/module/components/ScrollShadow/useComposedScrollHandler.js.map +1 -0
  262. package/lib/module/components/ScrollShadow/useScrollShadow.js +46 -8
  263. package/lib/module/components/ScrollShadow/useScrollShadow.js.map +1 -1
  264. package/lib/module/components/Skeleton/index.js.map +1 -1
  265. package/lib/module/components/TablePagination/index.js.map +1 -1
  266. package/lib/module/components/Tabs/index.js +17 -24
  267. package/lib/module/components/Tabs/index.js.map +1 -1
  268. package/lib/module/components/Tabs/styles.js +0 -9
  269. package/lib/module/components/Tabs/styles.js.map +1 -1
  270. package/lib/module/components/Text/index.js.map +1 -1
  271. package/lib/module/components/Tile/styles.js +1 -1
  272. package/lib/module/components/Tile/styles.js.map +1 -1
  273. package/lib/module/components/index.js.map +1 -1
  274. package/lib/module/figma/ListItem.SectionHeader.figma.js +20 -5
  275. package/lib/module/figma/ListItem.SectionHeader.figma.js.map +1 -1
  276. package/lib/module/reorderable-list.js +4 -0
  277. package/lib/module/reorderable-list.js.map +1 -0
  278. package/lib/typescript/components/Checkbox/index.d.ts +22 -0
  279. package/lib/typescript/components/Checkbox/index.d.ts.map +1 -1
  280. package/lib/typescript/components/DateTimeList/index.d.ts.map +1 -1
  281. package/lib/typescript/components/DateTimeList/styles.d.ts +1 -4
  282. package/lib/typescript/components/DateTimeList/styles.d.ts.map +1 -1
  283. package/lib/typescript/components/Heading/index.d.ts +20 -2
  284. package/lib/typescript/components/Heading/index.d.ts.map +1 -1
  285. package/lib/typescript/components/Icon/index.d.ts +2 -0
  286. package/lib/typescript/components/Icon/index.d.ts.map +1 -1
  287. package/lib/typescript/components/ListItem/index.d.ts +28 -5
  288. package/lib/typescript/components/ListItem/index.d.ts.map +1 -1
  289. package/lib/typescript/components/ListItem/styles.d.ts +6 -1
  290. package/lib/typescript/components/ListItem/styles.d.ts.map +1 -1
  291. package/lib/typescript/components/Menu/index.d.ts +116 -4
  292. package/lib/typescript/components/Menu/index.d.ts.map +1 -1
  293. package/lib/typescript/components/RangeCalendar/index.d.ts +2 -0
  294. package/lib/typescript/components/RangeCalendar/index.d.ts.map +1 -1
  295. package/lib/typescript/components/ReorderableList/ReorderableListShared.d.ts +31 -0
  296. package/lib/typescript/components/ReorderableList/ReorderableListShared.d.ts.map +1 -0
  297. package/lib/typescript/components/ReorderableList/index.d.ts +8 -0
  298. package/lib/typescript/components/ReorderableList/index.d.ts.map +1 -0
  299. package/lib/typescript/components/ReorderableList/index.web.d.ts +8 -0
  300. package/lib/typescript/components/ReorderableList/index.web.d.ts.map +1 -0
  301. package/lib/typescript/components/ReorderableList/labels.d.ts +16 -0
  302. package/lib/typescript/components/ReorderableList/labels.d.ts.map +1 -0
  303. package/lib/typescript/components/ReorderableList/reorderItems.d.ts +3 -0
  304. package/lib/typescript/components/ReorderableList/reorderItems.d.ts.map +1 -0
  305. package/lib/typescript/components/ReorderableList/rowContext.d.ts +57 -0
  306. package/lib/typescript/components/ReorderableList/rowContext.d.ts.map +1 -0
  307. package/lib/typescript/components/ReorderableList/types.d.ts +75 -0
  308. package/lib/typescript/components/ReorderableList/types.d.ts.map +1 -0
  309. package/lib/typescript/components/ReorderableList/useReorder.d.ts +31 -0
  310. package/lib/typescript/components/ReorderableList/useReorder.d.ts.map +1 -0
  311. package/lib/typescript/components/ReorderableList/webDnd.d.ts +27 -0
  312. package/lib/typescript/components/ReorderableList/webDnd.d.ts.map +1 -0
  313. package/lib/typescript/components/ScopedTheme/index.d.ts +6 -1
  314. package/lib/typescript/components/ScopedTheme/index.d.ts.map +1 -1
  315. package/lib/typescript/components/ScrollShadow/gradient.d.ts +7 -0
  316. package/lib/typescript/components/ScrollShadow/gradient.d.ts.map +1 -0
  317. package/lib/typescript/components/ScrollShadow/index.d.ts +57 -15
  318. package/lib/typescript/components/ScrollShadow/index.d.ts.map +1 -1
  319. package/lib/typescript/components/ScrollShadow/styles.d.ts +8 -2
  320. package/lib/typescript/components/ScrollShadow/styles.d.ts.map +1 -1
  321. package/lib/typescript/components/ScrollShadow/useComposedScrollHandler.d.ts +13 -0
  322. package/lib/typescript/components/ScrollShadow/useComposedScrollHandler.d.ts.map +1 -0
  323. package/lib/typescript/components/ScrollShadow/useScrollShadow.d.ts +15 -2
  324. package/lib/typescript/components/ScrollShadow/useScrollShadow.d.ts.map +1 -1
  325. package/lib/typescript/components/Skeleton/index.d.ts +3 -0
  326. package/lib/typescript/components/Skeleton/index.d.ts.map +1 -1
  327. package/lib/typescript/components/TablePagination/index.d.ts +54 -0
  328. package/lib/typescript/components/TablePagination/index.d.ts.map +1 -1
  329. package/lib/typescript/components/Tabs/index.d.ts.map +1 -1
  330. package/lib/typescript/components/Tabs/styles.d.ts +0 -7
  331. package/lib/typescript/components/Tabs/styles.d.ts.map +1 -1
  332. package/lib/typescript/components/Text/index.d.ts +12 -2
  333. package/lib/typescript/components/Text/index.d.ts.map +1 -1
  334. package/lib/typescript/components/Tile/styles.d.ts.map +1 -1
  335. package/lib/typescript/components/ToggleButton/styles.d.ts +1 -1
  336. package/lib/typescript/components/index.d.ts +1 -0
  337. package/lib/typescript/components/index.d.ts.map +1 -1
  338. package/lib/typescript/figma/ListItem.SectionHeader.figma.d.ts.map +1 -1
  339. package/lib/typescript/reorderable-list.d.ts +2 -0
  340. package/lib/typescript/reorderable-list.d.ts.map +1 -0
  341. package/package.json +37 -8
  342. package/src/components/Checkbox/index.tsx +22 -0
  343. package/src/components/DateTimeList/index.tsx +13 -26
  344. package/src/components/DateTimeList/styles.ts +1 -10
  345. package/src/components/Heading/index.tsx +10 -1
  346. package/src/components/Icon/index.tsx +2 -0
  347. package/src/components/ListItem/index.tsx +232 -15
  348. package/src/components/ListItem/styles.ts +41 -0
  349. package/src/components/Menu/index.tsx +128 -12
  350. package/src/components/RangeCalendar/index.tsx +2 -0
  351. package/src/components/ReorderableList/ReorderableListShared.tsx +113 -0
  352. package/src/components/ReorderableList/index.tsx +162 -0
  353. package/src/components/ReorderableList/index.web.tsx +254 -0
  354. package/src/components/ReorderableList/labels.ts +52 -0
  355. package/src/components/ReorderableList/reorderItems.ts +16 -0
  356. package/src/components/ReorderableList/rowContext.tsx +72 -0
  357. package/src/components/ReorderableList/types.ts +80 -0
  358. package/src/components/ReorderableList/useReorder.ts +159 -0
  359. package/src/components/ReorderableList/webDnd.ts +60 -0
  360. package/src/components/ScopedTheme/index.tsx +6 -1
  361. package/src/components/ScrollShadow/gradient.ts +48 -0
  362. package/src/components/ScrollShadow/index.tsx +300 -69
  363. package/src/components/ScrollShadow/styles.ts +45 -28
  364. package/src/components/ScrollShadow/useComposedScrollHandler.ts +58 -0
  365. package/src/components/ScrollShadow/useScrollShadow.ts +72 -10
  366. package/src/components/Skeleton/index.tsx +3 -0
  367. package/src/components/TablePagination/index.tsx +54 -0
  368. package/src/components/Tabs/index.tsx +25 -35
  369. package/src/components/Tabs/styles.ts +0 -9
  370. package/src/components/Text/index.tsx +6 -1
  371. package/src/components/Tile/styles.ts +4 -1
  372. package/src/components/index.ts +5 -0
  373. package/src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C;AAIF,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,+EAA+E;IAC/E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gFAAgF;IAChF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,QAAA,MAAM,aAAa,qGAgBlB,CAAC;AAQF,KAAK,qBAAqB,GAAG,OAAO,eAAe,GAAG;IACpD,OAAO,EAAE,OAAO,WAAW,CAAC;IAC5B,KAAK,EAAE,OAAO,SAAS,CAAC;IACxB,OAAO,EAAE,OAAO,WAAW,CAAC;IAC5B,IAAI,EAAE,OAAO,QAAQ,CAAC;IACtB,YAAY,EAAE,OAAO,gBAAgB,CAAC;IACtC,UAAU,EAAE,OAAO,cAAc,CAAC;IAClC,SAAS,EAAE,OAAO,aAAa,CAAC;IAChC,SAAS,EAAE,OAAO,aAAa,CAAC;IAChC,QAAQ,EAAE,OAAO,YAAY,CAAC;IAC9B,YAAY,EAAE,OAAO,gBAAgB,CAAC;IACtC,aAAa,EAAE,OAAO,iBAAiB,CAAC;IACxC,UAAU,EAAE,OAAO,cAAc,CAAC;IAClC,WAAW,EAAE,OAAO,eAAe,CAAC;IACpC,SAAS,EAAE,OAAO,aAAa,CAAC;IAChC,WAAW,EAAE,OAAO,eAAe,CAAC;IACpC,YAAY,EAAE,OAAO,gBAAgB,CAAC;IACtC,SAAS,EAAE,OAAO,aAAa,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,IAAI,EAkBX,qBAAqB,CAAC"}
@@ -2,7 +2,9 @@ import { type ReactNode } from 'react';
2
2
  import { View, type ViewProps } from 'react-native';
3
3
  import { type RangeCalendarRootProps } from '@cdx-ui/primitives';
4
4
  export interface RangeCalendarProps extends Omit<RangeCalendarRootProps, 'children'>, Omit<ViewProps, 'children'> {
5
+ /** Additional Uniwind/Tailwind classes, merged after the calendar's own styles. */
5
6
  className?: string;
7
+ /** Custom calendar body. Omit to render the default header and month grid. */
6
8
  children?: ReactNode;
7
9
  }
8
10
  declare const RangeCalendarRoot: import("react").ForwardRefExoticComponent<RangeCalendarProps & import("react").RefAttributes<View>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/RangeCalendar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAKL,KAAK,sBAAsB,EAC5B,MAAM,oBAAoB,CAAC;AAa5B,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAYD,QAAA,MAAM,iBAAiB,qGAYtB,CAAC;AAIF,QAAA,MAAM,mBAAmB,4FAkBvB,CAAC;AAIH,QAAA,MAAM,uBAAuB,4FAiB5B,CAAC;AAIF,QAAA,MAAM,iBAAiB,4FAkDrB,CAAC;AAIH,KAAK,qBAAqB,GAAG,OAAO,iBAAiB,GAAG;IACtD,MAAM,EAAE,OAAO,mBAAmB,CAAC;IACnC,IAAI,EAAE,OAAO,iBAAiB,CAAC;IAC/B,UAAU,EAAE,OAAO,uBAAuB,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,aAAa,EAIpB,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/RangeCalendar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAKL,KAAK,sBAAsB,EAC5B,MAAM,oBAAoB,CAAC;AAa5B,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAC7E,mFAAmF;IACnF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAYD,QAAA,MAAM,iBAAiB,qGAYtB,CAAC;AAIF,QAAA,MAAM,mBAAmB,4FAkBvB,CAAC;AAIH,QAAA,MAAM,uBAAuB,4FAiB5B,CAAC;AAIF,QAAA,MAAM,iBAAiB,4FAkDrB,CAAC;AAIH,KAAK,qBAAqB,GAAG,OAAO,iBAAiB,GAAG;IACtD,MAAM,EAAE,OAAO,mBAAmB,CAAC;IACnC,IAAI,EAAE,OAAO,iBAAiB,CAAC;IAC/B,UAAU,EAAE,OAAO,uBAAuB,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,aAAa,EAIpB,qBAAqB,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { type ForwardedRef, type ReactElement, type ReactNode } from 'react';
2
+ import { ScrollView, type ScrollViewProps, type ViewStyle } from 'react-native';
3
+ export interface ReorderableRowInfo<T> {
4
+ item: T;
5
+ /** Consumer key from `keyExtractor`. */
6
+ key: string;
7
+ /** Position of `item` in `data`. */
8
+ index: number;
9
+ count: number;
10
+ }
11
+ export interface ReorderableListSharedProps<T> extends Omit<ScrollViewProps, 'children'> {
12
+ data: T[];
13
+ keyExtractor: (item: T, index: number) => string;
14
+ /** Renders each row. Ignored when `children` is set. */
15
+ renderRow?: (info: ReorderableRowInfo<T>) => ReactNode;
16
+ /** Replaces the per-row rendering (native renders the engine's own container here). */
17
+ children?: ReactNode;
18
+ /** Scroll host. Defaults to `ScrollView`. */
19
+ ScrollComponent?: typeof ScrollView;
20
+ className?: string;
21
+ }
22
+ /**
23
+ * Longhands for a consumer `flex`, placed between the `flexGrow: 0` default and the consumer style.
24
+ * Yoga lets a longhand beat the shorthand, so `flex: 1` alone keeps grow 0 with basis 0 and the
25
+ * list collapses to zero height.
26
+ */
27
+ export declare function flexLonghands(flex: number | undefined): ViewStyle | undefined;
28
+ export declare const ReorderableListShared: <T>(props: ReorderableListSharedProps<T> & {
29
+ ref?: ForwardedRef<ScrollView>;
30
+ }) => ReactElement | null;
31
+ //# sourceMappingURL=ReorderableListShared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReorderableListShared.d.ts","sourceRoot":"","sources":["../../../../src/components/ReorderableList/ReorderableListShared.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,UAAU,EAAc,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAI5F,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,IAAI,EAAE,CAAC,CAAC;IACR,wCAAwC;IACxC,GAAG,EAAE,MAAM,CAAC;IACZ,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,0BAA0B,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC;IACtF,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,YAAY,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACjD,wDAAwD;IACxD,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC;IACvD,uFAAuF;IACvF,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,6CAA6C;IAC7C,eAAe,CAAC,EAAE,OAAO,UAAU,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AASD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAK7E;AA2DD,eAAO,MAAM,qBAAqB,EAA6C,CAAC,CAAC,EAC/E,KAAK,EAAE,0BAA0B,CAAC,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,YAAY,CAAC,UAAU,CAAC,CAAA;CAAE,KACtE,YAAY,GAAG,IAAI,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { type ReactElement, type Ref } from 'react';
2
+ import { ScrollView } from 'react-native';
3
+ import type { ReorderableListProps } from './types';
4
+ export type { ReorderableListLabels, ReorderableListProps, ReorderableListRenderItemInfo, } from './types';
5
+ export declare const ReorderableList: <T>(props: ReorderableListProps<T> & {
6
+ ref?: Ref<ScrollView>;
7
+ }) => ReactElement | null;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ReorderableList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,YAAY,EACjB,KAAK,GAAG,EACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAqB,UAAU,EAAE,MAAM,cAAc,CAAC;AAW7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAGpD,YAAY,EACV,qBAAqB,EACrB,oBAAoB,EACpB,6BAA6B,GAC9B,MAAM,SAAS,CAAC;AAiIjB,eAAO,MAAM,eAAe,EAAuC,CAAC,CAAC,EACnE,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,UAAU,CAAC,CAAA;CAAE,KACvD,YAAY,GAAG,IAAI,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { type ReactElement, type Ref } from 'react';
2
+ import { ScrollView } from 'react-native';
3
+ import type { ReorderableListProps } from './types';
4
+ export type { ReorderableListLabels, ReorderableListProps, ReorderableListRenderItemInfo, } from './types';
5
+ export declare const ReorderableList: <T>(props: ReorderableListProps<T> & {
6
+ ref?: Ref<ScrollView>;
7
+ }) => ReactElement | null;
8
+ //# sourceMappingURL=index.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/components/ReorderableList/index.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,YAAY,EACjB,KAAK,GAAG,EACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,UAAU,EAA8C,MAAM,cAAc,CAAC;AAsBtF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAIpD,YAAY,EACV,qBAAqB,EACrB,oBAAoB,EACpB,6BAA6B,GAC9B,MAAM,SAAS,CAAC;AA+MjB,eAAO,MAAM,eAAe,EAAuC,CAAC,CAAC,EACnE,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,UAAU,CAAC,CAAA;CAAE,KACvD,YAAY,GAAG,IAAI,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { ReorderableListLabels } from './types';
2
+ export declare const DEFAULT_REORDERABLE_LIST_LABELS: ReorderableListLabels;
3
+ export declare function resolveReorderableListLabels(partial?: Partial<ReorderableListLabels>): ReorderableListLabels;
4
+ export type ReorderMessageKey = 'pickedUp' | 'movedTo' | 'dropped' | 'cancelled';
5
+ export interface ReorderMessageInput<T> {
6
+ labels: ReorderableListLabels;
7
+ getItemLabel?: (item: T, index: number) => string;
8
+ item: T;
9
+ /** Zero-based position of the item before the move — names the item. */
10
+ fromIndex: number;
11
+ /** Zero-based position announced in the message. */
12
+ position: number;
13
+ count: number;
14
+ }
15
+ export declare function formatReorderMessage<T>(key: ReorderMessageKey, { labels, getItemLabel, item, fromIndex, position, count }: ReorderMessageInput<T>): string;
16
+ //# sourceMappingURL=labels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../../../src/components/ReorderableList/labels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,eAAO,MAAM,+BAA+B,EAAE,qBAY7C,CAAC;AAEF,wBAAgB,4BAA4B,CAC1C,OAAO,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,GACvC,qBAAqB,CAEvB;AAED,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AAEjF,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC,MAAM,EAAE,qBAAqB,CAAC;IAC9B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAClD,IAAI,EAAE,CAAC,CAAC;IACR,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAMD,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,GAAG,EAAE,iBAAiB,EACtB,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,mBAAmB,CAAC,CAAC,CAAC,GACjF,MAAM,CASR"}
@@ -0,0 +1,3 @@
1
+ /** Immutable insert-strategy move. No-ops when indices are equal or out of range. */
2
+ export declare function reorderItems<T>(data: T[], fromIndex: number, toIndex: number): T[];
3
+ //# sourceMappingURL=reorderItems.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reorderItems.d.ts","sourceRoot":"","sources":["../../../../src/components/ReorderableList/reorderItems.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,wBAAgB,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC,EAAE,CAclF"}
@@ -0,0 +1,57 @@
1
+ import { type ReactElement, type RefCallback } from 'react';
2
+ import type { AccessibilityActionEvent, AccessibilityActionInfo, StyleProp, View, ViewProps, ViewStyle } from 'react-native';
3
+ /**
4
+ * Props that make a host element the row's drag activator.
5
+ *
6
+ * - **Web:** dnd-kit `attributes` (`role`, `tabIndex`, `aria-*`), `listeners` (`onPointerDown`,
7
+ * `onKeyDown`), and `style: { touchAction: 'none' }`. Some keys (`aria-roledescription`,
8
+ * `aria-describedby`) are outside `ViewProps`, hence the index signature.
9
+ * - **Native:** empty — the gesture is attached by `wrap`.
10
+ */
11
+ export type ReorderableHandleHostProps = ViewProps & Readonly<Record<string, unknown>>;
12
+ /**
13
+ * Binds a handle element to the row's drag gesture without adding a focusable wrapper.
14
+ *
15
+ * Render one host (a `View`, or the consumer child under `asChild` via `Slot`), then:
16
+ * 1. spread `props` onto it before consumer props (handlers compose through `Slot`),
17
+ * 2. compose `ref` with the host's own ref,
18
+ * 3. return `wrap(host)`.
19
+ *
20
+ * Web: `ref` is dnd-kit's `setActivatorNodeRef` and `wrap` returns the host unchanged.
21
+ * Native: `ref` is `undefined` and `wrap` places the host inside `Sortable.Handle`, which must
22
+ * wrap because react-native-sortables only attaches its handle gesture through that component. It
23
+ * renders a non-accessible `View`, so the host stays the single focusable element; pass layout
24
+ * styles that must sit on the outer box (flex, alignSelf, margin) as `wrap`'s second argument.
25
+ */
26
+ export interface ReorderableRowHandle {
27
+ props: ReorderableHandleHostProps;
28
+ ref: RefCallback<View> | undefined;
29
+ wrap: (host: ReactElement, style?: StyleProp<ViewStyle>) => ReactElement;
30
+ }
31
+ /** Per-row reorder state and actions, provided to every row rendered by `ReorderableList`. */
32
+ export interface ReorderableRowContextValue {
33
+ /** `true` while this row is dragged. */
34
+ isDragging: boolean;
35
+ /** Zero-based position of the row in `data`. */
36
+ index: number;
37
+ /** Number of rows in the list. */
38
+ count: number;
39
+ /**
40
+ * Moves this row to `toIndex` (clamped to the list), calls `onReorder`/`onReorderIndices`, and
41
+ * announces the new position. No-op when the position does not change.
42
+ */
43
+ move: (toIndex: number) => void;
44
+ /**
45
+ * `Move up` / `Move down` / `Move to top` / `Move to bottom`, omitting those that do not apply at
46
+ * the ends. Spread with `onAccessibilityAction` onto the handle host. Native screen readers
47
+ * expose them as custom actions; react-native-web drops both props, and web keyboard users
48
+ * reorder through dnd-kit's keyboard sensor on the handle instead.
49
+ */
50
+ accessibilityActions: AccessibilityActionInfo[];
51
+ onAccessibilityAction: (event: AccessibilityActionEvent) => void;
52
+ handle: ReorderableRowHandle;
53
+ }
54
+ export declare const ReorderableRowProvider: import("react").Provider<ReorderableRowContextValue | null>;
55
+ /** Reorder state for the enclosing `ReorderableList` row, or `null` outside a list. */
56
+ export declare function useReorderableRow(): ReorderableRowContextValue | null;
57
+ //# sourceMappingURL=rowContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rowContext.d.ts","sourceRoot":"","sources":["../../../../src/components/ReorderableList/rowContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AACvF,OAAO,KAAK,EACV,wBAAwB,EACxB,uBAAuB,EACvB,SAAS,EACT,IAAI,EACJ,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB;;;;;;;GAOG;AACH,MAAM,MAAM,0BAA0B,GAAG,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAEvF;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,0BAA0B,CAAC;IAClC,GAAG,EAAE,WAAW,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IACnC,IAAI,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,KAAK,YAAY,CAAC;CAC1E;AAED,8FAA8F;AAC9F,MAAM,WAAW,0BAA0B;IACzC,wCAAwC;IACxC,UAAU,EAAE,OAAO,CAAC;IACpB,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC;;;;;OAKG;IACH,oBAAoB,EAAE,uBAAuB,EAAE,CAAC;IAChD,qBAAqB,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,IAAI,CAAC;IACjE,MAAM,EAAE,oBAAoB,CAAC;CAC9B;AAID,eAAO,MAAM,sBAAsB,6DAAiC,CAAC;AAErE,uFAAuF;AACvF,wBAAgB,iBAAiB,IAAI,0BAA0B,GAAG,IAAI,CAErE"}
@@ -0,0 +1,75 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { ScrollViewProps } from 'react-native';
3
+ export interface ReorderableListRenderItemInfo<T> {
4
+ /** The item from `data` that this row renders. */
5
+ item: T;
6
+ /** Zero-based position of `item` in `data`. */
7
+ index: number;
8
+ /**
9
+ * `true` while this row is being dragged. Restyle the row with color or opacity only: on iOS,
10
+ * changing `zIndex` on the row (or anything wrapping its handle) mid-drag cancels the drag.
11
+ */
12
+ isDragging: boolean;
13
+ }
14
+ /**
15
+ * Overridable copy for reorder announcements and accessibility actions.
16
+ *
17
+ * Placeholders: `{item}` is the row name (from `getItemLabel`, or the `item` template),
18
+ * `{position}` is a 1-based position, and `{count}` is the number of rows.
19
+ */
20
+ export interface ReorderableListLabels {
21
+ /**
22
+ * Row name used when `getItemLabel` is not provided. `{position}` is the row's position
23
+ * before the move.
24
+ * @default 'item {position}'
25
+ */
26
+ item: string;
27
+ /** @default 'Picked up {item}. Position {position} of {count}.' */
28
+ pickedUp: string;
29
+ /** @default 'Moved {item} to position {position} of {count}.' */
30
+ movedTo: string;
31
+ /** @default 'Dropped {item} at position {position} of {count}.' */
32
+ dropped: string;
33
+ /** @default 'Reorder cancelled. {item} returned to position {position} of {count}.' */
34
+ cancelled: string;
35
+ /**
36
+ * Read by screen readers when a drag handle receives focus on web.
37
+ * @default 'To pick up an item, press Space or Enter. Use the arrow keys to move it, then press Space or Enter to drop it, or Escape to cancel.'
38
+ */
39
+ screenReaderInstructions: string;
40
+ /** @default 'Move up' */
41
+ moveUp: string;
42
+ /** @default 'Move down' */
43
+ moveDown: string;
44
+ /** @default 'Move to top' */
45
+ moveToTop: string;
46
+ /** @default 'Move to bottom' */
47
+ moveToBottom: string;
48
+ }
49
+ export interface ReorderableListProps<T> extends Omit<ScrollViewProps, 'children' | 'horizontal' | 'role'> {
50
+ /** Items in their current order. The parent owns this array and updates it from `onReorder`. */
51
+ data: T[];
52
+ /**
53
+ * Returns a stable, unique key for an item. Keys identify rows while they move, so they must
54
+ * not be derived from `index`. Duplicate keys log a warning in development.
55
+ */
56
+ keyExtractor: (item: T, index: number) => string;
57
+ /** Renders one row. Compose with `ListItem` and `ListItem.DragHandle`. */
58
+ renderItem: (info: ReorderableListRenderItemInfo<T>) => ReactNode;
59
+ /** Called with the reordered array after a drop or an accessibility move. */
60
+ onReorder: (data: T[]) => void;
61
+ /** Called after `onReorder` with the moved row's previous and new zero-based positions. */
62
+ onReorderIndices?: (from: number, to: number) => void;
63
+ /**
64
+ * Returns the name screen readers use for a row in reorder announcements. Without it,
65
+ * announcements use the `item` label (`item 2`). Keys are never announced.
66
+ */
67
+ getItemLabel?: (item: T, index: number) => string;
68
+ /**
69
+ * Overrides for announcement and accessibility-action copy. Unset keys keep their defaults.
70
+ * @default {}
71
+ */
72
+ labels?: Partial<ReorderableListLabels>;
73
+ className?: string;
74
+ }
75
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/ReorderableList/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EA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CAAC;IACtD;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAClD;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,31 @@
1
+ import type { AccessibilityActionInfo } from 'react-native';
2
+ import type { ReorderableRowContextValue, ReorderableRowHandle } from './rowContext';
3
+ import type { ReorderableListLabels, ReorderableListProps } from './types';
4
+ export declare function buildReorderAccessibilityActions(index: number, count: number, labels: ReorderableListLabels): AccessibilityActionInfo[];
5
+ /** Target index for a reorder accessibility action, or `undefined` for other actions. */
6
+ export declare function getReorderActionTarget(actionName: string, index: number, count: number): number | undefined;
7
+ /** Duplicate keys in `data`, for the development warning. */
8
+ export declare function findDuplicateKeys<T>(data: readonly T[], keyExtractor: (item: T, index: number) => string): string[];
9
+ type ReorderControllerOptions<T> = Pick<ReorderableListProps<T>, 'data' | 'onReorder' | 'onReorderIndices' | 'getItemLabel' | 'labels'> & {
10
+ announce: (message: string) => void;
11
+ };
12
+ export interface ReorderController<T> {
13
+ labels: ReorderableListLabels;
14
+ /** Commits a move from one position to another and announces it. */
15
+ moveItem: (fromIndex: number, toIndex: number) => void;
16
+ /** Formats an announcement for the item currently at `fromIndex`. */
17
+ describe: (key: 'pickedUp' | 'movedTo' | 'dropped' | 'cancelled', fromIndex: number, position: number) => string | undefined;
18
+ data: T[];
19
+ }
20
+ export declare function useReorderController<T>({ data, onReorder, onReorderIndices, getItemLabel, labels: labelsProp, announce, }: ReorderControllerOptions<T>): ReorderController<T>;
21
+ interface RowValueOptions {
22
+ index: number;
23
+ count: number;
24
+ isDragging: boolean;
25
+ handle: ReorderableRowHandle;
26
+ labels: ReorderableListLabels;
27
+ moveItem: (fromIndex: number, toIndex: number) => void;
28
+ }
29
+ export declare function useReorderableRowValue({ index, count, isDragging, handle, labels, moveItem, }: RowValueOptions): ReorderableRowContextValue;
30
+ export {};
31
+ //# sourceMappingURL=useReorder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useReorder.d.ts","sourceRoot":"","sources":["../../../../src/components/ReorderableList/useReorder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA4B,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAGtF,OAAO,KAAK,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACrF,OAAO,KAAK,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAI3E,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,qBAAqB,GAC5B,uBAAuB,EAAE,CAW3B;AAED,yFAAyF;AACzF,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,GACZ,MAAM,GAAG,SAAS,CAapB;AAED,6DAA6D;AAC7D,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,IAAI,EAAE,SAAS,CAAC,EAAE,EAClB,YAAY,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,GAC/C,MAAM,EAAE,CASV;AAED,KAAK,wBAAwB,CAAC,CAAC,IAAI,IAAI,CACrC,oBAAoB,CAAC,CAAC,CAAC,EACvB,MAAM,GAAG,WAAW,GAAG,kBAAkB,GAAG,cAAc,GAAG,QAAQ,CACtE,GAAG;IACF,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC,CAAC;AAEF,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,MAAM,EAAE,qBAAqB,CAAC;IAC9B,oEAAoE;IACpE,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,qEAAqE;IACrE,QAAQ,EAAE,CACR,GAAG,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,EACrD,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,KACb,MAAM,GAAG,SAAS,CAAC;IACxB,IAAI,EAAE,CAAC,EAAE,CAAC;CACX;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,EACtC,IAAI,EACJ,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,MAAM,EAAE,UAAU,EAClB,QAAQ,GACT,EAAE,wBAAwB,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAoCpD;AAED,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,oBAAoB,CAAC;IAC7B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACxD;AAED,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,KAAK,EACL,UAAU,EACV,MAAM,EACN,MAAM,EACN,QAAQ,GACT,EAAE,eAAe,GAAG,0BAA0B,CAgB9C"}
@@ -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"}
@@ -0,0 +1,7 @@
1
+ import { type ScrollShadowSurface } from './styles';
2
+ type ScrollShadowEdge = 'start' | 'end';
3
+ type ScrollShadowOrientation = 'horizontal' | 'vertical';
4
+ export declare function getWebSurfaceGradientClasses(surface: ScrollShadowSurface, orientation: ScrollShadowOrientation, edge: ScrollShadowEdge): string;
5
+ export declare function getInlineBackgroundImage(color: string, orientation: ScrollShadowOrientation, edge: ScrollShadowEdge, isRTL?: boolean): string;
6
+ export {};
7
+ //# sourceMappingURL=gradient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gradient.d.ts","sourceRoot":"","sources":["../../../../src/components/ScrollShadow/gradient.ts"],"names":[],"mappings":"AACA,OAAO,EAAoC,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEtF,KAAK,gBAAgB,GAAG,OAAO,GAAG,KAAK,CAAC;AACxC,KAAK,uBAAuB,GAAG,YAAY,GAAG,UAAU,CAAC;AAEzD,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,mBAAmB,EAC5B,WAAW,EAAE,uBAAuB,EACpC,IAAI,EAAE,gBAAgB,GACrB,MAAM,CAcR;AAED,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,uBAAuB,EACpC,IAAI,EAAE,gBAAgB,EACtB,KAAK,UAAoB,GACxB,MAAM,CAgBR"}
@@ -1,29 +1,71 @@
1
- import { type ReactNode } from 'react';
2
- import { type ViewStyle } from 'react-native';
3
- import { type ScrollShadowVariantProps } from './styles';
1
+ import { type ReactElement } from 'react';
2
+ import { type StyleProp, type ViewStyle } from 'react-native';
3
+ import { type ScrollShadowSize, type ScrollShadowSurface, type ScrollShadowVariantProps } from './styles';
4
4
  import { type ScrollShadowCapability } from './useScrollShadow';
5
- export type { ScrollShadowCapability };
5
+ export type { ScrollShadowCapability, UseScrollShadowOptions, UseScrollShadowReturn, } from './useScrollShadow';
6
+ export { useScrollShadow } from './useScrollShadow';
7
+ export type ScrollShadowVisibility = 'auto' | 'both' | 'start' | 'end' | 'none';
6
8
  export interface ScrollShadowProps extends ScrollShadowVariantProps {
7
- children: ReactNode;
9
+ /**
10
+ * The scroll view to decorate: a `ScrollView`, `FlatList`, or `VirtualizedList`, passed as
11
+ * the direct child. With a forced `visibility`, any single view works.
12
+ */
13
+ children: ReactElement;
14
+ /** Classes for the wrapping view, for example `h-full` or `flex-1` to bound the scroller. */
8
15
  className?: string;
16
+ /** Style for the wrapping view. */
17
+ style?: StyleProp<ViewStyle>;
18
+ /**
19
+ * Scroll axis that gets fades.
20
+ * @default inferred from the child's `horizontal` prop, otherwise `'vertical'`
21
+ */
22
+ orientation?: 'horizontal' | 'vertical';
9
23
  /**
10
- * Tailwind `from-*` utility for edge overlays — match the surface behind the scroll area.
11
- * Pair with a low opacity (e.g. `from-surface-secondary/40`) for a light fade.
12
- * @default 'from-background/35'
24
+ * Theme surface the fade blends into. Match it to the background behind the scroller.
25
+ * @default 'background'
13
26
  */
14
- fadeFromClassName?: string;
27
+ surface?: ScrollShadowSurface;
15
28
  /**
16
- * Shadow fade size in pixels.
17
- * @default 64
29
+ * Fade depth along the scroll axis: `small` is 32px, `default` is 40px, `large` is 72px.
30
+ * @default 'default'
18
31
  */
19
- size?: number;
32
+ size?: ScrollShadowSize;
20
33
  /**
21
- * Scroll offset before showing edge shadows.
34
+ * Which edges show a fade. `auto` follows the scroll position; `both`, `start`, and `end`
35
+ * force those edges on; `none` hides them.
36
+ * @default 'auto'
37
+ */
38
+ visibility?: ScrollShadowVisibility;
39
+ /**
40
+ * Pixels of scroll slack before an edge counts as scrollable. Only used with `auto`.
22
41
  * @default 0
23
42
  */
24
43
  offset?: number;
44
+ /**
45
+ * Hides the child's scrollbar on web. On iOS and Android, set
46
+ * `showsVerticalScrollIndicator` or `showsHorizontalScrollIndicator` on the child instead.
47
+ * @default false
48
+ */
49
+ hideScrollBar?: boolean;
50
+ /**
51
+ * Width, opacity, or position overrides for the fade overlays, applied after `size`, for
52
+ * example `w-24` or `opacity-85`. Must not carry color classes; use `surface` or
53
+ * `colorClassName` instead.
54
+ */
55
+ edgeClassName?: string;
56
+ /**
57
+ * One-off fade color outside the `surface` options, as an `accent-*` class. Overrides
58
+ * `surface` on every platform and follows dark mode and `ScopedTheme`.
59
+ */
60
+ colorClassName?: string;
61
+ /**
62
+ * Called when either edge starts or stops being scrollable, with
63
+ * `{ canScrollBefore, canScrollAfter }`. Only fires with `visibility="auto"`.
64
+ */
25
65
  onCapabilityChange?: (capability: ScrollShadowCapability) => void;
26
- style?: ViewStyle;
27
66
  }
28
- export declare function ScrollShadow({ children, className, fadeFromClassName, hideScrollBar, orientation, offset, onCapabilityChange, size, style, }: ScrollShadowProps): import("react/jsx-runtime").JSX.Element;
67
+ export declare function ScrollShadow({ children, className, style, surface, size, visibility, hideScrollBar, orientation, offset, edgeClassName, colorClassName, onCapabilityChange, }: ScrollShadowProps): import("react/jsx-runtime").JSX.Element;
68
+ export declare namespace ScrollShadow {
69
+ var displayName: string;
70
+ }
29
71
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ScrollShadow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC/E,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhE,OAAO,EAIL,KAAK,wBAAwB,EAC9B,MAAM,UAAU,CAAC;AAClB,OAAO,EAAmB,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEjF,YAAY,EAAE,sBAAsB,EAAE,CAAC;AAEvC,MAAM,WAAW,iBAAkB,SAAQ,wBAAwB;IACjE,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,MAAM,CAA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OAGG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;;OAIG;IACH,UAAU,CAAC,EAAE,sBAAsB,CAAC;IACpC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,sBAAsB,KAAK,IAAI,CAAC;CACnE;AAwID,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,KAAK,EACL,OAAsB,EACtB,IAAgB,EAChB,UAAmB,EACnB,aAAqB,EACrB,WAAW,EACX,MAAU,EACV,aAAa,EACb,cAAc,EACd,kBAAkB,GACnB,EAAE,iBAAiB,2CAgGnB;yBA7Ge,YAAY"}
@@ -1,12 +1,18 @@
1
1
  import { type VariantProps } from '@cdx-ui/utils';
2
+ export type ScrollShadowSurface = 'background' | 'primary' | 'secondary';
3
+ export type ScrollShadowSize = 'small' | 'default' | 'large';
4
+ export declare const SCROLL_SHADOW_SURFACE_CSS_VARS: Record<ScrollShadowSurface, string>;
5
+ export declare const SCROLL_SHADOW_SIZE_PX: Record<ScrollShadowSize, number>;
6
+ export declare const SCROLL_SHADOW_SURFACE_FROM_CLASS: Record<ScrollShadowSurface, string>;
2
7
  export declare const scrollShadowVariants: (props?: ({
3
- orientation?: "vertical" | "horizontal" | null | undefined;
4
8
  hideScrollBar?: boolean | null | undefined;
5
9
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
10
  export declare const scrollShadowContainerVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
7
- export declare const scrollShadowOverlayVariants: (props?: ({
11
+ export declare const scrollShadowEdgeVariants: (props?: ({
8
12
  orientation?: "vertical" | "horizontal" | null | undefined;
9
13
  edge?: "end" | "start" | null | undefined;
14
+ size?: "small" | "default" | "large" | null | undefined;
10
15
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
16
  export type ScrollShadowVariantProps = VariantProps<typeof scrollShadowVariants>;
17
+ export type ScrollShadowEdgeVariantProps = VariantProps<typeof scrollShadowEdgeVariants>;
12
18
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ScrollShadow/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAEvD,eAAO,MAAM,oBAAoB;;;8EAe/B,CAAC;AAEH,eAAO,MAAM,6BAA6B,oFAAiC,CAAC;AAE5E,eAAO,MAAM,2BAA2B;;;8EAiCtC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ScrollShadow/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAEvD,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,SAAS,GAAG,WAAW,CAAC;AACzE,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAE7D,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAI9E,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAIlE,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAIhF,CAAC;AAEF,eAAO,MAAM,oBAAoB;;8EAU/B,CAAC;AAEH,eAAO,MAAM,6BAA6B,oFAAiC,CAAC;AAE5E,eAAO,MAAM,wBAAwB;;;;8EAiCnC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACjF,MAAM,MAAM,4BAA4B,GAAG,YAAY,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { NativeScrollEvent, NativeSyntheticEvent } from 'react-native';
2
+ type ScrollHandler = (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
3
+ export declare function isReanimatedScrollHandler(handler: unknown): boolean;
4
+ export declare function composeScrollHandler(internalHandler: ScrollHandler, externalHandler: unknown): ScrollHandler;
5
+ /**
6
+ * Only call this when the child already passed a Reanimated scroll handler.
7
+ * `useAnimatedScrollHandler` requires a Babel worklet, and the published
8
+ * package is not transformed by that plugin, so the plain ScrollView path
9
+ * must not mount this hook.
10
+ */
11
+ export declare function useReanimatedComposedScrollHandler(internalHandler: ScrollHandler, externalHandler: unknown): unknown;
12
+ export {};
13
+ //# sourceMappingURL=useComposedScrollHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useComposedScrollHandler.d.ts","sourceRoot":"","sources":["../../../../src/components/ScrollShadow/useComposedScrollHandler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAK5E,KAAK,aAAa,GAAG,CAAC,KAAK,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;AAE9E,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEnE;AAED,wBAAgB,oBAAoB,CAClC,eAAe,EAAE,aAAa,EAC9B,eAAe,EAAE,OAAO,GACvB,aAAa,CAMf;AAED;;;;;GAKG;AACH,wBAAgB,kCAAkC,CAChD,eAAe,EAAE,aAAa,EAC9B,eAAe,EAAE,OAAO,GACvB,OAAO,CAyBT"}
@@ -1,3 +1,4 @@
1
+ import { Platform } from 'react-native';
1
2
  import type { LayoutChangeEvent, NativeScrollEvent, NativeSyntheticEvent } from 'react-native';
2
3
  export interface ScrollShadowCapability {
3
4
  canScrollBefore: boolean;
@@ -6,12 +7,24 @@ export interface ScrollShadowCapability {
6
7
  export interface UseScrollShadowOptions {
7
8
  orientation?: 'horizontal' | 'vertical';
8
9
  offset?: number;
10
+ enabled?: boolean;
9
11
  onCapabilityChange?: (capability: ScrollShadowCapability) => void;
10
12
  }
11
- export declare function useScrollShadow({ orientation, offset, onCapabilityChange, }?: UseScrollShadowOptions): {
13
+ export interface UseScrollShadowReturn {
12
14
  capability: ScrollShadowCapability;
13
15
  handleLayout: (event: LayoutChangeEvent) => void;
14
16
  handleContentSizeChange: (width: number, height: number) => void;
15
17
  handleScroll: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
16
- };
18
+ }
19
+ export interface ScrollShadowDistance {
20
+ before: number;
21
+ after: number;
22
+ }
23
+ interface ScrollShadowTrackerOptions extends UseScrollShadowOptions {
24
+ onDistanceChange?: (distance: ScrollShadowDistance) => void;
25
+ }
26
+ export declare function normalizeAxisScrollOffset(rawOffset: number, orientation: 'horizontal' | 'vertical', maxOffset: number, platform?: typeof Platform.OS): number;
27
+ export declare function useScrollShadow(options?: UseScrollShadowOptions): UseScrollShadowReturn;
28
+ export declare function useScrollShadowTracker({ orientation, offset, enabled, onCapabilityChange, onDistanceChange, }?: ScrollShadowTrackerOptions): UseScrollShadowReturn;
29
+ export {};
17
30
  //# sourceMappingURL=useScrollShadow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useScrollShadow.d.ts","sourceRoot":"","sources":["../../../../src/components/ScrollShadow/useScrollShadow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAE/F,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,sBAAsB,KAAK,IAAI,CAAC;CACnE;AA2BD,wBAAgB,eAAe,CAAC,EAC9B,WAA0B,EAC1B,MAAU,EACV,kBAAkB,GACnB,GAAE,sBAA2B;;0BA4BlB,iBAAiB;qCASjB,MAAM,UAAU,MAAM;0BAQtB,oBAAoB,CAAC,iBAAiB,CAAC;EAqBlD"}
1
+ {"version":3,"file":"useScrollShadow.d.ts","sourceRoot":"","sources":["../../../../src/components/ScrollShadow/useScrollShadow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAE/F,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,sBAAsB,KAAK,IAAI,CAAC;CACnE;AAED,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,sBAAsB,CAAC;IACnC,YAAY,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACjD,uBAAuB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,YAAY,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CACxE;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,0BAA2B,SAAQ,sBAAsB;IACjE,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAC7D;AAcD,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,YAAY,GAAG,UAAU,EACtC,SAAS,EAAE,MAAM,EACjB,QAAQ,GAAE,OAAO,QAAQ,CAAC,EAAgB,GACzC,MAAM,CAOR;AA4BD,wBAAgB,eAAe,CAAC,OAAO,GAAE,sBAA2B,GAAG,qBAAqB,CAE3F;AAED,wBAAgB,sBAAsB,CAAC,EACrC,WAAwB,EACxB,MAAU,EACV,OAAc,EACd,kBAAkB,EAClB,gBAAgB,GACjB,GAAE,0BAA+B,GAAG,qBAAqB,CA6EzD"}
@@ -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"}