@ctorforce/ui 1.0.0 → 1.0.2
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/ctorforce-ui.umd.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/src/components/Button.vue.d.ts +13 -0
- package/dist/src/components/index.d.ts +2 -0
- package/package.json +22 -4
- package/.turbo/turbo-build.log +0 -19
- package/index.ts +0 -1
- package/src/components/Button.vue +0 -18
- package/src/components/index.ts +0 -3
- package/vite.config.ts +0 -17
package/dist/ctorforce-ui.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`vue`)):typeof define==`function`&&define.amd?define([`exports`,`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.CtorforceUI={},e.
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`vue`)):typeof define==`function`&&define.amd?define([`exports`,`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.CtorforceUI={},e.Vue))})(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n={class:`cf-button`};e.Button=((e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n})((0,t.defineComponent)({__name:`Button`,props:{type:{}},setup(e){return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,n,[(0,t.renderSlot)(e.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-cd24b49e`]])});
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/components';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: any;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
package/package.json
CHANGED
|
@@ -1,16 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ctorforce/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "./dist/ctorforce-ui.umd.js",
|
|
6
|
+
"module": "./dist/ctorforce-ui.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/ctorforce-ui.mjs",
|
|
12
|
+
"require": "./dist/ctorforce-ui.umd.js"
|
|
13
|
+
},
|
|
14
|
+
"./style.css": "./dist/ctorforce-ui.css"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
6
19
|
"scripts": {
|
|
7
20
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
-
"build": "vite build",
|
|
9
|
-
"
|
|
21
|
+
"build": "vite build && npm run build:types",
|
|
22
|
+
"build:types": "vue-tsc --project tsconfig.json --declaration --emitDeclarationOnly --outDir dist",
|
|
23
|
+
"type-check": "vue-tsc --noEmit",
|
|
24
|
+
"prepublishOnly": "npm run build"
|
|
10
25
|
},
|
|
11
26
|
"keywords": [],
|
|
12
27
|
"author": "",
|
|
13
28
|
"license": "ISC",
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"vue": "^3.5.0"
|
|
31
|
+
},
|
|
14
32
|
"devDependencies": {
|
|
15
33
|
"@types/node": "^25.5.0",
|
|
16
34
|
"@vitejs/plugin-vue": "^6.0.5",
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
> @ctorforce/ui@1.0.0 build /Users/penglei/Desktop/project/ctorforce/packages/ui
|
|
4
|
-
> vite build
|
|
5
|
-
|
|
6
|
-
[36mvite v8.0.1 [32mbuilding client environment for production...[36m[39m
|
|
7
|
-
[2K
|
|
8
|
-
[2K
|
|
9
|
-
[2K
|
|
10
|
-
[2mdist/[0m[36mctorforce-ui.mjs [39m[2m[1m0.55 kB[0m[0m[2m │ gzip: 0.39 kB[0m
|
|
11
|
-
|
|
12
|
-
[2K
|
|
13
|
-
[2K
|
|
14
|
-
[2K
|
|
15
|
-
[2mdist/[0m[36mctorforce-ui.umd.js [39m[2m[1m0.63 kB[0m[0m[2m │ gzip: 0.42 kB[0m
|
|
16
|
-
|
|
17
|
-
[2K[1G[33m[33m[MISSING_GLOBAL_NAME] Warning:[0m No name was provided for external module "vue" in "output.globals" – guessing "vue".
|
|
18
|
-
[39m
|
|
19
|
-
[32m✓ built in 523ms[39m
|
package/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/components'
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
defineProps<{
|
|
3
|
-
type?: 'primary' | 'default'
|
|
4
|
-
}>()
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<template>
|
|
8
|
-
<button class="cf-button">
|
|
9
|
-
<slot />
|
|
10
|
-
</button>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<style scoped>
|
|
14
|
-
.cf-button {
|
|
15
|
-
padding: 8px 16px;
|
|
16
|
-
border-radius: 6px;
|
|
17
|
-
}
|
|
18
|
-
</style>
|
package/src/components/index.ts
DELETED
package/vite.config.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vite'
|
|
2
|
-
import vue from '@vitejs/plugin-vue'
|
|
3
|
-
import path from 'path'
|
|
4
|
-
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
plugins: [vue()],
|
|
7
|
-
build: {
|
|
8
|
-
lib: {
|
|
9
|
-
entry: path.resolve(__dirname, 'index.ts'),
|
|
10
|
-
name: 'CtorforceUI',
|
|
11
|
-
fileName: 'ctorforce-ui'
|
|
12
|
-
},
|
|
13
|
-
rollupOptions: {
|
|
14
|
-
external: ['vue']
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
})
|