@saasflare/ui 3.0.2 → 3.1.1
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/button-0Bdl7Nqm.d.ts +87 -0
- package/dist/button-Brb4BhPO.d.mts +87 -0
- package/dist/{chunk-XXT4HKND.js → chunk-4BOMMZEY.js} +20 -13
- package/dist/{chunk-YAE5VBWJ.js → chunk-D5LKWKG7.js} +96 -152
- package/dist/chunk-DNLCSV5M.js +151 -0
- package/dist/{chunk-W53NTFPB.mjs → chunk-EJHYM2HP.mjs} +7 -16
- package/dist/chunk-FT66KYRN.js +30 -0
- package/dist/{chunk-2DNKXA5A.mjs → chunk-RW2S3KNB.mjs} +14 -7
- package/dist/chunk-WPOOC2FX.mjs +128 -0
- package/dist/{chunk-ORB66UYT.mjs → chunk-WRONFPRI.mjs} +66 -121
- package/dist/{dialog-CwyBJeNl.d.mts → dialog-BmY55WSX.d.ts} +4 -1
- package/dist/{dialog-CwyBJeNl.d.ts → dialog-CcaHMAsS.d.mts} +4 -1
- package/dist/entries/calendar.d.mts +5 -3
- package/dist/entries/calendar.d.ts +5 -3
- package/dist/entries/calendar.js +44 -36
- package/dist/entries/calendar.mjs +11 -3
- package/dist/entries/carousel.d.mts +4 -3
- package/dist/entries/carousel.d.ts +4 -3
- package/dist/entries/carousel.js +18 -11
- package/dist/entries/carousel.mjs +11 -4
- package/dist/entries/chart.d.mts +4 -2
- package/dist/entries/chart.d.ts +4 -2
- package/dist/entries/chart.js +17 -10
- package/dist/entries/chart.mjs +8 -1
- package/dist/entries/command.d.mts +5 -2
- package/dist/entries/command.d.ts +5 -2
- package/dist/entries/command.js +25 -18
- package/dist/entries/command.mjs +12 -5
- package/dist/entries/drawer.d.mts +4 -1
- package/dist/entries/drawer.d.ts +4 -1
- package/dist/entries/drawer.js +15 -8
- package/dist/entries/drawer.mjs +9 -2
- package/dist/entries/input-otp.d.mts +4 -2
- package/dist/entries/input-otp.d.ts +4 -2
- package/dist/entries/input-otp.js +13 -6
- package/dist/entries/input-otp.mjs +10 -3
- package/dist/entries/resizable.d.mts +3 -1
- package/dist/entries/resizable.d.ts +3 -1
- package/dist/entries/resizable.js +12 -5
- package/dist/entries/resizable.mjs +10 -3
- package/dist/index.d.mts +181 -79
- package/dist/index.d.ts +181 -79
- package/dist/index.js +807 -476
- package/dist/index.mjs +498 -171
- package/dist/{button-DUQJ0X7e.d.mts → use-saasflare-props-NrM2Glmp.d.mts} +1 -86
- package/dist/{button-DUQJ0X7e.d.ts → use-saasflare-props-NrM2Glmp.d.ts} +1 -86
- package/package.json +1 -1
- package/styles/theme.css +1 -1
- package/dist/chunk-BIU2MD4T.mjs +0 -56
- package/dist/chunk-CWW36RYE.js +0 -59
- package/dist/chunk-M3ICCPCU.js +0 -60
package/dist/entries/command.js
CHANGED
|
@@ -1,26 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
6
|
-
var
|
|
4
|
+
var chunk4BOMMZEY_js = require('../chunk-4BOMMZEY.js');
|
|
5
|
+
require('../chunk-FT66KYRN.js');
|
|
6
|
+
var chunkD5LKWKG7_js = require('../chunk-D5LKWKG7.js');
|
|
7
7
|
var cmdk = require('cmdk');
|
|
8
8
|
var lucideReact = require('lucide-react');
|
|
9
9
|
var jsxRuntime = require('react/jsx-runtime');
|
|
10
10
|
|
|
11
11
|
function Command({
|
|
12
12
|
className,
|
|
13
|
+
surface,
|
|
14
|
+
radius,
|
|
15
|
+
animated,
|
|
13
16
|
...props
|
|
14
17
|
}) {
|
|
18
|
+
const sf = chunkD5LKWKG7_js.useSaasflareProps({ surface, radius, animated });
|
|
15
19
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16
20
|
cmdk.Command,
|
|
17
21
|
{
|
|
22
|
+
...props,
|
|
18
23
|
"data-slot": "command",
|
|
19
|
-
|
|
24
|
+
"data-surface": sf.surface,
|
|
25
|
+
"data-radius": sf.radius,
|
|
26
|
+
"data-animated": String(sf.animated),
|
|
27
|
+
className: chunkD5LKWKG7_js.cn(
|
|
20
28
|
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
21
29
|
className
|
|
22
|
-
)
|
|
23
|
-
...props
|
|
30
|
+
)
|
|
24
31
|
}
|
|
25
32
|
);
|
|
26
33
|
}
|
|
@@ -31,15 +38,15 @@ function CommandDialog({
|
|
|
31
38
|
className,
|
|
32
39
|
...props
|
|
33
40
|
}) {
|
|
34
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
35
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
36
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
41
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunk4BOMMZEY_js.Dialog, { ...props, children: [
|
|
42
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk4BOMMZEY_js.DialogHeader, { className: "sr-only", children: [
|
|
43
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4BOMMZEY_js.DialogTitle, { children: title }),
|
|
44
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk4BOMMZEY_js.DialogDescription, { children: description })
|
|
38
45
|
] }),
|
|
39
46
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
40
|
-
|
|
47
|
+
chunk4BOMMZEY_js.DialogContent,
|
|
41
48
|
{
|
|
42
|
-
className:
|
|
49
|
+
className: chunkD5LKWKG7_js.cn("overflow-hidden p-0", className),
|
|
43
50
|
children: /* @__PURE__ */ jsxRuntime.jsx(Command, { className: "**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children })
|
|
44
51
|
}
|
|
45
52
|
)
|
|
@@ -60,7 +67,7 @@ function CommandInput({
|
|
|
60
67
|
cmdk.Command.Input,
|
|
61
68
|
{
|
|
62
69
|
"data-slot": "command-input",
|
|
63
|
-
className:
|
|
70
|
+
className: chunkD5LKWKG7_js.cn(
|
|
64
71
|
"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
65
72
|
className
|
|
66
73
|
),
|
|
@@ -79,7 +86,7 @@ function CommandList({
|
|
|
79
86
|
cmdk.Command.List,
|
|
80
87
|
{
|
|
81
88
|
"data-slot": "command-list",
|
|
82
|
-
className:
|
|
89
|
+
className: chunkD5LKWKG7_js.cn(
|
|
83
90
|
"max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
84
91
|
className
|
|
85
92
|
),
|
|
@@ -107,7 +114,7 @@ function CommandGroup({
|
|
|
107
114
|
cmdk.Command.Group,
|
|
108
115
|
{
|
|
109
116
|
"data-slot": "command-group",
|
|
110
|
-
className:
|
|
117
|
+
className: chunkD5LKWKG7_js.cn(
|
|
111
118
|
"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
112
119
|
className
|
|
113
120
|
),
|
|
@@ -123,7 +130,7 @@ function CommandSeparator({
|
|
|
123
130
|
cmdk.Command.Separator,
|
|
124
131
|
{
|
|
125
132
|
"data-slot": "command-separator",
|
|
126
|
-
className:
|
|
133
|
+
className: chunkD5LKWKG7_js.cn("-mx-1 h-px bg-border", className),
|
|
127
134
|
...props
|
|
128
135
|
}
|
|
129
136
|
);
|
|
@@ -136,7 +143,7 @@ function CommandItem({
|
|
|
136
143
|
cmdk.Command.Item,
|
|
137
144
|
{
|
|
138
145
|
"data-slot": "command-item",
|
|
139
|
-
className:
|
|
146
|
+
className: chunkD5LKWKG7_js.cn(
|
|
140
147
|
"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
|
|
141
148
|
className
|
|
142
149
|
),
|
|
@@ -152,7 +159,7 @@ function CommandShortcut({
|
|
|
152
159
|
"span",
|
|
153
160
|
{
|
|
154
161
|
"data-slot": "command-shortcut",
|
|
155
|
-
className:
|
|
162
|
+
className: chunkD5LKWKG7_js.cn(
|
|
156
163
|
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
157
164
|
className
|
|
158
165
|
),
|
package/dist/entries/command.mjs
CHANGED
|
@@ -1,24 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Dialog, DialogHeader, DialogTitle, DialogDescription, DialogContent } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import { cn } from '../chunk-
|
|
2
|
+
import { Dialog, DialogHeader, DialogTitle, DialogDescription, DialogContent } from '../chunk-RW2S3KNB.mjs';
|
|
3
|
+
import '../chunk-EJHYM2HP.mjs';
|
|
4
|
+
import { useSaasflareProps, cn } from '../chunk-WRONFPRI.mjs';
|
|
5
5
|
import { Command as Command$1 } from 'cmdk';
|
|
6
6
|
import { SearchIcon } from 'lucide-react';
|
|
7
7
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
function Command({
|
|
10
10
|
className,
|
|
11
|
+
surface,
|
|
12
|
+
radius,
|
|
13
|
+
animated,
|
|
11
14
|
...props
|
|
12
15
|
}) {
|
|
16
|
+
const sf = useSaasflareProps({ surface, radius, animated });
|
|
13
17
|
return /* @__PURE__ */ jsx(
|
|
14
18
|
Command$1,
|
|
15
19
|
{
|
|
20
|
+
...props,
|
|
16
21
|
"data-slot": "command",
|
|
22
|
+
"data-surface": sf.surface,
|
|
23
|
+
"data-radius": sf.radius,
|
|
24
|
+
"data-animated": String(sf.animated),
|
|
17
25
|
className: cn(
|
|
18
26
|
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
19
27
|
className
|
|
20
|
-
)
|
|
21
|
-
...props
|
|
28
|
+
)
|
|
22
29
|
}
|
|
23
30
|
);
|
|
24
31
|
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { Drawer as Drawer$1 } from 'vaul';
|
|
4
|
+
import { c as SaasflareComponentProps } from '../use-saasflare-props-NrM2Glmp.mjs';
|
|
4
5
|
|
|
5
6
|
declare function Drawer({ ...props }: React.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
|
|
6
7
|
declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof Drawer$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
7
8
|
declare function DrawerPortal({ ...props }: React.ComponentProps<typeof Drawer$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
8
9
|
declare function DrawerClose({ ...props }: React.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime.JSX.Element;
|
|
9
10
|
declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime.JSX.Element;
|
|
10
|
-
|
|
11
|
+
interface DrawerContentProps extends Omit<React.ComponentProps<typeof Drawer$1.Content>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
12
|
+
}
|
|
13
|
+
declare function DrawerContent({ className, children, surface, radius, animated, ...props }: DrawerContentProps): react_jsx_runtime.JSX.Element;
|
|
11
14
|
declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
12
15
|
declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
13
16
|
declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime.JSX.Element;
|
package/dist/entries/drawer.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { Drawer as Drawer$1 } from 'vaul';
|
|
4
|
+
import { c as SaasflareComponentProps } from '../use-saasflare-props-NrM2Glmp.js';
|
|
4
5
|
|
|
5
6
|
declare function Drawer({ ...props }: React.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
|
|
6
7
|
declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof Drawer$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
7
8
|
declare function DrawerPortal({ ...props }: React.ComponentProps<typeof Drawer$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
8
9
|
declare function DrawerClose({ ...props }: React.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime.JSX.Element;
|
|
9
10
|
declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime.JSX.Element;
|
|
10
|
-
|
|
11
|
+
interface DrawerContentProps extends Omit<React.ComponentProps<typeof Drawer$1.Content>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
12
|
+
}
|
|
13
|
+
declare function DrawerContent({ className, children, surface, radius, animated, ...props }: DrawerContentProps): react_jsx_runtime.JSX.Element;
|
|
11
14
|
declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
12
15
|
declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
13
16
|
declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime.JSX.Element;
|
package/dist/entries/drawer.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkD5LKWKG7_js = require('../chunk-D5LKWKG7.js');
|
|
5
5
|
var vaul = require('vaul');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
|
|
@@ -33,7 +33,7 @@ function DrawerOverlay({
|
|
|
33
33
|
vaul.Drawer.Overlay,
|
|
34
34
|
{
|
|
35
35
|
"data-slot": "drawer-overlay",
|
|
36
|
-
className:
|
|
36
|
+
className: chunkD5LKWKG7_js.cn(
|
|
37
37
|
"fixed inset-0 z-50 bg-black/50 backdrop-blur-[2px]",
|
|
38
38
|
className
|
|
39
39
|
),
|
|
@@ -44,19 +44,26 @@ function DrawerOverlay({
|
|
|
44
44
|
function DrawerContent({
|
|
45
45
|
className,
|
|
46
46
|
children,
|
|
47
|
+
surface,
|
|
48
|
+
radius,
|
|
49
|
+
animated,
|
|
47
50
|
...props
|
|
48
51
|
}) {
|
|
52
|
+
const sf = chunkD5LKWKG7_js.useSaasflareProps({ surface, radius, animated });
|
|
49
53
|
return /* @__PURE__ */ jsxRuntime.jsxs(DrawerPortal, { children: [
|
|
50
54
|
/* @__PURE__ */ jsxRuntime.jsx(DrawerOverlay, {}),
|
|
51
55
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
52
56
|
vaul.Drawer.Content,
|
|
53
57
|
{
|
|
58
|
+
...props,
|
|
54
59
|
"data-slot": "drawer-content",
|
|
55
|
-
|
|
60
|
+
"data-surface": sf.surface,
|
|
61
|
+
"data-radius": sf.radius,
|
|
62
|
+
"data-animated": String(sf.animated),
|
|
63
|
+
className: chunkD5LKWKG7_js.cn(
|
|
56
64
|
"group/drawer-content fixed inset-x-0 bottom-0 z-50 mt-24 flex max-h-[96dvh] flex-col rounded-t-lg border-t bg-background",
|
|
57
65
|
className
|
|
58
66
|
),
|
|
59
|
-
...props,
|
|
60
67
|
children: [
|
|
61
68
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mx-auto mt-4 h-1.5 w-12 shrink-0 rounded-full bg-muted" }),
|
|
62
69
|
children
|
|
@@ -70,7 +77,7 @@ function DrawerHeader({ className, ...props }) {
|
|
|
70
77
|
"div",
|
|
71
78
|
{
|
|
72
79
|
"data-slot": "drawer-header",
|
|
73
|
-
className:
|
|
80
|
+
className: chunkD5LKWKG7_js.cn("flex flex-col gap-1.5 p-4", className),
|
|
74
81
|
...props
|
|
75
82
|
}
|
|
76
83
|
);
|
|
@@ -80,7 +87,7 @@ function DrawerFooter({ className, ...props }) {
|
|
|
80
87
|
"div",
|
|
81
88
|
{
|
|
82
89
|
"data-slot": "drawer-footer",
|
|
83
|
-
className:
|
|
90
|
+
className: chunkD5LKWKG7_js.cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
84
91
|
...props
|
|
85
92
|
}
|
|
86
93
|
);
|
|
@@ -93,7 +100,7 @@ function DrawerTitle({
|
|
|
93
100
|
vaul.Drawer.Title,
|
|
94
101
|
{
|
|
95
102
|
"data-slot": "drawer-title",
|
|
96
|
-
className:
|
|
103
|
+
className: chunkD5LKWKG7_js.cn("text-lg leading-none font-semibold", className),
|
|
97
104
|
...props
|
|
98
105
|
}
|
|
99
106
|
);
|
|
@@ -106,7 +113,7 @@ function DrawerDescription({
|
|
|
106
113
|
vaul.Drawer.Description,
|
|
107
114
|
{
|
|
108
115
|
"data-slot": "drawer-description",
|
|
109
|
-
className:
|
|
116
|
+
className: chunkD5LKWKG7_js.cn("text-sm text-muted-foreground", className),
|
|
110
117
|
...props
|
|
111
118
|
}
|
|
112
119
|
);
|
package/dist/entries/drawer.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn } from '../chunk-
|
|
2
|
+
import { cn, useSaasflareProps } from '../chunk-WRONFPRI.mjs';
|
|
3
3
|
import { Drawer as Drawer$1 } from 'vaul';
|
|
4
4
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -42,19 +42,26 @@ function DrawerOverlay({
|
|
|
42
42
|
function DrawerContent({
|
|
43
43
|
className,
|
|
44
44
|
children,
|
|
45
|
+
surface,
|
|
46
|
+
radius,
|
|
47
|
+
animated,
|
|
45
48
|
...props
|
|
46
49
|
}) {
|
|
50
|
+
const sf = useSaasflareProps({ surface, radius, animated });
|
|
47
51
|
return /* @__PURE__ */ jsxs(DrawerPortal, { children: [
|
|
48
52
|
/* @__PURE__ */ jsx(DrawerOverlay, {}),
|
|
49
53
|
/* @__PURE__ */ jsxs(
|
|
50
54
|
Drawer$1.Content,
|
|
51
55
|
{
|
|
56
|
+
...props,
|
|
52
57
|
"data-slot": "drawer-content",
|
|
58
|
+
"data-surface": sf.surface,
|
|
59
|
+
"data-radius": sf.radius,
|
|
60
|
+
"data-animated": String(sf.animated),
|
|
53
61
|
className: cn(
|
|
54
62
|
"group/drawer-content fixed inset-x-0 bottom-0 z-50 mt-24 flex max-h-[96dvh] flex-col rounded-t-lg border-t bg-background",
|
|
55
63
|
className
|
|
56
64
|
),
|
|
57
|
-
...props,
|
|
58
65
|
children: [
|
|
59
66
|
/* @__PURE__ */ jsx("div", { className: "mx-auto mt-4 h-1.5 w-12 shrink-0 rounded-full bg-muted" }),
|
|
60
67
|
children
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { OTPInput } from 'input-otp';
|
|
4
|
+
import { c as SaasflareComponentProps } from '../use-saasflare-props-NrM2Glmp.mjs';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
type InputOTPProps = React.ComponentProps<typeof OTPInput> & SaasflareComponentProps & {
|
|
6
7
|
containerClassName?: string;
|
|
7
|
-
}
|
|
8
|
+
};
|
|
9
|
+
declare function InputOTP({ className, containerClassName, surface, radius, animated, ...props }: InputOTPProps): react_jsx_runtime.JSX.Element;
|
|
8
10
|
declare function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
9
11
|
declare function InputOTPSlot({ index, className, ...props }: React.ComponentProps<"div"> & {
|
|
10
12
|
index: number;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { OTPInput } from 'input-otp';
|
|
4
|
+
import { c as SaasflareComponentProps } from '../use-saasflare-props-NrM2Glmp.js';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
type InputOTPProps = React.ComponentProps<typeof OTPInput> & SaasflareComponentProps & {
|
|
6
7
|
containerClassName?: string;
|
|
7
|
-
}
|
|
8
|
+
};
|
|
9
|
+
declare function InputOTP({ className, containerClassName, surface, radius, animated, ...props }: InputOTPProps): react_jsx_runtime.JSX.Element;
|
|
8
10
|
declare function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
9
11
|
declare function InputOTPSlot({ index, className, ...props }: React.ComponentProps<"div"> & {
|
|
10
12
|
index: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkD5LKWKG7_js = require('../chunk-D5LKWKG7.js');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var inputOtp = require('input-otp');
|
|
7
7
|
var lucideReact = require('lucide-react');
|
|
@@ -30,18 +30,25 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
30
30
|
function InputOTP({
|
|
31
31
|
className,
|
|
32
32
|
containerClassName,
|
|
33
|
+
surface,
|
|
34
|
+
radius,
|
|
35
|
+
animated,
|
|
33
36
|
...props
|
|
34
37
|
}) {
|
|
38
|
+
const sf = chunkD5LKWKG7_js.useSaasflareProps({ surface, radius, animated });
|
|
35
39
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
36
40
|
inputOtp.OTPInput,
|
|
37
41
|
{
|
|
42
|
+
...props,
|
|
38
43
|
"data-slot": "input-otp",
|
|
39
|
-
|
|
44
|
+
"data-surface": sf.surface,
|
|
45
|
+
"data-radius": sf.radius,
|
|
46
|
+
"data-animated": String(sf.animated),
|
|
47
|
+
containerClassName: chunkD5LKWKG7_js.cn(
|
|
40
48
|
"flex items-center gap-2 has-disabled:opacity-50",
|
|
41
49
|
containerClassName
|
|
42
50
|
),
|
|
43
|
-
className:
|
|
44
|
-
...props
|
|
51
|
+
className: chunkD5LKWKG7_js.cn("disabled:cursor-not-allowed", className)
|
|
45
52
|
}
|
|
46
53
|
);
|
|
47
54
|
}
|
|
@@ -50,7 +57,7 @@ function InputOTPGroup({ className, ...props }) {
|
|
|
50
57
|
"div",
|
|
51
58
|
{
|
|
52
59
|
"data-slot": "input-otp-group",
|
|
53
|
-
className:
|
|
60
|
+
className: chunkD5LKWKG7_js.cn("flex items-center", className),
|
|
54
61
|
...props
|
|
55
62
|
}
|
|
56
63
|
);
|
|
@@ -67,7 +74,7 @@ function InputOTPSlot({
|
|
|
67
74
|
{
|
|
68
75
|
"data-slot": "input-otp-slot",
|
|
69
76
|
"data-active": isActive,
|
|
70
|
-
className:
|
|
77
|
+
className: chunkD5LKWKG7_js.cn(
|
|
71
78
|
"relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-[3px] data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40",
|
|
72
79
|
className
|
|
73
80
|
),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn } from '../chunk-
|
|
2
|
+
import { useSaasflareProps, cn } from '../chunk-WRONFPRI.mjs';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { OTPInput, OTPInputContext } from 'input-otp';
|
|
5
5
|
import { MinusIcon } from 'lucide-react';
|
|
@@ -8,18 +8,25 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
8
8
|
function InputOTP({
|
|
9
9
|
className,
|
|
10
10
|
containerClassName,
|
|
11
|
+
surface,
|
|
12
|
+
radius,
|
|
13
|
+
animated,
|
|
11
14
|
...props
|
|
12
15
|
}) {
|
|
16
|
+
const sf = useSaasflareProps({ surface, radius, animated });
|
|
13
17
|
return /* @__PURE__ */ jsx(
|
|
14
18
|
OTPInput,
|
|
15
19
|
{
|
|
20
|
+
...props,
|
|
16
21
|
"data-slot": "input-otp",
|
|
22
|
+
"data-surface": sf.surface,
|
|
23
|
+
"data-radius": sf.radius,
|
|
24
|
+
"data-animated": String(sf.animated),
|
|
17
25
|
containerClassName: cn(
|
|
18
26
|
"flex items-center gap-2 has-disabled:opacity-50",
|
|
19
27
|
containerClassName
|
|
20
28
|
),
|
|
21
|
-
className: cn("disabled:cursor-not-allowed", className)
|
|
22
|
-
...props
|
|
29
|
+
className: cn("disabled:cursor-not-allowed", className)
|
|
23
30
|
}
|
|
24
31
|
);
|
|
25
32
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
3
|
+
import { c as SaasflareComponentProps } from '../use-saasflare-props-NrM2Glmp.mjs';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
type ResizablePanelGroupProps = ResizablePrimitive.GroupProps & SaasflareComponentProps;
|
|
6
|
+
declare function ResizablePanelGroup({ className, surface, radius, animated, ...props }: ResizablePanelGroupProps): react_jsx_runtime.JSX.Element;
|
|
5
7
|
declare function ResizablePanel({ ...props }: ResizablePrimitive.PanelProps): react_jsx_runtime.JSX.Element;
|
|
6
8
|
declare function ResizableHandle({ withHandle, className, ...props }: ResizablePrimitive.SeparatorProps & {
|
|
7
9
|
withHandle?: boolean;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
3
|
+
import { c as SaasflareComponentProps } from '../use-saasflare-props-NrM2Glmp.js';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
type ResizablePanelGroupProps = ResizablePrimitive.GroupProps & SaasflareComponentProps;
|
|
6
|
+
declare function ResizablePanelGroup({ className, surface, radius, animated, ...props }: ResizablePanelGroupProps): react_jsx_runtime.JSX.Element;
|
|
5
7
|
declare function ResizablePanel({ ...props }: ResizablePrimitive.PanelProps): react_jsx_runtime.JSX.Element;
|
|
6
8
|
declare function ResizableHandle({ withHandle, className, ...props }: ResizablePrimitive.SeparatorProps & {
|
|
7
9
|
withHandle?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkD5LKWKG7_js = require('../chunk-D5LKWKG7.js');
|
|
5
5
|
var lucideReact = require('lucide-react');
|
|
6
6
|
var ResizablePrimitive = require('react-resizable-panels');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -28,17 +28,24 @@ var ResizablePrimitive__namespace = /*#__PURE__*/_interopNamespace(ResizablePrim
|
|
|
28
28
|
|
|
29
29
|
function ResizablePanelGroup({
|
|
30
30
|
className,
|
|
31
|
+
surface,
|
|
32
|
+
radius,
|
|
33
|
+
animated,
|
|
31
34
|
...props
|
|
32
35
|
}) {
|
|
36
|
+
const sf = chunkD5LKWKG7_js.useSaasflareProps({ surface, radius, animated });
|
|
33
37
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34
38
|
ResizablePrimitive__namespace.Group,
|
|
35
39
|
{
|
|
40
|
+
...props,
|
|
36
41
|
"data-slot": "resizable-panel-group",
|
|
37
|
-
|
|
42
|
+
"data-surface": sf.surface,
|
|
43
|
+
"data-radius": sf.radius,
|
|
44
|
+
"data-animated": String(sf.animated),
|
|
45
|
+
className: chunkD5LKWKG7_js.cn(
|
|
38
46
|
"flex h-full w-full aria-[orientation=vertical]:flex-col",
|
|
39
47
|
className
|
|
40
|
-
)
|
|
41
|
-
...props
|
|
48
|
+
)
|
|
42
49
|
}
|
|
43
50
|
);
|
|
44
51
|
}
|
|
@@ -54,7 +61,7 @@ function ResizableHandle({
|
|
|
54
61
|
ResizablePrimitive__namespace.Separator,
|
|
55
62
|
{
|
|
56
63
|
"data-slot": "resizable-handle",
|
|
57
|
-
className:
|
|
64
|
+
className: chunkD5LKWKG7_js.cn(
|
|
58
65
|
"relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90",
|
|
59
66
|
className
|
|
60
67
|
),
|
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn } from '../chunk-
|
|
2
|
+
import { useSaasflareProps, cn } from '../chunk-WRONFPRI.mjs';
|
|
3
3
|
import { GripVerticalIcon } from 'lucide-react';
|
|
4
4
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
function ResizablePanelGroup({
|
|
8
8
|
className,
|
|
9
|
+
surface,
|
|
10
|
+
radius,
|
|
11
|
+
animated,
|
|
9
12
|
...props
|
|
10
13
|
}) {
|
|
14
|
+
const sf = useSaasflareProps({ surface, radius, animated });
|
|
11
15
|
return /* @__PURE__ */ jsx(
|
|
12
16
|
ResizablePrimitive.Group,
|
|
13
17
|
{
|
|
18
|
+
...props,
|
|
14
19
|
"data-slot": "resizable-panel-group",
|
|
20
|
+
"data-surface": sf.surface,
|
|
21
|
+
"data-radius": sf.radius,
|
|
22
|
+
"data-animated": String(sf.animated),
|
|
15
23
|
className: cn(
|
|
16
24
|
"flex h-full w-full aria-[orientation=vertical]:flex-col",
|
|
17
25
|
className
|
|
18
|
-
)
|
|
19
|
-
...props
|
|
26
|
+
)
|
|
20
27
|
}
|
|
21
28
|
);
|
|
22
29
|
}
|