@sikka/hawa 0.23.2-next → 0.23.7-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/accordion/index.js +30 -2399
- package/dist/accordion/index.mjs +19 -461
- package/dist/alert/index.mjs +0 -1
- package/dist/appStores/index.js +75 -0
- package/dist/appStores/index.mjs +38 -0
- package/dist/avatar/index.mjs +118 -3
- package/dist/backToTop/index.mjs +102 -4
- package/dist/badge/index.js +127 -0
- package/dist/badge/index.mjs +84 -0
- package/dist/blocks/auth/index.js +1173 -3092
- package/dist/blocks/auth/index.mjs +16 -10
- package/dist/blocks/feedback/index.js +864 -2913
- package/dist/blocks/feedback/index.mjs +14 -8
- package/dist/blocks/index.js +5714 -5316
- package/dist/blocks/index.mjs +390 -45
- package/dist/blocks/misc/index.js +634 -2409
- package/dist/blocks/misc/index.mjs +14 -8
- package/dist/blocks/pricing/index.js +522 -524
- package/dist/blocks/pricing/index.mjs +1861 -45
- package/dist/breadcrumb/index.js +63 -0
- package/dist/breadcrumb/index.mjs +26 -0
- package/dist/card/index.mjs +83 -8
- package/dist/checkbox/index.mjs +138 -3
- package/dist/chip/index.js +129 -0
- package/dist/chip/index.mjs +8 -0
- package/dist/{chunk-X6PCWJYD.mjs → chunk-2R2QPJT7.mjs} +761 -1104
- package/dist/chunk-677VOLD4.mjs +464 -0
- package/dist/chunk-72HYR6WB.mjs +88 -0
- package/dist/chunk-A25EXELT.mjs +131 -0
- package/dist/{chunk-OE27DSIY.mjs → chunk-F6TKEDDP.mjs} +2 -4
- package/dist/{chunk-YFC2GSJ6.mjs → chunk-P2O6R3S6.mjs} +66 -5
- package/dist/{chunk-GXXX5UB4.mjs → chunk-QGKW5R5F.mjs} +59 -20
- package/dist/chunk-TR56G3NM.mjs +2350 -0
- package/dist/chunk-UAVBFK53.mjs +346 -0
- package/dist/combobox/index.mjs +153 -7
- package/dist/dataTable/index.mjs +355 -8
- package/dist/elements/index.js +800 -1148
- package/dist/elements/index.mjs +1 -11
- package/dist/fileDropzone/index.mjs +226 -4
- package/dist/index.js +1721 -1721
- package/dist/index.mjs +1663 -1663
- package/dist/layout/index.js +493 -510
- package/dist/layout/index.mjs +1 -1
- package/dist/loading/index.mjs +0 -1
- package/dist/logos/index.mjs +204 -3
- package/dist/navigationMenu/index.mjs +155 -13
- package/dist/phoneInput/index.js +2074 -0
- package/dist/phoneInput/index.mjs +1776 -0
- package/dist/pinInput/index.js +130 -0
- package/dist/pinInput/index.mjs +88 -0
- package/dist/progress/index.js +71 -0
- package/dist/progress/index.mjs +29 -0
- package/dist/radio/index.mjs +202 -4
- package/dist/scrollArea/index.js +90 -0
- package/dist/scrollArea/index.mjs +47 -0
- package/dist/select/index.mjs +1 -1
- package/dist/sheet/index.mjs +137 -12
- package/dist/sortButton/index.mjs +40 -4
- package/dist/stopPropagationWrapper/index.js +48 -0
- package/dist/stopPropagationWrapper/index.mjs +11 -0
- package/dist/switch/index.mjs +79 -3
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/index.mjs +68 -6
- package/dist/textarea/index.mjs +54 -4
- package/package.json +2 -2
- package/dist/Chip-DJ6ThZc_.d.ts +0 -21
- package/dist/Chip-eal8vwDz.d.mts +0 -21
- package/dist/accordion/index.d.mts +0 -42
- package/dist/accordion/index.d.ts +0 -42
- package/dist/alert/index.d.mts +0 -28
- package/dist/alert/index.d.ts +0 -28
- package/dist/avatar/index.d.mts +0 -15
- package/dist/avatar/index.d.ts +0 -15
- package/dist/backToTop/index.d.mts +0 -15
- package/dist/backToTop/index.d.ts +0 -15
- package/dist/button/index.d.mts +0 -16
- package/dist/button/index.d.ts +0 -16
- package/dist/card/index.d.mts +0 -17
- package/dist/card/index.d.ts +0 -17
- package/dist/checkbox/index.d.mts +0 -20
- package/dist/checkbox/index.d.ts +0 -20
- package/dist/chunk-BK5WF7UO.mjs +0 -231
- package/dist/chunk-CXWYC6FS.mjs +0 -360
- package/dist/chunk-D2USGMDT.mjs +0 -208
- package/dist/chunk-DX4SLF2L.mjs +0 -45
- package/dist/chunk-ENNSA4VR.mjs +0 -5566
- package/dist/chunk-GXSYCLZZ.mjs +0 -158
- package/dist/chunk-IQPGAHUR.mjs +0 -107
- package/dist/chunk-POT2IP62.mjs +0 -123
- package/dist/chunk-TWDZB2VH.mjs +0 -151
- package/dist/chunk-VBTYVVA7.mjs +0 -93
- package/dist/chunk-VCGW5DIP.mjs +0 -170
- package/dist/chunk-X3SMPIA3.mjs +0 -0
- package/dist/chunk-XA646BZ2.mjs +0 -143
- package/dist/chunk-ZCUUQ5VV.mjs +0 -84
- package/dist/combobox/index.d.mts +0 -32
- package/dist/combobox/index.d.ts +0 -32
- package/dist/command/index.d.mts +0 -48
- package/dist/command/index.d.ts +0 -48
- package/dist/commonTypes-gbO4hPli.d.mts +0 -7
- package/dist/commonTypes-gbO4hPli.d.ts +0 -7
- package/dist/dataTable/index.d.mts +0 -39
- package/dist/dataTable/index.d.ts +0 -39
- package/dist/dialog/index.d.mts +0 -57
- package/dist/dialog/index.d.ts +0 -57
- package/dist/dropdownMenu/index.d.mts +0 -95
- package/dist/dropdownMenu/index.d.ts +0 -95
- package/dist/fileDropzone/index.d.mts +0 -37
- package/dist/fileDropzone/index.d.ts +0 -37
- package/dist/input/index.d.mts +0 -36
- package/dist/input/index.d.ts +0 -36
- package/dist/label/index.d.mts +0 -12
- package/dist/label/index.d.ts +0 -12
- package/dist/loading/index.d.mts +0 -15
- package/dist/loading/index.d.ts +0 -15
- package/dist/logos/index.d.mts +0 -27
- package/dist/logos/index.d.ts +0 -27
- package/dist/navigationMenu/index.d.mts +0 -39
- package/dist/navigationMenu/index.d.ts +0 -39
- package/dist/popover/index.d.mts +0 -23
- package/dist/popover/index.d.ts +0 -23
- package/dist/radio/index.d.mts +0 -28
- package/dist/radio/index.d.ts +0 -28
- package/dist/select/index.d.mts +0 -43
- package/dist/select/index.d.ts +0 -43
- package/dist/sheet/index.d.mts +0 -30
- package/dist/sheet/index.d.ts +0 -30
- package/dist/skeleton/index.d.mts +0 -10
- package/dist/skeleton/index.d.ts +0 -10
- package/dist/sortButton/index.d.mts +0 -10
- package/dist/sortButton/index.d.ts +0 -10
- package/dist/splitButton/index.d.mts +0 -15
- package/dist/splitButton/index.d.ts +0 -15
- package/dist/switch/index.d.mts +0 -12
- package/dist/switch/index.d.ts +0 -12
- package/dist/table/index.d.mts +0 -21
- package/dist/table/index.d.ts +0 -21
- package/dist/tabs/index.d.mts +0 -16
- package/dist/tabs/index.d.ts +0 -16
- package/dist/textarea/index.d.mts +0 -17
- package/dist/textarea/index.d.ts +0 -17
- package/dist/tooltip/index.d.mts +0 -26
- package/dist/tooltip/index.d.ts +0 -26
- /package/dist/{chunk-A7OPD7H7.mjs → chunk-B6UCD4GP.mjs} +0 -0
- /package/dist/{chunk-O2ALK7UE.mjs → chunk-Z4M72OD3.mjs} +0 -0
|
@@ -1,23 +1,1839 @@
|
|
|
1
|
+
import "../../chunk-TR56G3NM.mjs";
|
|
2
|
+
import {
|
|
3
|
+
PopoverContent,
|
|
4
|
+
PopoverTrigger,
|
|
5
|
+
Radio
|
|
6
|
+
} from "../../chunk-P2O6R3S6.mjs";
|
|
1
7
|
import {
|
|
2
|
-
Button,
|
|
3
8
|
CheckMark,
|
|
9
|
+
UncheckMark
|
|
10
|
+
} from "../../chunk-UAVBFK53.mjs";
|
|
11
|
+
import {
|
|
4
12
|
Chip,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
13
|
+
ScrollArea
|
|
14
|
+
} from "../../chunk-QGKW5R5F.mjs";
|
|
15
|
+
import "../../chunk-A25EXELT.mjs";
|
|
16
|
+
import "../../chunk-F6TKEDDP.mjs";
|
|
17
|
+
import {
|
|
18
|
+
Button,
|
|
19
|
+
Card,
|
|
20
|
+
Label,
|
|
21
|
+
Skeleton,
|
|
8
22
|
Tooltip,
|
|
9
|
-
UncheckMark,
|
|
10
23
|
cn
|
|
11
|
-
} from "../../chunk-
|
|
24
|
+
} from "../../chunk-677VOLD4.mjs";
|
|
25
|
+
|
|
26
|
+
// components/blocks/pricing/PricingPlans.tsx
|
|
27
|
+
import React44 from "react";
|
|
28
|
+
|
|
29
|
+
// components/blocks/cards/ActionCard.tsx
|
|
30
|
+
import React, { useState } from "react";
|
|
31
|
+
|
|
32
|
+
// components/blocks/cards/AdCard.tsx
|
|
33
|
+
import React2, { useState as useState2, useEffect, useRef } from "react";
|
|
34
|
+
|
|
35
|
+
// components/blocks/cards/PricingCard.tsx
|
|
36
|
+
import React41 from "react";
|
|
37
|
+
|
|
38
|
+
// components/elements/dropdownMenu/DropdownMenu.tsx
|
|
39
|
+
import * as React3 from "react";
|
|
40
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
41
|
+
var DropdownMenuSubTrigger = React3.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
42
|
+
DropdownMenuPrimitive.SubTrigger,
|
|
43
|
+
{
|
|
44
|
+
ref,
|
|
45
|
+
className: cn(
|
|
46
|
+
"hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-sm hawa-text-sm hawa-outline-none focus:hawa-bg-accent data-[state=open]:hawa-bg-accent",
|
|
47
|
+
inset && "hawa-pl-8",
|
|
48
|
+
className
|
|
49
|
+
),
|
|
50
|
+
...props
|
|
51
|
+
},
|
|
52
|
+
/* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
|
|
53
|
+
" ",
|
|
54
|
+
/* @__PURE__ */ React3.createElement(
|
|
55
|
+
"svg",
|
|
56
|
+
{
|
|
57
|
+
"aria-label": "Chevron Right Icon",
|
|
58
|
+
stroke: "currentColor",
|
|
59
|
+
fill: "currentColor",
|
|
60
|
+
strokeWidth: "0",
|
|
61
|
+
viewBox: "0 0 16 16",
|
|
62
|
+
height: "1em",
|
|
63
|
+
width: "1em",
|
|
64
|
+
className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
|
|
65
|
+
},
|
|
66
|
+
/* @__PURE__ */ React3.createElement(
|
|
67
|
+
"path",
|
|
68
|
+
{
|
|
69
|
+
fillRule: "evenodd",
|
|
70
|
+
d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
)
|
|
74
|
+
));
|
|
75
|
+
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
76
|
+
var DropdownMenuSubContent = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
77
|
+
DropdownMenuPrimitive.SubContent,
|
|
78
|
+
{
|
|
79
|
+
ref,
|
|
80
|
+
className: cn(
|
|
81
|
+
"hawa-z-50 hawa-min-w-[8rem] hawa-gap-1 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-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",
|
|
82
|
+
className
|
|
83
|
+
),
|
|
84
|
+
...props
|
|
85
|
+
}
|
|
86
|
+
));
|
|
87
|
+
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
88
|
+
var DropdownMenuContent = React3.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React3.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React3.createElement(
|
|
89
|
+
DropdownMenuPrimitive.Content,
|
|
90
|
+
{
|
|
91
|
+
ref,
|
|
92
|
+
sideOffset,
|
|
93
|
+
className: cn(
|
|
94
|
+
"hawa-z-50 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground hawa-shadow-md data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-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",
|
|
95
|
+
className
|
|
96
|
+
),
|
|
97
|
+
...props
|
|
98
|
+
}
|
|
99
|
+
)));
|
|
100
|
+
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
101
|
+
var DropdownMenuItem = React3.forwardRef(({ className, inset, badged, slug, ...props }, ref) => {
|
|
102
|
+
return /* @__PURE__ */ React3.createElement("a", { href: slug }, /* @__PURE__ */ React3.createElement(
|
|
103
|
+
DropdownMenuPrimitive.Item,
|
|
104
|
+
{
|
|
105
|
+
disabled: props.disabled,
|
|
106
|
+
ref,
|
|
107
|
+
className: cn(
|
|
108
|
+
"hawa-relative hawa-flex hawa-cursor-pointer hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-sm hawa-text-sm hawa-outline-none hawa-transition-colors focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
|
|
109
|
+
inset && "hawa-pl-8",
|
|
110
|
+
props.end && Array.isArray(props.children) && props.children[1] && "hawa-gap-6",
|
|
111
|
+
className
|
|
112
|
+
),
|
|
113
|
+
...props
|
|
114
|
+
},
|
|
115
|
+
/* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
|
|
116
|
+
props.end && props.end,
|
|
117
|
+
!props.end && props.shortcut && /* @__PURE__ */ React3.createElement(DropdownMenuShortcut, null, props.shortcut),
|
|
118
|
+
!props.end && badged && /* @__PURE__ */ React3.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
|
|
119
|
+
));
|
|
120
|
+
});
|
|
121
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
122
|
+
var DropdownMenuCheckboxItem = React3.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
123
|
+
DropdownMenuPrimitive.CheckboxItem,
|
|
124
|
+
{
|
|
125
|
+
ref,
|
|
126
|
+
className: cn(
|
|
127
|
+
"hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-py-1.5 hawa-pl-8 hawa-pr-2 hawa-text-sm hawa-outline-none hawa-transition-colors focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
|
|
128
|
+
className
|
|
129
|
+
),
|
|
130
|
+
checked,
|
|
131
|
+
...props
|
|
132
|
+
},
|
|
133
|
+
/* @__PURE__ */ React3.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React3.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React3.createElement(
|
|
134
|
+
"svg",
|
|
135
|
+
{
|
|
136
|
+
"aria-label": "Check Mark",
|
|
137
|
+
stroke: "currentColor",
|
|
138
|
+
fill: "currentColor",
|
|
139
|
+
strokeWidth: "0",
|
|
140
|
+
viewBox: "0 0 512 512",
|
|
141
|
+
height: "0.60em",
|
|
142
|
+
width: "0.60em"
|
|
143
|
+
},
|
|
144
|
+
/* @__PURE__ */ React3.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
|
145
|
+
), " ")),
|
|
146
|
+
children
|
|
147
|
+
));
|
|
148
|
+
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
149
|
+
var DropdownMenuRadioItem = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
150
|
+
DropdownMenuPrimitive.RadioItem,
|
|
151
|
+
{
|
|
152
|
+
ref,
|
|
153
|
+
className: cn(
|
|
154
|
+
"hawa-relative hawa-flex hawa-cursor-pointer hawa-select-none hawa-items-center hawa-rounded-sm hawa-py-1.5 hawa-pl-8 hawa-pr-2 hawa-text-sm hawa-outline-none hawa-transition-colors focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
|
|
155
|
+
className
|
|
156
|
+
),
|
|
157
|
+
...props
|
|
158
|
+
},
|
|
159
|
+
/* @__PURE__ */ React3.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React3.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React3.createElement(
|
|
160
|
+
"svg",
|
|
161
|
+
{
|
|
162
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
163
|
+
width: "24",
|
|
164
|
+
"aria-label": "Circle",
|
|
165
|
+
height: "24",
|
|
166
|
+
viewBox: "0 0 24 24",
|
|
167
|
+
fill: "none",
|
|
168
|
+
stroke: "currentColor",
|
|
169
|
+
strokeWidth: "2",
|
|
170
|
+
strokeLinecap: "round",
|
|
171
|
+
strokeLinejoin: "round",
|
|
172
|
+
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
|
173
|
+
},
|
|
174
|
+
/* @__PURE__ */ React3.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
|
175
|
+
))),
|
|
176
|
+
children
|
|
177
|
+
));
|
|
178
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
179
|
+
var DropdownMenuLabel = React3.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
180
|
+
DropdownMenuPrimitive.Label,
|
|
181
|
+
{
|
|
182
|
+
ref,
|
|
183
|
+
className: cn(
|
|
184
|
+
"hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-font-semibold",
|
|
185
|
+
inset && "hawa-pl-8",
|
|
186
|
+
className
|
|
187
|
+
),
|
|
188
|
+
...props
|
|
189
|
+
}
|
|
190
|
+
));
|
|
191
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
192
|
+
var DropdownMenuSeparator = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
193
|
+
DropdownMenuPrimitive.Separator,
|
|
194
|
+
{
|
|
195
|
+
ref,
|
|
196
|
+
className: cn("hawa--mx-1 hawa-my-1 hawa-h-px hawa-bg-muted", className),
|
|
197
|
+
...props
|
|
198
|
+
}
|
|
199
|
+
));
|
|
200
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
201
|
+
var DropdownMenuShortcut = ({
|
|
202
|
+
className,
|
|
203
|
+
...props
|
|
204
|
+
}) => {
|
|
205
|
+
return /* @__PURE__ */ React3.createElement(
|
|
206
|
+
"span",
|
|
207
|
+
{
|
|
208
|
+
className: cn(
|
|
209
|
+
"hawa-text-xs hawa-tracking-widest hawa-opacity-60",
|
|
210
|
+
className
|
|
211
|
+
),
|
|
212
|
+
...props
|
|
213
|
+
}
|
|
214
|
+
);
|
|
215
|
+
};
|
|
216
|
+
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
217
|
+
|
|
218
|
+
// components/elements/accordion/Accordion.tsx
|
|
219
|
+
import * as React6 from "react";
|
|
220
|
+
import * as AccordionPrimitive3 from "@radix-ui/react-accordion";
|
|
221
|
+
|
|
222
|
+
// components/elements/accordion/AccordionContent.tsx
|
|
223
|
+
import * as React4 from "react";
|
|
224
|
+
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
225
|
+
var AccordionContent = React4.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React4.createElement(
|
|
226
|
+
AccordionPrimitive.Content,
|
|
227
|
+
{
|
|
228
|
+
ref,
|
|
229
|
+
className: !props.unstyled ? cn(
|
|
230
|
+
"hawa-overflow-hidden hawa-text-sm hawa-transition-all data-[state=closed]:hawa-animate-accordion-up data-[state=open]:hawa-animate-accordion-down",
|
|
231
|
+
className
|
|
232
|
+
) : className,
|
|
233
|
+
...props
|
|
234
|
+
},
|
|
235
|
+
/* @__PURE__ */ React4.createElement("div", { className: "hawa-bg-background hawa-p-4" }, children)
|
|
236
|
+
));
|
|
237
|
+
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
238
|
+
|
|
239
|
+
// components/elements/accordion/AccordionTrigger.tsx
|
|
240
|
+
import * as React5 from "react";
|
|
241
|
+
import * as AccordionPrimitive2 from "@radix-ui/react-accordion";
|
|
242
|
+
var AccordionTrigger = React5.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React5.createElement(AccordionPrimitive2.Header, { className: "hawa-flex" }, /* @__PURE__ */ React5.createElement(
|
|
243
|
+
AccordionPrimitive2.Trigger,
|
|
244
|
+
{
|
|
245
|
+
ref,
|
|
246
|
+
className: !props.unstyled ? cn(
|
|
247
|
+
"hawa-flex hawa-flex-1 hawa-items-center hawa-justify-between hawa-bg-muted/50 hawa-p-4 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa-rotate-180",
|
|
248
|
+
props.disabled ? "hawa-bg-muted/30 hawa-text-muted-foreground/50" : "hover:hawa-bg-muted",
|
|
249
|
+
className
|
|
250
|
+
) : className,
|
|
251
|
+
...props
|
|
252
|
+
},
|
|
253
|
+
children,
|
|
254
|
+
!props.hideArrow && /* @__PURE__ */ React5.createElement(
|
|
255
|
+
"svg",
|
|
256
|
+
{
|
|
257
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
258
|
+
width: "24",
|
|
259
|
+
height: "24",
|
|
260
|
+
viewBox: "0 0 24 24",
|
|
261
|
+
fill: "none",
|
|
262
|
+
stroke: "currentColor",
|
|
263
|
+
strokeWidth: "2",
|
|
264
|
+
strokeLinecap: "round",
|
|
265
|
+
strokeLinejoin: "round",
|
|
266
|
+
className: "hawa-icon hawa-shrink-0 hawa-transition-transform hawa-duration-200"
|
|
267
|
+
},
|
|
268
|
+
/* @__PURE__ */ React5.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
269
|
+
)
|
|
270
|
+
)));
|
|
271
|
+
AccordionTrigger.displayName = AccordionPrimitive2.Trigger.displayName;
|
|
272
|
+
|
|
273
|
+
// components/elements/accordion/Accordion.tsx
|
|
274
|
+
var Accordion = React6.forwardRef(
|
|
275
|
+
({
|
|
276
|
+
items,
|
|
277
|
+
design = "default",
|
|
278
|
+
itemClassNames,
|
|
279
|
+
triggerclassNames,
|
|
280
|
+
contentclassNames,
|
|
281
|
+
className,
|
|
282
|
+
...props
|
|
283
|
+
}, ref) => /* @__PURE__ */ React6.createElement(AccordionPrimitive3.Root, { type: props.type, collapsible: true }, /* @__PURE__ */ React6.createElement(
|
|
284
|
+
"div",
|
|
285
|
+
{
|
|
286
|
+
className: cn("hawa-flex hawa-flex-col", {
|
|
287
|
+
"hawa-gap-4": design === "separated",
|
|
288
|
+
"hawa-gap-0": design === "default"
|
|
289
|
+
})
|
|
290
|
+
},
|
|
291
|
+
items.map((item, index) => /* @__PURE__ */ React6.createElement(
|
|
292
|
+
AccordionPrimitive3.Item,
|
|
293
|
+
{
|
|
294
|
+
disabled: item.disabled || false,
|
|
295
|
+
className: cn(itemClassNames, "hawa-rounded"),
|
|
296
|
+
key: index,
|
|
297
|
+
value: `item-${index}`
|
|
298
|
+
},
|
|
299
|
+
/* @__PURE__ */ React6.createElement(
|
|
300
|
+
AccordionTrigger,
|
|
301
|
+
{
|
|
302
|
+
disabled: item.disabled || false,
|
|
303
|
+
className: cn(
|
|
304
|
+
"hawa-transition-all",
|
|
305
|
+
design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-b-none" : {
|
|
306
|
+
"hawa-rounded-t": index === 0,
|
|
307
|
+
"data-[state=closed]:hawa-rounded-b": index === items.length - 1
|
|
308
|
+
},
|
|
309
|
+
triggerclassNames
|
|
310
|
+
)
|
|
311
|
+
},
|
|
312
|
+
/* @__PURE__ */ React6.createElement(
|
|
313
|
+
"span",
|
|
314
|
+
{
|
|
315
|
+
className: cn(
|
|
316
|
+
"hawa-flex hawa-flex-row",
|
|
317
|
+
item.chip && "hawa-gap-2"
|
|
318
|
+
)
|
|
319
|
+
},
|
|
320
|
+
item.trigger,
|
|
321
|
+
" ",
|
|
322
|
+
item.chip && /* @__PURE__ */ React6.createElement(Chip, { ...item.chip })
|
|
323
|
+
)
|
|
324
|
+
),
|
|
325
|
+
/* @__PURE__ */ React6.createElement(
|
|
326
|
+
AccordionContent,
|
|
327
|
+
{
|
|
328
|
+
"aria-disabled": item.disabled || false,
|
|
329
|
+
className: cn(
|
|
330
|
+
"hawa-border hawa-transition-all",
|
|
331
|
+
design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-t-none" : {
|
|
332
|
+
"data-[state=open]:hawa-rounded-b": index === items.length - 1
|
|
333
|
+
},
|
|
334
|
+
contentclassNames
|
|
335
|
+
)
|
|
336
|
+
},
|
|
337
|
+
item.content
|
|
338
|
+
)
|
|
339
|
+
))
|
|
340
|
+
))
|
|
341
|
+
);
|
|
342
|
+
Accordion.displayName = "Accordion";
|
|
343
|
+
|
|
344
|
+
// components/elements/accordion/AccordionItem.tsx
|
|
345
|
+
import * as React7 from "react";
|
|
346
|
+
import * as AccordionPrimitive4 from "@radix-ui/react-accordion";
|
|
347
|
+
var AccordionItem = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(AccordionPrimitive4.Item, { ref, className: cn(className), ...props }));
|
|
348
|
+
AccordionItem.displayName = "AccordionItem";
|
|
349
|
+
|
|
350
|
+
// components/elements/accordion/AccordionRoot.tsx
|
|
351
|
+
import * as AccordionPrimitive5 from "@radix-ui/react-accordion";
|
|
352
|
+
|
|
353
|
+
// components/elements/navigationMenu/NavigationMenu.tsx
|
|
354
|
+
import * as React8 from "react";
|
|
355
|
+
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
356
|
+
import { cva } from "class-variance-authority";
|
|
357
|
+
var navigationMenuTriggerStyle = cva(
|
|
358
|
+
"hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 "
|
|
359
|
+
);
|
|
360
|
+
var NavigationMenuRoot = React8.forwardRef(({ className, children, viewportClassNames, ...props }, ref) => /* @__PURE__ */ React8.createElement(
|
|
361
|
+
NavigationMenuPrimitive.Root,
|
|
362
|
+
{
|
|
363
|
+
ref,
|
|
364
|
+
className: cn(
|
|
365
|
+
"hawa-relative hawa-z-10 hawa-flex hawa-flex-1 hawa-items-center hawa-justify-center",
|
|
366
|
+
// "hawa-max-w-max",
|
|
367
|
+
className
|
|
368
|
+
),
|
|
369
|
+
...props
|
|
370
|
+
},
|
|
371
|
+
children,
|
|
372
|
+
/* @__PURE__ */ React8.createElement(NavigationMenuViewport, { className: viewportClassNames })
|
|
373
|
+
));
|
|
374
|
+
var NavigationMenuList = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
|
|
375
|
+
NavigationMenuPrimitive.List,
|
|
376
|
+
{
|
|
377
|
+
ref,
|
|
378
|
+
className: cn(
|
|
379
|
+
"hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-gap-1",
|
|
380
|
+
className
|
|
381
|
+
),
|
|
382
|
+
...props
|
|
383
|
+
}
|
|
384
|
+
));
|
|
385
|
+
var NavigationMenuTrigger = React8.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React8.createElement(
|
|
386
|
+
NavigationMenuPrimitive.Trigger,
|
|
387
|
+
{
|
|
388
|
+
ref,
|
|
389
|
+
className: cn(navigationMenuTriggerStyle(), "hawa-group", className),
|
|
390
|
+
...props
|
|
391
|
+
},
|
|
392
|
+
children,
|
|
393
|
+
/* @__PURE__ */ React8.createElement(
|
|
394
|
+
"svg",
|
|
395
|
+
{
|
|
396
|
+
"aria-label": "Chevron Icon",
|
|
397
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
398
|
+
width: "24",
|
|
399
|
+
height: "24",
|
|
400
|
+
viewBox: "0 0 24 24",
|
|
401
|
+
fill: "none",
|
|
402
|
+
stroke: "currentColor",
|
|
403
|
+
strokeWidth: "2",
|
|
404
|
+
strokeLinecap: "round",
|
|
405
|
+
strokeLinejoin: "round",
|
|
406
|
+
"aria-hidden": "true",
|
|
407
|
+
className: "hawa-icon hawa-relative hawa-top-[1px] hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
|
408
|
+
},
|
|
409
|
+
/* @__PURE__ */ React8.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
410
|
+
)
|
|
411
|
+
));
|
|
412
|
+
var NavigationMenuContent = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
|
|
413
|
+
NavigationMenuPrimitive.Content,
|
|
414
|
+
{
|
|
415
|
+
ref,
|
|
416
|
+
className: cn(
|
|
417
|
+
"hawa-absolute hawa-left-0 hawa-top-0 hawa-w-full hawa-rounded ",
|
|
418
|
+
// "md:hawa-absolute md:hawa-w-auto hawa-left-0 hawa-top-0 ",
|
|
419
|
+
// animation
|
|
420
|
+
"data-[motion^=from-]:hawa-animate-in data-[motion^=to-]:hawa-animate-out data-[motion^=from-]:hawa-fade-in data-[motion^=to-]:hawa-fade-out data-[motion=from-end]:hawa-slide-in-from-right-52 data-[motion=from-start]:hawa-slide-in-from-left-52 data-[motion=to-end]:hawa-slide-out-to-right-52 data-[motion=to-start]:hawa-slide-out-to-left-52",
|
|
421
|
+
className
|
|
422
|
+
),
|
|
423
|
+
...props
|
|
424
|
+
}
|
|
425
|
+
));
|
|
426
|
+
var NavigationMenuViewport = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
|
|
427
|
+
"div",
|
|
428
|
+
{
|
|
429
|
+
className: cn(
|
|
430
|
+
"hawa-absolute hawa-top-full hawa-flex hawa-w-full hawa-justify-center"
|
|
431
|
+
)
|
|
432
|
+
},
|
|
433
|
+
/* @__PURE__ */ React8.createElement(
|
|
434
|
+
NavigationMenuPrimitive.Viewport,
|
|
435
|
+
{
|
|
436
|
+
className: cn(
|
|
437
|
+
"hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90 ",
|
|
438
|
+
// hawa-h-[var(--radix-navigation-menu-viewport-height)]
|
|
439
|
+
// "md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
|
|
440
|
+
className
|
|
441
|
+
),
|
|
442
|
+
style: {
|
|
443
|
+
height: "calc(var(--radix-navigation-menu-viewport-height) + 1px)"
|
|
444
|
+
},
|
|
445
|
+
ref,
|
|
446
|
+
...props
|
|
447
|
+
}
|
|
448
|
+
)
|
|
449
|
+
));
|
|
450
|
+
var NavigationMenuIndicator = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
|
|
451
|
+
NavigationMenuPrimitive.Indicator,
|
|
452
|
+
{
|
|
453
|
+
ref,
|
|
454
|
+
className: cn(
|
|
455
|
+
"hawa-top-full hawa-z-[1] hawa-flex hawa-h-1.5 hawa-items-end hawa-justify-center hawa-overflow-hidden data-[state=visible]:hawa-animate-in data-[state=hidden]:hawa-animate-out data-[state=hidden]:hawa-fade-out data-[state=visible]:hawa-fade-in",
|
|
456
|
+
className
|
|
457
|
+
),
|
|
458
|
+
...props
|
|
459
|
+
},
|
|
460
|
+
/* @__PURE__ */ React8.createElement("div", { className: "hawa-relative hawa-top-[60%] hawa-h-2 hawa-w-2 hawa-rotate-45 hawa-rounded-tl-sm hawa-bg-border hawa-shadow-md" })
|
|
461
|
+
));
|
|
462
|
+
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
463
|
+
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
464
|
+
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
465
|
+
NavigationMenuRoot.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
466
|
+
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
467
|
+
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
468
|
+
|
|
469
|
+
// components/elements/sheet/Sheet.tsx
|
|
470
|
+
import * as React9 from "react";
|
|
471
|
+
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
472
|
+
import { cva as cva2 } from "class-variance-authority";
|
|
473
|
+
var SheetPortal = SheetPrimitive.Portal;
|
|
474
|
+
var SheetOverlay = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
|
|
475
|
+
SheetPrimitive.Overlay,
|
|
476
|
+
{
|
|
477
|
+
className: cn(
|
|
478
|
+
"hawa-fixed hawa-inset-0 hawa-z-50 hawa-bg-background/80 hawa-backdrop-blur-sm data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0",
|
|
479
|
+
className
|
|
480
|
+
),
|
|
481
|
+
...props,
|
|
482
|
+
ref
|
|
483
|
+
}
|
|
484
|
+
));
|
|
485
|
+
var sheetVariants = cva2(
|
|
486
|
+
"hawa-fixed hawa-z-50 hawa-gap-4 hawa-bg-background hawa-p-2 hawa-shadow-lg hawa-transition hawa-ease-in-out data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-duration-300 data-[state=open]:hawa-duration-300",
|
|
487
|
+
{
|
|
488
|
+
variants: {
|
|
489
|
+
side: {
|
|
490
|
+
top: "hawa-inset-x-0 hawa-top-0 hawa-border-b data-[state=closed]:hawa-slide-out-to-top data-[state=open]:hawa-slide-in-from-top",
|
|
491
|
+
bottom: "hawa-inset-x-0 hawa-bottom-0 hawa-border-t data-[state=closed]:hawa-slide-out-to-bottom data-[state=open]:hawa-slide-in-from-bottom",
|
|
492
|
+
left: "hawa-inset-y-0 hawa-left-0 hawa-h-full hawa-w-3/4 hawa-border-r data-[state=closed]:hawa-slide-out-to-left data-[state=open]:hawa-slide-in-from-left sm:hawa-max-w-sm",
|
|
493
|
+
right: "hawa-inset-y-0 hawa-right-0 hawa-h-full hawa-w-3/4 hawa-border-l data-[state=closed]:hawa-slide-out-to-right data-[state=open]:hawa-slide-in-from-right sm:hawa-max-w-sm"
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
defaultVariants: {
|
|
497
|
+
side: "right"
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
);
|
|
501
|
+
var SheetContent = React9.forwardRef(
|
|
502
|
+
({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React9.createElement(SheetPortal, null, /* @__PURE__ */ React9.createElement(SheetOverlay, null), /* @__PURE__ */ React9.createElement(
|
|
503
|
+
SheetPrimitive.Content,
|
|
504
|
+
{
|
|
505
|
+
ref,
|
|
506
|
+
className: cn(sheetVariants({ side }), className),
|
|
507
|
+
onPointerDownOutside: (e) => {
|
|
508
|
+
if (persist) {
|
|
509
|
+
e.preventDefault();
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
...props
|
|
513
|
+
},
|
|
514
|
+
children,
|
|
515
|
+
!hideCloseButton && /* @__PURE__ */ React9.createElement(
|
|
516
|
+
SheetPrimitive.Close,
|
|
517
|
+
{
|
|
518
|
+
className: cn(
|
|
519
|
+
"hawa-absolute hawa-rounded-sm hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-secondary",
|
|
520
|
+
{
|
|
521
|
+
"hawa-right-4 hawa-top-4": side === "left" || side === "bottom",
|
|
522
|
+
"hawa-left-4 hawa-top-4": side === "right",
|
|
523
|
+
"hawa-bottom-4 hawa-right-4": side === "top"
|
|
524
|
+
}
|
|
525
|
+
)
|
|
526
|
+
},
|
|
527
|
+
/* @__PURE__ */ React9.createElement(
|
|
528
|
+
"svg",
|
|
529
|
+
{
|
|
530
|
+
"aria-label": "Close Icon",
|
|
531
|
+
"aria-hidden": "true",
|
|
532
|
+
className: "hawa-h-5 hawa-w-5",
|
|
533
|
+
fill: "currentColor",
|
|
534
|
+
viewBox: "0 0 20 20"
|
|
535
|
+
},
|
|
536
|
+
/* @__PURE__ */ React9.createElement(
|
|
537
|
+
"path",
|
|
538
|
+
{
|
|
539
|
+
fillRule: "evenodd",
|
|
540
|
+
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",
|
|
541
|
+
clipRule: "evenodd"
|
|
542
|
+
}
|
|
543
|
+
)
|
|
544
|
+
),
|
|
545
|
+
/* @__PURE__ */ React9.createElement("span", { className: "hawa-sr-only" }, "Close")
|
|
546
|
+
)
|
|
547
|
+
))
|
|
548
|
+
);
|
|
549
|
+
var SheetHeader = ({
|
|
550
|
+
className,
|
|
551
|
+
...props
|
|
552
|
+
}) => /* @__PURE__ */ React9.createElement(
|
|
553
|
+
"div",
|
|
554
|
+
{
|
|
555
|
+
className: cn(
|
|
556
|
+
"hawa-flex hawa-flex-col hawa-space-y-2 hawa-text-center sm:hawa-text-left",
|
|
557
|
+
className
|
|
558
|
+
),
|
|
559
|
+
...props
|
|
560
|
+
}
|
|
561
|
+
);
|
|
562
|
+
var SheetFooter = ({
|
|
563
|
+
className,
|
|
564
|
+
...props
|
|
565
|
+
}) => /* @__PURE__ */ React9.createElement(
|
|
566
|
+
"div",
|
|
567
|
+
{
|
|
568
|
+
className: cn(
|
|
569
|
+
"hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end sm:hawa-space-x-2",
|
|
570
|
+
className
|
|
571
|
+
),
|
|
572
|
+
...props
|
|
573
|
+
}
|
|
574
|
+
);
|
|
575
|
+
var SheetTitle = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
|
|
576
|
+
SheetPrimitive.Title,
|
|
577
|
+
{
|
|
578
|
+
ref,
|
|
579
|
+
className: cn(
|
|
580
|
+
"hawa-text-lg hawa-font-semibold hawa-text-foreground",
|
|
581
|
+
className
|
|
582
|
+
),
|
|
583
|
+
...props
|
|
584
|
+
}
|
|
585
|
+
));
|
|
586
|
+
var SheetDescription = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
|
|
587
|
+
SheetPrimitive.Description,
|
|
588
|
+
{
|
|
589
|
+
ref,
|
|
590
|
+
className: cn("hawa-text-sm hawa-text-muted-foreground", className),
|
|
591
|
+
...props
|
|
592
|
+
}
|
|
593
|
+
));
|
|
594
|
+
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
595
|
+
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
596
|
+
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
597
|
+
SheetHeader.displayName = "SheetHeader";
|
|
598
|
+
SheetFooter.displayName = "SheetFooter";
|
|
599
|
+
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
600
|
+
|
|
601
|
+
// components/elements/dialog/Dialog.tsx
|
|
602
|
+
import * as React10 from "react";
|
|
603
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
604
|
+
var DialogPortal = ({ ...props }) => /* @__PURE__ */ React10.createElement(DialogPrimitive.Portal, { ...props });
|
|
605
|
+
var DialogOverlay = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement(
|
|
606
|
+
DialogPrimitive.Overlay,
|
|
607
|
+
{
|
|
608
|
+
ref,
|
|
609
|
+
className: cn(
|
|
610
|
+
"hawa-fixed hawa-inset-0 hawa-z-50 hawa-bg-background/80 hawa-backdrop-blur-sm data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0",
|
|
611
|
+
className
|
|
612
|
+
),
|
|
613
|
+
...props
|
|
614
|
+
}
|
|
615
|
+
));
|
|
616
|
+
var DialogContent = React10.forwardRef(({ className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React10.createElement(DialogPortal, null, /* @__PURE__ */ React10.createElement(DialogOverlay, null), /* @__PURE__ */ React10.createElement(
|
|
617
|
+
DialogPrimitive.Content,
|
|
618
|
+
{
|
|
619
|
+
onPointerDownOutside: (e) => {
|
|
620
|
+
if (persist) {
|
|
621
|
+
e.preventDefault();
|
|
622
|
+
}
|
|
623
|
+
},
|
|
624
|
+
ref,
|
|
625
|
+
className: cn(
|
|
626
|
+
"hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] sm:hawa-rounded md:hawa-w-full",
|
|
627
|
+
className
|
|
628
|
+
),
|
|
629
|
+
...props
|
|
630
|
+
},
|
|
631
|
+
children,
|
|
632
|
+
!hideCloseButton && /* @__PURE__ */ React10.createElement(
|
|
633
|
+
DialogPrimitive.Close,
|
|
634
|
+
{
|
|
635
|
+
className: cn(
|
|
636
|
+
"hawa-absolute hawa-top-4 hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground",
|
|
637
|
+
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
|
638
|
+
)
|
|
639
|
+
},
|
|
640
|
+
/* @__PURE__ */ React10.createElement(
|
|
641
|
+
"svg",
|
|
642
|
+
{
|
|
643
|
+
"aria-label": "Close Icon",
|
|
644
|
+
"aria-hidden": "true",
|
|
645
|
+
className: "hawa-h-5 hawa-w-5",
|
|
646
|
+
fill: "currentColor",
|
|
647
|
+
viewBox: "0 0 20 20"
|
|
648
|
+
},
|
|
649
|
+
/* @__PURE__ */ React10.createElement(
|
|
650
|
+
"path",
|
|
651
|
+
{
|
|
652
|
+
fillRule: "evenodd",
|
|
653
|
+
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",
|
|
654
|
+
clipRule: "evenodd"
|
|
655
|
+
}
|
|
656
|
+
)
|
|
657
|
+
),
|
|
658
|
+
/* @__PURE__ */ React10.createElement("span", { className: "hawa-sr-only" }, "Close")
|
|
659
|
+
)
|
|
660
|
+
)));
|
|
661
|
+
var DialogCarouselContent = React10.forwardRef(
|
|
662
|
+
({
|
|
663
|
+
className,
|
|
664
|
+
children,
|
|
665
|
+
onPrev,
|
|
666
|
+
persist,
|
|
667
|
+
hideCloseButton,
|
|
668
|
+
hidePrevButton,
|
|
669
|
+
...props
|
|
670
|
+
}, ref) => /* @__PURE__ */ React10.createElement(DialogPortal, null, /* @__PURE__ */ React10.createElement(DialogOverlay, null), /* @__PURE__ */ React10.createElement(
|
|
671
|
+
DialogPrimitive.Content,
|
|
672
|
+
{
|
|
673
|
+
onPointerDownOutside: (e) => {
|
|
674
|
+
if (persist) {
|
|
675
|
+
e.preventDefault();
|
|
676
|
+
}
|
|
677
|
+
},
|
|
678
|
+
ref,
|
|
679
|
+
className: cn(
|
|
680
|
+
"hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-pt-14 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] sm:hawa-rounded md:hawa-w-full",
|
|
681
|
+
className
|
|
682
|
+
),
|
|
683
|
+
...props
|
|
684
|
+
},
|
|
685
|
+
children,
|
|
686
|
+
/* @__PURE__ */ React10.createElement(
|
|
687
|
+
"div",
|
|
688
|
+
{
|
|
689
|
+
className: cn(
|
|
690
|
+
"hawa-absolute hawa-top-0 hawa-flex hawa-w-full hawa-flex-row hawa-p-4",
|
|
691
|
+
onPrev ? "hawa-justify-between" : "hawa-justify-end"
|
|
692
|
+
)
|
|
693
|
+
},
|
|
694
|
+
hidePrevButton ? /* @__PURE__ */ React10.createElement("div", null) : /* @__PURE__ */ React10.createElement(
|
|
695
|
+
"div",
|
|
696
|
+
{
|
|
697
|
+
onClick: onPrev,
|
|
698
|
+
className: cn(
|
|
699
|
+
"hawa-end-0 hawa-cursor-pointer hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground",
|
|
700
|
+
props.dir === "rtl" && "hawa-rotate-180"
|
|
701
|
+
)
|
|
702
|
+
},
|
|
703
|
+
/* @__PURE__ */ React10.createElement(
|
|
704
|
+
"svg",
|
|
705
|
+
{
|
|
706
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
707
|
+
width: "24",
|
|
708
|
+
height: "24",
|
|
709
|
+
viewBox: "0 0 24 24",
|
|
710
|
+
fill: "none",
|
|
711
|
+
className: "hawa-h-6 hawa-w-6",
|
|
712
|
+
stroke: "currentColor",
|
|
713
|
+
strokeWidth: "2",
|
|
714
|
+
strokeLinecap: "round",
|
|
715
|
+
strokeLinejoin: "round"
|
|
716
|
+
},
|
|
717
|
+
/* @__PURE__ */ React10.createElement("path", { d: "m15 18-6-6 6-6" })
|
|
718
|
+
)
|
|
719
|
+
),
|
|
720
|
+
!hideCloseButton && /* @__PURE__ */ React10.createElement(
|
|
721
|
+
DialogPrimitive.Close,
|
|
722
|
+
{
|
|
723
|
+
className: cn(
|
|
724
|
+
"hawa-end-0 hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground ",
|
|
725
|
+
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
|
726
|
+
)
|
|
727
|
+
},
|
|
728
|
+
/* @__PURE__ */ React10.createElement(
|
|
729
|
+
"svg",
|
|
730
|
+
{
|
|
731
|
+
"aria-label": "Close Icon",
|
|
732
|
+
"aria-hidden": "true",
|
|
733
|
+
className: "hawa-h-6 hawa-w-6",
|
|
734
|
+
fill: "currentColor",
|
|
735
|
+
viewBox: "0 0 20 20"
|
|
736
|
+
},
|
|
737
|
+
/* @__PURE__ */ React10.createElement(
|
|
738
|
+
"path",
|
|
739
|
+
{
|
|
740
|
+
fillRule: "evenodd",
|
|
741
|
+
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",
|
|
742
|
+
clipRule: "evenodd"
|
|
743
|
+
}
|
|
744
|
+
)
|
|
745
|
+
),
|
|
746
|
+
/* @__PURE__ */ React10.createElement("span", { className: "hawa-sr-only" }, "Close")
|
|
747
|
+
)
|
|
748
|
+
)
|
|
749
|
+
))
|
|
750
|
+
);
|
|
751
|
+
var DialogHeader = ({
|
|
752
|
+
className,
|
|
753
|
+
...props
|
|
754
|
+
}) => /* @__PURE__ */ React10.createElement(
|
|
755
|
+
"div",
|
|
756
|
+
{
|
|
757
|
+
className: cn(
|
|
758
|
+
"hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-text-center sm:hawa-text-left",
|
|
759
|
+
className
|
|
760
|
+
),
|
|
761
|
+
...props
|
|
762
|
+
}
|
|
763
|
+
);
|
|
764
|
+
var DialogTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement(
|
|
765
|
+
DialogPrimitive.Title,
|
|
766
|
+
{
|
|
767
|
+
ref,
|
|
768
|
+
className: cn(
|
|
769
|
+
"hawa-text-start hawa-text-lg hawa-font-semibold hawa-leading-none hawa-tracking-tight",
|
|
770
|
+
className
|
|
771
|
+
),
|
|
772
|
+
...props
|
|
773
|
+
}
|
|
774
|
+
));
|
|
775
|
+
var DialogDescription = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement(
|
|
776
|
+
DialogPrimitive.Description,
|
|
777
|
+
{
|
|
778
|
+
ref,
|
|
779
|
+
className: cn(
|
|
780
|
+
"hawa-text-start hawa-text-sm hawa-text-muted-foreground",
|
|
781
|
+
className
|
|
782
|
+
),
|
|
783
|
+
...props
|
|
784
|
+
}
|
|
785
|
+
));
|
|
786
|
+
var DialogFooter = ({
|
|
787
|
+
className,
|
|
788
|
+
...props
|
|
789
|
+
}) => /* @__PURE__ */ React10.createElement(
|
|
790
|
+
"div",
|
|
791
|
+
{
|
|
792
|
+
className: cn(
|
|
793
|
+
"hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end sm:hawa-gap-2",
|
|
794
|
+
className
|
|
795
|
+
),
|
|
796
|
+
...props
|
|
797
|
+
}
|
|
798
|
+
);
|
|
799
|
+
var DialogCarousel = ({
|
|
800
|
+
stepsApi,
|
|
801
|
+
stepsRef,
|
|
802
|
+
children,
|
|
803
|
+
direction
|
|
804
|
+
}) => {
|
|
805
|
+
React10.useEffect(() => {
|
|
806
|
+
if (stepsApi) {
|
|
807
|
+
stepsApi.reInit();
|
|
808
|
+
}
|
|
809
|
+
}, [stepsApi, children]);
|
|
810
|
+
return /* @__PURE__ */ React10.createElement("div", { className: "hawa-overflow-hidden" }, /* @__PURE__ */ React10.createElement("div", { ref: stepsRef, dir: direction }, /* @__PURE__ */ React10.createElement(
|
|
811
|
+
"div",
|
|
812
|
+
{
|
|
813
|
+
className: "hawa-flex",
|
|
814
|
+
style: {
|
|
815
|
+
transition: "height 0.2s"
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
React10.Children.map(children, (child, index) => /* @__PURE__ */ React10.createElement(
|
|
819
|
+
"div",
|
|
820
|
+
{
|
|
821
|
+
className: cn(
|
|
822
|
+
"hawa-flex hawa-h-fit hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
|
|
823
|
+
),
|
|
824
|
+
key: index
|
|
825
|
+
},
|
|
826
|
+
child
|
|
827
|
+
))
|
|
828
|
+
)));
|
|
829
|
+
};
|
|
830
|
+
var DialogSteps = ({
|
|
831
|
+
currentStep,
|
|
832
|
+
visibleStepRef,
|
|
833
|
+
children
|
|
834
|
+
}) => {
|
|
835
|
+
const [dialogHeight, setDialogHeight] = React10.useState(null);
|
|
836
|
+
React10.useEffect(() => {
|
|
837
|
+
if (visibleStepRef.current) {
|
|
838
|
+
setDialogHeight(visibleStepRef.current.offsetHeight);
|
|
839
|
+
console.log("height is ", visibleStepRef.current.offsetHeight);
|
|
840
|
+
}
|
|
841
|
+
}, [currentStep, visibleStepRef]);
|
|
842
|
+
return /* @__PURE__ */ React10.createElement(
|
|
843
|
+
"div",
|
|
844
|
+
{
|
|
845
|
+
className: "hawa-relative hawa-overflow-clip",
|
|
846
|
+
style: {
|
|
847
|
+
height: dialogHeight || "fit-content",
|
|
848
|
+
transition: "height 0.2s"
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
React10.Children.map(children, (child, index) => /* @__PURE__ */ React10.createElement(
|
|
852
|
+
"div",
|
|
853
|
+
{
|
|
854
|
+
ref: currentStep === `step-${index + 1}` ? visibleStepRef : null,
|
|
855
|
+
className: cn(
|
|
856
|
+
currentStep === `step-${index + 1}` ? "hawa-visible hawa-block" : "hawa-invisible hawa-hidden"
|
|
857
|
+
)
|
|
858
|
+
},
|
|
859
|
+
child
|
|
860
|
+
))
|
|
861
|
+
);
|
|
862
|
+
};
|
|
863
|
+
var DialogStep = ({
|
|
864
|
+
id,
|
|
865
|
+
children,
|
|
866
|
+
className,
|
|
867
|
+
stepRef
|
|
868
|
+
}) => {
|
|
869
|
+
return /* @__PURE__ */ React10.createElement(
|
|
870
|
+
"div",
|
|
871
|
+
{
|
|
872
|
+
id,
|
|
873
|
+
ref: stepRef,
|
|
874
|
+
className: cn("hawa-w-full hawa-px-1", className)
|
|
875
|
+
},
|
|
876
|
+
children
|
|
877
|
+
);
|
|
878
|
+
};
|
|
879
|
+
var DialogBody = ({ children, className }) => {
|
|
880
|
+
return /* @__PURE__ */ React10.createElement("div", { className: cn("hawa-py-6", className) }, children);
|
|
881
|
+
};
|
|
882
|
+
DialogBody.displayName = "DialogBody";
|
|
883
|
+
DialogStep.displayName = "DialogStep";
|
|
884
|
+
DialogSteps.displayName = "DialogSteps";
|
|
885
|
+
DialogCarousel.displayName = "DialogCarousel";
|
|
886
|
+
DialogCarouselContent.displayName = "DialogCarouselContent";
|
|
887
|
+
DialogHeader.displayName = "DialogHeader";
|
|
888
|
+
DialogFooter.displayName = "DialogFooter";
|
|
889
|
+
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
890
|
+
DialogPortal.displayName = DialogPrimitive.Portal.displayName;
|
|
891
|
+
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
892
|
+
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
893
|
+
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
894
|
+
|
|
895
|
+
// components/elements/avatar/Avatar.tsx
|
|
896
|
+
import React12 from "react";
|
|
897
|
+
|
|
898
|
+
// components/elements/FileUploader.tsx
|
|
899
|
+
import React11, { useRef as useRef2 } from "react";
|
|
900
|
+
|
|
901
|
+
// components/elements/dataTable/DataTable.tsx
|
|
902
|
+
import * as React14 from "react";
|
|
903
|
+
import {
|
|
904
|
+
flexRender,
|
|
905
|
+
getCoreRowModel,
|
|
906
|
+
getFilteredRowModel,
|
|
907
|
+
getPaginationRowModel,
|
|
908
|
+
getExpandedRowModel,
|
|
909
|
+
getSortedRowModel,
|
|
910
|
+
useReactTable
|
|
911
|
+
} from "@tanstack/react-table";
|
|
912
|
+
|
|
913
|
+
// components/elements/table/Table.tsx
|
|
914
|
+
import * as React13 from "react";
|
|
915
|
+
var Table = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React13.createElement(
|
|
916
|
+
"table",
|
|
917
|
+
{
|
|
918
|
+
ref,
|
|
919
|
+
className: cn("hawa-w-full hawa-caption-bottom hawa-text-sm", className),
|
|
920
|
+
...props
|
|
921
|
+
}
|
|
922
|
+
)));
|
|
923
|
+
Table.displayName = "Table";
|
|
924
|
+
var TableHeader = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
|
925
|
+
"thead",
|
|
926
|
+
{
|
|
927
|
+
ref,
|
|
928
|
+
className: cn("[&_tr]:hawa-border-b", "hawa-bg-muted/50", className),
|
|
929
|
+
...props
|
|
930
|
+
}
|
|
931
|
+
));
|
|
932
|
+
TableHeader.displayName = "TableHeader";
|
|
933
|
+
var TableHead = React13.forwardRef(
|
|
934
|
+
({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
|
935
|
+
"th",
|
|
936
|
+
{
|
|
937
|
+
ref,
|
|
938
|
+
className: cn(
|
|
939
|
+
"hawa-bg-muted/60 hawa-text-start hawa-align-middle hawa-font-medium hawa-text-muted-foreground dark:hawa-bg-muted/40 [&:has([role=checkbox])]:hawa-pr-0 [&:not(:last-child)&:not(:first-child)]:hawa-border-x",
|
|
940
|
+
dir === "rtl" ? "[&:not(:last-child)]:hawa-border-l" : "[&:not(:last-child)]:hawa-border-r",
|
|
941
|
+
condensed ? "hawa-h-8" : "hawa-h-12",
|
|
942
|
+
clickable ? "hawa-px-1" : "hawa-px-4",
|
|
943
|
+
//First and last columns
|
|
944
|
+
clickable ? " [&:not(:last-child)&:not(:first-child)]:hawa-p-1" : "hawa-px-4",
|
|
945
|
+
//Columns in between
|
|
946
|
+
className
|
|
947
|
+
),
|
|
948
|
+
...props
|
|
949
|
+
}
|
|
950
|
+
)
|
|
951
|
+
);
|
|
952
|
+
TableHead.displayName = "TableHead";
|
|
953
|
+
var TableBody = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement("tbody", { ref, className: cn("hawa-border-none", className), ...props }));
|
|
954
|
+
TableBody.displayName = "TableBody";
|
|
955
|
+
var TableFooter = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
|
956
|
+
"tfoot",
|
|
957
|
+
{
|
|
958
|
+
ref,
|
|
959
|
+
className: cn(
|
|
960
|
+
"hawa-bg-primary hawa-font-medium hawa-text-primary-foreground",
|
|
961
|
+
className
|
|
962
|
+
),
|
|
963
|
+
...props
|
|
964
|
+
}
|
|
965
|
+
));
|
|
966
|
+
TableFooter.displayName = "TableFooter";
|
|
967
|
+
var TableRow = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
|
968
|
+
"tr",
|
|
969
|
+
{
|
|
970
|
+
ref,
|
|
971
|
+
className: cn(
|
|
972
|
+
"hawa-bg-background hawa-transition-colors data-[state=selected]:hawa-bg-muted",
|
|
973
|
+
"[&:not(:last-child)&:not(:first-child)]:hawa-border-y",
|
|
974
|
+
"[&:not(:last-child)]:hawa-border-b",
|
|
975
|
+
className
|
|
976
|
+
),
|
|
977
|
+
...props
|
|
978
|
+
}
|
|
979
|
+
));
|
|
980
|
+
TableRow.displayName = "TableRow";
|
|
981
|
+
var TableCell = React13.forwardRef(
|
|
982
|
+
({ className, enablePadding = true, padding = "default", ...props }, ref) => {
|
|
983
|
+
let paddingStyles = {
|
|
984
|
+
condensed: "hawa-p-0 hawa-px-4",
|
|
985
|
+
default: "hawa-p-4",
|
|
986
|
+
noPadding: "hawa-p-0"
|
|
987
|
+
};
|
|
988
|
+
return /* @__PURE__ */ React13.createElement(
|
|
989
|
+
"td",
|
|
990
|
+
{
|
|
991
|
+
ref,
|
|
992
|
+
className: cn(
|
|
993
|
+
paddingStyles[padding],
|
|
994
|
+
// "border-x",
|
|
995
|
+
// enablePadding ? "hawa-p-4" : "hawa-p-0",
|
|
996
|
+
// props.disablePadding ? "hawa-p-0" : "hawa-p-4",
|
|
997
|
+
// props.condensed ? "hawa-p-0 hawa-px-4" : "hawa-p-4",
|
|
998
|
+
"hawa-align-middle [&:has([role=checkbox])]:hawa-pr-0 ",
|
|
999
|
+
"[&:not(:last-child)&:not(:first-child)]:hawa-border-x",
|
|
1000
|
+
// "[&:not(:last-child)]:hawa-border-r",
|
|
1001
|
+
props.dir === "rtl" ? "[&:not(:last-child)]:hawa-border-l" : "[&:not(:last-child)]:hawa-border-r",
|
|
1002
|
+
className
|
|
1003
|
+
),
|
|
1004
|
+
...props
|
|
1005
|
+
}
|
|
1006
|
+
);
|
|
1007
|
+
}
|
|
1008
|
+
);
|
|
1009
|
+
TableCell.displayName = "TableCell";
|
|
1010
|
+
var TableCaption = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
|
1011
|
+
"caption",
|
|
1012
|
+
{
|
|
1013
|
+
ref,
|
|
1014
|
+
className: cn(
|
|
1015
|
+
"hawa-mt-4 hawa-text-sm hawa-text-muted-foreground",
|
|
1016
|
+
className
|
|
1017
|
+
),
|
|
1018
|
+
...props
|
|
1019
|
+
}
|
|
1020
|
+
));
|
|
1021
|
+
TableCaption.displayName = "TableCaption";
|
|
1022
|
+
|
|
1023
|
+
// components/elements/backToTop/BackToTop.tsx
|
|
1024
|
+
import React15, { useState as useState5, useEffect as useEffect3, useRef as useRef3 } from "react";
|
|
1025
|
+
|
|
1026
|
+
// components/elements/combobox/Combobox.tsx
|
|
1027
|
+
import * as React17 from "react";
|
|
1028
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
1029
|
+
|
|
1030
|
+
// components/elements/command/Command.tsx
|
|
1031
|
+
import * as React16 from "react";
|
|
1032
|
+
import { Command as CommandPrimitive } from "cmdk";
|
|
1033
|
+
var Command = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React16.createElement(
|
|
1034
|
+
CommandPrimitive,
|
|
1035
|
+
{
|
|
1036
|
+
ref,
|
|
1037
|
+
className: cn(
|
|
1038
|
+
"hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-overflow-hidden hawa-rounded-md hawa-bg-popover hawa-text-popover-foreground",
|
|
1039
|
+
className
|
|
1040
|
+
),
|
|
1041
|
+
...props
|
|
1042
|
+
}
|
|
1043
|
+
));
|
|
1044
|
+
Command.displayName = CommandPrimitive.displayName;
|
|
1045
|
+
var CommandInput = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React16.createElement(
|
|
1046
|
+
"div",
|
|
1047
|
+
{
|
|
1048
|
+
className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
|
|
1049
|
+
"cmdk-input-wrapper": ""
|
|
1050
|
+
},
|
|
1051
|
+
/* @__PURE__ */ React16.createElement(
|
|
1052
|
+
"svg",
|
|
1053
|
+
{
|
|
1054
|
+
"aria-label": "Search Icon",
|
|
1055
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1056
|
+
width: "24",
|
|
1057
|
+
height: "24",
|
|
1058
|
+
viewBox: "0 0 24 24",
|
|
1059
|
+
fill: "none",
|
|
1060
|
+
stroke: "currentColor",
|
|
1061
|
+
strokeWidth: "2",
|
|
1062
|
+
strokeLinecap: "round",
|
|
1063
|
+
strokeLinejoin: "round",
|
|
1064
|
+
className: "hawa-icon hawa-mr-2 hawa-shrink-0 hawa-opacity-50"
|
|
1065
|
+
},
|
|
1066
|
+
/* @__PURE__ */ React16.createElement("circle", { cx: "11", cy: "11", r: "8" }),
|
|
1067
|
+
/* @__PURE__ */ React16.createElement("path", { d: "m21 21-4.3-4.3" })
|
|
1068
|
+
),
|
|
1069
|
+
/* @__PURE__ */ React16.createElement(
|
|
1070
|
+
CommandPrimitive.Input,
|
|
1071
|
+
{
|
|
1072
|
+
ref,
|
|
1073
|
+
className: cn(
|
|
1074
|
+
"hawa-flex hawa-h-11 hawa-w-full hawa-rounded-md hawa-bg-transparent hawa-py-3 hawa-text-sm hawa-outline-none placeholder:hawa-text-muted-foreground disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
|
|
1075
|
+
className
|
|
1076
|
+
),
|
|
1077
|
+
...props
|
|
1078
|
+
}
|
|
1079
|
+
)
|
|
1080
|
+
));
|
|
1081
|
+
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
1082
|
+
var CommandList = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React16.createElement(
|
|
1083
|
+
CommandPrimitive.List,
|
|
1084
|
+
{
|
|
1085
|
+
ref,
|
|
1086
|
+
className: cn(
|
|
1087
|
+
"hawa-max-h-[300px] hawa-overflow-y-auto hawa-overflow-x-hidden",
|
|
1088
|
+
className
|
|
1089
|
+
),
|
|
1090
|
+
...props
|
|
1091
|
+
}
|
|
1092
|
+
));
|
|
1093
|
+
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
1094
|
+
var CommandEmpty = React16.forwardRef((props, ref) => /* @__PURE__ */ React16.createElement(
|
|
1095
|
+
CommandPrimitive.Empty,
|
|
1096
|
+
{
|
|
1097
|
+
ref,
|
|
1098
|
+
className: "hawa-py-6 hawa-text-center hawa-text-sm",
|
|
1099
|
+
...props
|
|
1100
|
+
}
|
|
1101
|
+
));
|
|
1102
|
+
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
1103
|
+
var CommandGroup = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React16.createElement(
|
|
1104
|
+
CommandPrimitive.Group,
|
|
1105
|
+
{
|
|
1106
|
+
ref,
|
|
1107
|
+
className: cn(
|
|
1108
|
+
"hawa-overflow-hidden hawa-p-1 hawa-text-foreground [&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-py-1.5 [&_[cmdk-group-heading]]:hawa-text-xs [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground",
|
|
1109
|
+
className
|
|
1110
|
+
),
|
|
1111
|
+
...props
|
|
1112
|
+
}
|
|
1113
|
+
));
|
|
1114
|
+
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
1115
|
+
var CommandSeparator = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React16.createElement(
|
|
1116
|
+
CommandPrimitive.Separator,
|
|
1117
|
+
{
|
|
1118
|
+
ref,
|
|
1119
|
+
className: cn("hawa--mx-1 hawa-h-px hawa-bg-border", className),
|
|
1120
|
+
...props
|
|
1121
|
+
}
|
|
1122
|
+
));
|
|
1123
|
+
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
1124
|
+
var CommandItem = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React16.createElement(
|
|
1125
|
+
CommandPrimitive.Item,
|
|
1126
|
+
{
|
|
1127
|
+
ref,
|
|
1128
|
+
className: cn(
|
|
1129
|
+
"hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-outline-none aria-selected:hawa-bg-accent aria-selected:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
|
|
1130
|
+
className
|
|
1131
|
+
),
|
|
1132
|
+
...props
|
|
1133
|
+
}
|
|
1134
|
+
));
|
|
1135
|
+
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
1136
|
+
var CommandShortcut = ({
|
|
1137
|
+
className,
|
|
1138
|
+
...props
|
|
1139
|
+
}) => {
|
|
1140
|
+
return /* @__PURE__ */ React16.createElement(
|
|
1141
|
+
"span",
|
|
1142
|
+
{
|
|
1143
|
+
className: cn(
|
|
1144
|
+
"hawa-ml-auto hawa-text-xs hawa-tracking-widest hawa-text-muted-foreground",
|
|
1145
|
+
className
|
|
1146
|
+
),
|
|
1147
|
+
...props
|
|
1148
|
+
}
|
|
1149
|
+
);
|
|
1150
|
+
};
|
|
1151
|
+
CommandShortcut.displayName = "CommandShortcut";
|
|
1152
|
+
|
|
1153
|
+
// components/elements/combobox/Combobox.tsx
|
|
1154
|
+
var Combobox = React17.forwardRef(
|
|
1155
|
+
({
|
|
1156
|
+
labelKey = "label",
|
|
1157
|
+
valueKey = "value",
|
|
1158
|
+
defaultValue = "",
|
|
1159
|
+
popoverClassName,
|
|
1160
|
+
labelProps,
|
|
1161
|
+
data,
|
|
1162
|
+
...props
|
|
1163
|
+
}, ref) => {
|
|
1164
|
+
var _a, _b, _c;
|
|
1165
|
+
const [open, setOpen] = React17.useState(false);
|
|
1166
|
+
const [value, setValue] = React17.useState(defaultValue);
|
|
1167
|
+
function getProperty(obj, key) {
|
|
1168
|
+
return obj[key];
|
|
1169
|
+
}
|
|
1170
|
+
const handleOpenChange = (open2) => {
|
|
1171
|
+
if (!(props.isLoading || props.preview)) {
|
|
1172
|
+
setOpen(open2);
|
|
1173
|
+
}
|
|
1174
|
+
};
|
|
1175
|
+
return /* @__PURE__ */ React17.createElement(
|
|
1176
|
+
"div",
|
|
1177
|
+
{
|
|
1178
|
+
className: cn(
|
|
1179
|
+
"hawa-relative hawa-flex hawa-h-fit hawa-flex-col hawa-gap-2",
|
|
1180
|
+
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
|
1181
|
+
)
|
|
1182
|
+
},
|
|
1183
|
+
props.label && /* @__PURE__ */ React17.createElement(Label, { ...labelProps }, props.label),
|
|
1184
|
+
/* @__PURE__ */ React17.createElement(PopoverPrimitive.Root, { open, onOpenChange: handleOpenChange }, /* @__PURE__ */ React17.createElement(PopoverTrigger, { asChild: true }, props.isLoading ? /* @__PURE__ */ React17.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React17.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React17.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-gap-2 " }, /* @__PURE__ */ React17.createElement(
|
|
1185
|
+
"div",
|
|
1186
|
+
{
|
|
1187
|
+
className: cn(
|
|
1188
|
+
"hawa-absolute hawa-top-[22px] hawa-h-[0.8px] hawa-w-full hawa-bg-gray-200 hawa-transition-all dark:hawa-bg-gray-800",
|
|
1189
|
+
props.preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
|
1190
|
+
)
|
|
1191
|
+
}
|
|
1192
|
+
), /* @__PURE__ */ React17.createElement(
|
|
1193
|
+
"button",
|
|
1194
|
+
{
|
|
1195
|
+
role: "combobox",
|
|
1196
|
+
"aria-expanded": open,
|
|
1197
|
+
className: cn(
|
|
1198
|
+
"hawa-inline-flex hawa-h-10 hawa-w-full hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-md hawa-border hawa-py-2 hawa-text-sm hawa-font-normal hawa-text-primary hawa-ring-offset-background hawa-transition-all 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",
|
|
1199
|
+
props.preview ? "hawa-cursor-default hawa-rounded-none hawa-border-transparent hawa-px-0" : "hawa-bg-background hawa-px-3 "
|
|
1200
|
+
)
|
|
1201
|
+
},
|
|
1202
|
+
value ? getProperty(
|
|
1203
|
+
data.find((item) => item[valueKey] === value) || {},
|
|
1204
|
+
labelKey
|
|
1205
|
+
) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || "...",
|
|
1206
|
+
/* @__PURE__ */ React17.createElement(
|
|
1207
|
+
"svg",
|
|
1208
|
+
{
|
|
1209
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1210
|
+
className: cn(
|
|
1211
|
+
"hawa-icon hawa-transition-all",
|
|
1212
|
+
!props.preview ? "hawa-visible hawa-opacity-100" : "hawa-invisible hawa-opacity-0"
|
|
1213
|
+
),
|
|
1214
|
+
"aria-label": "Chevron down icon",
|
|
1215
|
+
viewBox: "0 0 24 24",
|
|
1216
|
+
fill: "none",
|
|
1217
|
+
stroke: "currentColor",
|
|
1218
|
+
strokeWidth: "2",
|
|
1219
|
+
strokeLinecap: "round",
|
|
1220
|
+
strokeLinejoin: "round"
|
|
1221
|
+
},
|
|
1222
|
+
/* @__PURE__ */ React17.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
1223
|
+
)
|
|
1224
|
+
), /* @__PURE__ */ React17.createElement(
|
|
1225
|
+
"p",
|
|
1226
|
+
{
|
|
1227
|
+
className: cn(
|
|
1228
|
+
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
|
1229
|
+
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
|
1230
|
+
)
|
|
1231
|
+
},
|
|
1232
|
+
props.helperText
|
|
1233
|
+
))), /* @__PURE__ */ React17.createElement(
|
|
1234
|
+
PopoverContent,
|
|
1235
|
+
{
|
|
1236
|
+
className: cn("popover-w-parent", props.helperText && "-hawa-mt-4")
|
|
1237
|
+
},
|
|
1238
|
+
/* @__PURE__ */ React17.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React17.createElement(
|
|
1239
|
+
CommandInput,
|
|
1240
|
+
{
|
|
1241
|
+
placeholder: ((_b = props.texts) == null ? void 0 : _b.searchPlaceholder) || "Search"
|
|
1242
|
+
}
|
|
1243
|
+
), /* @__PURE__ */ React17.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."), /* @__PURE__ */ React17.createElement(CommandGroup, { className: "hawa-max-h-[200px] hawa-overflow-y-auto" }, data.map((item, i) => /* @__PURE__ */ React17.createElement(
|
|
1244
|
+
CommandItem,
|
|
1245
|
+
{
|
|
1246
|
+
key: i,
|
|
1247
|
+
onSelect: () => {
|
|
1248
|
+
const newValue = getProperty(item, valueKey);
|
|
1249
|
+
setValue(newValue === value ? "" : newValue);
|
|
1250
|
+
if (props.onChange) {
|
|
1251
|
+
props.onChange(
|
|
1252
|
+
newValue === value ? "" : newValue
|
|
1253
|
+
);
|
|
1254
|
+
}
|
|
1255
|
+
setOpen(false);
|
|
1256
|
+
}
|
|
1257
|
+
},
|
|
1258
|
+
/* @__PURE__ */ React17.createElement(
|
|
1259
|
+
"svg",
|
|
1260
|
+
{
|
|
1261
|
+
"aria-label": "Check Icon",
|
|
1262
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1263
|
+
width: "24",
|
|
1264
|
+
height: "24",
|
|
1265
|
+
viewBox: "0 0 24 24",
|
|
1266
|
+
fill: "none",
|
|
1267
|
+
stroke: "currentColor",
|
|
1268
|
+
strokeWidth: "2",
|
|
1269
|
+
strokeLinecap: "round",
|
|
1270
|
+
strokeLinejoin: "round",
|
|
1271
|
+
className: cn(
|
|
1272
|
+
"hawa-icon hawa-mr-2",
|
|
1273
|
+
value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0"
|
|
1274
|
+
)
|
|
1275
|
+
},
|
|
1276
|
+
/* @__PURE__ */ React17.createElement("polyline", { points: "20 6 9 17 4 12" })
|
|
1277
|
+
),
|
|
1278
|
+
getProperty(item, labelKey)
|
|
1279
|
+
))))
|
|
1280
|
+
))
|
|
1281
|
+
);
|
|
1282
|
+
}
|
|
1283
|
+
);
|
|
1284
|
+
|
|
1285
|
+
// components/elements/fileDropzone/FileDropzone.tsx
|
|
1286
|
+
import React18, { useEffect as useEffect4, useState as useState7 } from "react";
|
|
1287
|
+
import { useDropzone } from "react-dropzone";
|
|
1288
|
+
import clsx from "clsx";
|
|
1289
|
+
|
|
1290
|
+
// components/elements/sortButton/SortButton.tsx
|
|
1291
|
+
import React19 from "react";
|
|
1292
|
+
|
|
1293
|
+
// components/elements/switch/Switch.tsx
|
|
1294
|
+
import * as React20 from "react";
|
|
1295
|
+
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
1296
|
+
var Switch = React20.forwardRef(
|
|
1297
|
+
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
|
1298
|
+
const [parentDirection, setParentDirection] = React20.useState(
|
|
1299
|
+
null
|
|
1300
|
+
);
|
|
1301
|
+
const parentRef = React20.useRef(null);
|
|
1302
|
+
React20.useEffect(() => {
|
|
1303
|
+
var _a;
|
|
1304
|
+
const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
|
|
1305
|
+
if (parentNode) {
|
|
1306
|
+
const dir = window.getComputedStyle(parentNode).direction;
|
|
1307
|
+
setParentDirection(dir);
|
|
1308
|
+
}
|
|
1309
|
+
});
|
|
1310
|
+
const rootSize = {
|
|
1311
|
+
default: "hawa-h-[25px] hawa-w-[42px]",
|
|
1312
|
+
sm: "hawa-h-[20px] hawa-w-[37px]",
|
|
1313
|
+
lg: "hawa-h-[30px] hawa-w-[47px]"
|
|
1314
|
+
};
|
|
1315
|
+
const thumbSize = {
|
|
1316
|
+
default: "hawa-h-[21px] hawa-w-[21px]",
|
|
1317
|
+
sm: "hawa-h-[16px] hawa-w-[16px]",
|
|
1318
|
+
lg: "hawa-h-[26px] hawa-w-[26px]"
|
|
1319
|
+
};
|
|
1320
|
+
const rootRoundednessStyles = {
|
|
1321
|
+
none: "hawa-rounded-none",
|
|
1322
|
+
full: "hawa-rounded-full",
|
|
1323
|
+
inherit: "hawa-rounded"
|
|
1324
|
+
};
|
|
1325
|
+
const thumbRoundednessStyles = {
|
|
1326
|
+
none: "hawa-rounded-none",
|
|
1327
|
+
full: "hawa-rounded-full",
|
|
1328
|
+
inherit: "hawa-rounded-inner"
|
|
1329
|
+
};
|
|
1330
|
+
return /* @__PURE__ */ React20.createElement(
|
|
1331
|
+
"div",
|
|
1332
|
+
{
|
|
1333
|
+
className: "hawa-flex hawa-flex-row hawa-items-center",
|
|
1334
|
+
ref: parentRef
|
|
1335
|
+
},
|
|
1336
|
+
/* @__PURE__ */ React20.createElement(
|
|
1337
|
+
SwitchPrimitives.Root,
|
|
1338
|
+
{
|
|
1339
|
+
className: cn(
|
|
1340
|
+
"data-[state=unchecked]:hawa-bg-primary/20",
|
|
1341
|
+
"data-[state=checked]:hawa-bg-primary",
|
|
1342
|
+
"hawa-relative hawa-cursor-pointer hawa-rounded hawa-outline-none",
|
|
1343
|
+
rootRoundednessStyles[roundedness],
|
|
1344
|
+
className,
|
|
1345
|
+
rootSize[size]
|
|
1346
|
+
),
|
|
1347
|
+
...props,
|
|
1348
|
+
ref
|
|
1349
|
+
},
|
|
1350
|
+
/* @__PURE__ */ React20.createElement(
|
|
1351
|
+
SwitchPrimitives.Thumb,
|
|
1352
|
+
{
|
|
1353
|
+
className: cn(
|
|
1354
|
+
thumbSize[size],
|
|
1355
|
+
"hawa-block hawa-rounded hawa-transition-transform hawa-duration-100 hawa-will-change-transform",
|
|
1356
|
+
"data-[state=checked]:hawa-bg-primary-foreground",
|
|
1357
|
+
"hawa-bg-white dark:hawa-bg-background",
|
|
1358
|
+
thumbRoundednessStyles[roundedness],
|
|
1359
|
+
parentDirection === "rtl" ? "hawa--translate-x-0.5 data-[state=checked]:hawa--translate-x-[19px]" : "hawa-translate-x-0.5 data-[state=checked]:hawa-translate-x-[19px]"
|
|
1360
|
+
)
|
|
1361
|
+
}
|
|
1362
|
+
)
|
|
1363
|
+
),
|
|
1364
|
+
label && /* @__PURE__ */ React20.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
|
|
1365
|
+
);
|
|
1366
|
+
}
|
|
1367
|
+
);
|
|
1368
|
+
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
1369
|
+
|
|
1370
|
+
// components/elements/progress/Progress.tsx
|
|
1371
|
+
import * as React21 from "react";
|
|
1372
|
+
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
1373
|
+
var Progress = React21.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React21.createElement(
|
|
1374
|
+
ProgressPrimitive.Root,
|
|
1375
|
+
{
|
|
1376
|
+
ref,
|
|
1377
|
+
className: cn(
|
|
1378
|
+
"hawa-relative hawa-h-4 hawa-w-full hawa-overflow-hidden hawa-rounded hawa-bg-secondary",
|
|
1379
|
+
className
|
|
1380
|
+
),
|
|
1381
|
+
...props
|
|
1382
|
+
},
|
|
1383
|
+
/* @__PURE__ */ React21.createElement(
|
|
1384
|
+
ProgressPrimitive.Indicator,
|
|
1385
|
+
{
|
|
1386
|
+
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
|
1387
|
+
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
1388
|
+
}
|
|
1389
|
+
)
|
|
1390
|
+
));
|
|
1391
|
+
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
1392
|
+
|
|
1393
|
+
// components/elements/breadcrumb/Breadcrumb.tsx
|
|
1394
|
+
import React22 from "react";
|
|
1395
|
+
|
|
1396
|
+
// components/elements/appStores/AppStores.tsx
|
|
1397
|
+
import React23 from "react";
|
|
1398
|
+
|
|
1399
|
+
// components/elements/badge/Badge.tsx
|
|
1400
|
+
import React24, { useEffect as useEffect6, useState as useState9, useRef as useRef5 } from "react";
|
|
1401
|
+
|
|
1402
|
+
// components/elements/ProgressCircle.tsx
|
|
1403
|
+
import React25 from "react";
|
|
1404
|
+
var size2config = {
|
|
1405
|
+
xs: {
|
|
1406
|
+
radius: 15,
|
|
1407
|
+
strokeWidth: 3
|
|
1408
|
+
},
|
|
1409
|
+
sm: {
|
|
1410
|
+
radius: 19,
|
|
1411
|
+
strokeWidth: 4
|
|
1412
|
+
},
|
|
1413
|
+
md: {
|
|
1414
|
+
radius: 32,
|
|
1415
|
+
strokeWidth: 6
|
|
1416
|
+
},
|
|
1417
|
+
lg: {
|
|
1418
|
+
radius: 52,
|
|
1419
|
+
strokeWidth: 8
|
|
1420
|
+
},
|
|
1421
|
+
xl: {
|
|
1422
|
+
radius: 80,
|
|
1423
|
+
strokeWidth: 10
|
|
1424
|
+
}
|
|
1425
|
+
};
|
|
1426
|
+
function getLimitedValue(input) {
|
|
1427
|
+
if (input === void 0) {
|
|
1428
|
+
return 0;
|
|
1429
|
+
} else if (input > 100) {
|
|
1430
|
+
return 100;
|
|
1431
|
+
} else {
|
|
1432
|
+
return input;
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
var ProgressCircle = React25.forwardRef((props, ref) => {
|
|
1436
|
+
const {
|
|
1437
|
+
value: inputValue,
|
|
1438
|
+
size = "md",
|
|
1439
|
+
className,
|
|
1440
|
+
showAnimation = true,
|
|
1441
|
+
color,
|
|
1442
|
+
tooltip,
|
|
1443
|
+
radius: inputRadius,
|
|
1444
|
+
strokeWidth: inputStrokeWidth,
|
|
1445
|
+
children,
|
|
1446
|
+
...other
|
|
1447
|
+
} = props;
|
|
1448
|
+
const value = getLimitedValue(inputValue);
|
|
1449
|
+
const radius = inputRadius != null ? inputRadius : size2config[size].radius;
|
|
1450
|
+
const strokeWidth = inputStrokeWidth != null ? inputStrokeWidth : size2config[size].strokeWidth;
|
|
1451
|
+
const normalizedRadius = radius - strokeWidth / 2;
|
|
1452
|
+
const circumference = normalizedRadius * 2 * Math.PI;
|
|
1453
|
+
const strokeDashoffset = value / 100 * circumference;
|
|
1454
|
+
const offset = circumference - strokeDashoffset;
|
|
1455
|
+
return /* @__PURE__ */ React25.createElement(React25.Fragment, null, /* @__PURE__ */ React25.createElement(
|
|
1456
|
+
"div",
|
|
1457
|
+
{
|
|
1458
|
+
ref,
|
|
1459
|
+
className: cn(
|
|
1460
|
+
"hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
|
|
1461
|
+
className
|
|
1462
|
+
)
|
|
1463
|
+
},
|
|
1464
|
+
/* @__PURE__ */ React25.createElement(
|
|
1465
|
+
"svg",
|
|
1466
|
+
{
|
|
1467
|
+
width: radius * 2,
|
|
1468
|
+
height: radius * 2,
|
|
1469
|
+
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
|
1470
|
+
className: "hawa-rotate-180 hawa-transform"
|
|
1471
|
+
},
|
|
1472
|
+
/* @__PURE__ */ React25.createElement(
|
|
1473
|
+
"circle",
|
|
1474
|
+
{
|
|
1475
|
+
r: normalizedRadius,
|
|
1476
|
+
cx: radius,
|
|
1477
|
+
cy: radius,
|
|
1478
|
+
strokeWidth,
|
|
1479
|
+
fill: "transparent",
|
|
1480
|
+
stroke: "",
|
|
1481
|
+
strokeLinecap: "round",
|
|
1482
|
+
className: cn(
|
|
1483
|
+
"hawa-transition-colors hawa-ease-linear",
|
|
1484
|
+
" hawa-stroke-primary/20"
|
|
1485
|
+
)
|
|
1486
|
+
}
|
|
1487
|
+
),
|
|
1488
|
+
value > 0 ? /* @__PURE__ */ React25.createElement(
|
|
1489
|
+
"circle",
|
|
1490
|
+
{
|
|
1491
|
+
r: normalizedRadius,
|
|
1492
|
+
cx: radius,
|
|
1493
|
+
cy: radius,
|
|
1494
|
+
strokeWidth,
|
|
1495
|
+
strokeDasharray: circumference + " " + circumference,
|
|
1496
|
+
strokeDashoffset: offset,
|
|
1497
|
+
fill: "transparent",
|
|
1498
|
+
stroke: "",
|
|
1499
|
+
strokeLinecap: "round",
|
|
1500
|
+
className: cn(
|
|
1501
|
+
"hawa-transition-colors hawa-ease-linear",
|
|
1502
|
+
"hawa-stroke-primary",
|
|
1503
|
+
showAnimation ? "hawa-transition-all hawa-duration-300 hawa-ease-in-out" : ""
|
|
1504
|
+
)
|
|
1505
|
+
}
|
|
1506
|
+
) : null
|
|
1507
|
+
),
|
|
1508
|
+
/* @__PURE__ */ React25.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
|
1509
|
+
));
|
|
1510
|
+
});
|
|
1511
|
+
ProgressCircle.displayName = "ProgressCircle";
|
|
1512
|
+
|
|
1513
|
+
// components/elements/Pagination.tsx
|
|
1514
|
+
import React26 from "react";
|
|
1515
|
+
import { Pagination as PaginationPrimitive } from "react-headless-pagination";
|
|
1516
|
+
|
|
1517
|
+
// components/elements/PasswordInput.tsx
|
|
1518
|
+
import React27, { useEffect as useEffect7, useState as useState10 } from "react";
|
|
1519
|
+
|
|
1520
|
+
// components/elements/Slider.tsx
|
|
1521
|
+
import * as React28 from "react";
|
|
1522
|
+
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
1523
|
+
var Slider = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React28.createElement(
|
|
1524
|
+
SliderPrimitive.Root,
|
|
1525
|
+
{
|
|
1526
|
+
ref,
|
|
1527
|
+
className: cn(
|
|
1528
|
+
"hawa-relative hawa-flex hawa-w-full hawa-touch-none hawa-select-none hawa-items-center",
|
|
1529
|
+
className
|
|
1530
|
+
),
|
|
1531
|
+
...props
|
|
1532
|
+
},
|
|
1533
|
+
/* @__PURE__ */ React28.createElement(SliderPrimitive.Track, { className: "hawa-relative hawa-h-2 hawa-w-full hawa-grow hawa-overflow-hidden hawa-rounded-full hawa-border hawa-bg-background" }, /* @__PURE__ */ React28.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
|
|
1534
|
+
/* @__PURE__ */ React28.createElement(SliderPrimitive.Thumb, { className: "hawa-block hawa-h-5 hawa-w-5 hawa-rounded-full hawa-border-2 hawa-border-primary hawa-bg-background 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" })
|
|
1535
|
+
));
|
|
1536
|
+
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
1537
|
+
|
|
1538
|
+
// components/elements/SimpleTable.tsx
|
|
1539
|
+
import * as React29 from "react";
|
|
1540
|
+
import {
|
|
1541
|
+
flexRender as flexRender2,
|
|
1542
|
+
getCoreRowModel as getCoreRowModel2,
|
|
1543
|
+
useReactTable as useReactTable2
|
|
1544
|
+
} from "@tanstack/react-table";
|
|
1545
|
+
|
|
1546
|
+
// components/elements/Separator.tsx
|
|
1547
|
+
import * as React30 from "react";
|
|
1548
|
+
var Separator2 = ({
|
|
1549
|
+
className,
|
|
1550
|
+
orientation = "horizontal",
|
|
1551
|
+
...props
|
|
1552
|
+
}) => /* @__PURE__ */ React30.createElement(
|
|
1553
|
+
"div",
|
|
1554
|
+
{
|
|
1555
|
+
className: cn(
|
|
1556
|
+
"hawa-shrink-0 hawa-bg-border",
|
|
1557
|
+
orientation === "horizontal" ? "hawa-h-[1px] hawa-w-full" : "hawa-h-full hawa-w-[1px]",
|
|
1558
|
+
className
|
|
1559
|
+
),
|
|
1560
|
+
...props
|
|
1561
|
+
}
|
|
1562
|
+
);
|
|
1563
|
+
|
|
1564
|
+
// components/elements/ScrollIndicator.tsx
|
|
1565
|
+
import React31, { useState as useState11, useEffect as useEffect8 } from "react";
|
|
1566
|
+
|
|
1567
|
+
// components/elements/ColorPicker.tsx
|
|
1568
|
+
import React32, {
|
|
1569
|
+
useState as useState12,
|
|
1570
|
+
useEffect as useEffect9
|
|
1571
|
+
} from "react";
|
|
1572
|
+
|
|
1573
|
+
// components/elements/CodeBlock.tsx
|
|
1574
|
+
import React33, { useState as useState14 } from "react";
|
|
1575
|
+
import { Highlight, themes } from "prism-react-renderer";
|
|
1576
|
+
|
|
1577
|
+
// components/hooks/useClipboard.ts
|
|
1578
|
+
import { useState as useState13 } from "react";
|
|
1579
|
+
|
|
1580
|
+
// components/elements/Carousel.tsx
|
|
1581
|
+
import React34, { useEffect as useEffect11, useState as useState15 } from "react";
|
|
1582
|
+
import useEmblaCarousel from "embla-carousel-react";
|
|
1583
|
+
|
|
1584
|
+
// components/elements/Count.tsx
|
|
1585
|
+
import React35 from "react";
|
|
1586
|
+
|
|
1587
|
+
// components/elements/Toast.tsx
|
|
1588
|
+
import * as React36 from "react";
|
|
1589
|
+
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
1590
|
+
import { cva as cva3 } from "class-variance-authority";
|
|
1591
|
+
var toastVariants = cva3(
|
|
1592
|
+
"hawa-group hawa-z-[900] hawa-pointer-events-auto hawa-relative hawa-flex hawa-w-full hawa-items-center hawa-justify-between hawa-space-x-4 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",
|
|
1593
|
+
{
|
|
1594
|
+
variants: {
|
|
1595
|
+
variant: {
|
|
1596
|
+
default: "hawa-border hawa-bg-background hawa-text-foreground",
|
|
1597
|
+
destructive: "hawa-destructive hawa-group hawa-border-destructive hawa-bg-destructive hawa-text-destructive-foreground"
|
|
1598
|
+
},
|
|
1599
|
+
severity: {
|
|
1600
|
+
info: "hawa-info hawa-group hawa-text-info-foreground hawa-bg-info",
|
|
1601
|
+
warning: "hawa-warning hawa-group hawa-text-warning-foreground hawa-bg-warning",
|
|
1602
|
+
error: "hawa-error hawa-group hawa-border-error hawa-bg-error hawa-text-white",
|
|
1603
|
+
success: "hawa-success hawa-group hawa-text-success-foreground hawa-bg-success",
|
|
1604
|
+
none: ""
|
|
1605
|
+
}
|
|
1606
|
+
},
|
|
1607
|
+
defaultVariants: {
|
|
1608
|
+
variant: "default"
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
);
|
|
1612
|
+
var ToastViewport = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React36.createElement(
|
|
1613
|
+
ToastPrimitives.Viewport,
|
|
1614
|
+
{
|
|
1615
|
+
ref,
|
|
1616
|
+
className: cn(
|
|
1617
|
+
"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]",
|
|
1618
|
+
className
|
|
1619
|
+
),
|
|
1620
|
+
...props
|
|
1621
|
+
}
|
|
1622
|
+
));
|
|
1623
|
+
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
1624
|
+
var Toast = React36.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
|
1625
|
+
return /* @__PURE__ */ React36.createElement(
|
|
1626
|
+
ToastPrimitives.Root,
|
|
1627
|
+
{
|
|
1628
|
+
ref,
|
|
1629
|
+
className: cn(
|
|
1630
|
+
toastVariants({ variant, severity }),
|
|
1631
|
+
className,
|
|
1632
|
+
direction === "rtl" ? "hawa-p-6 hawa-pl-0 hawa-pr-10 data-[state=closed]:hawa-slide-out-to-left-full" : "hawa-p-6 hawa-pr-8 data-[state=closed]:hawa-slide-out-to-right-full"
|
|
1633
|
+
),
|
|
1634
|
+
dir: direction,
|
|
1635
|
+
...props
|
|
1636
|
+
}
|
|
1637
|
+
);
|
|
1638
|
+
});
|
|
1639
|
+
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
1640
|
+
var ToastAction = React36.forwardRef(({ className, ...props }, ref) => {
|
|
1641
|
+
return /* @__PURE__ */ React36.createElement(
|
|
1642
|
+
ToastPrimitives.Action,
|
|
1643
|
+
{
|
|
1644
|
+
ref,
|
|
1645
|
+
className: cn(
|
|
1646
|
+
"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",
|
|
1647
|
+
"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",
|
|
1648
|
+
"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",
|
|
1649
|
+
"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",
|
|
1650
|
+
"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",
|
|
1651
|
+
className
|
|
1652
|
+
),
|
|
1653
|
+
...props
|
|
1654
|
+
}
|
|
1655
|
+
);
|
|
1656
|
+
});
|
|
1657
|
+
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
1658
|
+
var ToastClose = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React36.createElement(
|
|
1659
|
+
ToastPrimitives.Close,
|
|
1660
|
+
{
|
|
1661
|
+
ref,
|
|
1662
|
+
className: cn(
|
|
1663
|
+
"hawa-absolute hawa-right-2 hawa-top-2 hawa-rounded-md hawa-p-1 hawa-text-foreground/50 hawa-opacity-0 hawa-transition-opacity hover:hawa-text-foreground focus:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 group-hover:hawa-opacity-100 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",
|
|
1664
|
+
className
|
|
1665
|
+
),
|
|
1666
|
+
"toast-close": "",
|
|
1667
|
+
...props
|
|
1668
|
+
},
|
|
1669
|
+
/* @__PURE__ */ React36.createElement(
|
|
1670
|
+
"svg",
|
|
1671
|
+
{
|
|
1672
|
+
"aria-label": "Close Icon",
|
|
1673
|
+
"aria-hidden": "true",
|
|
1674
|
+
className: "hawa-icon",
|
|
1675
|
+
fill: "currentColor",
|
|
1676
|
+
viewBox: "0 0 20 20"
|
|
1677
|
+
},
|
|
1678
|
+
/* @__PURE__ */ React36.createElement(
|
|
1679
|
+
"path",
|
|
1680
|
+
{
|
|
1681
|
+
fillRule: "evenodd",
|
|
1682
|
+
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",
|
|
1683
|
+
clipRule: "evenodd"
|
|
1684
|
+
}
|
|
1685
|
+
)
|
|
1686
|
+
)
|
|
1687
|
+
));
|
|
1688
|
+
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
1689
|
+
var ToastTitle = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React36.createElement(
|
|
1690
|
+
ToastPrimitives.Title,
|
|
1691
|
+
{
|
|
1692
|
+
ref,
|
|
1693
|
+
className: cn(
|
|
1694
|
+
"hawa-select-text hawa-text-sm hawa-font-semibold",
|
|
1695
|
+
className
|
|
1696
|
+
),
|
|
1697
|
+
...props
|
|
1698
|
+
}
|
|
1699
|
+
));
|
|
1700
|
+
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
1701
|
+
var ToastDescription = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React36.createElement(
|
|
1702
|
+
ToastPrimitives.Description,
|
|
1703
|
+
{
|
|
1704
|
+
ref,
|
|
1705
|
+
className: cn("hawa-select-text hawa-text-sm hawa-opacity-90", className),
|
|
1706
|
+
...props
|
|
1707
|
+
}
|
|
1708
|
+
));
|
|
1709
|
+
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
1710
|
+
|
|
1711
|
+
// components/elements/Toaster.tsx
|
|
1712
|
+
import React38 from "react";
|
|
1713
|
+
|
|
1714
|
+
// components/hooks/useToast.ts
|
|
1715
|
+
import * as React37 from "react";
|
|
1716
|
+
|
|
1717
|
+
// components/elements/DestroyableCard.tsx
|
|
1718
|
+
import React39, { useRef as useRef6, useState as useState17 } from "react";
|
|
1719
|
+
|
|
1720
|
+
// components/elements/InterfaceSettings.tsx
|
|
1721
|
+
import React40, { useState as useState18 } from "react";
|
|
1722
|
+
|
|
1723
|
+
// components/blocks/cards/PricingCard.tsx
|
|
1724
|
+
var PricingCard = ({
|
|
1725
|
+
size = "medium",
|
|
1726
|
+
direction = "ltr",
|
|
1727
|
+
endButton = true,
|
|
1728
|
+
recommended,
|
|
1729
|
+
currentPlan = false,
|
|
1730
|
+
...props
|
|
1731
|
+
}) => {
|
|
1732
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
1733
|
+
let cardSizes = {
|
|
1734
|
+
small: "hawa-w-full hawa-max-w-sm hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
|
1735
|
+
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
|
1736
|
+
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
|
1737
|
+
};
|
|
1738
|
+
return /* @__PURE__ */ React41.createElement(
|
|
1739
|
+
Card,
|
|
1740
|
+
{
|
|
1741
|
+
dir: direction,
|
|
1742
|
+
className: cn(
|
|
1743
|
+
currentPlan ? "hawa-border-2 hawa-border-primary dark:hawa-border-primary/70 " : "hawa-border",
|
|
1744
|
+
cardSizes[size],
|
|
1745
|
+
"hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-gap-4 hawa-p-4",
|
|
1746
|
+
recommended ? "hawa-rounded hawa-rounded-t-none" : "hawa-rounded"
|
|
1747
|
+
)
|
|
1748
|
+
},
|
|
1749
|
+
recommended && /* @__PURE__ */ React41.createElement(
|
|
1750
|
+
"div",
|
|
1751
|
+
{
|
|
1752
|
+
className: "hawa-absolute -hawa-left-[1px] hawa-top-0 -hawa-translate-y-full hawa-rounded-t hawa-border hawa-bg-primary hawa-p-2 hawa-text-center hawa-text-primary-foreground",
|
|
1753
|
+
style: { width: "calc(100% + 2px)" }
|
|
1754
|
+
},
|
|
1755
|
+
((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
|
|
1756
|
+
),
|
|
1757
|
+
/* @__PURE__ */ React41.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ React41.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ React41.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ React41.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, (_c = props.texts) == null ? void 0 : _c.subtitle), props.discount && /* @__PURE__ */ React41.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ React41.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ React41.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.isLoading ? /* @__PURE__ */ React41.createElement(Skeleton, { className: "hawa-h-[48px] hawa-w-full hawa-max-w-[200px] hawa-p-0 " }) : /* @__PURE__ */ React41.createElement(React41.Fragment, null, props.noPrice ? /* @__PURE__ */ React41.createElement("div", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, ((_d = props.texts) == null ? void 0 : _d.priceless) || "Contact Us") : /* @__PURE__ */ React41.createElement(React41.Fragment, null, /* @__PURE__ */ React41.createElement(React41.Fragment, null, /* @__PURE__ */ React41.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-end hawa-gap-2" }, props.oldPrice && props.oldPrice > 0 && /* @__PURE__ */ React41.createElement("span", { className: "hawa-line-through hawa-opacity-70" }, props.oldPrice + " " + ((_e = props.texts) == null ? void 0 : _e.currencyText)), /* @__PURE__ */ React41.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price)), /* @__PURE__ */ React41.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, (_f = props.texts) == null ? void 0 : _f.currencyText)), /* @__PURE__ */ React41.createElement("span", { className: "hawa-ml-1 hawa-whitespace-nowrap hawa-text-xl hawa-font-normal hawa-text-primary/70" }, "/ ", (_g = props.texts) == null ? void 0 : _g.cycleText)))), endButton && /* @__PURE__ */ React41.createElement(Separator2, null), /* @__PURE__ */ React41.createElement(
|
|
1758
|
+
"div",
|
|
1759
|
+
{
|
|
1760
|
+
className: cn(
|
|
1761
|
+
"hawa-flex hawa-h-full hawa-justify-between hawa-gap-4",
|
|
1762
|
+
endButton ? "hawa-flex-col" : "hawa-flex-col-reverse"
|
|
1763
|
+
)
|
|
1764
|
+
},
|
|
1765
|
+
props.features && /* @__PURE__ */ React41.createElement("ul", { role: "list", className: "hawa-space-y-0 hawa-overflow-x-auto" }, (_h = props.features) == null ? void 0 : _h.map((feature, o) => {
|
|
1766
|
+
return /* @__PURE__ */ React41.createElement(
|
|
1767
|
+
"li",
|
|
1768
|
+
{
|
|
1769
|
+
key: o,
|
|
1770
|
+
className: cn(
|
|
1771
|
+
"hawa-flex hawa-flex-row hawa-justify-between hawa-gap-2",
|
|
1772
|
+
!feature.included && "hawa-line-through"
|
|
1773
|
+
)
|
|
1774
|
+
},
|
|
1775
|
+
/* @__PURE__ */ React41.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center" }, feature.included ? /* @__PURE__ */ React41.createElement(
|
|
1776
|
+
"svg",
|
|
1777
|
+
{
|
|
1778
|
+
"aria-label": "Check Icon",
|
|
1779
|
+
"aria-hidden": "true",
|
|
1780
|
+
className: "hawa-m-2 hawa-h-5 hawa-w-5 hawa-flex-shrink-0 hawa-text-primary",
|
|
1781
|
+
fill: "currentColor",
|
|
1782
|
+
viewBox: "0 0 20 20"
|
|
1783
|
+
},
|
|
1784
|
+
/* @__PURE__ */ React41.createElement(
|
|
1785
|
+
"path",
|
|
1786
|
+
{
|
|
1787
|
+
fillRule: "evenodd",
|
|
1788
|
+
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
1789
|
+
clipRule: "evenodd"
|
|
1790
|
+
}
|
|
1791
|
+
)
|
|
1792
|
+
) : /* @__PURE__ */ React41.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ React41.createElement("span", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-whitespace-nowrap hawa-text-start hawa-font-normal hawa-leading-tight hawa-text-primary/70 " }, feature.text, " ", feature.soon && feature.included && /* @__PURE__ */ React41.createElement(Chip, { label: "soon", color: "oceanic", size: "small" }))),
|
|
1793
|
+
feature.hint && /* @__PURE__ */ React41.createElement(Tooltip, { content: feature.hint, side: feature.hintSide }, /* @__PURE__ */ React41.createElement(
|
|
1794
|
+
"svg",
|
|
1795
|
+
{
|
|
1796
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1797
|
+
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
|
1798
|
+
viewBox: "0 0 24 24",
|
|
1799
|
+
fill: "none",
|
|
1800
|
+
stroke: "currentColor",
|
|
1801
|
+
strokeWidth: "2",
|
|
1802
|
+
strokeLinecap: "round",
|
|
1803
|
+
strokeLinejoin: "round"
|
|
1804
|
+
},
|
|
1805
|
+
/* @__PURE__ */ React41.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1806
|
+
/* @__PURE__ */ React41.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
|
1807
|
+
/* @__PURE__ */ React41.createElement("path", { d: "M12 17h.01" })
|
|
1808
|
+
))
|
|
1809
|
+
);
|
|
1810
|
+
})),
|
|
1811
|
+
/* @__PURE__ */ React41.createElement(
|
|
1812
|
+
Button,
|
|
1813
|
+
{
|
|
1814
|
+
onClick: props.onPlanClicked,
|
|
1815
|
+
disabled: currentPlan,
|
|
1816
|
+
className: "hawa-w-full"
|
|
1817
|
+
},
|
|
1818
|
+
(_i = props.texts) == null ? void 0 : _i.buttonText
|
|
1819
|
+
)
|
|
1820
|
+
))
|
|
1821
|
+
);
|
|
1822
|
+
};
|
|
1823
|
+
|
|
1824
|
+
// components/blocks/cards/ItemCard.tsx
|
|
1825
|
+
import React42, { useEffect as useEffect13, useState as useState19 } from "react";
|
|
1826
|
+
|
|
1827
|
+
// components/blocks/cards/LandingCard.tsx
|
|
1828
|
+
import React43 from "react";
|
|
12
1829
|
|
|
13
1830
|
// components/blocks/pricing/PricingPlans.tsx
|
|
14
|
-
import React from "react";
|
|
15
1831
|
var PricingPlans = ({
|
|
16
1832
|
mainContainerProps,
|
|
17
1833
|
cardsContainerProps,
|
|
18
1834
|
...props
|
|
19
1835
|
}) => {
|
|
20
|
-
return /* @__PURE__ */
|
|
1836
|
+
return /* @__PURE__ */ React44.createElement("div", { ...mainContainerProps }, /* @__PURE__ */ React44.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ React44.createElement(
|
|
21
1837
|
Radio,
|
|
22
1838
|
{
|
|
23
1839
|
design: "tabs",
|
|
@@ -29,7 +1845,7 @@ var PricingPlans = ({
|
|
|
29
1845
|
}
|
|
30
1846
|
}
|
|
31
1847
|
}
|
|
32
|
-
), /* @__PURE__ */
|
|
1848
|
+
), /* @__PURE__ */ React44.createElement(
|
|
33
1849
|
Radio,
|
|
34
1850
|
{
|
|
35
1851
|
design: "tabs",
|
|
@@ -41,7 +1857,7 @@ var PricingPlans = ({
|
|
|
41
1857
|
}
|
|
42
1858
|
}
|
|
43
1859
|
}
|
|
44
|
-
)), /* @__PURE__ */
|
|
1860
|
+
)), /* @__PURE__ */ React44.createElement(
|
|
45
1861
|
"div",
|
|
46
1862
|
{
|
|
47
1863
|
className: "hawa-inline-grid hawa-w-full hawa-grid-cols-[repeat(auto-fit,_minmax(300px,_1fr))] hawa-gap-4",
|
|
@@ -49,7 +1865,7 @@ var PricingPlans = ({
|
|
|
49
1865
|
},
|
|
50
1866
|
props.plans.map((plan, index) => {
|
|
51
1867
|
var _a, _b;
|
|
52
|
-
return /* @__PURE__ */
|
|
1868
|
+
return /* @__PURE__ */ React44.createElement(
|
|
53
1869
|
PricingCard,
|
|
54
1870
|
{
|
|
55
1871
|
key: index,
|
|
@@ -79,7 +1895,7 @@ var PricingPlans = ({
|
|
|
79
1895
|
};
|
|
80
1896
|
|
|
81
1897
|
// components/blocks/pricing/ComparingPlans.tsx
|
|
82
|
-
import
|
|
1898
|
+
import React45 from "react";
|
|
83
1899
|
var ComparingPlans = (props) => {
|
|
84
1900
|
const uniqueFeatures = Array.from(
|
|
85
1901
|
new Set(
|
|
@@ -88,7 +1904,7 @@ var ComparingPlans = (props) => {
|
|
|
88
1904
|
)
|
|
89
1905
|
)
|
|
90
1906
|
);
|
|
91
|
-
return /* @__PURE__ */
|
|
1907
|
+
return /* @__PURE__ */ React45.createElement("div", { id: "detailed-pricing", className: "hawa-w-full" }, /* @__PURE__ */ React45.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-flex-col hawa-justify-between hawa-gap-2 sm:hawa-flex-row" }, /* @__PURE__ */ React45.createElement(
|
|
92
1908
|
Radio,
|
|
93
1909
|
{
|
|
94
1910
|
tabsContainerClassName: "hawa-w-full sm:hawa-max-w-fit",
|
|
@@ -102,7 +1918,7 @@ var ComparingPlans = (props) => {
|
|
|
102
1918
|
}
|
|
103
1919
|
}
|
|
104
1920
|
}
|
|
105
|
-
), /* @__PURE__ */
|
|
1921
|
+
), /* @__PURE__ */ React45.createElement(
|
|
106
1922
|
Radio,
|
|
107
1923
|
{
|
|
108
1924
|
tabsContainerClassName: "hawa-w-full sm:hawa-max-w-fit",
|
|
@@ -116,7 +1932,7 @@ var ComparingPlans = (props) => {
|
|
|
116
1932
|
}
|
|
117
1933
|
}
|
|
118
1934
|
}
|
|
119
|
-
)), /* @__PURE__ */
|
|
1935
|
+
)), /* @__PURE__ */ React45.createElement(
|
|
120
1936
|
"div",
|
|
121
1937
|
{
|
|
122
1938
|
className: cn(
|
|
@@ -127,16 +1943,16 @@ var ComparingPlans = (props) => {
|
|
|
127
1943
|
top: props.topPosition || 0
|
|
128
1944
|
}
|
|
129
1945
|
},
|
|
130
|
-
/* @__PURE__ */
|
|
131
|
-
props.plans.map((plan, i) => /* @__PURE__ */
|
|
1946
|
+
/* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-items-center" }),
|
|
1947
|
+
props.plans.map((plan, i) => /* @__PURE__ */ React45.createElement(
|
|
132
1948
|
"div",
|
|
133
1949
|
{
|
|
134
1950
|
key: i,
|
|
135
1951
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2"
|
|
136
1952
|
},
|
|
137
|
-
/* @__PURE__ */
|
|
1953
|
+
/* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-text-md hawa-font-bold " }, plan.texts.title), /* @__PURE__ */ React45.createElement("span", { className: "hawa-text-md hawa-font-normal hawa-text-muted-foreground " }, plan.texts.subtitle)), /* @__PURE__ */ React45.createElement("div", { className: " hawa-flex hawa-items-baseline " }, /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, plan.price), /* @__PURE__ */ React45.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, plan.texts.currencyText)), /* @__PURE__ */ React45.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-font-normal " }, "/ ", plan.texts.cycleText)))
|
|
138
1954
|
))
|
|
139
|
-
), /* @__PURE__ */
|
|
1955
|
+
), /* @__PURE__ */ React45.createElement(
|
|
140
1956
|
ScrollArea,
|
|
141
1957
|
{
|
|
142
1958
|
className: "hawa-h-fit hawa-rounded hawa-rounded-t-none hawa-border hawa-border-t-0 hawa-bg-background",
|
|
@@ -144,7 +1960,7 @@ var ComparingPlans = (props) => {
|
|
|
144
1960
|
},
|
|
145
1961
|
uniqueFeatures.map((featureText, featureIndex) => {
|
|
146
1962
|
var _a, _b, _c, _d;
|
|
147
|
-
return /* @__PURE__ */
|
|
1963
|
+
return /* @__PURE__ */ React45.createElement(
|
|
148
1964
|
"div",
|
|
149
1965
|
{
|
|
150
1966
|
key: featureIndex,
|
|
@@ -153,11 +1969,11 @@ var ComparingPlans = (props) => {
|
|
|
153
1969
|
featureIndex === 0 ? "" : "hawa-border-t"
|
|
154
1970
|
)
|
|
155
1971
|
},
|
|
156
|
-
/* @__PURE__ */
|
|
1972
|
+
/* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-foreground" }, featureText, props.plans.some(
|
|
157
1973
|
(plan) => plan.features.some(
|
|
158
1974
|
(feature) => feature.text === featureText && feature.hint
|
|
159
1975
|
)
|
|
160
|
-
) && /* @__PURE__ */
|
|
1976
|
+
) && /* @__PURE__ */ React45.createElement(
|
|
161
1977
|
Tooltip,
|
|
162
1978
|
{
|
|
163
1979
|
side: "right",
|
|
@@ -172,7 +1988,7 @@ var ComparingPlans = (props) => {
|
|
|
172
1988
|
(feature) => feature.text === featureText
|
|
173
1989
|
)) == null ? void 0 : _b.hint
|
|
174
1990
|
},
|
|
175
|
-
/* @__PURE__ */
|
|
1991
|
+
/* @__PURE__ */ React45.createElement(
|
|
176
1992
|
"svg",
|
|
177
1993
|
{
|
|
178
1994
|
stroke: "currentColor",
|
|
@@ -182,13 +1998,13 @@ var ComparingPlans = (props) => {
|
|
|
182
1998
|
height: "1em",
|
|
183
1999
|
width: "1em"
|
|
184
2000
|
},
|
|
185
|
-
/* @__PURE__ */
|
|
2001
|
+
/* @__PURE__ */ React45.createElement("path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" })
|
|
186
2002
|
)
|
|
187
2003
|
), props.plans.some(
|
|
188
2004
|
(plan) => plan.features.some(
|
|
189
2005
|
(feature) => feature.text === featureText && feature.soon
|
|
190
2006
|
)
|
|
191
|
-
) && /* @__PURE__ */
|
|
2007
|
+
) && /* @__PURE__ */ React45.createElement(
|
|
192
2008
|
Chip,
|
|
193
2009
|
{
|
|
194
2010
|
label: ((_d = (_c = props.plans.find(
|
|
@@ -202,26 +2018,26 @@ var ComparingPlans = (props) => {
|
|
|
202
2018
|
const feature = plan.features.find(
|
|
203
2019
|
(f) => f.text === featureText
|
|
204
2020
|
);
|
|
205
|
-
return /* @__PURE__ */
|
|
2021
|
+
return /* @__PURE__ */ React45.createElement(
|
|
206
2022
|
"div",
|
|
207
2023
|
{
|
|
208
2024
|
key: planIndex,
|
|
209
2025
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-text-center"
|
|
210
2026
|
},
|
|
211
|
-
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */
|
|
2027
|
+
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */ React45.createElement(CheckMark, { className: "hawa-text-foreground" }) : /* @__PURE__ */ React45.createElement(UncheckMark, { className: "hawa-text-foreground" })
|
|
212
2028
|
);
|
|
213
2029
|
})
|
|
214
2030
|
);
|
|
215
2031
|
})
|
|
216
|
-
), props.showButtons && /* @__PURE__ */
|
|
2032
|
+
), props.showButtons && /* @__PURE__ */ React45.createElement("div", { className: "hawa-grid hawa-grid-cols-[1fr_repeat(3,_minmax(0,_1fr))] hawa-gap-x-16 hawa-px-4 hawa-py-5" }, /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-items-center" }), props.plans.map((plan, i) => {
|
|
217
2033
|
var _a;
|
|
218
|
-
return /* @__PURE__ */
|
|
2034
|
+
return /* @__PURE__ */ React45.createElement(
|
|
219
2035
|
"div",
|
|
220
2036
|
{
|
|
221
2037
|
key: i,
|
|
222
2038
|
className: "hawa-flex hawa-items-center hawa-justify-center"
|
|
223
2039
|
},
|
|
224
|
-
/* @__PURE__ */
|
|
2040
|
+
/* @__PURE__ */ React45.createElement(
|
|
225
2041
|
Button,
|
|
226
2042
|
{
|
|
227
2043
|
className: "hawa-w-full hawa-max-w-xs",
|
|
@@ -245,29 +2061,29 @@ var ComparingPlans = (props) => {
|
|
|
245
2061
|
};
|
|
246
2062
|
|
|
247
2063
|
// components/blocks/pricing/HorizontalPricing.tsx
|
|
248
|
-
import
|
|
2064
|
+
import React46, { useState as useState20 } from "react";
|
|
249
2065
|
var HorizontalPricing = (props) => {
|
|
250
|
-
const [selectedCard, setSelectedCard] =
|
|
2066
|
+
const [selectedCard, setSelectedCard] = useState20("");
|
|
251
2067
|
let data = [
|
|
252
2068
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
|
253
2069
|
{ title: "business", price: "$99", cycle: "/mo" },
|
|
254
2070
|
{ title: "enterprise", price: "$149", cycle: "/mo" }
|
|
255
2071
|
];
|
|
256
|
-
return /* @__PURE__ */
|
|
2072
|
+
return /* @__PURE__ */ React46.createElement("div", { className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm" }, /* @__PURE__ */ React46.createElement("div", { className: "hawa-max-w-2xl " }, /* @__PURE__ */ React46.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ React46.createElement(
|
|
257
2073
|
Radio,
|
|
258
2074
|
{
|
|
259
2075
|
design: "tabs",
|
|
260
2076
|
options: props.currencies,
|
|
261
2077
|
defaultValue: props.currentCurrency
|
|
262
2078
|
}
|
|
263
|
-
), /* @__PURE__ */
|
|
2079
|
+
), /* @__PURE__ */ React46.createElement(
|
|
264
2080
|
Radio,
|
|
265
2081
|
{
|
|
266
2082
|
design: "tabs",
|
|
267
2083
|
options: props.billingCycles,
|
|
268
2084
|
defaultValue: props.currentCycle
|
|
269
2085
|
}
|
|
270
|
-
)), data.map((d, i) => /* @__PURE__ */
|
|
2086
|
+
)), data.map((d, i) => /* @__PURE__ */ React46.createElement(
|
|
271
2087
|
"label",
|
|
272
2088
|
{
|
|
273
2089
|
key: i,
|
|
@@ -275,7 +2091,7 @@ var HorizontalPricing = (props) => {
|
|
|
275
2091
|
className: "",
|
|
276
2092
|
onClick: () => setSelectedCard(d.title)
|
|
277
2093
|
},
|
|
278
|
-
/* @__PURE__ */
|
|
2094
|
+
/* @__PURE__ */ React46.createElement(
|
|
279
2095
|
"input",
|
|
280
2096
|
{
|
|
281
2097
|
type: "radio",
|
|
@@ -284,7 +2100,7 @@ var HorizontalPricing = (props) => {
|
|
|
284
2100
|
className: "hawa-peer hawa-appearance-none"
|
|
285
2101
|
}
|
|
286
2102
|
),
|
|
287
|
-
/* @__PURE__ */
|
|
2103
|
+
/* @__PURE__ */ React46.createElement(
|
|
288
2104
|
"div",
|
|
289
2105
|
{
|
|
290
2106
|
className: cn(
|
|
@@ -292,18 +2108,18 @@ var HorizontalPricing = (props) => {
|
|
|
292
2108
|
"hawa-peer hawa-flex hawa-cursor-pointer hawa-items-center hawa-justify-between hawa-rounded-xl hawa-border hawa-bg-background hawa-px-5 hawa-py-4 hawa-shadow dark:hawa-text-white peer-checked:[&_.active]:hawa-block peer-checked:[&_.default]:hawa-hidden"
|
|
293
2109
|
)
|
|
294
2110
|
},
|
|
295
|
-
/* @__PURE__ */
|
|
2111
|
+
/* @__PURE__ */ React46.createElement("div", { className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4" }, /* @__PURE__ */ React46.createElement(CheckIcons, null), /* @__PURE__ */ React46.createElement(
|
|
296
2112
|
CardText,
|
|
297
2113
|
{
|
|
298
2114
|
title: "Enterprise",
|
|
299
2115
|
subtitle: "For startups and new businesses"
|
|
300
2116
|
}
|
|
301
2117
|
)),
|
|
302
|
-
/* @__PURE__ */
|
|
2118
|
+
/* @__PURE__ */ React46.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
|
303
2119
|
)
|
|
304
2120
|
))));
|
|
305
2121
|
};
|
|
306
|
-
var CheckIcons = () => /* @__PURE__ */
|
|
2122
|
+
var CheckIcons = () => /* @__PURE__ */ React46.createElement(React46.Fragment, null, /* @__PURE__ */ React46.createElement(
|
|
307
2123
|
"svg",
|
|
308
2124
|
{
|
|
309
2125
|
fill: "none",
|
|
@@ -312,7 +2128,7 @@ var CheckIcons = () => /* @__PURE__ */ React3.createElement(React3.Fragment, nul
|
|
|
312
2128
|
stroke: "currentColor",
|
|
313
2129
|
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
|
314
2130
|
},
|
|
315
|
-
/* @__PURE__ */
|
|
2131
|
+
/* @__PURE__ */ React46.createElement(
|
|
316
2132
|
"path",
|
|
317
2133
|
{
|
|
318
2134
|
strokeLinecap: "round",
|
|
@@ -320,14 +2136,14 @@ var CheckIcons = () => /* @__PURE__ */ React3.createElement(React3.Fragment, nul
|
|
|
320
2136
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
321
2137
|
}
|
|
322
2138
|
)
|
|
323
|
-
), /* @__PURE__ */
|
|
2139
|
+
), /* @__PURE__ */ React46.createElement(
|
|
324
2140
|
"svg",
|
|
325
2141
|
{
|
|
326
2142
|
viewBox: "0 0 24 24",
|
|
327
2143
|
fill: "currentColor",
|
|
328
2144
|
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
|
329
2145
|
},
|
|
330
|
-
/* @__PURE__ */
|
|
2146
|
+
/* @__PURE__ */ React46.createElement(
|
|
331
2147
|
"path",
|
|
332
2148
|
{
|
|
333
2149
|
fillRule: "evenodd",
|
|
@@ -336,8 +2152,8 @@ var CheckIcons = () => /* @__PURE__ */ React3.createElement(React3.Fragment, nul
|
|
|
336
2152
|
}
|
|
337
2153
|
)
|
|
338
2154
|
));
|
|
339
|
-
var CardText = (props) => /* @__PURE__ */
|
|
340
|
-
var CardPrice = (props) => /* @__PURE__ */
|
|
2155
|
+
var CardText = (props) => /* @__PURE__ */ React46.createElement("div", { className: "hawa-peer hawa-flex hawa-flex-col hawa-items-start " }, /* @__PURE__ */ React46.createElement("h2", { className: "hawa-font-medium hawa-text-primary/90 sm:hawa-text-xl" }, props.title), /* @__PURE__ */ React46.createElement("p", { className: "hawa-text-sm hawa-text-primary/60" }, props.subtitle, " "));
|
|
2156
|
+
var CardPrice = (props) => /* @__PURE__ */ React46.createElement("h2", { className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-primary sm:hawa-text-2xl" }, props.amount, /* @__PURE__ */ React46.createElement("span", { className: "hawa-text-base hawa-font-medium hawa-text-neutral-400" }, props.cycle));
|
|
341
2157
|
export {
|
|
342
2158
|
ComparingPlans,
|
|
343
2159
|
HorizontalPricing,
|