@kentico/xperience-admin-components 29.0.2 → 29.1.0

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/dist/entry.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="packages/kentico-xperience-admin-components/src/__global" />
2
1
  /// <reference types="react" />
3
2
 
4
3
  import { ConnectDragPreview } from 'react-dnd';
@@ -596,6 +595,10 @@ declare interface BaseTreeViewProps extends UITestProps {
596
595
  * Name of the CSS class passed to the tree element.
597
596
  */
598
597
  readonly className?: string;
598
+ /**
599
+ * Width of the tree view in pixels.
600
+ */
601
+ readonly width?: number;
599
602
  }
600
603
 
601
604
  export declare enum BorderRadius {
@@ -873,6 +876,7 @@ export declare enum Colors {
873
876
  BackgroundSelectedHover = "var(--color-background-selected-hover)",
874
877
  BackgroundSideMenu = "var(--color-background-side-menu)",
875
878
  BackgroundButtonOnDarkHover = "var(--color-background-button-on-dark-hover)",
879
+ BackgroundShelfSolid = "var(--color-background-shelf-solid)",
876
880
  BackgroundTagDefault = "var(--color-background-tag-default)",
877
881
  BackgroundTagGrey = "var(--color-background-tag-grey)",
878
882
  BackgroundTagKenticoOrange = "var(--color-background-tag-kentico-orange)",
@@ -2357,7 +2361,7 @@ export declare interface LayoutComponentProps {
2357
2361
  children?: React.ReactNode;
2358
2362
  }
2359
2363
 
2360
- export declare interface LeadingButtonProps {
2364
+ export declare interface LeadingButtonProps extends UITestProps {
2361
2365
  readonly label: string;
2362
2366
  readonly icon: IconName;
2363
2367
  readonly disabled?: boolean;
@@ -3113,25 +3117,29 @@ export declare interface SidePanelConfig {
3113
3117
  isOutsideClickCloseable: boolean;
3114
3118
  }
3115
3119
 
3120
+ declare type SidePanelId = string & {
3121
+ __type: 'SidePanelId';
3122
+ };
3123
+
3116
3124
  export declare const SidePanelManager: ({ children }: SidePanelManagerProps) => JSX.Element;
3117
3125
 
3118
3126
  declare interface SidePanelManagerContextType {
3119
3127
  /**
3120
3128
  * Gets the current side panel id.
3121
3129
  */
3122
- readonly getCurrentSidePanel: () => string | null;
3130
+ readonly getCurrentSidePanel: () => SidePanelId | undefined;
3123
3131
  /**
3124
3132
  * Adds the side panel under the sidePanelId.
3125
3133
  */
3126
- readonly addSidePanel: (id: string, parentSidePanelId: string | undefined, config: SidePanelConfig) => Promise<void>;
3134
+ readonly addSidePanel: (id: SidePanelId, parentSidePanelId: SidePanelId | undefined, config: SidePanelConfig) => Promise<void>;
3127
3135
  /**
3128
3136
  * Removes the side panel from the provider.
3129
3137
  */
3130
- readonly removeSidePanel: (sidePanelId: string) => void;
3138
+ readonly removeSidePanel: (sidePanelId: SidePanelId) => void;
3131
3139
  /**
3132
3140
  * Gets the side panel offset of the sidePanelId.
3133
3141
  */
3134
- readonly getSidePanelOffset: (sidePanelId: string) => number;
3142
+ readonly getSidePanelOffset: (sidePanelId: SidePanelId) => number;
3135
3143
  /**
3136
3144
  * Gets the current side panel ref.
3137
3145
  */
@@ -3553,7 +3561,7 @@ export declare interface TableCell {
3553
3561
  */
3554
3562
  type: CellType;
3555
3563
  /**
3556
- * Indicates if the cell is disabled.
3564
+ * @deprecated Disabled state is deprecated and will be removed in the next version.
3557
3565
  */
3558
3566
  disabled?: boolean;
3559
3567
  }
@@ -4249,6 +4257,10 @@ export declare interface TreeNodeTitleProps extends TreeNodeContentSharedProps {
4249
4257
  * Text of the tooltip.
4250
4258
  */
4251
4259
  readonly tooltipText?: string;
4260
+ /**
4261
+ * Part of title text that should be highlighted.
4262
+ */
4263
+ readonly textToHighlight?: string;
4252
4264
  }
4253
4265
 
4254
4266
  /**