@ctorforce/ui 1.0.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/.turbo/turbo-build.log +19 -0
- package/dist/ctorforce-ui.css +2 -0
- package/dist/ctorforce-ui.mjs +15 -0
- package/dist/ctorforce-ui.umd.js +1 -0
- package/index.ts +1 -0
- package/package.json +21 -0
- package/src/components/Button.vue +18 -0
- package/src/components/index.ts +3 -0
- package/vite.config.ts +17 -0
|
@@ -0,0 +1,19 @@
|
|
|
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
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, openBlock as n, renderSlot as r } from "vue";
|
|
2
|
+
//#region src/components/Button.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var i = { class: "cf-button" }, a = /* @__PURE__ */ ((e, t) => {
|
|
4
|
+
let n = e.__vccOpts || e;
|
|
5
|
+
for (let [e, r] of t) n[e] = r;
|
|
6
|
+
return n;
|
|
7
|
+
})(/* @__PURE__ */ t({
|
|
8
|
+
__name: "Button",
|
|
9
|
+
props: { type: {} },
|
|
10
|
+
setup(t) {
|
|
11
|
+
return (t, a) => (n(), e("button", i, [r(t.$slots, "default", {}, void 0, !0)]));
|
|
12
|
+
}
|
|
13
|
+
}), [["__scopeId", "data-v-cd24b49e"]]);
|
|
14
|
+
//#endregion
|
|
15
|
+
export { a as Button };
|
|
@@ -0,0 +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.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/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/components'
|
package/package.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ctorforce/ui",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
+
"build": "vite build",
|
|
9
|
+
"type-check": "vue-tsc --noEmit"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [],
|
|
12
|
+
"author": "",
|
|
13
|
+
"license": "ISC",
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@types/node": "^25.5.0",
|
|
16
|
+
"@vitejs/plugin-vue": "^6.0.5",
|
|
17
|
+
"typescript": "5.9.2",
|
|
18
|
+
"vite": "^8.0.1",
|
|
19
|
+
"vue-tsc": "^3.2.6"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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/vite.config.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
})
|