@lglab/compose-ui 0.25.0 → 0.27.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/autocomplete.d.ts +96 -0
- package/dist/autocomplete.js +117 -0
- package/dist/combobox.d.ts +182 -0
- package/dist/combobox.js +252 -0
- package/dist/dialog.js +22 -22
- package/dist/field.js +7 -7
- package/dist/fieldset.js +1 -1
- package/dist/{form-variants-D4ge0qav.js → form-variants-LJ8gIbk0.js} +2 -2
- package/dist/index.d.ts +467 -0
- package/dist/index.js +305 -233
- package/dist/input.js +1 -1
- package/dist/number-field.d.ts +54 -0
- package/dist/number-field.js +70 -0
- package/dist/radio-group.d.ts +12 -0
- package/dist/radio-group.js +15 -0
- package/dist/radio.d.ts +19 -0
- package/dist/radio.js +35 -0
- package/dist/select.d.ts +133 -0
- package/dist/select.js +169 -0
- package/dist/textarea.js +1 -1
- package/dist/toolbar.d.ts +56 -0
- package/dist/toolbar.js +69 -0
- package/package.json +34 -6
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Autocomplete } from '@base-ui/react/autocomplete';
|
|
2
|
+
import { AutocompleteRootProps } from '@base-ui/react/autocomplete';
|
|
3
|
+
import { JSX } from 'react/jsx-runtime';
|
|
4
|
+
import * as React_2 from 'react';
|
|
5
|
+
|
|
6
|
+
export { Autocomplete }
|
|
7
|
+
|
|
8
|
+
export declare const AutocompleteCollection: {
|
|
9
|
+
(props: AutocompleteCollectionProps): JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export declare type AutocompleteCollectionProps = React_2.ComponentProps<typeof Autocomplete.Collection>;
|
|
14
|
+
|
|
15
|
+
export declare const AutocompleteEmpty: {
|
|
16
|
+
({ className, ...props }: AutocompleteEmptyProps): JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export declare type AutocompleteEmptyProps = React_2.ComponentProps<typeof Autocomplete.Empty>;
|
|
21
|
+
|
|
22
|
+
export declare const AutocompleteGroup: {
|
|
23
|
+
({ className, ...props }: AutocompleteGroupProps): JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export declare const AutocompleteGroupLabel: {
|
|
28
|
+
({ className, ...props }: AutocompleteGroupLabelProps): JSX.Element;
|
|
29
|
+
displayName: string;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export declare type AutocompleteGroupLabelProps = React_2.ComponentProps<typeof Autocomplete.GroupLabel>;
|
|
33
|
+
|
|
34
|
+
export declare type AutocompleteGroupProps = React_2.ComponentProps<typeof Autocomplete.Group>;
|
|
35
|
+
|
|
36
|
+
export declare const AutocompleteInput: {
|
|
37
|
+
({ className, ...props }: AutocompleteInputProps): JSX.Element;
|
|
38
|
+
displayName: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export declare type AutocompleteInputProps = React_2.ComponentProps<typeof Autocomplete.Input>;
|
|
42
|
+
|
|
43
|
+
export declare const AutocompleteItem: {
|
|
44
|
+
({ className, ...props }: AutocompleteItemProps): JSX.Element;
|
|
45
|
+
displayName: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export declare type AutocompleteItemProps = React_2.ComponentProps<typeof Autocomplete.Item>;
|
|
49
|
+
|
|
50
|
+
export declare const AutocompleteList: {
|
|
51
|
+
({ className, ...props }: AutocompleteListProps): JSX.Element;
|
|
52
|
+
displayName: string;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export declare type AutocompleteListProps = React_2.ComponentProps<typeof Autocomplete.List>;
|
|
56
|
+
|
|
57
|
+
export declare const AutocompletePopup: {
|
|
58
|
+
({ className, ...props }: AutocompletePopupProps): JSX.Element;
|
|
59
|
+
displayName: string;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export declare type AutocompletePopupProps = React_2.ComponentProps<typeof Autocomplete.Popup>;
|
|
63
|
+
|
|
64
|
+
export declare const AutocompletePortal: {
|
|
65
|
+
(props: AutocompletePortalProps): JSX.Element;
|
|
66
|
+
displayName: string;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export declare type AutocompletePortalProps = React_2.ComponentProps<typeof Autocomplete.Portal>;
|
|
70
|
+
|
|
71
|
+
export declare const AutocompletePositioner: {
|
|
72
|
+
({ className, ...props }: AutocompletePositionerProps): JSX.Element;
|
|
73
|
+
displayName: string;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export declare type AutocompletePositionerProps = React_2.ComponentProps<typeof Autocomplete.Positioner>;
|
|
77
|
+
|
|
78
|
+
export declare const AutocompleteRoot: typeof Autocomplete.Root;
|
|
79
|
+
|
|
80
|
+
export { AutocompleteRootProps }
|
|
81
|
+
|
|
82
|
+
export declare const AutocompleteSeparator: {
|
|
83
|
+
({ className, ...props }: AutocompleteSeparatorProps): JSX.Element;
|
|
84
|
+
displayName: string;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export declare type AutocompleteSeparatorProps = React_2.ComponentProps<typeof Autocomplete.Separator>;
|
|
88
|
+
|
|
89
|
+
export declare const AutocompleteStatus: {
|
|
90
|
+
({ className, ...props }: AutocompleteStatusProps): JSX.Element;
|
|
91
|
+
displayName: string;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export declare type AutocompleteStatusProps = React_2.ComponentProps<typeof Autocomplete.Status>;
|
|
95
|
+
|
|
96
|
+
export { }
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { Autocomplete as o } from "@base-ui/react/autocomplete";
|
|
4
|
+
import { Autocomplete as G } from "@base-ui/react/autocomplete";
|
|
5
|
+
import { i as l } from "./form-variants-LJ8gIbk0.js";
|
|
6
|
+
import { c as r } from "./utils-B6yFEsav.js";
|
|
7
|
+
const P = o.Root, p = ({ className: t, ...e }) => /* @__PURE__ */ a(o.Input, { className: r(l, t), ...e });
|
|
8
|
+
p.displayName = "AutocompleteInput";
|
|
9
|
+
const m = (t) => /* @__PURE__ */ a(o.Portal, { ...t });
|
|
10
|
+
m.displayName = "AutocompletePortal";
|
|
11
|
+
const s = ({ className: t, ...e }) => /* @__PURE__ */ a(
|
|
12
|
+
o.Positioner,
|
|
13
|
+
{
|
|
14
|
+
className: r("z-50 outline-none", t),
|
|
15
|
+
sideOffset: 4,
|
|
16
|
+
...e
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
s.displayName = "AutocompletePositioner";
|
|
20
|
+
const n = ({ className: t, ...e }) => /* @__PURE__ */ a(
|
|
21
|
+
o.Popup,
|
|
22
|
+
{
|
|
23
|
+
className: r(
|
|
24
|
+
"group flex flex-col min-w-(--anchor-width) max-h-[min(23rem,var(--available-height))] max-w-(--available-width) origin-(--transform-origin) rounded-md bg-background text-foreground shadow-lg shadow-gray-200 border border-border transition-[transform,scale,opacity] duration-100",
|
|
25
|
+
"data-ending-style:scale-95 data-ending-style:opacity-0",
|
|
26
|
+
"data-starting-style:scale-95 data-starting-style:opacity-0",
|
|
27
|
+
"dark:shadow-none",
|
|
28
|
+
t
|
|
29
|
+
),
|
|
30
|
+
...e
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
n.displayName = "AutocompletePopup";
|
|
34
|
+
const c = ({ className: t, ...e }) => /* @__PURE__ */ a(
|
|
35
|
+
o.Empty,
|
|
36
|
+
{
|
|
37
|
+
className: r(
|
|
38
|
+
"shrink-0 p-4 text-sm leading-4 text-muted-foreground empty:m-0 empty:p-0",
|
|
39
|
+
t
|
|
40
|
+
),
|
|
41
|
+
...e
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
c.displayName = "AutocompleteEmpty";
|
|
45
|
+
const u = ({ className: t, ...e }) => /* @__PURE__ */ a(
|
|
46
|
+
o.List,
|
|
47
|
+
{
|
|
48
|
+
className: r(
|
|
49
|
+
"outline-0 overflow-y-auto scroll-py-2 overscroll-contain flex-1 min-h-0 data-empty:p-0",
|
|
50
|
+
t
|
|
51
|
+
),
|
|
52
|
+
...e
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
u.displayName = "AutocompleteList";
|
|
56
|
+
const i = ({ className: t, ...e }) => /* @__PURE__ */ a(
|
|
57
|
+
o.Item,
|
|
58
|
+
{
|
|
59
|
+
className: r(
|
|
60
|
+
"flex items-center gap-2 py-2 px-4 text-sm leading-4 outline-none select-none",
|
|
61
|
+
"data-highlighted:bg-accent data-highlighted:text-accent-foreground",
|
|
62
|
+
t
|
|
63
|
+
),
|
|
64
|
+
...e
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
i.displayName = "AutocompleteItem";
|
|
68
|
+
const d = ({ className: t, ...e }) => /* @__PURE__ */ a(
|
|
69
|
+
o.Status,
|
|
70
|
+
{
|
|
71
|
+
className: r(
|
|
72
|
+
"flex items-center gap-2 py-2 px-4 text-sm text-muted-foreground empty:hidden",
|
|
73
|
+
t
|
|
74
|
+
),
|
|
75
|
+
...e
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
d.displayName = "AutocompleteStatus";
|
|
79
|
+
const y = ({ className: t, ...e }) => /* @__PURE__ */ a(o.Group, { className: t, ...e });
|
|
80
|
+
y.displayName = "AutocompleteGroup";
|
|
81
|
+
const g = ({ className: t, ...e }) => /* @__PURE__ */ a(
|
|
82
|
+
o.GroupLabel,
|
|
83
|
+
{
|
|
84
|
+
className: r(
|
|
85
|
+
"px-4 py-1.5 text-sm font-semibold sticky top-0 z-1 bg-background",
|
|
86
|
+
t
|
|
87
|
+
),
|
|
88
|
+
...e
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
g.displayName = "AutocompleteGroupLabel";
|
|
92
|
+
const A = (t) => /* @__PURE__ */ a(o.Collection, { ...t });
|
|
93
|
+
A.displayName = "AutocompleteCollection";
|
|
94
|
+
const x = ({ className: t, ...e }) => /* @__PURE__ */ a(
|
|
95
|
+
o.Separator,
|
|
96
|
+
{
|
|
97
|
+
className: r("my-1 border-t border-border", t),
|
|
98
|
+
...e
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
x.displayName = "AutocompleteSeparator";
|
|
102
|
+
export {
|
|
103
|
+
G as Autocomplete,
|
|
104
|
+
A as AutocompleteCollection,
|
|
105
|
+
c as AutocompleteEmpty,
|
|
106
|
+
y as AutocompleteGroup,
|
|
107
|
+
g as AutocompleteGroupLabel,
|
|
108
|
+
p as AutocompleteInput,
|
|
109
|
+
i as AutocompleteItem,
|
|
110
|
+
u as AutocompleteList,
|
|
111
|
+
n as AutocompletePopup,
|
|
112
|
+
m as AutocompletePortal,
|
|
113
|
+
s as AutocompletePositioner,
|
|
114
|
+
P as AutocompleteRoot,
|
|
115
|
+
x as AutocompleteSeparator,
|
|
116
|
+
d as AutocompleteStatus
|
|
117
|
+
};
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { Combobox } from '@base-ui/react/combobox';
|
|
2
|
+
import { ComboboxChipsProps as ComboboxChipsProps_2 } from '@base-ui/react';
|
|
3
|
+
import { ComboboxRootProps as ComboboxRootProps_2 } from '@base-ui/react/combobox';
|
|
4
|
+
import { JSX } from 'react/jsx-runtime';
|
|
5
|
+
import * as React_2 from 'react';
|
|
6
|
+
|
|
7
|
+
export { Combobox }
|
|
8
|
+
|
|
9
|
+
export declare const ComboboxArrow: {
|
|
10
|
+
({ className, ...props }: ComboboxArrowProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export declare type ComboboxArrowProps = React_2.ComponentProps<typeof Combobox.Arrow>;
|
|
15
|
+
|
|
16
|
+
export declare const ComboboxBackdrop: {
|
|
17
|
+
({ className, ...props }: ComboboxBackdropProps): JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export declare type ComboboxBackdropProps = React_2.ComponentProps<typeof Combobox.Backdrop>;
|
|
22
|
+
|
|
23
|
+
export declare const ComboboxChip: {
|
|
24
|
+
({ className, ...props }: ComboboxChipProps): JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export declare type ComboboxChipProps = React_2.ComponentProps<typeof Combobox.Chip>;
|
|
29
|
+
|
|
30
|
+
export declare const ComboboxChipRemove: {
|
|
31
|
+
({ className, ...props }: ComboboxChipRemoveProps): JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export declare type ComboboxChipRemoveProps = React_2.ComponentProps<typeof Combobox.ChipRemove>;
|
|
36
|
+
|
|
37
|
+
export declare const ComboboxChips: React_2.ForwardRefExoticComponent<Omit<Omit<ComboboxChipsProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
|
|
39
|
+
export declare type ComboboxChipsProps = React_2.ComponentProps<typeof Combobox.Chips>;
|
|
40
|
+
|
|
41
|
+
export declare const ComboboxClear: {
|
|
42
|
+
({ className, ...props }: ComboboxClearProps): JSX.Element;
|
|
43
|
+
displayName: string;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export declare type ComboboxClearProps = React_2.ComponentProps<typeof Combobox.Clear>;
|
|
47
|
+
|
|
48
|
+
export declare const ComboboxCollection: {
|
|
49
|
+
(props: ComboboxCollectionProps): JSX.Element;
|
|
50
|
+
displayName: string;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export declare type ComboboxCollectionProps = React_2.ComponentProps<typeof Combobox.Collection>;
|
|
54
|
+
|
|
55
|
+
export declare const ComboboxControl: {
|
|
56
|
+
({ className, ...props }: ComboboxControlProps): JSX.Element;
|
|
57
|
+
displayName: string;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export declare type ComboboxControlProps = React_2.ComponentProps<'div'>;
|
|
61
|
+
|
|
62
|
+
export declare const ComboboxEmpty: {
|
|
63
|
+
({ className, ...props }: ComboboxEmptyProps): JSX.Element;
|
|
64
|
+
displayName: string;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export declare type ComboboxEmptyProps = React_2.ComponentProps<typeof Combobox.Empty>;
|
|
68
|
+
|
|
69
|
+
export declare const ComboboxGroup: {
|
|
70
|
+
({ className, ...props }: ComboboxGroupProps): JSX.Element;
|
|
71
|
+
displayName: string;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export declare const ComboboxGroupLabel: {
|
|
75
|
+
({ className, ...props }: ComboboxGroupLabelProps): JSX.Element;
|
|
76
|
+
displayName: string;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export declare type ComboboxGroupLabelProps = React_2.ComponentProps<typeof Combobox.GroupLabel>;
|
|
80
|
+
|
|
81
|
+
export declare type ComboboxGroupProps = React_2.ComponentProps<typeof Combobox.Group>;
|
|
82
|
+
|
|
83
|
+
export declare const ComboboxIcon: {
|
|
84
|
+
({ className, ...props }: ComboboxIconProps): JSX.Element;
|
|
85
|
+
displayName: string;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export declare type ComboboxIconProps = React_2.ComponentProps<typeof Combobox.Icon>;
|
|
89
|
+
|
|
90
|
+
export declare const ComboboxInput: {
|
|
91
|
+
({ className, ...props }: ComboboxInputProps): JSX.Element;
|
|
92
|
+
displayName: string;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export declare type ComboboxInputProps = React_2.ComponentProps<typeof Combobox.Input>;
|
|
96
|
+
|
|
97
|
+
export declare const ComboboxItem: {
|
|
98
|
+
({ className, ...props }: ComboboxItemProps): JSX.Element;
|
|
99
|
+
displayName: string;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export declare const ComboboxItemIndicator: {
|
|
103
|
+
({ className, ...props }: ComboboxItemIndicatorProps): JSX.Element;
|
|
104
|
+
displayName: string;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export declare type ComboboxItemIndicatorProps = React_2.ComponentProps<typeof Combobox.ItemIndicator>;
|
|
108
|
+
|
|
109
|
+
export declare type ComboboxItemProps = React_2.ComponentProps<typeof Combobox.Item>;
|
|
110
|
+
|
|
111
|
+
export declare const ComboboxItemText: {
|
|
112
|
+
({ className, ...props }: ComboboxItemTextProps): JSX.Element;
|
|
113
|
+
displayName: string;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
export declare type ComboboxItemTextProps = React_2.ComponentProps<'span'>;
|
|
117
|
+
|
|
118
|
+
export declare const ComboboxList: {
|
|
119
|
+
({ className, ...props }: ComboboxListProps): JSX.Element;
|
|
120
|
+
displayName: string;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
export declare type ComboboxListProps = React_2.ComponentProps<typeof Combobox.List>;
|
|
124
|
+
|
|
125
|
+
export declare const ComboboxPopup: {
|
|
126
|
+
({ className, ...props }: ComboboxPopupProps): JSX.Element;
|
|
127
|
+
displayName: string;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
export declare type ComboboxPopupProps = React_2.ComponentProps<typeof Combobox.Popup>;
|
|
131
|
+
|
|
132
|
+
export declare const ComboboxPortal: {
|
|
133
|
+
(props: ComboboxPortalProps): JSX.Element;
|
|
134
|
+
displayName: string;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
export declare type ComboboxPortalProps = React_2.ComponentProps<typeof Combobox.Portal>;
|
|
138
|
+
|
|
139
|
+
export declare const ComboboxPositioner: {
|
|
140
|
+
({ className, ...props }: ComboboxPositionerProps): JSX.Element;
|
|
141
|
+
displayName: string;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
export declare type ComboboxPositionerProps = React_2.ComponentProps<typeof Combobox.Positioner>;
|
|
145
|
+
|
|
146
|
+
export declare function ComboboxRoot<Value, Multiple extends boolean | undefined = false>(props: ComboboxRootProps_2<Value, Multiple>): JSX.Element;
|
|
147
|
+
|
|
148
|
+
export declare namespace ComboboxRoot {
|
|
149
|
+
var displayName: string;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export declare type ComboboxRootProps<Value, Multiple extends boolean | undefined = false> = ComboboxRootProps_2<Value, Multiple>;
|
|
153
|
+
|
|
154
|
+
export declare const ComboboxSeparator: {
|
|
155
|
+
({ className, ...props }: ComboboxSeparatorProps): JSX.Element;
|
|
156
|
+
displayName: string;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
export declare type ComboboxSeparatorProps = React_2.ComponentProps<typeof Combobox.Separator>;
|
|
160
|
+
|
|
161
|
+
export declare const ComboboxStatus: {
|
|
162
|
+
({ className, ...props }: ComboboxStatusProps): JSX.Element;
|
|
163
|
+
displayName: string;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
export declare type ComboboxStatusProps = React_2.ComponentProps<typeof Combobox.Status>;
|
|
167
|
+
|
|
168
|
+
export declare const ComboboxTrigger: {
|
|
169
|
+
({ className, ...props }: ComboboxTriggerProps): JSX.Element;
|
|
170
|
+
displayName: string;
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export declare type ComboboxTriggerProps = React_2.ComponentProps<typeof Combobox.Trigger>;
|
|
174
|
+
|
|
175
|
+
export declare const ComboboxValue: {
|
|
176
|
+
(props: ComboboxValueProps): JSX.Element;
|
|
177
|
+
displayName: string;
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
export declare type ComboboxValueProps = React_2.ComponentProps<typeof Combobox.Value>;
|
|
181
|
+
|
|
182
|
+
export { }
|
package/dist/combobox.js
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { Combobox as r } from "@base-ui/react/combobox";
|
|
4
|
+
import { Combobox as q } from "@base-ui/react/combobox";
|
|
5
|
+
import * as m from "react";
|
|
6
|
+
import { i as s } from "./form-variants-LJ8gIbk0.js";
|
|
7
|
+
import { c as a } from "./utils-B6yFEsav.js";
|
|
8
|
+
function i(o) {
|
|
9
|
+
return /* @__PURE__ */ e(r.Root, { ...o });
|
|
10
|
+
}
|
|
11
|
+
i.displayName = "ComboboxRoot";
|
|
12
|
+
const b = (o) => /* @__PURE__ */ e(r.Value, { ...o });
|
|
13
|
+
b.displayName = "ComboboxValue";
|
|
14
|
+
const p = ({ className: o, ...t }) => /* @__PURE__ */ e(r.Icon, { className: a("flex", o), ...t });
|
|
15
|
+
p.displayName = "ComboboxIcon";
|
|
16
|
+
const d = ({ className: o, ...t }) => /* @__PURE__ */ e(
|
|
17
|
+
r.Input,
|
|
18
|
+
{
|
|
19
|
+
className: a(
|
|
20
|
+
s,
|
|
21
|
+
"shrink-0",
|
|
22
|
+
"group-[&]/control:w-auto group-[&]/control:flex-1 group-[&]/control:border-0 group-[&]/control:bg-transparent",
|
|
23
|
+
"group-[&]/chips:w-auto group-[&]/chips:min-w-12 group-[&]/chips:flex-1 group-[&]/chips:border-0 group-[&]/chips:bg-transparent group-[&]/chips:h-7",
|
|
24
|
+
o
|
|
25
|
+
),
|
|
26
|
+
...t
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
d.displayName = "ComboboxInput";
|
|
30
|
+
const l = ({ className: o, ...t }) => /* @__PURE__ */ e(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
className: a(
|
|
34
|
+
s,
|
|
35
|
+
"group/control flex items-center p-0 pr-1",
|
|
36
|
+
o
|
|
37
|
+
),
|
|
38
|
+
...t
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
l.displayName = "ComboboxControl";
|
|
42
|
+
const c = ({ className: o, ...t }) => /* @__PURE__ */ e(
|
|
43
|
+
r.Clear,
|
|
44
|
+
{
|
|
45
|
+
className: a(
|
|
46
|
+
"flex h-9 w-6 items-center justify-center rounded bg-transparent p-0 text-muted-foreground hover:text-foreground",
|
|
47
|
+
o
|
|
48
|
+
),
|
|
49
|
+
...t
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
c.displayName = "ComboboxClear";
|
|
53
|
+
const x = ({ className: o, ...t }) => /* @__PURE__ */ e(
|
|
54
|
+
r.Trigger,
|
|
55
|
+
{
|
|
56
|
+
className: a(
|
|
57
|
+
"flex h-9 w-fit min-w-6 items-center justify-center rounded bg-transparent p-0 text-muted-foreground hover:text-foreground",
|
|
58
|
+
o
|
|
59
|
+
),
|
|
60
|
+
...t
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
x.displayName = "ComboboxTrigger";
|
|
64
|
+
const u = ({ className: o, ...t }) => /* @__PURE__ */ e(
|
|
65
|
+
r.Backdrop,
|
|
66
|
+
{
|
|
67
|
+
className: a(
|
|
68
|
+
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
69
|
+
"transition-opacity duration-200",
|
|
70
|
+
"data-starting-style:opacity-0 data-ending-style:opacity-0",
|
|
71
|
+
o
|
|
72
|
+
),
|
|
73
|
+
...t
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
u.displayName = "ComboboxBackdrop";
|
|
77
|
+
const g = (o) => /* @__PURE__ */ e(r.Portal, { ...o });
|
|
78
|
+
g.displayName = "ComboboxPortal";
|
|
79
|
+
const C = ({ className: o, ...t }) => /* @__PURE__ */ e(
|
|
80
|
+
r.Positioner,
|
|
81
|
+
{
|
|
82
|
+
className: a("z-50 outline-none", o),
|
|
83
|
+
sideOffset: 4,
|
|
84
|
+
...t
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
C.displayName = "ComboboxPositioner";
|
|
88
|
+
const y = ({ className: o, ...t }) => /* @__PURE__ */ e(
|
|
89
|
+
r.Popup,
|
|
90
|
+
{
|
|
91
|
+
className: a(
|
|
92
|
+
"group flex flex-col min-w-(--anchor-width) max-h-[min(23rem,var(--available-height))] max-w-(--available-width) origin-(--transform-origin) rounded-md bg-background text-foreground shadow-lg shadow-gray-200 border border-border transition-[transform,scale,opacity] duration-100",
|
|
93
|
+
"data-ending-style:scale-95 data-ending-style:opacity-0",
|
|
94
|
+
"data-starting-style:scale-95 data-starting-style:opacity-0",
|
|
95
|
+
"dark:shadow-none",
|
|
96
|
+
o
|
|
97
|
+
),
|
|
98
|
+
...t
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
y.displayName = "ComboboxPopup";
|
|
102
|
+
const f = ({ className: o, ...t }) => /* @__PURE__ */ e(
|
|
103
|
+
r.List,
|
|
104
|
+
{
|
|
105
|
+
className: a(
|
|
106
|
+
"outline-0 overflow-y-auto scroll-py-2 overscroll-contain flex-1 min-h-0 data-empty:p-0",
|
|
107
|
+
o
|
|
108
|
+
),
|
|
109
|
+
...t
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
f.displayName = "ComboboxList";
|
|
113
|
+
const h = ({ className: o, ...t }) => /* @__PURE__ */ e(
|
|
114
|
+
r.Empty,
|
|
115
|
+
{
|
|
116
|
+
className: a(
|
|
117
|
+
"shrink-0 p-4 text-sm leading-4 text-muted-foreground empty:m-0 empty:p-0",
|
|
118
|
+
o
|
|
119
|
+
),
|
|
120
|
+
...t
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
h.displayName = "ComboboxEmpty";
|
|
124
|
+
const N = ({ className: o, ...t }) => /* @__PURE__ */ e(
|
|
125
|
+
r.Item,
|
|
126
|
+
{
|
|
127
|
+
className: a(
|
|
128
|
+
"flex items-center justify-between gap-2 py-2 px-4 text-sm leading-4 outline-none select-none",
|
|
129
|
+
"data-selected:bg-accent data-selected:text-accent-foreground",
|
|
130
|
+
"data-highlighted:bg-accent data-highlighted:text-accent-foreground",
|
|
131
|
+
o
|
|
132
|
+
),
|
|
133
|
+
...t
|
|
134
|
+
}
|
|
135
|
+
);
|
|
136
|
+
N.displayName = "ComboboxItem";
|
|
137
|
+
const w = ({ className: o, ...t }) => /* @__PURE__ */ e("span", { className: o, ...t });
|
|
138
|
+
w.displayName = "ComboboxItemText";
|
|
139
|
+
const I = ({ className: o, ...t }) => /* @__PURE__ */ e(r.ItemIndicator, { className: o, ...t });
|
|
140
|
+
I.displayName = "ComboboxItemIndicator";
|
|
141
|
+
const v = ({ className: o, ...t }) => /* @__PURE__ */ e(r.Group, { className: o, ...t });
|
|
142
|
+
v.displayName = "ComboboxGroup";
|
|
143
|
+
const k = ({ className: o, ...t }) => /* @__PURE__ */ e(
|
|
144
|
+
r.GroupLabel,
|
|
145
|
+
{
|
|
146
|
+
className: a(
|
|
147
|
+
"px-4 py-1.5 text-sm font-semibold sticky top-0 z-1 bg-background",
|
|
148
|
+
o
|
|
149
|
+
),
|
|
150
|
+
...t
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
k.displayName = "ComboboxGroupLabel";
|
|
154
|
+
const P = (o) => /* @__PURE__ */ e(r.Collection, { ...o });
|
|
155
|
+
P.displayName = "ComboboxCollection";
|
|
156
|
+
const R = ({ className: o, ...t }) => /* @__PURE__ */ e(
|
|
157
|
+
r.Separator,
|
|
158
|
+
{
|
|
159
|
+
className: a("my-1 border-t border-border", o),
|
|
160
|
+
...t
|
|
161
|
+
}
|
|
162
|
+
);
|
|
163
|
+
R.displayName = "ComboboxSeparator";
|
|
164
|
+
const S = ({ className: o, ...t }) => /* @__PURE__ */ e(
|
|
165
|
+
r.Status,
|
|
166
|
+
{
|
|
167
|
+
className: a(
|
|
168
|
+
"flex items-center gap-2 py-1 px-4 text-sm text-muted-foreground empty:hidden",
|
|
169
|
+
o
|
|
170
|
+
),
|
|
171
|
+
...t
|
|
172
|
+
}
|
|
173
|
+
);
|
|
174
|
+
S.displayName = "ComboboxStatus";
|
|
175
|
+
const G = m.forwardRef(
|
|
176
|
+
({ className: o, ...t }, n) => /* @__PURE__ */ e(
|
|
177
|
+
r.Chips,
|
|
178
|
+
{
|
|
179
|
+
ref: n,
|
|
180
|
+
className: a(
|
|
181
|
+
s,
|
|
182
|
+
"group/chips flex flex-wrap items-center gap-1 px-1 py-1 h-auto",
|
|
183
|
+
o
|
|
184
|
+
),
|
|
185
|
+
...t
|
|
186
|
+
}
|
|
187
|
+
)
|
|
188
|
+
);
|
|
189
|
+
G.displayName = "ComboboxChips";
|
|
190
|
+
const L = ({ className: o, ...t }) => /* @__PURE__ */ e(
|
|
191
|
+
r.Chip,
|
|
192
|
+
{
|
|
193
|
+
className: a(
|
|
194
|
+
"flex items-center gap-1 rounded-md bg-muted px-1.5 py-0.5 text-xs text-foreground font-medium",
|
|
195
|
+
"data-highlighted:bg-primary data-highlighted:text-primary-foreground",
|
|
196
|
+
"focus-within:bg-primary focus-within:text-primary-foreground",
|
|
197
|
+
o
|
|
198
|
+
),
|
|
199
|
+
...t
|
|
200
|
+
}
|
|
201
|
+
);
|
|
202
|
+
L.displayName = "ComboboxChip";
|
|
203
|
+
const T = ({ className: o, ...t }) => /* @__PURE__ */ e(
|
|
204
|
+
r.ChipRemove,
|
|
205
|
+
{
|
|
206
|
+
className: a(
|
|
207
|
+
"rounded-md p-0.5 text-inherit hover:bg-muted-foreground/20",
|
|
208
|
+
o
|
|
209
|
+
),
|
|
210
|
+
...t
|
|
211
|
+
}
|
|
212
|
+
);
|
|
213
|
+
T.displayName = "ComboboxChipRemove";
|
|
214
|
+
const j = ({ className: o, ...t }) => /* @__PURE__ */ e(
|
|
215
|
+
r.Arrow,
|
|
216
|
+
{
|
|
217
|
+
className: a(
|
|
218
|
+
"flex data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180",
|
|
219
|
+
o
|
|
220
|
+
),
|
|
221
|
+
...t
|
|
222
|
+
}
|
|
223
|
+
);
|
|
224
|
+
j.displayName = "ComboboxArrow";
|
|
225
|
+
export {
|
|
226
|
+
q as Combobox,
|
|
227
|
+
j as ComboboxArrow,
|
|
228
|
+
u as ComboboxBackdrop,
|
|
229
|
+
L as ComboboxChip,
|
|
230
|
+
T as ComboboxChipRemove,
|
|
231
|
+
G as ComboboxChips,
|
|
232
|
+
c as ComboboxClear,
|
|
233
|
+
P as ComboboxCollection,
|
|
234
|
+
l as ComboboxControl,
|
|
235
|
+
h as ComboboxEmpty,
|
|
236
|
+
v as ComboboxGroup,
|
|
237
|
+
k as ComboboxGroupLabel,
|
|
238
|
+
p as ComboboxIcon,
|
|
239
|
+
d as ComboboxInput,
|
|
240
|
+
N as ComboboxItem,
|
|
241
|
+
I as ComboboxItemIndicator,
|
|
242
|
+
w as ComboboxItemText,
|
|
243
|
+
f as ComboboxList,
|
|
244
|
+
y as ComboboxPopup,
|
|
245
|
+
g as ComboboxPortal,
|
|
246
|
+
C as ComboboxPositioner,
|
|
247
|
+
i as ComboboxRoot,
|
|
248
|
+
R as ComboboxSeparator,
|
|
249
|
+
S as ComboboxStatus,
|
|
250
|
+
x as ComboboxTrigger,
|
|
251
|
+
b as ComboboxValue
|
|
252
|
+
};
|