@axis-ds/ui-react 1.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 (177) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +42 -0
  3. package/dist/accordion/index.d.mts +13 -0
  4. package/dist/accordion/index.d.ts +13 -0
  5. package/dist/accordion/index.js +111 -0
  6. package/dist/accordion/index.mjs +13 -0
  7. package/dist/alert/index.d.mts +21 -0
  8. package/dist/alert/index.d.ts +21 -0
  9. package/dist/alert/index.js +104 -0
  10. package/dist/alert/index.mjs +13 -0
  11. package/dist/avatar/index.d.mts +26 -0
  12. package/dist/avatar/index.d.ts +26 -0
  13. package/dist/avatar/index.js +97 -0
  14. package/dist/avatar/index.mjs +9 -0
  15. package/dist/badge/index.d.mts +17 -0
  16. package/dist/badge/index.d.ts +17 -0
  17. package/dist/badge/index.js +84 -0
  18. package/dist/badge/index.mjs +9 -0
  19. package/dist/breadcrumb/index.d.mts +34 -0
  20. package/dist/breadcrumb/index.d.ts +34 -0
  21. package/dist/breadcrumb/index.js +177 -0
  22. package/dist/breadcrumb/index.mjs +19 -0
  23. package/dist/button/index.d.mts +21 -0
  24. package/dist/button/index.d.ts +21 -0
  25. package/dist/button/index.js +93 -0
  26. package/dist/button/index.mjs +9 -0
  27. package/dist/card/index.d.mts +19 -0
  28. package/dist/card/index.d.ts +19 -0
  29. package/dist/card/index.js +115 -0
  30. package/dist/card/index.mjs +17 -0
  31. package/dist/checkbox/index.d.mts +10 -0
  32. package/dist/checkbox/index.d.ts +10 -0
  33. package/dist/checkbox/index.js +88 -0
  34. package/dist/checkbox/index.mjs +7 -0
  35. package/dist/chunk-3H7DF7QZ.mjs +49 -0
  36. package/dist/chunk-3I222KOY.mjs +123 -0
  37. package/dist/chunk-3N6NG7VT.mjs +11 -0
  38. package/dist/chunk-4AWNSTZH.mjs +57 -0
  39. package/dist/chunk-4JQWQF3H.mjs +25 -0
  40. package/dist/chunk-54Y3KUM5.mjs +28 -0
  41. package/dist/chunk-5PIG7LWJ.mjs +139 -0
  42. package/dist/chunk-6TRDXC4W.mjs +69 -0
  43. package/dist/chunk-7OPZAWBW.mjs +58 -0
  44. package/dist/chunk-A5FJHFJQ.mjs +210 -0
  45. package/dist/chunk-AEBHTW7E.mjs +29 -0
  46. package/dist/chunk-AJERK2UH.mjs +49 -0
  47. package/dist/chunk-APUPJHAQ.mjs +43 -0
  48. package/dist/chunk-AUXVXNU2.mjs +105 -0
  49. package/dist/chunk-B2GWR74O.mjs +144 -0
  50. package/dist/chunk-CTWUJDKA.mjs +49 -0
  51. package/dist/chunk-E2C7WDLA.mjs +108 -0
  52. package/dist/chunk-ECF2JRI5.mjs +43 -0
  53. package/dist/chunk-EJNQRWUO.mjs +29 -0
  54. package/dist/chunk-F6RLUX3E.mjs +37 -0
  55. package/dist/chunk-FMXB7UCT.mjs +27 -0
  56. package/dist/chunk-HQB5TO4N.mjs +28 -0
  57. package/dist/chunk-HYW3HTBA.mjs +31 -0
  58. package/dist/chunk-IOOOCHIG.mjs +49 -0
  59. package/dist/chunk-IXLVGZWU.mjs +105 -0
  60. package/dist/chunk-JJY2MCTX.mjs +25 -0
  61. package/dist/chunk-JM45JPSK.mjs +43 -0
  62. package/dist/chunk-JQV5IP5Z.mjs +28 -0
  63. package/dist/chunk-KAIB45YN.mjs +132 -0
  64. package/dist/chunk-MARIIZN7.mjs +53 -0
  65. package/dist/chunk-NEZK6NO5.mjs +58 -0
  66. package/dist/chunk-NFFXJB2O.mjs +11 -0
  67. package/dist/chunk-O5SM54HW.mjs +71 -0
  68. package/dist/chunk-OIQGWWAS.mjs +42 -0
  69. package/dist/chunk-PJO7WJ4G.mjs +10 -0
  70. package/dist/chunk-PUERRSNI.mjs +37 -0
  71. package/dist/chunk-Q3KALTWT.mjs +37 -0
  72. package/dist/chunk-Q4WL74ZY.mjs +43 -0
  73. package/dist/chunk-RBVNJKEQ.mjs +210 -0
  74. package/dist/chunk-SCH6SFLB.mjs +37 -0
  75. package/dist/chunk-SLQ756Q7.mjs +36 -0
  76. package/dist/chunk-SPUFU4HC.mjs +139 -0
  77. package/dist/chunk-SR3JZW6T.mjs +210 -0
  78. package/dist/chunk-TD5OLTUB.mjs +62 -0
  79. package/dist/chunk-WVWKKHBP.mjs +44 -0
  80. package/dist/chunk-XHILRI24.mjs +111 -0
  81. package/dist/chunk-XW4HTSUY.mjs +123 -0
  82. package/dist/chunk-YKZAU3UV.mjs +144 -0
  83. package/dist/chunk-YVJ7BL4T.mjs +81 -0
  84. package/dist/chunk-ZU6FMFB5.mjs +31 -0
  85. package/dist/collapsible/index.d.mts +11 -0
  86. package/dist/collapsible/index.d.ts +11 -0
  87. package/dist/collapsible/index.js +47 -0
  88. package/dist/collapsible/index.mjs +10 -0
  89. package/dist/command/index.d.mts +86 -0
  90. package/dist/command/index.d.ts +86 -0
  91. package/dist/command/index.js +168 -0
  92. package/dist/command/index.mjs +19 -0
  93. package/dist/dialog/index.d.mts +32 -0
  94. package/dist/dialog/index.d.ts +32 -0
  95. package/dist/dialog/index.js +153 -0
  96. package/dist/dialog/index.mjs +25 -0
  97. package/dist/dropdown-menu/index.d.mts +57 -0
  98. package/dist/dropdown-menu/index.d.ts +57 -0
  99. package/dist/dropdown-menu/index.js +263 -0
  100. package/dist/dropdown-menu/index.mjs +35 -0
  101. package/dist/index.d.mts +60 -0
  102. package/dist/index.d.ts +60 -0
  103. package/dist/index.js +2029 -0
  104. package/dist/index.mjs +308 -0
  105. package/dist/input/index.d.mts +14 -0
  106. package/dist/input/index.d.ts +14 -0
  107. package/dist/input/index.js +75 -0
  108. package/dist/input/index.mjs +7 -0
  109. package/dist/label/index.d.mts +16 -0
  110. package/dist/label/index.d.ts +16 -0
  111. package/dist/label/index.js +64 -0
  112. package/dist/label/index.mjs +7 -0
  113. package/dist/popover/index.d.mts +11 -0
  114. package/dist/popover/index.d.ts +11 -0
  115. package/dist/popover/index.js +72 -0
  116. package/dist/popover/index.mjs +11 -0
  117. package/dist/progress/index.d.mts +27 -0
  118. package/dist/progress/index.d.ts +27 -0
  119. package/dist/progress/index.js +122 -0
  120. package/dist/progress/index.mjs +11 -0
  121. package/dist/radio-group/index.d.mts +9 -0
  122. package/dist/radio-group/index.d.ts +9 -0
  123. package/dist/radio-group/index.js +89 -0
  124. package/dist/radio-group/index.mjs +9 -0
  125. package/dist/scroll-area/index.d.mts +9 -0
  126. package/dist/scroll-area/index.d.ts +9 -0
  127. package/dist/scroll-area/index.js +83 -0
  128. package/dist/scroll-area/index.mjs +9 -0
  129. package/dist/select/index.d.mts +21 -0
  130. package/dist/select/index.d.ts +21 -0
  131. package/dist/select/index.js +190 -0
  132. package/dist/select/index.mjs +21 -0
  133. package/dist/separator/index.d.mts +13 -0
  134. package/dist/separator/index.d.ts +13 -0
  135. package/dist/separator/index.js +68 -0
  136. package/dist/separator/index.mjs +7 -0
  137. package/dist/sheet/index.d.mts +43 -0
  138. package/dist/sheet/index.d.ts +43 -0
  139. package/dist/sheet/index.js +187 -0
  140. package/dist/sheet/index.mjs +25 -0
  141. package/dist/skeleton/index.d.mts +9 -0
  142. package/dist/skeleton/index.d.ts +9 -0
  143. package/dist/skeleton/index.js +66 -0
  144. package/dist/skeleton/index.mjs +7 -0
  145. package/dist/slider/index.d.mts +7 -0
  146. package/dist/slider/index.d.ts +7 -0
  147. package/dist/slider/index.js +67 -0
  148. package/dist/slider/index.mjs +7 -0
  149. package/dist/switch/index.d.mts +7 -0
  150. package/dist/switch/index.d.ts +7 -0
  151. package/dist/switch/index.js +76 -0
  152. package/dist/switch/index.mjs +7 -0
  153. package/dist/table/index.d.mts +20 -0
  154. package/dist/table/index.d.ts +20 -0
  155. package/dist/table/index.js +157 -0
  156. package/dist/table/index.mjs +21 -0
  157. package/dist/tabs/index.d.mts +13 -0
  158. package/dist/tabs/index.d.ts +13 -0
  159. package/dist/tabs/index.js +100 -0
  160. package/dist/tabs/index.mjs +13 -0
  161. package/dist/textarea/index.d.mts +6 -0
  162. package/dist/textarea/index.d.ts +6 -0
  163. package/dist/textarea/index.js +67 -0
  164. package/dist/textarea/index.mjs +7 -0
  165. package/dist/toast/index.d.mts +23 -0
  166. package/dist/toast/index.d.ts +23 -0
  167. package/dist/toast/index.js +153 -0
  168. package/dist/toast/index.mjs +19 -0
  169. package/dist/toggle/index.d.mts +16 -0
  170. package/dist/toggle/index.d.ts +16 -0
  171. package/dist/toggle/index.js +83 -0
  172. package/dist/toggle/index.mjs +9 -0
  173. package/dist/tooltip/index.d.mts +13 -0
  174. package/dist/tooltip/index.d.ts +13 -0
  175. package/dist/tooltip/index.js +79 -0
  176. package/dist/tooltip/index.mjs +13 -0
  177. package/package.json +206 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Think & Action
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,42 @@
1
+ # @axis-ds/ui-react
2
+
3
+ AXIS Design System의 React UI 컴포넌트 라이브러리입니다. Button, Input, Card 등 핵심 UI 컴포넌트를 제공합니다.
4
+
5
+ ## 설치
6
+
7
+ ```bash
8
+ npm install @axis-ds/ui-react @axis-ds/tokens @axis-ds/theme
9
+ # or
10
+ pnpm add @axis-ds/ui-react @axis-ds/tokens @axis-ds/theme
11
+ ```
12
+
13
+ CSS Variables 설정:
14
+
15
+ ```css
16
+ /* globals.css */
17
+ @import '@axis-ds/tokens/css/shadcn';
18
+ ```
19
+
20
+ ## 사용법
21
+
22
+ ```tsx
23
+ import { Button } from '@axis-ds/ui-react';
24
+ // 또는 개별 임포트
25
+ import { Button } from '@axis-ds/ui-react/button';
26
+
27
+ export default function App() {
28
+ return <Button variant="default">Click me</Button>;
29
+ }
30
+ ```
31
+
32
+ ## 컴포넌트 목록
33
+
34
+ Accordion, Alert, Avatar, Breadcrumb, Button, Card, Checkbox, Collapsible, Command, Dialog, Dropdown Menu, Input, Popover, Progress, Radio Group, Scroll Area, Sheet, Skeleton, Slider, Switch, Table, Textarea, Toggle, Tooltip
35
+
36
+ ## 문서
37
+
38
+ 자세한 사용법은 [AXIS Design System 문서](https://axis.minu.best)를 참고하세요.
39
+
40
+ ## 라이선스
41
+
42
+ MIT
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
+
4
+ /** 아코디언 루트 컴포넌트. 하나 이상의 접이식 패널을 관리한다. */
5
+ declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
6
+ /** 아코디언의 개별 항목 컴포넌트 */
7
+ declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ /** 아코디언 항목의 펼침/접힘을 토글하는 트리거 버튼 */
9
+ declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
10
+ /** 아코디언 항목의 펼쳐지는 콘텐츠 영역 */
11
+ declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+
13
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
+
4
+ /** 아코디언 루트 컴포넌트. 하나 이상의 접이식 패널을 관리한다. */
5
+ declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
6
+ /** 아코디언의 개별 항목 컴포넌트 */
7
+ declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ /** 아코디언 항목의 펼침/접힘을 토글하는 트리거 버튼 */
9
+ declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
10
+ /** 아코디언 항목의 펼쳐지는 콘텐츠 영역 */
11
+ declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+
13
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/accordion/index.tsx
31
+ var accordion_exports = {};
32
+ __export(accordion_exports, {
33
+ Accordion: () => Accordion,
34
+ AccordionContent: () => AccordionContent,
35
+ AccordionItem: () => AccordionItem,
36
+ AccordionTrigger: () => AccordionTrigger
37
+ });
38
+ module.exports = __toCommonJS(accordion_exports);
39
+ var React = __toESM(require("react"));
40
+ var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
41
+
42
+ // src/utils.ts
43
+ var import_clsx = require("clsx");
44
+ var import_tailwind_merge = require("tailwind-merge");
45
+ function cn(...inputs) {
46
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
47
+ }
48
+
49
+ // src/accordion/index.tsx
50
+ var import_jsx_runtime = require("react/jsx-runtime");
51
+ var Accordion = AccordionPrimitive.Root;
52
+ var AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
53
+ AccordionPrimitive.Item,
54
+ {
55
+ ref,
56
+ className: cn("border-b border-[var(--axis-border-default)]", className),
57
+ ...props
58
+ }
59
+ ));
60
+ AccordionItem.displayName = "AccordionItem";
61
+ var AccordionTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
62
+ AccordionPrimitive.Trigger,
63
+ {
64
+ ref,
65
+ className: cn(
66
+ "flex flex-1 items-center justify-between py-4 font-medium transition-all",
67
+ "text-[var(--axis-text-primary)]",
68
+ "hover:underline",
69
+ "[&[data-state=open]>svg]:rotate-180",
70
+ className
71
+ ),
72
+ ...props,
73
+ children: [
74
+ children,
75
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
76
+ "svg",
77
+ {
78
+ xmlns: "http://www.w3.org/2000/svg",
79
+ width: "16",
80
+ height: "16",
81
+ viewBox: "0 0 24 24",
82
+ fill: "none",
83
+ stroke: "currentColor",
84
+ strokeWidth: "2",
85
+ strokeLinecap: "round",
86
+ strokeLinejoin: "round",
87
+ className: "shrink-0 text-[var(--axis-text-secondary)] transition-transform duration-200",
88
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m6 9 6 6 6-6" })
89
+ }
90
+ )
91
+ ]
92
+ }
93
+ ) }));
94
+ AccordionTrigger.displayName = "AccordionTrigger";
95
+ var AccordionContent = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
96
+ AccordionPrimitive.Content,
97
+ {
98
+ ref,
99
+ className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
100
+ ...props,
101
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: cn("pb-4 pt-0", className), children })
102
+ }
103
+ ));
104
+ AccordionContent.displayName = "AccordionContent";
105
+ // Annotate the CommonJS export names for ESM import in node:
106
+ 0 && (module.exports = {
107
+ Accordion,
108
+ AccordionContent,
109
+ AccordionItem,
110
+ AccordionTrigger
111
+ });
@@ -0,0 +1,13 @@
1
+ import {
2
+ Accordion,
3
+ AccordionContent,
4
+ AccordionItem,
5
+ AccordionTrigger
6
+ } from "../chunk-6TRDXC4W.mjs";
7
+ import "../chunk-PJO7WJ4G.mjs";
8
+ export {
9
+ Accordion,
10
+ AccordionContent,
11
+ AccordionItem,
12
+ AccordionTrigger
13
+ };
@@ -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 alertVariants: (props?: ({
6
+ variant?: "default" | "destructive" | "success" | "warning" | "info" | null | undefined;
7
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
8
+ /**
9
+ * Alert 컴포넌트 Props
10
+ * @property variant - 알림 스타일 변형 (default, info, success, warning, destructive)
11
+ */
12
+ interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
13
+ }
14
+ /** 사용자에게 중요한 메시지를 전달하는 알림 컴포넌트 */
15
+ declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
16
+ /** 알림의 제목을 표시하는 컴포넌트 */
17
+ declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
18
+ /** 알림의 상세 설명을 표시하는 컴포넌트 */
19
+ declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
20
+
21
+ export { Alert, AlertDescription, type AlertProps, AlertTitle, alertVariants };
@@ -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 alertVariants: (props?: ({
6
+ variant?: "default" | "destructive" | "success" | "warning" | "info" | null | undefined;
7
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
8
+ /**
9
+ * Alert 컴포넌트 Props
10
+ * @property variant - 알림 스타일 변형 (default, info, success, warning, destructive)
11
+ */
12
+ interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
13
+ }
14
+ /** 사용자에게 중요한 메시지를 전달하는 알림 컴포넌트 */
15
+ declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
16
+ /** 알림의 제목을 표시하는 컴포넌트 */
17
+ declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
18
+ /** 알림의 상세 설명을 표시하는 컴포넌트 */
19
+ declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
20
+
21
+ export { Alert, AlertDescription, type AlertProps, AlertTitle, alertVariants };
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/alert/index.tsx
31
+ var alert_exports = {};
32
+ __export(alert_exports, {
33
+ Alert: () => Alert,
34
+ AlertDescription: () => AlertDescription,
35
+ AlertTitle: () => AlertTitle,
36
+ alertVariants: () => alertVariants
37
+ });
38
+ module.exports = __toCommonJS(alert_exports);
39
+ var React = __toESM(require("react"));
40
+ var import_class_variance_authority = require("class-variance-authority");
41
+
42
+ // src/utils.ts
43
+ var import_clsx = require("clsx");
44
+ var import_tailwind_merge = require("tailwind-merge");
45
+ function cn(...inputs) {
46
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
47
+ }
48
+
49
+ // src/alert/index.tsx
50
+ var import_jsx_runtime = require("react/jsx-runtime");
51
+ var alertVariants = (0, import_class_variance_authority.cva)(
52
+ "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-current",
53
+ {
54
+ variants: {
55
+ variant: {
56
+ default: "bg-[var(--axis-surface-primary)] text-[var(--axis-text-primary)] border-[var(--axis-border-default)]",
57
+ info: "bg-[var(--axis-blue-100)] text-[var(--axis-blue-900)] border-[var(--axis-blue-200)] [&>svg]:text-[var(--axis-blue-600)]",
58
+ success: "bg-[var(--axis-green-100)] text-[var(--axis-green-900)] border-[var(--axis-green-200)] [&>svg]:text-[var(--axis-green-600)]",
59
+ warning: "bg-[var(--axis-yellow-100)] text-[var(--axis-yellow-900)] border-[var(--axis-yellow-200)] [&>svg]:text-[var(--axis-yellow-600)]",
60
+ destructive: "bg-[var(--axis-red-100)] text-[var(--axis-red-900)] border-[var(--axis-red-200)] [&>svg]:text-[var(--axis-red-600)]"
61
+ }
62
+ },
63
+ defaultVariants: {
64
+ variant: "default"
65
+ }
66
+ }
67
+ );
68
+ var Alert = React.forwardRef(
69
+ ({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
70
+ "div",
71
+ {
72
+ ref,
73
+ role: "alert",
74
+ className: cn(alertVariants({ variant }), className),
75
+ ...props
76
+ }
77
+ )
78
+ );
79
+ Alert.displayName = "Alert";
80
+ var AlertTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
81
+ "h5",
82
+ {
83
+ ref,
84
+ className: cn("mb-1 font-medium leading-none tracking-tight", className),
85
+ ...props
86
+ }
87
+ ));
88
+ AlertTitle.displayName = "AlertTitle";
89
+ var AlertDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
90
+ "div",
91
+ {
92
+ ref,
93
+ className: cn("text-sm [&_p]:leading-relaxed", className),
94
+ ...props
95
+ }
96
+ ));
97
+ AlertDescription.displayName = "AlertDescription";
98
+ // Annotate the CommonJS export names for ESM import in node:
99
+ 0 && (module.exports = {
100
+ Alert,
101
+ AlertDescription,
102
+ AlertTitle,
103
+ alertVariants
104
+ });
@@ -0,0 +1,13 @@
1
+ import {
2
+ Alert,
3
+ AlertDescription,
4
+ AlertTitle,
5
+ alertVariants
6
+ } from "../chunk-TD5OLTUB.mjs";
7
+ import "../chunk-PJO7WJ4G.mjs";
8
+ export {
9
+ Alert,
10
+ AlertDescription,
11
+ AlertTitle,
12
+ alertVariants
13
+ };
@@ -0,0 +1,26 @@
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?: "default" | "sm" | "lg" | "xl" | null | undefined;
7
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
8
+ /**
9
+ * Avatar 컴포넌트 Props
10
+ * @property size - 아바타 크기 (sm, default, lg, xl)
11
+ */
12
+ interface AvatarProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof avatarVariants> {
13
+ /** 이미지 소스 URL */
14
+ src?: string;
15
+ /** 대체 텍스트 */
16
+ alt?: string;
17
+ /** 이미지 로드 실패 시 표시할 fallback 텍스트 */
18
+ fallback?: string;
19
+ }
20
+ /**
21
+ * 사용자 프로필 이미지를 표시하는 아바타 컴포넌트
22
+ * 이미지 로드 실패 시 이니셜 fallback을 표시한다.
23
+ */
24
+ declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
25
+
26
+ export { Avatar, type AvatarProps, avatarVariants };
@@ -0,0 +1,26 @@
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?: "default" | "sm" | "lg" | "xl" | null | undefined;
7
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
8
+ /**
9
+ * Avatar 컴포넌트 Props
10
+ * @property size - 아바타 크기 (sm, default, lg, xl)
11
+ */
12
+ interface AvatarProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof avatarVariants> {
13
+ /** 이미지 소스 URL */
14
+ src?: string;
15
+ /** 대체 텍스트 */
16
+ alt?: string;
17
+ /** 이미지 로드 실패 시 표시할 fallback 텍스트 */
18
+ fallback?: string;
19
+ }
20
+ /**
21
+ * 사용자 프로필 이미지를 표시하는 아바타 컴포넌트
22
+ * 이미지 로드 실패 시 이니셜 fallback을 표시한다.
23
+ */
24
+ declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
25
+
26
+ export { Avatar, type AvatarProps, avatarVariants };
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/avatar/index.tsx
31
+ var avatar_exports = {};
32
+ __export(avatar_exports, {
33
+ Avatar: () => Avatar,
34
+ avatarVariants: () => avatarVariants
35
+ });
36
+ module.exports = __toCommonJS(avatar_exports);
37
+ var React = __toESM(require("react"));
38
+ var import_class_variance_authority = require("class-variance-authority");
39
+
40
+ // src/utils.ts
41
+ var import_clsx = require("clsx");
42
+ var import_tailwind_merge = require("tailwind-merge");
43
+ function cn(...inputs) {
44
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
45
+ }
46
+
47
+ // src/avatar/index.tsx
48
+ var import_jsx_runtime = require("react/jsx-runtime");
49
+ var avatarVariants = (0, import_class_variance_authority.cva)(
50
+ "relative flex shrink-0 overflow-hidden rounded-full bg-[var(--axis-surface-secondary)]",
51
+ {
52
+ variants: {
53
+ size: {
54
+ sm: "h-8 w-8 text-xs",
55
+ default: "h-10 w-10 text-sm",
56
+ lg: "h-12 w-12 text-base",
57
+ xl: "h-16 w-16 text-lg"
58
+ }
59
+ },
60
+ defaultVariants: {
61
+ size: "default"
62
+ }
63
+ }
64
+ );
65
+ var Avatar = React.forwardRef(
66
+ ({ className, size, src, alt, fallback, ...props }, ref) => {
67
+ const [hasError, setHasError] = React.useState(false);
68
+ const initials = React.useMemo(() => {
69
+ if (fallback) return fallback;
70
+ if (!alt) return "?";
71
+ return alt.split(" ").map((word) => word[0]).join("").toUpperCase().slice(0, 2);
72
+ }, [alt, fallback]);
73
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
74
+ "div",
75
+ {
76
+ ref,
77
+ className: cn(avatarVariants({ size, className })),
78
+ ...props,
79
+ children: src && !hasError ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
80
+ "img",
81
+ {
82
+ src,
83
+ alt: alt || "Avatar",
84
+ className: "aspect-square h-full w-full object-cover",
85
+ onError: () => setHasError(true)
86
+ }
87
+ ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "flex h-full w-full items-center justify-center bg-[var(--axis-surface-tertiary)] text-[var(--axis-text-secondary)] font-medium", children: initials })
88
+ }
89
+ );
90
+ }
91
+ );
92
+ Avatar.displayName = "Avatar";
93
+ // Annotate the CommonJS export names for ESM import in node:
94
+ 0 && (module.exports = {
95
+ Avatar,
96
+ avatarVariants
97
+ });
@@ -0,0 +1,9 @@
1
+ import {
2
+ Avatar,
3
+ avatarVariants
4
+ } from "../chunk-4AWNSTZH.mjs";
5
+ import "../chunk-PJO7WJ4G.mjs";
6
+ export {
7
+ Avatar,
8
+ avatarVariants
9
+ };
@@ -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 badgeVariants: (props?: ({
6
+ variant?: "default" | "secondary" | "destructive" | "success" | "warning" | "error" | "info" | "outline" | null | undefined;
7
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
8
+ /**
9
+ * Badge 컴포넌트 Props
10
+ * @property variant - 배지 스타일 변형 (default, secondary, destructive, success, warning, error, info, outline)
11
+ */
12
+ interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
13
+ }
14
+ /** 상태나 카테고리를 나타내는 작은 라벨 컴포넌트 */
15
+ declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
16
+
17
+ export { Badge, type BadgeProps, badgeVariants };
@@ -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 badgeVariants: (props?: ({
6
+ variant?: "default" | "secondary" | "destructive" | "success" | "warning" | "error" | "info" | "outline" | null | undefined;
7
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
8
+ /**
9
+ * Badge 컴포넌트 Props
10
+ * @property variant - 배지 스타일 변형 (default, secondary, destructive, success, warning, error, info, outline)
11
+ */
12
+ interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
13
+ }
14
+ /** 상태나 카테고리를 나타내는 작은 라벨 컴포넌트 */
15
+ declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
16
+
17
+ export { Badge, type BadgeProps, badgeVariants };
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/badge/index.tsx
31
+ var badge_exports = {};
32
+ __export(badge_exports, {
33
+ Badge: () => Badge,
34
+ badgeVariants: () => badgeVariants
35
+ });
36
+ module.exports = __toCommonJS(badge_exports);
37
+ var React = __toESM(require("react"));
38
+ var import_class_variance_authority = require("class-variance-authority");
39
+
40
+ // src/utils.ts
41
+ var import_clsx = require("clsx");
42
+ var import_tailwind_merge = require("tailwind-merge");
43
+ function cn(...inputs) {
44
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
45
+ }
46
+
47
+ // src/badge/index.tsx
48
+ var import_jsx_runtime = require("react/jsx-runtime");
49
+ var badgeVariants = (0, import_class_variance_authority.cva)(
50
+ "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2",
51
+ {
52
+ variants: {
53
+ variant: {
54
+ default: "border-transparent bg-[var(--axis-badge-default-bg)] text-[var(--axis-badge-default-text)]",
55
+ secondary: "border-transparent bg-[var(--axis-bg-muted)] text-[var(--axis-text-secondary)]",
56
+ destructive: "border-transparent bg-[var(--axis-badge-error-bg)] text-[var(--axis-badge-error-text)]",
57
+ success: "border-transparent bg-[var(--axis-badge-success-bg)] text-[var(--axis-badge-success-text)]",
58
+ warning: "border-transparent bg-[var(--axis-badge-warning-bg)] text-[var(--axis-badge-warning-text)]",
59
+ error: "border-transparent bg-[var(--axis-badge-error-bg)] text-[var(--axis-badge-error-text)]",
60
+ info: "border-transparent bg-[var(--axis-badge-info-bg)] text-[var(--axis-badge-info-text)]",
61
+ outline: "border-[var(--axis-border-default)] text-[var(--axis-text-primary)]"
62
+ }
63
+ },
64
+ defaultVariants: {
65
+ variant: "default"
66
+ }
67
+ }
68
+ );
69
+ var Badge = React.forwardRef(
70
+ ({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
71
+ "div",
72
+ {
73
+ ref,
74
+ className: cn(badgeVariants({ variant }), className),
75
+ ...props
76
+ }
77
+ )
78
+ );
79
+ Badge.displayName = "Badge";
80
+ // Annotate the CommonJS export names for ESM import in node:
81
+ 0 && (module.exports = {
82
+ Badge,
83
+ badgeVariants
84
+ });