@naptics/vue-collection 0.1.0 → 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 (50) hide show
  1. package/components/NAlert.d.ts +12 -0
  2. package/components/NAlert.js +5 -1
  3. package/components/NBadge.d.ts +18 -0
  4. package/components/NBadge.js +5 -1
  5. package/components/NBreadcrub.d.ts +12 -0
  6. package/components/NBreadcrub.js +5 -1
  7. package/components/NButton.d.ts +18 -0
  8. package/components/NButton.js +5 -1
  9. package/components/NCheckbox.d.ts +12 -0
  10. package/components/NCheckbox.js +6 -2
  11. package/components/NCheckboxLabel.d.ts +3 -0
  12. package/components/NCheckboxLabel.js +8 -2
  13. package/components/NDropdown.d.ts +12 -0
  14. package/components/NDropdown.js +6 -2
  15. package/components/NDropzone.d.ts +12 -0
  16. package/components/NDropzone.js +6 -2
  17. package/components/NIconButton.d.ts +18 -0
  18. package/components/NIconButton.js +5 -1
  19. package/components/NIconCircle.d.ts +12 -0
  20. package/components/NIconCircle.js +6 -2
  21. package/components/NInput.d.ts +30 -0
  22. package/components/NInput.js +12 -2
  23. package/components/NInputPhone.d.ts +12 -0
  24. package/components/NInputSelect.d.ts +12 -0
  25. package/components/NInputSuggestion.d.ts +12 -0
  26. package/components/NLink.d.ts +12 -0
  27. package/components/NLink.js +5 -1
  28. package/components/NList.d.ts +12 -0
  29. package/components/NList.js +8 -2
  30. package/components/NLoadingIndicator.d.ts +12 -0
  31. package/components/NLoadingIndicator.js +6 -2
  32. package/components/NPagination.d.ts +12 -0
  33. package/components/NPagination.js +5 -1
  34. package/components/NSearchbar.d.ts +15 -3
  35. package/components/NSearchbar.js +8 -2
  36. package/components/NSearchbarList.d.ts +33 -3
  37. package/components/NSearchbarList.js +11 -2
  38. package/components/NSelect.d.ts +30 -0
  39. package/components/NSelect.js +9 -1
  40. package/components/NTable.d.ts +12 -0
  41. package/components/NTable.js +6 -2
  42. package/components/NTableAction.d.ts +12 -0
  43. package/components/NTableAction.js +5 -1
  44. package/components/NTextArea.d.ts +30 -0
  45. package/components/NTextArea.js +9 -1
  46. package/components/NTooltip.d.ts +34 -0
  47. package/components/NTooltip.js +23 -5
  48. package/components/NValInput.d.ts +12 -0
  49. package/components/NValInput.js +9 -4
  50. package/package.json +1 -1
@@ -16,6 +16,10 @@ export declare const nAlertProps: {
16
16
  * If set to `true` the X-button of the alert is hidden.
17
17
  */
18
18
  readonly hideX: BooleanConstructor;
19
+ /**
20
+ * Adds the classes to the top-level element.
21
+ */
22
+ readonly addClass: StringConstructor;
19
23
  /**
20
24
  * This is called, when the X-button is clicked.
21
25
  */
@@ -41,6 +45,10 @@ declare const _default: import("vue").DefineComponent<{
41
45
  * If set to `true` the X-button of the alert is hidden.
42
46
  */
43
47
  readonly hideX: BooleanConstructor;
48
+ /**
49
+ * Adds the classes to the top-level element.
50
+ */
51
+ readonly addClass: StringConstructor;
44
52
  /**
45
53
  * This is called, when the X-button is clicked.
46
54
  */
@@ -61,6 +69,10 @@ declare const _default: import("vue").DefineComponent<{
61
69
  * If set to `true` the X-button of the alert is hidden.
62
70
  */
63
71
  readonly hideX: BooleanConstructor;
72
+ /**
73
+ * Adds the classes to the top-level element.
74
+ */
75
+ readonly addClass: StringConstructor;
64
76
  /**
65
77
  * This is called, when the X-button is clicked.
66
78
  */
@@ -20,6 +20,10 @@ export const nAlertProps = {
20
20
  * If set to `true` the X-button of the alert is hidden.
21
21
  */
22
22
  hideX: Boolean,
23
+ /**
24
+ * Adds the classes to the top-level element.
25
+ */
26
+ addClass: String,
23
27
  /**
24
28
  * This is called, when the X-button is clicked.
25
29
  */
@@ -32,7 +36,7 @@ export const nAlertProps = {
32
36
  export default createComponent('NAlert', nAlertProps, props => {
33
37
  const variant = computed(() => VARIANTS[props.variant]);
34
38
  return () => _createVNode("div", {
35
- "class": `rounded-md p-3 shadow-lg bg-${variant.value.color}-50`
39
+ "class": `rounded-md p-3 shadow-lg bg-${variant.value.color}-50 ${props.addClass}`
36
40
  }, [_createVNode("div", {
37
41
  "class": "flex items-center"
38
42
  }, [_createVNode("div", {
@@ -13,6 +13,8 @@ export declare const nBadgeProps: {
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
18
  /**
17
19
  * The text of the badge. Can alternatively be passed in the default slot.
18
20
  */
@@ -52,6 +54,10 @@ export declare const nBadgeProps: {
52
54
  readonly type: BooleanConstructor;
53
55
  readonly default: true;
54
56
  };
57
+ /**
58
+ * Adds the classes to the top-level element.
59
+ */
60
+ readonly addClass: StringConstructor;
55
61
  };
56
62
  /**
57
63
  * The `NBadge` is a styled element to wrap a text.
@@ -69,6 +75,8 @@ declare const _default: import("vue").DefineComponent<{
69
75
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
70
76
  readonly default: "max-w-xs";
71
77
  };
78
+ readonly tooltipWrapperAddClass: StringConstructor;
79
+ readonly tooltipContentAddClass: StringConstructor;
72
80
  /**
73
81
  * The text of the badge. Can alternatively be passed in the default slot.
74
82
  */
@@ -108,6 +116,10 @@ declare const _default: import("vue").DefineComponent<{
108
116
  readonly type: BooleanConstructor;
109
117
  readonly default: true;
110
118
  };
119
+ /**
120
+ * Adds the classes to the top-level element.
121
+ */
122
+ readonly addClass: StringConstructor;
111
123
  }, 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<{
112
124
  readonly tooltipText: StringConstructor;
113
125
  readonly tooltipContent: PropType<() => JSX.Element>;
@@ -121,6 +133,8 @@ declare const _default: import("vue").DefineComponent<{
121
133
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
122
134
  readonly default: "max-w-xs";
123
135
  };
136
+ readonly tooltipWrapperAddClass: StringConstructor;
137
+ readonly tooltipContentAddClass: StringConstructor;
124
138
  /**
125
139
  * The text of the badge. Can alternatively be passed in the default slot.
126
140
  */
@@ -160,6 +174,10 @@ declare const _default: import("vue").DefineComponent<{
160
174
  readonly type: BooleanConstructor;
161
175
  readonly default: true;
162
176
  };
177
+ /**
178
+ * Adds the classes to the top-level element.
179
+ */
180
+ readonly addClass: StringConstructor;
163
181
  }>> & {}, {
164
182
  readonly color: string;
165
183
  readonly shade: number;
@@ -41,6 +41,10 @@ export const nBadgeProps = {
41
41
  type: Boolean,
42
42
  default: true
43
43
  },
44
+ /**
45
+ * Adds the classes to the top-level element.
46
+ */
47
+ addClass: String,
44
48
  ...nToolTipPropsForImplementor
45
49
  };
46
50
  /**
@@ -51,7 +55,7 @@ export default createComponent('NBadge', nBadgeProps, (props, {
51
55
  }) => {
52
56
  return () => _createVNode(NTooltip, mapTooltipProps(props), {
53
57
  default: () => [_createVNode("div", {
54
- "class": ['px-2 py-1 rounded-md font-semibold shadow', `${props.textSize} bg-${props.color}-${props.shade} text-${props.color}-${props.textShade}`, props.allCaps ? 'uppercase' : '']
58
+ "class": ['px-2 py-1 rounded-md font-semibold shadow', `${props.textSize} bg-${props.color}-${props.shade} text-${props.color}-${props.textShade}`, props.allCaps ? 'uppercase' : '', props.addClass]
55
59
  }, [slots.default?.() || props.text])]
56
60
  });
57
61
  });
@@ -38,6 +38,10 @@ export declare const nBreadcrumbProps: {
38
38
  readonly type: NumberConstructor;
39
39
  readonly default: 5;
40
40
  };
41
+ /**
42
+ * Adds the classes to the top-level element.
43
+ */
44
+ readonly addClass: StringConstructor;
41
45
  /**
42
46
  * A slot the replace the breadcrumb labels.
43
47
  */
@@ -97,6 +101,10 @@ declare const _default: import("vue").DefineComponent<{
97
101
  readonly type: NumberConstructor;
98
102
  readonly default: 5;
99
103
  };
104
+ /**
105
+ * Adds the classes to the top-level element.
106
+ */
107
+ readonly addClass: StringConstructor;
100
108
  /**
101
109
  * A slot the replace the breadcrumb labels.
102
110
  */
@@ -142,6 +150,10 @@ declare const _default: import("vue").DefineComponent<{
142
150
  readonly type: NumberConstructor;
143
151
  readonly default: 5;
144
152
  };
153
+ /**
154
+ * Adds the classes to the top-level element.
155
+ */
156
+ readonly addClass: StringConstructor;
145
157
  /**
146
158
  * A slot the replace the breadcrumb labels.
147
159
  */
@@ -38,6 +38,10 @@ export const nBreadcrumbProps = {
38
38
  type: Number,
39
39
  default: 5
40
40
  },
41
+ /**
42
+ * Adds the classes to the top-level element.
43
+ */
44
+ addClass: String,
41
45
  /**
42
46
  * A slot the replace the breadcrumb labels.
43
47
  */
@@ -53,7 +57,7 @@ export const nBreadcrumbProps = {
53
57
  */
54
58
  export default createComponent('NBreadcrumb', nBreadcrumbProps, props => {
55
59
  return () => _createVNode("div", {
56
- "class": "flex flex-wrap items-center"
60
+ "class": `flex flex-wrap items-center ${props.addClass}`
57
61
  }, [props.items.map((item, index) => _createVNode(_Fragment, null, [props.item?.(item, index) || _createVNode(NLink, {
58
62
  "textSize": props.textSize,
59
63
  "route": item.route,
@@ -12,6 +12,8 @@ export declare const nButtonProps: {
12
12
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
13
13
  readonly default: "max-w-xs";
14
14
  };
15
+ readonly tooltipWrapperAddClass: StringConstructor;
16
+ readonly tooltipContentAddClass: StringConstructor;
15
17
  /**
16
18
  * The color of the button.
17
19
  */
@@ -39,6 +41,10 @@ export declare const nButtonProps: {
39
41
  * If set to `true` the button will appear smaller.
40
42
  */
41
43
  readonly small: BooleanConstructor;
44
+ /**
45
+ * Adds the classes to the top-level element.
46
+ */
47
+ readonly addClass: StringConstructor;
42
48
  /**
43
49
  * This is called, when the button is clicked.
44
50
  */
@@ -60,6 +66,8 @@ declare const _default: import("vue").DefineComponent<{
60
66
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
61
67
  readonly default: "max-w-xs";
62
68
  };
69
+ readonly tooltipWrapperAddClass: StringConstructor;
70
+ readonly tooltipContentAddClass: StringConstructor;
63
71
  /**
64
72
  * The color of the button.
65
73
  */
@@ -87,6 +95,10 @@ declare const _default: import("vue").DefineComponent<{
87
95
  * If set to `true` the button will appear smaller.
88
96
  */
89
97
  readonly small: BooleanConstructor;
98
+ /**
99
+ * Adds the classes to the top-level element.
100
+ */
101
+ readonly addClass: StringConstructor;
90
102
  /**
91
103
  * This is called, when the button is clicked.
92
104
  */
@@ -104,6 +116,8 @@ declare const _default: import("vue").DefineComponent<{
104
116
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
105
117
  readonly default: "max-w-xs";
106
118
  };
119
+ readonly tooltipWrapperAddClass: StringConstructor;
120
+ readonly tooltipContentAddClass: StringConstructor;
107
121
  /**
108
122
  * The color of the button.
109
123
  */
@@ -131,6 +145,10 @@ declare const _default: import("vue").DefineComponent<{
131
145
  * If set to `true` the button will appear smaller.
132
146
  */
133
147
  readonly small: BooleanConstructor;
148
+ /**
149
+ * Adds the classes to the top-level element.
150
+ */
151
+ readonly addClass: StringConstructor;
134
152
  /**
135
153
  * This is called, when the button is clicked.
136
154
  */
@@ -31,6 +31,10 @@ export const nButtonProps = {
31
31
  * If set to `true` the button will appear smaller.
32
32
  */
33
33
  small: Boolean,
34
+ /**
35
+ * Adds the classes to the top-level element.
36
+ */
37
+ addClass: String,
34
38
  /**
35
39
  * This is called, when the button is clicked.
36
40
  */
@@ -48,7 +52,7 @@ export default createComponent('NButton', nButtonProps, (props, {
48
52
  default: () => [_createVNode("button", {
49
53
  "disabled": isDisabled.value,
50
54
  "type": props.type,
51
- "class": [`block w-full font-medium rounded-md focus:outline-none focus-visible:ring-2 shadow text-${props.color}-900 relative`, isDisabled.value ? `bg-${props.color}-100 text-opacity-20 cursor-default` : `bg-${props.color}-200 hover:bg-${props.color}-300 focus-visible:ring-${props.color}-500`, props.small ? 'py-1 px-2 text-xs' : 'py-2 px-4 text-sm'],
55
+ "class": [`block w-full font-medium rounded-md focus:outline-none focus-visible:ring-2 shadow text-${props.color}-900 relative`, isDisabled.value ? `bg-${props.color}-100 text-opacity-20 cursor-default` : `bg-${props.color}-200 hover:bg-${props.color}-300 focus-visible:ring-${props.color}-500`, props.small ? 'py-1 px-2 text-xs' : 'py-2 px-4 text-sm', props.addClass],
52
56
  "onClick": props.onClick
53
57
  }, [_createVNode("span", {
54
58
  "class": {
@@ -10,6 +10,10 @@ export declare const nCheckboxProps: {
10
10
  * If set to `true` the checkbox is disabled and no interaction is possible.
11
11
  */
12
12
  readonly disabled: BooleanConstructor;
13
+ /**
14
+ * Adds the classes to the top-level element.
15
+ */
16
+ readonly addClass: StringConstructor;
13
17
  readonly value: import("vue").PropType<boolean>;
14
18
  readonly onUpdateValue: import("vue").PropType<(newValue: boolean) => void>;
15
19
  };
@@ -28,6 +32,10 @@ declare const _default: import("vue").DefineComponent<{
28
32
  * If set to `true` the checkbox is disabled and no interaction is possible.
29
33
  */
30
34
  readonly disabled: BooleanConstructor;
35
+ /**
36
+ * Adds the classes to the top-level element.
37
+ */
38
+ readonly addClass: StringConstructor;
31
39
  readonly value: import("vue").PropType<boolean>;
32
40
  readonly onUpdateValue: import("vue").PropType<(newValue: boolean) => void>;
33
41
  }, 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<{
@@ -42,6 +50,10 @@ declare const _default: import("vue").DefineComponent<{
42
50
  * If set to `true` the checkbox is disabled and no interaction is possible.
43
51
  */
44
52
  readonly disabled: BooleanConstructor;
53
+ /**
54
+ * Adds the classes to the top-level element.
55
+ */
56
+ readonly addClass: StringConstructor;
45
57
  readonly value: import("vue").PropType<boolean>;
46
58
  readonly onUpdateValue: import("vue").PropType<(newValue: boolean) => void>;
47
59
  }>> & {}, {
@@ -14,7 +14,11 @@ export const nCheckboxProps = {
14
14
  /**
15
15
  * If set to `true` the checkbox is disabled and no interaction is possible.
16
16
  */
17
- disabled: Boolean
17
+ disabled: Boolean,
18
+ /**
19
+ * Adds the classes to the top-level element.
20
+ */
21
+ addClass: String
18
22
  };
19
23
  /**
20
24
  * The `NCheckbox` is a styled checkbox.
@@ -37,6 +41,6 @@ export default createComponent('NCheckbox', nCheckboxProps, props => {
37
41
  "disabled": props.disabled,
38
42
  "onClick": toggle,
39
43
  "key": updateKey.value,
40
- "class": [`h-5 w-5 border-default-300 rounded focus:outline-none focus:ring-0 focus-visible:ring-2 focus-visible:ring-${props.color}-500`, props.disabled ? `cursor-default bg-default-100 text-${props.color}-200` : `cursor-pointer text-${props.color}-400`]
44
+ "class": [`h-5 w-5 border-default-300 rounded focus:outline-none focus:ring-0 focus-visible:ring-2 focus-visible:ring-${props.color}-500`, props.disabled ? `cursor-default bg-default-100 text-${props.color}-200` : `cursor-pointer text-${props.color}-400`, props.addClass]
41
45
  }, null);
42
46
  });
@@ -16,6 +16,7 @@ export declare const nCheckboxLabelProps: {
16
16
  readonly default: "primary";
17
17
  };
18
18
  readonly disabled: BooleanConstructor;
19
+ readonly addClass: StringConstructor;
19
20
  readonly value: import("vue").PropType<boolean>;
20
21
  readonly onUpdateValue: import("vue").PropType<(newValue: boolean) => void>;
21
22
  };
@@ -40,6 +41,7 @@ declare const _default: import("vue").DefineComponent<{
40
41
  readonly default: "primary";
41
42
  };
42
43
  readonly disabled: BooleanConstructor;
44
+ readonly addClass: StringConstructor;
43
45
  readonly value: import("vue").PropType<boolean>;
44
46
  readonly onUpdateValue: import("vue").PropType<(newValue: boolean) => void>;
45
47
  }, 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<{
@@ -60,6 +62,7 @@ declare const _default: import("vue").DefineComponent<{
60
62
  readonly default: "primary";
61
63
  };
62
64
  readonly disabled: BooleanConstructor;
65
+ readonly addClass: StringConstructor;
63
66
  readonly value: import("vue").PropType<boolean>;
64
67
  readonly onUpdateValue: import("vue").PropType<(newValue: boolean) => void>;
65
68
  }>> & {}, {
@@ -1,4 +1,5 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
+ import { computed } from 'vue';
2
3
  import { createComponent } from '../utils/component';
3
4
  import NCheckbox, { nCheckboxProps } from './NCheckbox';
4
5
  export const nCheckboxLabelProps = {
@@ -23,9 +24,14 @@ export default createComponent('NCheckboxLabel', nCheckboxLabelProps, props => {
23
24
  const toggleValue = () => {
24
25
  if (!props.disabled) props.onUpdateValue?.(!props.value);
25
26
  };
27
+ // addClass is not passed as it is used on the top-level element.
28
+ const childProps = computed(() => ({
29
+ ...props,
30
+ addClass: undefined
31
+ }));
26
32
  return () => _createVNode("div", {
27
- "class": "flex items-center"
28
- }, [_createVNode(NCheckbox, props, null), _createVNode("div", {
33
+ "class": `flex items-center ${props.addClass}`
34
+ }, [_createVNode(NCheckbox, childProps.value, null), _createVNode("div", {
29
35
  "class": `${props.compact ? 'ml-2' : 'ml-3'} text-sm`
30
36
  }, [_createVNode("label", {
31
37
  "onClick": toggleValue,
@@ -27,6 +27,10 @@ export declare const nDropdownProps: {
27
27
  * A slot to replace the button of the dropdown.
28
28
  */
29
29
  readonly button: PropType<() => JSX.Element>;
30
+ /**
31
+ * Adds the classes to the top-level element.
32
+ */
33
+ readonly addClass: StringConstructor;
30
34
  };
31
35
  export type DropdownItem = {
32
36
  /**
@@ -82,6 +86,10 @@ declare const _default: import("vue").DefineComponent<{
82
86
  * A slot to replace the button of the dropdown.
83
87
  */
84
88
  readonly button: PropType<() => JSX.Element>;
89
+ /**
90
+ * Adds the classes to the top-level element.
91
+ */
92
+ readonly addClass: StringConstructor;
85
93
  }, 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<{
86
94
  /**
87
95
  * The title of the dropdown-button.
@@ -108,6 +116,10 @@ declare const _default: import("vue").DefineComponent<{
108
116
  * A slot to replace the button of the dropdown.
109
117
  */
110
118
  readonly button: PropType<() => JSX.Element>;
119
+ /**
120
+ * Adds the classes to the top-level element.
121
+ */
122
+ readonly addClass: StringConstructor;
111
123
  }>> & {}, {
112
124
  readonly right: boolean;
113
125
  readonly disabled: boolean;
@@ -32,7 +32,11 @@ export const nDropdownProps = {
32
32
  /**
33
33
  * A slot to replace the button of the dropdown.
34
34
  */
35
- button: Function
35
+ button: Function,
36
+ /**
37
+ * Adds the classes to the top-level element.
38
+ */
39
+ addClass: String
36
40
  };
37
41
  /**
38
42
  * The `NDropdown` consists of a button and a panel with multiple actions.
@@ -52,7 +56,7 @@ export default createComponent('NDropdown', nDropdownProps, (props, {
52
56
  }, null), _createVNode("span", null, [item.label])]);
53
57
  return () => _createVNode(Menu, {
54
58
  "as": "div",
55
- "class": "relative inline-block text-left"
59
+ "class": `relative inline-block text-left ${props.addClass}`
56
60
  }, {
57
61
  default: () => [_createVNode("div", {
58
62
  "class": "flex"
@@ -46,6 +46,10 @@ export declare const nDropzoneProps: {
46
46
  readonly type: StringConstructor;
47
47
  readonly default: "min-h-36";
48
48
  };
49
+ /**
50
+ * Adds the classes to the top-level element.
51
+ */
52
+ readonly addClass: StringConstructor;
49
53
  readonly value: import("vue").PropType<File[]>;
50
54
  readonly onUpdateValue: import("vue").PropType<(newValue: File[]) => void>;
51
55
  };
@@ -101,6 +105,10 @@ declare const _default: import("vue").DefineComponent<{
101
105
  readonly type: StringConstructor;
102
106
  readonly default: "min-h-36";
103
107
  };
108
+ /**
109
+ * Adds the classes to the top-level element.
110
+ */
111
+ readonly addClass: StringConstructor;
104
112
  readonly value: import("vue").PropType<File[]>;
105
113
  readonly onUpdateValue: import("vue").PropType<(newValue: File[]) => void>;
106
114
  }, 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<{
@@ -151,6 +159,10 @@ declare const _default: import("vue").DefineComponent<{
151
159
  readonly type: StringConstructor;
152
160
  readonly default: "min-h-36";
153
161
  };
162
+ /**
163
+ * Adds the classes to the top-level element.
164
+ */
165
+ readonly addClass: StringConstructor;
154
166
  readonly value: import("vue").PropType<File[]>;
155
167
  readonly onUpdateValue: import("vue").PropType<(newValue: File[]) => void>;
156
168
  }>> & {}, {
@@ -60,7 +60,11 @@ export const nDropzoneProps = {
60
60
  height: {
61
61
  type: String,
62
62
  default: 'min-h-36'
63
- }
63
+ },
64
+ /**
65
+ * Adds the classes to the top-level element.
66
+ */
67
+ addClass: String
64
68
  };
65
69
  /**
66
70
  * The `NDropzone` is an area where files can be added by the user by drag & drop.
@@ -143,7 +147,7 @@ export default createComponent('NDropzone', nDropzoneProps, props => {
143
147
  return () => {
144
148
  let _slot;
145
149
  return _createVNode("div", null, [_createVNode("button", {
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],
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],
147
151
  "onDrop": onDrop,
148
152
  "onDragover": onDragOver,
149
153
  "onDragleave": onDragLeave,
@@ -16,6 +16,8 @@ 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
21
  /**
20
22
  * The icon of the icon-button.
21
23
  */
@@ -59,6 +61,10 @@ export declare const nIconButtonProps: {
59
61
  * If set to `true` the icon-button is disabled and no interaction is possible.
60
62
  */
61
63
  readonly disabled: BooleanConstructor;
64
+ /**
65
+ * Adds the classes to the top-level element.
66
+ */
67
+ readonly addClass: StringConstructor;
62
68
  /**
63
69
  * This is called when the icon-button is clicked.
64
70
  * It is only called when the `route` prop is not set on the icon-button.
@@ -83,6 +89,8 @@ declare const _default: import("vue").DefineComponent<{
83
89
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
84
90
  readonly default: "max-w-xs";
85
91
  };
92
+ readonly tooltipWrapperAddClass: StringConstructor;
93
+ readonly tooltipContentAddClass: StringConstructor;
86
94
  /**
87
95
  * The icon of the icon-button.
88
96
  */
@@ -126,6 +134,10 @@ declare const _default: import("vue").DefineComponent<{
126
134
  * If set to `true` the icon-button is disabled and no interaction is possible.
127
135
  */
128
136
  readonly disabled: BooleanConstructor;
137
+ /**
138
+ * Adds the classes to the top-level element.
139
+ */
140
+ readonly addClass: StringConstructor;
129
141
  /**
130
142
  * This is called when the icon-button is clicked.
131
143
  * It is only called when the `route` prop is not set on the icon-button.
@@ -146,6 +158,8 @@ declare const _default: import("vue").DefineComponent<{
146
158
  readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
147
159
  readonly default: "max-w-xs";
148
160
  };
161
+ readonly tooltipWrapperAddClass: StringConstructor;
162
+ readonly tooltipContentAddClass: StringConstructor;
149
163
  /**
150
164
  * The icon of the icon-button.
151
165
  */
@@ -189,6 +203,10 @@ declare const _default: import("vue").DefineComponent<{
189
203
  * If set to `true` the icon-button is disabled and no interaction is possible.
190
204
  */
191
205
  readonly disabled: BooleanConstructor;
206
+ /**
207
+ * Adds the classes to the top-level element.
208
+ */
209
+ readonly addClass: StringConstructor;
192
210
  /**
193
211
  * This is called when the icon-button is clicked.
194
212
  * It is only called when the `route` prop is not set on the icon-button.
@@ -47,6 +47,10 @@ export const nIconButtonProps = {
47
47
  * If set to `true` the icon-button is disabled and no interaction is possible.
48
48
  */
49
49
  disabled: Boolean,
50
+ /**
51
+ * Adds the classes to the top-level element.
52
+ */
53
+ addClass: String,
50
54
  /**
51
55
  * This is called when the icon-button is clicked.
52
56
  * It is only called when the `route` prop is not set on the icon-button.
@@ -58,7 +62,7 @@ export const nIconButtonProps = {
58
62
  * The `NIconButton` is a regular button which does not have any text but an icon instead.
59
63
  */
60
64
  export default createComponent('NIconButton', nIconButtonProps, props => {
61
- 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`];
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];
62
66
  const content = () => _createVNode(props.icon, {
63
67
  "class": `w-${props.size} h-${props.size}`
64
68
  }, null);
@@ -41,6 +41,10 @@ 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;
44
48
  };
45
49
  /**
46
50
  * The `NIconCircle` is an icon with a colored circle around it.
@@ -86,6 +90,10 @@ declare const _default: import("vue").DefineComponent<{
86
90
  readonly type: NumberConstructor;
87
91
  readonly default: 100;
88
92
  };
93
+ /**
94
+ * Adds the classes to the top-level element.
95
+ */
96
+ readonly addClass: StringConstructor;
89
97
  }, 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<{
90
98
  /**
91
99
  * The icon of the icon-circle.
@@ -127,6 +135,10 @@ declare const _default: import("vue").DefineComponent<{
127
135
  readonly type: NumberConstructor;
128
136
  readonly default: 100;
129
137
  };
138
+ /**
139
+ * Adds the classes to the top-level element.
140
+ */
141
+ readonly addClass: StringConstructor;
130
142
  }>> & {}, {
131
143
  readonly color: string;
132
144
  readonly iconShade: number;
@@ -40,7 +40,11 @@ export const nIconCircleProps = {
40
40
  bgShade: {
41
41
  type: Number,
42
42
  default: 100
43
- }
43
+ },
44
+ /**
45
+ * Adds the classes to the top-level element.
46
+ */
47
+ addClass: String
44
48
  };
45
49
  const DEFAULT_CIRCLE_SIZE = 16;
46
50
  const SCALING_FACTOR = 0.55;
@@ -57,7 +61,7 @@ export default createComponent('NIconCircle', nIconCircleProps, props => {
57
61
  circleSize *= 4;
58
62
  iconSize *= 4;
59
63
  return () => _createVNode("div", {
60
- "class": ['flex items-center justify-center rounded-full', `bg-${props.color}-${props.bgShade}`],
64
+ "class": ['flex items-center justify-center rounded-full', `bg-${props.color}-${props.bgShade}`, props.addClass],
61
65
  "style": `width: ${circleSize}px; height: ${circleSize}px`
62
66
  }, [_createVNode("div", {
63
67
  "class": `text-${props.color}-${props.iconShade}`,