@pathscale/ui 0.0.138 → 0.0.140

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,18 +1,60 @@
1
1
  import { type JSX } from "solid-js";
2
2
  import type { IComponentBaseProps } from "../types";
3
3
  export type FloatingDockItem = {
4
+ /** Tooltip label. */
4
5
  title: string;
6
+ /** Icon element rendered inside the dock button. */
5
7
  icon: JSX.Element;
6
- href: string;
8
+ /** Navigation URL. Ignored when `onClick` is provided. */
9
+ href?: string;
10
+ /** Click handler. When provided, renders a `<button>` instead of `<a>`. */
11
+ onClick?: (e: MouseEvent) => void;
7
12
  };
13
+ export type FloatingDockDirection = "top" | "bottom" | "left" | "right";
8
14
  export type FloatingDockProps = {
9
15
  items: FloatingDockItem[];
16
+ /** Direction the dock is oriented. @default "horizontal" */
17
+ orientation?: "horizontal" | "vertical";
18
+ /** Where the tooltip appears relative to each icon. @default "top" */
19
+ tooltipDirection?: FloatingDockDirection;
20
+ /** Where the mobile popup opens. @default "top" */
21
+ mobilePopupDirection?: FloatingDockDirection;
22
+ /** Gap between items in px. @default 16 */
23
+ gap?: number;
24
+ /** Icon container resting size in px. @default 40 */
25
+ baseSize?: number;
26
+ /** Icon container size when hovered/nearest to cursor in px. @default 80 */
27
+ hoverSize?: number;
28
+ /** Icon resting size in px. @default 20 */
29
+ iconSize?: number;
30
+ /** Icon size when hovered/nearest in px. @default 40 */
31
+ hoverIconSize?: number;
32
+ /** Distance in px within which magnification activates. @default 150 */
33
+ magnifyRange?: number;
34
+ /** Enable the spring magnification effect. @default true */
35
+ magnify?: boolean;
36
+ /** Show desktop dock. @default true */
37
+ showDesktop?: boolean;
38
+ /** Show mobile toggle dock. @default true */
39
+ showMobile?: boolean;
40
+ /** Show the dock container background. @default true */
41
+ showContainer?: boolean;
10
42
  /** Classes applied to the desktop dock container. */
11
43
  desktopClass?: string;
12
44
  /** Classes applied to the mobile dock container. */
13
45
  mobileClass?: string;
14
- /** Icon shown in the mobile toggle button (defaults to ☰). */
46
+ /** Classes applied to each item wrapper. */
47
+ itemClass?: string;
48
+ /** Classes applied to the tooltip. */
49
+ tooltipClass?: string;
50
+ /** Icon shown in the mobile toggle button. */
15
51
  mobileToggleIcon?: JSX.Element;
52
+ /** Spring mass. @default 0.1 */
53
+ springMass?: number;
54
+ /** Spring stiffness. @default 150 */
55
+ springStiffness?: number;
56
+ /** Spring damping. @default 12 */
57
+ springDamping?: number;
16
58
  } & IComponentBaseProps;
17
59
  declare const FloatingDock: (rawProps: FloatingDockProps) => JSX.Element;
18
60
  export default FloatingDock;
@@ -1,2 +1,2 @@
1
1
  export { default } from "./FloatingDock";
2
- export type { FloatingDockProps, FloatingDockItem } from "./FloatingDock";
2
+ export type { FloatingDockProps, FloatingDockItem, FloatingDockDirection, } from "./FloatingDock";
package/dist/index.d.ts CHANGED
@@ -31,7 +31,7 @@ export { default as Drawer, type DrawerProps } from "./components/drawer";
31
31
  export { default as Dropdown } from "./components/dropdown";
32
32
  export { default as FileInput } from "./components/fileinput";
33
33
  export { default as FloatingDock } from "./components/floating-dock";
34
- export type { FloatingDockProps, FloatingDockItem } from "./components/floating-dock";
34
+ export type { FloatingDockProps, FloatingDockItem, FloatingDockDirection } from "./components/floating-dock";
35
35
  export { default as Flex } from "./components/flex";
36
36
  export { default as Footer } from "./components/footer";
37
37
  export type { FooterProps, FooterTitleProps } from "./components/footer";
package/dist/index.js CHANGED
@@ -9409,7 +9409,7 @@ const DropdownDetails = Object.assign(Details, {
9409
9409
  Toggle: DropdownToggle_Summary
9410
9410
  });
9411
9411
  var DropdownItem_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<li role=menuitem>"), DropdownItem_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<a>"), DropdownItem_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<button>");
9412
- const DropdownItem = (props)=>{
9412
+ const DropdownItem_DropdownItem = (props)=>{
9413
9413
  const dropdownContext = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.useContext)(DropdownContext);
9414
9414
  const defaultProps = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.mergeProps)({
9415
9415
  closeOnClick: true
@@ -9451,7 +9451,7 @@ const DropdownItem = (props)=>{
9451
9451
  return _el$;
9452
9452
  })();
9453
9453
  };
9454
- const dropdown_DropdownItem = DropdownItem;
9454
+ const DropdownItem = DropdownItem_DropdownItem;
9455
9455
  var DropdownMenu_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<ul>");
9456
9456
  const DropdownMenu = (props)=>{
9457
9457
  const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
@@ -9653,7 +9653,7 @@ const dropdown_Dropdown = Object.assign(Dropdown, {
9653
9653
  Details: DropdownDetails,
9654
9654
  Toggle: dropdown_DropdownToggle,
9655
9655
  Menu: dropdown_DropdownMenu,
9656
- Item: dropdown_DropdownItem
9656
+ Item: DropdownItem
9657
9657
  });
9658
9658
  const dropdown = dropdown_Dropdown;
9659
9659
  var FileInput_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<input>");
@@ -9701,7 +9701,7 @@ const FileInput_FileInput = (props)=>{
9701
9701
  })();
9702
9702
  };
9703
9703
  const FileInput = FileInput_FileInput;
9704
- var FloatingDock_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="absolute -top-8 left-1/2 w-fit -translate-x-1/2 rounded-md border border-base-300 bg-base-100 px-2 py-0.5 text-xs whitespace-pre text-base-content animate-fade-in">'), FloatingDock_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<a><div class="relative flex aspect-square items-center justify-center rounded-full bg-base-200"><div class="flex items-center justify-center">'), FloatingDock_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>"), FloatingDock_tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="absolute inset-x-0 bottom-full mb-2 flex flex-col gap-2">'), FloatingDock_tmpl$5 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><button class="flex h-10 w-10 items-center justify-center rounded-full bg-base-200">'), _tmpl$6 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class=animate-fade-in><a class="flex h-10 w-10 items-center justify-center rounded-full bg-base-100"><div class="h-4 w-4">'), _tmpl$7 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<svg xmlns=http://www.w3.org/2000/svg class="h-5 w-5 text-base-content/60"viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M4 6h16"></path><path d="M4 12h16"></path><path d="M4 18h16">');
9704
+ var FloatingDock_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>"), FloatingDock_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><div class="flex items-center justify-center shrink-0">'), FloatingDock_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<button type=button class="appearance-none bg-transparent border-0 p-0 cursor-pointer">'), FloatingDock_tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<a>"), FloatingDock_tmpl$5 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><button type=button class="flex items-center justify-center rounded-full bg-base-200 cursor-pointer border-0 p-0">'), _tmpl$6 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<button type=button class="flex items-center justify-center rounded-full bg-base-100 cursor-pointer border-0 p-0">'), _tmpl$7 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div class=animate-fade-in>"), _tmpl$8 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<a class="flex items-center justify-center rounded-full bg-base-100">'), _tmpl$9 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="flex items-center justify-center rounded-full bg-base-100">'), _tmpl$0 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<svg xmlns=http://www.w3.org/2000/svg class="h-5 w-5 text-base-content/60"viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M4 6h16"></path><path d="M4 12h16"></path><path d="M4 18h16">');
9705
9705
  function createSpring(initial, opts = {}) {
9706
9706
  const mass = opts.mass ?? 1;
9707
9707
  const stiffness = opts.stiffness ?? 150;
@@ -9718,13 +9718,9 @@ function createSpring(initial, opts = {}) {
9718
9718
  },
9719
9719
  step (dt) {
9720
9720
  const force = -stiffness * (current - target);
9721
- const dampForce = -damping * velocity;
9722
- const accel = (force + dampForce) / mass;
9721
+ const accel = (force - damping * velocity) / mass;
9723
9722
  velocity += accel * dt;
9724
9723
  current += velocity * dt;
9725
- },
9726
- settled () {
9727
- return Math.abs(current - target) < 0.5 && Math.abs(velocity) < 0.5;
9728
9724
  }
9729
9725
  };
9730
9726
  }
@@ -9732,48 +9728,54 @@ function mapRange(value, inMin, inMax, outMin, outMax) {
9732
9728
  const t = Math.max(0, Math.min(1, (value - inMin) / (inMax - inMin)));
9733
9729
  return outMin + t * (outMax - outMin);
9734
9730
  }
9735
- const SPRING_OPTS = {
9736
- mass: 0.1,
9737
- stiffness: 150,
9738
- damping: 12
9731
+ const TOOLTIP_POS = {
9732
+ top: "absolute -top-8 left-1/2 -translate-x-1/2",
9733
+ bottom: "absolute -bottom-8 left-1/2 -translate-x-1/2",
9734
+ left: "absolute top-1/2 -translate-y-1/2 right-full mr-2",
9735
+ right: "absolute top-1/2 -translate-y-1/2 left-full ml-2"
9739
9736
  };
9740
- const IconContainer = (props)=>{
9741
- let ref;
9737
+ const FloatingDock_DockItem = (props)=>{
9738
+ let wrapRef;
9742
9739
  let iconRef;
9743
9740
  const [hovered, setHovered] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(false);
9744
- const sWidth = createSpring(40, SPRING_OPTS);
9745
- const sHeight = createSpring(40, SPRING_OPTS);
9746
- const sIconW = createSpring(20, SPRING_OPTS);
9747
- const sIconH = createSpring(20, SPRING_OPTS);
9741
+ const cfg = props.cfg;
9742
+ const sW = createSpring(cfg.baseSize, cfg.springOpts);
9743
+ const sH = createSpring(cfg.baseSize, cfg.springOpts);
9744
+ const sIW = createSpring(cfg.iconSize, cfg.springOpts);
9745
+ const sIH = createSpring(cfg.iconSize, cfg.springOpts);
9748
9746
  let rafId;
9749
9747
  let prevTime = 0;
9750
9748
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onMount)(()=>{
9749
+ if (!cfg.magnify) return;
9751
9750
  const tick = (time)=>{
9752
9751
  const dt = prevTime ? Math.min((time - prevTime) / 1000, 0.05) : 1 / 60;
9753
9752
  prevTime = time;
9754
- const mx = props.mouseX();
9755
- if (ref) {
9756
- const bounds = ref.getBoundingClientRect();
9757
- const center = bounds.x + bounds.width / 2;
9758
- const dist = mx - center;
9759
- const targetSize = mx === 1 / 0 ? 40 : mapRange(Math.abs(dist), 0, 150, 80, 40);
9760
- const targetIcon = mx === 1 / 0 ? 20 : mapRange(Math.abs(dist), 0, 150, 40, 20);
9761
- sWidth.set(targetSize);
9762
- sHeight.set(targetSize);
9763
- sIconW.set(targetIcon);
9764
- sIconH.set(targetIcon);
9753
+ const mp = props.mousePos();
9754
+ if (wrapRef) {
9755
+ const b = wrapRef.getBoundingClientRect();
9756
+ const isH = "horizontal" === cfg.orientation;
9757
+ const center = isH ? b.x + b.width / 2 : b.y + b.height / 2;
9758
+ const dist = Math.abs(mp - center);
9759
+ const ts = mp === 1 / 0 ? cfg.baseSize : mapRange(dist, 0, cfg.magnifyRange, cfg.hoverSize, cfg.baseSize);
9760
+ const ti = mp === 1 / 0 ? cfg.iconSize : mapRange(dist, 0, cfg.magnifyRange, cfg.hoverIconSize, cfg.iconSize);
9761
+ sW.set(ts);
9762
+ sH.set(ts);
9763
+ sIW.set(ti);
9764
+ sIH.set(ti);
9765
9765
  }
9766
- sWidth.step(dt);
9767
- sHeight.step(dt);
9768
- sIconW.step(dt);
9769
- sIconH.step(dt);
9770
- if (ref) {
9771
- ref.style.width = `${sWidth.get()}px`;
9772
- ref.style.height = `${sHeight.get()}px`;
9766
+ sW.step(dt);
9767
+ sH.step(dt);
9768
+ sIW.step(dt);
9769
+ sIH.step(dt);
9770
+ if (wrapRef) {
9771
+ const w = sW.get();
9772
+ const h = sH.get();
9773
+ wrapRef.style.width = `${w}px`;
9774
+ wrapRef.style.height = `${h}px`;
9773
9775
  }
9774
9776
  if (iconRef) {
9775
- iconRef.style.width = `${sIconW.get()}px`;
9776
- iconRef.style.height = `${sIconH.get()}px`;
9777
+ iconRef.style.width = `${sIW.get()}px`;
9778
+ iconRef.style.height = `${sIH.get()}px`;
9777
9779
  }
9778
9780
  rafId = requestAnimationFrame(tick);
9779
9781
  };
@@ -9782,135 +9784,335 @@ const IconContainer = (props)=>{
9782
9784
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
9783
9785
  if (void 0 !== rafId) cancelAnimationFrame(rafId);
9784
9786
  });
9785
- return (()=>{
9786
- var _el$ = FloatingDock_tmpl$2(), _el$2 = _el$.firstChild, _el$4 = _el$2.firstChild;
9787
- _el$2.addEventListener("mouseleave", ()=>setHovered(false));
9788
- _el$2.addEventListener("mouseenter", ()=>setHovered(true));
9789
- var _ref$ = ref;
9790
- "function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$2) : ref = _el$2;
9791
- _el$2.style.setProperty("width", "40px");
9792
- _el$2.style.setProperty("height", "40px");
9793
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
9787
+ const handleClick = (e)=>{
9788
+ if (props.item.onClick) {
9789
+ e.preventDefault();
9790
+ props.item.onClick(e);
9791
+ }
9792
+ };
9793
+ const inner = (()=>{
9794
+ var _el$ = FloatingDock_tmpl$2(), _el$3 = _el$.firstChild;
9795
+ _el$.addEventListener("mouseleave", ()=>setHovered(false));
9796
+ _el$.addEventListener("mouseenter", ()=>setHovered(true));
9797
+ var _ref$ = wrapRef;
9798
+ "function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$) : wrapRef = _el$;
9799
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
9794
9800
  get when () {
9795
9801
  return hovered();
9796
9802
  },
9797
9803
  get children () {
9798
- var _el$3 = FloatingDock_tmpl$();
9799
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, ()=>props.item.title);
9800
- return _el$3;
9804
+ var _el$2 = FloatingDock_tmpl$();
9805
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, ()=>props.item.title);
9806
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$2, twMerge(TOOLTIP_POS[cfg.tooltipDir], "w-fit rounded-md border border-base-300 bg-base-100 px-2 py-0.5 text-xs whitespace-pre text-base-content animate-fade-in z-50", cfg.tooltipClass)));
9807
+ return _el$2;
9801
9808
  }
9802
- }), _el$4);
9809
+ }), _el$3);
9803
9810
  var _ref$2 = iconRef;
9804
- "function" == typeof _ref$2 ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$2, _el$4) : iconRef = _el$4;
9805
- _el$4.style.setProperty("width", "20px");
9806
- _el$4.style.setProperty("height", "20px");
9807
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, ()=>props.item.icon);
9808
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$, "href", props.item.href));
9811
+ "function" == typeof _ref$2 ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$2, _el$3) : iconRef = _el$3;
9812
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, ()=>props.item.icon);
9813
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
9814
+ var _v$ = twMerge("relative flex items-center justify-center rounded-full bg-base-200", cfg.itemClass), _v$2 = `${cfg.baseSize}px`, _v$3 = `${cfg.baseSize}px`;
9815
+ _v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, _p$.e = _v$);
9816
+ _v$2 !== _p$.t && (null != (_p$.t = _v$2) ? _el$.style.setProperty("width", _v$2) : _el$.style.removeProperty("width"));
9817
+ _v$3 !== _p$.a && (null != (_p$.a = _v$3) ? _el$.style.setProperty("height", _v$3) : _el$.style.removeProperty("height"));
9818
+ return _p$;
9819
+ }, {
9820
+ e: void 0,
9821
+ t: void 0,
9822
+ a: void 0
9823
+ });
9809
9824
  return _el$;
9810
9825
  })();
9826
+ return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
9827
+ get when () {
9828
+ return props.item.onClick;
9829
+ },
9830
+ get fallback () {
9831
+ return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
9832
+ get when () {
9833
+ return props.item.href;
9834
+ },
9835
+ fallback: inner,
9836
+ get children () {
9837
+ var _el$5 = FloatingDock_tmpl$4();
9838
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$5, inner);
9839
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$5, "href", props.item.href));
9840
+ return _el$5;
9841
+ }
9842
+ });
9843
+ },
9844
+ get children () {
9845
+ var _el$4 = FloatingDock_tmpl$3();
9846
+ _el$4.$$click = handleClick;
9847
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, inner);
9848
+ return _el$4;
9849
+ }
9850
+ });
9811
9851
  };
9812
9852
  const FloatingDockDesktop = (props)=>{
9813
- const [mouseX, setMouseX] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(1 / 0);
9853
+ const [mousePos, setMousePos] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(1 / 0);
9854
+ const isH = ()=>"horizontal" === props.cfg.orientation;
9814
9855
  return (()=>{
9815
- var _el$5 = FloatingDock_tmpl$3();
9816
- _el$5.addEventListener("mouseleave", ()=>setMouseX(1 / 0));
9817
- _el$5.$$mousemove = (e)=>setMouseX(e.pageX);
9818
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$5, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
9856
+ var _el$6 = FloatingDock_tmpl$();
9857
+ _el$6.addEventListener("mouseleave", ()=>setMousePos(1 / 0));
9858
+ _el$6.$$mousemove = (e)=>setMousePos(isH() ? e.clientX : e.clientY);
9859
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$6, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
9819
9860
  get each () {
9820
9861
  return props.items;
9821
9862
  },
9822
- children: (item)=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(IconContainer, {
9863
+ children: (item)=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(FloatingDock_DockItem, {
9823
9864
  item: item,
9824
- mouseX: mouseX
9865
+ mousePos: mousePos,
9866
+ get cfg () {
9867
+ return props.cfg;
9868
+ }
9825
9869
  })
9826
9870
  }));
9827
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$5, twMerge("mx-auto hidden h-16 items-end gap-4 rounded-2xl bg-base-100 px-4 pb-3 md:flex", "shadow-[0px_1px_0px_0px_var(--color-base-300)_inset,0px_1px_0px_0px_var(--color-base-100)]", props.class)));
9828
- return _el$5;
9871
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
9872
+ var _v$4 = twMerge("mx-auto", isH() ? "items-end" : "items-center", props.showContainer && "rounded-2xl bg-base-100 shadow-[0px_1px_0px_0px_var(--color-base-300)_inset,0px_1px_0px_0px_var(--color-base-100)]", isH() && props.showContainer && "h-16 px-4 pb-3", !isH() && props.showContainer && "w-16 py-4 pl-3", props.class), _v$5 = {
9873
+ display: "flex",
9874
+ "flex-direction": isH() ? "row" : "column",
9875
+ gap: `${props.cfg.gap}px`,
9876
+ ...!props.showContainer && isH() ? {
9877
+ height: `${props.cfg.baseSize}px`
9878
+ } : {},
9879
+ overflow: "visible"
9880
+ };
9881
+ _v$4 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$6, _p$.e = _v$4);
9882
+ _p$.t = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$6, _v$5, _p$.t);
9883
+ return _p$;
9884
+ }, {
9885
+ e: void 0,
9886
+ t: void 0
9887
+ });
9888
+ return _el$6;
9829
9889
  })();
9830
9890
  };
9891
+ const MOBILE_POPUP = {
9892
+ top: "absolute inset-x-0 bottom-full mb-2 flex flex-col gap-2",
9893
+ bottom: "absolute inset-x-0 top-full mt-2 flex flex-col gap-2",
9894
+ left: "absolute right-full top-0 mr-2 flex flex-col gap-2",
9895
+ right: "absolute left-full top-0 ml-2 flex flex-col gap-2"
9896
+ };
9831
9897
  const FloatingDockMobile = (props)=>{
9832
9898
  const [open, setOpen] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(false);
9899
+ const handleItemClick = (item, e)=>{
9900
+ if (item.onClick) {
9901
+ e.preventDefault();
9902
+ item.onClick(e);
9903
+ }
9904
+ setOpen(false);
9905
+ };
9833
9906
  return (()=>{
9834
- var _el$6 = FloatingDock_tmpl$5(), _el$8 = _el$6.firstChild;
9835
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$6, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
9907
+ var _el$7 = FloatingDock_tmpl$5(), _el$9 = _el$7.firstChild;
9908
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$7, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
9836
9909
  get when () {
9837
9910
  return open();
9838
9911
  },
9839
9912
  get children () {
9840
- var _el$7 = FloatingDock_tmpl$4();
9841
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$7, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
9913
+ var _el$8 = FloatingDock_tmpl$();
9914
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$8, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
9842
9915
  get each () {
9843
9916
  return props.items;
9844
9917
  },
9845
9918
  children: (item, idx)=>(()=>{
9846
- var _el$9 = _tmpl$6(), _el$0 = _el$9.firstChild, _el$1 = _el$0.firstChild;
9847
- _el$9.style.setProperty("animation-fill-mode", "backwards");
9848
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$1, ()=>item.icon);
9849
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
9850
- var _v$ = `${(props.items.length - 1 - idx()) * 0.05}s`, _v$2 = item.href;
9851
- _v$ !== _p$.e && (null != (_p$.e = _v$) ? _el$9.style.setProperty("animation-delay", _v$) : _el$9.style.removeProperty("animation-delay"));
9852
- _v$2 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$0, "href", _p$.t = _v$2);
9853
- return _p$;
9854
- }, {
9855
- e: void 0,
9856
- t: void 0
9857
- });
9858
- return _el$9;
9919
+ var _el$0 = _tmpl$7();
9920
+ _el$0.style.setProperty("animation-fill-mode", "backwards");
9921
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$0, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
9922
+ get when () {
9923
+ return item.onClick;
9924
+ },
9925
+ get fallback () {
9926
+ return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
9927
+ get when () {
9928
+ return item.href;
9929
+ },
9930
+ get fallback () {
9931
+ return (()=>{
9932
+ var _el$11 = _tmpl$9();
9933
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$11, ()=>item.icon);
9934
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
9935
+ var _v$14 = `${props.cfg.baseSize}px`, _v$15 = `${props.cfg.baseSize}px`, _v$16 = item.title;
9936
+ _v$14 !== _p$.e && (null != (_p$.e = _v$14) ? _el$11.style.setProperty("width", _v$14) : _el$11.style.removeProperty("width"));
9937
+ _v$15 !== _p$.t && (null != (_p$.t = _v$15) ? _el$11.style.setProperty("height", _v$15) : _el$11.style.removeProperty("height"));
9938
+ _v$16 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$11, "title", _p$.a = _v$16);
9939
+ return _p$;
9940
+ }, {
9941
+ e: void 0,
9942
+ t: void 0,
9943
+ a: void 0
9944
+ });
9945
+ return _el$11;
9946
+ })();
9947
+ },
9948
+ get children () {
9949
+ var _el$10 = _tmpl$8();
9950
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$10, ()=>item.icon);
9951
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
9952
+ var _v$10 = item.href, _v$11 = `${props.cfg.baseSize}px`, _v$12 = `${props.cfg.baseSize}px`, _v$13 = item.title;
9953
+ _v$10 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$10, "href", _p$.e = _v$10);
9954
+ _v$11 !== _p$.t && (null != (_p$.t = _v$11) ? _el$10.style.setProperty("width", _v$11) : _el$10.style.removeProperty("width"));
9955
+ _v$12 !== _p$.a && (null != (_p$.a = _v$12) ? _el$10.style.setProperty("height", _v$12) : _el$10.style.removeProperty("height"));
9956
+ _v$13 !== _p$.o && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$10, "title", _p$.o = _v$13);
9957
+ return _p$;
9958
+ }, {
9959
+ e: void 0,
9960
+ t: void 0,
9961
+ a: void 0,
9962
+ o: void 0
9963
+ });
9964
+ return _el$10;
9965
+ }
9966
+ });
9967
+ },
9968
+ get children () {
9969
+ var _el$1 = _tmpl$6();
9970
+ _el$1.$$click = (e)=>handleItemClick(item, e);
9971
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$1, ()=>item.icon);
9972
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
9973
+ var _v$9 = `${props.cfg.baseSize}px`, _v$0 = `${props.cfg.baseSize}px`, _v$1 = item.title;
9974
+ _v$9 !== _p$.e && (null != (_p$.e = _v$9) ? _el$1.style.setProperty("width", _v$9) : _el$1.style.removeProperty("width"));
9975
+ _v$0 !== _p$.t && (null != (_p$.t = _v$0) ? _el$1.style.setProperty("height", _v$0) : _el$1.style.removeProperty("height"));
9976
+ _v$1 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$1, "title", _p$.a = _v$1);
9977
+ return _p$;
9978
+ }, {
9979
+ e: void 0,
9980
+ t: void 0,
9981
+ a: void 0
9982
+ });
9983
+ return _el$1;
9984
+ }
9985
+ }));
9986
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_$p)=>(_$p = `${(props.items.length - 1 - idx()) * 0.05}s`, _el$0.style.setProperty("animation-delay", _$p)));
9987
+ return _el$0;
9859
9988
  })()
9860
9989
  }));
9861
- return _el$7;
9990
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$8, MOBILE_POPUP[props.popupDirection]));
9991
+ return _el$8;
9862
9992
  }
9863
- }), _el$8);
9864
- _el$8.$$click = ()=>setOpen(!open());
9865
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$8, ()=>props.toggleIcon ?? _tmpl$7());
9866
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$6, twMerge("relative block md:hidden", props.class)));
9867
- return _el$6;
9993
+ }), _el$9);
9994
+ _el$9.$$click = ()=>setOpen(!open());
9995
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$9, ()=>props.toggleIcon ?? _tmpl$0());
9996
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
9997
+ var _v$6 = twMerge("relative block md:hidden", props.class), _v$7 = `${props.cfg.baseSize}px`, _v$8 = `${props.cfg.baseSize}px`;
9998
+ _v$6 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$7, _p$.e = _v$6);
9999
+ _v$7 !== _p$.t && (null != (_p$.t = _v$7) ? _el$9.style.setProperty("width", _v$7) : _el$9.style.removeProperty("width"));
10000
+ _v$8 !== _p$.a && (null != (_p$.a = _v$8) ? _el$9.style.setProperty("height", _v$8) : _el$9.style.removeProperty("height"));
10001
+ return _p$;
10002
+ }, {
10003
+ e: void 0,
10004
+ t: void 0,
10005
+ a: void 0
10006
+ });
10007
+ return _el$7;
9868
10008
  })();
9869
10009
  };
9870
- const FloatingDock_FloatingDock = (rawProps)=>{
10010
+ const FloatingDock = (rawProps)=>{
9871
10011
  const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(rawProps, [
9872
10012
  "items",
10013
+ "orientation",
10014
+ "tooltipDirection",
10015
+ "mobilePopupDirection",
10016
+ "gap",
10017
+ "baseSize",
10018
+ "hoverSize",
10019
+ "iconSize",
10020
+ "hoverIconSize",
10021
+ "magnifyRange",
10022
+ "magnify",
10023
+ "showDesktop",
10024
+ "showMobile",
10025
+ "showContainer",
9873
10026
  "desktopClass",
9874
10027
  "mobileClass",
10028
+ "itemClass",
10029
+ "tooltipClass",
9875
10030
  "mobileToggleIcon",
10031
+ "springMass",
10032
+ "springStiffness",
10033
+ "springDamping",
9876
10034
  "class",
9877
10035
  "className",
9878
10036
  "dataTheme",
9879
10037
  "style"
9880
10038
  ]);
10039
+ const cfg = ()=>({
10040
+ baseSize: local.baseSize ?? 40,
10041
+ hoverSize: local.hoverSize ?? 80,
10042
+ iconSize: local.iconSize ?? 20,
10043
+ hoverIconSize: local.hoverIconSize ?? 40,
10044
+ magnifyRange: local.magnifyRange ?? 150,
10045
+ magnify: false !== local.magnify,
10046
+ gap: local.gap ?? 16,
10047
+ tooltipDir: local.tooltipDirection ?? "top",
10048
+ orientation: local.orientation ?? "horizontal",
10049
+ itemClass: local.itemClass,
10050
+ tooltipClass: local.tooltipClass,
10051
+ springOpts: {
10052
+ mass: local.springMass ?? 0.1,
10053
+ stiffness: local.springStiffness ?? 150,
10054
+ damping: local.springDamping ?? 12
10055
+ }
10056
+ });
9881
10057
  return (()=>{
9882
- var _el$11 = FloatingDock_tmpl$3();
9883
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$11, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
10058
+ var _el$13 = FloatingDock_tmpl$();
10059
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$13, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
9884
10060
  get ["data-theme"] () {
9885
10061
  return local.dataTheme;
9886
10062
  }
9887
10063
  }, others), false, true);
9888
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$11, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(FloatingDockDesktop, {
9889
- get items () {
9890
- return local.items;
10064
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$13, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
10065
+ get when () {
10066
+ return false !== local.showDesktop;
9891
10067
  },
9892
- get ["class"] () {
9893
- return twMerge(local.class, local.className, local.desktopClass);
10068
+ get children () {
10069
+ return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(FloatingDockDesktop, {
10070
+ get items () {
10071
+ return local.items;
10072
+ },
10073
+ get ["class"] () {
10074
+ return twMerge(local.class, local.className, local.desktopClass);
10075
+ },
10076
+ get cfg () {
10077
+ return cfg();
10078
+ },
10079
+ get showContainer () {
10080
+ return false !== local.showContainer;
10081
+ }
10082
+ });
9894
10083
  }
9895
10084
  }), null);
9896
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$11, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(FloatingDockMobile, {
9897
- get items () {
9898
- return local.items;
9899
- },
9900
- get ["class"] () {
9901
- return local.mobileClass;
10085
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$13, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
10086
+ get when () {
10087
+ return false !== local.showMobile;
9902
10088
  },
9903
- get toggleIcon () {
9904
- return local.mobileToggleIcon;
10089
+ get children () {
10090
+ return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(FloatingDockMobile, {
10091
+ get items () {
10092
+ return local.items;
10093
+ },
10094
+ get ["class"] () {
10095
+ return local.mobileClass;
10096
+ },
10097
+ get toggleIcon () {
10098
+ return local.mobileToggleIcon;
10099
+ },
10100
+ get popupDirection () {
10101
+ return local.mobilePopupDirection ?? "top";
10102
+ },
10103
+ get cfg () {
10104
+ return cfg();
10105
+ }
10106
+ });
9905
10107
  }
9906
10108
  }), null);
9907
- return _el$11;
10109
+ return _el$13;
9908
10110
  })();
9909
10111
  };
9910
- const FloatingDock = FloatingDock_FloatingDock;
10112
+ const floating_dock_FloatingDock = FloatingDock;
9911
10113
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
9912
- "mousemove",
9913
- "click"
10114
+ "click",
10115
+ "mousemove"
9914
10116
  ]);
9915
10117
  var FooterTitle_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<h6>");
9916
10118
  const FooterTitle = (props)=>{
@@ -14837,7 +15039,7 @@ const steps_Steps = Object.assign(Steps, {
14837
15039
  Step: steps_Step
14838
15040
  });
14839
15041
  const steps = steps_Steps;
14840
- var SvgBackground_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><ellipse></svg>", false, true, false), SvgBackground_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle></svg>", false, true, false), SvgBackground_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=0 cy=0 r=100 opacity=0.7></svg>", false, true, false), SvgBackground_tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=400 cy=0 r=120></svg>", false, true, false), SvgBackground_tmpl$5 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=0 cy=400 r=100 opacity=0.7></svg>", false, true, false), SvgBackground_tmpl$6 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=400 cy=400 r=120></svg>", false, true, false), SvgBackground_tmpl$7 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=0 cy=200 r=70 opacity=0.6></svg>", false, true, false), _tmpl$8 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=200 cy=0 r=100></svg>", false, true, false), _tmpl$9 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=400 cy=200 r=100></svg>", false, true, false), _tmpl$0 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=200 cy=400 r=100></svg>", false, true, false), _tmpl$1 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><div><svg viewBox="0 0 400 400"xmlns=http://www.w3.org/2000/svg><rect width=400 height=400></rect></svg></div><canvas></canvas><div class="relative z-10 h-full w-full">'), _tmpl$10 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="absolute inset-0 z-5">');
15042
+ var SvgBackground_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><ellipse></svg>", false, true, false), SvgBackground_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle></svg>", false, true, false), SvgBackground_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=0 cy=0 r=100 opacity=0.7></svg>", false, true, false), SvgBackground_tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=400 cy=0 r=120></svg>", false, true, false), SvgBackground_tmpl$5 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=0 cy=400 r=100 opacity=0.7></svg>", false, true, false), SvgBackground_tmpl$6 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=400 cy=400 r=120></svg>", false, true, false), SvgBackground_tmpl$7 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=0 cy=200 r=70 opacity=0.6></svg>", false, true, false), SvgBackground_tmpl$8 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=200 cy=0 r=100></svg>", false, true, false), SvgBackground_tmpl$9 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=400 cy=200 r=100></svg>", false, true, false), SvgBackground_tmpl$0 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><circle cx=200 cy=400 r=100></svg>", false, true, false), _tmpl$1 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><div><svg viewBox="0 0 400 400"xmlns=http://www.w3.org/2000/svg><rect width=400 height=400></rect></svg></div><canvas></canvas><div class="relative z-10 h-full w-full">'), _tmpl$10 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="absolute inset-0 z-5">');
14841
15043
  function SvgBackground_hexToRgb(hex) {
14842
15044
  hex = hex.replace(/^#/, "");
14843
15045
  const bigint = Number.parseInt(hex, 16);
@@ -15007,17 +15209,17 @@ function SvgBackground(props) {
15007
15209
  return _el$8;
15008
15210
  })(),
15009
15211
  (()=>{
15010
- var _el$9 = _tmpl$8();
15212
+ var _el$9 = SvgBackground_tmpl$8();
15011
15213
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$9, "fill", getIntermediateColor(0.15)));
15012
15214
  return _el$9;
15013
15215
  })(),
15014
15216
  (()=>{
15015
- var _el$0 = _tmpl$9();
15217
+ var _el$0 = SvgBackground_tmpl$9();
15016
15218
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$0, "fill", getIntermediateColor(0.4)));
15017
15219
  return _el$0;
15018
15220
  })(),
15019
15221
  (()=>{
15020
- var _el$1 = _tmpl$0();
15222
+ var _el$1 = SvgBackground_tmpl$0();
15021
15223
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$1, "fill", getIntermediateColor(0.85)));
15022
15224
  return _el$1;
15023
15225
  })()
@@ -15247,12 +15449,12 @@ function Swap(props) {
15247
15449
  const onEl = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>wrapWithElementIfInvalid({
15248
15450
  node: local.onElement,
15249
15451
  wrapper: "div",
15250
- className: "swap-on"
15452
+ className: "swap-on flex h-full w-full items-center justify-center"
15251
15453
  }));
15252
15454
  const offEl = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>wrapWithElementIfInvalid({
15253
15455
  node: local.offElement,
15254
15456
  wrapper: "div",
15255
- className: "swap-off"
15457
+ className: "swap-off flex h-full w-full items-center justify-center"
15256
15458
  }));
15257
15459
  return (()=>{
15258
15460
  var _el$ = Swap_tmpl$(), _el$2 = _el$.firstChild;
@@ -18035,4 +18237,4 @@ const createRouteTransitionResolver = (options)=>{
18035
18237
  return fallback ?? noMotion;
18036
18238
  };
18037
18239
  };
18038
- export { accordion_Accordion as Accordion, alert_Alert as Alert, AlphaSlider, artboard_Artboard as Artboard, avatar as Avatar, background_Background as Background, Badge, bottom_sheet_BottomSheet as BottomSheet, Breadcrumbs, breadcrumbs_BreadcrumbsItem as BreadcrumbsItem, browsermockup_BrowserMockup as BrowserMockup, button_Button as Button, Calendar, 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, colorpicker_ColorInput as ColorInput, colorpicker_ColorPicker as ColorPicker, ColorPickerContext, ColorPickerFlowerSelector, colorpicker_ColorPickerGradientSelector as ColorPickerGradientSelector, ColorPickerWheelSelector, colorpicker_ColorPreview as ColorPreview, colorpicker_ColorSwatches as ColorSwatches, ColorWheel, colorpicker_ColorWheelFlower as ColorWheelFlower, connectionstatus_ConnectionStatus as ConnectionStatus, CookieConsent, CopyButton, countdown_Countdown as Countdown, diff_Diff as Diff, divider as Divider, dock as Dock, Drawer, dropdown as Dropdown, EnhancedTable, FileInput, FirefoxPWABanner, flex_Flex as Flex, FloatingDock, footer_Footer as Footer, form_Form as Form, Grid, hero_Hero as Hero, colorpicker_HueSlider as HueSlider, I18nContext, I18nProvider, icon_Icon as Icon, immersive_landing_ImmersiveLanding as ImmersiveLanding, ImmersiveLandingContext, indicator_Indicator as Indicator, input as Input, join_Join as Join, kbd_Kbd as Kbd, language_switcher_LanguageSwitcher as LanguageSwitcher, LightnessSlider, link_Link as Link, live_chat_LiveChatBubble as LiveChatBubble, LiveChatPanel, loading_Loading as Loading, mask as Mask, menu_Menu as Menu, modal_Modal as Modal, MotionDiv, navbar_Navbar as Navbar, noise_background_NoiseBackground as NoiseBackground, PWAInstallPrompt, 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, colorpicker_SaturationBrightness as SaturationBrightness, select_Select as Select, showcase_ShowcaseBlock as ShowcaseBlock, ShowcaseSection, sidenav_Sidenav as Sidenav, sidenav_SidenavButton as SidenavButton, sidenav_SidenavGroup as SidenavGroup, sidenav_SidenavItem as SidenavItem, sidenav_SidenavLink as SidenavLink, sidenav_SidenavMenu as SidenavMenu, skeleton_Skeleton as Skeleton, Stack, stat_card_StatCard as StatCard, stats_Stats as Stats, status_Status as Status, steps as Steps, streaming_table_StreamingTable as StreamingTable, Summary, SvgBackground, Swap, table_Table as Table, tabs_Tabs as Tabs, textarea_Textarea as Textarea, ThemeColorPicker, Timeline, timeline_TimelineEnd as TimelineEnd, timeline_TimelineItem as TimelineItem, timeline_TimelineMiddle as TimelineMiddle, timeline_TimelineStart as TimelineStart, toast_Toast as Toast, ToastContainer, ToastStack_ToastStack as ToastStack, toggle_Toggle as Toggle, tooltip_Tooltip as Tooltip, windowmockup_WindowMockup as WindowMockup, createHueShiftStore, createI18n, createMotionPresets, createMotionSystem, createPopmotionDriver, createRouteTransitionResolver, createStreamingTableStore, connectionstatus_ConnectionStatus as default, defaultMotionTokens, enablePopmotion, getDefaultHueShiftStore, getMotionDriver, presets_getPreset as getPreset, immediateDriver, mergeMotionTokens, motionDistances, motionDurations, motionEasings, motionPresets, noMotion, prefersReducedMotion, presets_registerPreset as registerPreset, resetHueShift, resolveEase, presets_resolvePreset as resolvePreset, routeTransition, runMotion, setMotionDriver, toastStore, useColorPickerContext, useDesktop, useFormValidation, useI18n, useImmersiveLanding, useImmersiveLandingContext };
18240
+ export { accordion_Accordion as Accordion, alert_Alert as Alert, AlphaSlider, artboard_Artboard as Artboard, avatar as Avatar, background_Background as Background, Badge, bottom_sheet_BottomSheet as BottomSheet, Breadcrumbs, breadcrumbs_BreadcrumbsItem as BreadcrumbsItem, browsermockup_BrowserMockup as BrowserMockup, button_Button as Button, Calendar, 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, colorpicker_ColorInput as ColorInput, colorpicker_ColorPicker as ColorPicker, ColorPickerContext, ColorPickerFlowerSelector, colorpicker_ColorPickerGradientSelector as ColorPickerGradientSelector, ColorPickerWheelSelector, colorpicker_ColorPreview as ColorPreview, colorpicker_ColorSwatches as ColorSwatches, ColorWheel, colorpicker_ColorWheelFlower as ColorWheelFlower, connectionstatus_ConnectionStatus as ConnectionStatus, CookieConsent, CopyButton, countdown_Countdown as Countdown, diff_Diff as Diff, divider as Divider, dock as Dock, Drawer, dropdown as Dropdown, EnhancedTable, FileInput, FirefoxPWABanner, flex_Flex as Flex, floating_dock_FloatingDock as FloatingDock, footer_Footer as Footer, form_Form as Form, Grid, hero_Hero as Hero, colorpicker_HueSlider as HueSlider, I18nContext, I18nProvider, icon_Icon as Icon, immersive_landing_ImmersiveLanding as ImmersiveLanding, ImmersiveLandingContext, indicator_Indicator as Indicator, input as Input, join_Join as Join, kbd_Kbd as Kbd, language_switcher_LanguageSwitcher as LanguageSwitcher, LightnessSlider, link_Link as Link, live_chat_LiveChatBubble as LiveChatBubble, LiveChatPanel, loading_Loading as Loading, mask as Mask, menu_Menu as Menu, modal_Modal as Modal, MotionDiv, navbar_Navbar as Navbar, noise_background_NoiseBackground as NoiseBackground, PWAInstallPrompt, 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, colorpicker_SaturationBrightness as SaturationBrightness, select_Select as Select, showcase_ShowcaseBlock as ShowcaseBlock, ShowcaseSection, sidenav_Sidenav as Sidenav, sidenav_SidenavButton as SidenavButton, sidenav_SidenavGroup as SidenavGroup, sidenav_SidenavItem as SidenavItem, sidenav_SidenavLink as SidenavLink, sidenav_SidenavMenu as SidenavMenu, skeleton_Skeleton as Skeleton, Stack, stat_card_StatCard as StatCard, stats_Stats as Stats, status_Status as Status, steps as Steps, streaming_table_StreamingTable as StreamingTable, Summary, SvgBackground, Swap, table_Table as Table, tabs_Tabs as Tabs, textarea_Textarea as Textarea, ThemeColorPicker, Timeline, timeline_TimelineEnd as TimelineEnd, timeline_TimelineItem as TimelineItem, timeline_TimelineMiddle as TimelineMiddle, timeline_TimelineStart as TimelineStart, toast_Toast as Toast, ToastContainer, ToastStack_ToastStack as ToastStack, toggle_Toggle as Toggle, tooltip_Tooltip as Tooltip, windowmockup_WindowMockup as WindowMockup, createHueShiftStore, createI18n, createMotionPresets, createMotionSystem, createPopmotionDriver, createRouteTransitionResolver, createStreamingTableStore, connectionstatus_ConnectionStatus as default, defaultMotionTokens, enablePopmotion, getDefaultHueShiftStore, getMotionDriver, presets_getPreset as getPreset, immediateDriver, mergeMotionTokens, motionDistances, motionDurations, motionEasings, motionPresets, noMotion, prefersReducedMotion, presets_registerPreset as registerPreset, resetHueShift, resolveEase, presets_resolvePreset as resolvePreset, routeTransition, runMotion, setMotionDriver, toastStore, useColorPickerContext, useDesktop, useFormValidation, useI18n, useImmersiveLanding, useImmersiveLandingContext };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathscale/ui",
3
- "version": "0.0.138",
3
+ "version": "0.0.140",
4
4
  "author": "pathscale",
5
5
  "repository": {
6
6
  "type": "git",