@pathscale/ui 0.0.154 → 0.0.156
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.
|
@@ -13,6 +13,8 @@ export type GlassPanelProps = IComponentBaseProps & JSX.HTMLAttributes<HTMLDivEl
|
|
|
13
13
|
transparent?: boolean;
|
|
14
14
|
glow?: boolean;
|
|
15
15
|
accent?: ComponentColor;
|
|
16
|
+
paddingX?: string;
|
|
17
|
+
paddingY?: string;
|
|
16
18
|
};
|
|
17
19
|
declare const GlassPanel: (props: GlassPanelProps) => JSX.Element;
|
|
18
20
|
export default GlassPanel;
|
|
@@ -18,6 +18,8 @@ export type NoiseBackgroundProps = {
|
|
|
18
18
|
borderRadius?: string;
|
|
19
19
|
/** Path or URL to the noise texture image. @default "/noise.webp" */
|
|
20
20
|
noiseSrc?: string;
|
|
21
|
+
/** Show the static noise texture overlay. @default false */
|
|
22
|
+
showNoise?: boolean;
|
|
21
23
|
} & IComponentBaseProps;
|
|
22
24
|
declare const NoiseBackground: (rawProps: NoiseBackgroundProps) => JSX.Element;
|
|
23
25
|
export default NoiseBackground;
|
package/dist/index.js
CHANGED
|
@@ -10924,7 +10924,7 @@ const floating_dock_FloatingDock = FloatingDock;
|
|
|
10924
10924
|
"click",
|
|
10925
10925
|
"mousemove"
|
|
10926
10926
|
]);
|
|
10927
|
-
var GlassPanel_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<button type=button class="flex w-full items-center justify-between gap-2 px-4 py-3 text-sm font-medium cursor-pointer select-none transition-colors duration-150 text-base-content/50 hover:text-base-content/80 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary"><span class="flex items-center gap-2"></span><svg fill=none viewBox="0 0 24 24"stroke=currentColor stroke-width=1.5><path stroke-linecap=round stroke-linejoin=round d="M19 9l-7 7-7-7">'), GlassPanel_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)(
|
|
10927
|
+
var GlassPanel_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<button type=button class="flex w-full items-center justify-between gap-2 px-4 py-3 text-sm font-medium cursor-pointer select-none transition-colors duration-150 text-base-content/50 hover:text-base-content/80 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary"><span class="flex items-center gap-2"></span><svg fill=none viewBox="0 0 24 24"stroke=currentColor stroke-width=1.5><path stroke-linecap=round stroke-linejoin=round d="M19 9l-7 7-7-7">'), GlassPanel_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><div><div class=overflow-hidden>");
|
|
10928
10928
|
const BLUR_MAP = {
|
|
10929
10929
|
none: "",
|
|
10930
10930
|
sm: "backdrop-blur-sm",
|
|
@@ -10964,6 +10964,8 @@ const GlassPanel = (props)=>{
|
|
|
10964
10964
|
"transparent",
|
|
10965
10965
|
"glow",
|
|
10966
10966
|
"accent",
|
|
10967
|
+
"paddingX",
|
|
10968
|
+
"paddingY",
|
|
10967
10969
|
"children",
|
|
10968
10970
|
"class",
|
|
10969
10971
|
"className",
|
|
@@ -10998,7 +11000,7 @@ const GlassPanel = (props)=>{
|
|
|
10998
11000
|
if (local.glow) base["box-shadow"] = "inset 0 1px 0 color-mix(in srgb, var(--color-base-content) 5%, transparent)";
|
|
10999
11001
|
return base;
|
|
11000
11002
|
};
|
|
11001
|
-
const contentClasses = ()=>twMerge(SIZE_PADDING[size()]);
|
|
11003
|
+
const contentClasses = ()=>twMerge(local.paddingX || local.paddingY ? "" : SIZE_PADDING[size()], local.paddingX, local.paddingY);
|
|
11002
11004
|
return (()=>{
|
|
11003
11005
|
var _el$ = GlassPanel_tmpl$2(), _el$5 = _el$.firstChild, _el$6 = _el$5.firstChild;
|
|
11004
11006
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
@@ -11046,13 +11048,15 @@ const GlassPanel = (props)=>{
|
|
|
11046
11048
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$5, "id", contentId);
|
|
11047
11049
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$6, ()=>local.children);
|
|
11048
11050
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
11049
|
-
var _v$3 = !local.collapsible || isOpen() ? "1fr" : "0fr", _v$
|
|
11050
|
-
_v$3 !== _p$.e && (
|
|
11051
|
-
_v$4 !== _p$.t && (
|
|
11051
|
+
var _v$3 = `grid transition-[grid-template-rows,opacity] duration-200 ease-in-out overflow-hidden ${local.collapsible && !isOpen() ? "" : contentClasses()}`, _v$4 = !local.collapsible || isOpen() ? "1fr" : "0fr", _v$5 = !local.collapsible || isOpen() ? "1" : "0";
|
|
11052
|
+
_v$3 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$5, _p$.e = _v$3);
|
|
11053
|
+
_v$4 !== _p$.t && (null != (_p$.t = _v$4) ? _el$5.style.setProperty("grid-template-rows", _v$4) : _el$5.style.removeProperty("grid-template-rows"));
|
|
11054
|
+
_v$5 !== _p$.a && (null != (_p$.a = _v$5) ? _el$5.style.setProperty("opacity", _v$5) : _el$5.style.removeProperty("opacity"));
|
|
11052
11055
|
return _p$;
|
|
11053
11056
|
}, {
|
|
11054
11057
|
e: void 0,
|
|
11055
|
-
t: void 0
|
|
11058
|
+
t: void 0,
|
|
11059
|
+
a: void 0
|
|
11056
11060
|
});
|
|
11057
11061
|
return _el$;
|
|
11058
11062
|
})();
|
|
@@ -14573,7 +14577,7 @@ const navbar_Navbar = Object.assign(Navbar, {
|
|
|
14573
14577
|
Stack: NavbarStack,
|
|
14574
14578
|
Row: navbar_NavbarRow
|
|
14575
14579
|
});
|
|
14576
|
-
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"
|
|
14580
|
+
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>'), NoiseBackground_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="pointer-events-none absolute inset-0 overflow-hidden"><img alt class="h-full w-full object-cover">');
|
|
14577
14581
|
function NoiseBackground_createSpring(initial, stiffness = 100, damping = 30) {
|
|
14578
14582
|
let current = initial;
|
|
14579
14583
|
let velocity = 0;
|
|
@@ -14604,6 +14608,7 @@ const NoiseBackground = (rawProps)=>{
|
|
|
14604
14608
|
"animating",
|
|
14605
14609
|
"borderRadius",
|
|
14606
14610
|
"noiseSrc",
|
|
14611
|
+
"showNoise",
|
|
14607
14612
|
"dataTheme",
|
|
14608
14613
|
"style"
|
|
14609
14614
|
]);
|
|
@@ -14712,7 +14717,7 @@ const NoiseBackground = (rawProps)=>{
|
|
|
14712
14717
|
const containerClasses = ()=>twMerge("group relative overflow-hidden bg-base-200 backdrop-blur-sm", "shadow-[0px_1px_0px_0px_var(--color-base-300)_inset,0px_1px_0px_0px_var(--color-base-100)]", local.containerClass);
|
|
14713
14718
|
const contentClasses = ()=>twMerge("relative z-10", local.class, local.className);
|
|
14714
14719
|
return (()=>{
|
|
14715
|
-
var _el$ = NoiseBackground_tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.nextSibling, _el$5 = _el$4.nextSibling, _el$6 = _el$5.nextSibling
|
|
14720
|
+
var _el$ = NoiseBackground_tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.nextSibling, _el$5 = _el$4.nextSibling, _el$6 = _el$5.nextSibling;
|
|
14716
14721
|
var _ref$ = containerRef;
|
|
14717
14722
|
"function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$) : containerRef = _el$;
|
|
14718
14723
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
|
|
@@ -14743,21 +14748,27 @@ const NoiseBackground = (rawProps)=>{
|
|
|
14743
14748
|
"function" == typeof _ref$4 ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$4, _el$4) : layer2 = _el$4;
|
|
14744
14749
|
var _ref$5 = stripEl;
|
|
14745
14750
|
"function" == typeof _ref$5 ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$5, _el$5) : stripEl = _el$5;
|
|
14746
|
-
|
|
14747
|
-
|
|
14748
|
-
|
|
14751
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (()=>{
|
|
14752
|
+
var _c$ = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!(local.showNoise ?? false));
|
|
14753
|
+
return ()=>_c$() && (()=>{
|
|
14754
|
+
var _el$7 = NoiseBackground_tmpl$2(), _el$8 = _el$7.firstChild;
|
|
14755
|
+
_el$8.style.setProperty("opacity", "var(--noise-opacity, 0.2)");
|
|
14756
|
+
_el$8.style.setProperty("mix-blend-mode", "overlay");
|
|
14757
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$8, "src", local.noiseSrc ?? "/noise.webp"));
|
|
14758
|
+
return _el$7;
|
|
14759
|
+
})();
|
|
14760
|
+
})(), _el$6);
|
|
14761
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$6, ()=>local.children);
|
|
14749
14762
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
14750
|
-
var _v$ = `linear-gradient(to right, ${colors().join(", ")})`, _v$2 = `${borderRadius()} ${borderRadius()} 0 0`, _v$3 =
|
|
14763
|
+
var _v$ = `linear-gradient(to right, ${colors().join(", ")})`, _v$2 = `${borderRadius()} ${borderRadius()} 0 0`, _v$3 = contentClasses();
|
|
14751
14764
|
_v$ !== _p$.e && (null != (_p$.e = _v$) ? _el$5.style.setProperty("background", _v$) : _el$5.style.removeProperty("background"));
|
|
14752
14765
|
_v$2 !== _p$.t && (null != (_p$.t = _v$2) ? _el$5.style.setProperty("border-radius", _v$2) : _el$5.style.removeProperty("border-radius"));
|
|
14753
|
-
_v$3 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.
|
|
14754
|
-
_v$4 !== _p$.o && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$8, _p$.o = _v$4);
|
|
14766
|
+
_v$3 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$6, _p$.a = _v$3);
|
|
14755
14767
|
return _p$;
|
|
14756
14768
|
}, {
|
|
14757
14769
|
e: void 0,
|
|
14758
14770
|
t: void 0,
|
|
14759
|
-
a: void 0
|
|
14760
|
-
o: void 0
|
|
14771
|
+
a: void 0
|
|
14761
14772
|
});
|
|
14762
14773
|
return _el$;
|
|
14763
14774
|
})();
|