@pathscale/ui 0.0.152 → 0.0.153

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -21
  2. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -10512,7 +10512,7 @@ const FloatingDock_DockItem = (props)=>{
10512
10512
  "function" == typeof _ref$2 ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$2, _el$3) : iconRef = _el$3;
10513
10513
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, ()=>props.item.icon);
10514
10514
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
10515
- var _v$5 = twMerge("relative flex items-center justify-center rounded-full bg-base-200 transition-[opacity,transform] duration-150 hover:opacity-100 active:scale-90 active:duration-75", "opacity-80", cfg.itemClass), _v$6 = `${cfg.baseSize}px`, _v$7 = `${cfg.baseSize}px`;
10515
+ var _v$5 = twMerge("relative flex items-center justify-center rounded-full bg-base-200 transition-opacity duration-150 hover:opacity-100 active:opacity-60", "opacity-80", cfg.itemClass), _v$6 = `${cfg.baseSize}px`, _v$7 = `${cfg.baseSize}px`;
10516
10516
  _v$5 !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, _p$.e = _v$5);
10517
10517
  _v$6 !== _p$.t && (null != (_p$.t = _v$6) ? _el$.style.setProperty("width", _v$6) : _el$.style.removeProperty("width"));
10518
10518
  _v$7 !== _p$.a && (null != (_p$.a = _v$7) ? _el$.style.setProperty("height", _v$7) : _el$.style.removeProperty("height"));
@@ -10570,22 +10570,6 @@ const FloatingDockDesktop = (props)=>{
10570
10570
  let loopRunning = false;
10571
10571
  let anchorCenters = [];
10572
10572
  const captureAnchors = ()=>{
10573
- for(let i = 0; i < itemSprings.length; i++){
10574
- const s = itemSprings[i];
10575
- s.sW.snap();
10576
- s.sH.snap();
10577
- s.sIW.snap();
10578
- s.sIH.snap();
10579
- if (s.wrapRef) {
10580
- s.wrapRef.style.width = `${s.sW.get()}px`;
10581
- s.wrapRef.style.height = `${s.sH.get()}px`;
10582
- }
10583
- if (s.iconRef) {
10584
- s.iconRef.style.width = `${s.sIW.get()}px`;
10585
- s.iconRef.style.height = `${s.sIH.get()}px`;
10586
- }
10587
- }
10588
- stopLoop();
10589
10573
  anchorCenters = [];
10590
10574
  for(let i = 0; i < itemSprings.length; i++){
10591
10575
  const wrap = itemSprings[i].wrapRef;
@@ -10636,12 +10620,12 @@ const FloatingDockDesktop = (props)=>{
10636
10620
  for(let i = 0; i < itemSprings.length; i++){
10637
10621
  const s = itemSprings[i];
10638
10622
  if (s.wrapRef) {
10639
- s.wrapRef.style.width = `${s.sW.get()}px`;
10640
- s.wrapRef.style.height = `${s.sH.get()}px`;
10623
+ const scale = s.sW.get() / cfg.baseSize;
10624
+ s.wrapRef.style.transform = `scale(${scale})`;
10641
10625
  }
10642
10626
  if (s.iconRef) {
10643
- s.iconRef.style.width = `${s.sIW.get()}px`;
10644
- s.iconRef.style.height = `${s.sIH.get()}px`;
10627
+ const iconScale = s.sIW.get() / cfg.iconSize;
10628
+ s.iconRef.style.transform = `scale(${iconScale})`;
10645
10629
  }
10646
10630
  }
10647
10631
  if (allSettled) return void stopLoop();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathscale/ui",
3
- "version": "0.0.152",
3
+ "version": "0.0.153",
4
4
  "author": "pathscale",
5
5
  "repository": {
6
6
  "type": "git",
@@ -57,6 +57,7 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@iconify/tailwind4": "^1.2.1",
60
+ "@pathscale/ui": "0.0.152",
60
61
  "rsbuild-plugin-iconify": "^1.0.3"
61
62
  },
62
63
  "peerDependencies": {