nuance-ui 0.1.2 → 0.1.3
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.md +9 -0
- package/README.md +5 -7
- package/dist/module.json +1 -1
- package/dist/runtime/components/action-icon/action-icon-section.d.vue.ts +4 -4
- package/dist/runtime/components/action-icon/action-icon-section.vue.d.ts +4 -4
- package/dist/runtime/components/action-icon/action-icon.d.vue.ts +4 -4
- package/dist/runtime/components/action-icon/action-icon.vue +1 -1
- package/dist/runtime/components/action-icon/action-icon.vue.d.ts +4 -4
- package/dist/runtime/components/background-image.d.vue.ts +2 -2
- package/dist/runtime/components/background-image.vue.d.ts +2 -2
- package/dist/runtime/components/button/button.d.vue.ts +4 -4
- package/dist/runtime/components/button/button.vue.d.ts +4 -4
- package/dist/runtime/components/card/card.d.vue.ts +2 -2
- package/dist/runtime/components/card/card.vue.d.ts +2 -2
- package/dist/runtime/components/checkbox/checkbox-card.d.vue.ts +2 -2
- package/dist/runtime/components/checkbox/checkbox-card.vue.d.ts +2 -2
- package/dist/runtime/components/checkbox/checkbox-group.d.vue.ts +2 -2
- package/dist/runtime/components/checkbox/checkbox-group.vue.d.ts +2 -2
- package/dist/runtime/components/checkbox/checkbox-indicator.d.vue.ts +5 -5
- package/dist/runtime/components/checkbox/checkbox-indicator.vue.d.ts +5 -5
- package/dist/runtime/components/checkbox/checkbox.d.vue.ts +5 -5
- package/dist/runtime/components/checkbox/checkbox.vue.d.ts +5 -5
- package/dist/runtime/components/checkbox/lib/group.context.d.ts +4 -4
- package/dist/runtime/components/chip/chip.d.vue.ts +4 -4
- package/dist/runtime/components/chip/chip.vue.d.ts +4 -4
- package/dist/runtime/components/combobox/combobox-root.d.vue.ts +3 -3
- package/dist/runtime/components/combobox/combobox-root.vue.d.ts +3 -3
- package/dist/runtime/components/combobox/lib/context.d.ts +3 -3
- package/dist/runtime/components/container.d.vue.ts +2 -2
- package/dist/runtime/components/container.vue.d.ts +2 -2
- package/dist/runtime/components/dialog/dialog-root.d.vue.ts +5 -5
- package/dist/runtime/components/dialog/dialog-root.vue.d.ts +5 -5
- package/dist/runtime/components/input/lib/input-wrapper.context.d.ts +3 -3
- package/dist/runtime/components/input/ui/input-inline.d.vue.ts +2 -2
- package/dist/runtime/components/input/ui/input-inline.vue.d.ts +2 -2
- package/dist/runtime/components/input/ui/input-label.d.vue.ts +2 -2
- package/dist/runtime/components/input/ui/input-label.vue.d.ts +2 -2
- package/dist/runtime/components/loader/loader.d.vue.ts +3 -3
- package/dist/runtime/components/loader/loader.vue.d.ts +3 -3
- package/dist/runtime/components/nav-link/nav-link.d.vue.ts +2 -2
- package/dist/runtime/components/nav-link/nav-link.vue.d.ts +2 -2
- package/dist/runtime/components/paper.d.vue.ts +3 -3
- package/dist/runtime/components/paper.vue.d.ts +3 -3
- package/dist/runtime/components/popover/lib/context.d.ts +3 -3
- package/dist/runtime/components/popover/types/index.d.ts +3 -3
- package/dist/runtime/components/tabs/tabs-root.d.vue.ts +3 -3
- package/dist/runtime/components/tabs/tabs-root.vue.d.ts +3 -3
- package/dist/runtime/components/text.d.vue.ts +5 -5
- package/dist/runtime/components/text.vue.d.ts +5 -5
- package/dist/runtime/composals/use-style-resolver.d.ts +2 -2
- package/dist/runtime/composals/use-theme.d.ts +3 -3
- package/dist/runtime/composals/use-theme.js +2 -2
- package/dist/runtime/types/theme.d.ts +21 -21
- package/dist/runtime/utils/color-functions/get-gradient.d.ts +3 -3
- package/dist/runtime/utils/get-color-var.d.ts +2 -2
- package/dist/runtime/utils/parse-theme-color/parse-theme-color.d.ts +4 -4
- package/dist/runtime/utils/vars-resolver/create-variant-color-resolver.d.ts +3 -3
- package/package.json +1 -1
package/LICENSE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 NuxtLabs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -53,19 +53,17 @@ We welcome contributions! Please:
|
|
|
53
53
|
|
|
54
54
|
## Links
|
|
55
55
|
|
|
56
|
-
-
|
|
57
|
-
- [GitHub](https://github.com/
|
|
56
|
+
- Documentation **WIP**
|
|
57
|
+
- [GitHub](https://github.com/Igor-Iugin/nuance-ui)
|
|
58
58
|
- [NPM](https://www.npmjs.com/package/nuance-ui)
|
|
59
|
-
- [Examples](https://nuance-ui.dev/examples)
|
|
60
59
|
|
|
61
60
|
## Support
|
|
62
61
|
|
|
63
62
|
If you have questions or issues:
|
|
64
63
|
|
|
65
|
-
- [Create an Issue](https://github.com/
|
|
66
|
-
- [Discussions](https://github.com/
|
|
67
|
-
- Email: support@nuance-ui.dev
|
|
64
|
+
- [Create an Issue](https://github.com/Igor-Iugin/nuance-ui/issues)
|
|
65
|
+
- [Discussions](https://github.com/Igor-Iugin/nuance-ui/discussions)
|
|
68
66
|
|
|
69
67
|
## License
|
|
70
68
|
|
|
71
|
-
Licensed under the MIT license.
|
|
69
|
+
Licensed under the [MIT license](https://github.com/Igor-Iugin/nuance-ui/blob/main/LICENSE.md).
|
package/dist/module.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColor, NuanceRadius, NuanceSize, UiKitGradient } from '@nui/types';
|
|
2
2
|
import type { BoxProps } from '../box.vue.js';
|
|
3
3
|
export interface ActionIconSectionProps extends /* @vue-ignore */ BoxProps {
|
|
4
|
-
size?:
|
|
4
|
+
size?: NuanceSize | `compact-${NuanceSize}`;
|
|
5
5
|
variant?: 'filled' | 'light' | 'outline' | 'subtle' | 'default' | 'gradient';
|
|
6
6
|
gradient?: UiKitGradient;
|
|
7
7
|
loading?: boolean;
|
|
8
|
-
color?:
|
|
9
|
-
radius?:
|
|
8
|
+
color?: NuanceColor;
|
|
9
|
+
radius?: NuanceRadius;
|
|
10
10
|
}
|
|
11
11
|
declare var __VLS_6: {};
|
|
12
12
|
type __VLS_Slots = {} & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColor, NuanceRadius, NuanceSize, UiKitGradient } from '@nui/types';
|
|
2
2
|
import type { BoxProps } from '../box.vue.js';
|
|
3
3
|
export interface ActionIconSectionProps extends /* @vue-ignore */ BoxProps {
|
|
4
|
-
size?:
|
|
4
|
+
size?: NuanceSize | `compact-${NuanceSize}`;
|
|
5
5
|
variant?: 'filled' | 'light' | 'outline' | 'subtle' | 'default' | 'gradient';
|
|
6
6
|
gradient?: UiKitGradient;
|
|
7
7
|
loading?: boolean;
|
|
8
|
-
color?:
|
|
9
|
-
radius?:
|
|
8
|
+
color?: NuanceColor;
|
|
9
|
+
radius?: NuanceRadius;
|
|
10
10
|
}
|
|
11
11
|
declare var __VLS_6: {};
|
|
12
12
|
type __VLS_Slots = {} & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColor, NuanceRadius, NuanceSize, UiKitGradient } from '@nui/types';
|
|
2
2
|
import type { BoxProps } from '../box.vue.js';
|
|
3
3
|
export interface ActionIconProps {
|
|
4
|
-
size?:
|
|
4
|
+
size?: NuanceSize | `compact-${NuanceSize}` | string;
|
|
5
5
|
variant?: 'filled' | 'light' | 'outline' | 'subtle' | 'default' | 'gradient';
|
|
6
6
|
gradient?: UiKitGradient;
|
|
7
7
|
loading?: boolean;
|
|
8
|
-
color?:
|
|
9
|
-
radius?:
|
|
8
|
+
color?: NuanceColor;
|
|
9
|
+
radius?: NuanceRadius;
|
|
10
10
|
classes?: {
|
|
11
11
|
root?: string;
|
|
12
12
|
icon?: string;
|
|
@@ -23,7 +23,7 @@ const {
|
|
|
23
23
|
color: { type: null, required: false },
|
|
24
24
|
radius: { type: [String, Number], required: false },
|
|
25
25
|
classes: { type: Object, required: false },
|
|
26
|
-
mod: { type: null, required: false },
|
|
26
|
+
mod: { type: [Object, Array, null], required: false },
|
|
27
27
|
icon: { type: String, required: false }
|
|
28
28
|
});
|
|
29
29
|
const style = computed(() => useStyleResolver((theme) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColor, NuanceRadius, NuanceSize, UiKitGradient } from '@nui/types';
|
|
2
2
|
import type { BoxProps } from '../box.vue.js';
|
|
3
3
|
export interface ActionIconProps {
|
|
4
|
-
size?:
|
|
4
|
+
size?: NuanceSize | `compact-${NuanceSize}` | string;
|
|
5
5
|
variant?: 'filled' | 'light' | 'outline' | 'subtle' | 'default' | 'gradient';
|
|
6
6
|
gradient?: UiKitGradient;
|
|
7
7
|
loading?: boolean;
|
|
8
|
-
color?:
|
|
9
|
-
radius?:
|
|
8
|
+
color?: NuanceColor;
|
|
9
|
+
radius?: NuanceRadius;
|
|
10
10
|
classes?: {
|
|
11
11
|
root?: string;
|
|
12
12
|
icon?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceRadius } from '@nui/types';
|
|
2
2
|
import type { BoxProps } from './box.vue.js';
|
|
3
3
|
export interface BackgroundImageProps extends /* @vue-ignore */ BoxProps {
|
|
4
|
-
radius?:
|
|
4
|
+
radius?: NuanceRadius | string;
|
|
5
5
|
/** Image url */
|
|
6
6
|
src: string;
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceRadius } from '@nui/types';
|
|
2
2
|
import type { BoxProps } from './box.vue.js';
|
|
3
3
|
export interface BackgroundImageProps extends /* @vue-ignore */ BoxProps {
|
|
4
|
-
radius?:
|
|
4
|
+
radius?: NuanceRadius | string;
|
|
5
5
|
/** Image url */
|
|
6
6
|
src: string;
|
|
7
7
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColor, NuanceRadius, NuanceSize, UiKitGradient } from '@nui/types';
|
|
2
2
|
import type { HTMLAttributes } from 'vue';
|
|
3
3
|
import type { BoxProps } from '../box.vue.js';
|
|
4
4
|
export interface ButtonProps extends /* @vue-ignore */ BoxProps {
|
|
5
|
-
size?:
|
|
5
|
+
size?: NuanceSize | `compact-${NuanceSize}`;
|
|
6
6
|
variant?: 'filled' | 'light' | 'outline' | 'subtle' | 'default' | 'gradient' | 'gradient-outline';
|
|
7
7
|
gradient?: UiKitGradient;
|
|
8
8
|
loading?: boolean;
|
|
9
|
-
color?:
|
|
10
|
-
radius?:
|
|
9
|
+
color?: NuanceColor;
|
|
10
|
+
radius?: NuanceRadius;
|
|
11
11
|
classes?: {
|
|
12
12
|
root?: string;
|
|
13
13
|
inner?: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColor, NuanceRadius, NuanceSize, UiKitGradient } from '@nui/types';
|
|
2
2
|
import type { HTMLAttributes } from 'vue';
|
|
3
3
|
import type { BoxProps } from '../box.vue.js';
|
|
4
4
|
export interface ButtonProps extends /* @vue-ignore */ BoxProps {
|
|
5
|
-
size?:
|
|
5
|
+
size?: NuanceSize | `compact-${NuanceSize}`;
|
|
6
6
|
variant?: 'filled' | 'light' | 'outline' | 'subtle' | 'default' | 'gradient' | 'gradient-outline';
|
|
7
7
|
gradient?: UiKitGradient;
|
|
8
8
|
loading?: boolean;
|
|
9
|
-
color?:
|
|
10
|
-
radius?:
|
|
9
|
+
color?: NuanceColor;
|
|
10
|
+
radius?: NuanceRadius;
|
|
11
11
|
classes?: {
|
|
12
12
|
root?: string;
|
|
13
13
|
inner?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceSpacing } from '@nui/types';
|
|
2
2
|
import type { PaperProps } from '../paper.vue.js';
|
|
3
3
|
export interface CardProps extends /* @vue-ignore */ PaperProps {
|
|
4
|
-
padding?:
|
|
4
|
+
padding?: NuanceSpacing;
|
|
5
5
|
}
|
|
6
6
|
declare var __VLS_6: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceSpacing } from '@nui/types';
|
|
2
2
|
import type { PaperProps } from '../paper.vue.js';
|
|
3
3
|
export interface CardProps extends /* @vue-ignore */ PaperProps {
|
|
4
|
-
padding?:
|
|
4
|
+
padding?: NuanceSpacing;
|
|
5
5
|
}
|
|
6
6
|
declare var __VLS_6: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Mod } from '@nui/composals';
|
|
2
|
-
import type {
|
|
2
|
+
import type { NuanceRadius } from '@nui/types';
|
|
3
3
|
export interface CheckboxCardProps {
|
|
4
4
|
mod?: Mod | Mod[];
|
|
5
5
|
withBorder?: boolean;
|
|
6
|
-
radius?:
|
|
6
|
+
radius?: NuanceRadius;
|
|
7
7
|
value?: string;
|
|
8
8
|
}
|
|
9
9
|
type __VLS_Props = CheckboxCardProps;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Mod } from '@nui/composals';
|
|
2
|
-
import type {
|
|
2
|
+
import type { NuanceRadius } from '@nui/types';
|
|
3
3
|
export interface CheckboxCardProps {
|
|
4
4
|
mod?: Mod | Mod[];
|
|
5
5
|
withBorder?: boolean;
|
|
6
|
-
radius?:
|
|
6
|
+
radius?: NuanceRadius;
|
|
7
7
|
value?: string;
|
|
8
8
|
}
|
|
9
9
|
type __VLS_Props = CheckboxCardProps;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceSize } from '@nui/types';
|
|
2
2
|
import type { InputWrapperProps } from '../input/index.js';
|
|
3
3
|
export interface CheckboxGroupProps extends /* @vue-ignore */ Omit<InputWrapperProps, 'resize' | 'multiline' | 'id'> {
|
|
4
4
|
name: string;
|
|
5
|
-
size?:
|
|
5
|
+
size?: NuanceSize;
|
|
6
6
|
}
|
|
7
7
|
type __VLS_Props = CheckboxGroupProps;
|
|
8
8
|
type __VLS_ModelProps = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceSize } from '@nui/types';
|
|
2
2
|
import type { InputWrapperProps } from '../input/index.js';
|
|
3
3
|
export interface CheckboxGroupProps extends /* @vue-ignore */ Omit<InputWrapperProps, 'resize' | 'multiline' | 'id'> {
|
|
4
4
|
name: string;
|
|
5
|
-
size?:
|
|
5
|
+
size?: NuanceSize;
|
|
6
6
|
}
|
|
7
7
|
type __VLS_Props = CheckboxGroupProps;
|
|
8
8
|
type __VLS_ModelProps = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColor, NuanceSize } from '@nui/types';
|
|
2
2
|
export interface CheckboxIndicatorProps {
|
|
3
|
-
color?:
|
|
4
|
-
iconColor?:
|
|
3
|
+
color?: NuanceColor;
|
|
4
|
+
iconColor?: NuanceColor;
|
|
5
5
|
variant?: 'filled' | 'outline';
|
|
6
|
-
radius?:
|
|
7
|
-
size?:
|
|
6
|
+
radius?: NuanceSize;
|
|
7
|
+
size?: NuanceSize;
|
|
8
8
|
indeterminate?: boolean;
|
|
9
9
|
}
|
|
10
10
|
type __VLS_Props = CheckboxIndicatorProps;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColor, NuanceSize } from '@nui/types';
|
|
2
2
|
export interface CheckboxIndicatorProps {
|
|
3
|
-
color?:
|
|
4
|
-
iconColor?:
|
|
3
|
+
color?: NuanceColor;
|
|
4
|
+
iconColor?: NuanceColor;
|
|
5
5
|
variant?: 'filled' | 'outline';
|
|
6
|
-
radius?:
|
|
7
|
-
size?:
|
|
6
|
+
radius?: NuanceSize;
|
|
7
|
+
size?: NuanceSize;
|
|
8
8
|
indeterminate?: boolean;
|
|
9
9
|
}
|
|
10
10
|
type __VLS_Props = CheckboxIndicatorProps;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColor, NuanceSize } from '@nui/types';
|
|
2
2
|
import type { InlineInputProps } from '../input/index.js';
|
|
3
3
|
export interface CheckboxProps extends /* @vue-ignore */ Omit<InlineInputProps, 'id'> {
|
|
4
|
-
color?:
|
|
5
|
-
iconColor?:
|
|
4
|
+
color?: NuanceColor;
|
|
5
|
+
iconColor?: NuanceColor;
|
|
6
6
|
variant?: 'filled' | 'outline';
|
|
7
|
-
radius?:
|
|
8
|
-
size?:
|
|
7
|
+
radius?: NuanceSize;
|
|
8
|
+
size?: NuanceSize;
|
|
9
9
|
indeterminate?: boolean;
|
|
10
10
|
value?: string;
|
|
11
11
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColor, NuanceSize } from '@nui/types';
|
|
2
2
|
import type { InlineInputProps } from '../input/index.js';
|
|
3
3
|
export interface CheckboxProps extends /* @vue-ignore */ Omit<InlineInputProps, 'id'> {
|
|
4
|
-
color?:
|
|
5
|
-
iconColor?:
|
|
4
|
+
color?: NuanceColor;
|
|
5
|
+
iconColor?: NuanceColor;
|
|
6
6
|
variant?: 'filled' | 'outline';
|
|
7
|
-
radius?:
|
|
8
|
-
size?:
|
|
7
|
+
radius?: NuanceSize;
|
|
8
|
+
size?: NuanceSize;
|
|
9
9
|
indeterminate?: boolean;
|
|
10
10
|
value?: string;
|
|
11
11
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceSize } from '@nui/types';
|
|
2
2
|
import type { ModelRef } from 'vue';
|
|
3
3
|
export interface CheckboxGroupState {
|
|
4
4
|
value: ModelRef<string[]>;
|
|
5
|
-
size?:
|
|
5
|
+
size?: NuanceSize;
|
|
6
6
|
}
|
|
7
7
|
export declare const useProvideCheckboxGroup: (args_0: CheckboxGroupState) => {
|
|
8
8
|
value: ModelRef<string[]>;
|
|
9
|
-
size:
|
|
9
|
+
size: NuanceSize | undefined;
|
|
10
10
|
onUpdate: (newValue: string) => number | string[];
|
|
11
11
|
};
|
|
12
12
|
export declare const useCheckboxGroupState: () => {
|
|
13
13
|
value: ModelRef<string[]>;
|
|
14
|
-
size:
|
|
14
|
+
size: NuanceSize | undefined;
|
|
15
15
|
onUpdate: (newValue: string) => number | string[];
|
|
16
16
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColor, NuanceRadius, NuanceSize } from '@nui/types';
|
|
2
2
|
export interface ChipProps {
|
|
3
|
-
radius?:
|
|
4
|
-
size?:
|
|
3
|
+
radius?: NuanceRadius;
|
|
4
|
+
size?: NuanceSize;
|
|
5
5
|
type?: 'radio' | 'checkbox';
|
|
6
|
-
color?:
|
|
6
|
+
color?: NuanceColor;
|
|
7
7
|
id?: string;
|
|
8
8
|
variant?: 'filled' | 'outline' | 'light';
|
|
9
9
|
value?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColor, NuanceRadius, NuanceSize } from '@nui/types';
|
|
2
2
|
export interface ChipProps {
|
|
3
|
-
radius?:
|
|
4
|
-
size?:
|
|
3
|
+
radius?: NuanceRadius;
|
|
4
|
+
size?: NuanceSize;
|
|
5
5
|
type?: 'radio' | 'checkbox';
|
|
6
|
-
color?:
|
|
6
|
+
color?: NuanceColor;
|
|
7
7
|
id?: string;
|
|
8
8
|
variant?: 'filled' | 'outline' | 'light';
|
|
9
9
|
value?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceSize } from '@nui/types';
|
|
2
2
|
import type { CSSProperties } from 'vue';
|
|
3
3
|
import type { PopoverProps } from '../popover/index.js';
|
|
4
4
|
import type { ComboboxStore } from './lib/use-combobox/index.js';
|
|
@@ -9,9 +9,9 @@ export interface ComboboxProps extends /* @vue-ignore */ PopoverProps {
|
|
|
9
9
|
/** `behavior` passed down to `element.scrollIntoView`, `'instant'` by default */
|
|
10
10
|
scrollBehavior?: ScrollBehavior;
|
|
11
11
|
/** Controls items `font-size` and `padding` @default `'sm'` */
|
|
12
|
-
size?:
|
|
12
|
+
size?: NuanceSize;
|
|
13
13
|
/** Controls `padding` of the dropdown @default `4` */
|
|
14
|
-
dropdownPadding?:
|
|
14
|
+
dropdownPadding?: NuanceSize | CSSProperties['padding'];
|
|
15
15
|
/** Determines whether the `Combobox` value can be changed */
|
|
16
16
|
readOnly?: boolean;
|
|
17
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceSize } from '@nui/types';
|
|
2
2
|
import type { CSSProperties } from 'vue';
|
|
3
3
|
import type { PopoverProps } from '../popover/index.js';
|
|
4
4
|
import type { ComboboxStore } from './lib/use-combobox/index.js';
|
|
@@ -9,9 +9,9 @@ export interface ComboboxProps extends /* @vue-ignore */ PopoverProps {
|
|
|
9
9
|
/** `behavior` passed down to `element.scrollIntoView`, `'instant'` by default */
|
|
10
10
|
scrollBehavior?: ScrollBehavior;
|
|
11
11
|
/** Controls items `font-size` and `padding` @default `'sm'` */
|
|
12
|
-
size?:
|
|
12
|
+
size?: NuanceSize;
|
|
13
13
|
/** Controls `padding` of the dropdown @default `4` */
|
|
14
|
-
dropdownPadding?:
|
|
14
|
+
dropdownPadding?: NuanceSize | CSSProperties['padding'];
|
|
15
15
|
/** Determines whether the `Combobox` value can be changed */
|
|
16
16
|
readOnly?: boolean;
|
|
17
17
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceSize } from '@nui/types';
|
|
2
2
|
import type { CSSProperties, ModelRef } from 'vue';
|
|
3
3
|
import type { ComboboxItem } from '../types/index.js';
|
|
4
4
|
import type { ComboboxStore } from './use-combobox/use-combobox.js';
|
|
5
5
|
interface ComboboxState {
|
|
6
6
|
opened: ModelRef<boolean>;
|
|
7
7
|
onOptionSubmit?: (value: string, option: ComboboxItem) => void;
|
|
8
|
-
size:
|
|
8
|
+
size: NuanceSize;
|
|
9
9
|
readOnly: boolean;
|
|
10
10
|
store: ComboboxStore;
|
|
11
|
-
dropdownPadding?:
|
|
11
|
+
dropdownPadding?: NuanceSize | CSSProperties['padding'];
|
|
12
12
|
}
|
|
13
13
|
export declare const useProvide: (args_0: ComboboxState) => ComboboxState, useState: () => ComboboxState;
|
|
14
14
|
export declare const useProvideComboboxState: (args_0: ComboboxState) => ComboboxState;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceSize } from '@nui/types';
|
|
2
2
|
import type { BoxProps } from './box.vue.js';
|
|
3
3
|
export interface ContainerProps extends /* @vue-ignore */ BoxProps {
|
|
4
|
-
size?:
|
|
4
|
+
size?: NuanceSize | string | number;
|
|
5
5
|
fluid?: boolean;
|
|
6
6
|
}
|
|
7
7
|
declare var __VLS_6: {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceSize } from '@nui/types';
|
|
2
2
|
import type { BoxProps } from './box.vue.js';
|
|
3
3
|
export interface ContainerProps extends /* @vue-ignore */ BoxProps {
|
|
4
|
-
size?:
|
|
4
|
+
size?: NuanceSize | string | number;
|
|
5
5
|
fluid?: boolean;
|
|
6
6
|
}
|
|
7
7
|
declare var __VLS_6: {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceRadius, NuanceShadow, NuanceSize, NuanceSpacing } from '@nui/types';
|
|
2
2
|
import type { CSSProperties } from 'vue';
|
|
3
3
|
import type { BoxProps } from '../box.vue.js';
|
|
4
4
|
import type { TransitionName } from '../transition/index.js';
|
|
@@ -15,13 +15,13 @@ export interface DialogRootProps extends /* @vue-ignore */ Omit<BoxProps, 'is'>
|
|
|
15
15
|
/** Left/right modal offset @default `5vw` */
|
|
16
16
|
xOffset?: CSSProperties['marginLeft'];
|
|
17
17
|
/** Key of `theme.radius` or any valid CSS value to set `border-radius` @default `theme.defaultRadius` */
|
|
18
|
-
radius?:
|
|
18
|
+
radius?: NuanceRadius;
|
|
19
19
|
/** Controls width of the content area @default `'md'` */
|
|
20
|
-
size?:
|
|
20
|
+
size?: NuanceSize;
|
|
21
21
|
/** Key of `theme.shadows` or any valid CSS box-shadow value @default `'xl'` */
|
|
22
|
-
shadow?:
|
|
22
|
+
shadow?: NuanceShadow;
|
|
23
23
|
/** Key of `theme.spacing` or any valid CSS value to set content, header and footer padding @default `'md'` */
|
|
24
|
-
padding?:
|
|
24
|
+
padding?: NuanceSpacing;
|
|
25
25
|
/** Passes a class to root element */
|
|
26
26
|
rootClass?: string;
|
|
27
27
|
transition?: TransitionName;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceRadius, NuanceShadow, NuanceSize, NuanceSpacing } from '@nui/types';
|
|
2
2
|
import type { CSSProperties } from 'vue';
|
|
3
3
|
import type { BoxProps } from '../box.vue.js';
|
|
4
4
|
import type { TransitionName } from '../transition/index.js';
|
|
@@ -15,13 +15,13 @@ export interface DialogRootProps extends /* @vue-ignore */ Omit<BoxProps, 'is'>
|
|
|
15
15
|
/** Left/right modal offset @default `5vw` */
|
|
16
16
|
xOffset?: CSSProperties['marginLeft'];
|
|
17
17
|
/** Key of `theme.radius` or any valid CSS value to set `border-radius` @default `theme.defaultRadius` */
|
|
18
|
-
radius?:
|
|
18
|
+
radius?: NuanceRadius;
|
|
19
19
|
/** Controls width of the content area @default `'md'` */
|
|
20
|
-
size?:
|
|
20
|
+
size?: NuanceSize;
|
|
21
21
|
/** Key of `theme.shadows` or any valid CSS box-shadow value @default `'xl'` */
|
|
22
|
-
shadow?:
|
|
22
|
+
shadow?: NuanceShadow;
|
|
23
23
|
/** Key of `theme.spacing` or any valid CSS value to set content, header and footer padding @default `'md'` */
|
|
24
|
-
padding?:
|
|
24
|
+
padding?: NuanceSpacing;
|
|
25
25
|
/** Passes a class to root element */
|
|
26
26
|
rootClass?: string;
|
|
27
27
|
transition?: TransitionName;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceSize } from '@nui/types';
|
|
2
2
|
import type { CSSProperties } from 'vue';
|
|
3
3
|
import type { InputVariant } from '../types/index.js';
|
|
4
4
|
export interface WrapperContext {
|
|
5
5
|
id?: string | null;
|
|
6
6
|
required?: boolean;
|
|
7
|
-
radius?:
|
|
8
|
-
size?:
|
|
7
|
+
radius?: NuanceSize | string;
|
|
8
|
+
size?: NuanceSize | string;
|
|
9
9
|
variant?: InputVariant;
|
|
10
10
|
multiline?: boolean;
|
|
11
11
|
resize?: CSSProperties['resize'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceSize } from '@nui/types';
|
|
2
2
|
import type { BoxProps } from '../../box.vue.js';
|
|
3
3
|
export interface InlineInputProps extends /* @vue-ignore */ Omit<BoxProps, 'is'> {
|
|
4
4
|
id: string;
|
|
@@ -6,7 +6,7 @@ export interface InlineInputProps extends /* @vue-ignore */ Omit<BoxProps, 'is'>
|
|
|
6
6
|
description?: string;
|
|
7
7
|
error?: string;
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
|
-
size?:
|
|
9
|
+
size?: NuanceSize | string;
|
|
10
10
|
labelPosition?: 'left' | 'right';
|
|
11
11
|
}
|
|
12
12
|
declare var __VLS_6: {}, __VLS_12: {}, __VLS_18: {}, __VLS_24: {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceSize } from '@nui/types';
|
|
2
2
|
import type { BoxProps } from '../../box.vue.js';
|
|
3
3
|
export interface InlineInputProps extends /* @vue-ignore */ Omit<BoxProps, 'is'> {
|
|
4
4
|
id: string;
|
|
@@ -6,7 +6,7 @@ export interface InlineInputProps extends /* @vue-ignore */ Omit<BoxProps, 'is'>
|
|
|
6
6
|
description?: string;
|
|
7
7
|
error?: string;
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
|
-
size?:
|
|
9
|
+
size?: NuanceSize | string;
|
|
10
10
|
labelPosition?: 'left' | 'right';
|
|
11
11
|
}
|
|
12
12
|
declare var __VLS_6: {}, __VLS_12: {}, __VLS_18: {}, __VLS_24: {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceSize } from '@nui/types';
|
|
2
2
|
export interface InputLabelProps {
|
|
3
3
|
required?: boolean;
|
|
4
|
-
size?:
|
|
4
|
+
size?: NuanceSize | string;
|
|
5
5
|
}
|
|
6
6
|
declare var __VLS_1: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceSize } from '@nui/types';
|
|
2
2
|
export interface InputLabelProps {
|
|
3
3
|
required?: boolean;
|
|
4
|
-
size?:
|
|
4
|
+
size?: NuanceSize | string;
|
|
5
5
|
}
|
|
6
6
|
declare var __VLS_1: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColor, NuanceSize } from '@nui/types';
|
|
2
2
|
export type LoaderType = 'bars' | 'dots' | 'oval';
|
|
3
3
|
export interface LoaderProps {
|
|
4
|
-
size?:
|
|
5
|
-
color?:
|
|
4
|
+
size?: NuanceSize | string;
|
|
5
|
+
color?: NuanceColor | string;
|
|
6
6
|
type?: LoaderType;
|
|
7
7
|
}
|
|
8
8
|
declare const __VLS_export: import("vue").DefineComponent<LoaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LoaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColor, NuanceSize } from '@nui/types';
|
|
2
2
|
export type LoaderType = 'bars' | 'dots' | 'oval';
|
|
3
3
|
export interface LoaderProps {
|
|
4
|
-
size?:
|
|
5
|
-
color?:
|
|
4
|
+
size?: NuanceSize | string;
|
|
5
|
+
color?: NuanceColor | string;
|
|
6
6
|
type?: LoaderType;
|
|
7
7
|
}
|
|
8
8
|
declare const __VLS_export: import("vue").DefineComponent<LoaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LoaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColor } from '@nui/types';
|
|
2
2
|
import type { NuxtLinkProps } from 'nuxt/app';
|
|
3
3
|
import type { BoxProps } from '../box.vue.js';
|
|
4
4
|
export interface NavLinkProps extends /* @vue-ignore */ BoxProps, Omit<NuxtLinkProps, 'href' | 'custom'> {
|
|
@@ -7,7 +7,7 @@ export interface NavLinkProps extends /* @vue-ignore */ BoxProps, Omit<NuxtLinkP
|
|
|
7
7
|
/** Determines whether the link should have active styles @default `false` */
|
|
8
8
|
active?: boolean;
|
|
9
9
|
/** Key of `theme.colors` of any valid CSS color to control active styles @default `theme.primaryColor` */
|
|
10
|
-
color?:
|
|
10
|
+
color?: NuanceColor;
|
|
11
11
|
/** If set, label and description do not wrap to the next line @default `false` */
|
|
12
12
|
noWrap?: boolean;
|
|
13
13
|
/** If set, disabled styles will be added to the root element @default `false` */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColor } from '@nui/types';
|
|
2
2
|
import type { NuxtLinkProps } from 'nuxt/app';
|
|
3
3
|
import type { BoxProps } from '../box.vue.js';
|
|
4
4
|
export interface NavLinkProps extends /* @vue-ignore */ BoxProps, Omit<NuxtLinkProps, 'href' | 'custom'> {
|
|
@@ -7,7 +7,7 @@ export interface NavLinkProps extends /* @vue-ignore */ BoxProps, Omit<NuxtLinkP
|
|
|
7
7
|
/** Determines whether the link should have active styles @default `false` */
|
|
8
8
|
active?: boolean;
|
|
9
9
|
/** Key of `theme.colors` of any valid CSS color to control active styles @default `theme.primaryColor` */
|
|
10
|
-
color?:
|
|
10
|
+
color?: NuanceColor;
|
|
11
11
|
/** If set, label and description do not wrap to the next line @default `false` */
|
|
12
12
|
noWrap?: boolean;
|
|
13
13
|
/** If set, disabled styles will be added to the root element @default `false` */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceRadius, NuanceShadow } from '@nui/types';
|
|
2
2
|
import type { BoxProps } from './box.vue.js';
|
|
3
3
|
export interface PaperProps extends /* @vue-ignore */ BoxProps {
|
|
4
|
-
shadow?:
|
|
5
|
-
radius?:
|
|
4
|
+
shadow?: NuanceShadow;
|
|
5
|
+
radius?: NuanceRadius;
|
|
6
6
|
withBorder?: boolean;
|
|
7
7
|
}
|
|
8
8
|
declare var __VLS_6: {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceRadius, NuanceShadow } from '@nui/types';
|
|
2
2
|
import type { BoxProps } from './box.vue.js';
|
|
3
3
|
export interface PaperProps extends /* @vue-ignore */ BoxProps {
|
|
4
|
-
shadow?:
|
|
5
|
-
radius?:
|
|
4
|
+
shadow?: NuanceShadow;
|
|
5
|
+
radius?: NuanceRadius;
|
|
6
6
|
withBorder?: boolean;
|
|
7
7
|
}
|
|
8
8
|
declare var __VLS_6: {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceRadius, NuanceShadow } from '@nui/types';
|
|
2
2
|
import type { UsePopoverReturn } from './use-popover.js';
|
|
3
3
|
interface PopoverState {
|
|
4
4
|
disabled?: boolean;
|
|
@@ -6,8 +6,8 @@ interface PopoverState {
|
|
|
6
6
|
withArrow: boolean;
|
|
7
7
|
id: string;
|
|
8
8
|
onToggle: (event: ToggleEvent) => void;
|
|
9
|
-
radius?:
|
|
10
|
-
shadow?:
|
|
9
|
+
radius?: NuanceRadius;
|
|
10
|
+
shadow?: NuanceShadow;
|
|
11
11
|
}
|
|
12
12
|
export declare const useProvidePopoverState: (args_0: PopoverState) => PopoverState;
|
|
13
13
|
export declare const usePopoverState: () => PopoverState;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AlignedPlacement, OffsetOptions, Side, Strategy } from '@floating-ui/vue';
|
|
2
2
|
import type { CSSProperties } from 'vue';
|
|
3
|
-
import type {
|
|
3
|
+
import type { NuanceRadius, NuanceShadow } from '~/src/runtime/types/theme';
|
|
4
4
|
export type ArrowPosition = 'center' | 'side';
|
|
5
5
|
export type PopoverWidth = 'target' | CSSProperties['width'] | null;
|
|
6
6
|
export interface PopoverProps {
|
|
@@ -23,9 +23,9 @@ export interface PopoverProps {
|
|
|
23
23
|
/** Arrow position */
|
|
24
24
|
arrowPosition?: ArrowPosition;
|
|
25
25
|
/** Key of `theme.radius` or any valid CSS value to set border-radius @default `theme.defaultRadius` */
|
|
26
|
-
radius?:
|
|
26
|
+
radius?: NuanceRadius;
|
|
27
27
|
/** Key of `theme.shadows` or any other valid CSS `box-shadow` value */
|
|
28
|
-
shadow?:
|
|
28
|
+
shadow?: NuanceShadow;
|
|
29
29
|
/** If set, popover dropdown will not be rendered */
|
|
30
30
|
disabled?: boolean;
|
|
31
31
|
/** Changes floating ui [position strategy](https://floating-ui.com/docs/usefloating#strategy) @default `'absolute'` */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColor, NuanceRadius } from '@nui/types';
|
|
2
2
|
import type { BoxProps } from '../box.vue.js';
|
|
3
3
|
export interface TabsRootProps extends /* @vue-ignore */ BoxProps {
|
|
4
4
|
defaultTab?: string;
|
|
@@ -14,9 +14,9 @@ export interface TabsRootProps extends /* @vue-ignore */ BoxProps {
|
|
|
14
14
|
/** Determines whether tab can be deactivated, `false` by default */
|
|
15
15
|
allowTabDeactivation?: boolean;
|
|
16
16
|
/** Changes colors of `TabsTab` components when variant is `pills` or `default`, does nothing for other variants */
|
|
17
|
-
color?:
|
|
17
|
+
color?: NuanceColor;
|
|
18
18
|
/** Key of `theme.radius` or any valid CSS value to set `border-radius`, `theme.defaultRadius` by default */
|
|
19
|
-
radius?:
|
|
19
|
+
radius?: NuanceRadius;
|
|
20
20
|
/** Determines whether tabs should have inverted styles, `false` by default */
|
|
21
21
|
inverted?: boolean;
|
|
22
22
|
/** If set to `false`, `TabsPanel` content will be unmounted when the associated tab is not active, `true` by default */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColor, NuanceRadius } from '@nui/types';
|
|
2
2
|
import type { BoxProps } from '../box.vue.js';
|
|
3
3
|
export interface TabsRootProps extends /* @vue-ignore */ BoxProps {
|
|
4
4
|
defaultTab?: string;
|
|
@@ -14,9 +14,9 @@ export interface TabsRootProps extends /* @vue-ignore */ BoxProps {
|
|
|
14
14
|
/** Determines whether tab can be deactivated, `false` by default */
|
|
15
15
|
allowTabDeactivation?: boolean;
|
|
16
16
|
/** Changes colors of `TabsTab` components when variant is `pills` or `default`, does nothing for other variants */
|
|
17
|
-
color?:
|
|
17
|
+
color?: NuanceColor;
|
|
18
18
|
/** Key of `theme.radius` or any valid CSS value to set `border-radius`, `theme.defaultRadius` by default */
|
|
19
|
-
radius?:
|
|
19
|
+
radius?: NuanceRadius;
|
|
20
20
|
/** Determines whether tabs should have inverted styles, `false` by default */
|
|
21
21
|
inverted?: boolean;
|
|
22
22
|
/** If set to `false`, `TabsPanel` content will be unmounted when the associated tab is not active, `true` by default */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColor, NuanceSize, UiKitGradient } from '@nui/types';
|
|
2
2
|
import type { CSSProperties } from 'vue';
|
|
3
3
|
import type { BoxProps } from './box.vue.js';
|
|
4
4
|
type TitleOrder = 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
5
|
type TextTruncate = 'end' | 'start' | boolean;
|
|
6
6
|
export interface TextProps extends /* @vue-ignore */ BoxProps {
|
|
7
7
|
/** Controls `font-size` and `line-height`, `'md'` by default */
|
|
8
|
-
size?:
|
|
8
|
+
size?: NuanceSize | `h${TitleOrder}` | string;
|
|
9
9
|
/** Number of lines after which Text will be truncated */
|
|
10
10
|
lineClamp?: number;
|
|
11
11
|
/** Side on which Text must be truncated, if `true`, text is truncated from the start */
|
|
@@ -17,10 +17,10 @@ export interface TextProps extends /* @vue-ignore */ BoxProps {
|
|
|
17
17
|
/** Gradient configuration, ignored when `variant` is not `gradient`, `theme.defaultGradient` by default */
|
|
18
18
|
gradient?: UiKitGradient;
|
|
19
19
|
variant?: 'text' | 'gradient';
|
|
20
|
-
fz?:
|
|
21
|
-
lh?:
|
|
20
|
+
fz?: NuanceSize | `h${TitleOrder}` | string;
|
|
21
|
+
lh?: NuanceSize | string;
|
|
22
22
|
fw?: CSSProperties['font-weight'];
|
|
23
|
-
c?:
|
|
23
|
+
c?: NuanceColor;
|
|
24
24
|
}
|
|
25
25
|
declare var __VLS_6: {};
|
|
26
26
|
type __VLS_Slots = {} & {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColor, NuanceSize, UiKitGradient } from '@nui/types';
|
|
2
2
|
import type { CSSProperties } from 'vue';
|
|
3
3
|
import type { BoxProps } from './box.vue.js';
|
|
4
4
|
type TitleOrder = 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
5
|
type TextTruncate = 'end' | 'start' | boolean;
|
|
6
6
|
export interface TextProps extends /* @vue-ignore */ BoxProps {
|
|
7
7
|
/** Controls `font-size` and `line-height`, `'md'` by default */
|
|
8
|
-
size?:
|
|
8
|
+
size?: NuanceSize | `h${TitleOrder}` | string;
|
|
9
9
|
/** Number of lines after which Text will be truncated */
|
|
10
10
|
lineClamp?: number;
|
|
11
11
|
/** Side on which Text must be truncated, if `true`, text is truncated from the start */
|
|
@@ -17,10 +17,10 @@ export interface TextProps extends /* @vue-ignore */ BoxProps {
|
|
|
17
17
|
/** Gradient configuration, ignored when `variant` is not `gradient`, `theme.defaultGradient` by default */
|
|
18
18
|
gradient?: UiKitGradient;
|
|
19
19
|
variant?: 'text' | 'gradient';
|
|
20
|
-
fz?:
|
|
21
|
-
lh?:
|
|
20
|
+
fz?: NuanceSize | `h${TitleOrder}` | string;
|
|
21
|
+
lh?: NuanceSize | string;
|
|
22
22
|
fw?: CSSProperties['font-weight'];
|
|
23
|
-
c?:
|
|
23
|
+
c?: NuanceColor;
|
|
24
24
|
}
|
|
25
25
|
declare var __VLS_6: {};
|
|
26
26
|
type __VLS_Slots = {} & {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceTheme } from '@nui/types';
|
|
2
2
|
import type { CSSProperties } from 'vue';
|
|
3
|
-
export declare function useStyleResolver<T extends CSSProperties>(factory: (theme:
|
|
3
|
+
export declare function useStyleResolver<T extends CSSProperties>(factory: (theme: NuanceTheme) => T): T;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceTheme } from '@nui/types';
|
|
2
2
|
interface ThemeInstance {
|
|
3
|
-
preference:
|
|
4
|
-
readonly value:
|
|
3
|
+
preference: NuanceTheme;
|
|
4
|
+
readonly value: NuanceTheme;
|
|
5
5
|
unknown: boolean;
|
|
6
6
|
forced: boolean;
|
|
7
7
|
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export type
|
|
2
|
-
export type
|
|
3
|
-
export type
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
8
|
-
export type
|
|
9
|
-
export type
|
|
10
|
-
export type
|
|
11
|
-
export type
|
|
12
|
-
export type
|
|
13
|
-
export type
|
|
14
|
-
export type
|
|
15
|
-
type ShadedColor = `dark.${
|
|
16
|
-
export type
|
|
17
|
-
export type
|
|
18
|
-
export type
|
|
1
|
+
export type NuanceSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
2
|
+
export type NuanceBreakpointsValues = Record<NuanceSize | 'base', string>;
|
|
3
|
+
export type NuanceFontSizesValues = Record<NuanceSize, string>;
|
|
4
|
+
export type NuanceRadiusValues = Record<NuanceSize | 'full', string>;
|
|
5
|
+
export type NuanceSpacingValues = Record<NuanceSize, string>;
|
|
6
|
+
export type NuanceShadowsValues = Record<NuanceSize, string>;
|
|
7
|
+
export type NuanceLineHeightValues = Record<NuanceSize, string>;
|
|
8
|
+
export type NuanceBreakpoint = keyof NuanceBreakpointsValues;
|
|
9
|
+
export type NuanceFontSize = keyof NuanceFontSizesValues;
|
|
10
|
+
export type NuanceRadius = keyof NuanceRadiusValues | number;
|
|
11
|
+
export type NuanceSpacing = keyof NuanceSpacingValues | number;
|
|
12
|
+
export type NuanceShadow = keyof NuanceShadowsValues;
|
|
13
|
+
export type NuanceLineHeight = keyof NuanceLineHeightValues;
|
|
14
|
+
export type NuanceColorShade = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
|
15
|
+
type ShadedColor = `dark.${NuanceColorShade}` | `slate.${NuanceColorShade}` | `gray.${NuanceColorShade}` | `red.${NuanceColorShade}` | `pink.${NuanceColorShade}` | `grape.${NuanceColorShade}` | `violet.${NuanceColorShade}` | `indigo.${NuanceColorShade}` | `blue.${NuanceColorShade}` | `cyan.${NuanceColorShade}` | `green.${NuanceColorShade}` | `lime.${NuanceColorShade}` | `yellow.${NuanceColorShade}` | `orange.${NuanceColorShade}` | `teal.${NuanceColorShade}`;
|
|
16
|
+
export type NuanceDefaultThemeColor = 'dark' | 'slate' | 'gray' | 'red' | 'pink' | 'grape' | 'violet' | 'indigo' | 'blue' | 'cyan' | 'green' | 'lime' | 'yellow' | 'orange' | 'teal' | 'black' | 'white';
|
|
17
|
+
export type NuanceColor = NuanceDefaultThemeColor | ShadedColor;
|
|
18
|
+
export type NuanceTheme = 'light' | 'dark';
|
|
19
19
|
export interface UiKitGradient {
|
|
20
|
-
bg?:
|
|
21
|
-
from:
|
|
22
|
-
to:
|
|
20
|
+
bg?: NuanceColor | string;
|
|
21
|
+
from: NuanceColor | string;
|
|
22
|
+
to: NuanceColor | string;
|
|
23
23
|
deg?: number;
|
|
24
24
|
}
|
|
25
25
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function getGradient(gradient: UiKitGradient | undefined, theme:
|
|
3
|
-
export declare function getGradientOutline(gradient: UiKitGradient | undefined, theme:
|
|
1
|
+
import type { NuanceTheme, UiKitGradient } from '@nui/types';
|
|
2
|
+
export declare function getGradient(gradient: UiKitGradient | undefined, theme: NuanceTheme): string;
|
|
3
|
+
export declare function getGradientOutline(gradient: UiKitGradient | undefined, theme: NuanceTheme): string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function getColorVar(color:
|
|
1
|
+
import type { NuanceColor, NuanceColorShade } from '@nui/types';
|
|
2
|
+
export declare function getColorVar(color: NuanceColor, shade?: NuanceColorShade): string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColorShade, NuanceTheme } from '@nui/types';
|
|
2
2
|
interface ParseThemeColorResult {
|
|
3
3
|
color: string;
|
|
4
4
|
value: string;
|
|
5
|
-
shade:
|
|
5
|
+
shade: NuanceColorShade | undefined;
|
|
6
6
|
variable: `--${string}` | undefined;
|
|
7
7
|
isThemeColor: boolean;
|
|
8
8
|
}
|
|
9
9
|
export declare function parseThemeColor({ color, theme, }: {
|
|
10
10
|
color: unknown;
|
|
11
|
-
theme:
|
|
11
|
+
theme: NuanceTheme;
|
|
12
12
|
}): ParseThemeColorResult;
|
|
13
|
-
export declare function getThemeColor(color: string | undefined, theme:
|
|
13
|
+
export declare function getThemeColor(color: string | undefined, theme: NuanceTheme): string;
|
|
14
14
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NuanceColor, NuanceTheme, UiKitGradient } from '@nui/types';
|
|
2
2
|
interface VariantColorResolverResult {
|
|
3
3
|
background: string;
|
|
4
4
|
hover: string;
|
|
@@ -6,9 +6,9 @@ interface VariantColorResolverResult {
|
|
|
6
6
|
border: string;
|
|
7
7
|
}
|
|
8
8
|
export declare function createVariantColorResolver({ color, variant, gradient, theme, }: {
|
|
9
|
-
color:
|
|
9
|
+
color: NuanceColor | string | undefined;
|
|
10
10
|
variant: 'filled' | 'light' | 'outline' | 'subtle' | 'default' | 'gradient' | 'gradient-outline';
|
|
11
11
|
gradient?: UiKitGradient;
|
|
12
|
-
theme:
|
|
12
|
+
theme: NuanceTheme;
|
|
13
13
|
}): VariantColorResolverResult;
|
|
14
14
|
export {};
|