@zextras/carbonio-design-system 0.5.0 → 0.5.1

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,20 @@
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
+ ### [0.5.1](https://github.com/Zextras/carbonio-design-system/compare/v0.5.0...v0.5.1) (2022-11-10)
6
+
7
+
8
+ ### Features
9
+
10
+ * convert px to rem ([67e898f](https://github.com/Zextras/carbonio-design-system/commit/67e898f40d4cc40452d75cb33e91a2f3050f3984)), closes [#134](https://github.com/Zextras/carbonio-design-system/issues/134)
11
+ * **icons:** migrate icons to ts and update icon set ([b7660e9](https://github.com/Zextras/carbonio-design-system/commit/b7660e97cd0580487e6b606c6e5ca717ffe0cba5)), closes [#135](https://github.com/Zextras/carbonio-design-system/issues/135) [#139](https://github.com/Zextras/carbonio-design-system/issues/139)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * apply right conversion to modal medium size ([83a4a8b](https://github.com/Zextras/carbonio-design-system/commit/83a4a8bb22c7bc167c577bda73e140beb4cc8e4c)), closes [#140](https://github.com/Zextras/carbonio-design-system/issues/140)
17
+ * **ModalContent:** remove default for min-height ([dfd7e37](https://github.com/Zextras/carbonio-design-system/commit/dfd7e376817f44bdf041aca51960aafffde015d7)), closes [#138](https://github.com/Zextras/carbonio-design-system/issues/138)
18
+
5
19
  ## [0.5.0](https://github.com/Zextras/carbonio-design-system/compare/v0.4.1...v0.5.0) (2022-10-14)
6
20
 
7
21
 
@@ -15,6 +15,7 @@ import { ReactDatePickerProps } from 'react-datepicker';
15
15
  import { RefAttributes } from 'react';
16
16
  import { StyledComponent } from 'styled-components';
17
17
  import { SVGAttributes } from 'react';
18
+ import { SVGProps } from 'react';
18
19
  import { ThemeContext } from 'styled-components';
19
20
 
20
21
  export declare const Accordion: React_2.ForwardRefExoticComponent<AccordionProps & React_2.RefAttributes<HTMLDivElement>>;
@@ -35,7 +36,7 @@ export declare type AccordionItemType = {
35
36
  label?: string;
36
37
  items?: AccordionItemType[];
37
38
  onClick?: (event: KeyboardEvent | React_2.SyntheticEvent) => void;
38
- icon?: keyof ThemeObj['icons'];
39
+ icon?: keyof DefaultTheme['icons'];
39
40
  CustomComponent?: React_2.ComponentType<{
40
41
  item: AccordionItemType;
41
42
  }>;
@@ -44,7 +45,7 @@ export declare type AccordionItemType = {
44
45
  badgeType?: 'read' | 'unread';
45
46
  badgeCounter?: number;
46
47
  open?: boolean;
47
- background?: keyof ThemeObj['palette'];
48
+ background?: keyof DefaultTheme['palette'];
48
49
  disableHover?: boolean;
49
50
  active?: boolean;
50
51
  level?: number;
@@ -59,7 +60,7 @@ export declare interface AccordionProps extends ContainerProps {
59
60
  /** Depth level, internally used for recursion nesting */
60
61
  level?: number;
61
62
  /** Accordion background */
62
- background?: keyof ThemeObj['palette'];
63
+ background?: keyof DefaultTheme['palette'];
63
64
  /** id of the currently active item (alternative to the active item flag) */
64
65
  activeId?: string;
65
66
  /** list of ids of the currently open items (alternative to the open item flag) */
@@ -77,7 +78,7 @@ export declare const Avatar: React_2.ForwardRefExoticComponent<AvatarPropTypes &
77
78
 
78
79
  export declare interface AvatarPropTypes extends HTMLAttributes<HTMLDivElement> {
79
80
  /** size of the Avatar circle */
80
- size?: keyof ThemeObj['sizes']['avatar'];
81
+ size?: keyof DefaultTheme['sizes']['avatar'];
81
82
  /** url to the profile picture */
82
83
  picture?: string;
83
84
  /** string to be used as capitals, or for its calculation */
@@ -148,16 +149,16 @@ declare type ButtonColorsByType = ({
148
149
  type?: 'default' | 'outlined';
149
150
  } & ({
150
151
  /** Main color */
151
- color?: string | keyof ThemeObj['palette'];
152
+ color?: string | keyof DefaultTheme['palette'];
152
153
  } | {
153
154
  /** Background color of the button (only for 'default' and 'outlined' types, to use instead of color for more specificity) */
154
- backgroundColor?: string | keyof ThemeObj['palette'];
155
+ backgroundColor?: string | keyof DefaultTheme['palette'];
155
156
  /** Specific color of the content (only for 'default' and 'outlined' types, to use instead of color for more specificity) */
156
- labelColor?: string | keyof ThemeObj['palette'];
157
+ labelColor?: string | keyof DefaultTheme['palette'];
157
158
  })) | {
158
159
  type: 'ghost';
159
160
  /** Main color */
160
- color?: string | keyof ThemeObj['palette'];
161
+ color?: string | keyof DefaultTheme['palette'];
161
162
  };
162
163
 
163
164
  declare type ButtonIconPlacement = 'left' | 'right';
@@ -168,11 +169,11 @@ export declare interface ButtonOldProps {
168
169
  /** Type of button */
169
170
  type?: ButtonType;
170
171
  /** Color of button */
171
- color?: string | keyof ThemeObj['palette'];
172
+ color?: string | keyof DefaultTheme['palette'];
172
173
  /** Color of the Button label */
173
- labelColor?: string | keyof ThemeObj['palette'];
174
+ labelColor?: string | keyof DefaultTheme['palette'];
174
175
  /** Color of the Button background */
175
- backgroundColor?: string | keyof ThemeObj['palette'];
176
+ backgroundColor?: string | keyof DefaultTheme['palette'];
176
177
  /** Button text */
177
178
  label: string;
178
179
  /** `fit`: assume the size of the content
@@ -181,7 +182,7 @@ export declare interface ButtonOldProps {
181
182
  */
182
183
  size?: 'fit' | 'fill';
183
184
  /** optional icon to display beside the label */
184
- icon?: keyof ThemeObj['icons'];
185
+ icon?: keyof DefaultTheme['icons'];
185
186
  /** Icon position */
186
187
  iconPlacement?: 'left' | 'right';
187
188
  /** whether to show the loading icon */
@@ -283,9 +284,9 @@ export declare interface CheckboxProps extends Omit<ContainerProps, 'onChange' |
283
284
  /** Checkbox size
284
285
  * @deprecated use size instead
285
286
  */
286
- iconSize?: keyof ThemeObj['sizes']['icon'];
287
+ iconSize?: keyof DefaultTheme['sizes']['icon'];
287
288
  /** Checkbox color */
288
- iconColor?: keyof ThemeObj['palette'] | string;
289
+ iconColor?: keyof DefaultTheme['palette'] | string;
289
290
  /** Checkbox text */
290
291
  label?: string;
291
292
  /** Checkbox padding */
@@ -306,11 +307,11 @@ export declare const Chip: React_2.ForwardRefExoticComponent<ChipProps & React_2
306
307
 
307
308
  export declare type ChipAction = {
308
309
  /** Chip action icon color */
309
- color?: keyof ThemeObj['palette'];
310
+ color?: keyof DefaultTheme['palette'];
310
311
  /** Chip action disabled status */
311
312
  disabled?: boolean;
312
313
  /** Chip action icon */
313
- icon: keyof ThemeObj['icons'];
314
+ icon: keyof DefaultTheme['icons'];
314
315
  /** Chip action id (required for key attribute) */
315
316
  id: string;
316
317
  /** Chip action label value. It is shown in a tooltip. To not render the tooltip, just don't value the prop.
@@ -322,7 +323,7 @@ export declare type ChipAction = {
322
323
  /** Chip action click callback (button type only). NB: onClick event IS propagated. It's up to the dev to eventually stop the propagation */
323
324
  onClick: IconButtonProps['onClick'];
324
325
  /** Chip action background (button type only) */
325
- background?: keyof ThemeObj['palette'];
326
+ background?: keyof DefaultTheme['palette'];
326
327
  } | {
327
328
  /** Chip action type */
328
329
  type: 'icon';
@@ -375,7 +376,7 @@ export declare interface ChipInputProps extends Omit<ContainerProps, 'defaultVal
375
376
  */
376
377
  confirmChipOnSpace?: boolean;
377
378
  /** ChipInput backgroundColor */
378
- background?: keyof ThemeObj['palette'];
379
+ background?: keyof DefaultTheme['palette'];
379
380
  /** Chip generation triggers */
380
381
  separators?: string[];
381
382
  /** Show the error */
@@ -386,7 +387,7 @@ export declare interface ChipInputProps extends Omit<ContainerProps, 'defaultVal
386
387
  */
387
388
  errorLabel?: string | undefined;
388
389
  /** Background color for the error status */
389
- errorBackgroundColor?: keyof ThemeObj['palette'];
390
+ errorBackgroundColor?: keyof DefaultTheme['palette'];
390
391
  /** Set the limit for chip inputs <br />
391
392
  * <strong>Warning</strong>: be aware that this check is performed only on internal changes on items.
392
393
  * If you change the value from outside, you are in charge of apply this check on the new value itself.
@@ -400,13 +401,13 @@ export declare interface ChipInputProps extends Omit<ContainerProps, 'defaultVal
400
401
  */
401
402
  disableOptions?: boolean;
402
403
  /** Icon on the right of the input */
403
- icon?: keyof ThemeObj['icons'];
404
+ icon?: keyof DefaultTheme['icons'];
404
405
  /** Action on Icon click */
405
406
  iconAction?: React_2.ReactEventHandler;
406
407
  /** Disable the icon */
407
408
  iconDisabled?: boolean;
408
409
  /** Icon color */
409
- iconColor?: string | keyof ThemeObj['palette'];
410
+ iconColor?: string | keyof DefaultTheme['palette'];
410
411
  /** select single replaceable value from options */
411
412
  singleSelection?: boolean;
412
413
  /** hide the input's bottom border */
@@ -447,24 +448,24 @@ export declare interface ChipProps extends RowProps {
447
448
  /** Chip actions (buttons or icons) */
448
449
  actions?: ChipAction[];
449
450
  /** Chip Avatar Icon */
450
- avatarIcon?: keyof ThemeObj['icons'];
451
+ avatarIcon?: keyof DefaultTheme['icons'];
451
452
  /** Chip Avatar Background Color */
452
- avatarBackground?: keyof ThemeObj['palette'];
453
+ avatarBackground?: keyof DefaultTheme['palette'];
453
454
  /** Chip avatar color (icon color or capitals color) */
454
- avatarColor?: keyof ThemeObj['palette'];
455
+ avatarColor?: keyof DefaultTheme['palette'];
455
456
  /** Chip avatar label. It allows to override the capitals for the avatar.
456
457
  * If the main label is not a string, you have to fill this prop to show capitals in the avatar */
457
458
  avatarLabel?: string;
458
459
  /** Chip avatar picture */
459
460
  avatarPicture?: string;
460
461
  /** Chip background color */
461
- background?: keyof ThemeObj['palette'];
462
+ background?: keyof DefaultTheme['palette'];
462
463
  /** Chip shape */
463
464
  shape?: 'regular' | 'round';
464
465
  /** If an onClose callback is provided, this prop defines if the close action should be active or disabled */
465
466
  closable?: boolean;
466
467
  /** Chip text color */
467
- color?: keyof ThemeObj['palette'];
468
+ color?: keyof DefaultTheme['palette'];
468
469
  /** Chip disabled status. If a string is provided it is shown in a tooltip */
469
470
  disabled?: boolean | string;
470
471
  /** Chip error. If a string is provided it is shown in a tooltip */
@@ -537,9 +538,9 @@ declare interface ContainerElProps {
537
538
  orientation?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
538
539
  /** Type of the Container's corners */
539
540
  borderRadius?: 'regular' | 'round' | 'half' | 'none';
540
- borderColor?: string | keyof ThemeObj['palette'];
541
+ borderColor?: string | keyof DefaultTheme['palette'];
541
542
  /** Container background color */
542
- background?: string | keyof ThemeObj['palette'];
543
+ background?: string | keyof DefaultTheme['palette'];
543
544
  /** Container height: <br/>
544
545
  * `fit`: shorthand for fit-content
545
546
  * `fill`: semantic alternative for `100%`
@@ -633,7 +634,7 @@ export declare const DateTimePicker: React_2.ForwardRefExoticComponent<DateTimeP
633
634
 
634
635
  export declare interface DateTimePickerProps extends Omit<ReactDatePickerProps, 'onChange'> {
635
636
  /** Input's background color */
636
- backgroundColor?: keyof ThemeObj['palette'];
637
+ backgroundColor?: keyof DefaultTheme['palette'];
637
638
  /** Close icon to clear the Input */
638
639
  isClearable?: boolean;
639
640
  /** Label for input */
@@ -681,9 +682,9 @@ export declare const DefaultTabBarItem: React_2.ForwardRefExoticComponent<Defaul
681
682
  export declare interface DefaultTabBarItemProps extends ContainerProps {
682
683
  item: Item;
683
684
  selected: boolean;
684
- background: string | keyof ThemeObj['palette'];
685
+ background: string | keyof DefaultTheme['palette'];
685
686
  onClick: React_2.ReactEventHandler;
686
- underlineColor: string | keyof ThemeObj['palette'];
687
+ underlineColor: string | keyof DefaultTheme['palette'];
687
688
  forceWidthEquallyDistributed: boolean;
688
689
  }
689
690
 
@@ -691,7 +692,7 @@ export declare const Divider: React_2.ForwardRefExoticComponent<Partial<DividerP
691
692
 
692
693
  export declare interface DividerProps extends HTMLAttributes<HTMLDivElement> {
693
694
  /** Divider color */
694
- color: string | keyof ThemeObj['palette'];
695
+ color: string | keyof DefaultTheme['palette'];
695
696
  }
696
697
 
697
698
  export declare const Drag: React_2.ForwardRefExoticComponent<DragProps & React_2.RefAttributes<HTMLDivElement>>;
@@ -777,13 +778,13 @@ export declare interface DropdownProps extends Omit<HTMLAttributes<HTMLDivElemen
777
778
  /** Whether to preventDefault on Dropdown click */
778
779
  preventDefault?: boolean;
779
780
  /** Customize selected background color */
780
- selectedBackgroundColor?: keyof ThemeObj['palette'];
781
+ selectedBackgroundColor?: keyof DefaultTheme['palette'];
781
782
  /** Item Icon size */
782
783
  itemIconSize?: React_2.ComponentPropsWithRef<typeof Icon>['size'];
783
784
  /** Item Text size */
784
785
  itemTextSize?: React_2.ComponentPropsWithRef<typeof Text_2>['size'];
785
786
  /** Item Padding Between */
786
- itemPaddingBetween?: keyof ThemeObj['sizes']['padding'];
787
+ itemPaddingBetween?: keyof DefaultTheme['sizes']['padding'];
787
788
  /** Ref assign to the dropdown list popper container */
788
789
  dropdownListRef?: React_2.RefObject<HTMLDivElement>;
789
790
  }
@@ -874,14 +875,14 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
874
875
  * @returns {({theme?: Theme}) => string} a function that, given the theme, returns the wanted color
875
876
  */
876
877
  export declare function getColor(color: string): (args: {
877
- theme: ThemeObj;
878
+ theme: DefaultTheme;
878
879
  }) => string;
879
880
 
880
881
  /**
881
882
  * Retrieve the color of the given name based on the theme palette if the name is a palette key,
882
883
  * generating a set with the colorSet utility if the color is not a palette key
883
884
  * @param {string} color - It can contain also the variant in the form color[.variant]
884
- * @param {ThemeObj} theme - The theme object
885
+ * @param {DefaultTheme} theme - The theme object
885
886
  * @example
886
887
  * const theme = useTheme();
887
888
  * getColor('gray5', theme);
@@ -892,18 +893,18 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
892
893
  * `
893
894
  * @returns {string} The wanted color
894
895
  */
895
- export declare function getColor(color: string, theme: ThemeObj): string;
896
+ export declare function getColor(color: string, theme: DefaultTheme): string;
896
897
 
897
898
  export declare function getKeyboardPreset(type: ElementType, callback: (e: KeyboardEvent) => void, ref?: React_2.MutableRefObject<HTMLElement | null> | undefined, keys?: string[], modifier?: boolean): KeyboardPreset;
898
899
 
899
900
  declare function getPadding(padding: PaddingStringComposition | PaddingObj): (args: {
900
- theme: ThemeObj;
901
+ theme: DefaultTheme;
901
902
  }) => string;
902
903
 
903
- declare function getPadding(padding: PaddingStringComposition | PaddingObj, theme: ThemeObj): string;
904
+ declare function getPadding(padding: PaddingStringComposition | PaddingObj, theme: DefaultTheme): string;
904
905
 
905
- declare function getPadding(padding: PaddingStringComposition | PaddingObj, theme?: ThemeObj): string | ((args: {
906
- theme: ThemeObj;
906
+ declare function getPadding(padding: PaddingStringComposition | PaddingObj, theme?: DefaultTheme): string | ((args: {
907
+ theme: DefaultTheme;
907
908
  }) => string);
908
909
  export { getPadding }
909
910
  export { getPadding as parsePadding }
@@ -918,20 +919,20 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
918
919
 
919
920
  export declare type IconButtonProps = ButtonProps & {
920
921
  /** Color of the icon */
921
- iconColor?: string | keyof ThemeObj['palette'];
922
+ iconColor?: string | keyof DefaultTheme['palette'];
922
923
  /** Color of the button */
923
- backgroundColor?: string | keyof ThemeObj['palette'];
924
+ backgroundColor?: string | keyof DefaultTheme['palette'];
924
925
  /** whether to disable the IconButton or not */
925
926
  disabled?: boolean;
926
927
  /** button size */
927
928
  size?: ButtonProps['size'];
928
929
  /** Custom button size */
929
930
  customSize?: {
930
- iconSize: string | keyof ThemeObj['sizes']['icon'];
931
- paddingSize: 0 | string | keyof ThemeObj['sizes']['padding'];
931
+ iconSize: string | keyof DefaultTheme['sizes']['icon'];
932
+ paddingSize: 0 | string | keyof DefaultTheme['sizes']['padding'];
932
933
  };
933
934
  /** icon name */
934
- icon: keyof ThemeObj['icons'];
935
+ icon: keyof DefaultTheme['icons'];
935
936
  /** IconButton border radius */
936
937
  borderRadius?: 'regular' | 'round';
937
938
  /** Click callback */
@@ -956,24 +957,22 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
956
957
  /** whether to disable the IconCheckbox or not */
957
958
  disabled?: boolean;
958
959
  /** IconCheckbox icon */
959
- icon: keyof ThemeObj['icons'];
960
+ icon: keyof DefaultTheme['icons'];
960
961
  /** IconCheckbox size */
961
962
  size?: 'small' | 'regular' | 'large';
962
963
  /** IconCheckbox margin */
963
- margin?: keyof ThemeObj['sizes']['padding'];
964
+ margin?: keyof DefaultTheme['sizes']['padding'];
964
965
  /** IconCheckbox value */
965
966
  value?: boolean;
966
967
  /** change callback */
967
968
  onChange: () => void;
968
969
  }
969
970
 
970
- declare type IconComponent = React_2.ComponentType<React_2.SVGProps<SVGSVGElement> & {
971
- ref: React_2.ForwardedRef<SVGSVGElement>;
972
- }>;
971
+ declare type IconComponent = (props: SVGProps<SVGSVGElement>) => JSX.Element;
973
972
 
974
973
  export declare interface IconComponentProps extends SVGAttributes<SVGSVGElement> {
975
974
  /** Icon to show. It can be a string key for the theme icons or a custom icon component */
976
- icon: keyof ThemeObj['icons'] | IconComponent;
975
+ icon: keyof DefaultTheme['icons'] | IconComponent;
977
976
  /** whether the icon is in a disabled element */
978
977
  disabled?: boolean;
979
978
  /** action to perform on Icon Click
@@ -984,13 +983,13 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
984
983
 
985
984
  export declare interface IconProps extends IconComponentProps {
986
985
  /** Icon Color */
987
- color?: string | keyof ThemeObj['palette'];
986
+ color?: string | keyof DefaultTheme['palette'];
988
987
  /** Custom color, css syntax
989
988
  * @deprecated use color instead
990
989
  */
991
990
  customColor?: string;
992
991
  /** Icon size */
993
- size?: keyof ThemeObj['sizes']['icon'];
992
+ size?: keyof DefaultTheme['sizes']['icon'];
994
993
  }
995
994
 
996
995
  declare type IconSkeletonProps = {
@@ -1008,13 +1007,13 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
1008
1007
 
1009
1008
  export declare interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
1010
1009
  /** Input's background color */
1011
- backgroundColor?: keyof ThemeObj['palette'];
1010
+ backgroundColor?: keyof DefaultTheme['palette'];
1012
1011
  /** whether to disable the Input or not */
1013
1012
  disabled?: boolean;
1014
1013
  /** Input's text color */
1015
- textColor?: keyof ThemeObj['palette'];
1014
+ textColor?: keyof DefaultTheme['palette'];
1016
1015
  /** Input's bottom border color */
1017
- borderColor?: keyof ThemeObj['palette'];
1016
+ borderColor?: keyof DefaultTheme['palette'];
1018
1017
  /** Label of the input, will act (graphically) as placeholder when the input is not focused */
1019
1018
  label?: string;
1020
1019
  /** input change callback */
@@ -1049,7 +1048,7 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
1049
1048
  description?: string | undefined;
1050
1049
  }
1051
1050
 
1052
- export declare function isThemeColor(color: string, theme: ThemeObj): color is ThemePaletteColorKey;
1051
+ export declare function isThemeColor(color: string, theme: DefaultTheme): color is ThemePaletteColorKey;
1053
1052
 
1054
1053
  export declare function isThemeSize(size: string, sizeObj: ThemeSizeObj): size is keyof ThemeSizeObj;
1055
1054
 
@@ -1065,9 +1064,9 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
1065
1064
  visible: boolean;
1066
1065
  active: boolean;
1067
1066
  selected: boolean;
1068
- background: keyof ThemeObj['palette'];
1069
- selectedBackground: keyof ThemeObj['palette'];
1070
- activeBackground: keyof ThemeObj['palette'];
1067
+ background: keyof DefaultTheme['palette'];
1068
+ selectedBackground: keyof DefaultTheme['palette'];
1069
+ activeBackground: keyof DefaultTheme['palette'];
1071
1070
  }
1072
1071
 
1073
1072
  export declare interface ItemType {
@@ -1088,7 +1087,7 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
1088
1087
  label: string | undefined;
1089
1088
  open: boolean;
1090
1089
  focus: boolean;
1091
- background: string | keyof ThemeObj['palette'];
1090
+ background: string | keyof DefaultTheme['palette'];
1092
1091
  multiple: boolean;
1093
1092
  disabled: boolean;
1094
1093
  selected: SelectItem[];
@@ -1120,11 +1119,11 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
1120
1119
  /** callback to be executed when the bottom element is rendered */
1121
1120
  onListBottom?: () => void;
1122
1121
  /** List background color */
1123
- background?: keyof ThemeObj['palette'];
1122
+ background?: keyof DefaultTheme['palette'];
1124
1123
  /** Selected list item background color */
1125
- selectedBackground?: keyof ThemeObj['palette'];
1124
+ selectedBackground?: keyof DefaultTheme['palette'];
1126
1125
  /** Active List item background color */
1127
- activeBackground?: keyof ThemeObj['palette'];
1126
+ activeBackground?: keyof DefaultTheme['palette'];
1128
1127
  /** Disable keyboard shortcuts */
1129
1128
  keyboardShortcutsIsDisabled?: boolean;
1130
1129
  }
@@ -1196,7 +1195,7 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
1196
1195
  /** Disabled status for main action Button */
1197
1196
  confirmDisabled?: boolean;
1198
1197
  /** BackgroundColor for the Main action Button */
1199
- confirmColor?: string | keyof ThemeObj['palette'];
1198
+ confirmColor?: string | keyof DefaultTheme['palette'];
1200
1199
  /** Callback for secondary action */
1201
1200
  onSecondaryAction?: (event: React_2.MouseEvent<HTMLButtonElement> | KeyboardEvent) => void;
1202
1201
  /** Label for the Secondary action Button */
@@ -1238,7 +1237,7 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
1238
1237
 
1239
1238
  export declare type ModalProps = Omit<ModalFooterProps, 'errorActionLabel' | 'onErrorAction'> & {
1240
1239
  /** Modal background */
1241
- background?: string | keyof ThemeObj['palette'];
1240
+ background?: string | keyof DefaultTheme['palette'];
1242
1241
  /** Modal title */
1243
1242
  title?: string | React_2.ReactElement;
1244
1243
  /** Modal size */
@@ -1296,9 +1295,9 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
1296
1295
  /** whether to disable the Secondary Dropdown or not */
1297
1296
  disabledSecondary?: boolean;
1298
1297
  /** MultiButton icon */
1299
- icon?: keyof ThemeObj['icons'];
1298
+ icon?: keyof DefaultTheme['icons'];
1300
1299
  /** Main icon */
1301
- primaryIcon?: keyof ThemeObj['icons'];
1300
+ primaryIcon?: keyof DefaultTheme['icons'];
1302
1301
  /** Color of the Button label */
1303
1302
  color?: string;
1304
1303
  /** Color of the Button background */
@@ -1319,17 +1318,17 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
1319
1318
  export declare const Padding: React_2.ForwardRefExoticComponent<(PaddingProps & Omit<React_2.HTMLAttributes<HTMLDivElement>, "id" | "height" | "width" | "color" | "translate" | "hidden" | "dir" | "slot" | "style" | "title" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "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>>;
1320
1319
 
1321
1320
  export declare type PaddingObj = {
1322
- value: string | keyof ThemeObj['sizes']['padding'] | 0;
1321
+ value: string | keyof DefaultTheme['sizes']['padding'] | 0;
1323
1322
  } | {
1324
- all: string | keyof ThemeObj['sizes']['padding'] | 0;
1323
+ all: string | keyof DefaultTheme['sizes']['padding'] | 0;
1325
1324
  } | RequireAtLeastOne<{
1326
- vertical: string | keyof ThemeObj['sizes']['padding'] | 0;
1327
- horizontal: string | keyof ThemeObj['sizes']['padding'] | 0;
1325
+ vertical: string | keyof DefaultTheme['sizes']['padding'] | 0;
1326
+ horizontal: string | keyof DefaultTheme['sizes']['padding'] | 0;
1328
1327
  }> | RequireAtLeastOne<{
1329
- top: string | keyof ThemeObj['sizes']['padding'] | 0;
1330
- right: string | keyof ThemeObj['sizes']['padding'] | 0;
1331
- bottom: string | keyof ThemeObj['sizes']['padding'] | 0;
1332
- left: string | keyof ThemeObj['sizes']['padding'] | 0;
1328
+ top: string | keyof DefaultTheme['sizes']['padding'] | 0;
1329
+ right: string | keyof DefaultTheme['sizes']['padding'] | 0;
1330
+ bottom: string | keyof DefaultTheme['sizes']['padding'] | 0;
1331
+ left: string | keyof DefaultTheme['sizes']['padding'] | 0;
1333
1332
  }>;
1334
1333
 
1335
1334
  export declare type PaddingProps = {
@@ -1338,7 +1337,7 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
1338
1337
  children?: React_2.ReactNode | React_2.ReactNode[];
1339
1338
  } & PaddingObj & HTMLAttributes<HTMLDivElement>;
1340
1339
 
1341
- declare type PaddingString = `${string | keyof ThemeObj['sizes']['padding']}`;
1340
+ declare type PaddingString = `${string | keyof DefaultTheme['sizes']['padding']}`;
1342
1341
 
1343
1342
  declare type PaddingStringComposition = PaddingString | `${PaddingString} | ${PaddingString}` | `${PaddingString} ${PaddingString} ${PaddingString}` | `${PaddingString} ${PaddingString} ${PaddingString} ${PaddingString}`;
1344
1343
 
@@ -1399,17 +1398,17 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
1399
1398
  disablePortal?: boolean;
1400
1399
  }
1401
1400
 
1402
- export declare function pseudoClasses(theme: ThemeObj, color: string | keyof ThemeObj['palette'], cssProperty?: string): FlattenSimpleInterpolation;
1401
+ export declare function pseudoClasses(theme: DefaultTheme, color: string | keyof DefaultTheme['palette'], cssProperty?: string): FlattenSimpleInterpolation;
1403
1402
 
1404
1403
  export declare const Quota: React_2.ForwardRefExoticComponent<QuotaProps & React_2.RefAttributes<HTMLDivElement>>;
1405
1404
 
1406
1405
  export declare interface QuotaProps extends ContainerProps {
1407
1406
  /** Quota background color */
1408
- background?: keyof ThemeObj['palette'];
1407
+ background?: keyof DefaultTheme['palette'];
1409
1408
  /** Quota percentage */
1410
1409
  fill: number;
1411
1410
  /** Quota fill background color */
1412
- fillBackground?: keyof ThemeObj['palette'];
1411
+ fillBackground?: keyof DefaultTheme['palette'];
1413
1412
  /** Quota height */
1414
1413
  height?: number | string;
1415
1414
  }
@@ -1449,7 +1448,7 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
1449
1448
  /** available sizes */
1450
1449
  size?: RadioSize;
1451
1450
  /** icon color */
1452
- iconColor?: keyof ThemeObj['palette'];
1451
+ iconColor?: keyof DefaultTheme['palette'];
1453
1452
  }
1454
1453
 
1455
1454
  declare type RadioSize = 'medium' | 'small';
@@ -1493,7 +1492,7 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
1493
1492
 
1494
1493
  declare type SelectComponentProps = {
1495
1494
  label?: string;
1496
- background?: string | keyof ThemeObj['palette'];
1495
+ background?: string | keyof DefaultTheme['palette'];
1497
1496
  disabled?: boolean;
1498
1497
  items?: SelectItem[];
1499
1498
  /** Css display property of select */
@@ -1597,9 +1596,9 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
1597
1596
  };
1598
1597
 
1599
1598
  declare const SIZES: {
1600
- readonly small: 5;
1601
- readonly medium: 10;
1602
- readonly large: 15;
1599
+ readonly small: 0.3125;
1600
+ readonly medium: 0.625;
1601
+ readonly large: 0.9375;
1603
1602
  };
1604
1603
 
1605
1604
  export declare type SkeletonProps = {
@@ -1655,7 +1654,7 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
1655
1654
  export declare const Spinner: React_2.ForwardRefExoticComponent<SpinnerProps & React_2.RefAttributes<HTMLDivElement>>;
1656
1655
 
1657
1656
  export declare interface SpinnerProps extends HTMLAttributes<HTMLDivElement> {
1658
- color: string | keyof ThemeObj['palette'];
1657
+ color: string | keyof DefaultTheme['palette'];
1659
1658
  }
1660
1659
 
1661
1660
  declare type StyleObj = HTMLAttributes<HTMLDivElement>['style'];
@@ -1688,7 +1687,7 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
1688
1687
  /** available sizes */
1689
1688
  size?: SwitchSize;
1690
1689
  /** icon color */
1691
- iconColor?: keyof ThemeObj['palette'];
1690
+ iconColor?: keyof DefaultTheme['palette'];
1692
1691
  }
1693
1692
 
1694
1693
  declare type SwitchSize = 'medium' | 'small';
@@ -1703,9 +1702,9 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
1703
1702
  /** change callback, is called with the new selected id */
1704
1703
  onChange: (ev: React_2.SyntheticEvent, selectedId: string) => void;
1705
1704
  /** background color of the tabBar */
1706
- background: string | keyof ThemeObj['palette'];
1705
+ background: string | keyof DefaultTheme['palette'];
1707
1706
  /** underline color of the selected tab */
1708
- underlineColor?: string | keyof ThemeObj['palette'];
1707
+ underlineColor?: string | keyof DefaultTheme['palette'];
1709
1708
  /** Force tabs to have all the same width */
1710
1709
  forceWidthEquallyDistributed?: boolean;
1711
1710
  }
@@ -1740,11 +1739,11 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
1740
1739
 
1741
1740
  export declare interface TextProps extends HTMLAttributes<HTMLDivElement> {
1742
1741
  /** Text color */
1743
- color?: string | keyof ThemeObj['palette'];
1742
+ color?: string | keyof DefaultTheme['palette'];
1744
1743
  /** Text size */
1745
- size?: keyof ThemeObj['sizes']['font'];
1744
+ size?: keyof DefaultTheme['sizes']['font'];
1746
1745
  /** Text weight */
1747
- weight?: keyof ThemeObj['fonts']['weight'];
1746
+ weight?: keyof DefaultTheme['fonts']['weight'];
1748
1747
  /** Overflow handling */
1749
1748
  overflow?: TextOverflow;
1750
1749
  /** Disabled status */
@@ -1829,22 +1828,22 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
1829
1828
  };
1830
1829
  icons: Record<string, IconComponent>;
1831
1830
  loginBackground: string;
1832
- logo: {
1831
+ logo?: {
1833
1832
  svg: IconComponent;
1834
1833
  size: ThemeSizeObj;
1835
1834
  };
1836
- palette: Record<'currentColor' | 'transparent' | 'primary' | 'secondary' | 'header' | 'highlight' | 'gray0' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'gray6' | 'warning' | 'error' | 'success' | 'info' | 'text', ThemeColorObj>;
1835
+ palette: Record<'currentColor' | 'transparent' | 'primary' | 'secondary' | 'header' | 'highlight' | 'gray0' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'gray6' | 'warning' | 'error' | 'success' | 'info' | 'text' | 'shadow' | 'black' | 'white', ThemeColorObj>;
1837
1836
  avatarColors: Record<`avatar_${number}`, string>;
1838
1837
  }
1839
1838
 
1840
1839
  declare type ThemePaletteColorKey = keyof ThemePaletteObj;
1841
1840
 
1842
- declare type ThemePaletteObj = ThemeObj['palette'];
1841
+ declare type ThemePaletteObj = DefaultTheme['palette'];
1843
1842
 
1844
1843
  export declare const ThemeProvider: React_2.FC<ThemeProviderProps>;
1845
1844
 
1846
1845
  export declare interface ThemeProviderProps {
1847
- extension?: (theme: ThemeObj) => ThemeObj;
1846
+ extension?: (theme: DefaultTheme) => DefaultTheme;
1848
1847
  loadDefaultFont?: boolean;
1849
1848
  }
1850
1849
 
@@ -1963,14 +1962,14 @@ export declare const generateColorSet: ({ regular, hover, active, disabled, focu
1963
1962
 
1964
1963
  export declare function useSplitVisibility<T, R extends HTMLElement = HTMLElement>(items: T[], optionsWithRetroCompatibility?: Options | 'end' | 'start'): [T[], T[], React_2.RefObject<R>];
1965
1964
 
1966
- export declare const useTheme: () => ThemeObj;
1965
+ export declare const useTheme: () => DefaultTheme;
1967
1966
 
1968
1967
  export declare function ZimbraClassicThemeContextProvider({ styleSheetTarget, children, extension, loadDefaultFont }: ZimbraClassicThemeContextProviderProps): JSX.Element;
1969
1968
 
1970
1969
  export declare interface ZimbraClassicThemeContextProviderProps {
1971
1970
  styleSheetTarget?: HTMLElement;
1972
1971
  children: React_2.ReactElement;
1973
- extension?: (theme: ThemeObj) => ThemeObj;
1972
+ extension?: (theme: DefaultTheme) => DefaultTheme;
1974
1973
  loadDefaultFont?: boolean;
1975
1974
  }
1976
1975