@gooddata/sdk-ui-kit 10.25.0-alpha.39 → 10.25.0-alpha.40

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 (58) hide show
  1. package/esm/@ui/UiFocusTrap/UiFocusTrap.d.ts.map +1 -1
  2. package/esm/@ui/UiFocusTrap/UiFocusTrap.js +9 -4
  3. package/esm/@ui/UiFocusTrap/UiFocusTrap.js.map +1 -1
  4. package/esm/Dialog/CommunityEditionDialog.d.ts.map +1 -1
  5. package/esm/Dialog/CommunityEditionDialog.js +5 -3
  6. package/esm/Dialog/CommunityEditionDialog.js.map +1 -1
  7. package/esm/Dialog/ConfirmDialogBase.d.ts +2 -6
  8. package/esm/Dialog/ConfirmDialogBase.d.ts.map +1 -1
  9. package/esm/Dialog/ConfirmDialogBase.js +32 -41
  10. package/esm/Dialog/ConfirmDialogBase.js.map +1 -1
  11. package/esm/Dialog/Dialog.d.ts +3 -5
  12. package/esm/Dialog/Dialog.d.ts.map +1 -1
  13. package/esm/Dialog/Dialog.js +10 -13
  14. package/esm/Dialog/Dialog.js.map +1 -1
  15. package/esm/Dialog/DialogBase.d.ts +2 -8
  16. package/esm/Dialog/DialogBase.d.ts.map +1 -1
  17. package/esm/Dialog/DialogBase.js +22 -39
  18. package/esm/Dialog/DialogBase.js.map +1 -1
  19. package/esm/Dialog/DialogCloseButton.d.ts +4 -0
  20. package/esm/Dialog/DialogCloseButton.d.ts.map +1 -0
  21. package/esm/Dialog/DialogCloseButton.js +8 -0
  22. package/esm/Dialog/DialogCloseButton.js.map +1 -0
  23. package/esm/Dialog/ExportDialog.d.ts +3 -3
  24. package/esm/Dialog/ExportDialog.d.ts.map +1 -1
  25. package/esm/Dialog/ExportDialog.js +3 -4
  26. package/esm/Dialog/ExportDialog.js.map +1 -1
  27. package/esm/Dialog/ExportDialogBase.d.ts +3 -11
  28. package/esm/Dialog/ExportDialogBase.d.ts.map +1 -1
  29. package/esm/Dialog/ExportDialogBase.js +14 -50
  30. package/esm/Dialog/ExportDialogBase.js.map +1 -1
  31. package/esm/Dialog/HubspotConversionTouchPointDialog.d.ts.map +1 -1
  32. package/esm/Dialog/HubspotConversionTouchPointDialog.js +5 -3
  33. package/esm/Dialog/HubspotConversionTouchPointDialog.js.map +1 -1
  34. package/esm/Dialog/HubspotConversionTouchPointDialogBase.d.ts +6 -0
  35. package/esm/Dialog/HubspotConversionTouchPointDialogBase.d.ts.map +1 -1
  36. package/esm/Dialog/HubspotConversionTouchPointDialogBase.js +3 -2
  37. package/esm/Dialog/HubspotConversionTouchPointDialogBase.js.map +1 -1
  38. package/esm/Dialog/StylingEditorDialog/StylingEditorDialog.d.ts +3 -2
  39. package/esm/Dialog/StylingEditorDialog/StylingEditorDialog.d.ts.map +1 -1
  40. package/esm/Dialog/StylingEditorDialog/StylingEditorDialog.js +5 -3
  41. package/esm/Dialog/StylingEditorDialog/StylingEditorDialog.js.map +1 -1
  42. package/esm/Dialog/StylingEditorDialog/StylingEditorDialogFooter.d.ts +3 -3
  43. package/esm/Dialog/StylingEditorDialog/StylingEditorDialogFooter.d.ts.map +1 -1
  44. package/esm/Dialog/StylingEditorDialog/StylingEditorDialogFooter.js +1 -1
  45. package/esm/Dialog/StylingEditorDialog/StylingEditorDialogFooter.js.map +1 -1
  46. package/esm/Dialog/StylingEditorDialog/index.d.ts +1 -1
  47. package/esm/Dialog/typings.d.ts +36 -24
  48. package/esm/Dialog/typings.d.ts.map +1 -1
  49. package/esm/Typography/Typography.d.ts +1 -0
  50. package/esm/Typography/Typography.d.ts.map +1 -1
  51. package/esm/Typography/Typography.js +3 -3
  52. package/esm/Typography/Typography.js.map +1 -1
  53. package/esm/sdk-ui-kit.d.ts +66 -63
  54. package/esm/typings/utilities.d.ts +1 -0
  55. package/esm/typings/utilities.d.ts.map +1 -1
  56. package/esm/typings/utilities.js +2 -1
  57. package/esm/typings/utilities.js.map +1 -1
  58. package/package.json +8 -8
@@ -475,10 +475,7 @@ export declare class ConfirmDialog extends PureComponent<IConfirmDialogBaseProps
475
475
  /**
476
476
  * @internal
477
477
  */
478
- export declare class ConfirmDialogBase extends DialogBase<IConfirmDialogBaseProps> {
479
- static defaultProps: IConfirmDialogBaseProps;
480
- render(): JSX.Element;
481
- }
478
+ export declare const ConfirmDialogBase: React_2.NamedExoticComponent<IConfirmDialogBaseProps>;
482
479
 
483
480
  /**
484
481
  * @internal
@@ -591,20 +588,12 @@ export declare const DescriptionPanelContent: React_2.FC<IDescriptionPanelProps>
591
588
  /**
592
589
  * @internal
593
590
  */
594
- export declare class Dialog extends Component<IDialogBaseProps> {
595
- render(): JSX.Element;
596
- }
591
+ export declare const Dialog: React_2.NamedExoticComponent<IDialogProps>;
597
592
 
598
593
  /**
599
594
  * @internal
600
595
  */
601
- export declare class DialogBase<P extends IDialogBaseProps> extends PureComponent<P> {
602
- static defaultProps: Partial<IDialogBaseProps>;
603
- protected onKeyDown: (event: React_2.KeyboardEvent<HTMLDivElement>) => void | undefined;
604
- protected getDialogClasses(additionalClassName?: string): string;
605
- protected renderCloseButton(): JSX.Element;
606
- render(): JSX.Element;
607
- }
596
+ export declare const DialogBase: React_2.NamedExoticComponent<IDialogBaseProps>;
608
597
 
609
598
  /**
610
599
  * @internal
@@ -700,6 +689,7 @@ export declare type EmbedOptionsType = IReactOptions | IWebComponentsOptions;
700
689
  export declare type EmbedType = "react" | "webComponents";
701
690
 
702
691
  /**
692
+ * @deprecated use `event.key` or `event.code`. See https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode
703
693
  * @internal
704
694
  */
705
695
  export declare enum ENUM_KEY_CODE {
@@ -717,19 +707,12 @@ export declare class ErrorOverlay extends React_2.PureComponent<IErrorOverlayPro
717
707
  /**
718
708
  * @internal
719
709
  */
720
- export declare const ExportDialog: (props: IExportDialogBaseProps) => JSX.Element;
710
+ export declare const ExportDialog: React_2.NamedExoticComponent<IExportDialogProps>;
721
711
 
722
712
  /**
723
713
  * @internal
724
714
  */
725
- export declare class ExportDialogBase extends DialogBase<IExportDialogBaseProps> {
726
- static defaultProps: IExportDialogBaseProps;
727
- state: IExportDialogBaseState;
728
- render(): JSX.Element;
729
- private onFilterContextChange;
730
- private onMergeHeadersChange;
731
- private onSubmit;
732
- }
715
+ export declare const ExportDialogBase: React_2.NamedExoticComponent<IExportDialogBaseProps>;
733
716
 
734
717
  /**
735
718
  * @internal
@@ -1497,11 +1480,10 @@ export declare const Icon: Record<string, React_2.FC<IIconProps>>;
1497
1480
  /**
1498
1481
  * @internal
1499
1482
  */
1500
- export declare interface IConfirmDialogBaseProps extends IDialogBaseProps {
1483
+ export declare interface IConfirmDialogBaseProps extends Omit<IDialogBaseProps, "accessibilityConfig"> {
1501
1484
  isSubmitDisabled?: boolean;
1502
1485
  isCancelDisabled?: boolean;
1503
1486
  isPositive?: boolean;
1504
- headline?: string;
1505
1487
  cancelButtonText?: string;
1506
1488
  submitButtonText?: string;
1507
1489
  submitButtonTooltipText?: string;
@@ -1513,11 +1495,12 @@ export declare interface IConfirmDialogBaseProps extends IDialogBaseProps {
1513
1495
  footerLeftRenderer?: () => JSX.Element;
1514
1496
  dialogHeaderClassName?: string;
1515
1497
  titleRightIconRenderer?: () => JSX.Element;
1516
- /**
1517
- * If true, the dialog will autofocus on the first focusable element when it is opened.
1518
- * Default is true.
1519
- */
1520
- autofocusOnOpen?: boolean;
1498
+ headline?: string;
1499
+ accessibilityConfig?: {
1500
+ closeButton?: IButtonAccessibilityConfig;
1501
+ titleElementId?: string;
1502
+ descriptionElementId?: string;
1503
+ };
1521
1504
  }
1522
1505
 
1523
1506
  /**
@@ -1634,6 +1617,8 @@ export declare interface IDialogBaseProps {
1634
1617
  displayCloseButton?: boolean;
1635
1618
  accessibilityConfig?: {
1636
1619
  closeButton?: IButtonAccessibilityConfig;
1620
+ titleElementId?: string;
1621
+ descriptionElementId?: string;
1637
1622
  };
1638
1623
  submitOnEnterKey?: boolean;
1639
1624
  onCancel?: (data?: any) => void;
@@ -1647,8 +1632,19 @@ export declare interface IDialogBaseProps {
1647
1632
  onClick?: (e: React_2.MouseEvent<HTMLDivElement, MouseEvent>) => void;
1648
1633
  onMouseOver?: (e: React_2.MouseEvent<HTMLDivElement, MouseEvent>) => void;
1649
1634
  onMouseUp?: (e: React_2.MouseEvent<HTMLDivElement, MouseEvent>) => void;
1635
+ /**
1636
+ * If true, the dialog will autofocus on the first focusable element when it is opened.
1637
+ * Default is true.
1638
+ */
1639
+ autofocusOnOpen?: boolean;
1640
+ CloseButton?: React_2.ComponentType<IDialogCloseButtonProps>;
1650
1641
  }
1651
1642
 
1643
+ /**
1644
+ * @internal
1645
+ */
1646
+ export declare type IDialogCloseButtonProps = Pick<IDialogBaseProps, "onClose" | "accessibilityConfig">;
1647
+
1652
1648
  /**
1653
1649
  * @internal
1654
1650
  */
@@ -1706,6 +1702,20 @@ export declare interface IDialogListProps<T extends IDialogListItem = IDialogLis
1706
1702
  onItemDelete?: (item: T) => void;
1707
1703
  }
1708
1704
 
1705
+ /**
1706
+ * @internal
1707
+ */
1708
+ export declare interface IDialogProps extends IDialogBaseProps {
1709
+ /**
1710
+ * These properties will be placed to the container, which wraps overlay background and dialog content elements
1711
+ */
1712
+ containerClassName?: string;
1713
+ shouldCloseOnClick?: (e: Event) => boolean;
1714
+ onClick?: (e: React_2.MouseEvent<HTMLDivElement, MouseEvent>) => void;
1715
+ onMouseOver?: (e: React_2.MouseEvent<HTMLDivElement, MouseEvent>) => void;
1716
+ onMouseUp?: (e: React_2.MouseEvent<HTMLDivElement, MouseEvent>) => void;
1717
+ }
1718
+
1709
1719
  /**
1710
1720
  * @internal
1711
1721
  */
@@ -1978,12 +1988,7 @@ export declare interface IErrorOverlayProps {
1978
1988
  /**
1979
1989
  * @internal
1980
1990
  */
1981
- export declare interface IExportDialogBaseProps extends IDialogBaseProps {
1982
- isSubmitDisabled?: boolean;
1983
- isPositive?: boolean;
1984
- headline?: string;
1985
- cancelButtonText?: string;
1986
- submitButtonText?: string;
1991
+ export declare interface IExportDialogBaseProps extends Pick<IConfirmDialogBaseProps, "className" | "displayCloseButton" | "isPositive" | "isSubmitDisabled" | "headline" | "cancelButtonText" | "submitButtonText" | "onCancel" | "onSubmit"> {
1987
1992
  filterContextText?: string;
1988
1993
  filterContextTitle?: string;
1989
1994
  filterContextVisible?: boolean;
@@ -1997,17 +2002,8 @@ export declare interface IExportDialogBaseProps extends IDialogBaseProps {
1997
2002
  /**
1998
2003
  * @internal
1999
2004
  */
2000
- export declare interface IExportDialogBaseState {
2001
- includeFilterContext: boolean;
2002
- mergeHeaders: boolean;
2003
- }
2004
-
2005
- /**
2006
- * @internal
2007
- */
2008
- export declare interface IExportDialogData {
2009
- includeFilterContext: boolean;
2010
- mergeHeaders: boolean;
2005
+ export declare interface IExportDialogProps extends IExportDialogBaseProps {
2006
+ containerClassName?: string;
2011
2007
  }
2012
2008
 
2013
2009
  /**
@@ -2338,6 +2334,12 @@ export declare interface IHubspotConversionTouchPointDialogBaseProps {
2338
2334
  * Form submitted callback function
2339
2335
  */
2340
2336
  onFormSubmitted?: () => void;
2337
+ /**
2338
+ * Properties enabling proper accessibility
2339
+ */
2340
+ accessibilityConfig?: {
2341
+ titleElementId: string;
2342
+ };
2341
2343
  }
2342
2344
 
2343
2345
  /**
@@ -4028,21 +4030,7 @@ export declare const isSpaceKey: (event: KeyboardEvent_2) => boolean;
4028
4030
  /**
4029
4031
  * @internal
4030
4032
  */
4031
- export declare interface IStylingEditorDialogFooterProps extends IDialogBaseProps {
4032
- link: {
4033
- text: string;
4034
- url: string;
4035
- };
4036
- disableSubmit?: boolean;
4037
- showProgressIndicator?: boolean;
4038
- errorMessage?: string;
4039
- onHelpClick?: () => void;
4040
- }
4041
-
4042
- /**
4043
- * @internal
4044
- */
4045
- export declare interface IStylingEditorDialogProps<T extends StylingPickerItemContent> extends IStylingEditorDialogFooterProps {
4033
+ export declare interface IStylingEditorDialogProps<T extends StylingPickerItemContent> extends TStylingEditorDialogFooterProps, Pick<IDialogBaseProps, "onClose" | "className"> {
4046
4034
  title: string;
4047
4035
  tooltip?: string;
4048
4036
  stylingItem?: IStylingPickerItem<T>;
@@ -4224,6 +4212,7 @@ export declare interface ITypographyProps {
4224
4212
  className?: string;
4225
4213
  onClick?: (e: React_2.MouseEvent) => void;
4226
4214
  title?: string;
4215
+ id?: string;
4227
4216
  }
4228
4217
 
4229
4218
  /**
@@ -5007,7 +4996,7 @@ export declare const StylingEditorDialog: <T extends StylingPickerItemContent>(p
5007
4996
  /**
5008
4997
  * @internal
5009
4998
  */
5010
- export declare const StylingEditorDialogFooter: (props: IStylingEditorDialogFooterProps) => React_2.JSX.Element;
4999
+ export declare const StylingEditorDialogFooter: (props: TStylingEditorDialogFooterProps) => React_2.JSX.Element;
5011
5000
 
5012
5001
  /**
5013
5002
  * @internal
@@ -5155,6 +5144,20 @@ export declare function transform2Dropdown<T extends IDateDataset>(dateDatasets:
5155
5144
  */
5156
5145
  export declare const transformCronExpressionToRecurrenceType: (date: Date | null, cronExpression: string | undefined, allowHourlyRecurrence: boolean, allowInheritValue: boolean, weekStart: WeekStart) => RecurrenceType;
5157
5146
 
5147
+ /**
5148
+ * @internal
5149
+ */
5150
+ export declare type TStylingEditorDialogFooterProps = {
5151
+ link: {
5152
+ text: string;
5153
+ url: string;
5154
+ };
5155
+ disableSubmit?: boolean;
5156
+ showProgressIndicator?: boolean;
5157
+ errorMessage?: string;
5158
+ onHelpClick?: () => void;
5159
+ } & Pick<IDialogBaseProps, "onCancel" | "onSubmit">;
5160
+
5158
5161
  /**
5159
5162
  * @internal
5160
5163
  */
@@ -1,4 +1,5 @@
1
1
  /**
2
+ * @deprecated use `event.key` or `event.code`. See https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode
2
3
  * @internal
3
4
  */
4
5
  export declare enum ENUM_KEY_CODE {
@@ -1 +1 @@
1
- {"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../src/typings/utilities.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,aAAa;IACrB,cAAc,KAAK;IACnB,eAAe,KAAK;CACvB"}
1
+ {"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../src/typings/utilities.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,oBAAY,aAAa;IACrB,cAAc,KAAK;IACnB,eAAe,KAAK;CACvB"}
@@ -1,5 +1,6 @@
1
- // (C) 2020 GoodData Corporation
1
+ // (C) 2020-2025 GoodData Corporation
2
2
  /**
3
+ * @deprecated use `event.key` or `event.code`. See https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode
3
4
  * @internal
4
5
  */
5
6
  export var ENUM_KEY_CODE;
@@ -1 +1 @@
1
- {"version":3,"file":"utilities.js","sourceRoot":"","sources":["../../src/typings/utilities.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC;;GAEG;AACH,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,sEAAmB,CAAA;IACnB,wEAAoB,CAAA;AACxB,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB"}
1
+ {"version":3,"file":"utilities.js","sourceRoot":"","sources":["../../src/typings/utilities.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC;;;GAGG;AACH,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,sEAAmB,CAAA;IACnB,wEAAoB,CAAA;AACxB,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-kit",
3
- "version": "10.25.0-alpha.39",
3
+ "version": "10.25.0-alpha.40",
4
4
  "description": "GoodData SDK - UI Building Components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -68,11 +68,11 @@
68
68
  "tslib": "^2.5.0",
69
69
  "uuid": "^8.3.2",
70
70
  "unified": "^11.0.5",
71
- "@gooddata/sdk-backend-spi": "10.25.0-alpha.39",
72
- "@gooddata/sdk-ui": "10.25.0-alpha.39",
73
- "@gooddata/sdk-ui-theme-provider": "10.25.0-alpha.39",
74
- "@gooddata/sdk-model": "10.25.0-alpha.39",
75
- "@gooddata/util": "10.25.0-alpha.39"
71
+ "@gooddata/sdk-backend-spi": "10.25.0-alpha.40",
72
+ "@gooddata/sdk-model": "10.25.0-alpha.40",
73
+ "@gooddata/sdk-ui-theme-provider": "10.25.0-alpha.40",
74
+ "@gooddata/sdk-ui": "10.25.0-alpha.40",
75
+ "@gooddata/util": "10.25.0-alpha.40"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "react": "^16.10.0 || ^17.0.0 || ^18.0.0",
@@ -131,8 +131,8 @@
131
131
  "typescript": "5.3.3",
132
132
  "vitest": "3.0.8",
133
133
  "vitest-dom": "0.1.1",
134
- "@gooddata/reference-workspace": "10.25.0-alpha.39",
135
- "@gooddata/sdk-backend-mockingbird": "10.25.0-alpha.39"
134
+ "@gooddata/reference-workspace": "10.25.0-alpha.40",
135
+ "@gooddata/sdk-backend-mockingbird": "10.25.0-alpha.40"
136
136
  },
137
137
  "scripts": {
138
138
  "clean": "rm -rf ci dist esm coverage styles/css *.log tsconfig.tsbuildinfo",