@lglab/compose-ui 0.24.0 → 0.26.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/checkbox-group.d.ts +12 -0
- package/dist/checkbox-group.js +15 -0
- package/dist/checkbox.d.ts +19 -0
- package/dist/checkbox.js +33 -0
- package/dist/field.d.ts +54 -0
- package/dist/field.js +28 -0
- package/dist/fieldset.d.ts +19 -0
- package/dist/fieldset.js +19 -0
- package/dist/form-variants-D4ge0qav.js +9 -0
- package/dist/form.d.ts +12 -0
- package/dist/form.js +9 -0
- package/dist/index.d.ts +313 -0
- package/dist/index.js +270 -216
- package/dist/input.d.ts +12 -0
- package/dist/input.js +10 -0
- 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 +172 -0
- package/dist/textarea.d.ts +11 -0
- package/dist/textarea.js +15 -0
- package/package.json +47 -3
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { NumberField as o } from "@base-ui/react/number-field";
|
|
4
|
+
import { f as s } from "./form-variants-D4ge0qav.js";
|
|
5
|
+
import { c as n } from "./utils-B6yFEsav.js";
|
|
6
|
+
const u = ({ className: e, ...r }) => /* @__PURE__ */ t(o.Root, { className: n(s, e), ...r });
|
|
7
|
+
u.displayName = "NumberFieldRoot";
|
|
8
|
+
const m = ({ className: e, ...r }) => /* @__PURE__ */ t(
|
|
9
|
+
o.ScrubArea,
|
|
10
|
+
{
|
|
11
|
+
className: n("cursor-ew-resize select-none", e),
|
|
12
|
+
...r
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
m.displayName = "NumberFieldScrubArea";
|
|
16
|
+
const d = ({
|
|
17
|
+
className: e,
|
|
18
|
+
...r
|
|
19
|
+
}) => /* @__PURE__ */ t(
|
|
20
|
+
o.ScrubAreaCursor,
|
|
21
|
+
{
|
|
22
|
+
className: n("drop-shadow-[0_1px_1px_rgba(0,0,0,0.5)] filter", e),
|
|
23
|
+
...r
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
d.displayName = "NumberFieldScrubAreaCursor";
|
|
27
|
+
const a = ({ className: e, ...r }) => /* @__PURE__ */ t(o.Group, { className: n("flex", e), ...r });
|
|
28
|
+
a.displayName = "NumberFieldGroup";
|
|
29
|
+
const b = ({ className: e, ...r }) => /* @__PURE__ */ t(
|
|
30
|
+
o.Input,
|
|
31
|
+
{
|
|
32
|
+
className: n(
|
|
33
|
+
"h-9 w-24 border-t border-b border-border bg-transparent text-center text-base text-foreground tabular-nums outline-none",
|
|
34
|
+
e
|
|
35
|
+
),
|
|
36
|
+
...r
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
b.displayName = "NumberFieldInput";
|
|
40
|
+
const c = ({ className: e, ...r }) => /* @__PURE__ */ t(
|
|
41
|
+
o.Decrement,
|
|
42
|
+
{
|
|
43
|
+
className: n(
|
|
44
|
+
"flex size-9 items-center justify-center rounded-l-md border border-border bg-background text-foreground select-none transition-colors hover:bg-muted active:bg-muted",
|
|
45
|
+
e
|
|
46
|
+
),
|
|
47
|
+
...r
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
c.displayName = "NumberFieldDecrement";
|
|
51
|
+
const l = ({ className: e, ...r }) => /* @__PURE__ */ t(
|
|
52
|
+
o.Increment,
|
|
53
|
+
{
|
|
54
|
+
className: n(
|
|
55
|
+
"flex size-9 items-center justify-center rounded-r-md border border-border bg-background text-foreground select-none transition-colors hover:bg-muted active:bg-muted",
|
|
56
|
+
e
|
|
57
|
+
),
|
|
58
|
+
...r
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
l.displayName = "NumberFieldIncrement";
|
|
62
|
+
export {
|
|
63
|
+
c as NumberFieldDecrement,
|
|
64
|
+
a as NumberFieldGroup,
|
|
65
|
+
l as NumberFieldIncrement,
|
|
66
|
+
b as NumberFieldInput,
|
|
67
|
+
u as NumberFieldRoot,
|
|
68
|
+
m as NumberFieldScrubArea,
|
|
69
|
+
d as NumberFieldScrubAreaCursor
|
|
70
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { RadioGroup } from '@base-ui/react/radio-group';
|
|
3
|
+
import * as React_2 from 'react';
|
|
4
|
+
|
|
5
|
+
export declare const RadioGroupRoot: {
|
|
6
|
+
({ className, ...props }: RadioGroupRootProps): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export declare type RadioGroupRootProps = React_2.ComponentProps<typeof RadioGroup>;
|
|
11
|
+
|
|
12
|
+
export { }
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { RadioGroup as a } from "@base-ui/react/radio-group";
|
|
4
|
+
import { c as e } from "./utils-B6yFEsav.js";
|
|
5
|
+
const i = ({ className: o, ...r }) => /* @__PURE__ */ t(
|
|
6
|
+
a,
|
|
7
|
+
{
|
|
8
|
+
className: e("flex flex-col items-start gap-2", o),
|
|
9
|
+
...r
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
i.displayName = "RadioGroupRoot";
|
|
13
|
+
export {
|
|
14
|
+
i as RadioGroupRoot
|
|
15
|
+
};
|
package/dist/radio.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { Radio } from '@base-ui/react/radio';
|
|
3
|
+
import * as React_2 from 'react';
|
|
4
|
+
|
|
5
|
+
export declare const RadioIndicator: {
|
|
6
|
+
({ className, ...props }: RadioIndicatorProps): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export declare type RadioIndicatorProps = React_2.ComponentProps<typeof Radio.Indicator>;
|
|
11
|
+
|
|
12
|
+
export declare const RadioRoot: {
|
|
13
|
+
({ className, ...props }: RadioRootProps): JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export declare type RadioRootProps = React_2.ComponentProps<typeof Radio.Root>;
|
|
18
|
+
|
|
19
|
+
export { }
|
package/dist/radio.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { Radio as i } from "@base-ui/react/radio";
|
|
4
|
+
import { c as a } from "./utils-B6yFEsav.js";
|
|
5
|
+
const t = ({ className: o, ...e }) => /* @__PURE__ */ r(
|
|
6
|
+
i.Root,
|
|
7
|
+
{
|
|
8
|
+
className: a(
|
|
9
|
+
"flex size-5 items-center justify-center rounded-full border border-input bg-transparent",
|
|
10
|
+
"transition-colors duration-150",
|
|
11
|
+
"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",
|
|
12
|
+
"data-checked:border-primary data-checked:bg-primary",
|
|
13
|
+
"data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
14
|
+
o
|
|
15
|
+
),
|
|
16
|
+
...e
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
t.displayName = "RadioRoot";
|
|
20
|
+
const d = ({ className: o, ...e }) => /* @__PURE__ */ r(
|
|
21
|
+
i.Indicator,
|
|
22
|
+
{
|
|
23
|
+
className: a(
|
|
24
|
+
"size-2 rounded-full bg-primary-foreground",
|
|
25
|
+
"data-unchecked:hidden",
|
|
26
|
+
o
|
|
27
|
+
),
|
|
28
|
+
...e
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
d.displayName = "RadioIndicator";
|
|
32
|
+
export {
|
|
33
|
+
d as RadioIndicator,
|
|
34
|
+
t as RadioRoot
|
|
35
|
+
};
|
package/dist/select.d.ts
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import * as React_2 from 'react';
|
|
3
|
+
import { Select } from '@base-ui/react/select';
|
|
4
|
+
import { SelectRootProps as SelectRootProps_2 } from '@base-ui/react/select';
|
|
5
|
+
|
|
6
|
+
export declare const SelectArrow: {
|
|
7
|
+
({ className, ...props }: SelectArrowProps): JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export declare type SelectArrowProps = React_2.ComponentProps<typeof Select.Arrow>;
|
|
12
|
+
|
|
13
|
+
export declare const SelectBackdrop: {
|
|
14
|
+
({ className, ...props }: SelectBackdropProps): JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export declare type SelectBackdropProps = React_2.ComponentProps<typeof Select.Backdrop>;
|
|
19
|
+
|
|
20
|
+
export declare const SelectGroup: {
|
|
21
|
+
({ className, ...props }: SelectGroupProps): JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export declare const SelectGroupLabel: {
|
|
26
|
+
({ className, ...props }: SelectGroupLabelProps): JSX.Element;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export declare type SelectGroupLabelProps = React_2.ComponentProps<typeof Select.GroupLabel>;
|
|
31
|
+
|
|
32
|
+
export declare type SelectGroupProps = React_2.ComponentProps<typeof Select.Group>;
|
|
33
|
+
|
|
34
|
+
export declare const SelectIcon: {
|
|
35
|
+
({ className, ...props }: SelectIconProps): JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export declare type SelectIconProps = React_2.ComponentProps<typeof Select.Icon>;
|
|
40
|
+
|
|
41
|
+
export declare const SelectItem: {
|
|
42
|
+
({ className, ...props }: SelectItemProps): JSX.Element;
|
|
43
|
+
displayName: string;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export declare const SelectItemIndicator: {
|
|
47
|
+
({ className, ...props }: SelectItemIndicatorProps): JSX.Element;
|
|
48
|
+
displayName: string;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export declare type SelectItemIndicatorProps = React_2.ComponentProps<typeof Select.ItemIndicator>;
|
|
52
|
+
|
|
53
|
+
export declare type SelectItemProps = React_2.ComponentProps<typeof Select.Item>;
|
|
54
|
+
|
|
55
|
+
export declare const SelectItemText: {
|
|
56
|
+
({ className, ...props }: SelectItemTextProps): JSX.Element;
|
|
57
|
+
displayName: string;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export declare type SelectItemTextProps = React_2.ComponentProps<typeof Select.ItemText>;
|
|
61
|
+
|
|
62
|
+
export declare const SelectList: {
|
|
63
|
+
({ className, ...props }: SelectListProps): JSX.Element;
|
|
64
|
+
displayName: string;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export declare type SelectListProps = React_2.ComponentProps<typeof Select.List>;
|
|
68
|
+
|
|
69
|
+
export declare const SelectPopup: {
|
|
70
|
+
({ className, ...props }: SelectPopupProps): JSX.Element;
|
|
71
|
+
displayName: string;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export declare type SelectPopupProps = React_2.ComponentProps<typeof Select.Popup>;
|
|
75
|
+
|
|
76
|
+
export declare const SelectPortal: {
|
|
77
|
+
(props: SelectPortalProps): JSX.Element;
|
|
78
|
+
displayName: string;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export declare type SelectPortalProps = React_2.ComponentProps<typeof Select.Portal>;
|
|
82
|
+
|
|
83
|
+
export declare const SelectPositioner: {
|
|
84
|
+
({ className, ...props }: SelectPositionerProps): JSX.Element;
|
|
85
|
+
displayName: string;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export declare type SelectPositionerProps = React_2.ComponentProps<typeof Select.Positioner>;
|
|
89
|
+
|
|
90
|
+
export declare function SelectRoot<Value, Multiple extends boolean | undefined = false>(props: SelectRootProps_2<Value, Multiple>): JSX.Element;
|
|
91
|
+
|
|
92
|
+
export declare namespace SelectRoot {
|
|
93
|
+
var displayName: string;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export declare type SelectRootProps<Value, Multiple extends boolean | undefined = false> = SelectRootProps_2<Value, Multiple>;
|
|
97
|
+
|
|
98
|
+
export declare const SelectScrollDownArrow: {
|
|
99
|
+
({ className, ...props }: SelectScrollDownArrowProps): JSX.Element;
|
|
100
|
+
displayName: string;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export declare type SelectScrollDownArrowProps = React_2.ComponentProps<typeof Select.ScrollDownArrow>;
|
|
104
|
+
|
|
105
|
+
export declare const SelectScrollUpArrow: {
|
|
106
|
+
({ className, ...props }: SelectScrollUpArrowProps): JSX.Element;
|
|
107
|
+
displayName: string;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export declare type SelectScrollUpArrowProps = React_2.ComponentProps<typeof Select.ScrollUpArrow>;
|
|
111
|
+
|
|
112
|
+
export declare const SelectSeparator: {
|
|
113
|
+
({ className, ...props }: SelectSeparatorProps): JSX.Element;
|
|
114
|
+
displayName: string;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export declare type SelectSeparatorProps = React_2.ComponentProps<typeof Select.Separator>;
|
|
118
|
+
|
|
119
|
+
export declare const SelectTrigger: {
|
|
120
|
+
({ className, ...props }: SelectTriggerProps): JSX.Element;
|
|
121
|
+
displayName: string;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export declare type SelectTriggerProps = React_2.ComponentProps<typeof Select.Trigger>;
|
|
125
|
+
|
|
126
|
+
export declare const SelectValue: {
|
|
127
|
+
({ className, ...props }: SelectValueProps): JSX.Element;
|
|
128
|
+
displayName: string;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
export declare type SelectValueProps = React_2.ComponentProps<typeof Select.Value>;
|
|
132
|
+
|
|
133
|
+
export { }
|
package/dist/select.js
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { Select as r } from "@base-ui/react/select";
|
|
4
|
+
import { A as l } from "./arrow-svg-C6zQTvgS.js";
|
|
5
|
+
import { c as o } from "./utils-B6yFEsav.js";
|
|
6
|
+
function s(e) {
|
|
7
|
+
return /* @__PURE__ */ a(r.Root, { ...e });
|
|
8
|
+
}
|
|
9
|
+
s.displayName = "SelectRoot";
|
|
10
|
+
const n = ({ className: e, ...t }) => /* @__PURE__ */ a(
|
|
11
|
+
r.Trigger,
|
|
12
|
+
{
|
|
13
|
+
className: o(
|
|
14
|
+
"flex min-h-9 min-w-40 items-center justify-between gap-3 rounded-md border border-border bg-background px-3.5 pr-3 text-base text-foreground select-none hover:bg-muted data-popup-open:bg-muted",
|
|
15
|
+
e
|
|
16
|
+
),
|
|
17
|
+
...t
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
n.displayName = "SelectTrigger";
|
|
21
|
+
const d = ({ className: e, ...t }) => /* @__PURE__ */ a(
|
|
22
|
+
r.Value,
|
|
23
|
+
{
|
|
24
|
+
className: o("data-placeholder:text-muted-foreground text-sm", e),
|
|
25
|
+
...t
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
d.displayName = "SelectValue";
|
|
29
|
+
const i = ({ className: e, ...t }) => /* @__PURE__ */ a(r.Icon, { className: o("flex", e), ...t });
|
|
30
|
+
i.displayName = "SelectIcon";
|
|
31
|
+
const c = ({ className: e, ...t }) => /* @__PURE__ */ a(
|
|
32
|
+
r.Backdrop,
|
|
33
|
+
{
|
|
34
|
+
className: o(
|
|
35
|
+
"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",
|
|
36
|
+
"transition-opacity duration-200",
|
|
37
|
+
"data-starting-style:opacity-0 data-ending-style:opacity-0",
|
|
38
|
+
e
|
|
39
|
+
),
|
|
40
|
+
...t
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
c.displayName = "SelectBackdrop";
|
|
44
|
+
const p = (e) => /* @__PURE__ */ a(r.Portal, { ...e });
|
|
45
|
+
p.displayName = "SelectPortal";
|
|
46
|
+
const m = ({ className: e, ...t }) => /* @__PURE__ */ a(
|
|
47
|
+
r.Positioner,
|
|
48
|
+
{
|
|
49
|
+
className: o("outline-none select-none z-50", e),
|
|
50
|
+
sideOffset: 8,
|
|
51
|
+
...t
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
m.displayName = "SelectPositioner";
|
|
55
|
+
const u = ({ className: e, ...t }) => /* @__PURE__ */ a(
|
|
56
|
+
r.Popup,
|
|
57
|
+
{
|
|
58
|
+
className: o(
|
|
59
|
+
"group min-w-(--anchor-width) origin-(--transform-origin) bg-clip-padding rounded-md bg-background text-foreground shadow-lg shadow-gray-200 border border-border transition-[transform,scale,opacity]",
|
|
60
|
+
"data-ending-style:scale-90 data-ending-style:opacity-0",
|
|
61
|
+
"data-[side=none]:min-w-[calc(var(--anchor-width)+1rem)] data-[side=none]:data-ending-style:transition-none",
|
|
62
|
+
"data-starting-style:scale-90 data-starting-style:opacity-0",
|
|
63
|
+
"data-[side=none]:data-starting-style:scale-100 data-[side=none]:data-starting-style:opacity-100 data-[side=none]:data-starting-style:transition-none",
|
|
64
|
+
"dark:shadow-none",
|
|
65
|
+
e
|
|
66
|
+
),
|
|
67
|
+
...t
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
u.displayName = "SelectPopup";
|
|
71
|
+
const g = ({ className: e, ...t }) => /* @__PURE__ */ a(
|
|
72
|
+
r.List,
|
|
73
|
+
{
|
|
74
|
+
className: o(
|
|
75
|
+
"relative py-1 scroll-py-6 overflow-y-auto max-h-(--available-height)",
|
|
76
|
+
e
|
|
77
|
+
),
|
|
78
|
+
...t
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
g.displayName = "SelectList";
|
|
82
|
+
const b = ({ className: e, ...t }) => /* @__PURE__ */ a(
|
|
83
|
+
r.Arrow,
|
|
84
|
+
{
|
|
85
|
+
className: o(
|
|
86
|
+
"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",
|
|
87
|
+
e
|
|
88
|
+
),
|
|
89
|
+
...t,
|
|
90
|
+
children: /* @__PURE__ */ a(l, {})
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
b.displayName = "SelectArrow";
|
|
94
|
+
const f = ({ className: e, ...t }) => /* @__PURE__ */ a(
|
|
95
|
+
r.Item,
|
|
96
|
+
{
|
|
97
|
+
className: o(
|
|
98
|
+
"grid cursor-default grid-cols-[0.75rem_1fr] items-center gap-2 py-1.5 pr-4 pl-2.5 text-sm outline-none select-none",
|
|
99
|
+
"group-data-[side=none]:pr-12 group-data-[side=none]:text-base group-data-[side=none]:leading-4",
|
|
100
|
+
"data-highlighted:relative data-highlighted:z-0 data-highlighted:text-background",
|
|
101
|
+
"data-highlighted:before:absolute data-highlighted:before:inset-x-1 data-highlighted:before:inset-y-0 data-highlighted:before:z-[-1] data-highlighted:before:rounded-sm data-highlighted:before:bg-foreground",
|
|
102
|
+
"pointer-coarse:py-2.5 pointer-coarse:text-[0.925rem]",
|
|
103
|
+
e
|
|
104
|
+
),
|
|
105
|
+
...t
|
|
106
|
+
}
|
|
107
|
+
);
|
|
108
|
+
f.displayName = "SelectItem";
|
|
109
|
+
const h = ({ className: e, ...t }) => /* @__PURE__ */ a(r.ItemText, { className: o("col-start-2 text-sm", e), ...t });
|
|
110
|
+
h.displayName = "SelectItemText";
|
|
111
|
+
const y = ({ className: e, ...t }) => /* @__PURE__ */ a(r.ItemIndicator, { className: o("col-start-1", e), ...t });
|
|
112
|
+
y.displayName = "SelectItemIndicator";
|
|
113
|
+
const S = ({ className: e, ...t }) => /* @__PURE__ */ a(r.Group, { className: o(e), ...t });
|
|
114
|
+
S.displayName = "SelectGroup";
|
|
115
|
+
const x = ({ className: e, ...t }) => /* @__PURE__ */ a(
|
|
116
|
+
r.GroupLabel,
|
|
117
|
+
{
|
|
118
|
+
className: o("px-3 py-1.5 text-sm font-semibold", e),
|
|
119
|
+
...t
|
|
120
|
+
}
|
|
121
|
+
);
|
|
122
|
+
x.displayName = "SelectGroupLabel";
|
|
123
|
+
const N = ({ className: e, ...t }) => /* @__PURE__ */ a(
|
|
124
|
+
r.ScrollUpArrow,
|
|
125
|
+
{
|
|
126
|
+
className: o(
|
|
127
|
+
'top-0 z-1 flex h-4 w-full cursor-default items-center justify-center rounded-md bg-background text-center text-xs before:absolute data-[side=none]:before:-top-full before:left-0 before:h-full before:w-full before:content-[""]',
|
|
128
|
+
e
|
|
129
|
+
),
|
|
130
|
+
...t
|
|
131
|
+
}
|
|
132
|
+
);
|
|
133
|
+
N.displayName = "SelectScrollUpArrow";
|
|
134
|
+
const w = ({ className: e, ...t }) => /* @__PURE__ */ a(
|
|
135
|
+
r.ScrollDownArrow,
|
|
136
|
+
{
|
|
137
|
+
className: o(
|
|
138
|
+
'bottom-0 z-1 flex h-4 w-full cursor-default items-center justify-center rounded-md bg-background text-center text-xs before:absolute before:left-0 before:h-full before:w-full before:content-[""] bottom-0 data-[side=none]:before:-bottom-full',
|
|
139
|
+
e
|
|
140
|
+
),
|
|
141
|
+
...t
|
|
142
|
+
}
|
|
143
|
+
);
|
|
144
|
+
w.displayName = "SelectScrollDownArrow";
|
|
145
|
+
const I = ({ className: e, ...t }) => /* @__PURE__ */ a(
|
|
146
|
+
r.Separator,
|
|
147
|
+
{
|
|
148
|
+
className: o("-mx-1 my-1 h-px bg-border", e),
|
|
149
|
+
...t
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
I.displayName = "SelectSeparator";
|
|
153
|
+
export {
|
|
154
|
+
b as SelectArrow,
|
|
155
|
+
c as SelectBackdrop,
|
|
156
|
+
S as SelectGroup,
|
|
157
|
+
x as SelectGroupLabel,
|
|
158
|
+
i as SelectIcon,
|
|
159
|
+
f as SelectItem,
|
|
160
|
+
y as SelectItemIndicator,
|
|
161
|
+
h as SelectItemText,
|
|
162
|
+
g as SelectList,
|
|
163
|
+
u as SelectPopup,
|
|
164
|
+
p as SelectPortal,
|
|
165
|
+
m as SelectPositioner,
|
|
166
|
+
s as SelectRoot,
|
|
167
|
+
w as SelectScrollDownArrow,
|
|
168
|
+
N as SelectScrollUpArrow,
|
|
169
|
+
I as SelectSeparator,
|
|
170
|
+
n as SelectTrigger,
|
|
171
|
+
d as SelectValue
|
|
172
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import * as React_2 from 'react';
|
|
3
|
+
|
|
4
|
+
export declare const Textarea: {
|
|
5
|
+
({ className, ...props }: TextareaProps): JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export declare type TextareaProps = React_2.ComponentProps<'textarea'>;
|
|
10
|
+
|
|
11
|
+
export { }
|
package/dist/textarea.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { i as r } from "./form-variants-D4ge0qav.js";
|
|
4
|
+
import { c as s } from "./utils-B6yFEsav.js";
|
|
5
|
+
const m = ({ className: a, ...e }) => /* @__PURE__ */ t(
|
|
6
|
+
"textarea",
|
|
7
|
+
{
|
|
8
|
+
className: s(r, "h-auto min-h-20 py-2", a),
|
|
9
|
+
...e
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
m.displayName = "Textarea";
|
|
13
|
+
export {
|
|
14
|
+
m as Textarea
|
|
15
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lglab/compose-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "A collection of components built with Base UI & Tailwind CSS",
|
|
5
5
|
"author": "LGLab",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,6 +46,14 @@
|
|
|
46
46
|
"import": "./dist/card.js",
|
|
47
47
|
"types": "./dist/card.d.ts"
|
|
48
48
|
},
|
|
49
|
+
"./checkbox": {
|
|
50
|
+
"import": "./dist/checkbox.js",
|
|
51
|
+
"types": "./dist/checkbox.d.ts"
|
|
52
|
+
},
|
|
53
|
+
"./checkbox-group": {
|
|
54
|
+
"import": "./dist/checkbox-group.js",
|
|
55
|
+
"types": "./dist/checkbox-group.d.ts"
|
|
56
|
+
},
|
|
49
57
|
"./collapsible": {
|
|
50
58
|
"import": "./dist/collapsible.js",
|
|
51
59
|
"types": "./dist/collapsible.d.ts"
|
|
@@ -62,6 +70,22 @@
|
|
|
62
70
|
"import": "./dist/drawer.js",
|
|
63
71
|
"types": "./dist/drawer.d.ts"
|
|
64
72
|
},
|
|
73
|
+
"./field": {
|
|
74
|
+
"import": "./dist/field.js",
|
|
75
|
+
"types": "./dist/field.d.ts"
|
|
76
|
+
},
|
|
77
|
+
"./fieldset": {
|
|
78
|
+
"import": "./dist/fieldset.js",
|
|
79
|
+
"types": "./dist/fieldset.d.ts"
|
|
80
|
+
},
|
|
81
|
+
"./form": {
|
|
82
|
+
"import": "./dist/form.js",
|
|
83
|
+
"types": "./dist/form.d.ts"
|
|
84
|
+
},
|
|
85
|
+
"./input": {
|
|
86
|
+
"import": "./dist/input.js",
|
|
87
|
+
"types": "./dist/input.d.ts"
|
|
88
|
+
},
|
|
65
89
|
"./menu": {
|
|
66
90
|
"import": "./dist/menu.js",
|
|
67
91
|
"types": "./dist/menu.d.ts"
|
|
@@ -78,6 +102,10 @@
|
|
|
78
102
|
"import": "./dist/navigation-menu.js",
|
|
79
103
|
"types": "./dist/navigation-menu.d.ts"
|
|
80
104
|
},
|
|
105
|
+
"./number-field": {
|
|
106
|
+
"import": "./dist/number-field.js",
|
|
107
|
+
"types": "./dist/number-field.d.ts"
|
|
108
|
+
},
|
|
81
109
|
"./popover": {
|
|
82
110
|
"import": "./dist/popover.js",
|
|
83
111
|
"types": "./dist/popover.d.ts"
|
|
@@ -90,10 +118,22 @@
|
|
|
90
118
|
"import": "./dist/progress.js",
|
|
91
119
|
"types": "./dist/progress.d.ts"
|
|
92
120
|
},
|
|
121
|
+
"./radio": {
|
|
122
|
+
"import": "./dist/radio.js",
|
|
123
|
+
"types": "./dist/radio.d.ts"
|
|
124
|
+
},
|
|
125
|
+
"./radio-group": {
|
|
126
|
+
"import": "./dist/radio-group.js",
|
|
127
|
+
"types": "./dist/radio-group.d.ts"
|
|
128
|
+
},
|
|
93
129
|
"./scroll-area": {
|
|
94
130
|
"import": "./dist/scroll-area.js",
|
|
95
131
|
"types": "./dist/scroll-area.d.ts"
|
|
96
132
|
},
|
|
133
|
+
"./select": {
|
|
134
|
+
"import": "./dist/select.js",
|
|
135
|
+
"types": "./dist/select.d.ts"
|
|
136
|
+
},
|
|
97
137
|
"./separator": {
|
|
98
138
|
"import": "./dist/separator.js",
|
|
99
139
|
"types": "./dist/separator.d.ts"
|
|
@@ -110,6 +150,10 @@
|
|
|
110
150
|
"import": "./dist/tabs.js",
|
|
111
151
|
"types": "./dist/tabs.d.ts"
|
|
112
152
|
},
|
|
153
|
+
"./textarea": {
|
|
154
|
+
"import": "./dist/textarea.js",
|
|
155
|
+
"types": "./dist/textarea.d.ts"
|
|
156
|
+
},
|
|
113
157
|
"./toast": {
|
|
114
158
|
"import": "./dist/toast.js",
|
|
115
159
|
"types": "./dist/toast.d.ts"
|
|
@@ -155,10 +199,10 @@
|
|
|
155
199
|
"react-dom": "^19.2.3",
|
|
156
200
|
"rollup-preserve-directives": "^1.1.3",
|
|
157
201
|
"typescript": "~5.9.3",
|
|
158
|
-
"typescript-eslint": "^8.53.
|
|
202
|
+
"typescript-eslint": "^8.53.1",
|
|
159
203
|
"vite": "^7.3.1",
|
|
160
204
|
"vite-plugin-dts": "^4.5.4",
|
|
161
|
-
"vite-plugin-static-copy": "^3.1.
|
|
205
|
+
"vite-plugin-static-copy": "^3.1.5"
|
|
162
206
|
},
|
|
163
207
|
"scripts": {
|
|
164
208
|
"build": "tsc -b && vite build"
|