@loafacto/ui 0.16.0 → 0.16.1

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.
@@ -34,21 +34,21 @@ type __VLS_Props = {
34
34
  backgroundColor?: string;
35
35
  backgroundImage?: string;
36
36
  };
37
- declare var __VLS_11: {}, __VLS_13: {}, __VLS_15: {}, __VLS_17: {}, __VLS_19: {}, __VLS_21: {}, __VLS_23: {};
37
+ declare var __VLS_23: {}, __VLS_25: {}, __VLS_27: {}, __VLS_29: {}, __VLS_31: {}, __VLS_33: {}, __VLS_35: {};
38
38
  type __VLS_Slots = {} & {
39
- 'user-menu'?: (props: typeof __VLS_11) => any;
39
+ 'user-menu'?: (props: typeof __VLS_23) => any;
40
40
  } & {
41
- 'auth-actions'?: (props: typeof __VLS_13) => any;
41
+ 'auth-actions'?: (props: typeof __VLS_25) => any;
42
42
  } & {
43
- actions?: (props: typeof __VLS_15) => any;
43
+ actions?: (props: typeof __VLS_27) => any;
44
44
  } & {
45
- rail?: (props: typeof __VLS_17) => any;
45
+ rail?: (props: typeof __VLS_29) => any;
46
46
  } & {
47
- default?: (props: typeof __VLS_19) => any;
47
+ default?: (props: typeof __VLS_31) => any;
48
48
  } & {
49
- default?: (props: typeof __VLS_21) => any;
49
+ default?: (props: typeof __VLS_33) => any;
50
50
  } & {
51
- footer?: (props: typeof __VLS_23) => any;
51
+ footer?: (props: typeof __VLS_35) => any;
52
52
  };
53
53
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
54
54
  navigate: (payload: {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { readonly, ref, openBlock, createElementBlock, createStaticVNode, createElementVNode, defineComponent, computed, watch, onBeforeUnmount, normalizeClass, normalizeStyle, createCommentVNode, Fragment, toDisplayString, createVNode, renderList, renderSlot, unref, onUnmounted, createBlock, Teleport, TransitionGroup, withCtx, withModifiers, Transition, useTemplateRef, onMounted, nextTick, createTextVNode, withDirectives, withKeys, vModelText, resolveDynamicComponent, useAttrs, useModel, useId, mergeProps, isRef, vModelDynamic, mergeModels, vModelSelect, vModelCheckbox, vModelRadio, useSlots } from "vue";
1
+ import { readonly, ref, openBlock, createElementBlock, createStaticVNode, createElementVNode, defineComponent, computed, watch, onBeforeUnmount, normalizeClass, normalizeStyle, createCommentVNode, Fragment, toDisplayString, createVNode, Transition, withCtx, renderList, renderSlot, unref, onUnmounted, createBlock, Teleport, TransitionGroup, withModifiers, useTemplateRef, onMounted, nextTick, createTextVNode, withDirectives, withKeys, vModelText, resolveDynamicComponent, useAttrs, useModel, useId, mergeProps, isRef, vModelDynamic, mergeModels, vModelSelect, vModelCheckbox, vModelRadio, useSlots } from "vue";
2
2
  import { a as applyTheme, D as DARK_THEME, L as LIGHT_THEME } from "./applyTheme-8AxcQbPB.js";
3
3
  import { b, c, d, e, f, h, i, l } from "./applyTheme-8AxcQbPB.js";
4
4
  import { defineStore } from "pinia";
@@ -449,29 +449,34 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
449
449
  })
450
450
  ], -1))
451
451
  ], 8, _hoisted_7$a),
452
- switcherOpen.value ? (openBlock(), createElementBlock("div", _hoisted_8$5, [
453
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.services, (svc) => {
454
- return openBlock(), createElementBlock("a", {
455
- key: svc.id,
456
- class: normalizeClass(["lf-switcher__item", {
457
- "lf-switcher__item--active": svc.id === __props.currentServiceId,
458
- "lf-switcher__item--disabled": svc.comingSoon
459
- }]),
460
- href: svc.comingSoon ? void 0 : svc.path,
461
- role: "menuitem",
462
- onClick: ($event) => onServiceClick($event, svc)
463
- }, [
464
- svc.iconPath ? (openBlock(), createElementBlock("svg", _hoisted_10$2, [
465
- createElementVNode("path", {
466
- d: svc.iconPath,
467
- fill: "currentColor"
468
- }, null, 8, _hoisted_11$1)
469
- ])) : createCommentVNode("", true),
470
- createElementVNode("span", _hoisted_12$1, toDisplayString(svc.name), 1),
471
- svc.comingSoon ? (openBlock(), createElementBlock("span", _hoisted_13$1, "준비 중")) : svc.badge ? (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(svc.badge), 1)) : createCommentVNode("", true)
472
- ], 10, _hoisted_9$2);
473
- }), 128))
474
- ])) : createCommentVNode("", true)
452
+ createVNode(Transition, { name: "lf-shell-menu" }, {
453
+ default: withCtx(() => [
454
+ switcherOpen.value ? (openBlock(), createElementBlock("div", _hoisted_8$5, [
455
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.services, (svc) => {
456
+ return openBlock(), createElementBlock("a", {
457
+ key: svc.id,
458
+ class: normalizeClass(["lf-switcher__item", {
459
+ "lf-switcher__item--active": svc.id === __props.currentServiceId,
460
+ "lf-switcher__item--disabled": svc.comingSoon
461
+ }]),
462
+ href: svc.comingSoon ? void 0 : svc.path,
463
+ role: "menuitem",
464
+ onClick: ($event) => onServiceClick($event, svc)
465
+ }, [
466
+ svc.iconPath ? (openBlock(), createElementBlock("svg", _hoisted_10$2, [
467
+ createElementVNode("path", {
468
+ d: svc.iconPath,
469
+ fill: "currentColor"
470
+ }, null, 8, _hoisted_11$1)
471
+ ])) : createCommentVNode("", true),
472
+ createElementVNode("span", _hoisted_12$1, toDisplayString(svc.name), 1),
473
+ svc.comingSoon ? (openBlock(), createElementBlock("span", _hoisted_13$1, "준비 중")) : svc.badge ? (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(svc.badge), 1)) : createCommentVNode("", true)
474
+ ], 10, _hoisted_9$2);
475
+ }), 128))
476
+ ])) : createCommentVNode("", true)
477
+ ]),
478
+ _: 1
479
+ })
475
480
  ], 512)) : createCommentVNode("", true),
476
481
  _cache[9] || (_cache[9] = createElementVNode("div", { class: "lf-topbar__spacer" }, null, -1)),
477
482
  __props.user ? (openBlock(), createElementBlock("div", {
@@ -505,24 +510,29 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
505
510
  })
506
511
  ], -1))
507
512
  ], 8, _hoisted_15),
508
- userOpen.value ? (openBlock(), createElementBlock("div", {
509
- key: 0,
510
- class: "lf-user__menu",
511
- role: "menu",
512
- onClick: _cache[3] || (_cache[3] = ($event) => userOpen.value = false)
513
- }, [
514
- __props.user.email ? (openBlock(), createElementBlock("p", _hoisted_19, toDisplayString(__props.user.email), 1)) : createCommentVNode("", true),
515
- __props.myPageHref ? (openBlock(), createElementBlock("a", {
516
- key: 1,
517
- href: __props.myPageHref
518
- }, "내 정보", 8, _hoisted_20)) : createCommentVNode("", true),
519
- renderSlot(_ctx.$slots, "user-menu", {}, void 0, true),
520
- __props.logoutHref ? (openBlock(), createElementBlock("a", {
521
- key: 2,
522
- class: "lf-user__logout",
523
- href: __props.logoutHref
524
- }, "로그아웃", 8, _hoisted_21)) : createCommentVNode("", true)
525
- ])) : createCommentVNode("", true)
513
+ createVNode(Transition, { name: "lf-shell-menu" }, {
514
+ default: withCtx(() => [
515
+ userOpen.value ? (openBlock(), createElementBlock("div", {
516
+ key: 0,
517
+ class: "lf-user__menu",
518
+ role: "menu",
519
+ onClick: _cache[3] || (_cache[3] = ($event) => userOpen.value = false)
520
+ }, [
521
+ __props.user.email ? (openBlock(), createElementBlock("p", _hoisted_19, toDisplayString(__props.user.email), 1)) : createCommentVNode("", true),
522
+ __props.myPageHref ? (openBlock(), createElementBlock("a", {
523
+ key: 1,
524
+ href: __props.myPageHref
525
+ }, "내 정보", 8, _hoisted_20)) : createCommentVNode("", true),
526
+ renderSlot(_ctx.$slots, "user-menu", {}, void 0, true),
527
+ __props.logoutHref ? (openBlock(), createElementBlock("a", {
528
+ key: 2,
529
+ class: "lf-user__logout",
530
+ href: __props.logoutHref
531
+ }, "로그아웃", 8, _hoisted_21)) : createCommentVNode("", true)
532
+ ])) : createCommentVNode("", true)
533
+ ]),
534
+ _: 3
535
+ })
526
536
  ], 512)) : renderSlot(_ctx.$slots, "auth-actions", {}, void 0, true, 3),
527
537
  __props.shortcuts.length ? (openBlock(), createElementBlock("nav", _hoisted_22, [
528
538
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.shortcuts, (s) => {
@@ -591,7 +601,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
591
601
  };
592
602
  }
593
603
  });
594
- const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-7b2df3a9"]]);
604
+ const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-0e48f886"]]);
595
605
  function generateId() {
596
606
  return `toast-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
597
607
  }