@sikka/hawa 0.25.1-next → 0.26.0-next
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/blocks/auth/index.js +1 -1
- package/dist/blocks/auth/index.mjs +1 -1
- package/dist/blocks/index.js +1 -1
- package/dist/blocks/index.mjs +1 -1
- package/dist/carousel/index.d.mts +5 -5
- package/dist/carousel/index.d.ts +5 -5
- package/dist/carousel/index.js +11 -10
- package/dist/carousel/index.mjs +11 -10
- package/dist/chunk-3N6JJKMN.mjs +263 -0
- package/dist/commonTypes-cyhMPvmz.d.mts +4 -0
- package/dist/commonTypes-cyhMPvmz.d.ts +4 -0
- package/dist/elements/index.d.mts +5 -5
- package/dist/elements/index.d.ts +5 -5
- package/dist/elements/index.js +11 -10
- package/dist/elements/index.mjs +11 -10
- package/dist/index.css +3 -0
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +12 -11
- package/dist/index.mjs +12 -11
- package/dist/signature/index.d.mts +11 -0
- package/dist/signature/index.d.ts +11 -0
- package/dist/signature/index.js +151 -0
- package/dist/signature/index.mjs +109 -0
- package/dist/sortButton/index.mjs +8 -261
- package/dist/splitButton/index.d.mts +4 -3
- package/dist/splitButton/index.d.ts +4 -3
- package/dist/splitButton/index.mjs +9 -260
- package/dist/switch/index.d.mts +1 -1
- package/dist/switch/index.d.ts +1 -1
- package/dist/tabs/index.d.mts +1 -1
- package/dist/tabs/index.d.ts +1 -1
- package/dist/textarea/index.d.mts +1 -1
- package/dist/textarea/index.d.ts +1 -1
- package/dist/tooltip/index.d.mts +4 -3
- package/dist/tooltip/index.d.ts +4 -3
- package/dist/tooltip/index.mjs +9 -4
- package/package.json +14 -12
- package/dist/commonTypes-2k6FnHw5.d.mts +0 -4
- package/dist/commonTypes-2k6FnHw5.d.ts +0 -4
- package/dist/commonTypes-f_LVO3Sm.d.mts +0 -5
- package/dist/commonTypes-f_LVO3Sm.d.ts +0 -5
@@ -3956,7 +3956,7 @@ var ResetPasswordForm = (props) => {
|
|
3956
3956
|
const { handleSubmit, control, formState } = (0, import_react_hook_form4.useForm)({
|
3957
3957
|
resolver: (0, import_zod4.zodResolver)(formSchema)
|
3958
3958
|
});
|
3959
|
-
return /* @__PURE__ */ import_react19.default.createElement(Card, { dir: props.direction }, !props.sent ? /* @__PURE__ */ import_react19.default.createElement(import_react19.default.Fragment, null, !props.headless && /* @__PURE__ */ import_react19.default.createElement(CardHeader, null, /* @__PURE__ */ import_react19.default.createElement(CardTitle, null,
|
3959
|
+
return /* @__PURE__ */ import_react19.default.createElement(Card, { dir: props.direction }, !props.sent ? /* @__PURE__ */ import_react19.default.createElement(import_react19.default.Fragment, null, !props.headless && /* @__PURE__ */ import_react19.default.createElement(CardHeader, null, /* @__PURE__ */ import_react19.default.createElement(CardTitle, null, ((_g = props.texts) == null ? void 0 : _g.headTitle) || "Reset Password"), /* @__PURE__ */ import_react19.default.createElement(CardDescription, null, ((_h = props.texts) == null ? void 0 : _h.headDescription) || "Enter your email to reset your account password")), /* @__PURE__ */ import_react19.default.createElement(
|
3960
3960
|
"form",
|
3961
3961
|
{
|
3962
3962
|
noValidate: true,
|
@@ -3149,7 +3149,7 @@ var ResetPasswordForm = (props) => {
|
|
3149
3149
|
const { handleSubmit, control, formState } = useForm4({
|
3150
3150
|
resolver: zodResolver4(formSchema)
|
3151
3151
|
});
|
3152
|
-
return /* @__PURE__ */ React11.createElement(Card, { dir: props.direction }, !props.sent ? /* @__PURE__ */ React11.createElement(React11.Fragment, null, !props.headless && /* @__PURE__ */ React11.createElement(CardHeader, null, /* @__PURE__ */ React11.createElement(CardTitle, null,
|
3152
|
+
return /* @__PURE__ */ React11.createElement(Card, { dir: props.direction }, !props.sent ? /* @__PURE__ */ React11.createElement(React11.Fragment, null, !props.headless && /* @__PURE__ */ React11.createElement(CardHeader, null, /* @__PURE__ */ React11.createElement(CardTitle, null, ((_g = props.texts) == null ? void 0 : _g.headTitle) || "Reset Password"), /* @__PURE__ */ React11.createElement(CardDescription, null, ((_h = props.texts) == null ? void 0 : _h.headDescription) || "Enter your email to reset your account password")), /* @__PURE__ */ React11.createElement(
|
3153
3153
|
"form",
|
3154
3154
|
{
|
3155
3155
|
noValidate: true,
|
package/dist/blocks/index.js
CHANGED
@@ -4113,7 +4113,7 @@ var ResetPasswordForm = (props) => {
|
|
4113
4113
|
const { handleSubmit, control, formState } = (0, import_react_hook_form4.useForm)({
|
4114
4114
|
resolver: (0, import_zod4.zodResolver)(formSchema)
|
4115
4115
|
});
|
4116
|
-
return /* @__PURE__ */ import_react19.default.createElement(Card, { dir: props.direction }, !props.sent ? /* @__PURE__ */ import_react19.default.createElement(import_react19.default.Fragment, null, !props.headless && /* @__PURE__ */ import_react19.default.createElement(CardHeader, null, /* @__PURE__ */ import_react19.default.createElement(CardTitle, null,
|
4116
|
+
return /* @__PURE__ */ import_react19.default.createElement(Card, { dir: props.direction }, !props.sent ? /* @__PURE__ */ import_react19.default.createElement(import_react19.default.Fragment, null, !props.headless && /* @__PURE__ */ import_react19.default.createElement(CardHeader, null, /* @__PURE__ */ import_react19.default.createElement(CardTitle, null, ((_g = props.texts) == null ? void 0 : _g.headTitle) || "Reset Password"), /* @__PURE__ */ import_react19.default.createElement(CardDescription, null, ((_h = props.texts) == null ? void 0 : _h.headDescription) || "Enter your email to reset your account password")), /* @__PURE__ */ import_react19.default.createElement(
|
4117
4117
|
"form",
|
4118
4118
|
{
|
4119
4119
|
noValidate: true,
|
package/dist/blocks/index.mjs
CHANGED
@@ -922,7 +922,7 @@ var ResetPasswordForm = (props) => {
|
|
922
922
|
const { handleSubmit, control, formState } = useForm4({
|
923
923
|
resolver: zodResolver4(formSchema)
|
924
924
|
});
|
925
|
-
return /* @__PURE__ */ React7.createElement(Card, { dir: props.direction }, !props.sent ? /* @__PURE__ */ React7.createElement(React7.Fragment, null, !props.headless && /* @__PURE__ */ React7.createElement(CardHeader, null, /* @__PURE__ */ React7.createElement(CardTitle, null,
|
925
|
+
return /* @__PURE__ */ React7.createElement(Card, { dir: props.direction }, !props.sent ? /* @__PURE__ */ React7.createElement(React7.Fragment, null, !props.headless && /* @__PURE__ */ React7.createElement(CardHeader, null, /* @__PURE__ */ React7.createElement(CardTitle, null, ((_g = props.texts) == null ? void 0 : _g.headTitle) || "Reset Password"), /* @__PURE__ */ React7.createElement(CardDescription, null, ((_h = props.texts) == null ? void 0 : _h.headDescription) || "Enter your email to reset your account password")), /* @__PURE__ */ React7.createElement(
|
926
926
|
"form",
|
927
927
|
{
|
928
928
|
noValidate: true,
|
@@ -1,13 +1,13 @@
|
|
1
|
-
import React__default
|
1
|
+
import React__default from 'react';
|
2
2
|
import { EmblaOptionsType } from 'embla-carousel-react';
|
3
3
|
|
4
|
-
|
4
|
+
type CarouselProps = {
|
5
5
|
items: React__default.ReactNode[];
|
6
6
|
showArrows?: boolean;
|
7
7
|
autoplay?: boolean;
|
8
8
|
autoplayInterval?: number;
|
9
|
-
|
10
|
-
|
11
|
-
declare const Carousel:
|
9
|
+
options?: EmblaOptionsType;
|
10
|
+
};
|
11
|
+
declare const Carousel: React__default.FC<CarouselProps>;
|
12
12
|
|
13
13
|
export { Carousel };
|
package/dist/carousel/index.d.ts
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
import React__default
|
1
|
+
import React__default from 'react';
|
2
2
|
import { EmblaOptionsType } from 'embla-carousel-react';
|
3
3
|
|
4
|
-
|
4
|
+
type CarouselProps = {
|
5
5
|
items: React__default.ReactNode[];
|
6
6
|
showArrows?: boolean;
|
7
7
|
autoplay?: boolean;
|
8
8
|
autoplayInterval?: number;
|
9
|
-
|
10
|
-
|
11
|
-
declare const Carousel:
|
9
|
+
options?: EmblaOptionsType;
|
10
|
+
};
|
11
|
+
declare const Carousel: React__default.FC<CarouselProps>;
|
12
12
|
|
13
13
|
export { Carousel };
|
package/dist/carousel/index.js
CHANGED
@@ -46,17 +46,18 @@ function cn(...inputs) {
|
|
46
46
|
}
|
47
47
|
|
48
48
|
// components/elements/carousel/Carousel.tsx
|
49
|
-
var Carousel = (
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
} =
|
49
|
+
var Carousel = ({
|
50
|
+
items,
|
51
|
+
showArrows,
|
52
|
+
options,
|
53
|
+
autoplay,
|
54
|
+
autoplayInterval = 3e3,
|
55
|
+
...props
|
56
|
+
}) => {
|
57
|
+
const { loop } = options;
|
58
58
|
const [emblaRef, emblaApi] = (0, import_embla_carousel_react.default)({
|
59
|
-
|
59
|
+
...options,
|
60
|
+
loop: autoplay ? true : loop || false
|
60
61
|
});
|
61
62
|
const [selectedIndex, setSelectedIndex] = (0, import_react.useState)(0);
|
62
63
|
(0, import_react.useEffect)(() => {
|
package/dist/carousel/index.mjs
CHANGED
@@ -5,17 +5,18 @@ import {
|
|
5
5
|
// components/elements/carousel/Carousel.tsx
|
6
6
|
import React, { useEffect, useState } from "react";
|
7
7
|
import useEmblaCarousel from "embla-carousel-react";
|
8
|
-
var Carousel = (
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
} =
|
8
|
+
var Carousel = ({
|
9
|
+
items,
|
10
|
+
showArrows,
|
11
|
+
options,
|
12
|
+
autoplay,
|
13
|
+
autoplayInterval = 3e3,
|
14
|
+
...props
|
15
|
+
}) => {
|
16
|
+
const { loop } = options;
|
17
17
|
const [emblaRef, emblaApi] = useEmblaCarousel({
|
18
|
-
|
18
|
+
...options,
|
19
|
+
loop: autoplay ? true : loop || false
|
19
20
|
});
|
20
21
|
const [selectedIndex, setSelectedIndex] = useState(0);
|
21
22
|
useEffect(() => {
|
@@ -0,0 +1,263 @@
|
|
1
|
+
// components/util.ts
|
2
|
+
import { clsx } from "clsx";
|
3
|
+
import { twMerge } from "tailwind-merge";
|
4
|
+
function cn(...inputs) {
|
5
|
+
return twMerge(clsx(inputs));
|
6
|
+
}
|
7
|
+
|
8
|
+
// components/elements/button/Button.tsx
|
9
|
+
import * as React2 from "react";
|
10
|
+
import { cva } from "class-variance-authority";
|
11
|
+
|
12
|
+
// components/elements/loading/Loading.tsx
|
13
|
+
import React from "react";
|
14
|
+
var Loading = ({
|
15
|
+
design = "spinner",
|
16
|
+
size = "sm",
|
17
|
+
themeMode = "light",
|
18
|
+
color,
|
19
|
+
...props
|
20
|
+
}) => {
|
21
|
+
let sizeStyles = {
|
22
|
+
button: "hawa-h-4 hawa-w-4",
|
23
|
+
xs: "hawa-h-1 hawa-w-1",
|
24
|
+
sm: "hawa-h-6 hawa-w-6",
|
25
|
+
normal: "hawa-h-8 hawa-w-8",
|
26
|
+
lg: "hawa-h-14 hawa-w-14",
|
27
|
+
xl: "hawa-h-24 hawa-w-24"
|
28
|
+
};
|
29
|
+
let animationStyles = {
|
30
|
+
pulse: "hawa-animate-in hawa-fade-in hawa-duration-1000",
|
31
|
+
bounce: "hawa-animate-bounce"
|
32
|
+
};
|
33
|
+
switch (design.split("-")[0]) {
|
34
|
+
case "dots":
|
35
|
+
return /* @__PURE__ */ React.createElement(
|
36
|
+
"div",
|
37
|
+
{
|
38
|
+
className: cn("hawa-flex hawa-flex-row hawa-gap-2", props.className)
|
39
|
+
},
|
40
|
+
/* @__PURE__ */ React.createElement(
|
41
|
+
"div",
|
42
|
+
{
|
43
|
+
className: cn(
|
44
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
|
45
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
46
|
+
animationStyles[design.split("-")[1]],
|
47
|
+
color ? color : "hawa-bg-primary"
|
48
|
+
)
|
49
|
+
}
|
50
|
+
),
|
51
|
+
/* @__PURE__ */ React.createElement(
|
52
|
+
"div",
|
53
|
+
{
|
54
|
+
className: cn(
|
55
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
|
56
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
57
|
+
animationStyles[design.split("-")[1]],
|
58
|
+
color ? color : "hawa-bg-primary"
|
59
|
+
)
|
60
|
+
}
|
61
|
+
),
|
62
|
+
/* @__PURE__ */ React.createElement(
|
63
|
+
"div",
|
64
|
+
{
|
65
|
+
className: cn(
|
66
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
|
67
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
68
|
+
animationStyles[design.split("-")[1]],
|
69
|
+
color ? color : "hawa-bg-primary"
|
70
|
+
)
|
71
|
+
}
|
72
|
+
)
|
73
|
+
);
|
74
|
+
case "square":
|
75
|
+
return /* @__PURE__ */ React.createElement(
|
76
|
+
"svg",
|
77
|
+
{
|
78
|
+
className: cn("squircle-container", sizeStyles[size]),
|
79
|
+
viewBox: "0 0 35 35",
|
80
|
+
height: "35",
|
81
|
+
width: "35"
|
82
|
+
},
|
83
|
+
/* @__PURE__ */ React.createElement(
|
84
|
+
"rect",
|
85
|
+
{
|
86
|
+
className: "squircle-track",
|
87
|
+
x: "2.5",
|
88
|
+
y: "2.5",
|
89
|
+
fill: "none",
|
90
|
+
strokeWidth: "5px",
|
91
|
+
width: "32.5",
|
92
|
+
height: "32.5"
|
93
|
+
}
|
94
|
+
),
|
95
|
+
/* @__PURE__ */ React.createElement(
|
96
|
+
"rect",
|
97
|
+
{
|
98
|
+
className: "square-car",
|
99
|
+
x: "2.5",
|
100
|
+
y: "2.5",
|
101
|
+
fill: "none",
|
102
|
+
strokeWidth: "5px",
|
103
|
+
width: "32.5",
|
104
|
+
height: "32.5",
|
105
|
+
pathLength: "100"
|
106
|
+
}
|
107
|
+
)
|
108
|
+
);
|
109
|
+
case "squircle":
|
110
|
+
return /* @__PURE__ */ React.createElement(
|
111
|
+
"svg",
|
112
|
+
{
|
113
|
+
className: cn("squircle-container", sizeStyles[size]),
|
114
|
+
x: "0px",
|
115
|
+
y: "0px",
|
116
|
+
viewBox: "0 0 37 37",
|
117
|
+
height: "37",
|
118
|
+
width: "37",
|
119
|
+
preserveAspectRatio: "xMidYMid meet"
|
120
|
+
},
|
121
|
+
/* @__PURE__ */ React.createElement(
|
122
|
+
"path",
|
123
|
+
{
|
124
|
+
className: "squircle-track",
|
125
|
+
fill: "none",
|
126
|
+
strokeWidth: "5",
|
127
|
+
pathLength: "100",
|
128
|
+
d: "M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5"
|
129
|
+
}
|
130
|
+
),
|
131
|
+
/* @__PURE__ */ React.createElement(
|
132
|
+
"path",
|
133
|
+
{
|
134
|
+
className: "squircle-car",
|
135
|
+
fill: "none",
|
136
|
+
strokeWidth: "5",
|
137
|
+
pathLength: "100",
|
138
|
+
d: "M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5"
|
139
|
+
}
|
140
|
+
)
|
141
|
+
);
|
142
|
+
case "progress":
|
143
|
+
return /* @__PURE__ */ React.createElement("div", { className: "progress-loading" });
|
144
|
+
case "orbit":
|
145
|
+
return /* @__PURE__ */ React.createElement("div", { className: "orbit-container" });
|
146
|
+
default:
|
147
|
+
return /* @__PURE__ */ React.createElement(
|
148
|
+
"svg",
|
149
|
+
{
|
150
|
+
className: cn("circle-container", sizeStyles[size]),
|
151
|
+
viewBox: "0 0 40 40",
|
152
|
+
height: "40",
|
153
|
+
width: "40"
|
154
|
+
},
|
155
|
+
/* @__PURE__ */ React.createElement(
|
156
|
+
"circle",
|
157
|
+
{
|
158
|
+
className: cn("circle-track", {
|
159
|
+
"hawa-stroke-primary-foreground": themeMode === "dark",
|
160
|
+
"hawa-stroke-primary": themeMode === "light"
|
161
|
+
}),
|
162
|
+
cx: "20",
|
163
|
+
cy: "20",
|
164
|
+
r: "17.5",
|
165
|
+
pathLength: "100",
|
166
|
+
strokeWidth: "5px",
|
167
|
+
fill: "none"
|
168
|
+
}
|
169
|
+
),
|
170
|
+
/* @__PURE__ */ React.createElement(
|
171
|
+
"circle",
|
172
|
+
{
|
173
|
+
className: cn("circle-car", {
|
174
|
+
"hawa-stroke-primary-foreground": themeMode === "dark",
|
175
|
+
"hawa-stroke-primary": themeMode === "light"
|
176
|
+
}),
|
177
|
+
cx: "20",
|
178
|
+
cy: "20",
|
179
|
+
r: "17.5",
|
180
|
+
pathLength: "100",
|
181
|
+
strokeWidth: "5px",
|
182
|
+
fill: "none"
|
183
|
+
}
|
184
|
+
)
|
185
|
+
);
|
186
|
+
}
|
187
|
+
};
|
188
|
+
|
189
|
+
// components/elements/button/Button.tsx
|
190
|
+
var buttonVariants = cva(
|
191
|
+
"hawa-inline-flex hawa-items-center hawa-select-none hawa-rounded-md hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
|
192
|
+
{
|
193
|
+
variants: {
|
194
|
+
variant: {
|
195
|
+
default: "hawa-bg-primary hawa-text-primary-foreground hover:hawa-bg-primary/90",
|
196
|
+
light: "hawa-bg-primary/20 hawa-text-primary hover:hawa-bg-primary/40",
|
197
|
+
destructive: "hawa-bg-destructive hawa-text-destructive-foreground hover:hawa-bg-destructive/90",
|
198
|
+
outline: "hawa-border hawa-border-input hawa-bg-transparent hover:hawa-bg-accent hover:hawa-text-accent-foreground",
|
199
|
+
secondary: "hawa-bg-secondary hawa-text-secondary-foreground hover:hawa-bg-secondary/80",
|
200
|
+
ghost: "hover:hawa-bg-accent hover:hawa-text-accent-foreground",
|
201
|
+
link: "hawa-text-primary hawa-underline-offset-4 hover:hawa-underline",
|
202
|
+
combobox: "hawa-bg-background hawa-border",
|
203
|
+
neoBrutalism: "neo-brutalism"
|
204
|
+
// "hawa-cursor-pointer hawa-transition-all hawa-uppercase hawa-font-mono dark:hawa-bg-black hawa-font-bold hawa-py-2 hawa-px-4 hawa-rounded hawa-border-2 hawa-border-primary hawa-shadow-color-primary hawa-transition-[hawa-transform_50ms, hawa-box-shadow_50ms] active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active shadow-color-primary active:shadow-color-primary-active",
|
205
|
+
},
|
206
|
+
size: {
|
207
|
+
default: "hawa-h-10 hawa-px-4 hawa-py-2",
|
208
|
+
heightless: "hawa-px-4 hawa-py-4",
|
209
|
+
xs: "hawa-h-fit hawa-min-h-[25px] hawa-py-1 hawa-text-[10px] hawa-px-2 ",
|
210
|
+
sm: "hawa-h-9 hawa-text-[11px] hawa-rounded-md hawa-px-3",
|
211
|
+
lg: "hawa-h-11 hawa-rounded-md hawa-px-8",
|
212
|
+
xl: "hawa-h-14 hawa-rounded-md hawa-px-10",
|
213
|
+
icon: "hawa-h-10 hawa-w-10",
|
214
|
+
smallIcon: "hawa-h-7 hawa-w-7"
|
215
|
+
}
|
216
|
+
},
|
217
|
+
defaultVariants: {
|
218
|
+
variant: "default",
|
219
|
+
size: "default"
|
220
|
+
}
|
221
|
+
}
|
222
|
+
);
|
223
|
+
var Button = React2.forwardRef(
|
224
|
+
({
|
225
|
+
className,
|
226
|
+
variant,
|
227
|
+
size,
|
228
|
+
asChild = false,
|
229
|
+
centered = true,
|
230
|
+
isLoading,
|
231
|
+
children,
|
232
|
+
...props
|
233
|
+
}, ref) => {
|
234
|
+
const Comp = "button";
|
235
|
+
const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
236
|
+
return /* @__PURE__ */ React2.createElement(
|
237
|
+
Comp,
|
238
|
+
{
|
239
|
+
className: cn(
|
240
|
+
buttonVariants({ variant, size, className }),
|
241
|
+
centered && "hawa-justify-center"
|
242
|
+
),
|
243
|
+
ref,
|
244
|
+
...props
|
245
|
+
},
|
246
|
+
isLoading ? /* @__PURE__ */ React2.createElement(
|
247
|
+
Loading,
|
248
|
+
{
|
249
|
+
design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
|
250
|
+
themeMode: variant === "outline" ? "light" : "dark",
|
251
|
+
color: loadingColor,
|
252
|
+
size: size === "sm" || size === "xs" ? "xs" : "button"
|
253
|
+
}
|
254
|
+
) : children
|
255
|
+
);
|
256
|
+
}
|
257
|
+
);
|
258
|
+
Button.displayName = "Button";
|
259
|
+
|
260
|
+
export {
|
261
|
+
cn,
|
262
|
+
Button
|
263
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import React__default, { FC, RefObject, ReactNode, ChangeEvent, FormEvent, InputHTMLAttributes
|
2
|
+
import React__default, { FC, RefObject, ReactNode, ChangeEvent, FormEvent, InputHTMLAttributes } from 'react';
|
3
3
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
4
4
|
import { P as PositionType, D as DirectionType, S as SeverityType, R as RadiusType, O as OrientationType } from '../commonTypes-CKtkuNFH.mjs';
|
5
5
|
export { D as DropdownMenu, f as DropdownMenuCheckboxItem, d as DropdownMenuContent, k as DropdownMenuGroup, e as DropdownMenuItem, h as DropdownMenuLabel, l as DropdownMenuPortal, b as DropdownMenuRadio, p as DropdownMenuRadioGroup, g as DropdownMenuRadioItem, a as DropdownMenuRoot, i as DropdownMenuSeparator, j as DropdownMenuShortcut, m as DropdownMenuSub, n as DropdownMenuSubContent, o as DropdownMenuSubTrigger, c as DropdownMenuTrigger, M as MenuItemType, S as SubItem } from '../DropdownMenu-vm2kRAhL.mjs';
|
@@ -726,14 +726,14 @@ type CodeBlockTypes = {
|
|
726
726
|
};
|
727
727
|
declare const CodeBlock: FC<CodeBlockTypes>;
|
728
728
|
|
729
|
-
|
729
|
+
type CarouselProps = {
|
730
730
|
items: React__default.ReactNode[];
|
731
731
|
showArrows?: boolean;
|
732
732
|
autoplay?: boolean;
|
733
733
|
autoplayInterval?: number;
|
734
|
-
|
735
|
-
|
736
|
-
declare const Carousel:
|
734
|
+
options?: EmblaOptionsType;
|
735
|
+
};
|
736
|
+
declare const Carousel: React__default.FC<CarouselProps>;
|
737
737
|
|
738
738
|
type IconCountTypes = {
|
739
739
|
/** The icon of the counter */
|
package/dist/elements/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import React__default, { FC, RefObject, ReactNode, ChangeEvent, FormEvent, InputHTMLAttributes
|
2
|
+
import React__default, { FC, RefObject, ReactNode, ChangeEvent, FormEvent, InputHTMLAttributes } from 'react';
|
3
3
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
4
4
|
import { P as PositionType, D as DirectionType, S as SeverityType, R as RadiusType, O as OrientationType } from '../commonTypes-CKtkuNFH.js';
|
5
5
|
export { D as DropdownMenu, f as DropdownMenuCheckboxItem, d as DropdownMenuContent, k as DropdownMenuGroup, e as DropdownMenuItem, h as DropdownMenuLabel, l as DropdownMenuPortal, b as DropdownMenuRadio, p as DropdownMenuRadioGroup, g as DropdownMenuRadioItem, a as DropdownMenuRoot, i as DropdownMenuSeparator, j as DropdownMenuShortcut, m as DropdownMenuSub, n as DropdownMenuSubContent, o as DropdownMenuSubTrigger, c as DropdownMenuTrigger, M as MenuItemType, S as SubItem } from '../DropdownMenu-jh4puuXw.js';
|
@@ -726,14 +726,14 @@ type CodeBlockTypes = {
|
|
726
726
|
};
|
727
727
|
declare const CodeBlock: FC<CodeBlockTypes>;
|
728
728
|
|
729
|
-
|
729
|
+
type CarouselProps = {
|
730
730
|
items: React__default.ReactNode[];
|
731
731
|
showArrows?: boolean;
|
732
732
|
autoplay?: boolean;
|
733
733
|
autoplayInterval?: number;
|
734
|
-
|
735
|
-
|
736
|
-
declare const Carousel:
|
734
|
+
options?: EmblaOptionsType;
|
735
|
+
};
|
736
|
+
declare const Carousel: React__default.FC<CarouselProps>;
|
737
737
|
|
738
738
|
type IconCountTypes = {
|
739
739
|
/** The icon of the counter */
|
package/dist/elements/index.js
CHANGED
@@ -7032,17 +7032,18 @@ var CodeBlock = ({
|
|
7032
7032
|
// components/elements/carousel/Carousel.tsx
|
7033
7033
|
var import_react31 = __toESM(require("react"));
|
7034
7034
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
|
7035
|
-
var Carousel = (
|
7036
|
-
|
7037
|
-
|
7038
|
-
|
7039
|
-
|
7040
|
-
|
7041
|
-
|
7042
|
-
|
7043
|
-
} =
|
7035
|
+
var Carousel = ({
|
7036
|
+
items,
|
7037
|
+
showArrows,
|
7038
|
+
options,
|
7039
|
+
autoplay,
|
7040
|
+
autoplayInterval = 3e3,
|
7041
|
+
...props
|
7042
|
+
}) => {
|
7043
|
+
const { loop } = options;
|
7044
7044
|
const [emblaRef, emblaApi] = (0, import_embla_carousel_react.default)({
|
7045
|
-
|
7045
|
+
...options,
|
7046
|
+
loop: autoplay ? true : loop || false
|
7046
7047
|
});
|
7047
7048
|
const [selectedIndex, setSelectedIndex] = (0, import_react31.useState)(0);
|
7048
7049
|
(0, import_react31.useEffect)(() => {
|
package/dist/elements/index.mjs
CHANGED
@@ -2756,17 +2756,18 @@ var CodeBlock = ({
|
|
2756
2756
|
// components/elements/carousel/Carousel.tsx
|
2757
2757
|
import React28, { useEffect as useEffect10, useState as useState12 } from "react";
|
2758
2758
|
import useEmblaCarousel from "embla-carousel-react";
|
2759
|
-
var Carousel = (
|
2760
|
-
|
2761
|
-
|
2762
|
-
|
2763
|
-
|
2764
|
-
|
2765
|
-
|
2766
|
-
|
2767
|
-
} =
|
2759
|
+
var Carousel = ({
|
2760
|
+
items,
|
2761
|
+
showArrows,
|
2762
|
+
options,
|
2763
|
+
autoplay,
|
2764
|
+
autoplayInterval = 3e3,
|
2765
|
+
...props
|
2766
|
+
}) => {
|
2767
|
+
const { loop } = options;
|
2768
2768
|
const [emblaRef, emblaApi] = useEmblaCarousel({
|
2769
|
-
|
2769
|
+
...options,
|
2770
|
+
loop: autoplay ? true : loop || false
|
2770
2771
|
});
|
2771
2772
|
const [selectedIndex, setSelectedIndex] = useState12(0);
|
2772
2773
|
useEffect10(() => {
|
package/dist/index.css
CHANGED
package/dist/index.d.mts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as React$1 from 'react';
|
2
|
-
import React__default, { FC, RefObject, ReactNode, ChangeEvent, FormEvent, InputHTMLAttributes,
|
2
|
+
import React__default, { FC, RefObject, ReactNode, ChangeEvent, FormEvent, InputHTMLAttributes, useEffect } from 'react';
|
3
3
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
4
4
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
5
5
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
@@ -923,14 +923,14 @@ type CodeBlockTypes = {
|
|
923
923
|
};
|
924
924
|
declare const CodeBlock: FC<CodeBlockTypes>;
|
925
925
|
|
926
|
-
|
926
|
+
type CarouselProps = {
|
927
927
|
items: React__default.ReactNode[];
|
928
928
|
showArrows?: boolean;
|
929
929
|
autoplay?: boolean;
|
930
930
|
autoplayInterval?: number;
|
931
|
-
|
932
|
-
|
933
|
-
declare const Carousel:
|
931
|
+
options?: EmblaOptionsType;
|
932
|
+
};
|
933
|
+
declare const Carousel: React__default.FC<CarouselProps>;
|
934
934
|
|
935
935
|
type IconCountTypes = {
|
936
936
|
/** The icon of the counter */
|
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as React$1 from 'react';
|
2
|
-
import React__default, { FC, RefObject, ReactNode, ChangeEvent, FormEvent, InputHTMLAttributes,
|
2
|
+
import React__default, { FC, RefObject, ReactNode, ChangeEvent, FormEvent, InputHTMLAttributes, useEffect } from 'react';
|
3
3
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
4
4
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
5
5
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
@@ -923,14 +923,14 @@ type CodeBlockTypes = {
|
|
923
923
|
};
|
924
924
|
declare const CodeBlock: FC<CodeBlockTypes>;
|
925
925
|
|
926
|
-
|
926
|
+
type CarouselProps = {
|
927
927
|
items: React__default.ReactNode[];
|
928
928
|
showArrows?: boolean;
|
929
929
|
autoplay?: boolean;
|
930
930
|
autoplayInterval?: number;
|
931
|
-
|
932
|
-
|
933
|
-
declare const Carousel:
|
931
|
+
options?: EmblaOptionsType;
|
932
|
+
};
|
933
|
+
declare const Carousel: React__default.FC<CarouselProps>;
|
934
934
|
|
935
935
|
type IconCountTypes = {
|
936
936
|
/** The icon of the counter */
|
package/dist/index.js
CHANGED
@@ -7188,17 +7188,18 @@ var CodeBlock = ({
|
|
7188
7188
|
// components/elements/carousel/Carousel.tsx
|
7189
7189
|
var import_react31 = __toESM(require("react"));
|
7190
7190
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
|
7191
|
-
var Carousel = (
|
7192
|
-
|
7193
|
-
|
7194
|
-
|
7195
|
-
|
7196
|
-
|
7197
|
-
|
7198
|
-
|
7199
|
-
} =
|
7191
|
+
var Carousel = ({
|
7192
|
+
items,
|
7193
|
+
showArrows,
|
7194
|
+
options,
|
7195
|
+
autoplay,
|
7196
|
+
autoplayInterval = 3e3,
|
7197
|
+
...props
|
7198
|
+
}) => {
|
7199
|
+
const { loop } = options;
|
7200
7200
|
const [emblaRef, emblaApi] = (0, import_embla_carousel_react.default)({
|
7201
|
-
|
7201
|
+
...options,
|
7202
|
+
loop: autoplay ? true : loop || false
|
7202
7203
|
});
|
7203
7204
|
const [selectedIndex, setSelectedIndex] = (0, import_react31.useState)(0);
|
7204
7205
|
(0, import_react31.useEffect)(() => {
|
@@ -10028,7 +10029,7 @@ var ResetPasswordForm = (props) => {
|
|
10028
10029
|
const { handleSubmit, control, formState } = (0, import_react_hook_form4.useForm)({
|
10029
10030
|
resolver: (0, import_zod4.zodResolver)(formSchema)
|
10030
10031
|
});
|
10031
|
-
return /* @__PURE__ */ import_react51.default.createElement(Card, { dir: props.direction }, !props.sent ? /* @__PURE__ */ import_react51.default.createElement(import_react51.default.Fragment, null, !props.headless && /* @__PURE__ */ import_react51.default.createElement(CardHeader, null, /* @__PURE__ */ import_react51.default.createElement(CardTitle, null,
|
10032
|
+
return /* @__PURE__ */ import_react51.default.createElement(Card, { dir: props.direction }, !props.sent ? /* @__PURE__ */ import_react51.default.createElement(import_react51.default.Fragment, null, !props.headless && /* @__PURE__ */ import_react51.default.createElement(CardHeader, null, /* @__PURE__ */ import_react51.default.createElement(CardTitle, null, ((_g = props.texts) == null ? void 0 : _g.headTitle) || "Reset Password"), /* @__PURE__ */ import_react51.default.createElement(CardDescription, null, ((_h = props.texts) == null ? void 0 : _h.headDescription) || "Enter your email to reset your account password")), /* @__PURE__ */ import_react51.default.createElement(
|
10032
10033
|
"form",
|
10033
10034
|
{
|
10034
10035
|
noValidate: true,
|