@devopness/ui-react 2.153.0 → 2.153.2

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.
@@ -2,20 +2,10 @@ import { ButtonHTMLAttributes } from 'react';
2
2
  import { getColor } from '../../../colors';
3
3
  import { Icon } from '../../../icons';
4
4
  type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
5
- /**
6
- * By default the button component is 34px high, the "typeSize" property contains
7
- * the "medium" variation that changes to 27px
8
- */
9
- typeSize?: 'default' | 'medium' | 'auto';
10
- /** Icon name */
11
- icon?: Icon;
12
- /** Enable button loading animation */
13
- loading?: boolean;
14
- /**
15
- * With the property "revertOrientation" it is possible to change the positioning of
16
- * the elements inside the button as "icon" or "loading"
17
- */
18
- revertOrientation?: boolean;
5
+ /** Customize background color */
6
+ backgroundColor?: string;
7
+ /** Customize border color */
8
+ borderColor?: string;
19
9
  /** Predefined style variations for the button */
20
10
  buttonType?: 'borderless' | 'outlinedSecondary' | 'outlinedAuxiliary' | 'Default';
21
11
  /** `Warning`: This property overrides the style defined by the `buttonType` property!
@@ -23,16 +13,18 @@ type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
23
13
  * Customize elements color
24
14
  */
25
15
  color?: string;
26
- /** `Warning`: This property overrides the style defined by the `buttonType` property!
27
- *
28
- * Customize background color
16
+ /** Icon name */
17
+ icon?: Icon;
18
+ /**
19
+ * By default the icon color is primary, use this prop to customize "iconColor"
29
20
  */
30
- backgroundColor?: string;
31
- /** `Warning`: This property overrides the style defined by the `buttonType` property!
32
- *
33
- * Customize border color
21
+ iconColor?: ReturnType<typeof getColor>;
22
+ /**
23
+ * By default the icon component is 16px high, use this prop to customize "iconSize"
34
24
  */
35
- borderColor?: string;
25
+ iconSize?: number;
26
+ /** Enable button loading animation */
27
+ loading?: boolean;
36
28
  /**
37
29
  * The button component has a 15px margin on its sides, to remove activate the "noMargin" property
38
30
  */
@@ -50,15 +42,17 @@ type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
50
42
  */
51
43
  noPointerEvents?: boolean;
52
44
  /**
53
- * By default the icon component is 16px high, use this prop to customize "iconSize"
45
+ * With the property "revertOrientation" it is possible to change the positioning of
46
+ * the elements inside the button as "icon" or "loading"
54
47
  */
55
- iconSize?: number;
48
+ revertOrientation?: boolean;
56
49
  /**
57
- * By default the icon color is primary, use this prop to customize "iconColor"
50
+ * By default the button component is 34px high, the "typeSize" property contains
51
+ * the "medium" variation that changes to 27px
58
52
  */
59
- iconColor?: ReturnType<typeof getColor>;
53
+ typeSize?: 'default' | 'medium' | 'auto';
60
54
  };
61
55
  /** Primary UI component for user interaction */
62
- declare const Button: ({ type, typeSize, buttonType, color, backgroundColor, borderColor, disabled, tabIndex, loading: isLoading, icon, children, revertOrientation, noMargin, noIconMargin, noPointerEvents, iconSize, iconColor, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
56
+ declare const Button: ({ backgroundColor, borderColor, buttonType, children, color, disabled, icon, iconColor, iconSize, loading: isLoading, noIconMargin, noMargin, noPadding, noPointerEvents, revertOrientation, tabIndex, type, typeSize, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
63
57
  export type { ButtonProps };
64
58
  export { Button };
@@ -1,26 +1,8 @@
1
1
  import { ButtonProps } from '.';
2
- type CustomButton = {
3
- backgroundColor?: string;
4
- color?: string;
5
- borderColor?: string;
6
- };
7
2
  type StyledProps = {
8
- noMargin?: boolean;
9
- noPadding?: boolean;
10
- size: NonNullable<ButtonProps['typeSize']>;
11
- variant?: string;
12
- custom?: CustomButton;
13
- icon?: boolean;
14
- alignEnd?: boolean;
15
- reversed: boolean;
16
- noPointerEvents?: boolean;
3
+ [Key in keyof Pick<ButtonProps, 'backgroundColor' | 'borderColor' | 'buttonType' | 'color' | 'iconSize' | 'noIconMargin' | 'noMargin' | 'noPadding' | 'noPointerEvents' | 'revertOrientation' | 'typeSize'> as `$${Key}`]: ButtonProps[Key];
17
4
  };
18
- declare const ContentIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<ButtonProps, "noIconMargin"> & {
19
- reversed: ButtonProps["revertOrientation"];
20
- size: Required<ButtonProps["iconSize"]>;
21
- }>> & string;
5
+ declare const ContentIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<StyledProps, "$iconSize">>> & string;
22
6
  declare const Label: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
23
- declare const WrapperButtons: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledProps>> & string;
24
- declare const BaseButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, StyledProps>> & string;
25
- declare const SmallWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledProps>> & string;
26
- export { ContentIcon, Label, WrapperButtons, BaseButton, SmallWrapper };
7
+ declare const BaseButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, Pick<StyledProps, "$buttonType" | "$backgroundColor" | "$borderColor" | "$color" | "$noIconMargin" | "$noMargin" | "$noPadding" | "$noPointerEvents" | "$revertOrientation" | "$typeSize">>> & string;
8
+ export { BaseButton, ContentIcon, Label };
@@ -1,6 +1,6 @@
1
1
  declare const StyledTabs: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('@mui/material').TabsOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
2
  ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
3
- }, "value" | "className" | "style" | "aria-label" | "aria-labelledby" | "children" | "onChange" | "variant" | "action" | "orientation" | "classes" | "sx" | "slots" | "slotProps" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar">, never>> & string & Omit<import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').TabsTypeMap<{}, "div">>, keyof import('react').Component<any, {}, any>>;
3
+ }, "value" | "className" | "style" | "aria-label" | "aria-labelledby" | "children" | "onChange" | "action" | "orientation" | "classes" | "sx" | "slots" | "slotProps" | "variant" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar">, never>> & string & Omit<import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').TabsTypeMap<{}, "div">>, keyof import('react').Component<any, {}, any>>;
4
4
  declare const StyledTab: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('@mui/material').TabOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
5
5
  ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
6
6
  }, "disabled" | "value" | "className" | "style" | "tabIndex" | "children" | "icon" | "label" | "action" | "classes" | "sx" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "iconPosition" | "wrapped">, never>> & string & Omit<import('@mui/material').ExtendButtonBase<import('@mui/material').TabTypeMap<{}, "div">>, keyof import('react').Component<any, {}, any>>;