@kuina-ui/vue 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +142 -2
- package/dist/components/avatar-group/AvatarGroup.vue.d.ts +22 -0
- package/dist/components/avatar-group/avatar-group.theme.d.ts +26 -0
- package/dist/components/avatar-group/index.d.ts +2 -0
- package/dist/components/text-field/TextField.vue.d.ts +42 -0
- package/dist/components/text-field/index.d.ts +2 -0
- package/dist/components/text-field/text-field.theme.d.ts +53 -0
- package/dist/components/textarea/Textarea.vue.d.ts +36 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/textarea.theme.d.ts +42 -0
- package/dist/elements/alert/Alert.vue.d.ts +33 -0
- package/dist/elements/alert/alert.theme.d.ts +43 -0
- package/dist/elements/alert/index.d.ts +2 -0
- package/dist/elements/avatar/Avatar.vue.d.ts +27 -0
- package/dist/elements/avatar/avatar.theme.d.ts +52 -0
- package/dist/elements/avatar/index.d.ts +2 -0
- package/dist/elements/badge/Badge.vue.d.ts +29 -0
- package/dist/elements/badge/badge.theme.d.ts +33 -0
- package/dist/elements/badge/index.d.ts +2 -0
- package/dist/elements/button/Button.vue.d.ts +37 -0
- package/dist/elements/button/button.theme.d.ts +66 -0
- package/dist/elements/button/index.d.ts +2 -0
- package/dist/elements/checkbox/Checkbox.vue.d.ts +23 -0
- package/dist/elements/checkbox/checkbox.theme.d.ts +26 -0
- package/dist/elements/checkbox/index.d.ts +2 -0
- package/dist/elements/circular-progress/CircularProgress.vue.d.ts +13 -0
- package/dist/elements/circular-progress/circular-progress.theme.d.ts +6 -0
- package/dist/elements/circular-progress/index.d.ts +2 -0
- package/dist/elements/loading-dots/LoadingDots.vue.d.ts +12 -0
- package/dist/elements/loading-dots/index.d.ts +2 -0
- package/dist/elements/loading-dots/loading-dots.theme.d.ts +4 -0
- package/dist/elements/loading-indicator/LoadingIndicator.vue.d.ts +12 -0
- package/dist/elements/loading-indicator/index.d.ts +2 -0
- package/dist/elements/loading-indicator/loading-indicator.theme.d.ts +4 -0
- package/dist/elements/radio-group/RadioGroup.vue.d.ts +36 -0
- package/dist/elements/radio-group/index.d.ts +2 -0
- package/dist/elements/radio-group/radio-group.theme.d.ts +68 -0
- package/dist/elements/switch/Switch.vue.d.ts +26 -0
- package/dist/elements/switch/index.d.ts +2 -0
- package/dist/elements/switch/switch.theme.d.ts +52 -0
- package/dist/elements/text-link/TextLink.vue.d.ts +31 -0
- package/dist/elements/text-link/index.d.ts +2 -0
- package/dist/elements/text-link/text-link.theme.d.ts +40 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +1 -0
- package/dist/nuxt.d.ts +2 -0
- package/dist/nuxt.js +21 -0
- package/dist/shared/composables/useCustomColor.d.ts +8 -0
- package/dist/shared/composables/useFieldDescription.d.ts +15 -0
- package/dist/shared/utils/tv.d.ts +2 -0
- package/dist/src-CcuBQU4y.js +2371 -0
- package/package.json +70 -4
- package/src/index.css +18 -0
- package/src/shared/styles/theme.css +24 -0
- package/src/shared/styles/utilities/checkbox-check-mark.css +47 -0
- package/src/shared/styles/utilities/loading-dots.css +29 -0
- package/src/shared/styles/utilities/loading-indicator.css +33 -0
- package/src/shared/styles/variants/dark.css +2 -0
- package/src/shared/styles/variants/light.css +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Kuina
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,143 @@
|
|
|
1
|
-
|
|
1
|
+
<picture>
|
|
2
|
+
<source media="(prefers-color-scheme: dark)" srcset=".github/assets/kuina-logo-dark.svg" />
|
|
3
|
+
<img src=".github/assets/kuina-logo-light.svg" alt="Kuina UI logo" height="64" />
|
|
4
|
+
</picture>
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
# Kuina UI — Vue
|
|
7
|
+
|
|
8
|
+
[![npm version][npm-version-src]][npm-version-href]
|
|
9
|
+
[![Vue][vue-src]][vue-href]
|
|
10
|
+
[![Nuxt][nuxt-src]][nuxt-href]
|
|
11
|
+
[![Tailwind CSS][tailwindcss-src]][tailwindcss-href]
|
|
12
|
+
|
|
13
|
+
Kuina UI is a library of accessible, typed [Vue](https://vuejs.org) components built from scratch with [Tailwind CSS v4](https://tailwindcss.com/), in light and dark themes. It works as a module in [Nuxt](https://nuxt.com) and with plain imports in any Vue app.
|
|
14
|
+
|
|
15
|
+
> [!NOTE]
|
|
16
|
+
> Kuina UI is in early development.
|
|
17
|
+
|
|
18
|
+
## Documentation
|
|
19
|
+
|
|
20
|
+
The documentation lives in its own repository: [Kuina-UI/docs](https://github.com/Kuina-UI/docs).
|
|
21
|
+
|
|
22
|
+
## Installation
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npm install @kuina-ui/vue tailwindcss
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Nuxt
|
|
29
|
+
|
|
30
|
+
1. Add the Kuina UI module in your `nuxt.config.ts`:
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
export default defineNuxtConfig({
|
|
34
|
+
modules: ['@kuina-ui/vue/nuxt'],
|
|
35
|
+
css: ['~/assets/css/main.css']
|
|
36
|
+
})
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
2. Import Tailwind CSS and Kuina UI in your `app/assets/css/main.css`:
|
|
40
|
+
|
|
41
|
+
```css
|
|
42
|
+
@import "tailwindcss";
|
|
43
|
+
@import "@kuina-ui/vue";
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
3. Set the theme on `<html>` in your `app.vue`:
|
|
47
|
+
|
|
48
|
+
```vue
|
|
49
|
+
<script setup lang="ts">
|
|
50
|
+
useHead({
|
|
51
|
+
htmlAttrs: { 'data-theme': 'light' }
|
|
52
|
+
})
|
|
53
|
+
</script>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Components are registered for you: write `<KButton>` anywhere, no import needed.
|
|
57
|
+
|
|
58
|
+
### Vue
|
|
59
|
+
|
|
60
|
+
1. Install the Tailwind CSS Vite plugin and add it to your `vite.config.ts`:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
npm install @tailwindcss/vite
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
```ts
|
|
67
|
+
import { defineConfig } from 'vite'
|
|
68
|
+
import vue from '@vitejs/plugin-vue'
|
|
69
|
+
import tailwindcss from '@tailwindcss/vite'
|
|
70
|
+
|
|
71
|
+
export default defineConfig({
|
|
72
|
+
plugins: [vue(), tailwindcss()]
|
|
73
|
+
})
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
2. Import Tailwind CSS and Kuina UI in your `src/assets/main.css`, then load it in `main.ts`:
|
|
77
|
+
|
|
78
|
+
```css
|
|
79
|
+
@import "tailwindcss";
|
|
80
|
+
@import "@kuina-ui/vue";
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
```ts
|
|
84
|
+
import './assets/main.css'
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
3. Set the theme on `<html>` in your `index.html`:
|
|
88
|
+
|
|
89
|
+
```html
|
|
90
|
+
<html lang="en" data-theme="light">
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
4. Import the components you use:
|
|
94
|
+
|
|
95
|
+
```vue
|
|
96
|
+
<script setup lang="ts">
|
|
97
|
+
import { KButton } from '@kuina-ui/vue'
|
|
98
|
+
</script>
|
|
99
|
+
|
|
100
|
+
<template>
|
|
101
|
+
<KButton>Save</KButton>
|
|
102
|
+
</template>
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Themes
|
|
106
|
+
|
|
107
|
+
Kuina UI comes in a light and a dark theme. `data-theme` on `<html>` picks it: set it to `light` or `dark`, and every component follows, along with the `light:` and `dark:` variants in your own classes.
|
|
108
|
+
|
|
109
|
+
## Contribution
|
|
110
|
+
|
|
111
|
+
Found a bug or have an idea? [Open an issue](https://github.com/Kuina-UI/vue/issues/new).
|
|
112
|
+
|
|
113
|
+
Commit messages follow [Conventional Commits](https://www.conventionalcommits.org/) (`feat: …`, `fix: …`, `chore: …`), in English.
|
|
114
|
+
|
|
115
|
+
## Credits
|
|
116
|
+
|
|
117
|
+
- [vuejs/core](https://github.com/vuejs/core)
|
|
118
|
+
- [vitejs/vite](https://github.com/vitejs/vite)
|
|
119
|
+
- [nuxt/nuxt](https://github.com/nuxt/nuxt)
|
|
120
|
+
- [tailwindlabs/tailwindcss](https://github.com/tailwindlabs/tailwindcss)
|
|
121
|
+
- [lucide-icons/lucide](https://github.com/lucide-icons/lucide)
|
|
122
|
+
- [nuxt-content/docus](https://github.com/nuxt-content/docus)
|
|
123
|
+
|
|
124
|
+
## Support Kuina UI
|
|
125
|
+
|
|
126
|
+
Kuina UI is free and open source. If it saves you time, you can support its development:
|
|
127
|
+
|
|
128
|
+
- [GitHub Sponsors](https://github.com/sponsors/mgcodeur)
|
|
129
|
+
- [Open Collective](https://opencollective.com/mgcodeur)
|
|
130
|
+
- [Ko-fi](https://ko-fi.com/mgcodeur)
|
|
131
|
+
|
|
132
|
+
## License
|
|
133
|
+
|
|
134
|
+
[MIT](LICENSE): free to use, modify and redistribute, including for commercial projects.
|
|
135
|
+
|
|
136
|
+
[npm-version-src]: https://img.shields.io/npm/v/@kuina-ui/vue?color=18181B
|
|
137
|
+
[npm-version-href]: https://npmjs.com/package/@kuina-ui/vue
|
|
138
|
+
[vue-src]: https://img.shields.io/badge/Vue-18181B?logo=vuedotjs
|
|
139
|
+
[vue-href]: https://vuejs.org
|
|
140
|
+
[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt
|
|
141
|
+
[nuxt-href]: https://nuxt.com
|
|
142
|
+
[tailwindcss-src]: https://img.shields.io/badge/Tailwind_CSS-18181B?logo=tailwindcss
|
|
143
|
+
[tailwindcss-href]: https://tailwindcss.com
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AvatarProps } from '../../elements/avatar';
|
|
2
|
+
import type { ClassNameValue } from '../../shared/utils/tv';
|
|
3
|
+
import type { AvatarGroupSlotName, AvatarGroupThemeVariants } from './avatar-group.theme';
|
|
4
|
+
export type AvatarGroupMember = Pick<AvatarProps, 'name' | 'imageUrl' | 'icon' | 'initials' | 'color' | 'variant'>;
|
|
5
|
+
export interface AvatarGroupProps {
|
|
6
|
+
avatars: AvatarGroupMember[];
|
|
7
|
+
label?: string;
|
|
8
|
+
size?: AvatarProps['size'];
|
|
9
|
+
stack?: AvatarGroupThemeVariants['stack'];
|
|
10
|
+
overflowCount?: number;
|
|
11
|
+
surface?: AvatarGroupThemeVariants['surface'];
|
|
12
|
+
ui?: Partial<Record<AvatarGroupSlotName, ClassNameValue>>;
|
|
13
|
+
class?: ClassNameValue;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
declare const __VLS_export: import("vue").DefineComponent<AvatarGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarGroupProps> & Readonly<{}>, {
|
|
18
|
+
size: "3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl";
|
|
19
|
+
overflowCount: number;
|
|
20
|
+
stack: "start" | "end";
|
|
21
|
+
surface: "canvas" | "widget";
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type VariantProps } from '../../shared/utils/tv';
|
|
2
|
+
export declare const avatarGroupTheme: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
stack: {
|
|
4
|
+
start: {
|
|
5
|
+
base: string;
|
|
6
|
+
};
|
|
7
|
+
end: {
|
|
8
|
+
base: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
surface: {
|
|
12
|
+
widget: {
|
|
13
|
+
base: string;
|
|
14
|
+
};
|
|
15
|
+
canvas: {
|
|
16
|
+
base: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
hasOverflow: {
|
|
20
|
+
true: string;
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
base: string;
|
|
24
|
+
}, undefined, undefined, undefined, undefined>;
|
|
25
|
+
export type AvatarGroupThemeVariants = VariantProps<typeof avatarGroupTheme>;
|
|
26
|
+
export type AvatarGroupSlotName = keyof ReturnType<typeof avatarGroupTheme>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
import type { ClassNameValue } from '../../shared/utils/tv';
|
|
3
|
+
import type { TextFieldSlotName, TextFieldThemeVariants } from './text-field.theme';
|
|
4
|
+
export interface TextFieldProps {
|
|
5
|
+
label: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
type?: 'text' | 'email' | 'password' | 'search' | 'tel' | 'url' | 'number';
|
|
8
|
+
variant?: TextFieldThemeVariants['variant'];
|
|
9
|
+
size?: TextFieldThemeVariants['size'];
|
|
10
|
+
pill?: boolean;
|
|
11
|
+
leadingIcon?: Component;
|
|
12
|
+
trailingIcon?: Component;
|
|
13
|
+
trailingIconLabel?: string;
|
|
14
|
+
trailingActionLabel?: string;
|
|
15
|
+
trailingActionHref?: string;
|
|
16
|
+
hint?: string;
|
|
17
|
+
errorMessage?: string;
|
|
18
|
+
invalid?: boolean;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
ui?: Partial<Record<TextFieldSlotName, ClassNameValue>>;
|
|
21
|
+
class?: ClassNameValue;
|
|
22
|
+
}
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
25
|
+
declare const __VLS_export: import("vue").DefineComponent<TextFieldProps & {
|
|
26
|
+
modelValue?: string;
|
|
27
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
29
|
+
trailingIconClick: (event: MouseEvent) => any;
|
|
30
|
+
trailingActionClick: (event: MouseEvent) => any;
|
|
31
|
+
}, string, import("vue").PublicProps, Readonly<TextFieldProps & {
|
|
32
|
+
modelValue?: string;
|
|
33
|
+
}> & Readonly<{
|
|
34
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
35
|
+
onTrailingIconClick?: ((event: MouseEvent) => any) | undefined;
|
|
36
|
+
onTrailingActionClick?: ((event: MouseEvent) => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
size: "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl";
|
|
39
|
+
variant: "soft" | "outline";
|
|
40
|
+
pill: boolean;
|
|
41
|
+
type: "number" | "search" | "text" | "email" | "password" | "tel" | "url";
|
|
42
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type VariantProps } from '../../shared/utils/tv';
|
|
2
|
+
export declare const textFieldTheme: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
variant: {
|
|
4
|
+
outline: string;
|
|
5
|
+
soft: string;
|
|
6
|
+
};
|
|
7
|
+
size: Record<"md" | "lg" | "xl" | "2xl" | "3xl" | "4xl", {
|
|
8
|
+
base: string[];
|
|
9
|
+
label: string;
|
|
10
|
+
leadingIcon: string;
|
|
11
|
+
trailingIcon: string;
|
|
12
|
+
trailingAction: string;
|
|
13
|
+
}>;
|
|
14
|
+
pill: {
|
|
15
|
+
true: string;
|
|
16
|
+
};
|
|
17
|
+
hasLeadingIcon: {
|
|
18
|
+
true: string;
|
|
19
|
+
};
|
|
20
|
+
trailingContent: {
|
|
21
|
+
none: string;
|
|
22
|
+
icon: {
|
|
23
|
+
trailingIcon: string;
|
|
24
|
+
};
|
|
25
|
+
iconButton: string;
|
|
26
|
+
action: string;
|
|
27
|
+
};
|
|
28
|
+
invalid: {
|
|
29
|
+
true: {
|
|
30
|
+
base: string;
|
|
31
|
+
label: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
disabled: {
|
|
35
|
+
true: {
|
|
36
|
+
container: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
40
|
+
root: string;
|
|
41
|
+
container: string;
|
|
42
|
+
base: string;
|
|
43
|
+
label: string;
|
|
44
|
+
leadingIcon: string;
|
|
45
|
+
trailingIcon: string;
|
|
46
|
+
trailingIconButton: string;
|
|
47
|
+
trailingAction: string;
|
|
48
|
+
hint: string;
|
|
49
|
+
errorMessage: string;
|
|
50
|
+
errorIcon: string;
|
|
51
|
+
}, undefined, undefined, undefined, undefined>;
|
|
52
|
+
export type TextFieldThemeVariants = VariantProps<typeof textFieldTheme>;
|
|
53
|
+
export type TextFieldSlotName = keyof ReturnType<typeof textFieldTheme>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ClassNameValue } from '../../shared/utils/tv';
|
|
2
|
+
import type { TextareaSlotName, TextareaThemeVariants } from './textarea.theme';
|
|
3
|
+
export interface TextareaProps {
|
|
4
|
+
label: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
rows?: number;
|
|
7
|
+
autoResize?: boolean;
|
|
8
|
+
maxRows?: number;
|
|
9
|
+
maxlength?: number;
|
|
10
|
+
variant?: TextareaThemeVariants['variant'];
|
|
11
|
+
size?: TextareaThemeVariants['size'];
|
|
12
|
+
pill?: boolean;
|
|
13
|
+
hint?: string;
|
|
14
|
+
errorMessage?: string;
|
|
15
|
+
invalid?: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
ui?: Partial<Record<TextareaSlotName, ClassNameValue>>;
|
|
18
|
+
class?: ClassNameValue;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
declare const __VLS_export: import("vue").DefineComponent<TextareaProps & {
|
|
23
|
+
modelValue?: string;
|
|
24
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<TextareaProps & {
|
|
27
|
+
modelValue?: string;
|
|
28
|
+
}> & Readonly<{
|
|
29
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
size: "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl";
|
|
32
|
+
variant: "soft" | "outline";
|
|
33
|
+
pill: boolean;
|
|
34
|
+
rows: number;
|
|
35
|
+
maxRows: number;
|
|
36
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type VariantProps } from '../../shared/utils/tv';
|
|
2
|
+
export declare const textareaTheme: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
variant: {
|
|
4
|
+
outline: string;
|
|
5
|
+
soft: string;
|
|
6
|
+
};
|
|
7
|
+
size: Record<"md" | "lg" | "xl" | "2xl" | "3xl" | "4xl", {
|
|
8
|
+
base: string[];
|
|
9
|
+
label: string[];
|
|
10
|
+
}>;
|
|
11
|
+
pill: {
|
|
12
|
+
true: string;
|
|
13
|
+
};
|
|
14
|
+
autoResize: {
|
|
15
|
+
true: {
|
|
16
|
+
base: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
invalid: {
|
|
20
|
+
true: {
|
|
21
|
+
base: string;
|
|
22
|
+
label: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
disabled: {
|
|
26
|
+
true: {
|
|
27
|
+
container: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}, {
|
|
31
|
+
root: string;
|
|
32
|
+
container: string;
|
|
33
|
+
base: string;
|
|
34
|
+
label: string;
|
|
35
|
+
footer: string;
|
|
36
|
+
hint: string;
|
|
37
|
+
errorMessage: string;
|
|
38
|
+
errorIcon: string;
|
|
39
|
+
characterCount: string;
|
|
40
|
+
}, undefined, undefined, undefined, undefined>;
|
|
41
|
+
export type TextareaThemeVariants = VariantProps<typeof textareaTheme>;
|
|
42
|
+
export type TextareaSlotName = keyof ReturnType<typeof textareaTheme>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
import type { ClassNameValue } from '../../shared/utils/tv';
|
|
3
|
+
import type { AlertSlotName, AlertThemeVariants } from './alert.theme';
|
|
4
|
+
export interface AlertProps {
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
variant?: AlertThemeVariants['variant'];
|
|
8
|
+
color?: AlertThemeVariants['color'];
|
|
9
|
+
icon?: Component;
|
|
10
|
+
showIcon?: boolean;
|
|
11
|
+
actionsPlacement?: AlertThemeVariants['actionsPlacement'];
|
|
12
|
+
ui?: Partial<Record<AlertSlotName, ClassNameValue>>;
|
|
13
|
+
class?: ClassNameValue;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<AlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AlertProps> & Readonly<{}>, {
|
|
18
|
+
variant: "soft" | "solid" | "outline";
|
|
19
|
+
color: "primary" | "success" | "info" | "discovery" | "danger" | "warning" | "caution";
|
|
20
|
+
actionsPlacement: "end" | "bottom";
|
|
21
|
+
showIcon: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
23
|
+
title?: (props: {}) => any;
|
|
24
|
+
} & {
|
|
25
|
+
description?: (props: {}) => any;
|
|
26
|
+
} & {
|
|
27
|
+
actions?: (props: {}) => any;
|
|
28
|
+
}>;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type VariantProps } from '../../shared/utils/tv';
|
|
2
|
+
export declare const alertTheme: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
variant: {
|
|
4
|
+
outline: string;
|
|
5
|
+
soft: string;
|
|
6
|
+
solid: string;
|
|
7
|
+
};
|
|
8
|
+
color: {
|
|
9
|
+
primary: string;
|
|
10
|
+
success: string;
|
|
11
|
+
warning: string;
|
|
12
|
+
caution: string;
|
|
13
|
+
danger: string;
|
|
14
|
+
info: string;
|
|
15
|
+
discovery: string;
|
|
16
|
+
};
|
|
17
|
+
actionsPlacement: {
|
|
18
|
+
end: string;
|
|
19
|
+
bottom: string;
|
|
20
|
+
};
|
|
21
|
+
hasActions: {
|
|
22
|
+
true: string;
|
|
23
|
+
false: {
|
|
24
|
+
body: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
hasTitle: {
|
|
28
|
+
true: {
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
root: string;
|
|
34
|
+
body: string;
|
|
35
|
+
icon: string;
|
|
36
|
+
content: string;
|
|
37
|
+
wrapper: string;
|
|
38
|
+
title: string;
|
|
39
|
+
description: string;
|
|
40
|
+
actions: string;
|
|
41
|
+
}, undefined, undefined, undefined, undefined>;
|
|
42
|
+
export type AlertThemeVariants = VariantProps<typeof alertTheme>;
|
|
43
|
+
export type AlertSlotName = keyof ReturnType<typeof alertTheme>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
import type { ClassNameValue } from '../../shared/utils/tv';
|
|
3
|
+
import type { AvatarSlotName, AvatarThemeVariants } from './avatar.theme';
|
|
4
|
+
export interface AvatarProps {
|
|
5
|
+
name?: string;
|
|
6
|
+
imageUrl?: string;
|
|
7
|
+
icon?: Component;
|
|
8
|
+
initials?: string;
|
|
9
|
+
overflowCount?: number;
|
|
10
|
+
variant?: AvatarThemeVariants['variant'];
|
|
11
|
+
color?: AvatarThemeVariants['color'];
|
|
12
|
+
size?: AvatarThemeVariants['size'];
|
|
13
|
+
pill?: boolean;
|
|
14
|
+
href?: string;
|
|
15
|
+
ui?: Partial<Record<AvatarSlotName, ClassNameValue>>;
|
|
16
|
+
class?: ClassNameValue;
|
|
17
|
+
}
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
declare const __VLS_export: import("vue").DefineComponent<AvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
|
|
21
|
+
size: "3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl";
|
|
22
|
+
variant: "soft" | "solid";
|
|
23
|
+
color: "primary" | "secondary" | "gray" | "success" | "info" | "discovery" | "danger";
|
|
24
|
+
pill: boolean;
|
|
25
|
+
name: string;
|
|
26
|
+
overflowCount: number;
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type VariantProps } from '../../shared/utils/tv';
|
|
2
|
+
export declare const avatarTheme: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
variant: {
|
|
4
|
+
soft: string;
|
|
5
|
+
solid: string;
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
primary: string;
|
|
9
|
+
secondary: string;
|
|
10
|
+
gray: string;
|
|
11
|
+
success: string;
|
|
12
|
+
info: string;
|
|
13
|
+
discovery: string;
|
|
14
|
+
danger: string;
|
|
15
|
+
};
|
|
16
|
+
size: Record<"3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl", {
|
|
17
|
+
base: string;
|
|
18
|
+
}>;
|
|
19
|
+
pill: {
|
|
20
|
+
true: string;
|
|
21
|
+
};
|
|
22
|
+
hasImage: {
|
|
23
|
+
true: {
|
|
24
|
+
base: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
isLink: {
|
|
28
|
+
true: {
|
|
29
|
+
base: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
isOverflow: {
|
|
33
|
+
true: {
|
|
34
|
+
label: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
labelCharacterCount: {
|
|
38
|
+
one: string;
|
|
39
|
+
two: string;
|
|
40
|
+
many: {
|
|
41
|
+
label: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}, {
|
|
45
|
+
base: string;
|
|
46
|
+
image: string;
|
|
47
|
+
icon: string;
|
|
48
|
+
label: string;
|
|
49
|
+
overflowSign: string;
|
|
50
|
+
}, undefined, undefined, undefined, undefined>;
|
|
51
|
+
export type AvatarThemeVariants = VariantProps<typeof avatarTheme>;
|
|
52
|
+
export type AvatarSlotName = keyof ReturnType<typeof avatarTheme>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
import type { ClassNameValue } from '../../shared/utils/tv';
|
|
3
|
+
import type { BadgeSlotName, BadgeThemeVariants } from './badge.theme';
|
|
4
|
+
export interface BadgeProps {
|
|
5
|
+
label?: string;
|
|
6
|
+
variant?: BadgeThemeVariants['variant'];
|
|
7
|
+
color?: BadgeThemeVariants['color'];
|
|
8
|
+
size?: BadgeThemeVariants['size'];
|
|
9
|
+
leadingIcon?: Component;
|
|
10
|
+
trailingIcon?: Component;
|
|
11
|
+
dot?: boolean;
|
|
12
|
+
pill?: boolean;
|
|
13
|
+
ui?: Partial<Record<BadgeSlotName, ClassNameValue>>;
|
|
14
|
+
class?: ClassNameValue;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
|
|
19
|
+
size: "sm" | "md" | "lg";
|
|
20
|
+
variant: "soft" | "solid" | "outline";
|
|
21
|
+
color: "secondary" | "gray" | "success" | "info" | "discovery" | "danger" | "warning";
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
23
|
+
default?: (props: {}) => any;
|
|
24
|
+
}>;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type VariantProps } from '../../shared/utils/tv';
|
|
2
|
+
export declare const badgeTheme: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
variant: {
|
|
4
|
+
soft: string;
|
|
5
|
+
solid: string;
|
|
6
|
+
outline: string;
|
|
7
|
+
};
|
|
8
|
+
color: {
|
|
9
|
+
secondary: string;
|
|
10
|
+
gray: string;
|
|
11
|
+
success: string;
|
|
12
|
+
warning: string;
|
|
13
|
+
danger: string;
|
|
14
|
+
info: string;
|
|
15
|
+
discovery: string;
|
|
16
|
+
};
|
|
17
|
+
size: Record<"sm" | "md" | "lg", {
|
|
18
|
+
base: string[];
|
|
19
|
+
dot: string;
|
|
20
|
+
leadingIcon: string;
|
|
21
|
+
trailingIcon: string;
|
|
22
|
+
}>;
|
|
23
|
+
pill: {
|
|
24
|
+
true: string;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
base: string;
|
|
28
|
+
dot: string;
|
|
29
|
+
leadingIcon: string;
|
|
30
|
+
trailingIcon: string;
|
|
31
|
+
}, undefined, undefined, undefined, undefined>;
|
|
32
|
+
export type BadgeThemeVariants = VariantProps<typeof badgeTheme>;
|
|
33
|
+
export type BadgeSlotName = keyof ReturnType<typeof badgeTheme>;
|