@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.
Files changed (42) hide show
  1. package/dist/blocks/auth/index.js +1 -1
  2. package/dist/blocks/auth/index.mjs +1 -1
  3. package/dist/blocks/index.js +1 -1
  4. package/dist/blocks/index.mjs +1 -1
  5. package/dist/carousel/index.d.mts +5 -5
  6. package/dist/carousel/index.d.ts +5 -5
  7. package/dist/carousel/index.js +11 -10
  8. package/dist/carousel/index.mjs +11 -10
  9. package/dist/chunk-3N6JJKMN.mjs +263 -0
  10. package/dist/commonTypes-cyhMPvmz.d.mts +4 -0
  11. package/dist/commonTypes-cyhMPvmz.d.ts +4 -0
  12. package/dist/elements/index.d.mts +5 -5
  13. package/dist/elements/index.d.ts +5 -5
  14. package/dist/elements/index.js +11 -10
  15. package/dist/elements/index.mjs +11 -10
  16. package/dist/index.css +3 -0
  17. package/dist/index.d.mts +5 -5
  18. package/dist/index.d.ts +5 -5
  19. package/dist/index.js +12 -11
  20. package/dist/index.mjs +12 -11
  21. package/dist/signature/index.d.mts +11 -0
  22. package/dist/signature/index.d.ts +11 -0
  23. package/dist/signature/index.js +151 -0
  24. package/dist/signature/index.mjs +109 -0
  25. package/dist/sortButton/index.mjs +8 -261
  26. package/dist/splitButton/index.d.mts +4 -3
  27. package/dist/splitButton/index.d.ts +4 -3
  28. package/dist/splitButton/index.mjs +9 -260
  29. package/dist/switch/index.d.mts +1 -1
  30. package/dist/switch/index.d.ts +1 -1
  31. package/dist/tabs/index.d.mts +1 -1
  32. package/dist/tabs/index.d.ts +1 -1
  33. package/dist/textarea/index.d.mts +1 -1
  34. package/dist/textarea/index.d.ts +1 -1
  35. package/dist/tooltip/index.d.mts +4 -3
  36. package/dist/tooltip/index.d.ts +4 -3
  37. package/dist/tooltip/index.mjs +9 -4
  38. package/package.json +14 -12
  39. package/dist/commonTypes-2k6FnHw5.d.mts +0 -4
  40. package/dist/commonTypes-2k6FnHw5.d.ts +0 -4
  41. package/dist/commonTypes-f_LVO3Sm.d.mts +0 -5
  42. 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, " ", ((_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(
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, " ", ((_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(
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,
@@ -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, " ", ((_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(
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,
@@ -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, " ", ((_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(
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, { PropsWithChildren } from 'react';
1
+ import React__default from 'react';
2
2
  import { EmblaOptionsType } from 'embla-carousel-react';
3
3
 
4
- interface CarouselProps {
4
+ type CarouselProps = {
5
5
  items: React__default.ReactNode[];
6
6
  showArrows?: boolean;
7
7
  autoplay?: boolean;
8
8
  autoplayInterval?: number;
9
- }
10
- type Props = CarouselProps & EmblaOptionsType;
11
- declare const Carousel: (props: PropsWithChildren<Props>) => React__default.JSX.Element;
9
+ options?: EmblaOptionsType;
10
+ };
11
+ declare const Carousel: React__default.FC<CarouselProps>;
12
12
 
13
13
  export { Carousel };
@@ -1,13 +1,13 @@
1
- import React__default, { PropsWithChildren } from 'react';
1
+ import React__default from 'react';
2
2
  import { EmblaOptionsType } from 'embla-carousel-react';
3
3
 
4
- interface CarouselProps {
4
+ type CarouselProps = {
5
5
  items: React__default.ReactNode[];
6
6
  showArrows?: boolean;
7
7
  autoplay?: boolean;
8
8
  autoplayInterval?: number;
9
- }
10
- type Props = CarouselProps & EmblaOptionsType;
11
- declare const Carousel: (props: PropsWithChildren<Props>) => React__default.JSX.Element;
9
+ options?: EmblaOptionsType;
10
+ };
11
+ declare const Carousel: React__default.FC<CarouselProps>;
12
12
 
13
13
  export { Carousel };
@@ -46,17 +46,18 @@ function cn(...inputs) {
46
46
  }
47
47
 
48
48
  // components/elements/carousel/Carousel.tsx
49
- var Carousel = (props) => {
50
- const {
51
- children,
52
- items,
53
- showArrows,
54
- autoplay,
55
- autoplayInterval = 3e3,
56
- ...options
57
- } = props;
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
- loop: autoplay ? true : options.loop || false
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)(() => {
@@ -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 = (props) => {
9
- const {
10
- children,
11
- items,
12
- showArrows,
13
- autoplay,
14
- autoplayInterval = 3e3,
15
- ...options
16
- } = props;
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
- loop: autoplay ? true : options.loop || false
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
+ };
@@ -0,0 +1,4 @@
1
+ type OrientationType = "vertical" | "horizontal";
2
+ type RadiusType = "full" | "inherit" | "none";
3
+
4
+ export type { OrientationType as O, RadiusType as R };
@@ -0,0 +1,4 @@
1
+ type OrientationType = "vertical" | "horizontal";
2
+ type RadiusType = "full" | "inherit" | "none";
3
+
4
+ export type { OrientationType as O, RadiusType as R };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import React__default, { FC, RefObject, ReactNode, ChangeEvent, FormEvent, InputHTMLAttributes, PropsWithChildren } from 'react';
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
- interface CarouselProps {
729
+ type CarouselProps = {
730
730
  items: React__default.ReactNode[];
731
731
  showArrows?: boolean;
732
732
  autoplay?: boolean;
733
733
  autoplayInterval?: number;
734
- }
735
- type Props = CarouselProps & EmblaOptionsType;
736
- declare const Carousel: (props: PropsWithChildren<Props>) => React__default.JSX.Element;
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 */
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import React__default, { FC, RefObject, ReactNode, ChangeEvent, FormEvent, InputHTMLAttributes, PropsWithChildren } from 'react';
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
- interface CarouselProps {
729
+ type CarouselProps = {
730
730
  items: React__default.ReactNode[];
731
731
  showArrows?: boolean;
732
732
  autoplay?: boolean;
733
733
  autoplayInterval?: number;
734
- }
735
- type Props = CarouselProps & EmblaOptionsType;
736
- declare const Carousel: (props: PropsWithChildren<Props>) => React__default.JSX.Element;
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 */
@@ -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 = (props) => {
7036
- const {
7037
- children,
7038
- items,
7039
- showArrows,
7040
- autoplay,
7041
- autoplayInterval = 3e3,
7042
- ...options
7043
- } = props;
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
- loop: autoplay ? true : options.loop || false
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)(() => {
@@ -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 = (props) => {
2760
- const {
2761
- children,
2762
- items,
2763
- showArrows,
2764
- autoplay,
2765
- autoplayInterval = 3e3,
2766
- ...options
2767
- } = props;
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
- loop: autoplay ? true : options.loop || false
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
@@ -1690,6 +1690,9 @@ input[type="number"]::-webkit-inner-spin-button,
1690
1690
  .hawa-max-w-2xs {
1691
1691
  max-width: 250px;
1692
1692
  }
1693
+ .hawa-max-w-4xl {
1694
+ max-width: 56rem;
1695
+ }
1693
1696
  .hawa-max-w-\[200px\] {
1694
1697
  max-width: 200px;
1695
1698
  }
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, PropsWithChildren, useEffect } from 'react';
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
- interface CarouselProps {
926
+ type CarouselProps = {
927
927
  items: React__default.ReactNode[];
928
928
  showArrows?: boolean;
929
929
  autoplay?: boolean;
930
930
  autoplayInterval?: number;
931
- }
932
- type Props = CarouselProps & EmblaOptionsType;
933
- declare const Carousel: (props: PropsWithChildren<Props>) => React__default.JSX.Element;
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, PropsWithChildren, useEffect } from 'react';
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
- interface CarouselProps {
926
+ type CarouselProps = {
927
927
  items: React__default.ReactNode[];
928
928
  showArrows?: boolean;
929
929
  autoplay?: boolean;
930
930
  autoplayInterval?: number;
931
- }
932
- type Props = CarouselProps & EmblaOptionsType;
933
- declare const Carousel: (props: PropsWithChildren<Props>) => React__default.JSX.Element;
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 = (props) => {
7192
- const {
7193
- children,
7194
- items,
7195
- showArrows,
7196
- autoplay,
7197
- autoplayInterval = 3e3,
7198
- ...options
7199
- } = props;
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
- loop: autoplay ? true : options.loop || false
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, " ", ((_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
+ 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,