@pathscale/ui 0.0.40 → 0.0.41
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 +236 -91
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3535,6 +3535,43 @@ const Alert = (props)=>{
|
|
|
3535
3535
|
})();
|
|
3536
3536
|
};
|
|
3537
3537
|
const alert_Alert = Alert;
|
|
3538
|
+
var Artboard_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
3539
|
+
const Artboard = (props)=>{
|
|
3540
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
3541
|
+
"children",
|
|
3542
|
+
"demo",
|
|
3543
|
+
"size",
|
|
3544
|
+
"horizontal",
|
|
3545
|
+
"dataTheme",
|
|
3546
|
+
"class",
|
|
3547
|
+
"className"
|
|
3548
|
+
]);
|
|
3549
|
+
const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
3550
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("artboard", local.class, local.className, dist_clsx({
|
|
3551
|
+
"artboard-demo": local.demo ?? true,
|
|
3552
|
+
"phone-1": 1 === local.size,
|
|
3553
|
+
"phone-2": 2 === local.size,
|
|
3554
|
+
"phone-3": 3 === local.size,
|
|
3555
|
+
"phone-4": 4 === local.size,
|
|
3556
|
+
"phone-5": 5 === local.size,
|
|
3557
|
+
"phone-6": 6 === local.size,
|
|
3558
|
+
horizontal: local.horizontal
|
|
3559
|
+
})));
|
|
3560
|
+
return (()=>{
|
|
3561
|
+
var _el$ = Artboard_tmpl$();
|
|
3562
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
3563
|
+
get ["data-theme"] () {
|
|
3564
|
+
return local.dataTheme;
|
|
3565
|
+
},
|
|
3566
|
+
get ["class"] () {
|
|
3567
|
+
return classes();
|
|
3568
|
+
}
|
|
3569
|
+
}), false, true);
|
|
3570
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, resolvedChildren);
|
|
3571
|
+
return _el$;
|
|
3572
|
+
})();
|
|
3573
|
+
};
|
|
3574
|
+
const artboard_Artboard = Artboard;
|
|
3538
3575
|
const VoidElementList = [
|
|
3539
3576
|
"area",
|
|
3540
3577
|
"base",
|
|
@@ -3856,6 +3893,56 @@ const BreadcrumbsItem = (props)=>{
|
|
|
3856
3893
|
})();
|
|
3857
3894
|
};
|
|
3858
3895
|
const breadcrumbs_BreadcrumbsItem = BreadcrumbsItem;
|
|
3896
|
+
var BrowserMockup_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><div class=mockup-browser-toolbar><div class=input><input type=text readonly></div></div><div>");
|
|
3897
|
+
const BrowserMockup = (props)=>{
|
|
3898
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
3899
|
+
"dataTheme",
|
|
3900
|
+
"class",
|
|
3901
|
+
"className",
|
|
3902
|
+
"inputClassName",
|
|
3903
|
+
"innerClassName",
|
|
3904
|
+
"children",
|
|
3905
|
+
"url",
|
|
3906
|
+
"variant"
|
|
3907
|
+
]);
|
|
3908
|
+
const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
3909
|
+
const variant = ()=>local.variant ?? "border";
|
|
3910
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("mockup-browser border", dist_clsx({
|
|
3911
|
+
"border-base-300": "border" === variant(),
|
|
3912
|
+
"bg-base-300": "background" === variant()
|
|
3913
|
+
}), local.class, local.className));
|
|
3914
|
+
const inputClasses = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("input", dist_clsx({
|
|
3915
|
+
"border-base-300": "border" === variant()
|
|
3916
|
+
}), local.inputClassName));
|
|
3917
|
+
const innerClasses = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("flex justify-center px-4 py-16", dist_clsx({
|
|
3918
|
+
"border-t border-base-300": "border" === variant(),
|
|
3919
|
+
"bg-base-200": "background" === variant()
|
|
3920
|
+
}), local.innerClassName));
|
|
3921
|
+
return (()=>{
|
|
3922
|
+
var _el$ = BrowserMockup_tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$2.nextSibling;
|
|
3923
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
3924
|
+
get ["data-theme"] () {
|
|
3925
|
+
return local.dataTheme;
|
|
3926
|
+
},
|
|
3927
|
+
get ["class"] () {
|
|
3928
|
+
return classes();
|
|
3929
|
+
}
|
|
3930
|
+
}), false, true);
|
|
3931
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$5, resolvedChildren);
|
|
3932
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
3933
|
+
var _v$ = inputClasses(), _v$2 = innerClasses();
|
|
3934
|
+
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$4, _p$.e = _v$);
|
|
3935
|
+
_v$2 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$5, _p$.t = _v$2);
|
|
3936
|
+
return _p$;
|
|
3937
|
+
}, {
|
|
3938
|
+
e: void 0,
|
|
3939
|
+
t: void 0
|
|
3940
|
+
});
|
|
3941
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>_el$4.value = local.url);
|
|
3942
|
+
return _el$;
|
|
3943
|
+
})();
|
|
3944
|
+
};
|
|
3945
|
+
const browsermockup_BrowserMockup = BrowserMockup;
|
|
3859
3946
|
var Loading_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<span>");
|
|
3860
3947
|
const Loading = (props)=>{
|
|
3861
3948
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -4207,7 +4294,7 @@ const ChatBubbleTime = (props)=>(()=>{
|
|
|
4207
4294
|
return _el$;
|
|
4208
4295
|
})();
|
|
4209
4296
|
const chatbubble_ChatBubbleTime = ChatBubbleTime;
|
|
4210
|
-
const
|
|
4297
|
+
const ChatBubbleAvatar_ChatBubbleAvatar = (props)=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(avatar, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(props, {
|
|
4211
4298
|
get size () {
|
|
4212
4299
|
return props.size ?? "xs";
|
|
4213
4300
|
},
|
|
@@ -4218,7 +4305,7 @@ const ChatBubbleAvatar = (props)=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d
|
|
|
4218
4305
|
return twMerge("chat-image", props.class);
|
|
4219
4306
|
}
|
|
4220
4307
|
}));
|
|
4221
|
-
const
|
|
4308
|
+
const ChatBubbleAvatar = ChatBubbleAvatar_ChatBubbleAvatar;
|
|
4222
4309
|
var ChatBubbleMessage_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
4223
4310
|
const ChatBubbleMessage_ChatBubbleMessage = (props)=>{
|
|
4224
4311
|
const bubbleClass = clsx({
|
|
@@ -4284,7 +4371,7 @@ const ChatBubble = (props)=>{
|
|
|
4284
4371
|
const chatbubble_ChatBubble = Object.assign(ChatBubble, {
|
|
4285
4372
|
Header: ChatBubbleHeader,
|
|
4286
4373
|
Time: chatbubble_ChatBubbleTime,
|
|
4287
|
-
Avatar:
|
|
4374
|
+
Avatar: ChatBubbleAvatar,
|
|
4288
4375
|
Message: ChatBubbleMessage,
|
|
4289
4376
|
Footer: chatbubble_ChatBubbleFooter
|
|
4290
4377
|
});
|
|
@@ -4598,56 +4685,6 @@ const Countdown = (props)=>{
|
|
|
4598
4685
|
})();
|
|
4599
4686
|
};
|
|
4600
4687
|
const countdown_Countdown = Countdown;
|
|
4601
|
-
var BrowserMockup_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><div class=mockup-browser-toolbar><div class=input><input type=text readonly></div></div><div>");
|
|
4602
|
-
const BrowserMockup = (props)=>{
|
|
4603
|
-
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
4604
|
-
"dataTheme",
|
|
4605
|
-
"class",
|
|
4606
|
-
"className",
|
|
4607
|
-
"inputClassName",
|
|
4608
|
-
"innerClassName",
|
|
4609
|
-
"children",
|
|
4610
|
-
"url",
|
|
4611
|
-
"variant"
|
|
4612
|
-
]);
|
|
4613
|
-
const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
4614
|
-
const variant = ()=>local.variant ?? "border";
|
|
4615
|
-
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("mockup-browser border", dist_clsx({
|
|
4616
|
-
"border-base-300": "border" === variant(),
|
|
4617
|
-
"bg-base-300": "background" === variant()
|
|
4618
|
-
}), local.class, local.className));
|
|
4619
|
-
const inputClasses = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("input", dist_clsx({
|
|
4620
|
-
"border-base-300": "border" === variant()
|
|
4621
|
-
}), local.inputClassName));
|
|
4622
|
-
const innerClasses = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("flex justify-center px-4 py-16", dist_clsx({
|
|
4623
|
-
"border-t border-base-300": "border" === variant(),
|
|
4624
|
-
"bg-base-200": "background" === variant()
|
|
4625
|
-
}), local.innerClassName));
|
|
4626
|
-
return (()=>{
|
|
4627
|
-
var _el$ = BrowserMockup_tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$2.nextSibling;
|
|
4628
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
4629
|
-
get ["data-theme"] () {
|
|
4630
|
-
return local.dataTheme;
|
|
4631
|
-
},
|
|
4632
|
-
get ["class"] () {
|
|
4633
|
-
return classes();
|
|
4634
|
-
}
|
|
4635
|
-
}), false, true);
|
|
4636
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$5, resolvedChildren);
|
|
4637
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
4638
|
-
var _v$ = inputClasses(), _v$2 = innerClasses();
|
|
4639
|
-
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$4, _p$.e = _v$);
|
|
4640
|
-
_v$2 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$5, _p$.t = _v$2);
|
|
4641
|
-
return _p$;
|
|
4642
|
-
}, {
|
|
4643
|
-
e: void 0,
|
|
4644
|
-
t: void 0
|
|
4645
|
-
});
|
|
4646
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>_el$4.value = local.url);
|
|
4647
|
-
return _el$;
|
|
4648
|
-
})();
|
|
4649
|
-
};
|
|
4650
|
-
const browsermockup_BrowserMockup = BrowserMockup;
|
|
4651
4688
|
var Diff_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><div class=diff-item-1></div><div class=diff-item-2></div><div class=diff-resizer>");
|
|
4652
4689
|
const Diff = (props)=>{
|
|
4653
4690
|
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
@@ -7456,6 +7493,151 @@ const steps_Steps = Object.assign(Steps, {
|
|
|
7456
7493
|
Step: Step
|
|
7457
7494
|
});
|
|
7458
7495
|
const steps = steps_Steps;
|
|
7496
|
+
var SvgBackground_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><div class="absolute inset-0 z-0"></div><div class="relative z-10 h-full w-full">'), SvgBackground_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="absolute inset-0 z-5">');
|
|
7497
|
+
function parseHSL(hslString) {
|
|
7498
|
+
const match = hslString.match(/hsl\((\d+),\s*(\d+)%,\s*(\d+)%\)/);
|
|
7499
|
+
if (!match) return null;
|
|
7500
|
+
return {
|
|
7501
|
+
h: parseInt(match[1]),
|
|
7502
|
+
s: parseInt(match[2]),
|
|
7503
|
+
l: parseInt(match[3])
|
|
7504
|
+
};
|
|
7505
|
+
}
|
|
7506
|
+
function interpolateHue(h1, h2, t) {
|
|
7507
|
+
const diff = h2 - h1;
|
|
7508
|
+
if (Math.abs(diff) > 180) if (diff > 0) h1 += 360;
|
|
7509
|
+
else h2 += 360;
|
|
7510
|
+
return (h1 + (h2 - h1) * t + 360) % 360;
|
|
7511
|
+
}
|
|
7512
|
+
function SvgBackground(props) {
|
|
7513
|
+
const { colorStart = 'hsl(129, 100%, 72%)', colorEnd = 'hsl(227, 100%, 50%)', opacity = 1, blurIntensity = 36, turbulenceFrequency = 0.007, animated = false, animationSpeed = 1, class: className = '', style = {}, children, darkness = 0 } = props;
|
|
7514
|
+
const [animationTime, setAnimationTime] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(0);
|
|
7515
|
+
let animationFrame = null;
|
|
7516
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onMount)(()=>{
|
|
7517
|
+
if (animated) {
|
|
7518
|
+
const animate = ()=>{
|
|
7519
|
+
setAnimationTime((prev)=>prev + 0.008 * animationSpeed);
|
|
7520
|
+
animationFrame = requestAnimationFrame(animate);
|
|
7521
|
+
};
|
|
7522
|
+
animate();
|
|
7523
|
+
}
|
|
7524
|
+
});
|
|
7525
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
|
|
7526
|
+
if (animationFrame) cancelAnimationFrame(animationFrame);
|
|
7527
|
+
});
|
|
7528
|
+
const gradientId = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>`svg-bg-gradient-${Math.random().toString(36).substr(2, 9)}`, void 0, {
|
|
7529
|
+
equals: false
|
|
7530
|
+
});
|
|
7531
|
+
const filterId = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>`svg-bg-filter-${Math.random().toString(36).substr(2, 9)}`, void 0, {
|
|
7532
|
+
equals: false
|
|
7533
|
+
});
|
|
7534
|
+
const startHSL = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>parseHSL(colorStart));
|
|
7535
|
+
const endHSL = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>parseHSL(colorEnd));
|
|
7536
|
+
const animatedValues = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
7537
|
+
if (!animated) return {
|
|
7538
|
+
color1: colorStart,
|
|
7539
|
+
color2: colorEnd,
|
|
7540
|
+
turbFreq1: turbulenceFrequency,
|
|
7541
|
+
turbFreq2: 0.4 * turbulenceFrequency
|
|
7542
|
+
};
|
|
7543
|
+
const time = animationTime();
|
|
7544
|
+
const baseSpeed = 0.001 * animationSpeed;
|
|
7545
|
+
const freq1 = time * baseSpeed * 7;
|
|
7546
|
+
const freq2 = time * baseSpeed * 11;
|
|
7547
|
+
const freq3 = time * baseSpeed * 13;
|
|
7548
|
+
const freq4 = time * baseSpeed * 17;
|
|
7549
|
+
const freq5 = time * baseSpeed * 19;
|
|
7550
|
+
const wave1 = 0.3 * Math.sin(freq1);
|
|
7551
|
+
const wave2 = 0.25 * Math.sin(freq2);
|
|
7552
|
+
const wave3 = 0.2 * Math.sin(freq3);
|
|
7553
|
+
const wave4 = 0.15 * Math.sin(freq4);
|
|
7554
|
+
const wave5 = 0.1 * Math.sin(freq5);
|
|
7555
|
+
const combinedWave = wave1 + wave2 + wave3 + wave4 + wave5;
|
|
7556
|
+
const colorMix = (combinedWave + 1) / 2;
|
|
7557
|
+
const wave1b = 0.3 * Math.cos(freq2);
|
|
7558
|
+
const wave2b = 0.25 * Math.cos(freq3);
|
|
7559
|
+
const wave3b = 0.2 * Math.cos(freq4);
|
|
7560
|
+
const wave4b = 0.15 * Math.cos(freq5);
|
|
7561
|
+
const wave5b = 0.1 * Math.cos(freq1);
|
|
7562
|
+
const combinedWave2 = wave1b + wave2b + wave3b + wave4b + wave5b;
|
|
7563
|
+
const colorMix2 = (combinedWave2 + 1) / 2;
|
|
7564
|
+
const turbMix1 = (0.5 * Math.sin(0.3 * freq1) + 0.5 * Math.cos(0.2 * freq2) + 1) / 2;
|
|
7565
|
+
const turbMix2 = (0.5 * Math.cos(0.2 * freq3) + 0.5 * Math.sin(0.3 * freq4) + 1) / 2;
|
|
7566
|
+
let color1 = colorStart;
|
|
7567
|
+
let color2 = colorEnd;
|
|
7568
|
+
const start = startHSL();
|
|
7569
|
+
const end = endHSL();
|
|
7570
|
+
if (start && end) {
|
|
7571
|
+
const h1 = interpolateHue(start.h, end.h, colorMix);
|
|
7572
|
+
const s1 = start.s + (end.s - start.s) * colorMix;
|
|
7573
|
+
const l1 = start.l + (end.l - start.l) * colorMix;
|
|
7574
|
+
const h2 = interpolateHue(start.h, end.h, colorMix2);
|
|
7575
|
+
const s2 = start.s + (end.s - start.s) * colorMix2;
|
|
7576
|
+
const l2 = start.l + (end.l - start.l) * colorMix2;
|
|
7577
|
+
color1 = `hsl(${Math.round(h1)}, ${Math.round(s1)}%, ${Math.round(l1)}%)`;
|
|
7578
|
+
color2 = `hsl(${Math.round(h2)}, ${Math.round(s2)}%, ${Math.round(l2)}%)`;
|
|
7579
|
+
}
|
|
7580
|
+
const turbFreq1 = turbulenceFrequency + 0.01 * turbulenceFrequency * turbMix1;
|
|
7581
|
+
const turbFreq2 = 0.4 * turbulenceFrequency + 0.01 * turbulenceFrequency * turbMix2;
|
|
7582
|
+
if (Math.floor(10 * time) % 50 === 0) console.log(`Time: ${time.toFixed(2)}, Mix1: ${colorMix.toFixed(3)}, Mix2: ${colorMix2.toFixed(3)}, Combined: ${combinedWave.toFixed(3)}, C1: ${color1}, C2: ${color2}`);
|
|
7583
|
+
return {
|
|
7584
|
+
color1,
|
|
7585
|
+
color2,
|
|
7586
|
+
turbFreq1,
|
|
7587
|
+
turbFreq2
|
|
7588
|
+
};
|
|
7589
|
+
});
|
|
7590
|
+
const staticSvg = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
|
|
7591
|
+
const values = animatedValues();
|
|
7592
|
+
const svg = `
|
|
7593
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 700" width="700" height="700">
|
|
7594
|
+
<defs>
|
|
7595
|
+
<linearGradient gradientTransform="rotate(63, 0.5, 0.5)" x1="50%" y1="0%" x2="50%" y2="100%" id="${gradientId()}">
|
|
7596
|
+
<stop stop-color="${values.color1}" stop-opacity="1" offset="0%"></stop>
|
|
7597
|
+
<stop stop-color="${values.color2}" stop-opacity="1" offset="100%"></stop>
|
|
7598
|
+
</linearGradient>
|
|
7599
|
+
<filter id="${filterId()}" x="-20%" y="-20%" width="140%" height="140%" filterUnits="objectBoundingBox" primitiveUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
7600
|
+
<feTurbulence type="fractalNoise" baseFrequency="${values.turbFreq1} ${values.turbFreq2}" numOctaves="2" seed="10" stitchTiles="stitch" result="turbulence"></feTurbulence>
|
|
7601
|
+
<feGaussianBlur stdDeviation="${blurIntensity} ${blurIntensity}" in="turbulence" edgeMode="duplicate" result="blur"></feGaussianBlur>
|
|
7602
|
+
<feBlend mode="color-dodge" in="SourceGraphic" in2="blur" result="blend"></feBlend>
|
|
7603
|
+
</filter>
|
|
7604
|
+
</defs>
|
|
7605
|
+
<rect width="700" height="700" fill="url(#${gradientId()})" filter="url(#${filterId()})"></rect>
|
|
7606
|
+
</svg>
|
|
7607
|
+
`;
|
|
7608
|
+
return `data:image/svg+xml;base64,${btoa(svg)}`;
|
|
7609
|
+
});
|
|
7610
|
+
const backgroundStyle = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>({
|
|
7611
|
+
position: 'relative',
|
|
7612
|
+
...style,
|
|
7613
|
+
'--svg-bg': `url("${staticSvg()}")`
|
|
7614
|
+
}));
|
|
7615
|
+
return (()=>{
|
|
7616
|
+
var _el$ = SvgBackground_tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
|
|
7617
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, `relative ${className}`);
|
|
7618
|
+
_el$2.style.setProperty("background-image", "var(--svg-bg)");
|
|
7619
|
+
_el$2.style.setProperty("background-size", "cover");
|
|
7620
|
+
_el$2.style.setProperty("background-position", "center");
|
|
7621
|
+
_el$2.style.setProperty("background-repeat", "no-repeat");
|
|
7622
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, darkness > 0 && (()=>{
|
|
7623
|
+
var _el$4 = SvgBackground_tmpl$2();
|
|
7624
|
+
_el$4.style.setProperty("background-color", `rgba(0, 0, 0, ${darkness})`);
|
|
7625
|
+
_el$4.style.setProperty("pointer-events", "none");
|
|
7626
|
+
return _el$4;
|
|
7627
|
+
})(), _el$3);
|
|
7628
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, children);
|
|
7629
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
7630
|
+
var _v$ = backgroundStyle(), _v$2 = opacity.toString();
|
|
7631
|
+
_p$.e = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$, _v$, _p$.e);
|
|
7632
|
+
_v$2 !== _p$.t && (null != (_p$.t = _v$2) ? _el$2.style.setProperty("opacity", _v$2) : _el$2.style.removeProperty("opacity"));
|
|
7633
|
+
return _p$;
|
|
7634
|
+
}, {
|
|
7635
|
+
e: void 0,
|
|
7636
|
+
t: void 0
|
|
7637
|
+
});
|
|
7638
|
+
return _el$;
|
|
7639
|
+
})();
|
|
7640
|
+
}
|
|
7459
7641
|
function isJSXElement(node) {
|
|
7460
7642
|
return "object" == typeof node && null !== node;
|
|
7461
7643
|
}
|
|
@@ -8403,41 +8585,4 @@ const WindowMockup = (props)=>{
|
|
|
8403
8585
|
})();
|
|
8404
8586
|
};
|
|
8405
8587
|
const windowmockup_WindowMockup = WindowMockup;
|
|
8406
|
-
|
|
8407
|
-
const Artboard = (props)=>{
|
|
8408
|
-
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
8409
|
-
"children",
|
|
8410
|
-
"demo",
|
|
8411
|
-
"size",
|
|
8412
|
-
"horizontal",
|
|
8413
|
-
"dataTheme",
|
|
8414
|
-
"class",
|
|
8415
|
-
"className"
|
|
8416
|
-
]);
|
|
8417
|
-
const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
|
|
8418
|
-
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("artboard", local.class, local.className, dist_clsx({
|
|
8419
|
-
"artboard-demo": local.demo ?? true,
|
|
8420
|
-
"phone-1": 1 === local.size,
|
|
8421
|
-
"phone-2": 2 === local.size,
|
|
8422
|
-
"phone-3": 3 === local.size,
|
|
8423
|
-
"phone-4": 4 === local.size,
|
|
8424
|
-
"phone-5": 5 === local.size,
|
|
8425
|
-
"phone-6": 6 === local.size,
|
|
8426
|
-
horizontal: local.horizontal
|
|
8427
|
-
})));
|
|
8428
|
-
return (()=>{
|
|
8429
|
-
var _el$ = Artboard_tmpl$();
|
|
8430
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
8431
|
-
get ["data-theme"] () {
|
|
8432
|
-
return local.dataTheme;
|
|
8433
|
-
},
|
|
8434
|
-
get ["class"] () {
|
|
8435
|
-
return classes();
|
|
8436
|
-
}
|
|
8437
|
-
}), false, true);
|
|
8438
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, resolvedChildren);
|
|
8439
|
-
return _el$;
|
|
8440
|
-
})();
|
|
8441
|
-
};
|
|
8442
|
-
const artboard_Artboard = Artboard;
|
|
8443
|
-
export { accordion_Accordion as Accordion, alert_Alert as Alert, artboard_Artboard as Artboard, avatar as Avatar, background_Background as Background, Badge, Breadcrumbs, breadcrumbs_BreadcrumbsItem as BreadcrumbsItem, browsermockup_BrowserMockup as BrowserMockup, button_Button as Button, card_Card as Card, carousel_Carousel as Carousel, chatbubble_ChatBubble as ChatBubble, checkbox_Checkbox as Checkbox, codemockup_CodeMockup as CodeMockup, CodeMockupLine, collapse_Collapse as Collapse, CollapseContent, CollapseDetails, CollapseTitle, copy_button_CopyButton as CopyButton, countdown_Countdown as Countdown, diff_Diff as Diff, divider as Divider, dock as Dock, Drawer, dropdown as Dropdown, FileInput, flex_Flex as Flex, footer_Footer as Footer, form_Form as Form, grid_Grid as Grid, hero_Hero as Hero, icon_Icon as Icon, indicator_Indicator as Indicator, input_Input as Input, join_Join as Join, kbd_Kbd as Kbd, link_Link as Link, loading_Loading as Loading, mask as Mask, menu_Menu as Menu, modal as Modal, navbar_Navbar as Navbar, pagination_Pagination as Pagination, phonemockup_PhoneMockup as PhoneMockup, Progress, props_table_PropsTable as PropsTable, radialprogress_RadialProgress as RadialProgress, radio_Radio as Radio, range_Range as Range, Rating, select_Select as Select, showcase_ShowcaseBlock as ShowcaseBlock, ShowcaseSection, Sidenav, skeleton_Skeleton as Skeleton, Stack, stats_Stats as Stats, status_Status as Status, steps as Steps, Summary, Swap, table as Table, tabs_Tabs as Tabs, textarea_Textarea as Textarea, Timeline, timeline_TimelineEnd as TimelineEnd, timeline_TimelineItem as TimelineItem, timeline_TimelineMiddle as TimelineMiddle, timeline_TimelineStart as TimelineStart, toast_Toast as Toast, toggle_Toggle as Toggle, tooltip_Tooltip as Tooltip, windowmockup_WindowMockup as WindowMockup, useFormValidation };
|
|
8588
|
+
export { accordion_Accordion as Accordion, alert_Alert as Alert, artboard_Artboard as Artboard, avatar as Avatar, background_Background as Background, Badge, Breadcrumbs, breadcrumbs_BreadcrumbsItem as BreadcrumbsItem, browsermockup_BrowserMockup as BrowserMockup, button_Button as Button, card_Card as Card, carousel_Carousel as Carousel, chatbubble_ChatBubble as ChatBubble, checkbox_Checkbox as Checkbox, codemockup_CodeMockup as CodeMockup, CodeMockupLine, collapse_Collapse as Collapse, CollapseContent, CollapseDetails, CollapseTitle, copy_button_CopyButton as CopyButton, countdown_Countdown as Countdown, diff_Diff as Diff, divider as Divider, dock as Dock, Drawer, dropdown as Dropdown, FileInput, flex_Flex as Flex, footer_Footer as Footer, form_Form as Form, grid_Grid as Grid, hero_Hero as Hero, icon_Icon as Icon, indicator_Indicator as Indicator, input_Input as Input, join_Join as Join, kbd_Kbd as Kbd, link_Link as Link, loading_Loading as Loading, mask as Mask, menu_Menu as Menu, modal as Modal, navbar_Navbar as Navbar, pagination_Pagination as Pagination, phonemockup_PhoneMockup as PhoneMockup, Progress, props_table_PropsTable as PropsTable, radialprogress_RadialProgress as RadialProgress, radio_Radio as Radio, range_Range as Range, Rating, select_Select as Select, showcase_ShowcaseBlock as ShowcaseBlock, ShowcaseSection, Sidenav, skeleton_Skeleton as Skeleton, Stack, stats_Stats as Stats, status_Status as Status, steps as Steps, Summary, SvgBackground, Swap, table as Table, tabs_Tabs as Tabs, textarea_Textarea as Textarea, Timeline, timeline_TimelineEnd as TimelineEnd, timeline_TimelineItem as TimelineItem, timeline_TimelineMiddle as TimelineMiddle, timeline_TimelineStart as TimelineStart, toast_Toast as Toast, toggle_Toggle as Toggle, tooltip_Tooltip as Tooltip, windowmockup_WindowMockup as WindowMockup, useFormValidation };
|