@cdx-ui/components 0.0.1-alpha.9 → 0.0.1-beta.2

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 (405) hide show
  1. package/README.md +53 -2
  2. package/lib/commonjs/components/AlertDialog/index.js +117 -0
  3. package/lib/commonjs/components/AlertDialog/index.js.map +1 -0
  4. package/lib/commonjs/components/Avatar/index.js +156 -0
  5. package/lib/commonjs/components/Avatar/index.js.map +1 -0
  6. package/lib/commonjs/components/Avatar/styles.js +80 -0
  7. package/lib/commonjs/components/Avatar/styles.js.map +1 -0
  8. package/lib/commonjs/components/BottomSheet/index.js +248 -0
  9. package/lib/commonjs/components/BottomSheet/index.js.map +1 -0
  10. package/lib/commonjs/components/BottomSheet/styles.js +61 -0
  11. package/lib/commonjs/components/BottomSheet/styles.js.map +1 -0
  12. package/lib/commonjs/components/Box/Box.js +1 -0
  13. package/lib/commonjs/components/Box/Box.js.map +1 -1
  14. package/lib/commonjs/components/Button/index.js +20 -9
  15. package/lib/commonjs/components/Button/index.js.map +1 -1
  16. package/lib/commonjs/components/Button/styles.js +182 -163
  17. package/lib/commonjs/components/Button/styles.js.map +1 -1
  18. package/lib/commonjs/components/Card/index.js +104 -0
  19. package/lib/commonjs/components/Card/index.js.map +1 -0
  20. package/lib/commonjs/components/Card/styles.js +28 -0
  21. package/lib/commonjs/components/Card/styles.js.map +1 -0
  22. package/lib/commonjs/components/Checkbox/index.js +18 -11
  23. package/lib/commonjs/components/Checkbox/index.js.map +1 -1
  24. package/lib/commonjs/components/Checkbox/styles.js +17 -16
  25. package/lib/commonjs/components/Checkbox/styles.js.map +1 -1
  26. package/lib/commonjs/components/Chip/index.js +103 -0
  27. package/lib/commonjs/components/Chip/index.js.map +1 -0
  28. package/lib/commonjs/components/Chip/styles.js +52 -0
  29. package/lib/commonjs/components/Chip/styles.js.map +1 -0
  30. package/lib/commonjs/components/Dialog/index.js +275 -0
  31. package/lib/commonjs/components/Dialog/index.js.map +1 -0
  32. package/lib/commonjs/components/Dialog/styles.js +63 -0
  33. package/lib/commonjs/components/Dialog/styles.js.map +1 -0
  34. package/lib/commonjs/components/Field/FieldLabel.js +33 -0
  35. package/lib/commonjs/components/Field/FieldLabel.js.map +1 -0
  36. package/lib/commonjs/components/Field/FieldLabel.web.js +22 -0
  37. package/lib/commonjs/components/Field/FieldLabel.web.js.map +1 -0
  38. package/lib/commonjs/components/Field/index.js +158 -0
  39. package/lib/commonjs/components/Field/index.js.map +1 -0
  40. package/lib/commonjs/components/Field/styles.js +16 -0
  41. package/lib/commonjs/components/Field/styles.js.map +1 -0
  42. package/lib/commonjs/components/Form/FormRoot.js +25 -0
  43. package/lib/commonjs/components/Form/FormRoot.js.map +1 -0
  44. package/lib/commonjs/components/Form/FormRoot.web.js +17 -0
  45. package/lib/commonjs/components/Form/FormRoot.web.js.map +1 -0
  46. package/lib/commonjs/components/Form/index.js +48 -0
  47. package/lib/commonjs/components/Form/index.js.map +1 -0
  48. package/lib/commonjs/components/Form/styles.js +9 -0
  49. package/lib/commonjs/components/Form/styles.js.map +1 -0
  50. package/lib/commonjs/components/Heading/index.js +35 -0
  51. package/lib/commonjs/components/Heading/index.js.map +1 -0
  52. package/lib/commonjs/components/Heading/styles.js +23 -0
  53. package/lib/commonjs/components/Heading/styles.js.map +1 -0
  54. package/lib/commonjs/components/Icon/index.js +61 -0
  55. package/lib/commonjs/components/Icon/index.js.map +1 -0
  56. package/lib/commonjs/components/IconButton/index.js +75 -0
  57. package/lib/commonjs/components/IconButton/index.js.map +1 -0
  58. package/lib/commonjs/components/IconButton/styles.js +44 -0
  59. package/lib/commonjs/components/IconButton/styles.js.map +1 -0
  60. package/lib/commonjs/components/Image/Image.js +69 -0
  61. package/lib/commonjs/components/Image/Image.js.map +1 -0
  62. package/lib/commonjs/components/Image/index.js +13 -0
  63. package/lib/commonjs/components/Image/index.js.map +1 -0
  64. package/lib/commonjs/components/Input/BaseInput.android.js +20 -0
  65. package/lib/commonjs/components/Input/BaseInput.android.js.map +1 -0
  66. package/lib/commonjs/components/Input/index.js +10 -16
  67. package/lib/commonjs/components/Input/index.js.map +1 -1
  68. package/lib/commonjs/components/Input/styles.js +17 -30
  69. package/lib/commonjs/components/Input/styles.js.map +1 -1
  70. package/lib/commonjs/components/Link/index.js +94 -0
  71. package/lib/commonjs/components/Link/index.js.map +1 -0
  72. package/lib/commonjs/components/Link/styles.js +14 -0
  73. package/lib/commonjs/components/Link/styles.js.map +1 -0
  74. package/lib/commonjs/components/OtpInput/index.js +83 -0
  75. package/lib/commonjs/components/OtpInput/index.js.map +1 -0
  76. package/lib/commonjs/components/OtpInput/styles.js +48 -0
  77. package/lib/commonjs/components/OtpInput/styles.js.map +1 -0
  78. package/lib/commonjs/components/ProgressBar/index.js +45 -0
  79. package/lib/commonjs/components/ProgressBar/index.js.map +1 -0
  80. package/lib/commonjs/components/ProgressBar/styles.js +10 -0
  81. package/lib/commonjs/components/ProgressBar/styles.js.map +1 -0
  82. package/lib/commonjs/components/ProgressSegmented/index.js +62 -0
  83. package/lib/commonjs/components/ProgressSegmented/index.js.map +1 -0
  84. package/lib/commonjs/components/ProgressSegmented/styles.js +21 -0
  85. package/lib/commonjs/components/ProgressSegmented/styles.js.map +1 -0
  86. package/lib/commonjs/components/Select/SelectTriggerHost.js +10 -0
  87. package/lib/commonjs/components/Select/SelectTriggerHost.js.map +1 -0
  88. package/lib/commonjs/components/Select/SelectTriggerHost.web.js +98 -0
  89. package/lib/commonjs/components/Select/SelectTriggerHost.web.js.map +1 -0
  90. package/lib/commonjs/components/Select/index.js +13 -13
  91. package/lib/commonjs/components/Select/index.js.map +1 -1
  92. package/lib/commonjs/components/Select/styles.js +29 -53
  93. package/lib/commonjs/components/Select/styles.js.map +1 -1
  94. package/lib/commonjs/components/Stack/HStack.js +8 -21
  95. package/lib/commonjs/components/Stack/HStack.js.map +1 -1
  96. package/lib/commonjs/components/Stack/VStack.js +8 -21
  97. package/lib/commonjs/components/Stack/VStack.js.map +1 -1
  98. package/lib/commonjs/components/Stack/styles.js +44 -0
  99. package/lib/commonjs/components/Stack/styles.js.map +1 -0
  100. package/lib/commonjs/components/Text/index.js +18 -9
  101. package/lib/commonjs/components/Text/index.js.map +1 -1
  102. package/lib/commonjs/components/Text/styles.js +23 -0
  103. package/lib/commonjs/components/Text/styles.js.map +1 -0
  104. package/lib/commonjs/components/VirtualizedList/index.js +19 -0
  105. package/lib/commonjs/components/VirtualizedList/index.js.map +1 -0
  106. package/lib/commonjs/components/index.js +204 -0
  107. package/lib/commonjs/components/index.js.map +1 -1
  108. package/lib/commonjs/index.js +40 -0
  109. package/lib/commonjs/index.js.map +1 -1
  110. package/lib/commonjs/styles/index.js +17 -0
  111. package/lib/commonjs/styles/index.js.map +1 -0
  112. package/lib/commonjs/styles/primitives.js +123 -0
  113. package/lib/commonjs/styles/primitives.js.map +1 -0
  114. package/lib/module/components/AlertDialog/index.js +112 -0
  115. package/lib/module/components/AlertDialog/index.js.map +1 -0
  116. package/lib/module/components/Avatar/index.js +152 -0
  117. package/lib/module/components/Avatar/index.js.map +1 -0
  118. package/lib/module/components/Avatar/styles.js +77 -0
  119. package/lib/module/components/Avatar/styles.js.map +1 -0
  120. package/lib/module/components/BottomSheet/index.js +242 -0
  121. package/lib/module/components/BottomSheet/index.js.map +1 -0
  122. package/lib/module/components/BottomSheet/styles.js +58 -0
  123. package/lib/module/components/BottomSheet/styles.js.map +1 -0
  124. package/lib/module/components/Box/Box.js +1 -0
  125. package/lib/module/components/Box/Box.js.map +1 -1
  126. package/lib/module/components/Button/index.js +21 -10
  127. package/lib/module/components/Button/index.js.map +1 -1
  128. package/lib/module/components/Button/styles.js +181 -162
  129. package/lib/module/components/Button/styles.js.map +1 -1
  130. package/lib/module/components/Card/index.js +100 -0
  131. package/lib/module/components/Card/index.js.map +1 -0
  132. package/lib/module/components/Card/styles.js +25 -0
  133. package/lib/module/components/Card/styles.js.map +1 -0
  134. package/lib/module/components/Checkbox/index.js +19 -12
  135. package/lib/module/components/Checkbox/index.js.map +1 -1
  136. package/lib/module/components/Checkbox/styles.js +17 -16
  137. package/lib/module/components/Checkbox/styles.js.map +1 -1
  138. package/lib/module/components/Chip/index.js +99 -0
  139. package/lib/module/components/Chip/index.js.map +1 -0
  140. package/lib/module/components/Chip/styles.js +48 -0
  141. package/lib/module/components/Chip/styles.js.map +1 -0
  142. package/lib/module/components/Dialog/index.js +267 -0
  143. package/lib/module/components/Dialog/index.js.map +1 -0
  144. package/lib/module/components/Dialog/styles.js +60 -0
  145. package/lib/module/components/Dialog/styles.js.map +1 -0
  146. package/lib/module/components/Field/FieldLabel.js +29 -0
  147. package/lib/module/components/Field/FieldLabel.js.map +1 -0
  148. package/lib/module/components/Field/FieldLabel.web.js +17 -0
  149. package/lib/module/components/Field/FieldLabel.web.js.map +1 -0
  150. package/lib/module/components/Field/index.js +155 -0
  151. package/lib/module/components/Field/index.js.map +1 -0
  152. package/lib/module/components/Field/styles.js +12 -0
  153. package/lib/module/components/Field/styles.js.map +1 -0
  154. package/lib/module/components/Form/FormRoot.js +21 -0
  155. package/lib/module/components/Form/FormRoot.js.map +1 -0
  156. package/lib/module/components/Form/FormRoot.web.js +12 -0
  157. package/lib/module/components/Form/FormRoot.web.js.map +1 -0
  158. package/lib/module/components/Form/index.js +44 -0
  159. package/lib/module/components/Form/index.js.map +1 -0
  160. package/lib/module/components/Form/styles.js +5 -0
  161. package/lib/module/components/Form/styles.js.map +1 -0
  162. package/lib/module/components/Heading/index.js +31 -0
  163. package/lib/module/components/Heading/index.js.map +1 -0
  164. package/lib/module/components/Heading/styles.js +19 -0
  165. package/lib/module/components/Heading/styles.js.map +1 -0
  166. package/lib/module/components/Icon/index.js +57 -0
  167. package/lib/module/components/Icon/index.js.map +1 -0
  168. package/lib/module/components/IconButton/index.js +71 -0
  169. package/lib/module/components/IconButton/index.js.map +1 -0
  170. package/lib/module/components/IconButton/styles.js +40 -0
  171. package/lib/module/components/IconButton/styles.js.map +1 -0
  172. package/lib/module/components/Image/Image.js +67 -0
  173. package/lib/module/components/Image/Image.js.map +1 -0
  174. package/lib/module/components/Image/index.js +4 -0
  175. package/lib/module/components/Image/index.js.map +1 -0
  176. package/lib/module/components/Input/BaseInput.android.js +16 -0
  177. package/lib/module/components/Input/BaseInput.android.js.map +1 -0
  178. package/lib/module/components/Input/index.js +10 -16
  179. package/lib/module/components/Input/index.js.map +1 -1
  180. package/lib/module/components/Input/styles.js +17 -30
  181. package/lib/module/components/Input/styles.js.map +1 -1
  182. package/lib/module/components/Link/index.js +85 -0
  183. package/lib/module/components/Link/index.js.map +1 -0
  184. package/lib/module/components/Link/styles.js +11 -0
  185. package/lib/module/components/Link/styles.js.map +1 -0
  186. package/lib/module/components/OtpInput/index.js +79 -0
  187. package/lib/module/components/OtpInput/index.js.map +1 -0
  188. package/lib/module/components/OtpInput/styles.js +44 -0
  189. package/lib/module/components/OtpInput/styles.js.map +1 -0
  190. package/lib/module/components/ProgressBar/index.js +41 -0
  191. package/lib/module/components/ProgressBar/index.js.map +1 -0
  192. package/lib/module/components/ProgressBar/styles.js +6 -0
  193. package/lib/module/components/ProgressBar/styles.js.map +1 -0
  194. package/lib/module/components/ProgressSegmented/index.js +58 -0
  195. package/lib/module/components/ProgressSegmented/index.js.map +1 -0
  196. package/lib/module/components/ProgressSegmented/styles.js +17 -0
  197. package/lib/module/components/ProgressSegmented/styles.js.map +1 -0
  198. package/lib/module/components/Select/SelectTriggerHost.js +7 -0
  199. package/lib/module/components/Select/SelectTriggerHost.js.map +1 -0
  200. package/lib/module/components/Select/SelectTriggerHost.web.js +93 -0
  201. package/lib/module/components/Select/SelectTriggerHost.web.js.map +1 -0
  202. package/lib/module/components/Select/index.js +14 -14
  203. package/lib/module/components/Select/index.js.map +1 -1
  204. package/lib/module/components/Select/styles.js +29 -53
  205. package/lib/module/components/Select/styles.js.map +1 -1
  206. package/lib/module/components/Stack/HStack.js +8 -21
  207. package/lib/module/components/Stack/HStack.js.map +1 -1
  208. package/lib/module/components/Stack/VStack.js +8 -21
  209. package/lib/module/components/Stack/VStack.js.map +1 -1
  210. package/lib/module/components/Stack/styles.js +40 -0
  211. package/lib/module/components/Stack/styles.js.map +1 -0
  212. package/lib/module/components/Text/index.js +19 -1
  213. package/lib/module/components/Text/index.js.map +1 -1
  214. package/lib/module/components/Text/styles.js +19 -0
  215. package/lib/module/components/Text/styles.js.map +1 -0
  216. package/lib/module/components/VirtualizedList/index.js +15 -0
  217. package/lib/module/components/VirtualizedList/index.js.map +1 -0
  218. package/lib/module/components/index.js +17 -0
  219. package/lib/module/components/index.js.map +1 -1
  220. package/lib/module/index.js +3 -0
  221. package/lib/module/index.js.map +1 -1
  222. package/lib/module/styles/index.js +4 -0
  223. package/lib/module/styles/index.js.map +1 -0
  224. package/lib/module/styles/primitives.js +119 -0
  225. package/lib/module/styles/primitives.js.map +1 -0
  226. package/lib/typescript/components/AlertDialog/index.d.ts +30 -0
  227. package/lib/typescript/components/AlertDialog/index.d.ts.map +1 -0
  228. package/lib/typescript/components/Avatar/index.d.ts +40 -0
  229. package/lib/typescript/components/Avatar/index.d.ts.map +1 -0
  230. package/lib/typescript/components/Avatar/styles.d.ts +16 -0
  231. package/lib/typescript/components/Avatar/styles.d.ts.map +1 -0
  232. package/lib/typescript/components/BottomSheet/index.d.ts +61 -0
  233. package/lib/typescript/components/BottomSheet/index.d.ts.map +1 -0
  234. package/lib/typescript/components/BottomSheet/styles.d.ts +16 -0
  235. package/lib/typescript/components/BottomSheet/styles.d.ts.map +1 -0
  236. package/lib/typescript/components/Box/Box.d.ts +1 -0
  237. package/lib/typescript/components/Box/Box.d.ts.map +1 -1
  238. package/lib/typescript/components/Button/index.d.ts +6 -3
  239. package/lib/typescript/components/Button/index.d.ts.map +1 -1
  240. package/lib/typescript/components/Button/styles.d.ts +11 -8
  241. package/lib/typescript/components/Button/styles.d.ts.map +1 -1
  242. package/lib/typescript/components/Card/index.d.ts +30 -0
  243. package/lib/typescript/components/Card/index.d.ts.map +1 -0
  244. package/lib/typescript/components/Card/styles.d.ts +6 -0
  245. package/lib/typescript/components/Card/styles.d.ts.map +1 -0
  246. package/lib/typescript/components/Checkbox/index.d.ts +7 -5
  247. package/lib/typescript/components/Checkbox/index.d.ts.map +1 -1
  248. package/lib/typescript/components/Checkbox/styles.d.ts +4 -4
  249. package/lib/typescript/components/Checkbox/styles.d.ts.map +1 -1
  250. package/lib/typescript/components/Chip/index.d.ts +27 -0
  251. package/lib/typescript/components/Chip/index.d.ts.map +1 -0
  252. package/lib/typescript/components/Chip/styles.d.ts +12 -0
  253. package/lib/typescript/components/Chip/styles.d.ts.map +1 -0
  254. package/lib/typescript/components/Dialog/index.d.ts +61 -0
  255. package/lib/typescript/components/Dialog/index.d.ts.map +1 -0
  256. package/lib/typescript/components/Dialog/styles.d.ts +14 -0
  257. package/lib/typescript/components/Dialog/styles.d.ts.map +1 -0
  258. package/lib/typescript/components/Field/FieldLabel.d.ts +18 -0
  259. package/lib/typescript/components/Field/FieldLabel.d.ts.map +1 -0
  260. package/lib/typescript/components/Field/FieldLabel.web.d.ts +16 -0
  261. package/lib/typescript/components/Field/FieldLabel.web.d.ts.map +1 -0
  262. package/lib/typescript/components/Field/index.d.ts +26 -0
  263. package/lib/typescript/components/Field/index.d.ts.map +1 -0
  264. package/lib/typescript/components/Field/styles.d.ts +16 -0
  265. package/lib/typescript/components/Field/styles.d.ts.map +1 -0
  266. package/lib/typescript/components/Form/FormRoot.d.ts +14 -0
  267. package/lib/typescript/components/Form/FormRoot.d.ts.map +1 -0
  268. package/lib/typescript/components/Form/FormRoot.web.d.ts +10 -0
  269. package/lib/typescript/components/Form/FormRoot.web.d.ts.map +1 -0
  270. package/lib/typescript/components/Form/index.d.ts +7 -0
  271. package/lib/typescript/components/Form/index.d.ts.map +1 -0
  272. package/lib/typescript/components/Form/styles.d.ts +2 -0
  273. package/lib/typescript/components/Form/styles.d.ts.map +1 -0
  274. package/lib/typescript/components/Heading/index.d.ts +10 -0
  275. package/lib/typescript/components/Heading/index.d.ts.map +1 -0
  276. package/lib/typescript/components/Heading/styles.d.ts +6 -0
  277. package/lib/typescript/components/Heading/styles.d.ts.map +1 -0
  278. package/lib/typescript/components/Icon/index.d.ts +27 -0
  279. package/lib/typescript/components/Icon/index.d.ts.map +1 -0
  280. package/lib/typescript/components/IconButton/index.d.ts +15 -0
  281. package/lib/typescript/components/IconButton/index.d.ts.map +1 -0
  282. package/lib/typescript/components/IconButton/styles.d.ts +11 -0
  283. package/lib/typescript/components/IconButton/styles.d.ts.map +1 -0
  284. package/lib/typescript/components/Image/Image.d.ts +47 -0
  285. package/lib/typescript/components/Image/Image.d.ts.map +1 -0
  286. package/lib/typescript/components/Image/index.d.ts +2 -0
  287. package/lib/typescript/components/Image/index.d.ts.map +1 -0
  288. package/lib/typescript/components/Input/BaseInput.android.d.ts +3 -0
  289. package/lib/typescript/components/Input/BaseInput.android.d.ts.map +1 -0
  290. package/lib/typescript/components/Input/index.d.ts +7 -5
  291. package/lib/typescript/components/Input/index.d.ts.map +1 -1
  292. package/lib/typescript/components/Input/styles.d.ts +5 -7
  293. package/lib/typescript/components/Input/styles.d.ts.map +1 -1
  294. package/lib/typescript/components/Link/index.d.ts +26 -0
  295. package/lib/typescript/components/Link/index.d.ts.map +1 -0
  296. package/lib/typescript/components/Link/styles.d.ts +6 -0
  297. package/lib/typescript/components/Link/styles.d.ts.map +1 -0
  298. package/lib/typescript/components/OtpInput/index.d.ts +11 -0
  299. package/lib/typescript/components/OtpInput/index.d.ts.map +1 -0
  300. package/lib/typescript/components/OtpInput/styles.d.ts +14 -0
  301. package/lib/typescript/components/OtpInput/styles.d.ts.map +1 -0
  302. package/lib/typescript/components/ProgressBar/index.d.ts +17 -0
  303. package/lib/typescript/components/ProgressBar/index.d.ts.map +1 -0
  304. package/lib/typescript/components/ProgressBar/styles.d.ts +5 -0
  305. package/lib/typescript/components/ProgressBar/styles.d.ts.map +1 -0
  306. package/lib/typescript/components/ProgressSegmented/index.d.ts +15 -0
  307. package/lib/typescript/components/ProgressSegmented/index.d.ts.map +1 -0
  308. package/lib/typescript/components/ProgressSegmented/styles.d.ts +8 -0
  309. package/lib/typescript/components/ProgressSegmented/styles.d.ts.map +1 -0
  310. package/lib/typescript/components/Select/SelectTriggerHost.d.ts +3 -0
  311. package/lib/typescript/components/Select/SelectTriggerHost.d.ts.map +1 -0
  312. package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts +13 -0
  313. package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts.map +1 -0
  314. package/lib/typescript/components/Select/index.d.ts +7 -4
  315. package/lib/typescript/components/Select/index.d.ts.map +1 -1
  316. package/lib/typescript/components/Select/styles.d.ts +6 -8
  317. package/lib/typescript/components/Select/styles.d.ts.map +1 -1
  318. package/lib/typescript/components/Stack/HStack.d.ts +1 -12
  319. package/lib/typescript/components/Stack/HStack.d.ts.map +1 -1
  320. package/lib/typescript/components/Stack/VStack.d.ts +1 -12
  321. package/lib/typescript/components/Stack/VStack.d.ts.map +1 -1
  322. package/lib/typescript/components/Stack/styles.d.ts +23 -0
  323. package/lib/typescript/components/Stack/styles.d.ts.map +1 -0
  324. package/lib/typescript/components/Switch/index.d.ts +0 -1
  325. package/lib/typescript/components/Switch/index.d.ts.map +1 -1
  326. package/lib/typescript/components/Text/index.d.ts +9 -1
  327. package/lib/typescript/components/Text/index.d.ts.map +1 -1
  328. package/lib/typescript/components/Text/styles.d.ts +6 -0
  329. package/lib/typescript/components/Text/styles.d.ts.map +1 -0
  330. package/lib/typescript/components/VirtualizedList/index.d.ts +8 -0
  331. package/lib/typescript/components/VirtualizedList/index.d.ts.map +1 -0
  332. package/lib/typescript/components/index.d.ts +17 -0
  333. package/lib/typescript/components/index.d.ts.map +1 -1
  334. package/lib/typescript/index.d.ts +3 -0
  335. package/lib/typescript/index.d.ts.map +1 -1
  336. package/lib/typescript/styles/index.d.ts +2 -0
  337. package/lib/typescript/styles/index.d.ts.map +1 -0
  338. package/lib/typescript/styles/primitives.d.ts +85 -0
  339. package/lib/typescript/styles/primitives.d.ts.map +1 -0
  340. package/package.json +15 -6
  341. package/src/components/AlertDialog/index.tsx +124 -0
  342. package/src/components/Avatar/index.tsx +172 -0
  343. package/src/components/Avatar/styles.ts +83 -0
  344. package/src/components/BottomSheet/index.tsx +316 -0
  345. package/src/components/BottomSheet/styles.ts +79 -0
  346. package/src/components/Box/Box.tsx +1 -0
  347. package/src/components/Button/index.tsx +14 -9
  348. package/src/components/Button/styles.ts +159 -209
  349. package/src/components/Card/index.tsx +115 -0
  350. package/src/components/Card/styles.ts +41 -0
  351. package/src/components/Checkbox/index.tsx +15 -23
  352. package/src/components/Checkbox/styles.ts +33 -24
  353. package/src/components/Chip/index.tsx +91 -0
  354. package/src/components/Chip/styles.ts +52 -0
  355. package/src/components/Dialog/index.tsx +304 -0
  356. package/src/components/Dialog/styles.ts +88 -0
  357. package/src/components/Field/FieldLabel.tsx +33 -0
  358. package/src/components/Field/FieldLabel.web.tsx +25 -0
  359. package/src/components/Field/index.tsx +171 -0
  360. package/src/components/Field/styles.ts +32 -0
  361. package/src/components/Form/FormRoot.tsx +20 -0
  362. package/src/components/Form/FormRoot.web.tsx +12 -0
  363. package/src/components/Form/index.tsx +38 -0
  364. package/src/components/Form/styles.ts +3 -0
  365. package/src/components/Heading/index.tsx +36 -0
  366. package/src/components/Heading/styles.tsx +25 -0
  367. package/src/components/Icon/index.tsx +54 -0
  368. package/src/components/IconButton/index.tsx +92 -0
  369. package/src/components/IconButton/styles.ts +59 -0
  370. package/src/components/Image/Image.tsx +77 -0
  371. package/src/components/Image/index.ts +1 -0
  372. package/src/components/Input/BaseInput.android.tsx +13 -0
  373. package/src/components/Input/index.tsx +9 -22
  374. package/src/components/Input/styles.ts +36 -40
  375. package/src/components/Link/index.tsx +83 -0
  376. package/src/components/Link/styles.ts +21 -0
  377. package/src/components/OtpInput/index.tsx +79 -0
  378. package/src/components/OtpInput/styles.ts +45 -0
  379. package/src/components/ProgressBar/index.tsx +53 -0
  380. package/src/components/ProgressBar/styles.ts +9 -0
  381. package/src/components/ProgressSegmented/index.tsx +81 -0
  382. package/src/components/ProgressSegmented/styles.ts +20 -0
  383. package/src/components/Select/SelectTriggerHost.tsx +4 -0
  384. package/src/components/Select/SelectTriggerHost.web.tsx +136 -0
  385. package/src/components/Select/index.tsx +14 -14
  386. package/src/components/Select/styles.ts +68 -75
  387. package/src/components/Stack/HStack.tsx +8 -19
  388. package/src/components/Stack/VStack.tsx +8 -23
  389. package/src/components/Stack/styles.ts +42 -0
  390. package/src/components/Switch/index.tsx +0 -2
  391. package/src/components/Text/index.tsx +16 -0
  392. package/src/components/Text/styles.tsx +25 -0
  393. package/src/components/VirtualizedList/index.tsx +19 -0
  394. package/src/components/index.ts +17 -0
  395. package/src/index.ts +3 -0
  396. package/src/styles/index.ts +1 -0
  397. package/src/styles/primitives.ts +107 -0
  398. package/lib/commonjs/components/Text/Text.js +0 -30
  399. package/lib/commonjs/components/Text/Text.js.map +0 -1
  400. package/lib/module/components/Text/Text.js +0 -26
  401. package/lib/module/components/Text/Text.js.map +0 -1
  402. package/lib/typescript/components/Text/Text.d.ts +0 -11
  403. package/lib/typescript/components/Text/Text.d.ts.map +0 -1
  404. package/src/components/Text/Text.tsx +0 -58
  405. package/src/components/Text/index.ts +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","Pressable","Text","View","Close","CloseIcon","createDialog","cn","useStyleContext","withStyleContext","Icon","dialogBodyVariants","dialogCloseIconVariants","dialogCloseVariants","dialogContentVariants","dialogDescriptionVariants","dialogFooterVariants","dialogHeaderVariants","dialogOverlayVariants","dialogTitleVariants","jsx","_jsx","useDialog","SCOPE","Root","useDialogStyleContext","StyledOverlay","className","props","ref","displayName","DialogPrimitive","Trigger","Overlay","Content","Header","Title","Description","Body","Footer","DialogRoot","size","children","style","context","DialogTrigger","DialogContent","sizeProp","contextSize","computedClassName","DialogHeader","DialogTitle","DialogDescription","DialogBody","DialogFooter","DialogClose","accessibilityLabel","hitSlop","accessibilityRole","as","Dialog","Object","assign"],"sourceRoot":"../../../../src","sources":["components/Dialog/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAwB,OAAO;AAClD,SAASC,SAAS,EAAEC,IAAI,EAAEC,IAAI,QAA6C,cAAc;AACzF,SAASC,KAAK,IAAIC,SAAS,QAAQ,eAAe;AAClD,SACEC,YAAY,QAUP,oBAAoB;AAC3B,SAASC,EAAE,EAAEC,eAAe,EAAEC,gBAAgB,QAAQ,eAAe;AACrE,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAEEC,kBAAkB,EAClBC,uBAAuB,EACvBC,mBAAmB,EACnBC,qBAAqB,EACrBC,yBAAyB,EACzBC,oBAAoB,EACpBC,oBAAoB,EACpBC,qBAAqB,EACrBC,mBAAmB,QACd,UAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAElB,SAASC,SAAS,QAAQ,oBAAoB;;AAE9C;AACA;AACA;;AAEA,MAAMC,KAAK,GAAG,QAAQ;AAEtB,MAAMC,IAAI,GAAGf,gBAAgB,CAACN,IAAI,EAAEoB,KAAK,CAAC;AAE1C,MAAME,qBAAqB,GAAGA,CAAA,KAAMjB,eAAe,CAACe,KAAK,CAAuB;;AAEhF;AACA;AACA;;AAEA,MAAMG,aAAa,gBAAG1B,UAAU,CAC9B,CAAC;EAAE2B,SAAS;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,kBAC3BR,IAAA,CAACpB,SAAS;EAAC4B,GAAG,EAAEA,GAAI;EAACF,SAAS,EAAEpB,EAAE,CAACW,qBAAqB,CAAC,CAAC,EAAES,SAAS,CAAE;EAAA,GAAKC;AAAK,CAAG,CAExF,CAAC;AACDF,aAAa,CAACI,WAAW,GAAG,gBAAgB;;AAE5C;AACA;AACA;;AAEA,MAAMC,eAAe,GAAGzB,YAAY,CAAC;EACnCkB,IAAI;EACJQ,OAAO,EAAE/B,SAAS;EAClBgC,OAAO,EAAEP,aAAa;EACtBQ,OAAO,EAAE/B,IAAI;EACbgC,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C9Bd,IAAI,EAAEe,UAAU;EAChBd,MAAM,EAAEe,YAAY;EACpBlD,KAAK,EAAEmD;AACT,CAAC,CAA4B","ignoreList":[]}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+
3
+ import { Platform } from 'react-native';
4
+ import { cva } from 'class-variance-authority';
5
+ import { COLOR_BG_INVERSE, COLOR_BG_PRIMARY, COLOR_BORDER_DEFAULT, COLOR_TEXT_PRIMARY, COLOR_TEXT_SECONDARY, RADIUS_MD, SHADOW_MD, TRANSITION_COLORS } from '../../styles/primitives';
6
+
7
+ // ── Overlay ─────────────────────────────────────────────────
8
+
9
+ export const dialogOverlayVariants = cva(['absolute inset-0', COLOR_BG_INVERSE, 'opacity-50']);
10
+
11
+ // ── Content ─────────────────────────────────────────────────
12
+
13
+ export const dialogContentVariants = cva([COLOR_BG_PRIMARY, `border ${COLOR_BORDER_DEFAULT}`, RADIUS_MD, Platform.select({
14
+ web: SHADOW_MD,
15
+ default: ''
16
+ }), 'max-h-[85vh] overflow-hidden'], {
17
+ variants: {
18
+ size: {
19
+ sm: 'w-[90%] max-w-sm',
20
+ md: 'w-[90%] max-w-md',
21
+ lg: 'w-[90%] max-w-lg',
22
+ full: 'w-full mx-4'
23
+ }
24
+ },
25
+ defaultVariants: {
26
+ size: 'md'
27
+ }
28
+ });
29
+
30
+ // ── Header ──────────────────────────────────────────────────
31
+
32
+ export const dialogHeaderVariants = cva(['flex-row items-center justify-between shrink-0', 'px-6 pt-6 pb-2']);
33
+
34
+ // ── Title ───────────────────────────────────────────────────
35
+
36
+ export const dialogTitleVariants = cva(['text-lg font-semibold', COLOR_TEXT_PRIMARY]);
37
+
38
+ // ── Description ─────────────────────────────────────────────
39
+
40
+ export const dialogDescriptionVariants = cva(['text-sm mt-1', COLOR_TEXT_SECONDARY]);
41
+
42
+ // ── Body ────────────────────────────────────────────────────
43
+
44
+ export const dialogBodyVariants = cva(['px-6 py-4 shrink min-h-0']);
45
+
46
+ // ── Footer ──────────────────────────────────────────────────
47
+
48
+ export const dialogFooterVariants = cva(['flex-row items-center justify-end shrink-0', 'gap-3 px-6 pt-2 pb-6']);
49
+
50
+ // ── Close ───────────────────────────────────────────────────
51
+
52
+ export const dialogCloseVariants = cva(['p-1 -m-1 rounded-full', TRANSITION_COLORS, Platform.select({
53
+ default: 'data-[active=true]:opacity-70',
54
+ web: ['data-[hover=true]:bg-slate-100', 'data-[active=true]:bg-slate-200', 'data-[focus-visible=true]:ring-2 data-[focus-visible=true]:ring-slate-400/50 data-[focus-visible=true]:ring-offset-2'].join(' ')
55
+ })]);
56
+
57
+ // ── Close Icon ──────────────────────────────────────────────
58
+
59
+ export const dialogCloseIconVariants = cva(['size-5 text-slate-500']);
60
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Platform","cva","COLOR_BG_INVERSE","COLOR_BG_PRIMARY","COLOR_BORDER_DEFAULT","COLOR_TEXT_PRIMARY","COLOR_TEXT_SECONDARY","RADIUS_MD","SHADOW_MD","TRANSITION_COLORS","dialogOverlayVariants","dialogContentVariants","select","web","default","variants","size","sm","md","lg","full","defaultVariants","dialogHeaderVariants","dialogTitleVariants","dialogDescriptionVariants","dialogBodyVariants","dialogFooterVariants","dialogCloseVariants","join","dialogCloseIconVariants"],"sourceRoot":"../../../../src","sources":["components/Dialog/styles.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AACvC,SAASC,GAAG,QAA2B,0BAA0B;AACjE,SACEC,gBAAgB,EAChBC,gBAAgB,EAChBC,oBAAoB,EACpBC,kBAAkB,EAClBC,oBAAoB,EACpBC,SAAS,EACTC,SAAS,EACTC,iBAAiB,QACZ,yBAAyB;;AAEhC;;AAEA,OAAO,MAAMC,qBAAqB,GAAGT,GAAG,CAAC,CAAC,kBAAkB,EAAEC,gBAAgB,EAAE,YAAY,CAAC,CAAC;;AAE9F;;AAEA,OAAO,MAAMS,qBAAqB,GAAGV,GAAG,CACtC,CACEE,gBAAgB,EAChB,U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 "use strict";
2
+
3
+ import { forwardRef } from 'react';
4
+ import { Text } from 'react-native';
5
+ import { composeEventHandlers, useFormControlContext } from '@cdx-ui/utils';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ /**
8
+ * Native: `Text` label row — tap focuses the field input via form context
9
+ * (parity with `<label htmlFor>` on web).
10
+ */
11
+ export const BaseFieldLabel = /*#__PURE__*/forwardRef(({
12
+ htmlFor: _omitHtmlFor,
13
+ onPress,
14
+ ...props
15
+ }, ref) => {
16
+ void _omitHtmlFor;
17
+ const {
18
+ focusInput,
19
+ isDisabled
20
+ } = useFormControlContext();
21
+ return /*#__PURE__*/_jsx(Text, {
22
+ ref: ref,
23
+ ...props,
24
+ disabled: Boolean(isDisabled),
25
+ onPress: composeEventHandlers(onPress, () => focusInput?.())
26
+ });
27
+ });
28
+ BaseFieldLabel.displayName = 'BaseFieldLabel';
29
+ //# sourceMappingURL=FieldLabel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","Text","composeEventHandlers","useFormControlContext","jsx","_jsx","BaseFieldLabel","htmlFor","_omitHtmlFor","onPress","props","ref","focusInput","isDisabled","disabled","Boolean","displayName"],"sourceRoot":"../../../../src","sources":["components/Field/FieldLabel.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,IAAI,QAA+C,cAAc;AAC1E,SAASC,oBAAoB,EAAEC,qBAAqB,QAAQ,eAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAS5E;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,gBAAGN,UAAU,CACtC,CAAC;EAAEO,OAAO,EAAEC,YAAY;EAAEC,OAAO;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EACrD,KAAKH,YAAY;EAEjB,MAAM;IAAEI,UAAU;IAAEC;EAAW,CAAC,GAAGV,qBAAqB,CAAC,CAAC;EAE1D,oBACEE,IAAA,CAACJ,IAAI;IACHU,GAAG,EAAEA,GAAI;IAAA,GACLD,KAAK;IACTI,QAAQ,EAAEC,OAAO,CAACF,UAAU,CAAE;IAC9BJ,OAAO,EAAEP,oBAAoB,CAACO,OAAO,EAAE,MAAMG,UAAU,GAAG,CAAC;EAAE,CAC9D,CAAC;AAEN,CACF,CAAC;AAEDN,cAAc,CAACU,WAAW,GAAG,gBAAgB","ignoreList":[]}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef } from 'react';
4
+
5
+ // TODO: Why does dataSet need to be decomposed into individual data attributes?
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ /** Real `<label>` so clicking the label focuses the associated control (`htmlFor` → input `id`). */
8
+ export const BaseFieldLabel = /*#__PURE__*/forwardRef((props, ref) => {
9
+ return /*#__PURE__*/_jsx("label", {
10
+ ref: ref,
11
+ ...props,
12
+ "data-invalid": props.dataSet?.invalid,
13
+ "data-required": props.dataSet?.required
14
+ });
15
+ });
16
+ BaseFieldLabel.displayName = 'BaseFieldLabel';
17
+ //# sourceMappingURL=FieldLabel.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","jsx","_jsx","BaseFieldLabel","props","ref","dataSet","invalid","required","displayName"],"sourceRoot":"../../../../src","sources":["components/Field/FieldLabel.web.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAwB,OAAO;;AAGzD;AAAA,SAAAC,GAAA,IAAAC,IAAA;AASA;AACA,OAAO,MAAMC,cAAc,gBAAGH,UAAU,CAAwC,CAACI,KAAK,EAAEC,GAAG,KAAK;EAC9F,oBACEH,IAAA;IACEG,GAAG,EAAEA,GAAI;IAAA,GACJD,KAAK;IACV,gBAAcA,KAAK,CAACE,OAAO,EAAEC,OAAQ;IACrC,iBAAeH,KAAK,CAACE,OAAO,EAAEE;EAAS,CACxC,CAAC;AAEN,CAAC,CAAC;AAEFL,cAAc,CAACM,WAAW,GAAG,gBAAgB","ignoreList":[]}
@@ -0,0 +1,155 @@
1
+ "use strict";
2
+
3
+ import { forwardRef } from 'react';
4
+ import { Text, View } from 'react-native';
5
+ import { ErrorIcon } from '@cdx-ui/icons';
6
+ import { createField } from '@cdx-ui/primitives';
7
+ import { cn } from '@cdx-ui/utils';
8
+ import { Icon } from '../Icon';
9
+ import { BaseFieldLabel } from './FieldLabel';
10
+ import { fieldErrorIconVariants, fieldErrorTextVariants, fieldErrorVariants, fieldHelperVariants, fieldHelperTextVariants, fieldLabelVariants, fieldRootVariants } from './styles';
11
+
12
+ // =============================================================================
13
+ // PRIMITIVE
14
+ // =============================================================================
15
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
+ const FieldPrimitive = createField({
17
+ Root: View,
18
+ Label: BaseFieldLabel,
19
+ Helper: View,
20
+ HelperText: Text,
21
+ Error: View,
22
+ ErrorText: Text,
23
+ ErrorIcon: View
24
+ });
25
+
26
+ // =============================================================================
27
+ // FIELD ROOT
28
+ // =============================================================================
29
+
30
+ /**
31
+ * Field wrapper + context. For **initial focus**, pass `autoFocus` on `Input.Field` (not here).
32
+ */
33
+
34
+ const FieldRoot = /*#__PURE__*/forwardRef(({
35
+ className,
36
+ children,
37
+ style,
38
+ ...props
39
+ }, ref) => {
40
+ const computedClassName = cn(fieldRootVariants(), className);
41
+ return /*#__PURE__*/_jsx(FieldPrimitive, {
42
+ ref: ref,
43
+ className: computedClassName,
44
+ style: style,
45
+ ...props,
46
+ children: children
47
+ });
48
+ });
49
+ FieldRoot.displayName = 'Field';
50
+
51
+ // =============================================================================
52
+ // FIELD LABEL
53
+ // =============================================================================
54
+
55
+ const FieldLabel = /*#__PURE__*/forwardRef(({
56
+ className,
57
+ children,
58
+ style,
59
+ htmlFor,
60
+ ...props
61
+ }, ref) => {
62
+ const labelClassName = cn(fieldLabelVariants(), className);
63
+ return /*#__PURE__*/_jsx(FieldPrimitive.Label, {
64
+ ref: ref,
65
+ className: labelClassName,
66
+ style: style,
67
+ htmlFor: htmlFor,
68
+ requiredIndicator: /*#__PURE__*/_jsx(Text, {
69
+ className: "text-red-500",
70
+ "aria-hidden": true,
71
+ children: ' *'
72
+ }),
73
+ ...props,
74
+ children: children
75
+ });
76
+ });
77
+ FieldLabel.displayName = 'Field.Label';
78
+
79
+ // =============================================================================
80
+ // FIELD HELPER
81
+ // =============================================================================
82
+
83
+ const FieldHelper = /*#__PURE__*/forwardRef(({
84
+ className,
85
+ children,
86
+ style,
87
+ ...props
88
+ }, ref) => {
89
+ const containerClassName = cn(fieldHelperVariants(), className);
90
+ const textClassName = cn(fieldHelperTextVariants());
91
+ return /*#__PURE__*/_jsx(FieldPrimitive.Helper, {
92
+ ref: ref,
93
+ className: containerClassName,
94
+ style: style,
95
+ ...props,
96
+ children: /*#__PURE__*/_jsx(FieldPrimitive.HelperText, {
97
+ className: textClassName,
98
+ children: children
99
+ })
100
+ });
101
+ });
102
+ FieldHelper.displayName = 'Field.Helper';
103
+
104
+ // =============================================================================
105
+ // FIELD ERROR (internal icon + text composition)
106
+ // =============================================================================
107
+
108
+ const FieldErrorIcon = ({
109
+ className,
110
+ style,
111
+ ...props
112
+ }) => {
113
+ const computedClassName = cn(fieldErrorIconVariants(), className);
114
+ return /*#__PURE__*/_jsx(Icon, {
115
+ as: ErrorIcon,
116
+ className: computedClassName,
117
+ style: style,
118
+ "aria-hidden": true,
119
+ ...props
120
+ });
121
+ };
122
+ FieldErrorIcon.displayName = 'Field.ErrorIcon';
123
+ const FieldError = /*#__PURE__*/forwardRef(({
124
+ className,
125
+ children,
126
+ style,
127
+ ...props
128
+ }, ref) => {
129
+ const containerClassName = cn(fieldErrorVariants(), className);
130
+ const textClassName = cn(fieldErrorTextVariants());
131
+ return /*#__PURE__*/_jsxs(FieldPrimitive.Error, {
132
+ ref: ref,
133
+ className: containerClassName,
134
+ style: style,
135
+ ...props,
136
+ children: [/*#__PURE__*/_jsx(FieldPrimitive.ErrorIcon, {
137
+ children: /*#__PURE__*/_jsx(FieldErrorIcon, {})
138
+ }), /*#__PURE__*/_jsx(FieldPrimitive.ErrorText, {
139
+ className: textClassName,
140
+ children: children
141
+ })]
142
+ });
143
+ });
144
+ FieldError.displayName = 'Field.Error';
145
+
146
+ // =============================================================================
147
+ // COMPOUND EXPORT
148
+ // =============================================================================
149
+
150
+ export const Field = Object.assign(FieldRoot, {
151
+ Label: FieldLabel,
152
+ Helper: FieldHelper,
153
+ Error: FieldError
154
+ });
155
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","Text","View","ErrorIcon","createField","cn","Icon","BaseFieldLabel","fieldErrorIconVariants","fieldErrorTextVariants","fieldErrorVariants","fieldHelperVariants","fieldHelperTextVariants","fieldLabelVariants","fieldRootVariants","jsx","_jsx","jsxs","_jsxs","FieldPrimitive","Root","Label","Helper","HelperText","Error","ErrorText","FieldRoot","className","children","style","props","ref","computedClassName","displayName","FieldLabel","htmlFor","labelClassName","requiredIndicator","FieldHelper","containerClassName","textClassName","FieldErrorIcon","as","FieldError","Field","Object","assign"],"sourceRoot":"../../../../src","sources":["components/Field/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzC,SAASC,SAAS,QAAQ,eAAe;AACzC,SACEC,WAAW,QAKN,oBAAoB;AAC3B,SAASC,EAAE,QAAQ,eAAe;AAClC,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,cAAc,QAAQ,cAAc;AAC7C,SACEC,sBAAsB,EACtBC,sBAAsB,EACtBC,kBAAkB,EAClBC,mBAAmB,EACnBC,uBAAuB,EACvBC,kBAAkB,EAClBC,iBAAiB,QAKZ,UAAU;;AAEjB;AACA;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEA,MAAMC,cAAc,GAAGf,WAAW,CAAC;EACjCgB,IAAI,EAAElB,IAAI;EACVmB,KAAK,EAAEd,cAAc;EACrBe,MAAM,EAAEpB,IAAI;EACZqB,UA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AAS,CAAC;EAC9D,MAAMa,aAAa,GAAGnC,EAAE,CAACI,sBAAsB,CAAC,CAAC,CAAC;EAElD,oBACES,KAAA,CAACC,cAAc,CAACK,KAAK;IAACO,GAAG,EAAEA,GAAI;IAACJ,SAAS,EAAEY,kBAAmB;IAACV,KAAK,EAAEA,KAAM;IAAA,GAAKC,KAAK;IAAAF,QAAA,gBACpFZ,IAAA,CAACG,cAAc,CAAChB,SAAS;MAAAyB,QAAA,eACvBZ,IAAA,CAACyB,cAAc,IAAE;IAAC,CACM,CAAC,eAC3BzB,IAAA,CAACG,cAAc,CAACM,SAAS;MAACE,SAAS,EAAEa,aAAc;MAAAZ,QAAA,EAAEA;IAAQ,CAA2B,CAAC;EAAA,CACrE,CAAC;AAE3B,CACF,CAAC;AAEDe,UAAU,CAACV,WAAW,GAAG,aAAa;;AAEtC;AACA;AACA;;AAQA,OAAO,MAAMW,KAAK,GAAGC,MAAM,CAACC,MAAM,CAACpB,SAAS,EAAE;EAC5CL,KAAK,EAAEa,UAAU;EACjBZ,MAAM,EAAEgB,WAAW;EACnBd,KAAK,EAAEmB;AACT,CAAC,CAA2B","ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ import { cva } from 'class-variance-authority';
4
+ import { DISABLED_OPACITY } from '../../styles/primitives';
5
+ export const fieldRootVariants = cva(['flex-col gap-2', 'web:last:mb-0', DISABLED_OPACITY]);
6
+ export const fieldLabelVariants = cva(['body-md', 'font-medium', 'text-content-primary', 'flex-row items-center', DISABLED_OPACITY, 'web:cursor-pointer', 'data-[invalid=true]:text-content-danger']);
7
+ export const fieldHelperVariants = cva(['flex-row items-center']);
8
+ export const fieldHelperTextVariants = cva(['body-sm', 'text-content-tertiary']);
9
+ export const fieldErrorVariants = cva(['flex-row items-center gap-1']);
10
+ export const fieldErrorTextVariants = cva(['body-sm', 'text-content-danger']);
11
+ export const fieldErrorIconVariants = cva(['size-3.5', 'text-content-danger']);
12
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["cva","DISABLED_OPACITY","fieldRootVariants","fieldLabelVariants","fieldHelperVariants","fieldHelperTextVariants","fieldErrorVariants","fieldErrorTextVariants","fieldErrorIconVariants"],"sourceRoot":"../../../../src","sources":["components/Field/styles.ts"],"mappings":";;AAAA,SAASA,GAAG,QAA2B,0BAA0B;AACjE,SAASC,gBAAgB,QAAQ,yBAAyB;AAE1D,OAAO,MAAMC,iBAAiB,GAAGF,GAAG,CAAC,CAAC,gBAAgB,EAAE,eAAe,EAAEC,gBAAgB,CAAC,CAAC;AAE3F,OAAO,MAAME,kBAAkB,GAAGH,GAAG,CAAC,CACpC,SAAS,EACT,aAAa,EACb,sBAAsB,EACtB,uBAAuB,EACvBC,gBAAgB,EAChB,oBAAoB,EACpB,yCAAyC,CAC1C,CAAC;AAEF,OAAO,MAAMG,mBAAmB,GAAGJ,GAAG,CAAC,CAAC,uBAAuB,CAAC,CAAC;AAEjE,OAAO,MAAMK,uBAAuB,GAAGL,GAAG,CAAC,CAAC,SAAS,EAAE,uBAAuB,CAAC,CAAC;AAEhF,OAAO,MAAMM,kBAAkB,GAAGN,GAAG,CAAC,CAAC,6BAA6B,CAAC,CAAC;AAEtE,OAAO,MAAMO,sBAAsB,GAAGP,GAAG,CAAC,CAAC,SAAS,EAAE,qBAAqB,CAAC,CAAC;AAE7E,OAAO,MAAMQ,sBAAsB,GAAGR,GAAG,CAAC,CAAC,UAAU,EAAE,qBAAqB,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ import { forwardRef } from 'react';
4
+ import { View } from 'react-native';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export const BaseFormRoot = /*#__PURE__*/forwardRef(({
7
+ onSubmit: _onSubmit,
8
+ action: _action,
9
+ method: _method,
10
+ ...props
11
+ }, ref) => {
12
+ void _onSubmit;
13
+ void _action;
14
+ void _method;
15
+ return /*#__PURE__*/_jsx(View, {
16
+ ref: ref,
17
+ ...props
18
+ });
19
+ });
20
+ BaseFormRoot.displayName = 'BaseFormRoot';
21
+ //# sourceMappingURL=FormRoot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","View","jsx","_jsx","BaseFormRoot","onSubmit","_onSubmit","action","_action","method","_method","props","ref","displayName"],"sourceRoot":"../../../../src","sources":["components/Form/FormRoot.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,IAAI,QAAwB,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AASpD,OAAO,MAAMC,YAAY,gBAAGJ,UAAU,CACpC,CAAC;EAAEK,QAAQ,EAAEC,SAAS;EAAEC,MAAM,EAAEC,OAAO;EAAEC,MAAM,EAAEC,OAAO;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EAC5E,KAAKN,SAAS;EACd,KAAKE,OAAO;EACZ,KAAKE,OAAO;EACZ,oBAAOP,IAAA,CAACF,IAAI;IAACW,GAAG,EAAEA,GAAI;IAAA,GAAKD;EAAK,CAAG,CAAC;AACtC,CACF,CAAC;AAEDP,YAAY,CAACS,WAAW,GAAG,cAAc","ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef } from 'react';
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ export const BaseFormRoot = /*#__PURE__*/forwardRef((props, ref) => {
6
+ return /*#__PURE__*/_jsx("form", {
7
+ ref: ref,
8
+ ...props
9
+ });
10
+ });
11
+ BaseFormRoot.displayName = 'BaseFormRoot';
12
+ //# sourceMappingURL=FormRoot.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","jsx","_jsx","BaseFormRoot","props","ref","displayName"],"sourceRoot":"../../../../src","sources":["components/Form/FormRoot.web.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAO1C,OAAO,MAAMC,YAAY,gBAAGH,UAAU,CAAqC,CAACI,KAAK,EAAEC,GAAG,KAAK;EACzF,oBAAOH,IAAA;IAAMG,GAAG,EAAEA,GAAI;IAAA,GAAKD;EAAK,CAAG,CAAC;AACtC,CAAC,CAAC;AAEFD,YAAY,CAACG,WAAW,GAAG,cAAc","ignoreList":[]}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef } from 'react';
4
+ import { createForm } from '@cdx-ui/primitives';
5
+ import { cn } from '@cdx-ui/utils';
6
+ import { BaseFormRoot } from './FormRoot';
7
+ import { formRootVariants } from './styles';
8
+
9
+ // =============================================================================
10
+ // PRIMITIVE
11
+ // =============================================================================
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ const FormPrimitive = createForm({
14
+ Root: BaseFormRoot
15
+ });
16
+ FormPrimitive.displayName = 'FormPrimitive';
17
+
18
+ // =============================================================================
19
+ // FORM ROOT (container — <form> on web, <View> on RN)
20
+ // =============================================================================
21
+
22
+ const FormRoot = /*#__PURE__*/forwardRef(({
23
+ className,
24
+ children,
25
+ style,
26
+ ...props
27
+ }, ref) => {
28
+ const computedClassName = cn(formRootVariants(), className);
29
+ return /*#__PURE__*/_jsx(FormPrimitive, {
30
+ ref: ref,
31
+ className: computedClassName,
32
+ style: style,
33
+ ...props,
34
+ children: children
35
+ });
36
+ });
37
+ FormRoot.displayName = 'Form';
38
+
39
+ // =============================================================================
40
+ // EXPORT
41
+ // =============================================================================
42
+
43
+ export const Form = FormRoot;
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","createForm","cn","BaseFormRoot","formRootVariants","jsx","_jsx","FormPrimitive","Root","displayName","FormRoot","className","children","style","props","ref","computedClassName","Form"],"sourceRoot":"../../../../src","sources":["components/Form/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AAEzC,SAASC,UAAU,QAAQ,oBAAoB;AAC/C,SAASC,EAAE,QAAQ,eAAe;AAClC,SAASC,YAAY,QAAgC,YAAY;AACjE,SAASC,gBAAgB,QAAQ,UAAU;;AAE3C;AACA;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAEA,MAAMC,aAAa,GAAGN,UAAU,CAAC;EAAEO,IAAI,EAAEL;AAAa,CAAC,CAAC;AAExDI,aAAa,CAACE,WAAW,GAAG,eAAe;;AAE3C;AACA;AACA;;AAIA,MAAMC,QAAQ,gBAAGV,UAAU,CAAkB,CAAC;EAAEW,SAAS;EAAEC,QAAQ;EAAEC,KAAK;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EAC9F,MAAMC,iBAAiB,GAAGd,EAAE,CAACE,gBAAgB,CAAC,CAAC,EAAEO,SAAS,CAAC;EAE3D,oBACEL,IAAA,CAACC,aAAa;IAACQ,GAAG,EAAEA,GAAI;IAACJ,SAAS,EAAEK,iBAAkB;IAACH,KAAK,EAAEA,KAAM;IAAA,GAAKC,KAAK;IAAAF,QAAA,EAC3EA;EAAQ,CACI,CAAC;AAEpB,CAAC,CAAC;AAEFF,QAAQ,CAACD,WAAW,GAAG,MAAM;;AAE7B;AACA;AACA;;AAEA,OAAO,MAAMQ,IAAI,GAAGP,QAAQ","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ import { cva } from 'class-variance-authority';
4
+ export const formRootVariants = cva(['flex-col gap-4']);
5
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["cva","formRootVariants"],"sourceRoot":"../../../../src","sources":["components/Form/styles.ts"],"mappings":";;AAAA,SAASA,GAAG,QAAQ,0BAA0B;AAE9C,OAAO,MAAMC,gBAAgB,GAAGD,GAAG,CAAC,CAAC,gBAAgB,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ import { forwardRef, memo } from 'react';
4
+ import { Text } from 'react-native';
5
+ import { cn } from '@cdx-ui/utils';
6
+ import { headingStyle } from './styles';
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ const sizeToLevel = {
9
+ xl: 1,
10
+ lg: 2,
11
+ md: 3,
12
+ sm: 4,
13
+ xs: 5
14
+ };
15
+ export const Heading = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Heading({
16
+ className,
17
+ size = 'lg',
18
+ ...props
19
+ }, ref) {
20
+ return /*#__PURE__*/_jsx(Text, {
21
+ role: "heading",
22
+ "aria-level": sizeToLevel[size ?? 'lg'],
23
+ className: cn(headingStyle({
24
+ size
25
+ }), className),
26
+ ...props,
27
+ ref: ref
28
+ });
29
+ }));
30
+ Heading.displayName = 'Heading';
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","memo","Text","cn","headingStyle","jsx","_jsx","sizeToLevel","xl","lg","md","sm","xs","Heading","className","size","props","ref","role","displayName"],"sourceRoot":"../../../../src","sources":["components/Heading/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAA0D,OAAO;AAC1F,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,EAAE,QAAQ,eAAe;AAClC,SAASC,YAAY,QAAkC,UAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAElE,MAAMC,WAAW,GAAG;EAClBC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE;AACN,CAAU;AAOV,OAAO,MAAMC,OAAO,gBAAGZ,IAAI,cACzBD,UAAU,CAA0C,SAASa,OAAOA,CAClE;EAAEC,SAAS;EAAEC,IAAI,GAAG,IAAI;EAAE,GAAGC;AAAM,CAAC,EACpCC,GAAG,EACH;EACA,oBACEX,IAAA,CAACJ,IAAI;IACHgB,IAAI,EAAC,SAAS;IACd,cAAYX,WAAW,CAACQ,IAAI,IAAI,IAAI,CAAE;IACtCD,SAAS,EAAEX,EAAE,CAACC,YAAY,CAAC;MAAEW;IAAK,CAAC,CAAC,EAAED,SAAS,CAAE;IAAA,GAC7CE,KAAK;IACTC,GAAG,EAAEA;EAAI,CACV,CAAC;AAEN,CAAC,CACH,CAAC;AAEDJ,OAAO,CAACM,WAAW,GAAG,SAAS","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ import { Platform } from 'react-native';
4
+ import { cva } from 'class-variance-authority';
5
+ export const headingStyle = cva([`text-content-primary my-0`, Platform.select({
6
+ web: 'bg-transparent display-inline no-underline',
7
+ default: ''
8
+ })], {
9
+ variants: {
10
+ size: {
11
+ xl: 'heading-xl',
12
+ lg: 'heading-lg',
13
+ md: 'heading-md',
14
+ sm: 'heading-sm',
15
+ xs: 'heading-xs'
16
+ }
17
+ }
18
+ });
19
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Platform","cva","headingStyle","select","web","default","variants","size","xl","lg","md","sm","xs"],"sourceRoot":"../../../../src","sources":["components/Heading/styles.tsx"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AACvC,SAASC,GAAG,QAA2B,0BAA0B;AAEjE,OAAO,MAAMC,YAAY,GAAGD,GAAG,CAC7B,CACE,2BAA2B,EAC3BD,QAAQ,CAACG,MAAM,CAAC;EACdC,GAAG,EAAE,4CAA4C;EACjDC,OAAO,EAAE;AACX,CAAC,CAAC,CACH,EACD;EACEC,QAAQ,EAAE;IACRC,IAAI,EAAE;MACJC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE;IACN;EACF;AACF,CACF,CAAC","ignoreList":[]}
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+
3
+ import { withUniwind } from 'uniwind';
4
+ import { cn } from '@cdx-ui/utils';
5
+ import { COLOR_TEXT_PRIMARY } from '../../styles/primitives';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ function IconImpl({
8
+ as: IconComponent,
9
+ ...props
10
+ }) {
11
+ return /*#__PURE__*/_jsx(IconComponent, {
12
+ ...props
13
+ });
14
+ }
15
+ const StyledIcon = withUniwind(IconImpl, {
16
+ size: {
17
+ fromClassName: 'className',
18
+ styleProperty: 'width'
19
+ },
20
+ color: {
21
+ fromClassName: 'className',
22
+ styleProperty: 'color'
23
+ }
24
+ });
25
+
26
+ /**
27
+ * A wrapper component for CDX icons with Uniwind `className` support via `withUniwind`.
28
+ *
29
+ * This component allows you to render any CDX icon while applying utility classes
30
+ * using `uniwind`. It avoids the need to wrap or configure each icon individually.
31
+ *
32
+ * @component
33
+ * @example
34
+ * ```tsx
35
+ * import { Icon } from '@cdx-ui/components';
36
+ * import { ArrowRight } from '@cdx-ui/icons';
37
+ *
38
+ * <Icon as={ArrowRight} className="text-red-500 size-4" />
39
+ * ```
40
+ *
41
+ * @param {CdxIcon} as - The CDX icon component to render.
42
+ * @param {string} className - Utility classes to style the icon using Uniwind.
43
+ * @param {number} size - Icon size (overrides the size class).
44
+ * @param {...CdxIconProps} ...props - Additional icon props passed to the "as" icon.
45
+ */
46
+ export function Icon({
47
+ as: IconComponent,
48
+ className,
49
+ ...props
50
+ }) {
51
+ return /*#__PURE__*/_jsx(StyledIcon, {
52
+ as: IconComponent,
53
+ className: cn(COLOR_TEXT_PRIMARY, 'size-5', className),
54
+ ...props
55
+ });
56
+ }
57
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["withUniwind","cn","COLOR_TEXT_PRIMARY","jsx","_jsx","IconImpl","as","IconComponent","props","StyledIcon","size","fromClassName","styleProperty","color","Icon","className"],"sourceRoot":"../../../../src","sources":["components/Icon/index.tsx"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,SAAS;AACrC,SAASC,EAAE,QAAQ,eAAe;AAElC,SAASC,kBAAkB,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAO7D,SAASC,QAAQA,CAAC;EAAEC,EAAE,EAAEC,aAAa;EAAE,GAAGC;AAAiB,CAAC,EAAE;EAC5D,oBAAOJ,IAAA,CAACG,aAAa;IAAA,GAAKC;EAAK,CAAG,CAAC;AACrC;AAEA,MAAMC,UAAU,GAAGT,WAAW,CAACK,QAAQ,EAAE;EACvCK,IAAI,EAAE;IACJC,aAAa,EAAE,WAAW;IAC1BC,aAAa,EAAE;EACjB,CAAC;EACDC,KAAK,EAAE;IACLF,aAAa,EAAE,WAAW;IAC1BC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASE,IAAIA,CAAC;EAAER,EAAE,EAAEC,aAAa;EAAEQ,SAAS;EAAE,GAAGP;AAAiB,CAAC,EAAE;EAC1E,oBACEJ,IAAA,CAACK,UAAU;IACTH,EAAE,EAAEC,aAAc;IAClBQ,SAAS,EAAEd,EAAE,CAACC,kBAAkB,EAAE,QAAQ,EAAEa,SAAS,CAAE;IAAA,GACnDP;EAAK,CACV,CAAC;AAEN","ignoreList":[]}
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+
3
+ import { forwardRef } from 'react';
4
+ import { ActivityIndicator, Pressable, Text, View } from 'react-native';
5
+ import { createButton, dataAttributes, useButtonContext } from '@cdx-ui/primitives';
6
+ import { cn } from '@cdx-ui/utils';
7
+ import { Icon } from '../Icon';
8
+ import { iconButtonGlyphVariants, iconButtonIconColorVariants, iconButtonRootVariants } from './styles';
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ const IconButtonPrimitive = createButton({
11
+ Root: Pressable,
12
+ Text,
13
+ Group: View,
14
+ Spinner: ActivityIndicator,
15
+ Icon: View
16
+ });
17
+ function IconButtonGlyph({
18
+ as: IconComponent,
19
+ className
20
+ }) {
21
+ const {
22
+ hover,
23
+ focus,
24
+ active,
25
+ disabled,
26
+ focusVisible
27
+ } = useButtonContext();
28
+ return /*#__PURE__*/_jsx(Icon, {
29
+ as: IconComponent,
30
+ className: className,
31
+ ...dataAttributes({
32
+ hover,
33
+ focus,
34
+ active,
35
+ disabled,
36
+ focusVisible
37
+ })
38
+ });
39
+ }
40
+ const IconButtonRoot = /*#__PURE__*/forwardRef(({
41
+ variant = 'solid',
42
+ size = 'default',
43
+ className,
44
+ style,
45
+ as: IconComponent,
46
+ iconClassName,
47
+ accessibilityRole = 'button',
48
+ ...props
49
+ }, ref) => {
50
+ const rootClassName = cn(iconButtonRootVariants({
51
+ variant,
52
+ size
53
+ }), className);
54
+ const glyphClassName = cn(iconButtonGlyphVariants({
55
+ size
56
+ }), iconButtonIconColorVariants(), iconClassName);
57
+ return /*#__PURE__*/_jsx(IconButtonPrimitive, {
58
+ ref: ref,
59
+ accessibilityRole: accessibilityRole,
60
+ className: rootClassName,
61
+ style: style,
62
+ ...props,
63
+ children: /*#__PURE__*/_jsx(IconButtonGlyph, {
64
+ as: IconComponent,
65
+ className: glyphClassName
66
+ })
67
+ });
68
+ });
69
+ IconButtonRoot.displayName = 'IconButton';
70
+ export const IconButton = IconButtonRoot;
71
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","ActivityIndicator","Pressable","Text","View","createButton","dataAttributes","useButtonContext","cn","Icon","iconButtonGlyphVariants","iconButtonIconColorVariants","iconButtonRootVariants","jsx","_jsx","IconButtonPrimitive","Root","Group","Spinner","IconButtonGlyph","as","IconComponent","className","hover","focus","active","disabled","focusVisible","IconButtonRoot","variant","size","style","iconClassName","accessibilityRole","props","ref","rootClassName","glyphClassName","children","displayName","IconButton"],"sourceRoot":"../../../../src","sources":["components/IconButton/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,iBAAiB,EAAEC,SAAS,EAAEC,IAAI,EAAEC,IAAI,QAA6B,cAAc;AAC5F,SACEC,YAAY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