veloce-vue 0.11.0 → 0.14.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/README.md +55 -18
- package/components/{Button → button}/Index.vue.d.ts +5 -5
- package/components/{Button → button}/props.d.ts +2 -2
- package/components/checkbox/Index.vue.d.ts +43 -0
- package/components/checkbox/props.d.ts +14 -0
- package/components/checkbox/stories.d.ts +9 -0
- package/components/drawer/Index.vue.d.ts +77 -0
- package/components/drawer/props.d.ts +23 -0
- package/components/drawer/stories.d.ts +9 -0
- package/components/input/Index.vue.d.ts +54 -0
- package/components/input/props.d.ts +19 -0
- package/components/input/stories.d.ts +9 -0
- package/components/markdown-block/Index.vue.d.ts +12 -0
- package/components/modal/Index.vue.d.ts +29 -0
- package/components/modal/props.d.ts +6 -0
- package/components/modal/stories.d.ts +6 -0
- package/components/popover/Index.vue.d.ts +47 -0
- package/components/popover/props.d.ts +15 -0
- package/components/popover/stories.d.ts +7 -0
- package/components/range-slider/Index.vue.d.ts +28 -0
- package/components/range-slider/props.d.ts +10 -0
- package/components/range-slider/stories.d.ts +7 -0
- package/components/select/Index.vue.d.ts +67 -0
- package/components/select/props.d.ts +27 -0
- package/components/select/stories.d.ts +11 -0
- package/components/separator/Index.vue.d.ts +44 -0
- package/components/separator/props.d.ts +19 -0
- package/components/separator/stories.d.ts +7 -0
- package/components/toggle/Index.vue.d.ts +36 -0
- package/components/toggle/props.d.ts +11 -0
- package/components/toggle/stories.d.ts +11 -0
- package/components/tooltip/Index.vue.d.ts +47 -0
- package/components/tooltip/props.d.ts +15 -0
- package/components/tooltip/stories.d.ts +10 -0
- package/exports.d.ts +11 -2
- package/index.cjs +1 -1
- package/index.cjs.map +1 -1
- package/index.js +759 -66
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/pages/config/Index.vue.d.ts +3 -0
- package/pages/config/stories.d.ts +10 -0
- package/veloce-vue.css +1 -1
- /package/components/{Accordion → accordion}/Index.vue.d.ts +0 -0
- /package/components/{Accordion → accordion}/stories.d.ts +0 -0
- /package/components/{Button → button}/stories.d.ts +0 -0
- /package/{composables → utils}/useRandomId.d.ts +0 -0
package/README.md
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
<h1 align="center">Welcome to VeloceVue</h1>
|
|
2
2
|
|
|
3
3
|
A modern Vue.js UI component library built with Vue, Typescript, Storybook and Tailwind CSS.
|
|
4
4
|
|
|
5
|
+
[](https://www.npmjs.com/package/veloce-vue)
|
|
6
|
+

|
|
7
|
+

|
|
8
|
+
|
|
5
9
|
## Installation
|
|
6
10
|
|
|
7
11
|
Install the library from NPM:
|
|
@@ -63,23 +67,6 @@ app.mount("#app");
|
|
|
63
67
|
- Vue 3.5 or higher
|
|
64
68
|
- Tailwind CSS v4 (for styling)
|
|
65
69
|
|
|
66
|
-
## Development
|
|
67
|
-
|
|
68
|
-
This library is built using:
|
|
69
|
-
|
|
70
|
-
- Vue 3
|
|
71
|
-
- Tailwind CSS v4
|
|
72
|
-
- Vite
|
|
73
|
-
- Storybook for component documentation
|
|
74
|
-
- TypeScript
|
|
75
|
-
|
|
76
|
-
## Production
|
|
77
|
-
|
|
78
|
-
Run `pnpm build` to build the package.
|
|
79
|
-
Run `pnpm run build-storybook` to build storybook only.
|
|
80
|
-
|
|
81
|
-
To test the storybook locally, you can run `pnpm run preview-storybook`. This will start the storybook production build.
|
|
82
|
-
|
|
83
70
|
### Consuming application UI configuration
|
|
84
71
|
|
|
85
72
|
Create `ui.config.ts` and add the following code:
|
|
@@ -112,3 +99,53 @@ Use the UI colors in your components/styles:
|
|
|
112
99
|
```html
|
|
113
100
|
<div :style="{ backgroundColor: 'var(--ui-color-primary)' }">...</div>
|
|
114
101
|
```
|
|
102
|
+
|
|
103
|
+
> **ℹ️ Developer Alert:**
|
|
104
|
+
> This library is in active development. APIs and styles may change between releases.
|
|
105
|
+
> Please consult the documentation and changelog for updates before production use.
|
|
106
|
+
|
|
107
|
+
## Development
|
|
108
|
+
|
|
109
|
+
This library is built using:
|
|
110
|
+
|
|
111
|
+
- Vite
|
|
112
|
+
- Vue 3
|
|
113
|
+
- TypeScript
|
|
114
|
+
- Tailwind CSS v4
|
|
115
|
+
- Storybook v9.1.10
|
|
116
|
+
|
|
117
|
+
### Run development server
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
pnpm dev
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
This will start the development server at `http://localhost:6006`.
|
|
124
|
+
|
|
125
|
+
## Production
|
|
126
|
+
|
|
127
|
+
### Build storybook
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
pnpm run build-storybook
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
This will build the storybook into the `build/storybook` directory.
|
|
134
|
+
|
|
135
|
+
### Preview storybook build
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
pnpm run preview-storybook
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
This will start the storybook production build at `http://localhost:3000`.
|
|
142
|
+
|
|
143
|
+
### Build npm package
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
pnpm run build
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
This will build the npm package into the `build/package` directory.
|
|
150
|
+
|
|
151
|
+
> ℹ️ VeloceVue is in active development. APIs and styles may evolve.
|
|
@@ -12,9 +12,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
12
12
|
readonly default: false;
|
|
13
13
|
};
|
|
14
14
|
readonly variant: {
|
|
15
|
-
readonly type: import("vue").PropType<"outlined" | "text" | "ghost" | "solid">;
|
|
15
|
+
readonly type: import("vue").PropType<"outlined" | "text" | "ghost" | "solid" | "gray">;
|
|
16
16
|
readonly default: "solid";
|
|
17
|
-
readonly options: readonly ["outlined", "text", "ghost", "solid"];
|
|
17
|
+
readonly options: readonly ["outlined", "text", "ghost", "solid", "gray"];
|
|
18
18
|
};
|
|
19
19
|
readonly icon: {
|
|
20
20
|
readonly type: StringConstructor;
|
|
@@ -47,9 +47,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
47
47
|
readonly default: false;
|
|
48
48
|
};
|
|
49
49
|
readonly variant: {
|
|
50
|
-
readonly type: import("vue").PropType<"outlined" | "text" | "ghost" | "solid">;
|
|
50
|
+
readonly type: import("vue").PropType<"outlined" | "text" | "ghost" | "solid" | "gray">;
|
|
51
51
|
readonly default: "solid";
|
|
52
|
-
readonly options: readonly ["outlined", "text", "ghost", "solid"];
|
|
52
|
+
readonly options: readonly ["outlined", "text", "ghost", "solid", "gray"];
|
|
53
53
|
};
|
|
54
54
|
readonly icon: {
|
|
55
55
|
readonly type: StringConstructor;
|
|
@@ -72,7 +72,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
72
72
|
readonly label: string;
|
|
73
73
|
readonly loading: boolean;
|
|
74
74
|
readonly disabled: boolean;
|
|
75
|
-
readonly variant: "
|
|
75
|
+
readonly variant: "text" | "outlined" | "ghost" | "solid" | "gray";
|
|
76
76
|
readonly icon: string;
|
|
77
77
|
readonly iconClass: string;
|
|
78
78
|
readonly iconPosition: "left" | "right";
|
|
@@ -13,9 +13,9 @@ export declare const props: {
|
|
|
13
13
|
readonly default: false;
|
|
14
14
|
};
|
|
15
15
|
readonly variant: {
|
|
16
|
-
readonly type: PropType<"outlined" | "text" | "ghost" | "solid">;
|
|
16
|
+
readonly type: PropType<"outlined" | "text" | "ghost" | "solid" | "gray">;
|
|
17
17
|
readonly default: "solid";
|
|
18
|
-
readonly options: readonly ["outlined", "text", "ghost", "solid"];
|
|
18
|
+
readonly options: readonly ["outlined", "text", "ghost", "solid", "gray"];
|
|
19
19
|
};
|
|
20
20
|
readonly icon: {
|
|
21
21
|
readonly type: StringConstructor;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
label: {
|
|
3
|
+
readonly type: StringConstructor;
|
|
4
|
+
readonly default: "";
|
|
5
|
+
};
|
|
6
|
+
labelClass: {
|
|
7
|
+
readonly type: StringConstructor;
|
|
8
|
+
readonly default: "";
|
|
9
|
+
};
|
|
10
|
+
checkboxClass: {
|
|
11
|
+
readonly type: StringConstructor;
|
|
12
|
+
readonly default: "";
|
|
13
|
+
};
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: import("vue").PropType<any>;
|
|
16
|
+
};
|
|
17
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
"update:modelValue": (value: any) => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
label: {
|
|
21
|
+
readonly type: StringConstructor;
|
|
22
|
+
readonly default: "";
|
|
23
|
+
};
|
|
24
|
+
labelClass: {
|
|
25
|
+
readonly type: StringConstructor;
|
|
26
|
+
readonly default: "";
|
|
27
|
+
};
|
|
28
|
+
checkboxClass: {
|
|
29
|
+
readonly type: StringConstructor;
|
|
30
|
+
readonly default: "";
|
|
31
|
+
};
|
|
32
|
+
modelValue: {
|
|
33
|
+
type: import("vue").PropType<any>;
|
|
34
|
+
};
|
|
35
|
+
}>> & Readonly<{
|
|
36
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
label: string;
|
|
39
|
+
labelClass: string;
|
|
40
|
+
checkboxClass: string;
|
|
41
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
42
|
+
declare const _default: typeof __VLS_export;
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const props: {
|
|
2
|
+
readonly label: {
|
|
3
|
+
readonly type: StringConstructor;
|
|
4
|
+
readonly default: "";
|
|
5
|
+
};
|
|
6
|
+
readonly labelClass: {
|
|
7
|
+
readonly type: StringConstructor;
|
|
8
|
+
readonly default: "";
|
|
9
|
+
};
|
|
10
|
+
readonly checkboxClass: {
|
|
11
|
+
readonly type: StringConstructor;
|
|
12
|
+
readonly default: "";
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import Checkbox from "./Index.vue";
|
|
3
|
+
declare const meta: Meta<typeof Checkbox>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Checkbox>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Checked: Story;
|
|
8
|
+
export declare const LabelClass: Story;
|
|
9
|
+
export declare const CheckboxClass: Story;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
declare var __VLS_1: {}, __VLS_10: {}, __VLS_12: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
} & {
|
|
5
|
+
content?: (props: typeof __VLS_10) => any;
|
|
6
|
+
} & {
|
|
7
|
+
footer?: (props: typeof __VLS_12) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
|
+
direction: {
|
|
11
|
+
readonly type: () => "left" | "bottom" | "right";
|
|
12
|
+
readonly default: "bottom";
|
|
13
|
+
readonly options: readonly ["left", "bottom", "right"];
|
|
14
|
+
};
|
|
15
|
+
title: {
|
|
16
|
+
readonly type: StringConstructor;
|
|
17
|
+
readonly default: "";
|
|
18
|
+
};
|
|
19
|
+
description: {
|
|
20
|
+
readonly type: StringConstructor;
|
|
21
|
+
readonly default: "";
|
|
22
|
+
};
|
|
23
|
+
showFooter: {
|
|
24
|
+
readonly type: BooleanConstructor;
|
|
25
|
+
readonly default: false;
|
|
26
|
+
};
|
|
27
|
+
show: {
|
|
28
|
+
readonly type: BooleanConstructor;
|
|
29
|
+
readonly default: false;
|
|
30
|
+
};
|
|
31
|
+
modelValue: {
|
|
32
|
+
type: import("vue").PropType<any>;
|
|
33
|
+
};
|
|
34
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
35
|
+
"update:modelValue": (value: any) => any;
|
|
36
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
+
direction: {
|
|
38
|
+
readonly type: () => "left" | "bottom" | "right";
|
|
39
|
+
readonly default: "bottom";
|
|
40
|
+
readonly options: readonly ["left", "bottom", "right"];
|
|
41
|
+
};
|
|
42
|
+
title: {
|
|
43
|
+
readonly type: StringConstructor;
|
|
44
|
+
readonly default: "";
|
|
45
|
+
};
|
|
46
|
+
description: {
|
|
47
|
+
readonly type: StringConstructor;
|
|
48
|
+
readonly default: "";
|
|
49
|
+
};
|
|
50
|
+
showFooter: {
|
|
51
|
+
readonly type: BooleanConstructor;
|
|
52
|
+
readonly default: false;
|
|
53
|
+
};
|
|
54
|
+
show: {
|
|
55
|
+
readonly type: BooleanConstructor;
|
|
56
|
+
readonly default: false;
|
|
57
|
+
};
|
|
58
|
+
modelValue: {
|
|
59
|
+
type: import("vue").PropType<any>;
|
|
60
|
+
};
|
|
61
|
+
}>> & Readonly<{
|
|
62
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
63
|
+
}>, {
|
|
64
|
+
title: string;
|
|
65
|
+
direction: "left" | "right" | "bottom";
|
|
66
|
+
description: string;
|
|
67
|
+
showFooter: boolean;
|
|
68
|
+
show: boolean;
|
|
69
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
70
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
71
|
+
declare const _default: typeof __VLS_export;
|
|
72
|
+
export default _default;
|
|
73
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
74
|
+
new (): {
|
|
75
|
+
$slots: S;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const props: {
|
|
2
|
+
readonly direction: {
|
|
3
|
+
readonly type: () => "left" | "bottom" | "right";
|
|
4
|
+
readonly default: "bottom";
|
|
5
|
+
readonly options: readonly ["left", "bottom", "right"];
|
|
6
|
+
};
|
|
7
|
+
readonly title: {
|
|
8
|
+
readonly type: StringConstructor;
|
|
9
|
+
readonly default: "";
|
|
10
|
+
};
|
|
11
|
+
readonly description: {
|
|
12
|
+
readonly type: StringConstructor;
|
|
13
|
+
readonly default: "";
|
|
14
|
+
};
|
|
15
|
+
readonly showFooter: {
|
|
16
|
+
readonly type: BooleanConstructor;
|
|
17
|
+
readonly default: false;
|
|
18
|
+
};
|
|
19
|
+
readonly show: {
|
|
20
|
+
readonly type: BooleanConstructor;
|
|
21
|
+
readonly default: false;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import Drawer from "./Index.vue";
|
|
3
|
+
declare const meta: Meta<typeof Drawer>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Drawer>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Left: Story;
|
|
8
|
+
export declare const Bottom: Story;
|
|
9
|
+
export declare const Right: Story;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
icon: {
|
|
3
|
+
readonly type: StringConstructor;
|
|
4
|
+
readonly default: "";
|
|
5
|
+
};
|
|
6
|
+
placeholder: {
|
|
7
|
+
readonly type: StringConstructor;
|
|
8
|
+
readonly default: "";
|
|
9
|
+
};
|
|
10
|
+
helpText: {
|
|
11
|
+
readonly type: StringConstructor;
|
|
12
|
+
readonly default: "";
|
|
13
|
+
};
|
|
14
|
+
type: {
|
|
15
|
+
readonly type: StringConstructor;
|
|
16
|
+
readonly default: "text";
|
|
17
|
+
readonly options: readonly ["text", "password"];
|
|
18
|
+
};
|
|
19
|
+
modelValue: {
|
|
20
|
+
type: import("vue").PropType<any>;
|
|
21
|
+
};
|
|
22
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
+
"update:modelValue": (value: any) => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
icon: {
|
|
26
|
+
readonly type: StringConstructor;
|
|
27
|
+
readonly default: "";
|
|
28
|
+
};
|
|
29
|
+
placeholder: {
|
|
30
|
+
readonly type: StringConstructor;
|
|
31
|
+
readonly default: "";
|
|
32
|
+
};
|
|
33
|
+
helpText: {
|
|
34
|
+
readonly type: StringConstructor;
|
|
35
|
+
readonly default: "";
|
|
36
|
+
};
|
|
37
|
+
type: {
|
|
38
|
+
readonly type: StringConstructor;
|
|
39
|
+
readonly default: "text";
|
|
40
|
+
readonly options: readonly ["text", "password"];
|
|
41
|
+
};
|
|
42
|
+
modelValue: {
|
|
43
|
+
type: import("vue").PropType<any>;
|
|
44
|
+
};
|
|
45
|
+
}>> & Readonly<{
|
|
46
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
47
|
+
}>, {
|
|
48
|
+
type: string;
|
|
49
|
+
icon: string;
|
|
50
|
+
placeholder: string;
|
|
51
|
+
helpText: string;
|
|
52
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
53
|
+
declare const _default: typeof __VLS_export;
|
|
54
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const props: {
|
|
2
|
+
readonly icon: {
|
|
3
|
+
readonly type: StringConstructor;
|
|
4
|
+
readonly default: "";
|
|
5
|
+
};
|
|
6
|
+
readonly placeholder: {
|
|
7
|
+
readonly type: StringConstructor;
|
|
8
|
+
readonly default: "";
|
|
9
|
+
};
|
|
10
|
+
readonly helpText: {
|
|
11
|
+
readonly type: StringConstructor;
|
|
12
|
+
readonly default: "";
|
|
13
|
+
};
|
|
14
|
+
readonly type: {
|
|
15
|
+
readonly type: StringConstructor;
|
|
16
|
+
readonly default: "text";
|
|
17
|
+
readonly options: readonly ["text", "password"];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import Input from "./Index.vue";
|
|
3
|
+
declare const meta: Meta<typeof Input>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Placeholder: Story;
|
|
8
|
+
export declare const HelpText: Story;
|
|
9
|
+
export declare const Prefilled: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "github-markdown-css/github-markdown-light.css";
|
|
2
|
+
import "prismjs/themes/prism.css";
|
|
3
|
+
import "prismjs/components/prism-typescript";
|
|
4
|
+
import "prismjs/components/prism-json";
|
|
5
|
+
import "prismjs/components/prism-bash";
|
|
6
|
+
import "prismjs/components/prism-javascript";
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
content: string;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
readonly show: {
|
|
7
|
+
readonly type: BooleanConstructor;
|
|
8
|
+
readonly default: false;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"update:show": (...args: any[]) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
readonly show: {
|
|
14
|
+
readonly type: BooleanConstructor;
|
|
15
|
+
readonly default: false;
|
|
16
|
+
};
|
|
17
|
+
}>> & Readonly<{
|
|
18
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
readonly show: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
} & {
|
|
5
|
+
body?: (props: typeof __VLS_3) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
readonly position: {
|
|
9
|
+
readonly type: () => "top" | "bottom";
|
|
10
|
+
readonly default: "bottom";
|
|
11
|
+
readonly options: readonly ["top", "bottom"];
|
|
12
|
+
};
|
|
13
|
+
readonly bodyClass: {
|
|
14
|
+
readonly type: StringConstructor;
|
|
15
|
+
readonly default: "";
|
|
16
|
+
};
|
|
17
|
+
readonly contentClass: {
|
|
18
|
+
readonly type: StringConstructor;
|
|
19
|
+
readonly default: "";
|
|
20
|
+
};
|
|
21
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
readonly position: {
|
|
23
|
+
readonly type: () => "top" | "bottom";
|
|
24
|
+
readonly default: "bottom";
|
|
25
|
+
readonly options: readonly ["top", "bottom"];
|
|
26
|
+
};
|
|
27
|
+
readonly bodyClass: {
|
|
28
|
+
readonly type: StringConstructor;
|
|
29
|
+
readonly default: "";
|
|
30
|
+
};
|
|
31
|
+
readonly contentClass: {
|
|
32
|
+
readonly type: StringConstructor;
|
|
33
|
+
readonly default: "";
|
|
34
|
+
};
|
|
35
|
+
}>> & Readonly<{}>, {
|
|
36
|
+
readonly position: "bottom" | "top";
|
|
37
|
+
readonly bodyClass: string;
|
|
38
|
+
readonly contentClass: string;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
41
|
+
declare const _default: typeof __VLS_export;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const props: {
|
|
2
|
+
readonly position: {
|
|
3
|
+
readonly type: () => "top" | "bottom";
|
|
4
|
+
readonly default: "bottom";
|
|
5
|
+
readonly options: readonly ["top", "bottom"];
|
|
6
|
+
};
|
|
7
|
+
readonly bodyClass: {
|
|
8
|
+
readonly type: StringConstructor;
|
|
9
|
+
readonly default: "";
|
|
10
|
+
};
|
|
11
|
+
readonly contentClass: {
|
|
12
|
+
readonly type: StringConstructor;
|
|
13
|
+
readonly default: "";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import Popover from "./Index.vue";
|
|
3
|
+
declare const meta: Meta<typeof Popover>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Popover>;
|
|
6
|
+
export declare const Bottom: Story;
|
|
7
|
+
export declare const Top: Story;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
readonly showTooltip: {
|
|
3
|
+
readonly type: BooleanConstructor;
|
|
4
|
+
readonly default: false;
|
|
5
|
+
};
|
|
6
|
+
readonly value: {
|
|
7
|
+
readonly type: NumberConstructor;
|
|
8
|
+
readonly default: 0;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"update:value": (...args: any[]) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
readonly showTooltip: {
|
|
14
|
+
readonly type: BooleanConstructor;
|
|
15
|
+
readonly default: false;
|
|
16
|
+
};
|
|
17
|
+
readonly value: {
|
|
18
|
+
readonly type: NumberConstructor;
|
|
19
|
+
readonly default: 0;
|
|
20
|
+
};
|
|
21
|
+
}>> & Readonly<{
|
|
22
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
readonly showTooltip: boolean;
|
|
25
|
+
readonly value: number;
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
import RangeSlider from "./Index.vue";
|
|
3
|
+
declare const meta: Meta<typeof RangeSlider>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof RangeSlider>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithTooltip: Story;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
readonly modelValue: {
|
|
3
|
+
readonly type: StringConstructor;
|
|
4
|
+
readonly default: "";
|
|
5
|
+
};
|
|
6
|
+
readonly options: {
|
|
7
|
+
readonly type: () => string[];
|
|
8
|
+
readonly required: true;
|
|
9
|
+
};
|
|
10
|
+
readonly variant: {
|
|
11
|
+
readonly type: () => "outlined" | "text" | "ghost" | "solid" | "gray";
|
|
12
|
+
readonly default: "solid";
|
|
13
|
+
readonly options: readonly ["outlined", "text", "ghost", "solid", "gray"];
|
|
14
|
+
};
|
|
15
|
+
readonly showFilter: {
|
|
16
|
+
readonly type: BooleanConstructor;
|
|
17
|
+
readonly default: false;
|
|
18
|
+
};
|
|
19
|
+
readonly isOpen: {
|
|
20
|
+
readonly type: BooleanConstructor;
|
|
21
|
+
readonly default: false;
|
|
22
|
+
};
|
|
23
|
+
readonly closeOnClickOutside: {
|
|
24
|
+
readonly type: BooleanConstructor;
|
|
25
|
+
readonly default: true;
|
|
26
|
+
};
|
|
27
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
"update:modelValue": (...args: any[]) => void;
|
|
29
|
+
"update:isOpen": (...args: any[]) => void;
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
readonly modelValue: {
|
|
32
|
+
readonly type: StringConstructor;
|
|
33
|
+
readonly default: "";
|
|
34
|
+
};
|
|
35
|
+
readonly options: {
|
|
36
|
+
readonly type: () => string[];
|
|
37
|
+
readonly required: true;
|
|
38
|
+
};
|
|
39
|
+
readonly variant: {
|
|
40
|
+
readonly type: () => "outlined" | "text" | "ghost" | "solid" | "gray";
|
|
41
|
+
readonly default: "solid";
|
|
42
|
+
readonly options: readonly ["outlined", "text", "ghost", "solid", "gray"];
|
|
43
|
+
};
|
|
44
|
+
readonly showFilter: {
|
|
45
|
+
readonly type: BooleanConstructor;
|
|
46
|
+
readonly default: false;
|
|
47
|
+
};
|
|
48
|
+
readonly isOpen: {
|
|
49
|
+
readonly type: BooleanConstructor;
|
|
50
|
+
readonly default: false;
|
|
51
|
+
};
|
|
52
|
+
readonly closeOnClickOutside: {
|
|
53
|
+
readonly type: BooleanConstructor;
|
|
54
|
+
readonly default: true;
|
|
55
|
+
};
|
|
56
|
+
}>> & Readonly<{
|
|
57
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
58
|
+
"onUpdate:isOpen"?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
}>, {
|
|
60
|
+
readonly variant: "text" | "outlined" | "ghost" | "solid" | "gray";
|
|
61
|
+
readonly modelValue: string;
|
|
62
|
+
readonly isOpen: boolean;
|
|
63
|
+
readonly showFilter: boolean;
|
|
64
|
+
readonly closeOnClickOutside: boolean;
|
|
65
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
66
|
+
declare const _default: typeof __VLS_export;
|
|
67
|
+
export default _default;
|