@gooddata/sdk-ui-kit 11.61.0 → 11.62.0-alpha.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/esm/@ui/@types/icon.d.ts +1 -1
- package/esm/@ui/@types/icon.d.ts.map +1 -1
- package/esm/@ui/UiIcon/icons.d.ts.map +1 -1
- package/esm/@ui/UiIcon/icons.js +3 -0
- package/esm/@ui/UiModalDialog/UiModalDialog.js +2 -2
- package/esm/@ui/UiResizableSidebar/UiResizableSidebarNavigation.d.ts +46 -0
- package/esm/@ui/UiResizableSidebar/UiResizableSidebarNavigation.d.ts.map +1 -0
- package/esm/@ui/UiResizableSidebar/UiResizableSidebarNavigation.js +212 -0
- package/esm/@ui/UiResizableSidebar/types.d.ts +61 -0
- package/esm/@ui/UiResizableSidebar/types.d.ts.map +1 -1
- 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/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 +5 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +4 -1
- package/esm/sdk-ui-kit.d.ts +263 -12
- 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 +178 -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 +295 -18
- package/styles/css/main.css.map +1 -1
package/esm/sdk-ui-kit.d.ts
CHANGED
|
@@ -2763,7 +2763,7 @@ export declare function IconTreeMap({ className, width, height, color, ariaHidde
|
|
|
2763
2763
|
/**
|
|
2764
2764
|
* @internal
|
|
2765
2765
|
*/
|
|
2766
|
-
export declare type IconType = "aiAgent" | "aiAgentDisabled" | "brain" | "brainDisabled" | "check" | "checkCircle" | "certification" | "plus" | "plusCircle" | "sync" | "alert" | "alertPaused" | "close" | "cross" | "edit" | "crossCircle" | "question" | "chevronUp" | "chevronRight" | "chevronDown" | "chevronLeft" | "date" | "navigateUp" | "navigateDown" | "navigateRight" | "navigateLeft" | "download" | "slack" | "expand" | "exclamationCircle" | "infoCircle" | "book" | "visible" | "invisible" | "lock" | "unlock" | "ai" | "aiFill" | "drawer" | "drawerEmpty" | "prohibited" | "dropDown" | "dropRight" | "clock" | "clockPaused" | "questionMark" | "upload" | "expandRectangle" | "file" | "number" | "code" | "user" | "userPlus" | "users" | "magic" | "tab" | "pauseCircle" | "filter" | "timer" | "mail" | "envelope" | "copy" | "rain" | "earth" | "geoCollection" | "geoCollectionUpload" | "minimize" | "shrink" | "copyright" | "ellipsis" | "pencil" | "folder" | "folderSmall" | "folderPlus" | "trash" | "arrowUp" | "arrowRight" | "arrowDown" | "arrowLeft" | "levelUp" | "undo" | "redo" | "trendDown" | "trendUp" | "save" | "minus" | "minusCircle" | "percent" | "enter" | "enterRight" | "money" | "ghost" | "warning" | "home" | "settings" | "search" | "university" | "building" | "printer" | "picture" | "visualization" | "dashboard" | "metric" | "fact" | "ldmAttribute" | "ldmKey" | "ldmLabel" | "sharp" | "attribute" | "horn" | "cw" | "ccw" | "table" | "directionColumn" | "directionRow" | "alignLeft" | "alignCenter" | "alignRight" | "alignTop" | "alignMiddle" | "alignBottom" | "bold" | "italic" | "imageContain" | "imageCover" | "imageFill" | "header" | "genai" | "genai2" | "explainai" | "hiddenForAi" | "box" | "ellipsisVertical" | "list" | "drillTo" | "hierarchy" | "history" | "history2" | "thumbsUp" | "thumbsDown" | "send" | "visualizationArea" | "visualizationTable" | "visualizationTreemap" | "visualizationScatter" | "visualizationDonut" | "visualizationHeadline" | "visualizationColumn" | "visualizationLine" | "visualizationPyramid" | "visualizationFunnel" | "visualizationHeatmap" | "visualizationBubble" | "visualizationPie" | "visualizationBar" | "visualizationCombo" | "visualizationBullet" | "visualizationWaterfall" | "visualizationDependencywheel" | "visualizationSankey" | "visualizationPushpin" | "visualizationRepeater" | "visualizationXirr" | "link" | "externalLink" | "click" | "fileXlsx" | "filePptx" | "filePdf" | "fileImage" | "fileCsvFormatted" | "fileCsvRaw" | "aiDocument" | "recommendation" | "streamUp" | "streamDown" | "stream" | "density" | "parameter" | "pin" | "unpin" | "speechBubble" | "pieChart" | "timezone" | "sidePanelCollapse" | "sidePanel" | "sidePanelExpand" | "lineStyle" | "lineStyleSolid" | "lineStyleDashed" | "lineStyleDotted" | "lineWidth1" | "lineWidth2" | "lineWidth3" | "lineWidth4";
|
|
2766
|
+
export declare type IconType = "aiAgent" | "aiAgentDisabled" | "brain" | "brainDisabled" | "check" | "checkCircle" | "certification" | "plus" | "plusCircle" | "sync" | "alert" | "alertPaused" | "close" | "cross" | "edit" | "crossCircle" | "question" | "chevronUp" | "chevronRight" | "chevronDown" | "chevronLeft" | "date" | "navigateUp" | "navigateDown" | "navigateRight" | "navigateLeft" | "download" | "slack" | "expand" | "exclamationCircle" | "infoCircle" | "book" | "visible" | "invisible" | "lock" | "unlock" | "ai" | "aiFill" | "drawer" | "drawerEmpty" | "prohibited" | "dropDown" | "dropRight" | "clock" | "clockPaused" | "questionMark" | "upload" | "expandRectangle" | "file" | "number" | "code" | "user" | "userPlus" | "users" | "magic" | "tab" | "pauseCircle" | "filter" | "timer" | "mail" | "envelope" | "copy" | "rain" | "earth" | "geoCollection" | "geoCollectionUpload" | "minimize" | "shrink" | "copyright" | "ellipsis" | "pencil" | "folder" | "folderSmall" | "folderPlus" | "trash" | "arrowUp" | "arrowRight" | "arrowDown" | "arrowLeft" | "levelUp" | "undo" | "redo" | "trendDown" | "trendUp" | "save" | "minus" | "minusCircle" | "percent" | "enter" | "enterRight" | "money" | "ghost" | "warning" | "home" | "settings" | "search" | "university" | "building" | "printer" | "picture" | "visualization" | "dashboard" | "metric" | "fact" | "ldmAttribute" | "ldmKey" | "ldmLabel" | "sharp" | "attribute" | "horn" | "cw" | "ccw" | "table" | "directionColumn" | "directionRow" | "alignLeft" | "alignCenter" | "alignRight" | "alignTop" | "alignMiddle" | "alignBottom" | "bold" | "italic" | "imageContain" | "imageCover" | "imageFill" | "header" | "genai" | "genai2" | "explainai" | "hiddenForAi" | "box" | "ellipsisVertical" | "list" | "drillTo" | "hierarchy" | "history" | "history2" | "thumbsUp" | "thumbsDown" | "send" | "visualizationArea" | "visualizationTable" | "visualizationTreemap" | "visualizationScatter" | "visualizationDonut" | "visualizationHeadline" | "visualizationColumn" | "visualizationLine" | "visualizationPyramid" | "visualizationFunnel" | "visualizationHeatmap" | "visualizationBubble" | "visualizationPie" | "visualizationBar" | "visualizationCombo" | "visualizationBullet" | "visualizationWaterfall" | "visualizationDependencywheel" | "visualizationSankey" | "visualizationPushpin" | "visualizationRepeater" | "visualizationXirr" | "link" | "externalLink" | "click" | "fileXlsx" | "filePptx" | "filePdf" | "fileImage" | "fileCsvFormatted" | "fileCsvRaw" | "aiDocument" | "recommendation" | "streamUp" | "streamDown" | "stream" | "density" | "parameter" | "pin" | "unpin" | "speechBubble" | "pieChart" | "timezone" | "sidePanelCollapse" | "sidePanel" | "sidePanelExpand" | "lineStyle" | "lineStyleSolid" | "lineStyleDashed" | "lineStyleDotted" | "lineWidth1" | "lineWidth2" | "lineWidth3" | "lineWidth4" | "linear" | "spline" | "stepped";
|
|
2767
2767
|
|
|
2768
2768
|
/**
|
|
2769
2769
|
* @internal
|
|
@@ -9266,6 +9266,82 @@ export declare interface IUiResizableSidebarHandleProps {
|
|
|
9266
9266
|
dataTestId?: string;
|
|
9267
9267
|
}
|
|
9268
9268
|
|
|
9269
|
+
/**
|
|
9270
|
+
* @internal
|
|
9271
|
+
*/
|
|
9272
|
+
export declare interface IUiResizableSidebarNavigationBadge {
|
|
9273
|
+
kind: "dot";
|
|
9274
|
+
label: string;
|
|
9275
|
+
}
|
|
9276
|
+
|
|
9277
|
+
/**
|
|
9278
|
+
* A top-level item of a {@link UiResizableSidebarNavigation}. With `children` it is an expandable group
|
|
9279
|
+
* whose sub-items are listed while the group is expanded.
|
|
9280
|
+
*
|
|
9281
|
+
* @internal
|
|
9282
|
+
*/
|
|
9283
|
+
export declare interface IUiResizableSidebarNavigationItem extends IUiResizableSidebarNavigationSubItem {
|
|
9284
|
+
/**
|
|
9285
|
+
* Icon shown before the label, and alone in rail mode: a kit icon name, or a custom node that
|
|
9286
|
+
* paints itself in `currentColor`.
|
|
9287
|
+
*/
|
|
9288
|
+
icon?: IconType | ReactNode;
|
|
9289
|
+
children?: IUiResizableSidebarNavigationSubItem[];
|
|
9290
|
+
}
|
|
9291
|
+
|
|
9292
|
+
/**
|
|
9293
|
+
* @internal
|
|
9294
|
+
*/
|
|
9295
|
+
export declare interface IUiResizableSidebarNavigationProps {
|
|
9296
|
+
items: IUiResizableSidebarNavigationItem[];
|
|
9297
|
+
/**
|
|
9298
|
+
* Called when the user activates an item. A link item is not prevented from following its `href`;
|
|
9299
|
+
* call `event.preventDefault()` to route it in the application instead. A click with Alt, Ctrl, Meta
|
|
9300
|
+
* or Shift on a link item is left to the browser (new tab, window or download) and does not call
|
|
9301
|
+
* this.
|
|
9302
|
+
*
|
|
9303
|
+
* A group with an `href` calls this only while it is not active. Activating an active group toggles
|
|
9304
|
+
* its sub-items, so its own `href` is then reached only by a modified click; list a group page that
|
|
9305
|
+
* must stay reachable as one of its sub-items. In rail mode every top-level item calls this,
|
|
9306
|
+
* including a group without an `href`, whose sub-items the consumer can reach by expanding the
|
|
9307
|
+
* sidebar.
|
|
9308
|
+
*/
|
|
9309
|
+
onSelect?: (item: UiResizableSidebarNavigationItem, event: MouseEvent_2 | KeyboardEvent_2) => void;
|
|
9310
|
+
accessibilityConfig: UiResizableSidebarNavigationNamingConfig;
|
|
9311
|
+
/**
|
|
9312
|
+
* Rail mode lists only the icons of the top-level items, each with a tooltip, and no sub-items.
|
|
9313
|
+
* Defaults to whether the nearest {@link UiResizableSidebarProvider} is collapsed to a rail.
|
|
9314
|
+
*/
|
|
9315
|
+
isRail?: boolean;
|
|
9316
|
+
dataTestId?: string;
|
|
9317
|
+
}
|
|
9318
|
+
|
|
9319
|
+
/**
|
|
9320
|
+
* A page listed in a {@link UiResizableSidebarNavigation}: a sub-item of a group, or the base of a
|
|
9321
|
+
* top-level item.
|
|
9322
|
+
*
|
|
9323
|
+
* @internal
|
|
9324
|
+
*/
|
|
9325
|
+
export declare interface IUiResizableSidebarNavigationSubItem {
|
|
9326
|
+
id: string;
|
|
9327
|
+
label: string;
|
|
9328
|
+
/**
|
|
9329
|
+
* Renders the item as a link. An item without `href` renders as a button.
|
|
9330
|
+
*/
|
|
9331
|
+
href?: string;
|
|
9332
|
+
/**
|
|
9333
|
+
* Marks the page the user is on; rendered as `aria-current="page"`.
|
|
9334
|
+
*/
|
|
9335
|
+
isSelected?: boolean;
|
|
9336
|
+
/**
|
|
9337
|
+
* A dot next to the label that marks the item as needing attention. The label is its accessible
|
|
9338
|
+
* text, e.g. "Needs attention". A collapsed group, and a group in the rail, shows the badge of its
|
|
9339
|
+
* first badged sub-page.
|
|
9340
|
+
*/
|
|
9341
|
+
badge?: IUiResizableSidebarNavigationBadge;
|
|
9342
|
+
dataTestId?: string;
|
|
9343
|
+
}
|
|
9344
|
+
|
|
9269
9345
|
/**
|
|
9270
9346
|
* @internal
|
|
9271
9347
|
*/
|
|
@@ -9967,6 +10043,69 @@ export declare interface IUiToolbarIconSelectProps {
|
|
|
9967
10043
|
ariaAttributes?: IUiDropdownButtonRenderProps["ariaAttributes"];
|
|
9968
10044
|
}
|
|
9969
10045
|
|
|
10046
|
+
/**
|
|
10047
|
+
* @internal
|
|
10048
|
+
*/
|
|
10049
|
+
export declare interface IUiToolbarInputAccessibilityConfig {
|
|
10050
|
+
/**
|
|
10051
|
+
* Name of the value, for example "Width". Always the full name, never only the prefix letter.
|
|
10052
|
+
*/
|
|
10053
|
+
ariaLabel: string;
|
|
10054
|
+
/**
|
|
10055
|
+
* Spoken form of the unit, for example "pixels". Defaults to `unit`.
|
|
10056
|
+
*/
|
|
10057
|
+
unitLabel?: string;
|
|
10058
|
+
}
|
|
10059
|
+
|
|
10060
|
+
/**
|
|
10061
|
+
* @internal
|
|
10062
|
+
*/
|
|
10063
|
+
export declare interface IUiToolbarInputProps {
|
|
10064
|
+
/**
|
|
10065
|
+
* The committed value as text, for example "120".
|
|
10066
|
+
*/
|
|
10067
|
+
value: string;
|
|
10068
|
+
/**
|
|
10069
|
+
* Called with the typed text on Enter and on blur. Escape reverts the typed text instead.
|
|
10070
|
+
* After a commit the field shows `value` again, so a parent that clamps or rejects the text
|
|
10071
|
+
* only has to keep `value` as it wants it. While `isInvalid` is true, the typed text stays.
|
|
10072
|
+
*/
|
|
10073
|
+
onCommit: (value: string) => void;
|
|
10074
|
+
/**
|
|
10075
|
+
* Called on ArrowUp and ArrowDown. `isLargeStep` is true while Shift is held.
|
|
10076
|
+
*/
|
|
10077
|
+
onStep?: (direction: 1 | -1, isLargeStep: boolean) => void;
|
|
10078
|
+
/**
|
|
10079
|
+
* A short text before the value that names it, for example "W". Use either `prefix` or
|
|
10080
|
+
* `prefixIcon`, not both.
|
|
10081
|
+
*/
|
|
10082
|
+
prefix?: string;
|
|
10083
|
+
/**
|
|
10084
|
+
* A 14px icon before the value that names it. Never a generic icon such as search.
|
|
10085
|
+
*/
|
|
10086
|
+
prefixIcon?: IconType;
|
|
10087
|
+
/**
|
|
10088
|
+
* The unit after the value, for example "px", "%" or "°".
|
|
10089
|
+
*/
|
|
10090
|
+
unit?: string;
|
|
10091
|
+
/**
|
|
10092
|
+
* Width of the field in pixels. Size it for the longest value in its range so the toolbar does
|
|
10093
|
+
* not move while typing.
|
|
10094
|
+
* @defaultValue 64
|
|
10095
|
+
*/
|
|
10096
|
+
width?: number;
|
|
10097
|
+
isDisabled?: boolean;
|
|
10098
|
+
/**
|
|
10099
|
+
* Marks the typed text as not acceptable.
|
|
10100
|
+
* @defaultValue false
|
|
10101
|
+
*/
|
|
10102
|
+
isInvalid?: boolean;
|
|
10103
|
+
placeholder?: string;
|
|
10104
|
+
accessibilityConfig: IUiToolbarInputAccessibilityConfig;
|
|
10105
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
10106
|
+
dataTestId?: string;
|
|
10107
|
+
}
|
|
10108
|
+
|
|
9970
10109
|
/**
|
|
9971
10110
|
* Props every interactive toolbar item shares.
|
|
9972
10111
|
*
|
|
@@ -10030,6 +10169,58 @@ export declare interface IUiToolbarMoreButtonProps {
|
|
|
10030
10169
|
ariaAttributes?: IUiDropdownButtonRenderProps["ariaAttributes"];
|
|
10031
10170
|
}
|
|
10032
10171
|
|
|
10172
|
+
/**
|
|
10173
|
+
* @internal
|
|
10174
|
+
*/
|
|
10175
|
+
export declare interface IUiToolbarPaginationAccessibilityConfig {
|
|
10176
|
+
/**
|
|
10177
|
+
* Name of the current page, for example "Page".
|
|
10178
|
+
*/
|
|
10179
|
+
ariaLabel: string;
|
|
10180
|
+
/**
|
|
10181
|
+
* Name of the previous control, for example "Previous page".
|
|
10182
|
+
*/
|
|
10183
|
+
previousLabel: string;
|
|
10184
|
+
/**
|
|
10185
|
+
* Name of the next control, for example "Next page".
|
|
10186
|
+
*/
|
|
10187
|
+
nextLabel: string;
|
|
10188
|
+
/**
|
|
10189
|
+
* Spoken form of the position, for example "Page 3 of 12". Announced when the page changes.
|
|
10190
|
+
* Defaults to the label followed by the visible text.
|
|
10191
|
+
*/
|
|
10192
|
+
valueText?: string;
|
|
10193
|
+
/**
|
|
10194
|
+
* Spoken form of the total next to the editable page, for example "of 12".
|
|
10195
|
+
* Defaults to the visible text.
|
|
10196
|
+
*/
|
|
10197
|
+
totalLabel?: string;
|
|
10198
|
+
}
|
|
10199
|
+
|
|
10200
|
+
/**
|
|
10201
|
+
* @internal
|
|
10202
|
+
*/
|
|
10203
|
+
export declare interface IUiToolbarPaginationProps {
|
|
10204
|
+
/**
|
|
10205
|
+
* The current page, starting at 1.
|
|
10206
|
+
*/
|
|
10207
|
+
currentPage: number;
|
|
10208
|
+
totalPages: number;
|
|
10209
|
+
/**
|
|
10210
|
+
* Called with the page to move to. A typed page is clamped to the range from 1 to `totalPages`.
|
|
10211
|
+
*/
|
|
10212
|
+
onPageChange: (page: number) => void;
|
|
10213
|
+
/**
|
|
10214
|
+
* Makes the current page a field the user can type a page into. Enter and blur go to the typed
|
|
10215
|
+
* page, Escape reverts it.
|
|
10216
|
+
* @defaultValue false
|
|
10217
|
+
*/
|
|
10218
|
+
isValueEditable?: boolean;
|
|
10219
|
+
isDisabled?: boolean;
|
|
10220
|
+
accessibilityConfig: IUiToolbarPaginationAccessibilityConfig;
|
|
10221
|
+
dataTestId?: string;
|
|
10222
|
+
}
|
|
10223
|
+
|
|
10033
10224
|
/**
|
|
10034
10225
|
* @internal
|
|
10035
10226
|
*/
|
|
@@ -10122,15 +10313,15 @@ export declare interface IUiToolbarSelectProps {
|
|
|
10122
10313
|
*/
|
|
10123
10314
|
export declare interface IUiToolbarStepperAccessibilityConfig {
|
|
10124
10315
|
/**
|
|
10125
|
-
* Name of the value, for example "Zoom"
|
|
10316
|
+
* Name of the value, for example "Zoom".
|
|
10126
10317
|
*/
|
|
10127
10318
|
ariaLabel: string;
|
|
10128
10319
|
/**
|
|
10129
|
-
* Name of the increase control, for example "Zoom in"
|
|
10320
|
+
* Name of the increase control, for example "Zoom in".
|
|
10130
10321
|
*/
|
|
10131
10322
|
incrementLabel: string;
|
|
10132
10323
|
/**
|
|
10133
|
-
* Name of the decrease control, for example "Zoom out"
|
|
10324
|
+
* Name of the decrease control, for example "Zoom out".
|
|
10134
10325
|
*/
|
|
10135
10326
|
decrementLabel: string;
|
|
10136
10327
|
}
|
|
@@ -10140,12 +10331,7 @@ export declare interface IUiToolbarStepperAccessibilityConfig {
|
|
|
10140
10331
|
*/
|
|
10141
10332
|
export declare interface IUiToolbarStepperProps {
|
|
10142
10333
|
/**
|
|
10143
|
-
*
|
|
10144
|
-
* left and right arrows and shows the value as a readout.
|
|
10145
|
-
*/
|
|
10146
|
-
variant: "value" | "pagination";
|
|
10147
|
-
/**
|
|
10148
|
-
* The committed value as text, for example "100%" or "1 / 2".
|
|
10334
|
+
* The committed value as text, for example "100%".
|
|
10149
10335
|
*/
|
|
10150
10336
|
value: string;
|
|
10151
10337
|
onStep: (direction: 1 | -1) => void;
|
|
@@ -10162,7 +10348,7 @@ export declare interface IUiToolbarStepperProps {
|
|
|
10162
10348
|
decreaseIcon?: IconType;
|
|
10163
10349
|
increaseIcon?: IconType;
|
|
10164
10350
|
/**
|
|
10165
|
-
* Makes the value
|
|
10351
|
+
* Makes the value editable. Enter commits the typed text. Escape and blur
|
|
10166
10352
|
* revert the typed text to the committed value.
|
|
10167
10353
|
*/
|
|
10168
10354
|
onCommit?: (value: string) => void;
|
|
@@ -11066,6 +11252,13 @@ export declare function OverlayControllerProvider({ children, overlayController
|
|
|
11066
11252
|
*/
|
|
11067
11253
|
export declare type OverlayPositionType = "absolute" | "fixed" | SameAsTargetPosition;
|
|
11068
11254
|
|
|
11255
|
+
/**
|
|
11256
|
+
* Context with the z-index of the closest ui-kit overlay that renders its subtree.
|
|
11257
|
+
*
|
|
11258
|
+
* @internal
|
|
11259
|
+
*/
|
|
11260
|
+
export declare const OverlayZIndexContext: Context<number | undefined>;
|
|
11261
|
+
|
|
11069
11262
|
/**
|
|
11070
11263
|
* @internal
|
|
11071
11264
|
*/
|
|
@@ -12478,6 +12671,38 @@ export declare function UiResizableSidebarExpandTrigger({ onExpand, label, dataT
|
|
|
12478
12671
|
*/
|
|
12479
12672
|
export declare function UiResizableSidebarHandle({ accessibilityConfig, dataTestId, }: IUiResizableSidebarHandleProps): ReactElement;
|
|
12480
12673
|
|
|
12674
|
+
/**
|
|
12675
|
+
* Item list of a sidebar: top-level pages and expandable groups of sub-pages. A group expands by itself
|
|
12676
|
+
* when it or one of its sub-items is selected, and the user can expand and collapse it with its chevron
|
|
12677
|
+
* or the Left and Right arrow keys. The list is one tab stop: Up and Down move between the listed items,
|
|
12678
|
+
* Home and End jump to the ends.
|
|
12679
|
+
*
|
|
12680
|
+
* @remarks
|
|
12681
|
+
* Selection is driven by the `isSelected` flags of the items; the list does not keep a selection of its
|
|
12682
|
+
* own. A group with a selected sub-item is highlighted together with the sub-item.
|
|
12683
|
+
*
|
|
12684
|
+
* @internal
|
|
12685
|
+
*/
|
|
12686
|
+
export declare function UiResizableSidebarNavigation({ items, onSelect, accessibilityConfig, isRail: isRailProp, dataTestId, }: IUiResizableSidebarNavigationProps): ReactElement;
|
|
12687
|
+
|
|
12688
|
+
/**
|
|
12689
|
+
* @internal
|
|
12690
|
+
*/
|
|
12691
|
+
export declare type UiResizableSidebarNavigationItem = IUiResizableSidebarNavigationItem | IUiResizableSidebarNavigationSubItem;
|
|
12692
|
+
|
|
12693
|
+
/**
|
|
12694
|
+
* The navigation needs an accessible name.
|
|
12695
|
+
*
|
|
12696
|
+
* @internal
|
|
12697
|
+
*/
|
|
12698
|
+
export declare type UiResizableSidebarNavigationNamingConfig = {
|
|
12699
|
+
ariaLabel: NonNullable<IAccessibilityConfigBase["ariaLabel"]>;
|
|
12700
|
+
ariaLabelledBy?: IAccessibilityConfigBase["ariaLabelledBy"];
|
|
12701
|
+
} | {
|
|
12702
|
+
ariaLabel?: IAccessibilityConfigBase["ariaLabel"];
|
|
12703
|
+
ariaLabelledBy: NonNullable<IAccessibilityConfigBase["ariaLabelledBy"]>;
|
|
12704
|
+
};
|
|
12705
|
+
|
|
12481
12706
|
/**
|
|
12482
12707
|
* Shares one sidebar state between the sidebar and controls rendered outside it.
|
|
12483
12708
|
*
|
|
@@ -12737,6 +12962,14 @@ export declare const UiToolbarIconButton: ForwardRefExoticComponent<IUiToolbarIc
|
|
|
12737
12962
|
*/
|
|
12738
12963
|
export declare const UiToolbarIconSelect: ForwardRefExoticComponent<IUiToolbarIconSelectProps & RefAttributes<HTMLButtonElement>>;
|
|
12739
12964
|
|
|
12965
|
+
/**
|
|
12966
|
+
* A typable number field with an optional prefix and unit. The prefix stays on the left; the value
|
|
12967
|
+
* and the unit are aligned to the right.
|
|
12968
|
+
*
|
|
12969
|
+
* @internal
|
|
12970
|
+
*/
|
|
12971
|
+
export declare const UiToolbarInput: ForwardRefExoticComponent<IUiToolbarInputProps & RefAttributes<HTMLLabelElement>>;
|
|
12972
|
+
|
|
12740
12973
|
/**
|
|
12741
12974
|
* Overflow trigger of a toolbar. Build the menu it opens from {@link UiMenu} in a {@link UiDropdown}.
|
|
12742
12975
|
*
|
|
@@ -12757,6 +12990,14 @@ export declare type UiToolbarNamingConfig = {
|
|
|
12757
12990
|
ariaLabelledBy: NonNullable<IAccessibilityConfigBase["ariaLabelledBy"]>;
|
|
12758
12991
|
};
|
|
12759
12992
|
|
|
12993
|
+
/**
|
|
12994
|
+
* Previous and next controls around the current page and the total, for example "1 / 12". Each
|
|
12995
|
+
* control is its own toolbar stop.
|
|
12996
|
+
*
|
|
12997
|
+
* @internal
|
|
12998
|
+
*/
|
|
12999
|
+
export declare const UiToolbarPagination: ForwardRefExoticComponent<IUiToolbarPaginationProps & RefAttributes<HTMLDivElement>>;
|
|
13000
|
+
|
|
12760
13001
|
/**
|
|
12761
13002
|
* Mutually exclusive choices rendered as one borderless strip. Arrow keys move the selection and
|
|
12762
13003
|
* the focus; the whole group is one tab stop. Standalone the arrows wrap; inside a {@link UiToolbar}
|
|
@@ -12787,7 +13028,8 @@ export declare type UiToolbarSegmentedControlChangeEvent = MouseEvent_2<HTMLElem
|
|
|
12787
13028
|
export declare const UiToolbarSelect: ForwardRefExoticComponent<IUiToolbarSelectProps & RefAttributes<HTMLButtonElement>>;
|
|
12788
13029
|
|
|
12789
13030
|
/**
|
|
12790
|
-
* Two side controls around a value. Each part is its
|
|
13031
|
+
* Two side controls around a value that is adjusted by steps, for example zoom. Each part is its
|
|
13032
|
+
* own toolbar stop. To move through pages, use {@link UiToolbarPagination}.
|
|
12791
13033
|
*
|
|
12792
13034
|
* @internal
|
|
12793
13035
|
*/
|
|
@@ -12944,6 +13186,15 @@ export declare function useCloseOnParentScroll(isOpen: boolean, onClose: () => v
|
|
|
12944
13186
|
/** @internal */
|
|
12945
13187
|
export declare function useComboboxState(): IUiComboboxState;
|
|
12946
13188
|
|
|
13189
|
+
/**
|
|
13190
|
+
* Hook to get the z-index of the closest ui-kit overlay that renders the calling component.
|
|
13191
|
+
*
|
|
13192
|
+
* @returns the overlay's z-index, or undefined when the component is not rendered inside an overlay
|
|
13193
|
+
*
|
|
13194
|
+
* @internal
|
|
13195
|
+
*/
|
|
13196
|
+
export declare const useContainingOverlayZIndex: () => number | undefined;
|
|
13197
|
+
|
|
12947
13198
|
/**
|
|
12948
13199
|
* @internal
|
|
12949
13200
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-kit",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.62.0-alpha.1",
|
|
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.
|
|
83
|
-
"@gooddata/sdk-model": "11.
|
|
84
|
-
"@gooddata/sdk-ui
|
|
85
|
-
"@gooddata/
|
|
86
|
-
"@gooddata/
|
|
82
|
+
"@gooddata/sdk-backend-spi": "11.62.0-alpha.1",
|
|
83
|
+
"@gooddata/sdk-model": "11.62.0-alpha.1",
|
|
84
|
+
"@gooddata/sdk-ui": "11.62.0-alpha.1",
|
|
85
|
+
"@gooddata/sdk-ui-theme-provider": "11.62.0-alpha.1",
|
|
86
|
+
"@gooddata/util": "11.62.0-alpha.1"
|
|
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/reference-workspace": "11.
|
|
134
|
-
"@gooddata/sdk-backend-mockingbird": "11.
|
|
135
|
-
"@gooddata/stylelint-config": "11.
|
|
131
|
+
"@gooddata/eslint-config": "11.62.0-alpha.1",
|
|
132
|
+
"@gooddata/oxlint-config": "11.62.0-alpha.1",
|
|
133
|
+
"@gooddata/reference-workspace": "11.62.0-alpha.1",
|
|
134
|
+
"@gooddata/sdk-backend-mockingbird": "11.62.0-alpha.1",
|
|
135
|
+
"@gooddata/stylelint-config": "11.62.0-alpha.1"
|
|
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,178 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
|
|
3
|
+
@use "../../../styles/scss/variables";
|
|
4
|
+
@use "../../../styles/scss/mixins";
|
|
5
|
+
|
|
6
|
+
$item-height: 40px;
|
|
7
|
+
$rail-item-size: 36px;
|
|
8
|
+
// Rail width minus the inset on both sides leaves exactly one rail item.
|
|
9
|
+
$list-inset: 6px;
|
|
10
|
+
$icon-size: 18px;
|
|
11
|
+
$item-gap: 10px;
|
|
12
|
+
$badge-size: 8px;
|
|
13
|
+
|
|
14
|
+
.gd-ui-kit-resizable-sidebar-navigation {
|
|
15
|
+
$root: &;
|
|
16
|
+
|
|
17
|
+
display: block;
|
|
18
|
+
|
|
19
|
+
&__list,
|
|
20
|
+
&__children {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
gap: 2px;
|
|
24
|
+
margin: 0;
|
|
25
|
+
padding: 0;
|
|
26
|
+
list-style: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&__list {
|
|
30
|
+
padding: 0 $list-inset;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__children {
|
|
34
|
+
margin-top: 2px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// The rail centers each row's content, whether it is the item or its tooltip anchor wrapper.
|
|
38
|
+
&__row--rail {
|
|
39
|
+
display: flex;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&__item {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
gap: $item-gap;
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
width: 100%;
|
|
49
|
+
min-height: $item-height;
|
|
50
|
+
padding: 0 12px;
|
|
51
|
+
border: 0;
|
|
52
|
+
border-radius: variables.$gd-rounded-small;
|
|
53
|
+
background: transparent;
|
|
54
|
+
color: variables.$gd-color-text;
|
|
55
|
+
font-family: inherit;
|
|
56
|
+
font-size: 14px;
|
|
57
|
+
line-height: 20px;
|
|
58
|
+
text-align: left;
|
|
59
|
+
text-decoration: none;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
transition: var(--gd-transition-all);
|
|
62
|
+
|
|
63
|
+
&:hover {
|
|
64
|
+
background-color: variables.$is-focused-background;
|
|
65
|
+
color: variables.$gd-color-text;
|
|
66
|
+
text-decoration: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:focus {
|
|
70
|
+
outline: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:focus-visible {
|
|
74
|
+
@include mixins.focus-ring;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&--active {
|
|
78
|
+
font-weight: 700;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&--selected {
|
|
82
|
+
background-color: variables.$is-focused-background;
|
|
83
|
+
color: variables.$gd-palette-primary-base;
|
|
84
|
+
|
|
85
|
+
&:hover {
|
|
86
|
+
color: variables.$gd-palette-primary-base;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Sub-items align their label with the label of the group above.
|
|
91
|
+
&--child {
|
|
92
|
+
padding-left: 12px + $icon-size + $item-gap;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&--rail {
|
|
96
|
+
position: relative;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
width: $rail-item-size;
|
|
99
|
+
min-height: $rail-item-size;
|
|
100
|
+
padding: 0;
|
|
101
|
+
|
|
102
|
+
// Without a label, the icon alone has to show that the group holds the current page.
|
|
103
|
+
&#{$root}__item--active {
|
|
104
|
+
background-color: variables.$is-focused-background;
|
|
105
|
+
color: variables.$gd-palette-primary-base;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&__icon {
|
|
111
|
+
position: relative;
|
|
112
|
+
display: flex;
|
|
113
|
+
flex: 0 0 auto;
|
|
114
|
+
align-items: center;
|
|
115
|
+
justify-content: center;
|
|
116
|
+
width: $icon-size;
|
|
117
|
+
height: $icon-size;
|
|
118
|
+
font-size: 12px;
|
|
119
|
+
font-weight: 700;
|
|
120
|
+
line-height: 1;
|
|
121
|
+
text-transform: uppercase;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&__label {
|
|
125
|
+
flex: 1 1 auto;
|
|
126
|
+
min-width: 0;
|
|
127
|
+
overflow: hidden;
|
|
128
|
+
white-space: nowrap;
|
|
129
|
+
text-overflow: ellipsis;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// Text for assistive technology only: the rail label and the badge label.
|
|
133
|
+
&__sr-only {
|
|
134
|
+
position: absolute;
|
|
135
|
+
width: 1px;
|
|
136
|
+
height: 1px;
|
|
137
|
+
margin: -1px;
|
|
138
|
+
padding: 0;
|
|
139
|
+
overflow: hidden;
|
|
140
|
+
clip: rect(0, 0, 0, 0);
|
|
141
|
+
white-space: nowrap;
|
|
142
|
+
border: 0;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&__badge {
|
|
146
|
+
position: relative;
|
|
147
|
+
flex: 0 0 auto;
|
|
148
|
+
width: $badge-size;
|
|
149
|
+
height: $badge-size;
|
|
150
|
+
border-radius: 50%;
|
|
151
|
+
background-color: variables.$gd-palette-warning-base;
|
|
152
|
+
|
|
153
|
+
// In the rail the badge sits on the corner of the icon.
|
|
154
|
+
#{$root}__item--rail & {
|
|
155
|
+
position: absolute;
|
|
156
|
+
top: 5px;
|
|
157
|
+
right: 5px;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&__chevron {
|
|
162
|
+
display: flex;
|
|
163
|
+
flex: 0 0 auto;
|
|
164
|
+
align-items: center;
|
|
165
|
+
transition: var(--gd-transition-all);
|
|
166
|
+
|
|
167
|
+
&--expanded {
|
|
168
|
+
transform: rotate(90deg);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@media (prefers-reduced-motion: reduce) {
|
|
174
|
+
.gd-ui-kit-resizable-sidebar-navigation__chevron,
|
|
175
|
+
.gd-ui-kit-resizable-sidebar-navigation__item {
|
|
176
|
+
transition: none;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
@@ -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;
|