@cdx-ui/components 0.0.1-beta.99 → 0.1.1

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 (970) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +29 -6
  3. package/coverage.svg +1 -0
  4. package/lib/commonjs/animation/hooks/index.js +33 -0
  5. package/lib/commonjs/animation/hooks/index.js.map +1 -1
  6. package/lib/commonjs/animation/hooks/usePopupDialogContentAnimation.js +175 -0
  7. package/lib/commonjs/animation/hooks/usePopupDialogContentAnimation.js.map +1 -0
  8. package/lib/commonjs/animation/hooks/usePopupOverlayAnimation.js +69 -0
  9. package/lib/commonjs/animation/hooks/usePopupOverlayAnimation.js.map +1 -0
  10. package/lib/commonjs/animation/hooks/usePopupRootAnimation.js +26 -0
  11. package/lib/commonjs/animation/hooks/usePopupRootAnimation.js.map +1 -0
  12. package/lib/commonjs/components/Accordion/index.js +286 -0
  13. package/lib/commonjs/components/Accordion/index.js.map +1 -0
  14. package/lib/commonjs/components/Accordion/styles.js +56 -0
  15. package/lib/commonjs/components/Accordion/styles.js.map +1 -0
  16. package/lib/commonjs/components/Alert/styles.js +8 -8
  17. package/lib/commonjs/components/Alert/styles.js.map +1 -1
  18. package/lib/commonjs/components/AlertDialog/index.js +16 -3
  19. package/lib/commonjs/components/AlertDialog/index.js.map +1 -1
  20. package/lib/commonjs/components/Avatar/styles.js +6 -6
  21. package/lib/commonjs/components/Avatar/styles.js.map +1 -1
  22. package/lib/commonjs/components/Badge/styles.js +6 -6
  23. package/lib/commonjs/components/Badge/styles.js.map +1 -1
  24. package/lib/commonjs/components/BottomSheet/index.js +34 -2
  25. package/lib/commonjs/components/BottomSheet/index.js.map +1 -1
  26. package/lib/commonjs/components/BottomSheet/styles.js +8 -8
  27. package/lib/commonjs/components/BottomSheet/styles.js.map +1 -1
  28. package/lib/commonjs/components/Box/Box.js +1 -11
  29. package/lib/commonjs/components/Box/Box.js.map +1 -1
  30. package/lib/commonjs/components/Breadcrumbs/index.js +219 -0
  31. package/lib/commonjs/components/Breadcrumbs/index.js.map +1 -0
  32. package/lib/commonjs/components/Breadcrumbs/styles.js +38 -0
  33. package/lib/commonjs/components/Breadcrumbs/styles.js.map +1 -0
  34. package/lib/commonjs/components/Button/index.js +1 -12
  35. package/lib/commonjs/components/Button/index.js.map +1 -1
  36. package/lib/commonjs/components/Button/styles.js +34 -34
  37. package/lib/commonjs/components/Button/styles.js.map +1 -1
  38. package/lib/commonjs/components/CLAUDE.md +3 -3
  39. package/lib/commonjs/components/Calendar/CalendarMonthHeader.js +96 -0
  40. package/lib/commonjs/components/Calendar/CalendarMonthHeader.js.map +1 -0
  41. package/lib/commonjs/components/Calendar/CalendarYearPickerGrid.js +74 -0
  42. package/lib/commonjs/components/Calendar/CalendarYearPickerGrid.js.map +1 -0
  43. package/lib/commonjs/components/Calendar/flashCalendarAdapter.js +298 -0
  44. package/lib/commonjs/components/Calendar/flashCalendarAdapter.js.map +1 -0
  45. package/lib/commonjs/components/Calendar/index.js +149 -0
  46. package/lib/commonjs/components/Calendar/index.js.map +1 -0
  47. package/lib/commonjs/components/Calendar/styles.js +70 -0
  48. package/lib/commonjs/components/Calendar/styles.js.map +1 -0
  49. package/lib/commonjs/components/Card/index.js +25 -0
  50. package/lib/commonjs/components/Card/index.js.map +1 -1
  51. package/lib/commonjs/components/Card/styles.js +11 -7
  52. package/lib/commonjs/components/Card/styles.js.map +1 -1
  53. package/lib/commonjs/components/Carousel/context.js +13 -0
  54. package/lib/commonjs/components/Carousel/context.js.map +1 -0
  55. package/lib/commonjs/components/Carousel/index.js +158 -0
  56. package/lib/commonjs/components/Carousel/index.js.map +1 -0
  57. package/lib/commonjs/components/Carousel/navButton.js +119 -0
  58. package/lib/commonjs/components/Carousel/navButton.js.map +1 -0
  59. package/lib/commonjs/components/Carousel/paginationNavigation.js +35 -0
  60. package/lib/commonjs/components/Carousel/paginationNavigation.js.map +1 -0
  61. package/lib/commonjs/components/Carousel/styles.js +44 -0
  62. package/lib/commonjs/components/Carousel/styles.js.map +1 -0
  63. package/lib/commonjs/components/Carousel/useCarouselActiveIndex.js +52 -0
  64. package/lib/commonjs/components/Carousel/useCarouselActiveIndex.js.map +1 -0
  65. package/lib/commonjs/components/Checkbox/index.js +29 -4
  66. package/lib/commonjs/components/Checkbox/index.js.map +1 -1
  67. package/lib/commonjs/components/Checkbox/styles.js +26 -20
  68. package/lib/commonjs/components/Checkbox/styles.js.map +1 -1
  69. package/lib/commonjs/components/Chip/index.js +22 -2
  70. package/lib/commonjs/components/Chip/index.js.map +1 -1
  71. package/lib/commonjs/components/Chip/styles.js +56 -56
  72. package/lib/commonjs/components/Chip/styles.js.map +1 -1
  73. package/lib/commonjs/components/CurrencyInput/index.js +3 -1
  74. package/lib/commonjs/components/CurrencyInput/index.js.map +1 -1
  75. package/lib/commonjs/components/CurrencyInput/styles.js +4 -4
  76. package/lib/commonjs/components/CurrencyInput/styles.js.map +1 -1
  77. package/lib/commonjs/components/DateField/index.js +147 -0
  78. package/lib/commonjs/components/DateField/index.js.map +1 -0
  79. package/lib/commonjs/components/DateField/styles.js +34 -0
  80. package/lib/commonjs/components/DateField/styles.js.map +1 -0
  81. package/lib/commonjs/components/DatePicker/index.js +163 -0
  82. package/lib/commonjs/components/DatePicker/index.js.map +1 -0
  83. package/lib/commonjs/components/DateRangePicker/index.js +177 -0
  84. package/lib/commonjs/components/DateRangePicker/index.js.map +1 -0
  85. package/lib/commonjs/components/DateTimeField/index.js +96 -0
  86. package/lib/commonjs/components/DateTimeField/index.js.map +1 -0
  87. package/lib/commonjs/components/DateTimeList/index.js +180 -0
  88. package/lib/commonjs/components/DateTimeList/index.js.map +1 -0
  89. package/lib/commonjs/components/DateTimeList/styles.js +55 -0
  90. package/lib/commonjs/components/DateTimeList/styles.js.map +1 -0
  91. package/lib/commonjs/components/DateTimePicker/index.js +187 -0
  92. package/lib/commonjs/components/DateTimePicker/index.js.map +1 -0
  93. package/lib/commonjs/components/Dialog/animation.js +13 -0
  94. package/lib/commonjs/components/Dialog/animation.js.map +1 -0
  95. package/lib/commonjs/components/Dialog/index.js +301 -30
  96. package/lib/commonjs/components/Dialog/index.js.map +1 -1
  97. package/lib/commonjs/components/Dialog/styles.js +25 -21
  98. package/lib/commonjs/components/Dialog/styles.js.map +1 -1
  99. package/lib/commonjs/components/Divider/styles.js +4 -4
  100. package/lib/commonjs/components/Divider/styles.js.map +1 -1
  101. package/lib/commonjs/components/Field/styles.js +9 -9
  102. package/lib/commonjs/components/Field/styles.js.map +1 -1
  103. package/lib/commonjs/components/Form/styles.js +2 -2
  104. package/lib/commonjs/components/Form/styles.js.map +1 -1
  105. package/lib/commonjs/components/Heading/styles.js +2 -2
  106. package/lib/commonjs/components/Heading/styles.js.map +1 -1
  107. package/lib/commonjs/components/IconButton/index.js +15 -3
  108. package/lib/commonjs/components/IconButton/index.js.map +1 -1
  109. package/lib/commonjs/components/IconButton/styles.js +27 -27
  110. package/lib/commonjs/components/IconButton/styles.js.map +1 -1
  111. package/lib/commonjs/components/Input/index.js.map +1 -1
  112. package/lib/commonjs/components/Input/styles.js +19 -11
  113. package/lib/commonjs/components/Input/styles.js.map +1 -1
  114. package/lib/commonjs/components/InsuranceDisclosure/FdicLockup.js +31 -0
  115. package/lib/commonjs/components/InsuranceDisclosure/FdicLockup.js.map +1 -0
  116. package/lib/commonjs/components/InsuranceDisclosure/index.js +74 -0
  117. package/lib/commonjs/components/InsuranceDisclosure/index.js.map +1 -0
  118. package/lib/commonjs/components/InsuranceDisclosure/styles.js +21 -0
  119. package/lib/commonjs/components/InsuranceDisclosure/styles.js.map +1 -0
  120. package/lib/commonjs/components/Link/index.js.map +1 -1
  121. package/lib/commonjs/components/Link/styles.js +7 -10
  122. package/lib/commonjs/components/Link/styles.js.map +1 -1
  123. package/lib/commonjs/components/ListItem/styles.js +11 -11
  124. package/lib/commonjs/components/ListItem/styles.js.map +1 -1
  125. package/lib/commonjs/components/Menu/index.js +509 -0
  126. package/lib/commonjs/components/Menu/index.js.map +1 -0
  127. package/lib/commonjs/components/Menu/styles.js +100 -0
  128. package/lib/commonjs/components/Menu/styles.js.map +1 -0
  129. package/lib/commonjs/components/MonthCalendar/index.js +229 -0
  130. package/lib/commonjs/components/MonthCalendar/index.js.map +1 -0
  131. package/lib/commonjs/components/MonthPicker/index.js +163 -0
  132. package/lib/commonjs/components/MonthPicker/index.js.map +1 -0
  133. package/lib/commonjs/components/OtpInput/index.js +21 -9
  134. package/lib/commonjs/components/OtpInput/index.js.map +1 -1
  135. package/lib/commonjs/components/OtpInput/styles.js +10 -8
  136. package/lib/commonjs/components/OtpInput/styles.js.map +1 -1
  137. package/lib/commonjs/components/ProgressBar/styles.js +3 -3
  138. package/lib/commonjs/components/ProgressBar/styles.js.map +1 -1
  139. package/lib/commonjs/components/ProgressCircle/ProgressCircleRing.js +91 -0
  140. package/lib/commonjs/components/ProgressCircle/ProgressCircleRing.js.map +1 -0
  141. package/lib/commonjs/components/ProgressCircle/index.js +84 -0
  142. package/lib/commonjs/components/ProgressCircle/index.js.map +1 -0
  143. package/lib/commonjs/components/ProgressCircle/styles.js +50 -0
  144. package/lib/commonjs/components/ProgressCircle/styles.js.map +1 -0
  145. package/lib/commonjs/components/ProgressCircle/useProgressCircleColors.js +35 -0
  146. package/lib/commonjs/components/ProgressCircle/useProgressCircleColors.js.map +1 -0
  147. package/lib/commonjs/components/ProgressSegmented/index.js +1 -14
  148. package/lib/commonjs/components/ProgressSegmented/index.js.map +1 -1
  149. package/lib/commonjs/components/ProgressSegmented/styles.js +5 -5
  150. package/lib/commonjs/components/ProgressSegmented/styles.js.map +1 -1
  151. package/lib/commonjs/components/QuickActionButton/styles.js +6 -6
  152. package/lib/commonjs/components/QuickActionButton/styles.js.map +1 -1
  153. package/lib/commonjs/components/Radio/index.js +17 -2
  154. package/lib/commonjs/components/Radio/index.js.map +1 -1
  155. package/lib/commonjs/components/Radio/styles.js +26 -11
  156. package/lib/commonjs/components/Radio/styles.js.map +1 -1
  157. package/lib/commonjs/components/RangeCalendar/index.js +165 -0
  158. package/lib/commonjs/components/RangeCalendar/index.js.map +1 -0
  159. package/lib/commonjs/components/ScrollShadow/index.js +82 -0
  160. package/lib/commonjs/components/ScrollShadow/index.js.map +1 -0
  161. package/lib/commonjs/components/ScrollShadow/styles.js +54 -0
  162. package/lib/commonjs/components/ScrollShadow/styles.js.map +1 -0
  163. package/lib/commonjs/components/ScrollShadow/useScrollShadow.js +83 -0
  164. package/lib/commonjs/components/ScrollShadow/useScrollShadow.js.map +1 -0
  165. package/lib/commonjs/components/Select/index.js +66 -26
  166. package/lib/commonjs/components/Select/index.js.map +1 -1
  167. package/lib/commonjs/components/Select/styles.js +17 -48
  168. package/lib/commonjs/components/Select/styles.js.map +1 -1
  169. package/lib/commonjs/components/Skeleton/index.js +3 -1
  170. package/lib/commonjs/components/Skeleton/index.js.map +1 -1
  171. package/lib/commonjs/components/Skeleton/styles.js +2 -2
  172. package/lib/commonjs/components/Skeleton/styles.js.map +1 -1
  173. package/lib/commonjs/components/Slider/getSliderPopupPosition.js +67 -0
  174. package/lib/commonjs/components/Slider/getSliderPopupPosition.js.map +1 -0
  175. package/lib/commonjs/components/Slider/index.js +406 -0
  176. package/lib/commonjs/components/Slider/index.js.map +1 -0
  177. package/lib/commonjs/components/Slider/styles.js +112 -0
  178. package/lib/commonjs/components/Slider/styles.js.map +1 -0
  179. package/lib/commonjs/components/Stack/styles.js +3 -3
  180. package/lib/commonjs/components/Stack/styles.js.map +1 -1
  181. package/lib/commonjs/components/Switch/index.js.map +1 -1
  182. package/lib/commonjs/components/Switch/styles.js +8 -8
  183. package/lib/commonjs/components/Switch/styles.js.map +1 -1
  184. package/lib/commonjs/components/Table/index.js +389 -0
  185. package/lib/commonjs/components/Table/index.js.map +1 -0
  186. package/lib/commonjs/components/Table/index.web.js +329 -0
  187. package/lib/commonjs/components/Table/index.web.js.map +1 -0
  188. package/lib/commonjs/components/Table/styles.js +111 -0
  189. package/lib/commonjs/components/Table/styles.js.map +1 -0
  190. package/lib/commonjs/components/Table/types.js +6 -0
  191. package/lib/commonjs/components/Table/types.js.map +1 -0
  192. package/lib/commonjs/components/Table/useTableStyleContext.js +28 -0
  193. package/lib/commonjs/components/Table/useTableStyleContext.js.map +1 -0
  194. package/lib/commonjs/components/TablePagination/TablePaginationContext.js +31 -0
  195. package/lib/commonjs/components/TablePagination/TablePaginationContext.js.map +1 -0
  196. package/lib/commonjs/components/TablePagination/getTablePaginationItems.js +50 -0
  197. package/lib/commonjs/components/TablePagination/getTablePaginationItems.js.map +1 -0
  198. package/lib/commonjs/components/TablePagination/index.js +395 -0
  199. package/lib/commonjs/components/TablePagination/index.js.map +1 -0
  200. package/lib/commonjs/components/TablePagination/styles.js +13 -0
  201. package/lib/commonjs/components/TablePagination/styles.js.map +1 -0
  202. package/lib/commonjs/components/Tabs/index.js +527 -0
  203. package/lib/commonjs/components/Tabs/index.js.map +1 -0
  204. package/lib/commonjs/components/Tabs/styles.js +333 -0
  205. package/lib/commonjs/components/Tabs/styles.js.map +1 -0
  206. package/lib/commonjs/components/Text/styles.js +2 -2
  207. package/lib/commonjs/components/Text/styles.js.map +1 -1
  208. package/lib/commonjs/components/Textarea/styles.js +10 -8
  209. package/lib/commonjs/components/Textarea/styles.js.map +1 -1
  210. package/lib/commonjs/components/Tile/styles.js +10 -10
  211. package/lib/commonjs/components/Tile/styles.js.map +1 -1
  212. package/lib/commonjs/components/Toast/animation.js +3 -1
  213. package/lib/commonjs/components/Toast/animation.js.map +1 -1
  214. package/lib/commonjs/components/Toast/hooks.js +1 -0
  215. package/lib/commonjs/components/Toast/hooks.js.map +1 -1
  216. package/lib/commonjs/components/Toast/index.js +18 -3
  217. package/lib/commonjs/components/Toast/index.js.map +1 -1
  218. package/lib/commonjs/components/Toast/styles.js +14 -14
  219. package/lib/commonjs/components/Toast/styles.js.map +1 -1
  220. package/lib/commonjs/components/Tooltip/index.js +106 -0
  221. package/lib/commonjs/components/Tooltip/index.js.map +1 -0
  222. package/lib/commonjs/components/Tooltip/styles.js +10 -0
  223. package/lib/commonjs/components/Tooltip/styles.js.map +1 -0
  224. package/lib/commonjs/components/index.js +264 -0
  225. package/lib/commonjs/components/index.js.map +1 -1
  226. package/lib/commonjs/components/picker/PickerTrigger.js +49 -0
  227. package/lib/commonjs/components/picker/PickerTrigger.js.map +1 -0
  228. package/lib/commonjs/components/picker/styles.js +15 -0
  229. package/lib/commonjs/components/picker/styles.js.map +1 -0
  230. package/lib/commonjs/components/picker/surfaces.js +148 -0
  231. package/lib/commonjs/components/picker/surfaces.js.map +1 -0
  232. package/lib/commonjs/figma/Accordion.figma.js +50 -0
  233. package/lib/commonjs/figma/Accordion.figma.js.map +1 -0
  234. package/lib/commonjs/figma/AlertDialog.Title.figma.js +3 -3
  235. package/lib/commonjs/figma/AlertDialog.Title.figma.js.map +1 -1
  236. package/lib/commonjs/figma/Card.Header.figma.js +5 -5
  237. package/lib/commonjs/figma/Card.Header.figma.js.map +1 -1
  238. package/lib/commonjs/figma/Card.Stripe.figma.js +20 -0
  239. package/lib/commonjs/figma/Card.Stripe.figma.js.map +1 -0
  240. package/lib/commonjs/figma/Card.figma.js +3 -0
  241. package/lib/commonjs/figma/Card.figma.js.map +1 -1
  242. package/lib/commonjs/figma/Chip.figma.js +2 -2
  243. package/lib/commonjs/figma/Chip.figma.js.map +1 -1
  244. package/lib/commonjs/figma/Dialog.Header.figma.js +6 -1
  245. package/lib/commonjs/figma/Dialog.Header.figma.js.map +1 -1
  246. package/lib/commonjs/figma/Dialog.Title.figma.js +3 -3
  247. package/lib/commonjs/figma/Dialog.Title.figma.js.map +1 -1
  248. package/lib/commonjs/figma/Field.Input.figma.js +1 -1
  249. package/lib/commonjs/figma/Field.OtpInput.figma.js +52 -0
  250. package/lib/commonjs/figma/Field.OtpInput.figma.js.map +1 -0
  251. package/lib/commonjs/figma/Field.Select.figma.js +1 -1
  252. package/lib/commonjs/figma/Field.Textarea.figma.js +1 -1
  253. package/lib/commonjs/figma/IconButton.figma.js +1 -1
  254. package/lib/commonjs/figma/IconButton.figma.js.map +1 -1
  255. package/lib/commonjs/figma/InsuranceDisclosure.figma.js +26 -0
  256. package/lib/commonjs/figma/InsuranceDisclosure.figma.js.map +1 -0
  257. package/lib/commonjs/figma/Menu.Item.figma.js +52 -0
  258. package/lib/commonjs/figma/Menu.Item.figma.js.map +1 -0
  259. package/lib/commonjs/figma/Menu.figma.js +29 -0
  260. package/lib/commonjs/figma/Menu.figma.js.map +1 -0
  261. package/lib/commonjs/figma/OtpInput.Cell.figma.js +55 -0
  262. package/lib/commonjs/figma/OtpInput.Cell.figma.js.map +1 -0
  263. package/lib/commonjs/figma/OtpInput.figma.js +42 -0
  264. package/lib/commonjs/figma/OtpInput.figma.js.map +1 -0
  265. package/lib/commonjs/figma/icons.figma.batch.json +5 -0
  266. package/lib/commonjs/index.js +8 -0
  267. package/lib/commonjs/index.js.map +1 -1
  268. package/lib/commonjs/providers/forge-design/provider.js +35 -16
  269. package/lib/commonjs/providers/forge-design/provider.js.map +1 -1
  270. package/lib/commonjs/providers/toast/insets-container.js +4 -1
  271. package/lib/commonjs/providers/toast/insets-container.js.map +1 -1
  272. package/lib/commonjs/providers/toast/provider.js +127 -46
  273. package/lib/commonjs/providers/toast/provider.js.map +1 -1
  274. package/lib/commonjs/providers/toast/toast-item-renderer.js +2 -1
  275. package/lib/commonjs/providers/toast/toast-item-renderer.js.map +1 -1
  276. package/lib/commonjs/styles/constants.js +20 -0
  277. package/lib/commonjs/styles/constants.js.map +1 -0
  278. package/lib/commonjs/styles.css +1 -0
  279. package/lib/module/animation/hooks/index.js +3 -0
  280. package/lib/module/animation/hooks/index.js.map +1 -1
  281. package/lib/module/animation/hooks/usePopupDialogContentAnimation.js +171 -0
  282. package/lib/module/animation/hooks/usePopupDialogContentAnimation.js.map +1 -0
  283. package/lib/module/animation/hooks/usePopupOverlayAnimation.js +65 -0
  284. package/lib/module/animation/hooks/usePopupOverlayAnimation.js.map +1 -0
  285. package/lib/module/animation/hooks/usePopupRootAnimation.js +22 -0
  286. package/lib/module/animation/hooks/usePopupRootAnimation.js.map +1 -0
  287. package/lib/module/components/Accordion/index.js +282 -0
  288. package/lib/module/components/Accordion/index.js.map +1 -0
  289. package/lib/module/components/Accordion/styles.js +52 -0
  290. package/lib/module/components/Accordion/styles.js.map +1 -0
  291. package/lib/module/components/Alert/styles.js +1 -1
  292. package/lib/module/components/Alert/styles.js.map +1 -1
  293. package/lib/module/components/AlertDialog/index.js +16 -2
  294. package/lib/module/components/AlertDialog/index.js.map +1 -1
  295. package/lib/module/components/Avatar/styles.js +1 -1
  296. package/lib/module/components/Avatar/styles.js.map +1 -1
  297. package/lib/module/components/Badge/styles.js +2 -2
  298. package/lib/module/components/Badge/styles.js.map +1 -1
  299. package/lib/module/components/BottomSheet/index.js +34 -3
  300. package/lib/module/components/BottomSheet/index.js.map +1 -1
  301. package/lib/module/components/BottomSheet/styles.js +5 -5
  302. package/lib/module/components/BottomSheet/styles.js.map +1 -1
  303. package/lib/module/components/Box/Box.js +1 -11
  304. package/lib/module/components/Box/Box.js.map +1 -1
  305. package/lib/module/components/Breadcrumbs/index.js +215 -0
  306. package/lib/module/components/Breadcrumbs/index.js.map +1 -0
  307. package/lib/module/components/Breadcrumbs/styles.js +34 -0
  308. package/lib/module/components/Breadcrumbs/styles.js.map +1 -0
  309. package/lib/module/components/Button/index.js +2 -13
  310. package/lib/module/components/Button/index.js.map +1 -1
  311. package/lib/module/components/Button/styles.js +28 -28
  312. package/lib/module/components/Button/styles.js.map +1 -1
  313. package/lib/module/components/CLAUDE.md +3 -3
  314. package/lib/module/components/Calendar/CalendarMonthHeader.js +92 -0
  315. package/lib/module/components/Calendar/CalendarMonthHeader.js.map +1 -0
  316. package/lib/module/components/Calendar/CalendarYearPickerGrid.js +70 -0
  317. package/lib/module/components/Calendar/CalendarYearPickerGrid.js.map +1 -0
  318. package/lib/module/components/Calendar/flashCalendarAdapter.js +290 -0
  319. package/lib/module/components/Calendar/flashCalendarAdapter.js.map +1 -0
  320. package/lib/module/components/Calendar/index.js +145 -0
  321. package/lib/module/components/Calendar/index.js.map +1 -0
  322. package/lib/module/components/Calendar/styles.js +66 -0
  323. package/lib/module/components/Calendar/styles.js.map +1 -0
  324. package/lib/module/components/Card/index.js +26 -1
  325. package/lib/module/components/Card/index.js.map +1 -1
  326. package/lib/module/components/Card/styles.js +6 -2
  327. package/lib/module/components/Card/styles.js.map +1 -1
  328. package/lib/module/components/Carousel/context.js +7 -0
  329. package/lib/module/components/Carousel/context.js.map +1 -0
  330. package/lib/module/components/Carousel/index.js +152 -0
  331. package/lib/module/components/Carousel/index.js.map +1 -0
  332. package/lib/module/components/Carousel/navButton.js +114 -0
  333. package/lib/module/components/Carousel/navButton.js.map +1 -0
  334. package/lib/module/components/Carousel/paginationNavigation.js +31 -0
  335. package/lib/module/components/Carousel/paginationNavigation.js.map +1 -0
  336. package/lib/module/components/Carousel/styles.js +41 -0
  337. package/lib/module/components/Carousel/styles.js.map +1 -0
  338. package/lib/module/components/Carousel/useCarouselActiveIndex.js +48 -0
  339. package/lib/module/components/Carousel/useCarouselActiveIndex.js.map +1 -0
  340. package/lib/module/components/Checkbox/index.js +29 -4
  341. package/lib/module/components/Checkbox/index.js.map +1 -1
  342. package/lib/module/components/Checkbox/styles.js +23 -17
  343. package/lib/module/components/Checkbox/styles.js.map +1 -1
  344. package/lib/module/components/Chip/index.js +23 -3
  345. package/lib/module/components/Chip/index.js.map +1 -1
  346. package/lib/module/components/Chip/styles.js +53 -53
  347. package/lib/module/components/Chip/styles.js.map +1 -1
  348. package/lib/module/components/CurrencyInput/index.js +3 -1
  349. package/lib/module/components/CurrencyInput/index.js.map +1 -1
  350. package/lib/module/components/CurrencyInput/styles.js +2 -2
  351. package/lib/module/components/CurrencyInput/styles.js.map +1 -1
  352. package/lib/module/components/DateField/index.js +143 -0
  353. package/lib/module/components/DateField/index.js.map +1 -0
  354. package/lib/module/components/DateField/styles.js +30 -0
  355. package/lib/module/components/DateField/styles.js.map +1 -0
  356. package/lib/module/components/DatePicker/index.js +159 -0
  357. package/lib/module/components/DatePicker/index.js.map +1 -0
  358. package/lib/module/components/DateRangePicker/index.js +173 -0
  359. package/lib/module/components/DateRangePicker/index.js.map +1 -0
  360. package/lib/module/components/DateTimeField/index.js +92 -0
  361. package/lib/module/components/DateTimeField/index.js.map +1 -0
  362. package/lib/module/components/DateTimeList/index.js +176 -0
  363. package/lib/module/components/DateTimeList/index.js.map +1 -0
  364. package/lib/module/components/DateTimeList/styles.js +52 -0
  365. package/lib/module/components/DateTimeList/styles.js.map +1 -0
  366. package/lib/module/components/DateTimePicker/index.js +183 -0
  367. package/lib/module/components/DateTimePicker/index.js.map +1 -0
  368. package/lib/module/components/Dialog/animation.js +7 -0
  369. package/lib/module/components/Dialog/animation.js.map +1 -0
  370. package/lib/module/components/Dialog/index.js +301 -36
  371. package/lib/module/components/Dialog/index.js.map +1 -1
  372. package/lib/module/components/Dialog/styles.js +14 -10
  373. package/lib/module/components/Dialog/styles.js.map +1 -1
  374. package/lib/module/components/Divider/styles.js +1 -1
  375. package/lib/module/components/Divider/styles.js.map +1 -1
  376. package/lib/module/components/Field/styles.js +2 -2
  377. package/lib/module/components/Field/styles.js.map +1 -1
  378. package/lib/module/components/Form/styles.js +1 -1
  379. package/lib/module/components/Form/styles.js.map +1 -1
  380. package/lib/module/components/Heading/styles.js +1 -1
  381. package/lib/module/components/Heading/styles.js.map +1 -1
  382. package/lib/module/components/IconButton/index.js +16 -4
  383. package/lib/module/components/IconButton/index.js.map +1 -1
  384. package/lib/module/components/IconButton/styles.js +24 -24
  385. package/lib/module/components/IconButton/styles.js.map +1 -1
  386. package/lib/module/components/Input/index.js.map +1 -1
  387. package/lib/module/components/Input/styles.js +14 -6
  388. package/lib/module/components/Input/styles.js.map +1 -1
  389. package/lib/module/components/InsuranceDisclosure/FdicLockup.js +27 -0
  390. package/lib/module/components/InsuranceDisclosure/FdicLockup.js.map +1 -0
  391. package/lib/module/components/InsuranceDisclosure/index.js +70 -0
  392. package/lib/module/components/InsuranceDisclosure/index.js.map +1 -0
  393. package/lib/module/components/InsuranceDisclosure/styles.js +17 -0
  394. package/lib/module/components/InsuranceDisclosure/styles.js.map +1 -0
  395. package/lib/module/components/Link/index.js.map +1 -1
  396. package/lib/module/components/Link/styles.js +3 -6
  397. package/lib/module/components/Link/styles.js.map +1 -1
  398. package/lib/module/components/ListItem/styles.js +2 -2
  399. package/lib/module/components/ListItem/styles.js.map +1 -1
  400. package/lib/module/components/Menu/index.js +505 -0
  401. package/lib/module/components/Menu/index.js.map +1 -0
  402. package/lib/module/components/Menu/styles.js +96 -0
  403. package/lib/module/components/Menu/styles.js.map +1 -0
  404. package/lib/module/components/MonthCalendar/index.js +225 -0
  405. package/lib/module/components/MonthCalendar/index.js.map +1 -0
  406. package/lib/module/components/MonthPicker/index.js +159 -0
  407. package/lib/module/components/MonthPicker/index.js.map +1 -0
  408. package/lib/module/components/OtpInput/index.js +21 -9
  409. package/lib/module/components/OtpInput/index.js.map +1 -1
  410. package/lib/module/components/OtpInput/styles.js +10 -8
  411. package/lib/module/components/OtpInput/styles.js.map +1 -1
  412. package/lib/module/components/ProgressBar/styles.js +2 -2
  413. package/lib/module/components/ProgressBar/styles.js.map +1 -1
  414. package/lib/module/components/ProgressCircle/ProgressCircleRing.js +86 -0
  415. package/lib/module/components/ProgressCircle/ProgressCircleRing.js.map +1 -0
  416. package/lib/module/components/ProgressCircle/index.js +80 -0
  417. package/lib/module/components/ProgressCircle/index.js.map +1 -0
  418. package/lib/module/components/ProgressCircle/styles.js +46 -0
  419. package/lib/module/components/ProgressCircle/styles.js.map +1 -0
  420. package/lib/module/components/ProgressCircle/useProgressCircleColors.js +32 -0
  421. package/lib/module/components/ProgressCircle/useProgressCircleColors.js.map +1 -0
  422. package/lib/module/components/ProgressSegmented/index.js +2 -15
  423. package/lib/module/components/ProgressSegmented/index.js.map +1 -1
  424. package/lib/module/components/ProgressSegmented/styles.js +3 -3
  425. package/lib/module/components/ProgressSegmented/styles.js.map +1 -1
  426. package/lib/module/components/QuickActionButton/styles.js +2 -2
  427. package/lib/module/components/QuickActionButton/styles.js.map +1 -1
  428. package/lib/module/components/Radio/index.js +17 -2
  429. package/lib/module/components/Radio/index.js.map +1 -1
  430. package/lib/module/components/Radio/styles.js +23 -8
  431. package/lib/module/components/Radio/styles.js.map +1 -1
  432. package/lib/module/components/RangeCalendar/index.js +161 -0
  433. package/lib/module/components/RangeCalendar/index.js.map +1 -0
  434. package/lib/module/components/ScrollShadow/index.js +78 -0
  435. package/lib/module/components/ScrollShadow/index.js.map +1 -0
  436. package/lib/module/components/ScrollShadow/styles.js +50 -0
  437. package/lib/module/components/ScrollShadow/styles.js.map +1 -0
  438. package/lib/module/components/ScrollShadow/useScrollShadow.js +79 -0
  439. package/lib/module/components/ScrollShadow/useScrollShadow.js.map +1 -0
  440. package/lib/module/components/Select/index.js +64 -24
  441. package/lib/module/components/Select/index.js.map +1 -1
  442. package/lib/module/components/Select/styles.js +13 -44
  443. package/lib/module/components/Select/styles.js.map +1 -1
  444. package/lib/module/components/Skeleton/index.js +3 -1
  445. package/lib/module/components/Skeleton/index.js.map +1 -1
  446. package/lib/module/components/Skeleton/styles.js +1 -1
  447. package/lib/module/components/Skeleton/styles.js.map +1 -1
  448. package/lib/module/components/Slider/getSliderPopupPosition.js +61 -0
  449. package/lib/module/components/Slider/getSliderPopupPosition.js.map +1 -0
  450. package/lib/module/components/Slider/index.js +402 -0
  451. package/lib/module/components/Slider/index.js.map +1 -0
  452. package/lib/module/components/Slider/styles.js +108 -0
  453. package/lib/module/components/Slider/styles.js.map +1 -0
  454. package/lib/module/components/Stack/styles.js +1 -1
  455. package/lib/module/components/Stack/styles.js.map +1 -1
  456. package/lib/module/components/Switch/index.js.map +1 -1
  457. package/lib/module/components/Switch/styles.js +1 -1
  458. package/lib/module/components/Switch/styles.js.map +1 -1
  459. package/lib/module/components/Table/index.js +385 -0
  460. package/lib/module/components/Table/index.js.map +1 -0
  461. package/lib/module/components/Table/index.web.js +325 -0
  462. package/lib/module/components/Table/index.web.js.map +1 -0
  463. package/lib/module/components/Table/styles.js +107 -0
  464. package/lib/module/components/Table/styles.js.map +1 -0
  465. package/lib/module/components/Table/types.js +4 -0
  466. package/lib/module/components/Table/types.js.map +1 -0
  467. package/lib/module/components/Table/useTableStyleContext.js +17 -0
  468. package/lib/module/components/Table/useTableStyleContext.js.map +1 -0
  469. package/lib/module/components/TablePagination/TablePaginationContext.js +25 -0
  470. package/lib/module/components/TablePagination/TablePaginationContext.js.map +1 -0
  471. package/lib/module/components/TablePagination/getTablePaginationItems.js +46 -0
  472. package/lib/module/components/TablePagination/getTablePaginationItems.js.map +1 -0
  473. package/lib/module/components/TablePagination/index.js +386 -0
  474. package/lib/module/components/TablePagination/index.js.map +1 -0
  475. package/lib/module/components/TablePagination/styles.js +9 -0
  476. package/lib/module/components/TablePagination/styles.js.map +1 -0
  477. package/lib/module/components/Tabs/index.js +522 -0
  478. package/lib/module/components/Tabs/index.js.map +1 -0
  479. package/lib/module/components/Tabs/styles.js +330 -0
  480. package/lib/module/components/Tabs/styles.js.map +1 -0
  481. package/lib/module/components/Text/styles.js +1 -1
  482. package/lib/module/components/Text/styles.js.map +1 -1
  483. package/lib/module/components/Textarea/styles.js +6 -4
  484. package/lib/module/components/Textarea/styles.js.map +1 -1
  485. package/lib/module/components/Tile/styles.js +2 -2
  486. package/lib/module/components/Tile/styles.js.map +1 -1
  487. package/lib/module/components/Toast/animation.js +3 -1
  488. package/lib/module/components/Toast/animation.js.map +1 -1
  489. package/lib/module/components/Toast/hooks.js +1 -0
  490. package/lib/module/components/Toast/hooks.js.map +1 -1
  491. package/lib/module/components/Toast/index.js +18 -3
  492. package/lib/module/components/Toast/index.js.map +1 -1
  493. package/lib/module/components/Toast/styles.js +9 -9
  494. package/lib/module/components/Toast/styles.js.map +1 -1
  495. package/lib/module/components/Tooltip/index.js +102 -0
  496. package/lib/module/components/Tooltip/index.js.map +1 -0
  497. package/lib/module/components/Tooltip/styles.js +6 -0
  498. package/lib/module/components/Tooltip/styles.js.map +1 -0
  499. package/lib/module/components/index.js +22 -0
  500. package/lib/module/components/index.js.map +1 -1
  501. package/lib/module/components/picker/PickerTrigger.js +45 -0
  502. package/lib/module/components/picker/PickerTrigger.js.map +1 -0
  503. package/lib/module/components/picker/styles.js +12 -0
  504. package/lib/module/components/picker/styles.js.map +1 -0
  505. package/lib/module/components/picker/surfaces.js +142 -0
  506. package/lib/module/components/picker/surfaces.js.map +1 -0
  507. package/lib/module/figma/Accordion.figma.js +44 -0
  508. package/lib/module/figma/Accordion.figma.js.map +1 -0
  509. package/lib/module/figma/AlertDialog.Title.figma.js +3 -3
  510. package/lib/module/figma/AlertDialog.Title.figma.js.map +1 -1
  511. package/lib/module/figma/Card.Header.figma.js +5 -5
  512. package/lib/module/figma/Card.Header.figma.js.map +1 -1
  513. package/lib/module/figma/Card.Stripe.figma.js +15 -0
  514. package/lib/module/figma/Card.Stripe.figma.js.map +1 -0
  515. package/lib/module/figma/Card.figma.js +3 -0
  516. package/lib/module/figma/Card.figma.js.map +1 -1
  517. package/lib/module/figma/Chip.figma.js +2 -2
  518. package/lib/module/figma/Chip.figma.js.map +1 -1
  519. package/lib/module/figma/Dialog.Header.figma.js +6 -1
  520. package/lib/module/figma/Dialog.Header.figma.js.map +1 -1
  521. package/lib/module/figma/Dialog.Title.figma.js +3 -3
  522. package/lib/module/figma/Dialog.Title.figma.js.map +1 -1
  523. package/lib/module/figma/Field.Input.figma.js +1 -1
  524. package/lib/module/figma/Field.OtpInput.figma.js +46 -0
  525. package/lib/module/figma/Field.OtpInput.figma.js.map +1 -0
  526. package/lib/module/figma/Field.Select.figma.js +1 -1
  527. package/lib/module/figma/Field.Textarea.figma.js +1 -1
  528. package/lib/module/figma/IconButton.figma.js +1 -1
  529. package/lib/module/figma/IconButton.figma.js.map +1 -1
  530. package/lib/module/figma/InsuranceDisclosure.figma.js +20 -0
  531. package/lib/module/figma/InsuranceDisclosure.figma.js.map +1 -0
  532. package/lib/module/figma/Menu.Item.figma.js +46 -0
  533. package/lib/module/figma/Menu.Item.figma.js.map +1 -0
  534. package/lib/module/figma/Menu.figma.js +23 -0
  535. package/lib/module/figma/Menu.figma.js.map +1 -0
  536. package/lib/module/figma/OtpInput.Cell.figma.js +49 -0
  537. package/lib/module/figma/OtpInput.Cell.figma.js.map +1 -0
  538. package/lib/module/figma/OtpInput.figma.js +36 -0
  539. package/lib/module/figma/OtpInput.figma.js.map +1 -0
  540. package/lib/module/figma/icons.figma.batch.json +5 -0
  541. package/lib/module/index.js +1 -0
  542. package/lib/module/index.js.map +1 -1
  543. package/lib/module/providers/forge-design/provider.js +36 -17
  544. package/lib/module/providers/forge-design/provider.js.map +1 -1
  545. package/lib/module/providers/toast/insets-container.js +5 -2
  546. package/lib/module/providers/toast/insets-container.js.map +1 -1
  547. package/lib/module/providers/toast/provider.js +127 -46
  548. package/lib/module/providers/toast/provider.js.map +1 -1
  549. package/lib/module/providers/toast/toast-item-renderer.js +2 -1
  550. package/lib/module/providers/toast/toast-item-renderer.js.map +1 -1
  551. package/lib/module/styles/constants.js +16 -0
  552. package/lib/module/styles/constants.js.map +1 -0
  553. package/lib/module/styles.css +1 -0
  554. package/lib/typescript/animation/hooks/index.d.ts +3 -0
  555. package/lib/typescript/animation/hooks/index.d.ts.map +1 -1
  556. package/lib/typescript/animation/hooks/usePopupDialogContentAnimation.d.ts +47 -0
  557. package/lib/typescript/animation/hooks/usePopupDialogContentAnimation.d.ts.map +1 -0
  558. package/lib/typescript/animation/hooks/usePopupOverlayAnimation.d.ts +29 -0
  559. package/lib/typescript/animation/hooks/usePopupOverlayAnimation.d.ts.map +1 -0
  560. package/lib/typescript/animation/hooks/usePopupRootAnimation.d.ts +16 -0
  561. package/lib/typescript/animation/hooks/usePopupRootAnimation.d.ts.map +1 -0
  562. package/lib/typescript/components/Accordion/index.d.ts +90 -0
  563. package/lib/typescript/components/Accordion/index.d.ts.map +1 -0
  564. package/lib/typescript/components/Accordion/styles.d.ts +17 -0
  565. package/lib/typescript/components/Accordion/styles.d.ts.map +1 -0
  566. package/lib/typescript/components/Alert/styles.d.ts +1 -1
  567. package/lib/typescript/components/Alert/styles.d.ts.map +1 -1
  568. package/lib/typescript/components/AlertDialog/index.d.ts +8 -6
  569. package/lib/typescript/components/AlertDialog/index.d.ts.map +1 -1
  570. package/lib/typescript/components/Avatar/styles.d.ts +1 -1
  571. package/lib/typescript/components/Avatar/styles.d.ts.map +1 -1
  572. package/lib/typescript/components/Badge/styles.d.ts +1 -1
  573. package/lib/typescript/components/Badge/styles.d.ts.map +1 -1
  574. package/lib/typescript/components/BottomSheet/index.d.ts +22 -2
  575. package/lib/typescript/components/BottomSheet/index.d.ts.map +1 -1
  576. package/lib/typescript/components/BottomSheet/styles.d.ts +5 -5
  577. package/lib/typescript/components/BottomSheet/styles.d.ts.map +1 -1
  578. package/lib/typescript/components/Box/Box.d.ts +0 -3
  579. package/lib/typescript/components/Box/Box.d.ts.map +1 -1
  580. package/lib/typescript/components/Breadcrumbs/index.d.ts +28 -0
  581. package/lib/typescript/components/Breadcrumbs/index.d.ts.map +1 -0
  582. package/lib/typescript/components/Breadcrumbs/styles.d.ts +11 -0
  583. package/lib/typescript/components/Breadcrumbs/styles.d.ts.map +1 -0
  584. package/lib/typescript/components/Button/index.d.ts +40 -6
  585. package/lib/typescript/components/Button/index.d.ts.map +1 -1
  586. package/lib/typescript/components/Button/styles.d.ts +1 -1
  587. package/lib/typescript/components/Button/styles.d.ts.map +1 -1
  588. package/lib/typescript/components/Calendar/CalendarMonthHeader.d.ts +14 -0
  589. package/lib/typescript/components/Calendar/CalendarMonthHeader.d.ts.map +1 -0
  590. package/lib/typescript/components/Calendar/CalendarYearPickerGrid.d.ts +12 -0
  591. package/lib/typescript/components/Calendar/CalendarYearPickerGrid.d.ts.map +1 -0
  592. package/lib/typescript/components/Calendar/flashCalendarAdapter.d.ts +18 -0
  593. package/lib/typescript/components/Calendar/flashCalendarAdapter.d.ts.map +1 -0
  594. package/lib/typescript/components/Calendar/index.d.ts +19 -0
  595. package/lib/typescript/components/Calendar/index.d.ts.map +1 -0
  596. package/lib/typescript/components/Calendar/styles.d.ts +23 -0
  597. package/lib/typescript/components/Calendar/styles.d.ts.map +1 -0
  598. package/lib/typescript/components/Card/index.d.ts +6 -0
  599. package/lib/typescript/components/Card/index.d.ts.map +1 -1
  600. package/lib/typescript/components/Card/styles.d.ts +2 -1
  601. package/lib/typescript/components/Card/styles.d.ts.map +1 -1
  602. package/lib/typescript/components/Carousel/context.d.ts +15 -0
  603. package/lib/typescript/components/Carousel/context.d.ts.map +1 -0
  604. package/lib/typescript/components/Carousel/index.d.ts +73 -0
  605. package/lib/typescript/components/Carousel/index.d.ts.map +1 -0
  606. package/lib/typescript/components/Carousel/navButton.d.ts +40 -0
  607. package/lib/typescript/components/Carousel/navButton.d.ts.map +1 -0
  608. package/lib/typescript/components/Carousel/paginationNavigation.d.ts +12 -0
  609. package/lib/typescript/components/Carousel/paginationNavigation.d.ts.map +1 -0
  610. package/lib/typescript/components/Carousel/styles.d.ts +16 -0
  611. package/lib/typescript/components/Carousel/styles.d.ts.map +1 -0
  612. package/lib/typescript/components/Carousel/useCarouselActiveIndex.d.ts +12 -0
  613. package/lib/typescript/components/Carousel/useCarouselActiveIndex.d.ts.map +1 -0
  614. package/lib/typescript/components/Checkbox/index.d.ts +2 -0
  615. package/lib/typescript/components/Checkbox/index.d.ts.map +1 -1
  616. package/lib/typescript/components/Checkbox/styles.d.ts.map +1 -1
  617. package/lib/typescript/components/Chip/index.d.ts +21 -1
  618. package/lib/typescript/components/Chip/index.d.ts.map +1 -1
  619. package/lib/typescript/components/Chip/styles.d.ts +6 -6
  620. package/lib/typescript/components/Chip/styles.d.ts.map +1 -1
  621. package/lib/typescript/components/CurrencyInput/index.d.ts +1 -1
  622. package/lib/typescript/components/CurrencyInput/index.d.ts.map +1 -1
  623. package/lib/typescript/components/CurrencyInput/styles.d.ts +1 -1
  624. package/lib/typescript/components/CurrencyInput/styles.d.ts.map +1 -1
  625. package/lib/typescript/components/DateField/index.d.ts +43 -0
  626. package/lib/typescript/components/DateField/index.d.ts.map +1 -0
  627. package/lib/typescript/components/DateField/styles.d.ts +15 -0
  628. package/lib/typescript/components/DateField/styles.d.ts.map +1 -0
  629. package/lib/typescript/components/DatePicker/index.d.ts +40 -0
  630. package/lib/typescript/components/DatePicker/index.d.ts.map +1 -0
  631. package/lib/typescript/components/DateRangePicker/index.d.ts +45 -0
  632. package/lib/typescript/components/DateRangePicker/index.d.ts.map +1 -0
  633. package/lib/typescript/components/DateTimeField/index.d.ts +29 -0
  634. package/lib/typescript/components/DateTimeField/index.d.ts.map +1 -0
  635. package/lib/typescript/components/DateTimeList/index.d.ts +19 -0
  636. package/lib/typescript/components/DateTimeList/index.d.ts.map +1 -0
  637. package/lib/typescript/components/DateTimeList/styles.d.ts +17 -0
  638. package/lib/typescript/components/DateTimeList/styles.d.ts.map +1 -0
  639. package/lib/typescript/components/DateTimePicker/index.d.ts +40 -0
  640. package/lib/typescript/components/DateTimePicker/index.d.ts.map +1 -0
  641. package/lib/typescript/components/Dialog/animation.d.ts +11 -0
  642. package/lib/typescript/components/Dialog/animation.d.ts.map +1 -0
  643. package/lib/typescript/components/Dialog/index.d.ts +27 -3
  644. package/lib/typescript/components/Dialog/index.d.ts.map +1 -1
  645. package/lib/typescript/components/Dialog/styles.d.ts +4 -3
  646. package/lib/typescript/components/Dialog/styles.d.ts.map +1 -1
  647. package/lib/typescript/components/Divider/styles.d.ts +1 -1
  648. package/lib/typescript/components/Divider/styles.d.ts.map +1 -1
  649. package/lib/typescript/components/Field/styles.d.ts +1 -1
  650. package/lib/typescript/components/Field/styles.d.ts.map +1 -1
  651. package/lib/typescript/components/Heading/styles.d.ts +1 -1
  652. package/lib/typescript/components/Heading/styles.d.ts.map +1 -1
  653. package/lib/typescript/components/IconButton/index.d.ts +11 -1
  654. package/lib/typescript/components/IconButton/index.d.ts.map +1 -1
  655. package/lib/typescript/components/IconButton/styles.d.ts +3 -3
  656. package/lib/typescript/components/IconButton/styles.d.ts.map +1 -1
  657. package/lib/typescript/components/Input/index.d.ts +20 -2
  658. package/lib/typescript/components/Input/index.d.ts.map +1 -1
  659. package/lib/typescript/components/Input/styles.d.ts +1 -1
  660. package/lib/typescript/components/Input/styles.d.ts.map +1 -1
  661. package/lib/typescript/components/InsuranceDisclosure/FdicLockup.d.ts +2 -0
  662. package/lib/typescript/components/InsuranceDisclosure/FdicLockup.d.ts.map +1 -0
  663. package/lib/typescript/components/InsuranceDisclosure/index.d.ts +31 -0
  664. package/lib/typescript/components/InsuranceDisclosure/index.d.ts.map +1 -0
  665. package/lib/typescript/components/InsuranceDisclosure/styles.d.ts +8 -0
  666. package/lib/typescript/components/InsuranceDisclosure/styles.d.ts.map +1 -0
  667. package/lib/typescript/components/Link/index.d.ts +1 -0
  668. package/lib/typescript/components/Link/index.d.ts.map +1 -1
  669. package/lib/typescript/components/Link/styles.d.ts +1 -1
  670. package/lib/typescript/components/Link/styles.d.ts.map +1 -1
  671. package/lib/typescript/components/ListItem/styles.d.ts +1 -1
  672. package/lib/typescript/components/ListItem/styles.d.ts.map +1 -1
  673. package/lib/typescript/components/Menu/index.d.ts +119 -0
  674. package/lib/typescript/components/Menu/index.d.ts.map +1 -0
  675. package/lib/typescript/components/Menu/styles.d.ts +24 -0
  676. package/lib/typescript/components/Menu/styles.d.ts.map +1 -0
  677. package/lib/typescript/components/MonthCalendar/index.d.ts +29 -0
  678. package/lib/typescript/components/MonthCalendar/index.d.ts.map +1 -0
  679. package/lib/typescript/components/MonthPicker/index.d.ts +40 -0
  680. package/lib/typescript/components/MonthPicker/index.d.ts.map +1 -0
  681. package/lib/typescript/components/OtpInput/index.d.ts +30 -3
  682. package/lib/typescript/components/OtpInput/index.d.ts.map +1 -1
  683. package/lib/typescript/components/OtpInput/styles.d.ts +1 -1
  684. package/lib/typescript/components/OtpInput/styles.d.ts.map +1 -1
  685. package/lib/typescript/components/ProgressBar/styles.d.ts +1 -1
  686. package/lib/typescript/components/ProgressBar/styles.d.ts.map +1 -1
  687. package/lib/typescript/components/ProgressCircle/ProgressCircleRing.d.ts +7 -0
  688. package/lib/typescript/components/ProgressCircle/ProgressCircleRing.d.ts.map +1 -0
  689. package/lib/typescript/components/ProgressCircle/index.d.ts +29 -0
  690. package/lib/typescript/components/ProgressCircle/index.d.ts.map +1 -0
  691. package/lib/typescript/components/ProgressCircle/styles.d.ts +23 -0
  692. package/lib/typescript/components/ProgressCircle/styles.d.ts.map +1 -0
  693. package/lib/typescript/components/ProgressCircle/useProgressCircleColors.d.ts +6 -0
  694. package/lib/typescript/components/ProgressCircle/useProgressCircleColors.d.ts.map +1 -0
  695. package/lib/typescript/components/ProgressSegmented/index.d.ts +0 -5
  696. package/lib/typescript/components/ProgressSegmented/index.d.ts.map +1 -1
  697. package/lib/typescript/components/ProgressSegmented/styles.d.ts +1 -1
  698. package/lib/typescript/components/ProgressSegmented/styles.d.ts.map +1 -1
  699. package/lib/typescript/components/QuickActionButton/styles.d.ts +1 -1
  700. package/lib/typescript/components/QuickActionButton/styles.d.ts.map +1 -1
  701. package/lib/typescript/components/Radio/index.d.ts.map +1 -1
  702. package/lib/typescript/components/Radio/styles.d.ts.map +1 -1
  703. package/lib/typescript/components/RangeCalendar/index.d.ts +19 -0
  704. package/lib/typescript/components/RangeCalendar/index.d.ts.map +1 -0
  705. package/lib/typescript/components/ScrollShadow/index.d.ts +29 -0
  706. package/lib/typescript/components/ScrollShadow/index.d.ts.map +1 -0
  707. package/lib/typescript/components/ScrollShadow/styles.d.ts +12 -0
  708. package/lib/typescript/components/ScrollShadow/styles.d.ts.map +1 -0
  709. package/lib/typescript/components/ScrollShadow/useScrollShadow.d.ts +17 -0
  710. package/lib/typescript/components/ScrollShadow/useScrollShadow.d.ts.map +1 -0
  711. package/lib/typescript/components/Select/index.d.ts +11 -0
  712. package/lib/typescript/components/Select/index.d.ts.map +1 -1
  713. package/lib/typescript/components/Select/styles.d.ts +1 -8
  714. package/lib/typescript/components/Select/styles.d.ts.map +1 -1
  715. package/lib/typescript/components/Skeleton/index.d.ts.map +1 -1
  716. package/lib/typescript/components/Skeleton/styles.d.ts +1 -1
  717. package/lib/typescript/components/Skeleton/styles.d.ts.map +1 -1
  718. package/lib/typescript/components/Slider/getSliderPopupPosition.d.ts +15 -0
  719. package/lib/typescript/components/Slider/getSliderPopupPosition.d.ts.map +1 -0
  720. package/lib/typescript/components/Slider/index.d.ts +66 -0
  721. package/lib/typescript/components/Slider/index.d.ts.map +1 -0
  722. package/lib/typescript/components/Slider/styles.d.ts +30 -0
  723. package/lib/typescript/components/Slider/styles.d.ts.map +1 -0
  724. package/lib/typescript/components/Switch/index.d.ts +10 -2
  725. package/lib/typescript/components/Switch/index.d.ts.map +1 -1
  726. package/lib/typescript/components/Switch/styles.d.ts +1 -1
  727. package/lib/typescript/components/Switch/styles.d.ts.map +1 -1
  728. package/lib/typescript/components/Table/index.d.ts +23 -0
  729. package/lib/typescript/components/Table/index.d.ts.map +1 -0
  730. package/lib/typescript/components/Table/index.web.d.ts +22 -0
  731. package/lib/typescript/components/Table/index.web.d.ts.map +1 -0
  732. package/lib/typescript/components/Table/styles.d.ts +36 -0
  733. package/lib/typescript/components/Table/styles.d.ts.map +1 -0
  734. package/lib/typescript/components/Table/types.d.ts +51 -0
  735. package/lib/typescript/components/Table/types.d.ts.map +1 -0
  736. package/lib/typescript/components/Table/useTableStyleContext.d.ts +11 -0
  737. package/lib/typescript/components/Table/useTableStyleContext.d.ts.map +1 -0
  738. package/lib/typescript/components/TablePagination/TablePaginationContext.d.ts +20 -0
  739. package/lib/typescript/components/TablePagination/TablePaginationContext.d.ts.map +1 -0
  740. package/lib/typescript/components/TablePagination/getTablePaginationItems.d.ts +7 -0
  741. package/lib/typescript/components/TablePagination/getTablePaginationItems.d.ts.map +1 -0
  742. package/lib/typescript/components/TablePagination/index.d.ts +74 -0
  743. package/lib/typescript/components/TablePagination/index.d.ts.map +1 -0
  744. package/lib/typescript/components/TablePagination/styles.d.ts +8 -0
  745. package/lib/typescript/components/TablePagination/styles.d.ts.map +1 -0
  746. package/lib/typescript/components/Tabs/index.d.ts +48 -0
  747. package/lib/typescript/components/Tabs/index.d.ts.map +1 -0
  748. package/lib/typescript/components/Tabs/styles.d.ts +107 -0
  749. package/lib/typescript/components/Tabs/styles.d.ts.map +1 -0
  750. package/lib/typescript/components/Text/styles.d.ts +1 -1
  751. package/lib/typescript/components/Text/styles.d.ts.map +1 -1
  752. package/lib/typescript/components/Textarea/styles.d.ts +1 -1
  753. package/lib/typescript/components/Textarea/styles.d.ts.map +1 -1
  754. package/lib/typescript/components/Tile/styles.d.ts +1 -1
  755. package/lib/typescript/components/Tile/styles.d.ts.map +1 -1
  756. package/lib/typescript/components/Toast/animation.d.ts.map +1 -1
  757. package/lib/typescript/components/Toast/hooks.d.ts +2 -2
  758. package/lib/typescript/components/Toast/hooks.d.ts.map +1 -1
  759. package/lib/typescript/components/Toast/index.d.ts.map +1 -1
  760. package/lib/typescript/components/Toast/styles.d.ts +5 -5
  761. package/lib/typescript/components/Toast/styles.d.ts.map +1 -1
  762. package/lib/typescript/components/Toast/types.d.ts +13 -8
  763. package/lib/typescript/components/Toast/types.d.ts.map +1 -1
  764. package/lib/typescript/components/Tooltip/index.d.ts +32 -0
  765. package/lib/typescript/components/Tooltip/index.d.ts.map +1 -0
  766. package/lib/typescript/components/Tooltip/styles.d.ts +5 -0
  767. package/lib/typescript/components/Tooltip/styles.d.ts.map +1 -0
  768. package/lib/typescript/components/index.d.ts +22 -0
  769. package/lib/typescript/components/index.d.ts.map +1 -1
  770. package/lib/typescript/components/picker/PickerTrigger.d.ts +25 -0
  771. package/lib/typescript/components/picker/PickerTrigger.d.ts.map +1 -0
  772. package/lib/typescript/components/picker/styles.d.ts +4 -0
  773. package/lib/typescript/components/picker/styles.d.ts.map +1 -0
  774. package/lib/typescript/components/picker/surfaces.d.ts +28 -0
  775. package/lib/typescript/components/picker/surfaces.d.ts.map +1 -0
  776. package/lib/typescript/figma/Accordion.figma.d.ts +8 -0
  777. package/lib/typescript/figma/Accordion.figma.d.ts.map +1 -0
  778. package/lib/typescript/figma/Alert.Button.figma.d.ts +1 -1
  779. package/lib/typescript/figma/Alert.Close.figma.d.ts +1 -1
  780. package/lib/typescript/figma/Card.Header.figma.d.ts.map +1 -1
  781. package/lib/typescript/figma/Card.Stripe.figma.d.ts +11 -0
  782. package/lib/typescript/figma/Card.Stripe.figma.d.ts.map +1 -0
  783. package/lib/typescript/figma/Card.figma.d.ts.map +1 -1
  784. package/lib/typescript/figma/Dialog.Header.figma.d.ts.map +1 -1
  785. package/lib/typescript/figma/Field.OtpInput.figma.d.ts +8 -0
  786. package/lib/typescript/figma/Field.OtpInput.figma.d.ts.map +1 -0
  787. package/lib/typescript/figma/InsuranceDisclosure.figma.d.ts +8 -0
  788. package/lib/typescript/figma/InsuranceDisclosure.figma.d.ts.map +1 -0
  789. package/lib/typescript/figma/Menu.Item.figma.d.ts +8 -0
  790. package/lib/typescript/figma/Menu.Item.figma.d.ts.map +1 -0
  791. package/lib/typescript/figma/Menu.figma.d.ts +8 -0
  792. package/lib/typescript/figma/Menu.figma.d.ts.map +1 -0
  793. package/lib/typescript/figma/OtpInput.Cell.figma.d.ts +8 -0
  794. package/lib/typescript/figma/OtpInput.Cell.figma.d.ts.map +1 -0
  795. package/lib/typescript/figma/OtpInput.figma.d.ts +8 -0
  796. package/lib/typescript/figma/OtpInput.figma.d.ts.map +1 -0
  797. package/lib/typescript/index.d.ts +2 -0
  798. package/lib/typescript/index.d.ts.map +1 -1
  799. package/lib/typescript/providers/forge-design/provider.d.ts.map +1 -1
  800. package/lib/typescript/providers/toast/insets-container.d.ts.map +1 -1
  801. package/lib/typescript/providers/toast/lifecycle.context.d.ts +2 -2
  802. package/lib/typescript/providers/toast/lifecycle.context.d.ts.map +1 -1
  803. package/lib/typescript/providers/toast/provider.d.ts.map +1 -1
  804. package/lib/typescript/providers/toast/toast-item-renderer.d.ts.map +1 -1
  805. package/lib/typescript/providers/toast/types.d.ts +22 -8
  806. package/lib/typescript/providers/toast/types.d.ts.map +1 -1
  807. package/lib/typescript/styles/constants.d.ts +5 -0
  808. package/lib/typescript/styles/constants.d.ts.map +1 -0
  809. package/package.json +35 -19
  810. package/src/animation/hooks/index.ts +3 -0
  811. package/src/animation/hooks/usePopupDialogContentAnimation.ts +265 -0
  812. package/src/animation/hooks/usePopupOverlayAnimation.ts +91 -0
  813. package/src/animation/hooks/usePopupRootAnimation.ts +27 -0
  814. package/src/components/Accordion/index.tsx +385 -0
  815. package/src/components/Accordion/styles.ts +82 -0
  816. package/src/components/Alert/styles.ts +1 -1
  817. package/src/components/AlertDialog/index.tsx +17 -4
  818. package/src/components/Avatar/styles.ts +1 -1
  819. package/src/components/Badge/styles.ts +2 -2
  820. package/src/components/BottomSheet/index.tsx +31 -1
  821. package/src/components/BottomSheet/styles.ts +5 -5
  822. package/src/components/Box/Box.tsx +3 -7
  823. package/src/components/Breadcrumbs/index.tsx +311 -0
  824. package/src/components/Breadcrumbs/styles.ts +63 -0
  825. package/src/components/Button/index.tsx +44 -26
  826. package/src/components/Button/styles.ts +28 -28
  827. package/src/components/CLAUDE.md +3 -3
  828. package/src/components/Calendar/CalendarMonthHeader.tsx +124 -0
  829. package/src/components/Calendar/CalendarYearPickerGrid.tsx +101 -0
  830. package/src/components/Calendar/flashCalendarAdapter.ts +362 -0
  831. package/src/components/Calendar/index.tsx +151 -0
  832. package/src/components/Calendar/styles.ts +80 -0
  833. package/src/components/Card/index.tsx +31 -0
  834. package/src/components/Card/styles.ts +5 -2
  835. package/src/components/Carousel/context.ts +15 -0
  836. package/src/components/Carousel/index.tsx +268 -0
  837. package/src/components/Carousel/navButton.tsx +160 -0
  838. package/src/components/Carousel/paginationNavigation.ts +32 -0
  839. package/src/components/Carousel/styles.ts +45 -0
  840. package/src/components/Carousel/useCarouselActiveIndex.ts +54 -0
  841. package/src/components/Checkbox/index.tsx +37 -2
  842. package/src/components/Checkbox/styles.ts +56 -24
  843. package/src/components/Chip/index.tsx +61 -3
  844. package/src/components/Chip/styles.ts +53 -53
  845. package/src/components/CurrencyInput/index.tsx +3 -1
  846. package/src/components/CurrencyInput/styles.ts +2 -2
  847. package/src/components/DateField/index.tsx +196 -0
  848. package/src/components/DateField/styles.ts +51 -0
  849. package/src/components/DatePicker/index.tsx +187 -0
  850. package/src/components/DateRangePicker/index.tsx +202 -0
  851. package/src/components/DateTimeField/index.tsx +128 -0
  852. package/src/components/DateTimeList/index.tsx +187 -0
  853. package/src/components/DateTimeList/styles.ts +59 -0
  854. package/src/components/DateTimePicker/index.tsx +233 -0
  855. package/src/components/Dialog/animation.ts +13 -0
  856. package/src/components/Dialog/index.tsx +391 -39
  857. package/src/components/Dialog/styles.ts +26 -9
  858. package/src/components/Divider/styles.ts +1 -1
  859. package/src/components/Field/styles.ts +2 -2
  860. package/src/components/Form/styles.ts +1 -1
  861. package/src/components/Heading/styles.ts +1 -1
  862. package/src/components/IconButton/index.tsx +35 -4
  863. package/src/components/IconButton/styles.ts +24 -24
  864. package/src/components/Input/index.tsx +20 -1
  865. package/src/components/Input/styles.ts +12 -4
  866. package/src/components/InsuranceDisclosure/FdicLockup.tsx +23 -0
  867. package/src/components/InsuranceDisclosure/index.tsx +99 -0
  868. package/src/components/InsuranceDisclosure/styles.ts +31 -0
  869. package/src/components/Link/index.tsx +1 -0
  870. package/src/components/Link/styles.ts +9 -12
  871. package/src/components/ListItem/styles.ts +2 -2
  872. package/src/components/Menu/index.tsx +667 -0
  873. package/src/components/Menu/styles.ts +153 -0
  874. package/src/components/MonthCalendar/index.tsx +252 -0
  875. package/src/components/MonthPicker/index.tsx +188 -0
  876. package/src/components/OtpInput/index.tsx +74 -42
  877. package/src/components/OtpInput/styles.ts +21 -14
  878. package/src/components/ProgressBar/styles.ts +2 -2
  879. package/src/components/ProgressCircle/ProgressCircleRing.tsx +105 -0
  880. package/src/components/ProgressCircle/index.tsx +110 -0
  881. package/src/components/ProgressCircle/styles.ts +47 -0
  882. package/src/components/ProgressCircle/useProgressCircleColors.ts +33 -0
  883. package/src/components/ProgressSegmented/index.tsx +2 -21
  884. package/src/components/ProgressSegmented/styles.ts +3 -3
  885. package/src/components/QuickActionButton/styles.ts +2 -2
  886. package/src/components/Radio/index.tsx +20 -0
  887. package/src/components/Radio/styles.ts +31 -5
  888. package/src/components/RangeCalendar/index.tsx +162 -0
  889. package/src/components/ScrollShadow/index.tsx +119 -0
  890. package/src/components/ScrollShadow/styles.ts +57 -0
  891. package/src/components/ScrollShadow/useScrollShadow.ts +110 -0
  892. package/src/components/Select/index.tsx +92 -26
  893. package/src/components/Select/styles.ts +12 -63
  894. package/src/components/Skeleton/index.tsx +2 -1
  895. package/src/components/Skeleton/styles.ts +1 -1
  896. package/src/components/Slider/getSliderPopupPosition.ts +70 -0
  897. package/src/components/Slider/index.tsx +520 -0
  898. package/src/components/Slider/styles.ts +147 -0
  899. package/src/components/Stack/styles.ts +1 -1
  900. package/src/components/Switch/index.tsx +10 -2
  901. package/src/components/Switch/styles.ts +1 -1
  902. package/src/components/Table/index.tsx +459 -0
  903. package/src/components/Table/index.web.tsx +395 -0
  904. package/src/components/Table/styles.ts +143 -0
  905. package/src/components/Table/types.ts +57 -0
  906. package/src/components/Table/useTableStyleContext.ts +14 -0
  907. package/src/components/TablePagination/TablePaginationContext.tsx +37 -0
  908. package/src/components/TablePagination/getTablePaginationItems.ts +62 -0
  909. package/src/components/TablePagination/index.tsx +498 -0
  910. package/src/components/TablePagination/styles.ts +15 -0
  911. package/src/components/Tabs/index.tsx +698 -0
  912. package/src/components/Tabs/styles.ts +340 -0
  913. package/src/components/Text/styles.ts +1 -1
  914. package/src/components/Textarea/styles.ts +6 -4
  915. package/src/components/Tile/styles.ts +2 -2
  916. package/src/components/Toast/animation.ts +19 -1
  917. package/src/components/Toast/hooks.ts +3 -2
  918. package/src/components/Toast/index.tsx +34 -3
  919. package/src/components/Toast/styles.ts +9 -9
  920. package/src/components/Toast/types.ts +14 -8
  921. package/src/components/Tooltip/index.tsx +149 -0
  922. package/src/components/Tooltip/styles.ts +16 -0
  923. package/src/components/index.ts +22 -0
  924. package/src/components/picker/PickerTrigger.tsx +65 -0
  925. package/src/components/picker/styles.ts +17 -0
  926. package/src/components/picker/surfaces.tsx +178 -0
  927. package/src/index.ts +2 -0
  928. package/src/providers/forge-design/provider.tsx +49 -21
  929. package/src/providers/toast/insets-container.tsx +3 -2
  930. package/src/providers/toast/lifecycle.context.tsx +2 -2
  931. package/src/providers/toast/provider.tsx +151 -52
  932. package/src/providers/toast/toast-item-renderer.tsx +5 -1
  933. package/src/providers/toast/types.ts +22 -8
  934. package/src/styles/constants.ts +14 -0
  935. package/src/styles.css +1 -0
  936. package/lib/commonjs/metro/withCdxMetroConfig.js +0 -13
  937. package/lib/commonjs/metro/withCdxMetroConfig.js.map +0 -1
  938. package/lib/commonjs/metro/withForgeMetroConfig.js +0 -24
  939. package/lib/commonjs/metro/withForgeMetroConfig.js.map +0 -1
  940. package/lib/commonjs/styles/index.js +0 -17
  941. package/lib/commonjs/styles/index.js.map +0 -1
  942. package/lib/commonjs/styles/primitives.js +0 -159
  943. package/lib/commonjs/styles/primitives.js.map +0 -1
  944. package/lib/commonjs/utils/WrapStringChild.js +0 -22
  945. package/lib/commonjs/utils/WrapStringChild.js.map +0 -1
  946. package/lib/module/metro/withCdxMetroConfig.js +0 -6
  947. package/lib/module/metro/withCdxMetroConfig.js.map +0 -1
  948. package/lib/module/metro/withForgeMetroConfig.js +0 -20
  949. package/lib/module/metro/withForgeMetroConfig.js.map +0 -1
  950. package/lib/module/styles/index.js +0 -4
  951. package/lib/module/styles/index.js.map +0 -1
  952. package/lib/module/styles/primitives.js +0 -155
  953. package/lib/module/styles/primitives.js.map +0 -1
  954. package/lib/module/utils/WrapStringChild.js +0 -18
  955. package/lib/module/utils/WrapStringChild.js.map +0 -1
  956. package/lib/typescript/metro/withCdxMetroConfig.d.ts +0 -5
  957. package/lib/typescript/metro/withCdxMetroConfig.d.ts.map +0 -1
  958. package/lib/typescript/metro/withForgeMetroConfig.d.ts +0 -19
  959. package/lib/typescript/metro/withForgeMetroConfig.d.ts.map +0 -1
  960. package/lib/typescript/styles/index.d.ts +0 -2
  961. package/lib/typescript/styles/index.d.ts.map +0 -1
  962. package/lib/typescript/styles/primitives.d.ts +0 -123
  963. package/lib/typescript/styles/primitives.d.ts.map +0 -1
  964. package/lib/typescript/utils/WrapStringChild.d.ts +0 -10
  965. package/lib/typescript/utils/WrapStringChild.d.ts.map +0 -1
  966. package/src/metro/withCdxMetroConfig.ts +0 -4
  967. package/src/metro/withForgeMetroConfig.ts +0 -29
  968. package/src/styles/index.ts +0 -1
  969. package/src/styles/primitives.ts +0 -143
  970. package/src/utils/WrapStringChild.tsx +0 -25
@@ -0,0 +1,187 @@
1
+ import { forwardRef, useCallback, useMemo, type ReactNode } from 'react';
2
+ import { View, type ViewProps } from 'react-native';
3
+ import { CalendarToday } from '@cdx-ui/icons';
4
+ import type { DateId } from '@cdx-ui/formatters';
5
+ import {
6
+ dataAttributes,
7
+ DatePickerContext,
8
+ DatePickerRoot as DatePickerRootPrimitive,
9
+ mergeDataAttributes,
10
+ useDatePickerContext,
11
+ type DatePickerRootProps as DatePickerRootPrimitiveProps,
12
+ } from '@cdx-ui/primitives';
13
+ import { cn, ParentContext, useParentContext } from '@cdx-ui/utils';
14
+ import { Dialog } from '../Dialog';
15
+ import { Icon } from '../Icon';
16
+ import { Calendar, type CalendarProps } from '../Calendar';
17
+ import { PickerTrigger, type PickerTriggerProps } from '../picker/PickerTrigger';
18
+ import {
19
+ PickerBottomSheetSurface,
20
+ PickerDialogSurface,
21
+ PickerPopoverSurface,
22
+ } from '../picker/surfaces';
23
+
24
+ export interface DatePickerProps extends DatePickerRootPrimitiveProps, Omit<ViewProps, 'children'> {
25
+ className?: string;
26
+ children?: ReactNode;
27
+ }
28
+
29
+ const DATE_FIELD_SCOPE = 'DATE_FIELD';
30
+
31
+ const DatePickerRoot = forwardRef<View, DatePickerProps>(
32
+ ({ className, children, style, ...props }, ref) => {
33
+ const parent = useParentContext();
34
+ const ctx = useMemo(
35
+ () => ({
36
+ ...parent,
37
+ [DATE_FIELD_SCOPE]: { variant: 'outline', size: 'default', fullWidth: true },
38
+ }),
39
+ [parent],
40
+ );
41
+
42
+ return (
43
+ <ParentContext.Provider value={ctx}>
44
+ <DatePickerRootPrimitive
45
+ ref={ref}
46
+ className={cn('gap-2', className)}
47
+ style={style}
48
+ {...props}
49
+ {...mergeDataAttributes(props, dataAttributes({ slot: 'date-picker' }))}
50
+ >
51
+ {children}
52
+ </DatePickerRootPrimitive>
53
+ </ParentContext.Provider>
54
+ );
55
+ },
56
+ );
57
+
58
+ DatePickerRoot.displayName = 'DatePicker';
59
+
60
+ type DatePickerTriggerProps = Omit<
61
+ PickerTriggerProps,
62
+ 'open' | 'setOpen' | 'disabled' | 'triggerRef' | 'accessibilityLabel'
63
+ > & {
64
+ accessibilityLabel?: string;
65
+ };
66
+
67
+ const DatePickerTrigger = forwardRef<View, DatePickerTriggerProps>(
68
+ ({ accessibilityLabel, ...props }, ref) => {
69
+ const { open, setOpen, disabled, triggerRef, labels } = useDatePickerContext();
70
+ return (
71
+ <PickerTrigger
72
+ ref={ref}
73
+ open={open}
74
+ setOpen={setOpen}
75
+ disabled={disabled}
76
+ triggerRef={triggerRef}
77
+ accessibilityLabel={accessibilityLabel ?? labels.openDatePicker}
78
+ {...props}
79
+ />
80
+ );
81
+ },
82
+ );
83
+
84
+ DatePickerTrigger.displayName = 'DatePicker.Trigger';
85
+
86
+ const DatePickerTriggerIndicator = () => (
87
+ <Icon as={CalendarToday} className="text-content-secondary" />
88
+ );
89
+
90
+ DatePickerTriggerIndicator.displayName = 'DatePicker.TriggerIndicator';
91
+
92
+ type DatePickerCalendarProps = Omit<
93
+ CalendarProps,
94
+ 'value' | 'onValueChange' | 'minValue' | 'maxValue'
95
+ >;
96
+
97
+ const DatePickerCalendar = forwardRef<View, DatePickerCalendarProps>(({ ...props }, ref) => {
98
+ const { value, onValueChange, open, setOpen, minValue, maxValue, locale, labels } =
99
+ useDatePickerContext();
100
+
101
+ const handleValueChange = useCallback(
102
+ (next: DateId | undefined) => {
103
+ onValueChange?.(next);
104
+ if (open) {
105
+ setOpen(false);
106
+ }
107
+ },
108
+ [onValueChange, open, setOpen],
109
+ );
110
+
111
+ return (
112
+ <Calendar
113
+ ref={ref}
114
+ value={value}
115
+ onValueChange={handleValueChange}
116
+ minValue={minValue}
117
+ maxValue={maxValue}
118
+ locale={locale}
119
+ labels={labels}
120
+ {...props}
121
+ />
122
+ );
123
+ });
124
+
125
+ DatePickerCalendar.displayName = 'DatePicker.Calendar';
126
+
127
+ function DatePickerDialog({ children }: { children: ReactNode }) {
128
+ const ctx = useDatePickerContext();
129
+ return (
130
+ <PickerDialogSurface
131
+ open={ctx.open}
132
+ setOpen={ctx.setOpen}
133
+ registerSurface={ctx.registerSurface}
134
+ >
135
+ <Dialog.Popup className="p-4">
136
+ <DatePickerContext.Provider value={ctx}>{children}</DatePickerContext.Provider>
137
+ </Dialog.Popup>
138
+ </PickerDialogSurface>
139
+ );
140
+ }
141
+
142
+ function DatePickerBottomSheet({ children }: { children: ReactNode }) {
143
+ const ctx = useDatePickerContext();
144
+ return (
145
+ <PickerBottomSheetSurface
146
+ open={ctx.open}
147
+ setOpen={ctx.setOpen}
148
+ registerSurface={ctx.registerSurface}
149
+ >
150
+ <DatePickerContext.Provider value={ctx}>{children}</DatePickerContext.Provider>
151
+ </PickerBottomSheetSurface>
152
+ );
153
+ }
154
+
155
+ function DatePickerPopover({ children, className }: { children: ReactNode; className?: string }) {
156
+ const ctx = useDatePickerContext();
157
+ return (
158
+ <PickerPopoverSurface
159
+ open={ctx.open}
160
+ setOpen={ctx.setOpen}
161
+ registerSurface={ctx.registerSurface}
162
+ anchorRef={ctx.anchorRef}
163
+ triggerRef={ctx.triggerRef}
164
+ className={className}
165
+ >
166
+ <DatePickerContext.Provider value={ctx}>{children}</DatePickerContext.Provider>
167
+ </PickerPopoverSurface>
168
+ );
169
+ }
170
+
171
+ type DatePickerCompound = typeof DatePickerRoot & {
172
+ Trigger: typeof DatePickerTrigger;
173
+ TriggerIndicator: typeof DatePickerTriggerIndicator;
174
+ Calendar: typeof DatePickerCalendar;
175
+ Popover: typeof DatePickerPopover;
176
+ Dialog: typeof DatePickerDialog;
177
+ BottomSheet: typeof DatePickerBottomSheet;
178
+ };
179
+
180
+ export const DatePicker = Object.assign(DatePickerRoot, {
181
+ Trigger: DatePickerTrigger,
182
+ TriggerIndicator: DatePickerTriggerIndicator,
183
+ Calendar: DatePickerCalendar,
184
+ Popover: DatePickerPopover,
185
+ Dialog: DatePickerDialog,
186
+ BottomSheet: DatePickerBottomSheet,
187
+ }) as DatePickerCompound;
@@ -0,0 +1,202 @@
1
+ import { forwardRef, useMemo, type ReactNode } from 'react';
2
+ import { Text, View, type ViewProps } from 'react-native';
3
+ import { CalendarToday } from '@cdx-ui/icons';
4
+ import {
5
+ dataAttributes,
6
+ DateRangePickerContext,
7
+ DateRangePickerRoot as DateRangePickerRootPrimitive,
8
+ mergeDataAttributes,
9
+ useDateRangePickerContext,
10
+ type DateRangePickerRootProps as DateRangePickerRootPrimitiveProps,
11
+ } from '@cdx-ui/primitives';
12
+ import { cn, ParentContext, useParentContext } from '@cdx-ui/utils';
13
+ import { Dialog } from '../Dialog';
14
+ import { Icon } from '../Icon';
15
+ import { RangeCalendar, type RangeCalendarProps } from '../RangeCalendar';
16
+ import { PickerTrigger, type PickerTriggerProps } from '../picker/PickerTrigger';
17
+ import {
18
+ PickerBottomSheetSurface,
19
+ PickerDialogSurface,
20
+ PickerPopoverSurface,
21
+ } from '../picker/surfaces';
22
+
23
+ export type { DateRangeValue } from '@cdx-ui/primitives';
24
+
25
+ export interface DateRangePickerProps
26
+ extends DateRangePickerRootPrimitiveProps, Omit<ViewProps, 'children'> {
27
+ className?: string;
28
+ children?: ReactNode;
29
+ }
30
+
31
+ const DATE_FIELD_SCOPE = 'DATE_FIELD';
32
+
33
+ const DateRangePickerRoot = forwardRef<View, DateRangePickerProps>(
34
+ ({ className, children, style, ...props }, ref) => {
35
+ const parent = useParentContext();
36
+ const ctx = useMemo(
37
+ () => ({
38
+ ...parent,
39
+ [DATE_FIELD_SCOPE]: { variant: 'outline', size: 'default', fullWidth: true },
40
+ }),
41
+ [parent],
42
+ );
43
+
44
+ return (
45
+ <ParentContext.Provider value={ctx}>
46
+ <DateRangePickerRootPrimitive
47
+ ref={ref}
48
+ className={cn('gap-2', className)}
49
+ style={style}
50
+ {...props}
51
+ {...mergeDataAttributes(props, dataAttributes({ slot: 'date-range-picker' }))}
52
+ >
53
+ {children}
54
+ </DateRangePickerRootPrimitive>
55
+ </ParentContext.Provider>
56
+ );
57
+ },
58
+ );
59
+
60
+ DateRangePickerRoot.displayName = 'DateRangePicker';
61
+
62
+ type DateRangePickerTriggerProps = Omit<
63
+ PickerTriggerProps,
64
+ 'open' | 'setOpen' | 'disabled' | 'triggerRef' | 'accessibilityLabel'
65
+ > & {
66
+ accessibilityLabel?: string;
67
+ };
68
+
69
+ const DateRangePickerTrigger = forwardRef<View, DateRangePickerTriggerProps>(
70
+ ({ accessibilityLabel, ...props }, ref) => {
71
+ const { open, setOpen, disabled, triggerRef, labels } = useDateRangePickerContext();
72
+ return (
73
+ <PickerTrigger
74
+ ref={ref}
75
+ open={open}
76
+ setOpen={setOpen}
77
+ disabled={disabled}
78
+ triggerRef={triggerRef}
79
+ accessibilityLabel={accessibilityLabel ?? labels.openDateRangePicker}
80
+ {...props}
81
+ />
82
+ );
83
+ },
84
+ );
85
+
86
+ DateRangePickerTrigger.displayName = 'DateRangePicker.Trigger';
87
+
88
+ const DateRangePickerTriggerIndicator = () => (
89
+ <Icon as={CalendarToday} className="text-content-secondary" />
90
+ );
91
+
92
+ DateRangePickerTriggerIndicator.displayName = 'DateRangePicker.TriggerIndicator';
93
+
94
+ const DateRangePickerRangeSeparator = () => {
95
+ const { labels } = useDateRangePickerContext();
96
+ return <Text className="body-md text-content-secondary px-1">{labels.rangeSeparator}</Text>;
97
+ };
98
+
99
+ DateRangePickerRangeSeparator.displayName = 'DateRangePicker.RangeSeparator';
100
+
101
+ type DateRangePickerCalendarProps = Omit<
102
+ RangeCalendarProps,
103
+ 'startValue' | 'endValue' | 'onRangeChange' | 'focusedField' | 'onFocusedFieldChange'
104
+ >;
105
+
106
+ const DateRangePickerCalendar = forwardRef<View, DateRangePickerCalendarProps>(
107
+ ({ ...props }, ref) => {
108
+ const { startValue, endValue, onRangeChange, focusedField, setFocusedField, locale, labels } =
109
+ useDateRangePickerContext();
110
+
111
+ return (
112
+ <RangeCalendar
113
+ ref={ref}
114
+ startValue={startValue}
115
+ endValue={endValue}
116
+ focusedField={focusedField}
117
+ onFocusedFieldChange={setFocusedField}
118
+ locale={locale}
119
+ labels={labels}
120
+ onRangeChange={(range) => {
121
+ if (!range.startId) {
122
+ return;
123
+ }
124
+ onRangeChange?.({ startId: range.startId, endId: range.endId });
125
+ }}
126
+ {...props}
127
+ />
128
+ );
129
+ },
130
+ );
131
+
132
+ DateRangePickerCalendar.displayName = 'DateRangePicker.Calendar';
133
+
134
+ function DateRangePickerDialog({ children }: { children: ReactNode }) {
135
+ const ctx = useDateRangePickerContext();
136
+ return (
137
+ <PickerDialogSurface
138
+ open={ctx.open}
139
+ setOpen={ctx.setOpen}
140
+ registerSurface={ctx.registerSurface}
141
+ >
142
+ <Dialog.Popup className="p-4">
143
+ <DateRangePickerContext.Provider value={ctx}>{children}</DateRangePickerContext.Provider>
144
+ </Dialog.Popup>
145
+ </PickerDialogSurface>
146
+ );
147
+ }
148
+
149
+ function DateRangePickerBottomSheet({ children }: { children: ReactNode }) {
150
+ const ctx = useDateRangePickerContext();
151
+ return (
152
+ <PickerBottomSheetSurface
153
+ open={ctx.open}
154
+ setOpen={ctx.setOpen}
155
+ registerSurface={ctx.registerSurface}
156
+ >
157
+ <DateRangePickerContext.Provider value={ctx}>{children}</DateRangePickerContext.Provider>
158
+ </PickerBottomSheetSurface>
159
+ );
160
+ }
161
+
162
+ function DateRangePickerPopover({
163
+ children,
164
+ className,
165
+ }: {
166
+ children: ReactNode;
167
+ className?: string;
168
+ }) {
169
+ const ctx = useDateRangePickerContext();
170
+ return (
171
+ <PickerPopoverSurface
172
+ open={ctx.open}
173
+ setOpen={ctx.setOpen}
174
+ registerSurface={ctx.registerSurface}
175
+ anchorRef={ctx.anchorRef}
176
+ triggerRef={ctx.triggerRef}
177
+ className={className}
178
+ >
179
+ <DateRangePickerContext.Provider value={ctx}>{children}</DateRangePickerContext.Provider>
180
+ </PickerPopoverSurface>
181
+ );
182
+ }
183
+
184
+ type DateRangePickerCompound = typeof DateRangePickerRoot & {
185
+ Trigger: typeof DateRangePickerTrigger;
186
+ TriggerIndicator: typeof DateRangePickerTriggerIndicator;
187
+ RangeSeparator: typeof DateRangePickerRangeSeparator;
188
+ Calendar: typeof DateRangePickerCalendar;
189
+ Popover: typeof DateRangePickerPopover;
190
+ Dialog: typeof DateRangePickerDialog;
191
+ BottomSheet: typeof DateRangePickerBottomSheet;
192
+ };
193
+
194
+ export const DateRangePicker = Object.assign(DateRangePickerRoot, {
195
+ Trigger: DateRangePickerTrigger,
196
+ TriggerIndicator: DateRangePickerTriggerIndicator,
197
+ RangeSeparator: DateRangePickerRangeSeparator,
198
+ Calendar: DateRangePickerCalendar,
199
+ Popover: DateRangePickerPopover,
200
+ Dialog: DateRangePickerDialog,
201
+ BottomSheet: DateRangePickerBottomSheet,
202
+ }) as DateRangePickerCompound;
@@ -0,0 +1,128 @@
1
+ import { forwardRef, useMemo, type ReactNode } from 'react';
2
+ import { View, type ViewProps } from 'react-native';
3
+ import {
4
+ DateTimeFieldInput as DateTimeFieldInputPrimitive,
5
+ DateTimeFieldRoot as DateTimeFieldRootPrimitive,
6
+ DateTimeFieldSegment as DateTimeFieldSegmentPrimitive,
7
+ dataAttributes,
8
+ mergeDataAttributes,
9
+ type DateTimeFieldRootProps as DateTimeFieldRootPrimitiveProps,
10
+ } from '@cdx-ui/primitives';
11
+ import { cn, ParentContext, useParentContext } from '@cdx-ui/utils';
12
+ import { DateField } from '../DateField';
13
+ import {
14
+ dateFieldInputVariants,
15
+ dateFieldRootVariants,
16
+ dateFieldSegmentVariants,
17
+ type DateFieldGroupVariantProps,
18
+ } from '../DateField/styles';
19
+
20
+ const SCOPE = 'DATE_FIELD';
21
+
22
+ type DateFieldStyleContext = DateFieldGroupVariantProps & {
23
+ fullWidth?: boolean;
24
+ };
25
+
26
+ const useDateFieldStyleContext = (): DateFieldStyleContext =>
27
+ (useParentContext()[SCOPE] as DateFieldStyleContext | undefined) ?? {};
28
+
29
+ export interface DateTimeFieldProps
30
+ extends DateTimeFieldRootPrimitiveProps, DateFieldGroupVariantProps, Omit<ViewProps, 'children'> {
31
+ className?: string;
32
+ children?: ReactNode;
33
+ /** When true (the default), the group stretches to fill its container; when false, it hugs the segments. */
34
+ fullWidth?: boolean;
35
+ }
36
+
37
+ const DateTimeFieldRoot = forwardRef<View, DateTimeFieldProps>(
38
+ (
39
+ { className, children, style, variant = 'outline', size = 'default', fullWidth, ...props },
40
+ ref,
41
+ ) => {
42
+ const parent = useParentContext();
43
+ const ctx = useMemo(
44
+ () => ({ ...parent, [SCOPE]: { variant, size, fullWidth } }),
45
+ [parent, variant, size, fullWidth],
46
+ );
47
+
48
+ return (
49
+ <ParentContext.Provider value={ctx}>
50
+ <DateTimeFieldRootPrimitive
51
+ ref={ref}
52
+ className={cn(dateFieldRootVariants(), className)}
53
+ style={style}
54
+ {...props}
55
+ {...mergeDataAttributes(props, dataAttributes({ slot: 'date-time-field' }))}
56
+ >
57
+ {children ?? (
58
+ <DateField.Group>
59
+ <DateTimeField.Input>
60
+ {(segment) => <DateTimeField.Segment segment={segment} />}
61
+ </DateTimeField.Input>
62
+ </DateField.Group>
63
+ )}
64
+ </DateTimeFieldRootPrimitive>
65
+ </ParentContext.Provider>
66
+ );
67
+ },
68
+ );
69
+
70
+ DateTimeFieldRoot.displayName = 'DateTimeField';
71
+
72
+ const DateTimeFieldInput = forwardRef<
73
+ View,
74
+ {
75
+ children: (segment: import('@cdx-ui/formatters').DateSegment) => ReactNode;
76
+ className?: string;
77
+ } & Omit<ViewProps, 'children'>
78
+ >(({ className, style, ...props }, ref) => {
79
+ const { size } = useDateFieldStyleContext();
80
+ return (
81
+ <DateTimeFieldInputPrimitive
82
+ ref={ref}
83
+ className={cn(dateFieldInputVariants({ size: size ?? 'default' }), className)}
84
+ style={style}
85
+ {...props}
86
+ />
87
+ );
88
+ });
89
+
90
+ DateTimeFieldInput.displayName = 'DateTimeField.Input';
91
+
92
+ const DateTimeFieldSegment = forwardRef<
93
+ View,
94
+ {
95
+ segment: import('@cdx-ui/formatters').DateSegment;
96
+ className?: string;
97
+ } & Omit<ViewProps, 'children'>
98
+ >(({ segment, className, style, ...props }, ref) => (
99
+ <DateTimeFieldSegmentPrimitive
100
+ ref={ref}
101
+ segment={segment}
102
+ className={cn(dateFieldSegmentVariants({ literal: !segment.isEditable }), className)}
103
+ style={style}
104
+ {...props}
105
+ {...mergeDataAttributes(
106
+ props,
107
+ dataAttributes({
108
+ placeholder: segment.isEditable && segment.value == null,
109
+ }),
110
+ )}
111
+ />
112
+ ));
113
+
114
+ DateTimeFieldSegment.displayName = 'DateTimeField.Segment';
115
+
116
+ type DateTimeFieldCompound = typeof DateTimeFieldRoot & {
117
+ Group: typeof DateField.Group;
118
+ Input: typeof DateTimeFieldInput;
119
+ Segment: typeof DateTimeFieldSegment;
120
+ Suffix: typeof DateField.Suffix;
121
+ };
122
+
123
+ export const DateTimeField = Object.assign(DateTimeFieldRoot, {
124
+ Group: DateField.Group,
125
+ Input: DateTimeFieldInput,
126
+ Segment: DateTimeFieldSegment,
127
+ Suffix: DateField.Suffix,
128
+ }) as DateTimeFieldCompound;
@@ -0,0 +1,187 @@
1
+ import { forwardRef, type ReactNode } from 'react';
2
+ import { Pressable, Text, View, type ViewProps } from 'react-native';
3
+ import { useCSSVariable } from 'uniwind';
4
+ import {
5
+ dataAttributes,
6
+ DATE_TIME_LIST_HEIGHT,
7
+ DATE_TIME_LIST_ITEM_HEIGHT,
8
+ DateTimeListColumn as DateTimeListColumnPrimitive,
9
+ DateTimeListRoot as DateTimeListRootPrimitive,
10
+ mergeDataAttributes,
11
+ useDateTimeListColumnContext,
12
+ useDateTimeListContext,
13
+ type DateTimeListColumnType,
14
+ type DateTimeListRootProps as DateTimeListRootPrimitiveProps,
15
+ } from '@cdx-ui/primitives';
16
+ import { getDateTimeSegmentVisibility } from '@cdx-ui/formatters';
17
+ import { cn } from '@cdx-ui/utils';
18
+ import {
19
+ dateTimeListColumnsVariants,
20
+ dateTimeListColumnVariants,
21
+ dateTimeListEdgeFadeVariants,
22
+ dateTimeListHighlightVariants,
23
+ dateTimeListOptionTextVariants,
24
+ dateTimeListOptionVariants,
25
+ dateTimeListRootVariants,
26
+ } from './styles';
27
+
28
+ export interface DateTimeListProps
29
+ extends DateTimeListRootPrimitiveProps, Omit<ViewProps, 'children'> {
30
+ className?: string;
31
+ children?: ReactNode;
32
+ }
33
+
34
+ function DateTimeListDefaultBody() {
35
+ const { granularity, hour12 } = useDateTimeListContext();
36
+ const { showTime, showMinute, showSecond } = getDateTimeSegmentVisibility(granularity);
37
+
38
+ return (
39
+ <>
40
+ <DateTimeListDateColumn />
41
+ {showTime ? (
42
+ <>
43
+ <DateTimeListHourColumn />
44
+ {showMinute ? <DateTimeListMinuteColumn /> : null}
45
+ {showSecond ? <DateTimeListSecondColumn /> : null}
46
+ {hour12 ? <DateTimeListPeriodColumn /> : null}
47
+ </>
48
+ ) : null}
49
+ </>
50
+ );
51
+ }
52
+
53
+ /** Cross-platform edge fade (Uniwind gradients are unreliable on native). */
54
+ function EdgeFade({ edge }: { edge: 'top' | 'bottom' }) {
55
+ const surface = useCSSVariable('--color-surface-primary') || 'transparent';
56
+ const isTop = edge === 'top';
57
+ return (
58
+ <View
59
+ pointerEvents="none"
60
+ className={dateTimeListEdgeFadeVariants({ edge })}
61
+ style={{
62
+ height: DATE_TIME_LIST_ITEM_HEIGHT * 1.75,
63
+ experimental_backgroundImage: isTop
64
+ ? `linear-gradient(to bottom, ${surface as string}, transparent)`
65
+ : `linear-gradient(to top, ${surface as string}, transparent)`,
66
+ }}
67
+ />
68
+ );
69
+ }
70
+
71
+ const DateTimeListRoot = forwardRef<View, DateTimeListProps>(
72
+ ({ className, children, style, ...props }, ref) => (
73
+ <DateTimeListRootPrimitive
74
+ ref={ref}
75
+ className={cn(dateTimeListRootVariants(), className)}
76
+ style={[{ height: DATE_TIME_LIST_HEIGHT }, style]}
77
+ {...props}
78
+ {...mergeDataAttributes(props, dataAttributes({ slot: 'date-time-list' }))}
79
+ >
80
+ <View
81
+ pointerEvents="none"
82
+ className={dateTimeListHighlightVariants()}
83
+ style={{
84
+ top: (DATE_TIME_LIST_HEIGHT - DATE_TIME_LIST_ITEM_HEIGHT) / 2,
85
+ height: DATE_TIME_LIST_ITEM_HEIGHT,
86
+ }}
87
+ />
88
+
89
+ <View className={dateTimeListColumnsVariants()}>
90
+ {children ?? <DateTimeListDefaultBody />}
91
+ </View>
92
+
93
+ <EdgeFade edge="top" />
94
+ <EdgeFade edge="bottom" />
95
+ </DateTimeListRootPrimitive>
96
+ ),
97
+ );
98
+
99
+ DateTimeListRoot.displayName = 'DateTimeList';
100
+
101
+ function ColumnOption({
102
+ option,
103
+ }: {
104
+ option: { value: string | number; label: string; selected: boolean };
105
+ }) {
106
+ const { onSelect, column } = useDateTimeListColumnContext();
107
+
108
+ return (
109
+ <Pressable
110
+ accessibilityRole="button"
111
+ accessibilityLabel={option.label}
112
+ accessibilityState={{ selected: option.selected }}
113
+ onPress={() => onSelect(option.value)}
114
+ className={dateTimeListOptionVariants()}
115
+ {...{ 'data-column': column, 'data-selected': option.selected }}
116
+ >
117
+ <Text
118
+ className={dateTimeListOptionTextVariants({ selected: option.selected })}
119
+ numberOfLines={1}
120
+ >
121
+ {option.label}
122
+ </Text>
123
+ </Pressable>
124
+ );
125
+ }
126
+
127
+ function ColumnShell({
128
+ className,
129
+ style,
130
+ column,
131
+ ...props
132
+ }: ViewProps & { column: DateTimeListColumnType }) {
133
+ return (
134
+ <DateTimeListColumnPrimitive
135
+ column={column}
136
+ className={cn(dateTimeListColumnVariants({ column }), className)}
137
+ style={[{ height: DATE_TIME_LIST_HEIGHT }, style]}
138
+ {...props}
139
+ >
140
+ {(option) => <ColumnOption option={option} />}
141
+ </DateTimeListColumnPrimitive>
142
+ );
143
+ }
144
+
145
+ function DateTimeListDateColumn(props: ViewProps) {
146
+ return <ColumnShell column="date" {...props} />;
147
+ }
148
+
149
+ function DateTimeListHourColumn(props: ViewProps) {
150
+ return <ColumnShell column="hour" {...props} />;
151
+ }
152
+
153
+ function DateTimeListMinuteColumn(props: ViewProps) {
154
+ return <ColumnShell column="minute" {...props} />;
155
+ }
156
+
157
+ function DateTimeListSecondColumn(props: ViewProps) {
158
+ return <ColumnShell column="second" {...props} />;
159
+ }
160
+
161
+ function DateTimeListTimeColumn(props: ViewProps) {
162
+ const { granularity } = useDateTimeListContext();
163
+ const { showMinute, showSecond } = getDateTimeSegmentVisibility(granularity);
164
+ return (
165
+ <>
166
+ <DateTimeListHourColumn {...props} />
167
+ {showMinute ? <DateTimeListMinuteColumn {...props} /> : null}
168
+ {showSecond ? <DateTimeListSecondColumn {...props} /> : null}
169
+ </>
170
+ );
171
+ }
172
+
173
+ function DateTimeListPeriodColumn(props: ViewProps) {
174
+ return <ColumnShell column="period" {...props} />;
175
+ }
176
+
177
+ type DateTimeListCompound = typeof DateTimeListRoot & {
178
+ DateColumn: typeof DateTimeListDateColumn;
179
+ TimeColumn: typeof DateTimeListTimeColumn;
180
+ PeriodColumn: typeof DateTimeListPeriodColumn;
181
+ };
182
+
183
+ export const DateTimeList = Object.assign(DateTimeListRoot, {
184
+ DateColumn: DateTimeListDateColumn,
185
+ TimeColumn: DateTimeListTimeColumn,
186
+ PeriodColumn: DateTimeListPeriodColumn,
187
+ }) as DateTimeListCompound;