@lucca-front/scss 17.4.1 → 17.4.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucca-front/scss",
|
|
3
|
-
"version": "17.4.
|
|
3
|
+
"version": "17.4.2",
|
|
4
4
|
"description": "A Sass framework for Lucca products.",
|
|
5
5
|
"main": "src/main.scss",
|
|
6
6
|
"scripts": {},
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"normalize.css": "^8.0.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@lucca-front/icons": "v17.4.
|
|
26
|
+
"@lucca-front/icons": "v17.4.2"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -3,216 +3,232 @@
|
|
|
3
3
|
@use '@lucca-front/scss/src/components/button/exports' as button;
|
|
4
4
|
|
|
5
5
|
@mixin component($atRoot: 'without: rule') {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
6
|
+
position: relative;
|
|
7
|
+
display: table;
|
|
8
|
+
width: 100%;
|
|
9
|
+
padding: 0 var(--components-indexTable-padding) calc(var(--components-indexTable-padding) - var(--components-indexTable-row-spacing));
|
|
10
|
+
border-collapse: separate;
|
|
11
|
+
border-spacing: 0 var(--components-indexTable-row-spacing);
|
|
12
|
+
border-radius: var(--components-indexTable-border-radius);
|
|
13
|
+
background-color: var(--components-indexTable-background-color);
|
|
14
|
+
color: var(--palettes-neutral-800);
|
|
15
|
+
|
|
16
|
+
@at-root ($atRoot) {
|
|
17
|
+
.indexTable-head {
|
|
18
|
+
display: table-header-group;
|
|
19
|
+
vertical-align: bottom;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.indexTable-body {
|
|
23
|
+
display: table-row-group;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
//There might be more than one footer
|
|
27
|
+
.indexTable-foot {
|
|
28
|
+
display: table-row-group;
|
|
29
|
+
&:is(tfoot) {
|
|
30
|
+
display: table-footer-group;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.indexTable-head-row,
|
|
35
|
+
.indexTable-body-row,
|
|
36
|
+
.indexTable-foot-row {
|
|
37
|
+
display: table-row;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.indexTable-body-row {
|
|
41
|
+
border-radius: var(--commons-borderRadius-L);
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.indexTable-head-row-transparentCell,
|
|
46
|
+
.indexTable-body-row-transparentCell,
|
|
47
|
+
.indexTable-head-row-cell,
|
|
48
|
+
.indexTable-body-row-cell,
|
|
49
|
+
.indexTable-foot-row-cell {
|
|
50
|
+
display: table-cell;
|
|
51
|
+
text-align: left;
|
|
52
|
+
font-weight: 400;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.indexTable-head-row-transparentCell,
|
|
56
|
+
.indexTable-body-row-transparentCell {
|
|
57
|
+
vertical-align: middle;
|
|
58
|
+
padding: var(--pr-t-spacings-50) 0;
|
|
59
|
+
&:not(:first-child) {
|
|
60
|
+
padding-right: var(--components-indexTable-cell-padding);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.indexTable-head-row-cell,
|
|
65
|
+
.indexTable-body-row-cell,
|
|
66
|
+
.indexTable-foot-row-cell {
|
|
67
|
+
vertical-align: top;
|
|
68
|
+
|
|
69
|
+
// Because outlined cell apparence can be cropped we need a bigger padding-right. To compensate we also need a smaller padding-left
|
|
70
|
+
padding: var(--components-indexTable-cell-padding);
|
|
71
|
+
padding-left: var(--components-indexTable-cell-padding-left, var(--components-indexTable-cell-padding));
|
|
72
|
+
padding-right: var(--components-indexTable-cell-padding-right, var(--components-indexTable-cell-padding));
|
|
73
|
+
|
|
74
|
+
--components-indexTable-cell-padding-right: calc(var(--components-indexTable-cell-padding) + 4px);
|
|
75
|
+
~ .indexTable-head-row-cell,
|
|
76
|
+
~ .indexTable-body-row-cell,
|
|
77
|
+
~ .indexTable-foot-row-cell {
|
|
78
|
+
--components-indexTable-cell-padding-left: calc(var(--components-indexTable-cell-padding) - 4px);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:last-child {
|
|
82
|
+
--components-indexTable-cell-padding-right: var(--components-indexTable-cell-padding);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.indexTable-head-row-cell {
|
|
87
|
+
color: var(--palettes-neutral-700);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.indexTable-foot-row-cell {
|
|
91
|
+
padding-top: var(--pr-t-spacings-50);
|
|
92
|
+
padding-bottom: var(--pr-t-spacings-50);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.indexTable-body-row-cell {
|
|
96
|
+
position: relative;
|
|
97
|
+
z-index: var(--components-indexTable-cell-z-index, 1);
|
|
98
|
+
border-radius: var(--components-table-cardList-cell-border-radius);
|
|
99
|
+
border: var(--commons-divider-width) 0 solid transparent;
|
|
100
|
+
|
|
101
|
+
// Apparence of the first cell with a card apparence.
|
|
102
|
+
// We do this because there migh be one or two cells before without background and containing a checkbox
|
|
103
|
+
--components-indexTable-cell-inset-x-left: var(--components-indexTable-cell-inset-x);
|
|
104
|
+
--components-indexTable-cell-border-radius-left: var(--components-indexTable-cell-border-radius);
|
|
105
|
+
--components-indexTable-cell-border-radius-right: 0;
|
|
106
|
+
--components-indexTable-outline-border-radius-left: var(--components-indexTable-outline-border-radius);
|
|
107
|
+
--components-indexTable-outline-border-radius-right: 0;
|
|
108
|
+
--components-indexTable-outline-border-width-left: var(--components-indexTable-outline-border-width);
|
|
109
|
+
--components-indexTable-outline-border-width-right: 0;
|
|
110
|
+
|
|
111
|
+
// Apparence of the nexts cells
|
|
112
|
+
~ .indexTable-body-row-cell {
|
|
113
|
+
--components-indexTable-cell-inset-x-left: 0px;
|
|
114
|
+
--components-indexTable-shadow-mask: calc(var(--pr-t-spacings-100) * -1) 0px 0px 0px
|
|
115
|
+
var(--components-indexTable-cell-background-color, var(--components-indexTable-cell-background-color-default));
|
|
116
|
+
--components-indexTable-cell-border-radius-left: 0;
|
|
117
|
+
--components-indexTable-outline-border-radius-left: 0;
|
|
118
|
+
--components-indexTable-outline-border-width-left: 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Apparence of the last cell with a card apparence
|
|
122
|
+
&:last-child {
|
|
123
|
+
--components-indexTable-cell-inset-x-right: var(--components-indexTable-cell-inset-x);
|
|
124
|
+
--components-indexTable-cell-border-radius-right: var(--components-indexTable-cell-border-radius);
|
|
125
|
+
--components-indexTable-outline-border-radius-right: var(--components-indexTable-outline-border-radius);
|
|
126
|
+
--components-indexTable-outline-border-width-right: var(--components-indexTable-outline-border-width);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&::before,
|
|
130
|
+
&::after {
|
|
131
|
+
content: '';
|
|
132
|
+
position: absolute;
|
|
133
|
+
z-index: -1;
|
|
134
|
+
transition-duration: var(--commons-animations-durations-fast);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// The "card" apparence is put on a ::before pseudo element
|
|
138
|
+
&::before {
|
|
139
|
+
inset: var(--components-indexTable-cell-inset-y, 0) var(--components-indexTable-cell-inset-x-right, 0)
|
|
140
|
+
var(--components-indexTable-cell-inset-y, 0) var(--components-indexTable-cell-inset-x-left, 0);
|
|
141
|
+
border-radius: var(--components-indexTable-cell-border-radius-left) var(--components-indexTable-cell-border-radius-right)
|
|
142
|
+
var(--components-indexTable-cell-border-radius-right) var(--components-indexTable-cell-border-radius-left);
|
|
143
|
+
background-color: var(--components-indexTable-cell-background-color, var(--components-indexTable-cell-background-color-default));
|
|
144
|
+
// shadow-mask : since the card apparence is put on every cell (du to a Safari bug), we need to hide the left part of the box shadow for everycell exept the first one.
|
|
145
|
+
// We do this with a rectangular white box-shadow above it.
|
|
146
|
+
box-shadow: var(--components-indexTable-shadow-mask, 0 0 0 0),
|
|
147
|
+
var(--components-indexTable-cell-shadow, var(--components-indexTable-cell-shadow-default));
|
|
148
|
+
transition-property: inset, box-shadow, background-color;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// The focus outline, when needed
|
|
152
|
+
&::after {
|
|
153
|
+
inset: calc(var(--components-indexTable-cell-inset-y, 0px) - var(--components-indexTable-outline-offset))
|
|
154
|
+
calc(var(--components-indexTable-cell-inset-x-right, 0px) - var(--components-indexTable-outline-offset))
|
|
155
|
+
calc(var(--components-indexTable-cell-inset-y, 0px) - var(--components-indexTable-outline-offset))
|
|
156
|
+
calc(var(--components-indexTable-cell-inset-x-left, 0px) - var(--components-indexTable-outline-offset));
|
|
157
|
+
border-radius: var(--components-indexTable-outline-border-radius-left) var(--components-indexTable-outline-border-radius-right)
|
|
158
|
+
var(--components-indexTable-outline-border-radius-right) var(--components-indexTable-outline-border-radius-left);
|
|
159
|
+
border-width: var(--components-indexTable-outline-border-width) var(--components-indexTable-outline-border-width-right)
|
|
160
|
+
var(--components-indexTable-outline-border-width) var(--components-indexTable-outline-border-width-left);
|
|
161
|
+
border-style: solid;
|
|
162
|
+
border-color: var(--components-indexTable-outline-color);
|
|
163
|
+
opacity: var(--components-indexTable-outline-opacity, 0);
|
|
164
|
+
transition-property: inset;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// No shadow if the row contain an emptyState
|
|
168
|
+
&:has(.emptyState) {
|
|
169
|
+
--components-indexTable-cell-shadow: none;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.indexTable-body-row-cell-checkbox,
|
|
174
|
+
.indexTable-head-row-cell-checkbox {
|
|
175
|
+
display: block;
|
|
176
|
+
margin: 2px 0 0 var(--pr-t-spacings-50);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// Hidden element that take focus when the row is focused
|
|
180
|
+
.indexTable-body-row-cell-action {
|
|
181
|
+
@include a11y.mask;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.indexTable-body-row-cellTitle {
|
|
185
|
+
position: relative;
|
|
186
|
+
display: flex;
|
|
187
|
+
align-items: center;
|
|
188
|
+
gap: var(--pr-t-spacings-100);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.indexTable-body-row-cellTitle-button {
|
|
192
|
+
@include button.text;
|
|
193
|
+
@include button.S;
|
|
194
|
+
@include button.onlyIconS;
|
|
195
|
+
position: static;
|
|
196
|
+
.lucca-icon {
|
|
197
|
+
transition: transform var(--commons-animations-durations-fast) ease;
|
|
198
|
+
}
|
|
199
|
+
// Extend button reactive zone to his whole parent
|
|
200
|
+
&::before {
|
|
201
|
+
content: '';
|
|
202
|
+
position: absolute;
|
|
203
|
+
inset: 0;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.indexTable-body-row-cellTitle-title {
|
|
208
|
+
font-weight: 600;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.indexTable-foot-row-cell {
|
|
212
|
+
text-align: right;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// A wrapper is needed for pagination
|
|
216
|
+
.indexTableWrapper {
|
|
217
|
+
@include vars;
|
|
218
|
+
display: flex;
|
|
219
|
+
flex-direction: column;
|
|
220
|
+
padding-bottom: var(--pr-t-spacings-100);
|
|
221
|
+
border-radius: var(--components-indexTable-border-radius);
|
|
222
|
+
background-color: var(--components-indexTable-background-color);
|
|
223
|
+
.indexTable {
|
|
224
|
+
flex-grow: 1;
|
|
225
|
+
padding-bottom: 0;
|
|
226
|
+
}
|
|
227
|
+
.pagination {
|
|
228
|
+
align-self: flex-end;
|
|
229
|
+
padding: var(--pr-t-spacings-50) 0 0 0;
|
|
230
|
+
margin-right: var(--pr-t-spacings-100);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
218
234
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use '@lucca-front/scss/src/commons/utils/reset';
|
|
1
2
|
@use '@lucca-front/icons/src/commons/utils/icon';
|
|
2
3
|
|
|
3
4
|
@mixin component($atRoot: 'without: rule') {
|
|
@@ -50,6 +51,8 @@
|
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
.toasts-item-kill {
|
|
54
|
+
@include reset.button;
|
|
55
|
+
width: auto;
|
|
53
56
|
color: var(--colors-white-color);
|
|
54
57
|
transition-property: opacity;
|
|
55
58
|
transition-duration: var(--commons-animations-durations-fast);
|