@sikka/hawa 0.35.1-next → 0.35.3-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/{DropdownMenu-K3ztliYc.d.mts → DropdownMenu-BYiPSEYy.d.mts} +1 -0
- package/dist/{DropdownMenu-CJblb-9q.d.ts → DropdownMenu-ChxqadLu.d.ts} +1 -0
- package/dist/alert/index.js +38 -37
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs +1 -0
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.js +74 -63
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +16 -5
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appTopbar/index.js +10 -1
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs +10 -1
- package/dist/appTopbar/index.mjs.map +1 -1
- package/dist/backToTop/index.js +34 -33
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs +1 -0
- package/dist/backToTop/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +255 -254
- package/dist/blocks/auth/index.mjs +4 -4
- package/dist/blocks/feedback/index.js +137 -136
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.d.mts +1 -1
- package/dist/blocks/index.d.ts +1 -1
- package/dist/blocks/index.js +521 -511
- package/dist/blocks/index.mjs +2 -2
- package/dist/blocks/misc/index.js +115 -114
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.js +121 -120
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/button/index.js +25 -24
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +1 -0
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.js +25 -24
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/index.mjs +1 -0
- package/dist/calendar/index.mjs.map +1 -1
- package/dist/{chunk-XJMDUR5A.mjs → chunk-7L2JUNG2.mjs} +1 -1
- package/dist/{chunk-GVZWOUGN.mjs → chunk-CD6AQVU3.mjs} +1 -1
- package/dist/{chunk-A376BKNX.mjs → chunk-JEZLVXSU.mjs} +1 -1
- package/dist/{chunk-YOT2GVXO.mjs → chunk-LVXG3SMD.mjs} +1 -1
- package/dist/{chunk-HHC34DXN.mjs → chunk-MVKP55SZ.mjs} +1 -1
- package/dist/{chunk-IDKXEJET.mjs → chunk-OW3WFRFQ.mjs} +43 -33
- package/dist/{chunk-XFRJ62W3.mjs → chunk-OWYGADJZ.mjs} +1 -1
- package/dist/{chunk-L56XQRQI.mjs → chunk-WABHQMUI.mjs} +1 -1
- package/dist/{chunk-DFWFQWWT.mjs → chunk-YNEQBAQC.mjs} +1 -1
- package/dist/{chunk-DABX3SU6.mjs → chunk-YP2CCKZG.mjs} +33 -32
- package/dist/codeBlock/index.js +45 -44
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +1 -0
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/dataTable/index.js +48 -38
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +11 -1
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.js +33 -32
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +1 -0
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/docsLayout/index.js +106 -105
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +1 -0
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/dropdownMenu/index.d.mts +1 -0
- package/dist/dropdownMenu/index.d.ts +1 -0
- package/dist/dropdownMenu/index.js +10 -1
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs +10 -1
- package/dist/dropdownMenu/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +1 -1
- package/dist/elements/index.d.ts +1 -1
- package/dist/elements/index.js +441 -431
- package/dist/elements/index.mjs +3 -3
- package/dist/fileDropzone/index.js +71 -70
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs +1 -0
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +881 -870
- package/dist/index.mjs +214 -203
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +196 -185
- package/dist/layout/index.mjs +3 -2
- package/dist/sortButton/index.js +32 -31
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs +1 -0
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.js +69 -59
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +46 -36
- package/dist/splitButton/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -46,14 +46,14 @@ function cn(...inputs) {
|
|
46
46
|
}
|
47
47
|
|
48
48
|
// elements/dropdownMenu/DropdownMenu.tsx
|
49
|
-
var
|
49
|
+
var React = __toESM(require("react"));
|
50
50
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
51
51
|
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
52
52
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
53
53
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
54
54
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
55
55
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
56
|
-
var DropdownMenuSubTrigger =
|
56
|
+
var DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
57
57
|
DropdownMenuPrimitive.SubTrigger,
|
58
58
|
{
|
59
59
|
ref,
|
@@ -64,9 +64,9 @@ var DropdownMenuSubTrigger = React2.forwardRef(({ className, inset, children, ..
|
|
64
64
|
),
|
65
65
|
...props
|
66
66
|
},
|
67
|
-
/* @__PURE__ */
|
67
|
+
/* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
|
68
68
|
" ",
|
69
|
-
/* @__PURE__ */
|
69
|
+
/* @__PURE__ */ React.createElement(
|
70
70
|
"svg",
|
71
71
|
{
|
72
72
|
"aria-label": "Chevron Right Icon",
|
@@ -78,7 +78,7 @@ var DropdownMenuSubTrigger = React2.forwardRef(({ className, inset, children, ..
|
|
78
78
|
width: "1em",
|
79
79
|
className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
|
80
80
|
},
|
81
|
-
/* @__PURE__ */
|
81
|
+
/* @__PURE__ */ React.createElement(
|
82
82
|
"path",
|
83
83
|
{
|
84
84
|
fillRule: "evenodd",
|
@@ -88,7 +88,7 @@ var DropdownMenuSubTrigger = React2.forwardRef(({ className, inset, children, ..
|
|
88
88
|
)
|
89
89
|
));
|
90
90
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
91
|
-
var DropdownMenuSubContent =
|
91
|
+
var DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
92
92
|
DropdownMenuPrimitive.SubContent,
|
93
93
|
{
|
94
94
|
ref,
|
@@ -100,7 +100,7 @@ var DropdownMenuSubContent = React2.forwardRef(({ className, ...props }, ref) =>
|
|
100
100
|
}
|
101
101
|
));
|
102
102
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
103
|
-
var DropdownMenuContent =
|
103
|
+
var DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React.createElement(
|
104
104
|
DropdownMenuPrimitive.Content,
|
105
105
|
{
|
106
106
|
ref,
|
@@ -113,8 +113,8 @@ var DropdownMenuContent = React2.forwardRef(({ className, sideOffset = 4, ...pro
|
|
113
113
|
}
|
114
114
|
)));
|
115
115
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
116
|
-
var DropdownMenuItem =
|
117
|
-
return /* @__PURE__ */
|
116
|
+
var DropdownMenuItem = React.forwardRef(({ className, inset, badged, slug, LinkComponent, ...props }, ref) => {
|
117
|
+
return /* @__PURE__ */ React.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React.createElement(
|
118
118
|
DropdownMenuPrimitive.Item,
|
119
119
|
{
|
120
120
|
disabled: props.disabled,
|
@@ -127,14 +127,14 @@ var DropdownMenuItem = React2.forwardRef(({ className, inset, badged, slug, Link
|
|
127
127
|
),
|
128
128
|
...props
|
129
129
|
},
|
130
|
-
/* @__PURE__ */
|
130
|
+
/* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
|
131
131
|
props.end && props.end,
|
132
|
-
!props.end && props.shortcut && /* @__PURE__ */
|
133
|
-
!props.end && badged && /* @__PURE__ */
|
132
|
+
!props.end && props.shortcut && /* @__PURE__ */ React.createElement(DropdownMenuShortcut, null, props.shortcut),
|
133
|
+
!props.end && badged && /* @__PURE__ */ React.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
|
134
134
|
));
|
135
135
|
});
|
136
136
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
137
|
-
var DropdownMenuCheckboxItem =
|
137
|
+
var DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
138
138
|
DropdownMenuPrimitive.CheckboxItem,
|
139
139
|
{
|
140
140
|
ref,
|
@@ -145,7 +145,7 @@ var DropdownMenuCheckboxItem = React2.forwardRef(({ className, children, checked
|
|
145
145
|
checked,
|
146
146
|
...props
|
147
147
|
},
|
148
|
-
/* @__PURE__ */
|
148
|
+
/* @__PURE__ */ React.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__ */ React.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React.createElement(
|
149
149
|
"svg",
|
150
150
|
{
|
151
151
|
"aria-label": "Check Mark",
|
@@ -156,12 +156,12 @@ var DropdownMenuCheckboxItem = React2.forwardRef(({ className, children, checked
|
|
156
156
|
height: "0.60em",
|
157
157
|
width: "0.60em"
|
158
158
|
},
|
159
|
-
/* @__PURE__ */
|
159
|
+
/* @__PURE__ */ React.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" })
|
160
160
|
), " ")),
|
161
161
|
children
|
162
162
|
));
|
163
163
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
164
|
-
var DropdownMenuRadioItem =
|
164
|
+
var DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
165
165
|
DropdownMenuPrimitive.RadioItem,
|
166
166
|
{
|
167
167
|
ref,
|
@@ -171,7 +171,7 @@ var DropdownMenuRadioItem = React2.forwardRef(({ className, children, ...props }
|
|
171
171
|
),
|
172
172
|
...props
|
173
173
|
},
|
174
|
-
/* @__PURE__ */
|
174
|
+
/* @__PURE__ */ React.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__ */ React.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React.createElement(
|
175
175
|
"svg",
|
176
176
|
{
|
177
177
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -186,12 +186,12 @@ var DropdownMenuRadioItem = React2.forwardRef(({ className, children, ...props }
|
|
186
186
|
strokeLinejoin: "round",
|
187
187
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
188
188
|
},
|
189
|
-
/* @__PURE__ */
|
189
|
+
/* @__PURE__ */ React.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
190
190
|
))),
|
191
191
|
children
|
192
192
|
));
|
193
193
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
194
|
-
var DropdownMenuLabel =
|
194
|
+
var DropdownMenuLabel = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
195
195
|
DropdownMenuPrimitive.Label,
|
196
196
|
{
|
197
197
|
ref,
|
@@ -204,7 +204,7 @@ var DropdownMenuLabel = React2.forwardRef(({ className, inset, ...props }, ref)
|
|
204
204
|
}
|
205
205
|
));
|
206
206
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
207
|
-
var DropdownMenuSeparator =
|
207
|
+
var DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
208
208
|
DropdownMenuPrimitive.Separator,
|
209
209
|
{
|
210
210
|
ref,
|
@@ -217,7 +217,7 @@ var DropdownMenuShortcut = ({
|
|
217
217
|
className,
|
218
218
|
...props
|
219
219
|
}) => {
|
220
|
-
return /* @__PURE__ */
|
220
|
+
return /* @__PURE__ */ React.createElement(
|
221
221
|
"span",
|
222
222
|
{
|
223
223
|
className: cn(
|
@@ -237,6 +237,7 @@ var DropdownMenu = ({
|
|
237
237
|
side,
|
238
238
|
className,
|
239
239
|
triggerClassname,
|
240
|
+
triggerProps,
|
240
241
|
align,
|
241
242
|
alignOffset,
|
242
243
|
onItemSelect,
|
@@ -257,10 +258,10 @@ var DropdownMenu = ({
|
|
257
258
|
default: "hawa-px-2 hawa-py-3 ",
|
258
259
|
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
|
259
260
|
};
|
260
|
-
let [values, setValues] =
|
261
|
+
let [values, setValues] = React.useState(
|
261
262
|
items.map((item) => item.currentOption)
|
262
263
|
);
|
263
|
-
return /* @__PURE__ */
|
264
|
+
return /* @__PURE__ */ React.createElement(
|
264
265
|
DropdownMenuRoot,
|
265
266
|
{
|
266
267
|
onOpenChange,
|
@@ -268,8 +269,16 @@ var DropdownMenu = ({
|
|
268
269
|
modal: false,
|
269
270
|
dir: direction
|
270
271
|
},
|
271
|
-
/* @__PURE__ */
|
272
|
-
|
272
|
+
/* @__PURE__ */ React.createElement(
|
273
|
+
DropdownMenuTrigger,
|
274
|
+
{
|
275
|
+
asChild: true,
|
276
|
+
className: triggerClassname,
|
277
|
+
...triggerProps
|
278
|
+
},
|
279
|
+
trigger
|
280
|
+
),
|
281
|
+
/* @__PURE__ */ React.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React.createElement(
|
273
282
|
DropdownMenuContent,
|
274
283
|
{
|
275
284
|
side,
|
@@ -290,12 +299,12 @@ var DropdownMenu = ({
|
|
290
299
|
var _a;
|
291
300
|
const ItemLinkComponent = item.slug ? LinkComponent : "a";
|
292
301
|
if (item.itemType === "separator") {
|
293
|
-
return /* @__PURE__ */
|
302
|
+
return /* @__PURE__ */ React.createElement(DropdownMenuSeparator, { key: index });
|
294
303
|
} else if (item.itemType === "label") {
|
295
|
-
return /* @__PURE__ */
|
304
|
+
return /* @__PURE__ */ React.createElement(DropdownMenuLabel, { key: index }, item.label);
|
296
305
|
} else if (item.itemType === "radio") {
|
297
306
|
let dd = item.currentOption;
|
298
|
-
return /* @__PURE__ */
|
307
|
+
return /* @__PURE__ */ React.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React.createElement(
|
299
308
|
DropdownMenuSubTrigger,
|
300
309
|
{
|
301
310
|
dir: direction,
|
@@ -303,7 +312,7 @@ var DropdownMenu = ({
|
|
303
312
|
},
|
304
313
|
item.icon && item.icon,
|
305
314
|
item.label && item.label
|
306
|
-
), /* @__PURE__ */
|
315
|
+
), /* @__PURE__ */ React.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React.createElement(
|
307
316
|
DropdownMenuRadioGroup,
|
308
317
|
{
|
309
318
|
value: values[index],
|
@@ -317,12 +326,12 @@ var DropdownMenu = ({
|
|
317
326
|
}
|
318
327
|
}
|
319
328
|
},
|
320
|
-
(_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */
|
329
|
+
(_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */ React.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
|
321
330
|
)));
|
322
331
|
} else if (item.itemType === "custom") {
|
323
|
-
return /* @__PURE__ */
|
332
|
+
return /* @__PURE__ */ React.createElement("div", { key: index }, item.content);
|
324
333
|
} else {
|
325
|
-
return item.subitems ? /* @__PURE__ */
|
334
|
+
return item.subitems ? /* @__PURE__ */ React.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React.createElement(
|
326
335
|
DropdownMenuSubTrigger,
|
327
336
|
{
|
328
337
|
dir: direction,
|
@@ -330,9 +339,9 @@ var DropdownMenu = ({
|
|
330
339
|
},
|
331
340
|
item.icon && item.icon,
|
332
341
|
item.label && item.label
|
333
|
-
), /* @__PURE__ */
|
342
|
+
), /* @__PURE__ */ React.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
334
343
|
const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
|
335
|
-
return /* @__PURE__ */
|
344
|
+
return /* @__PURE__ */ React.createElement(
|
336
345
|
DropdownMenuItem,
|
337
346
|
{
|
338
347
|
key: subIndex,
|
@@ -361,7 +370,7 @@ var DropdownMenu = ({
|
|
361
370
|
subitem.icon && subitem.icon,
|
362
371
|
subitem.label && subitem.label
|
363
372
|
);
|
364
|
-
})))) : /* @__PURE__ */
|
373
|
+
})))) : /* @__PURE__ */ React.createElement(
|
365
374
|
DropdownMenuItem,
|
366
375
|
{
|
367
376
|
LinkComponent: ItemLinkComponent,
|
@@ -419,7 +428,8 @@ var React6 = __toESM(require("react"));
|
|
419
428
|
var import_class_variance_authority = require("class-variance-authority");
|
420
429
|
|
421
430
|
// elements/helperText/HelperText.tsx
|
422
|
-
var
|
431
|
+
var import_react = __toESM(require("react"));
|
432
|
+
var HelperText = ({ helperText }) => /* @__PURE__ */ import_react.default.createElement(
|
423
433
|
"p",
|
424
434
|
{
|
425
435
|
className: cn(
|
@@ -434,9 +444,9 @@ var HelperText = ({ helperText }) => /* @__PURE__ */ React.createElement(
|
|
434
444
|
var React4 = __toESM(require("react"));
|
435
445
|
|
436
446
|
// elements/tooltip/Tooltip.tsx
|
437
|
-
var
|
447
|
+
var import_react2 = __toESM(require("react"));
|
438
448
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
439
|
-
var TooltipContent =
|
449
|
+
var TooltipContent = import_react2.default.forwardRef(({ className, sideOffset = 4, size = "default", ...props }, ref) => /* @__PURE__ */ import_react2.default.createElement(
|
440
450
|
TooltipPrimitive.Content,
|
441
451
|
{
|
442
452
|
ref,
|
@@ -453,7 +463,7 @@ var TooltipContent = import_react.default.forwardRef(({ className, sideOffset =
|
|
453
463
|
}
|
454
464
|
));
|
455
465
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
456
|
-
var TooltipArrow =
|
466
|
+
var TooltipArrow = import_react2.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ import_react2.default.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
|
457
467
|
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
458
468
|
var Tooltip = ({
|
459
469
|
side,
|
@@ -470,13 +480,13 @@ var Tooltip = ({
|
|
470
480
|
delayDuration = 300,
|
471
481
|
...props
|
472
482
|
}) => {
|
473
|
-
return /* @__PURE__ */
|
483
|
+
return /* @__PURE__ */ import_react2.default.createElement(
|
474
484
|
TooltipPrimitive.TooltipProvider,
|
475
485
|
{
|
476
486
|
delayDuration,
|
477
487
|
...providerProps
|
478
488
|
},
|
479
|
-
/* @__PURE__ */
|
489
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
480
490
|
TooltipPrimitive.Root,
|
481
491
|
{
|
482
492
|
open: !disabled && open,
|
@@ -484,8 +494,8 @@ var Tooltip = ({
|
|
484
494
|
onOpenChange,
|
485
495
|
...props
|
486
496
|
},
|
487
|
-
/* @__PURE__ */
|
488
|
-
/* @__PURE__ */
|
497
|
+
/* @__PURE__ */ import_react2.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
498
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
489
499
|
TooltipContent,
|
490
500
|
{
|
491
501
|
size,
|
@@ -547,7 +557,7 @@ var Label2 = React4.forwardRef(({ className, hint, hintSide, required, children,
|
|
547
557
|
Label2.displayName = "Label";
|
548
558
|
|
549
559
|
// elements/loading/Loading.tsx
|
550
|
-
var
|
560
|
+
var import_react3 = __toESM(require("react"));
|
551
561
|
var Loading = ({
|
552
562
|
design = "spinner",
|
553
563
|
size = "normal",
|
@@ -578,7 +588,7 @@ var Loading = ({
|
|
578
588
|
};
|
579
589
|
switch (design.split("-")[0]) {
|
580
590
|
case "dots":
|
581
|
-
return /* @__PURE__ */
|
591
|
+
return /* @__PURE__ */ import_react3.default.createElement(
|
582
592
|
"div",
|
583
593
|
{
|
584
594
|
className: cn(
|
@@ -586,7 +596,7 @@ var Loading = ({
|
|
586
596
|
classNames == null ? void 0 : classNames.container
|
587
597
|
)
|
588
598
|
},
|
589
|
-
/* @__PURE__ */
|
599
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
590
600
|
"div",
|
591
601
|
{
|
592
602
|
className: cn(
|
@@ -597,7 +607,7 @@ var Loading = ({
|
|
597
607
|
)
|
598
608
|
}
|
599
609
|
),
|
600
|
-
/* @__PURE__ */
|
610
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
601
611
|
"div",
|
602
612
|
{
|
603
613
|
className: cn(
|
@@ -608,7 +618,7 @@ var Loading = ({
|
|
608
618
|
)
|
609
619
|
}
|
610
620
|
),
|
611
|
-
/* @__PURE__ */
|
621
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
612
622
|
"div",
|
613
623
|
{
|
614
624
|
className: cn(
|
@@ -621,7 +631,7 @@ var Loading = ({
|
|
621
631
|
)
|
622
632
|
);
|
623
633
|
case "square":
|
624
|
-
return /* @__PURE__ */
|
634
|
+
return /* @__PURE__ */ import_react3.default.createElement(
|
625
635
|
"svg",
|
626
636
|
{
|
627
637
|
className: cn(
|
@@ -633,7 +643,7 @@ var Loading = ({
|
|
633
643
|
height: "35",
|
634
644
|
width: "35"
|
635
645
|
},
|
636
|
-
/* @__PURE__ */
|
646
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
637
647
|
"rect",
|
638
648
|
{
|
639
649
|
className: "squircle-track",
|
@@ -645,7 +655,7 @@ var Loading = ({
|
|
645
655
|
height: "32.5"
|
646
656
|
}
|
647
657
|
),
|
648
|
-
/* @__PURE__ */
|
658
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
649
659
|
"rect",
|
650
660
|
{
|
651
661
|
className: "square-car",
|
@@ -660,7 +670,7 @@ var Loading = ({
|
|
660
670
|
)
|
661
671
|
);
|
662
672
|
case "squircle":
|
663
|
-
return /* @__PURE__ */
|
673
|
+
return /* @__PURE__ */ import_react3.default.createElement(
|
664
674
|
"svg",
|
665
675
|
{
|
666
676
|
x: "0px",
|
@@ -675,7 +685,7 @@ var Loading = ({
|
|
675
685
|
classNames == null ? void 0 : classNames.container
|
676
686
|
)
|
677
687
|
},
|
678
|
-
/* @__PURE__ */
|
688
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
679
689
|
"path",
|
680
690
|
{
|
681
691
|
className: cn("squircle-track", classNames == null ? void 0 : classNames.track),
|
@@ -685,7 +695,7 @@ var Loading = ({
|
|
685
695
|
d: "M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5"
|
686
696
|
}
|
687
697
|
),
|
688
|
-
/* @__PURE__ */
|
698
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
689
699
|
"path",
|
690
700
|
{
|
691
701
|
className: cn("squircle-car", classNames == null ? void 0 : classNames.car),
|
@@ -697,7 +707,7 @@ var Loading = ({
|
|
697
707
|
)
|
698
708
|
);
|
699
709
|
case "progress":
|
700
|
-
return /* @__PURE__ */
|
710
|
+
return /* @__PURE__ */ import_react3.default.createElement(
|
701
711
|
"div",
|
702
712
|
{
|
703
713
|
className: cn(
|
@@ -708,9 +718,9 @@ var Loading = ({
|
|
708
718
|
}
|
709
719
|
);
|
710
720
|
case "orbit":
|
711
|
-
return /* @__PURE__ */
|
721
|
+
return /* @__PURE__ */ import_react3.default.createElement("div", { className: cn("orbit-container", classNames == null ? void 0 : classNames.container) });
|
712
722
|
default:
|
713
|
-
return /* @__PURE__ */
|
723
|
+
return /* @__PURE__ */ import_react3.default.createElement(
|
714
724
|
"svg",
|
715
725
|
{
|
716
726
|
viewBox: "0 0 40 40",
|
@@ -722,7 +732,7 @@ var Loading = ({
|
|
722
732
|
classNames == null ? void 0 : classNames.container
|
723
733
|
)
|
724
734
|
},
|
725
|
-
/* @__PURE__ */
|
735
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
726
736
|
"circle",
|
727
737
|
{
|
728
738
|
className: cn(
|
@@ -741,7 +751,7 @@ var Loading = ({
|
|
741
751
|
pathLength: "100"
|
742
752
|
}
|
743
753
|
),
|
744
|
-
/* @__PURE__ */
|
754
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
745
755
|
"circle",
|
746
756
|
{
|
747
757
|
className: cn(
|