@cdx-ui/components 0.0.1-alpha.3 → 0.0.1-alpha.31

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 (402) hide show
  1. package/README.md +20 -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/buttonSharedVariants.js +200 -0
  15. package/lib/commonjs/components/Button/buttonSharedVariants.js.map +1 -0
  16. package/lib/commonjs/components/Button/index.js +31 -13
  17. package/lib/commonjs/components/Button/index.js.map +1 -1
  18. package/lib/commonjs/components/Button/styles.js +170 -187
  19. package/lib/commonjs/components/Button/styles.js.map +1 -1
  20. package/lib/commonjs/components/Card/index.js +104 -0
  21. package/lib/commonjs/components/Card/index.js.map +1 -0
  22. package/lib/commonjs/components/Card/styles.js +28 -0
  23. package/lib/commonjs/components/Card/styles.js.map +1 -0
  24. package/lib/commonjs/components/Checkbox/index.js +180 -0
  25. package/lib/commonjs/components/Checkbox/index.js.map +1 -0
  26. package/lib/commonjs/components/Checkbox/styles.js +68 -0
  27. package/lib/commonjs/components/Checkbox/styles.js.map +1 -0
  28. package/lib/commonjs/components/Chip/index.js +103 -0
  29. package/lib/commonjs/components/Chip/index.js.map +1 -0
  30. package/lib/commonjs/components/Chip/styles.js +50 -0
  31. package/lib/commonjs/components/Chip/styles.js.map +1 -0
  32. package/lib/commonjs/components/Dialog/index.js +275 -0
  33. package/lib/commonjs/components/Dialog/index.js.map +1 -0
  34. package/lib/commonjs/components/Dialog/styles.js +63 -0
  35. package/lib/commonjs/components/Dialog/styles.js.map +1 -0
  36. package/lib/commonjs/components/Form/FormLabelRoot.js +33 -0
  37. package/lib/commonjs/components/Form/FormLabelRoot.js.map +1 -0
  38. package/lib/commonjs/components/Form/FormLabelRoot.web.js +18 -0
  39. package/lib/commonjs/components/Form/FormLabelRoot.web.js.map +1 -0
  40. package/lib/commonjs/components/Form/FormRoot.js +25 -0
  41. package/lib/commonjs/components/Form/FormRoot.js.map +1 -0
  42. package/lib/commonjs/components/Form/FormRoot.web.js +17 -0
  43. package/lib/commonjs/components/Form/FormRoot.web.js.map +1 -0
  44. package/lib/commonjs/components/Form/index.js +255 -0
  45. package/lib/commonjs/components/Form/index.js.map +1 -0
  46. package/lib/commonjs/components/Form/styles.js +57 -0
  47. package/lib/commonjs/components/Form/styles.js.map +1 -0
  48. package/lib/commonjs/components/Heading/index.js +35 -0
  49. package/lib/commonjs/components/Heading/index.js.map +1 -0
  50. package/lib/commonjs/components/Heading/styles.js +24 -0
  51. package/lib/commonjs/components/Heading/styles.js.map +1 -0
  52. package/lib/commonjs/components/Icon/index.js +61 -0
  53. package/lib/commonjs/components/Icon/index.js.map +1 -0
  54. package/lib/commonjs/components/IconButton/index.js +80 -0
  55. package/lib/commonjs/components/IconButton/index.js.map +1 -0
  56. package/lib/commonjs/components/IconButton/styles.js +91 -0
  57. package/lib/commonjs/components/IconButton/styles.js.map +1 -0
  58. package/lib/commonjs/components/Image/Image.js +69 -0
  59. package/lib/commonjs/components/Image/Image.js.map +1 -0
  60. package/lib/commonjs/components/Image/index.js +13 -0
  61. package/lib/commonjs/components/Image/index.js.map +1 -0
  62. package/lib/commonjs/components/Input/BaseInput.android.js +20 -0
  63. package/lib/commonjs/components/Input/BaseInput.android.js.map +1 -0
  64. package/lib/commonjs/components/Input/index.js +10 -16
  65. package/lib/commonjs/components/Input/index.js.map +1 -1
  66. package/lib/commonjs/components/Input/styles.js +16 -30
  67. package/lib/commonjs/components/Input/styles.js.map +1 -1
  68. package/lib/commonjs/components/Link/index.js +94 -0
  69. package/lib/commonjs/components/Link/index.js.map +1 -0
  70. package/lib/commonjs/components/Link/styles.js +16 -0
  71. package/lib/commonjs/components/Link/styles.js.map +1 -0
  72. package/lib/commonjs/components/ProgressSegmented/index.js +62 -0
  73. package/lib/commonjs/components/ProgressSegmented/index.js.map +1 -0
  74. package/lib/commonjs/components/ProgressSegmented/styles.js +21 -0
  75. package/lib/commonjs/components/ProgressSegmented/styles.js.map +1 -0
  76. package/lib/commonjs/components/Select/SelectTriggerHost.js +10 -0
  77. package/lib/commonjs/components/Select/SelectTriggerHost.js.map +1 -0
  78. package/lib/commonjs/components/Select/SelectTriggerHost.web.js +98 -0
  79. package/lib/commonjs/components/Select/SelectTriggerHost.web.js.map +1 -0
  80. package/lib/commonjs/components/Select/index.js +13 -13
  81. package/lib/commonjs/components/Select/index.js.map +1 -1
  82. package/lib/commonjs/components/Select/styles.js +29 -53
  83. package/lib/commonjs/components/Select/styles.js.map +1 -1
  84. package/lib/commonjs/components/Stack/HStack.js +8 -21
  85. package/lib/commonjs/components/Stack/HStack.js.map +1 -1
  86. package/lib/commonjs/components/Stack/VStack.js +8 -21
  87. package/lib/commonjs/components/Stack/VStack.js.map +1 -1
  88. package/lib/commonjs/components/Stack/styles.js +39 -0
  89. package/lib/commonjs/components/Stack/styles.js.map +1 -0
  90. package/lib/commonjs/components/Switch/BaseSwitch.js +46 -0
  91. package/lib/commonjs/components/Switch/BaseSwitch.js.map +1 -0
  92. package/lib/commonjs/components/Switch/BaseSwitch.web.js +56 -0
  93. package/lib/commonjs/components/Switch/BaseSwitch.web.js.map +1 -0
  94. package/lib/commonjs/components/Switch/index.js +13 -0
  95. package/lib/commonjs/components/Switch/index.js.map +1 -0
  96. package/lib/commonjs/components/Switch/styles.js +128 -0
  97. package/lib/commonjs/components/Switch/styles.js.map +1 -0
  98. package/lib/commonjs/components/Text/index.js +18 -9
  99. package/lib/commonjs/components/Text/index.js.map +1 -1
  100. package/lib/commonjs/components/Text/styles.js +24 -0
  101. package/lib/commonjs/components/Text/styles.js.map +1 -0
  102. package/lib/commonjs/components/VirtualizedList/index.js +19 -0
  103. package/lib/commonjs/components/VirtualizedList/index.js.map +1 -0
  104. package/lib/commonjs/components/index.js +192 -0
  105. package/lib/commonjs/components/index.js.map +1 -1
  106. package/lib/commonjs/index.js +40 -0
  107. package/lib/commonjs/index.js.map +1 -1
  108. package/lib/commonjs/metro/withCdxMetroConfig.js +24 -0
  109. package/lib/commonjs/metro/withCdxMetroConfig.js.map +1 -0
  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/buttonSharedVariants.js +195 -0
  127. package/lib/module/components/Button/buttonSharedVariants.js.map +1 -0
  128. package/lib/module/components/Button/index.js +32 -14
  129. package/lib/module/components/Button/index.js.map +1 -1
  130. package/lib/module/components/Button/styles.js +168 -186
  131. package/lib/module/components/Button/styles.js.map +1 -1
  132. package/lib/module/components/Card/index.js +100 -0
  133. package/lib/module/components/Card/index.js.map +1 -0
  134. package/lib/module/components/Card/styles.js +25 -0
  135. package/lib/module/components/Card/styles.js.map +1 -0
  136. package/lib/module/components/Checkbox/index.js +176 -0
  137. package/lib/module/components/Checkbox/index.js.map +1 -0
  138. package/lib/module/components/Checkbox/styles.js +64 -0
  139. package/lib/module/components/Checkbox/styles.js.map +1 -0
  140. package/lib/module/components/Chip/index.js +99 -0
  141. package/lib/module/components/Chip/index.js.map +1 -0
  142. package/lib/module/components/Chip/styles.js +46 -0
  143. package/lib/module/components/Chip/styles.js.map +1 -0
  144. package/lib/module/components/Dialog/index.js +267 -0
  145. package/lib/module/components/Dialog/index.js.map +1 -0
  146. package/lib/module/components/Dialog/styles.js +60 -0
  147. package/lib/module/components/Dialog/styles.js.map +1 -0
  148. package/lib/module/components/Form/FormLabelRoot.js +29 -0
  149. package/lib/module/components/Form/FormLabelRoot.js.map +1 -0
  150. package/lib/module/components/Form/FormLabelRoot.web.js +13 -0
  151. package/lib/module/components/Form/FormLabelRoot.web.js.map +1 -0
  152. package/lib/module/components/Form/FormRoot.js +21 -0
  153. package/lib/module/components/Form/FormRoot.js.map +1 -0
  154. package/lib/module/components/Form/FormRoot.web.js +12 -0
  155. package/lib/module/components/Form/FormRoot.web.js.map +1 -0
  156. package/lib/module/components/Form/index.js +252 -0
  157. package/lib/module/components/Form/index.js.map +1 -0
  158. package/lib/module/components/Form/styles.js +53 -0
  159. package/lib/module/components/Form/styles.js.map +1 -0
  160. package/lib/module/components/Heading/index.js +31 -0
  161. package/lib/module/components/Heading/index.js.map +1 -0
  162. package/lib/module/components/Heading/styles.js +20 -0
  163. package/lib/module/components/Heading/styles.js.map +1 -0
  164. package/lib/module/components/Icon/index.js +57 -0
  165. package/lib/module/components/Icon/index.js.map +1 -0
  166. package/lib/module/components/IconButton/index.js +76 -0
  167. package/lib/module/components/IconButton/index.js.map +1 -0
  168. package/lib/module/components/IconButton/styles.js +87 -0
  169. package/lib/module/components/IconButton/styles.js.map +1 -0
  170. package/lib/module/components/Image/Image.js +67 -0
  171. package/lib/module/components/Image/Image.js.map +1 -0
  172. package/lib/module/components/Image/index.js +4 -0
  173. package/lib/module/components/Image/index.js.map +1 -0
  174. package/lib/module/components/Input/BaseInput.android.js +16 -0
  175. package/lib/module/components/Input/BaseInput.android.js.map +1 -0
  176. package/lib/module/components/Input/index.js +10 -16
  177. package/lib/module/components/Input/index.js.map +1 -1
  178. package/lib/module/components/Input/styles.js +16 -30
  179. package/lib/module/components/Input/styles.js.map +1 -1
  180. package/lib/module/components/Link/index.js +85 -0
  181. package/lib/module/components/Link/index.js.map +1 -0
  182. package/lib/module/components/Link/styles.js +12 -0
  183. package/lib/module/components/Link/styles.js.map +1 -0
  184. package/lib/module/components/ProgressSegmented/index.js +58 -0
  185. package/lib/module/components/ProgressSegmented/index.js.map +1 -0
  186. package/lib/module/components/ProgressSegmented/styles.js +17 -0
  187. package/lib/module/components/ProgressSegmented/styles.js.map +1 -0
  188. package/lib/module/components/Select/SelectTriggerHost.js +7 -0
  189. package/lib/module/components/Select/SelectTriggerHost.js.map +1 -0
  190. package/lib/module/components/Select/SelectTriggerHost.web.js +93 -0
  191. package/lib/module/components/Select/SelectTriggerHost.web.js.map +1 -0
  192. package/lib/module/components/Select/index.js +14 -14
  193. package/lib/module/components/Select/index.js.map +1 -1
  194. package/lib/module/components/Select/styles.js +29 -53
  195. package/lib/module/components/Select/styles.js.map +1 -1
  196. package/lib/module/components/Stack/HStack.js +8 -21
  197. package/lib/module/components/Stack/HStack.js.map +1 -1
  198. package/lib/module/components/Stack/VStack.js +8 -21
  199. package/lib/module/components/Stack/VStack.js.map +1 -1
  200. package/lib/module/components/Stack/styles.js +35 -0
  201. package/lib/module/components/Stack/styles.js.map +1 -0
  202. package/lib/module/components/Switch/BaseSwitch.js +42 -0
  203. package/lib/module/components/Switch/BaseSwitch.js.map +1 -0
  204. package/lib/module/components/Switch/BaseSwitch.web.js +52 -0
  205. package/lib/module/components/Switch/BaseSwitch.web.js.map +1 -0
  206. package/lib/module/components/Switch/index.js +9 -0
  207. package/lib/module/components/Switch/index.js.map +1 -0
  208. package/lib/module/components/Switch/styles.js +125 -0
  209. package/lib/module/components/Switch/styles.js.map +1 -0
  210. package/lib/module/components/Text/index.js +19 -1
  211. package/lib/module/components/Text/index.js.map +1 -1
  212. package/lib/module/components/Text/styles.js +20 -0
  213. package/lib/module/components/Text/styles.js.map +1 -0
  214. package/lib/module/components/VirtualizedList/index.js +15 -0
  215. package/lib/module/components/VirtualizedList/index.js.map +1 -0
  216. package/lib/module/components/index.js +16 -0
  217. package/lib/module/components/index.js.map +1 -1
  218. package/lib/module/index.js +3 -0
  219. package/lib/module/index.js.map +1 -1
  220. package/lib/module/metro/withCdxMetroConfig.js +20 -0
  221. package/lib/module/metro/withCdxMetroConfig.js.map +1 -0
  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/buttonSharedVariants.d.ts +29 -0
  239. package/lib/typescript/components/Button/buttonSharedVariants.d.ts.map +1 -0
  240. package/lib/typescript/components/Button/index.d.ts +6 -3
  241. package/lib/typescript/components/Button/index.d.ts.map +1 -1
  242. package/lib/typescript/components/Button/styles.d.ts +14 -8
  243. package/lib/typescript/components/Button/styles.d.ts.map +1 -1
  244. package/lib/typescript/components/Card/index.d.ts +30 -0
  245. package/lib/typescript/components/Card/index.d.ts.map +1 -0
  246. package/lib/typescript/components/Card/styles.d.ts +6 -0
  247. package/lib/typescript/components/Card/styles.d.ts.map +1 -0
  248. package/lib/typescript/components/Checkbox/index.d.ts +46 -0
  249. package/lib/typescript/components/Checkbox/index.d.ts.map +1 -0
  250. package/lib/typescript/components/Checkbox/styles.d.ts +18 -0
  251. package/lib/typescript/components/Checkbox/styles.d.ts.map +1 -0
  252. package/lib/typescript/components/Chip/index.d.ts +27 -0
  253. package/lib/typescript/components/Chip/index.d.ts.map +1 -0
  254. package/lib/typescript/components/Chip/styles.d.ts +12 -0
  255. package/lib/typescript/components/Chip/styles.d.ts.map +1 -0
  256. package/lib/typescript/components/Dialog/index.d.ts +61 -0
  257. package/lib/typescript/components/Dialog/index.d.ts.map +1 -0
  258. package/lib/typescript/components/Dialog/styles.d.ts +14 -0
  259. package/lib/typescript/components/Dialog/styles.d.ts.map +1 -0
  260. package/lib/typescript/components/Form/FormLabelRoot.d.ts +18 -0
  261. package/lib/typescript/components/Form/FormLabelRoot.d.ts.map +1 -0
  262. package/lib/typescript/components/Form/FormLabelRoot.web.d.ts +20 -0
  263. package/lib/typescript/components/Form/FormLabelRoot.web.d.ts.map +1 -0
  264. package/lib/typescript/components/Form/FormRoot.d.ts +12 -0
  265. package/lib/typescript/components/Form/FormRoot.d.ts.map +1 -0
  266. package/lib/typescript/components/Form/FormRoot.web.d.ts +10 -0
  267. package/lib/typescript/components/Form/FormRoot.web.d.ts.map +1 -0
  268. package/lib/typescript/components/Form/index.d.ts +64 -0
  269. package/lib/typescript/components/Form/index.d.ts.map +1 -0
  270. package/lib/typescript/components/Form/styles.d.ts +22 -0
  271. package/lib/typescript/components/Form/styles.d.ts.map +1 -0
  272. package/lib/typescript/components/Heading/index.d.ts +10 -0
  273. package/lib/typescript/components/Heading/index.d.ts.map +1 -0
  274. package/lib/typescript/components/Heading/styles.d.ts +6 -0
  275. package/lib/typescript/components/Heading/styles.d.ts.map +1 -0
  276. package/lib/typescript/components/Icon/index.d.ts +27 -0
  277. package/lib/typescript/components/Icon/index.d.ts.map +1 -0
  278. package/lib/typescript/components/IconButton/index.d.ts +15 -0
  279. package/lib/typescript/components/IconButton/index.d.ts.map +1 -0
  280. package/lib/typescript/components/IconButton/styles.d.ts +16 -0
  281. package/lib/typescript/components/IconButton/styles.d.ts.map +1 -0
  282. package/lib/typescript/components/Image/Image.d.ts +47 -0
  283. package/lib/typescript/components/Image/Image.d.ts.map +1 -0
  284. package/lib/typescript/components/Image/index.d.ts +2 -0
  285. package/lib/typescript/components/Image/index.d.ts.map +1 -0
  286. package/lib/typescript/components/Input/BaseInput.android.d.ts +3 -0
  287. package/lib/typescript/components/Input/BaseInput.android.d.ts.map +1 -0
  288. package/lib/typescript/components/Input/index.d.ts +7 -5
  289. package/lib/typescript/components/Input/index.d.ts.map +1 -1
  290. package/lib/typescript/components/Input/styles.d.ts +5 -7
  291. package/lib/typescript/components/Input/styles.d.ts.map +1 -1
  292. package/lib/typescript/components/Link/index.d.ts +26 -0
  293. package/lib/typescript/components/Link/index.d.ts.map +1 -0
  294. package/lib/typescript/components/Link/styles.d.ts +4 -0
  295. package/lib/typescript/components/Link/styles.d.ts.map +1 -0
  296. package/lib/typescript/components/ProgressSegmented/index.d.ts +15 -0
  297. package/lib/typescript/components/ProgressSegmented/index.d.ts.map +1 -0
  298. package/lib/typescript/components/ProgressSegmented/styles.d.ts +8 -0
  299. package/lib/typescript/components/ProgressSegmented/styles.d.ts.map +1 -0
  300. package/lib/typescript/components/Select/SelectTriggerHost.d.ts +3 -0
  301. package/lib/typescript/components/Select/SelectTriggerHost.d.ts.map +1 -0
  302. package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts +13 -0
  303. package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts.map +1 -0
  304. package/lib/typescript/components/Select/index.d.ts +7 -4
  305. package/lib/typescript/components/Select/index.d.ts.map +1 -1
  306. package/lib/typescript/components/Select/styles.d.ts +6 -8
  307. package/lib/typescript/components/Select/styles.d.ts.map +1 -1
  308. package/lib/typescript/components/Stack/HStack.d.ts +1 -12
  309. package/lib/typescript/components/Stack/HStack.d.ts.map +1 -1
  310. package/lib/typescript/components/Stack/VStack.d.ts +1 -12
  311. package/lib/typescript/components/Stack/VStack.d.ts.map +1 -1
  312. package/lib/typescript/components/Stack/styles.d.ts +10 -0
  313. package/lib/typescript/components/Stack/styles.d.ts.map +1 -0
  314. package/lib/typescript/components/Switch/BaseSwitch.d.ts +9 -0
  315. package/lib/typescript/components/Switch/BaseSwitch.d.ts.map +1 -0
  316. package/lib/typescript/components/Switch/BaseSwitch.web.d.ts +15 -0
  317. package/lib/typescript/components/Switch/BaseSwitch.web.d.ts.map +1 -0
  318. package/lib/typescript/components/Switch/index.d.ts +7 -0
  319. package/lib/typescript/components/Switch/index.d.ts.map +1 -0
  320. package/lib/typescript/components/Switch/styles.d.ts +26 -0
  321. package/lib/typescript/components/Switch/styles.d.ts.map +1 -0
  322. package/lib/typescript/components/Text/index.d.ts +9 -1
  323. package/lib/typescript/components/Text/index.d.ts.map +1 -1
  324. package/lib/typescript/components/Text/styles.d.ts +6 -0
  325. package/lib/typescript/components/Text/styles.d.ts.map +1 -0
  326. package/lib/typescript/components/VirtualizedList/index.d.ts +8 -0
  327. package/lib/typescript/components/VirtualizedList/index.d.ts.map +1 -0
  328. package/lib/typescript/components/index.d.ts +16 -0
  329. package/lib/typescript/components/index.d.ts.map +1 -1
  330. package/lib/typescript/index.d.ts +3 -0
  331. package/lib/typescript/index.d.ts.map +1 -1
  332. package/lib/typescript/metro/withCdxMetroConfig.d.ts +19 -0
  333. package/lib/typescript/metro/withCdxMetroConfig.d.ts.map +1 -0
  334. package/lib/typescript/styles/index.d.ts +2 -0
  335. package/lib/typescript/styles/index.d.ts.map +1 -0
  336. package/lib/typescript/styles/primitives.d.ts +85 -0
  337. package/lib/typescript/styles/primitives.d.ts.map +1 -0
  338. package/package.json +23 -16
  339. package/src/components/AlertDialog/index.tsx +124 -0
  340. package/src/components/Avatar/index.tsx +172 -0
  341. package/src/components/Avatar/styles.ts +83 -0
  342. package/src/components/BottomSheet/index.tsx +316 -0
  343. package/src/components/BottomSheet/styles.ts +79 -0
  344. package/src/components/Box/Box.tsx +1 -0
  345. package/src/components/Button/buttonSharedVariants.ts +281 -0
  346. package/src/components/Button/index.tsx +24 -15
  347. package/src/components/Button/styles.ts +195 -229
  348. package/src/components/Card/index.tsx +115 -0
  349. package/src/components/Card/styles.ts +41 -0
  350. package/src/components/Checkbox/index.tsx +207 -0
  351. package/src/components/Checkbox/styles.ts +103 -0
  352. package/src/components/Chip/index.tsx +91 -0
  353. package/src/components/Chip/styles.ts +51 -0
  354. package/src/components/Dialog/index.tsx +304 -0
  355. package/src/components/Dialog/styles.ts +88 -0
  356. package/src/components/Form/FormLabelRoot.tsx +33 -0
  357. package/src/components/Form/FormLabelRoot.web.tsx +18 -0
  358. package/src/components/Form/FormRoot.tsx +19 -0
  359. package/src/components/Form/FormRoot.web.tsx +12 -0
  360. package/src/components/Form/index.tsx +272 -0
  361. package/src/components/Form/styles.ts +75 -0
  362. package/src/components/Heading/index.tsx +36 -0
  363. package/src/components/Heading/styles.tsx +26 -0
  364. package/src/components/Icon/index.tsx +54 -0
  365. package/src/components/IconButton/index.tsx +93 -0
  366. package/src/components/IconButton/styles.ts +131 -0
  367. package/src/components/Image/Image.tsx +77 -0
  368. package/src/components/Image/index.ts +1 -0
  369. package/src/components/Input/BaseInput.android.tsx +13 -0
  370. package/src/components/Input/index.tsx +9 -22
  371. package/src/components/Input/styles.ts +42 -37
  372. package/src/components/Link/index.tsx +83 -0
  373. package/src/components/Link/styles.ts +20 -0
  374. package/src/components/ProgressSegmented/index.tsx +81 -0
  375. package/src/components/ProgressSegmented/styles.ts +19 -0
  376. package/src/components/Select/SelectTriggerHost.tsx +4 -0
  377. package/src/components/Select/SelectTriggerHost.web.tsx +136 -0
  378. package/src/components/Select/index.tsx +14 -14
  379. package/src/components/Select/styles.ts +68 -75
  380. package/src/components/Stack/HStack.tsx +8 -19
  381. package/src/components/Stack/VStack.tsx +8 -23
  382. package/src/components/Stack/styles.ts +37 -0
  383. package/src/components/Switch/BaseSwitch.tsx +38 -0
  384. package/src/components/Switch/BaseSwitch.web.tsx +69 -0
  385. package/src/components/Switch/index.tsx +11 -0
  386. package/src/components/Switch/styles.ts +120 -0
  387. package/src/components/Text/index.tsx +16 -0
  388. package/src/components/Text/styles.tsx +26 -0
  389. package/src/components/VirtualizedList/index.tsx +19 -0
  390. package/src/components/index.ts +16 -0
  391. package/src/index.ts +3 -0
  392. package/src/metro/withCdxMetroConfig.ts +29 -0
  393. package/src/styles/index.ts +1 -0
  394. package/src/styles/primitives.ts +107 -0
  395. package/lib/commonjs/components/Text/Text.js +0 -30
  396. package/lib/commonjs/components/Text/Text.js.map +0 -1
  397. package/lib/module/components/Text/Text.js +0 -26
  398. package/lib/module/components/Text/Text.js.map +0 -1
  399. package/lib/typescript/components/Text/Text.d.ts +0 -11
  400. package/lib/typescript/components/Text/Text.d.ts.map +0 -1
  401. package/src/components/Text/Text.tsx +0 -58
  402. package/src/components/Text/index.ts +0 -1
@@ -0,0 +1,252 @@
1
+ "use strict";
2
+
3
+ import { forwardRef } from 'react';
4
+ import { Text, View } from 'react-native';
5
+ import { createForm } from '@cdx-ui/primitives';
6
+ import { cn, withStyleContext, useStyleContext } from '@cdx-ui/utils';
7
+ import { Icon } from '../Icon';
8
+ import { BaseFormRoot } from './FormRoot';
9
+ import { FormLabelRoot } from './FormLabelRoot';
10
+ import { formRootVariants, formFieldVariants, formLabelVariants, formHelperVariants, formHelperTextVariants, formErrorVariants, formErrorTextVariants, formErrorIconVariants } from './styles';
11
+
12
+ // =============================================================================
13
+ // SCOPE + CONTEXT
14
+ // =============================================================================
15
+ import { jsx as _jsx } from "react/jsx-runtime";
16
+ const SCOPE = 'FORM';
17
+ const FieldRoot = withStyleContext(View, SCOPE);
18
+ const useFormStyleContext = () => useStyleContext(SCOPE);
19
+
20
+ // =============================================================================
21
+ // PRIMITIVE
22
+ // =============================================================================
23
+
24
+ const FormPrimitive = createForm({
25
+ Root: BaseFormRoot,
26
+ Field: FieldRoot,
27
+ Error: View,
28
+ ErrorText: Text,
29
+ ErrorIcon: View,
30
+ Label: FormLabelRoot,
31
+ Helper: View,
32
+ HelperText: Text
33
+ });
34
+
35
+ // =============================================================================
36
+ // FORM ROOT (container — <form> on web, <View> on RN)
37
+ // =============================================================================
38
+
39
+ const FormRoot = /*#__PURE__*/forwardRef(({
40
+ className,
41
+ children,
42
+ style,
43
+ ...props
44
+ }, ref) => {
45
+ const computedClassName = cn(formRootVariants(), className);
46
+ return /*#__PURE__*/_jsx(FormPrimitive, {
47
+ ref: ref,
48
+ className: computedClassName,
49
+ style: style,
50
+ ...props,
51
+ children: children
52
+ });
53
+ });
54
+ FormRoot.displayName = 'Form';
55
+
56
+ // =============================================================================
57
+ // FORM FIELD (per-field wrapper — provides context for label/error/helper/input)
58
+ // =============================================================================
59
+
60
+ /**
61
+ * Field wrapper + context. For **initial focus**, pass `autoFocus` on `Input.Field` (not here).
62
+ */
63
+
64
+ const FormField = /*#__PURE__*/forwardRef(({
65
+ size = 'default',
66
+ className,
67
+ children,
68
+ style,
69
+ ...props
70
+ }, ref) => {
71
+ const computedClassName = cn(formFieldVariants(), className);
72
+ return /*#__PURE__*/_jsx(FormPrimitive.Field, {
73
+ ref: ref,
74
+ className: computedClassName,
75
+ style: style,
76
+ context: {
77
+ size
78
+ },
79
+ ...props,
80
+ children: children
81
+ });
82
+ });
83
+ FormField.displayName = 'Form.Field';
84
+
85
+ // =============================================================================
86
+ // FORM LABEL
87
+ // =============================================================================
88
+
89
+ // TODO: Accept accessibility labels for required indicator as props to support i18n
90
+
91
+ const FormLabel = /*#__PURE__*/forwardRef(({
92
+ className,
93
+ children,
94
+ style,
95
+ htmlFor,
96
+ ...props
97
+ }, ref) => {
98
+ const {
99
+ size
100
+ } = useFormStyleContext();
101
+ const labelClassName = cn(formLabelVariants({
102
+ size
103
+ }), className);
104
+ return /*#__PURE__*/_jsx(FormPrimitive.Label, {
105
+ ref: ref,
106
+ className: labelClassName,
107
+ style: style,
108
+ htmlFor: htmlFor,
109
+ requiredIndicator: /*#__PURE__*/_jsx(Text, {
110
+ className: "text-red-500",
111
+ "aria-hidden": true,
112
+ children: ' *'
113
+ }),
114
+ ...props,
115
+ children: children
116
+ });
117
+ });
118
+ FormLabel.displayName = 'Form.Label';
119
+
120
+ // =============================================================================
121
+ // FORM HELPER
122
+ // =============================================================================
123
+
124
+ const FormHelper = /*#__PURE__*/forwardRef(({
125
+ className,
126
+ children,
127
+ style,
128
+ ...props
129
+ }, ref) => {
130
+ const computedClassName = cn(formHelperVariants(), className);
131
+ return /*#__PURE__*/_jsx(FormPrimitive.Helper, {
132
+ ref: ref,
133
+ className: computedClassName,
134
+ style: style,
135
+ ...props,
136
+ children: children
137
+ });
138
+ });
139
+ FormHelper.displayName = 'Form.Helper';
140
+
141
+ // =============================================================================
142
+ // FORM HELPER TEXT
143
+ // =============================================================================
144
+
145
+ const FormHelperText = /*#__PURE__*/forwardRef(({
146
+ className,
147
+ children,
148
+ style,
149
+ ...props
150
+ }, ref) => {
151
+ const {
152
+ size
153
+ } = useFormStyleContext();
154
+ const computedClassName = cn(formHelperTextVariants({
155
+ size
156
+ }), className);
157
+ return /*#__PURE__*/_jsx(FormPrimitive.HelperText, {
158
+ ref: ref,
159
+ className: computedClassName,
160
+ style: style,
161
+ ...props,
162
+ children: children
163
+ });
164
+ });
165
+ FormHelperText.displayName = 'Form.HelperText';
166
+
167
+ // =============================================================================
168
+ // FORM ERROR
169
+ // =============================================================================
170
+
171
+ const FormError = /*#__PURE__*/forwardRef(({
172
+ className,
173
+ children,
174
+ style,
175
+ ...props
176
+ }, ref) => {
177
+ const computedClassName = cn(formErrorVariants(), className);
178
+ return /*#__PURE__*/_jsx(FormPrimitive.Error, {
179
+ ref: ref,
180
+ className: computedClassName,
181
+ style: style,
182
+ ...props,
183
+ children: children
184
+ });
185
+ });
186
+ FormError.displayName = 'Form.Error';
187
+
188
+ // =============================================================================
189
+ // FORM ERROR TEXT
190
+ // =============================================================================
191
+
192
+ const FormErrorText = /*#__PURE__*/forwardRef(({
193
+ className,
194
+ children,
195
+ style,
196
+ ...props
197
+ }, ref) => {
198
+ const {
199
+ size
200
+ } = useFormStyleContext();
201
+ const computedClassName = cn(formErrorTextVariants({
202
+ size
203
+ }), className);
204
+ return /*#__PURE__*/_jsx(FormPrimitive.ErrorText, {
205
+ ref: ref,
206
+ className: computedClassName,
207
+ style: style,
208
+ ...props,
209
+ children: children
210
+ });
211
+ });
212
+ FormErrorText.displayName = 'Form.ErrorText';
213
+
214
+ // =============================================================================
215
+ // FORM ERROR ICON
216
+ // =============================================================================
217
+
218
+ const FormErrorIcon = ({
219
+ className,
220
+ style,
221
+ as,
222
+ ...props
223
+ }) => {
224
+ const {
225
+ size
226
+ } = useFormStyleContext();
227
+ const computedClassName = cn(formErrorIconVariants({
228
+ size
229
+ }), className);
230
+ return /*#__PURE__*/_jsx(Icon, {
231
+ as: as,
232
+ className: computedClassName,
233
+ style: style,
234
+ ...props
235
+ });
236
+ };
237
+ FormErrorIcon.displayName = 'Form.ErrorIcon';
238
+
239
+ // =============================================================================
240
+ // COMPOUND EXPORT
241
+ // =============================================================================
242
+
243
+ export const Form = Object.assign(FormRoot, {
244
+ Field: FormField,
245
+ Label: FormLabel,
246
+ Helper: FormHelper,
247
+ HelperText: FormHelperText,
248
+ Error: FormError,
249
+ ErrorText: FormErrorText,
250
+ ErrorIcon: FormErrorIcon
251
+ });
252
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","Text","View","createForm","cn","withStyleContext","useStyleContext","Icon","BaseFormRoot","FormLabelRoot","formRootVariants","formFieldVariants","formLabelVariants","formHelperVariants","formHelperTextVariants","formErrorVariants","formErrorTextVariants","formErrorIconVariants","jsx","_jsx","SCOPE","FieldRoot","useFormStyleContext","FormPrimitive","Root","Field","Error","ErrorText","ErrorIcon","Label","Helper","HelperText","FormRoot","className","children","style","props","ref","computedClassName","displayName","FormField","size","context","FormLabel","htmlFor","labelClassName","requiredIndicator","FormHelper","FormHelperText","FormError","FormErrorText","FormErrorIcon","as","Form","Object","assign"],"sourceRoot":"../../../../src","sources":["components/Form/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAwB,OAAO;AAClD,SAASC,IAAI,EAAEC,IAAI,QAAwC,cAAc;AACzE,SAASC,UAAU,QAA+C,oBAAoB;AACtF,SAASC,EAAE,EAAEC,gBAAgB,EAAEC,eAAe,QAAQ,eAAe;AACrE,SAASC,IAAI,QAAwB,SAAS;AAC9C,SAASC,YAAY,QAAgC,YAAY;AACjE,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SACEC,gBAAgB,EAChBC,iBAAiB,EACjBC,iBAAiB,EACjBC,kBAAkB,EAClBC,sBAAsB,EACtBC,iBAAiB,EACjBC,qBAAqB,EACrBC,qBAAqB,QAChB,UAAU;;AAEjB;AACA;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAEA,MAAMC,KAAK,GAAG,MAAM;AAEpB,MAAMC,SAAS,GAAGhB,gBAAgB,CAACH,IAAI,EAAEkB,KAAK,CAAC;AAM/C,MAAME,mBAAmB,GAAGA,CAAA,KAAMhB,eAAe,CAACc,KAAK,CAA0B;;AAEjF;AACA;AACA;;AAEA,MAAMG,aAAa,GAAGpB,UAAU,CAAC;EAC/BqB,IAAI,EAAEhB,YAAY;EAClBiB,KAAK,EAAEJ,SAAS;EAChBK,KAAK,EAAExB,IAAI;EACXyB,SAAS,EAAE1B,IAAI;EACf2B,SAAS,EAAE1B,IAAI;EACf2B,KAAK,EAAEpB,aAAa;EAC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J,SAAS,EAAEK,iBAAkB;IAACH,KAAK,EAAEA,KAAM;IAAA,GAAKC,KAAK;IAAAF,QAAA,EACrFA;EAAQ,CACc,CAAC;AAE9B,CACF,CAAC;AAEDgB,aAAa,CAACX,WAAW,GAAG,gBAAgB;;AAE5C;AACA;AACA;;AAIA,MAAMY,aAAa,GAAGA,CAAC;EAAElB,SAAS;EAAEE,KAAK;EAAEiB,EAAE;EAAE,GAAGhB;AAA0B,CAAC,KAAK;EAChF,MAAM;IAAEK;EAAK,CAAC,GAAGnB,mBAAmB,CAAC,CAAC;EACtC,MAAMgB,iBAAiB,GAAGlC,EAAE,CAACa,qBAAqB,CAAC;IAAEwB;EAAK,CAAC,CAAC,EAAER,SAAS,CAAC;EAExE,oBAAOd,IAAA,CAACZ,IAAI;IAAC6C,EAAE,EAAEA,EAAG;IAACnB,SAAS,EAAEK,iBAAkB;IAACH,KAAK,EAAEA,KAAM;IAAA,GAAKC;EAAK,CAAG,CAAC;AAChF,CAAC;AAEDe,aAAa,CAACZ,WAAW,GAAG,gBAAgB;;AAE5C;AACA;AACA;;AAYA,OAAO,MAAMc,IAAI,GAAGC,MAAM,CAACC,MAAM,CAACvB,QAAQ,EAAE;EAC1CP,KAAK,EAAEe,SAAS;EAChBX,KAAK,EAAEc,SAAS;EAChBb,MAAM,EAAEiB,UAAU;EAClBhB,UAAU,EAAEiB,cAAc;EAC1BtB,KAAK,EAAEuB,SAAS;EAChBtB,SAAS,EAAEuB,aAAa;EACxBtB,SAAS,EAAEuB;AACb,CAAC,CAA0B","ignoreList":[]}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+
3
+ import { cva } from 'class-variance-authority';
4
+ import { COLOR_TEXT_INVALID, COLOR_TEXT_SECONDARY, DISABLED_OPACITY } from '../../styles/primitives';
5
+ export const formRootVariants = cva(['flex-col gap-4']);
6
+ export const formFieldVariants = cva(['flex-col gap-1.5 mb-4', 'web:last:mb-0', DISABLED_OPACITY]);
7
+ export const formLabelVariants = cva(['flex-row items-center', DISABLED_OPACITY, 'web:cursor-pointer', 'font-medium data-[invalid=true]:text-red-600'], {
8
+ variants: {
9
+ size: {
10
+ default: 'text-sm',
11
+ small: 'text-xs'
12
+ }
13
+ },
14
+ defaultVariants: {
15
+ size: 'default'
16
+ }
17
+ });
18
+ export const formHelperVariants = cva(['flex-row items-center']);
19
+ export const formHelperTextVariants = cva([COLOR_TEXT_SECONDARY], {
20
+ variants: {
21
+ size: {
22
+ default: 'text-xs',
23
+ small: 'text-[11px]'
24
+ }
25
+ },
26
+ defaultVariants: {
27
+ size: 'default'
28
+ }
29
+ });
30
+ export const formErrorVariants = cva(['flex-row items-center gap-1']);
31
+ export const formErrorTextVariants = cva([COLOR_TEXT_INVALID, 'font-medium'], {
32
+ variants: {
33
+ size: {
34
+ default: 'text-xs',
35
+ small: 'text-[11px]'
36
+ }
37
+ },
38
+ defaultVariants: {
39
+ size: 'default'
40
+ }
41
+ });
42
+ export const formErrorIconVariants = cva([COLOR_TEXT_INVALID], {
43
+ variants: {
44
+ size: {
45
+ default: 'size-3.5',
46
+ small: 'size-3'
47
+ }
48
+ },
49
+ defaultVariants: {
50
+ size: 'default'
51
+ }
52
+ });
53
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["cva","COLOR_TEXT_INVALID","COLOR_TEXT_SECONDARY","DISABLED_OPACITY","formRootVariants","formFieldVariants","formLabelVariants","variants","size","default","small","defaultVariants","formHelperVariants","formHelperTextVariants","formErrorVariants","formErrorTextVariants","formErrorIconVariants"],"sourceRoot":"../../../../src","sources":["components/Form/styles.ts"],"mappings":";;AAAA,SAASA,GAAG,QAA2B,0BAA0B;AACjE,SACEC,kBAAkB,EAClBC,oBAAoB,EACpBC,gBAAgB,QACX,yBAAyB;AAEhC,OAAO,MAAMC,gBAAgB,GAAGJ,GAAG,CAAC,CAAC,gBAAgB,CAAC,CAAC;AAEvD,OAAO,MAAMK,iBAAiB,GAAGL,GAAG,CAAC,CAAC,uBA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 '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,20 @@
1
+ "use strict";
2
+
3
+ import { Platform } from 'react-native';
4
+ import { cva } from 'class-variance-authority';
5
+ import { COLOR_TEXT_PRIMARY } from '../../styles/primitives';
6
+ export const headingStyle = cva([`${COLOR_TEXT_PRIMARY} font-semibold tracking-tight my-0`, Platform.select({
7
+ web: 'font-sans bg-transparent display-inline no-underline',
8
+ default: ''
9
+ })], {
10
+ variants: {
11
+ size: {
12
+ xl: 'text-6xl',
13
+ lg: 'text-5xl',
14
+ md: 'text-4xl',
15
+ sm: 'text-3xl',
16
+ xs: 'text-2xl'
17
+ }
18
+ }
19
+ });
20
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Platform","cva","COLOR_TEXT_PRIMARY","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;AACjE,SAASC,kBAAkB,QAAQ,yBAAyB;AAE5D,OAAO,MAAMC,YAAY,GAAGF,GAAG,CAC7B,CACE,GAAGC,kBAAkB,oCAAoC,EACzDF,QAAQ,CAACI,MAAM,CAAC;EACdC,GAAG,EAAE,sDAAsD;EAC3DC,OAAO,EAAE;AACX,CAAC,CAAC,CACH,EACD;EACEC,QAAQ,EAAE;IACRC,IAAI,EAAE;MACJC,EAAE,EAAE,UAAU;MACdC,EAAE,EAAE,UAAU;MACdC,EAAE,EAAE,UAAU;MACdC,EAAE,EAAE,UAAU;MACdC,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,76 @@
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
+ mode = 'light',
44
+ className,
45
+ style,
46
+ as: IconComponent,
47
+ iconClassName,
48
+ accessibilityRole = 'button',
49
+ ...props
50
+ }, ref) => {
51
+ const rootClassName = cn(iconButtonRootVariants({
52
+ variant,
53
+ size,
54
+ mode
55
+ }), className);
56
+ const glyphClassName = cn(iconButtonGlyphVariants({
57
+ size
58
+ }), iconButtonIconColorVariants({
59
+ variant,
60
+ mode
61
+ }), iconClassName);
62
+ return /*#__PURE__*/_jsx(IconButtonPrimitive, {
63
+ ref: ref,
64
+ accessibilityRole: accessibilityRole,
65
+ className: rootClassName,
66
+ style: style,
67
+ ...props,
68
+ children: /*#__PURE__*/_jsx(IconButtonGlyph, {
69
+ as: IconComponent,
70
+ className: glyphClassName
71
+ })
72
+ });
73
+ });
74
+ IconButtonRoot.displayName = 'IconButton';
75
+ export const IconButton = IconButtonRoot;
76
+ //# 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","mode","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,EACZC,cAAc,EAEdC,gBAAgB,QACX,oBAAoB;AAE3B,SAASC,EAAE,QAAQ,eAAe;AAClC,SAASC,IAAI,QAAwB,SAAS;AAC9C,SAEEC,uBAAuB,EACvBC,2BAA2B,EAC3BC,sBAAsB,QACjB,UAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAElB,MAAMC,mBAAmB,GAAGV,YAAY,CAAC;EACvCW,IAAI,EAAEd,SAAS;EACfC,IAAI;EACJc,KAAK,EAAEb,IAAI;EACXc,OAAO,EAAEjB,iBAAiB;EAC1BQ,IAAI,EAAEL;AACR,CAAC,CAAC;AAEF,SAASe,eAAeA,CAAC;EAAEC,EAAE,EAAEC,aAAa;EAAEC;AAA8C,CAAC,EAAE;EAC7F,MAAM;IAAEC,KAAK;IAAEC,KAAK;IAAEC,MAAM;IAAEC,QAAQ;IAAEC;EAAa,CAAC,GAAGpB,gBAAgB,CAAC,CAAC;EAC3E,oBACEO,IAAA,CAACL,IAAI;IACHW,EAAE,EAAEC,aAAc;IAClBC,SAAS,EAAEA,SAAU;IAAA,GACjBhB,cAAc,CAAC;MACjBiB,KAAK;MACLC,KAAK;MACLC,MAAM;MACNC,QAAQ;MACRC;IACF,CAAC;EAAC,CACH,CAAC;AAEN;AAUA,MAAMC,cAAc,gBAAG5B,UAAU,CAC/B,CACE;EACE6B,OAAO,GAAG,OAAO;EACjBC,IAAI,GAAG,SAAS;EAChBC,IAAI,GAAG,OAAO;EACdT,SAAS;EACTU,KAAK;EACLZ,EAAE,EAAEC,aAAa;EACjBY,aAAa;EACbC,iBAAiB,GAAG,QAAQ;EAC5B,GAAGC;AACL,CAAC,EACDC,GAAG,KACA;EACH,MAAMC,aAAa,GAAG7B,EAAE,CAACI,sBAAsB,CAAC;IAAEiB,OAAO;IAAEC,IAAI;IAAEC;EAAK,CAAC,CAAC,EAAET,SAAS,CAAC;EAEpF,MAAMgB,cAAc,GAAG9B,EAAE,CACvBE,uBAAuB,CAAC;IAAEoB;EAAK,CAAC,CAAC,EACjCnB,2BAA2B,CAAC;IAAEkB,OAAO;IAAEE;EAAK,CAAC,CAAC,EAC9CE,aACF,CAAC;EAED,oBACEnB,IAAA,CAACC,mBAAmB;IAClBqB,GAAG,EAAEA,GAAI;IACTF,iBAAiB,EAAEA,iBAAkB;IACrCZ,SAAS,EAAEe,aAAc;IACzBL,KAAK,EAAEA,KAAM;IAAA,GACTG,KAAK;IAAAI,QAAA,eAETzB,IAAA,CAACK,eAAe;MAACC,EAAE,EAAEC,aAAc;MAACC,SAAS,EAAEgB;IAAe,CAAE;EAAC,CAC9C,CAAC;AAE1B,CACF,CAAC;AAEDV,cAAc,CAACY,WAAW,GAAG,YAAY;AAEzC,OAAO,MAAMC,UAAU,GAAGb,cAAc","ignoreList":[]}
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+
3
+ import { Platform } from 'react-native';
4
+ import { cva } from 'class-variance-authority';
5
+ import { COLOR_BORDER_DEFAULT, DISABLED_CURSOR, DISABLED_OPACITY, RADIUS_FULL, TRANSITION_COLORS } from '../../styles/primitives';
6
+ import { sharedGhostSurfaceCompounds, sharedOutlineGhostForegroundTextCompounds } from '../Button/buttonSharedVariants';
7
+ function actionOnlyCompounds(compounds) {
8
+ return compounds.filter(c => c.color === 'action').map(c => {
9
+ const {
10
+ color,
11
+ ...rest
12
+ } = c;
13
+ void color;
14
+ return rest;
15
+ });
16
+ }
17
+
18
+ /** Dark-mode hover/active surface for ghost (solid uses a separate compound with border). */
19
+ const iconButtonDarkGhostSurfaceCompounds = actionOnlyCompounds(sharedGhostSurfaceCompounds).map(c => ({
20
+ variant: 'ghost',
21
+ ...c
22
+ }));
23
+ const iconButtonForegroundTextCompounds = actionOnlyCompounds(sharedOutlineGhostForegroundTextCompounds).map(c => ({
24
+ variant: ['solid', 'ghost'],
25
+ ...c
26
+ }));
27
+ export const iconButtonRootVariants = cva(['flex items-center justify-center', RADIUS_FULL, 'web:outline-none web:focus:outline-none web:focus-visible:outline-none', TRANSITION_COLORS, DISABLED_OPACITY, DISABLED_CURSOR, 'web:data-[focus-visible=true]:ring-2 web:data-[focus-visible=true]:ring-slate-400/50 web:data-[focus-visible=true]:ring-offset-2'], {
28
+ variants: {
29
+ variant: {
30
+ /** Same surface as ghost, with a light gray border (aligned with Button `outline`). */
31
+ solid: ['bg-transparent', `border ${COLOR_BORDER_DEFAULT}`, 'data-[hover=true]:bg-slate-50', 'data-[active=true]:bg-slate-100'],
32
+ ghost: ['bg-transparent', 'data-[hover=true]:bg-slate-50', 'data-[active=true]:bg-slate-100']
33
+ },
34
+ size: {
35
+ default: 'h-10 w-10 min-w-10 shrink-0 p-0',
36
+ small: 'h-8 w-8 min-w-8 shrink-0 p-0'
37
+ },
38
+ mode: {
39
+ light: [],
40
+ dark: []
41
+ }
42
+ },
43
+ compoundVariants: [...iconButtonDarkGhostSurfaceCompounds, {
44
+ variant: 'solid',
45
+ mode: 'dark',
46
+ className: ['border-slate-700', Platform.select({
47
+ default: 'data-[active=true]:bg-slate-700',
48
+ web: 'data-[hover=true]:bg-slate-800 data-[active=true]:data-[hover=true]:bg-slate-700'
49
+ })]
50
+ }],
51
+ defaultVariants: {
52
+ variant: 'solid',
53
+ size: 'default',
54
+ mode: 'light'
55
+ }
56
+ });
57
+ export const iconButtonGlyphVariants = cva([], {
58
+ variants: {
59
+ size: {
60
+ default: 'size-5',
61
+ small: 'size-4'
62
+ }
63
+ },
64
+ defaultVariants: {
65
+ size: 'default'
66
+ }
67
+ });
68
+
69
+ /** Icon fill aligned with Button outline/ghost action label colors (solid matches ghost). */
70
+ export const iconButtonIconColorVariants = cva([], {
71
+ variants: {
72
+ variant: {
73
+ solid: [],
74
+ ghost: []
75
+ },
76
+ mode: {
77
+ light: [],
78
+ dark: []
79
+ }
80
+ },
81
+ compoundVariants: [...iconButtonForegroundTextCompounds],
82
+ defaultVariants: {
83
+ variant: 'solid',
84
+ mode: 'light'
85
+ }
86
+ });
87
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Platform","cva","COLOR_BORDER_DEFAULT","DISABLED_CURSOR","DISABLED_OPACITY","RADIUS_FULL","TRANSITION_COLORS","sharedGhostSurfaceCompounds","sharedOutlineGhostForegroundTextCompounds","actionOnlyCompounds","compounds","filter","c","color","map","rest","iconButtonDarkGhostSurfaceCompounds","variant","iconButtonForegroundTextCompounds","iconButtonRootVariants","variants","solid","ghost","size","default","small","mode","light","dark","compoundVariants","className","select","web","defaultVariants","iconButtonGlyphVariants","iconButtonIconColorVariants"],"sourceRoot":"../../../../src","sources":["components/IconButton/styles.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AACvC,SAASC,GAAG,QAA2B,0BAA0B;AACjE,SACEC,oBAAoB,EACpBC,eAAe,EACfC,gBAAgB,EAChBC,WAAW,EACXC,iBAAiB,QACZ,yBAAyB;AAChC,SAEEC,2BAA2B,EAC3BC,yCAAyC,QACpC,gCAAgC;AAEvC,SAASC,mBAAmBA,CAC1BC,SAAc,EACM;EACpB,OAAOA,SAAS,CACbC,MAAM,CAAEC,CAAC,IAAKA,CAAC,CAACC,KAAK,KAAK,QAAQ,CAAC,CACnCC,GAAG,CAAEF,CAAC,IAAK;IACV,MAAM;MAAEC,KAAK;MAAE,GAAGE;IAAK,CAAC,GAAGH,CAAC;IAC5B,KAAKC,KAAK;IACV,OAAOE,IAAI;EACb,CAAC,CAAC;AACN;;AAEA;AACA,MAAMC,mCAAmC,GAAGP,mBAAmB,CAACF,2BAA2B,CAAC,CAACO,GAAG,CAC7FF,CAAC,KAAM;EACNK,OAAO,EAAE,OAAgB;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