@nextelco/common-ui 1.5.68 → 1.5.69

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,11 +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;
9
+ theme: ButtonTheme;
8
10
  onClick: () => void;
9
11
  }>;
10
- declare const ActionButton: ({ title, icon, onClick }: Props) => React.JSX.Element;
12
+ declare const ActionButton: ({ icon, title, theme, onClick }: Props) => React.JSX.Element;
11
13
  export default ActionButton;
@@ -4,3 +4,5 @@ declare const meta: Meta<typeof ActionButton>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
6
6
  export declare const Logout: Story;
7
+ export declare const Confirmar: Story;
8
+ export declare const Negar: Story;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { PropsWithChildren } from 'react';
3
+ import './Card1.scss';
4
+ type Props = PropsWithChildren<{
5
+ title: string;
6
+ subtitle: string;
7
+ thumbnail: string;
8
+ isVideo: boolean;
9
+ clickable: boolean;
10
+ fontColor: string;
11
+ backgroundColor: string;
12
+ onClick: () => void;
13
+ }>;
14
+ declare const Card1: ({ title, subtitle, thumbnail, isVideo, clickable, fontColor, backgroundColor, onClick }: Props) => React.JSX.Element;
15
+ export default Card1;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Card1 from './Card1';
3
+ declare const meta: Meta<typeof Card1>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { PropsWithChildren } from 'react';
3
+ import './Card2.scss';
4
+ type Props = PropsWithChildren<{
5
+ icon: string;
6
+ title: string;
7
+ subtitle: string;
8
+ thumbnail: string;
9
+ isVideo: boolean;
10
+ clickable: boolean;
11
+ fontColor: string;
12
+ backgroundColor: string;
13
+ onClick: () => void;
14
+ }>;
15
+ declare const Card2: ({ icon, title, subtitle, thumbnail, isVideo, clickable, fontColor, backgroundColor, onClick }: Props) => React.JSX.Element;
16
+ export default Card2;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Card2 from './Card2';
3
+ declare const meta: Meta<typeof Card2>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { PropsWithChildren } from 'react';
3
+ import { IconProp } from '@fortawesome/fontawesome-svg-core';
4
+ import './Card3.scss';
5
+ type Props = PropsWithChildren<{
6
+ image: string;
7
+ title: string;
8
+ subtitle: string;
9
+ fontColor: string;
10
+ backgroundColor: string;
11
+ buttonIcon: IconProp;
12
+ buttonFontColor: string;
13
+ buttonBackgroundColor: string;
14
+ onClick: () => void;
15
+ }>;
16
+ declare const Card3: ({ image, title, subtitle, fontColor, backgroundColor, buttonIcon, buttonFontColor, buttonBackgroundColor, onClick }: Props) => React.JSX.Element;
17
+ export default Card3;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Card3 from './Card3';
3
+ declare const meta: Meta<typeof Card3>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { PropsWithChildren } from 'react';
3
+ import { IconProp } from '@fortawesome/fontawesome-svg-core';
4
+ import './Card4.scss';
5
+ type Props = PropsWithChildren<{
6
+ icon: IconProp;
7
+ iconColor: string;
8
+ title: string;
9
+ thumbnail: string;
10
+ isVideo: boolean;
11
+ clickable: boolean;
12
+ fontColor: string;
13
+ backgroundColor: string;
14
+ onClick: () => void;
15
+ }>;
16
+ declare const Card4: ({ icon, iconColor, title, thumbnail, isVideo, clickable, fontColor, backgroundColor, onClick }: Props) => React.JSX.Element;
17
+ export default Card4;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Card4 from './Card4';
3
+ declare const meta: Meta<typeof Card4>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { PropsWithChildren } from 'react';
3
+ import './Card5.scss';
4
+ type Props = PropsWithChildren<{
5
+ image: string;
6
+ title: string;
7
+ subtitle: string;
8
+ undertitle: string;
9
+ icon: string;
10
+ fontColor: string;
11
+ backgroundColor: string;
12
+ fixedSize: boolean;
13
+ onClick: () => void;
14
+ }>;
15
+ declare const Card5: ({ image, title, subtitle, undertitle, icon, fontColor, backgroundColor, onClick }: Props) => React.JSX.Element;
16
+ export default Card5;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Card5 from './Card5';
3
+ declare const meta: Meta<typeof Card5>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { PropsWithChildren } from 'react';
3
+ import { IconProp } from '@fortawesome/fontawesome-svg-core';
4
+ import './Card6.scss';
5
+ type Props = PropsWithChildren<{
6
+ title: string;
7
+ subtitle: string;
8
+ content: string;
9
+ content2: string;
10
+ buttonContent: string;
11
+ buttonIcon: IconProp;
12
+ buttonFontColor: string;
13
+ buttonBackgroundColor: string;
14
+ fontColor: string;
15
+ backgroundColor: string;
16
+ image: string;
17
+ onClick: () => void;
18
+ }>;
19
+ declare const Card6: ({ title, subtitle, content, content2, buttonContent, buttonIcon, buttonFontColor, buttonBackgroundColor, fontColor, backgroundColor, image, onClick }: Props) => React.JSX.Element;
20
+ export default Card6;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Card6 from './Card6';
3
+ declare const meta: Meta<typeof Card6>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import './Select.scss';
3
+ interface SelectOption {
4
+ value: string;
5
+ label: string;
6
+ }
7
+ interface SelectProps {
8
+ placeholder: string;
9
+ options: SelectOption[];
10
+ value: string;
11
+ onChange: (value: string) => void;
12
+ disabled?: boolean;
13
+ }
14
+ declare const Select: React.FC<SelectProps>;
15
+ export default Select;
@@ -0,0 +1,14 @@
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 LongPlaceholder: Story;
13
+ export declare const Responsive: Story;
14
+ export declare const WithSelectedValue: Story;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ interface LazyLoadListProps {
3
+ items: any[];
4
+ setItems: (items: any[]) => void;
5
+ page: number;
6
+ limit: number;
7
+ setPage: (page: number) => void;
8
+ hasMore: boolean;
9
+ setHasMore: (hasMore: boolean) => void;
10
+ filters: {
11
+ [key: string]: string;
12
+ };
13
+ }
14
+ declare const LazyLoadList: React.FC<LazyLoadListProps>;
15
+ export default LazyLoadList;
@@ -3,6 +3,13 @@ export { default as BreadCrumb } from './components/atoms/BreadCrumb/BreadCrumb'
3
3
  export { default as CustomSwitch } from './components/atoms/Switch/CustomSwitch';
4
4
  export { default as Operators } from './components/moleculas/Operators/Operators';
5
5
  export { default as Field } from './components/atoms/Field/Field';
6
+ export { default as Card1 } from './components/atoms/Card/Card1';
7
+ export { default as Card2 } from './components/atoms/Card/Card2';
8
+ export { default as Card3 } from './components/atoms/Card/Card3';
9
+ export { default as Card4 } from './components/atoms/Card/Card4';
10
+ export { default as Card5 } from './components/atoms/Card/Card5';
11
+ export { default as Card6 } from './components/atoms/Card/Card6';
12
+ export { default as Select } from './components/atoms/Select/Select';
6
13
  export { default as ActionButton } from './components/atoms/Button/variants/ActionButton';
7
14
  export { default as FilterButton } from './components/atoms/Button/variants/FilterButton';
8
15
  export { default as IconButton } from './components/atoms/Button/variants/IconButton';
@@ -22,3 +29,4 @@ export { useAuth, AuthProvider } from './contexts/authContext';
22
29
  export { ApiProvider } from './contexts/apiContext';
23
30
  export { useApi } from './hooks/useApi';
24
31
  export { LoggedUser } from './types/LoggedUser';
32
+ 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.68",
3
+ "version": "1.5.69",
4
4
  "description": "",
5
5
  "main": "dist/bundle.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -11,7 +11,8 @@
11
11
  "build": "webpack --mode production",
12
12
  "storybook": "storybook dev -p 6006",
13
13
  "build-storybook": "storybook build",
14
- "pub": "git add . && git commit -m \"update\" && git push && npm version patch && npm run build && npm publish"
14
+ "pub": "git add . && git commit -m \"update\" && git push && npm version patch && npm run build && npm publish",
15
+ "pubOnly": "npm run build && npm publish"
15
16
  },
16
17
  "keywords": [],
17
18
  "author": "",
@@ -38,6 +39,7 @@
38
39
  "@types/react-dom": "^19.0.3",
39
40
  "@types/storybook__react": "^5.2.1",
40
41
  "css-loader": "^7.1.2",
42
+ "msw": "^2.7.3",
41
43
  "sass": "^1.84.0",
42
44
  "sass-loader": "^16.0.4",
43
45
  "storybook": "^8.5.3",
@@ -56,7 +58,9 @@
56
58
  "axios": "^1.8.1",
57
59
  "js-cookie": "^3.0.5",
58
60
  "keycloak-js": "^25.0.6",
61
+ "react-infinite-scroll-component": "^6.1.0",
59
62
  "react-switch": "^7.1.0",
60
- "react-tooltip": "^5.28.0"
63
+ "react-tooltip": "^5.28.0",
64
+ "tough-cookie": "^5.1.2"
61
65
  }
62
66
  }