@gooddata/sdk-ui-kit 11.68.0-alpha.2 → 11.68.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 (89) hide show
  1. package/esm/@ui/UiAsyncTable/UiAsyncTable/SkeletonItemFactory.d.ts.map +1 -1
  2. package/esm/@ui/UiAsyncTable/UiAsyncTable/SkeletonItemFactory.js +2 -2
  3. package/esm/@ui/UiConfigEditor/UiConfigEditor.d.ts +1 -1
  4. package/esm/@ui/UiConfigEditor/UiConfigEditor.d.ts.map +1 -1
  5. package/esm/@ui/UiConfigEditor/UiConfigEditor.js +62 -25
  6. package/esm/@ui/UiConfigEditor/configEditorDiagnostics.d.ts +10 -0
  7. package/esm/@ui/UiConfigEditor/configEditorDiagnostics.d.ts.map +1 -0
  8. package/esm/@ui/UiConfigEditor/configEditorDiagnostics.js +65 -0
  9. package/esm/@ui/UiConfigEditor/configEditorYamlIndent.d.ts +8 -0
  10. package/esm/@ui/UiConfigEditor/configEditorYamlIndent.d.ts.map +1 -0
  11. package/esm/@ui/UiConfigEditor/configEditorYamlIndent.js +33 -0
  12. package/esm/@ui/UiConfigEditor/types.d.ts +9 -6
  13. package/esm/@ui/UiConfigEditor/types.d.ts.map +1 -1
  14. package/esm/@ui/UiDrawer/UiDrawer.d.ts.map +1 -1
  15. package/esm/@ui/UiDrawer/UiDrawer.js +14 -4
  16. package/esm/@ui/UiFocusManager/UiAutofocus.d.ts.map +1 -1
  17. package/esm/@ui/UiFocusManager/UiAutofocus.js +22 -2
  18. package/esm/@ui/UiFocusManager/UiModalOwner.d.ts +11 -0
  19. package/esm/@ui/UiFocusManager/UiModalOwner.d.ts.map +1 -0
  20. package/esm/@ui/UiFocusManager/UiModalOwner.js +18 -0
  21. package/esm/@ui/UiModalDialog/UiDialogHeader.d.ts +1 -9
  22. package/esm/@ui/UiModalDialog/UiDialogHeader.d.ts.map +1 -1
  23. package/esm/@ui/UiModalDialog/UiDialogHeader.js +5 -4
  24. package/esm/@ui/UiModalDialog/UiModalDialog.d.ts +16 -2
  25. package/esm/@ui/UiModalDialog/UiModalDialog.d.ts.map +1 -1
  26. package/esm/@ui/UiModalDialog/UiModalDialog.js +13 -5
  27. package/esm/@ui/UiSearchableSelect/UiSearchableSelect.d.ts +14 -1
  28. package/esm/@ui/UiSearchableSelect/UiSearchableSelect.d.ts.map +1 -1
  29. package/esm/@ui/UiSearchableSelect/UiSearchableSelect.js +76 -38
  30. package/esm/@ui/UiSearchableSelect/UiSearchableSelectContext.d.ts +12 -2
  31. package/esm/@ui/UiSearchableSelect/UiSearchableSelectContext.d.ts.map +1 -1
  32. package/esm/@ui/UiSearchableSelect/UiSearchableSelectList.d.ts.map +1 -1
  33. package/esm/@ui/UiSearchableSelect/UiSearchableSelectList.js +7 -13
  34. package/esm/@ui/UiSearchableSelect/UiSearchableSelectSearch.d.ts.map +1 -1
  35. package/esm/@ui/UiSearchableSelect/UiSearchableSelectSearch.js +6 -12
  36. package/esm/ChartSorting/ChartSorting.d.ts.map +1 -1
  37. package/esm/ChartSorting/ChartSorting.js +2 -2
  38. package/esm/ColorPicker/ColorPicker.d.ts.map +1 -1
  39. package/esm/ColorPicker/ColorPicker.js +2 -2
  40. package/esm/DescriptionPanel/DescriptionPanel.d.ts.map +1 -1
  41. package/esm/DescriptionPanel/DescriptionPanel.js +2 -2
  42. package/esm/DescriptionPanel/MetadataList.d.ts.map +1 -1
  43. package/esm/DescriptionPanel/MetadataList.js +2 -3
  44. package/esm/Dialog/DialogBase.d.ts.map +1 -1
  45. package/esm/Dialog/DialogBase.js +6 -2
  46. package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/components/NumericInput.d.ts.map +1 -1
  47. package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/components/NumericInput.js +4 -4
  48. package/esm/Dialog/ShareDialog/ShareDialogBase/types.d.ts.map +1 -1
  49. package/esm/Dialog/ShareDialog/ShareDialogBase/types.js +10 -10
  50. package/esm/Dialog/ShareDialog/ShareDialogBase/useShareDialogBase.d.ts.map +1 -1
  51. package/esm/Dialog/ShareDialog/ShareDialogBase/useShareDialogBase.js +3 -3
  52. package/esm/Dropdown/DropdownInvertableSelect.d.ts.map +1 -1
  53. package/esm/Dropdown/DropdownInvertableSelect.js +2 -2
  54. package/esm/Header/Header.d.ts.map +1 -1
  55. package/esm/Header/Header.js +3 -1
  56. package/esm/Header/HeaderHelp.d.ts.map +1 -1
  57. package/esm/Header/HeaderHelp.js +2 -2
  58. package/esm/Hyperlink/Hyperlink.d.ts.map +1 -1
  59. package/esm/Hyperlink/Hyperlink.js +3 -3
  60. package/esm/Overlay/Overlay.d.ts.map +1 -1
  61. package/esm/Overlay/Overlay.js +18 -11
  62. package/esm/RichText/plugins/rehype-references.js +1 -1
  63. package/esm/index.d.ts +4 -3
  64. package/esm/index.d.ts.map +1 -1
  65. package/esm/index.js +3 -2
  66. package/esm/sdk-ui-kit.d.ts +60 -37
  67. package/esm/syntaxHighlightingInput/hooks/useCodemirrorKeymap.d.ts +2 -0
  68. package/esm/syntaxHighlightingInput/hooks/useCodemirrorKeymap.d.ts.map +1 -1
  69. package/esm/syntaxHighlightingInput/hooks/useCodemirrorKeymap.js +6 -3
  70. package/esm/syntaxHighlightingInput/syntaxErrorLinter.d.ts +2 -2
  71. package/esm/syntaxHighlightingInput/syntaxErrorLinter.d.ts.map +1 -1
  72. package/esm/syntaxHighlightingInput/syntaxErrorLinter.js +10 -5
  73. package/package.json +11 -11
  74. package/src/@ui/UiListbox/UiListbox.scss +4 -2
  75. package/src/@ui/UiModalDialog/UiModalDialog.scss +49 -7
  76. package/src/@ui/UiSearchableSelect/UiSearchableSelect.scss +31 -0
  77. package/src/@ui/UiToast/UiToast.scss +7 -0
  78. package/styles/css/avenirFontPatch.css +111 -0
  79. package/styles/css/avenirFontPatch.css.map +1 -0
  80. package/styles/css/main.css +187 -6
  81. package/styles/css/main.css.map +1 -1
  82. package/styles/css/richText.css +2 -1
  83. package/styles/css/richText.css.map +1 -1
  84. package/styles/scss/avenirFontPatch.scss +63 -0
  85. package/styles/scss/main.scss +2 -1
  86. package/styles/scss/richText.scss +2 -1
  87. package/esm/@ui/UiConfigEditor/configEditorWarnings.d.ts +0 -10
  88. package/esm/@ui/UiConfigEditor/configEditorWarnings.d.ts.map +0 -1
  89. package/esm/@ui/UiConfigEditor/configEditorWarnings.js +0 -42
@@ -1958,7 +1958,9 @@
1958
1958
  background-color: var(--gd-palette-complementary-2, #ebeff4);
1959
1959
  }
1960
1960
  .gd-ui-kit-listbox__item {
1961
- padding: 8px 10px;
1961
+ box-sizing: border-box;
1962
+ min-height: 32px;
1963
+ padding: var(--gd-spacing-5px) var(--gd-spacing-10px);
1962
1964
  cursor: pointer;
1963
1965
  display: flex;
1964
1966
  align-items: center;
@@ -1989,9 +1991,9 @@
1989
1991
  cursor: not-allowed;
1990
1992
  }
1991
1993
  .gd-ui-kit-listbox__item--isCompact {
1994
+ min-height: 28px;
1992
1995
  font-size: 12px;
1993
1996
  line-height: 18px;
1994
- padding: 5px 10px;
1995
1997
  }
1996
1998
  .gd-ui-kit-listbox__item-title {
1997
1999
  display: block;
@@ -3995,6 +3997,32 @@
3995
3997
  .gd-ui-kit-searchable-select__body {
3996
3998
  padding: 4px 0;
3997
3999
  }
4000
+ .gd-ui-kit-searchable-select__body--isFullscreen {
4001
+ display: flex;
4002
+ flex-direction: column;
4003
+ flex: 1 1 auto;
4004
+ min-height: 0;
4005
+ padding: var(--gd-spacing-15px) var(--gd-spacing-15px) 0;
4006
+ }
4007
+ .gd-ui-kit-searchable-select__body--isFullscreen .gd-ui-kit-searchable-select__search {
4008
+ padding: 0 0 12px;
4009
+ }
4010
+ .gd-ui-kit-searchable-select__body--isFullscreen .gd-ui-kit-listbox {
4011
+ box-sizing: border-box;
4012
+ flex: 0 1 auto;
4013
+ width: auto;
4014
+ max-height: none;
4015
+ margin: 0 calc(-1 * var(--gd-spacing-15px));
4016
+ padding: 0;
4017
+ }
4018
+ .gd-ui-kit-searchable-select__body--isFullscreen .gd-ui-kit-listbox__item {
4019
+ padding-right: var(--gd-spacing-15px);
4020
+ padding-left: var(--gd-spacing-15px);
4021
+ }
4022
+ .gd-ui-kit-searchable-select__body--isFullscreen .gd-ui-kit-searchable-select__no-items {
4023
+ font-size: 14px;
4024
+ padding: 8px 0;
4025
+ }
3998
4026
  .gd-ui-kit-searchable-select__search {
3999
4027
  padding: 10px;
4000
4028
  }
@@ -4308,6 +4336,33 @@
4308
4336
  box-shadow: 0 2px 8px var(--gd-shadow-color);
4309
4337
  overflow-wrap: break-word;
4310
4338
  }
4339
+ .gd-ui-kit-modal-dialog__card--isFullscreen {
4340
+ box-sizing: border-box;
4341
+ width: 100vw;
4342
+ height: 100vh;
4343
+ width: 100dvw;
4344
+ height: 100dvh;
4345
+ max-width: none;
4346
+ max-height: none;
4347
+ padding: 0;
4348
+ border-radius: 0;
4349
+ box-shadow: none;
4350
+ }
4351
+ .gd-ui-kit-modal-dialog__card--isFullscreen .gd-ui-kit-dialog-header {
4352
+ box-sizing: border-box;
4353
+ flex-shrink: 0;
4354
+ height: 56px;
4355
+ margin-bottom: 0;
4356
+ padding: 0 var(--gd-spacing-15px);
4357
+ border-bottom: 1px solid var(--gd-palette-complementary-3);
4358
+ }
4359
+ .gd-ui-kit-modal-dialog__card--isFullscreen .gd-ui-kit-dialog-body {
4360
+ padding: var(--gd-spacing-15px) var(--gd-spacing-15px) 0;
4361
+ }
4362
+ .gd-ui-kit-modal-dialog__card--isFullscreen .gd-ui-kit-dialog-footer {
4363
+ padding-right: var(--gd-spacing-15px);
4364
+ padding-left: var(--gd-spacing-15px);
4365
+ }
4311
4366
  .gd-ui-kit-modal-dialog__card--variant-confirmation {
4312
4367
  box-sizing: border-box;
4313
4368
  border: 1px solid var(--gd-modal-borderColor);
@@ -4330,17 +4385,28 @@
4330
4385
  align-items: center;
4331
4386
  flex-shrink: 0;
4332
4387
  }
4388
+ .gd-ui-kit-dialog-header--size-default {
4389
+ --dialog-header-line-height: 23px;
4390
+ --dialog-header-close-icon-size: 18px;
4391
+ --dialog-header-close-button-size: var(--gd-button-M);
4392
+ }
4393
+ .gd-ui-kit-dialog-header--size-large {
4394
+ --dialog-header-line-height: 26px;
4395
+ --dialog-header-close-icon-size: 20px;
4396
+ --dialog-header-close-button-size: var(--gd-button-L);
4397
+ }
4333
4398
  .gd-ui-kit-dialog-header__close {
4334
4399
  display: inline-flex;
4335
4400
  align-items: center;
4336
4401
  flex-shrink: 0;
4337
- margin-block: -4.5px;
4402
+ margin: calc((var(--dialog-header-line-height) - var(--dialog-header-close-button-size)) / 2) calc((var(--dialog-header-close-icon-size) - var(--dialog-header-close-button-size)) / 2) calc((var(--dialog-header-line-height) - var(--dialog-header-close-button-size)) / 2) 0;
4338
4403
  }
4339
4404
  .gd-ui-kit-dialog-header__title {
4340
4405
  flex: 1 1 auto;
4341
4406
  min-width: 0;
4342
4407
  margin: 0;
4343
4408
  font-weight: 700;
4409
+ line-height: var(--dialog-header-line-height);
4344
4410
  color: var(--gd-palette-complementary-8);
4345
4411
  overflow: hidden;
4346
4412
  text-overflow: ellipsis;
@@ -4348,11 +4414,10 @@
4348
4414
  }
4349
4415
  .gd-ui-kit-dialog-header__title--size-default {
4350
4416
  font-size: 17px;
4351
- line-height: 23px;
4352
4417
  }
4353
4418
  .gd-ui-kit-dialog-header__title--size-large {
4354
4419
  font-size: 20px;
4355
- line-height: 26px;
4420
+ transform: translateY(1px);
4356
4421
  }
4357
4422
 
4358
4423
  .gd-ui-kit-dialog-body {
@@ -4635,6 +4700,12 @@
4635
4700
  max-width: 620px;
4636
4701
  width: 90%;
4637
4702
  }
4703
+ @media only screen and (max-width: 640px) {
4704
+ .gd-ui-kit-toast {
4705
+ width: calc(100% - 2 * var(--gd-spacing-15px));
4706
+ align-items: stretch;
4707
+ }
4708
+ }
4638
4709
  .gd-ui-kit-toast__item {
4639
4710
  pointer-events: auto;
4640
4711
  display: inline-flex;
@@ -5844,6 +5915,115 @@
5844
5915
  font-size: 14px;
5845
5916
  }
5846
5917
 
5918
+ /**
5919
+ * Fixes the incorrect weight mappings of the (local) Avenir font that ships with macOS and normalizes them
5920
+ * across browsers.
5921
+ *
5922
+ * The problem this patch resolves:
5923
+ * On macOS, the local "Avenir" font labels its weights incorrectly. As a result, Chrome and Safari render
5924
+ * `font-weight: 700` as "Avenir Black" and `font-weight: 900` as "Avenir Heavy", so `font-weight: 700`
5925
+ * renders _bolder_ text than `font-weight: 900`.
5926
+ *
5927
+ * (The Chrome / Safari rendering then also doesn't match the rendering in Figma.)
5928
+ *
5929
+ * Firefox ships its own patch for these font weights, but Chrome and Safari don't. See the following links
5930
+ * for more information:
5931
+ * - https://github.com/mozilla-firefox/firefox/blob/cf103b9362d64aa14c7adc0c0e4b9469ccbf6caa/modules/libpref/init/all.js#L2482-L2486
5932
+ * - https://bugzilla.mozilla.org/show_bug.cgi?id=931426#c55
5933
+ * - https://bugzilla.mozilla.org/show_bug.cgi?id=931426#c66
5934
+ *
5935
+ * The patch below normalizes the font-weight behavior across all browsers as follows:
5936
+ *
5937
+ * | font-weight | Chrome / Safari | Firefox | With this fix (all browsers) |
5938
+ * | ----------- | --------------- | ------- | ---------------------------- |
5939
+ * | 100 | Light | Book * | Light |
5940
+ * | 200 | Light | Book * | Light |
5941
+ * | 300 | Light * | Book | Book |
5942
+ * | 400 | Book * | Roman | Roman |
5943
+ * | 500 | Medium | Medium | Medium |
5944
+ * | 600 | Black * | Heavy | Heavy |
5945
+ * | 700 | Black * | Heavy | Heavy |
5946
+ * | 800 | Black * | Heavy | Heavy |
5947
+ * | 900 | Heavy * | Black | Black |
5948
+ *
5949
+ * Only the installed font is used (the `local()` function), so this is not subject to copyright.
5950
+ *
5951
+ * Note that the problem described above affects only macOS. Windows doesn't ship Avenir
5952
+ * (https://learn.microsoft.com/en-us/typography/fonts/windows_11_font_list), so there the faces don't
5953
+ * load and the font stack moves on to the next family, as without them.
5954
+ */
5955
+ @font-face {
5956
+ font-family: "Avenir";
5957
+ src: local("Avenir Light"), local("Avenir-Light");
5958
+ font-weight: 200;
5959
+ font-style: normal;
5960
+ }
5961
+ @font-face {
5962
+ font-family: "Avenir";
5963
+ src: local("Avenir Light Oblique"), local("Avenir-LightOblique");
5964
+ font-weight: 200;
5965
+ font-style: italic;
5966
+ }
5967
+ @font-face {
5968
+ font-family: "Avenir";
5969
+ src: local("Avenir Book"), local("Avenir-Book");
5970
+ font-weight: 300;
5971
+ font-style: normal;
5972
+ }
5973
+ @font-face {
5974
+ font-family: "Avenir";
5975
+ src: local("Avenir Book Oblique"), local("Avenir-BookOblique");
5976
+ font-weight: 300;
5977
+ font-style: italic;
5978
+ }
5979
+ @font-face {
5980
+ font-family: "Avenir";
5981
+ src: local("Avenir Roman"), local("Avenir-Roman");
5982
+ font-weight: 400;
5983
+ font-style: normal;
5984
+ }
5985
+ @font-face {
5986
+ font-family: "Avenir";
5987
+ src: local("Avenir Oblique"), local("Avenir-Oblique");
5988
+ font-weight: 400;
5989
+ font-style: italic;
5990
+ }
5991
+ @font-face {
5992
+ font-family: "Avenir";
5993
+ src: local("Avenir Medium"), local("Avenir-Medium");
5994
+ font-weight: 500;
5995
+ font-style: normal;
5996
+ }
5997
+ @font-face {
5998
+ font-family: "Avenir";
5999
+ src: local("Avenir Medium Oblique"), local("Avenir-MediumOblique");
6000
+ font-weight: 500;
6001
+ font-style: italic;
6002
+ }
6003
+ @font-face {
6004
+ font-family: "Avenir";
6005
+ src: local("Avenir Heavy"), local("Avenir-Heavy");
6006
+ font-weight: 800;
6007
+ font-style: normal;
6008
+ }
6009
+ @font-face {
6010
+ font-family: "Avenir";
6011
+ src: local("Avenir Heavy Oblique"), local("Avenir-HeavyOblique");
6012
+ font-weight: 800;
6013
+ font-style: italic;
6014
+ }
6015
+ @font-face {
6016
+ font-family: "Avenir";
6017
+ src: local("Avenir Black"), local("Avenir-Black");
6018
+ font-weight: 900;
6019
+ font-style: normal;
6020
+ }
6021
+ @font-face {
6022
+ font-family: "Avenir";
6023
+ src: local("Avenir Black Oblique"), local("Avenir-BlackOblique");
6024
+ font-weight: 900;
6025
+ font-style: italic;
6026
+ }
5847
6027
  @font-face {
5848
6028
  font-family: "Indigo";
5849
6029
  src: url("@gooddata/sdk-ui-kit/styles/fonts/Indigo-v2.woff2") format("woff2"), url("@gooddata/sdk-ui-kit/styles/fonts/Indigo-v2.woff") format("woff");
@@ -15077,7 +15257,8 @@ input[type=search]::-webkit-search-cancel-button {
15077
15257
  color: var(--gd-palette-complementary-8, #464e56);
15078
15258
  }
15079
15259
  .gd-rich-text-content .gd-rich-text-metric-error,
15080
- .gd-rich-text-content .gd-rich-text-metric-multiple {
15260
+ .gd-rich-text-content .gd-rich-text-metric-multiple,
15261
+ .gd-rich-text-content .gd-rich-text-parameter-error {
15081
15262
  color: var(--gd-palette-error-base, #e54d42);
15082
15263
  }
15083
15264
  .gd-rich-text-content .gd-rich-text-metric-restricted {