@ostack.tech/ui 1.3.0-beta.2 → 1.3.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/LICENSE +202 -0
- package/README.md +13 -1
- package/dist/chunks/{en-W4OWqPrv.js → en-MXAz48KY.js} +10 -11
- package/dist/chunks/en-MXAz48KY.js.map +1 -0
- package/dist/locales/en-GB.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/fr-FR.js +9 -10
- package/dist/locales/fr-FR.js.map +1 -1
- package/dist/locales/pt-PT.js +9 -10
- package/dist/locales/pt-PT.js.map +1 -1
- package/dist/ostack-ui.css +157 -89
- package/dist/ostack-ui.js +1972 -1560
- package/dist/ostack-ui.js.map +1 -1
- package/package.json +3 -1
- package/scss/_utils.scss +1 -0
- package/scss/components/ButtonGroup/_ButtonGroup.scss +2 -5
- package/scss/components/Calendar/_Calendar-variables.scss +1 -1
- package/scss/components/Calendar/_Calendar.scss +15 -16
- package/scss/components/ControlAddon/_ControlAddon.scss +3 -5
- package/scss/components/DataTable/_DataTable.scss +7 -2
- package/scss/components/DropdownMenu/_DropdownMenu.scss +1 -1
- package/scss/components/Feedback/_Feedback.scss +2 -0
- package/scss/components/Field/_Field.scss +0 -1
- package/scss/components/HelperText/_HelperText.scss +2 -1
- package/scss/components/Input/_Input.scss +1 -1
- package/scss/components/Label/_Label.scss +1 -0
- package/scss/components/Link/_Link.scss +1 -1
- package/scss/components/Pagination/_Pagination-variables.scss +89 -0
- package/scss/components/Pagination/_Pagination.scss +135 -0
- package/scss/components/Root/_Root.scss +1 -1
- package/scss/components/Select/_Select-variables.scss +1 -1
- package/scss/components/Stack/_Stack.scss +1 -1
- package/scss/components/Table/_Table.scss +23 -9
- package/scss/components/Tabs/_Tabs-variables.scss +1 -1
- package/scss/components/Tabs/_Tabs.scss +5 -4
- package/scss/index.scss +1 -0
- package/scss/scss/helpers/_margin-utils.scss +13 -11
- package/scss/scss/helpers/_padding-utils.scss +13 -11
- package/scss/scss/helpers/_sizing-utils.scss +19 -17
- package/scss/scss/helpers/_text-utils.scss +19 -17
- package/scss/scss/helpers/_visually-hidden.scss +1 -1
- package/scss/scss/placeholders/button/_button-variables.scss +3 -0
- package/scss/scss/placeholders/button/_button.scss +4 -3
- package/scss/scss/placeholders/menu/_menu-variables.scss +4 -1
- package/scss/scss/placeholders/menu/_menu.scss +4 -0
- package/scss/scss/utils/_button-reset.scss +1 -1
- package/types/components/DataTable/DataTablePagination.d.ts +7 -16
- package/types/components/DataTable/PagedDataTablePagination.d.ts +5 -5
- package/types/components/DataTable/sanitizeProps.d.ts +0 -2
- package/types/components/Form/FormError.d.ts +1 -1
- package/types/components/Keybinds/KeyPress.d.ts +3 -3
- package/types/components/Keybinds/Keybind.d.ts +2 -2
- package/types/components/Keybinds/Keybinds.d.ts +1 -1
- package/types/components/Pagination/Pagination.d.ts +93 -0
- package/types/components/Pagination/index.d.ts +1 -0
- package/types/components/Pagination/paginationItems.d.ts +7 -0
- package/types/components/Printer/Printer.d.ts +1 -1
- package/types/components/Printer/PrinterContentContext.d.ts +4 -16
- package/types/components/Printer/PrinterContext.d.ts +1 -2
- package/types/components/Printer/index.d.ts +1 -1
- package/types/components/Printer/usePrintClassNames.d.ts +6 -2
- package/types/components/Table/TableContext.d.ts +2 -0
- package/types/components/Table/columnUtils.d.ts +4 -0
- package/types/index.d.ts +2 -0
- package/types/providers/LocalizationProvider/LocalizationObject.d.ts +3 -1
- package/types/utils/sanitizeProps.d.ts +2 -0
- package/types/utils/useIntersectionObserver.d.ts +6 -2
- package/types/utils/useResizeObserver.d.ts +6 -0
- package/dist/chunks/en-W4OWqPrv.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ostack.tech/ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Accessible React component library.",
|
|
5
5
|
"homepage": "https://ui.ostack.tech/",
|
|
6
|
+
"license": "Apache-2.0",
|
|
6
7
|
"author": {
|
|
7
8
|
"name": "Opensoft",
|
|
8
9
|
"url": "https://opensoft.pt/en/"
|
|
@@ -43,6 +44,7 @@
|
|
|
43
44
|
"./package.json": "./package.json"
|
|
44
45
|
},
|
|
45
46
|
"scripts": {
|
|
47
|
+
"prepack": "cpy ../../LICENSE ./",
|
|
46
48
|
"build": "tsc -b && vite build && npm run copy:scss",
|
|
47
49
|
"copy:scss": "cpy 'src/**/*.scss' '!src/**/*.stories.scss' scss/",
|
|
48
50
|
"test": "vitest --run"
|
package/scss/_utils.scss
CHANGED
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
@forward "components/Link/Link-variables";
|
|
51
51
|
@forward "components/Mark/Mark-variables";
|
|
52
52
|
@forward "components/Overlay/Overlay-variables";
|
|
53
|
+
@forward "components/Pagination/Pagination-variables";
|
|
53
54
|
@forward "components/RadioGroup/Radio-variables";
|
|
54
55
|
@forward "components/Root/Root-variables";
|
|
55
56
|
@forward "components/Select/Select-variables";
|
|
@@ -6,14 +6,11 @@
|
|
|
6
6
|
@use "../../scss/utils/spacing" as *;
|
|
7
7
|
|
|
8
8
|
.#{$prefix}button-group {
|
|
9
|
-
$button: ".#{$prefix}button";
|
|
10
|
-
$icon-button: ".#{$prefix}icon-button";
|
|
11
|
-
|
|
12
9
|
position: relative;
|
|
13
10
|
display: inline-flex;
|
|
14
11
|
|
|
15
|
-
>
|
|
16
|
-
>
|
|
12
|
+
> .#{$prefix}button,
|
|
13
|
+
> .#{$prefix}icon-button {
|
|
17
14
|
position: relative;
|
|
18
15
|
flex: 1 1 auto;
|
|
19
16
|
|
|
@@ -36,7 +36,7 @@ $calendar-header-button-hover-background-color: rgba(0, 0, 0, 0.1) !default;
|
|
|
36
36
|
$calendar-header-button-active-background-color: rgba(0, 0, 0, 0.2) !default;
|
|
37
37
|
|
|
38
38
|
// Select
|
|
39
|
-
$calendar-select-padding-x: spacing(2
|
|
39
|
+
$calendar-select-padding-x: spacing(2) !default;
|
|
40
40
|
|
|
41
41
|
// Select arrow
|
|
42
42
|
$calendar-select-arrow-color: rgba(255, 255, 255, 0.8) !default;
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
background-color: $calendar-header-button-background-color;
|
|
85
85
|
outline-color: $calendar-header-button-focus-outline-color;
|
|
86
86
|
|
|
87
|
-
&:is(:hover, :focus):not(:active
|
|
87
|
+
&:is(:hover, :focus):not(:active, :disabled) {
|
|
88
88
|
background-color: $calendar-header-button-hover-background-color !important;
|
|
89
89
|
}
|
|
90
90
|
&:active:not(:disabled) {
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
&[data-focused]:not([data-disabled]) {
|
|
112
112
|
box-shadow: 0 0 0 2px $calendar-header-button-focus-outline-color;
|
|
113
113
|
}
|
|
114
|
-
&:is(:hover, [data-focused]):not([data-disabled]
|
|
114
|
+
&:is(:hover, [data-focused]):not([data-disabled], [data-state="open"]) {
|
|
115
115
|
background-color: $calendar-header-button-hover-background-color !important;
|
|
116
116
|
}
|
|
117
117
|
&[data-state="open"] {
|
|
@@ -184,13 +184,12 @@
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
&:not(&--outside
|
|
187
|
+
&:not(&--outside, &--selected:not(&--range-middle), &--disabled)
|
|
188
188
|
&-inner:is(button):is(:hover, :focus) {
|
|
189
189
|
background-color: $calendar-day-inner-hover-background-color;
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
&:not(&--outside
|
|
193
|
-
&-inner:is(button):active {
|
|
192
|
+
&:not(&--outside, &--selected:not(&--range-middle), &--disabled) &-inner:is(button):active {
|
|
194
193
|
background-color: $calendar-day-inner-active-background-color;
|
|
195
194
|
}
|
|
196
195
|
|
|
@@ -203,7 +202,7 @@
|
|
|
203
202
|
opacity: $calendar-day-inner-disabled-opacity;
|
|
204
203
|
}
|
|
205
204
|
|
|
206
|
-
&--selected:not(&--outside
|
|
205
|
+
&--selected:not(&--outside, &--range-middle) &-inner {
|
|
207
206
|
background-color: $calendar-day-inner-selected-background-color;
|
|
208
207
|
color: $calendar-day-inner-selected-color;
|
|
209
208
|
|
|
@@ -217,7 +216,7 @@
|
|
|
217
216
|
}
|
|
218
217
|
}
|
|
219
218
|
|
|
220
|
-
&--today:not(&--outside
|
|
219
|
+
&--today:not(&--outside, &--selected:not(&--range-middle)) &-inner:not(:focus-visible) {
|
|
221
220
|
border: $calendar-day-inner-today-border-width solid $calendar-day-inner-today-border-color;
|
|
222
221
|
}
|
|
223
222
|
|
|
@@ -263,11 +262,11 @@
|
|
|
263
262
|
background-color: $calendar-range-background-color;
|
|
264
263
|
}
|
|
265
264
|
|
|
266
|
-
&--range-start:not(&--range-end
|
|
265
|
+
&--range-start:not(&--range-end, &--outside) &-inner::before {
|
|
267
266
|
left: calc($calendar-day-inner-size / 2);
|
|
268
267
|
}
|
|
269
268
|
|
|
270
|
-
&--range-end:not(&--range-start
|
|
269
|
+
&--range-end:not(&--range-start, &--outside) &-inner::before {
|
|
271
270
|
right: calc($calendar-day-inner-size / 2);
|
|
272
271
|
}
|
|
273
272
|
|
|
@@ -293,29 +292,29 @@
|
|
|
293
292
|
border-image-slice: $calendar-range-focus-border-image-slice;
|
|
294
293
|
}
|
|
295
294
|
|
|
296
|
-
&--focused-range-start:not(&--focused-range-end
|
|
295
|
+
&--focused-range-start:not(&--focused-range-end, &--outside) &-inner::after {
|
|
297
296
|
left: calc($calendar-day-inner-size / 2);
|
|
298
297
|
}
|
|
299
298
|
|
|
300
|
-
&--focused-range-end:not(&--focused-range-start
|
|
299
|
+
&--focused-range-end:not(&--focused-range-start, &--outside) &-inner::after {
|
|
301
300
|
right: calc($calendar-day-inner-size / 2);
|
|
302
301
|
}
|
|
303
302
|
|
|
304
303
|
:is(&--focused-range-start:not(&--range-start), &--focused-range-end:not(&--range-end)):not(
|
|
305
|
-
&--disabled
|
|
306
|
-
|
|
304
|
+
&--disabled,
|
|
305
|
+
&--outside
|
|
306
|
+
)
|
|
307
307
|
&-inner {
|
|
308
308
|
border: $calendar-range-border-width $calendar-range-focus-border-style
|
|
309
309
|
$calendar-range-focus-border-color;
|
|
310
310
|
background-color: $calendar-range-background-color;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
&--focused-range-start:not(&--range-start
|
|
314
|
-
&-inner {
|
|
313
|
+
&--focused-range-start:not(&--range-start, &--today, &--disabled, &--outside) &-inner {
|
|
315
314
|
border-right-color: transparent;
|
|
316
315
|
}
|
|
317
316
|
|
|
318
|
-
&--focused-range-end:not(&--range-end
|
|
317
|
+
&--focused-range-end:not(&--range-end, &--today, &--disabled, &--outside) &-inner {
|
|
319
318
|
border-left-color: transparent;
|
|
320
319
|
}
|
|
321
320
|
}
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
// Muted style
|
|
108
|
-
&[data-muted]:not(button
|
|
108
|
+
&[data-muted]:not(button, :any-link) {
|
|
109
109
|
opacity: $control-disabled-opacity;
|
|
110
110
|
}
|
|
111
111
|
|
|
@@ -197,9 +197,7 @@
|
|
|
197
197
|
|
|
198
198
|
&:is(:any-link, button) {
|
|
199
199
|
// Button - Hover
|
|
200
|
-
&:hover:not(:disabled
|
|
201
|
-
[data-state="open"]
|
|
202
|
-
) {
|
|
200
|
+
&:hover:not(:disabled, [data-disabled], :active, [data-active], [data-state="open"]) {
|
|
203
201
|
@include declare-var(
|
|
204
202
|
--#{$prefix}control-addon-background-color,
|
|
205
203
|
map.get($control-addon-button-hover-background-color-by-variant, $variant)
|
|
@@ -223,7 +221,7 @@
|
|
|
223
221
|
}
|
|
224
222
|
|
|
225
223
|
// Button - Active
|
|
226
|
-
&:is(:active, [data-active]):not(:disabled
|
|
224
|
+
&:is(:active, [data-active]):not(:disabled, [data-disabled]),
|
|
227
225
|
&[data-state="open"] {
|
|
228
226
|
@include declare-var(
|
|
229
227
|
--#{$prefix}control-addon-background-color,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@use "../ControlCode/ControlCode-variables" as *;
|
|
3
3
|
@use "../../scss/base-variables" as *;
|
|
4
4
|
@use "../../scss/utils/breakpoints" as *;
|
|
5
|
+
@use "../../scss/utils/declare-var" as *;
|
|
5
6
|
@use "../../scss/utils/spacing" as *;
|
|
6
7
|
@use "../../scss/utils/transition" as *;
|
|
7
8
|
@use "../../scss/utils/maybe-important" as *;
|
|
@@ -13,6 +14,10 @@
|
|
|
13
14
|
flex-wrap: wrap;
|
|
14
15
|
align-items: center;
|
|
15
16
|
|
|
17
|
+
@media print {
|
|
18
|
+
display: block;
|
|
19
|
+
}
|
|
20
|
+
|
|
16
21
|
// Empty message
|
|
17
22
|
&__empty-message {
|
|
18
23
|
color: $data-table-empty-message-color;
|
|
@@ -21,7 +26,7 @@
|
|
|
21
26
|
// When in scrolled mode, the virtualization component uses mock rows
|
|
22
27
|
&__row[data-last-row] {
|
|
23
28
|
& > #{$data-table}__cell {
|
|
24
|
-
border-bottom-width
|
|
29
|
+
@include declare-var(--#{$prefix}table-cell-border-bottom-width, 0px !important);
|
|
25
30
|
}
|
|
26
31
|
}
|
|
27
32
|
|
|
@@ -95,7 +100,7 @@
|
|
|
95
100
|
margin-top: var(--#{$prefix}mt, $data-table-child-gap-y);
|
|
96
101
|
margin-bottom: var(--#{$prefix}mb, 0);
|
|
97
102
|
}
|
|
98
|
-
& > *:not(&__content-container
|
|
103
|
+
& > *:not(&__content-container, :first-child) {
|
|
99
104
|
margin-left: var(--#{$prefix}ml, $data-table-child-gap-x);
|
|
100
105
|
}
|
|
101
106
|
& > &__content-container + * {
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
font-weight: var(--#{$prefix}font-weight, $feedback-font-weight);
|
|
10
10
|
}
|
|
11
11
|
color: $feedback-color;
|
|
12
|
+
break-before: avoid;
|
|
12
13
|
|
|
13
14
|
@if $feedback-text-align == right {
|
|
14
15
|
:not(.#{$prefix}checkbox__root, .#{$prefix}checkbox-group, .#{$prefix}radio-group) ~ & {
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
margin-top: var(--#{$prefix}mt, 0);
|
|
47
48
|
margin-bottom: var(--#{$prefix}mb, 0);
|
|
48
49
|
padding: 0;
|
|
50
|
+
break-before: avoid;
|
|
49
51
|
|
|
50
52
|
&:empty {
|
|
51
53
|
display: none;
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
font-weight: var(--#{$prefix}font-weight, $helper-text-font-weight);
|
|
9
9
|
}
|
|
10
10
|
color: $helper-text-color;
|
|
11
|
+
break-before: avoid;
|
|
11
12
|
|
|
12
13
|
@if $helper-text-text-align == right {
|
|
13
|
-
:not(.#{$prefix}checkbox__root
|
|
14
|
+
:not(.#{$prefix}checkbox__root, .#{$prefix}checkbox-group, .#{$prefix}radio-group) + & {
|
|
14
15
|
text-align: var(--#{$prefix}text-align, $helper-text-text-align);
|
|
15
16
|
}
|
|
16
17
|
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@use "../../scss/base-variables" as *;
|
|
2
|
+
@use "../../scss/utils/spacing" as *;
|
|
3
|
+
@use "../../scss/utils/css-color-functions" as *;
|
|
4
|
+
@use "../../scss/placeholders/button/button-variables" as *;
|
|
5
|
+
@use "../IconButton/IconButton-variables" as *;
|
|
6
|
+
|
|
7
|
+
// Layout
|
|
8
|
+
$pagination-grouped: false !default;
|
|
9
|
+
$pagination-gap-x: spacing(0.5) !default;
|
|
10
|
+
|
|
11
|
+
// Button
|
|
12
|
+
$pagination-button-padding-y: 0 !default;
|
|
13
|
+
$pagination-button-padding-x: 0.25em !default;
|
|
14
|
+
$pagination-button-background-color: null !default;
|
|
15
|
+
$pagination-button-background-image: null !default;
|
|
16
|
+
$pagination-button-color: var(--#{$prefix}neutral-a12) !default;
|
|
17
|
+
$pagination-button-border-color: null !default;
|
|
18
|
+
$pagination-button-box-shadow: null !default;
|
|
19
|
+
$pagination-button-font-family: null !default;
|
|
20
|
+
$pagination-button-font-weight: $font-weight-normal !default;
|
|
21
|
+
|
|
22
|
+
// Button - Hover
|
|
23
|
+
$pagination-button-hover-background-color: null !default;
|
|
24
|
+
$pagination-button-hover-background-image: null !default;
|
|
25
|
+
$pagination-button-hover-color: null !default;
|
|
26
|
+
$pagination-button-hover-border-color: null !default;
|
|
27
|
+
$pagination-button-hover-box-shadow: null !default;
|
|
28
|
+
$pagination-button-hover-z-index: null !default;
|
|
29
|
+
|
|
30
|
+
// Button - Current
|
|
31
|
+
$pagination-button-current-background-color: var(--#{$prefix}neutral-a4) !default;
|
|
32
|
+
$pagination-button-current-background-image: null !default;
|
|
33
|
+
$pagination-button-current-color: null !default;
|
|
34
|
+
$pagination-button-current-border-color: null !default;
|
|
35
|
+
$pagination-button-current-box-shadow: null !default;
|
|
36
|
+
$pagination-button-current-z-index: $pagination-button-hover-z-index !default;
|
|
37
|
+
|
|
38
|
+
// Button - Current + Hover
|
|
39
|
+
$pagination-button-current-hover-background-color: null !default;
|
|
40
|
+
$pagination-button-current-hover-background-image: null !default;
|
|
41
|
+
$pagination-button-current-hover-color: null !default;
|
|
42
|
+
$pagination-button-current-hover-border-color: null !default;
|
|
43
|
+
$pagination-button-current-hover-box-shadow: null !default;
|
|
44
|
+
|
|
45
|
+
// Button - Current + Active
|
|
46
|
+
$pagination-button-current-active-background-color: null !default;
|
|
47
|
+
$pagination-button-current-active-background-image: null !default;
|
|
48
|
+
$pagination-button-current-active-color: null !default;
|
|
49
|
+
$pagination-button-current-active-border-color: null !default;
|
|
50
|
+
$pagination-button-current-active-box-shadow: null !default;
|
|
51
|
+
|
|
52
|
+
// Button - Current + Focus
|
|
53
|
+
$pagination-button-current-focus-outline-offset: null !default;
|
|
54
|
+
$pagination-button-current-focus-outline-color: null !default;
|
|
55
|
+
$pagination-button-current-focus-z-index: null !default;
|
|
56
|
+
|
|
57
|
+
// Button - Size
|
|
58
|
+
$pagination-button-sm-min-size: $icon-button-sm-min-size !default;
|
|
59
|
+
$pagination-button-md-min-size: $icon-button-md-min-size !default;
|
|
60
|
+
$pagination-button-lg-min-size: $icon-button-lg-min-size !default;
|
|
61
|
+
$pagination-button-xl-min-size: $icon-button-xl-min-size !default;
|
|
62
|
+
|
|
63
|
+
// Arrow
|
|
64
|
+
$pagination-arrow-color: var(--#{$prefix}neutral-a12) !default;
|
|
65
|
+
|
|
66
|
+
// Arrow - Size
|
|
67
|
+
$pagination-arrow-sm-font-size: var(--#{$prefix}font-size-2xs) !default;
|
|
68
|
+
$pagination-arrow-md-font-size: var(--#{$prefix}font-size-xs) !default;
|
|
69
|
+
$pagination-arrow-lg-font-size: var(--#{$prefix}font-size-sm) !default;
|
|
70
|
+
$pagination-arrow-xl-font-size: var(--#{$prefix}font-size-md) !default;
|
|
71
|
+
|
|
72
|
+
// Ellipsis
|
|
73
|
+
$pagination-ellipsis-color: var(--#{$prefix}neutral-a11) !default;
|
|
74
|
+
|
|
75
|
+
// Sizes
|
|
76
|
+
$pagination-sizes: $icon-button-sizes !default;
|
|
77
|
+
|
|
78
|
+
$pagination-button-min-size-by-size: (
|
|
79
|
+
sm: $pagination-button-sm-min-size,
|
|
80
|
+
md: $pagination-button-md-min-size,
|
|
81
|
+
lg: $pagination-button-lg-min-size,
|
|
82
|
+
xl: $pagination-button-xl-min-size,
|
|
83
|
+
) !default;
|
|
84
|
+
$pagination-arrow-font-size-by-size: (
|
|
85
|
+
sm: $pagination-arrow-sm-font-size,
|
|
86
|
+
md: $pagination-arrow-md-font-size,
|
|
87
|
+
lg: $pagination-arrow-lg-font-size,
|
|
88
|
+
xl: $pagination-arrow-xl-font-size,
|
|
89
|
+
) !default;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "Pagination-variables" as *;
|
|
3
|
+
@use "../../scss/base-variables" as *;
|
|
4
|
+
@use "../../scss/utils/declare-var" as *;
|
|
5
|
+
@use "../../scss/utils/spacing" as *;
|
|
6
|
+
|
|
7
|
+
.#{$prefix}pagination {
|
|
8
|
+
min-width: 0;
|
|
9
|
+
width: auto;
|
|
10
|
+
|
|
11
|
+
&__list {
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
align-items: stretch;
|
|
14
|
+
margin: 0;
|
|
15
|
+
padding: 0;
|
|
16
|
+
list-style: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__item {
|
|
20
|
+
display: flex;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&__item:not(:first-child) > &__button {
|
|
24
|
+
margin-left: $pagination-gap-x;
|
|
25
|
+
|
|
26
|
+
@if $pagination-grouped {
|
|
27
|
+
border-top-left-radius: 0;
|
|
28
|
+
border-bottom-left-radius: 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@if $pagination-grouped {
|
|
33
|
+
&__item:not(:last-child) > &__button {
|
|
34
|
+
border-top-right-radius: 0;
|
|
35
|
+
border-bottom-right-radius: 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Button
|
|
40
|
+
&__button {
|
|
41
|
+
position: relative;
|
|
42
|
+
min-width: var(--#{$prefix}pagination-button-min-size);
|
|
43
|
+
min-height: var(--#{$prefix}pagination-button-min-size);
|
|
44
|
+
|
|
45
|
+
background-color: $pagination-button-background-color;
|
|
46
|
+
background-image: $pagination-button-background-image;
|
|
47
|
+
color: $pagination-button-color;
|
|
48
|
+
border-color: $pagination-button-border-color;
|
|
49
|
+
box-shadow: $pagination-button-box-shadow;
|
|
50
|
+
font-family: $pagination-button-font-family;
|
|
51
|
+
font-weight: $pagination-button-font-weight;
|
|
52
|
+
|
|
53
|
+
&:not([data-current]:hover) {
|
|
54
|
+
transition: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:hover:not(:disabled, [data-disabled]) {
|
|
58
|
+
background-color: $pagination-button-hover-background-color;
|
|
59
|
+
background-image: $pagination-button-hover-background-image;
|
|
60
|
+
color: $pagination-button-hover-color;
|
|
61
|
+
border-color: $pagination-button-hover-border-color;
|
|
62
|
+
box-shadow: $pagination-button-hover-box-shadow;
|
|
63
|
+
z-index: $pagination-button-hover-z-index;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&[data-current] {
|
|
67
|
+
background-color: $pagination-button-current-background-color;
|
|
68
|
+
background-image: $pagination-button-current-background-image;
|
|
69
|
+
color: $pagination-button-current-color;
|
|
70
|
+
border-color: $pagination-button-current-border-color;
|
|
71
|
+
box-shadow: $pagination-button-current-box-shadow;
|
|
72
|
+
z-index: $pagination-button-current-z-index;
|
|
73
|
+
|
|
74
|
+
&:hover:not(:disabled, [data-disabled]) {
|
|
75
|
+
background-color: $pagination-button-current-hover-background-color;
|
|
76
|
+
background-image: $pagination-button-current-hover-background-image;
|
|
77
|
+
color: $pagination-button-current-hover-color;
|
|
78
|
+
border-color: $pagination-button-current-hover-border-color;
|
|
79
|
+
box-shadow: $pagination-button-current-hover-box-shadow;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&:active:not(:disabled, [data-disabled]) {
|
|
83
|
+
background-color: $pagination-button-current-active-background-color;
|
|
84
|
+
background-image: $pagination-button-current-active-background-image;
|
|
85
|
+
color: $pagination-button-current-active-color;
|
|
86
|
+
border-color: $pagination-button-current-active-border-color;
|
|
87
|
+
box-shadow: $pagination-button-current-active-box-shadow;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&:focus-visible {
|
|
91
|
+
outline-offset: $pagination-button-current-focus-outline-offset;
|
|
92
|
+
outline-color: $pagination-button-current-focus-outline-color;
|
|
93
|
+
z-index: $pagination-button-current-focus-z-index;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&__page,
|
|
99
|
+
&__ellipsis {
|
|
100
|
+
padding: $pagination-button-padding-y $pagination-button-padding-x;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// Ellipsis
|
|
104
|
+
&__ellipsis {
|
|
105
|
+
color: $pagination-ellipsis-color;
|
|
106
|
+
pointer-events: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// Arrow
|
|
110
|
+
&__arrow {
|
|
111
|
+
@if ($pagination-arrow-color != NULL) {
|
|
112
|
+
color: $pagination-arrow-color;
|
|
113
|
+
}
|
|
114
|
+
font-size: var(--#{$prefix}pagination-arrow-font-size);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// Loading
|
|
118
|
+
&__loading > .#{$prefix}button__spinner {
|
|
119
|
+
margin: 0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Sizes
|
|
123
|
+
@each $size in $pagination-sizes {
|
|
124
|
+
&__button:is(.#{$prefix}button--#{$size}, .#{$prefix}icon-button--#{$size}) {
|
|
125
|
+
@include declare-var(
|
|
126
|
+
--#{$prefix}pagination-button-min-size,
|
|
127
|
+
map.get($pagination-button-min-size-by-size, $size)
|
|
128
|
+
);
|
|
129
|
+
@include declare-var(
|
|
130
|
+
--#{$prefix}pagination-arrow-font-size,
|
|
131
|
+
map.get($pagination-arrow-font-size-by-size, $size)
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -45,7 +45,7 @@ $select-multiple-value-tag-line-height: var(--#{$prefix}line-height-xs) !default
|
|
|
45
45
|
$select-multiple-value-tag-text-transform: null !default;
|
|
46
46
|
|
|
47
47
|
// Arrow
|
|
48
|
-
$select-arrow-font-size: var(--#{$prefix}font-size-
|
|
48
|
+
$select-arrow-font-size: var(--#{$prefix}font-size-xs) !default;
|
|
49
49
|
$select-arrow-color: var(--#{$prefix}neutral-11) !default;
|
|
50
50
|
|
|
51
51
|
// Status
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
);
|
|
30
30
|
|
|
31
31
|
// Handle margins of non-stack children
|
|
32
|
-
& > :not(style) + :not(style
|
|
32
|
+
& > :not(style) + :not(style, &) {
|
|
33
33
|
margin: calc(var(--#{$prefix}mt, 0px) + var(--#{$prefix}stack-child-mt))
|
|
34
34
|
calc(var(--#{$prefix}mr, 0px) + var(--#{$prefix}stack-child-mr))
|
|
35
35
|
calc(var(--#{$prefix}mb, 0px) + var(--#{$prefix}stack-child-mb))
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
display: flex;
|
|
24
24
|
flex-direction: column;
|
|
25
25
|
align-items: $table-container-align-items;
|
|
26
|
+
|
|
27
|
+
@media print {
|
|
28
|
+
display: block;
|
|
29
|
+
}
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
&__caption {
|
|
@@ -46,7 +50,8 @@
|
|
|
46
50
|
overflow: auto;
|
|
47
51
|
|
|
48
52
|
@media print {
|
|
49
|
-
|
|
53
|
+
display: block;
|
|
54
|
+
overflow: clip;
|
|
50
55
|
min-width: 100%;
|
|
51
56
|
width: min-content;
|
|
52
57
|
}
|
|
@@ -345,15 +350,21 @@
|
|
|
345
350
|
}
|
|
346
351
|
|
|
347
352
|
// Add borders to rows
|
|
348
|
-
& > &__head > &__row > &__cell,
|
|
349
353
|
&__row:not(:last-child) > &__cell {
|
|
350
|
-
border-bottom-width
|
|
354
|
+
@include declare-var(--#{$prefix}table-cell-border-bottom-width, $table-cell-border-width);
|
|
351
355
|
}
|
|
352
356
|
|
|
353
357
|
// Bottom border of table head rows
|
|
354
358
|
& > &__head > &__row > &__cell {
|
|
355
|
-
|
|
356
|
-
|
|
359
|
+
@include declare-var(
|
|
360
|
+
--#{$prefix}table-cell-border-bottom-width,
|
|
361
|
+
var(--#{$prefix}table-head-border-width)
|
|
362
|
+
);
|
|
363
|
+
border-bottom-style: solid;
|
|
364
|
+
border-bottom-color: var(
|
|
365
|
+
--#{$prefix}table-head-border-color,
|
|
366
|
+
var(--#{$prefix}table-cell-border-color)
|
|
367
|
+
);
|
|
357
368
|
}
|
|
358
369
|
|
|
359
370
|
// Top-border of table foot
|
|
@@ -374,9 +385,12 @@
|
|
|
374
385
|
font-weight: var(--#{$prefix}table-cell-font-weight);
|
|
375
386
|
text-transform: var(--#{$prefix}table-cell-text-transform);
|
|
376
387
|
|
|
388
|
+
@include declare-var(--#{$prefix}table-cell-border-bottom-width, 0px);
|
|
377
389
|
@include declare-var(--#{$prefix}table-cell-border-color, $table-cell-border-color);
|
|
378
|
-
border: 0
|
|
379
|
-
|
|
390
|
+
border-width: 0;
|
|
391
|
+
border-bottom-width: var(--#{$prefix}table-cell-border-bottom-width, 0px);
|
|
392
|
+
border-style: var(--#{$prefix}table-cell-border-style, solid);
|
|
393
|
+
border-color: var(--#{$prefix}table-cell-border-color);
|
|
380
394
|
background-color: var(--#{$prefix}table-cell-background-color, $table-cell-background-color);
|
|
381
395
|
color: var(--#{$prefix}table-cell-color);
|
|
382
396
|
|
|
@@ -389,7 +403,7 @@
|
|
|
389
403
|
|
|
390
404
|
// Framed styles
|
|
391
405
|
&[data-framed] {
|
|
392
|
-
.#{$prefix}table__head &:not([data-left-most-column]
|
|
406
|
+
.#{$prefix}table__head &:not([data-left-most-column], :first-child),
|
|
393
407
|
.#{$prefix}table > .#{$prefix}table__row > &:not(:first-child),
|
|
394
408
|
.#{$prefix}table > .#{$prefix}table__body > .#{$prefix}table__row > &:not(:first-child) {
|
|
395
409
|
border-left-width: $table-cell-framed-border-width;
|
|
@@ -422,7 +436,7 @@
|
|
|
422
436
|
position: absolute;
|
|
423
437
|
top: 0;
|
|
424
438
|
width: $table-cell-stuck-shadow-size;
|
|
425
|
-
height: calc(100% + $table-cell-border-width);
|
|
439
|
+
height: calc(100% + var(--#{$prefix}table-cell-border-bottom-width));
|
|
426
440
|
}
|
|
427
441
|
}
|
|
428
442
|
|
|
@@ -169,7 +169,7 @@ $tabs-tab-inner-annexes-active-status-background-color: null !default;
|
|
|
169
169
|
// Scroll button
|
|
170
170
|
$tabs-scroll-button-padding-x: spacing(2) !default;
|
|
171
171
|
$tabs-scroll-button-color: null !default;
|
|
172
|
-
$tabs-scroll-button-font-size:
|
|
172
|
+
$tabs-scroll-button-font-size: null !default;
|
|
173
173
|
$tabs-scroll-button-overflow-indicator-width: 4px !default;
|
|
174
174
|
$tabs-scroll-button-overflow-indicator-extra-height: 4px !default;
|
|
175
175
|
$tabs-scroll-button-overflow-indicator-color: var(--#{$prefix}neutral-a8) !default;
|