@nextelco/common-ui 1.5.81 → 1.5.84

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.
@@ -1,14 +1,13 @@
1
1
  import React from 'react';
2
2
  import { PropsWithChildren } from 'react';
3
3
  import { IconProp } from '@fortawesome/fontawesome-svg-core';
4
+ import { ButtonTheme } from '../../../../types/ButtonTheme';
4
5
  import './ActionButton.scss';
5
6
  type Props = PropsWithChildren<{
6
7
  icon: IconProp;
7
8
  title: string;
8
- iconColor?: string;
9
- fontColor?: string;
10
- backgroundColor?: string;
9
+ theme: ButtonTheme;
11
10
  onClick: () => void;
12
11
  }>;
13
- declare const ActionButton: ({ icon, iconColor, title, fontColor, backgroundColor, onClick, }: Props) => React.JSX.Element;
12
+ declare const ActionButton: ({ icon, title, theme, onClick }: Props) => React.JSX.Element;
14
13
  export default ActionButton;
@@ -9,8 +9,7 @@ type Props = PropsWithChildren<{
9
9
  clickable: boolean;
10
10
  fontColor: string;
11
11
  backgroundColor: string;
12
- fixedSize: boolean;
13
12
  onClick: () => void;
14
13
  }>;
15
- declare const Card1: ({ title, subtitle, thumbnail, isVideo, clickable, fontColor, backgroundColor, fixedSize, onClick }: Props) => React.JSX.Element;
14
+ declare const Card1: ({ title, subtitle, thumbnail, isVideo, clickable, fontColor, backgroundColor, onClick }: Props) => React.JSX.Element;
16
15
  export default Card1;
@@ -14,5 +14,5 @@ type Props = PropsWithChildren<{
14
14
  fixedSize: boolean;
15
15
  onClick: () => void;
16
16
  }>;
17
- declare const Card3: ({ image, title, subtitle, fontColor, backgroundColor, buttonIcon, buttonFontColor, buttonBackgroundColor, fixedSize, onClick }: Props) => React.JSX.Element;
17
+ declare const Card3: ({ image, title, subtitle, fontColor, backgroundColor, buttonIcon, buttonFontColor, buttonBackgroundColor, fixedSize, onClick, }: Props) => React.JSX.Element;
18
18
  export default Card3;
@@ -28,3 +28,4 @@ export { useAuth, AuthProvider } from './contexts/authContext';
28
28
  export { ApiProvider } from './contexts/apiContext';
29
29
  export { useApi } from './hooks/useApi';
30
30
  export { LoggedUser } from './types/LoggedUser';
31
+ export { ButtonTheme } from './types/ButtonTheme';
@@ -0,0 +1,5 @@
1
+ export type ButtonTheme = {
2
+ backgroundColor: string;
3
+ fontColor: string;
4
+ iconColor: string;
5
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextelco/common-ui",
3
- "version": "1.5.81",
3
+ "version": "1.5.84",
4
4
  "description": "",
5
5
  "main": "dist/bundle.js",
6
6
  "types": "dist/types/index.d.ts",