@1001-digital/layers.base 0.0.2 → 0.0.3
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.
|
@@ -23,6 +23,7 @@ const props = withDefaults(defineProps<{
|
|
|
23
23
|
xClose?: boolean
|
|
24
24
|
clickOutside?: boolean
|
|
25
25
|
compat?: boolean
|
|
26
|
+
large?: boolean
|
|
26
27
|
}>(), {
|
|
27
28
|
xClose: true,
|
|
28
29
|
clickOutside: true,
|
|
@@ -37,6 +38,7 @@ const classes = computed(() => {
|
|
|
37
38
|
let obj: Record<string, boolean> = {
|
|
38
39
|
dialog: true,
|
|
39
40
|
compat: !!props.compat,
|
|
41
|
+
large: !!props.large,
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
// Apply passed classes
|
|
@@ -214,6 +216,10 @@ watchEffect(() => (open.value ? show() : hide()))
|
|
|
214
216
|
gap: var(--spacer);
|
|
215
217
|
justify-content: flex-end;
|
|
216
218
|
}
|
|
219
|
+
|
|
220
|
+
&.large {
|
|
221
|
+
--dialog-width: min(90vw, 64rem);
|
|
222
|
+
}
|
|
217
223
|
}
|
|
218
224
|
|
|
219
225
|
html:has(dialog[open]),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1001-digital/layers.base",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.3",
|
|
5
5
|
"main": "./nuxt.config.ts",
|
|
6
6
|
"devDependencies": {
|
|
7
7
|
"@iconify-json/lucide": "^1.2.81",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"build": "nuxt build .playground",
|
|
25
25
|
"generate": "nuxt generate .playground",
|
|
26
26
|
"preview": "nuxt preview .playground",
|
|
27
|
-
"lint": "eslint ."
|
|
27
|
+
"lint": "eslint .",
|
|
28
|
+
"typecheck": "nuxi typecheck .playground"
|
|
28
29
|
}
|
|
29
30
|
}
|