@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
@@ -5,58 +5,45 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.inputSlotVariants = exports.inputRootVariants = exports.inputIconVariants = exports.inputFieldVariants = exports.inputFieldPlaceholderVariants = void 0;
7
7
  var _classVarianceAuthority = require("class-variance-authority");
8
- const inputRootVariants = exports.inputRootVariants = (0, _classVarianceAuthority.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'], {
8
+ var _primitives = require("../../styles/primitives");
9
+ const inputRootVariants = exports.inputRootVariants = (0, _classVarianceAuthority.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)]', _primitives.TRANSITION_COLORS, 'data-[disabled=true]:bg-surface-secondary', 'data-[disabled=true]:opacity-[--opacity-disabled]', _primitives.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'], {
9
10
  variants: {
10
11
  variant: {
11
- 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'],
12
- 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'
12
+ outline: []
13
13
  },
14
14
  size: {
15
- sm: 'h-9 py-1',
16
- md: 'h-11 py-1.5',
17
- lg: 'h-12 py-2'
15
+ // TODO: Find a cleaner approach to preventing layout shift when focus border is applied.
16
+ default: ['h-10 px-4 py-2 gap-2', 'data-[focus=true]:px-[15px] data-[focus=true]:py-[7px]'],
17
+ small: ['h-8 px-3 py-1.5 gap-1.5', 'data-[focus=true]:px-[11px] data-[focus=true]:py-[5px]']
18
18
  }
19
19
  },
20
20
  defaultVariants: {
21
21
  variant: 'outline',
22
- size: 'md'
22
+ size: 'default'
23
23
  }
24
24
  });
25
- const inputFieldVariants = exports.inputFieldVariants = (0, _classVarianceAuthority.cva)(['flex-1 bg-transparent text-neutral-text-primary', 'placeholder:text-neutral-placeholder', 'web:outline-none'], {
25
+ const inputFieldVariants = exports.inputFieldVariants = (0, _classVarianceAuthority.cva)(['flex-1 justify-center bg-transparent p-0', 'font-body text-content-primary', 'placeholder:text-content-tertiary', 'web:outline-none', 'tracking-normal'], {
26
26
  variants: {
27
27
  size: {
28
- sm: 'text-sm leading-none',
29
- md: 'text-base leading-none',
30
- lg: 'text-lg leading-none'
28
+ default: 'text-[0.875rem]',
29
+ small: 'text-[0.75rem]'
31
30
  }
32
31
  },
33
32
  defaultVariants: {
34
- size: 'sm'
33
+ size: 'default'
35
34
  }
36
35
  });
37
- const inputSlotVariants = exports.inputSlotVariants = (0, _classVarianceAuthority.cva)(['items-center justify-center'], {
36
+ const inputSlotVariants = exports.inputSlotVariants = (0, _classVarianceAuthority.cva)(['items-center justify-center self-center']);
37
+ const inputIconVariants = exports.inputIconVariants = (0, _classVarianceAuthority.cva)(['text-content-tertiary'], {
38
38
  variants: {
39
39
  size: {
40
- sm: 'h-4 w-4',
41
- md: 'h-5 w-5',
42
- lg: 'h-6 w-6'
40
+ default: 'size-5',
41
+ small: 'size-4'
43
42
  }
44
43
  },
45
44
  defaultVariants: {
46
- size: 'sm'
45
+ size: 'default'
47
46
  }
48
47
  });
49
- const inputIconVariants = exports.inputIconVariants = (0, _classVarianceAuthority.cva)(['text-neutral-text-tertiary'], {
50
- variants: {
51
- size: {
52
- sm: 'h-4 w-4',
53
- md: 'h-5 w-5',
54
- lg: 'h-5 w-5'
55
- }
56
- },
57
- defaultVariants: {
58
- size: 'sm'
59
- }
60
- });
61
- const inputFieldPlaceholderVariants = exports.inputFieldPlaceholderVariants = (0, _classVarianceAuthority.cva)(['accent-neutral-placeholder']);
48
+ const inputFieldPlaceholderVariants = exports.inputFieldPlaceholderVariants = (0, _classVarianceAuthority.cva)(['accent-content-tertiary']);
62
49
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_classVarianceAuthority","require","inputRootVariants","exports","cva","variants","variant","outline","underlined","size","sm","md","lg","defaultVariants","inputFieldVariants","inputSlotVariants","inputIconVariants","inputFieldPlaceholderVariants"],"sourceRoot":"../../../../src","sources":["components/Input/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AAEO,MAAMC,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,IAAAE,2BAAG,EAClC,CACE,8BAA8B,EAC9B,kEAAkE,EAClE,kLAAkL,EAClL,4CAA4C,EAC5C,oCAAoC,CACrC,EACD;EACEC,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;AAEM,MAAMK,kBAAkB,GAAAX,OAAA,CAAAW,kBAAA,GAAG,IAAAV,2BAAG,EACnC,CACE,iDAAiD,EACjD,sCAAsC,EACtC,kBAAkB,CACnB,EACD;EACEC,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;AAEM,MAAMM,iBAAiB,GAAAZ,OAAA,CAAAY,iBAAA,GAAG,IAAAX,2BAAG,EAAC,CAAC,6BAA6B,CAAC,EAAE;EACpEC,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;AAEK,MAAMO,iBAAiB,GAAAb,OAAA,CAAAa,iBAAA,GAAG,IAAAZ,2BAAG,EAAC,CAAC,4BAA4B,CAAC,EAAE;EACnEC,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;AAEK,MAAMQ,6BAA6B,GAAAd,OAAA,CAAAc,6BAAA,GAAG,IAAAb,2BAAG,EAAC,CAAC,4BAA4B,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_classVarianceAuthority","require","_primitives","inputRootVariants","exports","cva","TRANSITION_COLORS","DISABLED_CURSOR","variants","variant","outline","size","default","small","defaultVariants","inputFieldVariants","inputSlotVariants","inputIconVariants","inputFieldPlaceholderVariants"],"sourceRoot":"../../../../src","sources":["components/Input/styles.ts"],"mappings":";;;;;;AAAA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MACjBC,KAAK,EAAE;IACT;EACF,CAAC;EACDC,eAAe,EAAE;IACfH,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAEK,MAAMO,6BAA6B,GAAAd,OAAA,CAAAc,6BAAA,GAAG,IAAAb,2BAAG,EAAC,CAAC,yBAAyB,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Link = void 0;
7
+ Object.defineProperty(exports, "LinkProvider", {
8
+ enumerable: true,
9
+ get: function () {
10
+ return _primitives.LinkProvider;
11
+ }
12
+ });
13
+ var _react = require("react");
14
+ var _reactNative = require("react-native");
15
+ var _primitives = require("@cdx-ui/primitives");
16
+ var _utils = require("@cdx-ui/utils");
17
+ var _Icon = require("../Icon");
18
+ var _styles = require("./styles");
19
+ var _jsxRuntime = require("react/jsx-runtime");
20
+ const LinkPrimitive = (0, _primitives.createLink)({
21
+ Root: _reactNative.Pressable
22
+ });
23
+
24
+ // =============================================================================
25
+ // STYLED ROOT COMPONENT
26
+ // =============================================================================
27
+
28
+ const LinkRoot = /*#__PURE__*/(0, _react.forwardRef)(({
29
+ className,
30
+ children,
31
+ style,
32
+ ...props
33
+ }, ref) => {
34
+ const rootClassName = (0, _utils.cn)((0, _styles.linkRootVariants)(), className);
35
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(LinkPrimitive, {
36
+ ref: ref,
37
+ className: rootClassName,
38
+ style: style,
39
+ ...props,
40
+ children: children
41
+ });
42
+ });
43
+ LinkRoot.displayName = 'Link';
44
+
45
+ // =============================================================================
46
+ // STYLED LABEL COMPONENT
47
+ // =============================================================================
48
+
49
+ const LinkLabel = /*#__PURE__*/(0, _react.forwardRef)(({
50
+ className,
51
+ children,
52
+ style,
53
+ ...props
54
+ }, ref) => {
55
+ const computedClassName = (0, _utils.cn)((0, _styles.linkLabelVariants)(), className);
56
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
57
+ ref: ref,
58
+ className: computedClassName,
59
+ style: style,
60
+ ...props,
61
+ children: children
62
+ });
63
+ });
64
+ LinkLabel.displayName = 'Link.Label';
65
+
66
+ // =============================================================================
67
+ // STYLED ICON COMPONENT
68
+ // =============================================================================
69
+
70
+ const LinkIcon = ({
71
+ className,
72
+ style,
73
+ as,
74
+ ...props
75
+ }) => {
76
+ const computedClassName = (0, _utils.cn)((0, _styles.linkIconVariants)(), className);
77
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
78
+ as: as,
79
+ className: computedClassName,
80
+ style: style,
81
+ ...props
82
+ });
83
+ };
84
+ LinkIcon.displayName = 'Link.Icon';
85
+
86
+ // =============================================================================
87
+ // COMPOUND COMPONENT EXPORT
88
+ // =============================================================================
89
+
90
+ const Link = exports.Link = Object.assign(LinkRoot, {
91
+ Label: LinkLabel,
92
+ Icon: LinkIcon
93
+ });
94
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","_primitives","_utils","_Icon","_styles","_jsxRuntime","LinkPrimitive","createLink","Root","Pressable","LinkRoot","forwardRef","className","children","style","props","ref","rootClassName","cn","linkRootVariants","jsx","displayName","LinkLabel","computedClassName","linkLabelVariants","Text","LinkIcon","as","linkIconVariants","Icon","Link","exports","Object","assign","Label"],"sourceRoot":"../../../../src","sources":["components/Link/index.tsx"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAAiF,IAAAM,WAAA,GAAAN,OAAA;AAIjF,MAAMO,aAAa,GAAG,IAAAC,sBAAU,EAAC;EAC/BC,IAAI,EAAEC;AACR,CAAC,CAAC;;AAEF;AACA;AACA;;AA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WAAA,CAAAe,GAAA,EAACjB,KAAA,CAAA0B,IAAI;IAACF,EAAE,EAAEA,EAAG;IAACf,SAAS,EAAEW,iBAAkB;IAACT,KAAK,EAAEA,KAAM;IAAA,GAAKC;EAAK,CAAG,CAAC;AAChF,CAAC;AAEDW,QAAQ,CAACL,WAAW,GAAG,WAAW;;AAElC;AACA;AACA;;AAOO,MAAMS,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAGE,MAAM,CAACC,MAAM,CAACvB,QAAQ,EAAE;EAC1CwB,KAAK,EAAEZ,SAAS;EAChBO,IAAI,EAAEH;AACR,CAAC,CAA0B","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.linkRootVariants = exports.linkLabelVariants = exports.linkIconVariants = void 0;
7
+ var _classVarianceAuthority = require("class-variance-authority");
8
+ var _primitives = require("../../styles/primitives");
9
+ // TODO: Handle visited state
10
+
11
+ const linkRootVariants = exports.linkRootVariants = (0, _classVarianceAuthority.cva)(['flex-row items-center gap-1', 'web:outline-none web:focus:outline-none web:focus-visible:outline-none', _primitives.TRANSITION_COLORS, 'web:data-[focus-visible=true]:ring-2 web:data-[focus-visible=true]:ring-stroke-focus web:data-[focus-visible=true]:ring-offset-2']);
12
+ const linkLabelVariants = exports.linkLabelVariants = (0, _classVarianceAuthority.cva)(['text-content-link', 'body-md', 'underline underline-offset-4']);
13
+ const linkIconVariants = exports.linkIconVariants = (0, _classVarianceAuthority.cva)(['text-content-link', 'size-4']);
14
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_classVarianceAuthority","require","_primitives","linkRootVariants","exports","cva","TRANSITION_COLORS","linkLabelVariants","linkIconVariants"],"sourceRoot":"../../../../src","sources":["components/Link/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA;;AAEO,MAAME,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,IAAAE,2BAAG,EAAC,CAClC,6BAA6B,EAC7B,wEAAwE,EACxEC,6BAAiB,EACjB,kIAAkI,CACnI,CAAC;AAEK,MAAMC,iBAAiB,GAAAH,OAAA,CAAAG,iBAAA,GAAG,IAAAF,2BAAG,EAAC,CACnC,mBAAmB,EACnB,SAAS,EACT,8BAA8B,CAC/B,CAAC;AAEK,MAAMG,gBAAgB,GAAAJ,OAAA,CAAAI,gBAAA,GAAG,IAAAH,2BAAG,EAAC,CAAC,mBAAmB,EAAE,QAAQ,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,283 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ListItem = void 0;
7
+ Object.defineProperty(exports, "listItemContentVariants", {
8
+ enumerable: true,
9
+ get: function () {
10
+ return _styles.listItemContentVariants;
11
+ }
12
+ });
13
+ Object.defineProperty(exports, "listItemDescriptionVariants", {
14
+ enumerable: true,
15
+ get: function () {
16
+ return _styles.listItemDescriptionVariants;
17
+ }
18
+ });
19
+ Object.defineProperty(exports, "listItemLeadingSlotVariants", {
20
+ enumerable: true,
21
+ get: function () {
22
+ return _styles.listItemLeadingSlotVariants;
23
+ }
24
+ });
25
+ Object.defineProperty(exports, "listItemMetaVariants", {
26
+ enumerable: true,
27
+ get: function () {
28
+ return _styles.listItemMetaVariants;
29
+ }
30
+ });
31
+ Object.defineProperty(exports, "listItemRootVariants", {
32
+ enumerable: true,
33
+ get: function () {
34
+ return _styles.listItemRootVariants;
35
+ }
36
+ });
37
+ Object.defineProperty(exports, "listItemSectionHeaderLabelVariants", {
38
+ enumerable: true,
39
+ get: function () {
40
+ return _styles.listItemSectionHeaderLabelVariants;
41
+ }
42
+ });
43
+ Object.defineProperty(exports, "listItemSectionHeaderVariants", {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _styles.listItemSectionHeaderVariants;
47
+ }
48
+ });
49
+ Object.defineProperty(exports, "listItemTitleVariants", {
50
+ enumerable: true,
51
+ get: function () {
52
+ return _styles.listItemTitleVariants;
53
+ }
54
+ });
55
+ Object.defineProperty(exports, "listItemTrailingSlotVariants", {
56
+ enumerable: true,
57
+ get: function () {
58
+ return _styles.listItemTrailingSlotVariants;
59
+ }
60
+ });
61
+ var _react = require("react");
62
+ var _reactNative = require("react-native");
63
+ var _primitives = require("@cdx-ui/primitives");
64
+ var _utils = require("@cdx-ui/utils");
65
+ var _styles = require("./styles");
66
+ var _jsxRuntime = require("react/jsx-runtime");
67
+ const SCOPE = 'LIST_ITEM';
68
+ const RootView = (0, _utils.withStyleContext)(_reactNative.View, SCOPE);
69
+ const RootPressable = (0, _utils.withStyleContext)(_reactNative.Pressable, SCOPE);
70
+ const ListItemPrimitive = (0, _primitives.createListItem)({
71
+ View: RootView,
72
+ Pressable: RootPressable,
73
+ LeadingSlot: _reactNative.View,
74
+ Content: _reactNative.View,
75
+ Title: _reactNative.Text,
76
+ Description: _reactNative.Text,
77
+ Meta: _reactNative.Text,
78
+ TrailingSlot: _reactNative.View,
79
+ SectionHeader: _reactNative.View
80
+ });
81
+ const useListItemStyleContext = () => {
82
+ const ctx = (0, _utils.useStyleContext)(SCOPE);
83
+ return {
84
+ size: ctx?.size ?? 'default',
85
+ crossAlign: ctx?.crossAlign ?? 'center'
86
+ };
87
+ };
88
+
89
+ // =============================================================================
90
+ // ROOT
91
+ // =============================================================================
92
+
93
+ const ListItemRoot = /*#__PURE__*/(0, _react.forwardRef)(({
94
+ size = 'default',
95
+ surface = 'default',
96
+ showSeparator = true,
97
+ crossAlign = 'center',
98
+ className,
99
+ style,
100
+ ...props
101
+ }, ref) => {
102
+ const computedClassName = (0, _utils.cn)((0, _styles.listItemRootVariants)({
103
+ size,
104
+ surface,
105
+ showSeparator,
106
+ crossAlign
107
+ }), className);
108
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(ListItemPrimitive, {
109
+ ref: ref,
110
+ className: computedClassName,
111
+ context: {
112
+ size,
113
+ surface,
114
+ showSeparator,
115
+ crossAlign
116
+ },
117
+ crossAlign: crossAlign,
118
+ showSeparator: showSeparator,
119
+ size: size,
120
+ style: style,
121
+ surface: surface,
122
+ ...props
123
+ });
124
+ });
125
+ ListItemRoot.displayName = 'ListItem';
126
+
127
+ // =============================================================================
128
+ // SLOTS & TEXT
129
+ // =============================================================================
130
+
131
+ const ListItemLeadingSlot = /*#__PURE__*/(0, _react.forwardRef)(({
132
+ className,
133
+ style,
134
+ ...props
135
+ }, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(ListItemPrimitive.LeadingSlot, {
136
+ ref: ref,
137
+ className: (0, _utils.cn)((0, _styles.listItemLeadingSlotVariants)(), className),
138
+ style: style,
139
+ ...props
140
+ }));
141
+ ListItemLeadingSlot.displayName = 'ListItem.LeadingSlot';
142
+ const ListItemContent = /*#__PURE__*/(0, _react.forwardRef)(({
143
+ className,
144
+ style,
145
+ ...props
146
+ }, ref) => {
147
+ const {
148
+ crossAlign
149
+ } = useListItemStyleContext();
150
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(ListItemPrimitive.Content, {
151
+ ref: ref,
152
+ className: (0, _utils.cn)((0, _styles.listItemContentVariants)({
153
+ crossAlign
154
+ }), className),
155
+ style: style,
156
+ ...props
157
+ });
158
+ });
159
+ ListItemContent.displayName = 'ListItem.Content';
160
+ const ListItemTitle = /*#__PURE__*/(0, _react.forwardRef)(({
161
+ className,
162
+ numberOfLines = 1,
163
+ style,
164
+ ...props
165
+ }, ref) => {
166
+ const {
167
+ size
168
+ } = useListItemStyleContext();
169
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(ListItemPrimitive.Title, {
170
+ ref: ref,
171
+ className: (0, _utils.cn)((0, _styles.listItemTitleVariants)({
172
+ size
173
+ }), className),
174
+ numberOfLines: numberOfLines,
175
+ style: style,
176
+ ...props
177
+ });
178
+ });
179
+ ListItemTitle.displayName = 'ListItem.Title';
180
+ const ListItemDescription = /*#__PURE__*/(0, _react.forwardRef)(({
181
+ className,
182
+ style,
183
+ ...props
184
+ }, ref) => {
185
+ const {
186
+ size
187
+ } = useListItemStyleContext();
188
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(ListItemPrimitive.Description, {
189
+ ref: ref,
190
+ className: (0, _utils.cn)((0, _styles.listItemDescriptionVariants)({
191
+ size
192
+ }), className),
193
+ style: style,
194
+ ...props
195
+ });
196
+ });
197
+ ListItemDescription.displayName = 'ListItem.Description';
198
+ const ListItemMeta = /*#__PURE__*/(0, _react.forwardRef)(({
199
+ className,
200
+ numberOfLines = 1,
201
+ style,
202
+ ...props
203
+ }, ref) => {
204
+ const {
205
+ size
206
+ } = useListItemStyleContext();
207
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(ListItemPrimitive.Meta, {
208
+ ref: ref,
209
+ className: (0, _utils.cn)((0, _styles.listItemMetaVariants)({
210
+ size
211
+ }), className),
212
+ numberOfLines: numberOfLines,
213
+ style: style,
214
+ ...props
215
+ });
216
+ });
217
+ ListItemMeta.displayName = 'ListItem.Meta';
218
+ const ListItemTrailingSlot = /*#__PURE__*/(0, _react.forwardRef)(({
219
+ className,
220
+ style,
221
+ ...props
222
+ }, ref) => {
223
+ const {
224
+ crossAlign
225
+ } = useListItemStyleContext();
226
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(ListItemPrimitive.TrailingSlot, {
227
+ ref: ref,
228
+ className: (0, _utils.cn)((0, _styles.listItemTrailingSlotVariants)({
229
+ crossAlign
230
+ }), className),
231
+ style: style,
232
+ ...props
233
+ });
234
+ });
235
+ ListItemTrailingSlot.displayName = 'ListItem.TrailingSlot';
236
+ const wrapSectionHeaderLabel = children => {
237
+ if (typeof children === 'string' || typeof children === 'number') {
238
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
239
+ className: (0, _utils.cn)((0, _styles.listItemSectionHeaderLabelVariants)()),
240
+ children: children
241
+ });
242
+ }
243
+ return children;
244
+ };
245
+
246
+ // =============================================================================
247
+ // SECTION HEADER
248
+ // =============================================================================
249
+
250
+ const ListItemSectionHeader = /*#__PURE__*/(0, _react.forwardRef)(({
251
+ children,
252
+ className,
253
+ showDivider = true,
254
+ style,
255
+ trailing,
256
+ ...props
257
+ }, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(ListItemPrimitive.SectionHeader, {
258
+ ref: ref,
259
+ className: (0, _utils.cn)((0, _styles.listItemSectionHeaderVariants)({
260
+ showDivider
261
+ }), className),
262
+ showDivider: showDivider,
263
+ style: style,
264
+ trailing: trailing,
265
+ ...props,
266
+ children: wrapSectionHeaderLabel(children)
267
+ }));
268
+ ListItemSectionHeader.displayName = 'ListItem.SectionHeader';
269
+
270
+ // =============================================================================
271
+ // COMPOUND EXPORT
272
+ // =============================================================================
273
+
274
+ const ListItem = exports.ListItem = Object.assign(ListItemRoot, {
275
+ LeadingSlot: ListItemLeadingSlot,
276
+ Content: ListItemContent,
277
+ Title: ListItemTitle,
278
+ Description: ListItemDescription,
279
+ Meta: ListItemMeta,
280
+ TrailingSlot: ListItemTrailingSlot,
281
+ SectionHeader: ListItemSectionHeader
282
+ });
283
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","_primitives","_utils","_styles","_jsxRuntime","SCOPE","RootView","withStyleContext","View","RootPressable","Pressable","ListItemPrimitive","createListItem","LeadingSlot","Content","Title","Text","Description","Meta","TrailingSlot","SectionHeader","useListItemStyleContext","ctx","useStyleContext","size","crossAlign","ListItemRoot","forwardRef","surface","showSeparator","className","style","props","ref","computedClassName","cn","listItemRootVariants","jsx","context","displayName","ListItemLeadingSlot","listItemLeadingSlotVariants","ListItemContent","listItemContentVariants","ListItemTitle","numberOfLines","listItemTitleVariants","ListItemDescription","listItemDescriptionVariants","ListItemMeta","listItemMetaVariants","ListItemTrailingSlot","listItemTrailingSlotVariants","wrapSectionHeaderLabel","children","listItemSectionHeaderLabelVariants","ListItemSectionHeader","showDivider","trailing","listItemSectionHeaderVariants","ListItem","exports","Object","assign"],"sourceRoot":"../../../../src","sources":["components/ListItem/index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAOA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAWkB,IAAAK,WAAA,GAAAL,OAAA;AAElB,MAAMM,KAAK,GAAG,WAAW;AAEzB,MAAMC,QAAQ,GAAG,IAAAC,uBAAgB,EAACC,iBAAI,EAAEH,KAAK,CAAC;AAC9C,MAAMI,aAAa,GAAG,IAAAF,uBAAgB,EAACG,sBAAS,EAAEL,KAAK,CAAC;AAExD,MAAMM,iBAAiB,GAAG,IAAAC,0BAAc,EAAC;EACvCJ,IAAI,EAAEF,QAAQ;EACdI,SAAS,EAAED,aAAa;EACxBI,WAAW,EAAEL,iBAAI;EACjBM,OAAO,EAAEN,iBAAI;EACbO,KAAK,EAAEC,iBAAI;EACXC,WAAW,EAAED,iBAAI;EACjBE,IAAI,EAAEF,iBAAI;EACVG,YAAY,EAAEX,iBAAI;EAClBY,aAAa,EAAEZ;AACjB,CAAC,CAAC;AAEF,MAAMa,uBAAuB,GAAGA,CAAA,KAAyD;EACvF,MAAMC,GAAG,GAAG,IAAAC,sBAAe,EAAClB,KAAK,CAAqC;EACtE,OAAO;IAAEmB,IAAI,EAAEF,GAAG,EAAEE,IAAI,IAAI,SAAS;IAAEC,UAAU,EAAEH,GAAG,EAAEG,UAAU,IAAI;EAAS,CAAC;AAClF,CAAC;;AAED;AACA;AACA;;AAMA,MAAMC,YAAY,gBAAG,IAAAC,iBAAU,EAC7B,CACE;EACEH,IAAI,GAAG,SAAS;EAChBI,OAAO,GAAG,SAAS;EACnBC,aAAa,GAAG,IAA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9B,YAAY,EAAEgC,oBAAoB;EAClC/B,aAAa,EAAEoC;AACjB,CAAC,CAAqB","ignoreList":[]}
@@ -0,0 +1,130 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.listItemTrailingSlotVariants = exports.listItemTitleVariants = exports.listItemSectionHeaderVariants = exports.listItemSectionHeaderLabelVariants = exports.listItemRootVariants = exports.listItemMetaVariants = exports.listItemLeadingSlotVariants = exports.listItemDescriptionVariants = exports.listItemContentVariants = void 0;
7
+ var _reactNative = require("react-native");
8
+ var _classVarianceAuthority = require("class-variance-authority");
9
+ var _primitives = require("../../styles/primitives");
10
+ // ── Root (row): density, surface, separator, interactive feedback ──────────
11
+
12
+ const listItemRootVariants = exports.listItemRootVariants = (0, _classVarianceAuthority.cva)(['flex-row self-stretch w-full px-4', 'data-[disabled=true]:opacity-50 data-[disabled=true]:pointer-events-none', 'data-[active=true]:opacity-70', _primitives.TRANSITION_COLORS, _reactNative.Platform.select({
13
+ web: ['outline-none', 'web:data-[hovered=true]:bg-slate-50', 'web:focus-visible:data-[disabled=false]:bg-slate-50', 'web:focus-visible:data-[disabled=false]:ring-2 web:focus-visible:data-[disabled=false]:ring-slate-400/40 web:focus-visible:data-[disabled=false]:ring-offset-2'].join(' '),
14
+ default: ''
15
+ })], {
16
+ variants: {
17
+ size: {
18
+ default: 'gap-3 py-4',
19
+ compact: 'gap-2 py-3'
20
+ },
21
+ surface: {
22
+ default: 'bg-white',
23
+ negative: 'bg-red-50'
24
+ },
25
+ showSeparator: {
26
+ true: ['border-b border-solid', _primitives.COLOR_BORDER_DEFAULT],
27
+ false: 'border-b-0'
28
+ },
29
+ crossAlign: {
30
+ center: 'items-center',
31
+ start: 'items-start'
32
+ }
33
+ },
34
+ compoundVariants: [{
35
+ surface: 'negative',
36
+ className: _reactNative.Platform.select({
37
+ web: 'web:data-[hovered=true]:bg-red-100/90',
38
+ default: ''
39
+ })
40
+ }],
41
+ defaultVariants: {
42
+ size: 'default',
43
+ surface: 'default',
44
+ showSeparator: true,
45
+ crossAlign: 'center'
46
+ }
47
+ });
48
+
49
+ // ── Leading / trailing slots ─────────────────────────────────────────────────
50
+
51
+ const listItemLeadingSlotVariants = exports.listItemLeadingSlotVariants = (0, _classVarianceAuthority.cva)(['flex shrink-0 items-center justify-center']);
52
+ const listItemTrailingSlotVariants = exports.listItemTrailingSlotVariants = (0, _classVarianceAuthority.cva)(['flex shrink-0 flex-row justify-end gap-2'], {
53
+ variants: {
54
+ crossAlign: {
55
+ center: 'items-center',
56
+ start: 'items-start self-start'
57
+ }
58
+ },
59
+ defaultVariants: {
60
+ crossAlign: 'center'
61
+ }
62
+ });
63
+
64
+ // ── Content stack (title / description / meta) ───────────────────────────────
65
+
66
+ const listItemContentVariants = exports.listItemContentVariants = (0, _classVarianceAuthority.cva)(['flex min-w-0 flex-1 flex-col gap-1'], {
67
+ variants: {
68
+ crossAlign: {
69
+ center: 'justify-center',
70
+ start: 'justify-start'
71
+ }
72
+ },
73
+ defaultVariants: {
74
+ crossAlign: 'center'
75
+ }
76
+ });
77
+
78
+ // ── Typography ───────────────────────────────────────────────────────────────
79
+
80
+ const listItemTitleVariants = exports.listItemTitleVariants = (0, _classVarianceAuthority.cva)([_primitives.COLOR_TEXT_PRIMARY, 'font-medium'], {
81
+ variants: {
82
+ size: {
83
+ default: 'text-base leading-snug',
84
+ compact: 'text-sm leading-snug'
85
+ }
86
+ },
87
+ defaultVariants: {
88
+ size: 'default'
89
+ }
90
+ });
91
+ const listItemDescriptionVariants = exports.listItemDescriptionVariants = (0, _classVarianceAuthority.cva)([_primitives.COLOR_TEXT_SECONDARY], {
92
+ variants: {
93
+ size: {
94
+ default: 'text-sm leading-normal',
95
+ compact: 'text-xs leading-normal'
96
+ }
97
+ },
98
+ defaultVariants: {
99
+ size: 'default'
100
+ }
101
+ });
102
+ const listItemMetaVariants = exports.listItemMetaVariants = (0, _classVarianceAuthority.cva)([_primitives.COLOR_TEXT_MUTED], {
103
+ variants: {
104
+ size: {
105
+ default: 'text-xs leading-normal',
106
+ compact: 'text-[11px] leading-normal'
107
+ }
108
+ },
109
+ defaultVariants: {
110
+ size: 'default'
111
+ }
112
+ });
113
+
114
+ // ── Section header (group label row inside lists / cards) ───────────────────
115
+
116
+ const listItemSectionHeaderVariants = exports.listItemSectionHeaderVariants = (0, _classVarianceAuthority.cva)(['flex-row items-center justify-between gap-2 border-b border-solid px-4 py-3', _primitives.COLOR_BORDER_DEFAULT], {
117
+ variants: {
118
+ showDivider: {
119
+ true: ['border-t-4 border-solid border-t-surface-brand-strong/40', 'border-x-0'],
120
+ false: 'border-t-0'
121
+ }
122
+ },
123
+ defaultVariants: {
124
+ showDivider: true
125
+ }
126
+ });
127
+
128
+ /** Default section-title typography; applied by `ListItem.SectionHeader` for string/number children. Exported for rare custom composition. */
129
+ const listItemSectionHeaderLabelVariants = exports.listItemSectionHeaderLabelVariants = (0, _classVarianceAuthority.cva)(['text-xs font-semibold uppercase tracking-wide', _primitives.COLOR_TEXT_SECONDARY]);
130
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_classVarianceAuthority","_primitives","listItemRootVariants","exports","cva","TRANSITION_COLORS","Platform","select","web","join","default","variants","size","compact","surface","negative","showSeparator","true","COLOR_BORDER_DEFAULT","false","crossAlign","center","start","compoundVariants","className","defaultVariants","listItemLeadingSlotVariants","listItemTrailingSlotVariants","listItemContentVariants","listItemTitleVariants","COLOR_TEXT_PRIMARY","listItemDescriptionVariants","COLOR_TEXT_SECONDARY","listItemMetaVariants","COLOR_TEXT_MUTED","listItemSectionHeaderVariants","showDivider","listItemSectionHeaderLabelVariants"],"sourceRoot":"../../../../src","sources":["components/ListItem/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAQA;;AAEO,MAAMG,oB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