nuance-ui 0.1.5 → 0.1.6

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 (149) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/action-icon/action-icon-group.d.vue.ts +1 -1
  3. package/dist/runtime/components/action-icon/action-icon-group.vue +3 -1
  4. package/dist/runtime/components/action-icon/action-icon-group.vue.d.ts +1 -1
  5. package/dist/runtime/components/action-icon/action-icon-section.d.vue.ts +1 -1
  6. package/dist/runtime/components/action-icon/action-icon-section.vue +3 -1
  7. package/dist/runtime/components/action-icon/action-icon-section.vue.d.ts +1 -1
  8. package/dist/runtime/components/action-icon/action-icon.vue +1 -1
  9. package/dist/runtime/components/app-shell/app-shell-section.d.vue.ts +1 -1
  10. package/dist/runtime/components/app-shell/app-shell-section.vue +3 -1
  11. package/dist/runtime/components/app-shell/app-shell-section.vue.d.ts +1 -1
  12. package/dist/runtime/components/app-shell/app-shell.d.vue.ts +1 -1
  13. package/dist/runtime/components/app-shell/app-shell.vue +3 -1
  14. package/dist/runtime/components/app-shell/app-shell.vue.d.ts +1 -1
  15. package/dist/runtime/components/background-image.d.vue.ts +1 -1
  16. package/dist/runtime/components/background-image.vue +3 -1
  17. package/dist/runtime/components/background-image.vue.d.ts +1 -1
  18. package/dist/runtime/components/button/button-group.d.vue.ts +1 -1
  19. package/dist/runtime/components/button/button-group.vue +3 -1
  20. package/dist/runtime/components/button/button-group.vue.d.ts +1 -1
  21. package/dist/runtime/components/button/button.d.vue.ts +1 -1
  22. package/dist/runtime/components/button/button.vue +3 -1
  23. package/dist/runtime/components/button/button.vue.d.ts +1 -1
  24. package/dist/runtime/components/button/unstyled-button.d.vue.ts +3 -2
  25. package/dist/runtime/components/button/unstyled-button.vue +3 -2
  26. package/dist/runtime/components/button/unstyled-button.vue.d.ts +3 -2
  27. package/dist/runtime/components/card/card-section.d.vue.ts +1 -1
  28. package/dist/runtime/components/card/card-section.vue +3 -1
  29. package/dist/runtime/components/card/card-section.vue.d.ts +1 -1
  30. package/dist/runtime/components/card/card.d.vue.ts +1 -1
  31. package/dist/runtime/components/card/card.vue +6 -1
  32. package/dist/runtime/components/card/card.vue.d.ts +1 -1
  33. package/dist/runtime/components/checkbox/checkbox-group.d.vue.ts +1 -1
  34. package/dist/runtime/components/checkbox/checkbox-group.vue +9 -1
  35. package/dist/runtime/components/checkbox/checkbox-group.vue.d.ts +1 -1
  36. package/dist/runtime/components/checkbox/checkbox.d.vue.ts +1 -1
  37. package/dist/runtime/components/checkbox/checkbox.vue +11 -2
  38. package/dist/runtime/components/checkbox/checkbox.vue.d.ts +1 -1
  39. package/dist/runtime/components/checkbox/lib/card.context.d.ts +1 -1
  40. package/dist/runtime/components/checkbox/lib/card.context.js +3 -4
  41. package/dist/runtime/components/checkbox/lib/group.context.d.ts +1 -1
  42. package/dist/runtime/components/checkbox/lib/group.context.js +3 -4
  43. package/dist/runtime/components/chip/chip.vue +2 -2
  44. package/dist/runtime/components/combobox/combobox-empty.d.vue.ts +1 -1
  45. package/dist/runtime/components/combobox/combobox-empty.vue +5 -2
  46. package/dist/runtime/components/combobox/combobox-empty.vue.d.ts +1 -1
  47. package/dist/runtime/components/combobox/combobox-group.d.vue.ts +1 -1
  48. package/dist/runtime/components/combobox/combobox-group.vue +2 -0
  49. package/dist/runtime/components/combobox/combobox-group.vue.d.ts +1 -1
  50. package/dist/runtime/components/combobox/combobox-option-list.d.vue.ts +1 -1
  51. package/dist/runtime/components/combobox/combobox-option-list.vue +3 -1
  52. package/dist/runtime/components/combobox/combobox-option-list.vue.d.ts +1 -1
  53. package/dist/runtime/components/combobox/combobox-option.d.vue.ts +1 -1
  54. package/dist/runtime/components/combobox/combobox-option.vue +2 -0
  55. package/dist/runtime/components/combobox/combobox-option.vue.d.ts +1 -1
  56. package/dist/runtime/components/combobox/combobox-root.d.vue.ts +1 -1
  57. package/dist/runtime/components/combobox/combobox-root.vue +14 -1
  58. package/dist/runtime/components/combobox/combobox-root.vue.d.ts +1 -1
  59. package/dist/runtime/components/container.d.vue.ts +1 -1
  60. package/dist/runtime/components/container.vue +3 -1
  61. package/dist/runtime/components/container.vue.d.ts +1 -1
  62. package/dist/runtime/components/dialog/dialog-header.d.vue.ts +1 -1
  63. package/dist/runtime/components/dialog/dialog-header.vue +5 -2
  64. package/dist/runtime/components/dialog/dialog-header.vue.d.ts +1 -1
  65. package/dist/runtime/components/dialog/dialog-root.d.vue.ts +1 -1
  66. package/dist/runtime/components/dialog/dialog-root.vue +3 -1
  67. package/dist/runtime/components/dialog/dialog-root.vue.d.ts +1 -1
  68. package/dist/runtime/components/dialog/dialog-title.d.vue.ts +1 -1
  69. package/dist/runtime/components/dialog/dialog-title.vue +16 -1
  70. package/dist/runtime/components/dialog/dialog-title.vue.d.ts +1 -1
  71. package/dist/runtime/components/drawer/drawer-header.d.vue.ts +1 -1
  72. package/dist/runtime/components/drawer/drawer-header.vue +4 -1
  73. package/dist/runtime/components/drawer/drawer-header.vue.d.ts +1 -1
  74. package/dist/runtime/components/drawer/drawer-root.d.vue.ts +2 -1
  75. package/dist/runtime/components/drawer/drawer-root.vue +11 -1
  76. package/dist/runtime/components/drawer/drawer-root.vue.d.ts +2 -1
  77. package/dist/runtime/components/drawer/drawer-title.d.vue.ts +1 -1
  78. package/dist/runtime/components/drawer/drawer-title.vue +16 -1
  79. package/dist/runtime/components/drawer/drawer-title.vue.d.ts +1 -1
  80. package/dist/runtime/components/input/input.d.vue.ts +1 -1
  81. package/dist/runtime/components/input/input.vue +11 -0
  82. package/dist/runtime/components/input/input.vue.d.ts +1 -1
  83. package/dist/runtime/components/input/lib/input-wrapper.context.d.ts +2 -2
  84. package/dist/runtime/components/input/lib/input-wrapper.context.js +4 -5
  85. package/dist/runtime/components/input/number-input.d.vue.ts +1 -1
  86. package/dist/runtime/components/input/number-input.vue +7 -1
  87. package/dist/runtime/components/input/number-input.vue.d.ts +1 -1
  88. package/dist/runtime/components/input/password-input.vue +5 -1
  89. package/dist/runtime/components/input/text-input.d.vue.ts +6 -6
  90. package/dist/runtime/components/input/text-input.vue +8 -4
  91. package/dist/runtime/components/input/text-input.vue.d.ts +6 -6
  92. package/dist/runtime/components/input/ui/input-base.d.vue.ts +4 -3
  93. package/dist/runtime/components/input/ui/input-base.vue +8 -7
  94. package/dist/runtime/components/input/ui/input-base.vue.d.ts +4 -3
  95. package/dist/runtime/components/input/ui/input-inline.d.vue.ts +1 -1
  96. package/dist/runtime/components/input/ui/input-inline.vue +3 -1
  97. package/dist/runtime/components/input/ui/input-inline.vue.d.ts +1 -1
  98. package/dist/runtime/components/input/ui/input-wrapper.d.vue.ts +2 -2
  99. package/dist/runtime/components/input/ui/input-wrapper.vue +16 -6
  100. package/dist/runtime/components/input/ui/input-wrapper.vue.d.ts +2 -2
  101. package/dist/runtime/components/link/link-button.d.vue.ts +1 -1
  102. package/dist/runtime/components/link/link-button.vue +18 -1
  103. package/dist/runtime/components/link/link-button.vue.d.ts +1 -1
  104. package/dist/runtime/components/link/link.d.vue.ts +1 -1
  105. package/dist/runtime/components/link/link.vue +17 -1
  106. package/dist/runtime/components/link/link.vue.d.ts +1 -1
  107. package/dist/runtime/components/modal/modal-header.d.vue.ts +1 -1
  108. package/dist/runtime/components/modal/modal-header.vue +4 -1
  109. package/dist/runtime/components/modal/modal-header.vue.d.ts +1 -1
  110. package/dist/runtime/components/modal/modal-root.d.vue.ts +2 -1
  111. package/dist/runtime/components/modal/modal-root.vue +11 -1
  112. package/dist/runtime/components/modal/modal-root.vue.d.ts +2 -1
  113. package/dist/runtime/components/modal/modal-title.d.vue.ts +1 -1
  114. package/dist/runtime/components/modal/modal-title.vue +16 -1
  115. package/dist/runtime/components/modal/modal-title.vue.d.ts +1 -1
  116. package/dist/runtime/components/nav-link/nav-link.d.vue.ts +1 -1
  117. package/dist/runtime/components/nav-link/nav-link.vue +2 -0
  118. package/dist/runtime/components/nav-link/nav-link.vue.d.ts +1 -1
  119. package/dist/runtime/components/paper.d.vue.ts +1 -1
  120. package/dist/runtime/components/paper.vue +3 -1
  121. package/dist/runtime/components/paper.vue.d.ts +1 -1
  122. package/dist/runtime/components/select/select.d.vue.ts +5 -2
  123. package/dist/runtime/components/select/select.vue +13 -1
  124. package/dist/runtime/components/select/select.vue.d.ts +5 -2
  125. package/dist/runtime/components/tabs/tabs-list.d.vue.ts +1 -1
  126. package/dist/runtime/components/tabs/tabs-list.vue +3 -1
  127. package/dist/runtime/components/tabs/tabs-list.vue.d.ts +1 -1
  128. package/dist/runtime/components/tabs/tabs-panel.d.vue.ts +1 -1
  129. package/dist/runtime/components/tabs/tabs-panel.vue +3 -1
  130. package/dist/runtime/components/tabs/tabs-panel.vue.d.ts +1 -1
  131. package/dist/runtime/components/tabs/tabs-root.d.vue.ts +1 -1
  132. package/dist/runtime/components/tabs/tabs-root.vue +3 -1
  133. package/dist/runtime/components/tabs/tabs-root.vue.d.ts +1 -1
  134. package/dist/runtime/components/text.d.vue.ts +1 -1
  135. package/dist/runtime/components/text.vue +3 -1
  136. package/dist/runtime/components/text.vue.d.ts +1 -1
  137. package/dist/runtime/components/textarea.d.vue.ts +1 -1
  138. package/dist/runtime/components/textarea.vue +15 -2
  139. package/dist/runtime/components/textarea.vue.d.ts +1 -1
  140. package/dist/runtime/components/title.d.vue.ts +1 -1
  141. package/dist/runtime/components/title.vue +13 -1
  142. package/dist/runtime/components/title.vue.d.ts +1 -1
  143. package/dist/runtime/components/visually-hidden/visually-hidden-input.d.vue.ts +1 -1
  144. package/dist/runtime/components/visually-hidden/visually-hidden-input.vue +4 -1
  145. package/dist/runtime/components/visually-hidden/visually-hidden-input.vue.d.ts +1 -1
  146. package/dist/runtime/components/visually-hidden/visually-hidden.d.vue.ts +1 -1
  147. package/dist/runtime/components/visually-hidden/visually-hidden.vue +3 -1
  148. package/dist/runtime/components/visually-hidden/visually-hidden.vue.d.ts +1 -1
  149. package/package.json +2 -2
@@ -2,7 +2,7 @@ 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';
5
- export interface ComboboxProps extends /* @vue-ignore */ PopoverProps {
5
+ export interface ComboboxProps extends PopoverProps {
6
6
  store?: ComboboxStore;
7
7
  /** Determines whether arrow key presses should loop though items (first to last and last to first), `true` by default */
8
8
  loop?: boolean;
@@ -16,7 +16,20 @@ const {
16
16
  scrollBehavior: { type: null, required: false },
17
17
  size: { type: String, required: false },
18
18
  dropdownPadding: { type: null, required: false },
19
- readOnly: { type: Boolean, required: false }
19
+ readOnly: { type: Boolean, required: false },
20
+ placement: { type: null, required: false },
21
+ offset: { type: [Number, Object, Function], required: false },
22
+ keepMounted: { type: Boolean, required: false },
23
+ width: { type: null, required: false },
24
+ withArrow: { type: Boolean, required: false },
25
+ arrowSize: { type: Number, required: false },
26
+ arrowOffset: { type: Number, required: false },
27
+ arrowRadius: { type: Number, required: false },
28
+ arrowPosition: { type: String, required: false },
29
+ radius: { type: [String, Number], required: false },
30
+ shadow: { type: String, required: false },
31
+ disabled: { type: Boolean, required: false },
32
+ floatingStrategy: { type: String, required: false }
20
33
  });
21
34
  const emit = defineEmits(["clear", "select", "open", "close", "submit"]);
22
35
  const opened = defineModel("open", { type: Boolean, ...{ default: false } });
@@ -2,7 +2,7 @@ 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';
5
- export interface ComboboxProps extends /* @vue-ignore */ PopoverProps {
5
+ export interface ComboboxProps extends PopoverProps {
6
6
  store?: ComboboxStore;
7
7
  /** Determines whether arrow key presses should loop though items (first to last and last to first), `true` by default */
8
8
  loop?: boolean;
@@ -1,6 +1,6 @@
1
1
  import type { NuanceSize } from '@nui/types';
2
2
  import type { BoxProps } from './box.vue.js';
3
- export interface ContainerProps extends /* @vue-ignore */ BoxProps {
3
+ export interface ContainerProps extends BoxProps {
4
4
  size?: NuanceSize | string | number;
5
5
  fluid?: boolean;
6
6
  }
@@ -9,7 +9,9 @@ const {
9
9
  size
10
10
  } = defineProps({
11
11
  size: { type: [String, Number], required: false },
12
- fluid: { type: Boolean, required: false }
12
+ fluid: { type: Boolean, required: false },
13
+ is: { type: null, required: false },
14
+ mod: { type: [Object, Array, null], required: false }
13
15
  });
14
16
  const style = computed(() => ({
15
17
  "--container-size": fluid ? void 0 : getSize(size, "container-size")
@@ -1,6 +1,6 @@
1
1
  import type { NuanceSize } from '@nui/types';
2
2
  import type { BoxProps } from './box.vue.js';
3
- export interface ContainerProps extends /* @vue-ignore */ BoxProps {
3
+ export interface ContainerProps extends BoxProps {
4
4
  size?: NuanceSize | string | number;
5
5
  fluid?: boolean;
6
6
  }
@@ -1,5 +1,5 @@
1
1
  import type { BoxProps } from '../box.vue.js';
2
- export interface DialogHeaderProps extends /* @vue-ignore */ Omit<BoxProps, 'is'> {
2
+ export interface DialogHeaderProps extends BoxProps {
3
3
  }
4
4
  declare var __VLS_6: {};
5
5
  type __VLS_Slots = {} & {
@@ -1,11 +1,14 @@
1
1
  <script setup>
2
2
  import Box from "../box.vue";
3
3
  import css from "./dialog.module.css";
4
- const props = defineProps({});
4
+ const { is = "header", mod } = defineProps({
5
+ is: { type: null, required: false },
6
+ mod: { type: [Object, Array, null], required: false }
7
+ });
5
8
  </script>
6
9
 
7
10
  <template>
8
- <Box is='header' :class='css.header' v-bind='props'>
11
+ <Box :is :mod :class='css.header'>
9
12
  <slot />
10
13
  </Box>
11
14
  </template>
@@ -1,5 +1,5 @@
1
1
  import type { BoxProps } from '../box.vue.js';
2
- export interface DialogHeaderProps extends /* @vue-ignore */ Omit<BoxProps, 'is'> {
2
+ export interface DialogHeaderProps extends BoxProps {
3
3
  }
4
4
  declare var __VLS_6: {};
5
5
  type __VLS_Slots = {} & {
@@ -3,7 +3,7 @@ import type { CSSProperties } from 'vue';
3
3
  import type { BoxProps } from '../box.vue.js';
4
4
  import type { TransitionName } from '../transition/index.js';
5
5
  import type { DialogModel } from './types/index.js';
6
- export interface DialogRootProps extends /* @vue-ignore */ Omit<BoxProps, 'is'> {
6
+ export interface DialogRootProps extends BoxProps {
7
7
  /** If set, the dialog is closed when user clicks on the overlay @default `true` */
8
8
  closeOnClickOutside?: boolean;
9
9
  /** If set, the component is rendered inside `Portal` @default `true` */
@@ -30,7 +30,9 @@ const {
30
30
  shadow: { type: String, required: false },
31
31
  padding: { type: [String, Number], required: false },
32
32
  rootClass: { type: String, required: false },
33
- transition: { type: String, required: false }
33
+ transition: { type: String, required: false },
34
+ is: { type: null, required: false },
35
+ mod: { type: [Object, Array, null], required: false }
34
36
  });
35
37
  const emit = defineEmits(["open", "close"]);
36
38
  const opened = defineModel("open", { type: Boolean, ...{ default: false } });
@@ -3,7 +3,7 @@ import type { CSSProperties } from 'vue';
3
3
  import type { BoxProps } from '../box.vue.js';
4
4
  import type { TransitionName } from '../transition/index.js';
5
5
  import type { DialogModel } from './types/index.js';
6
- export interface DialogRootProps extends /* @vue-ignore */ Omit<BoxProps, 'is'> {
6
+ export interface DialogRootProps extends BoxProps {
7
7
  /** If set, the dialog is closed when user clicks on the overlay @default `true` */
8
8
  closeOnClickOutside?: boolean;
9
9
  /** If set, the component is rendered inside `Portal` @default `true` */
@@ -1,5 +1,5 @@
1
1
  import type { TitleProps } from '../title.vue.js';
2
- export interface DialogTitleProps extends /* @vue-ignore */ TitleProps {
2
+ export interface DialogTitleProps extends TitleProps {
3
3
  }
4
4
  declare var __VLS_6: {};
5
5
  type __VLS_Slots = {} & {
@@ -1,7 +1,22 @@
1
1
  <script setup>
2
2
  import Title from "../title.vue";
3
3
  import css from "./dialog.module.css";
4
- const { size = "md", lh = "1", ...props } = defineProps({});
4
+ const { size = "md", lh = "1", ...props } = defineProps({
5
+ order: { type: String, required: false },
6
+ textWrap: { type: String, required: false },
7
+ size: { type: null, required: false },
8
+ lineClamp: { type: Number, required: false },
9
+ truncate: { type: [String, Boolean], required: false },
10
+ inline: { type: Boolean, required: false },
11
+ inherit: { type: Boolean, required: false },
12
+ gradient: { type: Object, required: false },
13
+ variant: { type: String, required: false },
14
+ fz: { type: null, required: false },
15
+ lh: { type: String, required: false },
16
+ fw: { type: null, required: false },
17
+ c: { type: null, required: false },
18
+ mod: { type: [Object, Array, null], required: false }
19
+ });
5
20
  </script>
6
21
 
7
22
  <template>
@@ -1,5 +1,5 @@
1
1
  import type { TitleProps } from '../title.vue.js';
2
- export interface DialogTitleProps extends /* @vue-ignore */ TitleProps {
2
+ export interface DialogTitleProps extends TitleProps {
3
3
  }
4
4
  declare var __VLS_6: {};
5
5
  type __VLS_Slots = {} & {
@@ -1,5 +1,5 @@
1
1
  import type { DialogHeaderProps } from '../dialog/index.js';
2
- export interface DrawerHeaderProps extends /* @vue-ignore */ DialogHeaderProps {
2
+ export interface DrawerHeaderProps extends DialogHeaderProps {
3
3
  }
4
4
  declare var __VLS_6: {};
5
5
  type __VLS_Slots = {} & {
@@ -1,6 +1,9 @@
1
1
  <script setup>
2
2
  import DialogHeader from "../dialog/dialog-header.vue";
3
- const props = defineProps({});
3
+ const props = defineProps({
4
+ is: { type: null, required: false },
5
+ mod: { type: [Object, Array, null], required: false }
6
+ });
4
7
  </script>
5
8
 
6
9
  <template>
@@ -1,5 +1,5 @@
1
1
  import type { DialogHeaderProps } from '../dialog/index.js';
2
- export interface DrawerHeaderProps extends /* @vue-ignore */ DialogHeaderProps {
2
+ export interface DrawerHeaderProps extends DialogHeaderProps {
3
3
  }
4
4
  declare var __VLS_6: {};
5
5
  type __VLS_Slots = {} & {
@@ -1,5 +1,6 @@
1
1
  import type { DialogModel, DialogRootProps } from '../dialog/index.js';
2
- export interface DrawerRootProps extends /* @vue-ignore */ Omit<DialogRootProps, 'modal' | 'closeOnClickOutside' | 'rootClass' | 'transition'> {
2
+ type OmittedDialogRootProps = Omit<DialogRootProps, 'modal' | 'closeOnClickOutside' | 'rootClass' | 'transition'>;
3
+ export interface DrawerRootProps extends OmittedDialogRootProps {
3
4
  /** Side of the screen on which drawer will be opened @default `'left'` */
4
5
  position?: 'bottom' | 'left' | 'right' | 'top';
5
6
  }
@@ -9,7 +9,17 @@ const {
9
9
  withinPortal = true,
10
10
  ...rest
11
11
  } = defineProps({
12
- position: { type: String, required: false }
12
+ position: { type: String, required: false },
13
+ withinPortal: { type: Boolean, required: false },
14
+ withoutOverlay: { type: Boolean, required: false },
15
+ yOffset: { type: null, required: false },
16
+ xOffset: { type: null, required: false },
17
+ radius: { type: [String, Number], required: false },
18
+ size: { type: String, required: false },
19
+ shadow: { type: String, required: false },
20
+ padding: { type: [String, Number], required: false },
21
+ is: { type: null, required: false },
22
+ mod: { type: [Object, Array, null], required: false }
13
23
  });
14
24
  defineEmits(["open", "close"]);
15
25
  const opened = defineModel("open", { type: Boolean, ...{ default: false } });
@@ -1,5 +1,6 @@
1
1
  import type { DialogModel, DialogRootProps } from '../dialog/index.js';
2
- export interface DrawerRootProps extends /* @vue-ignore */ Omit<DialogRootProps, 'modal' | 'closeOnClickOutside' | 'rootClass' | 'transition'> {
2
+ type OmittedDialogRootProps = Omit<DialogRootProps, 'modal' | 'closeOnClickOutside' | 'rootClass' | 'transition'>;
3
+ export interface DrawerRootProps extends OmittedDialogRootProps {
3
4
  /** Side of the screen on which drawer will be opened @default `'left'` */
4
5
  position?: 'bottom' | 'left' | 'right' | 'top';
5
6
  }
@@ -1,5 +1,5 @@
1
1
  import type { DialogTitleProps } from '../dialog/index.js';
2
- export interface DrawerTitleProps extends /* @vue-ignore */ DialogTitleProps {
2
+ export interface DrawerTitleProps extends DialogTitleProps {
3
3
  }
4
4
  declare var __VLS_6: {};
5
5
  type __VLS_Slots = {} & {
@@ -1,6 +1,21 @@
1
1
  <script setup>
2
2
  import DialogTitle from "../dialog/dialog-title.vue";
3
- const props = defineProps({});
3
+ const props = defineProps({
4
+ order: { type: String, required: false },
5
+ textWrap: { type: String, required: false },
6
+ size: { type: null, required: false },
7
+ lineClamp: { type: Number, required: false },
8
+ truncate: { type: [String, Boolean], required: false },
9
+ inline: { type: Boolean, required: false },
10
+ inherit: { type: Boolean, required: false },
11
+ gradient: { type: Object, required: false },
12
+ variant: { type: String, required: false },
13
+ fz: { type: null, required: false },
14
+ lh: { type: String, required: false },
15
+ fw: { type: null, required: false },
16
+ c: { type: null, required: false },
17
+ mod: { type: [Object, Array, null], required: false }
18
+ });
4
19
  </script>
5
20
 
6
21
  <template>
@@ -1,5 +1,5 @@
1
1
  import type { DialogTitleProps } from '../dialog/index.js';
2
- export interface DrawerTitleProps extends /* @vue-ignore */ DialogTitleProps {
2
+ export interface DrawerTitleProps extends DialogTitleProps {
3
3
  }
4
4
  declare var __VLS_6: {};
5
5
  type __VLS_Slots = {} & {
@@ -1,6 +1,6 @@
1
1
  import type { InputBaseProps } from './types/index.js';
2
2
  import type { InputWrapperProps } from './ui/input-wrapper.vue.js';
3
- export interface InputProps extends /* @vue-ignore */ InputWrapperProps, InputBaseProps {
3
+ export interface InputProps extends InputWrapperProps, InputBaseProps {
4
4
  /** If set, the input can have multiple lines, for example when `component="textarea"` @default `false` */
5
5
  multiline?: boolean;
6
6
  /** If set, `aria-` and other accessibility attributes are added to the input @default `true` */
@@ -5,6 +5,17 @@ import InputWrapper from "./ui/input-wrapper.vue";
5
5
  const { id, ...rest } = defineProps({
6
6
  multiline: { type: Boolean, required: false },
7
7
  withAria: { type: Boolean, required: false },
8
+ error: { type: String, required: false },
9
+ description: { type: String, required: false },
10
+ label: { type: String, required: false },
11
+ required: { type: Boolean, required: false },
12
+ id: { type: [String, null], required: false },
13
+ radius: { type: String, required: false },
14
+ size: { type: String, required: false },
15
+ variant: { type: String, required: false },
16
+ resize: { type: null, required: false },
17
+ leftSectionPE: { type: null, required: false },
18
+ rightSectionPE: { type: null, required: false },
8
19
  readonly: { type: Boolean, required: false },
9
20
  disabled: { type: Boolean, required: false }
10
21
  });
@@ -1,6 +1,6 @@
1
1
  import type { InputBaseProps } from './types/index.js';
2
2
  import type { InputWrapperProps } from './ui/input-wrapper.vue.js';
3
- export interface InputProps extends /* @vue-ignore */ InputWrapperProps, InputBaseProps {
3
+ export interface InputProps extends InputWrapperProps, InputBaseProps {
4
4
  /** If set, the input can have multiple lines, for example when `component="textarea"` @default `false` */
5
5
  multiline?: boolean;
6
6
  /** If set, `aria-` and other accessibility attributes are added to the input @default `true` */
@@ -14,5 +14,5 @@ export interface WrapperContext {
14
14
  /** section pointer-events */
15
15
  rightSectionPE?: CSSStyleDeclaration['pointerEvents'];
16
16
  }
17
- export declare const useProvideInputWrapper: (initial: WrapperContext) => import("vue").ShallowRef<WrapperContext, WrapperContext>;
18
- export declare const useInputWrapperState: () => import("vue").ShallowRef<WrapperContext, WrapperContext>;
17
+ export declare const useProvideInputWrapper: (init: any) => import("vue").ComputedRef<any>;
18
+ export declare const useInputWrapperState: () => import("vue").ComputedRef<any> | undefined;
@@ -1,9 +1,8 @@
1
- import { createStrictInjection } from "@nui/helpers";
2
- import { shallowRef } from "vue";
1
+ import { createInjectionState } from "@vueuse/core";
2
+ import { computed } from "vue";
3
3
  const injectionKey = Symbol("InputWrapper");
4
- const [useProvide, useState] = createStrictInjection((initial) => shallowRef(initial), {
5
- injectionKey,
6
- name: "InputWrapper"
4
+ const [useProvide, useState] = createInjectionState((init) => computed(() => init), {
5
+ injectionKey
7
6
  });
8
7
  export const useProvideInputWrapper = useProvide;
9
8
  export const useInputWrapperState = useState;
@@ -1,6 +1,6 @@
1
1
  import type { InputWrapperProps } from './index.js';
2
2
  import type { InputBaseProps } from './types/index.js';
3
- export interface NumberInputProps extends /* @vue-ignore */ InputBaseProps, Omit<InputWrapperProps, 'multiline' | 'resize' | 'id'> {
3
+ export interface NumberInputProps extends InputBaseProps, Omit<InputWrapperProps, 'multiline' | 'resize' | 'id'> {
4
4
  /** Minimum possible value */
5
5
  min?: number;
6
6
  /** Maximum possible value */
@@ -18,11 +18,17 @@ const {
18
18
  max: { type: Number, required: false },
19
19
  step: { type: Number, required: false },
20
20
  hideControls: { type: Boolean, required: false },
21
+ readonly: { type: Boolean, required: false },
22
+ disabled: { type: Boolean, required: false },
21
23
  error: { type: String, required: false },
22
24
  description: { type: String, required: false },
23
25
  label: { type: String, required: false },
24
26
  required: { type: Boolean, required: false },
25
- size: { type: String, required: false }
27
+ radius: { type: String, required: false },
28
+ size: { type: String, required: false },
29
+ variant: { type: String, required: false },
30
+ leftSectionPE: { type: null, required: false },
31
+ rightSectionPE: { type: null, required: false }
26
32
  });
27
33
  const id = useId();
28
34
  const value = defineModel({ type: Number, ...{ default: 0 } });
@@ -1,6 +1,6 @@
1
1
  import type { InputWrapperProps } from './index.js';
2
2
  import type { InputBaseProps } from './types/index.js';
3
- export interface NumberInputProps extends /* @vue-ignore */ InputBaseProps, Omit<InputWrapperProps, 'multiline' | 'resize' | 'id'> {
3
+ export interface NumberInputProps extends InputBaseProps, Omit<InputWrapperProps, 'multiline' | 'resize' | 'id'> {
4
4
  /** Minimum possible value */
5
5
  min?: number;
6
6
  /** Maximum possible value */
@@ -7,7 +7,11 @@ const props = defineProps({
7
7
  description: { type: String, required: false },
8
8
  label: { type: String, required: false },
9
9
  required: { type: Boolean, required: false },
10
- size: { type: String, required: false }
10
+ radius: { type: String, required: false },
11
+ size: { type: String, required: false },
12
+ variant: { type: String, required: false },
13
+ leftSectionPE: { type: null, required: false },
14
+ rightSectionPE: { type: null, required: false }
11
15
  });
12
16
  const password = ref(true);
13
17
  </script>
@@ -5,17 +5,17 @@ type __VLS_ModelProps = {
5
5
  modelValue?: string | undefined;
6
6
  };
7
7
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
- declare var __VLS_6: {}, __VLS_8: {}, __VLS_10: {}, __VLS_17: {}, __VLS_20: {};
8
+ declare var __VLS_11: {}, __VLS_14: {}, __VLS_16: {}, __VLS_18: {}, __VLS_20: {};
9
9
  type __VLS_Slots = {} & {
10
- label?: (props: typeof __VLS_6) => any;
10
+ leftSection?: (props: typeof __VLS_11) => any;
11
11
  } & {
12
- error?: (props: typeof __VLS_8) => any;
12
+ rightSection?: (props: typeof __VLS_14) => any;
13
13
  } & {
14
- description?: (props: typeof __VLS_10) => any;
14
+ label?: (props: typeof __VLS_16) => any;
15
15
  } & {
16
- leftSection?: (props: typeof __VLS_17) => any;
16
+ error?: (props: typeof __VLS_18) => any;
17
17
  } & {
18
- rightSection?: (props: typeof __VLS_20) => any;
18
+ description?: (props: typeof __VLS_20) => any;
19
19
  };
20
20
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
21
  "update:modelValue": (value: string | undefined) => any;
@@ -10,7 +10,11 @@ const { required, ...props } = defineProps({
10
10
  description: { type: String, required: false },
11
11
  label: { type: String, required: false },
12
12
  required: { type: Boolean, required: false },
13
- size: { type: String, required: false }
13
+ radius: { type: String, required: false },
14
+ size: { type: String, required: false },
15
+ variant: { type: String, required: false },
16
+ leftSectionPE: { type: null, required: false },
17
+ rightSectionPE: { type: null, required: false }
14
18
  });
15
19
  const model = defineModel({ type: null });
16
20
  const id = useId();
@@ -18,9 +22,6 @@ const id = useId();
18
22
 
19
23
  <template>
20
24
  <InputWrapper :id v-bind='props' :class='$attrs?.class'>
21
- <slot name='label' />
22
- <slot name='error' />
23
- <slot name='description' />
24
25
  <BaseInput
25
26
  :id
26
27
  v-model='model'
@@ -34,5 +35,8 @@ const id = useId();
34
35
  <slot name='rightSection' />
35
36
  </template>
36
37
  </BaseInput>
38
+ <slot name='label' />
39
+ <slot name='error' />
40
+ <slot name='description' />
37
41
  </InputWrapper>
38
42
  </template>
@@ -5,17 +5,17 @@ type __VLS_ModelProps = {
5
5
  modelValue?: string | undefined;
6
6
  };
7
7
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
- declare var __VLS_6: {}, __VLS_8: {}, __VLS_10: {}, __VLS_17: {}, __VLS_20: {};
8
+ declare var __VLS_11: {}, __VLS_14: {}, __VLS_16: {}, __VLS_18: {}, __VLS_20: {};
9
9
  type __VLS_Slots = {} & {
10
- label?: (props: typeof __VLS_6) => any;
10
+ leftSection?: (props: typeof __VLS_11) => any;
11
11
  } & {
12
- error?: (props: typeof __VLS_8) => any;
12
+ rightSection?: (props: typeof __VLS_14) => any;
13
13
  } & {
14
- description?: (props: typeof __VLS_10) => any;
14
+ label?: (props: typeof __VLS_16) => any;
15
15
  } & {
16
- leftSection?: (props: typeof __VLS_17) => any;
16
+ error?: (props: typeof __VLS_18) => any;
17
17
  } & {
18
- rightSection?: (props: typeof __VLS_20) => any;
18
+ description?: (props: typeof __VLS_20) => any;
19
19
  };
20
20
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
21
  "update:modelValue": (value: string | undefined) => any;
@@ -1,15 +1,16 @@
1
1
  import type { Component } from 'vue';
2
2
  import type { WrapperContext } from '../lib/input-wrapper.context.js';
3
3
  import type { InputBaseProps } from '../types/index.js';
4
- export interface BaseInputProps extends /* @vue-ignore */ InputBaseProps, Omit<WrapperContext, 'id'>, Required<Pick<WrapperContext, 'id'>> {
4
+ export interface BaseInputProps extends InputBaseProps, Omit<WrapperContext, 'id'> {
5
+ id: string;
5
6
  is?: 'input' | 'textarea' | Component;
6
7
  modelValue?: string;
7
8
  }
8
- declare var __VLS_6: {}, __VLS_18: {};
9
+ declare var __VLS_6: {}, __VLS_17: {};
9
10
  type __VLS_Slots = {} & {
10
11
  leftSection?: (props: typeof __VLS_6) => any;
11
12
  } & {
12
- rightSection?: (props: typeof __VLS_18) => any;
13
+ rightSection?: (props: typeof __VLS_17) => any;
13
14
  };
14
15
  declare const __VLS_base: import("vue").DefineComponent<BaseInputProps, {
15
16
  ref: Readonly<import("vue").ShallowRef<any>>;
@@ -8,10 +8,13 @@ const {
8
8
  modelValue = "",
9
9
  readonly,
10
10
  disabled,
11
- ..._props
11
+ ...props
12
12
  } = defineProps({
13
+ id: { type: String, required: true },
13
14
  is: { type: null, required: false },
14
15
  modelValue: { type: String, required: false },
16
+ readonly: { type: Boolean, required: false },
17
+ disabled: { type: Boolean, required: false },
15
18
  required: { type: Boolean, required: false },
16
19
  radius: { type: String, required: false },
17
20
  size: { type: String, required: false },
@@ -19,12 +22,10 @@ const {
19
22
  multiline: { type: Boolean, required: false },
20
23
  resize: { type: null, required: false },
21
24
  leftSectionPE: { type: null, required: false },
22
- rightSectionPE: { type: null, required: false },
23
- id: { type: [String, null], required: true }
25
+ rightSectionPE: { type: null, required: false }
24
26
  });
25
27
  defineEmits(["update:modelValue"]);
26
- const props = computed(() => _props);
27
- const api = useInputWrapperState() ?? props;
28
+ const api = useInputWrapperState() ?? computed(() => props);
28
29
  const style = computed(() => ({
29
30
  "--input-height": getSize(api.value.size, "input-height"),
30
31
  "--input-fz": getFontSize(api.value.size),
@@ -56,10 +57,10 @@ defineExpose({ ref });
56
57
  <slot name='leftSection' />
57
58
  </span>
58
59
 
59
- <component
60
+ <Box
60
61
  :is
61
62
  :id='api.id'
62
- v-bind='{ ...$attrs, class: void 0 }'
63
+ v-bind='{ ...$attrs, disabled, class: void 0 }'
63
64
  ref='input'
64
65
  :class='$style.input'
65
66
  :value='modelValue'
@@ -1,15 +1,16 @@
1
1
  import type { Component } from 'vue';
2
2
  import type { WrapperContext } from '../lib/input-wrapper.context.js';
3
3
  import type { InputBaseProps } from '../types/index.js';
4
- export interface BaseInputProps extends /* @vue-ignore */ InputBaseProps, Omit<WrapperContext, 'id'>, Required<Pick<WrapperContext, 'id'>> {
4
+ export interface BaseInputProps extends InputBaseProps, Omit<WrapperContext, 'id'> {
5
+ id: string;
5
6
  is?: 'input' | 'textarea' | Component;
6
7
  modelValue?: string;
7
8
  }
8
- declare var __VLS_6: {}, __VLS_18: {};
9
+ declare var __VLS_6: {}, __VLS_17: {};
9
10
  type __VLS_Slots = {} & {
10
11
  leftSection?: (props: typeof __VLS_6) => any;
11
12
  } & {
12
- rightSection?: (props: typeof __VLS_18) => any;
13
+ rightSection?: (props: typeof __VLS_17) => any;
13
14
  };
14
15
  declare const __VLS_base: import("vue").DefineComponent<BaseInputProps, {
15
16
  ref: Readonly<import("vue").ShallowRef<any>>;
@@ -1,6 +1,6 @@
1
1
  import type { NuanceSize } from '@nui/types';
2
2
  import type { BoxProps } from '../../box.vue.js';
3
- export interface InlineInputProps extends /* @vue-ignore */ Omit<BoxProps, 'is'> {
3
+ export interface InlineInputProps extends BoxProps {
4
4
  id: string;
5
5
  label?: string;
6
6
  description?: string;
@@ -18,7 +18,9 @@ const {
18
18
  error: { type: String, required: false },
19
19
  disabled: { type: Boolean, required: false, skipCheck: true },
20
20
  size: { type: String, required: false },
21
- labelPosition: { type: String, required: false }
21
+ labelPosition: { type: String, required: false },
22
+ is: { type: null, required: false },
23
+ mod: { type: [Object, Array, null], required: false }
22
24
  });
23
25
  const style = computed(() => ({
24
26
  "--label-fz": getFontSize(size),
@@ -1,6 +1,6 @@
1
1
  import type { NuanceSize } from '@nui/types';
2
2
  import type { BoxProps } from '../../box.vue.js';
3
- export interface InlineInputProps extends /* @vue-ignore */ Omit<BoxProps, 'is'> {
3
+ export interface InlineInputProps extends BoxProps {
4
4
  id: string;
5
5
  label?: string;
6
6
  description?: string;
@@ -1,9 +1,9 @@
1
1
  import type { WrapperContext } from '../lib/input-wrapper.context.js';
2
- import type { InputLabelProps } from './input-label.vue.js';
3
- export interface InputWrapperProps extends /* @vue-ignore */ WrapperContext, InputLabelProps {
2
+ export interface InputWrapperProps extends WrapperContext {
4
3
  error?: string;
5
4
  description?: string;
6
5
  label?: string;
6
+ required?: boolean;
7
7
  }
8
8
  declare var __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {};
9
9
  type __VLS_Slots = {} & {