@saasflare/ui 3.1.1 → 3.2.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/README.md +68 -2
- package/dist/{button-0Bdl7Nqm.d.ts → button-BA7OcXqy.d.mts} +12 -17
- package/dist/{button-Brb4BhPO.d.mts → button-Bfg2Tnvx.d.ts} +12 -17
- package/dist/{chunk-D5LKWKG7.js → chunk-2GOPD64T.js} +117 -89
- package/dist/{chunk-WPOOC2FX.mjs → chunk-2ONA6OMO.mjs} +33 -44
- package/dist/{chunk-RW2S3KNB.mjs → chunk-5C65JNGY.mjs} +7 -6
- package/dist/{chunk-DNLCSV5M.js → chunk-7UD3SGPP.js} +32 -43
- package/dist/chunk-GI6VN7XU.mjs +2143 -0
- package/dist/{chunk-FT66KYRN.js → chunk-ITALEYDI.js} +2 -2
- package/dist/{chunk-4BOMMZEY.js → chunk-JC7EIEGI.js} +14 -13
- package/dist/chunk-N65HIOBD.js +234 -0
- package/dist/{chunk-EJHYM2HP.mjs → chunk-OZAWULTM.mjs} +1 -1
- package/dist/chunk-R3AVBLJ3.js +2207 -0
- package/dist/{chunk-WRONFPRI.mjs → chunk-RMQBB72G.mjs} +118 -91
- package/dist/chunk-XNDTCYSO.mjs +211 -0
- package/dist/{dialog-BmY55WSX.d.ts → dialog-CZRwrqDa.d.ts} +2 -2
- package/dist/{dialog-CcaHMAsS.d.mts → dialog-Cr0becOL.d.mts} +2 -2
- package/dist/entries/calendar.d.mts +3 -3
- package/dist/entries/calendar.d.ts +3 -3
- package/dist/entries/calendar.js +13 -214
- package/dist/entries/calendar.mjs +5 -196
- package/dist/entries/carousel.d.mts +3 -3
- package/dist/entries/carousel.d.ts +3 -3
- package/dist/entries/carousel.js +17 -14
- package/dist/entries/carousel.mjs +10 -7
- package/dist/entries/chart.d.mts +1 -1
- package/dist/entries/chart.d.ts +1 -1
- package/dist/entries/chart.js +11 -11
- package/dist/entries/chart.mjs +1 -1
- package/dist/entries/command.d.mts +3 -3
- package/dist/entries/command.d.ts +3 -3
- package/dist/entries/command.js +21 -19
- package/dist/entries/command.mjs +8 -6
- package/dist/entries/drawer.d.mts +1 -1
- package/dist/entries/drawer.d.ts +1 -1
- package/dist/entries/drawer.js +9 -9
- package/dist/entries/drawer.mjs +2 -2
- package/dist/entries/input-otp.d.mts +2 -2
- package/dist/entries/input-otp.d.ts +2 -2
- package/dist/entries/input-otp.js +10 -8
- package/dist/entries/input-otp.mjs +6 -4
- package/dist/entries/resizable.d.mts +3 -2
- package/dist/entries/resizable.d.ts +3 -2
- package/dist/entries/resizable.js +8 -6
- package/dist/entries/resizable.mjs +6 -4
- package/dist/index.d.mts +974 -31
- package/dist/index.d.ts +974 -31
- package/dist/index.js +2994 -556
- package/dist/index.mjs +2488 -201
- package/dist/{use-saasflare-props-NrM2Glmp.d.ts → use-saasflare-props-BrjMhU0U.d.mts} +53 -4
- package/dist/{use-saasflare-props-NrM2Glmp.d.mts → use-saasflare-props-BrjMhU0U.d.ts} +53 -4
- package/package.json +4 -3
- package/styles/aurora.css +47 -0
- package/styles/palettes.css +487 -3
- package/styles/surfaces.css +89 -10
- package/styles/theme.css +41 -19
package/dist/entries/chart.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunk2GOPD64T_js = require('../chunk-2GOPD64T.js');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var RechartsPrimitive = require('recharts');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -46,7 +46,7 @@ function ChartContainer({
|
|
|
46
46
|
animated,
|
|
47
47
|
...props
|
|
48
48
|
}) {
|
|
49
|
-
const sf =
|
|
49
|
+
const sf = chunk2GOPD64T_js.useSaasflareProps({ surface, radius, animated });
|
|
50
50
|
const uniqueId = React__namespace.useId();
|
|
51
51
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
52
52
|
return /* @__PURE__ */ jsxRuntime.jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -57,7 +57,7 @@ function ChartContainer({
|
|
|
57
57
|
"data-animated": String(sf.animated),
|
|
58
58
|
"data-slot": "chart",
|
|
59
59
|
"data-chart": chartId,
|
|
60
|
-
className:
|
|
60
|
+
className: chunk2GOPD64T_js.cn(
|
|
61
61
|
"flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",
|
|
62
62
|
className
|
|
63
63
|
),
|
|
@@ -120,12 +120,12 @@ function ChartTooltipContent({
|
|
|
120
120
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
121
121
|
const value = !labelKey && typeof label === "string" ? config[label]?.label || label : itemConfig?.label;
|
|
122
122
|
if (labelFormatter) {
|
|
123
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
123
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunk2GOPD64T_js.cn("font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
124
124
|
}
|
|
125
125
|
if (!value) {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
128
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunk2GOPD64T_js.cn("font-medium", labelClassName), children: value });
|
|
129
129
|
}, [
|
|
130
130
|
label,
|
|
131
131
|
labelFormatter,
|
|
@@ -142,7 +142,7 @@ function ChartTooltipContent({
|
|
|
142
142
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
143
143
|
"div",
|
|
144
144
|
{
|
|
145
|
-
className:
|
|
145
|
+
className: chunk2GOPD64T_js.cn(
|
|
146
146
|
"grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",
|
|
147
147
|
className
|
|
148
148
|
),
|
|
@@ -155,7 +155,7 @@ function ChartTooltipContent({
|
|
|
155
155
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
156
156
|
"div",
|
|
157
157
|
{
|
|
158
|
-
className:
|
|
158
|
+
className: chunk2GOPD64T_js.cn(
|
|
159
159
|
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",
|
|
160
160
|
indicator === "dot" && "items-center"
|
|
161
161
|
),
|
|
@@ -163,7 +163,7 @@ function ChartTooltipContent({
|
|
|
163
163
|
itemConfig?.icon ? /* @__PURE__ */ jsxRuntime.jsx(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsxRuntime.jsx(
|
|
164
164
|
"div",
|
|
165
165
|
{
|
|
166
|
-
className:
|
|
166
|
+
className: chunk2GOPD64T_js.cn(
|
|
167
167
|
"shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",
|
|
168
168
|
{
|
|
169
169
|
"h-2.5 w-2.5": indicator === "dot",
|
|
@@ -181,7 +181,7 @@ function ChartTooltipContent({
|
|
|
181
181
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
182
182
|
"div",
|
|
183
183
|
{
|
|
184
|
-
className:
|
|
184
|
+
className: chunk2GOPD64T_js.cn(
|
|
185
185
|
"flex flex-1 justify-between leading-none",
|
|
186
186
|
nestLabel ? "items-end" : "items-center"
|
|
187
187
|
),
|
|
@@ -218,7 +218,7 @@ function ChartLegendContent({
|
|
|
218
218
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
219
219
|
"div",
|
|
220
220
|
{
|
|
221
|
-
className:
|
|
221
|
+
className: chunk2GOPD64T_js.cn(
|
|
222
222
|
"flex items-center justify-center gap-4",
|
|
223
223
|
verticalAlign === "top" ? "pb-3" : "pt-3",
|
|
224
224
|
className
|
|
@@ -229,7 +229,7 @@ function ChartLegendContent({
|
|
|
229
229
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
230
230
|
"div",
|
|
231
231
|
{
|
|
232
|
-
className:
|
|
232
|
+
className: chunk2GOPD64T_js.cn(
|
|
233
233
|
"flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"
|
|
234
234
|
),
|
|
235
235
|
children: [
|
package/dist/entries/chart.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useSaasflareProps, cn } from '../chunk-
|
|
2
|
+
import { useSaasflareProps, cn } from '../chunk-RMQBB72G.mjs';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import * as RechartsPrimitive from 'recharts';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { Command as Command$1 } from 'cmdk';
|
|
4
|
-
import {
|
|
5
|
-
import { D as Dialog } from '../dialog-
|
|
4
|
+
import { d as SaasflareComponentProps } from '../use-saasflare-props-BrjMhU0U.mjs';
|
|
5
|
+
import { D as Dialog } from '../dialog-Cr0becOL.mjs';
|
|
6
6
|
import '@radix-ui/react-dialog';
|
|
7
7
|
|
|
8
8
|
interface CommandProps extends Omit<React.ComponentProps<typeof Command$1>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
9
9
|
}
|
|
10
|
-
declare function Command({ className, surface, radius, animated, ...props }: CommandProps): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare function Command({ className, surface, radius, animated, iconWeight, ...props }: CommandProps): react_jsx_runtime.JSX.Element;
|
|
11
11
|
declare function CommandDialog({ title, description, children, className, ...props }: React.ComponentProps<typeof Dialog> & {
|
|
12
12
|
title?: string;
|
|
13
13
|
description?: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { Command as Command$1 } from 'cmdk';
|
|
4
|
-
import {
|
|
5
|
-
import { D as Dialog } from '../dialog-
|
|
4
|
+
import { d as SaasflareComponentProps } from '../use-saasflare-props-BrjMhU0U.js';
|
|
5
|
+
import { D as Dialog } from '../dialog-CZRwrqDa.js';
|
|
6
6
|
import '@radix-ui/react-dialog';
|
|
7
7
|
|
|
8
8
|
interface CommandProps extends Omit<React.ComponentProps<typeof Command$1>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
9
9
|
}
|
|
10
|
-
declare function Command({ className, surface, radius, animated, ...props }: CommandProps): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare function Command({ className, surface, radius, animated, iconWeight, ...props }: CommandProps): react_jsx_runtime.JSX.Element;
|
|
11
11
|
declare function CommandDialog({ title, description, children, className, ...props }: React.ComponentProps<typeof Dialog> & {
|
|
12
12
|
title?: string;
|
|
13
13
|
description?: string;
|
package/dist/entries/command.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
6
|
-
var
|
|
4
|
+
var chunkJC7EIEGI_js = require('../chunk-JC7EIEGI.js');
|
|
5
|
+
require('../chunk-ITALEYDI.js');
|
|
6
|
+
var chunkR3AVBLJ3_js = require('../chunk-R3AVBLJ3.js');
|
|
7
|
+
var chunk2GOPD64T_js = require('../chunk-2GOPD64T.js');
|
|
7
8
|
var cmdk = require('cmdk');
|
|
8
|
-
var lucideReact = require('lucide-react');
|
|
9
9
|
var jsxRuntime = require('react/jsx-runtime');
|
|
10
10
|
|
|
11
11
|
function Command({
|
|
@@ -13,9 +13,10 @@ function Command({
|
|
|
13
13
|
surface,
|
|
14
14
|
radius,
|
|
15
15
|
animated,
|
|
16
|
+
iconWeight,
|
|
16
17
|
...props
|
|
17
18
|
}) {
|
|
18
|
-
const sf =
|
|
19
|
+
const sf = chunk2GOPD64T_js.useSaasflareProps({ surface, radius, animated, iconWeight });
|
|
19
20
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
20
21
|
cmdk.Command,
|
|
21
22
|
{
|
|
@@ -24,7 +25,7 @@ function Command({
|
|
|
24
25
|
"data-surface": sf.surface,
|
|
25
26
|
"data-radius": sf.radius,
|
|
26
27
|
"data-animated": String(sf.animated),
|
|
27
|
-
className:
|
|
28
|
+
className: chunk2GOPD64T_js.cn(
|
|
28
29
|
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
29
30
|
className
|
|
30
31
|
)
|
|
@@ -38,15 +39,15 @@ function CommandDialog({
|
|
|
38
39
|
className,
|
|
39
40
|
...props
|
|
40
41
|
}) {
|
|
41
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
42
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
43
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
44
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkJC7EIEGI_js.Dialog, { ...props, children: [
|
|
43
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkJC7EIEGI_js.DialogHeader, { className: "sr-only", children: [
|
|
44
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJC7EIEGI_js.DialogTitle, { children: title }),
|
|
45
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJC7EIEGI_js.DialogDescription, { children: description })
|
|
45
46
|
] }),
|
|
46
47
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
47
|
-
|
|
48
|
+
chunkJC7EIEGI_js.DialogContent,
|
|
48
49
|
{
|
|
49
|
-
className:
|
|
50
|
+
className: chunk2GOPD64T_js.cn("overflow-hidden p-0", className),
|
|
50
51
|
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 })
|
|
51
52
|
}
|
|
52
53
|
)
|
|
@@ -56,18 +57,19 @@ function CommandInput({
|
|
|
56
57
|
className,
|
|
57
58
|
...props
|
|
58
59
|
}) {
|
|
60
|
+
const sf = chunk2GOPD64T_js.useSaasflareProps();
|
|
59
61
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
60
62
|
"div",
|
|
61
63
|
{
|
|
62
64
|
"data-slot": "command-input-wrapper",
|
|
63
65
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
64
66
|
children: [
|
|
65
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
67
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkR3AVBLJ3_js.MagnifyingGlassIcon, { weight: sf.iconWeight, className: "size-4 shrink-0 opacity-50" }),
|
|
66
68
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
67
69
|
cmdk.Command.Input,
|
|
68
70
|
{
|
|
69
71
|
"data-slot": "command-input",
|
|
70
|
-
className:
|
|
72
|
+
className: chunk2GOPD64T_js.cn(
|
|
71
73
|
"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",
|
|
72
74
|
className
|
|
73
75
|
),
|
|
@@ -86,7 +88,7 @@ function CommandList({
|
|
|
86
88
|
cmdk.Command.List,
|
|
87
89
|
{
|
|
88
90
|
"data-slot": "command-list",
|
|
89
|
-
className:
|
|
91
|
+
className: chunk2GOPD64T_js.cn(
|
|
90
92
|
"max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
91
93
|
className
|
|
92
94
|
),
|
|
@@ -114,7 +116,7 @@ function CommandGroup({
|
|
|
114
116
|
cmdk.Command.Group,
|
|
115
117
|
{
|
|
116
118
|
"data-slot": "command-group",
|
|
117
|
-
className:
|
|
119
|
+
className: chunk2GOPD64T_js.cn(
|
|
118
120
|
"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",
|
|
119
121
|
className
|
|
120
122
|
),
|
|
@@ -130,7 +132,7 @@ function CommandSeparator({
|
|
|
130
132
|
cmdk.Command.Separator,
|
|
131
133
|
{
|
|
132
134
|
"data-slot": "command-separator",
|
|
133
|
-
className:
|
|
135
|
+
className: chunk2GOPD64T_js.cn("-mx-1 h-px bg-border", className),
|
|
134
136
|
...props
|
|
135
137
|
}
|
|
136
138
|
);
|
|
@@ -143,7 +145,7 @@ function CommandItem({
|
|
|
143
145
|
cmdk.Command.Item,
|
|
144
146
|
{
|
|
145
147
|
"data-slot": "command-item",
|
|
146
|
-
className:
|
|
148
|
+
className: chunk2GOPD64T_js.cn(
|
|
147
149
|
"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",
|
|
148
150
|
className
|
|
149
151
|
),
|
|
@@ -159,7 +161,7 @@ function CommandShortcut({
|
|
|
159
161
|
"span",
|
|
160
162
|
{
|
|
161
163
|
"data-slot": "command-shortcut",
|
|
162
|
-
className:
|
|
164
|
+
className: chunk2GOPD64T_js.cn(
|
|
163
165
|
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
164
166
|
className
|
|
165
167
|
),
|
package/dist/entries/command.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Dialog, DialogHeader, DialogTitle, DialogDescription, DialogContent } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import {
|
|
2
|
+
import { Dialog, DialogHeader, DialogTitle, DialogDescription, DialogContent } from '../chunk-5C65JNGY.mjs';
|
|
3
|
+
import '../chunk-OZAWULTM.mjs';
|
|
4
|
+
import { MagnifyingGlassIcon } from '../chunk-GI6VN7XU.mjs';
|
|
5
|
+
import { useSaasflareProps, cn } from '../chunk-RMQBB72G.mjs';
|
|
5
6
|
import { Command as Command$1 } from 'cmdk';
|
|
6
|
-
import { SearchIcon } from 'lucide-react';
|
|
7
7
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
function Command({
|
|
@@ -11,9 +11,10 @@ function Command({
|
|
|
11
11
|
surface,
|
|
12
12
|
radius,
|
|
13
13
|
animated,
|
|
14
|
+
iconWeight,
|
|
14
15
|
...props
|
|
15
16
|
}) {
|
|
16
|
-
const sf = useSaasflareProps({ surface, radius, animated });
|
|
17
|
+
const sf = useSaasflareProps({ surface, radius, animated, iconWeight });
|
|
17
18
|
return /* @__PURE__ */ jsx(
|
|
18
19
|
Command$1,
|
|
19
20
|
{
|
|
@@ -54,13 +55,14 @@ function CommandInput({
|
|
|
54
55
|
className,
|
|
55
56
|
...props
|
|
56
57
|
}) {
|
|
58
|
+
const sf = useSaasflareProps();
|
|
57
59
|
return /* @__PURE__ */ jsxs(
|
|
58
60
|
"div",
|
|
59
61
|
{
|
|
60
62
|
"data-slot": "command-input-wrapper",
|
|
61
63
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
62
64
|
children: [
|
|
63
|
-
/* @__PURE__ */ jsx(
|
|
65
|
+
/* @__PURE__ */ jsx(MagnifyingGlassIcon, { weight: sf.iconWeight, className: "size-4 shrink-0 opacity-50" }),
|
|
64
66
|
/* @__PURE__ */ jsx(
|
|
65
67
|
Command$1.Input,
|
|
66
68
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
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 {
|
|
4
|
+
import { d as SaasflareComponentProps } from '../use-saasflare-props-BrjMhU0U.mjs';
|
|
5
5
|
|
|
6
6
|
declare function Drawer({ ...props }: React.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
|
|
7
7
|
declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof Drawer$1.Trigger>): react_jsx_runtime.JSX.Element;
|
package/dist/entries/drawer.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 {
|
|
4
|
+
import { d as SaasflareComponentProps } from '../use-saasflare-props-BrjMhU0U.js';
|
|
5
5
|
|
|
6
6
|
declare function Drawer({ ...props }: React.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
|
|
7
7
|
declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof Drawer$1.Trigger>): 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 chunk2GOPD64T_js = require('../chunk-2GOPD64T.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: chunk2GOPD64T_js.cn(
|
|
37
37
|
"fixed inset-0 z-50 bg-black/50 backdrop-blur-[2px]",
|
|
38
38
|
className
|
|
39
39
|
),
|
|
@@ -49,7 +49,7 @@ function DrawerContent({
|
|
|
49
49
|
animated,
|
|
50
50
|
...props
|
|
51
51
|
}) {
|
|
52
|
-
const sf =
|
|
52
|
+
const sf = chunk2GOPD64T_js.useSaasflareProps({ surface, radius, animated });
|
|
53
53
|
return /* @__PURE__ */ jsxRuntime.jsxs(DrawerPortal, { children: [
|
|
54
54
|
/* @__PURE__ */ jsxRuntime.jsx(DrawerOverlay, {}),
|
|
55
55
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -60,8 +60,8 @@ function DrawerContent({
|
|
|
60
60
|
"data-surface": sf.surface,
|
|
61
61
|
"data-radius": sf.radius,
|
|
62
62
|
"data-animated": String(sf.animated),
|
|
63
|
-
className:
|
|
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
|
|
63
|
+
className: chunk2GOPD64T_js.cn(
|
|
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 surface-card",
|
|
65
65
|
className
|
|
66
66
|
),
|
|
67
67
|
children: [
|
|
@@ -77,7 +77,7 @@ function DrawerHeader({ className, ...props }) {
|
|
|
77
77
|
"div",
|
|
78
78
|
{
|
|
79
79
|
"data-slot": "drawer-header",
|
|
80
|
-
className:
|
|
80
|
+
className: chunk2GOPD64T_js.cn("flex flex-col gap-1.5 p-4", className),
|
|
81
81
|
...props
|
|
82
82
|
}
|
|
83
83
|
);
|
|
@@ -87,7 +87,7 @@ function DrawerFooter({ className, ...props }) {
|
|
|
87
87
|
"div",
|
|
88
88
|
{
|
|
89
89
|
"data-slot": "drawer-footer",
|
|
90
|
-
className:
|
|
90
|
+
className: chunk2GOPD64T_js.cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
91
91
|
...props
|
|
92
92
|
}
|
|
93
93
|
);
|
|
@@ -100,7 +100,7 @@ function DrawerTitle({
|
|
|
100
100
|
vaul.Drawer.Title,
|
|
101
101
|
{
|
|
102
102
|
"data-slot": "drawer-title",
|
|
103
|
-
className:
|
|
103
|
+
className: chunk2GOPD64T_js.cn("text-lg leading-none font-semibold", className),
|
|
104
104
|
...props
|
|
105
105
|
}
|
|
106
106
|
);
|
|
@@ -113,7 +113,7 @@ function DrawerDescription({
|
|
|
113
113
|
vaul.Drawer.Description,
|
|
114
114
|
{
|
|
115
115
|
"data-slot": "drawer-description",
|
|
116
|
-
className:
|
|
116
|
+
className: chunk2GOPD64T_js.cn("text-sm text-muted-foreground", className),
|
|
117
117
|
...props
|
|
118
118
|
}
|
|
119
119
|
);
|
package/dist/entries/drawer.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn, useSaasflareProps } from '../chunk-
|
|
2
|
+
import { cn, useSaasflareProps } from '../chunk-RMQBB72G.mjs';
|
|
3
3
|
import { Drawer as Drawer$1 } from 'vaul';
|
|
4
4
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -59,7 +59,7 @@ function DrawerContent({
|
|
|
59
59
|
"data-radius": sf.radius,
|
|
60
60
|
"data-animated": String(sf.animated),
|
|
61
61
|
className: cn(
|
|
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
|
|
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 surface-card",
|
|
63
63
|
className
|
|
64
64
|
),
|
|
65
65
|
children: [
|
|
@@ -1,12 +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 {
|
|
4
|
+
import { d as SaasflareComponentProps } from '../use-saasflare-props-BrjMhU0U.mjs';
|
|
5
5
|
|
|
6
6
|
type InputOTPProps = React.ComponentProps<typeof OTPInput> & SaasflareComponentProps & {
|
|
7
7
|
containerClassName?: string;
|
|
8
8
|
};
|
|
9
|
-
declare function InputOTP({ className, containerClassName, surface, radius, animated, ...props }: InputOTPProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
declare function InputOTP({ className, containerClassName, surface, radius, animated, iconWeight, ...props }: InputOTPProps): react_jsx_runtime.JSX.Element;
|
|
10
10
|
declare function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
11
11
|
declare function InputOTPSlot({ index, className, ...props }: React.ComponentProps<"div"> & {
|
|
12
12
|
index: number;
|
|
@@ -1,12 +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 {
|
|
4
|
+
import { d as SaasflareComponentProps } from '../use-saasflare-props-BrjMhU0U.js';
|
|
5
5
|
|
|
6
6
|
type InputOTPProps = React.ComponentProps<typeof OTPInput> & SaasflareComponentProps & {
|
|
7
7
|
containerClassName?: string;
|
|
8
8
|
};
|
|
9
|
-
declare function InputOTP({ className, containerClassName, surface, radius, animated, ...props }: InputOTPProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
declare function InputOTP({ className, containerClassName, surface, radius, animated, iconWeight, ...props }: InputOTPProps): react_jsx_runtime.JSX.Element;
|
|
10
10
|
declare function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
11
11
|
declare function InputOTPSlot({ index, className, ...props }: React.ComponentProps<"div"> & {
|
|
12
12
|
index: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkR3AVBLJ3_js = require('../chunk-R3AVBLJ3.js');
|
|
5
|
+
var chunk2GOPD64T_js = require('../chunk-2GOPD64T.js');
|
|
5
6
|
var React = require('react');
|
|
6
7
|
var inputOtp = require('input-otp');
|
|
7
|
-
var lucideReact = require('lucide-react');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
@@ -33,9 +33,10 @@ function InputOTP({
|
|
|
33
33
|
surface,
|
|
34
34
|
radius,
|
|
35
35
|
animated,
|
|
36
|
+
iconWeight,
|
|
36
37
|
...props
|
|
37
38
|
}) {
|
|
38
|
-
const sf =
|
|
39
|
+
const sf = chunk2GOPD64T_js.useSaasflareProps({ surface, radius, animated, iconWeight });
|
|
39
40
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
40
41
|
inputOtp.OTPInput,
|
|
41
42
|
{
|
|
@@ -44,11 +45,11 @@ function InputOTP({
|
|
|
44
45
|
"data-surface": sf.surface,
|
|
45
46
|
"data-radius": sf.radius,
|
|
46
47
|
"data-animated": String(sf.animated),
|
|
47
|
-
containerClassName:
|
|
48
|
+
containerClassName: chunk2GOPD64T_js.cn(
|
|
48
49
|
"flex items-center gap-2 has-disabled:opacity-50",
|
|
49
50
|
containerClassName
|
|
50
51
|
),
|
|
51
|
-
className:
|
|
52
|
+
className: chunk2GOPD64T_js.cn("disabled:cursor-not-allowed", className)
|
|
52
53
|
}
|
|
53
54
|
);
|
|
54
55
|
}
|
|
@@ -57,7 +58,7 @@ function InputOTPGroup({ className, ...props }) {
|
|
|
57
58
|
"div",
|
|
58
59
|
{
|
|
59
60
|
"data-slot": "input-otp-group",
|
|
60
|
-
className:
|
|
61
|
+
className: chunk2GOPD64T_js.cn("flex items-center", className),
|
|
61
62
|
...props
|
|
62
63
|
}
|
|
63
64
|
);
|
|
@@ -74,7 +75,7 @@ function InputOTPSlot({
|
|
|
74
75
|
{
|
|
75
76
|
"data-slot": "input-otp-slot",
|
|
76
77
|
"data-active": isActive,
|
|
77
|
-
className:
|
|
78
|
+
className: chunk2GOPD64T_js.cn(
|
|
78
79
|
"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",
|
|
79
80
|
className
|
|
80
81
|
),
|
|
@@ -87,7 +88,8 @@ function InputOTPSlot({
|
|
|
87
88
|
);
|
|
88
89
|
}
|
|
89
90
|
function InputOTPSeparator({ ...props }) {
|
|
90
|
-
|
|
91
|
+
const sf = chunk2GOPD64T_js.useSaasflareProps();
|
|
92
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(chunkR3AVBLJ3_js.MinusIcon, { weight: sf.iconWeight }) });
|
|
91
93
|
}
|
|
92
94
|
|
|
93
95
|
exports.InputOTP = InputOTP;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { MinusIcon } from '../chunk-GI6VN7XU.mjs';
|
|
3
|
+
import { useSaasflareProps, cn } from '../chunk-RMQBB72G.mjs';
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
import { OTPInput, OTPInputContext } from 'input-otp';
|
|
5
|
-
import { MinusIcon } from 'lucide-react';
|
|
6
6
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
function InputOTP({
|
|
@@ -11,9 +11,10 @@ function InputOTP({
|
|
|
11
11
|
surface,
|
|
12
12
|
radius,
|
|
13
13
|
animated,
|
|
14
|
+
iconWeight,
|
|
14
15
|
...props
|
|
15
16
|
}) {
|
|
16
|
-
const sf = useSaasflareProps({ surface, radius, animated });
|
|
17
|
+
const sf = useSaasflareProps({ surface, radius, animated, iconWeight });
|
|
17
18
|
return /* @__PURE__ */ jsx(
|
|
18
19
|
OTPInput,
|
|
19
20
|
{
|
|
@@ -65,7 +66,8 @@ function InputOTPSlot({
|
|
|
65
66
|
);
|
|
66
67
|
}
|
|
67
68
|
function InputOTPSeparator({ ...props }) {
|
|
68
|
-
|
|
69
|
+
const sf = useSaasflareProps();
|
|
70
|
+
return /* @__PURE__ */ jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsx(MinusIcon, { weight: sf.iconWeight }) });
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
3
|
-
import {
|
|
3
|
+
import { d as SaasflareComponentProps } from '../use-saasflare-props-BrjMhU0U.mjs';
|
|
4
|
+
import 'react';
|
|
4
5
|
|
|
5
6
|
type ResizablePanelGroupProps = ResizablePrimitive.GroupProps & SaasflareComponentProps;
|
|
6
|
-
declare function ResizablePanelGroup({ className, surface, radius, animated, ...props }: ResizablePanelGroupProps): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function ResizablePanelGroup({ className, surface, radius, animated, iconWeight, ...props }: ResizablePanelGroupProps): react_jsx_runtime.JSX.Element;
|
|
7
8
|
declare function ResizablePanel({ ...props }: ResizablePrimitive.PanelProps): react_jsx_runtime.JSX.Element;
|
|
8
9
|
declare function ResizableHandle({ withHandle, className, ...props }: ResizablePrimitive.SeparatorProps & {
|
|
9
10
|
withHandle?: boolean;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
3
|
-
import {
|
|
3
|
+
import { d as SaasflareComponentProps } from '../use-saasflare-props-BrjMhU0U.js';
|
|
4
|
+
import 'react';
|
|
4
5
|
|
|
5
6
|
type ResizablePanelGroupProps = ResizablePrimitive.GroupProps & SaasflareComponentProps;
|
|
6
|
-
declare function ResizablePanelGroup({ className, surface, radius, animated, ...props }: ResizablePanelGroupProps): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function ResizablePanelGroup({ className, surface, radius, animated, iconWeight, ...props }: ResizablePanelGroupProps): react_jsx_runtime.JSX.Element;
|
|
7
8
|
declare function ResizablePanel({ ...props }: ResizablePrimitive.PanelProps): react_jsx_runtime.JSX.Element;
|
|
8
9
|
declare function ResizableHandle({ withHandle, className, ...props }: ResizablePrimitive.SeparatorProps & {
|
|
9
10
|
withHandle?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkR3AVBLJ3_js = require('../chunk-R3AVBLJ3.js');
|
|
5
|
+
var chunk2GOPD64T_js = require('../chunk-2GOPD64T.js');
|
|
6
6
|
var ResizablePrimitive = require('react-resizable-panels');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
|
|
@@ -31,9 +31,10 @@ function ResizablePanelGroup({
|
|
|
31
31
|
surface,
|
|
32
32
|
radius,
|
|
33
33
|
animated,
|
|
34
|
+
iconWeight,
|
|
34
35
|
...props
|
|
35
36
|
}) {
|
|
36
|
-
const sf =
|
|
37
|
+
const sf = chunk2GOPD64T_js.useSaasflareProps({ surface, radius, animated, iconWeight });
|
|
37
38
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38
39
|
ResizablePrimitive__namespace.Group,
|
|
39
40
|
{
|
|
@@ -42,7 +43,7 @@ function ResizablePanelGroup({
|
|
|
42
43
|
"data-surface": sf.surface,
|
|
43
44
|
"data-radius": sf.radius,
|
|
44
45
|
"data-animated": String(sf.animated),
|
|
45
|
-
className:
|
|
46
|
+
className: chunk2GOPD64T_js.cn(
|
|
46
47
|
"flex h-full w-full aria-[orientation=vertical]:flex-col",
|
|
47
48
|
className
|
|
48
49
|
)
|
|
@@ -57,16 +58,17 @@ function ResizableHandle({
|
|
|
57
58
|
className,
|
|
58
59
|
...props
|
|
59
60
|
}) {
|
|
61
|
+
const sf = chunk2GOPD64T_js.useSaasflareProps();
|
|
60
62
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
61
63
|
ResizablePrimitive__namespace.Separator,
|
|
62
64
|
{
|
|
63
65
|
"data-slot": "resizable-handle",
|
|
64
|
-
className:
|
|
66
|
+
className: chunk2GOPD64T_js.cn(
|
|
65
67
|
"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",
|
|
66
68
|
className
|
|
67
69
|
),
|
|
68
70
|
...props,
|
|
69
|
-
children: withHandle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-xs border bg-border", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
71
|
+
children: withHandle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-xs border bg-border", children: /* @__PURE__ */ jsxRuntime.jsx(chunkR3AVBLJ3_js.DotsSixVerticalIcon, { weight: sf.iconWeight, className: "size-2.5" }) })
|
|
70
72
|
}
|
|
71
73
|
);
|
|
72
74
|
}
|