@finema/core 2.40.2 → 2.40.4
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/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
</Button>
|
|
39
39
|
<Button
|
|
40
40
|
type="button"
|
|
41
|
-
:color="propsSafe.
|
|
41
|
+
:color="propsSafe.type"
|
|
42
42
|
:class="theme.confirmButton()"
|
|
43
43
|
@click="emits('close', true)"
|
|
44
44
|
>
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
AlertDialogTitle
|
|
62
62
|
} from "reka-ui";
|
|
63
63
|
import { computed, useAttrs } from "vue";
|
|
64
|
-
import { useUiIconConfig, useUiConfig
|
|
64
|
+
import { useUiIconConfig, useUiConfig } from "../../composables/useConfig";
|
|
65
65
|
import { dialogTheme } from "#core/theme/dialog";
|
|
66
66
|
import { DialogType } from "#core/composables/useDialog";
|
|
67
67
|
const emits = defineEmits();
|
|
@@ -71,7 +71,6 @@ const props = withDefaults(defineProps(), {
|
|
|
71
71
|
});
|
|
72
72
|
const attrs = useAttrs();
|
|
73
73
|
const icons = useUiIconConfig("dialog");
|
|
74
|
-
const staticTheme = useUiStaticConfig("dialog");
|
|
75
74
|
const propsSafe = computed(() => {
|
|
76
75
|
if (props.title) {
|
|
77
76
|
return props;
|
|
@@ -10,6 +10,7 @@ export declare const dialogTheme: {
|
|
|
10
10
|
slots: {
|
|
11
11
|
base: string;
|
|
12
12
|
overlay: string;
|
|
13
|
+
iconWrapper: string;
|
|
13
14
|
icon: string;
|
|
14
15
|
wrapper: string;
|
|
15
16
|
confirmColor: string;
|
|
@@ -40,9 +41,7 @@ export declare const dialogTheme: {
|
|
|
40
41
|
};
|
|
41
42
|
};
|
|
42
43
|
confirm: {
|
|
43
|
-
true: {
|
|
44
|
-
icon: string;
|
|
45
|
-
};
|
|
44
|
+
true: {};
|
|
46
45
|
false: {};
|
|
47
46
|
};
|
|
48
47
|
};
|
|
@@ -10,6 +10,7 @@ export const dialogTheme = {
|
|
|
10
10
|
slots: {
|
|
11
11
|
base: "flex space-x-4 shadow-lg ring ring-default z-[100] text-sm fixed top-[50%] left-[50%] max-h-[85vh] w-[90vw] max-w-[500px] translate-x-[-50%] translate-y-[-50%] rounded-lg bg-white p-[25px] focus:outline-none",
|
|
12
12
|
overlay: "fixed inset-0 bg-elevated/75 backdrop-blur",
|
|
13
|
+
iconWrapper: "",
|
|
13
14
|
icon: "size-12",
|
|
14
15
|
wrapper: "flex flex-col w-full",
|
|
15
16
|
confirmColor: "info",
|
|
@@ -40,9 +41,7 @@ export const dialogTheme = {
|
|
|
40
41
|
}
|
|
41
42
|
},
|
|
42
43
|
confirm: {
|
|
43
|
-
true: {
|
|
44
|
-
icon: "text-info"
|
|
45
|
-
},
|
|
44
|
+
true: {},
|
|
46
45
|
false: {}
|
|
47
46
|
}
|
|
48
47
|
},
|