@luna-park/plugin-motion 1.2.0 → 1.3.0

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.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.motion-card[data-v-0dfc3339]{gap:var(--length-xxs);background:var(--color-background-dark);padding:var(--length-xs);border-radius:var(--length-radius-s);flex-direction:column;display:flex}.motion-card .header[data-v-0dfc3339]{font-size:var(--font-size-xs);color:var(--color-content-lite);align-items:center;gap:var(--length-xxs);display:flex}.motion-card .header .title[data-v-0dfc3339]{align-items:center;gap:var(--length-xxs);flex:1;display:flex}.motion-card .header .title .icon[data-v-0dfc3339]{font-size:var(--font-icon-xxs);color:var(--color-content-liter)}.motion-card .header .title .hint[data-v-0dfc3339]{color:var(--color-content-litest)}.motion-panel[data-v-bd5f3bea]{flex-direction:column;display:flex}.motion-panel .cards[data-v-bd5f3bea]{margin:var(--length-xs);gap:var(--length-xs);flex-direction:column;display:flex}.motion-panel .option[data-v-bd5f3bea]{align-items:center;gap:var(--length-xs);display:flex}.motion-panel .option .label[data-v-bd5f3bea]{width:48px;font-size:var(--font-size-xs);color:var(--color-content-liter)}.motion-panel .option .input[data-v-bd5f3bea]{flex:1}.motion-panel .curve[data-v-bd5f3bea]{width:16px;height:16px}.motion-panel .curve polyline[data-v-bd5f3bea]{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s as ee, t as te } from "./runtime-_rbH5H1J.js";
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.motion-card[data-v-0dfc3339]{gap:var(--length-xxs);background:var(--color-background-dark);padding:var(--length-xs);border-radius:var(--length-radius-s);flex-direction:column;display:flex}.motion-card .header[data-v-0dfc3339]{font-size:var(--font-size-xs);color:var(--color-content-lite);align-items:center;gap:var(--length-xxs);display:flex}.motion-card .header .title[data-v-0dfc3339]{align-items:center;gap:var(--length-xxs);flex:1;display:flex}.motion-card .header .title .icon[data-v-0dfc3339]{font-size:var(--font-icon-xxs);color:var(--color-content-liter)}.motion-card .header .title .hint[data-v-0dfc3339]{color:var(--color-content-litest)}.motion-panel[data-v-7f091a1a]{flex-direction:column;display:flex}.motion-panel .cards[data-v-7f091a1a]{margin:var(--length-xs);gap:var(--length-xs);flex-direction:column;display:flex}.motion-panel .option[data-v-7f091a1a]{align-items:center;gap:var(--length-xs);display:flex}.motion-panel .option .label[data-v-7f091a1a]{width:48px;font-size:var(--font-size-xs);color:var(--color-content-liter)}.motion-panel .option .input[data-v-7f091a1a]{flex:1}.motion-panel .curve[data-v-7f091a1a]{width:16px;height:16px}.motion-panel .curve polyline[data-v-7f091a1a]{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s as ee, t as te } from "./runtime-BDFfjVth.js";
3
3
  import { Fragment as ne, computed as re, createBlock as ie, createCommentVNode as ae, createElementBlock as oe, createElementVNode as se, createSlots as ce, createTextVNode as le, createVNode as ue, defineComponent as de, markRaw as fe, openBlock as pe, ref as me, renderList as he, renderSlot as ge, toDisplayString as _e, unref as s, watch as ve, withCtx as ye } from "vue";
4
4
  import { LIcon as be, LInput as xe, LSegmented as Se } from "@luna-park/design";
5
5
  //#region \0rolldown/runtime.js
@@ -3680,113 +3680,113 @@ var Rd = "# Motion plugin\n\nAnimates any layout element. Set its fields as `plu
3680
3680
  }, le = [
3681
3681
  {
3682
3682
  icon: { icon: vf },
3683
- id: "mount",
3684
3683
  label: "",
3685
- title: "On mount"
3684
+ title: "On mount",
3685
+ value: "mount"
3686
3686
  },
3687
3687
  {
3688
3688
  icon: { icon: sf },
3689
- id: "visible",
3690
3689
  label: "",
3691
- title: "When visible"
3690
+ title: "When visible",
3691
+ value: "visible"
3692
3692
  },
3693
3693
  {
3694
3694
  icon: { icon: ef },
3695
- id: "scroll",
3696
3695
  label: "",
3697
- title: "Synced with scroll"
3696
+ title: "Synced with scroll",
3697
+ value: "scroll"
3698
3698
  },
3699
3699
  {
3700
3700
  icon: { icon: Yd },
3701
- id: "hover",
3702
3701
  label: "",
3703
- title: "On hover"
3702
+ title: "On hover",
3703
+ value: "hover"
3704
3704
  },
3705
3705
  {
3706
3706
  icon: { icon: cf },
3707
- id: "press",
3708
3707
  label: "",
3709
- title: "On press"
3708
+ title: "On press",
3709
+ value: "press"
3710
3710
  },
3711
3711
  {
3712
3712
  icon: { icon: Gd },
3713
- id: "focus",
3714
3713
  label: "",
3715
- title: "On focus"
3714
+ title: "On focus",
3715
+ value: "focus"
3716
3716
  },
3717
3717
  {
3718
3718
  icon: { icon: Qd },
3719
- id: "state",
3720
3719
  label: "",
3721
- title: "From a state"
3720
+ title: "From a state",
3721
+ value: "state"
3722
3722
  }
3723
3723
  ], de = [
3724
3724
  {
3725
3725
  icon: { icon: Xd },
3726
- id: "enter",
3727
3726
  label: "",
3728
- title: "Enter"
3727
+ title: "Enter",
3728
+ value: "enter"
3729
3729
  },
3730
3730
  {
3731
3731
  icon: { icon: Wd },
3732
- id: "emphasis",
3733
3732
  label: "",
3734
- title: "Emphasis"
3733
+ title: "Emphasis",
3734
+ value: "emphasis"
3735
3735
  },
3736
3736
  {
3737
3737
  icon: { icon: Jd },
3738
- id: "ambient",
3739
3738
  label: "",
3740
- title: "Ambient"
3739
+ title: "Ambient",
3740
+ value: "ambient"
3741
3741
  },
3742
3742
  {
3743
3743
  icon: { icon: df },
3744
- id: "custom",
3745
3744
  label: "",
3746
- title: "Custom from/to"
3745
+ title: "Custom from/to",
3746
+ value: "custom"
3747
3747
  }
3748
3748
  ], fe = [{
3749
3749
  icon: { icon: Kd },
3750
- id: "top",
3751
3750
  label: "",
3752
- title: "Top edge of the element"
3751
+ title: "Top edge of the element",
3752
+ value: "top"
3753
3753
  }, {
3754
3754
  icon: { icon: tf },
3755
- id: "center",
3756
3755
  label: "",
3757
- title: "Center of the element"
3756
+ title: "Center of the element",
3757
+ value: "center"
3758
3758
  }], ge = [
3759
3759
  {
3760
3760
  icon: { icon: Sf },
3761
- id: "stop",
3762
3761
  label: "",
3763
- title: "Stop at target"
3762
+ title: "Stop at target",
3763
+ value: "stop"
3764
3764
  },
3765
3765
  {
3766
3766
  icon: { icon: ff },
3767
- id: "continue",
3768
3767
  label: "",
3769
- title: "Continue past target"
3768
+ title: "Continue past target",
3769
+ value: "continue"
3770
3770
  },
3771
3771
  {
3772
3772
  icon: { icon: hf },
3773
- id: "hold",
3774
3773
  label: "",
3775
- title: "Hold between target and 100 − target, then reverse"
3774
+ title: "Hold between target and 100 − target, then reverse",
3775
+ value: "hold"
3776
3776
  }
3777
3777
  ], _e = o.map((e) => ({
3778
- id: e,
3779
3778
  label: "",
3780
- title: e
3779
+ title: e,
3780
+ value: e
3781
3781
  })), be = me(we(i.modelValue.preset));
3782
3782
  ve(() => i.modelValue.preset, (e) => {
3783
3783
  be.value = we(e);
3784
3784
  });
3785
3785
  let Ce = re(() => Object.entries(a).filter(([, e]) => e.category === be.value).map(([e]) => ({
3786
3786
  icon: { icon: te[e] },
3787
- id: e,
3788
3787
  label: "",
3789
- title: Te(e)
3788
+ title: Te(e),
3789
+ value: e
3790
3790
  })));
3791
3791
  function we(e) {
3792
3792
  return e === "custom" ? "custom" : a[e]?.category ?? "enter";
@@ -3814,7 +3814,7 @@ var Rd = "# Motion plugin\n\nAnimates any layout element. Set its fields as `plu
3814
3814
  }
3815
3815
  return (n, r) => (pe(), oe("div", Mf, [se("div", Nf, [
3816
3816
  ue(jf, {
3817
- hint: le.find((e) => e.id === t.modelValue.trigger)?.title,
3817
+ hint: le.find((e) => e.value === t.modelValue.trigger)?.title,
3818
3818
  icon: s(mf),
3819
3819
  title: "Trigger"
3820
3820
  }, {
@@ -3893,9 +3893,9 @@ var Rd = "# Motion plugin\n\nAnimates any layout element. Set its fields as `plu
3893
3893
  }, 8, ["hint", "icon"])
3894
3894
  ])]));
3895
3895
  }
3896
- }), [["__scopeId", "data-v-bd5f3bea"]]), Bf = {
3896
+ }), [["__scopeId", "data-v-7f091a1a"]]), Bf = {
3897
3897
  name: "@luna-park/plugin-motion",
3898
- version: "1.2.0",
3898
+ version: "1.3.0",
3899
3899
  private: !1,
3900
3900
  description: "Motion plugin for Luna Park.",
3901
3901
  keywords: [
@@ -3932,7 +3932,7 @@ var Rd = "# Motion plugin\n\nAnimates any layout element. Set its fields as `plu
3932
3932
  },
3933
3933
  devDependencies: {
3934
3934
  "@fortawesome/pro-solid-svg-icons": "link:..\\..\\@fortawesome\\pro-solid-svg-icons",
3935
- "@luna-park/design": "^1.5.0",
3935
+ "@luna-park/design": "^1.6.0",
3936
3936
  "@luna-park/eslint-config": "^1.3.0",
3937
3937
  "@luna-park/plugin": "^1.8.0",
3938
3938
  "@types/node": "^26.6.3",
@@ -3947,7 +3947,7 @@ var Rd = "# Motion plugin\n\nAnimates any layout element. Set its fields as `plu
3947
3947
  "vue-tsc": "^3.3.11"
3948
3948
  },
3949
3949
  peerDependencies: {
3950
- "@luna-park/design": "^1.4.0",
3950
+ "@luna-park/design": "^1.6.0",
3951
3951
  vue: "^3.5.24"
3952
3952
  }
3953
3953
  }, Vf = [