@naptics/vue-collection 0.1.10 → 0.2.1

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 (53) hide show
  1. package/components/NAlert.d.ts +0 -12
  2. package/components/NAlert.js +1 -5
  3. package/components/NBadge.d.ts +21 -12
  4. package/components/NBadge.js +5 -3
  5. package/components/NBreadcrub.d.ts +3 -15
  6. package/components/NBreadcrub.js +3 -7
  7. package/components/NButton.d.ts +21 -12
  8. package/components/NButton.js +5 -3
  9. package/components/NCheckbox.d.ts +0 -12
  10. package/components/NCheckbox.js +2 -6
  11. package/components/NCheckboxLabel.d.ts +0 -3
  12. package/components/NCheckboxLabel.js +2 -8
  13. package/components/NDropdown.d.ts +89 -14
  14. package/components/NDropdown.js +9 -7
  15. package/components/NDropzone.d.ts +0 -12
  16. package/components/NDropzone.js +2 -6
  17. package/components/NFormModal.js +11 -7
  18. package/components/NIconButton.d.ts +21 -12
  19. package/components/NIconButton.js +5 -3
  20. package/components/NIconCircle.d.ts +0 -12
  21. package/components/NIconCircle.js +2 -6
  22. package/components/NInput.d.ts +9 -18
  23. package/components/NInput.js +1 -7
  24. package/components/NInputPhone.d.ts +9 -9
  25. package/components/NInputSelect.d.ts +9 -9
  26. package/components/NInputSuggestion.d.ts +9 -9
  27. package/components/NLink.d.ts +0 -12
  28. package/components/NLink.js +1 -5
  29. package/components/NList.d.ts +0 -12
  30. package/components/NList.js +2 -8
  31. package/components/NLoadingIndicator.d.ts +0 -12
  32. package/components/NLoadingIndicator.js +2 -6
  33. package/components/NPagination.d.ts +0 -12
  34. package/components/NPagination.js +1 -5
  35. package/components/NSearchbar.d.ts +0 -12
  36. package/components/NSearchbar.js +1 -7
  37. package/components/NSearchbarList.d.ts +0 -12
  38. package/components/NSearchbarList.js +1 -6
  39. package/components/NSelect.d.ts +9 -18
  40. package/components/NSelect.js +0 -4
  41. package/components/NTable.d.ts +27 -53
  42. package/components/NTable.js +21 -30
  43. package/components/NTableAction.d.ts +0 -12
  44. package/components/NTableAction.js +1 -5
  45. package/components/NTextArea.d.ts +9 -18
  46. package/components/NTextArea.js +0 -4
  47. package/components/NTooltip.d.ts +32 -12
  48. package/components/NTooltip.js +21 -11
  49. package/components/NValInput.d.ts +9 -9
  50. package/components/NValInput.js +4 -9
  51. package/package.json +1 -1
  52. package/utils/utils.d.ts +7 -0
  53. package/utils/utils.js +9 -0
@@ -60,11 +60,7 @@ export const nDropzoneProps = {
60
60
  height: {
61
61
  type: String,
62
62
  default: 'min-h-36'
63
- },
64
- /**
65
- * Adds the classes to the top-level element.
66
- */
67
- addClass: String
63
+ }
68
64
  };
69
65
  /**
70
66
  * The `NDropzone` is an area where files can be added by the user by drag & drop.
@@ -147,7 +143,7 @@ export default createComponent('NDropzone', nDropzoneProps, props => {
147
143
  return () => {
148
144
  let _slot;
149
145
  return _createVNode("div", null, [_createVNode("button", {
150
- "class": ['block w-full rounded-md border-dashed border-2 hover:border-primary-300 hover:bg-primary-50 focus-visible:border-primary-500 focus:outline-none ', 'flex flex-col items-center justify-center text-center text-sm select-none hover:text-primary-700 p-4', isDragOver.value ? 'border-primary-300 bg-primary-50 text-primary-700' : 'border-default-300 bg-default-50 text-default-500', props.height, props.addClass],
146
+ "class": ['block w-full rounded-md border-dashed border-2 hover:border-primary-300 hover:bg-primary-50 focus-visible:border-primary-500 focus:outline-none ', 'flex flex-col items-center justify-center text-center text-sm select-none hover:text-primary-700 p-4', isDragOver.value ? 'border-primary-300 bg-primary-50 text-primary-700' : 'border-default-300 bg-default-50 text-default-500', props.height],
151
147
  "onDrop": onDrop,
152
148
  "onDragover": onDragOver,
153
149
  "onDragleave": onDragLeave,
@@ -34,15 +34,19 @@ export const nFormModalProps = {
34
34
  export default createComponentWithSlots('NFormModal', nFormModalProps, ['modal', 'header', 'footer'], (props, {
35
35
  slots
36
36
  }) => {
37
+ const onOk = () => {
38
+ if (!props.form || props.form.validate().isValid) {
39
+ props.onOk?.();
40
+ if (props.closeOnOk) props.onUpdateValue?.(false);
41
+ }
42
+ };
37
43
  const childProps = computed(() => ({
38
44
  ...props,
39
- onOk: () => {
40
- if (!props.form || props.form.validate().isValid) {
41
- props.onOk?.();
42
- if (props.closeOnOk) props.onUpdateValue?.(false);
43
- }
44
- },
45
- closeOnOk: false
45
+ onOk,
46
+ closeOnOk: false,
47
+ onKeydown: event => {
48
+ if (event.metaKey && event.key === 'Enter') onOk();
49
+ }
46
50
  }));
47
51
  return () => _createVNode(NModal, childProps.value, {
48
52
  default: () => [_createVNode(NForm, {
@@ -16,8 +16,9 @@ export declare const nIconButtonProps: {
16
16
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
17
17
  readonly default: "max-w-xs";
18
18
  };
19
- readonly tooltipWrapperAddClass: StringConstructor;
20
- readonly tooltipContentAddClass: StringConstructor;
19
+ readonly tooltipWrapperClass: StringConstructor;
20
+ readonly tooltipContentClass: StringConstructor;
21
+ readonly tooltipArrowClass: StringConstructor;
21
22
  /**
22
23
  * The icon of the icon-button.
23
24
  */
@@ -62,9 +63,11 @@ export declare const nIconButtonProps: {
62
63
  */
63
64
  readonly disabled: BooleanConstructor;
64
65
  /**
65
- * Adds the classes to the top-level element.
66
+ * Adds the classes to the icon-button.
67
+ * Use this instead of `class` to style the button, because the button is wrapped inside
68
+ * a div for the tooltip and `class` would be applied to the wrapping div.
66
69
  */
67
- readonly addClass: StringConstructor;
70
+ readonly buttonClass: StringConstructor;
68
71
  /**
69
72
  * This is called when the icon-button is clicked.
70
73
  * It is only called when the `route` prop is not set on the icon-button.
@@ -89,8 +92,9 @@ declare const _default: import("vue").DefineComponent<{
89
92
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
90
93
  readonly default: "max-w-xs";
91
94
  };
92
- readonly tooltipWrapperAddClass: StringConstructor;
93
- readonly tooltipContentAddClass: StringConstructor;
95
+ readonly tooltipWrapperClass: StringConstructor;
96
+ readonly tooltipContentClass: StringConstructor;
97
+ readonly tooltipArrowClass: StringConstructor;
94
98
  /**
95
99
  * The icon of the icon-button.
96
100
  */
@@ -135,9 +139,11 @@ declare const _default: import("vue").DefineComponent<{
135
139
  */
136
140
  readonly disabled: BooleanConstructor;
137
141
  /**
138
- * Adds the classes to the top-level element.
142
+ * Adds the classes to the icon-button.
143
+ * Use this instead of `class` to style the button, because the button is wrapped inside
144
+ * a div for the tooltip and `class` would be applied to the wrapping div.
139
145
  */
140
- readonly addClass: StringConstructor;
146
+ readonly buttonClass: StringConstructor;
141
147
  /**
142
148
  * This is called when the icon-button is clicked.
143
149
  * It is only called when the `route` prop is not set on the icon-button.
@@ -158,8 +164,9 @@ declare const _default: import("vue").DefineComponent<{
158
164
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
159
165
  readonly default: "max-w-xs";
160
166
  };
161
- readonly tooltipWrapperAddClass: StringConstructor;
162
- readonly tooltipContentAddClass: StringConstructor;
167
+ readonly tooltipWrapperClass: StringConstructor;
168
+ readonly tooltipContentClass: StringConstructor;
169
+ readonly tooltipArrowClass: StringConstructor;
163
170
  /**
164
171
  * The icon of the icon-button.
165
172
  */
@@ -204,9 +211,11 @@ declare const _default: import("vue").DefineComponent<{
204
211
  */
205
212
  readonly disabled: BooleanConstructor;
206
213
  /**
207
- * Adds the classes to the top-level element.
214
+ * Adds the classes to the icon-button.
215
+ * Use this instead of `class` to style the button, because the button is wrapped inside
216
+ * a div for the tooltip and `class` would be applied to the wrapping div.
208
217
  */
209
- readonly addClass: StringConstructor;
218
+ readonly buttonClass: StringConstructor;
210
219
  /**
211
220
  * This is called when the icon-button is clicked.
212
221
  * It is only called when the `route` prop is not set on the icon-button.
@@ -48,9 +48,11 @@ export const nIconButtonProps = {
48
48
  */
49
49
  disabled: Boolean,
50
50
  /**
51
- * Adds the classes to the top-level element.
51
+ * Adds the classes to the icon-button.
52
+ * Use this instead of `class` to style the button, because the button is wrapped inside
53
+ * a div for the tooltip and `class` would be applied to the wrapping div.
52
54
  */
53
- addClass: String,
55
+ buttonClass: String,
54
56
  /**
55
57
  * This is called when the icon-button is clicked.
56
58
  * It is only called when the `route` prop is not set on the icon-button.
@@ -62,7 +64,7 @@ export const nIconButtonProps = {
62
64
  * The `NIconButton` is a regular button which does not have any text but an icon instead.
63
65
  */
64
66
  export default createComponent('NIconButton', nIconButtonProps, props => {
65
- const classes = () => ['block p-0.5 rounded-md focus:outline-none focus-visible:ring-2 -m-1', props.disabled ? `text-${props.color}-200 cursor-default` : `hover:bg-${props.color}-${props.shade} hover:bg-opacity-10 text-${props.color}-${props.shade} focus-visible:ring-${props.color}-${props.shade} cursor-pointer`, props.addClass];
67
+ const classes = () => ['block p-0.5 rounded-md focus:outline-none focus-visible:ring-2 -m-1', props.disabled ? `text-${props.color}-200 cursor-default` : `hover:bg-${props.color}-${props.shade} hover:bg-opacity-10 text-${props.color}-${props.shade} focus-visible:ring-${props.color}-${props.shade} cursor-pointer`, props.buttonClass];
66
68
  const content = () => _createVNode(props.icon, {
67
69
  "class": `w-${props.size} h-${props.size}`
68
70
  }, null);
@@ -41,10 +41,6 @@ export declare const nIconCircleProps: {
41
41
  readonly type: NumberConstructor;
42
42
  readonly default: 100;
43
43
  };
44
- /**
45
- * Adds the classes to the top-level element.
46
- */
47
- readonly addClass: StringConstructor;
48
44
  };
49
45
  /**
50
46
  * The `NIconCircle` is an icon with a colored circle around it.
@@ -90,10 +86,6 @@ declare const _default: import("vue").DefineComponent<{
90
86
  readonly type: NumberConstructor;
91
87
  readonly default: 100;
92
88
  };
93
- /**
94
- * Adds the classes to the top-level element.
95
- */
96
- readonly addClass: StringConstructor;
97
89
  }, import("vue").RenderFunction, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
98
90
  /**
99
91
  * The icon of the icon-circle.
@@ -135,10 +127,6 @@ declare const _default: import("vue").DefineComponent<{
135
127
  readonly type: NumberConstructor;
136
128
  readonly default: 100;
137
129
  };
138
- /**
139
- * Adds the classes to the top-level element.
140
- */
141
- readonly addClass: StringConstructor;
142
130
  }>> & {}, {
143
131
  readonly color: string;
144
132
  readonly iconShade: number;
@@ -40,11 +40,7 @@ export const nIconCircleProps = {
40
40
  bgShade: {
41
41
  type: Number,
42
42
  default: 100
43
- },
44
- /**
45
- * Adds the classes to the top-level element.
46
- */
47
- addClass: String
43
+ }
48
44
  };
49
45
  const DEFAULT_CIRCLE_SIZE = 16;
50
46
  const SCALING_FACTOR = 0.55;
@@ -61,7 +57,7 @@ export default createComponent('NIconCircle', nIconCircleProps, props => {
61
57
  circleSize *= 4;
62
58
  iconSize *= 4;
63
59
  return () => _createVNode("div", {
64
- "class": ['flex items-center justify-center rounded-full', `bg-${props.color}-${props.bgShade}`, props.addClass],
60
+ "class": ['flex items-center justify-center rounded-full', `bg-${props.color}-${props.bgShade}`],
65
61
  "style": `width: ${circleSize}px; height: ${circleSize}px`
66
62
  }, [_createVNode("div", {
67
63
  "class": `text-${props.color}-${props.iconShade}`,
@@ -13,8 +13,9 @@ export declare const nInputProps: {
13
13
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
14
14
  readonly default: "max-w-xs";
15
15
  };
16
- readonly tooltipWrapperAddClass: StringConstructor;
17
- readonly tooltipContentAddClass: StringConstructor;
16
+ readonly tooltipWrapperClass: StringConstructor;
17
+ readonly tooltipContentClass: StringConstructor;
18
+ readonly tooltipArrowClass: StringConstructor;
18
19
  /**
19
20
  * The name of the input. Is displayed as a label above the input.
20
21
  */
@@ -65,10 +66,6 @@ export declare const nInputProps: {
65
66
  * Adds the classes directly to the input (e.g. for shadow).
66
67
  */
67
68
  readonly inputClass: StringConstructor;
68
- /**
69
- * Adds the classes to the top-level element.
70
- */
71
- readonly addClass: StringConstructor;
72
69
  /**
73
70
  * This is called when the input reveices focus.
74
71
  */
@@ -102,8 +99,9 @@ declare const _default: import("vue").DefineComponent<{
102
99
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
103
100
  readonly default: "max-w-xs";
104
101
  };
105
- readonly tooltipWrapperAddClass: StringConstructor;
106
- readonly tooltipContentAddClass: StringConstructor;
102
+ readonly tooltipWrapperClass: StringConstructor;
103
+ readonly tooltipContentClass: StringConstructor;
104
+ readonly tooltipArrowClass: StringConstructor;
107
105
  /**
108
106
  * The name of the input. Is displayed as a label above the input.
109
107
  */
@@ -154,10 +152,6 @@ declare const _default: import("vue").DefineComponent<{
154
152
  * Adds the classes directly to the input (e.g. for shadow).
155
153
  */
156
154
  readonly inputClass: StringConstructor;
157
- /**
158
- * Adds the classes to the top-level element.
159
- */
160
- readonly addClass: StringConstructor;
161
155
  /**
162
156
  * This is called when the input reveices focus.
163
157
  */
@@ -181,8 +175,9 @@ declare const _default: import("vue").DefineComponent<{
181
175
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
182
176
  readonly default: "max-w-xs";
183
177
  };
184
- readonly tooltipWrapperAddClass: StringConstructor;
185
- readonly tooltipContentAddClass: StringConstructor;
178
+ readonly tooltipWrapperClass: StringConstructor;
179
+ readonly tooltipContentClass: StringConstructor;
180
+ readonly tooltipArrowClass: StringConstructor;
186
181
  /**
187
182
  * The name of the input. Is displayed as a label above the input.
188
183
  */
@@ -233,10 +228,6 @@ declare const _default: import("vue").DefineComponent<{
233
228
  * Adds the classes directly to the input (e.g. for shadow).
234
229
  */
235
230
  readonly inputClass: StringConstructor;
236
- /**
237
- * Adds the classes to the top-level element.
238
- */
239
- readonly addClass: StringConstructor;
240
231
  /**
241
232
  * This is called when the input reveices focus.
242
233
  */
@@ -57,10 +57,6 @@ export const nInputProps = {
57
57
  * Adds the classes directly to the input (e.g. for shadow).
58
58
  */
59
59
  inputClass: String,
60
- /**
61
- * Adds the classes to the top-level element.
62
- */
63
- addClass: String,
64
60
  /**
65
61
  * This is called when the input reveices focus.
66
62
  */
@@ -80,9 +76,7 @@ export default createComponent('NInput', nInputProps, (props, context) => {
80
76
  focus: () => inputRef.value?.focus()
81
77
  };
82
78
  context.expose(exposed);
83
- return () => _createVNode("div", {
84
- "class": props.addClass
85
- }, [props.name && !props.hideLabel && _createVNode("label", {
79
+ return () => _createVNode("div", null, [props.name && !props.hideLabel && _createVNode("label", {
86
80
  "for": props.name,
87
81
  "class": ['block text-sm font-medium mb-1', props.disabled ? 'text-default-300' : 'text-default-700']
88
82
  }, [props.name]), _createVNode(NTooltip, _mergeProps({
@@ -22,8 +22,9 @@ export declare const nInputPhoneProps: {
22
22
  readonly type: import("vue").PropType<import("../utils/tailwind").TWMaxWidth>;
23
23
  readonly default: "max-w-xs";
24
24
  };
25
- readonly tooltipWrapperAddClass: StringConstructor;
26
- readonly tooltipContentAddClass: StringConstructor;
25
+ readonly tooltipWrapperClass: StringConstructor;
26
+ readonly tooltipContentClass: StringConstructor;
27
+ readonly tooltipArrowClass: StringConstructor;
27
28
  readonly name: StringConstructor;
28
29
  readonly placeholder: StringConstructor;
29
30
  readonly autocomplete: {
@@ -40,7 +41,6 @@ export declare const nInputPhoneProps: {
40
41
  readonly small: BooleanConstructor;
41
42
  readonly hideLabel: BooleanConstructor;
42
43
  readonly inputClass: StringConstructor;
43
- readonly addClass: StringConstructor;
44
44
  readonly onFocus: import("vue").PropType<() => void>;
45
45
  readonly onBlur: import("vue").PropType<() => void>;
46
46
  readonly value: import("vue").PropType<string>;
@@ -73,8 +73,9 @@ declare const _default: import("vue").DefineComponent<{
73
73
  readonly type: import("vue").PropType<import("../utils/tailwind").TWMaxWidth>;
74
74
  readonly default: "max-w-xs";
75
75
  };
76
- readonly tooltipWrapperAddClass: StringConstructor;
77
- readonly tooltipContentAddClass: StringConstructor;
76
+ readonly tooltipWrapperClass: StringConstructor;
77
+ readonly tooltipContentClass: StringConstructor;
78
+ readonly tooltipArrowClass: StringConstructor;
78
79
  readonly name: StringConstructor;
79
80
  readonly placeholder: StringConstructor;
80
81
  readonly autocomplete: {
@@ -91,7 +92,6 @@ declare const _default: import("vue").DefineComponent<{
91
92
  readonly small: BooleanConstructor;
92
93
  readonly hideLabel: BooleanConstructor;
93
94
  readonly inputClass: StringConstructor;
94
- readonly addClass: StringConstructor;
95
95
  readonly onFocus: import("vue").PropType<() => void>;
96
96
  readonly onBlur: import("vue").PropType<() => void>;
97
97
  readonly value: import("vue").PropType<string>;
@@ -120,8 +120,9 @@ declare const _default: import("vue").DefineComponent<{
120
120
  readonly type: import("vue").PropType<import("../utils/tailwind").TWMaxWidth>;
121
121
  readonly default: "max-w-xs";
122
122
  };
123
- readonly tooltipWrapperAddClass: StringConstructor;
124
- readonly tooltipContentAddClass: StringConstructor;
123
+ readonly tooltipWrapperClass: StringConstructor;
124
+ readonly tooltipContentClass: StringConstructor;
125
+ readonly tooltipArrowClass: StringConstructor;
125
126
  readonly name: StringConstructor;
126
127
  readonly placeholder: StringConstructor;
127
128
  readonly autocomplete: {
@@ -138,7 +139,6 @@ declare const _default: import("vue").DefineComponent<{
138
139
  readonly small: BooleanConstructor;
139
140
  readonly hideLabel: BooleanConstructor;
140
141
  readonly inputClass: StringConstructor;
141
- readonly addClass: StringConstructor;
142
142
  readonly onFocus: import("vue").PropType<() => void>;
143
143
  readonly onBlur: import("vue").PropType<() => void>;
144
144
  readonly value: import("vue").PropType<string>;
@@ -65,8 +65,9 @@ export declare const nInputSelectProps: {
65
65
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
66
66
  readonly default: "max-w-xs";
67
67
  };
68
- readonly tooltipWrapperAddClass: StringConstructor;
69
- readonly tooltipContentAddClass: StringConstructor;
68
+ readonly tooltipWrapperClass: StringConstructor;
69
+ readonly tooltipContentClass: StringConstructor;
70
+ readonly tooltipArrowClass: StringConstructor;
70
71
  readonly name: StringConstructor;
71
72
  readonly placeholder: StringConstructor;
72
73
  readonly autocomplete: {
@@ -83,7 +84,6 @@ export declare const nInputSelectProps: {
83
84
  readonly small: BooleanConstructor;
84
85
  readonly hideLabel: BooleanConstructor;
85
86
  readonly inputClass: StringConstructor;
86
- readonly addClass: StringConstructor;
87
87
  readonly onFocus: PropType<() => void>;
88
88
  readonly onBlur: PropType<() => void>;
89
89
  };
@@ -159,8 +159,9 @@ declare const _default: import("vue").DefineComponent<{
159
159
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
160
160
  readonly default: "max-w-xs";
161
161
  };
162
- readonly tooltipWrapperAddClass: StringConstructor;
163
- readonly tooltipContentAddClass: StringConstructor;
162
+ readonly tooltipWrapperClass: StringConstructor;
163
+ readonly tooltipContentClass: StringConstructor;
164
+ readonly tooltipArrowClass: StringConstructor;
164
165
  readonly name: StringConstructor;
165
166
  readonly placeholder: StringConstructor;
166
167
  readonly autocomplete: {
@@ -177,7 +178,6 @@ declare const _default: import("vue").DefineComponent<{
177
178
  readonly small: BooleanConstructor;
178
179
  readonly hideLabel: BooleanConstructor;
179
180
  readonly inputClass: StringConstructor;
180
- readonly addClass: StringConstructor;
181
181
  readonly onFocus: PropType<() => void>;
182
182
  readonly onBlur: PropType<() => void>;
183
183
  }, import("vue").RenderFunction, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -244,8 +244,9 @@ declare const _default: import("vue").DefineComponent<{
244
244
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
245
245
  readonly default: "max-w-xs";
246
246
  };
247
- readonly tooltipWrapperAddClass: StringConstructor;
248
- readonly tooltipContentAddClass: StringConstructor;
247
+ readonly tooltipWrapperClass: StringConstructor;
248
+ readonly tooltipContentClass: StringConstructor;
249
+ readonly tooltipArrowClass: StringConstructor;
249
250
  readonly name: StringConstructor;
250
251
  readonly placeholder: StringConstructor;
251
252
  readonly autocomplete: {
@@ -262,7 +263,6 @@ declare const _default: import("vue").DefineComponent<{
262
263
  readonly small: BooleanConstructor;
263
264
  readonly hideLabel: BooleanConstructor;
264
265
  readonly inputClass: StringConstructor;
265
- readonly addClass: StringConstructor;
266
266
  readonly onFocus: PropType<() => void>;
267
267
  readonly onBlur: PropType<() => void>;
268
268
  }>> & {}, {
@@ -42,8 +42,9 @@ export declare const nInputSuggestionProps: {
42
42
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
43
43
  readonly default: "max-w-xs";
44
44
  };
45
- readonly tooltipWrapperAddClass: StringConstructor;
46
- readonly tooltipContentAddClass: StringConstructor;
45
+ readonly tooltipWrapperClass: StringConstructor;
46
+ readonly tooltipContentClass: StringConstructor;
47
+ readonly tooltipArrowClass: StringConstructor;
47
48
  readonly name: StringConstructor;
48
49
  readonly placeholder: StringConstructor;
49
50
  readonly autocomplete: {
@@ -60,7 +61,6 @@ export declare const nInputSuggestionProps: {
60
61
  readonly small: BooleanConstructor;
61
62
  readonly hideLabel: BooleanConstructor;
62
63
  readonly inputClass: StringConstructor;
63
- readonly addClass: StringConstructor;
64
64
  readonly onFocus: PropType<() => void>;
65
65
  readonly onBlur: PropType<() => void>;
66
66
  readonly value: PropType<string>;
@@ -113,8 +113,9 @@ declare const _default: import("vue").DefineComponent<{
113
113
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
114
114
  readonly default: "max-w-xs";
115
115
  };
116
- readonly tooltipWrapperAddClass: StringConstructor;
117
- readonly tooltipContentAddClass: StringConstructor;
116
+ readonly tooltipWrapperClass: StringConstructor;
117
+ readonly tooltipContentClass: StringConstructor;
118
+ readonly tooltipArrowClass: StringConstructor;
118
119
  readonly name: StringConstructor;
119
120
  readonly placeholder: StringConstructor;
120
121
  readonly autocomplete: {
@@ -131,7 +132,6 @@ declare const _default: import("vue").DefineComponent<{
131
132
  readonly small: BooleanConstructor;
132
133
  readonly hideLabel: BooleanConstructor;
133
134
  readonly inputClass: StringConstructor;
134
- readonly addClass: StringConstructor;
135
135
  readonly onFocus: PropType<() => void>;
136
136
  readonly onBlur: PropType<() => void>;
137
137
  readonly value: PropType<string>;
@@ -179,8 +179,9 @@ declare const _default: import("vue").DefineComponent<{
179
179
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
180
180
  readonly default: "max-w-xs";
181
181
  };
182
- readonly tooltipWrapperAddClass: StringConstructor;
183
- readonly tooltipContentAddClass: StringConstructor;
182
+ readonly tooltipWrapperClass: StringConstructor;
183
+ readonly tooltipContentClass: StringConstructor;
184
+ readonly tooltipArrowClass: StringConstructor;
184
185
  readonly name: StringConstructor;
185
186
  readonly placeholder: StringConstructor;
186
187
  readonly autocomplete: {
@@ -197,7 +198,6 @@ declare const _default: import("vue").DefineComponent<{
197
198
  readonly small: BooleanConstructor;
198
199
  readonly hideLabel: BooleanConstructor;
199
200
  readonly inputClass: StringConstructor;
200
- readonly addClass: StringConstructor;
201
201
  readonly onFocus: PropType<() => void>;
202
202
  readonly onBlur: PropType<() => void>;
203
203
  readonly value: PropType<string>;
@@ -29,10 +29,6 @@ export declare const nLinkProps: {
29
29
  readonly type: NumberConstructor;
30
30
  readonly default: 500;
31
31
  };
32
- /**
33
- * Adds the classes to the top-level element.
34
- */
35
- readonly addClass: StringConstructor;
36
32
  /**
37
33
  * This is called when the link is clicked but only, if the `route` prop is not set.
38
34
  * If the `route` prop is not set, the link will act as a regular button.
@@ -70,10 +66,6 @@ declare const _default: import("vue").DefineComponent<{
70
66
  readonly type: NumberConstructor;
71
67
  readonly default: 500;
72
68
  };
73
- /**
74
- * Adds the classes to the top-level element.
75
- */
76
- readonly addClass: StringConstructor;
77
69
  /**
78
70
  * This is called when the link is clicked but only, if the `route` prop is not set.
79
71
  * If the `route` prop is not set, the link will act as a regular button.
@@ -107,10 +99,6 @@ declare const _default: import("vue").DefineComponent<{
107
99
  readonly type: NumberConstructor;
108
100
  readonly default: 500;
109
101
  };
110
- /**
111
- * Adds the classes to the top-level element.
112
- */
113
- readonly addClass: StringConstructor;
114
102
  /**
115
103
  * This is called when the link is clicked but only, if the `route` prop is not set.
116
104
  * If the `route` prop is not set, the link will act as a regular button.
@@ -30,10 +30,6 @@ export const nLinkProps = {
30
30
  type: Number,
31
31
  default: 500
32
32
  },
33
- /**
34
- * Adds the classes to the top-level element.
35
- */
36
- addClass: String,
37
33
  /**
38
34
  * This is called when the link is clicked but only, if the `route` prop is not set.
39
35
  * If the `route` prop is not set, the link will act as a regular button.
@@ -50,7 +46,7 @@ export default createComponent('NLink', nLinkProps, (props, {
50
46
  const shade = props.shade;
51
47
  if (shade <= 500) return shade + 100;else return shade - 200;
52
48
  });
53
- const classes = computed(() => ['font-medium focus:outline-none focus-visible:ring-2 rounded-sm ring-offset-2 hover:underline text-left', `${props.textSize} text-${props.color}-${props.shade} hover:text-${props.color}-${hoverShade.value} focus-visible:ring-${props.color}-${props.shade}`, props.addClass]);
49
+ const classes = computed(() => ['font-medium focus:outline-none focus-visible:ring-2 rounded-sm ring-offset-2 hover:underline text-left', `${props.textSize} text-${props.color}-${props.shade} hover:text-${props.color}-${hoverShade.value} focus-visible:ring-${props.color}-${props.shade}`]);
54
50
  return () => props.route ? _createVNode(RouterLink, {
55
51
  "to": props.route,
56
52
  "class": classes.value
@@ -25,10 +25,6 @@ export declare const nListProps: {
25
25
  * Adds the classese to all text elements (on the right side).
26
26
  */
27
27
  readonly textClass: StringConstructor;
28
- /**
29
- * Adds the classes to the top-level element.
30
- */
31
- readonly addClass: StringConstructor;
32
28
  };
33
29
  /**
34
30
  * The `NList` displays key-value data in an appealing way.
@@ -49,10 +45,6 @@ declare const _default: import("vue").DefineComponent<{
49
45
  * Adds the classese to all text elements (on the right side).
50
46
  */
51
47
  readonly textClass: StringConstructor;
52
- /**
53
- * Adds the classes to the top-level element.
54
- */
55
- readonly addClass: StringConstructor;
56
48
  }, import("vue").RenderFunction, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
57
49
  /**
58
50
  * The items which are displayed in the list.
@@ -69,10 +61,6 @@ declare const _default: import("vue").DefineComponent<{
69
61
  * Adds the classese to all text elements (on the right side).
70
62
  */
71
63
  readonly textClass: StringConstructor;
72
- /**
73
- * Adds the classes to the top-level element.
74
- */
75
- readonly addClass: StringConstructor;
76
64
  }>> & {}, {
77
65
  readonly items: ListItem[];
78
66
  }>;
@@ -15,19 +15,13 @@ export const nListProps = {
15
15
  /**
16
16
  * Adds the classese to all text elements (on the right side).
17
17
  */
18
- textClass: String,
19
- /**
20
- * Adds the classes to the top-level element.
21
- */
22
- addClass: String
18
+ textClass: String
23
19
  };
24
20
  /**
25
21
  * The `NList` displays key-value data in an appealing way.
26
22
  */
27
23
  export default createComponent('NList', nListProps, props => {
28
- return () => _createVNode("dl", {
29
- "class": props.addClass
30
- }, [props.items.map((item, index) => _createVNode("div", {
24
+ return () => _createVNode("dl", null, [props.items.map((item, index) => _createVNode("div", {
31
25
  "key": index,
32
26
  "class": ['py-5 px-4 sm:grid sm:grid-cols-3 sm:gap-4', index % 2 === 1 ? 'bg-white' : 'bg-default-50']
33
27
  }, [_createVNode("dt", {
@@ -21,10 +21,6 @@ export declare const nLoadingIndicator: {
21
21
  readonly type: NumberConstructor;
22
22
  readonly default: 10;
23
23
  };
24
- /**
25
- * Adds the classes to the top-level element.
26
- */
27
- readonly addClass: StringConstructor;
28
24
  };
29
25
  /**
30
26
  * The `NLoadingIndicator` is a styled loading indicator.
@@ -51,10 +47,6 @@ declare const _default: import("vue").DefineComponent<{
51
47
  readonly type: NumberConstructor;
52
48
  readonly default: 10;
53
49
  };
54
- /**
55
- * Adds the classes to the top-level element.
56
- */
57
- readonly addClass: StringConstructor;
58
50
  }, import("vue").RenderFunction, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
59
51
  /**
60
52
  * The color of the loading-indicator.
@@ -77,10 +69,6 @@ declare const _default: import("vue").DefineComponent<{
77
69
  readonly type: NumberConstructor;
78
70
  readonly default: 10;
79
71
  };
80
- /**
81
- * Adds the classes to the top-level element.
82
- */
83
- readonly addClass: StringConstructor;
84
72
  }>> & {}, {
85
73
  readonly color: string;
86
74
  readonly shade: number;
@@ -23,11 +23,7 @@ export const nLoadingIndicator = {
23
23
  size: {
24
24
  type: Number,
25
25
  default: 10
26
- },
27
- /**
28
- * Adds the classes to the top-level element.
29
- */
30
- addClass: String
26
+ }
31
27
  };
32
28
  /**
33
29
  * The `NLoadingIndicator` is a styled loading indicator.
@@ -39,7 +35,7 @@ export default createComponent('NLoadingIndicator', nLoadingIndicator, props =>
39
35
  'n-loading-indicator-gap': `${gap.value}px`
40
36
  }));
41
37
  return () => _createVNode("div", {
42
- "class": `lds-ellipsis ${props.addClass}`,
38
+ "class": "lds-ellipsis",
43
39
  "style": `height:${props.size}px;width:${totalWidth.value}px`
44
40
  }, [_createVNode("div", {
45
41
  "class": `bg-${props.color}-${props.shade}`,