@exem-ui/react 0.1.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 (273) hide show
  1. package/README.md +40 -0
  2. package/dist/Button-CMenVfb7.d.mts +35 -0
  3. package/dist/Button-CMenVfb7.d.ts +35 -0
  4. package/dist/Select-DMvWV_rF.d.mts +94 -0
  5. package/dist/Select-DMvWV_rF.d.ts +94 -0
  6. package/dist/avatar/index.d.mts +37 -0
  7. package/dist/avatar/index.d.ts +37 -0
  8. package/dist/avatar/index.js +13 -0
  9. package/dist/avatar/index.js.map +1 -0
  10. package/dist/avatar/index.mjs +4 -0
  11. package/dist/avatar/index.mjs.map +1 -0
  12. package/dist/badge/index.d.mts +29 -0
  13. package/dist/badge/index.d.ts +29 -0
  14. package/dist/badge/index.js +12 -0
  15. package/dist/badge/index.js.map +1 -0
  16. package/dist/badge/index.mjs +3 -0
  17. package/dist/badge/index.mjs.map +1 -0
  18. package/dist/breadcrumb/index.d.mts +43 -0
  19. package/dist/breadcrumb/index.d.ts +43 -0
  20. package/dist/breadcrumb/index.js +13 -0
  21. package/dist/breadcrumb/index.js.map +1 -0
  22. package/dist/breadcrumb/index.mjs +4 -0
  23. package/dist/breadcrumb/index.mjs.map +1 -0
  24. package/dist/button/index.d.mts +9 -0
  25. package/dist/button/index.d.ts +9 -0
  26. package/dist/button/index.js +29 -0
  27. package/dist/button/index.js.map +1 -0
  28. package/dist/button/index.mjs +12 -0
  29. package/dist/button/index.mjs.map +1 -0
  30. package/dist/checkbox/index.d.mts +54 -0
  31. package/dist/checkbox/index.d.ts +54 -0
  32. package/dist/checkbox/index.js +13 -0
  33. package/dist/checkbox/index.js.map +1 -0
  34. package/dist/checkbox/index.mjs +4 -0
  35. package/dist/checkbox/index.mjs.map +1 -0
  36. package/dist/chunk-34QIGWCT.mjs +10 -0
  37. package/dist/chunk-34QIGWCT.mjs.map +1 -0
  38. package/dist/chunk-3FPMWAQT.js +30 -0
  39. package/dist/chunk-3FPMWAQT.js.map +1 -0
  40. package/dist/chunk-3HMT3DQV.js +104 -0
  41. package/dist/chunk-3HMT3DQV.js.map +1 -0
  42. package/dist/chunk-4WAO7CUT.mjs +95 -0
  43. package/dist/chunk-4WAO7CUT.mjs.map +1 -0
  44. package/dist/chunk-5M47B2XJ.js +4096 -0
  45. package/dist/chunk-5M47B2XJ.js.map +1 -0
  46. package/dist/chunk-5QX4TO4F.js +61 -0
  47. package/dist/chunk-5QX4TO4F.js.map +1 -0
  48. package/dist/chunk-5TEFN2CW.js +97 -0
  49. package/dist/chunk-5TEFN2CW.js.map +1 -0
  50. package/dist/chunk-5TES5PG6.js +41 -0
  51. package/dist/chunk-5TES5PG6.js.map +1 -0
  52. package/dist/chunk-5TVMECVF.js +148 -0
  53. package/dist/chunk-5TVMECVF.js.map +1 -0
  54. package/dist/chunk-5WGNZX7Z.mjs +27 -0
  55. package/dist/chunk-5WGNZX7Z.mjs.map +1 -0
  56. package/dist/chunk-AQ3OIM2T.js +103 -0
  57. package/dist/chunk-AQ3OIM2T.js.map +1 -0
  58. package/dist/chunk-AU5NTBK3.js +361 -0
  59. package/dist/chunk-AU5NTBK3.js.map +1 -0
  60. package/dist/chunk-DJHGCJR4.mjs +224 -0
  61. package/dist/chunk-DJHGCJR4.mjs.map +1 -0
  62. package/dist/chunk-DPUTW5KD.mjs +74 -0
  63. package/dist/chunk-DPUTW5KD.mjs.map +1 -0
  64. package/dist/chunk-E53FHDVN.mjs +336 -0
  65. package/dist/chunk-E53FHDVN.mjs.map +1 -0
  66. package/dist/chunk-ECRQD7UU.js +82 -0
  67. package/dist/chunk-ECRQD7UU.js.map +1 -0
  68. package/dist/chunk-FB4ESGOX.mjs +59 -0
  69. package/dist/chunk-FB4ESGOX.mjs.map +1 -0
  70. package/dist/chunk-FDX4IQK5.js +76 -0
  71. package/dist/chunk-FDX4IQK5.js.map +1 -0
  72. package/dist/chunk-FOMIUDRM.js +96 -0
  73. package/dist/chunk-FOMIUDRM.js.map +1 -0
  74. package/dist/chunk-FR5F3VTU.js +139 -0
  75. package/dist/chunk-FR5F3VTU.js.map +1 -0
  76. package/dist/chunk-GW53LH3I.mjs +81 -0
  77. package/dist/chunk-GW53LH3I.mjs.map +1 -0
  78. package/dist/chunk-GXMRIT5E.mjs +94 -0
  79. package/dist/chunk-GXMRIT5E.mjs.map +1 -0
  80. package/dist/chunk-IANSI7F7.mjs +393 -0
  81. package/dist/chunk-IANSI7F7.mjs.map +1 -0
  82. package/dist/chunk-IDM6MZHF.js +415 -0
  83. package/dist/chunk-IDM6MZHF.js.map +1 -0
  84. package/dist/chunk-J5ZYQ3TP.js +104 -0
  85. package/dist/chunk-J5ZYQ3TP.js.map +1 -0
  86. package/dist/chunk-KPAUBWZA.mjs +39 -0
  87. package/dist/chunk-KPAUBWZA.mjs.map +1 -0
  88. package/dist/chunk-L7P2NDST.mjs +124 -0
  89. package/dist/chunk-L7P2NDST.mjs.map +1 -0
  90. package/dist/chunk-LZWKMQJL.mjs +3886 -0
  91. package/dist/chunk-LZWKMQJL.mjs.map +1 -0
  92. package/dist/chunk-M6OWN7QH.js +118 -0
  93. package/dist/chunk-M6OWN7QH.js.map +1 -0
  94. package/dist/chunk-MQVHREEI.js +448 -0
  95. package/dist/chunk-MQVHREEI.js.map +1 -0
  96. package/dist/chunk-MT47ECUN.js +127 -0
  97. package/dist/chunk-MT47ECUN.js.map +1 -0
  98. package/dist/chunk-N6U54JI4.mjs +126 -0
  99. package/dist/chunk-N6U54JI4.mjs.map +1 -0
  100. package/dist/chunk-NDG4LR3Q.js +139 -0
  101. package/dist/chunk-NDG4LR3Q.js.map +1 -0
  102. package/dist/chunk-PPD4BU4W.mjs +80 -0
  103. package/dist/chunk-PPD4BU4W.mjs.map +1 -0
  104. package/dist/chunk-PU5NO5EZ.js +4 -0
  105. package/dist/chunk-PU5NO5EZ.js.map +1 -0
  106. package/dist/chunk-Q442ZDTI.mjs +117 -0
  107. package/dist/chunk-Q442ZDTI.mjs.map +1 -0
  108. package/dist/chunk-QH23RO3C.mjs +137 -0
  109. package/dist/chunk-QH23RO3C.mjs.map +1 -0
  110. package/dist/chunk-REBHUF4L.js +226 -0
  111. package/dist/chunk-REBHUF4L.js.map +1 -0
  112. package/dist/chunk-RGB3QLQT.js +275 -0
  113. package/dist/chunk-RGB3QLQT.js.map +1 -0
  114. package/dist/chunk-T7U2QRLC.js +94 -0
  115. package/dist/chunk-T7U2QRLC.js.map +1 -0
  116. package/dist/chunk-TEHHJ3CS.mjs +73 -0
  117. package/dist/chunk-TEHHJ3CS.mjs.map +1 -0
  118. package/dist/chunk-TJY4MIBC.js +117 -0
  119. package/dist/chunk-TJY4MIBC.js.map +1 -0
  120. package/dist/chunk-VCMZQOQM.mjs +102 -0
  121. package/dist/chunk-VCMZQOQM.mjs.map +1 -0
  122. package/dist/chunk-VKN4H4WI.mjs +3 -0
  123. package/dist/chunk-VKN4H4WI.mjs.map +1 -0
  124. package/dist/chunk-VSB25XTY.js +12 -0
  125. package/dist/chunk-VSB25XTY.js.map +1 -0
  126. package/dist/chunk-VWTE74UT.mjs +96 -0
  127. package/dist/chunk-VWTE74UT.mjs.map +1 -0
  128. package/dist/chunk-WBTL7PBV.js +105 -0
  129. package/dist/chunk-WBTL7PBV.js.map +1 -0
  130. package/dist/chunk-WOK3EP3O.js +83 -0
  131. package/dist/chunk-WOK3EP3O.js.map +1 -0
  132. package/dist/chunk-WWT73GGM.mjs +83 -0
  133. package/dist/chunk-WWT73GGM.mjs.map +1 -0
  134. package/dist/chunk-XBDXTRK3.mjs +102 -0
  135. package/dist/chunk-XBDXTRK3.mjs.map +1 -0
  136. package/dist/chunk-YGBEKZWU.mjs +81 -0
  137. package/dist/chunk-YGBEKZWU.mjs.map +1 -0
  138. package/dist/chunk-YVFLRPFV.mjs +72 -0
  139. package/dist/chunk-YVFLRPFV.mjs.map +1 -0
  140. package/dist/chunk-ZMVBIQ2Z.mjs +253 -0
  141. package/dist/chunk-ZMVBIQ2Z.mjs.map +1 -0
  142. package/dist/chunk-ZWCMSHDP.mjs +425 -0
  143. package/dist/chunk-ZWCMSHDP.mjs.map +1 -0
  144. package/dist/flat/index.d.mts +13 -0
  145. package/dist/flat/index.d.ts +13 -0
  146. package/dist/flat/index.js +31 -0
  147. package/dist/flat/index.js.map +1 -0
  148. package/dist/flat/index.mjs +10 -0
  149. package/dist/flat/index.mjs.map +1 -0
  150. package/dist/flat/segment.d.mts +39 -0
  151. package/dist/flat/segment.d.ts +39 -0
  152. package/dist/flat/segment.js +13 -0
  153. package/dist/flat/segment.js.map +1 -0
  154. package/dist/flat/segment.mjs +4 -0
  155. package/dist/flat/segment.mjs.map +1 -0
  156. package/dist/flat/select.d.mts +58 -0
  157. package/dist/flat/select.d.ts +58 -0
  158. package/dist/flat/select.js +14 -0
  159. package/dist/flat/select.js.map +1 -0
  160. package/dist/flat/select.mjs +5 -0
  161. package/dist/flat/select.mjs.map +1 -0
  162. package/dist/flat/tooltip.d.mts +98 -0
  163. package/dist/flat/tooltip.d.ts +98 -0
  164. package/dist/flat/tooltip.js +17 -0
  165. package/dist/flat/tooltip.js.map +1 -0
  166. package/dist/flat/tooltip.mjs +4 -0
  167. package/dist/flat/tooltip.mjs.map +1 -0
  168. package/dist/icon/index.d.mts +1258 -0
  169. package/dist/icon/index.d.ts +1258 -0
  170. package/dist/icon/index.js +1672 -0
  171. package/dist/icon/index.js.map +1 -0
  172. package/dist/icon/index.mjs +3 -0
  173. package/dist/icon/index.mjs.map +1 -0
  174. package/dist/index-CXip5Wb1.d.mts +62 -0
  175. package/dist/index-Drz3P-6Y.d.ts +62 -0
  176. package/dist/index.d.mts +37 -0
  177. package/dist/index.d.ts +37 -0
  178. package/dist/index.js +150 -0
  179. package/dist/index.js.map +1 -0
  180. package/dist/index.mjs +29 -0
  181. package/dist/index.mjs.map +1 -0
  182. package/dist/input/index.d.mts +82 -0
  183. package/dist/input/index.d.ts +82 -0
  184. package/dist/input/index.js +22 -0
  185. package/dist/input/index.js.map +1 -0
  186. package/dist/input/index.mjs +5 -0
  187. package/dist/input/index.mjs.map +1 -0
  188. package/dist/loading/index.d.mts +54 -0
  189. package/dist/loading/index.d.ts +54 -0
  190. package/dist/loading/index.js +12 -0
  191. package/dist/loading/index.js.map +1 -0
  192. package/dist/loading/index.mjs +3 -0
  193. package/dist/loading/index.mjs.map +1 -0
  194. package/dist/messageBox/index.d.mts +33 -0
  195. package/dist/messageBox/index.d.ts +33 -0
  196. package/dist/messageBox/index.js +13 -0
  197. package/dist/messageBox/index.js.map +1 -0
  198. package/dist/messageBox/index.mjs +4 -0
  199. package/dist/messageBox/index.mjs.map +1 -0
  200. package/dist/modal/index.d.mts +97 -0
  201. package/dist/modal/index.d.ts +97 -0
  202. package/dist/modal/index.js +15 -0
  203. package/dist/modal/index.js.map +1 -0
  204. package/dist/modal/index.mjs +6 -0
  205. package/dist/modal/index.mjs.map +1 -0
  206. package/dist/picker/index.d.mts +12 -0
  207. package/dist/picker/index.d.ts +12 -0
  208. package/dist/picker/index.js +13 -0
  209. package/dist/picker/index.js.map +1 -0
  210. package/dist/picker/index.mjs +4 -0
  211. package/dist/picker/index.mjs.map +1 -0
  212. package/dist/progress/index.d.mts +36 -0
  213. package/dist/progress/index.d.ts +36 -0
  214. package/dist/progress/index.js +12 -0
  215. package/dist/progress/index.js.map +1 -0
  216. package/dist/progress/index.mjs +3 -0
  217. package/dist/progress/index.mjs.map +1 -0
  218. package/dist/radio/index.d.mts +39 -0
  219. package/dist/radio/index.d.ts +39 -0
  220. package/dist/radio/index.js +12 -0
  221. package/dist/radio/index.js.map +1 -0
  222. package/dist/radio/index.mjs +3 -0
  223. package/dist/radio/index.mjs.map +1 -0
  224. package/dist/scrollArea/index.d.mts +31 -0
  225. package/dist/scrollArea/index.d.ts +31 -0
  226. package/dist/scrollArea/index.js +16 -0
  227. package/dist/scrollArea/index.js.map +1 -0
  228. package/dist/scrollArea/index.mjs +3 -0
  229. package/dist/scrollArea/index.mjs.map +1 -0
  230. package/dist/segment/index.d.mts +46 -0
  231. package/dist/segment/index.d.ts +46 -0
  232. package/dist/segment/index.js +12 -0
  233. package/dist/segment/index.js.map +1 -0
  234. package/dist/segment/index.mjs +3 -0
  235. package/dist/segment/index.mjs.map +1 -0
  236. package/dist/star/index.d.mts +30 -0
  237. package/dist/star/index.d.ts +30 -0
  238. package/dist/star/index.js +12 -0
  239. package/dist/star/index.js.map +1 -0
  240. package/dist/star/index.mjs +3 -0
  241. package/dist/star/index.mjs.map +1 -0
  242. package/dist/switch/index.d.mts +32 -0
  243. package/dist/switch/index.d.ts +32 -0
  244. package/dist/switch/index.js +12 -0
  245. package/dist/switch/index.js.map +1 -0
  246. package/dist/switch/index.mjs +3 -0
  247. package/dist/switch/index.mjs.map +1 -0
  248. package/dist/tabs/index.d.mts +52 -0
  249. package/dist/tabs/index.d.ts +52 -0
  250. package/dist/tabs/index.js +12 -0
  251. package/dist/tabs/index.js.map +1 -0
  252. package/dist/tabs/index.mjs +3 -0
  253. package/dist/tabs/index.mjs.map +1 -0
  254. package/dist/tag/index.d.mts +68 -0
  255. package/dist/tag/index.d.ts +68 -0
  256. package/dist/tag/index.js +17 -0
  257. package/dist/tag/index.js.map +1 -0
  258. package/dist/tag/index.mjs +4 -0
  259. package/dist/tag/index.mjs.map +1 -0
  260. package/dist/toast/index.d.mts +175 -0
  261. package/dist/toast/index.d.ts +175 -0
  262. package/dist/toast/index.js +25 -0
  263. package/dist/toast/index.js.map +1 -0
  264. package/dist/toast/index.mjs +4 -0
  265. package/dist/toast/index.mjs.map +1 -0
  266. package/dist/tooltip/index.d.mts +26 -0
  267. package/dist/tooltip/index.d.ts +26 -0
  268. package/dist/tooltip/index.js +12 -0
  269. package/dist/tooltip/index.js.map +1 -0
  270. package/dist/tooltip/index.mjs +3 -0
  271. package/dist/tooltip/index.mjs.map +1 -0
  272. package/package.json +249 -0
  273. package/styles.css +20 -0
@@ -0,0 +1,68 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import { VariantProps } from '@exem-ui/core/utils';
3
+ import React__default from 'react';
4
+
5
+ type TagColor = VariantProps<typeof tagVariants>['color'];
6
+ interface TagProps extends Pick<React__default.HTMLAttributes<HTMLDivElement>, 'className' | 'children' | 'style'>, VariantProps<typeof tagVariants> {
7
+ /** 텍스트 왼쪽에 표시할 아이콘 */
8
+ leftIcon?: React__default.ReactElement<{
9
+ className?: string;
10
+ }>;
11
+ /**
12
+ * 삭제 아이콘 표시 여부
13
+ * @default false
14
+ */
15
+ canDelete?: boolean;
16
+ /** 삭제 버튼 클릭 핸들러 */
17
+ onDelete?: () => void;
18
+ /** 텍스트 오른쪽에 표시할 슬롯 요소 */
19
+ rightSlot?: React__default.ReactNode;
20
+ }
21
+ type TagComponent = React__default.ForwardRefExoticComponent<TagProps & React__default.RefAttributes<HTMLDivElement>>;
22
+ interface DoubleTagProps {
23
+ /** 표시할 태그 항목 배열 (각 항목은 color와 content를 가짐) */
24
+ items: {
25
+ color: TagColor;
26
+ content: React__default.ReactNode;
27
+ }[];
28
+ className?: string;
29
+ }
30
+ declare const tagVariants: (props?: ({
31
+ color?: "mono" | "sky" | "red" | "amber" | "green" | "orange" | "cyan" | "violet" | "pink" | "yellow" | "lime" | "emerald" | "teal" | "blue" | "indigo" | "purple" | "fuchsia" | "rose" | null | undefined;
32
+ type?: "fill" | "line" | null | undefined;
33
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
34
+ /**
35
+ * 카테고리나 상태를 나타내는 라벨 컴포넌트입니다.
36
+ * 18가지 색상과 `fill`/`line` 타입을 지원합니다.
37
+ *
38
+ * @example
39
+ * ```tsx
40
+ * <Tag color="sky">라벨</Tag>
41
+ * <Tag color="red" type="line">경고</Tag>
42
+ * <Tag color="green" canDelete onDelete={handleDelete}>삭제 가능</Tag>
43
+ * <Tag color="blue" leftIcon={<StarIcon type="regular" />}>아이콘 태그</Tag>
44
+ * <Tag color="blue" rightSlot={<Icon />}>커스텀 슬롯</Tag>
45
+ * ```
46
+ *
47
+ * @see {@link TagProps} props 상세
48
+ */
49
+ declare const Tag: React__default.ForwardRefExoticComponent<TagProps & React__default.RefAttributes<HTMLDivElement>>;
50
+ /**
51
+ * 두 개의 태그를 나란히 연결하여 키-값 쌍을 표시하는 컴포넌트입니다.
52
+ * 각 태그는 `line` 타입으로 렌더링되며, 사이에 구분선이 표시됩니다.
53
+ *
54
+ * @example
55
+ * ```tsx
56
+ * <DoubleTag
57
+ * items={[
58
+ * { color: 'blue', content: '카테고리' },
59
+ * { color: 'red', content: '긴급' },
60
+ * ]}
61
+ * />
62
+ * ```
63
+ *
64
+ * @see {@link DoubleTagProps} props 상세
65
+ */
66
+ declare const DoubleTag: React__default.ForwardRefExoticComponent<DoubleTagProps & React__default.RefAttributes<HTMLDivElement>>;
67
+
68
+ export { DoubleTag, type DoubleTagProps, Tag, type TagColor, type TagComponent, type TagProps };
@@ -0,0 +1,68 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import { VariantProps } from '@exem-ui/core/utils';
3
+ import React__default from 'react';
4
+
5
+ type TagColor = VariantProps<typeof tagVariants>['color'];
6
+ interface TagProps extends Pick<React__default.HTMLAttributes<HTMLDivElement>, 'className' | 'children' | 'style'>, VariantProps<typeof tagVariants> {
7
+ /** 텍스트 왼쪽에 표시할 아이콘 */
8
+ leftIcon?: React__default.ReactElement<{
9
+ className?: string;
10
+ }>;
11
+ /**
12
+ * 삭제 아이콘 표시 여부
13
+ * @default false
14
+ */
15
+ canDelete?: boolean;
16
+ /** 삭제 버튼 클릭 핸들러 */
17
+ onDelete?: () => void;
18
+ /** 텍스트 오른쪽에 표시할 슬롯 요소 */
19
+ rightSlot?: React__default.ReactNode;
20
+ }
21
+ type TagComponent = React__default.ForwardRefExoticComponent<TagProps & React__default.RefAttributes<HTMLDivElement>>;
22
+ interface DoubleTagProps {
23
+ /** 표시할 태그 항목 배열 (각 항목은 color와 content를 가짐) */
24
+ items: {
25
+ color: TagColor;
26
+ content: React__default.ReactNode;
27
+ }[];
28
+ className?: string;
29
+ }
30
+ declare const tagVariants: (props?: ({
31
+ color?: "mono" | "sky" | "red" | "amber" | "green" | "orange" | "cyan" | "violet" | "pink" | "yellow" | "lime" | "emerald" | "teal" | "blue" | "indigo" | "purple" | "fuchsia" | "rose" | null | undefined;
32
+ type?: "fill" | "line" | null | undefined;
33
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
34
+ /**
35
+ * 카테고리나 상태를 나타내는 라벨 컴포넌트입니다.
36
+ * 18가지 색상과 `fill`/`line` 타입을 지원합니다.
37
+ *
38
+ * @example
39
+ * ```tsx
40
+ * <Tag color="sky">라벨</Tag>
41
+ * <Tag color="red" type="line">경고</Tag>
42
+ * <Tag color="green" canDelete onDelete={handleDelete}>삭제 가능</Tag>
43
+ * <Tag color="blue" leftIcon={<StarIcon type="regular" />}>아이콘 태그</Tag>
44
+ * <Tag color="blue" rightSlot={<Icon />}>커스텀 슬롯</Tag>
45
+ * ```
46
+ *
47
+ * @see {@link TagProps} props 상세
48
+ */
49
+ declare const Tag: React__default.ForwardRefExoticComponent<TagProps & React__default.RefAttributes<HTMLDivElement>>;
50
+ /**
51
+ * 두 개의 태그를 나란히 연결하여 키-값 쌍을 표시하는 컴포넌트입니다.
52
+ * 각 태그는 `line` 타입으로 렌더링되며, 사이에 구분선이 표시됩니다.
53
+ *
54
+ * @example
55
+ * ```tsx
56
+ * <DoubleTag
57
+ * items={[
58
+ * { color: 'blue', content: '카테고리' },
59
+ * { color: 'red', content: '긴급' },
60
+ * ]}
61
+ * />
62
+ * ```
63
+ *
64
+ * @see {@link DoubleTagProps} props 상세
65
+ */
66
+ declare const DoubleTag: React__default.ForwardRefExoticComponent<DoubleTagProps & React__default.RefAttributes<HTMLDivElement>>;
67
+
68
+ export { DoubleTag, type DoubleTagProps, Tag, type TagColor, type TagComponent, type TagProps };
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ var chunkMT47ECUN_js = require('../chunk-MT47ECUN.js');
4
+ require('../chunk-5M47B2XJ.js');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "DoubleTag", {
9
+ enumerable: true,
10
+ get: function () { return chunkMT47ECUN_js.DoubleTag; }
11
+ });
12
+ Object.defineProperty(exports, "Tag", {
13
+ enumerable: true,
14
+ get: function () { return chunkMT47ECUN_js.Tag; }
15
+ });
16
+ //# sourceMappingURL=index.js.map
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,4 @@
1
+ export { DoubleTag, Tag } from '../chunk-L7P2NDST.mjs';
2
+ import '../chunk-LZWKMQJL.mjs';
3
+ //# sourceMappingURL=index.mjs.map
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
@@ -0,0 +1,175 @@
1
+ import * as React$1 from 'react';
2
+ import React__default from 'react';
3
+ import { Toaster as Toaster$1, ExternalToast, toast as toast$1 } from 'sonner';
4
+
5
+ type ToasterRootProps = React$1.ComponentProps<typeof Toaster$1>;
6
+ type ToasterContainerProps = {
7
+ children: React$1.ReactNode;
8
+ } & React$1.HTMLAttributes<HTMLDivElement>;
9
+ type ToasterIconProps = {
10
+ children: React$1.ReactNode;
11
+ } & React$1.HTMLAttributes<HTMLDivElement>;
12
+ type ToasterTitleProps = {
13
+ children: React$1.ReactNode;
14
+ } & React$1.HTMLAttributes<HTMLDivElement>;
15
+ type ToasterDescriptionProps = {
16
+ children: React$1.ReactNode;
17
+ } & React$1.HTMLAttributes<HTMLDivElement>;
18
+ type ToasterActionProps = {
19
+ children?: React$1.ReactNode;
20
+ altText?: string;
21
+ } & React$1.ButtonHTMLAttributes<HTMLButtonElement>;
22
+ type ToasterComponent = React$1.FC<ToasterRootProps> & {
23
+ Container: React$1.ForwardRefExoticComponent<ToasterContainerProps & React$1.RefAttributes<HTMLDivElement>>;
24
+ Icon: React$1.ForwardRefExoticComponent<ToasterIconProps & React$1.RefAttributes<HTMLDivElement>>;
25
+ Title: React$1.ForwardRefExoticComponent<ToasterTitleProps & React$1.RefAttributes<HTMLDivElement>>;
26
+ Description: React$1.ForwardRefExoticComponent<ToasterDescriptionProps & React$1.RefAttributes<HTMLDivElement>>;
27
+ Action: React$1.ForwardRefExoticComponent<ToasterActionProps & React$1.RefAttributes<HTMLButtonElement>>;
28
+ };
29
+ declare const Toaster: ToasterComponent;
30
+
31
+ interface ToastProviderProps {
32
+ children?: React__default.ReactNode;
33
+ /**
34
+ * 호버 시 토스트 확장
35
+ * @default true
36
+ */
37
+ expand?: boolean;
38
+ /**
39
+ * Rich colors 스타일 적용
40
+ * @default false
41
+ */
42
+ richColors?: boolean;
43
+ /**
44
+ * Provider 레벨 닫기 버튼
45
+ * @default false
46
+ */
47
+ closeButton?: boolean;
48
+ /**
49
+ * 토스트가 표시될 위치
50
+ * @default 'top-center'
51
+ */
52
+ position?: 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
53
+ /**
54
+ * 토스트 표시 시간 (ms)
55
+ * @default 4000
56
+ */
57
+ duration?: number;
58
+ /**
59
+ * 토스트 최대 개수
60
+ * @default 10
61
+ */
62
+ visibleToasts?: number;
63
+ /**
64
+ * 추가 Toaster props
65
+ */
66
+ toasterProps?: Omit<ToasterRootProps, 'children' | 'expand' | 'richColors' | 'closeButton'>;
67
+ }
68
+ declare const ToastProvider: React__default.FC<ToastProviderProps>;
69
+
70
+ interface ToastAction {
71
+ label: string;
72
+ onClick: () => void;
73
+ }
74
+ interface ToastOptions {
75
+ title: string;
76
+ description?: string;
77
+ action?: ToastAction;
78
+ close?: boolean;
79
+ }
80
+ interface ExtendedExternalToast extends ExternalToast {
81
+ description?: string;
82
+ action?: ToastAction;
83
+ close?: boolean;
84
+ }
85
+ type ToastInput = string | ToastOptions;
86
+ /**
87
+ * toast() — 커스텀 디자인이 적용된 toast 함수
88
+ *
89
+ * sonner의 toast를 래핑하여 프로젝트의 디자인 시스템을 자동으로 적용합니다.
90
+ *
91
+ * @example
92
+ * ```tsx
93
+ * import { toast } from '@exem-ui/react';
94
+ *
95
+ * // 간단한 메시지
96
+ * toast('기본 메시지');
97
+ * toast.success('성공');
98
+ * toast.error('오류');
99
+ * toast.info('정보');
100
+ * toast.warning('경고');
101
+ *
102
+ * // title + description + action
103
+ * toast.success({
104
+ * title: '저장 완료',
105
+ * description: '변경사항이 저장되었습니다.',
106
+ * action: { label: '되돌리기', onClick: () => handleUndo() },
107
+ * });
108
+ *
109
+ * // 닫기 버튼
110
+ * toast.success({ title: '저장 완료', close: true });
111
+ *
112
+ * // 문자열 + 옵션 (sonner 스타일)
113
+ * toast.success('생성 완료', {
114
+ * description: '일요일, 12월 3일',
115
+ * action: { label: 'Undo', onClick: () => console.log('Undo') },
116
+ * });
117
+ * ```
118
+ */
119
+ declare const toast: ((input: ToastInput, options?: ExtendedExternalToast) => string | number) & {
120
+ success: (input: ToastInput, options?: ExtendedExternalToast) => string | number;
121
+ error: (input: ToastInput, options?: ExtendedExternalToast) => string | number;
122
+ info: (input: ToastInput, options?: ExtendedExternalToast) => string | number;
123
+ warning: (input: ToastInput, options?: ExtendedExternalToast) => string | number;
124
+ loading: (input: ToastInput, options?: ExtendedExternalToast) => string | number;
125
+ dismiss: (id?: number | string) => string | number;
126
+ promise: typeof toast$1.promise;
127
+ custom: (jsx: (id: number | string) => React.ReactElement, data?: ExternalToast) => string | number;
128
+ };
129
+
130
+ type Options = ExternalToast & {
131
+ description?: React__default.ReactNode;
132
+ };
133
+ type PromiseOptions<T> = {
134
+ loading: string;
135
+ success: string | ((data: T) => string | React__default.ReactNode);
136
+ error: string | ((error: unknown) => string | React__default.ReactNode);
137
+ description?: string | React__default.ReactNode;
138
+ finally?: () => void | Promise<void>;
139
+ };
140
+
141
+ /**
142
+ * @deprecated `toast` 함수를 직접 사용하세요.
143
+ *
144
+ * 하위호환을 위해 유지되며, 내부적으로 `toast`에 위임합니다.
145
+ *
146
+ * @example
147
+ * ```tsx
148
+ * // Before (useToast)
149
+ * const { success } = useToast();
150
+ * success('완료');
151
+ *
152
+ * // After (toast 직접 사용)
153
+ * import { toast } from '@exem-ui/react';
154
+ * toast.success('완료');
155
+ * ```
156
+ */
157
+ declare function useToast(): {
158
+ show: (message: string, options?: Options) => string | number;
159
+ dismiss: (toastId: string | number) => string | number;
160
+ promise: <T>(promiseTask: Promise<T>, options: PromiseOptions<T>, toastOptions?: Options) => (string & {
161
+ unwrap: () => Promise<T>;
162
+ }) | (number & {
163
+ unwrap: () => Promise<T>;
164
+ }) | {
165
+ unwrap: () => Promise<T>;
166
+ };
167
+ custom: (render: (id: string | number) => React__default.ReactElement, options?: Options) => string | number;
168
+ success: (message?: string, options?: Options) => string | number;
169
+ error: (message?: string, options?: Options) => string | number;
170
+ info: (message?: string, options?: Options) => string | number;
171
+ warning: (message?: string, options?: Options) => string | number;
172
+ loading: (message?: string, options?: Options) => string | number;
173
+ };
174
+
175
+ export { type ExtendedExternalToast, type Options as SonnerToastOptions, type ToastAction, type ToastInput, type ToastOptions, ToastProvider, type ToastProviderProps, Toaster, type ToasterActionProps, type ToasterComponent, type ToasterContainerProps, type ToasterDescriptionProps, type ToasterIconProps, type ToasterRootProps, type ToasterTitleProps, toast, useToast };
@@ -0,0 +1,175 @@
1
+ import * as React$1 from 'react';
2
+ import React__default from 'react';
3
+ import { Toaster as Toaster$1, ExternalToast, toast as toast$1 } from 'sonner';
4
+
5
+ type ToasterRootProps = React$1.ComponentProps<typeof Toaster$1>;
6
+ type ToasterContainerProps = {
7
+ children: React$1.ReactNode;
8
+ } & React$1.HTMLAttributes<HTMLDivElement>;
9
+ type ToasterIconProps = {
10
+ children: React$1.ReactNode;
11
+ } & React$1.HTMLAttributes<HTMLDivElement>;
12
+ type ToasterTitleProps = {
13
+ children: React$1.ReactNode;
14
+ } & React$1.HTMLAttributes<HTMLDivElement>;
15
+ type ToasterDescriptionProps = {
16
+ children: React$1.ReactNode;
17
+ } & React$1.HTMLAttributes<HTMLDivElement>;
18
+ type ToasterActionProps = {
19
+ children?: React$1.ReactNode;
20
+ altText?: string;
21
+ } & React$1.ButtonHTMLAttributes<HTMLButtonElement>;
22
+ type ToasterComponent = React$1.FC<ToasterRootProps> & {
23
+ Container: React$1.ForwardRefExoticComponent<ToasterContainerProps & React$1.RefAttributes<HTMLDivElement>>;
24
+ Icon: React$1.ForwardRefExoticComponent<ToasterIconProps & React$1.RefAttributes<HTMLDivElement>>;
25
+ Title: React$1.ForwardRefExoticComponent<ToasterTitleProps & React$1.RefAttributes<HTMLDivElement>>;
26
+ Description: React$1.ForwardRefExoticComponent<ToasterDescriptionProps & React$1.RefAttributes<HTMLDivElement>>;
27
+ Action: React$1.ForwardRefExoticComponent<ToasterActionProps & React$1.RefAttributes<HTMLButtonElement>>;
28
+ };
29
+ declare const Toaster: ToasterComponent;
30
+
31
+ interface ToastProviderProps {
32
+ children?: React__default.ReactNode;
33
+ /**
34
+ * 호버 시 토스트 확장
35
+ * @default true
36
+ */
37
+ expand?: boolean;
38
+ /**
39
+ * Rich colors 스타일 적용
40
+ * @default false
41
+ */
42
+ richColors?: boolean;
43
+ /**
44
+ * Provider 레벨 닫기 버튼
45
+ * @default false
46
+ */
47
+ closeButton?: boolean;
48
+ /**
49
+ * 토스트가 표시될 위치
50
+ * @default 'top-center'
51
+ */
52
+ position?: 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
53
+ /**
54
+ * 토스트 표시 시간 (ms)
55
+ * @default 4000
56
+ */
57
+ duration?: number;
58
+ /**
59
+ * 토스트 최대 개수
60
+ * @default 10
61
+ */
62
+ visibleToasts?: number;
63
+ /**
64
+ * 추가 Toaster props
65
+ */
66
+ toasterProps?: Omit<ToasterRootProps, 'children' | 'expand' | 'richColors' | 'closeButton'>;
67
+ }
68
+ declare const ToastProvider: React__default.FC<ToastProviderProps>;
69
+
70
+ interface ToastAction {
71
+ label: string;
72
+ onClick: () => void;
73
+ }
74
+ interface ToastOptions {
75
+ title: string;
76
+ description?: string;
77
+ action?: ToastAction;
78
+ close?: boolean;
79
+ }
80
+ interface ExtendedExternalToast extends ExternalToast {
81
+ description?: string;
82
+ action?: ToastAction;
83
+ close?: boolean;
84
+ }
85
+ type ToastInput = string | ToastOptions;
86
+ /**
87
+ * toast() — 커스텀 디자인이 적용된 toast 함수
88
+ *
89
+ * sonner의 toast를 래핑하여 프로젝트의 디자인 시스템을 자동으로 적용합니다.
90
+ *
91
+ * @example
92
+ * ```tsx
93
+ * import { toast } from '@exem-ui/react';
94
+ *
95
+ * // 간단한 메시지
96
+ * toast('기본 메시지');
97
+ * toast.success('성공');
98
+ * toast.error('오류');
99
+ * toast.info('정보');
100
+ * toast.warning('경고');
101
+ *
102
+ * // title + description + action
103
+ * toast.success({
104
+ * title: '저장 완료',
105
+ * description: '변경사항이 저장되었습니다.',
106
+ * action: { label: '되돌리기', onClick: () => handleUndo() },
107
+ * });
108
+ *
109
+ * // 닫기 버튼
110
+ * toast.success({ title: '저장 완료', close: true });
111
+ *
112
+ * // 문자열 + 옵션 (sonner 스타일)
113
+ * toast.success('생성 완료', {
114
+ * description: '일요일, 12월 3일',
115
+ * action: { label: 'Undo', onClick: () => console.log('Undo') },
116
+ * });
117
+ * ```
118
+ */
119
+ declare const toast: ((input: ToastInput, options?: ExtendedExternalToast) => string | number) & {
120
+ success: (input: ToastInput, options?: ExtendedExternalToast) => string | number;
121
+ error: (input: ToastInput, options?: ExtendedExternalToast) => string | number;
122
+ info: (input: ToastInput, options?: ExtendedExternalToast) => string | number;
123
+ warning: (input: ToastInput, options?: ExtendedExternalToast) => string | number;
124
+ loading: (input: ToastInput, options?: ExtendedExternalToast) => string | number;
125
+ dismiss: (id?: number | string) => string | number;
126
+ promise: typeof toast$1.promise;
127
+ custom: (jsx: (id: number | string) => React.ReactElement, data?: ExternalToast) => string | number;
128
+ };
129
+
130
+ type Options = ExternalToast & {
131
+ description?: React__default.ReactNode;
132
+ };
133
+ type PromiseOptions<T> = {
134
+ loading: string;
135
+ success: string | ((data: T) => string | React__default.ReactNode);
136
+ error: string | ((error: unknown) => string | React__default.ReactNode);
137
+ description?: string | React__default.ReactNode;
138
+ finally?: () => void | Promise<void>;
139
+ };
140
+
141
+ /**
142
+ * @deprecated `toast` 함수를 직접 사용하세요.
143
+ *
144
+ * 하위호환을 위해 유지되며, 내부적으로 `toast`에 위임합니다.
145
+ *
146
+ * @example
147
+ * ```tsx
148
+ * // Before (useToast)
149
+ * const { success } = useToast();
150
+ * success('완료');
151
+ *
152
+ * // After (toast 직접 사용)
153
+ * import { toast } from '@exem-ui/react';
154
+ * toast.success('완료');
155
+ * ```
156
+ */
157
+ declare function useToast(): {
158
+ show: (message: string, options?: Options) => string | number;
159
+ dismiss: (toastId: string | number) => string | number;
160
+ promise: <T>(promiseTask: Promise<T>, options: PromiseOptions<T>, toastOptions?: Options) => (string & {
161
+ unwrap: () => Promise<T>;
162
+ }) | (number & {
163
+ unwrap: () => Promise<T>;
164
+ }) | {
165
+ unwrap: () => Promise<T>;
166
+ };
167
+ custom: (render: (id: string | number) => React__default.ReactElement, options?: Options) => string | number;
168
+ success: (message?: string, options?: Options) => string | number;
169
+ error: (message?: string, options?: Options) => string | number;
170
+ info: (message?: string, options?: Options) => string | number;
171
+ warning: (message?: string, options?: Options) => string | number;
172
+ loading: (message?: string, options?: Options) => string | number;
173
+ };
174
+
175
+ export { type ExtendedExternalToast, type Options as SonnerToastOptions, type ToastAction, type ToastInput, type ToastOptions, ToastProvider, type ToastProviderProps, Toaster, type ToasterActionProps, type ToasterComponent, type ToasterContainerProps, type ToasterDescriptionProps, type ToasterIconProps, type ToasterRootProps, type ToasterTitleProps, toast, useToast };
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ var chunkAU5NTBK3_js = require('../chunk-AU5NTBK3.js');
4
+ require('../chunk-5M47B2XJ.js');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "ToastProvider", {
9
+ enumerable: true,
10
+ get: function () { return chunkAU5NTBK3_js.ToastProvider; }
11
+ });
12
+ Object.defineProperty(exports, "Toaster", {
13
+ enumerable: true,
14
+ get: function () { return chunkAU5NTBK3_js.Toaster; }
15
+ });
16
+ Object.defineProperty(exports, "toast", {
17
+ enumerable: true,
18
+ get: function () { return chunkAU5NTBK3_js.toast; }
19
+ });
20
+ Object.defineProperty(exports, "useToast", {
21
+ enumerable: true,
22
+ get: function () { return chunkAU5NTBK3_js.useToast; }
23
+ });
24
+ //# sourceMappingURL=index.js.map
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,4 @@
1
+ export { ToastProvider, Toaster, toast, useToast } from '../chunk-E53FHDVN.mjs';
2
+ import '../chunk-LZWKMQJL.mjs';
3
+ //# sourceMappingURL=index.mjs.map
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
@@ -0,0 +1,26 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import { VariantProps } from '@exem-ui/core/utils';
3
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
4
+ import React__default from 'react';
5
+
6
+ type TooltipRootProps = React__default.ComponentPropsWithoutRef<typeof TooltipPrimitive.Root>;
7
+ type TooltipProviderProps = React__default.ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider>;
8
+ type TooltipTriggerProps = React__default.ComponentPropsWithoutRef<typeof TooltipPrimitive.Trigger>;
9
+ type TooltipContentProps = React__default.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> & VariantProps<typeof tooltipContentVariants> & {
10
+ portalContainer?: HTMLElement | null;
11
+ };
12
+ type TooltipTitleProps = React__default.HTMLAttributes<HTMLDivElement>;
13
+ type TooltipDescriptionProps = React__default.HTMLAttributes<HTMLDivElement>;
14
+ type TooltipComponent = typeof TooltipPrimitive.Root & {
15
+ Provider: typeof TooltipPrimitive.Provider;
16
+ Trigger: typeof TooltipPrimitive.Trigger;
17
+ Content: React__default.ForwardRefExoticComponent<TooltipContentProps & React__default.RefAttributes<React__default.ElementRef<typeof TooltipPrimitive.Content>>>;
18
+ Title: React__default.ForwardRefExoticComponent<TooltipTitleProps & React__default.RefAttributes<HTMLDivElement>>;
19
+ Description: React__default.ForwardRefExoticComponent<TooltipDescriptionProps & React__default.RefAttributes<HTMLDivElement>>;
20
+ };
21
+ declare const tooltipContentVariants: (props?: ({
22
+ size?: "small" | "medium" | "large" | "xlarge" | "tiny" | null | undefined;
23
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
24
+ declare const Tooltip: TooltipComponent;
25
+
26
+ export { Tooltip, type TooltipComponent, type TooltipContentProps, type TooltipDescriptionProps, type TooltipProviderProps, type TooltipRootProps, type TooltipTitleProps, type TooltipTriggerProps };
@@ -0,0 +1,26 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import { VariantProps } from '@exem-ui/core/utils';
3
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
4
+ import React__default from 'react';
5
+
6
+ type TooltipRootProps = React__default.ComponentPropsWithoutRef<typeof TooltipPrimitive.Root>;
7
+ type TooltipProviderProps = React__default.ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider>;
8
+ type TooltipTriggerProps = React__default.ComponentPropsWithoutRef<typeof TooltipPrimitive.Trigger>;
9
+ type TooltipContentProps = React__default.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> & VariantProps<typeof tooltipContentVariants> & {
10
+ portalContainer?: HTMLElement | null;
11
+ };
12
+ type TooltipTitleProps = React__default.HTMLAttributes<HTMLDivElement>;
13
+ type TooltipDescriptionProps = React__default.HTMLAttributes<HTMLDivElement>;
14
+ type TooltipComponent = typeof TooltipPrimitive.Root & {
15
+ Provider: typeof TooltipPrimitive.Provider;
16
+ Trigger: typeof TooltipPrimitive.Trigger;
17
+ Content: React__default.ForwardRefExoticComponent<TooltipContentProps & React__default.RefAttributes<React__default.ElementRef<typeof TooltipPrimitive.Content>>>;
18
+ Title: React__default.ForwardRefExoticComponent<TooltipTitleProps & React__default.RefAttributes<HTMLDivElement>>;
19
+ Description: React__default.ForwardRefExoticComponent<TooltipDescriptionProps & React__default.RefAttributes<HTMLDivElement>>;
20
+ };
21
+ declare const tooltipContentVariants: (props?: ({
22
+ size?: "small" | "medium" | "large" | "xlarge" | "tiny" | null | undefined;
23
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
24
+ declare const Tooltip: TooltipComponent;
25
+
26
+ export { Tooltip, type TooltipComponent, type TooltipContentProps, type TooltipDescriptionProps, type TooltipProviderProps, type TooltipRootProps, type TooltipTitleProps, type TooltipTriggerProps };
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkT7U2QRLC_js = require('../chunk-T7U2QRLC.js');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "Tooltip", {
8
+ enumerable: true,
9
+ get: function () { return chunkT7U2QRLC_js.Tooltip; }
10
+ });
11
+ //# sourceMappingURL=index.js.map
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,3 @@
1
+ export { Tooltip } from '../chunk-YVFLRPFV.mjs';
2
+ //# sourceMappingURL=index.mjs.map
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}