@kentico/xperience-admin-components 30.4.2 → 30.5.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
@@ -387,7 +387,7 @@ declare interface BaseTileBaseProps {
387
387
  */
388
388
  readonly url?: string;
389
389
  /**
390
- * Error state when uploading file.
390
+ * Error state when uploading or missing file.
391
391
  */
392
392
  readonly errorState?: {
393
393
  /**
@@ -401,7 +401,7 @@ declare interface BaseTileBaseProps {
401
401
  /**
402
402
  * Function to close tile with error.
403
403
  */
404
- readonly onErrorClose: () => void;
404
+ readonly onErrorClose?: () => void;
405
405
  };
406
406
  /**
407
407
  * Indicates that user is missing permission to view the tile.
@@ -420,7 +420,7 @@ declare interface BaseTileBaseProps {
420
420
  */
421
421
  readonly onUploadCancel?: () => void;
422
422
  };
423
- /***
423
+ /**
424
424
  * Disabled tile. Tile is not clickable, it has disabled styles (required).
425
425
  */
426
426
  readonly disabled: boolean;
@@ -765,7 +765,7 @@ declare interface ChartLicenseProps {
765
765
 
766
766
  export declare const Checkbox: React_2.ForwardRefExoticComponent<CheckboxProps & React_2.RefAttributes<HTMLDivElement>>;
767
767
 
768
- declare type CheckboxBaseProps = Pick<React.InputHTMLAttributes<HTMLInputElement>, 'name' | 'onClick' | 'disabled' | 'tabIndex'> & UITestProps;
768
+ declare type CheckboxBaseProps = Pick<React.InputHTMLAttributes<HTMLInputElement>, 'name' | 'onClick' | 'disabled' | 'readOnly' | 'tabIndex'> & UITestProps;
769
769
 
770
770
  export declare interface CheckboxProps extends CheckboxBaseProps {
771
771
  /**
@@ -845,17 +845,50 @@ export declare enum CodeEditorLanguage {
845
845
  /**
846
846
  * Code editor props based on codemirror.
847
847
  */
848
- export declare interface CodeEditorProps extends Omit<ReactCodeMirrorProps, 'extensions' | 'readOnly' | 'editable'> {
848
+ export declare interface CodeEditorProps extends Omit<ReactCodeMirrorProps, 'extensions' | 'editable'> {
849
+ /**
850
+ * Language of the code editor.
851
+ */
849
852
  readonly language: CodeEditorLanguage;
853
+ /**
854
+ * Indicates if the code editor is disabled.
855
+ */
850
856
  readonly disabled?: boolean;
857
+ /**
858
+ * Label of the code editor.
859
+ */
851
860
  readonly label?: string;
861
+ /**
862
+ * Validation message if the code editor is in invalid state.
863
+ */
852
864
  readonly validationMessage?: string;
865
+ /**
866
+ * Indicates if the code editor is in invalid state.
867
+ */
853
868
  readonly invalid?: boolean;
869
+ /**
870
+ * Value of the code editor.
871
+ */
854
872
  readonly value?: string;
873
+ /**
874
+ * Explanation text of the code editor.
875
+ */
855
876
  readonly explanationText?: string;
877
+ /**
878
+ * Tooltip message displayed when the code editor is disabled.
879
+ */
856
880
  readonly inactiveMessage?: string;
881
+ /**
882
+ * Label icon.
883
+ */
857
884
  readonly labelIcon?: IconName;
885
+ /**
886
+ * Tooltip text for the label icon.
887
+ */
858
888
  readonly labelIconTooltip?: string;
889
+ /**
890
+ * Indicates if the user input is required.
891
+ */
859
892
  readonly markAsRequired?: boolean;
860
893
  /**
861
894
  * Test id data attribute.
@@ -1210,7 +1243,7 @@ export declare interface DateTimePickerProps {
1210
1243
  /**
1211
1244
  * Array of months.
1212
1245
  */
1213
- readonly months: string[];
1246
+ readonly months?: string[];
1214
1247
  /**
1215
1248
  * Minimal date that can be selected.
1216
1249
  */
@@ -1931,6 +1964,14 @@ export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React
1931
1964
  export declare const InputBase: React_2.ForwardRefExoticComponent<InputBaseProps & React_2.RefAttributes<HTMLDivElement>>;
1932
1965
 
1933
1966
  export declare interface InputBaseProps extends NativeInputProps, UITestProps {
1967
+ /**
1968
+ * Indicates if input is disabled.
1969
+ */
1970
+ readonly disabled?: boolean;
1971
+ /**
1972
+ * Indicates if input is read-only.
1973
+ */
1974
+ readonly readOnly?: boolean;
1934
1975
  /**
1935
1976
  * Specifies if input has valid value.
1936
1977
  */
@@ -3357,7 +3398,7 @@ export declare const NameToggleButtons: React_2.ForwardRefExoticComponent<NameTo
3357
3398
  export declare interface NameToggleButtonsProps extends ToggleButtonsProps<NameToggleButton> {
3358
3399
  }
3359
3400
 
3360
- declare type NativeInputProps = Pick<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'disabled' | 'name' | 'onClick' | 'onKeyPress' | 'min' | 'max' | 'id' | 'placeholder' | 'tabIndex' | 'onBlur' | 'role' | 'autoComplete'>;
3401
+ declare type NativeInputProps = Pick<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'name' | 'onClick' | 'onKeyPress' | 'min' | 'max' | 'id' | 'placeholder' | 'tabIndex' | 'onBlur' | 'role' | 'autoComplete'>;
3361
3402
 
3362
3403
  export declare const NotificationBarAlert: ForwardRefExoticComponent<NotificationBarAlertProps & RefAttributes<HTMLDivElement>>;
3363
3404
 
@@ -3514,9 +3555,13 @@ export declare interface RadioButtonProps {
3514
3555
  */
3515
3556
  readonly dataTestId?: string;
3516
3557
  /**
3517
- * State indicating radiobutton availability.
3558
+ * Indicates if the radiobutton is disabled.
3518
3559
  */
3519
3560
  readonly disabled?: boolean;
3561
+ /**
3562
+ * Indicates if the radiobutton is read-only.
3563
+ */
3564
+ readonly readOnly?: boolean;
3520
3565
  /**
3521
3566
  * State indicating a radiobutton error.
3522
3567
  */
@@ -3545,13 +3590,15 @@ export declare interface RadioButtonProps {
3545
3590
  */
3546
3591
  export declare const RadioGroup: React_2.ForwardRefExoticComponent<RadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
3547
3592
 
3548
- export declare interface RadioGroupProps extends Omit<FormItemWrapperProps, 'id' | 'inline' | 'labelClassnames' | 'footerClassnames' | 'subheadlineClassnames' | 'readOnly'> {
3593
+ export declare interface RadioGroupProps extends Omit<FormItemWrapperProps, 'id' | 'inline' | 'labelClassnames' | 'footerClassnames' | 'subheadlineClassnames' | 'editMode'> {
3549
3594
  readonly name: string;
3550
3595
  readonly value?: string;
3551
3596
  readonly onChange?: (value: string) => void;
3552
3597
  readonly size?: RadioGroupSize;
3553
3598
  readonly inline?: boolean;
3554
3599
  readonly ariaLabel?: string;
3600
+ readonly disabled?: boolean;
3601
+ readonly readOnly?: boolean;
3555
3602
  }
3556
3603
 
3557
3604
  export declare enum RadioGroupSize {
@@ -3654,6 +3701,10 @@ export declare interface RichTextEditorProps extends UITestProps {
3654
3701
  * Indicates if the rich text editor is disabled.
3655
3702
  */
3656
3703
  readonly disabled?: boolean;
3704
+ /**
3705
+ * Indicates if the rich text editor is read-only.
3706
+ */
3707
+ readonly readOnly?: boolean;
3657
3708
  /**
3658
3709
  * Placeholder text.
3659
3710
  */
@@ -4087,6 +4138,11 @@ export declare interface SidePanelProps extends UITestProps {
4087
4138
  * By default false.
4088
4139
  */
4089
4140
  readonly isMaximizable?: boolean;
4141
+ /**
4142
+ * Indicates if the side-panel has close button in panels`s header.
4143
+ * By default true.
4144
+ */
4145
+ readonly showCloseButton?: boolean;
4090
4146
  /**
4091
4147
  * Indicated if the side-panel can be close by clicking outside.
4092
4148
  * By default true.
@@ -4243,6 +4299,7 @@ export declare enum SortType {
4243
4299
 
4244
4300
  export declare enum Spacing {
4245
4301
  Micro = "1px",
4302
+ XXS = "2px",
4246
4303
  XS = "4px",
4247
4304
  S = "8px",
4248
4305
  M = "12px",
@@ -4617,10 +4674,14 @@ export declare interface TableRow {
4617
4674
  * The message to show when if the row is inactive.
4618
4675
  */
4619
4676
  inactiveMessage?: string;
4677
+ /**
4678
+ * The level of row indentation.
4679
+ */
4680
+ level?: number;
4620
4681
  }
4621
4682
 
4622
4683
  export declare const TableRowComponent: {
4623
- ({ cells, columns, disabled, selectable, selected, skeleton, selectLabel, maxVisibleRowActions, inactiveMessage, dataTestId, onRowSelect: onSelect, onRowClick, isInvalid, dragElement, gridLayout }: TableRowProps): JSX_2.Element;
4684
+ ({ cells, columns, disabled, selectable, selected, level, skeleton, selectLabel, maxVisibleRowActions, inactiveMessage, dataTestId, onRowSelect: onSelect, onRowClick, isInvalid, dragElement, gridLayout }: TableRowProps): JSX_2.Element;
4624
4685
  displayName: string;
4625
4686
  };
4626
4687
 
@@ -4659,6 +4720,10 @@ export declare interface TableRowProps extends UITestProps {
4659
4720
  * Indicates if the row is selected. Defaults to 'False'.
4660
4721
  */
4661
4722
  readonly selected?: boolean;
4723
+ /**
4724
+ * The level of row indentation. Defaults to 0.
4725
+ */
4726
+ readonly level?: number;
4662
4727
  /**
4663
4728
  * Indicates if the row skeleton is displayed. Defaults to 'False'.
4664
4729
  */
@@ -4721,6 +4786,7 @@ export declare interface TagProps {
4721
4786
  readonly onRemoveClick?: () => void;
4722
4787
  readonly onRemoveMouseDown?: () => void;
4723
4788
  readonly disabled?: boolean;
4789
+ readonly readOnly?: boolean;
4724
4790
  readonly removable?: boolean;
4725
4791
  readonly background?: TagBackgroundType;
4726
4792
  readonly fullWidth?: boolean;
@@ -4947,6 +5013,11 @@ export declare enum TestIds {
4947
5013
  XpChevronUp = "xp-chevron-up",
4948
5014
  XpChevronDown = "xp-chevron-down",
4949
5015
  PermissionSet = "permission-set",
5016
+ ModuleDisplayName = "ResourceDisplayName",
5017
+ FormDisplayName = "FormDisplayName",
5018
+ DatabaseColumn = "DatabaseColumn",
5019
+ DisplayNameColumn = "DisplayNameColumn",
5020
+ CodeNameColumn = "CodeNameColumn",
4950
5021
  AiraIcon = "xp-ai",
4951
5022
  AiraButton = "AiraButton",
4952
5023
  ApplicationMenu = "application-menu",
@@ -5010,20 +5081,66 @@ export declare enum TestIds {
5010
5081
 
5011
5082
  export declare const TextArea: React_2.ForwardRefExoticComponent<TextAreaProps & React_2.RefAttributes<HTMLDivElement>>;
5012
5083
 
5013
- export declare interface TextAreaProps extends Pick<React_2.TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'disabled' | 'name' | 'onClick' | 'onKeyPress' | 'id' | 'placeholder' | 'maxLength'>, UITestProps {
5014
- readonly label?: string;
5084
+ export declare interface TextAreaProps extends Pick<React_2.TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'name' | 'onClick' | 'onKeyPress' | 'id' | 'placeholder' | 'maxLength'>, UITestProps {
5085
+ /**
5086
+ * Indicates if the text area is disabled.
5087
+ */
5088
+ readonly disabled?: boolean;
5089
+ /**
5090
+ * Indicates if the text area is read-only.
5091
+ */
5015
5092
  readonly readOnly?: boolean;
5093
+ /**
5094
+ * Text area label text.
5095
+ */
5096
+ readonly label?: string;
5097
+ /**
5098
+ * Validation message.
5099
+ */
5016
5100
  readonly validationMessage?: string;
5101
+ /**
5102
+ * Indicates if the text area is in invalid state.
5103
+ */
5017
5104
  readonly invalid?: boolean;
5105
+ /**
5106
+ * Text area value.
5107
+ */
5018
5108
  readonly value?: string;
5109
+ /**
5110
+ * Minimum number of rows.
5111
+ */
5019
5112
  readonly minRows?: number;
5113
+ /**
5114
+ * Maximum number of rows.
5115
+ */
5020
5116
  readonly maxRows?: number;
5117
+ /**
5118
+ * Explanation text for the text area.
5119
+ */
5021
5120
  readonly explanationText?: string;
5121
+ /**
5122
+ * Tooltip text displayed when label is disabled.
5123
+ */
5022
5124
  readonly inactiveMessage?: string;
5125
+ /**
5126
+ * Label icon.
5127
+ */
5023
5128
  readonly labelIcon?: IconName;
5129
+ /**
5130
+ * Tooltip text for label icon.
5131
+ */
5024
5132
  readonly labelIconTooltip?: string;
5133
+ /**
5134
+ * Indicates if the user input is required.
5135
+ */
5025
5136
  readonly markAsRequired?: boolean;
5137
+ /**
5138
+ * Text area ref.
5139
+ */
5026
5140
  readonly textAreaRef?: RefObject<HTMLTextAreaElement>;
5141
+ /**
5142
+ * Actions to be rendered in the text area.
5143
+ */
5027
5144
  readonly renderActions?: () => React_2.ReactNode;
5028
5145
  /**
5029
5146
  * Dangerously sets explanation text as inner HTML.