@semi-kit/component 1.2.15 → 1.2.18
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/README.md +29 -29
- package/lib/app-provider/index.d.ts +1 -1
- package/lib/app-provider/index.js +1 -1
- package/lib/{app-provider-CDHBJyz-.js → app-provider-54X4txsL.js} +4 -2
- package/lib/{index-CqbL1iuK.d.ts → index-CGmoO5lI.d.ts} +7 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
# vue-components-starter
|
|
2
|
-
|
|
3
|
-
A starter for creating a Vue component library.
|
|
4
|
-
|
|
5
|
-
## Development
|
|
6
|
-
|
|
7
|
-
- Install dependencies:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm install
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
- Run the playground:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
npm run playground
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
- Run the unit tests:
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
npm run test
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
- Build the library:
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
npm run build
|
|
29
|
-
```
|
|
1
|
+
# vue-components-starter
|
|
2
|
+
|
|
3
|
+
A starter for creating a Vue component library.
|
|
4
|
+
|
|
5
|
+
## Development
|
|
6
|
+
|
|
7
|
+
- Install dependencies:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
- Run the playground:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm run playground
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
- Run the unit tests:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm run test
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
- Build the library:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm run build
|
|
29
|
+
```
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "../index-
|
|
1
|
+
import { t as _default } from "../index-CGmoO5lI.js";
|
|
2
2
|
export { _default as default };
|
|
@@ -3,7 +3,8 @@ import { defineComponent, provide, toRef } from "vue";
|
|
|
3
3
|
//#region src/app-provider/props.ts
|
|
4
4
|
const appProviderProps = {
|
|
5
5
|
locale: String,
|
|
6
|
-
formRuleConfig: Object
|
|
6
|
+
formRuleConfig: Object,
|
|
7
|
+
theme: Object
|
|
7
8
|
};
|
|
8
9
|
|
|
9
10
|
//#endregion
|
|
@@ -14,7 +15,8 @@ var app_provider_default = /* @__PURE__ */ defineComponent({
|
|
|
14
15
|
setup(props, { slots }) {
|
|
15
16
|
provide("app-provider", {
|
|
16
17
|
locale: toRef(props, "locale"),
|
|
17
|
-
formRuleConfig: toRef(props, "formRuleConfig")
|
|
18
|
+
formRuleConfig: toRef(props, "formRuleConfig"),
|
|
19
|
+
theme: toRef(props, "theme")
|
|
18
20
|
});
|
|
19
21
|
return () => {
|
|
20
22
|
return slots.default?.();
|
|
@@ -8,20 +8,27 @@ interface AppProviderFormRuleConfig {
|
|
|
8
8
|
numberSize?: number;
|
|
9
9
|
decimalPlace?: number;
|
|
10
10
|
}
|
|
11
|
+
interface AppProviderTheme {
|
|
12
|
+
primaryColor?: string;
|
|
13
|
+
radius?: number;
|
|
14
|
+
}
|
|
11
15
|
interface AppProviderContext {
|
|
12
16
|
locale?: Ref<string | undefined>;
|
|
13
17
|
formRuleConfig?: Ref<AppProviderFormRuleConfig>;
|
|
18
|
+
theme?: Ref<AppProviderTheme | undefined>;
|
|
14
19
|
}
|
|
15
20
|
//#endregion
|
|
16
21
|
//#region src/app-provider/index.d.ts
|
|
17
22
|
declare const _default: vue0.DefineComponent<vue0.ExtractPropTypes<{
|
|
18
23
|
readonly locale: StringConstructor;
|
|
19
24
|
readonly formRuleConfig: vue0.PropType<AppProviderFormRuleConfig>;
|
|
25
|
+
readonly theme: vue0.PropType<AppProviderTheme>;
|
|
20
26
|
}>, () => vue0.VNode<vue0.RendererNode, vue0.RendererElement, {
|
|
21
27
|
[key: string]: any;
|
|
22
28
|
}>[] | undefined, {}, {}, {}, vue0.ComponentOptionsMixin, vue0.ComponentOptionsMixin, {}, string, vue0.PublicProps, Readonly<vue0.ExtractPropTypes<{
|
|
23
29
|
readonly locale: StringConstructor;
|
|
24
30
|
readonly formRuleConfig: vue0.PropType<AppProviderFormRuleConfig>;
|
|
31
|
+
readonly theme: vue0.PropType<AppProviderTheme>;
|
|
25
32
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, vue0.ComponentProvideOptions, true, {}, any>;
|
|
26
33
|
//#endregion
|
|
27
34
|
export { AppProviderContext as n, AppProviderFormRuleConfig as r, _default as t };
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as AppProviderContext, r as AppProviderFormRuleConfig, t as _default } from "./index-
|
|
1
|
+
import { n as AppProviderContext, r as AppProviderFormRuleConfig, t as _default } from "./index-CGmoO5lI.js";
|
|
2
2
|
|
|
3
3
|
//#region src/_utils/get-provider.d.ts
|
|
4
4
|
declare function getAppProvider(): AppProviderContext;
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semi-kit/component",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.18",
|
|
4
4
|
"description": "Semi-Kit Component Library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
"vue": "^3.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@semi-kit/vars": "workspace:*",
|
|
44
43
|
"@css-render/plugin-bem": "catalog:",
|
|
45
44
|
"css-render": "catalog:",
|
|
46
45
|
"@types/node": "catalog:",
|