@summeruse/naive-ui 0.0.1-alpha.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/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @summeruse/naive-ui
2
+
3
+ ## 0.0.1-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 147961b: 初始化 添加 NProvider
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # @summeruse/naive-ui
2
+
3
+ naive-ui 扩展组件库
4
+
5
+ <div class="flex flex-wrap gap-2">
6
+
7
+ ![NPM Version (with dist tag)](https://img.shields.io/npm/v/%40summeruse%2Fnaive-ui/beta)
8
+
9
+ [![npm](https://img.shields.io/npm/v/@summeruse/naive-ui)](https://www.npmjs.com/package/@summeruse/naive-ui)
10
+
11
+ ![NPM Last Update](https://img.shields.io/npm/last-update/%40summeruse%2Fnaive-ui)
12
+
13
+ ![NPM License](https://img.shields.io/npm/l/%40summeruse%2Fnaive-ui)
14
+
15
+ ![NPM Downloads](https://img.shields.io/npm/dy/%40summeruse%2Fnaive-ui)
16
+
17
+ ![npm bundle size](https://img.shields.io/bundlephobia/minzip/%40summeruse%2Fnaive-ui)
18
+
19
+ ![NPM Type Definitions](https://img.shields.io/npm/types/%40summeruse%2Fnaive-ui)
20
+
21
+ </div>
22
+
23
+ ## 安装
24
+
25
+ ```bash
26
+ pnpm i @summeruse/naive-ui
27
+ ```
28
+
29
+ ::: tip 依赖
30
+ [`vue`](https://cn.vuejs.org/)
31
+
32
+ [`navie-ui`](https://www.naiveui.com/)
33
+ :::
34
+
35
+ ## 组件
36
+
37
+ - [NProvider](./components/n-provider/)
package/dist/index.js ADDED
@@ -0,0 +1,44 @@
1
+ import { createBlock, createCommentVNode, createVNode, defineComponent, openBlock, renderSlot, unref, withCtx } from "vue";
2
+ import { NConfigProvider, NDialogProvider, NGlobalStyle, NMessageProvider, NModalProvider, NNotificationProvider } from "naive-ui";
3
+ var n_provider_default = /* @__PURE__ */ defineComponent({
4
+ __name: "index",
5
+ props: {
6
+ locale: {},
7
+ dateLocale: {},
8
+ theme: {},
9
+ themeOverrides: {},
10
+ globalStyle: {
11
+ type: Boolean,
12
+ default: !0
13
+ }
14
+ },
15
+ setup(p) {
16
+ return (p, m) => (openBlock(), createBlock(unref(NConfigProvider), {
17
+ locale: p.locale,
18
+ "date-locale": p.dateLocale,
19
+ theme: p.theme,
20
+ "theme-overrides": p.themeOverrides
21
+ }, {
22
+ default: withCtx(() => [p.globalStyle ? (openBlock(), createBlock(unref(NGlobalStyle), { key: 0 })) : createCommentVNode("", !0), createVNode(unref(NModalProvider), null, {
23
+ default: withCtx(() => [createVNode(unref(NNotificationProvider), null, {
24
+ default: withCtx(() => [createVNode(unref(NMessageProvider), null, {
25
+ default: withCtx(() => [createVNode(unref(NDialogProvider), null, {
26
+ default: withCtx(() => [renderSlot(p.$slots, "default")]),
27
+ _: 3
28
+ })]),
29
+ _: 3
30
+ })]),
31
+ _: 3
32
+ })]),
33
+ _: 3
34
+ })]),
35
+ _: 3
36
+ }, 8, [
37
+ "locale",
38
+ "date-locale",
39
+ "theme",
40
+ "theme-overrides"
41
+ ]));
42
+ }
43
+ });
44
+ export { n_provider_default as NProvider };
@@ -0,0 +1 @@
1
+ export * from './n-provider';
@@ -0,0 +1,2 @@
1
+ import n_provider_default from "./n-provider/index.mjs";
2
+ import "./n-provider/index2.mjs";
@@ -0,0 +1,2 @@
1
+ import { default as NProvider } from './index.vue';
2
+ export { NProvider };
@@ -0,0 +1,3 @@
1
+ import index_vue_vue_type_script_setup_true_lang_default from "./index.vue_vue_type_script_setup_true_lang.mjs";
2
+ var n_provider_default = index_vue_vue_type_script_setup_true_lang_default;
3
+ export { n_provider_default as default };
@@ -0,0 +1,28 @@
1
+ import { GlobalThemeOverrides, NDateLocale, NLocale } from 'naive-ui';
2
+ import { BuiltInGlobalTheme } from 'naive-ui/es/themes/interface';
3
+ type __VLS_Props = {
4
+ locale?: NLocale;
5
+ dateLocale?: NDateLocale;
6
+ theme?: BuiltInGlobalTheme;
7
+ themeOverrides?: GlobalThemeOverrides;
8
+ globalStyle?: boolean;
9
+ };
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ default?(_: {}): any;
14
+ };
15
+ refs: {};
16
+ rootEl: any;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
20
+ globalStyle: boolean;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,44 @@
1
+ import { createBlock, createCommentVNode, createVNode, defineComponent, openBlock, renderSlot, unref, withCtx } from "vue";
2
+ import { NConfigProvider, NDialogProvider, NGlobalStyle, NMessageProvider, NModalProvider, NNotificationProvider } from "naive-ui";
3
+ var index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
4
+ __name: "index",
5
+ props: {
6
+ locale: {},
7
+ dateLocale: {},
8
+ theme: {},
9
+ themeOverrides: {},
10
+ globalStyle: {
11
+ type: Boolean,
12
+ default: !0
13
+ }
14
+ },
15
+ setup(p) {
16
+ return (p, m) => (openBlock(), createBlock(unref(NConfigProvider), {
17
+ locale: p.locale,
18
+ "date-locale": p.dateLocale,
19
+ theme: p.theme,
20
+ "theme-overrides": p.themeOverrides
21
+ }, {
22
+ default: withCtx(() => [p.globalStyle ? (openBlock(), createBlock(unref(NGlobalStyle), { key: 0 })) : createCommentVNode("", !0), createVNode(unref(NModalProvider), null, {
23
+ default: withCtx(() => [createVNode(unref(NNotificationProvider), null, {
24
+ default: withCtx(() => [createVNode(unref(NMessageProvider), null, {
25
+ default: withCtx(() => [createVNode(unref(NDialogProvider), null, {
26
+ default: withCtx(() => [renderSlot(p.$slots, "default")]),
27
+ _: 3
28
+ })]),
29
+ _: 3
30
+ })]),
31
+ _: 3
32
+ })]),
33
+ _: 3
34
+ })]),
35
+ _: 3
36
+ }, 8, [
37
+ "locale",
38
+ "date-locale",
39
+ "theme",
40
+ "theme-overrides"
41
+ ]));
42
+ }
43
+ });
44
+ export { index_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1 @@
1
+ import n_provider_default from "./index.mjs";
package/es/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './components';
package/es/index.mjs ADDED
@@ -0,0 +1,3 @@
1
+ import n_provider_default from "./components/n-provider/index.mjs";
2
+ import "./components/index.mjs";
3
+ export { n_provider_default as NProvider };
@@ -0,0 +1 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));exports.__toESM=s;
@@ -0,0 +1 @@
1
+ export * from './n-provider';
@@ -0,0 +1 @@
1
+ const e=require(`./n-provider/index.js`);require(`./n-provider/index2.js`);
@@ -0,0 +1,2 @@
1
+ import { default as NProvider } from './index.vue';
2
+ export { NProvider };
@@ -0,0 +1 @@
1
+ const e=require(`./index.vue_vue_type_script_setup_true_lang.js`);var t=e.default;exports.default=t;
@@ -0,0 +1,28 @@
1
+ import { GlobalThemeOverrides, NDateLocale, NLocale } from 'naive-ui';
2
+ import { BuiltInGlobalTheme } from 'naive-ui/es/themes/interface';
3
+ type __VLS_Props = {
4
+ locale?: NLocale;
5
+ dateLocale?: NDateLocale;
6
+ theme?: BuiltInGlobalTheme;
7
+ themeOverrides?: GlobalThemeOverrides;
8
+ globalStyle?: boolean;
9
+ };
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ default?(_: {}): any;
14
+ };
15
+ refs: {};
16
+ rootEl: any;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
20
+ globalStyle: boolean;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1 @@
1
+ const e=require(`../../_virtual/rolldown_runtime.js`);let t=require(`vue`);t=e.__toESM(t);let n=require(`naive-ui`);n=e.__toESM(n);var r=(0,t.defineComponent)({__name:`index`,props:{locale:{},dateLocale:{},theme:{},themeOverrides:{},globalStyle:{type:Boolean,default:!0}},setup(e){return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NConfigProvider),{locale:e.locale,"date-locale":e.dateLocale,theme:e.theme,"theme-overrides":e.themeOverrides},{default:(0,t.withCtx)(()=>[e.globalStyle?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NGlobalStyle),{key:0})):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(n.NModalProvider),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.NNotificationProvider),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.NMessageProvider),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.NDialogProvider),null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3})]),_:3})]),_:3})]),_:3})]),_:3},8,[`locale`,`date-locale`,`theme`,`theme-overrides`]))}});exports.default=r;
@@ -0,0 +1 @@
1
+ const e=require(`./index.js`);
package/lib/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './components';
package/lib/index.js ADDED
@@ -0,0 +1 @@
1
+ const e=require(`./components/n-provider/index.js`);require(`./components/index.js`),exports.NProvider=e.default;
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@summeruse/naive-ui",
3
+ "type": "module",
4
+ "version": "0.0.1-alpha.0",
5
+ "description": "",
6
+ "author": "finalsummer",
7
+ "license": "ISC",
8
+ "homepage": "https://642661520.github.io/SummerUse/",
9
+ "repository": "https://github.com/642661520/SummerUse",
10
+ "keywords": [
11
+ "vue",
12
+ "naive-ui",
13
+ "vue3"
14
+ ],
15
+ "main": "lib/index.js",
16
+ "module": "es/index.mjs",
17
+ "unpkg": "dist/index.js",
18
+ "jsdelivr": "dist/index.js",
19
+ "types": "es/index.d.ts",
20
+ "files": [
21
+ "CHANGELOG.md",
22
+ "README.md",
23
+ "dist",
24
+ "es",
25
+ "lib"
26
+ ],
27
+ "peerDependencies": {
28
+ "vue": "^3.5.13"
29
+ },
30
+ "dependencies": {
31
+ "naive-ui": "^2.41.0"
32
+ },
33
+ "devDependencies": {
34
+ "@types/node": "^22.13.14",
35
+ "@vitejs/plugin-vue": "6.0.1",
36
+ "@vue/tsconfig": "^0.7.0",
37
+ "naive-ui": "^2.41.0",
38
+ "sass-embedded": "^1.86.3",
39
+ "typescript": "~5.7.2",
40
+ "vite": "npm:rolldown-vite@latest",
41
+ "vite-plugin-css-injected-by-js": "^3.5.2",
42
+ "vite-plugin-dts": "^4.5.3",
43
+ "vue-tsc": "^2.2.4"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public"
47
+ },
48
+ "scripts": {
49
+ "build": "vue-tsc -b && vite build"
50
+ }
51
+ }