@godxjp/ui 9.2.0 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +58 -29
- package/dist/app/index.d.ts +1 -1
- package/dist/app/index.js +4 -4
- package/dist/{app.prop-UTc4j4nj.d.ts → app.prop-Cy6dJnU8.d.ts} +18 -40
- package/dist/{checkbox-ChRsR7Nk.d.ts → checkbox-em-oFM5D.d.ts} +1 -1
- package/dist/{chunk-LJLGABFV.js → chunk-2HXZT2WJ.js} +17 -9
- package/dist/{chunk-QLMXEJSY.js → chunk-3Q4A4U2P.js} +24 -1
- package/dist/{chunk-26CPAKUP.js → chunk-44YRPSZ7.js} +1 -2
- package/dist/{chunk-HB2OHB5X.js → chunk-5NCFLCM7.js} +27 -16
- package/dist/{chunk-FXFJF4YA.js → chunk-6CSBMMZS.js} +262 -31
- package/dist/{chunk-457KVJTX.js → chunk-7Q45MBFW.js} +7 -5
- package/dist/{chunk-O24Z3ULJ.js → chunk-BE6GJGKJ.js} +1 -1
- package/dist/{chunk-FVPCVZL3.js → chunk-BG5RNXTH.js} +1 -1
- package/dist/{chunk-AINW5WYN.js → chunk-COD66MFF.js} +1 -2
- package/dist/{chunk-IOGU3ZWF.js → chunk-DNGJHWJZ.js} +3 -3
- package/dist/{chunk-3TS3G4U3.js → chunk-EE5DKOHX.js} +3 -1
- package/dist/{chunk-BHV2FUOA.js → chunk-EZHHJQWQ.js} +1 -1
- package/dist/{chunk-G6Q32VHO.js → chunk-FAB3LMTK.js} +33 -8
- package/dist/{chunk-N3JPLJ3B.js → chunk-GDDCSKCB.js} +12 -5
- package/dist/{chunk-RLGHEV4A.js → chunk-HTG5VHU7.js} +10 -1
- package/dist/{chunk-R2W2FX5Q.js → chunk-I7NQ2LIL.js} +1 -9
- package/dist/{chunk-XQMPK4GM.js → chunk-IHRMOJXD.js} +86 -39
- package/dist/{chunk-TILFZBTE.js → chunk-INIIF7F7.js} +1 -4
- package/dist/{chunk-UIYEAUWA.js → chunk-IY347EQA.js} +2 -2
- package/dist/{chunk-HCM4JAC2.js → chunk-JWGLJXQU.js} +39 -11
- package/dist/{chunk-TO33OY4L.js → chunk-LMKUKCTN.js} +1 -1
- package/dist/chunk-NXVCI6YB.js +453 -0
- package/dist/{chunk-O2OUNXV4.js → chunk-P5KPCT6R.js} +3 -3
- package/dist/{chunk-6HQMUUQW.js → chunk-PDXFQS7M.js} +14 -30
- package/dist/{chunk-26WDEDWL.js → chunk-PUGEOUWZ.js} +32 -23
- package/dist/{chunk-F7PG4OEV.js → chunk-QSGW3ZWK.js} +12 -4
- package/dist/{chunk-E7HBHUJY.js → chunk-QVLUCB47.js} +8 -6
- package/dist/{chunk-25RYBC5T.js → chunk-S2IJKT3D.js} +1 -1
- package/dist/{chunk-OJZ6C2HM.js → chunk-SARQRCKO.js} +54 -48
- package/dist/chunk-T2QO2S65.js +126 -0
- package/dist/{chunk-6J7GRCDA.js → chunk-UNVRNJCB.js} +71 -11
- package/dist/{chunk-S6TBIL7J.js → chunk-USNR424B.js} +63 -44
- package/dist/{chunk-6YBYAEXD.js → chunk-VSM44AYE.js} +94 -24
- package/dist/{chunk-QWLXN6CT.js → chunk-VSUYVT2Q.js} +3 -2
- package/dist/{chunk-4R7QL3MW.js → chunk-X2VY4MOW.js} +14 -29
- package/dist/{chunk-ETLAI3QU.js → chunk-Z46J47FY.js} +73 -77
- package/dist/components/admin/index.d.ts +22 -12
- package/dist/components/admin/index.js +29 -30
- package/dist/components/data-display/badge.js +3 -3
- package/dist/components/data-display/card.d.ts +3 -3
- package/dist/components/data-display/card.js +1 -1
- package/dist/components/data-display/carousel.js +3 -1
- package/dist/components/data-display/index.js +55 -33
- package/dist/components/data-entry/calendar.d.ts +1 -1
- package/dist/components/data-entry/calendar.js +1 -1
- package/dist/components/data-entry/cascader.d.ts +1 -1
- package/dist/components/data-entry/cascader.js +5 -5
- package/dist/components/data-entry/checkbox.d.ts +2 -2
- package/dist/components/data-entry/checkbox.js +2 -2
- package/dist/components/data-entry/color-picker.d.ts +1 -1
- package/dist/components/data-entry/color-picker.js +3 -3
- package/dist/components/data-entry/date-picker.d.ts +2 -2
- package/dist/components/data-entry/date-picker.js +4 -4
- package/dist/components/data-entry/date-range-picker.d.ts +2 -2
- package/dist/components/data-entry/date-range-picker.js +4 -4
- package/dist/components/data-entry/index.d.ts +9 -25
- package/dist/components/data-entry/index.js +22 -26
- package/dist/components/data-entry/radio.d.ts +1 -1
- package/dist/components/data-entry/radio.js +2 -2
- package/dist/components/data-entry/select.d.ts +2 -2
- package/dist/components/data-entry/select.js +3 -4
- package/dist/components/data-entry/slider.d.ts +1 -1
- package/dist/components/data-entry/switch.d.ts +2 -2
- package/dist/components/data-entry/switch.js +1 -1
- package/dist/components/data-entry/time-input.js +2 -2
- package/dist/components/data-entry/time-picker.d.ts +3 -1
- package/dist/components/data-entry/time-picker.js +3 -3
- package/dist/components/data-entry/transfer.d.ts +2 -2
- package/dist/components/data-entry/transfer.js +5 -5
- package/dist/components/data-entry/tree-select.d.ts +1 -1
- package/dist/components/data-entry/tree-select.js +5 -5
- package/dist/components/data-entry/upload.d.ts +2 -2
- package/dist/components/data-entry/upload.js +5 -5
- package/dist/components/feedback/alert.js +5 -5
- package/dist/components/feedback/dialog.js +3 -3
- package/dist/components/feedback/index.d.ts +4 -4
- package/dist/components/feedback/index.js +9 -9
- package/dist/components/feedback/sheet.js +1 -1
- package/dist/components/layout/index.d.ts +6 -9
- package/dist/components/layout/index.js +6 -4
- package/dist/components/navigation/dropdown-menu.js +1 -1
- package/dist/components/navigation/index.d.ts +14 -16
- package/dist/components/navigation/index.js +7 -8
- package/dist/components/navigation/pagination.d.ts +11 -8
- package/dist/components/navigation/pagination.js +4 -5
- package/dist/components/navigation/steps.d.ts +3 -3
- package/dist/components/navigation/steps.js +3 -1
- package/dist/components/query/index.d.ts +1 -5
- package/dist/components/query/index.js +6 -8
- package/dist/components/ui/index.d.ts +5 -7
- package/dist/components/ui/index.js +30 -33
- package/dist/{data-entry.prop-CDkOajPj.d.ts → data-entry.prop-BR4vNA1j.d.ts} +7 -35
- package/dist/filter-bar-BxjSJJnQ.d.ts +7 -0
- package/dist/{inline-CDSVAN54.d.ts → flex-D_EXRFSW.d.ts} +2 -8
- package/dist/form/index.js +1 -1
- package/dist/i18n/index.d.ts +82 -10
- package/dist/i18n/index.js +2 -2
- package/dist/index.d.ts +6 -6
- package/dist/index.js +41 -44
- package/dist/lib/datetime/index.js +1 -1
- package/dist/{navigation.prop-8DgElO0c.d.ts → navigation.prop-DMcXkR-J.d.ts} +9 -11
- package/dist/{password-strength-kQkloEeo.d.ts → password-strength-DVRvXEOK.d.ts} +2 -2
- package/dist/props/components/index.d.ts +3 -3
- package/dist/props/index.d.ts +3 -3
- package/dist/props/index.js +1 -1
- package/dist/props/registry.d.ts +84 -39
- package/dist/props/registry.js +1 -1
- package/dist/{search-input-cezAxpgb.d.ts → search-input-DpqDMXcn.d.ts} +2 -4
- package/dist/{skeleton-uWAjSacg.d.ts → skeleton-cj9kh5wo.d.ts} +1 -3
- package/dist/styles/control.css +176 -41
- package/dist/styles/data-display-layout.css +41 -15
- package/dist/styles/feedback-layout.css +44 -12
- package/dist/styles/index.css +45 -1
- package/dist/styles/layout.css +18 -17
- package/dist/styles/navigation-layout.css +3 -1
- package/dist/styles/shell-layout.css +3 -3
- package/dist/styles/table-layout.css +13 -0
- package/dist/tokens/foundation.css +12 -1
- package/dist/tokens/semantic/layout.css +2 -2
- package/package.json +6 -7
- package/scripts/ui-audit.mjs +35 -2
- package/dist/chunk-6MCI7W5G.js +0 -201
- package/dist/chunk-CAEL2ZD2.js +0 -222
- package/dist/chunk-GKXPALFT.js +0 -32
- package/dist/chunk-JKHWLPM5.js +0 -101
- package/dist/chunk-KDBGFJJI.js +0 -220
- package/dist/components/data-entry/autocomplete.d.ts +0 -24
- package/dist/components/data-entry/autocomplete.js +0 -10
- package/dist/components/data-entry/combobox.d.ts +0 -22
- package/dist/components/data-entry/combobox.js +0 -6
- package/dist/filter-bar-B5TPUqEO.d.ts +0 -14
- /package/dist/{chunk-LDSLS6HE.js → chunk-7CFO5FFE.js} +0 -0
package/dist/chunk-KDBGFJJI.js
DELETED
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import { Command, CommandList, CommandItem, CommandGroup } from './chunk-HTEL5DQI.js';
|
|
2
|
-
import { Input } from './chunk-VOHTRR5X.js';
|
|
3
|
-
import { Button } from './chunk-M4PZNAMV.js';
|
|
4
|
-
import { Popover, PopoverTrigger, PopoverContent } from './chunk-DY5C44UP.js';
|
|
5
|
-
import { useTranslation } from './chunk-RLGHEV4A.js';
|
|
6
|
-
import { cn } from './chunk-U7N2A7A3.js';
|
|
7
|
-
import * as React from 'react';
|
|
8
|
-
import { ChevronsUpDown, Check, Loader2 } from 'lucide-react';
|
|
9
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
|
-
|
|
11
|
-
var DEBOUNCE_MS = 250;
|
|
12
|
-
function SearchSelect({
|
|
13
|
-
value = "",
|
|
14
|
-
onValueChange,
|
|
15
|
-
options: staticOptions,
|
|
16
|
-
loadOptions,
|
|
17
|
-
renderOption,
|
|
18
|
-
selectedLabel,
|
|
19
|
-
placeholder,
|
|
20
|
-
searchPlaceholder,
|
|
21
|
-
emptyMessage,
|
|
22
|
-
loadingMessage,
|
|
23
|
-
clearLabel,
|
|
24
|
-
clearable = true,
|
|
25
|
-
disabled = false,
|
|
26
|
-
name,
|
|
27
|
-
id,
|
|
28
|
-
className,
|
|
29
|
-
"data-testid": dataTestId
|
|
30
|
-
}) {
|
|
31
|
-
const { t } = useTranslation();
|
|
32
|
-
const [open, setOpen] = React.useState(false);
|
|
33
|
-
const [query, setQuery] = React.useState("");
|
|
34
|
-
const [debouncedQuery, setDebouncedQuery] = React.useState("");
|
|
35
|
-
const [loaded, setLoaded] = React.useState([]);
|
|
36
|
-
const [page, setPage] = React.useState(1);
|
|
37
|
-
const [hasMore, setHasMore] = React.useState(false);
|
|
38
|
-
const [loading, setLoading] = React.useState(false);
|
|
39
|
-
const [activeIndex, setActiveIndex] = React.useState(0);
|
|
40
|
-
const [picked, setPicked] = React.useState(null);
|
|
41
|
-
const reqId = React.useRef(0);
|
|
42
|
-
const resolvedLoad = React.useMemo(
|
|
43
|
-
() => loadOptions ?? (async ({ query: search }) => {
|
|
44
|
-
const needle = search.trim().toLowerCase();
|
|
45
|
-
const list = staticOptions ?? [];
|
|
46
|
-
return {
|
|
47
|
-
options: needle ? list.filter(
|
|
48
|
-
(option) => option.label.toLowerCase().includes(needle) || option.value.toLowerCase().includes(needle)
|
|
49
|
-
) : list,
|
|
50
|
-
hasMore: false
|
|
51
|
-
};
|
|
52
|
-
}),
|
|
53
|
-
[loadOptions, staticOptions]
|
|
54
|
-
);
|
|
55
|
-
React.useEffect(() => {
|
|
56
|
-
const handle = window.setTimeout(() => setDebouncedQuery(query.trim()), DEBOUNCE_MS);
|
|
57
|
-
return () => window.clearTimeout(handle);
|
|
58
|
-
}, [query]);
|
|
59
|
-
const fetchPage = React.useCallback(
|
|
60
|
-
async (nextPage, search, append) => {
|
|
61
|
-
const ticket = ++reqId.current;
|
|
62
|
-
setLoading(true);
|
|
63
|
-
try {
|
|
64
|
-
const result = await resolvedLoad({ query: search, page: nextPage });
|
|
65
|
-
if (ticket !== reqId.current) return;
|
|
66
|
-
setLoaded((prev) => append ? [...prev, ...result.options] : result.options);
|
|
67
|
-
setHasMore(Boolean(result.hasMore));
|
|
68
|
-
setPage(nextPage);
|
|
69
|
-
} finally {
|
|
70
|
-
if (ticket === reqId.current) setLoading(false);
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
[resolvedLoad]
|
|
74
|
-
);
|
|
75
|
-
React.useEffect(() => {
|
|
76
|
-
if (!open) return;
|
|
77
|
-
setActiveIndex(0);
|
|
78
|
-
void fetchPage(1, debouncedQuery, false);
|
|
79
|
-
}, [open, debouncedQuery, fetchPage]);
|
|
80
|
-
const grouped = React.useMemo(() => {
|
|
81
|
-
const order = [];
|
|
82
|
-
const buckets = /* @__PURE__ */ new Map();
|
|
83
|
-
for (const option of loaded) {
|
|
84
|
-
const key = option.group ?? "";
|
|
85
|
-
if (!buckets.has(key)) {
|
|
86
|
-
buckets.set(key, []);
|
|
87
|
-
order.push(key);
|
|
88
|
-
}
|
|
89
|
-
buckets.get(key).push(option);
|
|
90
|
-
}
|
|
91
|
-
let flatIndex = 0;
|
|
92
|
-
return order.map((key) => ({
|
|
93
|
-
heading: key || void 0,
|
|
94
|
-
items: (buckets.get(key) ?? []).map((option) => ({ option, index: flatIndex++ }))
|
|
95
|
-
}));
|
|
96
|
-
}, [loaded]);
|
|
97
|
-
const flatOrdered = React.useMemo(
|
|
98
|
-
() => grouped.flatMap((group) => group.items.map((entry) => entry.option)),
|
|
99
|
-
[grouped]
|
|
100
|
-
);
|
|
101
|
-
const resolvedPlaceholder = placeholder ?? t("dataEntry.searchSelect.placeholder");
|
|
102
|
-
const currentLabel = value ? picked?.label ?? selectedLabel ?? resolvedPlaceholder : resolvedPlaceholder;
|
|
103
|
-
const select = (option) => {
|
|
104
|
-
if (option.disabled) return;
|
|
105
|
-
setPicked(option);
|
|
106
|
-
onValueChange?.(option.value, option);
|
|
107
|
-
setOpen(false);
|
|
108
|
-
};
|
|
109
|
-
const clear = () => {
|
|
110
|
-
setPicked(null);
|
|
111
|
-
onValueChange?.("", void 0);
|
|
112
|
-
setOpen(false);
|
|
113
|
-
};
|
|
114
|
-
const onScroll = (event) => {
|
|
115
|
-
const el = event.currentTarget;
|
|
116
|
-
if (el.scrollHeight - el.scrollTop - el.clientHeight < 48 && hasMore && !loading) {
|
|
117
|
-
void fetchPage(page + 1, debouncedQuery, true);
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
const onKeyDown = (event) => {
|
|
121
|
-
if (event.key === "ArrowDown") {
|
|
122
|
-
event.preventDefault();
|
|
123
|
-
setActiveIndex((i) => Math.min(i + 1, Math.max(flatOrdered.length - 1, 0)));
|
|
124
|
-
} else if (event.key === "ArrowUp") {
|
|
125
|
-
event.preventDefault();
|
|
126
|
-
setActiveIndex((i) => Math.max(i - 1, 0));
|
|
127
|
-
} else if (event.key === "Enter" && flatOrdered[activeIndex]) {
|
|
128
|
-
event.preventDefault();
|
|
129
|
-
select(flatOrdered[activeIndex]);
|
|
130
|
-
} else if (event.key === "Escape") {
|
|
131
|
-
event.preventDefault();
|
|
132
|
-
setOpen(false);
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
const optionTestId = (optionValue) => dataTestId ? `${dataTestId}-option-${optionValue}` : void 0;
|
|
136
|
-
return /* @__PURE__ */ jsxs(
|
|
137
|
-
Popover,
|
|
138
|
-
{
|
|
139
|
-
open,
|
|
140
|
-
onOpenChange: (next) => {
|
|
141
|
-
setOpen(next);
|
|
142
|
-
if (!next) setQuery("");
|
|
143
|
-
},
|
|
144
|
-
children: [
|
|
145
|
-
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
146
|
-
Button,
|
|
147
|
-
{
|
|
148
|
-
id,
|
|
149
|
-
type: "button",
|
|
150
|
-
variant: "outline",
|
|
151
|
-
role: "combobox",
|
|
152
|
-
"aria-expanded": open,
|
|
153
|
-
disabled,
|
|
154
|
-
"data-testid": dataTestId,
|
|
155
|
-
className: cn("w-full justify-between font-normal", className),
|
|
156
|
-
children: [
|
|
157
|
-
/* @__PURE__ */ jsx("span", { className: cn("truncate text-left", !value && "text-muted-foreground"), children: currentLabel }),
|
|
158
|
-
/* @__PURE__ */ jsx(ChevronsUpDown, { className: "ml-2 size-4 shrink-0 opacity-50", "aria-hidden": "true" })
|
|
159
|
-
]
|
|
160
|
-
}
|
|
161
|
-
) }),
|
|
162
|
-
name ? /* @__PURE__ */ jsx("input", { type: "hidden", name, value }) : null,
|
|
163
|
-
/* @__PURE__ */ jsx(
|
|
164
|
-
PopoverContent,
|
|
165
|
-
{
|
|
166
|
-
align: "start",
|
|
167
|
-
sideOffset: 4,
|
|
168
|
-
collisionPadding: 12,
|
|
169
|
-
className: "flex max-h-[min(24rem,var(--radix-popover-content-available-height))] w-max max-w-[min(32rem,calc(100vw-1.5rem))] min-w-[var(--radix-popover-trigger-width)] flex-col p-0",
|
|
170
|
-
children: /* @__PURE__ */ jsxs(Command, { shouldFilter: false, className: "flex min-h-0 flex-col", children: [
|
|
171
|
-
/* @__PURE__ */ jsx("div", { className: "border-border shrink-0 border-b p-2", children: /* @__PURE__ */ jsx(
|
|
172
|
-
Input,
|
|
173
|
-
{
|
|
174
|
-
autoFocus: true,
|
|
175
|
-
value: query,
|
|
176
|
-
onChange: (event) => setQuery(event.target.value),
|
|
177
|
-
onKeyDown,
|
|
178
|
-
placeholder: searchPlaceholder ?? t("dataEntry.searchSelect.search")
|
|
179
|
-
}
|
|
180
|
-
) }),
|
|
181
|
-
/* @__PURE__ */ jsxs(CommandList, { className: "min-h-0 flex-1 overflow-y-auto p-1", onScroll, children: [
|
|
182
|
-
clearable && value ? /* @__PURE__ */ jsx(CommandItem, { value: "", "data-testid": optionTestId("none"), onSelect: clear, children: /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-sm", children: clearLabel ?? t("dataEntry.searchSelect.clear") }) }) : null,
|
|
183
|
-
grouped.map((group) => {
|
|
184
|
-
const rows = group.items.map(({ option, index }) => /* @__PURE__ */ jsxs(
|
|
185
|
-
CommandItem,
|
|
186
|
-
{
|
|
187
|
-
value: option.value,
|
|
188
|
-
"data-testid": optionTestId(option.value),
|
|
189
|
-
"aria-selected": activeIndex === index,
|
|
190
|
-
disabled: option.disabled,
|
|
191
|
-
className: activeIndex === index ? "bg-accent text-accent-foreground" : void 0,
|
|
192
|
-
onMouseEnter: () => setActiveIndex(index),
|
|
193
|
-
onSelect: () => select(option),
|
|
194
|
-
children: [
|
|
195
|
-
renderOption ? /* @__PURE__ */ jsx("div", { className: "min-w-0 flex-1", children: renderOption(option) }) : /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
196
|
-
/* @__PURE__ */ jsx("span", { className: "truncate text-sm", children: option.label }),
|
|
197
|
-
option.sublabel ? /* @__PURE__ */ jsx("span", { className: "text-muted-foreground truncate text-xs", children: option.sublabel }) : null
|
|
198
|
-
] }),
|
|
199
|
-
value === option.value ? /* @__PURE__ */ jsx(Check, { className: "text-primary size-4 shrink-0", "aria-hidden": "true" }) : null
|
|
200
|
-
]
|
|
201
|
-
},
|
|
202
|
-
option.value
|
|
203
|
-
));
|
|
204
|
-
return group.heading ? /* @__PURE__ */ jsx(CommandGroup, { heading: group.heading, children: rows }, group.heading) : /* @__PURE__ */ jsx(React.Fragment, { children: rows }, "__ungrouped");
|
|
205
|
-
}),
|
|
206
|
-
loading ? /* @__PURE__ */ jsxs("div", { className: "text-muted-foreground flex items-center gap-2 px-2 py-3 text-sm", children: [
|
|
207
|
-
/* @__PURE__ */ jsx(Loader2, { className: "size-4 animate-spin", "aria-hidden": "true" }),
|
|
208
|
-
loadingMessage ?? t("dataEntry.searchSelect.loading")
|
|
209
|
-
] }) : null,
|
|
210
|
-
!loading && loaded.length === 0 ? /* @__PURE__ */ jsx("div", { className: "text-muted-foreground px-2 py-6 text-center text-sm", children: emptyMessage ?? t("dataEntry.searchSelect.empty") }) : null
|
|
211
|
-
] })
|
|
212
|
-
] })
|
|
213
|
-
}
|
|
214
|
-
)
|
|
215
|
-
]
|
|
216
|
-
}
|
|
217
|
-
);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export { SearchSelect };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { a as AutocompleteProp } from '../../data-entry.prop-CDkOajPj.js';
|
|
3
|
-
import '@radix-ui/react-checkbox';
|
|
4
|
-
import '@radix-ui/react-radio-group';
|
|
5
|
-
import '@radix-ui/react-slider';
|
|
6
|
-
import '@radix-ui/react-switch';
|
|
7
|
-
import 'react-day-picker';
|
|
8
|
-
import 'react';
|
|
9
|
-
import '../../shared.prop-BsNSXeqD.js';
|
|
10
|
-
import '../../content.prop-DrV_zDy-.js';
|
|
11
|
-
import '../../data.prop-DMYMNl6L.js';
|
|
12
|
-
import '../../interaction.prop-DSFizzP6.js';
|
|
13
|
-
import '../../layout.prop-CXvl2rVR.js';
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Searchable combobox over a static list.
|
|
17
|
-
*
|
|
18
|
-
* @deprecated Prefer {@link SearchSelect} with a static `options` array — it is a strict superset
|
|
19
|
-
* (optgroup grouping, sublabels, async `loadOptions`, custom `renderOption`). `Autocomplete` is
|
|
20
|
-
* now a thin wrapper kept for backward compatibility.
|
|
21
|
-
*/
|
|
22
|
-
declare function Autocomplete({ options, value, onValueChange, placeholder, searchPlaceholder, emptyMessage, disabled, className, id, }: AutocompleteProp): react_jsx_runtime.JSX.Element;
|
|
23
|
-
|
|
24
|
-
export { Autocomplete, AutocompleteProp, AutocompleteProp as AutocompleteProps };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { Autocomplete } from '../../chunk-GKXPALFT.js';
|
|
2
|
-
import '../../chunk-KDBGFJJI.js';
|
|
3
|
-
import '../../chunk-HTEL5DQI.js';
|
|
4
|
-
import '../../chunk-VOHTRR5X.js';
|
|
5
|
-
import '../../chunk-M4PZNAMV.js';
|
|
6
|
-
import '../../chunk-DY5C44UP.js';
|
|
7
|
-
import '../../chunk-IBK5D2Q6.js';
|
|
8
|
-
import '../../chunk-RLGHEV4A.js';
|
|
9
|
-
import '../../chunk-FXFJF4YA.js';
|
|
10
|
-
import '../../chunk-U7N2A7A3.js';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
type ComboboxOption = {
|
|
4
|
-
value: string;
|
|
5
|
-
label: string;
|
|
6
|
-
};
|
|
7
|
-
type ComboboxProps = {
|
|
8
|
-
options: ComboboxOption[];
|
|
9
|
-
value?: string;
|
|
10
|
-
defaultValue?: string;
|
|
11
|
-
onValueChange?: (value: string) => void;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
searchPlaceholder?: string;
|
|
14
|
-
emptyText?: string;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
name?: string;
|
|
17
|
-
id?: string;
|
|
18
|
-
className?: string;
|
|
19
|
-
};
|
|
20
|
-
declare const Combobox: ({ options, value: controlledValue, defaultValue, onValueChange, placeholder, searchPlaceholder, emptyText, disabled, name, id, className, }: ComboboxProps) => react_jsx_runtime.JSX.Element;
|
|
21
|
-
|
|
22
|
-
export { Combobox, type ComboboxOption, type ComboboxProps };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { d as PageHeaderProp } from './layout.prop-JE2TcRyL.js';
|
|
3
|
-
import { f as ToolbarProp, e as ToolbarGroupProp } from './navigation.prop-8DgElO0c.js';
|
|
4
|
-
|
|
5
|
-
declare function PageHeader({ title, description, breadcrumb, actions, linkComponent: LinkComponent, className, }: PageHeaderProp): react_jsx_runtime.JSX.Element;
|
|
6
|
-
|
|
7
|
-
declare function Toolbar({ onClear, hasActiveFilters, className, children }: ToolbarProp): react_jsx_runtime.JSX.Element;
|
|
8
|
-
declare function ToolbarGroup({ label, className, children }: ToolbarGroupProp): react_jsx_runtime.JSX.Element;
|
|
9
|
-
/** @deprecated Use Toolbar. */
|
|
10
|
-
declare const FilterBar: typeof Toolbar;
|
|
11
|
-
/** @deprecated Use ToolbarGroup. */
|
|
12
|
-
declare const FilterGroup: typeof ToolbarGroup;
|
|
13
|
-
|
|
14
|
-
export { FilterBar as F, PageHeader as P, Toolbar as T, FilterGroup as a, ToolbarGroup as b };
|
|
File without changes
|