vueless 0.0.180 → 0.0.181
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/package.json +1 -1
- package/ui.button-link/composables/attrs.composable.js +20 -3
- package/ui.form-color-picker/composables/attrs.composable.js +9 -2
- package/ui.navigation-progress/composables/attrs.composable.js +9 -1
- package/ui.navigation-progress/configs/default.config.js +20 -15
- package/web-types.json +2 -2
package/package.json
CHANGED
|
@@ -69,14 +69,31 @@ export function useAttrs(props, { isActive, isExactActive }) {
|
|
|
69
69
|
),
|
|
70
70
|
);
|
|
71
71
|
|
|
72
|
-
const textClasses = computed(() =>
|
|
72
|
+
const textClasses = computed(() =>
|
|
73
|
+
setColor(
|
|
74
|
+
cvaText({
|
|
75
|
+
color: getColor(props.color),
|
|
76
|
+
}),
|
|
77
|
+
props.color,
|
|
78
|
+
),
|
|
79
|
+
);
|
|
73
80
|
|
|
74
81
|
const rightSlotClasses = computed(() =>
|
|
75
|
-
setColor(
|
|
82
|
+
setColor(
|
|
83
|
+
cvaRightSlot({
|
|
84
|
+
color: getColor(props.color),
|
|
85
|
+
}),
|
|
86
|
+
props.color,
|
|
87
|
+
),
|
|
76
88
|
);
|
|
77
89
|
|
|
78
90
|
const leftSlotClasses = computed(() =>
|
|
79
|
-
setColor(
|
|
91
|
+
setColor(
|
|
92
|
+
cvaLeftSlot({
|
|
93
|
+
color: getColor(props.color),
|
|
94
|
+
}),
|
|
95
|
+
props.color,
|
|
96
|
+
),
|
|
80
97
|
);
|
|
81
98
|
|
|
82
99
|
const wrapperAttrsRaw = getAttrs("wrapper", { classes: wrapperClasses });
|
|
@@ -5,7 +5,7 @@ import { cva } from "../../service.ui";
|
|
|
5
5
|
import defaultConfig from "../configs/default.config";
|
|
6
6
|
|
|
7
7
|
export function useAttrs(props) {
|
|
8
|
-
const { config, getAttrs, setColor } = useUI(defaultConfig, () => props.config);
|
|
8
|
+
const { config, getAttrs, setColor, getColor } = useUI(defaultConfig, () => props.config);
|
|
9
9
|
const { list, radio } = config.value;
|
|
10
10
|
|
|
11
11
|
const cvaList = cva({
|
|
@@ -21,7 +21,14 @@ export function useAttrs(props) {
|
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
const listClasses = computed(() => cvaList({ size: props.size }));
|
|
24
|
-
const radioClasses = computed(() =>
|
|
24
|
+
const radioClasses = computed(() =>
|
|
25
|
+
setColor(
|
|
26
|
+
cvaRadio({
|
|
27
|
+
color: getColor(props.color),
|
|
28
|
+
}),
|
|
29
|
+
props.color,
|
|
30
|
+
),
|
|
31
|
+
);
|
|
25
32
|
|
|
26
33
|
const labelAttrs = getAttrs("label");
|
|
27
34
|
const listAttrs = getAttrs("list", { classes: listClasses });
|
|
@@ -46,7 +46,15 @@ export function useAttrs(props) {
|
|
|
46
46
|
),
|
|
47
47
|
);
|
|
48
48
|
|
|
49
|
-
const stepClasses = computed(() =>
|
|
49
|
+
const stepClasses = computed(() =>
|
|
50
|
+
setColor(
|
|
51
|
+
cvaStep({
|
|
52
|
+
size: props.size,
|
|
53
|
+
color: getColor(props.color),
|
|
54
|
+
}),
|
|
55
|
+
props.color,
|
|
56
|
+
),
|
|
57
|
+
);
|
|
50
58
|
|
|
51
59
|
const wrapperAttrs = getAttrs("wrapper");
|
|
52
60
|
const indicatorAttrs = getAttrs("indicator", { classes: indicatorClasses });
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export default /*tw*/ {
|
|
2
|
-
wrapper: "h-auto flex flex-col gap-1.5
|
|
2
|
+
wrapper: "w-full h-auto flex flex-col gap-1.5",
|
|
3
3
|
progress: {
|
|
4
4
|
base: `
|
|
5
|
-
block appearance-none border-none overflow-hidden
|
|
6
|
-
|
|
7
|
-
[
|
|
8
|
-
[&::-webkit-progress-
|
|
9
|
-
[&::-webkit-progress-
|
|
10
|
-
[&::-webkit-progress-value]:
|
|
11
|
-
|
|
12
|
-
[
|
|
5
|
+
text-{color}-500 w-full block appearance-none border-none overflow-hidden
|
|
6
|
+
indeterminate:relative indeterminate:after:rounded-full
|
|
7
|
+
[&:indeterminate::-webkit-progress-value]:rounded-full [&:indeterminate::-moz-progress-bar]:rounded-full
|
|
8
|
+
[&::-webkit-progress-bar]:w-full [&::-webkit-progress-bar]:rounded-full
|
|
9
|
+
[&::-webkit-progress-bar]:bg-gray-100 [@supports(selector(&::-moz-progress-bar))]:bg-gray-100
|
|
10
|
+
[&::-webkit-progress-value]:rounded-full [&::-moz-progress-bar]:rounded-full
|
|
11
|
+
[&::-webkit-progress-value]:transition-all [&::-moz-progress-bar]:transition-all
|
|
12
|
+
[&::-webkit-progress-value]:bg-current [&::-moz-progress-bar]:bg-current
|
|
13
13
|
`,
|
|
14
14
|
variants: {
|
|
15
15
|
color: {
|
|
16
|
-
white: "
|
|
17
|
-
grayscale: "
|
|
16
|
+
white: "text-gray-200",
|
|
17
|
+
grayscale: "text-gray-900",
|
|
18
18
|
},
|
|
19
19
|
size: {
|
|
20
20
|
"2xs": "h-px",
|
|
@@ -28,10 +28,10 @@ export default /*tw*/ {
|
|
|
28
28
|
},
|
|
29
29
|
},
|
|
30
30
|
indicator: {
|
|
31
|
-
base: "
|
|
31
|
+
base: "text-{color}-500 flex justify-end w-full min-w-fit font-medium transition-all",
|
|
32
32
|
variants: {
|
|
33
33
|
color: {
|
|
34
|
-
white: "text-
|
|
34
|
+
white: "text-gray-200",
|
|
35
35
|
grayscale: "text-gray-900",
|
|
36
36
|
},
|
|
37
37
|
size: {
|
|
@@ -46,8 +46,12 @@ export default /*tw*/ {
|
|
|
46
46
|
},
|
|
47
47
|
firstStep: "text-gray-500",
|
|
48
48
|
step: {
|
|
49
|
-
base: "flex
|
|
49
|
+
base: "text-{color}-500 flex justify-end w-full transition-all",
|
|
50
50
|
variants: {
|
|
51
|
+
color: {
|
|
52
|
+
white: "text-gray-200",
|
|
53
|
+
grayscale: "text-gray-900",
|
|
54
|
+
},
|
|
51
55
|
size: {
|
|
52
56
|
xs: "text-xs",
|
|
53
57
|
sm: "text-sm",
|
|
@@ -61,6 +65,7 @@ export default /*tw*/ {
|
|
|
61
65
|
defaultVariants: {
|
|
62
66
|
color: "brand",
|
|
63
67
|
size: "md",
|
|
68
|
+
indicator: false,
|
|
64
69
|
},
|
|
65
|
-
safelist: (colors) => [{ pattern: `
|
|
70
|
+
safelist: (colors) => [{ pattern: `text-(${colors})-500` }],
|
|
66
71
|
};
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "vue",
|
|
3
3
|
"name": "vueless",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.181",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -5767,7 +5767,7 @@
|
|
|
5767
5767
|
"kind": "expression",
|
|
5768
5768
|
"type": "boolean"
|
|
5769
5769
|
},
|
|
5770
|
-
"default": "
|
|
5770
|
+
"default": "false"
|
|
5771
5771
|
}
|
|
5772
5772
|
],
|
|
5773
5773
|
"slots": [
|