@zextras/carbonio-design-system 2.2.0 → 2.3.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/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [2.3.0](https://github.com/Zextras/carbonio-design-system/compare/v2.2.0...v2.3.0) (2023-08-30)
6
+
7
+
8
+ ### Features
9
+
10
+ * **Dropdown:** update placement of nested levels to be side by side ([f54dc35](https://github.com/Zextras/carbonio-design-system/commit/f54dc3524bf7bd451cb57362a389ff4ed1ddfefd)), closes [#213](https://github.com/Zextras/carbonio-design-system/issues/213)
11
+ * **RadioGroup:** improve RadioGroup component ([0bcdfdb](https://github.com/Zextras/carbonio-design-system/commit/0bcdfdb1229499ce18ac7932b2291b2706211ea8)), closes [#200](https://github.com/Zextras/carbonio-design-system/issues/200)
12
+ * **Radio:** improve Radio component ([3b21c71](https://github.com/Zextras/carbonio-design-system/commit/3b21c71376d56720501677d835d826eb7087619f)), closes [#199](https://github.com/Zextras/carbonio-design-system/issues/199)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **Chip:** fix avatarBackground prop type ([ac19f66](https://github.com/Zextras/carbonio-design-system/commit/ac19f66749788859b065070e654f2f412854826d))
18
+ * **Chip:** fix Chip component prop types ([ac4d5d8](https://github.com/Zextras/carbonio-design-system/commit/ac4d5d8796c4198a6d99af4c3cefda954062510a)), closes [#211](https://github.com/Zextras/carbonio-design-system/issues/211)
19
+ * **Shimmer:** fix Shimmer component types ([e9afec6](https://github.com/Zextras/carbonio-design-system/commit/e9afec624551d4d6e5d6298e1bdc248b6f978094)), closes [#212](https://github.com/Zextras/carbonio-design-system/issues/212)
20
+ * **Shimmer:** fix Shimmer component types ([9b17832](https://github.com/Zextras/carbonio-design-system/commit/9b178327bbbe5afb3e562d61ceb0c51b56b42a8b))
21
+
5
22
  ## [2.2.0](https://github.com/Zextras/carbonio-design-system/compare/v2.1.1...v2.2.0) (2023-07-06)
6
23
 
7
24
 
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.33.6"
8
+ "packageVersion": "7.36.3"
9
9
  }
10
10
  ]
11
11
  }
@@ -3,6 +3,7 @@ import { CSSProperties } from 'react';
3
3
  import DatePicker from 'react-datepicker';
4
4
  import { DefaultTheme } from 'styled-components';
5
5
  import { ErrorInfo } from 'react';
6
+ import { FieldsetHTMLAttributes } from 'react';
6
7
  import { FlattenSimpleInterpolation } from 'styled-components';
7
8
  import { ForwardRefExoticComponent } from 'react';
8
9
  import { getDefaultLocale } from 'react-datepicker';
@@ -281,11 +282,11 @@ declare type ButtonShape = 'regular' | 'round';
281
282
  declare type ButtonSize = 'extrasmall' | 'small' | 'medium' | 'large' | 'extralarge';
282
283
 
283
284
  declare type ButtonSkeletonProps = {
284
- variant: string;
285
- radius: string;
286
- size: keyof typeof SIZES;
287
- width: string;
288
- height: string;
285
+ variant?: string;
286
+ radius?: string;
287
+ size?: keyof typeof SIZES;
288
+ width?: string;
289
+ height?: string;
289
290
  };
290
291
 
291
292
  declare type ButtonType = 'default' | 'outlined' | 'ghost';
@@ -488,14 +489,15 @@ export declare interface ChipProps extends RowProps {
488
489
  /** Chip Avatar Icon */
489
490
  avatarIcon?: keyof DefaultTheme['icons'];
490
491
  /** Chip Avatar Background Color */
491
- avatarBackground?: keyof DefaultTheme['palette'];
492
+ avatarBackground?: AvatarPropTypes['background'];
492
493
  /** Chip avatar color (icon color or capitals color) */
493
- avatarColor?: keyof DefaultTheme['palette'];
494
- /** Chip avatar label. It allows to override the capitals for the avatar.
494
+ avatarColor?: AvatarPropTypes['color'];
495
+ /** Chip avatar label.
496
+ * It allows overriding the capitals for the avatar.
495
497
  * If the main label is not a string, you have to fill this prop to show capitals in the avatar */
496
- avatarLabel?: string;
498
+ avatarLabel?: AvatarPropTypes['label'];
497
499
  /** Chip avatar picture */
498
- avatarPicture?: string;
500
+ avatarPicture?: AvatarPropTypes['picture'];
499
501
  /** Chip background color */
500
502
  background?: keyof DefaultTheme['palette'];
501
503
  /** Chip shape */
@@ -1053,7 +1055,7 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
1053
1055
  onChange: () => void;
1054
1056
  }
1055
1057
 
1056
- declare type IconComponent = (props: SVGProps<SVGSVGElement>) => JSX.Element;
1058
+ declare type IconComponent = (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
1057
1059
 
1058
1060
  export declare interface IconComponentProps extends SVGAttributes<SVGSVGElement> {
1059
1061
  /** Icon to show. It can be a string key for the theme icons or a custom icon component */
@@ -1317,7 +1319,7 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
1317
1319
  centered?: boolean | undefined;
1318
1320
  }, never>;
1319
1321
 
1320
- export declare const ModalFooter: ({ centered, confirmColor, confirmLabel, errorActionLabel, customFooter, dismissLabel, onClose, onConfirm, onErrorAction, onSecondaryAction, optionalFooter, secondaryActionLabel, type }: ModalFooterProps) => JSX.Element;
1322
+ export declare const ModalFooter: ({ centered, confirmColor, confirmLabel, errorActionLabel, customFooter, dismissLabel, onClose, onConfirm, onErrorAction, onSecondaryAction, optionalFooter, secondaryActionLabel, type }: ModalFooterProps) => React_2.JSX.Element;
1321
1323
 
1322
1324
  export declare const ModalFooterContent: React_2.VFC<ModalFooterContentProps>;
1323
1325
 
@@ -1356,7 +1358,7 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
1356
1358
  onErrorAction?: () => void;
1357
1359
  }
1358
1360
 
1359
- export declare const ModalHeader: ({ centered, onClose, showCloseIcon, title, type, closeIconTooltip }: ModalHeaderProps) => JSX.Element;
1361
+ export declare const ModalHeader: ({ centered, onClose, showCloseIcon, title, type, closeIconTooltip }: ModalHeaderProps) => React_2.JSX.Element;
1360
1362
 
1361
1363
  export declare interface ModalHeaderProps {
1362
1364
  centered?: boolean | undefined;
@@ -1367,7 +1369,7 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
1367
1369
  closeIconTooltip?: string;
1368
1370
  }
1369
1371
 
1370
- export declare function ModalManager({ children }: ModalManagerProps): JSX.Element;
1372
+ export declare function ModalManager({ children }: ModalManagerProps): React_2.JSX.Element;
1371
1373
 
1372
1374
  export declare const ModalManagerContext: React_2.Context<CreateModalFn>;
1373
1375
 
@@ -1464,7 +1466,7 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
1464
1466
  maxVisible?: number;
1465
1467
  };
1466
1468
 
1467
- export declare const Padding: React_2.ForwardRefExoticComponent<(PaddingProps & Omit<React_2.HTMLAttributes<HTMLDivElement>, "id" | "height" | "width" | "color" | "translate" | "hidden" | "slot" | "style" | "title" | "dir" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "role" | "children" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture">) & React_2.RefAttributes<HTMLDivElement>>;
1469
+ export declare const Padding: React_2.ForwardRefExoticComponent<(PaddingProps & Omit<React_2.HTMLAttributes<HTMLDivElement>, "id" | "height" | "width" | "color" | "content" | "translate" | "hidden" | "slot" | "style" | "title" | "dir" | "rel" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "role" | "children" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "autoFocus" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture">) & React_2.RefAttributes<HTMLDivElement>>;
1468
1470
 
1469
1471
  export declare type PaddingObj = {
1470
1472
  value: string | keyof DefaultTheme['sizes']['padding'] | 0;
@@ -1547,7 +1549,10 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
1547
1549
  disablePortal?: boolean;
1548
1550
  }
1549
1551
 
1550
- export declare function pseudoClasses(theme: DefaultTheme, color: string | keyof DefaultTheme['palette'], cssProperty?: string): FlattenSimpleInterpolation;
1552
+ export declare function pseudoClasses(theme: DefaultTheme, color: string, cssProperty?: string, options?: {
1553
+ transition?: boolean;
1554
+ outline?: boolean;
1555
+ }): FlattenSimpleInterpolation;
1551
1556
 
1552
1557
  export declare const Quota: React_2.ForwardRefExoticComponent<QuotaProps & React_2.RefAttributes<HTMLDivElement>>;
1553
1558
 
@@ -1562,45 +1567,64 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
1562
1567
  height?: number | string;
1563
1568
  }
1564
1569
 
1565
- export declare const Radio: React_2.ForwardRefExoticComponent<RadioProps & React_2.RefAttributes<HTMLDivElement>>;
1566
-
1567
- export declare const RadioGroup: React_2.ForwardRefExoticComponent<RadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
1570
+ export declare const Radio: RadioType;
1568
1571
 
1569
- export declare interface RadioGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
1570
- /** Default value for the radio group */
1571
- defaultValue?: string;
1572
- /** Radio group value */
1573
- value?: string;
1574
- /** change callback */
1575
- onChange?: (value: string) => void;
1576
- /** children elements of Radio Group */
1577
- children: JSX.Element[];
1578
- }
1572
+ declare const RADIO_SIZE: Record<'small' | 'medium', {
1573
+ icon: keyof DefaultTheme['sizes']['icon'];
1574
+ label: TextProps['size'];
1575
+ }>;
1579
1576
 
1580
- export declare interface RadioProps extends Omit<ContainerProps, 'onChange'> {
1577
+ declare interface RadioComponentProps<T extends RadioInputHTMLAttributes['value']> {
1581
1578
  /** status of the Radio */
1582
1579
  defaultChecked?: boolean;
1583
1580
  /** Radio checked */
1584
1581
  checked?: boolean;
1585
- /** value of the Radio */
1586
- value?: string;
1587
1582
  /** Radio text */
1588
1583
  label?: string | React_2.ReactElement;
1589
1584
  /** whether to disable the radio or not */
1590
1585
  disabled?: boolean;
1591
1586
  /** click callback */
1592
- onClick?: React_2.ReactEventHandler;
1587
+ onClick?: (e: React_2.MouseEvent<HTMLInputElement> | KeyboardEvent) => void;
1593
1588
  /** change callback */
1594
1589
  onChange?: (checked: boolean) => void;
1595
1590
  /** radio padding */
1596
1591
  padding?: ContainerProps['padding'];
1597
1592
  /** available sizes */
1598
- size?: RadioSize;
1593
+ size?: keyof typeof RADIO_SIZE;
1599
1594
  /** icon color */
1600
- iconColor?: keyof DefaultTheme['palette'];
1595
+ iconColor?: keyof DefaultTheme['palette'] | CSSProperties['color'];
1596
+ /** Ref for the input element */
1597
+ inputRef?: React_2.Ref<HTMLInputElement>;
1598
+ /** Value of the radio input */
1599
+ value?: T;
1601
1600
  }
1602
1601
 
1603
- declare type RadioSize = 'medium' | 'small';
1602
+ export declare const RadioGroup: RadioGroupType;
1603
+
1604
+ export declare interface RadioGroupProps<T extends RadioProps['value']> extends Omit<FieldsetHTMLAttributes<HTMLFieldSetElement>, 'onChange'> {
1605
+ /** Default value for the radio group */
1606
+ defaultValue?: RadioValue<T>;
1607
+ /** Radio group value */
1608
+ value?: RadioValue<T>;
1609
+ /** change callback */
1610
+ onChange?: (value: RadioValue<T>) => void;
1611
+ /** children elements of Radio Group */
1612
+ children: React_2.ReactElement<RadioProps<T>>[];
1613
+ }
1614
+
1615
+ declare type RadioGroupType = <T extends RadioProps['value'] = string>(p: RadioGroupProps<T> & React_2.RefAttributes<HTMLFieldSetElement>) => React_2.ReactElement | null;
1616
+
1617
+ declare type RadioInputHTMLAttributes = InputHTMLAttributes<HTMLInputElement> & {
1618
+ type: 'radio';
1619
+ };
1620
+
1621
+ export declare type RadioProps<T extends RadioInputHTMLAttributes['value'] = string> = RadioComponentProps<T> & Omit<RadioInputHTMLAttributes, 'type' | 'checked' | 'id' | keyof RadioComponentProps<T>>;
1622
+
1623
+ declare type RadioType = (<T extends RadioInputHTMLAttributes['value'] = string>(p: RadioProps<T> & React_2.RefAttributes<HTMLDivElement>) => React_2.ReactElement<RadioProps> | null) & {
1624
+ _id?: number;
1625
+ };
1626
+
1627
+ declare type RadioValue<T extends RadioProps['value']> = RadioProps<T>['value'];
1604
1628
 
1605
1629
  export { registerLocale }
1606
1630
 
@@ -1608,7 +1632,7 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
1608
1632
  [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
1609
1633
  }[Keys];
1610
1634
 
1611
- export declare function Responsive({ children, mode, target }: ResponsiveProps): JSX.Element;
1635
+ export declare function Responsive({ children, mode, target }: ResponsiveProps): React_2.JSX.Element;
1612
1636
 
1613
1637
  export declare interface ResponsiveProps {
1614
1638
  /** Whether the component's children should be displayed on mobile or desktop mode */
@@ -1689,17 +1713,17 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
1689
1713
  iconStart: boolean;
1690
1714
  iconEnd: boolean;
1691
1715
  badge: boolean;
1692
- }) => JSX.Element;
1693
- Avatar: ({ size, ...rest }: AvatarSkeletonComponentProps) => JSX.Element;
1694
- Badge: ({ size, ...rest }: BadgeSkeletonProps) => JSX.Element;
1695
- Button: ({ size, ...rest }: ButtonSkeletonProps) => JSX.Element;
1696
- Checkbox: ({ size, ...rest }: IconSkeletonProps) => JSX.Element;
1716
+ }) => React_2.JSX.Element;
1717
+ Avatar: ({ size, ...rest }: AvatarSkeletonComponentProps) => React_2.JSX.Element;
1718
+ Badge: ({ size, ...rest }: BadgeSkeletonProps) => React_2.JSX.Element;
1719
+ Button: ({ size, ...rest }: ButtonSkeletonProps) => React_2.JSX.Element;
1720
+ Checkbox: ({ size, ...rest }: IconSkeletonProps) => React_2.JSX.Element;
1697
1721
  EmailChip: ({ width, iconStart, iconEnd, iconEndAdditional }: {
1698
1722
  width?: string | undefined;
1699
1723
  iconStart?: boolean | undefined;
1700
1724
  iconEnd?: boolean | undefined;
1701
1725
  iconEndAdditional?: boolean | undefined;
1702
- }) => JSX.Element;
1726
+ }) => React_2.JSX.Element;
1703
1727
  FormSection: StyledComponent<React_2.ForwardRefExoticComponent<FormElementProps & React_2.RefAttributes<HTMLDivElement>>, DefaultTheme, {
1704
1728
  variant: string;
1705
1729
  backgroundSize: string;
@@ -1708,31 +1732,31 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
1708
1732
  variant: string;
1709
1733
  backgroundSize: string;
1710
1734
  }, never>;
1711
- Icon: ({ size, ...rest }: IconSkeletonProps) => JSX.Element;
1735
+ Icon: ({ size, ...rest }: IconSkeletonProps) => React_2.JSX.Element;
1712
1736
  Input: ({ width, checkbox }: {
1713
1737
  width?: string | undefined;
1714
1738
  checkbox?: boolean | undefined;
1715
- }) => JSX.Element;
1739
+ }) => React_2.JSX.Element;
1716
1740
  ListItem: ({ width, type }: {
1717
1741
  width?: string | undefined;
1718
1742
  type?: number | undefined;
1719
- }) => JSX.Element;
1720
- Logo: ({ size, ...rest }: LogoSkeletonProps) => JSX.Element;
1743
+ }) => React_2.JSX.Element;
1744
+ Logo: ({ size, ...rest }: LogoSkeletonProps) => React_2.JSX.Element;
1721
1745
  Text: StyledComponent<"div", DefaultTheme, SkeletonProps, never>;
1722
- Quota: (props: SkeletonProps) => JSX.Element;
1723
- Searchbar: (props: SkeletonProps) => JSX.Element;
1746
+ Quota: (props: SkeletonProps) => React_2.JSX.Element;
1747
+ Searchbar: (props: SkeletonProps) => React_2.JSX.Element;
1724
1748
  Snackbar: ({ width, elementStart, elementEnd }: {
1725
1749
  width?: string | undefined;
1726
1750
  elementStart?: boolean | undefined;
1727
1751
  elementEnd?: boolean | undefined;
1728
- }) => JSX.Element;
1752
+ }) => React_2.JSX.Element;
1729
1753
  Stepper: ({ size, steppersNumber, ...rest }: AvatarSkeletonComponentProps & {
1730
1754
  steppersNumber: number;
1731
- }) => JSX.Element;
1755
+ }) => React_2.JSX.Element;
1732
1756
  TableListItem: ({ width, type }: {
1733
1757
  width?: string | undefined;
1734
1758
  type?: number | undefined;
1735
- }) => JSX.Element;
1759
+ }) => React_2.JSX.Element;
1736
1760
  };
1737
1761
 
1738
1762
  declare type SingleItemArray<T> = [T] | [];
@@ -1776,7 +1800,7 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
1776
1800
 
1777
1801
  export declare const Snackbar: React_2.ForwardRefExoticComponent<SnackbarProps & React_2.RefAttributes<HTMLDivElement>>;
1778
1802
 
1779
- export declare function SnackbarManager({ children, autoHideDefaultTimeout }: SnackbarManagerProps): JSX.Element;
1803
+ export declare function SnackbarManager({ children, autoHideDefaultTimeout }: SnackbarManagerProps): React_2.JSX.Element;
1780
1804
 
1781
1805
  export declare const SnackbarManagerContext: React_2.Context<CreateSnackbarFn>;
1782
1806
 
@@ -2093,7 +2117,7 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
2093
2117
  /** Custom transition css delay in ms */
2094
2118
  transitionDelay?: CSSStyleDeclaration['transitionDelay'] | number;
2095
2119
  /** Children */
2096
- children: JSX.Element;
2120
+ children: React_2.JSX.Element;
2097
2121
  }
2098
2122
 
2099
2123
  export declare interface TransitionProps extends TransitionOnProps {
@@ -2182,7 +2206,7 @@ export declare function generateHighlightSet(fromColorSet: Parameters<typeof gen
2182
2206
 
2183
2207
  export declare const useTheme: () => DefaultTheme;
2184
2208
 
2185
- export declare function ZimbraClassicThemeContextProvider({ styleSheetTarget, children, extension, loadDefaultFont }: ZimbraClassicThemeContextProviderProps): JSX.Element;
2209
+ export declare function ZimbraClassicThemeContextProvider({ styleSheetTarget, children, extension, loadDefaultFont }: ZimbraClassicThemeContextProviderProps): React_2.JSX.Element;
2186
2210
 
2187
2211
  export declare interface ZimbraClassicThemeContextProviderProps {
2188
2212
  styleSheetTarget?: HTMLElement;