@enos5/enos-vue-default 1.6.1 → 1.6.3

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
1
  import './styles.css';
2
- import { _, a, b, c, d, e, f, g, h, i, j, k, D, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, S, B, C, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W, X, Y, Z, $, a0, a1 } from "./plugin-D5KJd0xy.js";
2
+ import { _, a, b, c, d, e, f, g, h, i, j, k, D, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, S, B, C, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W, X, Y, Z, $, a0, a1 } from "./plugin-N46eeXWN.js";
3
3
  export {
4
4
  _ as ActionCard,
5
5
  a as ActionMessage,
@@ -1,4 +1,4 @@
1
- import { _, a, b, c, d, e, f, g, h, i, j, k, D, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, S, B, C, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W, X, Y, Z, $, a0, a1 } from "./plugin-D5KJd0xy.js";
1
+ import { _, a, b, c, d, e, f, g, h, i, j, k, D, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, S, B, C, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W, X, Y, Z, $, a0, a1 } from "./plugin-N46eeXWN.js";
2
2
  export {
3
3
  _ as ActionCard,
4
4
  a as ActionMessage,
@@ -926,6 +926,7 @@ const _sfc_main$E = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
926
926
  const dropdownMenuRef = ref(null);
927
927
  const dropdownStyle = ref({});
928
928
  const isDarkMode = ref(false);
929
+ const isMounted = ref(false);
929
930
  const isObjectOption = (option) => typeof option === "object" && option !== null;
930
931
  const optionValue = (option) => {
931
932
  if (isObjectOption(option)) {
@@ -1080,6 +1081,7 @@ const _sfc_main$E = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
1080
1081
  };
1081
1082
  const darkTextStyle = computed(() => isDarkMode.value ? { color: "#ffffff" } : null);
1082
1083
  onMounted(() => {
1084
+ isMounted.value = true;
1083
1085
  syncDarkMode();
1084
1086
  document.addEventListener("click", closeDropdown);
1085
1087
  window.addEventListener("resize", updateDropdownPosition);
@@ -1124,16 +1126,19 @@ const _sfc_main$E = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
1124
1126
  class: normalizeClass(["size-5 text-neutral-400 transition-transform dark:text-neutral-200", { "rotate-180": isOpen.value }])
1125
1127
  }, null, 8, ["class"])
1126
1128
  ], 16),
1127
- createVNode(Transition, {
1128
- "enter-active-class": "transition-all duration-200 ease-out",
1129
- "enter-from-class": "opacity-0 transform scale-95 -translate-y-2",
1130
- "enter-to-class": "opacity-100 transform scale-100 translate-y-0",
1131
- "leave-active-class": "transition-all duration-150 ease-in",
1132
- "leave-from-class": "opacity-100 transform scale-100 translate-y-0",
1133
- "leave-to-class": "opacity-0 transform scale-95 -translate-y-2"
1134
- }, {
1135
- default: withCtx(() => [
1136
- (openBlock(), createBlock(Teleport, { to: "body" }, [
1129
+ isMounted.value ? (openBlock(), createBlock(Teleport, {
1130
+ key: 0,
1131
+ to: "body"
1132
+ }, [
1133
+ createVNode(Transition, {
1134
+ "enter-active-class": "transition-all duration-200 ease-out",
1135
+ "enter-from-class": "opacity-0 transform scale-95 -translate-y-2",
1136
+ "enter-to-class": "opacity-100 transform scale-100 translate-y-0",
1137
+ "leave-active-class": "transition-all duration-150 ease-in",
1138
+ "leave-from-class": "opacity-100 transform scale-100 translate-y-0",
1139
+ "leave-to-class": "opacity-0 transform scale-95 -translate-y-2"
1140
+ }, {
1141
+ default: withCtx(() => [
1137
1142
  isOpen.value ? (openBlock(), createElementBlock("div", {
1138
1143
  key: 0,
1139
1144
  ref_key: "dropdownMenuRef",
@@ -1202,10 +1207,10 @@ const _sfc_main$E = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
1202
1207
  }), 128))
1203
1208
  ], 2)
1204
1209
  ], 6)) : createCommentVNode("", true)
1205
- ]))
1206
- ]),
1207
- _: 1
1208
- })
1210
+ ]),
1211
+ _: 1
1212
+ })
1213
+ ])) : createCommentVNode("", true)
1209
1214
  ], 512);
1210
1215
  };
1211
1216
  }
@@ -3961,7 +3966,7 @@ const _sfc_main$3 = {
3961
3966
  createElementVNode("div", {
3962
3967
  class: normalizeClass([
3963
3968
  "bg-white/90 backdrop-blur-sm dark:bg-neutral-950/90",
3964
- __props.isCard ? "mx-4 animate-fadeIn rounded-2xl border border-neutral-200 shadow-sm dark:border-neutral-800 md:mx-0" : ""
3969
+ __props.isCard ? "animate-fadeIn rounded-2xl border border-neutral-200 shadow-sm dark:border-neutral-800 md:mx-0" : ""
3965
3970
  ])
3966
3971
  }, [
3967
3972
  createElementVNode("div", {
@@ -4873,4 +4878,4 @@ export {
4873
4878
  _sfc_main$z as y,
4874
4879
  _sfc_main$x as z
4875
4880
  };
4876
- //# sourceMappingURL=plugin-D5KJd0xy.js.map
4881
+ //# sourceMappingURL=plugin-N46eeXWN.js.map