sprintify-ui 0.0.156 → 0.0.157
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
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");
|
|
@@ -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
|
+
};
|
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) {
|