@cdx-ui/components 0.0.1-beta.13 → 0.0.1-beta.131

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 (1249) hide show
  1. package/README.md +34 -20
  2. package/lib/commonjs/animation/hooks/index.js +50 -0
  3. package/lib/commonjs/animation/hooks/index.js.map +1 -0
  4. package/lib/commonjs/animation/hooks/useCombinedAnimationDisabledState.js +50 -0
  5. package/lib/commonjs/animation/hooks/useCombinedAnimationDisabledState.js.map +1 -0
  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/animation/index.js +39 -0
  13. package/lib/commonjs/animation/index.js.map +1 -0
  14. package/lib/commonjs/animation/types.js +6 -0
  15. package/lib/commonjs/animation/types.js.map +1 -0
  16. package/lib/commonjs/animation/utils.js +223 -0
  17. package/lib/commonjs/animation/utils.js.map +1 -0
  18. package/lib/commonjs/components/Alert/index.js +263 -0
  19. package/lib/commonjs/components/Alert/index.js.map +1 -0
  20. package/lib/commonjs/components/Alert/styles.js +87 -0
  21. package/lib/commonjs/components/Alert/styles.js.map +1 -0
  22. package/lib/commonjs/components/AlertDialog/index.js +32 -16
  23. package/lib/commonjs/components/AlertDialog/index.js.map +1 -1
  24. package/lib/commonjs/components/Avatar/index.js +135 -26
  25. package/lib/commonjs/components/Avatar/index.js.map +1 -1
  26. package/lib/commonjs/components/Avatar/styles.js +36 -29
  27. package/lib/commonjs/components/Avatar/styles.js.map +1 -1
  28. package/lib/commonjs/components/Badge/index.js +86 -0
  29. package/lib/commonjs/components/Badge/index.js.map +1 -0
  30. package/lib/commonjs/components/Badge/styles.js +127 -0
  31. package/lib/commonjs/components/Badge/styles.js.map +1 -0
  32. package/lib/commonjs/components/BottomSheet/index.js +75 -27
  33. package/lib/commonjs/components/BottomSheet/index.js.map +1 -1
  34. package/lib/commonjs/components/BottomSheet/styles.js +8 -43
  35. package/lib/commonjs/components/BottomSheet/styles.js.map +1 -1
  36. package/lib/commonjs/components/Box/Box.js +1 -11
  37. package/lib/commonjs/components/Box/Box.js.map +1 -1
  38. package/lib/commonjs/components/Breadcrumbs/index.js +219 -0
  39. package/lib/commonjs/components/Breadcrumbs/index.js.map +1 -0
  40. package/lib/commonjs/components/Breadcrumbs/styles.js +38 -0
  41. package/lib/commonjs/components/Breadcrumbs/styles.js.map +1 -0
  42. package/lib/commonjs/components/Button/index.js +143 -29
  43. package/lib/commonjs/components/Button/index.js.map +1 -1
  44. package/lib/commonjs/components/Button/styles.js +95 -30
  45. package/lib/commonjs/components/Button/styles.js.map +1 -1
  46. package/lib/commonjs/components/CLAUDE.md +195 -0
  47. package/lib/commonjs/components/Card/index.js +74 -15
  48. package/lib/commonjs/components/Card/index.js.map +1 -1
  49. package/lib/commonjs/components/Card/styles.js +17 -3
  50. package/lib/commonjs/components/Card/styles.js.map +1 -1
  51. package/lib/commonjs/components/Carousel/index.js +153 -0
  52. package/lib/commonjs/components/Carousel/index.js.map +1 -0
  53. package/lib/commonjs/components/Carousel/paginationNavigation.js +35 -0
  54. package/lib/commonjs/components/Carousel/paginationNavigation.js.map +1 -0
  55. package/lib/commonjs/components/Carousel/styles.js +21 -0
  56. package/lib/commonjs/components/Carousel/styles.js.map +1 -0
  57. package/lib/commonjs/components/Checkbox/index.js +89 -48
  58. package/lib/commonjs/components/Checkbox/index.js.map +1 -1
  59. package/lib/commonjs/components/Checkbox/styles.js +44 -48
  60. package/lib/commonjs/components/Checkbox/styles.js.map +1 -1
  61. package/lib/commonjs/components/Chip/index.js +115 -18
  62. package/lib/commonjs/components/Chip/index.js.map +1 -1
  63. package/lib/commonjs/components/Chip/styles.js +180 -23
  64. package/lib/commonjs/components/Chip/styles.js.map +1 -1
  65. package/lib/commonjs/components/CurrencyInput/index.js +157 -0
  66. package/lib/commonjs/components/CurrencyInput/index.js.map +1 -0
  67. package/lib/commonjs/components/CurrencyInput/styles.js +31 -0
  68. package/lib/commonjs/components/CurrencyInput/styles.js.map +1 -0
  69. package/lib/commonjs/components/Dialog/animation.js +13 -0
  70. package/lib/commonjs/components/Dialog/animation.js.map +1 -0
  71. package/lib/commonjs/components/Dialog/index.js +403 -66
  72. package/lib/commonjs/components/Dialog/index.js.map +1 -1
  73. package/lib/commonjs/components/Dialog/styles.js +66 -16
  74. package/lib/commonjs/components/Dialog/styles.js.map +1 -1
  75. package/lib/commonjs/components/Divider/index.js +98 -0
  76. package/lib/commonjs/components/Divider/index.js.map +1 -0
  77. package/lib/commonjs/components/Divider/styles.js +75 -0
  78. package/lib/commonjs/components/Divider/styles.js.map +1 -0
  79. package/lib/commonjs/components/Field/index.js +77 -27
  80. package/lib/commonjs/components/Field/index.js.map +1 -1
  81. package/lib/commonjs/components/Field/styles.js +5 -5
  82. package/lib/commonjs/components/Field/styles.js.map +1 -1
  83. package/lib/commonjs/components/Form/index.js +5 -12
  84. package/lib/commonjs/components/Form/index.js.map +1 -1
  85. package/lib/commonjs/components/Heading/styles.js +1 -1
  86. package/lib/commonjs/components/Heading/styles.js.map +1 -1
  87. package/lib/commonjs/components/Icon/index.js +12 -5
  88. package/lib/commonjs/components/Icon/index.js.map +1 -1
  89. package/lib/commonjs/components/IconButton/index.js +22 -35
  90. package/lib/commonjs/components/IconButton/index.js.map +1 -1
  91. package/lib/commonjs/components/IconButton/styles.js +136 -11
  92. package/lib/commonjs/components/IconButton/styles.js.map +1 -1
  93. package/lib/commonjs/components/Input/index.js +50 -20
  94. package/lib/commonjs/components/Input/index.js.map +1 -1
  95. package/lib/commonjs/components/Input/styles.js +20 -7
  96. package/lib/commonjs/components/Input/styles.js.map +1 -1
  97. package/lib/commonjs/components/InsuranceDisclosure/index.js +56 -0
  98. package/lib/commonjs/components/InsuranceDisclosure/index.js.map +1 -0
  99. package/lib/commonjs/components/InsuranceDisclosure/styles.js +11 -0
  100. package/lib/commonjs/components/InsuranceDisclosure/styles.js.map +1 -0
  101. package/lib/commonjs/components/Link/index.js +35 -9
  102. package/lib/commonjs/components/Link/index.js.map +1 -1
  103. package/lib/commonjs/components/Link/styles.js +54 -7
  104. package/lib/commonjs/components/Link/styles.js.map +1 -1
  105. package/lib/commonjs/components/ListItem/index.js +132 -79
  106. package/lib/commonjs/components/ListItem/index.js.map +1 -1
  107. package/lib/commonjs/components/ListItem/styles.js +28 -56
  108. package/lib/commonjs/components/ListItem/styles.js.map +1 -1
  109. package/lib/commonjs/components/OtpInput/index.js +114 -36
  110. package/lib/commonjs/components/OtpInput/index.js.map +1 -1
  111. package/lib/commonjs/components/OtpInput/styles.js +9 -7
  112. package/lib/commonjs/components/OtpInput/styles.js.map +1 -1
  113. package/lib/commonjs/components/ProgressBar/index.js +8 -13
  114. package/lib/commonjs/components/ProgressBar/index.js.map +1 -1
  115. package/lib/commonjs/components/ProgressBar/styles.js +1 -1
  116. package/lib/commonjs/components/ProgressBar/styles.js.map +1 -1
  117. package/lib/commonjs/components/ProgressSegmented/index.js +24 -10
  118. package/lib/commonjs/components/ProgressSegmented/index.js.map +1 -1
  119. package/lib/commonjs/components/ProgressSegmented/styles.js +2 -2
  120. package/lib/commonjs/components/ProgressSegmented/styles.js.map +1 -1
  121. package/lib/commonjs/components/QuickActionButton/index.js +133 -0
  122. package/lib/commonjs/components/QuickActionButton/index.js.map +1 -0
  123. package/lib/commonjs/components/QuickActionButton/styles.js +17 -0
  124. package/lib/commonjs/components/QuickActionButton/styles.js.map +1 -0
  125. package/lib/commonjs/components/Radio/index.js +66 -51
  126. package/lib/commonjs/components/Radio/index.js.map +1 -1
  127. package/lib/commonjs/components/Radio/styles.js +21 -8
  128. package/lib/commonjs/components/Radio/styles.js.map +1 -1
  129. package/lib/commonjs/components/ScopedTheme/index.js +24 -0
  130. package/lib/commonjs/components/ScopedTheme/index.js.map +1 -0
  131. package/lib/commonjs/components/ScrollShadow/index.js +82 -0
  132. package/lib/commonjs/components/ScrollShadow/index.js.map +1 -0
  133. package/lib/commonjs/components/ScrollShadow/styles.js +54 -0
  134. package/lib/commonjs/components/ScrollShadow/styles.js.map +1 -0
  135. package/lib/commonjs/components/ScrollShadow/useScrollShadow.js +83 -0
  136. package/lib/commonjs/components/ScrollShadow/useScrollShadow.js.map +1 -0
  137. package/lib/commonjs/components/Select/index.js +111 -39
  138. package/lib/commonjs/components/Select/index.js.map +1 -1
  139. package/lib/commonjs/components/Select/styles.js +26 -21
  140. package/lib/commonjs/components/Select/styles.js.map +1 -1
  141. package/lib/commonjs/components/Skeleton/index.js +39 -0
  142. package/lib/commonjs/components/Skeleton/index.js.map +1 -0
  143. package/lib/commonjs/components/Skeleton/styles.js +9 -0
  144. package/lib/commonjs/components/Skeleton/styles.js.map +1 -0
  145. package/lib/commonjs/components/Slider/getSliderPopupPosition.js +43 -0
  146. package/lib/commonjs/components/Slider/getSliderPopupPosition.js.map +1 -0
  147. package/lib/commonjs/components/Slider/index.js +363 -0
  148. package/lib/commonjs/components/Slider/index.js.map +1 -0
  149. package/lib/commonjs/components/Slider/styles.js +112 -0
  150. package/lib/commonjs/components/Slider/styles.js.map +1 -0
  151. package/lib/commonjs/components/Switch/BaseSwitch.js +23 -13
  152. package/lib/commonjs/components/Switch/BaseSwitch.js.map +1 -1
  153. package/lib/commonjs/components/Switch/BaseSwitch.web.js +25 -21
  154. package/lib/commonjs/components/Switch/BaseSwitch.web.js.map +1 -1
  155. package/lib/commonjs/components/Switch/index.js +34 -3
  156. package/lib/commonjs/components/Switch/index.js.map +1 -1
  157. package/lib/commonjs/components/Tabs/index.js +527 -0
  158. package/lib/commonjs/components/Tabs/index.js.map +1 -0
  159. package/lib/commonjs/components/Tabs/styles.js +333 -0
  160. package/lib/commonjs/components/Tabs/styles.js.map +1 -0
  161. package/lib/commonjs/components/Text/styles.js +2 -2
  162. package/lib/commonjs/components/Text/styles.js.map +1 -1
  163. package/lib/commonjs/components/Textarea/index.js +135 -0
  164. package/lib/commonjs/components/Textarea/index.js.map +1 -0
  165. package/lib/commonjs/components/Textarea/styles.js +49 -0
  166. package/lib/commonjs/components/Textarea/styles.js.map +1 -0
  167. package/lib/commonjs/components/Tile/index.js +150 -77
  168. package/lib/commonjs/components/Tile/index.js.map +1 -1
  169. package/lib/commonjs/components/Tile/styles.js +3 -3
  170. package/lib/commonjs/components/Tile/styles.js.map +1 -1
  171. package/lib/commonjs/components/Toast/animation.js +331 -0
  172. package/lib/commonjs/components/Toast/animation.js.map +1 -0
  173. package/lib/commonjs/components/Toast/hooks.js +67 -0
  174. package/lib/commonjs/components/Toast/hooks.js.map +1 -0
  175. package/lib/commonjs/components/Toast/index.js +508 -0
  176. package/lib/commonjs/components/Toast/index.js.map +1 -0
  177. package/lib/commonjs/components/Toast/styles.js +141 -0
  178. package/lib/commonjs/components/Toast/styles.js.map +1 -0
  179. package/lib/commonjs/components/Toast/types.js +6 -0
  180. package/lib/commonjs/components/Toast/types.js.map +1 -0
  181. package/lib/commonjs/components/VirtualizedList/index.js.map +1 -1
  182. package/lib/commonjs/components/index.js +180 -0
  183. package/lib/commonjs/components/index.js.map +1 -1
  184. package/lib/commonjs/figma/Alert.Button.figma.js +31 -0
  185. package/lib/commonjs/figma/Alert.Button.figma.js.map +1 -0
  186. package/lib/commonjs/figma/Alert.Close.figma.js +24 -0
  187. package/lib/commonjs/figma/Alert.Close.figma.js.map +1 -0
  188. package/lib/commonjs/figma/Alert.Description.figma.js +20 -0
  189. package/lib/commonjs/figma/Alert.Description.figma.js.map +1 -0
  190. package/lib/commonjs/figma/Alert.Title.figma.js +20 -0
  191. package/lib/commonjs/figma/Alert.Title.figma.js.map +1 -0
  192. package/lib/commonjs/figma/Alert.figma.js +42 -0
  193. package/lib/commonjs/figma/Alert.figma.js.map +1 -0
  194. package/lib/commonjs/figma/AlertDialog.Description.figma.js +20 -0
  195. package/lib/commonjs/figma/AlertDialog.Description.figma.js.map +1 -0
  196. package/lib/commonjs/figma/AlertDialog.Footer.figma.js +41 -0
  197. package/lib/commonjs/figma/AlertDialog.Footer.figma.js.map +1 -0
  198. package/lib/commonjs/figma/AlertDialog.Header.figma.js +28 -0
  199. package/lib/commonjs/figma/AlertDialog.Header.figma.js.map +1 -0
  200. package/lib/commonjs/figma/AlertDialog.Text.figma.js +20 -0
  201. package/lib/commonjs/figma/AlertDialog.Text.figma.js.map +1 -0
  202. package/lib/commonjs/figma/AlertDialog.Title.figma.js +27 -0
  203. package/lib/commonjs/figma/AlertDialog.Title.figma.js.map +1 -0
  204. package/lib/commonjs/figma/AlertDialog.figma.js +43 -0
  205. package/lib/commonjs/figma/AlertDialog.figma.js.map +1 -0
  206. package/lib/commonjs/figma/Avatar.figma.js +57 -0
  207. package/lib/commonjs/figma/Avatar.figma.js.map +1 -0
  208. package/lib/commonjs/figma/Badge.Indicator.figma.js +47 -0
  209. package/lib/commonjs/figma/Badge.Indicator.figma.js.map +1 -0
  210. package/lib/commonjs/figma/Badge.figma.js +65 -0
  211. package/lib/commonjs/figma/Badge.figma.js.map +1 -0
  212. package/lib/commonjs/figma/BottomSheet.Footer.figma.js +31 -0
  213. package/lib/commonjs/figma/BottomSheet.Footer.figma.js.map +1 -0
  214. package/lib/commonjs/figma/BottomSheet.Header.figma.js +30 -0
  215. package/lib/commonjs/figma/BottomSheet.Header.figma.js.map +1 -0
  216. package/lib/commonjs/figma/BottomSheet.figma.js +54 -0
  217. package/lib/commonjs/figma/BottomSheet.figma.js.map +1 -0
  218. package/lib/commonjs/figma/Button.figma.js +4 -7
  219. package/lib/commonjs/figma/Button.figma.js.map +1 -1
  220. package/lib/commonjs/figma/CLAUDE.md +30 -0
  221. package/lib/commonjs/figma/Card.Header.figma.js +28 -0
  222. package/lib/commonjs/figma/Card.Header.figma.js.map +1 -0
  223. package/lib/commonjs/figma/Card.Stripe.figma.js +20 -0
  224. package/lib/commonjs/figma/Card.Stripe.figma.js.map +1 -0
  225. package/lib/commonjs/figma/Card.figma.js +45 -0
  226. package/lib/commonjs/figma/Card.figma.js.map +1 -0
  227. package/lib/commonjs/figma/Checkbox.figma.js +55 -0
  228. package/lib/commonjs/figma/Checkbox.figma.js.map +1 -0
  229. package/lib/commonjs/figma/Chip.figma.js +68 -0
  230. package/lib/commonjs/figma/Chip.figma.js.map +1 -0
  231. package/lib/commonjs/figma/Dialog.Description.figma.js +20 -0
  232. package/lib/commonjs/figma/Dialog.Description.figma.js.map +1 -0
  233. package/lib/commonjs/figma/Dialog.Footer.figma.js +30 -0
  234. package/lib/commonjs/figma/Dialog.Footer.figma.js.map +1 -0
  235. package/lib/commonjs/figma/Dialog.Header.figma.js +34 -0
  236. package/lib/commonjs/figma/Dialog.Header.figma.js.map +1 -0
  237. package/lib/commonjs/figma/Dialog.Text.figma.js +20 -0
  238. package/lib/commonjs/figma/Dialog.Text.figma.js.map +1 -0
  239. package/lib/commonjs/figma/Dialog.Title.figma.js +27 -0
  240. package/lib/commonjs/figma/Dialog.Title.figma.js.map +1 -0
  241. package/lib/commonjs/figma/Dialog.figma.js +51 -0
  242. package/lib/commonjs/figma/Dialog.figma.js.map +1 -0
  243. package/lib/commonjs/figma/Divider.figma.js +32 -0
  244. package/lib/commonjs/figma/Divider.figma.js.map +1 -0
  245. package/lib/commonjs/figma/Field.Input.figma.js +57 -0
  246. package/lib/commonjs/figma/Field.Input.figma.js.map +1 -0
  247. package/lib/commonjs/figma/Field.OtpInput.figma.js +52 -0
  248. package/lib/commonjs/figma/Field.OtpInput.figma.js.map +1 -0
  249. package/lib/commonjs/figma/Field.Select.figma.js +57 -0
  250. package/lib/commonjs/figma/Field.Select.figma.js.map +1 -0
  251. package/lib/commonjs/figma/Field.Textarea.figma.js +57 -0
  252. package/lib/commonjs/figma/Field.Textarea.figma.js.map +1 -0
  253. package/lib/commonjs/figma/Heading.figma.js +30 -0
  254. package/lib/commonjs/figma/Heading.figma.js.map +1 -0
  255. package/lib/commonjs/figma/Icon.figma.js +20 -0
  256. package/lib/commonjs/figma/Icon.figma.js.map +1 -0
  257. package/lib/commonjs/figma/IconButton.figma.js +47 -0
  258. package/lib/commonjs/figma/IconButton.figma.js.map +1 -0
  259. package/lib/commonjs/figma/Input.figma.js +52 -0
  260. package/lib/commonjs/figma/Input.figma.js.map +1 -0
  261. package/lib/commonjs/figma/Link.figma.js +30 -0
  262. package/lib/commonjs/figma/Link.figma.js.map +1 -0
  263. package/lib/commonjs/figma/ListItem.Description.figma.js +23 -0
  264. package/lib/commonjs/figma/ListItem.Description.figma.js.map +1 -0
  265. package/lib/commonjs/figma/ListItem.LeadingSlot.figma.js +24 -0
  266. package/lib/commonjs/figma/ListItem.LeadingSlot.figma.js.map +1 -0
  267. package/lib/commonjs/figma/ListItem.Meta.figma.js +23 -0
  268. package/lib/commonjs/figma/ListItem.Meta.figma.js.map +1 -0
  269. package/lib/commonjs/figma/ListItem.SectionHeader.figma.js +24 -0
  270. package/lib/commonjs/figma/ListItem.SectionHeader.figma.js.map +1 -0
  271. package/lib/commonjs/figma/ListItem.Title.figma.js +23 -0
  272. package/lib/commonjs/figma/ListItem.Title.figma.js.map +1 -0
  273. package/lib/commonjs/figma/ListItem.TrailingSlot.figma.js +24 -0
  274. package/lib/commonjs/figma/ListItem.TrailingSlot.figma.js.map +1 -0
  275. package/lib/commonjs/figma/ListItem.figma.js +50 -0
  276. package/lib/commonjs/figma/ListItem.figma.js.map +1 -0
  277. package/lib/commonjs/figma/OtpInput.Cell.figma.js +55 -0
  278. package/lib/commonjs/figma/OtpInput.Cell.figma.js.map +1 -0
  279. package/lib/commonjs/figma/OtpInput.figma.js +42 -0
  280. package/lib/commonjs/figma/OtpInput.figma.js.map +1 -0
  281. package/lib/commonjs/figma/ProgressSegmented.figma.js +39 -0
  282. package/lib/commonjs/figma/ProgressSegmented.figma.js.map +1 -0
  283. package/lib/commonjs/figma/QuickActionButton.figma.js +38 -0
  284. package/lib/commonjs/figma/QuickActionButton.figma.js.map +1 -0
  285. package/lib/commonjs/figma/Radio.figma.js +8 -6
  286. package/lib/commonjs/figma/Radio.figma.js.map +1 -1
  287. package/lib/commonjs/figma/Select.figma.js +53 -0
  288. package/lib/commonjs/figma/Select.figma.js.map +1 -0
  289. package/lib/commonjs/figma/Text.figma.js +32 -0
  290. package/lib/commonjs/figma/Text.figma.js.map +1 -0
  291. package/lib/commonjs/figma/Textarea.figma.js +47 -0
  292. package/lib/commonjs/figma/Textarea.figma.js.map +1 -0
  293. package/lib/commonjs/figma/icons.figma.batch.js +27 -0
  294. package/lib/commonjs/figma/icons.figma.batch.js.map +1 -0
  295. package/lib/commonjs/figma/icons.figma.batch.json +17705 -0
  296. package/lib/commonjs/globals.d.js +2 -0
  297. package/lib/commonjs/globals.d.js.map +1 -0
  298. package/lib/commonjs/hooks/index.js +19 -0
  299. package/lib/commonjs/hooks/index.js.map +1 -0
  300. package/lib/commonjs/hooks/useForgeBottomTabScreenOptions.js +246 -0
  301. package/lib/commonjs/hooks/useForgeBottomTabScreenOptions.js.map +1 -0
  302. package/lib/commonjs/index.js +47 -0
  303. package/lib/commonjs/index.js.map +1 -1
  304. package/lib/commonjs/metro/withCdxMetroConfig.js +7 -18
  305. package/lib/commonjs/metro/withCdxMetroConfig.js.map +1 -1
  306. package/lib/commonjs/metro/withForgeMetroConfig.js +24 -0
  307. package/lib/commonjs/metro/withForgeMetroConfig.js.map +1 -0
  308. package/lib/commonjs/navigation/forgeTabIcon.js +43 -0
  309. package/lib/commonjs/navigation/forgeTabIcon.js.map +1 -0
  310. package/lib/commonjs/navigation/forgeTabIcon.native.js +35 -0
  311. package/lib/commonjs/navigation/forgeTabIcon.native.js.map +1 -0
  312. package/lib/commonjs/navigation/index.js +13 -0
  313. package/lib/commonjs/navigation/index.js.map +1 -0
  314. package/lib/commonjs/navigation/types.js +38 -0
  315. package/lib/commonjs/navigation/types.js.map +1 -0
  316. package/lib/commonjs/providers/animation-settings/index.js +31 -0
  317. package/lib/commonjs/providers/animation-settings/index.js.map +1 -0
  318. package/lib/commonjs/providers/animation-settings/provider.js +59 -0
  319. package/lib/commonjs/providers/animation-settings/provider.js.map +1 -0
  320. package/lib/commonjs/providers/animation-settings/types.js +6 -0
  321. package/lib/commonjs/providers/animation-settings/types.js.map +1 -0
  322. package/lib/commonjs/providers/forge-design/index.js +29 -0
  323. package/lib/commonjs/providers/forge-design/index.js.map +1 -0
  324. package/lib/commonjs/providers/forge-design/provider.js +71 -0
  325. package/lib/commonjs/providers/forge-design/provider.js.map +1 -0
  326. package/lib/commonjs/providers/forge-design/types.js +6 -0
  327. package/lib/commonjs/providers/forge-design/types.js.map +1 -0
  328. package/lib/commonjs/providers/text-component/index.js +28 -0
  329. package/lib/commonjs/providers/text-component/index.js.map +1 -0
  330. package/lib/commonjs/providers/text-component/provider.js +11 -0
  331. package/lib/commonjs/providers/text-component/provider.js.map +1 -0
  332. package/lib/commonjs/providers/text-component/types.js +6 -0
  333. package/lib/commonjs/providers/text-component/types.js.map +1 -0
  334. package/lib/commonjs/providers/toast/index.js +33 -0
  335. package/lib/commonjs/providers/toast/index.js.map +1 -0
  336. package/lib/commonjs/providers/toast/insets-container.js +166 -0
  337. package/lib/commonjs/providers/toast/insets-container.js.map +1 -0
  338. package/lib/commonjs/providers/toast/lifecycle.context.js +36 -0
  339. package/lib/commonjs/providers/toast/lifecycle.context.js.map +1 -0
  340. package/lib/commonjs/providers/toast/provider.js +508 -0
  341. package/lib/commonjs/providers/toast/provider.js.map +1 -0
  342. package/lib/commonjs/providers/toast/reducer.js +46 -0
  343. package/lib/commonjs/providers/toast/reducer.js.map +1 -0
  344. package/lib/commonjs/providers/toast/toast-config.context.js +29 -0
  345. package/lib/commonjs/providers/toast/toast-config.context.js.map +1 -0
  346. package/lib/commonjs/providers/toast/toast-item-renderer.js +43 -0
  347. package/lib/commonjs/providers/toast/toast-item-renderer.js.map +1 -0
  348. package/lib/commonjs/providers/toast/types.js +6 -0
  349. package/lib/commonjs/providers/toast/types.js.map +1 -0
  350. package/lib/commonjs/styles/constants.js +16 -0
  351. package/lib/commonjs/styles/constants.js.map +1 -0
  352. package/lib/commonjs/styles.css +0 -5
  353. package/lib/commonjs/utils/positionToDataIcon.js +41 -0
  354. package/lib/commonjs/utils/positionToDataIcon.js.map +1 -0
  355. package/lib/module/animation/hooks/index.js +7 -0
  356. package/lib/module/animation/hooks/index.js.map +1 -0
  357. package/lib/module/animation/hooks/useCombinedAnimationDisabledState.js +47 -0
  358. package/lib/module/animation/hooks/useCombinedAnimationDisabledState.js.map +1 -0
  359. package/lib/module/animation/hooks/usePopupDialogContentAnimation.js +171 -0
  360. package/lib/module/animation/hooks/usePopupDialogContentAnimation.js.map +1 -0
  361. package/lib/module/animation/hooks/usePopupOverlayAnimation.js +65 -0
  362. package/lib/module/animation/hooks/usePopupOverlayAnimation.js.map +1 -0
  363. package/lib/module/animation/hooks/usePopupRootAnimation.js +22 -0
  364. package/lib/module/animation/hooks/usePopupRootAnimation.js.map +1 -0
  365. package/lib/module/animation/index.js +6 -0
  366. package/lib/module/animation/index.js.map +1 -0
  367. package/lib/module/animation/types.js +4 -0
  368. package/lib/module/animation/types.js.map +1 -0
  369. package/lib/module/animation/utils.js +212 -0
  370. package/lib/module/animation/utils.js.map +1 -0
  371. package/lib/module/components/Alert/index.js +259 -0
  372. package/lib/module/components/Alert/index.js.map +1 -0
  373. package/lib/module/components/Alert/styles.js +84 -0
  374. package/lib/module/components/Alert/styles.js.map +1 -0
  375. package/lib/module/components/AlertDialog/index.js +33 -16
  376. package/lib/module/components/AlertDialog/index.js.map +1 -1
  377. package/lib/module/components/Avatar/index.js +138 -29
  378. package/lib/module/components/Avatar/index.js.map +1 -1
  379. package/lib/module/components/Avatar/styles.js +36 -29
  380. package/lib/module/components/Avatar/styles.js.map +1 -1
  381. package/lib/module/components/Badge/index.js +83 -0
  382. package/lib/module/components/Badge/index.js.map +1 -0
  383. package/lib/module/components/Badge/styles.js +123 -0
  384. package/lib/module/components/Badge/styles.js.map +1 -0
  385. package/lib/module/components/BottomSheet/index.js +80 -32
  386. package/lib/module/components/BottomSheet/index.js.map +1 -1
  387. package/lib/module/components/BottomSheet/styles.js +7 -42
  388. package/lib/module/components/BottomSheet/styles.js.map +1 -1
  389. package/lib/module/components/Box/Box.js +1 -11
  390. package/lib/module/components/Box/Box.js.map +1 -1
  391. package/lib/module/components/Breadcrumbs/index.js +215 -0
  392. package/lib/module/components/Breadcrumbs/index.js.map +1 -0
  393. package/lib/module/components/Breadcrumbs/styles.js +34 -0
  394. package/lib/module/components/Breadcrumbs/styles.js.map +1 -0
  395. package/lib/module/components/Button/index.js +146 -33
  396. package/lib/module/components/Button/index.js.map +1 -1
  397. package/lib/module/components/Button/styles.js +94 -29
  398. package/lib/module/components/Button/styles.js.map +1 -1
  399. package/lib/module/components/CLAUDE.md +195 -0
  400. package/lib/module/components/Card/index.js +77 -18
  401. package/lib/module/components/Card/index.js.map +1 -1
  402. package/lib/module/components/Card/styles.js +16 -2
  403. package/lib/module/components/Card/styles.js.map +1 -1
  404. package/lib/module/components/Carousel/index.js +147 -0
  405. package/lib/module/components/Carousel/index.js.map +1 -0
  406. package/lib/module/components/Carousel/paginationNavigation.js +31 -0
  407. package/lib/module/components/Carousel/paginationNavigation.js.map +1 -0
  408. package/lib/module/components/Carousel/styles.js +18 -0
  409. package/lib/module/components/Carousel/styles.js.map +1 -0
  410. package/lib/module/components/Checkbox/index.js +93 -52
  411. package/lib/module/components/Checkbox/index.js.map +1 -1
  412. package/lib/module/components/Checkbox/styles.js +45 -48
  413. package/lib/module/components/Checkbox/styles.js.map +1 -1
  414. package/lib/module/components/Chip/index.js +119 -22
  415. package/lib/module/components/Chip/index.js.map +1 -1
  416. package/lib/module/components/Chip/styles.js +179 -22
  417. package/lib/module/components/Chip/styles.js.map +1 -1
  418. package/lib/module/components/CurrencyInput/index.js +154 -0
  419. package/lib/module/components/CurrencyInput/index.js.map +1 -0
  420. package/lib/module/components/CurrencyInput/styles.js +27 -0
  421. package/lib/module/components/CurrencyInput/styles.js.map +1 -0
  422. package/lib/module/components/Dialog/animation.js +7 -0
  423. package/lib/module/components/Dialog/animation.js.map +1 -0
  424. package/lib/module/components/Dialog/index.js +409 -74
  425. package/lib/module/components/Dialog/index.js.map +1 -1
  426. package/lib/module/components/Dialog/styles.js +65 -15
  427. package/lib/module/components/Dialog/styles.js.map +1 -1
  428. package/lib/module/components/Divider/index.js +94 -0
  429. package/lib/module/components/Divider/index.js.map +1 -0
  430. package/lib/module/components/Divider/styles.js +71 -0
  431. package/lib/module/components/Divider/styles.js.map +1 -0
  432. package/lib/module/components/Field/index.js +81 -32
  433. package/lib/module/components/Field/index.js.map +1 -1
  434. package/lib/module/components/Field/styles.js +5 -5
  435. package/lib/module/components/Field/styles.js.map +1 -1
  436. package/lib/module/components/Form/index.js +7 -14
  437. package/lib/module/components/Form/index.js.map +1 -1
  438. package/lib/module/components/Heading/styles.js +1 -1
  439. package/lib/module/components/Heading/styles.js.map +1 -1
  440. package/lib/module/components/Icon/index.js +12 -5
  441. package/lib/module/components/Icon/index.js.map +1 -1
  442. package/lib/module/components/IconButton/index.js +24 -37
  443. package/lib/module/components/IconButton/index.js.map +1 -1
  444. package/lib/module/components/IconButton/styles.js +136 -11
  445. package/lib/module/components/IconButton/styles.js.map +1 -1
  446. package/lib/module/components/Input/index.js +53 -23
  447. package/lib/module/components/Input/index.js.map +1 -1
  448. package/lib/module/components/Input/styles.js +20 -7
  449. package/lib/module/components/Input/styles.js.map +1 -1
  450. package/lib/module/components/InsuranceDisclosure/index.js +52 -0
  451. package/lib/module/components/InsuranceDisclosure/index.js.map +1 -0
  452. package/lib/module/components/InsuranceDisclosure/styles.js +7 -0
  453. package/lib/module/components/InsuranceDisclosure/styles.js.map +1 -0
  454. package/lib/module/components/Link/index.js +38 -11
  455. package/lib/module/components/Link/index.js.map +1 -1
  456. package/lib/module/components/Link/styles.js +53 -7
  457. package/lib/module/components/Link/styles.js.map +1 -1
  458. package/lib/module/components/ListItem/index.js +137 -84
  459. package/lib/module/components/ListItem/index.js.map +1 -1
  460. package/lib/module/components/ListItem/styles.js +28 -56
  461. package/lib/module/components/ListItem/styles.js.map +1 -1
  462. package/lib/module/components/OtpInput/index.js +114 -36
  463. package/lib/module/components/OtpInput/index.js.map +1 -1
  464. package/lib/module/components/OtpInput/styles.js +9 -7
  465. package/lib/module/components/OtpInput/styles.js.map +1 -1
  466. package/lib/module/components/ProgressBar/index.js +9 -14
  467. package/lib/module/components/ProgressBar/index.js.map +1 -1
  468. package/lib/module/components/ProgressBar/styles.js +1 -1
  469. package/lib/module/components/ProgressBar/styles.js.map +1 -1
  470. package/lib/module/components/ProgressSegmented/index.js +25 -11
  471. package/lib/module/components/ProgressSegmented/index.js.map +1 -1
  472. package/lib/module/components/ProgressSegmented/styles.js +2 -2
  473. package/lib/module/components/ProgressSegmented/styles.js.map +1 -1
  474. package/lib/module/components/QuickActionButton/index.js +129 -0
  475. package/lib/module/components/QuickActionButton/index.js.map +1 -0
  476. package/lib/module/components/QuickActionButton/styles.js +13 -0
  477. package/lib/module/components/QuickActionButton/styles.js.map +1 -0
  478. package/lib/module/components/Radio/index.js +69 -55
  479. package/lib/module/components/Radio/index.js.map +1 -1
  480. package/lib/module/components/Radio/styles.js +20 -8
  481. package/lib/module/components/Radio/styles.js.map +1 -1
  482. package/lib/module/components/ScopedTheme/index.js +19 -0
  483. package/lib/module/components/ScopedTheme/index.js.map +1 -0
  484. package/lib/module/components/ScrollShadow/index.js +78 -0
  485. package/lib/module/components/ScrollShadow/index.js.map +1 -0
  486. package/lib/module/components/ScrollShadow/styles.js +50 -0
  487. package/lib/module/components/ScrollShadow/styles.js.map +1 -0
  488. package/lib/module/components/ScrollShadow/useScrollShadow.js +79 -0
  489. package/lib/module/components/ScrollShadow/useScrollShadow.js.map +1 -0
  490. package/lib/module/components/Select/index.js +117 -45
  491. package/lib/module/components/Select/index.js.map +1 -1
  492. package/lib/module/components/Select/styles.js +26 -21
  493. package/lib/module/components/Select/styles.js.map +1 -1
  494. package/lib/module/components/Skeleton/index.js +34 -0
  495. package/lib/module/components/Skeleton/index.js.map +1 -0
  496. package/lib/module/components/Skeleton/styles.js +5 -0
  497. package/lib/module/components/Skeleton/styles.js.map +1 -0
  498. package/lib/module/components/Slider/getSliderPopupPosition.js +38 -0
  499. package/lib/module/components/Slider/getSliderPopupPosition.js.map +1 -0
  500. package/lib/module/components/Slider/index.js +359 -0
  501. package/lib/module/components/Slider/index.js.map +1 -0
  502. package/lib/module/components/Slider/styles.js +108 -0
  503. package/lib/module/components/Slider/styles.js.map +1 -0
  504. package/lib/module/components/Switch/BaseSwitch.js +24 -14
  505. package/lib/module/components/Switch/BaseSwitch.js.map +1 -1
  506. package/lib/module/components/Switch/BaseSwitch.web.js +26 -22
  507. package/lib/module/components/Switch/BaseSwitch.web.js.map +1 -1
  508. package/lib/module/components/Switch/index.js +35 -4
  509. package/lib/module/components/Switch/index.js.map +1 -1
  510. package/lib/module/components/Tabs/index.js +522 -0
  511. package/lib/module/components/Tabs/index.js.map +1 -0
  512. package/lib/module/components/Tabs/styles.js +330 -0
  513. package/lib/module/components/Tabs/styles.js.map +1 -0
  514. package/lib/module/components/Text/styles.js +2 -2
  515. package/lib/module/components/Text/styles.js.map +1 -1
  516. package/lib/module/components/Textarea/index.js +132 -0
  517. package/lib/module/components/Textarea/index.js.map +1 -0
  518. package/lib/module/components/Textarea/styles.js +45 -0
  519. package/lib/module/components/Textarea/styles.js.map +1 -0
  520. package/lib/module/components/Tile/index.js +155 -83
  521. package/lib/module/components/Tile/index.js.map +1 -1
  522. package/lib/module/components/Tile/styles.js +2 -2
  523. package/lib/module/components/Tile/styles.js.map +1 -1
  524. package/lib/module/components/Toast/animation.js +326 -0
  525. package/lib/module/components/Toast/animation.js.map +1 -0
  526. package/lib/module/components/Toast/hooks.js +62 -0
  527. package/lib/module/components/Toast/hooks.js.map +1 -0
  528. package/lib/module/components/Toast/index.js +502 -0
  529. package/lib/module/components/Toast/index.js.map +1 -0
  530. package/lib/module/components/Toast/styles.js +138 -0
  531. package/lib/module/components/Toast/styles.js.map +1 -0
  532. package/lib/module/components/Toast/types.js +4 -0
  533. package/lib/module/components/Toast/types.js.map +1 -0
  534. package/lib/module/components/VirtualizedList/index.js.map +1 -1
  535. package/lib/module/components/index.js +15 -0
  536. package/lib/module/components/index.js.map +1 -1
  537. package/lib/module/figma/Alert.Button.figma.js +25 -0
  538. package/lib/module/figma/Alert.Button.figma.js.map +1 -0
  539. package/lib/module/figma/Alert.Close.figma.js +18 -0
  540. package/lib/module/figma/Alert.Close.figma.js.map +1 -0
  541. package/lib/module/figma/Alert.Description.figma.js +14 -0
  542. package/lib/module/figma/Alert.Description.figma.js.map +1 -0
  543. package/lib/module/figma/Alert.Title.figma.js +14 -0
  544. package/lib/module/figma/Alert.Title.figma.js.map +1 -0
  545. package/lib/module/figma/Alert.figma.js +36 -0
  546. package/lib/module/figma/Alert.figma.js.map +1 -0
  547. package/lib/module/figma/AlertDialog.Description.figma.js +14 -0
  548. package/lib/module/figma/AlertDialog.Description.figma.js.map +1 -0
  549. package/lib/module/figma/AlertDialog.Footer.figma.js +35 -0
  550. package/lib/module/figma/AlertDialog.Footer.figma.js.map +1 -0
  551. package/lib/module/figma/AlertDialog.Header.figma.js +22 -0
  552. package/lib/module/figma/AlertDialog.Header.figma.js.map +1 -0
  553. package/lib/module/figma/AlertDialog.Text.figma.js +14 -0
  554. package/lib/module/figma/AlertDialog.Text.figma.js.map +1 -0
  555. package/lib/module/figma/AlertDialog.Title.figma.js +21 -0
  556. package/lib/module/figma/AlertDialog.Title.figma.js.map +1 -0
  557. package/lib/module/figma/AlertDialog.figma.js +37 -0
  558. package/lib/module/figma/AlertDialog.figma.js.map +1 -0
  559. package/lib/module/figma/Avatar.figma.js +51 -0
  560. package/lib/module/figma/Avatar.figma.js.map +1 -0
  561. package/lib/module/figma/Badge.Indicator.figma.js +41 -0
  562. package/lib/module/figma/Badge.Indicator.figma.js.map +1 -0
  563. package/lib/module/figma/Badge.figma.js +59 -0
  564. package/lib/module/figma/Badge.figma.js.map +1 -0
  565. package/lib/module/figma/BottomSheet.Footer.figma.js +25 -0
  566. package/lib/module/figma/BottomSheet.Footer.figma.js.map +1 -0
  567. package/lib/module/figma/BottomSheet.Header.figma.js +24 -0
  568. package/lib/module/figma/BottomSheet.Header.figma.js.map +1 -0
  569. package/lib/module/figma/BottomSheet.figma.js +48 -0
  570. package/lib/module/figma/BottomSheet.figma.js.map +1 -0
  571. package/lib/module/figma/Button.figma.js +4 -7
  572. package/lib/module/figma/Button.figma.js.map +1 -1
  573. package/lib/module/figma/CLAUDE.md +30 -0
  574. package/lib/module/figma/Card.Header.figma.js +22 -0
  575. package/lib/module/figma/Card.Header.figma.js.map +1 -0
  576. package/lib/module/figma/Card.Stripe.figma.js +15 -0
  577. package/lib/module/figma/Card.Stripe.figma.js.map +1 -0
  578. package/lib/module/figma/Card.figma.js +39 -0
  579. package/lib/module/figma/Card.figma.js.map +1 -0
  580. package/lib/module/figma/Checkbox.figma.js +49 -0
  581. package/lib/module/figma/Checkbox.figma.js.map +1 -0
  582. package/lib/module/figma/Chip.figma.js +62 -0
  583. package/lib/module/figma/Chip.figma.js.map +1 -0
  584. package/lib/module/figma/Dialog.Description.figma.js +14 -0
  585. package/lib/module/figma/Dialog.Description.figma.js.map +1 -0
  586. package/lib/module/figma/Dialog.Footer.figma.js +24 -0
  587. package/lib/module/figma/Dialog.Footer.figma.js.map +1 -0
  588. package/lib/module/figma/Dialog.Header.figma.js +28 -0
  589. package/lib/module/figma/Dialog.Header.figma.js.map +1 -0
  590. package/lib/module/figma/Dialog.Text.figma.js +14 -0
  591. package/lib/module/figma/Dialog.Text.figma.js.map +1 -0
  592. package/lib/module/figma/Dialog.Title.figma.js +21 -0
  593. package/lib/module/figma/Dialog.Title.figma.js.map +1 -0
  594. package/lib/module/figma/Dialog.figma.js +45 -0
  595. package/lib/module/figma/Dialog.figma.js.map +1 -0
  596. package/lib/module/figma/Divider.figma.js +26 -0
  597. package/lib/module/figma/Divider.figma.js.map +1 -0
  598. package/lib/module/figma/Field.Input.figma.js +51 -0
  599. package/lib/module/figma/Field.Input.figma.js.map +1 -0
  600. package/lib/module/figma/Field.OtpInput.figma.js +46 -0
  601. package/lib/module/figma/Field.OtpInput.figma.js.map +1 -0
  602. package/lib/module/figma/Field.Select.figma.js +51 -0
  603. package/lib/module/figma/Field.Select.figma.js.map +1 -0
  604. package/lib/module/figma/Field.Textarea.figma.js +51 -0
  605. package/lib/module/figma/Field.Textarea.figma.js.map +1 -0
  606. package/lib/module/figma/Heading.figma.js +24 -0
  607. package/lib/module/figma/Heading.figma.js.map +1 -0
  608. package/lib/module/figma/Icon.figma.js +14 -0
  609. package/lib/module/figma/Icon.figma.js.map +1 -0
  610. package/lib/module/figma/IconButton.figma.js +41 -0
  611. package/lib/module/figma/IconButton.figma.js.map +1 -0
  612. package/lib/module/figma/Input.figma.js +46 -0
  613. package/lib/module/figma/Input.figma.js.map +1 -0
  614. package/lib/module/figma/Link.figma.js +24 -0
  615. package/lib/module/figma/Link.figma.js.map +1 -0
  616. package/lib/module/figma/ListItem.Description.figma.js +17 -0
  617. package/lib/module/figma/ListItem.Description.figma.js.map +1 -0
  618. package/lib/module/figma/ListItem.LeadingSlot.figma.js +18 -0
  619. package/lib/module/figma/ListItem.LeadingSlot.figma.js.map +1 -0
  620. package/lib/module/figma/ListItem.Meta.figma.js +17 -0
  621. package/lib/module/figma/ListItem.Meta.figma.js.map +1 -0
  622. package/lib/module/figma/ListItem.SectionHeader.figma.js +18 -0
  623. package/lib/module/figma/ListItem.SectionHeader.figma.js.map +1 -0
  624. package/lib/module/figma/ListItem.Title.figma.js +17 -0
  625. package/lib/module/figma/ListItem.Title.figma.js.map +1 -0
  626. package/lib/module/figma/ListItem.TrailingSlot.figma.js +18 -0
  627. package/lib/module/figma/ListItem.TrailingSlot.figma.js.map +1 -0
  628. package/lib/module/figma/ListItem.figma.js +44 -0
  629. package/lib/module/figma/ListItem.figma.js.map +1 -0
  630. package/lib/module/figma/OtpInput.Cell.figma.js +49 -0
  631. package/lib/module/figma/OtpInput.Cell.figma.js.map +1 -0
  632. package/lib/module/figma/OtpInput.figma.js +36 -0
  633. package/lib/module/figma/OtpInput.figma.js.map +1 -0
  634. package/lib/module/figma/ProgressSegmented.figma.js +33 -0
  635. package/lib/module/figma/ProgressSegmented.figma.js.map +1 -0
  636. package/lib/module/figma/QuickActionButton.figma.js +32 -0
  637. package/lib/module/figma/QuickActionButton.figma.js.map +1 -0
  638. package/lib/module/figma/Radio.figma.js +8 -6
  639. package/lib/module/figma/Radio.figma.js.map +1 -1
  640. package/lib/module/figma/Select.figma.js +47 -0
  641. package/lib/module/figma/Select.figma.js.map +1 -0
  642. package/lib/module/figma/Text.figma.js +26 -0
  643. package/lib/module/figma/Text.figma.js.map +1 -0
  644. package/lib/module/figma/Textarea.figma.js +41 -0
  645. package/lib/module/figma/Textarea.figma.js.map +1 -0
  646. package/lib/module/figma/icons.figma.batch.js +22 -0
  647. package/lib/module/figma/icons.figma.batch.js.map +1 -0
  648. package/lib/module/figma/icons.figma.batch.json +17705 -0
  649. package/lib/module/globals.d.js +2 -0
  650. package/lib/module/globals.d.js.map +1 -0
  651. package/lib/module/hooks/index.js +4 -0
  652. package/lib/module/hooks/index.js.map +1 -0
  653. package/lib/module/hooks/useForgeBottomTabScreenOptions.js +242 -0
  654. package/lib/module/hooks/useForgeBottomTabScreenOptions.js.map +1 -0
  655. package/lib/module/index.js +4 -0
  656. package/lib/module/index.js.map +1 -1
  657. package/lib/module/metro/withCdxMetroConfig.js +3 -17
  658. package/lib/module/metro/withCdxMetroConfig.js.map +1 -1
  659. package/lib/module/metro/withForgeMetroConfig.js +20 -0
  660. package/lib/module/metro/withForgeMetroConfig.js.map +1 -0
  661. package/lib/module/navigation/forgeTabIcon.js +39 -0
  662. package/lib/module/navigation/forgeTabIcon.js.map +1 -0
  663. package/lib/module/navigation/forgeTabIcon.native.js +31 -0
  664. package/lib/module/navigation/forgeTabIcon.native.js.map +1 -0
  665. package/lib/module/navigation/index.js +4 -0
  666. package/lib/module/navigation/index.js.map +1 -0
  667. package/lib/module/navigation/types.js +36 -0
  668. package/lib/module/navigation/types.js.map +1 -0
  669. package/lib/module/providers/animation-settings/index.js +4 -0
  670. package/lib/module/providers/animation-settings/index.js.map +1 -0
  671. package/lib/module/providers/animation-settings/provider.js +52 -0
  672. package/lib/module/providers/animation-settings/provider.js.map +1 -0
  673. package/lib/module/providers/animation-settings/types.js +4 -0
  674. package/lib/module/providers/animation-settings/types.js.map +1 -0
  675. package/lib/module/providers/forge-design/index.js +5 -0
  676. package/lib/module/providers/forge-design/index.js.map +1 -0
  677. package/lib/module/providers/forge-design/provider.js +66 -0
  678. package/lib/module/providers/forge-design/provider.js.map +1 -0
  679. package/lib/module/providers/forge-design/types.js +4 -0
  680. package/lib/module/providers/forge-design/types.js.map +1 -0
  681. package/lib/module/providers/text-component/index.js +5 -0
  682. package/lib/module/providers/text-component/index.js.map +1 -0
  683. package/lib/module/providers/text-component/provider.js +6 -0
  684. package/lib/module/providers/text-component/provider.js.map +1 -0
  685. package/lib/module/providers/text-component/types.js +4 -0
  686. package/lib/module/providers/text-component/types.js.map +1 -0
  687. package/lib/module/providers/toast/index.js +6 -0
  688. package/lib/module/providers/toast/index.js.map +1 -0
  689. package/lib/module/providers/toast/insets-container.js +162 -0
  690. package/lib/module/providers/toast/insets-container.js.map +1 -0
  691. package/lib/module/providers/toast/lifecycle.context.js +32 -0
  692. package/lib/module/providers/toast/lifecycle.context.js.map +1 -0
  693. package/lib/module/providers/toast/provider.js +503 -0
  694. package/lib/module/providers/toast/provider.js.map +1 -0
  695. package/lib/module/providers/toast/reducer.js +42 -0
  696. package/lib/module/providers/toast/reducer.js.map +1 -0
  697. package/lib/module/providers/toast/toast-config.context.js +25 -0
  698. package/lib/module/providers/toast/toast-config.context.js.map +1 -0
  699. package/lib/module/providers/toast/toast-item-renderer.js +39 -0
  700. package/lib/module/providers/toast/toast-item-renderer.js.map +1 -0
  701. package/lib/module/providers/toast/types.js +4 -0
  702. package/lib/module/providers/toast/types.js.map +1 -0
  703. package/lib/module/styles/constants.js +12 -0
  704. package/lib/module/styles/constants.js.map +1 -0
  705. package/lib/module/styles.css +0 -5
  706. package/lib/module/utils/positionToDataIcon.js +38 -0
  707. package/lib/module/utils/positionToDataIcon.js.map +1 -0
  708. package/lib/typescript/animation/hooks/index.d.ts +5 -0
  709. package/lib/typescript/animation/hooks/index.d.ts.map +1 -0
  710. package/lib/typescript/animation/hooks/useCombinedAnimationDisabledState.d.ts +22 -0
  711. package/lib/typescript/animation/hooks/useCombinedAnimationDisabledState.d.ts.map +1 -0
  712. package/lib/typescript/animation/hooks/usePopupDialogContentAnimation.d.ts +47 -0
  713. package/lib/typescript/animation/hooks/usePopupDialogContentAnimation.d.ts.map +1 -0
  714. package/lib/typescript/animation/hooks/usePopupOverlayAnimation.d.ts +29 -0
  715. package/lib/typescript/animation/hooks/usePopupOverlayAnimation.d.ts.map +1 -0
  716. package/lib/typescript/animation/hooks/usePopupRootAnimation.d.ts +16 -0
  717. package/lib/typescript/animation/hooks/usePopupRootAnimation.d.ts.map +1 -0
  718. package/lib/typescript/animation/index.d.ts +4 -0
  719. package/lib/typescript/animation/index.d.ts.map +1 -0
  720. package/lib/typescript/animation/types.d.ts +105 -0
  721. package/lib/typescript/animation/types.d.ts.map +1 -0
  722. package/lib/typescript/animation/utils.d.ts +120 -0
  723. package/lib/typescript/animation/utils.d.ts.map +1 -0
  724. package/lib/typescript/components/Alert/index.d.ts +67 -0
  725. package/lib/typescript/components/Alert/index.d.ts.map +1 -0
  726. package/lib/typescript/components/Alert/styles.d.ts +19 -0
  727. package/lib/typescript/components/Alert/styles.d.ts.map +1 -0
  728. package/lib/typescript/components/AlertDialog/index.d.ts +10 -7
  729. package/lib/typescript/components/AlertDialog/index.d.ts.map +1 -1
  730. package/lib/typescript/components/Avatar/index.d.ts +14 -2
  731. package/lib/typescript/components/Avatar/index.d.ts.map +1 -1
  732. package/lib/typescript/components/Avatar/styles.d.ts +4 -4
  733. package/lib/typescript/components/Avatar/styles.d.ts.map +1 -1
  734. package/lib/typescript/components/Badge/index.d.ts +14 -0
  735. package/lib/typescript/components/Badge/index.d.ts.map +1 -0
  736. package/lib/typescript/components/Badge/styles.d.ts +18 -0
  737. package/lib/typescript/components/Badge/styles.d.ts.map +1 -0
  738. package/lib/typescript/components/BottomSheet/index.d.ts +2 -2
  739. package/lib/typescript/components/BottomSheet/index.d.ts.map +1 -1
  740. package/lib/typescript/components/BottomSheet/styles.d.ts +4 -8
  741. package/lib/typescript/components/BottomSheet/styles.d.ts.map +1 -1
  742. package/lib/typescript/components/Box/Box.d.ts +0 -3
  743. package/lib/typescript/components/Box/Box.d.ts.map +1 -1
  744. package/lib/typescript/components/Breadcrumbs/index.d.ts +28 -0
  745. package/lib/typescript/components/Breadcrumbs/index.d.ts.map +1 -0
  746. package/lib/typescript/components/Breadcrumbs/styles.d.ts +11 -0
  747. package/lib/typescript/components/Breadcrumbs/styles.d.ts.map +1 -0
  748. package/lib/typescript/components/Button/index.d.ts +81 -9
  749. package/lib/typescript/components/Button/index.d.ts.map +1 -1
  750. package/lib/typescript/components/Button/styles.d.ts +10 -7
  751. package/lib/typescript/components/Button/styles.d.ts.map +1 -1
  752. package/lib/typescript/components/Card/index.d.ts +12 -2
  753. package/lib/typescript/components/Card/index.d.ts.map +1 -1
  754. package/lib/typescript/components/Card/styles.d.ts +5 -1
  755. package/lib/typescript/components/Card/styles.d.ts.map +1 -1
  756. package/lib/typescript/components/Carousel/index.d.ts +70 -0
  757. package/lib/typescript/components/Carousel/index.d.ts.map +1 -0
  758. package/lib/typescript/components/Carousel/paginationNavigation.d.ts +12 -0
  759. package/lib/typescript/components/Carousel/paginationNavigation.d.ts.map +1 -0
  760. package/lib/typescript/components/Carousel/styles.d.ts +8 -0
  761. package/lib/typescript/components/Carousel/styles.d.ts.map +1 -0
  762. package/lib/typescript/components/Checkbox/index.d.ts +4 -3
  763. package/lib/typescript/components/Checkbox/index.d.ts.map +1 -1
  764. package/lib/typescript/components/Checkbox/styles.d.ts +4 -14
  765. package/lib/typescript/components/Checkbox/styles.d.ts.map +1 -1
  766. package/lib/typescript/components/Chip/index.d.ts +51 -8
  767. package/lib/typescript/components/Chip/index.d.ts.map +1 -1
  768. package/lib/typescript/components/Chip/styles.d.ts +12 -4
  769. package/lib/typescript/components/Chip/styles.d.ts.map +1 -1
  770. package/lib/typescript/components/CurrencyInput/index.d.ts +15 -0
  771. package/lib/typescript/components/CurrencyInput/index.d.ts.map +1 -0
  772. package/lib/typescript/components/CurrencyInput/styles.d.ts +9 -0
  773. package/lib/typescript/components/CurrencyInput/styles.d.ts.map +1 -0
  774. package/lib/typescript/components/Dialog/animation.d.ts +11 -0
  775. package/lib/typescript/components/Dialog/animation.d.ts.map +1 -0
  776. package/lib/typescript/components/Dialog/index.d.ts +43 -13
  777. package/lib/typescript/components/Dialog/index.d.ts.map +1 -1
  778. package/lib/typescript/components/Dialog/styles.d.ts +17 -5
  779. package/lib/typescript/components/Dialog/styles.d.ts.map +1 -1
  780. package/lib/typescript/components/Divider/index.d.ts +21 -0
  781. package/lib/typescript/components/Divider/index.d.ts.map +1 -0
  782. package/lib/typescript/components/Divider/styles.d.ts +12 -0
  783. package/lib/typescript/components/Divider/styles.d.ts.map +1 -0
  784. package/lib/typescript/components/Field/index.d.ts +14 -7
  785. package/lib/typescript/components/Field/index.d.ts.map +1 -1
  786. package/lib/typescript/components/Field/styles.d.ts.map +1 -1
  787. package/lib/typescript/components/Form/index.d.ts +4 -4
  788. package/lib/typescript/components/Form/index.d.ts.map +1 -1
  789. package/lib/typescript/components/Heading/styles.d.ts +1 -1
  790. package/lib/typescript/components/Icon/index.d.ts +5 -5
  791. package/lib/typescript/components/Icon/index.d.ts.map +1 -1
  792. package/lib/typescript/components/IconButton/index.d.ts +14 -4
  793. package/lib/typescript/components/IconButton/index.d.ts.map +1 -1
  794. package/lib/typescript/components/IconButton/styles.d.ts +6 -2
  795. package/lib/typescript/components/IconButton/styles.d.ts.map +1 -1
  796. package/lib/typescript/components/Input/index.d.ts +31 -5
  797. package/lib/typescript/components/Input/index.d.ts.map +1 -1
  798. package/lib/typescript/components/Input/styles.d.ts.map +1 -1
  799. package/lib/typescript/components/InsuranceDisclosure/index.d.ts +10 -0
  800. package/lib/typescript/components/InsuranceDisclosure/index.d.ts.map +1 -0
  801. package/lib/typescript/components/InsuranceDisclosure/styles.d.ts +4 -0
  802. package/lib/typescript/components/InsuranceDisclosure/styles.d.ts.map +1 -0
  803. package/lib/typescript/components/Link/index.d.ts +5 -2
  804. package/lib/typescript/components/Link/index.d.ts.map +1 -1
  805. package/lib/typescript/components/Link/styles.d.ts +9 -2
  806. package/lib/typescript/components/Link/styles.d.ts.map +1 -1
  807. package/lib/typescript/components/ListItem/index.d.ts +28 -6
  808. package/lib/typescript/components/ListItem/index.d.ts.map +1 -1
  809. package/lib/typescript/components/ListItem/styles.d.ts +3 -10
  810. package/lib/typescript/components/ListItem/styles.d.ts.map +1 -1
  811. package/lib/typescript/components/OtpInput/index.d.ts +30 -3
  812. package/lib/typescript/components/OtpInput/index.d.ts.map +1 -1
  813. package/lib/typescript/components/OtpInput/styles.d.ts.map +1 -1
  814. package/lib/typescript/components/ProgressBar/index.d.ts +4 -4
  815. package/lib/typescript/components/ProgressBar/index.d.ts.map +1 -1
  816. package/lib/typescript/components/ProgressSegmented/index.d.ts +14 -3
  817. package/lib/typescript/components/ProgressSegmented/index.d.ts.map +1 -1
  818. package/lib/typescript/components/QuickActionButton/index.d.ts +41 -0
  819. package/lib/typescript/components/QuickActionButton/index.d.ts.map +1 -0
  820. package/lib/typescript/components/QuickActionButton/styles.d.ts +7 -0
  821. package/lib/typescript/components/QuickActionButton/styles.d.ts.map +1 -0
  822. package/lib/typescript/components/Radio/index.d.ts +4 -0
  823. package/lib/typescript/components/Radio/index.d.ts.map +1 -1
  824. package/lib/typescript/components/Radio/styles.d.ts.map +1 -1
  825. package/lib/typescript/components/ScopedTheme/index.d.ts +16 -0
  826. package/lib/typescript/components/ScopedTheme/index.d.ts.map +1 -0
  827. package/lib/typescript/components/ScrollShadow/index.d.ts +29 -0
  828. package/lib/typescript/components/ScrollShadow/index.d.ts.map +1 -0
  829. package/lib/typescript/components/ScrollShadow/styles.d.ts +12 -0
  830. package/lib/typescript/components/ScrollShadow/styles.d.ts.map +1 -0
  831. package/lib/typescript/components/ScrollShadow/useScrollShadow.d.ts +17 -0
  832. package/lib/typescript/components/ScrollShadow/useScrollShadow.d.ts.map +1 -0
  833. package/lib/typescript/components/Select/index.d.ts +35 -2
  834. package/lib/typescript/components/Select/index.d.ts.map +1 -1
  835. package/lib/typescript/components/Select/styles.d.ts.map +1 -1
  836. package/lib/typescript/components/Skeleton/index.d.ts +9 -0
  837. package/lib/typescript/components/Skeleton/index.d.ts.map +1 -0
  838. package/lib/typescript/components/Skeleton/styles.d.ts +4 -0
  839. package/lib/typescript/components/Skeleton/styles.d.ts.map +1 -0
  840. package/lib/typescript/components/Slider/getSliderPopupPosition.d.ts +10 -0
  841. package/lib/typescript/components/Slider/getSliderPopupPosition.d.ts.map +1 -0
  842. package/lib/typescript/components/Slider/index.d.ts +61 -0
  843. package/lib/typescript/components/Slider/index.d.ts.map +1 -0
  844. package/lib/typescript/components/Slider/styles.d.ts +30 -0
  845. package/lib/typescript/components/Slider/styles.d.ts.map +1 -0
  846. package/lib/typescript/components/Stack/styles.d.ts +2 -2
  847. package/lib/typescript/components/Switch/BaseSwitch.d.ts +12 -5
  848. package/lib/typescript/components/Switch/BaseSwitch.d.ts.map +1 -1
  849. package/lib/typescript/components/Switch/BaseSwitch.web.d.ts +11 -5
  850. package/lib/typescript/components/Switch/BaseSwitch.web.d.ts.map +1 -1
  851. package/lib/typescript/components/Switch/index.d.ts +15 -3
  852. package/lib/typescript/components/Switch/index.d.ts.map +1 -1
  853. package/lib/typescript/components/Tabs/index.d.ts +48 -0
  854. package/lib/typescript/components/Tabs/index.d.ts.map +1 -0
  855. package/lib/typescript/components/Tabs/styles.d.ts +107 -0
  856. package/lib/typescript/components/Tabs/styles.d.ts.map +1 -0
  857. package/lib/typescript/components/Text/styles.d.ts +1 -1
  858. package/lib/typescript/components/Textarea/index.d.ts +27 -0
  859. package/lib/typescript/components/Textarea/index.d.ts.map +1 -0
  860. package/lib/typescript/components/Textarea/styles.d.ts +11 -0
  861. package/lib/typescript/components/Textarea/styles.d.ts.map +1 -0
  862. package/lib/typescript/components/Tile/index.d.ts +8 -2
  863. package/lib/typescript/components/Tile/index.d.ts.map +1 -1
  864. package/lib/typescript/components/Tile/styles.d.ts +1 -1
  865. package/lib/typescript/components/Toast/animation.d.ts +21 -0
  866. package/lib/typescript/components/Toast/animation.d.ts.map +1 -0
  867. package/lib/typescript/components/Toast/hooks.d.ts +17 -0
  868. package/lib/typescript/components/Toast/hooks.d.ts.map +1 -0
  869. package/lib/typescript/components/Toast/index.d.ts +28 -0
  870. package/lib/typescript/components/Toast/index.d.ts.map +1 -0
  871. package/lib/typescript/components/Toast/styles.d.ts +73 -0
  872. package/lib/typescript/components/Toast/styles.d.ts.map +1 -0
  873. package/lib/typescript/components/Toast/types.d.ts +308 -0
  874. package/lib/typescript/components/Toast/types.d.ts.map +1 -0
  875. package/lib/typescript/components/VirtualizedList/index.d.ts +2 -1
  876. package/lib/typescript/components/VirtualizedList/index.d.ts.map +1 -1
  877. package/lib/typescript/components/index.d.ts +15 -0
  878. package/lib/typescript/components/index.d.ts.map +1 -1
  879. package/lib/typescript/figma/Alert.Button.figma.d.ts +11 -0
  880. package/lib/typescript/figma/Alert.Button.figma.d.ts.map +1 -0
  881. package/lib/typescript/figma/Alert.Close.figma.d.ts +11 -0
  882. package/lib/typescript/figma/Alert.Close.figma.d.ts.map +1 -0
  883. package/lib/typescript/figma/Alert.Description.figma.d.ts +8 -0
  884. package/lib/typescript/figma/Alert.Description.figma.d.ts.map +1 -0
  885. package/lib/typescript/figma/Alert.Title.figma.d.ts +8 -0
  886. package/lib/typescript/figma/Alert.Title.figma.d.ts.map +1 -0
  887. package/lib/typescript/figma/Alert.figma.d.ts +8 -0
  888. package/lib/typescript/figma/Alert.figma.d.ts.map +1 -0
  889. package/lib/typescript/figma/AlertDialog.Description.figma.d.ts +8 -0
  890. package/lib/typescript/figma/AlertDialog.Description.figma.d.ts.map +1 -0
  891. package/lib/typescript/figma/AlertDialog.Footer.figma.d.ts +8 -0
  892. package/lib/typescript/figma/AlertDialog.Footer.figma.d.ts.map +1 -0
  893. package/lib/typescript/figma/AlertDialog.Header.figma.d.ts +8 -0
  894. package/lib/typescript/figma/AlertDialog.Header.figma.d.ts.map +1 -0
  895. package/lib/typescript/figma/AlertDialog.Text.figma.d.ts +8 -0
  896. package/lib/typescript/figma/AlertDialog.Text.figma.d.ts.map +1 -0
  897. package/lib/typescript/figma/AlertDialog.Title.figma.d.ts +8 -0
  898. package/lib/typescript/figma/AlertDialog.Title.figma.d.ts.map +1 -0
  899. package/lib/typescript/figma/AlertDialog.figma.d.ts +8 -0
  900. package/lib/typescript/figma/AlertDialog.figma.d.ts.map +1 -0
  901. package/lib/typescript/figma/Avatar.figma.d.ts +11 -0
  902. package/lib/typescript/figma/Avatar.figma.d.ts.map +1 -0
  903. package/lib/typescript/figma/Badge.Indicator.figma.d.ts +11 -0
  904. package/lib/typescript/figma/Badge.Indicator.figma.d.ts.map +1 -0
  905. package/lib/typescript/figma/Badge.figma.d.ts +8 -0
  906. package/lib/typescript/figma/Badge.figma.d.ts.map +1 -0
  907. package/lib/typescript/figma/BottomSheet.Footer.figma.d.ts +8 -0
  908. package/lib/typescript/figma/BottomSheet.Footer.figma.d.ts.map +1 -0
  909. package/lib/typescript/figma/BottomSheet.Header.figma.d.ts +8 -0
  910. package/lib/typescript/figma/BottomSheet.Header.figma.d.ts.map +1 -0
  911. package/lib/typescript/figma/BottomSheet.figma.d.ts +8 -0
  912. package/lib/typescript/figma/BottomSheet.figma.d.ts.map +1 -0
  913. package/lib/typescript/figma/Button.figma.d.ts.map +1 -1
  914. package/lib/typescript/figma/Card.Header.figma.d.ts +8 -0
  915. package/lib/typescript/figma/Card.Header.figma.d.ts.map +1 -0
  916. package/lib/typescript/figma/Card.Stripe.figma.d.ts +11 -0
  917. package/lib/typescript/figma/Card.Stripe.figma.d.ts.map +1 -0
  918. package/lib/typescript/figma/Card.figma.d.ts +8 -0
  919. package/lib/typescript/figma/Card.figma.d.ts.map +1 -0
  920. package/lib/typescript/figma/Checkbox.figma.d.ts +8 -0
  921. package/lib/typescript/figma/Checkbox.figma.d.ts.map +1 -0
  922. package/lib/typescript/figma/Chip.figma.d.ts +8 -0
  923. package/lib/typescript/figma/Chip.figma.d.ts.map +1 -0
  924. package/lib/typescript/figma/Dialog.Description.figma.d.ts +8 -0
  925. package/lib/typescript/figma/Dialog.Description.figma.d.ts.map +1 -0
  926. package/lib/typescript/figma/Dialog.Footer.figma.d.ts +8 -0
  927. package/lib/typescript/figma/Dialog.Footer.figma.d.ts.map +1 -0
  928. package/lib/typescript/figma/Dialog.Header.figma.d.ts +8 -0
  929. package/lib/typescript/figma/Dialog.Header.figma.d.ts.map +1 -0
  930. package/lib/typescript/figma/Dialog.Text.figma.d.ts +8 -0
  931. package/lib/typescript/figma/Dialog.Text.figma.d.ts.map +1 -0
  932. package/lib/typescript/figma/Dialog.Title.figma.d.ts +8 -0
  933. package/lib/typescript/figma/Dialog.Title.figma.d.ts.map +1 -0
  934. package/lib/typescript/figma/Dialog.figma.d.ts +8 -0
  935. package/lib/typescript/figma/Dialog.figma.d.ts.map +1 -0
  936. package/lib/typescript/figma/Divider.figma.d.ts +8 -0
  937. package/lib/typescript/figma/Divider.figma.d.ts.map +1 -0
  938. package/lib/typescript/figma/Field.Input.figma.d.ts +8 -0
  939. package/lib/typescript/figma/Field.Input.figma.d.ts.map +1 -0
  940. package/lib/typescript/figma/Field.OtpInput.figma.d.ts +8 -0
  941. package/lib/typescript/figma/Field.OtpInput.figma.d.ts.map +1 -0
  942. package/lib/typescript/figma/Field.Select.figma.d.ts +8 -0
  943. package/lib/typescript/figma/Field.Select.figma.d.ts.map +1 -0
  944. package/lib/typescript/figma/Field.Textarea.figma.d.ts +8 -0
  945. package/lib/typescript/figma/Field.Textarea.figma.d.ts.map +1 -0
  946. package/lib/typescript/figma/Heading.figma.d.ts +8 -0
  947. package/lib/typescript/figma/Heading.figma.d.ts.map +1 -0
  948. package/lib/typescript/figma/Icon.figma.d.ts +8 -0
  949. package/lib/typescript/figma/Icon.figma.d.ts.map +1 -0
  950. package/lib/typescript/figma/IconButton.figma.d.ts +8 -0
  951. package/lib/typescript/figma/IconButton.figma.d.ts.map +1 -0
  952. package/lib/typescript/figma/Input.figma.d.ts +8 -0
  953. package/lib/typescript/figma/Input.figma.d.ts.map +1 -0
  954. package/lib/typescript/figma/Link.figma.d.ts +8 -0
  955. package/lib/typescript/figma/Link.figma.d.ts.map +1 -0
  956. package/lib/typescript/figma/ListItem.Description.figma.d.ts +11 -0
  957. package/lib/typescript/figma/ListItem.Description.figma.d.ts.map +1 -0
  958. package/lib/typescript/figma/ListItem.LeadingSlot.figma.d.ts +8 -0
  959. package/lib/typescript/figma/ListItem.LeadingSlot.figma.d.ts.map +1 -0
  960. package/lib/typescript/figma/ListItem.Meta.figma.d.ts +11 -0
  961. package/lib/typescript/figma/ListItem.Meta.figma.d.ts.map +1 -0
  962. package/lib/typescript/figma/ListItem.SectionHeader.figma.d.ts +8 -0
  963. package/lib/typescript/figma/ListItem.SectionHeader.figma.d.ts.map +1 -0
  964. package/lib/typescript/figma/ListItem.Title.figma.d.ts +11 -0
  965. package/lib/typescript/figma/ListItem.Title.figma.d.ts.map +1 -0
  966. package/lib/typescript/figma/ListItem.TrailingSlot.figma.d.ts +8 -0
  967. package/lib/typescript/figma/ListItem.TrailingSlot.figma.d.ts.map +1 -0
  968. package/lib/typescript/figma/ListItem.figma.d.ts +8 -0
  969. package/lib/typescript/figma/ListItem.figma.d.ts.map +1 -0
  970. package/lib/typescript/figma/OtpInput.Cell.figma.d.ts +8 -0
  971. package/lib/typescript/figma/OtpInput.Cell.figma.d.ts.map +1 -0
  972. package/lib/typescript/figma/OtpInput.figma.d.ts +8 -0
  973. package/lib/typescript/figma/OtpInput.figma.d.ts.map +1 -0
  974. package/lib/typescript/figma/ProgressSegmented.figma.d.ts +8 -0
  975. package/lib/typescript/figma/ProgressSegmented.figma.d.ts.map +1 -0
  976. package/lib/typescript/figma/QuickActionButton.figma.d.ts +8 -0
  977. package/lib/typescript/figma/QuickActionButton.figma.d.ts.map +1 -0
  978. package/lib/typescript/figma/Radio.figma.d.ts.map +1 -1
  979. package/lib/typescript/figma/Select.figma.d.ts +8 -0
  980. package/lib/typescript/figma/Select.figma.d.ts.map +1 -0
  981. package/lib/typescript/figma/Text.figma.d.ts +11 -0
  982. package/lib/typescript/figma/Text.figma.d.ts.map +1 -0
  983. package/lib/typescript/figma/Textarea.figma.d.ts +8 -0
  984. package/lib/typescript/figma/Textarea.figma.d.ts.map +1 -0
  985. package/lib/typescript/figma/icons.figma.batch.d.ts +14 -0
  986. package/lib/typescript/figma/icons.figma.batch.d.ts.map +1 -0
  987. package/lib/typescript/hooks/index.d.ts +2 -0
  988. package/lib/typescript/hooks/index.d.ts.map +1 -0
  989. package/lib/typescript/hooks/useForgeBottomTabScreenOptions.d.ts +137 -0
  990. package/lib/typescript/hooks/useForgeBottomTabScreenOptions.d.ts.map +1 -0
  991. package/lib/typescript/index.d.ts +6 -0
  992. package/lib/typescript/index.d.ts.map +1 -1
  993. package/lib/typescript/metro/withCdxMetroConfig.d.ts +4 -18
  994. package/lib/typescript/metro/withCdxMetroConfig.d.ts.map +1 -1
  995. package/lib/typescript/metro/withForgeMetroConfig.d.ts +19 -0
  996. package/lib/typescript/metro/withForgeMetroConfig.d.ts.map +1 -0
  997. package/lib/typescript/navigation/forgeTabIcon.d.ts +27 -0
  998. package/lib/typescript/navigation/forgeTabIcon.d.ts.map +1 -0
  999. package/lib/typescript/navigation/forgeTabIcon.native.d.ts +15 -0
  1000. package/lib/typescript/navigation/forgeTabIcon.native.d.ts.map +1 -0
  1001. package/lib/typescript/navigation/index.d.ts +4 -0
  1002. package/lib/typescript/navigation/index.d.ts.map +1 -0
  1003. package/lib/typescript/navigation/types.d.ts +37 -0
  1004. package/lib/typescript/navigation/types.d.ts.map +1 -0
  1005. package/lib/typescript/providers/animation-settings/index.d.ts +3 -0
  1006. package/lib/typescript/providers/animation-settings/index.d.ts.map +1 -0
  1007. package/lib/typescript/providers/animation-settings/provider.d.ts +28 -0
  1008. package/lib/typescript/providers/animation-settings/provider.d.ts.map +1 -0
  1009. package/lib/typescript/providers/animation-settings/types.d.ts +35 -0
  1010. package/lib/typescript/providers/animation-settings/types.d.ts.map +1 -0
  1011. package/lib/typescript/providers/forge-design/index.d.ts +3 -0
  1012. package/lib/typescript/providers/forge-design/index.d.ts.map +1 -0
  1013. package/lib/typescript/providers/forge-design/provider.d.ts +24 -0
  1014. package/lib/typescript/providers/forge-design/provider.d.ts.map +1 -0
  1015. package/lib/typescript/providers/forge-design/types.d.ts +82 -0
  1016. package/lib/typescript/providers/forge-design/types.d.ts.map +1 -0
  1017. package/lib/typescript/providers/text-component/index.d.ts +3 -0
  1018. package/lib/typescript/providers/text-component/index.d.ts.map +1 -0
  1019. package/lib/typescript/providers/text-component/provider.d.ts +7 -0
  1020. package/lib/typescript/providers/text-component/provider.d.ts.map +1 -0
  1021. package/lib/typescript/providers/text-component/types.d.ts +51 -0
  1022. package/lib/typescript/providers/text-component/types.d.ts.map +1 -0
  1023. package/lib/typescript/providers/toast/index.d.ts +5 -0
  1024. package/lib/typescript/providers/toast/index.d.ts.map +1 -0
  1025. package/lib/typescript/providers/toast/insets-container.d.ts +72 -0
  1026. package/lib/typescript/providers/toast/insets-container.d.ts.map +1 -0
  1027. package/lib/typescript/providers/toast/lifecycle.context.d.ts +32 -0
  1028. package/lib/typescript/providers/toast/lifecycle.context.d.ts.map +1 -0
  1029. package/lib/typescript/providers/toast/provider.d.ts +32 -0
  1030. package/lib/typescript/providers/toast/provider.d.ts.map +1 -0
  1031. package/lib/typescript/providers/toast/reducer.d.ts +14 -0
  1032. package/lib/typescript/providers/toast/reducer.d.ts.map +1 -0
  1033. package/lib/typescript/providers/toast/toast-config.context.d.ts +20 -0
  1034. package/lib/typescript/providers/toast/toast-config.context.d.ts.map +1 -0
  1035. package/lib/typescript/providers/toast/toast-item-renderer.d.ts +7 -0
  1036. package/lib/typescript/providers/toast/toast-item-renderer.d.ts.map +1 -0
  1037. package/lib/typescript/providers/toast/types.d.ts +422 -0
  1038. package/lib/typescript/providers/toast/types.d.ts.map +1 -0
  1039. package/lib/typescript/styles/constants.d.ts +4 -0
  1040. package/lib/typescript/styles/constants.d.ts.map +1 -0
  1041. package/lib/typescript/utils/positionToDataIcon.d.ts +29 -0
  1042. package/lib/typescript/utils/positionToDataIcon.d.ts.map +1 -0
  1043. package/package.json +27 -16
  1044. package/src/animation/hooks/index.ts +4 -0
  1045. package/src/animation/hooks/useCombinedAnimationDisabledState.ts +46 -0
  1046. package/src/animation/hooks/usePopupDialogContentAnimation.ts +265 -0
  1047. package/src/animation/hooks/usePopupOverlayAnimation.ts +91 -0
  1048. package/src/animation/hooks/usePopupRootAnimation.ts +27 -0
  1049. package/src/animation/index.ts +3 -0
  1050. package/src/animation/types.ts +128 -0
  1051. package/src/animation/utils.ts +249 -0
  1052. package/src/components/Alert/index.tsx +318 -0
  1053. package/src/components/Alert/styles.ts +88 -0
  1054. package/src/components/AlertDialog/index.tsx +36 -22
  1055. package/src/components/Avatar/index.tsx +143 -45
  1056. package/src/components/Avatar/styles.ts +49 -34
  1057. package/src/components/Badge/index.tsx +91 -0
  1058. package/src/components/Badge/styles.ts +136 -0
  1059. package/src/components/BottomSheet/index.tsx +107 -50
  1060. package/src/components/BottomSheet/styles.ts +9 -56
  1061. package/src/components/Box/Box.tsx +3 -7
  1062. package/src/components/Breadcrumbs/index.tsx +311 -0
  1063. package/src/components/Breadcrumbs/styles.ts +63 -0
  1064. package/src/components/Button/index.tsx +284 -47
  1065. package/src/components/Button/styles.ts +78 -37
  1066. package/src/components/CLAUDE.md +195 -0
  1067. package/src/components/Card/index.tsx +94 -28
  1068. package/src/components/Card/styles.ts +19 -4
  1069. package/src/components/Carousel/index.tsx +263 -0
  1070. package/src/components/Carousel/paginationNavigation.ts +32 -0
  1071. package/src/components/Carousel/styles.ts +18 -0
  1072. package/src/components/Checkbox/index.tsx +124 -51
  1073. package/src/components/Checkbox/styles.ts +93 -84
  1074. package/src/components/Chip/index.tsx +194 -32
  1075. package/src/components/Chip/styles.ts +224 -22
  1076. package/src/components/CurrencyInput/index.tsx +192 -0
  1077. package/src/components/CurrencyInput/styles.ts +44 -0
  1078. package/src/components/Dialog/animation.ts +13 -0
  1079. package/src/components/Dialog/index.tsx +538 -90
  1080. package/src/components/Dialog/styles.ts +93 -30
  1081. package/src/components/Divider/index.tsx +94 -0
  1082. package/src/components/Divider/styles.ts +86 -0
  1083. package/src/components/Field/index.tsx +121 -50
  1084. package/src/components/Field/styles.ts +6 -5
  1085. package/src/components/Form/index.tsx +18 -14
  1086. package/src/components/Heading/styles.ts +1 -1
  1087. package/src/components/Icon/index.tsx +14 -8
  1088. package/src/components/IconButton/index.tsx +41 -37
  1089. package/src/components/IconButton/styles.ts +136 -10
  1090. package/src/components/Input/index.tsx +95 -33
  1091. package/src/components/Input/styles.ts +35 -12
  1092. package/src/components/InsuranceDisclosure/index.tsx +59 -0
  1093. package/src/components/InsuranceDisclosure/styles.ts +12 -0
  1094. package/src/components/Link/index.tsx +58 -18
  1095. package/src/components/Link/styles.ts +47 -10
  1096. package/src/components/ListItem/index.tsx +157 -87
  1097. package/src/components/ListItem/styles.ts +46 -70
  1098. package/src/components/OtpInput/index.tsx +149 -34
  1099. package/src/components/OtpInput/styles.ts +20 -13
  1100. package/src/components/ProgressBar/index.tsx +11 -16
  1101. package/src/components/ProgressBar/styles.ts +1 -1
  1102. package/src/components/ProgressSegmented/index.tsx +45 -14
  1103. package/src/components/ProgressSegmented/styles.ts +2 -2
  1104. package/src/components/QuickActionButton/index.tsx +161 -0
  1105. package/src/components/QuickActionButton/styles.ts +42 -0
  1106. package/src/components/Radio/index.tsx +96 -53
  1107. package/src/components/Radio/styles.ts +37 -14
  1108. package/src/components/ScopedTheme/index.tsx +17 -0
  1109. package/src/components/ScrollShadow/index.tsx +119 -0
  1110. package/src/components/ScrollShadow/styles.ts +57 -0
  1111. package/src/components/ScrollShadow/useScrollShadow.ts +110 -0
  1112. package/src/components/Select/index.tsx +175 -55
  1113. package/src/components/Select/styles.ts +63 -51
  1114. package/src/components/Skeleton/index.tsx +43 -0
  1115. package/src/components/Skeleton/styles.ts +5 -0
  1116. package/src/components/Slider/getSliderPopupPosition.ts +37 -0
  1117. package/src/components/Slider/index.tsx +456 -0
  1118. package/src/components/Slider/styles.ts +147 -0
  1119. package/src/components/Switch/BaseSwitch.tsx +38 -16
  1120. package/src/components/Switch/BaseSwitch.web.tsx +28 -35
  1121. package/src/components/Switch/index.tsx +61 -6
  1122. package/src/components/Tabs/index.tsx +698 -0
  1123. package/src/components/Tabs/styles.ts +340 -0
  1124. package/src/components/Text/styles.ts +2 -2
  1125. package/src/components/Textarea/index.tsx +180 -0
  1126. package/src/components/Textarea/styles.ts +86 -0
  1127. package/src/components/Tile/index.tsx +145 -94
  1128. package/src/components/Tile/styles.ts +2 -2
  1129. package/src/components/Toast/animation.ts +405 -0
  1130. package/src/components/Toast/hooks.ts +93 -0
  1131. package/src/components/Toast/index.tsx +551 -0
  1132. package/src/components/Toast/styles.ts +186 -0
  1133. package/src/components/Toast/types.ts +338 -0
  1134. package/src/components/VirtualizedList/index.tsx +11 -1
  1135. package/src/components/index.ts +15 -0
  1136. package/src/globals.d.ts +1 -0
  1137. package/src/hooks/index.ts +5 -0
  1138. package/src/hooks/useForgeBottomTabScreenOptions.ts +245 -0
  1139. package/src/index.ts +6 -0
  1140. package/src/metro/withCdxMetroConfig.ts +4 -29
  1141. package/src/metro/withForgeMetroConfig.ts +29 -0
  1142. package/src/navigation/forgeTabIcon.native.ts +36 -0
  1143. package/src/navigation/forgeTabIcon.ts +33 -0
  1144. package/src/navigation/index.ts +3 -0
  1145. package/src/navigation/types.ts +54 -0
  1146. package/src/providers/animation-settings/index.ts +11 -0
  1147. package/src/providers/animation-settings/provider.tsx +54 -0
  1148. package/src/providers/animation-settings/types.ts +37 -0
  1149. package/src/providers/forge-design/index.ts +2 -0
  1150. package/src/providers/forge-design/provider.tsx +61 -0
  1151. package/src/providers/forge-design/types.ts +84 -0
  1152. package/src/providers/text-component/index.ts +2 -0
  1153. package/src/providers/text-component/provider.tsx +7 -0
  1154. package/src/providers/text-component/types.ts +52 -0
  1155. package/src/providers/toast/index.ts +4 -0
  1156. package/src/providers/toast/insets-container.tsx +232 -0
  1157. package/src/providers/toast/lifecycle.context.tsx +37 -0
  1158. package/src/providers/toast/provider.tsx +572 -0
  1159. package/src/providers/toast/reducer.ts +40 -0
  1160. package/src/providers/toast/toast-config.context.ts +25 -0
  1161. package/src/providers/toast/toast-item-renderer.tsx +40 -0
  1162. package/src/providers/toast/types.ts +431 -0
  1163. package/src/styles/constants.ts +10 -0
  1164. package/src/styles.css +0 -5
  1165. package/src/utils/positionToDataIcon.ts +34 -0
  1166. package/lib/commonjs/components/Field/FieldLabel.js +0 -33
  1167. package/lib/commonjs/components/Field/FieldLabel.js.map +0 -1
  1168. package/lib/commonjs/components/Field/FieldLabel.web.js +0 -22
  1169. package/lib/commonjs/components/Field/FieldLabel.web.js.map +0 -1
  1170. package/lib/commonjs/components/Form/FormRoot.js +0 -25
  1171. package/lib/commonjs/components/Form/FormRoot.js.map +0 -1
  1172. package/lib/commonjs/components/Form/FormRoot.web.js +0 -17
  1173. package/lib/commonjs/components/Form/FormRoot.web.js.map +0 -1
  1174. package/lib/commonjs/components/Input/BaseInput.android.js +0 -20
  1175. package/lib/commonjs/components/Input/BaseInput.android.js.map +0 -1
  1176. package/lib/commonjs/components/Input/BaseInput.js +0 -13
  1177. package/lib/commonjs/components/Input/BaseInput.js.map +0 -1
  1178. package/lib/commonjs/components/Input/BaseInput.web.js +0 -50
  1179. package/lib/commonjs/components/Input/BaseInput.web.js.map +0 -1
  1180. package/lib/commonjs/components/Select/SelectTriggerHost.js +0 -10
  1181. package/lib/commonjs/components/Select/SelectTriggerHost.js.map +0 -1
  1182. package/lib/commonjs/components/Select/SelectTriggerHost.web.js +0 -98
  1183. package/lib/commonjs/components/Select/SelectTriggerHost.web.js.map +0 -1
  1184. package/lib/commonjs/styles/index.js +0 -17
  1185. package/lib/commonjs/styles/index.js.map +0 -1
  1186. package/lib/commonjs/styles/primitives.js +0 -156
  1187. package/lib/commonjs/styles/primitives.js.map +0 -1
  1188. package/lib/commonjs/utils/WrapStringChild.js +0 -22
  1189. package/lib/commonjs/utils/WrapStringChild.js.map +0 -1
  1190. package/lib/module/components/Field/FieldLabel.js +0 -29
  1191. package/lib/module/components/Field/FieldLabel.js.map +0 -1
  1192. package/lib/module/components/Field/FieldLabel.web.js +0 -17
  1193. package/lib/module/components/Field/FieldLabel.web.js.map +0 -1
  1194. package/lib/module/components/Form/FormRoot.js +0 -21
  1195. package/lib/module/components/Form/FormRoot.js.map +0 -1
  1196. package/lib/module/components/Form/FormRoot.web.js +0 -12
  1197. package/lib/module/components/Form/FormRoot.web.js.map +0 -1
  1198. package/lib/module/components/Input/BaseInput.android.js +0 -16
  1199. package/lib/module/components/Input/BaseInput.android.js.map +0 -1
  1200. package/lib/module/components/Input/BaseInput.js +0 -4
  1201. package/lib/module/components/Input/BaseInput.js.map +0 -1
  1202. package/lib/module/components/Input/BaseInput.web.js +0 -45
  1203. package/lib/module/components/Input/BaseInput.web.js.map +0 -1
  1204. package/lib/module/components/Select/SelectTriggerHost.js +0 -7
  1205. package/lib/module/components/Select/SelectTriggerHost.js.map +0 -1
  1206. package/lib/module/components/Select/SelectTriggerHost.web.js +0 -93
  1207. package/lib/module/components/Select/SelectTriggerHost.web.js.map +0 -1
  1208. package/lib/module/styles/index.js +0 -4
  1209. package/lib/module/styles/index.js.map +0 -1
  1210. package/lib/module/styles/primitives.js +0 -152
  1211. package/lib/module/styles/primitives.js.map +0 -1
  1212. package/lib/module/utils/WrapStringChild.js +0 -18
  1213. package/lib/module/utils/WrapStringChild.js.map +0 -1
  1214. package/lib/typescript/components/Field/FieldLabel.d.ts +0 -18
  1215. package/lib/typescript/components/Field/FieldLabel.d.ts.map +0 -1
  1216. package/lib/typescript/components/Field/FieldLabel.web.d.ts +0 -16
  1217. package/lib/typescript/components/Field/FieldLabel.web.d.ts.map +0 -1
  1218. package/lib/typescript/components/Form/FormRoot.d.ts +0 -14
  1219. package/lib/typescript/components/Form/FormRoot.d.ts.map +0 -1
  1220. package/lib/typescript/components/Form/FormRoot.web.d.ts +0 -10
  1221. package/lib/typescript/components/Form/FormRoot.web.d.ts.map +0 -1
  1222. package/lib/typescript/components/Input/BaseInput.android.d.ts +0 -3
  1223. package/lib/typescript/components/Input/BaseInput.android.d.ts.map +0 -1
  1224. package/lib/typescript/components/Input/BaseInput.d.ts +0 -2
  1225. package/lib/typescript/components/Input/BaseInput.d.ts.map +0 -1
  1226. package/lib/typescript/components/Input/BaseInput.web.d.ts +0 -3
  1227. package/lib/typescript/components/Input/BaseInput.web.d.ts.map +0 -1
  1228. package/lib/typescript/components/Select/SelectTriggerHost.d.ts +0 -3
  1229. package/lib/typescript/components/Select/SelectTriggerHost.d.ts.map +0 -1
  1230. package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts +0 -13
  1231. package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts.map +0 -1
  1232. package/lib/typescript/styles/index.d.ts +0 -2
  1233. package/lib/typescript/styles/index.d.ts.map +0 -1
  1234. package/lib/typescript/styles/primitives.d.ts +0 -120
  1235. package/lib/typescript/styles/primitives.d.ts.map +0 -1
  1236. package/lib/typescript/utils/WrapStringChild.d.ts +0 -10
  1237. package/lib/typescript/utils/WrapStringChild.d.ts.map +0 -1
  1238. package/src/components/Field/FieldLabel.tsx +0 -33
  1239. package/src/components/Field/FieldLabel.web.tsx +0 -25
  1240. package/src/components/Form/FormRoot.tsx +0 -20
  1241. package/src/components/Form/FormRoot.web.tsx +0 -12
  1242. package/src/components/Input/BaseInput.android.tsx +0 -13
  1243. package/src/components/Input/BaseInput.tsx +0 -1
  1244. package/src/components/Input/BaseInput.web.tsx +0 -41
  1245. package/src/components/Select/SelectTriggerHost.tsx +0 -4
  1246. package/src/components/Select/SelectTriggerHost.web.tsx +0 -136
  1247. package/src/styles/index.ts +0 -1
  1248. package/src/styles/primitives.ts +0 -140
  1249. package/src/utils/WrapStringChild.tsx +0 -25
@@ -12,46 +12,30 @@ var _utils = require("@cdx-ui/utils");
12
12
  var _Icon = require("../Icon");
13
13
  var _styles = require("./styles");
14
14
  var _jsxRuntime = require("react/jsx-runtime");
15
- const SCOPE = 'CHECKBOX';
16
- const Root = (0, _utils.withStyleContext)(_reactNative.Pressable, SCOPE);
17
- const useCheckboxStyleContext = () => (0, _utils.useStyleContext)(SCOPE);
18
- const CheckboxPrimitive = (0, _primitives.createCheckbox)({
19
- Root,
20
- Indicator: _reactNative.View,
21
- Icon: _reactNative.View,
22
- Label: _reactNative.Text,
23
- Group: _reactNative.View
24
- });
25
-
26
15
  // =============================================================================
27
16
  // CHECKBOX ROOT
28
17
  // =============================================================================
29
18
 
30
19
  const CheckboxRoot = /*#__PURE__*/(0, _react.forwardRef)(({
31
- size = 'default',
32
20
  className,
33
21
  isIndeterminate,
34
22
  children,
35
23
  style,
36
24
  ...props
37
25
  }, ref) => {
38
- const computedClassName = (0, _utils.cn)((0, _styles.checkboxRootVariants)({
39
- size
40
- }), className);
41
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(CheckboxPrimitive, {
26
+ const computedClassName = (0, _utils.cn)((0, _styles.checkboxRootVariants)(), className);
27
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_primitives.CheckboxRoot, {
42
28
  ref: ref,
43
29
  className: computedClassName,
44
30
  isIndeterminate: isIndeterminate,
45
31
  style: style,
46
- context: {
47
- size
48
- },
49
32
  ...props,
33
+ ...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
34
+ slot: 'checkbox'
35
+ })),
50
36
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(CheckboxIndicator, {
51
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(CheckboxPrimitive.Icon, {
52
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(CheckboxIcon, {
53
- as: isIndeterminate ? _icons.CheckIndeterminateSmall : _icons.Check
54
- })
37
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(CheckboxIconSlot, {
38
+ isIndeterminate: isIndeterminate
55
39
  })
56
40
  }), children]
57
41
  });
@@ -59,33 +43,71 @@ const CheckboxRoot = /*#__PURE__*/(0, _react.forwardRef)(({
59
43
  CheckboxRoot.displayName = 'Checkbox';
60
44
 
61
45
  // =============================================================================
62
- // CHECKBOX INDICATOR
46
+ // CHECKBOX INDICATOR (styled-only, reads context for data-* styling)
63
47
  // =============================================================================
64
48
 
49
+ /** Compound check × invalid × active state for native Uniwind selectors (single data-field-state). */
50
+ const INDICATOR_STATES = {
51
+ 'unchecked:false:false': 'idle',
52
+ 'unchecked:true:false': 'invalid',
53
+ 'unchecked:false:true': 'active',
54
+ 'unchecked:true:true': 'invalid-active',
55
+ 'checked:false:false': 'checked',
56
+ 'checked:true:false': 'checked-invalid',
57
+ 'checked:false:true': 'checked-active',
58
+ 'checked:true:true': 'checked-invalid-active',
59
+ 'indeterminate:false:false': 'indeterminate',
60
+ 'indeterminate:true:false': 'indeterminate-invalid',
61
+ 'indeterminate:false:true': 'indeterminate-active',
62
+ 'indeterminate:true:true': 'indeterminate-invalid-active'
63
+ };
65
64
  const CheckboxIndicator = /*#__PURE__*/(0, _react.forwardRef)(({
65
+ asChild,
66
66
  className,
67
67
  children,
68
68
  style,
69
69
  ...props
70
70
  }, ref) => {
71
71
  const {
72
- size
73
- } = useCheckboxStyleContext();
74
- const computedClassName = (0, _utils.cn)((0, _styles.checkboxIndicatorVariants)({
75
- size
76
- }), className);
77
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(CheckboxPrimitive.Indicator, {
72
+ isChecked,
73
+ isDisabled,
74
+ isHovered,
75
+ isInvalid,
76
+ isReadOnly,
77
+ isPressed,
78
+ isFocused,
79
+ isIndeterminate,
80
+ isFocusVisible
81
+ } = (0, _primitives.useCheckboxContext)();
82
+ const checkState = isIndeterminate ? 'indeterminate' : isChecked ? 'checked' : 'unchecked';
83
+ const fieldState = INDICATOR_STATES[`${checkState}:${isInvalid ? 'true' : 'false'}:${isPressed ? 'true' : 'false'}`];
84
+ const computedClassName = (0, _utils.cn)((0, _styles.checkboxIndicatorVariants)(), className);
85
+ const Comp = asChild ? _primitives.Slot : _reactNative.View;
86
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(Comp, {
78
87
  ref: ref,
79
88
  className: computedClassName,
80
89
  style: style,
81
90
  ...props,
91
+ ...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
92
+ slot: 'checkbox-indicator',
93
+ hover: isHovered,
94
+ checked: isChecked,
95
+ disabled: isDisabled,
96
+ focusVisible: isFocusVisible,
97
+ invalid: isInvalid,
98
+ readonly: isReadOnly,
99
+ active: isPressed,
100
+ focused: isFocused,
101
+ indeterminate: isIndeterminate,
102
+ fieldState
103
+ })),
82
104
  children: children
83
105
  });
84
106
  });
85
107
  CheckboxIndicator.displayName = 'Checkbox.Indicator';
86
108
 
87
109
  // =============================================================================
88
- // CHECKBOX ICON
110
+ // CHECKBOX ICON (styled-only, reads context for conditional mount)
89
111
  // =============================================================================
90
112
 
91
113
  const CheckboxIcon = ({
@@ -93,48 +115,65 @@ const CheckboxIcon = ({
93
115
  style,
94
116
  ...props
95
117
  }) => {
96
- const {
97
- size
98
- } = useCheckboxStyleContext();
99
- const computedClassName = (0, _utils.cn)((0, _styles.checkboxIconVariants)({
100
- size
101
- }), className);
118
+ const computedClassName = (0, _utils.cn)((0, _styles.checkboxIconVariants)(), className);
102
119
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
103
120
  className: computedClassName,
104
121
  style: style,
105
- ...props
122
+ ...props,
123
+ ...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
124
+ slot: 'checkbox-icon'
125
+ }))
106
126
  });
107
127
  };
108
128
  CheckboxIcon.displayName = 'Checkbox.Icon';
109
129
 
130
+ // Internal helper that reads context for conditional rendering
131
+ const CheckboxIconSlot = ({
132
+ isIndeterminate: isIndeterminateProp
133
+ }) => {
134
+ const {
135
+ isChecked,
136
+ isIndeterminate
137
+ } = (0, _primitives.useCheckboxContext)();
138
+ const showIcon = isChecked || isIndeterminateProp || isIndeterminate;
139
+ if (!showIcon) return null;
140
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(CheckboxIcon, {
141
+ as: isIndeterminate || isIndeterminateProp ? _icons.CheckIndeterminateSmall : _icons.Check
142
+ });
143
+ };
144
+
110
145
  // =============================================================================
111
- // CHECKBOX LABEL
146
+ // CHECKBOX LABEL (styled-only)
112
147
  // =============================================================================
113
148
 
114
149
  const CheckboxLabel = /*#__PURE__*/(0, _react.forwardRef)(({
150
+ asChild,
115
151
  className,
116
152
  children,
117
153
  style,
118
154
  ...props
119
155
  }, ref) => {
120
156
  const {
121
- size
122
- } = useCheckboxStyleContext();
123
- const computedClassName = (0, _utils.cn)((0, _styles.checkboxLabelVariants)({
124
- size
125
- }), className);
126
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(CheckboxPrimitive.Label, {
157
+ isDisabled
158
+ } = (0, _primitives.useCheckboxContext)();
159
+ const computedClassName = (0, _utils.cn)((0, _styles.checkboxLabelVariants)(), className);
160
+ const Comp = asChild ? _primitives.Slot : _reactNative.Text;
161
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(Comp, {
127
162
  ref: ref,
128
163
  className: computedClassName,
129
164
  style: style,
130
165
  ...props,
166
+ ...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
167
+ slot: 'checkbox-label',
168
+ disabled: isDisabled
169
+ })),
131
170
  children: children
132
171
  });
133
172
  });
134
173
  CheckboxLabel.displayName = 'Checkbox.Label';
135
174
 
136
175
  // =============================================================================
137
- // CHECKBOX GROUP
176
+ // CHECKBOX GROUP (wraps the primitive)
138
177
  // =============================================================================
139
178
 
140
179
  const CheckboxGroup = /*#__PURE__*/(0, _react.forwardRef)(({
@@ -152,7 +191,7 @@ const CheckboxGroup = /*#__PURE__*/(0, _react.forwardRef)(({
152
191
  const computedClassName = (0, _utils.cn)((0, _styles.checkboxGroupVariants)({
153
192
  direction
154
193
  }), className);
155
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(CheckboxPrimitive.Group, {
194
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.CheckboxGroup, {
156
195
  ref: ref,
157
196
  className: computedClassName,
158
197
  style: style,
@@ -161,7 +200,9 @@ const CheckboxGroup = /*#__PURE__*/(0, _react.forwardRef)(({
161
200
  isDisabled: isDisabled,
162
201
  isInvalid: isInvalid,
163
202
  isReadOnly: isReadOnly,
164
- ...viewProps,
203
+ ...(0, _primitives.mergeDataAttributes)(viewProps, (0, _primitives.dataAttributes)({
204
+ slot: 'checkbox-group'
205
+ })),
165
206
  children: children
166
207
  });
167
208
  });
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNative","_icons","_primitives","_utils","_Icon","_styles","_jsxRuntime","SCOPE","Root","withStyleContext","Pressable","useCheckboxStyleContext","useStyleContext","CheckboxPrimitive","createCheckbox","Indicator","View","Icon","Label","Text","Group","CheckboxRoot","forwardRef","size","className","isIndeterminate","children","style","props","ref","computedClassName","cn","checkboxRootVariants","jsxs","context","jsx","CheckboxIndicator","CheckboxIcon","as","CheckIndeterminateSmall","Check","displayName","checkboxIndicatorVariants","checkboxIconVariants","CheckboxLabel","checkboxLabelVariants","CheckboxGroup","direction","value","onChange","isDisabled","isInvalid","isReadOnly","viewProps","checkboxGroupVariants","Checkbox","exports","Object","assign"],"sourceRoot":"../../../../src","sources":["components/Checkbox/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAOkB,IAAAO,WAAA,GAAAP,OAAA;AAElB,MAAMQ,KAAK,GAAG,UAAU;AAExB,MAAMC,IAAI,GAAG,IAAAC,uBAAgB,EAACC,sBAAS,EAAEH,KAAK,CAAC;AAE/C,MAAMI,uBAAuB,GAAGA,CAAA,KAAM,IAAAC,sBAAe,EAACL,KAAK,CAAyB;AAEpF,MAAMM,iBAAiB,GAAG,IAAAC,0BAAc,EAAC;EACvCN,IAAI;EACJO,SAAS,EAAEC,iBAAI;EACfC,IAAI,EAAED,iBAAI;EACVE,KAAK,EAAEC,iBAAI;EACXC,KAAK,EAAEJ;AACT,CAAC,CAAC;;AAEF;AACA;AACA;;AAOA,MAAMK,YAAY,gBAAG,IAAAC,iBAAU,EAC7B,CAAC;EAAEC,IAAI,GAAG,SAAS;EAAEC,SAAS;EAAEC,eAAe;EAAEC,QAAQ;EAAEC,KAAK;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EACpF,MAAMC,iBAAiB,GAAG,IAAAC,SAAE,EAAC,IAAAC,4BAAoB,EAAC;IAAET;EAAK,CAAC,CAAC,EAAEC,SAAS,CAAC;EAEvE,oBACE,IAAAlB,WAAA,CAAA2B,IAAA,EAACpB,iBAAiB;IAChBgB,GAAG,EAAEA,GAAW;IAChBL,SAAS,EAAEM,iBAAkB;IAC7BL,eAAe,EAAEA,eAAgB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C;IAAEP;EAAU,CAAC,CAAC,EAAEvB,SAAS,CAAC;EAE7E,oBACE,IAAAlB,WAAA,CAAA6B,GAAA,EAACtB,iBAAiB,CAACO,KAAK;IACtBS,GAAG,EAAEA,GAAW;IAChBL,SAAS,EAAEM,iBAAkB;IAC7BH,KAAK,EAAEA,KAAM;IACbqB,KAAK,EAAEA,KAAK,IAAI,EAAG;IACnBC,QAAQ,EAAEA,QAAS;IACnBC,UAAU,EAAEA,UAAW;IACvBC,SAAS,EAAEA,SAAU;IACrBC,UAAU,EAAEA,UAAW;IAAA,GACnBC,SAAS;IAAA3B,QAAA,EAEZA;EAAQ,CACc,CAAC;AAE9B,CACF,CAAC;AAEDoB,aAAa,CAACL,WAAW,GAAG,gBAAgB;;AAE5C;AACA;AACA;;AASO,MAAMc,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAGE,MAAM,CAACC,MAAM,CAACrC,YAAY,EAAE;EAClDN,SAAS,EAAEqB,iBAAiB;EAC5BnB,IAAI,EAAEoB,YAAY;EAClBnB,KAAK,EAAE0B,aAAa;EACpBxB,KAAK,EAAE0B;AACT,CAAC,CAA8B","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNative","_icons","_primitives","_utils","_Icon","_styles","_jsxRuntime","CheckboxRoot","forwardRef","className","isIndeterminate","children","style","props","ref","computedClassName","cn","checkboxRootVariants","jsxs","mergeDataAttributes","dataAttributes","slot","jsx","CheckboxIndicator","CheckboxIconSlot","displayName","INDICATOR_STATES","asChild","isChecked","isDisabled","isHovered","isInvalid","isReadOnly","isPressed","isFocused","isFocusVisible","useCheckboxContext","checkState","fieldState","checkboxIndicatorVariants","Comp","Slot","View","hover","checked","disabled","focusVisible","invalid","readonly","active","focused","indeterminate","CheckboxIcon","checkboxIconVariants","Icon","isIndeterminateProp","showIcon","as","CheckIndeterminateSmall","Check","CheckboxLabel","checkboxLabelVariants","Text","CheckboxGroup","direction","value","onChange","viewProps","checkboxGroupVariants","Checkbox","exports","Object","assign","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,IAAAoD,6BAAqB,EAAC;IAAEJ;EAAU,CAAC,CAAC,EAAEvD,SAAS,CAAC;EAE7E,oBACE,IAAAH,WAAA,CAAAgB,GAAA,EAACpB,WAAA,CAAA6D,aAAsB;IACrBjD,GAAG,EAAEA,GAAI;IACTL,SAAS,EAAEM,iBAAkB;IAC7BH,KAAK,EAAEA,KAAM;IACbqD,KAAK,EAAEA,KAAK,IAAI,EAAG;IACnBC,QAAQ,EAAEA,QAAS;IACnBrC,UAAU,EAAEA,UAAW;IACvBE,SAAS,EAAEA,SAAU;IACrBC,UAAU,EAAEA,UAAW;IAAA,GACnB,IAAAb,+BAAmB,EAACgD,SAAS,EAAE,IAAA/C,0BAAc,EAAC;MAAEC,IAAI,EAAE;IAAiB,CAAC,CAAC,CAAC;IAAAV,QAAA,EAE7EA;EAAQ,CACa,CAAC;AAE7B,CACF,CAAC;AAEDoD,aAAa,CAACtC,WAAW,GAAG,gBAAgB;;AAE5C;AACA;AACA;;AASO,MAAM4C,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAGE,MAAM,CAACC,MAAM,CAACjE,YAAY,EAAE;EAClDkE,SAAS,EAAElD,iBAAiB;EAC5B+B,IAAI,EAAEF,YAAY;EAClBsB,KAAK,EAAEd,aAAa;EACpBe,KAAK,EAAEZ;AACT,CAAC,CAA8B","ignoreList":[]}
@@ -6,54 +6,50 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.checkboxRootVariants = exports.checkboxLabelVariants = exports.checkboxIndicatorVariants = exports.checkboxIconVariants = exports.checkboxGroupVariants = void 0;
7
7
  var _reactNative = require("react-native");
8
8
  var _classVarianceAuthority = require("class-variance-authority");
9
- var _primitives = require("../../styles/primitives");
10
- const checkboxRootVariants = exports.checkboxRootVariants = (0, _classVarianceAuthority.cva)(['flex-row items-center', _primitives.DISABLED_OPACITY, _primitives.DISABLED_CURSOR], {
11
- variants: {
12
- size: {
13
- small: 'gap-2',
14
- default: 'gap-2.5'
15
- }
16
- },
17
- defaultVariants: {
18
- size: 'default'
19
- }
20
- });
21
- const checkboxIndicatorVariants = exports.checkboxIndicatorVariants = (0, _classVarianceAuthority.cva)(['items-center justify-center', 'rounded', 'border-2', 'border-stroke-secondary', 'bg-surface-primary', 'data-[checked=true]:bg-surface-action-strong data-[checked=true]:border-stroke-action', 'data-[indeterminate=true]:bg-surface-action-strong data-[indeterminate=true]:border-stroke-action', 'data-[disabled=true]:opacity-50', 'data-[invalid=true]:border-stroke-danger', 'data-[checked=true]:data-[invalid=true]:bg-surface-danger-strong data-[checked=true]:data-[invalid=true]:border-stroke-danger', 'data-[indeterminate=true]:data-[invalid=true]:bg-surface-danger-strong data-[indeterminate=true]:data-[invalid=true]:border-stroke-danger', _reactNative.Platform.select({
22
- web: [_primitives.TRANSITION_COLORS, 'data-[hover=true]:data-[checked=false]:data-[indeterminate=false]:border-slate-400 data-[hover=true]:data-[checked=false]:data-[indeterminate=false]:bg-slate-50', 'data-[focus-visible=true]:ring-2 data-[focus-visible=true]:ring-slate-400/50 data-[focus-visible=true]:ring-offset-2', 'data-[invalid=true]:data-[hover=true]:border-red-400', 'data-[invalid=true]:data-[focus-visible=true]:ring-red-400/50'].join(' '),
23
- default: ''
24
- })], {
25
- variants: {
26
- size: {
27
- small: 'h-4 w-4',
28
- default: 'h-5 w-5'
29
- }
30
- },
31
- defaultVariants: {
32
- size: 'default'
33
- }
34
- });
35
- const checkboxIconVariants = exports.checkboxIconVariants = (0, _classVarianceAuthority.cva)(['text-white'], {
36
- variants: {
37
- size: {
38
- small: 'h-3 w-3',
39
- default: 'h-3.5 w-3.5'
40
- }
41
- },
42
- defaultVariants: {
43
- size: 'default'
44
- }
45
- });
46
- const checkboxLabelVariants = exports.checkboxLabelVariants = (0, _classVarianceAuthority.cva)([_primitives.COLOR_TEXT_PRIMARY, 'data-[disabled=true]:text-slate-400'], {
47
- variants: {
48
- size: {
49
- small: 'text-sm',
50
- default: 'text-base'
51
- }
52
- },
53
- defaultVariants: {
54
- size: 'default'
55
- }
56
- });
9
+ var _constants = require("../../styles/constants");
10
+ // TODO: Handle text wrapping in the label
11
+
12
+ const checkboxRootVariants = exports.checkboxRootVariants = (0, _classVarianceAuthority.cva)(['flex-row items-center gap-2.5', _constants.DISABLED_OPACITY, _constants.DISABLED_CURSOR,
13
+ // Suppress stray outline on the Pressable/label wrapper; focus ring is drawn on Checkbox.Indicator (Radio pattern).
14
+ 'web:outline-none web:focus:outline-none web:focus-visible:outline-none']);
15
+ const checkboxIndicatorVariants = exports.checkboxIndicatorVariants = (0, _classVarianceAuthority.cva)(['items-center justify-center', 'h-5 w-5', 'rounded', 'border-2 border-solid', 'data-[disabled=true]:opacity-50',
16
+ // Background — layered by specificity. checked=false acts as an explicit reset so the base bg
17
+ // reasserts when transitioning from checked/indeterminate on native (where absent attributes
18
+ // break data-[attr=false] selectors).
19
+ // IMPORTANT: On native (Uniwind), only the LAST data-[] condition in a compound chain is
20
+ // effectively evaluated. Place the most discriminating condition last to avoid false matches.
21
+ 'data-[checked=false]:bg-surface-primary', 'data-[checked=true]:bg-surface-action-strong', 'data-[indeterminate=true]:bg-surface-action-strong',
22
+ // Border — invalid (later) beats checked/indeterminate.
23
+ 'data-[checked=false]:border-content-secondary', 'data-[checked=true]:border-stroke-action', 'data-[indeterminate=true]:border-stroke-action', 'data-[invalid=true]:border-stroke-danger', _reactNative.Platform.select({
24
+ web: [
25
+ // Invalid bg — compound selectors evaluate correctly on web.
26
+ 'data-[invalid=true]:data-[checked=true]:bg-surface-danger-strong', 'data-[invalid=true]:data-[indeterminate=true]:bg-surface-danger-strong', _constants.TRANSITION_COLORS,
27
+ // Hover — unchecked (Figma: border unchanged, bg overlay at opacity/hover)
28
+ 'data-[hover=true]:data-[checked=false]:data-[indeterminate=false]:bg-content-secondary/[0.08]',
29
+ // Hover — unchecked + invalid (overlay uses danger token)
30
+ 'data-[hover=true]:data-[invalid=true]:data-[checked=false]:data-[indeterminate=false]:bg-surface-danger-strong/[0.08]',
31
+ // Hover — checked / indeterminate (bg + border darken together)
32
+ 'data-[hover=true]:data-[checked=true]:bg-surface-action-strong-hover', 'data-[hover=true]:data-[checked=true]:border-surface-action-strong-hover', 'data-[hover=true]:data-[indeterminate=true]:bg-surface-action-strong-hover', 'data-[hover=true]:data-[indeterminate=true]:border-surface-action-strong-hover', 'data-[hover=true]:data-[checked=true]:data-[invalid=true]:bg-surface-danger-strong-hover', 'data-[hover=true]:data-[checked=true]:data-[invalid=true]:border-surface-danger-strong-hover', 'data-[hover=true]:data-[indeterminate=true]:data-[invalid=true]:bg-surface-danger-strong-hover', 'data-[hover=true]:data-[indeterminate=true]:data-[invalid=true]:border-surface-danger-strong-hover',
33
+ // Active — CSS :active pseudo-class (web root does not track press via data-active).
34
+ // data-[hover=true] guard ensures active beats hover by specificity (0,3,0 > 0,2,0).
35
+ // Unchecked — border only (Radio pattern)
36
+ 'web:active:data-[hover=true]:data-[checked=false]:data-[indeterminate=false]:border-stroke-hover', 'web:active:data-[hover=true]:data-[invalid=true]:data-[checked=false]:data-[indeterminate=false]:border-surface-danger-strong-active', 'web:active:data-[hover=true]:data-[checked=true]:bg-surface-action-strong-active', 'web:active:data-[hover=true]:data-[checked=true]:border-surface-action-strong-active', 'web:active:data-[hover=true]:data-[indeterminate=true]:bg-surface-action-strong-active', 'web:active:data-[hover=true]:data-[indeterminate=true]:border-surface-action-strong-active', 'web:active:data-[hover=true]:data-[checked=true]:data-[invalid=true]:bg-surface-danger-strong-active', 'web:active:data-[hover=true]:data-[checked=true]:data-[invalid=true]:border-surface-danger-strong-active', 'web:active:data-[hover=true]:data-[indeterminate=true]:data-[invalid=true]:bg-surface-danger-strong-active', 'web:active:data-[hover=true]:data-[indeterminate=true]:data-[invalid=true]:border-surface-danger-strong-active',
37
+ // Focus ring
38
+ 'web:data-[focus-visible=true]:outline-none', 'web:data-[focus-visible=true]:ring-2 web:data-[focus-visible=true]:ring-stroke-focus web:data-[focus-visible=true]:ring-offset-2'].join(' '),
39
+ default: [
40
+ // Native: Uniwind only evaluates the last data-[] condition in a compound chain.
41
+ // Use single-condition data-[field-state=...] selectors (emitted by CheckboxIndicator).
42
+ // checked/indeterminate + invalid → danger bg
43
+ 'data-[field-state=checked-invalid]:bg-surface-danger-strong', 'data-[field-state=indeterminate-invalid]:bg-surface-danger-strong',
44
+ // unchecked + active → border only (Radio pattern)
45
+ 'data-[field-state=active]:border-stroke-hover', 'data-[field-state=invalid-active]:border-surface-danger-strong-active',
46
+ // checked/indeterminate + active → action active bg + matching border
47
+ 'data-[field-state=checked-active]:bg-surface-action-strong-active', 'data-[field-state=checked-active]:border-surface-action-strong-active', 'data-[field-state=indeterminate-active]:bg-surface-action-strong-active', 'data-[field-state=indeterminate-active]:border-surface-action-strong-active',
48
+ // checked/indeterminate + invalid + active → danger active bg + matching border
49
+ 'data-[field-state=checked-invalid-active]:bg-surface-danger-strong-active', 'data-[field-state=checked-invalid-active]:border-surface-danger-strong-active', 'data-[field-state=indeterminate-invalid-active]:bg-surface-danger-strong-active', 'data-[field-state=indeterminate-invalid-active]:border-surface-danger-strong-active'].join(' ')
50
+ })]);
51
+ const checkboxIconVariants = exports.checkboxIconVariants = (0, _classVarianceAuthority.cva)(['text-white', 'h-5 w-5']);
52
+ const checkboxLabelVariants = exports.checkboxLabelVariants = (0, _classVarianceAuthority.cva)(['text-content-primary text-base', 'data-[disabled=true]:text-content-tertiary']);
57
53
  const checkboxGroupVariants = exports.checkboxGroupVariants = (0, _classVarianceAuthority.cva)([], {
58
54
  variants: {
59
55
  direction: {
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_classVarianceAuthority","_primitives","checkboxRootVariants","exports","cva","DISABLED_OPACITY","DISABLED_CURSOR","variants","size","small","default","defaultVariants","checkboxIndicatorVariants","Platform","select","web","TRANSITION_COLORS","join","checkboxIconVariants","checkboxLabelVariants","COLOR_TEXT_PRIMARY","checkboxGroupVariants","direction","column","row"],"sourceRoot":"../../../../src","sources":["components/Checkbox/styles.ts"],"mappings":";;;;;;AAAA,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,qBAAqB,GAAAhB,OAAA,CAAAgB,qBAAA,GAAG,IAAAf,2BAAG,EACtC,CAACgB,8BAAkB,EAAE,qCAAqC,CAAC,EAC3D;EACEb,QAAQ,EAAE;IACRC,IAAI,EAAE;MACJC,KAAK,EAAE,SAAS;MAChBC,OAAO,EAAE;IACX;EACF,CAAC;EACDC,eAAe,EAAE;IACfH,IAAI,EAAE;EACR;AACF,CACF,CAAC;AAEM,MAAMa,qBAAqB,GAAAlB,OAAA,CAAAkB,qBAAA,GAAG,IAAAjB,2BAAG,EAAC,EAAE,EAAE;EAC3CG,QAAQ,EAAE;IACRe,SAAS,EAAE;MACTC,MAAM,EAAE,OAAO;MACfC,GAAG,EAAE;IACP;EACF,CAAC;EACDb,eAAe,EAAE;IACfW,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_classVarianceAuthority","_constants","checkboxRootVariants","exports","cva","DISABLED_OPACITY","DISABLED_CURSOR","checkboxIndicatorVariants","Platform","select","web","TRANSITION_COLORS","join","default","checkboxIconVariants","checkboxLabelVariants","checkboxGroupVariants","variants","direction","column","row","defaultVariants"],"sourceRoot":"../../../../src","sources":["components/Checkbox/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEA;;AAEO,MAAMG,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,GAAG,IAAAE,2BAAG,EAAC,CACtC,+BAA+B,EAC/BC,2BAAgB,EAChBC,0BAAe;AACf;AACA,wEAAwE,CACzE,CAAC;AAEK,MAAMC,yBAAyB,GAAAJ,OAAA,CAAAI,yBAAA,GAAG,IAAAH,2BAAG,EAAC,CAC3C,6BAA6B,EAC7B,SAAS,EACT,SAAS,EACT,uBAAuB,EACvB,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA,yCAAyC,EACzC,8CAA8C,EAC9C,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AE,OAAO;MACfC,GAAG,EAAE;IACP;EACF,CAAC;EACDC,eAAe,EAAE;IACfH,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
@@ -6,98 +6,195 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.Chip = void 0;
7
7
  var _react = require("react");
8
8
  var _reactNative = require("react-native");
9
+ var _primitives = require("@cdx-ui/primitives");
9
10
  var _utils = require("@cdx-ui/utils");
11
+ var _Avatar = require("../Avatar");
10
12
  var _Icon = require("../Icon");
13
+ var _positionToDataIcon = require("../../utils/positionToDataIcon");
11
14
  var _styles = require("./styles");
12
15
  var _jsxRuntime = require("react/jsx-runtime");
13
16
  const SCOPE = 'CHIP';
14
- const Root = (0, _utils.withStyleContext)(_reactNative.View, SCOPE);
15
17
  const useChipStyleContext = () => (0, _utils.useStyleContext)(SCOPE);
16
18
 
17
19
  // =============================================================================
18
- // STYLED ROOT COMPONENT
20
+ // ROOT
19
21
  // =============================================================================
20
22
 
23
+ /** @deprecated Use {@link ChipVariant} (`'subtle'`) instead. */
24
+
25
+ /** @deprecated Use {@link ChipColor} (`'neutral'`) instead. */
26
+
27
+ let hasWarnedChipTintVariant = false;
28
+ let hasWarnedChipDefaultColor = false;
21
29
  const ChipRoot = /*#__PURE__*/(0, _react.forwardRef)(({
22
30
  children,
23
- color = 'default',
31
+ variant: variantProp = 'subtle',
32
+ size = 'default',
33
+ color: colorProp = 'neutral',
24
34
  className,
25
35
  style,
26
36
  ...props
27
37
  }, ref) => {
38
+ (0, _react.useEffect)(() => {
39
+ if (__DEV__ && variantProp === 'tint' && !hasWarnedChipTintVariant) {
40
+ hasWarnedChipTintVariant = true;
41
+ console.warn('[Chip] The `tint` variant is deprecated and will be removed in a future major release. Use `subtle` instead.');
42
+ }
43
+ }, [variantProp]);
44
+ (0, _react.useEffect)(() => {
45
+ if (__DEV__ && colorProp === 'default' && !hasWarnedChipDefaultColor) {
46
+ hasWarnedChipDefaultColor = true;
47
+ console.warn('[Chip] The `default` color is deprecated and will be removed in a future major release. Use `neutral` instead.');
48
+ }
49
+ }, [colorProp]);
50
+ const variant = variantProp === 'tint' ? 'subtle' : variantProp;
51
+ const color = colorProp === 'default' ? 'neutral' : colorProp;
52
+ const parent = (0, _utils.useParentContext)();
53
+ const ctx = (0, _react.useMemo)(() => ({
54
+ ...parent,
55
+ [SCOPE]: {
56
+ variant,
57
+ size,
58
+ color
59
+ }
60
+ }), [parent, variant, size, color]);
28
61
  const computedClassName = (0, _utils.cn)((0, _styles.chipRootVariants)({
62
+ variant,
63
+ size,
29
64
  color
30
65
  }), className);
31
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(Root, {
32
- ref: ref,
33
- className: computedClassName,
34
- style: style,
35
- context: {
36
- color
37
- },
38
- ...props,
39
- children: children
66
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_utils.ParentContext.Provider, {
67
+ value: ctx,
68
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.ChipRoot, {
69
+ ref: ref,
70
+ className: computedClassName,
71
+ style: style,
72
+ ...props,
73
+ ...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
74
+ slot: 'chip'
75
+ })),
76
+ children: children
77
+ })
40
78
  });
41
79
  });
42
80
  ChipRoot.displayName = 'Chip';
43
81
 
44
82
  // =============================================================================
45
- // STYLED LABEL COMPONENT
83
+ // LABEL
46
84
  // =============================================================================
47
85
 
48
86
  const ChipLabel = /*#__PURE__*/(0, _react.forwardRef)(({
87
+ asChild,
49
88
  className,
50
89
  children,
51
90
  style,
52
91
  ...props
53
92
  }, ref) => {
54
93
  const {
94
+ size,
95
+ variant,
55
96
  color
56
97
  } = useChipStyleContext();
57
98
  const computedClassName = (0, _utils.cn)((0, _styles.chipLabelVariants)({
99
+ size,
100
+ variant,
58
101
  color
59
102
  }), className);
60
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
103
+ const Comp = asChild ? _primitives.Slot : _reactNative.Text;
104
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(Comp, {
61
105
  ref: ref,
62
106
  className: computedClassName,
63
107
  style: style,
64
108
  ...props,
109
+ ...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
110
+ slot: 'chip-label'
111
+ })),
65
112
  children: children
66
113
  });
67
114
  });
68
115
  ChipLabel.displayName = 'Chip.Label';
69
116
 
70
117
  // =============================================================================
71
- // STYLED ICON COMPONENT
118
+ // ICON
72
119
  // =============================================================================
73
120
 
74
121
  const ChipIcon = ({
122
+ asChild,
75
123
  className,
76
124
  style,
77
125
  as,
126
+ position,
78
127
  ...props
79
128
  }) => {
80
129
  const {
130
+ size,
81
131
  color
82
132
  } = useChipStyleContext();
83
133
  const computedClassName = (0, _utils.cn)((0, _styles.chipIconVariants)({
134
+ size,
84
135
  color
85
136
  }), className);
137
+ if (asChild) {
138
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.Slot, {
139
+ className: computedClassName,
140
+ style: style,
141
+ ...props,
142
+ ...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
143
+ slot: 'chip-icon'
144
+ }), (0, _positionToDataIcon.positionToDataIcon)(position))
145
+ });
146
+ }
147
+ if (!as) {
148
+ return null;
149
+ }
86
150
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
87
151
  as: as,
88
152
  className: computedClassName,
89
153
  style: style,
90
- ...props
154
+ ...props,
155
+ ...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
156
+ slot: 'chip-icon'
157
+ }), (0, _positionToDataIcon.positionToDataIcon)(position))
91
158
  });
92
159
  };
93
160
  ChipIcon.displayName = 'Chip.Icon';
94
161
 
95
162
  // =============================================================================
96
- // COMPOUND COMPONENT EXPORT
163
+ // AVATAR
164
+ // =============================================================================
165
+
166
+ const ChipAvatar = ({
167
+ className,
168
+ style,
169
+ children,
170
+ ...props
171
+ }) => {
172
+ const {
173
+ size
174
+ } = useChipStyleContext();
175
+ // chipAvatarVariants sets w/h and the leading-edge negative margin.
176
+ // Avatar renders with size="sm" (its smallest named size) but chipAvatarVariants
177
+ // overrides the w/h via tailwind-merge so the chip size wins.
178
+ const computedClassName = (0, _utils.cn)((0, _styles.chipAvatarVariants)({
179
+ size
180
+ }), className);
181
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
182
+ size: "sm",
183
+ className: computedClassName,
184
+ style: style,
185
+ ...props,
186
+ children: children
187
+ });
188
+ };
189
+ ChipAvatar.displayName = 'Chip.Avatar';
190
+
191
+ // =============================================================================
192
+ // COMPOUND EXPORT
97
193
  // =============================================================================
98
194
 
99
195
  const Chip = exports.Chip = Object.assign(ChipRoot, {
100
196
  Label: ChipLabel,
101
- Icon: ChipIcon
197
+ Icon: ChipIcon,
198
+ Avatar: ChipAvatar
102
199
  });
103
200
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNative","_utils","_Icon","_styles","_jsxRuntime","SCOPE","Root","withStyleContext","View","useChipStyleContext","useStyleContext","ChipRoot","forwardRef","children","color","className","style","props","ref","computedClassName","cn","chipRootVariants","jsx","context","displayName","ChipLabel","chipLabelVariants","Text","ChipIcon","as","chipIconVariants","Icon","Chip","exports","Object","assign","Label"],"sourceRoot":"../../../../src","sources":["components/Chip/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAA+F,IAAAK,WAAA,GAAAL,OAAA;AAE/F,MAAMM,KAAK,GAAG,MAAM;AAEpB,MAAMC,IAAI,GAAG,IAAAC,uBAAgB,EAACC,iBAAI,EAAEH,KAAK,CAAC;AAE1C,MAAMI,mBAAmB,GAAGA,CAAA,KAAM,IAAAC,sBAAe,EAACL,KAAK,CA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AEb,SAAS;EAAEC,KAAK;EAAEa,EAAE;EAAE,GAAGZ;AAAqB,CAAC,KAAK;EACtE,MAAM;IAAEH;EAAM,CAAC,GAAGL,mBAAmB,CAAC,CAAC;EAEvC,MAAMU,iBAAiB,GAAG,IAAAC,SAAE,EAAC,IAAAU,wBAAgB,EAAC;IAAEhB;EAAM,CAAC,CAAC,EAAEC,SAAS,CAAC;EAEpE,oBAAO,IAAAX,WAAA,CAAAkB,GAAA,EAACpB,KAAA,CAAA6B,IAAI;IAACF,EAAE,EAAEA,EAAG;IAACd,SAAS,EAAEI,iBAAkB;IAACH,KAAK,EAAEA,KAAM;IAAA,GAAKC;EAAK,CAAG,CAAC;AAChF,CAAC;AAEDW,QAAQ,CAACJ,WAAW,GAAG,WAAW;;AAElC;AACA;AACA;;AAOO,MAAMQ,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAGE,MAAM,CAACC,MAAM,CAACxB,QAAQ,EAAE;EAC1CyB,KAAK,EAAEX,SAAS;EAChBM,IAAI,EAAEH;AACR,CAAC,CAA0B","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNative","_primitives","_utils","_Avatar","_Icon","_positionToDataIcon","_styles","_jsxRuntime","SCOPE","useChipStyleContext","useStyleContext","hasWarnedChipTintVariant","hasWarnedChipDefaultColor","ChipRoot","forwardRef","children","variant","variantProp","size","color","colorProp","className","style","props","ref","useEffect","__DEV__","console","warn","parent","useParentContext","ctx","useMemo","computedClassName","cn","chipRootVariants","jsx","ParentContext","Provider","value","mergeDataAttributes","dataAttributes","slot","displayName","ChipLabel","asChild","chipLabelVariants","Comp","Slot","Text","ChipIcon","as","position","chipIconVariants","positionToDataIcon","Icon","ChipAvatar","chipAvatarVariants","Avatar","Chip","exports","Object","assign","Label"],"sourceRoot":"../../../../src","sources":["components/Chip/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF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