@nextelco/common-ui 1.5.82 → 1.5.85

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;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import './Select.scss';
3
+ interface SelectOption {
4
+ value: string;
5
+ label: string;
6
+ }
7
+ interface SelectProps {
8
+ options: SelectOption[];
9
+ value: string;
10
+ onChange: (value: string) => void;
11
+ disabled?: boolean;
12
+ }
13
+ declare const Select: React.FC<SelectProps>;
14
+ export default Select;
@@ -0,0 +1,13 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Select from './Select';
3
+ import './Select.scss';
4
+ declare const meta: Meta<typeof Select>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof meta>;
7
+ export declare const Default: Story;
8
+ export declare const Disabled: Story;
9
+ export declare const SmallContainer: Story;
10
+ export declare const LargeContainer: Story;
11
+ export declare const NoOptions: Story;
12
+ export declare const LongLabels: Story;
13
+ export declare const Responsive: Story;
@@ -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.82",
3
+ "version": "1.5.85",
4
4
  "description": "",
5
5
  "main": "dist/bundle.js",
6
6
  "types": "dist/types/index.d.ts",