@indielayer/ui 1.0.0-alpha.0 → 1.0.0-alpha.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/README.md +26 -10
- package/lib/components/avatar/Avatar.vue.d.ts +2 -2
- package/lib/components/badge/Badge.vue.d.ts +2 -2
- package/lib/components/button/Button.vue.d.ts +2 -2
- package/lib/components/button/ButtonGroup.vue.d.ts +2 -2
- package/lib/components/checkbox/Checkbox.vue.d.ts +5 -4
- package/lib/components/drawer/Drawer.vue.d.ts +1 -1
- package/lib/components/icon/Icon.vue.d.ts +2 -2
- package/lib/components/index.d.ts +2 -2
- package/lib/components/input/Input.vue.d.ts +4 -3
- package/lib/components/menu/Menu.vue.d.ts +2 -2
- package/lib/components/menu/MenuItem.vue.d.ts +3 -3
- package/lib/components/notifications/Notifications.vue.d.ts +2 -2
- package/lib/components/pagination/Pagination.vue.d.ts +3 -2
- package/lib/components/pagination/PaginationItem.vue.d.ts +2 -2
- package/lib/components/radio/Radio.vue.d.ts +3 -3
- package/lib/components/select/Select.vue.d.ts +4 -3
- package/lib/components/slider/Slider.vue.d.ts +3 -3
- package/lib/components/spacer/Spacer.vue.d.ts +1 -1
- package/lib/components/spinner/Spinner.vue.d.ts +2 -2
- package/lib/components/{tabs → tab}/Tab.vue.d.ts +2 -2
- package/lib/components/{tabs/Tabs.vue.d.ts → tab/TabGroup.vue.d.ts} +0 -0
- package/lib/components/table/TableBody.vue.d.ts +1 -1
- package/lib/components/table/TableHead.vue.d.ts +1 -1
- package/lib/components/tag/Tag.vue.d.ts +2 -2
- package/lib/components/textarea/Textarea.vue.d.ts +4 -12
- package/lib/components/toggle/Toggle.vue.d.ts +3 -3
- package/lib/composables/colors.d.ts +1 -1
- package/lib/composables/css.d.ts +4 -4
- package/lib/composables/keys.d.ts +1 -0
- package/lib/create.d.ts +11 -0
- package/lib/index.cjs.js +2 -2
- package/lib/index.d.ts +2 -0
- package/lib/index.es.js +183 -107
- package/lib/install.d.ts +4 -6
- package/lib/nuxt.js +15 -16
- package/lib/nuxt.plugin.js +8 -0
- package/lib/style.css +1 -1
- package/lib/version.d.ts +1 -1
- package/package.json +19 -15
- package/src/components/alert/Alert.vue +164 -0
- package/src/components/avatar/Avatar.vue +137 -0
- package/src/components/badge/Badge.vue +107 -0
- package/src/components/breadcrumbs/Breadcrumbs.vue +60 -0
- package/src/components/button/Button.vue +433 -0
- package/src/components/button/ButtonGroup.vue +73 -0
- package/src/components/card/Card.vue +25 -0
- package/src/components/checkbox/Checkbox.vue +205 -0
- package/src/components/collapse/Collapse.vue +181 -0
- package/src/components/container/Container.vue +23 -0
- package/src/components/divider/Divider.vue +52 -0
- package/src/components/drawer/Drawer.vue +244 -0
- package/src/components/form/Form.vue +111 -0
- package/src/components/icon/Icon.vue +56 -0
- package/src/components/image/Image.vue +36 -0
- package/src/components/index.ts +45 -0
- package/src/components/input/Input.vue +198 -0
- package/src/components/link/Link.vue +110 -0
- package/src/components/menu/Menu.vue +118 -0
- package/src/components/menu/MenuItem.vue +277 -0
- package/src/components/modal/Modal.vue +175 -0
- package/src/components/notifications/Notifications.vue +318 -0
- package/src/components/pagination/Pagination.vue +181 -0
- package/src/components/pagination/PaginationItem.vue +58 -0
- package/src/components/popover/Popover.vue +194 -0
- package/src/components/popover/PopoverContainer.vue +23 -0
- package/src/components/progress/Progress.vue +86 -0
- package/src/components/radio/Radio.vue +220 -0
- package/src/components/scroll/Scroll.vue +143 -0
- package/src/components/select/Select.vue +408 -0
- package/src/components/skeleton/Skeleton.vue +23 -0
- package/src/components/slider/Slider.vue +240 -0
- package/src/components/spacer/Spacer.vue +11 -0
- package/src/components/spinner/Spinner.vue +45 -0
- package/src/components/tab/Tab.vue +100 -0
- package/src/components/tab/TabGroup.vue +151 -0
- package/src/components/table/Table.vue +172 -0
- package/src/components/table/TableBody.vue +13 -0
- package/src/components/table/TableCell.vue +78 -0
- package/src/components/table/TableHead.vue +15 -0
- package/src/components/table/TableHeader.vue +94 -0
- package/src/components/table/TableRow.vue +43 -0
- package/src/components/tag/Tag.vue +98 -0
- package/src/components/textarea/Textarea.vue +156 -0
- package/src/components/toggle/Toggle.vue +144 -0
- package/src/components/tooltip/Tooltip.vue +26 -0
- package/src/composables/colors-utils.ts +378 -0
- package/src/composables/colors.ts +82 -0
- package/src/composables/common.ts +20 -0
- package/src/composables/css.ts +45 -0
- package/src/composables/index.ts +7 -0
- package/src/composables/inputtable.ts +128 -0
- package/src/composables/interactive.ts +16 -0
- package/src/composables/keys.ts +8 -0
- package/src/composables/notification.ts +10 -0
- package/src/create.ts +36 -0
- package/src/exports/nuxt.js +32 -0
- package/src/exports/nuxt.plugin.js +8 -0
- package/src/exports/tailwind.preset.js +55 -0
- package/src/index.ts +8 -0
- package/src/install.ts +8 -0
- package/src/shims-vue.d.ts +6 -0
- package/src/version.ts +1 -0
package/README.md
CHANGED
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
|
|
11
11
|
- [📖 Documentation](https://indielayer.com/ui)
|
|
12
12
|
|
|
13
|
+
### Quickstart
|
|
14
|
+
```bash
|
|
15
|
+
npm init @indielayer/ui
|
|
16
|
+
```
|
|
17
|
+
|
|
13
18
|
## Getting Started
|
|
14
19
|
|
|
15
20
|
> [tailwindcss](https://tailwindcss.com) version >= 3.0 must be already present in your application
|
|
@@ -19,6 +24,7 @@
|
|
|
19
24
|
```bash
|
|
20
25
|
# using npm
|
|
21
26
|
npm install @indielayer/ui --save-dev
|
|
27
|
+
|
|
22
28
|
# using yarn
|
|
23
29
|
yarn add @indielayer/ui --dev
|
|
24
30
|
```
|
|
@@ -30,22 +36,29 @@ yarn add @indielayer/ui --dev
|
|
|
30
36
|
const indielayer = require('@indielayer/ui/tailwind.preset')
|
|
31
37
|
|
|
32
38
|
module.exports = {
|
|
39
|
+
darkMode: 'class',
|
|
33
40
|
// load indielayer ui presets
|
|
34
41
|
presets: [indielayer()],
|
|
35
42
|
// allow PurgeCSS to analyze components
|
|
36
43
|
content: [
|
|
44
|
+
'./index.html',
|
|
45
|
+
'./src/**/*.{vue,js,ts,jsx,tsx}',
|
|
37
46
|
'node_modules/@indielayer/ui/**/*',
|
|
38
|
-
'./src/**/*.vue',
|
|
39
47
|
],
|
|
40
|
-
|
|
48
|
+
theme: {
|
|
49
|
+
extend: {},
|
|
50
|
+
},
|
|
51
|
+
plugins: [],
|
|
52
|
+
}
|
|
41
53
|
```
|
|
42
54
|
|
|
43
55
|
### 3. Load the plugin
|
|
44
|
-
#### Load the plugin in your
|
|
56
|
+
#### Load the plugin in your Vue 3 application
|
|
45
57
|
|
|
46
58
|
```javascript
|
|
47
59
|
import { createApp } from 'vue'
|
|
48
60
|
import UI from '@indielayer/ui'
|
|
61
|
+
import '@indielayer/ui/styles'
|
|
49
62
|
|
|
50
63
|
const app = createApp(App)
|
|
51
64
|
|
|
@@ -53,27 +66,30 @@ app.use(UI, { prefix: 'X' })
|
|
|
53
66
|
|
|
54
67
|
// or
|
|
55
68
|
import {
|
|
56
|
-
|
|
57
|
-
|
|
69
|
+
XButton,
|
|
70
|
+
XInput,
|
|
58
71
|
// ...
|
|
59
72
|
} from '@indielayer/ui'
|
|
60
73
|
|
|
61
|
-
app.component('XButton',
|
|
62
|
-
app.component('XInput',
|
|
74
|
+
app.component('XButton', XButton)
|
|
75
|
+
app.component('XInput', XInput)
|
|
63
76
|
```
|
|
64
77
|
|
|
65
|
-
#### Load the module in your
|
|
78
|
+
#### Load the module in your Nuxt 3 application
|
|
66
79
|
|
|
67
80
|
```javascript
|
|
68
|
-
import { defineNuxtConfig } from '
|
|
81
|
+
import { defineNuxtConfig } from 'nuxt'
|
|
69
82
|
|
|
70
83
|
export default defineNuxtConfig({
|
|
71
84
|
css: ["~/assets/css/tailwind.css"],
|
|
72
|
-
|
|
85
|
+
modules: [
|
|
86
|
+
'@indielayer/ui/nuxt'
|
|
87
|
+
],
|
|
73
88
|
build: {
|
|
74
89
|
postcss: {
|
|
75
90
|
postcssOptions: {
|
|
76
91
|
plugins: {
|
|
92
|
+
'tailwindcss/nesting': {},
|
|
77
93
|
tailwindcss: {},
|
|
78
94
|
autoprefixer: {},
|
|
79
95
|
},
|
|
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
readonly default: string | undefined;
|
|
14
14
|
};
|
|
15
15
|
size: {
|
|
16
|
-
readonly type: import("vue").PropType<import("
|
|
16
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
17
17
|
readonly validator: (value: string) => boolean;
|
|
18
18
|
};
|
|
19
19
|
}, {
|
|
@@ -37,7 +37,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
37
|
readonly default: string | undefined;
|
|
38
38
|
};
|
|
39
39
|
size: {
|
|
40
|
-
readonly type: import("vue").PropType<import("
|
|
40
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
41
41
|
readonly validator: (value: string) => boolean;
|
|
42
42
|
};
|
|
43
43
|
}>>, {
|
|
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
readonly default: string | undefined;
|
|
25
25
|
};
|
|
26
26
|
size: {
|
|
27
|
-
readonly type: PropType<import("
|
|
27
|
+
readonly type: PropType<import("../../composables/common").Size>;
|
|
28
28
|
readonly validator: (value: string) => boolean;
|
|
29
29
|
};
|
|
30
30
|
}, {
|
|
@@ -55,7 +55,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
55
|
readonly default: string | undefined;
|
|
56
56
|
};
|
|
57
57
|
size: {
|
|
58
|
-
readonly type: PropType<import("
|
|
58
|
+
readonly type: PropType<import("../../composables/common").Size>;
|
|
59
59
|
readonly validator: (value: string) => boolean;
|
|
60
60
|
};
|
|
61
61
|
}>>, {
|
|
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
readonly default: string | undefined;
|
|
26
26
|
};
|
|
27
27
|
size: {
|
|
28
|
-
readonly type: import("vue").PropType<import("
|
|
28
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
29
29
|
readonly validator: (value: string) => boolean;
|
|
30
30
|
};
|
|
31
31
|
}, {
|
|
@@ -67,7 +67,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
67
67
|
readonly default: string | undefined;
|
|
68
68
|
};
|
|
69
69
|
size: {
|
|
70
|
-
readonly type: import("vue").PropType<import("
|
|
70
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
71
71
|
readonly validator: (value: string) => boolean;
|
|
72
72
|
};
|
|
73
73
|
}>>, {
|
|
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
readonly default: string | undefined;
|
|
15
15
|
};
|
|
16
16
|
size: {
|
|
17
|
-
readonly type: import("vue").PropType<import("
|
|
17
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
18
18
|
readonly validator: (value: string) => boolean;
|
|
19
19
|
};
|
|
20
20
|
}, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -33,7 +33,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
33
|
readonly default: string | undefined;
|
|
34
34
|
};
|
|
35
35
|
size: {
|
|
36
|
-
readonly type: import("vue").PropType<import("
|
|
36
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
37
37
|
readonly validator: (value: string) => boolean;
|
|
38
38
|
};
|
|
39
39
|
}>>, {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type StyleValue } from 'vue';
|
|
1
2
|
declare const _default: import("vue").DefineComponent<{
|
|
2
3
|
label: StringConstructor;
|
|
3
4
|
glow: BooleanConstructor;
|
|
@@ -21,7 +22,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
22
|
readonly default: string | undefined;
|
|
22
23
|
};
|
|
23
24
|
size: {
|
|
24
|
-
readonly type: import("vue").PropType<import("
|
|
25
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
25
26
|
readonly validator: (value: string) => boolean;
|
|
26
27
|
};
|
|
27
28
|
}, {
|
|
@@ -29,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
30
|
checked: import("vue").Ref<boolean>;
|
|
30
31
|
sizeClasses: import("vue").ComputedRef<"h-4 w-4" | "h-6 w-6" | "h-5 w-5">;
|
|
31
32
|
iconSizeClasses: import("vue").ComputedRef<"h-3 w-3" | "h-4 w-4" | "h-2 w-2">;
|
|
32
|
-
cssVariables: import("vue").ComputedRef<Record<string, string> |
|
|
33
|
+
cssVariables: import("vue").ComputedRef<Record<string, string> | StyleValue>;
|
|
33
34
|
toggle: () => void;
|
|
34
35
|
isFirstValidation: import("vue").Ref<boolean>;
|
|
35
36
|
errorInternal: any;
|
|
@@ -62,11 +63,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
62
63
|
readonly default: string | undefined;
|
|
63
64
|
};
|
|
64
65
|
size: {
|
|
65
|
-
readonly type: import("vue").PropType<import("
|
|
66
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
66
67
|
readonly validator: (value: string) => boolean;
|
|
67
68
|
};
|
|
68
69
|
}>> & {
|
|
69
|
-
[x:
|
|
70
|
+
[x: `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
70
71
|
}, {
|
|
71
72
|
readonly: boolean;
|
|
72
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
|
|
35
|
+
close: (e?: PointerEvent) => void;
|
|
36
36
|
onBeforeEnter: (el: HTMLElement) => void;
|
|
37
37
|
onEnter: (el: HTMLElement, done: () => void) => void;
|
|
38
38
|
onBeforeLeave: (el: HTMLElement) => void;
|
|
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
11
|
size: {
|
|
12
|
-
readonly type: import("vue").PropType<import("
|
|
12
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
13
13
|
readonly validator: (value: string) => boolean;
|
|
14
14
|
};
|
|
15
15
|
}, {
|
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
default: string;
|
|
27
27
|
};
|
|
28
28
|
size: {
|
|
29
|
-
readonly type: import("vue").PropType<import("
|
|
29
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
30
30
|
readonly validator: (value: string) => boolean;
|
|
31
31
|
};
|
|
32
32
|
}>>, {
|
|
@@ -37,8 +37,8 @@ export { default as XTableCell } from './table/TableCell.vue';
|
|
|
37
37
|
export { default as XTableHead } from './table/TableHead.vue';
|
|
38
38
|
export { default as XTableHeader } from './table/TableHeader.vue';
|
|
39
39
|
export { default as XTableRow } from './table/TableRow.vue';
|
|
40
|
-
export { default as XTab } from './
|
|
41
|
-
export { default as
|
|
40
|
+
export { default as XTab } from './tab/Tab.vue';
|
|
41
|
+
export { default as XTabGroup } from './tab/TabGroup.vue';
|
|
42
42
|
export { default as XTag } from './tag/Tag.vue';
|
|
43
43
|
export { default as XTextarea } from './textarea/Textarea.vue';
|
|
44
44
|
export { default as XToggle } from './toggle/Toggle.vue';
|
|
@@ -37,13 +37,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
37
|
disabled: BooleanConstructor;
|
|
38
38
|
loading: BooleanConstructor;
|
|
39
39
|
size: {
|
|
40
|
-
readonly type: import("vue").PropType<import("
|
|
40
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
41
41
|
readonly validator: (value: string) => boolean;
|
|
42
42
|
};
|
|
43
43
|
}, {
|
|
44
44
|
currentType: import("vue").Ref<string>;
|
|
45
45
|
labelClasses: import("vue").ComputedRef<"" | "text-xs" | "text-sm" | "text-lg" | "text-xl">;
|
|
46
46
|
sizeClasses: import("vue").ComputedRef<"px-2 py-1 text-xs" | "px-2 py-2 text-sm" | "px-4 py-3 text-lg" | "px-5 py-4 text-xl" | "px-3 py-2">;
|
|
47
|
+
style: string;
|
|
47
48
|
elRef: import("vue").Ref<HTMLInputElement | undefined>;
|
|
48
49
|
onChange: (e: Event) => void;
|
|
49
50
|
togglePasswordVisibility: () => void;
|
|
@@ -94,11 +95,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
94
95
|
disabled: BooleanConstructor;
|
|
95
96
|
loading: BooleanConstructor;
|
|
96
97
|
size: {
|
|
97
|
-
readonly type: import("vue").PropType<import("
|
|
98
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
98
99
|
readonly validator: (value: string) => boolean;
|
|
99
100
|
};
|
|
100
101
|
}>> & {
|
|
101
|
-
[x:
|
|
102
|
+
[x: `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
102
103
|
}, {
|
|
103
104
|
readonly: boolean;
|
|
104
105
|
dir: string;
|
|
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
readonly default: string | undefined;
|
|
16
16
|
};
|
|
17
17
|
size: {
|
|
18
|
-
readonly type: PropType<import("
|
|
18
|
+
readonly type: PropType<import("../../composables/common").Size>;
|
|
19
19
|
readonly validator: (value: string) => boolean;
|
|
20
20
|
};
|
|
21
21
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "expand"[], "expand", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -34,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
readonly default: string | undefined;
|
|
35
35
|
};
|
|
36
36
|
size: {
|
|
37
|
-
readonly type: PropType<import("
|
|
37
|
+
readonly type: PropType<import("../../composables/common").Size>;
|
|
38
38
|
readonly validator: (value: string) => boolean;
|
|
39
39
|
};
|
|
40
40
|
}>> & {
|
|
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
readonly default: string | undefined;
|
|
25
25
|
};
|
|
26
26
|
size: {
|
|
27
|
-
readonly type: import("vue").PropType<import("
|
|
27
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
28
28
|
readonly validator: (value: string) => boolean;
|
|
29
29
|
};
|
|
30
30
|
}, {
|
|
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
color: string;
|
|
36
36
|
onClick: (Function & ((...args: any[]) => any)) | undefined;
|
|
37
37
|
icon: string | undefined;
|
|
38
|
-
size: import("
|
|
38
|
+
size: import("../../composables/common").Size;
|
|
39
39
|
filled: boolean;
|
|
40
40
|
rounded: boolean;
|
|
41
41
|
item: Record<string, any>;
|
|
@@ -81,7 +81,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
81
81
|
readonly default: string | undefined;
|
|
82
82
|
};
|
|
83
83
|
size: {
|
|
84
|
-
readonly type: import("vue").PropType<import("
|
|
84
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
85
85
|
readonly validator: (value: string) => boolean;
|
|
86
86
|
};
|
|
87
87
|
}>> & {
|
|
@@ -12,7 +12,7 @@ export declare type NotificationEvent = {
|
|
|
12
12
|
action?: NotificationAction;
|
|
13
13
|
iconColor?: string;
|
|
14
14
|
title?: string;
|
|
15
|
-
style?: string
|
|
15
|
+
style?: string;
|
|
16
16
|
message?: string;
|
|
17
17
|
timeout?: number;
|
|
18
18
|
removable?: boolean;
|
|
@@ -53,7 +53,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
53
|
} | undefined;
|
|
54
54
|
iconColor?: string | undefined;
|
|
55
55
|
title?: string | undefined;
|
|
56
|
-
style?: string |
|
|
56
|
+
style?: string | undefined;
|
|
57
57
|
message?: string | undefined;
|
|
58
58
|
timeout?: number | undefined;
|
|
59
59
|
removable?: boolean | undefined;
|
|
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
16
|
size: {
|
|
17
|
-
readonly type: PropType<import("
|
|
17
|
+
readonly type: PropType<import("../../composables/common").Size>;
|
|
18
18
|
readonly validator: (value: string) => boolean;
|
|
19
19
|
};
|
|
20
20
|
}, {
|
|
@@ -25,6 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
nextIcon: string;
|
|
26
26
|
quickInput: import("vue").Ref<string>;
|
|
27
27
|
quickButtonSize: import("vue").ComputedRef<"xs" | "sm" | "md" | "lg">;
|
|
28
|
+
style: string;
|
|
28
29
|
onQuickInput: () => void;
|
|
29
30
|
prevPage: () => void;
|
|
30
31
|
nextPage: () => void;
|
|
@@ -43,7 +44,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
44
|
default: string;
|
|
44
45
|
};
|
|
45
46
|
size: {
|
|
46
|
-
readonly type: PropType<import("
|
|
47
|
+
readonly type: PropType<import("../../composables/common").Size>;
|
|
47
48
|
readonly validator: (value: string) => boolean;
|
|
48
49
|
};
|
|
49
50
|
}>> & {
|
|
@@ -6,7 +6,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6
6
|
selected: BooleanConstructor;
|
|
7
7
|
links: BooleanConstructor;
|
|
8
8
|
size: {
|
|
9
|
-
readonly type: import("vue").PropType<import("
|
|
9
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
10
10
|
readonly validator: (value: string) => boolean;
|
|
11
11
|
};
|
|
12
12
|
}, {
|
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
selected: BooleanConstructor;
|
|
20
20
|
links: BooleanConstructor;
|
|
21
21
|
size: {
|
|
22
|
-
readonly type: import("vue").PropType<import("
|
|
22
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
23
23
|
readonly validator: (value: string) => boolean;
|
|
24
24
|
};
|
|
25
25
|
}>> & {
|
|
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
22
|
readonly default: string | undefined;
|
|
23
23
|
};
|
|
24
24
|
size: {
|
|
25
|
-
readonly type: import("vue").PropType<import("
|
|
25
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
26
26
|
readonly validator: (value: string) => boolean;
|
|
27
27
|
};
|
|
28
28
|
}, {
|
|
@@ -61,11 +61,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
61
|
readonly default: string | undefined;
|
|
62
62
|
};
|
|
63
63
|
size: {
|
|
64
|
-
readonly type: import("vue").PropType<import("
|
|
64
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
65
65
|
readonly validator: (value: string) => boolean;
|
|
66
66
|
};
|
|
67
67
|
}>> & {
|
|
68
|
-
[x:
|
|
68
|
+
[x: `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
69
69
|
}, {
|
|
70
70
|
readonly: boolean;
|
|
71
71
|
glow: boolean;
|
|
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
disabled: BooleanConstructor;
|
|
28
28
|
loading: BooleanConstructor;
|
|
29
29
|
size: {
|
|
30
|
-
readonly type: PropType<import("
|
|
30
|
+
readonly type: PropType<import("../../composables/common").Size>;
|
|
31
31
|
readonly validator: (value: string) => boolean;
|
|
32
32
|
};
|
|
33
33
|
}, {
|
|
@@ -47,6 +47,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
47
|
}[]>;
|
|
48
48
|
labelClasses: import("vue").ComputedRef<"" | "text-xs" | "text-sm" | "text-lg" | "text-xl">;
|
|
49
49
|
sizeClasses: import("vue").ComputedRef<"px-2 py-1 text-xs" | "px-2 py-2 text-sm" | "px-4 py-3 text-lg" | "px-5 py-4 text-xl" | "px-3 py-2">;
|
|
50
|
+
style: string;
|
|
50
51
|
isEmpty: (value: string | number | []) => boolean;
|
|
51
52
|
getLabel: (value: string | number | []) => string;
|
|
52
53
|
handleRemove: (e: Event, value: string) => void;
|
|
@@ -81,11 +82,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
81
82
|
disabled: BooleanConstructor;
|
|
82
83
|
loading: BooleanConstructor;
|
|
83
84
|
size: {
|
|
84
|
-
readonly type: PropType<import("
|
|
85
|
+
readonly type: PropType<import("../../composables/common").Size>;
|
|
85
86
|
readonly validator: (value: string) => boolean;
|
|
86
87
|
};
|
|
87
88
|
}>> & {
|
|
88
|
-
[x:
|
|
89
|
+
[x: `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
89
90
|
}, {
|
|
90
91
|
readonly: boolean;
|
|
91
92
|
required: boolean;
|
|
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
readonly default: string | undefined;
|
|
28
28
|
};
|
|
29
29
|
size: {
|
|
30
|
-
readonly type: import("vue").PropType<import("
|
|
30
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
31
31
|
readonly validator: (value: string) => boolean;
|
|
32
32
|
};
|
|
33
33
|
}, {
|
|
@@ -77,11 +77,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
77
77
|
readonly default: string | undefined;
|
|
78
78
|
};
|
|
79
79
|
size: {
|
|
80
|
-
readonly type: import("vue").PropType<import("
|
|
80
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
81
81
|
readonly validator: (value: string) => boolean;
|
|
82
82
|
};
|
|
83
83
|
}>> & {
|
|
84
|
-
[x:
|
|
84
|
+
[x: `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
85
85
|
}, {
|
|
86
86
|
readonly: boolean;
|
|
87
87
|
required: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
2
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
icon: StringConstructor;
|
|
3
3
|
size: {
|
|
4
|
-
readonly type: import("vue").PropType<import("
|
|
4
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
5
5
|
readonly validator: (value: string) => boolean;
|
|
6
6
|
};
|
|
7
7
|
}, {
|
|
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
10
|
icon: StringConstructor;
|
|
11
11
|
size: {
|
|
12
|
-
readonly type: import("vue").PropType<import("
|
|
12
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
13
13
|
readonly validator: (value: string) => boolean;
|
|
14
14
|
};
|
|
15
15
|
}>>, {}>;
|
|
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
icon: StringConstructor;
|
|
13
13
|
disabled: BooleanConstructor;
|
|
14
14
|
size: {
|
|
15
|
-
readonly type: import("vue").PropType<import("
|
|
15
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
16
16
|
readonly validator: (value: string) => boolean;
|
|
17
17
|
};
|
|
18
18
|
}, {
|
|
@@ -37,7 +37,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
37
|
icon: StringConstructor;
|
|
38
38
|
disabled: BooleanConstructor;
|
|
39
39
|
size: {
|
|
40
|
-
readonly type: import("vue").PropType<import("
|
|
40
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
41
41
|
readonly validator: (value: string) => boolean;
|
|
42
42
|
};
|
|
43
43
|
}>>, {
|
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
2
|
export default _default;
|
|
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
readonly default: string | undefined;
|
|
12
12
|
};
|
|
13
13
|
size: {
|
|
14
|
-
readonly type: import("vue").PropType<import("
|
|
14
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
15
15
|
readonly validator: (value: string) => boolean;
|
|
16
16
|
};
|
|
17
17
|
}, {
|
|
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
30
|
readonly default: string | undefined;
|
|
31
31
|
};
|
|
32
32
|
size: {
|
|
33
|
-
readonly type: import("vue").PropType<import("
|
|
33
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
34
34
|
readonly validator: (value: string) => boolean;
|
|
35
35
|
};
|
|
36
36
|
}>> & {
|
|
@@ -31,16 +31,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
31
|
};
|
|
32
32
|
disabled: BooleanConstructor;
|
|
33
33
|
loading: BooleanConstructor;
|
|
34
|
-
color: {
|
|
35
|
-
readonly type: StringConstructor;
|
|
36
|
-
readonly default: string | undefined;
|
|
37
|
-
};
|
|
38
34
|
size: {
|
|
39
|
-
readonly type: import("vue").PropType<import("
|
|
35
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
40
36
|
readonly validator: (value: string) => boolean;
|
|
41
37
|
};
|
|
42
38
|
}, {
|
|
43
39
|
elRef: import("vue").Ref<HTMLTextAreaElement | undefined>;
|
|
40
|
+
style: string;
|
|
44
41
|
onInput: () => void;
|
|
45
42
|
onEnter: (e: KeyboardEvent) => void;
|
|
46
43
|
isFirstValidation: import("vue").Ref<boolean>;
|
|
@@ -84,21 +81,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
81
|
};
|
|
85
82
|
disabled: BooleanConstructor;
|
|
86
83
|
loading: BooleanConstructor;
|
|
87
|
-
color: {
|
|
88
|
-
readonly type: StringConstructor;
|
|
89
|
-
readonly default: string | undefined;
|
|
90
|
-
};
|
|
91
84
|
size: {
|
|
92
|
-
readonly type: import("vue").PropType<import("
|
|
85
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
93
86
|
readonly validator: (value: string) => boolean;
|
|
94
87
|
};
|
|
95
88
|
}>> & {
|
|
96
|
-
[x:
|
|
89
|
+
[x: `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
97
90
|
}, {
|
|
98
91
|
readonly: boolean;
|
|
99
92
|
dir: string;
|
|
100
93
|
required: boolean;
|
|
101
|
-
color: string;
|
|
102
94
|
disabled: boolean;
|
|
103
95
|
loading: boolean;
|
|
104
96
|
validateOnInput: boolean;
|
|
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
22
|
readonly default: string | undefined;
|
|
23
23
|
};
|
|
24
24
|
size: {
|
|
25
|
-
readonly type: import("vue").PropType<import("
|
|
25
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
26
26
|
readonly validator: (value: string) => boolean;
|
|
27
27
|
};
|
|
28
28
|
}, {
|
|
@@ -61,11 +61,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
61
|
readonly default: string | undefined;
|
|
62
62
|
};
|
|
63
63
|
size: {
|
|
64
|
-
readonly type: import("vue").PropType<import("
|
|
64
|
+
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
65
65
|
readonly validator: (value: string) => boolean;
|
|
66
66
|
};
|
|
67
67
|
}>> & {
|
|
68
|
-
[x:
|
|
68
|
+
[x: `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): {
|
|
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
|
|
3
|
-
variable: (name: string, theme?: string
|
|
4
|
-
variables: (object: Record<string, string | object>, theme?: string
|
|
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>;
|
|
5
5
|
};
|
|
@@ -2,5 +2,6 @@ import type { InjectionKey } from 'vue';
|
|
|
2
2
|
export declare const injectTabKey: InjectionKey<any>;
|
|
3
3
|
export declare const injectFormKey: InjectionKey<any>;
|
|
4
4
|
export declare const injectIconsKey: InjectionKey<any>;
|
|
5
|
+
export declare const injectColorsKey: InjectionKey<any>;
|
|
5
6
|
export declare const injectButtonGroupKey: InjectionKey<any>;
|
|
6
7
|
export declare const injectNotificationKey: InjectionKey<any>;
|