@cocso-ui/react 0.2.20 → 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,89 +0,0 @@
1
- "use client";
2
- import { ArrowIOSBackwardIcon, ArrowIOSForwardIcon } from '@cocso-ui/react-icons';
3
- import { clsx } from 'clsx';
4
- import { ko } from 'date-fns/locale';
5
- import { forwardRef, useState } from 'react';
6
- import DatePicker from 'react-datepicker';
7
- import styles from './MonthPicker.module.css.mjs';
8
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
9
- import { Dropdown } from '../dropdown/Dropdown.mjs';
10
- import { Button } from '../button/Button.mjs';
11
- import { Typography } from '../typography/Typography.mjs';
12
-
13
- const MonthPicker = /*#__PURE__*/forwardRef(({
14
- className,
15
- value,
16
- onValueChange,
17
- children,
18
- minDate,
19
- maxDate,
20
- disabled,
21
- ...props
22
- }, ref) => {
23
- const [open, setOpen] = useState(false);
24
- const handleChange = date => {
25
- onValueChange?.(date);
26
- setOpen(false);
27
- };
28
- return /*#__PURE__*/jsx("div", {
29
- ref: ref,
30
- className: clsx(styles.root, className),
31
- ...props,
32
- children: /*#__PURE__*/jsxs(Dropdown, {
33
- open: open,
34
- onOpenChange: setOpen,
35
- children: [/*#__PURE__*/jsx(Dropdown.Trigger, {
36
- asChild: true,
37
- children: children
38
- }), /*#__PURE__*/jsx(Dropdown.Portal, {
39
- children: /*#__PURE__*/jsx(Dropdown.Content, {
40
- className: styles.content,
41
- children: /*#__PURE__*/jsx(DatePicker, {
42
- selected: value,
43
- onChange: handleChange,
44
- disabled: disabled,
45
- locale: ko,
46
- minDate: minDate,
47
- maxDate: maxDate,
48
- dateFormat: "yyyy\uB144 MM\uC6D4 dd\uC77C",
49
- showPopperArrow: false,
50
- renderCustomHeader: ({
51
- date,
52
- decreaseYear,
53
- increaseYear,
54
- prevYearButtonDisabled,
55
- nextYearButtonDisabled
56
- }) => /*#__PURE__*/jsxs(Fragment, {
57
- children: [/*#__PURE__*/jsx(Button, {
58
- type: "button",
59
- variant: "secondary",
60
- size: "xs",
61
- onClick: decreaseYear,
62
- disabled: prevYearButtonDisabled,
63
- children: /*#__PURE__*/jsx(ArrowIOSBackwardIcon, {})
64
- }), /*#__PURE__*/jsx(Typography, {
65
- type: "body",
66
- weight: "semibold",
67
- children: date.toLocaleDateString('ko-KR', {
68
- year: 'numeric'
69
- })
70
- }), /*#__PURE__*/jsx(Button, {
71
- type: "button",
72
- variant: "secondary",
73
- size: "xs",
74
- onClick: increaseYear,
75
- disabled: nextYearButtonDisabled,
76
- children: /*#__PURE__*/jsx(ArrowIOSForwardIcon, {})
77
- })]
78
- }),
79
- inline: true,
80
- showMonthYearPicker: true
81
- })
82
- })
83
- })]
84
- })
85
- });
86
- });
87
- MonthPicker.displayName = 'MonthPicker';
88
-
89
- export { MonthPicker };
@@ -1,3 +0,0 @@
1
- var styles = {"root":"MonthPicker-module_root__my2Kl","content":"MonthPicker-module_content__6glhz"};
2
-
3
- export { styles as default };
@@ -1,8 +0,0 @@
1
- import * as react from 'react';
2
- import * as OneTimePasswordFieldPrimitive from '@radix-ui/react-one-time-password-field';
3
-
4
- declare const OneTimePasswordField: react.ForwardRefExoticComponent<Omit<Omit<OneTimePasswordFieldPrimitive.OneTimePasswordFieldProps, "ref"> & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>> & {
5
- Input: react.ForwardRefExoticComponent<Omit<Omit<OneTimePasswordFieldPrimitive.OneTimePasswordFieldInputProps, "ref"> & react.RefAttributes<HTMLInputElement>, "ref"> & react.RefAttributes<HTMLInputElement>>;
6
- };
7
-
8
- export { OneTimePasswordField };
@@ -1,31 +0,0 @@
1
- import * as OneTimePasswordFieldPrimitive from '@radix-ui/react-one-time-password-field';
2
- import { clsx } from 'clsx';
3
- import { forwardRef } from 'react';
4
- import styles from './OneTimePasswordField.module.css.mjs';
5
- import { jsx } from 'react/jsx-runtime';
6
-
7
- const OneTimePasswordFieldRoot = /*#__PURE__*/forwardRef(({
8
- className,
9
- ...props
10
- }, ref) => {
11
- return /*#__PURE__*/jsx(OneTimePasswordFieldPrimitive.Root, {
12
- ref: ref,
13
- className: clsx(styles.otp, className),
14
- ...props
15
- });
16
- });
17
- const OneTimePasswordFieldInput = /*#__PURE__*/forwardRef(({
18
- className,
19
- ...props
20
- }, ref) => {
21
- return /*#__PURE__*/jsx(OneTimePasswordFieldPrimitive.Input, {
22
- ref: ref,
23
- className: clsx(styles.input, className),
24
- ...props
25
- });
26
- });
27
- const OneTimePasswordField = Object.assign(OneTimePasswordFieldRoot, {
28
- Input: OneTimePasswordFieldInput
29
- });
30
-
31
- export { OneTimePasswordField };
@@ -1,3 +0,0 @@
1
- var styles = {"otp":"OneTimePasswordField-module_otp__zoWO7","input":"OneTimePasswordField-module_input__owV9H"};
2
-
3
- export { styles as default };
@@ -1,13 +0,0 @@
1
- import * as react from 'react';
2
- import { ComponentPropsWithoutRef } from 'react';
3
-
4
- interface PaginationProps extends Omit<ComponentPropsWithoutRef<'div'>, 'onChange'> {
5
- page: number;
6
- totalPages: number;
7
- maxVisible?: number;
8
- onChange: (pageNumber: number) => void;
9
- }
10
- declare const Pagination: react.ForwardRefExoticComponent<PaginationProps & react.RefAttributes<HTMLDivElement>>;
11
-
12
- export { Pagination };
13
- export type { PaginationProps };
@@ -1,3 +0,0 @@
1
- var styles = {"pagination":"Pagination-module_pagination__viYLy","arrow":"Pagination-module_arrow__YYkob","item":"Pagination-module_item__uVIra","trunc":"Pagination-module_trunc__-ZgYQ"};
2
-
3
- export { styles as default };
@@ -1,10 +0,0 @@
1
- import * as react from 'react';
2
- import * as PopoverPrimitive from '@radix-ui/react-popover';
3
-
4
- declare const Popover: react.FC<PopoverPrimitive.PopoverProps> & {
5
- Trigger: react.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & react.RefAttributes<HTMLButtonElement>>;
6
- Portal: react.FC<PopoverPrimitive.PopoverPortalProps>;
7
- Content: react.ForwardRefExoticComponent<Omit<Omit<PopoverPrimitive.PopoverContentProps & react.RefAttributes<HTMLDivElement>, "ref">, "ref"> & react.RefAttributes<HTMLDivElement>>;
8
- };
9
-
10
- export { Popover };
@@ -1,23 +0,0 @@
1
- import * as PopoverPrimitive from '@radix-ui/react-popover';
2
- import { clsx } from 'clsx';
3
- import { forwardRef } from 'react';
4
- import styles from './Popover.module.css.mjs';
5
- import { jsx } from 'react/jsx-runtime';
6
-
7
- const PopoverContent = /*#__PURE__*/forwardRef(({
8
- className,
9
- ...props
10
- }, ref) => {
11
- return /*#__PURE__*/jsx(PopoverPrimitive.Content, {
12
- ref: ref,
13
- className: clsx(styles.content, className),
14
- ...props
15
- });
16
- });
17
- const Popover = Object.assign(PopoverPrimitive.Root, {
18
- Trigger: PopoverPrimitive.Trigger,
19
- Portal: PopoverPrimitive.Portal,
20
- Content: PopoverContent
21
- });
22
-
23
- export { Popover };
@@ -1,3 +0,0 @@
1
- var styles = {"content":"Popover-module_content__ry9PF"};
2
-
3
- export { styles as default };
@@ -1,9 +0,0 @@
1
- import * as react from 'react';
2
- import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
3
-
4
- declare const RadioGroup: react.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>> & {
5
- Item: react.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
6
- Indicator: react.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupIndicatorProps & react.RefAttributes<HTMLSpanElement>, "ref"> & react.RefAttributes<HTMLSpanElement>>;
7
- };
8
-
9
- export { RadioGroup };
@@ -1,45 +0,0 @@
1
- import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
2
- import { clsx } from 'clsx';
3
- import { forwardRef } from 'react';
4
- import styles from './RadioGroup.module.css.mjs';
5
- import { jsx } from 'react/jsx-runtime';
6
-
7
- const RadioGroupRoot = /*#__PURE__*/forwardRef(({
8
- className,
9
- ...props
10
- }, ref) => {
11
- return /*#__PURE__*/jsx(RadioGroupPrimitive.Root, {
12
- ref: ref,
13
- className: clsx(styles.root, className),
14
- ...props
15
- });
16
- });
17
- RadioGroupRoot.displayName = RadioGroupPrimitive.Root.displayName;
18
- const RadioGroupItem = /*#__PURE__*/forwardRef(({
19
- className,
20
- ...props
21
- }, ref) => {
22
- return /*#__PURE__*/jsx(RadioGroupPrimitive.Item, {
23
- ref: ref,
24
- className: clsx(styles.item, className),
25
- ...props
26
- });
27
- });
28
- RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
29
- const RadioGroupIndicator = /*#__PURE__*/forwardRef(({
30
- className,
31
- ...props
32
- }, ref) => {
33
- return /*#__PURE__*/jsx(RadioGroupPrimitive.Indicator, {
34
- ref: ref,
35
- className: clsx(styles.indicator, className),
36
- ...props
37
- });
38
- });
39
- RadioGroupIndicator.displayName = RadioGroupPrimitive.Indicator.displayName;
40
- const RadioGroup = Object.assign(RadioGroupRoot, {
41
- Item: RadioGroupItem,
42
- Indicator: RadioGroupIndicator
43
- });
44
-
45
- export { RadioGroup };
@@ -1,3 +0,0 @@
1
- var styles = {"root":"RadioGroup-module_root__6bGu5","item":"RadioGroup-module_item__g-YFM","indicator":"RadioGroup-module_indicator__Tb6Nm"};
2
-
3
- export { styles as default };
@@ -1,13 +0,0 @@
1
- import * as react from 'react';
2
- import { ComponentPropsWithoutRef } from 'react';
3
-
4
- type SelectSize = 'xl' | 'lg' | 'md' | 'sm' | 'xs' | '2xs';
5
- interface SelectProps extends Omit<ComponentPropsWithoutRef<'select'>, 'size'> {
6
- size?: SelectSize;
7
- disabled?: boolean;
8
- stretch?: boolean;
9
- }
10
- declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLSelectElement>>;
11
-
12
- export { Select };
13
- export type { SelectProps };
@@ -1,83 +0,0 @@
1
- import { KeyboardArrowDownIcon } from '@cocso-ui/react-icons';
2
- import { clsx } from 'clsx';
3
- import { forwardRef } from 'react';
4
- import { match } from 'ts-pattern';
5
- import styles from './Select.module.css.mjs';
6
- import { jsxs, jsx } from 'react/jsx-runtime';
7
- import { spacing } from '../token/spacing.mjs';
8
-
9
- const Select = /*#__PURE__*/forwardRef(({
10
- className,
11
- style: _style,
12
- size = 'md',
13
- disabled = false,
14
- stretch = false,
15
- children,
16
- ...props
17
- }, ref) => {
18
- const style = {
19
- ..._style,
20
- ...getStyles(size)
21
- };
22
- return /*#__PURE__*/jsxs("div", {
23
- className: clsx(styles.wrapper, stretch && styles.stretch, disabled && styles.disabled, className),
24
- children: [/*#__PURE__*/jsx("select", {
25
- ref: ref,
26
- className: styles.select,
27
- style: style,
28
- disabled: disabled,
29
- ...props,
30
- children: children
31
- }), /*#__PURE__*/jsx("span", {
32
- className: styles.icon,
33
- children: /*#__PURE__*/jsx(KeyboardArrowDownIcon, {
34
- size: 20
35
- })
36
- })]
37
- });
38
- });
39
- const getStyles = size => match(size).with('2xs', () => ({
40
- '--cocso-select-min-width': spacing.s11,
41
- '--cocso-select-height': spacing.s11,
42
- '--cocso-select-padding-left': spacing.s5,
43
- '--cocso-select-padding-right': `calc(${spacing.s8} + 16px)`,
44
- '--cocso-select-font-size': '12px',
45
- '--cocso-select-border-radius': spacing.s3
46
- })).with('xs', () => ({
47
- '--cocso-select-min-width': spacing.s12,
48
- '--cocso-select-height': spacing.s12,
49
- '--cocso-select-padding-left': spacing.s6,
50
- '--cocso-select-padding-right': `calc(${spacing.s7} + 16px)`,
51
- '--cocso-select-font-size': '14px',
52
- '--cocso-select-border-radius': spacing.s3
53
- })).with('sm', () => ({
54
- '--cocso-select-min-width': spacing.s14,
55
- '--cocso-select-height': spacing.s14,
56
- '--cocso-select-padding-left': spacing.s7,
57
- '--cocso-select-padding-right': `calc(${spacing.s7} + 16px)`,
58
- '--cocso-select-font-size': '14px',
59
- '--cocso-select-border-radius': spacing.s3
60
- })).with('md', () => ({
61
- '--cocso-select-min-width': spacing.s16,
62
- '--cocso-select-height': spacing.s16,
63
- '--cocso-select-padding-left': spacing.s8,
64
- '--cocso-select-padding-right': `calc(${spacing.s8} + 16px)`,
65
- '--cocso-select-font-size': '16px',
66
- '--cocso-select-border-radius': spacing.s4
67
- })).with('lg', () => ({
68
- '--cocso-select-min-width': spacing.s17,
69
- '--cocso-select-height': spacing.s17,
70
- '--cocso-select-padding-left': spacing.s9,
71
- '--cocso-select-padding-right': `calc(${spacing.s9} + 16px)`,
72
- '--cocso-select-font-size': '18px',
73
- '--cocso-select-border-radius': spacing.s4
74
- })).with('xl', () => ({
75
- '--cocso-select-min-width': spacing.s18,
76
- '--cocso-select-height': spacing.s18,
77
- '--cocso-select-padding-left': spacing.s10,
78
- '--cocso-select-padding-right': `calc(${spacing.s10} + 16px)`,
79
- '--cocso-select-font-size': '18px',
80
- '--cocso-select-border-radius': spacing.s4
81
- })).exhaustive();
82
-
83
- export { Select };
@@ -1,3 +0,0 @@
1
- var styles = {"wrapper":"Select-module_wrapper__4k8By","stretch":"Select-module_stretch__2KlaW","select":"Select-module_select__MUUdH","disabled":"Select-module_disabled__JO7OG","icon":"Select-module_icon__EuBJI"};
2
-
3
- export { styles as default };
@@ -1,14 +0,0 @@
1
- import * as react from 'react';
2
- import { ComponentPropsWithoutRef } from 'react';
3
-
4
- type SpinnerSize = 'xl' | 'lg' | 'md' | 'sm';
5
- type SpinnerColor = 'primary' | 'neutral' | 'white';
6
- interface SpinnerProps extends Omit<ComponentPropsWithoutRef<'div'>, 'size' | 'color'> {
7
- asChild?: boolean;
8
- size?: SpinnerSize;
9
- color?: SpinnerColor;
10
- }
11
- declare const Spinner: react.ForwardRefExoticComponent<SpinnerProps & react.RefAttributes<HTMLDivElement>>;
12
-
13
- export { Spinner };
14
- export type { SpinnerColor, SpinnerProps, SpinnerSize };
@@ -1,38 +0,0 @@
1
- import { Primitive } from '@radix-ui/react-primitive';
2
- import { Slot } from '@radix-ui/react-slot';
3
- import { clsx } from 'clsx';
4
- import { forwardRef } from 'react';
5
- import { match } from 'ts-pattern';
6
- import styles from './Spinner.module.css.mjs';
7
- import { jsx } from 'react/jsx-runtime';
8
- import { colors } from '../token/color.mjs';
9
-
10
- const Spinner = /*#__PURE__*/forwardRef(({
11
- asChild,
12
- className,
13
- style: _style,
14
- size = 'md',
15
- color = 'primary',
16
- ...props
17
- }, ref) => {
18
- const Comp = asChild ? Slot : Primitive.div;
19
- const style = {
20
- ..._style,
21
- '--cocso-spinner-size': getSize(size),
22
- '--cocso-spinner-border-width': getBorderWidth(size),
23
- '--cocso-spinner-border-color': getBorderColor(color),
24
- '--cocso-spinner-bg-color': getBackgroundColor(color)
25
- };
26
- return /*#__PURE__*/jsx(Comp, {
27
- ref: ref,
28
- className: clsx(styles.spinner, className),
29
- style: style,
30
- ...props
31
- });
32
- });
33
- const getSize = size => match(size).with('xl', () => '40px').with('lg', () => '32px').with('md', () => '24px').with('sm', () => '16px').exhaustive();
34
- const getBorderWidth = size => match(size).with('xl', () => '5px').with('lg', () => '4px').with('md', () => '3px').with('sm', () => '2px').exhaustive();
35
- const getBorderColor = color => match(color).with('primary', () => colors.primary500).with('neutral', () => colors.neutral600).with('white', () => colors.white).exhaustive();
36
- const getBackgroundColor = color => match(color).with('primary', () => colors.primary100).with('neutral', () => colors.neutral100).with('white', () => colors.whiteAlpha20).exhaustive();
37
-
38
- export { Spinner };
@@ -1,3 +0,0 @@
1
- var styles = {"spinner":"Spinner-module_spinner__iIx6p"};
2
-
3
- export { styles as default };
@@ -1,12 +0,0 @@
1
- import * as react from 'react';
2
- import { ComponentPropsWithoutRef } from 'react';
3
-
4
- type QuantityStatus = '보통' | '여유' | '부족';
5
- interface QuantityStatusProps extends ComponentPropsWithoutRef<'div'> {
6
- quantity: QuantityStatus;
7
- }
8
- declare const StockQuantityStatus: react.ForwardRefExoticComponent<QuantityStatusProps & react.RefAttributes<HTMLDivElement>>;
9
- declare const getColor: (quantity: QuantityStatus) => string;
10
-
11
- export { StockQuantityStatus, getColor };
12
- export type { QuantityStatus, QuantityStatusProps };
@@ -1,102 +0,0 @@
1
- import { clsx } from 'clsx';
2
- import { forwardRef } from 'react';
3
- import { match } from 'ts-pattern';
4
- import styles from './StockQuantityStatus.module.css.mjs';
5
- import { jsxs, jsx } from 'react/jsx-runtime';
6
- import { spacing } from '../token/spacing.mjs';
7
- import { Typography } from '../typography/Typography.mjs';
8
- import { colors } from '../token/color.mjs';
9
-
10
- const StockQuantityStatus = /*#__PURE__*/forwardRef(({
11
- className,
12
- style: _style,
13
- quantity,
14
- ...props
15
- }, ref) => {
16
- const style = {
17
- ..._style,
18
- '--cocso-stock-quantity-status-color': getColor(quantity),
19
- '--cocso-stock-quantity-status-indicator-width': spacing.s9
20
- };
21
- return /*#__PURE__*/jsxs("div", {
22
- ref: ref,
23
- className: clsx(styles.stock, className),
24
- style: style,
25
- ...props,
26
- children: [/*#__PURE__*/jsx("span", {
27
- className: styles.indicator,
28
- children: quantity === '여유' ? /*#__PURE__*/jsxs("svg", {
29
- width: "16",
30
- height: "16",
31
- viewBox: "0 0 16 16",
32
- fill: "none",
33
- xmlns: "http://www.w3.org/2000/svg",
34
- "aria-hidden": "true",
35
- children: [/*#__PURE__*/jsx("path", {
36
- fillRule: "evenodd",
37
- clipRule: "evenodd",
38
- d: "M7.06494 13.0754C4.26764 13.0754 1.99999 10.8199 2 8.03765C2.00001 5.25543 4.26766 3 7.06494 3L9.48051 3V6.10011L7.06494 6.10011C5.98906 6.10011 5.11689 6.96758 5.11689 8.03767C5.11688 9.10776 5.98906 9.97524 7.06494 9.97524L9.48051 9.97524V13.0754H7.06494Z",
39
- fill: "#D9D9D9",
40
- fillOpacity: "0.85098"
41
- }), /*#__PURE__*/jsx("path", {
42
- d: "M9.48051 9.97524L9.48051 6.10011L12.0519 6.10026C13.1278 6.10026 14 6.96774 14 8.03783C14 9.10792 13.1278 9.9754 12.0519 9.9754L9.48051 9.97524Z",
43
- fill: "#D9D9D9",
44
- fillOpacity: "0.85098"
45
- }), /*#__PURE__*/jsx("path", {
46
- d: "M9.48047 6.10059H7.06543C5.98955 6.10059 5.11719 6.968 5.11719 8.03809C5.11741 9.10782 5.98893 9.97532 7.06445 9.97559H9.48047V13.0752H7.06445C4.35911 13.0749 2.14983 10.9652 2.00781 8.30957V7.76465C2.15041 5.10939 4.36025 3 7.06543 3H9.48047V6.10059ZM12.0518 6.10059C13.1276 6.10059 14 6.968 14 8.03809C13.9999 9.10806 13.1276 9.97559 12.0518 9.97559H9.48047V6.10059H12.0518Z",
47
- fill: "currentColor"
48
- })]
49
- }) : quantity === '보통' ? /*#__PURE__*/jsxs("svg", {
50
- width: "16",
51
- height: "16",
52
- viewBox: "0 0 16 16",
53
- fill: "none",
54
- xmlns: "http://www.w3.org/2000/svg",
55
- "aria-hidden": "true",
56
- children: [/*#__PURE__*/jsx("path", {
57
- fillRule: "evenodd",
58
- clipRule: "evenodd",
59
- d: "M7.06494 13.0754C4.26764 13.0754 1.99999 10.8199 2 8.03765C2.00001 5.25543 4.26766 3 7.06494 3L9.48051 3V6.10011L7.06494 6.10011C5.98906 6.10011 5.11689 6.96758 5.11689 8.03767C5.11688 9.10776 5.98906 9.97524 7.06494 9.97524L9.48051 9.97524V13.0754H7.06494Z",
60
- fill: "#D9D9D9",
61
- fillOpacity: "0.85098"
62
- }), /*#__PURE__*/jsx("path", {
63
- d: "M9.48051 9.97524L9.48051 6.10011L12.0519 6.10026C13.1278 6.10026 14 6.96774 14 8.03783C14 9.10792 13.1278 9.9754 12.0519 9.9754L9.48051 9.97524Z",
64
- fill: "#D9D9D9",
65
- fillOpacity: "0.85098"
66
- }), /*#__PURE__*/jsx("path", {
67
- d: "M9.48145 6.0752V6.10059H7.06641C5.99053 6.10059 5.11817 6.968 5.11816 8.03809C5.11839 9.10782 5.98991 9.97532 7.06543 9.97559H9.48145V13.0752H7.06543C4.35577 13.0749 2.14345 10.9585 2.00781 8.29688V7.77832C2.03849 7.17662 2.17568 6.60303 2.40039 6.0752H9.48145ZM12.0527 6.10059C13.1286 6.10059 14.001 6.968 14.001 8.03809C14.0008 9.10806 13.1285 9.97559 12.0527 9.97559H9.48145V6.10059H12.0527Z",
68
- fill: "currentColor"
69
- })]
70
- }) : /*#__PURE__*/jsxs("svg", {
71
- width: "16",
72
- height: "16",
73
- viewBox: "0 0 16 16",
74
- fill: "none",
75
- xmlns: "http://www.w3.org/2000/svg",
76
- "aria-hidden": "true",
77
- children: [/*#__PURE__*/jsx("path", {
78
- fillRule: "evenodd",
79
- clipRule: "evenodd",
80
- d: "M7.06494 13.0754C4.26764 13.0754 1.99999 10.8199 2 8.03765C2.00001 5.25543 4.26766 3 7.06494 3L9.48051 3V6.10011L7.06494 6.10011C5.98906 6.10011 5.11689 6.96758 5.11689 8.03767C5.11688 9.10776 5.98906 9.97524 7.06494 9.97524L9.48051 9.97524V13.0754H7.06494Z",
81
- fill: "#D9D9D9",
82
- fillOpacity: "0.85098"
83
- }), /*#__PURE__*/jsx("path", {
84
- d: "M9.48051 9.97524L9.48051 6.10011L12.0519 6.10026C13.1278 6.10026 14 6.96774 14 8.03783C14 9.10792 13.1278 9.9754 12.0519 9.9754L9.48051 9.97524Z",
85
- fill: "#D9D9D9",
86
- fillOpacity: "0.85098"
87
- }), /*#__PURE__*/jsx("path", {
88
- d: "M7.04688 9.97461C7.05273 9.97466 7.05859 9.97558 7.06445 9.97559H9.48047V13.0752H7.06445C4.95754 13.075 3.15182 11.7952 2.38867 9.97461H7.04688ZM12.0713 9.97461C12.0648 9.97467 12.0582 9.97559 12.0518 9.97559H9.48047V9.97461H12.0713Z",
89
- fill: "currentColor"
90
- })]
91
- })
92
- }), /*#__PURE__*/jsx(Typography, {
93
- type: "body",
94
- size: "sm",
95
- color: "currentColor",
96
- children: quantity
97
- })]
98
- });
99
- });
100
- const getColor = quantity => match(quantity).with('여유', () => colors.primary500).with('보통', () => colors.success400).with('부족', () => colors.danger500).exhaustive();
101
-
102
- export { StockQuantityStatus, getColor };
@@ -1,3 +0,0 @@
1
- var styles = {"stock":"StockQuantityStatus-module_stock__mWbqI","indicator":"StockQuantityStatus-module_indicator__inaKv"};
2
-
3
- export { styles as default };
@@ -1,16 +0,0 @@
1
- import * as react from 'react';
2
- import { ComponentPropsWithoutRef } from 'react';
3
- import * as SwitchPrimitive from '@radix-ui/react-switch';
4
-
5
- type SwitchSize = 'sm' | 'md';
6
- interface SwitchProps extends ComponentPropsWithoutRef<typeof SwitchPrimitive.Root> {
7
- id?: string;
8
- size?: SwitchSize;
9
- disabled?: boolean;
10
- label?: string;
11
- position?: 'left' | 'right';
12
- }
13
- declare const Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLButtonElement>>;
14
-
15
- export { Switch };
16
- export type { SwitchProps, SwitchSize };
@@ -1,68 +0,0 @@
1
- import { Primitive } from '@radix-ui/react-primitive';
2
- import * as SwitchPrimitive from '@radix-ui/react-switch';
3
- import { clsx } from 'clsx';
4
- import { forwardRef, useId } from 'react';
5
- import { match } from 'ts-pattern';
6
- import styles from './Switch.module.css.mjs';
7
- import { jsxs, jsx } from 'react/jsx-runtime';
8
- import { colors } from '../token/color.mjs';
9
- import { Typography } from '../typography/Typography.mjs';
10
- import { spacing } from '../token/spacing.mjs';
11
-
12
- const Switch = /*#__PURE__*/forwardRef(({
13
- id: _id,
14
- className,
15
- style: _style,
16
- size = 'md',
17
- position = 'right',
18
- disabled,
19
- label,
20
- ...props
21
- }, ref) => {
22
- const generatedId = useId();
23
- const id = _id ?? generatedId;
24
- const style = {
25
- ..._style,
26
- '--cocso-switch-width': getSwitchWidth(size),
27
- '--cocso-switch-height': getSwitchHeight(size),
28
- '--cocso-switch-thumb-width': getThumbSize(size),
29
- '--cocso-switch-thumb-height': getThumbSize(size),
30
- '--cocso-switch-bg-color': colors.neutral100
31
- };
32
- return /*#__PURE__*/jsxs(Primitive.div, {
33
- className: clsx(styles.wrapper, className),
34
- "aria-disabled": disabled,
35
- style: style,
36
- children: [position === 'left' && /*#__PURE__*/jsx(Typography, {
37
- type: "body",
38
- size: size,
39
- asChild: true,
40
- children: /*#__PURE__*/jsx("label", {
41
- htmlFor: id,
42
- children: label
43
- })
44
- }), /*#__PURE__*/jsx(SwitchPrimitive.Root, {
45
- ref: ref,
46
- className: styles.switch,
47
- disabled: disabled,
48
- ...props,
49
- children: /*#__PURE__*/jsx(SwitchPrimitive.Thumb, {
50
- className: styles.thumb
51
- })
52
- }), position === 'right' && /*#__PURE__*/jsx(Typography, {
53
- type: "body",
54
- size: size,
55
- "aria-disabled": disabled,
56
- asChild: true,
57
- children: /*#__PURE__*/jsx("label", {
58
- htmlFor: id,
59
- children: label
60
- })
61
- })]
62
- });
63
- });
64
- const getSwitchWidth = size => match(size).with('md', () => spacing.s14).with('sm', () => spacing.s12).exhaustive();
65
- const getSwitchHeight = size => match(size).with('md', () => spacing.s10).with('sm', () => spacing.s9).exhaustive();
66
- const getThumbSize = size => match(size).with('md', () => spacing.s9).with('sm', () => spacing.s8).exhaustive();
67
-
68
- export { Switch };
@@ -1,3 +0,0 @@
1
- var styles = {"wrapper":"Switch-module_wrapper__qcI9-","switch":"Switch-module_switch__pwmft","thumb":"Switch-module_thumb__pQGDy"};
2
-
3
- export { styles as default };
@@ -1,10 +0,0 @@
1
- import * as react from 'react';
2
- import * as TabPrimitive from '@radix-ui/react-tabs';
3
-
4
- declare const Tab: react.ForwardRefExoticComponent<Omit<TabPrimitive.TabsProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>> & {
5
- List: react.ForwardRefExoticComponent<Omit<TabPrimitive.TabsListProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
6
- Trigger: react.ForwardRefExoticComponent<Omit<TabPrimitive.TabsTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
7
- Content: react.ForwardRefExoticComponent<Omit<TabPrimitive.TabsContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
8
- };
9
-
10
- export { Tab };