pixel-react 1.0.5 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- package/.yarn/install-state.gz +0 -0
- package/lib/StyleGuide/ColorPalette/types.d.ts +2 -0
- package/lib/assets/utils/functionUtils.d.ts +3 -0
- package/lib/components/DatePicker/DatePicker.d.ts +5 -0
- package/lib/components/DatePicker/DatePicker.stories.d.ts +9 -0
- package/lib/components/DatePicker/Timepicker.d.ts +4 -0
- package/lib/components/DatePicker/index.d.ts +1 -0
- package/lib/components/DatePicker/types.d.ts +81 -0
- package/lib/components/DragAndDrop/DragAndDrop.d.ts +9 -0
- package/lib/components/DragAndDrop/DragAndDrop.stories.d.ts +6 -0
- package/lib/components/DragAndDrop/DragAndDropList.d.ts +20 -0
- package/lib/components/DragAndDrop/index.d.ts +1 -0
- package/lib/components/Drawer/Drawer.d.ts +2 -1
- package/lib/components/IconButton/IconButton.d.ts +5 -0
- package/lib/components/IconButton/IconButton.stories.d.ts +6 -0
- package/lib/components/IconButton/index.d.ts +1 -0
- package/lib/components/{AddButton → IconButton}/types.d.ts +3 -2
- package/lib/components/InputWithDropdown/InputWithDropdown.d.ts +1 -1
- package/lib/components/InputWithDropdown/types.d.ts +3 -7
- package/lib/components/Modal/Modal.d.ts +5 -0
- package/lib/components/Modal/Modal.stories.d.ts +7 -0
- package/lib/components/Modal/index.d.ts +1 -0
- package/lib/components/Modal/types.d.ts +26 -0
- package/lib/components/TableTree/TableTree.d.ts +2 -2
- package/lib/components/ThemeProvider/CustomThemeProvider.d.ts +8 -0
- package/lib/hooks/useCustomThemeProvider.d.ts +11 -0
- package/lib/index.d.ts +76 -16
- package/lib/index.esm.js +13365 -414
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +13368 -415
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +28 -23
- package/src/StyleGuide/ColorPalette/ColorPalette.scss +5 -0
- package/src/StyleGuide/ColorPalette/ColorPalette.tsx +10 -1
- package/src/StyleGuide/ColorPalette/colorPaletteList.ts +2 -2
- package/src/StyleGuide/ColorPalette/types.ts +2 -0
- package/src/assets/Themes/BaseTheme.scss +9 -1
- package/src/assets/Themes/DarkTheme.scss +8 -1
- package/src/assets/icons/add_variable_icon.svg +5 -0
- package/src/assets/icons/calendar_icon.svg +9 -0
- package/src/assets/icons/clock_icon.svg +11 -0
- package/src/assets/icons/collapse-icon.svg +6 -0
- package/src/assets/icons/copy-icon.svg +3 -0
- package/src/assets/icons/download-icon.svg +3 -0
- package/src/assets/icons/expand-icon.svg +6 -0
- package/src/assets/icons/info_icon.svg +4 -0
- package/src/assets/icons/left_arrow_icon.svg +3 -0
- package/src/assets/icons/license_info.svg +28 -0
- package/src/assets/icons/license_warning.svg +10 -0
- package/src/assets/icons/refresh-icon.svg +4 -0
- package/src/assets/icons/right_arrow_icon.svg +4 -0
- package/src/assets/styles/_mixins.scss +1 -0
- package/src/assets/utils/functionUtils.ts +37 -0
- package/src/components/DatePicker/DatePicker.scss +387 -0
- package/src/components/DatePicker/DatePicker.stories.tsx +161 -0
- package/src/components/DatePicker/DatePicker.tsx +438 -0
- package/src/components/DatePicker/Timepicker.tsx +372 -0
- package/src/components/DatePicker/index.ts +1 -0
- package/src/components/DatePicker/types.ts +100 -0
- package/src/components/DragAndDrop/DragAndDrop.d.ts +5 -0
- package/src/components/DragAndDrop/DragAndDrop.stories.tsx +25 -0
- package/src/components/DragAndDrop/DragAndDrop.ts +7 -0
- package/src/components/DragAndDrop/DragAndDropList.scss +69 -0
- package/src/components/DragAndDrop/DragAndDropList.tsx +150 -0
- package/src/components/DragAndDrop/index.ts +1 -0
- package/src/components/Drawer/Drawer.scss +0 -1
- package/src/components/Drawer/Drawer.tsx +7 -15
- package/src/components/Icon/iconList.ts +31 -9
- package/src/components/{AddButton/AddButton.scss → IconButton/IconButton.scss} +6 -2
- package/src/components/IconButton/IconButton.stories.tsx +25 -0
- package/src/components/{AddButton/AddButton.tsx → IconButton/IconButton.tsx} +10 -7
- package/src/components/IconButton/index.ts +1 -0
- package/src/components/{AddButton → IconButton}/types.ts +3 -2
- package/src/components/InputWithDropdown/InputWithDropdown.scss +1 -1
- package/src/components/InputWithDropdown/InputWithDropdown.stories.tsx +10 -13
- package/src/components/InputWithDropdown/InputWithDropdown.tsx +10 -8
- package/src/components/InputWithDropdown/types.ts +4 -7
- package/src/components/Modal/Modal.stories.tsx +63 -0
- package/src/components/Modal/Modal.tsx +71 -0
- package/src/components/Modal/index.tsx +1 -0
- package/src/components/Modal/modal.scss +37 -0
- package/src/components/Modal/types.ts +37 -0
- package/src/components/RadioButton/RadioButton.scss +3 -3
- package/src/components/Select/Select.scss +1 -1
- package/src/components/TableTree/TableTree.tsx +5 -1
- package/src/components/ThemeProvider/ThemeProvider.tsx +11 -8
- package/src/index.ts +6 -6
- package/lib/components/AddButton/AddButton.d.ts +0 -5
- package/lib/components/AddButton/AddButton.stories.d.ts +0 -6
- package/lib/components/AddButton/index.d.ts +0 -1
- package/src/assets/icons/expired_license_icon.svg +0 -3
- package/src/assets/icons/expiringSoon_license_icon.svg +0 -3
- package/src/components/AddButton/AddButton.stories.tsx +0 -24
- package/src/components/AddButton/index.ts +0 -1
package/.yarn/install-state.gz
CHANGED
Binary file
|
@@ -4,6 +4,7 @@ export interface ColorBoxProps {
|
|
4
4
|
opacity?: number;
|
5
5
|
dropShadow?: string;
|
6
6
|
border?: string;
|
7
|
+
variable?: string;
|
7
8
|
}
|
8
9
|
export interface Color {
|
9
10
|
name: string;
|
@@ -11,5 +12,6 @@ export interface Color {
|
|
11
12
|
opacity?: number;
|
12
13
|
dropShadow?: string;
|
13
14
|
border?: string;
|
15
|
+
variable?: string;
|
14
16
|
}
|
15
17
|
export type ColorPaletteType = Color[];
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import CustomDatePicker from './DatePicker';
|
3
|
+
declare const meta: Meta<typeof CustomDatePicker>;
|
4
|
+
export default meta;
|
5
|
+
type Story = StoryObj<typeof CustomDatePicker>;
|
6
|
+
export declare const Default: Story;
|
7
|
+
export declare const StartDateFilter: Story;
|
8
|
+
export declare const EndDateInput: Story;
|
9
|
+
export declare const ScheduleDateInput: Story;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './DatePicker';
|
@@ -0,0 +1,81 @@
|
|
1
|
+
export interface DatePickerProps {
|
2
|
+
/**
|
3
|
+
* The minimum selectable date.
|
4
|
+
*/
|
5
|
+
minDate?: DateValue;
|
6
|
+
/**
|
7
|
+
* The maximum selectable date.
|
8
|
+
*/
|
9
|
+
maxDate?: DateValue;
|
10
|
+
/**
|
11
|
+
* Selected date value.
|
12
|
+
*/
|
13
|
+
value?: DateValue;
|
14
|
+
/**
|
15
|
+
* Function to handle date selection.
|
16
|
+
*/
|
17
|
+
onChange: (value: DateValue) => void;
|
18
|
+
/**
|
19
|
+
* Placeholder text for the input field.
|
20
|
+
*/
|
21
|
+
placeholder?: string;
|
22
|
+
/**
|
23
|
+
* Disables the date picker.
|
24
|
+
*/
|
25
|
+
disabled?: boolean;
|
26
|
+
/**
|
27
|
+
* Format for displaying the selected date. Default is 'EEEE, dd MMM yyyy'.
|
28
|
+
*/
|
29
|
+
dateFormat?: string;
|
30
|
+
/**
|
31
|
+
* Format for displaying the selected time. Default is 'hh:mm a'.
|
32
|
+
*/
|
33
|
+
timeFormat?: string;
|
34
|
+
/**
|
35
|
+
* Timezone for the date picker.
|
36
|
+
*/
|
37
|
+
timezone?: string;
|
38
|
+
/**
|
39
|
+
* Custom width for the calendar. This will override the default width of the calendar.
|
40
|
+
*/
|
41
|
+
calendarWidth?: number;
|
42
|
+
/**
|
43
|
+
* When true, displays the input field error.
|
44
|
+
*/
|
45
|
+
error?: boolean;
|
46
|
+
/**
|
47
|
+
* Helper text to display below the input field, used for error messages or instructions.
|
48
|
+
*/
|
49
|
+
helperText?: string | undefined;
|
50
|
+
}
|
51
|
+
export type DateValue = Date | undefined;
|
52
|
+
export interface CustomCaptionProps {
|
53
|
+
children?: React.ReactNode;
|
54
|
+
}
|
55
|
+
export interface CustomCalenderButtonProps {
|
56
|
+
className?: string;
|
57
|
+
disabled?: boolean | undefined;
|
58
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
59
|
+
}
|
60
|
+
export interface TimePickerProps {
|
61
|
+
/**
|
62
|
+
* The current time value, in string format (e.g., '14:30').
|
63
|
+
*/
|
64
|
+
value: string;
|
65
|
+
/**
|
66
|
+
* Function to handle time selection changes, receiving the selected time as a string.
|
67
|
+
*/
|
68
|
+
onChange: (time: string) => void;
|
69
|
+
/**
|
70
|
+
* The minimum selectable time, used to restrict the earliest selectable time.
|
71
|
+
*/
|
72
|
+
minTime?: string;
|
73
|
+
/**
|
74
|
+
* The maximum selectable time, used to restrict the latest selectable time.
|
75
|
+
*/
|
76
|
+
maxTime?: string;
|
77
|
+
/**
|
78
|
+
* Function to handle error state changes, receiving a boolean indicating the presence of an error.
|
79
|
+
*/
|
80
|
+
onErrorChange: (error: boolean) => void;
|
81
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import * as DNDCore from '@dnd-kit/core';
|
2
|
+
import * as DNDSortable from '@dnd-kit/sortable';
|
3
|
+
import * as DNDUtilities from '@dnd-kit/utilities';
|
4
|
+
declare const DragAndDrop: {
|
5
|
+
DNDCore: typeof DNDCore;
|
6
|
+
DNDSortable: typeof DNDSortable;
|
7
|
+
DNDUtilities: typeof DNDUtilities;
|
8
|
+
};
|
9
|
+
export default DragAndDrop;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import './DragAndDropList.scss';
|
2
|
+
interface TaskProps {
|
3
|
+
id: number;
|
4
|
+
title: string;
|
5
|
+
}
|
6
|
+
export declare const Task: ({ id, title }: TaskProps) => import("react/jsx-runtime").JSX.Element;
|
7
|
+
interface ColumnProps {
|
8
|
+
id: string;
|
9
|
+
tasks: {
|
10
|
+
id: number;
|
11
|
+
title: string;
|
12
|
+
}[];
|
13
|
+
}
|
14
|
+
export declare const Column: React.FC<ColumnProps>;
|
15
|
+
interface InputProps {
|
16
|
+
onSubmit: (input: string) => void;
|
17
|
+
}
|
18
|
+
export declare const Input: React.FC<InputProps>;
|
19
|
+
declare const DragAndDropList: () => import("react/jsx-runtime").JSX.Element;
|
20
|
+
export default DragAndDropList;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './DragAndDrop';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { DrawerProps } from './Types.js';
|
2
2
|
import './Drawer.scss';
|
3
|
-
|
3
|
+
import { FC } from 'react';
|
4
|
+
declare const Drawer: FC<DrawerProps>;
|
4
5
|
export default Drawer;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './IconButton';
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import './InputWithDropdown.scss';
|
2
2
|
import { InputWithDropdownProps } from './types';
|
3
|
-
declare const InputWithDropdown: ({ name, label, value,
|
3
|
+
declare const InputWithDropdown: ({ name, label, value, disabled, required, placeholder, error, helperText, optionsList, selectedOption, onDropdownChangeHandler, onInputChangeHandler, onInputBlurHandler, optionsRequired, }: InputWithDropdownProps) => import("react/jsx-runtime").JSX.Element;
|
4
4
|
export default InputWithDropdown;
|
@@ -15,15 +15,11 @@ export interface InputWithDropdownProps {
|
|
15
15
|
/**
|
16
16
|
* value | input field value
|
17
17
|
*/
|
18
|
-
value
|
18
|
+
value?: number;
|
19
19
|
/**
|
20
20
|
* variants to set color/style of the input field
|
21
21
|
*/
|
22
22
|
variant?: 'default' | 'primary';
|
23
|
-
/**
|
24
|
-
* type to set the input field type
|
25
|
-
*/
|
26
|
-
type: 'text' | 'password' | 'number' | 'time';
|
27
23
|
/**
|
28
24
|
* error | If true, error message will be displayed
|
29
25
|
*/
|
@@ -65,9 +61,9 @@ export interface InputWithDropdownProps {
|
|
65
61
|
*/
|
66
62
|
onDropdownChangeHandler?: (option: Option) => void;
|
67
63
|
/**
|
68
|
-
*
|
64
|
+
* onInputBlurHandler action for input field
|
69
65
|
*/
|
70
|
-
|
66
|
+
onInputBlurHandler?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
71
67
|
/**
|
72
68
|
* id to select the input field uniquely
|
73
69
|
*/
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import Modal from './Modal';
|
3
|
+
declare const meta: Meta<typeof Modal>;
|
4
|
+
type Story = StoryObj<typeof Modal>;
|
5
|
+
export declare const DefaultModalStory: Story;
|
6
|
+
export declare const Controlled: Story;
|
7
|
+
export default meta;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './Modal';
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { ReactNode } from "react";
|
2
|
+
export interface ModalProps {
|
3
|
+
isOpen: boolean;
|
4
|
+
onClose: () => void;
|
5
|
+
/*** label value for aria-label */
|
6
|
+
contentLabel?: string;
|
7
|
+
/*** default header will be provided with title and close icon. */
|
8
|
+
isHeaderDisplayed: boolean;
|
9
|
+
/*** Title to be displayed in the header when defaultHeader is true*/
|
10
|
+
headerTitle?: string;
|
11
|
+
/*** Custom class names for the modal content */
|
12
|
+
contentClassName?: string;
|
13
|
+
/*** Custom class name for the overlay */
|
14
|
+
overlayClassName?: string;
|
15
|
+
/*** Whether the modal should close when the 'Escape' key is pressed */
|
16
|
+
shouldCloseOnEsc?: boolean;
|
17
|
+
/*** Whether to hide the app from screen readers when the modal is open */
|
18
|
+
ariaHideApp?: boolean;
|
19
|
+
/*** Whether the modal should close when clicking outside of it (on the overlay) */
|
20
|
+
shouldCloseOnOverlayClick?: boolean;
|
21
|
+
headerContent?: string | ReactNode;
|
22
|
+
footerContent?: ReactNode;
|
23
|
+
/***Content to be displayed inside the modal */
|
24
|
+
children: ReactNode;
|
25
|
+
isFooterDisplayed: boolean;
|
26
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import './TableTree.scss';
|
2
1
|
import React, { ReactNode } from 'react';
|
2
|
+
import './TableTree.scss';
|
3
3
|
interface ColumnDataProps {
|
4
4
|
name: string;
|
5
5
|
accessor: string;
|
@@ -17,5 +17,5 @@ interface TableTreeProps {
|
|
17
17
|
treeData: Array<ObjectProps>;
|
18
18
|
onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>, data: any) => void;
|
19
19
|
}
|
20
|
-
declare const TableTree: ({ columnsData, treeData, onClick, }: TableTreeProps) => import("react/jsx-runtime").JSX.Element;
|
20
|
+
declare const TableTree: ({ columnsData, treeData, withCheckBox, onClick, }: TableTreeProps) => import("react/jsx-runtime").JSX.Element;
|
21
21
|
export default TableTree;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import React, { ReactNode } from 'react';
|
2
|
+
import { ThemeContextType } from './types';
|
3
|
+
declare const ThemeContext: React.Context<ThemeContextType | undefined>;
|
4
|
+
declare const CustomThemeProvider: React.FC<{
|
5
|
+
children: ReactNode;
|
6
|
+
}>;
|
7
|
+
export { ThemeContext };
|
8
|
+
export default CustomThemeProvider;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import React, { ReactNode } from 'react';
|
2
|
+
interface ThemeContextType {
|
3
|
+
currentTheme: string;
|
4
|
+
setCurrentTheme: React.Dispatch<React.SetStateAction<string>>;
|
5
|
+
applyTheme: (newTheme: string) => void;
|
6
|
+
}
|
7
|
+
export declare const useCustomThemeProvider: React.FC<{
|
8
|
+
children: ReactNode;
|
9
|
+
}>;
|
10
|
+
export declare const useTheme: () => ThemeContextType;
|
11
|
+
export {};
|
package/lib/index.d.ts
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
import * as LazyLoad from 'react-window';
|
2
2
|
export { LazyLoad };
|
3
3
|
import * as React$1 from 'react';
|
4
|
-
import React__default, { ReactNode, RefObject } from 'react';
|
4
|
+
import React__default, { ReactNode, FC, RefObject } from 'react';
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
6
6
|
import { FieldValues, UseFormProps, SubmitHandler, FieldPath, FieldErrors } from 'react-hook-form';
|
7
|
+
import * as DNDCore from '@dnd-kit/core';
|
8
|
+
import * as DNDSortable from '@dnd-kit/sortable';
|
9
|
+
import * as DNDUtilities from '@dnd-kit/utilities';
|
7
10
|
|
8
11
|
interface ButtonProps$1 {
|
9
12
|
/**
|
@@ -153,7 +156,7 @@ interface DrawerProps {
|
|
153
156
|
footerContent?: ReactNode;
|
154
157
|
}
|
155
158
|
|
156
|
-
declare const Drawer:
|
159
|
+
declare const Drawer: FC<DrawerProps>;
|
157
160
|
|
158
161
|
interface IconProps {
|
159
162
|
name: string;
|
@@ -884,7 +887,7 @@ interface AddResourceButtonProps {
|
|
884
887
|
zIndex?: number;
|
885
888
|
}
|
886
889
|
|
887
|
-
declare const AddButton
|
890
|
+
declare const AddButton: ({ id, variant, directionalArrow, zIndex, }: AddResourceButtonProps) => react_jsx_runtime.JSX.Element;
|
888
891
|
|
889
892
|
type Status = 'passed' | 'failed' | 'warning' | 'skipped' | 'Passed' | 'Failed' | 'Skipped' | 'Warning';
|
890
893
|
type StatusValue = {
|
@@ -1052,15 +1055,11 @@ interface InputWithDropdownProps {
|
|
1052
1055
|
/**
|
1053
1056
|
* value | input field value
|
1054
1057
|
*/
|
1055
|
-
value
|
1058
|
+
value?: number;
|
1056
1059
|
/**
|
1057
1060
|
* variants to set color/style of the input field
|
1058
1061
|
*/
|
1059
1062
|
variant?: 'default' | 'primary';
|
1060
|
-
/**
|
1061
|
-
* type to set the input field type
|
1062
|
-
*/
|
1063
|
-
type: 'text' | 'password' | 'number' | 'time';
|
1064
1063
|
/**
|
1065
1064
|
* error | If true, error message will be displayed
|
1066
1065
|
*/
|
@@ -1102,9 +1101,9 @@ interface InputWithDropdownProps {
|
|
1102
1101
|
*/
|
1103
1102
|
onDropdownChangeHandler?: (option: Option) => void;
|
1104
1103
|
/**
|
1105
|
-
*
|
1104
|
+
* onInputBlurHandler action for input field
|
1106
1105
|
*/
|
1107
|
-
|
1106
|
+
onInputBlurHandler?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
1108
1107
|
/**
|
1109
1108
|
* id to select the input field uniquely
|
1110
1109
|
*/
|
@@ -1128,7 +1127,7 @@ interface InputWithDropdownProps {
|
|
1128
1127
|
optionsRequired?: boolean;
|
1129
1128
|
}
|
1130
1129
|
|
1131
|
-
declare const InputWithDropdown: ({ name, label, value,
|
1130
|
+
declare const InputWithDropdown: ({ name, label, value, disabled, required, placeholder, error, helperText, optionsList, selectedOption, onDropdownChangeHandler, onInputChangeHandler, onInputBlurHandler, optionsRequired, }: InputWithDropdownProps) => react_jsx_runtime.JSX.Element;
|
1132
1131
|
|
1133
1132
|
declare const RadioButton: React__default.FC<RadioButtonProps>;
|
1134
1133
|
|
@@ -1241,7 +1240,7 @@ interface TableTreeProps {
|
|
1241
1240
|
treeData: Array<ObjectProps>;
|
1242
1241
|
onClick?: (event: React__default.MouseEvent<HTMLDivElement, MouseEvent>, data: any) => void;
|
1243
1242
|
}
|
1244
|
-
declare const TableTree: ({ columnsData, treeData, onClick, }: TableTreeProps) => react_jsx_runtime.JSX.Element;
|
1243
|
+
declare const TableTree: ({ columnsData, treeData, withCheckBox, onClick, }: TableTreeProps) => react_jsx_runtime.JSX.Element;
|
1245
1244
|
|
1246
1245
|
interface TabsProps {
|
1247
1246
|
/**
|
@@ -1330,6 +1329,60 @@ interface SearchProps {
|
|
1330
1329
|
|
1331
1330
|
declare const Search: ({ placeholder, onSearch, disabled, width, }: SearchProps) => react_jsx_runtime.JSX.Element;
|
1332
1331
|
|
1332
|
+
interface DatePickerProps {
|
1333
|
+
/**
|
1334
|
+
* The minimum selectable date.
|
1335
|
+
*/
|
1336
|
+
minDate?: DateValue;
|
1337
|
+
/**
|
1338
|
+
* The maximum selectable date.
|
1339
|
+
*/
|
1340
|
+
maxDate?: DateValue;
|
1341
|
+
/**
|
1342
|
+
* Selected date value.
|
1343
|
+
*/
|
1344
|
+
value?: DateValue;
|
1345
|
+
/**
|
1346
|
+
* Function to handle date selection.
|
1347
|
+
*/
|
1348
|
+
onChange: (value: DateValue) => void;
|
1349
|
+
/**
|
1350
|
+
* Placeholder text for the input field.
|
1351
|
+
*/
|
1352
|
+
placeholder?: string;
|
1353
|
+
/**
|
1354
|
+
* Disables the date picker.
|
1355
|
+
*/
|
1356
|
+
disabled?: boolean;
|
1357
|
+
/**
|
1358
|
+
* Format for displaying the selected date. Default is 'EEEE, dd MMM yyyy'.
|
1359
|
+
*/
|
1360
|
+
dateFormat?: string;
|
1361
|
+
/**
|
1362
|
+
* Format for displaying the selected time. Default is 'hh:mm a'.
|
1363
|
+
*/
|
1364
|
+
timeFormat?: string;
|
1365
|
+
/**
|
1366
|
+
* Timezone for the date picker.
|
1367
|
+
*/
|
1368
|
+
timezone?: string;
|
1369
|
+
/**
|
1370
|
+
* Custom width for the calendar. This will override the default width of the calendar.
|
1371
|
+
*/
|
1372
|
+
calendarWidth?: number;
|
1373
|
+
/**
|
1374
|
+
* When true, displays the input field error.
|
1375
|
+
*/
|
1376
|
+
error?: boolean;
|
1377
|
+
/**
|
1378
|
+
* Helper text to display below the input field, used for error messages or instructions.
|
1379
|
+
*/
|
1380
|
+
helperText?: string | undefined;
|
1381
|
+
}
|
1382
|
+
type DateValue = Date | undefined;
|
1383
|
+
|
1384
|
+
declare const CustomDatePicker: React__default.FC<DatePickerProps>;
|
1385
|
+
|
1333
1386
|
interface StateDropdownProps {
|
1334
1387
|
value: string;
|
1335
1388
|
nodeObj: {};
|
@@ -1344,12 +1397,19 @@ interface StateDropdownProps {
|
|
1344
1397
|
|
1345
1398
|
declare const StateDropdown: ({ value, nodeObj, isReviewer, isApprovePage, handleStateValueClick, handleDropdownOptionsClick, disabled, isOnlyReviewer, userHasOnlyViewAccess, }: StateDropdownProps) => react_jsx_runtime.JSX.Element;
|
1346
1399
|
|
1347
|
-
interface
|
1348
|
-
|
1400
|
+
interface IconButtonProps {
|
1401
|
+
label: string;
|
1402
|
+
iconName: string;
|
1349
1403
|
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
1350
1404
|
}
|
1351
1405
|
|
1352
|
-
declare const
|
1406
|
+
declare const IconButton: React__default.FC<IconButtonProps>;
|
1407
|
+
|
1408
|
+
declare const DragAndDrop: {
|
1409
|
+
DNDCore: typeof DNDCore;
|
1410
|
+
DNDSortable: typeof DNDSortable;
|
1411
|
+
DNDUtilities: typeof DNDUtilities;
|
1412
|
+
};
|
1353
1413
|
|
1354
1414
|
type valueType$1 = any;
|
1355
1415
|
declare const checkEmpty: (value: valueType$1) => boolean;
|
@@ -1358,4 +1418,4 @@ type valueType = File | string;
|
|
1358
1418
|
declare const getExtension: (value: valueType) => string | undefined;
|
1359
1419
|
declare const getExtensionWithPeriod: (value: valueType) => string;
|
1360
1420
|
|
1361
|
-
export { Accordion, AddButton
|
1421
|
+
export { Accordion, AddButton as AddResourceButton, Button, Checkbox, Chip, Col, Container, CustomDatePicker as DatePicker, DonutChart, DragAndDrop, Drawer, ExpandableMenu, FileDropzone, Form, HighlightText, Icon, IconButton, Input, InputWithDropdown, MenuOption, MiniModal, MultiSelect, RadialChart, RadioButton, RadioGroup, Row, Search, Select, StateDropdown, StatusButton, Table, TableTree, Tabs, Textarea as TextArea, ThemeProvider, Toaster, Toggle, Tooltip, Typography, checkEmpty, getExtension, getExtensionWithPeriod, useTheme };
|