@confidencesystemsinc/sdk 1.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 +54 -0
- package/dist/components/badge.d.ts +54 -0
- package/dist/components/initiate-playbook-modal/InitiatePlaybookModal.d.ts +6 -0
- package/dist/components/playbook/confidence-playbook.d.ts +26 -0
- package/dist/components/playbook/playbook-header.d.ts +3 -0
- package/dist/components/playbook-button/ConfidencePlaybookButton.d.ts +8 -0
- package/dist/components/task/confidence-task.d.ts +17 -0
- package/dist/components/task/task-buttons.d.ts +5 -0
- package/dist/components/task/task-dropdown-badge.d.ts +18 -0
- package/dist/components/task/task-left-panel.d.ts +10 -0
- package/dist/components/task/task-status-badge.d.ts +9 -0
- package/dist/components/ui/button.d.ts +38 -0
- package/dist/components/ui/header.d.ts +1 -0
- package/dist/components/ui/input.d.ts +9 -0
- package/dist/components/ui/modal.d.ts +16 -0
- package/dist/constants/settings.constants.d.ts +2 -0
- package/dist/hooks/task-events/useCompleteTask.d.ts +99 -0
- package/dist/hooks/task-events/useStartTask.d.ts +99 -0
- package/dist/hooks/usePlaybook.d.ts +10 -0
- package/dist/hooks/usePlaybookActions.d.ts +6 -0
- package/dist/hooks/useTaskButtons.d.ts +17 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/sdk.cjs +604 -0
- package/dist/sdk.js +12079 -0
- package/dist/services/complete-task.service.d.ts +4 -0
- package/dist/services/initiate-playbook.service.d.ts +11 -0
- package/dist/services/start-task.services.d.ts +4 -0
- package/dist/stories/initiate-playbook-modal.stories.d.ts +19 -0
- package/dist/stories/modal.stories.d.ts +28 -0
- package/dist/stories/playbook-container.stories.d.ts +55 -0
- package/dist/types/playbook.types.d.ts +20 -0
- package/dist/types/task.types.d.ts +18 -0
- package/dist/utils/cn.d.ts +2 -0
- package/dist/vite.svg +1 -0
- package/package.json +66 -0
- package/src/App.css +2 -0
- package/src/components/badge.tsx +116 -0
- package/src/components/initiate-playbook-modal/InitiatePlaybookModal.tsx +53 -0
- package/src/components/playbook/confidence-playbook.tsx +193 -0
- package/src/components/playbook/playbook-header.tsx +13 -0
- package/src/components/playbook-button/ConfidencePlaybookButton.tsx +73 -0
- package/src/components/task/confidence-task.tsx +198 -0
- package/src/components/task/task-buttons.tsx +32 -0
- package/src/components/task/task-dropdown-badge.tsx +121 -0
- package/src/components/task/task-left-panel.tsx +60 -0
- package/src/components/task/task-status-badge.tsx +23 -0
- package/src/components/ui/button.tsx +269 -0
- package/src/components/ui/header.tsx +12 -0
- package/src/components/ui/input.tsx +39 -0
- package/src/components/ui/modal.tsx +88 -0
- package/src/constants/settings.constants.ts +2 -0
- package/src/hooks/task-events/useCompleteTask.ts +26 -0
- package/src/hooks/task-events/useStartTask.ts +29 -0
- package/src/hooks/usePlaybook.ts +48 -0
- package/src/hooks/usePlaybookActions.ts +69 -0
- package/src/hooks/useTaskButtons.ts +46 -0
- package/src/index.ts +6 -0
- package/src/services/complete-task.service.ts +21 -0
- package/src/services/initiate-playbook.service.ts +24 -0
- package/src/services/start-task.services.ts +23 -0
- package/src/stories/initiate-playbook-modal.stories.tsx +31 -0
- package/src/stories/modal.stories.tsx +50 -0
- package/src/stories/playbook-container.stories.tsx +79 -0
- package/src/types/playbook.types.ts +22 -0
- package/src/types/task.types.ts +20 -0
- package/src/utils/cn.ts +6 -0
- package/src/vite-env.d.ts +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# React + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
+
|
|
5
|
+
Currently, two official plugins are available:
|
|
6
|
+
|
|
7
|
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
|
|
8
|
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
9
|
+
|
|
10
|
+
## Expanding the ESLint configuration
|
|
11
|
+
|
|
12
|
+
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
export default tseslint.config({
|
|
16
|
+
extends: [
|
|
17
|
+
// Remove ...tseslint.configs.recommended and replace with this
|
|
18
|
+
...tseslint.configs.recommendedTypeChecked,
|
|
19
|
+
// Alternatively, use this for stricter rules
|
|
20
|
+
...tseslint.configs.strictTypeChecked,
|
|
21
|
+
// Optionally, add this for stylistic rules
|
|
22
|
+
...tseslint.configs.stylisticTypeChecked,
|
|
23
|
+
],
|
|
24
|
+
languageOptions: {
|
|
25
|
+
// other options...
|
|
26
|
+
parserOptions: {
|
|
27
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
28
|
+
tsconfigRootDir: import.meta.dirname,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
})
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
|
|
35
|
+
|
|
36
|
+
```js
|
|
37
|
+
// eslint.config.js
|
|
38
|
+
import reactX from 'eslint-plugin-react-x'
|
|
39
|
+
import reactDom from 'eslint-plugin-react-dom'
|
|
40
|
+
|
|
41
|
+
export default tseslint.config({
|
|
42
|
+
plugins: {
|
|
43
|
+
// Add the react-x and react-dom plugins
|
|
44
|
+
'react-x': reactX,
|
|
45
|
+
'react-dom': reactDom,
|
|
46
|
+
},
|
|
47
|
+
rules: {
|
|
48
|
+
// other rules...
|
|
49
|
+
// Enable its recommended typescript rules
|
|
50
|
+
...reactX.configs['recommended-typescript'].rules,
|
|
51
|
+
...reactDom.configs.recommended.rules,
|
|
52
|
+
},
|
|
53
|
+
})
|
|
54
|
+
```
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export declare const BadgeSolid: {
|
|
3
|
+
readonly white: "bg-white text-dark-300 border border-gray-300";
|
|
4
|
+
readonly primary: "bg-primary-600";
|
|
5
|
+
readonly secondary: "bg-secondary-500";
|
|
6
|
+
readonly success: "bg-success-600";
|
|
7
|
+
readonly info: "bg-info-500";
|
|
8
|
+
readonly warning: "bg-warning-500 text-gray-800";
|
|
9
|
+
readonly danger: "bg-danger-500";
|
|
10
|
+
readonly steel: "bg-steel-500";
|
|
11
|
+
readonly orange: "bg-orange-500";
|
|
12
|
+
readonly purple: "bg-purple-500";
|
|
13
|
+
readonly grayDark: "bg-gray-900";
|
|
14
|
+
readonly grayLight: "bg-gray-100 text-gray-800";
|
|
15
|
+
};
|
|
16
|
+
export declare const BadgeOutline: {
|
|
17
|
+
readonly white: "text-white border border-white";
|
|
18
|
+
readonly primary: "text-primary-600 border border-primary-600";
|
|
19
|
+
readonly secondary: "text-secondary-500 border border-secondary-500";
|
|
20
|
+
readonly success: "text-success-600 border border-success-600";
|
|
21
|
+
readonly info: "text-info-500 border border-info-500";
|
|
22
|
+
readonly warning: "text-warning-500 border border-warning-500";
|
|
23
|
+
readonly danger: "text-danger-500 border border-danger-500";
|
|
24
|
+
readonly steel: "text-steel-500 border border-steel-500";
|
|
25
|
+
readonly orange: "text-orange-500 border border-orange-500";
|
|
26
|
+
readonly purple: "text-purple-500 border border-purple-500";
|
|
27
|
+
readonly grayDark: "text-gray-700 border border-gray-700";
|
|
28
|
+
readonly grayLight: "text-gray-500 border border-gray-100";
|
|
29
|
+
};
|
|
30
|
+
export declare const BadgeRoundness: {
|
|
31
|
+
readonly normal: "rounded";
|
|
32
|
+
readonly pill: "rounded-pill";
|
|
33
|
+
};
|
|
34
|
+
declare const BadgeSize: {
|
|
35
|
+
readonly big: "h-[24px] leading-[24px] text-md px-1";
|
|
36
|
+
readonly medium: "h-[22px] leading-[22px] text-sm px-[2px]";
|
|
37
|
+
readonly small: "h-[18px] leading-[18px] text-xs px-[2px]";
|
|
38
|
+
};
|
|
39
|
+
export interface BadgeProps extends ComponentPropsWithoutRef<"div"> {
|
|
40
|
+
category?: "solid" | "outline";
|
|
41
|
+
color?: keyof typeof BadgeSolid;
|
|
42
|
+
roundness?: keyof typeof BadgeRoundness;
|
|
43
|
+
size?: keyof typeof BadgeSize;
|
|
44
|
+
textClassName?: string;
|
|
45
|
+
children: React.ReactNode;
|
|
46
|
+
onClose?: () => void;
|
|
47
|
+
onArrowClick?: () => void;
|
|
48
|
+
className?: string;
|
|
49
|
+
onCustomIconClick?: () => void;
|
|
50
|
+
arrowTitle?: string;
|
|
51
|
+
closeTitle?: string;
|
|
52
|
+
}
|
|
53
|
+
export declare const Badge: ({ category, color, roundness, size, textClassName, children, className, ...rest }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TaskButton } from '../../hooks/useTaskButtons';
|
|
3
|
+
import { Playbook } from '../../types/playbook.types';
|
|
4
|
+
export declare const ConfidencePlaybook: {
|
|
5
|
+
({ playbookInstanceId, viewMode, }: {
|
|
6
|
+
playbookInstanceId: string | number;
|
|
7
|
+
viewMode: "list" | "card";
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
Context: ({ children }: {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
View: ({ playbook, viewMode, onTaskButtonClick, }: {
|
|
13
|
+
viewMode: "list" | "card";
|
|
14
|
+
playbook: Playbook;
|
|
15
|
+
onTaskButtonClick: (btn: TaskButton, taskId: number) => void;
|
|
16
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
TasksContainer: ({ className, children, }: {
|
|
18
|
+
className?: string;
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
AutoInstantiated: ({ email, playbookId, viewMode, }: {
|
|
22
|
+
email: string;
|
|
23
|
+
playbookId: string;
|
|
24
|
+
viewMode: "list" | "card";
|
|
25
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ButtonSizeType } from '../ui/button';
|
|
2
|
+
export declare const ConfidencePlaybookButton: ({ btnClassName, buttonNode, size, playbookId, onInitiated, }: {
|
|
3
|
+
btnClassName?: string;
|
|
4
|
+
buttonNode?: React.ReactNode;
|
|
5
|
+
size?: ButtonSizeType;
|
|
6
|
+
playbookId: string;
|
|
7
|
+
onInitiated: (playbookInstanceId: number) => void;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TaskButton } from '../../hooks/useTaskButtons';
|
|
2
|
+
import { PlaybookType } from '../../types/playbook.types';
|
|
3
|
+
import { Task } from '../../types/task.types';
|
|
4
|
+
declare const TASK_VERIFICATION_TYPE: {
|
|
5
|
+
readonly PHOTO: "photo";
|
|
6
|
+
readonly SCREENSHOT: "screenshot";
|
|
7
|
+
};
|
|
8
|
+
export type TaskVerificationType = (typeof TASK_VERIFICATION_TYPE)[keyof typeof TASK_VERIFICATION_TYPE];
|
|
9
|
+
export declare const ConfidenceTask: ({ task, step, playbookType, onButtonClick, viewMode, canStart, }: {
|
|
10
|
+
task: Task;
|
|
11
|
+
playbookType: PlaybookType;
|
|
12
|
+
step: number;
|
|
13
|
+
onButtonClick: (buttonType: TaskButton) => void;
|
|
14
|
+
viewMode?: "card" | "list";
|
|
15
|
+
canStart?: boolean;
|
|
16
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const TASK_DROPDOWN_BADGE_VARIANTS: {
|
|
2
|
+
readonly default: "text-secondary-600 border-secondary-600";
|
|
3
|
+
readonly primary: "text-primary-600 border-primary-600";
|
|
4
|
+
readonly success: "text-success-600 border-success-600";
|
|
5
|
+
};
|
|
6
|
+
interface TaskDropdownBadgeProps {
|
|
7
|
+
title: string;
|
|
8
|
+
variant?: keyof typeof TASK_DROPDOWN_BADGE_VARIANTS;
|
|
9
|
+
transitions: {
|
|
10
|
+
id: string;
|
|
11
|
+
color: "primary" | "success";
|
|
12
|
+
action: string;
|
|
13
|
+
to: string;
|
|
14
|
+
}[];
|
|
15
|
+
onClick?: (action: string) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const TaskDropdownBadge: ({ title, variant, transitions, onClick, }: TaskDropdownBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TaskStatus } from '../../types/task.types';
|
|
2
|
+
import { PlaybookType } from '../../types/playbook.types';
|
|
3
|
+
export interface TaskCardV2LeftPanelProps {
|
|
4
|
+
playbookType: PlaybookType;
|
|
5
|
+
status: TaskStatus;
|
|
6
|
+
step: number;
|
|
7
|
+
isSelected?: boolean;
|
|
8
|
+
onSelect?: (withShiftKey?: boolean) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const TaskLeftPanel: ({ playbookType, status, step, isSelected, onSelect, }: TaskCardV2LeftPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TaskStatus } from '../../types/task.types';
|
|
2
|
+
import { BadgeSolid } from '../badge';
|
|
3
|
+
export interface TaskCardV2StatusBadgeProps {
|
|
4
|
+
status: TaskStatus;
|
|
5
|
+
}
|
|
6
|
+
export declare const STATUS_BADGE_COLOR: {
|
|
7
|
+
[key in TaskStatus]?: keyof typeof BadgeSolid;
|
|
8
|
+
};
|
|
9
|
+
export declare const TaskStatusBadge: ({ status }: TaskCardV2StatusBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ReactNode, ButtonHTMLAttributes, CSSProperties } from 'react';
|
|
2
|
+
export type ButtonCategoryType = "solid" | "link" | "linkHoverSolid" | "outline";
|
|
3
|
+
export declare const ButtonSize: {
|
|
4
|
+
readonly none: "";
|
|
5
|
+
readonly default: "min-w-fit h-[40px] text-base px-3";
|
|
6
|
+
readonly base: "w-full md:min-w-fit h-[40px] text-base px-3";
|
|
7
|
+
readonly small: "min-w-[106px] h-[30px] text-sm px-2";
|
|
8
|
+
readonly normal: "min-w-[140px] h-[38px] text-base px-3";
|
|
9
|
+
readonly large: "min-w-[160px] h-[40px] text-lg px-3";
|
|
10
|
+
readonly NormalBlock: "w-full h-[40px] text-lg px-3";
|
|
11
|
+
readonly box: "w-[38px] h-[38px]";
|
|
12
|
+
readonly smallCollapse: "h-[30px] text-sm px-2";
|
|
13
|
+
readonly normalCollapse: "h-[38px] text-base px-3";
|
|
14
|
+
};
|
|
15
|
+
export type ButtonSizeType = keyof typeof ButtonSize;
|
|
16
|
+
export declare const ButtonRounded: {
|
|
17
|
+
readonly none: "";
|
|
18
|
+
readonly default: "rounded";
|
|
19
|
+
readonly pill: "rounded-pill";
|
|
20
|
+
};
|
|
21
|
+
export type ButtonRoundedType = keyof typeof ButtonRounded;
|
|
22
|
+
export interface ButtonProps extends ButtonHTMLAttributes<Omit<HTMLButtonElement, "type">> {
|
|
23
|
+
active?: boolean;
|
|
24
|
+
children: ReactNode;
|
|
25
|
+
color?: string;
|
|
26
|
+
size?: ButtonSizeType;
|
|
27
|
+
category?: "solid" | "link" | "outline" | "linkHoverSolid";
|
|
28
|
+
type?: "button" | "submit";
|
|
29
|
+
rounded?: ButtonRoundedType;
|
|
30
|
+
className?: string;
|
|
31
|
+
useFilterStyle?: boolean;
|
|
32
|
+
usePaginationStyle?: boolean;
|
|
33
|
+
dataCy?: string;
|
|
34
|
+
testingIdKey?: string;
|
|
35
|
+
style?: CSSProperties;
|
|
36
|
+
}
|
|
37
|
+
declare const Button: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
38
|
+
export default Button;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Header: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
2
|
+
type?: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const InputField: ({ type, className, label, description, ...props }: InputProps & {
|
|
7
|
+
className?: string;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const Modal: ({ isOpen, close, title, dismissOptions, confirmOptions, children, }: {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
close: () => void;
|
|
5
|
+
title: string;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
dismissOptions?: {
|
|
8
|
+
label: string;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
};
|
|
11
|
+
confirmOptions?: {
|
|
12
|
+
label: string;
|
|
13
|
+
onClick: () => void;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
};
|
|
16
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export declare const useCompleteTask: () => {
|
|
2
|
+
data: undefined;
|
|
3
|
+
variables: undefined;
|
|
4
|
+
error: null;
|
|
5
|
+
isError: false;
|
|
6
|
+
isIdle: true;
|
|
7
|
+
isPending: false;
|
|
8
|
+
isSuccess: false;
|
|
9
|
+
status: "idle";
|
|
10
|
+
mutate: import('@tanstack/react-query').UseMutateFunction<{
|
|
11
|
+
status: import('../../types/task.types').TaskStatus;
|
|
12
|
+
}, Error, string, unknown>;
|
|
13
|
+
reset: () => void;
|
|
14
|
+
context: unknown;
|
|
15
|
+
failureCount: number;
|
|
16
|
+
failureReason: Error | null;
|
|
17
|
+
isPaused: boolean;
|
|
18
|
+
submittedAt: number;
|
|
19
|
+
mutateAsync: import('@tanstack/react-query').UseMutateAsyncFunction<{
|
|
20
|
+
status: import('../../types/task.types').TaskStatus;
|
|
21
|
+
}, Error, string, unknown>;
|
|
22
|
+
completeTask: (taskInstanceId: string) => Promise<{
|
|
23
|
+
status: import('../../types/task.types').TaskStatus;
|
|
24
|
+
}>;
|
|
25
|
+
} | {
|
|
26
|
+
data: undefined;
|
|
27
|
+
variables: string;
|
|
28
|
+
error: null;
|
|
29
|
+
isError: false;
|
|
30
|
+
isIdle: false;
|
|
31
|
+
isPending: true;
|
|
32
|
+
isSuccess: false;
|
|
33
|
+
status: "pending";
|
|
34
|
+
mutate: import('@tanstack/react-query').UseMutateFunction<{
|
|
35
|
+
status: import('../../types/task.types').TaskStatus;
|
|
36
|
+
}, Error, string, unknown>;
|
|
37
|
+
reset: () => void;
|
|
38
|
+
context: unknown;
|
|
39
|
+
failureCount: number;
|
|
40
|
+
failureReason: Error | null;
|
|
41
|
+
isPaused: boolean;
|
|
42
|
+
submittedAt: number;
|
|
43
|
+
mutateAsync: import('@tanstack/react-query').UseMutateAsyncFunction<{
|
|
44
|
+
status: import('../../types/task.types').TaskStatus;
|
|
45
|
+
}, Error, string, unknown>;
|
|
46
|
+
completeTask: (taskInstanceId: string) => Promise<{
|
|
47
|
+
status: import('../../types/task.types').TaskStatus;
|
|
48
|
+
}>;
|
|
49
|
+
} | {
|
|
50
|
+
data: undefined;
|
|
51
|
+
error: Error;
|
|
52
|
+
variables: string;
|
|
53
|
+
isError: true;
|
|
54
|
+
isIdle: false;
|
|
55
|
+
isPending: false;
|
|
56
|
+
isSuccess: false;
|
|
57
|
+
status: "error";
|
|
58
|
+
mutate: import('@tanstack/react-query').UseMutateFunction<{
|
|
59
|
+
status: import('../../types/task.types').TaskStatus;
|
|
60
|
+
}, Error, string, unknown>;
|
|
61
|
+
reset: () => void;
|
|
62
|
+
context: unknown;
|
|
63
|
+
failureCount: number;
|
|
64
|
+
failureReason: Error | null;
|
|
65
|
+
isPaused: boolean;
|
|
66
|
+
submittedAt: number;
|
|
67
|
+
mutateAsync: import('@tanstack/react-query').UseMutateAsyncFunction<{
|
|
68
|
+
status: import('../../types/task.types').TaskStatus;
|
|
69
|
+
}, Error, string, unknown>;
|
|
70
|
+
completeTask: (taskInstanceId: string) => Promise<{
|
|
71
|
+
status: import('../../types/task.types').TaskStatus;
|
|
72
|
+
}>;
|
|
73
|
+
} | {
|
|
74
|
+
data: {
|
|
75
|
+
status: import('../../types/task.types').TaskStatus;
|
|
76
|
+
};
|
|
77
|
+
error: null;
|
|
78
|
+
variables: string;
|
|
79
|
+
isError: false;
|
|
80
|
+
isIdle: false;
|
|
81
|
+
isPending: false;
|
|
82
|
+
isSuccess: true;
|
|
83
|
+
status: "success";
|
|
84
|
+
mutate: import('@tanstack/react-query').UseMutateFunction<{
|
|
85
|
+
status: import('../../types/task.types').TaskStatus;
|
|
86
|
+
}, Error, string, unknown>;
|
|
87
|
+
reset: () => void;
|
|
88
|
+
context: unknown;
|
|
89
|
+
failureCount: number;
|
|
90
|
+
failureReason: Error | null;
|
|
91
|
+
isPaused: boolean;
|
|
92
|
+
submittedAt: number;
|
|
93
|
+
mutateAsync: import('@tanstack/react-query').UseMutateAsyncFunction<{
|
|
94
|
+
status: import('../../types/task.types').TaskStatus;
|
|
95
|
+
}, Error, string, unknown>;
|
|
96
|
+
completeTask: (taskInstanceId: string) => Promise<{
|
|
97
|
+
status: import('../../types/task.types').TaskStatus;
|
|
98
|
+
}>;
|
|
99
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export declare const useStartTask: () => {
|
|
2
|
+
data: undefined;
|
|
3
|
+
variables: undefined;
|
|
4
|
+
error: null;
|
|
5
|
+
isError: false;
|
|
6
|
+
isIdle: true;
|
|
7
|
+
isPending: false;
|
|
8
|
+
isSuccess: false;
|
|
9
|
+
status: "idle";
|
|
10
|
+
mutate: import('@tanstack/react-query').UseMutateFunction<{
|
|
11
|
+
status: import('../../types/task.types').TaskStatus;
|
|
12
|
+
}, Error, string, unknown>;
|
|
13
|
+
reset: () => void;
|
|
14
|
+
context: unknown;
|
|
15
|
+
failureCount: number;
|
|
16
|
+
failureReason: Error | null;
|
|
17
|
+
isPaused: boolean;
|
|
18
|
+
submittedAt: number;
|
|
19
|
+
mutateAsync: import('@tanstack/react-query').UseMutateAsyncFunction<{
|
|
20
|
+
status: import('../../types/task.types').TaskStatus;
|
|
21
|
+
}, Error, string, unknown>;
|
|
22
|
+
startTask: (taskInstanceId: string) => Promise<{
|
|
23
|
+
status: import('../../types/task.types').TaskStatus;
|
|
24
|
+
}>;
|
|
25
|
+
} | {
|
|
26
|
+
data: undefined;
|
|
27
|
+
variables: string;
|
|
28
|
+
error: null;
|
|
29
|
+
isError: false;
|
|
30
|
+
isIdle: false;
|
|
31
|
+
isPending: true;
|
|
32
|
+
isSuccess: false;
|
|
33
|
+
status: "pending";
|
|
34
|
+
mutate: import('@tanstack/react-query').UseMutateFunction<{
|
|
35
|
+
status: import('../../types/task.types').TaskStatus;
|
|
36
|
+
}, Error, string, unknown>;
|
|
37
|
+
reset: () => void;
|
|
38
|
+
context: unknown;
|
|
39
|
+
failureCount: number;
|
|
40
|
+
failureReason: Error | null;
|
|
41
|
+
isPaused: boolean;
|
|
42
|
+
submittedAt: number;
|
|
43
|
+
mutateAsync: import('@tanstack/react-query').UseMutateAsyncFunction<{
|
|
44
|
+
status: import('../../types/task.types').TaskStatus;
|
|
45
|
+
}, Error, string, unknown>;
|
|
46
|
+
startTask: (taskInstanceId: string) => Promise<{
|
|
47
|
+
status: import('../../types/task.types').TaskStatus;
|
|
48
|
+
}>;
|
|
49
|
+
} | {
|
|
50
|
+
data: undefined;
|
|
51
|
+
error: Error;
|
|
52
|
+
variables: string;
|
|
53
|
+
isError: true;
|
|
54
|
+
isIdle: false;
|
|
55
|
+
isPending: false;
|
|
56
|
+
isSuccess: false;
|
|
57
|
+
status: "error";
|
|
58
|
+
mutate: import('@tanstack/react-query').UseMutateFunction<{
|
|
59
|
+
status: import('../../types/task.types').TaskStatus;
|
|
60
|
+
}, Error, string, unknown>;
|
|
61
|
+
reset: () => void;
|
|
62
|
+
context: unknown;
|
|
63
|
+
failureCount: number;
|
|
64
|
+
failureReason: Error | null;
|
|
65
|
+
isPaused: boolean;
|
|
66
|
+
submittedAt: number;
|
|
67
|
+
mutateAsync: import('@tanstack/react-query').UseMutateAsyncFunction<{
|
|
68
|
+
status: import('../../types/task.types').TaskStatus;
|
|
69
|
+
}, Error, string, unknown>;
|
|
70
|
+
startTask: (taskInstanceId: string) => Promise<{
|
|
71
|
+
status: import('../../types/task.types').TaskStatus;
|
|
72
|
+
}>;
|
|
73
|
+
} | {
|
|
74
|
+
data: {
|
|
75
|
+
status: import('../../types/task.types').TaskStatus;
|
|
76
|
+
};
|
|
77
|
+
error: null;
|
|
78
|
+
variables: string;
|
|
79
|
+
isError: false;
|
|
80
|
+
isIdle: false;
|
|
81
|
+
isPending: false;
|
|
82
|
+
isSuccess: true;
|
|
83
|
+
status: "success";
|
|
84
|
+
mutate: import('@tanstack/react-query').UseMutateFunction<{
|
|
85
|
+
status: import('../../types/task.types').TaskStatus;
|
|
86
|
+
}, Error, string, unknown>;
|
|
87
|
+
reset: () => void;
|
|
88
|
+
context: unknown;
|
|
89
|
+
failureCount: number;
|
|
90
|
+
failureReason: Error | null;
|
|
91
|
+
isPaused: boolean;
|
|
92
|
+
submittedAt: number;
|
|
93
|
+
mutateAsync: import('@tanstack/react-query').UseMutateAsyncFunction<{
|
|
94
|
+
status: import('../../types/task.types').TaskStatus;
|
|
95
|
+
}, Error, string, unknown>;
|
|
96
|
+
startTask: (taskInstanceId: string) => Promise<{
|
|
97
|
+
status: import('../../types/task.types').TaskStatus;
|
|
98
|
+
}>;
|
|
99
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Playbook } from '../types/playbook.types';
|
|
2
|
+
export declare const usePlaybook: (playbookInstanceId: number | string) => {
|
|
3
|
+
playbook: Playbook;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
error: Error | null;
|
|
6
|
+
actions: {
|
|
7
|
+
completeTask: (taskInstanceId: number, sequenceOrder: number) => Promise<void>;
|
|
8
|
+
startTask: (taskInstanceId: number) => Promise<void>;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TaskStatus } from '../types/task.types';
|
|
2
|
+
export declare const TASK_BUTTONS: {
|
|
3
|
+
readonly START: "START";
|
|
4
|
+
readonly PAUSE: "PAUSE";
|
|
5
|
+
readonly RESUME: "RESUME";
|
|
6
|
+
readonly COMPLETE: "COMPLETE";
|
|
7
|
+
};
|
|
8
|
+
export declare const TASK_BUTTONS_DISPLAY_TEXT: {
|
|
9
|
+
[key in TaskButton]: string;
|
|
10
|
+
};
|
|
11
|
+
export type TaskButton = (typeof TASK_BUTTONS)[keyof typeof TASK_BUTTONS];
|
|
12
|
+
export declare const useTaskButtons: (args: {
|
|
13
|
+
taskStatus: TaskStatus;
|
|
14
|
+
canStart: boolean;
|
|
15
|
+
}) => {
|
|
16
|
+
buttons: "START"[] | ("PAUSE" | "COMPLETE")[];
|
|
17
|
+
};
|
package/dist/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.4 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-bold:700;--radius-sm:.25rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none!important}.absolute{position:absolute!important}.fixed{position:fixed!important}.relative{position:relative!important}.sticky{position:sticky!important}.inset-0{inset:calc(var(--spacing)*0)!important}.top-0{top:calc(var(--spacing)*0)!important}.z-50{z-index:50!important}.z-\[4\]{z-index:4!important}.container{width:100%!important}@media (min-width:40rem){.container{max-width:40rem!important}}@media (min-width:48rem){.container{max-width:48rem!important}}@media (min-width:64rem){.container{max-width:64rem!important}}@media (min-width:80rem){.container{max-width:80rem!important}}@media (min-width:96rem){.container{max-width:96rem!important}}.mx-1{margin-inline:calc(var(--spacing)*1)!important}.mx-auto{margin-inline:auto!important}.mt-3{margin-top:calc(var(--spacing)*3)!important}.-mb-3{margin-bottom:calc(var(--spacing)*-3)!important}.ml-1{margin-left:calc(var(--spacing)*1)!important}.ml-2{margin-left:calc(var(--spacing)*2)!important}.block{display:block!important}.flex{display:flex!important}.hidden{display:none!important}.size-\[16px\]{width:16px!important;height:16px!important}.h-\[18px\]{height:18px!important}.h-\[22px\]{height:22px!important}.h-\[24px\]{height:24px!important}.h-\[30px\]{height:30px!important}.h-\[38px\]{height:38px!important}.h-\[40px\]{height:40px!important}.h-\[56px\]{height:56px!important}.min-h-screen{min-height:100vh!important}.w-\[27px\]{width:27px!important}.w-\[38px\]{width:38px!important}.w-full{width:100%!important}.w-screen{width:100vw!important}.max-w-lg{max-width:var(--container-lg)!important}.max-w-md{max-width:var(--container-md)!important}.min-w-\[106px\]{min-width:106px!important}.min-w-\[140px\]{min-width:140px!important}.min-w-\[160px\]{min-width:160px!important}.min-w-\[172px\]{min-width:172px!important}.min-w-fit{min-width:fit-content!important}.flex-1{flex:1!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.items-stretch{align-items:stretch!important}.justify-center{justify-content:center!important}.justify-end{justify-content:flex-end!important}.gap-2{gap:calc(var(--spacing)*2)!important}.gap-3{gap:calc(var(--spacing)*3)!important}.gap-4{gap:calc(var(--spacing)*4)!important}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*0)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*0)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0!important;border-bottom-style:var(--tw-border-style)!important;border-top-style:var(--tw-border-style)!important;border-top-width:calc(1px*var(--tw-divide-y-reverse))!important;border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))!important}:where(.divide-black\/20>:not(:last-child)){border-color:oklab(0% none none/.2) oklab(0% none none/.2) oklab(0% none none/.2) oklab(0% none none/.2)!important}:where(.divide-gray-100>:not(:last-child)){border-color:#ebedef!important}.truncate{text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.overflow-hidden{overflow:hidden!important}.overflow-x-hidden{overflow-x:hidden!important}.rounded{border-radius:.25rem!important}.rounded-lg{border-radius:var(--radius-lg)!important}.rounded-sm{border-radius:var(--radius-sm)!important}.border{border-style:var(--tw-border-style)!important;border-width:1px!important}.border-y{border-block-style:var(--tw-border-style)!important;border-block-width:1px!important}.border-b{border-bottom-style:var(--tw-border-style)!important;border-bottom-width:1px!important}.border-\[\#94C8FF\]{border-color:#94c8ff!important}.border-\[\#A5DAB1\]{border-color:#a5dab1!important}.border-\[\#C1C5C8\]{border-color:#c1c5c8!important}.border-danger-500{border-color:#dc3545!important}.border-gray-50{border-color:#f5f6f7!important}.border-gray-100{border-color:#ebedef!important}.border-gray-200{border-color:#ced1d6!important}.border-gray-300{border-color:#b0b5bd!important}.border-gray-400{border-color:#757e8c!important}.border-gray-700{border-color:#2c3544!important}.border-gray-800{border-color:#232b37!important}.border-info-500{border-color:#17a2b8!important}.border-orange-500{border-color:#ff7800!important}.border-primary-600{border-color:#0069d9!important}.border-purple-500{border-color:#a855f7!important}.border-secondary-500{border-color:#6c757d!important}.border-secondary-600{border-color:#5a6268!important}.border-steel-500{border-color:#556987!important}.border-success-600{border-color:#218838!important}.border-warning-500{border-color:#ffc107!important}.border-white{border-color:#fff!important}.bg-\[\#E6F2FF\]{background-color:#e6f2ff!important}.bg-\[\#EAF6EC\]{background-color:#eaf6ec!important}.bg-\[\#F0F1F2\]{background-color:#f0f1f2!important}.bg-\[\#FFE600\]{background-color:#ffe600!important}.bg-black\/30{background-color:oklab(0% none none/.3)!important}.bg-danger-500{background-color:#dc3545!important}.bg-dark{background-color:#1c232d!important}.bg-fiserv-orange-500{background-color:#f60!important}.bg-gray-50{background-color:#f5f6f7!important}.bg-gray-100{background-color:#ebedef!important}.bg-gray-400{background-color:#757e8c!important}.bg-gray-500{background-color:#3a475b!important}.bg-gray-800{background-color:#232b37!important}.bg-gray-900{background-color:#1c232d!important}.bg-info-500{background-color:#17a2b8!important}.bg-orange-500{background-color:#ff7800!important}.bg-primary-600{background-color:#0069d9!important}.bg-primary-800{background-color:#0054af!important}.bg-purple-500{background-color:#a855f7!important}.bg-secondary-500{background-color:#6c757d!important}.bg-steel-500{background-color:#556987!important}.bg-success-500{background-color:#28a745!important}.bg-success-600{background-color:#218838!important}.bg-warning-500{background-color:#ffc107!important}.bg-white{background-color:#fff!important}.bg-yellow{background-color:#ffe600!important}.p-2{padding:calc(var(--spacing)*2)!important}.p-4{padding:calc(var(--spacing)*4)!important}.px-1{padding-inline:calc(var(--spacing)*1)!important}.px-2{padding-inline:calc(var(--spacing)*2)!important}.px-3{padding-inline:calc(var(--spacing)*3)!important}.px-4{padding-inline:calc(var(--spacing)*4)!important}.px-\[2px\]{padding-inline:2px!important}.py-1{padding-block:calc(var(--spacing)*1)!important}.py-1\.5{padding-block:calc(var(--spacing)*1.5)!important}.py-3{padding-block:calc(var(--spacing)*3)!important}.py-4{padding-block:calc(var(--spacing)*4)!important}.pt-2{padding-top:calc(var(--spacing)*2)!important}.pr-2{padding-right:calc(var(--spacing)*2)!important}.text-2xl{font-size:var(--text-2xl)!important;line-height:var(--tw-leading,var(--text-2xl--line-height))!important}.text-base{font-size:var(--text-base)!important;line-height:var(--tw-leading,var(--text-base--line-height))!important}.text-lg{font-size:var(--text-lg)!important;line-height:var(--tw-leading,var(--text-lg--line-height))!important}.text-sm{font-size:var(--text-sm)!important;line-height:var(--tw-leading,var(--text-sm--line-height))!important}.text-sm\/6{font-size:var(--text-sm)!important;line-height:calc(var(--spacing)*6)!important}.text-xs{font-size:var(--text-xs)!important;line-height:var(--tw-leading,var(--text-xs--line-height))!important}.leading-\[18px\]{--tw-leading:18px!important;line-height:18px!important}.leading-\[22px\]{--tw-leading:22px!important;line-height:22px!important}.leading-\[24px\]{--tw-leading:24px!important;line-height:24px!important}.font-bold{--tw-font-weight:var(--font-weight-bold)!important;font-weight:var(--font-weight-bold)!important}.font-medium{--tw-font-weight:var(--font-weight-medium)!important;font-weight:var(--font-weight-medium)!important}.font-normal{--tw-font-weight:var(--font-weight-normal)!important;font-weight:var(--font-weight-normal)!important}.whitespace-nowrap{white-space:nowrap!important}.text-\[\#1C232D\]{color:#1c232d!important}.text-black{color:#000!important}.text-danger-500{color:#dc3545!important}.text-dark{color:#1c232d!important}.text-dark-300{color:#343a40!important}.text-fiserv-orange-500{color:#f60!important}.text-gray-50{color:#f5f6f7!important}.text-gray-200{color:#ced1d6!important}.text-gray-400{color:#757e8c!important}.text-gray-500{color:#3a475b!important}.text-gray-700{color:#2c3544!important}.text-gray-800{color:#232b37!important}.text-gray-900{color:#1c232d!important}.text-info-500{color:#17a2b8!important}.text-orange-500{color:#ff7800!important}.text-primary-600{color:#0069d9!important}.text-purple-500{color:#a855f7!important}.text-secondary{color:#6c757d!important}.text-secondary-400{color:#899197!important}.text-secondary-500{color:#6c757d!important}.text-secondary-600{color:#5a6268!important}.text-steel-500{color:#556987!important}.text-success-500{color:#28a745!important}.text-success-600{color:#218838!important}.text-warning-500{color:#ffc107!important}.text-white{color:#fff!important}.text-yellow{color:#ffe600!important}.uppercase{text-transform:uppercase!important}.line-through{text-decoration-line:line-through!important}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-dark\/50{--tw-shadow-color:#1c232d80!important}@supports (color:color-mix(in lab,red,red)){.shadow-dark\/50{--tw-shadow-color:color-mix(in oklab,oklab(25.3864% -.0047446 -.0210213/.5) var(--tw-shadow-alpha),transparent)!important}}.outline{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter!important;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}.duration-300{--tw-duration:.3s!important;transition-duration:.3s!important}.ease-in-out{--tw-ease:var(--ease-in-out)!important;transition-timing-function:var(--ease-in-out)!important}.ease-out{--tw-ease:var(--ease-out)!important;transition-timing-function:var(--ease-out)!important}.\[writing-mode\:vertical-lr\]{writing-mode:vertical-lr!important}@media (hover:hover){.hover\:bg-danger-500:hover{background-color:#dc3545!important}.hover\:bg-dark:hover{background-color:#1c232d!important}.hover\:bg-fiserv-orange-500:hover{background-color:#f60!important}.hover\:bg-gray-50:hover{background-color:#f5f6f7!important}.hover\:bg-gray-100:hover{background-color:#ebedef!important}.hover\:bg-gray-400:hover{background-color:#757e8c!important}.hover\:bg-gray-500:hover{background-color:#3a475b!important}.hover\:bg-gray-800:hover{background-color:#232b37!important}.hover\:bg-gray-900:hover{background-color:#1c232d!important}.hover\:bg-info-500:hover{background-color:#17a2b8!important}.hover\:bg-orange-500:hover{background-color:#ff7800!important}.hover\:bg-primary-800:hover{background-color:#0054af!important}.hover\:bg-purple-500:hover{background-color:#a855f7!important}.hover\:bg-secondary-500:hover{background-color:#6c757d!important}.hover\:bg-steel-500:hover{background-color:#556987!important}.hover\:bg-success-500:hover{background-color:#28a745!important}.hover\:bg-warning-500:hover{background-color:#ffc107!important}.hover\:bg-yellow:hover{background-color:#ffe600!important}.hover\:text-black:hover{color:#000!important}.hover\:text-danger-800:hover{color:#aa1927!important}.hover\:text-dark:hover{color:#1c232d!important}.hover\:text-fiserv-orange-800:hover{color:#bf4c00!important}.hover\:text-gray-400:hover{color:#757e8c!important}.hover\:text-gray-700:hover{color:#2c3544!important}.hover\:text-gray-800:hover{color:#232b37!important}.hover\:text-gray-900:hover{color:#1c232d!important}.hover\:text-info-800:hover{color:#026777!important}.hover\:text-orange-800:hover{color:#c75d00!important}.hover\:text-primary-800:hover{color:#0054af!important}.hover\:text-purple-800:hover{color:#6f33a7!important}.hover\:text-secondary-800:hover{color:#444a50!important}.hover\:text-steel-800:hover{color:#333f51!important}.hover\:text-success-800:hover{color:#106c25!important}.hover\:text-warning-800:hover{color:#b87708!important}.hover\:text-white:hover{color:#fff!important}.hover\:text-yellow:hover{color:#ffe600!important}}.focus\:outline:focus{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.focus\:outline-3:focus{outline-style:var(--tw-outline-style)!important;outline-width:3px!important}.focus\:outline-primary-500\/\[\.3\]:focus{outline-color:#007bff4d!important}.focus\:not-data-focus\:outline-none:focus:not([data-focus]){--tw-outline-style:none!important;outline-style:none!important}.active\:bg-gray-50:active{background-color:#f5f6f7!important}.active\:bg-gray-800:active{background-color:#232b37!important}.active\:text-black:active{color:#000!important}.active\:text-white:active{color:#fff!important}.disabled\:pointer-events-none:disabled{pointer-events:none!important}.disabled\:opacity-15:disabled{opacity:.15!important}.data-closed\:opacity-0[data-closed]{opacity:0!important}.data-focus\:outline-2[data-focus]{outline-style:var(--tw-outline-style)!important;outline-width:2px!important}.data-focus\:-outline-offset-2[data-focus]{outline-offset:-2px!important}.data-focus\:outline-primary-500[data-focus]{outline-color:#007bff!important}@media (min-width:48rem){.md\:min-w-fit{min-width:fit-content!important}}}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
|
package/dist/index.d.ts
ADDED