@cdx-ui/components 0.0.1-beta.6 → 0.0.1-beta.60

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 (538) hide show
  1. package/README.md +36 -18
  2. package/lib/commonjs/components/AlertDialog/index.js +5 -4
  3. package/lib/commonjs/components/AlertDialog/index.js.map +1 -1
  4. package/lib/commonjs/components/Avatar/index.js +1 -1
  5. package/lib/commonjs/components/Avatar/styles.js +36 -29
  6. package/lib/commonjs/components/Avatar/styles.js.map +1 -1
  7. package/lib/commonjs/components/Button/index.js +16 -1
  8. package/lib/commonjs/components/Button/index.js.map +1 -1
  9. package/lib/commonjs/components/Button/styles.js +85 -26
  10. package/lib/commonjs/components/Button/styles.js.map +1 -1
  11. package/lib/commonjs/components/CLAUDE.md +90 -0
  12. package/lib/commonjs/components/Card/index.js +22 -4
  13. package/lib/commonjs/components/Card/index.js.map +1 -1
  14. package/lib/commonjs/components/Card/styles.js +27 -4
  15. package/lib/commonjs/components/Card/styles.js.map +1 -1
  16. package/lib/commonjs/components/Checkbox/index.js +5 -29
  17. package/lib/commonjs/components/Checkbox/index.js.map +1 -1
  18. package/lib/commonjs/components/Checkbox/styles.js +41 -47
  19. package/lib/commonjs/components/Checkbox/styles.js.map +1 -1
  20. package/lib/commonjs/components/Chip/index.js +78 -9
  21. package/lib/commonjs/components/Chip/index.js.map +1 -1
  22. package/lib/commonjs/components/Chip/styles.js +207 -21
  23. package/lib/commonjs/components/Chip/styles.js.map +1 -1
  24. package/lib/commonjs/components/Dialog/index.js +71 -16
  25. package/lib/commonjs/components/Dialog/index.js.map +1 -1
  26. package/lib/commonjs/components/Dialog/styles.js +60 -14
  27. package/lib/commonjs/components/Dialog/styles.js.map +1 -1
  28. package/lib/commonjs/components/Field/index.js +8 -2
  29. package/lib/commonjs/components/Field/index.js.map +1 -1
  30. package/lib/commonjs/components/Field/styles.js +4 -4
  31. package/lib/commonjs/components/Field/styles.js.map +1 -1
  32. package/lib/commonjs/components/Heading/styles.js +1 -1
  33. package/lib/commonjs/components/Heading/styles.js.map +1 -1
  34. package/lib/commonjs/components/Icon/index.js +3 -4
  35. package/lib/commonjs/components/Icon/index.js.map +1 -1
  36. package/lib/commonjs/components/IconButton/index.js +6 -1
  37. package/lib/commonjs/components/IconButton/index.js.map +1 -1
  38. package/lib/commonjs/components/IconButton/styles.js +135 -10
  39. package/lib/commonjs/components/IconButton/styles.js.map +1 -1
  40. package/lib/commonjs/components/Input/styles.js +7 -6
  41. package/lib/commonjs/components/Input/styles.js.map +1 -1
  42. package/lib/commonjs/components/Link/index.js +22 -3
  43. package/lib/commonjs/components/Link/index.js.map +1 -1
  44. package/lib/commonjs/components/Link/styles.js +56 -6
  45. package/lib/commonjs/components/Link/styles.js.map +1 -1
  46. package/lib/commonjs/components/ListItem/index.js +3 -25
  47. package/lib/commonjs/components/ListItem/index.js.map +1 -1
  48. package/lib/commonjs/components/ListItem/styles.js +29 -57
  49. package/lib/commonjs/components/ListItem/styles.js.map +1 -1
  50. package/lib/commonjs/components/ProgressSegmented/index.js +24 -10
  51. package/lib/commonjs/components/ProgressSegmented/index.js.map +1 -1
  52. package/lib/commonjs/components/Radio/index.js +167 -0
  53. package/lib/commonjs/components/Radio/index.js.map +1 -0
  54. package/lib/commonjs/components/Radio/styles.js +31 -0
  55. package/lib/commonjs/components/Radio/styles.js.map +1 -0
  56. package/lib/commonjs/components/ScopedTheme/index.js +24 -0
  57. package/lib/commonjs/components/ScopedTheme/index.js.map +1 -0
  58. package/lib/commonjs/components/Select/SelectTriggerHost.web.js +4 -0
  59. package/lib/commonjs/components/Select/SelectTriggerHost.web.js.map +1 -1
  60. package/lib/commonjs/components/Select/index.js +9 -3
  61. package/lib/commonjs/components/Select/index.js.map +1 -1
  62. package/lib/commonjs/components/Select/styles.js +17 -20
  63. package/lib/commonjs/components/Select/styles.js.map +1 -1
  64. package/lib/commonjs/components/Text/styles.js +2 -2
  65. package/lib/commonjs/components/Text/styles.js.map +1 -1
  66. package/lib/commonjs/components/Tile/index.js +251 -0
  67. package/lib/commonjs/components/Tile/index.js.map +1 -0
  68. package/lib/commonjs/components/Tile/styles.js +52 -0
  69. package/lib/commonjs/components/Tile/styles.js.map +1 -0
  70. package/lib/commonjs/components/index.js +36 -0
  71. package/lib/commonjs/components/index.js.map +1 -1
  72. package/lib/commonjs/figma/AlertDialog.Description.figma.js +20 -0
  73. package/lib/commonjs/figma/AlertDialog.Description.figma.js.map +1 -0
  74. package/lib/commonjs/figma/AlertDialog.Footer.figma.js +41 -0
  75. package/lib/commonjs/figma/AlertDialog.Footer.figma.js.map +1 -0
  76. package/lib/commonjs/figma/AlertDialog.Header.figma.js +28 -0
  77. package/lib/commonjs/figma/AlertDialog.Header.figma.js.map +1 -0
  78. package/lib/commonjs/figma/AlertDialog.Text.figma.js +20 -0
  79. package/lib/commonjs/figma/AlertDialog.Text.figma.js.map +1 -0
  80. package/lib/commonjs/figma/AlertDialog.Title.figma.js +27 -0
  81. package/lib/commonjs/figma/AlertDialog.Title.figma.js.map +1 -0
  82. package/lib/commonjs/figma/AlertDialog.figma.js +43 -0
  83. package/lib/commonjs/figma/AlertDialog.figma.js.map +1 -0
  84. package/lib/commonjs/figma/Avatar.figma.js +57 -0
  85. package/lib/commonjs/figma/Avatar.figma.js.map +1 -0
  86. package/lib/commonjs/figma/Button.figma.js +28 -15
  87. package/lib/commonjs/figma/Button.figma.js.map +1 -1
  88. package/lib/commonjs/figma/CLAUDE.md +30 -0
  89. package/lib/commonjs/figma/Card.Header.figma.js +28 -0
  90. package/lib/commonjs/figma/Card.Header.figma.js.map +1 -0
  91. package/lib/commonjs/figma/Card.figma.js +42 -0
  92. package/lib/commonjs/figma/Card.figma.js.map +1 -0
  93. package/lib/commonjs/figma/Checkbox.figma.js +55 -0
  94. package/lib/commonjs/figma/Checkbox.figma.js.map +1 -0
  95. package/lib/commonjs/figma/Chip.figma.js +68 -0
  96. package/lib/commonjs/figma/Chip.figma.js.map +1 -0
  97. package/lib/commonjs/figma/Dialog.Description.figma.js +20 -0
  98. package/lib/commonjs/figma/Dialog.Description.figma.js.map +1 -0
  99. package/lib/commonjs/figma/Dialog.Footer.figma.js +30 -0
  100. package/lib/commonjs/figma/Dialog.Footer.figma.js.map +1 -0
  101. package/lib/commonjs/figma/Dialog.Header.figma.js +29 -0
  102. package/lib/commonjs/figma/Dialog.Header.figma.js.map +1 -0
  103. package/lib/commonjs/figma/Dialog.Text.figma.js +20 -0
  104. package/lib/commonjs/figma/Dialog.Text.figma.js.map +1 -0
  105. package/lib/commonjs/figma/Dialog.Title.figma.js +27 -0
  106. package/lib/commonjs/figma/Dialog.Title.figma.js.map +1 -0
  107. package/lib/commonjs/figma/Dialog.figma.js +51 -0
  108. package/lib/commonjs/figma/Dialog.figma.js.map +1 -0
  109. package/lib/commonjs/figma/Field.Input.figma.js +57 -0
  110. package/lib/commonjs/figma/Field.Input.figma.js.map +1 -0
  111. package/lib/commonjs/figma/Field.Select.figma.js +57 -0
  112. package/lib/commonjs/figma/Field.Select.figma.js.map +1 -0
  113. package/lib/commonjs/figma/Heading.figma.js +30 -0
  114. package/lib/commonjs/figma/Heading.figma.js.map +1 -0
  115. package/lib/commonjs/figma/Icon.figma.js +20 -0
  116. package/lib/commonjs/figma/Icon.figma.js.map +1 -0
  117. package/lib/commonjs/figma/IconButton.figma.js +47 -0
  118. package/lib/commonjs/figma/IconButton.figma.js.map +1 -0
  119. package/lib/commonjs/figma/Input.figma.js +52 -0
  120. package/lib/commonjs/figma/Input.figma.js.map +1 -0
  121. package/lib/commonjs/figma/Link.figma.js +30 -0
  122. package/lib/commonjs/figma/Link.figma.js.map +1 -0
  123. package/lib/commonjs/figma/ListItem.Description.figma.js +23 -0
  124. package/lib/commonjs/figma/ListItem.Description.figma.js.map +1 -0
  125. package/lib/commonjs/figma/ListItem.LeadingSlot.figma.js +24 -0
  126. package/lib/commonjs/figma/ListItem.LeadingSlot.figma.js.map +1 -0
  127. package/lib/commonjs/figma/ListItem.Meta.figma.js +23 -0
  128. package/lib/commonjs/figma/ListItem.Meta.figma.js.map +1 -0
  129. package/lib/commonjs/figma/ListItem.SectionHeader.figma.js +24 -0
  130. package/lib/commonjs/figma/ListItem.SectionHeader.figma.js.map +1 -0
  131. package/lib/commonjs/figma/ListItem.Title.figma.js +23 -0
  132. package/lib/commonjs/figma/ListItem.Title.figma.js.map +1 -0
  133. package/lib/commonjs/figma/ListItem.TrailingSlot.figma.js +24 -0
  134. package/lib/commonjs/figma/ListItem.TrailingSlot.figma.js.map +1 -0
  135. package/lib/commonjs/figma/ListItem.figma.js +50 -0
  136. package/lib/commonjs/figma/ListItem.figma.js.map +1 -0
  137. package/lib/commonjs/figma/ProgressSegmented.figma.js +39 -0
  138. package/lib/commonjs/figma/ProgressSegmented.figma.js.map +1 -0
  139. package/lib/commonjs/figma/Radio.figma.js +40 -0
  140. package/lib/commonjs/figma/Radio.figma.js.map +1 -0
  141. package/lib/commonjs/figma/Select.figma.js +53 -0
  142. package/lib/commonjs/figma/Select.figma.js.map +1 -0
  143. package/lib/commonjs/figma/Text.figma.js +32 -0
  144. package/lib/commonjs/figma/Text.figma.js.map +1 -0
  145. package/lib/commonjs/figma/icons.figma.batch.js +27 -0
  146. package/lib/commonjs/figma/icons.figma.batch.js.map +1 -0
  147. package/lib/commonjs/figma/icons.figma.batch.json +17705 -0
  148. package/lib/commonjs/hooks/index.js +19 -0
  149. package/lib/commonjs/hooks/index.js.map +1 -0
  150. package/lib/commonjs/hooks/useForgeBottomTabScreenOptions.js +246 -0
  151. package/lib/commonjs/hooks/useForgeBottomTabScreenOptions.js.map +1 -0
  152. package/lib/commonjs/index.js +24 -0
  153. package/lib/commonjs/index.js.map +1 -1
  154. package/lib/commonjs/metro/withCdxMetroConfig.js +7 -18
  155. package/lib/commonjs/metro/withCdxMetroConfig.js.map +1 -1
  156. package/lib/commonjs/metro/withForgeMetroConfig.js +24 -0
  157. package/lib/commonjs/metro/withForgeMetroConfig.js.map +1 -0
  158. package/lib/commonjs/navigation/forgeTabIcon.js +43 -0
  159. package/lib/commonjs/navigation/forgeTabIcon.js.map +1 -0
  160. package/lib/commonjs/navigation/forgeTabIcon.native.js +35 -0
  161. package/lib/commonjs/navigation/forgeTabIcon.native.js.map +1 -0
  162. package/lib/commonjs/navigation/index.js +13 -0
  163. package/lib/commonjs/navigation/index.js.map +1 -0
  164. package/lib/commonjs/navigation/types.js +38 -0
  165. package/lib/commonjs/navigation/types.js.map +1 -0
  166. package/lib/commonjs/styles/primitives.js +43 -6
  167. package/lib/commonjs/styles/primitives.js.map +1 -1
  168. package/lib/module/components/AlertDialog/index.js +5 -4
  169. package/lib/module/components/AlertDialog/index.js.map +1 -1
  170. package/lib/module/components/Avatar/index.js +1 -1
  171. package/lib/module/components/Avatar/styles.js +36 -29
  172. package/lib/module/components/Avatar/styles.js.map +1 -1
  173. package/lib/module/components/Button/index.js +17 -2
  174. package/lib/module/components/Button/index.js.map +1 -1
  175. package/lib/module/components/Button/styles.js +85 -26
  176. package/lib/module/components/Button/styles.js.map +1 -1
  177. package/lib/module/components/CLAUDE.md +90 -0
  178. package/lib/module/components/Card/index.js +23 -4
  179. package/lib/module/components/Card/index.js.map +1 -1
  180. package/lib/module/components/Card/styles.js +27 -4
  181. package/lib/module/components/Card/styles.js.map +1 -1
  182. package/lib/module/components/Checkbox/index.js +6 -30
  183. package/lib/module/components/Checkbox/index.js.map +1 -1
  184. package/lib/module/components/Checkbox/styles.js +43 -48
  185. package/lib/module/components/Checkbox/styles.js.map +1 -1
  186. package/lib/module/components/Chip/index.js +82 -13
  187. package/lib/module/components/Chip/index.js.map +1 -1
  188. package/lib/module/components/Chip/styles.js +206 -20
  189. package/lib/module/components/Chip/styles.js.map +1 -1
  190. package/lib/module/components/Dialog/index.js +74 -19
  191. package/lib/module/components/Dialog/index.js.map +1 -1
  192. package/lib/module/components/Dialog/styles.js +60 -14
  193. package/lib/module/components/Dialog/styles.js.map +1 -1
  194. package/lib/module/components/Field/index.js +9 -3
  195. package/lib/module/components/Field/index.js.map +1 -1
  196. package/lib/module/components/Field/styles.js +4 -4
  197. package/lib/module/components/Field/styles.js.map +1 -1
  198. package/lib/module/components/Heading/styles.js +1 -1
  199. package/lib/module/components/Heading/styles.js.map +1 -1
  200. package/lib/module/components/Icon/index.js +3 -4
  201. package/lib/module/components/Icon/index.js.map +1 -1
  202. package/lib/module/components/IconButton/index.js +6 -1
  203. package/lib/module/components/IconButton/index.js.map +1 -1
  204. package/lib/module/components/IconButton/styles.js +135 -10
  205. package/lib/module/components/IconButton/styles.js.map +1 -1
  206. package/lib/module/components/Input/styles.js +7 -6
  207. package/lib/module/components/Input/styles.js.map +1 -1
  208. package/lib/module/components/Link/index.js +25 -6
  209. package/lib/module/components/Link/index.js.map +1 -1
  210. package/lib/module/components/Link/styles.js +55 -6
  211. package/lib/module/components/Link/styles.js.map +1 -1
  212. package/lib/module/components/ListItem/index.js +3 -25
  213. package/lib/module/components/ListItem/index.js.map +1 -1
  214. package/lib/module/components/ListItem/styles.js +30 -58
  215. package/lib/module/components/ListItem/styles.js.map +1 -1
  216. package/lib/module/components/ProgressSegmented/index.js +25 -11
  217. package/lib/module/components/ProgressSegmented/index.js.map +1 -1
  218. package/lib/module/components/Radio/index.js +164 -0
  219. package/lib/module/components/Radio/index.js.map +1 -0
  220. package/lib/module/components/Radio/styles.js +27 -0
  221. package/lib/module/components/Radio/styles.js.map +1 -0
  222. package/lib/module/components/ScopedTheme/index.js +19 -0
  223. package/lib/module/components/ScopedTheme/index.js.map +1 -0
  224. package/lib/module/components/Select/SelectTriggerHost.web.js +4 -0
  225. package/lib/module/components/Select/SelectTriggerHost.web.js.map +1 -1
  226. package/lib/module/components/Select/index.js +10 -4
  227. package/lib/module/components/Select/index.js.map +1 -1
  228. package/lib/module/components/Select/styles.js +18 -21
  229. package/lib/module/components/Select/styles.js.map +1 -1
  230. package/lib/module/components/Text/styles.js +2 -2
  231. package/lib/module/components/Text/styles.js.map +1 -1
  232. package/lib/module/components/Tile/index.js +243 -0
  233. package/lib/module/components/Tile/index.js.map +1 -0
  234. package/lib/module/components/Tile/styles.js +48 -0
  235. package/lib/module/components/Tile/styles.js.map +1 -0
  236. package/lib/module/components/index.js +3 -0
  237. package/lib/module/components/index.js.map +1 -1
  238. package/lib/module/figma/AlertDialog.Description.figma.js +14 -0
  239. package/lib/module/figma/AlertDialog.Description.figma.js.map +1 -0
  240. package/lib/module/figma/AlertDialog.Footer.figma.js +35 -0
  241. package/lib/module/figma/AlertDialog.Footer.figma.js.map +1 -0
  242. package/lib/module/figma/AlertDialog.Header.figma.js +22 -0
  243. package/lib/module/figma/AlertDialog.Header.figma.js.map +1 -0
  244. package/lib/module/figma/AlertDialog.Text.figma.js +14 -0
  245. package/lib/module/figma/AlertDialog.Text.figma.js.map +1 -0
  246. package/lib/module/figma/AlertDialog.Title.figma.js +21 -0
  247. package/lib/module/figma/AlertDialog.Title.figma.js.map +1 -0
  248. package/lib/module/figma/AlertDialog.figma.js +37 -0
  249. package/lib/module/figma/AlertDialog.figma.js.map +1 -0
  250. package/lib/module/figma/Avatar.figma.js +51 -0
  251. package/lib/module/figma/Avatar.figma.js.map +1 -0
  252. package/lib/module/figma/Button.figma.js +28 -15
  253. package/lib/module/figma/Button.figma.js.map +1 -1
  254. package/lib/module/figma/CLAUDE.md +30 -0
  255. package/lib/module/figma/Card.Header.figma.js +22 -0
  256. package/lib/module/figma/Card.Header.figma.js.map +1 -0
  257. package/lib/module/figma/Card.figma.js +36 -0
  258. package/lib/module/figma/Card.figma.js.map +1 -0
  259. package/lib/module/figma/Checkbox.figma.js +49 -0
  260. package/lib/module/figma/Checkbox.figma.js.map +1 -0
  261. package/lib/module/figma/Chip.figma.js +62 -0
  262. package/lib/module/figma/Chip.figma.js.map +1 -0
  263. package/lib/module/figma/Dialog.Description.figma.js +14 -0
  264. package/lib/module/figma/Dialog.Description.figma.js.map +1 -0
  265. package/lib/module/figma/Dialog.Footer.figma.js +24 -0
  266. package/lib/module/figma/Dialog.Footer.figma.js.map +1 -0
  267. package/lib/module/figma/Dialog.Header.figma.js +23 -0
  268. package/lib/module/figma/Dialog.Header.figma.js.map +1 -0
  269. package/lib/module/figma/Dialog.Text.figma.js +14 -0
  270. package/lib/module/figma/Dialog.Text.figma.js.map +1 -0
  271. package/lib/module/figma/Dialog.Title.figma.js +21 -0
  272. package/lib/module/figma/Dialog.Title.figma.js.map +1 -0
  273. package/lib/module/figma/Dialog.figma.js +45 -0
  274. package/lib/module/figma/Dialog.figma.js.map +1 -0
  275. package/lib/module/figma/Field.Input.figma.js +51 -0
  276. package/lib/module/figma/Field.Input.figma.js.map +1 -0
  277. package/lib/module/figma/Field.Select.figma.js +51 -0
  278. package/lib/module/figma/Field.Select.figma.js.map +1 -0
  279. package/lib/module/figma/Heading.figma.js +24 -0
  280. package/lib/module/figma/Heading.figma.js.map +1 -0
  281. package/lib/module/figma/Icon.figma.js +14 -0
  282. package/lib/module/figma/Icon.figma.js.map +1 -0
  283. package/lib/module/figma/IconButton.figma.js +41 -0
  284. package/lib/module/figma/IconButton.figma.js.map +1 -0
  285. package/lib/module/figma/Input.figma.js +46 -0
  286. package/lib/module/figma/Input.figma.js.map +1 -0
  287. package/lib/module/figma/Link.figma.js +24 -0
  288. package/lib/module/figma/Link.figma.js.map +1 -0
  289. package/lib/module/figma/ListItem.Description.figma.js +17 -0
  290. package/lib/module/figma/ListItem.Description.figma.js.map +1 -0
  291. package/lib/module/figma/ListItem.LeadingSlot.figma.js +18 -0
  292. package/lib/module/figma/ListItem.LeadingSlot.figma.js.map +1 -0
  293. package/lib/module/figma/ListItem.Meta.figma.js +17 -0
  294. package/lib/module/figma/ListItem.Meta.figma.js.map +1 -0
  295. package/lib/module/figma/ListItem.SectionHeader.figma.js +18 -0
  296. package/lib/module/figma/ListItem.SectionHeader.figma.js.map +1 -0
  297. package/lib/module/figma/ListItem.Title.figma.js +17 -0
  298. package/lib/module/figma/ListItem.Title.figma.js.map +1 -0
  299. package/lib/module/figma/ListItem.TrailingSlot.figma.js +18 -0
  300. package/lib/module/figma/ListItem.TrailingSlot.figma.js.map +1 -0
  301. package/lib/module/figma/ListItem.figma.js +44 -0
  302. package/lib/module/figma/ListItem.figma.js.map +1 -0
  303. package/lib/module/figma/ProgressSegmented.figma.js +33 -0
  304. package/lib/module/figma/ProgressSegmented.figma.js.map +1 -0
  305. package/lib/module/figma/Radio.figma.js +34 -0
  306. package/lib/module/figma/Radio.figma.js.map +1 -0
  307. package/lib/module/figma/Select.figma.js +47 -0
  308. package/lib/module/figma/Select.figma.js.map +1 -0
  309. package/lib/module/figma/Text.figma.js +26 -0
  310. package/lib/module/figma/Text.figma.js.map +1 -0
  311. package/lib/module/figma/icons.figma.batch.js +22 -0
  312. package/lib/module/figma/icons.figma.batch.js.map +1 -0
  313. package/lib/module/figma/icons.figma.batch.json +17705 -0
  314. package/lib/module/hooks/index.js +4 -0
  315. package/lib/module/hooks/index.js.map +1 -0
  316. package/lib/module/hooks/useForgeBottomTabScreenOptions.js +242 -0
  317. package/lib/module/hooks/useForgeBottomTabScreenOptions.js.map +1 -0
  318. package/lib/module/index.js +2 -0
  319. package/lib/module/index.js.map +1 -1
  320. package/lib/module/metro/withCdxMetroConfig.js +3 -17
  321. package/lib/module/metro/withCdxMetroConfig.js.map +1 -1
  322. package/lib/module/metro/withForgeMetroConfig.js +20 -0
  323. package/lib/module/metro/withForgeMetroConfig.js.map +1 -0
  324. package/lib/module/navigation/forgeTabIcon.js +39 -0
  325. package/lib/module/navigation/forgeTabIcon.js.map +1 -0
  326. package/lib/module/navigation/forgeTabIcon.native.js +31 -0
  327. package/lib/module/navigation/forgeTabIcon.native.js.map +1 -0
  328. package/lib/module/navigation/index.js +4 -0
  329. package/lib/module/navigation/index.js.map +1 -0
  330. package/lib/module/navigation/types.js +36 -0
  331. package/lib/module/navigation/types.js.map +1 -0
  332. package/lib/module/styles/primitives.js +43 -6
  333. package/lib/module/styles/primitives.js.map +1 -1
  334. package/lib/typescript/components/AlertDialog/index.d.ts +3 -2
  335. package/lib/typescript/components/AlertDialog/index.d.ts.map +1 -1
  336. package/lib/typescript/components/Avatar/styles.d.ts +4 -4
  337. package/lib/typescript/components/Avatar/styles.d.ts.map +1 -1
  338. package/lib/typescript/components/Button/index.d.ts +13 -1
  339. package/lib/typescript/components/Button/index.d.ts.map +1 -1
  340. package/lib/typescript/components/Button/styles.d.ts +5 -3
  341. package/lib/typescript/components/Button/styles.d.ts.map +1 -1
  342. package/lib/typescript/components/Card/index.d.ts +4 -3
  343. package/lib/typescript/components/Card/index.d.ts.map +1 -1
  344. package/lib/typescript/components/Card/styles.d.ts +13 -3
  345. package/lib/typescript/components/Card/styles.d.ts.map +1 -1
  346. package/lib/typescript/components/Checkbox/index.d.ts +1 -2
  347. package/lib/typescript/components/Checkbox/index.d.ts.map +1 -1
  348. package/lib/typescript/components/Checkbox/styles.d.ts +4 -14
  349. package/lib/typescript/components/Checkbox/styles.d.ts.map +1 -1
  350. package/lib/typescript/components/Chip/index.d.ts +19 -6
  351. package/lib/typescript/components/Chip/index.d.ts.map +1 -1
  352. package/lib/typescript/components/Chip/styles.d.ts +13 -4
  353. package/lib/typescript/components/Chip/styles.d.ts.map +1 -1
  354. package/lib/typescript/components/Dialog/index.d.ts +16 -10
  355. package/lib/typescript/components/Dialog/index.d.ts.map +1 -1
  356. package/lib/typescript/components/Dialog/styles.d.ts +16 -5
  357. package/lib/typescript/components/Dialog/styles.d.ts.map +1 -1
  358. package/lib/typescript/components/Field/FieldLabel.web.d.ts +2 -2
  359. package/lib/typescript/components/Field/FieldLabel.web.d.ts.map +1 -1
  360. package/lib/typescript/components/Field/index.d.ts.map +1 -1
  361. package/lib/typescript/components/Field/styles.d.ts.map +1 -1
  362. package/lib/typescript/components/Heading/styles.d.ts +1 -1
  363. package/lib/typescript/components/Icon/index.d.ts +5 -5
  364. package/lib/typescript/components/Icon/index.d.ts.map +1 -1
  365. package/lib/typescript/components/IconButton/index.d.ts +3 -3
  366. package/lib/typescript/components/IconButton/index.d.ts.map +1 -1
  367. package/lib/typescript/components/IconButton/styles.d.ts +6 -2
  368. package/lib/typescript/components/IconButton/styles.d.ts.map +1 -1
  369. package/lib/typescript/components/Input/styles.d.ts.map +1 -1
  370. package/lib/typescript/components/Link/index.d.ts +2 -2
  371. package/lib/typescript/components/Link/index.d.ts.map +1 -1
  372. package/lib/typescript/components/Link/styles.d.ts +9 -2
  373. package/lib/typescript/components/Link/styles.d.ts.map +1 -1
  374. package/lib/typescript/components/ListItem/index.d.ts.map +1 -1
  375. package/lib/typescript/components/ListItem/styles.d.ts +3 -10
  376. package/lib/typescript/components/ListItem/styles.d.ts.map +1 -1
  377. package/lib/typescript/components/ProgressSegmented/index.d.ts +14 -3
  378. package/lib/typescript/components/ProgressSegmented/index.d.ts.map +1 -1
  379. package/lib/typescript/components/Radio/index.d.ts +40 -0
  380. package/lib/typescript/components/Radio/index.d.ts.map +1 -0
  381. package/lib/typescript/components/Radio/styles.d.ts +8 -0
  382. package/lib/typescript/components/Radio/styles.d.ts.map +1 -0
  383. package/lib/typescript/components/ScopedTheme/index.d.ts +16 -0
  384. package/lib/typescript/components/ScopedTheme/index.d.ts.map +1 -0
  385. package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts +3 -0
  386. package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts.map +1 -1
  387. package/lib/typescript/components/Select/index.d.ts +1 -1
  388. package/lib/typescript/components/Select/index.d.ts.map +1 -1
  389. package/lib/typescript/components/Select/styles.d.ts.map +1 -1
  390. package/lib/typescript/components/Stack/styles.d.ts +2 -2
  391. package/lib/typescript/components/Text/styles.d.ts +1 -1
  392. package/lib/typescript/components/Tile/index.d.ts +70 -0
  393. package/lib/typescript/components/Tile/index.d.ts.map +1 -0
  394. package/lib/typescript/components/Tile/styles.d.ts +18 -0
  395. package/lib/typescript/components/Tile/styles.d.ts.map +1 -0
  396. package/lib/typescript/components/index.d.ts +3 -0
  397. package/lib/typescript/components/index.d.ts.map +1 -1
  398. package/lib/typescript/figma/AlertDialog.Description.figma.d.ts +8 -0
  399. package/lib/typescript/figma/AlertDialog.Description.figma.d.ts.map +1 -0
  400. package/lib/typescript/figma/AlertDialog.Footer.figma.d.ts +8 -0
  401. package/lib/typescript/figma/AlertDialog.Footer.figma.d.ts.map +1 -0
  402. package/lib/typescript/figma/AlertDialog.Header.figma.d.ts +8 -0
  403. package/lib/typescript/figma/AlertDialog.Header.figma.d.ts.map +1 -0
  404. package/lib/typescript/figma/AlertDialog.Text.figma.d.ts +8 -0
  405. package/lib/typescript/figma/AlertDialog.Text.figma.d.ts.map +1 -0
  406. package/lib/typescript/figma/AlertDialog.Title.figma.d.ts +8 -0
  407. package/lib/typescript/figma/AlertDialog.Title.figma.d.ts.map +1 -0
  408. package/lib/typescript/figma/AlertDialog.figma.d.ts +8 -0
  409. package/lib/typescript/figma/AlertDialog.figma.d.ts.map +1 -0
  410. package/lib/typescript/figma/Avatar.figma.d.ts +11 -0
  411. package/lib/typescript/figma/Avatar.figma.d.ts.map +1 -0
  412. package/lib/typescript/figma/Button.figma.d.ts.map +1 -1
  413. package/lib/typescript/figma/Card.Header.figma.d.ts +8 -0
  414. package/lib/typescript/figma/Card.Header.figma.d.ts.map +1 -0
  415. package/lib/typescript/figma/Card.figma.d.ts +8 -0
  416. package/lib/typescript/figma/Card.figma.d.ts.map +1 -0
  417. package/lib/typescript/figma/Checkbox.figma.d.ts +8 -0
  418. package/lib/typescript/figma/Checkbox.figma.d.ts.map +1 -0
  419. package/lib/typescript/figma/Chip.figma.d.ts +8 -0
  420. package/lib/typescript/figma/Chip.figma.d.ts.map +1 -0
  421. package/lib/typescript/figma/Dialog.Description.figma.d.ts +8 -0
  422. package/lib/typescript/figma/Dialog.Description.figma.d.ts.map +1 -0
  423. package/lib/typescript/figma/Dialog.Footer.figma.d.ts +8 -0
  424. package/lib/typescript/figma/Dialog.Footer.figma.d.ts.map +1 -0
  425. package/lib/typescript/figma/Dialog.Header.figma.d.ts +8 -0
  426. package/lib/typescript/figma/Dialog.Header.figma.d.ts.map +1 -0
  427. package/lib/typescript/figma/Dialog.Text.figma.d.ts +8 -0
  428. package/lib/typescript/figma/Dialog.Text.figma.d.ts.map +1 -0
  429. package/lib/typescript/figma/Dialog.Title.figma.d.ts +8 -0
  430. package/lib/typescript/figma/Dialog.Title.figma.d.ts.map +1 -0
  431. package/lib/typescript/figma/Dialog.figma.d.ts +8 -0
  432. package/lib/typescript/figma/Dialog.figma.d.ts.map +1 -0
  433. package/lib/typescript/figma/Field.Input.figma.d.ts +8 -0
  434. package/lib/typescript/figma/Field.Input.figma.d.ts.map +1 -0
  435. package/lib/typescript/figma/Field.Select.figma.d.ts +8 -0
  436. package/lib/typescript/figma/Field.Select.figma.d.ts.map +1 -0
  437. package/lib/typescript/figma/Heading.figma.d.ts +8 -0
  438. package/lib/typescript/figma/Heading.figma.d.ts.map +1 -0
  439. package/lib/typescript/figma/Icon.figma.d.ts +8 -0
  440. package/lib/typescript/figma/Icon.figma.d.ts.map +1 -0
  441. package/lib/typescript/figma/IconButton.figma.d.ts +8 -0
  442. package/lib/typescript/figma/IconButton.figma.d.ts.map +1 -0
  443. package/lib/typescript/figma/Input.figma.d.ts +8 -0
  444. package/lib/typescript/figma/Input.figma.d.ts.map +1 -0
  445. package/lib/typescript/figma/Link.figma.d.ts +8 -0
  446. package/lib/typescript/figma/Link.figma.d.ts.map +1 -0
  447. package/lib/typescript/figma/ListItem.Description.figma.d.ts +11 -0
  448. package/lib/typescript/figma/ListItem.Description.figma.d.ts.map +1 -0
  449. package/lib/typescript/figma/ListItem.LeadingSlot.figma.d.ts +8 -0
  450. package/lib/typescript/figma/ListItem.LeadingSlot.figma.d.ts.map +1 -0
  451. package/lib/typescript/figma/ListItem.Meta.figma.d.ts +11 -0
  452. package/lib/typescript/figma/ListItem.Meta.figma.d.ts.map +1 -0
  453. package/lib/typescript/figma/ListItem.SectionHeader.figma.d.ts +8 -0
  454. package/lib/typescript/figma/ListItem.SectionHeader.figma.d.ts.map +1 -0
  455. package/lib/typescript/figma/ListItem.Title.figma.d.ts +11 -0
  456. package/lib/typescript/figma/ListItem.Title.figma.d.ts.map +1 -0
  457. package/lib/typescript/figma/ListItem.TrailingSlot.figma.d.ts +8 -0
  458. package/lib/typescript/figma/ListItem.TrailingSlot.figma.d.ts.map +1 -0
  459. package/lib/typescript/figma/ListItem.figma.d.ts +8 -0
  460. package/lib/typescript/figma/ListItem.figma.d.ts.map +1 -0
  461. package/lib/typescript/figma/ProgressSegmented.figma.d.ts +8 -0
  462. package/lib/typescript/figma/ProgressSegmented.figma.d.ts.map +1 -0
  463. package/lib/typescript/figma/Radio.figma.d.ts +8 -0
  464. package/lib/typescript/figma/Radio.figma.d.ts.map +1 -0
  465. package/lib/typescript/figma/Select.figma.d.ts +8 -0
  466. package/lib/typescript/figma/Select.figma.d.ts.map +1 -0
  467. package/lib/typescript/figma/Text.figma.d.ts +11 -0
  468. package/lib/typescript/figma/Text.figma.d.ts.map +1 -0
  469. package/lib/typescript/figma/icons.figma.batch.d.ts +14 -0
  470. package/lib/typescript/figma/icons.figma.batch.d.ts.map +1 -0
  471. package/lib/typescript/hooks/index.d.ts +2 -0
  472. package/lib/typescript/hooks/index.d.ts.map +1 -0
  473. package/lib/typescript/hooks/useForgeBottomTabScreenOptions.d.ts +137 -0
  474. package/lib/typescript/hooks/useForgeBottomTabScreenOptions.d.ts.map +1 -0
  475. package/lib/typescript/index.d.ts +2 -0
  476. package/lib/typescript/index.d.ts.map +1 -1
  477. package/lib/typescript/metro/withCdxMetroConfig.d.ts +4 -18
  478. package/lib/typescript/metro/withCdxMetroConfig.d.ts.map +1 -1
  479. package/lib/typescript/metro/withForgeMetroConfig.d.ts +19 -0
  480. package/lib/typescript/metro/withForgeMetroConfig.d.ts.map +1 -0
  481. package/lib/typescript/navigation/forgeTabIcon.d.ts +27 -0
  482. package/lib/typescript/navigation/forgeTabIcon.d.ts.map +1 -0
  483. package/lib/typescript/navigation/forgeTabIcon.native.d.ts +15 -0
  484. package/lib/typescript/navigation/forgeTabIcon.native.d.ts.map +1 -0
  485. package/lib/typescript/navigation/index.d.ts +4 -0
  486. package/lib/typescript/navigation/index.d.ts.map +1 -0
  487. package/lib/typescript/navigation/types.d.ts +37 -0
  488. package/lib/typescript/navigation/types.d.ts.map +1 -0
  489. package/lib/typescript/styles/primitives.d.ts +38 -0
  490. package/lib/typescript/styles/primitives.d.ts.map +1 -1
  491. package/package.json +10 -8
  492. package/src/components/AlertDialog/index.tsx +8 -6
  493. package/src/components/Avatar/index.tsx +1 -1
  494. package/src/components/Avatar/styles.ts +49 -34
  495. package/src/components/Button/index.tsx +39 -5
  496. package/src/components/Button/styles.ts +56 -27
  497. package/src/components/CLAUDE.md +90 -0
  498. package/src/components/Card/index.tsx +41 -16
  499. package/src/components/Card/styles.ts +42 -15
  500. package/src/components/Checkbox/index.tsx +8 -19
  501. package/src/components/Checkbox/styles.ts +84 -86
  502. package/src/components/Chip/index.tsx +104 -27
  503. package/src/components/Chip/styles.ts +232 -18
  504. package/src/components/Dialog/index.tsx +95 -29
  505. package/src/components/Dialog/styles.ts +72 -30
  506. package/src/components/Field/FieldLabel.web.tsx +1 -1
  507. package/src/components/Field/index.tsx +10 -3
  508. package/src/components/Field/styles.ts +5 -4
  509. package/src/components/Heading/styles.ts +1 -1
  510. package/src/components/Icon/index.tsx +6 -7
  511. package/src/components/IconButton/index.tsx +7 -6
  512. package/src/components/IconButton/styles.ts +136 -10
  513. package/src/components/Input/styles.ts +15 -9
  514. package/src/components/Link/index.tsx +22 -9
  515. package/src/components/Link/styles.ts +49 -9
  516. package/src/components/ListItem/index.tsx +8 -23
  517. package/src/components/ListItem/styles.ts +50 -81
  518. package/src/components/ProgressSegmented/index.tsx +50 -14
  519. package/src/components/Radio/index.tsx +192 -0
  520. package/src/components/Radio/styles.ts +59 -0
  521. package/src/components/ScopedTheme/index.tsx +17 -0
  522. package/src/components/Select/SelectTriggerHost.web.tsx +8 -1
  523. package/src/components/Select/index.tsx +9 -4
  524. package/src/components/Select/styles.ts +49 -51
  525. package/src/components/Text/styles.ts +2 -2
  526. package/src/components/Tile/index.tsx +296 -0
  527. package/src/components/Tile/styles.ts +82 -0
  528. package/src/components/index.ts +3 -0
  529. package/src/hooks/index.ts +5 -0
  530. package/src/hooks/useForgeBottomTabScreenOptions.ts +245 -0
  531. package/src/index.ts +2 -0
  532. package/src/metro/withCdxMetroConfig.ts +4 -29
  533. package/src/metro/withForgeMetroConfig.ts +29 -0
  534. package/src/navigation/forgeTabIcon.native.ts +36 -0
  535. package/src/navigation/forgeTabIcon.ts +33 -0
  536. package/src/navigation/index.ts +3 -0
  537. package/src/navigation/types.ts +54 -0
  538. package/src/styles/primitives.ts +43 -6
@@ -6,43 +6,74 @@ 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");
11
13
  var _styles = require("./styles");
12
14
  var _jsxRuntime = require("react/jsx-runtime");
13
15
  const SCOPE = 'CHIP';
14
- const Root = (0, _utils.withStyleContext)(_reactNative.View, SCOPE);
16
+ const RootView = (0, _utils.withStyleContext)(_reactNative.View, SCOPE);
17
+ const RootPressable = (0, _utils.withStyleContext)(_reactNative.Pressable, SCOPE);
18
+ const ChipPrimitive = (0, _primitives.createChip)({
19
+ View: RootView,
20
+ Pressable: RootPressable
21
+ });
15
22
  const useChipStyleContext = () => (0, _utils.useStyleContext)(SCOPE);
16
23
 
17
24
  // =============================================================================
18
- // STYLED ROOT COMPONENT
25
+ // ROOT
19
26
  // =============================================================================
20
27
 
21
28
  const ChipRoot = /*#__PURE__*/(0, _react.forwardRef)(({
22
29
  children,
30
+ variant = 'tint',
31
+ size = 'default',
23
32
  color = 'default',
24
33
  className,
25
34
  style,
35
+ asChild,
26
36
  ...props
27
37
  }, ref) => {
38
+ const parentContextValues = (0, _utils.useParentContext)();
39
+ const styleContextValues = (0, _react.useMemo)(() => ({
40
+ ...parentContextValues,
41
+ [SCOPE]: {
42
+ variant,
43
+ size,
44
+ color
45
+ }
46
+ }), [parentContextValues, variant, size, color]);
28
47
  const computedClassName = (0, _utils.cn)((0, _styles.chipRootVariants)({
48
+ variant,
49
+ size,
29
50
  color
30
51
  }), className);
31
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(Root, {
52
+ const root = /*#__PURE__*/(0, _jsxRuntime.jsx)(ChipPrimitive, {
32
53
  ref: ref,
54
+ asChild: asChild,
33
55
  className: computedClassName,
34
- style: style,
35
56
  context: {
57
+ variant,
58
+ size,
36
59
  color
37
60
  },
61
+ style: style,
38
62
  ...props,
39
63
  children: children
40
64
  });
65
+ if (asChild) {
66
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_utils.ParentContext.Provider, {
67
+ value: styleContextValues,
68
+ children: root
69
+ });
70
+ }
71
+ return root;
41
72
  });
42
73
  ChipRoot.displayName = 'Chip';
43
74
 
44
75
  // =============================================================================
45
- // STYLED LABEL COMPONENT
76
+ // LABEL
46
77
  // =============================================================================
47
78
 
48
79
  const ChipLabel = /*#__PURE__*/(0, _react.forwardRef)(({
@@ -52,9 +83,13 @@ const ChipLabel = /*#__PURE__*/(0, _react.forwardRef)(({
52
83
  ...props
53
84
  }, ref) => {
54
85
  const {
86
+ size,
87
+ variant,
55
88
  color
56
89
  } = useChipStyleContext();
57
90
  const computedClassName = (0, _utils.cn)((0, _styles.chipLabelVariants)({
91
+ size,
92
+ variant,
58
93
  color
59
94
  }), className);
60
95
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
@@ -68,20 +103,24 @@ const ChipLabel = /*#__PURE__*/(0, _react.forwardRef)(({
68
103
  ChipLabel.displayName = 'Chip.Label';
69
104
 
70
105
  // =============================================================================
71
- // STYLED ICON COMPONENT
106
+ // ICON
72
107
  // =============================================================================
73
108
 
74
109
  const ChipIcon = ({
75
110
  className,
76
111
  style,
77
112
  as,
113
+ slot,
78
114
  ...props
79
115
  }) => {
80
116
  const {
117
+ size,
81
118
  color
82
119
  } = useChipStyleContext();
83
120
  const computedClassName = (0, _utils.cn)((0, _styles.chipIconVariants)({
84
- color
121
+ size,
122
+ color,
123
+ slot
85
124
  }), className);
86
125
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
87
126
  as: as,
@@ -93,11 +132,41 @@ const ChipIcon = ({
93
132
  ChipIcon.displayName = 'Chip.Icon';
94
133
 
95
134
  // =============================================================================
96
- // COMPOUND COMPONENT EXPORT
135
+ // AVATAR
136
+ // =============================================================================
137
+
138
+ const ChipAvatar = ({
139
+ className,
140
+ style,
141
+ children,
142
+ ...props
143
+ }) => {
144
+ const {
145
+ size
146
+ } = useChipStyleContext();
147
+ // chipAvatarVariants sets w/h and the leading slot negative margin.
148
+ // Avatar renders with size="sm" (its smallest named size) but chipAvatarVariants
149
+ // overrides the w/h via tailwind-merge so the chip size wins.
150
+ const computedClassName = (0, _utils.cn)((0, _styles.chipAvatarVariants)({
151
+ size
152
+ }), className);
153
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
154
+ size: "sm",
155
+ className: computedClassName,
156
+ style: style,
157
+ ...props,
158
+ children: children
159
+ });
160
+ };
161
+ ChipAvatar.displayName = 'Chip.Avatar';
162
+
163
+ // =============================================================================
164
+ // COMPOUND EXPORT
97
165
  // =============================================================================
98
166
 
99
167
  const Chip = exports.Chip = Object.assign(ChipRoot, {
100
168
  Label: ChipLabel,
101
- Icon: ChipIcon
169
+ Icon: ChipIcon,
170
+ Avatar: ChipAvatar
102
171
  });
103
172
  //# 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,CAAiB;;AAExE;AACA;AACA;;AAOA,MAAMM,QAAQ,gBAAG,IAAAC,iBAAU,EACzB,CAAC;EAAEC,QAAQ;EAAEC,KAAK,GAAG,SAAS;EAAEC,SAAS;EAAEC,KAAK;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EACpE,MAAMC,iBAAiB,GAAG,IAAAC,SAAE,EAAC,IAAAC,wBAAgB,EAAC;IAAEP;EAAM,CAAC,CAAC,EAAEC,SAAS,CAAC;EAEpE,oBACE,IAAAX,WAAA,CAAAkB,GAAA,EAAChB,IAAI;IAACY,GAAG,EAAEA,GAAI;IAACH,SAAS,EAAEI,iBAAkB;IAACH,KAAK,EAAEA,KAAM;IAACO,OAAO,EAAE;MAAET;IAAM,CAAE;IAAA,GAAKG,KAAK;IAAAJ,QAAA,EACtFA;EAAQ,CACL,CAAC;AAEX,CACF,CAAC;AAEDF,QAAQ,CAACa,WAAW,GAAG,MAAM;;AAE7B;AACA;AACA;;AAOA,MAAMC,SAAS,gBAAG,IAAAb,iBAAU,EAC1B,CAAC;EAAEG,SAAS;EAAEF,QAAQ;EAAEG,KAAK;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,K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COPE","RootView","withStyleContext","View","RootPressable","Pressable","ChipPrimitive","createChip","useChipStyleContext","useStyleContext","ChipRoot","forwardRef","children","variant","size","color","className","style","asChild","props","ref","parentContextValues","useParentContext","styleContextValues","useMemo","computedClassName","cn","chipRootVariants","root","jsx","context","ParentContext","Provider","value","displayName","ChipLabel","chipLabelVariants","Text","ChipIcon","as","slot","chipIconVariants","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,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAQA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAMkB,IAAAO,WAAA,GAAAP,OAAA;AAElB,MAAMQ,KAAK,GAAG,MAAM;AAEpB,MAAMC,QAAQ,GAAG,IAAAC,uBAAgB,EAACC,iBAAI,EAAEH,KAAK,CAAC;AAC9C,MAAMI,aAAa,GAAG,IAAAF,uBAAgB,EAACG,sBAAS,EAAEL,KAAK,CAAC;AAExD,MAAMM,aAAa,GAAG,IAAAC,sBAAU,EAAC;EAC/BJ,IAAI,EAAEF,QAAQ;EACdI,SAAS,EAAED;AACb,CAAC,CAAC;AAEF,MAAMI,mBAAmB,GAAGA,CAAA,KAAM,IAAAC,sBAAe,EAACT,KAAK,CAAqB;;AAE5E;AACA;AACA;;AAOA,MAAMU,QAAQ,gBAAG,IAAAC,iBAAU,EACzB,CACE;EACEC,QAAQ;EACRC,OAAO,GAAG,MAAM;EAChBC,IAAI,GAAG,SAAS;EAChBC,KAAK,GAAG,SAAS;EACjBC,SAAS;EACTC,KAAK;EACLC,OAAO;EACP,GAAGC;AACL,CAAC,EACDC,GAAG,KACA;EACH,MAAMC,mBAAmB,GAAG,I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AE9B;EAAK,CAAC,CAAC,EAAEE,SAAS,CAAC;EAErE,oBACE,IAAAjB,WAAA,CAAA8B,GAAA,EAACjC,OAAA,CAAAiD,MAAM;IAAC/B,IAAI,EAAC,IAAI;IAACE,SAAS,EAAES,iBAAkB;IAACR,KAAK,EAAEA,KAAM;IAAA,GAAKE,KAAK;IAAAP,QAAA,EACpEA;EAAQ,CACH,CAAC;AAEb,CAAC;AAED+B,UAAU,CAACT,WAAW,GAAG,aAAa;;AAEtC;AACA;AACA;;AAQO,MAAMY,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAGE,MAAM,CAACC,MAAM,CAACvC,QAAQ,EAAE;EAC1CwC,KAAK,EAAEf,SAAS;EAChBO,IAAI,EAAEJ,QAAQ;EACdO,MAAM,EAAEF;AACV,CAAC,CAA0B","ignoreList":[]}
@@ -3,50 +3,236 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.chipRootVariants = exports.chipLabelVariants = exports.chipIconVariants = void 0;
6
+ exports.chipRootVariants = exports.chipLabelVariants = exports.chipIconVariants = exports.chipAvatarVariants = void 0;
7
+ var _reactNative = require("react-native");
7
8
  var _classVarianceAuthority = require("class-variance-authority");
8
- const chipRootVariants = exports.chipRootVariants = (0, _classVarianceAuthority.cva)(['flex-row items-center justify-center rounded-full px-2 py-1 gap-1.5 self-start'], {
9
+ var _primitives = require("../../styles/primitives");
10
+ const chipInteractiveRoot = [_primitives.TRANSITION_COLORS, 'data-[disabled=true]:opacity-[var(--opacity-disabled)]', _primitives.DISABLED_CURSOR, _reactNative.Platform.select({
11
+ web: ['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(' '),
12
+ default: ''
13
+ })];
14
+ const chipRootVariants = exports.chipRootVariants = (0, _classVarianceAuthority.cva)(['flex-row items-center justify-center self-start overflow-hidden', ...chipInteractiveRoot], {
9
15
  variants: {
16
+ variant: {
17
+ tint: [],
18
+ outline: ['bg-transparent', 'border']
19
+ },
10
20
  color: {
11
- default: 'bg-surface-neutral-tint',
12
- error: 'bg-surface-danger-tint',
13
- info: 'bg-surface-info-tint',
14
- success: 'bg-surface-success-tint',
15
- warning: 'bg-surface-warning-tint'
21
+ default: [],
22
+ action: [],
23
+ danger: [],
24
+ warning: [],
25
+ success: [],
26
+ info: []
27
+ },
28
+ size: {
29
+ default: 'h-8 max-h-8 min-h-8 gap-1.5 px-3 rounded-lg',
30
+ small: 'h-6 max-h-6 min-h-6 gap-1 px-1.5 rounded-md',
31
+ xsmall: 'h-4 max-h-4 min-h-4 gap-0.5 px-1 rounded-sm'
16
32
  }
17
33
  },
34
+ compoundVariants: [
35
+ // ── tint × color ────────────────────────────────────────────────────
36
+ {
37
+ variant: 'tint',
38
+ color: 'default',
39
+ className: ['bg-surface-neutral-tint', _reactNative.Platform.select({
40
+ default: 'data-[active=true]:bg-surface-neutral-tint-active',
41
+ web: 'data-[hover=true]:bg-surface-neutral-tint-hover data-[active=true]:data-[hover=true]:bg-surface-neutral-tint-active'
42
+ })]
43
+ }, {
44
+ variant: 'tint',
45
+ color: 'action',
46
+ className: ['bg-surface-action-tint', _reactNative.Platform.select({
47
+ default: 'data-[active=true]:bg-surface-action-tint-active',
48
+ web: 'data-[hover=true]:bg-surface-action-tint-hover data-[active=true]:data-[hover=true]:bg-surface-action-tint-active'
49
+ })]
50
+ }, {
51
+ variant: 'tint',
52
+ color: 'danger',
53
+ className: ['bg-surface-danger-tint', _reactNative.Platform.select({
54
+ default: 'data-[active=true]:bg-surface-danger-tint-active',
55
+ web: 'data-[hover=true]:bg-surface-danger-tint-hover data-[active=true]:data-[hover=true]:bg-surface-danger-tint-active'
56
+ })]
57
+ }, {
58
+ variant: 'tint',
59
+ color: 'warning',
60
+ className: ['bg-surface-warning-tint', _reactNative.Platform.select({
61
+ default: 'data-[active=true]:bg-surface-warning-tint-active',
62
+ web: 'data-[hover=true]:bg-surface-warning-tint-hover data-[active=true]:data-[hover=true]:bg-surface-warning-tint-active'
63
+ })]
64
+ }, {
65
+ variant: 'tint',
66
+ color: 'success',
67
+ className: ['bg-surface-success-tint', _reactNative.Platform.select({
68
+ default: 'data-[active=true]:bg-surface-success-tint-active',
69
+ web: 'data-[hover=true]:bg-surface-success-tint-hover data-[active=true]:data-[hover=true]:bg-surface-success-tint-active'
70
+ })]
71
+ }, {
72
+ variant: 'tint',
73
+ color: 'info',
74
+ className: ['bg-surface-info-tint', _reactNative.Platform.select({
75
+ default: 'data-[active=true]:bg-surface-info-tint-active',
76
+ web: 'data-[hover=true]:bg-surface-info-tint-hover data-[active=true]:data-[hover=true]:bg-surface-info-tint-active'
77
+ })]
78
+ },
79
+ // ── outline × color ───────────────────────────────────────────────────
80
+ {
81
+ variant: 'outline',
82
+ color: 'default',
83
+ className: ['border-stroke-primary', _reactNative.Platform.select({
84
+ default: 'data-[active=true]:bg-surface-neutral-tint',
85
+ web: 'data-[hover=true]:bg-surface-neutral-tint-hover data-[active=true]:data-[hover=true]:bg-surface-neutral-tint-active'
86
+ })]
87
+ }, {
88
+ variant: 'outline',
89
+ color: 'action',
90
+ className: ['border-stroke-action', _reactNative.Platform.select({
91
+ default: 'data-[active=true]:bg-surface-action-tint',
92
+ web: 'data-[hover=true]:bg-surface-action-tint-hover data-[active=true]:data-[hover=true]:bg-surface-action-tint-active'
93
+ })]
94
+ }, {
95
+ variant: 'outline',
96
+ color: 'danger',
97
+ className: ['border-stroke-danger', _reactNative.Platform.select({
98
+ default: 'data-[active=true]:bg-surface-danger-tint',
99
+ web: 'data-[hover=true]:bg-surface-danger-tint-hover data-[active=true]:data-[hover=true]:bg-surface-danger-tint-active'
100
+ })]
101
+ }, {
102
+ variant: 'outline',
103
+ color: 'warning',
104
+ className: ['border-stroke-warning', _reactNative.Platform.select({
105
+ default: 'data-[active=true]:bg-surface-warning-tint',
106
+ web: 'data-[hover=true]:bg-surface-warning-tint-hover data-[active=true]:data-[hover=true]:bg-surface-warning-tint-active'
107
+ })]
108
+ }, {
109
+ variant: 'outline',
110
+ color: 'success',
111
+ className: ['border-stroke-success', _reactNative.Platform.select({
112
+ default: 'data-[active=true]:bg-surface-success-tint',
113
+ web: 'data-[hover=true]:bg-surface-success-tint-hover data-[active=true]:data-[hover=true]:bg-surface-success-tint-active'
114
+ })]
115
+ }, {
116
+ variant: 'outline',
117
+ color: 'info',
118
+ className: ['border-stroke-info', _reactNative.Platform.select({
119
+ default: 'data-[active=true]:bg-surface-info-tint',
120
+ web: 'data-[hover=true]:bg-surface-info-tint-hover data-[active=true]:data-[hover=true]:bg-surface-info-tint-active'
121
+ })]
122
+ }],
18
123
  defaultVariants: {
19
- color: 'default'
124
+ variant: 'tint',
125
+ color: 'default',
126
+ size: 'default'
20
127
  }
21
128
  });
22
-
23
- // TODO: letter-spacing values (tracking-wider) are not working on web, but the font-mono-medium is.
24
- const chipLabelVariants = exports.chipLabelVariants = (0, _classVarianceAuthority.cva)(['label-sm font-mono-medium'], {
129
+ const chipLabelVariants = exports.chipLabelVariants = (0, _classVarianceAuthority.cva)(['font-medium'], {
25
130
  variants: {
131
+ variant: {
132
+ tint: 'text-content-primary',
133
+ outline: 'text-content-primary'
134
+ },
26
135
  color: {
27
- default: 'text-content-primary',
28
- error: 'text-content-primary',
29
- info: 'text-content-primary',
30
- success: 'text-content-primary',
31
- warning: 'text-content-primary'
136
+ default: [],
137
+ action: [],
138
+ danger: [],
139
+ warning: [],
140
+ success: [],
141
+ info: []
142
+ },
143
+ size: {
144
+ default: 'body-md',
145
+ small: 'body-sm',
146
+ xsmall: 'body-xs'
32
147
  }
33
148
  },
149
+ compoundVariants: [{
150
+ variant: 'outline',
151
+ color: 'action',
152
+ className: 'text-content-action'
153
+ }, {
154
+ variant: 'outline',
155
+ color: 'danger',
156
+ className: 'text-content-danger'
157
+ }, {
158
+ variant: 'outline',
159
+ color: 'warning',
160
+ className: 'text-content-warning'
161
+ }, {
162
+ variant: 'outline',
163
+ color: 'success',
164
+ className: 'text-content-success'
165
+ }, {
166
+ variant: 'outline',
167
+ color: 'info',
168
+ className: 'text-content-info'
169
+ }],
34
170
  defaultVariants: {
35
- color: 'default'
171
+ variant: 'tint',
172
+ color: 'default',
173
+ size: 'default'
36
174
  }
37
175
  });
38
- const chipIconVariants = exports.chipIconVariants = (0, _classVarianceAuthority.cva)(['size-4'], {
176
+ const chipIconVariants = exports.chipIconVariants = (0, _classVarianceAuthority.cva)(['shrink-0'], {
39
177
  variants: {
178
+ size: {
179
+ default: 'size-5',
180
+ small: 'size-4',
181
+ xsmall: 'size-2.5'
182
+ },
40
183
  color: {
41
184
  default: 'text-content-primary',
42
- error: 'text-content-danger',
43
- info: 'text-content-info',
185
+ action: 'text-content-action',
186
+ danger: 'text-content-danger',
187
+ warning: 'text-content-warning',
44
188
  success: 'text-content-success',
45
- warning: 'text-content-warning'
189
+ info: 'text-content-info'
190
+ },
191
+ slot: {
192
+ leading: '',
193
+ trailing: ''
46
194
  }
47
195
  },
196
+ compoundVariants: [{
197
+ slot: 'leading',
198
+ size: 'default',
199
+ className: '-ml-1.5'
200
+ }, {
201
+ slot: 'leading',
202
+ size: 'small',
203
+ className: '-ml-0.5'
204
+ }, {
205
+ slot: 'leading',
206
+ size: 'xsmall',
207
+ className: '-ml-px'
208
+ }, {
209
+ slot: 'trailing',
210
+ size: 'default',
211
+ className: '-mr-1.5'
212
+ }, {
213
+ slot: 'trailing',
214
+ size: 'small',
215
+ className: '-mr-0.5'
216
+ }, {
217
+ slot: 'trailing',
218
+ size: 'xsmall',
219
+ className: '-mr-px'
220
+ }],
48
221
  defaultVariants: {
222
+ size: 'default',
49
223
  color: 'default'
50
224
  }
51
225
  });
226
+ const chipAvatarVariants = exports.chipAvatarVariants = (0, _classVarianceAuthority.cva)(['shrink-0 rounded-full overflow-hidden'], {
227
+ variants: {
228
+ size: {
229
+ default: 'size-5 -ml-1.5',
230
+ small: 'size-4 -ml-0.5',
231
+ xsmall: 'size-2.5 -ml-px'
232
+ }
233
+ },
234
+ defaultVariants: {
235
+ size: 'default'
236
+ }
237
+ });
52
238
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_classVarianceAuthority","require","chipRootVariants","exports","cva","variants","color","default","error","info","success","warning","defaultVariants","chipLabelVariants","chipIconVariants"],"sourceRoot":"../../../../src","sources":["components/Chip/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AAEO,MAAMC,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,IAAAE,2BAAG,EACjC,CAAC,gFAAgF,CAAC,EAClF;EACEC,QAAQ,EAAE;IACRC,KAAK,EAAE;MACLC,OAAO,EAAE,yBAAyB;MAClCC,KAAK,EAAE,wBAAwB;MAC/BC,IAAI,EAAE,sBAAsB;MAC5BC,OAAO,EAAE,yBAAyB;MAClCC,OAAO,EAAE;IACX;EACF,CAAC;EACDC,eAAe,EAAE;IACfN,KAAK,EAAE;EACT;AACF,CACF,CAAC;;AAED;AACO,MAAMO,iBAAiB,GAAAV,OAAA,CAAAU,iBAAA,GAAG,IAAAT,2BAAG,EAAC,CAAC,2BAA2B,CAAC,EAAE;EAClEC,QAAQ,EAAE;IACRC,KAAK,EAAE;MACLC,OAAO,EAAE,sBAAsB;MAC/BC,KAAK,EAAE,sBAAsB;MAC7BC,IAAI,EAAE,sBAAsB;MAC5BC,OAAO,EAAE,sBAAsB;MAC/BC,OAAO,EAAE;IACX;EACF,CAAC;EACDC,eAAe,EAAE;IACfN,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAEK,MAAMQ,gBAAgB,GAAAX,OAAA,CAAAW,gBAAA,GAAG,IAAAV,2BAAG,EAAC,CAAC,QAAQ,CAAC,EAAE;EAC9CC,QAAQ,EAAE;IACRC,KAAK,EAAE;MACLC,OAAO,EAAE,sBAAsB;MAC/BC,KAAK,EAAE,qBAAqB;MAC5BC,IAAI,EAAE,mBAAmB;MACzBC,OAAO,EAAE,sBAAsB;MAC/BC,OAAO,EAAE;IACX;EACF,CAAC;EACDC,eAAe,EAAE;IACfN,KAAK,EAAE;EACT;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_classVarianceAuthority","_primitives","chipInteractiveRoot","TRANSITION_COLORS","DISABLED_CURSOR","Platform","select","web","join","default","chipRootVariants","exports","cva","variants","variant","tint","outline","color","action","danger","warning","success","info","size","small","xsmall","compoundVariants","className","defaultVariants","chipLabelVariants","chipIconVariants","slot","leading","trailing","chipAvatarVariants"],"sourceRoot":"../../../../src","sources":["components/Chip/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAEA,MAAMG,mBAAmB,GAAG,CAC1BC,6BAAiB,EACjB,wDAAwD,EACxDC,2BAAe,EACfC,qBAAQ,CAACC,MAAM,CAAC;EACdC,GAAG,EAAE,CACH,cAAc,EACd,kIAAkI,CACnI,CAACC,IAAI,CAAC,GAAG,CAAC;EACXC,OAAO,EAAE;AACX,CAAC,CAAC,CACH;AAEM,MAAMC,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,IAAAE,2BAAG,EACjC,CAAC,iEAAiE,EAAE,GAAGV,mBAAmB,CAAC,EAC3F;EACEW,QAAQ,EAAE;IACRC,OAAO,EAAE;MACPC,IAAI,EAAE,EAAE;MACRC,OAAO,EAAE,CAAC,gBAAgB,EAAE,QAAQ;IACtC,CAAC;IACDC,KAAK,EAAE;MACLR,OAAO,EAAE,EAAE;MACXS,MAAM,EAAE,EAAE;MACVC,MAAM,EAAE,EAAE;MACVC,OAAO,EAAE,EAAE;MACXC,OAAO,EAAE,EAAE;MACXC,IAAI,EAAE;IACR,CAAC;IACDC,IAAI,EAAE;MACJd,OAAO,EAAE,6CAA6C;MACtDe,KAAK,EAAE,6CAA6C;MACpDC,MAAM,EAAE;IACV;EACF,CAAC;EACDC,gBAAgB,EA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;EACR;AACF,CAAC,CAAC","ignoreList":[]}
@@ -48,11 +48,11 @@ const DialogPrimitive = (0, _primitives.createDialog)({
48
48
  Root,
49
49
  Trigger: _reactNative.Pressable,
50
50
  Overlay: StyledOverlay,
51
- Content: _reactNative.View,
51
+ Popup: _reactNative.View,
52
52
  Header: _reactNative.View,
53
53
  Title: _reactNative.Text,
54
54
  Description: _reactNative.Text,
55
- Body: _reactNative.View,
55
+ Content: _reactNative.View,
56
56
  Footer: _reactNative.View,
57
57
  Close: _reactNative.Pressable
58
58
  });
@@ -63,6 +63,7 @@ const DialogPrimitive = (0, _primitives.createDialog)({
63
63
 
64
64
  const DialogRoot = /*#__PURE__*/(0, _react.forwardRef)(({
65
65
  size = 'md',
66
+ fullBleed = false,
66
67
  className,
67
68
  children,
68
69
  style,
@@ -72,7 +73,8 @@ const DialogRoot = /*#__PURE__*/(0, _react.forwardRef)(({
72
73
  className: className,
73
74
  style: style,
74
75
  context: {
75
- size
76
+ size,
77
+ fullBleed
76
78
  },
77
79
  ...props,
78
80
  children: children
@@ -98,10 +100,10 @@ const DialogTrigger = /*#__PURE__*/(0, _react.forwardRef)(({
98
100
  DialogTrigger.displayName = 'Dialog.Trigger';
99
101
 
100
102
  // =============================================================================
101
- // STYLED CONTENT
103
+ // STYLED POPUP (wraps DialogPrimitive.Popup)
102
104
  // =============================================================================
103
105
 
104
- const DialogContent = /*#__PURE__*/(0, _react.forwardRef)(({
106
+ const DialogPopup = /*#__PURE__*/(0, _react.forwardRef)(({
105
107
  size: sizeProp,
106
108
  className,
107
109
  children,
@@ -112,10 +114,10 @@ const DialogContent = /*#__PURE__*/(0, _react.forwardRef)(({
112
114
  size: contextSize
113
115
  } = useDialogStyleContext();
114
116
  const size = sizeProp ?? contextSize;
115
- const computedClassName = (0, _utils.cn)((0, _styles.dialogContentVariants)({
117
+ const computedClassName = (0, _utils.cn)((0, _styles.dialogPopupVariants)({
116
118
  size
117
119
  }), className);
118
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(DialogPrimitive.Content, {
120
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(DialogPrimitive.Popup, {
119
121
  ref: ref,
120
122
  className: computedClassName,
121
123
  style: style,
@@ -123,7 +125,7 @@ const DialogContent = /*#__PURE__*/(0, _react.forwardRef)(({
123
125
  children: children
124
126
  });
125
127
  });
126
- DialogContent.displayName = 'Dialog.Content';
128
+ DialogPopup.displayName = 'Dialog.Popup';
127
129
 
128
130
  // =============================================================================
129
131
  // STYLED HEADER
@@ -150,13 +152,39 @@ DialogHeader.displayName = 'Dialog.Header';
150
152
  // STYLED TITLE
151
153
  // =============================================================================
152
154
 
155
+ const APPEARANCE_ICON_MAP = {
156
+ danger: _icons.EmergencyHome,
157
+ warning: _icons.Warning,
158
+ success: _icons.CheckCircle
159
+ };
153
160
  const DialogTitle = /*#__PURE__*/(0, _react.forwardRef)(({
161
+ appearance = 'default',
154
162
  className,
155
163
  children,
156
164
  style,
157
165
  ...props
158
166
  }, ref) => {
159
- const computedClassName = (0, _utils.cn)((0, _styles.dialogTitleVariants)(), className);
167
+ const computedClassName = (0, _utils.cn)((0, _styles.dialogTitleVariants)({
168
+ appearance
169
+ }), className);
170
+ const IconComponent = appearance && appearance in APPEARANCE_ICON_MAP ? APPEARANCE_ICON_MAP[appearance] : null;
171
+ if (IconComponent) {
172
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
173
+ className: "flex-row items-center gap-1",
174
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
175
+ as: IconComponent,
176
+ className: (0, _styles.dialogTitleIconVariants)({
177
+ appearance
178
+ })
179
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(DialogPrimitive.Title, {
180
+ ref: ref,
181
+ className: computedClassName,
182
+ style: style,
183
+ ...props,
184
+ children: children
185
+ })]
186
+ });
187
+ }
160
188
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(DialogPrimitive.Title, {
161
189
  ref: ref,
162
190
  className: computedClassName,
@@ -189,17 +217,43 @@ const DialogDescription = /*#__PURE__*/(0, _react.forwardRef)(({
189
217
  DialogDescription.displayName = 'Dialog.Description';
190
218
 
191
219
  // =============================================================================
192
- // STYLED BODY
220
+ // STYLED CONTENT (wraps DialogPrimitive.Content)
221
+ // =============================================================================
222
+
223
+ const DialogContent = /*#__PURE__*/(0, _react.forwardRef)(({
224
+ className,
225
+ children,
226
+ style,
227
+ ...props
228
+ }, ref) => {
229
+ const {
230
+ fullBleed
231
+ } = useDialogStyleContext();
232
+ const computedClassName = (0, _utils.cn)((0, _styles.dialogContentVariants)({
233
+ fullBleed: fullBleed ?? false
234
+ }), className);
235
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(DialogPrimitive.Content, {
236
+ ref: ref,
237
+ className: computedClassName,
238
+ style: style,
239
+ ...props,
240
+ children: children
241
+ });
242
+ });
243
+ DialogContent.displayName = 'Dialog.Content';
244
+
245
+ // =============================================================================
246
+ // STYLED TEXT
193
247
  // =============================================================================
194
248
 
195
- const DialogBody = /*#__PURE__*/(0, _react.forwardRef)(({
249
+ const DialogText = /*#__PURE__*/(0, _react.forwardRef)(({
196
250
  className,
197
251
  children,
198
252
  style,
199
253
  ...props
200
254
  }, ref) => {
201
- const computedClassName = (0, _utils.cn)((0, _styles.dialogBodyVariants)(), className);
202
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(DialogPrimitive.Body, {
255
+ const computedClassName = (0, _utils.cn)((0, _styles.dialogTextVariants)(), className);
256
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
203
257
  ref: ref,
204
258
  className: computedClassName,
205
259
  style: style,
@@ -207,7 +261,7 @@ const DialogBody = /*#__PURE__*/(0, _react.forwardRef)(({
207
261
  children: children
208
262
  });
209
263
  });
210
- DialogBody.displayName = 'Dialog.Body';
264
+ DialogText.displayName = 'Dialog.Text';
211
265
 
212
266
  // =============================================================================
213
267
  // STYLED FOOTER
@@ -264,11 +318,12 @@ DialogClose.displayName = 'Dialog.Close';
264
318
 
265
319
  const Dialog = exports.Dialog = Object.assign(DialogRoot, {
266
320
  Trigger: DialogTrigger,
267
- Content: DialogContent,
321
+ Popup: DialogPopup,
268
322
  Header: DialogHeader,
269
323
  Title: DialogTitle,
270
324
  Description: DialogDescription,
271
- Body: DialogBody,
325
+ Content: DialogContent,
326
+ Text: DialogText,
272
327
  Footer: DialogFooter,
273
328
  Close: DialogClose
274
329
  });