vueless 0.0.180 → 0.0.182
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/configs/default.config.js +1 -2
- package/ui.button-link/composables/attrs.composable.js +20 -3
- package/ui.button-link/configs/default.config.js +2 -4
- package/ui.container-accordion/configs/default.config.js +1 -1
- package/ui.data-table/configs/default.config.js +1 -1
- package/ui.dropdown-list/configs/default.config.js +1 -4
- package/ui.form-checkbox/configs/default.config.js +1 -3
- package/ui.form-color-picker/composables/attrs.composable.js +9 -2
- package/ui.form-input/configs/default.config.js +2 -3
- package/ui.form-select/configs/default.config.js +2 -5
- package/ui.form-switch/configs/default.config.js +3 -3
- package/ui.form-textarea/configs/default.config.js +1 -1
- 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
|
@@ -3,8 +3,7 @@ export default /*tw*/ {
|
|
|
3
3
|
base: `
|
|
4
4
|
flex items-center justify-center
|
|
5
5
|
text-base font-medium outline-none
|
|
6
|
-
border border-solid
|
|
7
|
-
transition duration-100 ease-in-out
|
|
6
|
+
border border-solid transition-all
|
|
8
7
|
focus:ring-opacity-20 focus:ring-4 focus:ring-{color}-700
|
|
9
8
|
focus-within:ring-opacity-20 focus-within:ring-4 focus-within:ring-{color}-700
|
|
10
9
|
disabled:ring-0 disabled:cursor-no-drop
|
|
@@ -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 });
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export default /*tw*/ {
|
|
2
2
|
wrapper: {
|
|
3
3
|
base: `
|
|
4
|
-
w-fit inline-flex rounded
|
|
5
|
-
transition duration-100 ease-in-out
|
|
4
|
+
w-fit inline-flex rounded transition-all
|
|
6
5
|
focus-within:ring-4 focus-within:ring-{color}-500 focus-within:ring-opacity-15 focus-visible:outline-none
|
|
7
6
|
`,
|
|
8
7
|
variants: {
|
|
@@ -29,9 +28,8 @@ export default /*tw*/ {
|
|
|
29
28
|
},
|
|
30
29
|
link: {
|
|
31
30
|
base: `
|
|
32
|
-
w-full inline-block !leading-none
|
|
31
|
+
w-full inline-block !leading-none transition-all
|
|
33
32
|
text-{color}-500 decoration-{color}-500 underline-offset-4
|
|
34
|
-
transition duration-100 ease-in-out
|
|
35
33
|
hover:text-opacity-80
|
|
36
34
|
active:text-opacity-70
|
|
37
35
|
focus:ring-offset-0 focus:ring-0
|
|
@@ -43,7 +43,7 @@ export default /*tw*/ {
|
|
|
43
43
|
headerLoader: "absolute !top-auto",
|
|
44
44
|
body: "group/body divide-none",
|
|
45
45
|
bodyRow: "hover:bg-gray-50",
|
|
46
|
-
bodyRowChecked: "bg-gray-100 transition
|
|
46
|
+
bodyRowChecked: "bg-gray-100 transition-all",
|
|
47
47
|
bodyRowBefore: "!p-0",
|
|
48
48
|
bodyRowBeforeCell: "py-1",
|
|
49
49
|
bodyRowAfter: "!p-0",
|
|
@@ -5,10 +5,7 @@ export default /*tw*/ {
|
|
|
5
5
|
overflow-auto [-webkit-overflow-scrolling:touch]
|
|
6
6
|
focus:outline-none
|
|
7
7
|
`,
|
|
8
|
-
list:
|
|
9
|
-
inline-block list-none align-top m-0 min-w-full p-0
|
|
10
|
-
hover:transition hover:duration-100 hover:ease-in-out bg-white opacity-1
|
|
11
|
-
`,
|
|
8
|
+
list: "inline-block list-none align-top m-0 min-w-full p-0 bg-white opacity-1 hover:transition-all",
|
|
12
9
|
subGroupLabel: {
|
|
13
10
|
base: "pointer-events-none bg-transparent !font-medium !leading-none !uppercase !text-gray-500/[85] pt-1",
|
|
14
11
|
variants: {
|
|
@@ -20,9 +20,7 @@ export default /*tw*/ {
|
|
|
20
20
|
icon: "",
|
|
21
21
|
checkbox: {
|
|
22
22
|
base: `
|
|
23
|
-
|
|
24
|
-
border border-solid rounded
|
|
25
|
-
border-gray-300 bg-white
|
|
23
|
+
border border-solid rounded border-gray-300 bg-white hover:transition-all
|
|
26
24
|
hover:border-gray-400
|
|
27
25
|
focus:border-{color}-500 focus:ring-4 focus:ring-opacity-20 focus:ring-offset-0 focus:ring-{color}-500
|
|
28
26
|
active:border-{color}-500 active:bg-{color}-500
|
|
@@ -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 });
|
|
@@ -8,8 +8,7 @@ export default /*tw*/ {
|
|
|
8
8
|
passwordHiddenIconName: "visibility_off-fill",
|
|
9
9
|
block: {
|
|
10
10
|
base: `
|
|
11
|
-
rounded-lg border border-solid border-gray-300 bg-white !opacity-100 relative flex
|
|
12
|
-
transition duration-100 ease-in-out
|
|
11
|
+
rounded-lg border border-solid border-gray-300 bg-white !opacity-100 relative flex transition-all
|
|
13
12
|
hover:border-gray-400 hover:focus-within:border-brand-500
|
|
14
13
|
focus-within:border-brand-500 focus-within:ring-4 focus-within:ring-brand-600/[.15]
|
|
15
14
|
`,
|
|
@@ -32,7 +31,7 @@ export default /*tw*/ {
|
|
|
32
31
|
input: {
|
|
33
32
|
base: `
|
|
34
33
|
block w-full pb-2 px-4 font-normal leading-none text-gray-900 placeholder:font-normal placeholder-gray-400
|
|
35
|
-
transition
|
|
34
|
+
transition-all bg-white border-none border-gray-300 rounded-lg shadow-none
|
|
36
35
|
focus:outline-none focus:ring-0 disabled:opacity-50
|
|
37
36
|
disabled:cursor-not-allowed disabled:text-gray-900 disabled:border-gray-100
|
|
38
37
|
read-only:border-gray-300 read-only:ring-0
|
|
@@ -4,7 +4,7 @@ export default /*tw*/ {
|
|
|
4
4
|
base: `
|
|
5
5
|
pb-2 pt-2 flex flex-row-reverse justify-between w-full min-h-full box-border relative
|
|
6
6
|
rounded-lg border border-gray-300 bg-white
|
|
7
|
-
hover:border-gray-400 hover:transition
|
|
7
|
+
hover:border-gray-400 hover:transition-all hover:focus-within:border-brand-500
|
|
8
8
|
focus-within:border-brand-500 focus-within:ring-4 focus-within:ring-brand-600/[.15] focus-within:outline-none
|
|
9
9
|
`,
|
|
10
10
|
variants: {
|
|
@@ -63,10 +63,7 @@ export default /*tw*/ {
|
|
|
63
63
|
removeItemIconName: "close_small",
|
|
64
64
|
caretRemoveItem: "flex items-center",
|
|
65
65
|
caretClearText: {
|
|
66
|
-
base:
|
|
67
|
-
cursor-pointer flex items-center text-sm font-normal text-gray-400 hover:text-gray-500
|
|
68
|
-
transition-all duration-100 ease-in-out
|
|
69
|
-
`,
|
|
66
|
+
base: "cursor-pointer flex items-center text-sm font-normal text-gray-400 hover:text-gray-500 transition-all",
|
|
70
67
|
compoundVariants: [
|
|
71
68
|
{ size: "sm", class: "text-sm" },
|
|
72
69
|
{ size: "md", class: "text-base" },
|
|
@@ -2,7 +2,7 @@ export default /*tw*/ {
|
|
|
2
2
|
label: "flex items-start",
|
|
3
3
|
wrapper: {
|
|
4
4
|
base: `
|
|
5
|
-
transition-all duration-300
|
|
5
|
+
transition-all duration-300
|
|
6
6
|
flex items-center p-0.5 relative rounded-3xl cursor-pointer
|
|
7
7
|
ring-opacity-10 focus-within:ring-4
|
|
8
8
|
`,
|
|
@@ -28,7 +28,7 @@ export default /*tw*/ {
|
|
|
28
28
|
},
|
|
29
29
|
input: "absolute size-0 opacity-0",
|
|
30
30
|
circle: {
|
|
31
|
-
base: "transition-all duration-300
|
|
31
|
+
base: "transition-all duration-300 rounded-full bg-white flex items-center justify-center",
|
|
32
32
|
variants: {
|
|
33
33
|
size: {
|
|
34
34
|
sm: "size-4",
|
|
@@ -46,7 +46,7 @@ export default /*tw*/ {
|
|
|
46
46
|
selectedIconName: "check",
|
|
47
47
|
unselectedIconName: "close",
|
|
48
48
|
toggleLabel: {
|
|
49
|
-
base: "absolute text-center text-2xs font-medium uppercase text-white transition-all duration-300
|
|
49
|
+
base: "absolute text-center text-2xs font-medium uppercase text-white transition-all duration-300",
|
|
50
50
|
compoundVariants: [
|
|
51
51
|
{ toggleLabel: true, checked: true, class: "w-1/2 left-1" },
|
|
52
52
|
{ toggleLabel: true, checked: false, class: "w-1/2 right-1" },
|
|
@@ -4,7 +4,7 @@ export default /*tw*/ {
|
|
|
4
4
|
rightSlot: "flex items-center justify-center h-full w-11 absolute right-0",
|
|
5
5
|
textareaWrapper: {
|
|
6
6
|
base: `
|
|
7
|
-
transition
|
|
7
|
+
transition-all focus-within:outline-none
|
|
8
8
|
rounded-lg border border-solid border-gray-300 ring-0 cursor-text bg-white pr-4
|
|
9
9
|
hover:border-gray-400 pl-4 hover:focus-within:border-gray-500
|
|
10
10
|
focus-within:border-gray-500 focus-within:ring-4 focus-within:ring-gray-600/[.15]
|
|
@@ -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.182",
|
|
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": [
|