@innertia-solutions/innertia-nuxt 0.1.87 → 0.1.88
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.
- package/components/Modal.vue +4 -2
- package/package.json +1 -1
package/components/Modal.vue
CHANGED
|
@@ -4,7 +4,7 @@ import { IconX } from '@tabler/icons-vue'
|
|
|
4
4
|
/**
|
|
5
5
|
* <Modal> — Core modal. Sigue tokens semánticos (rounded-modal, bg-card,
|
|
6
6
|
* border-card-line). Variantes: center (default), drawer-right, drawer-left,
|
|
7
|
-
* fullscreen. Tamaños xs..
|
|
7
|
+
* fullscreen. Tamaños xs..7xl.
|
|
8
8
|
*
|
|
9
9
|
* No tiene lógica de negocio. Para casos típicos preferir:
|
|
10
10
|
* - <ModalConfirm> → confirmaciones con severities
|
|
@@ -14,7 +14,7 @@ import { IconX } from '@tabler/icons-vue'
|
|
|
14
14
|
const props = defineProps({
|
|
15
15
|
modelValue: { type: Boolean, default: false },
|
|
16
16
|
title: { type: String, default: '' },
|
|
17
|
-
size: { type: String, default: 'md', validator: v => ['xs','sm','md','lg','xl','2xl','3xl','fullscreen'].includes(v) },
|
|
17
|
+
size: { type: String, default: 'md', validator: v => ['xs','sm','md','lg','xl','2xl','3xl','4xl','5xl','6xl','7xl','fullscreen'].includes(v) },
|
|
18
18
|
variant: { type: String, default: 'center', validator: v => ['center','drawer-right','drawer-left','fullscreen'].includes(v) },
|
|
19
19
|
closable: { type: Boolean, default: true },
|
|
20
20
|
backdropDismiss: { type: Boolean, default: true },
|
|
@@ -38,6 +38,8 @@ const sizeClass = computed(() => {
|
|
|
38
38
|
return ({
|
|
39
39
|
xs: 'max-w-xs', sm: 'max-w-sm', md: 'max-w-md',
|
|
40
40
|
lg: 'max-w-lg', xl: 'max-w-xl', '2xl': 'max-w-2xl', '3xl': 'max-w-3xl',
|
|
41
|
+
// Wide modals (tables, side-by-side panels) that still read as a modal, not a full screen.
|
|
42
|
+
'4xl': 'max-w-4xl', '5xl': 'max-w-5xl', '6xl': 'max-w-6xl', '7xl': 'max-w-7xl',
|
|
41
43
|
}[props.size] ?? 'max-w-md')
|
|
42
44
|
})
|
|
43
45
|
|