@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,242 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef, useCallback, useRef } from 'react';
4
+ import { Dimensions, Pressable, View } from 'react-native';
5
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
6
+ import { BottomSheetModal, BottomSheetModalProvider, BottomSheetScrollView, BottomSheetView, BottomSheetBackdrop, BottomSheetFooter as GorhomBottomSheetFooter } from '@gorhom/bottom-sheet';
7
+ import { cn } from '@cdx-ui/utils';
8
+ import { ArrowBackIosNew, Close } from '@cdx-ui/icons';
9
+ import { Heading } from '../Heading';
10
+ import { Icon } from '../Icon';
11
+ import { Text } from '../Text';
12
+ import { bottomSheetBackButtonVariants, bottomSheetBackIconVariants, bottomSheetCloseButtonVariants, bottomSheetCloseIconVariants, bottomSheetContainerVariants, bottomSheetContentVariants, bottomSheetFooterVariants, bottomSheetHeaderVariants, bottomSheetSubtitleVariants, handleIndicatorStyle } from './styles';
13
+
14
+ /** Ref type for BottomSheet; forwards the @gorhom modal ref (present, dismiss, snapToIndex, minimize, restore, etc.). */
15
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
+ function BottomSheetHeaderComponent({
17
+ title,
18
+ subtitle,
19
+ children,
20
+ className,
21
+ onClose,
22
+ closeAccessibilityLabel,
23
+ onBack,
24
+ backAccessibilityLabel = 'Go back'
25
+ }, ref) {
26
+ const hasTitle = title !== undefined && title !== '';
27
+ const hasContent = hasTitle || !!children || !!onBack;
28
+ const computedClassName = cn(bottomSheetHeaderVariants({
29
+ hasTitle: hasContent
30
+ }), className);
31
+ return /*#__PURE__*/_jsxs(View, {
32
+ ref: ref,
33
+ className: computedClassName,
34
+ children: [onBack && /*#__PURE__*/_jsx(Pressable, {
35
+ onPress: onBack,
36
+ hitSlop: 12,
37
+ accessibilityRole: "button",
38
+ accessibilityLabel: backAccessibilityLabel,
39
+ className: cn(bottomSheetBackButtonVariants()),
40
+ children: /*#__PURE__*/_jsx(Icon, {
41
+ as: ArrowBackIosNew,
42
+ className: bottomSheetBackIconVariants()
43
+ })
44
+ }), /*#__PURE__*/_jsx(View, {
45
+ className: "flex-1",
46
+ children: children ?? (hasTitle ? /*#__PURE__*/_jsxs(View, {
47
+ children: [/*#__PURE__*/_jsx(Heading, {
48
+ size: "xs",
49
+ className: "text-lg",
50
+ children: title
51
+ }), subtitle ? /*#__PURE__*/_jsx(Text, {
52
+ className: bottomSheetSubtitleVariants(),
53
+ children: subtitle
54
+ }) : null]
55
+ }) : null)
56
+ }), onClose && /*#__PURE__*/_jsx(BottomSheetCloseButton, {
57
+ onPress: onClose,
58
+ ...(closeAccessibilityLabel !== undefined && {
59
+ accessibilityLabel: closeAccessibilityLabel
60
+ })
61
+ })]
62
+ });
63
+ }
64
+ BottomSheetHeaderComponent.displayName = 'BottomSheet.Header';
65
+ const BottomSheetHeader = /*#__PURE__*/forwardRef(BottomSheetHeaderComponent);
66
+ BottomSheetHeader.displayName = 'BottomSheet.Header';
67
+
68
+ // =============================================================================
69
+ // CLOSEBUTTON
70
+ // =============================================================================
71
+
72
+ function BottomSheetCloseButton({
73
+ onPress,
74
+ className,
75
+ accessibilityLabel = 'Close'
76
+ }) {
77
+ return /*#__PURE__*/_jsx(Pressable, {
78
+ onPress: onPress,
79
+ hitSlop: 12,
80
+ accessibilityRole: "button",
81
+ accessibilityLabel: accessibilityLabel,
82
+ className: cn(bottomSheetCloseButtonVariants(), className),
83
+ children: /*#__PURE__*/_jsx(Icon, {
84
+ as: Close,
85
+ className: bottomSheetCloseIconVariants()
86
+ })
87
+ });
88
+ }
89
+ BottomSheetCloseButton.displayName = 'BottomSheet.CloseButton';
90
+
91
+ // =============================================================================
92
+ // CONTENT
93
+ // =============================================================================
94
+
95
+ const BottomSheetContent = /*#__PURE__*/forwardRef(({
96
+ children,
97
+ className,
98
+ hasSafeAreaInset,
99
+ style
100
+ }, ref) => {
101
+ const insets = useSafeAreaInsets();
102
+ const computedClassName = cn(bottomSheetContentVariants(), className);
103
+ return /*#__PURE__*/_jsx(View, {
104
+ ref: ref,
105
+ className: computedClassName,
106
+ style: hasSafeAreaInset ? {
107
+ paddingBottom: insets.bottom,
108
+ ...style
109
+ } : style,
110
+ pointerEvents: "box-none",
111
+ children: children
112
+ });
113
+ });
114
+ BottomSheetContent.displayName = 'BottomSheet.Content';
115
+
116
+ // =============================================================================
117
+ // FOOTER
118
+ // =============================================================================
119
+
120
+ const BottomSheetFooter = /*#__PURE__*/forwardRef(({
121
+ children,
122
+ className,
123
+ style
124
+ }, ref) => {
125
+ const insets = useSafeAreaInsets();
126
+ const computedClassName = cn(bottomSheetFooterVariants(), className);
127
+ return /*#__PURE__*/_jsx(View, {
128
+ ref: ref,
129
+ className: computedClassName,
130
+ style: {
131
+ paddingBottom: Math.max(insets.bottom, 24),
132
+ ...style
133
+ },
134
+ pointerEvents: "box-none",
135
+ children: children
136
+ });
137
+ });
138
+ BottomSheetFooter.displayName = 'BottomSheet.Footer';
139
+
140
+ // =============================================================================
141
+ // MODAL WRAPPER (WITH STYLES)
142
+ // =============================================================================
143
+
144
+ const MAX_DYNAMIC_CONTENT_SIZE = Dimensions.get('window').height * 0.9;
145
+ const CustomBackdrop = props => {
146
+ return /*#__PURE__*/_jsx(BottomSheetBackdrop, {
147
+ ...props,
148
+ disappearsOnIndex: -1,
149
+ appearsOnIndex: 0,
150
+ opacity: 0.5,
151
+ pressBehavior: "close"
152
+ });
153
+ };
154
+ const BottomSheetModalStyled = /*#__PURE__*/forwardRef(({
155
+ handleVisible = true,
156
+ footer,
157
+ ...rest
158
+ }, ref) => {
159
+ const renderFooter = useCallback(props => /*#__PURE__*/_jsx(GorhomBottomSheetFooter, {
160
+ ...props,
161
+ children: footer
162
+ }), [footer]);
163
+ return /*#__PURE__*/_jsx(BottomSheetModal, {
164
+ ref: ref,
165
+ enableDynamicSizing: true,
166
+ maxDynamicContentSize: MAX_DYNAMIC_CONTENT_SIZE,
167
+ handleComponent: handleVisible ? undefined : null,
168
+ handleIndicatorStyle: handleVisible ? handleIndicatorStyle : undefined,
169
+ backdropComponent: CustomBackdrop,
170
+ backgroundComponent: backgroundProps => /*#__PURE__*/_jsx(View, {
171
+ ...backgroundProps,
172
+ className: cn(bottomSheetContainerVariants())
173
+ }),
174
+ ...rest,
175
+ ...(footer != null && {
176
+ footerComponent: renderFooter
177
+ })
178
+ });
179
+ });
180
+ BottomSheetModalStyled.displayName = 'BottomSheet.Modal';
181
+
182
+ // =============================================================================
183
+ // SCROLLVIEW WRAPPER (with footer margin adjustment enabled by default)
184
+ // =============================================================================
185
+
186
+ function BottomSheetScrollViewStyled({
187
+ enableFooterMarginAdjustment = true,
188
+ children,
189
+ ...rest
190
+ }) {
191
+ return /*#__PURE__*/_jsx(BottomSheetScrollView, {
192
+ enableFooterMarginAdjustment: enableFooterMarginAdjustment,
193
+ ...rest,
194
+ children: children
195
+ });
196
+ }
197
+ BottomSheetScrollViewStyled.displayName = 'BottomSheet.ScrollView';
198
+
199
+ // =============================================================================
200
+ // VIEW WRAPPER (with footer margin adjustment enabled by default)
201
+ // =============================================================================
202
+
203
+ function BottomSheetViewStyled({
204
+ enableFooterMarginAdjustment = true,
205
+ children,
206
+ ...rest
207
+ }) {
208
+ return /*#__PURE__*/_jsx(BottomSheetView, {
209
+ enableFooterMarginAdjustment: enableFooterMarginAdjustment,
210
+ ...rest,
211
+ children: children
212
+ });
213
+ }
214
+ BottomSheetViewStyled.displayName = 'BottomSheet.View';
215
+
216
+ // Display names for gorhom components exposed as BottomSheet.*
217
+
218
+ BottomSheetModalProvider.displayName = 'BottomSheet.Provider';
219
+
220
+ // ── Public exports ────────────────────────────────────────
221
+
222
+ export const BottomSheet = {
223
+ Modal: BottomSheetModalStyled,
224
+ Header: BottomSheetHeader,
225
+ Content: BottomSheetContent,
226
+ Footer: BottomSheetFooter,
227
+ Provider: BottomSheetModalProvider,
228
+ ScrollView: BottomSheetScrollViewStyled,
229
+ View: BottomSheetViewStyled
230
+ };
231
+
232
+ // ── Hooks ────────────────────────────────────────────────
233
+
234
+ export function useBottomSheet() {
235
+ const ref = useRef(null);
236
+ return {
237
+ ref,
238
+ present: () => ref.current?.present(),
239
+ dismiss: () => ref.current?.dismiss()
240
+ };
241
+ }
242
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","useCallback","useRef","Dimensions","Pressable","View","useSafeAreaInsets","BottomSheetModal","BottomSheetModalProvider","BottomSheetScrollView","BottomSheetView","BottomSheetBackdrop","BottomSheetFooter","GorhomBottomSheetFooter","cn","ArrowBackIosNew","Close","Heading","Icon","Text","bottomSheetBackButtonVariants","bottomSheetBackIconVariants","bottomSheetCloseButtonVariants","bottomSheetCloseIconVariants","bottomSheetContainerVariants","bottomSheetContentVariants","bottomSheetFooterVariants","bottomSheetHeaderVariants","bottomSheetSubtitleVariants","handleIndicatorStyle","jsx","_jsx","jsxs","_jsxs","BottomSheetHeaderComponent","title","subtitle","children","className","onClose","closeAccessibilityLabel","onBack","backAccessibilityLabel","ref","hasTitle","undefined","hasContent","computedClassName","onPress","hitSlop","accessibilityRole","accessibilityLabel","as","size","BottomSheetCloseButton","displayName","BottomSheetHeader","BottomSheetContent","hasSafeAreaInset","style","insets","paddingBottom","bottom","pointerEvents","Math","max","MAX_DYNAMIC_CONTENT_SIZE","get","height","CustomBackdrop","props","disappearsOnIndex","appearsOnIndex","opacity","pressBehavior","BottomSheetModalStyled","handleVisible","footer","rest","renderFooter","enableDynamicSizing","maxDynamicContentSize","handleComponent","backdropComponent","backgroundComponent","backgroundProps","footerComponent","BottomSheetScrollViewStyled","enableFooterMarginAdjustment","BottomSheetViewStyled","BottomSheet","Modal","Header","Content","Footer","Provider","ScrollView","useBottomSheet","present","current","dismiss"],"sourceRoot":"../../../../src","sources":["components/BottomSheet/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,WAAW,EAAEC,MAAM,QAAwB,OAAO;AAC9E,SAASC,UAAU,EAAEC,SAAS,EAAEC,IAAI,QAAmB,cAAc;AACrE,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,SACEC,gBAAgB,EAChBC,wBAAwB,EACxBC,qBAAqB,EACrBC,eAAe,EACfC,mBAAmB,EACnBC,iBAAiB,IAAIC,uBAAuB,QAGvC,sBAAsB;AAC7B,SAASC,EAAE,QAAQ,eAAe;AAClC,SAASC,eAAe,EAAEC,KAAK,QAAQ,eAAe;AACtD,SAASC,OAAO,QAAQ,YAAY;AACpC,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,IAAI,QAAQ,SAAS;AAC9B,SACEC,6BAA6B,EAC7BC,2BA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DEFAULT, COLOR_TEXT_PRIMARY, COLOR_TEXT_SECONDARY } from '../../styles/primitives';
5
+
6
+ // ── Container ──────────────────────────────────────────────
7
+
8
+ export const bottomSheetContainerVariants = cva(['rounded-t-3xl border-t border-x overflow-hidden', COLOR_BG_PRIMARY, COLOR_BORDER_DEFAULT]);
9
+
10
+ // ── Header ─────────────────────────────────────────────────
11
+
12
+ export const bottomSheetHeaderVariants = cva(['flex-row items-center justify-between min-h-12 px-4 pt-3 pb-2', COLOR_BG_PRIMARY, COLOR_TEXT_PRIMARY], {
13
+ variants: {
14
+ hasTitle: {
15
+ true: '',
16
+ false: 'justify-end'
17
+ }
18
+ },
19
+ defaultVariants: {
20
+ hasTitle: true
21
+ }
22
+ });
23
+
24
+ // ── Content ────────────────────────────────────────────────
25
+
26
+ export const bottomSheetContentVariants = cva([COLOR_BG_PRIMARY, 'px-4 pb-6']);
27
+
28
+ // ── Footer ─────────────────────────────────────────────────
29
+
30
+ export const bottomSheetFooterVariants = cva(['px-4 pt-3 pb-4 border-t', COLOR_BG_PRIMARY, COLOR_BORDER_DEFAULT]);
31
+
32
+ // ── Subtitle ────────────────────────────────────────────────
33
+
34
+ export const bottomSheetSubtitleVariants = cva(['text-sm', COLOR_TEXT_SECONDARY]);
35
+
36
+ // ── Back Button ─────────────────────────────────────────────
37
+
38
+ export const bottomSheetBackButtonVariants = cva(['p-1 -m-1 mr-2 rounded-full active:opacity-70']);
39
+ export const bottomSheetBackIconVariants = cva(['size-5 text-slate-500']);
40
+
41
+ // ── Close Button ───────────────────────────────────────────
42
+
43
+ export const bottomSheetCloseButtonVariants = cva(['p-1 -m-1 rounded-full active:opacity-70']);
44
+
45
+ // ── Close Icon ─────────────────────────────────────────────
46
+
47
+ export const bottomSheetCloseIconVariants = cva(['size-5 text-slate-500']);
48
+
49
+ // ── Handle indicator ────────────────────────────────────────
50
+ // Plain ViewStyle — gorhom's handleIndicatorStyle doesn't accept classNames.
51
+ // slate-300 (#cbd5e1) maps to COLOR_BORDER_STRONG; update when raw token palette is available (TODO).
52
+ export const handleIndicatorStyle = {
53
+ backgroundColor: '#cbd5e1',
54
+ width: 36,
55
+ height: 4,
56
+ borderRadius: 2
57
+ };
58
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["cva","COLOR_BG_PRIMARY","COLOR_BORDER_DEFAULT","COLOR_TEXT_PRIMARY","COLOR_TEXT_SECONDARY","bottomSheetContainerVariants","bottomSheetHeaderVariants","variants","hasTitle","true","false","defaultVariants","bottomSheetContentVariants","bottomSheetFooterVariants","bottomSheetSubtitleVariants","bottomSheetBackButtonVariants","bottomSheetBackIconVariants","bottomSheetCloseButtonVariants","bottomSheetCloseIconVariants","handleIndicatorStyle","backgroundColor","width","height","borderRadius"],"sourceRoot":"../../../../src","sources":["components/BottomSheet/styles.ts"],"mappings":";;AACA,SAASA,GAAG,QAA2B,0BAA0B;AACjE,SACEC,gBAAgB,EAChBC,oBAAoB,EACpBC,kBAAkB,EAClBC,oBAAoB,QACf,yBAAyB;;AAEhC;;AAEA,OAAO,MAAMC,4BAA4B,GAAGL,GAAG,CAAC,CAC9C,iDAAiD,EACjDC,gBAAgB,EAChBC,oBAAoB,CACrB,CAAC;;AAEF;;AAEA,OAAO,MAAMI,yBAAyB,GAAGN,GAAG,CAC1C,CACE,+DAA+D,EAC/DC,gBAAgB,EAChBE,kBAAkB,CACnB,EACD;EACEI,QAAQ,EAAE;IACRC,QAAQ,EAAE;MACRC,IAAI,EAAE,EAAE;MACRC,KAAK,EAAE;IACT;EACF,CAAC;EACDC,eAAe,EAAE;IACfH,QAAQ,EAAE;EACZ;AACF,CACF,CAAC;;AAED;;AAEA,OAAO,MAAMI,0BAA0B,GAAGZ,GAAG,CAAC,CAACC,gBAAgB,EAAE,WAAW,CAAC,CAAC;;AAE9E;;AAEA,OAAO,MAAMY,yBAAyB,GAAGb,GAAG,CAAC,CAC3C,yBAAyB,EACzBC,gBAAgB,EAChBC,oBAAoB,CACrB,CAAC;;AAEF;;AAEA,OAAO,MAAMY,2BAA2B,GAAGd,GAAG,CAAC,CAAC,SAAS,EAAEI,oBAAoB,CAAC,CAAC;;AAEjF;;AAEA,OAAO,MAAMW,6BAA6B,GAAGf,GAAG,CAAC,CAAC,8CAA8C,CAAC,CAAC;AAElG,OAAO,MAAMgB,2BAA2B,GAAGhB,GAAG,CAAC,CAAC,uBAAuB,CAAC,CAAC;;AAEzE;;AAEA,OAAO,MAAMiB,8BAA8B,GAAGjB,GAAG,CAAC,CAAC,yCAAyC,CAAC,CAAC;;AAE9F;;AAEA,OAAO,MAAMkB,4BAA4B,GAAGlB,GAAG,CAAC,CAAC,uBAAuB,CAAC,CAAC;;AAE1E;AACA;AACA;AACA,OAAO,MAAMmB,oBAA+B,GAAG;EAC7CC,eAAe,EAAE,SAAS;EAC1BC,KAAK,EAAE,EAAE;EACTC,MAAM,EAAE,CAAC;EACTC,YAAY,EAAE;AAChB,CAAC","ignoreList":[]}
@@ -4,6 +4,7 @@ import { forwardRef } from 'react';
4
4
  import { View } from 'react-native';
5
5
  import { WrapStringChild } from '../../utils/WrapStringChild';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
+ /** @deprecated Use View instead */
7
8
  export const Box = /*#__PURE__*/forwardRef(({
8
9
  style,
9
10
  className,
@@ -1 +1 @@
1
- {"version":3,"names":["forwardRef","View","WrapStringChild","jsx","_jsx","Box","style","className","children","textProps","restProps","ref","displayName"],"sourceRoot":"../../../../src","sources":["components/Box/Box.tsx"],"mappings":";;AAAA,SAA4BA,UAAU,QAAQ,OAAO;AACrD,SAASC,IAAI,QAAwB,cAAc;AACnD,SAASC,eAAe,QAAQ,6BAA6B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQ9D,OAAO,MAAMC,GAAG,gBAAGL,UAAU,CAC3B,CAAC;EAAEM,KAAK;EAAEC,SAAS;EAAEC,QAAQ;EAAEC,SAAS;EAAE,GAAGC;AAAU,CAAC,EAAEC,GAAuB,KAAK;EACpF,oBACEP,IAAA,CAACH,IAAI;IAACU,GAAG,EAAEA,GAAI;IAACL,KAAK,EAAEA,KAAM;IAACC,SAAS,EAAEA,SAAU;IAAA,GAAKG,SAAS;IAAAF,QAAA,eAC/DJ,IAAA,CAACF,eAAe;MAACO,SAAS,EAAEA,SAAU;MAAAD,QAAA,EAAEA;IAAQ,CAAkB;EAAC,CAC/D,CAAC;AAEX,CACF,CAAC;AAEDH,GAAG,CAACO,WAAW,GAAG,KAAK","ignoreList":[]}
1
+ {"version":3,"names":["forwardRef","View","WrapStringChild","jsx","_jsx","Box","style","className","children","textProps","restProps","ref","displayName"],"sourceRoot":"../../../../src","sources":["components/Box/Box.tsx"],"mappings":";;AAAA,SAA4BA,UAAU,QAAQ,OAAO;AACrD,SAASC,IAAI,QAAwB,cAAc;AACnD,SAASC,eAAe,QAAQ,6BAA6B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQ9D;AACA,OAAO,MAAMC,GAAG,gBAAGL,UAAU,CAC3B,CAAC;EAAEM,KAAK;EAAEC,SAAS;EAAEC,QAAQ;EAAEC,SAAS;EAAE,GAAGC;AAAU,CAAC,EAAEC,GAAuB,KAAK;EACpF,oBACEP,IAAA,CAACH,IAAI;IAACU,GAAG,EAAEA,GAAI;IAACL,KAAK,EAAEA,KAAM;IAACC,SAAS,EAAEA,SAAU;IAAA,GAAKG,SAAS;IAAAF,QAAA,eAC/DJ,IAAA,CAACF,eAAe;MAACO,SAAS,EAAEA,SAAU;MAAAD,QAAA,EAAEA;IAAQ,CAAkB;EAAC,CAC/D,CAAC;AAEX,CACF,CAAC;AAEDH,GAAG,CAACO,WAAW,GAAG,KAAK","ignoreList":[]}
@@ -0,0 +1,195 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Neutral compound-variant **slices** shared by Button and IconButton (no consumer `variant` keys).
5
+ *
6
+ * Each consumer maps these into its own CVA, e.g. filled surface → Button `strong` or IconButton `solid`;
7
+ * ghost surface / outline+ghost foreground → attach the appropriate `variant` / tuple for that component.
8
+ *
9
+ * Button-only outline **surface** (borders) stays in `Button/styles.ts`.
10
+ */
11
+ import { Platform } from 'react-native';
12
+ import { SEMANTIC_COLORS } from '../../styles/primitives';
13
+ /** Root surface: filled semantic background (maps to Button `strong`, IconButton `solid`). */
14
+ export const sharedFilledSurfaceCompounds = [{
15
+ color: 'action',
16
+ className: [SEMANTIC_COLORS.action.bg, Platform.select({
17
+ default: 'data-[active=true]:bg-slate-700',
18
+ web: 'data-[hover=true]:bg-slate-800 data-[active=true]:data-[hover=true]:bg-slate-700'
19
+ })]
20
+ }, {
21
+ color: 'danger',
22
+ className: [SEMANTIC_COLORS.danger.bg, Platform.select({
23
+ default: 'data-[active=true]:bg-red-800',
24
+ web: 'data-[hover=true]:bg-red-700 data-[active=true]:data-[hover=true]:bg-red-800'
25
+ })]
26
+ }, {
27
+ color: 'warning',
28
+ className: [SEMANTIC_COLORS.warning.bg, Platform.select({
29
+ default: 'data-[active=true]:bg-amber-700',
30
+ web: 'data-[hover=true]:bg-amber-600 data-[active=true]:data-[hover=true]:bg-amber-700'
31
+ })]
32
+ }, {
33
+ color: 'success',
34
+ className: [SEMANTIC_COLORS.success.bg, Platform.select({
35
+ default: 'data-[active=true]:bg-green-800',
36
+ web: 'data-[hover=true]:bg-green-700 data-[active=true]:data-[hover=true]:bg-green-800'
37
+ })]
38
+ }, {
39
+ color: 'info',
40
+ className: [SEMANTIC_COLORS.info.bg, Platform.select({
41
+ default: 'data-[active=true]:bg-sky-700',
42
+ web: 'data-[hover=true]:bg-sky-600 data-[active=true]:data-[hover=true]:bg-sky-700'
43
+ })]
44
+ }, {
45
+ color: 'action',
46
+ mode: 'dark',
47
+ className: ['bg-slate-200', Platform.select({
48
+ default: 'data-[active=true]:bg-slate-400',
49
+ web: 'data-[hover=true]:bg-slate-300 data-[active=true]:data-[hover=true]:bg-slate-400'
50
+ })]
51
+ }];
52
+
53
+ /** Root surface: ghost hover/active fills (maps to `variant: 'ghost'` on Button and IconButton). */
54
+ export const sharedGhostSurfaceCompounds = [{
55
+ color: 'danger',
56
+ className: [Platform.select({
57
+ default: 'data-[active=true]:bg-red-100',
58
+ web: 'data-[hover=true]:bg-red-50 data-[active=true]:data-[hover=true]:bg-red-100'
59
+ })]
60
+ }, {
61
+ color: 'warning',
62
+ className: [Platform.select({
63
+ default: 'data-[active=true]:bg-amber-100',
64
+ web: 'data-[hover=true]:bg-amber-50 data-[active=true]:data-[hover=true]:bg-amber-100'
65
+ })]
66
+ }, {
67
+ color: 'success',
68
+ className: [Platform.select({
69
+ default: 'data-[active=true]:bg-green-100',
70
+ web: 'data-[hover=true]:bg-green-50 data-[active=true]:data-[hover=true]:bg-green-100'
71
+ })]
72
+ }, {
73
+ color: 'info',
74
+ className: [Platform.select({
75
+ default: 'data-[active=true]:bg-sky-100',
76
+ web: 'data-[hover=true]:bg-sky-50 data-[active=true]:data-[hover=true]:bg-sky-100'
77
+ })]
78
+ }, {
79
+ color: 'action',
80
+ mode: 'dark',
81
+ className: [Platform.select({
82
+ default: 'data-[active=true]:bg-slate-700',
83
+ web: 'data-[hover=true]:bg-slate-800 data-[active=true]:data-[hover=true]:bg-slate-700'
84
+ })]
85
+ }, {
86
+ color: 'danger',
87
+ mode: 'dark',
88
+ className: [Platform.select({
89
+ default: 'data-[active=true]:bg-red-950',
90
+ web: 'data-[hover=true]:bg-red-950/50 data-[active=true]:data-[hover=true]:bg-red-950'
91
+ })]
92
+ }, {
93
+ color: 'warning',
94
+ mode: 'dark',
95
+ className: [Platform.select({
96
+ default: 'data-[active=true]:bg-amber-950',
97
+ web: 'data-[hover=true]:bg-amber-950/50 data-[active=true]:data-[hover=true]:bg-amber-950'
98
+ })]
99
+ }, {
100
+ color: 'success',
101
+ mode: 'dark',
102
+ className: [Platform.select({
103
+ default: 'data-[active=true]:bg-green-950',
104
+ web: 'data-[hover=true]:bg-green-950/50 data-[active=true]:data-[hover=true]:bg-green-950'
105
+ })]
106
+ }, {
107
+ color: 'info',
108
+ mode: 'dark',
109
+ className: [Platform.select({
110
+ default: 'data-[active=true]:bg-sky-950',
111
+ web: 'data-[hover=true]:bg-sky-950/50 data-[active=true]:data-[hover=true]:bg-sky-950'
112
+ })]
113
+ }];
114
+
115
+ /** Foreground on filled controls (maps to Button `strong`, IconButton `solid`). */
116
+ export const sharedFilledForegroundTextCompounds = [{
117
+ color: 'action',
118
+ className: 'text-white'
119
+ }, {
120
+ color: 'danger',
121
+ className: 'text-white'
122
+ }, {
123
+ color: 'warning',
124
+ className: 'text-white'
125
+ }, {
126
+ color: 'success',
127
+ className: 'text-white'
128
+ }, {
129
+ color: 'info',
130
+ className: 'text-white'
131
+ }, {
132
+ color: 'action',
133
+ mode: 'dark',
134
+ className: 'text-slate-900'
135
+ }];
136
+
137
+ /**
138
+ * Foreground for transparent controls: same class names for Button `outline` and `ghost`, and for IconButton `ghost`.
139
+ * Consumers attach their own `variant` key(s).
140
+ */
141
+ export const sharedOutlineGhostForegroundTextCompounds = [{
142
+ color: 'action',
143
+ className: ['text-slate-900', Platform.select({
144
+ default: 'data-[active=true]:text-slate-700',
145
+ web: 'data-[hover=true]:text-slate-800 data-[active=true]:data-[hover=true]:text-slate-700'
146
+ })]
147
+ }, {
148
+ color: 'danger',
149
+ className: ['text-red-600', Platform.select({
150
+ default: 'data-[active=true]:text-red-800',
151
+ web: 'data-[hover=true]:text-red-700 data-[active=true]:data-[hover=true]:text-red-800'
152
+ })]
153
+ }, {
154
+ color: 'warning',
155
+ className: ['text-amber-600', Platform.select({
156
+ default: 'data-[active=true]:text-amber-800',
157
+ web: 'data-[hover=true]:text-amber-700 data-[active=true]:data-[hover=true]:text-amber-800'
158
+ })]
159
+ }, {
160
+ color: 'success',
161
+ className: ['text-green-600', Platform.select({
162
+ default: 'data-[active=true]:text-green-800',
163
+ web: 'data-[hover=true]:text-green-700 data-[active=true]:data-[hover=true]:text-green-800'
164
+ })]
165
+ }, {
166
+ color: 'info',
167
+ className: ['text-sky-600', Platform.select({
168
+ default: 'data-[active=true]:text-sky-800',
169
+ web: 'data-[hover=true]:text-sky-700 data-[active=true]:data-[hover=true]:text-sky-800'
170
+ })]
171
+ }, {
172
+ color: 'action',
173
+ mode: 'dark',
174
+ className: ['text-white', Platform.select({
175
+ default: 'data-[active=true]:text-white',
176
+ web: 'data-[hover=true]:text-white data-[active=true]:data-[hover=true]:text-white'
177
+ })]
178
+ }, {
179
+ color: 'danger',
180
+ mode: 'dark',
181
+ className: 'text-red-400'
182
+ }, {
183
+ color: 'warning',
184
+ mode: 'dark',
185
+ className: 'text-amber-400'
186
+ }, {
187
+ color: 'success',
188
+ mode: 'dark',
189
+ className: 'text-green-400'
190
+ }, {
191
+ color: 'info',
192
+ mode: 'dark',
193
+ className: 'text-sky-400'
194
+ }];
195
+ //# sourceMappingURL=buttonSharedVariants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Platform","SEMANTIC_COLORS","sharedFilledSurfaceCompounds","color","className","action","bg","select","default","web","danger","warning","success","info","mode","sharedGhostSurfaceCompounds","sharedFilledForegroundTextCompounds","sharedOutlineGhostForegroundTextCompounds"],"sourceRoot":"../../../../src","sources":["components/Button/buttonSharedVariants.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,QAAQ,QAAQ,cAAc;AACvC,SAASC,eAAe,QAAQ,yBAAyB;AAIzD;AACA,OAAO,MAAMC,4BAIV,GAAG,CACJ;EACEC,KAAK,EAAE,QAAQ;EACfC,SAAS,EAAE,CACTH,eAAe,CAACI,MAAM,CAACC,EAAE,EACzBN,QAAQ,CAACO,MAAM,CAAC;IACdC,OAAO,EAAE,iCAAiC;IAC1CC,GAAG,EAAE;EACP,CAAC,CAAC;AAEN,CAAC,EACD;EACEN,KAAK,EAAE,QAAQ;EACfC,SAAS,EAAE,CACTH,eAAe,CAACS,MAAM,CAACJ,EAAE,EACzBN,QAAQ,CAACO,MAAM,CAAC;IACdC,OAAO,EAAE,+BAA+B;IACxCC,GAAG,EAAE;EACP,C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C;AAEN,CAAC,EACD;EACEN,KAAK,EAAE,QAAQ;EACfW,IAAI,EAAE,MAAM;EACZV,SAAS,EAAE,CACT,YAAY,EACZJ,QAAQ,CAACO,MAAM,CAAC;IACdC,OAAO,EAAE,+BAA+B;IACxCC,GAAG,EAAE;EACP,CAAC,CAAC;AAEN,CAAC,EACD;EACEN,KAAK,EAAE,QAAQ;EACfW,IAAI,EAAE,MAAM;EACZV,SAAS,EAAE;AACb,CAAC,EACD;EACED,KAAK,EAAE,SAAS;EAChBW,IAAI,EAAE,MAAM;EACZV,SAAS,EAAE;AACb,CAAC,EACD;EACED,KAAK,EAAE,SAAS;EAChBW,IAAI,EAAE,MAAM;EACZV,SAAS,EAAE;AACb,CAAC,EACD;EACED,KAAK,EAAE,MAAM;EACbW,IAAI,EAAE,MAAM;EACZV,SAAS,EAAE;AACb,CAAC,CACF","ignoreList":[]}
@@ -4,7 +4,8 @@ import { forwardRef } from 'react';
4
4
  import { ActivityIndicator, Pressable, Text, View } from 'react-native';
5
5
  import { createButton } from '@cdx-ui/primitives';
6
6
  import { cn, useStyleContext, withStyleContext } from '@cdx-ui/utils';
7
- import { buttonGroupVariants, buttonRootVariants, buttonSpinnerVariants, buttonTextVariants } from './styles';
7
+ import { Icon } from '../Icon';
8
+ import { buttonGroupVariants, buttonIconVariants, buttonRootVariants, buttonSpinnerVariants, buttonTextVariants } from './styles';
8
9
  import { jsx as _jsx } from "react/jsx-runtime";
9
10
  const SCOPE = 'BUTTON';
10
11
  const Root = withStyleContext(Pressable, SCOPE);
@@ -22,9 +23,10 @@ const ButtonPrimitive = createButton({
22
23
  // =============================================================================
23
24
 
24
25
  const ButtonRoot = /*#__PURE__*/forwardRef(({
25
- variant = 'solid',
26
- color = 'primary',
27
- size = 'md',
26
+ variant = 'strong',
27
+ color = 'action',
28
+ size = 'default',
29
+ mode = 'light',
28
30
  fullWidth = false,
29
31
  className,
30
32
  children,
@@ -35,6 +37,7 @@ const ButtonRoot = /*#__PURE__*/forwardRef(({
35
37
  variant,
36
38
  color,
37
39
  size,
40
+ mode,
38
41
  fullWidth
39
42
  }), className);
40
43
  return /*#__PURE__*/_jsx(ButtonPrimitive, {
@@ -45,6 +48,7 @@ const ButtonRoot = /*#__PURE__*/forwardRef(({
45
48
  variant,
46
49
  color,
47
50
  size,
51
+ mode,
48
52
  fullWidth
49
53
  },
50
54
  ...props,
@@ -66,12 +70,14 @@ const ButtonLabel = /*#__PURE__*/forwardRef(({
66
70
  const {
67
71
  variant,
68
72
  color,
69
- size
73
+ size,
74
+ mode
70
75
  } = useButtonStyleContext();
71
76
  const computedClassName = cn(buttonTextVariants({
72
77
  variant,
73
78
  color,
74
- size
79
+ size,
80
+ mode
75
81
  }), className);
76
82
  return /*#__PURE__*/_jsx(ButtonPrimitive.Text, {
77
83
  ref: ref,
@@ -82,6 +88,9 @@ const ButtonLabel = /*#__PURE__*/forwardRef(({
82
88
  });
83
89
  });
84
90
  ButtonLabel.displayName = 'Button.Label';
91
+
92
+ // TODO: Use ButtonGroupVariantProps
93
+
85
94
  const ButtonGroup = /*#__PURE__*/forwardRef(({
86
95
  className,
87
96
  children,
@@ -106,18 +115,25 @@ const ButtonGroup = /*#__PURE__*/forwardRef(({
106
115
  });
107
116
  });
108
117
  ButtonGroup.displayName = 'Button.Group';
109
- const ButtonIcon = /*#__PURE__*/forwardRef(({
118
+ const ButtonIcon = ({
110
119
  className,
111
120
  style,
121
+ as,
112
122
  ...props
113
- }, ref) => {
114
- return /*#__PURE__*/_jsx(ButtonPrimitive.Icon, {
115
- ref: ref,
116
- className: className,
123
+ }) => {
124
+ const {
125
+ size
126
+ } = useButtonStyleContext();
127
+ const computedClassName = cn(buttonIconVariants({
128
+ size
129
+ }), className);
130
+ return /*#__PURE__*/_jsx(Icon, {
131
+ as: as,
132
+ className: computedClassName,
117
133
  style: style,
118
134
  ...props
119
135
  });
120
- });
136
+ };
121
137
  ButtonIcon.displayName = 'Button.Icon';
122
138
  const ButtonSpinner = /*#__PURE__*/forwardRef(({
123
139
  className,
@@ -127,11 +143,13 @@ const ButtonSpinner = /*#__PURE__*/forwardRef(({
127
143
  }, ref) => {
128
144
  const {
129
145
  variant,
130
- color
146
+ color,
147
+ mode
131
148
  } = useButtonStyleContext();
132
149
  const computedColorClassName = cn(buttonSpinnerVariants({
133
150
  variant,
134
- color
151
+ color,
152
+ mode
135
153
  }), colorClassName);
136
154
  return /*#__PURE__*/_jsx(ButtonPrimitive.Spinner, {
137
155
  ref: ref,