@nattstack/ui 0.0.93 → 0.0.95
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/components/combobox/combobox-content.css +60 -0
- package/dist/components/combobox/combobox-content.d.ts +11 -0
- package/dist/components/combobox/combobox-content.js +38 -0
- package/dist/components/combobox/combobox-content.module.js +8 -0
- package/dist/components/combobox/combobox-empty.css +9 -0
- package/dist/components/combobox/combobox-empty.d.ts +10 -0
- package/dist/components/combobox/combobox-empty.js +17 -0
- package/dist/components/combobox/combobox-empty.module.js +5 -0
- package/dist/components/combobox/combobox-group-label.css +8 -0
- package/dist/components/combobox/combobox-group-label.d.ts +10 -0
- package/dist/components/combobox/combobox-group-label.js +17 -0
- package/dist/components/combobox/combobox-group-label.module.js +5 -0
- package/dist/components/combobox/combobox-group.css +7 -0
- package/dist/components/combobox/combobox-group.d.ts +10 -0
- package/dist/components/combobox/combobox-group.js +17 -0
- package/dist/components/combobox/combobox-group.module.js +5 -0
- package/dist/components/combobox/combobox-input.css +121 -0
- package/dist/components/combobox/combobox-input.d.ts +17 -0
- package/dist/components/combobox/combobox-input.js +58 -0
- package/dist/components/combobox/combobox-input.module.js +16 -0
- package/dist/components/combobox/combobox-item.css +43 -0
- package/dist/components/combobox/combobox-item.d.ts +11 -0
- package/dist/components/combobox/combobox-item.js +42 -0
- package/dist/components/combobox/combobox-item.module.js +9 -0
- package/dist/components/combobox/combobox-list.css +7 -0
- package/dist/components/combobox/combobox-list.d.ts +10 -0
- package/dist/components/combobox/combobox-list.js +17 -0
- package/dist/components/combobox/combobox-list.module.js +5 -0
- package/dist/components/combobox/combobox-separator.css +8 -0
- package/dist/components/combobox/combobox-separator.d.ts +10 -0
- package/dist/components/combobox/combobox-separator.js +17 -0
- package/dist/components/combobox/combobox-separator.module.js +5 -0
- package/dist/components/combobox/combobox.d.ts +7 -0
- package/dist/components/combobox/combobox.js +12 -0
- package/dist/components/index.d.ts +10 -1
- package/dist/components/index.js +10 -1
- package/dist/components/select/select-content.css +2 -1
- package/dist/components/select/select-group.css +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.combobox-content-module_positioner_p8XryW {
|
|
3
|
+
isolation: isolate;
|
|
4
|
+
z-index: 50;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.combobox-content-module_base_p8XryW {
|
|
8
|
+
background-color: var(--color-bg-shell-inner);
|
|
9
|
+
box-shadow: 0 0 0 1px var(--color-border) inset,
|
|
10
|
+
0 .5px 0 oklab(0% none none / .03),
|
|
11
|
+
0 36px 15px -4px oklab(0% none none / .01),
|
|
12
|
+
0 20px 12px -3px oklab(0% none none / .03),
|
|
13
|
+
0 9px 9px -2px oklab(0% none none / .04),
|
|
14
|
+
0 2px 5px -1px oklab(0% none none / .05);
|
|
15
|
+
color: var(--color-text-primary);
|
|
16
|
+
max-height: min(var(--available-height), 480px);
|
|
17
|
+
max-width: var(--available-width);
|
|
18
|
+
min-width: max(var(--anchor-width), 240px);
|
|
19
|
+
outline-color: var(--color-primary-9);
|
|
20
|
+
outline-offset: -2px;
|
|
21
|
+
transform-origin: var(--transform-origin);
|
|
22
|
+
width: var(--anchor-width);
|
|
23
|
+
will-change: opacity, transform;
|
|
24
|
+
border-radius: 12px;
|
|
25
|
+
outline-width: 0;
|
|
26
|
+
outline-style: solid;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
row-gap: 2px;
|
|
29
|
+
padding: 4px;
|
|
30
|
+
transition-property: opacity, transform;
|
|
31
|
+
transition-duration: .15s;
|
|
32
|
+
display: flex;
|
|
33
|
+
overflow: auto;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.combobox-content-module_base_p8XryW:focus-visible {
|
|
37
|
+
outline-width: 2px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.combobox-content-module_base_p8XryW[data-ending-style], .combobox-content-module_base_p8XryW[data-starting-style] {
|
|
41
|
+
opacity: 0;
|
|
42
|
+
transform: scale(.975);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.combobox-content-module_base_p8XryW[data-side="top"][data-ending-style], .combobox-content-module_base_p8XryW[data-side="top"][data-starting-style] {
|
|
46
|
+
transform: scale(.975) translateY(4px);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.combobox-content-module_base_p8XryW[data-side="bottom"][data-ending-style], .combobox-content-module_base_p8XryW[data-side="bottom"][data-starting-style] {
|
|
50
|
+
transform: scale(.975) translateY(-4px);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.combobox-content-module_base_p8XryW[data-side="left"][data-ending-style], .combobox-content-module_base_p8XryW[data-side="left"][data-starting-style], .combobox-content-module_base_p8XryW[data-side="inline-start"][data-ending-style], .combobox-content-module_base_p8XryW[data-side="inline-start"][data-starting-style] {
|
|
54
|
+
transform: scale(.975) translateX(4px);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.combobox-content-module_base_p8XryW[data-side="right"][data-ending-style], .combobox-content-module_base_p8XryW[data-side="right"][data-starting-style], .combobox-content-module_base_p8XryW[data-side="inline-end"][data-ending-style], .combobox-content-module_base_p8XryW[data-side="inline-end"][data-starting-style] {
|
|
58
|
+
transform: scale(.975) translateX(-4px);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Combobox } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/combobox/combobox-content.d.ts
|
|
4
|
+
interface ComboboxContentProps extends Omit<Combobox.Popup.Props, "className">, Pick<Combobox.Positioner.Props, "align" | "alignOffset" | "anchor" | "arrowPadding" | "collisionAvoidance" | "collisionBoundary" | "collisionPadding" | "disableAnchorTracking" | "positionMethod" | "side" | "sideOffset" | "sticky"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
container?: Combobox.Portal.Props["container"];
|
|
7
|
+
}
|
|
8
|
+
declare function ComboboxContent(props: ComboboxContentProps): JSX.Element;
|
|
9
|
+
declare const comboboxContentVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { ComboboxContent, ComboboxContentProps, comboboxContentVariants };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import combobox_content_module_default from "./combobox-content.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Combobox } from "@base-ui/react";
|
|
5
|
+
//#region src/components/combobox/combobox-content.tsx
|
|
6
|
+
function ComboboxContent(props) {
|
|
7
|
+
const { align = "start", alignOffset = void 0, anchor = void 0, arrowPadding = void 0, children, className: customClassName = "", collisionAvoidance = void 0, collisionBoundary = void 0, collisionPadding = void 0, container = void 0, disableAnchorTracking = void 0, positionMethod = void 0, side = "bottom", sideOffset = 6, sticky = void 0, ...rest } = props;
|
|
8
|
+
const combinedClassName = comboboxContentVariants({ className: customClassName });
|
|
9
|
+
return /* @__PURE__ */ jsx(Combobox.Portal, {
|
|
10
|
+
container,
|
|
11
|
+
"data-slot": "combobox-portal",
|
|
12
|
+
children: /* @__PURE__ */ jsx(Combobox.Positioner, {
|
|
13
|
+
align,
|
|
14
|
+
alignOffset,
|
|
15
|
+
anchor,
|
|
16
|
+
arrowPadding,
|
|
17
|
+
className: combobox_content_module_default.positioner,
|
|
18
|
+
collisionAvoidance,
|
|
19
|
+
collisionBoundary,
|
|
20
|
+
collisionPadding,
|
|
21
|
+
"data-slot": "combobox-positioner",
|
|
22
|
+
disableAnchorTracking,
|
|
23
|
+
positionMethod,
|
|
24
|
+
side,
|
|
25
|
+
sideOffset,
|
|
26
|
+
sticky,
|
|
27
|
+
children: /* @__PURE__ */ jsx(Combobox.Popup, {
|
|
28
|
+
className: combinedClassName,
|
|
29
|
+
"data-slot": "combobox-content",
|
|
30
|
+
...rest,
|
|
31
|
+
children
|
|
32
|
+
})
|
|
33
|
+
})
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
const comboboxContentVariants = cva(combobox_content_module_default.base);
|
|
37
|
+
//#endregion
|
|
38
|
+
export { ComboboxContent, comboboxContentVariants };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './combobox-content.css';
|
|
2
|
+
//#region src/components/combobox/combobox-content.module.css
|
|
3
|
+
var combobox_content_module_default = {
|
|
4
|
+
"base": "combobox-content-module_base_p8XryW",
|
|
5
|
+
"positioner": "combobox-content-module_positioner_p8XryW"
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { combobox_content_module_default as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Combobox } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/combobox/combobox-empty.d.ts
|
|
4
|
+
interface ComboboxEmptyProps extends Omit<Combobox.Empty.Props, "className"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
declare function ComboboxEmpty(props: ComboboxEmptyProps): JSX.Element;
|
|
8
|
+
declare const comboboxEmptyVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ComboboxEmpty, ComboboxEmptyProps, comboboxEmptyVariants };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import combobox_empty_module_default from "./combobox-empty.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Combobox } from "@base-ui/react";
|
|
5
|
+
//#region src/components/combobox/combobox-empty.tsx
|
|
6
|
+
function ComboboxEmpty(props) {
|
|
7
|
+
const { className: customClassName = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = comboboxEmptyVariants({ className: customClassName });
|
|
9
|
+
return /* @__PURE__ */ jsx(Combobox.Empty, {
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-slot": "combobox-empty",
|
|
12
|
+
...rest
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
const comboboxEmptyVariants = cva(combobox_empty_module_default.base);
|
|
16
|
+
//#endregion
|
|
17
|
+
export { ComboboxEmpty, comboboxEmptyVariants };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Combobox } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/combobox/combobox-group-label.d.ts
|
|
4
|
+
interface ComboboxGroupLabelProps extends Omit<Combobox.GroupLabel.Props, "className"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
declare function ComboboxGroupLabel(props: ComboboxGroupLabelProps): JSX.Element;
|
|
8
|
+
declare const comboboxGroupLabelVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ComboboxGroupLabel, ComboboxGroupLabelProps, comboboxGroupLabelVariants };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import combobox_group_label_module_default from "./combobox-group-label.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Combobox } from "@base-ui/react";
|
|
5
|
+
//#region src/components/combobox/combobox-group-label.tsx
|
|
6
|
+
function ComboboxGroupLabel(props) {
|
|
7
|
+
const { className: customClassName = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = comboboxGroupLabelVariants({ className: customClassName });
|
|
9
|
+
return /* @__PURE__ */ jsx(Combobox.GroupLabel, {
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-slot": "combobox-group-label",
|
|
12
|
+
...rest
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
const comboboxGroupLabelVariants = cva(combobox_group_label_module_default.base);
|
|
16
|
+
//#endregion
|
|
17
|
+
export { ComboboxGroupLabel, comboboxGroupLabelVariants };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './combobox-group-label.css';
|
|
2
|
+
//#region src/components/combobox/combobox-group-label.module.css
|
|
3
|
+
var combobox_group_label_module_default = { "base": "combobox-group-label-module_base_h2CKxG" };
|
|
4
|
+
//#endregion
|
|
5
|
+
export { combobox_group_label_module_default as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Combobox } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/combobox/combobox-group.d.ts
|
|
4
|
+
interface ComboboxGroupProps extends Omit<Combobox.Group.Props, "className"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
declare function ComboboxGroup(props: ComboboxGroupProps): JSX.Element;
|
|
8
|
+
declare const comboboxGroupVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ComboboxGroup, ComboboxGroupProps, comboboxGroupVariants };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import combobox_group_module_default from "./combobox-group.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Combobox } from "@base-ui/react";
|
|
5
|
+
//#region src/components/combobox/combobox-group.tsx
|
|
6
|
+
function ComboboxGroup(props) {
|
|
7
|
+
const { className: customClassName = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = comboboxGroupVariants({ className: customClassName });
|
|
9
|
+
return /* @__PURE__ */ jsx(Combobox.Group, {
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-slot": "combobox-group",
|
|
12
|
+
...rest
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
const comboboxGroupVariants = cva(combobox_group_module_default.base);
|
|
16
|
+
//#endregion
|
|
17
|
+
export { ComboboxGroup, comboboxGroupVariants };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.combobox-input-module_base_eAQxaq {
|
|
3
|
+
background-color: var(--color-bg-shell-inner);
|
|
4
|
+
box-shadow: inset 0 0 0 1px var(--color-border);
|
|
5
|
+
cursor: text;
|
|
6
|
+
outline-offset: 2px;
|
|
7
|
+
outline: 2px solid #0000;
|
|
8
|
+
flex-shrink: 0;
|
|
9
|
+
align-items: center;
|
|
10
|
+
column-gap: 8px;
|
|
11
|
+
width: stretch;
|
|
12
|
+
padding: 0 16px;
|
|
13
|
+
transition-property: background-color, box-shadow;
|
|
14
|
+
transition-duration: .15s;
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.combobox-input-module_base_eAQxaq[data-disabled], .combobox-input-module_base_eAQxaq:has(.combobox-input-module_input_eAQxaq:disabled) {
|
|
20
|
+
cursor: not-allowed;
|
|
21
|
+
opacity: .5;
|
|
22
|
+
background-color: var(--color-gray-3);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.combobox-input-module_base_eAQxaq:focus-within {
|
|
26
|
+
outline-color: var(--color-primary);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.combobox-input-module_base_eAQxaq:hover:not([data-disabled], :has(.combobox-input-module_input_eAQxaq:disabled)) {
|
|
30
|
+
box-shadow: inset 0 0 0 1px var(--color-gray-6);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.combobox-input-module_base_eAQxaq[data-popup-open] {
|
|
34
|
+
background-color: var(--color-gray-3);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.combobox-input-module_size_32_eAQxaq {
|
|
38
|
+
border-radius: 8px;
|
|
39
|
+
height: 32px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.combobox-input-module_size_36_eAQxaq {
|
|
43
|
+
border-radius: 9px;
|
|
44
|
+
height: 36px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.combobox-input-module_size_40_eAQxaq {
|
|
48
|
+
border-radius: 10px;
|
|
49
|
+
height: 40px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.combobox-input-module_size_44_eAQxaq {
|
|
53
|
+
border-radius: 11px;
|
|
54
|
+
height: 44px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.combobox-input-module_size_48_eAQxaq {
|
|
58
|
+
border-radius: 12px;
|
|
59
|
+
height: 48px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.combobox-input-module_rounded_full_eAQxaq {
|
|
63
|
+
border-radius: 9999px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.combobox-input-module_input_eAQxaq {
|
|
67
|
+
appearance: none;
|
|
68
|
+
color: var(--color-text-primary);
|
|
69
|
+
background-color: #0000;
|
|
70
|
+
border-style: none;
|
|
71
|
+
outline: none;
|
|
72
|
+
flex: 1;
|
|
73
|
+
min-width: 0;
|
|
74
|
+
height: 100%;
|
|
75
|
+
padding: 0;
|
|
76
|
+
font-size: 14px;
|
|
77
|
+
font-weight: 450;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.combobox-input-module_input_eAQxaq::placeholder {
|
|
81
|
+
color: var(--color-gray-9);
|
|
82
|
+
user-select: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.combobox-input-module_input_eAQxaq:disabled {
|
|
86
|
+
cursor: not-allowed;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.combobox-input-module_trigger_eAQxaq {
|
|
90
|
+
color: inherit;
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
background-color: #0000;
|
|
93
|
+
border-style: none;
|
|
94
|
+
flex-shrink: 0;
|
|
95
|
+
justify-content: center;
|
|
96
|
+
align-items: center;
|
|
97
|
+
width: 16px;
|
|
98
|
+
height: 100%;
|
|
99
|
+
margin-left: auto;
|
|
100
|
+
padding: 0;
|
|
101
|
+
display: flex;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.combobox-input-module_trigger_eAQxaq:disabled {
|
|
105
|
+
cursor: not-allowed;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.combobox-input-module_icon_eAQxaq {
|
|
109
|
+
justify-content: center;
|
|
110
|
+
align-items: center;
|
|
111
|
+
width: 16px;
|
|
112
|
+
height: 16px;
|
|
113
|
+
transition-property: rotate;
|
|
114
|
+
transition-duration: .15s;
|
|
115
|
+
display: flex;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.combobox-input-module_base_eAQxaq[data-popup-open] .combobox-input-module_icon_eAQxaq {
|
|
119
|
+
rotate: 180deg;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import { Combobox } from "@base-ui/react";
|
|
3
|
+
import { JSX } from "react";
|
|
4
|
+
//#region src/components/combobox/combobox-input.d.ts
|
|
5
|
+
interface ComboboxInputProps extends Omit<Combobox.Input.Props, "className" | "disabled" | "size"> {
|
|
6
|
+
className?: string;
|
|
7
|
+
isDisabled?: Combobox.Input.Props["disabled"];
|
|
8
|
+
isRounded?: VariantProps<typeof comboboxInputVariants>["isRounded"];
|
|
9
|
+
size?: VariantProps<typeof comboboxInputVariants>["size"];
|
|
10
|
+
}
|
|
11
|
+
declare function ComboboxInput(props: ComboboxInputProps): JSX.Element;
|
|
12
|
+
declare const comboboxInputVariants: (props?: ({
|
|
13
|
+
isRounded?: boolean | null | undefined;
|
|
14
|
+
size?: 32 | 36 | 40 | 44 | 48 | null | undefined;
|
|
15
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { ComboboxInput, ComboboxInputProps, comboboxInputVariants };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import combobox_input_module_default from "./combobox-input.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Combobox } from "@base-ui/react";
|
|
5
|
+
//#region src/components/combobox/combobox-input.tsx
|
|
6
|
+
function ComboboxInput(props) {
|
|
7
|
+
const { className: customClassName = "", isDisabled = false, isRounded = false, size = 40, ...rest } = props;
|
|
8
|
+
const combinedClassName = comboboxInputVariants({
|
|
9
|
+
className: customClassName,
|
|
10
|
+
isRounded,
|
|
11
|
+
size
|
|
12
|
+
});
|
|
13
|
+
return /* @__PURE__ */ jsxs(Combobox.InputGroup, {
|
|
14
|
+
className: combinedClassName,
|
|
15
|
+
"data-slot": "combobox-input-group",
|
|
16
|
+
children: [/* @__PURE__ */ jsx(Combobox.Input, {
|
|
17
|
+
className: combobox_input_module_default.input,
|
|
18
|
+
"data-slot": "combobox-input",
|
|
19
|
+
disabled: isDisabled,
|
|
20
|
+
...rest
|
|
21
|
+
}), /* @__PURE__ */ jsx(Combobox.Trigger, {
|
|
22
|
+
className: combobox_input_module_default.trigger,
|
|
23
|
+
"data-slot": "combobox-trigger",
|
|
24
|
+
disabled: isDisabled,
|
|
25
|
+
tabIndex: -1,
|
|
26
|
+
children: /* @__PURE__ */ jsx(Combobox.Icon, {
|
|
27
|
+
className: combobox_input_module_default.icon,
|
|
28
|
+
"data-slot": "combobox-icon",
|
|
29
|
+
children: /* @__PURE__ */ jsx("svg", {
|
|
30
|
+
height: "14",
|
|
31
|
+
viewBox: "0 0 18 18",
|
|
32
|
+
width: "14",
|
|
33
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
34
|
+
children: /* @__PURE__ */ jsx("polyline", {
|
|
35
|
+
fill: "none",
|
|
36
|
+
points: "15.25 6.5 9 12.75 2.75 6.5",
|
|
37
|
+
stroke: "currentColor",
|
|
38
|
+
strokeLinecap: "round",
|
|
39
|
+
strokeLinejoin: "round",
|
|
40
|
+
strokeWidth: "1.5"
|
|
41
|
+
})
|
|
42
|
+
})
|
|
43
|
+
})
|
|
44
|
+
})]
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
const comboboxInputVariants = cva(combobox_input_module_default.base, { variants: {
|
|
48
|
+
isRounded: { true: combobox_input_module_default.rounded_full },
|
|
49
|
+
size: {
|
|
50
|
+
32: combobox_input_module_default.size_32,
|
|
51
|
+
36: combobox_input_module_default.size_36,
|
|
52
|
+
40: combobox_input_module_default.size_40,
|
|
53
|
+
44: combobox_input_module_default.size_44,
|
|
54
|
+
48: combobox_input_module_default.size_48
|
|
55
|
+
}
|
|
56
|
+
} });
|
|
57
|
+
//#endregion
|
|
58
|
+
export { ComboboxInput, comboboxInputVariants };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import './combobox-input.css';
|
|
2
|
+
//#region src/components/combobox/combobox-input.module.css
|
|
3
|
+
var combobox_input_module_default = {
|
|
4
|
+
"base": "combobox-input-module_base_eAQxaq",
|
|
5
|
+
"icon": "combobox-input-module_icon_eAQxaq",
|
|
6
|
+
"input": "combobox-input-module_input_eAQxaq",
|
|
7
|
+
"rounded_full": "combobox-input-module_rounded_full_eAQxaq",
|
|
8
|
+
"size_32": "combobox-input-module_size_32_eAQxaq",
|
|
9
|
+
"size_36": "combobox-input-module_size_36_eAQxaq",
|
|
10
|
+
"size_40": "combobox-input-module_size_40_eAQxaq",
|
|
11
|
+
"size_44": "combobox-input-module_size_44_eAQxaq",
|
|
12
|
+
"size_48": "combobox-input-module_size_48_eAQxaq",
|
|
13
|
+
"trigger": "combobox-input-module_trigger_eAQxaq"
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { combobox_input_module_default as default };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.combobox-item-module_base_0uz3mW {
|
|
3
|
+
cursor: pointer;
|
|
4
|
+
user-select: none;
|
|
5
|
+
border-radius: 8px;
|
|
6
|
+
outline: none;
|
|
7
|
+
flex-shrink: 0;
|
|
8
|
+
align-items: center;
|
|
9
|
+
column-gap: 8px;
|
|
10
|
+
height: 36px;
|
|
11
|
+
padding: 0 12px;
|
|
12
|
+
display: flex;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.combobox-item-module_base_0uz3mW[data-disabled] {
|
|
16
|
+
cursor: not-allowed;
|
|
17
|
+
opacity: .5;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.combobox-item-module_base_0uz3mW[data-highlighted] {
|
|
21
|
+
background-color: var(--color-gray-3);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.combobox-item-module_label_0uz3mW {
|
|
25
|
+
color: var(--color-text-primary);
|
|
26
|
+
text-overflow: ellipsis;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
font-size: 14px;
|
|
29
|
+
font-weight: 450;
|
|
30
|
+
overflow-x: hidden;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.combobox-item-module_indicator_0uz3mW {
|
|
34
|
+
color: var(--color-primary-9);
|
|
35
|
+
flex-shrink: 0;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
align-items: center;
|
|
38
|
+
width: 16px;
|
|
39
|
+
height: 16px;
|
|
40
|
+
margin-left: auto;
|
|
41
|
+
display: flex;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Combobox } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/combobox/combobox-item.d.ts
|
|
4
|
+
interface ComboboxItemProps extends Omit<Combobox.Item.Props, "className" | "disabled"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
isDisabled?: Combobox.Item.Props["disabled"];
|
|
7
|
+
}
|
|
8
|
+
declare function ComboboxItem(props: ComboboxItemProps): JSX.Element;
|
|
9
|
+
declare const comboboxItemVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { ComboboxItem, ComboboxItemProps, comboboxItemVariants };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import combobox_item_module_default from "./combobox-item.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Combobox } from "@base-ui/react";
|
|
5
|
+
//#region src/components/combobox/combobox-item.tsx
|
|
6
|
+
function ComboboxItem(props) {
|
|
7
|
+
const { children, className: customClassName = "", isDisabled = false, ...rest } = props;
|
|
8
|
+
const combinedClassName = comboboxItemVariants({ className: customClassName });
|
|
9
|
+
return /* @__PURE__ */ jsxs(Combobox.Item, {
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-slot": "combobox-item",
|
|
12
|
+
disabled: isDisabled,
|
|
13
|
+
...rest,
|
|
14
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
15
|
+
className: combobox_item_module_default.label,
|
|
16
|
+
"data-slot": "combobox-item-text",
|
|
17
|
+
children
|
|
18
|
+
}), /* @__PURE__ */ jsx(Combobox.ItemIndicator, {
|
|
19
|
+
className: combobox_item_module_default.indicator,
|
|
20
|
+
"data-slot": "combobox-item-indicator",
|
|
21
|
+
children: /* @__PURE__ */ jsx("svg", {
|
|
22
|
+
height: "14px",
|
|
23
|
+
viewBox: "0 0 18 18",
|
|
24
|
+
width: "14px",
|
|
25
|
+
x: "0px",
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
+
y: "0px",
|
|
28
|
+
children: /* @__PURE__ */ jsx("polyline", {
|
|
29
|
+
fill: "none",
|
|
30
|
+
points: "2.75 9.25 6.75 14.25 15.25 3.75",
|
|
31
|
+
stroke: "currentColor",
|
|
32
|
+
strokeLinecap: "round",
|
|
33
|
+
strokeLinejoin: "round",
|
|
34
|
+
strokeWidth: "1.5"
|
|
35
|
+
})
|
|
36
|
+
})
|
|
37
|
+
})]
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
const comboboxItemVariants = cva(combobox_item_module_default.base);
|
|
41
|
+
//#endregion
|
|
42
|
+
export { ComboboxItem, comboboxItemVariants };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import './combobox-item.css';
|
|
2
|
+
//#region src/components/combobox/combobox-item.module.css
|
|
3
|
+
var combobox_item_module_default = {
|
|
4
|
+
"base": "combobox-item-module_base_0uz3mW",
|
|
5
|
+
"indicator": "combobox-item-module_indicator_0uz3mW",
|
|
6
|
+
"label": "combobox-item-module_label_0uz3mW"
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { combobox_item_module_default as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Combobox } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/combobox/combobox-list.d.ts
|
|
4
|
+
interface ComboboxListProps extends Omit<Combobox.List.Props, "className"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
declare function ComboboxList(props: ComboboxListProps): JSX.Element;
|
|
8
|
+
declare const comboboxListVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ComboboxList, ComboboxListProps, comboboxListVariants };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import combobox_list_module_default from "./combobox-list.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Combobox } from "@base-ui/react";
|
|
5
|
+
//#region src/components/combobox/combobox-list.tsx
|
|
6
|
+
function ComboboxList(props) {
|
|
7
|
+
const { className: customClassName = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = comboboxListVariants({ className: customClassName });
|
|
9
|
+
return /* @__PURE__ */ jsx(Combobox.List, {
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-slot": "combobox-list",
|
|
12
|
+
...rest
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
const comboboxListVariants = cva(combobox_list_module_default.base);
|
|
16
|
+
//#endregion
|
|
17
|
+
export { ComboboxList, comboboxListVariants };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Combobox } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/combobox/combobox-separator.d.ts
|
|
4
|
+
interface ComboboxSeparatorProps extends Omit<Combobox.Separator.Props, "className"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
declare function ComboboxSeparator(props: ComboboxSeparatorProps): JSX.Element;
|
|
8
|
+
declare const comboboxSeparatorVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ComboboxSeparator, ComboboxSeparatorProps, comboboxSeparatorVariants };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import combobox_separator_module_default from "./combobox-separator.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Combobox } from "@base-ui/react";
|
|
5
|
+
//#region src/components/combobox/combobox-separator.tsx
|
|
6
|
+
function ComboboxSeparator(props) {
|
|
7
|
+
const { className: customClassName = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = comboboxSeparatorVariants({ className: customClassName });
|
|
9
|
+
return /* @__PURE__ */ jsx(Combobox.Separator, {
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-slot": "combobox-separator",
|
|
12
|
+
...rest
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
const comboboxSeparatorVariants = cva(combobox_separator_module_default.base);
|
|
16
|
+
//#endregion
|
|
17
|
+
export { ComboboxSeparator, comboboxSeparatorVariants };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Combobox } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/combobox/combobox.d.ts
|
|
4
|
+
interface ComboboxProps<Value, Multiple extends boolean | undefined = false> extends Combobox.Root.Props<Value, Multiple> {}
|
|
5
|
+
declare function Combobox$1<Value, Multiple extends boolean | undefined = false>(props: ComboboxProps<Value, Multiple>): JSX.Element;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Combobox$1 as Combobox, ComboboxProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Combobox } from "@base-ui/react";
|
|
3
|
+
//#region src/components/combobox/combobox.tsx
|
|
4
|
+
function Combobox$1(props) {
|
|
5
|
+
const { ...rest } = props;
|
|
6
|
+
return /* @__PURE__ */ jsx(Combobox.Root, {
|
|
7
|
+
"data-slot": "combobox",
|
|
8
|
+
...rest
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Combobox$1 as Combobox };
|
|
@@ -2,6 +2,15 @@ import { Button, ButtonProps, button } from "./button/button.js";
|
|
|
2
2
|
import { ButtonLink, ButtonLinkProps } from "./button-link/button-link.js";
|
|
3
3
|
import { Checkbox, CheckboxProps, checkboxVariants } from "./checkbox/checkbox.js";
|
|
4
4
|
import { Column, ColumnProps, columnVariants } from "./column/column.js";
|
|
5
|
+
import { Combobox, ComboboxProps } from "./combobox/combobox.js";
|
|
6
|
+
import { ComboboxContent, ComboboxContentProps, comboboxContentVariants } from "./combobox/combobox-content.js";
|
|
7
|
+
import { ComboboxEmpty, ComboboxEmptyProps, comboboxEmptyVariants } from "./combobox/combobox-empty.js";
|
|
8
|
+
import { ComboboxGroup, ComboboxGroupProps, comboboxGroupVariants } from "./combobox/combobox-group.js";
|
|
9
|
+
import { ComboboxGroupLabel, ComboboxGroupLabelProps, comboboxGroupLabelVariants } from "./combobox/combobox-group-label.js";
|
|
10
|
+
import { ComboboxInput, ComboboxInputProps, comboboxInputVariants } from "./combobox/combobox-input.js";
|
|
11
|
+
import { ComboboxItem, ComboboxItemProps, comboboxItemVariants } from "./combobox/combobox-item.js";
|
|
12
|
+
import { ComboboxList, ComboboxListProps, comboboxListVariants } from "./combobox/combobox-list.js";
|
|
13
|
+
import { ComboboxSeparator, ComboboxSeparatorProps, comboboxSeparatorVariants } from "./combobox/combobox-separator.js";
|
|
5
14
|
import { DialogResponsive, DialogResponsiveProps } from "./dialog-responsive/dialog-responsive.js";
|
|
6
15
|
import { DialogResponsivePopup, DialogResponsivePopupProps, dialogResponsivePopupVariants } from "./dialog-responsive/dialog-responsive-popup.js";
|
|
7
16
|
import { DialogResponsiveTrigger, DialogResponsiveTriggerProps } from "./dialog-responsive/dialog-responsive-trigger.js";
|
|
@@ -51,4 +60,4 @@ import { Tooltip, TooltipProps } from "./tooltip/tooltip.js";
|
|
|
51
60
|
import { TooltipPopup, TooltipPopupProps, tooltipPopupVariants } from "./tooltip/tooltip-popup.js";
|
|
52
61
|
import { TooltipProvider, TooltipProviderProps } from "./tooltip/tooltip-provider.js";
|
|
53
62
|
import { TooltipTrigger, TooltipTriggerProps } from "./tooltip/tooltip-trigger.js";
|
|
54
|
-
export { Button, ButtonLink, ButtonLinkProps, ButtonProps, Checkbox, CheckboxProps, Column, ColumnProps, DialogResponsive, DialogResponsivePopup, DialogResponsivePopupProps, DialogResponsiveProps, DialogResponsiveTrigger, DialogResponsiveTriggerProps, IconButton, IconButtonProps, Input, InputProps, Label, LabelProps, MENU_CLASS_NAME, Menu, MenuCheckboxItem, MenuCheckboxItemProps, MenuContent, MenuContentProps, MenuGroup, MenuGroupLabel, MenuGroupLabelProps, MenuGroupProps, MenuItem, MenuItemProps, MenuLinkItem, MenuLinkItemProps, MenuProps, MenuRadioGroup, MenuRadioGroupProps, MenuRadioItem, MenuRadioItemProps, MenuSeparator, MenuSeparatorProps, MenuSubmenu, MenuSubmenuProps, MenuSubmenuTrigger, MenuSubmenuTriggerProps, MenuTrigger, MenuTriggerProps, MenuViewport, MenuViewportProps, OTPField, OTPFieldInput, Row, RowProps, Select, SelectContent, SelectContentProps, SelectGroup, SelectGroupLabel, SelectGroupLabelProps, SelectGroupProps, SelectItem, SelectItemProps, SelectProps, SelectSeparator, SelectSeparatorProps, SelectTrigger, SelectTriggerProps, SelectValue, SelectValueProps, Spacer, SpacerProps, Switch, SwitchProps, Tabs, TabsPanel, TabsPanelProps, TabsPillList, TabsPillListProps, TabsPillTab, TabsPillTabProps, TabsProps, TabsSegmentedList, TabsSegmentedListProps, TabsSegmentedTab, TabsSegmentedTabProps, TabsUnderlineList, TabsUnderlineListProps, TabsUnderlineTab, TabsUnderlineTabProps, Textarea, TextareaProps, ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps, Tooltip, TooltipPopup, TooltipPopupProps, TooltipProps, TooltipProvider, TooltipProviderProps, TooltipTrigger, TooltipTriggerProps, button, checkboxVariants, columnVariants, createMenuHandle, dialogResponsivePopupVariants, iconButton, inputVariants, labelVariants, otpFieldInputVariants, otpFieldVariants, rowVariants, selectContentVariants, selectGroupLabelVariants, selectGroupVariants, selectItemVariants, selectSeparatorVariants, selectTriggerVariants, selectValueVariants, spacerVariants, switchVariants, tabsPanelVariants, tabsPillListVariants, tabsPillTabVariants, tabsSegmentedListVariants, tabsSegmentedTabVariants, tabsUnderlineListVariants, tabsUnderlineTabVariants, tabsVariants, textareaVariants, toggleGroupItemVariants, toggleGroupVariants, tooltipPopupVariants };
|
|
63
|
+
export { Button, ButtonLink, ButtonLinkProps, ButtonProps, Checkbox, CheckboxProps, Column, ColumnProps, Combobox, ComboboxContent, ComboboxContentProps, ComboboxEmpty, ComboboxEmptyProps, ComboboxGroup, ComboboxGroupLabel, ComboboxGroupLabelProps, ComboboxGroupProps, ComboboxInput, ComboboxInputProps, ComboboxItem, ComboboxItemProps, ComboboxList, ComboboxListProps, ComboboxProps, ComboboxSeparator, ComboboxSeparatorProps, DialogResponsive, DialogResponsivePopup, DialogResponsivePopupProps, DialogResponsiveProps, DialogResponsiveTrigger, DialogResponsiveTriggerProps, IconButton, IconButtonProps, Input, InputProps, Label, LabelProps, MENU_CLASS_NAME, Menu, MenuCheckboxItem, MenuCheckboxItemProps, MenuContent, MenuContentProps, MenuGroup, MenuGroupLabel, MenuGroupLabelProps, MenuGroupProps, MenuItem, MenuItemProps, MenuLinkItem, MenuLinkItemProps, MenuProps, MenuRadioGroup, MenuRadioGroupProps, MenuRadioItem, MenuRadioItemProps, MenuSeparator, MenuSeparatorProps, MenuSubmenu, MenuSubmenuProps, MenuSubmenuTrigger, MenuSubmenuTriggerProps, MenuTrigger, MenuTriggerProps, MenuViewport, MenuViewportProps, OTPField, OTPFieldInput, Row, RowProps, Select, SelectContent, SelectContentProps, SelectGroup, SelectGroupLabel, SelectGroupLabelProps, SelectGroupProps, SelectItem, SelectItemProps, SelectProps, SelectSeparator, SelectSeparatorProps, SelectTrigger, SelectTriggerProps, SelectValue, SelectValueProps, Spacer, SpacerProps, Switch, SwitchProps, Tabs, TabsPanel, TabsPanelProps, TabsPillList, TabsPillListProps, TabsPillTab, TabsPillTabProps, TabsProps, TabsSegmentedList, TabsSegmentedListProps, TabsSegmentedTab, TabsSegmentedTabProps, TabsUnderlineList, TabsUnderlineListProps, TabsUnderlineTab, TabsUnderlineTabProps, Textarea, TextareaProps, ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps, Tooltip, TooltipPopup, TooltipPopupProps, TooltipProps, TooltipProvider, TooltipProviderProps, TooltipTrigger, TooltipTriggerProps, button, checkboxVariants, columnVariants, comboboxContentVariants, comboboxEmptyVariants, comboboxGroupLabelVariants, comboboxGroupVariants, comboboxInputVariants, comboboxItemVariants, comboboxListVariants, comboboxSeparatorVariants, createMenuHandle, dialogResponsivePopupVariants, iconButton, inputVariants, labelVariants, otpFieldInputVariants, otpFieldVariants, rowVariants, selectContentVariants, selectGroupLabelVariants, selectGroupVariants, selectItemVariants, selectSeparatorVariants, selectTriggerVariants, selectValueVariants, spacerVariants, switchVariants, tabsPanelVariants, tabsPillListVariants, tabsPillTabVariants, tabsSegmentedListVariants, tabsSegmentedTabVariants, tabsUnderlineListVariants, tabsUnderlineTabVariants, tabsVariants, textareaVariants, toggleGroupItemVariants, toggleGroupVariants, tooltipPopupVariants };
|
package/dist/components/index.js
CHANGED
|
@@ -2,6 +2,15 @@ import { Button, button } from "./button/button.js";
|
|
|
2
2
|
import { ButtonLink } from "./button-link/button-link.js";
|
|
3
3
|
import { Checkbox, checkboxVariants } from "./checkbox/checkbox.js";
|
|
4
4
|
import { Column, columnVariants } from "./column/column.js";
|
|
5
|
+
import { Combobox } from "./combobox/combobox.js";
|
|
6
|
+
import { ComboboxContent, comboboxContentVariants } from "./combobox/combobox-content.js";
|
|
7
|
+
import { ComboboxEmpty, comboboxEmptyVariants } from "./combobox/combobox-empty.js";
|
|
8
|
+
import { ComboboxGroup, comboboxGroupVariants } from "./combobox/combobox-group.js";
|
|
9
|
+
import { ComboboxGroupLabel, comboboxGroupLabelVariants } from "./combobox/combobox-group-label.js";
|
|
10
|
+
import { ComboboxInput, comboboxInputVariants } from "./combobox/combobox-input.js";
|
|
11
|
+
import { ComboboxItem, comboboxItemVariants } from "./combobox/combobox-item.js";
|
|
12
|
+
import { ComboboxList, comboboxListVariants } from "./combobox/combobox-list.js";
|
|
13
|
+
import { ComboboxSeparator, comboboxSeparatorVariants } from "./combobox/combobox-separator.js";
|
|
5
14
|
import { DialogResponsive } from "./dialog-responsive/dialog-responsive.js";
|
|
6
15
|
import { DialogResponsivePopup, dialogResponsivePopupVariants } from "./dialog-responsive/dialog-responsive-popup.js";
|
|
7
16
|
import { DialogResponsiveTrigger } from "./dialog-responsive/dialog-responsive-trigger.js";
|
|
@@ -51,4 +60,4 @@ import { Tooltip } from "./tooltip/tooltip.js";
|
|
|
51
60
|
import { TooltipPopup, tooltipPopupVariants } from "./tooltip/tooltip-popup.js";
|
|
52
61
|
import { TooltipProvider } from "./tooltip/tooltip-provider.js";
|
|
53
62
|
import { TooltipTrigger } from "./tooltip/tooltip-trigger.js";
|
|
54
|
-
export { Button, ButtonLink, Checkbox, Column, DialogResponsive, DialogResponsivePopup, DialogResponsiveTrigger, IconButton, Input, Label, MENU_CLASS_NAME, Menu, MenuCheckboxItem, MenuContent, MenuGroup, MenuGroupLabel, MenuItem, MenuLinkItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSubmenu, MenuSubmenuTrigger, MenuTrigger, MenuViewport, OTPField, OTPFieldInput, Row, Select, SelectContent, SelectGroup, SelectGroupLabel, SelectItem, SelectSeparator, SelectTrigger, SelectValue, Spacer, Switch, Tabs, TabsPanel, TabsPillList, TabsPillTab, TabsSegmentedList, TabsSegmentedTab, TabsUnderlineList, TabsUnderlineTab, Textarea, ToggleGroup, ToggleGroupItem, Tooltip, TooltipPopup, TooltipProvider, TooltipTrigger, button, checkboxVariants, columnVariants, createMenuHandle, dialogResponsivePopupVariants, iconButton, inputVariants, labelVariants, otpFieldInputVariants, otpFieldVariants, rowVariants, selectContentVariants, selectGroupLabelVariants, selectGroupVariants, selectItemVariants, selectSeparatorVariants, selectTriggerVariants, selectValueVariants, spacerVariants, switchVariants, tabsPanelVariants, tabsPillListVariants, tabsPillTabVariants, tabsSegmentedListVariants, tabsSegmentedTabVariants, tabsUnderlineListVariants, tabsUnderlineTabVariants, tabsVariants, textareaVariants, toggleGroupItemVariants, toggleGroupVariants, tooltipPopupVariants };
|
|
63
|
+
export { Button, ButtonLink, Checkbox, Column, Combobox, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxSeparator, DialogResponsive, DialogResponsivePopup, DialogResponsiveTrigger, IconButton, Input, Label, MENU_CLASS_NAME, Menu, MenuCheckboxItem, MenuContent, MenuGroup, MenuGroupLabel, MenuItem, MenuLinkItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSubmenu, MenuSubmenuTrigger, MenuTrigger, MenuViewport, OTPField, OTPFieldInput, Row, Select, SelectContent, SelectGroup, SelectGroupLabel, SelectItem, SelectSeparator, SelectTrigger, SelectValue, Spacer, Switch, Tabs, TabsPanel, TabsPillList, TabsPillTab, TabsSegmentedList, TabsSegmentedTab, TabsUnderlineList, TabsUnderlineTab, Textarea, ToggleGroup, ToggleGroupItem, Tooltip, TooltipPopup, TooltipProvider, TooltipTrigger, button, checkboxVariants, columnVariants, comboboxContentVariants, comboboxEmptyVariants, comboboxGroupLabelVariants, comboboxGroupVariants, comboboxInputVariants, comboboxItemVariants, comboboxListVariants, comboboxSeparatorVariants, createMenuHandle, dialogResponsivePopupVariants, iconButton, inputVariants, labelVariants, otpFieldInputVariants, otpFieldVariants, rowVariants, selectContentVariants, selectGroupLabelVariants, selectGroupVariants, selectItemVariants, selectSeparatorVariants, selectTriggerVariants, selectValueVariants, spacerVariants, switchVariants, tabsPanelVariants, tabsPillListVariants, tabsPillTabVariants, tabsSegmentedListVariants, tabsSegmentedTabVariants, tabsUnderlineListVariants, tabsUnderlineTabVariants, tabsVariants, textareaVariants, toggleGroupItemVariants, toggleGroupVariants, tooltipPopupVariants };
|
|
@@ -16,15 +16,16 @@
|
|
|
16
16
|
max-height: min(var(--available-height), 480px);
|
|
17
17
|
max-width: var(--available-width);
|
|
18
18
|
min-width: max(var(--anchor-width), 240px);
|
|
19
|
-
width: var(--anchor-width);
|
|
20
19
|
outline-color: var(--color-primary-9);
|
|
21
20
|
outline-offset: -2px;
|
|
22
21
|
transform-origin: var(--transform-origin);
|
|
22
|
+
width: var(--anchor-width);
|
|
23
23
|
will-change: opacity, transform;
|
|
24
24
|
border-radius: 12px;
|
|
25
25
|
outline-width: 0;
|
|
26
26
|
outline-style: solid;
|
|
27
27
|
flex-direction: column;
|
|
28
|
+
row-gap: 2px;
|
|
28
29
|
padding: 4px;
|
|
29
30
|
transition-property: opacity, transform;
|
|
30
31
|
transition-duration: .15s;
|