nicklabs-ui 1.0.12 → 1.0.13
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.mjs +63 -33
- package/dist/src/index.d.ts +2 -25
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3270,37 +3270,67 @@ var di = { class: "cards-wrapper" }, fi = ["innerHTML"], pi = { class: "card-bod
|
|
|
3270
3270
|
}), [["__scopeId", "data-v-bb912f40"]]), Ki = { class: "brand" }, qi = ["src", "alt"], Ji = {
|
|
3271
3271
|
key: 1,
|
|
3272
3272
|
class: "icon"
|
|
3273
|
-
}, Yi = { key: 2 }, Xi = { key: 3 }, Zi =
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
}
|
|
3273
|
+
}, Yi = { key: 2 }, Xi = { key: 3 }, Zi = {
|
|
3274
|
+
NButton: j,
|
|
3275
|
+
NInput: L,
|
|
3276
|
+
NTextarea: de,
|
|
3277
|
+
NCheckbox: ge,
|
|
3278
|
+
NSelect: U,
|
|
3279
|
+
NFileSelect: wt,
|
|
3280
|
+
NForm: Wt,
|
|
3281
|
+
NList: bn,
|
|
3282
|
+
NEmpty: Yt,
|
|
3283
|
+
NToast: An,
|
|
3284
|
+
NLoading: Rn,
|
|
3285
|
+
NCode: qn,
|
|
3286
|
+
NSwitch: Yn,
|
|
3287
|
+
NTag: Xn,
|
|
3288
|
+
NDatePicker: ti,
|
|
3289
|
+
NTooltip: ni,
|
|
3290
|
+
NModal: si,
|
|
3291
|
+
NAlert: yi,
|
|
3292
|
+
NTable: _n,
|
|
3293
|
+
NLayout: Ri,
|
|
3294
|
+
NNavigation: Gi,
|
|
3295
|
+
NSidebar: Pi,
|
|
3296
|
+
NCard: Xt,
|
|
3297
|
+
NLoginLayout: /* @__PURE__ */ A(/* @__PURE__ */ p({
|
|
3298
|
+
__name: "NLoginLayout",
|
|
3299
|
+
props: {
|
|
3300
|
+
backgroundImage: { default: "" },
|
|
3301
|
+
logo: { default: "" },
|
|
3302
|
+
title: { default: "" },
|
|
3303
|
+
description: { default: "" }
|
|
3304
|
+
},
|
|
3305
|
+
setup(e) {
|
|
3306
|
+
let t = i(() => !!e.logo && (e.logo.startsWith("http") || e.logo.startsWith("/")));
|
|
3307
|
+
return (n, r) => (b(), s("div", {
|
|
3308
|
+
class: "login-wrapper",
|
|
3309
|
+
style: g({ "--login-bg": e.backgroundImage ? `url('${e.backgroundImage}')` : "var(--bg-gradient)" })
|
|
3310
|
+
}, [f(Xt, {
|
|
3311
|
+
size: "lg",
|
|
3312
|
+
radius: "xl",
|
|
3313
|
+
class: "card"
|
|
3314
|
+
}, {
|
|
3315
|
+
default: O(() => [c("div", Ki, [
|
|
3316
|
+
t.value ? (b(), s("img", {
|
|
3317
|
+
key: 0,
|
|
3318
|
+
class: "logo-img",
|
|
3319
|
+
src: e.logo,
|
|
3320
|
+
alt: e.title
|
|
3321
|
+
}, null, 8, qi)) : (b(), s("div", Ji, T(e.logo), 1)),
|
|
3322
|
+
e.title ? (b(), s("h1", Yi, T(e.title), 1)) : o("", !0),
|
|
3323
|
+
e.description ? (b(), s("p", Xi, T(e.description), 1)) : o("", !0)
|
|
3324
|
+
]), w(n.$slots, "default", {}, void 0, !0)]),
|
|
3325
|
+
_: 3
|
|
3326
|
+
})], 4));
|
|
3327
|
+
}
|
|
3328
|
+
}), [["__scopeId", "data-v-f0866bc5"]])
|
|
3329
|
+
};
|
|
3330
|
+
function Qi(e) {
|
|
3331
|
+
Object.entries(Zi).forEach(([t, n]) => {
|
|
3332
|
+
e.component(t, n);
|
|
3333
|
+
});
|
|
3334
|
+
}
|
|
3305
3335
|
//#endregion
|
|
3306
|
-
export {
|
|
3336
|
+
export { Qi as NickLabsUI, ui as useAlert, Ot as useSidebarManager, Cn as useToast };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,28 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import NTextarea from "./components/NTextarea.vue";
|
|
4
|
-
import NCheckbox from "./components/NCheckbox.vue";
|
|
5
|
-
import NSelect from "./components/NSelect.vue";
|
|
6
|
-
import NFileSelect from "./components/NFileSelect.vue";
|
|
7
|
-
import NForm from "./components/NForm.vue";
|
|
8
|
-
import NList from "./components/NList.vue";
|
|
9
|
-
import NEmpty from "./components/NEmpty.vue";
|
|
10
|
-
import NToast from "./components/NToast.vue";
|
|
11
|
-
import NLoading from "./components/NLoading.vue";
|
|
12
|
-
import NCode from "./components/NCode.vue";
|
|
13
|
-
import NSwitch from "./components/NSwitch.vue";
|
|
14
|
-
import NTag from "./components/NTag.vue";
|
|
15
|
-
import NDatePicker from "./components/NDatePicker.vue";
|
|
16
|
-
import NTooltip from "./components/NTooltip.vue";
|
|
17
|
-
import NModal from "./components/NModal.vue";
|
|
18
|
-
import NAlert from "./components/NAlert.vue";
|
|
19
|
-
import NTable from "./components/NTable.vue";
|
|
20
|
-
import NLayout from "./layouts/NLayout.vue";
|
|
21
|
-
import NNavigation from "./layouts/NNavigation.vue";
|
|
22
|
-
import NSidebar from "./layouts/NSidebar.vue";
|
|
23
|
-
import NCard from "./layouts/NCard.vue";
|
|
24
|
-
import NLoginLayout from "./layouts/NLoginLayout.vue";
|
|
1
|
+
import type { App } from "vue";
|
|
2
|
+
export declare function NickLabsUI(app: App): void;
|
|
25
3
|
export { useToast } from "./composables/useToast.js";
|
|
26
4
|
export { useSidebarManager } from "./composables/useSidebarManager.js";
|
|
27
5
|
export { useAlert } from "./composables/useAlert.js";
|
|
28
|
-
export { NButton, NInput, NTextarea, NCheckbox, NSelect, NFileSelect, NForm, NList, NEmpty, NToast, NLoading, NCode, NSwitch, NTag, NDatePicker, NTooltip, NModal, NAlert, NTable, NLayout, NNavigation, NSidebar, NCard, NLoginLayout, };
|