windly-ui 1.0.6 → 1.0.7
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
|
@@ -123,9 +123,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
123
123
|
textColor: string;
|
|
124
124
|
disable: boolean;
|
|
125
125
|
color: string;
|
|
126
|
-
backgroundColor: string;
|
|
127
126
|
flat: boolean;
|
|
128
127
|
bordered: boolean;
|
|
128
|
+
backgroundColor: string;
|
|
129
129
|
borderRadius: string;
|
|
130
130
|
multiDate: boolean;
|
|
131
131
|
rangeDate: boolean;
|
|
@@ -123,9 +123,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
123
123
|
textColor: string;
|
|
124
124
|
disable: boolean;
|
|
125
125
|
color: string;
|
|
126
|
-
backgroundColor: string;
|
|
127
126
|
flat: boolean;
|
|
128
127
|
bordered: boolean;
|
|
128
|
+
backgroundColor: string;
|
|
129
129
|
borderRadius: string;
|
|
130
130
|
multiDate: boolean;
|
|
131
131
|
rangeDate: boolean;
|
|
@@ -2,15 +2,15 @@ import type { ExtractPropTypes } from "vue";
|
|
|
2
2
|
import { uiProps } from "./uiProps.js";
|
|
3
3
|
type UiProps = ExtractPropTypes<typeof uiProps>;
|
|
4
4
|
export declare function useUiClasses(props: Partial<UiProps>): {
|
|
5
|
-
contentClass:
|
|
6
|
-
contentStyle:
|
|
7
|
-
textColor:
|
|
8
|
-
disable:
|
|
9
|
-
loading:
|
|
10
|
-
color:
|
|
11
|
-
rounded:
|
|
12
|
-
size:
|
|
13
|
-
iconSize:
|
|
5
|
+
contentClass: any;
|
|
6
|
+
contentStyle: any;
|
|
7
|
+
textColor: any;
|
|
8
|
+
disable: any;
|
|
9
|
+
loading: any;
|
|
10
|
+
color: any;
|
|
11
|
+
rounded: any;
|
|
12
|
+
size: any;
|
|
13
|
+
iconSize: any;
|
|
14
14
|
roundedClass: {
|
|
15
15
|
none: string;
|
|
16
16
|
xs: string;
|
|
@@ -32,8 +32,8 @@ export declare function useUiClasses(props: Partial<UiProps>): {
|
|
|
32
32
|
lg: string;
|
|
33
33
|
xl: string;
|
|
34
34
|
};
|
|
35
|
-
colorClass: import("vue").ComputedRef<
|
|
36
|
-
computedContentClass: import("vue").ComputedRef<
|
|
35
|
+
colorClass: import("vue").ComputedRef<any>;
|
|
36
|
+
computedContentClass: import("vue").ComputedRef<any>;
|
|
37
37
|
isColorDark: (color: string) => boolean;
|
|
38
38
|
isHex: (color: string) => boolean;
|
|
39
39
|
isTailwindColor: (color: string) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { computed, toRefs } from "vue";
|
|
1
|
+
import { computed, reactive, toRefs } from "vue";
|
|
2
2
|
export function useUiClasses(props) {
|
|
3
|
-
const safeProps = {
|
|
3
|
+
const safeProps = reactive({
|
|
4
4
|
contentClass: "",
|
|
5
5
|
contentStyle: "",
|
|
6
6
|
textColor: "",
|
|
@@ -11,7 +11,7 @@ export function useUiClasses(props) {
|
|
|
11
11
|
size: "md",
|
|
12
12
|
iconSize: "md",
|
|
13
13
|
...props
|
|
14
|
-
};
|
|
14
|
+
});
|
|
15
15
|
const {
|
|
16
16
|
contentClass,
|
|
17
17
|
contentStyle,
|