@pathscale/ui 0.0.25 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +375 -135
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3945,6 +3945,20 @@ const Avatar = Object.assign(Avatar_Avatar, {
|
|
|
3945
3945
|
Group: AvatarGroup
|
|
3946
3946
|
});
|
|
3947
3947
|
const avatar = Avatar;
|
|
3948
|
+
var Background_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
3949
|
+
const Background = (props)=>{
|
|
3950
|
+
const { class: className, className: classNameAlt, ...rest } = props;
|
|
3951
|
+
return (()=>{
|
|
3952
|
+
var _el$ = Background_tmpl$();
|
|
3953
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
3954
|
+
get ["class"] () {
|
|
3955
|
+
return bundle_mjs_twMerge("bg-base-200 min-h-screen", dist_clsx(className, classNameAlt));
|
|
3956
|
+
}
|
|
3957
|
+
}, rest), false, false);
|
|
3958
|
+
return _el$;
|
|
3959
|
+
})();
|
|
3960
|
+
};
|
|
3961
|
+
const background_Background = Background;
|
|
3948
3962
|
var Badge_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
3949
3963
|
const Badge_Badge = (props)=>{
|
|
3950
3964
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -4035,6 +4049,148 @@ const PhoneMockup = (props)=>{
|
|
|
4035
4049
|
})();
|
|
4036
4050
|
};
|
|
4037
4051
|
const phonemockup_PhoneMockup = PhoneMockup;
|
|
4052
|
+
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">');
|
|
4053
|
+
const WindowMockup = (props)=>{
|
|
4054
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
4055
|
+
"children",
|
|
4056
|
+
"class",
|
|
4057
|
+
"className",
|
|
4058
|
+
"dataTheme",
|
|
4059
|
+
"border",
|
|
4060
|
+
"borderColor",
|
|
4061
|
+
"backgroundColor",
|
|
4062
|
+
"frameColor"
|
|
4063
|
+
]);
|
|
4064
|
+
const borderColorValue = ()=>local.borderColor || local.frameColor || "neutral";
|
|
4065
|
+
const classes = ()=>bundle_mjs_twMerge("mockup-window", local.class, local.className, local.border && `border border-${borderColorValue()}`, dist_clsx({
|
|
4066
|
+
"border-neutral": "neutral" === borderColorValue(),
|
|
4067
|
+
"border-primary": "primary" === borderColorValue(),
|
|
4068
|
+
"border-secondary": "secondary" === borderColorValue(),
|
|
4069
|
+
"border-accent": "accent" === borderColorValue(),
|
|
4070
|
+
"border-info": "info" === borderColorValue(),
|
|
4071
|
+
"border-success": "success" === borderColorValue(),
|
|
4072
|
+
"border-warning": "warning" === borderColorValue(),
|
|
4073
|
+
"border-error": "error" === borderColorValue(),
|
|
4074
|
+
"bg-neutral": "neutral" === local.frameColor,
|
|
4075
|
+
"bg-primary": "primary" === local.frameColor,
|
|
4076
|
+
"bg-secondary": "secondary" === local.frameColor,
|
|
4077
|
+
"bg-accent": "accent" === local.frameColor,
|
|
4078
|
+
"bg-info": "info" === local.frameColor,
|
|
4079
|
+
"bg-success": "success" === local.frameColor,
|
|
4080
|
+
"bg-warning": "warning" === local.frameColor,
|
|
4081
|
+
"bg-error": "error" === local.frameColor
|
|
4082
|
+
}));
|
|
4083
|
+
const innerClasses = ()=>bundle_mjs_twMerge("p-4", local.backgroundColor && `bg-${local.backgroundColor}`, local.border && `border-t border-${borderColorValue()}`, dist_clsx({
|
|
4084
|
+
"bg-neutral": "neutral" === local.backgroundColor,
|
|
4085
|
+
"bg-primary": "primary" === local.backgroundColor,
|
|
4086
|
+
"bg-secondary": "secondary" === local.backgroundColor,
|
|
4087
|
+
"bg-accent": "accent" === local.backgroundColor,
|
|
4088
|
+
"bg-info": "info" === local.backgroundColor,
|
|
4089
|
+
"bg-success": "success" === local.backgroundColor,
|
|
4090
|
+
"bg-warning": "warning" === local.backgroundColor,
|
|
4091
|
+
"bg-error": "error" === local.backgroundColor
|
|
4092
|
+
}));
|
|
4093
|
+
const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
4094
|
+
const innerElement = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
4095
|
+
const childrenArray = Array.isArray(resolvedChildren()) ? resolvedChildren() : [
|
|
4096
|
+
resolvedChildren()
|
|
4097
|
+
];
|
|
4098
|
+
const firstChild = childrenArray[0];
|
|
4099
|
+
if (1 === childrenArray.length && "object" == typeof firstChild && null != firstChild && "type" in firstChild) {
|
|
4100
|
+
const existingClass = firstChild.props?.class || firstChild.props?.className || "";
|
|
4101
|
+
const mergedClass = bundle_mjs_twMerge(innerClasses(), existingClass);
|
|
4102
|
+
return {
|
|
4103
|
+
...firstChild,
|
|
4104
|
+
props: {
|
|
4105
|
+
...firstChild.props,
|
|
4106
|
+
class: mergedClass
|
|
4107
|
+
}
|
|
4108
|
+
};
|
|
4109
|
+
}
|
|
4110
|
+
return (()=>{
|
|
4111
|
+
var _el$ = WindowMockup_tmpl$();
|
|
4112
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, resolvedChildren);
|
|
4113
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, innerClasses()));
|
|
4114
|
+
return _el$;
|
|
4115
|
+
})();
|
|
4116
|
+
});
|
|
4117
|
+
return (()=>{
|
|
4118
|
+
var _el$2 = WindowMockup_tmpl$2();
|
|
4119
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
4120
|
+
get ["data-theme"] () {
|
|
4121
|
+
return local.dataTheme;
|
|
4122
|
+
},
|
|
4123
|
+
get ["class"] () {
|
|
4124
|
+
return classes();
|
|
4125
|
+
}
|
|
4126
|
+
}), false, true);
|
|
4127
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, innerElement);
|
|
4128
|
+
return _el$2;
|
|
4129
|
+
})();
|
|
4130
|
+
};
|
|
4131
|
+
const windowmockup_WindowMockup = WindowMockup;
|
|
4132
|
+
var Drawer_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><input type=checkbox readonly><div></div><div><label>");
|
|
4133
|
+
const Drawer_Drawer = (props)=>{
|
|
4134
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
4135
|
+
"children",
|
|
4136
|
+
"side",
|
|
4137
|
+
"open",
|
|
4138
|
+
"end",
|
|
4139
|
+
"dataTheme",
|
|
4140
|
+
"class",
|
|
4141
|
+
"className",
|
|
4142
|
+
"toggleClassName",
|
|
4143
|
+
"contentClassName",
|
|
4144
|
+
"sideClassName",
|
|
4145
|
+
"overlayClassName",
|
|
4146
|
+
"onClickOverlay"
|
|
4147
|
+
]);
|
|
4148
|
+
const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
4149
|
+
const classes = ()=>bundle_mjs_twMerge("drawer", local.class, local.className, dist_clsx({
|
|
4150
|
+
"drawer-end": local.end
|
|
4151
|
+
}));
|
|
4152
|
+
const toggleClasses = ()=>bundle_mjs_twMerge("drawer-toggle", local.toggleClassName);
|
|
4153
|
+
const contentClasses = ()=>bundle_mjs_twMerge("drawer-content", local.contentClassName);
|
|
4154
|
+
const sideClasses = ()=>bundle_mjs_twMerge("drawer-side", local.sideClassName);
|
|
4155
|
+
const overlayClasses = ()=>bundle_mjs_twMerge("drawer-overlay", local.overlayClassName);
|
|
4156
|
+
return (()=>{
|
|
4157
|
+
var _el$ = Drawer_tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.nextSibling, _el$5 = _el$4.firstChild;
|
|
4158
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
4159
|
+
get ["aria-expanded"] () {
|
|
4160
|
+
return local.open;
|
|
4161
|
+
}
|
|
4162
|
+
}, others, {
|
|
4163
|
+
get ["data-theme"] () {
|
|
4164
|
+
return local.dataTheme;
|
|
4165
|
+
},
|
|
4166
|
+
get ["class"] () {
|
|
4167
|
+
return classes();
|
|
4168
|
+
}
|
|
4169
|
+
}), false, true);
|
|
4170
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, resolvedChildren);
|
|
4171
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.addEventListener)(_el$5, "click", local.onClickOverlay, true);
|
|
4172
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, ()=>local.side, null);
|
|
4173
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
4174
|
+
var _v$ = toggleClasses(), _v$2 = contentClasses(), _v$3 = sideClasses(), _v$4 = overlayClasses();
|
|
4175
|
+
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$2, _p$.e = _v$);
|
|
4176
|
+
_v$2 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$3, _p$.t = _v$2);
|
|
4177
|
+
_v$3 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$4, _p$.a = _v$3);
|
|
4178
|
+
_v$4 !== _p$.o && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$5, _p$.o = _v$4);
|
|
4179
|
+
return _p$;
|
|
4180
|
+
}, {
|
|
4181
|
+
e: void 0,
|
|
4182
|
+
t: void 0,
|
|
4183
|
+
a: void 0,
|
|
4184
|
+
o: void 0
|
|
4185
|
+
});
|
|
4186
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>_el$2.checked = local.open);
|
|
4187
|
+
return _el$;
|
|
4188
|
+
})();
|
|
4189
|
+
};
|
|
4190
|
+
const Drawer = Drawer_Drawer;
|
|
4191
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
|
|
4192
|
+
"click"
|
|
4193
|
+
]);
|
|
4038
4194
|
var Breadcrumbs_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><ul>");
|
|
4039
4195
|
const Breadcrumbs_Breadcrumbs = (props)=>{
|
|
4040
4196
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -5384,6 +5540,118 @@ const FileInput_FileInput = (props)=>{
|
|
|
5384
5540
|
})();
|
|
5385
5541
|
};
|
|
5386
5542
|
const FileInput = FileInput_FileInput;
|
|
5543
|
+
const directionMap = {
|
|
5544
|
+
row: "flex-row",
|
|
5545
|
+
col: "flex-col",
|
|
5546
|
+
"row-reverse": "flex-row-reverse",
|
|
5547
|
+
"col-reverse": "flex-col-reverse"
|
|
5548
|
+
};
|
|
5549
|
+
const justifyMap = {
|
|
5550
|
+
start: "justify-start",
|
|
5551
|
+
center: "justify-center",
|
|
5552
|
+
end: "justify-end",
|
|
5553
|
+
between: "justify-between",
|
|
5554
|
+
around: "justify-around",
|
|
5555
|
+
evenly: "justify-evenly"
|
|
5556
|
+
};
|
|
5557
|
+
const alignMap = {
|
|
5558
|
+
start: "items-start",
|
|
5559
|
+
center: "items-center",
|
|
5560
|
+
end: "items-end",
|
|
5561
|
+
stretch: "items-stretch",
|
|
5562
|
+
baseline: "items-baseline"
|
|
5563
|
+
};
|
|
5564
|
+
const wrapMap = {
|
|
5565
|
+
wrap: "flex-wrap",
|
|
5566
|
+
nowrap: "flex-nowrap",
|
|
5567
|
+
"wrap-reverse": "flex-wrap-reverse"
|
|
5568
|
+
};
|
|
5569
|
+
const gapMap = {
|
|
5570
|
+
none: "gap-0",
|
|
5571
|
+
sm: "gap-2",
|
|
5572
|
+
md: "gap-4",
|
|
5573
|
+
lg: "gap-6",
|
|
5574
|
+
xl: "gap-8"
|
|
5575
|
+
};
|
|
5576
|
+
const gapXMap = {
|
|
5577
|
+
none: "gap-x-0",
|
|
5578
|
+
sm: "gap-x-2",
|
|
5579
|
+
md: "gap-x-4",
|
|
5580
|
+
lg: "gap-x-6",
|
|
5581
|
+
xl: "gap-x-8"
|
|
5582
|
+
};
|
|
5583
|
+
const gapYMap = {
|
|
5584
|
+
none: "gap-y-0",
|
|
5585
|
+
sm: "gap-y-2",
|
|
5586
|
+
md: "gap-y-4",
|
|
5587
|
+
lg: "gap-y-6",
|
|
5588
|
+
xl: "gap-y-8"
|
|
5589
|
+
};
|
|
5590
|
+
const growMap = {
|
|
5591
|
+
true: "flex-grow",
|
|
5592
|
+
false: "flex-grow-0"
|
|
5593
|
+
};
|
|
5594
|
+
const shrinkMap = {
|
|
5595
|
+
true: "flex-shrink",
|
|
5596
|
+
false: "flex-shrink-0"
|
|
5597
|
+
};
|
|
5598
|
+
const basisMap = {
|
|
5599
|
+
none: "basis-0",
|
|
5600
|
+
sm: "basis-8",
|
|
5601
|
+
md: "basis-16",
|
|
5602
|
+
lg: "basis-24",
|
|
5603
|
+
xl: "basis-32"
|
|
5604
|
+
};
|
|
5605
|
+
const breakpoints = [
|
|
5606
|
+
"base",
|
|
5607
|
+
"sm",
|
|
5608
|
+
"md",
|
|
5609
|
+
"lg",
|
|
5610
|
+
"xl"
|
|
5611
|
+
];
|
|
5612
|
+
function mapResponsiveProp(prop, map) {
|
|
5613
|
+
if (void 0 === prop) return [];
|
|
5614
|
+
if ("string" == typeof prop || "boolean" == typeof prop) return [
|
|
5615
|
+
map[String(prop)]
|
|
5616
|
+
];
|
|
5617
|
+
return breakpoints.flatMap((bp)=>{
|
|
5618
|
+
const value = prop[bp];
|
|
5619
|
+
if (void 0 === value) return [];
|
|
5620
|
+
const className = map[String(value)];
|
|
5621
|
+
return "base" === bp ? className : `${bp}:${className}`;
|
|
5622
|
+
});
|
|
5623
|
+
}
|
|
5624
|
+
const Flex = (props)=>{
|
|
5625
|
+
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
5626
|
+
"as",
|
|
5627
|
+
"class",
|
|
5628
|
+
"children",
|
|
5629
|
+
"direction",
|
|
5630
|
+
"justify",
|
|
5631
|
+
"align",
|
|
5632
|
+
"wrap",
|
|
5633
|
+
"gap",
|
|
5634
|
+
"gapX",
|
|
5635
|
+
"gapY",
|
|
5636
|
+
"grow",
|
|
5637
|
+
"shrink",
|
|
5638
|
+
"basis"
|
|
5639
|
+
]);
|
|
5640
|
+
const tag = local.as || "div";
|
|
5641
|
+
const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
5642
|
+
const classes = dist_clsx("flex", mapResponsiveProp(local.direction, directionMap), mapResponsiveProp(local.justify, justifyMap), mapResponsiveProp(local.align, alignMap), mapResponsiveProp(local.wrap, wrapMap), mapResponsiveProp(local.gap, gapMap), mapResponsiveProp(local.gapX, gapXMap), mapResponsiveProp(local.gapY, gapYMap), mapResponsiveProp(local.grow, growMap), mapResponsiveProp(local.shrink, shrinkMap), mapResponsiveProp(local.basis, basisMap), local.class);
|
|
5643
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.Dynamic, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
5644
|
+
component: tag,
|
|
5645
|
+
get ["class"] () {
|
|
5646
|
+
return bundle_mjs_twMerge(classes);
|
|
5647
|
+
}
|
|
5648
|
+
}, rest, {
|
|
5649
|
+
get children () {
|
|
5650
|
+
return resolvedChildren();
|
|
5651
|
+
}
|
|
5652
|
+
}));
|
|
5653
|
+
};
|
|
5654
|
+
const flex_Flex = Flex;
|
|
5387
5655
|
var FooterTitle_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<h6>");
|
|
5388
5656
|
const FooterTitle = (props)=>{
|
|
5389
5657
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -5441,6 +5709,94 @@ const FooterNamespaces = Object.assign(Footer, {
|
|
|
5441
5709
|
Title: FooterTitle
|
|
5442
5710
|
});
|
|
5443
5711
|
const footer_Footer = FooterNamespaces;
|
|
5712
|
+
const colsMap = {
|
|
5713
|
+
1: "grid-cols-1",
|
|
5714
|
+
2: "grid-cols-2",
|
|
5715
|
+
3: "grid-cols-3",
|
|
5716
|
+
4: "grid-cols-4",
|
|
5717
|
+
5: "grid-cols-5",
|
|
5718
|
+
6: "grid-cols-6",
|
|
5719
|
+
7: "grid-cols-7",
|
|
5720
|
+
8: "grid-cols-8",
|
|
5721
|
+
9: "grid-cols-9",
|
|
5722
|
+
10: "grid-cols-10",
|
|
5723
|
+
11: "grid-cols-11",
|
|
5724
|
+
12: "grid-cols-12"
|
|
5725
|
+
};
|
|
5726
|
+
const rowsMap = {
|
|
5727
|
+
1: "grid-rows-1",
|
|
5728
|
+
2: "grid-rows-2",
|
|
5729
|
+
3: "grid-rows-3",
|
|
5730
|
+
4: "grid-rows-4",
|
|
5731
|
+
5: "grid-rows-5",
|
|
5732
|
+
6: "grid-rows-6",
|
|
5733
|
+
7: "grid-rows-7",
|
|
5734
|
+
8: "grid-rows-8",
|
|
5735
|
+
9: "grid-rows-9",
|
|
5736
|
+
10: "grid-rows-10",
|
|
5737
|
+
11: "grid-rows-11",
|
|
5738
|
+
12: "grid-rows-12"
|
|
5739
|
+
};
|
|
5740
|
+
const flowMap = {
|
|
5741
|
+
row: "grid-flow-row",
|
|
5742
|
+
col: "grid-flow-col",
|
|
5743
|
+
"row-dense": "grid-flow-row-dense",
|
|
5744
|
+
"col-dense": "grid-flow-col-dense"
|
|
5745
|
+
};
|
|
5746
|
+
const Grid_gapMap = {
|
|
5747
|
+
none: "gap-0",
|
|
5748
|
+
sm: "gap-2",
|
|
5749
|
+
md: "gap-4",
|
|
5750
|
+
lg: "gap-6",
|
|
5751
|
+
xl: "gap-8"
|
|
5752
|
+
};
|
|
5753
|
+
const autoColsMap = {
|
|
5754
|
+
min: "auto-cols-min",
|
|
5755
|
+
max: "auto-cols-max",
|
|
5756
|
+
fr: "auto-cols-fr"
|
|
5757
|
+
};
|
|
5758
|
+
const autoRowsMap = {
|
|
5759
|
+
min: "auto-rows-min",
|
|
5760
|
+
max: "auto-rows-max",
|
|
5761
|
+
fr: "auto-rows-fr"
|
|
5762
|
+
};
|
|
5763
|
+
function Grid_mapResponsiveProp(prop, classMap) {
|
|
5764
|
+
if (!prop) return [];
|
|
5765
|
+
if ("string" == typeof prop) return classMap[prop] ? [
|
|
5766
|
+
classMap[prop]
|
|
5767
|
+
] : [];
|
|
5768
|
+
return Object.entries(prop).flatMap(([key, val])=>{
|
|
5769
|
+
const className = classMap[val];
|
|
5770
|
+
if (!className) return [];
|
|
5771
|
+
return "base" === key ? className : `${key}:${className}`;
|
|
5772
|
+
});
|
|
5773
|
+
}
|
|
5774
|
+
const Grid = (props)=>{
|
|
5775
|
+
const merged = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.mergeProps)({
|
|
5776
|
+
as: "div"
|
|
5777
|
+
}, props);
|
|
5778
|
+
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(merged, [
|
|
5779
|
+
"as",
|
|
5780
|
+
"class",
|
|
5781
|
+
"className",
|
|
5782
|
+
"cols",
|
|
5783
|
+
"rows",
|
|
5784
|
+
"flow",
|
|
5785
|
+
"gap",
|
|
5786
|
+
"autoCols",
|
|
5787
|
+
"autoRows"
|
|
5788
|
+
]);
|
|
5789
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>bundle_mjs_twMerge("grid", ...Grid_mapResponsiveProp(local.cols, colsMap), ...Grid_mapResponsiveProp(local.rows, rowsMap), ...Grid_mapResponsiveProp(local.flow, flowMap), ...Grid_mapResponsiveProp(local.gap, Grid_gapMap), ...Grid_mapResponsiveProp(local.autoCols, autoColsMap), ...Grid_mapResponsiveProp(local.autoRows, autoRowsMap), local.class, local.className));
|
|
5790
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.Dynamic, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
5791
|
+
get component () {
|
|
5792
|
+
return local.as;
|
|
5793
|
+
},
|
|
5794
|
+
get ["class"] () {
|
|
5795
|
+
return classes();
|
|
5796
|
+
}
|
|
5797
|
+
}, rest));
|
|
5798
|
+
};
|
|
5799
|
+
const grid_Grid = Grid;
|
|
5444
5800
|
var HeroContent_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
5445
5801
|
const HeroContent = (props)=>{
|
|
5446
5802
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -6606,118 +6962,6 @@ const Select = (props)=>{
|
|
|
6606
6962
|
})();
|
|
6607
6963
|
};
|
|
6608
6964
|
const select_Select = Select;
|
|
6609
|
-
const directionMap = {
|
|
6610
|
-
row: "flex-row",
|
|
6611
|
-
col: "flex-col",
|
|
6612
|
-
"row-reverse": "flex-row-reverse",
|
|
6613
|
-
"col-reverse": "flex-col-reverse"
|
|
6614
|
-
};
|
|
6615
|
-
const justifyMap = {
|
|
6616
|
-
start: "justify-start",
|
|
6617
|
-
center: "justify-center",
|
|
6618
|
-
end: "justify-end",
|
|
6619
|
-
between: "justify-between",
|
|
6620
|
-
around: "justify-around",
|
|
6621
|
-
evenly: "justify-evenly"
|
|
6622
|
-
};
|
|
6623
|
-
const alignMap = {
|
|
6624
|
-
start: "items-start",
|
|
6625
|
-
center: "items-center",
|
|
6626
|
-
end: "items-end",
|
|
6627
|
-
stretch: "items-stretch",
|
|
6628
|
-
baseline: "items-baseline"
|
|
6629
|
-
};
|
|
6630
|
-
const wrapMap = {
|
|
6631
|
-
wrap: "flex-wrap",
|
|
6632
|
-
nowrap: "flex-nowrap",
|
|
6633
|
-
"wrap-reverse": "flex-wrap-reverse"
|
|
6634
|
-
};
|
|
6635
|
-
const gapMap = {
|
|
6636
|
-
none: "gap-0",
|
|
6637
|
-
sm: "gap-2",
|
|
6638
|
-
md: "gap-4",
|
|
6639
|
-
lg: "gap-6",
|
|
6640
|
-
xl: "gap-8"
|
|
6641
|
-
};
|
|
6642
|
-
const gapXMap = {
|
|
6643
|
-
none: "gap-x-0",
|
|
6644
|
-
sm: "gap-x-2",
|
|
6645
|
-
md: "gap-x-4",
|
|
6646
|
-
lg: "gap-x-6",
|
|
6647
|
-
xl: "gap-x-8"
|
|
6648
|
-
};
|
|
6649
|
-
const gapYMap = {
|
|
6650
|
-
none: "gap-y-0",
|
|
6651
|
-
sm: "gap-y-2",
|
|
6652
|
-
md: "gap-y-4",
|
|
6653
|
-
lg: "gap-y-6",
|
|
6654
|
-
xl: "gap-y-8"
|
|
6655
|
-
};
|
|
6656
|
-
const growMap = {
|
|
6657
|
-
true: "flex-grow",
|
|
6658
|
-
false: "flex-grow-0"
|
|
6659
|
-
};
|
|
6660
|
-
const shrinkMap = {
|
|
6661
|
-
true: "flex-shrink",
|
|
6662
|
-
false: "flex-shrink-0"
|
|
6663
|
-
};
|
|
6664
|
-
const basisMap = {
|
|
6665
|
-
none: "basis-0",
|
|
6666
|
-
sm: "basis-8",
|
|
6667
|
-
md: "basis-16",
|
|
6668
|
-
lg: "basis-24",
|
|
6669
|
-
xl: "basis-32"
|
|
6670
|
-
};
|
|
6671
|
-
const breakpoints = [
|
|
6672
|
-
"base",
|
|
6673
|
-
"sm",
|
|
6674
|
-
"md",
|
|
6675
|
-
"lg",
|
|
6676
|
-
"xl"
|
|
6677
|
-
];
|
|
6678
|
-
function mapResponsiveProp(prop, map) {
|
|
6679
|
-
if (void 0 === prop) return [];
|
|
6680
|
-
if ("string" == typeof prop || "boolean" == typeof prop) return [
|
|
6681
|
-
map[String(prop)]
|
|
6682
|
-
];
|
|
6683
|
-
return breakpoints.flatMap((bp)=>{
|
|
6684
|
-
const value = prop[bp];
|
|
6685
|
-
if (void 0 === value) return [];
|
|
6686
|
-
const className = map[String(value)];
|
|
6687
|
-
return "base" === bp ? className : `${bp}:${className}`;
|
|
6688
|
-
});
|
|
6689
|
-
}
|
|
6690
|
-
const Flex = (props)=>{
|
|
6691
|
-
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
6692
|
-
"as",
|
|
6693
|
-
"class",
|
|
6694
|
-
"children",
|
|
6695
|
-
"direction",
|
|
6696
|
-
"justify",
|
|
6697
|
-
"align",
|
|
6698
|
-
"wrap",
|
|
6699
|
-
"gap",
|
|
6700
|
-
"gapX",
|
|
6701
|
-
"gapY",
|
|
6702
|
-
"grow",
|
|
6703
|
-
"shrink",
|
|
6704
|
-
"basis"
|
|
6705
|
-
]);
|
|
6706
|
-
const tag = local.as || "div";
|
|
6707
|
-
const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
6708
|
-
const classes = dist_clsx("flex", mapResponsiveProp(local.direction, directionMap), mapResponsiveProp(local.justify, justifyMap), mapResponsiveProp(local.align, alignMap), mapResponsiveProp(local.wrap, wrapMap), mapResponsiveProp(local.gap, gapMap), mapResponsiveProp(local.gapX, gapXMap), mapResponsiveProp(local.gapY, gapYMap), mapResponsiveProp(local.grow, growMap), mapResponsiveProp(local.shrink, shrinkMap), mapResponsiveProp(local.basis, basisMap), local.class);
|
|
6709
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.Dynamic, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
6710
|
-
component: tag,
|
|
6711
|
-
get ["class"] () {
|
|
6712
|
-
return bundle_mjs_twMerge(classes);
|
|
6713
|
-
}
|
|
6714
|
-
}, rest, {
|
|
6715
|
-
get children () {
|
|
6716
|
-
return resolvedChildren();
|
|
6717
|
-
}
|
|
6718
|
-
}));
|
|
6719
|
-
};
|
|
6720
|
-
const flex_Flex = Flex;
|
|
6721
6965
|
var ShowcaseSection_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<span class="opacity-0 group-hover/title:opacity-100 text-base-content/70 transition-opacity">#'), ShowcaseSection_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<h2 class="text-xl font-semibold group/title">'), ShowcaseSection_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><div class=space-y-3>");
|
|
6722
6966
|
const ShowcaseSection_ShowcaseSection = (props)=>{
|
|
6723
6967
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -7420,7 +7664,9 @@ const TableHead_TableHead = (props)=>{
|
|
|
7420
7664
|
"data-theme"
|
|
7421
7665
|
]);
|
|
7422
7666
|
const Tag = local.as || "thead";
|
|
7423
|
-
const
|
|
7667
|
+
const resolved = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
7668
|
+
const childrenArray = resolved.toArray();
|
|
7669
|
+
const cells = local.noCell ? childrenArray : childrenArray.map((child, i)=>0 === i ? (()=>{
|
|
7424
7670
|
var _el$ = TableHead_tmpl$();
|
|
7425
7671
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, child);
|
|
7426
7672
|
return _el$;
|
|
@@ -7517,7 +7763,7 @@ const TableBody = (props)=>{
|
|
|
7517
7763
|
}));
|
|
7518
7764
|
};
|
|
7519
7765
|
const table_TableBody = TableBody;
|
|
7520
|
-
var TableRow_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<
|
|
7766
|
+
var TableRow_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<td>");
|
|
7521
7767
|
const TableRow_VoidElementList = [
|
|
7522
7768
|
"area",
|
|
7523
7769
|
"base",
|
|
@@ -7535,7 +7781,7 @@ const TableRow_VoidElementList = [
|
|
|
7535
7781
|
"track",
|
|
7536
7782
|
"wbr"
|
|
7537
7783
|
];
|
|
7538
|
-
const
|
|
7784
|
+
const TableRow = (props)=>{
|
|
7539
7785
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
7540
7786
|
"children",
|
|
7541
7787
|
"noCell",
|
|
@@ -7545,15 +7791,13 @@ const TableRow_TableHead = (props)=>{
|
|
|
7545
7791
|
"style",
|
|
7546
7792
|
"data-theme"
|
|
7547
7793
|
]);
|
|
7548
|
-
const Tag = local.as || "
|
|
7549
|
-
const
|
|
7794
|
+
const Tag = local.as || "tr";
|
|
7795
|
+
const resolved = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
7796
|
+
const childrenArray = resolved.toArray();
|
|
7797
|
+
const cells = local.noCell ? childrenArray : childrenArray.map((child)=>(()=>{
|
|
7550
7798
|
var _el$ = TableRow_tmpl$();
|
|
7551
7799
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, child);
|
|
7552
7800
|
return _el$;
|
|
7553
|
-
})() : (()=>{
|
|
7554
|
-
var _el$2 = TableRow_tmpl$2();
|
|
7555
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, child);
|
|
7556
|
-
return _el$2;
|
|
7557
7801
|
})());
|
|
7558
7802
|
const classAttr = local.class ?? local.className;
|
|
7559
7803
|
if (TableRow_VoidElementList.includes(Tag)) return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.Dynamic, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
@@ -7577,14 +7821,10 @@ const TableRow_TableHead = (props)=>{
|
|
|
7577
7821
|
get ["data-theme"] () {
|
|
7578
7822
|
return local["data-theme"];
|
|
7579
7823
|
},
|
|
7580
|
-
|
|
7581
|
-
var _el$3 = TableRow_tmpl$3();
|
|
7582
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, cells);
|
|
7583
|
-
return _el$3;
|
|
7584
|
-
}
|
|
7824
|
+
children: cells
|
|
7585
7825
|
}));
|
|
7586
7826
|
};
|
|
7587
|
-
const
|
|
7827
|
+
const table_TableRow = TableRow;
|
|
7588
7828
|
var TableFooter_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<th>"), TableFooter_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<td>"), TableFooter_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<tr>");
|
|
7589
7829
|
const TableFooter_VoidElementList = [
|
|
7590
7830
|
"area",
|
|
@@ -7603,7 +7843,7 @@ const TableFooter_VoidElementList = [
|
|
|
7603
7843
|
"track",
|
|
7604
7844
|
"wbr"
|
|
7605
7845
|
];
|
|
7606
|
-
const
|
|
7846
|
+
const TableFooter_TableFooter = (props)=>{
|
|
7607
7847
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
7608
7848
|
"children",
|
|
7609
7849
|
"noCell",
|
|
@@ -7614,14 +7854,14 @@ const TableFooter = (props)=>{
|
|
|
7614
7854
|
"data-theme"
|
|
7615
7855
|
]);
|
|
7616
7856
|
const Tag = local.as || "tfoot";
|
|
7617
|
-
const
|
|
7857
|
+
const resolved = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
7858
|
+
const childrenArray = resolved.toArray();
|
|
7859
|
+
const cells = local.noCell ? childrenArray : childrenArray.map((child, i)=>0 === i ? (()=>{
|
|
7618
7860
|
var _el$ = TableFooter_tmpl$();
|
|
7619
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "key", i);
|
|
7620
7861
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, child);
|
|
7621
7862
|
return _el$;
|
|
7622
7863
|
})() : (()=>{
|
|
7623
7864
|
var _el$2 = TableFooter_tmpl$2();
|
|
7624
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$2, "key", i);
|
|
7625
7865
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, child);
|
|
7626
7866
|
return _el$2;
|
|
7627
7867
|
})());
|
|
@@ -7654,7 +7894,7 @@ const TableFooter = (props)=>{
|
|
|
7654
7894
|
}
|
|
7655
7895
|
}));
|
|
7656
7896
|
};
|
|
7657
|
-
const
|
|
7897
|
+
const TableFooter = TableFooter_TableFooter;
|
|
7658
7898
|
const Table_VoidElementList = [
|
|
7659
7899
|
"area",
|
|
7660
7900
|
"base",
|
|
@@ -7729,8 +7969,8 @@ const TableComponent = (props)=>{
|
|
|
7729
7969
|
const Table = Object.assign(TableComponent, {
|
|
7730
7970
|
Head: TableHead,
|
|
7731
7971
|
Body: table_TableBody,
|
|
7732
|
-
Row:
|
|
7733
|
-
Footer:
|
|
7972
|
+
Row: table_TableRow,
|
|
7973
|
+
Footer: TableFooter
|
|
7734
7974
|
});
|
|
7735
7975
|
const table_Table = Table;
|
|
7736
7976
|
const table = table_Table;
|
|
@@ -8225,4 +8465,4 @@ const Tooltip = (props)=>{
|
|
|
8225
8465
|
})();
|
|
8226
8466
|
};
|
|
8227
8467
|
const tooltip_Tooltip = Tooltip;
|
|
8228
|
-
export { accordion_Accordion as Accordion, alert_Alert as Alert, autocomplete as Autocomplete, avatar as Avatar, Badge, Breadcrumbs, breadcrumbs_BreadcrumbsItem as BreadcrumbsItem, button_Button as Button, card_Card as Card, chatbubble_ChatBubble as ChatBubble, checkbox_Checkbox as Checkbox, codemockup_CodeMockup as CodeMockup, CodeMockupLine, collapse_Collapse as Collapse, CollapseContent, CollapseDetails, CollapseTitle, copy_button_CopyButton as CopyButton, countdown_Countdown as Countdown, diff_Diff as Diff, divider as Divider, dock as Dock, dropdown as Dropdown, field as Field, FileInput, footer_Footer as Footer, hero_Hero as Hero, indicator_Indicator as Indicator, input_Input as Input, join_Join as Join, kbd_Kbd as Kbd, link_Link as Link, loading_Loading as Loading, mask as Mask, menu_Menu as Menu, modal as Modal, navbar_Navbar as Navbar, pagination_Pagination as Pagination, phonemockup_PhoneMockup as PhoneMockup, polymorphic_Polymorphic as Polymorphic, polymorphic_PolymorphicButton as PolymorphicButton, Progress, props_table_PropsTable as PropsTable, radialprogress_RadialProgress as RadialProgress, radio_Radio as Radio, range_Range as Range, Rating, select_Select as Select, showcase_ShowcaseBlock as ShowcaseBlock, ShowcaseSection, Sidenav, skeleton_Skeleton as Skeleton, Stack, stats_Stats as Stats, status_Status as Status, steps as Steps, Summary, Swap, table as Table, tabs as Tabs, textarea_Textarea as Textarea, Timeline, timeline_TimelineEnd as TimelineEnd, timeline_TimelineItem as TimelineItem, timeline_TimelineMiddle as TimelineMiddle, timeline_TimelineStart as TimelineStart, toast_Toast as Toast, toggle_Toggle as Toggle, tooltip_Tooltip as Tooltip };
|
|
8468
|
+
export { accordion_Accordion as Accordion, alert_Alert as Alert, autocomplete as Autocomplete, avatar as Avatar, background_Background as Background, Badge, Breadcrumbs, breadcrumbs_BreadcrumbsItem as BreadcrumbsItem, button_Button as Button, card_Card as Card, chatbubble_ChatBubble as ChatBubble, checkbox_Checkbox as Checkbox, codemockup_CodeMockup as CodeMockup, CodeMockupLine, collapse_Collapse as Collapse, CollapseContent, CollapseDetails, CollapseTitle, copy_button_CopyButton as CopyButton, countdown_Countdown as Countdown, diff_Diff as Diff, divider as Divider, dock as Dock, Drawer, dropdown as Dropdown, field as Field, FileInput, flex_Flex as Flex, footer_Footer as Footer, grid_Grid as Grid, hero_Hero as Hero, indicator_Indicator as Indicator, input_Input as Input, join_Join as Join, kbd_Kbd as Kbd, link_Link as Link, loading_Loading as Loading, mask as Mask, menu_Menu as Menu, modal as Modal, navbar_Navbar as Navbar, pagination_Pagination as Pagination, phonemockup_PhoneMockup as PhoneMockup, polymorphic_Polymorphic as Polymorphic, polymorphic_PolymorphicButton as PolymorphicButton, Progress, props_table_PropsTable as PropsTable, radialprogress_RadialProgress as RadialProgress, radio_Radio as Radio, range_Range as Range, Rating, select_Select as Select, showcase_ShowcaseBlock as ShowcaseBlock, ShowcaseSection, Sidenav, skeleton_Skeleton as Skeleton, Stack, stats_Stats as Stats, status_Status as Status, steps as Steps, Summary, Swap, table as Table, tabs as Tabs, textarea_Textarea as Textarea, Timeline, timeline_TimelineEnd as TimelineEnd, timeline_TimelineItem as TimelineItem, timeline_TimelineMiddle as TimelineMiddle, timeline_TimelineStart as TimelineStart, toast_Toast as Toast, toggle_Toggle as Toggle, tooltip_Tooltip as Tooltip, windowmockup_WindowMockup as WindowMockup };
|