pge-front-common 2.0.0 → 3.0.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.
- package/README.md +1 -1
- package/lib/components/Button/Button.d.ts +7 -27
- package/lib/components/Button/Button.stories.d.ts +4 -19
- package/lib/components/Button/styles.d.ts +3 -0
- package/lib/components/Input/Input.stories.d.ts +8 -0
- package/lib/components/Input/index.d.ts +4 -0
- package/lib/components/Input/index.types.d.ts +11 -0
- package/lib/components/Input/styles.d.ts +15 -0
- package/lib/components/Modal/Modal.d.ts +8 -0
- package/lib/components/Modal/Modal.stories.d.ts +31 -0
- package/lib/components/Modal/ModalConfirm/ModalConfirm.stories.d.ts +17 -0
- package/lib/components/Modal/ModalConfirm/index.d.ts +8 -0
- package/lib/components/Modal/ModalConfirm/styles.d.ts +1 -0
- package/lib/components/Modal/styles.d.ts +8 -0
- package/lib/components/Select/Select.stories.d.ts +8 -0
- package/lib/components/Select/index.d.ts +4 -0
- package/lib/components/Select/index.types.d.ts +22 -0
- package/lib/components/Select/styles.d.ts +25 -0
- package/lib/components/theme.d.ts +3 -0
- package/lib/icons/add-cell-icon.d.ts +2 -0
- package/lib/icons/add-icon.d.ts +2 -0
- package/lib/icons/arrow-expland-icon.d.ts +2 -0
- package/lib/icons/arrow-to-recall-icon.d.ts +2 -0
- package/lib/icons/calendar-icon.d.ts +2 -0
- package/lib/icons/check-circle-icon.d.ts +2 -0
- package/lib/icons/circle-expland-icon.d.ts +2 -0
- package/lib/icons/circle-to-recall-icon.d.ts +2 -0
- package/lib/icons/close-icon.d.ts +2 -0
- package/lib/icons/delete-icon.d.ts +2 -0
- package/lib/icons/download-icon.d.ts +2 -0
- package/lib/icons/edit-icon.d.ts +2 -0
- package/lib/icons/event-avaliable-icon.d.ts +2 -0
- package/lib/icons/icons.stories.d.ts +5 -0
- package/{src/icons/index.ts → lib/icons/index.d.ts} +24 -49
- package/lib/icons/logout-icon.d.ts +2 -0
- package/lib/icons/new-tab-icon.d.ts +2 -0
- package/lib/icons/pdf-icon.d.ts +2 -0
- package/lib/icons/profile-icon.d.ts +2 -0
- package/lib/icons/remove-icon.d.ts +2 -0
- package/lib/icons/swap-icon.d.ts +2 -0
- package/lib/icons/triangle-expand-icon.d.ts +2 -0
- package/lib/icons/triangle-to-recall-icon.d.ts +2 -0
- package/lib/icons/upload-icon.d.ts +2 -0
- package/lib/icons/visibillity-icon.d.ts +2 -0
- package/lib/icons/warning-icon.d.ts +2 -0
- package/lib/index.d.ts +62 -28
- package/lib/index.esm.js +3138 -28
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +3178 -26
- package/lib/index.js.map +1 -1
- package/package.json +9 -3
- package/.storybook/main.ts +0 -22
- package/.storybook/preview.ts +0 -25
- package/rollup.config.mjs +0 -46
- package/src/components/Button/Button.stories.tsx +0 -50
- package/src/components/Button/Button.tsx +0 -28
- package/src/components/Button/styles.tsx +0 -39
- package/src/components/Modal/Modal.stories.tsx +0 -62
- package/src/components/Modal/Modal.tsx +0 -42
- package/src/components/Modal/ModalConfirm/ModalConfirm.stories.tsx +0 -48
- package/src/components/Modal/ModalConfirm/index.tsx +0 -32
- package/src/components/Modal/ModalConfirm/styles.tsx +0 -9
- package/src/components/Modal/styles.tsx +0 -75
- package/src/components/theme.ts +0 -24
- package/src/icons/add-cell-icon.tsx +0 -17
- package/src/icons/add-icon.tsx +0 -17
- package/src/icons/arrow-expland-icon.tsx +0 -17
- package/src/icons/arrow-to-recall-icon.tsx +0 -17
- package/src/icons/calendar-icon.tsx +0 -17
- package/src/icons/check-circle-icon.tsx +0 -17
- package/src/icons/circle-expland-icon.tsx +0 -17
- package/src/icons/circle-to-recall-icon.tsx +0 -17
- package/src/icons/close-icon.tsx +0 -17
- package/src/icons/delete-icon.tsx +0 -17
- package/src/icons/download-icon.tsx +0 -17
- package/src/icons/edit-icon.tsx +0 -17
- package/src/icons/event-avaliable-icon.tsx +0 -17
- package/src/icons/icons.stories.tsx +0 -92
- package/src/icons/logout-icon.tsx +0 -17
- package/src/icons/new-tab-icon.tsx +0 -17
- package/src/icons/pdf-icon.tsx +0 -17
- package/src/icons/profile-icon.tsx +0 -17
- package/src/icons/remove-icon.tsx +0 -14
- package/src/icons/swap-icon.tsx +0 -17
- package/src/icons/triangle-expand-icon.tsx +0 -14
- package/src/icons/triangle-to-recall-icon.tsx +0 -14
- package/src/icons/upload-icon.tsx +0 -17
- package/src/icons/visibillity-icon.tsx +0 -17
- package/src/icons/warning-icon.tsx +0 -17
- package/src/index.ts +0 -56
- package/src/styled-components.d.ts +0 -25
- package/tsconfig.json +0 -23
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Biblioteca de componentes da PGE
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/js/my-component-library)
|
|
4
4
|
[](https://my-component-library/storybook)
|
|
@@ -1,28 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
primary?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* What background color to use
|
|
10
|
-
*/
|
|
11
|
-
backgroundColor?: string;
|
|
12
|
-
/**
|
|
13
|
-
* How large should the button be?
|
|
14
|
-
*/
|
|
15
|
-
size?: "small" | "medium" | "large";
|
|
16
|
-
/**
|
|
17
|
-
* Button contents
|
|
18
|
-
*/
|
|
19
|
-
label: string;
|
|
20
|
-
/**
|
|
21
|
-
* Optional click handler
|
|
22
|
-
*/
|
|
23
|
-
onClick?: () => void;
|
|
1
|
+
import React, { ButtonHTMLAttributes } from "react";
|
|
2
|
+
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
variant: "primary" | "secondary";
|
|
4
|
+
text: string;
|
|
5
|
+
leftIcon?: React.ReactNode;
|
|
24
6
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
*/
|
|
28
|
-
export declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => React.JSX.Element;
|
|
7
|
+
export declare function Button({ variant, text, leftIcon, ...props }: ButtonProps): React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
component: ({ primary, size, backgroundColor, label, ...props }: import("./Button").ButtonProps) => import("react").JSX.Element;
|
|
5
|
-
parameters: {
|
|
6
|
-
layout: string;
|
|
7
|
-
};
|
|
8
|
-
tags: string[];
|
|
9
|
-
argTypes: {
|
|
10
|
-
backgroundColor: {
|
|
11
|
-
control: "color";
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
args: {
|
|
15
|
-
onClick: import("@vitest/spy").Mock<[], void>;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Button } from "./Button";
|
|
3
|
+
declare const meta: Meta<typeof Button>;
|
|
18
4
|
export default meta;
|
|
19
5
|
type Story = StoryObj<typeof meta>;
|
|
20
6
|
export declare const Primary: Story;
|
|
21
7
|
export declare const Secondary: Story;
|
|
22
|
-
export declare const
|
|
23
|
-
export declare const Small: Story;
|
|
8
|
+
export declare const WithIcon: Story;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const BaseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
2
|
+
export declare const PrimaryButton: import("styled-components").RuleSet<object>;
|
|
3
|
+
export declare const SecondaryButton: import("styled-components").RuleSet<object>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import InputBase from "./index";
|
|
3
|
+
declare const meta: Meta<typeof InputBase>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithError: Story;
|
|
8
|
+
export declare const WithIcon: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface InputBaseProps extends Partial<HTMLInputElement> {
|
|
3
|
+
label: string;
|
|
4
|
+
hasError?: boolean;
|
|
5
|
+
textError?: string;
|
|
6
|
+
message?: string;
|
|
7
|
+
Icon?: string | React.ReactNode;
|
|
8
|
+
textAling?: "start" | "end" | "center";
|
|
9
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
onClick?: (e: React.MouseEvent<HTMLInputElement>) => void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const InputContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
|
+
width?: number;
|
|
3
|
+
}>> & string;
|
|
4
|
+
export declare const InputWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
5
|
+
icon?: boolean;
|
|
6
|
+
hasError?: boolean;
|
|
7
|
+
}>> & string;
|
|
8
|
+
export declare const StyledInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {
|
|
9
|
+
textAlign?: "start" | "end" | "center";
|
|
10
|
+
} & Partial<HTMLInputElement>>> & string;
|
|
11
|
+
export declare const Message: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {
|
|
12
|
+
hasError?: boolean;
|
|
13
|
+
}>> & string;
|
|
14
|
+
export declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
|
|
15
|
+
export declare const InputContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ModalProps {
|
|
3
|
+
isModalOpen: boolean;
|
|
4
|
+
onOpenChange: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
title: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const Modal: ({ isModalOpen, onOpenChange, children, title, }: ModalProps) => React.JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ isModalOpen, onOpenChange, children, title, }: import("./Modal").ModalProps) => React.JSX.Element;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {
|
|
11
|
+
isModalOpen: {
|
|
12
|
+
control: "boolean";
|
|
13
|
+
};
|
|
14
|
+
onOpenChange: {
|
|
15
|
+
action: string;
|
|
16
|
+
};
|
|
17
|
+
children: {
|
|
18
|
+
control: "text";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
args: {
|
|
22
|
+
isModalOpen: false;
|
|
23
|
+
onOpenChange: import("@vitest/spy").Mock<[value: React.SetStateAction<boolean>], void>;
|
|
24
|
+
children: string;
|
|
25
|
+
title: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export default meta;
|
|
29
|
+
type Story = StoryObj<typeof meta>;
|
|
30
|
+
export declare const Default: Story;
|
|
31
|
+
export declare const Closed: Story;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.FC<import("./index").ModalProps>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
args: {
|
|
10
|
+
isModalOpen: false;
|
|
11
|
+
onOpenChange: import("@vitest/spy").Mock<[value: React.SetStateAction<boolean>], void>;
|
|
12
|
+
children: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ContainerModalConfirm: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const AlertOverlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
declare const ModalHeaderContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
declare const ModalHeaderText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
declare const CloseBtn: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
5
|
+
declare const CustomIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
declare const ContentContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
declare const ContentChildren: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export { AlertOverlay, ModalHeaderContainer, ModalHeaderText, CloseBtn, CustomIcon, ContentContainer, ContentChildren, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import Dropdown from "./index";
|
|
3
|
+
declare const meta: Meta<typeof Dropdown>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithError: Story;
|
|
8
|
+
export declare const WithIcon: Story;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface DropdownProps {
|
|
2
|
+
label: string;
|
|
3
|
+
name: string;
|
|
4
|
+
type: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
hasError?: boolean;
|
|
7
|
+
textError?: string;
|
|
8
|
+
message?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
Icon?: string | React.ReactNode;
|
|
11
|
+
textAling?: "start" | "end" | "center";
|
|
12
|
+
width?: number;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
options?: OptionsProps[];
|
|
15
|
+
value: OptionsProps;
|
|
16
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
17
|
+
onClick?: (e: React.MouseEvent<HTMLInputElement>) => void;
|
|
18
|
+
}
|
|
19
|
+
export type OptionsProps = {
|
|
20
|
+
label: string;
|
|
21
|
+
value: string;
|
|
22
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const InputContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
|
+
width?: number;
|
|
3
|
+
}>> & string;
|
|
4
|
+
export declare const InputWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
5
|
+
icon?: boolean;
|
|
6
|
+
hasError?: boolean;
|
|
7
|
+
}>> & string;
|
|
8
|
+
export declare const StyledInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
9
|
+
textAlign?: "start" | "end" | "center";
|
|
10
|
+
}>> & string;
|
|
11
|
+
export declare const Message: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {
|
|
12
|
+
hasError?: boolean;
|
|
13
|
+
}>> & string;
|
|
14
|
+
export declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
|
|
15
|
+
export declare const InputContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
16
|
+
export declare const ArrowIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
17
|
+
open: boolean;
|
|
18
|
+
}>> & string;
|
|
19
|
+
export declare const DropDownContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
20
|
+
open: boolean;
|
|
21
|
+
}>> & string;
|
|
22
|
+
export declare const DropDownContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
23
|
+
export declare const DropDownItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement>, {
|
|
24
|
+
active?: boolean;
|
|
25
|
+
}>> & string;
|
|
@@ -1,49 +1,24 @@
|
|
|
1
|
-
import { IconDownload } from "./download-icon";
|
|
2
|
-
import { IconVisibillity } from "./visibillity-icon";
|
|
3
|
-
import { IconEdit } from "./edit-icon";
|
|
4
|
-
import { IconDelete } from "./delete-icon";
|
|
5
|
-
import { IconCalendar } from "./calendar-icon";
|
|
6
|
-
import { IconProfile } from "./profile-icon";
|
|
7
|
-
import { IconUpload } from "./upload-icon";
|
|
8
|
-
import { IconNewTab } from "./new-tab-icon";
|
|
9
|
-
import { IconWarning } from "./warning-icon";
|
|
10
|
-
import { IconCheckCircle } from "./check-circle-icon";
|
|
11
|
-
import { IconEventAvaliable } from "./event-avaliable-icon";
|
|
12
|
-
import { IconLogout } from "./logout-icon";
|
|
13
|
-
import { IconCLose } from "./close-icon";
|
|
14
|
-
import { IconAdd } from "./add-icon";
|
|
15
|
-
import { IconRemove } from "./remove-icon";
|
|
16
|
-
import { IconCircleExpland } from "./circle-expland-icon";
|
|
17
|
-
import { IconCircleRecall } from "./circle-to-recall-icon";
|
|
18
|
-
import { IconArrowExpland } from "./arrow-expland-icon";
|
|
19
|
-
import { IconArrowRecall } from "./arrow-to-recall-icon";
|
|
20
|
-
import { IconTriangleExpand } from "./triangle-expand-icon";
|
|
21
|
-
import { IconTriangleRecall } from "./triangle-to-recall-icon";
|
|
22
|
-
import { IconSwap } from "./swap-icon";
|
|
23
|
-
import { IconAddCell } from "./add-cell-icon";
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
IconDownload,
|
|
27
|
-
IconVisibillity,
|
|
28
|
-
IconEdit,
|
|
29
|
-
IconDelete,
|
|
30
|
-
IconCalendar,
|
|
31
|
-
IconProfile,
|
|
32
|
-
IconUpload,
|
|
33
|
-
IconNewTab,
|
|
34
|
-
IconWarning,
|
|
35
|
-
IconCheckCircle,
|
|
36
|
-
IconEventAvaliable,
|
|
37
|
-
IconLogout,
|
|
38
|
-
IconCLose,
|
|
39
|
-
IconAdd,
|
|
40
|
-
IconRemove,
|
|
41
|
-
IconCircleExpland,
|
|
42
|
-
IconCircleRecall,
|
|
43
|
-
IconArrowExpland,
|
|
44
|
-
IconArrowRecall,
|
|
45
|
-
IconTriangleExpand,
|
|
46
|
-
IconTriangleRecall,
|
|
47
|
-
IconSwap,
|
|
48
|
-
IconAddCell,
|
|
49
|
-
};
|
|
1
|
+
import { IconDownload } from "./download-icon";
|
|
2
|
+
import { IconVisibillity } from "./visibillity-icon";
|
|
3
|
+
import { IconEdit } from "./edit-icon";
|
|
4
|
+
import { IconDelete } from "./delete-icon";
|
|
5
|
+
import { IconCalendar } from "./calendar-icon";
|
|
6
|
+
import { IconProfile } from "./profile-icon";
|
|
7
|
+
import { IconUpload } from "./upload-icon";
|
|
8
|
+
import { IconNewTab } from "./new-tab-icon";
|
|
9
|
+
import { IconWarning } from "./warning-icon";
|
|
10
|
+
import { IconCheckCircle } from "./check-circle-icon";
|
|
11
|
+
import { IconEventAvaliable } from "./event-avaliable-icon";
|
|
12
|
+
import { IconLogout } from "./logout-icon";
|
|
13
|
+
import { IconCLose } from "./close-icon";
|
|
14
|
+
import { IconAdd } from "./add-icon";
|
|
15
|
+
import { IconRemove } from "./remove-icon";
|
|
16
|
+
import { IconCircleExpland } from "./circle-expland-icon";
|
|
17
|
+
import { IconCircleRecall } from "./circle-to-recall-icon";
|
|
18
|
+
import { IconArrowExpland } from "./arrow-expland-icon";
|
|
19
|
+
import { IconArrowRecall } from "./arrow-to-recall-icon";
|
|
20
|
+
import { IconTriangleExpand } from "./triangle-expand-icon";
|
|
21
|
+
import { IconTriangleRecall } from "./triangle-to-recall-icon";
|
|
22
|
+
import { IconSwap } from "./swap-icon";
|
|
23
|
+
import { IconAddCell } from "./add-cell-icon";
|
|
24
|
+
export { IconDownload, IconVisibillity, IconEdit, IconDelete, IconCalendar, IconProfile, IconUpload, IconNewTab, IconWarning, IconCheckCircle, IconEventAvaliable, IconLogout, IconCLose, IconAdd, IconRemove, IconCircleExpland, IconCircleRecall, IconArrowExpland, IconArrowRecall, IconTriangleExpand, IconTriangleRecall, IconSwap, IconAddCell, };
|
package/lib/index.d.ts
CHANGED
|
@@ -1,30 +1,64 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
interface ButtonProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
size?: "small" | "medium" | "large";
|
|
16
|
-
/**
|
|
17
|
-
* Button contents
|
|
18
|
-
*/
|
|
19
|
-
label: string;
|
|
20
|
-
/**
|
|
21
|
-
* Optional click handler
|
|
22
|
-
*/
|
|
23
|
-
onClick?: () => void;
|
|
1
|
+
import React, { ButtonHTMLAttributes, SVGProps } from 'react';
|
|
2
|
+
|
|
3
|
+
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
variant: "primary" | "secondary";
|
|
5
|
+
text: string;
|
|
6
|
+
leftIcon?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare function Button({ variant, text, leftIcon, ...props }: ButtonProps): React.JSX.Element;
|
|
9
|
+
|
|
10
|
+
interface ModalProps {
|
|
11
|
+
isModalOpen: boolean;
|
|
12
|
+
onOpenChange: React.Dispatch<React.SetStateAction<boolean>>;
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
title: string;
|
|
24
15
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
declare const Modal: ({ isModalOpen, onOpenChange, children, title, }: ModalProps) => React.JSX.Element;
|
|
17
|
+
|
|
18
|
+
declare const IconDownload: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
19
|
+
|
|
20
|
+
declare const IconVisibillity: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
21
|
+
|
|
22
|
+
declare const IconEdit: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
23
|
+
|
|
24
|
+
declare const IconDelete: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
25
|
+
|
|
26
|
+
declare const IconCalendar: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
27
|
+
|
|
28
|
+
declare const IconProfile: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
29
|
+
|
|
30
|
+
declare const IconUpload: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
31
|
+
|
|
32
|
+
declare const IconNewTab: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
33
|
+
|
|
34
|
+
declare const IconWarning: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
35
|
+
|
|
36
|
+
declare const IconCheckCircle: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
37
|
+
|
|
38
|
+
declare const IconEventAvaliable: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
39
|
+
|
|
40
|
+
declare const IconLogout: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
41
|
+
|
|
42
|
+
declare const IconCLose: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
43
|
+
|
|
44
|
+
declare const IconAdd: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
45
|
+
|
|
46
|
+
declare const IconRemove: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
47
|
+
|
|
48
|
+
declare const IconCircleExpland: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
49
|
+
|
|
50
|
+
declare const IconCircleRecall: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
51
|
+
|
|
52
|
+
declare const IconArrowExpland: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
53
|
+
|
|
54
|
+
declare const IconArrowRecall: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
55
|
+
|
|
56
|
+
declare const IconTriangleExpand: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
57
|
+
|
|
58
|
+
declare const IconTriangleRecall: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
59
|
+
|
|
60
|
+
declare const IconSwap: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
61
|
+
|
|
62
|
+
declare const IconAddCell: (props?: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
29
63
|
|
|
30
|
-
export { Button };
|
|
64
|
+
export { Button, IconAdd, IconAddCell, IconArrowExpland, IconArrowRecall, IconCLose, IconCalendar, IconCheckCircle, IconCircleExpland, IconCircleRecall, IconDelete, IconDownload, IconEdit, IconEventAvaliable, IconLogout, IconNewTab, IconProfile, IconRemove, IconSwap, IconTriangleExpand, IconTriangleRecall, IconUpload, IconVisibillity, IconWarning, Modal };
|