@fattureincloud/fic-design-system 0.19.10 → 0.19.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,8 @@
1
- import { ReactText } from 'react';
1
+ import { ReactNode, ReactText } from 'react';
2
2
  import { paletteColor, TooltipProps } from '../..';
3
3
  import { IconProps } from '../icon';
4
4
  export interface BadgeProps {
5
- text?: ReactText;
5
+ text?: ReactText | ReactNode;
6
6
  type?: BadgeType;
7
7
  className?: string;
8
8
  imageUrl?: string;
@@ -1,5 +1,5 @@
1
1
  import { DropdownProps } from '../../../dropdown/types';
2
- declare type BaseDropdownProps = Pick<DropdownProps, 'placement' | 'className' | 'triggerStyles' | 'content' | 'maxWidth' | 'minWidthAsTrigger'>;
2
+ declare type BaseDropdownProps = Pick<DropdownProps, 'placement' | 'className' | 'triggerStyles' | 'content' | 'maxWidth' | 'minWidthAsTrigger' | 'isDisabled'>;
3
3
  declare type UnitDropdownRenderContentProps = BaseDropdownProps & {
4
4
  createUnit?: never;
5
5
  currentUnit: string;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { UnitDropdownProps } from '../types';
3
- declare const UnitDropdown: ({ createUnit, currentUnit, items, renderContent, setCurrentUnit, unitTriggerMaxWidth, ...dropdownProps }: UnitDropdownProps) => JSX.Element;
3
+ declare const UnitDropdown: ({ createUnit, currentUnit, isDisabled, items, renderContent, setCurrentUnit, unitTriggerMaxWidth, ...dropdownProps }: UnitDropdownProps) => JSX.Element;
4
4
  export default UnitDropdown;
@@ -2,4 +2,6 @@ import Dropdown from '../../../../dropdown/dropdown';
2
2
  export declare const CustomDropdownWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
3
3
  unitTriggerMaxWidth: string;
4
4
  }, never>;
5
- export declare const CustomDropdown: import("styled-components").StyledComponent<typeof Dropdown, import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const CustomDropdown: import("styled-components").StyledComponent<typeof Dropdown, import("styled-components").DefaultTheme, {
6
+ isDisabled?: boolean | undefined;
7
+ }, never>;
@@ -1 +1,3 @@
1
- export declare const ModalAnimation: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
1
+ export declare const ModalAnimation: import("styled-components").GlobalStyleComponent<{
2
+ blur?: boolean | undefined;
3
+ }, import("styled-components").DefaultTheme>;
@@ -9,6 +9,7 @@ export declare type StepModalCommonProps = {
9
9
  setIsOpen?: (o: boolean) => void;
10
10
  setStep: (s: number) => void;
11
11
  onActionClose?: () => void;
12
+ blur?: boolean;
12
13
  };
13
14
  declare type StepModalComponent<T extends UknObj> = React.FunctionComponent<StepModalCommonProps & T>;
14
15
  declare type HasChildren = {
@@ -6,33 +6,34 @@ export interface ModalStateInterface {
6
6
  fullScreenHeight: number;
7
7
  }
8
8
  export interface ModalPropsInterface {
9
- hideFooterTopBorder?: boolean;
10
- isOpen?: boolean;
11
- title?: string;
12
- header?: () => JSX.Element;
9
+ allowClose?: boolean;
10
+ blur?: boolean;
11
+ bottomAttachment?: () => ReactNode;
12
+ className?: string;
13
+ customFooter?: () => JSX.Element;
13
14
  customHeader?: () => JSX.Element;
15
+ disableInfoTooltip?: boolean;
14
16
  footer?: () => JSX.Element;
15
17
  footerButtons?: ButtonProps[];
16
- customFooter?: () => JSX.Element;
17
- allowClose?: boolean;
18
- onActionClose?: () => void;
18
+ header?: () => JSX.Element;
19
+ height?: number;
20
+ hideFooterTopBorder?: boolean;
21
+ hideOverlay?: boolean;
22
+ isConfirmModal?: boolean;
19
23
  isFullscreen?: boolean;
24
+ isOpen?: boolean;
20
25
  isSmall?: boolean;
21
26
  minHeight?: number;
22
- height?: number;
23
- bottomAttachment?: () => ReactNode;
24
- topAttachment?: () => ReactNode;
25
- portalClassName?: string;
26
- hideOverlay?: boolean;
27
- className?: string;
27
+ onActionClose?: () => void;
28
28
  onAfterOpen?: (obj?: {
29
29
  overlayEl: Element;
30
30
  contentEl: HTMLDivElement;
31
31
  }) => void;
32
- isConfirmModal?: boolean;
32
+ portalClassName?: string;
33
33
  sizeCloseX?: SizeProp;
34
+ title?: string;
35
+ topAttachment?: () => ReactNode;
34
36
  zIndex?: number;
35
- disableInfoTooltip?: boolean;
36
37
  }
37
38
  export interface StyledModalBoxProps {
38
39
  isFullscreen?: boolean;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { TooltipProps } from './types';
3
3
  export declare const defaultTooltipProps: TooltipProps;
4
- declare const Tooltip: ({ callbackAfterTimeout, children, className, hideAfterSeconds, icon, message, onMouseEnter, onMouseLeave, onMouseLeaveHideDelay, onOpen, placement, positionStrategy, renderButton, shouldRender, showAfterSeconds, showAlways, style, type, usePortal, }: TooltipProps) => JSX.Element;
4
+ declare const Tooltip: ({ callbackAfterTimeout, children, className, hideAfterSeconds, icon, message, onMouseEnter, onMouseLeave, onMouseLeaveHideDelay, onOpen, placement, portalContainer, positionStrategy, renderButton, shouldRender, showAfterSeconds, showAlways, style, type, usePortal, }: TooltipProps) => JSX.Element;
5
5
  export default Tooltip;
@@ -14,11 +14,12 @@ export interface TooltipProps {
14
14
  onMouseLeaveHideDelay?: number;
15
15
  onOpen?: (isOpen: boolean) => void;
16
16
  placement?: BasePlacement;
17
+ portalContainer?: HTMLElement;
17
18
  positionStrategy?: 'fixed' | 'absolute';
18
19
  renderButton?: () => JSX.Element;
20
+ shouldRender?: boolean;
19
21
  showAfterSeconds?: number;
20
22
  showAlways?: boolean;
21
- shouldRender?: boolean;
22
23
  style?: React.CSSProperties;
23
24
  type?: tooltipTypes;
24
25
  usePortal?: boolean;