@mantine/carousel 7.6.0 → 7.6.2
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 +6 -6
- package/styles.css +168 -1
- package/styles.layer.css +169 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine/carousel",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.2",
|
|
4
4
|
"description": "Embla based carousel",
|
|
5
5
|
"homepage": "https://mantine.dev/x/carousel/",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,15 +44,15 @@
|
|
|
44
44
|
"directory": "packages/@mantine/carousel"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@mantine/core": "7.6.
|
|
48
|
-
"@mantine/hooks": "7.6.
|
|
47
|
+
"@mantine/core": "7.6.2",
|
|
48
|
+
"@mantine/hooks": "7.6.2",
|
|
49
49
|
"embla-carousel-react": ">=7.0.0",
|
|
50
50
|
"react": "^18.2.0",
|
|
51
51
|
"react-dom": "^18.2.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@mantine-tests/core": "1.0
|
|
55
|
-
"@mantine/core": "7.6.
|
|
56
|
-
"@mantine/hooks": "7.6.
|
|
54
|
+
"@mantine-tests/core": "1.1.0",
|
|
55
|
+
"@mantine/core": "7.6.2",
|
|
56
|
+
"@mantine/hooks": "7.6.2"
|
|
57
57
|
}
|
|
58
58
|
}
|
package/styles.css
CHANGED
|
@@ -1 +1,168 @@
|
|
|
1
|
-
.m-17884d0f
|
|
1
|
+
.m-17884d0f {
|
|
2
|
+
--carousel-height: auto;
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.m-a2dae653 {
|
|
7
|
+
height: var(--carousel-height);
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.m-fcd81474 {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: row;
|
|
14
|
+
height: var(--carousel-height);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:where([data-include-gap-in-size]) .m-fcd81474:where([data-orientation='vertical']) {
|
|
18
|
+
margin-bottom: calc(var(--carousel-slide-gap) * -1);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:where([data-include-gap-in-size]) .m-fcd81474:where([data-orientation='horizontal']) {
|
|
22
|
+
margin-inline-end: calc(var(--carousel-slide-gap) * -1);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.m-fcd81474:where([data-orientation='vertical']) {
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.m-39bc3463 {
|
|
30
|
+
position: absolute;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
z-index: 1;
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.m-17884d0f:where([data-orientation='vertical']) .m-39bc3463 {
|
|
39
|
+
inset-inline-start: calc(50% - var(--carousel-control-size) / 2);
|
|
40
|
+
top: 0;
|
|
41
|
+
bottom: 0;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
padding: var(--carousel-controls-offset) 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.m-17884d0f:where([data-orientation='horizontal']) .m-39bc3463 {
|
|
47
|
+
inset-inline-start: 0;
|
|
48
|
+
inset-inline-end: 0;
|
|
49
|
+
top: calc(50% - var(--carousel-control-size) / 2);
|
|
50
|
+
flex-direction: row;
|
|
51
|
+
padding: 0 var(--carousel-controls-offset);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.m-64f58e10 {
|
|
55
|
+
display: flex;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
align-items: center;
|
|
58
|
+
min-width: var(--carousel-control-size);
|
|
59
|
+
min-height: var(--carousel-control-size);
|
|
60
|
+
border-radius: var(--carousel-control-size);
|
|
61
|
+
pointer-events: all;
|
|
62
|
+
background-color: var(--mantine-color-white);
|
|
63
|
+
color: var(--mantine-color-black);
|
|
64
|
+
box-shadow: var(--mantine-shadow-md);
|
|
65
|
+
border: calc(0.0625rem * var(--mantine-scale)) solid var(--mantine-color-gray-3);
|
|
66
|
+
transition: opacity 100ms ease;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
:where([data-mantine-color-scheme='light']) .m-64f58e10 {
|
|
70
|
+
opacity: 0.85;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:where([data-mantine-color-scheme='dark']) .m-64f58e10 {
|
|
74
|
+
opacity: 0.65;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@media (hover: hover) {
|
|
78
|
+
|
|
79
|
+
.m-64f58e10:hover {
|
|
80
|
+
opacity: 1;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@media (hover: none) {
|
|
85
|
+
|
|
86
|
+
.m-64f58e10:active {
|
|
87
|
+
opacity: 1;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.m-71ea3ab1 {
|
|
92
|
+
position: absolute;
|
|
93
|
+
display: flex;
|
|
94
|
+
justify-content: center;
|
|
95
|
+
gap: calc(0.5rem * var(--mantine-scale));
|
|
96
|
+
pointer-events: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.m-17884d0f:where([data-orientation='vertical']) .m-71ea3ab1 {
|
|
100
|
+
bottom: 0;
|
|
101
|
+
top: 0;
|
|
102
|
+
inset-inline-end: var(--mantine-spacing-md);
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.m-17884d0f:where([data-orientation='horizontal']) .m-71ea3ab1 {
|
|
107
|
+
bottom: var(--mantine-spacing-md);
|
|
108
|
+
inset-inline-start: 0;
|
|
109
|
+
inset-inline-end: 0;
|
|
110
|
+
flex-direction: row;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.m-eae68602 {
|
|
114
|
+
pointer-events: all;
|
|
115
|
+
border-radius: var(--mantine-radius-xl);
|
|
116
|
+
box-shadow: var(--mantine-shadow-sm);
|
|
117
|
+
opacity: 0.6;
|
|
118
|
+
background-color: var(--mantine-color-white);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@media (hover: hover) {
|
|
122
|
+
|
|
123
|
+
.m-eae68602:hover {
|
|
124
|
+
opacity: 1;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@media (hover: none) {
|
|
129
|
+
|
|
130
|
+
.m-eae68602:active {
|
|
131
|
+
opacity: 1;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.m-eae68602:where([data-active]) {
|
|
136
|
+
opacity: 1;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.m-17884d0f:where([data-orientation='vertical']) .m-eae68602 {
|
|
140
|
+
width: calc(0.3125rem * var(--mantine-scale));
|
|
141
|
+
height: calc(1.5625rem * var(--mantine-scale));
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.m-17884d0f:where([data-orientation='horizontal']) .m-eae68602 {
|
|
145
|
+
width: calc(1.5625rem * var(--mantine-scale));
|
|
146
|
+
height: calc(0.3125rem * var(--mantine-scale));
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.m-d98df724 {
|
|
150
|
+
position: relative;
|
|
151
|
+
flex: 0 0 var(--carousel-slide-size);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.m-17884d0f:where([data-include-gap-in-size]) .m-d98df724:where([data-orientation='vertical']) {
|
|
155
|
+
padding-bottom: var(--carousel-slide-gap);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.m-17884d0f:where([data-include-gap-in-size]) .m-d98df724:where([data-orientation='horizontal']) {
|
|
159
|
+
padding-inline-end: var(--carousel-slide-gap);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.m-17884d0f:where(:not([data-include-gap-in-size])) .m-d98df724:where([data-orientation='vertical']) {
|
|
163
|
+
margin-bottom: var(--carousel-slide-gap);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.m-17884d0f:where(:not([data-include-gap-in-size])) .m-d98df724:where([data-orientation='horizontal']) {
|
|
167
|
+
margin-inline-end: var(--carousel-slide-gap);
|
|
168
|
+
}
|
package/styles.layer.css
CHANGED
|
@@ -1 +1,169 @@
|
|
|
1
|
-
@layer mantine {.m-17884d0f
|
|
1
|
+
@layer mantine {.m-17884d0f {
|
|
2
|
+
--carousel-height: auto;
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.m-a2dae653 {
|
|
7
|
+
height: var(--carousel-height);
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.m-fcd81474 {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: row;
|
|
14
|
+
height: var(--carousel-height);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:where([data-include-gap-in-size]) .m-fcd81474:where([data-orientation='vertical']) {
|
|
18
|
+
margin-bottom: calc(var(--carousel-slide-gap) * -1);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:where([data-include-gap-in-size]) .m-fcd81474:where([data-orientation='horizontal']) {
|
|
22
|
+
margin-inline-end: calc(var(--carousel-slide-gap) * -1);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.m-fcd81474:where([data-orientation='vertical']) {
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.m-39bc3463 {
|
|
30
|
+
position: absolute;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
z-index: 1;
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.m-17884d0f:where([data-orientation='vertical']) .m-39bc3463 {
|
|
39
|
+
inset-inline-start: calc(50% - var(--carousel-control-size) / 2);
|
|
40
|
+
top: 0;
|
|
41
|
+
bottom: 0;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
padding: var(--carousel-controls-offset) 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.m-17884d0f:where([data-orientation='horizontal']) .m-39bc3463 {
|
|
47
|
+
inset-inline-start: 0;
|
|
48
|
+
inset-inline-end: 0;
|
|
49
|
+
top: calc(50% - var(--carousel-control-size) / 2);
|
|
50
|
+
flex-direction: row;
|
|
51
|
+
padding: 0 var(--carousel-controls-offset);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.m-64f58e10 {
|
|
55
|
+
display: flex;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
align-items: center;
|
|
58
|
+
min-width: var(--carousel-control-size);
|
|
59
|
+
min-height: var(--carousel-control-size);
|
|
60
|
+
border-radius: var(--carousel-control-size);
|
|
61
|
+
pointer-events: all;
|
|
62
|
+
background-color: var(--mantine-color-white);
|
|
63
|
+
color: var(--mantine-color-black);
|
|
64
|
+
box-shadow: var(--mantine-shadow-md);
|
|
65
|
+
border: calc(0.0625rem * var(--mantine-scale)) solid var(--mantine-color-gray-3);
|
|
66
|
+
transition: opacity 100ms ease;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
:where([data-mantine-color-scheme='light']) .m-64f58e10 {
|
|
70
|
+
opacity: 0.85;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:where([data-mantine-color-scheme='dark']) .m-64f58e10 {
|
|
74
|
+
opacity: 0.65;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@media (hover: hover) {
|
|
78
|
+
|
|
79
|
+
.m-64f58e10:hover {
|
|
80
|
+
opacity: 1;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@media (hover: none) {
|
|
85
|
+
|
|
86
|
+
.m-64f58e10:active {
|
|
87
|
+
opacity: 1;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.m-71ea3ab1 {
|
|
92
|
+
position: absolute;
|
|
93
|
+
display: flex;
|
|
94
|
+
justify-content: center;
|
|
95
|
+
gap: calc(0.5rem * var(--mantine-scale));
|
|
96
|
+
pointer-events: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.m-17884d0f:where([data-orientation='vertical']) .m-71ea3ab1 {
|
|
100
|
+
bottom: 0;
|
|
101
|
+
top: 0;
|
|
102
|
+
inset-inline-end: var(--mantine-spacing-md);
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.m-17884d0f:where([data-orientation='horizontal']) .m-71ea3ab1 {
|
|
107
|
+
bottom: var(--mantine-spacing-md);
|
|
108
|
+
inset-inline-start: 0;
|
|
109
|
+
inset-inline-end: 0;
|
|
110
|
+
flex-direction: row;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.m-eae68602 {
|
|
114
|
+
pointer-events: all;
|
|
115
|
+
border-radius: var(--mantine-radius-xl);
|
|
116
|
+
box-shadow: var(--mantine-shadow-sm);
|
|
117
|
+
opacity: 0.6;
|
|
118
|
+
background-color: var(--mantine-color-white);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@media (hover: hover) {
|
|
122
|
+
|
|
123
|
+
.m-eae68602:hover {
|
|
124
|
+
opacity: 1;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@media (hover: none) {
|
|
129
|
+
|
|
130
|
+
.m-eae68602:active {
|
|
131
|
+
opacity: 1;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.m-eae68602:where([data-active]) {
|
|
136
|
+
opacity: 1;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.m-17884d0f:where([data-orientation='vertical']) .m-eae68602 {
|
|
140
|
+
width: calc(0.3125rem * var(--mantine-scale));
|
|
141
|
+
height: calc(1.5625rem * var(--mantine-scale));
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.m-17884d0f:where([data-orientation='horizontal']) .m-eae68602 {
|
|
145
|
+
width: calc(1.5625rem * var(--mantine-scale));
|
|
146
|
+
height: calc(0.3125rem * var(--mantine-scale));
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.m-d98df724 {
|
|
150
|
+
position: relative;
|
|
151
|
+
flex: 0 0 var(--carousel-slide-size);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.m-17884d0f:where([data-include-gap-in-size]) .m-d98df724:where([data-orientation='vertical']) {
|
|
155
|
+
padding-bottom: var(--carousel-slide-gap);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.m-17884d0f:where([data-include-gap-in-size]) .m-d98df724:where([data-orientation='horizontal']) {
|
|
159
|
+
padding-inline-end: var(--carousel-slide-gap);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.m-17884d0f:where(:not([data-include-gap-in-size])) .m-d98df724:where([data-orientation='vertical']) {
|
|
163
|
+
margin-bottom: var(--carousel-slide-gap);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.m-17884d0f:where(:not([data-include-gap-in-size])) .m-d98df724:where([data-orientation='horizontal']) {
|
|
167
|
+
margin-inline-end: var(--carousel-slide-gap);
|
|
168
|
+
}
|
|
169
|
+
}
|