@sikka/hawa 0.25.0-next → 0.25.2-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 +2 -1
- package/dist/blocks/auth/index.mjs +2 -1
- package/dist/blocks/index.js +2 -1
- package/dist/blocks/index.mjs +2 -2
- 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-KNHT2UBG.mjs +150 -0
- package/dist/{chunk-XE3FLWLT.mjs → chunk-MJMQDUCC.mjs} +1 -0
- package/dist/commonTypes-2IGtJ5cq.d.mts +3 -0
- package/dist/commonTypes-2IGtJ5cq.d.ts +3 -0
- package/dist/commonTypes-2k6FnHw5.d.mts +4 -0
- package/dist/commonTypes-2k6FnHw5.d.ts +4 -0
- package/dist/commonTypes-3k5cNB1s.d.mts +4 -0
- package/dist/commonTypes-3k5cNB1s.d.ts +4 -0
- package/dist/{commonTypes-3J1E3b61.d.mts → commonTypes-f_LVO3Sm.d.mts} +1 -2
- package/dist/{commonTypes-3J1E3b61.d.ts → commonTypes-f_LVO3Sm.d.ts} +1 -2
- package/dist/elements/index.d.mts +5 -5
- package/dist/elements/index.d.ts +5 -5
- package/dist/elements/index.js +12 -10
- package/dist/elements/index.mjs +12 -11
- package/dist/glow/index.d.mts +16 -0
- package/dist/glow/index.d.ts +16 -0
- package/dist/glow/index.js +155 -0
- package/dist/glow/index.mjs +117 -0
- package/dist/index.css +212 -206
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +13 -11
- package/dist/index.mjs +13 -11
- package/dist/input/index.d.mts +9 -2
- package/dist/input/index.d.ts +9 -2
- package/dist/input/index.mjs +1 -1
- package/dist/interfaceSettings/index.mjs +1 -1
- package/dist/label/index.d.mts +2 -1
- package/dist/label/index.d.ts +2 -1
- package/dist/label/index.mjs +98 -2
- package/dist/navigationMenu/index.d.mts +1 -2
- package/dist/navigationMenu/index.d.ts +1 -2
- package/dist/pagination/index.d.mts +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/passwordInput/index.mjs +148 -27
- package/dist/phoneInput/index.d.mts +1 -1
- package/dist/phoneInput/index.d.ts +1 -1
- package/dist/phoneInput/index.mjs +140 -19
- package/dist/pinInput/index.js +1 -0
- package/dist/pinInput/index.mjs +1 -0
- package/dist/popover/index.d.mts +1 -2
- package/dist/popover/index.d.ts +1 -2
- package/dist/radio/index.d.mts +4 -1
- package/dist/radio/index.d.ts +4 -1
- package/dist/scrollArea/index.d.mts +1 -1
- package/dist/scrollArea/index.d.ts +1 -1
- package/dist/separator/index.d.mts +1 -1
- package/dist/separator/index.d.ts +1 -1
- package/dist/simpleTable/index.d.mts +1 -2
- package/dist/simpleTable/index.d.ts +1 -2
- package/dist/simpleTable/index.mjs +45 -21
- package/dist/skeleton/index.mjs +29 -3
- package/dist/sortButton/index.mjs +260 -9
- package/dist/splitButton/index.d.mts +3 -4
- package/dist/splitButton/index.d.ts +3 -4
- package/dist/splitButton/index.mjs +259 -10
- package/dist/switch/index.d.mts +1 -2
- package/dist/switch/index.d.ts +1 -2
- 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/toast/index.d.mts +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toast/index.mjs +9 -139
- package/dist/toaster/index.d.mts +2 -2
- package/dist/toaster/index.d.ts +2 -2
- package/dist/toaster/index.mjs +17 -146
- package/dist/tooltip/index.d.mts +2 -2
- package/dist/tooltip/index.d.ts +2 -2
- package/package.json +12 -12
- package/dist/chunk-53XBVEMK.mjs +0 -131
- package/dist/chunk-DGWAHQRX.mjs +0 -259
- package/dist/chunk-ND4BWUKH.mjs +0 -34
- package/dist/commonTypes-LrR8QrYP.d.mts +0 -5
- package/dist/commonTypes-LrR8QrYP.d.ts +0 -5
- package/dist/{chunk-ABS2VEET.mjs → chunk-WRZFWCOQ.mjs} +3 -3
@@ -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,
|
@@ -4063,6 +4063,7 @@ var PinInput = ({
|
|
4063
4063
|
type: "text",
|
4064
4064
|
maxLength: 1,
|
4065
4065
|
value,
|
4066
|
+
inputMode: "numeric",
|
4066
4067
|
id: `input-${index}`,
|
4067
4068
|
pattern: "[0-9]*",
|
4068
4069
|
className: cn(
|
@@ -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,
|
@@ -3256,6 +3256,7 @@ var PinInput = ({
|
|
3256
3256
|
type: "text",
|
3257
3257
|
maxLength: 1,
|
3258
3258
|
value,
|
3259
|
+
inputMode: "numeric",
|
3259
3260
|
id: `input-${index}`,
|
3260
3261
|
pattern: "[0-9]*",
|
3261
3262
|
className: cn(
|
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,
|
@@ -4220,6 +4220,7 @@ var PinInput = ({
|
|
4220
4220
|
type: "text",
|
4221
4221
|
maxLength: 1,
|
4222
4222
|
value,
|
4223
|
+
inputMode: "numeric",
|
4223
4224
|
id: `input-${index}`,
|
4224
4225
|
pattern: "[0-9]*",
|
4225
4226
|
className: cn(
|
package/dist/blocks/index.mjs
CHANGED
@@ -25,7 +25,7 @@ import {
|
|
25
25
|
UncheckMark,
|
26
26
|
VeryBadEmoji,
|
27
27
|
VeryGoodEmoji
|
28
|
-
} from "../chunk-
|
28
|
+
} from "../chunk-MJMQDUCC.mjs";
|
29
29
|
import {
|
30
30
|
Button,
|
31
31
|
Card,
|
@@ -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,150 @@
|
|
1
|
+
import {
|
2
|
+
cn
|
3
|
+
} from "./chunk-TE3BKEXL.mjs";
|
4
|
+
|
5
|
+
// components/elements/toast/Toast.tsx
|
6
|
+
import * as React from "react";
|
7
|
+
import * as ToastPrimitives from "@radix-ui/react-toast";
|
8
|
+
import { cva } from "class-variance-authority";
|
9
|
+
var toastVariants = cva(
|
10
|
+
"hawa-group hawa-z-[900] hawa-pointer-events-auto hawa-relative hawa-flex hawa-w-full hawa-items-center hawa-justify-between hawa-overflow-hidden hawa-rounded-md hawa-border hawa-shadow-lg hawa-transition-all data-[swipe=cancel]:hawa-translate-x-0 data-[swipe=end]:hawa-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:hawa-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:hawa-transition-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[swipe=end]:hawa-animate-out data-[state=closed]:hawa-fade-out-80 data-[state=open]:hawa-slide-in-from-top-full data-[state=open]:sm:hawa-slide-in-from-bottom-full",
|
11
|
+
{
|
12
|
+
variants: {
|
13
|
+
variant: {
|
14
|
+
default: "hawa-border hawa-bg-background hawa-text-foreground",
|
15
|
+
destructive: "hawa-destructive hawa-group hawa-border-destructive hawa-bg-destructive hawa-text-destructive-foreground"
|
16
|
+
},
|
17
|
+
severity: {
|
18
|
+
info: "hawa-info hawa-group hawa-text-info-foreground hawa-bg-info",
|
19
|
+
warning: "hawa-warning hawa-group hawa-text-warning-foreground hawa-bg-warning",
|
20
|
+
error: "hawa-error hawa-group hawa-border-error hawa-bg-error hawa-text-white",
|
21
|
+
success: "hawa-success hawa-group hawa-text-success-foreground hawa-bg-success",
|
22
|
+
none: ""
|
23
|
+
}
|
24
|
+
},
|
25
|
+
defaultVariants: { variant: "default" }
|
26
|
+
}
|
27
|
+
);
|
28
|
+
var sizeStyles = {
|
29
|
+
default: "hawa-text-sm",
|
30
|
+
// Update this based on the desired padding for rtl
|
31
|
+
sm: "hawa-text-xs"
|
32
|
+
};
|
33
|
+
var ToastProvider = ToastPrimitives.Provider;
|
34
|
+
var ToastViewport = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
35
|
+
ToastPrimitives.Viewport,
|
36
|
+
{
|
37
|
+
ref,
|
38
|
+
className: cn(
|
39
|
+
"hawa-fixed hawa-top-0 hawa-z-[100] hawa-flex hawa-max-h-screen hawa-w-full hawa-flex-col-reverse hawa-p-4 sm:hawa-bottom-0 sm:hawa-right-0 sm:hawa-top-auto sm:hawa-flex-col md:hawa-max-w-[420px]",
|
40
|
+
className
|
41
|
+
),
|
42
|
+
...props
|
43
|
+
}
|
44
|
+
));
|
45
|
+
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
46
|
+
var Toast = React.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
47
|
+
return /* @__PURE__ */ React.createElement(
|
48
|
+
ToastPrimitives.Root,
|
49
|
+
{
|
50
|
+
ref,
|
51
|
+
className: cn(
|
52
|
+
toastVariants({ variant, severity }),
|
53
|
+
className,
|
54
|
+
direction === "rtl" ? "data-[state=closed]:hawa-slide-out-to-left-full" : "data-[state=closed]:hawa-slide-out-to-right-full"
|
55
|
+
),
|
56
|
+
dir: direction,
|
57
|
+
...props
|
58
|
+
}
|
59
|
+
);
|
60
|
+
});
|
61
|
+
Toast.displayName = ToastPrimitives.Root.displayName;
|
62
|
+
var ToastAction = React.forwardRef(({ className, ...props }, ref) => {
|
63
|
+
return /* @__PURE__ */ React.createElement(
|
64
|
+
ToastPrimitives.Action,
|
65
|
+
{
|
66
|
+
ref,
|
67
|
+
className: cn(
|
68
|
+
"hawa-inline-flex hawa-h-8 hawa-shrink-0 hawa-items-center hawa-justify-center hawa-rounded-md hawa-border hawa-bg-transparent hawa-px-3 hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-colors hover:hawa-bg-secondary hover:hawa-text-secondary-foreground focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
|
69
|
+
"group-[.info]:hawa-border-muted/40 group-[.info]:hover:hawa-border-info/30 group-[.info]:hover:hawa-bg-info group-[.info]:hover:hawa-text-info-foreground group-[.info]:focus:hawa-ring-info",
|
70
|
+
"group-[.error]:hawa-border-muted/40 group-[.error]:hover:hawa-border-error/30 group-[.error]:hover:hawa-bg-error group-[.error]:hover:hawa-text-error-foreground group-[.error]:focus:hawa-ring-error",
|
71
|
+
"group-[.success]:hawa-border-muted/40 group-[.success]:hover:hawa-border-success/30 group-[.success]:hover:hawa-bg-success group-[.success]:hover:hawa-text-success-foreground group-[.success]:focus:hawa-ring-success",
|
72
|
+
"group-[.warning]:hawa-border-muted/40 group-[.warning]:hover:hawa-border-warning/30 group-[.warning]:hover:hawa-bg-warning group-[.warning]:hover:hawa-text-warning-foreground group-[.warning]:focus:hawa-ring-warning",
|
73
|
+
"hawa-whitespace-nowrap",
|
74
|
+
className
|
75
|
+
),
|
76
|
+
...props
|
77
|
+
}
|
78
|
+
);
|
79
|
+
});
|
80
|
+
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
81
|
+
var ToastClose = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
82
|
+
ToastPrimitives.Close,
|
83
|
+
{
|
84
|
+
ref,
|
85
|
+
className: cn(
|
86
|
+
// "hawa-absolute hawa-start-2 hawa-top-2",
|
87
|
+
// "group-hover:hawa-opacity-100",
|
88
|
+
"hawa-opacity-100",
|
89
|
+
"hawa-rounded-md hawa-p-1 hawa-text-foreground/50 hawa-transition-opacity hover:hawa-text-foreground focus:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 group-[.destructive]:hawa-text-red-300 group-[.destructive]:hover:hawa-text-red-50 group-[.destructive]:focus:hawa-ring-red-400 group-[.destructive]:focus:hawa-ring-offset-red-600",
|
90
|
+
className
|
91
|
+
),
|
92
|
+
"toast-close": "",
|
93
|
+
...props
|
94
|
+
},
|
95
|
+
/* @__PURE__ */ React.createElement(
|
96
|
+
"svg",
|
97
|
+
{
|
98
|
+
"aria-label": "Close Icon",
|
99
|
+
"aria-hidden": "true",
|
100
|
+
className: "hawa-icon",
|
101
|
+
fill: "currentColor",
|
102
|
+
viewBox: "0 0 20 20"
|
103
|
+
},
|
104
|
+
/* @__PURE__ */ React.createElement(
|
105
|
+
"path",
|
106
|
+
{
|
107
|
+
fillRule: "evenodd",
|
108
|
+
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
109
|
+
clipRule: "evenodd"
|
110
|
+
}
|
111
|
+
)
|
112
|
+
)
|
113
|
+
));
|
114
|
+
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
115
|
+
var ToastTitle = React.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React.createElement(
|
116
|
+
ToastPrimitives.Title,
|
117
|
+
{
|
118
|
+
ref,
|
119
|
+
className: cn(
|
120
|
+
"hawa-select-text hawa-text-sm hawa-font-semibold",
|
121
|
+
sizeStyles[size],
|
122
|
+
className
|
123
|
+
),
|
124
|
+
...props
|
125
|
+
}
|
126
|
+
));
|
127
|
+
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
128
|
+
var ToastDescription = React.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React.createElement(
|
129
|
+
ToastPrimitives.Description,
|
130
|
+
{
|
131
|
+
ref,
|
132
|
+
className: cn(
|
133
|
+
"hawa-select-text hawa-opacity-90",
|
134
|
+
sizeStyles[size],
|
135
|
+
className
|
136
|
+
),
|
137
|
+
...props
|
138
|
+
}
|
139
|
+
));
|
140
|
+
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
141
|
+
|
142
|
+
export {
|
143
|
+
ToastProvider,
|
144
|
+
ToastViewport,
|
145
|
+
Toast,
|
146
|
+
ToastAction,
|
147
|
+
ToastClose,
|
148
|
+
ToastTitle,
|
149
|
+
ToastDescription
|
150
|
+
};
|
@@ -1,6 +1,5 @@
|
|
1
|
-
type DirectionType = "rtl" | "ltr";
|
2
1
|
type PositionType = "top" | "bottom" | "right" | "left";
|
3
2
|
type OrientationType = "vertical" | "horizontal";
|
4
3
|
type RadiusType = "full" | "inherit" | "none";
|
5
4
|
|
6
|
-
export type {
|
5
|
+
export type { OrientationType as O, PositionType as P, RadiusType as R };
|
@@ -1,6 +1,5 @@
|
|
1
|
-
type DirectionType = "rtl" | "ltr";
|
2
1
|
type PositionType = "top" | "bottom" | "right" | "left";
|
3
2
|
type OrientationType = "vertical" | "horizontal";
|
4
3
|
type RadiusType = "full" | "inherit" | "none";
|
5
4
|
|
6
|
-
export type {
|
5
|
+
export type { OrientationType as O, PositionType as P, RadiusType as R };
|
@@ -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
@@ -6128,6 +6128,7 @@ var PinInput = ({
|
|
6128
6128
|
type: "text",
|
6129
6129
|
maxLength: 1,
|
6130
6130
|
value,
|
6131
|
+
inputMode: "numeric",
|
6131
6132
|
id: `input-${index}`,
|
6132
6133
|
pattern: "[0-9]*",
|
6133
6134
|
className: cn(
|
@@ -7031,17 +7032,18 @@ var CodeBlock = ({
|
|
7031
7032
|
// components/elements/carousel/Carousel.tsx
|
7032
7033
|
var import_react31 = __toESM(require("react"));
|
7033
7034
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
|
7034
|
-
var Carousel = (
|
7035
|
-
|
7036
|
-
|
7037
|
-
|
7038
|
-
|
7039
|
-
|
7040
|
-
|
7041
|
-
|
7042
|
-
} =
|
7035
|
+
var Carousel = ({
|
7036
|
+
items,
|
7037
|
+
showArrows,
|
7038
|
+
options,
|
7039
|
+
autoplay,
|
7040
|
+
autoplayInterval = 3e3,
|
7041
|
+
...props
|
7042
|
+
}) => {
|
7043
|
+
const { loop } = options;
|
7043
7044
|
const [emblaRef, emblaApi] = (0, import_embla_carousel_react.default)({
|
7044
|
-
|
7045
|
+
...options,
|
7046
|
+
loop: autoplay ? true : loop || false
|
7045
7047
|
});
|
7046
7048
|
const [selectedIndex, setSelectedIndex] = (0, import_react31.useState)(0);
|
7047
7049
|
(0, import_react31.useEffect)(() => {
|
package/dist/elements/index.mjs
CHANGED
@@ -28,7 +28,7 @@ import {
|
|
28
28
|
TabsTrigger,
|
29
29
|
Textarea,
|
30
30
|
UncheckMark
|
31
|
-
} from "../chunk-
|
31
|
+
} from "../chunk-MJMQDUCC.mjs";
|
32
32
|
import {
|
33
33
|
Sheet,
|
34
34
|
SheetClose,
|
@@ -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(() => {
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import React__default from 'react';
|
2
|
+
|
3
|
+
declare const GlowCapture: ({ className, size, ...rest }: {
|
4
|
+
[x: string]: any;
|
5
|
+
className?: string | undefined;
|
6
|
+
size?: number | undefined;
|
7
|
+
}) => React__default.JSX.Element;
|
8
|
+
declare const Glow: ({ className, style, color, debug, ...rest }: {
|
9
|
+
[x: string]: any;
|
10
|
+
className?: string | undefined;
|
11
|
+
style?: {} | undefined;
|
12
|
+
color?: string | undefined;
|
13
|
+
debug?: boolean | undefined;
|
14
|
+
}) => React__default.JSX.Element;
|
15
|
+
|
16
|
+
export { Glow, GlowCapture };
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import React__default from 'react';
|
2
|
+
|
3
|
+
declare const GlowCapture: ({ className, size, ...rest }: {
|
4
|
+
[x: string]: any;
|
5
|
+
className?: string | undefined;
|
6
|
+
size?: number | undefined;
|
7
|
+
}) => React__default.JSX.Element;
|
8
|
+
declare const Glow: ({ className, style, color, debug, ...rest }: {
|
9
|
+
[x: string]: any;
|
10
|
+
className?: string | undefined;
|
11
|
+
style?: {} | undefined;
|
12
|
+
color?: string | undefined;
|
13
|
+
debug?: boolean | undefined;
|
14
|
+
}) => React__default.JSX.Element;
|
15
|
+
|
16
|
+
export { Glow, GlowCapture };
|