@pathscale/ui 0.0.52 → 0.0.54
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/index.js +900 -227
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,6 +3,20 @@ import * as __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__ from "solid-js";
|
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE__felte_solid_6a709b1d__ from "@felte/solid";
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE__felte_validator_zod_bb07151a__ from "@felte/validator-zod";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE__tanstack_solid_table_1239d047__ from "@tanstack/solid-table";
|
|
6
|
+
function clsx_r(e) {
|
|
7
|
+
var t, f, n = "";
|
|
8
|
+
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
9
|
+
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
10
|
+
var o = e.length;
|
|
11
|
+
for(t = 0; t < o; t++)e[t] && (f = clsx_r(e[t])) && (n && (n += " "), n += f);
|
|
12
|
+
} else for(f in e)e[f] && (n && (n += " "), n += f);
|
|
13
|
+
return n;
|
|
14
|
+
}
|
|
15
|
+
function clsx() {
|
|
16
|
+
for(var e, t, f = 0, n = "", o = arguments.length; f < o; f++)(e = arguments[f]) && (t = clsx_r(e)) && (n && (n += " "), n += t);
|
|
17
|
+
return n;
|
|
18
|
+
}
|
|
19
|
+
const dist_clsx = clsx;
|
|
6
20
|
const CLASS_PART_SEPARATOR = '-';
|
|
7
21
|
const createClassGroupUtils = (config)=>{
|
|
8
22
|
const classMap = createClassMap(config);
|
|
@@ -3402,20 +3416,6 @@ const getDefaultConfig = ()=>{
|
|
|
3402
3416
|
};
|
|
3403
3417
|
};
|
|
3404
3418
|
const twMerge = /*#__PURE__*/ createTailwindMerge(getDefaultConfig);
|
|
3405
|
-
function clsx_r(e) {
|
|
3406
|
-
var t, f, n = "";
|
|
3407
|
-
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
3408
|
-
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
3409
|
-
var o = e.length;
|
|
3410
|
-
for(t = 0; t < o; t++)e[t] && (f = clsx_r(e[t])) && (n && (n += " "), n += f);
|
|
3411
|
-
} else for(f in e)e[f] && (n && (n += " "), n += f);
|
|
3412
|
-
return n;
|
|
3413
|
-
}
|
|
3414
|
-
function clsx() {
|
|
3415
|
-
for(var e, t, f = 0, n = "", o = arguments.length; f < o; f++)(e = arguments[f]) && (t = clsx_r(e)) && (n && (n += " "), n += t);
|
|
3416
|
-
return n;
|
|
3417
|
-
}
|
|
3418
|
-
const dist_clsx = clsx;
|
|
3419
3419
|
var _tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>"), _tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<summary>");
|
|
3420
3420
|
const classesFn = ({ className })=>twMerge("collapse-title", className);
|
|
3421
3421
|
function CollapseTitle(props) {
|
|
@@ -3455,44 +3455,162 @@ function CollapseContent(props) {
|
|
|
3455
3455
|
return _el$;
|
|
3456
3456
|
})();
|
|
3457
3457
|
}
|
|
3458
|
-
var Accordion_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div
|
|
3458
|
+
var Accordion_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div role=region>"), Accordion_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<input>");
|
|
3459
|
+
const accordionGroups = new Map();
|
|
3459
3460
|
const Accordion = (props)=>{
|
|
3460
3461
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
3461
3462
|
"name",
|
|
3462
3463
|
"icon",
|
|
3464
|
+
"checked",
|
|
3463
3465
|
"dataTheme",
|
|
3464
3466
|
"class",
|
|
3465
3467
|
"className",
|
|
3466
|
-
"style"
|
|
3468
|
+
"style",
|
|
3469
|
+
"mode",
|
|
3470
|
+
"expanded",
|
|
3471
|
+
"onToggle",
|
|
3472
|
+
"children",
|
|
3473
|
+
"aria-label",
|
|
3474
|
+
"aria-describedby",
|
|
3475
|
+
"aria-labelledby"
|
|
3467
3476
|
]);
|
|
3477
|
+
const uniqueId = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createUniqueId)();
|
|
3478
|
+
const contentId = `accordion-content-${uniqueId}`;
|
|
3479
|
+
const titleId = `accordion-title-${uniqueId}`;
|
|
3480
|
+
const isControlled = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>"controlled" === local.mode);
|
|
3481
|
+
const [isExpanded, setIsExpanded] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(local.checked || local.expanded || false);
|
|
3482
|
+
const expanded = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
3483
|
+
if (isControlled()) return local.expanded ?? false;
|
|
3484
|
+
return isExpanded();
|
|
3485
|
+
});
|
|
3486
|
+
const groupName = ()=>local.name ?? "accordion";
|
|
3487
|
+
const isRadioMode = ()=>"checkbox" !== local.mode && "controlled" !== local.mode;
|
|
3488
|
+
const closeAccordion = ()=>{
|
|
3489
|
+
if (!isControlled()) setIsExpanded(false);
|
|
3490
|
+
};
|
|
3491
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
3492
|
+
if (isRadioMode()) {
|
|
3493
|
+
const name = groupName();
|
|
3494
|
+
if (!accordionGroups.has(name)) accordionGroups.set(name, new Set());
|
|
3495
|
+
const group = accordionGroups.get(name);
|
|
3496
|
+
group.add(closeAccordion);
|
|
3497
|
+
return ()=>{
|
|
3498
|
+
group.delete(closeAccordion);
|
|
3499
|
+
if (0 === group.size) accordionGroups.delete(name);
|
|
3500
|
+
};
|
|
3501
|
+
}
|
|
3502
|
+
});
|
|
3503
|
+
const handleToggle = ()=>{
|
|
3504
|
+
const wasExpanded = expanded();
|
|
3505
|
+
if (!isControlled()) {
|
|
3506
|
+
if (isRadioMode() && !wasExpanded) {
|
|
3507
|
+
const group = accordionGroups.get(groupName());
|
|
3508
|
+
if (group) group.forEach((closeFunc)=>{
|
|
3509
|
+
if (closeFunc !== closeAccordion) closeFunc();
|
|
3510
|
+
});
|
|
3511
|
+
setIsExpanded(true);
|
|
3512
|
+
} else if ("checkbox" === local.mode) setIsExpanded(!wasExpanded);
|
|
3513
|
+
else if (isRadioMode() && wasExpanded) setIsExpanded(false);
|
|
3514
|
+
}
|
|
3515
|
+
local.onToggle?.();
|
|
3516
|
+
};
|
|
3468
3517
|
const classes = ()=>twMerge("collapse", clsx({
|
|
3469
3518
|
"collapse-arrow": "arrow" === local.icon,
|
|
3470
|
-
"collapse-plus": "plus" === local.icon
|
|
3519
|
+
"collapse-plus": "plus" === local.icon,
|
|
3520
|
+
"collapse-open": expanded(),
|
|
3521
|
+
"collapse-close": !expanded()
|
|
3471
3522
|
}), local.class, local.className);
|
|
3523
|
+
const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
3524
|
+
const childrenWithAria = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
3525
|
+
const children = resolvedChildren();
|
|
3526
|
+
const arr = Array.isArray(children) ? children : [
|
|
3527
|
+
children
|
|
3528
|
+
];
|
|
3529
|
+
return arr.map((child)=>{
|
|
3530
|
+
if (null == child || "object" != typeof child || !("props" in child)) return child;
|
|
3531
|
+
if (child.props && "object" == typeof child.props && "class" in child.props && "string" == typeof child.props.class && child.props.class.includes("collapse-title")) return {
|
|
3532
|
+
...child,
|
|
3533
|
+
props: {
|
|
3534
|
+
...child.props,
|
|
3535
|
+
id: titleId,
|
|
3536
|
+
role: "button",
|
|
3537
|
+
tabIndex: 0,
|
|
3538
|
+
"aria-expanded": expanded(),
|
|
3539
|
+
"aria-controls": contentId,
|
|
3540
|
+
onClick: handleToggle,
|
|
3541
|
+
onKeyDown: (e)=>{
|
|
3542
|
+
if ("Enter" === e.key || " " === e.key) {
|
|
3543
|
+
e.preventDefault();
|
|
3544
|
+
handleToggle();
|
|
3545
|
+
}
|
|
3546
|
+
const origOnKeyDown = child.props && child.props.onKeyDown;
|
|
3547
|
+
if ("function" == typeof origOnKeyDown) origOnKeyDown(e);
|
|
3548
|
+
}
|
|
3549
|
+
}
|
|
3550
|
+
};
|
|
3551
|
+
if (child.props && "object" == typeof child.props && "class" in child.props && "string" == typeof child.props.class && child.props.class.includes("collapse-content")) return {
|
|
3552
|
+
...child,
|
|
3553
|
+
props: {
|
|
3554
|
+
...child.props,
|
|
3555
|
+
id: contentId
|
|
3556
|
+
}
|
|
3557
|
+
};
|
|
3558
|
+
return child;
|
|
3559
|
+
});
|
|
3560
|
+
});
|
|
3472
3561
|
return (()=>{
|
|
3473
|
-
var _el$ = Accordion_tmpl$()
|
|
3474
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3562
|
+
var _el$ = Accordion_tmpl$();
|
|
3563
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (()=>{
|
|
3564
|
+
var _c$ = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>"controlled" !== local.mode);
|
|
3565
|
+
return ()=>_c$() && (()=>{
|
|
3566
|
+
var _el$2 = Accordion_tmpl$2();
|
|
3567
|
+
_el$2.addEventListener("change", handleToggle);
|
|
3568
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$2, "aria-controls", contentId);
|
|
3569
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
3570
|
+
get type () {
|
|
3571
|
+
return "checkbox" === local.mode ? "checkbox" : "radio";
|
|
3572
|
+
},
|
|
3573
|
+
get name () {
|
|
3574
|
+
return groupName();
|
|
3575
|
+
},
|
|
3576
|
+
get checked () {
|
|
3577
|
+
return expanded();
|
|
3578
|
+
},
|
|
3579
|
+
get ["aria-expanded"] () {
|
|
3580
|
+
return expanded();
|
|
3581
|
+
},
|
|
3582
|
+
get ["aria-checked"] () {
|
|
3583
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!("checkbox" === local.mode || "radio" === local.mode))() ? expanded() : void 0;
|
|
3584
|
+
}
|
|
3585
|
+
}, others), false, false);
|
|
3586
|
+
return _el$2;
|
|
3587
|
+
})();
|
|
3588
|
+
})(), null);
|
|
3589
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, childrenWithAria, null);
|
|
3480
3590
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
3481
|
-
var _v$ = classes(), _v$2 = local.dataTheme, _v$3 = local.style;
|
|
3591
|
+
var _v$ = classes(), _v$2 = local.dataTheme, _v$3 = local.style, _v$4 = local["aria-label"], _v$5 = local["aria-describedby"], _v$6 = local["aria-labelledby"] || titleId;
|
|
3482
3592
|
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, _p$.e = _v$);
|
|
3483
3593
|
_v$2 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "data-theme", _p$.t = _v$2);
|
|
3484
3594
|
_p$.a = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$, _v$3, _p$.a);
|
|
3595
|
+
_v$4 !== _p$.o && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "aria-label", _p$.o = _v$4);
|
|
3596
|
+
_v$5 !== _p$.i && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "aria-describedby", _p$.i = _v$5);
|
|
3597
|
+
_v$6 !== _p$.n && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "aria-labelledby", _p$.n = _v$6);
|
|
3485
3598
|
return _p$;
|
|
3486
3599
|
}, {
|
|
3487
3600
|
e: void 0,
|
|
3488
3601
|
t: void 0,
|
|
3489
|
-
a: void 0
|
|
3602
|
+
a: void 0,
|
|
3603
|
+
o: void 0,
|
|
3604
|
+
i: void 0,
|
|
3605
|
+
n: void 0
|
|
3490
3606
|
});
|
|
3491
3607
|
return _el$;
|
|
3492
3608
|
})();
|
|
3493
3609
|
};
|
|
3494
|
-
|
|
3495
|
-
|
|
3610
|
+
const AccordionTitle = CollapseTitle;
|
|
3611
|
+
const AccordionContent = CollapseContent;
|
|
3612
|
+
Accordion.Title = AccordionTitle;
|
|
3613
|
+
Accordion.Content = AccordionContent;
|
|
3496
3614
|
const accordion_Accordion = Accordion;
|
|
3497
3615
|
var Alert_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div role=alert>");
|
|
3498
3616
|
const Alert = (props)=>{
|
|
@@ -3504,9 +3622,14 @@ const Alert = (props)=>{
|
|
|
3504
3622
|
"dataTheme",
|
|
3505
3623
|
"class",
|
|
3506
3624
|
"className",
|
|
3507
|
-
"style"
|
|
3625
|
+
"style",
|
|
3626
|
+
"aria-atomic",
|
|
3627
|
+
"aria-live",
|
|
3628
|
+
"aria-relevant",
|
|
3629
|
+
"aria-label",
|
|
3630
|
+
"aria-labelledby"
|
|
3508
3631
|
]);
|
|
3509
|
-
const classes = ()=>twMerge("alert", local.class, local.className, clsx({
|
|
3632
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("alert", local.class, local.className, clsx({
|
|
3510
3633
|
"alert-vertical": "vertical" === local.layout,
|
|
3511
3634
|
"alert-horizontal": "horizontal" === local.layout,
|
|
3512
3635
|
"alert-info": "info" === local.status,
|
|
@@ -3516,7 +3639,12 @@ const Alert = (props)=>{
|
|
|
3516
3639
|
"alert-soft": "soft" === local.variant,
|
|
3517
3640
|
"alert-dash": "dash" === local.variant,
|
|
3518
3641
|
"alert-outline": "outline" === local.variant
|
|
3519
|
-
}));
|
|
3642
|
+
})));
|
|
3643
|
+
const ariaAtomic = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>void 0 === local["aria-atomic"] ? true : local["aria-atomic"]);
|
|
3644
|
+
const ariaLive = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>local["aria-live"] || "assertive");
|
|
3645
|
+
const ariaRelevant = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>local["aria-relevant"]);
|
|
3646
|
+
const ariaLabel = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>local["aria-label"]);
|
|
3647
|
+
const ariaLabelledby = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>local["aria-labelledby"]);
|
|
3520
3648
|
return (()=>{
|
|
3521
3649
|
var _el$ = Alert_tmpl$();
|
|
3522
3650
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
@@ -3528,6 +3656,21 @@ const Alert = (props)=>{
|
|
|
3528
3656
|
},
|
|
3529
3657
|
get style () {
|
|
3530
3658
|
return local.style;
|
|
3659
|
+
},
|
|
3660
|
+
get ["aria-atomic"] () {
|
|
3661
|
+
return ariaAtomic();
|
|
3662
|
+
},
|
|
3663
|
+
get ["aria-live"] () {
|
|
3664
|
+
return ariaLive();
|
|
3665
|
+
},
|
|
3666
|
+
get ["aria-relevant"] () {
|
|
3667
|
+
return ariaRelevant();
|
|
3668
|
+
},
|
|
3669
|
+
get ["aria-label"] () {
|
|
3670
|
+
return ariaLabel();
|
|
3671
|
+
},
|
|
3672
|
+
get ["aria-labelledby"] () {
|
|
3673
|
+
return ariaLabelledby();
|
|
3531
3674
|
}
|
|
3532
3675
|
}), false, true);
|
|
3533
3676
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>local.icon, null);
|
|
@@ -3795,7 +3938,11 @@ const Badge_Badge = (props)=>{
|
|
|
3795
3938
|
"dataTheme",
|
|
3796
3939
|
"class",
|
|
3797
3940
|
"className",
|
|
3798
|
-
"style"
|
|
3941
|
+
"style",
|
|
3942
|
+
"aria-label",
|
|
3943
|
+
"aria-describedby",
|
|
3944
|
+
"aria-labelledby",
|
|
3945
|
+
"role"
|
|
3799
3946
|
]);
|
|
3800
3947
|
const classes = ()=>twMerge("badge", local.class, local.className, clsx({
|
|
3801
3948
|
"badge-xl": "xl" === local.size,
|
|
@@ -3829,7 +3976,21 @@ const Badge_Badge = (props)=>{
|
|
|
3829
3976
|
get style () {
|
|
3830
3977
|
return local.style;
|
|
3831
3978
|
},
|
|
3832
|
-
|
|
3979
|
+
get role () {
|
|
3980
|
+
return local.role || "status";
|
|
3981
|
+
},
|
|
3982
|
+
get ["aria-label"] () {
|
|
3983
|
+
return local["aria-label"];
|
|
3984
|
+
},
|
|
3985
|
+
get ["aria-describedby"] () {
|
|
3986
|
+
return local["aria-describedby"];
|
|
3987
|
+
},
|
|
3988
|
+
get ["aria-labelledby"] () {
|
|
3989
|
+
return local["aria-labelledby"];
|
|
3990
|
+
},
|
|
3991
|
+
get ["aria-hidden"] () {
|
|
3992
|
+
return "presentation" === local.role || "none" === local.role ? true : void 0;
|
|
3993
|
+
}
|
|
3833
3994
|
}), false, true);
|
|
3834
3995
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>props.children);
|
|
3835
3996
|
return _el$;
|
|
@@ -3953,7 +4114,12 @@ const Loading = (props)=>{
|
|
|
3953
4114
|
"dataTheme",
|
|
3954
4115
|
"class",
|
|
3955
4116
|
"className",
|
|
3956
|
-
"style"
|
|
4117
|
+
"style",
|
|
4118
|
+
"aria-label",
|
|
4119
|
+
"aria-describedby",
|
|
4120
|
+
"aria-live",
|
|
4121
|
+
"aria-busy",
|
|
4122
|
+
"role"
|
|
3957
4123
|
]);
|
|
3958
4124
|
const classes = ()=>twMerge("loading", local.class, local.className, clsx({
|
|
3959
4125
|
"loading-xl": "xl" === local.size,
|
|
@@ -3987,6 +4153,21 @@ const Loading = (props)=>{
|
|
|
3987
4153
|
},
|
|
3988
4154
|
get style () {
|
|
3989
4155
|
return local.style;
|
|
4156
|
+
},
|
|
4157
|
+
get role () {
|
|
4158
|
+
return local.role || "status";
|
|
4159
|
+
},
|
|
4160
|
+
get ["aria-label"] () {
|
|
4161
|
+
return local["aria-label"] || "Loading";
|
|
4162
|
+
},
|
|
4163
|
+
get ["aria-describedby"] () {
|
|
4164
|
+
return local["aria-describedby"];
|
|
4165
|
+
},
|
|
4166
|
+
get ["aria-live"] () {
|
|
4167
|
+
return local["aria-live"] || "polite";
|
|
4168
|
+
},
|
|
4169
|
+
get ["aria-busy"] () {
|
|
4170
|
+
return local["aria-busy"] ?? true;
|
|
3990
4171
|
}
|
|
3991
4172
|
}), false, false);
|
|
3992
4173
|
return _el$;
|
|
@@ -4031,7 +4212,14 @@ const Button = (props)=>{
|
|
|
4031
4212
|
"class",
|
|
4032
4213
|
"className",
|
|
4033
4214
|
"style",
|
|
4034
|
-
"as"
|
|
4215
|
+
"as",
|
|
4216
|
+
"aria-label",
|
|
4217
|
+
"aria-describedby",
|
|
4218
|
+
"aria-pressed",
|
|
4219
|
+
"aria-expanded",
|
|
4220
|
+
"aria-controls",
|
|
4221
|
+
"aria-haspopup",
|
|
4222
|
+
"aria-role"
|
|
4035
4223
|
]);
|
|
4036
4224
|
const classes = ()=>twMerge("btn", local.class, local.className, clsx((local.startIcon && !local.loading || local.endIcon) && "gap-2", {
|
|
4037
4225
|
"btn-xl": "xl" === local.size,
|
|
@@ -4077,6 +4265,30 @@ const Button = (props)=>{
|
|
|
4077
4265
|
},
|
|
4078
4266
|
get disabled () {
|
|
4079
4267
|
return local.disabled;
|
|
4268
|
+
},
|
|
4269
|
+
get ["aria-label"] () {
|
|
4270
|
+
return local["aria-label"];
|
|
4271
|
+
},
|
|
4272
|
+
get ["aria-describedby"] () {
|
|
4273
|
+
return local["aria-describedby"];
|
|
4274
|
+
},
|
|
4275
|
+
get ["aria-pressed"] () {
|
|
4276
|
+
return "boolean" == typeof local["aria-pressed"] ? local["aria-pressed"] : void 0;
|
|
4277
|
+
},
|
|
4278
|
+
get ["aria-expanded"] () {
|
|
4279
|
+
return "boolean" == typeof local["aria-expanded"] ? local["aria-expanded"] : void 0;
|
|
4280
|
+
},
|
|
4281
|
+
get ["aria-controls"] () {
|
|
4282
|
+
return local["aria-controls"];
|
|
4283
|
+
},
|
|
4284
|
+
get ["aria-haspopup"] () {
|
|
4285
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>"boolean" == typeof local["aria-haspopup"])() ? String(local["aria-haspopup"]) : local["aria-haspopup"];
|
|
4286
|
+
},
|
|
4287
|
+
get ["aria-disabled"] () {
|
|
4288
|
+
return local.disabled;
|
|
4289
|
+
},
|
|
4290
|
+
get role () {
|
|
4291
|
+
return local["aria-role"];
|
|
4080
4292
|
}
|
|
4081
4293
|
}));
|
|
4082
4294
|
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.Dynamic, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
@@ -4094,6 +4306,30 @@ const Button = (props)=>{
|
|
|
4094
4306
|
get disabled () {
|
|
4095
4307
|
return local.disabled;
|
|
4096
4308
|
},
|
|
4309
|
+
get ["aria-label"] () {
|
|
4310
|
+
return local["aria-label"];
|
|
4311
|
+
},
|
|
4312
|
+
get ["aria-describedby"] () {
|
|
4313
|
+
return local["aria-describedby"];
|
|
4314
|
+
},
|
|
4315
|
+
get ["aria-pressed"] () {
|
|
4316
|
+
return "boolean" == typeof local["aria-pressed"] ? local["aria-pressed"] : void 0;
|
|
4317
|
+
},
|
|
4318
|
+
get ["aria-expanded"] () {
|
|
4319
|
+
return "boolean" == typeof local["aria-expanded"] ? local["aria-expanded"] : void 0;
|
|
4320
|
+
},
|
|
4321
|
+
get ["aria-controls"] () {
|
|
4322
|
+
return local["aria-controls"];
|
|
4323
|
+
},
|
|
4324
|
+
get ["aria-haspopup"] () {
|
|
4325
|
+
return true === local["aria-haspopup"] ? "true" : false === local["aria-haspopup"] ? "false" : local["aria-haspopup"];
|
|
4326
|
+
},
|
|
4327
|
+
get ["aria-disabled"] () {
|
|
4328
|
+
return local.disabled;
|
|
4329
|
+
},
|
|
4330
|
+
get role () {
|
|
4331
|
+
return local["aria-role"];
|
|
4332
|
+
},
|
|
4097
4333
|
get children () {
|
|
4098
4334
|
return [
|
|
4099
4335
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
@@ -5559,7 +5795,11 @@ const Card = (props)=>{
|
|
|
5559
5795
|
"class",
|
|
5560
5796
|
"className",
|
|
5561
5797
|
"dataTheme",
|
|
5562
|
-
"style"
|
|
5798
|
+
"style",
|
|
5799
|
+
"aria-label",
|
|
5800
|
+
"aria-describedby",
|
|
5801
|
+
"aria-labelledby",
|
|
5802
|
+
"role"
|
|
5563
5803
|
]);
|
|
5564
5804
|
const classes = twMerge("card", clsx({
|
|
5565
5805
|
"card-xl": "xl" === local.size,
|
|
@@ -5575,13 +5815,24 @@ const Card = (props)=>{
|
|
|
5575
5815
|
return (()=>{
|
|
5576
5816
|
var _el$ = Card_tmpl$();
|
|
5577
5817
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
5578
|
-
"aria-label": "Card",
|
|
5579
5818
|
class: classes,
|
|
5580
5819
|
get ["data-theme"] () {
|
|
5581
5820
|
return local.dataTheme;
|
|
5582
5821
|
},
|
|
5583
5822
|
get style () {
|
|
5584
5823
|
return local.style;
|
|
5824
|
+
},
|
|
5825
|
+
get role () {
|
|
5826
|
+
return local.role;
|
|
5827
|
+
},
|
|
5828
|
+
get ["aria-label"] () {
|
|
5829
|
+
return local["aria-label"];
|
|
5830
|
+
},
|
|
5831
|
+
get ["aria-describedby"] () {
|
|
5832
|
+
return local["aria-describedby"];
|
|
5833
|
+
},
|
|
5834
|
+
get ["aria-labelledby"] () {
|
|
5835
|
+
return local["aria-labelledby"];
|
|
5585
5836
|
}
|
|
5586
5837
|
}), false, false);
|
|
5587
5838
|
return _el$;
|
|
@@ -5593,48 +5844,90 @@ Card.Title = CardTitle;
|
|
|
5593
5844
|
Card.Image = CardImage;
|
|
5594
5845
|
const card_Card = Card;
|
|
5595
5846
|
var CarouselItem_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
5596
|
-
const
|
|
5847
|
+
const CarouselItem = (props)=>{
|
|
5597
5848
|
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
5598
5849
|
"class",
|
|
5599
|
-
"children"
|
|
5850
|
+
"children",
|
|
5851
|
+
"aria-current"
|
|
5600
5852
|
]);
|
|
5601
5853
|
const classes = twMerge("carousel-item", local.class);
|
|
5602
5854
|
return (()=>{
|
|
5603
5855
|
var _el$ = CarouselItem_tmpl$();
|
|
5604
5856
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(rest, {
|
|
5605
|
-
class: classes
|
|
5857
|
+
class: classes,
|
|
5858
|
+
role: "group",
|
|
5859
|
+
"aria-roledescription": "slide",
|
|
5860
|
+
get ["aria-current"] () {
|
|
5861
|
+
return local["aria-current"];
|
|
5862
|
+
}
|
|
5606
5863
|
}), false, true);
|
|
5607
5864
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>local.children);
|
|
5608
5865
|
return _el$;
|
|
5609
5866
|
})();
|
|
5610
5867
|
};
|
|
5611
|
-
const
|
|
5612
|
-
var Carousel_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
5868
|
+
const carousel_CarouselItem = CarouselItem;
|
|
5869
|
+
var Carousel_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><div class=carousel-content>");
|
|
5613
5870
|
const Carousel = (props)=>{
|
|
5614
5871
|
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
5615
5872
|
"class",
|
|
5616
5873
|
"children",
|
|
5617
5874
|
"snap",
|
|
5618
|
-
"direction"
|
|
5875
|
+
"direction",
|
|
5876
|
+
"aria-label",
|
|
5877
|
+
"aria-roledescription",
|
|
5878
|
+
"aria-describedby",
|
|
5879
|
+
"aria-labelledby",
|
|
5880
|
+
"aria-live",
|
|
5881
|
+
"aria-atomic"
|
|
5619
5882
|
]);
|
|
5620
|
-
const classes = twMerge("carousel", local.class, dist_clsx({
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5883
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("carousel", local.class, dist_clsx({
|
|
5884
|
+
"carousel-start": "start" === local.snap || !local.snap,
|
|
5885
|
+
"carousel-center": "center" === local.snap,
|
|
5886
|
+
"carousel-end": "end" === local.snap,
|
|
5887
|
+
"carousel-vertical": "vertical" === local.direction,
|
|
5888
|
+
"carousel-horizontal": "horizontal" === local.direction
|
|
5889
|
+
})));
|
|
5890
|
+
const ariaRoleDescription = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>local["aria-roledescription"] || "carousel");
|
|
5891
|
+
const ariaLabel = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>local["aria-label"]);
|
|
5892
|
+
const ariaDescribedby = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>local["aria-describedby"]);
|
|
5893
|
+
const ariaLabelledby = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>local["aria-labelledby"]);
|
|
5894
|
+
const ariaLive = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>local["aria-live"] || "polite");
|
|
5895
|
+
const ariaAtomic = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>local["aria-atomic"] || false);
|
|
5627
5896
|
return (()=>{
|
|
5628
|
-
var _el$ = Carousel_tmpl$();
|
|
5897
|
+
var _el$ = Carousel_tmpl$(), _el$2 = _el$.firstChild;
|
|
5629
5898
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(rest, {
|
|
5630
|
-
class
|
|
5899
|
+
get ["class"] () {
|
|
5900
|
+
return classes();
|
|
5901
|
+
},
|
|
5902
|
+
role: "region",
|
|
5903
|
+
get ["aria-roledescription"] () {
|
|
5904
|
+
return ariaRoleDescription();
|
|
5905
|
+
},
|
|
5906
|
+
get ["aria-label"] () {
|
|
5907
|
+
return ariaLabel();
|
|
5908
|
+
},
|
|
5909
|
+
get ["aria-describedby"] () {
|
|
5910
|
+
return ariaDescribedby();
|
|
5911
|
+
},
|
|
5912
|
+
get ["aria-labelledby"] () {
|
|
5913
|
+
return ariaLabelledby();
|
|
5914
|
+
}
|
|
5631
5915
|
}), false, true);
|
|
5632
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el
|
|
5916
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, ()=>local.children);
|
|
5917
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
5918
|
+
var _v$ = ariaLive(), _v$2 = ariaAtomic();
|
|
5919
|
+
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$2, "aria-live", _p$.e = _v$);
|
|
5920
|
+
_v$2 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$2, "aria-atomic", _p$.t = _v$2);
|
|
5921
|
+
return _p$;
|
|
5922
|
+
}, {
|
|
5923
|
+
e: void 0,
|
|
5924
|
+
t: void 0
|
|
5925
|
+
});
|
|
5633
5926
|
return _el$;
|
|
5634
5927
|
})();
|
|
5635
5928
|
};
|
|
5636
5929
|
const carousel_Carousel = Object.assign(Carousel, {
|
|
5637
|
-
Item:
|
|
5930
|
+
Item: carousel_CarouselItem
|
|
5638
5931
|
});
|
|
5639
5932
|
var ChatBubbleHeader_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
5640
5933
|
const ChatBubbleHeader_ChatBubbleHeader = (props)=>(()=>{
|
|
@@ -5749,7 +6042,12 @@ const Checkbox = (props)=>{
|
|
|
5749
6042
|
"dataTheme",
|
|
5750
6043
|
"class",
|
|
5751
6044
|
"className",
|
|
5752
|
-
"style"
|
|
6045
|
+
"style",
|
|
6046
|
+
"aria-label",
|
|
6047
|
+
"aria-describedby",
|
|
6048
|
+
"aria-invalid",
|
|
6049
|
+
"aria-required",
|
|
6050
|
+
"aria-labelledby"
|
|
5753
6051
|
]);
|
|
5754
6052
|
const classes = ()=>twMerge("checkbox", local.class, local.className, clsx({
|
|
5755
6053
|
"checkbox-xl": "xl" === local.size,
|
|
@@ -5785,6 +6083,24 @@ const Checkbox = (props)=>{
|
|
|
5785
6083
|
},
|
|
5786
6084
|
get style () {
|
|
5787
6085
|
return local.style;
|
|
6086
|
+
},
|
|
6087
|
+
get ["aria-label"] () {
|
|
6088
|
+
return local["aria-label"];
|
|
6089
|
+
},
|
|
6090
|
+
get ["aria-describedby"] () {
|
|
6091
|
+
return local["aria-describedby"];
|
|
6092
|
+
},
|
|
6093
|
+
get ["aria-invalid"] () {
|
|
6094
|
+
return local["aria-invalid"];
|
|
6095
|
+
},
|
|
6096
|
+
get ["aria-required"] () {
|
|
6097
|
+
return local["aria-required"];
|
|
6098
|
+
},
|
|
6099
|
+
get ["aria-labelledby"] () {
|
|
6100
|
+
return local["aria-labelledby"];
|
|
6101
|
+
},
|
|
6102
|
+
get ["aria-checked"] () {
|
|
6103
|
+
return local.indeterminate ? "mixed" : props.checked ?? props.defaultChecked ?? void 0;
|
|
5788
6104
|
}
|
|
5789
6105
|
}), false, false);
|
|
5790
6106
|
return _el$;
|
|
@@ -6371,20 +6687,32 @@ const Drawer = Drawer_Drawer;
|
|
|
6371
6687
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
6372
6688
|
"click"
|
|
6373
6689
|
]);
|
|
6374
|
-
var DropdownToggle_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<label tabindex=0>");
|
|
6690
|
+
var DropdownToggle_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<label tabindex=0>"), DropdownToggle_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<summary>");
|
|
6375
6691
|
const DropdownToggle = (props)=>{
|
|
6376
6692
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
6377
6693
|
"children",
|
|
6378
6694
|
"color",
|
|
6379
6695
|
"size",
|
|
6380
6696
|
"button",
|
|
6697
|
+
"disabled",
|
|
6381
6698
|
"dataTheme",
|
|
6382
6699
|
"class",
|
|
6383
|
-
"
|
|
6700
|
+
"id",
|
|
6701
|
+
"role",
|
|
6702
|
+
"aria-haspopup",
|
|
6703
|
+
"aria-expanded",
|
|
6704
|
+
"aria-controls"
|
|
6384
6705
|
]);
|
|
6706
|
+
const commonAriaProps = {
|
|
6707
|
+
id: local.id,
|
|
6708
|
+
role: local.role,
|
|
6709
|
+
"aria-haspopup": local["aria-haspopup"],
|
|
6710
|
+
"aria-expanded": local["aria-expanded"],
|
|
6711
|
+
"aria-controls": local["aria-controls"]
|
|
6712
|
+
};
|
|
6385
6713
|
return (()=>{
|
|
6386
6714
|
var _el$ = DropdownToggle_tmpl$();
|
|
6387
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
6715
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, commonAriaProps, {
|
|
6388
6716
|
get ["class"] () {
|
|
6389
6717
|
return local.class;
|
|
6390
6718
|
}
|
|
@@ -6397,7 +6725,7 @@ const DropdownToggle = (props)=>{
|
|
|
6397
6725
|
return local.children;
|
|
6398
6726
|
},
|
|
6399
6727
|
get children () {
|
|
6400
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(button_Button, {
|
|
6728
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(button_Button, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
6401
6729
|
type: "button",
|
|
6402
6730
|
get dataTheme () {
|
|
6403
6731
|
return local.dataTheme;
|
|
@@ -6410,19 +6738,23 @@ const DropdownToggle = (props)=>{
|
|
|
6410
6738
|
},
|
|
6411
6739
|
get disabled () {
|
|
6412
6740
|
return local.disabled;
|
|
6413
|
-
}
|
|
6741
|
+
}
|
|
6742
|
+
}, commonAriaProps, {
|
|
6414
6743
|
get children () {
|
|
6415
6744
|
return local.children;
|
|
6416
6745
|
}
|
|
6417
|
-
});
|
|
6746
|
+
}));
|
|
6418
6747
|
}
|
|
6419
6748
|
}));
|
|
6420
6749
|
return _el$;
|
|
6421
6750
|
})();
|
|
6422
6751
|
};
|
|
6423
|
-
const DropdownToggle_Summary = (props)=>(
|
|
6424
|
-
|
|
6425
|
-
|
|
6752
|
+
const DropdownToggle_Summary = (props)=>(()=>{
|
|
6753
|
+
var _el$2 = DropdownToggle_tmpl$2();
|
|
6754
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$2, props, false, true);
|
|
6755
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, ()=>props.children);
|
|
6756
|
+
return _el$2;
|
|
6757
|
+
})();
|
|
6426
6758
|
const dropdown_DropdownToggle = DropdownToggle;
|
|
6427
6759
|
var DropdownDetails_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<details role=listbox>");
|
|
6428
6760
|
const Details = (props)=>{
|
|
@@ -6462,18 +6794,49 @@ const Details = (props)=>{
|
|
|
6462
6794
|
const DropdownDetails = Object.assign(Details, {
|
|
6463
6795
|
Toggle: DropdownToggle_Summary
|
|
6464
6796
|
});
|
|
6797
|
+
var DropdownItem_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<li role=menuitem>"), DropdownItem_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<a>");
|
|
6798
|
+
const DropdownItem = (props)=>{
|
|
6799
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
6800
|
+
"anchor",
|
|
6801
|
+
"children",
|
|
6802
|
+
"aria-selected"
|
|
6803
|
+
]);
|
|
6804
|
+
return (()=>{
|
|
6805
|
+
var _el$ = DropdownItem_tmpl$();
|
|
6806
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (()=>{
|
|
6807
|
+
var _c$ = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!(local.anchor ?? true));
|
|
6808
|
+
return ()=>_c$() ? (()=>{
|
|
6809
|
+
var _el$2 = DropdownItem_tmpl$2();
|
|
6810
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$2, others, false, true);
|
|
6811
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, ()=>local.children);
|
|
6812
|
+
return _el$2;
|
|
6813
|
+
})() : local.children;
|
|
6814
|
+
})());
|
|
6815
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "aria-selected", local["aria-selected"]));
|
|
6816
|
+
return _el$;
|
|
6817
|
+
})();
|
|
6818
|
+
};
|
|
6819
|
+
const dropdown_DropdownItem = DropdownItem;
|
|
6465
6820
|
var DropdownMenu_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<ul>");
|
|
6466
6821
|
const DropdownMenu = (props)=>{
|
|
6467
6822
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
6468
6823
|
"class",
|
|
6469
6824
|
"className",
|
|
6470
6825
|
"data-theme",
|
|
6471
|
-
"style"
|
|
6826
|
+
"style",
|
|
6827
|
+
"id",
|
|
6828
|
+
"aria-labelledby"
|
|
6472
6829
|
]);
|
|
6473
6830
|
const classes = ()=>twMerge("dropdown-content menu p-2 shadow bg-base-100 rounded-box", local.class, local.className);
|
|
6474
6831
|
return (()=>{
|
|
6475
6832
|
var _el$ = DropdownMenu_tmpl$();
|
|
6476
6833
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
6834
|
+
get id () {
|
|
6835
|
+
return local.id;
|
|
6836
|
+
},
|
|
6837
|
+
get ["aria-labelledby"] () {
|
|
6838
|
+
return local["aria-labelledby"];
|
|
6839
|
+
},
|
|
6477
6840
|
tabindex: 0,
|
|
6478
6841
|
get ["data-theme"] () {
|
|
6479
6842
|
return local["data-theme"];
|
|
@@ -6490,28 +6853,7 @@ const DropdownMenu = (props)=>{
|
|
|
6490
6853
|
})();
|
|
6491
6854
|
};
|
|
6492
6855
|
const dropdown_DropdownMenu = DropdownMenu;
|
|
6493
|
-
var
|
|
6494
|
-
const DropdownItem = (props)=>{
|
|
6495
|
-
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
6496
|
-
"anchor",
|
|
6497
|
-
"children"
|
|
6498
|
-
]);
|
|
6499
|
-
return (()=>{
|
|
6500
|
-
var _el$ = DropdownItem_tmpl$();
|
|
6501
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (()=>{
|
|
6502
|
-
var _c$ = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!(local.anchor ?? true));
|
|
6503
|
-
return ()=>_c$() ? (()=>{
|
|
6504
|
-
var _el$2 = DropdownItem_tmpl$2();
|
|
6505
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$2, others, false, true);
|
|
6506
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, ()=>local.children);
|
|
6507
|
-
return _el$2;
|
|
6508
|
-
})() : local.children;
|
|
6509
|
-
})());
|
|
6510
|
-
return _el$;
|
|
6511
|
-
})();
|
|
6512
|
-
};
|
|
6513
|
-
const dropdown_DropdownItem = DropdownItem;
|
|
6514
|
-
var Dropdown_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<label tabindex=0>"), Dropdown_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<ul class=dropdown-content>"), Dropdown_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div role=listbox>");
|
|
6856
|
+
var Dropdown_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<label tabindex=0>"), Dropdown_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<ul class=dropdown-content role=listbox>"), Dropdown_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
6515
6857
|
const Dropdown_classesFn = ({ className, horizontal, vertical, end, hover, open })=>twMerge("dropdown", className, clsx({
|
|
6516
6858
|
"dropdown-left": "left" === horizontal,
|
|
6517
6859
|
"dropdown-right": "right" === horizontal,
|
|
@@ -6531,7 +6873,12 @@ const Dropdown = (props)=>{
|
|
|
6531
6873
|
"end",
|
|
6532
6874
|
"hover",
|
|
6533
6875
|
"open",
|
|
6534
|
-
"dataTheme"
|
|
6876
|
+
"dataTheme",
|
|
6877
|
+
"aria-label",
|
|
6878
|
+
"aria-describedby",
|
|
6879
|
+
"aria-expanded",
|
|
6880
|
+
"aria-haspopup",
|
|
6881
|
+
"aria-labelledby"
|
|
6535
6882
|
]);
|
|
6536
6883
|
const classes = ()=>Dropdown_classesFn({
|
|
6537
6884
|
className: local.className,
|
|
@@ -6543,12 +6890,31 @@ const Dropdown = (props)=>{
|
|
|
6543
6890
|
});
|
|
6544
6891
|
return (()=>{
|
|
6545
6892
|
var _el$ = Dropdown_tmpl$3();
|
|
6546
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(
|
|
6893
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
6894
|
+
get role () {
|
|
6895
|
+
return local.item ? "combobox" : "listbox";
|
|
6896
|
+
}
|
|
6897
|
+
}, others, {
|
|
6547
6898
|
get ["data-theme"] () {
|
|
6548
6899
|
return local.dataTheme;
|
|
6549
6900
|
},
|
|
6550
6901
|
get ["class"] () {
|
|
6551
6902
|
return classes();
|
|
6903
|
+
},
|
|
6904
|
+
get ["aria-label"] () {
|
|
6905
|
+
return local["aria-label"];
|
|
6906
|
+
},
|
|
6907
|
+
get ["aria-describedby"] () {
|
|
6908
|
+
return local["aria-describedby"];
|
|
6909
|
+
},
|
|
6910
|
+
get ["aria-expanded"] () {
|
|
6911
|
+
return local["aria-expanded"] ?? local.open;
|
|
6912
|
+
},
|
|
6913
|
+
get ["aria-haspopup"] () {
|
|
6914
|
+
return true === local["aria-haspopup"] ? "true" : false === local["aria-haspopup"] ? "false" : local["aria-haspopup"] || (local.item ? "listbox" : "true");
|
|
6915
|
+
},
|
|
6916
|
+
get ["aria-labelledby"] () {
|
|
6917
|
+
return local["aria-labelledby"];
|
|
6552
6918
|
}
|
|
6553
6919
|
}), false, true);
|
|
6554
6920
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
@@ -6628,6 +6994,55 @@ const FileInput_FileInput = (props)=>{
|
|
|
6628
6994
|
})();
|
|
6629
6995
|
};
|
|
6630
6996
|
const FileInput = FileInput_FileInput;
|
|
6997
|
+
const breakpoints = [
|
|
6998
|
+
"base",
|
|
6999
|
+
"sm",
|
|
7000
|
+
"md",
|
|
7001
|
+
"lg",
|
|
7002
|
+
"xl"
|
|
7003
|
+
];
|
|
7004
|
+
function isJSXElement(node) {
|
|
7005
|
+
return "object" == typeof node && null !== node;
|
|
7006
|
+
}
|
|
7007
|
+
function wrapWithElementIfInvalid({ node, wrapper = "div", className = "" }) {
|
|
7008
|
+
null == node || "string" == typeof node || "number" == typeof node || isJSXElement(node);
|
|
7009
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.Dynamic, {
|
|
7010
|
+
component: wrapper,
|
|
7011
|
+
class: className,
|
|
7012
|
+
children: node
|
|
7013
|
+
});
|
|
7014
|
+
}
|
|
7015
|
+
function mapResponsiveProp(prop, classMap) {
|
|
7016
|
+
if (void 0 === prop) return [];
|
|
7017
|
+
if ("string" == typeof prop || "boolean" == typeof prop) return [
|
|
7018
|
+
classMap[String(prop)]
|
|
7019
|
+
];
|
|
7020
|
+
return breakpoints.flatMap((bp)=>{
|
|
7021
|
+
const value = prop[bp];
|
|
7022
|
+
if (void 0 === value) return [];
|
|
7023
|
+
const className = classMap[String(value)];
|
|
7024
|
+
return "base" === bp ? [
|
|
7025
|
+
className
|
|
7026
|
+
] : [
|
|
7027
|
+
`${bp}:${className}`
|
|
7028
|
+
];
|
|
7029
|
+
});
|
|
7030
|
+
}
|
|
7031
|
+
function useDesktop(breakpoint = 1024) {
|
|
7032
|
+
const [isDesktop, setIsDesktop] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(false);
|
|
7033
|
+
const checkIfDesktop = ()=>{
|
|
7034
|
+
const width = window.innerWidth;
|
|
7035
|
+
setIsDesktop(width >= breakpoint);
|
|
7036
|
+
};
|
|
7037
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onMount)(()=>{
|
|
7038
|
+
checkIfDesktop();
|
|
7039
|
+
window.addEventListener("resize", checkIfDesktop);
|
|
7040
|
+
});
|
|
7041
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
|
|
7042
|
+
window.removeEventListener("resize", checkIfDesktop);
|
|
7043
|
+
});
|
|
7044
|
+
return isDesktop;
|
|
7045
|
+
}
|
|
6631
7046
|
const directionMap = {
|
|
6632
7047
|
row: "flex-row",
|
|
6633
7048
|
col: "flex-col",
|
|
@@ -6690,25 +7105,6 @@ const basisMap = {
|
|
|
6690
7105
|
lg: "basis-24",
|
|
6691
7106
|
xl: "basis-32"
|
|
6692
7107
|
};
|
|
6693
|
-
const breakpoints = [
|
|
6694
|
-
"base",
|
|
6695
|
-
"sm",
|
|
6696
|
-
"md",
|
|
6697
|
-
"lg",
|
|
6698
|
-
"xl"
|
|
6699
|
-
];
|
|
6700
|
-
function mapResponsiveProp(prop, map) {
|
|
6701
|
-
if (void 0 === prop) return [];
|
|
6702
|
-
if ("string" == typeof prop || "boolean" == typeof prop) return [
|
|
6703
|
-
map[String(prop)]
|
|
6704
|
-
];
|
|
6705
|
-
return breakpoints.flatMap((bp)=>{
|
|
6706
|
-
const value = prop[bp];
|
|
6707
|
-
if (void 0 === value) return [];
|
|
6708
|
-
const className = map[String(value)];
|
|
6709
|
-
return "base" === bp ? className : `${bp}:${className}`;
|
|
6710
|
-
});
|
|
6711
|
-
}
|
|
6712
7108
|
const Flex = (props)=>{
|
|
6713
7109
|
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
6714
7110
|
"as",
|
|
@@ -6948,18 +7344,7 @@ const autoRowsMap = {
|
|
|
6948
7344
|
max: "auto-rows-max",
|
|
6949
7345
|
fr: "auto-rows-fr"
|
|
6950
7346
|
};
|
|
6951
|
-
|
|
6952
|
-
if (!prop) return [];
|
|
6953
|
-
if ("string" == typeof prop) return classMap[prop] ? [
|
|
6954
|
-
classMap[prop]
|
|
6955
|
-
] : [];
|
|
6956
|
-
return Object.entries(prop).flatMap(([key, val])=>{
|
|
6957
|
-
const className = classMap[val];
|
|
6958
|
-
if (!className) return [];
|
|
6959
|
-
return "base" === key ? className : `${key}:${className}`;
|
|
6960
|
-
});
|
|
6961
|
-
}
|
|
6962
|
-
const Grid = (props)=>{
|
|
7347
|
+
const Grid_Grid = (props)=>{
|
|
6963
7348
|
const merged = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.mergeProps)({
|
|
6964
7349
|
as: "div"
|
|
6965
7350
|
}, props);
|
|
@@ -6967,6 +7352,7 @@ const Grid = (props)=>{
|
|
|
6967
7352
|
"as",
|
|
6968
7353
|
"class",
|
|
6969
7354
|
"className",
|
|
7355
|
+
"children",
|
|
6970
7356
|
"cols",
|
|
6971
7357
|
"rows",
|
|
6972
7358
|
"flow",
|
|
@@ -6974,17 +7360,22 @@ const Grid = (props)=>{
|
|
|
6974
7360
|
"autoCols",
|
|
6975
7361
|
"autoRows"
|
|
6976
7362
|
]);
|
|
6977
|
-
const
|
|
7363
|
+
const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
7364
|
+
const classes = dist_clsx("grid", mapResponsiveProp(local.cols, colsMap), mapResponsiveProp(local.rows, rowsMap), mapResponsiveProp(local.flow, flowMap), mapResponsiveProp(local.gap, Grid_gapMap), mapResponsiveProp(local.autoCols, autoColsMap), mapResponsiveProp(local.autoRows, autoRowsMap), local.class, local.className);
|
|
6978
7365
|
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.Dynamic, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
6979
7366
|
get component () {
|
|
6980
7367
|
return local.as;
|
|
6981
7368
|
},
|
|
6982
7369
|
get ["class"] () {
|
|
6983
|
-
return classes
|
|
7370
|
+
return twMerge(classes);
|
|
7371
|
+
}
|
|
7372
|
+
}, rest, {
|
|
7373
|
+
get children () {
|
|
7374
|
+
return resolvedChildren();
|
|
6984
7375
|
}
|
|
6985
|
-
}
|
|
7376
|
+
}));
|
|
6986
7377
|
};
|
|
6987
|
-
const
|
|
7378
|
+
const Grid = Grid_Grid;
|
|
6988
7379
|
var HeroContent_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
6989
7380
|
const HeroContent = (props)=>{
|
|
6990
7381
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -7167,7 +7558,12 @@ const Input = (props)=>{
|
|
|
7167
7558
|
"style",
|
|
7168
7559
|
"leftIcon",
|
|
7169
7560
|
"rightIcon",
|
|
7170
|
-
"
|
|
7561
|
+
"placeholder",
|
|
7562
|
+
"type",
|
|
7563
|
+
"aria-label",
|
|
7564
|
+
"aria-describedby",
|
|
7565
|
+
"aria-invalid",
|
|
7566
|
+
"aria-required"
|
|
7171
7567
|
]);
|
|
7172
7568
|
const [passwordVisible, setPasswordVisible] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(false);
|
|
7173
7569
|
const inputType = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
@@ -7202,6 +7598,21 @@ const Input = (props)=>{
|
|
|
7202
7598
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
7203
7599
|
get type () {
|
|
7204
7600
|
return inputType();
|
|
7601
|
+
},
|
|
7602
|
+
get ["aria-label"] () {
|
|
7603
|
+
return local["aria-label"];
|
|
7604
|
+
},
|
|
7605
|
+
get ["aria-describedby"] () {
|
|
7606
|
+
return local["aria-describedby"];
|
|
7607
|
+
},
|
|
7608
|
+
get ["aria-invalid"] () {
|
|
7609
|
+
return local["aria-invalid"];
|
|
7610
|
+
},
|
|
7611
|
+
get ["aria-required"] () {
|
|
7612
|
+
return local["aria-required"];
|
|
7613
|
+
},
|
|
7614
|
+
get placeholder () {
|
|
7615
|
+
return local["placeholder"];
|
|
7205
7616
|
}
|
|
7206
7617
|
}), false, false);
|
|
7207
7618
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
@@ -7212,15 +7623,27 @@ const Input = (props)=>{
|
|
|
7212
7623
|
var _el$3 = Input_tmpl$();
|
|
7213
7624
|
_el$3.$$click = ()=>setPasswordVisible(!passwordVisible());
|
|
7214
7625
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, ()=>local.rightIcon);
|
|
7215
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>
|
|
7626
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
7627
|
+
var _v$ = "password" === local.type ? "cursor-pointer" : "", _v$2 = "password" === local.type ? "button" : void 0, _v$3 = "password" === local.type ? passwordVisible() ? "Hide password" : "Show password" : void 0, _v$4 = "password" === local.type ? 0 : void 0;
|
|
7628
|
+
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$3, _p$.e = _v$);
|
|
7629
|
+
_v$2 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$3, "role", _p$.t = _v$2);
|
|
7630
|
+
_v$3 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$3, "aria-label", _p$.a = _v$3);
|
|
7631
|
+
_v$4 !== _p$.o && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$3, "tabindex", _p$.o = _v$4);
|
|
7632
|
+
return _p$;
|
|
7633
|
+
}, {
|
|
7634
|
+
e: void 0,
|
|
7635
|
+
t: void 0,
|
|
7636
|
+
a: void 0,
|
|
7637
|
+
o: void 0
|
|
7638
|
+
});
|
|
7216
7639
|
return _el$3;
|
|
7217
7640
|
}
|
|
7218
7641
|
}), null);
|
|
7219
7642
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
7220
|
-
var _v$ = classes(), _v$
|
|
7221
|
-
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, _p$.e = _v$);
|
|
7222
|
-
_p$.t = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$, _v$
|
|
7223
|
-
_v$
|
|
7643
|
+
var _v$5 = classes(), _v$6 = local.style, _v$7 = local.dataTheme;
|
|
7644
|
+
_v$5 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, _p$.e = _v$5);
|
|
7645
|
+
_p$.t = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$, _v$6, _p$.t);
|
|
7646
|
+
_v$7 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "data-theme", _p$.a = _v$7);
|
|
7224
7647
|
return _p$;
|
|
7225
7648
|
}, {
|
|
7226
7649
|
e: void 0,
|
|
@@ -7757,6 +8180,84 @@ const NavbarSection = (props)=>{
|
|
|
7757
8180
|
})();
|
|
7758
8181
|
};
|
|
7759
8182
|
const navbar_NavbarSection = NavbarSection;
|
|
8183
|
+
var NavbarStack_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
8184
|
+
const NavbarStack_NavbarStack = (props)=>{
|
|
8185
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
8186
|
+
"children",
|
|
8187
|
+
"sticky",
|
|
8188
|
+
"container",
|
|
8189
|
+
"class",
|
|
8190
|
+
"className",
|
|
8191
|
+
"style",
|
|
8192
|
+
"dataTheme"
|
|
8193
|
+
]);
|
|
8194
|
+
const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
8195
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("navbar-stack", local.class, local.className, clsx({
|
|
8196
|
+
"sticky top-0 z-30": local.sticky,
|
|
8197
|
+
"max-w-screen-xl mx-auto px-4": local.container
|
|
8198
|
+
})));
|
|
8199
|
+
return (()=>{
|
|
8200
|
+
var _el$ = NavbarStack_tmpl$();
|
|
8201
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
8202
|
+
get ["class"] () {
|
|
8203
|
+
return classes();
|
|
8204
|
+
},
|
|
8205
|
+
get style () {
|
|
8206
|
+
return local.style;
|
|
8207
|
+
},
|
|
8208
|
+
get ["data-theme"] () {
|
|
8209
|
+
return local.dataTheme;
|
|
8210
|
+
}
|
|
8211
|
+
}, others), false, true);
|
|
8212
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, resolvedChildren);
|
|
8213
|
+
return _el$;
|
|
8214
|
+
})();
|
|
8215
|
+
};
|
|
8216
|
+
const NavbarStack = NavbarStack_NavbarStack;
|
|
8217
|
+
var NavbarRow_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
8218
|
+
const NavbarRow = (props)=>{
|
|
8219
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
8220
|
+
"children",
|
|
8221
|
+
"bordered",
|
|
8222
|
+
"padded",
|
|
8223
|
+
"color",
|
|
8224
|
+
"class",
|
|
8225
|
+
"className",
|
|
8226
|
+
"style",
|
|
8227
|
+
"dataTheme"
|
|
8228
|
+
]);
|
|
8229
|
+
const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
8230
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("flex items-center", local.class, local.className, clsx({
|
|
8231
|
+
"border-b border-gray-200": true === local.bordered,
|
|
8232
|
+
"px-4 py-2": false !== local.padded,
|
|
8233
|
+
"bg-base-100": !local.color || "ghost" === local.color,
|
|
8234
|
+
"bg-neutral text-neutral-content": "neutral" === local.color,
|
|
8235
|
+
"bg-primary text-primary-content": "primary" === local.color,
|
|
8236
|
+
"bg-secondary text-secondary-content": "secondary" === local.color,
|
|
8237
|
+
"bg-accent text-accent-content": "accent" === local.color,
|
|
8238
|
+
"bg-info text-info-content": "info" === local.color,
|
|
8239
|
+
"bg-success text-success-content": "success" === local.color,
|
|
8240
|
+
"bg-warning text-warning-content": "warning" === local.color,
|
|
8241
|
+
"bg-error text-error-content": "error" === local.color
|
|
8242
|
+
})));
|
|
8243
|
+
return (()=>{
|
|
8244
|
+
var _el$ = NavbarRow_tmpl$();
|
|
8245
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
8246
|
+
get ["class"] () {
|
|
8247
|
+
return classes();
|
|
8248
|
+
},
|
|
8249
|
+
get style () {
|
|
8250
|
+
return local.style;
|
|
8251
|
+
},
|
|
8252
|
+
get ["data-theme"] () {
|
|
8253
|
+
return local.dataTheme;
|
|
8254
|
+
}
|
|
8255
|
+
}, others), false, true);
|
|
8256
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, resolvedChildren);
|
|
8257
|
+
return _el$;
|
|
8258
|
+
})();
|
|
8259
|
+
};
|
|
8260
|
+
const navbar_NavbarRow = NavbarRow;
|
|
7760
8261
|
const Navbar = (props)=>{
|
|
7761
8262
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
7762
8263
|
"as",
|
|
@@ -7799,7 +8300,9 @@ const NavbarEnd = (props)=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__
|
|
|
7799
8300
|
const navbar_Navbar = Object.assign(Navbar, {
|
|
7800
8301
|
Start: NavbarStart,
|
|
7801
8302
|
Center: NavbarCenter,
|
|
7802
|
-
End: NavbarEnd
|
|
8303
|
+
End: NavbarEnd,
|
|
8304
|
+
Stack: NavbarStack,
|
|
8305
|
+
Row: navbar_NavbarRow
|
|
7803
8306
|
});
|
|
7804
8307
|
const Pagination = join_Join;
|
|
7805
8308
|
const pagination_Pagination = Pagination;
|
|
@@ -7848,7 +8351,14 @@ const Progress_Progress = (props)=>{
|
|
|
7848
8351
|
"color",
|
|
7849
8352
|
"class",
|
|
7850
8353
|
"className",
|
|
7851
|
-
"dataTheme"
|
|
8354
|
+
"dataTheme",
|
|
8355
|
+
"aria-label",
|
|
8356
|
+
"aria-describedby",
|
|
8357
|
+
"aria-valuenow",
|
|
8358
|
+
"aria-valuemin",
|
|
8359
|
+
"aria-valuemax",
|
|
8360
|
+
"aria-valuetext",
|
|
8361
|
+
"aria-labelledby"
|
|
7852
8362
|
]);
|
|
7853
8363
|
const classes = twMerge("progress", dist_clsx({
|
|
7854
8364
|
"progress-primary": "primary" === local.color,
|
|
@@ -7860,12 +8370,39 @@ const Progress_Progress = (props)=>{
|
|
|
7860
8370
|
"progress-error": "error" === local.color,
|
|
7861
8371
|
"progress-ghost": "ghost" === local.color
|
|
7862
8372
|
}), local.class, local.className);
|
|
8373
|
+
const getAriaValueNow = ()=>{
|
|
8374
|
+
if (void 0 !== local["aria-valuenow"]) return local["aria-valuenow"];
|
|
8375
|
+
const value = others.value;
|
|
8376
|
+
if ('number' == typeof value || 'string' == typeof value) return value;
|
|
8377
|
+
};
|
|
7863
8378
|
return (()=>{
|
|
7864
8379
|
var _el$ = Progress_tmpl$();
|
|
7865
8380
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
7866
8381
|
class: classes,
|
|
7867
8382
|
get ["data-theme"] () {
|
|
7868
8383
|
return local.dataTheme;
|
|
8384
|
+
},
|
|
8385
|
+
role: "progressbar",
|
|
8386
|
+
get ["aria-label"] () {
|
|
8387
|
+
return local["aria-label"];
|
|
8388
|
+
},
|
|
8389
|
+
get ["aria-describedby"] () {
|
|
8390
|
+
return local["aria-describedby"];
|
|
8391
|
+
},
|
|
8392
|
+
get ["aria-valuenow"] () {
|
|
8393
|
+
return getAriaValueNow();
|
|
8394
|
+
},
|
|
8395
|
+
get ["aria-valuemin"] () {
|
|
8396
|
+
return local["aria-valuemin"] || 0;
|
|
8397
|
+
},
|
|
8398
|
+
get ["aria-valuemax"] () {
|
|
8399
|
+
return local["aria-valuemax"] || others.max || 100;
|
|
8400
|
+
},
|
|
8401
|
+
get ["aria-valuetext"] () {
|
|
8402
|
+
return local["aria-valuetext"];
|
|
8403
|
+
},
|
|
8404
|
+
get ["aria-labelledby"] () {
|
|
8405
|
+
return local["aria-labelledby"];
|
|
7869
8406
|
}
|
|
7870
8407
|
}), false, false);
|
|
7871
8408
|
return _el$;
|
|
@@ -7974,7 +8511,13 @@ const Radio = (props)=>{
|
|
|
7974
8511
|
"size",
|
|
7975
8512
|
"name",
|
|
7976
8513
|
"type",
|
|
7977
|
-
"data-theme"
|
|
8514
|
+
"data-theme",
|
|
8515
|
+
"aria-label",
|
|
8516
|
+
"aria-describedby",
|
|
8517
|
+
"aria-invalid",
|
|
8518
|
+
"aria-required",
|
|
8519
|
+
"aria-labelledby",
|
|
8520
|
+
"aria-checked"
|
|
7978
8521
|
]);
|
|
7979
8522
|
const classes = twMerge("radio", local.class, dist_clsx({
|
|
7980
8523
|
"radio-xs": "xs" === local.size,
|
|
@@ -8000,6 +8543,24 @@ const Radio = (props)=>{
|
|
|
8000
8543
|
class: classes,
|
|
8001
8544
|
get ["data-theme"] () {
|
|
8002
8545
|
return local["data-theme"];
|
|
8546
|
+
},
|
|
8547
|
+
get ["aria-label"] () {
|
|
8548
|
+
return local["aria-label"];
|
|
8549
|
+
},
|
|
8550
|
+
get ["aria-describedby"] () {
|
|
8551
|
+
return local["aria-describedby"];
|
|
8552
|
+
},
|
|
8553
|
+
get ["aria-invalid"] () {
|
|
8554
|
+
return local["aria-invalid"];
|
|
8555
|
+
},
|
|
8556
|
+
get ["aria-required"] () {
|
|
8557
|
+
return local["aria-required"];
|
|
8558
|
+
},
|
|
8559
|
+
get ["aria-labelledby"] () {
|
|
8560
|
+
return local["aria-labelledby"];
|
|
8561
|
+
},
|
|
8562
|
+
get ["aria-checked"] () {
|
|
8563
|
+
return local["aria-checked"];
|
|
8003
8564
|
}
|
|
8004
8565
|
}), false, false);
|
|
8005
8566
|
return _el$;
|
|
@@ -8373,12 +8934,15 @@ const Sidenav = (props)=>{
|
|
|
8373
8934
|
"class",
|
|
8374
8935
|
"className",
|
|
8375
8936
|
"dataTheme",
|
|
8376
|
-
"style"
|
|
8937
|
+
"style",
|
|
8938
|
+
"desktopBreakpoint"
|
|
8377
8939
|
]);
|
|
8378
8940
|
const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
8941
|
+
const isDesktop = useDesktop(local.desktopBreakpoint || 1024);
|
|
8379
8942
|
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("sidenav", local.class, local.className, clsx({
|
|
8380
8943
|
"sidenav-collapsed": local.collapsed,
|
|
8381
|
-
"sidenav-closed": !local.isOpen
|
|
8944
|
+
"sidenav-closed": !local.isOpen,
|
|
8945
|
+
"sidenav-desktop": isDesktop()
|
|
8382
8946
|
})));
|
|
8383
8947
|
return (()=>{
|
|
8384
8948
|
var _el$ = Sidenav_tmpl$3(), _el$4 = _el$.firstChild;
|
|
@@ -9172,17 +9736,6 @@ function SvgBackground(props) {
|
|
|
9172
9736
|
return _el$;
|
|
9173
9737
|
})();
|
|
9174
9738
|
}
|
|
9175
|
-
function isJSXElement(node) {
|
|
9176
|
-
return "object" == typeof node && null !== node;
|
|
9177
|
-
}
|
|
9178
|
-
function wrapWithElementIfInvalid({ node, wrapper = "div", className = "" }) {
|
|
9179
|
-
null == node || "string" == typeof node || "number" == typeof node || isJSXElement(node);
|
|
9180
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.Dynamic, {
|
|
9181
|
-
component: wrapper,
|
|
9182
|
-
class: className,
|
|
9183
|
-
children: node
|
|
9184
|
-
});
|
|
9185
|
-
}
|
|
9186
9739
|
var Swap_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<label><input type=checkbox>");
|
|
9187
9740
|
function Swap(props) {
|
|
9188
9741
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -9233,49 +9786,125 @@ function Swap(props) {
|
|
|
9233
9786
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
9234
9787
|
"click"
|
|
9235
9788
|
]);
|
|
9236
|
-
var
|
|
9237
|
-
const
|
|
9789
|
+
var TableCell_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<td>");
|
|
9790
|
+
const TableCell_TableCell = (props)=>{
|
|
9238
9791
|
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
9239
9792
|
"children",
|
|
9240
|
-
"
|
|
9793
|
+
"colSpan",
|
|
9794
|
+
"class",
|
|
9795
|
+
"className",
|
|
9796
|
+
"dataTheme"
|
|
9797
|
+
]);
|
|
9798
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge(dist_clsx(local.class, local.className)));
|
|
9799
|
+
const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
9800
|
+
return (()=>{
|
|
9801
|
+
var _el$ = TableCell_tmpl$();
|
|
9802
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
9803
|
+
get ["class"] () {
|
|
9804
|
+
return classes();
|
|
9805
|
+
},
|
|
9806
|
+
get ["data-theme"] () {
|
|
9807
|
+
return local.dataTheme;
|
|
9808
|
+
},
|
|
9809
|
+
get colSpan () {
|
|
9810
|
+
return local.colSpan;
|
|
9811
|
+
}
|
|
9812
|
+
}, rest), false, true);
|
|
9813
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, resolvedChildren);
|
|
9814
|
+
return _el$;
|
|
9815
|
+
})();
|
|
9816
|
+
};
|
|
9817
|
+
const TableCell = TableCell_TableCell;
|
|
9818
|
+
var TableHeadCell_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<th>");
|
|
9819
|
+
const TableHeadCell = (props)=>{
|
|
9820
|
+
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
9821
|
+
"children",
|
|
9822
|
+
"colSpan",
|
|
9823
|
+
"class",
|
|
9824
|
+
"className",
|
|
9825
|
+
"dataTheme"
|
|
9826
|
+
]);
|
|
9827
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge(dist_clsx(local.class, local.className)));
|
|
9828
|
+
const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
9829
|
+
return (()=>{
|
|
9830
|
+
var _el$ = TableHeadCell_tmpl$();
|
|
9831
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
9832
|
+
get ["class"] () {
|
|
9833
|
+
return classes();
|
|
9834
|
+
},
|
|
9835
|
+
get ["data-theme"] () {
|
|
9836
|
+
return local.dataTheme;
|
|
9837
|
+
},
|
|
9838
|
+
get colSpan () {
|
|
9839
|
+
return local.colSpan;
|
|
9840
|
+
}
|
|
9841
|
+
}, rest), false, true);
|
|
9842
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, resolvedChildren);
|
|
9843
|
+
return _el$;
|
|
9844
|
+
})();
|
|
9845
|
+
};
|
|
9846
|
+
const table_TableHeadCell = TableHeadCell;
|
|
9847
|
+
var TableHead_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<thead><tr>");
|
|
9848
|
+
const TableHead = (props)=>{
|
|
9849
|
+
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
9850
|
+
"children",
|
|
9851
|
+
"noCell",
|
|
9852
|
+
"class",
|
|
9853
|
+
"className",
|
|
9854
|
+
"dataTheme"
|
|
9241
9855
|
]);
|
|
9856
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge(dist_clsx(local.class, local.className)));
|
|
9857
|
+
const resolved = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
9242
9858
|
return (()=>{
|
|
9243
9859
|
var _el$ = TableHead_tmpl$(), _el$2 = _el$.firstChild;
|
|
9244
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$,
|
|
9860
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
9861
|
+
get ["class"] () {
|
|
9862
|
+
return classes();
|
|
9863
|
+
},
|
|
9864
|
+
get ["data-theme"] () {
|
|
9865
|
+
return local.dataTheme;
|
|
9866
|
+
}
|
|
9867
|
+
}, rest), false, true);
|
|
9245
9868
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
|
|
9246
9869
|
get each () {
|
|
9247
|
-
return
|
|
9248
|
-
local.children
|
|
9249
|
-
];
|
|
9870
|
+
return resolved.toArray();
|
|
9250
9871
|
},
|
|
9251
|
-
children: (child, index)=>local.noCell ? child : index() < 1 ? ((
|
|
9252
|
-
|
|
9253
|
-
|
|
9254
|
-
|
|
9255
|
-
})
|
|
9256
|
-
var _el$4 = TableHead_tmpl$3();
|
|
9257
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, child);
|
|
9258
|
-
return _el$4;
|
|
9259
|
-
})()
|
|
9872
|
+
children: (child, index)=>local.noCell ? child : index() < 1 ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_TableHeadCell, {
|
|
9873
|
+
children: child
|
|
9874
|
+
}) : (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(TableCell, {
|
|
9875
|
+
children: child
|
|
9876
|
+
})
|
|
9260
9877
|
}));
|
|
9261
9878
|
return _el$;
|
|
9262
9879
|
})();
|
|
9263
9880
|
};
|
|
9264
|
-
const
|
|
9881
|
+
const table_TableHead = TableHead;
|
|
9265
9882
|
var TableBody_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<tbody>");
|
|
9266
9883
|
const TableBody = (props)=>{
|
|
9267
9884
|
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
9268
|
-
"children"
|
|
9885
|
+
"children",
|
|
9886
|
+
"class",
|
|
9887
|
+
"className",
|
|
9888
|
+
"dataTheme"
|
|
9269
9889
|
]);
|
|
9890
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge(dist_clsx(local.class, local.className)));
|
|
9891
|
+
const resolved = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
9270
9892
|
return (()=>{
|
|
9271
9893
|
var _el$ = TableBody_tmpl$();
|
|
9272
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$,
|
|
9273
|
-
|
|
9894
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
9895
|
+
get ["class"] () {
|
|
9896
|
+
return classes();
|
|
9897
|
+
},
|
|
9898
|
+
get ["data-theme"] () {
|
|
9899
|
+
return local.dataTheme;
|
|
9900
|
+
}
|
|
9901
|
+
}, rest), false, true);
|
|
9902
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, resolved);
|
|
9274
9903
|
return _el$;
|
|
9275
9904
|
})();
|
|
9276
9905
|
};
|
|
9277
9906
|
const table_TableBody = TableBody;
|
|
9278
|
-
var TableRow_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<tr>")
|
|
9907
|
+
var TableRow_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<tr>");
|
|
9279
9908
|
const TableRow = (props)=>{
|
|
9280
9909
|
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
9281
9910
|
"children",
|
|
@@ -9303,15 +9932,11 @@ const TableRow = (props)=>{
|
|
|
9303
9932
|
get each () {
|
|
9304
9933
|
return resolved.toArray();
|
|
9305
9934
|
},
|
|
9306
|
-
children: (child, i)=>0 === i() ? ((
|
|
9307
|
-
|
|
9308
|
-
|
|
9309
|
-
|
|
9310
|
-
})
|
|
9311
|
-
var _el$3 = TableRow_tmpl$3();
|
|
9312
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, child);
|
|
9313
|
-
return _el$3;
|
|
9314
|
-
})()
|
|
9935
|
+
children: (child, i)=>0 === i() ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_TableHeadCell, {
|
|
9936
|
+
children: child
|
|
9937
|
+
}) : (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(TableCell, {
|
|
9938
|
+
children: child
|
|
9939
|
+
})
|
|
9315
9940
|
});
|
|
9316
9941
|
},
|
|
9317
9942
|
get children () {
|
|
@@ -9322,16 +9947,27 @@ const TableRow = (props)=>{
|
|
|
9322
9947
|
})();
|
|
9323
9948
|
};
|
|
9324
9949
|
const table_TableRow = TableRow;
|
|
9325
|
-
var TableFooter_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<tfoot><tr>")
|
|
9950
|
+
var TableFooter_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<tfoot><tr>");
|
|
9326
9951
|
const TableFooter = (props)=>{
|
|
9327
9952
|
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
9328
9953
|
"children",
|
|
9329
|
-
"noCell"
|
|
9954
|
+
"noCell",
|
|
9955
|
+
"class",
|
|
9956
|
+
"className",
|
|
9957
|
+
"dataTheme"
|
|
9330
9958
|
]);
|
|
9331
9959
|
const resolved = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
9960
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge(dist_clsx(local.class, local.className)));
|
|
9332
9961
|
return (()=>{
|
|
9333
9962
|
var _el$ = TableFooter_tmpl$(), _el$2 = _el$.firstChild;
|
|
9334
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$,
|
|
9963
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
9964
|
+
get ["class"] () {
|
|
9965
|
+
return classes();
|
|
9966
|
+
},
|
|
9967
|
+
get ["data-theme"] () {
|
|
9968
|
+
return local.dataTheme;
|
|
9969
|
+
}
|
|
9970
|
+
}, rest), false, true);
|
|
9335
9971
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
9336
9972
|
get when () {
|
|
9337
9973
|
return local.noCell;
|
|
@@ -9341,15 +9977,11 @@ const TableFooter = (props)=>{
|
|
|
9341
9977
|
get each () {
|
|
9342
9978
|
return resolved.toArray();
|
|
9343
9979
|
},
|
|
9344
|
-
children: (child, i)=>0 === i() ? ((
|
|
9345
|
-
|
|
9346
|
-
|
|
9347
|
-
|
|
9348
|
-
})
|
|
9349
|
-
var _el$4 = TableFooter_tmpl$3();
|
|
9350
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, child);
|
|
9351
|
-
return _el$4;
|
|
9352
|
-
})()
|
|
9980
|
+
children: (child, i)=>0 === i() ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_TableHeadCell, {
|
|
9981
|
+
children: child
|
|
9982
|
+
}) : (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(TableCell, {
|
|
9983
|
+
children: child
|
|
9984
|
+
})
|
|
9353
9985
|
});
|
|
9354
9986
|
},
|
|
9355
9987
|
get children () {
|
|
@@ -9360,7 +9992,7 @@ const TableFooter = (props)=>{
|
|
|
9360
9992
|
})();
|
|
9361
9993
|
};
|
|
9362
9994
|
const table_TableFooter = TableFooter;
|
|
9363
|
-
var EnhancedTable_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<
|
|
9995
|
+
var EnhancedTable_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="flex items-center gap-2">'), EnhancedTable_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)(`<span>\u{2191}`), EnhancedTable_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)(`<span>\u{2193}`);
|
|
9364
9996
|
function EnhancedTable_EnhancedTable(props) {
|
|
9365
9997
|
const [local, tableProps] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
9366
9998
|
"data",
|
|
@@ -9429,21 +10061,27 @@ function EnhancedTable_EnhancedTable(props) {
|
|
|
9429
10061
|
get each () {
|
|
9430
10062
|
return headerGroup.headers;
|
|
9431
10063
|
},
|
|
9432
|
-
children: (header)=>((
|
|
9433
|
-
|
|
9434
|
-
|
|
9435
|
-
|
|
9436
|
-
|
|
9437
|
-
|
|
9438
|
-
|
|
9439
|
-
|
|
9440
|
-
|
|
9441
|
-
|
|
9442
|
-
|
|
9443
|
-
|
|
9444
|
-
|
|
9445
|
-
|
|
9446
|
-
|
|
10064
|
+
children: (header)=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.HeadCell, {
|
|
10065
|
+
get ["class"] () {
|
|
10066
|
+
return header.column.getCanSort() ? "cursor-pointer select-none" : "";
|
|
10067
|
+
},
|
|
10068
|
+
get onClick () {
|
|
10069
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!header.column.getCanSort())() ? header.column.getToggleSortingHandler() : void 0;
|
|
10070
|
+
},
|
|
10071
|
+
get children () {
|
|
10072
|
+
var _el$ = EnhancedTable_tmpl$();
|
|
10073
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>(0, __WEBPACK_EXTERNAL_MODULE__tanstack_solid_table_1239d047__.flexRender)(header.column.columnDef.header, header.getContext()), null);
|
|
10074
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (()=>{
|
|
10075
|
+
var _c$ = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>"asc" === header.column.getIsSorted());
|
|
10076
|
+
return ()=>_c$() && EnhancedTable_tmpl$2();
|
|
10077
|
+
})(), null);
|
|
10078
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (()=>{
|
|
10079
|
+
var _c$2 = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>"desc" === header.column.getIsSorted());
|
|
10080
|
+
return ()=>_c$2() && EnhancedTable_tmpl$3();
|
|
10081
|
+
})(), null);
|
|
10082
|
+
return _el$;
|
|
10083
|
+
}
|
|
10084
|
+
})
|
|
9447
10085
|
});
|
|
9448
10086
|
}
|
|
9449
10087
|
})
|
|
@@ -9452,12 +10090,19 @@ function EnhancedTable_EnhancedTable(props) {
|
|
|
9452
10090
|
}),
|
|
9453
10091
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Body, {
|
|
9454
10092
|
get children () {
|
|
9455
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!(0 === tableRows().length && local.renderEmpty))() ? ((
|
|
9456
|
-
|
|
9457
|
-
|
|
9458
|
-
|
|
9459
|
-
|
|
9460
|
-
|
|
10093
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!(0 === tableRows().length && local.renderEmpty))() ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Row, {
|
|
10094
|
+
get children () {
|
|
10095
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Cell, {
|
|
10096
|
+
get colSpan () {
|
|
10097
|
+
return table.getAllColumns().length;
|
|
10098
|
+
},
|
|
10099
|
+
class: "text-center py-4",
|
|
10100
|
+
get children () {
|
|
10101
|
+
return local.renderEmpty();
|
|
10102
|
+
}
|
|
10103
|
+
});
|
|
10104
|
+
}
|
|
10105
|
+
}) : (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
|
|
9461
10106
|
get each () {
|
|
9462
10107
|
return tableRows();
|
|
9463
10108
|
},
|
|
@@ -9471,22 +10116,26 @@ function EnhancedTable_EnhancedTable(props) {
|
|
|
9471
10116
|
get each () {
|
|
9472
10117
|
return row.getVisibleCells();
|
|
9473
10118
|
},
|
|
9474
|
-
children: (cell)=>((
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
|
|
9478
|
-
})
|
|
10119
|
+
children: (cell)=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Cell, {
|
|
10120
|
+
get children () {
|
|
10121
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__tanstack_solid_table_1239d047__.flexRender)(cell.column.columnDef.cell, cell.getContext());
|
|
10122
|
+
}
|
|
10123
|
+
})
|
|
9479
10124
|
});
|
|
9480
10125
|
}
|
|
9481
10126
|
}),
|
|
9482
10127
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!(row.getIsExpanded() && local.renderRowSubComponent))() && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Row, {
|
|
9483
10128
|
get children () {
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
row
|
|
9487
|
-
}
|
|
9488
|
-
|
|
9489
|
-
|
|
10129
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Cell, {
|
|
10130
|
+
get colSpan () {
|
|
10131
|
+
return row.getVisibleCells().length;
|
|
10132
|
+
},
|
|
10133
|
+
get children () {
|
|
10134
|
+
return local.renderRowSubComponent({
|
|
10135
|
+
row
|
|
10136
|
+
});
|
|
10137
|
+
}
|
|
10138
|
+
});
|
|
9490
10139
|
}
|
|
9491
10140
|
}))
|
|
9492
10141
|
]
|
|
@@ -9498,9 +10147,6 @@ function EnhancedTable_EnhancedTable(props) {
|
|
|
9498
10147
|
}));
|
|
9499
10148
|
}
|
|
9500
10149
|
const EnhancedTable = EnhancedTable_EnhancedTable;
|
|
9501
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
9502
|
-
"click"
|
|
9503
|
-
]);
|
|
9504
10150
|
var Table_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<table>");
|
|
9505
10151
|
const Table = (props)=>{
|
|
9506
10152
|
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -9539,10 +10185,12 @@ const Table = (props)=>{
|
|
|
9539
10185
|
})();
|
|
9540
10186
|
};
|
|
9541
10187
|
const table_Table = Object.assign(Table, {
|
|
9542
|
-
Head:
|
|
10188
|
+
Head: table_TableHead,
|
|
9543
10189
|
Body: table_TableBody,
|
|
9544
10190
|
Row: table_TableRow,
|
|
9545
10191
|
Footer: table_TableFooter,
|
|
10192
|
+
Cell: TableCell,
|
|
10193
|
+
HeadCell: table_TableHeadCell,
|
|
9546
10194
|
Enhanced: EnhancedTable
|
|
9547
10195
|
});
|
|
9548
10196
|
var Tab_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<a role=tab>");
|
|
@@ -9929,7 +10577,13 @@ const Toggle = (props)=>{
|
|
|
9929
10577
|
"dataTheme",
|
|
9930
10578
|
"class",
|
|
9931
10579
|
"className",
|
|
9932
|
-
"style"
|
|
10580
|
+
"style",
|
|
10581
|
+
"aria-label",
|
|
10582
|
+
"aria-describedby",
|
|
10583
|
+
"aria-invalid",
|
|
10584
|
+
"aria-required",
|
|
10585
|
+
"aria-labelledby",
|
|
10586
|
+
"aria-checked"
|
|
9933
10587
|
]);
|
|
9934
10588
|
const classes = ()=>twMerge("toggle", local.class, local.className, clsx({
|
|
9935
10589
|
"toggle-xl": "xl" === local.size,
|
|
@@ -9950,6 +10604,7 @@ const Toggle = (props)=>{
|
|
|
9950
10604
|
var _el$ = Toggle_tmpl$();
|
|
9951
10605
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
9952
10606
|
type: "checkbox",
|
|
10607
|
+
role: "switch",
|
|
9953
10608
|
get ["data-theme"] () {
|
|
9954
10609
|
return local.dataTheme;
|
|
9955
10610
|
},
|
|
@@ -9958,6 +10613,24 @@ const Toggle = (props)=>{
|
|
|
9958
10613
|
},
|
|
9959
10614
|
get style () {
|
|
9960
10615
|
return local.style;
|
|
10616
|
+
},
|
|
10617
|
+
get ["aria-label"] () {
|
|
10618
|
+
return local["aria-label"];
|
|
10619
|
+
},
|
|
10620
|
+
get ["aria-describedby"] () {
|
|
10621
|
+
return local["aria-describedby"];
|
|
10622
|
+
},
|
|
10623
|
+
get ["aria-invalid"] () {
|
|
10624
|
+
return local["aria-invalid"];
|
|
10625
|
+
},
|
|
10626
|
+
get ["aria-required"] () {
|
|
10627
|
+
return local["aria-required"];
|
|
10628
|
+
},
|
|
10629
|
+
get ["aria-labelledby"] () {
|
|
10630
|
+
return local["aria-labelledby"];
|
|
10631
|
+
},
|
|
10632
|
+
get ["aria-checked"] () {
|
|
10633
|
+
return local["aria-checked"];
|
|
9961
10634
|
}
|
|
9962
10635
|
}), false, false);
|
|
9963
10636
|
return _el$;
|
|
@@ -10092,4 +10765,4 @@ const WindowMockup = (props)=>{
|
|
|
10092
10765
|
})();
|
|
10093
10766
|
};
|
|
10094
10767
|
const windowmockup_WindowMockup = WindowMockup;
|
|
10095
|
-
export { accordion_Accordion as Accordion, alert_Alert as Alert, artboard_Artboard as Artboard, avatar as Avatar, background_Background as Background, Badge, Breadcrumbs, breadcrumbs_BreadcrumbsItem as BreadcrumbsItem, browsermockup_BrowserMockup as BrowserMockup, button_Button as Button, Calendar, card_Card as Card, carousel_Carousel as Carousel, chatbubble_ChatBubble as ChatBubble, checkbox_Checkbox as Checkbox, codemockup_CodeMockup as CodeMockup, CodeMockupLine, collapse_Collapse as Collapse, CollapseContent, CollapseDetails, CollapseTitle, copy_button_CopyButton as CopyButton, countdown_Countdown as Countdown, diff_Diff as Diff, divider as Divider, dock as Dock, Drawer, dropdown as Dropdown, FileInput, flex_Flex as Flex, footer_Footer as Footer, form_Form as Form,
|
|
10768
|
+
export { accordion_Accordion as Accordion, alert_Alert as Alert, artboard_Artboard as Artboard, avatar as Avatar, background_Background as Background, Badge, Breadcrumbs, breadcrumbs_BreadcrumbsItem as BreadcrumbsItem, browsermockup_BrowserMockup as BrowserMockup, button_Button as Button, Calendar, card_Card as Card, carousel_Carousel as Carousel, chatbubble_ChatBubble as ChatBubble, checkbox_Checkbox as Checkbox, codemockup_CodeMockup as CodeMockup, CodeMockupLine, collapse_Collapse as Collapse, CollapseContent, CollapseDetails, CollapseTitle, copy_button_CopyButton as CopyButton, countdown_Countdown as Countdown, diff_Diff as Diff, divider as Divider, dock as Dock, Drawer, dropdown as Dropdown, FileInput, flex_Flex as Flex, footer_Footer as Footer, form_Form as Form, Grid, hero_Hero as Hero, icon_Icon as Icon, indicator_Indicator as Indicator, input_Input as Input, join_Join as Join, kbd_Kbd as Kbd, link_Link as Link, loading_Loading as Loading, mask as Mask, menu_Menu as Menu, modal_Modal as Modal, navbar_Navbar as Navbar, pagination_Pagination as Pagination, phonemockup_PhoneMockup as PhoneMockup, Progress, props_table_PropsTable as PropsTable, radialprogress_RadialProgress as RadialProgress, radio_Radio as Radio, range_Range as Range, Rating, select_Select as Select, showcase_ShowcaseBlock as ShowcaseBlock, ShowcaseSection, sidenav_Sidenav as Sidenav, sidenav_SidenavButton as SidenavButton, sidenav_SidenavGroup as SidenavGroup, sidenav_SidenavItem as SidenavItem, sidenav_SidenavLink as SidenavLink, sidenav_SidenavMenu as SidenavMenu, skeleton_Skeleton as Skeleton, Stack, stats_Stats as Stats, status_Status as Status, steps as Steps, Summary, SvgBackground, Swap, table_Table as Table, tabs_Tabs as Tabs, textarea_Textarea as Textarea, Timeline, timeline_TimelineEnd as TimelineEnd, timeline_TimelineItem as TimelineItem, timeline_TimelineMiddle as TimelineMiddle, timeline_TimelineStart as TimelineStart, toast_Toast as Toast, toggle_Toggle as Toggle, tooltip_Tooltip as Tooltip, windowmockup_WindowMockup as WindowMockup, useDesktop, useFormValidation };
|