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

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 (425) hide show
  1. package/README.md +59 -2
  2. package/lib/commonjs/components/AlertDialog/index.js +117 -0
  3. package/lib/commonjs/components/AlertDialog/index.js.map +1 -0
  4. package/lib/commonjs/components/Avatar/index.js +156 -0
  5. package/lib/commonjs/components/Avatar/index.js.map +1 -0
  6. package/lib/commonjs/components/Avatar/styles.js +80 -0
  7. package/lib/commonjs/components/Avatar/styles.js.map +1 -0
  8. package/lib/commonjs/components/BottomSheet/index.js +248 -0
  9. package/lib/commonjs/components/BottomSheet/index.js.map +1 -0
  10. package/lib/commonjs/components/BottomSheet/styles.js +61 -0
  11. package/lib/commonjs/components/BottomSheet/styles.js.map +1 -0
  12. package/lib/commonjs/components/Box/Box.js +1 -0
  13. package/lib/commonjs/components/Box/Box.js.map +1 -1
  14. package/lib/commonjs/components/Button/index.js +20 -9
  15. package/lib/commonjs/components/Button/index.js.map +1 -1
  16. package/lib/commonjs/components/Button/styles.js +182 -163
  17. package/lib/commonjs/components/Button/styles.js.map +1 -1
  18. package/lib/commonjs/components/Card/index.js +104 -0
  19. package/lib/commonjs/components/Card/index.js.map +1 -0
  20. package/lib/commonjs/components/Card/styles.js +27 -0
  21. package/lib/commonjs/components/Card/styles.js.map +1 -0
  22. package/lib/commonjs/components/Checkbox/index.js +18 -11
  23. package/lib/commonjs/components/Checkbox/index.js.map +1 -1
  24. package/lib/commonjs/components/Checkbox/styles.js +17 -16
  25. package/lib/commonjs/components/Checkbox/styles.js.map +1 -1
  26. package/lib/commonjs/components/Chip/index.js +103 -0
  27. package/lib/commonjs/components/Chip/index.js.map +1 -0
  28. package/lib/commonjs/components/Chip/styles.js +52 -0
  29. package/lib/commonjs/components/Chip/styles.js.map +1 -0
  30. package/lib/commonjs/components/Dialog/index.js +275 -0
  31. package/lib/commonjs/components/Dialog/index.js.map +1 -0
  32. package/lib/commonjs/components/Dialog/styles.js +63 -0
  33. package/lib/commonjs/components/Dialog/styles.js.map +1 -0
  34. package/lib/commonjs/components/Field/FieldLabel.js +33 -0
  35. package/lib/commonjs/components/Field/FieldLabel.js.map +1 -0
  36. package/lib/commonjs/components/Field/FieldLabel.web.js +22 -0
  37. package/lib/commonjs/components/Field/FieldLabel.web.js.map +1 -0
  38. package/lib/commonjs/components/Field/index.js +158 -0
  39. package/lib/commonjs/components/Field/index.js.map +1 -0
  40. package/lib/commonjs/components/Field/styles.js +16 -0
  41. package/lib/commonjs/components/Field/styles.js.map +1 -0
  42. package/lib/commonjs/components/Form/FormRoot.js +25 -0
  43. package/lib/commonjs/components/Form/FormRoot.js.map +1 -0
  44. package/lib/commonjs/components/Form/FormRoot.web.js +17 -0
  45. package/lib/commonjs/components/Form/FormRoot.web.js.map +1 -0
  46. package/lib/commonjs/components/Form/index.js +48 -0
  47. package/lib/commonjs/components/Form/index.js.map +1 -0
  48. package/lib/commonjs/components/Form/styles.js +9 -0
  49. package/lib/commonjs/components/Form/styles.js.map +1 -0
  50. package/lib/commonjs/components/Heading/index.js +35 -0
  51. package/lib/commonjs/components/Heading/index.js.map +1 -0
  52. package/lib/commonjs/components/Heading/styles.js +23 -0
  53. package/lib/commonjs/components/Heading/styles.js.map +1 -0
  54. package/lib/commonjs/components/Icon/index.js +61 -0
  55. package/lib/commonjs/components/Icon/index.js.map +1 -0
  56. package/lib/commonjs/components/IconButton/index.js +75 -0
  57. package/lib/commonjs/components/IconButton/index.js.map +1 -0
  58. package/lib/commonjs/components/IconButton/styles.js +44 -0
  59. package/lib/commonjs/components/IconButton/styles.js.map +1 -0
  60. package/lib/commonjs/components/Image/Image.js +69 -0
  61. package/lib/commonjs/components/Image/Image.js.map +1 -0
  62. package/lib/commonjs/components/Image/index.js +13 -0
  63. package/lib/commonjs/components/Image/index.js.map +1 -0
  64. package/lib/commonjs/components/Input/BaseInput.android.js +20 -0
  65. package/lib/commonjs/components/Input/BaseInput.android.js.map +1 -0
  66. package/lib/commonjs/components/Input/index.js +10 -16
  67. package/lib/commonjs/components/Input/index.js.map +1 -1
  68. package/lib/commonjs/components/Input/styles.js +17 -30
  69. package/lib/commonjs/components/Input/styles.js.map +1 -1
  70. package/lib/commonjs/components/Link/index.js +94 -0
  71. package/lib/commonjs/components/Link/index.js.map +1 -0
  72. package/lib/commonjs/components/Link/styles.js +14 -0
  73. package/lib/commonjs/components/Link/styles.js.map +1 -0
  74. package/lib/commonjs/components/ListItem/index.js +283 -0
  75. package/lib/commonjs/components/ListItem/index.js.map +1 -0
  76. package/lib/commonjs/components/ListItem/styles.js +130 -0
  77. package/lib/commonjs/components/ListItem/styles.js.map +1 -0
  78. package/lib/commonjs/components/OtpInput/index.js +83 -0
  79. package/lib/commonjs/components/OtpInput/index.js.map +1 -0
  80. package/lib/commonjs/components/OtpInput/styles.js +48 -0
  81. package/lib/commonjs/components/OtpInput/styles.js.map +1 -0
  82. package/lib/commonjs/components/ProgressBar/index.js +45 -0
  83. package/lib/commonjs/components/ProgressBar/index.js.map +1 -0
  84. package/lib/commonjs/components/ProgressBar/styles.js +10 -0
  85. package/lib/commonjs/components/ProgressBar/styles.js.map +1 -0
  86. package/lib/commonjs/components/ProgressSegmented/index.js +62 -0
  87. package/lib/commonjs/components/ProgressSegmented/index.js.map +1 -0
  88. package/lib/commonjs/components/ProgressSegmented/styles.js +21 -0
  89. package/lib/commonjs/components/ProgressSegmented/styles.js.map +1 -0
  90. package/lib/commonjs/components/Select/SelectTriggerHost.js +10 -0
  91. package/lib/commonjs/components/Select/SelectTriggerHost.js.map +1 -0
  92. package/lib/commonjs/components/Select/SelectTriggerHost.web.js +98 -0
  93. package/lib/commonjs/components/Select/SelectTriggerHost.web.js.map +1 -0
  94. package/lib/commonjs/components/Select/index.js +13 -13
  95. package/lib/commonjs/components/Select/index.js.map +1 -1
  96. package/lib/commonjs/components/Select/styles.js +29 -53
  97. package/lib/commonjs/components/Select/styles.js.map +1 -1
  98. package/lib/commonjs/components/Stack/HStack.js +8 -21
  99. package/lib/commonjs/components/Stack/HStack.js.map +1 -1
  100. package/lib/commonjs/components/Stack/VStack.js +8 -21
  101. package/lib/commonjs/components/Stack/VStack.js.map +1 -1
  102. package/lib/commonjs/components/Stack/styles.js +44 -0
  103. package/lib/commonjs/components/Stack/styles.js.map +1 -0
  104. package/lib/commonjs/components/Text/index.js +18 -9
  105. package/lib/commonjs/components/Text/index.js.map +1 -1
  106. package/lib/commonjs/components/Text/styles.js +23 -0
  107. package/lib/commonjs/components/Text/styles.js.map +1 -0
  108. package/lib/commonjs/components/VirtualizedList/index.js +19 -0
  109. package/lib/commonjs/components/VirtualizedList/index.js.map +1 -0
  110. package/lib/commonjs/components/index.js +216 -0
  111. package/lib/commonjs/components/index.js.map +1 -1
  112. package/lib/commonjs/figma/Button.figma.js +69 -0
  113. package/lib/commonjs/figma/Button.figma.js.map +1 -0
  114. package/lib/commonjs/index.js +40 -0
  115. package/lib/commonjs/index.js.map +1 -1
  116. package/lib/commonjs/styles/index.js +17 -0
  117. package/lib/commonjs/styles/index.js.map +1 -0
  118. package/lib/commonjs/styles/primitives.js +122 -0
  119. package/lib/commonjs/styles/primitives.js.map +1 -0
  120. package/lib/module/components/AlertDialog/index.js +112 -0
  121. package/lib/module/components/AlertDialog/index.js.map +1 -0
  122. package/lib/module/components/Avatar/index.js +152 -0
  123. package/lib/module/components/Avatar/index.js.map +1 -0
  124. package/lib/module/components/Avatar/styles.js +77 -0
  125. package/lib/module/components/Avatar/styles.js.map +1 -0
  126. package/lib/module/components/BottomSheet/index.js +242 -0
  127. package/lib/module/components/BottomSheet/index.js.map +1 -0
  128. package/lib/module/components/BottomSheet/styles.js +58 -0
  129. package/lib/module/components/BottomSheet/styles.js.map +1 -0
  130. package/lib/module/components/Box/Box.js +1 -0
  131. package/lib/module/components/Box/Box.js.map +1 -1
  132. package/lib/module/components/Button/index.js +21 -10
  133. package/lib/module/components/Button/index.js.map +1 -1
  134. package/lib/module/components/Button/styles.js +181 -162
  135. package/lib/module/components/Button/styles.js.map +1 -1
  136. package/lib/module/components/Card/index.js +100 -0
  137. package/lib/module/components/Card/index.js.map +1 -0
  138. package/lib/module/components/Card/styles.js +24 -0
  139. package/lib/module/components/Card/styles.js.map +1 -0
  140. package/lib/module/components/Checkbox/index.js +19 -12
  141. package/lib/module/components/Checkbox/index.js.map +1 -1
  142. package/lib/module/components/Checkbox/styles.js +17 -16
  143. package/lib/module/components/Checkbox/styles.js.map +1 -1
  144. package/lib/module/components/Chip/index.js +99 -0
  145. package/lib/module/components/Chip/index.js.map +1 -0
  146. package/lib/module/components/Chip/styles.js +48 -0
  147. package/lib/module/components/Chip/styles.js.map +1 -0
  148. package/lib/module/components/Dialog/index.js +267 -0
  149. package/lib/module/components/Dialog/index.js.map +1 -0
  150. package/lib/module/components/Dialog/styles.js +60 -0
  151. package/lib/module/components/Dialog/styles.js.map +1 -0
  152. package/lib/module/components/Field/FieldLabel.js +29 -0
  153. package/lib/module/components/Field/FieldLabel.js.map +1 -0
  154. package/lib/module/components/Field/FieldLabel.web.js +17 -0
  155. package/lib/module/components/Field/FieldLabel.web.js.map +1 -0
  156. package/lib/module/components/Field/index.js +155 -0
  157. package/lib/module/components/Field/index.js.map +1 -0
  158. package/lib/module/components/Field/styles.js +12 -0
  159. package/lib/module/components/Field/styles.js.map +1 -0
  160. package/lib/module/components/Form/FormRoot.js +21 -0
  161. package/lib/module/components/Form/FormRoot.js.map +1 -0
  162. package/lib/module/components/Form/FormRoot.web.js +12 -0
  163. package/lib/module/components/Form/FormRoot.web.js.map +1 -0
  164. package/lib/module/components/Form/index.js +44 -0
  165. package/lib/module/components/Form/index.js.map +1 -0
  166. package/lib/module/components/Form/styles.js +5 -0
  167. package/lib/module/components/Form/styles.js.map +1 -0
  168. package/lib/module/components/Heading/index.js +31 -0
  169. package/lib/module/components/Heading/index.js.map +1 -0
  170. package/lib/module/components/Heading/styles.js +19 -0
  171. package/lib/module/components/Heading/styles.js.map +1 -0
  172. package/lib/module/components/Icon/index.js +57 -0
  173. package/lib/module/components/Icon/index.js.map +1 -0
  174. package/lib/module/components/IconButton/index.js +71 -0
  175. package/lib/module/components/IconButton/index.js.map +1 -0
  176. package/lib/module/components/IconButton/styles.js +40 -0
  177. package/lib/module/components/IconButton/styles.js.map +1 -0
  178. package/lib/module/components/Image/Image.js +67 -0
  179. package/lib/module/components/Image/Image.js.map +1 -0
  180. package/lib/module/components/Image/index.js +4 -0
  181. package/lib/module/components/Image/index.js.map +1 -0
  182. package/lib/module/components/Input/BaseInput.android.js +16 -0
  183. package/lib/module/components/Input/BaseInput.android.js.map +1 -0
  184. package/lib/module/components/Input/index.js +10 -16
  185. package/lib/module/components/Input/index.js.map +1 -1
  186. package/lib/module/components/Input/styles.js +17 -30
  187. package/lib/module/components/Input/styles.js.map +1 -1
  188. package/lib/module/components/Link/index.js +85 -0
  189. package/lib/module/components/Link/index.js.map +1 -0
  190. package/lib/module/components/Link/styles.js +11 -0
  191. package/lib/module/components/Link/styles.js.map +1 -0
  192. package/lib/module/components/ListItem/index.js +226 -0
  193. package/lib/module/components/ListItem/index.js.map +1 -0
  194. package/lib/module/components/ListItem/styles.js +127 -0
  195. package/lib/module/components/ListItem/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/Text/index.js +19 -1
  223. package/lib/module/components/Text/index.js.map +1 -1
  224. package/lib/module/components/Text/styles.js +19 -0
  225. package/lib/module/components/Text/styles.js.map +1 -0
  226. package/lib/module/components/VirtualizedList/index.js +15 -0
  227. package/lib/module/components/VirtualizedList/index.js.map +1 -0
  228. package/lib/module/components/index.js +18 -0
  229. package/lib/module/components/index.js.map +1 -1
  230. package/lib/module/figma/Button.figma.js +63 -0
  231. package/lib/module/figma/Button.figma.js.map +1 -0
  232. package/lib/module/index.js +3 -0
  233. package/lib/module/index.js.map +1 -1
  234. package/lib/module/styles/index.js +4 -0
  235. package/lib/module/styles/index.js.map +1 -0
  236. package/lib/module/styles/primitives.js +118 -0
  237. package/lib/module/styles/primitives.js.map +1 -0
  238. package/lib/typescript/components/AlertDialog/index.d.ts +30 -0
  239. package/lib/typescript/components/AlertDialog/index.d.ts.map +1 -0
  240. package/lib/typescript/components/Avatar/index.d.ts +40 -0
  241. package/lib/typescript/components/Avatar/index.d.ts.map +1 -0
  242. package/lib/typescript/components/Avatar/styles.d.ts +16 -0
  243. package/lib/typescript/components/Avatar/styles.d.ts.map +1 -0
  244. package/lib/typescript/components/BottomSheet/index.d.ts +61 -0
  245. package/lib/typescript/components/BottomSheet/index.d.ts.map +1 -0
  246. package/lib/typescript/components/BottomSheet/styles.d.ts +16 -0
  247. package/lib/typescript/components/BottomSheet/styles.d.ts.map +1 -0
  248. package/lib/typescript/components/Box/Box.d.ts +1 -0
  249. package/lib/typescript/components/Box/Box.d.ts.map +1 -1
  250. package/lib/typescript/components/Button/index.d.ts +6 -3
  251. package/lib/typescript/components/Button/index.d.ts.map +1 -1
  252. package/lib/typescript/components/Button/styles.d.ts +11 -8
  253. package/lib/typescript/components/Button/styles.d.ts.map +1 -1
  254. package/lib/typescript/components/Card/index.d.ts +30 -0
  255. package/lib/typescript/components/Card/index.d.ts.map +1 -0
  256. package/lib/typescript/components/Card/styles.d.ts +6 -0
  257. package/lib/typescript/components/Card/styles.d.ts.map +1 -0
  258. package/lib/typescript/components/Checkbox/index.d.ts +7 -5
  259. package/lib/typescript/components/Checkbox/index.d.ts.map +1 -1
  260. package/lib/typescript/components/Checkbox/styles.d.ts +4 -4
  261. package/lib/typescript/components/Checkbox/styles.d.ts.map +1 -1
  262. package/lib/typescript/components/Chip/index.d.ts +27 -0
  263. package/lib/typescript/components/Chip/index.d.ts.map +1 -0
  264. package/lib/typescript/components/Chip/styles.d.ts +12 -0
  265. package/lib/typescript/components/Chip/styles.d.ts.map +1 -0
  266. package/lib/typescript/components/Dialog/index.d.ts +61 -0
  267. package/lib/typescript/components/Dialog/index.d.ts.map +1 -0
  268. package/lib/typescript/components/Dialog/styles.d.ts +14 -0
  269. package/lib/typescript/components/Dialog/styles.d.ts.map +1 -0
  270. package/lib/typescript/components/Field/FieldLabel.d.ts +18 -0
  271. package/lib/typescript/components/Field/FieldLabel.d.ts.map +1 -0
  272. package/lib/typescript/components/Field/FieldLabel.web.d.ts +16 -0
  273. package/lib/typescript/components/Field/FieldLabel.web.d.ts.map +1 -0
  274. package/lib/typescript/components/Field/index.d.ts +26 -0
  275. package/lib/typescript/components/Field/index.d.ts.map +1 -0
  276. package/lib/typescript/components/Field/styles.d.ts +16 -0
  277. package/lib/typescript/components/Field/styles.d.ts.map +1 -0
  278. package/lib/typescript/components/Form/FormRoot.d.ts +14 -0
  279. package/lib/typescript/components/Form/FormRoot.d.ts.map +1 -0
  280. package/lib/typescript/components/Form/FormRoot.web.d.ts +10 -0
  281. package/lib/typescript/components/Form/FormRoot.web.d.ts.map +1 -0
  282. package/lib/typescript/components/Form/index.d.ts +7 -0
  283. package/lib/typescript/components/Form/index.d.ts.map +1 -0
  284. package/lib/typescript/components/Form/styles.d.ts +2 -0
  285. package/lib/typescript/components/Form/styles.d.ts.map +1 -0
  286. package/lib/typescript/components/Heading/index.d.ts +10 -0
  287. package/lib/typescript/components/Heading/index.d.ts.map +1 -0
  288. package/lib/typescript/components/Heading/styles.d.ts +6 -0
  289. package/lib/typescript/components/Heading/styles.d.ts.map +1 -0
  290. package/lib/typescript/components/Icon/index.d.ts +27 -0
  291. package/lib/typescript/components/Icon/index.d.ts.map +1 -0
  292. package/lib/typescript/components/IconButton/index.d.ts +15 -0
  293. package/lib/typescript/components/IconButton/index.d.ts.map +1 -0
  294. package/lib/typescript/components/IconButton/styles.d.ts +11 -0
  295. package/lib/typescript/components/IconButton/styles.d.ts.map +1 -0
  296. package/lib/typescript/components/Image/Image.d.ts +47 -0
  297. package/lib/typescript/components/Image/Image.d.ts.map +1 -0
  298. package/lib/typescript/components/Image/index.d.ts +2 -0
  299. package/lib/typescript/components/Image/index.d.ts.map +1 -0
  300. package/lib/typescript/components/Input/BaseInput.android.d.ts +3 -0
  301. package/lib/typescript/components/Input/BaseInput.android.d.ts.map +1 -0
  302. package/lib/typescript/components/Input/index.d.ts +7 -5
  303. package/lib/typescript/components/Input/index.d.ts.map +1 -1
  304. package/lib/typescript/components/Input/styles.d.ts +5 -7
  305. package/lib/typescript/components/Input/styles.d.ts.map +1 -1
  306. package/lib/typescript/components/Link/index.d.ts +26 -0
  307. package/lib/typescript/components/Link/index.d.ts.map +1 -0
  308. package/lib/typescript/components/Link/styles.d.ts +6 -0
  309. package/lib/typescript/components/Link/styles.d.ts.map +1 -0
  310. package/lib/typescript/components/ListItem/index.d.ts +49 -0
  311. package/lib/typescript/components/ListItem/index.d.ts.map +1 -0
  312. package/lib/typescript/components/ListItem/styles.d.ts +30 -0
  313. package/lib/typescript/components/ListItem/styles.d.ts.map +1 -0
  314. package/lib/typescript/components/OtpInput/index.d.ts +11 -0
  315. package/lib/typescript/components/OtpInput/index.d.ts.map +1 -0
  316. package/lib/typescript/components/OtpInput/styles.d.ts +14 -0
  317. package/lib/typescript/components/OtpInput/styles.d.ts.map +1 -0
  318. package/lib/typescript/components/ProgressBar/index.d.ts +17 -0
  319. package/lib/typescript/components/ProgressBar/index.d.ts.map +1 -0
  320. package/lib/typescript/components/ProgressBar/styles.d.ts +5 -0
  321. package/lib/typescript/components/ProgressBar/styles.d.ts.map +1 -0
  322. package/lib/typescript/components/ProgressSegmented/index.d.ts +15 -0
  323. package/lib/typescript/components/ProgressSegmented/index.d.ts.map +1 -0
  324. package/lib/typescript/components/ProgressSegmented/styles.d.ts +8 -0
  325. package/lib/typescript/components/ProgressSegmented/styles.d.ts.map +1 -0
  326. package/lib/typescript/components/Select/SelectTriggerHost.d.ts +3 -0
  327. package/lib/typescript/components/Select/SelectTriggerHost.d.ts.map +1 -0
  328. package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts +13 -0
  329. package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts.map +1 -0
  330. package/lib/typescript/components/Select/index.d.ts +7 -4
  331. package/lib/typescript/components/Select/index.d.ts.map +1 -1
  332. package/lib/typescript/components/Select/styles.d.ts +6 -8
  333. package/lib/typescript/components/Select/styles.d.ts.map +1 -1
  334. package/lib/typescript/components/Stack/HStack.d.ts +1 -12
  335. package/lib/typescript/components/Stack/HStack.d.ts.map +1 -1
  336. package/lib/typescript/components/Stack/VStack.d.ts +1 -12
  337. package/lib/typescript/components/Stack/VStack.d.ts.map +1 -1
  338. package/lib/typescript/components/Stack/styles.d.ts +23 -0
  339. package/lib/typescript/components/Stack/styles.d.ts.map +1 -0
  340. package/lib/typescript/components/Switch/index.d.ts +0 -1
  341. package/lib/typescript/components/Switch/index.d.ts.map +1 -1
  342. package/lib/typescript/components/Text/index.d.ts +9 -1
  343. package/lib/typescript/components/Text/index.d.ts.map +1 -1
  344. package/lib/typescript/components/Text/styles.d.ts +6 -0
  345. package/lib/typescript/components/Text/styles.d.ts.map +1 -0
  346. package/lib/typescript/components/VirtualizedList/index.d.ts +8 -0
  347. package/lib/typescript/components/VirtualizedList/index.d.ts.map +1 -0
  348. package/lib/typescript/components/index.d.ts +18 -0
  349. package/lib/typescript/components/index.d.ts.map +1 -1
  350. package/lib/typescript/figma/Button.figma.d.ts +8 -0
  351. package/lib/typescript/figma/Button.figma.d.ts.map +1 -0
  352. package/lib/typescript/index.d.ts +3 -0
  353. package/lib/typescript/index.d.ts.map +1 -1
  354. package/lib/typescript/styles/index.d.ts +2 -0
  355. package/lib/typescript/styles/index.d.ts.map +1 -0
  356. package/lib/typescript/styles/primitives.d.ts +85 -0
  357. package/lib/typescript/styles/primitives.d.ts.map +1 -0
  358. package/package.json +15 -6
  359. package/src/components/AlertDialog/index.tsx +124 -0
  360. package/src/components/Avatar/index.tsx +172 -0
  361. package/src/components/Avatar/styles.ts +83 -0
  362. package/src/components/BottomSheet/index.tsx +316 -0
  363. package/src/components/BottomSheet/styles.ts +79 -0
  364. package/src/components/Box/Box.tsx +1 -0
  365. package/src/components/Button/index.tsx +14 -9
  366. package/src/components/Button/styles.ts +159 -209
  367. package/src/components/Card/index.tsx +115 -0
  368. package/src/components/Card/styles.ts +34 -0
  369. package/src/components/Checkbox/index.tsx +15 -23
  370. package/src/components/Checkbox/styles.ts +33 -24
  371. package/src/components/Chip/index.tsx +91 -0
  372. package/src/components/Chip/styles.ts +52 -0
  373. package/src/components/Dialog/index.tsx +304 -0
  374. package/src/components/Dialog/styles.ts +88 -0
  375. package/src/components/Field/FieldLabel.tsx +33 -0
  376. package/src/components/Field/FieldLabel.web.tsx +25 -0
  377. package/src/components/Field/index.tsx +171 -0
  378. package/src/components/Field/styles.ts +32 -0
  379. package/src/components/Form/FormRoot.tsx +20 -0
  380. package/src/components/Form/FormRoot.web.tsx +12 -0
  381. package/src/components/Form/index.tsx +38 -0
  382. package/src/components/Form/styles.ts +3 -0
  383. package/src/components/Heading/index.tsx +36 -0
  384. package/src/components/Heading/styles.ts +25 -0
  385. package/src/components/Icon/index.tsx +54 -0
  386. package/src/components/IconButton/index.tsx +92 -0
  387. package/src/components/IconButton/styles.ts +59 -0
  388. package/src/components/Image/Image.tsx +77 -0
  389. package/src/components/Image/index.ts +1 -0
  390. package/src/components/Input/BaseInput.android.tsx +13 -0
  391. package/src/components/Input/index.tsx +9 -22
  392. package/src/components/Input/styles.ts +36 -40
  393. package/src/components/Link/index.tsx +83 -0
  394. package/src/components/Link/styles.ts +21 -0
  395. package/src/components/ListItem/index.tsx +285 -0
  396. package/src/components/ListItem/styles.ts +160 -0
  397. package/src/components/OtpInput/index.tsx +79 -0
  398. package/src/components/OtpInput/styles.ts +45 -0
  399. package/src/components/ProgressBar/index.tsx +53 -0
  400. package/src/components/ProgressBar/styles.ts +9 -0
  401. package/src/components/ProgressSegmented/index.tsx +81 -0
  402. package/src/components/ProgressSegmented/styles.ts +20 -0
  403. package/src/components/Select/SelectTriggerHost.tsx +4 -0
  404. package/src/components/Select/SelectTriggerHost.web.tsx +136 -0
  405. package/src/components/Select/index.tsx +14 -14
  406. package/src/components/Select/styles.ts +68 -75
  407. package/src/components/Stack/HStack.tsx +8 -19
  408. package/src/components/Stack/VStack.tsx +8 -23
  409. package/src/components/Stack/styles.ts +42 -0
  410. package/src/components/Switch/index.tsx +0 -2
  411. package/src/components/Text/index.tsx +16 -0
  412. package/src/components/Text/styles.ts +25 -0
  413. package/src/components/VirtualizedList/index.tsx +19 -0
  414. package/src/components/index.ts +18 -0
  415. package/src/index.ts +3 -0
  416. package/src/styles/index.ts +1 -0
  417. package/src/styles/primitives.ts +106 -0
  418. package/lib/commonjs/components/Text/Text.js +0 -30
  419. package/lib/commonjs/components/Text/Text.js.map +0 -1
  420. package/lib/module/components/Text/Text.js +0 -26
  421. package/lib/module/components/Text/Text.js.map +0 -1
  422. package/lib/typescript/components/Text/Text.d.ts +0 -11
  423. package/lib/typescript/components/Text/Text.d.ts.map +0 -1
  424. package/src/components/Text/Text.tsx +0 -58
  425. package/src/components/Text/index.ts +0 -1
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ import { cva } from 'class-variance-authority';
4
+ import { COLOR_BG_PRIMARY, COLOR_BORDER_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":[]}
@@ -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,9 @@ 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',
28
29
  fullWidth = false,
29
30
  className,
30
31
  children,
@@ -82,6 +83,9 @@ const ButtonLabel = /*#__PURE__*/forwardRef(({
82
83
  });
83
84
  });
84
85
  ButtonLabel.displayName = 'Button.Label';
86
+
87
+ // TODO: Use ButtonGroupVariantProps
88
+
85
89
  const ButtonGroup = /*#__PURE__*/forwardRef(({
86
90
  className,
87
91
  children,
@@ -106,18 +110,25 @@ const ButtonGroup = /*#__PURE__*/forwardRef(({
106
110
  });
107
111
  });
108
112
  ButtonGroup.displayName = 'Button.Group';
109
- const ButtonIcon = /*#__PURE__*/forwardRef(({
113
+ const ButtonIcon = ({
110
114
  className,
111
115
  style,
116
+ as,
112
117
  ...props
113
- }, ref) => {
114
- return /*#__PURE__*/_jsx(ButtonPrimitive.Icon, {
115
- ref: ref,
116
- className: className,
118
+ }) => {
119
+ const {
120
+ size
121
+ } = useButtonStyleContext();
122
+ const computedClassName = cn(buttonIconVariants({
123
+ size
124
+ }), className);
125
+ return /*#__PURE__*/_jsx(Icon, {
126
+ as: as,
127
+ className: computedClassName,
117
128
  style: style,
118
129
  ...props
119
130
  });
120
- });
131
+ };
121
132
  ButtonIcon.displayName = 'Button.Icon';
122
133
  const ButtonSpinner = /*#__PURE__*/forwardRef(({
123
134
  className,
@@ -1 +1 @@
1
- {"version":3,"names":["forwardRef","ActivityIndicator","Pressable","Text","View","createButton","cn","useStyleContext","withStyleContext","buttonGroupVariants","buttonRootVariants","buttonSpinnerVariants","buttonTextVariants","jsx","_jsx","SCOPE","Root","useButtonStyleContext","ButtonPrimitive","Group","Spinner","Icon","ButtonRoot","variant","color","size","fullWidth","className","children","style","props","ref","computedClassName","context","displayName","ButtonLabel","ButtonGroup","flexDirection","isAttached","groupClassName","ButtonIcon","ButtonSpinner","colorClassName","computedColorClassName","Button","Object","assign","Label"],"sourceRoot":"../../../../src","sources":["components/Button/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAA2C,OAAO;AACrE,SACEC,iBAAiB,EACjBC,SAAS,EACTC,IAAI,EACJC,IAAI,QAKC,cAAc;AACrB,SAASC,YAAY,QAA2B,oBAAoB;AACpE,SAASC,EAAE,EAAEC,eAAe,EAAEC,gBAAgB,QAAQ,eAAe;AACrE,SAGEC,mBAAmB,EACnBC,kBAAkB,EAClBC,qBAAqB,EACrBC,kBAAkB,QACb,UAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAElB,MAAMC,KAAK,GAAG,QAAQ;AAEtB,MAAMC,IAAI,GAAGR,gBAAgB,CAACN,SAAS,EAAEa,KAAK,CAAC;AAE/C,MAAME,qBAAqB,GAAGA,CAAA,KAAMV,eAAe,CAACQ,KAAK,CAAuB;AAEhF,MAAMG,eAAe,GAAGb,YAAY,CAAC;EACnCW,IAAI;EACJb,IAAI;EACJgB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vD,MAAM;IAAER,OAAO;IAAEC;EAAM,CAAC,GAAGP,qBAAqB,CAAC,CAAC;EAClD,MAAM0B,sBAAsB,GAAGrC,EAAE,CAACK,qBAAqB,CAAC;IAAEY,OAAO;IAAEC;EAAM,CAAC,CAAC,EAAEkB,cAAc,CAAC;EAE5F,oBACE5B,IAAA,CAACI,eAAe,CAACE,OAAO;IACtBW,GAAG,EAAEA,GAAI;IACTJ,SAAS,EAAEA,SAAU;IACrBe,cAAc,EAAEC,sBAAuB;IACvCd,KAAK,EAAEA,KAAM;IAAA,GACTC;EAAK,CACV,CAAC;AAEN,CACF,CAAC;AAEDW,aAAa,CAACP,WAAW,GAAG,gBAAgB;AAS5C,OAAO,MAAMU,MAAM,GAAGC,MAAM,CAACC,MAAM,CAACxB,UAAU,EAAE;EAC9CyB,KAAK,EAAEZ,WAAW;EAClBhB,KAAK,EAAEiB,WAAW;EAClBf,IAAI,EAAEmB,UAAU;EAChBpB,OAAO,EAAEqB;AACX,CAAC,CAA4B","ignoreList":[]}
1
+ {"version":3,"names":["forwardRef","ActivityIndicator","Pressable","Text","View","createButton","cn","useStyleContext","withStyleContext","Icon","buttonGroupVariants","buttonIconVariants","buttonRootVariants","buttonSpinnerVariants","buttonTextVariants","jsx","_jsx","SCOPE","Root","useButtonStyleContext","ButtonPrimitive","Group","Spinner","ButtonRoot","variant","color","size","fullWidth","className","children","style","props","ref","computedClassName","context","displayName","ButtonLabel","ButtonGroup","flexDirection","isAttached","groupClassName","ButtonIcon","as","ButtonSpinner","colorClassName","computedColorClassName","Button","Object","assign","Label"],"sourceRoot":"../../../../src","sources":["components/Button/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAA2C,OAAO;AACrE,SACEC,iBAAiB,EACjBC,SAAS,EACTC,IAAI,EACJC,IAAI,QAKC,cAAc;AACrB,SAASC,YAAY,QAA2B,oBAAoB;AACpE,SAASC,EAAE,EAAEC,eAAe,EAAEC,gBAAgB,QAAQ,eAAe;AACrE,SAASC,IAAI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ance-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', 'web:outline-none web:focus:outline-none web:focus-visible:outline-none', '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', 'web:data-[focus-visible=true]:ring-3'], {
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-neutral-border-strong', 'data-[hover=true]:bg-neutral-background', 'data-[active=true]:bg-neutral-border'],
17
- ghost: ['bg-transparent', 'data-[hover=true]:bg-neutral-background', 'data-[active=true]:bg-neutral-border']
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: 'web:data-[focus-visible=true]:ring-blue-300/50',
21
- secondary: 'web:data-[focus-visible=true]:ring-amber-300/50',
22
- success: 'web:data-[focus-visible=true]:ring-green-300/50',
23
- danger: 'web:data-[focus-visible=true]:ring-red-300/50'
18
+ action: [],
19
+ danger: [],
20
+ warning: [],
21
+ success: [],
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'
41
- })]
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'
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'
55
41
  })]
56
42
  }, {
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', 'data-[focus-visible=true]: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', 'data-[focus-visible=true]: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', 'data-[focus-visible=true]: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', 'data-[focus-visible=true]: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'
179
177
  }, {
180
- variant: 'subtle',
181
- color: 'secondary',
182
- className: 'text-amber-950'
178
+ variant: 'strong',
179
+ color: 'danger',
180
+ className: 'text-content-danger-on-strong'
183
181
  }, {
184
- variant: 'subtle',
182
+ variant: 'strong',
183
+ color: 'warning',
184
+ className: 'text-content-warning-on-strong'
185
+ }, {
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)]'
245
243
  }, {
246
- variant: 'subtle',
247
- color: 'secondary',
248
- className: 'accent-amber-950'
244
+ variant: 'strong',
245
+ color: 'danger',
246
+ className: 'accent-[var(--color-content-danger-on-strong)]'
249
247
  }, {
250
- variant: 'subtle',
248
+ variant: 'strong',
249
+ color: 'warning',
250
+ className: 'accent-[var(--color-content-warning-on-strong)]'
251
+ }, {
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