nuance-ui 0.1.1 → 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.
Files changed (58) hide show
  1. package/LICENSE.md +9 -0
  2. package/README.md +47 -68
  3. package/dist/module.json +1 -1
  4. package/dist/runtime/components/action-icon/action-icon-section.d.vue.ts +4 -4
  5. package/dist/runtime/components/action-icon/action-icon-section.vue.d.ts +4 -4
  6. package/dist/runtime/components/action-icon/action-icon.d.vue.ts +4 -4
  7. package/dist/runtime/components/action-icon/action-icon.vue +1 -1
  8. package/dist/runtime/components/action-icon/action-icon.vue.d.ts +4 -4
  9. package/dist/runtime/components/background-image.d.vue.ts +2 -2
  10. package/dist/runtime/components/background-image.vue.d.ts +2 -2
  11. package/dist/runtime/components/button/button.d.vue.ts +4 -4
  12. package/dist/runtime/components/button/button.vue.d.ts +4 -4
  13. package/dist/runtime/components/card/card.d.vue.ts +2 -2
  14. package/dist/runtime/components/card/card.vue.d.ts +2 -2
  15. package/dist/runtime/components/checkbox/checkbox-card.d.vue.ts +2 -2
  16. package/dist/runtime/components/checkbox/checkbox-card.vue.d.ts +2 -2
  17. package/dist/runtime/components/checkbox/checkbox-group.d.vue.ts +2 -2
  18. package/dist/runtime/components/checkbox/checkbox-group.vue.d.ts +2 -2
  19. package/dist/runtime/components/checkbox/checkbox-indicator.d.vue.ts +5 -5
  20. package/dist/runtime/components/checkbox/checkbox-indicator.vue.d.ts +5 -5
  21. package/dist/runtime/components/checkbox/checkbox.d.vue.ts +5 -5
  22. package/dist/runtime/components/checkbox/checkbox.vue.d.ts +5 -5
  23. package/dist/runtime/components/checkbox/lib/group.context.d.ts +4 -4
  24. package/dist/runtime/components/chip/chip.d.vue.ts +4 -4
  25. package/dist/runtime/components/chip/chip.vue.d.ts +4 -4
  26. package/dist/runtime/components/combobox/combobox-root.d.vue.ts +3 -3
  27. package/dist/runtime/components/combobox/combobox-root.vue.d.ts +3 -3
  28. package/dist/runtime/components/combobox/lib/context.d.ts +3 -3
  29. package/dist/runtime/components/container.d.vue.ts +2 -2
  30. package/dist/runtime/components/container.vue.d.ts +2 -2
  31. package/dist/runtime/components/dialog/dialog-root.d.vue.ts +5 -5
  32. package/dist/runtime/components/dialog/dialog-root.vue.d.ts +5 -5
  33. package/dist/runtime/components/input/lib/input-wrapper.context.d.ts +3 -3
  34. package/dist/runtime/components/input/ui/input-inline.d.vue.ts +2 -2
  35. package/dist/runtime/components/input/ui/input-inline.vue.d.ts +2 -2
  36. package/dist/runtime/components/input/ui/input-label.d.vue.ts +2 -2
  37. package/dist/runtime/components/input/ui/input-label.vue.d.ts +2 -2
  38. package/dist/runtime/components/loader/loader.d.vue.ts +3 -3
  39. package/dist/runtime/components/loader/loader.vue.d.ts +3 -3
  40. package/dist/runtime/components/nav-link/nav-link.d.vue.ts +2 -2
  41. package/dist/runtime/components/nav-link/nav-link.vue.d.ts +2 -2
  42. package/dist/runtime/components/paper.d.vue.ts +3 -3
  43. package/dist/runtime/components/paper.vue.d.ts +3 -3
  44. package/dist/runtime/components/popover/lib/context.d.ts +3 -3
  45. package/dist/runtime/components/popover/types/index.d.ts +3 -3
  46. package/dist/runtime/components/tabs/tabs-root.d.vue.ts +3 -3
  47. package/dist/runtime/components/tabs/tabs-root.vue.d.ts +3 -3
  48. package/dist/runtime/components/text.d.vue.ts +5 -5
  49. package/dist/runtime/components/text.vue.d.ts +5 -5
  50. package/dist/runtime/composals/use-style-resolver.d.ts +2 -2
  51. package/dist/runtime/composals/use-theme.d.ts +3 -3
  52. package/dist/runtime/composals/use-theme.js +2 -2
  53. package/dist/runtime/types/theme.d.ts +21 -21
  54. package/dist/runtime/utils/color-functions/get-gradient.d.ts +3 -3
  55. package/dist/runtime/utils/get-color-var.d.ts +2 -2
  56. package/dist/runtime/utils/parse-theme-color/parse-theme-color.d.ts +4 -4
  57. package/dist/runtime/utils/vars-resolver/create-variant-color-resolver.d.ts +3 -3
  58. 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
@@ -1,90 +1,69 @@
1
- <!--
2
- Get your module up and running quickly.
1
+ # Nuance-UI
3
2
 
4
- Find and replace all on all files (CMD+SHIFT+F):
5
- - Name: My Module
6
- - Package name: my-module
7
- - Description: My new Nuxt module
8
- -->
3
+ A modern UI kit module for Nuxt 3 with thoughtfully designed components and subtle interaction details.
9
4
 
10
- # My Module
11
-
12
- [![npm version][npm-version-src]][npm-version-href]
13
- [![npm downloads][npm-downloads-src]][npm-downloads-href]
14
- [![License][license-src]][license-href]
15
- [![Nuxt][nuxt-src]][nuxt-href]
16
-
17
- My new Nuxt module for doing amazing things.
18
-
19
- - [✨ &nbsp;Release Notes](/CHANGELOG.md)
20
-
21
- <!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/my-module?file=playground%2Fapp.vue) -->
22
- <!-- - [📖 &nbsp;Documentation](https://example.com) -->
23
-
24
- ## Features
25
-
26
- <!-- Highlight some of the features your module provide here -->
27
-
28
- - ⛰ &nbsp;Foo
29
- - 🚠 &nbsp;Bar
30
- - 🌲 &nbsp;Baz
31
-
32
- ## Quick Setup 1
33
-
34
- Install the module to your Nuxt application with one command:
5
+ ## 📦 Installation
35
6
 
36
7
  ```bash
37
- npx nuxi module add my-module
38
- ```
39
-
40
- That's it! You can now use My Module in your Nuxt app ✨
41
-
42
- ## Contribution
8
+ # npm
9
+ npm install nuance-ui
43
10
 
44
- <details>
45
- <summary>Local development</summary>
11
+ # yarn
12
+ yarn add nuance-ui
46
13
 
47
- ```bash
48
- # Install dependencies
49
- npm install
50
-
51
- # Generate type stubs
52
- npm run dev:prepare
14
+ # pnpm
15
+ pnpm add nuance-ui
16
+ ```
53
17
 
54
- # Develop with the playground
55
- npm run dev
18
+ ## Quick Start
56
19
 
57
- # Build the playground
58
- npm run dev:build
20
+ Add `nuance-ui` to the `modules` section of your `nuxt.config.ts`:
59
21
 
60
- # Run ESLint
61
- npm run lint
22
+ ```typescript
23
+ export default defineNuxtConfig({
24
+ modules: ['nuance-ui'],
25
+ })
26
+ ```
62
27
 
63
- # Run Vitest
64
- npm run test
65
- npm run test:watch
28
+ Now you can use components in your application:
66
29
 
67
- # Release new version
68
- npm run release
69
- ```
30
+ ```vue
31
+ <template>
32
+ <div>
33
+ <NButton variant='primary'>
34
+ Click me
35
+ </NButton>
70
36
 
71
- </details>
37
+ <NCard>
38
+ <p>Card content goes here</p>
39
+ </NCard>
40
+ </div>
41
+ </template>
42
+ ```
72
43
 
44
+ ## Contributing
73
45
 
74
- <!-- Badges -->
46
+ We welcome contributions! Please:
75
47
 
76
- [npm-version-src]: https://img.shields.io/npm/v/my-module/latest.svg?style=flat&colorA=020420&colorB=00DC82
48
+ 1. Fork the repository
49
+ 2. Create a feature branch (`git checkout -b feature/amazing-feature`)
50
+ 3. Commit your changes (`git commit -m 'Add amazing feature'`)
51
+ 4. Push to the branch (`git push origin feature/amazing-feature`)
52
+ 5. Open a Pull Request
77
53
 
78
- [npm-version-href]: https://npmjs.com/package/my-module
54
+ ## Links
79
55
 
80
- [npm-downloads-src]: https://img.shields.io/npm/dm/my-module.svg?style=flat&colorA=020420&colorB=00DC82
56
+ - Documentation **WIP**
57
+ - [GitHub](https://github.com/Igor-Iugin/nuance-ui)
58
+ - [NPM](https://www.npmjs.com/package/nuance-ui)
81
59
 
82
- [npm-downloads-href]: https://npm.chart.dev/my-module
60
+ ## Support
83
61
 
84
- [license-src]: https://img.shields.io/npm/l/my-module.svg?style=flat&colorA=020420&colorB=00DC82
62
+ If you have questions or issues:
85
63
 
86
- [license-href]: https://npmjs.com/package/my-module
64
+ - [Create an Issue](https://github.com/Igor-Iugin/nuance-ui/issues)
65
+ - [Discussions](https://github.com/Igor-Iugin/nuance-ui/discussions)
87
66
 
88
- [nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
67
+ ## License
89
68
 
90
- [nuxt-href]: https://nuxt.com
69
+ Licensed under the [MIT license](https://github.com/Igor-Iugin/nuance-ui/blob/main/LICENSE.md).
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^4.0.0"
6
6
  },
7
- "version": "0.1.1",
7
+ "version": "0.1.3",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
@@ -1,12 +1,12 @@
1
- import type { UiKitColor, UiKitGradient, UiKitRadius, UiKitSize } from '@nui/types';
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?: UiKitSize | `compact-${UiKitSize}`;
4
+ size?: NuanceSize | `compact-${NuanceSize}`;
5
5
  variant?: 'filled' | 'light' | 'outline' | 'subtle' | 'default' | 'gradient';
6
6
  gradient?: UiKitGradient;
7
7
  loading?: boolean;
8
- color?: UiKitColor;
9
- radius?: UiKitRadius;
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 { UiKitColor, UiKitGradient, UiKitRadius, UiKitSize } from '@nui/types';
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?: UiKitSize | `compact-${UiKitSize}`;
4
+ size?: NuanceSize | `compact-${NuanceSize}`;
5
5
  variant?: 'filled' | 'light' | 'outline' | 'subtle' | 'default' | 'gradient';
6
6
  gradient?: UiKitGradient;
7
7
  loading?: boolean;
8
- color?: UiKitColor;
9
- radius?: UiKitRadius;
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 { UiKitColor, UiKitGradient, UiKitRadius, UiKitSize } from '@nui/types';
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?: UiKitSize | `compact-${UiKitSize}` | string;
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?: UiKitColor;
9
- radius?: UiKitRadius;
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 { UiKitColor, UiKitGradient, UiKitRadius, UiKitSize } from '@nui/types';
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?: UiKitSize | `compact-${UiKitSize}` | string;
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?: UiKitColor;
9
- radius?: UiKitRadius;
8
+ color?: NuanceColor;
9
+ radius?: NuanceRadius;
10
10
  classes?: {
11
11
  root?: string;
12
12
  icon?: string;
@@ -1,7 +1,7 @@
1
- import type { UiKitRadius } from '@nui/types';
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?: UiKitRadius | string;
4
+ radius?: NuanceRadius | string;
5
5
  /** Image url */
6
6
  src: string;
7
7
  }
@@ -1,7 +1,7 @@
1
- import type { UiKitRadius } from '@nui/types';
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?: UiKitRadius | string;
4
+ radius?: NuanceRadius | string;
5
5
  /** Image url */
6
6
  src: string;
7
7
  }
@@ -1,13 +1,13 @@
1
- import type { UiKitColor, UiKitGradient, UiKitRadius, UiKitSize } from '@nui/types';
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?: UiKitSize | `compact-${UiKitSize}`;
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?: UiKitColor;
10
- radius?: UiKitRadius;
9
+ color?: NuanceColor;
10
+ radius?: NuanceRadius;
11
11
  classes?: {
12
12
  root?: string;
13
13
  inner?: string;
@@ -1,13 +1,13 @@
1
- import type { UiKitColor, UiKitGradient, UiKitRadius, UiKitSize } from '@nui/types';
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?: UiKitSize | `compact-${UiKitSize}`;
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?: UiKitColor;
10
- radius?: UiKitRadius;
9
+ color?: NuanceColor;
10
+ radius?: NuanceRadius;
11
11
  classes?: {
12
12
  root?: string;
13
13
  inner?: string;
@@ -1,7 +1,7 @@
1
- import type { UiKitSpacing } from '@nui/types';
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?: UiKitSpacing;
4
+ padding?: NuanceSpacing;
5
5
  }
6
6
  declare var __VLS_6: {};
7
7
  type __VLS_Slots = {} & {
@@ -1,7 +1,7 @@
1
- import type { UiKitSpacing } from '@nui/types';
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?: UiKitSpacing;
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 { UiKitRadius } from '@nui/types';
2
+ import type { NuanceRadius } from '@nui/types';
3
3
  export interface CheckboxCardProps {
4
4
  mod?: Mod | Mod[];
5
5
  withBorder?: boolean;
6
- radius?: UiKitRadius;
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 { UiKitRadius } from '@nui/types';
2
+ import type { NuanceRadius } from '@nui/types';
3
3
  export interface CheckboxCardProps {
4
4
  mod?: Mod | Mod[];
5
5
  withBorder?: boolean;
6
- radius?: UiKitRadius;
6
+ radius?: NuanceRadius;
7
7
  value?: string;
8
8
  }
9
9
  type __VLS_Props = CheckboxCardProps;
@@ -1,8 +1,8 @@
1
- import type { UiKitSize } from '@nui/types';
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?: UiKitSize;
5
+ size?: NuanceSize;
6
6
  }
7
7
  type __VLS_Props = CheckboxGroupProps;
8
8
  type __VLS_ModelProps = {
@@ -1,8 +1,8 @@
1
- import type { UiKitSize } from '@nui/types';
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?: UiKitSize;
5
+ size?: NuanceSize;
6
6
  }
7
7
  type __VLS_Props = CheckboxGroupProps;
8
8
  type __VLS_ModelProps = {
@@ -1,10 +1,10 @@
1
- import type { UiKitColor, UiKitSize } from '@nui/types';
1
+ import type { NuanceColor, NuanceSize } from '@nui/types';
2
2
  export interface CheckboxIndicatorProps {
3
- color?: UiKitColor;
4
- iconColor?: UiKitColor;
3
+ color?: NuanceColor;
4
+ iconColor?: NuanceColor;
5
5
  variant?: 'filled' | 'outline';
6
- radius?: UiKitSize;
7
- size?: UiKitSize;
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 { UiKitColor, UiKitSize } from '@nui/types';
1
+ import type { NuanceColor, NuanceSize } from '@nui/types';
2
2
  export interface CheckboxIndicatorProps {
3
- color?: UiKitColor;
4
- iconColor?: UiKitColor;
3
+ color?: NuanceColor;
4
+ iconColor?: NuanceColor;
5
5
  variant?: 'filled' | 'outline';
6
- radius?: UiKitSize;
7
- size?: UiKitSize;
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 { UiKitColor, UiKitSize } from '@nui/types';
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?: UiKitColor;
5
- iconColor?: UiKitColor;
4
+ color?: NuanceColor;
5
+ iconColor?: NuanceColor;
6
6
  variant?: 'filled' | 'outline';
7
- radius?: UiKitSize;
8
- size?: UiKitSize;
7
+ radius?: NuanceSize;
8
+ size?: NuanceSize;
9
9
  indeterminate?: boolean;
10
10
  value?: string;
11
11
  }
@@ -1,11 +1,11 @@
1
- import type { UiKitColor, UiKitSize } from '@nui/types';
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?: UiKitColor;
5
- iconColor?: UiKitColor;
4
+ color?: NuanceColor;
5
+ iconColor?: NuanceColor;
6
6
  variant?: 'filled' | 'outline';
7
- radius?: UiKitSize;
8
- size?: UiKitSize;
7
+ radius?: NuanceSize;
8
+ size?: NuanceSize;
9
9
  indeterminate?: boolean;
10
10
  value?: string;
11
11
  }
@@ -1,16 +1,16 @@
1
- import type { UiKitSize } from '@nui/types';
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?: UiKitSize;
5
+ size?: NuanceSize;
6
6
  }
7
7
  export declare const useProvideCheckboxGroup: (args_0: CheckboxGroupState) => {
8
8
  value: ModelRef<string[]>;
9
- size: UiKitSize | undefined;
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: UiKitSize | undefined;
14
+ size: NuanceSize | undefined;
15
15
  onUpdate: (newValue: string) => number | string[];
16
16
  };
@@ -1,9 +1,9 @@
1
- import type { UiKitColor, UiKitRadius, UiKitSize } from '@nui/types';
1
+ import type { NuanceColor, NuanceRadius, NuanceSize } from '@nui/types';
2
2
  export interface ChipProps {
3
- radius?: UiKitRadius;
4
- size?: UiKitSize;
3
+ radius?: NuanceRadius;
4
+ size?: NuanceSize;
5
5
  type?: 'radio' | 'checkbox';
6
- color?: UiKitColor;
6
+ color?: NuanceColor;
7
7
  id?: string;
8
8
  variant?: 'filled' | 'outline' | 'light';
9
9
  value?: string;
@@ -1,9 +1,9 @@
1
- import type { UiKitColor, UiKitRadius, UiKitSize } from '@nui/types';
1
+ import type { NuanceColor, NuanceRadius, NuanceSize } from '@nui/types';
2
2
  export interface ChipProps {
3
- radius?: UiKitRadius;
4
- size?: UiKitSize;
3
+ radius?: NuanceRadius;
4
+ size?: NuanceSize;
5
5
  type?: 'radio' | 'checkbox';
6
- color?: UiKitColor;
6
+ color?: NuanceColor;
7
7
  id?: string;
8
8
  variant?: 'filled' | 'outline' | 'light';
9
9
  value?: string;
@@ -1,4 +1,4 @@
1
- import type { UiKitSize } from '@nui/types';
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?: UiKitSize;
12
+ size?: NuanceSize;
13
13
  /** Controls `padding` of the dropdown @default `4` */
14
- dropdownPadding?: UiKitSize | CSSProperties['padding'];
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 { UiKitSize } from '@nui/types';
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?: UiKitSize;
12
+ size?: NuanceSize;
13
13
  /** Controls `padding` of the dropdown @default `4` */
14
- dropdownPadding?: UiKitSize | CSSProperties['padding'];
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 { UiKitSize } from '@nui/types';
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: UiKitSize;
8
+ size: NuanceSize;
9
9
  readOnly: boolean;
10
10
  store: ComboboxStore;
11
- dropdownPadding?: UiKitSize | CSSProperties['padding'];
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 { UiKitSize } from '@nui/types';
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?: UiKitSize | string | number;
4
+ size?: NuanceSize | string | number;
5
5
  fluid?: boolean;
6
6
  }
7
7
  declare var __VLS_6: {};
@@ -1,7 +1,7 @@
1
- import type { UiKitSize } from '@nui/types';
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?: UiKitSize | string | number;
4
+ size?: NuanceSize | string | number;
5
5
  fluid?: boolean;
6
6
  }
7
7
  declare var __VLS_6: {};
@@ -1,4 +1,4 @@
1
- import type { UiKitRadius, UiKitShadow, UiKitSize, UiKitSpacing } from '@nui/types';
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?: UiKitRadius;
18
+ radius?: NuanceRadius;
19
19
  /** Controls width of the content area @default `'md'` */
20
- size?: UiKitSize;
20
+ size?: NuanceSize;
21
21
  /** Key of `theme.shadows` or any valid CSS box-shadow value @default `'xl'` */
22
- shadow?: UiKitShadow;
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?: UiKitSpacing;
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 { UiKitRadius, UiKitShadow, UiKitSize, UiKitSpacing } from '@nui/types';
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?: UiKitRadius;
18
+ radius?: NuanceRadius;
19
19
  /** Controls width of the content area @default `'md'` */
20
- size?: UiKitSize;
20
+ size?: NuanceSize;
21
21
  /** Key of `theme.shadows` or any valid CSS box-shadow value @default `'xl'` */
22
- shadow?: UiKitShadow;
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?: UiKitSpacing;
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 { UiKitSize } from '@nui/types';
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?: UiKitSize | string;
8
- size?: UiKitSize | string;
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 { UiKitSize } from '@nui/types';
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?: UiKitSize | string;
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 { UiKitSize } from '@nui/types';
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?: UiKitSize | string;
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 { UiKitSize } from '@nui/types';
1
+ import type { NuanceSize } from '@nui/types';
2
2
  export interface InputLabelProps {
3
3
  required?: boolean;
4
- size?: UiKitSize | string;
4
+ size?: NuanceSize | string;
5
5
  }
6
6
  declare var __VLS_1: {};
7
7
  type __VLS_Slots = {} & {
@@ -1,7 +1,7 @@
1
- import type { UiKitSize } from '@nui/types';
1
+ import type { NuanceSize } from '@nui/types';
2
2
  export interface InputLabelProps {
3
3
  required?: boolean;
4
- size?: UiKitSize | string;
4
+ size?: NuanceSize | string;
5
5
  }
6
6
  declare var __VLS_1: {};
7
7
  type __VLS_Slots = {} & {
@@ -1,8 +1,8 @@
1
- import type { UiKitColor, UiKitSize } from '@nui/types';
1
+ import type { NuanceColor, NuanceSize } from '@nui/types';
2
2
  export type LoaderType = 'bars' | 'dots' | 'oval';
3
3
  export interface LoaderProps {
4
- size?: UiKitSize | string;
5
- color?: UiKitColor | string;
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 { UiKitColor, UiKitSize } from '@nui/types';
1
+ import type { NuanceColor, NuanceSize } from '@nui/types';
2
2
  export type LoaderType = 'bars' | 'dots' | 'oval';
3
3
  export interface LoaderProps {
4
- size?: UiKitSize | string;
5
- color?: UiKitColor | string;
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 { UiKitColor } from '@nui/types';
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?: UiKitColor;
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 { UiKitColor } from '@nui/types';
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?: UiKitColor;
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 { UiKitRadius, UiKitShadow } from '@nui/types';
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?: UiKitShadow;
5
- radius?: UiKitRadius;
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 { UiKitRadius, UiKitShadow } from '@nui/types';
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?: UiKitShadow;
5
- radius?: UiKitRadius;
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 { UiKitRadius, UiKitShadow } from '@nui/types';
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?: UiKitRadius;
10
- shadow?: UiKitShadow;
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 { UiKitRadius, UiKitShadow } from '~/src/runtime/types/theme';
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?: UiKitRadius;
26
+ radius?: NuanceRadius;
27
27
  /** Key of `theme.shadows` or any other valid CSS `box-shadow` value */
28
- shadow?: UiKitShadow;
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 { UiKitColor, UiKitRadius } from '@nui/types';
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?: UiKitColor;
17
+ color?: NuanceColor;
18
18
  /** Key of `theme.radius` or any valid CSS value to set `border-radius`, `theme.defaultRadius` by default */
19
- radius?: UiKitRadius;
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 { UiKitColor, UiKitRadius } from '@nui/types';
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?: UiKitColor;
17
+ color?: NuanceColor;
18
18
  /** Key of `theme.radius` or any valid CSS value to set `border-radius`, `theme.defaultRadius` by default */
19
- radius?: UiKitRadius;
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 { UiKitColor, UiKitGradient, UiKitSize } from '@nui/types';
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?: UiKitSize | `h${TitleOrder}` | string;
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?: UiKitSize | `h${TitleOrder}` | string;
21
- lh?: UiKitSize | string;
20
+ fz?: NuanceSize | `h${TitleOrder}` | string;
21
+ lh?: NuanceSize | string;
22
22
  fw?: CSSProperties['font-weight'];
23
- c?: UiKitColor;
23
+ c?: NuanceColor;
24
24
  }
25
25
  declare var __VLS_6: {};
26
26
  type __VLS_Slots = {} & {
@@ -1,11 +1,11 @@
1
- import type { UiKitColor, UiKitGradient, UiKitSize } from '@nui/types';
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?: UiKitSize | `h${TitleOrder}` | string;
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?: UiKitSize | `h${TitleOrder}` | string;
21
- lh?: UiKitSize | string;
20
+ fz?: NuanceSize | `h${TitleOrder}` | string;
21
+ lh?: NuanceSize | string;
22
22
  fw?: CSSProperties['font-weight'];
23
- c?: UiKitColor;
23
+ c?: NuanceColor;
24
24
  }
25
25
  declare var __VLS_6: {};
26
26
  type __VLS_Slots = {} & {
@@ -1,3 +1,3 @@
1
- import type { UiKitTheme } from '@nui/types';
1
+ import type { NuanceTheme } from '@nui/types';
2
2
  import type { CSSProperties } from 'vue';
3
- export declare function useStyleResolver<T extends CSSProperties>(factory: (theme: UiKitTheme) => T): T;
3
+ export declare function useStyleResolver<T extends CSSProperties>(factory: (theme: NuanceTheme) => T): T;
@@ -1,7 +1,7 @@
1
- import type { UiKitTheme } from '@nui/types';
1
+ import type { NuanceTheme } from '@nui/types';
2
2
  interface ThemeInstance {
3
- preference: UiKitTheme;
4
- readonly value: UiKitTheme;
3
+ preference: NuanceTheme;
4
+ readonly value: NuanceTheme;
5
5
  unknown: boolean;
6
6
  forced: boolean;
7
7
  }
@@ -1,4 +1,4 @@
1
- import { useState } from "#imports";
1
+ import { useColorMode } from "#build/imports";
2
2
  export function useTheme() {
3
- return useState("color-mode").value;
3
+ return useColorMode();
4
4
  }
@@ -1,25 +1,25 @@
1
- export type UiKitSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
2
- export type UiKitBreakpointsValues = Record<UiKitSize | 'base', string>;
3
- export type UiKitFontSizesValues = Record<UiKitSize, string>;
4
- export type UiKitRadiusValues = Record<UiKitSize | 'full', string>;
5
- export type UiKitSpacingValues = Record<UiKitSize, string>;
6
- export type UiKitShadowsValues = Record<UiKitSize, string>;
7
- export type UiKitLineHeightValues = Record<UiKitSize, string>;
8
- export type UiKitBreakpoint = keyof UiKitBreakpointsValues;
9
- export type UiKitFontSize = keyof UiKitFontSizesValues;
10
- export type UiKitRadius = keyof UiKitRadiusValues | number;
11
- export type UiKitSpacing = keyof UiKitSpacingValues | number;
12
- export type UiKitShadow = keyof UiKitShadowsValues;
13
- export type UiKitLineHeight = keyof UiKitLineHeightValues;
14
- export type UiKitColorShade = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
15
- type ShadedColor = `dark.${UiKitColorShade}` | `slate.${UiKitColorShade}` | `gray.${UiKitColorShade}` | `red.${UiKitColorShade}` | `pink.${UiKitColorShade}` | `grape.${UiKitColorShade}` | `violet.${UiKitColorShade}` | `indigo.${UiKitColorShade}` | `blue.${UiKitColorShade}` | `cyan.${UiKitColorShade}` | `green.${UiKitColorShade}` | `lime.${UiKitColorShade}` | `yellow.${UiKitColorShade}` | `orange.${UiKitColorShade}` | `teal.${UiKitColorShade}`;
16
- export type UiKitDefaultThemeColor = 'dark' | 'slate' | 'gray' | 'red' | 'pink' | 'grape' | 'violet' | 'indigo' | 'blue' | 'cyan' | 'green' | 'lime' | 'yellow' | 'orange' | 'teal' | 'black' | 'white';
17
- export type UiKitColor = UiKitDefaultThemeColor | ShadedColor;
18
- export type UiKitTheme = 'light' | 'dark';
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?: UiKitColor | string;
21
- from: UiKitColor | string;
22
- to: UiKitColor | string;
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 { UiKitGradient, UiKitTheme } from '@nui/types';
2
- export declare function getGradient(gradient: UiKitGradient | undefined, theme: UiKitTheme): string;
3
- export declare function getGradientOutline(gradient: UiKitGradient | undefined, theme: UiKitTheme): string;
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 { UiKitColor, UiKitColorShade } from '@nui/types';
2
- export declare function getColorVar(color: UiKitColor, shade?: UiKitColorShade): string;
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 { UiKitColorShade, UiKitTheme } from '@nui/types';
1
+ import type { NuanceColorShade, NuanceTheme } from '@nui/types';
2
2
  interface ParseThemeColorResult {
3
3
  color: string;
4
4
  value: string;
5
- shade: UiKitColorShade | undefined;
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: UiKitTheme;
11
+ theme: NuanceTheme;
12
12
  }): ParseThemeColorResult;
13
- export declare function getThemeColor(color: string | undefined, theme: UiKitTheme): string;
13
+ export declare function getThemeColor(color: string | undefined, theme: NuanceTheme): string;
14
14
  export {};
@@ -1,4 +1,4 @@
1
- import type { UiKitColor, UiKitGradient, UiKitTheme } from '@nui/types';
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: UiKitColor | string | undefined;
9
+ color: NuanceColor | string | undefined;
10
10
  variant: 'filled' | 'light' | 'outline' | 'subtle' | 'default' | 'gradient' | 'gradient-outline';
11
11
  gradient?: UiKitGradient;
12
- theme: UiKitTheme;
12
+ theme: NuanceTheme;
13
13
  }): VariantColorResolverResult;
14
14
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuance-ui",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "A UI Library for Modern Web Apps, powered by Vue.",
5
5
  "repository": {
6
6
  "type": "git",