@godxjp/ui 8.0.0 → 8.2.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/dist/{chunk-G2WYOCDL.js → chunk-3EMDVI7X.js} +1 -1
- package/dist/{chunk-RGIYKJPW.js → chunk-67HEX3OS.js} +1 -1
- package/dist/{chunk-WN52SCGE.js → chunk-IAKROVSG.js} +1 -1
- package/dist/{chunk-XDUZ7JJL.js → chunk-MISVV4IT.js} +1 -1
- package/dist/{chunk-4R7RQDXI.js → chunk-PZ4LO723.js} +1 -1
- package/dist/chunk-Q7AU6WDX.js +261 -0
- package/dist/{chunk-SKIRU7GC.js → chunk-V45EK6S7.js} +1 -1
- package/dist/chunk-WFUIE252.js +61 -0
- package/dist/components/admin/index.js +21 -21
- package/dist/components/data-display/index.d.ts +12 -1
- package/dist/components/data-display/index.js +60 -7
- package/dist/components/data-entry/autocomplete.js +4 -4
- package/dist/components/data-entry/calendar.js +2 -2
- package/dist/components/data-entry/cascader.js +3 -3
- package/dist/components/data-entry/date-picker.js +3 -3
- package/dist/components/data-entry/date-range-picker.js +3 -3
- package/dist/components/data-entry/index.d.ts +65 -3
- package/dist/components/data-entry/index.js +16 -16
- package/dist/components/data-entry/select.js +4 -4
- package/dist/components/data-entry/transfer.js +2 -2
- package/dist/components/data-entry/tree-select.js +3 -3
- package/dist/components/data-entry/upload.js +3 -3
- package/dist/components/feedback/index.d.ts +18 -2
- package/dist/components/feedback/index.js +5 -5
- package/dist/components/layout/index.js +2 -2
- package/dist/components/navigation/index.js +6 -6
- package/dist/components/navigation/pagination.js +5 -5
- package/dist/components/ui/index.js +17 -17
- package/dist/index.js +28 -28
- package/dist/props/index.js +1 -1
- package/dist/styles/control.css +58 -0
- package/dist/styles/data-display-layout.css +25 -0
- package/dist/styles/feedback-layout.css +17 -0
- package/package.json +6 -2
- package/dist/chunk-2H65B4JA.js +0 -1
- package/dist/chunk-XMBCNMJI.js +0 -61
- package/dist/{chunk-NG23LVTM.js → chunk-3FUXNL5A.js} +1 -1
- package/dist/{chunk-IOGU3ZWF.js → chunk-7577VIAC.js} +1 -1
- package/dist/{chunk-A7PKMT7Y.js → chunk-N5SDFNSJ.js} +1 -1
- package/dist/{chunk-Z6HNY2PL.js → chunk-NGT3I6OG.js} +2 -2
- package/dist/{chunk-XZM2GNAY.js → chunk-PKGPNZA4.js} +1 -1
- package/dist/{chunk-A22MCA3X.js → chunk-TV7WEENM.js} +1 -1
- package/dist/{chunk-6QXQQAOQ.js → chunk-WY4RSEYC.js} +1 -1
- package/dist/{chunk-WTVLZVBA.js → chunk-YXJ3FS6O.js} +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Calendar } from './chunk-
|
|
1
|
+
import { Calendar } from './chunk-7577VIAC.js';
|
|
2
2
|
import { Input } from './chunk-VOHTRR5X.js';
|
|
3
3
|
import { Popover, PopoverTrigger, PopoverContent } from './chunk-DY5C44UP.js';
|
|
4
4
|
import { Button } from './chunk-M4PZNAMV.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Calendar } from './chunk-
|
|
1
|
+
import { Calendar } from './chunk-7577VIAC.js';
|
|
2
2
|
import { Input } from './chunk-VOHTRR5X.js';
|
|
3
3
|
import { Popover, PopoverTrigger, PopoverContent } from './chunk-DY5C44UP.js';
|
|
4
4
|
import { Button } from './chunk-M4PZNAMV.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from './chunk-
|
|
1
|
+
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from './chunk-3EMDVI7X.js';
|
|
2
2
|
import { Button } from './chunk-M4PZNAMV.js';
|
|
3
3
|
import { useTranslation, useOptionalAppContext, APP_LOCALES, resolveTimezonePickerOptions, getTimezoneLabel, APP_TIME_FORMAT_OPTIONS, getTimeFormatLabel } from './chunk-RLGHEV4A.js';
|
|
4
4
|
import { APP_DATE_FORMAT_OPTIONS, getDateFormatLabel } from './chunk-FXFJF4YA.js';
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { Select, SelectTrigger, SelectValue, SelectContent, SelectGroup, SelectItem } from './chunk-3EMDVI7X.js';
|
|
2
|
+
import { Input } from './chunk-VOHTRR5X.js';
|
|
3
|
+
import { Inline } from './chunk-TILFZBTE.js';
|
|
4
|
+
import { cn } from './chunk-U7N2A7A3.js';
|
|
5
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
|
+
import * as React2 from 'react';
|
|
7
|
+
import { EyeOff, Eye, Minus, Star, X } from 'lucide-react';
|
|
8
|
+
import { OTPInput, OTPInputContext } from 'input-otp';
|
|
9
|
+
|
|
10
|
+
function CountryOptionLabel({
|
|
11
|
+
country,
|
|
12
|
+
showCode = false,
|
|
13
|
+
className
|
|
14
|
+
}) {
|
|
15
|
+
const code = country.value ?? country.code ?? "";
|
|
16
|
+
const text = country.nativeName != null && country.nativeName !== "" ? `${country.name} (${country.nativeName})` : country.name;
|
|
17
|
+
return /* @__PURE__ */ jsxs(Inline, { gap: "xs", className: cn("items-center", className), children: [
|
|
18
|
+
country.flagSvgPath != null && country.flagSvgPath !== "" && /* @__PURE__ */ jsx(
|
|
19
|
+
"img",
|
|
20
|
+
{
|
|
21
|
+
src: country.flagSvgPath,
|
|
22
|
+
alt: "",
|
|
23
|
+
className: "h-3 w-5 shrink-0 rounded-sm object-cover",
|
|
24
|
+
"aria-hidden": "true"
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ jsxs("span", { className: "truncate", children: [
|
|
28
|
+
text,
|
|
29
|
+
showCode && code !== "" && /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground", children: [
|
|
30
|
+
" \xB7 ",
|
|
31
|
+
code
|
|
32
|
+
] })
|
|
33
|
+
] })
|
|
34
|
+
] });
|
|
35
|
+
}
|
|
36
|
+
function CountrySelect({
|
|
37
|
+
id,
|
|
38
|
+
name,
|
|
39
|
+
options,
|
|
40
|
+
defaultValue,
|
|
41
|
+
required = false,
|
|
42
|
+
allowEmpty = false,
|
|
43
|
+
emptyLabel = "\u2014",
|
|
44
|
+
placeholder,
|
|
45
|
+
invalid = false
|
|
46
|
+
}) {
|
|
47
|
+
const emptyValue = "0";
|
|
48
|
+
const resolvedDefault = defaultValue && defaultValue !== "" ? defaultValue : emptyValue;
|
|
49
|
+
return /* @__PURE__ */ jsxs(
|
|
50
|
+
Select,
|
|
51
|
+
{
|
|
52
|
+
name,
|
|
53
|
+
defaultValue: allowEmpty ? resolvedDefault : defaultValue ?? options[0]?.value,
|
|
54
|
+
children: [
|
|
55
|
+
/* @__PURE__ */ jsx(SelectTrigger, { id, className: "w-full", "aria-invalid": invalid, "aria-required": required, children: /* @__PURE__ */ jsx(SelectValue, { placeholder }) }),
|
|
56
|
+
/* @__PURE__ */ jsx(SelectContent, { children: /* @__PURE__ */ jsxs(SelectGroup, { children: [
|
|
57
|
+
allowEmpty && /* @__PURE__ */ jsx(SelectItem, { value: emptyValue, children: emptyLabel }),
|
|
58
|
+
options.map((option) => /* @__PURE__ */ jsx(SelectItem, { value: option.value ?? "", children: /* @__PURE__ */ jsx(CountryOptionLabel, { country: option }) }, option.value))
|
|
59
|
+
] }) })
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
var PasswordInput = React2.forwardRef(
|
|
65
|
+
({ className, ...props }, ref) => {
|
|
66
|
+
const [visible, setVisible] = React2.useState(false);
|
|
67
|
+
return /* @__PURE__ */ jsxs("div", { className: "ui-password-input", "data-slot": "password-input", children: [
|
|
68
|
+
/* @__PURE__ */ jsx(
|
|
69
|
+
Input,
|
|
70
|
+
{
|
|
71
|
+
ref,
|
|
72
|
+
type: visible ? "text" : "password",
|
|
73
|
+
className: cn("ui-password-input-field", className),
|
|
74
|
+
...props
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
/* @__PURE__ */ jsx(
|
|
78
|
+
"button",
|
|
79
|
+
{
|
|
80
|
+
type: "button",
|
|
81
|
+
className: "ui-password-input-toggle",
|
|
82
|
+
onClick: () => setVisible((v) => !v),
|
|
83
|
+
"aria-label": visible ? "\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u96A0\u3059" : "\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u8868\u793A",
|
|
84
|
+
tabIndex: -1,
|
|
85
|
+
children: visible ? /* @__PURE__ */ jsx(EyeOff, { "aria-hidden": "true" }) : /* @__PURE__ */ jsx(Eye, { "aria-hidden": "true" })
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
] });
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
PasswordInput.displayName = "PasswordInput";
|
|
92
|
+
var InputOTP = React2.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
93
|
+
OTPInput,
|
|
94
|
+
{
|
|
95
|
+
ref,
|
|
96
|
+
"data-slot": "input-otp",
|
|
97
|
+
containerClassName: cn("ui-otp-container", containerClassName),
|
|
98
|
+
className: cn("ui-otp-input", className),
|
|
99
|
+
...props
|
|
100
|
+
}
|
|
101
|
+
));
|
|
102
|
+
InputOTP.displayName = "InputOTP";
|
|
103
|
+
var InputOTPGroup = React2.forwardRef(
|
|
104
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
105
|
+
"div",
|
|
106
|
+
{
|
|
107
|
+
ref,
|
|
108
|
+
"data-slot": "input-otp-group",
|
|
109
|
+
className: cn("ui-otp-group", className),
|
|
110
|
+
...props
|
|
111
|
+
}
|
|
112
|
+
)
|
|
113
|
+
);
|
|
114
|
+
InputOTPGroup.displayName = "InputOTPGroup";
|
|
115
|
+
var InputOTPSlot = React2.forwardRef(({ index, className, ...props }, ref) => {
|
|
116
|
+
const context = React2.useContext(OTPInputContext);
|
|
117
|
+
const slot = context.slots[index] ?? { char: null, hasFakeCaret: false, isActive: false };
|
|
118
|
+
return /* @__PURE__ */ jsxs(
|
|
119
|
+
"div",
|
|
120
|
+
{
|
|
121
|
+
ref,
|
|
122
|
+
"data-slot": "input-otp-slot",
|
|
123
|
+
"data-active": slot.isActive || void 0,
|
|
124
|
+
className: cn("ui-otp-slot", className),
|
|
125
|
+
...props,
|
|
126
|
+
children: [
|
|
127
|
+
slot.char,
|
|
128
|
+
slot.hasFakeCaret ? /* @__PURE__ */ jsx("div", { className: "ui-otp-caret-wrapper", "aria-hidden": "true", children: /* @__PURE__ */ jsx("div", { className: "ui-otp-caret" }) }) : null
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
});
|
|
133
|
+
InputOTPSlot.displayName = "InputOTPSlot";
|
|
134
|
+
var InputOTPSeparator = React2.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsx(Minus, { className: "ui-otp-separator-icon", "aria-hidden": "true" }) }));
|
|
135
|
+
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
136
|
+
var Rating = React2.forwardRef(
|
|
137
|
+
({
|
|
138
|
+
value,
|
|
139
|
+
defaultValue = 0,
|
|
140
|
+
onValueChange,
|
|
141
|
+
max = 5,
|
|
142
|
+
readOnly,
|
|
143
|
+
disabled,
|
|
144
|
+
name,
|
|
145
|
+
className,
|
|
146
|
+
...rest
|
|
147
|
+
}, ref) => {
|
|
148
|
+
const [internal, setInternal] = React2.useState(defaultValue);
|
|
149
|
+
const current = value ?? internal;
|
|
150
|
+
const [hover, setHover] = React2.useState(null);
|
|
151
|
+
const display = hover ?? current;
|
|
152
|
+
const interactive = !readOnly && !disabled;
|
|
153
|
+
const select = (next) => {
|
|
154
|
+
if (!interactive) return;
|
|
155
|
+
if (value === void 0) setInternal(next);
|
|
156
|
+
onValueChange?.(next);
|
|
157
|
+
};
|
|
158
|
+
return /* @__PURE__ */ jsxs(
|
|
159
|
+
"div",
|
|
160
|
+
{
|
|
161
|
+
ref,
|
|
162
|
+
role: "radiogroup",
|
|
163
|
+
"data-slot": "rating",
|
|
164
|
+
className: cn("ui-rating", className),
|
|
165
|
+
"aria-label": rest["aria-label"] ?? "\u8A55\u4FA1",
|
|
166
|
+
children: [
|
|
167
|
+
Array.from({ length: max }, (_, i) => i + 1).map((star) => /* @__PURE__ */ jsx(
|
|
168
|
+
"button",
|
|
169
|
+
{
|
|
170
|
+
type: "button",
|
|
171
|
+
role: "radio",
|
|
172
|
+
"aria-checked": current === star,
|
|
173
|
+
"aria-label": String(star),
|
|
174
|
+
disabled: disabled || readOnly,
|
|
175
|
+
tabIndex: interactive ? 0 : -1,
|
|
176
|
+
className: cn("ui-rating-star", star <= display && "ui-rating-star-filled"),
|
|
177
|
+
onMouseEnter: () => interactive && setHover(star),
|
|
178
|
+
onMouseLeave: () => setHover(null),
|
|
179
|
+
onClick: () => select(star),
|
|
180
|
+
children: /* @__PURE__ */ jsx(Star, { "aria-hidden": "true" })
|
|
181
|
+
},
|
|
182
|
+
star
|
|
183
|
+
)),
|
|
184
|
+
name ? /* @__PURE__ */ jsx("input", { type: "hidden", name, value: current }) : null
|
|
185
|
+
]
|
|
186
|
+
}
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
);
|
|
190
|
+
Rating.displayName = "Rating";
|
|
191
|
+
var TagInput = React2.forwardRef(
|
|
192
|
+
({ value, defaultValue = [], onValueChange, placeholder, disabled, name, className }, ref) => {
|
|
193
|
+
const [internal, setInternal] = React2.useState(defaultValue);
|
|
194
|
+
const tags = value ?? internal;
|
|
195
|
+
const [draft, setDraft] = React2.useState("");
|
|
196
|
+
const commit = (next) => {
|
|
197
|
+
if (value === void 0) setInternal(next);
|
|
198
|
+
onValueChange?.(next);
|
|
199
|
+
};
|
|
200
|
+
const add = (raw) => {
|
|
201
|
+
const tag = raw.trim();
|
|
202
|
+
if (!tag || tags.includes(tag)) return;
|
|
203
|
+
commit([...tags, tag]);
|
|
204
|
+
};
|
|
205
|
+
const removeAt = (i) => commit(tags.filter((_, idx) => idx !== i));
|
|
206
|
+
const onKeyDown = (e) => {
|
|
207
|
+
if (e.key === "Enter" || e.key === ",") {
|
|
208
|
+
e.preventDefault();
|
|
209
|
+
add(draft);
|
|
210
|
+
setDraft("");
|
|
211
|
+
} else if (e.key === "Backspace" && draft === "" && tags.length > 0) {
|
|
212
|
+
removeAt(tags.length - 1);
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
return /* @__PURE__ */ jsxs(
|
|
216
|
+
"div",
|
|
217
|
+
{
|
|
218
|
+
"data-slot": "tag-input",
|
|
219
|
+
className: cn("ui-tag-input", disabled && "ui-tag-input-disabled", className),
|
|
220
|
+
children: [
|
|
221
|
+
tags.map((tag, i) => /* @__PURE__ */ jsxs("span", { className: "ui-tag-input-chip", "data-slot": "tag-input-chip", children: [
|
|
222
|
+
tag,
|
|
223
|
+
!disabled ? /* @__PURE__ */ jsx(
|
|
224
|
+
"button",
|
|
225
|
+
{
|
|
226
|
+
type: "button",
|
|
227
|
+
className: "ui-tag-input-remove",
|
|
228
|
+
"aria-label": `${tag} \u3092\u524A\u9664`,
|
|
229
|
+
onClick: () => removeAt(i),
|
|
230
|
+
children: /* @__PURE__ */ jsx(X, { "aria-hidden": "true" })
|
|
231
|
+
}
|
|
232
|
+
) : null
|
|
233
|
+
] }, tag)),
|
|
234
|
+
/* @__PURE__ */ jsx(
|
|
235
|
+
"input",
|
|
236
|
+
{
|
|
237
|
+
ref,
|
|
238
|
+
type: "text",
|
|
239
|
+
className: "ui-tag-input-field",
|
|
240
|
+
value: draft,
|
|
241
|
+
placeholder: tags.length === 0 ? placeholder : void 0,
|
|
242
|
+
disabled,
|
|
243
|
+
onChange: (e) => setDraft(e.target.value),
|
|
244
|
+
onKeyDown,
|
|
245
|
+
onBlur: () => {
|
|
246
|
+
if (draft.trim()) {
|
|
247
|
+
add(draft);
|
|
248
|
+
setDraft("");
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
),
|
|
253
|
+
name ? /* @__PURE__ */ jsx("input", { type: "hidden", name, value: tags.join(",") }) : null
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
);
|
|
259
|
+
TagInput.displayName = "TagInput";
|
|
260
|
+
|
|
261
|
+
export { CountryOptionLabel, CountrySelect, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, PasswordInput, Rating, TagInput };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from './chunk-
|
|
1
|
+
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from './chunk-3EMDVI7X.js';
|
|
2
2
|
import { Button } from './chunk-M4PZNAMV.js';
|
|
3
3
|
import { useTranslation } from './chunk-RLGHEV4A.js';
|
|
4
4
|
import { cn } from './chunk-U7N2A7A3.js';
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { cn } from './chunk-U7N2A7A3.js';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Drawer as Drawer$1 } from 'vaul';
|
|
4
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
function Drawer({
|
|
7
|
+
shouldScaleBackground = true,
|
|
8
|
+
...props
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ jsx(Drawer$1.Root, { shouldScaleBackground, ...props });
|
|
11
|
+
}
|
|
12
|
+
Drawer.displayName = "Drawer";
|
|
13
|
+
var DrawerTrigger = Drawer$1.Trigger;
|
|
14
|
+
var DrawerClose = Drawer$1.Close;
|
|
15
|
+
var DrawerPortal = Drawer$1.Portal;
|
|
16
|
+
var DrawerOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
17
|
+
Drawer$1.Overlay,
|
|
18
|
+
{
|
|
19
|
+
ref,
|
|
20
|
+
"data-slot": "drawer-overlay",
|
|
21
|
+
className: cn("ui-drawer-overlay", className),
|
|
22
|
+
...props
|
|
23
|
+
}
|
|
24
|
+
));
|
|
25
|
+
DrawerOverlay.displayName = "DrawerOverlay";
|
|
26
|
+
var DrawerContent = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DrawerPortal, { children: [
|
|
27
|
+
/* @__PURE__ */ jsx(DrawerOverlay, {}),
|
|
28
|
+
/* @__PURE__ */ jsxs(
|
|
29
|
+
Drawer$1.Content,
|
|
30
|
+
{
|
|
31
|
+
ref,
|
|
32
|
+
"data-slot": "drawer-content",
|
|
33
|
+
className: cn("ui-drawer-content", className),
|
|
34
|
+
...props,
|
|
35
|
+
children: [
|
|
36
|
+
/* @__PURE__ */ jsx("div", { className: "ui-drawer-handle", "aria-hidden": "true" }),
|
|
37
|
+
children
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
] }));
|
|
42
|
+
DrawerContent.displayName = "DrawerContent";
|
|
43
|
+
function DrawerHeader({ className, ...props }) {
|
|
44
|
+
return /* @__PURE__ */ jsx("div", { "data-slot": "drawer-header", className: cn("ui-drawer-header", className), ...props });
|
|
45
|
+
}
|
|
46
|
+
function DrawerFooter({ className, ...props }) {
|
|
47
|
+
return /* @__PURE__ */ jsx("div", { "data-slot": "drawer-footer", className: cn("ui-drawer-footer", className), ...props });
|
|
48
|
+
}
|
|
49
|
+
var DrawerTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Drawer$1.Title, { ref, className: cn("ui-drawer-title", className), ...props }));
|
|
50
|
+
DrawerTitle.displayName = "DrawerTitle";
|
|
51
|
+
var DrawerDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
52
|
+
Drawer$1.Description,
|
|
53
|
+
{
|
|
54
|
+
ref,
|
|
55
|
+
className: cn("ui-drawer-description", className),
|
|
56
|
+
...props
|
|
57
|
+
}
|
|
58
|
+
));
|
|
59
|
+
DrawerDescription.displayName = "DrawerDescription";
|
|
60
|
+
|
|
61
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import '../../chunk-HKD6ERY7.js';
|
|
2
|
-
export {
|
|
3
|
-
export { toast, useToast } from '../../chunk-B3WX53JQ.js';
|
|
4
|
-
export { SkeletonCard, SkeletonDetail, SkeletonRows, SkeletonStat, SkeletonTable } from '../../chunk-AINW5WYN.js';
|
|
5
|
-
export { Alert, AlertActions, AlertContent, AlertDescription, AlertQueryError, AlertTitle } from '../../chunk-TMDGV4CN.js';
|
|
6
|
-
export { Toaster } from '../../chunk-TO7URV7U.js';
|
|
7
|
-
export { PageContainer, Stack } from '../../chunk-WTVLZVBA.js';
|
|
2
|
+
export { PageContainer, Stack } from '../../chunk-YXJ3FS6O.js';
|
|
8
3
|
import '../../chunk-FRU44GA2.js';
|
|
9
|
-
|
|
10
|
-
export { FilterBar, FilterGroup, PageHeader, Toolbar, ToolbarGroup } from '../../chunk-4R7RQDXI.js';
|
|
4
|
+
export { FilterBar, FilterGroup, PageHeader, Toolbar, ToolbarGroup } from '../../chunk-PZ4LO723.js';
|
|
11
5
|
import '../../chunk-TO33OY4L.js';
|
|
12
|
-
export { Pagination } from '../../chunk-
|
|
6
|
+
export { Pagination } from '../../chunk-V45EK6S7.js';
|
|
13
7
|
export { Steps } from '../../chunk-OJZ6C2HM.js';
|
|
14
8
|
export { Tabs, TabsContent, TabsList, TabsTrigger } from '../../chunk-V3N266PT.js';
|
|
15
|
-
export {
|
|
16
|
-
export { Upload, collectUploadCommitActions, createUploadItem, useUploadDraft } from '../../chunk-
|
|
9
|
+
export { AlertMutationFeedback, ButtonRefetch, DataState, InfiniteQueryState, MutationFeedback, PrefetchLink, QueryRefetchButton, flattenItemPages } from '../../chunk-N43OKOFT.js';
|
|
10
|
+
export { Upload, collectUploadCommitActions, createUploadItem, useUploadDraft } from '../../chunk-NGT3I6OG.js';
|
|
11
|
+
import '../../chunk-3EMDVI7X.js';
|
|
12
|
+
import '../../chunk-CRERCLIZ.js';
|
|
13
|
+
export { SearchInput, Transfer, useDebouncedValue, useTimeoutFlag } from '../../chunk-3FUXNL5A.js';
|
|
14
|
+
export { TreeSelect } from '../../chunk-TV7WEENM.js';
|
|
15
|
+
export { toast, useToast } from '../../chunk-B3WX53JQ.js';
|
|
16
|
+
export { SkeletonCard, SkeletonDetail, SkeletonRows, SkeletonStat, SkeletonTable } from '../../chunk-AINW5WYN.js';
|
|
17
|
+
import '../../chunk-32WO3YLB.js';
|
|
18
|
+
export { Alert, AlertActions, AlertContent, AlertDescription, AlertQueryError, AlertTitle } from '../../chunk-TMDGV4CN.js';
|
|
17
19
|
export { formatBytes, formatCurrency, formatDateLong, formatDateTime, formatRelative, humanError, shortId } from '../../chunk-4R7QL3MW.js';
|
|
18
20
|
export { AlertDialog, Dialog, DialogConfirm, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from '../../chunk-P4HFJQID.js';
|
|
19
|
-
|
|
20
|
-
import '../../chunk-
|
|
21
|
-
|
|
22
|
-
export { Cascader } from '../../chunk-
|
|
21
|
+
export { Toaster } from '../../chunk-TO7URV7U.js';
|
|
22
|
+
import '../../chunk-WY4RSEYC.js';
|
|
23
|
+
import '../../chunk-VOHTRR5X.js';
|
|
24
|
+
export { Cascader } from '../../chunk-PKGPNZA4.js';
|
|
23
25
|
import '../../chunk-SMLKNECP.js';
|
|
24
26
|
import '../../chunk-O24Z3ULJ.js';
|
|
25
27
|
export { ChoiceField, Field } from '../../chunk-26CPAKUP.js';
|
|
26
|
-
|
|
28
|
+
import '../../chunk-HTEL5DQI.js';
|
|
29
|
+
export { DataTable, Descriptions, EmptyState } from '../../chunk-N5SDFNSJ.js';
|
|
27
30
|
import '../../chunk-DV52WNXO.js';
|
|
28
31
|
export { Flex, Inline } from '../../chunk-TILFZBTE.js';
|
|
29
32
|
export { Badge } from '../../chunk-UIYEAUWA.js';
|
|
33
|
+
import '../../chunk-DY5C44UP.js';
|
|
30
34
|
import '../../chunk-3KPEZ5CF.js';
|
|
31
35
|
import '../../chunk-4MMIMZMK.js';
|
|
32
|
-
import '../../chunk-6QXQQAOQ.js';
|
|
33
|
-
import '../../chunk-HTEL5DQI.js';
|
|
34
|
-
import '../../chunk-VOHTRR5X.js';
|
|
35
|
-
import '../../chunk-DY5C44UP.js';
|
|
36
|
-
import '../../chunk-M4PZNAMV.js';
|
|
37
36
|
import '../../chunk-IBK5D2Q6.js';
|
|
37
|
+
import '../../chunk-M4PZNAMV.js';
|
|
38
38
|
export { FormField } from '../../chunk-F7PG4OEV.js';
|
|
39
39
|
import '../../chunk-7PWBC4BY.js';
|
|
40
40
|
import '../../chunk-RLGHEV4A.js';
|
|
@@ -10,6 +10,8 @@ import { ReactNode } from 'react';
|
|
|
10
10
|
export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger } from './popover.js';
|
|
11
11
|
export { ScrollArea, ScrollBar } from './scroll-area.js';
|
|
12
12
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
13
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
14
|
+
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
13
15
|
import 'class-variance-authority/types';
|
|
14
16
|
import 'class-variance-authority';
|
|
15
17
|
import '@radix-ui/react-avatar';
|
|
@@ -58,4 +60,13 @@ declare const Collapsible: React.ForwardRefExoticComponent<CollapsiblePrimitive.
|
|
|
58
60
|
declare const CollapsibleTrigger: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
59
61
|
declare const CollapsibleContent: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
60
62
|
|
|
61
|
-
|
|
63
|
+
declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
64
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
65
|
+
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
66
|
+
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
67
|
+
|
|
68
|
+
declare const HoverCard: React.FC<HoverCardPrimitive.HoverCardProps>;
|
|
69
|
+
declare const HoverCardTrigger: React.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
70
|
+
declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
71
|
+
|
|
72
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Collapsible, CollapsibleContent, CollapsibleTrigger, HoverCard, HoverCardContent, HoverCardTrigger, Progress, type ProgressProps, type ProgressTone, Timeline, type TimelineItem, type TimelineProps, TreeList, type TreeListItem, type TreeListProps };
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
export { Avatar, AvatarFallback, AvatarImage } from '../../chunk-SEG2YBXF.js';
|
|
2
2
|
export { Card, CardAction, CardContent, CardCover, CardDescription, CardFooter, CardHeader, CardTitle, StatCard } from '../../chunk-O2OUNXV4.js';
|
|
3
|
-
export { DataTable, Descriptions, EmptyState } from '../../chunk-
|
|
3
|
+
export { DataTable, Descriptions, EmptyState } from '../../chunk-N5SDFNSJ.js';
|
|
4
4
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from '../../chunk-DV52WNXO.js';
|
|
5
5
|
import '../../chunk-TILFZBTE.js';
|
|
6
6
|
import { Badge } from '../../chunk-UIYEAUWA.js';
|
|
7
7
|
export { Badge } from '../../chunk-UIYEAUWA.js';
|
|
8
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger } from '../../chunk-DY5C44UP.js';
|
|
8
9
|
export { ScrollArea, ScrollBar } from '../../chunk-3KPEZ5CF.js';
|
|
9
10
|
export { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '../../chunk-4MMIMZMK.js';
|
|
10
|
-
export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger } from '../../chunk-DY5C44UP.js';
|
|
11
|
-
import '../../chunk-M4PZNAMV.js';
|
|
12
11
|
import '../../chunk-IBK5D2Q6.js';
|
|
12
|
+
import '../../chunk-M4PZNAMV.js';
|
|
13
13
|
import '../../chunk-RLGHEV4A.js';
|
|
14
14
|
import '../../chunk-FXFJF4YA.js';
|
|
15
|
-
import '../../chunk-U7N2A7A3.js';
|
|
16
|
-
import {
|
|
17
|
-
import { ChevronRight, Package, Plane, CheckCircle2 } from 'lucide-react';
|
|
15
|
+
import { cn } from '../../chunk-U7N2A7A3.js';
|
|
16
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
17
|
+
import { ChevronDown, ChevronRight, Package, Plane, CheckCircle2 } from 'lucide-react';
|
|
18
|
+
import * as React from 'react';
|
|
19
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
20
|
+
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
18
21
|
|
|
19
22
|
function Progress({ value, label, tone = "success" }) {
|
|
20
23
|
const boundedValue = Math.max(0, Math.min(100, value));
|
|
@@ -73,5 +76,55 @@ function Timeline({ items }) {
|
|
|
73
76
|
] }, index);
|
|
74
77
|
}) });
|
|
75
78
|
}
|
|
79
|
+
var Accordion = AccordionPrimitive.Root;
|
|
80
|
+
var AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
81
|
+
AccordionPrimitive.Item,
|
|
82
|
+
{
|
|
83
|
+
ref,
|
|
84
|
+
"data-slot": "accordion-item",
|
|
85
|
+
className: cn("ui-accordion-item", className),
|
|
86
|
+
...props
|
|
87
|
+
}
|
|
88
|
+
));
|
|
89
|
+
AccordionItem.displayName = "AccordionItem";
|
|
90
|
+
var AccordionTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "ui-accordion-header", children: /* @__PURE__ */ jsxs(
|
|
91
|
+
AccordionPrimitive.Trigger,
|
|
92
|
+
{
|
|
93
|
+
ref,
|
|
94
|
+
"data-slot": "accordion-trigger",
|
|
95
|
+
className: cn("ui-accordion-trigger", className),
|
|
96
|
+
...props,
|
|
97
|
+
children: [
|
|
98
|
+
children,
|
|
99
|
+
/* @__PURE__ */ jsx(ChevronDown, { className: "ui-accordion-chevron", "aria-hidden": "true" })
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
) }));
|
|
103
|
+
AccordionTrigger.displayName = "AccordionTrigger";
|
|
104
|
+
var AccordionContent = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
105
|
+
AccordionPrimitive.Content,
|
|
106
|
+
{
|
|
107
|
+
ref,
|
|
108
|
+
"data-slot": "accordion-content",
|
|
109
|
+
className: cn("ui-accordion-content", className),
|
|
110
|
+
...props,
|
|
111
|
+
children: /* @__PURE__ */ jsx("div", { className: "ui-accordion-content-inner", children })
|
|
112
|
+
}
|
|
113
|
+
));
|
|
114
|
+
AccordionContent.displayName = "AccordionContent";
|
|
115
|
+
var HoverCard = HoverCardPrimitive.Root;
|
|
116
|
+
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
117
|
+
var HoverCardContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(HoverCardPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
118
|
+
HoverCardPrimitive.Content,
|
|
119
|
+
{
|
|
120
|
+
ref,
|
|
121
|
+
"data-slot": "hover-card-content",
|
|
122
|
+
align,
|
|
123
|
+
sideOffset,
|
|
124
|
+
className: cn("ui-hover-card-content", className),
|
|
125
|
+
...props
|
|
126
|
+
}
|
|
127
|
+
) }));
|
|
128
|
+
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
76
129
|
|
|
77
|
-
export { Progress, Timeline, TreeList };
|
|
130
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, HoverCard, HoverCardContent, HoverCardTrigger, Progress, Timeline, TreeList };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { Autocomplete } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-HTEL5DQI.js';
|
|
1
|
+
export { Autocomplete } from '../../chunk-MISVV4IT.js';
|
|
2
|
+
import '../../chunk-WY4RSEYC.js';
|
|
4
3
|
import '../../chunk-VOHTRR5X.js';
|
|
4
|
+
import '../../chunk-HTEL5DQI.js';
|
|
5
5
|
import '../../chunk-DY5C44UP.js';
|
|
6
|
-
import '../../chunk-M4PZNAMV.js';
|
|
7
6
|
import '../../chunk-IBK5D2Q6.js';
|
|
7
|
+
import '../../chunk-M4PZNAMV.js';
|
|
8
8
|
import '../../chunk-RLGHEV4A.js';
|
|
9
9
|
import '../../chunk-FXFJF4YA.js';
|
|
10
10
|
import '../../chunk-U7N2A7A3.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { Cascader } from '../../chunk-
|
|
1
|
+
export { Cascader } from '../../chunk-PKGPNZA4.js';
|
|
2
2
|
import '../../chunk-SMLKNECP.js';
|
|
3
3
|
import '../../chunk-O24Z3ULJ.js';
|
|
4
4
|
import '../../chunk-26CPAKUP.js';
|
|
5
|
-
import '../../chunk-3KPEZ5CF.js';
|
|
6
5
|
import '../../chunk-HTEL5DQI.js';
|
|
7
6
|
import '../../chunk-DY5C44UP.js';
|
|
8
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-3KPEZ5CF.js';
|
|
9
8
|
import '../../chunk-IBK5D2Q6.js';
|
|
9
|
+
import '../../chunk-M4PZNAMV.js';
|
|
10
10
|
import '../../chunk-7PWBC4BY.js';
|
|
11
11
|
import '../../chunk-RLGHEV4A.js';
|
|
12
12
|
import '../../chunk-FXFJF4YA.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { DatePicker } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { DatePicker } from '../../chunk-67HEX3OS.js';
|
|
2
|
+
import '../../chunk-7577VIAC.js';
|
|
3
3
|
import '../../chunk-VOHTRR5X.js';
|
|
4
4
|
import '../../chunk-DY5C44UP.js';
|
|
5
|
-
import '../../chunk-M4PZNAMV.js';
|
|
6
5
|
import '../../chunk-IBK5D2Q6.js';
|
|
6
|
+
import '../../chunk-M4PZNAMV.js';
|
|
7
7
|
import '../../chunk-RLGHEV4A.js';
|
|
8
8
|
import '../../chunk-FXFJF4YA.js';
|
|
9
9
|
import '../../chunk-U7N2A7A3.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { DateRangePicker } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { DateRangePicker } from '../../chunk-IAKROVSG.js';
|
|
2
|
+
import '../../chunk-7577VIAC.js';
|
|
3
3
|
import '../../chunk-VOHTRR5X.js';
|
|
4
4
|
import '../../chunk-DY5C44UP.js';
|
|
5
|
-
import '../../chunk-M4PZNAMV.js';
|
|
6
5
|
import '../../chunk-IBK5D2Q6.js';
|
|
6
|
+
import '../../chunk-M4PZNAMV.js';
|
|
7
7
|
import '../../chunk-RLGHEV4A.js';
|
|
8
8
|
import '../../chunk-FXFJF4YA.js';
|
|
9
9
|
import '../../chunk-U7N2A7A3.js';
|