@cocso-ui/react 0.2.21 → 1.0.0

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 (353) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/cn.d.ts +12 -0
  3. package/dist/cjs/cn.js +17 -0
  4. package/dist/cjs/components/accordion/accordion.d.ts +25 -0
  5. package/dist/cjs/components/accordion/accordion.js +54 -0
  6. package/dist/cjs/components/accordion/accordion.module.css.js +9 -0
  7. package/dist/cjs/components/alert/alert.d.ts +15 -0
  8. package/dist/cjs/components/alert/alert.js +44 -0
  9. package/dist/cjs/components/alert/alert.module.css.js +9 -0
  10. package/dist/cjs/components/avatar/avatar.d.ts +18 -0
  11. package/dist/cjs/components/avatar/avatar.js +52 -0
  12. package/dist/cjs/components/avatar/avatar.module.css.js +9 -0
  13. package/dist/cjs/components/badge/badge.d.ts +16 -0
  14. package/dist/cjs/components/badge/badge.js +60 -0
  15. package/dist/cjs/components/badge/badge.module.css.js +9 -0
  16. package/dist/cjs/components/breadcrumb/breadcrumb.d.ts +14 -0
  17. package/dist/cjs/components/breadcrumb/breadcrumb.js +50 -0
  18. package/dist/cjs/components/breadcrumb/breadcrumb.module.css.js +9 -0
  19. package/dist/cjs/components/button/button.d.ts +27 -0
  20. package/dist/cjs/components/button/button.js +83 -0
  21. package/dist/cjs/components/button/button.module.css.js +9 -0
  22. package/dist/cjs/components/card/card.d.ts +13 -0
  23. package/dist/cjs/components/card/card.js +30 -0
  24. package/dist/cjs/components/card/card.module.css.js +9 -0
  25. package/dist/cjs/components/checkbox/checkbox.d.ts +20 -0
  26. package/dist/cjs/components/checkbox/checkbox.js +116 -0
  27. package/dist/cjs/components/checkbox/checkbox.module.css.js +9 -0
  28. package/dist/cjs/components/day-picker/day-picker.d.ts +18 -0
  29. package/dist/cjs/components/day-picker/day-picker.js +117 -0
  30. package/dist/cjs/components/day-picker/day-picker.module.css.js +9 -0
  31. package/dist/cjs/components/dialog/dialog.d.ts +29 -0
  32. package/dist/cjs/components/dialog/dialog.js +103 -0
  33. package/dist/cjs/components/dialog/dialog.module.css.js +9 -0
  34. package/dist/cjs/components/dropdown/dropdown.d.ts +16 -0
  35. package/dist/cjs/components/dropdown/dropdown.js +43 -0
  36. package/dist/cjs/components/dropdown/dropdown.module.css.js +9 -0
  37. package/dist/cjs/components/field/field.d.ts +26 -0
  38. package/dist/cjs/components/field/field.js +49 -0
  39. package/dist/cjs/components/field/field.module.css.js +9 -0
  40. package/dist/cjs/components/input/input.d.ts +17 -0
  41. package/dist/cjs/components/input/input.js +69 -0
  42. package/dist/cjs/components/input/input.module.css.js +9 -0
  43. package/dist/cjs/components/link/link.d.ts +28 -0
  44. package/dist/cjs/components/link/link.js +64 -0
  45. package/dist/cjs/components/link/link.module.css.js +9 -0
  46. package/dist/cjs/components/month-picker/month-picker.d.ts +18 -0
  47. package/dist/cjs/components/month-picker/month-picker.js +108 -0
  48. package/dist/cjs/components/month-picker/month-picker.module.css.js +9 -0
  49. package/dist/cjs/components/one-time-password-field/one-time-password-field.d.ts +13 -0
  50. package/dist/cjs/components/one-time-password-field/one-time-password-field.js +44 -0
  51. package/dist/cjs/components/one-time-password-field/one-time-password-field.module.css.js +9 -0
  52. package/dist/cjs/components/pagination/pagination.d.ts +21 -0
  53. package/dist/cjs/{pagination/Pagination.js → components/pagination/pagination.js} +35 -20
  54. package/dist/cjs/components/pagination/pagination.module.css.js +9 -0
  55. package/dist/cjs/components/popover/popover.d.ts +14 -0
  56. package/dist/cjs/components/popover/popover.js +47 -0
  57. package/dist/cjs/components/popover/popover.module.css.js +9 -0
  58. package/dist/cjs/components/progress/progress.d.ts +17 -0
  59. package/dist/cjs/components/progress/progress.js +43 -0
  60. package/dist/cjs/components/progress/progress.module.css.js +9 -0
  61. package/dist/cjs/components/radio-group/radio-group.d.ts +23 -0
  62. package/dist/cjs/components/radio-group/radio-group.js +53 -0
  63. package/dist/cjs/components/radio-group/radio-group.module.css.js +9 -0
  64. package/dist/cjs/components/select/select.d.ts +17 -0
  65. package/dist/cjs/components/select/select.js +85 -0
  66. package/dist/cjs/components/select/select.module.css.js +9 -0
  67. package/dist/cjs/components/skeleton/skeleton.d.ts +15 -0
  68. package/dist/cjs/components/skeleton/skeleton.js +30 -0
  69. package/dist/cjs/components/skeleton/skeleton.module.css.js +9 -0
  70. package/dist/cjs/components/spinner/spinner.d.ts +17 -0
  71. package/dist/cjs/components/spinner/spinner.js +70 -0
  72. package/dist/cjs/components/spinner/spinner.module.css.js +9 -0
  73. package/dist/cjs/components/stock-quantity-status/stock-quantity-status.d.ts +12 -0
  74. package/dist/cjs/components/stock-quantity-status/stock-quantity-status.js +119 -0
  75. package/dist/cjs/components/stock-quantity-status/stock-quantity-status.module.css.js +9 -0
  76. package/dist/cjs/components/switch/switch.d.ts +19 -0
  77. package/dist/cjs/components/switch/switch.js +74 -0
  78. package/dist/cjs/components/switch/switch.module.css.js +9 -0
  79. package/dist/cjs/components/tab/tab.d.ts +16 -0
  80. package/dist/cjs/components/tab/tab.js +33 -0
  81. package/dist/cjs/components/tooltip/tooltip.d.ts +17 -0
  82. package/dist/cjs/components/tooltip/tooltip.js +48 -0
  83. package/dist/cjs/components/tooltip/tooltip.module.css.js +9 -0
  84. package/dist/cjs/components/typography/typography.d.ts +30 -0
  85. package/dist/cjs/components/typography/typography.js +81 -0
  86. package/dist/cjs/components/typography/typography.module.css.js +9 -0
  87. package/dist/cjs/ecosystem/codegen/generated/alert.css.js +6 -0
  88. package/dist/cjs/ecosystem/codegen/generated/alert.js +12 -0
  89. package/dist/cjs/ecosystem/codegen/generated/avatar.css.js +6 -0
  90. package/dist/cjs/ecosystem/codegen/generated/avatar.js +13 -0
  91. package/dist/cjs/ecosystem/codegen/generated/badge.css.js +6 -0
  92. package/dist/cjs/ecosystem/codegen/generated/badge.js +14 -0
  93. package/dist/cjs/ecosystem/codegen/generated/breadcrumb.css.js +6 -0
  94. package/dist/cjs/ecosystem/codegen/generated/breadcrumb.js +12 -0
  95. package/dist/cjs/ecosystem/codegen/generated/button.css.js +6 -0
  96. package/dist/cjs/ecosystem/codegen/generated/button.js +14 -0
  97. package/dist/cjs/ecosystem/codegen/generated/card.css.js +6 -0
  98. package/dist/cjs/ecosystem/codegen/generated/card.js +13 -0
  99. package/dist/cjs/ecosystem/codegen/generated/checkbox.css.js +6 -0
  100. package/dist/cjs/ecosystem/codegen/generated/checkbox.js +13 -0
  101. package/dist/cjs/ecosystem/codegen/generated/input.css.js +6 -0
  102. package/dist/cjs/ecosystem/codegen/generated/input.js +12 -0
  103. package/dist/cjs/ecosystem/codegen/generated/link.css.js +6 -0
  104. package/dist/cjs/ecosystem/codegen/generated/link.js +12 -0
  105. package/dist/cjs/ecosystem/codegen/generated/progress.css.js +6 -0
  106. package/dist/cjs/ecosystem/codegen/generated/progress.js +13 -0
  107. package/dist/cjs/ecosystem/codegen/generated/radio.css.js +6 -0
  108. package/dist/cjs/ecosystem/codegen/generated/radio.js +13 -0
  109. package/dist/cjs/ecosystem/codegen/generated/select.css.js +6 -0
  110. package/dist/cjs/ecosystem/codegen/generated/select.js +12 -0
  111. package/dist/cjs/ecosystem/codegen/generated/skeleton.css.js +6 -0
  112. package/dist/cjs/ecosystem/codegen/generated/skeleton.js +13 -0
  113. package/dist/cjs/ecosystem/codegen/generated/spinner-geometry.js +33 -0
  114. package/dist/cjs/ecosystem/codegen/generated/spinner.css.js +6 -0
  115. package/dist/cjs/ecosystem/codegen/generated/spinner.js +13 -0
  116. package/dist/cjs/ecosystem/codegen/generated/stock-quantity-status.css.js +6 -0
  117. package/dist/cjs/ecosystem/codegen/generated/stock-quantity-status.js +12 -0
  118. package/dist/cjs/ecosystem/codegen/generated/switch.css.js +6 -0
  119. package/dist/cjs/ecosystem/codegen/generated/switch.js +14 -0
  120. package/dist/cjs/index.d.ts +30 -19
  121. package/dist/cjs/index.js +65 -43
  122. package/dist/cjs/token/color.d.ts +12 -0
  123. package/dist/cjs/token/color.js +93 -81
  124. package/dist/cjs/token/radius.d.ts +12 -0
  125. package/dist/cjs/token/radius.js +14 -0
  126. package/dist/cjs/token/spacing.d.ts +24 -23
  127. package/dist/cjs/token/spacing.js +24 -23
  128. package/dist/cjs/token/typography.d.ts +17 -0
  129. package/dist/cjs/token/typography.js +17 -6
  130. package/dist/esm/cn.d.mts +12 -0
  131. package/dist/esm/cn.mjs +15 -0
  132. package/dist/esm/components/accordion/accordion.d.mts +25 -0
  133. package/dist/esm/components/accordion/accordion.mjs +52 -0
  134. package/dist/esm/components/accordion/accordion.module.css.mjs +3 -0
  135. package/dist/esm/components/alert/alert.d.mts +15 -0
  136. package/dist/esm/components/alert/alert.mjs +41 -0
  137. package/dist/esm/components/alert/alert.module.css.mjs +3 -0
  138. package/dist/esm/components/avatar/avatar.d.mts +18 -0
  139. package/dist/esm/components/avatar/avatar.mjs +49 -0
  140. package/dist/esm/components/avatar/avatar.module.css.mjs +3 -0
  141. package/dist/esm/components/badge/badge.d.mts +16 -0
  142. package/dist/esm/components/badge/badge.mjs +57 -0
  143. package/dist/esm/components/badge/badge.module.css.mjs +3 -0
  144. package/dist/esm/components/breadcrumb/breadcrumb.d.mts +14 -0
  145. package/dist/esm/components/breadcrumb/breadcrumb.mjs +47 -0
  146. package/dist/esm/components/breadcrumb/breadcrumb.module.css.mjs +3 -0
  147. package/dist/esm/components/button/button.d.mts +27 -0
  148. package/dist/esm/components/button/button.mjs +80 -0
  149. package/dist/esm/components/button/button.module.css.mjs +3 -0
  150. package/dist/esm/components/card/card.d.mts +13 -0
  151. package/dist/esm/components/card/card.mjs +27 -0
  152. package/dist/esm/components/card/card.module.css.mjs +3 -0
  153. package/dist/esm/components/checkbox/checkbox.d.mts +20 -0
  154. package/dist/esm/components/checkbox/checkbox.mjs +113 -0
  155. package/dist/esm/components/checkbox/checkbox.module.css.mjs +3 -0
  156. package/dist/esm/components/day-picker/day-picker.d.mts +18 -0
  157. package/dist/esm/components/day-picker/day-picker.mjs +115 -0
  158. package/dist/esm/components/day-picker/day-picker.module.css.mjs +3 -0
  159. package/dist/esm/components/dialog/dialog.d.mts +29 -0
  160. package/dist/esm/components/dialog/dialog.mjs +101 -0
  161. package/dist/esm/components/dialog/dialog.module.css.mjs +3 -0
  162. package/dist/esm/components/dropdown/dropdown.d.mts +16 -0
  163. package/dist/esm/components/dropdown/dropdown.mjs +41 -0
  164. package/dist/esm/components/dropdown/dropdown.module.css.mjs +3 -0
  165. package/dist/esm/components/field/field.d.mts +26 -0
  166. package/dist/esm/components/field/field.mjs +46 -0
  167. package/dist/esm/components/field/field.module.css.mjs +3 -0
  168. package/dist/esm/components/input/input.d.mts +17 -0
  169. package/dist/esm/components/input/input.mjs +66 -0
  170. package/dist/esm/components/input/input.module.css.mjs +3 -0
  171. package/dist/esm/components/link/link.d.mts +28 -0
  172. package/dist/esm/components/link/link.mjs +61 -0
  173. package/dist/esm/components/link/link.module.css.mjs +3 -0
  174. package/dist/esm/components/month-picker/month-picker.d.mts +18 -0
  175. package/dist/esm/components/month-picker/month-picker.mjs +106 -0
  176. package/dist/esm/components/month-picker/month-picker.module.css.mjs +3 -0
  177. package/dist/esm/components/one-time-password-field/one-time-password-field.d.mts +13 -0
  178. package/dist/esm/components/one-time-password-field/one-time-password-field.mjs +42 -0
  179. package/dist/esm/components/one-time-password-field/one-time-password-field.module.css.mjs +3 -0
  180. package/dist/esm/components/pagination/pagination.d.mts +21 -0
  181. package/dist/esm/{pagination/Pagination.mjs → components/pagination/pagination.mjs} +30 -15
  182. package/dist/esm/components/pagination/pagination.module.css.mjs +3 -0
  183. package/dist/esm/components/popover/popover.d.mts +14 -0
  184. package/dist/esm/components/popover/popover.mjs +45 -0
  185. package/dist/esm/components/popover/popover.module.css.mjs +3 -0
  186. package/dist/esm/components/progress/progress.d.mts +17 -0
  187. package/dist/esm/components/progress/progress.mjs +40 -0
  188. package/dist/esm/components/progress/progress.module.css.mjs +3 -0
  189. package/dist/esm/components/radio-group/radio-group.d.mts +23 -0
  190. package/dist/esm/components/radio-group/radio-group.mjs +50 -0
  191. package/dist/esm/components/radio-group/radio-group.module.css.mjs +3 -0
  192. package/dist/esm/components/select/select.d.mts +17 -0
  193. package/dist/esm/components/select/select.mjs +82 -0
  194. package/dist/esm/components/select/select.module.css.mjs +3 -0
  195. package/dist/esm/components/skeleton/skeleton.d.mts +15 -0
  196. package/dist/esm/components/skeleton/skeleton.mjs +27 -0
  197. package/dist/esm/components/skeleton/skeleton.module.css.mjs +3 -0
  198. package/dist/esm/components/spinner/spinner.d.mts +17 -0
  199. package/dist/esm/components/spinner/spinner.mjs +67 -0
  200. package/dist/esm/components/spinner/spinner.module.css.mjs +3 -0
  201. package/dist/esm/components/stock-quantity-status/stock-quantity-status.d.mts +12 -0
  202. package/dist/esm/components/stock-quantity-status/stock-quantity-status.mjs +116 -0
  203. package/dist/esm/components/stock-quantity-status/stock-quantity-status.module.css.mjs +3 -0
  204. package/dist/esm/components/switch/switch.d.mts +19 -0
  205. package/dist/esm/components/switch/switch.mjs +71 -0
  206. package/dist/esm/components/switch/switch.module.css.mjs +3 -0
  207. package/dist/esm/components/tab/tab.d.mts +16 -0
  208. package/dist/esm/components/tab/tab.mjs +31 -0
  209. package/dist/esm/components/tooltip/tooltip.d.mts +17 -0
  210. package/dist/esm/components/tooltip/tooltip.mjs +46 -0
  211. package/dist/esm/components/tooltip/tooltip.module.css.mjs +3 -0
  212. package/dist/esm/components/typography/typography.d.mts +30 -0
  213. package/dist/esm/components/typography/typography.mjs +79 -0
  214. package/dist/esm/components/typography/typography.module.css.mjs +3 -0
  215. package/dist/esm/ecosystem/codegen/generated/alert.mjs +10 -0
  216. package/dist/esm/ecosystem/codegen/generated/avatar.mjs +11 -0
  217. package/dist/esm/ecosystem/codegen/generated/badge.mjs +12 -0
  218. package/dist/esm/ecosystem/codegen/generated/breadcrumb.mjs +10 -0
  219. package/dist/esm/ecosystem/codegen/generated/button.mjs +12 -0
  220. package/dist/esm/ecosystem/codegen/generated/card.mjs +11 -0
  221. package/dist/esm/ecosystem/codegen/generated/checkbox.mjs +11 -0
  222. package/dist/esm/ecosystem/codegen/generated/input.mjs +10 -0
  223. package/dist/esm/ecosystem/codegen/generated/link.mjs +10 -0
  224. package/dist/esm/ecosystem/codegen/generated/progress.mjs +11 -0
  225. package/dist/esm/ecosystem/codegen/generated/radio.mjs +11 -0
  226. package/dist/esm/ecosystem/codegen/generated/select.mjs +10 -0
  227. package/dist/esm/ecosystem/codegen/generated/skeleton.mjs +11 -0
  228. package/dist/esm/ecosystem/codegen/generated/spinner-geometry.mjs +30 -0
  229. package/dist/esm/ecosystem/codegen/generated/spinner.mjs +11 -0
  230. package/dist/esm/ecosystem/codegen/generated/stock-quantity-status.mjs +10 -0
  231. package/dist/esm/ecosystem/codegen/generated/switch.mjs +12 -0
  232. package/dist/esm/index.css +7 -1
  233. package/dist/esm/index.d.mts +30 -19
  234. package/dist/esm/index.mjs +31 -20
  235. package/dist/esm/token/color.d.mts +12 -0
  236. package/dist/esm/token/color.mjs +93 -81
  237. package/dist/esm/token/radius.d.mts +12 -0
  238. package/dist/esm/token/radius.mjs +12 -0
  239. package/dist/esm/token/spacing.d.mts +24 -23
  240. package/dist/esm/token/spacing.mjs +24 -23
  241. package/dist/esm/token/typography.d.mts +17 -0
  242. package/dist/esm/token/typography.mjs +17 -6
  243. package/package.json +29 -26
  244. package/dist/cjs/accordion/Accordion.d.ts +0 -15
  245. package/dist/cjs/accordion/Accordion.js +0 -71
  246. package/dist/cjs/accordion/Accordion.module.css.js +0 -9
  247. package/dist/cjs/badge/Badge.d.ts +0 -13
  248. package/dist/cjs/badge/Badge.js +0 -50
  249. package/dist/cjs/badge/Badge.module.css.js +0 -9
  250. package/dist/cjs/button/Button.d.ts +0 -23
  251. package/dist/cjs/button/Button.js +0 -117
  252. package/dist/cjs/button/Button.module.css.js +0 -9
  253. package/dist/cjs/checkbox/Checkbox.d.ts +0 -18
  254. package/dist/cjs/checkbox/Checkbox.js +0 -117
  255. package/dist/cjs/checkbox/Checkbox.module.css.js +0 -9
  256. package/dist/cjs/day-picker/DayPicker.d.ts +0 -14
  257. package/dist/cjs/day-picker/DayPicker.js +0 -98
  258. package/dist/cjs/day-picker/DayPicker.module.css.js +0 -9
  259. package/dist/cjs/dropdown/Dropdown.d.ts +0 -11
  260. package/dist/cjs/dropdown/Dropdown.js +0 -55
  261. package/dist/cjs/dropdown/Dropdown.module.css.js +0 -9
  262. package/dist/cjs/link/Link.d.ts +0 -16
  263. package/dist/cjs/link/Link.js +0 -35
  264. package/dist/cjs/link/Link.module.css.js +0 -9
  265. package/dist/cjs/modal/Modal.d.ts +0 -12
  266. package/dist/cjs/modal/Modal.js +0 -106
  267. package/dist/cjs/modal/Modal.module.css.js +0 -9
  268. package/dist/cjs/month-picker/MonthPicker.d.ts +0 -14
  269. package/dist/cjs/month-picker/MonthPicker.js +0 -91
  270. package/dist/cjs/month-picker/MonthPicker.module.css.js +0 -9
  271. package/dist/cjs/one-time-password-field/OneTimePasswordField.d.ts +0 -8
  272. package/dist/cjs/one-time-password-field/OneTimePasswordField.js +0 -52
  273. package/dist/cjs/one-time-password-field/OneTimePasswordField.module.css.js +0 -9
  274. package/dist/cjs/pagination/Pagination.d.ts +0 -13
  275. package/dist/cjs/pagination/Pagination.module.css.js +0 -9
  276. package/dist/cjs/popover/Popover.d.ts +0 -10
  277. package/dist/cjs/popover/Popover.js +0 -44
  278. package/dist/cjs/popover/Popover.module.css.js +0 -9
  279. package/dist/cjs/radio-group/RadioGroup.d.ts +0 -9
  280. package/dist/cjs/radio-group/RadioGroup.js +0 -66
  281. package/dist/cjs/radio-group/RadioGroup.module.css.js +0 -9
  282. package/dist/cjs/select/Select.d.ts +0 -13
  283. package/dist/cjs/select/Select.js +0 -85
  284. package/dist/cjs/select/Select.module.css.js +0 -9
  285. package/dist/cjs/spinner/Spinner.d.ts +0 -14
  286. package/dist/cjs/spinner/Spinner.js +0 -40
  287. package/dist/cjs/spinner/Spinner.module.css.js +0 -9
  288. package/dist/cjs/stock-quantity-status/StockQuantityStatus.d.ts +0 -12
  289. package/dist/cjs/stock-quantity-status/StockQuantityStatus.js +0 -105
  290. package/dist/cjs/stock-quantity-status/StockQuantityStatus.module.css.js +0 -9
  291. package/dist/cjs/switch/Switch.d.ts +0 -16
  292. package/dist/cjs/switch/Switch.js +0 -89
  293. package/dist/cjs/switch/Switch.module.css.js +0 -9
  294. package/dist/cjs/tab/Tab.d.ts +0 -10
  295. package/dist/cjs/tab/Tab.js +0 -64
  296. package/dist/cjs/typography/Typography.d.ts +0 -33
  297. package/dist/cjs/typography/Typography.js +0 -90
  298. package/dist/cjs/typography/Typography.module.css.js +0 -9
  299. package/dist/esm/accordion/Accordion.d.mts +0 -15
  300. package/dist/esm/accordion/Accordion.mjs +0 -50
  301. package/dist/esm/accordion/Accordion.module.css.mjs +0 -3
  302. package/dist/esm/badge/Badge.d.mts +0 -13
  303. package/dist/esm/badge/Badge.mjs +0 -48
  304. package/dist/esm/badge/Badge.module.css.mjs +0 -3
  305. package/dist/esm/button/Button.d.mts +0 -23
  306. package/dist/esm/button/Button.mjs +0 -115
  307. package/dist/esm/button/Button.module.css.mjs +0 -3
  308. package/dist/esm/checkbox/Checkbox.d.mts +0 -18
  309. package/dist/esm/checkbox/Checkbox.mjs +0 -96
  310. package/dist/esm/checkbox/Checkbox.module.css.mjs +0 -3
  311. package/dist/esm/day-picker/DayPicker.d.mts +0 -14
  312. package/dist/esm/day-picker/DayPicker.mjs +0 -96
  313. package/dist/esm/day-picker/DayPicker.module.css.mjs +0 -3
  314. package/dist/esm/dropdown/Dropdown.d.mts +0 -11
  315. package/dist/esm/dropdown/Dropdown.mjs +0 -34
  316. package/dist/esm/dropdown/Dropdown.module.css.mjs +0 -3
  317. package/dist/esm/link/Link.d.mts +0 -16
  318. package/dist/esm/link/Link.mjs +0 -33
  319. package/dist/esm/link/Link.module.css.mjs +0 -3
  320. package/dist/esm/modal/Modal.d.mts +0 -12
  321. package/dist/esm/modal/Modal.mjs +0 -85
  322. package/dist/esm/modal/Modal.module.css.mjs +0 -3
  323. package/dist/esm/month-picker/MonthPicker.d.mts +0 -14
  324. package/dist/esm/month-picker/MonthPicker.mjs +0 -89
  325. package/dist/esm/month-picker/MonthPicker.module.css.mjs +0 -3
  326. package/dist/esm/one-time-password-field/OneTimePasswordField.d.mts +0 -8
  327. package/dist/esm/one-time-password-field/OneTimePasswordField.mjs +0 -31
  328. package/dist/esm/one-time-password-field/OneTimePasswordField.module.css.mjs +0 -3
  329. package/dist/esm/pagination/Pagination.d.mts +0 -13
  330. package/dist/esm/pagination/Pagination.module.css.mjs +0 -3
  331. package/dist/esm/popover/Popover.d.mts +0 -10
  332. package/dist/esm/popover/Popover.mjs +0 -23
  333. package/dist/esm/popover/Popover.module.css.mjs +0 -3
  334. package/dist/esm/radio-group/RadioGroup.d.mts +0 -9
  335. package/dist/esm/radio-group/RadioGroup.mjs +0 -45
  336. package/dist/esm/radio-group/RadioGroup.module.css.mjs +0 -3
  337. package/dist/esm/select/Select.d.mts +0 -13
  338. package/dist/esm/select/Select.mjs +0 -83
  339. package/dist/esm/select/Select.module.css.mjs +0 -3
  340. package/dist/esm/spinner/Spinner.d.mts +0 -14
  341. package/dist/esm/spinner/Spinner.mjs +0 -38
  342. package/dist/esm/spinner/Spinner.module.css.mjs +0 -3
  343. package/dist/esm/stock-quantity-status/StockQuantityStatus.d.mts +0 -12
  344. package/dist/esm/stock-quantity-status/StockQuantityStatus.mjs +0 -102
  345. package/dist/esm/stock-quantity-status/StockQuantityStatus.module.css.mjs +0 -3
  346. package/dist/esm/switch/Switch.d.mts +0 -16
  347. package/dist/esm/switch/Switch.mjs +0 -68
  348. package/dist/esm/switch/Switch.module.css.mjs +0 -3
  349. package/dist/esm/tab/Tab.d.mts +0 -10
  350. package/dist/esm/tab/Tab.mjs +0 -43
  351. package/dist/esm/typography/Typography.d.mts +0 -33
  352. package/dist/esm/typography/Typography.mjs +0 -88
  353. package/dist/esm/typography/Typography.module.css.mjs +0 -3
@@ -1,3 +1,4 @@
1
+ /** Font size scale from 10 to 60. */
1
2
  declare const fontSize: {
2
3
  readonly 10: 10;
3
4
  readonly 11: 11;
@@ -16,11 +17,23 @@ declare const fontSize: {
16
17
  readonly 60: 60;
17
18
  };
18
19
  type FontSize = keyof typeof fontSize;
20
+ /**
21
+ * A font size that can optionally vary across breakpoints.
22
+ *
23
+ * Accepted forms:
24
+ * - A single {@link FontSize} applied at all breakpoints.
25
+ * - A tuple `[base, tablet?, desktop?]` for ordered breakpoint overrides.
26
+ * - An object `{ base, tablet?, desktop? }` for named breakpoint overrides.
27
+ */
19
28
  type ResponsiveFontSize = FontSize | [FontSize, FontSize?, FontSize?] | {
20
29
  base: FontSize;
21
30
  tablet?: FontSize;
22
31
  desktop?: FontSize;
23
32
  };
33
+ /**
34
+ * Font weights as defined in the CSS specification.
35
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight
36
+ */
24
37
  declare const fontWeight: {
25
38
  readonly thin: 100;
26
39
  readonly extralight: 200;
@@ -33,6 +46,10 @@ declare const fontWeight: {
33
46
  readonly black: 900;
34
47
  };
35
48
  type FontWeight = keyof typeof fontWeight;
49
+ /**
50
+ * Line heights as defined in the tailwindcss documentation.
51
+ * @see https://v3.tailwindcss.com/docs/line-height
52
+ */
36
53
  declare const lineHeight: {
37
54
  readonly none: 1;
38
55
  readonly tight: 1.25;
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ /** Font size scale from 10 to 60. */
3
4
  const fontSize = {
4
5
  10: 10,
5
6
  11: 11,
@@ -17,9 +18,19 @@ const fontSize = {
17
18
  44: 44,
18
19
  60: 60
19
20
  };
20
- /*
21
- Font weights as defined in the CSS specification.
22
- @see https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight
21
+
22
+ /**
23
+ * A font size that can optionally vary across breakpoints.
24
+ *
25
+ * Accepted forms:
26
+ * - A single {@link FontSize} applied at all breakpoints.
27
+ * - A tuple `[base, tablet?, desktop?]` for ordered breakpoint overrides.
28
+ * - An object `{ base, tablet?, desktop? }` for named breakpoint overrides.
29
+ */
30
+
31
+ /**
32
+ * Font weights as defined in the CSS specification.
33
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight
23
34
  */
24
35
  const fontWeight = {
25
36
  thin: 100,
@@ -32,9 +43,9 @@ const fontWeight = {
32
43
  extrabold: 800,
33
44
  black: 900
34
45
  };
35
- /*
36
- Line heights as defined in the tailwindcss documentation.
37
- @see https://v3.tailwindcss.com/docs/line-height
46
+ /**
47
+ * Line heights as defined in the tailwindcss documentation.
48
+ * @see https://v3.tailwindcss.com/docs/line-height
38
49
  */
39
50
  const lineHeight = {
40
51
  none: 1,
@@ -0,0 +1,12 @@
1
+ import { ClassValue } from 'clsx';
2
+
3
+ /**
4
+ * Merges class names using `clsx` for conditional joining and
5
+ * `tailwind-merge` to resolve Tailwind CSS class conflicts.
6
+ *
7
+ * @param inputs - Any number of class values (strings, arrays, objects).
8
+ * @returns A single deduplicated, conflict-resolved class name string.
9
+ */
10
+ declare function cn(...inputs: ClassValue[]): string;
11
+
12
+ export { cn };
@@ -0,0 +1,15 @@
1
+ import { clsx } from 'clsx';
2
+ import { twMerge } from 'tailwind-merge';
3
+
4
+ /**
5
+ * Merges class names using `clsx` for conditional joining and
6
+ * `tailwind-merge` to resolve Tailwind CSS class conflicts.
7
+ *
8
+ * @param inputs - Any number of class values (strings, arrays, objects).
9
+ * @returns A single deduplicated, conflict-resolved class name string.
10
+ */
11
+ function cn(...inputs) {
12
+ return twMerge(clsx(inputs));
13
+ }
14
+
15
+ export { cn };
@@ -0,0 +1,25 @@
1
+ import * as react from 'react';
2
+ import { ComponentProps } from 'react';
3
+ import * as _base_ui_react from '@base-ui/react';
4
+ import * as react_jsx_runtime from 'react/jsx-runtime';
5
+ import { Accordion as Accordion$1 } from '@base-ui/react/accordion';
6
+
7
+ declare function AccordionItem({ className, ...props }: ComponentProps<typeof Accordion$1.Item>): react_jsx_runtime.JSX.Element;
8
+ interface AccordionTriggerProps extends ComponentProps<typeof Accordion$1.Trigger> {
9
+ chevron?: boolean;
10
+ }
11
+ declare function AccordionTrigger({ className, children, chevron, ...props }: AccordionTriggerProps): react_jsx_runtime.JSX.Element;
12
+ declare function AccordionPanel({ className, ...props }: ComponentProps<typeof Accordion$1.Panel>): react_jsx_runtime.JSX.Element;
13
+ /**
14
+ * Collapsible content sections. Compose with `Accordion.Item`, `Accordion.Header`,
15
+ * `Accordion.Trigger`, and `Accordion.Content`.
16
+ */
17
+ declare const Accordion: (<Value = any>(props: Accordion$1.Root.Props<Value>) => React.JSX.Element) & {
18
+ Item: typeof AccordionItem;
19
+ Header: react.ForwardRefExoticComponent<Omit<_base_ui_react.AccordionHeaderProps, "ref"> & react.RefAttributes<HTMLHeadingElement>>;
20
+ Trigger: typeof AccordionTrigger;
21
+ Content: typeof AccordionPanel;
22
+ };
23
+
24
+ export { Accordion };
25
+ export type { AccordionTriggerProps };
@@ -0,0 +1,52 @@
1
+ import { KeyboardArrowDownIcon } from '@cocso-ui/react-icons';
2
+ import { cn } from '../../cn.mjs';
3
+ import styles from './accordion.module.css.mjs';
4
+ import { jsx, jsxs } from 'react/jsx-runtime';
5
+ import { Accordion as Accordion$1 } from '@base-ui/react/accordion';
6
+
7
+ function AccordionItem({
8
+ className,
9
+ ...props
10
+ }) {
11
+ return /*#__PURE__*/jsx(Accordion$1.Item, {
12
+ className: cn(styles.item, className),
13
+ ...props
14
+ });
15
+ }
16
+ function AccordionTrigger({
17
+ className,
18
+ children,
19
+ chevron = true,
20
+ ...props
21
+ }) {
22
+ return /*#__PURE__*/jsxs(Accordion$1.Trigger, {
23
+ className: cn(styles.trigger, className),
24
+ ...props,
25
+ children: [children, chevron && /*#__PURE__*/jsx(KeyboardArrowDownIcon, {
26
+ className: styles.chevron
27
+ })]
28
+ });
29
+ }
30
+ function AccordionPanel({
31
+ className,
32
+ ...props
33
+ }) {
34
+ return /*#__PURE__*/jsx(Accordion$1.Panel, {
35
+ className: cn(styles.content, className),
36
+ ...props
37
+ });
38
+ }
39
+
40
+ /**
41
+ * Collapsible content sections. Compose with `Accordion.Item`, `Accordion.Header`,
42
+ * `Accordion.Trigger`, and `Accordion.Content`.
43
+ */
44
+ const Accordion = Object.assign(Accordion$1.Root, {
45
+ Item: AccordionItem,
46
+ Header: Accordion$1.Header,
47
+ Trigger: AccordionTrigger,
48
+ Content: AccordionPanel
49
+ });
50
+ Accordion.displayName = "Accordion";
51
+
52
+ export { Accordion };
@@ -0,0 +1,3 @@
1
+ var styles = {"item":"accordion-module_item__qfZXb","content":"accordion-module_content__1WTaS","trigger":"accordion-module_trigger__p5Nek","chevron":"accordion-module_chevron__yZOb8"};
2
+
3
+ export { styles as default };
@@ -0,0 +1,15 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentProps, ReactNode } from 'react';
3
+
4
+ /** Inline type alias — codegen is a devDependency and must not leak into published .d.ts */
5
+ type AlertVariant = "info" | "success" | "warning" | "error";
6
+ interface AlertProps extends ComponentProps<"div"> {
7
+ icon?: ReactNode;
8
+ onClose?: () => void;
9
+ variant?: AlertVariant;
10
+ }
11
+ /** Contextual feedback message with optional icon and close button. */
12
+ declare function Alert({ ref, className, style, variant, icon, onClose, children, ...props }: AlertProps): react_jsx_runtime.JSX.Element;
13
+
14
+ export { Alert };
15
+ export type { AlertProps, AlertVariant };
@@ -0,0 +1,41 @@
1
+ import { alert } from '../../ecosystem/codegen/generated/alert.mjs';
2
+ import { cn } from '../../cn.mjs';
3
+ import styles from './alert.module.css.mjs';
4
+ import { jsxs, jsx } from 'react/jsx-runtime';
5
+
6
+ /** Contextual feedback message with optional icon and close button. */
7
+ function Alert({
8
+ ref,
9
+ className,
10
+ style,
11
+ variant = "info",
12
+ icon,
13
+ onClose,
14
+ children,
15
+ ...props
16
+ }) {
17
+ return /*#__PURE__*/jsxs("div", {
18
+ className: cn(alert({
19
+ variant
20
+ }), styles.alert, className),
21
+ ref: ref,
22
+ role: "alert",
23
+ style: style,
24
+ ...props,
25
+ children: [icon && /*#__PURE__*/jsx("span", {
26
+ className: styles.icon,
27
+ children: icon
28
+ }), /*#__PURE__*/jsx("div", {
29
+ className: styles.content,
30
+ children: children
31
+ }), onClose && /*#__PURE__*/jsx("button", {
32
+ "aria-label": "Close",
33
+ className: styles.close,
34
+ onClick: onClose,
35
+ type: "button",
36
+ children: "\xD7"
37
+ })]
38
+ });
39
+ }
40
+
41
+ export { Alert };
@@ -0,0 +1,3 @@
1
+ var styles = {"alert":"alert-module_alert__7Bt6c","icon":"alert-module_icon__Ue8Rs","content":"alert-module_content__-bCFU","close":"alert-module_close__6VtOe"};
2
+
3
+ export { styles as default };
@@ -0,0 +1,18 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentProps } from 'react';
3
+
4
+ /** Inline type aliases — codegen is a devDependency and must not leak into published .d.ts */
5
+ type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl";
6
+ type AvatarShape = "circle" | "square";
7
+ interface AvatarProps extends ComponentProps<"div"> {
8
+ alt?: string;
9
+ fallback?: string;
10
+ shape?: AvatarShape;
11
+ size?: AvatarSize;
12
+ src?: string;
13
+ }
14
+ /** User or entity visual identifier with image, initials fallback, or icon. */
15
+ declare function Avatar({ ref, className, style, size, shape, src, alt, fallback, children, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
16
+
17
+ export { Avatar };
18
+ export type { AvatarProps, AvatarShape, AvatarSize };
@@ -0,0 +1,49 @@
1
+ import { avatar } from '../../ecosystem/codegen/generated/avatar.mjs';
2
+ import { cn } from '../../cn.mjs';
3
+ import styles from './avatar.module.css.mjs';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ /** User or entity visual identifier with image, initials fallback, or icon. */
7
+ function Avatar({
8
+ ref,
9
+ className,
10
+ style,
11
+ size = "md",
12
+ shape = "circle",
13
+ src,
14
+ alt,
15
+ fallback,
16
+ children,
17
+ ...props
18
+ }) {
19
+ const initials = fallback ?? alt?.charAt(0).toUpperCase();
20
+ function renderContent() {
21
+ if (src) {
22
+ // biome-ignore lint/correctness/useImageSize: avatar image is sized by CSS (100% width/height)
23
+ return /*#__PURE__*/jsx("img", {
24
+ alt: alt ?? "",
25
+ className: styles.image,
26
+ src: src
27
+ });
28
+ }
29
+ if (initials) {
30
+ return /*#__PURE__*/jsx("span", {
31
+ className: styles.fallback,
32
+ children: initials
33
+ });
34
+ }
35
+ return children;
36
+ }
37
+ return /*#__PURE__*/jsx("div", {
38
+ className: cn(avatar({
39
+ size,
40
+ shape
41
+ }), styles.avatar, className),
42
+ ref: ref,
43
+ style: style,
44
+ ...props,
45
+ children: renderContent()
46
+ });
47
+ }
48
+
49
+ export { Avatar };
@@ -0,0 +1,3 @@
1
+ var styles = {"avatar":"avatar-module_avatar__yPIOs","image":"avatar-module_image__Ngo7A","fallback":"avatar-module_fallback__Tf3oZ"};
2
+
3
+ export { styles as default };
@@ -0,0 +1,16 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentProps } from 'react';
3
+
4
+ type BadgeSize = "large" | "medium" | "small";
5
+ type BadgeVariant = "primary" | "secondary" | "success" | "error" | "warning" | "info" | "outline";
6
+ type BadgeShape = "square" | "circle" | "rounded";
7
+ interface BadgeProps extends ComponentProps<"div"> {
8
+ shape?: BadgeShape;
9
+ size?: BadgeSize;
10
+ variant?: BadgeVariant;
11
+ }
12
+ /** Inline badge/tag component with color and variant options. */
13
+ declare function Badge({ ref, className, children, size, variant, shape, style: _style, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
14
+
15
+ export { Badge };
16
+ export type { BadgeProps, BadgeSize };
@@ -0,0 +1,57 @@
1
+ import { badge } from '../../ecosystem/codegen/generated/badge.mjs';
2
+ import { cn } from '../../cn.mjs';
3
+ import styles from './badge.module.css.mjs';
4
+ import { jsx } from 'react/jsx-runtime';
5
+ import { Typography } from '../typography/typography.mjs';
6
+
7
+ const BADGE_FONT_SIZES = {
8
+ large: 14,
9
+ medium: 12,
10
+ small: 11
11
+ };
12
+ const BADGE_PADDING_Y = {
13
+ large: "5px",
14
+ medium: "4px",
15
+ small: "3px"
16
+ };
17
+
18
+ /** Inline badge/tag component with color and variant options. */
19
+ function Badge({
20
+ ref,
21
+ className,
22
+ children,
23
+ size = "medium",
24
+ variant = "secondary",
25
+ shape = "square",
26
+ style: _style,
27
+ ...props
28
+ }) {
29
+ const style = {
30
+ ..._style,
31
+ "--cocso-badge-padding-y": BADGE_PADDING_Y[size]
32
+ };
33
+ const fontSize = BADGE_FONT_SIZES[size];
34
+ return /*#__PURE__*/jsx("div", {
35
+ className: cn(badge({
36
+ variant,
37
+ size,
38
+ shape
39
+ }), styles.badge, shape === "circle" && styles.circle, className),
40
+ ref: ref,
41
+ style: style,
42
+ ...props,
43
+ children: /*#__PURE__*/jsx(Typography, {
44
+ color: "currentColor",
45
+ lineHeight: "tight",
46
+ render: /*#__PURE__*/jsx("span", {
47
+ className: styles.inner,
48
+ children: children
49
+ }),
50
+ size: fontSize,
51
+ type: "custom",
52
+ weight: "medium"
53
+ })
54
+ });
55
+ }
56
+
57
+ export { Badge };
@@ -0,0 +1,3 @@
1
+ var styles = {"badge":"badge-module_badge__4Tx0D","circle":"badge-module_circle__NP4-2","inner":"badge-module_inner__YYjpI"};
2
+
3
+ export { styles as default };
@@ -0,0 +1,14 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentProps, ReactNode } from 'react';
3
+
4
+ /** Inline type aliases — codegen is a devDependency and must not leak into published .d.ts */
5
+ type BreadcrumbSize = "sm" | "md" | "lg";
6
+ interface BreadcrumbProps extends ComponentProps<"nav"> {
7
+ separator?: ReactNode;
8
+ size?: BreadcrumbSize;
9
+ }
10
+ /** Navigation hierarchy indicator with configurable separator. */
11
+ declare function Breadcrumb({ ref, className, style, size, separator, children, ...props }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
12
+
13
+ export { Breadcrumb };
14
+ export type { BreadcrumbProps, BreadcrumbSize };
@@ -0,0 +1,47 @@
1
+ import { breadcrumb } from '../../ecosystem/codegen/generated/breadcrumb.mjs';
2
+ import { ChevronRightIcon } from '@cocso-ui/react-icons';
3
+ import { Children } from 'react';
4
+ import { cn } from '../../cn.mjs';
5
+ import styles from './breadcrumb.module.css.mjs';
6
+ import { jsx, jsxs } from 'react/jsx-runtime';
7
+
8
+ /** Navigation hierarchy indicator with configurable separator. */
9
+ function Breadcrumb({
10
+ ref,
11
+ className,
12
+ style,
13
+ size = "md",
14
+ separator = /*#__PURE__*/jsx(ChevronRightIcon, {
15
+ height: "1em",
16
+ width: "1em"
17
+ }),
18
+ children,
19
+ ...props
20
+ }) {
21
+ const items = Children.toArray(children);
22
+ return /*#__PURE__*/jsx("nav", {
23
+ "aria-label": "Breadcrumb",
24
+ className: cn(breadcrumb({
25
+ size
26
+ }), styles.breadcrumb, className),
27
+ ref: ref,
28
+ style: style,
29
+ ...props,
30
+ children: /*#__PURE__*/jsx("ol", {
31
+ className: styles.list,
32
+ children: items.map((child, index) =>
33
+ /*#__PURE__*/
34
+ // biome-ignore lint/suspicious/noArrayIndexKey: breadcrumb items are ordered children without reordering
35
+ jsxs("li", {
36
+ className: styles.item,
37
+ children: [child, index < items.length - 1 && /*#__PURE__*/jsx("span", {
38
+ "aria-hidden": "true",
39
+ className: styles.separator,
40
+ children: separator
41
+ })]
42
+ }, index))
43
+ })
44
+ });
45
+ }
46
+
47
+ export { Breadcrumb };
@@ -0,0 +1,3 @@
1
+ var styles = {"breadcrumb":"breadcrumb-module_breadcrumb__dW5v-","list":"breadcrumb-module_list__mLCBo","item":"breadcrumb-module_item__G0t2y","separator":"breadcrumb-module_separator__wMAks"};
2
+
3
+ export { styles as default };
@@ -0,0 +1,27 @@
1
+ import * as react from 'react';
2
+ import { ComponentProps, ReactNode } from 'react';
3
+ import { useRender } from '@base-ui/react/use-render';
4
+ import { FontWeight } from '../../token/typography.mjs';
5
+ import { SpinnerVariant } from '../spinner/spinner.mjs';
6
+
7
+ type ButtonSize = "large" | "medium" | "small" | "x-small";
8
+ type ButtonVariant = "primary" | "secondary" | "outline" | "ghost" | "success" | "error" | "warning" | "info";
9
+ type ButtonShape = "square" | "circle" | "rounded";
10
+ interface ButtonProps extends Omit<ComponentProps<"button">, "prefix"> {
11
+ disabled?: boolean;
12
+ loading?: boolean;
13
+ prefix?: ReactNode;
14
+ render?: useRender.RenderProp;
15
+ shape?: ButtonShape;
16
+ size?: ButtonSize;
17
+ spinnerVariant?: SpinnerVariant;
18
+ suffix?: ReactNode;
19
+ svgOnly?: boolean;
20
+ variant?: ButtonVariant;
21
+ weight?: FontWeight;
22
+ }
23
+ /** Polymorphic button component with variant, color, and size options. */
24
+ declare function Button({ render: renderProp, ref, className, style: _style, children, size, variant, weight, shape, prefix, suffix, svgOnly, disabled, loading, spinnerVariant, ...props }: ButtonProps): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
25
+
26
+ export { Button };
27
+ export type { ButtonProps, ButtonShape, ButtonSize, ButtonVariant };
@@ -0,0 +1,80 @@
1
+ import { button } from '../../ecosystem/codegen/generated/button.mjs';
2
+ import { cn } from '../../cn.mjs';
3
+ import styles from './button.module.css.mjs';
4
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
5
+ import { fontWeight } from '../../token/typography.mjs';
6
+ import { Spinner } from '../spinner/spinner.mjs';
7
+ import { useRender } from '@base-ui/react/use-render';
8
+ import { mergeProps } from '@base-ui/react/merge-props';
9
+
10
+ function getButtonSpinnerVariant(variant) {
11
+ return ["primary", "success", "error", "info"].includes(variant) ? "white" : "secondary";
12
+ }
13
+
14
+ /** Polymorphic button component with variant, color, and size options. */
15
+ function Button({
16
+ render: renderProp,
17
+ ref,
18
+ className,
19
+ style: _style,
20
+ children,
21
+ size = "medium",
22
+ variant = "primary",
23
+ weight = "medium",
24
+ shape = "square",
25
+ prefix,
26
+ suffix,
27
+ svgOnly = false,
28
+ disabled = false,
29
+ loading = false,
30
+ spinnerVariant,
31
+ ...props
32
+ }) {
33
+ const style = {
34
+ ..._style,
35
+ "--cocso-button-font-weight": fontWeight[weight]
36
+ };
37
+ const isDisabled = disabled || loading;
38
+ const mergedClassName = cn(button({
39
+ variant,
40
+ size,
41
+ shape
42
+ }), styles.button, svgOnly && styles.svgOnly, className);
43
+ const renderButtonContent = ctx => /*#__PURE__*/jsxs(Fragment, {
44
+ children: [loading && /*#__PURE__*/jsx("span", {
45
+ className: styles.spinnerOverlay,
46
+ children: /*#__PURE__*/jsx(Spinner, {
47
+ size: "medium",
48
+ variant: spinnerVariant ?? getButtonSpinnerVariant(variant)
49
+ })
50
+ }), /*#__PURE__*/jsxs("span", {
51
+ className: cn(styles.buttonInner, loading && styles.invisible),
52
+ children: [prefix && /*#__PURE__*/jsx("span", {
53
+ className: styles.prefix,
54
+ children: prefix
55
+ }), /*#__PURE__*/jsx("span", {
56
+ className: styles.content,
57
+ children: ctx
58
+ }), suffix && /*#__PURE__*/jsx("span", {
59
+ className: styles.suffix,
60
+ children: suffix
61
+ })]
62
+ })]
63
+ });
64
+ return useRender({
65
+ render: renderProp,
66
+ ref,
67
+ props: mergeProps({
68
+ className: mergedClassName,
69
+ style,
70
+ disabled: isDisabled,
71
+ "aria-busy": loading || undefined,
72
+ type: "button"
73
+ }, props, {
74
+ children: renderButtonContent(children)
75
+ }),
76
+ defaultTagName: "button"
77
+ });
78
+ }
79
+
80
+ export { Button };
@@ -0,0 +1,3 @@
1
+ var styles = {"button":"button-module_button__5dzDN","content":"button-module_content__q0g4H","prefix":"button-module_prefix__836bE","suffix":"button-module_suffix__6k1TK","svgOnly":"button-module_svgOnly__QHNx6","spinnerOverlay":"button-module_spinnerOverlay__kbemq","buttonInner":"button-module_buttonInner__aXpaa","invisible":"button-module_invisible__esdRe"};
2
+
3
+ export { styles as default };
@@ -0,0 +1,13 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentProps } from 'react';
3
+
4
+ type CardVariant = "elevated" | "outlined" | "filled";
5
+ type CardPadding = "sm" | "md" | "lg";
6
+ interface CardProps extends ComponentProps<"div"> {
7
+ padding?: CardPadding;
8
+ variant?: CardVariant;
9
+ }
10
+ declare function Card({ ref, className, style, variant, padding, children, ...props }: CardProps): react_jsx_runtime.JSX.Element;
11
+
12
+ export { Card };
13
+ export type { CardPadding, CardProps, CardVariant };
@@ -0,0 +1,27 @@
1
+ import { card } from '../../ecosystem/codegen/generated/card.mjs';
2
+ import { cn } from '../../cn.mjs';
3
+ import styles from './card.module.css.mjs';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ function Card({
7
+ ref,
8
+ className,
9
+ style,
10
+ variant = "elevated",
11
+ padding = "md",
12
+ children,
13
+ ...props
14
+ }) {
15
+ return /*#__PURE__*/jsx("div", {
16
+ className: cn(card({
17
+ variant,
18
+ padding
19
+ }), styles.card, variant === "elevated" && styles.elevated, className),
20
+ ref: ref,
21
+ style: style,
22
+ ...props,
23
+ children: children
24
+ });
25
+ }
26
+
27
+ export { Card };
@@ -0,0 +1,3 @@
1
+ var styles = {"card":"card-module_card__ZPFTz","elevated":"card-module_elevated__Gua8s"};
2
+
3
+ export { styles as default };
@@ -0,0 +1,20 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentProps } from 'react';
3
+ import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
4
+
5
+ type CheckboxSize = "large" | "medium" | "small";
6
+ type CheckboxStatus = "on" | "off" | "intermediate";
7
+ interface CheckboxProps extends Omit<ComponentProps<typeof Checkbox$1.Root>, "checked" | "onCheckedChange" | "onChange" | "indeterminate" | "defaultChecked"> {
8
+ defaultStatus?: CheckboxStatus;
9
+ disabled?: boolean;
10
+ id?: string;
11
+ label?: string;
12
+ onChange?: (status: "on" | "off") => void;
13
+ size?: CheckboxSize;
14
+ status?: CheckboxStatus;
15
+ }
16
+ /** Check/uncheck toggle with support for an indeterminate state. */
17
+ declare function Checkbox({ ref, id: _id, className, style: _style, size, status: statusProp, defaultStatus, onChange, label, disabled, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
18
+
19
+ export { Checkbox };
20
+ export type { CheckboxProps, CheckboxSize, CheckboxStatus };