@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.
- package/LICENSE +21 -0
- package/README.md +42 -0
- package/dist/accordion/index.d.mts +13 -0
- package/dist/accordion/index.d.ts +13 -0
- package/dist/accordion/index.js +111 -0
- package/dist/accordion/index.mjs +13 -0
- package/dist/alert/index.d.mts +21 -0
- package/dist/alert/index.d.ts +21 -0
- package/dist/alert/index.js +104 -0
- package/dist/alert/index.mjs +13 -0
- package/dist/avatar/index.d.mts +26 -0
- package/dist/avatar/index.d.ts +26 -0
- package/dist/avatar/index.js +97 -0
- package/dist/avatar/index.mjs +9 -0
- package/dist/badge/index.d.mts +17 -0
- package/dist/badge/index.d.ts +17 -0
- package/dist/badge/index.js +84 -0
- package/dist/badge/index.mjs +9 -0
- package/dist/breadcrumb/index.d.mts +34 -0
- package/dist/breadcrumb/index.d.ts +34 -0
- package/dist/breadcrumb/index.js +177 -0
- package/dist/breadcrumb/index.mjs +19 -0
- package/dist/button/index.d.mts +21 -0
- package/dist/button/index.d.ts +21 -0
- package/dist/button/index.js +93 -0
- package/dist/button/index.mjs +9 -0
- package/dist/card/index.d.mts +19 -0
- package/dist/card/index.d.ts +19 -0
- package/dist/card/index.js +115 -0
- package/dist/card/index.mjs +17 -0
- package/dist/checkbox/index.d.mts +10 -0
- package/dist/checkbox/index.d.ts +10 -0
- package/dist/checkbox/index.js +88 -0
- package/dist/checkbox/index.mjs +7 -0
- package/dist/chunk-3H7DF7QZ.mjs +49 -0
- package/dist/chunk-3I222KOY.mjs +123 -0
- package/dist/chunk-3N6NG7VT.mjs +11 -0
- package/dist/chunk-4AWNSTZH.mjs +57 -0
- package/dist/chunk-4JQWQF3H.mjs +25 -0
- package/dist/chunk-54Y3KUM5.mjs +28 -0
- package/dist/chunk-5PIG7LWJ.mjs +139 -0
- package/dist/chunk-6TRDXC4W.mjs +69 -0
- package/dist/chunk-7OPZAWBW.mjs +58 -0
- package/dist/chunk-A5FJHFJQ.mjs +210 -0
- package/dist/chunk-AEBHTW7E.mjs +29 -0
- package/dist/chunk-AJERK2UH.mjs +49 -0
- package/dist/chunk-APUPJHAQ.mjs +43 -0
- package/dist/chunk-AUXVXNU2.mjs +105 -0
- package/dist/chunk-B2GWR74O.mjs +144 -0
- package/dist/chunk-CTWUJDKA.mjs +49 -0
- package/dist/chunk-E2C7WDLA.mjs +108 -0
- package/dist/chunk-ECF2JRI5.mjs +43 -0
- package/dist/chunk-EJNQRWUO.mjs +29 -0
- package/dist/chunk-F6RLUX3E.mjs +37 -0
- package/dist/chunk-FMXB7UCT.mjs +27 -0
- package/dist/chunk-HQB5TO4N.mjs +28 -0
- package/dist/chunk-HYW3HTBA.mjs +31 -0
- package/dist/chunk-IOOOCHIG.mjs +49 -0
- package/dist/chunk-IXLVGZWU.mjs +105 -0
- package/dist/chunk-JJY2MCTX.mjs +25 -0
- package/dist/chunk-JM45JPSK.mjs +43 -0
- package/dist/chunk-JQV5IP5Z.mjs +28 -0
- package/dist/chunk-KAIB45YN.mjs +132 -0
- package/dist/chunk-MARIIZN7.mjs +53 -0
- package/dist/chunk-NEZK6NO5.mjs +58 -0
- package/dist/chunk-NFFXJB2O.mjs +11 -0
- package/dist/chunk-O5SM54HW.mjs +71 -0
- package/dist/chunk-OIQGWWAS.mjs +42 -0
- package/dist/chunk-PJO7WJ4G.mjs +10 -0
- package/dist/chunk-PUERRSNI.mjs +37 -0
- package/dist/chunk-Q3KALTWT.mjs +37 -0
- package/dist/chunk-Q4WL74ZY.mjs +43 -0
- package/dist/chunk-RBVNJKEQ.mjs +210 -0
- package/dist/chunk-SCH6SFLB.mjs +37 -0
- package/dist/chunk-SLQ756Q7.mjs +36 -0
- package/dist/chunk-SPUFU4HC.mjs +139 -0
- package/dist/chunk-SR3JZW6T.mjs +210 -0
- package/dist/chunk-TD5OLTUB.mjs +62 -0
- package/dist/chunk-WVWKKHBP.mjs +44 -0
- package/dist/chunk-XHILRI24.mjs +111 -0
- package/dist/chunk-XW4HTSUY.mjs +123 -0
- package/dist/chunk-YKZAU3UV.mjs +144 -0
- package/dist/chunk-YVJ7BL4T.mjs +81 -0
- package/dist/chunk-ZU6FMFB5.mjs +31 -0
- package/dist/collapsible/index.d.mts +11 -0
- package/dist/collapsible/index.d.ts +11 -0
- package/dist/collapsible/index.js +47 -0
- package/dist/collapsible/index.mjs +10 -0
- package/dist/command/index.d.mts +86 -0
- package/dist/command/index.d.ts +86 -0
- package/dist/command/index.js +168 -0
- package/dist/command/index.mjs +19 -0
- package/dist/dialog/index.d.mts +32 -0
- package/dist/dialog/index.d.ts +32 -0
- package/dist/dialog/index.js +153 -0
- package/dist/dialog/index.mjs +25 -0
- package/dist/dropdown-menu/index.d.mts +57 -0
- package/dist/dropdown-menu/index.d.ts +57 -0
- package/dist/dropdown-menu/index.js +263 -0
- package/dist/dropdown-menu/index.mjs +35 -0
- package/dist/index.d.mts +60 -0
- package/dist/index.d.ts +60 -0
- package/dist/index.js +2029 -0
- package/dist/index.mjs +308 -0
- package/dist/input/index.d.mts +14 -0
- package/dist/input/index.d.ts +14 -0
- package/dist/input/index.js +75 -0
- package/dist/input/index.mjs +7 -0
- package/dist/label/index.d.mts +16 -0
- package/dist/label/index.d.ts +16 -0
- package/dist/label/index.js +64 -0
- package/dist/label/index.mjs +7 -0
- package/dist/popover/index.d.mts +11 -0
- package/dist/popover/index.d.ts +11 -0
- package/dist/popover/index.js +72 -0
- package/dist/popover/index.mjs +11 -0
- package/dist/progress/index.d.mts +27 -0
- package/dist/progress/index.d.ts +27 -0
- package/dist/progress/index.js +122 -0
- package/dist/progress/index.mjs +11 -0
- package/dist/radio-group/index.d.mts +9 -0
- package/dist/radio-group/index.d.ts +9 -0
- package/dist/radio-group/index.js +89 -0
- package/dist/radio-group/index.mjs +9 -0
- package/dist/scroll-area/index.d.mts +9 -0
- package/dist/scroll-area/index.d.ts +9 -0
- package/dist/scroll-area/index.js +83 -0
- package/dist/scroll-area/index.mjs +9 -0
- package/dist/select/index.d.mts +21 -0
- package/dist/select/index.d.ts +21 -0
- package/dist/select/index.js +190 -0
- package/dist/select/index.mjs +21 -0
- package/dist/separator/index.d.mts +13 -0
- package/dist/separator/index.d.ts +13 -0
- package/dist/separator/index.js +68 -0
- package/dist/separator/index.mjs +7 -0
- package/dist/sheet/index.d.mts +43 -0
- package/dist/sheet/index.d.ts +43 -0
- package/dist/sheet/index.js +187 -0
- package/dist/sheet/index.mjs +25 -0
- package/dist/skeleton/index.d.mts +9 -0
- package/dist/skeleton/index.d.ts +9 -0
- package/dist/skeleton/index.js +66 -0
- package/dist/skeleton/index.mjs +7 -0
- package/dist/slider/index.d.mts +7 -0
- package/dist/slider/index.d.ts +7 -0
- package/dist/slider/index.js +67 -0
- package/dist/slider/index.mjs +7 -0
- package/dist/switch/index.d.mts +7 -0
- package/dist/switch/index.d.ts +7 -0
- package/dist/switch/index.js +76 -0
- package/dist/switch/index.mjs +7 -0
- package/dist/table/index.d.mts +20 -0
- package/dist/table/index.d.ts +20 -0
- package/dist/table/index.js +157 -0
- package/dist/table/index.mjs +21 -0
- package/dist/tabs/index.d.mts +13 -0
- package/dist/tabs/index.d.ts +13 -0
- package/dist/tabs/index.js +100 -0
- package/dist/tabs/index.mjs +13 -0
- package/dist/textarea/index.d.mts +6 -0
- package/dist/textarea/index.d.ts +6 -0
- package/dist/textarea/index.js +67 -0
- package/dist/textarea/index.mjs +7 -0
- package/dist/toast/index.d.mts +23 -0
- package/dist/toast/index.d.ts +23 -0
- package/dist/toast/index.js +153 -0
- package/dist/toast/index.mjs +19 -0
- package/dist/toggle/index.d.mts +16 -0
- package/dist/toggle/index.d.ts +16 -0
- package/dist/toggle/index.js +83 -0
- package/dist/toggle/index.mjs +9 -0
- package/dist/tooltip/index.d.mts +13 -0
- package/dist/tooltip/index.d.ts +13 -0
- package/dist/tooltip/index.js +79 -0
- package/dist/tooltip/index.mjs +13 -0
- package/package.json +206 -0
|
@@ -0,0 +1,27 @@
|
|
|
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 progressVariants: (props?: ({
|
|
6
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
7
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
8
|
+
declare const progressIndicatorVariants: (props?: ({
|
|
9
|
+
variant?: "default" | "destructive" | "success" | "warning" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
+
/** Progress 컴포넌트의 Props 인터페이스. 크기 및 색상 변형과 불확정 상태를 지원한다. */
|
|
12
|
+
interface ProgressProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof progressVariants>, VariantProps<typeof progressIndicatorVariants> {
|
|
13
|
+
/** 진행률 값 (0부터 max까지). 기본값은 0이다. */
|
|
14
|
+
value?: number;
|
|
15
|
+
/** 진행률의 최대값. 기본값은 100이다. */
|
|
16
|
+
max?: number;
|
|
17
|
+
/** 불확정 상태 여부. true일 경우 진행률 대신 로딩 애니메이션을 표시한다. */
|
|
18
|
+
indeterminate?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 진행 상태를 시각적으로 표시하는 프로그레스 바 컴포넌트.
|
|
22
|
+
* progressbar 역할(role)과 ARIA 속성을 포함하여 접근성을 보장한다.
|
|
23
|
+
* 크기(sm, default, lg)와 색상(default, success, warning, destructive) 변형을 지원한다.
|
|
24
|
+
*/
|
|
25
|
+
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
|
|
27
|
+
export { Progress, type ProgressProps, progressIndicatorVariants, progressVariants };
|
|
@@ -0,0 +1,122 @@
|
|
|
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/progress/index.tsx
|
|
31
|
+
var progress_exports = {};
|
|
32
|
+
__export(progress_exports, {
|
|
33
|
+
Progress: () => Progress,
|
|
34
|
+
progressIndicatorVariants: () => progressIndicatorVariants,
|
|
35
|
+
progressVariants: () => progressVariants
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(progress_exports);
|
|
38
|
+
var React = __toESM(require("react"));
|
|
39
|
+
var import_class_variance_authority = require("class-variance-authority");
|
|
40
|
+
|
|
41
|
+
// src/utils.ts
|
|
42
|
+
var import_clsx = require("clsx");
|
|
43
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
44
|
+
function cn(...inputs) {
|
|
45
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// src/progress/index.tsx
|
|
49
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
50
|
+
var progressVariants = (0, import_class_variance_authority.cva)(
|
|
51
|
+
"relative h-2 w-full overflow-hidden rounded-full bg-[var(--axis-surface-tertiary)]",
|
|
52
|
+
{
|
|
53
|
+
variants: {
|
|
54
|
+
size: {
|
|
55
|
+
sm: "h-1",
|
|
56
|
+
default: "h-2",
|
|
57
|
+
lg: "h-3"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
defaultVariants: {
|
|
61
|
+
size: "default"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
var progressIndicatorVariants = (0, import_class_variance_authority.cva)(
|
|
66
|
+
"h-full w-full flex-1 transition-all duration-300 ease-in-out",
|
|
67
|
+
{
|
|
68
|
+
variants: {
|
|
69
|
+
variant: {
|
|
70
|
+
default: "bg-[var(--axis-brand-500)]",
|
|
71
|
+
success: "bg-[var(--axis-green-500)]",
|
|
72
|
+
warning: "bg-[var(--axis-yellow-500)]",
|
|
73
|
+
destructive: "bg-[var(--axis-red-500)]"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
defaultVariants: {
|
|
77
|
+
variant: "default"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
var Progress = React.forwardRef(
|
|
82
|
+
({
|
|
83
|
+
className,
|
|
84
|
+
value = 0,
|
|
85
|
+
max = 100,
|
|
86
|
+
size,
|
|
87
|
+
variant,
|
|
88
|
+
indeterminate = false,
|
|
89
|
+
...props
|
|
90
|
+
}, ref) => {
|
|
91
|
+
const percentage = Math.min(Math.max(value / max * 100, 0), 100);
|
|
92
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
93
|
+
"div",
|
|
94
|
+
{
|
|
95
|
+
ref,
|
|
96
|
+
role: "progressbar",
|
|
97
|
+
"aria-valuemin": 0,
|
|
98
|
+
"aria-valuemax": max,
|
|
99
|
+
"aria-valuenow": indeterminate ? void 0 : value,
|
|
100
|
+
className: cn(progressVariants({ size }), className),
|
|
101
|
+
...props,
|
|
102
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
103
|
+
"div",
|
|
104
|
+
{
|
|
105
|
+
className: cn(
|
|
106
|
+
progressIndicatorVariants({ variant }),
|
|
107
|
+
indeterminate && "animate-progress-indeterminate"
|
|
108
|
+
),
|
|
109
|
+
style: indeterminate ? void 0 : { transform: `translateX(-${100 - percentage}%)` }
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
}
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
Progress.displayName = "Progress";
|
|
117
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
118
|
+
0 && (module.exports = {
|
|
119
|
+
Progress,
|
|
120
|
+
progressIndicatorVariants,
|
|
121
|
+
progressVariants
|
|
122
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
3
|
+
|
|
4
|
+
/** 라디오 버튼 그룹의 루트 컴포넌트. 단일 선택 상태를 관리하며 키보드 네비게이션을 지원한다. */
|
|
5
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
/** 라디오 그룹 내 개별 라디오 버튼 컴포넌트. 선택 시 내부에 원형 인디케이터가 표시된다. */
|
|
7
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
|
|
9
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
3
|
+
|
|
4
|
+
/** 라디오 버튼 그룹의 루트 컴포넌트. 단일 선택 상태를 관리하며 키보드 네비게이션을 지원한다. */
|
|
5
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
/** 라디오 그룹 내 개별 라디오 버튼 컴포넌트. 선택 시 내부에 원형 인디케이터가 표시된다. */
|
|
7
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
|
|
9
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -0,0 +1,89 @@
|
|
|
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/radio-group/index.tsx
|
|
31
|
+
var radio_group_exports = {};
|
|
32
|
+
__export(radio_group_exports, {
|
|
33
|
+
RadioGroup: () => RadioGroup,
|
|
34
|
+
RadioGroupItem: () => RadioGroupItem
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(radio_group_exports);
|
|
37
|
+
var React = __toESM(require("react"));
|
|
38
|
+
var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"));
|
|
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/radio-group/index.tsx
|
|
48
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
49
|
+
var RadioGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
50
|
+
RadioGroupPrimitive.Root,
|
|
51
|
+
{
|
|
52
|
+
className: cn("grid gap-2", className),
|
|
53
|
+
...props,
|
|
54
|
+
ref
|
|
55
|
+
}
|
|
56
|
+
));
|
|
57
|
+
RadioGroup.displayName = "RadioGroup";
|
|
58
|
+
var RadioGroupItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
59
|
+
RadioGroupPrimitive.Item,
|
|
60
|
+
{
|
|
61
|
+
ref,
|
|
62
|
+
className: cn(
|
|
63
|
+
"aspect-square h-4 w-4 rounded-full border border-[var(--axis-border-default)]",
|
|
64
|
+
"ring-offset-[var(--axis-surface-primary)]",
|
|
65
|
+
"focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-ring)] focus-visible:ring-offset-2",
|
|
66
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
67
|
+
"data-[state=checked]:border-[var(--axis-interactive-primary)] data-[state=checked]:text-[var(--axis-interactive-primary)]",
|
|
68
|
+
className
|
|
69
|
+
),
|
|
70
|
+
...props,
|
|
71
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
72
|
+
"svg",
|
|
73
|
+
{
|
|
74
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
75
|
+
width: "8",
|
|
76
|
+
height: "8",
|
|
77
|
+
viewBox: "0 0 8 8",
|
|
78
|
+
fill: "currentColor",
|
|
79
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "4", cy: "4", r: "4" })
|
|
80
|
+
}
|
|
81
|
+
) })
|
|
82
|
+
}
|
|
83
|
+
));
|
|
84
|
+
RadioGroupItem.displayName = "RadioGroupItem";
|
|
85
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
86
|
+
0 && (module.exports = {
|
|
87
|
+
RadioGroup,
|
|
88
|
+
RadioGroupItem
|
|
89
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
3
|
+
|
|
4
|
+
/** 커스텀 스크롤바를 제공하는 스크롤 영역 컴포넌트. 뷰포트, 스크롤바, 코너를 포함한다. */
|
|
5
|
+
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
/** 스크롤 영역의 스크롤바 컴포넌트. 수직(vertical) 및 수평(horizontal) 방향을 지원한다. */
|
|
7
|
+
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
|
|
9
|
+
export { ScrollArea, ScrollBar };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
3
|
+
|
|
4
|
+
/** 커스텀 스크롤바를 제공하는 스크롤 영역 컴포넌트. 뷰포트, 스크롤바, 코너를 포함한다. */
|
|
5
|
+
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
/** 스크롤 영역의 스크롤바 컴포넌트. 수직(vertical) 및 수평(horizontal) 방향을 지원한다. */
|
|
7
|
+
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
|
|
9
|
+
export { ScrollArea, ScrollBar };
|
|
@@ -0,0 +1,83 @@
|
|
|
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/scroll-area/index.tsx
|
|
31
|
+
var scroll_area_exports = {};
|
|
32
|
+
__export(scroll_area_exports, {
|
|
33
|
+
ScrollArea: () => ScrollArea,
|
|
34
|
+
ScrollBar: () => ScrollBar
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(scroll_area_exports);
|
|
37
|
+
var React = __toESM(require("react"));
|
|
38
|
+
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
|
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/scroll-area/index.tsx
|
|
48
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
49
|
+
var ScrollArea = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
50
|
+
ScrollAreaPrimitive.Root,
|
|
51
|
+
{
|
|
52
|
+
ref,
|
|
53
|
+
className: cn("relative overflow-hidden", className),
|
|
54
|
+
...props,
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
57
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScrollBar, {}),
|
|
58
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScrollAreaPrimitive.Corner, {})
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
));
|
|
62
|
+
ScrollArea.displayName = "ScrollArea";
|
|
63
|
+
var ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
64
|
+
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
65
|
+
{
|
|
66
|
+
ref,
|
|
67
|
+
orientation,
|
|
68
|
+
className: cn(
|
|
69
|
+
"flex touch-none select-none transition-colors",
|
|
70
|
+
orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
71
|
+
orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
72
|
+
className
|
|
73
|
+
),
|
|
74
|
+
...props,
|
|
75
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-[var(--axis-border-default)]" })
|
|
76
|
+
}
|
|
77
|
+
));
|
|
78
|
+
ScrollBar.displayName = "ScrollBar";
|
|
79
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
80
|
+
0 && (module.exports = {
|
|
81
|
+
ScrollArea,
|
|
82
|
+
ScrollBar
|
|
83
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
3
|
+
|
|
4
|
+
/** 셀렉트의 루트 컴포넌트. 열림/닫힘 및 선택 상태를 관리한다. */
|
|
5
|
+
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
6
|
+
/** 셀렉트 옵션들을 논리적으로 그룹화하는 컴포넌트 */
|
|
7
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
/** 셀렉트 트리거 내에서 현재 선택된 값을 표시하는 컴포넌트 */
|
|
9
|
+
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
10
|
+
/** 셀렉트 드롭다운을 여는 트리거 버튼 컴포넌트. 선택된 값과 하향 화살표 아이콘을 표시한다. */
|
|
11
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
/** 셀렉트 드롭다운의 본문 콘텐츠 컴포넌트. 포털을 통해 렌더링되며 진입/퇴장 애니메이션을 포함한다. */
|
|
13
|
+
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
/** 셀렉트 옵션 그룹의 레이블 컴포넌트. 비선택 텍스트로 그룹 제목을 표시한다. */
|
|
15
|
+
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
/** 셀렉트 드롭다운의 개별 선택 항목 컴포넌트. 선택 시 좌측에 체크 아이콘이 표시된다. */
|
|
17
|
+
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
/** 셀렉트 옵션 사이의 구분선 컴포넌트 */
|
|
19
|
+
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
|
|
21
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
3
|
+
|
|
4
|
+
/** 셀렉트의 루트 컴포넌트. 열림/닫힘 및 선택 상태를 관리한다. */
|
|
5
|
+
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
6
|
+
/** 셀렉트 옵션들을 논리적으로 그룹화하는 컴포넌트 */
|
|
7
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
/** 셀렉트 트리거 내에서 현재 선택된 값을 표시하는 컴포넌트 */
|
|
9
|
+
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
10
|
+
/** 셀렉트 드롭다운을 여는 트리거 버튼 컴포넌트. 선택된 값과 하향 화살표 아이콘을 표시한다. */
|
|
11
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
/** 셀렉트 드롭다운의 본문 콘텐츠 컴포넌트. 포털을 통해 렌더링되며 진입/퇴장 애니메이션을 포함한다. */
|
|
13
|
+
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
/** 셀렉트 옵션 그룹의 레이블 컴포넌트. 비선택 텍스트로 그룹 제목을 표시한다. */
|
|
15
|
+
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
/** 셀렉트 드롭다운의 개별 선택 항목 컴포넌트. 선택 시 좌측에 체크 아이콘이 표시된다. */
|
|
17
|
+
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
/** 셀렉트 옵션 사이의 구분선 컴포넌트 */
|
|
19
|
+
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
|
|
21
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue };
|
|
@@ -0,0 +1,190 @@
|
|
|
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/select/index.tsx
|
|
31
|
+
var select_exports = {};
|
|
32
|
+
__export(select_exports, {
|
|
33
|
+
Select: () => Select,
|
|
34
|
+
SelectContent: () => SelectContent,
|
|
35
|
+
SelectGroup: () => SelectGroup,
|
|
36
|
+
SelectItem: () => SelectItem,
|
|
37
|
+
SelectLabel: () => SelectLabel,
|
|
38
|
+
SelectSeparator: () => SelectSeparator,
|
|
39
|
+
SelectTrigger: () => SelectTrigger,
|
|
40
|
+
SelectValue: () => SelectValue
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(select_exports);
|
|
43
|
+
var React = __toESM(require("react"));
|
|
44
|
+
var SelectPrimitive = __toESM(require("@radix-ui/react-select"));
|
|
45
|
+
|
|
46
|
+
// src/utils.ts
|
|
47
|
+
var import_clsx = require("clsx");
|
|
48
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
49
|
+
function cn(...inputs) {
|
|
50
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// src/select/index.tsx
|
|
54
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
55
|
+
var Select = SelectPrimitive.Root;
|
|
56
|
+
var SelectGroup = SelectPrimitive.Group;
|
|
57
|
+
var SelectValue = SelectPrimitive.Value;
|
|
58
|
+
var SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
59
|
+
SelectPrimitive.Trigger,
|
|
60
|
+
{
|
|
61
|
+
ref,
|
|
62
|
+
className: cn(
|
|
63
|
+
"flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 text-sm",
|
|
64
|
+
"bg-[var(--axis-input-bg-default)] border-[var(--axis-input-border-default)]",
|
|
65
|
+
"placeholder:text-[var(--axis-input-text-placeholder)]",
|
|
66
|
+
"hover:border-[var(--axis-input-border-hover)]",
|
|
67
|
+
"focus:outline-none focus:ring-2 focus:ring-[var(--axis-input-border-focus)] focus:ring-offset-2",
|
|
68
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
69
|
+
"[&>span]:line-clamp-1",
|
|
70
|
+
className
|
|
71
|
+
),
|
|
72
|
+
...props,
|
|
73
|
+
children: [
|
|
74
|
+
children,
|
|
75
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
76
|
+
"svg",
|
|
77
|
+
{
|
|
78
|
+
className: "h-4 w-4 opacity-50",
|
|
79
|
+
fill: "none",
|
|
80
|
+
stroke: "currentColor",
|
|
81
|
+
viewBox: "0 0 24 24",
|
|
82
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
83
|
+
"path",
|
|
84
|
+
{
|
|
85
|
+
strokeLinecap: "round",
|
|
86
|
+
strokeLinejoin: "round",
|
|
87
|
+
strokeWidth: 2,
|
|
88
|
+
d: "M19 9l-7 7-7-7"
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
}
|
|
92
|
+
) })
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
));
|
|
96
|
+
SelectTrigger.displayName = "SelectTrigger";
|
|
97
|
+
var SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
98
|
+
SelectPrimitive.Content,
|
|
99
|
+
{
|
|
100
|
+
ref,
|
|
101
|
+
className: cn(
|
|
102
|
+
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md",
|
|
103
|
+
"bg-[var(--axis-surface-default)] border-[var(--axis-border-default)]",
|
|
104
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
105
|
+
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
106
|
+
className
|
|
107
|
+
),
|
|
108
|
+
position,
|
|
109
|
+
...props,
|
|
110
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
111
|
+
SelectPrimitive.Viewport,
|
|
112
|
+
{
|
|
113
|
+
className: cn(
|
|
114
|
+
"p-1",
|
|
115
|
+
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
116
|
+
),
|
|
117
|
+
children
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
}
|
|
121
|
+
) }));
|
|
122
|
+
SelectContent.displayName = "SelectContent";
|
|
123
|
+
var SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
124
|
+
SelectPrimitive.Label,
|
|
125
|
+
{
|
|
126
|
+
ref,
|
|
127
|
+
className: cn(
|
|
128
|
+
"py-1.5 pl-8 pr-2 text-sm font-semibold text-[var(--axis-text-secondary)]",
|
|
129
|
+
className
|
|
130
|
+
),
|
|
131
|
+
...props
|
|
132
|
+
}
|
|
133
|
+
));
|
|
134
|
+
SelectLabel.displayName = "SelectLabel";
|
|
135
|
+
var SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
136
|
+
SelectPrimitive.Item,
|
|
137
|
+
{
|
|
138
|
+
ref,
|
|
139
|
+
className: cn(
|
|
140
|
+
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none",
|
|
141
|
+
"text-[var(--axis-text-primary)]",
|
|
142
|
+
"focus:bg-[var(--axis-surface-secondary)] focus:text-[var(--axis-text-primary)]",
|
|
143
|
+
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
144
|
+
className
|
|
145
|
+
),
|
|
146
|
+
...props,
|
|
147
|
+
children: [
|
|
148
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
149
|
+
"svg",
|
|
150
|
+
{
|
|
151
|
+
className: "h-4 w-4",
|
|
152
|
+
fill: "none",
|
|
153
|
+
stroke: "currentColor",
|
|
154
|
+
viewBox: "0 0 24 24",
|
|
155
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
156
|
+
"path",
|
|
157
|
+
{
|
|
158
|
+
strokeLinecap: "round",
|
|
159
|
+
strokeLinejoin: "round",
|
|
160
|
+
strokeWidth: 2,
|
|
161
|
+
d: "M5 13l4 4L19 7"
|
|
162
|
+
}
|
|
163
|
+
)
|
|
164
|
+
}
|
|
165
|
+
) }) }),
|
|
166
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectPrimitive.ItemText, { children })
|
|
167
|
+
]
|
|
168
|
+
}
|
|
169
|
+
));
|
|
170
|
+
SelectItem.displayName = "SelectItem";
|
|
171
|
+
var SelectSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
172
|
+
SelectPrimitive.Separator,
|
|
173
|
+
{
|
|
174
|
+
ref,
|
|
175
|
+
className: cn("-mx-1 my-1 h-px bg-[var(--axis-border-default)]", className),
|
|
176
|
+
...props
|
|
177
|
+
}
|
|
178
|
+
));
|
|
179
|
+
SelectSeparator.displayName = "SelectSeparator";
|
|
180
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
181
|
+
0 && (module.exports = {
|
|
182
|
+
Select,
|
|
183
|
+
SelectContent,
|
|
184
|
+
SelectGroup,
|
|
185
|
+
SelectItem,
|
|
186
|
+
SelectLabel,
|
|
187
|
+
SelectSeparator,
|
|
188
|
+
SelectTrigger,
|
|
189
|
+
SelectValue
|
|
190
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Select,
|
|
3
|
+
SelectContent,
|
|
4
|
+
SelectGroup,
|
|
5
|
+
SelectItem,
|
|
6
|
+
SelectLabel,
|
|
7
|
+
SelectSeparator,
|
|
8
|
+
SelectTrigger,
|
|
9
|
+
SelectValue
|
|
10
|
+
} from "../chunk-YKZAU3UV.mjs";
|
|
11
|
+
import "../chunk-PJO7WJ4G.mjs";
|
|
12
|
+
export {
|
|
13
|
+
Select,
|
|
14
|
+
SelectContent,
|
|
15
|
+
SelectGroup,
|
|
16
|
+
SelectItem,
|
|
17
|
+
SelectLabel,
|
|
18
|
+
SelectSeparator,
|
|
19
|
+
SelectTrigger,
|
|
20
|
+
SelectValue
|
|
21
|
+
};
|