@sikka/hawa 0.24.4-next → 0.24.6-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.d.mts +1 -2
- package/dist/accordion/index.d.ts +1 -2
- package/dist/accordion/index.mjs +219 -7
- package/dist/alert/index.d.mts +1 -1
- package/dist/alert/index.d.ts +1 -1
- package/dist/appLayout/index.d.mts +126 -0
- package/dist/appLayout/index.d.ts +126 -0
- package/dist/appLayout/index.js +1325 -0
- package/dist/appLayout/index.mjs +1285 -0
- package/dist/appMenubar/index.d.mts +33 -0
- package/dist/appMenubar/index.d.ts +33 -0
- package/dist/appMenubar/index.js +281 -0
- package/dist/appMenubar/index.mjs +224 -0
- package/dist/appTabs/index.d.mts +18 -0
- package/dist/appTabs/index.d.ts +18 -0
- package/dist/appTabs/index.js +92 -0
- package/dist/appTabs/index.mjs +50 -0
- package/dist/appTopbar/index.d.mts +44 -0
- package/dist/appTopbar/index.d.ts +44 -0
- package/dist/appTopbar/index.js +483 -0
- package/dist/appTopbar/index.mjs +441 -0
- package/dist/avatar/index.d.mts +5 -4
- package/dist/avatar/index.d.ts +5 -4
- package/dist/backToTop/index.mjs +353 -3
- package/dist/badge/index.d.mts +2 -2
- package/dist/badge/index.d.ts +2 -2
- package/dist/blocks/index.js +4 -3
- package/dist/blocks/index.mjs +4 -3
- package/dist/checkbox/index.d.mts +1 -2
- package/dist/checkbox/index.d.ts +1 -2
- package/dist/chip/index.d.mts +36 -2
- package/dist/chip/index.d.ts +36 -2
- package/dist/chip/index.mjs +83 -3
- package/dist/chunk-62GI5F2P.mjs +442 -0
- package/dist/chunk-7NCNPRCL.mjs +120 -0
- package/dist/{chunk-TNAHW35O.mjs → chunk-C2UYTGUD.mjs} +8 -4
- package/dist/{chunk-26FHSPJI.mjs → chunk-DGWAHQRX.mjs} +1 -101
- package/dist/chunk-LRLLDOQZ.mjs +178 -0
- package/dist/chunk-ND4BWUKH.mjs +34 -0
- package/dist/codeBlock/index.mjs +684 -310
- package/dist/colorPicker/index.d.mts +2 -1
- package/dist/colorPicker/index.d.ts +2 -1
- package/dist/colorPicker/index.mjs +2 -167
- package/dist/combobox/index.d.mts +9 -1
- package/dist/combobox/index.d.ts +9 -1
- package/dist/combobox/index.mjs +61 -393
- package/dist/command/index.mjs +10 -425
- package/dist/commonTypes-3J1E3b61.d.mts +6 -0
- package/dist/commonTypes-3J1E3b61.d.ts +6 -0
- package/dist/commonTypes-GhKAraJw.d.mts +4 -0
- package/dist/commonTypes-GhKAraJw.d.ts +4 -0
- package/dist/commonTypes-LrR8QrYP.d.mts +5 -0
- package/dist/commonTypes-LrR8QrYP.d.ts +5 -0
- package/dist/commonTypes-WPhcN3Vr.d.mts +5 -0
- package/dist/commonTypes-WPhcN3Vr.d.ts +5 -0
- package/dist/commonTypes-ko_NGEoT.d.mts +3 -0
- package/dist/commonTypes-ko_NGEoT.d.ts +3 -0
- package/dist/copyrights/index.d.mts +17 -0
- package/dist/copyrights/index.d.ts +17 -0
- package/dist/copyrights/index.js +45 -0
- package/dist/copyrights/index.mjs +8 -0
- package/dist/count/index.d.mts +11 -0
- package/dist/count/index.d.ts +11 -0
- package/dist/count/index.js +45 -0
- package/dist/count/index.mjs +8 -0
- package/dist/dataTable/index.d.mts +1 -1
- package/dist/dataTable/index.d.ts +1 -1
- package/dist/destroyableCard/index.d.mts +1 -1
- package/dist/destroyableCard/index.d.ts +1 -1
- package/dist/dialog/index.d.mts +1 -1
- package/dist/dialog/index.d.ts +1 -1
- package/dist/docsLayout/index.d.mts +37 -0
- package/dist/docsLayout/index.d.ts +37 -0
- package/dist/docsLayout/index.js +926 -0
- package/dist/docsLayout/index.mjs +886 -0
- package/dist/docsSidebar/index.d.mts +11 -0
- package/dist/docsSidebar/index.d.ts +11 -0
- package/dist/docsSidebar/index.js +111 -0
- package/dist/docsSidebar/index.mjs +69 -0
- package/dist/index.css +9 -3
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +54 -44
- package/dist/index.mjs +54 -44
- package/dist/input/index.d.mts +2 -9
- package/dist/input/index.d.ts +2 -9
- package/dist/input/index.mjs +14 -98
- package/dist/interfaceSettings/index.d.mts +1 -1
- package/dist/interfaceSettings/index.d.ts +1 -1
- package/dist/interfaceSettings/index.mjs +24 -110
- package/dist/label/index.d.mts +1 -1
- package/dist/label/index.d.ts +1 -1
- package/dist/label/index.mjs +2 -87
- package/dist/layout/index.d.mts +1 -0
- package/dist/layout/index.d.ts +1 -0
- package/dist/layout/index.js +53 -44
- package/dist/layout/index.mjs +50 -41
- package/dist/navbar/index.d.mts +17 -0
- package/dist/navbar/index.d.ts +17 -0
- package/dist/navbar/index.js +166 -0
- package/dist/navbar/index.mjs +126 -0
- package/dist/pagination/index.d.mts +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/passwordInput/index.mjs +27 -137
- package/dist/phoneInput/index.mjs +19 -129
- package/dist/radio/index.d.mts +1 -4
- package/dist/radio/index.d.ts +1 -4
- package/dist/scrollArea/index.d.mts +1 -1
- package/dist/scrollArea/index.d.ts +1 -1
- package/dist/select/index.d.mts +1 -1
- package/dist/select/index.d.ts +1 -1
- package/dist/separator/index.d.mts +1 -1
- package/dist/separator/index.d.ts +1 -1
- package/dist/sidebar/index.d.mts +48 -0
- package/dist/sidebar/index.d.ts +48 -0
- package/dist/sidebar/index.js +341 -0
- package/dist/sidebar/index.mjs +298 -0
- package/dist/simpleTable/index.d.mts +4 -3
- package/dist/simpleTable/index.d.ts +4 -3
- package/dist/simpleTable/index.mjs +21 -45
- package/dist/skeleton/index.d.mts +3 -3
- package/dist/skeleton/index.d.ts +3 -3
- package/dist/skeleton/index.mjs +3 -29
- package/dist/sortButton/index.mjs +9 -260
- package/dist/splitButton/index.d.mts +4 -3
- package/dist/splitButton/index.d.ts +4 -3
- package/dist/splitButton/index.mjs +10 -259
- package/dist/stats/index.d.mts +19 -0
- package/dist/stats/index.d.ts +19 -0
- package/dist/stats/index.js +191 -0
- package/dist/stats/index.mjs +154 -0
- package/dist/stopPropagationWrapper/index.d.mts +2 -2
- package/dist/stopPropagationWrapper/index.d.ts +2 -2
- package/dist/switch/index.d.mts +2 -1
- package/dist/switch/index.d.ts +2 -1
- package/dist/tabs/index.d.mts +19 -1
- package/dist/tabs/index.d.ts +19 -1
- package/dist/tabs/index.mjs +94 -14
- package/dist/textarea/index.d.mts +8 -1
- package/dist/textarea/index.d.ts +8 -1
- package/dist/textarea/index.mjs +92 -8
- package/dist/toast/index.d.mts +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/Label-fkQ4ebuH.d.mts +0 -12
- package/dist/Label-fkQ4ebuH.d.ts +0 -12
- package/dist/chunk-72HYR6WB.mjs +0 -88
- package/dist/chunk-JYSC6GKM.mjs +0 -229
- package/dist/commonTypes-3k5cNB1s.d.mts +0 -4
- package/dist/commonTypes-3k5cNB1s.d.ts +0 -4
- package/dist/commonTypes-N7XOVCit.d.mts +0 -5
- package/dist/commonTypes-N7XOVCit.d.ts +0 -5
- package/dist/index-DUZFcPRO.d.mts +0 -38
- package/dist/index-DUZFcPRO.d.ts +0 -38
package/dist/command/index.mjs
CHANGED
@@ -1,429 +1,14 @@
|
|
1
1
|
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
var Dialog = DialogPrimitive.Root;
|
13
|
-
var DialogPortal = ({ ...props }) => /* @__PURE__ */ React.createElement(DialogPrimitive.Portal, { ...props });
|
14
|
-
var DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
15
|
-
DialogPrimitive.Overlay,
|
16
|
-
{
|
17
|
-
ref,
|
18
|
-
className: cn(
|
19
|
-
"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",
|
20
|
-
className
|
21
|
-
),
|
22
|
-
...props
|
23
|
-
}
|
24
|
-
));
|
25
|
-
var DialogContent = React.forwardRef(({ className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React.createElement(DialogPortal, null, /* @__PURE__ */ React.createElement(DialogOverlay, null), /* @__PURE__ */ React.createElement(
|
26
|
-
DialogPrimitive.Content,
|
27
|
-
{
|
28
|
-
onPointerDownOutside: (e) => {
|
29
|
-
if (persist) {
|
30
|
-
e.preventDefault();
|
31
|
-
}
|
32
|
-
},
|
33
|
-
ref,
|
34
|
-
className: cn(
|
35
|
-
"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",
|
36
|
-
className
|
37
|
-
),
|
38
|
-
...props
|
39
|
-
},
|
40
|
-
children,
|
41
|
-
!hideCloseButton && /* @__PURE__ */ React.createElement(
|
42
|
-
DialogPrimitive.Close,
|
43
|
-
{
|
44
|
-
className: cn(
|
45
|
-
"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",
|
46
|
-
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
47
|
-
)
|
48
|
-
},
|
49
|
-
/* @__PURE__ */ React.createElement(
|
50
|
-
"svg",
|
51
|
-
{
|
52
|
-
"aria-label": "Close Icon",
|
53
|
-
"aria-hidden": "true",
|
54
|
-
className: "hawa-h-5 hawa-w-5",
|
55
|
-
fill: "currentColor",
|
56
|
-
viewBox: "0 0 20 20"
|
57
|
-
},
|
58
|
-
/* @__PURE__ */ React.createElement(
|
59
|
-
"path",
|
60
|
-
{
|
61
|
-
fillRule: "evenodd",
|
62
|
-
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",
|
63
|
-
clipRule: "evenodd"
|
64
|
-
}
|
65
|
-
)
|
66
|
-
),
|
67
|
-
/* @__PURE__ */ React.createElement("span", { className: "hawa-sr-only" }, "Close")
|
68
|
-
)
|
69
|
-
)));
|
70
|
-
var DialogCarouselContent = React.forwardRef(
|
71
|
-
({
|
72
|
-
className,
|
73
|
-
children,
|
74
|
-
onPrev,
|
75
|
-
persist,
|
76
|
-
hideCloseButton,
|
77
|
-
hidePrevButton,
|
78
|
-
...props
|
79
|
-
}, ref) => /* @__PURE__ */ React.createElement(DialogPortal, null, /* @__PURE__ */ React.createElement(DialogOverlay, null), /* @__PURE__ */ React.createElement(
|
80
|
-
DialogPrimitive.Content,
|
81
|
-
{
|
82
|
-
onPointerDownOutside: (e) => {
|
83
|
-
if (persist) {
|
84
|
-
e.preventDefault();
|
85
|
-
}
|
86
|
-
},
|
87
|
-
ref,
|
88
|
-
className: cn(
|
89
|
-
"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",
|
90
|
-
className
|
91
|
-
),
|
92
|
-
...props
|
93
|
-
},
|
94
|
-
children,
|
95
|
-
/* @__PURE__ */ React.createElement(
|
96
|
-
"div",
|
97
|
-
{
|
98
|
-
className: cn(
|
99
|
-
"hawa-absolute hawa-top-0 hawa-flex hawa-w-full hawa-flex-row hawa-p-4",
|
100
|
-
onPrev ? "hawa-justify-between" : "hawa-justify-end"
|
101
|
-
)
|
102
|
-
},
|
103
|
-
hidePrevButton ? /* @__PURE__ */ React.createElement("div", null) : /* @__PURE__ */ React.createElement(
|
104
|
-
"div",
|
105
|
-
{
|
106
|
-
onClick: onPrev,
|
107
|
-
className: cn(
|
108
|
-
"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",
|
109
|
-
props.dir === "rtl" && "hawa-rotate-180"
|
110
|
-
)
|
111
|
-
},
|
112
|
-
/* @__PURE__ */ React.createElement(
|
113
|
-
"svg",
|
114
|
-
{
|
115
|
-
xmlns: "http://www.w3.org/2000/svg",
|
116
|
-
width: "24",
|
117
|
-
height: "24",
|
118
|
-
viewBox: "0 0 24 24",
|
119
|
-
fill: "none",
|
120
|
-
className: "hawa-h-6 hawa-w-6",
|
121
|
-
stroke: "currentColor",
|
122
|
-
strokeWidth: "2",
|
123
|
-
strokeLinecap: "round",
|
124
|
-
strokeLinejoin: "round"
|
125
|
-
},
|
126
|
-
/* @__PURE__ */ React.createElement("path", { d: "m15 18-6-6 6-6" })
|
127
|
-
)
|
128
|
-
),
|
129
|
-
!hideCloseButton && /* @__PURE__ */ React.createElement(
|
130
|
-
DialogPrimitive.Close,
|
131
|
-
{
|
132
|
-
className: cn(
|
133
|
-
"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 ",
|
134
|
-
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
135
|
-
)
|
136
|
-
},
|
137
|
-
/* @__PURE__ */ React.createElement(
|
138
|
-
"svg",
|
139
|
-
{
|
140
|
-
"aria-label": "Close Icon",
|
141
|
-
"aria-hidden": "true",
|
142
|
-
className: "hawa-h-6 hawa-w-6",
|
143
|
-
fill: "currentColor",
|
144
|
-
viewBox: "0 0 20 20"
|
145
|
-
},
|
146
|
-
/* @__PURE__ */ React.createElement(
|
147
|
-
"path",
|
148
|
-
{
|
149
|
-
fillRule: "evenodd",
|
150
|
-
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",
|
151
|
-
clipRule: "evenodd"
|
152
|
-
}
|
153
|
-
)
|
154
|
-
),
|
155
|
-
/* @__PURE__ */ React.createElement("span", { className: "hawa-sr-only" }, "Close")
|
156
|
-
)
|
157
|
-
)
|
158
|
-
))
|
159
|
-
);
|
160
|
-
var DialogHeader = ({
|
161
|
-
className,
|
162
|
-
...props
|
163
|
-
}) => /* @__PURE__ */ React.createElement(
|
164
|
-
"div",
|
165
|
-
{
|
166
|
-
className: cn(
|
167
|
-
"hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-text-center sm:hawa-text-left",
|
168
|
-
className
|
169
|
-
),
|
170
|
-
...props
|
171
|
-
}
|
172
|
-
);
|
173
|
-
var DialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
174
|
-
DialogPrimitive.Title,
|
175
|
-
{
|
176
|
-
ref,
|
177
|
-
className: cn(
|
178
|
-
"hawa-text-start hawa-text-lg hawa-font-semibold hawa-leading-none hawa-tracking-tight",
|
179
|
-
className
|
180
|
-
),
|
181
|
-
...props
|
182
|
-
}
|
183
|
-
));
|
184
|
-
var DialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
185
|
-
DialogPrimitive.Description,
|
186
|
-
{
|
187
|
-
ref,
|
188
|
-
className: cn(
|
189
|
-
"hawa-text-start hawa-text-sm hawa-text-muted-foreground",
|
190
|
-
className
|
191
|
-
),
|
192
|
-
...props
|
193
|
-
}
|
194
|
-
));
|
195
|
-
var DialogFooter = ({
|
196
|
-
className,
|
197
|
-
...props
|
198
|
-
}) => /* @__PURE__ */ React.createElement(
|
199
|
-
"div",
|
200
|
-
{
|
201
|
-
className: cn(
|
202
|
-
"hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end sm:hawa-gap-2",
|
203
|
-
className
|
204
|
-
),
|
205
|
-
...props
|
206
|
-
}
|
207
|
-
);
|
208
|
-
var DialogCarousel = ({
|
209
|
-
stepsApi,
|
210
|
-
stepsRef,
|
211
|
-
children,
|
212
|
-
direction
|
213
|
-
}) => {
|
214
|
-
React.useEffect(() => {
|
215
|
-
if (stepsApi) {
|
216
|
-
stepsApi.reInit();
|
217
|
-
}
|
218
|
-
}, [stepsApi, children]);
|
219
|
-
return /* @__PURE__ */ React.createElement("div", { className: "hawa-overflow-hidden" }, /* @__PURE__ */ React.createElement("div", { ref: stepsRef, dir: direction }, /* @__PURE__ */ React.createElement(
|
220
|
-
"div",
|
221
|
-
{
|
222
|
-
className: "hawa-flex",
|
223
|
-
style: {
|
224
|
-
transition: "height 0.2s"
|
225
|
-
}
|
226
|
-
},
|
227
|
-
React.Children.map(children, (child, index) => /* @__PURE__ */ React.createElement(
|
228
|
-
"div",
|
229
|
-
{
|
230
|
-
className: cn(
|
231
|
-
"hawa-flex hawa-h-fit hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
|
232
|
-
),
|
233
|
-
key: index
|
234
|
-
},
|
235
|
-
child
|
236
|
-
))
|
237
|
-
)));
|
238
|
-
};
|
239
|
-
var DialogSteps = ({
|
240
|
-
currentStep,
|
241
|
-
visibleStepRef,
|
242
|
-
children
|
243
|
-
}) => {
|
244
|
-
const [dialogHeight, setDialogHeight] = React.useState(null);
|
245
|
-
React.useEffect(() => {
|
246
|
-
if (visibleStepRef.current) {
|
247
|
-
setDialogHeight(visibleStepRef.current.offsetHeight);
|
248
|
-
console.log("height is ", visibleStepRef.current.offsetHeight);
|
249
|
-
}
|
250
|
-
}, [currentStep, visibleStepRef]);
|
251
|
-
return /* @__PURE__ */ React.createElement(
|
252
|
-
"div",
|
253
|
-
{
|
254
|
-
className: "hawa-relative hawa-overflow-clip",
|
255
|
-
style: {
|
256
|
-
height: dialogHeight || "fit-content",
|
257
|
-
transition: "height 0.2s"
|
258
|
-
}
|
259
|
-
},
|
260
|
-
React.Children.map(children, (child, index) => /* @__PURE__ */ React.createElement(
|
261
|
-
"div",
|
262
|
-
{
|
263
|
-
ref: currentStep === `step-${index + 1}` ? visibleStepRef : null,
|
264
|
-
className: cn(
|
265
|
-
currentStep === `step-${index + 1}` ? "hawa-visible hawa-block" : "hawa-invisible hawa-hidden"
|
266
|
-
)
|
267
|
-
},
|
268
|
-
child
|
269
|
-
))
|
270
|
-
);
|
271
|
-
};
|
272
|
-
var DialogStep = ({
|
273
|
-
id,
|
274
|
-
children,
|
275
|
-
className,
|
276
|
-
stepRef
|
277
|
-
}) => {
|
278
|
-
return /* @__PURE__ */ React.createElement(
|
279
|
-
"div",
|
280
|
-
{
|
281
|
-
id,
|
282
|
-
ref: stepRef,
|
283
|
-
className: cn("hawa-w-full hawa-px-1", className)
|
284
|
-
},
|
285
|
-
children
|
286
|
-
);
|
287
|
-
};
|
288
|
-
var DialogBody = ({ children, className }) => {
|
289
|
-
return /* @__PURE__ */ React.createElement("div", { className: cn("hawa-py-6", className) }, children);
|
290
|
-
};
|
291
|
-
DialogBody.displayName = "DialogBody";
|
292
|
-
DialogStep.displayName = "DialogStep";
|
293
|
-
DialogSteps.displayName = "DialogSteps";
|
294
|
-
DialogCarousel.displayName = "DialogCarousel";
|
295
|
-
DialogCarouselContent.displayName = "DialogCarouselContent";
|
296
|
-
DialogHeader.displayName = "DialogHeader";
|
297
|
-
DialogFooter.displayName = "DialogFooter";
|
298
|
-
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
299
|
-
DialogPortal.displayName = DialogPrimitive.Portal.displayName;
|
300
|
-
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
301
|
-
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
302
|
-
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
303
|
-
|
304
|
-
// components/elements/command/Command.tsx
|
305
|
-
var Command = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
306
|
-
CommandPrimitive,
|
307
|
-
{
|
308
|
-
ref,
|
309
|
-
className: cn(
|
310
|
-
"hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-overflow-hidden hawa-rounded-md hawa-bg-popover hawa-text-popover-foreground",
|
311
|
-
className
|
312
|
-
),
|
313
|
-
...props
|
314
|
-
}
|
315
|
-
));
|
316
|
-
Command.displayName = CommandPrimitive.displayName;
|
317
|
-
var CommandDialog = ({ children, ...props }) => {
|
318
|
-
return /* @__PURE__ */ React2.createElement(Dialog, { ...props }, /* @__PURE__ */ React2.createElement(DialogContent, { className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg" }, /* @__PURE__ */ React2.createElement(Command, { className: "[&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:hawa-pt-0 [&_[cmdk-group]]:hawa-px-2 [&_[cmdk-input-wrapper]_svg]:hawa-h-5 [&_[cmdk-input-wrapper]_svg]:hawa-w-5 [&_[cmdk-input]]:hawa-h-12 [&_[cmdk-item]]:hawa-px-2 [&_[cmdk-item]]:hawa-py-3 [&_[cmdk-item]_svg]:hawa-h-5 [&_[cmdk-item]_svg]:hawa-w-5" }, children)));
|
319
|
-
};
|
320
|
-
var CommandInput = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
321
|
-
"div",
|
322
|
-
{
|
323
|
-
className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
|
324
|
-
"cmdk-input-wrapper": ""
|
325
|
-
},
|
326
|
-
/* @__PURE__ */ React2.createElement(
|
327
|
-
"svg",
|
328
|
-
{
|
329
|
-
"aria-label": "Search Icon",
|
330
|
-
xmlns: "http://www.w3.org/2000/svg",
|
331
|
-
width: "24",
|
332
|
-
height: "24",
|
333
|
-
viewBox: "0 0 24 24",
|
334
|
-
fill: "none",
|
335
|
-
stroke: "currentColor",
|
336
|
-
strokeWidth: "2",
|
337
|
-
strokeLinecap: "round",
|
338
|
-
strokeLinejoin: "round",
|
339
|
-
className: "hawa-icon hawa-mr-2 hawa-shrink-0 hawa-opacity-50"
|
340
|
-
},
|
341
|
-
/* @__PURE__ */ React2.createElement("circle", { cx: "11", cy: "11", r: "8" }),
|
342
|
-
/* @__PURE__ */ React2.createElement("path", { d: "m21 21-4.3-4.3" })
|
343
|
-
),
|
344
|
-
/* @__PURE__ */ React2.createElement(
|
345
|
-
CommandPrimitive.Input,
|
346
|
-
{
|
347
|
-
ref,
|
348
|
-
className: cn(
|
349
|
-
"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",
|
350
|
-
className
|
351
|
-
),
|
352
|
-
...props
|
353
|
-
}
|
354
|
-
)
|
355
|
-
));
|
356
|
-
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
357
|
-
var CommandList = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
358
|
-
CommandPrimitive.List,
|
359
|
-
{
|
360
|
-
ref,
|
361
|
-
className: cn(
|
362
|
-
"hawa-max-h-[300px] hawa-overflow-y-auto hawa-overflow-x-hidden",
|
363
|
-
className
|
364
|
-
),
|
365
|
-
...props
|
366
|
-
}
|
367
|
-
));
|
368
|
-
CommandList.displayName = CommandPrimitive.List.displayName;
|
369
|
-
var CommandEmpty = React2.forwardRef((props, ref) => /* @__PURE__ */ React2.createElement(
|
370
|
-
CommandPrimitive.Empty,
|
371
|
-
{
|
372
|
-
ref,
|
373
|
-
className: "hawa-py-6 hawa-text-center hawa-text-sm",
|
374
|
-
...props
|
375
|
-
}
|
376
|
-
));
|
377
|
-
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
378
|
-
var CommandGroup = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
379
|
-
CommandPrimitive.Group,
|
380
|
-
{
|
381
|
-
ref,
|
382
|
-
className: cn(
|
383
|
-
"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",
|
384
|
-
className
|
385
|
-
),
|
386
|
-
...props
|
387
|
-
}
|
388
|
-
));
|
389
|
-
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
390
|
-
var CommandSeparator = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
391
|
-
CommandPrimitive.Separator,
|
392
|
-
{
|
393
|
-
ref,
|
394
|
-
className: cn("hawa--mx-1 hawa-h-px hawa-bg-border", className),
|
395
|
-
...props
|
396
|
-
}
|
397
|
-
));
|
398
|
-
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
399
|
-
var CommandItem = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
400
|
-
CommandPrimitive.Item,
|
401
|
-
{
|
402
|
-
ref,
|
403
|
-
className: cn(
|
404
|
-
"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",
|
405
|
-
className
|
406
|
-
),
|
407
|
-
...props
|
408
|
-
}
|
409
|
-
));
|
410
|
-
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
411
|
-
var CommandShortcut = ({
|
412
|
-
className,
|
413
|
-
...props
|
414
|
-
}) => {
|
415
|
-
return /* @__PURE__ */ React2.createElement(
|
416
|
-
"span",
|
417
|
-
{
|
418
|
-
className: cn(
|
419
|
-
"hawa-ml-auto hawa-text-xs hawa-tracking-widest hawa-text-muted-foreground",
|
420
|
-
className
|
421
|
-
),
|
422
|
-
...props
|
423
|
-
}
|
424
|
-
);
|
425
|
-
};
|
426
|
-
CommandShortcut.displayName = "CommandShortcut";
|
2
|
+
Command,
|
3
|
+
CommandDialog,
|
4
|
+
CommandEmpty,
|
5
|
+
CommandGroup,
|
6
|
+
CommandInput,
|
7
|
+
CommandItem,
|
8
|
+
CommandList,
|
9
|
+
CommandSeparator,
|
10
|
+
CommandShortcut
|
11
|
+
} from "../chunk-62GI5F2P.mjs";
|
427
12
|
export {
|
428
13
|
Command,
|
429
14
|
CommandDialog,
|
@@ -0,0 +1,6 @@
|
|
1
|
+
type DirectionType = "rtl" | "ltr";
|
2
|
+
type PositionType = "top" | "bottom" | "right" | "left";
|
3
|
+
type OrientationType = "vertical" | "horizontal";
|
4
|
+
type RadiusType = "full" | "inherit" | "none";
|
5
|
+
|
6
|
+
export type { DirectionType as D, OrientationType as O, PositionType as P, RadiusType as R };
|
@@ -0,0 +1,6 @@
|
|
1
|
+
type DirectionType = "rtl" | "ltr";
|
2
|
+
type PositionType = "top" | "bottom" | "right" | "left";
|
3
|
+
type OrientationType = "vertical" | "horizontal";
|
4
|
+
type RadiusType = "full" | "inherit" | "none";
|
5
|
+
|
6
|
+
export type { DirectionType as D, OrientationType as O, PositionType as P, RadiusType as R };
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { FC } from 'react';
|
2
|
+
|
3
|
+
type CopyRightsTypes = {
|
4
|
+
/** A text used as the version of the app, for example: v1.0.0 */
|
5
|
+
version?: string;
|
6
|
+
/** Credit to the creator of the app, for example: Sikka Software */
|
7
|
+
credits?: string;
|
8
|
+
/** The URL of the logo in the copyrights */
|
9
|
+
logoURL?: string;
|
10
|
+
/** Enable/Disable the existance of the logo */
|
11
|
+
withLogo?: boolean;
|
12
|
+
/** Fires when the logo is clicked, usually goes to the website of the creator of the app */
|
13
|
+
onLogoClicked?: any;
|
14
|
+
};
|
15
|
+
declare const Copyrights: FC<CopyRightsTypes>;
|
16
|
+
|
17
|
+
export { Copyrights };
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { FC } from 'react';
|
2
|
+
|
3
|
+
type CopyRightsTypes = {
|
4
|
+
/** A text used as the version of the app, for example: v1.0.0 */
|
5
|
+
version?: string;
|
6
|
+
/** Credit to the creator of the app, for example: Sikka Software */
|
7
|
+
credits?: string;
|
8
|
+
/** The URL of the logo in the copyrights */
|
9
|
+
logoURL?: string;
|
10
|
+
/** Enable/Disable the existance of the logo */
|
11
|
+
withLogo?: boolean;
|
12
|
+
/** Fires when the logo is clicked, usually goes to the website of the creator of the app */
|
13
|
+
onLogoClicked?: any;
|
14
|
+
};
|
15
|
+
declare const Copyrights: FC<CopyRightsTypes>;
|
16
|
+
|
17
|
+
export { Copyrights };
|
@@ -0,0 +1,45 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __create = Object.create;
|
3
|
+
var __defProp = Object.defineProperty;
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
|
+
var __export = (target, all) => {
|
9
|
+
for (var name in all)
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
11
|
+
};
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
14
|
+
for (let key of __getOwnPropNames(from))
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
17
|
+
}
|
18
|
+
return to;
|
19
|
+
};
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
26
|
+
mod
|
27
|
+
));
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
+
|
30
|
+
// components/layout/copyrights/index.ts
|
31
|
+
var copyrights_exports = {};
|
32
|
+
__export(copyrights_exports, {
|
33
|
+
Copyrights: () => Copyrights
|
34
|
+
});
|
35
|
+
module.exports = __toCommonJS(copyrights_exports);
|
36
|
+
|
37
|
+
// components/layout/copyrights/Copyrights.tsx
|
38
|
+
var import_react = __toESM(require("react"));
|
39
|
+
var Copyrights = (props) => {
|
40
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "hawa-my-2 hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-1 hawa-text-xs hawa-text-gray-400" }, props.withLogo ? /* @__PURE__ */ import_react.default.createElement("a", { href: props.onLogoClicked }, /* @__PURE__ */ import_react.default.createElement("div", { className: "hawa-cursor-pointer" }, /* @__PURE__ */ import_react.default.createElement("image", { href: props.logoURL, width: 100, height: 50 }))) : null, /* @__PURE__ */ import_react.default.createElement("div", null, props.version), props.credits ? props.credits : null);
|
41
|
+
};
|
42
|
+
// Annotate the CommonJS export names for ESM import in node:
|
43
|
+
0 && (module.exports = {
|
44
|
+
Copyrights
|
45
|
+
});
|
@@ -0,0 +1,8 @@
|
|
1
|
+
// components/layout/copyrights/Copyrights.tsx
|
2
|
+
import React from "react";
|
3
|
+
var Copyrights = (props) => {
|
4
|
+
return /* @__PURE__ */ React.createElement("div", { className: "hawa-my-2 hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-1 hawa-text-xs hawa-text-gray-400" }, props.withLogo ? /* @__PURE__ */ React.createElement("a", { href: props.onLogoClicked }, /* @__PURE__ */ React.createElement("div", { className: "hawa-cursor-pointer" }, /* @__PURE__ */ React.createElement("image", { href: props.logoURL, width: 100, height: 50 }))) : null, /* @__PURE__ */ React.createElement("div", null, props.version), props.credits ? props.credits : null);
|
5
|
+
};
|
6
|
+
export {
|
7
|
+
Copyrights
|
8
|
+
};
|
@@ -0,0 +1,45 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __create = Object.create;
|
3
|
+
var __defProp = Object.defineProperty;
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
|
+
var __export = (target, all) => {
|
9
|
+
for (var name in all)
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
11
|
+
};
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
14
|
+
for (let key of __getOwnPropNames(from))
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
17
|
+
}
|
18
|
+
return to;
|
19
|
+
};
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
26
|
+
mod
|
27
|
+
));
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
+
|
30
|
+
// components/elements/count/index.ts
|
31
|
+
var count_exports = {};
|
32
|
+
__export(count_exports, {
|
33
|
+
Count: () => Count
|
34
|
+
});
|
35
|
+
module.exports = __toCommonJS(count_exports);
|
36
|
+
|
37
|
+
// components/elements/count/Count.tsx
|
38
|
+
var import_react = __toESM(require("react"));
|
39
|
+
var Count = (props) => {
|
40
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "hawa-flex hawa-h-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-px-2" }, /* @__PURE__ */ import_react.default.createElement("div", null, props.icon), /* @__PURE__ */ import_react.default.createElement("div", { className: "hawa-text-sm" }, props.count));
|
41
|
+
};
|
42
|
+
// Annotate the CommonJS export names for ESM import in node:
|
43
|
+
0 && (module.exports = {
|
44
|
+
Count
|
45
|
+
});
|