@indielayer/ui 1.0.0-alpha.3 → 1.0.0-alpha.7
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 +25 -87
- package/lib/components/badge/Badge.vue.d.ts +5 -0
- package/lib/components/checkbox/Checkbox.vue.d.ts +1 -1
- package/lib/components/drawer/Drawer.vue.d.ts +3 -3
- package/lib/components/icon/Icon.vue.d.ts +5 -1
- package/lib/components/input/Input.vue.d.ts +4 -1
- package/lib/components/menu/Menu.vue.d.ts +16 -4
- package/lib/components/menu/MenuItem.vue.d.ts +18 -6
- package/lib/components/radio/Radio.vue.d.ts +1 -1
- package/lib/components/select/Select.vue.d.ts +1 -1
- package/lib/components/slider/Slider.vue.d.ts +1 -1
- package/lib/components/tab/Tab.vue.d.ts +8 -3
- package/lib/components/tab/TabGroup.vue.d.ts +20 -0
- package/lib/components/table/Table.vue.d.ts +1 -0
- package/lib/components/textarea/Textarea.vue.d.ts +6 -1
- package/lib/components/toggle/Toggle.vue.d.ts +1 -1
- package/lib/composables/colors.d.ts +1 -1
- package/lib/composables/css.d.ts +4 -4
- package/lib/create.d.ts +1 -0
- package/lib/index.cjs.js +2 -2
- package/lib/index.es.js +277 -88
- package/lib/style.css +1 -1
- package/lib/version.d.ts +1 -1
- package/package.json +15 -15
- package/src/components/badge/Badge.vue +13 -0
- package/src/components/button/Button.vue +4 -4
- package/src/components/checkbox/Checkbox.vue +1 -1
- package/src/components/container/Container.vue +1 -1
- package/src/components/icon/Icon.vue +77 -10
- package/src/components/input/Input.vue +5 -3
- package/src/components/link/Link.vue +1 -1
- package/src/components/menu/Menu.vue +8 -2
- package/src/components/menu/MenuItem.vue +25 -12
- package/src/components/modal/Modal.vue +3 -1
- package/src/components/radio/Radio.vue +4 -4
- package/src/components/scroll/Scroll.vue +1 -1
- package/src/components/select/Select.vue +0 -0
- package/src/components/tab/Tab.vue +52 -8
- package/src/components/tab/TabGroup.vue +25 -7
- package/src/components/table/Table.vue +2 -0
- package/src/components/textarea/Textarea.vue +4 -1
- package/src/components/toggle/Toggle.vue +1 -1
- package/src/create.ts +4 -2
- package/src/version.ts +1 -1
- package/volar.d.ts +1 -1
package/README.md
CHANGED
|
@@ -1,102 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
</a>
|
|
1
|
+

|
|
2
|
+

|
|
4
3
|
|
|
5
|
-
>
|
|
4
|
+
<p>
|
|
5
|
+
<a href="https://github.com/indielayer/ui/actions/workflows/update_docs.yml"><img src="https://github.com/indielayer/ui/actions/workflows/update_docs.yml/badge.svg?branch=main&event=push" alt="Update docs"></a>
|
|
6
|
+
<a href="https://www.npmjs.com/package/@indielayer/ui/v/alpha"><img src="https://badgen.net/npm/dm/@indielayer/ui" alt="Downloads"></a>
|
|
7
|
+
<a href="https://www.npmjs.com/package/@indielayer/ui/v/alpha"><img src="https://badgen.net/npm/v/@indielayer/ui/alpha" alt="Version"></a>
|
|
8
|
+
<a href="https://www.npmjs.com/package/@indielayer/ui"><img src="https://badgen.net/npm/license/@indielayer/ui" alt="License"></a>
|
|
9
|
+
</p>
|
|
6
10
|
|
|
7
|
-
|
|
11
|
+
Vue 3 & Nuxt 3 UI Components built with Tailwind 3. **Build and prototype fast web applications.** 🚀
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
## 📖 Documentation
|
|
14
|
+
Read the <a href="https://indielayer.com/ui">Online Documentation</a>.
|
|
10
15
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### Quickstart
|
|
16
|
+
## Quickstart
|
|
14
17
|
```bash
|
|
15
18
|
npm init @indielayer/ui
|
|
16
19
|
```
|
|
17
20
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
> [tailwindcss](https://tailwindcss.com) version >= 3.0 must be already present in your application
|
|
21
|
-
|
|
22
|
-
#### 1. Add `@indielayer/ui` dependency to your project
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
# using npm
|
|
26
|
-
npm install @indielayer/ui --save-dev
|
|
27
|
-
|
|
28
|
-
# using yarn
|
|
29
|
-
yarn add @indielayer/ui --dev
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
#### 2. Add Indielayer UI Tailwind CSS preset `tailwind-preset.js` to your Tailwind CSS configuration file `tailwind.config.js` with the purge css configurations
|
|
21
|
+
---
|
|
33
22
|
|
|
34
|
-
|
|
35
|
-
// tailwind.config.js
|
|
36
|
-
const indielayer = require('@indielayer/ui/tailwind.preset')
|
|
23
|
+
### Development
|
|
37
24
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
content: [
|
|
44
|
-
'./index.html',
|
|
45
|
-
'./src/**/*.{vue,js,ts,jsx,tsx}',
|
|
46
|
-
'node_modules/@indielayer/ui/**/*',
|
|
47
|
-
],
|
|
48
|
-
theme: {
|
|
49
|
-
extend: {},
|
|
50
|
-
},
|
|
51
|
-
plugins: [],
|
|
52
|
-
}
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
### 3. Load the plugin
|
|
56
|
-
#### Load the plugin in your Vue 3 application
|
|
57
|
-
|
|
58
|
-
```javascript
|
|
59
|
-
import { createApp } from 'vue'
|
|
60
|
-
import UI from '@indielayer/ui'
|
|
61
|
-
import '@indielayer/ui/styles'
|
|
62
|
-
|
|
63
|
-
const app = createApp(App)
|
|
25
|
+
- Clone repository
|
|
26
|
+
- Ensure you have the latest LTS version of Node.js installed
|
|
27
|
+
- Install dependencies with `pnpm install`
|
|
28
|
+
- Run `pnpm dev` to enter dev mode watch
|
|
29
|
+
- Develop docs with `pnpm run docs`
|
|
64
30
|
|
|
65
|
-
|
|
31
|
+
### Documentation
|
|
66
32
|
|
|
67
|
-
|
|
68
|
-
import {
|
|
69
|
-
XButton,
|
|
70
|
-
XInput,
|
|
71
|
-
// ...
|
|
72
|
-
} from '@indielayer/ui'
|
|
33
|
+
The documentation is located inside [/packages/docs](./packages/docs)
|
|
73
34
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
#### Load the module in your Nuxt 3 application
|
|
35
|
+
- Run `pnpm build` once from project root to build the UI library
|
|
36
|
+
- Run `pnpm run docs` from project root to enter docs dev mode
|
|
79
37
|
|
|
80
|
-
|
|
81
|
-
import { defineNuxtConfig } from 'nuxt'
|
|
82
|
-
|
|
83
|
-
export default defineNuxtConfig({
|
|
84
|
-
css: ["~/assets/css/tailwind.css"],
|
|
85
|
-
modules: [
|
|
86
|
-
'@indielayer/ui/nuxt'
|
|
87
|
-
],
|
|
88
|
-
build: {
|
|
89
|
-
postcss: {
|
|
90
|
-
postcssOptions: {
|
|
91
|
-
plugins: {
|
|
92
|
-
'tailwindcss/nesting': {},
|
|
93
|
-
tailwindcss: {},
|
|
94
|
-
autoprefixer: {},
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
})
|
|
100
|
-
```
|
|
38
|
+
## License
|
|
101
39
|
|
|
102
|
-
[
|
|
40
|
+
[MIT](./LICENSE)
|
|
@@ -12,6 +12,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
type: PropType<"left" | "right">;
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
15
|
+
offsetX: (NumberConstructor | StringConstructor)[];
|
|
16
|
+
offsetY: (NumberConstructor | StringConstructor)[];
|
|
15
17
|
animated: BooleanConstructor;
|
|
16
18
|
outlined: BooleanConstructor;
|
|
17
19
|
icon: StringConstructor;
|
|
@@ -29,6 +31,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
31
|
};
|
|
30
32
|
}, {
|
|
31
33
|
styles: import("vue").ComputedRef<string>;
|
|
34
|
+
offsetStyle: import("vue").ComputedRef<any>;
|
|
32
35
|
positionClasses: import("vue").ComputedRef<string[]>;
|
|
33
36
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
37
|
tag: {
|
|
@@ -43,6 +46,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
46
|
type: PropType<"left" | "right">;
|
|
44
47
|
default: string;
|
|
45
48
|
};
|
|
49
|
+
offsetX: (NumberConstructor | StringConstructor)[];
|
|
50
|
+
offsetY: (NumberConstructor | StringConstructor)[];
|
|
46
51
|
animated: BooleanConstructor;
|
|
47
52
|
outlined: BooleanConstructor;
|
|
48
53
|
icon: StringConstructor;
|
|
@@ -67,7 +67,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
67
67
|
readonly validator: (value: string) => boolean;
|
|
68
68
|
};
|
|
69
69
|
}>> & {
|
|
70
|
-
[x: `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
70
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
71
71
|
}, {
|
|
72
72
|
readonly: boolean;
|
|
73
73
|
glow: boolean;
|
|
@@ -32,7 +32,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
32
|
detached: import("vue").Ref<boolean>;
|
|
33
33
|
value: import("vue").Ref<boolean>;
|
|
34
34
|
open: () => void;
|
|
35
|
-
close: (e?: PointerEvent) => void;
|
|
35
|
+
close: (e?: PointerEvent | undefined) => void;
|
|
36
36
|
onBeforeEnter: (el: HTMLElement) => void;
|
|
37
37
|
onEnter: (el: HTMLElement, done: () => void) => void;
|
|
38
38
|
onBeforeLeave: (el: HTMLElement) => void;
|
|
@@ -63,11 +63,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
63
63
|
}>> & {
|
|
64
64
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
65
65
|
}, {
|
|
66
|
+
height: string | number;
|
|
67
|
+
width: string | number;
|
|
66
68
|
position: "top" | "bottom" | "left" | "right";
|
|
67
69
|
to: string | HTMLElement;
|
|
68
70
|
modelValue: boolean;
|
|
69
|
-
height: string | number;
|
|
70
|
-
width: string | number;
|
|
71
71
|
backdrop: boolean;
|
|
72
72
|
}>;
|
|
73
73
|
export default _default;
|
|
@@ -13,7 +13,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
readonly validator: (value: string) => boolean;
|
|
14
14
|
};
|
|
15
15
|
}, {
|
|
16
|
-
|
|
16
|
+
attrs: import("vue").Ref<{}>;
|
|
17
|
+
isWrapSVG: import("vue").Ref<boolean>;
|
|
18
|
+
computedIcon: import("vue").Ref<string>;
|
|
19
|
+
computedFilled: import("vue").Ref<boolean>;
|
|
20
|
+
computedViewBox: import("vue").Ref<string>;
|
|
17
21
|
sizeClasses: import("vue").ComputedRef<"h-3 w-3" | "h-4 w-4" | "h-6 w-6" | "h-9 w-9" | "h-5 w-5">;
|
|
18
22
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
23
|
icon: {
|
|
@@ -21,6 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
default: string;
|
|
22
22
|
};
|
|
23
23
|
inputClass: StringConstructor;
|
|
24
|
+
block: BooleanConstructor;
|
|
24
25
|
modelValue: import("vue").PropType<[string, number, boolean, object, []]>;
|
|
25
26
|
name: StringConstructor;
|
|
26
27
|
readonly: BooleanConstructor;
|
|
@@ -79,6 +80,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
79
80
|
default: string;
|
|
80
81
|
};
|
|
81
82
|
inputClass: StringConstructor;
|
|
83
|
+
block: BooleanConstructor;
|
|
82
84
|
modelValue: import("vue").PropType<[string, number, boolean, object, []]>;
|
|
83
85
|
name: StringConstructor;
|
|
84
86
|
readonly: BooleanConstructor;
|
|
@@ -99,12 +101,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
99
101
|
readonly validator: (value: string) => boolean;
|
|
100
102
|
};
|
|
101
103
|
}>> & {
|
|
102
|
-
[x: `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
104
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
103
105
|
}, {
|
|
104
106
|
readonly: boolean;
|
|
105
107
|
dir: string;
|
|
106
108
|
required: boolean;
|
|
107
109
|
type: string;
|
|
110
|
+
block: boolean;
|
|
108
111
|
disabled: boolean;
|
|
109
112
|
loading: boolean;
|
|
110
113
|
validateOnInput: boolean;
|
|
@@ -8,8 +8,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
collapseIcon: StringConstructor;
|
|
9
9
|
expanded: BooleanConstructor;
|
|
10
10
|
disabled: BooleanConstructor;
|
|
11
|
-
rounded:
|
|
12
|
-
|
|
11
|
+
rounded: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
filled: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
13
19
|
color: {
|
|
14
20
|
readonly type: StringConstructor;
|
|
15
21
|
readonly default: string | undefined;
|
|
@@ -27,8 +33,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
33
|
collapseIcon: StringConstructor;
|
|
28
34
|
expanded: BooleanConstructor;
|
|
29
35
|
disabled: BooleanConstructor;
|
|
30
|
-
rounded:
|
|
31
|
-
|
|
36
|
+
rounded: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
filled: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
32
44
|
color: {
|
|
33
45
|
readonly type: StringConstructor;
|
|
34
46
|
readonly default: string | undefined;
|
|
@@ -15,8 +15,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
icon: StringConstructor;
|
|
16
16
|
iconRight: StringConstructor;
|
|
17
17
|
loading: BooleanConstructor;
|
|
18
|
-
rounded:
|
|
19
|
-
|
|
18
|
+
rounded: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
filled: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
20
26
|
selected: BooleanConstructor;
|
|
21
27
|
disabled: BooleanConstructor;
|
|
22
28
|
color: {
|
|
@@ -37,6 +43,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
43
|
icon: string | undefined;
|
|
38
44
|
size: import("../../composables/common").Size;
|
|
39
45
|
filled: boolean;
|
|
46
|
+
value: string | number | undefined;
|
|
40
47
|
rounded: boolean;
|
|
41
48
|
item: Record<string, any>;
|
|
42
49
|
to: string | undefined;
|
|
@@ -46,14 +53,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
53
|
loading: boolean;
|
|
47
54
|
exact: boolean;
|
|
48
55
|
inactive: boolean;
|
|
49
|
-
value: string | number | undefined;
|
|
50
56
|
onActive: ((...args: any[]) => any) | undefined;
|
|
51
57
|
target: string | undefined;
|
|
52
58
|
selected: boolean;
|
|
53
59
|
}>;
|
|
54
60
|
htmlTag: string;
|
|
55
61
|
isActive: import("vue").Ref<boolean>;
|
|
56
|
-
cssVariables: import("vue").ComputedRef<
|
|
62
|
+
cssVariables: import("vue").ComputedRef<Record<string, string>>;
|
|
57
63
|
onItemClick: (e: Event) => void;
|
|
58
64
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("active" | "click")[], "active" | "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
59
65
|
item: {
|
|
@@ -72,8 +78,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
72
78
|
icon: StringConstructor;
|
|
73
79
|
iconRight: StringConstructor;
|
|
74
80
|
loading: BooleanConstructor;
|
|
75
|
-
rounded:
|
|
76
|
-
|
|
81
|
+
rounded: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
filled: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
77
89
|
selected: BooleanConstructor;
|
|
78
90
|
disabled: BooleanConstructor;
|
|
79
91
|
color: {
|
|
@@ -65,7 +65,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
65
|
readonly validator: (value: string) => boolean;
|
|
66
66
|
};
|
|
67
67
|
}>> & {
|
|
68
|
-
[x: `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
68
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
69
69
|
}, {
|
|
70
70
|
readonly: boolean;
|
|
71
71
|
glow: boolean;
|
|
@@ -86,7 +86,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
86
86
|
readonly validator: (value: string) => boolean;
|
|
87
87
|
};
|
|
88
88
|
}>> & {
|
|
89
|
-
[x: `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
89
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
90
90
|
}, {
|
|
91
91
|
readonly: boolean;
|
|
92
92
|
required: boolean;
|
|
@@ -81,7 +81,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
81
81
|
readonly validator: (value: string) => boolean;
|
|
82
82
|
};
|
|
83
83
|
}>> & {
|
|
84
|
-
[x: `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
84
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
85
85
|
}, {
|
|
86
86
|
readonly: boolean;
|
|
87
87
|
required: boolean;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
value: {
|
|
3
3
|
type: (NumberConstructor | StringConstructor)[];
|
|
4
|
-
required: true;
|
|
5
4
|
};
|
|
6
5
|
tag: {
|
|
7
6
|
type: StringConstructor;
|
|
@@ -11,6 +10,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
10
|
label: StringConstructor;
|
|
12
11
|
icon: StringConstructor;
|
|
13
12
|
disabled: BooleanConstructor;
|
|
13
|
+
exact: BooleanConstructor;
|
|
14
14
|
size: {
|
|
15
15
|
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
16
16
|
readonly validator: (value: string) => boolean;
|
|
@@ -18,15 +18,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
}, {
|
|
19
19
|
variant: any;
|
|
20
20
|
grow: any;
|
|
21
|
-
|
|
21
|
+
elRef: import("vue").Ref<any>;
|
|
22
|
+
cLabel: import("vue").ComputedRef<string | number | undefined>;
|
|
23
|
+
cValue: import("vue").ComputedRef<string | number | undefined>;
|
|
24
|
+
cSize: import("vue").ComputedRef<any>;
|
|
22
25
|
tabs: any;
|
|
26
|
+
sizeClasses: import("vue").ComputedRef<"" | "text-xs" | "text-sm" | "text-lg" | "text-xl">;
|
|
23
27
|
teleportTo: import("vue").Ref<null>;
|
|
24
28
|
onClickTab: () => void;
|
|
25
29
|
selected: import("vue").Ref<boolean>;
|
|
26
30
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
31
|
value: {
|
|
28
32
|
type: (NumberConstructor | StringConstructor)[];
|
|
29
|
-
required: true;
|
|
30
33
|
};
|
|
31
34
|
tag: {
|
|
32
35
|
type: StringConstructor;
|
|
@@ -36,6 +39,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
39
|
label: StringConstructor;
|
|
37
40
|
icon: StringConstructor;
|
|
38
41
|
disabled: BooleanConstructor;
|
|
42
|
+
exact: BooleanConstructor;
|
|
39
43
|
size: {
|
|
40
44
|
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
41
45
|
readonly validator: (value: string) => boolean;
|
|
@@ -43,5 +47,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
47
|
}>>, {
|
|
44
48
|
tag: string;
|
|
45
49
|
disabled: boolean;
|
|
50
|
+
exact: boolean;
|
|
46
51
|
}>;
|
|
47
52
|
export default _default;
|
|
@@ -5,12 +5,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5
5
|
type: PropType<"line" | "block">;
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
|
+
align: {
|
|
9
|
+
type: PropType<"left" | "right" | "center">;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
8
12
|
ghost: BooleanConstructor;
|
|
9
13
|
grow: BooleanConstructor;
|
|
14
|
+
exact: BooleanConstructor;
|
|
10
15
|
color: {
|
|
11
16
|
readonly type: StringConstructor;
|
|
12
17
|
readonly default: string | undefined;
|
|
13
18
|
};
|
|
19
|
+
size: {
|
|
20
|
+
readonly type: PropType<import("../../composables/common").Size>;
|
|
21
|
+
readonly validator: (value: string) => boolean;
|
|
22
|
+
};
|
|
14
23
|
}, {
|
|
15
24
|
scrollRef: import("vue").Ref<any>;
|
|
16
25
|
wrapperRef: import("vue").Ref<HTMLElement | undefined>;
|
|
@@ -24,17 +33,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
33
|
type: PropType<"line" | "block">;
|
|
25
34
|
default: string;
|
|
26
35
|
};
|
|
36
|
+
align: {
|
|
37
|
+
type: PropType<"left" | "right" | "center">;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
27
40
|
ghost: BooleanConstructor;
|
|
28
41
|
grow: BooleanConstructor;
|
|
42
|
+
exact: BooleanConstructor;
|
|
29
43
|
color: {
|
|
30
44
|
readonly type: StringConstructor;
|
|
31
45
|
readonly default: string | undefined;
|
|
32
46
|
};
|
|
47
|
+
size: {
|
|
48
|
+
readonly type: PropType<import("../../composables/common").Size>;
|
|
49
|
+
readonly validator: (value: string) => boolean;
|
|
50
|
+
};
|
|
33
51
|
}>> & {
|
|
34
52
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
35
53
|
}, {
|
|
36
54
|
color: string;
|
|
55
|
+
align: "left" | "right" | "center";
|
|
37
56
|
ghost: boolean;
|
|
57
|
+
exact: boolean;
|
|
38
58
|
variant: "line" | "block";
|
|
39
59
|
grow: boolean;
|
|
40
60
|
}>;
|
|
@@ -5,6 +5,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5
5
|
type: StringConstructor;
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
|
+
rows: NumberConstructor;
|
|
8
9
|
max: NumberConstructor;
|
|
9
10
|
maxlength: NumberConstructor;
|
|
10
11
|
min: NumberConstructor;
|
|
@@ -16,6 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
17
|
};
|
|
17
18
|
preventEnter: BooleanConstructor;
|
|
18
19
|
inputClass: StringConstructor;
|
|
20
|
+
block: BooleanConstructor;
|
|
19
21
|
modelValue: import("vue").PropType<[string, number, boolean, object, []]>;
|
|
20
22
|
name: StringConstructor;
|
|
21
23
|
readonly: BooleanConstructor;
|
|
@@ -55,6 +57,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
57
|
type: StringConstructor;
|
|
56
58
|
default: string;
|
|
57
59
|
};
|
|
60
|
+
rows: NumberConstructor;
|
|
58
61
|
max: NumberConstructor;
|
|
59
62
|
maxlength: NumberConstructor;
|
|
60
63
|
min: NumberConstructor;
|
|
@@ -66,6 +69,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
66
69
|
};
|
|
67
70
|
preventEnter: BooleanConstructor;
|
|
68
71
|
inputClass: StringConstructor;
|
|
72
|
+
block: BooleanConstructor;
|
|
69
73
|
modelValue: import("vue").PropType<[string, number, boolean, object, []]>;
|
|
70
74
|
name: StringConstructor;
|
|
71
75
|
readonly: BooleanConstructor;
|
|
@@ -86,11 +90,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
86
90
|
readonly validator: (value: string) => boolean;
|
|
87
91
|
};
|
|
88
92
|
}>> & {
|
|
89
|
-
[x: `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
93
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
90
94
|
}, {
|
|
91
95
|
readonly: boolean;
|
|
92
96
|
dir: string;
|
|
93
97
|
required: boolean;
|
|
98
|
+
block: boolean;
|
|
94
99
|
disabled: boolean;
|
|
95
100
|
loading: boolean;
|
|
96
101
|
validateOnInput: boolean;
|
|
@@ -65,7 +65,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
65
|
readonly validator: (value: string) => boolean;
|
|
66
66
|
};
|
|
67
67
|
}>> & {
|
|
68
|
-
[x: `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
68
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
69
69
|
}, {
|
|
70
70
|
readonly: boolean;
|
|
71
71
|
glow: boolean;
|
|
@@ -17,7 +17,7 @@ export declare const useColors: {
|
|
|
17
17
|
getPalette: (color: string) => ColorPalette;
|
|
18
18
|
getColorOpacity: (color: string, opacity: number) => string;
|
|
19
19
|
};
|
|
20
|
-
props(defaultColor?: string): {
|
|
20
|
+
props(defaultColor?: string | undefined): {
|
|
21
21
|
readonly color: {
|
|
22
22
|
readonly type: StringConstructor;
|
|
23
23
|
readonly default: string | undefined;
|
package/lib/composables/css.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const useCSS: (namespace?: string) => {
|
|
2
|
-
get: (name: string, value: string, theme?: string, modifier?: string) => string;
|
|
3
|
-
variable: (name: string, theme?: string, modifier?: string) => string;
|
|
4
|
-
variables: (object: Record<string, string | object>, theme?: string, modifier?: string) => Record<string, string>;
|
|
1
|
+
export declare const useCSS: (namespace?: string | undefined) => {
|
|
2
|
+
get: (name: string, value: string, theme?: string | undefined, modifier?: string | undefined) => string;
|
|
3
|
+
variable: (name: string, theme?: string | undefined, modifier?: string | undefined) => string;
|
|
4
|
+
variables: (object: Record<string, string | object>, theme?: string | undefined, modifier?: string | undefined) => Record<string, string>;
|
|
5
5
|
};
|
package/lib/create.d.ts
CHANGED