@sikka/hawa 0.26.18-next → 0.26.20
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/accordion/index.js +10 -12
- package/dist/accordion/index.mjs +8 -8
- package/dist/alert/index.js +8 -7
- package/dist/alert/index.mjs +7 -6
- package/dist/appLayout/index.js +13 -12
- package/dist/appLayout/index.mjs +12 -11
- package/dist/appMenubar/index.js +4 -4
- package/dist/appMenubar/index.mjs +2 -2
- package/dist/appStores/index.js +2 -2
- package/dist/appStores/index.mjs +1 -1
- package/dist/appTabs/index.js +4 -4
- package/dist/appTabs/index.mjs +2 -2
- package/dist/appTopbar/index.js +6 -6
- package/dist/appTopbar/index.mjs +4 -4
- package/dist/avatar/index.js +5 -5
- package/dist/avatar/index.mjs +4 -4
- package/dist/backToTop/index.js +8 -7
- package/dist/backToTop/index.mjs +7 -6
- package/dist/badge/index.js +4 -4
- package/dist/badge/index.mjs +2 -2
- package/dist/blocks/auth/index.js +38 -37
- package/dist/blocks/auth/index.mjs +24 -24
- package/dist/blocks/feedback/index.js +27 -26
- package/dist/blocks/feedback/index.mjs +11 -11
- package/dist/blocks/index.js +77 -76
- package/dist/blocks/index.mjs +34 -34
- package/dist/blocks/misc/index.js +31 -30
- package/dist/blocks/misc/index.mjs +14 -14
- package/dist/blocks/pricing/index.js +123 -122
- package/dist/blocks/pricing/index.mjs +18 -18
- package/dist/breadcrumb/index.js +2 -2
- package/dist/breadcrumb/index.mjs +1 -1
- package/dist/button/index.js +6 -5
- package/dist/button/index.mjs +5 -4
- package/dist/card/index.js +4 -4
- package/dist/card/index.mjs +2 -2
- package/dist/carousel/index.d.mts +1 -1
- package/dist/carousel/index.d.ts +1 -1
- package/dist/carousel/index.js +9 -18
- package/dist/carousel/index.mjs +7 -16
- package/dist/checkbox/index.js +4 -4
- package/dist/checkbox/index.mjs +2 -2
- package/dist/chip/index.js +4 -4
- package/dist/chip/index.mjs +2 -2
- package/dist/{chunk-343SRWR4.mjs → chunk-3GBITBPL.mjs} +2 -2
- package/dist/{chunk-TTKRRN7S.mjs → chunk-4IOG44R3.mjs} +2 -2
- package/dist/{chunk-3N6JJKMN.mjs → chunk-65TG6EVD.mjs} +5 -4
- package/dist/{chunk-LT3VHLAG.mjs → chunk-APZM24KK.mjs} +2 -2
- package/dist/{chunk-FYH74ZRQ.mjs → chunk-AREFDTXK.mjs} +9 -8
- package/dist/{chunk-FNVYY7ND.mjs → chunk-D22AALLE.mjs} +1 -1
- package/dist/{chunk-OD5WIQGQ.mjs → chunk-FDKCMEMD.mjs} +2 -2
- package/dist/{chunk-KNHT2UBG.mjs → chunk-KMCIHW76.mjs} +2 -2
- package/dist/{chunk-M2ZS3EDT.mjs → chunk-OAXF3RCQ.mjs} +2 -2
- package/dist/chunk-OTGCLEKC.mjs +62 -0
- package/dist/{chunk-OE23TTPS.mjs → chunk-POIP5U4M.mjs} +3 -3
- package/dist/{chunk-EYUG3GRC.mjs → chunk-SJ2Z6ZOG.mjs} +4 -4
- package/dist/{chunk-WRZFWCOQ.mjs → chunk-TGZRVRLP.mjs} +4 -4
- package/dist/{chunk-TE3BKEXL.mjs → chunk-TWNGV3RE.mjs} +1 -1
- package/dist/{chunk-ATUSR6VI.mjs → chunk-U3TZWNDZ.mjs} +4 -4
- package/dist/{chunk-W77KCP35.mjs → chunk-VQQ6MUX5.mjs} +2 -2
- package/dist/{chunk-SUS6O2PO.mjs → chunk-WPSUV4AD.mjs} +21 -21
- package/dist/{chunk-3KMBSNM3.mjs → chunk-Z5SL5QTQ.mjs} +11 -10
- package/dist/{chunk-ZCZ3WARS.mjs → chunk-ZS3FB3PO.mjs} +1 -1
- package/dist/codeBlock/index.js +153 -2454
- package/dist/codeBlock/index.mjs +129 -2393
- package/dist/collapsible/index.js +2 -2
- package/dist/collapsible/index.mjs +1 -1
- package/dist/colorPicker/index.js +7 -7
- package/dist/colorPicker/index.mjs +126 -2
- package/dist/combobox/index.js +193 -193
- package/dist/combobox/index.mjs +8 -8
- package/dist/command/index.js +5 -5
- package/dist/command/index.mjs +1 -1
- package/dist/copyrights/index.js +2 -2
- package/dist/copyrights/index.mjs +1 -1
- package/dist/count/index.js +2 -2
- package/dist/count/index.mjs +1 -1
- package/dist/dataTable/index.d.mts +1 -0
- package/dist/dataTable/index.d.ts +1 -0
- package/dist/dataTable/index.js +23 -16
- package/dist/dataTable/index.mjs +22 -15
- package/dist/destroyableCard/index.js +6 -8
- package/dist/destroyableCard/index.mjs +4 -4
- package/dist/dialog/index.js +4 -4
- package/dist/dialog/index.mjs +2 -2
- package/dist/docsLayout/index.js +12 -11
- package/dist/docsLayout/index.mjs +11 -10
- package/dist/docsSidebar/index.js +4 -4
- package/dist/docsSidebar/index.mjs +2 -2
- package/dist/dropdownMenu/index.js +4 -4
- package/dist/dropdownMenu/index.mjs +2 -2
- package/dist/elements/index.d.mts +2 -1
- package/dist/elements/index.d.ts +2 -1
- package/dist/elements/index.js +162 -164
- package/dist/elements/index.mjs +54 -57
- package/dist/fileDropzone/index.js +10 -9
- package/dist/fileDropzone/index.mjs +9 -8
- package/dist/fileUploader/index.js +2 -2
- package/dist/fileUploader/index.mjs +1 -1
- package/dist/glow/index.js +2 -2
- package/dist/glow/index.mjs +1 -1
- package/dist/hooks/index.d.mts +7 -7
- package/dist/hooks/index.d.ts +7 -7
- package/dist/hooks/index.js +16 -16
- package/dist/hooks/index.mjs +14 -14
- package/dist/index.css +0 -465
- package/dist/index.d.mts +9 -8
- package/dist/index.d.ts +9 -8
- package/dist/index.js +220 -222
- package/dist/index.mjs +219 -221
- package/dist/input/index.js +8 -8
- package/dist/input/index.mjs +4 -4
- package/dist/interfaceSettings/index.js +9 -9
- package/dist/interfaceSettings/index.mjs +4 -4
- package/dist/label/index.js +5 -5
- package/dist/label/index.mjs +4 -4
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +31 -30
- package/dist/layout/index.mjs +16 -16
- package/dist/loading/index.js +4 -4
- package/dist/loading/index.mjs +2 -2
- package/dist/logos/index.js +2 -2
- package/dist/logos/index.mjs +1 -1
- package/dist/navbar/index.js +5 -5
- package/dist/navbar/index.mjs +4 -4
- package/dist/navigationMenu/index.js +4 -4
- package/dist/navigationMenu/index.mjs +2 -2
- package/dist/pagination/index.js +4 -4
- package/dist/pagination/index.mjs +2 -2
- package/dist/passwordInput/index.js +15 -15
- package/dist/passwordInput/index.mjs +13 -13
- package/dist/phoneInput/index.js +11 -11
- package/dist/phoneInput/index.mjs +10 -10
- package/dist/pinInput/index.js +4 -4
- package/dist/pinInput/index.mjs +2 -2
- package/dist/popover/index.js +4 -4
- package/dist/popover/index.mjs +2 -2
- package/dist/progress/index.js +4 -4
- package/dist/progress/index.mjs +2 -2
- package/dist/progressCircle/index.js +4 -4
- package/dist/progressCircle/index.mjs +2 -2
- package/dist/radio/index.js +7 -7
- package/dist/radio/index.mjs +6 -6
- package/dist/scrollArea/index.js +4 -4
- package/dist/scrollArea/index.mjs +2 -2
- package/dist/scrollIndicator/index.js +2 -2
- package/dist/scrollIndicator/index.mjs +1 -1
- package/dist/select/index.js +8 -8
- package/dist/select/index.mjs +7 -7
- package/dist/separator/index.js +4 -4
- package/dist/separator/index.mjs +2 -2
- package/dist/sheet/index.js +4 -4
- package/dist/sheet/index.mjs +2 -2
- package/dist/sidebar/index.js +6 -6
- package/dist/sidebar/index.mjs +4 -4
- package/dist/signature/index.js +8 -8
- package/dist/signature/index.mjs +6 -6
- package/dist/simpleTable/index.js +6 -6
- package/dist/simpleTable/index.mjs +5 -5
- package/dist/skeleton/index.js +4 -4
- package/dist/skeleton/index.mjs +2 -2
- package/dist/slider/index.js +4 -4
- package/dist/slider/index.mjs +2 -2
- package/dist/sortButton/index.js +8 -7
- package/dist/sortButton/index.mjs +2 -2
- package/dist/splitButton/index.js +9 -8
- package/dist/splitButton/index.mjs +4 -4
- package/dist/stats/index.js +7 -7
- package/dist/stats/index.mjs +6 -6
- package/dist/stopPropagationWrapper/index.js +2 -2
- package/dist/stopPropagationWrapper/index.mjs +1 -1
- package/dist/switch/index.js +4 -4
- package/dist/switch/index.mjs +2 -2
- package/dist/table/index.js +4 -4
- package/dist/table/index.mjs +2 -2
- package/dist/tabs/index.js +5 -5
- package/dist/tabs/index.mjs +4 -4
- package/dist/textarea/index.js +7 -7
- package/dist/textarea/index.mjs +6 -6
- package/dist/toast/index.js +4 -4
- package/dist/toast/index.mjs +2 -2
- package/dist/toaster/index.js +6 -6
- package/dist/toaster/index.mjs +5 -5
- package/dist/tooltip/index.js +4 -4
- package/dist/tooltip/index.mjs +3 -3
- package/dist/types/index.js +1 -1
- package/package.json +16 -42
- package/README.md +0 -107
- package/dist/chunk-S36W2LDN.mjs +0 -189
package/dist/card/index.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import {
|
2
2
|
cn
|
3
|
-
} from "../chunk-
|
3
|
+
} from "../chunk-TWNGV3RE.mjs";
|
4
4
|
|
5
|
-
//
|
5
|
+
// elements/card/Card.tsx
|
6
6
|
import * as React from "react";
|
7
7
|
var Card = React.forwardRef(
|
8
8
|
({ className, variant = "default", clickable = false, ...props }, ref) => {
|
package/dist/carousel/index.d.ts
CHANGED
package/dist/carousel/index.js
CHANGED
@@ -27,25 +27,25 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
29
|
|
30
|
-
//
|
30
|
+
// elements/carousel/index.ts
|
31
31
|
var carousel_exports = {};
|
32
32
|
__export(carousel_exports, {
|
33
33
|
Carousel: () => Carousel
|
34
34
|
});
|
35
35
|
module.exports = __toCommonJS(carousel_exports);
|
36
36
|
|
37
|
-
//
|
37
|
+
// elements/carousel/Carousel.tsx
|
38
38
|
var import_react = __toESM(require("react"));
|
39
39
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
|
40
40
|
|
41
|
-
//
|
41
|
+
// util/index.ts
|
42
42
|
var import_clsx = require("clsx");
|
43
43
|
var import_tailwind_merge = require("tailwind-merge");
|
44
44
|
function cn(...inputs) {
|
45
45
|
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
46
46
|
}
|
47
47
|
|
48
|
-
//
|
48
|
+
// elements/carousel/Carousel.tsx
|
49
49
|
var Carousel = ({
|
50
50
|
items,
|
51
51
|
showArrows,
|
@@ -54,10 +54,9 @@ var Carousel = ({
|
|
54
54
|
autoplayInterval = 3e3,
|
55
55
|
...props
|
56
56
|
}) => {
|
57
|
-
const { loop } = options;
|
58
57
|
const [emblaRef, emblaApi] = (0, import_embla_carousel_react.default)({
|
59
58
|
...options,
|
60
|
-
loop: autoplay ? true : loop || false
|
59
|
+
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
61
60
|
});
|
62
61
|
const [selectedIndex, setSelectedIndex] = (0, import_react.useState)(0);
|
63
62
|
(0, import_react.useEffect)(() => {
|
@@ -116,12 +115,12 @@ var Dots = ({ onDotClick, itemsLength, selectedIndex }) => {
|
|
116
115
|
return /* @__PURE__ */ import_react.default.createElement(
|
117
116
|
"div",
|
118
117
|
{
|
118
|
+
key: index,
|
119
119
|
onClick: () => onDotClick(index),
|
120
120
|
className: cn(
|
121
121
|
"hawa-h-2 hawa-rounded-full hawa-bg-primary hawa-transition-all hawa-duration-300 hover:hawa-cursor-pointer",
|
122
122
|
!selected ? "hawa-w-2 hawa-opacity-50" : "hawa-w-6 hawa-opacity-100"
|
123
|
-
)
|
124
|
-
key: index
|
123
|
+
)
|
125
124
|
}
|
126
125
|
);
|
127
126
|
}));
|
@@ -130,11 +129,7 @@ var CarouselControls = (props) => {
|
|
130
129
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ import_react.default.createElement(
|
131
130
|
"button",
|
132
131
|
{
|
133
|
-
onClick: () =>
|
134
|
-
if (props.canScrollPrev) {
|
135
|
-
props.onPrev();
|
136
|
-
}
|
137
|
-
},
|
132
|
+
onClick: () => props.canScrollPrev && props.onPrev(),
|
138
133
|
disabled: !props.canScrollPrev,
|
139
134
|
className: cn(
|
140
135
|
"hawa-absolute hawa-start-0 hawa-top-1/2 -hawa-translate-y-2 hawa-rounded-full hawa-p-2 hawa-text-white ",
|
@@ -156,11 +151,7 @@ var CarouselControls = (props) => {
|
|
156
151
|
), /* @__PURE__ */ import_react.default.createElement(
|
157
152
|
"button",
|
158
153
|
{
|
159
|
-
onClick: () =>
|
160
|
-
if (props.canScrollNext) {
|
161
|
-
props.onNext();
|
162
|
-
}
|
163
|
-
},
|
154
|
+
onClick: () => props.canScrollNext && props.onNext(),
|
164
155
|
disabled: !props.canScrollNext,
|
165
156
|
className: cn(
|
166
157
|
"hawa-absolute hawa-end-0 hawa-top-1/2 -hawa-translate-y-2 hawa-rounded-full hawa-p-2 hawa-text-white ",
|
package/dist/carousel/index.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import {
|
2
2
|
cn
|
3
|
-
} from "../chunk-
|
3
|
+
} from "../chunk-TWNGV3RE.mjs";
|
4
4
|
|
5
|
-
//
|
5
|
+
// elements/carousel/Carousel.tsx
|
6
6
|
import React, { useEffect, useState } from "react";
|
7
7
|
import useEmblaCarousel from "embla-carousel-react";
|
8
8
|
var Carousel = ({
|
@@ -13,10 +13,9 @@ var Carousel = ({
|
|
13
13
|
autoplayInterval = 3e3,
|
14
14
|
...props
|
15
15
|
}) => {
|
16
|
-
const { loop } = options;
|
17
16
|
const [emblaRef, emblaApi] = useEmblaCarousel({
|
18
17
|
...options,
|
19
|
-
loop: autoplay ? true : loop || false
|
18
|
+
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
20
19
|
});
|
21
20
|
const [selectedIndex, setSelectedIndex] = useState(0);
|
22
21
|
useEffect(() => {
|
@@ -75,12 +74,12 @@ var Dots = ({ onDotClick, itemsLength, selectedIndex }) => {
|
|
75
74
|
return /* @__PURE__ */ React.createElement(
|
76
75
|
"div",
|
77
76
|
{
|
77
|
+
key: index,
|
78
78
|
onClick: () => onDotClick(index),
|
79
79
|
className: cn(
|
80
80
|
"hawa-h-2 hawa-rounded-full hawa-bg-primary hawa-transition-all hawa-duration-300 hover:hawa-cursor-pointer",
|
81
81
|
!selected ? "hawa-w-2 hawa-opacity-50" : "hawa-w-6 hawa-opacity-100"
|
82
|
-
)
|
83
|
-
key: index
|
82
|
+
)
|
84
83
|
}
|
85
84
|
);
|
86
85
|
}));
|
@@ -89,11 +88,7 @@ var CarouselControls = (props) => {
|
|
89
88
|
return /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ React.createElement(
|
90
89
|
"button",
|
91
90
|
{
|
92
|
-
onClick: () =>
|
93
|
-
if (props.canScrollPrev) {
|
94
|
-
props.onPrev();
|
95
|
-
}
|
96
|
-
},
|
91
|
+
onClick: () => props.canScrollPrev && props.onPrev(),
|
97
92
|
disabled: !props.canScrollPrev,
|
98
93
|
className: cn(
|
99
94
|
"hawa-absolute hawa-start-0 hawa-top-1/2 -hawa-translate-y-2 hawa-rounded-full hawa-p-2 hawa-text-white ",
|
@@ -115,11 +110,7 @@ var CarouselControls = (props) => {
|
|
115
110
|
), /* @__PURE__ */ React.createElement(
|
116
111
|
"button",
|
117
112
|
{
|
118
|
-
onClick: () =>
|
119
|
-
if (props.canScrollNext) {
|
120
|
-
props.onNext();
|
121
|
-
}
|
122
|
-
},
|
113
|
+
onClick: () => props.canScrollNext && props.onNext(),
|
123
114
|
disabled: !props.canScrollNext,
|
124
115
|
className: cn(
|
125
116
|
"hawa-absolute hawa-end-0 hawa-top-1/2 -hawa-translate-y-2 hawa-rounded-full hawa-p-2 hawa-text-white ",
|
package/dist/checkbox/index.js
CHANGED
@@ -27,25 +27,25 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
29
|
|
30
|
-
//
|
30
|
+
// elements/checkbox/index.ts
|
31
31
|
var checkbox_exports = {};
|
32
32
|
__export(checkbox_exports, {
|
33
33
|
Checkbox: () => Checkbox
|
34
34
|
});
|
35
35
|
module.exports = __toCommonJS(checkbox_exports);
|
36
36
|
|
37
|
-
//
|
37
|
+
// elements/checkbox/Checkbox.tsx
|
38
38
|
var React = __toESM(require("react"));
|
39
39
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
40
40
|
|
41
|
-
//
|
41
|
+
// util/index.ts
|
42
42
|
var import_clsx = require("clsx");
|
43
43
|
var import_tailwind_merge = require("tailwind-merge");
|
44
44
|
function cn(...inputs) {
|
45
45
|
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
46
46
|
}
|
47
47
|
|
48
|
-
//
|
48
|
+
// elements/checkbox/Checkbox.tsx
|
49
49
|
var Checkbox = ({
|
50
50
|
id,
|
51
51
|
label,
|
package/dist/checkbox/index.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import {
|
2
2
|
cn
|
3
|
-
} from "../chunk-
|
3
|
+
} from "../chunk-TWNGV3RE.mjs";
|
4
4
|
|
5
|
-
//
|
5
|
+
// elements/checkbox/Checkbox.tsx
|
6
6
|
import * as React from "react";
|
7
7
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
8
8
|
var Checkbox = ({
|
package/dist/chip/index.js
CHANGED
@@ -27,24 +27,24 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
29
|
|
30
|
-
//
|
30
|
+
// elements/chip/index.ts
|
31
31
|
var chip_exports = {};
|
32
32
|
__export(chip_exports, {
|
33
33
|
Chip: () => Chip
|
34
34
|
});
|
35
35
|
module.exports = __toCommonJS(chip_exports);
|
36
36
|
|
37
|
-
//
|
37
|
+
// elements/chip/Chip.tsx
|
38
38
|
var import_react = __toESM(require("react"));
|
39
39
|
|
40
|
-
//
|
40
|
+
// util/index.ts
|
41
41
|
var import_clsx = require("clsx");
|
42
42
|
var import_tailwind_merge = require("tailwind-merge");
|
43
43
|
function cn(...inputs) {
|
44
44
|
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
45
45
|
}
|
46
46
|
|
47
|
-
//
|
47
|
+
// elements/chip/Chip.tsx
|
48
48
|
var Chip = import_react.default.forwardRef(
|
49
49
|
({
|
50
50
|
label,
|
package/dist/chip/index.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
//
|
1
|
+
// hooks/useToast.ts
|
2
2
|
import * as React from "react";
|
3
3
|
var TOAST_LIMIT = 5;
|
4
4
|
var TOAST_REMOVE_DELAY = 1e5;
|
@@ -112,7 +112,7 @@ function useToast() {
|
|
112
112
|
};
|
113
113
|
}
|
114
114
|
|
115
|
-
//
|
115
|
+
// hooks/useClipboard.ts
|
116
116
|
import { useState as useState2 } from "react";
|
117
117
|
function useClipboard({ timeout = 2e3 } = {}) {
|
118
118
|
const [error, setError] = useState2(null);
|
@@ -2,9 +2,9 @@ import {
|
|
2
2
|
Label,
|
3
3
|
Skeleton,
|
4
4
|
cn
|
5
|
-
} from "./chunk-
|
5
|
+
} from "./chunk-AREFDTXK.mjs";
|
6
6
|
|
7
|
-
//
|
7
|
+
// elements/select/Select.tsx
|
8
8
|
import React from "react";
|
9
9
|
import ReactSelect from "react-select";
|
10
10
|
import CreatableSelect from "react-select/creatable";
|
@@ -1,15 +1,15 @@
|
|
1
|
-
//
|
1
|
+
// util/index.ts
|
2
2
|
import { clsx } from "clsx";
|
3
3
|
import { twMerge } from "tailwind-merge";
|
4
4
|
function cn(...inputs) {
|
5
5
|
return twMerge(clsx(inputs));
|
6
6
|
}
|
7
7
|
|
8
|
-
//
|
8
|
+
// elements/button/Button.tsx
|
9
9
|
import * as React2 from "react";
|
10
10
|
import { cva } from "class-variance-authority";
|
11
11
|
|
12
|
-
//
|
12
|
+
// elements/loading/Loading.tsx
|
13
13
|
import React from "react";
|
14
14
|
var Loading = ({
|
15
15
|
design = "spinner",
|
@@ -186,7 +186,7 @@ var Loading = ({
|
|
186
186
|
}
|
187
187
|
};
|
188
188
|
|
189
|
-
//
|
189
|
+
// elements/button/Button.tsx
|
190
190
|
var buttonVariants = cva(
|
191
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
192
|
{
|
@@ -239,6 +239,7 @@ var Button = React2.forwardRef(
|
|
239
239
|
className: cn(
|
240
240
|
buttonVariants({ variant, size, className }),
|
241
241
|
centered && "hawa-justify-center"
|
242
|
+
// "hawa-bg-red-500"
|
242
243
|
),
|
243
244
|
ref,
|
244
245
|
...props
|
@@ -1,15 +1,15 @@
|
|
1
|
-
//
|
1
|
+
// util/index.ts
|
2
2
|
import { clsx } from "clsx";
|
3
3
|
import { twMerge } from "tailwind-merge";
|
4
4
|
function cn(...inputs) {
|
5
5
|
return twMerge(clsx(inputs));
|
6
6
|
}
|
7
7
|
|
8
|
-
//
|
8
|
+
// elements/button/Button.tsx
|
9
9
|
import * as React2 from "react";
|
10
10
|
import { cva } from "class-variance-authority";
|
11
11
|
|
12
|
-
//
|
12
|
+
// elements/loading/Loading.tsx
|
13
13
|
import React from "react";
|
14
14
|
var Loading = ({
|
15
15
|
design = "spinner",
|
@@ -186,7 +186,7 @@ var Loading = ({
|
|
186
186
|
}
|
187
187
|
};
|
188
188
|
|
189
|
-
//
|
189
|
+
// elements/button/Button.tsx
|
190
190
|
var buttonVariants = cva(
|
191
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
192
|
{
|
@@ -239,6 +239,7 @@ var Button = React2.forwardRef(
|
|
239
239
|
className: cn(
|
240
240
|
buttonVariants({ variant, size, className }),
|
241
241
|
centered && "hawa-justify-center"
|
242
|
+
// "hawa-bg-red-500"
|
242
243
|
),
|
243
244
|
ref,
|
244
245
|
...props
|
@@ -257,7 +258,7 @@ var Button = React2.forwardRef(
|
|
257
258
|
);
|
258
259
|
Button.displayName = "Button";
|
259
260
|
|
260
|
-
//
|
261
|
+
// elements/card/Card.tsx
|
261
262
|
import * as React3 from "react";
|
262
263
|
var Card = React3.forwardRef(
|
263
264
|
({ className, variant = "default", clickable = false, ...props }, ref) => {
|
@@ -338,7 +339,7 @@ CardFooter.displayName = "CardFooter";
|
|
338
339
|
CardTitle.displayName = "CardTitle";
|
339
340
|
Card.displayName = "Card";
|
340
341
|
|
341
|
-
//
|
342
|
+
// elements/tooltip/Tooltip.tsx
|
342
343
|
import React4 from "react";
|
343
344
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
344
345
|
var TooltipContent = React4.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React4.createElement(
|
@@ -389,7 +390,7 @@ var Tooltip = ({
|
|
389
390
|
);
|
390
391
|
};
|
391
392
|
|
392
|
-
//
|
393
|
+
// elements/label/Label.tsx
|
393
394
|
import * as React5 from "react";
|
394
395
|
var Label = React5.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React5.createElement(
|
395
396
|
"label",
|
@@ -432,7 +433,7 @@ var Label = React5.forwardRef(({ className, hint, hintSide, required, children,
|
|
432
433
|
)));
|
433
434
|
Label.displayName = "Label";
|
434
435
|
|
435
|
-
//
|
436
|
+
// elements/skeleton/Skeleton.tsx
|
436
437
|
import React6 from "react";
|
437
438
|
function Skeleton({
|
438
439
|
className,
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import {
|
2
2
|
cn
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-TWNGV3RE.mjs";
|
4
4
|
|
5
|
-
//
|
5
|
+
// elements/toast/Toast.tsx
|
6
6
|
import * as React from "react";
|
7
7
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
8
8
|
import { cva } from "class-variance-authority";
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import {
|
2
2
|
Label,
|
3
3
|
cn
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-AREFDTXK.mjs";
|
5
5
|
|
6
|
-
//
|
6
|
+
// elements/radio/Radio.tsx
|
7
7
|
import React, { useState, useRef, useEffect } from "react";
|
8
8
|
var Radio = ({
|
9
9
|
design = "default",
|
@@ -0,0 +1,62 @@
|
|
1
|
+
// util/index.ts
|
2
|
+
import { clsx } from "clsx";
|
3
|
+
import { twMerge } from "tailwind-merge";
|
4
|
+
function cn(...inputs) {
|
5
|
+
return twMerge(clsx(inputs));
|
6
|
+
}
|
7
|
+
|
8
|
+
// elements/tooltip/Tooltip.tsx
|
9
|
+
import React from "react";
|
10
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
11
|
+
var TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
12
|
+
TooltipPrimitive.Content,
|
13
|
+
{
|
14
|
+
ref,
|
15
|
+
sideOffset,
|
16
|
+
className: cn(
|
17
|
+
"hawa-z-50 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-text-popover-foreground hawa-shadow-md hawa-animate-in hawa-fade-in-0 hawa-zoom-in-95 data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=closed]:hawa-zoom-out-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
18
|
+
className
|
19
|
+
),
|
20
|
+
...props
|
21
|
+
}
|
22
|
+
));
|
23
|
+
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
24
|
+
var TooltipArrow = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
|
25
|
+
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
26
|
+
var Tooltip = ({
|
27
|
+
side,
|
28
|
+
open,
|
29
|
+
content,
|
30
|
+
children,
|
31
|
+
defaultOpen,
|
32
|
+
onOpenChange,
|
33
|
+
triggerProps,
|
34
|
+
contentProps,
|
35
|
+
providerProps,
|
36
|
+
delayDuration = 300,
|
37
|
+
...props
|
38
|
+
}) => {
|
39
|
+
return /* @__PURE__ */ React.createElement(
|
40
|
+
TooltipPrimitive.TooltipProvider,
|
41
|
+
{
|
42
|
+
delayDuration,
|
43
|
+
...providerProps
|
44
|
+
},
|
45
|
+
/* @__PURE__ */ React.createElement(
|
46
|
+
TooltipPrimitive.Root,
|
47
|
+
{
|
48
|
+
open,
|
49
|
+
defaultOpen,
|
50
|
+
onOpenChange,
|
51
|
+
...props
|
52
|
+
},
|
53
|
+
/* @__PURE__ */ React.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
54
|
+
/* @__PURE__ */ React.createElement(TooltipContent, { side, align: "center", ...contentProps }, content)
|
55
|
+
)
|
56
|
+
);
|
57
|
+
};
|
58
|
+
|
59
|
+
export {
|
60
|
+
cn,
|
61
|
+
Tooltip
|
62
|
+
};
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import {
|
2
2
|
cn
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-AREFDTXK.mjs";
|
4
4
|
|
5
|
-
//
|
5
|
+
// elements/scrollArea/ScrollArea.tsx
|
6
6
|
import * as React from "react";
|
7
7
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
8
8
|
var ScrollArea = React.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React.createElement(
|
@@ -42,7 +42,7 @@ var ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...prop
|
|
42
42
|
));
|
43
43
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
44
44
|
|
45
|
-
//
|
45
|
+
// elements/chip/Chip.tsx
|
46
46
|
import React2 from "react";
|
47
47
|
var Chip = React2.forwardRef(
|
48
48
|
({
|
@@ -1,15 +1,15 @@
|
|
1
|
-
//
|
1
|
+
// elements/command/Command.tsx
|
2
2
|
import * as React2 from "react";
|
3
3
|
import { Command as CommandPrimitive } from "cmdk";
|
4
4
|
|
5
|
-
//
|
5
|
+
// util/index.ts
|
6
6
|
import { clsx } from "clsx";
|
7
7
|
import { twMerge } from "tailwind-merge";
|
8
8
|
function cn(...inputs) {
|
9
9
|
return twMerge(clsx(inputs));
|
10
10
|
}
|
11
11
|
|
12
|
-
//
|
12
|
+
// elements/dialog/Dialog.tsx
|
13
13
|
import * as React from "react";
|
14
14
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
15
15
|
var Dialog = DialogPrimitive.Root;
|
@@ -304,7 +304,7 @@ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
304
304
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
305
305
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
306
306
|
|
307
|
-
//
|
307
|
+
// elements/command/Command.tsx
|
308
308
|
var Command = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
309
309
|
CommandPrimitive,
|
310
310
|
{
|
@@ -1,14 +1,14 @@
|
|
1
|
-
//
|
1
|
+
// util/index.ts
|
2
2
|
import { clsx } from "clsx";
|
3
3
|
import { twMerge } from "tailwind-merge";
|
4
4
|
function cn(...inputs) {
|
5
5
|
return twMerge(clsx(inputs));
|
6
6
|
}
|
7
7
|
|
8
|
-
//
|
8
|
+
// elements/label/Label.tsx
|
9
9
|
import * as React2 from "react";
|
10
10
|
|
11
|
-
//
|
11
|
+
// elements/tooltip/Tooltip.tsx
|
12
12
|
import React from "react";
|
13
13
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
14
14
|
var TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
@@ -59,7 +59,7 @@ var Tooltip = ({
|
|
59
59
|
);
|
60
60
|
};
|
61
61
|
|
62
|
-
//
|
62
|
+
// elements/label/Label.tsx
|
63
63
|
var Label = React2.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React2.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React2.createElement(
|
64
64
|
"label",
|
65
65
|
{
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import {
|
2
2
|
cn
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-AREFDTXK.mjs";
|
4
4
|
|
5
|
-
//
|
5
|
+
// icons/Emojis.tsx
|
6
6
|
import React from "react";
|
7
7
|
var VeryGoodEmoji = () => /* @__PURE__ */ React.createElement(
|
8
8
|
"svg",
|
@@ -95,7 +95,7 @@ var VeryBadEmoji = () => /* @__PURE__ */ React.createElement(
|
|
95
95
|
))
|
96
96
|
);
|
97
97
|
|
98
|
-
//
|
98
|
+
// icons/InputIcons.tsx
|
99
99
|
import React2 from "react";
|
100
100
|
var EyeIcon = (props) => /* @__PURE__ */ React2.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ React2.createElement(
|
101
101
|
"svg",
|
@@ -128,7 +128,7 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ React2.createElement("div", { cla
|
|
128
128
|
/* @__PURE__ */ React2.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
129
129
|
));
|
130
130
|
|
131
|
-
//
|
131
|
+
// icons/CommonIcons.tsx
|
132
132
|
import React3 from "react";
|
133
133
|
var CheckMark = ({ size = "default", className }) => {
|
134
134
|
let sizeStyles = {
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import {
|
2
2
|
cn
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-Z5SL5QTQ.mjs";
|
4
4
|
|
5
|
-
//
|
5
|
+
// elements/sheet/Sheet.tsx
|
6
6
|
import * as React from "react";
|
7
7
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
8
8
|
import { cva } from "class-variance-authority";
|