opus-toolkit-components 1.9.2 → 1.9.4
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 +70 -70
- package/lib/components/Accordions/index.d.ts +19 -19
- package/lib/components/BarLayout/index.d.ts +8 -8
- package/lib/components/Buttons/index.d.ts +36 -36
- package/lib/components/Callout/index.d.ts +11 -11
- package/lib/components/Cards/index.d.ts +47 -47
- package/lib/components/FooterLogo/index.d.ts +6 -6
- package/lib/components/Forms/Checkbox/index.d.ts +20 -20
- package/lib/components/Forms/Inputs/index.d.ts +3 -3
- package/lib/components/Forms/Radios/index.d.ts +1 -0
- package/lib/components/Forms/ToggleSwitch/index.d.ts +15 -15
- package/lib/components/Header/index.d.ts +8 -8
- package/lib/components/IconButton/index.d.ts +24 -24
- package/lib/components/Link/index.js +20 -28
- package/lib/components/Link/index.js.map +1 -1
- package/lib/components/Modals/index.d.ts +16 -16
- package/lib/components/Navbar/index.d.ts +8 -8
- package/lib/components/PageTemplate/index.d.ts +23 -23
- package/lib/components/Pills/index.d.ts +23 -23
- package/lib/components/Profile/ProfileCard/index.d.ts +11 -11
- package/lib/components/Sidebar/index.d.ts +57 -57
- package/lib/components/Tables/index.d.ts +18 -18
- package/lib/components/Text/index.d.ts +25 -25
- package/lib/main.js +46137 -45939
- package/lib/main.js.map +1 -1
- package/package.json +128 -128
package/README.md
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
# Getting Started with Create React App
|
|
2
|
-
|
|
3
|
-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
|
4
|
-
|
|
5
|
-
## Available Scripts
|
|
6
|
-
|
|
7
|
-
In the project directory, you can run:
|
|
8
|
-
|
|
9
|
-
### `npm start`
|
|
10
|
-
|
|
11
|
-
Runs the app in the development mode.\
|
|
12
|
-
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
|
|
13
|
-
|
|
14
|
-
The page will reload when you make changes.\
|
|
15
|
-
You may also see any lint errors in the console.
|
|
16
|
-
|
|
17
|
-
### `npm test`
|
|
18
|
-
|
|
19
|
-
Launches the test runner in the interactive watch mode.\
|
|
20
|
-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
|
21
|
-
|
|
22
|
-
### `npm run build`
|
|
23
|
-
|
|
24
|
-
Builds the app for production to the `build` folder.\
|
|
25
|
-
It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
26
|
-
|
|
27
|
-
The build is minified and the filenames include the hashes.\
|
|
28
|
-
Your app is ready to be deployed!
|
|
29
|
-
|
|
30
|
-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
|
31
|
-
|
|
32
|
-
### `npm run eject`
|
|
33
|
-
|
|
34
|
-
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
|
|
35
|
-
|
|
36
|
-
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
|
37
|
-
|
|
38
|
-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
|
|
39
|
-
|
|
40
|
-
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
|
|
41
|
-
|
|
42
|
-
## Learn More
|
|
43
|
-
|
|
44
|
-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
|
45
|
-
|
|
46
|
-
To learn React, check out the [React documentation](https://reactjs.org/).
|
|
47
|
-
|
|
48
|
-
### Code Splitting
|
|
49
|
-
|
|
50
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
|
|
51
|
-
|
|
52
|
-
### Analyzing the Bundle Size
|
|
53
|
-
|
|
54
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
|
|
55
|
-
|
|
56
|
-
### Making a Progressive Web App
|
|
57
|
-
|
|
58
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
|
|
59
|
-
|
|
60
|
-
### Advanced Configuration
|
|
61
|
-
|
|
62
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
|
|
63
|
-
|
|
64
|
-
### Deployment
|
|
65
|
-
|
|
66
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
|
|
67
|
-
|
|
68
|
-
### `npm run build` fails to minify
|
|
69
|
-
|
|
70
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
|
1
|
+
# Getting Started with Create React App
|
|
2
|
+
|
|
3
|
+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
|
4
|
+
|
|
5
|
+
## Available Scripts
|
|
6
|
+
|
|
7
|
+
In the project directory, you can run:
|
|
8
|
+
|
|
9
|
+
### `npm start`
|
|
10
|
+
|
|
11
|
+
Runs the app in the development mode.\
|
|
12
|
+
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
|
|
13
|
+
|
|
14
|
+
The page will reload when you make changes.\
|
|
15
|
+
You may also see any lint errors in the console.
|
|
16
|
+
|
|
17
|
+
### `npm test`
|
|
18
|
+
|
|
19
|
+
Launches the test runner in the interactive watch mode.\
|
|
20
|
+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
|
21
|
+
|
|
22
|
+
### `npm run build`
|
|
23
|
+
|
|
24
|
+
Builds the app for production to the `build` folder.\
|
|
25
|
+
It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
26
|
+
|
|
27
|
+
The build is minified and the filenames include the hashes.\
|
|
28
|
+
Your app is ready to be deployed!
|
|
29
|
+
|
|
30
|
+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
|
31
|
+
|
|
32
|
+
### `npm run eject`
|
|
33
|
+
|
|
34
|
+
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
|
|
35
|
+
|
|
36
|
+
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
|
37
|
+
|
|
38
|
+
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
|
|
39
|
+
|
|
40
|
+
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
|
|
41
|
+
|
|
42
|
+
## Learn More
|
|
43
|
+
|
|
44
|
+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
|
45
|
+
|
|
46
|
+
To learn React, check out the [React documentation](https://reactjs.org/).
|
|
47
|
+
|
|
48
|
+
### Code Splitting
|
|
49
|
+
|
|
50
|
+
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
|
|
51
|
+
|
|
52
|
+
### Analyzing the Bundle Size
|
|
53
|
+
|
|
54
|
+
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
|
|
55
|
+
|
|
56
|
+
### Making a Progressive Web App
|
|
57
|
+
|
|
58
|
+
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
|
|
59
|
+
|
|
60
|
+
### Advanced Configuration
|
|
61
|
+
|
|
62
|
+
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
|
|
63
|
+
|
|
64
|
+
### Deployment
|
|
65
|
+
|
|
66
|
+
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
|
|
67
|
+
|
|
68
|
+
### `npm run build` fails to minify
|
|
69
|
+
|
|
70
|
+
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
// Accordion Typescript Definitions - update when new props added
|
|
2
|
-
export interface AccordionProps {
|
|
3
|
-
title: string | React.ReactNode;
|
|
4
|
-
handleToggle?: (index: number) => void;
|
|
5
|
-
activeIndex?: number;
|
|
6
|
-
index: number;
|
|
7
|
-
isPreview?: boolean;
|
|
8
|
-
isLocked?: boolean;
|
|
9
|
-
onExitPreview?: () => void;
|
|
10
|
-
content: React.ReactNode;
|
|
11
|
-
preview?: React.ReactNode;
|
|
12
|
-
isPill?: boolean;
|
|
13
|
-
pillText?: string;
|
|
14
|
-
pillStatus?: "success" | "warning" | "error" | "info" | string;
|
|
15
|
-
pillIcon?: React.ReactNode;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const Accordion: React.ComponentType<AccordionProps>;
|
|
1
|
+
// Accordion Typescript Definitions - update when new props added
|
|
2
|
+
export interface AccordionProps {
|
|
3
|
+
title: string | React.ReactNode;
|
|
4
|
+
handleToggle?: (index: number) => void;
|
|
5
|
+
activeIndex?: number;
|
|
6
|
+
index: number;
|
|
7
|
+
isPreview?: boolean;
|
|
8
|
+
isLocked?: boolean;
|
|
9
|
+
onExitPreview?: () => void;
|
|
10
|
+
content: React.ReactNode;
|
|
11
|
+
preview?: React.ReactNode;
|
|
12
|
+
isPill?: boolean;
|
|
13
|
+
pillText?: string;
|
|
14
|
+
pillStatus?: "success" | "warning" | "error" | "info" | string;
|
|
15
|
+
pillIcon?: React.ReactNode;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const Accordion: React.ComponentType<AccordionProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface BarLayoutProps {
|
|
2
|
-
left?: React.ReactNode;
|
|
3
|
-
center?: React.ReactNode;
|
|
4
|
-
right?: React.ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export const BarLayout: React.ComponentType<BarLayoutProps>;
|
|
1
|
+
export interface BarLayoutProps {
|
|
2
|
+
left?: React.ReactNode;
|
|
3
|
+
center?: React.ReactNode;
|
|
4
|
+
right?: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const BarLayout: React.ComponentType<BarLayoutProps>;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
export type ButtonRank =
|
|
2
|
-
| "primary"
|
|
3
|
-
| "secondary"
|
|
4
|
-
| "tertiary"
|
|
5
|
-
| "outline"
|
|
6
|
-
| "destructive";
|
|
7
|
-
|
|
8
|
-
export type ButtonState = "default" | "disabled";
|
|
9
|
-
|
|
10
|
-
export type ButtonSize = "sm" | "md" | "lg" | "xl" | string;
|
|
11
|
-
|
|
12
|
-
export type IconComponent = (
|
|
13
|
-
props: React.SVGProps<SVGSVGElement>,
|
|
14
|
-
) => JSX.Element;
|
|
15
|
-
|
|
16
|
-
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
17
|
-
type?: "button" | "submit" | "reset";
|
|
18
|
-
rank?: ButtonRank;
|
|
19
|
-
state?: ButtonState;
|
|
20
|
-
text?: string;
|
|
21
|
-
size?: ButtonSize;
|
|
22
|
-
name?: string;
|
|
23
|
-
dataCy?: string;
|
|
24
|
-
tabIndex?: number;
|
|
25
|
-
isFullWidth?: boolean;
|
|
26
|
-
icon?: IconComponent;
|
|
27
|
-
iconPosition?: "left" | "right";
|
|
28
|
-
isIconAnimated?: boolean;
|
|
29
|
-
isSaving?: boolean;
|
|
30
|
-
savingText?: string;
|
|
31
|
-
className?: string;
|
|
32
|
-
title?: string;
|
|
33
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export const Button: React.ComponentType<ButtonProps>;
|
|
1
|
+
export type ButtonRank =
|
|
2
|
+
| "primary"
|
|
3
|
+
| "secondary"
|
|
4
|
+
| "tertiary"
|
|
5
|
+
| "outline"
|
|
6
|
+
| "destructive";
|
|
7
|
+
|
|
8
|
+
export type ButtonState = "default" | "disabled";
|
|
9
|
+
|
|
10
|
+
export type ButtonSize = "sm" | "md" | "lg" | "xl" | string;
|
|
11
|
+
|
|
12
|
+
export type IconComponent = (
|
|
13
|
+
props: React.SVGProps<SVGSVGElement>,
|
|
14
|
+
) => JSX.Element;
|
|
15
|
+
|
|
16
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
17
|
+
type?: "button" | "submit" | "reset";
|
|
18
|
+
rank?: ButtonRank;
|
|
19
|
+
state?: ButtonState;
|
|
20
|
+
text?: string;
|
|
21
|
+
size?: ButtonSize;
|
|
22
|
+
name?: string;
|
|
23
|
+
dataCy?: string;
|
|
24
|
+
tabIndex?: number;
|
|
25
|
+
isFullWidth?: boolean;
|
|
26
|
+
icon?: IconComponent;
|
|
27
|
+
iconPosition?: "left" | "right";
|
|
28
|
+
isIconAnimated?: boolean;
|
|
29
|
+
isSaving?: boolean;
|
|
30
|
+
savingText?: string;
|
|
31
|
+
className?: string;
|
|
32
|
+
title?: string;
|
|
33
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export const Button: React.ComponentType<ButtonProps>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export type CalloutTone = "green" | "amber" | "red" | "pink";
|
|
2
|
-
|
|
3
|
-
export interface CalloutProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
message: string;
|
|
5
|
-
tone?: CalloutTone;
|
|
6
|
-
className?: string;
|
|
7
|
-
name?: string;
|
|
8
|
-
dataCy?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const Callout: React.FC<CalloutProps>;
|
|
1
|
+
export type CalloutTone = "green" | "amber" | "red" | "pink";
|
|
2
|
+
|
|
3
|
+
export interface CalloutProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
message: string;
|
|
5
|
+
tone?: CalloutTone;
|
|
6
|
+
className?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
dataCy?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const Callout: React.FC<CalloutProps>;
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
export type CardIntent =
|
|
2
|
-
| "default"
|
|
3
|
-
| "info"
|
|
4
|
-
| "warning"
|
|
5
|
-
| "success"
|
|
6
|
-
| "error"
|
|
7
|
-
| "brand"
|
|
8
|
-
| "brandSecondary";
|
|
9
|
-
|
|
10
|
-
export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
11
|
-
intent?: CardIntent;
|
|
12
|
-
hasOutline?: boolean;
|
|
13
|
-
className?: string;
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export const Card: React.ComponentType<CardProps>;
|
|
18
|
-
|
|
19
|
-
export interface FileUploadCardProps
|
|
20
|
-
extends React.HTMLAttributes<HTMLDivElement> {
|
|
21
|
-
fileName: string;
|
|
22
|
-
uploadedDate: string;
|
|
23
|
-
previewSrc?: string;
|
|
24
|
-
previewAlt?: string;
|
|
25
|
-
preview?: React.ReactNode;
|
|
26
|
-
action?: React.ReactNode;
|
|
27
|
-
downloadTitle?: string;
|
|
28
|
-
onDownload?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
29
|
-
className?: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export const FileUploadCard: React.ComponentType<FileUploadCardProps>;
|
|
33
|
-
|
|
34
|
-
export interface CardItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
35
|
-
heading: React.ReactNode;
|
|
36
|
-
subheading?: React.ReactNode;
|
|
37
|
-
icon?: React.ReactNode;
|
|
38
|
-
checked?: boolean;
|
|
39
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
40
|
-
iconPosition?: "left" | "right";
|
|
41
|
-
disabled?: boolean;
|
|
42
|
-
className?: string;
|
|
43
|
-
dataCy?: string;
|
|
44
|
-
name?: string;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export const CardItem: React.ComponentType<CardItemProps>;
|
|
1
|
+
export type CardIntent =
|
|
2
|
+
| "default"
|
|
3
|
+
| "info"
|
|
4
|
+
| "warning"
|
|
5
|
+
| "success"
|
|
6
|
+
| "error"
|
|
7
|
+
| "brand"
|
|
8
|
+
| "brandSecondary";
|
|
9
|
+
|
|
10
|
+
export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
11
|
+
intent?: CardIntent;
|
|
12
|
+
hasOutline?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const Card: React.ComponentType<CardProps>;
|
|
18
|
+
|
|
19
|
+
export interface FileUploadCardProps
|
|
20
|
+
extends React.HTMLAttributes<HTMLDivElement> {
|
|
21
|
+
fileName: string;
|
|
22
|
+
uploadedDate: string;
|
|
23
|
+
previewSrc?: string;
|
|
24
|
+
previewAlt?: string;
|
|
25
|
+
preview?: React.ReactNode;
|
|
26
|
+
action?: React.ReactNode;
|
|
27
|
+
downloadTitle?: string;
|
|
28
|
+
onDownload?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
29
|
+
className?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const FileUploadCard: React.ComponentType<FileUploadCardProps>;
|
|
33
|
+
|
|
34
|
+
export interface CardItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
35
|
+
heading: React.ReactNode;
|
|
36
|
+
subheading?: React.ReactNode;
|
|
37
|
+
icon?: React.ReactNode;
|
|
38
|
+
checked?: boolean;
|
|
39
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
40
|
+
iconPosition?: "left" | "right";
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
className?: string;
|
|
43
|
+
dataCy?: string;
|
|
44
|
+
name?: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export const CardItem: React.ComponentType<CardItemProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface FooterLogoProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
-
href?: string;
|
|
3
|
-
className?: string;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export const FooterLogo: React.FC<FooterLogoProps>;
|
|
1
|
+
export interface FooterLogoProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
href?: string;
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const FooterLogo: React.FC<FooterLogoProps>;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export interface CheckboxChangeEvent {
|
|
2
|
-
target: {
|
|
3
|
-
name: string;
|
|
4
|
-
value: boolean;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface CheckboxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
9
|
-
label: string;
|
|
10
|
-
name: string;
|
|
11
|
-
onChange?: (event: CheckboxChangeEvent) => void;
|
|
12
|
-
value?: boolean;
|
|
13
|
-
isValid?: boolean;
|
|
14
|
-
errorMessage?: string;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
title?: string;
|
|
17
|
-
dataCy?: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export const Checkbox: React.ComponentType<CheckboxProps>;
|
|
1
|
+
export interface CheckboxChangeEvent {
|
|
2
|
+
target: {
|
|
3
|
+
name: string;
|
|
4
|
+
value: boolean;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface CheckboxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
label: string;
|
|
10
|
+
name: string;
|
|
11
|
+
onChange?: (event: CheckboxChangeEvent) => void;
|
|
12
|
+
value?: boolean;
|
|
13
|
+
isValid?: boolean;
|
|
14
|
+
errorMessage?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
title?: string;
|
|
17
|
+
dataCy?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const Checkbox: React.ComponentType<CheckboxProps>;
|
|
@@ -4,9 +4,8 @@ export type IconComponent = (
|
|
|
4
4
|
|
|
5
5
|
export type CustomComponent = (props: any) => JSX.Element;
|
|
6
6
|
|
|
7
|
-
export interface InputProps
|
|
8
|
-
|
|
9
|
-
label: string;
|
|
7
|
+
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
8
|
+
label?: string;
|
|
10
9
|
placeholder?: string;
|
|
11
10
|
type?:
|
|
12
11
|
| "text"
|
|
@@ -29,6 +28,7 @@ export interface InputProps
|
|
|
29
28
|
errorMessage?: string;
|
|
30
29
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
31
30
|
className?: string;
|
|
31
|
+
outerClassName?: string;
|
|
32
32
|
value?: string | number;
|
|
33
33
|
Icon?: IconComponent;
|
|
34
34
|
iconPosition?: "left" | "right";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export interface ToggleSwitchProps
|
|
2
|
-
extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
checked: boolean;
|
|
4
|
-
onChange?: (checked: boolean) => void;
|
|
5
|
-
onToggle?: (checked: boolean) => void;
|
|
6
|
-
leftLabel?: React.ReactNode;
|
|
7
|
-
rightLabel?: React.ReactNode;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
name?: string;
|
|
10
|
-
title?: string;
|
|
11
|
-
dataCy?: string;
|
|
12
|
-
className?: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const ToggleSwitch: React.ComponentType<ToggleSwitchProps>;
|
|
1
|
+
export interface ToggleSwitchProps
|
|
2
|
+
extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
checked: boolean;
|
|
4
|
+
onChange?: (checked: boolean) => void;
|
|
5
|
+
onToggle?: (checked: boolean) => void;
|
|
6
|
+
leftLabel?: React.ReactNode;
|
|
7
|
+
rightLabel?: React.ReactNode;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
name?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
dataCy?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const ToggleSwitch: React.ComponentType<ToggleSwitchProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface HeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
-
title: string;
|
|
3
|
-
center?: React.ReactNode;
|
|
4
|
-
right?: React.ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export const Header: React.FC<HeaderProps>;
|
|
1
|
+
export interface HeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
title: string;
|
|
3
|
+
center?: React.ReactNode;
|
|
4
|
+
right?: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const Header: React.FC<HeaderProps>;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export type IconButtonRank =
|
|
2
|
-
| "primary"
|
|
3
|
-
| "secondary"
|
|
4
|
-
| "outline"
|
|
5
|
-
| "destructive"
|
|
6
|
-
| string;
|
|
7
|
-
|
|
8
|
-
export type IconButtonSize = "sm" | "md" | "lg" | string;
|
|
9
|
-
|
|
10
|
-
export interface IconButtonProps
|
|
11
|
-
extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
12
|
-
rank?: IconButtonRank;
|
|
13
|
-
size?: IconButtonSize;
|
|
14
|
-
title?: string;
|
|
15
|
-
iconName?: string;
|
|
16
|
-
iconLibrary?: "hero" | "c247" | string;
|
|
17
|
-
icon?: React.ReactNode;
|
|
18
|
-
isFullWidth?: boolean;
|
|
19
|
-
className?: string;
|
|
20
|
-
name?: string;
|
|
21
|
-
dataCy?: string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const IconButton: React.ComponentType<IconButtonProps>;
|
|
1
|
+
export type IconButtonRank =
|
|
2
|
+
| "primary"
|
|
3
|
+
| "secondary"
|
|
4
|
+
| "outline"
|
|
5
|
+
| "destructive"
|
|
6
|
+
| string;
|
|
7
|
+
|
|
8
|
+
export type IconButtonSize = "sm" | "md" | "lg" | string;
|
|
9
|
+
|
|
10
|
+
export interface IconButtonProps
|
|
11
|
+
extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
12
|
+
rank?: IconButtonRank;
|
|
13
|
+
size?: IconButtonSize;
|
|
14
|
+
title?: string;
|
|
15
|
+
iconName?: string;
|
|
16
|
+
iconLibrary?: "hero" | "c247" | string;
|
|
17
|
+
icon?: React.ReactNode;
|
|
18
|
+
isFullWidth?: boolean;
|
|
19
|
+
className?: string;
|
|
20
|
+
name?: string;
|
|
21
|
+
dataCy?: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const IconButton: React.ComponentType<IconButtonProps>;
|
|
@@ -2,8 +2,15 @@
|
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
|
-
/***/
|
|
6
|
-
|
|
5
|
+
/***/ 94178
|
|
6
|
+
(module) {
|
|
7
|
+
|
|
8
|
+
module.exports = require("react/jsx-runtime");
|
|
9
|
+
|
|
10
|
+
/***/ },
|
|
11
|
+
|
|
12
|
+
/***/ 34164
|
|
13
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
7
14
|
|
|
8
15
|
__webpack_require__.r(__webpack_exports__);
|
|
9
16
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
@@ -12,14 +19,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12
19
|
/* harmony export */ });
|
|
13
20
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (clsx);
|
|
14
21
|
|
|
15
|
-
/***/ }
|
|
16
|
-
|
|
17
|
-
/***/ 94178:
|
|
18
|
-
/***/ ((module) => {
|
|
19
|
-
|
|
20
|
-
module.exports = require("react/jsx-runtime");
|
|
21
|
-
|
|
22
|
-
/***/ })
|
|
22
|
+
/***/ }
|
|
23
23
|
|
|
24
24
|
/******/ });
|
|
25
25
|
/************************************************************************/
|
|
@@ -97,33 +97,25 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
97
97
|
/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(34164);
|
|
98
98
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94178);
|
|
99
99
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
|
|
100
|
-
const _excluded = ["href", "children", "className", "newTab"];
|
|
101
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
102
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
103
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
104
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
105
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
106
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
107
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
108
100
|
|
|
109
101
|
|
|
110
102
|
function Link(_ref) {
|
|
111
103
|
let {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
104
|
+
href,
|
|
105
|
+
children,
|
|
106
|
+
className,
|
|
107
|
+
newTab,
|
|
108
|
+
...props
|
|
109
|
+
} = _ref;
|
|
118
110
|
const isExternal = href.startsWith("http");
|
|
119
|
-
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("a",
|
|
111
|
+
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("a", {
|
|
120
112
|
href: href,
|
|
121
113
|
target: newTab || isExternal ? "_blank" : undefined,
|
|
122
114
|
rel: newTab || isExternal ? "noopener noreferrer" : undefined,
|
|
123
|
-
className: (0,clsx__WEBPACK_IMPORTED_MODULE_0__["default"])("text-[--color-text-strong] hover:underline", className)
|
|
124
|
-
|
|
115
|
+
className: (0,clsx__WEBPACK_IMPORTED_MODULE_0__["default"])("text-[--color-text-strong] hover:underline", className),
|
|
116
|
+
...props,
|
|
125
117
|
children: children
|
|
126
|
-
})
|
|
118
|
+
});
|
|
127
119
|
}
|
|
128
120
|
module.exports = __webpack_exports__;
|
|
129
121
|
/******/ })()
|