@gooddata/sdk-ui-kit 11.62.0-alpha.0 → 11.62.0-alpha.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/esm/@ui/@types/icon.d.ts +1 -1
- package/esm/@ui/@types/icon.d.ts.map +1 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableHeader.d.ts.map +1 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableHeader.js +38 -5
- package/esm/@ui/UiAsyncTable/types.d.ts +4 -0
- package/esm/@ui/UiAsyncTable/types.d.ts.map +1 -1
- package/esm/@ui/UiChip/ChipActionButton.d.ts.map +1 -1
- package/esm/@ui/UiChip/ChipActionButton.js +5 -3
- package/esm/@ui/UiFocusManager/utils.js +2 -2
- package/esm/@ui/UiIcon/icons.d.ts.map +1 -1
- package/esm/@ui/UiIcon/icons.js +4 -1
- package/esm/@ui/UiModalDialog/UiModalDialog.js +2 -2
- package/esm/@ui/UiResizableSidebar/UiResizableSidebarNavigation.d.ts +52 -0
- package/esm/@ui/UiResizableSidebar/UiResizableSidebarNavigation.d.ts.map +1 -0
- package/esm/@ui/UiResizableSidebar/UiResizableSidebarNavigation.js +449 -0
- package/esm/@ui/UiResizableSidebar/types.d.ts +70 -1
- package/esm/@ui/UiResizableSidebar/types.d.ts.map +1 -1
- package/esm/@ui/UiResizableSidebar/useUiResizableSidebarState.d.ts +1 -1
- package/esm/@ui/UiResizableSidebar/useUiResizableSidebarState.d.ts.map +1 -1
- package/esm/@ui/UiResizableSidebar/useUiResizableSidebarState.js +5 -4
- package/esm/@ui/UiToolbarInput/UiToolbarInput.d.ts +71 -0
- package/esm/@ui/UiToolbarInput/UiToolbarInput.d.ts.map +1 -0
- package/esm/@ui/UiToolbarInput/UiToolbarInput.js +78 -0
- package/esm/@ui/UiToolbarPagination/UiToolbarPagination.d.ts +58 -0
- package/esm/@ui/UiToolbarPagination/UiToolbarPagination.d.ts.map +1 -0
- package/esm/@ui/UiToolbarPagination/UiToolbarPagination.js +56 -0
- package/esm/@ui/UiToolbarStepper/UiToolbarStepper.d.ts +7 -11
- package/esm/@ui/UiToolbarStepper/UiToolbarStepper.d.ts.map +1 -1
- package/esm/@ui/UiToolbarStepper/UiToolbarStepper.js +6 -10
- package/esm/Header/generateHeaderMenuItemsGroups.d.ts +1 -5
- package/esm/Header/generateHeaderMenuItemsGroups.d.ts.map +1 -1
- package/esm/Header/generateHeaderMenuItemsGroups.js +3 -21
- package/esm/Overlay/Overlay.d.ts.map +1 -1
- package/esm/Overlay/Overlay.js +2 -2
- package/esm/Overlay/OverlayContext.d.ts +15 -0
- package/esm/Overlay/OverlayContext.d.ts.map +1 -1
- package/esm/Overlay/OverlayContext.js +18 -1
- package/esm/index.d.ts +6 -3
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +5 -2
- package/esm/sdk-ui-kit.d.ts +284 -20
- package/package.json +11 -11
- package/src/@ui/UiButtonSegmentedControl/UiButtonSegmentedControl.scss +13 -1
- package/src/@ui/UiIconButton/UiIconButton.scss +8 -1
- package/src/@ui/UiResizableSidebar/UiResizableSidebarNavigation.scss +205 -0
- package/src/@ui/UiToolbar/UiToolbar.scss +1 -1
- package/src/@ui/UiToolbar/toolbarItem.scss +9 -1
- package/src/@ui/UiToolbarInput/UiToolbarInput.scss +82 -0
- package/src/@ui/UiToolbarPagination/UiToolbarPagination.scss +63 -0
- package/src/@ui/UiToolbarStepper/UiToolbarStepper.scss +25 -10
- package/src/@ui/defaultTheme.scss +4 -1
- package/src/@ui/index.scss +3 -0
- package/styles/css/main.css +313 -18
- package/styles/css/main.css.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-kit",
|
|
3
|
-
"version": "11.62.0-alpha.
|
|
3
|
+
"version": "11.62.0-alpha.2",
|
|
4
4
|
"description": "GoodData SDK - UI Building Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -79,11 +79,11 @@
|
|
|
79
79
|
"unified": "^11.0.5",
|
|
80
80
|
"uuid": "11.1.1",
|
|
81
81
|
"yaml": "2.8.3",
|
|
82
|
-
"@gooddata/sdk-backend-spi": "11.62.0-alpha.
|
|
83
|
-
"@gooddata/sdk-model": "11.62.0-alpha.
|
|
84
|
-
"@gooddata/sdk-ui": "11.62.0-alpha.
|
|
85
|
-
"@gooddata/util": "11.62.0-alpha.
|
|
86
|
-
"@gooddata/sdk-ui-theme-provider": "11.62.0-alpha.
|
|
82
|
+
"@gooddata/sdk-backend-spi": "11.62.0-alpha.2",
|
|
83
|
+
"@gooddata/sdk-model": "11.62.0-alpha.2",
|
|
84
|
+
"@gooddata/sdk-ui": "11.62.0-alpha.2",
|
|
85
|
+
"@gooddata/util": "11.62.0-alpha.2",
|
|
86
|
+
"@gooddata/sdk-ui-theme-provider": "11.62.0-alpha.2"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
89
|
"@microsoft/api-documenter": "7.30.16",
|
|
@@ -128,11 +128,11 @@
|
|
|
128
128
|
"typescript": "7.0.2",
|
|
129
129
|
"vitest": "4.1.11",
|
|
130
130
|
"vitest-dom": "0.1.1",
|
|
131
|
-
"@gooddata/
|
|
132
|
-
"@gooddata/
|
|
133
|
-
"@gooddata/
|
|
134
|
-
"@gooddata/stylelint-config": "11.62.0-alpha.
|
|
135
|
-
"@gooddata/
|
|
131
|
+
"@gooddata/oxlint-config": "11.62.0-alpha.2",
|
|
132
|
+
"@gooddata/reference-workspace": "11.62.0-alpha.2",
|
|
133
|
+
"@gooddata/sdk-backend-mockingbird": "11.62.0-alpha.2",
|
|
134
|
+
"@gooddata/stylelint-config": "11.62.0-alpha.2",
|
|
135
|
+
"@gooddata/eslint-config": "11.62.0-alpha.2"
|
|
136
136
|
},
|
|
137
137
|
"peerDependencies": {
|
|
138
138
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -40,10 +40,22 @@
|
|
|
40
40
|
z-index: 1;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
/**
|
|
44
|
+
* This fixes the situation where if button is active (pressed), then the neighboring button to the right overlaps
|
|
45
|
+
* active button's right border with wrong color (should be the active border color) if the active button is
|
|
46
|
+
* no longer focused. The following fixes that.
|
|
47
|
+
*/
|
|
48
|
+
> *.gd-ui-kit-button--isSelected,
|
|
49
|
+
> *.gd-ui-kit-icon-button--active,
|
|
50
|
+
> *:has(.gd-ui-kit-button--isSelected),
|
|
51
|
+
> *:has(.gd-ui-kit-icon-button--active) {
|
|
44
52
|
z-index: 2;
|
|
45
53
|
}
|
|
46
54
|
|
|
55
|
+
> *:focus-within {
|
|
56
|
+
z-index: 3;
|
|
57
|
+
}
|
|
58
|
+
|
|
47
59
|
/**
|
|
48
60
|
* Rounded corners for the first/last segment.
|
|
49
61
|
*/
|
|
@@ -112,7 +112,14 @@
|
|
|
112
112
|
border-color: var(--gd-palette-complementary-4);
|
|
113
113
|
background-color: var(--gd-palette-complementary-0);
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
/**
|
|
116
|
+
* `:not(&#{$root}--active)` prevents lighter hover/focus-visible background on the pressed button.
|
|
117
|
+
*
|
|
118
|
+
* At the time of this writing only this variant has this problem. Other variants either
|
|
119
|
+
* have the same styles applied on hover and `--active` or they don't have pressed styles
|
|
120
|
+
* different from the normal one at all.
|
|
121
|
+
*/
|
|
122
|
+
&:not(&:disabled):not(&#{$root}--active) {
|
|
116
123
|
&:focus-visible,
|
|
117
124
|
&:hover {
|
|
118
125
|
--gd-icon-fill-color: var(--gd-palette-primary-base);
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
|
|
3
|
+
@use "../../../styles/scss/variables";
|
|
4
|
+
@use "../../../styles/scss/mixins";
|
|
5
|
+
|
|
6
|
+
$item-height: 40px;
|
|
7
|
+
$indicator-width: 4px;
|
|
8
|
+
$item-padding: 12px;
|
|
9
|
+
$icon-size: 18px;
|
|
10
|
+
$item-gap: 10px;
|
|
11
|
+
$action-required-size: 8px;
|
|
12
|
+
$flyover-width: 230px;
|
|
13
|
+
|
|
14
|
+
.gd-ui-kit-resizable-sidebar-navigation {
|
|
15
|
+
$root: &;
|
|
16
|
+
|
|
17
|
+
display: block;
|
|
18
|
+
|
|
19
|
+
&__list,
|
|
20
|
+
&__children,
|
|
21
|
+
&__flyover-list {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
margin: 0;
|
|
25
|
+
padding: 0;
|
|
26
|
+
list-style: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// The anchor of a rail flyover spans the row, so hover and the highlight cover the whole rail.
|
|
30
|
+
&__flyover-anchor {
|
|
31
|
+
display: block;
|
|
32
|
+
width: 100%;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// The rail centers each row's content, whether it is the item or its tooltip anchor wrapper.
|
|
36
|
+
&__row--rail {
|
|
37
|
+
display: flex;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
|
|
40
|
+
.gd-ui-kit-tooltip__anchor {
|
|
41
|
+
display: block;
|
|
42
|
+
width: 100%;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// The left border is the state indicator: neutral on hover, primary for the current page.
|
|
47
|
+
&__item {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
gap: $item-gap;
|
|
51
|
+
box-sizing: border-box;
|
|
52
|
+
width: 100%;
|
|
53
|
+
min-height: $item-height;
|
|
54
|
+
padding: 0 $item-padding 0 ($item-padding - $indicator-width);
|
|
55
|
+
border: 0;
|
|
56
|
+
border-left: $indicator-width solid transparent;
|
|
57
|
+
border-radius: 0;
|
|
58
|
+
background: transparent;
|
|
59
|
+
color: variables.$gd-color-text;
|
|
60
|
+
font-family: inherit;
|
|
61
|
+
font-size: 14px;
|
|
62
|
+
line-height: 20px;
|
|
63
|
+
text-align: left;
|
|
64
|
+
text-decoration: none;
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
transition: var(--gd-transition-all);
|
|
67
|
+
|
|
68
|
+
&:hover,
|
|
69
|
+
&--open {
|
|
70
|
+
border-left-color: variables.$gd-color-disabled;
|
|
71
|
+
background-color: variables.$is-focused-background;
|
|
72
|
+
color: variables.$gd-color-dark;
|
|
73
|
+
text-decoration: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:focus {
|
|
77
|
+
outline: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:focus-visible {
|
|
81
|
+
@include mixins.focus-ring;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&--active,
|
|
85
|
+
&--selected {
|
|
86
|
+
font-weight: 700;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&--active:not(#{$root}__item--child),
|
|
90
|
+
&--active:not(#{$root}__item--child):hover {
|
|
91
|
+
border-left-color: variables.$gd-palette-primary-base;
|
|
92
|
+
background-color: variables.$is-focused-background;
|
|
93
|
+
color: variables.$gd-color-dark;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Sub-items align their label with the label of the group above and show no indicator.
|
|
97
|
+
&--child {
|
|
98
|
+
padding-left: $item-padding + $icon-size + $item-gap;
|
|
99
|
+
border-left: 0;
|
|
100
|
+
color: variables.$gd-color-link;
|
|
101
|
+
|
|
102
|
+
&:hover {
|
|
103
|
+
background-color: variables.$is-focused-background;
|
|
104
|
+
color: variables.$gd-color-dark;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&--child#{$root}__item--selected,
|
|
109
|
+
&--child#{$root}__item--selected:hover {
|
|
110
|
+
background-color: variables.$is-focused-background;
|
|
111
|
+
color: variables.$gd-color-dark;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&--flyover {
|
|
115
|
+
padding-left: $item-padding;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// The icon stays centered in the rail; the right padding balances the indicator.
|
|
119
|
+
&--rail {
|
|
120
|
+
position: relative;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
padding: 0 $indicator-width 0 0;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&__flyover {
|
|
127
|
+
box-sizing: border-box;
|
|
128
|
+
width: $flyover-width;
|
|
129
|
+
padding: 0 0 10px;
|
|
130
|
+
overflow: hidden auto;
|
|
131
|
+
overscroll-behavior: contain;
|
|
132
|
+
border-radius: variables.$gd-rounded-small;
|
|
133
|
+
background-color: variables.$gd-color-white;
|
|
134
|
+
box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&__icon {
|
|
138
|
+
position: relative;
|
|
139
|
+
display: flex;
|
|
140
|
+
flex: 0 0 auto;
|
|
141
|
+
align-items: center;
|
|
142
|
+
justify-content: center;
|
|
143
|
+
width: $icon-size;
|
|
144
|
+
height: $icon-size;
|
|
145
|
+
font-size: 12px;
|
|
146
|
+
font-weight: 700;
|
|
147
|
+
line-height: 1;
|
|
148
|
+
text-transform: uppercase;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&__label {
|
|
152
|
+
flex: 1 1 auto;
|
|
153
|
+
min-width: 0;
|
|
154
|
+
overflow: hidden;
|
|
155
|
+
white-space: nowrap;
|
|
156
|
+
text-overflow: ellipsis;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// Text for assistive technology only: the rail label and the action-required label.
|
|
160
|
+
&__sr-only {
|
|
161
|
+
position: absolute;
|
|
162
|
+
width: 1px;
|
|
163
|
+
height: 1px;
|
|
164
|
+
margin: -1px;
|
|
165
|
+
padding: 0;
|
|
166
|
+
overflow: hidden;
|
|
167
|
+
clip: rect(0, 0, 0, 0);
|
|
168
|
+
white-space: nowrap;
|
|
169
|
+
border: 0;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&__action-required {
|
|
173
|
+
position: relative;
|
|
174
|
+
flex: 0 0 auto;
|
|
175
|
+
width: $action-required-size;
|
|
176
|
+
height: $action-required-size;
|
|
177
|
+
border-radius: 50%;
|
|
178
|
+
background-color: variables.$gd-palette-primary-base;
|
|
179
|
+
|
|
180
|
+
// In the rail the dot sits on the corner of the icon.
|
|
181
|
+
#{$root}__item--rail & {
|
|
182
|
+
position: absolute;
|
|
183
|
+
top: 8px;
|
|
184
|
+
right: 10px;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&__chevron {
|
|
189
|
+
display: flex;
|
|
190
|
+
flex: 0 0 auto;
|
|
191
|
+
align-items: center;
|
|
192
|
+
transition: var(--gd-transition-all);
|
|
193
|
+
|
|
194
|
+
&--expanded {
|
|
195
|
+
transform: rotate(90deg);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@media (prefers-reduced-motion: reduce) {
|
|
201
|
+
.gd-ui-kit-resizable-sidebar-navigation__chevron,
|
|
202
|
+
.gd-ui-kit-resizable-sidebar-navigation__item {
|
|
203
|
+
transition: none;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
box-sizing: border-box;
|
|
10
10
|
padding: toolbarItem.$toolbar-padding;
|
|
11
11
|
border: 1px solid var(--gd-palette-complementary-3);
|
|
12
|
-
border-radius: var(--gd-
|
|
12
|
+
border-radius: var(--gd-toolbar-borderRadius);
|
|
13
13
|
background-color: var(--gd-palette-complementary-0);
|
|
14
14
|
box-shadow: 0 2px 10px var(--gd-shadow-color);
|
|
15
15
|
}
|
|
@@ -9,6 +9,14 @@ $toolbar-gap: 8px;
|
|
|
9
9
|
$toolbar-icon-size-medium: 20px;
|
|
10
10
|
$toolbar-icon-size-small: 14px;
|
|
11
11
|
$toolbar-hit-area: 24px;
|
|
12
|
+
// Side padding of a typable value field (UiToolbarInput, the editable value of UiToolbarStepper).
|
|
13
|
+
$toolbar-field-padding: 8px;
|
|
14
|
+
|
|
15
|
+
// The 1px border of a typable value field. It is an inset shadow so the 2px focus ring can replace
|
|
16
|
+
// it without moving the content.
|
|
17
|
+
@mixin toolbar-field-border($color) {
|
|
18
|
+
box-shadow: inset 0 0 0 1px $color;
|
|
19
|
+
}
|
|
12
20
|
|
|
13
21
|
@mixin toolbar-item-base {
|
|
14
22
|
display: inline-flex;
|
|
@@ -20,7 +28,7 @@ $toolbar-hit-area: 24px;
|
|
|
20
28
|
margin: 0;
|
|
21
29
|
padding: 0 $toolbar-item-padding;
|
|
22
30
|
border: 0;
|
|
23
|
-
border-radius: var(--gd-toolbar-borderRadius);
|
|
31
|
+
border-radius: var(--gd-toolbar-control-borderRadius);
|
|
24
32
|
background-color: transparent;
|
|
25
33
|
font-family: var(--gd-font-family);
|
|
26
34
|
font-size: 14px;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
|
|
3
|
+
@use "../UiToolbar/toolbarItem";
|
|
4
|
+
|
|
5
|
+
.gd-ui-kit-toolbar-input {
|
|
6
|
+
$root: &;
|
|
7
|
+
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
gap: toolbarItem.$toolbar-item-gap;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
height: toolbarItem.$toolbar-item-size;
|
|
13
|
+
padding: 0 toolbarItem.$toolbar-field-padding;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
border-radius: var(--gd-toolbar-control-borderRadius);
|
|
16
|
+
color: var(--gd-palette-complementary-7);
|
|
17
|
+
font-family: var(--gd-font-family);
|
|
18
|
+
font-size: 14px;
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
cursor: text;
|
|
21
|
+
transition: var(--gd-transition-all);
|
|
22
|
+
|
|
23
|
+
@include toolbarItem.toolbar-field-border(var(--gd-palette-complementary-4));
|
|
24
|
+
|
|
25
|
+
&:not(#{$root}--isDisabled) {
|
|
26
|
+
&:hover {
|
|
27
|
+
@include toolbarItem.toolbar-field-border(var(--gd-palette-complementary-5));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&#{$root}--isInvalid {
|
|
31
|
+
@include toolbarItem.toolbar-field-border(var(--gd-palette-error-base));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// After the states above, so the ring replaces whichever border they drew. A disabled field is
|
|
36
|
+
// read-only but still focusable, so it shows the ring too.
|
|
37
|
+
&:focus-within {
|
|
38
|
+
box-shadow: inset 0 0 0 2px var(--gd-palette-primary-base);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&__prefix,
|
|
42
|
+
&__unit {
|
|
43
|
+
flex: 0 0 auto;
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
color: var(--gd-palette-complementary-6);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&__value {
|
|
50
|
+
flex: 1 1 auto;
|
|
51
|
+
width: 0;
|
|
52
|
+
min-width: 0;
|
|
53
|
+
height: 100%;
|
|
54
|
+
margin: 0;
|
|
55
|
+
padding: 0;
|
|
56
|
+
border: 0;
|
|
57
|
+
outline: none;
|
|
58
|
+
background-color: transparent;
|
|
59
|
+
color: inherit;
|
|
60
|
+
font: inherit;
|
|
61
|
+
text-align: right;
|
|
62
|
+
cursor: inherit;
|
|
63
|
+
|
|
64
|
+
&::placeholder {
|
|
65
|
+
color: var(--gd-palette-complementary-6);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&--isInvalid &__value {
|
|
70
|
+
color: var(--gd-palette-error-base);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&--isDisabled {
|
|
74
|
+
color: var(--gd-palette-complementary-5);
|
|
75
|
+
cursor: default;
|
|
76
|
+
|
|
77
|
+
#{$root}__prefix,
|
|
78
|
+
#{$root}__unit {
|
|
79
|
+
color: var(--gd-palette-complementary-4);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
|
|
3
|
+
@use "../UiToolbar/toolbarItem";
|
|
4
|
+
|
|
5
|
+
.gd-ui-kit-toolbar-pagination {
|
|
6
|
+
// Fits page numbers up to three digits.
|
|
7
|
+
$field-width: 32px;
|
|
8
|
+
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: toolbarItem.$toolbar-item-gap;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
height: toolbarItem.$toolbar-item-size;
|
|
14
|
+
padding: 0 toolbarItem.$toolbar-item-padding;
|
|
15
|
+
color: var(--gd-palette-complementary-7);
|
|
16
|
+
font-family: var(--gd-font-family);
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
|
|
20
|
+
&--isDisabled {
|
|
21
|
+
color: var(--gd-palette-complementary-5);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__readout,
|
|
25
|
+
&__total {
|
|
26
|
+
line-height: normal;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&__field {
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
width: $field-width;
|
|
32
|
+
height: toolbarItem.$toolbar-item-size;
|
|
33
|
+
margin: 0;
|
|
34
|
+
padding: 0 toolbarItem.$toolbar-item-padding;
|
|
35
|
+
border: 0;
|
|
36
|
+
border-radius: var(--gd-toolbar-control-borderRadius);
|
|
37
|
+
outline: none;
|
|
38
|
+
background-color: transparent;
|
|
39
|
+
color: inherit;
|
|
40
|
+
font: inherit;
|
|
41
|
+
text-align: center;
|
|
42
|
+
cursor: text;
|
|
43
|
+
transition: var(--gd-transition-all);
|
|
44
|
+
|
|
45
|
+
@include toolbarItem.toolbar-field-border(var(--gd-palette-complementary-4));
|
|
46
|
+
|
|
47
|
+
&:not([aria-disabled="true"]) {
|
|
48
|
+
&:hover {
|
|
49
|
+
@include toolbarItem.toolbar-field-border(var(--gd-palette-complementary-5));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:focus-visible {
|
|
53
|
+
box-shadow: inset 0 0 0 2px var(--gd-palette-primary-base);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&[aria-disabled="true"] {
|
|
58
|
+
cursor: default;
|
|
59
|
+
|
|
60
|
+
@include toolbarItem.toolbar-focus-ring;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -25,38 +25,53 @@
|
|
|
25
25
|
&--isEditable {
|
|
26
26
|
// A constant width so the toolbar does not move while the value is typed or stepped.
|
|
27
27
|
// Fits four characters: percentages up to "100%" and whole numbers up to four digits.
|
|
28
|
-
width: calc(4.5ch + 2 * #{toolbarItem.$toolbar-
|
|
28
|
+
width: calc(4.5ch + 2 * #{toolbarItem.$toolbar-field-padding});
|
|
29
|
+
padding: 0 toolbarItem.$toolbar-field-padding;
|
|
29
30
|
text-align: center;
|
|
30
31
|
cursor: text;
|
|
31
32
|
|
|
33
|
+
@include toolbarItem.toolbar-field-border(var(--gd-palette-complementary-4));
|
|
34
|
+
|
|
32
35
|
&::placeholder {
|
|
33
36
|
color: var(--gd-palette-complementary-6);
|
|
34
37
|
}
|
|
35
38
|
|
|
36
|
-
@include toolbarItem.toolbar-focus-ring;
|
|
37
|
-
|
|
38
39
|
&:not([aria-disabled="true"]) {
|
|
39
40
|
&:hover {
|
|
40
|
-
|
|
41
|
-
background-color: var(--gd-palette-complementary-2);
|
|
41
|
+
@include toolbarItem.toolbar-field-border(var(--gd-palette-complementary-5));
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
// The preset list is on screen.
|
|
45
45
|
&#{$root}__value--isActive {
|
|
46
|
-
color: var(--gd-palette-complementary-
|
|
47
|
-
|
|
46
|
+
background-color: var(--gd-palette-complementary-2);
|
|
47
|
+
|
|
48
|
+
@include toolbarItem.toolbar-field-border(var(--gd-palette-complementary-4));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:active {
|
|
52
|
+
background-color: var(--gd-palette-complementary-3);
|
|
53
|
+
|
|
54
|
+
@include toolbarItem.toolbar-field-border(var(--gd-palette-complementary-5));
|
|
48
55
|
}
|
|
49
56
|
|
|
50
57
|
// After the hover rule so an invalid value stays red under the pointer.
|
|
51
58
|
&#{$root}__value--isInvalid {
|
|
52
59
|
color: var(--gd-palette-error-base);
|
|
53
|
-
|
|
60
|
+
|
|
61
|
+
@include toolbarItem.toolbar-field-border(var(--gd-palette-error-base));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Last, so the ring replaces whichever border the state above drew.
|
|
65
|
+
&:focus-visible {
|
|
66
|
+
box-shadow: inset 0 0 0 2px var(--gd-palette-primary-base);
|
|
54
67
|
}
|
|
55
68
|
}
|
|
56
69
|
|
|
57
70
|
&[aria-disabled="true"] {
|
|
58
|
-
color: var(--gd-palette-complementary-
|
|
71
|
+
color: var(--gd-palette-complementary-5);
|
|
59
72
|
cursor: default;
|
|
73
|
+
|
|
74
|
+
@include toolbarItem.toolbar-focus-ring;
|
|
60
75
|
}
|
|
61
76
|
}
|
|
62
77
|
}
|
|
@@ -110,6 +110,9 @@
|
|
|
110
110
|
--gd-modal-title-color: var(--gd-palette-complementary-9, #000);
|
|
111
111
|
--gd-modal-title-lineColor: var(--gd-palette-complementary-3, #dde4eb);
|
|
112
112
|
|
|
113
|
+
// Toolbar
|
|
114
|
+
--gd-toolbar-borderRadius: 4px;
|
|
115
|
+
|
|
113
116
|
// Chart
|
|
114
117
|
--gd-chart-axis-color: var(--gd-palette-complementary-4-from-theme, #ccd6eb);
|
|
115
118
|
--gd-chart-axis-labelColor: var(--gd-palette-complementary-7, #6d7680);
|
|
@@ -344,6 +347,6 @@
|
|
|
344
347
|
--gd-table-multi-line-line-height-large: 23px;
|
|
345
348
|
--gd-table-dropdown-item-height: 28px;
|
|
346
349
|
--gd-table-title-font-size: 24px;
|
|
347
|
-
--gd-toolbar-borderRadius: 2px;
|
|
350
|
+
--gd-toolbar-control-borderRadius: 2px;
|
|
348
351
|
--gd-tooltip-maxWidth: 300px;
|
|
349
352
|
}
|
package/src/@ui/index.scss
CHANGED
|
@@ -61,10 +61,13 @@
|
|
|
61
61
|
@use "./UiToolbarIconSelect/UiToolbarIconSelect.scss";
|
|
62
62
|
@use "./UiToolbarSelect/UiToolbarSelect.scss";
|
|
63
63
|
@use "./UiToolbarStepper/UiToolbarStepper.scss";
|
|
64
|
+
@use "./UiToolbarInput/UiToolbarInput.scss";
|
|
65
|
+
@use "./UiToolbarPagination/UiToolbarPagination.scss";
|
|
64
66
|
@use "./UiToolbarSegmentedControl/UiToolbarSegmentedControl.scss";
|
|
65
67
|
@use "./UiToolbarDivider/UiToolbarDivider.scss";
|
|
66
68
|
@use "./UiToolbarColorSwatch/UiToolbarColorSwatch.scss";
|
|
67
69
|
@use "./UiResizableSidebar/UiResizableSidebar.scss";
|
|
70
|
+
@use "./UiResizableSidebar/UiResizableSidebarNavigation.scss";
|
|
68
71
|
|
|
69
72
|
// `--gd-font-family` is a `:root` variable only; there is no global `body` font
|
|
70
73
|
// declaration. Apply it once to every kit root so standalone components don't
|