nuxt-unified-ui 0.4.6 → 0.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,6 +15,9 @@ const props = defineProps({
15
15
  text: {
16
16
  type: String,
17
17
  },
18
+ modalOptions: {
19
+ type: Object,
20
+ },
18
21
  startButtons: {
19
22
  type: Array,
20
23
  },
@@ -59,7 +62,7 @@ async function handleButtonClick(button) {
59
62
 
60
63
 
61
64
  <template>
62
- <u-modal @update:open="!$event && emit('close')">
65
+ <u-modal v-bind="props.modalOptions" @update:open="!$event && emit('close')">
63
66
  <template #content>
64
67
  <un-card
65
68
  :icon="props.icon"
@@ -15,6 +15,9 @@ const props = defineProps({
15
15
  text: {
16
16
  type: String,
17
17
  },
18
+ modalOptions: {
19
+ type: Object,
20
+ },
18
21
  fields: {
19
22
  type: Array,
20
23
  required: true,
@@ -54,7 +57,7 @@ async function handleSubmit() {
54
57
 
55
58
 
56
59
  <template>
57
- <u-modal @update:open="!$event && emit('close')">
60
+ <u-modal v-bind="props.modalOptions" @update:open="!$event && emit('close')">
58
61
  <template #content>
59
62
  <un-card
60
63
  :icon="props.icon"
@@ -1,4 +1,4 @@
1
- import type { ButtonProps } from '@nuxt/ui';
1
+ import type { ButtonProps, ModalProps } from '@nuxt/ui';
2
2
  import ChoicePickerDialog from '../dialogs/choice-picker-dialog.vue';
3
3
 
4
4
 
@@ -7,6 +7,7 @@ interface IOptions {
7
7
  title?: string;
8
8
  subtitle?: string;
9
9
  text?: string;
10
+ modalOptions?: ModalProps;
10
11
  startButtons?: ( ButtonProps & { value?: string } )[];
11
12
  endButtons?: ( ButtonProps & { value?: string } )[];
12
13
  }
@@ -1,4 +1,4 @@
1
- import type { ButtonProps } from '@nuxt/ui';
1
+ import type { ButtonProps, ModalProps } from '@nuxt/ui';
2
2
  import FormPickerDialog from '../dialogs/form-picker-dialog.vue';
3
3
 
4
4
 
@@ -7,6 +7,7 @@ interface IOptions {
7
7
  title?: string;
8
8
  subtitle?: string;
9
9
  text?: string;
10
+ modalOptions?: ModalProps;
10
11
  fields: any[];
11
12
  initialForm?: any;
12
13
  submitButton?: Omit<ButtonProps, 'disabled'> & { disabled?: boolean | ((form: any) => boolean) | Record<string, any> };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-unified-ui",
3
3
  "type": "module",
4
- "version": "0.4.6",
4
+ "version": "0.4.7",
5
5
  "packageManager": "bun@1.3.13",
6
6
  "main": "./nuxt.config.ts",
7
7
  "types": "./index.d.ts",