nuance-ui 0.1.5 → 0.1.7

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 (154) 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/email-input.d.vue.ts +22 -0
  81. package/dist/runtime/components/input/email-input.vue +41 -0
  82. package/dist/runtime/components/input/email-input.vue.d.ts +22 -0
  83. package/dist/runtime/components/input/input.d.vue.ts +5 -5
  84. package/dist/runtime/components/input/input.vue +16 -7
  85. package/dist/runtime/components/input/input.vue.d.ts +5 -5
  86. package/dist/runtime/components/input/lib/input-wrapper.context.d.ts +2 -2
  87. package/dist/runtime/components/input/lib/input-wrapper.context.js +4 -5
  88. package/dist/runtime/components/input/number-input.d.vue.ts +8 -2
  89. package/dist/runtime/components/input/number-input.vue +17 -1
  90. package/dist/runtime/components/input/number-input.vue.d.ts +8 -2
  91. package/dist/runtime/components/input/password-input.d.vue.ts +19 -1
  92. package/dist/runtime/components/input/password-input.vue +25 -5
  93. package/dist/runtime/components/input/password-input.vue.d.ts +19 -1
  94. package/dist/runtime/components/input/text-input.d.vue.ts +6 -6
  95. package/dist/runtime/components/input/text-input.vue +14 -4
  96. package/dist/runtime/components/input/text-input.vue.d.ts +6 -6
  97. package/dist/runtime/components/input/ui/input-base.d.vue.ts +4 -3
  98. package/dist/runtime/components/input/ui/input-base.vue +10 -9
  99. package/dist/runtime/components/input/ui/input-base.vue.d.ts +4 -3
  100. package/dist/runtime/components/input/ui/input-inline.d.vue.ts +1 -1
  101. package/dist/runtime/components/input/ui/input-inline.vue +3 -1
  102. package/dist/runtime/components/input/ui/input-inline.vue.d.ts +1 -1
  103. package/dist/runtime/components/input/ui/input-wrapper.d.vue.ts +2 -2
  104. package/dist/runtime/components/input/ui/input-wrapper.vue +17 -7
  105. package/dist/runtime/components/input/ui/input-wrapper.vue.d.ts +2 -2
  106. package/dist/runtime/components/link/link-button.d.vue.ts +1 -1
  107. package/dist/runtime/components/link/link-button.vue +18 -1
  108. package/dist/runtime/components/link/link-button.vue.d.ts +1 -1
  109. package/dist/runtime/components/link/link.d.vue.ts +1 -1
  110. package/dist/runtime/components/link/link.vue +17 -1
  111. package/dist/runtime/components/link/link.vue.d.ts +1 -1
  112. package/dist/runtime/components/modal/modal-header.d.vue.ts +1 -1
  113. package/dist/runtime/components/modal/modal-header.vue +4 -1
  114. package/dist/runtime/components/modal/modal-header.vue.d.ts +1 -1
  115. package/dist/runtime/components/modal/modal-root.d.vue.ts +2 -1
  116. package/dist/runtime/components/modal/modal-root.vue +11 -1
  117. package/dist/runtime/components/modal/modal-root.vue.d.ts +2 -1
  118. package/dist/runtime/components/modal/modal-title.d.vue.ts +1 -1
  119. package/dist/runtime/components/modal/modal-title.vue +16 -1
  120. package/dist/runtime/components/modal/modal-title.vue.d.ts +1 -1
  121. package/dist/runtime/components/nav-link/nav-link.d.vue.ts +1 -1
  122. package/dist/runtime/components/nav-link/nav-link.vue +2 -0
  123. package/dist/runtime/components/nav-link/nav-link.vue.d.ts +1 -1
  124. package/dist/runtime/components/paper.d.vue.ts +1 -1
  125. package/dist/runtime/components/paper.vue +3 -1
  126. package/dist/runtime/components/paper.vue.d.ts +1 -1
  127. package/dist/runtime/components/select/select.d.vue.ts +5 -2
  128. package/dist/runtime/components/select/select.vue +13 -1
  129. package/dist/runtime/components/select/select.vue.d.ts +5 -2
  130. package/dist/runtime/components/tabs/tabs-list.d.vue.ts +1 -1
  131. package/dist/runtime/components/tabs/tabs-list.vue +3 -1
  132. package/dist/runtime/components/tabs/tabs-list.vue.d.ts +1 -1
  133. package/dist/runtime/components/tabs/tabs-panel.d.vue.ts +1 -1
  134. package/dist/runtime/components/tabs/tabs-panel.vue +3 -1
  135. package/dist/runtime/components/tabs/tabs-panel.vue.d.ts +1 -1
  136. package/dist/runtime/components/tabs/tabs-root.d.vue.ts +1 -1
  137. package/dist/runtime/components/tabs/tabs-root.vue +3 -1
  138. package/dist/runtime/components/tabs/tabs-root.vue.d.ts +1 -1
  139. package/dist/runtime/components/text.d.vue.ts +1 -1
  140. package/dist/runtime/components/text.vue +3 -1
  141. package/dist/runtime/components/text.vue.d.ts +1 -1
  142. package/dist/runtime/components/textarea.d.vue.ts +1 -1
  143. package/dist/runtime/components/textarea.vue +15 -2
  144. package/dist/runtime/components/textarea.vue.d.ts +1 -1
  145. package/dist/runtime/components/title.d.vue.ts +1 -1
  146. package/dist/runtime/components/title.vue +13 -1
  147. package/dist/runtime/components/title.vue.d.ts +1 -1
  148. package/dist/runtime/components/visually-hidden/visually-hidden-input.d.vue.ts +1 -1
  149. package/dist/runtime/components/visually-hidden/visually-hidden-input.vue +4 -1
  150. package/dist/runtime/components/visually-hidden/visually-hidden-input.vue.d.ts +1 -1
  151. package/dist/runtime/components/visually-hidden/visually-hidden.d.vue.ts +1 -1
  152. package/dist/runtime/components/visually-hidden/visually-hidden.vue +3 -1
  153. package/dist/runtime/components/visually-hidden/visually-hidden.vue.d.ts +1 -1
  154. package/package.json +2 -2
@@ -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>
@@ -19,10 +23,26 @@ const password = ref(true);
19
23
  right-section-p-e='all'
20
24
  >
21
25
  <template #rightSection>
22
- <ActionIcon variant='subtle' @click='password = !password'>
23
- <Icon v-if='password' name='gravity-ui:eye' />
24
- <Icon v-else name='gravity-ui:eye-slash' />
25
- </ActionIcon>
26
+ <slot name='rightSection'>
27
+ <ActionIcon variant='subtle' @click='password = !password'>
28
+ <Icon v-if='password' name='gravity-ui:eye' />
29
+ <Icon v-else name='gravity-ui:eye-slash' />
30
+ </ActionIcon>
31
+ </slot>
32
+ </template>
33
+
34
+ <template v-if='$slots.leftSection' #leftSection>
35
+ <slot name='leftSection' />
36
+ </template>
37
+
38
+ <template v-if='$slots.label' #label>
39
+ <slot name='label' />
40
+ </template>
41
+ <template v-if='$slots.error' #error>
42
+ <slot name='error' />
43
+ </template>
44
+ <template v-if='$slots.description' #description>
45
+ <slot name='description' />
26
46
  </template>
27
47
  </TextInput>
28
48
  </template>
@@ -1,4 +1,22 @@
1
1
  import type { TextInputProps } from './index.js';
2
- declare const __VLS_export: import("vue").DefineComponent<TextInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TextInputProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
+ declare var __VLS_7: {}, __VLS_27: {}, __VLS_30: {}, __VLS_33: {}, __VLS_36: {};
3
+ type __VLS_Slots = {} & {
4
+ rightSection?: (props: typeof __VLS_7) => any;
5
+ } & {
6
+ leftSection?: (props: typeof __VLS_27) => any;
7
+ } & {
8
+ label?: (props: typeof __VLS_30) => any;
9
+ } & {
10
+ error?: (props: typeof __VLS_33) => any;
11
+ } & {
12
+ description?: (props: typeof __VLS_36) => any;
13
+ };
14
+ declare const __VLS_base: import("vue").DefineComponent<TextInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TextInputProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
3
16
  declare const _default: typeof __VLS_export;
4
17
  export default _default;
18
+ type __VLS_WithSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -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_17: {}, __VLS_20: {}, __VLS_23: {};
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_17) => any;
15
15
  } & {
16
- leftSection?: (props: typeof __VLS_17) => any;
16
+ error?: (props: typeof __VLS_20) => any;
17
17
  } & {
18
- rightSection?: (props: typeof __VLS_20) => any;
18
+ description?: (props: typeof __VLS_23) => 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,14 @@ const id = useId();
34
35
  <slot name='rightSection' />
35
36
  </template>
36
37
  </BaseInput>
38
+ <template v-if='$slots.label' #label>
39
+ <slot name='label' />
40
+ </template>
41
+ <template v-if='$slots.error' #error>
42
+ <slot name='error' />
43
+ </template>
44
+ <template v-if='$slots.description' #description>
45
+ <slot name='description' />
46
+ </template>
37
47
  </InputWrapper>
38
48
  </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_17: {}, __VLS_20: {}, __VLS_23: {};
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_17) => any;
15
15
  } & {
16
- leftSection?: (props: typeof __VLS_17) => any;
16
+ error?: (props: typeof __VLS_20) => any;
17
17
  } & {
18
- rightSection?: (props: typeof __VLS_20) => any;
18
+ description?: (props: typeof __VLS_23) => 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),
@@ -43,8 +44,8 @@ defineExpose({ ref });
43
44
  :style
44
45
  :class='[$style.root, $attrs?.class]'
45
46
  :mod='[{
46
- "with-left-section": !!$slots?.leftSection,
47
- "with-right-section": !!$slots?.rightSection,
47
+ "with-left-section": !!$slots.leftSection,
48
+ "with-right-section": !!$slots.rightSection,
48
49
  "variant": api.variant
49
50
  }]'
50
51
  >
@@ -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 = {} & {
@@ -4,7 +4,7 @@ import { computed, useId } from "vue";
4
4
  import { useProvideInputWrapper } from "../lib/input-wrapper.context";
5
5
  import InputLabel from "./input-label.vue";
6
6
  const {
7
- id: _id,
7
+ id,
8
8
  error,
9
9
  description,
10
10
  label,
@@ -18,13 +18,23 @@ const {
18
18
  description: { type: String, required: false },
19
19
  label: { type: String, required: false },
20
20
  required: { type: Boolean, required: false },
21
- size: { type: String, required: false }
21
+ id: { type: [String, null], required: false },
22
+ radius: { type: String, required: false },
23
+ size: { type: String, required: false },
24
+ variant: { type: String, required: false },
25
+ multiline: { type: Boolean, required: false },
26
+ resize: { type: null, required: false },
27
+ leftSectionPE: { type: null, required: false },
28
+ rightSectionPE: { type: null, required: false }
22
29
  });
23
- const id = _id ?? useId();
30
+ const uid = id ?? useId();
24
31
  useProvideInputWrapper({
25
- id,
26
- variant,
32
+ id: uid,
33
+ error,
34
+ description,
35
+ label,
27
36
  required,
37
+ variant,
28
38
  size,
29
39
  radius,
30
40
  ...props
@@ -38,8 +48,8 @@ const style = computed(() => ({
38
48
  <template>
39
49
  <div :style :class='$style.root'>
40
50
  <InputLabel
41
- :data-v-hidden='!label || !$slots.label || null'
42
- :for='id'
51
+ :data-v-hidden='!label && !$slots.label || null'
52
+ :for='uid'
43
53
  :class='$style.label'
44
54
  :size
45
55
  :required
@@ -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 = {} & {
@@ -1,6 +1,6 @@
1
1
  import type { NuxtLinkProps } from '#app';
2
2
  import type { ButtonProps } from '../button/index.js';
3
- export interface LinkButtonProps extends /* @vue-ignore */ Omit<NuxtLinkProps, 'href' | 'custom'>, ButtonProps {
3
+ export interface LinkButtonProps extends Omit<NuxtLinkProps, 'href' | 'custom'>, ButtonProps {
4
4
  }
5
5
  declare var __VLS_15: {}, __VLS_17: {}, __VLS_20: {};
6
6
  type __VLS_Slots = {} & {
@@ -2,6 +2,21 @@
2
2
  import Button from "../button/button.vue";
3
3
  import { extractNuxtLinkProps } from "./lib";
4
4
  const props = defineProps({
5
+ to: { type: null, required: false },
6
+ external: { type: Boolean, required: false },
7
+ target: { type: [String, Object, null], required: false },
8
+ rel: { type: [String, Object, null], required: false },
9
+ noRel: { type: Boolean, required: false },
10
+ prefetchedClass: { type: String, required: false },
11
+ prefetch: { type: Boolean, required: false },
12
+ prefetchOn: { type: [String, Object], required: false },
13
+ noPrefetch: { type: Boolean, required: false },
14
+ trailingSlash: { type: String, required: false },
15
+ activeClass: { type: String, required: false },
16
+ exactActiveClass: { type: String, required: false },
17
+ ariaCurrentValue: { type: String, required: false },
18
+ viewTransition: { type: Boolean, required: false },
19
+ replace: { type: Boolean, required: false },
5
20
  size: { type: null, required: false },
6
21
  variant: { type: String, required: false },
7
22
  gradient: { type: Object, required: false },
@@ -12,7 +27,9 @@ const props = defineProps({
12
27
  leftSectionPE: { type: null, required: false },
13
28
  leftSectionProps: { type: Object, required: false },
14
29
  rightSectionPE: { type: null, required: false },
15
- rightSectionProps: { type: Object, required: false }
30
+ rightSectionProps: { type: Object, required: false },
31
+ is: { type: null, required: false },
32
+ mod: { type: [Object, Array, null], required: false }
16
33
  });
17
34
  const { link, rest } = extractNuxtLinkProps(props);
18
35
  </script>
@@ -1,6 +1,6 @@
1
1
  import type { NuxtLinkProps } from '#app';
2
2
  import type { ButtonProps } from '../button/index.js';
3
- export interface LinkButtonProps extends /* @vue-ignore */ Omit<NuxtLinkProps, 'href' | 'custom'>, ButtonProps {
3
+ export interface LinkButtonProps extends Omit<NuxtLinkProps, 'href' | 'custom'>, ButtonProps {
4
4
  }
5
5
  declare var __VLS_15: {}, __VLS_17: {}, __VLS_20: {};
6
6
  type __VLS_Slots = {} & {
@@ -1,6 +1,6 @@
1
1
  import type { NuxtLinkProps } from '#app';
2
2
  import type { TextProps } from '../text.vue.js';
3
- export interface LinkProps extends /* @vue-ignore */ Omit<NuxtLinkProps, 'href' | 'custom'>, Omit<TextProps, 'is'> {
3
+ export interface LinkProps extends Omit<NuxtLinkProps, 'href' | 'custom'>, Omit<TextProps, 'is'> {
4
4
  underline?: boolean;
5
5
  }
6
6
  declare var __VLS_14: {};
@@ -4,6 +4,21 @@ import Text from "../text.vue";
4
4
  import { extractNuxtLinkProps } from "./lib";
5
5
  const props = defineProps({
6
6
  underline: { type: Boolean, required: false },
7
+ to: { type: null, required: false },
8
+ external: { type: Boolean, required: false },
9
+ target: { type: [String, Object, null], required: false },
10
+ rel: { type: [String, Object, null], required: false },
11
+ noRel: { type: Boolean, required: false },
12
+ prefetchedClass: { type: String, required: false },
13
+ prefetch: { type: Boolean, required: false },
14
+ prefetchOn: { type: [String, Object], required: false },
15
+ noPrefetch: { type: Boolean, required: false },
16
+ trailingSlash: { type: String, required: false },
17
+ activeClass: { type: String, required: false },
18
+ exactActiveClass: { type: String, required: false },
19
+ ariaCurrentValue: { type: String, required: false },
20
+ viewTransition: { type: Boolean, required: false },
21
+ replace: { type: Boolean, required: false },
7
22
  size: { type: null, required: false },
8
23
  lineClamp: { type: Number, required: false },
9
24
  truncate: { type: [String, Boolean], required: false },
@@ -14,7 +29,8 @@ const props = defineProps({
14
29
  fz: { type: null, required: false },
15
30
  lh: { type: String, required: false },
16
31
  fw: { type: null, required: false },
17
- c: { type: null, required: false }
32
+ c: { type: null, required: false },
33
+ mod: { type: [Object, Array, null], required: false }
18
34
  });
19
35
  const { link, rest } = extractNuxtLinkProps(props);
20
36
  </script>
@@ -1,6 +1,6 @@
1
1
  import type { NuxtLinkProps } from '#app';
2
2
  import type { TextProps } from '../text.vue.js';
3
- export interface LinkProps extends /* @vue-ignore */ Omit<NuxtLinkProps, 'href' | 'custom'>, Omit<TextProps, 'is'> {
3
+ export interface LinkProps extends Omit<NuxtLinkProps, 'href' | 'custom'>, Omit<TextProps, 'is'> {
4
4
  underline?: boolean;
5
5
  }
6
6
  declare var __VLS_14: {};
@@ -1,5 +1,5 @@
1
1
  import type { DialogHeaderProps } from '../dialog/index.js';
2
- export interface ModalHeaderProps extends /* @vue-ignore */ DialogHeaderProps {
2
+ export interface ModalHeaderProps 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 ModalHeaderProps extends /* @vue-ignore */ DialogHeaderProps {
2
+ export interface ModalHeaderProps 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 ModalRootProps extends /* @vue-ignore */ Omit<DialogRootProps, 'modal' | 'closeOnClickOutside' | 'rootClass' | 'withoutOverlay'> {
2
+ type OmittedDialogRootProps = Omit<DialogRootProps, 'modal' | 'closeOnClickOutside' | 'rootClass' | 'withoutOverlay'>;
3
+ export interface ModalRootProps extends OmittedDialogRootProps {
3
4
  /** If set, the modal is centered vertically @default `false` */
4
5
  centered?: boolean;
5
6
  /** If set, the modal takes the entire screen @default `false` */
@@ -9,7 +9,17 @@ const {
9
9
  ...rest
10
10
  } = defineProps({
11
11
  centered: { type: Boolean, required: false },
12
- fullScreen: { type: Boolean, required: false }
12
+ fullScreen: { type: Boolean, required: false },
13
+ withinPortal: { type: Boolean, required: false },
14
+ yOffset: { type: null, required: false },
15
+ xOffset: { type: null, required: false },
16
+ radius: { type: [String, Number], required: false },
17
+ size: { type: String, required: false },
18
+ shadow: { type: String, required: false },
19
+ padding: { type: [String, Number], required: false },
20
+ transition: { type: String, 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 ModalRootProps extends /* @vue-ignore */ Omit<DialogRootProps, 'modal' | 'closeOnClickOutside' | 'rootClass' | 'withoutOverlay'> {
2
+ type OmittedDialogRootProps = Omit<DialogRootProps, 'modal' | 'closeOnClickOutside' | 'rootClass' | 'withoutOverlay'>;
3
+ export interface ModalRootProps extends OmittedDialogRootProps {
3
4
  /** If set, the modal is centered vertically @default `false` */
4
5
  centered?: boolean;
5
6
  /** If set, the modal takes the entire screen @default `false` */
@@ -1,5 +1,5 @@
1
1
  import type { DialogTitleProps } from '../dialog/index.js';
2
- export interface ModalTitleProps extends /* @vue-ignore */ DialogTitleProps {
2
+ export interface ModalTitleProps 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 ModalTitleProps extends /* @vue-ignore */ DialogTitleProps {
2
+ export interface ModalTitleProps extends DialogTitleProps {
3
3
  }
4
4
  declare var __VLS_6: {};
5
5
  type __VLS_Slots = {} & {
@@ -1,7 +1,7 @@
1
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
- export interface NavLinkProps extends /* @vue-ignore */ BoxProps, Omit<NuxtLinkProps, 'href' | 'custom'> {
4
+ export interface NavLinkProps extends BoxProps, Omit<NuxtLinkProps, 'href' | 'custom'> {
5
5
  /** Link description, displayed below the label */
6
6
  description?: string;
7
7
  /** Determines whether the link should have active styles @default `false` */
@@ -12,6 +12,8 @@ const props = defineProps({
12
12
  noWrap: { type: Boolean, required: false },
13
13
  disabled: { type: Boolean, required: false },
14
14
  variant: { type: String, required: false },
15
+ is: { type: null, required: false },
16
+ mod: { type: [Object, Array, null], required: false },
15
17
  to: { type: null, required: false },
16
18
  external: { type: Boolean, required: false },
17
19
  target: { type: [String, Object, null], required: false },
@@ -1,7 +1,7 @@
1
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
- export interface NavLinkProps extends /* @vue-ignore */ BoxProps, Omit<NuxtLinkProps, 'href' | 'custom'> {
4
+ export interface NavLinkProps extends BoxProps, Omit<NuxtLinkProps, 'href' | 'custom'> {
5
5
  /** Link description, displayed below the label */
6
6
  description?: string;
7
7
  /** Determines whether the link should have active styles @default `false` */
@@ -1,6 +1,6 @@
1
1
  import type { NuanceRadius, NuanceShadow } from '@nui/types';
2
2
  import type { BoxProps } from './box.vue.js';
3
- export interface PaperProps extends /* @vue-ignore */ BoxProps {
3
+ export interface PaperProps extends BoxProps {
4
4
  shadow?: NuanceShadow;
5
5
  radius?: NuanceRadius;
6
6
  withBorder?: boolean;
@@ -5,7 +5,9 @@ import Box from "./box.vue";
5
5
  const { is, mod, radius, shadow, withBorder } = defineProps({
6
6
  shadow: { type: String, required: false },
7
7
  radius: { type: [String, Number], required: false },
8
- withBorder: { type: Boolean, required: false }
8
+ withBorder: { type: Boolean, required: false },
9
+ is: { type: null, required: false },
10
+ mod: { type: [Object, Array, null], required: false }
9
11
  });
10
12
  const style = computed(() => ({
11
13
  "--paper-radius": radius && getRadius(radius),
@@ -1,6 +1,6 @@
1
1
  import type { NuanceRadius, NuanceShadow } from '@nui/types';
2
2
  import type { BoxProps } from './box.vue.js';
3
- export interface PaperProps extends /* @vue-ignore */ BoxProps {
3
+ export interface PaperProps extends BoxProps {
4
4
  shadow?: NuanceShadow;
5
5
  radius?: NuanceRadius;
6
6
  withBorder?: boolean;