@loafacto/ui 0.8.4 → 0.8.5
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 +35 -31
- package/dist/index.js.map +1 -1
- package/dist/loafacto-ui.css +52 -52
- package/dist/types.d.ts +8 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -157,37 +157,41 @@ const _hoisted_13 = {
|
|
|
157
157
|
key: 1,
|
|
158
158
|
class: "admin-badge admin-badge--gray"
|
|
159
159
|
};
|
|
160
|
-
const _hoisted_14 =
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
const _hoisted_14 = {
|
|
161
|
+
key: 2,
|
|
162
|
+
class: "admin-badge admin-badge--yellow"
|
|
163
|
+
};
|
|
164
|
+
const _hoisted_15 = ["aria-expanded"];
|
|
165
|
+
const _hoisted_16 = ["src"];
|
|
166
|
+
const _hoisted_17 = {
|
|
163
167
|
key: 1,
|
|
164
168
|
class: "lf-user__avatar lf-user__avatar--fallback"
|
|
165
169
|
};
|
|
166
|
-
const
|
|
167
|
-
const
|
|
170
|
+
const _hoisted_18 = { class: "lf-user__name" };
|
|
171
|
+
const _hoisted_19 = {
|
|
168
172
|
key: 0,
|
|
169
173
|
class: "lf-user__email"
|
|
170
174
|
};
|
|
171
|
-
const
|
|
175
|
+
const _hoisted_20 = {
|
|
172
176
|
key: 3,
|
|
173
177
|
class: "lf-shortcuts",
|
|
174
178
|
"aria-label": "바로가기"
|
|
175
179
|
};
|
|
176
|
-
const
|
|
177
|
-
const
|
|
180
|
+
const _hoisted_21 = ["href", "title", "aria-label"];
|
|
181
|
+
const _hoisted_22 = {
|
|
178
182
|
viewBox: "0 0 24 24",
|
|
179
183
|
"aria-hidden": "true"
|
|
180
184
|
};
|
|
181
|
-
const
|
|
182
|
-
const
|
|
183
|
-
const
|
|
185
|
+
const _hoisted_23 = ["d"];
|
|
186
|
+
const _hoisted_24 = ["title", "aria-label"];
|
|
187
|
+
const _hoisted_25 = {
|
|
184
188
|
viewBox: "0 0 24 24",
|
|
185
189
|
"aria-hidden": "true"
|
|
186
190
|
};
|
|
187
|
-
const
|
|
188
|
-
const
|
|
189
|
-
const
|
|
190
|
-
const
|
|
191
|
+
const _hoisted_26 = ["d"];
|
|
192
|
+
const _hoisted_27 = { class: "lf-content" };
|
|
193
|
+
const _hoisted_28 = { class: "site-footer" };
|
|
194
|
+
const _hoisted_29 = { class: "site-footer-inner" };
|
|
191
195
|
const ICON_SUN = "M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0-5v3h0V2zm0 17v3h0v-3zM2 11h3v2H2v-2zm17 0h3v2h-3v-2zM4.2 4.2l2.1 2.1L4.9 7.7 2.8 5.6l1.4-1.4zm13.5 13.5 2.1 2.1-1.4 1.4-2.1-2.1 1.4-1.4zM19.8 4.2l1.4 1.4-2.1 2.1-1.4-1.4 2.1-2.1zM6.3 17.7l1.4 1.4-2.1 2.1-1.4-1.4 2.1-2.1z";
|
|
192
196
|
const ICON_MOON = "M12.3 3a7 7 0 1 0 8.7 8.7A9 9 0 1 1 12.3 3z";
|
|
193
197
|
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
@@ -337,7 +341,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
337
341
|
}, null, 8, _hoisted_11)
|
|
338
342
|
])) : createCommentVNode("", true),
|
|
339
343
|
createElementVNode("span", _hoisted_12, toDisplayString(svc.name), 1),
|
|
340
|
-
svc.comingSoon ? (openBlock(), createElementBlock("span", _hoisted_13, "준비 중")) : createCommentVNode("", true)
|
|
344
|
+
svc.comingSoon ? (openBlock(), createElementBlock("span", _hoisted_13, "준비 중")) : svc.badge ? (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(svc.badge), 1)) : createCommentVNode("", true)
|
|
341
345
|
], 10, _hoisted_9$1);
|
|
342
346
|
}), 128))
|
|
343
347
|
])) : createCommentVNode("", true)
|
|
@@ -361,8 +365,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
361
365
|
src: __props.user.avatarUrl,
|
|
362
366
|
alt: "",
|
|
363
367
|
class: "lf-user__avatar"
|
|
364
|
-
}, null, 8,
|
|
365
|
-
createElementVNode("span",
|
|
368
|
+
}, null, 8, _hoisted_16)) : (openBlock(), createElementBlock("span", _hoisted_17, toDisplayString(userInitial.value), 1)),
|
|
369
|
+
createElementVNode("span", _hoisted_18, toDisplayString(__props.user.displayName), 1),
|
|
366
370
|
_cache[6] || (_cache[6] = createElementVNode("svg", {
|
|
367
371
|
class: "lf-user__caret",
|
|
368
372
|
viewBox: "0 0 24 24",
|
|
@@ -373,18 +377,18 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
373
377
|
fill: "currentColor"
|
|
374
378
|
})
|
|
375
379
|
], -1))
|
|
376
|
-
], 8,
|
|
380
|
+
], 8, _hoisted_15),
|
|
377
381
|
userOpen.value ? (openBlock(), createElementBlock("div", {
|
|
378
382
|
key: 0,
|
|
379
383
|
class: "lf-user__menu",
|
|
380
384
|
role: "menu",
|
|
381
385
|
onClick: _cache[3] || (_cache[3] = ($event) => userOpen.value = false)
|
|
382
386
|
}, [
|
|
383
|
-
__props.user.email ? (openBlock(), createElementBlock("p",
|
|
387
|
+
__props.user.email ? (openBlock(), createElementBlock("p", _hoisted_19, toDisplayString(__props.user.email), 1)) : createCommentVNode("", true),
|
|
384
388
|
renderSlot(_ctx.$slots, "user-menu", {}, void 0, true)
|
|
385
389
|
])) : createCommentVNode("", true)
|
|
386
390
|
], 512)) : renderSlot(_ctx.$slots, "auth-actions", {}, void 0, true, 2),
|
|
387
|
-
__props.shortcuts.length ? (openBlock(), createElementBlock("nav",
|
|
391
|
+
__props.shortcuts.length ? (openBlock(), createElementBlock("nav", _hoisted_20, [
|
|
388
392
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.shortcuts, (s) => {
|
|
389
393
|
return openBlock(), createElementBlock("a", {
|
|
390
394
|
key: s.id,
|
|
@@ -395,13 +399,13 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
395
399
|
title: s.label,
|
|
396
400
|
"aria-label": `${s.label} (새 탭에서 열림)`
|
|
397
401
|
}, [
|
|
398
|
-
(openBlock(), createElementBlock("svg",
|
|
402
|
+
(openBlock(), createElementBlock("svg", _hoisted_22, [
|
|
399
403
|
createElementVNode("path", {
|
|
400
404
|
d: s.iconPath,
|
|
401
405
|
fill: "currentColor"
|
|
402
|
-
}, null, 8,
|
|
406
|
+
}, null, 8, _hoisted_23)
|
|
403
407
|
]))
|
|
404
|
-
], 8,
|
|
408
|
+
], 8, _hoisted_21);
|
|
405
409
|
}), 128))
|
|
406
410
|
])) : createCommentVNode("", true),
|
|
407
411
|
__props.themeToggle ? (openBlock(), createElementBlock("button", {
|
|
@@ -413,21 +417,21 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
413
417
|
onClick: _cache[4] || (_cache[4] = //@ts-ignore
|
|
414
418
|
(...args) => unref(toggle) && unref(toggle)(...args))
|
|
415
419
|
}, [
|
|
416
|
-
(openBlock(), createElementBlock("svg",
|
|
420
|
+
(openBlock(), createElementBlock("svg", _hoisted_25, [
|
|
417
421
|
createElementVNode("path", {
|
|
418
422
|
d: unref(mode2) === "dark" ? ICON_MOON : ICON_SUN,
|
|
419
423
|
fill: "currentColor"
|
|
420
|
-
}, null, 8,
|
|
424
|
+
}, null, 8, _hoisted_26)
|
|
421
425
|
]))
|
|
422
|
-
], 8,
|
|
426
|
+
], 8, _hoisted_24)) : createCommentVNode("", true),
|
|
423
427
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
424
428
|
])
|
|
425
429
|
]),
|
|
426
|
-
createElementVNode("main",
|
|
430
|
+
createElementVNode("main", _hoisted_27, [
|
|
427
431
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
428
432
|
]),
|
|
429
|
-
createElementVNode("footer",
|
|
430
|
-
createElementVNode("div",
|
|
433
|
+
createElementVNode("footer", _hoisted_28, [
|
|
434
|
+
createElementVNode("div", _hoisted_29, [
|
|
431
435
|
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
432
436
|
_cache[8] || (_cache[8] = createElementVNode("p", { class: "site-footer-copy" }, "© Loafacto. All rights reserved.", -1))
|
|
433
437
|
], true)
|
|
@@ -437,7 +441,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
437
441
|
};
|
|
438
442
|
}
|
|
439
443
|
});
|
|
440
|
-
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-
|
|
444
|
+
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-dc328b6e"]]);
|
|
441
445
|
function generateId() {
|
|
442
446
|
return `toast-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
|
|
443
447
|
}
|