@pathscale/ui 0.0.25 → 0.0.26
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 +254 -152
- 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, [
|
|
@@ -3996,45 +4010,6 @@ const Badge_Badge = (props)=>{
|
|
|
3996
4010
|
})();
|
|
3997
4011
|
};
|
|
3998
4012
|
const Badge = Badge_Badge;
|
|
3999
|
-
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>');
|
|
4000
|
-
const PhoneMockup = (props)=>{
|
|
4001
|
-
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
4002
|
-
"children",
|
|
4003
|
-
"class",
|
|
4004
|
-
"className",
|
|
4005
|
-
"dataTheme",
|
|
4006
|
-
"color",
|
|
4007
|
-
"innerProps"
|
|
4008
|
-
]);
|
|
4009
|
-
const classes = ()=>bundle_mjs_twMerge("mockup-phone", local.class, local.className, dist_clsx({
|
|
4010
|
-
"border-primary": "primary" === local.color,
|
|
4011
|
-
"border-secondary": "secondary" === local.color,
|
|
4012
|
-
"border-info": "info" === local.color,
|
|
4013
|
-
"border-success": "success" === local.color,
|
|
4014
|
-
"border-warning": "warning" === local.color,
|
|
4015
|
-
"border-error": "error" === local.color
|
|
4016
|
-
}));
|
|
4017
|
-
const innerClasses = ()=>bundle_mjs_twMerge("artboard artboard-demo phone-1", local.innerProps?.class, local.innerProps?.className);
|
|
4018
|
-
return (()=>{
|
|
4019
|
-
var _el$ = PhoneMockup_tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild;
|
|
4020
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
4021
|
-
get ["data-theme"] () {
|
|
4022
|
-
return local.dataTheme;
|
|
4023
|
-
},
|
|
4024
|
-
get ["class"] () {
|
|
4025
|
-
return classes();
|
|
4026
|
-
}
|
|
4027
|
-
}), false, true);
|
|
4028
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$4, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(()=>local.innerProps, {
|
|
4029
|
-
get ["class"] () {
|
|
4030
|
-
return innerClasses();
|
|
4031
|
-
}
|
|
4032
|
-
}), false, true);
|
|
4033
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, ()=>local.children);
|
|
4034
|
-
return _el$;
|
|
4035
|
-
})();
|
|
4036
|
-
};
|
|
4037
|
-
const phonemockup_PhoneMockup = PhoneMockup;
|
|
4038
4013
|
var Breadcrumbs_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><ul>");
|
|
4039
4014
|
const Breadcrumbs_Breadcrumbs = (props)=>{
|
|
4040
4015
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -5384,6 +5359,118 @@ const FileInput_FileInput = (props)=>{
|
|
|
5384
5359
|
})();
|
|
5385
5360
|
};
|
|
5386
5361
|
const FileInput = FileInput_FileInput;
|
|
5362
|
+
const directionMap = {
|
|
5363
|
+
row: "flex-row",
|
|
5364
|
+
col: "flex-col",
|
|
5365
|
+
"row-reverse": "flex-row-reverse",
|
|
5366
|
+
"col-reverse": "flex-col-reverse"
|
|
5367
|
+
};
|
|
5368
|
+
const justifyMap = {
|
|
5369
|
+
start: "justify-start",
|
|
5370
|
+
center: "justify-center",
|
|
5371
|
+
end: "justify-end",
|
|
5372
|
+
between: "justify-between",
|
|
5373
|
+
around: "justify-around",
|
|
5374
|
+
evenly: "justify-evenly"
|
|
5375
|
+
};
|
|
5376
|
+
const alignMap = {
|
|
5377
|
+
start: "items-start",
|
|
5378
|
+
center: "items-center",
|
|
5379
|
+
end: "items-end",
|
|
5380
|
+
stretch: "items-stretch",
|
|
5381
|
+
baseline: "items-baseline"
|
|
5382
|
+
};
|
|
5383
|
+
const wrapMap = {
|
|
5384
|
+
wrap: "flex-wrap",
|
|
5385
|
+
nowrap: "flex-nowrap",
|
|
5386
|
+
"wrap-reverse": "flex-wrap-reverse"
|
|
5387
|
+
};
|
|
5388
|
+
const gapMap = {
|
|
5389
|
+
none: "gap-0",
|
|
5390
|
+
sm: "gap-2",
|
|
5391
|
+
md: "gap-4",
|
|
5392
|
+
lg: "gap-6",
|
|
5393
|
+
xl: "gap-8"
|
|
5394
|
+
};
|
|
5395
|
+
const gapXMap = {
|
|
5396
|
+
none: "gap-x-0",
|
|
5397
|
+
sm: "gap-x-2",
|
|
5398
|
+
md: "gap-x-4",
|
|
5399
|
+
lg: "gap-x-6",
|
|
5400
|
+
xl: "gap-x-8"
|
|
5401
|
+
};
|
|
5402
|
+
const gapYMap = {
|
|
5403
|
+
none: "gap-y-0",
|
|
5404
|
+
sm: "gap-y-2",
|
|
5405
|
+
md: "gap-y-4",
|
|
5406
|
+
lg: "gap-y-6",
|
|
5407
|
+
xl: "gap-y-8"
|
|
5408
|
+
};
|
|
5409
|
+
const growMap = {
|
|
5410
|
+
true: "flex-grow",
|
|
5411
|
+
false: "flex-grow-0"
|
|
5412
|
+
};
|
|
5413
|
+
const shrinkMap = {
|
|
5414
|
+
true: "flex-shrink",
|
|
5415
|
+
false: "flex-shrink-0"
|
|
5416
|
+
};
|
|
5417
|
+
const basisMap = {
|
|
5418
|
+
none: "basis-0",
|
|
5419
|
+
sm: "basis-8",
|
|
5420
|
+
md: "basis-16",
|
|
5421
|
+
lg: "basis-24",
|
|
5422
|
+
xl: "basis-32"
|
|
5423
|
+
};
|
|
5424
|
+
const breakpoints = [
|
|
5425
|
+
"base",
|
|
5426
|
+
"sm",
|
|
5427
|
+
"md",
|
|
5428
|
+
"lg",
|
|
5429
|
+
"xl"
|
|
5430
|
+
];
|
|
5431
|
+
function mapResponsiveProp(prop, map) {
|
|
5432
|
+
if (void 0 === prop) return [];
|
|
5433
|
+
if ("string" == typeof prop || "boolean" == typeof prop) return [
|
|
5434
|
+
map[String(prop)]
|
|
5435
|
+
];
|
|
5436
|
+
return breakpoints.flatMap((bp)=>{
|
|
5437
|
+
const value = prop[bp];
|
|
5438
|
+
if (void 0 === value) return [];
|
|
5439
|
+
const className = map[String(value)];
|
|
5440
|
+
return "base" === bp ? className : `${bp}:${className}`;
|
|
5441
|
+
});
|
|
5442
|
+
}
|
|
5443
|
+
const Flex = (props)=>{
|
|
5444
|
+
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
5445
|
+
"as",
|
|
5446
|
+
"class",
|
|
5447
|
+
"children",
|
|
5448
|
+
"direction",
|
|
5449
|
+
"justify",
|
|
5450
|
+
"align",
|
|
5451
|
+
"wrap",
|
|
5452
|
+
"gap",
|
|
5453
|
+
"gapX",
|
|
5454
|
+
"gapY",
|
|
5455
|
+
"grow",
|
|
5456
|
+
"shrink",
|
|
5457
|
+
"basis"
|
|
5458
|
+
]);
|
|
5459
|
+
const tag = local.as || "div";
|
|
5460
|
+
const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
5461
|
+
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);
|
|
5462
|
+
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)({
|
|
5463
|
+
component: tag,
|
|
5464
|
+
get ["class"] () {
|
|
5465
|
+
return bundle_mjs_twMerge(classes);
|
|
5466
|
+
}
|
|
5467
|
+
}, rest, {
|
|
5468
|
+
get children () {
|
|
5469
|
+
return resolvedChildren();
|
|
5470
|
+
}
|
|
5471
|
+
}));
|
|
5472
|
+
};
|
|
5473
|
+
const flex_Flex = Flex;
|
|
5387
5474
|
var FooterTitle_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<h6>");
|
|
5388
5475
|
const FooterTitle = (props)=>{
|
|
5389
5476
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -5441,6 +5528,94 @@ const FooterNamespaces = Object.assign(Footer, {
|
|
|
5441
5528
|
Title: FooterTitle
|
|
5442
5529
|
});
|
|
5443
5530
|
const footer_Footer = FooterNamespaces;
|
|
5531
|
+
const colsMap = {
|
|
5532
|
+
1: "grid-cols-1",
|
|
5533
|
+
2: "grid-cols-2",
|
|
5534
|
+
3: "grid-cols-3",
|
|
5535
|
+
4: "grid-cols-4",
|
|
5536
|
+
5: "grid-cols-5",
|
|
5537
|
+
6: "grid-cols-6",
|
|
5538
|
+
7: "grid-cols-7",
|
|
5539
|
+
8: "grid-cols-8",
|
|
5540
|
+
9: "grid-cols-9",
|
|
5541
|
+
10: "grid-cols-10",
|
|
5542
|
+
11: "grid-cols-11",
|
|
5543
|
+
12: "grid-cols-12"
|
|
5544
|
+
};
|
|
5545
|
+
const rowsMap = {
|
|
5546
|
+
1: "grid-rows-1",
|
|
5547
|
+
2: "grid-rows-2",
|
|
5548
|
+
3: "grid-rows-3",
|
|
5549
|
+
4: "grid-rows-4",
|
|
5550
|
+
5: "grid-rows-5",
|
|
5551
|
+
6: "grid-rows-6",
|
|
5552
|
+
7: "grid-rows-7",
|
|
5553
|
+
8: "grid-rows-8",
|
|
5554
|
+
9: "grid-rows-9",
|
|
5555
|
+
10: "grid-rows-10",
|
|
5556
|
+
11: "grid-rows-11",
|
|
5557
|
+
12: "grid-rows-12"
|
|
5558
|
+
};
|
|
5559
|
+
const flowMap = {
|
|
5560
|
+
row: "grid-flow-row",
|
|
5561
|
+
col: "grid-flow-col",
|
|
5562
|
+
"row-dense": "grid-flow-row-dense",
|
|
5563
|
+
"col-dense": "grid-flow-col-dense"
|
|
5564
|
+
};
|
|
5565
|
+
const Grid_gapMap = {
|
|
5566
|
+
none: "gap-0",
|
|
5567
|
+
sm: "gap-2",
|
|
5568
|
+
md: "gap-4",
|
|
5569
|
+
lg: "gap-6",
|
|
5570
|
+
xl: "gap-8"
|
|
5571
|
+
};
|
|
5572
|
+
const autoColsMap = {
|
|
5573
|
+
min: "auto-cols-min",
|
|
5574
|
+
max: "auto-cols-max",
|
|
5575
|
+
fr: "auto-cols-fr"
|
|
5576
|
+
};
|
|
5577
|
+
const autoRowsMap = {
|
|
5578
|
+
min: "auto-rows-min",
|
|
5579
|
+
max: "auto-rows-max",
|
|
5580
|
+
fr: "auto-rows-fr"
|
|
5581
|
+
};
|
|
5582
|
+
function Grid_mapResponsiveProp(prop, classMap) {
|
|
5583
|
+
if (!prop) return [];
|
|
5584
|
+
if ("string" == typeof prop) return classMap[prop] ? [
|
|
5585
|
+
classMap[prop]
|
|
5586
|
+
] : [];
|
|
5587
|
+
return Object.entries(prop).flatMap(([key, val])=>{
|
|
5588
|
+
const className = classMap[val];
|
|
5589
|
+
if (!className) return [];
|
|
5590
|
+
return "base" === key ? className : `${key}:${className}`;
|
|
5591
|
+
});
|
|
5592
|
+
}
|
|
5593
|
+
const Grid = (props)=>{
|
|
5594
|
+
const merged = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.mergeProps)({
|
|
5595
|
+
as: "div"
|
|
5596
|
+
}, props);
|
|
5597
|
+
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(merged, [
|
|
5598
|
+
"as",
|
|
5599
|
+
"class",
|
|
5600
|
+
"className",
|
|
5601
|
+
"cols",
|
|
5602
|
+
"rows",
|
|
5603
|
+
"flow",
|
|
5604
|
+
"gap",
|
|
5605
|
+
"autoCols",
|
|
5606
|
+
"autoRows"
|
|
5607
|
+
]);
|
|
5608
|
+
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));
|
|
5609
|
+
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)({
|
|
5610
|
+
get component () {
|
|
5611
|
+
return local.as;
|
|
5612
|
+
},
|
|
5613
|
+
get ["class"] () {
|
|
5614
|
+
return classes();
|
|
5615
|
+
}
|
|
5616
|
+
}, rest));
|
|
5617
|
+
};
|
|
5618
|
+
const grid_Grid = Grid;
|
|
5444
5619
|
var HeroContent_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
5445
5620
|
const HeroContent = (props)=>{
|
|
5446
5621
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -6180,6 +6355,45 @@ const navbar_Navbar = Object.assign(Navbar, {
|
|
|
6180
6355
|
});
|
|
6181
6356
|
const Pagination = join_Join;
|
|
6182
6357
|
const pagination_Pagination = Pagination;
|
|
6358
|
+
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>');
|
|
6359
|
+
const PhoneMockup = (props)=>{
|
|
6360
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
6361
|
+
"children",
|
|
6362
|
+
"class",
|
|
6363
|
+
"className",
|
|
6364
|
+
"dataTheme",
|
|
6365
|
+
"color",
|
|
6366
|
+
"innerProps"
|
|
6367
|
+
]);
|
|
6368
|
+
const classes = ()=>bundle_mjs_twMerge("mockup-phone", local.class, local.className, dist_clsx({
|
|
6369
|
+
"border-primary": "primary" === local.color,
|
|
6370
|
+
"border-secondary": "secondary" === local.color,
|
|
6371
|
+
"border-info": "info" === local.color,
|
|
6372
|
+
"border-success": "success" === local.color,
|
|
6373
|
+
"border-warning": "warning" === local.color,
|
|
6374
|
+
"border-error": "error" === local.color
|
|
6375
|
+
}));
|
|
6376
|
+
const innerClasses = ()=>bundle_mjs_twMerge("artboard artboard-demo phone-1", local.innerProps?.class, local.innerProps?.className);
|
|
6377
|
+
return (()=>{
|
|
6378
|
+
var _el$ = PhoneMockup_tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild;
|
|
6379
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
6380
|
+
get ["data-theme"] () {
|
|
6381
|
+
return local.dataTheme;
|
|
6382
|
+
},
|
|
6383
|
+
get ["class"] () {
|
|
6384
|
+
return classes();
|
|
6385
|
+
}
|
|
6386
|
+
}), false, true);
|
|
6387
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$4, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(()=>local.innerProps, {
|
|
6388
|
+
get ["class"] () {
|
|
6389
|
+
return innerClasses();
|
|
6390
|
+
}
|
|
6391
|
+
}), false, true);
|
|
6392
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, ()=>local.children);
|
|
6393
|
+
return _el$;
|
|
6394
|
+
})();
|
|
6395
|
+
};
|
|
6396
|
+
const phonemockup_PhoneMockup = PhoneMockup;
|
|
6183
6397
|
const Polymorphic = (props)=>{
|
|
6184
6398
|
const [localProps, otherProps] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
6185
6399
|
"as"
|
|
@@ -6606,118 +6820,6 @@ const Select = (props)=>{
|
|
|
6606
6820
|
})();
|
|
6607
6821
|
};
|
|
6608
6822
|
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
6823
|
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
6824
|
const ShowcaseSection_ShowcaseSection = (props)=>{
|
|
6723
6825
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -8225,4 +8327,4 @@ const Tooltip = (props)=>{
|
|
|
8225
8327
|
})();
|
|
8226
8328
|
};
|
|
8227
8329
|
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 };
|
|
8330
|
+
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, 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 };
|