@onereach/styles 4.1.0 → 4.1.1-beta.3513.0
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/styles",
|
|
3
|
-
"version": "4.1.0",
|
|
3
|
+
"version": "4.1.1-beta.3513.0",
|
|
4
4
|
"description": "Styles for or-ui-next",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"main": "./main.css",
|
|
@@ -56,6 +56,5 @@
|
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
|
-
}
|
|
60
|
-
"gitHead": "c8058c1bdb3e16f19130a408d3d49768d8f9dd36"
|
|
59
|
+
}
|
|
61
60
|
}
|
package/tailwind/plugins/core.js
CHANGED
|
@@ -9,6 +9,14 @@ const screens = {
|
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
const variants = {
|
|
12
|
+
'children': ['& > *'],
|
|
13
|
+
|
|
14
|
+
'first-child': ['& > *:first-child'],
|
|
15
|
+
'middle-child': ['& > *:not(:first-child, :last-child)'],
|
|
16
|
+
'last-child': ['& > *:last-child'],
|
|
17
|
+
|
|
18
|
+
'links': ['& :any-link'],
|
|
19
|
+
|
|
12
20
|
'checked': ['&[checked]:not([checked="false"])', '&:checked'],
|
|
13
21
|
'selected': ['&[selected]:not([selected="false"])', '&:checked'],
|
|
14
22
|
'activated': ['&[activated]:not([activated="false"])'],
|
|
@@ -49,14 +57,6 @@ const variants = {
|
|
|
49
57
|
'&:not(.interactivity-none):active',
|
|
50
58
|
'&:not(.interactivity-none)[force-state="active"]',
|
|
51
59
|
],
|
|
52
|
-
|
|
53
|
-
'children': ['& > *'],
|
|
54
|
-
|
|
55
|
-
'first-child': ['& > *:first-child'],
|
|
56
|
-
'middle-child': ['& > *:not(:first-child, :last-child)'],
|
|
57
|
-
'last-child': ['& > *:last-child'],
|
|
58
|
-
|
|
59
|
-
'links': ['& :any-link'],
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
module.exports = {
|
|
@@ -4,23 +4,75 @@ const { variants } = require('./core');
|
|
|
4
4
|
module.exports = {
|
|
5
5
|
plugin: plugin(({ addUtilities }) => {
|
|
6
6
|
addUtilities({
|
|
7
|
-
'.interactivity-
|
|
7
|
+
'.interactivity-default': {
|
|
8
8
|
pointerEvents: 'auto',
|
|
9
|
+
userSelect: 'none',
|
|
10
|
+
cursor: 'default',
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
'.interactivity-click': {
|
|
14
|
+
pointerEvents: 'auto',
|
|
15
|
+
userSelect: 'none',
|
|
9
16
|
cursor: 'pointer',
|
|
10
17
|
|
|
11
18
|
[variants['disabled']]: {
|
|
12
|
-
|
|
13
|
-
cursor: 'default',
|
|
19
|
+
userSelect: 'none !important',
|
|
20
|
+
cursor: 'default !important',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
'.interactivity-select': {
|
|
25
|
+
pointerEvents: 'auto',
|
|
26
|
+
userSelect: 'text',
|
|
27
|
+
cursor: 'text',
|
|
28
|
+
|
|
29
|
+
[variants['disabled']]: {
|
|
30
|
+
userSelect: 'none !important',
|
|
31
|
+
cursor: 'default !important',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
'.interactivity-resize-row': {
|
|
36
|
+
pointerEvents: 'auto',
|
|
37
|
+
userSelect: 'none',
|
|
38
|
+
cursor: 'row-resize',
|
|
39
|
+
|
|
40
|
+
[variants['disabled']]: {
|
|
41
|
+
userSelect: 'none !important',
|
|
42
|
+
cursor: 'default !important',
|
|
14
43
|
},
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
'.interactivity-resize-column': {
|
|
47
|
+
pointerEvents: 'auto',
|
|
48
|
+
userSelect: 'none',
|
|
49
|
+
cursor: 'col-resize',
|
|
50
|
+
|
|
51
|
+
[variants['disabled']]: {
|
|
52
|
+
userSelect: 'none !important',
|
|
53
|
+
cursor: 'default !important',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
15
56
|
|
|
57
|
+
'.interactivity-drag': {
|
|
58
|
+
pointerEvents: 'auto',
|
|
16
59
|
userSelect: 'none',
|
|
60
|
+
cursor: 'grab',
|
|
61
|
+
|
|
62
|
+
[variants['disabled']]: {
|
|
63
|
+
userSelect: 'none !important',
|
|
64
|
+
cursor: 'default !important',
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
[variants['active']]: {
|
|
68
|
+
cursor: 'grabbing',
|
|
69
|
+
},
|
|
17
70
|
},
|
|
18
71
|
|
|
19
72
|
'.interactivity-none': {
|
|
20
73
|
pointerEvents: 'none',
|
|
21
|
-
cursor: 'default',
|
|
22
|
-
|
|
23
74
|
userSelect: 'none',
|
|
75
|
+
cursor: 'default',
|
|
24
76
|
},
|
|
25
77
|
});
|
|
26
78
|
}),
|