@scouterna/ui-react 0.0.6 → 0.1.4
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 +1 -1
- package/dist/components/button/button.d.ts +5 -12
- package/dist/components/button/button.js +41 -15
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/callout/callout.d.ts +10 -0
- package/dist/components/callout/callout.js +54 -0
- package/dist/components/callout/callout.js.map +1 -0
- package/dist/components/card/card.d.ts +8 -0
- package/dist/components/card/card.js +32 -0
- package/dist/components/card/card.js.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +3 -2
- package/dist/components/checkbox/checkbox.js +7 -9
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/field/field.d.ts +13 -0
- package/dist/components/field/field.js +17 -0
- package/dist/components/field/field.js.map +1 -0
- package/dist/components/input/input.d.ts +3 -6
- package/dist/components/input/input.js +18 -19
- package/dist/components/input/input.js.map +1 -1
- package/dist/components/menu/menu.d.ts +13 -0
- package/dist/components/menu/menu.js +80 -0
- package/dist/components/menu/menu.js.map +1 -0
- package/dist/components/select/select.d.ts +7 -17
- package/dist/components/select/select.js +11 -21
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/table/table-test.d.ts +2 -0
- package/dist/components/table/table-test.js +46 -0
- package/dist/components/table/table-test.js.map +1 -0
- package/dist/components/table/table.d.ts +11 -0
- package/dist/components/table/table.js +75 -0
- package/dist/components/table/table.js.map +1 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/style.css +382 -26
- package/package.json +15 -16
- package/dist/components/form-field/form-field.d.ts +0 -16
- package/dist/components/form-field/form-field.js +0 -16
- package/dist/components/form-field/form-field.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
1
|
+
import { useRender } from "@base-ui-components/react";
|
|
1
2
|
import { type VariantProps } from "class-variance-authority";
|
|
2
3
|
declare const buttonVariants: (props?: ({
|
|
3
|
-
color?: "blue" | "orange" | "red" | "trackergreen" | "discovererblue" | "adventurerorange" | "challengerpink" | "roveryellow" | null | undefined;
|
|
4
|
+
color?: "gray" | "blue" | "orange" | "red" | "trackergreen" | "discovererblue" | "adventurerorange" | "challengerpink" | "roveryellow" | null | undefined;
|
|
4
5
|
variant?: "contained" | "text" | "outlined" | null | undefined;
|
|
5
|
-
size?: "medium" | "small" | null | undefined;
|
|
6
|
+
size?: "medium" | "small" | "tiny-icon" | null | undefined;
|
|
6
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
-
export type ButtonProps = Omit<
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
declare const Button: import("react").ForwardRefExoticComponent<Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "color"> & VariantProps<(props?: ({
|
|
11
|
-
color?: "blue" | "orange" | "red" | "trackergreen" | "discovererblue" | "adventurerorange" | "challengerpink" | "roveryellow" | null | undefined;
|
|
12
|
-
variant?: "contained" | "text" | "outlined" | null | undefined;
|
|
13
|
-
size?: "medium" | "small" | null | undefined;
|
|
14
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
15
|
-
asChild?: boolean;
|
|
16
|
-
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
export type ButtonProps = Omit<useRender.ComponentProps<"button">, "color"> & VariantProps<typeof buttonVariants>;
|
|
9
|
+
declare const Button: (props: ButtonProps) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
17
10
|
export { Button };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { mergeProps, useRender } from "@base-ui-components/react";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
|
-
import { forwardRef } from "react";
|
|
5
4
|
import { cn } from "../../lib/utils.js";
|
|
6
5
|
const buttonVariants = cva(`
|
|
7
6
|
flex items-center justify-center
|
|
@@ -13,6 +12,16 @@ const buttonVariants = cva(`
|
|
|
13
12
|
`, {
|
|
14
13
|
variants: {
|
|
15
14
|
color: {
|
|
15
|
+
gray: `
|
|
16
|
+
[--btn-text:var(--color-gray-800)]
|
|
17
|
+
[--btn-border:var(--color-gray-400)]
|
|
18
|
+
[--btn-bg:var(--color-gray-200)]
|
|
19
|
+
[--btn-bg-hover:var(--color-gray-4300)]
|
|
20
|
+
[--btn-bg-active:var(--color-gray-400)]
|
|
21
|
+
|
|
22
|
+
[--btn-bg-text-hover:var(--color-gray-200)]
|
|
23
|
+
[--btn-bg-text-active:var(--color-gray-300)]
|
|
24
|
+
`,
|
|
16
25
|
blue: `
|
|
17
26
|
[--btn-text:var(--color-white)]
|
|
18
27
|
[--btn-border:var(--color-blue)]
|
|
@@ -20,7 +29,6 @@ const buttonVariants = cva(`
|
|
|
20
29
|
[--btn-bg-hover:var(--color-blue-hover)]
|
|
21
30
|
[--btn-bg-active:var(--color-blue-active)]
|
|
22
31
|
|
|
23
|
-
[--btn-text-border:var(--color-blue-600)]
|
|
24
32
|
[--btn-bg-text-hover:var(--color-bluegray-100)]
|
|
25
33
|
[--btn-bg-text-active:var(--color-bluegray-200)]
|
|
26
34
|
`,
|
|
@@ -31,7 +39,6 @@ const buttonVariants = cva(`
|
|
|
31
39
|
[--btn-bg-hover:var(--color-orange-hover)]
|
|
32
40
|
[--btn-bg-active:var(--color-orange-active)]
|
|
33
41
|
|
|
34
|
-
[--btn-text-border:var(--color-orange)]
|
|
35
42
|
[--btn-bg-text-hover:var(--color-orange-100)]
|
|
36
43
|
[--btn-bg-text-active:var(--color-orange-200)]
|
|
37
44
|
`,
|
|
@@ -42,7 +49,6 @@ const buttonVariants = cva(`
|
|
|
42
49
|
[--btn-bg-hover:var(--color-red-hover)]
|
|
43
50
|
[--btn-bg-active:var(--color-red-active)]
|
|
44
51
|
|
|
45
|
-
[--btn-text-border:var(--color-red)]
|
|
46
52
|
[--btn-bg-text-hover:var(--color-red-100)]
|
|
47
53
|
[--btn-bg-text-active:var(--color-red-200)]
|
|
48
54
|
`,
|
|
@@ -53,7 +59,6 @@ const buttonVariants = cva(`
|
|
|
53
59
|
[--btn-bg-hover:var(--color-trackergreen-hover)]
|
|
54
60
|
[--btn-bg-active:var(--color-trackergreen-active)]
|
|
55
61
|
|
|
56
|
-
[--btn-text-border:var(--color-trackergreen)]
|
|
57
62
|
[--btn-bg-text-hover:var(--color-trackergreen-100)]
|
|
58
63
|
[--btn-bg-text-active:var(--color-trackergreen-200)]
|
|
59
64
|
`,
|
|
@@ -64,7 +69,6 @@ const buttonVariants = cva(`
|
|
|
64
69
|
[--btn-bg-hover:var(--color-discovererblue-hover)]
|
|
65
70
|
[--btn-bg-active:var(--color-discovererblue-active)]
|
|
66
71
|
|
|
67
|
-
[--btn-text-border:var(--color-discovererblue)]
|
|
68
72
|
[--btn-bg-text-hover:var(--color-discovererblue-100)]
|
|
69
73
|
[--btn-bg-text-active:var(--color-discovererblue-200)]
|
|
70
74
|
`,
|
|
@@ -75,7 +79,6 @@ const buttonVariants = cva(`
|
|
|
75
79
|
[--btn-bg-hover:var(--color-adventurerorange-hover)]
|
|
76
80
|
[--btn-bg-active:var(--color-adventurerorange-active)]
|
|
77
81
|
|
|
78
|
-
[--btn-text-border:var(--color-adventurerorange)]
|
|
79
82
|
[--btn-bg-text-hover:var(--color-adventurerorange-100)]
|
|
80
83
|
[--btn-bg-text-active:var(--color-adventurerorange-200)]
|
|
81
84
|
`,
|
|
@@ -86,7 +89,6 @@ const buttonVariants = cva(`
|
|
|
86
89
|
[--btn-bg-hover:var(--color-challengerpink-hover)]
|
|
87
90
|
[--btn-bg-active:var(--color-challengerpink-active)]
|
|
88
91
|
|
|
89
|
-
[--btn-text-border:var(--color-challengerpink)]
|
|
90
92
|
[--btn-bg-text-hover:var(--color-challengerpink-100)]
|
|
91
93
|
[--btn-bg-text-active:var(--color-challengerpink-200)]
|
|
92
94
|
`,
|
|
@@ -97,7 +99,6 @@ const buttonVariants = cva(`
|
|
|
97
99
|
[--btn-bg-hover:var(--color-roveryellow-hover)]
|
|
98
100
|
[--btn-bg-active:var(--color-roveryellow-active)]
|
|
99
101
|
|
|
100
|
-
[--btn-text-border:var(--color-roveryellow)]
|
|
101
102
|
[--btn-bg-text-hover:var(--color-roveryellow-100)]
|
|
102
103
|
[--btn-bg-text-active:var(--color-roveryellow-200)]
|
|
103
104
|
`,
|
|
@@ -128,6 +129,7 @@ const buttonVariants = cva(`
|
|
|
128
129
|
size: {
|
|
129
130
|
medium: "text-base px-4 h-10 rounded-lg",
|
|
130
131
|
small: "text-sm px-3 h-8 rounded-md",
|
|
132
|
+
"tiny-icon": "text-sm p-1 size-6 rounded-md",
|
|
131
133
|
},
|
|
132
134
|
},
|
|
133
135
|
defaultVariants: {
|
|
@@ -135,11 +137,35 @@ const buttonVariants = cva(`
|
|
|
135
137
|
variant: "contained",
|
|
136
138
|
size: "medium",
|
|
137
139
|
},
|
|
140
|
+
compoundVariants: [
|
|
141
|
+
{
|
|
142
|
+
color: "gray",
|
|
143
|
+
variant: "text",
|
|
144
|
+
class: `
|
|
145
|
+
text-(--btn-text)
|
|
146
|
+
`,
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
color: "gray",
|
|
150
|
+
variant: "outlined",
|
|
151
|
+
class: `
|
|
152
|
+
text-(--btn-text)
|
|
153
|
+
`,
|
|
154
|
+
},
|
|
155
|
+
],
|
|
138
156
|
});
|
|
139
|
-
const Button =
|
|
140
|
-
const
|
|
141
|
-
|
|
142
|
-
});
|
|
143
|
-
|
|
157
|
+
const Button = (props) => {
|
|
158
|
+
const {
|
|
159
|
+
// biome-ignore lint/a11y/useButtonType: We set it further down
|
|
160
|
+
render = _jsx("button", {}), className, color, variant, size, ...otherProps } = props;
|
|
161
|
+
const defaultProps = {
|
|
162
|
+
className: cn(buttonVariants({ color, variant, size, className })),
|
|
163
|
+
type: "button",
|
|
164
|
+
};
|
|
165
|
+
return useRender({
|
|
166
|
+
render,
|
|
167
|
+
props: mergeProps(defaultProps, otherProps),
|
|
168
|
+
});
|
|
169
|
+
};
|
|
144
170
|
export { Button };
|
|
145
171
|
//# sourceMappingURL=button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC,MAAM,cAAc,GAAG,GAAG,CACxB;;;;;;;GAOC,EACD;IACE,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,IAAI,EAAE;;;;;;;;;SASL;YACD,IAAI,EAAE;;;;;;;;;SASL;YACD,MAAM,EAAE;;;;;;;;;SASP;YACD,GAAG,EAAE;;;;;;;;;SASJ;YACD,YAAY,EAAE;;;;;;;;;SASb;YACD,cAAc,EAAE;;;;;;;;;SASf;YACD,gBAAgB,EAAE;;;;;;;;;SASjB;YACD,cAAc,EAAE;;;;;;;;;SASf;YACD,WAAW,EAAE;;;;;;;;;SASZ;SACF;QACD,OAAO,EAAE;YACP,SAAS,EAAE;;;;;;SAMV;YACD,IAAI,EAAE;;;;;;SAML;YACD,QAAQ,EAAE;;;;;;SAMT;SACF;QACD,IAAI,EAAE;YACJ,MAAM,EAAE,gCAAgC;YACxC,KAAK,EAAE,6BAA6B;YACpC,WAAW,EAAE,+BAA+B;SAC7C;KACF;IACD,eAAe,EAAE;QACf,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,WAAW;QACpB,IAAI,EAAE,QAAQ;KACf;IACD,gBAAgB,EAAE;QAChB;YACE,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,MAAM;YACf,KAAK,EAAE;;SAEN;SACF;QACD;YACE,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,UAAU;YACnB,KAAK,EAAE;;SAEN;SACF;KACF;CACF,CACF,CAAC;AAKF,MAAM,MAAM,GAAG,CAAC,KAAkB,EAAE,EAAE;IACpC,MAAM;IACJ,+DAA+D;IAC/D,MAAM,GAAG,kBAAU,EACnB,SAAS,EACT,KAAK,EACL,OAAO,EACP,IAAI,EACJ,GAAG,UAAU,EACd,GAAG,KAAK,CAAC;IAEV,MAAM,YAAY,GAAqC;QACrD,SAAS,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;QAClE,IAAI,EAAE,QAAQ;KACf,CAAC;IAEF,OAAO,SAAS,CAAC;QACf,MAAM;QACN,KAAK,EAAE,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC;KAC5C,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import { type LucideIcon } from "lucide-react";
|
|
3
|
+
declare const calloutVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "info" | "warning" | "error" | "success" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export type CalloutProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof calloutVariants> & {
|
|
7
|
+
icon?: LucideIcon;
|
|
8
|
+
};
|
|
9
|
+
declare const Callout: ({ className, variant, children, ...props }: CalloutProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Callout };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { CheckIcon, CircleAlertIcon, InfoIcon, TriangleAlertIcon, } from "lucide-react";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
const calloutVariants = cva(`
|
|
6
|
+
flex gap-2
|
|
7
|
+
p-4
|
|
8
|
+
border
|
|
9
|
+
rounded-lg
|
|
10
|
+
`, {
|
|
11
|
+
variants: {
|
|
12
|
+
variant: {
|
|
13
|
+
default: `
|
|
14
|
+
[--callout-icon-color:var(--color-gray-dark)]
|
|
15
|
+
bg-gray-light text-gray-dark
|
|
16
|
+
border-gray-300
|
|
17
|
+
`,
|
|
18
|
+
info: `
|
|
19
|
+
[--callout-icon-color:var(--color-blue-00)]
|
|
20
|
+
bg-blue-100 text-blue-800
|
|
21
|
+
border-blue-200
|
|
22
|
+
`,
|
|
23
|
+
warning: `
|
|
24
|
+
[--callout-icon-color:var(--color-orange-800)]
|
|
25
|
+
bg-orange-100 text-orange-800
|
|
26
|
+
border-orange-200
|
|
27
|
+
`,
|
|
28
|
+
error: `
|
|
29
|
+
[--callout-icon-color:var(--color-red-800)]
|
|
30
|
+
bg-red-100 text-red-800
|
|
31
|
+
border-red-200
|
|
32
|
+
`,
|
|
33
|
+
success: `
|
|
34
|
+
[--callout-icon-color:var(--color-trackergreen-800)]
|
|
35
|
+
bg-trackergreen-100 text-trackergreen-800
|
|
36
|
+
border-trackergreen-200
|
|
37
|
+
`,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
const variantIcons = {
|
|
42
|
+
default: InfoIcon,
|
|
43
|
+
info: InfoIcon,
|
|
44
|
+
warning: CircleAlertIcon,
|
|
45
|
+
error: TriangleAlertIcon,
|
|
46
|
+
success: CheckIcon,
|
|
47
|
+
};
|
|
48
|
+
const Callout = ({ className, variant, children, ...props }) => {
|
|
49
|
+
variant = variant || "default";
|
|
50
|
+
const Icon = props.icon || variantIcons[variant];
|
|
51
|
+
return (_jsxs("div", { className: cn(calloutVariants({ variant, className })), ...props, children: [_jsx("div", { children: _jsx(Icon, { className: "h-6 w-6 text-(--callout-icon-color)" }) }), children] }));
|
|
52
|
+
};
|
|
53
|
+
export { Callout };
|
|
54
|
+
//# sourceMappingURL=callout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callout.js","sourceRoot":"","sources":["../../../src/components/callout/callout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EACL,SAAS,EACT,eAAe,EACf,QAAQ,EAER,iBAAiB,GAClB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC,MAAM,eAAe,GAAG,GAAG,CACzB;;;;;GAKC,EACD;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE;;;;SAIR;YACD,IAAI,EAAE;;;;SAIL;YACD,OAAO,EAAE;;;;SAIR;YACD,KAAK,EAAE;;;;SAIN;YACD,OAAO,EAAE;;;;SAIR;SACF;KACF;CACF,CACF,CAAC;AAGF,MAAM,YAAY,GAAiC;IACjD,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,eAAe;IACxB,KAAK,EAAE,iBAAiB;IACxB,OAAO,EAAE,SAAS;CACnB,CAAC;AAOF,MAAM,OAAO,GAAG,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAgB,EAAE,EAAE;IAC3E,OAAO,GAAG,OAAO,IAAI,SAAS,CAAC;IAC/B,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,IAAI,YAAY,CAAC,OAAO,CAAC,CAAC;IAEjD,OAAO,CACL,eAAK,SAAS,EAAE,EAAE,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,KAAM,KAAK,aACpE,wBACE,KAAC,IAAI,IAAC,SAAS,EAAC,qCAAqC,GAAG,GACpD,EACL,QAAQ,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { useRender } from "@base-ui-components/react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const cardVariants: (props?: ({
|
|
4
|
+
variant?: "medium" | "light" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export type Props = useRender.ComponentProps<"div"> & VariantProps<typeof cardVariants>;
|
|
7
|
+
declare function Card(props: Props): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
8
|
+
export { Card };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { mergeProps, useRender } from "@base-ui-components/react";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
const cardVariants = cva(`
|
|
6
|
+
p-4
|
|
7
|
+
border
|
|
8
|
+
rounded-lg
|
|
9
|
+
text-gray-dark
|
|
10
|
+
`, {
|
|
11
|
+
variants: {
|
|
12
|
+
variant: {
|
|
13
|
+
light: "bg-gray-100 border-gray-300",
|
|
14
|
+
medium: "bg-gray-200 border-gray-300",
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
defaultVariants: {
|
|
18
|
+
variant: "light",
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
function Card(props) {
|
|
22
|
+
const { render = _jsx("div", {}), className, variant, ...otherProps } = props;
|
|
23
|
+
const defaultProps = {
|
|
24
|
+
className: cn(cardVariants({ variant }), className),
|
|
25
|
+
};
|
|
26
|
+
return useRender({
|
|
27
|
+
render,
|
|
28
|
+
props: mergeProps(defaultProps, otherProps),
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
export { Card };
|
|
32
|
+
//# sourceMappingURL=card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.js","sourceRoot":"","sources":["../../../src/components/card/card.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC,MAAM,YAAY,GAAG,GAAG,CACtB;;;;;GAKC,EACD;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,KAAK,EAAE,6BAA6B;YACpC,MAAM,EAAE,6BAA6B;SACtC;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,OAAO;KACjB;CACF,CACF,CAAC;AAKF,SAAS,IAAI,CAAC,KAAY;IACxB,MAAM,EAAE,MAAM,GAAG,eAAO,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAEtE,MAAM,YAAY,GAAkC;QAClD,SAAS,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,CAAC;KACpD,CAAC;IAEF,OAAO,SAAS,CAAC;QACf,MAAM;QACN,KAAK,EAAE,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC;KAC5C,CAAC,CAAC;AACL,CAAC;AAED,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { Checkbox as CheckboxPrimitive } from "@base-ui-components/react/checkbox";
|
|
2
|
+
export type CheckboxProps = CheckboxPrimitive.Root.Props;
|
|
3
|
+
declare const Checkbox: ({ className, children, ...props }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export { Checkbox };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import { Checkbox as CheckboxPrimitive } from "@base-ui-components/react/checkbox";
|
|
3
3
|
import { CheckIcon } from "lucide-react";
|
|
4
|
-
import { forwardRef, useId } from "react";
|
|
5
4
|
import { cn } from "../../lib/utils.js";
|
|
6
|
-
const Checkbox =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
const Checkbox = ({ className, children, ...props }) => {
|
|
6
|
+
return (
|
|
7
|
+
// biome-ignore lint/a11y/noLabelWithoutControl: The CheckboxPrimitive.Root is the control
|
|
8
|
+
_jsxs("label", { className: "flex items-center text-gray-dark", children: [_jsx(CheckboxPrimitive.Root, { className: cn(`
|
|
10
9
|
flex items-center justify-center
|
|
11
10
|
size-6
|
|
12
11
|
rounded-md appearance-none
|
|
@@ -17,8 +16,7 @@ const Checkbox = forwardRef(({ className, id, children, ...props }, ref) => {
|
|
|
17
16
|
focus-visible:ring-2 focus-visible:ring-blue-400 focus-visible:ring-offset-2
|
|
18
17
|
disabled:cursor-not-allowed
|
|
19
18
|
disabled:opacity-50
|
|
20
|
-
`, className),
|
|
21
|
-
}
|
|
22
|
-
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
19
|
+
`, className), ...props, children: _jsx(CheckboxPrimitive.Indicator, { children: _jsx(CheckIcon, { className: "size-5" }) }) }), _jsx("span", { className: "pl-2 text-sm leading-none", children: children })] }));
|
|
20
|
+
};
|
|
23
21
|
export { Checkbox };
|
|
24
22
|
//# sourceMappingURL=checkbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../../src/components/checkbox/checkbox.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../../src/components/checkbox/checkbox.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAIxC,MAAM,QAAQ,GAAG,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAiB,EAAE,EAAE;IACpE,OAAO;IACL,0FAA0F;IAC1F,iBAAO,SAAS,EAAC,kCAAkC,aACjD,KAAC,iBAAiB,CAAC,IAAI,IACrB,SAAS,EAAE,EAAE,CACX;;;;;;;;;;;WAWC,EACD,SAAS,CACV,KACG,KAAK,YAET,KAAC,iBAAiB,CAAC,SAAS,cAC1B,KAAC,SAAS,IAAC,SAAS,EAAC,QAAQ,GAAG,GACJ,GACP,EACzB,eAAM,SAAS,EAAC,2BAA2B,YAAE,QAAQ,GAAQ,IACvD,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Field } from "@base-ui-components/react/field";
|
|
2
|
+
export type FieldProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
asChild?: boolean;
|
|
4
|
+
label: string;
|
|
5
|
+
labelFor: string;
|
|
6
|
+
};
|
|
7
|
+
declare const Root: import("react").ForwardRefExoticComponent<Field.Root.Props & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const Control: import("react").ForwardRefExoticComponent<Field.Control.Props & import("react").RefAttributes<HTMLInputElement>>;
|
|
9
|
+
declare const Validity: import("react").FC<Field.Validity.Props>;
|
|
10
|
+
declare const FieldError: ({ className, ...props }: Field.Error.Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare const Description: ({ className, ...props }: Field.Description.Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare const Label: ({ className, ...props }: Field.Label.Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { Root as Field, Control, Validity, FieldError as Error, Description, Label, };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Field } from "@base-ui-components/react/field";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
|
+
const Root = Field.Root;
|
|
5
|
+
const Control = Field.Control;
|
|
6
|
+
const Validity = Field.Validity;
|
|
7
|
+
const FieldError = ({ className, ...props }) => {
|
|
8
|
+
return (_jsx(Field.Error, { className: cn("text-sm text-red", className), ...props }));
|
|
9
|
+
};
|
|
10
|
+
const Description = ({ className, ...props }) => {
|
|
11
|
+
return (_jsx(Field.Description, { className: cn("text-sm text-gray-800", className), ...props }));
|
|
12
|
+
};
|
|
13
|
+
const Label = ({ className, ...props }) => {
|
|
14
|
+
return (_jsx(Field.Label, { className: cn("font-bold text-sm text-gray-dark", className), ...props }));
|
|
15
|
+
};
|
|
16
|
+
export { Root as Field, Control, Validity, FieldError as Error, Description, Label, };
|
|
17
|
+
//# sourceMappingURL=field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field.js","sourceRoot":"","sources":["../../../src/components/field/field.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AACxD,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAQxC,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;AACxB,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;AAC9B,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;AAEhC,MAAM,UAAU,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAqB,EAAE,EAAE;IAChE,OAAO,CACL,KAAC,KAAK,CAAC,KAAK,IAAC,SAAS,EAAE,EAAE,CAAC,kBAAkB,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CACzE,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA2B,EAAE,EAAE;IACvE,OAAO,CACL,KAAC,KAAK,CAAC,WAAW,IAChB,SAAS,EAAE,EAAE,CAAC,uBAAuB,EAAE,SAAS,CAAC,KAC7C,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,KAAK,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAqB,EAAE,EAAE;IAC3D,OAAO,CACL,KAAC,KAAK,CAAC,KAAK,IACV,SAAS,EAAE,EAAE,CAAC,kCAAkC,EAAE,SAAS,CAAC,KACxD,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EACL,IAAI,IAAI,KAAK,EACb,OAAO,EACP,QAAQ,EACR,UAAU,IAAI,KAAK,EACnB,WAAW,EACX,KAAK,GACN,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
};
|
|
4
|
-
declare const Input: import("react").ForwardRefExoticComponent<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "placeholder"> & {
|
|
5
|
-
id: string;
|
|
6
|
-
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
1
|
+
import { Input as InputPrimitive } from "@base-ui-components/react/input";
|
|
2
|
+
export type InputProps = Omit<InputPrimitive.Props, "placeholder">;
|
|
3
|
+
declare const Input: ({ className, type, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
4
|
export { Input };
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Input as InputPrimitive } from "@base-ui-components/react/input";
|
|
3
3
|
import { cn } from "../../lib/utils.js";
|
|
4
|
-
const Input =
|
|
5
|
-
return (_jsx(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
// Explicitly set placeholder to empty string to
|
|
19
|
-
// the types and passing placeholder anyways.
|
|
4
|
+
const Input = ({ className, type = "text", ...props }) => {
|
|
5
|
+
return (_jsx(InputPrimitive, { type: type, className: cn(`
|
|
6
|
+
flex
|
|
7
|
+
h-10 w-full px-3 py-2
|
|
8
|
+
rounded-lg
|
|
9
|
+
border border-gray-300
|
|
10
|
+
bg-gray-100 text-gray-dark
|
|
11
|
+
text-base
|
|
12
|
+
file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground
|
|
13
|
+
focus-visible:outline-none
|
|
14
|
+
focus-visible:border-gray-500
|
|
15
|
+
disabled:cursor-not-allowed
|
|
16
|
+
disabled:opacity-50
|
|
17
|
+
`, className), ...props,
|
|
18
|
+
// Explicitly set placeholder to empty string to prevent users from
|
|
19
|
+
// ignoring the types and passing placeholder anyways.
|
|
20
20
|
placeholder: "" }));
|
|
21
|
-
}
|
|
22
|
-
Input.displayName = "Input";
|
|
21
|
+
};
|
|
23
22
|
export { Input };
|
|
24
23
|
//# sourceMappingURL=input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/components/input/input.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/components/input/input.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAIxC,MAAM,KAAK,GAAG,CAAC,EAAE,SAAS,EAAE,IAAI,GAAG,MAAM,EAAE,GAAG,KAAK,EAAc,EAAE,EAAE;IACnE,OAAO,CACL,KAAC,cAAc,IACb,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,EAAE,CACX;;;;;;;;;;;;SAYC,EACD,SAAS,CACV,KACG,KAAK;QACT,mEAAmE;QACnE,sDAAsD;QACtD,WAAW,EAAC,EAAE,GACd,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Menu as MenuPrimitive } from "@base-ui-components/react/menu";
|
|
2
|
+
declare const Root: import("react").FC<MenuPrimitive.Root.Props>;
|
|
3
|
+
declare const Trigger: import("react").ForwardRefExoticComponent<MenuPrimitive.Trigger.Props & import("react").RefAttributes<HTMLElement>>;
|
|
4
|
+
declare const Group: import("react").ForwardRefExoticComponent<MenuPrimitive.Group.Props & import("react").RefAttributes<Element>>;
|
|
5
|
+
declare const SubmenuRoot: typeof MenuPrimitive.SubmenuRoot;
|
|
6
|
+
declare const SubmenuTrigger: import("react").ForwardRefExoticComponent<MenuPrimitive.SubmenuTrigger.Props & import("react").RefAttributes<Element>>;
|
|
7
|
+
declare const Positioner: ({ className, children, ...props }: MenuPrimitive.Positioner.Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const GroupLabel: ({ className, ...props }: MenuPrimitive.GroupLabel.Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const Item: ({ className, children, ...props }: MenuPrimitive.Item.Props & {
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare const Separator: ({ className, ...props }: MenuPrimitive.Separator.Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { Group, GroupLabel, Item, Root, Trigger, SubmenuRoot, SubmenuTrigger, Positioner, Separator, };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Menu as MenuPrimitive } from "@base-ui-components/react/menu";
|
|
4
|
+
import { ChevronRightIcon } from "lucide-react";
|
|
5
|
+
import { createContext, useContext } from "react";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
|
+
const Root = MenuPrimitive.Root;
|
|
8
|
+
const Trigger = MenuPrimitive.Trigger;
|
|
9
|
+
const Group = MenuPrimitive.Group;
|
|
10
|
+
const SubmenuRoot = MenuPrimitive.SubmenuRoot;
|
|
11
|
+
const SubmenuTrigger = MenuPrimitive.SubmenuTrigger;
|
|
12
|
+
function ArrowSvg(props) {
|
|
13
|
+
return (
|
|
14
|
+
// biome-ignore lint/a11y/noSvgWithoutTitle: This is only for display
|
|
15
|
+
_jsxs("svg", { "aria-hidden": true, width: "20", height: "10", viewBox: "0 0 20 10", fill: "none", ...props, children: [_jsx("path", { d: "M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z", className: "fill-gray-100" }), _jsx("path", { d: "M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z", className: "fill-gray-300" }), _jsx("path", { d: "M10.3333 3.34539L5.47654 7.71648C4.55842 8.54279 3.36693 9 2.13172 9H0V8H2.13172C3.11989 8 4.07308 7.63423 4.80758 6.97318L9.66437 2.60207C10.0447 2.25979 10.622 2.2598 11.0023 2.60207L15.8591 6.97318C16.5936 7.63423 17.5468 8 18.5349 8H20V9H18.5349C17.2998 9 16.1083 8.54278 15.1901 7.71648L10.3333 3.34539Z", className: "fill-gray-100" })] }));
|
|
16
|
+
}
|
|
17
|
+
function Arrow() {
|
|
18
|
+
return (_jsx(MenuPrimitive.Arrow, { className: `
|
|
19
|
+
group-data-[nested]/popup:hidden
|
|
20
|
+
data-[side=top]:-bottom-[8px]
|
|
21
|
+
data-[side=top]:rotate-180
|
|
22
|
+
data-[side=bottom]:-top-[8px]
|
|
23
|
+
data-[side=bottom]:rotate-0
|
|
24
|
+
data-[side=left]:-right-[13px]
|
|
25
|
+
data-[side=left]:rotate-90
|
|
26
|
+
data-[side=right]:-left-[13px]
|
|
27
|
+
data-[side=right]:-rotate-90
|
|
28
|
+
`, children: _jsx(ArrowSvg, {}) }));
|
|
29
|
+
}
|
|
30
|
+
const SubmenuContext = createContext({
|
|
31
|
+
isNested: false,
|
|
32
|
+
});
|
|
33
|
+
const Positioner = ({ className, children, ...props }) => {
|
|
34
|
+
const submenuContext = useContext(SubmenuContext);
|
|
35
|
+
return (_jsx(SubmenuContext.Provider, { value: {
|
|
36
|
+
isNested: true,
|
|
37
|
+
}, children: _jsx(MenuPrimitive.Portal, { children: _jsx(MenuPrimitive.Positioner, { alignOffset: submenuContext.isNested ? -6 : 0, sideOffset: submenuContext.isNested ? -6 : 8, className: cn(`
|
|
38
|
+
|
|
39
|
+
`, className), ...props, children: _jsxs(MenuPrimitive.Popup, { className: `
|
|
40
|
+
group/popup
|
|
41
|
+
relative z-50 py-1.5
|
|
42
|
+
|
|
43
|
+
min-w-[calc(var(--anchor-width)+25px-var(--spacing)*1.5)]
|
|
44
|
+
rounded-lg border bg-gray-100 text-popover-foreground shadow-md
|
|
45
|
+
border-gray-300 text-gray-dark
|
|
46
|
+
|
|
47
|
+
origin-[var(--transform-origin)]
|
|
48
|
+
transition-[transform,scale,opacity]
|
|
49
|
+
data-[ending-style]:scale-90 data-[ending-style]:opacity-0
|
|
50
|
+
data-[starting-style]:scale-90 data-[starting-style]:opacity-0
|
|
51
|
+
`, children: [_jsx(Arrow, {}), children] }) }) }) }));
|
|
52
|
+
};
|
|
53
|
+
const GroupLabel = ({ className, ...props }) => (_jsx(MenuPrimitive.GroupLabel, { className: cn("px-[25px] text-sm leading-[25px] font-semibold select-none", className), ...props }));
|
|
54
|
+
const Item = ({ className, children, ...props }) => {
|
|
55
|
+
const { icon, ...otherProps } = props;
|
|
56
|
+
return (_jsxs(MenuPrimitive.Item, { className: cn(`
|
|
57
|
+
relative h-8 select-none items-center rounded-sm
|
|
58
|
+
px-4 leading-none
|
|
59
|
+
|
|
60
|
+
grid grid-cols-[1rem_auto_1rem] gap-2
|
|
61
|
+
|
|
62
|
+
after:absolute
|
|
63
|
+
after:inset-y-0
|
|
64
|
+
after:inset-x-1.5
|
|
65
|
+
after:z-[-1]
|
|
66
|
+
data-[highlighted]:after:bg-blue-100
|
|
67
|
+
data-[highlighted]:after:rounded-sm
|
|
68
|
+
|
|
69
|
+
data-[highlighted]:text-blue
|
|
70
|
+
data-[highlighted]:outline-none
|
|
71
|
+
|
|
72
|
+
data-[disabled]:pointer-events-none
|
|
73
|
+
data-[disabled]:opacity-50
|
|
74
|
+
|
|
75
|
+
group/item
|
|
76
|
+
`, className), ...otherProps, children: [icon && _jsx("span", { className: "flex items-center justify-center", children: icon }), _jsx("span", { className: "col-start-2", children: children }), _jsx(ChevronRightIcon, { className: "size-4 hidden group-aria-[haspopup]/item:block" })] }));
|
|
77
|
+
};
|
|
78
|
+
const Separator = ({ className, ...props }) => (_jsx(MenuPrimitive.Separator, { className: cn("m-[5px] h-px bg-gray-300", className), ...props }));
|
|
79
|
+
export { Group, GroupLabel, Item, Root, Trigger, SubmenuRoot, SubmenuTrigger, Positioner, Separator, };
|
|
80
|
+
//# sourceMappingURL=menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../../../src/components/menu/menu.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const Root: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
declare const Group: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
declare const Value: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
10
|
-
declare const Trigger: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11
|
-
declare const ScrollUpButton: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
-
declare const ScrollDownButton: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
-
declare const Content: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
-
declare const Label: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
-
declare const Item: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
-
declare const Separator: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
-
export { Root, Group, Value, Trigger, Content, Label, Item, Separator, ScrollUpButton, ScrollDownButton, };
|
|
1
|
+
import { Select as SelectPrimitive } from "@base-ui-components/react/select";
|
|
2
|
+
declare const Root: <TValue>({ children, ...props }: SelectPrimitive.Root.Props<TValue>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const Group: import("react").ForwardRefExoticComponent<SelectPrimitive.Group.Props & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const GroupLabel: ({ className, ...props }: SelectPrimitive.GroupLabel.Props) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const Item: ({ className, children, ...props }: SelectPrimitive.Item.Props) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const Separator: ({ className, ...props }: SelectPrimitive.Separator.Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Root, Group, GroupLabel, Item, Separator };
|