@gooddata/sdk-ui-kit 11.58.0-alpha.2 → 11.58.0-alpha.4

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.
Files changed (43) hide show
  1. package/esm/@ui/UiDropdown/types.d.ts +2 -2
  2. package/esm/@ui/UiDropdown/types.d.ts.map +1 -1
  3. package/esm/@ui/UiListbox/defaults/DefaultUiListboxInteractiveItemComponent.js +1 -1
  4. package/esm/@ui/UiListbox/types.d.ts +8 -0
  5. package/esm/@ui/UiListbox/types.d.ts.map +1 -1
  6. package/esm/@ui/UiModalDialog/UiModalDialog.d.ts +10 -3
  7. package/esm/@ui/UiModalDialog/UiModalDialog.d.ts.map +1 -1
  8. package/esm/@ui/UiModalDialog/UiModalDialog.js +4 -4
  9. package/esm/@ui/UiPopover/UiPopover.d.ts +2 -2
  10. package/esm/@ui/UiPopover/UiPopover.d.ts.map +1 -1
  11. package/esm/@ui/UiRestrictedPlaceholder/UiRestrictedPlaceholder.d.ts +33 -0
  12. package/esm/@ui/UiRestrictedPlaceholder/UiRestrictedPlaceholder.d.ts.map +1 -0
  13. package/esm/@ui/UiRestrictedPlaceholder/UiRestrictedPlaceholder.js +16 -0
  14. package/esm/Dialog/CsvDelimiterPicker.d.ts.map +1 -1
  15. package/esm/Dialog/CsvDelimiterPicker.js +6 -3
  16. package/esm/Dropdown/Dropdown.d.ts +2 -2
  17. package/esm/Dropdown/Dropdown.d.ts.map +1 -1
  18. package/esm/Dropdown/DropdownButton.js +1 -1
  19. package/esm/Header/generateHeaderMenuItemsGroups.js +1 -1
  20. package/esm/RichText/RestrictedReferenceMarker.d.ts +1 -1
  21. package/esm/RichText/RestrictedReferenceMarker.d.ts.map +1 -1
  22. package/esm/RichText/RestrictedReferenceMarker.js +3 -2
  23. package/esm/RichText/plugins/rehype-references.js +1 -1
  24. package/esm/Timezone/TimezoneSelect.d.ts +5 -1
  25. package/esm/Timezone/TimezoneSelect.d.ts.map +1 -1
  26. package/esm/Timezone/TimezoneSelect.js +1 -0
  27. package/esm/index.d.ts +1 -0
  28. package/esm/index.d.ts.map +1 -1
  29. package/esm/index.js +1 -0
  30. package/esm/sdk-ui-kit.d.ts +62 -9
  31. package/package.json +11 -11
  32. package/src/@ui/UiChip/UiChip.scss +5 -2
  33. package/src/@ui/UiModalDialog/UiModalDialog.scss +13 -0
  34. package/src/@ui/UiRestrictedPlaceholder/UiRestrictedPlaceholder.scss +53 -0
  35. package/src/@ui/index.scss +1 -0
  36. package/styles/css/csvDelimiterPicker.css +5 -0
  37. package/styles/css/csvDelimiterPicker.css.map +1 -1
  38. package/styles/css/main.css +66 -8
  39. package/styles/css/main.css.map +1 -1
  40. package/styles/css/richText.css +4 -6
  41. package/styles/css/richText.css.map +1 -1
  42. package/styles/scss/csvDelimiterPicker.scss +5 -0
  43. package/styles/scss/richText.scss +4 -7
@@ -3431,8 +3431,8 @@ export declare interface IDropdownProps {
3431
3431
  enableAutoToggle?: boolean;
3432
3432
  closeOnEscape?: boolean;
3433
3433
  autofocusOnOpen?: boolean;
3434
- initialFocus?: RefObject<HTMLElement> | string;
3435
- returnFocusTo?: RefObject<HTMLElement> | string;
3434
+ initialFocus?: RefObject<HTMLElement | null> | string;
3435
+ returnFocusTo?: RefObject<HTMLElement | null> | string;
3436
3436
  accessibilityConfig?: {
3437
3437
  triggerRole?: "button" | "combobox";
3438
3438
  popupRole?: "listbox" | "tree" | "grid" | "dialog";
@@ -6596,9 +6596,13 @@ export declare interface ITimezoneSelectSpecialItem {
6596
6596
  */
6597
6597
  label: string;
6598
6598
  /**
6599
- * Tooltip of the item.
6599
+ * Tooltip of the item. Also read by screen readers.
6600
6600
  */
6601
6601
  tooltip?: string;
6602
+ /**
6603
+ * Rich content rendered in the visual tooltip instead of `tooltip`, e.g. text with a link.
6604
+ */
6605
+ tooltipContent?: ReactNode;
6602
6606
  }
6603
6607
 
6604
6608
  /**
@@ -7808,11 +7812,11 @@ export declare interface IUiDropdownProps {
7808
7812
  /**
7809
7813
  * Element to focus initially when opened.
7810
7814
  */
7811
- initialFocus?: RefObject<HTMLElement> | string;
7815
+ initialFocus?: RefObject<HTMLElement | null> | string;
7812
7816
  /**
7813
7817
  * Element to return focus to when closed.
7814
7818
  */
7815
- returnFocusTo?: RefObject<HTMLElement> | string;
7819
+ returnFocusTo?: RefObject<HTMLElement | null> | string;
7816
7820
  /**
7817
7821
  * Accessibility configuration for trigger and body roles.
7818
7822
  */
@@ -8358,7 +8362,15 @@ export declare interface IUiListboxInteractiveItem<T> {
8358
8362
  icon?: IconType;
8359
8363
  isDisabled?: boolean;
8360
8364
  data: T;
8365
+ /**
8366
+ * Explanation shown in a tooltip next to the title. Also read by screen readers.
8367
+ */
8361
8368
  tooltip?: string;
8369
+ /**
8370
+ * Rich content rendered in the visual tooltip instead of `tooltip`, e.g. text with a link.
8371
+ * `tooltip` still provides the plain text for screen readers.
8372
+ */
8373
+ tooltipContent?: ReactNode;
8362
8374
  }
8363
8375
 
8364
8376
  /**
@@ -8671,6 +8683,8 @@ export declare interface IUiModalDialogProps {
8671
8683
  /** Dialog content composed by the caller — typically `UiDialogHeader`,
8672
8684
  * an optional `UiDialogBody`, and `UiDialogFooter`. */
8673
8685
  children: ReactNode;
8686
+ /** Confirmation styling adds a border and emphasizes the title and body. */
8687
+ variant?: "default" | "confirmation";
8674
8688
  /** Whether the modal is shown. */
8675
8689
  isOpen: boolean;
8676
8690
  /**
@@ -8683,13 +8697,18 @@ export declare interface IUiModalDialogProps {
8683
8697
  onClose: () => void;
8684
8698
  /** Card width in px. Defaults to 540. */
8685
8699
  width?: number;
8700
+ /** Initial keyboard focus target. Defaults to the first tabbable element. */
8701
+ initialFocus?: RefObject<HTMLElement | null>;
8686
8702
  /**
8687
8703
  * Overrides for the dialog landmark's accessible name. Usually unnecessary —
8688
8704
  * the landmark auto-wires `aria-labelledby` to the `UiDialogHeader` title
8689
8705
  * via context. For headerless dialogs, pass `ariaLabel`; to point at an
8690
8706
  * external title, pass `ariaLabelledBy`.
8691
8707
  */
8692
- accessibilityConfig?: Pick<IAccessibilityConfigBase, "ariaLabel" | "ariaLabelledBy">;
8708
+ accessibilityConfig?: Pick<IAccessibilityConfigBase, "ariaLabel" | "ariaLabelledBy"> & {
8709
+ /** Use alertdialog for confirmations that require an immediate response. */
8710
+ role?: "dialog" | "alertdialog";
8711
+ };
8693
8712
  /** Test id forwarded to the overlay element. */
8694
8713
  dataTestId?: string;
8695
8714
  }
@@ -9053,8 +9072,8 @@ export declare interface IUiPopoverProps {
9053
9072
  optimalPlacement?: boolean;
9054
9073
  closeText?: string;
9055
9074
  closeVisible?: boolean;
9056
- initialFocus?: RefObject<HTMLElement> | string;
9057
- returnFocusTo?: RefObject<HTMLElement> | string;
9075
+ initialFocus?: RefObject<HTMLElement | null> | string;
9076
+ returnFocusTo?: RefObject<HTMLElement | null> | string;
9058
9077
  returnFocusAfterClose?: boolean;
9059
9078
  /**
9060
9079
  * customize if you know that dialog content has some custom focusIn logic which modifies focused element, eg. table which shifts its focus from table wrapper to first table cell
@@ -9140,6 +9159,23 @@ export declare interface IUiRadioRowProps {
9140
9159
  dataTestId?: string;
9141
9160
  }
9142
9161
 
9162
+ /**
9163
+ * @internal
9164
+ */
9165
+ export declare interface IUiRestrictedPlaceholderProps {
9166
+ /** Why the content is not shown. Never names the object, which the reader may not know of. */
9167
+ title: ReactNode;
9168
+ /** Recovery guidance; visually hidden in compact mode but available to assistive technology. */
9169
+ description?: ReactNode;
9170
+ /** @defaultValue "default" */
9171
+ size?: UiRestrictedPlaceholderSize;
9172
+ dataTestId?: string;
9173
+ accessibilityConfig?: {
9174
+ role?: HTMLAttributes<HTMLElement>["role"];
9175
+ ariaLive?: AriaAttributes["aria-live"];
9176
+ };
9177
+ }
9178
+
9143
9179
  /**
9144
9180
  * @internal
9145
9181
  */
@@ -12070,7 +12106,7 @@ export declare function UiMenu<T extends IUiMenuItemData = object, M extends obj
12070
12106
  *
12071
12107
  * @internal
12072
12108
  */
12073
- export declare function UiModalDialog({ children, isOpen, onClose, width, closeOnOutsideClick, accessibilityConfig, dataTestId, }: IUiModalDialogProps): JSX.Element | null;
12109
+ export declare function UiModalDialog({ children, variant, isOpen, onClose, width, initialFocus, closeOnOutsideClick, accessibilityConfig, dataTestId, }: IUiModalDialogProps): JSX.Element | null;
12074
12110
 
12075
12111
  /**
12076
12112
  * @internal
@@ -12166,6 +12202,23 @@ export declare function UiRadioRow({ checked, onChange, name, value, title, desc
12166
12202
  */
12167
12203
  export declare type UiRefsTree = Record<string, HTMLDivElement | null>;
12168
12204
 
12205
+ /**
12206
+ * Stands in for content the viewer is not permitted to see. It takes over whatever it replaces
12207
+ * whole, title bar included: a title would name the object, and naming it tells the viewer of
12208
+ * something they may not know exists.
12209
+ *
12210
+ * @internal
12211
+ */
12212
+ export declare function UiRestrictedPlaceholder({ title, description, size, dataTestId, accessibilityConfig, }: IUiRestrictedPlaceholderProps): JSX.Element;
12213
+
12214
+ /**
12215
+ * How much of the placeholder there is room for. `compact` keeps the reason alone, which is what a
12216
+ * tile too small for the rest can show.
12217
+ *
12218
+ * @internal
12219
+ */
12220
+ export declare type UiRestrictedPlaceholderSize = "default" | "compact";
12221
+
12169
12222
  /**
12170
12223
  * @internal
12171
12224
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-kit",
3
- "version": "11.58.0-alpha.2",
3
+ "version": "11.58.0-alpha.4",
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-model": "11.58.0-alpha.2",
83
- "@gooddata/sdk-backend-spi": "11.58.0-alpha.2",
84
- "@gooddata/sdk-ui": "11.58.0-alpha.2",
85
- "@gooddata/util": "11.58.0-alpha.2",
86
- "@gooddata/sdk-ui-theme-provider": "11.58.0-alpha.2"
82
+ "@gooddata/sdk-backend-spi": "11.58.0-alpha.4",
83
+ "@gooddata/sdk-model": "11.58.0-alpha.4",
84
+ "@gooddata/sdk-ui-theme-provider": "11.58.0-alpha.4",
85
+ "@gooddata/sdk-ui": "11.58.0-alpha.4",
86
+ "@gooddata/util": "11.58.0-alpha.4"
87
87
  },
88
88
  "devDependencies": {
89
89
  "@microsoft/api-documenter": "7.30.10",
@@ -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/eslint-config": "11.58.0-alpha.2",
132
- "@gooddata/oxlint-config": "11.58.0-alpha.2",
133
- "@gooddata/stylelint-config": "11.58.0-alpha.2",
134
- "@gooddata/sdk-backend-mockingbird": "11.58.0-alpha.2",
135
- "@gooddata/reference-workspace": "11.58.0-alpha.2"
131
+ "@gooddata/eslint-config": "11.58.0-alpha.4",
132
+ "@gooddata/oxlint-config": "11.58.0-alpha.4",
133
+ "@gooddata/reference-workspace": "11.58.0-alpha.4",
134
+ "@gooddata/sdk-backend-mockingbird": "11.58.0-alpha.4",
135
+ "@gooddata/stylelint-config": "11.58.0-alpha.4"
136
136
  },
137
137
  "peerDependencies": {
138
138
  "react": "^18.0.0 || ^19.0.0",
@@ -70,7 +70,9 @@ $action-box-shadow: var(--gd-button-dropShadow, 0 -1px 0 0) var(--gd-palette-com
70
70
  }
71
71
 
72
72
  #{$root}__trigger--isLocked:not(:disabled) {
73
- border: none;
73
+ // not `border: none`: dropping the 1px separator resizes the trigger, and
74
+ // transition-all then animates the label's width and flickers its ellipsis.
75
+ border-color: transparent;
74
76
  background-color: $background-color;
75
77
  }
76
78
  }
@@ -205,10 +207,11 @@ $action-box-shadow: var(--gd-button-dropShadow, 0 -1px 0 0) var(--gd-palette-com
205
207
  border-right: 1px dashed $border-color;
206
208
  }
207
209
 
210
+ // No border-radius: a deletable locked chip keeps the left-only rounding so it butts against
211
+ // the delete button. A lone trigger is rounded by the :not(--isDeletable) rule below.
208
212
  &--isLocked {
209
213
  cursor: default;
210
214
  color: var(--gd-palette-complementary-7);
211
- border-radius: $border-radius;
212
215
 
213
216
  &:disabled {
214
217
  background-color: transparent;
@@ -26,6 +26,19 @@
26
26
  background-color: var(--gd-palette-complementary-0);
27
27
  border-radius: var(--gd-modal-borderRadius);
28
28
  box-shadow: 0 2px 8px var(--gd-shadow-color);
29
+
30
+ &--variant-confirmation {
31
+ box-sizing: border-box;
32
+ border: 1px solid var(--gd-modal-borderColor);
33
+
34
+ .gd-ui-kit-dialog-header__title {
35
+ color: var(--gd-modal-title-color);
36
+ }
37
+
38
+ .gd-ui-kit-dialog-body {
39
+ color: var(--gd-palette-complementary-8);
40
+ }
41
+ }
29
42
  }
30
43
  }
31
44
 
@@ -0,0 +1,53 @@
1
+ // (C) 2026 GoodData Corporation
2
+
3
+ .gd-ui-kit-restricted-placeholder {
4
+ display: flex;
5
+ flex-direction: column;
6
+ align-items: center;
7
+ justify-content: center;
8
+ width: 100%;
9
+ height: 100%;
10
+ padding: 0 var(--gd-spacing-20px);
11
+ box-sizing: border-box;
12
+ overflow: hidden;
13
+ color: var(--gd-palette-complementary-7);
14
+ text-align: center;
15
+ -webkit-font-smoothing: antialiased;
16
+ -moz-osx-font-smoothing: grayscale;
17
+
18
+ &__content {
19
+ display: flex;
20
+ flex-direction: column;
21
+ align-items: center;
22
+ gap: var(--gd-spacing-5px);
23
+ // the reason survives a tile too short for the rest, rather than being centred out of it
24
+ min-height: 0;
25
+
26
+ &:focus-visible {
27
+ outline: 2px solid var(--gd-palette-primary-base);
28
+ outline-offset: var(--gd-spacing-5px);
29
+ }
30
+ }
31
+
32
+ &__text {
33
+ display: flex;
34
+ flex-direction: column;
35
+ align-items: center;
36
+ }
37
+
38
+ &__title {
39
+ margin: 0;
40
+ color: inherit;
41
+ font-size: 14px;
42
+ font-weight: 700;
43
+ line-height: 23px;
44
+ }
45
+
46
+ &__description {
47
+ margin: 0;
48
+ color: inherit;
49
+ font-size: 14px;
50
+ font-weight: 400;
51
+ line-height: 23px;
52
+ }
53
+ }
@@ -34,6 +34,7 @@
34
34
  @use "./UiBreadcrumb/UiBreadcrumb.scss";
35
35
  @use "./UiInlineTextGenerator/UiInlineTextGenerator.scss";
36
36
  @use "./UiErrorPage/UiErrorPage.scss";
37
+ @use "./UiRestrictedPlaceholder/UiRestrictedPlaceholder.scss";
37
38
  @use "./UiSectionHeading/UiSectionHeading.scss";
38
39
  @use "./UiConfirmDialog/UiConfirmDialog.scss";
39
40
  @use "./UiTextInput/UiTextInput.scss";
@@ -20,6 +20,11 @@
20
20
  visibility: visible;
21
21
  }
22
22
 
23
+ .gd-csv-delimiter-picker-field-label {
24
+ display: block;
25
+ margin: 0 0 2px;
26
+ }
27
+
23
28
  .gd-csv-delimiter-picker-controls {
24
29
  display: flex;
25
30
  gap: 10px;
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../scss/csvDelimiterPicker.scss"],"names":[],"mappings":"AAEA;EACI;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;EACA;EACA,YACI;;;AAIR;AAAA;EAEI;EACA;;;AAGJ;EACI;EACA;;AAEA;EACI;EACA;EACA;;AAGJ;EACI;EACA;EACA;;;AAIR;EACI;EACA;EACA;EACA;EACA","file":"csvDelimiterPicker.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../scss/csvDelimiterPicker.scss"],"names":[],"mappings":"AAEA;EACI;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;EACA;EACA,YACI;;;AAIR;AAAA;EAEI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;AAEA;EACI;EACA;EACA;;AAGJ;EACI;EACA;EACA;;;AAIR;EACI;EACA;EACA;EACA;EACA","file":"csvDelimiterPicker.css"}
@@ -1194,7 +1194,7 @@
1194
1194
  content: none;
1195
1195
  }
1196
1196
  .gd-ui-kit-chip:has(.gd-ui-kit-chip__trigger:hover):has(.gd-ui-kit-chip__trigger--isLocked:hover) .gd-ui-kit-chip__trigger--isLocked:not(:disabled) {
1197
- border: none;
1197
+ border-color: transparent;
1198
1198
  background-color: var(--gd-palette-complementary-0);
1199
1199
  }
1200
1200
  .gd-ui-kit-chip:has(.gd-ui-kit-chip__delete:hover) {
@@ -1308,7 +1308,6 @@
1308
1308
  .gd-ui-kit-chip__trigger--isLocked {
1309
1309
  cursor: default;
1310
1310
  color: var(--gd-palette-complementary-7);
1311
- border-radius: 20px;
1312
1311
  }
1313
1312
  .gd-ui-kit-chip__trigger--isLocked:disabled {
1314
1313
  background-color: transparent;
@@ -3771,6 +3770,52 @@
3771
3770
  line-height: 23px;
3772
3771
  }
3773
3772
 
3773
+ .gd-ui-kit-restricted-placeholder {
3774
+ display: flex;
3775
+ flex-direction: column;
3776
+ align-items: center;
3777
+ justify-content: center;
3778
+ width: 100%;
3779
+ height: 100%;
3780
+ padding: 0 var(--gd-spacing-20px);
3781
+ box-sizing: border-box;
3782
+ overflow: hidden;
3783
+ color: var(--gd-palette-complementary-7);
3784
+ text-align: center;
3785
+ -webkit-font-smoothing: antialiased;
3786
+ -moz-osx-font-smoothing: grayscale;
3787
+ }
3788
+ .gd-ui-kit-restricted-placeholder__content {
3789
+ display: flex;
3790
+ flex-direction: column;
3791
+ align-items: center;
3792
+ gap: var(--gd-spacing-5px);
3793
+ min-height: 0;
3794
+ }
3795
+ .gd-ui-kit-restricted-placeholder__content:focus-visible {
3796
+ outline: 2px solid var(--gd-palette-primary-base);
3797
+ outline-offset: var(--gd-spacing-5px);
3798
+ }
3799
+ .gd-ui-kit-restricted-placeholder__text {
3800
+ display: flex;
3801
+ flex-direction: column;
3802
+ align-items: center;
3803
+ }
3804
+ .gd-ui-kit-restricted-placeholder__title {
3805
+ margin: 0;
3806
+ color: inherit;
3807
+ font-size: 14px;
3808
+ font-weight: 700;
3809
+ line-height: 23px;
3810
+ }
3811
+ .gd-ui-kit-restricted-placeholder__description {
3812
+ margin: 0;
3813
+ color: inherit;
3814
+ font-size: 14px;
3815
+ font-weight: 400;
3816
+ line-height: 23px;
3817
+ }
3818
+
3774
3819
  .gd-ui-kit-section-heading {
3775
3820
  display: flex;
3776
3821
  align-items: center;
@@ -4068,6 +4113,16 @@
4068
4113
  border-radius: var(--gd-modal-borderRadius);
4069
4114
  box-shadow: 0 2px 8px var(--gd-shadow-color);
4070
4115
  }
4116
+ .gd-ui-kit-modal-dialog__card--variant-confirmation {
4117
+ box-sizing: border-box;
4118
+ border: 1px solid var(--gd-modal-borderColor);
4119
+ }
4120
+ .gd-ui-kit-modal-dialog__card--variant-confirmation .gd-ui-kit-dialog-header__title {
4121
+ color: var(--gd-modal-title-color);
4122
+ }
4123
+ .gd-ui-kit-modal-dialog__card--variant-confirmation .gd-ui-kit-dialog-body {
4124
+ color: var(--gd-palette-complementary-8);
4125
+ }
4071
4126
 
4072
4127
  .gd-ui-kit-dialog-header {
4073
4128
  display: flex;
@@ -7610,6 +7665,11 @@ a.gd-button-link:hover .gd-button-text, a.gd-button-link-dimmed:hover .gd-button
7610
7665
  visibility: visible;
7611
7666
  }
7612
7667
 
7668
+ .gd-csv-delimiter-picker-field-label {
7669
+ display: block;
7670
+ margin: 0 0 2px;
7671
+ }
7672
+
7613
7673
  .gd-csv-delimiter-picker-controls {
7614
7674
  display: flex;
7615
7675
  gap: 10px;
@@ -14445,12 +14505,10 @@ input[type=search]::-webkit-search-cancel-button {
14445
14505
  }
14446
14506
  .gd-rich-text-content .gd-rich-text-metric-restricted {
14447
14507
  display: inline-flex;
14448
- align-items: baseline;
14449
- gap: 4px;
14450
- color: var(--gd-palette-complementary-6, #94a1ad);
14451
- }
14452
- .gd-rich-text-content .gd-rich-text-metric-restricted::before {
14453
- font-size: 12px;
14508
+ align-items: center;
14509
+ gap: 2px;
14510
+ color: var(--gd-palette-complementary-6);
14511
+ font-weight: 400;
14454
14512
  }
14455
14513
 
14456
14514
  .gd-rich-text-content-view * {