agroptima-design-system 0.28.0 → 0.28.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
CHANGED
|
@@ -4,6 +4,21 @@
|
|
|
4
4
|
@use '../../settings/config';
|
|
5
5
|
@use '../../settings/breakpoints';
|
|
6
6
|
|
|
7
|
+
@mixin generate-title-actions($max-actions: 5) {
|
|
8
|
+
@for $actions from 1 through $max-actions {
|
|
9
|
+
.title-actions-#{$actions} {
|
|
10
|
+
width: calc(
|
|
11
|
+
100% -
|
|
12
|
+
#{$actions} *
|
|
13
|
+
config.$icon-size-5x -
|
|
14
|
+
#{($actions - 1) *
|
|
15
|
+
config.$space-7x} -
|
|
16
|
+
config.$space-3x
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
7
22
|
.cards-table-list {
|
|
8
23
|
border-collapse: separate;
|
|
9
24
|
border-spacing: 0 config.$space-2x;
|
|
@@ -11,6 +26,7 @@
|
|
|
11
26
|
|
|
12
27
|
th,
|
|
13
28
|
td {
|
|
29
|
+
vertical-align: top;
|
|
14
30
|
padding: config.$space-2x config.$space-3x;
|
|
15
31
|
padding: config.$space-2x config.$space-3x;
|
|
16
32
|
}
|
|
@@ -24,10 +40,14 @@
|
|
|
24
40
|
|
|
25
41
|
.cell {
|
|
26
42
|
display: flex;
|
|
27
|
-
align-items:
|
|
43
|
+
align-items: flex-start;
|
|
28
44
|
gap: config.$space-2x;
|
|
29
45
|
}
|
|
30
46
|
|
|
47
|
+
.checkbox {
|
|
48
|
+
margin-top: config.$space-1x;
|
|
49
|
+
}
|
|
50
|
+
|
|
31
51
|
.actions > .cell {
|
|
32
52
|
gap: config.$space-7x;
|
|
33
53
|
justify-content: center;
|
|
@@ -158,20 +178,6 @@
|
|
|
158
178
|
margin-top: config.$space-2x;
|
|
159
179
|
}
|
|
160
180
|
|
|
161
|
-
|
|
162
|
-
width: calc(100% - 5 * config.$icon-size-5x - 4 * config.$space-7x - 8px);
|
|
163
|
-
}
|
|
164
|
-
.title-actions-4 {
|
|
165
|
-
width: calc(100% - 4 * config.$icon-size-5x - 3 * config.$space-7x - 8px);
|
|
166
|
-
}
|
|
167
|
-
.title-actions-3 {
|
|
168
|
-
width: calc(100% - 3 * config.$icon-size-5x - 2 * config.$space-7x - 8px);
|
|
169
|
-
}
|
|
170
|
-
.title-actions-2 {
|
|
171
|
-
width: calc(100% - 2 * config.$icon-size-5x - 1 * config.$space-7x - 8px);
|
|
172
|
-
}
|
|
173
|
-
.title-actions-1 {
|
|
174
|
-
width: calc(100% - 1 * config.$icon-size-5x - 8px);
|
|
175
|
-
}
|
|
181
|
+
@include generate-title-actions(5);
|
|
176
182
|
}
|
|
177
183
|
}
|
package/src/atoms/Icon.scss
CHANGED
|
@@ -44,8 +44,8 @@ export const Primary = {
|
|
|
44
44
|
<CardsTableRow>
|
|
45
45
|
<CardsTableHeader>
|
|
46
46
|
<Checkbox
|
|
47
|
-
label="Select all table rows"
|
|
48
47
|
hideLabel
|
|
48
|
+
label="Select all table rows"
|
|
49
49
|
id="checkbox-select-all"
|
|
50
50
|
indeterminate
|
|
51
51
|
checked
|
|
@@ -65,6 +65,7 @@ export const Primary = {
|
|
|
65
65
|
<CardsTableRow>
|
|
66
66
|
<CardsTableCell titleWithActions={3}>
|
|
67
67
|
<Checkbox
|
|
68
|
+
hideLabel
|
|
68
69
|
accessibilityLabel="Select all table rows"
|
|
69
70
|
id="checkbox-select-all"
|
|
70
71
|
variant="primary"
|
|
@@ -111,6 +112,7 @@ export const Primary = {
|
|
|
111
112
|
<CardsTableRow isDisabled>
|
|
112
113
|
<CardsTableCell titleWithActions={2}>
|
|
113
114
|
<Checkbox
|
|
115
|
+
hideLabel
|
|
114
116
|
accessibilityLabel="Select all table rows"
|
|
115
117
|
id="checkbox-select-all"
|
|
116
118
|
variant="primary"
|
|
@@ -151,6 +153,7 @@ export const Primary = {
|
|
|
151
153
|
<CardsTableRow isActive onClick={() => alert('Click')}>
|
|
152
154
|
<CardsTableCell titleWithActions={1}>
|
|
153
155
|
<Checkbox
|
|
156
|
+
hideLabel
|
|
154
157
|
accessibilityLabel="Select all table rows"
|
|
155
158
|
id="checkbox-select-all"
|
|
156
159
|
variant="primary"
|
|
@@ -181,6 +184,7 @@ export const Primary = {
|
|
|
181
184
|
<CardsTableRow>
|
|
182
185
|
<CardsTableCell titleWithActions={5}>
|
|
183
186
|
<Checkbox
|
|
187
|
+
hideLabel
|
|
184
188
|
accessibilityLabel="Select all table rows"
|
|
185
189
|
id="checkbox-select-all"
|
|
186
190
|
variant="primary"
|
|
@@ -240,6 +244,7 @@ export const Primary = {
|
|
|
240
244
|
<CardsTableRow>
|
|
241
245
|
<CardsTableCell titleWithActions={5}>
|
|
242
246
|
<Checkbox
|
|
247
|
+
hideLabel
|
|
243
248
|
accessibilityLabel="Select all table rows"
|
|
244
249
|
id="checkbox-select-all"
|
|
245
250
|
variant="primary"
|
|
@@ -320,8 +325,8 @@ export const MultipleBadges = {
|
|
|
320
325
|
<CardsTableRow>
|
|
321
326
|
<CardsTableHeader>
|
|
322
327
|
<Checkbox
|
|
323
|
-
label="Select all table rows"
|
|
324
328
|
hideLabel
|
|
329
|
+
label="Select all table rows"
|
|
325
330
|
id="checkbox-select-all"
|
|
326
331
|
indeterminate
|
|
327
332
|
checked
|
|
@@ -342,10 +347,10 @@ export const MultipleBadges = {
|
|
|
342
347
|
<CardsTableRow>
|
|
343
348
|
<CardsTableCell titleWithActions={3}>
|
|
344
349
|
<Checkbox
|
|
350
|
+
hideLabel
|
|
345
351
|
accessibilityLabel="Select"
|
|
346
352
|
id="checkbox-select-all"
|
|
347
353
|
variant="primary"
|
|
348
|
-
hideLabel
|
|
349
354
|
/>
|
|
350
355
|
<span>Zone of the Enders: The 2nd Runner</span>
|
|
351
356
|
<Badge
|