vueless 0.0.537 → 0.0.539
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/directives/clickOutside/vClickOutside.ts +1 -1
- package/package.json +1 -1
- package/types.ts +0 -25
- package/ui.button/types.ts +22 -3
- package/ui.button-link/types.ts +22 -2
- package/ui.container-group/UGroup.vue +0 -1
- package/ui.container-group/config.ts +1 -14
- package/ui.container-group/types.ts +0 -5
- package/ui.container-groups/UGroups.vue +25 -0
- package/ui.container-groups/config.ts +18 -0
- package/ui.container-groups/constants.ts +5 -0
- package/ui.container-groups/storybook/Docs.mdx +16 -0
- package/ui.container-groups/storybook/stories.ts +59 -0
- package/ui.container-groups/types.ts +20 -0
- package/ui.container-groups/useAttrs.ts +18 -0
- package/ui.dropdown-badge/types.ts +27 -8
- package/ui.dropdown-badge/useAttrs.ts +1 -1
- package/ui.dropdown-button/types.ts +27 -8
- package/ui.dropdown-button/useAttrs.ts +1 -1
- package/ui.dropdown-link/types.ts +27 -8
- package/ui.dropdown-list/UDropdownList.vue +1 -1
- package/ui.form-date-picker-range/UDatePickerRangeInputs.vue +1 -1
- package/ui.image-avatar/types.ts +22 -3
- package/ui.image-icon/types.ts +23 -2
- package/ui.loader/types.ts +23 -3
- package/ui.loader-overlay/types.ts +23 -3
- package/ui.loader-progress/types.ts +22 -3
- package/ui.navigation-progress/types.ts +22 -3
- package/ui.other-dot/types.ts +22 -3
- package/ui.text-alert/types.ts +22 -3
- package/ui.text-badge/types.ts +22 -3
- package/ui.text-header/types.ts +22 -3
- package/ui.text-money/types.ts +22 -3
- package/web-types.json +462 -68
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { hasSlotContent } from "./composables/useUI.ts";
|
|
2
2
|
|
|
3
|
-
// TODO: Import all components here
|
|
4
3
|
import UTextDefaultConfig from "./ui.text-block/config.ts";
|
|
5
4
|
import UAlertDefaultConfig from "./ui.text-alert/config.ts";
|
|
6
5
|
import UEmptyDefaultConfig from "./ui.text-empty/config.ts";
|
|
@@ -57,30 +56,6 @@ export enum ColorMode {
|
|
|
57
56
|
Auto = "auto",
|
|
58
57
|
}
|
|
59
58
|
|
|
60
|
-
export enum Color {
|
|
61
|
-
Brand = "brand",
|
|
62
|
-
Grayscale = "grayscale",
|
|
63
|
-
Gray = "gray",
|
|
64
|
-
Red = "red",
|
|
65
|
-
Orange = "orange",
|
|
66
|
-
Amber = "amber",
|
|
67
|
-
Yellow = "yellow",
|
|
68
|
-
Lime = "lime",
|
|
69
|
-
Green = "green",
|
|
70
|
-
Emerald = "emerald",
|
|
71
|
-
Teal = "teal",
|
|
72
|
-
Cyan = "cyan",
|
|
73
|
-
Sky = "sky",
|
|
74
|
-
Blue = "blue",
|
|
75
|
-
Indigo = "indigo",
|
|
76
|
-
Violet = "violet",
|
|
77
|
-
Purple = "purple",
|
|
78
|
-
Fuchsia = "fuchsia",
|
|
79
|
-
Pink = "pink",
|
|
80
|
-
Rose = "rose",
|
|
81
|
-
White = "white",
|
|
82
|
-
}
|
|
83
|
-
|
|
84
59
|
export interface ExtendedKeyClasses {
|
|
85
60
|
[key: string]: Ref<string>;
|
|
86
61
|
}
|
package/ui.button/types.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import defaultConfig from "./config.ts";
|
|
2
2
|
|
|
3
|
-
import type { Color } from "../types.ts";
|
|
4
|
-
|
|
5
3
|
export type Config = Partial<typeof defaultConfig>;
|
|
6
4
|
|
|
7
5
|
export interface UButtonProps {
|
|
@@ -13,7 +11,28 @@ export interface UButtonProps {
|
|
|
13
11
|
/**
|
|
14
12
|
* Button color.
|
|
15
13
|
*/
|
|
16
|
-
color?:
|
|
14
|
+
color?:
|
|
15
|
+
| "grayscale"
|
|
16
|
+
| "red"
|
|
17
|
+
| "orange"
|
|
18
|
+
| "amber"
|
|
19
|
+
| "yellow"
|
|
20
|
+
| "lime"
|
|
21
|
+
| "green"
|
|
22
|
+
| "emerald"
|
|
23
|
+
| "teal"
|
|
24
|
+
| "cyan"
|
|
25
|
+
| "sky"
|
|
26
|
+
| "blue"
|
|
27
|
+
| "indigo"
|
|
28
|
+
| "violet"
|
|
29
|
+
| "purple"
|
|
30
|
+
| "fuchsia"
|
|
31
|
+
| "pink"
|
|
32
|
+
| "rose"
|
|
33
|
+
| "gray"
|
|
34
|
+
| "white"
|
|
35
|
+
| "brand";
|
|
17
36
|
|
|
18
37
|
/**
|
|
19
38
|
* Button size.
|
package/ui.button-link/types.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import defaultConfig from "./config.ts";
|
|
2
2
|
|
|
3
3
|
import type { RouteLocationRaw } from "vue-router";
|
|
4
|
-
import type { Color } from "src/types.ts";
|
|
5
4
|
|
|
6
5
|
export type Config = Partial<typeof defaultConfig>;
|
|
7
6
|
|
|
@@ -29,7 +28,28 @@ export interface ULinkProps {
|
|
|
29
28
|
/**
|
|
30
29
|
* Link color.
|
|
31
30
|
*/
|
|
32
|
-
color?:
|
|
31
|
+
color?:
|
|
32
|
+
| "grayscale"
|
|
33
|
+
| "red"
|
|
34
|
+
| "orange"
|
|
35
|
+
| "amber"
|
|
36
|
+
| "yellow"
|
|
37
|
+
| "lime"
|
|
38
|
+
| "green"
|
|
39
|
+
| "emerald"
|
|
40
|
+
| "teal"
|
|
41
|
+
| "cyan"
|
|
42
|
+
| "sky"
|
|
43
|
+
| "blue"
|
|
44
|
+
| "indigo"
|
|
45
|
+
| "violet"
|
|
46
|
+
| "purple"
|
|
47
|
+
| "fuchsia"
|
|
48
|
+
| "pink"
|
|
49
|
+
| "rose"
|
|
50
|
+
| "gray"
|
|
51
|
+
| "white"
|
|
52
|
+
| "brand";
|
|
33
53
|
|
|
34
54
|
/**
|
|
35
55
|
* Link open type behaviour.
|
|
@@ -12,7 +12,6 @@ import type { UGroupProps } from "./types.ts";
|
|
|
12
12
|
defineOptions({ inheritAttrs: false });
|
|
13
13
|
|
|
14
14
|
const props = withDefaults(defineProps<UGroupProps>(), {
|
|
15
|
-
gap: getDefault<UGroupProps>(defaultConfig, UGroup).gap,
|
|
16
15
|
upperlined: getDefault<UGroupProps>(defaultConfig, UGroup).upperlined,
|
|
17
16
|
underlined: getDefault<UGroupProps>(defaultConfig, UGroup).underlined,
|
|
18
17
|
dataTest: "",
|
|
@@ -12,21 +12,8 @@ export default /*tw*/ {
|
|
|
12
12
|
header: "flex items-center justify-between",
|
|
13
13
|
headerLeftFallback: "flex items-center",
|
|
14
14
|
title: "{UHeader} pr-2",
|
|
15
|
-
content:
|
|
16
|
-
base: "flex flex-col items-stretch",
|
|
17
|
-
variants: {
|
|
18
|
-
gap: {
|
|
19
|
-
none: "gap-0",
|
|
20
|
-
xs: "gap-8",
|
|
21
|
-
sm: "gap-10",
|
|
22
|
-
md: "gap-12",
|
|
23
|
-
lg: "gap-14",
|
|
24
|
-
xl: "gap-16",
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
15
|
+
content: "",
|
|
28
16
|
defaults: {
|
|
29
|
-
gap: "md",
|
|
30
17
|
upperlined: false,
|
|
31
18
|
underlined: false,
|
|
32
19
|
},
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { getDefault } from "../utils/ui.ts";
|
|
3
|
+
|
|
4
|
+
import { UGroups } from "./constants.ts";
|
|
5
|
+
import defaultConfig from "./config.ts";
|
|
6
|
+
import useAttrs from "./useAttrs.ts";
|
|
7
|
+
|
|
8
|
+
import type { UGroupsProps } from "./types.ts";
|
|
9
|
+
|
|
10
|
+
defineOptions({ inheritAttrs: false });
|
|
11
|
+
|
|
12
|
+
const props = withDefaults(defineProps<UGroupsProps>(), {
|
|
13
|
+
gap: getDefault<UGroupsProps>(defaultConfig, UGroups).gap,
|
|
14
|
+
dataTest: "",
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const { wrapperAttrs } = useAttrs(props);
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<template>
|
|
21
|
+
<div v-bind="wrapperAttrs" :data-test="dataTest">
|
|
22
|
+
<!-- @slot Use it to add something inside. -->
|
|
23
|
+
<slot />
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default /*tw*/ {
|
|
2
|
+
wrapper: {
|
|
3
|
+
base: "flex flex-col items-stretch",
|
|
4
|
+
variants: {
|
|
5
|
+
gap: {
|
|
6
|
+
none: "gap-0",
|
|
7
|
+
xs: "gap-8",
|
|
8
|
+
sm: "gap-10",
|
|
9
|
+
md: "gap-12",
|
|
10
|
+
lg: "gap-14",
|
|
11
|
+
xl: "gap-16",
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
defaults: {
|
|
16
|
+
gap: "md",
|
|
17
|
+
},
|
|
18
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Source } from "@storybook/blocks";
|
|
2
|
+
import { getSource } from "../../utils/storybook.ts";
|
|
3
|
+
|
|
4
|
+
import * as stories from "./stories.ts";
|
|
5
|
+
import defaultConfig from "../config.ts?raw"
|
|
6
|
+
|
|
7
|
+
<Meta of={stories} />
|
|
8
|
+
<Title of={stories} />
|
|
9
|
+
<Subtitle of={stories} />
|
|
10
|
+
<Description of={stories} />
|
|
11
|
+
<Primary of={stories} />
|
|
12
|
+
<Controls of={stories.Default} />
|
|
13
|
+
<Stories of={stories} />
|
|
14
|
+
|
|
15
|
+
## Default config
|
|
16
|
+
<Source code={getSource(defaultConfig)} language="jsx" dark />
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { getArgTypes, getSlotNames } from "../../utils/storybook.ts";
|
|
2
|
+
|
|
3
|
+
import UGroups from "../../ui.container-groups/UGroups.vue";
|
|
4
|
+
import UGroup from "../../ui.container-group/UGroup.vue";
|
|
5
|
+
import UCol from "../../ui.container-col/UCol.vue";
|
|
6
|
+
import UInput from "../../ui.form-input/UInput.vue";
|
|
7
|
+
|
|
8
|
+
import type { Meta, StoryFn } from "@storybook/vue3";
|
|
9
|
+
import type { UGroupsProps } from "../types.ts";
|
|
10
|
+
|
|
11
|
+
interface UGroupsArgs extends UGroupsProps {
|
|
12
|
+
slotTemplate?: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The `UGroups` component. | [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/ui.container-groups)
|
|
17
|
+
*/
|
|
18
|
+
export default {
|
|
19
|
+
id: "5035",
|
|
20
|
+
title: "Containers / Groups",
|
|
21
|
+
component: UGroups,
|
|
22
|
+
args: {},
|
|
23
|
+
argTypes: {
|
|
24
|
+
...getArgTypes(UGroups.__name),
|
|
25
|
+
},
|
|
26
|
+
parameters: {
|
|
27
|
+
docs: {
|
|
28
|
+
story: {
|
|
29
|
+
iframeHeight: 360,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
} as Meta;
|
|
34
|
+
|
|
35
|
+
const DefaultTemplate: StoryFn<UGroupsArgs> = (args: UGroupsArgs) => ({
|
|
36
|
+
components: { UGroups, UGroup, UCol, UInput },
|
|
37
|
+
setup() {
|
|
38
|
+
const slots = getSlotNames(UGroups.__name);
|
|
39
|
+
|
|
40
|
+
return { args, slots };
|
|
41
|
+
},
|
|
42
|
+
template: `
|
|
43
|
+
<UGroups v-bind="args">
|
|
44
|
+
${args.slotTemplate}
|
|
45
|
+
</UGroups>
|
|
46
|
+
`,
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export const Default = DefaultTemplate.bind({});
|
|
50
|
+
Default.args = {
|
|
51
|
+
slotTemplate: `
|
|
52
|
+
<UGroup :upperlined="n !== 1" :title="'Group '+n" v-for="n in 3">
|
|
53
|
+
<UCol>
|
|
54
|
+
<UInput placeholder="input" label="Label" />
|
|
55
|
+
<UInput placeholder="input" label="Label" />
|
|
56
|
+
</UCol>
|
|
57
|
+
</UGroup>
|
|
58
|
+
`,
|
|
59
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import defaultConfig from "./config.ts";
|
|
2
|
+
|
|
3
|
+
export type Config = Partial<typeof defaultConfig>;
|
|
4
|
+
|
|
5
|
+
export interface UGroupsProps {
|
|
6
|
+
/**
|
|
7
|
+
* The distance between nested elements.
|
|
8
|
+
*/
|
|
9
|
+
gap?: "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Component config object.
|
|
13
|
+
*/
|
|
14
|
+
config?: Config;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Data-test attribute for automated testing.
|
|
18
|
+
*/
|
|
19
|
+
dataTest?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import useUI from "../composables/useUI.ts";
|
|
2
|
+
|
|
3
|
+
import defaultConfig from "./config.ts";
|
|
4
|
+
|
|
5
|
+
import type { UseAttrs } from "../types.ts";
|
|
6
|
+
import type { UGroupsProps, Config } from "./types.ts";
|
|
7
|
+
|
|
8
|
+
export default function useAttrs(props: UGroupsProps): UseAttrs<Config> {
|
|
9
|
+
const { config, getKeysAttrs, hasSlotContent } = useUI<Config>(defaultConfig, () => props.config);
|
|
10
|
+
|
|
11
|
+
const keysAttrs = getKeysAttrs();
|
|
12
|
+
|
|
13
|
+
return {
|
|
14
|
+
config,
|
|
15
|
+
...keysAttrs,
|
|
16
|
+
hasSlotContent,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import defaultConfig from "./config.ts";
|
|
2
2
|
|
|
3
|
-
import type { Option } from "../ui.dropdown-list/types";
|
|
4
|
-
import type { Direction } from "../composables/useAutoPosition";
|
|
5
|
-
import type { Color } from "../types";
|
|
3
|
+
import type { Option } from "../ui.dropdown-list/types.ts";
|
|
6
4
|
|
|
7
5
|
export type Config = Partial<typeof defaultConfig>;
|
|
8
6
|
|
|
@@ -30,7 +28,28 @@ export interface UDropdownBadgeProps {
|
|
|
30
28
|
/**
|
|
31
29
|
* Badge color.
|
|
32
30
|
*/
|
|
33
|
-
color?:
|
|
31
|
+
color?:
|
|
32
|
+
| "grayscale"
|
|
33
|
+
| "red"
|
|
34
|
+
| "orange"
|
|
35
|
+
| "amber"
|
|
36
|
+
| "yellow"
|
|
37
|
+
| "lime"
|
|
38
|
+
| "green"
|
|
39
|
+
| "emerald"
|
|
40
|
+
| "teal"
|
|
41
|
+
| "cyan"
|
|
42
|
+
| "sky"
|
|
43
|
+
| "blue"
|
|
44
|
+
| "indigo"
|
|
45
|
+
| "violet"
|
|
46
|
+
| "purple"
|
|
47
|
+
| "fuchsia"
|
|
48
|
+
| "pink"
|
|
49
|
+
| "rose"
|
|
50
|
+
| "gray"
|
|
51
|
+
| "white"
|
|
52
|
+
| "brand";
|
|
34
53
|
|
|
35
54
|
/**
|
|
36
55
|
* Badge size.
|
|
@@ -48,14 +67,14 @@ export interface UDropdownBadgeProps {
|
|
|
48
67
|
noIcon?: boolean;
|
|
49
68
|
|
|
50
69
|
/**
|
|
51
|
-
* The position of dropdown list on the
|
|
70
|
+
* The position of dropdown list on the x-axis.
|
|
52
71
|
*/
|
|
53
|
-
|
|
72
|
+
xPosition?: "left" | "right";
|
|
54
73
|
|
|
55
74
|
/**
|
|
56
|
-
* The position of dropdown list on the
|
|
75
|
+
* The position of dropdown list on the y-axis.
|
|
57
76
|
*/
|
|
58
|
-
|
|
77
|
+
yPosition?: "top" | "bottom";
|
|
59
78
|
|
|
60
79
|
/**
|
|
61
80
|
* Unique element id.
|
|
@@ -5,7 +5,7 @@ import defaultConfig from "./config.ts";
|
|
|
5
5
|
|
|
6
6
|
import type { Ref } from "vue";
|
|
7
7
|
import type { Config, UDropdownBadgeProps } from "./types.ts";
|
|
8
|
-
import type { UseAttrs } from "
|
|
8
|
+
import type { UseAttrs } from "../types.ts";
|
|
9
9
|
|
|
10
10
|
interface DropdownBadgeState {
|
|
11
11
|
isShownOptions: Ref<boolean>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import defaultConfig from "./config.ts";
|
|
2
2
|
|
|
3
|
-
import type { Option } from "../ui.dropdown-list/types";
|
|
4
|
-
import type { Direction } from "../composables/useAutoPosition";
|
|
5
|
-
import type { Color } from "../types";
|
|
3
|
+
import type { Option } from "../ui.dropdown-list/types.ts";
|
|
6
4
|
|
|
7
5
|
export type Config = Partial<typeof defaultConfig>;
|
|
8
6
|
|
|
@@ -35,7 +33,28 @@ export interface UDropdownButtonProps {
|
|
|
35
33
|
/**
|
|
36
34
|
* Button color.
|
|
37
35
|
*/
|
|
38
|
-
color?:
|
|
36
|
+
color?:
|
|
37
|
+
| "grayscale"
|
|
38
|
+
| "red"
|
|
39
|
+
| "orange"
|
|
40
|
+
| "amber"
|
|
41
|
+
| "yellow"
|
|
42
|
+
| "lime"
|
|
43
|
+
| "green"
|
|
44
|
+
| "emerald"
|
|
45
|
+
| "teal"
|
|
46
|
+
| "cyan"
|
|
47
|
+
| "sky"
|
|
48
|
+
| "blue"
|
|
49
|
+
| "indigo"
|
|
50
|
+
| "violet"
|
|
51
|
+
| "purple"
|
|
52
|
+
| "fuchsia"
|
|
53
|
+
| "pink"
|
|
54
|
+
| "rose"
|
|
55
|
+
| "gray"
|
|
56
|
+
| "white"
|
|
57
|
+
| "brand";
|
|
39
58
|
|
|
40
59
|
/**
|
|
41
60
|
* Button size.
|
|
@@ -63,14 +82,14 @@ export interface UDropdownButtonProps {
|
|
|
63
82
|
noIcon?: boolean;
|
|
64
83
|
|
|
65
84
|
/**
|
|
66
|
-
* The position of dropdown list on the
|
|
85
|
+
* The position of dropdown list on the x-axis.
|
|
67
86
|
*/
|
|
68
|
-
|
|
87
|
+
xPosition?: "left" | "right";
|
|
69
88
|
|
|
70
89
|
/**
|
|
71
|
-
* The position of dropdown list on the
|
|
90
|
+
* The position of dropdown list on the y-axis.
|
|
72
91
|
*/
|
|
73
|
-
|
|
92
|
+
yPosition?: "top" | "bottom";
|
|
74
93
|
|
|
75
94
|
/**
|
|
76
95
|
* Unique element id.
|
|
@@ -5,7 +5,7 @@ import defaultConfig from "./config.ts";
|
|
|
5
5
|
|
|
6
6
|
import type { Ref } from "vue";
|
|
7
7
|
import type { Config, UDropdownButtonProps } from "./types.ts";
|
|
8
|
-
import type { UseAttrs } from "
|
|
8
|
+
import type { UseAttrs } from "../types.ts";
|
|
9
9
|
|
|
10
10
|
interface DropdownButtonState {
|
|
11
11
|
isShownOptions: Ref<boolean>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import defaultConfig from "./config.ts";
|
|
2
2
|
|
|
3
|
-
import type { Option } from "../ui.dropdown-list/types";
|
|
4
|
-
import type { Direction } from "../composables/useAutoPosition";
|
|
5
|
-
import type { Color } from "../types";
|
|
3
|
+
import type { Option } from "../ui.dropdown-list/types.ts";
|
|
6
4
|
|
|
7
5
|
export type Config = Partial<typeof defaultConfig>;
|
|
8
6
|
|
|
@@ -25,7 +23,28 @@ export interface UDropdownLinkProps {
|
|
|
25
23
|
/**
|
|
26
24
|
* Link color.
|
|
27
25
|
*/
|
|
28
|
-
color?:
|
|
26
|
+
color?:
|
|
27
|
+
| "grayscale"
|
|
28
|
+
| "red"
|
|
29
|
+
| "orange"
|
|
30
|
+
| "amber"
|
|
31
|
+
| "yellow"
|
|
32
|
+
| "lime"
|
|
33
|
+
| "green"
|
|
34
|
+
| "emerald"
|
|
35
|
+
| "teal"
|
|
36
|
+
| "cyan"
|
|
37
|
+
| "sky"
|
|
38
|
+
| "blue"
|
|
39
|
+
| "indigo"
|
|
40
|
+
| "violet"
|
|
41
|
+
| "purple"
|
|
42
|
+
| "fuchsia"
|
|
43
|
+
| "pink"
|
|
44
|
+
| "rose"
|
|
45
|
+
| "gray"
|
|
46
|
+
| "white"
|
|
47
|
+
| "brand";
|
|
29
48
|
|
|
30
49
|
/**
|
|
31
50
|
* Link size.
|
|
@@ -58,14 +77,14 @@ export interface UDropdownLinkProps {
|
|
|
58
77
|
noIcon?: boolean;
|
|
59
78
|
|
|
60
79
|
/**
|
|
61
|
-
* The position of dropdown list on the
|
|
80
|
+
* The position of dropdown list on the x-axis.
|
|
62
81
|
*/
|
|
63
|
-
|
|
82
|
+
xPosition?: "left" | "right";
|
|
64
83
|
|
|
65
84
|
/**
|
|
66
|
-
* The position of dropdown list on the
|
|
85
|
+
* The position of dropdown list on the y-axis.
|
|
67
86
|
*/
|
|
68
|
-
|
|
87
|
+
yPosition?: "top" | "bottom";
|
|
69
88
|
|
|
70
89
|
/**
|
|
71
90
|
* Unique element id.
|
|
@@ -16,7 +16,7 @@ import defaultConfig from "./config.ts";
|
|
|
16
16
|
import { UDropdownList } from "./constants.ts";
|
|
17
17
|
|
|
18
18
|
import type { Option, UDropdownListProps } from "./types.ts";
|
|
19
|
-
import type { UnknownObject } from "
|
|
19
|
+
import type { UnknownObject } from "../types.ts";
|
|
20
20
|
|
|
21
21
|
defineOptions({ inheritAttrs: false });
|
|
22
22
|
|
|
@@ -9,7 +9,7 @@ import UInput from "../ui.form-input/UInput.vue";
|
|
|
9
9
|
import { InputRangeType, INPUT_RANGE_FORMAT } from "./constants.ts";
|
|
10
10
|
|
|
11
11
|
import type { UDatePickerRangeInputsProps } from "./types.ts";
|
|
12
|
-
import type { RangeDate } from "
|
|
12
|
+
import type { RangeDate } from "../ui.form-calendar/types.ts";
|
|
13
13
|
|
|
14
14
|
type UInputRef = InstanceType<typeof UInput>;
|
|
15
15
|
|
package/ui.image-avatar/types.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import defaultConfig from "./config.ts";
|
|
2
2
|
|
|
3
|
-
import type { Color } from "../types.ts";
|
|
4
|
-
|
|
5
3
|
export type Config = Partial<typeof defaultConfig>;
|
|
6
4
|
|
|
7
5
|
export interface UAvatarProps {
|
|
@@ -28,7 +26,28 @@ export interface UAvatarProps {
|
|
|
28
26
|
/**
|
|
29
27
|
* Avatar color.
|
|
30
28
|
*/
|
|
31
|
-
color?:
|
|
29
|
+
color?:
|
|
30
|
+
| "grayscale"
|
|
31
|
+
| "red"
|
|
32
|
+
| "orange"
|
|
33
|
+
| "amber"
|
|
34
|
+
| "yellow"
|
|
35
|
+
| "lime"
|
|
36
|
+
| "green"
|
|
37
|
+
| "emerald"
|
|
38
|
+
| "teal"
|
|
39
|
+
| "cyan"
|
|
40
|
+
| "sky"
|
|
41
|
+
| "blue"
|
|
42
|
+
| "indigo"
|
|
43
|
+
| "violet"
|
|
44
|
+
| "purple"
|
|
45
|
+
| "fuchsia"
|
|
46
|
+
| "pink"
|
|
47
|
+
| "rose"
|
|
48
|
+
| "gray"
|
|
49
|
+
| "white"
|
|
50
|
+
| "brand";
|
|
32
51
|
|
|
33
52
|
/**
|
|
34
53
|
* Avatar corner rounding.
|
package/ui.image-icon/types.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import defaultConfig from "./config.ts";
|
|
2
2
|
|
|
3
|
-
import type { Color } from "../types.ts";
|
|
4
3
|
export type Config = Partial<typeof defaultConfig>;
|
|
5
4
|
|
|
6
5
|
export interface UIconProps {
|
|
@@ -17,7 +16,29 @@ export interface UIconProps {
|
|
|
17
16
|
/**
|
|
18
17
|
* Icon color.
|
|
19
18
|
*/
|
|
20
|
-
color?:
|
|
19
|
+
color?:
|
|
20
|
+
| "grayscale"
|
|
21
|
+
| "red"
|
|
22
|
+
| "orange"
|
|
23
|
+
| "amber"
|
|
24
|
+
| "yellow"
|
|
25
|
+
| "lime"
|
|
26
|
+
| "green"
|
|
27
|
+
| "emerald"
|
|
28
|
+
| "teal"
|
|
29
|
+
| "cyan"
|
|
30
|
+
| "sky"
|
|
31
|
+
| "blue"
|
|
32
|
+
| "indigo"
|
|
33
|
+
| "violet"
|
|
34
|
+
| "purple"
|
|
35
|
+
| "fuchsia"
|
|
36
|
+
| "pink"
|
|
37
|
+
| "rose"
|
|
38
|
+
| "gray"
|
|
39
|
+
| "black"
|
|
40
|
+
| "white"
|
|
41
|
+
| "brand";
|
|
21
42
|
|
|
22
43
|
/**
|
|
23
44
|
* Icon size.
|
package/ui.loader/types.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import defaultConfig from "./config.ts";
|
|
2
2
|
|
|
3
|
-
import type { Color } from "../types.ts";
|
|
4
|
-
|
|
5
3
|
export type Config = Partial<typeof defaultConfig>;
|
|
6
4
|
|
|
7
5
|
export interface ULoaderProps {
|
|
@@ -13,7 +11,29 @@ export interface ULoaderProps {
|
|
|
13
11
|
/**
|
|
14
12
|
* Loader color.
|
|
15
13
|
*/
|
|
16
|
-
color?:
|
|
14
|
+
color?:
|
|
15
|
+
| "grayscale"
|
|
16
|
+
| "red"
|
|
17
|
+
| "orange"
|
|
18
|
+
| "amber"
|
|
19
|
+
| "yellow"
|
|
20
|
+
| "lime"
|
|
21
|
+
| "green"
|
|
22
|
+
| "emerald"
|
|
23
|
+
| "teal"
|
|
24
|
+
| "cyan"
|
|
25
|
+
| "sky"
|
|
26
|
+
| "blue"
|
|
27
|
+
| "indigo"
|
|
28
|
+
| "violet"
|
|
29
|
+
| "purple"
|
|
30
|
+
| "fuchsia"
|
|
31
|
+
| "pink"
|
|
32
|
+
| "rose"
|
|
33
|
+
| "gray"
|
|
34
|
+
| "black"
|
|
35
|
+
| "white"
|
|
36
|
+
| "brand";
|
|
17
37
|
|
|
18
38
|
/**
|
|
19
39
|
* Loader size.
|