@pixpilot/shadcn 0.4.0 → 0.6.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/components/index.cjs +6 -4
- package/dist/components/index.d.cts +6 -4
- package/dist/components/index.d.ts +6 -4
- package/dist/components/index.js +7 -5
- package/dist/components/ui/OrContinueWithSeparator.d.cts +2 -2
- package/dist/components/ui/OrContinueWithSeparator.d.ts +2 -2
- package/dist/components/ui/button.cjs +3 -1
- package/dist/components/ui/button.js +3 -1
- package/dist/components/ui/color-picker.cjs +1171 -0
- package/dist/components/ui/color-picker.d.cts +94 -0
- package/dist/components/ui/color-picker.d.ts +94 -0
- package/dist/components/ui/color-picker.js +1152 -0
- package/dist/components/ui/command.d.cts +10 -10
- package/dist/components/ui/command.d.ts +10 -10
- package/dist/components/ui/dialog.d.cts +11 -11
- package/dist/components/ui/dialog.d.ts +11 -11
- package/dist/components/ui/dropdown-menu.d.cts +16 -16
- package/dist/components/ui/dropdown-menu.d.ts +16 -16
- package/dist/components/ui/file-upload.d.cts +11 -11
- package/dist/components/ui/file-upload.d.ts +11 -11
- package/dist/components/ui/form.d.cts +7 -7
- package/dist/components/ui/form.d.ts +7 -7
- package/dist/components/ui/index.cjs +6 -4
- package/dist/components/ui/index.d.cts +6 -4
- package/dist/components/ui/index.d.ts +6 -4
- package/dist/components/ui/index.js +7 -5
- package/dist/components/ui/input-group.cjs +90 -0
- package/dist/components/ui/input-group.d.cts +43 -0
- package/dist/components/ui/input-group.d.ts +43 -0
- package/dist/components/ui/input-group.js +81 -0
- package/dist/components/ui/input.d.cts +2 -2
- package/dist/components/ui/input.d.ts +2 -2
- package/dist/components/ui/label.d.cts +2 -2
- package/dist/components/ui/label.d.ts +2 -2
- package/dist/components/ui/pagination.d.cts +8 -8
- package/dist/components/ui/pagination.d.ts +8 -8
- package/dist/components/ui/popover.d.cts +5 -5
- package/dist/components/ui/popover.d.ts +5 -5
- package/dist/components/ui/radio-group.d.cts +3 -3
- package/dist/components/ui/radio-group.d.ts +3 -3
- package/dist/components/ui/select.d.cts +11 -11
- package/dist/components/ui/select.d.ts +11 -11
- package/dist/components/ui/separator.d.cts +2 -2
- package/dist/components/ui/separator.d.ts +2 -2
- package/dist/components/ui/shadcn-io/tags/index.cjs +1 -1
- package/dist/components/ui/shadcn-io/tags/index.d.cts +10 -10
- package/dist/components/ui/shadcn-io/tags/index.d.ts +10 -10
- package/dist/components/ui/shadcn-io/tags/index.js +1 -1
- package/dist/components/ui/shadcn-io/tags-input-inline/index.d.cts +7 -7
- package/dist/components/ui/shadcn-io/tags-input-inline/index.d.ts +7 -7
- package/dist/components/ui/sheet.d.cts +9 -9
- package/dist/components/ui/sheet.d.ts +9 -9
- package/dist/components/ui/slider.d.cts +2 -2
- package/dist/components/ui/slider.d.ts +2 -2
- package/dist/components/ui/switch.d.cts +2 -2
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/components/ui/tabs.cjs +24 -4
- package/dist/components/ui/tabs.d.cts +15 -5
- package/dist/components/ui/tabs.d.ts +15 -5
- package/dist/components/ui/tabs.js +23 -4
- package/dist/components/ui/textarea.d.cts +2 -2
- package/dist/components/ui/textarea.d.ts +2 -2
- package/dist/components/visually-hidden-input.cjs +116 -0
- package/dist/components/visually-hidden-input.js +113 -0
- package/dist/hooks/use-as-ref.cjs +16 -0
- package/dist/hooks/use-as-ref.js +14 -0
- package/dist/hooks/use-isomorphic-layout-effect.cjs +9 -0
- package/dist/hooks/use-isomorphic-layout-effect.js +7 -0
- package/dist/hooks/use-lazy-ref.cjs +13 -0
- package/dist/hooks/use-lazy-ref.js +11 -0
- package/dist/index.cjs +24 -4
- package/dist/index.d.cts +7 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.js +8 -6
- package/dist/lib/compose-refs.cjs +44 -0
- package/dist/lib/compose-refs.js +42 -0
- package/package.json +3 -3
|
@@ -1,23 +1,33 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as class_variance_authority_types4 from "class-variance-authority/types";
|
|
2
|
+
import * as react_jsx_runtime149 from "react/jsx-runtime";
|
|
3
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
4
|
import * as React from "react";
|
|
3
5
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
4
6
|
|
|
5
7
|
//#region src/components/ui/tabs.d.ts
|
|
8
|
+
declare const tabsListVariants: (props?: ({
|
|
9
|
+
variant?: "default" | "outline" | "ghost" | "pill" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types4.ClassProp) | undefined) => string;
|
|
11
|
+
declare const tabsTriggerVariants: (props?: ({
|
|
12
|
+
variant?: "default" | "outline" | "ghost" | "pill" | null | undefined;
|
|
13
|
+
} & class_variance_authority_types4.ClassProp) | undefined) => string;
|
|
6
14
|
declare function Tabs({
|
|
7
15
|
className,
|
|
8
16
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof TabsPrimitive.Root>):
|
|
17
|
+
}: React.ComponentProps<typeof TabsPrimitive.Root>): react_jsx_runtime149.JSX.Element;
|
|
10
18
|
declare function TabsList({
|
|
11
19
|
className,
|
|
20
|
+
variant,
|
|
12
21
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof TabsPrimitive.List>):
|
|
22
|
+
}: React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>): react_jsx_runtime149.JSX.Element;
|
|
14
23
|
declare function TabsTrigger({
|
|
15
24
|
className,
|
|
25
|
+
variant,
|
|
16
26
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof TabsPrimitive.Trigger>):
|
|
27
|
+
}: React.ComponentProps<typeof TabsPrimitive.Trigger> & VariantProps<typeof tabsTriggerVariants>): react_jsx_runtime149.JSX.Element;
|
|
18
28
|
declare function TabsContent({
|
|
19
29
|
className,
|
|
20
30
|
...props
|
|
21
|
-
}: React.ComponentProps<typeof TabsPrimitive.Content>):
|
|
31
|
+
}: React.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime149.JSX.Element;
|
|
22
32
|
//#endregion
|
|
23
33
|
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
@@ -1,23 +1,33 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
1
2
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime149 from "react/jsx-runtime";
|
|
3
4
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
5
|
+
import * as class_variance_authority_types4 from "class-variance-authority/types";
|
|
4
6
|
|
|
5
7
|
//#region src/components/ui/tabs.d.ts
|
|
8
|
+
declare const tabsListVariants: (props?: ({
|
|
9
|
+
variant?: "default" | "outline" | "ghost" | "pill" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types4.ClassProp) | undefined) => string;
|
|
11
|
+
declare const tabsTriggerVariants: (props?: ({
|
|
12
|
+
variant?: "default" | "outline" | "ghost" | "pill" | null | undefined;
|
|
13
|
+
} & class_variance_authority_types4.ClassProp) | undefined) => string;
|
|
6
14
|
declare function Tabs({
|
|
7
15
|
className,
|
|
8
16
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof TabsPrimitive.Root>):
|
|
17
|
+
}: React.ComponentProps<typeof TabsPrimitive.Root>): react_jsx_runtime149.JSX.Element;
|
|
10
18
|
declare function TabsList({
|
|
11
19
|
className,
|
|
20
|
+
variant,
|
|
12
21
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof TabsPrimitive.List>):
|
|
22
|
+
}: React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>): react_jsx_runtime149.JSX.Element;
|
|
14
23
|
declare function TabsTrigger({
|
|
15
24
|
className,
|
|
25
|
+
variant,
|
|
16
26
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof TabsPrimitive.Trigger>):
|
|
27
|
+
}: React.ComponentProps<typeof TabsPrimitive.Trigger> & VariantProps<typeof tabsTriggerVariants>): react_jsx_runtime149.JSX.Element;
|
|
18
28
|
declare function TabsContent({
|
|
19
29
|
className,
|
|
20
30
|
...props
|
|
21
|
-
}: React.ComponentProps<typeof TabsPrimitive.Content>):
|
|
31
|
+
}: React.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime149.JSX.Element;
|
|
22
32
|
//#endregion
|
|
23
33
|
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
@@ -1,10 +1,29 @@
|
|
|
1
1
|
import { cn } from "../../lib/utils.js";
|
|
2
2
|
import "../../lib/index.js";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
3
4
|
import "react";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
6
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
6
7
|
|
|
7
8
|
//#region src/components/ui/tabs.tsx
|
|
9
|
+
const tabsListVariants = cva("inline-flex items-center justify-center", {
|
|
10
|
+
variants: { variant: {
|
|
11
|
+
default: "bg-muted text-muted-foreground h-9 w-fit rounded-lg p-[3px]",
|
|
12
|
+
outline: "border border-input bg-background h-9 w-fit rounded-lg p-[3px]",
|
|
13
|
+
ghost: "h-9 w-fit rounded-lg p-[3px]",
|
|
14
|
+
pill: "bg-muted text-muted-foreground h-10 w-fit rounded-full p-1"
|
|
15
|
+
} },
|
|
16
|
+
defaultVariants: { variant: "default" }
|
|
17
|
+
});
|
|
18
|
+
const tabsTriggerVariants = cva("inline-flex items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
19
|
+
variants: { variant: {
|
|
20
|
+
default: "data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground h-[calc(100%-1px)] flex-1 data-[state=active]:shadow-sm",
|
|
21
|
+
outline: "data-[state=active]:bg-background data-[state=active]:border-input focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-muted-foreground data-[state=active]:text-foreground h-[calc(100%-1px)] flex-1 data-[state=active]:shadow-sm border-input",
|
|
22
|
+
ghost: "data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-muted-foreground hover:text-foreground h-[calc(100%-1px)] flex-1",
|
|
23
|
+
pill: "data-[state=active]:bg-background data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground h-[calc(100%-2px)] flex-1 rounded-full data-[state=active]:shadow-sm"
|
|
24
|
+
} },
|
|
25
|
+
defaultVariants: { variant: "default" }
|
|
26
|
+
});
|
|
8
27
|
function Tabs({ className,...props }) {
|
|
9
28
|
return /* @__PURE__ */ jsx(TabsPrimitive.Root, {
|
|
10
29
|
"data-slot": "tabs",
|
|
@@ -12,17 +31,17 @@ function Tabs({ className,...props }) {
|
|
|
12
31
|
...props
|
|
13
32
|
});
|
|
14
33
|
}
|
|
15
|
-
function TabsList({ className,...props }) {
|
|
34
|
+
function TabsList({ className, variant,...props }) {
|
|
16
35
|
return /* @__PURE__ */ jsx(TabsPrimitive.List, {
|
|
17
36
|
"data-slot": "tabs-list",
|
|
18
|
-
className: cn(
|
|
37
|
+
className: cn(tabsListVariants({ variant }), className),
|
|
19
38
|
...props
|
|
20
39
|
});
|
|
21
40
|
}
|
|
22
|
-
function TabsTrigger({ className,...props }) {
|
|
41
|
+
function TabsTrigger({ className, variant,...props }) {
|
|
23
42
|
return /* @__PURE__ */ jsx(TabsPrimitive.Trigger, {
|
|
24
43
|
"data-slot": "tabs-trigger",
|
|
25
|
-
className: cn(
|
|
44
|
+
className: cn(tabsTriggerVariants({ variant }), className),
|
|
26
45
|
...props
|
|
27
46
|
});
|
|
28
47
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime153 from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ui/textarea.d.ts
|
|
5
5
|
declare function Textarea({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<'textarea'>):
|
|
8
|
+
}: React.ComponentProps<'textarea'>): react_jsx_runtime153.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Textarea };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime153 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ui/textarea.d.ts
|
|
5
5
|
declare function Textarea({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<'textarea'>):
|
|
8
|
+
}: React.ComponentProps<'textarea'>): react_jsx_runtime153.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Textarea };
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
5
|
+
let react = require("react");
|
|
6
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
9
|
+
|
|
10
|
+
//#region src/components/visually-hidden-input.tsx
|
|
11
|
+
function VisuallyHiddenInput(props) {
|
|
12
|
+
const { control, value, checked, bubbles = true, type = "hidden", style,...inputProps } = props;
|
|
13
|
+
const isCheckInput = react.useMemo(() => type === "checkbox" || type === "radio" || type === "switch", [type]);
|
|
14
|
+
const inputRef = react.useRef(null);
|
|
15
|
+
const prevValueRef = react.useRef({
|
|
16
|
+
value: isCheckInput ? checked : value,
|
|
17
|
+
previous: isCheckInput ? checked : value
|
|
18
|
+
});
|
|
19
|
+
const prevValue = react.useMemo(() => {
|
|
20
|
+
const currentValue = isCheckInput ? checked : value;
|
|
21
|
+
if (prevValueRef.current.value !== currentValue) {
|
|
22
|
+
prevValueRef.current.previous = prevValueRef.current.value;
|
|
23
|
+
prevValueRef.current.value = currentValue;
|
|
24
|
+
}
|
|
25
|
+
return prevValueRef.current.previous;
|
|
26
|
+
}, [
|
|
27
|
+
isCheckInput,
|
|
28
|
+
value,
|
|
29
|
+
checked
|
|
30
|
+
]);
|
|
31
|
+
const [controlSize, setControlSize] = react.useState({});
|
|
32
|
+
react.useLayoutEffect(() => {
|
|
33
|
+
if (!control) {
|
|
34
|
+
setControlSize({});
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
setControlSize({
|
|
38
|
+
width: control.offsetWidth,
|
|
39
|
+
height: control.offsetHeight
|
|
40
|
+
});
|
|
41
|
+
if (typeof window === "undefined") return;
|
|
42
|
+
const resizeObserver = new ResizeObserver((entries) => {
|
|
43
|
+
if (!Array.isArray(entries) || !entries.length) return;
|
|
44
|
+
const entry = entries[0];
|
|
45
|
+
if (!entry) return;
|
|
46
|
+
let width;
|
|
47
|
+
let height;
|
|
48
|
+
if ("borderBoxSize" in entry) {
|
|
49
|
+
const borderSizeEntry = entry.borderBoxSize;
|
|
50
|
+
const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
|
|
51
|
+
width = borderSize.inlineSize;
|
|
52
|
+
height = borderSize.blockSize;
|
|
53
|
+
} else {
|
|
54
|
+
width = control.offsetWidth;
|
|
55
|
+
height = control.offsetHeight;
|
|
56
|
+
}
|
|
57
|
+
setControlSize({
|
|
58
|
+
width,
|
|
59
|
+
height
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
resizeObserver.observe(control, { box: "border-box" });
|
|
63
|
+
return () => {
|
|
64
|
+
resizeObserver.disconnect();
|
|
65
|
+
};
|
|
66
|
+
}, [control]);
|
|
67
|
+
react.useEffect(() => {
|
|
68
|
+
const input = inputRef.current;
|
|
69
|
+
if (!input) return;
|
|
70
|
+
const inputProto = window.HTMLInputElement.prototype;
|
|
71
|
+
const propertyKey = isCheckInput ? "checked" : "value";
|
|
72
|
+
const eventType = isCheckInput ? "click" : "input";
|
|
73
|
+
const currentValue = isCheckInput ? checked : value;
|
|
74
|
+
const serializedCurrentValue = isCheckInput ? checked : typeof value === "object" && value !== null ? JSON.stringify(value) : value;
|
|
75
|
+
const setter = Object.getOwnPropertyDescriptor(inputProto, propertyKey)?.set;
|
|
76
|
+
if (prevValue !== currentValue && setter) {
|
|
77
|
+
const event = new Event(eventType, { bubbles });
|
|
78
|
+
setter.call(input, serializedCurrentValue);
|
|
79
|
+
input.dispatchEvent(event);
|
|
80
|
+
}
|
|
81
|
+
}, [
|
|
82
|
+
prevValue,
|
|
83
|
+
value,
|
|
84
|
+
checked,
|
|
85
|
+
bubbles,
|
|
86
|
+
isCheckInput
|
|
87
|
+
]);
|
|
88
|
+
const composedStyle = react.useMemo(() => {
|
|
89
|
+
return {
|
|
90
|
+
...style,
|
|
91
|
+
...controlSize.width !== void 0 && controlSize.height !== void 0 ? controlSize : {},
|
|
92
|
+
border: 0,
|
|
93
|
+
clip: "rect(0 0 0 0)",
|
|
94
|
+
clipPath: "inset(50%)",
|
|
95
|
+
height: "1px",
|
|
96
|
+
margin: "-1px",
|
|
97
|
+
overflow: "hidden",
|
|
98
|
+
padding: 0,
|
|
99
|
+
position: "absolute",
|
|
100
|
+
whiteSpace: "nowrap",
|
|
101
|
+
width: "1px"
|
|
102
|
+
};
|
|
103
|
+
}, [style, controlSize]);
|
|
104
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
105
|
+
type,
|
|
106
|
+
...inputProps,
|
|
107
|
+
ref: inputRef,
|
|
108
|
+
"aria-hidden": isCheckInput,
|
|
109
|
+
tabIndex: -1,
|
|
110
|
+
defaultChecked: isCheckInput ? checked : void 0,
|
|
111
|
+
style: composedStyle
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
//#endregion
|
|
116
|
+
exports.VisuallyHiddenInput = VisuallyHiddenInput;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/visually-hidden-input.tsx
|
|
8
|
+
function VisuallyHiddenInput(props) {
|
|
9
|
+
const { control, value, checked, bubbles = true, type = "hidden", style,...inputProps } = props;
|
|
10
|
+
const isCheckInput = React.useMemo(() => type === "checkbox" || type === "radio" || type === "switch", [type]);
|
|
11
|
+
const inputRef = React.useRef(null);
|
|
12
|
+
const prevValueRef = React.useRef({
|
|
13
|
+
value: isCheckInput ? checked : value,
|
|
14
|
+
previous: isCheckInput ? checked : value
|
|
15
|
+
});
|
|
16
|
+
const prevValue = React.useMemo(() => {
|
|
17
|
+
const currentValue = isCheckInput ? checked : value;
|
|
18
|
+
if (prevValueRef.current.value !== currentValue) {
|
|
19
|
+
prevValueRef.current.previous = prevValueRef.current.value;
|
|
20
|
+
prevValueRef.current.value = currentValue;
|
|
21
|
+
}
|
|
22
|
+
return prevValueRef.current.previous;
|
|
23
|
+
}, [
|
|
24
|
+
isCheckInput,
|
|
25
|
+
value,
|
|
26
|
+
checked
|
|
27
|
+
]);
|
|
28
|
+
const [controlSize, setControlSize] = React.useState({});
|
|
29
|
+
React.useLayoutEffect(() => {
|
|
30
|
+
if (!control) {
|
|
31
|
+
setControlSize({});
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
setControlSize({
|
|
35
|
+
width: control.offsetWidth,
|
|
36
|
+
height: control.offsetHeight
|
|
37
|
+
});
|
|
38
|
+
if (typeof window === "undefined") return;
|
|
39
|
+
const resizeObserver = new ResizeObserver((entries) => {
|
|
40
|
+
if (!Array.isArray(entries) || !entries.length) return;
|
|
41
|
+
const entry = entries[0];
|
|
42
|
+
if (!entry) return;
|
|
43
|
+
let width;
|
|
44
|
+
let height;
|
|
45
|
+
if ("borderBoxSize" in entry) {
|
|
46
|
+
const borderSizeEntry = entry.borderBoxSize;
|
|
47
|
+
const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
|
|
48
|
+
width = borderSize.inlineSize;
|
|
49
|
+
height = borderSize.blockSize;
|
|
50
|
+
} else {
|
|
51
|
+
width = control.offsetWidth;
|
|
52
|
+
height = control.offsetHeight;
|
|
53
|
+
}
|
|
54
|
+
setControlSize({
|
|
55
|
+
width,
|
|
56
|
+
height
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
resizeObserver.observe(control, { box: "border-box" });
|
|
60
|
+
return () => {
|
|
61
|
+
resizeObserver.disconnect();
|
|
62
|
+
};
|
|
63
|
+
}, [control]);
|
|
64
|
+
React.useEffect(() => {
|
|
65
|
+
const input = inputRef.current;
|
|
66
|
+
if (!input) return;
|
|
67
|
+
const inputProto = window.HTMLInputElement.prototype;
|
|
68
|
+
const propertyKey = isCheckInput ? "checked" : "value";
|
|
69
|
+
const eventType = isCheckInput ? "click" : "input";
|
|
70
|
+
const currentValue = isCheckInput ? checked : value;
|
|
71
|
+
const serializedCurrentValue = isCheckInput ? checked : typeof value === "object" && value !== null ? JSON.stringify(value) : value;
|
|
72
|
+
const setter = Object.getOwnPropertyDescriptor(inputProto, propertyKey)?.set;
|
|
73
|
+
if (prevValue !== currentValue && setter) {
|
|
74
|
+
const event = new Event(eventType, { bubbles });
|
|
75
|
+
setter.call(input, serializedCurrentValue);
|
|
76
|
+
input.dispatchEvent(event);
|
|
77
|
+
}
|
|
78
|
+
}, [
|
|
79
|
+
prevValue,
|
|
80
|
+
value,
|
|
81
|
+
checked,
|
|
82
|
+
bubbles,
|
|
83
|
+
isCheckInput
|
|
84
|
+
]);
|
|
85
|
+
const composedStyle = React.useMemo(() => {
|
|
86
|
+
return {
|
|
87
|
+
...style,
|
|
88
|
+
...controlSize.width !== void 0 && controlSize.height !== void 0 ? controlSize : {},
|
|
89
|
+
border: 0,
|
|
90
|
+
clip: "rect(0 0 0 0)",
|
|
91
|
+
clipPath: "inset(50%)",
|
|
92
|
+
height: "1px",
|
|
93
|
+
margin: "-1px",
|
|
94
|
+
overflow: "hidden",
|
|
95
|
+
padding: 0,
|
|
96
|
+
position: "absolute",
|
|
97
|
+
whiteSpace: "nowrap",
|
|
98
|
+
width: "1px"
|
|
99
|
+
};
|
|
100
|
+
}, [style, controlSize]);
|
|
101
|
+
return /* @__PURE__ */ jsx("input", {
|
|
102
|
+
type,
|
|
103
|
+
...inputProps,
|
|
104
|
+
ref: inputRef,
|
|
105
|
+
"aria-hidden": isCheckInput,
|
|
106
|
+
tabIndex: -1,
|
|
107
|
+
defaultChecked: isCheckInput ? checked : void 0,
|
|
108
|
+
style: composedStyle
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
//#endregion
|
|
113
|
+
export { VisuallyHiddenInput };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_use_isomorphic_layout_effect = require('./use-isomorphic-layout-effect.cjs');
|
|
3
|
+
let react = require("react");
|
|
4
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
5
|
+
|
|
6
|
+
//#region src/hooks/use-as-ref.ts
|
|
7
|
+
function useAsRef(props) {
|
|
8
|
+
const ref = react.useRef(props);
|
|
9
|
+
require_use_isomorphic_layout_effect.useIsomorphicLayoutEffect(() => {
|
|
10
|
+
ref.current = props;
|
|
11
|
+
});
|
|
12
|
+
return ref;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.useAsRef = useAsRef;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useIsomorphicLayoutEffect } from "./use-isomorphic-layout-effect.js";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/hooks/use-as-ref.ts
|
|
5
|
+
function useAsRef(props) {
|
|
6
|
+
const ref = React.useRef(props);
|
|
7
|
+
useIsomorphicLayoutEffect(() => {
|
|
8
|
+
ref.current = props;
|
|
9
|
+
});
|
|
10
|
+
return ref;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { useAsRef };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let react = require("react");
|
|
3
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
4
|
+
|
|
5
|
+
//#region src/hooks/use-isomorphic-layout-effect.ts
|
|
6
|
+
const useIsomorphicLayoutEffect = typeof window !== "undefined" ? react.useLayoutEffect : react.useEffect;
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
exports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let react = require("react");
|
|
3
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
4
|
+
|
|
5
|
+
//#region src/hooks/use-lazy-ref.ts
|
|
6
|
+
function useLazyRef(fn) {
|
|
7
|
+
const ref = react.useRef(null);
|
|
8
|
+
if (ref.current === null) ref.current = fn();
|
|
9
|
+
return ref;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.useLazyRef = useLazyRef;
|
package/dist/index.cjs
CHANGED
|
@@ -8,26 +8,28 @@ const require_button = require('./components/ui/button.cjs');
|
|
|
8
8
|
const require_calendar = require('./components/ui/calendar.cjs');
|
|
9
9
|
const require_card = require('./components/ui/card.cjs');
|
|
10
10
|
const require_checkbox = require('./components/ui/checkbox.cjs');
|
|
11
|
+
const require_input = require('./components/ui/input.cjs');
|
|
12
|
+
const require_popover = require('./components/ui/popover.cjs');
|
|
13
|
+
const require_select = require('./components/ui/select.cjs');
|
|
14
|
+
const require_color_picker = require('./components/ui/color-picker.cjs');
|
|
11
15
|
const require_dialog = require('./components/ui/dialog.cjs');
|
|
12
16
|
const require_command = require('./components/ui/command.cjs');
|
|
13
17
|
const require_dropdown_menu = require('./components/ui/dropdown-menu.cjs');
|
|
14
18
|
const require_file_upload = require('./components/ui/file-upload.cjs');
|
|
15
19
|
const require_label = require('./components/ui/label.cjs');
|
|
16
20
|
const require_form = require('./components/ui/form.cjs');
|
|
17
|
-
const
|
|
21
|
+
const require_textarea = require('./components/ui/textarea.cjs');
|
|
22
|
+
const require_input_group = require('./components/ui/input-group.cjs');
|
|
18
23
|
const require_separator = require('./components/ui/separator.cjs');
|
|
19
24
|
const require_OrContinueWithSeparator = require('./components/ui/OrContinueWithSeparator.cjs');
|
|
20
25
|
const require_pagination = require('./components/ui/pagination.cjs');
|
|
21
|
-
const require_popover = require('./components/ui/popover.cjs');
|
|
22
26
|
const require_radio_group = require('./components/ui/radio-group.cjs');
|
|
23
|
-
const require_select = require('./components/ui/select.cjs');
|
|
24
27
|
const require_index$1 = require('./components/ui/shadcn-io/tags/index.cjs');
|
|
25
28
|
const require_index$2 = require('./components/ui/shadcn-io/tags-input-inline/index.cjs');
|
|
26
29
|
const require_sheet = require('./components/ui/sheet.cjs');
|
|
27
30
|
const require_slider = require('./components/ui/slider.cjs');
|
|
28
31
|
const require_switch = require('./components/ui/switch.cjs');
|
|
29
32
|
const require_tabs = require('./components/ui/tabs.cjs');
|
|
30
|
-
const require_textarea = require('./components/ui/textarea.cjs');
|
|
31
33
|
const require_tooltip = require('./components/ui/tooltip.cjs');
|
|
32
34
|
require('./components/index.cjs');
|
|
33
35
|
|
|
@@ -62,6 +64,16 @@ exports.CardTitle = require_card.CardTitle;
|
|
|
62
64
|
exports.Checkbox = require_checkbox.Checkbox;
|
|
63
65
|
exports.Clear = require_file_upload.FileUploadClear;
|
|
64
66
|
exports.FileUploadClear = require_file_upload.FileUploadClear;
|
|
67
|
+
exports.ColorPicker = require_color_picker.ColorPicker;
|
|
68
|
+
exports.ColorPickerAlphaSlider = require_color_picker.ColorPickerAlphaSlider;
|
|
69
|
+
exports.ColorPickerArea = require_color_picker.ColorPickerArea;
|
|
70
|
+
exports.ColorPickerContent = require_color_picker.ColorPickerContent;
|
|
71
|
+
exports.ColorPickerEyeDropper = require_color_picker.ColorPickerEyeDropper;
|
|
72
|
+
exports.ColorPickerFormatSelect = require_color_picker.ColorPickerFormatSelect;
|
|
73
|
+
exports.ColorPickerHueSlider = require_color_picker.ColorPickerHueSlider;
|
|
74
|
+
exports.ColorPickerInput = require_color_picker.ColorPickerInput;
|
|
75
|
+
exports.ColorPickerSwatch = require_color_picker.ColorPickerSwatch;
|
|
76
|
+
exports.ColorPickerTrigger = require_color_picker.ColorPickerTrigger;
|
|
65
77
|
exports.Command = require_command.Command;
|
|
66
78
|
exports.CommandDialog = require_command.CommandDialog;
|
|
67
79
|
exports.CommandEmpty = require_command.CommandEmpty;
|
|
@@ -122,6 +134,12 @@ exports.FormItem = require_form.FormItem;
|
|
|
122
134
|
exports.FormLabel = require_form.FormLabel;
|
|
123
135
|
exports.FormMessage = require_form.FormMessage;
|
|
124
136
|
exports.Input = require_input.Input;
|
|
137
|
+
exports.InputGroup = require_input_group.InputGroup;
|
|
138
|
+
exports.InputGroupAddon = require_input_group.InputGroupAddon;
|
|
139
|
+
exports.InputGroupButton = require_input_group.InputGroupButton;
|
|
140
|
+
exports.InputGroupInput = require_input_group.InputGroupInput;
|
|
141
|
+
exports.InputGroupText = require_input_group.InputGroupText;
|
|
142
|
+
exports.InputGroupTextarea = require_input_group.InputGroupTextarea;
|
|
125
143
|
exports.Label = require_label.Label;
|
|
126
144
|
exports.OrContinueWithSeparator = require_OrContinueWithSeparator.OrContinueWithSeparator;
|
|
127
145
|
exports.Pagination = require_pagination.Pagination;
|
|
@@ -185,5 +203,7 @@ exports.TooltipTrigger = require_tooltip.TooltipTrigger;
|
|
|
185
203
|
exports.badgeVariants = require_badge.badgeVariants;
|
|
186
204
|
exports.buttonVariants = require_button.buttonVariants;
|
|
187
205
|
exports.cn = require_utils.cn;
|
|
206
|
+
exports.colorUtils = require_color_picker.colorUtils;
|
|
207
|
+
exports.useColorPicker = require_color_picker.useStore;
|
|
188
208
|
exports.useFileUpload = require_file_upload.useStore;
|
|
189
209
|
exports.useFormField = require_form.useFormField;
|
package/dist/index.d.cts
CHANGED
|
@@ -6,18 +6,20 @@ import { Button, buttonVariants } from "./components/ui/button.cjs";
|
|
|
6
6
|
import { Calendar, CalendarDayButton } from "./components/ui/calendar.cjs";
|
|
7
7
|
import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./components/ui/card.cjs";
|
|
8
8
|
import { Checkbox } from "./components/ui/checkbox.cjs";
|
|
9
|
+
import { Input } from "./components/ui/input.cjs";
|
|
10
|
+
import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "./components/ui/popover.cjs";
|
|
11
|
+
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from "./components/ui/select.cjs";
|
|
12
|
+
import { ColorPicker, ColorPickerAlphaSlider, ColorPickerArea, ColorPickerContent, ColorPickerEyeDropper, ColorPickerFormatSelect, ColorPickerHueSlider, ColorPickerInput, ColorPickerProps, ColorPickerSwatch, ColorPickerTrigger, colorUtils, useStore } from "./components/ui/color-picker.cjs";
|
|
9
13
|
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "./components/ui/dialog.cjs";
|
|
10
14
|
import { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from "./components/ui/command.cjs";
|
|
11
15
|
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./components/ui/dropdown-menu.cjs";
|
|
12
|
-
import { FileUploadClear, FileUploadDropzone, FileUploadItem, FileUploadItemDelete, FileUploadItemMetadata, FileUploadItemPreview, FileUploadItemProgress, FileUploadList, FileUploadRoot, FileUploadRootProps, FileUploadTrigger, useStore } from "./components/ui/file-upload.cjs";
|
|
16
|
+
import { FileUploadClear, FileUploadDropzone, FileUploadItem, FileUploadItemDelete, FileUploadItemMetadata, FileUploadItemPreview, FileUploadItemProgress, FileUploadList, FileUploadRoot, FileUploadRootProps, FileUploadTrigger, useStore as useStore$1 } from "./components/ui/file-upload.cjs";
|
|
13
17
|
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField } from "./components/ui/form.cjs";
|
|
14
|
-
import {
|
|
18
|
+
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from "./components/ui/input-group.cjs";
|
|
15
19
|
import { Label } from "./components/ui/label.cjs";
|
|
16
20
|
import { OrContinueWithSeparator } from "./components/ui/OrContinueWithSeparator.cjs";
|
|
17
21
|
import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "./components/ui/pagination.cjs";
|
|
18
|
-
import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "./components/ui/popover.cjs";
|
|
19
22
|
import { RadioGroup, RadioGroupItem } from "./components/ui/radio-group.cjs";
|
|
20
|
-
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from "./components/ui/select.cjs";
|
|
21
23
|
import { Separator } from "./components/ui/separator.cjs";
|
|
22
24
|
import { Tags, TagsContent, TagsContentProps, TagsEmpty, TagsEmptyProps, TagsGroup, TagsGroupProps, TagsInput, TagsInputProps, TagsItem, TagsItemProps, TagsList, TagsListProps, TagsProps, TagsTrigger, TagsTriggerProps, TagsValue, TagsValueProps } from "./components/ui/shadcn-io/tags/index.cjs";
|
|
23
25
|
import { TagsInputInLineClear, TagsInputInLineInput, TagsInputInLineItem, TagsInputInLineLabel, TagsInputInLineList, TagsInputInLineRoot } from "./components/ui/shadcn-io/tags-input-inline/index.cjs";
|
|
@@ -30,4 +32,4 @@ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./comp
|
|
|
30
32
|
import "./components/index.cjs";
|
|
31
33
|
import { cn } from "./lib/utils.cjs";
|
|
32
34
|
import "./lib/index.cjs";
|
|
33
|
-
export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, FileUploadClear as Clear, FileUploadClear, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FileUploadDropzone as Dropzone, FileUploadDropzone, FileUploadRoot as FileUpload, FileUploadRoot as Root, FileUploadItem, FileUploadItem as Item, FileUploadItemDelete, FileUploadItemDelete as ItemDelete, FileUploadItemMetadata, FileUploadItemMetadata as ItemMetadata, FileUploadItemPreview, FileUploadItemPreview as ItemPreview, FileUploadItemProgress, FileUploadItemProgress as ItemProgress, FileUploadList, FileUploadList as List, FileUploadRootProps as FileUploadProps, FileUploadTrigger, FileUploadTrigger as Trigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Input, Label, OrContinueWithSeparator, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Slider, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, TagsContentProps, TagsEmpty, TagsEmptyProps, TagsGroup, TagsGroupProps, TagsInput, TagsInputInLineClear, TagsInputInLineInput, TagsInputInLineItem, TagsInputInLineLabel, TagsInputInLineList, TagsInputInLineRoot, TagsInputProps, TagsItem, TagsItemProps, TagsList, TagsListProps, TagsProps, TagsTrigger, TagsTriggerProps, TagsValue, TagsValueProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn, useStore as useFileUpload, useFormField };
|
|
35
|
+
export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, FileUploadClear as Clear, FileUploadClear, ColorPicker, ColorPickerAlphaSlider, ColorPickerArea, ColorPickerContent, ColorPickerEyeDropper, ColorPickerFormatSelect, ColorPickerHueSlider, ColorPickerInput, ColorPickerProps, ColorPickerSwatch, ColorPickerTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FileUploadDropzone as Dropzone, FileUploadDropzone, FileUploadRoot as FileUpload, FileUploadRoot as Root, FileUploadItem, FileUploadItem as Item, FileUploadItemDelete, FileUploadItemDelete as ItemDelete, FileUploadItemMetadata, FileUploadItemMetadata as ItemMetadata, FileUploadItemPreview, FileUploadItemPreview as ItemPreview, FileUploadItemProgress, FileUploadItemProgress as ItemProgress, FileUploadList, FileUploadList as List, FileUploadRootProps as FileUploadProps, FileUploadTrigger, FileUploadTrigger as Trigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Label, OrContinueWithSeparator, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Slider, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, TagsContentProps, TagsEmpty, TagsEmptyProps, TagsGroup, TagsGroupProps, TagsInput, TagsInputInLineClear, TagsInputInLineInput, TagsInputInLineItem, TagsInputInLineLabel, TagsInputInLineList, TagsInputInLineRoot, TagsInputProps, TagsItem, TagsItemProps, TagsList, TagsListProps, TagsProps, TagsTrigger, TagsTriggerProps, TagsValue, TagsValueProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn, colorUtils, useStore as useColorPicker, useStore$1 as useFileUpload, useFormField };
|
package/dist/index.d.ts
CHANGED
|
@@ -6,18 +6,20 @@ import { Button, buttonVariants } from "./components/ui/button.js";
|
|
|
6
6
|
import { Calendar, CalendarDayButton } from "./components/ui/calendar.js";
|
|
7
7
|
import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./components/ui/card.js";
|
|
8
8
|
import { Checkbox } from "./components/ui/checkbox.js";
|
|
9
|
+
import { Input } from "./components/ui/input.js";
|
|
10
|
+
import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "./components/ui/popover.js";
|
|
11
|
+
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from "./components/ui/select.js";
|
|
12
|
+
import { ColorPicker, ColorPickerAlphaSlider, ColorPickerArea, ColorPickerContent, ColorPickerEyeDropper, ColorPickerFormatSelect, ColorPickerHueSlider, ColorPickerInput, ColorPickerProps, ColorPickerSwatch, ColorPickerTrigger, colorUtils, useStore } from "./components/ui/color-picker.js";
|
|
9
13
|
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "./components/ui/dialog.js";
|
|
10
14
|
import { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from "./components/ui/command.js";
|
|
11
15
|
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./components/ui/dropdown-menu.js";
|
|
12
|
-
import { FileUploadClear, FileUploadDropzone, FileUploadItem, FileUploadItemDelete, FileUploadItemMetadata, FileUploadItemPreview, FileUploadItemProgress, FileUploadList, FileUploadRoot, FileUploadRootProps, FileUploadTrigger, useStore } from "./components/ui/file-upload.js";
|
|
16
|
+
import { FileUploadClear, FileUploadDropzone, FileUploadItem, FileUploadItemDelete, FileUploadItemMetadata, FileUploadItemPreview, FileUploadItemProgress, FileUploadList, FileUploadRoot, FileUploadRootProps, FileUploadTrigger, useStore as useStore$1 } from "./components/ui/file-upload.js";
|
|
13
17
|
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField } from "./components/ui/form.js";
|
|
14
|
-
import {
|
|
18
|
+
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from "./components/ui/input-group.js";
|
|
15
19
|
import { Label } from "./components/ui/label.js";
|
|
16
20
|
import { OrContinueWithSeparator } from "./components/ui/OrContinueWithSeparator.js";
|
|
17
21
|
import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "./components/ui/pagination.js";
|
|
18
|
-
import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "./components/ui/popover.js";
|
|
19
22
|
import { RadioGroup, RadioGroupItem } from "./components/ui/radio-group.js";
|
|
20
|
-
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from "./components/ui/select.js";
|
|
21
23
|
import { Separator } from "./components/ui/separator.js";
|
|
22
24
|
import { Tags, TagsContent, TagsContentProps, TagsEmpty, TagsEmptyProps, TagsGroup, TagsGroupProps, TagsInput, TagsInputProps, TagsItem, TagsItemProps, TagsList, TagsListProps, TagsProps, TagsTrigger, TagsTriggerProps, TagsValue, TagsValueProps } from "./components/ui/shadcn-io/tags/index.js";
|
|
23
25
|
import { TagsInputInLineClear, TagsInputInLineInput, TagsInputInLineItem, TagsInputInLineLabel, TagsInputInLineList, TagsInputInLineRoot } from "./components/ui/shadcn-io/tags-input-inline/index.js";
|
|
@@ -30,4 +32,4 @@ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./comp
|
|
|
30
32
|
import "./components/index.js";
|
|
31
33
|
import { cn } from "./lib/utils.js";
|
|
32
34
|
import "./lib/index.js";
|
|
33
|
-
export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, FileUploadClear as Clear, FileUploadClear, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FileUploadDropzone as Dropzone, FileUploadDropzone, FileUploadRoot as FileUpload, FileUploadRoot as Root, FileUploadItem, FileUploadItem as Item, FileUploadItemDelete, FileUploadItemDelete as ItemDelete, FileUploadItemMetadata, FileUploadItemMetadata as ItemMetadata, FileUploadItemPreview, FileUploadItemPreview as ItemPreview, FileUploadItemProgress, FileUploadItemProgress as ItemProgress, FileUploadList, FileUploadList as List, FileUploadRootProps as FileUploadProps, FileUploadTrigger, FileUploadTrigger as Trigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Input, Label, OrContinueWithSeparator, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Slider, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, TagsContentProps, TagsEmpty, TagsEmptyProps, TagsGroup, TagsGroupProps, TagsInput, TagsInputInLineClear, TagsInputInLineInput, TagsInputInLineItem, TagsInputInLineLabel, TagsInputInLineList, TagsInputInLineRoot, TagsInputProps, TagsItem, TagsItemProps, TagsList, TagsListProps, TagsProps, TagsTrigger, TagsTriggerProps, TagsValue, TagsValueProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn, useStore as useFileUpload, useFormField };
|
|
35
|
+
export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, FileUploadClear as Clear, FileUploadClear, ColorPicker, ColorPickerAlphaSlider, ColorPickerArea, ColorPickerContent, ColorPickerEyeDropper, ColorPickerFormatSelect, ColorPickerHueSlider, ColorPickerInput, ColorPickerProps, ColorPickerSwatch, ColorPickerTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FileUploadDropzone as Dropzone, FileUploadDropzone, FileUploadRoot as FileUpload, FileUploadRoot as Root, FileUploadItem, FileUploadItem as Item, FileUploadItemDelete, FileUploadItemDelete as ItemDelete, FileUploadItemMetadata, FileUploadItemMetadata as ItemMetadata, FileUploadItemPreview, FileUploadItemPreview as ItemPreview, FileUploadItemProgress, FileUploadItemProgress as ItemProgress, FileUploadList, FileUploadList as List, FileUploadRootProps as FileUploadProps, FileUploadTrigger, FileUploadTrigger as Trigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Label, OrContinueWithSeparator, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Slider, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, TagsContentProps, TagsEmpty, TagsEmptyProps, TagsGroup, TagsGroupProps, TagsInput, TagsInputInLineClear, TagsInputInLineInput, TagsInputInLineItem, TagsInputInLineLabel, TagsInputInLineList, TagsInputInLineRoot, TagsInputProps, TagsItem, TagsItemProps, TagsList, TagsListProps, TagsProps, TagsTrigger, TagsTriggerProps, TagsValue, TagsValueProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn, colorUtils, useStore as useColorPicker, useStore$1 as useFileUpload, useFormField };
|