@nexus-cross/design-system 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 (319) hide show
  1. package/cursor-rules/nexus-project-setup.mdc +292 -0
  2. package/cursor-rules/nexus-ui-api.mdc +698 -0
  3. package/cursor-rules/nexus-ui-components.mdc +136 -0
  4. package/dist/accordion.d.mts +28 -0
  5. package/dist/accordion.d.ts +28 -0
  6. package/dist/accordion.js +28 -0
  7. package/dist/accordion.mjs +3 -0
  8. package/dist/avatar.d.mts +17 -0
  9. package/dist/avatar.d.ts +17 -0
  10. package/dist/avatar.js +16 -0
  11. package/dist/avatar.mjs +3 -0
  12. package/dist/button.d.mts +17 -0
  13. package/dist/button.d.ts +17 -0
  14. package/dist/button.js +16 -0
  15. package/dist/button.mjs +3 -0
  16. package/dist/carousel.d.mts +36 -0
  17. package/dist/carousel.d.ts +36 -0
  18. package/dist/carousel.js +32 -0
  19. package/dist/carousel.mjs +3 -0
  20. package/dist/checkbox.d.mts +21 -0
  21. package/dist/checkbox.d.ts +21 -0
  22. package/dist/checkbox.js +20 -0
  23. package/dist/checkbox.mjs +3 -0
  24. package/dist/chip.d.mts +16 -0
  25. package/dist/chip.d.ts +16 -0
  26. package/dist/chip.js +16 -0
  27. package/dist/chip.mjs +3 -0
  28. package/dist/chunks/chunk-22ULI3BF.js +21 -0
  29. package/dist/chunks/chunk-26BUGBOY.mjs +57 -0
  30. package/dist/chunks/chunk-2JTPRBHZ.mjs +36 -0
  31. package/dist/chunks/chunk-2MC7XJSE.js +98 -0
  32. package/dist/chunks/chunk-2RPRCWKV.mjs +139 -0
  33. package/dist/chunks/chunk-2ZXDXO4I.js +166 -0
  34. package/dist/chunks/chunk-33UFQJIO.mjs +135 -0
  35. package/dist/chunks/chunk-3HHJORN7.mjs +137 -0
  36. package/dist/chunks/chunk-3PCNRCTB.js +61 -0
  37. package/dist/chunks/chunk-3VFBPFZF.mjs +640 -0
  38. package/dist/chunks/chunk-4J3GCZ7W.mjs +102 -0
  39. package/dist/chunks/chunk-54IA2P2Z.mjs +40 -0
  40. package/dist/chunks/chunk-54RBL7J4.mjs +179 -0
  41. package/dist/chunks/chunk-5JHJNN2K.js +83 -0
  42. package/dist/chunks/chunk-5JHN4FCY.mjs +58 -0
  43. package/dist/chunks/chunk-6FMDO6TT.mjs +114 -0
  44. package/dist/chunks/chunk-6H7V2I3X.mjs +270 -0
  45. package/dist/chunks/chunk-7AISZYWL.js +7 -0
  46. package/dist/chunks/chunk-7G65JBTN.js +133 -0
  47. package/dist/chunks/chunk-ADO7PDLY.mjs +66 -0
  48. package/dist/chunks/chunk-AFSEYJZT.js +267 -0
  49. package/dist/chunks/chunk-AOXXE5UQ.mjs +14 -0
  50. package/dist/chunks/chunk-AZ2URLDD.js +39 -0
  51. package/dist/chunks/chunk-B6G5TJRO.js +116 -0
  52. package/dist/chunks/chunk-BLGQHR3M.js +56 -0
  53. package/dist/chunks/chunk-BPUQ2CO2.mjs +48 -0
  54. package/dist/chunks/chunk-BSZ2LN6E.js +129 -0
  55. package/dist/chunks/chunk-CA3SOLI3.mjs +78 -0
  56. package/dist/chunks/chunk-CSJDDREF.js +90 -0
  57. package/dist/chunks/chunk-CVYXRSXT.mjs +8 -0
  58. package/dist/chunks/chunk-CZC76ZD5.js +10 -0
  59. package/dist/chunks/chunk-D6FII7HW.js +202 -0
  60. package/dist/chunks/chunk-DLFV7ZZV.js +112 -0
  61. package/dist/chunks/chunk-DO6VK2QQ.mjs +108 -0
  62. package/dist/chunks/chunk-ECVAVQUY.mjs +243 -0
  63. package/dist/chunks/chunk-EHAUUUWB.mjs +120 -0
  64. package/dist/chunks/chunk-EVOOTSY5.js +59 -0
  65. package/dist/chunks/chunk-GX6GSWX3.mjs +38 -0
  66. package/dist/chunks/chunk-HHXDOKXY.js +108 -0
  67. package/dist/chunks/chunk-HNLI646G.mjs +325 -0
  68. package/dist/chunks/chunk-HUPAHDJ7.js +273 -0
  69. package/dist/chunks/chunk-I252NERB.mjs +21 -0
  70. package/dist/chunks/chunk-IE4DGLMH.js +75 -0
  71. package/dist/chunks/chunk-INP2AH3B.js +27 -0
  72. package/dist/chunks/chunk-IOSIQLZL.js +70 -0
  73. package/dist/chunks/chunk-J5ZKGPBY.js +132 -0
  74. package/dist/chunks/chunk-JNMCYWGY.js +10 -0
  75. package/dist/chunks/chunk-LI7SFBUQ.mjs +89 -0
  76. package/dist/chunks/chunk-LMMON5AU.mjs +81 -0
  77. package/dist/chunks/chunk-LOQXCHKL.js +74 -0
  78. package/dist/chunks/chunk-MA2VCCIY.js +71 -0
  79. package/dist/chunks/chunk-MCKOWMLS.mjs +8 -0
  80. package/dist/chunks/chunk-MRRKW5QN.mjs +108 -0
  81. package/dist/chunks/chunk-MTX7GD3H.js +80 -0
  82. package/dist/chunks/chunk-NFIPQZ4O.js +100 -0
  83. package/dist/chunks/chunk-NHDGKOAM.js +104 -0
  84. package/dist/chunks/chunk-OMN5YQCE.js +143 -0
  85. package/dist/chunks/chunk-OTGS6BDQ.mjs +25 -0
  86. package/dist/chunks/chunk-P2T72N62.mjs +34 -0
  87. package/dist/chunks/chunk-P3DZKXG4.js +116 -0
  88. package/dist/chunks/chunk-QK6NCII4.js +36 -0
  89. package/dist/chunks/chunk-QZ4QR3XV.mjs +142 -0
  90. package/dist/chunks/chunk-RS3SBY3I.js +163 -0
  91. package/dist/chunks/chunk-RX5UKRYK.mjs +76 -0
  92. package/dist/chunks/chunk-SGNRVYYQ.mjs +99 -0
  93. package/dist/chunks/chunk-SJMCPSVH.mjs +76 -0
  94. package/dist/chunks/chunk-T2IY2TSR.js +43 -0
  95. package/dist/chunks/chunk-U53UA76K.js +653 -0
  96. package/dist/chunks/chunk-U56AGSLE.mjs +106 -0
  97. package/dist/chunks/chunk-ULGYTBCT.mjs +47 -0
  98. package/dist/chunks/chunk-V5OTJP6H.mjs +5 -0
  99. package/dist/chunks/chunk-VGO4Z2WH.js +336 -0
  100. package/dist/chunks/chunk-VIGRCJAE.mjs +37 -0
  101. package/dist/chunks/chunk-VVXQZ4XH.mjs +93 -0
  102. package/dist/chunks/chunk-W4GG5A7K.mjs +51 -0
  103. package/dist/chunks/chunk-WKCXACMZ.js +99 -0
  104. package/dist/chunks/chunk-WR55D4ZS.js +80 -0
  105. package/dist/chunks/chunk-X2SHTVZQ.js +89 -0
  106. package/dist/chunks/chunk-XEHFB62A.js +82 -0
  107. package/dist/chunks/chunk-XG6QG65W.mjs +63 -0
  108. package/dist/chunks/chunk-YB5ZKHVB.js +64 -0
  109. package/dist/chunks/chunk-YCG4FZC3.js +167 -0
  110. package/dist/chunks/chunk-YEWKPWK3.mjs +80 -0
  111. package/dist/chunks/chunk-YLO4UKSC.mjs +48 -0
  112. package/dist/chunks/chunk-YZV6FWE7.js +160 -0
  113. package/dist/chunks/chunk-ZWSIIGA3.mjs +58 -0
  114. package/dist/client-only.d.mts +13 -0
  115. package/dist/client-only.d.ts +13 -0
  116. package/dist/client-only.js +11 -0
  117. package/dist/client-only.mjs +2 -0
  118. package/dist/countdown.d.mts +27 -0
  119. package/dist/countdown.d.ts +27 -0
  120. package/dist/countdown.js +16 -0
  121. package/dist/countdown.mjs +3 -0
  122. package/dist/counter.d.mts +15 -0
  123. package/dist/counter.d.ts +15 -0
  124. package/dist/counter.js +11 -0
  125. package/dist/counter.mjs +2 -0
  126. package/dist/data-list.d.mts +33 -0
  127. package/dist/data-list.d.ts +33 -0
  128. package/dist/data-list.js +14 -0
  129. package/dist/data-list.mjs +5 -0
  130. package/dist/divider.d.mts +14 -0
  131. package/dist/divider.d.ts +14 -0
  132. package/dist/divider.js +16 -0
  133. package/dist/divider.mjs +3 -0
  134. package/dist/drawer.d.mts +42 -0
  135. package/dist/drawer.d.ts +42 -0
  136. package/dist/drawer.js +44 -0
  137. package/dist/drawer.mjs +3 -0
  138. package/dist/ellipsis.d.mts +16 -0
  139. package/dist/ellipsis.d.ts +16 -0
  140. package/dist/ellipsis.js +12 -0
  141. package/dist/ellipsis.mjs +3 -0
  142. package/dist/error-boundary.d.mts +20 -0
  143. package/dist/error-boundary.d.ts +20 -0
  144. package/dist/error-boundary.js +11 -0
  145. package/dist/error-boundary.mjs +2 -0
  146. package/dist/hooks/useCheckDevice.d.mts +47 -0
  147. package/dist/hooks/useCheckDevice.d.ts +47 -0
  148. package/dist/hooks/useCheckDevice.js +8 -0
  149. package/dist/hooks/useCheckDevice.mjs +2 -0
  150. package/dist/hooks/useClickOutside.d.mts +12 -0
  151. package/dist/hooks/useClickOutside.d.ts +12 -0
  152. package/dist/hooks/useClickOutside.js +8 -0
  153. package/dist/hooks/useClickOutside.mjs +2 -0
  154. package/dist/hooks/useDraggableBottomSheet.d.mts +24 -0
  155. package/dist/hooks/useDraggableBottomSheet.d.ts +24 -0
  156. package/dist/hooks/useDraggableBottomSheet.js +11 -0
  157. package/dist/hooks/useDraggableBottomSheet.mjs +2 -0
  158. package/dist/hooks/useDraggableWindow.d.mts +21 -0
  159. package/dist/hooks/useDraggableWindow.d.ts +21 -0
  160. package/dist/hooks/useDraggableWindow.js +11 -0
  161. package/dist/hooks/useDraggableWindow.mjs +2 -0
  162. package/dist/hooks/useInView.d.mts +14 -0
  163. package/dist/hooks/useInView.d.ts +14 -0
  164. package/dist/hooks/useInView.js +17 -0
  165. package/dist/hooks/useInView.mjs +2 -0
  166. package/dist/hooks/useModal.d.mts +2 -0
  167. package/dist/hooks/useModal.d.ts +2 -0
  168. package/dist/hooks/useModal.js +11 -0
  169. package/dist/hooks/useModal.mjs +2 -0
  170. package/dist/index.d.mts +76 -0
  171. package/dist/index.d.ts +76 -0
  172. package/dist/index.js +746 -0
  173. package/dist/index.mjs +328 -0
  174. package/dist/infinite-scroll.d.mts +26 -0
  175. package/dist/infinite-scroll.d.ts +26 -0
  176. package/dist/infinite-scroll.js +12 -0
  177. package/dist/infinite-scroll.mjs +3 -0
  178. package/dist/marquee.d.mts +12 -0
  179. package/dist/marquee.d.ts +12 -0
  180. package/dist/marquee.js +12 -0
  181. package/dist/marquee.mjs +3 -0
  182. package/dist/modal/index.d.mts +87 -0
  183. package/dist/modal/index.d.ts +87 -0
  184. package/dist/modal/index.js +54 -0
  185. package/dist/modal/index.mjs +9 -0
  186. package/dist/number-input.d.mts +38 -0
  187. package/dist/number-input.d.ts +38 -0
  188. package/dist/number-input.js +20 -0
  189. package/dist/number-input.mjs +3 -0
  190. package/dist/pagination.d.mts +22 -0
  191. package/dist/pagination.d.ts +22 -0
  192. package/dist/pagination.js +20 -0
  193. package/dist/pagination.mjs +3 -0
  194. package/dist/popover.d.mts +25 -0
  195. package/dist/popover.d.ts +25 -0
  196. package/dist/popover.js +32 -0
  197. package/dist/popover.mjs +3 -0
  198. package/dist/radio-group.d.mts +29 -0
  199. package/dist/radio-group.d.ts +29 -0
  200. package/dist/radio-group.js +24 -0
  201. package/dist/radio-group.mjs +3 -0
  202. package/dist/schemas/_all.json +2250 -0
  203. package/dist/schemas/accordion.json +101 -0
  204. package/dist/schemas/avatar.json +55 -0
  205. package/dist/schemas/button.json +71 -0
  206. package/dist/schemas/carousel.json +32 -0
  207. package/dist/schemas/carouselButton.json +20 -0
  208. package/dist/schemas/carouselDots.json +17 -0
  209. package/dist/schemas/carouselSlide.json +20 -0
  210. package/dist/schemas/checkBox.json +57 -0
  211. package/dist/schemas/chip.json +49 -0
  212. package/dist/schemas/clientOnly.json +19 -0
  213. package/dist/schemas/countdown.json +58 -0
  214. package/dist/schemas/counter.json +57 -0
  215. package/dist/schemas/dataList.json +56 -0
  216. package/dist/schemas/divider.json +40 -0
  217. package/dist/schemas/drawer.json +27 -0
  218. package/dist/schemas/drawerContent.json +50 -0
  219. package/dist/schemas/ellipsis.json +49 -0
  220. package/dist/schemas/errorBoundary.json +22 -0
  221. package/dist/schemas/infiniteScroll.json +65 -0
  222. package/dist/schemas/marquee.json +46 -0
  223. package/dist/schemas/modalCall.json +21 -0
  224. package/dist/schemas/modalTemplate.json +123 -0
  225. package/dist/schemas/numberInput.json +77 -0
  226. package/dist/schemas/pagination.json +50 -0
  227. package/dist/schemas/popover.json +67 -0
  228. package/dist/schemas/radioGroup.json +61 -0
  229. package/dist/schemas/radioItem.json +35 -0
  230. package/dist/schemas/select.json +62 -0
  231. package/dist/schemas/selectItem.json +31 -0
  232. package/dist/schemas/skeleton.json +48 -0
  233. package/dist/schemas/spinner.json +27 -0
  234. package/dist/schemas/switch.json +41 -0
  235. package/dist/schemas/tab.json +89 -0
  236. package/dist/schemas/table.json +75 -0
  237. package/dist/schemas/tableRow.json +32 -0
  238. package/dist/schemas/tdColumn.json +107 -0
  239. package/dist/schemas/textArea.json +44 -0
  240. package/dist/schemas/textInput.json +67 -0
  241. package/dist/schemas/themeProvider.json +65 -0
  242. package/dist/schemas/toaster.json +31 -0
  243. package/dist/schemas/tooltip.json +67 -0
  244. package/dist/schemas/virtualGrid.json +59 -0
  245. package/dist/schemas/virtualList.json +54 -0
  246. package/dist/schemas.d.mts +1263 -0
  247. package/dist/schemas.d.ts +1263 -0
  248. package/dist/schemas.js +513 -0
  249. package/dist/schemas.mjs +469 -0
  250. package/dist/select.d.mts +31 -0
  251. package/dist/select.d.ts +31 -0
  252. package/dist/select.js +24 -0
  253. package/dist/select.mjs +3 -0
  254. package/dist/skeleton.d.mts +15 -0
  255. package/dist/skeleton.d.ts +15 -0
  256. package/dist/skeleton.js +12 -0
  257. package/dist/skeleton.mjs +3 -0
  258. package/dist/spinner.d.mts +9 -0
  259. package/dist/spinner.d.ts +9 -0
  260. package/dist/spinner.js +12 -0
  261. package/dist/spinner.mjs +3 -0
  262. package/dist/styles/layer.d.mts +3 -0
  263. package/dist/styles/layer.d.ts +3 -0
  264. package/dist/styles/layer.js +18 -0
  265. package/dist/styles/layer.mjs +16 -0
  266. package/dist/styles.css +2401 -0
  267. package/dist/styles.d.mts +3 -0
  268. package/dist/styles.d.ts +3 -0
  269. package/dist/styles.js +16 -0
  270. package/dist/styles.layered.css +2404 -0
  271. package/dist/styles.mjs +14 -0
  272. package/dist/switch.d.mts +15 -0
  273. package/dist/switch.d.ts +15 -0
  274. package/dist/switch.js +16 -0
  275. package/dist/switch.mjs +3 -0
  276. package/dist/tab.d.mts +36 -0
  277. package/dist/tab.d.ts +36 -0
  278. package/dist/tab.js +20 -0
  279. package/dist/tab.mjs +3 -0
  280. package/dist/table.d.mts +80 -0
  281. package/dist/table.d.ts +80 -0
  282. package/dist/table.js +33 -0
  283. package/dist/table.mjs +4 -0
  284. package/dist/text-area.d.mts +15 -0
  285. package/dist/text-area.d.ts +15 -0
  286. package/dist/text-area.js +16 -0
  287. package/dist/text-area.mjs +3 -0
  288. package/dist/text-input.d.mts +21 -0
  289. package/dist/text-input.d.ts +21 -0
  290. package/dist/text-input.js +16 -0
  291. package/dist/text-input.mjs +3 -0
  292. package/dist/theme-provider.d.mts +25 -0
  293. package/dist/theme-provider.d.ts +25 -0
  294. package/dist/theme-provider.js +15 -0
  295. package/dist/theme-provider.mjs +2 -0
  296. package/dist/toast.d.mts +42 -0
  297. package/dist/toast.d.ts +42 -0
  298. package/dist/toast.js +20 -0
  299. package/dist/toast.mjs +3 -0
  300. package/dist/tooltip.d.mts +24 -0
  301. package/dist/tooltip.d.ts +24 -0
  302. package/dist/tooltip.js +20 -0
  303. package/dist/tooltip.mjs +3 -0
  304. package/dist/useModal-BsGIcP8t.d.mts +128 -0
  305. package/dist/useModal-BsGIcP8t.d.ts +128 -0
  306. package/dist/utils/cn.d.mts +5 -0
  307. package/dist/utils/cn.d.ts +5 -0
  308. package/dist/utils/cn.js +11 -0
  309. package/dist/utils/cn.mjs +2 -0
  310. package/dist/utils/scroll.d.mts +4 -0
  311. package/dist/utils/scroll.d.ts +4 -0
  312. package/dist/utils/scroll.js +15 -0
  313. package/dist/utils/scroll.mjs +2 -0
  314. package/dist/virtual-scroll.d.mts +34 -0
  315. package/dist/virtual-scroll.d.ts +34 -0
  316. package/dist/virtual-scroll.js +16 -0
  317. package/dist/virtual-scroll.mjs +3 -0
  318. package/package.json +291 -0
  319. package/scripts/setup-cursor-rules.cjs +92 -0
@@ -0,0 +1,136 @@
1
+ ---
2
+ description: '@nexus-cross/design-system 공용 컴포넌트 사용 규칙 — AI가 코드 생성 시 반드시 따라야 하는 컴포넌트 사용 지침'
3
+ alwaysApply: true
4
+ ---
5
+
6
+ # @nexus-cross/design-system 컴포넌트 사용 규칙
7
+
8
+ > 이 프로젝트에는 `@nexus-cross/design-system` 디자인 시스템이 설치되어 있다.
9
+ > 코드를 생성할 때 아래 규칙을 반드시 따른다.
10
+
11
+ ## 핵심 원칙
12
+
13
+ 1. **Figma 디자인에 아래 목록에 해당하는 UI 요소가 있으면, 반드시 `@nexus-cross/design-system`에서 import하여 사용한다.**
14
+ 2. **동일 기능의 컴포넌트를 직접 구현하지 않는다.** 예: 직접 `<button className="...">` 대신 `<Button>`을 사용.
15
+ 3. **스타일 커스텀은 `className` prop으로 오버라이드**한다. 래퍼 div를 추가하지 않는다.
16
+ 4. **`asChild` prop**을 지원하는 컴포넌트는 렌더링 요소를 변경할 수 있다.
17
+ 5. **variants 함수만 가져다 쓸 수도 있다** (예: `buttonVariants({ semantic: 'primary', variant: 'contained', size: 'lg' })`).
18
+
19
+ ## 컴포넌트 매핑 가이드
20
+
21
+ | Figma 요소 | 사용할 컴포넌트 | import |
22
+ | ------------------ | ------------------------------ | ------------------------------------------------------------------------ |
23
+ | 버튼 | `<Button>` | `import { Button } from '@nexus-cross/design-system'` |
24
+ | 텍스트 입력 필드 | `<TextInput>` | `import { TextInput } from '@nexus-cross/design-system'` |
25
+ | 텍스트 영역 | `<TextArea>` | `import { TextArea } from '@nexus-cross/design-system'` |
26
+ | 셀렉트/드롭다운 | `<Select>` + `<SelectItem>` | `import { Select, SelectItem } from '@nexus-cross/design-system'` |
27
+ | 체크박스 | `<CheckBox>` | `import { CheckBox } from '@nexus-cross/design-system'` |
28
+ | 라디오 그룹 | `<RadioGroup>` + `<RadioItem>` | `import { RadioGroup, RadioItem } from '@nexus-cross/design-system'` |
29
+ | 토글/스위치 | `<Switch>` | `import { Switch } from '@nexus-cross/design-system'` |
30
+ | 칩/태그/뱃지 | `<Chip>` | `import { Chip } from '@nexus-cross/design-system'` |
31
+ | 로딩 스피너 | `<Spinner>` | `import { Spinner } from '@nexus-cross/design-system'` |
32
+ | 구분선 | `<Divider>` | `import { Divider } from '@nexus-cross/design-system'` |
33
+ | 툴팁 | `<Tooltip>` | `import { Tooltip } from '@nexus-cross/design-system'` |
34
+ | 팝오버 | `<Popover>` | `import { Popover } from '@nexus-cross/design-system'` |
35
+ | 아코디언/접기 | `<Accordion>` | `import { Accordion } from '@nexus-cross/design-system'` |
36
+ | 드로어/바텀시트 | `<Drawer>` | `import { Drawer } from '@nexus-cross/design-system'` |
37
+ | 모달/다이얼로그 | `openModal()` | `import { openModal } from '@nexus-cross/design-system'` |
38
+ | 토스트/알림 | `toast()` | `import { toast } from '@nexus-cross/design-system'` |
39
+ | 테이블 | `<Table>` | `import { Table, TableRow, TdColumn } from '@nexus-cross/design-system'` |
40
+ | 무한 스크롤 | `<InfiniteScroll>` | `import { InfiniteScroll } from '@nexus-cross/design-system'` |
41
+ | 텍스트 말줄임 | `<Ellipsis>` | `import { Ellipsis } from '@nexus-cross/design-system'` |
42
+ | 페이지네이션 | `<Pagination>` | `import { Pagination } from '@nexus-cross/design-system'` |
43
+ | 숫자 입력 | `<NumberInput>` | `import { NumberInput } from '@nexus-cross/design-system'` |
44
+ | 아바타/프로필 | `<Avatar>` | `import { Avatar } from '@nexus-cross/design-system'` |
45
+ | 숫자 카운트 | `<Counter>` | `import { Counter } from '@nexus-cross/design-system'` |
46
+ | 카운트다운 | `<Countdown>` | `import { Countdown } from '@nexus-cross/design-system'` |
47
+ | 마퀴/흐르는 텍스트 | `<Marquee>` | `import { Marquee } from '@nexus-cross/design-system'` |
48
+ | 탭 | `<Tab>` | `import { Tab } from '@nexus-cross/design-system'` |
49
+ | 캐러셀/슬라이더 | `<Carousel>` | `import { Carousel, CarouselSlide } from '@nexus-cross/design-system'` |
50
+ | 가상 스크롤 리스트 | `<VirtualList>` | `import { VirtualList } from '@nexus-cross/design-system'` |
51
+ | 가상 스크롤 그리드 | `<VirtualGrid>` | `import { VirtualGrid } from '@nexus-cross/design-system'` |
52
+ | 데이터 리스트 | `<DataList>` | `import { DataList } from '@nexus-cross/design-system'` |
53
+ | 스켈레톤 로딩 | `<Skeleton>` | `import { Skeleton } from '@nexus-cross/design-system'` |
54
+
55
+ ## 유틸리티 & 훅
56
+
57
+ | 기능 | 사용 | import |
58
+ | ----------------------- | --------------------------------- | ----------------------------------------------------------------------------------- |
59
+ | 클래스 병합 | `cn()` | `import { cn } from '@nexus-cross/design-system'` |
60
+ | 모달 훅 | `useModal()` | `import { useModal } from '@nexus-cross/design-system'` |
61
+ | 뷰포트 감지 | `useInView()` | `import { useInView } from '@nexus-cross/design-system'` |
62
+ | 디바이스 체크 | `useCheckDevice()` | `import { useCheckDevice } from '@nexus-cross/design-system'` |
63
+ | 외부 클릭 | `useClickOutside()` | `import { useClickOutside } from '@nexus-cross/design-system'` |
64
+ | NumberInput 외부 바인딩 | `numberInputBind(ref, direction)` | `import { numberInputBind, type NumberInputRef } from '@nexus-cross/design-system'` |
65
+
66
+ ## asChild 패턴
67
+
68
+ `asChild`를 지원하는 컴포넌트: **Button**, **Chip**
69
+
70
+ ```tsx
71
+ // Button을 <a> 태그로 렌더링
72
+ <Button asChild semantic="primary" variant="contained">
73
+ <a href="/about">About</a>
74
+ </Button>
75
+
76
+ // Chip을 <li>로 렌더링
77
+ <Chip asChild variant="accent" size="sm">
78
+ <li>리스트 아이템</li>
79
+ </Chip>
80
+ ```
81
+
82
+ ## variants 함수만 사용하기
83
+
84
+ 컴포넌트를 사용하지 않고 variant 클래스만 필요할 때:
85
+
86
+ ```tsx
87
+ import { buttonVariants } from '@nexus-cross/design-system'
88
+
89
+ // 직접 <a> 태그에 Button 스타일 적용
90
+ ;<a
91
+ href="/link"
92
+ className={buttonVariants({
93
+ semantic: 'primary',
94
+ variant: 'outlined',
95
+ size: 'sm',
96
+ })}
97
+ >
98
+ 링크
99
+ </a>
100
+ ```
101
+
102
+ 사용 가능한 variants 함수: `buttonVariants`, `chipVariants`, `switchVariants`, `textInputVariants`, `textAreaVariants`, `checkBoxVariants`, `radioGroupVariants`, `radioItemVariants`, `dividerVariants`, `selectTriggerVariants`, `selectContentVariants`, `tooltipContentVariants`, `popoverContentVariants`, `drawerContentVariants`
103
+
104
+ ## 커스텀이 필요한 경우
105
+
106
+ 1. **스타일만 다를 때**: `className` prop으로 오버라이드
107
+ 2. **variant가 프로젝트 전용일 때**: 프로젝트 래퍼 컴포넌트 생성 (공용 컴포넌트를 내부에서 사용)
108
+ 3. **구조가 완전히 다를 때**: `<button>` 등 네이티브 요소 직접 사용 가능 (강제 아님)
109
+
110
+ ## 환경별 CSS import (필수)
111
+
112
+ UI 컴포넌트 스타일은 사용처 환경에 따라 두 가지 entry point 중 하나를 선택한다.
113
+
114
+ | 환경 | import |
115
+ |---|---|
116
+ | Tailwind v3 / Plain CSS / CSS Modules | `@nexus-cross/design-system/styles` |
117
+ | Tailwind v4 | `@nexus-cross/design-system/styles/layer` |
118
+
119
+ ```tsx
120
+ // TW v3 / Plain CSS / CSS Modules
121
+ import '@nexus-cross/design-system/styles'
122
+
123
+ // TW v4 (@layer nexus 래핑 — className 유틸리티 오버라이드 보장)
124
+ import '@nexus-cross/design-system/styles/layer'
125
+ ```
126
+
127
+ Tailwind v4 프로젝트는 `globals.css`에 layer 순서도 선언한다:
128
+ ```css
129
+ @layer base, nexus, components, utilities;
130
+ ```
131
+
132
+ ## 금지 사항
133
+
134
+ - `@nexus-cross/design-system`에 이미 있는 컴포넌트를 직접 구현하지 않는다
135
+ - Radix UI, Headless UI 등을 직접 import하여 동일 기능 컴포넌트를 만들지 않는다
136
+ - `@nexus-cross/design-system` 컴포넌트의 내부 구현을 복사하지 않는다
@@ -0,0 +1,28 @@
1
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
2
+ import * as React from 'react';
3
+
4
+ declare const AccordionRoot: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
5
+ declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ type AccordionItemData = {
9
+ id: string;
10
+ trigger: React.ReactNode;
11
+ content: React.ReactNode;
12
+ disabled?: boolean;
13
+ className?: string;
14
+ triggerClassName?: string;
15
+ contentClassName?: string;
16
+ };
17
+ interface SimpleAccordionProps {
18
+ items: AccordionItemData[];
19
+ type?: 'single' | 'multiple';
20
+ collapsible?: boolean;
21
+ value?: string | string[];
22
+ defaultValue?: string | string[];
23
+ className?: string;
24
+ onValueChange?: (value: string | string[]) => void;
25
+ }
26
+ declare const Accordion: React.FC<SimpleAccordionProps>;
27
+
28
+ export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger };
@@ -0,0 +1,28 @@
1
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
2
+ import * as React from 'react';
3
+
4
+ declare const AccordionRoot: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
5
+ declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ type AccordionItemData = {
9
+ id: string;
10
+ trigger: React.ReactNode;
11
+ content: React.ReactNode;
12
+ disabled?: boolean;
13
+ className?: string;
14
+ triggerClassName?: string;
15
+ contentClassName?: string;
16
+ };
17
+ interface SimpleAccordionProps {
18
+ items: AccordionItemData[];
19
+ type?: 'single' | 'multiple';
20
+ collapsible?: boolean;
21
+ value?: string | string[];
22
+ defaultValue?: string | string[];
23
+ className?: string;
24
+ onValueChange?: (value: string | string[]) => void;
25
+ }
26
+ declare const Accordion: React.FC<SimpleAccordionProps>;
27
+
28
+ export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger };
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ var chunkCSJDDREF_js = require('./chunks/chunk-CSJDDREF.js');
4
+ require('./chunks/chunk-CZC76ZD5.js');
5
+ require('./chunks/chunk-JNMCYWGY.js');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "Accordion", {
10
+ enumerable: true,
11
+ get: function () { return chunkCSJDDREF_js.Accordion; }
12
+ });
13
+ Object.defineProperty(exports, "AccordionContent", {
14
+ enumerable: true,
15
+ get: function () { return chunkCSJDDREF_js.AccordionContent; }
16
+ });
17
+ Object.defineProperty(exports, "AccordionItem", {
18
+ enumerable: true,
19
+ get: function () { return chunkCSJDDREF_js.AccordionItem; }
20
+ });
21
+ Object.defineProperty(exports, "AccordionRoot", {
22
+ enumerable: true,
23
+ get: function () { return chunkCSJDDREF_js.AccordionRoot; }
24
+ });
25
+ Object.defineProperty(exports, "AccordionTrigger", {
26
+ enumerable: true,
27
+ get: function () { return chunkCSJDDREF_js.AccordionTrigger; }
28
+ });
@@ -0,0 +1,3 @@
1
+ export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger } from './chunks/chunk-XG6QG65W.mjs';
2
+ import './chunks/chunk-MCKOWMLS.mjs';
3
+ import './chunks/chunk-CVYXRSXT.mjs';
@@ -0,0 +1,17 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import * as React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+
5
+ declare const avatarVariants: (props?: ({
6
+ size?: "xl" | "lg" | "md" | "sm" | "xs" | null | undefined;
7
+ shape?: "circle" | "square" | null | undefined;
8
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
9
+ interface AvatarProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof avatarVariants> {
10
+ src?: string;
11
+ alt?: string;
12
+ fallback?: React.ReactNode;
13
+ onImageError?: () => void;
14
+ }
15
+ declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
16
+
17
+ export { Avatar, type AvatarProps, avatarVariants };
@@ -0,0 +1,17 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import * as React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+
5
+ declare const avatarVariants: (props?: ({
6
+ size?: "xl" | "lg" | "md" | "sm" | "xs" | null | undefined;
7
+ shape?: "circle" | "square" | null | undefined;
8
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
9
+ interface AvatarProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof avatarVariants> {
10
+ src?: string;
11
+ alt?: string;
12
+ fallback?: React.ReactNode;
13
+ onImageError?: () => void;
14
+ }
15
+ declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
16
+
17
+ export { Avatar, type AvatarProps, avatarVariants };
package/dist/avatar.js ADDED
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ var chunkMA2VCCIY_js = require('./chunks/chunk-MA2VCCIY.js');
4
+ require('./chunks/chunk-CZC76ZD5.js');
5
+ require('./chunks/chunk-JNMCYWGY.js');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "Avatar", {
10
+ enumerable: true,
11
+ get: function () { return chunkMA2VCCIY_js.Avatar; }
12
+ });
13
+ Object.defineProperty(exports, "avatarVariants", {
14
+ enumerable: true,
15
+ get: function () { return chunkMA2VCCIY_js.avatarVariants; }
16
+ });
@@ -0,0 +1,3 @@
1
+ export { Avatar, avatarVariants } from './chunks/chunk-YLO4UKSC.mjs';
2
+ import './chunks/chunk-MCKOWMLS.mjs';
3
+ import './chunks/chunk-CVYXRSXT.mjs';
@@ -0,0 +1,17 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import * as React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+
5
+ declare const buttonVariants: (props?: ({
6
+ semantic?: "primary" | "secondary" | "normal" | "danger" | null | undefined;
7
+ variant?: "contained" | "outlined" | "subtle" | "ghost" | null | undefined;
8
+ size?: "xl" | "lg" | "md" | "sm" | null | undefined;
9
+ radius?: "default" | "circle" | null | undefined;
10
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
11
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
12
+ asChild?: boolean;
13
+ detectDoubleClick?: boolean;
14
+ }
15
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
16
+
17
+ export { Button, type ButtonProps, buttonVariants };
@@ -0,0 +1,17 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import * as React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+
5
+ declare const buttonVariants: (props?: ({
6
+ semantic?: "primary" | "secondary" | "normal" | "danger" | null | undefined;
7
+ variant?: "contained" | "outlined" | "subtle" | "ghost" | null | undefined;
8
+ size?: "xl" | "lg" | "md" | "sm" | null | undefined;
9
+ radius?: "default" | "circle" | null | undefined;
10
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
11
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
12
+ asChild?: boolean;
13
+ detectDoubleClick?: boolean;
14
+ }
15
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
16
+
17
+ export { Button, type ButtonProps, buttonVariants };
package/dist/button.js ADDED
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ var chunkP3DZKXG4_js = require('./chunks/chunk-P3DZKXG4.js');
4
+ require('./chunks/chunk-CZC76ZD5.js');
5
+ require('./chunks/chunk-JNMCYWGY.js');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "Button", {
10
+ enumerable: true,
11
+ get: function () { return chunkP3DZKXG4_js.Button; }
12
+ });
13
+ Object.defineProperty(exports, "buttonVariants", {
14
+ enumerable: true,
15
+ get: function () { return chunkP3DZKXG4_js.buttonVariants; }
16
+ });
@@ -0,0 +1,3 @@
1
+ export { Button, buttonVariants } from './chunks/chunk-VVXQZ4XH.mjs';
2
+ import './chunks/chunk-MCKOWMLS.mjs';
3
+ import './chunks/chunk-CVYXRSXT.mjs';
@@ -0,0 +1,36 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import useEmblaCarousel, { UseEmblaCarouselType } from 'embla-carousel-react';
4
+
5
+ type CarouselApi = UseEmblaCarouselType[1];
6
+ interface CarouselProps extends React.HTMLAttributes<HTMLDivElement> {
7
+ opts?: Parameters<typeof useEmblaCarousel>[0];
8
+ plugins?: Parameters<typeof useEmblaCarousel>[1];
9
+ onApiChange?: (api: CarouselApi) => void;
10
+ }
11
+ interface CarouselContextValue {
12
+ api: CarouselApi;
13
+ canScrollPrev: boolean;
14
+ canScrollNext: boolean;
15
+ scrollPrev: () => void;
16
+ scrollNext: () => void;
17
+ selectedIndex: number;
18
+ scrollSnapCount: number;
19
+ }
20
+ declare function useCarousel(): CarouselContextValue;
21
+ declare const Carousel: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<HTMLDivElement>>;
22
+ interface CarouselSlideProps extends React.HTMLAttributes<HTMLDivElement> {
23
+ }
24
+ declare const CarouselSlide: React.ForwardRefExoticComponent<CarouselSlideProps & React.RefAttributes<HTMLDivElement>>;
25
+ interface CarouselButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
26
+ }
27
+ declare const CarouselPrev: React.ForwardRefExoticComponent<CarouselButtonProps & React.RefAttributes<HTMLButtonElement>>;
28
+ declare const CarouselNext: React.ForwardRefExoticComponent<CarouselButtonProps & React.RefAttributes<HTMLButtonElement>>;
29
+ declare function CarouselDots({ className }: {
30
+ className?: string;
31
+ }): react_jsx_runtime.JSX.Element;
32
+ declare namespace CarouselDots {
33
+ var displayName: string;
34
+ }
35
+
36
+ export { Carousel, type CarouselApi, CarouselDots, CarouselNext, CarouselPrev, type CarouselProps, CarouselSlide, type CarouselSlideProps, useCarousel };
@@ -0,0 +1,36 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import useEmblaCarousel, { UseEmblaCarouselType } from 'embla-carousel-react';
4
+
5
+ type CarouselApi = UseEmblaCarouselType[1];
6
+ interface CarouselProps extends React.HTMLAttributes<HTMLDivElement> {
7
+ opts?: Parameters<typeof useEmblaCarousel>[0];
8
+ plugins?: Parameters<typeof useEmblaCarousel>[1];
9
+ onApiChange?: (api: CarouselApi) => void;
10
+ }
11
+ interface CarouselContextValue {
12
+ api: CarouselApi;
13
+ canScrollPrev: boolean;
14
+ canScrollNext: boolean;
15
+ scrollPrev: () => void;
16
+ scrollNext: () => void;
17
+ selectedIndex: number;
18
+ scrollSnapCount: number;
19
+ }
20
+ declare function useCarousel(): CarouselContextValue;
21
+ declare const Carousel: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<HTMLDivElement>>;
22
+ interface CarouselSlideProps extends React.HTMLAttributes<HTMLDivElement> {
23
+ }
24
+ declare const CarouselSlide: React.ForwardRefExoticComponent<CarouselSlideProps & React.RefAttributes<HTMLDivElement>>;
25
+ interface CarouselButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
26
+ }
27
+ declare const CarouselPrev: React.ForwardRefExoticComponent<CarouselButtonProps & React.RefAttributes<HTMLButtonElement>>;
28
+ declare const CarouselNext: React.ForwardRefExoticComponent<CarouselButtonProps & React.RefAttributes<HTMLButtonElement>>;
29
+ declare function CarouselDots({ className }: {
30
+ className?: string;
31
+ }): react_jsx_runtime.JSX.Element;
32
+ declare namespace CarouselDots {
33
+ var displayName: string;
34
+ }
35
+
36
+ export { Carousel, type CarouselApi, CarouselDots, CarouselNext, CarouselPrev, type CarouselProps, CarouselSlide, type CarouselSlideProps, useCarousel };
@@ -0,0 +1,32 @@
1
+ 'use strict';
2
+
3
+ var chunkYCG4FZC3_js = require('./chunks/chunk-YCG4FZC3.js');
4
+ require('./chunks/chunk-CZC76ZD5.js');
5
+ require('./chunks/chunk-JNMCYWGY.js');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "Carousel", {
10
+ enumerable: true,
11
+ get: function () { return chunkYCG4FZC3_js.Carousel; }
12
+ });
13
+ Object.defineProperty(exports, "CarouselDots", {
14
+ enumerable: true,
15
+ get: function () { return chunkYCG4FZC3_js.CarouselDots; }
16
+ });
17
+ Object.defineProperty(exports, "CarouselNext", {
18
+ enumerable: true,
19
+ get: function () { return chunkYCG4FZC3_js.CarouselNext; }
20
+ });
21
+ Object.defineProperty(exports, "CarouselPrev", {
22
+ enumerable: true,
23
+ get: function () { return chunkYCG4FZC3_js.CarouselPrev; }
24
+ });
25
+ Object.defineProperty(exports, "CarouselSlide", {
26
+ enumerable: true,
27
+ get: function () { return chunkYCG4FZC3_js.CarouselSlide; }
28
+ });
29
+ Object.defineProperty(exports, "useCarousel", {
30
+ enumerable: true,
31
+ get: function () { return chunkYCG4FZC3_js.useCarousel; }
32
+ });
@@ -0,0 +1,3 @@
1
+ export { Carousel, CarouselDots, CarouselNext, CarouselPrev, CarouselSlide, useCarousel } from './chunks/chunk-3HHJORN7.mjs';
2
+ import './chunks/chunk-MCKOWMLS.mjs';
3
+ import './chunks/chunk-CVYXRSXT.mjs';
@@ -0,0 +1,21 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import * as React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+
5
+ declare const checkBoxVariants: (props?: ({
6
+ size?: "md" | "sm" | null | undefined;
7
+ shape?: "round" | "square" | null | undefined;
8
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
9
+ declare const boxVariants: (props?: ({
10
+ size?: "md" | "sm" | null | undefined;
11
+ shape?: "round" | "square" | null | undefined;
12
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
13
+ interface CheckBoxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'>, VariantProps<typeof checkBoxVariants> {
14
+ checked?: boolean;
15
+ indeterminate?: boolean;
16
+ onCheckedChange?: (checked: boolean) => void;
17
+ label?: React.ReactNode;
18
+ }
19
+ declare const CheckBox: React.ForwardRefExoticComponent<CheckBoxProps & React.RefAttributes<HTMLInputElement>>;
20
+
21
+ export { CheckBox, type CheckBoxProps, boxVariants, checkBoxVariants };
@@ -0,0 +1,21 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import * as React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+
5
+ declare const checkBoxVariants: (props?: ({
6
+ size?: "md" | "sm" | null | undefined;
7
+ shape?: "round" | "square" | null | undefined;
8
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
9
+ declare const boxVariants: (props?: ({
10
+ size?: "md" | "sm" | null | undefined;
11
+ shape?: "round" | "square" | null | undefined;
12
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
13
+ interface CheckBoxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'>, VariantProps<typeof checkBoxVariants> {
14
+ checked?: boolean;
15
+ indeterminate?: boolean;
16
+ onCheckedChange?: (checked: boolean) => void;
17
+ label?: React.ReactNode;
18
+ }
19
+ declare const CheckBox: React.ForwardRefExoticComponent<CheckBoxProps & React.RefAttributes<HTMLInputElement>>;
20
+
21
+ export { CheckBox, type CheckBoxProps, boxVariants, checkBoxVariants };
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var chunkJ5ZKGPBY_js = require('./chunks/chunk-J5ZKGPBY.js');
4
+ require('./chunks/chunk-CZC76ZD5.js');
5
+ require('./chunks/chunk-JNMCYWGY.js');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "CheckBox", {
10
+ enumerable: true,
11
+ get: function () { return chunkJ5ZKGPBY_js.CheckBox; }
12
+ });
13
+ Object.defineProperty(exports, "boxVariants", {
14
+ enumerable: true,
15
+ get: function () { return chunkJ5ZKGPBY_js.boxVariants; }
16
+ });
17
+ Object.defineProperty(exports, "checkBoxVariants", {
18
+ enumerable: true,
19
+ get: function () { return chunkJ5ZKGPBY_js.checkBoxVariants; }
20
+ });
@@ -0,0 +1,3 @@
1
+ export { CheckBox, boxVariants, checkBoxVariants } from './chunks/chunk-MRRKW5QN.mjs';
2
+ import './chunks/chunk-MCKOWMLS.mjs';
3
+ import './chunks/chunk-CVYXRSXT.mjs';
@@ -0,0 +1,16 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import * as React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+
5
+ declare const chipVariants: (props?: ({
6
+ variant?: "default" | "accent" | "filled" | "outline" | null | undefined;
7
+ size?: "lg" | "md" | "sm" | null | undefined;
8
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
9
+ interface ChipProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof chipVariants> {
10
+ asChild?: boolean;
11
+ onClose?: (e: React.MouseEvent) => void;
12
+ disabled?: boolean;
13
+ }
14
+ declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLElement>>;
15
+
16
+ export { Chip, type ChipProps, chipVariants };
package/dist/chip.d.ts ADDED
@@ -0,0 +1,16 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import * as React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+
5
+ declare const chipVariants: (props?: ({
6
+ variant?: "default" | "accent" | "filled" | "outline" | null | undefined;
7
+ size?: "lg" | "md" | "sm" | null | undefined;
8
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
9
+ interface ChipProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof chipVariants> {
10
+ asChild?: boolean;
11
+ onClose?: (e: React.MouseEvent) => void;
12
+ disabled?: boolean;
13
+ }
14
+ declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLElement>>;
15
+
16
+ export { Chip, type ChipProps, chipVariants };
package/dist/chip.js ADDED
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ var chunkWKCXACMZ_js = require('./chunks/chunk-WKCXACMZ.js');
4
+ require('./chunks/chunk-CZC76ZD5.js');
5
+ require('./chunks/chunk-JNMCYWGY.js');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "Chip", {
10
+ enumerable: true,
11
+ get: function () { return chunkWKCXACMZ_js.Chip; }
12
+ });
13
+ Object.defineProperty(exports, "chipVariants", {
14
+ enumerable: true,
15
+ get: function () { return chunkWKCXACMZ_js.chipVariants; }
16
+ });
package/dist/chip.mjs ADDED
@@ -0,0 +1,3 @@
1
+ export { Chip, chipVariants } from './chunks/chunk-RX5UKRYK.mjs';
2
+ import './chunks/chunk-MCKOWMLS.mjs';
3
+ import './chunks/chunk-CVYXRSXT.mjs';
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ var chunkJNMCYWGY_js = require('./chunk-JNMCYWGY.js');
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+
6
+ exports.ThemeProvider = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
7
+ exports.useTheme = () => ({
8
+ theme: void 0,
9
+ setTheme: () => {
10
+ },
11
+ resolvedTheme: void 0,
12
+ themes: [],
13
+ systemTheme: void 0,
14
+ forcedTheme: void 0
15
+ });
16
+ try {
17
+ const nextThemes = chunkJNMCYWGY_js.__require("next-themes");
18
+ exports.ThemeProvider = nextThemes.ThemeProvider;
19
+ exports.useTheme = nextThemes.useTheme;
20
+ } catch {
21
+ }