@nextelco/common-ui 1.5.68 → 1.5.76

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.
@@ -5,7 +5,10 @@ import './ActionButton.scss';
5
5
  type Props = PropsWithChildren<{
6
6
  icon: IconProp;
7
7
  title: string;
8
+ iconColor?: string;
9
+ fontColor?: string;
10
+ backgroundColor?: string;
8
11
  onClick: () => void;
9
12
  }>;
10
- declare const ActionButton: ({ title, icon, onClick }: Props) => React.JSX.Element;
13
+ declare const ActionButton: ({ icon, iconColor, title, fontColor, backgroundColor, onClick, }: Props) => React.JSX.Element;
11
14
  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,16 @@
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
+ big: boolean;
13
+ onClick: () => void;
14
+ }>;
15
+ declare const Card1: ({ title, subtitle, thumbnail, isVideo, clickable, fontColor, backgroundColor, big, onClick }: Props) => React.JSX.Element;
16
+ 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,15 @@
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
+ onClick: () => void;
13
+ }>;
14
+ declare const Card5: ({ image, title, subtitle, undertitle, icon, fontColor, backgroundColor, onClick }: Props) => React.JSX.Element;
15
+ 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;
@@ -3,6 +3,12 @@ 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';
6
12
  export { default as ActionButton } from './components/atoms/Button/variants/ActionButton';
7
13
  export { default as FilterButton } from './components/atoms/Button/variants/FilterButton';
8
14
  export { default as IconButton } from './components/atoms/Button/variants/IconButton';
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.76",
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 version patch && npm run build && npm publish"
15
16
  },
16
17
  "keywords": [],
17
18
  "author": "",