@naptics/vue-collection 0.2.3 → 0.2.5

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 (65) hide show
  1. package/components/NAlert.d.ts +2 -2
  2. package/components/NAlert.js +3 -2
  3. package/components/NBadge.d.ts +2 -2
  4. package/components/NBadge.js +3 -2
  5. package/components/NBreadcrub.d.ts +2 -2
  6. package/components/NBreadcrub.js +3 -2
  7. package/components/NButton.d.ts +2 -2
  8. package/components/NButton.js +3 -2
  9. package/components/NCheckbox.d.ts +2 -2
  10. package/components/NCheckbox.js +3 -2
  11. package/components/NCheckboxLabel.d.ts +2 -2
  12. package/components/NCheckboxLabel.js +3 -2
  13. package/components/NCrudModal.d.ts +2 -2
  14. package/components/NCrudModal.js +3 -2
  15. package/components/NDialog.d.ts +2 -2
  16. package/components/NDialog.js +3 -2
  17. package/components/NDropdown.d.ts +4 -72
  18. package/components/NDropdown.js +3 -2
  19. package/components/NDropzone.d.ts +2 -2
  20. package/components/NDropzone.js +2 -1
  21. package/components/NForm.d.ts +2 -2
  22. package/components/NForm.js +3 -2
  23. package/components/NFormModal.d.ts +2 -2
  24. package/components/NFormModal.js +3 -2
  25. package/components/NIconButton.d.ts +2 -2
  26. package/components/NIconButton.js +3 -2
  27. package/components/NIconCircle.d.ts +2 -2
  28. package/components/NIconCircle.js +3 -2
  29. package/components/NInput.d.ts +2 -2
  30. package/components/NInput.js +3 -2
  31. package/components/NInputPhone.d.ts +6 -2
  32. package/components/NInputPhone.js +2 -1
  33. package/components/NInputSelect.d.ts +2 -2
  34. package/components/NInputSelect.js +3 -2
  35. package/components/NInputSuggestion.d.ts +6 -2
  36. package/components/NInputSuggestion.js +3 -2
  37. package/components/NLink.d.ts +2 -2
  38. package/components/NLink.js +3 -2
  39. package/components/NList.d.ts +2 -2
  40. package/components/NList.js +2 -1
  41. package/components/NLoadingIndicator.d.ts +2 -2
  42. package/components/NLoadingIndicator.js +3 -2
  43. package/components/NModal.d.ts +2 -2
  44. package/components/NModal.js +3 -2
  45. package/components/NPagination.d.ts +2 -2
  46. package/components/NPagination.js +2 -1
  47. package/components/NSearchbar.d.ts +2 -2
  48. package/components/NSearchbar.js +3 -2
  49. package/components/NSearchbarList.d.ts +2 -2
  50. package/components/NSearchbarList.js +3 -2
  51. package/components/NSelect.d.ts +2 -2
  52. package/components/NSelect.js +3 -2
  53. package/components/NSuggestionList.d.ts +4 -4
  54. package/components/NSuggestionList.js +3 -2
  55. package/components/NTable.d.ts +2 -2
  56. package/components/NTable.js +2 -1
  57. package/components/NTableAction.d.ts +2 -2
  58. package/components/NTableAction.js +3 -2
  59. package/components/NTextArea.d.ts +6 -2
  60. package/components/NTextArea.js +2 -1
  61. package/components/NTooltip.d.ts +2 -2
  62. package/components/NTooltip.js +2 -1
  63. package/components/NValInput.d.ts +35 -5
  64. package/components/NValInput.js +11 -4
  65. package/package.json +1 -1
@@ -25,7 +25,7 @@ export declare const nAlertProps: {
25
25
  * The `NAlert` is a fully styled alert with multiple variants.
26
26
  * It can be used as a normal blocking element or as part of an alert queue.
27
27
  */
28
- declare const _default: import("vue").DefineComponent<{
28
+ declare const Component: import("vue").DefineComponent<{
29
29
  /**
30
30
  * The variant of the alert. This defines its color and icon.
31
31
  */
@@ -69,4 +69,4 @@ declare const _default: import("vue").DefineComponent<{
69
69
  readonly variant: AlertVariant;
70
70
  readonly hideX: boolean;
71
71
  }>;
72
- export default _default;
72
+ export { Component as NAlert, Component as default };
@@ -29,7 +29,7 @@ export const nAlertProps = {
29
29
  * The `NAlert` is a fully styled alert with multiple variants.
30
30
  * It can be used as a normal blocking element or as part of an alert queue.
31
31
  */
32
- export default createComponent('NAlert', nAlertProps, (props, {
32
+ const Component = createComponent('NAlert', nAlertProps, (props, {
33
33
  slots
34
34
  }) => {
35
35
  const variant = computed(() => VARIANTS[props.variant]);
@@ -80,4 +80,5 @@ const VARIANTS = {
80
80
  }, null),
81
81
  color: 'blue'
82
82
  }
83
- };
83
+ };
84
+ export { Component as NAlert, Component as default };
@@ -65,7 +65,7 @@ export declare const nBadgeProps: {
65
65
  /**
66
66
  * The `NBadge` is a styled element to wrap a text.
67
67
  */
68
- declare const _default: import("vue").DefineComponent<{
68
+ declare const Component: import("vue").DefineComponent<{
69
69
  readonly tooltipText: StringConstructor;
70
70
  readonly tooltipContent: PropType<() => JSX.Element>;
71
71
  readonly tooltipHide: BooleanConstructor;
@@ -198,4 +198,4 @@ declare const _default: import("vue").DefineComponent<{
198
198
  readonly textShade: number;
199
199
  readonly allCaps: boolean;
200
200
  }>;
201
- export default _default;
201
+ export { Component as NBadge, Component as default };
@@ -52,7 +52,7 @@ export const nBadgeProps = {
52
52
  /**
53
53
  * The `NBadge` is a styled element to wrap a text.
54
54
  */
55
- export default createComponent('NBadge', nBadgeProps, (props, {
55
+ const Component = createComponent('NBadge', nBadgeProps, (props, {
56
56
  slots
57
57
  }) => {
58
58
  return () => _createVNode(NTooltip, mapTooltipProps(props), {
@@ -60,4 +60,5 @@ export default createComponent('NBadge', nBadgeProps, (props, {
60
60
  "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.badgeClass]
61
61
  }, [slots.default?.() || props.text])]
62
62
  });
63
- });
63
+ });
64
+ export { Component as NBadge, Component as default };
@@ -65,7 +65,7 @@ export type BreadcrumbItem = {
65
65
  /**
66
66
  * The `NBreadcrumb` is a styled breadcrumb which can be used as a navigation in hierarchical views.
67
67
  */
68
- declare const _default: import("vue").DefineComponent<{
68
+ declare const Component: import("vue").DefineComponent<{
69
69
  /**
70
70
  * The items of the breadcrumb.
71
71
  */
@@ -170,4 +170,4 @@ declare const _default: import("vue").DefineComponent<{
170
170
  readonly items: BreadcrumbItem[];
171
171
  readonly iconSize: number;
172
172
  }>;
173
- export default _default;
173
+ export { Component as NBreadcrumb, Component as default };
@@ -55,7 +55,7 @@ export const nBreadcrumbProps = {
55
55
  /**
56
56
  * The `NBreadcrumb` is a styled breadcrumb which can be used as a navigation in hierarchical views.
57
57
  */
58
- export default createComponentWithSlots('NBreadcrumb', nBreadcrumbProps, ['seperator', 'item'], props => {
58
+ const Component = createComponentWithSlots('NBreadcrumb', nBreadcrumbProps, ['seperator', 'item'], props => {
59
59
  return () => _createVNode("div", {
60
60
  "class": `flex flex-wrap items-center`
61
61
  }, [props.items.map((item, index) => _createVNode(_Fragment, null, [props.item?.(item, index) || _createVNode(NLink, {
@@ -67,4 +67,5 @@ export default createComponentWithSlots('NBreadcrumb', nBreadcrumbProps, ['seper
67
67
  }), index < props.items.length - 1 && (props.seperator?.(item, index) || _createVNode(props.icon, {
68
68
  "class": `mx-2 w-${props.iconSize} h-${props.iconSize} text-${props.color}-500 ${props.iconClass}`
69
69
  }, null))]))]);
70
- });
70
+ });
71
+ export { Component as NBreadcrumb, Component as default };
@@ -56,7 +56,7 @@ export declare const nButtonProps: {
56
56
  /**
57
57
  * The `NButton` is a styled button.
58
58
  */
59
- declare const _default: import("vue").DefineComponent<{
59
+ declare const Component: import("vue").DefineComponent<{
60
60
  readonly tooltipText: StringConstructor;
61
61
  readonly tooltipContent: PropType<() => JSX.Element>;
62
62
  readonly tooltipHide: BooleanConstructor;
@@ -173,4 +173,4 @@ declare const _default: import("vue").DefineComponent<{
173
173
  readonly disabled: boolean;
174
174
  readonly loading: boolean;
175
175
  }>;
176
- export default _default;
176
+ export { Component as NButton, Component as default };
@@ -46,7 +46,7 @@ export const nButtonProps = {
46
46
  /**
47
47
  * The `NButton` is a styled button.
48
48
  */
49
- export default createComponent('NButton', nButtonProps, (props, {
49
+ const Component = createComponent('NButton', nButtonProps, (props, {
50
50
  slots
51
51
  }) => {
52
52
  const isDisabled = computed(() => props.loading || props.disabled);
@@ -68,4 +68,5 @@ export default createComponent('NButton', nButtonProps, (props, {
68
68
  "shade": 600
69
69
  }, null)])])]
70
70
  });
71
- });
71
+ });
72
+ export { Component as NButton, Component as default };
@@ -16,7 +16,7 @@ export declare const nCheckboxProps: {
16
16
  /**
17
17
  * The `NCheckbox` is a styled checkbox.
18
18
  */
19
- declare const _default: import("vue").DefineComponent<{
19
+ declare const Component: import("vue").DefineComponent<{
20
20
  /**
21
21
  * The color of the checkbox.
22
22
  */
@@ -48,4 +48,4 @@ declare const _default: import("vue").DefineComponent<{
48
48
  readonly color: string;
49
49
  readonly disabled: boolean;
50
50
  }>;
51
- export default _default;
51
+ export { Component as NCheckbox, Component as default };
@@ -19,7 +19,7 @@ export const nCheckboxProps = {
19
19
  /**
20
20
  * The `NCheckbox` is a styled checkbox.
21
21
  */
22
- export default createComponent('NCheckbox', nCheckboxProps, props => {
22
+ const Component = createComponent('NCheckbox', nCheckboxProps, props => {
23
23
  const toggle = () => {
24
24
  props.onUpdateValue?.(!props.value);
25
25
  forceUpdate();
@@ -39,4 +39,5 @@ export default createComponent('NCheckbox', nCheckboxProps, props => {
39
39
  "key": updateKey.value,
40
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`]
41
41
  }, null);
42
- });
42
+ });
43
+ export { Component as NCheckbox, Component as default };
@@ -22,7 +22,7 @@ export declare const nCheckboxLabelProps: {
22
22
  /**
23
23
  * The `NCheckboxLabel` is a checkbox with a title and a description.
24
24
  */
25
- declare const _default: import("vue").DefineComponent<{
25
+ declare const Component: import("vue").DefineComponent<{
26
26
  /**
27
27
  * The title of the checkbox.
28
28
  */
@@ -67,4 +67,4 @@ declare const _default: import("vue").DefineComponent<{
67
67
  readonly disabled: boolean;
68
68
  readonly compact: boolean;
69
69
  }>;
70
- export default _default;
70
+ export { Component as NCheckboxLabel, Component as default };
@@ -19,7 +19,7 @@ export const nCheckboxLabelProps = {
19
19
  /**
20
20
  * The `NCheckboxLabel` is a checkbox with a title and a description.
21
21
  */
22
- export default createComponent('NCheckboxLabel', nCheckboxLabelProps, props => {
22
+ const Component = createComponent('NCheckboxLabel', nCheckboxLabelProps, props => {
23
23
  const toggleValue = () => {
24
24
  if (!props.disabled) props.onUpdateValue?.(!props.value);
25
25
  };
@@ -38,4 +38,5 @@ export default createComponent('NCheckboxLabel', nCheckboxLabelProps, props => {
38
38
  "onClick": toggleValue,
39
39
  "class": ['select-none', props.disabled ? '' : 'cursor-pointer']
40
40
  }, [props.description])])])]);
41
- });
41
+ });
42
+ export { Component as NCheckboxLabel, Component as default };
@@ -105,7 +105,7 @@ export declare const nCrudModalProps: {
105
105
  * It has an integrated remove-button with a user-dialog to remove the editing element.
106
106
  * When the dialog is accepted `onRemove` is called.
107
107
  */
108
- declare const _default: import("vue").DefineComponent<{
108
+ declare const Component: import("vue").DefineComponent<{
109
109
  /**
110
110
  * The text of the remove-button.
111
111
  */
@@ -324,4 +324,4 @@ declare const _default: import("vue").DefineComponent<{
324
324
  readonly removeDialogVariant: DialogVariant;
325
325
  readonly closeOnRemove: boolean;
326
326
  }>;
327
- export default _default;
327
+ export { Component as NCrudModal, Component as default };
@@ -69,7 +69,7 @@ export const nCrudModalProps = {
69
69
  * It has an integrated remove-button with a user-dialog to remove the editing element.
70
70
  * When the dialog is accepted `onRemove` is called.
71
71
  */
72
- export default createComponentWithSlots('NCrudModal', nCrudModalProps, ['modal', 'footer', 'header'], (props, {
72
+ const Component = createComponentWithSlots('NCrudModal', nCrudModalProps, ['modal', 'footer', 'header'], (props, {
73
73
  slots
74
74
  }) => {
75
75
  const removeDialog = ref();
@@ -116,4 +116,5 @@ export default createComponentWithSlots('NCrudModal', nCrudModalProps, ['modal',
116
116
  "okText": props.removeDialogOkText
117
117
  }, null)]
118
118
  });
119
- });
119
+ });
120
+ export { Component as NCrudModal, Component as default };
@@ -77,7 +77,7 @@ export type NDialogExposed = {
77
77
  * ...
78
78
  * <NDialog ref={dialogRef} />
79
79
  */
80
- declare const _default: import("vue").DefineComponent<{
80
+ declare const Component: import("vue").DefineComponent<{
81
81
  /**
82
82
  * The title of the dialog.
83
83
  */
@@ -187,4 +187,4 @@ declare const _default: import("vue").DefineComponent<{
187
187
  cancelColor: string;
188
188
  hideCancel: boolean;
189
189
  }>;
190
- export default _default;
190
+ export { Component as NDialog, Component as default };
@@ -76,7 +76,7 @@ export const nDialogProps = {
76
76
  * ...
77
77
  * <NDialog ref={dialogRef} />
78
78
  */
79
- export default createComponent('NDialog', nDialogProps, (props, context) => {
79
+ const Component = createComponent('NDialog', nDialogProps, (props, context) => {
80
80
  const showDialog = ref(false);
81
81
  let deferredPromise = null;
82
82
  const show = () => {
@@ -157,4 +157,5 @@ const VARIANT_DEFAULTS = {
157
157
  okText: trsl('vue-collection.action.remove'),
158
158
  okColor: 'red'
159
159
  }
160
- };
160
+ };
161
+ export { Component as NDialog, Component as default };
@@ -63,7 +63,7 @@ export type DropdownItem = {
63
63
  * The `NDropdown` consists of a button and a panel with multiple actions.
64
64
  * It is useful to group multiple actions together in one place.
65
65
  */
66
- declare const _default: import("vue").DefineComponent<{
66
+ declare const Component: import("vue").DefineComponent<{
67
67
  /**
68
68
  * The title of the dropdown-button.
69
69
  */
@@ -94,41 +94,7 @@ declare const _default: import("vue").DefineComponent<{
94
94
  * The passed parameter is the HeadlessUI `MenuButton` which should be
95
95
  * used to create the button for the Dropdown to work properly.
96
96
  */
97
- readonly button: PropType<(button: import("vue").DefineComponent<{
98
- disabled: {
99
- type: BooleanConstructor;
100
- default: boolean;
101
- };
102
- as: {
103
- type: (ObjectConstructor | StringConstructor)[];
104
- default: string;
105
- };
106
- id: {
107
- type: StringConstructor;
108
- default: () => string;
109
- };
110
- }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
111
- [key: string]: any;
112
- }> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
113
- [key: string]: any;
114
- }>[] | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
115
- disabled: {
116
- type: BooleanConstructor;
117
- default: boolean;
118
- };
119
- as: {
120
- type: (ObjectConstructor | StringConstructor)[];
121
- default: string;
122
- };
123
- id: {
124
- type: StringConstructor;
125
- default: () => string;
126
- };
127
- }>>, {
128
- as: string | Record<string, any>;
129
- disabled: boolean;
130
- id: string;
131
- }>) => JSX.Element>;
97
+ readonly button: PropType<(button: typeof MenuButton) => JSX.Element>;
132
98
  }, 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<{
133
99
  /**
134
100
  * The title of the dropdown-button.
@@ -160,44 +126,10 @@ declare const _default: import("vue").DefineComponent<{
160
126
  * The passed parameter is the HeadlessUI `MenuButton` which should be
161
127
  * used to create the button for the Dropdown to work properly.
162
128
  */
163
- readonly button: PropType<(button: import("vue").DefineComponent<{
164
- disabled: {
165
- type: BooleanConstructor;
166
- default: boolean;
167
- };
168
- as: {
169
- type: (ObjectConstructor | StringConstructor)[];
170
- default: string;
171
- };
172
- id: {
173
- type: StringConstructor;
174
- default: () => string;
175
- };
176
- }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
177
- [key: string]: any;
178
- }> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
179
- [key: string]: any;
180
- }>[] | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
181
- disabled: {
182
- type: BooleanConstructor;
183
- default: boolean;
184
- };
185
- as: {
186
- type: (ObjectConstructor | StringConstructor)[];
187
- default: string;
188
- };
189
- id: {
190
- type: StringConstructor;
191
- default: () => string;
192
- };
193
- }>>, {
194
- as: string | Record<string, any>;
195
- disabled: boolean;
196
- id: string;
197
- }>) => JSX.Element>;
129
+ readonly button: PropType<(button: typeof MenuButton) => JSX.Element>;
198
130
  }>> & {}, {
199
131
  readonly right: boolean;
200
132
  readonly disabled: boolean;
201
133
  readonly items: DropdownItem[] | DropdownItem[][];
202
134
  }>;
203
- export default _default;
135
+ export { Component as NDropdown, Component as default };
@@ -44,7 +44,7 @@ export const nDropdownProps = {
44
44
  * The `NDropdown` consists of a button and a panel with multiple actions.
45
45
  * It is useful to group multiple actions together in one place.
46
46
  */
47
- export default createComponentWithSlots('NDropdown', nDropdownProps, ['button'], (props, {
47
+ const Component = createComponentWithSlots('NDropdown', nDropdownProps, ['button'], (props, {
48
48
  slots
49
49
  }) => {
50
50
  const items = computed(() => {
@@ -111,4 +111,5 @@ export default createComponentWithSlots('NDropdown', nDropdownProps, ['button'],
111
111
  })]
112
112
  })]
113
113
  });
114
- });
114
+ });
115
+ export { Component as NDropdown, Component as default };
@@ -53,7 +53,7 @@ export declare const nDropzoneProps: {
53
53
  * The `NDropzone` is an area where files can be added by the user by drag & drop.
54
54
  * Files can also be selected with a file chooser by clicking on the dropzone.
55
55
  */
56
- declare const _default: import("vue").DefineComponent<{
56
+ declare const Component: import("vue").DefineComponent<{
57
57
  /**
58
58
  * A description which files are allowed for this dropzone.
59
59
  * This should include everything the user needs to know about
@@ -159,4 +159,4 @@ declare const _default: import("vue").DefineComponent<{
159
159
  readonly maxLengthFileNames: number;
160
160
  readonly height: string;
161
161
  }>;
162
- export default _default;
162
+ export { Component as NDropzone, Component as default };
@@ -66,7 +66,7 @@ export const nDropzoneProps = {
66
66
  * The `NDropzone` is an area where files can be added by the user by drag & drop.
67
67
  * Files can also be selected with a file chooser by clicking on the dropzone.
68
68
  */
69
- export default createComponent('NDropzone', nDropzoneProps, props => {
69
+ const Component = createComponent('NDropzone', nDropzoneProps, props => {
70
70
  const fileError = ref();
71
71
  const filterAndUpdateFiles = files => {
72
72
  // filter for mime type and max size
@@ -194,6 +194,7 @@ export default createComponent('NDropzone', nDropzoneProps, props => {
194
194
  })])])])])])]);
195
195
  };
196
196
  });
197
+ export { Component as NDropzone, Component as default };
197
198
  // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers
198
199
  const MIME_FORMAT = /^(image|audio|application|video|text)\/\*$/;
199
200
  const EXTENSION_FORMAT = /^\.\w{2,20}$/;
@@ -17,7 +17,7 @@ export declare const nFormProps: {
17
17
  * If it contains a button of type `submit` in it's hierarchy,
18
18
  * it catches the submit event and passes it to the {@link ValidatedForm} in its `form` prop.
19
19
  */
20
- declare const _default: import("vue").DefineComponent<{
20
+ declare const Component: import("vue").DefineComponent<{
21
21
  /**
22
22
  * The {@link ValidatedForm} which will be used to validate the inputs.
23
23
  * All inputs in this forms hierarchy should be added to the {@link ValidatedForm}.
@@ -40,4 +40,4 @@ declare const _default: import("vue").DefineComponent<{
40
40
  */
41
41
  readonly onSubmit: PropType<() => void>;
42
42
  }>> & {}, {}>;
43
- export default _default;
43
+ export { Component as NForm, Component as default };
@@ -17,7 +17,7 @@ export const nFormProps = {
17
17
  * If it contains a button of type `submit` in it's hierarchy,
18
18
  * it catches the submit event and passes it to the {@link ValidatedForm} in its `form` prop.
19
19
  */
20
- export default createComponent('NForm', nFormProps, (props, context) => {
20
+ const Component = createComponent('NForm', nFormProps, (props, context) => {
21
21
  const onSubmit = event => {
22
22
  event.preventDefault();
23
23
  if (!props.form || props.form.validate().isValid) props.onSubmit?.();
@@ -25,4 +25,5 @@ export default createComponent('NForm', nFormProps, (props, context) => {
25
25
  return () => _createVNode("form", {
26
26
  "onSubmit": onSubmit
27
27
  }, [context.slots.default?.()]);
28
- });
28
+ });
29
+ export { Component as NForm, Component as default };
@@ -62,7 +62,7 @@ export declare const nFormModalProps: {
62
62
  * When submitting a `NFormModal` the form is first validated and
63
63
  * only if the validation is succesful the `onOk` event is called.
64
64
  */
65
- declare const _default: import("vue").DefineComponent<{
65
+ declare const Component: import("vue").DefineComponent<{
66
66
  /**
67
67
  * The maximum width of the modal. A regular tailwind class.
68
68
  */
@@ -187,4 +187,4 @@ declare const _default: import("vue").DefineComponent<{
187
187
  readonly closeOnBackground: boolean;
188
188
  readonly hideCancel: boolean;
189
189
  }>;
190
- export default _default;
190
+ export { Component as NFormModal, Component as default };
@@ -31,7 +31,7 @@ export const nFormModalProps = {
31
31
  * When submitting a `NFormModal` the form is first validated and
32
32
  * only if the validation is succesful the `onOk` event is called.
33
33
  */
34
- export default createComponentWithSlots('NFormModal', nFormModalProps, ['modal', 'header', 'footer'], (props, {
34
+ const Component = createComponentWithSlots('NFormModal', nFormModalProps, ['modal', 'header', 'footer'], (props, {
35
35
  slots
36
36
  }) => {
37
37
  const onOk = () => {
@@ -55,4 +55,5 @@ export default createComponentWithSlots('NFormModal', nFormModalProps, ['modal',
55
55
  default: () => [slots.default?.()]
56
56
  })]
57
57
  });
58
- });
58
+ });
59
+ export { Component as NFormModal, Component as default };
@@ -77,7 +77,7 @@ export declare const nIconButtonProps: {
77
77
  /**
78
78
  * The `NIconButton` is a regular button which does not have any text but an icon instead.
79
79
  */
80
- declare const _default: import("vue").DefineComponent<{
80
+ declare const Component: import("vue").DefineComponent<{
81
81
  readonly tooltipText: StringConstructor;
82
82
  readonly tooltipContent: PropType<() => JSX.Element>;
83
83
  readonly tooltipHide: BooleanConstructor;
@@ -232,4 +232,4 @@ declare const _default: import("vue").DefineComponent<{
232
232
  readonly tooltipMaxWidth: import("../utils/tailwind").TWMaxWidth;
233
233
  readonly disabled: boolean;
234
234
  }>;
235
- export default _default;
235
+ export { Component as NIconButton, Component as default };
@@ -63,7 +63,7 @@ export const nIconButtonProps = {
63
63
  /**
64
64
  * The `NIconButton` is a regular button which does not have any text but an icon instead.
65
65
  */
66
- export default createComponent('NIconButton', nIconButtonProps, props => {
66
+ const Component = createComponent('NIconButton', nIconButtonProps, props => {
67
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];
68
68
  const content = () => _createVNode(props.icon, {
69
69
  "class": `w-${props.size} h-${props.size}`
@@ -84,4 +84,5 @@ export default createComponent('NIconButton', nIconButtonProps, props => {
84
84
  }, [content()])]
85
85
  });
86
86
  };
87
- });
87
+ });
88
+ export { Component as NIconButton, Component as default };
@@ -45,7 +45,7 @@ export declare const nIconCircleProps: {
45
45
  /**
46
46
  * The `NIconCircle` is an icon with a colored circle around it.
47
47
  */
48
- declare const _default: import("vue").DefineComponent<{
48
+ declare const Component: import("vue").DefineComponent<{
49
49
  /**
50
50
  * The icon of the icon-circle.
51
51
  */
@@ -132,4 +132,4 @@ declare const _default: import("vue").DefineComponent<{
132
132
  readonly iconShade: number;
133
133
  readonly bgShade: number;
134
134
  }>;
135
- export default _default;
135
+ export { Component as NIconCircle, Component as default };
@@ -47,7 +47,7 @@ const SCALING_FACTOR = 0.55;
47
47
  /**
48
48
  * The `NIconCircle` is an icon with a colored circle around it.
49
49
  */
50
- export default createComponent('NIconCircle', nIconCircleProps, props => {
50
+ const Component = createComponent('NIconCircle', nIconCircleProps, props => {
51
51
  let circleSize = props.circleSize;
52
52
  let iconSize = props.iconSize;
53
53
  if (circleSize == null) {
@@ -63,4 +63,5 @@ export default createComponent('NIconCircle', nIconCircleProps, props => {
63
63
  "class": `text-${props.color}-${props.iconShade}`,
64
64
  "style": `width: ${iconSize}px; height: ${iconSize}px`
65
65
  }, [_createVNode(props.icon, null, null)])]);
66
- });
66
+ });
67
+ export { Component as NIconCircle, Component as default };
@@ -86,7 +86,7 @@ export type NInputExposed = {
86
86
  /**
87
87
  * The base class of inputs. A styled input with a lot of configuration possibilities but no validation.
88
88
  */
89
- declare const _default: import("vue").DefineComponent<{
89
+ declare const Component: import("vue").DefineComponent<{
90
90
  readonly tooltipText: StringConstructor;
91
91
  readonly tooltipContent: PropType<() => JSX.Element>;
92
92
  readonly tooltipHide: BooleanConstructor;
@@ -250,4 +250,4 @@ declare const _default: import("vue").DefineComponent<{
250
250
  readonly autocomplete: string;
251
251
  readonly hideLabel: boolean;
252
252
  }>;
253
- export default _default;
253
+ export { Component as NInput, Component as default };
@@ -70,7 +70,7 @@ export const nInputProps = {
70
70
  /**
71
71
  * The base class of inputs. A styled input with a lot of configuration possibilities but no validation.
72
72
  */
73
- export default createComponent('NInput', nInputProps, (props, context) => {
73
+ const Component = createComponent('NInput', nInputProps, (props, context) => {
74
74
  const inputRef = ref();
75
75
  const exposed = {
76
76
  focus: () => inputRef.value?.focus()
@@ -106,4 +106,5 @@ export default createComponent('NInput', nInputProps, (props, context) => {
106
106
  "aria-hidden": "true"
107
107
  }, null)]), [[_vShow, props.error && !props.small]])])]
108
108
  })]);
109
- });
109
+ });
110
+ export { Component as NInput, Component as default };
@@ -1,5 +1,6 @@
1
1
  export declare const nInputPhoneProps: {
2
2
  readonly input: import("vue").PropType<(props: import("./NValInput").InputSlotProps) => JSX.Element>;
3
+ readonly disableValidation: BooleanConstructor;
3
4
  readonly optional: BooleanConstructor;
4
5
  readonly rules: {
5
6
  readonly type: import("vue").PropType<import("../utils/validation").ValidationRule | import("../utils/validation").ValidationRule[]>;
@@ -49,8 +50,9 @@ export declare const nInputPhoneProps: {
49
50
  /**
50
51
  * The `NInputPhone` autoformats phone numbers and checks if they are valid.
51
52
  */
52
- declare const _default: import("vue").DefineComponent<{
53
+ declare const Component: import("vue").DefineComponent<{
53
54
  readonly input: import("vue").PropType<(props: import("./NValInput").InputSlotProps) => JSX.Element>;
55
+ readonly disableValidation: BooleanConstructor;
54
56
  readonly optional: BooleanConstructor;
55
57
  readonly rules: {
56
58
  readonly type: import("vue").PropType<import("../utils/validation").ValidationRule | import("../utils/validation").ValidationRule[]>;
@@ -98,6 +100,7 @@ declare const _default: import("vue").DefineComponent<{
98
100
  readonly onUpdateValue: import("vue").PropType<(newValue: string) => void>;
99
101
  }, 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<{
100
102
  readonly input: import("vue").PropType<(props: import("./NValInput").InputSlotProps) => JSX.Element>;
103
+ readonly disableValidation: BooleanConstructor;
101
104
  readonly optional: BooleanConstructor;
102
105
  readonly rules: {
103
106
  readonly type: import("vue").PropType<import("../utils/validation").ValidationRule | import("../utils/validation").ValidationRule[]>;
@@ -154,9 +157,10 @@ declare const _default: import("vue").DefineComponent<{
154
157
  readonly error: boolean;
155
158
  readonly autocomplete: string;
156
159
  readonly hideLabel: boolean;
160
+ readonly disableValidation: boolean;
157
161
  readonly optional: boolean;
158
162
  readonly rules: import("../utils/validation").ValidationRule | import("../utils/validation").ValidationRule[];
159
163
  readonly hideErrorMessage: boolean;
160
164
  readonly disableBlurValidation: boolean;
161
165
  }>;
162
- export default _default;
166
+ export { Component as NInputPhone, Component as default };
@@ -8,12 +8,13 @@ export const nInputPhoneProps = nValInputProps;
8
8
  /**
9
9
  * The `NInputPhone` autoformats phone numbers and checks if they are valid.
10
10
  */
11
- export default createComponent('NInputPhoneSuspended', nInputPhoneProps, props => {
11
+ const Component = createComponent('NInputPhoneSuspended', nInputPhoneProps, props => {
12
12
  // Async components have to be wrapped in a suspense component.
13
13
  return () => _createVNode(Suspense, null, {
14
14
  default: () => [_createVNode(NPhoneInput, props, null)]
15
15
  });
16
16
  });
17
+ export { Component as NInputPhone, Component as default };
17
18
  const NPhoneInput = createComponent('NInputPhone', nInputPhoneProps, async props => {
18
19
  // import dynamically for better codesplitting as the library is pretty large
19
20
  const {
@@ -95,7 +95,7 @@ export type InputSelectOption = Identifiable & {
95
95
  * The user is forced to use a value from the specified options of the input.
96
96
  * While they type, the list of options is shown to them and filtered based on their input.
97
97
  */
98
- declare const _default: import("vue").DefineComponent<{
98
+ declare const Component: import("vue").DefineComponent<{
99
99
  /**
100
100
  * The id of the currently selected option of this input.
101
101
  */
@@ -281,4 +281,4 @@ declare const _default: import("vue").DefineComponent<{
281
281
  readonly maxItems: number;
282
282
  readonly hideList: boolean;
283
283
  }>;
284
- export default _default;
284
+ export { Component as NInputSelect, Component as default };