@zauru-sdk/components 1.0.52 → 1.0.53
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/CHANGELOG.md +8 -0
- package/dist/Alerts/ErrorBoundaryAlert/ErrorBoundaryAlert.d.ts +6 -0
- package/dist/Alerts/StaticAlert.d.ts +11 -0
- package/dist/Alerts/index.d.ts +2 -0
- package/dist/BlockUI/BlockUI.d.ts +8 -0
- package/dist/BlockUI/index.d.ts +1 -0
- package/dist/Buttons/Button.d.ts +15 -0
- package/dist/Buttons/index.d.ts +1 -0
- package/dist/Card/Card.d.ts +8 -0
- package/dist/Card/index.d.ts +1 -0
- package/dist/Chat/ChatLayout.d.ts +17 -0
- package/dist/Chat/ChatMessageHistory.d.ts +12 -0
- package/dist/Chat/index.d.ts +2 -0
- package/dist/ConnectionState/ConnectionState.d.ts +1 -0
- package/dist/ConnectionState/index.d.ts +1 -0
- package/dist/Containers/BodyContainer.d.ts +6 -0
- package/dist/Containers/ButtonSectionContainer.d.ts +8 -0
- package/dist/Containers/Container.d.ts +10 -0
- package/dist/Containers/DoubleContainer.d.ts +9 -0
- package/dist/Containers/MainContainer.d.ts +6 -0
- package/dist/Containers/OutletContainer.d.ts +6 -0
- package/dist/Containers/SubContainer.d.ts +10 -0
- package/dist/Containers/index.d.ts +7 -0
- package/dist/DynamicTable/BasicPrintDynamicTable.d.ts +10 -0
- package/dist/DynamicTable/DynamicPrintTable.d.ts +23 -0
- package/dist/DynamicTable/DynamicTable.d.ts +24 -0
- package/dist/DynamicTable/GenericDynamicTable.d.ts +21 -0
- package/dist/DynamicTable/index.d.ts +4 -0
- package/dist/Footer/Footer.d.ts +7 -0
- package/dist/Footer/index.d.ts +1 -0
- package/dist/Form/Checkbox/index.d.ts +17 -0
- package/dist/Form/Checklist/index.d.ts +14 -0
- package/dist/Form/DatePicker/index.d.ts +18 -0
- package/dist/Form/DynamicBaculoForm/index.d.ts +18 -0
- package/dist/Form/FieldContainer/DoubleFieldContainer.d.ts +8 -0
- package/dist/Form/FieldContainer/QuadrupleFieldContainer.d.ts +7 -0
- package/dist/Form/FieldContainer/TripleFieldContainer.d.ts +7 -0
- package/dist/Form/FieldContainer/index.d.ts +3 -0
- package/dist/Form/FileUpload/index.d.ts +21 -0
- package/dist/Form/FormButtons/index.d.ts +16 -0
- package/dist/Form/FormLayout/index.d.ts +11 -0
- package/dist/Form/SelectField/index.d.ts +27 -0
- package/dist/Form/TextArea/index.d.ts +23 -0
- package/dist/Form/TextField/index.d.ts +25 -0
- package/dist/Form/TimePicker/index.d.ts +16 -0
- package/dist/Form/YesNo/index.d.ts +12 -0
- package/dist/Form/index.d.ts +13 -0
- package/dist/Labels/InfoLabel/index.d.ts +7 -0
- package/dist/Labels/index.d.ts +1 -0
- package/dist/Layouts/homeLayout/index.d.ts +6 -0
- package/dist/Layouts/index.d.ts +1 -0
- package/dist/LineSeparator/LineSeparator.d.ts +1 -0
- package/dist/LineSeparator/index.d.ts +1 -0
- package/dist/Modal/Modal.d.ts +10 -0
- package/dist/Modal/index.d.ts +1 -0
- package/dist/NavBar/NavBar.d.ts +2 -0
- package/dist/NavBar/NavBar.types.d.ts +50 -0
- package/dist/NavBar/NavBar.utils.d.ts +58 -0
- package/dist/NavBar/index.d.ts +3 -0
- package/dist/ProgressBar/ProgressBar.d.ts +6 -0
- package/dist/ProgressBar/ProgressCircle.d.ts +6 -0
- package/dist/ProgressBar/index.d.ts +2 -0
- package/dist/Skeletons/LoadingInputSkeleton.d.ts +1 -0
- package/dist/Skeletons/index.d.ts +1 -0
- package/dist/Tab/Tab.d.ts +9 -0
- package/dist/Tab/index.d.ts +1 -0
- package/dist/Table/ZauruTable.d.ts +25 -0
- package/dist/Table/index.d.ts +1 -0
- package/dist/TaskList/TaskList.d.ts +14 -0
- package/dist/TaskList/index.d.ts +1 -0
- package/dist/Titles/LabelArray.d.ts +4 -0
- package/dist/Titles/TableColumnTitle.d.ts +4 -0
- package/dist/Titles/TitleH1.d.ts +1 -0
- package/dist/Titles/TitleH2.d.ts +1 -0
- package/dist/Titles/TitleH3.d.ts +1 -0
- package/dist/Titles/index.d.ts +5 -0
- package/dist/Tooltip/Tooltip.d.ts +7 -0
- package/dist/Tooltip/index.d.ts +1 -0
- package/dist/WithTooltip/WithTooltip.d.ts +7 -0
- package/dist/WithTooltip/index.d.ts +1 -0
- package/dist/Wizards/StepWizard.d.ts +14 -0
- package/dist/Wizards/index.d.ts +1 -0
- package/dist/Zendesk/Chat.d.ts +14 -0
- package/dist/Zendesk/index.d.ts +2 -0
- package/dist/Zendesk/zendesk.config.d.ts +9 -0
- package/dist/cjs/Alerts/ErrorBoundaryAlert/ErrorBoundaryAlert.js +9 -0
- package/dist/cjs/Alerts/StaticAlert.js +32 -0
- package/dist/cjs/Alerts/index.js +18 -0
- package/dist/cjs/BlockUI/BlockUI.js +12 -0
- package/dist/cjs/BlockUI/index.js +17 -0
- package/dist/cjs/Buttons/Button.js +47 -0
- package/dist/cjs/Buttons/index.js +17 -0
- package/dist/cjs/Card/Card.js +9 -0
- package/dist/cjs/Card/index.js +17 -0
- package/dist/cjs/Chat/ChatLayout.js +31 -0
- package/dist/cjs/Chat/ChatMessageHistory.js +57 -0
- package/dist/cjs/Chat/index.js +18 -0
- package/dist/cjs/ConnectionState/ConnectionState.js +25 -0
- package/dist/cjs/ConnectionState/index.js +17 -0
- package/dist/cjs/Containers/BodyContainer.js +9 -0
- package/dist/cjs/Containers/ButtonSectionContainer.js +9 -0
- package/dist/cjs/Containers/Container.js +10 -0
- package/dist/cjs/Containers/DoubleContainer.js +18 -0
- package/dist/cjs/Containers/MainContainer.js +9 -0
- package/dist/cjs/Containers/OutletContainer.js +9 -0
- package/dist/cjs/Containers/SubContainer.js +10 -0
- package/dist/cjs/Containers/index.js +23 -0
- package/dist/cjs/DynamicTable/BasicPrintDynamicTable.js +31 -0
- package/dist/cjs/DynamicTable/DynamicPrintTable.js +158 -0
- package/dist/cjs/DynamicTable/DynamicTable.js +219 -0
- package/dist/cjs/DynamicTable/GenericDynamicTable.js +200 -0
- package/dist/cjs/DynamicTable/index.js +20 -0
- package/dist/cjs/Footer/Footer.js +20 -0
- package/dist/cjs/Footer/index.js +17 -0
- package/dist/cjs/Form/Checkbox/index.js +39 -0
- package/dist/cjs/Form/Checklist/index.js +14 -0
- package/dist/cjs/Form/DatePicker/index.js +36 -0
- package/dist/cjs/Form/DynamicBaculoForm/index.js +144 -0
- package/dist/cjs/Form/FieldContainer/DoubleFieldContainer.js +18 -0
- package/dist/cjs/Form/FieldContainer/QuadrupleFieldContainer.js +18 -0
- package/dist/cjs/Form/FieldContainer/TripleFieldContainer.js +18 -0
- package/dist/cjs/Form/FieldContainer/index.js +19 -0
- package/dist/cjs/Form/FileUpload/index.js +59 -0
- package/dist/cjs/Form/FormButtons/index.js +9 -0
- package/dist/cjs/Form/FormLayout/index.js +11 -0
- package/dist/cjs/Form/SelectField/index.js +102 -0
- package/dist/cjs/Form/TextArea/index.js +41 -0
- package/dist/cjs/Form/TextField/index.js +75 -0
- package/dist/cjs/Form/TimePicker/index.js +36 -0
- package/dist/cjs/Form/YesNo/index.js +22 -0
- package/dist/cjs/Form/index.js +29 -0
- package/dist/cjs/Labels/InfoLabel/index.js +9 -0
- package/dist/cjs/Labels/index.js +17 -0
- package/dist/cjs/Layouts/homeLayout/index.js +14 -0
- package/dist/cjs/Layouts/index.js +17 -0
- package/dist/cjs/LineSeparator/LineSeparator.js +8 -0
- package/dist/cjs/LineSeparator/index.js +17 -0
- package/dist/cjs/Modal/Modal.js +36 -0
- package/dist/cjs/Modal/index.js +17 -0
- package/dist/cjs/NavBar/NavBar.js +36 -0
- package/dist/cjs/NavBar/NavBar.types.js +2 -0
- package/dist/cjs/NavBar/NavBar.utils.js +61 -0
- package/dist/cjs/NavBar/index.js +19 -0
- package/dist/cjs/ProgressBar/ProgressBar.js +9 -0
- package/dist/cjs/ProgressBar/ProgressCircle.js +26 -0
- package/dist/cjs/ProgressBar/index.js +18 -0
- package/dist/cjs/Skeletons/LoadingInputSkeleton.js +12 -0
- package/dist/cjs/Skeletons/index.js +17 -0
- package/dist/cjs/Tab/Tab.js +26 -0
- package/dist/cjs/Tab/index.js +17 -0
- package/dist/cjs/Table/ZauruTable.js +177 -0
- package/dist/cjs/Table/index.js +17 -0
- package/dist/cjs/TaskList/TaskList.js +40 -0
- package/dist/cjs/TaskList/index.js +17 -0
- package/dist/cjs/Titles/LabelArray.js +11 -0
- package/dist/cjs/Titles/TableColumnTitle.js +9 -0
- package/dist/cjs/Titles/TitleH1.js +9 -0
- package/dist/cjs/Titles/TitleH2.js +9 -0
- package/dist/cjs/Titles/TitleH3.js +9 -0
- package/dist/cjs/Titles/index.js +21 -0
- package/dist/cjs/Tooltip/Tooltip.js +18 -0
- package/dist/cjs/Tooltip/index.js +17 -0
- package/dist/cjs/WithTooltip/WithTooltip.js +9 -0
- package/dist/cjs/WithTooltip/index.js +17 -0
- package/dist/cjs/Wizards/StepWizard.js +18 -0
- package/dist/cjs/Wizards/index.js +17 -0
- package/dist/cjs/Zendesk/Chat.js +69 -0
- package/dist/cjs/Zendesk/index.js +18 -0
- package/dist/cjs/Zendesk/zendesk.config.js +31 -0
- package/dist/cjs/index.js +40 -0
- package/dist/cjs/tailwind.config.js +9 -0
- package/dist/esm/Alerts/ErrorBoundaryAlert/ErrorBoundaryAlert.js +5 -0
- package/dist/esm/Alerts/StaticAlert.js +28 -0
- package/dist/esm/Alerts/index.js +2 -0
- package/dist/esm/BlockUI/BlockUI.js +8 -0
- package/dist/esm/BlockUI/index.js +1 -0
- package/dist/esm/Buttons/Button.js +43 -0
- package/dist/esm/Buttons/index.js +1 -0
- package/dist/esm/Card/Card.js +5 -0
- package/dist/esm/Card/index.js +1 -0
- package/dist/esm/Chat/ChatLayout.js +27 -0
- package/dist/esm/Chat/ChatMessageHistory.js +53 -0
- package/dist/esm/Chat/index.js +2 -0
- package/dist/esm/ConnectionState/ConnectionState.js +21 -0
- package/dist/esm/ConnectionState/index.js +1 -0
- package/dist/esm/Containers/BodyContainer.js +5 -0
- package/dist/esm/Containers/ButtonSectionContainer.js +5 -0
- package/dist/esm/Containers/Container.js +6 -0
- package/dist/esm/Containers/DoubleContainer.js +14 -0
- package/dist/esm/Containers/MainContainer.js +5 -0
- package/dist/esm/Containers/OutletContainer.js +5 -0
- package/dist/esm/Containers/SubContainer.js +6 -0
- package/dist/esm/Containers/index.js +7 -0
- package/dist/esm/DynamicTable/BasicPrintDynamicTable.js +27 -0
- package/dist/esm/DynamicTable/DynamicPrintTable.js +131 -0
- package/dist/esm/DynamicTable/DynamicTable.js +192 -0
- package/dist/esm/DynamicTable/GenericDynamicTable.js +196 -0
- package/dist/esm/DynamicTable/index.js +4 -0
- package/dist/esm/Footer/Footer.js +16 -0
- package/dist/esm/Footer/index.js +1 -0
- package/dist/esm/Form/Checkbox/index.js +34 -0
- package/dist/esm/Form/Checklist/index.js +10 -0
- package/dist/esm/Form/DatePicker/index.js +31 -0
- package/dist/esm/Form/DynamicBaculoForm/index.js +140 -0
- package/dist/esm/Form/FieldContainer/DoubleFieldContainer.js +14 -0
- package/dist/esm/Form/FieldContainer/QuadrupleFieldContainer.js +14 -0
- package/dist/esm/Form/FieldContainer/TripleFieldContainer.js +14 -0
- package/dist/esm/Form/FieldContainer/index.js +3 -0
- package/dist/esm/Form/FileUpload/index.js +54 -0
- package/dist/esm/Form/FormButtons/index.js +5 -0
- package/dist/esm/Form/FormLayout/index.js +7 -0
- package/dist/esm/Form/SelectField/index.js +74 -0
- package/dist/esm/Form/TextArea/index.js +36 -0
- package/dist/esm/Form/TextField/index.js +70 -0
- package/dist/esm/Form/TimePicker/index.js +31 -0
- package/dist/esm/Form/YesNo/index.js +18 -0
- package/dist/esm/Form/index.js +13 -0
- package/dist/esm/Labels/InfoLabel/index.js +5 -0
- package/dist/esm/Labels/index.js +1 -0
- package/dist/esm/Layouts/homeLayout/index.js +10 -0
- package/dist/esm/Layouts/index.js +1 -0
- package/dist/esm/LineSeparator/LineSeparator.js +4 -0
- package/dist/esm/LineSeparator/index.js +1 -0
- package/dist/esm/Modal/Modal.js +32 -0
- package/dist/esm/Modal/index.js +1 -0
- package/dist/esm/NavBar/NavBar.js +32 -0
- package/dist/esm/NavBar/NavBar.types.js +1 -0
- package/dist/esm/NavBar/NavBar.utils.js +58 -0
- package/dist/esm/NavBar/index.js +3 -0
- package/dist/esm/ProgressBar/ProgressBar.js +5 -0
- package/dist/esm/ProgressBar/ProgressCircle.js +22 -0
- package/dist/esm/ProgressBar/index.js +2 -0
- package/dist/esm/Skeletons/LoadingInputSkeleton.js +8 -0
- package/dist/esm/Skeletons/index.js +1 -0
- package/dist/esm/Tab/Tab.js +19 -0
- package/dist/esm/Tab/index.js +1 -0
- package/dist/esm/Table/ZauruTable.js +150 -0
- package/dist/esm/Table/index.js +1 -0
- package/dist/esm/TaskList/TaskList.js +35 -0
- package/dist/esm/TaskList/index.js +1 -0
- package/dist/esm/Titles/LabelArray.js +7 -0
- package/dist/esm/Titles/TableColumnTitle.js +5 -0
- package/dist/esm/Titles/TitleH1.js +5 -0
- package/dist/esm/Titles/TitleH2.js +5 -0
- package/dist/esm/Titles/TitleH3.js +5 -0
- package/dist/esm/Titles/index.js +5 -0
- package/dist/esm/Tooltip/Tooltip.js +14 -0
- package/dist/esm/Tooltip/index.js +1 -0
- package/dist/esm/WithTooltip/WithTooltip.js +5 -0
- package/dist/esm/WithTooltip/index.js +1 -0
- package/dist/esm/Wizards/StepWizard.js +14 -0
- package/dist/esm/Wizards/index.js +1 -0
- package/dist/esm/Zendesk/Chat.js +63 -0
- package/dist/esm/Zendesk/index.js +2 -0
- package/dist/esm/Zendesk/zendesk.config.js +24 -0
- package/dist/esm/index.js +24 -0
- package/dist/esm/tailwind.config.js +8 -0
- package/dist/index.d.ts +24 -0
- package/dist/tailwind.config.d.ts +1 -0
- package/package.json +4 -3
- package/src/Table/ZauruTable.tsx +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.0.53](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.52...v1.0.53) (2024-04-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @zauru-sdk/components
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.0.52](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.51...v1.0.52) (2024-04-03)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @zauru-sdk/components
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
className?: string;
|
|
3
|
+
title: string;
|
|
4
|
+
description: any;
|
|
5
|
+
showCloseButton?: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
type?: "success" | "info";
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const StaticAlert: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./BlockUI.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
2
|
+
type Props = {
|
|
3
|
+
type?: "reset" | "button" | "submit" | undefined;
|
|
4
|
+
title?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
onClickSave?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
loadingText?: string;
|
|
9
|
+
selectedColor?: "indigo" | "green" | "red" | "yellow";
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
className?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const Button: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Button.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Card.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FormDocumentType } from "@zauru-sdk/types";
|
|
3
|
+
interface ChatLayoutProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
sendingMessage?: boolean;
|
|
6
|
+
formConfig?: {
|
|
7
|
+
document_type: FormDocumentType;
|
|
8
|
+
form_id: number;
|
|
9
|
+
document_id: number;
|
|
10
|
+
id_number?: string;
|
|
11
|
+
reference?: string;
|
|
12
|
+
attachmentFieldId: number;
|
|
13
|
+
messageFieldId: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export declare const ChatLayout: React.FC<ChatLayoutProps>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
author: string;
|
|
3
|
+
content: string;
|
|
4
|
+
date?: string;
|
|
5
|
+
onLike?: (like: boolean) => void;
|
|
6
|
+
onUpdateComment?: (text: string, itsNew?: boolean) => void;
|
|
7
|
+
id: string;
|
|
8
|
+
commentOwner?: boolean;
|
|
9
|
+
imageLink?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const ChatMessageHistory: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ConnectionState: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ConnectionState.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
rightContent?: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare const Container: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
rightContent?: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare const SubContainer: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./BodyContainer.js";
|
|
2
|
+
export * from "./ButtonSectionContainer.js";
|
|
3
|
+
export * from "./Container.js";
|
|
4
|
+
export * from "./DoubleContainer.js";
|
|
5
|
+
export * from "./MainContainer.js";
|
|
6
|
+
export * from "./OutletContainer.js";
|
|
7
|
+
export * from "./SubContainer.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GenericDynamicTableColumn } from "@zauru-sdk/types";
|
|
2
|
+
export declare const BasicTableHTML: (props: {
|
|
3
|
+
data: {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
}[];
|
|
6
|
+
headers: GenericDynamicTableColumn[];
|
|
7
|
+
footer: {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
};
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { type ReactNode } from "react";
|
|
2
|
+
export type TableStateItem = {
|
|
3
|
+
item_id: string | undefined;
|
|
4
|
+
quantity: number | undefined;
|
|
5
|
+
};
|
|
6
|
+
export type FormatedItem = {
|
|
7
|
+
label: string;
|
|
8
|
+
value: number;
|
|
9
|
+
template: string;
|
|
10
|
+
};
|
|
11
|
+
type Props = {
|
|
12
|
+
name: string;
|
|
13
|
+
formName?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
items: FormatedItem[];
|
|
16
|
+
onChange?: (tableState?: TableStateItem[]) => void;
|
|
17
|
+
forwardedRef?: React.RefObject<{
|
|
18
|
+
insertItems: (items: FormatedItem[]) => void;
|
|
19
|
+
getTableState: (updatedData?: ReactNode[][]) => TableStateItem[] | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
export declare const DynamicPrintTable: ({ forwardedRef, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
cellInputs?: boolean;
|
|
4
|
+
intersectionTitle?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
onChange?: (data: string) => void;
|
|
7
|
+
defaultValue?: string;
|
|
8
|
+
onValidate?: (headerValue: string, rowValue: string) => boolean;
|
|
9
|
+
onRemove?: () => void;
|
|
10
|
+
margins?: {
|
|
11
|
+
marginLeft?: number;
|
|
12
|
+
marginTop?: number;
|
|
13
|
+
verticalGap?: number;
|
|
14
|
+
horizontalGap?: number;
|
|
15
|
+
};
|
|
16
|
+
forwardedRef?: React.RefObject<{
|
|
17
|
+
getTotalForRows: () => number;
|
|
18
|
+
getTotalForColumns: () => number;
|
|
19
|
+
getColumnsCount: () => number;
|
|
20
|
+
getRowsCount: () => number;
|
|
21
|
+
}>;
|
|
22
|
+
};
|
|
23
|
+
export declare const DynamicTable: ({ forwardedRef, ...props }: Props, ref: React.ForwardedRef<any>) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { GenericDynamicTableColumn, RowDataType, SelectFieldOption } from "@zauru-sdk/types";
|
|
3
|
+
type Props = {
|
|
4
|
+
name?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
columns: GenericDynamicTableColumn[];
|
|
7
|
+
onChange?: (tableState?: any[]) => void;
|
|
8
|
+
defaultValue?: RowDataType[];
|
|
9
|
+
footerRow?: RowDataType;
|
|
10
|
+
thCSSProperties?: React.CSSProperties;
|
|
11
|
+
thElementsClassName?: string;
|
|
12
|
+
editable?: boolean;
|
|
13
|
+
searcheables?: SelectFieldOption[];
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
paginated?: boolean;
|
|
16
|
+
defaultItemsPerPage?: number;
|
|
17
|
+
itemsPerPageOptions?: number[];
|
|
18
|
+
withoutBg?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare const GenericDynamicTable: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type FooterProps = {
|
|
2
|
+
href: string;
|
|
3
|
+
showConnection?: boolean;
|
|
4
|
+
selectedColor: "purple" | "pink" | "indigo" | "cyan" | "slate" | "green" | "red" | "sky";
|
|
5
|
+
};
|
|
6
|
+
export declare const Footer: ({ href, selectedColor, showConnection, }: FooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Footer.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
id?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
formName?: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
defaultValue?: boolean;
|
|
8
|
+
onChange?: (value: boolean, event: React.ChangeEvent<HTMLInputElement>) => {
|
|
9
|
+
stopUIChange: boolean;
|
|
10
|
+
} | void;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
error?: string | undefined;
|
|
13
|
+
borderColor?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const CheckboxWithoutValidation: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const CheckBox: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ChecklistItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
label: string;
|
|
6
|
+
defaultValue?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type ChecklistProps = {
|
|
10
|
+
items: ChecklistItem[];
|
|
11
|
+
onChange?: (name: string, value: boolean) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const Checklist: React.FC<ChecklistProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
id?: string;
|
|
3
|
+
name: string;
|
|
4
|
+
formName?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
hint?: string;
|
|
7
|
+
helpText?: string;
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
onChange?: (value: string) => void;
|
|
10
|
+
isClearable?: boolean;
|
|
11
|
+
tabIndex?: number;
|
|
12
|
+
error?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const FormDatePickerWithoutValidation: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const FormDatePicker: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FormGraphQL, FormSubmissionValueGraphQL } from "@zauru-sdk/types";
|
|
2
|
+
type Props = {
|
|
3
|
+
formName?: string;
|
|
4
|
+
form?: FormGraphQL;
|
|
5
|
+
options?: {
|
|
6
|
+
showTitle: boolean;
|
|
7
|
+
showDescription: boolean;
|
|
8
|
+
};
|
|
9
|
+
defaultValues?: FormSubmissionValueGraphQL[];
|
|
10
|
+
namesStr?: string;
|
|
11
|
+
showingRules?: {
|
|
12
|
+
name: string;
|
|
13
|
+
show: boolean;
|
|
14
|
+
}[];
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare function DynamicBaculoForm(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
id?: string;
|
|
4
|
+
name: string;
|
|
5
|
+
formName?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
helpText?: string;
|
|
8
|
+
hint?: string;
|
|
9
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
readOnly?: boolean;
|
|
12
|
+
error?: string | undefined;
|
|
13
|
+
fileTypes?: string[];
|
|
14
|
+
showAvailableTypes?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
defaultValue?: string | File;
|
|
17
|
+
download?: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare const FileUploadFieldWithoutValidation: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const FileUploadField: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
saveTitle?: string;
|
|
4
|
+
saveName?: string;
|
|
5
|
+
onClickSave?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
6
|
+
showCancel?: boolean;
|
|
7
|
+
cancelTitle?: string;
|
|
8
|
+
cancelName?: string;
|
|
9
|
+
showClear?: boolean;
|
|
10
|
+
clearTitle?: string;
|
|
11
|
+
clearName?: string;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
loadingSaveText?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const FormButtons: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type FormMethod } from "@remix-run/react";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
type Props = {
|
|
4
|
+
formId: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
buttons?: ReactNode;
|
|
8
|
+
method?: FormMethod;
|
|
9
|
+
};
|
|
10
|
+
export declare const FormLayout: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SelectFieldOption } from "@zauru-sdk/types";
|
|
2
|
+
import type { SingleValue, InputActionMeta } from "react-select";
|
|
3
|
+
type Props = {
|
|
4
|
+
id?: string;
|
|
5
|
+
formName?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
defaultValue?: SingleValue<SelectFieldOption>;
|
|
9
|
+
defaultValueMulti?: SingleValue<SelectFieldOption>[];
|
|
10
|
+
helpText?: string;
|
|
11
|
+
options: Array<SelectFieldOption>;
|
|
12
|
+
onChange?: (value: SingleValue<SelectFieldOption>) => void;
|
|
13
|
+
onChangeMulti?: (value: Array<SingleValue<SelectFieldOption>>) => void;
|
|
14
|
+
onInputChange?: (newValue: string, actionMeta: InputActionMeta) => void;
|
|
15
|
+
isClearable?: boolean;
|
|
16
|
+
error?: string | undefined;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
menuIsOpen?: boolean;
|
|
19
|
+
readOnly?: boolean;
|
|
20
|
+
isMulti?: boolean;
|
|
21
|
+
loading?: boolean;
|
|
22
|
+
hint?: string;
|
|
23
|
+
className?: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const SelectFieldWithoutValidation: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare const SelectField: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
id?: string;
|
|
4
|
+
name: string;
|
|
5
|
+
formName?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
defaultValue?: string | number;
|
|
8
|
+
hidden?: boolean;
|
|
9
|
+
hint?: string;
|
|
10
|
+
helpText?: string;
|
|
11
|
+
onChange?: (value: string) => void;
|
|
12
|
+
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
readOnly?: boolean;
|
|
15
|
+
error?: string | undefined;
|
|
16
|
+
rows?: number;
|
|
17
|
+
cols?: number;
|
|
18
|
+
stopChangeEvents?: boolean;
|
|
19
|
+
className?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const TextAreaWithoutValidation: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const TextArea: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
id?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
formName?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
defaultValue?: string | number;
|
|
8
|
+
hidden?: boolean;
|
|
9
|
+
type?: React.HTMLInputTypeAttribute;
|
|
10
|
+
helpText?: string;
|
|
11
|
+
hint?: string;
|
|
12
|
+
onChange?: (value: string, event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
13
|
+
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
error?: string;
|
|
17
|
+
min?: string | number;
|
|
18
|
+
integer?: boolean;
|
|
19
|
+
stopChangeEvents?: boolean;
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
className?: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const TextFieldWithoutValidation: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const TextField: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
id?: string;
|
|
3
|
+
name: string;
|
|
4
|
+
formName?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
hint?: string;
|
|
7
|
+
helpText?: string;
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
onChange?: (value: string) => void;
|
|
10
|
+
tabIndex?: number;
|
|
11
|
+
error?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const FormTimePickerWithoutValidation: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const FormTimePicker: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
id?: string;
|
|
3
|
+
name: string;
|
|
4
|
+
formName?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
defaultValue?: boolean;
|
|
7
|
+
helpText?: string;
|
|
8
|
+
onChange?: (value: boolean) => void;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const YesNo: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./Checkbox/index.js";
|
|
2
|
+
export * from "./Checklist/index.js";
|
|
3
|
+
export * from "./DatePicker/index.js";
|
|
4
|
+
export * from "./DynamicBaculoForm/index.js";
|
|
5
|
+
export * from "./FieldContainer/index.js";
|
|
6
|
+
export * from "./FileUpload/index.js";
|
|
7
|
+
export * from "./FormButtons/index.js";
|
|
8
|
+
export * from "./FormLayout/index.js";
|
|
9
|
+
export * from "./SelectField/index.js";
|
|
10
|
+
export * from "./TextArea/index.js";
|
|
11
|
+
export * from "./TextField/index.js";
|
|
12
|
+
export * from "./TimePicker/index.js";
|
|
13
|
+
export * from "./YesNo/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./InfoLabel/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./homeLayout/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LineSeparator: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./LineSeparator.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ModalOption = "OK" | "CANCEL" | null;
|
|
3
|
+
type ModalParams = {
|
|
4
|
+
title: string;
|
|
5
|
+
description: React.ReactNode;
|
|
6
|
+
okButtonText?: string;
|
|
7
|
+
showOptions?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const createModal: ({ title, description, okButtonText, showOptions, }: ModalParams) => Promise<ModalOption>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Modal.js";
|