@cdx-ui/components 0.0.1-alpha.4 → 0.0.1-alpha.41

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 (437) hide show
  1. package/README.md +54 -3
  2. package/lib/commonjs/components/AlertDialog/index.js +117 -0
  3. package/lib/commonjs/components/AlertDialog/index.js.map +1 -0
  4. package/lib/commonjs/components/Avatar/index.js +156 -0
  5. package/lib/commonjs/components/Avatar/index.js.map +1 -0
  6. package/lib/commonjs/components/Avatar/styles.js +80 -0
  7. package/lib/commonjs/components/Avatar/styles.js.map +1 -0
  8. package/lib/commonjs/components/BottomSheet/index.js +248 -0
  9. package/lib/commonjs/components/BottomSheet/index.js.map +1 -0
  10. package/lib/commonjs/components/BottomSheet/styles.js +61 -0
  11. package/lib/commonjs/components/BottomSheet/styles.js.map +1 -0
  12. package/lib/commonjs/components/Box/Box.js +1 -0
  13. package/lib/commonjs/components/Box/Box.js.map +1 -1
  14. package/lib/commonjs/components/Button/index.js +20 -9
  15. package/lib/commonjs/components/Button/index.js.map +1 -1
  16. package/lib/commonjs/components/Button/styles.js +181 -162
  17. package/lib/commonjs/components/Button/styles.js.map +1 -1
  18. package/lib/commonjs/components/Card/index.js +104 -0
  19. package/lib/commonjs/components/Card/index.js.map +1 -0
  20. package/lib/commonjs/components/Card/styles.js +28 -0
  21. package/lib/commonjs/components/Card/styles.js.map +1 -0
  22. package/lib/commonjs/components/Checkbox/index.js +180 -0
  23. package/lib/commonjs/components/Checkbox/index.js.map +1 -0
  24. package/lib/commonjs/components/Checkbox/styles.js +68 -0
  25. package/lib/commonjs/components/Checkbox/styles.js.map +1 -0
  26. package/lib/commonjs/components/Chip/index.js +103 -0
  27. package/lib/commonjs/components/Chip/index.js.map +1 -0
  28. package/lib/commonjs/components/Chip/styles.js +52 -0
  29. package/lib/commonjs/components/Chip/styles.js.map +1 -0
  30. package/lib/commonjs/components/Dialog/index.js +275 -0
  31. package/lib/commonjs/components/Dialog/index.js.map +1 -0
  32. package/lib/commonjs/components/Dialog/styles.js +63 -0
  33. package/lib/commonjs/components/Dialog/styles.js.map +1 -0
  34. package/lib/commonjs/components/Field/FieldLabel.js +33 -0
  35. package/lib/commonjs/components/Field/FieldLabel.js.map +1 -0
  36. package/lib/commonjs/components/Field/FieldLabel.web.js +22 -0
  37. package/lib/commonjs/components/Field/FieldLabel.web.js.map +1 -0
  38. package/lib/commonjs/components/Field/index.js +158 -0
  39. package/lib/commonjs/components/Field/index.js.map +1 -0
  40. package/lib/commonjs/components/Field/styles.js +16 -0
  41. package/lib/commonjs/components/Field/styles.js.map +1 -0
  42. package/lib/commonjs/components/Form/FormRoot.js +25 -0
  43. package/lib/commonjs/components/Form/FormRoot.js.map +1 -0
  44. package/lib/commonjs/components/Form/FormRoot.web.js +17 -0
  45. package/lib/commonjs/components/Form/FormRoot.web.js.map +1 -0
  46. package/lib/commonjs/components/Form/index.js +48 -0
  47. package/lib/commonjs/components/Form/index.js.map +1 -0
  48. package/lib/commonjs/components/Form/styles.js +9 -0
  49. package/lib/commonjs/components/Form/styles.js.map +1 -0
  50. package/lib/commonjs/components/Heading/index.js +35 -0
  51. package/lib/commonjs/components/Heading/index.js.map +1 -0
  52. package/lib/commonjs/components/Heading/styles.js +23 -0
  53. package/lib/commonjs/components/Heading/styles.js.map +1 -0
  54. package/lib/commonjs/components/Icon/index.js +61 -0
  55. package/lib/commonjs/components/Icon/index.js.map +1 -0
  56. package/lib/commonjs/components/IconButton/index.js +75 -0
  57. package/lib/commonjs/components/IconButton/index.js.map +1 -0
  58. package/lib/commonjs/components/IconButton/styles.js +44 -0
  59. package/lib/commonjs/components/IconButton/styles.js.map +1 -0
  60. package/lib/commonjs/components/Image/Image.js +69 -0
  61. package/lib/commonjs/components/Image/Image.js.map +1 -0
  62. package/lib/commonjs/components/Image/index.js +13 -0
  63. package/lib/commonjs/components/Image/index.js.map +1 -0
  64. package/lib/commonjs/components/Input/BaseInput.android.js +20 -0
  65. package/lib/commonjs/components/Input/BaseInput.android.js.map +1 -0
  66. package/lib/commonjs/components/Input/index.js +10 -16
  67. package/lib/commonjs/components/Input/index.js.map +1 -1
  68. package/lib/commonjs/components/Input/styles.js +17 -30
  69. package/lib/commonjs/components/Input/styles.js.map +1 -1
  70. package/lib/commonjs/components/Link/index.js +94 -0
  71. package/lib/commonjs/components/Link/index.js.map +1 -0
  72. package/lib/commonjs/components/Link/styles.js +14 -0
  73. package/lib/commonjs/components/Link/styles.js.map +1 -0
  74. package/lib/commonjs/components/OtpInput/index.js +83 -0
  75. package/lib/commonjs/components/OtpInput/index.js.map +1 -0
  76. package/lib/commonjs/components/OtpInput/styles.js +48 -0
  77. package/lib/commonjs/components/OtpInput/styles.js.map +1 -0
  78. package/lib/commonjs/components/ProgressBar/index.js +45 -0
  79. package/lib/commonjs/components/ProgressBar/index.js.map +1 -0
  80. package/lib/commonjs/components/ProgressBar/styles.js +10 -0
  81. package/lib/commonjs/components/ProgressBar/styles.js.map +1 -0
  82. package/lib/commonjs/components/ProgressSegmented/index.js +62 -0
  83. package/lib/commonjs/components/ProgressSegmented/index.js.map +1 -0
  84. package/lib/commonjs/components/ProgressSegmented/styles.js +21 -0
  85. package/lib/commonjs/components/ProgressSegmented/styles.js.map +1 -0
  86. package/lib/commonjs/components/Select/SelectTriggerHost.js +10 -0
  87. package/lib/commonjs/components/Select/SelectTriggerHost.js.map +1 -0
  88. package/lib/commonjs/components/Select/SelectTriggerHost.web.js +98 -0
  89. package/lib/commonjs/components/Select/SelectTriggerHost.web.js.map +1 -0
  90. package/lib/commonjs/components/Select/index.js +13 -13
  91. package/lib/commonjs/components/Select/index.js.map +1 -1
  92. package/lib/commonjs/components/Select/styles.js +29 -53
  93. package/lib/commonjs/components/Select/styles.js.map +1 -1
  94. package/lib/commonjs/components/Stack/HStack.js +8 -21
  95. package/lib/commonjs/components/Stack/HStack.js.map +1 -1
  96. package/lib/commonjs/components/Stack/VStack.js +8 -21
  97. package/lib/commonjs/components/Stack/VStack.js.map +1 -1
  98. package/lib/commonjs/components/Stack/styles.js +44 -0
  99. package/lib/commonjs/components/Stack/styles.js.map +1 -0
  100. package/lib/commonjs/components/Switch/BaseSwitch.js +46 -0
  101. package/lib/commonjs/components/Switch/BaseSwitch.js.map +1 -0
  102. package/lib/commonjs/components/Switch/BaseSwitch.web.js +56 -0
  103. package/lib/commonjs/components/Switch/BaseSwitch.web.js.map +1 -0
  104. package/lib/commonjs/components/Switch/index.js +13 -0
  105. package/lib/commonjs/components/Switch/index.js.map +1 -0
  106. package/lib/commonjs/components/Switch/styles.js +128 -0
  107. package/lib/commonjs/components/Switch/styles.js.map +1 -0
  108. package/lib/commonjs/components/Text/index.js +18 -9
  109. package/lib/commonjs/components/Text/index.js.map +1 -1
  110. package/lib/commonjs/components/Text/styles.js +23 -0
  111. package/lib/commonjs/components/Text/styles.js.map +1 -0
  112. package/lib/commonjs/components/VirtualizedList/index.js +19 -0
  113. package/lib/commonjs/components/VirtualizedList/index.js.map +1 -0
  114. package/lib/commonjs/components/index.js +228 -0
  115. package/lib/commonjs/components/index.js.map +1 -1
  116. package/lib/commonjs/index.js +40 -0
  117. package/lib/commonjs/index.js.map +1 -1
  118. package/lib/commonjs/metro/withCdxMetroConfig.js +24 -0
  119. package/lib/commonjs/metro/withCdxMetroConfig.js.map +1 -0
  120. package/lib/commonjs/styles/index.js +17 -0
  121. package/lib/commonjs/styles/index.js.map +1 -0
  122. package/lib/commonjs/styles/primitives.js +123 -0
  123. package/lib/commonjs/styles/primitives.js.map +1 -0
  124. package/lib/module/components/AlertDialog/index.js +112 -0
  125. package/lib/module/components/AlertDialog/index.js.map +1 -0
  126. package/lib/module/components/Avatar/index.js +152 -0
  127. package/lib/module/components/Avatar/index.js.map +1 -0
  128. package/lib/module/components/Avatar/styles.js +77 -0
  129. package/lib/module/components/Avatar/styles.js.map +1 -0
  130. package/lib/module/components/BottomSheet/index.js +242 -0
  131. package/lib/module/components/BottomSheet/index.js.map +1 -0
  132. package/lib/module/components/BottomSheet/styles.js +58 -0
  133. package/lib/module/components/BottomSheet/styles.js.map +1 -0
  134. package/lib/module/components/Box/Box.js +1 -0
  135. package/lib/module/components/Box/Box.js.map +1 -1
  136. package/lib/module/components/Button/index.js +21 -10
  137. package/lib/module/components/Button/index.js.map +1 -1
  138. package/lib/module/components/Button/styles.js +180 -161
  139. package/lib/module/components/Button/styles.js.map +1 -1
  140. package/lib/module/components/Card/index.js +100 -0
  141. package/lib/module/components/Card/index.js.map +1 -0
  142. package/lib/module/components/Card/styles.js +25 -0
  143. package/lib/module/components/Card/styles.js.map +1 -0
  144. package/lib/module/components/Checkbox/index.js +176 -0
  145. package/lib/module/components/Checkbox/index.js.map +1 -0
  146. package/lib/module/components/Checkbox/styles.js +64 -0
  147. package/lib/module/components/Checkbox/styles.js.map +1 -0
  148. package/lib/module/components/Chip/index.js +99 -0
  149. package/lib/module/components/Chip/index.js.map +1 -0
  150. package/lib/module/components/Chip/styles.js +48 -0
  151. package/lib/module/components/Chip/styles.js.map +1 -0
  152. package/lib/module/components/Dialog/index.js +267 -0
  153. package/lib/module/components/Dialog/index.js.map +1 -0
  154. package/lib/module/components/Dialog/styles.js +60 -0
  155. package/lib/module/components/Dialog/styles.js.map +1 -0
  156. package/lib/module/components/Field/FieldLabel.js +29 -0
  157. package/lib/module/components/Field/FieldLabel.js.map +1 -0
  158. package/lib/module/components/Field/FieldLabel.web.js +17 -0
  159. package/lib/module/components/Field/FieldLabel.web.js.map +1 -0
  160. package/lib/module/components/Field/index.js +155 -0
  161. package/lib/module/components/Field/index.js.map +1 -0
  162. package/lib/module/components/Field/styles.js +12 -0
  163. package/lib/module/components/Field/styles.js.map +1 -0
  164. package/lib/module/components/Form/FormRoot.js +21 -0
  165. package/lib/module/components/Form/FormRoot.js.map +1 -0
  166. package/lib/module/components/Form/FormRoot.web.js +12 -0
  167. package/lib/module/components/Form/FormRoot.web.js.map +1 -0
  168. package/lib/module/components/Form/index.js +44 -0
  169. package/lib/module/components/Form/index.js.map +1 -0
  170. package/lib/module/components/Form/styles.js +5 -0
  171. package/lib/module/components/Form/styles.js.map +1 -0
  172. package/lib/module/components/Heading/index.js +31 -0
  173. package/lib/module/components/Heading/index.js.map +1 -0
  174. package/lib/module/components/Heading/styles.js +19 -0
  175. package/lib/module/components/Heading/styles.js.map +1 -0
  176. package/lib/module/components/Icon/index.js +57 -0
  177. package/lib/module/components/Icon/index.js.map +1 -0
  178. package/lib/module/components/IconButton/index.js +71 -0
  179. package/lib/module/components/IconButton/index.js.map +1 -0
  180. package/lib/module/components/IconButton/styles.js +40 -0
  181. package/lib/module/components/IconButton/styles.js.map +1 -0
  182. package/lib/module/components/Image/Image.js +67 -0
  183. package/lib/module/components/Image/Image.js.map +1 -0
  184. package/lib/module/components/Image/index.js +4 -0
  185. package/lib/module/components/Image/index.js.map +1 -0
  186. package/lib/module/components/Input/BaseInput.android.js +16 -0
  187. package/lib/module/components/Input/BaseInput.android.js.map +1 -0
  188. package/lib/module/components/Input/index.js +10 -16
  189. package/lib/module/components/Input/index.js.map +1 -1
  190. package/lib/module/components/Input/styles.js +17 -30
  191. package/lib/module/components/Input/styles.js.map +1 -1
  192. package/lib/module/components/Link/index.js +85 -0
  193. package/lib/module/components/Link/index.js.map +1 -0
  194. package/lib/module/components/Link/styles.js +11 -0
  195. package/lib/module/components/Link/styles.js.map +1 -0
  196. package/lib/module/components/OtpInput/index.js +79 -0
  197. package/lib/module/components/OtpInput/index.js.map +1 -0
  198. package/lib/module/components/OtpInput/styles.js +44 -0
  199. package/lib/module/components/OtpInput/styles.js.map +1 -0
  200. package/lib/module/components/ProgressBar/index.js +41 -0
  201. package/lib/module/components/ProgressBar/index.js.map +1 -0
  202. package/lib/module/components/ProgressBar/styles.js +6 -0
  203. package/lib/module/components/ProgressBar/styles.js.map +1 -0
  204. package/lib/module/components/ProgressSegmented/index.js +58 -0
  205. package/lib/module/components/ProgressSegmented/index.js.map +1 -0
  206. package/lib/module/components/ProgressSegmented/styles.js +17 -0
  207. package/lib/module/components/ProgressSegmented/styles.js.map +1 -0
  208. package/lib/module/components/Select/SelectTriggerHost.js +7 -0
  209. package/lib/module/components/Select/SelectTriggerHost.js.map +1 -0
  210. package/lib/module/components/Select/SelectTriggerHost.web.js +93 -0
  211. package/lib/module/components/Select/SelectTriggerHost.web.js.map +1 -0
  212. package/lib/module/components/Select/index.js +14 -14
  213. package/lib/module/components/Select/index.js.map +1 -1
  214. package/lib/module/components/Select/styles.js +29 -53
  215. package/lib/module/components/Select/styles.js.map +1 -1
  216. package/lib/module/components/Stack/HStack.js +8 -21
  217. package/lib/module/components/Stack/HStack.js.map +1 -1
  218. package/lib/module/components/Stack/VStack.js +8 -21
  219. package/lib/module/components/Stack/VStack.js.map +1 -1
  220. package/lib/module/components/Stack/styles.js +40 -0
  221. package/lib/module/components/Stack/styles.js.map +1 -0
  222. package/lib/module/components/Switch/BaseSwitch.js +42 -0
  223. package/lib/module/components/Switch/BaseSwitch.js.map +1 -0
  224. package/lib/module/components/Switch/BaseSwitch.web.js +52 -0
  225. package/lib/module/components/Switch/BaseSwitch.web.js.map +1 -0
  226. package/lib/module/components/Switch/index.js +9 -0
  227. package/lib/module/components/Switch/index.js.map +1 -0
  228. package/lib/module/components/Switch/styles.js +125 -0
  229. package/lib/module/components/Switch/styles.js.map +1 -0
  230. package/lib/module/components/Text/index.js +19 -1
  231. package/lib/module/components/Text/index.js.map +1 -1
  232. package/lib/module/components/Text/styles.js +19 -0
  233. package/lib/module/components/Text/styles.js.map +1 -0
  234. package/lib/module/components/VirtualizedList/index.js +15 -0
  235. package/lib/module/components/VirtualizedList/index.js.map +1 -0
  236. package/lib/module/components/index.js +19 -0
  237. package/lib/module/components/index.js.map +1 -1
  238. package/lib/module/index.js +3 -0
  239. package/lib/module/index.js.map +1 -1
  240. package/lib/module/metro/withCdxMetroConfig.js +20 -0
  241. package/lib/module/metro/withCdxMetroConfig.js.map +1 -0
  242. package/lib/module/styles/index.js +4 -0
  243. package/lib/module/styles/index.js.map +1 -0
  244. package/lib/module/styles/primitives.js +119 -0
  245. package/lib/module/styles/primitives.js.map +1 -0
  246. package/lib/typescript/components/AlertDialog/index.d.ts +30 -0
  247. package/lib/typescript/components/AlertDialog/index.d.ts.map +1 -0
  248. package/lib/typescript/components/Avatar/index.d.ts +40 -0
  249. package/lib/typescript/components/Avatar/index.d.ts.map +1 -0
  250. package/lib/typescript/components/Avatar/styles.d.ts +16 -0
  251. package/lib/typescript/components/Avatar/styles.d.ts.map +1 -0
  252. package/lib/typescript/components/BottomSheet/index.d.ts +61 -0
  253. package/lib/typescript/components/BottomSheet/index.d.ts.map +1 -0
  254. package/lib/typescript/components/BottomSheet/styles.d.ts +16 -0
  255. package/lib/typescript/components/BottomSheet/styles.d.ts.map +1 -0
  256. package/lib/typescript/components/Box/Box.d.ts +1 -0
  257. package/lib/typescript/components/Box/Box.d.ts.map +1 -1
  258. package/lib/typescript/components/Button/index.d.ts +6 -3
  259. package/lib/typescript/components/Button/index.d.ts.map +1 -1
  260. package/lib/typescript/components/Button/styles.d.ts +11 -8
  261. package/lib/typescript/components/Button/styles.d.ts.map +1 -1
  262. package/lib/typescript/components/Card/index.d.ts +30 -0
  263. package/lib/typescript/components/Card/index.d.ts.map +1 -0
  264. package/lib/typescript/components/Card/styles.d.ts +6 -0
  265. package/lib/typescript/components/Card/styles.d.ts.map +1 -0
  266. package/lib/typescript/components/Checkbox/index.d.ts +46 -0
  267. package/lib/typescript/components/Checkbox/index.d.ts.map +1 -0
  268. package/lib/typescript/components/Checkbox/styles.d.ts +18 -0
  269. package/lib/typescript/components/Checkbox/styles.d.ts.map +1 -0
  270. package/lib/typescript/components/Chip/index.d.ts +27 -0
  271. package/lib/typescript/components/Chip/index.d.ts.map +1 -0
  272. package/lib/typescript/components/Chip/styles.d.ts +12 -0
  273. package/lib/typescript/components/Chip/styles.d.ts.map +1 -0
  274. package/lib/typescript/components/Dialog/index.d.ts +61 -0
  275. package/lib/typescript/components/Dialog/index.d.ts.map +1 -0
  276. package/lib/typescript/components/Dialog/styles.d.ts +14 -0
  277. package/lib/typescript/components/Dialog/styles.d.ts.map +1 -0
  278. package/lib/typescript/components/Field/FieldLabel.d.ts +18 -0
  279. package/lib/typescript/components/Field/FieldLabel.d.ts.map +1 -0
  280. package/lib/typescript/components/Field/FieldLabel.web.d.ts +16 -0
  281. package/lib/typescript/components/Field/FieldLabel.web.d.ts.map +1 -0
  282. package/lib/typescript/components/Field/index.d.ts +26 -0
  283. package/lib/typescript/components/Field/index.d.ts.map +1 -0
  284. package/lib/typescript/components/Field/styles.d.ts +16 -0
  285. package/lib/typescript/components/Field/styles.d.ts.map +1 -0
  286. package/lib/typescript/components/Form/FormRoot.d.ts +14 -0
  287. package/lib/typescript/components/Form/FormRoot.d.ts.map +1 -0
  288. package/lib/typescript/components/Form/FormRoot.web.d.ts +10 -0
  289. package/lib/typescript/components/Form/FormRoot.web.d.ts.map +1 -0
  290. package/lib/typescript/components/Form/index.d.ts +7 -0
  291. package/lib/typescript/components/Form/index.d.ts.map +1 -0
  292. package/lib/typescript/components/Form/styles.d.ts +2 -0
  293. package/lib/typescript/components/Form/styles.d.ts.map +1 -0
  294. package/lib/typescript/components/Heading/index.d.ts +10 -0
  295. package/lib/typescript/components/Heading/index.d.ts.map +1 -0
  296. package/lib/typescript/components/Heading/styles.d.ts +6 -0
  297. package/lib/typescript/components/Heading/styles.d.ts.map +1 -0
  298. package/lib/typescript/components/Icon/index.d.ts +27 -0
  299. package/lib/typescript/components/Icon/index.d.ts.map +1 -0
  300. package/lib/typescript/components/IconButton/index.d.ts +15 -0
  301. package/lib/typescript/components/IconButton/index.d.ts.map +1 -0
  302. package/lib/typescript/components/IconButton/styles.d.ts +11 -0
  303. package/lib/typescript/components/IconButton/styles.d.ts.map +1 -0
  304. package/lib/typescript/components/Image/Image.d.ts +47 -0
  305. package/lib/typescript/components/Image/Image.d.ts.map +1 -0
  306. package/lib/typescript/components/Image/index.d.ts +2 -0
  307. package/lib/typescript/components/Image/index.d.ts.map +1 -0
  308. package/lib/typescript/components/Input/BaseInput.android.d.ts +3 -0
  309. package/lib/typescript/components/Input/BaseInput.android.d.ts.map +1 -0
  310. package/lib/typescript/components/Input/index.d.ts +7 -5
  311. package/lib/typescript/components/Input/index.d.ts.map +1 -1
  312. package/lib/typescript/components/Input/styles.d.ts +5 -7
  313. package/lib/typescript/components/Input/styles.d.ts.map +1 -1
  314. package/lib/typescript/components/Link/index.d.ts +26 -0
  315. package/lib/typescript/components/Link/index.d.ts.map +1 -0
  316. package/lib/typescript/components/Link/styles.d.ts +6 -0
  317. package/lib/typescript/components/Link/styles.d.ts.map +1 -0
  318. package/lib/typescript/components/OtpInput/index.d.ts +11 -0
  319. package/lib/typescript/components/OtpInput/index.d.ts.map +1 -0
  320. package/lib/typescript/components/OtpInput/styles.d.ts +14 -0
  321. package/lib/typescript/components/OtpInput/styles.d.ts.map +1 -0
  322. package/lib/typescript/components/ProgressBar/index.d.ts +17 -0
  323. package/lib/typescript/components/ProgressBar/index.d.ts.map +1 -0
  324. package/lib/typescript/components/ProgressBar/styles.d.ts +5 -0
  325. package/lib/typescript/components/ProgressBar/styles.d.ts.map +1 -0
  326. package/lib/typescript/components/ProgressSegmented/index.d.ts +15 -0
  327. package/lib/typescript/components/ProgressSegmented/index.d.ts.map +1 -0
  328. package/lib/typescript/components/ProgressSegmented/styles.d.ts +8 -0
  329. package/lib/typescript/components/ProgressSegmented/styles.d.ts.map +1 -0
  330. package/lib/typescript/components/Select/SelectTriggerHost.d.ts +3 -0
  331. package/lib/typescript/components/Select/SelectTriggerHost.d.ts.map +1 -0
  332. package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts +13 -0
  333. package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts.map +1 -0
  334. package/lib/typescript/components/Select/index.d.ts +7 -4
  335. package/lib/typescript/components/Select/index.d.ts.map +1 -1
  336. package/lib/typescript/components/Select/styles.d.ts +6 -8
  337. package/lib/typescript/components/Select/styles.d.ts.map +1 -1
  338. package/lib/typescript/components/Stack/HStack.d.ts +1 -12
  339. package/lib/typescript/components/Stack/HStack.d.ts.map +1 -1
  340. package/lib/typescript/components/Stack/VStack.d.ts +1 -12
  341. package/lib/typescript/components/Stack/VStack.d.ts.map +1 -1
  342. package/lib/typescript/components/Stack/styles.d.ts +23 -0
  343. package/lib/typescript/components/Stack/styles.d.ts.map +1 -0
  344. package/lib/typescript/components/Switch/BaseSwitch.d.ts +9 -0
  345. package/lib/typescript/components/Switch/BaseSwitch.d.ts.map +1 -0
  346. package/lib/typescript/components/Switch/BaseSwitch.web.d.ts +15 -0
  347. package/lib/typescript/components/Switch/BaseSwitch.web.d.ts.map +1 -0
  348. package/lib/typescript/components/Switch/index.d.ts +7 -0
  349. package/lib/typescript/components/Switch/index.d.ts.map +1 -0
  350. package/lib/typescript/components/Switch/styles.d.ts +26 -0
  351. package/lib/typescript/components/Switch/styles.d.ts.map +1 -0
  352. package/lib/typescript/components/Text/index.d.ts +9 -1
  353. package/lib/typescript/components/Text/index.d.ts.map +1 -1
  354. package/lib/typescript/components/Text/styles.d.ts +6 -0
  355. package/lib/typescript/components/Text/styles.d.ts.map +1 -0
  356. package/lib/typescript/components/VirtualizedList/index.d.ts +8 -0
  357. package/lib/typescript/components/VirtualizedList/index.d.ts.map +1 -0
  358. package/lib/typescript/components/index.d.ts +19 -0
  359. package/lib/typescript/components/index.d.ts.map +1 -1
  360. package/lib/typescript/index.d.ts +3 -0
  361. package/lib/typescript/index.d.ts.map +1 -1
  362. package/lib/typescript/metro/withCdxMetroConfig.d.ts +19 -0
  363. package/lib/typescript/metro/withCdxMetroConfig.d.ts.map +1 -0
  364. package/lib/typescript/styles/index.d.ts +2 -0
  365. package/lib/typescript/styles/index.d.ts.map +1 -0
  366. package/lib/typescript/styles/primitives.d.ts +85 -0
  367. package/lib/typescript/styles/primitives.d.ts.map +1 -0
  368. package/package.json +21 -10
  369. package/src/components/AlertDialog/index.tsx +124 -0
  370. package/src/components/Avatar/index.tsx +172 -0
  371. package/src/components/Avatar/styles.ts +83 -0
  372. package/src/components/BottomSheet/index.tsx +316 -0
  373. package/src/components/BottomSheet/styles.ts +79 -0
  374. package/src/components/Box/Box.tsx +1 -0
  375. package/src/components/Button/index.tsx +14 -9
  376. package/src/components/Button/styles.ts +159 -204
  377. package/src/components/Card/index.tsx +115 -0
  378. package/src/components/Card/styles.ts +41 -0
  379. package/src/components/Checkbox/index.tsx +207 -0
  380. package/src/components/Checkbox/styles.ts +103 -0
  381. package/src/components/Chip/index.tsx +91 -0
  382. package/src/components/Chip/styles.ts +52 -0
  383. package/src/components/Dialog/index.tsx +304 -0
  384. package/src/components/Dialog/styles.ts +88 -0
  385. package/src/components/Field/FieldLabel.tsx +33 -0
  386. package/src/components/Field/FieldLabel.web.tsx +25 -0
  387. package/src/components/Field/index.tsx +171 -0
  388. package/src/components/Field/styles.ts +32 -0
  389. package/src/components/Form/FormRoot.tsx +20 -0
  390. package/src/components/Form/FormRoot.web.tsx +12 -0
  391. package/src/components/Form/index.tsx +38 -0
  392. package/src/components/Form/styles.ts +3 -0
  393. package/src/components/Heading/index.tsx +36 -0
  394. package/src/components/Heading/styles.tsx +25 -0
  395. package/src/components/Icon/index.tsx +54 -0
  396. package/src/components/IconButton/index.tsx +92 -0
  397. package/src/components/IconButton/styles.ts +59 -0
  398. package/src/components/Image/Image.tsx +77 -0
  399. package/src/components/Image/index.ts +1 -0
  400. package/src/components/Input/BaseInput.android.tsx +13 -0
  401. package/src/components/Input/index.tsx +9 -22
  402. package/src/components/Input/styles.ts +36 -40
  403. package/src/components/Link/index.tsx +83 -0
  404. package/src/components/Link/styles.ts +21 -0
  405. package/src/components/OtpInput/index.tsx +79 -0
  406. package/src/components/OtpInput/styles.ts +45 -0
  407. package/src/components/ProgressBar/index.tsx +53 -0
  408. package/src/components/ProgressBar/styles.ts +9 -0
  409. package/src/components/ProgressSegmented/index.tsx +81 -0
  410. package/src/components/ProgressSegmented/styles.ts +20 -0
  411. package/src/components/Select/SelectTriggerHost.tsx +4 -0
  412. package/src/components/Select/SelectTriggerHost.web.tsx +136 -0
  413. package/src/components/Select/index.tsx +14 -14
  414. package/src/components/Select/styles.ts +68 -75
  415. package/src/components/Stack/HStack.tsx +8 -19
  416. package/src/components/Stack/VStack.tsx +8 -23
  417. package/src/components/Stack/styles.ts +42 -0
  418. package/src/components/Switch/BaseSwitch.tsx +38 -0
  419. package/src/components/Switch/BaseSwitch.web.tsx +69 -0
  420. package/src/components/Switch/index.tsx +11 -0
  421. package/src/components/Switch/styles.ts +120 -0
  422. package/src/components/Text/index.tsx +16 -0
  423. package/src/components/Text/styles.tsx +25 -0
  424. package/src/components/VirtualizedList/index.tsx +19 -0
  425. package/src/components/index.ts +19 -0
  426. package/src/index.ts +3 -0
  427. package/src/metro/withCdxMetroConfig.ts +29 -0
  428. package/src/styles/index.ts +1 -0
  429. package/src/styles/primitives.ts +107 -0
  430. package/lib/commonjs/components/Text/Text.js +0 -30
  431. package/lib/commonjs/components/Text/Text.js.map +0 -1
  432. package/lib/module/components/Text/Text.js +0 -26
  433. package/lib/module/components/Text/Text.js.map +0 -1
  434. package/lib/typescript/components/Text/Text.d.ts +0 -11
  435. package/lib/typescript/components/Text/Text.d.ts.map +0 -1
  436. package/src/components/Text/Text.tsx +0 -58
  437. package/src/components/Text/index.ts +0 -1
@@ -2,278 +2,286 @@
2
2
 
3
3
  import { Platform } from 'react-native';
4
4
  import { cva } from 'class-variance-authority';
5
+ import { DISABLED_CURSOR, TRANSITION_COLORS } from '../../styles/primitives';
5
6
 
6
- // TODO: Split into 2 files
7
- // TODO: Create cva wrapper
7
+ // TODO: Validate that `dark:` syntax works with Uniwind `ScopedTheme`
8
8
 
9
- export const buttonRootVariants = cva(['flex-row items-center justify-center', 'rounded-md', 'transition-colors duration-150',
10
- // TODO: Transition not working on mobile
11
- 'data-[disabled=true]:opacity-60 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:pointer-events-none', 'data-[focus-visible=true]:ring-2 data-[focus-visible=true]:ring-ring data-[focus-visible=true]:ring-offset-2 data-[focus-visible=true]:ring-offset-bg'], {
9
+ export const buttonRootVariants = cva(['flex-row items-center justify-center', 'rounded-[var(--border-radius-button)]', 'web:outline-none web:focus:outline-none web:focus-visible:outline-none', TRANSITION_COLORS, 'data-[disabled=true]:opacity-[--opacity-disabled]', DISABLED_CURSOR, 'web:data-[focus-visible=true]:ring-2 web:data-[focus-visible=true]:ring-[--color-stroke-focus] web:data-[focus-visible=true]:ring-offset-2'], {
12
10
  variants: {
13
11
  variant: {
14
- solid: [],
15
- subtle: [],
16
- outline: ['bg-transparent border border-border', 'data-[hover=true]:bg-surface', 'data-[active=true]:bg-surface-raised'],
17
- ghost: ['bg-transparent', 'data-[hover=true]:bg-surface', 'data-[active=true]:bg-surface-raised']
12
+ strong: ['border-b-1 border-black/75'],
13
+ // TODO: Replace with token
14
+ outline: ['bg-transparent', 'border border-stroke-primary'],
15
+ ghost: ['bg-transparent']
18
16
  },
19
17
  color: {
20
- primary: [],
21
- secondary: [],
18
+ action: [],
19
+ danger: [],
20
+ warning: [],
22
21
  success: [],
23
- danger: []
22
+ info: []
24
23
  },
25
24
  size: {
26
- sm: 'h-8 px-3 gap-1.5',
27
- md: 'h-10 px-4 gap-2',
28
- lg: 'h-12 px-6 gap-2.5'
25
+ default: 'h-10 px-4 gap-2',
26
+ small: 'h-8 px-3 gap-1.5'
29
27
  },
30
28
  fullWidth: {
31
29
  true: 'w-full',
32
30
  false: ''
33
31
  }
34
32
  },
35
- compoundVariants: [{
36
- variant: 'solid',
37
- color: 'primary',
38
- className: ['bg-blue-500', Platform.select({
39
- default: 'data-[active=true]:bg-blue-700',
40
- web: 'data-[hover=true]:bg-blue-600 data-[active=true]:data-[hover=true]:bg-blue-700'
33
+ compoundVariants: [
34
+ // ── strong × color (filled surface) ──────────────────────────────
35
+ {
36
+ variant: 'strong',
37
+ color: 'action',
38
+ className: ['bg-surface-action-strong', Platform.select({
39
+ default: 'data-[active=true]:bg-surface-action-strong-active',
40
+ web: 'data-[hover=true]:bg-surface-action-strong-hover data-[active=true]:data-[hover=true]:bg-surface-action-strong-active'
41
41
  })]
42
42
  }, {
43
- variant: 'solid',
44
- color: 'secondary',
45
- className: ['bg-amber-500', Platform.select({
46
- default: 'data-[active=true]:bg-amber-700',
47
- web: 'data-[hover=true]:bg-amber-600 data-[active=true]:data-[hover=true]:bg-amber-700'
48
- })]
49
- }, {
50
- variant: 'solid',
51
- color: 'success',
52
- className: ['bg-green-500', Platform.select({
53
- default: 'data-[active=true]:bg-green-700',
54
- web: 'data-[hover=true]:bg-green-600 data-[active=true]:data-[hover=true]:bg-green-700'
55
- })]
56
- }, {
57
- variant: 'solid',
43
+ variant: 'strong',
58
44
  color: 'danger',
59
- className: ['bg-red-500', Platform.select({
60
- default: 'data-[active=true]:bg-red-700',
61
- web: 'data-[hover=true]:bg-red-600 data-[active=true]:data-[hover=true]:bg-red-700'
45
+ className: ['bg-surface-danger-strong', Platform.select({
46
+ default: 'data-[active=true]:bg-surface-danger-strong-active',
47
+ web: 'data-[hover=true]:bg-surface-danger-strong-hover data-[active=true]:data-[hover=true]:bg-surface-danger-strong-active'
62
48
  })]
63
49
  }, {
64
- variant: 'subtle',
65
- color: 'primary',
66
- className: ['bg-blue-100', Platform.select({
67
- default: 'data-[active=true]:bg-blue-200',
68
- web: 'data-[hover=true]:bg-blue-200 data-[active=true]:data-[hover=true]:bg-blue-300'
50
+ variant: 'strong',
51
+ color: 'warning',
52
+ className: ['bg-surface-warning-strong', Platform.select({
53
+ default: 'data-[active=true]:bg-amber-600',
54
+ web: 'data-[hover=true]:bg-amber-500 data-[active=true]:data-[hover=true]:bg-amber-600'
69
55
  })]
70
56
  }, {
71
- variant: 'subtle',
72
- color: 'secondary',
73
- className: ['bg-amber-200', Platform.select({
74
- default: 'data-[active=true]:bg-amber-300',
75
- web: 'data-[hover=true]:bg-amber-300 data-[active=true]:data-[hover=true]:bg-amber-400'
76
- })]
77
- }, {
78
- variant: 'subtle',
57
+ variant: 'strong',
79
58
  color: 'success',
80
- className: ['bg-green-200', Platform.select({
81
- default: 'data-[active=true]:bg-green-300',
82
- web: 'data-[hover=true]:bg-green-300 data-[active=true]:data-[hover=true]:bg-green-400'
59
+ className: ['bg-surface-success-strong', Platform.select({
60
+ default: 'data-[active=true]:bg-green-800',
61
+ web: 'data-[hover=true]:bg-green-700 data-[active=true]:data-[hover=true]:bg-green-800'
83
62
  })]
84
63
  }, {
85
- variant: 'subtle',
86
- color: 'danger',
87
- className: ['bg-red-200', Platform.select({
88
- default: 'data-[active=true]:bg-red-300',
89
- web: 'data-[hover=true]:bg-red-300 data-[active=true]:data-[hover=true]:bg-red-400'
64
+ variant: 'strong',
65
+ color: 'info',
66
+ className: ['bg-surface-info-strong', Platform.select({
67
+ default: 'data-[active=true]:bg-sky-700',
68
+ web: 'data-[hover=true]:bg-sky-600 data-[active=true]:data-[hover=true]:bg-sky-700'
69
+ })]
70
+ },
71
+ // ── outline × color (border + hover/active surface) ─────────────
72
+ {
73
+ variant: 'outline',
74
+ color: 'action',
75
+ className: ['border-stroke-action', Platform.select({
76
+ default: 'data-[active=true]:bg-surface-action-subtle-active',
77
+ web: 'data-[hover=true]:bg-surface-action-tint-hover data-[active=true]:data-[hover=true]:bg-surface-action-subtle-active'
90
78
  })]
91
79
  }, {
92
80
  variant: 'outline',
93
- color: 'primary',
94
- className: ['border-blue-500', Platform.select({
95
- default: 'data-[active=true]:border-blue-700 data-[active=true]:bg-blue-100',
96
- web: 'data-[hover=true]:border-blue-600 data-[hover=true]:bg-blue-100 data-[active=true]:data-[hover=true]:border-blue-700 data-[active=true]:data-[hover=true]:bg-blue-200'
81
+ color: 'danger',
82
+ className: ['border-stroke-danger', Platform.select({
83
+ default: 'data-[active=true]:bg-surface-danger-subtle-active',
84
+ web: 'data-[hover=true]:bg-surface-danger-tint-hover data-[active=true]:data-[hover=true]:bg-surface-danger-subtle-active'
97
85
  })]
98
86
  }, {
99
87
  variant: 'outline',
100
- color: 'secondary',
101
- className: ['border-amber-500', Platform.select({
102
- default: 'data-[active=true]:border-amber-700 data-[active=true]:bg-amber-50',
103
- web: 'data-[hover=true]:border-amber-600 data-[hover=true]:bg-amber-50 data-[active=true]:data-[hover=true]:border-amber-700 data-[active=true]:data-[hover=true]:bg-amber-100'
88
+ color: 'warning',
89
+ className: ['border-stroke-warning', Platform.select({
90
+ default: 'data-[active=true]:bg-surface-warning-subtle',
91
+ web: 'data-[hover=true]:bg-surface-warning-tint data-[active=true]:data-[hover=true]:bg-surface-warning-subtle'
104
92
  })]
105
93
  }, {
106
94
  variant: 'outline',
107
95
  color: 'success',
108
- className: ['border-green-500', Platform.select({
109
- default: 'data-[active=true]:border-green-700 data-[active=true]:bg-green-100',
110
- web: 'data-[hover=true]:border-green-600 data-[hover=true]:bg-green-100 data-[active=true]:data-[hover=true]:border-green-700 data-[active=true]:data-[hover=true]:bg-green-200'
96
+ className: ['border-stroke-success', Platform.select({
97
+ default: 'data-[active=true]:bg-surface-success-subtle',
98
+ web: 'data-[hover=true]:bg-surface-success-tint data-[active=true]:data-[hover=true]:bg-surface-success-subtle'
111
99
  })]
112
100
  }, {
113
101
  variant: 'outline',
114
- color: 'danger',
115
- className: ['border-red-500', Platform.select({
116
- default: 'data-[active=true]:border-red-700 data-[active=true]:bg-red-100',
117
- web: 'data-[hover=true]:border-red-600 data-[hover=true]:bg-red-100 data-[active=true]:data-[hover=true]:border-red-700 data-[active=true]:data-[hover=true]:bg-red-200'
102
+ color: 'info',
103
+ className: ['border-stroke-info', Platform.select({
104
+ default: 'data-[active=true]:bg-surface-info-subtle',
105
+ web: 'data-[hover=true]:bg-surface-info-tint data-[active=true]:data-[hover=true]:bg-surface-info-subtle'
106
+ })]
107
+ },
108
+ // ── ghost × color (hover/active surface fills) ──────────────────
109
+ {
110
+ variant: 'ghost',
111
+ color: 'action',
112
+ className: [Platform.select({
113
+ default: 'data-[active=true]:bg-surface-action-subtle-active',
114
+ web: 'data-[hover=true]:bg-surface-action-tint-hover data-[active=true]:data-[hover=true]:bg-surface-action-subtle-active'
118
115
  })]
119
116
  }, {
120
117
  variant: 'ghost',
121
- color: 'primary',
122
- className: ['bg-transparent', Platform.select({
123
- default: 'data-[active=true]:bg-blue-100',
124
- web: 'data-[hover=true]:bg-blue-50 data-[active=true]:data-[hover=true]:bg-blue-100'
118
+ color: 'danger',
119
+ className: [Platform.select({
120
+ default: 'data-[active=true]:bg-surface-danger-subtle-active',
121
+ web: 'data-[hover=true]:bg-surface-danger-tint-hover data-[active=true]:data-[hover=true]:bg-surface-danger-subtle-active'
125
122
  })]
126
123
  }, {
127
124
  variant: 'ghost',
128
- color: 'secondary',
129
- className: ['bg-transparent', Platform.select({
130
- default: 'data-[active=true]:bg-amber-100',
131
- web: 'data-[hover=true]:bg-amber-50 data-[active=true]:data-[hover=true]:bg-amber-100'
125
+ color: 'warning',
126
+ className: [Platform.select({
127
+ default: 'data-[active=true]:bg-surface-warning-subtle',
128
+ web: 'data-[hover=true]:bg-surface-warning-tint data-[active=true]:data-[hover=true]:bg-surface-warning-subtle'
132
129
  })]
133
130
  }, {
134
131
  variant: 'ghost',
135
132
  color: 'success',
136
- className: ['bg-transparent', Platform.select({
137
- default: 'data-[active=true]:bg-green-100',
138
- web: 'data-[hover=true]:bg-green-50 data-[active=true]:data-[hover=true]:bg-green-100'
133
+ className: [Platform.select({
134
+ default: 'data-[active=true]:bg-surface-success-subtle',
135
+ web: 'data-[hover=true]:bg-surface-success-tint data-[active=true]:data-[hover=true]:bg-surface-success-subtle'
139
136
  })]
140
137
  }, {
141
138
  variant: 'ghost',
142
- color: 'danger',
143
- className: ['bg-transparent', Platform.select({
144
- default: 'data-[active=true]:bg-red-100',
145
- web: 'data-[hover=true]:bg-red-50 data-[active=true]:data-[hover=true]:bg-red-100'
139
+ color: 'info',
140
+ className: [Platform.select({
141
+ default: 'data-[active=true]:bg-surface-info-subtle',
142
+ web: 'data-[hover=true]:bg-surface-info-tint data-[active=true]:data-[hover=true]:bg-surface-info-subtle'
146
143
  })]
147
144
  }],
148
145
  defaultVariants: {
149
- variant: 'solid',
150
- color: 'primary',
151
- size: 'md',
146
+ variant: 'strong',
147
+ color: 'action',
148
+ size: 'default',
152
149
  fullWidth: false
153
150
  }
154
151
  });
155
152
  export const buttonTextVariants = cva(['font-medium', 'text-center'], {
156
153
  variants: {
157
154
  variant: {
158
- solid: 'text-white',
159
- subtle: [],
155
+ strong: [],
160
156
  outline: [],
161
157
  ghost: []
162
158
  },
163
159
  color: {
164
- primary: [],
165
- secondary: [],
160
+ action: [],
161
+ danger: [],
162
+ warning: [],
166
163
  success: [],
167
- danger: []
164
+ info: []
168
165
  },
169
166
  size: {
170
- sm: 'text-sm',
171
- md: 'text-base',
172
- lg: 'text-lg'
167
+ default: 'text-base',
168
+ small: 'text-sm'
173
169
  }
174
170
  },
175
- compoundVariants: [{
176
- variant: 'subtle',
177
- color: 'primary',
178
- className: 'text-blue-950'
171
+ compoundVariants: [
172
+ // ── strong × color (filled foreground text) ──────────────────────
173
+ {
174
+ variant: 'strong',
175
+ color: 'action',
176
+ className: 'text-content-action-on-strong'
177
+ }, {
178
+ variant: 'strong',
179
+ color: 'danger',
180
+ className: 'text-content-danger-on-strong'
179
181
  }, {
180
- variant: 'subtle',
181
- color: 'secondary',
182
- className: 'text-amber-950'
182
+ variant: 'strong',
183
+ color: 'warning',
184
+ className: 'text-content-warning-on-strong'
183
185
  }, {
184
- variant: 'subtle',
186
+ variant: 'strong',
185
187
  color: 'success',
186
- className: 'text-green-950'
188
+ className: 'text-content-success-on-strong'
187
189
  }, {
188
- variant: 'subtle',
189
- color: 'danger',
190
- className: 'text-red-950'
190
+ variant: 'strong',
191
+ color: 'info',
192
+ className: 'text-content-info-on-strong'
193
+ },
194
+ // ── outline/ghost × color (transparent foreground text) ──────────
195
+ {
196
+ variant: ['outline', 'ghost'],
197
+ color: 'action',
198
+ className: 'text-content-action'
191
199
  }, {
192
200
  variant: ['outline', 'ghost'],
193
- color: 'primary',
194
- className: ['text-blue-500', Platform.select({
195
- default: 'data-[active=true]:text-blue-700',
196
- web: 'data-[hover=true]:text-blue-600 data-[active=true]:data-[hover=true]:text-blue-700'
197
- })]
201
+ color: 'danger',
202
+ className: 'text-content-danger'
198
203
  }, {
199
204
  variant: ['outline', 'ghost'],
200
- color: 'secondary',
201
- className: ['text-amber-600', Platform.select({
202
- default: 'data-[active=true]:text-amber-800',
203
- web: 'data-[hover=true]:text-amber-700 data-[active=true]:data-[hover=true]:text-amber-800'
204
- })]
205
+ color: 'warning',
206
+ className: 'text-content-warning'
205
207
  }, {
206
208
  variant: ['outline', 'ghost'],
207
209
  color: 'success',
208
- className: ['text-green-600', Platform.select({
209
- default: 'data-[active=true]:text-green-800',
210
- web: 'data-[hover=true]:text-green-700 data-[active=true]:data-[hover=true]:text-green-800'
211
- })]
210
+ className: 'text-content-success'
212
211
  }, {
213
212
  variant: ['outline', 'ghost'],
214
- color: 'danger',
215
- className: ['text-red-500', Platform.select({
216
- default: 'data-[active=true]:text-red-700',
217
- web: 'data-[hover=true]:text-red-600 data-[active=true]:data-[hover=true]:text-red-700'
218
- })]
213
+ color: 'info',
214
+ className: 'text-content-info'
219
215
  }],
220
216
  defaultVariants: {
221
- variant: 'solid',
222
- color: 'primary',
223
- size: 'md'
217
+ variant: 'strong',
218
+ color: 'action',
219
+ size: 'default'
224
220
  }
225
221
  });
226
222
  export const buttonSpinnerVariants = cva([], {
227
223
  variants: {
228
224
  variant: {
229
- solid: 'accent-white',
230
- subtle: [],
225
+ strong: [],
231
226
  outline: [],
232
227
  ghost: []
233
228
  },
234
229
  color: {
235
- primary: [],
236
- secondary: [],
230
+ action: [],
231
+ danger: [],
232
+ warning: [],
237
233
  success: [],
238
- danger: []
234
+ info: []
239
235
  }
240
236
  },
241
- compoundVariants: [{
242
- variant: 'subtle',
243
- color: 'primary',
244
- className: 'accent-blue-950'
237
+ compoundVariants: [
238
+ // ── strong × color ───────────────────────────────────────────────
239
+ {
240
+ variant: 'strong',
241
+ color: 'action',
242
+ className: 'accent-[var(--color-content-action-on-strong)]'
243
+ }, {
244
+ variant: 'strong',
245
+ color: 'danger',
246
+ className: 'accent-[var(--color-content-danger-on-strong)]'
245
247
  }, {
246
- variant: 'subtle',
247
- color: 'secondary',
248
- className: 'accent-amber-950'
248
+ variant: 'strong',
249
+ color: 'warning',
250
+ className: 'accent-[var(--color-content-warning-on-strong)]'
249
251
  }, {
250
- variant: 'subtle',
252
+ variant: 'strong',
251
253
  color: 'success',
252
- className: 'accent-green-950'
254
+ className: 'accent-[var(--color-content-success-on-strong)]'
253
255
  }, {
254
- variant: 'subtle',
255
- color: 'danger',
256
- className: 'accent-red-950'
256
+ variant: 'strong',
257
+ color: 'info',
258
+ className: 'accent-[var(--color-content-info-on-strong)]'
259
+ },
260
+ // ── outline/ghost × color ────────────────────────────────────────
261
+ {
262
+ variant: ['outline', 'ghost'],
263
+ color: 'action',
264
+ className: 'accent-[var(--color-content-action)]'
257
265
  }, {
258
266
  variant: ['outline', 'ghost'],
259
- color: 'primary',
260
- className: 'accent-blue-500'
267
+ color: 'danger',
268
+ className: 'accent-[var(--color-content-danger)]'
261
269
  }, {
262
270
  variant: ['outline', 'ghost'],
263
- color: 'secondary',
264
- className: 'accent-amber-600'
271
+ color: 'warning',
272
+ className: 'accent-[var(--color-content-warning)]'
265
273
  }, {
266
274
  variant: ['outline', 'ghost'],
267
275
  color: 'success',
268
- className: 'accent-green-600'
276
+ className: 'accent-[var(--color-content-success)]'
269
277
  }, {
270
278
  variant: ['outline', 'ghost'],
271
- color: 'danger',
272
- className: 'accent-red-500'
279
+ color: 'info',
280
+ className: 'accent-[var(--color-content-info)]'
273
281
  }],
274
282
  defaultVariants: {
275
- variant: 'solid',
276
- color: 'primary'
283
+ variant: 'strong',
284
+ color: 'action'
277
285
  }
278
286
  });
279
287
  export const buttonGroupVariants = cva([], {
@@ -306,4 +314,15 @@ export const buttonGroupVariants = cva([], {
306
314
  isAttached: false
307
315
  }
308
316
  });
317
+ export const buttonIconVariants = cva([], {
318
+ variants: {
319
+ size: {
320
+ default: 'size-5',
321
+ small: 'size-4'
322
+ }
323
+ },
324
+ defaultVariants: {
325
+ size: 'default'
326
+ }
327
+ });
309
328
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Platform","cva","buttonRootVariants","variants","variant","solid","subtle","outline","ghost","color","primary","secondary","success","danger","size","sm","md","lg","fullWidth","true","false","compoundVariants","className","select","default","web","defaultVariants","buttonTextVariants","buttonSpinnerVariants","buttonGroupVariants","flexDirection","row","column","isAttached"],"sourceRoot":"../../../../src","sources":["components/Button/styles.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AACvC,SAASC,GAAG,QAA2B,0BAA0B;;AAEjE;AACA;;AAEA,OAAO,MAAMC,kBAAkB,GAAGD,GAAG,CACnC,CACE,sCAAsC,EACtC,YAAY,EACZ,gCAAgC;AAAE;AAClC,kHAAkH,EAClH,uJAAuJ,CACxJ,EACD;EACEE,QAAQ,EAAE;IACRC,OAAO,EAAE;MACPC,KAAK,EAAE,EAAE;MACTC,MAAM,EAAE,EAAE;MACVC,OAAO,EAAE,CACP,qCAAqC,EACrC,8BAA8B,EAC9B,sCAAsC,CACvC;MACDC,KAAK,EAAE,CACL,gBAAgB,EAChB,8BAA8B,EAC9B,sCAAsC;IAE1C,CAAC;IACDC,KAAK,EAAE;MACLC,OAAO,EAAE,EAAE;MACXC,SAAS,EAAE,EAAE;MACbC,OAAO,EAAE,EAAE;MACXC,MAAM,EAAE;IACV,CAAC;IACDC,IAAI,EAAE;MACJC,EAAE,EAAE,kBAAkB;MACtBC,EAAE,EAAE,iBAAiB;MACrBC,EAAE,EAAE;IACN,CAAC;IACDC,SAAS,EAAE;MACTC,IAAI,EAAE,QAAQ;MACdC,KAAK,EAAE;IACT;EACF,CAAC;EACDC,gBAAgB,EAAE,CAChB;IACEjB,OAAO,EAAE,OAAO;IAChBK,KAAK,EAAE,SAAS;IAChBa,SAAS,EAAE,CACT,aAAa,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BK,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAEF,OAAO,MAAMoB,mBAAmB,GAAG5B,GAAG,CAAC,EAAE,EAAE;EACzCE,QAAQ,EAAE;IACR2B,aAAa,EAAE;MACbC,GAAG,EAAE/B,QAAQ,CAACuB,MAAM,CAAC;QAAEE,GAAG,EAAE,UAAU;QAAED,OAAO,EAAE;MAAG,CAAC,CAAC;MACtDQ,MAAM,EAAEhC,QAAQ,CAACuB,MAAM,CAAC;QAAEE,GAAG,EAAE,UAAU;QAAED,OAAO,EAAE;MAAG,CAAC,CAAC;MACzD,aAAa,EAAExB,QAAQ,CAACuB,MAAM,CAAC;QAAEE,GAAG,EAAE,kBAAkB;QAAED,OAAO,EAAE;MAAG,CAAC,CAAC;MACxE,gBAAgB,EAAExB,QAAQ,CAACuB,MAAM,CAAC;QAAEE,GAAG,EAAE,kBAAkB;QAAED,OAAO,EAAE;MAAG,CAAC;IAC5E,CAAC;IACDS,UAAU,EAAE;MACVd,IAAI,EAAE,OAAO;MACbC,KAAK,EAAE;IACT;EACF,CAAC;EACDM,eAAe,EAAE;IACfI,aAAa,EAAE,KAAK;IACpBG,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["Platform","cva","DISABLED_CURSOR","TRANSITION_COLORS","buttonRootVariants","variants","variant","strong","outline","ghost","color","action","danger","warning","success","info","size","default","small","fullWidth","true","false","compoundVariants","className","select","web","defaultVariants","buttonTextVariants","buttonSpinnerVariants","buttonGroupVariants","flexDirection","row","column","isAttached","buttonIconVariants"],"sourceRoot":"../../../../src","sources":["components/Button/styles.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AACvC,SAASC,GAAG,QAA2B,0BAA0B;AACjE,SAASC,eAAe,EAAEC,iBAAiB,QAAQ,yBAAyB;;AAE5E;;AAEA,OAAO,MAAMC,kBAAkB,GAAGH,GAAG,CACnC,CACE,sCAAsC,EACtC,uCAAuC,EACvC,wEAAwE,EACx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AMC,kBAAkB,GAAGjC,GAAG,CAAC,EAAE,EAAE;EACxCI,QAAQ,EAAE;IACRW,IAAI,EAAE;MACJC,OAAO,EAAE,QAAQ;MACjBC,KAAK,EAAE;IACT;EACF,CAAC;EACDQ,eAAe,EAAE;IACfV,IAAI,EAAE;EACR;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+
3
+ import { forwardRef } from 'react';
4
+ import { View } from 'react-native';
5
+ import { cn } from '@cdx-ui/utils';
6
+ import { cardContentVariants, cardFooterVariants, cardHeaderVariants, cardRootVariants } from './styles';
7
+
8
+ // =============================================================================
9
+ // STYLED ROOT COMPONENT
10
+ // =============================================================================
11
+ import { jsx as _jsx } from "react/jsx-runtime";
12
+ const CardRoot = /*#__PURE__*/forwardRef(({
13
+ className,
14
+ children,
15
+ style,
16
+ ...props
17
+ }, ref) => {
18
+ const computedClassName = cn(cardRootVariants(), className);
19
+ return /*#__PURE__*/_jsx(View, {
20
+ ref: ref,
21
+ className: computedClassName,
22
+ style: style,
23
+ ...props,
24
+ children: children
25
+ });
26
+ });
27
+ CardRoot.displayName = 'Card';
28
+
29
+ // =============================================================================
30
+ // STYLED HEADER COMPONENT
31
+ // =============================================================================
32
+
33
+ const CardHeader = /*#__PURE__*/forwardRef(({
34
+ className,
35
+ children,
36
+ style,
37
+ ...props
38
+ }, ref) => {
39
+ const computedClassName = cn(cardHeaderVariants(), className);
40
+ return /*#__PURE__*/_jsx(View, {
41
+ ref: ref,
42
+ className: computedClassName,
43
+ style: style,
44
+ ...props,
45
+ children: children
46
+ });
47
+ });
48
+ CardHeader.displayName = 'Card.Header';
49
+
50
+ // =============================================================================
51
+ // STYLED CONTENT COMPONENT
52
+ // =============================================================================
53
+
54
+ const CardContent = /*#__PURE__*/forwardRef(({
55
+ className,
56
+ children,
57
+ style,
58
+ ...props
59
+ }, ref) => {
60
+ const computedClassName = cn(cardContentVariants(), className);
61
+ return /*#__PURE__*/_jsx(View, {
62
+ ref: ref,
63
+ className: computedClassName,
64
+ style: style,
65
+ ...props,
66
+ children: children
67
+ });
68
+ });
69
+ CardContent.displayName = 'Card.Content';
70
+
71
+ // =============================================================================
72
+ // STYLED FOOTER COMPONENT
73
+ // =============================================================================
74
+
75
+ const CardFooter = /*#__PURE__*/forwardRef(({
76
+ className,
77
+ children,
78
+ style,
79
+ ...props
80
+ }, ref) => {
81
+ const computedClassName = cn(cardFooterVariants(), className);
82
+ return /*#__PURE__*/_jsx(View, {
83
+ ref: ref,
84
+ className: computedClassName,
85
+ style: style,
86
+ ...props,
87
+ children: children
88
+ });
89
+ });
90
+ CardFooter.displayName = 'Card.Footer';
91
+
92
+ // =============================================================================
93
+ // COMPOUND COMPONENT
94
+ // =============================================================================
95
+
96
+ export const Card = CardRoot;
97
+ Card.Header = CardHeader;
98
+ Card.Content = CardContent;
99
+ Card.Footer = CardFooter;
100
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","View","cn","cardContentVariants","cardFooterVariants","cardHeaderVariants","cardRootVariants","jsx","_jsx","CardRoot","className","children","style","props","ref","computedClassName","displayName","CardHeader","CardContent","CardFooter","Card","Header","Content","Footer"],"sourceRoot":"../../../../src","sources":["components/Card/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAwB,OAAO;AAClD,SAASC,IAAI,QAAwB,cAAc;AACnD,SAASC,EAAE,QAAQ,eAAe;AAClC,SACEC,mBAAmB,EACnBC,kBAAkB,EAClBC,kBAAkB,EAClBC,gBAAgB,QACX,UAAU;;AAEjB;AACA;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAOA,MAAMC,QAAQ,gBAAGT,UAAU,CAAkB,CAAC;EAAEU,SAAS;EAAEC,QAAQ;EAAEC,KAAK;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EAC9F,MAAMC,iBAAiB,GAAGb,EAAE,CAACI,gBAAgB,CAAC,CAAC,EAAEI,SAAS,CAAC;E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EAAEC,KAAK;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EACjD,MAAMC,iBAAiB,GAAGb,EAAE,CAACE,kBAAkB,CAAC,CAAC,EAAEM,SAAS,CAAC;EAE7D,oBACEF,IAAA,CAACP,IAAI;IAACa,GAAG,EAAEA,GAAI;IAACJ,SAAS,EAAEK,iBAAkB;IAACH,KAAK,EAAEA,KAAM;IAAA,GAAKC,KAAK;IAAAF,QAAA,EAClEA;EAAQ,CACL,CAAC;AAEX,CACF,CAAC;AAEDQ,UAAU,CAACH,WAAW,GAAG,aAAa;;AAEtC;AACA;AACA;;AAQA,OAAO,MAAMI,IAAI,GAAGX,QAAiC;AAErDW,IAAI,CAACC,MAAM,GAAGJ,UAAU;AACxBG,IAAI,CAACE,OAAO,GAAGJ,WAAW;AAC1BE,IAAI,CAACG,MAAM,GAAGJ,UAAU","ignoreList":[]}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ import { cva } from 'class-variance-authority';
4
+ import { COLOR_BG_PRIMARY, COLOR_BORDER_DEFAULT, COLOR_TEXT_PRIMARY, RADIUS_SM, SHADOW_SM } from '../../styles/primitives';
5
+
6
+ // ── Root ────────────────────────────────────────────────────
7
+
8
+ export const cardRootVariants = cva([COLOR_BG_PRIMARY, `border ${COLOR_BORDER_DEFAULT}`, RADIUS_SM, SHADOW_SM, 'overflow-hidden']);
9
+
10
+ // ── Header ──────────────────────────────────────────────────
11
+
12
+ export const cardHeaderVariants = cva(['flex-row items-center justify-between p-4 border-b border-t-8', COLOR_BORDER_DEFAULT]);
13
+
14
+ // ── Title ───────────────────────────────────────────────────
15
+
16
+ export const cardTitleVariants = cva(['flex-1']);
17
+
18
+ // ── Content ─────────────────────────────────────────────────
19
+
20
+ export const cardContentVariants = cva([COLOR_TEXT_PRIMARY, 'p-4']);
21
+
22
+ // ── Footer ──────────────────────────────────────────────────
23
+
24
+ export const cardFooterVariants = cva(['p-4 border-t', COLOR_BORDER_DEFAULT, 'flex-row items-center gap-2']);
25
+ //# sourceMappingURL=styles.js.map