sprintify-ui 0.0.156 → 0.0.158
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/sprintify-ui.es.js +17 -6
- package/dist/types/src/components/BaseBoolean.vue.d.ts +13 -10
- package/dist/types/src/components/BaseModalCenter.vue.d.ts +9 -0
- package/dist/types/src/components/BaseModalSide.vue.d.ts +9 -0
- package/package.json +1 -1
- package/src/components/BaseBoolean.vue +3 -6
- package/src/components/BaseModalCenter.vue +8 -1
- package/src/components/BaseModalSide.vue +8 -1
package/dist/sprintify-ui.es.js
CHANGED
|
@@ -3950,10 +3950,7 @@ const Kf = /* @__PURE__ */ be({
|
|
|
3950
3950
|
}), Yf = { key: 0 }, Gf = { key: 1 }, Qf = /* @__PURE__ */ be({
|
|
3951
3951
|
__name: "BaseBoolean",
|
|
3952
3952
|
props: {
|
|
3953
|
-
modelValue: {
|
|
3954
|
-
required: !0,
|
|
3955
|
-
type: [Boolean, String, Number]
|
|
3956
|
-
}
|
|
3953
|
+
modelValue: { type: [Boolean, String, Number, null] }
|
|
3957
3954
|
},
|
|
3958
3955
|
setup(t) {
|
|
3959
3956
|
const o = t, e = G(() => o.modelValue ? "text-white bg-green-500" : "text-white bg-red-500");
|
|
@@ -7061,6 +7058,10 @@ const Kh = {
|
|
|
7061
7058
|
closeOnOutsideClick: {
|
|
7062
7059
|
default: !0,
|
|
7063
7060
|
type: Boolean
|
|
7061
|
+
},
|
|
7062
|
+
clipped: {
|
|
7063
|
+
default: !1,
|
|
7064
|
+
type: Boolean
|
|
7064
7065
|
}
|
|
7065
7066
|
},
|
|
7066
7067
|
emits: ["update:modelValue"],
|
|
@@ -7115,7 +7116,10 @@ const Kh = {
|
|
|
7115
7116
|
style: ct({
|
|
7116
7117
|
maxWidth: N(i)
|
|
7117
7118
|
}),
|
|
7118
|
-
class: de(["pb-safe py-safe relative z-[1] ml-auto mr-0 flex h-full w-full flex-col rounded-t-lg bg-white text-left shadow-xl sm:rounded-t-none", [
|
|
7119
|
+
class: de(["pb-safe py-safe relative z-[1] ml-auto mr-0 flex h-full w-full flex-col rounded-t-lg bg-white text-left shadow-xl sm:rounded-t-none", [
|
|
7120
|
+
N(a).animationClasses.value,
|
|
7121
|
+
t.clipped ? "overflow-hidden" : ""
|
|
7122
|
+
]])
|
|
7119
7123
|
}, [
|
|
7120
7124
|
q("button", {
|
|
7121
7125
|
class: "absolute -top-[4.5rem] right-2 flex h-16 w-16 items-center justify-center rounded-full hover:bg-black hover:bg-opacity-20 sm:-left-[4.5rem] sm:top-2",
|
|
@@ -14729,6 +14733,10 @@ const Zv = { class: "absolute inset-0 flex h-full w-full items-center justify-ce
|
|
|
14729
14733
|
showCloseButton: {
|
|
14730
14734
|
default: !0,
|
|
14731
14735
|
type: Boolean
|
|
14736
|
+
},
|
|
14737
|
+
clipped: {
|
|
14738
|
+
default: !1,
|
|
14739
|
+
type: Boolean
|
|
14732
14740
|
}
|
|
14733
14741
|
},
|
|
14734
14742
|
emits: ["update:modelValue"],
|
|
@@ -14788,7 +14796,10 @@ const Zv = { class: "absolute inset-0 flex h-full w-full items-center justify-ce
|
|
|
14788
14796
|
default: ge(() => [
|
|
14789
14797
|
t.modelValue ? (R(), X("div", {
|
|
14790
14798
|
key: 0,
|
|
14791
|
-
class: de(["pb-safe relative z-[1] mx-auto block w-full rounded-t-xl bg-white sm:rounded-xl sm:shadow-xl", [
|
|
14799
|
+
class: de(["pb-safe relative z-[1] mx-auto block w-full rounded-t-xl bg-white sm:rounded-xl sm:shadow-xl", [
|
|
14800
|
+
N(r).animationClasses.value,
|
|
14801
|
+
t.clipped ? "overflow-hidden" : ""
|
|
14802
|
+
]]),
|
|
14792
14803
|
style: ct({
|
|
14793
14804
|
maxWidth: t.maxWidth
|
|
14794
14805
|
})
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
modelValue
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
modelValue?: boolean | string | number | null | undefined;
|
|
3
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
modelValue?: boolean | string | number | null | undefined;
|
|
5
|
+
}>>>, {}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
8
13
|
required: true;
|
|
9
|
-
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
10
14
|
};
|
|
11
|
-
}
|
|
12
|
-
export default _default;
|
|
15
|
+
};
|
|
@@ -23,6 +23,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
23
23
|
default: boolean;
|
|
24
24
|
type: BooleanConstructor;
|
|
25
25
|
};
|
|
26
|
+
clipped: {
|
|
27
|
+
default: boolean;
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
};
|
|
26
30
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
31
|
modelValue: {
|
|
28
32
|
default: boolean;
|
|
@@ -48,10 +52,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
48
52
|
default: boolean;
|
|
49
53
|
type: BooleanConstructor;
|
|
50
54
|
};
|
|
55
|
+
clipped: {
|
|
56
|
+
default: boolean;
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
};
|
|
51
59
|
}>> & {
|
|
52
60
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
53
61
|
}, {
|
|
54
62
|
modelValue: boolean;
|
|
63
|
+
clipped: boolean;
|
|
55
64
|
maxWidth: string;
|
|
56
65
|
backdropClass: string;
|
|
57
66
|
closeOnOutsideClick: boolean;
|
|
@@ -15,6 +15,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
15
15
|
default: boolean;
|
|
16
16
|
type: BooleanConstructor;
|
|
17
17
|
};
|
|
18
|
+
clipped: {
|
|
19
|
+
default: boolean;
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
};
|
|
18
22
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
23
|
modelValue: {
|
|
20
24
|
default: boolean;
|
|
@@ -32,10 +36,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
32
36
|
default: boolean;
|
|
33
37
|
type: BooleanConstructor;
|
|
34
38
|
};
|
|
39
|
+
clipped: {
|
|
40
|
+
default: boolean;
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
};
|
|
35
43
|
}>> & {
|
|
36
44
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
37
45
|
}, {
|
|
38
46
|
modelValue: boolean;
|
|
47
|
+
clipped: boolean;
|
|
39
48
|
maxWidth: string;
|
|
40
49
|
backdropClass: string;
|
|
41
50
|
closeOnOutsideClick: boolean;
|
package/package.json
CHANGED
|
@@ -13,12 +13,9 @@
|
|
|
13
13
|
</template>
|
|
14
14
|
|
|
15
15
|
<script lang="ts" setup>
|
|
16
|
-
const props = defineProps
|
|
17
|
-
modelValue
|
|
18
|
-
|
|
19
|
-
type: [Boolean, String, Number],
|
|
20
|
-
},
|
|
21
|
-
});
|
|
16
|
+
const props = defineProps<{
|
|
17
|
+
modelValue?: boolean | string | number | null | undefined;
|
|
18
|
+
}>();
|
|
22
19
|
|
|
23
20
|
const classes = computed(() => {
|
|
24
21
|
if (props.modelValue) {
|
|
@@ -57,7 +57,10 @@
|
|
|
57
57
|
:style="{
|
|
58
58
|
maxWidth: maxWidth,
|
|
59
59
|
}"
|
|
60
|
-
:class="[
|
|
60
|
+
:class="[
|
|
61
|
+
modal.animationClasses.value,
|
|
62
|
+
clipped ? 'overflow-hidden' : '',
|
|
63
|
+
]"
|
|
61
64
|
>
|
|
62
65
|
<slot :close="modal.close" />
|
|
63
66
|
</div>
|
|
@@ -107,6 +110,10 @@ const props = defineProps({
|
|
|
107
110
|
default: true,
|
|
108
111
|
type: Boolean,
|
|
109
112
|
},
|
|
113
|
+
clipped: {
|
|
114
|
+
default: false,
|
|
115
|
+
type: Boolean,
|
|
116
|
+
},
|
|
110
117
|
});
|
|
111
118
|
|
|
112
119
|
const emit = defineEmits(['update:modelValue']);
|
|
@@ -48,7 +48,10 @@
|
|
|
48
48
|
maxWidth: realMaxWidth,
|
|
49
49
|
}"
|
|
50
50
|
class="pb-safe py-safe relative z-[1] ml-auto mr-0 flex h-full w-full flex-col rounded-t-lg bg-white text-left shadow-xl sm:rounded-t-none"
|
|
51
|
-
:class="[
|
|
51
|
+
:class="[
|
|
52
|
+
modal.animationClasses.value,
|
|
53
|
+
clipped ? 'overflow-hidden' : '',
|
|
54
|
+
]"
|
|
52
55
|
>
|
|
53
56
|
<button
|
|
54
57
|
class="absolute -top-[4.5rem] right-2 flex h-16 w-16 items-center justify-center rounded-full hover:bg-black hover:bg-opacity-20 sm:-left-[4.5rem] sm:top-2"
|
|
@@ -92,6 +95,10 @@ const props = defineProps({
|
|
|
92
95
|
default: true,
|
|
93
96
|
type: Boolean,
|
|
94
97
|
},
|
|
98
|
+
clipped: {
|
|
99
|
+
default: false,
|
|
100
|
+
type: Boolean,
|
|
101
|
+
},
|
|
95
102
|
});
|
|
96
103
|
|
|
97
104
|
const emit = defineEmits(['update:modelValue']);
|