@kentico/xperience-admin-components 29.5.3 → 29.6.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
|
@@ -7,6 +7,7 @@ import { DraggableProvidedDragHandleProps } from 'react-beautiful-dnd';
|
|
|
7
7
|
import { DropResult } from 'react-beautiful-dnd';
|
|
8
8
|
import { ForwardRefExoticComponent } from 'react';
|
|
9
9
|
import { FroalaOptions } from 'froala-editor';
|
|
10
|
+
import { HTMLAttributeAnchorTarget } from 'react';
|
|
10
11
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
11
12
|
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
|
12
13
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
@@ -394,6 +395,10 @@ declare interface BaseTileBaseProps {
|
|
|
394
395
|
*/
|
|
395
396
|
readonly onErrorClose: () => void;
|
|
396
397
|
};
|
|
398
|
+
/**
|
|
399
|
+
* Indicates that user is missing permission to view the tile.
|
|
400
|
+
*/
|
|
401
|
+
readonly isMissingPermission?: boolean;
|
|
397
402
|
/**
|
|
398
403
|
* Indicates uploading a file.
|
|
399
404
|
*/
|
|
@@ -1469,6 +1474,15 @@ export declare enum DropPlacement {
|
|
|
1469
1474
|
|
|
1470
1475
|
export declare const Dropzone: React_2.ForwardRefExoticComponent<DropzoneProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1471
1476
|
|
|
1477
|
+
export declare const DropzoneOverlay: React_2.ForwardRefExoticComponent<DropzoneOverlayProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1478
|
+
|
|
1479
|
+
export declare interface DropzoneOverlayProps extends DropzoneProps {
|
|
1480
|
+
/**
|
|
1481
|
+
* The main title of the dropzone, which will be shown to the user in the center of the screen.
|
|
1482
|
+
*/
|
|
1483
|
+
readonly title?: string;
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1472
1486
|
export declare interface DropzoneProps {
|
|
1473
1487
|
/**
|
|
1474
1488
|
* Callback method called when files are selected.
|
|
@@ -1526,8 +1540,27 @@ export declare interface FileInputProps extends UITestProps {
|
|
|
1526
1540
|
readonly onFileChange: (files: FileList) => void;
|
|
1527
1541
|
}
|
|
1528
1542
|
|
|
1543
|
+
declare enum FileSizeUnit {
|
|
1544
|
+
Byte = "byte",
|
|
1545
|
+
Kilobyte = "kilobyte",
|
|
1546
|
+
Megabyte = "megabyte",
|
|
1547
|
+
Gigabyte = "gigabyte"
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1529
1550
|
export declare function forceClickOutside(e?: MouseEvent): void;
|
|
1530
1551
|
|
|
1552
|
+
/**
|
|
1553
|
+
* Formats file size to a readable string.
|
|
1554
|
+
* @param fileSizeObject Object containing formatted file size and units.
|
|
1555
|
+
* @returns Formatted file size string.
|
|
1556
|
+
*/
|
|
1557
|
+
export declare const formatFileSize: (fileSizeObject: FormattedFileSize | null) => string | null;
|
|
1558
|
+
|
|
1559
|
+
declare type FormattedFileSize = {
|
|
1560
|
+
fileSize: string;
|
|
1561
|
+
unit: FileSizeUnit;
|
|
1562
|
+
};
|
|
1563
|
+
|
|
1531
1564
|
export declare const FormItemWrapper: React_2.ForwardRefExoticComponent<FormItemWrapperProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1532
1565
|
|
|
1533
1566
|
export declare interface FormItemWrapperProps extends UITestProps {
|
|
@@ -1622,6 +1655,16 @@ export declare function getDataTestId(input: string): string;
|
|
|
1622
1655
|
|
|
1623
1656
|
export declare function getDataTestId(input: string | undefined, fallback: string): string;
|
|
1624
1657
|
|
|
1658
|
+
/**
|
|
1659
|
+
* Converts file size from bytes to other units to make the size readable.
|
|
1660
|
+
* If the converted file size is less than DecimalSizeLimit and rounding the number doesn't degrade it to integer,
|
|
1661
|
+
* the file size is rounded and formatted to a number of fraction digits specified by DecimalDigits,
|
|
1662
|
+
* otherwise the file size is rounded and formatted to a whole number.
|
|
1663
|
+
* @param fileSizeInBytes File size to be formatted.
|
|
1664
|
+
* @returns Object containing formatted file size and units.
|
|
1665
|
+
*/
|
|
1666
|
+
export declare const getFileSizeObject: (fileSizeInBytes: number) => FormattedFileSize | null;
|
|
1667
|
+
|
|
1625
1668
|
export declare enum Gradients {
|
|
1626
1669
|
VeryLightWarmGrey = "var(--gradient-very-light-warm-grey)",
|
|
1627
1670
|
Medium = "var(--gradient-medium)",
|
|
@@ -2118,6 +2161,7 @@ export declare const KXIcons: {
|
|
|
2118
2161
|
'xp-folder-clock': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
2119
2162
|
'xp-folder-cogwheel': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
2120
2163
|
'xp-folder-inverted': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
2164
|
+
'xp-folder-move': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
2121
2165
|
'xp-folder-opened': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
2122
2166
|
'xp-folder': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
2123
2167
|
'xp-form': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
@@ -2364,14 +2408,14 @@ export declare const KXIcons: {
|
|
|
2364
2408
|
* Component for displaying label with tooltip visible when hovering over information icon.
|
|
2365
2409
|
*/
|
|
2366
2410
|
export declare const LabelWithTooltip: {
|
|
2367
|
-
({ label, tooltipText }: LabelWithTooltipProps): JSX_2.Element;
|
|
2411
|
+
({ label, tooltipText, dataTestId }: LabelWithTooltipProps): JSX_2.Element;
|
|
2368
2412
|
displayName: string;
|
|
2369
2413
|
};
|
|
2370
2414
|
|
|
2371
2415
|
/**
|
|
2372
2416
|
* Represents properties for the LabelWithTooltip component.
|
|
2373
2417
|
*/
|
|
2374
|
-
export declare interface LabelWithTooltipProps {
|
|
2418
|
+
export declare interface LabelWithTooltipProps extends UITestProps {
|
|
2375
2419
|
readonly label: string;
|
|
2376
2420
|
readonly tooltipText: string;
|
|
2377
2421
|
}
|
|
@@ -3316,10 +3360,11 @@ export declare const SimpleStatusSuccess: React_2.ForwardRefExoticComponent<Simp
|
|
|
3316
3360
|
export declare interface SimpleStatusSuccessProps extends Omit<BaseSimpleStatusProps, 'type' | 'labelColor' | 'iconColor'> {
|
|
3317
3361
|
}
|
|
3318
3362
|
|
|
3319
|
-
export declare const SimpleStatusTableCellComponent: ({ iconName, label, iconColor, labelColor, tooltipText }: SimpleStatusTableCellComponentProps) => JSX_2.Element;
|
|
3363
|
+
export declare const SimpleStatusTableCellComponent: ({ iconName, label, iconColor, iconAlign, labelColor, tooltipText }: SimpleStatusTableCellComponentProps) => JSX_2.Element;
|
|
3320
3364
|
|
|
3321
3365
|
export declare interface SimpleStatusTableCellComponentProps extends StatusComponentProps {
|
|
3322
3366
|
readonly tooltipText?: string;
|
|
3367
|
+
readonly iconAlign?: SimpleStatusAlign;
|
|
3323
3368
|
}
|
|
3324
3369
|
|
|
3325
3370
|
declare enum SimpleStatusType {
|
|
@@ -3421,7 +3466,7 @@ export declare interface SpinnerProps extends Omit<IconProps, 'name'> {
|
|
|
3421
3466
|
}
|
|
3422
3467
|
|
|
3423
3468
|
export declare const SplitButton: {
|
|
3424
|
-
({ size, color, disabled, disabledState, inProgress, icon, open, onToggle, children, onClick, title, ...props }: SplitButtonProps): JSX_2.Element;
|
|
3469
|
+
({ size, color, disabled, disabledState, inProgress, icon, open, onToggle, children, href, target, onClick, title, ...props }: SplitButtonProps): JSX_2.Element;
|
|
3425
3470
|
displayName: string;
|
|
3426
3471
|
};
|
|
3427
3472
|
|
|
@@ -3433,10 +3478,12 @@ export declare enum SplitButtonDisabledState {
|
|
|
3433
3478
|
|
|
3434
3479
|
export declare interface SplitButtonProps extends Omit<BaseButtonProps, 'renderComponent' | 'trailingIcon' | 'active' | 'badge' | 'fillContainer' | 'destructive' | 'borderless' | 'className'> {
|
|
3435
3480
|
readonly color: ButtonColor.Primary | ButtonColor.Secondary;
|
|
3436
|
-
readonly size: ButtonSize.S | ButtonSize.M | ButtonSize.L;
|
|
3437
3481
|
readonly onToggle?: (isOpen: boolean) => void;
|
|
3482
|
+
readonly size: ButtonSize.S | ButtonSize.M | ButtonSize.L;
|
|
3438
3483
|
readonly open?: boolean;
|
|
3439
|
-
readonly
|
|
3484
|
+
readonly href?: string;
|
|
3485
|
+
readonly target?: HTMLAttributeAnchorTarget;
|
|
3486
|
+
readonly onClick?: (e: MouseEvent_2<HTMLElement>) => void;
|
|
3440
3487
|
readonly children: React.ReactNode;
|
|
3441
3488
|
readonly title?: string;
|
|
3442
3489
|
/**
|
|
@@ -3902,6 +3949,7 @@ export declare const TextArea: React_2.ForwardRefExoticComponent<TextAreaProps &
|
|
|
3902
3949
|
|
|
3903
3950
|
export declare interface TextAreaProps extends Pick<React_2.TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'disabled' | 'name' | 'onClick' | 'onKeyPress' | 'id' | 'placeholder' | 'maxLength'>, UITestProps {
|
|
3904
3951
|
readonly label?: string;
|
|
3952
|
+
readonly readOnly?: boolean;
|
|
3905
3953
|
readonly validationMessage?: string;
|
|
3906
3954
|
readonly invalid?: boolean;
|
|
3907
3955
|
readonly value?: string;
|