@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,44 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef } from 'react';
4
+ import { createForm } from '@cdx-ui/primitives';
5
+ import { cn } from '@cdx-ui/utils';
6
+ import { BaseFormRoot } from './FormRoot';
7
+ import { formRootVariants } from './styles';
8
+
9
+ // =============================================================================
10
+ // PRIMITIVE
11
+ // =============================================================================
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ const FormPrimitive = createForm({
14
+ Root: BaseFormRoot
15
+ });
16
+ FormPrimitive.displayName = 'FormPrimitive';
17
+
18
+ // =============================================================================
19
+ // FORM ROOT (container — <form> on web, <View> on RN)
20
+ // =============================================================================
21
+
22
+ const FormRoot = /*#__PURE__*/forwardRef(({
23
+ className,
24
+ children,
25
+ style,
26
+ ...props
27
+ }, ref) => {
28
+ const computedClassName = cn(formRootVariants(), className);
29
+ return /*#__PURE__*/_jsx(FormPrimitive, {
30
+ ref: ref,
31
+ className: computedClassName,
32
+ style: style,
33
+ ...props,
34
+ children: children
35
+ });
36
+ });
37
+ FormRoot.displayName = 'Form';
38
+
39
+ // =============================================================================
40
+ // EXPORT
41
+ // =============================================================================
42
+
43
+ export const Form = FormRoot;
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","createForm","cn","BaseFormRoot","formRootVariants","jsx","_jsx","FormPrimitive","Root","displayName","FormRoot","className","children","style","props","ref","computedClassName","Form"],"sourceRoot":"../../../../src","sources":["components/Form/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AAEzC,SAASC,UAAU,QAAQ,oBAAoB;AAC/C,SAASC,EAAE,QAAQ,eAAe;AAClC,SAASC,YAAY,QAAgC,YAAY;AACjE,SAASC,gBAAgB,QAAQ,UAAU;;AAE3C;AACA;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAEA,MAAMC,aAAa,GAAGN,UAAU,CAAC;EAAEO,IAAI,EAAEL;AAAa,CAAC,CAAC;AAExDI,aAAa,CAACE,WAAW,GAAG,eAAe;;AAE3C;AACA;AACA;;AAIA,MAAMC,QAAQ,gBAAGV,UAAU,CAAkB,CAAC;EAAEW,SAAS;EAAEC,QAAQ;EAAEC,KAAK;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EAC9F,MAAMC,iBAAiB,GAAGd,EAAE,CAACE,gBAAgB,CAAC,CAAC,EAAEO,SAAS,CAAC;EAE3D,oBACEL,IAAA,CAACC,aAAa;IAACQ,GAAG,EAAEA,GAAI;IAACJ,SAAS,EAAEK,iBAAkB;IAACH,KAAK,EAAEA,KAAM;IAAA,GAAKC,KAAK;IAAAF,QAAA,EAC3EA;EAAQ,CACI,CAAC;AAEpB,CAAC,CAAC;AAEFF,QAAQ,CAACD,WAAW,GAAG,MAAM;;AAE7B;AACA;AACA;;AAEA,OAAO,MAAMQ,IAAI,GAAGP,QAAQ","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ import { cva } from 'class-variance-authority';
4
+ export const formRootVariants = cva(['flex-col gap-4']);
5
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["cva","formRootVariants"],"sourceRoot":"../../../../src","sources":["components/Form/styles.ts"],"mappings":";;AAAA,SAASA,GAAG,QAAQ,0BAA0B;AAE9C,OAAO,MAAMC,gBAAgB,GAAGD,GAAG,CAAC,CAAC,gBAAgB,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ import { forwardRef, memo } from 'react';
4
+ import { Text } from 'react-native';
5
+ import { cn } from '@cdx-ui/utils';
6
+ import { headingStyle } from './styles';
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ const sizeToLevel = {
9
+ xl: 1,
10
+ lg: 2,
11
+ md: 3,
12
+ sm: 4,
13
+ xs: 5
14
+ };
15
+ export const Heading = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function Heading({
16
+ className,
17
+ size = 'lg',
18
+ ...props
19
+ }, ref) {
20
+ return /*#__PURE__*/_jsx(Text, {
21
+ role: "heading",
22
+ "aria-level": sizeToLevel[size ?? 'lg'],
23
+ className: cn(headingStyle({
24
+ size
25
+ }), className),
26
+ ...props,
27
+ ref: ref
28
+ });
29
+ }));
30
+ Heading.displayName = 'Heading';
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","memo","Text","cn","headingStyle","jsx","_jsx","sizeToLevel","xl","lg","md","sm","xs","Heading","className","size","props","ref","role","displayName"],"sourceRoot":"../../../../src","sources":["components/Heading/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAA0D,OAAO;AAC1F,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,EAAE,QAAQ,eAAe;AAClC,SAASC,YAAY,QAAkC,UAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAElE,MAAMC,WAAW,GAAG;EAClBC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE;AACN,CAAU;AAOV,OAAO,MAAMC,OAAO,gBAAGZ,IAAI,cACzBD,UAAU,CAA0C,SAASa,OAAOA,CAClE;EAAEC,SAAS;EAAEC,IAAI,GAAG,IAAI;EAAE,GAAGC;AAAM,CAAC,EACpCC,GAAG,EACH;EACA,oBACEX,IAAA,CAACJ,IAAI;IACHgB,IAAI,EAAC,SAAS;IACd,cAAYX,WAAW,CAACQ,IAAI,IAAI,IAAI,CAAE;IACtCD,SAAS,EAAEX,EAAE,CAACC,YAAY,CAAC;MAAEW;IAAK,CAAC,CAAC,EAAED,SAAS,CAAE;IAAA,GAC7CE,KAAK;IACTC,GAAG,EAAEA;EAAI,CACV,CAAC;AAEN,CAAC,CACH,CAAC;AAEDJ,OAAO,CAACM,WAAW,GAAG,SAAS","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ import { Platform } from 'react-native';
4
+ import { cva } from 'class-variance-authority';
5
+ export const headingStyle = cva([`text-content-primary my-0`, Platform.select({
6
+ web: 'bg-transparent display-inline no-underline',
7
+ default: ''
8
+ })], {
9
+ variants: {
10
+ size: {
11
+ xl: 'heading-xl',
12
+ lg: 'heading-lg',
13
+ md: 'heading-md',
14
+ sm: 'heading-sm',
15
+ xs: 'heading-xs'
16
+ }
17
+ }
18
+ });
19
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Platform","cva","headingStyle","select","web","default","variants","size","xl","lg","md","sm","xs"],"sourceRoot":"../../../../src","sources":["components/Heading/styles.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AACvC,SAASC,GAAG,QAA2B,0BAA0B;AAEjE,OAAO,MAAMC,YAAY,GAAGD,GAAG,CAC7B,CACE,2BAA2B,EAC3BD,QAAQ,CAACG,MAAM,CAAC;EACdC,GAAG,EAAE,4CAA4C;EACjDC,OAAO,EAAE;AACX,CAAC,CAAC,CACH,EACD;EACEC,QAAQ,EAAE;IACRC,IAAI,EAAE;MACJC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE,YAAY;MAChBC,EAAE,EAAE;IACN;EACF;AACF,CACF,CAAC","ignoreList":[]}
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+
3
+ import { withUniwind } from 'uniwind';
4
+ import { cn } from '@cdx-ui/utils';
5
+ import { COLOR_TEXT_PRIMARY } from '../../styles/primitives';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ function IconImpl({
8
+ as: IconComponent,
9
+ ...props
10
+ }) {
11
+ return /*#__PURE__*/_jsx(IconComponent, {
12
+ ...props
13
+ });
14
+ }
15
+ const StyledIcon = withUniwind(IconImpl, {
16
+ size: {
17
+ fromClassName: 'className',
18
+ styleProperty: 'width'
19
+ },
20
+ color: {
21
+ fromClassName: 'className',
22
+ styleProperty: 'color'
23
+ }
24
+ });
25
+
26
+ /**
27
+ * A wrapper component for CDX icons with Uniwind `className` support via `withUniwind`.
28
+ *
29
+ * This component allows you to render any CDX icon while applying utility classes
30
+ * using `uniwind`. It avoids the need to wrap or configure each icon individually.
31
+ *
32
+ * @component
33
+ * @example
34
+ * ```tsx
35
+ * import { Icon } from '@cdx-ui/components';
36
+ * import { ArrowRight } from '@cdx-ui/icons';
37
+ *
38
+ * <Icon as={ArrowRight} className="text-red-500 size-4" />
39
+ * ```
40
+ *
41
+ * @param {CdxIcon} as - The CDX icon component to render.
42
+ * @param {string} className - Utility classes to style the icon using Uniwind.
43
+ * @param {number} size - Icon size (overrides the size class).
44
+ * @param {...CdxIconProps} ...props - Additional icon props passed to the "as" icon.
45
+ */
46
+ export function Icon({
47
+ as: IconComponent,
48
+ className,
49
+ ...props
50
+ }) {
51
+ return /*#__PURE__*/_jsx(StyledIcon, {
52
+ as: IconComponent,
53
+ className: cn(COLOR_TEXT_PRIMARY, 'size-5', className),
54
+ ...props
55
+ });
56
+ }
57
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["withUniwind","cn","COLOR_TEXT_PRIMARY","jsx","_jsx","IconImpl","as","IconComponent","props","StyledIcon","size","fromClassName","styleProperty","color","Icon","className"],"sourceRoot":"../../../../src","sources":["components/Icon/index.tsx"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,SAAS;AACrC,SAASC,EAAE,QAAQ,eAAe;AAElC,SAASC,kBAAkB,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAO7D,SAASC,QAAQA,CAAC;EAAEC,EAAE,EAAEC,aAAa;EAAE,GAAGC;AAAiB,CAAC,EAAE;EAC5D,oBAAOJ,IAAA,CAACG,aAAa;IAAA,GAAKC;EAAK,CAAG,CAAC;AACrC;AAEA,MAAMC,UAAU,GAAGT,WAAW,CAACK,QAAQ,EAAE;EACvCK,IAAI,EAAE;IACJC,aAAa,EAAE,WAAW;IAC1BC,aAAa,EAAE;EACjB,CAAC;EACDC,KAAK,EAAE;IACLF,aAAa,EAAE,WAAW;IAC1BC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASE,IAAIA,CAAC;EAAER,EAAE,EAAEC,aAAa;EAAEQ,SAAS;EAAE,GAAGP;AAAiB,CAAC,EAAE;EAC1E,oBACEJ,IAAA,CAACK,UAAU;IACTH,EAAE,EAAEC,aAAc;IAClBQ,SAAS,EAAEd,EAAE,CAACC,kBAAkB,EAAE,QAAQ,EAAEa,SAAS,CAAE;IAAA,GACnDP;EAAK,CACV,CAAC;AAEN","ignoreList":[]}
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+
3
+ import { forwardRef } from 'react';
4
+ import { ActivityIndicator, Pressable, Text, View } from 'react-native';
5
+ import { createButton, dataAttributes, useButtonContext } from '@cdx-ui/primitives';
6
+ import { cn } from '@cdx-ui/utils';
7
+ import { Icon } from '../Icon';
8
+ import { iconButtonGlyphVariants, iconButtonIconColorVariants, iconButtonRootVariants } from './styles';
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ const IconButtonPrimitive = createButton({
11
+ Root: Pressable,
12
+ Text,
13
+ Group: View,
14
+ Spinner: ActivityIndicator,
15
+ Icon: View
16
+ });
17
+ function IconButtonGlyph({
18
+ as: IconComponent,
19
+ className
20
+ }) {
21
+ const {
22
+ hover,
23
+ focus,
24
+ active,
25
+ disabled,
26
+ focusVisible
27
+ } = useButtonContext();
28
+ return /*#__PURE__*/_jsx(Icon, {
29
+ as: IconComponent,
30
+ className: className,
31
+ ...dataAttributes({
32
+ hover,
33
+ focus,
34
+ active,
35
+ disabled,
36
+ focusVisible
37
+ })
38
+ });
39
+ }
40
+ const IconButtonRoot = /*#__PURE__*/forwardRef(({
41
+ variant = 'solid',
42
+ size = 'default',
43
+ className,
44
+ style,
45
+ as: IconComponent,
46
+ iconClassName,
47
+ accessibilityRole = 'button',
48
+ ...props
49
+ }, ref) => {
50
+ const rootClassName = cn(iconButtonRootVariants({
51
+ variant,
52
+ size
53
+ }), className);
54
+ const glyphClassName = cn(iconButtonGlyphVariants({
55
+ size
56
+ }), iconButtonIconColorVariants(), iconClassName);
57
+ return /*#__PURE__*/_jsx(IconButtonPrimitive, {
58
+ ref: ref,
59
+ accessibilityRole: accessibilityRole,
60
+ className: rootClassName,
61
+ style: style,
62
+ ...props,
63
+ children: /*#__PURE__*/_jsx(IconButtonGlyph, {
64
+ as: IconComponent,
65
+ className: glyphClassName
66
+ })
67
+ });
68
+ });
69
+ IconButtonRoot.displayName = 'IconButton';
70
+ export const IconButton = IconButtonRoot;
71
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","ActivityIndicator","Pressable","Text","View","createButton","dataAttributes","useButtonContext","cn","Icon","iconButtonGlyphVariants","iconButtonIconColorVariants","iconButtonRootVariants","jsx","_jsx","IconButtonPrimitive","Root","Group","Spinner","IconButtonGlyph","as","IconComponent","className","hover","focus","active","disabled","focusVisible","IconButtonRoot","variant","size","style","iconClassName","accessibilityRole","props","ref","rootClassName","glyphClassName","children","displayName","IconButton"],"sourceRoot":"../../../../src","sources":["components/IconButton/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,iBAAiB,EAAEC,SAAS,EAAEC,IAA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K,CAAC,CAAC,EACjCnB,2BAA2B,CAAC,CAAC,EAC7BqB,aACF,CAAC;EAED,oBACElB,IAAA,CAACC,mBAAmB;IAClBoB,GAAG,EAAEA,GAAI;IACTF,iBAAiB,EAAEA,iBAAkB;IACrCX,SAAS,EAAEc,aAAc;IACzBL,KAAK,EAAEA,KAAM;IAAA,GACTG,KAAK;IAAAI,QAAA,eAETxB,IAAA,CAACK,eAAe;MAACC,EAAE,EAAEC,aAAc;MAACC,SAAS,EAAEe;IAAe,CAAE;EAAC,CAC9C,CAAC;AAE1B,CACF,CAAC;AAEDT,cAAc,CAACW,WAAW,GAAG,YAAY;AAEzC,OAAO,MAAMC,UAAU,GAAGZ,cAAc","ignoreList":[]}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+
3
+ import { Platform } from 'react-native';
4
+ import { cva } from 'class-variance-authority';
5
+ import { DISABLED_CURSOR, TRANSITION_COLORS } from '../../styles/primitives';
6
+ export const iconButtonRootVariants = cva(['flex items-center justify-center', 'rounded-[var(--border-radius-round)]', '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-ring] web:data-[focus-visible=true]:ring-offset-2'], {
7
+ variants: {
8
+ variant: {
9
+ solid: ['bg-surface-primary border border-stroke-secondary', Platform.select({
10
+ default: 'data-[active=true]:bg-surface-primary-active',
11
+ web: 'data-[hover=true]:bg-surface-primary-hover data-[active=true]:data-[hover=true]:bg-surface-secondary-active'
12
+ })],
13
+ ghost: ['bg-transparent', Platform.select({
14
+ default: 'data-[active=true]:bg-surface-primary-active',
15
+ web: 'data-[hover=true]:bg-surface-primary-hover data-[active=true]:data-[hover=true]:bg-surface-secondary-active'
16
+ })]
17
+ },
18
+ size: {
19
+ default: 'h-11 w-11 min-w-11 shrink-0 p-2.5',
20
+ small: 'h-8 w-8 min-w-8 shrink-0 p-1.5'
21
+ }
22
+ },
23
+ defaultVariants: {
24
+ variant: 'solid',
25
+ size: 'default'
26
+ }
27
+ });
28
+ export const iconButtonGlyphVariants = cva([], {
29
+ variants: {
30
+ size: {
31
+ default: 'size-6',
32
+ small: 'size-5'
33
+ }
34
+ },
35
+ defaultVariants: {
36
+ size: 'default'
37
+ }
38
+ });
39
+ export const iconButtonIconColorVariants = cva(['text-content-primary']);
40
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Platform","cva","DISABLED_CURSOR","TRANSITION_COLORS","iconButtonRootVariants","variants","variant","solid","select","default","web","ghost","size","small","defaultVariants","iconButtonGlyphVariants","iconButtonIconColorVariants"],"sourceRoot":"../../../../src","sources":["components/IconButton/styles.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AACvC,SAASC,GAAG,QAA2B,0BAA0B;AACjE,SAASC,eAAe,EAAEC,iBAAiB,QAAQ,yBAAyB;AAE5E,OAAO,MAAMC,sBAAsB,GAAGH,GAAG,CACvC,CACE,kCAAkC,EAClC,sCAAsC,EACtC,wEAAwE,EACxEE,iBAAiB,EACjB,mDAAmD,EACnDD,eAAe,EACf,2IAA2I,CAC5I,EACD;EACEG,QAAQ,EAAE;IACRC,OAAO,EAAE;MACPC,KAAK,EAAE,CACL,mDAAmD,EACnDP,QAAQ,CAACQ,MAAM,CAAC;QACdC,OAAO,EAAE,8CAA8C;QACvDC,GAAG,EAAE;MACP,CAAC,CAAC,CACH;MACDC,KAAK,EAAE,CACL,gBAAgB,EAChBX,QAAQ,CAACQ,MAAM,CAAC;QACdC,OAAO,EAAE,8CAA8C;QACvDC,GAAG,EAAE;MACP,CAAC,CAAC;IAEN,CAAC;IACDE,IAAI,EAAE;MACJH,OAAO,EAAE,mCAAmC;MAC5CI,KAAK,EAAE;IACT;EACF,CAAC;EACDC,eAAe,EAAE;IACfR,OAAO,EAAE,OAAO;IAChBM,IAAI,EAAE;EACR;AACF,CACF,CAAC;AAED,OAAO,MAAMG,uBAAuB,GAAGd,GAAG,CAAC,EAAE,EAAE;EAC7CI,QAAQ,EAAE;IACRO,IAAI,EAAE;MACJH,OAAO,EAAE,QAAQ;MACjBI,KAAK,EAAE;IACT;EACF,CAAC;EACDC,eAAe,EAAE;IACfF,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAEF,OAAO,MAAMI,2BAA2B,GAAGf,GAAG,CAAC,CAAC,sBAAsB,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Thin wrapper around React Native's `Image`.
5
+ *
6
+ * Design-system layout (sizes, radii, loading/error UI) is intentionally
7
+ * NOT baked in here — use purpose-built components like `Avatar` instead.
8
+ *
9
+ * What this wrapper adds over a raw RN `Image`:
10
+ * - Accepts a plain URI **string** as `source` (auto-normalized to `{ uri }`).
11
+ * - Extends the prop surface with **web-only** HTML attributes (`sizes`,
12
+ * `loading`, `decoding`, etc.) for better `react-native-web` support.
13
+ * Props already covered by RN 0.81+ (`alt`, `srcSet`, `crossOrigin`,
14
+ * `referrerPolicy`) are inherited from the native typings.
15
+ * - All other props and `ref` are forwarded to the underlying `Image`.
16
+ *
17
+ * Inspired by Expo's html-elements Image primitive:
18
+ * @see https://github.com/expo/expo/blob/main/packages/html-elements/src/primitives/Image.tsx
19
+ */
20
+
21
+ import { forwardRef } from 'react';
22
+ import { Image as RNImage } from 'react-native';
23
+
24
+ /** Coerces a plain URI string into the `{ uri }` shape RN expects. */
25
+ import { jsx as _jsx } from "react/jsx-runtime";
26
+ function normalizeSource(source) {
27
+ if (typeof source === 'string') {
28
+ return {
29
+ uri: source
30
+ };
31
+ }
32
+ return source;
33
+ }
34
+
35
+ // ---------------------------------------------------------------------------
36
+ // Web-oriented props not yet covered by react-native's Image typings.
37
+ // Props already present in RN 0.81+ (alt, srcSet, crossOrigin,
38
+ // referrerPolicy) are inherited from the native Image props.
39
+ // ---------------------------------------------------------------------------
40
+
41
+ /**
42
+ * HTML-ish attributes not in RN’s core typings. Forwarded to `Image` with `...props`;
43
+ * **react-native-web** maps supported ones to the DOM `<img>`. On iOS/Android they are
44
+ * typically ignored (no visual effect).
45
+ */
46
+
47
+ // ---------------------------------------------------------------------------
48
+ // ImageProps = native Image props (minus `source`) + WebImageProps + our overrides.
49
+ // `source` is re-declared to also accept a plain string.
50
+ // ---------------------------------------------------------------------------
51
+
52
+ // ---------------------------------------------------------------------------
53
+ // Component
54
+ // ---------------------------------------------------------------------------
55
+
56
+ export const Image = /*#__PURE__*/forwardRef(function Image({
57
+ source,
58
+ ...props
59
+ }, ref) {
60
+ return /*#__PURE__*/_jsx(RNImage, {
61
+ source: normalizeSource(source),
62
+ ...props,
63
+ ref: ref
64
+ });
65
+ });
66
+ Image.displayName = 'Image';
67
+ //# sourceMappingURL=Image.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","Image","RNImage","jsx","_jsx","normalizeSource","source","uri","props","ref","displayName"],"sourceRoot":"../../../../src","sources":["components/Image/Image.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,QAA0D,OAAO;AACpF,SAASC,KAAK,IAAIC,OAAO,QAAkC,cAAc;;AAEzE;AAAA,SAAAC,GAAA,IAAAC,IAAA;AACA,SAASC,eAAeA,CAACC,MAAoC,EAAuB;EAClF,IAAI,OAAOA,MAAM,KAAK,QAAQ,EAAE;IAC9B,OAAO;MAAEC,GAAG,EAAED;IAAO,CAAC;EACxB;EACA,OAAOA,MAAM;AACf;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAcA;AACA;AACA;AACA;;AASA;AACA;AACA;;AAEA,OAAO,MAAML,KAAK,gBAAGD,UAAU,CAA2C,SAASC,KAAKA,CACtF;EAAEK,MAAM;EAAE,GAAGE;AAAM,CAAC,EACpBC,GAAG,EACH;EACA,oBAAOL,IAAA,CAACF,OAAO;IAACI,MAAM,EAAED,eAAe,CAACC,MAAM,CAAE;IAAA,GAAKE,KAAK;IAAEC,GAAG,EAAEA;EAAI,CAAE,CAAC;AAC1E,CAAC,CAAC;AAEFR,KAAK,CAACS,WAAW,GAAG,OAAO","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export { Image } from './Image';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Image"],"sourceRoot":"../../../../src","sources":["components/Image/index.ts"],"mappings":";;AAAA,SAASA,KAAK,QAA6C,SAAS","ignoreList":[]}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ import { forwardRef } from 'react';
4
+ import { TextInput } from 'react-native';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ const androidDefaults = {
7
+ includeFontPadding: false,
8
+ textAlignVertical: 'center'
9
+ };
10
+ export const BaseInput = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/_jsx(TextInput, {
11
+ ref: ref,
12
+ ...props,
13
+ style: [androidDefaults, props.style]
14
+ }));
15
+ BaseInput.displayName = 'BaseInput';
16
+ //# sourceMappingURL=BaseInput.android.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","TextInput","jsx","_jsx","androidDefaults","includeFontPadding","textAlignVertical","BaseInput","props","ref","style","displayName"],"sourceRoot":"../../../../src","sources":["components/Input/BaseInput.android.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,SAAS,QAA6B,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE9D,MAAMC,eAAe,GAAG;EACtBC,kBAAkB,EAAE,KAAK;EACzBC,iBAAiB,EAAE;AACrB,CAAC;AAED,OAAO,MAAMC,SAAS,gBAAGP,UAAU,CAA4B,CAACQ,KAAK,EAAEC,GAAG,kBACxEN,IAAA,CAACF,SAAS;EAACQ,GAAG,EAAEA,GAAI;EAAA,GAAKD,KAAK;EAAEE,KAAK,EAAE,CAACN,eAAe,EAAEI,KAAK,CAACE,KAAK;AAAE,CAAE,CACzE,CAAC;AAEFH,SAAS,CAACI,WAAW,GAAG,WAAW","ignoreList":[]}
@@ -4,6 +4,7 @@ import { forwardRef } from 'react';
4
4
  import { View } from 'react-native';
5
5
  import { createInput } from '@cdx-ui/primitives';
6
6
  import { cn, useStyleContext, withStyleContext } from '@cdx-ui/utils';
7
+ import { Icon } from '../Icon';
7
8
  import { BaseInput } from './BaseInput';
8
9
  import { inputFieldPlaceholderVariants, inputFieldVariants, inputIconVariants, inputRootVariants, inputSlotVariants } from './styles';
9
10
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -12,7 +13,6 @@ const Root = withStyleContext(View, SCOPE);
12
13
  const useInputStyleContext = () => useStyleContext(SCOPE);
13
14
  const InputPrimitive = createInput({
14
15
  Root,
15
- Icon: View,
16
16
  Slot: View,
17
17
  Field: BaseInput
18
18
  });
@@ -23,7 +23,7 @@ const InputPrimitive = createInput({
23
23
 
24
24
  const InputRoot = /*#__PURE__*/forwardRef(({
25
25
  variant = 'outline',
26
- size = 'md',
26
+ size = 'default',
27
27
  className,
28
28
  children,
29
29
  style,
@@ -84,12 +84,7 @@ const InputSlot = /*#__PURE__*/forwardRef(({
84
84
  style,
85
85
  ...props
86
86
  }, ref) => {
87
- const {
88
- size
89
- } = useInputStyleContext();
90
- const computedClassName = cn(inputSlotVariants({
91
- size
92
- }), className);
87
+ const computedClassName = cn(inputSlotVariants(), className);
93
88
  return /*#__PURE__*/_jsx(InputPrimitive.Slot, {
94
89
  ref: ref,
95
90
  className: computedClassName,
@@ -104,26 +99,25 @@ InputSlot.displayName = 'Input.Slot';
104
99
  // INPUT ICON
105
100
  // =============================================================================
106
101
 
107
- const InputIcon = /*#__PURE__*/forwardRef(({
102
+ const InputIcon = ({
108
103
  className,
109
- children,
110
104
  style,
105
+ as,
111
106
  ...props
112
- }, ref) => {
107
+ }) => {
113
108
  const {
114
109
  size
115
110
  } = useInputStyleContext();
116
111
  const computedClassName = cn(inputIconVariants({
117
112
  size
118
113
  }), className);
119
- return /*#__PURE__*/_jsx(InputPrimitive.Icon, {
120
- ref: ref,
114
+ return /*#__PURE__*/_jsx(Icon, {
115
+ as: as,
121
116
  className: computedClassName,
122
117
  style: style,
123
- ...props,
124
- children: children
118
+ ...props
125
119
  });
126
- });
120
+ };
127
121
  InputIcon.displayName = 'Input.Icon';
128
122
 
129
123
  // =============================================================================
@@ -1 +1 @@
1
- {"version":3,"names":["forwardRef","View","createInput","cn","useStyleContext","withStyleContext","BaseInput","inputFieldPlaceholderVariants","inputFieldVariants","inputIconVariants","inputRootVariants","inputSlotVariants","jsx","_jsx","SCOPE","Root","useInputStyleContext","InputPrimitive","Icon","Slot","Field","InputRoot","variant","size","className","children","style","props","ref","computedClassName","context","displayName","InputField","placeholderTextColorClassName","rest","computedPlaceholderColorClassName","InputSlot","InputIcon","Input","Object","assign"],"sourceRoot":"../../../../src","sources":["components/Input/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAwB,OAAO;AAClD,SAAyBC,IAAI,QAAwB,cAAc;AACnE,SACEC,WAAW,QAIN,oBAAoB;AAC3B,SAASC,EAAE,EAAEC,eAAe,EAAEC,gBAAgB,QAAQ,eAAe;AACrE,SAASC,SAAS,QAAQ,aAAa;AACvC,SAEEC,6BAA6B,EAC7BC,kBAAkB,EAClBC,iBAAiB,EACjBC,iBAAiB,EACjBC,iBAAiB,QACZ,UAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAElB,MAAMC,KAAK,GAAG,OAAO;AAErB,MAAMC,IAAI,GAAGV,gBAAgB,CAACJ,IAAI,EAAEa,KAAK,CAAC;AAE1C,MAAME,oBAAoB,GAAGA,CAAA,KAAMZ,eAAe,CAACU,KAAK,CAAsB;AAE9E,MAAMG,cAAc,GAAGf,WAAW,CAAC;EACjCa,IAAI;EACJG,IAAI,EAAEjB,IAAI;EACVkB,IAAI,EAAElB,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SAAS,EAAE;EAC5CD,KAAK,EAAEY,UAAU;EACjBb,IAAI,EAAEiB,SAAS;EACflB,IAAI,EAAEmB;AACR,CAAC,CAA2B","ignoreList":[]}
1
+ {"version":3,"names":["forwardRef","View","createInput","cn","useStyleContext","withStyleContext","Icon","BaseInput","inputFieldPlaceholderVariants","inputFieldVariants","inputIconVariants","inputRootVariants","inputSlotVariants","jsx","_jsx","SCOPE","Root","useInputStyleContext","InputPrimitive","Slot","Field","InputRoot","variant","size","className","children","style","props","ref","computedClassName","context","displayName","InputField","placeholderTextColorClassName","rest","computedPlaceholderColorClassName","InputSlot","InputIcon","as","Input","Object","assign"],"sourceRoot":"../../../../src","sources":["components/Input/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAwB,OAAO;AAClD,SAAyBC,IAAI,QAAwB,cAAc;AACnE,SACEC,WAAW,QAIN,oBAAoB;AAC3B,SAASC,EAAE,EAAEC,eAAe,EAAEC,gBAAgB,QAAQ,eAAe;AACrE,SAASC,IAAI,QAAmB,SAAS;AACzC,SAASC,SAAS,QAAQ,aAAa;AACvC,SAEEC,6BAA6B,EAC7BC,kBAAkB,EAClBC,iBAAiB,EACjBC,iBAAiB,EACjBC,iBAAiB,QACZ,UAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAElB,MAAMC,KAAK,GAAG,OAAO;AAErB,MAAMC,IAAI,GAAGX,gBAAgB,CAACJ,IAAI,EAAEc,KAAK,CAAC;AAE1C,MAAME,oBAAoB,GAAGA,CAAA,KAAMb,eAAe,CAACW,KAAK,CAAsB;AAE9E,MAAMG,cAAc,GAAGhB,WAAW,CAAC;EACjCc,IAAI;EACJG,IAAI,EAAElB,IAAI;EACVmB,KAAK,EAAEb;AACT,CAAC,CAAC;;AAEF;AACA;AACA;;AAOA,MAAMc,SAAS,gBAAGrB,UAAU,CAC1B,CAAC;EAAEsB,OAAO,GAAG,SAAS;EAAEC,IAAI,GAAG,SAAS;EAAEC,SAAS;EAAEC,QAAQ;EAAEC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AG,KAAK;EACjD,MAAMC,iBAAiB,GAAG1B,EAAE,CAACS,iBAAiB,CAAC,CAAC,EAAEY,SAAS,CAAC;EAE5D,oBACEV,IAAA,CAACI,cAAc,CAACC,IAAI;IAACS,GAAG,EAAEA,GAAI;IAACJ,SAAS,EAAEK,iBAAkB;IAACH,KAAK,EAAEA,KAAM;IAAA,GAAKC,KAAK;IAAAF,QAAA,EACjFA;EAAQ,CACU,CAAC;AAE1B,CACF,CAAC;AAEDW,SAAS,CAACL,WAAW,GAAG,YAAY;;AAEpC;AACA;AACA;;AAIA,MAAMM,SAAS,GAAGA,CAAC;EAAEb,SAAS;EAAEE,KAAK;EAAEY,EAAE;EAAE,GAAGX;AAAsB,CAAC,KAAK;EACxE,MAAM;IAAEJ;EAAK,CAAC,GAAGN,oBAAoB,CAAC,CAAC;EAEvC,MAAMY,iBAAiB,GAAG1B,EAAE,CAACO,iBAAiB,CAAC;IAAEa;EAAK,CAAC,CAAC,EAAEC,SAAS,CAAC;EAEpE,oBAAOV,IAAA,CAACR,IAAI;IAACgC,EAAE,EAAEA,EAAG;IAACd,SAAS,EAAEK,iBAAkB;IAACH,KAAK,EAAEA,KAAM;IAAA,GAAKC;EAAK,CAAG,CAAC;AAChF,CAAC;AAEDU,SAAS,CAACN,WAAW,GAAG,YAAY;;AAEpC;AACA;AACA;;AAQA,OAAO,MAAMQ,KAAK,GAAGC,MAAM,CAACC,MAAM,CAACpB,SAAS,EAAE;EAC5CD,KAAK,EAAEY,UAAU;EACjBb,IAAI,EAAEiB,SAAS;EACf9B,IAAI,EAAE+B;AACR,CAAC,CAA2B","ignoreList":[]}
@@ -1,58 +1,45 @@
1
1
  "use strict";
2
2
 
3
3
  import { cva } from 'class-variance-authority';
4
- export const inputRootVariants = cva(['w-full flex-row items-center', 'border border-neutral-border-strong bg-neutral-surface shadow-sm', 'data-[disabled=true]:opacity-60 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:bg-interactive-disabled-background data-[disabled=true]:border-interactive-disabled', 'data-[focus=true]:border-interactive-focus', 'data-[invalid=true]:border-red-500'], {
4
+ import { DISABLED_CURSOR, TRANSITION_COLORS } from '../../styles/primitives';
5
+ export const inputRootVariants = cva(['w-full flex-row items-stretch overflow-hidden', 'bg-surface-primary', 'border-solid border-[length:var(--border-width-default)] border-stroke-primary', 'rounded-[var(--border-radius-default)]', TRANSITION_COLORS, 'data-[disabled=true]:bg-surface-secondary', 'data-[disabled=true]:opacity-[--opacity-disabled]', DISABLED_CURSOR, 'data-[readonly=true]:cursor-default', 'data-[readonly=true]:bg-surface-secondary', 'web:data-[hover=true]:data-[focus=false]:data-[invalid=false]:border-stroke-hover', 'data-[focus=true]:border-[length:var(--border-width-focused)]', 'data-[focus=true]:border-stroke-action', 'data-[invalid=true]:border-stroke-danger'], {
5
6
  variants: {
6
7
  variant: {
7
- outline: ['rounded-md px-3', 'web:focus-within:border-interactive-focus web:focus-within:ring-3 web:focus-within:ring-blue-300/50', 'web:data-[invalid=true]:focus-within:border-red-500 web:data-[invalid=true]:focus-within:ring-red-300/50'],
8
- underlined: 'rounded-none border-t-0 border-l-0 border-r-0 border-b-neutral-border data-[focus=true]:border-b-interactive-focus shadow-none'
8
+ outline: []
9
9
  },
10
10
  size: {
11
- sm: 'h-9 py-1',
12
- md: 'h-11 py-1.5',
13
- lg: 'h-12 py-2'
11
+ // TODO: Find a cleaner approach to preventing layout shift when focus border is applied.
12
+ default: ['h-10 px-4 py-2 gap-2', 'data-[focus=true]:px-[15px] data-[focus=true]:py-[7px]'],
13
+ small: ['h-8 px-3 py-1.5 gap-1.5', 'data-[focus=true]:px-[11px] data-[focus=true]:py-[5px]']
14
14
  }
15
15
  },
16
16
  defaultVariants: {
17
17
  variant: 'outline',
18
- size: 'md'
18
+ size: 'default'
19
19
  }
20
20
  });
21
- export const inputFieldVariants = cva(['flex-1 bg-transparent text-neutral-text-primary', 'placeholder:text-neutral-placeholder', 'web:outline-none'], {
21
+ export const inputFieldVariants = cva(['flex-1 justify-center bg-transparent p-0', 'font-body text-content-primary', 'placeholder:text-content-tertiary', 'web:outline-none', 'tracking-normal'], {
22
22
  variants: {
23
23
  size: {
24
- sm: 'text-sm leading-none',
25
- md: 'text-base leading-none',
26
- lg: 'text-lg leading-none'
24
+ default: 'text-[0.875rem]',
25
+ small: 'text-[0.75rem]'
27
26
  }
28
27
  },
29
28
  defaultVariants: {
30
- size: 'sm'
29
+ size: 'default'
31
30
  }
32
31
  });
33
- export const inputSlotVariants = cva(['items-center justify-center'], {
32
+ export const inputSlotVariants = cva(['items-center justify-center self-center']);
33
+ export const inputIconVariants = cva(['text-content-tertiary'], {
34
34
  variants: {
35
35
  size: {
36
- sm: 'h-4 w-4',
37
- md: 'h-5 w-5',
38
- lg: 'h-6 w-6'
36
+ default: 'size-5',
37
+ small: 'size-4'
39
38
  }
40
39
  },
41
40
  defaultVariants: {
42
- size: 'sm'
41
+ size: 'default'
43
42
  }
44
43
  });
45
- export const inputIconVariants = cva(['text-neutral-text-tertiary'], {
46
- variants: {
47
- size: {
48
- sm: 'h-4 w-4',
49
- md: 'h-5 w-5',
50
- lg: 'h-5 w-5'
51
- }
52
- },
53
- defaultVariants: {
54
- size: 'sm'
55
- }
56
- });
57
- export const inputFieldPlaceholderVariants = cva(['accent-neutral-placeholder']);
44
+ export const inputFieldPlaceholderVariants = cva(['accent-content-tertiary']);
58
45
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["cva","inputRootVariants","variants","variant","outline","underlined","size","sm","md","lg","defaultVariants","inputFieldVariants","inputSlotVariants","inputIconVariants","inputFieldPlaceholderVariants"],"sourceRoot":"../../../../src","sources":["components/Input/styles.ts"],"mappings":";;AAAA,SAASA,GAAG,QAA2B,0BAA0B;AAEjE,OAAO,MAAMC,iBAAiB,GAAGD,GAAG,CAClC,CACE,8BAA8B,EAC9B,kEAAkE,EAClE,kLAAkL,EAClL,4CAA4C,EAC5C,oCAAoC,CACrC,EACD;EACEE,QAAQ,EAAE;IACRC,OAAO,EAAE;MACPC,OAAO,EAAE,CACP,iBAAiB,EACjB,qGAAqG,EACrG,0GAA0G,CAC3G;MACDC,UAAU,EACR;IACJ,CAAC;IACDC,IAAI,EAAE;MACJC,EAAE,EAAE,UAAU;MACdC,EAAE,EAAE,aAAa;MACjBC,EAAE,EAAE;IACN;EACF,CAAC;EACDC,eAAe,EAAE;IACfP,OAAO,EAAE,SAAS;IAClBG,IAAI,EAAE;EACR;AACF,CACF,CAAC;AAED,OAAO,MAAMK,kBAAkB,GAAGX,GAAG,CACnC,CACE,iDAAiD,EACjD,sCAAsC,EACtC,kBAAkB,CACnB,EACD;EACEE,QAAQ,EAAE;IACRI,IAAI,EAAE;MACJC,EAAE,EAAE,sBAAsB;MAC1BC,EAAE,EAAE,wBAAwB;MAC5BC,EAAE,EAAE;IACN;EACF,CAAC;EACDC,eAAe,EAAE;IACfJ,IAAI,EAAE;EACR;AACF,CACF,CAAC;AAED,OAAO,MAAMM,iBAAiB,GAAGZ,GAAG,CAAC,CAAC,6BAA6B,CAAC,EAAE;EACpEE,QAAQ,EAAE;IACRI,IAAI,EAAE;MACJC,EAAE,EAAE,SAAS;MACbC,EAAE,EAAE,SAAS;MACbC,EAAE,EAAE;IACN;EACF,CAAC;EACDC,eAAe,EAAE;IACfJ,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAEF,OAAO,MAAMO,iBAAiB,GAAGb,GAAG,CAAC,CAAC,4BAA4B,CAAC,EAAE;EACnEE,QAAQ,EAAE;IACRI,IAAI,EAAE;MACJC,EAAE,EAAE,SAAS;MACbC,EAAE,EAAE,SAAS;MACbC,EAAE,EAAE;IACN;EACF,CAAC;EACDC,eAAe,EAAE;IACfJ,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAEF,OAAO,MAAMQ,6BAA6B,GAAGd,GAAG,CAAC,CAAC,4BAA4B,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["cva","DISABLED_CURSOR","TRANSITION_COLORS","inputRootVariants","variants","variant","outline","size","default","small","defaultVariants","inputFieldVariants","inputSlotVariants","inputIconVariants","inputFieldPlaceholderVariants"],"sourceRoot":"../../../../src","sources":["components/Input/styles.ts"],"mappings":";;AAAA,SAASA,GAAG,QAA2B,0BAA0B;AACjE,SAASC,eAAe,EAAEC,iBAAiB,QAAQ,yBAAyB;AAE5E,OAAO,MAAMC,iBAAiB,GAAGH,GAAG,CAClC,CACE,+CAA+C,EAC/C,oBAAoB,EACpB,gFAAgF,EAChF,wCAAwC,EACxCE,iBAAiB,EACjB,2CAA2C,EAC3C,mDAAmD,EACnDD,eAAe,EACf,qCAAqC,EACrC,2CAA2C,EAC3C,mFAAmF,EACnF,+DAA+D,EAC/D,wCAAwC,EACxC,0CAA0C,CAC3C,EACD;EACEG,QAAQ,EAAE;IACRC,OAAO,EAAE;MACPC,OAAO,EAAE;IACX,CAAC;IACDC,IAAI,EAAE;MACJ;MACAC,OAAO,EAAE,CAAC,sBAAsB,EAAE,wDAAwD,CAAC;MAC3FC,KAAK,EAAE,CACL,yBAAyB,EACzB,wDAAwD;IAE5D;EACF,CAAC;EACDC,eAAe,EAAE;IACfL,OAAO,EAAE,SAAS;IAClBE,IAAI,EAAE;EACR;AACF,CACF,CAAC;AAED,OAAO,MAAMI,kBAAkB,GAAGX,GAAG,CACnC,CACE,0CAA0C,EAC1C,gCAAgC,EAChC,mCAAmC,EACnC,kBAAkB,EAClB,iBAAiB,CAClB,EACD;EACEI,QAAQ,EAAE;IACRG,IAAI,EAAE;MACJC,OAAO,EAAE,iBAAiB;MAC1BC,KAAK,EAAE;IACT;EACF,CAAC;EACDC,eAAe,EAAE;IACfH,IAAI,EAAE;EACR;AACF,CACF,CAAC;AAED,OAAO,MAAMK,iBAAiB,GAAGZ,GAAG,CAAC,CAAC,yCAAyC,CAAC,CAAC;AAEjF,OAAO,MAAMa,iBAAiB,GAAGb,GAAG,CAAC,CAAC,uBAAuB,CAAC,EAAE;EAC9DI,QAAQ,EAAE;IACRG,IAAI,EAAE;MAC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