windly-ui 1.0.6 → 1.0.8
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 +1 -1
- package/dist/runtime/components/Alert.d.vue.ts +7 -0
- package/dist/runtime/components/Alert.vue +47 -29
- package/dist/runtime/components/Alert.vue.d.ts +7 -0
- package/dist/runtime/components/Avatar.d.vue.ts +3 -3
- package/dist/runtime/components/Avatar.vue.d.ts +3 -3
- package/dist/runtime/components/Badge.d.vue.ts +6 -6
- package/dist/runtime/components/Badge.vue.d.ts +6 -6
- package/dist/runtime/components/Button.d.vue.ts +5 -5
- package/dist/runtime/components/Button.vue.d.ts +5 -5
- package/dist/runtime/components/Card.d.vue.ts +3 -3
- package/dist/runtime/components/Card.vue.d.ts +3 -3
- package/dist/runtime/components/Checkbox.d.vue.ts +2 -2
- package/dist/runtime/components/Checkbox.vue.d.ts +2 -2
- package/dist/runtime/components/Chip.d.vue.ts +133 -0
- package/dist/runtime/components/Chip.vue +99 -0
- package/dist/runtime/components/Chip.vue.d.ts +133 -0
- package/dist/runtime/components/ColorPicker.d.vue.ts +2 -2
- package/dist/runtime/components/ColorPicker.vue.d.ts +2 -2
- package/dist/runtime/components/Date.d.vue.ts +4 -4
- package/dist/runtime/components/Date.vue.d.ts +4 -4
- package/dist/runtime/components/Dialog.d.vue.ts +1 -1
- package/dist/runtime/components/Dialog.vue.d.ts +1 -1
- package/dist/runtime/components/Divider.d.vue.ts +1 -1
- package/dist/runtime/components/Divider.vue.d.ts +1 -1
- package/dist/runtime/components/Drawer.d.vue.ts +2 -2
- package/dist/runtime/components/Drawer.vue.d.ts +2 -2
- package/dist/runtime/components/Dropdown.d.vue.ts +3 -3
- package/dist/runtime/components/Dropdown.vue.d.ts +3 -3
- package/dist/runtime/components/FileUploader.d.vue.ts +3 -3
- package/dist/runtime/components/FileUploader.vue.d.ts +3 -3
- package/dist/runtime/components/Image.d.vue.ts +2 -2
- package/dist/runtime/components/Image.vue.d.ts +2 -2
- package/dist/runtime/components/Input.d.vue.ts +2 -2
- package/dist/runtime/components/Input.vue.d.ts +2 -2
- package/dist/runtime/components/Radio.d.vue.ts +4 -4
- package/dist/runtime/components/Radio.vue.d.ts +4 -4
- package/dist/runtime/components/ScrollArea.d.vue.ts +2 -2
- package/dist/runtime/components/ScrollArea.vue.d.ts +2 -2
- package/dist/runtime/components/Select.d.vue.ts +2 -2
- package/dist/runtime/components/Select.vue.d.ts +2 -2
- package/dist/runtime/components/Stepper.d.vue.ts +1 -1
- package/dist/runtime/components/Stepper.vue.d.ts +1 -1
- package/dist/runtime/components/Table.d.vue.ts +3 -3
- package/dist/runtime/components/Table.vue.d.ts +3 -3
- package/dist/runtime/components/Textarea.d.vue.ts +2 -2
- package/dist/runtime/components/Textarea.vue.d.ts +2 -2
- package/dist/runtime/components/Toggle.d.vue.ts +1 -1
- package/dist/runtime/components/Toggle.vue.d.ts +1 -1
- package/dist/runtime/components/Tooltip.d.vue.ts +1 -1
- package/dist/runtime/components/Tooltip.vue.d.ts +1 -1
- package/dist/runtime/components/useUiClasses.d.ts +11 -11
- package/dist/runtime/components/useUiClasses.js +3 -3
- package/dist/runtime/docs/index.vue +1 -1
- package/package.json +1 -1
|
@@ -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,
|
|
@@ -1403,7 +1403,7 @@
|
|
|
1403
1403
|
<DocComponent title="Basic Alert Dialog"
|
|
1404
1404
|
caption="Displays a simple dialog to present information or messages to the user.">
|
|
1405
1405
|
<UIButton label="Open Alert" @click="dialogToggle1 = true" />
|
|
1406
|
-
<UIAlert v-model:isOpen="dialogToggle1" title="Welcome" message="This is a basic alert example." />
|
|
1406
|
+
<UIAlert v-model:isOpen="dialogToggle1" class="border-t-4 rounded-lg" title="Welcome" message="This is a basic alert example." />
|
|
1407
1407
|
</DocComponent>
|
|
1408
1408
|
<DocComponent title="Alert with Custom Content"
|
|
1409
1409
|
caption="Use slots to fully customize the alert title, content and confirmation button.">
|