@pathscale/ui 0.0.141 → 0.0.143
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/components/accordion/index.d.ts +1 -1
- package/dist/components/alert/index.d.ts +1 -1
- package/dist/components/background/index.d.ts +1 -1
- package/dist/components/badge/index.d.ts +1 -1
- package/dist/components/bottom-sheet/BottomSheet.d.ts +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs/index.d.ts +1 -0
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/chatbubble/index.d.ts +1 -1
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/codemockup/CodeMockup.d.ts +1 -1
- package/dist/components/codemockup/index.d.ts +1 -1
- package/dist/components/collapse/index.d.ts +1 -1
- package/dist/components/confirm-dialog/ConfirmDialog.d.ts +14 -0
- package/dist/components/confirm-dialog/index.d.ts +2 -0
- package/dist/components/connectionstatus/ConnectionStatus.d.ts +2 -2
- package/dist/components/countdown/index.d.ts +1 -1
- package/dist/components/diff/index.d.ts +1 -1
- package/dist/components/divider/index.d.ts +1 -0
- package/dist/components/dropdown/DropdownItem.d.ts +2 -0
- package/dist/components/dropdown/DropdownMenu.d.ts +1 -0
- package/dist/components/dropdown/DropdownToggle.d.ts +1 -0
- package/dist/components/dropdown/index.d.ts +1 -0
- package/dist/components/dropdown-select/DropdownSelect.d.ts +22 -0
- package/dist/components/dropdown-select/index.d.ts +2 -0
- package/dist/components/empty-state/EmptyState.d.ts +11 -0
- package/dist/components/empty-state/index.d.ts +2 -0
- package/dist/components/fieldset/Fieldset.d.ts +11 -0
- package/dist/components/fieldset/index.d.ts +2 -0
- package/dist/components/fileinput/index.d.ts +1 -1
- package/dist/components/flex/index.d.ts +1 -1
- package/dist/components/form-actions/FormActions.d.ts +14 -0
- package/dist/components/form-actions/index.d.ts +2 -0
- package/dist/components/glow-card/GlowCard.d.ts +5 -0
- package/dist/components/glow-card/index.d.ts +2 -0
- package/dist/components/grid/index.d.ts +1 -1
- package/dist/components/kbd/index.d.ts +1 -1
- package/dist/components/link/index.d.ts +1 -1
- package/dist/components/loading/index.d.ts +1 -1
- package/dist/components/mask/index.d.ts +1 -0
- package/dist/components/pagination/Pagination.d.ts +2 -1
- package/dist/components/progress/index.d.ts +1 -1
- package/dist/components/radialprogress/index.d.ts +1 -1
- package/dist/components/radio/index.d.ts +1 -1
- package/dist/components/radio-group/RadioGroup.d.ts +25 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/range/index.d.ts +1 -1
- package/dist/components/range-slider/RangeSlider.d.ts +21 -0
- package/dist/components/range-slider/index.d.ts +2 -0
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/skeleton/index.d.ts +1 -1
- package/dist/components/skip-link/SkipLink.d.ts +7 -0
- package/dist/components/skip-link/index.d.ts +2 -0
- package/dist/components/stat-card/index.d.ts +1 -1
- package/dist/components/stats/index.d.ts +1 -1
- package/dist/components/steps/index.d.ts +1 -0
- package/dist/components/swap/index.d.ts +1 -1
- package/dist/components/switch-field/SwitchField.d.ts +19 -0
- package/dist/components/switch-field/index.d.ts +2 -0
- package/dist/components/textarea/index.d.ts +1 -1
- package/dist/components/timeline/Timeline.d.ts +1 -1
- package/dist/components/timeline/index.d.ts +1 -1
- package/dist/components/toast/index.d.ts +1 -1
- package/dist/components/toastcontainer/ToastContainer.d.ts +2 -1
- package/dist/components/toggle/index.d.ts +1 -1
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/video-preview/VideoPreview.d.ts +21 -0
- package/dist/components/video-preview/index.d.ts +2 -0
- package/dist/glow-card/GlowCard.css +65 -0
- package/dist/index.css +56 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +1464 -300
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -4205,7 +4205,7 @@ const BottomSheet = (props)=>{
|
|
|
4205
4205
|
"function" == typeof _ref$2 ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$2, _el$2) : sheetRef = _el$2;
|
|
4206
4206
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
4207
4207
|
get ["class"] () {
|
|
4208
|
-
return clsx("bg-base-300 text-base-content fixed bottom-0 left-0 right-0 rounded-t-2xl shadow-lg z-50 transition-transform duration-300 ease-out", local.isOpen ? "translate-y-0" : "translate-y-full");
|
|
4208
|
+
return twMerge(clsx("bg-base-300 text-base-content fixed bottom-0 left-0 right-0 rounded-t-2xl shadow-lg z-50 transition-transform duration-300 ease-out", local.isOpen ? "translate-y-0" : "translate-y-full"), local.class, local.className);
|
|
4209
4209
|
},
|
|
4210
4210
|
get style () {
|
|
4211
4211
|
return {
|
|
@@ -5682,28 +5682,41 @@ const Icon = (props)=>{
|
|
|
5682
5682
|
const icon_Icon = Icon;
|
|
5683
5683
|
var Calendar_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div class=dropdown><button type=button>"), Calendar_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><div class=w-full><calendar-date><calendar-month>", true, false, false), Calendar_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="fixed inset-0 z-40">'), _tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><calendar-date><calendar-month>", true, false, false);
|
|
5684
5684
|
const Calendar_Calendar = (props)=>{
|
|
5685
|
-
const [
|
|
5685
|
+
const [local] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
5686
|
+
"size",
|
|
5687
|
+
"value",
|
|
5688
|
+
"onDateSelect",
|
|
5689
|
+
"asInput",
|
|
5690
|
+
"placeholder",
|
|
5691
|
+
"disabled",
|
|
5692
|
+
"children",
|
|
5693
|
+
"dataTheme",
|
|
5694
|
+
"class",
|
|
5695
|
+
"className",
|
|
5696
|
+
"style"
|
|
5697
|
+
]);
|
|
5698
|
+
const [selectedValue, setSelectedValue] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(local.value || "");
|
|
5686
5699
|
const [isOpen, setIsOpen] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(false);
|
|
5687
5700
|
const uniqueId = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createUniqueId)();
|
|
5688
5701
|
const inputId = `calendar-input-${uniqueId}`;
|
|
5689
5702
|
let calendarRef;
|
|
5690
5703
|
let inputRef;
|
|
5691
5704
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
5692
|
-
if (void 0 !==
|
|
5705
|
+
if (void 0 !== local.value) setSelectedValue(local.value);
|
|
5693
5706
|
});
|
|
5694
5707
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
5695
5708
|
if (calendarRef && calendarRef.value !== selectedValue()) calendarRef.value = selectedValue();
|
|
5696
5709
|
});
|
|
5697
5710
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
5698
|
-
const shouldSetupListeners =
|
|
5711
|
+
const shouldSetupListeners = local.asInput ? isOpen() && calendarRef : calendarRef;
|
|
5699
5712
|
if (shouldSetupListeners) {
|
|
5700
5713
|
const handleChange = (e)=>{
|
|
5701
5714
|
const target = e.target;
|
|
5702
5715
|
const newValue = target.value;
|
|
5703
5716
|
if (newValue && newValue !== selectedValue()) {
|
|
5704
5717
|
setSelectedValue(newValue);
|
|
5705
|
-
if (
|
|
5706
|
-
if (
|
|
5718
|
+
if (local.onDateSelect) local.onDateSelect(newValue);
|
|
5719
|
+
if (local.asInput) setIsOpen(false);
|
|
5707
5720
|
}
|
|
5708
5721
|
};
|
|
5709
5722
|
const handleClick = (e)=>{
|
|
@@ -5711,8 +5724,8 @@ const Calendar_Calendar = (props)=>{
|
|
|
5711
5724
|
const value = calendarRef.value;
|
|
5712
5725
|
if (value && value !== selectedValue()) {
|
|
5713
5726
|
setSelectedValue(value);
|
|
5714
|
-
if (
|
|
5715
|
-
if (
|
|
5727
|
+
if (local.onDateSelect) local.onDateSelect(value);
|
|
5728
|
+
if (local.asInput) setIsOpen(false);
|
|
5716
5729
|
}
|
|
5717
5730
|
}, 100);
|
|
5718
5731
|
};
|
|
@@ -5726,24 +5739,24 @@ const Calendar_Calendar = (props)=>{
|
|
|
5726
5739
|
};
|
|
5727
5740
|
}
|
|
5728
5741
|
});
|
|
5729
|
-
const calendarClasses = ()=>twMerge("cally", !
|
|
5730
|
-
"text-base [&_[slot=heading]]:text-sm": "lg" ===
|
|
5731
|
-
"text-sm [&_[slot=heading]]:text-xs": "md" ===
|
|
5732
|
-
"text-xs [&_[slot=heading]]:text-xs [&_button]:text-xs": "sm" ===
|
|
5733
|
-
"text-xs [&_button]:text-xs": "xs" ===
|
|
5742
|
+
const calendarClasses = ()=>twMerge("cally", !local.asInput && "bg-base-100 border border-base-300 shadow-lg rounded-box", "[&_[slot=heading]]:text-xs [&_[slot=heading]]:font-medium", "[&_.cally-month-header]:text-xs [&_.cally-year]:text-xs", "text-sm", local.asInput && "w-full max-w-full", "[&_table]:w-full [&_td]:p-1 [&_th]:p-1", "[&_button]:p-1 [&_button]:min-h-0 [&_button]:h-auto", local.class, local.className, clsx({
|
|
5743
|
+
"text-base [&_[slot=heading]]:text-sm": "lg" === local.size,
|
|
5744
|
+
"text-sm [&_[slot=heading]]:text-xs": "md" === local.size || !local.size,
|
|
5745
|
+
"text-xs [&_[slot=heading]]:text-xs [&_button]:text-xs": "sm" === local.size,
|
|
5746
|
+
"text-xs [&_button]:text-xs": "xs" === local.size
|
|
5734
5747
|
}));
|
|
5735
5748
|
const inputClasses = ()=>twMerge("input input-bordered cursor-pointer", "w-72", clsx({
|
|
5736
|
-
"input-lg w-80": "lg" ===
|
|
5737
|
-
"input-md w-72": "md" ===
|
|
5738
|
-
"input-sm w-64": "sm" ===
|
|
5739
|
-
"input-xs w-56": "xs" ===
|
|
5740
|
-
"input-disabled cursor-not-allowed":
|
|
5749
|
+
"input-lg w-80": "lg" === local.size,
|
|
5750
|
+
"input-md w-72": "md" === local.size || !local.size,
|
|
5751
|
+
"input-sm w-64": "sm" === local.size,
|
|
5752
|
+
"input-xs w-56": "xs" === local.size,
|
|
5753
|
+
"input-disabled cursor-not-allowed": local.disabled
|
|
5741
5754
|
}));
|
|
5742
5755
|
const dropdownClasses = ()=>twMerge("dropdown-content bg-base-100 rounded-box shadow-lg z-50 p-2", "w-auto", clsx({
|
|
5743
|
-
"w-80": "lg" ===
|
|
5744
|
-
"w-72": "md" ===
|
|
5745
|
-
"w-64": "sm" ===
|
|
5746
|
-
"w-56": "xs" ===
|
|
5756
|
+
"w-80": "lg" === local.size,
|
|
5757
|
+
"w-72": "md" === local.size || !local.size,
|
|
5758
|
+
"w-64": "sm" === local.size,
|
|
5759
|
+
"w-56": "xs" === local.size
|
|
5747
5760
|
}));
|
|
5748
5761
|
const ArrowLeftIcon = ()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(icon_Icon, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
5749
5762
|
name: "icon-[mdi-light--chevron-left]",
|
|
@@ -5762,15 +5775,15 @@ const Calendar_Calendar = (props)=>{
|
|
|
5762
5775
|
slot: "next"
|
|
5763
5776
|
}));
|
|
5764
5777
|
const formatDisplayDate = (value)=>{
|
|
5765
|
-
if (!value) return
|
|
5778
|
+
if (!value) return local.placeholder || "Pick a date";
|
|
5766
5779
|
try {
|
|
5767
5780
|
const date = new Date(value);
|
|
5768
5781
|
return date.toLocaleDateString();
|
|
5769
5782
|
} catch {
|
|
5770
|
-
return
|
|
5783
|
+
return local.placeholder || "Pick a date";
|
|
5771
5784
|
}
|
|
5772
5785
|
};
|
|
5773
|
-
if (
|
|
5786
|
+
if (local.asInput) return (()=>{
|
|
5774
5787
|
var _el$ = Calendar_tmpl$(), _el$2 = _el$.firstChild;
|
|
5775
5788
|
_el$2.$$click = ()=>setIsOpen(!isOpen());
|
|
5776
5789
|
var _ref$ = inputRef;
|
|
@@ -5809,9 +5822,9 @@ const Calendar_Calendar = (props)=>{
|
|
|
5809
5822
|
return _el$7;
|
|
5810
5823
|
})();
|
|
5811
5824
|
})(), null);
|
|
5812
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>
|
|
5825
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>local.children, null);
|
|
5813
5826
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
5814
|
-
var _v$ =
|
|
5827
|
+
var _v$ = local.dataTheme, _v$2 = local.style, _v$3 = inputClasses(), _v$4 = local.disabled;
|
|
5815
5828
|
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "data-theme", _p$.e = _v$);
|
|
5816
5829
|
_p$.t = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$, _v$2, _p$.t);
|
|
5817
5830
|
_v$3 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$2, _p$.a = _v$3);
|
|
@@ -5833,9 +5846,9 @@ const Calendar_Calendar = (props)=>{
|
|
|
5833
5846
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$9, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(ArrowLeftIcon, {}), _el$0);
|
|
5834
5847
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$9, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(ArrowRightIcon, {}), _el$0);
|
|
5835
5848
|
_el$0._$owner = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.getOwner)();
|
|
5836
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$8, ()=>
|
|
5849
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$8, ()=>local.children, null);
|
|
5837
5850
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
5838
|
-
var _v$7 =
|
|
5851
|
+
var _v$7 = local.dataTheme, _v$8 = local.style, _v$9 = calendarClasses();
|
|
5839
5852
|
_v$7 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$8, "data-theme", _p$.e = _v$7);
|
|
5840
5853
|
_p$.t = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$8, _v$8, _p$.t);
|
|
5841
5854
|
_v$9 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$9, _p$.a = _v$9);
|
|
@@ -8511,6 +8524,284 @@ const collapse_Collapse = Object.assign(Collapse, {
|
|
|
8511
8524
|
Title: CollapseTitle,
|
|
8512
8525
|
Content: CollapseContent
|
|
8513
8526
|
});
|
|
8527
|
+
var ModalActions_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
8528
|
+
function ModalActions(props) {
|
|
8529
|
+
return (()=>{
|
|
8530
|
+
var _el$ = ModalActions_tmpl$();
|
|
8531
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(props, {
|
|
8532
|
+
get ["class"] () {
|
|
8533
|
+
return props.class;
|
|
8534
|
+
}
|
|
8535
|
+
}), false, false);
|
|
8536
|
+
return _el$;
|
|
8537
|
+
})();
|
|
8538
|
+
}
|
|
8539
|
+
var ModalBody_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
8540
|
+
function ModalBody(props) {
|
|
8541
|
+
return (()=>{
|
|
8542
|
+
var _el$ = ModalBody_tmpl$();
|
|
8543
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(props, {
|
|
8544
|
+
get ["class"] () {
|
|
8545
|
+
return props.class;
|
|
8546
|
+
}
|
|
8547
|
+
}), false, false);
|
|
8548
|
+
return _el$;
|
|
8549
|
+
})();
|
|
8550
|
+
}
|
|
8551
|
+
var ModalHeader_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
8552
|
+
function ModalHeader(props) {
|
|
8553
|
+
return (()=>{
|
|
8554
|
+
var _el$ = ModalHeader_tmpl$();
|
|
8555
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(props, {
|
|
8556
|
+
get ["class"] () {
|
|
8557
|
+
return twMerge("w-full mb-8 text-xl", props.class);
|
|
8558
|
+
}
|
|
8559
|
+
}), false, false);
|
|
8560
|
+
return _el$;
|
|
8561
|
+
})();
|
|
8562
|
+
}
|
|
8563
|
+
var ModalLegacy_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div aria-label=Modal><div>");
|
|
8564
|
+
function ModalLegacy(props) {
|
|
8565
|
+
const { children, open, responsive, onClickBackdrop, dataTheme, class: classProp, className, ...rest } = props;
|
|
8566
|
+
const containerClasses = twMerge("modal", clsx({
|
|
8567
|
+
"modal-open": open,
|
|
8568
|
+
"modal-bottom sm:modal-middle": responsive
|
|
8569
|
+
}));
|
|
8570
|
+
const bodyClasses = twMerge("modal-box", classProp, className);
|
|
8571
|
+
return (()=>{
|
|
8572
|
+
var _el$ = ModalLegacy_tmpl$(), _el$2 = _el$.firstChild;
|
|
8573
|
+
_el$.$$click = (e)=>{
|
|
8574
|
+
e.stopPropagation();
|
|
8575
|
+
if (e.target === e.currentTarget) {
|
|
8576
|
+
e.stopPropagation();
|
|
8577
|
+
onClickBackdrop?.();
|
|
8578
|
+
}
|
|
8579
|
+
};
|
|
8580
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "aria-hidden", !open);
|
|
8581
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "aria-modal", open);
|
|
8582
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "data-theme", dataTheme);
|
|
8583
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, containerClasses);
|
|
8584
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(rest, {
|
|
8585
|
+
"data-theme": dataTheme,
|
|
8586
|
+
class: bodyClasses
|
|
8587
|
+
}), false, true);
|
|
8588
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, children);
|
|
8589
|
+
return _el$;
|
|
8590
|
+
})();
|
|
8591
|
+
}
|
|
8592
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
8593
|
+
"click"
|
|
8594
|
+
]);
|
|
8595
|
+
var Modal_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<dialog><div>"), Modal_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<form method=dialog class=modal-backdrop><button type=submit class=sr-only>Close");
|
|
8596
|
+
function Modal(props) {
|
|
8597
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
8598
|
+
"children",
|
|
8599
|
+
"open",
|
|
8600
|
+
"position",
|
|
8601
|
+
"responsive",
|
|
8602
|
+
"backdrop",
|
|
8603
|
+
"ariaHidden",
|
|
8604
|
+
"dataTheme",
|
|
8605
|
+
"class",
|
|
8606
|
+
"className",
|
|
8607
|
+
"onClose",
|
|
8608
|
+
"tabindex",
|
|
8609
|
+
"tabIndex",
|
|
8610
|
+
"closeOnEsc",
|
|
8611
|
+
"closeOnOutsideClick",
|
|
8612
|
+
"size"
|
|
8613
|
+
]);
|
|
8614
|
+
const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
8615
|
+
let dialogRef;
|
|
8616
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
8617
|
+
if (!dialogRef) return;
|
|
8618
|
+
if (local.open && !dialogRef.open) dialogRef.showModal();
|
|
8619
|
+
else if (!local.open && dialogRef.open) dialogRef.close();
|
|
8620
|
+
});
|
|
8621
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
8622
|
+
if (!dialogRef) return;
|
|
8623
|
+
const handleClose = ()=>{
|
|
8624
|
+
local.onClose?.();
|
|
8625
|
+
};
|
|
8626
|
+
const handleCancel = (event)=>{
|
|
8627
|
+
if (false === local.closeOnEsc) event.preventDefault();
|
|
8628
|
+
else local.onClose?.();
|
|
8629
|
+
};
|
|
8630
|
+
const handleClick = (event)=>{
|
|
8631
|
+
if (false === local.closeOnOutsideClick) return;
|
|
8632
|
+
const target = event.target;
|
|
8633
|
+
if (!dialogRef) return;
|
|
8634
|
+
if (target === dialogRef || target.closest(".modal-backdrop")) local.onClose?.();
|
|
8635
|
+
};
|
|
8636
|
+
dialogRef.addEventListener("close", handleClose);
|
|
8637
|
+
dialogRef.addEventListener("cancel", handleCancel);
|
|
8638
|
+
dialogRef.addEventListener("click", handleClick);
|
|
8639
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
|
|
8640
|
+
dialogRef?.removeEventListener("close", handleClose);
|
|
8641
|
+
dialogRef?.removeEventListener("cancel", handleCancel);
|
|
8642
|
+
dialogRef?.removeEventListener("click", handleClick);
|
|
8643
|
+
});
|
|
8644
|
+
});
|
|
8645
|
+
const containerClasses = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("modal", dist_clsx({
|
|
8646
|
+
"modal-open": local.open,
|
|
8647
|
+
"modal-end": "end" === local.position,
|
|
8648
|
+
"modal-start": "start" === local.position,
|
|
8649
|
+
"modal-top": "top" === local.position,
|
|
8650
|
+
"modal-middle": "middle" === local.position,
|
|
8651
|
+
"modal-bottom": "bottom" === local.position,
|
|
8652
|
+
"modal-bottom sm:modal-middle": local.responsive
|
|
8653
|
+
})));
|
|
8654
|
+
const bodyClasses = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("modal-box", local.class, local.className, dist_clsx({
|
|
8655
|
+
"max-w-none w-11/12 max-w-7xl": "xl" === local.size,
|
|
8656
|
+
"max-w-none w-11/12 max-w-4xl": "lg" === local.size,
|
|
8657
|
+
"max-w-none w-11/12 max-w-2xl": "md" === local.size,
|
|
8658
|
+
"max-w-none w-80": "sm" === local.size,
|
|
8659
|
+
"max-w-none w-64": "xs" === local.size,
|
|
8660
|
+
"max-w-none w-full h-full": "full" === local.size
|
|
8661
|
+
})));
|
|
8662
|
+
return (()=>{
|
|
8663
|
+
var _el$ = Modal_tmpl$(), _el$2 = _el$.firstChild;
|
|
8664
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)((el)=>{
|
|
8665
|
+
dialogRef = el;
|
|
8666
|
+
if ("function" == typeof others.ref) others.ref(el);
|
|
8667
|
+
}, _el$);
|
|
8668
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
8669
|
+
"aria-label": "Modal",
|
|
8670
|
+
get ["aria-hidden"] () {
|
|
8671
|
+
return local.ariaHidden ?? !local.open;
|
|
8672
|
+
},
|
|
8673
|
+
get ["aria-modal"] () {
|
|
8674
|
+
return local.open;
|
|
8675
|
+
},
|
|
8676
|
+
get ["data-theme"] () {
|
|
8677
|
+
return local.dataTheme;
|
|
8678
|
+
},
|
|
8679
|
+
get ["class"] () {
|
|
8680
|
+
return containerClasses();
|
|
8681
|
+
},
|
|
8682
|
+
get tabIndex () {
|
|
8683
|
+
return local.tabIndex ?? local.tabindex;
|
|
8684
|
+
}
|
|
8685
|
+
}), false, true);
|
|
8686
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, resolvedChildren);
|
|
8687
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (()=>{
|
|
8688
|
+
var _c$ = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!local.backdrop);
|
|
8689
|
+
return ()=>_c$() && Modal_tmpl$2();
|
|
8690
|
+
})(), null);
|
|
8691
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
8692
|
+
var _v$ = local.dataTheme, _v$2 = bodyClasses();
|
|
8693
|
+
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$2, "data-theme", _p$.e = _v$);
|
|
8694
|
+
_v$2 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$2, _p$.t = _v$2);
|
|
8695
|
+
return _p$;
|
|
8696
|
+
}, {
|
|
8697
|
+
e: void 0,
|
|
8698
|
+
t: void 0
|
|
8699
|
+
});
|
|
8700
|
+
return _el$;
|
|
8701
|
+
})();
|
|
8702
|
+
}
|
|
8703
|
+
const modal_Modal = Object.assign(Modal, {
|
|
8704
|
+
Header: ModalHeader,
|
|
8705
|
+
Body: ModalBody,
|
|
8706
|
+
Actions: ModalActions,
|
|
8707
|
+
Legacy: ModalLegacy
|
|
8708
|
+
});
|
|
8709
|
+
var ConfirmDialog_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
8710
|
+
function ConfirmDialog(props) {
|
|
8711
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
8712
|
+
"open",
|
|
8713
|
+
"onClose",
|
|
8714
|
+
"onConfirm",
|
|
8715
|
+
"title",
|
|
8716
|
+
"message",
|
|
8717
|
+
"children",
|
|
8718
|
+
"confirmText",
|
|
8719
|
+
"cancelText",
|
|
8720
|
+
"confirmColor",
|
|
8721
|
+
"loading",
|
|
8722
|
+
"dataTheme",
|
|
8723
|
+
"class",
|
|
8724
|
+
"className"
|
|
8725
|
+
]);
|
|
8726
|
+
const titleId = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createUniqueId)();
|
|
8727
|
+
const messageId = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createUniqueId)();
|
|
8728
|
+
const hasBody = ()=>null != local.children || null != local.message;
|
|
8729
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(modal_Modal, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
8730
|
+
get open () {
|
|
8731
|
+
return local.open;
|
|
8732
|
+
},
|
|
8733
|
+
get onClose () {
|
|
8734
|
+
return local.onClose;
|
|
8735
|
+
},
|
|
8736
|
+
responsive: true,
|
|
8737
|
+
role: "alertdialog",
|
|
8738
|
+
"aria-labelledby": titleId,
|
|
8739
|
+
get ["aria-describedby"] () {
|
|
8740
|
+
return hasBody() ? messageId : void 0;
|
|
8741
|
+
},
|
|
8742
|
+
get dataTheme () {
|
|
8743
|
+
return local.dataTheme;
|
|
8744
|
+
},
|
|
8745
|
+
get ["class"] () {
|
|
8746
|
+
return twMerge(local.class, local.className);
|
|
8747
|
+
}
|
|
8748
|
+
}, others, {
|
|
8749
|
+
get children () {
|
|
8750
|
+
return [
|
|
8751
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(modal_Modal.Header, {
|
|
8752
|
+
id: titleId,
|
|
8753
|
+
get children () {
|
|
8754
|
+
return local.title;
|
|
8755
|
+
}
|
|
8756
|
+
}),
|
|
8757
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(modal_Modal.Body, {
|
|
8758
|
+
get children () {
|
|
8759
|
+
var _el$ = ConfirmDialog_tmpl$();
|
|
8760
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "id", messageId);
|
|
8761
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>local.children ?? local.message);
|
|
8762
|
+
return _el$;
|
|
8763
|
+
}
|
|
8764
|
+
}),
|
|
8765
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(modal_Modal.Actions, {
|
|
8766
|
+
class: "flex justify-end gap-2",
|
|
8767
|
+
get children () {
|
|
8768
|
+
return [
|
|
8769
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(button_Button, {
|
|
8770
|
+
color: "ghost",
|
|
8771
|
+
get onClick () {
|
|
8772
|
+
return local.onClose;
|
|
8773
|
+
},
|
|
8774
|
+
get disabled () {
|
|
8775
|
+
return local.loading;
|
|
8776
|
+
},
|
|
8777
|
+
get children () {
|
|
8778
|
+
return local.cancelText ?? "Cancel";
|
|
8779
|
+
}
|
|
8780
|
+
}),
|
|
8781
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(button_Button, {
|
|
8782
|
+
get color () {
|
|
8783
|
+
return local.confirmColor ?? "error";
|
|
8784
|
+
},
|
|
8785
|
+
get onClick () {
|
|
8786
|
+
return local.onConfirm;
|
|
8787
|
+
},
|
|
8788
|
+
get loading () {
|
|
8789
|
+
return local.loading;
|
|
8790
|
+
},
|
|
8791
|
+
get disabled () {
|
|
8792
|
+
return local.loading;
|
|
8793
|
+
},
|
|
8794
|
+
get children () {
|
|
8795
|
+
return local.confirmText ?? "Confirm";
|
|
8796
|
+
}
|
|
8797
|
+
})
|
|
8798
|
+
];
|
|
8799
|
+
}
|
|
8800
|
+
})
|
|
8801
|
+
];
|
|
8802
|
+
}
|
|
8803
|
+
}));
|
|
8804
|
+
}
|
|
8514
8805
|
const breakpoints = [
|
|
8515
8806
|
"base",
|
|
8516
8807
|
"sm",
|
|
@@ -8951,14 +9242,21 @@ const CopyButton = CopyButton_CopyButton;
|
|
|
8951
9242
|
]);
|
|
8952
9243
|
var Countdown_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<span role=timer><span>");
|
|
8953
9244
|
const Countdown = (props)=>{
|
|
8954
|
-
const
|
|
8955
|
-
|
|
9245
|
+
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
9246
|
+
"class",
|
|
9247
|
+
"className",
|
|
9248
|
+
"dataTheme",
|
|
9249
|
+
"value"
|
|
9250
|
+
]);
|
|
9251
|
+
const displayedValue = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>Math.min(99, Math.max(0, local.value)));
|
|
8956
9252
|
return (()=>{
|
|
8957
9253
|
var _el$ = Countdown_tmpl$(), _el$2 = _el$.firstChild;
|
|
8958
9254
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(rest, {
|
|
8959
|
-
"data-theme"
|
|
9255
|
+
get ["data-theme"] () {
|
|
9256
|
+
return local.dataTheme;
|
|
9257
|
+
},
|
|
8960
9258
|
get ["class"] () {
|
|
8961
|
-
return twMerge("countdown",
|
|
9259
|
+
return twMerge("countdown", local.class, local.className);
|
|
8962
9260
|
}
|
|
8963
9261
|
}), false, true);
|
|
8964
9262
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
@@ -9106,7 +9404,7 @@ const dividerStyles = cva("flex items-center whitespace-nowrap relative", {
|
|
|
9106
9404
|
position: "center"
|
|
9107
9405
|
}
|
|
9108
9406
|
});
|
|
9109
|
-
const
|
|
9407
|
+
const Divider_Divider = (props)=>{
|
|
9110
9408
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
9111
9409
|
"children",
|
|
9112
9410
|
"text",
|
|
@@ -9141,8 +9439,8 @@ const Divider = (props)=>{
|
|
|
9141
9439
|
children: content
|
|
9142
9440
|
}));
|
|
9143
9441
|
};
|
|
9144
|
-
const
|
|
9145
|
-
const divider =
|
|
9442
|
+
const Divider = Divider_Divider;
|
|
9443
|
+
const divider = Divider;
|
|
9146
9444
|
var DockItem_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<button>");
|
|
9147
9445
|
const DockItem_DockItem = (props)=>{
|
|
9148
9446
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -9310,7 +9608,8 @@ const DropdownToggle = (props)=>{
|
|
|
9310
9608
|
"role",
|
|
9311
9609
|
"aria-haspopup",
|
|
9312
9610
|
"aria-expanded",
|
|
9313
|
-
"aria-controls"
|
|
9611
|
+
"aria-controls",
|
|
9612
|
+
"aria-activedescendant"
|
|
9314
9613
|
]);
|
|
9315
9614
|
const normalizeAriaHaspopup = (value)=>"boolean" == typeof value ? String(value) : value;
|
|
9316
9615
|
const commonAriaProps = {
|
|
@@ -9318,7 +9617,8 @@ const DropdownToggle = (props)=>{
|
|
|
9318
9617
|
role: local.role,
|
|
9319
9618
|
"aria-haspopup": local["aria-haspopup"],
|
|
9320
9619
|
"aria-expanded": local["aria-expanded"],
|
|
9321
|
-
"aria-controls": local["aria-controls"]
|
|
9620
|
+
"aria-controls": local["aria-controls"],
|
|
9621
|
+
"aria-activedescendant": local["aria-activedescendant"]
|
|
9322
9622
|
};
|
|
9323
9623
|
const buttonAriaProps = {
|
|
9324
9624
|
...commonAriaProps,
|
|
@@ -9408,7 +9708,7 @@ const Details = (props)=>{
|
|
|
9408
9708
|
const DropdownDetails = Object.assign(Details, {
|
|
9409
9709
|
Toggle: DropdownToggle_Summary
|
|
9410
9710
|
});
|
|
9411
|
-
var DropdownItem_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<li
|
|
9711
|
+
var DropdownItem_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<li>"), DropdownItem_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<a>"), DropdownItem_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<button>");
|
|
9412
9712
|
const DropdownItem = (props)=>{
|
|
9413
9713
|
const dropdownContext = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.useContext)(DropdownContext);
|
|
9414
9714
|
const defaultProps = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.mergeProps)({
|
|
@@ -9417,7 +9717,9 @@ const DropdownItem = (props)=>{
|
|
|
9417
9717
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(defaultProps, [
|
|
9418
9718
|
"anchor",
|
|
9419
9719
|
"children",
|
|
9720
|
+
"id",
|
|
9420
9721
|
"aria-selected",
|
|
9722
|
+
"role",
|
|
9421
9723
|
"closeOnClick"
|
|
9422
9724
|
]);
|
|
9423
9725
|
const handleClick = (e)=>{
|
|
@@ -9447,7 +9749,17 @@ const DropdownItem = (props)=>{
|
|
|
9447
9749
|
return _el$3;
|
|
9448
9750
|
})();
|
|
9449
9751
|
})());
|
|
9450
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>
|
|
9752
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
9753
|
+
var _v$ = local.id, _v$2 = local.role ?? "menuitem", _v$3 = local["aria-selected"];
|
|
9754
|
+
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "id", _p$.e = _v$);
|
|
9755
|
+
_v$2 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "role", _p$.t = _v$2);
|
|
9756
|
+
_v$3 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "aria-selected", _p$.a = _v$3);
|
|
9757
|
+
return _p$;
|
|
9758
|
+
}, {
|
|
9759
|
+
e: void 0,
|
|
9760
|
+
t: void 0,
|
|
9761
|
+
a: void 0
|
|
9762
|
+
});
|
|
9451
9763
|
return _el$;
|
|
9452
9764
|
})();
|
|
9453
9765
|
};
|
|
@@ -9461,6 +9773,7 @@ const DropdownMenu = (props)=>{
|
|
|
9461
9773
|
"style",
|
|
9462
9774
|
"id",
|
|
9463
9775
|
"hideOverflow",
|
|
9776
|
+
"role",
|
|
9464
9777
|
"aria-labelledby"
|
|
9465
9778
|
]);
|
|
9466
9779
|
const hideOverflowMemo = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>local.hideOverflow ?? true);
|
|
@@ -9486,7 +9799,9 @@ const DropdownMenu = (props)=>{
|
|
|
9486
9799
|
get style () {
|
|
9487
9800
|
return local.style;
|
|
9488
9801
|
},
|
|
9489
|
-
role
|
|
9802
|
+
get role () {
|
|
9803
|
+
return local.role ?? "menu";
|
|
9804
|
+
}
|
|
9490
9805
|
}), false, false);
|
|
9491
9806
|
return _el$;
|
|
9492
9807
|
})();
|
|
@@ -9656,6 +9971,366 @@ const dropdown_Dropdown = Object.assign(Dropdown, {
|
|
|
9656
9971
|
Item: dropdown_DropdownItem
|
|
9657
9972
|
});
|
|
9658
9973
|
const dropdown = dropdown_Dropdown;
|
|
9974
|
+
var DropdownSelect_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<span class=truncate>"), DropdownSelect_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<svg class="h-4 w-4 shrink-0 opacity-60"xmlns=http://www.w3.org/2000/svg viewBox="0 0 20 20"fill=currentColor aria-hidden=true><path fill-rule=evenodd d="M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z"clip-rule=evenodd>'), DropdownSelect_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<span class="flex items-center gap-2 w-full"><span class=truncate>'), DropdownSelect_tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 20 20"fill=currentColor aria-hidden=true><path fill-rule=evenodd d="M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z"clip-rule=evenodd>');
|
|
9975
|
+
const sizeClasses = {
|
|
9976
|
+
xs: "btn-xs text-xs",
|
|
9977
|
+
sm: "btn-sm text-sm",
|
|
9978
|
+
md: "btn-md text-base",
|
|
9979
|
+
lg: "btn-lg text-lg",
|
|
9980
|
+
xl: "btn-xl text-xl"
|
|
9981
|
+
};
|
|
9982
|
+
const DropdownSelectInner = (props)=>{
|
|
9983
|
+
const dropdownCtx = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.useContext)(DropdownContext);
|
|
9984
|
+
const [highlightedIndex, setHighlightedIndex] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(-1);
|
|
9985
|
+
const listboxId = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createUniqueId)();
|
|
9986
|
+
let typeaheadBuffer = "";
|
|
9987
|
+
let typeaheadTimer;
|
|
9988
|
+
const getOptionId = (index)=>`${listboxId}-option-${index}`;
|
|
9989
|
+
const selectedLabel = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
9990
|
+
const opt = props.options.find((o)=>o.value === props.value);
|
|
9991
|
+
return opt ? opt.label : props.placeholder;
|
|
9992
|
+
});
|
|
9993
|
+
const isOpen = ()=>dropdownCtx?.open() ?? false;
|
|
9994
|
+
const findNextEnabledIndex = (from, direction)=>{
|
|
9995
|
+
const len = props.options.length;
|
|
9996
|
+
if (0 === len) return -1;
|
|
9997
|
+
let idx = from;
|
|
9998
|
+
for(let i = 0; i < len; i++){
|
|
9999
|
+
idx = ((idx + direction) % len + len) % len;
|
|
10000
|
+
if (!props.options[idx].disabled) return idx;
|
|
10001
|
+
}
|
|
10002
|
+
return -1;
|
|
10003
|
+
};
|
|
10004
|
+
const findFirstEnabledIndex = ()=>props.options.findIndex((o)=>!o.disabled);
|
|
10005
|
+
const findLastEnabledIndex = ()=>{
|
|
10006
|
+
for(let i = props.options.length - 1; i >= 0; i--)if (!props.options[i].disabled) return i;
|
|
10007
|
+
return -1;
|
|
10008
|
+
};
|
|
10009
|
+
const selectOption = (index)=>{
|
|
10010
|
+
if (index >= 0 && index < props.options.length && !props.options[index].disabled) {
|
|
10011
|
+
props.onChange?.(props.options[index].value);
|
|
10012
|
+
dropdownCtx?.setOpen(false);
|
|
10013
|
+
setHighlightedIndex(-1);
|
|
10014
|
+
}
|
|
10015
|
+
};
|
|
10016
|
+
const openMenu = ()=>{
|
|
10017
|
+
if (!isOpen()) {
|
|
10018
|
+
dropdownCtx?.setOpen(true);
|
|
10019
|
+
const currentIdx = props.options.findIndex((o)=>o.value === props.value);
|
|
10020
|
+
setHighlightedIndex(currentIdx >= 0 ? currentIdx : findFirstEnabledIndex());
|
|
10021
|
+
}
|
|
10022
|
+
};
|
|
10023
|
+
const handleTypeahead = (char)=>{
|
|
10024
|
+
if (void 0 !== typeaheadTimer) clearTimeout(typeaheadTimer);
|
|
10025
|
+
typeaheadBuffer += char.toLowerCase();
|
|
10026
|
+
typeaheadTimer = setTimeout(()=>{
|
|
10027
|
+
typeaheadBuffer = "";
|
|
10028
|
+
typeaheadTimer = void 0;
|
|
10029
|
+
}, 500);
|
|
10030
|
+
const matchIndex = props.options.findIndex((o)=>!o.disabled && o.label.toLowerCase().startsWith(typeaheadBuffer));
|
|
10031
|
+
if (matchIndex >= 0) setHighlightedIndex(matchIndex);
|
|
10032
|
+
};
|
|
10033
|
+
const handleKeyDown = (e)=>{
|
|
10034
|
+
if (props.disabled) return;
|
|
10035
|
+
if (!isOpen()) {
|
|
10036
|
+
if ("Enter" === e.key || " " === e.key || "ArrowDown" === e.key || "ArrowUp" === e.key) {
|
|
10037
|
+
e.preventDefault();
|
|
10038
|
+
openMenu();
|
|
10039
|
+
return;
|
|
10040
|
+
}
|
|
10041
|
+
if (1 === e.key.length && !e.ctrlKey && !e.metaKey && !e.altKey) {
|
|
10042
|
+
e.preventDefault();
|
|
10043
|
+
openMenu();
|
|
10044
|
+
handleTypeahead(e.key);
|
|
10045
|
+
}
|
|
10046
|
+
return;
|
|
10047
|
+
}
|
|
10048
|
+
switch(e.key){
|
|
10049
|
+
case "Escape":
|
|
10050
|
+
e.preventDefault();
|
|
10051
|
+
e.stopPropagation();
|
|
10052
|
+
dropdownCtx?.setOpen(false);
|
|
10053
|
+
setHighlightedIndex(-1);
|
|
10054
|
+
break;
|
|
10055
|
+
case "ArrowDown":
|
|
10056
|
+
e.preventDefault();
|
|
10057
|
+
setHighlightedIndex((prev)=>findNextEnabledIndex(prev, 1));
|
|
10058
|
+
break;
|
|
10059
|
+
case "ArrowUp":
|
|
10060
|
+
e.preventDefault();
|
|
10061
|
+
setHighlightedIndex((prev)=>findNextEnabledIndex(prev, -1));
|
|
10062
|
+
break;
|
|
10063
|
+
case "Home":
|
|
10064
|
+
e.preventDefault();
|
|
10065
|
+
setHighlightedIndex(findFirstEnabledIndex());
|
|
10066
|
+
break;
|
|
10067
|
+
case "End":
|
|
10068
|
+
e.preventDefault();
|
|
10069
|
+
setHighlightedIndex(findLastEnabledIndex());
|
|
10070
|
+
break;
|
|
10071
|
+
case "Enter":
|
|
10072
|
+
case " ":
|
|
10073
|
+
e.preventDefault();
|
|
10074
|
+
e.stopPropagation();
|
|
10075
|
+
if (highlightedIndex() >= 0) selectOption(highlightedIndex());
|
|
10076
|
+
break;
|
|
10077
|
+
default:
|
|
10078
|
+
if (1 === e.key.length && !e.ctrlKey && !e.metaKey && !e.altKey) {
|
|
10079
|
+
e.preventDefault();
|
|
10080
|
+
handleTypeahead(e.key);
|
|
10081
|
+
}
|
|
10082
|
+
break;
|
|
10083
|
+
}
|
|
10084
|
+
};
|
|
10085
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
10086
|
+
if (isOpen() && highlightedIndex() >= 0) {
|
|
10087
|
+
const el = document.getElementById(getOptionId(highlightedIndex()));
|
|
10088
|
+
el?.scrollIntoView({
|
|
10089
|
+
block: "nearest"
|
|
10090
|
+
});
|
|
10091
|
+
}
|
|
10092
|
+
});
|
|
10093
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
10094
|
+
if (!isOpen()) setHighlightedIndex(-1);
|
|
10095
|
+
});
|
|
10096
|
+
return [
|
|
10097
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(dropdown_Dropdown.Toggle, {
|
|
10098
|
+
get ["class"] () {
|
|
10099
|
+
return twMerge("btn gap-2 justify-between", sizeClasses[props.size], dist_clsx({
|
|
10100
|
+
"btn-disabled": props.disabled
|
|
10101
|
+
}));
|
|
10102
|
+
},
|
|
10103
|
+
"aria-haspopup": "listbox",
|
|
10104
|
+
get ["aria-expanded"] () {
|
|
10105
|
+
return isOpen();
|
|
10106
|
+
},
|
|
10107
|
+
"aria-controls": listboxId,
|
|
10108
|
+
get ["aria-activedescendant"] () {
|
|
10109
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!(isOpen() && highlightedIndex() >= 0))() ? getOptionId(highlightedIndex()) : void 0;
|
|
10110
|
+
},
|
|
10111
|
+
onKeyDown: handleKeyDown,
|
|
10112
|
+
get children () {
|
|
10113
|
+
return [
|
|
10114
|
+
(()=>{
|
|
10115
|
+
var _el$ = DropdownSelect_tmpl$();
|
|
10116
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (()=>{
|
|
10117
|
+
var _c$ = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!props.labelRenderer);
|
|
10118
|
+
return ()=>_c$() ? props.labelRenderer(selectedLabel(), props.options.find((o)=>o.value === props.value)) : selectedLabel();
|
|
10119
|
+
})());
|
|
10120
|
+
return _el$;
|
|
10121
|
+
})(),
|
|
10122
|
+
DropdownSelect_tmpl$2()
|
|
10123
|
+
];
|
|
10124
|
+
}
|
|
10125
|
+
}),
|
|
10126
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(dropdown_Dropdown.Menu, {
|
|
10127
|
+
id: listboxId,
|
|
10128
|
+
class: "z-10",
|
|
10129
|
+
role: "listbox",
|
|
10130
|
+
get children () {
|
|
10131
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
|
|
10132
|
+
get each () {
|
|
10133
|
+
return props.options;
|
|
10134
|
+
},
|
|
10135
|
+
children: (option, index)=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(dropdown_Dropdown.Item, {
|
|
10136
|
+
get id () {
|
|
10137
|
+
return getOptionId(index());
|
|
10138
|
+
},
|
|
10139
|
+
role: "option",
|
|
10140
|
+
get disabled () {
|
|
10141
|
+
return option.disabled;
|
|
10142
|
+
},
|
|
10143
|
+
get ["class"] () {
|
|
10144
|
+
return dist_clsx({
|
|
10145
|
+
"bg-primary/10": props.value === option.value,
|
|
10146
|
+
"bg-base-300": highlightedIndex() === index() && props.value !== option.value,
|
|
10147
|
+
"bg-primary/20": highlightedIndex() === index() && props.value === option.value
|
|
10148
|
+
});
|
|
10149
|
+
},
|
|
10150
|
+
onClick: ()=>{
|
|
10151
|
+
props.onChange?.(option.value);
|
|
10152
|
+
setHighlightedIndex(-1);
|
|
10153
|
+
},
|
|
10154
|
+
onMouseEnter: ()=>setHighlightedIndex(index()),
|
|
10155
|
+
get ["aria-selected"] () {
|
|
10156
|
+
return props.value === option.value;
|
|
10157
|
+
},
|
|
10158
|
+
get children () {
|
|
10159
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!props.optionRenderer)() ? props.optionRenderer(option, props.value === option.value, highlightedIndex() === index()) : (()=>{
|
|
10160
|
+
var _el$3 = DropdownSelect_tmpl$3(), _el$4 = _el$3.firstChild;
|
|
10161
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, (()=>{
|
|
10162
|
+
var _c$2 = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!props.showCheckmark);
|
|
10163
|
+
return ()=>_c$2() && (()=>{
|
|
10164
|
+
var _el$5 = DropdownSelect_tmpl$4();
|
|
10165
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$5, "class", dist_clsx("h-4 w-4 shrink-0", {
|
|
10166
|
+
"opacity-100": props.value === option.value,
|
|
10167
|
+
"opacity-0": props.value !== option.value
|
|
10168
|
+
})));
|
|
10169
|
+
return _el$5;
|
|
10170
|
+
})();
|
|
10171
|
+
})(), _el$4);
|
|
10172
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, ()=>option.label);
|
|
10173
|
+
return _el$3;
|
|
10174
|
+
})();
|
|
10175
|
+
}
|
|
10176
|
+
})
|
|
10177
|
+
});
|
|
10178
|
+
}
|
|
10179
|
+
})
|
|
10180
|
+
];
|
|
10181
|
+
};
|
|
10182
|
+
const DropdownSelect_DropdownSelect = (props)=>{
|
|
10183
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
10184
|
+
"options",
|
|
10185
|
+
"value",
|
|
10186
|
+
"onChange",
|
|
10187
|
+
"label",
|
|
10188
|
+
"placeholder",
|
|
10189
|
+
"disabled",
|
|
10190
|
+
"showCheckmark",
|
|
10191
|
+
"size",
|
|
10192
|
+
"aria-label",
|
|
10193
|
+
"class",
|
|
10194
|
+
"className",
|
|
10195
|
+
"dataTheme",
|
|
10196
|
+
"style",
|
|
10197
|
+
"labelRenderer",
|
|
10198
|
+
"optionRenderer"
|
|
10199
|
+
]);
|
|
10200
|
+
const placeholder = ()=>local.placeholder ?? "Select...";
|
|
10201
|
+
const showCheckmark = ()=>local.showCheckmark ?? true;
|
|
10202
|
+
const size = ()=>local.size ?? "md";
|
|
10203
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(dropdown_Dropdown, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
10204
|
+
role: "none",
|
|
10205
|
+
get ["class"] () {
|
|
10206
|
+
return twMerge(local.class, local.className);
|
|
10207
|
+
},
|
|
10208
|
+
get style () {
|
|
10209
|
+
return local.style;
|
|
10210
|
+
},
|
|
10211
|
+
get dataTheme () {
|
|
10212
|
+
return local.dataTheme;
|
|
10213
|
+
},
|
|
10214
|
+
get ["aria-label"] () {
|
|
10215
|
+
return local["aria-label"] ?? local.label;
|
|
10216
|
+
},
|
|
10217
|
+
get children () {
|
|
10218
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(DropdownSelectInner, {
|
|
10219
|
+
get options () {
|
|
10220
|
+
return local.options;
|
|
10221
|
+
},
|
|
10222
|
+
get value () {
|
|
10223
|
+
return local.value;
|
|
10224
|
+
},
|
|
10225
|
+
get onChange () {
|
|
10226
|
+
return local.onChange;
|
|
10227
|
+
},
|
|
10228
|
+
get placeholder () {
|
|
10229
|
+
return placeholder();
|
|
10230
|
+
},
|
|
10231
|
+
get showCheckmark () {
|
|
10232
|
+
return showCheckmark();
|
|
10233
|
+
},
|
|
10234
|
+
get size () {
|
|
10235
|
+
return size();
|
|
10236
|
+
},
|
|
10237
|
+
get disabled () {
|
|
10238
|
+
return local.disabled;
|
|
10239
|
+
},
|
|
10240
|
+
get labelRenderer () {
|
|
10241
|
+
return local.labelRenderer;
|
|
10242
|
+
},
|
|
10243
|
+
get optionRenderer () {
|
|
10244
|
+
return local.optionRenderer;
|
|
10245
|
+
}
|
|
10246
|
+
});
|
|
10247
|
+
}
|
|
10248
|
+
}));
|
|
10249
|
+
};
|
|
10250
|
+
const DropdownSelect = DropdownSelect_DropdownSelect;
|
|
10251
|
+
var EmptyState_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<h3 class="text-lg font-semibold text-base-content/80 text-center">'), EmptyState_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="text-sm text-base-content/70">'), EmptyState_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
10252
|
+
const EmptyState_EmptyState = (props)=>{
|
|
10253
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
10254
|
+
"icon",
|
|
10255
|
+
"iconSize",
|
|
10256
|
+
"image",
|
|
10257
|
+
"title",
|
|
10258
|
+
"description",
|
|
10259
|
+
"dataTheme",
|
|
10260
|
+
"class",
|
|
10261
|
+
"className",
|
|
10262
|
+
"style",
|
|
10263
|
+
"children"
|
|
10264
|
+
]);
|
|
10265
|
+
const iconSize = ()=>local.iconSize ?? 48;
|
|
10266
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("flex flex-col items-center justify-center gap-3 py-12", local.class, local.className));
|
|
10267
|
+
return (()=>{
|
|
10268
|
+
var _el$ = EmptyState_tmpl$3();
|
|
10269
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
10270
|
+
role: "status",
|
|
10271
|
+
get ["data-theme"] () {
|
|
10272
|
+
return local.dataTheme;
|
|
10273
|
+
},
|
|
10274
|
+
get ["class"] () {
|
|
10275
|
+
return classes();
|
|
10276
|
+
},
|
|
10277
|
+
get style () {
|
|
10278
|
+
return local.style;
|
|
10279
|
+
}
|
|
10280
|
+
}), false, true);
|
|
10281
|
+
(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, {
|
|
10282
|
+
get when () {
|
|
10283
|
+
return local.image;
|
|
10284
|
+
},
|
|
10285
|
+
get children () {
|
|
10286
|
+
return local.image;
|
|
10287
|
+
}
|
|
10288
|
+
}), null);
|
|
10289
|
+
(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, {
|
|
10290
|
+
get when () {
|
|
10291
|
+
return !local.image && local.icon;
|
|
10292
|
+
},
|
|
10293
|
+
get children () {
|
|
10294
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(icon_Icon, {
|
|
10295
|
+
get name () {
|
|
10296
|
+
return local.icon;
|
|
10297
|
+
},
|
|
10298
|
+
get width () {
|
|
10299
|
+
return iconSize();
|
|
10300
|
+
},
|
|
10301
|
+
get height () {
|
|
10302
|
+
return iconSize();
|
|
10303
|
+
},
|
|
10304
|
+
class: "opacity-60",
|
|
10305
|
+
"aria-hidden": "true"
|
|
10306
|
+
});
|
|
10307
|
+
}
|
|
10308
|
+
}), null);
|
|
10309
|
+
(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, {
|
|
10310
|
+
get when () {
|
|
10311
|
+
return local.title;
|
|
10312
|
+
},
|
|
10313
|
+
get children () {
|
|
10314
|
+
var _el$2 = EmptyState_tmpl$();
|
|
10315
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, ()=>local.title);
|
|
10316
|
+
return _el$2;
|
|
10317
|
+
}
|
|
10318
|
+
}), null);
|
|
10319
|
+
(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, {
|
|
10320
|
+
get when () {
|
|
10321
|
+
return local.description;
|
|
10322
|
+
},
|
|
10323
|
+
get children () {
|
|
10324
|
+
var _el$3 = EmptyState_tmpl$2();
|
|
10325
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, ()=>local.description);
|
|
10326
|
+
return _el$3;
|
|
10327
|
+
}
|
|
10328
|
+
}), null);
|
|
10329
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>local.children, null);
|
|
10330
|
+
return _el$;
|
|
10331
|
+
})();
|
|
10332
|
+
};
|
|
10333
|
+
const EmptyState = EmptyState_EmptyState;
|
|
9659
10334
|
var FileInput_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<input>");
|
|
9660
10335
|
const FileInput_FileInput = (props)=>{
|
|
9661
10336
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -10265,6 +10940,47 @@ const glass_panel_GlassPanel = GlassPanel;
|
|
|
10265
10940
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
10266
10941
|
"click"
|
|
10267
10942
|
]);
|
|
10943
|
+
var GlowCard_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
10944
|
+
function GlowCard(props) {
|
|
10945
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
10946
|
+
"children",
|
|
10947
|
+
"class",
|
|
10948
|
+
"className",
|
|
10949
|
+
"dataTheme",
|
|
10950
|
+
"onMouseMove",
|
|
10951
|
+
"style"
|
|
10952
|
+
]);
|
|
10953
|
+
const handleMouseMove = (e)=>{
|
|
10954
|
+
const rect = e.currentTarget.getBoundingClientRect();
|
|
10955
|
+
e.currentTarget.style.setProperty("--mouse-x", `${e.clientX - rect.left}px`);
|
|
10956
|
+
e.currentTarget.style.setProperty("--mouse-y", `${e.clientY - rect.top}px`);
|
|
10957
|
+
if (Array.isArray(local.onMouseMove)) {
|
|
10958
|
+
const [handler, data] = local.onMouseMove;
|
|
10959
|
+
handler(data, e);
|
|
10960
|
+
} else if ("function" == typeof local.onMouseMove) local.onMouseMove(e);
|
|
10961
|
+
};
|
|
10962
|
+
return (()=>{
|
|
10963
|
+
var _el$ = GlowCard_tmpl$();
|
|
10964
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
10965
|
+
get ["data-theme"] () {
|
|
10966
|
+
return local.dataTheme;
|
|
10967
|
+
},
|
|
10968
|
+
get ["class"] () {
|
|
10969
|
+
return twMerge(clsx("glow-card isolate", local.class, local.className));
|
|
10970
|
+
},
|
|
10971
|
+
get style () {
|
|
10972
|
+
return local.style;
|
|
10973
|
+
},
|
|
10974
|
+
onMouseMove: handleMouseMove,
|
|
10975
|
+
onMouseLeave: (e)=>{
|
|
10976
|
+
e.currentTarget.style.setProperty("--mouse-x", "50%");
|
|
10977
|
+
e.currentTarget.style.setProperty("--mouse-y", "50%");
|
|
10978
|
+
}
|
|
10979
|
+
}), false, true);
|
|
10980
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>local.children);
|
|
10981
|
+
return _el$;
|
|
10982
|
+
})();
|
|
10983
|
+
}
|
|
10268
10984
|
var FooterTitle_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<h6>");
|
|
10269
10985
|
const FooterTitle = (props)=>{
|
|
10270
10986
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -10310,18 +11026,224 @@ const Footer = (props)=>{
|
|
|
10310
11026
|
get ["data-theme"] () {
|
|
10311
11027
|
return local.dataTheme;
|
|
10312
11028
|
},
|
|
10313
|
-
get ["class"] () {
|
|
10314
|
-
return classes();
|
|
11029
|
+
get ["class"] () {
|
|
11030
|
+
return classes();
|
|
11031
|
+
}
|
|
11032
|
+
}), false, true);
|
|
11033
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>local.children);
|
|
11034
|
+
return _el$;
|
|
11035
|
+
})();
|
|
11036
|
+
};
|
|
11037
|
+
const FooterNamespaces = Object.assign(Footer, {
|
|
11038
|
+
Title: FooterTitle
|
|
11039
|
+
});
|
|
11040
|
+
const footer_Footer = FooterNamespaces;
|
|
11041
|
+
var FormActions_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>"), FormActions_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><div class="w-full max-w-md">');
|
|
11042
|
+
const FormActions = (props)=>{
|
|
11043
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
11044
|
+
"submitText",
|
|
11045
|
+
"cancelText",
|
|
11046
|
+
"isLoading",
|
|
11047
|
+
"isValid",
|
|
11048
|
+
"onCancel",
|
|
11049
|
+
"layout",
|
|
11050
|
+
"children",
|
|
11051
|
+
"dataTheme",
|
|
11052
|
+
"class",
|
|
11053
|
+
"className",
|
|
11054
|
+
"style"
|
|
11055
|
+
]);
|
|
11056
|
+
const submitText = ()=>local.submitText ?? "Submit";
|
|
11057
|
+
const cancelText = ()=>local.cancelText ?? "Cancel";
|
|
11058
|
+
const layout = ()=>local.layout ?? "single";
|
|
11059
|
+
const isValid = ()=>local.isValid ?? true;
|
|
11060
|
+
const submitButton = (fullWidth)=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(button_Button, {
|
|
11061
|
+
type: "submit",
|
|
11062
|
+
color: "primary",
|
|
11063
|
+
fullWidth: fullWidth,
|
|
11064
|
+
get loading () {
|
|
11065
|
+
return local.isLoading;
|
|
11066
|
+
},
|
|
11067
|
+
get disabled () {
|
|
11068
|
+
return !isValid() || local.isLoading;
|
|
11069
|
+
},
|
|
11070
|
+
get ["aria-busy"] () {
|
|
11071
|
+
return local.isLoading;
|
|
11072
|
+
},
|
|
11073
|
+
get children () {
|
|
11074
|
+
return submitText();
|
|
11075
|
+
}
|
|
11076
|
+
});
|
|
11077
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
11078
|
+
get when () {
|
|
11079
|
+
return !local.children;
|
|
11080
|
+
},
|
|
11081
|
+
get fallback () {
|
|
11082
|
+
return local.children;
|
|
11083
|
+
},
|
|
11084
|
+
get children () {
|
|
11085
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Switch, {
|
|
11086
|
+
get children () {
|
|
11087
|
+
return [
|
|
11088
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Match, {
|
|
11089
|
+
get when () {
|
|
11090
|
+
return "single" === layout();
|
|
11091
|
+
},
|
|
11092
|
+
get children () {
|
|
11093
|
+
var _el$ = FormActions_tmpl$();
|
|
11094
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
11095
|
+
role: "group",
|
|
11096
|
+
"aria-label": "Form actions",
|
|
11097
|
+
get ["data-theme"] () {
|
|
11098
|
+
return local.dataTheme;
|
|
11099
|
+
},
|
|
11100
|
+
get ["class"] () {
|
|
11101
|
+
return twMerge("mt-4 flex w-full", local.class, local.className);
|
|
11102
|
+
},
|
|
11103
|
+
get style () {
|
|
11104
|
+
return local.style;
|
|
11105
|
+
}
|
|
11106
|
+
}), false, true);
|
|
11107
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>submitButton(true));
|
|
11108
|
+
return _el$;
|
|
11109
|
+
}
|
|
11110
|
+
}),
|
|
11111
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Match, {
|
|
11112
|
+
get when () {
|
|
11113
|
+
return "split" === layout();
|
|
11114
|
+
},
|
|
11115
|
+
get children () {
|
|
11116
|
+
var _el$2 = FormActions_tmpl$();
|
|
11117
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
11118
|
+
role: "group",
|
|
11119
|
+
"aria-label": "Form actions",
|
|
11120
|
+
get ["data-theme"] () {
|
|
11121
|
+
return local.dataTheme;
|
|
11122
|
+
},
|
|
11123
|
+
get ["class"] () {
|
|
11124
|
+
return twMerge("mt-4 flex w-full gap-2", local.class, local.className);
|
|
11125
|
+
},
|
|
11126
|
+
get style () {
|
|
11127
|
+
return local.style;
|
|
11128
|
+
}
|
|
11129
|
+
}), false, true);
|
|
11130
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(button_Button, {
|
|
11131
|
+
type: "button",
|
|
11132
|
+
variant: "outline",
|
|
11133
|
+
fullWidth: true,
|
|
11134
|
+
get onClick () {
|
|
11135
|
+
return local.onCancel;
|
|
11136
|
+
},
|
|
11137
|
+
get disabled () {
|
|
11138
|
+
return local.isLoading;
|
|
11139
|
+
},
|
|
11140
|
+
get children () {
|
|
11141
|
+
return cancelText();
|
|
11142
|
+
}
|
|
11143
|
+
}), null);
|
|
11144
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, ()=>submitButton(true), null);
|
|
11145
|
+
return _el$2;
|
|
11146
|
+
}
|
|
11147
|
+
}),
|
|
11148
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Match, {
|
|
11149
|
+
get when () {
|
|
11150
|
+
return "center" === layout();
|
|
11151
|
+
},
|
|
11152
|
+
get children () {
|
|
11153
|
+
var _el$3 = FormActions_tmpl$2(), _el$4 = _el$3.firstChild;
|
|
11154
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$3, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
11155
|
+
role: "group",
|
|
11156
|
+
"aria-label": "Form actions",
|
|
11157
|
+
get ["data-theme"] () {
|
|
11158
|
+
return local.dataTheme;
|
|
11159
|
+
},
|
|
11160
|
+
get ["class"] () {
|
|
11161
|
+
return twMerge("mt-4 flex w-full justify-center", local.class, local.className);
|
|
11162
|
+
},
|
|
11163
|
+
get style () {
|
|
11164
|
+
return local.style;
|
|
11165
|
+
}
|
|
11166
|
+
}), false, true);
|
|
11167
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, ()=>submitButton(true));
|
|
11168
|
+
return _el$3;
|
|
11169
|
+
}
|
|
11170
|
+
})
|
|
11171
|
+
];
|
|
11172
|
+
}
|
|
11173
|
+
});
|
|
11174
|
+
}
|
|
11175
|
+
});
|
|
11176
|
+
};
|
|
11177
|
+
const form_actions_FormActions = FormActions;
|
|
11178
|
+
var Fieldset_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<legend class="text-lg font-semibold">'), Fieldset_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<p class="text-sm text-base-content/60 mt-1">'), Fieldset_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<fieldset>");
|
|
11179
|
+
const GAP_MAP = {
|
|
11180
|
+
none: "gap-0",
|
|
11181
|
+
xs: "gap-1",
|
|
11182
|
+
sm: "gap-2",
|
|
11183
|
+
md: "gap-4",
|
|
11184
|
+
lg: "gap-6",
|
|
11185
|
+
xl: "gap-8"
|
|
11186
|
+
};
|
|
11187
|
+
const Fieldset_Fieldset = (props)=>{
|
|
11188
|
+
const descriptionId = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createUniqueId)();
|
|
11189
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
11190
|
+
"legend",
|
|
11191
|
+
"description",
|
|
11192
|
+
"disabled",
|
|
11193
|
+
"gap",
|
|
11194
|
+
"children",
|
|
11195
|
+
"class",
|
|
11196
|
+
"className",
|
|
11197
|
+
"dataTheme",
|
|
11198
|
+
"style"
|
|
11199
|
+
]);
|
|
11200
|
+
const gap = ()=>local.gap ?? "md";
|
|
11201
|
+
const classes = ()=>twMerge("flex flex-col", GAP_MAP[gap()], local.class, local.className);
|
|
11202
|
+
return (()=>{
|
|
11203
|
+
var _el$ = Fieldset_tmpl$3();
|
|
11204
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
11205
|
+
get ["class"] () {
|
|
11206
|
+
return classes();
|
|
11207
|
+
},
|
|
11208
|
+
get ["data-theme"] () {
|
|
11209
|
+
return local.dataTheme;
|
|
11210
|
+
},
|
|
11211
|
+
get style () {
|
|
11212
|
+
return local.style;
|
|
11213
|
+
},
|
|
11214
|
+
get disabled () {
|
|
11215
|
+
return local.disabled;
|
|
11216
|
+
},
|
|
11217
|
+
get ["aria-describedby"] () {
|
|
11218
|
+
return local.description ? descriptionId : void 0;
|
|
11219
|
+
}
|
|
11220
|
+
}), false, true);
|
|
11221
|
+
(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, {
|
|
11222
|
+
get when () {
|
|
11223
|
+
return local.legend;
|
|
11224
|
+
},
|
|
11225
|
+
get children () {
|
|
11226
|
+
var _el$2 = Fieldset_tmpl$();
|
|
11227
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, ()=>local.legend);
|
|
11228
|
+
return _el$2;
|
|
11229
|
+
}
|
|
11230
|
+
}), null);
|
|
11231
|
+
(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, {
|
|
11232
|
+
get when () {
|
|
11233
|
+
return local.description;
|
|
11234
|
+
},
|
|
11235
|
+
get children () {
|
|
11236
|
+
var _el$3 = Fieldset_tmpl$2();
|
|
11237
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$3, "id", descriptionId);
|
|
11238
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, ()=>local.description);
|
|
11239
|
+
return _el$3;
|
|
10315
11240
|
}
|
|
10316
|
-
}),
|
|
10317
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>local.children);
|
|
11241
|
+
}), null);
|
|
11242
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>local.children, null);
|
|
10318
11243
|
return _el$;
|
|
10319
11244
|
})();
|
|
10320
11245
|
};
|
|
10321
|
-
const
|
|
10322
|
-
Title: FooterTitle
|
|
10323
|
-
});
|
|
10324
|
-
const footer_Footer = FooterNamespaces;
|
|
11246
|
+
const Fieldset = Fieldset_Fieldset;
|
|
10325
11247
|
var Label_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<label><span class="label-text cursor-pointer">');
|
|
10326
11248
|
const Label = (props)=>{
|
|
10327
11249
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -13373,188 +14295,6 @@ const menu_Menu = Object.assign(Menu, {
|
|
|
13373
14295
|
Details: menu_MenuDetails,
|
|
13374
14296
|
Menu: Menu
|
|
13375
14297
|
});
|
|
13376
|
-
var ModalActions_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
13377
|
-
function ModalActions(props) {
|
|
13378
|
-
return (()=>{
|
|
13379
|
-
var _el$ = ModalActions_tmpl$();
|
|
13380
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(props, {
|
|
13381
|
-
get ["class"] () {
|
|
13382
|
-
return props.class;
|
|
13383
|
-
}
|
|
13384
|
-
}), false, false);
|
|
13385
|
-
return _el$;
|
|
13386
|
-
})();
|
|
13387
|
-
}
|
|
13388
|
-
var ModalBody_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
13389
|
-
function ModalBody(props) {
|
|
13390
|
-
return (()=>{
|
|
13391
|
-
var _el$ = ModalBody_tmpl$();
|
|
13392
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(props, {
|
|
13393
|
-
get ["class"] () {
|
|
13394
|
-
return props.class;
|
|
13395
|
-
}
|
|
13396
|
-
}), false, false);
|
|
13397
|
-
return _el$;
|
|
13398
|
-
})();
|
|
13399
|
-
}
|
|
13400
|
-
var ModalHeader_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
13401
|
-
function ModalHeader(props) {
|
|
13402
|
-
return (()=>{
|
|
13403
|
-
var _el$ = ModalHeader_tmpl$();
|
|
13404
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(props, {
|
|
13405
|
-
get ["class"] () {
|
|
13406
|
-
return twMerge("w-full mb-8 text-xl", props.class);
|
|
13407
|
-
}
|
|
13408
|
-
}), false, false);
|
|
13409
|
-
return _el$;
|
|
13410
|
-
})();
|
|
13411
|
-
}
|
|
13412
|
-
var ModalLegacy_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div aria-label=Modal><div>");
|
|
13413
|
-
function ModalLegacy(props) {
|
|
13414
|
-
const { children, open, responsive, onClickBackdrop, dataTheme, class: classProp, className, ...rest } = props;
|
|
13415
|
-
const containerClasses = twMerge("modal", clsx({
|
|
13416
|
-
"modal-open": open,
|
|
13417
|
-
"modal-bottom sm:modal-middle": responsive
|
|
13418
|
-
}));
|
|
13419
|
-
const bodyClasses = twMerge("modal-box", classProp, className);
|
|
13420
|
-
return (()=>{
|
|
13421
|
-
var _el$ = ModalLegacy_tmpl$(), _el$2 = _el$.firstChild;
|
|
13422
|
-
_el$.$$click = (e)=>{
|
|
13423
|
-
e.stopPropagation();
|
|
13424
|
-
if (e.target === e.currentTarget) {
|
|
13425
|
-
e.stopPropagation();
|
|
13426
|
-
onClickBackdrop?.();
|
|
13427
|
-
}
|
|
13428
|
-
};
|
|
13429
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "aria-hidden", !open);
|
|
13430
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "aria-modal", open);
|
|
13431
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "data-theme", dataTheme);
|
|
13432
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, containerClasses);
|
|
13433
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(rest, {
|
|
13434
|
-
"data-theme": dataTheme,
|
|
13435
|
-
class: bodyClasses
|
|
13436
|
-
}), false, true);
|
|
13437
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, children);
|
|
13438
|
-
return _el$;
|
|
13439
|
-
})();
|
|
13440
|
-
}
|
|
13441
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
13442
|
-
"click"
|
|
13443
|
-
]);
|
|
13444
|
-
var Modal_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<dialog><div>"), Modal_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<form method=dialog class=modal-backdrop><button type=submit class=sr-only>Close");
|
|
13445
|
-
function Modal(props) {
|
|
13446
|
-
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
13447
|
-
"children",
|
|
13448
|
-
"open",
|
|
13449
|
-
"position",
|
|
13450
|
-
"responsive",
|
|
13451
|
-
"backdrop",
|
|
13452
|
-
"ariaHidden",
|
|
13453
|
-
"dataTheme",
|
|
13454
|
-
"class",
|
|
13455
|
-
"className",
|
|
13456
|
-
"onClose",
|
|
13457
|
-
"tabindex",
|
|
13458
|
-
"tabIndex",
|
|
13459
|
-
"closeOnEsc",
|
|
13460
|
-
"closeOnOutsideClick",
|
|
13461
|
-
"size"
|
|
13462
|
-
]);
|
|
13463
|
-
const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
13464
|
-
let dialogRef;
|
|
13465
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
13466
|
-
if (!dialogRef) return;
|
|
13467
|
-
if (local.open && !dialogRef.open) dialogRef.showModal();
|
|
13468
|
-
else if (!local.open && dialogRef.open) dialogRef.close();
|
|
13469
|
-
});
|
|
13470
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
13471
|
-
if (!dialogRef) return;
|
|
13472
|
-
const handleClose = ()=>{
|
|
13473
|
-
local.onClose?.();
|
|
13474
|
-
};
|
|
13475
|
-
const handleCancel = (event)=>{
|
|
13476
|
-
if (false === local.closeOnEsc) event.preventDefault();
|
|
13477
|
-
else local.onClose?.();
|
|
13478
|
-
};
|
|
13479
|
-
const handleClick = (event)=>{
|
|
13480
|
-
if (false === local.closeOnOutsideClick) return;
|
|
13481
|
-
const target = event.target;
|
|
13482
|
-
if (!dialogRef) return;
|
|
13483
|
-
if (target === dialogRef || target.closest(".modal-backdrop")) local.onClose?.();
|
|
13484
|
-
};
|
|
13485
|
-
dialogRef.addEventListener("close", handleClose);
|
|
13486
|
-
dialogRef.addEventListener("cancel", handleCancel);
|
|
13487
|
-
dialogRef.addEventListener("click", handleClick);
|
|
13488
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
|
|
13489
|
-
dialogRef?.removeEventListener("close", handleClose);
|
|
13490
|
-
dialogRef?.removeEventListener("cancel", handleCancel);
|
|
13491
|
-
dialogRef?.removeEventListener("click", handleClick);
|
|
13492
|
-
});
|
|
13493
|
-
});
|
|
13494
|
-
const containerClasses = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("modal", dist_clsx({
|
|
13495
|
-
"modal-open": local.open,
|
|
13496
|
-
"modal-end": "end" === local.position,
|
|
13497
|
-
"modal-start": "start" === local.position,
|
|
13498
|
-
"modal-top": "top" === local.position,
|
|
13499
|
-
"modal-middle": "middle" === local.position,
|
|
13500
|
-
"modal-bottom": "bottom" === local.position,
|
|
13501
|
-
"modal-bottom sm:modal-middle": local.responsive
|
|
13502
|
-
})));
|
|
13503
|
-
const bodyClasses = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("modal-box", local.class, local.className, dist_clsx({
|
|
13504
|
-
"max-w-none w-11/12 max-w-7xl": "xl" === local.size,
|
|
13505
|
-
"max-w-none w-11/12 max-w-4xl": "lg" === local.size,
|
|
13506
|
-
"max-w-none w-11/12 max-w-2xl": "md" === local.size,
|
|
13507
|
-
"max-w-none w-80": "sm" === local.size,
|
|
13508
|
-
"max-w-none w-64": "xs" === local.size,
|
|
13509
|
-
"max-w-none w-full h-full": "full" === local.size
|
|
13510
|
-
})));
|
|
13511
|
-
return (()=>{
|
|
13512
|
-
var _el$ = Modal_tmpl$(), _el$2 = _el$.firstChild;
|
|
13513
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)((el)=>{
|
|
13514
|
-
dialogRef = el;
|
|
13515
|
-
if ("function" == typeof others.ref) others.ref(el);
|
|
13516
|
-
}, _el$);
|
|
13517
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
13518
|
-
"aria-label": "Modal",
|
|
13519
|
-
get ["aria-hidden"] () {
|
|
13520
|
-
return local.ariaHidden ?? !local.open;
|
|
13521
|
-
},
|
|
13522
|
-
get ["aria-modal"] () {
|
|
13523
|
-
return local.open;
|
|
13524
|
-
},
|
|
13525
|
-
get ["data-theme"] () {
|
|
13526
|
-
return local.dataTheme;
|
|
13527
|
-
},
|
|
13528
|
-
get ["class"] () {
|
|
13529
|
-
return containerClasses();
|
|
13530
|
-
},
|
|
13531
|
-
get tabIndex () {
|
|
13532
|
-
return local.tabIndex ?? local.tabindex;
|
|
13533
|
-
}
|
|
13534
|
-
}), false, true);
|
|
13535
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, resolvedChildren);
|
|
13536
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (()=>{
|
|
13537
|
-
var _c$ = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!local.backdrop);
|
|
13538
|
-
return ()=>_c$() && Modal_tmpl$2();
|
|
13539
|
-
})(), null);
|
|
13540
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
13541
|
-
var _v$ = local.dataTheme, _v$2 = bodyClasses();
|
|
13542
|
-
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$2, "data-theme", _p$.e = _v$);
|
|
13543
|
-
_v$2 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$2, _p$.t = _v$2);
|
|
13544
|
-
return _p$;
|
|
13545
|
-
}, {
|
|
13546
|
-
e: void 0,
|
|
13547
|
-
t: void 0
|
|
13548
|
-
});
|
|
13549
|
-
return _el$;
|
|
13550
|
-
})();
|
|
13551
|
-
}
|
|
13552
|
-
const modal_Modal = Object.assign(Modal, {
|
|
13553
|
-
Header: ModalHeader,
|
|
13554
|
-
Body: ModalBody,
|
|
13555
|
-
Actions: ModalActions,
|
|
13556
|
-
Legacy: ModalLegacy
|
|
13557
|
-
});
|
|
13558
14298
|
var NavbarSection_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
13559
14299
|
const NavbarSection = (props)=>{
|
|
13560
14300
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -13712,7 +14452,7 @@ const navbar_Navbar = Object.assign(Navbar, {
|
|
|
13712
14452
|
Stack: NavbarStack,
|
|
13713
14453
|
Row: navbar_NavbarRow
|
|
13714
14454
|
});
|
|
13715
|
-
var NoiseBackground_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><div class="absolute inset-0"></div><div class="absolute inset-0"></div><div class="absolute inset-0"></div><div class="absolute inset-x-0 top-0 h-1 opacity-80 blur-sm"></div><div class="pointer-events-none absolute inset-0 overflow-hidden"><img alt class="h-full w-full object-cover"></div><div>');
|
|
14455
|
+
var NoiseBackground_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><div class="absolute inset-0 opacity-40"></div><div class="absolute inset-0 opacity-30"></div><div class="absolute inset-0 opacity-25"></div><div class="absolute inset-x-0 top-0 h-1 opacity-80 blur-sm"></div><div class="pointer-events-none absolute inset-0 overflow-hidden"><img alt class="h-full w-full object-cover"></div><div>');
|
|
13716
14456
|
function NoiseBackground_createSpring(initial, stiffness = 100, damping = 30) {
|
|
13717
14457
|
let current = initial;
|
|
13718
14458
|
let velocity = 0;
|
|
@@ -13876,13 +14616,10 @@ const NoiseBackground = (rawProps)=>{
|
|
|
13876
14616
|
}, others), false, true);
|
|
13877
14617
|
var _ref$2 = layer0;
|
|
13878
14618
|
"function" == typeof _ref$2 ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$2, _el$2) : layer0 = _el$2;
|
|
13879
|
-
_el$2.style.setProperty("opacity", "0.4");
|
|
13880
14619
|
var _ref$3 = layer1;
|
|
13881
14620
|
"function" == typeof _ref$3 ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$3, _el$3) : layer1 = _el$3;
|
|
13882
|
-
_el$3.style.setProperty("opacity", "0.3");
|
|
13883
14621
|
var _ref$4 = layer2;
|
|
13884
14622
|
"function" == typeof _ref$4 ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$4, _el$4) : layer2 = _el$4;
|
|
13885
|
-
_el$4.style.setProperty("opacity", "0.25");
|
|
13886
14623
|
var _ref$5 = stripEl;
|
|
13887
14624
|
"function" == typeof _ref$5 ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$5, _el$5) : stripEl = _el$5;
|
|
13888
14625
|
_el$7.style.setProperty("opacity", "var(--noise-opacity, 0.2)");
|
|
@@ -13905,8 +14642,18 @@ const NoiseBackground = (rawProps)=>{
|
|
|
13905
14642
|
})();
|
|
13906
14643
|
};
|
|
13907
14644
|
const noise_background_NoiseBackground = NoiseBackground;
|
|
13908
|
-
const
|
|
13909
|
-
const
|
|
14645
|
+
const Pagination_Pagination = (props)=>{
|
|
14646
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
14647
|
+
"class",
|
|
14648
|
+
"className"
|
|
14649
|
+
]);
|
|
14650
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(join_Join, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
14651
|
+
get ["class"] () {
|
|
14652
|
+
return twMerge(local.class, local.className);
|
|
14653
|
+
}
|
|
14654
|
+
}));
|
|
14655
|
+
};
|
|
14656
|
+
const Pagination = Pagination_Pagination;
|
|
13910
14657
|
var PhoneMockup_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div aria-label="Phone mockup"><div class=mockup-phone-camera></div><div class=mockup-phone-display><div>');
|
|
13911
14658
|
const PhoneMockup = (props)=>{
|
|
13912
14659
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -14160,17 +14907,118 @@ const Radio = (props)=>{
|
|
|
14160
14907
|
get ["aria-required"] () {
|
|
14161
14908
|
return local["aria-required"];
|
|
14162
14909
|
},
|
|
14163
|
-
get ["aria-labelledby"] () {
|
|
14164
|
-
return local["aria-labelledby"];
|
|
14910
|
+
get ["aria-labelledby"] () {
|
|
14911
|
+
return local["aria-labelledby"];
|
|
14912
|
+
},
|
|
14913
|
+
get ["aria-checked"] () {
|
|
14914
|
+
return local["aria-checked"];
|
|
14915
|
+
}
|
|
14916
|
+
}), false, false);
|
|
14917
|
+
return _el$;
|
|
14918
|
+
})();
|
|
14919
|
+
};
|
|
14920
|
+
const radio_Radio = Radio;
|
|
14921
|
+
var RadioGroup_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<p role=alert class="mt-1 text-sm text-error">'), RadioGroup_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<fieldset role=radiogroup><div>"), RadioGroup_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<legend class="mb-1 font-semibold">'), RadioGroup_tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<label class="flex items-center gap-2 cursor-pointer"><input type=radio><span>');
|
|
14922
|
+
const RadioGroup = (props)=>{
|
|
14923
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
14924
|
+
"name",
|
|
14925
|
+
"label",
|
|
14926
|
+
"options",
|
|
14927
|
+
"value",
|
|
14928
|
+
"onChange",
|
|
14929
|
+
"size",
|
|
14930
|
+
"color",
|
|
14931
|
+
"direction",
|
|
14932
|
+
"error",
|
|
14933
|
+
"dataTheme",
|
|
14934
|
+
"class",
|
|
14935
|
+
"className",
|
|
14936
|
+
"style"
|
|
14937
|
+
]);
|
|
14938
|
+
const errorId = `${props.name}-error`;
|
|
14939
|
+
const radioClasses = ()=>twMerge("radio", clsx({
|
|
14940
|
+
"radio-xl": "xl" === local.size,
|
|
14941
|
+
"radio-lg": "lg" === local.size,
|
|
14942
|
+
"radio-md": "md" === local.size,
|
|
14943
|
+
"radio-sm": "sm" === local.size,
|
|
14944
|
+
"radio-xs": "xs" === local.size,
|
|
14945
|
+
"radio-neutral": "neutral" === local.color,
|
|
14946
|
+
"radio-primary": "primary" === local.color,
|
|
14947
|
+
"radio-secondary": "secondary" === local.color,
|
|
14948
|
+
"radio-accent": "accent" === local.color,
|
|
14949
|
+
"radio-info": "info" === local.color,
|
|
14950
|
+
"radio-success": "success" === local.color,
|
|
14951
|
+
"radio-warning": "warning" === local.color,
|
|
14952
|
+
"radio-error": "error" === local.color
|
|
14953
|
+
}));
|
|
14954
|
+
const containerClasses = ()=>twMerge("flex gap-2", local.class, local.className, clsx({
|
|
14955
|
+
"flex-row": "horizontal" === local.direction,
|
|
14956
|
+
"flex-col": "horizontal" !== local.direction
|
|
14957
|
+
}));
|
|
14958
|
+
return (()=>{
|
|
14959
|
+
var _el$ = RadioGroup_tmpl$2(), _el$2 = _el$.firstChild;
|
|
14960
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
14961
|
+
get ["aria-orientation"] () {
|
|
14962
|
+
return "horizontal" === local.direction ? "horizontal" : "vertical";
|
|
14963
|
+
},
|
|
14964
|
+
get ["aria-describedby"] () {
|
|
14965
|
+
return local.error ? errorId : void 0;
|
|
14966
|
+
},
|
|
14967
|
+
get ["data-theme"] () {
|
|
14968
|
+
return local.dataTheme;
|
|
14969
|
+
},
|
|
14970
|
+
get style () {
|
|
14971
|
+
return local.style;
|
|
14972
|
+
}
|
|
14973
|
+
}, others), false, true);
|
|
14974
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (()=>{
|
|
14975
|
+
var _c$ = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!local.label);
|
|
14976
|
+
return ()=>_c$() && (()=>{
|
|
14977
|
+
var _el$4 = RadioGroup_tmpl$3();
|
|
14978
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, ()=>local.label);
|
|
14979
|
+
return _el$4;
|
|
14980
|
+
})();
|
|
14981
|
+
})(), _el$2);
|
|
14982
|
+
(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, {
|
|
14983
|
+
get each () {
|
|
14984
|
+
return local.options;
|
|
14985
|
+
},
|
|
14986
|
+
children: (option)=>(()=>{
|
|
14987
|
+
var _el$5 = RadioGroup_tmpl$4(), _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling;
|
|
14988
|
+
_el$6.addEventListener("change", ()=>local.onChange?.(option.value));
|
|
14989
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$7, ()=>option.label);
|
|
14990
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
14991
|
+
var _v$ = local.name, _v$2 = radioClasses(), _v$3 = option.disabled;
|
|
14992
|
+
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$6, "name", _p$.e = _v$);
|
|
14993
|
+
_v$2 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$6, _p$.t = _v$2);
|
|
14994
|
+
_v$3 !== _p$.a && (_el$6.disabled = _p$.a = _v$3);
|
|
14995
|
+
return _p$;
|
|
14996
|
+
}, {
|
|
14997
|
+
e: void 0,
|
|
14998
|
+
t: void 0,
|
|
14999
|
+
a: void 0
|
|
15000
|
+
});
|
|
15001
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>_el$6.value = option.value);
|
|
15002
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>_el$6.checked = local.value === option.value);
|
|
15003
|
+
return _el$5;
|
|
15004
|
+
})()
|
|
15005
|
+
}));
|
|
15006
|
+
(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, {
|
|
15007
|
+
get when () {
|
|
15008
|
+
return local.error;
|
|
14165
15009
|
},
|
|
14166
|
-
get
|
|
14167
|
-
|
|
15010
|
+
get children () {
|
|
15011
|
+
var _el$3 = RadioGroup_tmpl$();
|
|
15012
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$3, "id", errorId);
|
|
15013
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, ()=>local.error);
|
|
15014
|
+
return _el$3;
|
|
14168
15015
|
}
|
|
14169
|
-
}),
|
|
15016
|
+
}), null);
|
|
15017
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$2, containerClasses()));
|
|
14170
15018
|
return _el$;
|
|
14171
15019
|
})();
|
|
14172
15020
|
};
|
|
14173
|
-
const
|
|
15021
|
+
const radio_group_RadioGroup = RadioGroup;
|
|
14174
15022
|
var Range_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<input>"), Range_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="relative mt-2 h-4 w-full max-w-xs"><div class="absolute inset-0 flex items-center justify-between px-2">'), Range_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<span class="absolute text-xs">|');
|
|
14175
15023
|
const Range = (props)=>{
|
|
14176
15024
|
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -14250,6 +15098,112 @@ const Range = (props)=>{
|
|
|
14250
15098
|
];
|
|
14251
15099
|
};
|
|
14252
15100
|
const range_Range = Range;
|
|
15101
|
+
var RangeSlider_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="flex items-center justify-between"><label class="text-sm font-medium"></label><span class=text-sm aria-live=polite>'), RangeSlider_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><input>");
|
|
15102
|
+
const SliderField = (props)=>{
|
|
15103
|
+
const [local, inputRest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
15104
|
+
"label",
|
|
15105
|
+
"value",
|
|
15106
|
+
"onChange",
|
|
15107
|
+
"min",
|
|
15108
|
+
"max",
|
|
15109
|
+
"step",
|
|
15110
|
+
"disabled",
|
|
15111
|
+
"formatValue",
|
|
15112
|
+
"color",
|
|
15113
|
+
"size",
|
|
15114
|
+
"dataTheme",
|
|
15115
|
+
"class",
|
|
15116
|
+
"className",
|
|
15117
|
+
"style"
|
|
15118
|
+
]);
|
|
15119
|
+
const min = ()=>local.min ?? 0;
|
|
15120
|
+
const max = ()=>local.max ?? 100;
|
|
15121
|
+
const step = ()=>local.step ?? 1;
|
|
15122
|
+
const formattedValue = ()=>local.formatValue ? local.formatValue(local.value) : String(local.value);
|
|
15123
|
+
const rangeClasses = ()=>twMerge("range", clsx({
|
|
15124
|
+
"range-xl": "xl" === local.size,
|
|
15125
|
+
"range-lg": "lg" === local.size,
|
|
15126
|
+
"range-md": "md" === local.size,
|
|
15127
|
+
"range-sm": "sm" === local.size,
|
|
15128
|
+
"range-xs": "xs" === local.size,
|
|
15129
|
+
"range-neutral": "neutral" === local.color,
|
|
15130
|
+
"range-primary": "primary" === local.color,
|
|
15131
|
+
"range-secondary": "secondary" === local.color,
|
|
15132
|
+
"range-accent": "accent" === local.color,
|
|
15133
|
+
"range-info": "info" === local.color,
|
|
15134
|
+
"range-success": "success" === local.color,
|
|
15135
|
+
"range-warning": "warning" === local.color,
|
|
15136
|
+
"range-error": "error" === local.color
|
|
15137
|
+
}));
|
|
15138
|
+
const containerClasses = ()=>twMerge("flex flex-col gap-1", local.class, local.className);
|
|
15139
|
+
const inputId = `range-slider-${(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createUniqueId)()}`;
|
|
15140
|
+
const handleInput = (e)=>{
|
|
15141
|
+
local.onChange(Number(e.currentTarget.value));
|
|
15142
|
+
};
|
|
15143
|
+
return (()=>{
|
|
15144
|
+
var _el$ = RangeSlider_tmpl$2(), _el$5 = _el$.firstChild;
|
|
15145
|
+
(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, {
|
|
15146
|
+
get when () {
|
|
15147
|
+
return local.label;
|
|
15148
|
+
},
|
|
15149
|
+
get children () {
|
|
15150
|
+
var _el$2 = RangeSlider_tmpl$(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
|
|
15151
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$3, "for", inputId);
|
|
15152
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, ()=>local.label);
|
|
15153
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, formattedValue);
|
|
15154
|
+
return _el$2;
|
|
15155
|
+
}
|
|
15156
|
+
}), _el$5);
|
|
15157
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$5, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(inputRest, {
|
|
15158
|
+
id: inputId,
|
|
15159
|
+
type: "range",
|
|
15160
|
+
get ["class"] () {
|
|
15161
|
+
return rangeClasses();
|
|
15162
|
+
},
|
|
15163
|
+
get min () {
|
|
15164
|
+
return min();
|
|
15165
|
+
},
|
|
15166
|
+
get max () {
|
|
15167
|
+
return max();
|
|
15168
|
+
},
|
|
15169
|
+
get step () {
|
|
15170
|
+
return step();
|
|
15171
|
+
},
|
|
15172
|
+
get disabled () {
|
|
15173
|
+
return local.disabled;
|
|
15174
|
+
},
|
|
15175
|
+
get value () {
|
|
15176
|
+
return local.value;
|
|
15177
|
+
},
|
|
15178
|
+
onInput: handleInput,
|
|
15179
|
+
get ["aria-valuemin"] () {
|
|
15180
|
+
return min();
|
|
15181
|
+
},
|
|
15182
|
+
get ["aria-valuemax"] () {
|
|
15183
|
+
return max();
|
|
15184
|
+
},
|
|
15185
|
+
get ["aria-valuenow"] () {
|
|
15186
|
+
return local.value;
|
|
15187
|
+
},
|
|
15188
|
+
get ["aria-valuetext"] () {
|
|
15189
|
+
return formattedValue();
|
|
15190
|
+
}
|
|
15191
|
+
}), false, false);
|
|
15192
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
15193
|
+
var _v$ = local.dataTheme, _v$2 = containerClasses(), _v$3 = local.style;
|
|
15194
|
+
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "data-theme", _p$.e = _v$);
|
|
15195
|
+
_v$2 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, _p$.t = _v$2);
|
|
15196
|
+
_p$.a = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$, _v$3, _p$.a);
|
|
15197
|
+
return _p$;
|
|
15198
|
+
}, {
|
|
15199
|
+
e: void 0,
|
|
15200
|
+
t: void 0,
|
|
15201
|
+
a: void 0
|
|
15202
|
+
});
|
|
15203
|
+
return _el$;
|
|
15204
|
+
})();
|
|
15205
|
+
};
|
|
15206
|
+
const RangeSlider = SliderField;
|
|
14253
15207
|
var RatingHidden_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<input>");
|
|
14254
15208
|
const RatingHidden = (props)=>{
|
|
14255
15209
|
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -14796,6 +15750,36 @@ const Skeleton = (props)=>{
|
|
|
14796
15750
|
})();
|
|
14797
15751
|
};
|
|
14798
15752
|
const skeleton_Skeleton = Skeleton;
|
|
15753
|
+
var SkipLink_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<a>");
|
|
15754
|
+
function SkipLink(props) {
|
|
15755
|
+
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
15756
|
+
"href",
|
|
15757
|
+
"children",
|
|
15758
|
+
"class",
|
|
15759
|
+
"className",
|
|
15760
|
+
"style",
|
|
15761
|
+
"dataTheme"
|
|
15762
|
+
]);
|
|
15763
|
+
return (()=>{
|
|
15764
|
+
var _el$ = SkipLink_tmpl$();
|
|
15765
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
15766
|
+
get href () {
|
|
15767
|
+
return local.href ?? "#main-content";
|
|
15768
|
+
},
|
|
15769
|
+
get ["class"] () {
|
|
15770
|
+
return twMerge("sr-only focus:not-sr-only focus:fixed focus:top-4 focus:left-4 focus:z-50 focus:px-4 focus:py-2 focus:rounded focus:bg-primary focus:text-primary-content focus:outline-none", local.class, local.className);
|
|
15771
|
+
},
|
|
15772
|
+
get style () {
|
|
15773
|
+
return local.style;
|
|
15774
|
+
},
|
|
15775
|
+
get ["data-theme"] () {
|
|
15776
|
+
return local.dataTheme;
|
|
15777
|
+
}
|
|
15778
|
+
}, rest), false, true);
|
|
15779
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>local.children ?? "Skip to main content");
|
|
15780
|
+
return _el$;
|
|
15781
|
+
})();
|
|
15782
|
+
}
|
|
14799
15783
|
const Stack_Stack = (props)=>{
|
|
14800
15784
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
14801
15785
|
"children",
|
|
@@ -15190,7 +16174,7 @@ const steps_Steps = Object.assign(Steps, {
|
|
|
15190
16174
|
Step: steps_Step
|
|
15191
16175
|
});
|
|
15192
16176
|
const steps = steps_Steps;
|
|
15193
|
-
var SvgBackground_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><ellipse></svg>", false, true, false), SvgBackground_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle></svg>", false, true, false), SvgBackground_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=0 cy=0 r=100 opacity=0.7></svg>", false, true, false), SvgBackground_tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=400 cy=0 r=120></svg>", false, true, false), SvgBackground_tmpl$5 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=0 cy=400 r=100 opacity=0.7></svg>", false, true, false), SvgBackground_tmpl$6 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=400 cy=400 r=120></svg>", false, true, false), SvgBackground_tmpl$7 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=0 cy=200 r=70 opacity=0.6></svg>", false, true, false), SvgBackground_tmpl$8 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=200 cy=0 r=100></svg>", false, true, false), SvgBackground_tmpl$9 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=400 cy=200 r=100></svg>", false, true, false), SvgBackground_tmpl$0 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=200 cy=400 r=100></svg>", false, true, false), _tmpl$1 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><div><svg viewBox="0 0 400 400"xmlns=http://www.w3.org/2000/svg><rect width=400 height=400></rect></svg></div><canvas></canvas><div class="relative z-10 h-full w-full">'), _tmpl$10 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="absolute inset-0 z-5">');
|
|
16177
|
+
var SvgBackground_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><ellipse></svg>", false, true, false), SvgBackground_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle></svg>", false, true, false), SvgBackground_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=0 cy=0 r=100 opacity=0.7></svg>", false, true, false), SvgBackground_tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=400 cy=0 r=120></svg>", false, true, false), SvgBackground_tmpl$5 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=0 cy=400 r=100 opacity=0.7></svg>", false, true, false), SvgBackground_tmpl$6 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=400 cy=400 r=120></svg>", false, true, false), SvgBackground_tmpl$7 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=0 cy=200 r=70 opacity=0.6></svg>", false, true, false), SvgBackground_tmpl$8 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=200 cy=0 r=100></svg>", false, true, false), SvgBackground_tmpl$9 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=400 cy=200 r=100></svg>", false, true, false), SvgBackground_tmpl$0 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=200 cy=400 r=100></svg>", false, true, false), _tmpl$1 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><div class=hidden><svg viewBox="0 0 400 400"xmlns=http://www.w3.org/2000/svg><rect width=400 height=400></rect></svg></div><canvas></canvas><div class="relative z-10 h-full w-full">'), _tmpl$10 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="absolute inset-0 z-5">');
|
|
15194
16178
|
function SvgBackground_hexToRgb(hex) {
|
|
15195
16179
|
hex = hex.replace(/^#/, "");
|
|
15196
16180
|
const bigint = Number.parseInt(hex, 16);
|
|
@@ -15204,21 +16188,32 @@ function SvgBackground_hexToRgb(hex) {
|
|
|
15204
16188
|
};
|
|
15205
16189
|
}
|
|
15206
16190
|
function SvgBackground(props) {
|
|
15207
|
-
const
|
|
16191
|
+
const [local] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
16192
|
+
"colorStart",
|
|
16193
|
+
"colorEnd",
|
|
16194
|
+
"backgroundColor",
|
|
16195
|
+
"opacity",
|
|
16196
|
+
"blurIntensity",
|
|
16197
|
+
"density",
|
|
16198
|
+
"darkness",
|
|
16199
|
+
"class",
|
|
16200
|
+
"style",
|
|
16201
|
+
"children"
|
|
16202
|
+
]);
|
|
15208
16203
|
let containerRef;
|
|
15209
16204
|
let svgRef;
|
|
15210
16205
|
let canvasRef;
|
|
15211
16206
|
const [isBackgroundReady, setBackgroundReady] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(false);
|
|
15212
16207
|
const getIntermediateColor = (t)=>{
|
|
15213
|
-
const start = SvgBackground_hexToRgb(colorStart);
|
|
15214
|
-
const end = SvgBackground_hexToRgb(colorEnd);
|
|
16208
|
+
const start = SvgBackground_hexToRgb(local.colorStart ?? "#6366f1");
|
|
16209
|
+
const end = SvgBackground_hexToRgb(local.colorEnd ?? "#4f46e5");
|
|
15215
16210
|
const r = Math.round(start.r + (end.r - start.r) * t);
|
|
15216
16211
|
const g = Math.round(start.g + (end.g - start.g) * t);
|
|
15217
16212
|
const b = Math.round(start.b + (end.b - start.b) * t);
|
|
15218
16213
|
return `#${r.toString(16).padStart(2, "0")}${g.toString(16).padStart(2, "0")}${b.toString(16).padStart(2, "0")}`;
|
|
15219
16214
|
};
|
|
15220
16215
|
const generateShapes = ()=>{
|
|
15221
|
-
const normalizedDensity = Math.max(1, density);
|
|
16216
|
+
const normalizedDensity = Math.max(1, local.density ?? 5);
|
|
15222
16217
|
const maxShapes = Math.min(200, Math.max(10, Math.ceil(15 + 8 * Math.sqrt(normalizedDensity))));
|
|
15223
16218
|
const colors = [];
|
|
15224
16219
|
for(let i = 0; i < maxShapes; i++){
|
|
@@ -15336,7 +16331,7 @@ function SvgBackground(props) {
|
|
|
15336
16331
|
const edgeShapes = [
|
|
15337
16332
|
(()=>{
|
|
15338
16333
|
var _el$4 = SvgBackground_tmpl$3();
|
|
15339
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$4, "fill", colorStart);
|
|
16334
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$4, "fill", local.colorStart ?? "#6366f1"));
|
|
15340
16335
|
return _el$4;
|
|
15341
16336
|
})(),
|
|
15342
16337
|
(()=>{
|
|
@@ -15351,7 +16346,7 @@ function SvgBackground(props) {
|
|
|
15351
16346
|
})(),
|
|
15352
16347
|
(()=>{
|
|
15353
16348
|
var _el$7 = SvgBackground_tmpl$6();
|
|
15354
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$7, "fill", colorEnd);
|
|
16349
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$7, "fill", local.colorEnd ?? "#4f46e5"));
|
|
15355
16350
|
return _el$7;
|
|
15356
16351
|
})(),
|
|
15357
16352
|
(()=>{
|
|
@@ -15501,16 +16496,17 @@ function SvgBackground(props) {
|
|
|
15501
16496
|
if (!canvasRef) return;
|
|
15502
16497
|
if (containerRef) {
|
|
15503
16498
|
const rect = containerRef.getBoundingClientRect();
|
|
15504
|
-
const blurPadding = Math.ceil(
|
|
16499
|
+
const blurPadding = Math.ceil((local.blurIntensity ?? 40) * 2);
|
|
15505
16500
|
canvasRef.width = rect.width + 2 * blurPadding;
|
|
15506
16501
|
canvasRef.height = rect.height + 2 * blurPadding;
|
|
15507
16502
|
}
|
|
15508
16503
|
const ctx = canvasRef.getContext("2d");
|
|
15509
16504
|
if (!ctx) return;
|
|
15510
16505
|
ctx.clearRect(0, 0, canvasRef.width, canvasRef.height);
|
|
15511
|
-
ctx.fillStyle = backgroundColor;
|
|
16506
|
+
ctx.fillStyle = local.backgroundColor ?? "#000000";
|
|
15512
16507
|
ctx.fillRect(0, 0, canvasRef.width, canvasRef.height);
|
|
15513
|
-
|
|
16508
|
+
const blur = local.blurIntensity ?? 40;
|
|
16509
|
+
ctx.drawImage(img, 2 * -blur, 2 * -blur, canvasRef.width + 4 * blur, canvasRef.height + 4 * blur);
|
|
15514
16510
|
URL.revokeObjectURL(svgUrl);
|
|
15515
16511
|
setBackgroundReady(true);
|
|
15516
16512
|
};
|
|
@@ -15528,6 +16524,7 @@ function SvgBackground(props) {
|
|
|
15528
16524
|
renderSvgToCanvas();
|
|
15529
16525
|
});
|
|
15530
16526
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
16527
|
+
local.colorStart, local.colorEnd, local.backgroundColor, local.opacity, local.blurIntensity, local.density;
|
|
15531
16528
|
setTimeout(()=>{
|
|
15532
16529
|
renderSvgToCanvas();
|
|
15533
16530
|
}, 0);
|
|
@@ -15535,45 +16532,53 @@ function SvgBackground(props) {
|
|
|
15535
16532
|
const backgroundStyle = ()=>({
|
|
15536
16533
|
position: "relative",
|
|
15537
16534
|
overflow: "hidden",
|
|
15538
|
-
...style
|
|
16535
|
+
...local.style
|
|
15539
16536
|
});
|
|
15540
|
-
const canvasStyle = ()=>
|
|
16537
|
+
const canvasStyle = ()=>{
|
|
16538
|
+
const blur = local.blurIntensity ?? 40;
|
|
16539
|
+
const op = local.opacity ?? 1;
|
|
16540
|
+
return {
|
|
15541
16541
|
position: "absolute",
|
|
15542
|
-
top: `-${2 *
|
|
15543
|
-
left: `-${2 *
|
|
15544
|
-
width: `calc(100% + ${4 *
|
|
15545
|
-
height: `calc(100% + ${4 *
|
|
16542
|
+
top: `-${2 * blur}px`,
|
|
16543
|
+
left: `-${2 * blur}px`,
|
|
16544
|
+
width: `calc(100% + ${4 * blur}px)`,
|
|
16545
|
+
height: `calc(100% + ${4 * blur}px)`,
|
|
15546
16546
|
"z-index": "0",
|
|
15547
|
-
opacity:
|
|
15548
|
-
filter: `blur(${
|
|
15549
|
-
}
|
|
16547
|
+
opacity: op.toString(),
|
|
16548
|
+
filter: `blur(${blur}px)`
|
|
16549
|
+
};
|
|
16550
|
+
};
|
|
15550
16551
|
return (()=>{
|
|
15551
16552
|
var _el$14 = _tmpl$1(), _el$15 = _el$14.firstChild, _el$16 = _el$15.firstChild, _el$17 = _el$16.firstChild, _el$18 = _el$15.nextSibling, _el$19 = _el$18.nextSibling;
|
|
15552
16553
|
var _ref$ = containerRef;
|
|
15553
16554
|
"function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$14) : containerRef = _el$14;
|
|
15554
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$14, `relative flex items-center justify-center ${className}`);
|
|
15555
|
-
_el$15.style.setProperty("display", "none");
|
|
15556
16555
|
var _ref$2 = svgRef;
|
|
15557
16556
|
"function" == typeof _ref$2 ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$2, _el$16) : svgRef = _el$16;
|
|
15558
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$17, "fill", backgroundColor);
|
|
15559
16557
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$16, generateShapes, null);
|
|
15560
16558
|
var _ref$3 = canvasRef;
|
|
15561
16559
|
"function" == typeof _ref$3 ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$3, _el$18) : canvasRef = _el$18;
|
|
15562
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$14,
|
|
15563
|
-
var
|
|
15564
|
-
|
|
15565
|
-
|
|
15566
|
-
|
|
16560
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$14, (()=>{
|
|
16561
|
+
var _c$ = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>(local.darkness ?? 0) > 0);
|
|
16562
|
+
return ()=>_c$() && (()=>{
|
|
16563
|
+
var _el$20 = _tmpl$10();
|
|
16564
|
+
_el$20.style.setProperty("pointer-events", "none");
|
|
16565
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_$p)=>(_$p = `rgba(0, 0, 0, ${local.darkness ?? 0})`, _el$20.style.setProperty("background-color", _$p)));
|
|
16566
|
+
return _el$20;
|
|
16567
|
+
})();
|
|
15567
16568
|
})(), _el$19);
|
|
15568
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$19, children);
|
|
16569
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$19, ()=>local.children);
|
|
15569
16570
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
15570
|
-
var _v$33 =
|
|
15571
|
-
_p$.e
|
|
15572
|
-
_p$.t = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$
|
|
16571
|
+
var _v$33 = twMerge("relative flex items-center justify-center", local.class), _v$34 = backgroundStyle(), _v$35 = local.backgroundColor ?? "#000000", _v$36 = canvasStyle();
|
|
16572
|
+
_v$33 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$14, _p$.e = _v$33);
|
|
16573
|
+
_p$.t = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$14, _v$34, _p$.t);
|
|
16574
|
+
_v$35 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$17, "fill", _p$.a = _v$35);
|
|
16575
|
+
_p$.o = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$18, _v$36, _p$.o);
|
|
15573
16576
|
return _p$;
|
|
15574
16577
|
}, {
|
|
15575
16578
|
e: void 0,
|
|
15576
|
-
t: void 0
|
|
16579
|
+
t: void 0,
|
|
16580
|
+
a: void 0,
|
|
16581
|
+
o: void 0
|
|
15577
16582
|
});
|
|
15578
16583
|
return _el$14;
|
|
15579
16584
|
})();
|
|
@@ -16665,7 +17670,9 @@ const StreamingTable = (props)=>{
|
|
|
16665
17670
|
"pageSize",
|
|
16666
17671
|
"initialPage",
|
|
16667
17672
|
"enableSorting",
|
|
16668
|
-
"initialSorting"
|
|
17673
|
+
"initialSorting",
|
|
17674
|
+
"class",
|
|
17675
|
+
"className"
|
|
16669
17676
|
]);
|
|
16670
17677
|
const store = createStreamingTableStore();
|
|
16671
17678
|
const [sortingState, setSortingState] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(local.initialSorting ?? {
|
|
@@ -16681,9 +17688,9 @@ const StreamingTable = (props)=>{
|
|
|
16681
17688
|
};
|
|
16682
17689
|
const resolveId = (row)=>{
|
|
16683
17690
|
if (local.getRowId) return local.getRowId(row);
|
|
16684
|
-
const
|
|
16685
|
-
if (null !=
|
|
16686
|
-
return JSON.stringify(
|
|
17691
|
+
const rowWithId = row;
|
|
17692
|
+
if (null != rowWithId.id) return String(rowWithId.id);
|
|
17693
|
+
return JSON.stringify(row);
|
|
16687
17694
|
};
|
|
16688
17695
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
16689
17696
|
const incoming = local.data ?? [];
|
|
@@ -16884,9 +17891,7 @@ const StreamingTable = (props)=>{
|
|
|
16884
17891
|
get colSpan () {
|
|
16885
17892
|
return local.columns.length;
|
|
16886
17893
|
},
|
|
16887
|
-
|
|
16888
|
-
"text-align": "center"
|
|
16889
|
-
},
|
|
17894
|
+
class: "text-center",
|
|
16890
17895
|
children: "No data"
|
|
16891
17896
|
});
|
|
16892
17897
|
}
|
|
@@ -16930,7 +17935,7 @@ const StreamingTable = (props)=>{
|
|
|
16930
17935
|
get children () {
|
|
16931
17936
|
var _el$3 = StreamingTable_tmpl$2(), _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$7 = _el$5.nextSibling;
|
|
16932
17937
|
_el$7.nextSibling;
|
|
16933
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(
|
|
17938
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(Pagination, {
|
|
16934
17939
|
get children () {
|
|
16935
17940
|
return [
|
|
16936
17941
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(button_Button, {
|
|
@@ -16976,6 +17981,7 @@ const StreamingTable = (props)=>{
|
|
|
16976
17981
|
return _el$3;
|
|
16977
17982
|
}
|
|
16978
17983
|
}), null);
|
|
17984
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, twMerge(local.class, local.className)));
|
|
16979
17985
|
return _el$;
|
|
16980
17986
|
})();
|
|
16981
17987
|
};
|
|
@@ -17630,20 +18636,30 @@ function hueToColorValue(hue, sat) {
|
|
|
17630
18636
|
};
|
|
17631
18637
|
}
|
|
17632
18638
|
const ThemeColorPicker_ThemeColorPicker = (props)=>{
|
|
18639
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
18640
|
+
"storagePrefix",
|
|
18641
|
+
"onColorChange",
|
|
18642
|
+
"aria-label",
|
|
18643
|
+
"children",
|
|
18644
|
+
"class",
|
|
18645
|
+
"className",
|
|
18646
|
+
"style",
|
|
18647
|
+
"dataTheme"
|
|
18648
|
+
]);
|
|
17633
18649
|
const [isOpen, setIsOpen] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(false);
|
|
17634
18650
|
const [featureAvailable, setFeatureAvailable] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(true);
|
|
17635
18651
|
let containerRef;
|
|
17636
|
-
const store = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>createHueShiftStore(
|
|
18652
|
+
const store = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>createHueShiftStore(local.storagePrefix ?? "theme"));
|
|
17637
18653
|
const colorValue = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>hueToColorValue(store().hueShift(), store().hueSaturation()));
|
|
17638
18654
|
const handleColorChange = (color)=>{
|
|
17639
18655
|
const hue = color.hsl.h;
|
|
17640
18656
|
const saturation = color.hsl.s;
|
|
17641
18657
|
if (saturation < 10 && color.hsl.l > 90) {
|
|
17642
18658
|
store().setHueShift(null);
|
|
17643
|
-
|
|
18659
|
+
local.onColorChange?.(null, 100);
|
|
17644
18660
|
} else {
|
|
17645
18661
|
store().setHueShift(hue, saturation);
|
|
17646
|
-
|
|
18662
|
+
local.onColorChange?.(hue, saturation);
|
|
17647
18663
|
}
|
|
17648
18664
|
};
|
|
17649
18665
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
@@ -17675,7 +18691,7 @@ const ThemeColorPicker_ThemeColorPicker = (props)=>{
|
|
|
17675
18691
|
onChange: handleColorChange,
|
|
17676
18692
|
onFormatChange: ()=>{}
|
|
17677
18693
|
});
|
|
17678
|
-
const classes = ()=>twMerge("relative", clsx(
|
|
18694
|
+
const classes = ()=>twMerge("relative", clsx(local.class, local.className));
|
|
17679
18695
|
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
17680
18696
|
get when () {
|
|
17681
18697
|
return featureAvailable();
|
|
@@ -17685,18 +18701,26 @@ const ThemeColorPicker_ThemeColorPicker = (props)=>{
|
|
|
17685
18701
|
_el$.$$keydown = handleKeyDown;
|
|
17686
18702
|
var _ref$ = containerRef;
|
|
17687
18703
|
"function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$) : containerRef = _el$;
|
|
18704
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
18705
|
+
get ["class"] () {
|
|
18706
|
+
return classes();
|
|
18707
|
+
},
|
|
18708
|
+
get style () {
|
|
18709
|
+
return local.style;
|
|
18710
|
+
}
|
|
18711
|
+
}, others), false, true);
|
|
17688
18712
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(button_Button, {
|
|
17689
18713
|
type: "button",
|
|
17690
18714
|
size: "sm",
|
|
17691
18715
|
onClick: ()=>setIsOpen(!isOpen()),
|
|
17692
18716
|
get ["aria-label"] () {
|
|
17693
|
-
return
|
|
18717
|
+
return local["aria-label"] ?? "Change theme color";
|
|
17694
18718
|
},
|
|
17695
18719
|
get ["aria-expanded"] () {
|
|
17696
18720
|
return isOpen();
|
|
17697
18721
|
},
|
|
17698
18722
|
get children () {
|
|
17699
|
-
return
|
|
18723
|
+
return local.children ?? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(icon_Icon, {
|
|
17700
18724
|
name: "icon-[mdi--palette]",
|
|
17701
18725
|
width: 16,
|
|
17702
18726
|
height: 16,
|
|
@@ -17725,15 +18749,6 @@ const ThemeColorPicker_ThemeColorPicker = (props)=>{
|
|
|
17725
18749
|
return _el$2;
|
|
17726
18750
|
}
|
|
17727
18751
|
}), null);
|
|
17728
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
17729
|
-
var _v$ = classes(), _v$2 = props.style;
|
|
17730
|
-
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, _p$.e = _v$);
|
|
17731
|
-
_p$.t = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$, _v$2, _p$.t);
|
|
17732
|
-
return _p$;
|
|
17733
|
-
}, {
|
|
17734
|
-
e: void 0,
|
|
17735
|
-
t: void 0
|
|
17736
|
-
});
|
|
17737
18752
|
return _el$;
|
|
17738
18753
|
}
|
|
17739
18754
|
});
|
|
@@ -18033,6 +19048,7 @@ const defaultRenderToast = (toast, dismiss)=>(0, __WEBPACK_EXTERNAL_MODULE_solid
|
|
|
18033
19048
|
});
|
|
18034
19049
|
const ToastStack_ToastStack = (props)=>{
|
|
18035
19050
|
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
19051
|
+
"class",
|
|
18036
19052
|
"motionPreset",
|
|
18037
19053
|
"motionPresetName",
|
|
18038
19054
|
"reduceMotion",
|
|
@@ -18076,6 +19092,9 @@ const ToastStack_ToastStack = (props)=>{
|
|
|
18076
19092
|
});
|
|
18077
19093
|
const renderToast = ()=>local.renderToast ?? defaultRenderToast;
|
|
18078
19094
|
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(toast_Toast, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(rest, {
|
|
19095
|
+
get ["class"] () {
|
|
19096
|
+
return twMerge(local.class);
|
|
19097
|
+
},
|
|
18079
19098
|
get children () {
|
|
18080
19099
|
var _el$2 = ToastStack_tmpl$2();
|
|
18081
19100
|
(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, {
|
|
@@ -18159,7 +19178,16 @@ const ToastStack = ToastStack_ToastStack;
|
|
|
18159
19178
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
18160
19179
|
"click"
|
|
18161
19180
|
]);
|
|
18162
|
-
const ToastContainer = ()=>
|
|
19181
|
+
const ToastContainer = (props)=>{
|
|
19182
|
+
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
19183
|
+
"class"
|
|
19184
|
+
]);
|
|
19185
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(ToastStack, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(rest, {
|
|
19186
|
+
get ["class"] () {
|
|
19187
|
+
return twMerge(local.class);
|
|
19188
|
+
}
|
|
19189
|
+
}));
|
|
19190
|
+
};
|
|
18163
19191
|
var Toggle_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<input>");
|
|
18164
19192
|
const Toggle = (props)=>{
|
|
18165
19193
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -18228,6 +19256,142 @@ const Toggle = (props)=>{
|
|
|
18228
19256
|
})();
|
|
18229
19257
|
};
|
|
18230
19258
|
const toggle_Toggle = Toggle;
|
|
19259
|
+
var SwitchField_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<span role=alert class="text-error text-xs">'), SwitchField_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><div class="flex flex-col"><label>'), SwitchField_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<span class="text-xs opacity-60">');
|
|
19260
|
+
const SwitchField = (props)=>{
|
|
19261
|
+
const id = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createUniqueId)();
|
|
19262
|
+
const toggleId = `switch-field-input-${id}`;
|
|
19263
|
+
const descriptionId = `switch-field-desc-${id}`;
|
|
19264
|
+
const errorId = `switch-field-error-${id}`;
|
|
19265
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
19266
|
+
"label",
|
|
19267
|
+
"description",
|
|
19268
|
+
"checked",
|
|
19269
|
+
"onChange",
|
|
19270
|
+
"disabled",
|
|
19271
|
+
"size",
|
|
19272
|
+
"color",
|
|
19273
|
+
"error",
|
|
19274
|
+
"dataTheme",
|
|
19275
|
+
"class",
|
|
19276
|
+
"className",
|
|
19277
|
+
"style"
|
|
19278
|
+
]);
|
|
19279
|
+
const classes = ()=>twMerge("flex items-center justify-between gap-4", local.class, local.className, clsx({
|
|
19280
|
+
"opacity-50": local.disabled
|
|
19281
|
+
}));
|
|
19282
|
+
return (()=>{
|
|
19283
|
+
var _el$ = SwitchField_tmpl$2(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild;
|
|
19284
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
19285
|
+
get ["data-theme"] () {
|
|
19286
|
+
return local.dataTheme;
|
|
19287
|
+
},
|
|
19288
|
+
get ["class"] () {
|
|
19289
|
+
return classes();
|
|
19290
|
+
},
|
|
19291
|
+
get style () {
|
|
19292
|
+
return local.style;
|
|
19293
|
+
}
|
|
19294
|
+
}), false, true);
|
|
19295
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$3, "for", toggleId);
|
|
19296
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, ()=>local.label);
|
|
19297
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, (()=>{
|
|
19298
|
+
var _c$ = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!local.description);
|
|
19299
|
+
return ()=>_c$() && (()=>{
|
|
19300
|
+
var _el$5 = SwitchField_tmpl$3();
|
|
19301
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$5, "id", descriptionId);
|
|
19302
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$5, ()=>local.description);
|
|
19303
|
+
return _el$5;
|
|
19304
|
+
})();
|
|
19305
|
+
})(), null);
|
|
19306
|
+
(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, {
|
|
19307
|
+
get when () {
|
|
19308
|
+
return local.error;
|
|
19309
|
+
},
|
|
19310
|
+
get children () {
|
|
19311
|
+
var _el$4 = SwitchField_tmpl$();
|
|
19312
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$4, "id", errorId);
|
|
19313
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, ()=>local.error);
|
|
19314
|
+
return _el$4;
|
|
19315
|
+
}
|
|
19316
|
+
}), null);
|
|
19317
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(toggle_Toggle, {
|
|
19318
|
+
id: toggleId,
|
|
19319
|
+
get checked () {
|
|
19320
|
+
return local.checked;
|
|
19321
|
+
},
|
|
19322
|
+
get disabled () {
|
|
19323
|
+
return local.disabled;
|
|
19324
|
+
},
|
|
19325
|
+
get size () {
|
|
19326
|
+
return local.size;
|
|
19327
|
+
},
|
|
19328
|
+
get color () {
|
|
19329
|
+
return local.color;
|
|
19330
|
+
},
|
|
19331
|
+
get ["aria-describedby"] () {
|
|
19332
|
+
return [
|
|
19333
|
+
local.description ? descriptionId : "",
|
|
19334
|
+
local.error ? errorId : ""
|
|
19335
|
+
].filter(Boolean).join(" ") || void 0;
|
|
19336
|
+
},
|
|
19337
|
+
onChange: (e)=>local.onChange?.(e.currentTarget.checked)
|
|
19338
|
+
}), null);
|
|
19339
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$3, clsx("text-sm font-medium", local.disabled ? "cursor-not-allowed" : "cursor-pointer")));
|
|
19340
|
+
return _el$;
|
|
19341
|
+
})();
|
|
19342
|
+
};
|
|
19343
|
+
const switch_field_SwitchField = SwitchField;
|
|
19344
|
+
var VideoPreview_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<video>");
|
|
19345
|
+
const VideoPreview = (props)=>{
|
|
19346
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
19347
|
+
"stream",
|
|
19348
|
+
"muted",
|
|
19349
|
+
"mirror",
|
|
19350
|
+
"dataTheme",
|
|
19351
|
+
"class",
|
|
19352
|
+
"className",
|
|
19353
|
+
"style"
|
|
19354
|
+
]);
|
|
19355
|
+
const muted = ()=>local.muted ?? true;
|
|
19356
|
+
const mirror = ()=>local.mirror ?? false;
|
|
19357
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
19358
|
+
get when () {
|
|
19359
|
+
return local.stream();
|
|
19360
|
+
},
|
|
19361
|
+
children: (stream)=>{
|
|
19362
|
+
let videoRef;
|
|
19363
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
19364
|
+
videoRef.srcObject = stream();
|
|
19365
|
+
});
|
|
19366
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
|
|
19367
|
+
videoRef.srcObject = null;
|
|
19368
|
+
});
|
|
19369
|
+
return (()=>{
|
|
19370
|
+
var _el$ = VideoPreview_tmpl$();
|
|
19371
|
+
var _ref$ = videoRef;
|
|
19372
|
+
"function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$) : videoRef = _el$;
|
|
19373
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
19374
|
+
autoplay: true,
|
|
19375
|
+
playsinline: true,
|
|
19376
|
+
get muted () {
|
|
19377
|
+
return muted();
|
|
19378
|
+
},
|
|
19379
|
+
get ["data-theme"] () {
|
|
19380
|
+
return local.dataTheme;
|
|
19381
|
+
},
|
|
19382
|
+
get ["class"] () {
|
|
19383
|
+
return twMerge(mirror() && "-scale-x-100", local.class, local.className);
|
|
19384
|
+
},
|
|
19385
|
+
get style () {
|
|
19386
|
+
return local.style;
|
|
19387
|
+
}
|
|
19388
|
+
}), false, false);
|
|
19389
|
+
return _el$;
|
|
19390
|
+
})();
|
|
19391
|
+
}
|
|
19392
|
+
});
|
|
19393
|
+
};
|
|
19394
|
+
const video_preview_VideoPreview = VideoPreview;
|
|
18231
19395
|
var WindowMockup_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>"), WindowMockup_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div aria-label="Window mockup">');
|
|
18232
19396
|
const WindowMockup = (props)=>{
|
|
18233
19397
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -18388,4 +19552,4 @@ const createRouteTransitionResolver = (options)=>{
|
|
|
18388
19552
|
return fallback ?? noMotion;
|
|
18389
19553
|
};
|
|
18390
19554
|
};
|
|
18391
|
-
export { accordion_Accordion as Accordion, alert_Alert as Alert, AlphaSlider, artboard_Artboard as Artboard, avatar as Avatar, background_Background as Background, Badge, bottom_sheet_BottomSheet as BottomSheet, 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, colorpicker_ColorInput as ColorInput, colorpicker_ColorPicker as ColorPicker, ColorPickerContext, ColorPickerFlowerSelector, colorpicker_ColorPickerGradientSelector as ColorPickerGradientSelector, ColorPickerWheelSelector, colorpicker_ColorPreview as ColorPreview, colorpicker_ColorSwatches as ColorSwatches, ColorWheel, colorpicker_ColorWheelFlower as ColorWheelFlower, connectionstatus_ConnectionStatus as ConnectionStatus, CookieConsent, CopyButton, countdown_Countdown as Countdown, diff_Diff as Diff, divider as Divider, dock as Dock, Drawer, dropdown as Dropdown, EnhancedTable, FileInput, FirefoxPWABanner, flex_Flex as Flex, floating_dock_FloatingDock as FloatingDock, footer_Footer as Footer, form_Form as Form, glass_panel_GlassPanel as GlassPanel, Grid, hero_Hero as Hero, colorpicker_HueSlider as HueSlider, I18nContext, I18nProvider, icon_Icon as Icon, immersive_landing_ImmersiveLanding as ImmersiveLanding, ImmersiveLandingContext, indicator_Indicator as Indicator, input as Input, join_Join as Join, kbd_Kbd as Kbd, language_switcher_LanguageSwitcher as LanguageSwitcher, LightnessSlider, link_Link as Link, live_chat_LiveChatBubble as LiveChatBubble, LiveChatPanel, loading_Loading as Loading, mask as Mask, menu_Menu as Menu, modal_Modal as Modal, MotionDiv, navbar_Navbar as Navbar, noise_background_NoiseBackground as NoiseBackground, PWAInstallPrompt,
|
|
19555
|
+
export { accordion_Accordion as Accordion, alert_Alert as Alert, AlphaSlider, artboard_Artboard as Artboard, avatar as Avatar, background_Background as Background, Badge, bottom_sheet_BottomSheet as BottomSheet, 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, colorpicker_ColorInput as ColorInput, colorpicker_ColorPicker as ColorPicker, ColorPickerContext, ColorPickerFlowerSelector, colorpicker_ColorPickerGradientSelector as ColorPickerGradientSelector, ColorPickerWheelSelector, colorpicker_ColorPreview as ColorPreview, colorpicker_ColorSwatches as ColorSwatches, ColorWheel, colorpicker_ColorWheelFlower as ColorWheelFlower, ConfirmDialog, connectionstatus_ConnectionStatus as ConnectionStatus, CookieConsent, CopyButton, countdown_Countdown as Countdown, diff_Diff as Diff, divider as Divider, dock as Dock, Drawer, dropdown as Dropdown, DropdownSelect, EmptyState, EnhancedTable, Fieldset, FileInput, FirefoxPWABanner, flex_Flex as Flex, floating_dock_FloatingDock as FloatingDock, footer_Footer as Footer, form_Form as Form, form_actions_FormActions as FormActions, glass_panel_GlassPanel as GlassPanel, GlowCard, Grid, hero_Hero as Hero, colorpicker_HueSlider as HueSlider, I18nContext, I18nProvider, icon_Icon as Icon, immersive_landing_ImmersiveLanding as ImmersiveLanding, ImmersiveLandingContext, indicator_Indicator as Indicator, input as Input, join_Join as Join, kbd_Kbd as Kbd, language_switcher_LanguageSwitcher as LanguageSwitcher, LightnessSlider, link_Link as Link, live_chat_LiveChatBubble as LiveChatBubble, LiveChatPanel, loading_Loading as Loading, mask as Mask, menu_Menu as Menu, modal_Modal as Modal, MotionDiv, navbar_Navbar as Navbar, noise_background_NoiseBackground as NoiseBackground, PWAInstallPrompt, Pagination, phonemockup_PhoneMockup as PhoneMockup, Progress, props_table_PropsTable as PropsTable, radialprogress_RadialProgress as RadialProgress, radio_Radio as Radio, radio_group_RadioGroup as RadioGroup, range_Range as Range, Rating, colorpicker_SaturationBrightness as SaturationBrightness, 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, SkipLink, RangeSlider as SliderField, Stack, stat_card_StatCard as StatCard, stats_Stats as Stats, status_Status as Status, steps as Steps, streaming_table_StreamingTable as StreamingTable, Summary, SvgBackground, Swap, switch_field_SwitchField as SwitchField, table_Table as Table, tabs_Tabs as Tabs, textarea_Textarea as Textarea, ThemeColorPicker, Timeline, timeline_TimelineEnd as TimelineEnd, timeline_TimelineItem as TimelineItem, timeline_TimelineMiddle as TimelineMiddle, timeline_TimelineStart as TimelineStart, toast_Toast as Toast, ToastContainer, ToastStack_ToastStack as ToastStack, toggle_Toggle as Toggle, tooltip_Tooltip as Tooltip, video_preview_VideoPreview as VideoPreview, windowmockup_WindowMockup as WindowMockup, createHueShiftStore, createI18n, createMotionPresets, createMotionSystem, createPopmotionDriver, createRouteTransitionResolver, createStreamingTableStore, connectionstatus_ConnectionStatus as default, defaultMotionTokens, enablePopmotion, getDefaultHueShiftStore, getMotionDriver, presets_getPreset as getPreset, immediateDriver, mergeMotionTokens, motionDistances, motionDurations, motionEasings, motionPresets, noMotion, prefersReducedMotion, presets_registerPreset as registerPreset, resetHueShift, resolveEase, presets_resolvePreset as resolvePreset, routeTransition, runMotion, setMotionDriver, toastStore, useColorPickerContext, useDesktop, useFormValidation, useI18n, useImmersiveLanding, useImmersiveLandingContext };
|