vueless 0.0.136 → 0.0.137
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
CHANGED
package/preset.tailwind/index.js
CHANGED
|
@@ -26,7 +26,7 @@ export function vuelessPreset() {
|
|
|
26
26
|
const devSafelist = [
|
|
27
27
|
{
|
|
28
28
|
pattern: /(border|bg|text|ring)-(.*)-((50|[1-9]00|950)?)$/,
|
|
29
|
-
variants: ["hover", "focus", "focus-within", "active"],
|
|
29
|
+
variants: ["hover", "focus", "focus-within", "active", "disabled"],
|
|
30
30
|
},
|
|
31
31
|
];
|
|
32
32
|
|
|
@@ -2,43 +2,44 @@ export default /*tw*/ {
|
|
|
2
2
|
button: {
|
|
3
3
|
base: `
|
|
4
4
|
flex items-center justify-center
|
|
5
|
-
text-base font-medium
|
|
5
|
+
text-base font-medium outline-none
|
|
6
|
+
border border-solid rounded-lg
|
|
6
7
|
transition duration-100 ease-in-out
|
|
7
|
-
focus:ring-
|
|
8
|
+
focus:ring-opacity-20 focus:ring-4 focus:outline-none
|
|
9
|
+
active:ring-opacity-20
|
|
10
|
+
disabled:ring-0 disabled:cursor-no-drop
|
|
8
11
|
`,
|
|
9
12
|
variants: {
|
|
10
13
|
size: {
|
|
11
|
-
xs: "px-2 py-1.5 text-xs leading-tight",
|
|
12
|
-
sm: "px-3 py-2.5 text-sm leading-tight",
|
|
13
|
-
md: "px-4 py-3.5 text-base leading-tight",
|
|
14
|
-
lg: "px-5 py-[1.125rem] text-lg leading-tight",
|
|
14
|
+
xs: "px-2 py-1.5 text-xs leading-tight gap-0.5",
|
|
15
|
+
sm: "px-3 py-2.5 text-sm leading-tight gap-1",
|
|
16
|
+
md: "px-4 py-3.5 text-base leading-tight gap-1.5",
|
|
17
|
+
lg: "px-5 py-[1.125rem] text-lg leading-tight gap-2",
|
|
15
18
|
},
|
|
16
19
|
variant: {
|
|
17
20
|
primary: `
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
text-white
|
|
22
|
+
bg-{color}-600 border-{color}-600
|
|
23
|
+
hover:bg-{color}-700 hover:border-{color}-700
|
|
24
|
+
focus:bg-{color}-700 focus:border-{color}-700 focus:ring-{color}-700
|
|
25
|
+
active:bg-{color}-800 active:border-{color}-800 active:ring-{color}-800
|
|
26
|
+
disabled:bg-{color}-300 disabled:border-{color}-300 disabled:text-white
|
|
27
|
+
`,
|
|
25
28
|
secondary: `
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
focus:text-{color}-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
active:border-{color}-500 active:text-{color}-500
|
|
33
|
-
active:border-opacity-70 active:text-opacity-70`,
|
|
29
|
+
text-{color}-600 border-{color}-600
|
|
30
|
+
hover:text-{color}-700 hover:border-{color}-700
|
|
31
|
+
focus:text-{color}-700 focus:border-{color}-700 focus:ring-{color}-700
|
|
32
|
+
active:text-{color}-800 active:border-{color}-800 active:ring-{color}-800
|
|
33
|
+
disabled:text-{color}-300 disabled:border-{color}-300
|
|
34
|
+
`,
|
|
34
35
|
thirdary: `
|
|
35
|
-
border
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
border-transparent
|
|
37
|
+
text-{color}-600
|
|
38
|
+
hover:text-{color}-700 hover:bg-{color}-700 hover:bg-opacity-10
|
|
39
|
+
focus:text-{color}-700 focus:bg-{color}-700 focus:bg-opacity-10 focus:ring-{color}-700
|
|
40
|
+
active:text-{color}-800 active:bg-{color}-800 active:bg-opacity-15 active:ring-{color}-800
|
|
41
|
+
disabled:text-{color}-300
|
|
42
|
+
`,
|
|
42
43
|
},
|
|
43
44
|
loading: {
|
|
44
45
|
true: "pointer-events-none",
|
|
@@ -49,102 +50,84 @@ export default /*tw*/ {
|
|
|
49
50
|
block: {
|
|
50
51
|
true: "w-full",
|
|
51
52
|
},
|
|
53
|
+
color: {
|
|
54
|
+
grayscale: "focus:ring-gray-800 active:ring-gray-700 disabled:text-gray-400",
|
|
55
|
+
white: "focus:ring-gray-800 active:ring-gray-700 disabled:text-gray-400",
|
|
56
|
+
},
|
|
52
57
|
},
|
|
53
58
|
compoundVariants: [
|
|
54
|
-
{
|
|
55
|
-
disabled: true,
|
|
56
|
-
variant: "primary",
|
|
57
|
-
class: `
|
|
58
|
-
border-opacity-0 bg-opacity-40 cursor-no-drop text-white
|
|
59
|
-
hover:bg-opacity-40
|
|
60
|
-
focus:bg-opacity-40 focus:ring-0
|
|
61
|
-
active:bg-opacity-40 active:ring-0
|
|
62
|
-
`,
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
disabled: true,
|
|
66
|
-
variant: "secondary",
|
|
67
|
-
class: `
|
|
68
|
-
text-opacity-40 border-opacity-40 cursor-no-drop
|
|
69
|
-
hover:text-opacity-40 hover:border-opacity-40
|
|
70
|
-
focus:text-opacity-40 focus:border-opacity-40 focus:ring-0
|
|
71
|
-
active:text-opacity-40 active:border-opacity-40 active:ring-0
|
|
72
|
-
`,
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
disabled: true,
|
|
76
|
-
variant: "thirdary",
|
|
77
|
-
class: `
|
|
78
|
-
bg-opacity-5 text-opacity-40 ring-opacity-0 cursor-no-drop
|
|
79
|
-
hover:bg-opacity-5 hover:text-opacity-40
|
|
80
|
-
focus:ring-0 focus:bg-opacity-5 focus:text-opacity-40
|
|
81
|
-
active:bg-opacity-5 active:ring-0 active:text-opacity-40
|
|
82
|
-
`,
|
|
83
|
-
},
|
|
84
59
|
{
|
|
85
60
|
color: "grayscale",
|
|
86
61
|
variant: "primary",
|
|
87
62
|
class: `
|
|
88
|
-
|
|
89
|
-
hover:
|
|
90
|
-
focus:
|
|
91
|
-
active:
|
|
63
|
+
bg-gray-900 border-gray-900
|
|
64
|
+
hover:bg-gray-800 hover:border-gray-800
|
|
65
|
+
focus:bg-gray-800 focus:border-gray-800
|
|
66
|
+
active:bg-gray-700 active:border-gray-700
|
|
67
|
+
disabled:bg-gray-400 disabled:border-gray-400 disabled:text-white
|
|
68
|
+
`,
|
|
92
69
|
},
|
|
93
70
|
{
|
|
94
71
|
color: "grayscale",
|
|
95
72
|
variant: "secondary",
|
|
96
73
|
class: `
|
|
97
74
|
text-gray-900 border-gray-900
|
|
98
|
-
hover:
|
|
99
|
-
focus:
|
|
100
|
-
active:
|
|
75
|
+
hover:text-gray-800 hover:border-gray-800
|
|
76
|
+
focus:text-gray-800 focus:border-gray-800
|
|
77
|
+
active:text-gray-700 active:border-gray-700
|
|
78
|
+
disabled:border-gray-400
|
|
79
|
+
`,
|
|
101
80
|
},
|
|
102
81
|
{
|
|
103
82
|
color: "grayscale",
|
|
104
83
|
variant: "thirdary",
|
|
105
84
|
class: `
|
|
106
85
|
text-gray-900
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
active:text-gray-
|
|
86
|
+
hover:text-gray-800 hover:bg-gray-800 hover:bg-opacity-10
|
|
87
|
+
focus:text-gray-800 focus:bg-gray-800 focus:bg-opacity-10
|
|
88
|
+
active:text-gray-700 active:bg-gray-700 active:bg-opacity-15
|
|
89
|
+
`,
|
|
110
90
|
},
|
|
111
91
|
{
|
|
112
92
|
color: "white",
|
|
113
93
|
variant: "primary",
|
|
114
94
|
class: `
|
|
115
|
-
border-white bg-white
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
active:border-
|
|
95
|
+
text-gray-900 border-white bg-white
|
|
96
|
+
hover:text-gray-800 hover:border-gray-50 hover:bg-gray-50
|
|
97
|
+
focus:text-gray-800 focus:border-gray-50 focus:bg-gray-50
|
|
98
|
+
active:text-gray-700 active:border-gray-100 active:bg-gray-100
|
|
99
|
+
`,
|
|
119
100
|
},
|
|
120
101
|
{
|
|
121
102
|
color: "white",
|
|
122
103
|
variant: "secondary",
|
|
123
104
|
class: `
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
active:border-
|
|
105
|
+
text-gray-900 border-white
|
|
106
|
+
hover:text-gray-800 hover:border-gray-50
|
|
107
|
+
focus:text-gray-800 focus:border-gray-50
|
|
108
|
+
active:text-gray-700 active:border-gray-100
|
|
109
|
+
`,
|
|
128
110
|
},
|
|
129
111
|
{
|
|
130
112
|
color: "white",
|
|
131
113
|
variant: "thirdary",
|
|
132
114
|
class: `
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
active:bg-white
|
|
115
|
+
text-gray-900
|
|
116
|
+
hover:text-gray-800 hover:bg-white hover:bg-opacity-10
|
|
117
|
+
focus:text-gray-800 focus:bg-white focus:bg-opacity-10
|
|
118
|
+
active:text-gray-700 active:bg-white active:bg-opacity-15
|
|
119
|
+
`,
|
|
137
120
|
},
|
|
138
|
-
{ filled: true, variant: "thirdary", class: "bg-{color}-
|
|
139
|
-
{ filled: true, variant: "thirdary", color: "
|
|
140
|
-
{ filled: true, variant: "thirdary", color: "
|
|
121
|
+
{ filled: true, variant: "thirdary", class: "bg-{color}-600 bg-opacity-10" },
|
|
122
|
+
{ filled: true, variant: "thirdary", color: "grayscale", class: "bg-gray-800 bg-opacity-10" },
|
|
123
|
+
{ filled: true, variant: "thirdary", color: "white", class: "bg-gray-50" },
|
|
141
124
|
{ square: true, size: "xs", class: "p-1" },
|
|
142
125
|
{ square: true, size: "sm", class: "p-2" },
|
|
143
126
|
{ square: true, size: "md", class: "p-3" },
|
|
144
|
-
{ square: true, size: "lg", class: "
|
|
127
|
+
{ square: true, size: "lg", class: "p-4" },
|
|
145
128
|
],
|
|
146
129
|
},
|
|
147
|
-
text: "whitespace-nowrap
|
|
130
|
+
text: "whitespace-nowrap",
|
|
148
131
|
defaultVariants: {
|
|
149
132
|
color: "brand",
|
|
150
133
|
variant: "primary",
|
|
@@ -158,9 +141,19 @@ export default /*tw*/ {
|
|
|
158
141
|
disabled: false,
|
|
159
142
|
},
|
|
160
143
|
safelist: (colors) => [
|
|
161
|
-
{ pattern: `border-(${colors})-
|
|
162
|
-
{ pattern: `
|
|
163
|
-
{ pattern: `
|
|
164
|
-
{ pattern: `
|
|
144
|
+
{ pattern: `border-(${colors})-600` },
|
|
145
|
+
{ pattern: `border-(${colors})-700`, variants: ["hover", "focus"] },
|
|
146
|
+
{ pattern: `border-(${colors})-800`, variants: ["active"] },
|
|
147
|
+
{ pattern: `border-(${colors})-300`, variants: ["disabled"] },
|
|
148
|
+
{ pattern: `bg-(${colors})-600` },
|
|
149
|
+
{ pattern: `bg-(${colors})-700`, variants: ["hover", "focus"] },
|
|
150
|
+
{ pattern: `bg-(${colors})-800`, variants: ["active"] },
|
|
151
|
+
{ pattern: `bg-(${colors})-300`, variants: ["disabled"] },
|
|
152
|
+
{ pattern: `text-(${colors})-600` },
|
|
153
|
+
{ pattern: `text-(${colors})-700`, variants: ["hover", "focus"] },
|
|
154
|
+
{ pattern: `text-(${colors})-800`, variants: ["active"] },
|
|
155
|
+
{ pattern: `text-(${colors})-300`, variants: ["disabled"] },
|
|
156
|
+
{ pattern: `ring-(${colors})-700`, variants: ["focus"] },
|
|
157
|
+
{ pattern: `ring-(${colors})-800`, variants: ["active"] },
|
|
165
158
|
],
|
|
166
159
|
};
|