@muraldevkit/ui-toolkit 1.7.0 → 1.8.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.
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { MrlIconButtonProps } from '../MrlIconButton/MrlIconButton';
3
+ import { MrlSvgAnimateProps } from '../../svg/MrlSvgAnimate/MrlSvgAnimate';
4
+ import './MrlAnimatedIconButton.scss';
5
+ interface MrlAnimatedIconButtonProps extends Omit<MrlIconButtonProps, 'icon'> {
6
+ icon: MrlSvgAnimateProps;
7
+ }
8
+ export declare const MrlAnimatedIconButton: React.ForwardRefExoticComponent<MrlAnimatedIconButtonProps & React.RefAttributes<HTMLButtonElement>>;
9
+ export {};
@@ -0,0 +1 @@
1
+ export { MrlAnimatedIconButton } from './MrlAnimatedIconButton';
@@ -3,7 +3,7 @@ import { MrlButtonKind, MrlButtonSize, MrlButtonState, MrlGhostIconButtonSize, T
3
3
  import { AttrsObject } from '../../../utils';
4
4
  import { MrlTooltipAnchor, MrlTooltipPosition } from '../../tooltip/constants';
5
5
  import './MrlIconButton.scss';
6
- interface MrlIconButtonProps {
6
+ export interface MrlIconButtonProps {
7
7
  /**
8
8
  * Applies additional HTML attributes to the button element.
9
9
  */
@@ -72,4 +72,3 @@ interface MrlIconButtonProps {
72
72
  toggleStyle?: ToggleStyle;
73
73
  }
74
74
  export declare const MrlIconButton: React.ForwardRefExoticComponent<MrlIconButtonProps & React.RefAttributes<HTMLButtonElement>>;
75
- export {};
@@ -1,4 +1,4 @@
1
- import { MrlButtonState } from './constants';
1
+ import { MrlButtonState, ToggleStyle } from './constants';
2
2
  /**
3
3
  * Determines if the button is disabled since multiple states represent disabled
4
4
  *
@@ -19,3 +19,9 @@ export declare const _isDisabled: (currentState: MrlButtonState, enforcedState?:
19
19
  * @returns {boolean} - if the button is disabled
20
20
  */
21
21
  export declare const _isSelected: (currentState: MrlButtonState, enforcedState?: MrlButtonState) => boolean;
22
+ /**
23
+ * MrlIconButton and MrlAnimatedIconButton could behave as a toggle button if toggleStyle is 'default' or 'secondary'
24
+ *
25
+ * @param toggleStyle
26
+ */
27
+ export declare const _isToggleButton: (toggleStyle: ToggleStyle) => boolean;
@@ -1,2 +1,3 @@
1
- export * from "./MrlButton";
2
- export * from "./MrlIconButton";
1
+ export * from './MrlAnimatedIconButton';
2
+ export * from './MrlButton';
3
+ export * from './MrlIconButton';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { MrlComponentProps } from '../../../utils';
3
3
  import { SVGSize } from '../constants';
4
- export interface SvgPropTypes extends Omit<MrlComponentProps, "style">, React.ComponentProps<"svg"> {
4
+ export interface SvgPropTypes extends Omit<MrlComponentProps, 'style'>, React.ComponentProps<'svg'> {
5
5
  /**
6
6
  * @todo: Add optional path prop to point to a static SVG url
7
7
  * @todo: Make SVG prop optional and must pass one of path or SVG