@pathscale/ui 0.0.137 → 0.0.138

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.
@@ -0,0 +1,18 @@
1
+ import { type JSX } from "solid-js";
2
+ import type { IComponentBaseProps } from "../types";
3
+ export type FloatingDockItem = {
4
+ title: string;
5
+ icon: JSX.Element;
6
+ href: string;
7
+ };
8
+ export type FloatingDockProps = {
9
+ items: FloatingDockItem[];
10
+ /** Classes applied to the desktop dock container. */
11
+ desktopClass?: string;
12
+ /** Classes applied to the mobile dock container. */
13
+ mobileClass?: string;
14
+ /** Icon shown in the mobile toggle button (defaults to ☰). */
15
+ mobileToggleIcon?: JSX.Element;
16
+ } & IComponentBaseProps;
17
+ declare const FloatingDock: (rawProps: FloatingDockProps) => JSX.Element;
18
+ export default FloatingDock;
@@ -0,0 +1,2 @@
1
+ export { default } from "./FloatingDock";
2
+ export type { FloatingDockProps, FloatingDockItem } from "./FloatingDock";
package/dist/index.d.ts CHANGED
@@ -30,6 +30,8 @@ export { default as Dock } from "./components/dock";
30
30
  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
+ export { default as FloatingDock } from "./components/floating-dock";
34
+ export type { FloatingDockProps, FloatingDockItem } from "./components/floating-dock";
33
35
  export { default as Flex } from "./components/flex";
34
36
  export { default as Footer } from "./components/footer";
35
37
  export type { FooterProps, FooterTitleProps } from "./components/footer";
package/dist/index.js CHANGED
@@ -9701,6 +9701,217 @@ 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">');
9705
+ function createSpring(initial, opts = {}) {
9706
+ const mass = opts.mass ?? 1;
9707
+ const stiffness = opts.stiffness ?? 150;
9708
+ const damping = opts.damping ?? 12;
9709
+ let current = initial;
9710
+ let velocity = 0;
9711
+ let target = initial;
9712
+ return {
9713
+ set (v) {
9714
+ target = v;
9715
+ },
9716
+ get () {
9717
+ return current;
9718
+ },
9719
+ step (dt) {
9720
+ const force = -stiffness * (current - target);
9721
+ const dampForce = -damping * velocity;
9722
+ const accel = (force + dampForce) / mass;
9723
+ velocity += accel * dt;
9724
+ current += velocity * dt;
9725
+ },
9726
+ settled () {
9727
+ return Math.abs(current - target) < 0.5 && Math.abs(velocity) < 0.5;
9728
+ }
9729
+ };
9730
+ }
9731
+ function mapRange(value, inMin, inMax, outMin, outMax) {
9732
+ const t = Math.max(0, Math.min(1, (value - inMin) / (inMax - inMin)));
9733
+ return outMin + t * (outMax - outMin);
9734
+ }
9735
+ const SPRING_OPTS = {
9736
+ mass: 0.1,
9737
+ stiffness: 150,
9738
+ damping: 12
9739
+ };
9740
+ const IconContainer = (props)=>{
9741
+ let ref;
9742
+ let iconRef;
9743
+ 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);
9748
+ let rafId;
9749
+ let prevTime = 0;
9750
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onMount)(()=>{
9751
+ const tick = (time)=>{
9752
+ const dt = prevTime ? Math.min((time - prevTime) / 1000, 0.05) : 1 / 60;
9753
+ 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);
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`;
9773
+ }
9774
+ if (iconRef) {
9775
+ iconRef.style.width = `${sIconW.get()}px`;
9776
+ iconRef.style.height = `${sIconH.get()}px`;
9777
+ }
9778
+ rafId = requestAnimationFrame(tick);
9779
+ };
9780
+ rafId = requestAnimationFrame(tick);
9781
+ });
9782
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
9783
+ if (void 0 !== rafId) cancelAnimationFrame(rafId);
9784
+ });
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, {
9794
+ get when () {
9795
+ return hovered();
9796
+ },
9797
+ 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;
9801
+ }
9802
+ }), _el$4);
9803
+ 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));
9809
+ return _el$;
9810
+ })();
9811
+ };
9812
+ const FloatingDockDesktop = (props)=>{
9813
+ const [mouseX, setMouseX] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(1 / 0);
9814
+ 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, {
9819
+ get each () {
9820
+ return props.items;
9821
+ },
9822
+ children: (item)=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(IconContainer, {
9823
+ item: item,
9824
+ mouseX: mouseX
9825
+ })
9826
+ }));
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;
9829
+ })();
9830
+ };
9831
+ const FloatingDockMobile = (props)=>{
9832
+ const [open, setOpen] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(false);
9833
+ 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, {
9836
+ get when () {
9837
+ return open();
9838
+ },
9839
+ 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, {
9842
+ get each () {
9843
+ return props.items;
9844
+ },
9845
+ 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;
9859
+ })()
9860
+ }));
9861
+ return _el$7;
9862
+ }
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;
9868
+ })();
9869
+ };
9870
+ const FloatingDock_FloatingDock = (rawProps)=>{
9871
+ const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(rawProps, [
9872
+ "items",
9873
+ "desktopClass",
9874
+ "mobileClass",
9875
+ "mobileToggleIcon",
9876
+ "class",
9877
+ "className",
9878
+ "dataTheme",
9879
+ "style"
9880
+ ]);
9881
+ 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)({
9884
+ get ["data-theme"] () {
9885
+ return local.dataTheme;
9886
+ }
9887
+ }, 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;
9891
+ },
9892
+ get ["class"] () {
9893
+ return twMerge(local.class, local.className, local.desktopClass);
9894
+ }
9895
+ }), 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;
9902
+ },
9903
+ get toggleIcon () {
9904
+ return local.mobileToggleIcon;
9905
+ }
9906
+ }), null);
9907
+ return _el$11;
9908
+ })();
9909
+ };
9910
+ const FloatingDock = FloatingDock_FloatingDock;
9911
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
9912
+ "mousemove",
9913
+ "click"
9914
+ ]);
9704
9915
  var FooterTitle_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<h6>");
9705
9916
  const FooterTitle = (props)=>{
9706
9917
  const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
@@ -11311,7 +11522,7 @@ const FirefoxPWABanner = (props)=>{
11311
11522
  }
11312
11523
  });
11313
11524
  };
11314
- var CookieConsent_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<p id=cookie-consent-message class="text-sm text-base-content flex-1">'), CookieConsent_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<button type=button class="text-sm underline hover:no-underline text-base-content/70 hover:text-base-content transition-colors">'), CookieConsent_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div role=dialog aria-modal=false aria-labelledby=cookie-consent-message><div class="container mx-auto px-4 py-4 max-w-7xl">'), CookieConsent_tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<h2 id=cookie-manage-title class="text-lg font-semibold">'), CookieConsent_tmpl$5 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<label class="flex items-center justify-between p-3 rounded bg-base-200/50 cursor-not-allowed"><span class="text-sm font-medium text-base-content/70"></span><input type=checkbox checked disabled class="toggle toggle-sm toggle-primary">'), _tmpl$6 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<label class="flex items-center justify-between p-3 rounded hover:bg-base-200/50 cursor-pointer transition-colors"><span class="text-sm font-medium"></span><input type=checkbox class="toggle toggle-sm toggle-primary">'), _tmpl$7 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div role=dialog aria-modal=true aria-labelledby=cookie-manage-title class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm animate-fade-in"><div class="bg-base-100 rounded-lg shadow-xl w-full max-w-md p-6 animate-scale-in">');
11525
+ var CookieConsent_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<p id=cookie-consent-message class="text-sm text-base-content flex-1">'), CookieConsent_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<button type=button class="text-sm underline hover:no-underline text-base-content/70 hover:text-base-content transition-colors">'), CookieConsent_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div role=dialog aria-modal=false aria-labelledby=cookie-consent-message><div class="container mx-auto px-4 py-4 max-w-7xl">'), CookieConsent_tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<h2 id=cookie-manage-title class="text-lg font-semibold">'), CookieConsent_tmpl$5 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<label class="flex items-center justify-between p-3 rounded bg-base-200/50 cursor-not-allowed"><span class="text-sm font-medium text-base-content/70"></span><input type=checkbox checked disabled class="toggle toggle-sm toggle-primary">'), CookieConsent_tmpl$6 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<label class="flex items-center justify-between p-3 rounded hover:bg-base-200/50 cursor-pointer transition-colors"><span class="text-sm font-medium"></span><input type=checkbox class="toggle toggle-sm toggle-primary">'), CookieConsent_tmpl$7 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div role=dialog aria-modal=true aria-labelledby=cookie-manage-title class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm animate-fade-in"><div class="bg-base-100 rounded-lg shadow-xl w-full max-w-md p-6 animate-scale-in">');
11315
11526
  const CookieConsent_defaultTexts = {
11316
11527
  message: "We use cookies to improve your experience. You can accept all cookies or manage your preferences.",
11317
11528
  acceptAll: "Accept all",
@@ -11474,7 +11685,7 @@ const CookieConsent = (props)=>{
11474
11685
  return showManage();
11475
11686
  },
11476
11687
  get children () {
11477
- var _el$5 = _tmpl$7(), _el$6 = _el$5.firstChild;
11688
+ var _el$5 = CookieConsent_tmpl$7(), _el$6 = _el$5.firstChild;
11478
11689
  _el$5.$$click = handleManageClose;
11479
11690
  _el$6.$$click = (e)=>e.stopPropagation();
11480
11691
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$6, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(flex_Flex, {
@@ -11513,14 +11724,14 @@ const CookieConsent = (props)=>{
11513
11724
  return _el$8;
11514
11725
  })(),
11515
11726
  (()=>{
11516
- var _el$0 = _tmpl$6(), _el$1 = _el$0.firstChild, _el$10 = _el$1.nextSibling;
11727
+ var _el$0 = CookieConsent_tmpl$6(), _el$1 = _el$0.firstChild, _el$10 = _el$1.nextSibling;
11517
11728
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$1, ()=>texts().analytics);
11518
11729
  _el$10.addEventListener("change", (e)=>setAnalyticsEnabled(e.currentTarget.checked));
11519
11730
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>_el$10.checked = analyticsEnabled());
11520
11731
  return _el$0;
11521
11732
  })(),
11522
11733
  (()=>{
11523
- var _el$11 = _tmpl$6(), _el$12 = _el$11.firstChild, _el$13 = _el$12.nextSibling;
11734
+ var _el$11 = CookieConsent_tmpl$6(), _el$12 = _el$11.firstChild, _el$13 = _el$12.nextSibling;
11524
11735
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$12, ()=>texts().marketing);
11525
11736
  _el$13.addEventListener("change", (e)=>setMarketingEnabled(e.currentTarget.checked));
11526
11737
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>_el$13.checked = marketingEnabled());
@@ -13149,7 +13360,7 @@ const navbar_Navbar = Object.assign(Navbar, {
13149
13360
  Row: navbar_NavbarRow
13150
13361
  });
13151
13362
  var NoiseBackground_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><div class="absolute inset-0"></div><div class="absolute inset-0"></div><div class="absolute inset-0"></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"></div><div>');
13152
- function createSpring(initial, stiffness = 100, damping = 30) {
13363
+ function NoiseBackground_createSpring(initial, stiffness = 100, damping = 30) {
13153
13364
  let current = initial;
13154
13365
  let velocity = 0;
13155
13366
  let target = initial;
@@ -13196,8 +13407,8 @@ const NoiseBackground = (rawProps)=>{
13196
13407
  const speed = ()=>local.speed ?? 0.1;
13197
13408
  const animating = ()=>local.animating ?? true;
13198
13409
  const borderRadius = ()=>local.borderRadius ?? "var(--radius-box, 1rem)";
13199
- const springX = createSpring(0);
13200
- const springY = createSpring(0);
13410
+ const springX = NoiseBackground_createSpring(0);
13411
+ const springY = NoiseBackground_createSpring(0);
13201
13412
  let vx = 0;
13202
13413
  let vy = 0;
13203
13414
  let lastDirectionChange = 0;
@@ -17824,4 +18035,4 @@ const createRouteTransitionResolver = (options)=>{
17824
18035
  return fallback ?? noMotion;
17825
18036
  };
17826
18037
  };
17827
- 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, 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 };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathscale/ui",
3
- "version": "0.0.137",
3
+ "version": "0.0.138",
4
4
  "author": "pathscale",
5
5
  "repository": {
6
6
  "type": "git",