laif-ds 0.2.19 → 0.2.21
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/_virtual/index4.js +5 -5
- package/dist/_virtual/index5.js +5 -5
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/ui/app-stepper.js +212 -0
- package/dist/components/ui/file-preview.js +215 -138
- package/dist/components/ui/file-previewer.js +1 -1
- package/dist/components/ui/file-uploader.js +109 -96
- package/dist/components/ui/stepper.js +387 -0
- package/dist/index.d.ts +52 -1
- package/dist/index.js +30 -28
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +70 -69
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +24 -25
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +22 -23
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +28 -29
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +1 -2
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +49 -50
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +22 -23
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +6 -7
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +31 -32
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.js +56 -57
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +6 -7
- package/dist/node_modules/@radix-ui/react-progress/dist/index.js +20 -21
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +12 -13
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +5 -6
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +17 -18
- package/dist/node_modules/@radix-ui/react-slider/dist/index.js +39 -40
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +12 -13
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +13 -14
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js +20 -21
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +8 -9
- package/dist/node_modules/cmdk/dist/index.js +2 -2
- package/dist/node_modules/eventemitter3/index2.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/node_modules/vaul/dist/index.js +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +3 -2
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dialog/dist/index.js +0 -255
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-dialog/dist/index.js +0 -258
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { getDefaultExportFromCjs as
|
|
3
|
-
import { __require as
|
|
4
|
-
var t =
|
|
5
|
-
const
|
|
2
|
+
import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
|
|
3
|
+
import { __require as r } from "../node_modules/extend/index.js";
|
|
4
|
+
var t = r();
|
|
5
|
+
const x = /* @__PURE__ */ e(t);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
x as default
|
|
8
8
|
};
|
package/dist/_virtual/index5.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { getDefaultExportFromCjs as
|
|
3
|
-
import { __require as
|
|
4
|
-
var t =
|
|
5
|
-
const
|
|
2
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
3
|
+
import { __require as e } from "../node_modules/style-to-js/cjs/index.js";
|
|
4
|
+
var t = e();
|
|
5
|
+
const a = /* @__PURE__ */ r(t);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
package/dist/_virtual/index6.js
CHANGED
package/dist/_virtual/index7.js
CHANGED
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as l, jsxs as s } from "react/jsx-runtime";
|
|
3
|
+
import { Stepper as g, StepperNav as z, StepperItem as V, StepperTrigger as S, StepperIndicator as b, StepperTitle as N, StepperSeparator as w, StepperPanel as C, StepperContent as I } from "./stepper.js";
|
|
4
|
+
import { cva as e } from "../../node_modules/class-variance-authority/dist/index.js";
|
|
5
|
+
const T = e("", {
|
|
6
|
+
variants: {
|
|
7
|
+
align: {
|
|
8
|
+
horizontal: "flex w-full flex-col",
|
|
9
|
+
vertical: "flex items-start gap-8"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
defaultVariants: {
|
|
13
|
+
align: "horizontal"
|
|
14
|
+
}
|
|
15
|
+
}), j = e(
|
|
16
|
+
"rounded-lg p-6 shadow w-full max-w-6xl",
|
|
17
|
+
{
|
|
18
|
+
variants: {
|
|
19
|
+
align: {
|
|
20
|
+
horizontal: "mt-6",
|
|
21
|
+
vertical: "mt-1"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: {
|
|
25
|
+
align: "horizontal"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
), k = e("", {
|
|
29
|
+
variants: {
|
|
30
|
+
align: {
|
|
31
|
+
horizontal: "flex flex-col gap-3",
|
|
32
|
+
vertical: "flex flex-row gap-3 items-center"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
defaultVariants: {
|
|
36
|
+
align: "horizontal"
|
|
37
|
+
}
|
|
38
|
+
}), y = e("relative", {
|
|
39
|
+
variants: {
|
|
40
|
+
align: {
|
|
41
|
+
horizontal: "flex-1 items-start",
|
|
42
|
+
vertical: "flex items-start"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
defaultVariants: {
|
|
46
|
+
align: "horizontal"
|
|
47
|
+
}
|
|
48
|
+
}), A = e("", {
|
|
49
|
+
variants: {
|
|
50
|
+
align: {
|
|
51
|
+
horizontal: "w-full",
|
|
52
|
+
vertical: "relative flex flex-col py-2"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
defaultVariants: {
|
|
56
|
+
align: "horizontal"
|
|
57
|
+
}
|
|
58
|
+
}), W = e("", {
|
|
59
|
+
variants: {
|
|
60
|
+
size: {
|
|
61
|
+
sm: "w-6 h-6 text-sm font-medium",
|
|
62
|
+
md: "w-8 h-8 text-base font-bold"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
defaultVariants: {
|
|
66
|
+
size: "sm"
|
|
67
|
+
}
|
|
68
|
+
}), q = e("", {
|
|
69
|
+
variants: {
|
|
70
|
+
size: {
|
|
71
|
+
sm: "text-sm font-medium",
|
|
72
|
+
md: "text-base font-bold"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
defaultVariants: {
|
|
76
|
+
size: "sm"
|
|
77
|
+
}
|
|
78
|
+
}), B = e(
|
|
79
|
+
"group-data-[state=completed]/step:bg-d-primary",
|
|
80
|
+
{
|
|
81
|
+
variants: {
|
|
82
|
+
align: {
|
|
83
|
+
horizontal: "absolute left-1/2 h-0.5",
|
|
84
|
+
vertical: "!w-0.5"
|
|
85
|
+
},
|
|
86
|
+
size: {
|
|
87
|
+
sm: "top-2.5 ml-2 w-[calc(100%-1rem)]",
|
|
88
|
+
md: "top-3.5 ml-4 w-[calc(100%-2rem)]"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
compoundVariants: [
|
|
92
|
+
{
|
|
93
|
+
align: "vertical",
|
|
94
|
+
size: "sm",
|
|
95
|
+
class: "ml-2.5"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
align: "vertical",
|
|
99
|
+
size: "md",
|
|
100
|
+
class: "ml-3.5"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
defaultVariants: {
|
|
104
|
+
align: "horizontal",
|
|
105
|
+
size: "sm"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
), D = e("flex flex-1", {
|
|
109
|
+
variants: {
|
|
110
|
+
align: {
|
|
111
|
+
horizontal: "justify-center",
|
|
112
|
+
vertical: "flex-grow"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
defaultVariants: {
|
|
116
|
+
align: "horizontal"
|
|
117
|
+
}
|
|
118
|
+
}), E = e("flex flex-1 flex-col", {
|
|
119
|
+
variants: {
|
|
120
|
+
align: {
|
|
121
|
+
horizontal: "items-center",
|
|
122
|
+
vertical: ""
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
defaultVariants: {
|
|
126
|
+
align: "horizontal"
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
function J({
|
|
130
|
+
steps: r,
|
|
131
|
+
align: t = "horizontal",
|
|
132
|
+
size: n = "sm",
|
|
133
|
+
showSeparators: f = !0,
|
|
134
|
+
defaultStep: u,
|
|
135
|
+
allowStepNavigation: c = !0,
|
|
136
|
+
allowClickOnlyCompleted: p = !1,
|
|
137
|
+
onStepClick: d,
|
|
138
|
+
indicators: h,
|
|
139
|
+
...o
|
|
140
|
+
}) {
|
|
141
|
+
const v = (a, i) => {
|
|
142
|
+
if (d) {
|
|
143
|
+
d(a, i);
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
c && !a.disabled && (!p || a.completed) && o.onValueChange?.(a.id);
|
|
147
|
+
}, x = o.value ?? u ?? r[0]?.id;
|
|
148
|
+
return /* @__PURE__ */ l(
|
|
149
|
+
g,
|
|
150
|
+
{
|
|
151
|
+
...o,
|
|
152
|
+
value: x,
|
|
153
|
+
orientation: t,
|
|
154
|
+
indicators: h,
|
|
155
|
+
children: /* @__PURE__ */ s("div", { className: T({ align: t }), children: [
|
|
156
|
+
/* @__PURE__ */ l(z, { className: A({ align: t }), children: r.map((a, i) => {
|
|
157
|
+
const m = c && !a.disabled && (!p || a.completed);
|
|
158
|
+
return /* @__PURE__ */ s(
|
|
159
|
+
V,
|
|
160
|
+
{
|
|
161
|
+
step: a.id,
|
|
162
|
+
completed: a.completed,
|
|
163
|
+
disabled: a.disabled,
|
|
164
|
+
loading: a.loading,
|
|
165
|
+
className: y({ align: t }),
|
|
166
|
+
children: [
|
|
167
|
+
/* @__PURE__ */ s(
|
|
168
|
+
S,
|
|
169
|
+
{
|
|
170
|
+
className: k({ align: t }),
|
|
171
|
+
onClick: () => v(a, i),
|
|
172
|
+
style: { cursor: m ? "pointer" : "default" },
|
|
173
|
+
children: [
|
|
174
|
+
/* @__PURE__ */ l(
|
|
175
|
+
b,
|
|
176
|
+
{
|
|
177
|
+
className: W({ size: n }),
|
|
178
|
+
children: a.id
|
|
179
|
+
}
|
|
180
|
+
),
|
|
181
|
+
/* @__PURE__ */ l(N, { className: q({ size: n }), children: a.label })
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
),
|
|
185
|
+
f && i < r.length - 1 && /* @__PURE__ */ l(
|
|
186
|
+
w,
|
|
187
|
+
{
|
|
188
|
+
className: B({ align: t, size: n })
|
|
189
|
+
}
|
|
190
|
+
)
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
a.id
|
|
194
|
+
);
|
|
195
|
+
}) }),
|
|
196
|
+
/* @__PURE__ */ l(C, { className: D({ align: t }), children: r.map((a) => /* @__PURE__ */ l(
|
|
197
|
+
I,
|
|
198
|
+
{
|
|
199
|
+
value: a.id,
|
|
200
|
+
className: E({ align: t }),
|
|
201
|
+
children: /* @__PURE__ */ l("div", { className: j({ align: t }), children: a.component })
|
|
202
|
+
},
|
|
203
|
+
a.id
|
|
204
|
+
)) })
|
|
205
|
+
] })
|
|
206
|
+
}
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
export {
|
|
210
|
+
J as AppStepper,
|
|
211
|
+
J as default
|
|
212
|
+
};
|