@naptics/vue-collection 0.0.7 → 0.1.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 (51) hide show
  1. package/README.md +7 -5
  2. package/components/NAlert.d.ts +12 -0
  3. package/components/NAlert.js +5 -1
  4. package/components/NBadge.d.ts +21 -3
  5. package/components/NBadge.js +5 -1
  6. package/components/NBreadcrub.d.ts +12 -0
  7. package/components/NBreadcrub.js +5 -1
  8. package/components/NButton.d.ts +21 -3
  9. package/components/NButton.js +5 -1
  10. package/components/NCheckbox.d.ts +12 -0
  11. package/components/NCheckbox.js +6 -2
  12. package/components/NCheckboxLabel.d.ts +3 -0
  13. package/components/NCheckboxLabel.js +8 -2
  14. package/components/NDropdown.d.ts +12 -0
  15. package/components/NDropdown.js +6 -2
  16. package/components/NDropzone.d.ts +12 -0
  17. package/components/NDropzone.js +6 -2
  18. package/components/NIconButton.d.ts +30 -6
  19. package/components/NIconButton.js +5 -1
  20. package/components/NIconCircle.d.ts +12 -0
  21. package/components/NIconCircle.js +6 -2
  22. package/components/NInput.d.ts +33 -3
  23. package/components/NInput.js +12 -2
  24. package/components/NInputPhone.d.ts +15 -3
  25. package/components/NInputSelect.d.ts +15 -3
  26. package/components/NInputSuggestion.d.ts +15 -3
  27. package/components/NLink.d.ts +12 -0
  28. package/components/NLink.js +5 -1
  29. package/components/NList.d.ts +12 -0
  30. package/components/NList.js +8 -2
  31. package/components/NLoadingIndicator.d.ts +12 -0
  32. package/components/NLoadingIndicator.js +6 -2
  33. package/components/NPagination.d.ts +12 -0
  34. package/components/NPagination.js +5 -1
  35. package/components/NSearchbar.d.ts +15 -3
  36. package/components/NSearchbar.js +8 -2
  37. package/components/NSearchbarList.d.ts +33 -3
  38. package/components/NSearchbarList.js +11 -2
  39. package/components/NSelect.d.ts +33 -3
  40. package/components/NSelect.js +9 -1
  41. package/components/NTable.d.ts +12 -0
  42. package/components/NTable.js +6 -2
  43. package/components/NTableAction.d.ts +12 -0
  44. package/components/NTableAction.js +5 -1
  45. package/components/NTextArea.d.ts +36 -12
  46. package/components/NTextArea.js +9 -1
  47. package/components/NTooltip.d.ts +39 -5
  48. package/components/NTooltip.js +23 -5
  49. package/components/NValInput.d.ts +15 -3
  50. package/components/NValInput.js +9 -4
  51. package/package.json +1 -1
@@ -12,9 +12,13 @@ export declare const nSearchbarProps: {
12
12
  */
13
13
  readonly small: BooleanConstructor;
14
14
  /**
15
- * The classes are directly added to the input (e.g. for shadow).
15
+ * Adds the classes directly to the input (e.g. for shadow).
16
16
  */
17
17
  readonly inputClass: StringConstructor;
18
+ /**
19
+ * Adds the classes to the top-level element.
20
+ */
21
+ readonly addClass: StringConstructor;
18
22
  /**
19
23
  * This is called when the search-bar receives focus.
20
24
  */
@@ -48,9 +52,13 @@ declare const _default: import("vue").DefineComponent<{
48
52
  */
49
53
  readonly small: BooleanConstructor;
50
54
  /**
51
- * The classes are directly added to the input (e.g. for shadow).
55
+ * Adds the classes directly to the input (e.g. for shadow).
52
56
  */
53
57
  readonly inputClass: StringConstructor;
58
+ /**
59
+ * Adds the classes to the top-level element.
60
+ */
61
+ readonly addClass: StringConstructor;
54
62
  /**
55
63
  * This is called when the search-bar receives focus.
56
64
  */
@@ -74,9 +82,13 @@ declare const _default: import("vue").DefineComponent<{
74
82
  */
75
83
  readonly small: BooleanConstructor;
76
84
  /**
77
- * The classes are directly added to the input (e.g. for shadow).
85
+ * Adds the classes directly to the input (e.g. for shadow).
78
86
  */
79
87
  readonly inputClass: StringConstructor;
88
+ /**
89
+ * Adds the classes to the top-level element.
90
+ */
91
+ readonly addClass: StringConstructor;
80
92
  /**
81
93
  * This is called when the search-bar receives focus.
82
94
  */
@@ -18,9 +18,13 @@ export const nSearchbarProps = {
18
18
  */
19
19
  small: Boolean,
20
20
  /**
21
- * The classes are directly added to the input (e.g. for shadow).
21
+ * Adds the classes directly to the input (e.g. for shadow).
22
22
  */
23
23
  inputClass: String,
24
+ /**
25
+ * Adds the classes to the top-level element.
26
+ */
27
+ addClass: String,
24
28
  /**
25
29
  * This is called when the search-bar receives focus.
26
30
  */
@@ -41,7 +45,9 @@ export default createComponent('NSearchbar', nSearchbarProps, (props, context) =
41
45
  }
42
46
  };
43
47
  context.expose(exposed);
44
- return () => _createVNode("div", null, [_createVNode("label", {
48
+ return () => _createVNode("div", {
49
+ "class": props.addClass
50
+ }, [_createVNode("label", {
45
51
  "for": "search",
46
52
  "class": "sr-only"
47
53
  }, [props.placeholder]), _createVNode("div", {
@@ -6,12 +6,22 @@ export declare const nSearchbarListProps: {
6
6
  readonly type: StringConstructor;
7
7
  readonly default: string;
8
8
  };
9
+ /**
10
+ * Adds the classes directly to the input (e.g. for shadow).
11
+ */
12
+ readonly inputClass: StringConstructor;
13
+ /**
14
+ * Adds the classes to the top-level element.
15
+ */
16
+ readonly addClass: StringConstructor;
9
17
  readonly value: import("vue").PropType<string>;
10
18
  readonly onUpdateValue: import("vue").PropType<(newValue: string) => void>;
11
19
  readonly items: {
12
20
  readonly type: import("vue").PropType<import("./NSuggestionList").SuggestionItem[]>;
13
21
  readonly default: () => never[];
14
- };
22
+ }; /**
23
+ * Adds the classes directly to the input (e.g. for shadow).
24
+ */
15
25
  readonly maxItems: {
16
26
  readonly type: NumberConstructor;
17
27
  readonly default: () => number;
@@ -33,12 +43,22 @@ declare const _default: import("vue").DefineComponent<{
33
43
  readonly type: StringConstructor;
34
44
  readonly default: string;
35
45
  };
46
+ /**
47
+ * Adds the classes directly to the input (e.g. for shadow).
48
+ */
49
+ readonly inputClass: StringConstructor;
50
+ /**
51
+ * Adds the classes to the top-level element.
52
+ */
53
+ readonly addClass: StringConstructor;
36
54
  readonly value: import("vue").PropType<string>;
37
55
  readonly onUpdateValue: import("vue").PropType<(newValue: string) => void>;
38
56
  readonly items: {
39
57
  readonly type: import("vue").PropType<import("./NSuggestionList").SuggestionItem[]>;
40
58
  readonly default: () => never[];
41
- };
59
+ }; /**
60
+ * Adds the classes directly to the input (e.g. for shadow).
61
+ */
42
62
  readonly maxItems: {
43
63
  readonly type: NumberConstructor;
44
64
  readonly default: () => number;
@@ -56,12 +76,22 @@ declare const _default: import("vue").DefineComponent<{
56
76
  readonly type: StringConstructor;
57
77
  readonly default: string;
58
78
  };
79
+ /**
80
+ * Adds the classes directly to the input (e.g. for shadow).
81
+ */
82
+ readonly inputClass: StringConstructor;
83
+ /**
84
+ * Adds the classes to the top-level element.
85
+ */
86
+ readonly addClass: StringConstructor;
59
87
  readonly value: import("vue").PropType<string>;
60
88
  readonly onUpdateValue: import("vue").PropType<(newValue: string) => void>;
61
89
  readonly items: {
62
90
  readonly type: import("vue").PropType<import("./NSuggestionList").SuggestionItem[]>;
63
91
  readonly default: () => never[];
64
- };
92
+ }; /**
93
+ * Adds the classes directly to the input (e.g. for shadow).
94
+ */
65
95
  readonly maxItems: {
66
96
  readonly type: NumberConstructor;
67
97
  readonly default: () => number;
@@ -10,7 +10,15 @@ export const nSearchbarListProps = {
10
10
  /**
11
11
  * @see {@link nSearchbarProps.placeholder}
12
12
  */
13
- placeholder: nSearchbarProps.placeholder
13
+ placeholder: nSearchbarProps.placeholder,
14
+ /**
15
+ * Adds the classes directly to the input (e.g. for shadow).
16
+ */
17
+ inputClass: String,
18
+ /**
19
+ * Adds the classes to the top-level element.
20
+ */
21
+ addClass: String
14
22
  };
15
23
  /**
16
24
  * The `NSearchbarList` is a {@link NSearchbar} with a {@link NSuggestionList}.
@@ -27,7 +35,8 @@ export default createComponent('NSearchbarList', nSearchbarListProps, props => {
27
35
  "value": props.value,
28
36
  "onUpdateValue": props.onUpdateValue,
29
37
  "placeholder": props.placeholder,
30
- "inputClass": "shadow-lg",
38
+ "inputClass": `shadow-lg ${props.inputClass}`,
39
+ "addClass": props.addClass,
31
40
  "onFocus": onFocus,
32
41
  "onBlur": onBlur
33
42
  }, null),
@@ -3,7 +3,7 @@ import { type PropType } from 'vue';
3
3
  import { type NValInputExposed } from './NValInput';
4
4
  export declare const nSelectProps: {
5
5
  readonly tooltipText: StringConstructor;
6
- readonly tooltipContent: PropType<() => void>;
6
+ readonly tooltipContent: PropType<() => JSX.Element>;
7
7
  readonly tooltipHide: BooleanConstructor;
8
8
  readonly tooltipShow: BooleanConstructor;
9
9
  readonly tooltipPlacement: {
@@ -14,6 +14,8 @@ export declare const nSelectProps: {
14
14
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
15
15
  readonly default: "max-w-xs";
16
16
  };
17
+ readonly tooltipWrapperAddClass: StringConstructor;
18
+ readonly tooltipContentAddClass: StringConstructor;
17
19
  /**
18
20
  * The id of the currently selected option of this input.
19
21
  */
@@ -47,6 +49,14 @@ export declare const nSelectProps: {
47
49
  * @see {@link nValInputProps.form}
48
50
  */
49
51
  readonly form: PropType<import("./ValidatedForm").ValidatedForm>;
52
+ /**
53
+ * @see {@link nValInputProps.inputClass}
54
+ */
55
+ readonly inputClass: StringConstructor;
56
+ /**
57
+ * @see {@link nValInputProps.addClass}
58
+ */
59
+ readonly addClass: StringConstructor;
50
60
  };
51
61
  export type SelectionOption = Identifiable & {
52
62
  label: string;
@@ -57,7 +67,7 @@ export type NSelectExposed = NValInputExposed;
57
67
  */
58
68
  declare const _default: import("vue").DefineComponent<{
59
69
  readonly tooltipText: StringConstructor;
60
- readonly tooltipContent: PropType<() => void>;
70
+ readonly tooltipContent: PropType<() => JSX.Element>;
61
71
  readonly tooltipHide: BooleanConstructor;
62
72
  readonly tooltipShow: BooleanConstructor;
63
73
  readonly tooltipPlacement: {
@@ -68,6 +78,8 @@ declare const _default: import("vue").DefineComponent<{
68
78
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
69
79
  readonly default: "max-w-xs";
70
80
  };
81
+ readonly tooltipWrapperAddClass: StringConstructor;
82
+ readonly tooltipContentAddClass: StringConstructor;
71
83
  /**
72
84
  * The id of the currently selected option of this input.
73
85
  */
@@ -101,9 +113,17 @@ declare const _default: import("vue").DefineComponent<{
101
113
  * @see {@link nValInputProps.form}
102
114
  */
103
115
  readonly form: PropType<import("./ValidatedForm").ValidatedForm>;
116
+ /**
117
+ * @see {@link nValInputProps.inputClass}
118
+ */
119
+ readonly inputClass: StringConstructor;
120
+ /**
121
+ * @see {@link nValInputProps.addClass}
122
+ */
123
+ readonly addClass: StringConstructor;
104
124
  }, 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<{
105
125
  readonly tooltipText: StringConstructor;
106
- readonly tooltipContent: PropType<() => void>;
126
+ readonly tooltipContent: PropType<() => JSX.Element>;
107
127
  readonly tooltipHide: BooleanConstructor;
108
128
  readonly tooltipShow: BooleanConstructor;
109
129
  readonly tooltipPlacement: {
@@ -114,6 +134,8 @@ declare const _default: import("vue").DefineComponent<{
114
134
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
115
135
  readonly default: "max-w-xs";
116
136
  };
137
+ readonly tooltipWrapperAddClass: StringConstructor;
138
+ readonly tooltipContentAddClass: StringConstructor;
117
139
  /**
118
140
  * The id of the currently selected option of this input.
119
141
  */
@@ -147,6 +169,14 @@ declare const _default: import("vue").DefineComponent<{
147
169
  * @see {@link nValInputProps.form}
148
170
  */
149
171
  readonly form: PropType<import("./ValidatedForm").ValidatedForm>;
172
+ /**
173
+ * @see {@link nValInputProps.inputClass}
174
+ */
175
+ readonly inputClass: StringConstructor;
176
+ /**
177
+ * @see {@link nValInputProps.addClass}
178
+ */
179
+ readonly addClass: StringConstructor;
150
180
  }>> & {}, {
151
181
  readonly tooltipHide: boolean;
152
182
  readonly tooltipShow: boolean;
@@ -38,6 +38,14 @@ export const nSelectProps = {
38
38
  * @see {@link nValInputProps.form}
39
39
  */
40
40
  form: nValInputProps.form,
41
+ /**
42
+ * @see {@link nValInputProps.inputClass}
43
+ */
44
+ inputClass: nValInputProps.inputClass,
45
+ /**
46
+ * @see {@link nValInputProps.addClass}
47
+ */
48
+ addClass: nValInputProps.addClass,
41
49
  ...nToolTipPropsForImplementor
42
50
  };
43
51
  /**
@@ -69,7 +77,7 @@ export default createComponent('NSelect', nSelectProps, (props, context) => {
69
77
  "value": props.value,
70
78
  "onChange": event => slotProps.onUpdateValue(event.target.value),
71
79
  "onBlur": slotProps.onBlur,
72
- "class": ['block w-full py-2 pl-4 pr-10 rounded-md border focus:outline-none focus:ring-1', props.disabled ? 'text-default-300 ' : 'text-default-900 ', slotProps.error ? 'border-red-500 focus:border-red-500 focus:ring-red-500' : 'border-default-300 focus:border-primary-500 focus:ring-primary-500']
80
+ "class": ['block w-full py-2 pl-4 pr-10 rounded-md border focus:outline-none focus:ring-1', props.disabled ? 'text-default-300 ' : 'text-default-900 ', slotProps.error ? 'border-red-500 focus:border-red-500 focus:ring-red-500' : 'border-default-300 focus:border-primary-500 focus:ring-primary-500', props.inputClass]
73
81
  }, [_createVNode("option", {
74
82
  "disabled": !props.optional,
75
83
  "selected": !props.value,
@@ -86,6 +86,10 @@ export declare const nTableProps: {
86
86
  readonly type: PropType<TableRow[]>;
87
87
  readonly default: () => never[];
88
88
  };
89
+ /**
90
+ * Adds the classes to the top-level element.
91
+ */
92
+ readonly addClass: StringConstructor;
89
93
  };
90
94
  /**
91
95
  * The `NTable` is a styled html table which accepts data and displays it appropriately.
@@ -135,6 +139,10 @@ declare const _default: import("vue").DefineComponent<{
135
139
  readonly type: PropType<TableRow[]>;
136
140
  readonly default: () => never[];
137
141
  };
142
+ /**
143
+ * Adds the classes to the top-level element.
144
+ */
145
+ readonly addClass: StringConstructor;
138
146
  }, 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<{
139
147
  /**
140
148
  * The headings of the table. These define which columns are shown in the table and in which order.
@@ -180,6 +188,10 @@ declare const _default: import("vue").DefineComponent<{
180
188
  readonly type: PropType<TableRow[]>;
181
189
  readonly default: () => never[];
182
190
  };
191
+ /**
192
+ * Adds the classes to the top-level element.
193
+ */
194
+ readonly addClass: StringConstructor;
183
195
  }>> & {}, {
184
196
  readonly details: TableDetail[];
185
197
  readonly items: TableRow[];
@@ -50,7 +50,11 @@ export const nTableProps = {
50
50
  items: {
51
51
  type: Array,
52
52
  default: () => []
53
- }
53
+ },
54
+ /**
55
+ * Adds the classes to the top-level element.
56
+ */
57
+ addClass: String
54
58
  };
55
59
  /**
56
60
  * The `NTable` is a styled html table which accepts data and displays it appropriately.
@@ -86,7 +90,7 @@ export default createComponent('NTable', nTableProps, props => {
86
90
  immediate: true
87
91
  });
88
92
  return () => _createVNode("div", {
89
- "class": "overflow-x-auto"
93
+ "class": `overflow-x-auto ${props.addClass}`
90
94
  }, [_createVNode("table", {
91
95
  "class": "min-w-full text-default-500 text-sm"
92
96
  }, [_createVNode("thead", {
@@ -16,6 +16,10 @@ export declare const nTableActionProps: {
16
16
  readonly type: PropType<"button" | "submit" | "reset">;
17
17
  readonly default: "button";
18
18
  };
19
+ /**
20
+ * Adds the classes to the top-level element.
21
+ */
22
+ readonly addClass: StringConstructor;
19
23
  /**
20
24
  * This is called when the action is clicked.
21
25
  * It is only called when the `route` prop is not set on the action.
@@ -42,6 +46,10 @@ declare const _default: import("vue").DefineComponent<{
42
46
  readonly type: PropType<"button" | "submit" | "reset">;
43
47
  readonly default: "button";
44
48
  };
49
+ /**
50
+ * Adds the classes to the top-level element.
51
+ */
52
+ readonly addClass: StringConstructor;
45
53
  /**
46
54
  * This is called when the action is clicked.
47
55
  * It is only called when the `route` prop is not set on the action.
@@ -63,6 +71,10 @@ declare const _default: import("vue").DefineComponent<{
63
71
  readonly type: PropType<"button" | "submit" | "reset">;
64
72
  readonly default: "button";
65
73
  };
74
+ /**
75
+ * Adds the classes to the top-level element.
76
+ */
77
+ readonly addClass: StringConstructor;
66
78
  /**
67
79
  * This is called when the action is clicked.
68
80
  * It is only called when the `route` prop is not set on the action.
@@ -18,6 +18,10 @@ export const nTableActionProps = {
18
18
  * The html attribute, which indicates the type of the button.
19
19
  */
20
20
  type: nButtonProps.type,
21
+ /**
22
+ * Adds the classes to the top-level element.
23
+ */
24
+ addClass: String,
21
25
  /**
22
26
  * This is called when the action is clicked.
23
27
  * It is only called when the `route` prop is not set on the action.
@@ -32,7 +36,7 @@ export default createComponent('NTableAction', nTableActionProps, (props, {
32
36
  slots
33
37
  }) => {
34
38
  const content = () => slots.default?.() || _createVNode(_Fragment, null, [props.text]);
35
- const classes = 'text-left font-medium focus:outline-none focus-visible:ring-2 focus-visible:ring-default-900 rounded-sm ring-offset-2 text-default-900 hover:underline hover:text-default-700';
39
+ const classes = ['text-left font-medium focus:outline-none focus-visible:ring-2 focus-visible:ring-default-900 rounded-sm ring-offset-2 text-default-900 hover:underline hover:text-default-700', props.addClass];
36
40
  return () => {
37
41
  let _slot;
38
42
  return props.route ? _createVNode(RouterLink, {
@@ -11,7 +11,7 @@ export declare const nTextAreaProps: {
11
11
  readonly hideErrorMessage: BooleanConstructor;
12
12
  readonly disableBlurValidation: BooleanConstructor;
13
13
  readonly tooltipText: StringConstructor;
14
- readonly tooltipContent: PropType<() => void>;
14
+ readonly tooltipContent: PropType<() => JSX.Element>;
15
15
  readonly tooltipHide: BooleanConstructor;
16
16
  readonly tooltipShow: BooleanConstructor;
17
17
  readonly tooltipPlacement: {
@@ -19,11 +19,11 @@ export declare const nTextAreaProps: {
19
19
  readonly default: "auto";
20
20
  };
21
21
  readonly tooltipMaxWidth: {
22
- readonly type: PropType<import("../utils/tailwind").TWMaxWidth>; /**
23
- * If set to `true` the text area is displayed with a red border.
24
- */
22
+ readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
25
23
  readonly default: "max-w-xs";
26
24
  };
25
+ readonly tooltipWrapperAddClass: StringConstructor;
26
+ readonly tooltipContentAddClass: StringConstructor;
27
27
  /**
28
28
  * The name of the text area. Is displayed as a label above the text area.
29
29
  */
@@ -65,6 +65,14 @@ export declare const nTextAreaProps: {
65
65
  * If set to `true` the text area's label is hidden.
66
66
  */
67
67
  readonly hideLabel: BooleanConstructor;
68
+ /**
69
+ * Adds the classes directly to the input (e.g. for shadow).
70
+ */
71
+ readonly inputClass: StringConstructor;
72
+ /**
73
+ * Adds the classes to the top-level element.
74
+ */
75
+ readonly addClass: StringConstructor;
68
76
  /**
69
77
  * This is called when the text area reveices focus.
70
78
  */
@@ -94,7 +102,7 @@ declare const _default: import("vue").DefineComponent<{
94
102
  readonly hideErrorMessage: BooleanConstructor;
95
103
  readonly disableBlurValidation: BooleanConstructor;
96
104
  readonly tooltipText: StringConstructor;
97
- readonly tooltipContent: PropType<() => void>;
105
+ readonly tooltipContent: PropType<() => JSX.Element>;
98
106
  readonly tooltipHide: BooleanConstructor;
99
107
  readonly tooltipShow: BooleanConstructor;
100
108
  readonly tooltipPlacement: {
@@ -102,11 +110,11 @@ declare const _default: import("vue").DefineComponent<{
102
110
  readonly default: "auto";
103
111
  };
104
112
  readonly tooltipMaxWidth: {
105
- readonly type: PropType<import("../utils/tailwind").TWMaxWidth>; /**
106
- * If set to `true` the text area is displayed with a red border.
107
- */
113
+ readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
108
114
  readonly default: "max-w-xs";
109
115
  };
116
+ readonly tooltipWrapperAddClass: StringConstructor;
117
+ readonly tooltipContentAddClass: StringConstructor;
110
118
  /**
111
119
  * The name of the text area. Is displayed as a label above the text area.
112
120
  */
@@ -148,6 +156,14 @@ declare const _default: import("vue").DefineComponent<{
148
156
  * If set to `true` the text area's label is hidden.
149
157
  */
150
158
  readonly hideLabel: BooleanConstructor;
159
+ /**
160
+ * Adds the classes directly to the input (e.g. for shadow).
161
+ */
162
+ readonly inputClass: StringConstructor;
163
+ /**
164
+ * Adds the classes to the top-level element.
165
+ */
166
+ readonly addClass: StringConstructor;
151
167
  /**
152
168
  * This is called when the text area reveices focus.
153
169
  */
@@ -170,7 +186,7 @@ declare const _default: import("vue").DefineComponent<{
170
186
  readonly hideErrorMessage: BooleanConstructor;
171
187
  readonly disableBlurValidation: BooleanConstructor;
172
188
  readonly tooltipText: StringConstructor;
173
- readonly tooltipContent: PropType<() => void>;
189
+ readonly tooltipContent: PropType<() => JSX.Element>;
174
190
  readonly tooltipHide: BooleanConstructor;
175
191
  readonly tooltipShow: BooleanConstructor;
176
192
  readonly tooltipPlacement: {
@@ -178,11 +194,11 @@ declare const _default: import("vue").DefineComponent<{
178
194
  readonly default: "auto";
179
195
  };
180
196
  readonly tooltipMaxWidth: {
181
- readonly type: PropType<import("../utils/tailwind").TWMaxWidth>; /**
182
- * If set to `true` the text area is displayed with a red border.
183
- */
197
+ readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
184
198
  readonly default: "max-w-xs";
185
199
  };
200
+ readonly tooltipWrapperAddClass: StringConstructor;
201
+ readonly tooltipContentAddClass: StringConstructor;
186
202
  /**
187
203
  * The name of the text area. Is displayed as a label above the text area.
188
204
  */
@@ -224,6 +240,14 @@ declare const _default: import("vue").DefineComponent<{
224
240
  * If set to `true` the text area's label is hidden.
225
241
  */
226
242
  readonly hideLabel: BooleanConstructor;
243
+ /**
244
+ * Adds the classes directly to the input (e.g. for shadow).
245
+ */
246
+ readonly inputClass: StringConstructor;
247
+ /**
248
+ * Adds the classes to the top-level element.
249
+ */
250
+ readonly addClass: StringConstructor;
227
251
  /**
228
252
  * This is called when the text area reveices focus.
229
253
  */
@@ -52,6 +52,14 @@ const nTextAreaBaseProps = {
52
52
  * If set to `true` the text area's label is hidden.
53
53
  */
54
54
  hideLabel: Boolean,
55
+ /**
56
+ * Adds the classes directly to the input (e.g. for shadow).
57
+ */
58
+ inputClass: String,
59
+ /**
60
+ * Adds the classes to the top-level element.
61
+ */
62
+ addClass: String,
55
63
  /**
56
64
  * This is called when the text area reveices focus.
57
65
  */
@@ -117,7 +125,7 @@ const NTextAreaBase = createComponent('NTextAreaBase', nTextAreaBaseProps, (prop
117
125
  "onFocus": () => props.onFocus?.(),
118
126
  "onBlur": () => props.onBlur?.(),
119
127
  "onInvalid": event => event.preventDefault(),
120
- "class": ['block w-full rounded-md border focus:outline-none focus:ring-1 ', props.disabled ? 'text-default-500 placeholder-default-300 bg-default-50' : 'text-default-900 placeholder-default-400 ', props.error ? 'border-red-500 focus:border-red-500 focus:ring-red-500 pr-10' : 'border-default-300 focus:border-primary-500 focus:ring-primary-500', props.resizable ? 'resize-y' : 'resize-none']
128
+ "class": ['block w-full rounded-md border focus:outline-none focus:ring-1 ', props.disabled ? 'text-default-500 placeholder-default-300 bg-default-50' : 'text-default-900 placeholder-default-400 ', props.error ? 'border-red-500 focus:border-red-500 focus:ring-red-500 pr-10' : 'border-default-300 focus:border-primary-500 focus:ring-primary-500', props.resizable ? 'resize-y' : 'resize-none', props.inputClass]
121
129
  }, null), _withDirectives(_createVNode("div", {
122
130
  "class": "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none"
123
131
  }, [_createVNode(ExclamationCircleIcon, {
@@ -10,7 +10,7 @@ export declare const nTooltipProps: {
10
10
  /**
11
11
  * A slot to replace the content of the tooltip. This will override the `text` prop.
12
12
  */
13
- readonly content: PropType<() => void>;
13
+ readonly content: PropType<() => JSX.Element>;
14
14
  /**
15
15
  * If set to `true` the tooltip is shown constantly.
16
16
  */
@@ -38,6 +38,14 @@ export declare const nTooltipProps: {
38
38
  readonly type: PropType<TWMaxWidth>;
39
39
  readonly default: "max-w-xs";
40
40
  };
41
+ /**
42
+ * Adds the classes to the (invisible) wrapper element.
43
+ */
44
+ readonly wrapperAddClass: StringConstructor;
45
+ /**
46
+ * Adds the classes to the container of the tooltips content.
47
+ */
48
+ readonly contentAddClass: StringConstructor;
41
49
  };
42
50
  /**
43
51
  * These props are made to use on a component which implements the tooltip
@@ -56,7 +64,7 @@ export declare const nToolTipPropsForImplementor: {
56
64
  * If the slot is set, the tooltip with the specified content is added to the component.
57
65
  * @see {@link nTooltipProps.content}
58
66
  */
59
- tooltipContent: PropType<() => void>;
67
+ tooltipContent: PropType<() => JSX.Element>;
60
68
  /**
61
69
  * @see {@link nTooltipProps.hide}
62
70
  */
@@ -79,6 +87,14 @@ export declare const nToolTipPropsForImplementor: {
79
87
  readonly type: PropType<TWMaxWidth>;
80
88
  readonly default: "max-w-xs";
81
89
  };
90
+ /**
91
+ * @see {@link nTooltipProps.wrapperAddClass}
92
+ */
93
+ tooltipWrapperAddClass: StringConstructor;
94
+ /**
95
+ * @see {@link nTooltipProps.contentAddClass}
96
+ */
97
+ tooltipContentAddClass: StringConstructor;
82
98
  };
83
99
  /**
84
100
  * Maps the {@link nToolTipPropsForImplementor} props to normal tooltip props
@@ -86,11 +102,13 @@ export declare const nToolTipPropsForImplementor: {
86
102
  */
87
103
  export declare function mapTooltipProps(props: ExtractedProps<typeof nToolTipPropsForImplementor>): {
88
104
  text: string | undefined;
89
- content: (() => void) | undefined;
105
+ content: (() => JSX.Element) | undefined;
90
106
  hide: boolean;
91
107
  show: boolean;
92
108
  placement: TooltipPlacement;
93
109
  maxWidth: TWMaxWidth;
110
+ wrapperAddClass: string | undefined;
111
+ contentAddClass: string | undefined;
94
112
  };
95
113
  /**
96
114
  * The `NTooltip` is a wrapper for any component which adds a tooltip to it.
@@ -111,7 +129,7 @@ declare const _default: import("vue").DefineComponent<{
111
129
  /**
112
130
  * A slot to replace the content of the tooltip. This will override the `text` prop.
113
131
  */
114
- readonly content: PropType<() => void>;
132
+ readonly content: PropType<() => JSX.Element>;
115
133
  /**
116
134
  * If set to `true` the tooltip is shown constantly.
117
135
  */
@@ -139,6 +157,14 @@ declare const _default: import("vue").DefineComponent<{
139
157
  readonly type: PropType<TWMaxWidth>;
140
158
  readonly default: "max-w-xs";
141
159
  };
160
+ /**
161
+ * Adds the classes to the (invisible) wrapper element.
162
+ */
163
+ readonly wrapperAddClass: StringConstructor;
164
+ /**
165
+ * Adds the classes to the container of the tooltips content.
166
+ */
167
+ readonly contentAddClass: StringConstructor;
142
168
  }, 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<{
143
169
  /**
144
170
  * The text content of the tooltip.
@@ -147,7 +173,7 @@ declare const _default: import("vue").DefineComponent<{
147
173
  /**
148
174
  * A slot to replace the content of the tooltip. This will override the `text` prop.
149
175
  */
150
- readonly content: PropType<() => void>;
176
+ readonly content: PropType<() => JSX.Element>;
151
177
  /**
152
178
  * If set to `true` the tooltip is shown constantly.
153
179
  */
@@ -175,6 +201,14 @@ declare const _default: import("vue").DefineComponent<{
175
201
  readonly type: PropType<TWMaxWidth>;
176
202
  readonly default: "max-w-xs";
177
203
  };
204
+ /**
205
+ * Adds the classes to the (invisible) wrapper element.
206
+ */
207
+ readonly wrapperAddClass: StringConstructor;
208
+ /**
209
+ * Adds the classes to the container of the tooltips content.
210
+ */
211
+ readonly contentAddClass: StringConstructor;
178
212
  }>> & {}, {
179
213
  readonly show: boolean;
180
214
  readonly hide: boolean;