@pathscale/ui 0.0.145 → 0.0.147
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.
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { type JSX } from "solid-js";
|
|
2
2
|
import type { IComponentBaseProps, ComponentSize, ComponentColor } from "../types";
|
|
3
|
-
export type GlassPanelBlur = "none" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
4
3
|
export type GlassPanelProps = IComponentBaseProps & JSX.HTMLAttributes<HTMLDivElement> & {
|
|
5
|
-
blur?: GlassPanelBlur;
|
|
6
4
|
collapsible?: boolean;
|
|
7
5
|
open?: boolean;
|
|
8
6
|
defaultOpen?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, type GlassPanelProps
|
|
1
|
+
export { default, type GlassPanelProps } from "./GlassPanel";
|
package/dist/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export type { FloatingDockProps, FloatingDockItem, FloatingDockDirection } from
|
|
|
38
38
|
export { default as Flex } from "./components/flex";
|
|
39
39
|
export { default as GlassPanel } from "./components/glass-panel";
|
|
40
40
|
export { GlowCard, type GlowCardProps } from "./components/glow-card";
|
|
41
|
-
export type { GlassPanelProps
|
|
41
|
+
export type { GlassPanelProps } from "./components/glass-panel";
|
|
42
42
|
export { default as Footer } from "./components/footer";
|
|
43
43
|
export type { FooterProps, FooterTitleProps } from "./components/footer";
|
|
44
44
|
export { FormActions, type FormActionsProps } from "./components/form-actions";
|
package/dist/index.js
CHANGED
|
@@ -10485,11 +10485,7 @@ const FloatingDock_DockItem = (props)=>{
|
|
|
10485
10485
|
rafId = requestAnimationFrame(tick);
|
|
10486
10486
|
};
|
|
10487
10487
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onMount)(()=>{
|
|
10488
|
-
|
|
10489
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
10490
|
-
props.mousePos();
|
|
10491
|
-
startLoop();
|
|
10492
|
-
});
|
|
10488
|
+
startLoop();
|
|
10493
10489
|
});
|
|
10494
10490
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
|
|
10495
10491
|
stopLoop();
|
|
@@ -10842,14 +10838,6 @@ const floating_dock_FloatingDock = FloatingDock;
|
|
|
10842
10838
|
"mousemove"
|
|
10843
10839
|
]);
|
|
10844
10840
|
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 class="grid transition-[grid-template-rows] duration-200 ease-in-out"><div>');
|
|
10845
|
-
const BLUR_MAP = {
|
|
10846
|
-
none: "",
|
|
10847
|
-
sm: "backdrop-blur-sm",
|
|
10848
|
-
md: "backdrop-blur-md",
|
|
10849
|
-
lg: "backdrop-blur-lg",
|
|
10850
|
-
xl: "backdrop-blur-xl",
|
|
10851
|
-
"2xl": "backdrop-blur-2xl"
|
|
10852
|
-
};
|
|
10853
10841
|
const SIZE_PADDING = {
|
|
10854
10842
|
xs: "p-2",
|
|
10855
10843
|
sm: "p-3",
|
|
@@ -10870,7 +10858,6 @@ const ACCENT_BORDER = {
|
|
|
10870
10858
|
};
|
|
10871
10859
|
const GlassPanel = (props)=>{
|
|
10872
10860
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
10873
|
-
"blur",
|
|
10874
10861
|
"collapsible",
|
|
10875
10862
|
"open",
|
|
10876
10863
|
"defaultOpen",
|
|
@@ -10888,7 +10875,6 @@ const GlassPanel = (props)=>{
|
|
|
10888
10875
|
"style"
|
|
10889
10876
|
]);
|
|
10890
10877
|
const contentId = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createUniqueId)();
|
|
10891
|
-
const blur = ()=>local.blur ?? "none";
|
|
10892
10878
|
const size = ()=>local.size ?? "md";
|
|
10893
10879
|
const isControlled = ()=>void 0 !== local.open;
|
|
10894
10880
|
const [internalOpen, setInternalOpen] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(local.defaultOpen ?? true);
|
|
@@ -10898,9 +10884,7 @@ const GlassPanel = (props)=>{
|
|
|
10898
10884
|
if (!isControlled()) setInternalOpen(next);
|
|
10899
10885
|
local.onToggle?.(next);
|
|
10900
10886
|
};
|
|
10901
|
-
const containerClasses = ()=>twMerge("glass-panel", "rounded-xl", "transition-all duration-200 ease-in-out", clsx({
|
|
10902
|
-
"bg-transparent": local.transparent,
|
|
10903
|
-
[BLUR_MAP[blur()]]: !local.transparent && "none" !== blur(),
|
|
10887
|
+
const containerClasses = ()=>twMerge("glass-panel", "rounded-xl", "backdrop-blur-sm", "transition-all duration-200 ease-in-out", clsx({
|
|
10904
10888
|
"border-l-2": !!local.accent,
|
|
10905
10889
|
[ACCENT_BORDER[local.accent ?? ""]]: !!local.accent
|
|
10906
10890
|
}), local.class, local.className);
|
|
@@ -10909,7 +10893,7 @@ const GlassPanel = (props)=>{
|
|
|
10909
10893
|
...local.style || {}
|
|
10910
10894
|
};
|
|
10911
10895
|
if (!local.transparent) {
|
|
10912
|
-
base.background = "color-mix(in srgb, var(--color-base-200)
|
|
10896
|
+
base.background = "color-mix(in srgb, var(--color-base-200) 80%, transparent)";
|
|
10913
10897
|
base.border = "1px solid color-mix(in srgb, var(--color-base-content) 8%, transparent)";
|
|
10914
10898
|
}
|
|
10915
10899
|
if (local.glow) base["box-shadow"] = "inset 0 1px 0 color-mix(in srgb, var(--color-base-content) 5%, transparent)";
|