@pathscale/ui 0.0.144 → 0.0.146
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
|
@@ -10838,14 +10838,6 @@ const floating_dock_FloatingDock = FloatingDock;
|
|
|
10838
10838
|
"mousemove"
|
|
10839
10839
|
]);
|
|
10840
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>');
|
|
10841
|
-
const BLUR_MAP = {
|
|
10842
|
-
none: "",
|
|
10843
|
-
sm: "backdrop-blur-sm",
|
|
10844
|
-
md: "backdrop-blur-md",
|
|
10845
|
-
lg: "backdrop-blur-lg",
|
|
10846
|
-
xl: "backdrop-blur-xl",
|
|
10847
|
-
"2xl": "backdrop-blur-2xl"
|
|
10848
|
-
};
|
|
10849
10841
|
const SIZE_PADDING = {
|
|
10850
10842
|
xs: "p-2",
|
|
10851
10843
|
sm: "p-3",
|
|
@@ -10866,7 +10858,6 @@ const ACCENT_BORDER = {
|
|
|
10866
10858
|
};
|
|
10867
10859
|
const GlassPanel = (props)=>{
|
|
10868
10860
|
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
10869
|
-
"blur",
|
|
10870
10861
|
"collapsible",
|
|
10871
10862
|
"open",
|
|
10872
10863
|
"defaultOpen",
|
|
@@ -10884,7 +10875,6 @@ const GlassPanel = (props)=>{
|
|
|
10884
10875
|
"style"
|
|
10885
10876
|
]);
|
|
10886
10877
|
const contentId = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createUniqueId)();
|
|
10887
|
-
const blur = ()=>local.blur ?? "none";
|
|
10888
10878
|
const size = ()=>local.size ?? "md";
|
|
10889
10879
|
const isControlled = ()=>void 0 !== local.open;
|
|
10890
10880
|
const [internalOpen, setInternalOpen] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(local.defaultOpen ?? true);
|
|
@@ -10894,9 +10884,7 @@ const GlassPanel = (props)=>{
|
|
|
10894
10884
|
if (!isControlled()) setInternalOpen(next);
|
|
10895
10885
|
local.onToggle?.(next);
|
|
10896
10886
|
};
|
|
10897
|
-
const containerClasses = ()=>twMerge("glass-panel", "rounded-xl", "transition-all duration-200 ease-in-out", clsx({
|
|
10898
|
-
"bg-transparent": local.transparent,
|
|
10899
|
-
[BLUR_MAP[blur()]]: !local.transparent && "none" !== blur(),
|
|
10887
|
+
const containerClasses = ()=>twMerge("glass-panel", "rounded-xl", "backdrop-blur-[2px]", "transition-all duration-200 ease-in-out", clsx({
|
|
10900
10888
|
"border-l-2": !!local.accent,
|
|
10901
10889
|
[ACCENT_BORDER[local.accent ?? ""]]: !!local.accent
|
|
10902
10890
|
}), local.class, local.className);
|
|
@@ -10905,7 +10893,7 @@ const GlassPanel = (props)=>{
|
|
|
10905
10893
|
...local.style || {}
|
|
10906
10894
|
};
|
|
10907
10895
|
if (!local.transparent) {
|
|
10908
|
-
base.background = "color-mix(in srgb, var(--color-base-200)
|
|
10896
|
+
base.background = "color-mix(in srgb, var(--color-base-200) 80%, transparent)";
|
|
10909
10897
|
base.border = "1px solid color-mix(in srgb, var(--color-base-content) 8%, transparent)";
|
|
10910
10898
|
}
|
|
10911
10899
|
if (local.glow) base["box-shadow"] = "inset 0 1px 0 color-mix(in srgb, var(--color-base-content) 5%, transparent)";
|