@mantine/spotlight 7.6.0 → 7.6.1
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 +7 -7
- package/styles.css +156 -1
- package/styles.layer.css +157 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine/spotlight",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.1",
|
|
4
4
|
"description": "Command center components for react and Mantine",
|
|
5
5
|
"homepage": "https://mantine.dev",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,17 +41,17 @@
|
|
|
41
41
|
"directory": "packages/@mantine/spotlight"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@mantine/core": "7.6.
|
|
45
|
-
"@mantine/hooks": "7.6.
|
|
44
|
+
"@mantine/core": "7.6.1",
|
|
45
|
+
"@mantine/hooks": "7.6.1",
|
|
46
46
|
"react": "^18.2.0",
|
|
47
47
|
"react-dom": "^18.2.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@mantine/store": "7.6.
|
|
50
|
+
"@mantine/store": "7.6.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@mantine-tests/core": "1.0
|
|
54
|
-
"@mantine/core": "7.6.
|
|
55
|
-
"@mantine/hooks": "7.6.
|
|
53
|
+
"@mantine-tests/core": "1.1.0",
|
|
54
|
+
"@mantine/core": "7.6.1",
|
|
55
|
+
"@mantine/hooks": "7.6.1"
|
|
56
56
|
}
|
|
57
57
|
}
|
package/styles.css
CHANGED
|
@@ -1 +1,156 @@
|
|
|
1
|
-
.m-d2b315db[data-scrollable]
|
|
1
|
+
.m-d2b315db[data-scrollable] {
|
|
2
|
+
--spotlight-content-height: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.m-3cd250e0 {
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
height: var(--spotlight-content-height, auto);
|
|
8
|
+
max-height: var(--spotlight-max-height);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.m-d2abce9b {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
height: var(--spotlight-content-height, auto);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.m-f366a061 {
|
|
18
|
+
border: 0;
|
|
19
|
+
background-color: transparent;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.m-6e463822 {
|
|
23
|
+
/* Used in child ScrollArea */
|
|
24
|
+
--spotlight-actions-list-padding: calc(0.25rem * var(--mantine-scale));
|
|
25
|
+
|
|
26
|
+
border-top: calc(0.0625rem * var(--mantine-scale)) solid;
|
|
27
|
+
flex: 1;
|
|
28
|
+
padding: var(--spotlight-actions-list-padding);
|
|
29
|
+
max-height: calc(100% - calc(3.125rem * var(--mantine-scale)));
|
|
30
|
+
margin-inline-end: calc(var(--spotlight-actions-list-padding) * -1);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where([data-mantine-color-scheme='light']) .m-6e463822 {
|
|
34
|
+
border-color: var(--mantine-color-gray-2);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:where([data-mantine-color-scheme='dark']) .m-6e463822 {
|
|
38
|
+
border-color: var(--mantine-color-dark-4);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.m-d49bb8ef {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
width: 100%;
|
|
45
|
+
padding: calc(0.4375rem * var(--mantine-scale)) var(--mantine-spacing-md);
|
|
46
|
+
border-radius: var(--mantine-radius-default);
|
|
47
|
+
background-color: transparent;
|
|
48
|
+
color: inherit;
|
|
49
|
+
text-align: left;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:where([dir="rtl"]) .m-d49bb8ef {
|
|
53
|
+
text-align: right;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (hover: hover) {
|
|
57
|
+
:where([data-mantine-color-scheme='light']) .m-d49bb8ef:where(:not([data-selected])):hover {
|
|
58
|
+
background-color: var(--mantine-color-gray-0);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:where([data-mantine-color-scheme='dark']) .m-d49bb8ef:where(:not([data-selected])):hover {
|
|
62
|
+
background-color: var(--mantine-color-dark-6);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@media (hover: none) {
|
|
67
|
+
:where([data-mantine-color-scheme='light']) .m-d49bb8ef:where(:not([data-selected])):active {
|
|
68
|
+
background-color: var(--mantine-color-gray-0);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:where([data-mantine-color-scheme='dark']) .m-d49bb8ef:where(:not([data-selected])):active {
|
|
72
|
+
background-color: var(--mantine-color-dark-6);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.m-d49bb8ef:where([data-selected]) {
|
|
77
|
+
background-color: var(--mantine-primary-color-filled);
|
|
78
|
+
color: var(--mantine-primary-color-contrast, var(--mantine-color-white));
|
|
79
|
+
--action-description-color: var(--mantine-primary-color-contrast, var(--mantine-color-white));
|
|
80
|
+
--action-description-opacity: 0.7;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.m-3d475731 {
|
|
84
|
+
flex: 1;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.m-832642f6 {
|
|
88
|
+
opacity: 1;
|
|
89
|
+
color: inherit;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.m-832642f6:where([data-dimmed]) {
|
|
93
|
+
opacity: var(--action-description-opacity, 1);
|
|
94
|
+
color: var(--action-description-color, var(--mantine-color-dimmed));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.m-832642f6:where([data-position='left']) {
|
|
98
|
+
margin-inline-end: var(--mantine-spacing-md);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.m-832642f6:where([data-position='right']) {
|
|
102
|
+
margin-inline-start: var(--mantine-spacing-md);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.m-832642f6 > svg {
|
|
106
|
+
display: block;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.m-6c2a1345 {
|
|
110
|
+
display: block;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.m-a6d9d78d {
|
|
114
|
+
display: block;
|
|
115
|
+
font-size: var(--mantine-font-size-xs);
|
|
116
|
+
opacity: var(--action-description-opacity, 1);
|
|
117
|
+
color: var(--action-description-color, var(--mantine-color-dimmed));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.m-82f78f74 {
|
|
121
|
+
color: var(--mantine-color-dimmed);
|
|
122
|
+
padding: var(--mantine-spacing-md);
|
|
123
|
+
text-align: center;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.m-ddcaf054 {
|
|
127
|
+
padding: var(--mantine-spacing-xs) calc(var(--mantine-spacing-md) + calc(0.25rem * var(--mantine-scale)));
|
|
128
|
+
border-top: calc(0.0625rem * var(--mantine-scale)) solid;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
:where([data-mantine-color-scheme='light']) .m-ddcaf054 {
|
|
132
|
+
border-color: var(--mantine-color-gray-2);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
:where([data-mantine-color-scheme='dark']) .m-ddcaf054 {
|
|
136
|
+
border-color: var(--mantine-color-dark-4);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.m-5a3e5f7b {
|
|
140
|
+
display: flex;
|
|
141
|
+
flex-direction: column;
|
|
142
|
+
margin-top: var(--mantine-spacing-md);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.m-5a3e5f7b::before {
|
|
146
|
+
content: var(--spotlight-label);
|
|
147
|
+
text-transform: uppercase;
|
|
148
|
+
font-size: var(--mantine-font-size-xs);
|
|
149
|
+
font-weight: 700;
|
|
150
|
+
color: var(--mantine-color-dimmed);
|
|
151
|
+
padding-inline-start: var(--mantine-spacing-md);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.m-5a3e5f7b:empty {
|
|
155
|
+
display: none;
|
|
156
|
+
}
|
package/styles.layer.css
CHANGED
|
@@ -1 +1,157 @@
|
|
|
1
|
-
@layer mantine {.m-d2b315db[data-scrollable]
|
|
1
|
+
@layer mantine {.m-d2b315db[data-scrollable] {
|
|
2
|
+
--spotlight-content-height: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.m-3cd250e0 {
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
height: var(--spotlight-content-height, auto);
|
|
8
|
+
max-height: var(--spotlight-max-height);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.m-d2abce9b {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
height: var(--spotlight-content-height, auto);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.m-f366a061 {
|
|
18
|
+
border: 0;
|
|
19
|
+
background-color: transparent;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.m-6e463822 {
|
|
23
|
+
/* Used in child ScrollArea */
|
|
24
|
+
--spotlight-actions-list-padding: calc(0.25rem * var(--mantine-scale));
|
|
25
|
+
|
|
26
|
+
border-top: calc(0.0625rem * var(--mantine-scale)) solid;
|
|
27
|
+
flex: 1;
|
|
28
|
+
padding: var(--spotlight-actions-list-padding);
|
|
29
|
+
max-height: calc(100% - calc(3.125rem * var(--mantine-scale)));
|
|
30
|
+
margin-inline-end: calc(var(--spotlight-actions-list-padding) * -1);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where([data-mantine-color-scheme='light']) .m-6e463822 {
|
|
34
|
+
border-color: var(--mantine-color-gray-2);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:where([data-mantine-color-scheme='dark']) .m-6e463822 {
|
|
38
|
+
border-color: var(--mantine-color-dark-4);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.m-d49bb8ef {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
width: 100%;
|
|
45
|
+
padding: calc(0.4375rem * var(--mantine-scale)) var(--mantine-spacing-md);
|
|
46
|
+
border-radius: var(--mantine-radius-default);
|
|
47
|
+
background-color: transparent;
|
|
48
|
+
color: inherit;
|
|
49
|
+
text-align: left;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:where([dir="rtl"]) .m-d49bb8ef {
|
|
53
|
+
text-align: right;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (hover: hover) {
|
|
57
|
+
:where([data-mantine-color-scheme='light']) .m-d49bb8ef:where(:not([data-selected])):hover {
|
|
58
|
+
background-color: var(--mantine-color-gray-0);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:where([data-mantine-color-scheme='dark']) .m-d49bb8ef:where(:not([data-selected])):hover {
|
|
62
|
+
background-color: var(--mantine-color-dark-6);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@media (hover: none) {
|
|
67
|
+
:where([data-mantine-color-scheme='light']) .m-d49bb8ef:where(:not([data-selected])):active {
|
|
68
|
+
background-color: var(--mantine-color-gray-0);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:where([data-mantine-color-scheme='dark']) .m-d49bb8ef:where(:not([data-selected])):active {
|
|
72
|
+
background-color: var(--mantine-color-dark-6);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.m-d49bb8ef:where([data-selected]) {
|
|
77
|
+
background-color: var(--mantine-primary-color-filled);
|
|
78
|
+
color: var(--mantine-primary-color-contrast, var(--mantine-color-white));
|
|
79
|
+
--action-description-color: var(--mantine-primary-color-contrast, var(--mantine-color-white));
|
|
80
|
+
--action-description-opacity: 0.7;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.m-3d475731 {
|
|
84
|
+
flex: 1;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.m-832642f6 {
|
|
88
|
+
opacity: 1;
|
|
89
|
+
color: inherit;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.m-832642f6:where([data-dimmed]) {
|
|
93
|
+
opacity: var(--action-description-opacity, 1);
|
|
94
|
+
color: var(--action-description-color, var(--mantine-color-dimmed));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.m-832642f6:where([data-position='left']) {
|
|
98
|
+
margin-inline-end: var(--mantine-spacing-md);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.m-832642f6:where([data-position='right']) {
|
|
102
|
+
margin-inline-start: var(--mantine-spacing-md);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.m-832642f6 > svg {
|
|
106
|
+
display: block;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.m-6c2a1345 {
|
|
110
|
+
display: block;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.m-a6d9d78d {
|
|
114
|
+
display: block;
|
|
115
|
+
font-size: var(--mantine-font-size-xs);
|
|
116
|
+
opacity: var(--action-description-opacity, 1);
|
|
117
|
+
color: var(--action-description-color, var(--mantine-color-dimmed));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.m-82f78f74 {
|
|
121
|
+
color: var(--mantine-color-dimmed);
|
|
122
|
+
padding: var(--mantine-spacing-md);
|
|
123
|
+
text-align: center;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.m-ddcaf054 {
|
|
127
|
+
padding: var(--mantine-spacing-xs) calc(var(--mantine-spacing-md) + calc(0.25rem * var(--mantine-scale)));
|
|
128
|
+
border-top: calc(0.0625rem * var(--mantine-scale)) solid;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
:where([data-mantine-color-scheme='light']) .m-ddcaf054 {
|
|
132
|
+
border-color: var(--mantine-color-gray-2);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
:where([data-mantine-color-scheme='dark']) .m-ddcaf054 {
|
|
136
|
+
border-color: var(--mantine-color-dark-4);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.m-5a3e5f7b {
|
|
140
|
+
display: flex;
|
|
141
|
+
flex-direction: column;
|
|
142
|
+
margin-top: var(--mantine-spacing-md);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.m-5a3e5f7b::before {
|
|
146
|
+
content: var(--spotlight-label);
|
|
147
|
+
text-transform: uppercase;
|
|
148
|
+
font-size: var(--mantine-font-size-xs);
|
|
149
|
+
font-weight: 700;
|
|
150
|
+
color: var(--mantine-color-dimmed);
|
|
151
|
+
padding-inline-start: var(--mantine-spacing-md);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.m-5a3e5f7b:empty {
|
|
155
|
+
display: none;
|
|
156
|
+
}
|
|
157
|
+
}
|