@lax-wp/design-system 0.3.114 → 0.4.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/dist/components/button/Button.d.ts +25 -0
- package/dist/components/button/ButtonGroup.d.ts +6 -0
- package/dist/components/button/ButtonThreeDots.d.ts +3 -0
- package/dist/components/button/IconButton.d.ts +14 -0
- package/dist/components/button/Radio.d.ts +8 -0
- package/dist/components/buttons/option-button/OptionButton.d.ts +60 -0
- package/dist/components/cards/card-header-view/CardHeaderView.d.ts +33 -0
- package/dist/components/cards/card-header-view/index.d.ts +2 -0
- package/dist/components/cards/card-main/CardMain.d.ts +25 -0
- package/dist/components/cards/card-main/index.d.ts +2 -0
- package/dist/components/cards/tab-content/TabContent.d.ts +30 -0
- package/dist/components/cards/tab-content/index.d.ts +2 -0
- package/dist/components/data-display/access-denied-modal/AccessDeniedModal.d.ts +21 -0
- package/dist/components/data-display/badge/Badge.d.ts +44 -0
- package/dist/components/data-display/banner/Banner.d.ts +37 -0
- package/dist/components/data-display/card/Card.d.ts +31 -0
- package/dist/components/data-display/code-editor/CodeEditor.d.ts +6 -0
- package/dist/components/data-display/code-editor/JsonGrid.d.ts +37 -0
- package/dist/components/data-display/code-editor/Tabs.d.ts +12 -0
- package/dist/components/data-display/comparison/Comparison.d.ts +34 -0
- package/dist/components/data-display/comparison/ComparisonContext.d.ts +36 -0
- package/dist/components/data-display/comparison/components/GridItemHandle.d.ts +7 -0
- package/dist/components/data-display/comparison/components/GridLayout.d.ts +3 -0
- package/dist/components/data-display/comparison/components/Header.d.ts +9 -0
- package/dist/components/data-display/comparison/components/NoAvailableContent.d.ts +2 -0
- package/dist/components/data-display/comparison/components/SortableItem.d.ts +7 -0
- package/dist/components/data-display/comparison/constants.d.ts +15 -0
- package/dist/components/data-display/comparison/icons/CloseIcon.d.ts +7 -0
- package/dist/components/data-display/comparison/icons/ExitIcon.d.ts +6 -0
- package/dist/components/data-display/comparison/icons/LayoutOneIcon.d.ts +6 -0
- package/dist/components/data-display/comparison/icons/LayoutThreeIcon.d.ts +6 -0
- package/dist/components/data-display/comparison/icons/LayoutTwoIcon.d.ts +6 -0
- package/dist/components/data-display/comparison/icons/SearchIcon.d.ts +8 -0
- package/dist/components/data-display/comparison/icons/index.d.ts +12 -0
- package/dist/components/data-display/comparison/index.d.ts +9 -0
- package/dist/components/data-display/comparison/utils.d.ts +15 -0
- package/dist/components/data-display/context-menu/ContextMenu.d.ts +42 -0
- package/dist/components/data-display/datatype-icon/DataTypeIcon.d.ts +104 -0
- package/dist/components/data-display/delete-modal/DeleteModal.d.ts +40 -0
- package/dist/components/data-display/diff-viewer/DiffViewer.d.ts +64 -0
- package/dist/components/data-display/divider/Divider.d.ts +21 -0
- package/dist/components/data-display/dynamic-data-modal/DynamicDataModal.d.ts +26 -0
- package/dist/components/data-display/dynamic-items-cell/DynamicItemsCell.d.ts +50 -0
- package/dist/components/data-display/empty-state/EmptyEvent.d.ts +5 -0
- package/dist/components/data-display/empty-state/NoDataFound.d.ts +27 -0
- package/dist/components/data-display/empty-state/NoDataFoundWidgets.d.ts +20 -0
- package/dist/components/data-display/empty-state/PageNotFound.d.ts +33 -0
- package/dist/components/data-display/empty-state/UserNotFound.d.ts +28 -0
- package/dist/components/data-display/empty-state/empty-widget/EmptyBarChartData.d.ts +1 -0
- package/dist/components/data-display/empty-state/empty-widget/EmptyCardChartData.d.ts +1 -0
- package/dist/components/data-display/empty-state/empty-widget/EmptyContentChart.d.ts +1 -0
- package/dist/components/data-display/empty-state/empty-widget/EmptyCountWidgetData.d.ts +1 -0
- package/dist/components/data-display/empty-state/empty-widget/EmptyDonutChartData.d.ts +1 -0
- package/dist/components/data-display/empty-state/empty-widget/EmptyPieChatData.d.ts +1 -0
- package/dist/components/data-display/empty-state/empty-widget/EmptyTableWidgetData.d.ts +1 -0
- package/dist/components/data-display/empty-state/empty-widget/EmptyTimelineChartData.d.ts +1 -0
- package/dist/components/data-display/empty-state/empty-widget/index.d.ts +8 -0
- package/dist/components/data-display/empty-state/index.d.ts +11 -0
- package/dist/components/data-display/error-modal/ErrorModal.d.ts +22 -0
- package/dist/components/data-display/floating-element-wrapper/floating-element-dragger.d.ts +1 -0
- package/dist/components/data-display/in-progress/InProgress.d.ts +13 -0
- package/dist/components/data-display/json-grid-viewer/AddKeyModal.d.ts +7 -0
- package/dist/components/data-display/json-grid-viewer/JsonGridBulkFloatingBar.d.ts +2 -0
- package/dist/components/data-display/json-grid-viewer/JsonGridCore.d.ts +3 -0
- package/dist/components/data-display/json-grid-viewer/JsonGridViewer.d.ts +47 -0
- package/dist/components/data-display/json-grid-viewer/JsonGridViewerContext.d.ts +4 -0
- package/dist/components/data-display/json-grid-viewer/JsonValueDisplay.d.ts +8 -0
- package/dist/components/data-display/json-grid-viewer/NestedJsonGrid.d.ts +7 -0
- package/dist/components/data-display/json-grid-viewer/hooks.d.ts +6 -0
- package/dist/components/data-display/json-grid-viewer/index.d.ts +12 -0
- package/dist/components/data-display/json-grid-viewer/types.d.ts +64 -0
- package/dist/components/data-display/json-grid-viewer/utils.d.ts +4 -0
- package/dist/components/data-display/label/Label.d.ts +10 -0
- package/dist/components/data-display/label-value/LabelValue.d.ts +139 -0
- package/dist/components/data-display/lottie-animation/LottieAnimation.d.ts +34 -0
- package/dist/components/data-display/modal/Modal.d.ts +41 -0
- package/dist/components/data-display/pdf-viewer/PdfViewer.d.ts +45 -0
- package/dist/components/data-display/permission-wrapper/PermissionWrapper.d.ts +28 -0
- package/dist/components/data-display/popper/Popper.d.ts +57 -0
- package/dist/components/data-display/progress-bar/CircularProgressBar.d.ts +23 -0
- package/dist/components/data-display/progress-bar/LinearProgressBar.d.ts +27 -0
- package/dist/components/data-display/progress-bar/index.d.ts +4 -0
- package/dist/components/data-display/resizable-sidebar/ResizableSidebar.d.ts +48 -0
- package/dist/components/data-display/skeleton/Skeleton.d.ts +18 -0
- package/dist/components/data-display/status-color-mapping/StatusColorMapping.d.ts +29 -0
- package/dist/components/data-display/tag/Tag.d.ts +53 -0
- package/dist/components/data-display/text/Text.d.ts +41 -0
- package/dist/components/data-display/text-with-strike/TextWithStrike.d.ts +19 -0
- package/dist/components/data-display/typography/Typography.d.ts +15 -0
- package/dist/components/data-display/unsaved-changes-modal/UnsavedChangesModal.d.ts +30 -0
- package/dist/components/drag-and-drop/drag-overlay/DragOverlay.d.ts +25 -0
- package/dist/components/drag-and-drop/drag-overlay/index.d.ts +2 -0
- package/dist/components/drag-and-drop/draggable-container/DraggableContainer.d.ts +29 -0
- package/dist/components/drag-and-drop/draggable-container/index.d.ts +2 -0
- package/dist/components/feedback/confirmation-modal/ConfirmationModal.d.ts +38 -0
- package/dist/components/feedback/toast/Toast.d.ts +29 -0
- package/dist/components/floating-bar/FloatingBar.d.ts +91 -0
- package/dist/components/forms/base-input-field/BaseInputField.d.ts +128 -0
- package/dist/components/forms/checkbox/Checkbox.d.ts +55 -0
- package/dist/components/forms/checkbox/CheckboxComponent.d.ts +9 -0
- package/dist/components/forms/color-picker/ColorPicker.d.ts +60 -0
- package/dist/components/forms/creatable-select/CreatableSelect.d.ts +86 -0
- package/dist/components/forms/currency-input/CurrencyInputField.d.ts +110 -0
- package/dist/components/forms/currency-input/currency.constant.d.ts +13 -0
- package/dist/components/forms/customizable-select-field/CustomizableSelectField.d.ts +126 -0
- package/dist/components/forms/date-range/DateRange.d.ts +73 -0
- package/dist/components/forms/date-range/DateRange2.d.ts +72 -0
- package/dist/components/forms/date-time-field/DateTimeField.d.ts +129 -0
- package/dist/components/forms/debounce-input/DebounceInputField.d.ts +66 -0
- package/dist/components/forms/dynamic-data-input/DynamicDataInput.d.ts +64 -0
- package/dist/components/forms/dynamic-data-input/DynamicDataInputField.d.ts +118 -0
- package/dist/components/forms/field-options/FieldOptions.d.ts +5 -0
- package/dist/components/forms/field-options/Header.d.ts +7 -0
- package/dist/components/forms/field-options/Icon.d.ts +6 -0
- package/dist/components/forms/field-options/Item.d.ts +7 -0
- package/dist/components/forms/field-options/index.d.ts +2 -0
- package/dist/components/forms/field-options/types.d.ts +11 -0
- package/dist/components/forms/file-upload-dragger/FileUpload.d.ts +83 -0
- package/dist/components/forms/file-upload-dragger/icons.d.ts +12 -0
- package/dist/components/forms/formula-input/FormulaInput.d.ts +33 -0
- package/dist/components/forms/formula-input/index.d.ts +3 -0
- package/dist/components/forms/formula-input/utils.d.ts +31 -0
- package/dist/components/forms/icon-picker/IconPicker.d.ts +20 -0
- package/dist/components/forms/input-field/InputField.d.ts +62 -0
- package/dist/components/forms/master-data-input/MasterDataInputField.d.ts +135 -0
- package/dist/components/forms/md-input/MdInput.d.ts +46 -0
- package/dist/components/forms/multi-file-upload/MultiFileUpload.d.ts +78 -0
- package/dist/components/forms/number-input-field/NumberInputField.d.ts +47 -0
- package/dist/components/forms/percentage-input/PercentageInputField.d.ts +107 -0
- package/dist/components/forms/search-bar/SearchBar.d.ts +28 -0
- package/dist/components/forms/select-field/SelectField.d.ts +162 -0
- package/dist/components/forms/text-area-field/TextAreaField.d.ts +114 -0
- package/dist/components/forms/text-field/TextField.d.ts +48 -0
- package/dist/components/forms/toggle/Toggle.d.ts +108 -0
- package/dist/components/icons/AIExtractedIndicator.d.ts +7 -0
- package/dist/components/icons/AIStarIcon.d.ts +8 -0
- package/dist/components/icons/ArchivedIcon.d.ts +7 -0
- package/dist/components/icons/CheckCircle.d.ts +7 -0
- package/dist/components/icons/CheckSmallIcon.d.ts +7 -0
- package/dist/components/icons/CloseIcon.d.ts +16 -0
- package/dist/components/icons/CloseRounded.d.ts +9 -0
- package/dist/components/icons/ComingSoonIcon.d.ts +7 -0
- package/dist/components/icons/EditIcon.d.ts +7 -0
- package/dist/components/icons/HelpIcon.d.ts +6 -0
- package/dist/components/icons/InfoAlert.d.ts +7 -0
- package/dist/components/icons/InfoCircleIcon.d.ts +7 -0
- package/dist/components/icons/LaxIcon.d.ts +6 -0
- package/dist/components/icons/Required.d.ts +3 -0
- package/dist/components/icons/SearchIcon.d.ts +9 -0
- package/dist/components/layout/ComponentLoader.d.ts +20 -0
- package/dist/components/layout/CustomScrollbar.d.ts +46 -0
- package/dist/components/layout/Helmet.d.ts +29 -0
- package/dist/components/layout/HelmetTitle.d.ts +23 -0
- package/dist/components/layout/LogoLoader.d.ts +22 -0
- package/dist/components/layout/PageContainer.d.ts +51 -0
- package/dist/components/layout/index.d.ts +12 -0
- package/dist/components/modal/confirm-popup/ConfirmPopUp.d.ts +26 -0
- package/dist/components/modal/confirm-popup/index.d.ts +2 -0
- package/dist/components/modal/drawer/Drawer.d.ts +35 -0
- package/dist/components/modal/drawer/index.d.ts +2 -0
- package/dist/components/navigation/accordion/Accordion.d.ts +39 -0
- package/dist/components/navigation/accordion/index.d.ts +2 -0
- package/dist/components/navigation/breadcrumbs/BreadCrumb.d.ts +52 -0
- package/dist/components/navigation/breadcrumbs/BreadCrumbItem.d.ts +39 -0
- package/dist/components/navigation/breadcrumbs/index.d.ts +4 -0
- package/dist/components/navigation/stepper/Stepper.d.ts +45 -0
- package/dist/components/navigation/stepper/index.d.ts +2 -0
- package/dist/components/shortcut-kbd/ShortcutKbd.d.ts +26 -0
- package/dist/components/shortcut-kbd/index.d.ts +2 -0
- package/dist/components/sidebar/Sidebar.d.ts +15 -0
- package/dist/components/sidebar/index.d.ts +2 -0
- package/dist/components/tooltip/Tooltip.d.ts +16 -0
- package/dist/components/user-avatar/NameInitialLogo.d.ts +15 -0
- package/dist/components/user-avatar/PersonIcon.d.ts +7 -0
- package/dist/components/user-avatar/StatusInfoRow.d.ts +5 -0
- package/dist/components/user-avatar/UserAvatar.d.ts +53 -0
- package/dist/components/user-avatar/UserAvatarPopper.d.ts +11 -0
- package/dist/components/user-avatar/UserProfilePic.d.ts +15 -0
- package/dist/components/user-avatar/constants.d.ts +8 -0
- package/dist/components/user-avatar/index.d.ts +13 -0
- package/dist/components/user-avatar/useDynamicPosition.d.ts +13 -0
- package/dist/constants/colors.d.ts +263 -0
- package/dist/constants/layout.d.ts +15 -0
- package/dist/constants/toggle.d.ts +12 -0
- package/dist/hooks/useEventListener.d.ts +4 -0
- package/dist/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
- package/dist/hooks/useModalContainer.d.ts +23 -0
- package/dist/hooks/useOS.d.ts +32 -0
- package/dist/hooks/useOutsideClick.d.ts +28 -0
- package/dist/hooks/usePythonSyntax.d.ts +28 -0
- package/dist/hooks/useScrollToTop.d.ts +5 -0
- package/dist/hooks/useTheme.d.ts +6 -0
- package/dist/index.d.ts +214 -0
- package/dist/index.es.js +25 -1
- package/dist/index.umd.js +1 -1
- package/dist/lib/utils.d.ts +2 -0
- package/dist/services/monacoManager.d.ts +28 -0
- package/dist/types/icon-picker.d.ts +2 -0
- package/dist/types/index.d.ts +70 -0
- package/dist/utils/countryFlags.d.ts +5 -0
- package/dist/utils/formatters.d.ts +24 -0
- package/dist/utils/messageConstants.d.ts +88 -0
- package/dist/utils/tagUtils.d.ts +12 -0
- package/dist/utils/utilities.d.ts +24 -0
- package/package.json +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
export interface ContextMenuProps {
|
|
3
|
+
/** Whether the context menu is visible */
|
|
4
|
+
visible: boolean;
|
|
5
|
+
/** X position of the menu */
|
|
6
|
+
xPos: number;
|
|
7
|
+
/** Y position of the menu */
|
|
8
|
+
yPos: number;
|
|
9
|
+
/** Menu content */
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
/** Custom CSS class name */
|
|
12
|
+
className?: string;
|
|
13
|
+
/** Container element ID for the portal (defaults to body) */
|
|
14
|
+
containerId?: string;
|
|
15
|
+
/** Test ID for testing */
|
|
16
|
+
'data-testid'?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* ContextMenu component creates a portal-based context menu at specified coordinates
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* const [contextMenu, setContextMenu] = useState({ visible: false, x: 0, y: 0 });
|
|
24
|
+
*
|
|
25
|
+
* <div onContextMenu={(e) => {
|
|
26
|
+
* e.preventDefault();
|
|
27
|
+
* setContextMenu({ visible: true, x: e.clientX, y: e.clientY });
|
|
28
|
+
* }}>
|
|
29
|
+
* Right click me
|
|
30
|
+
* </div>
|
|
31
|
+
*
|
|
32
|
+
* <ContextMenu
|
|
33
|
+
* visible={contextMenu.visible}
|
|
34
|
+
* xPos={contextMenu.x}
|
|
35
|
+
* yPos={contextMenu.y}
|
|
36
|
+
* >
|
|
37
|
+
* <MenuItem onClick={() => console.log('clicked')}>Action</MenuItem>
|
|
38
|
+
* </ContextMenu>
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export declare const ContextMenu: FC<ContextMenuProps>;
|
|
42
|
+
export default ContextMenu;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Available data types for the icon
|
|
4
|
+
*/
|
|
5
|
+
export declare const APP_DATA_TYPES: {
|
|
6
|
+
readonly BOOLEAN: "boolean";
|
|
7
|
+
readonly CHOICE: "choice";
|
|
8
|
+
readonly CURRENCY: "currency";
|
|
9
|
+
readonly DATE: "date";
|
|
10
|
+
readonly DATETIME: "datetime";
|
|
11
|
+
readonly DYNAMIC: "dynamic";
|
|
12
|
+
readonly EMAIL: "email";
|
|
13
|
+
readonly MASTER_DATA: "master data";
|
|
14
|
+
readonly NUMBER: "number";
|
|
15
|
+
readonly PERCENTAGE: "percentage";
|
|
16
|
+
readonly STRING: "string";
|
|
17
|
+
readonly TAG: "tag";
|
|
18
|
+
readonly TEXT: "text";
|
|
19
|
+
readonly URL: "url";
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Options for data type select fields
|
|
23
|
+
*/
|
|
24
|
+
export declare const APP_DATA_TYPES_OPTIONS: ({
|
|
25
|
+
label: string;
|
|
26
|
+
value: "boolean";
|
|
27
|
+
} | {
|
|
28
|
+
label: string;
|
|
29
|
+
value: "choice";
|
|
30
|
+
} | {
|
|
31
|
+
label: string;
|
|
32
|
+
value: "currency";
|
|
33
|
+
} | {
|
|
34
|
+
label: string;
|
|
35
|
+
value: "date";
|
|
36
|
+
} | {
|
|
37
|
+
label: string;
|
|
38
|
+
value: "datetime";
|
|
39
|
+
} | {
|
|
40
|
+
label: string;
|
|
41
|
+
value: "dynamic";
|
|
42
|
+
} | {
|
|
43
|
+
label: string;
|
|
44
|
+
value: "email";
|
|
45
|
+
} | {
|
|
46
|
+
label: string;
|
|
47
|
+
value: "master data";
|
|
48
|
+
} | {
|
|
49
|
+
label: string;
|
|
50
|
+
value: "number";
|
|
51
|
+
} | {
|
|
52
|
+
label: string;
|
|
53
|
+
value: "percentage";
|
|
54
|
+
} | {
|
|
55
|
+
label: string;
|
|
56
|
+
value: "string";
|
|
57
|
+
} | {
|
|
58
|
+
label: string;
|
|
59
|
+
value: "tag";
|
|
60
|
+
} | {
|
|
61
|
+
label: string;
|
|
62
|
+
value: "text";
|
|
63
|
+
} | {
|
|
64
|
+
label: string;
|
|
65
|
+
value: "url";
|
|
66
|
+
})[];
|
|
67
|
+
/**
|
|
68
|
+
* Background colors for light mode
|
|
69
|
+
*/
|
|
70
|
+
export declare const BG_COLORS: Record<string, string>;
|
|
71
|
+
/**
|
|
72
|
+
* Background colors for light mode on hover
|
|
73
|
+
*/
|
|
74
|
+
export declare const BG_COLORS_HOVER: Record<string, string>;
|
|
75
|
+
/**
|
|
76
|
+
* Background colors for dark mode
|
|
77
|
+
*/
|
|
78
|
+
export declare const BG_COLORS_DARK: Record<string, string>;
|
|
79
|
+
/**
|
|
80
|
+
* Background colors for dark mode on hover
|
|
81
|
+
*/
|
|
82
|
+
export declare const BG_COLORS_DARK_HOVER: Record<string, string>;
|
|
83
|
+
export interface DataTypeIconProps {
|
|
84
|
+
/** The data type to display */
|
|
85
|
+
dataType?: string;
|
|
86
|
+
/** Custom tooltip content */
|
|
87
|
+
tooltip?: ReactNode;
|
|
88
|
+
/** Whether dark mode is enabled (passed as prop instead of using context) */
|
|
89
|
+
isDarkMode?: boolean;
|
|
90
|
+
/** Additional CSS class name */
|
|
91
|
+
className?: string;
|
|
92
|
+
/** Test ID for testing */
|
|
93
|
+
'data-testid'?: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* DataTypeIcon displays an icon representing a data type with appropriate styling
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```tsx
|
|
100
|
+
* <DataTypeIcon dataType="text" isDarkMode={false} />
|
|
101
|
+
* <DataTypeIcon dataType="number" tooltip="Custom tooltip" isDarkMode={true} />
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
export declare const DataTypeIcon: FC<DataTypeIconProps>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
export interface DeleteModalProps {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onSuccessClose?: () => void;
|
|
6
|
+
sectionName?: string;
|
|
7
|
+
suffix?: string;
|
|
8
|
+
onAgreementDelete?: () => void;
|
|
9
|
+
from?: string;
|
|
10
|
+
text: string;
|
|
11
|
+
additionalText?: string;
|
|
12
|
+
title: string;
|
|
13
|
+
deleteConfirm?: () => void;
|
|
14
|
+
onDeleteConfirm?: () => void;
|
|
15
|
+
onConfirmDelete?: () => void;
|
|
16
|
+
isLoading?: boolean;
|
|
17
|
+
isMod?: boolean;
|
|
18
|
+
isBooleanButton?: boolean;
|
|
19
|
+
cancelText?: string;
|
|
20
|
+
deleteText?: string;
|
|
21
|
+
yesText?: string;
|
|
22
|
+
noText?: string;
|
|
23
|
+
removeText?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* DeleteModal component for confirming delete operations
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```tsx
|
|
30
|
+
* <DeleteModal
|
|
31
|
+
* visible={isOpen}
|
|
32
|
+
* onClose={() => setIsOpen(false)}
|
|
33
|
+
* title="Delete Item"
|
|
34
|
+
* text="Are you sure you want to delete"
|
|
35
|
+
* sectionName="this item"
|
|
36
|
+
* onConfirmDelete={handleDelete}
|
|
37
|
+
* />
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export declare const DeleteModal: FC<DeleteModalProps>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { type Change } from "diff";
|
|
2
|
+
/**
|
|
3
|
+
* Available diff types for comparison
|
|
4
|
+
*/
|
|
5
|
+
export type DiffType = "words" | "lines" | "chars";
|
|
6
|
+
/**
|
|
7
|
+
* Theme variants for diff display
|
|
8
|
+
*/
|
|
9
|
+
export type DiffTheme = "default" | "minimal" | "github";
|
|
10
|
+
/**
|
|
11
|
+
* Props for the DiffViewer component
|
|
12
|
+
*/
|
|
13
|
+
export interface DiffViewerProps {
|
|
14
|
+
/** The original/old text content */
|
|
15
|
+
oldText: string;
|
|
16
|
+
/** The new/updated text content */
|
|
17
|
+
newText: string;
|
|
18
|
+
/** Type of diff comparison to perform */
|
|
19
|
+
diffType?: DiffType;
|
|
20
|
+
/** Visual theme for the diff display */
|
|
21
|
+
theme?: DiffTheme;
|
|
22
|
+
/** Whether to show line numbers (for line diffs) */
|
|
23
|
+
showLineNumbers?: boolean;
|
|
24
|
+
/** Whether to enable word wrapping */
|
|
25
|
+
wordWrap?: boolean;
|
|
26
|
+
/** Additional CSS classes for the wrapper */
|
|
27
|
+
className?: string;
|
|
28
|
+
/** Additional CSS classes for diff segments */
|
|
29
|
+
segmentClassName?: string;
|
|
30
|
+
/** Custom styles for added content */
|
|
31
|
+
addedClassName?: string;
|
|
32
|
+
/** Custom styles for removed content */
|
|
33
|
+
removedClassName?: string;
|
|
34
|
+
/** Custom styles for unchanged content */
|
|
35
|
+
unchangedClassName?: string;
|
|
36
|
+
/** Whether to ignore case differences */
|
|
37
|
+
ignoreCase?: boolean;
|
|
38
|
+
/** Whether to ignore whitespace (for line diffs only) */
|
|
39
|
+
ignoreWhitespace?: boolean;
|
|
40
|
+
/** Maximum width for the diff container */
|
|
41
|
+
maxWidth?: string | number;
|
|
42
|
+
/** Custom aria-label for accessibility */
|
|
43
|
+
"aria-label"?: string;
|
|
44
|
+
/** Callback when diff changes are calculated */
|
|
45
|
+
onDiffCalculated?: (changes: Change[]) => void;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* DiffViewer component displays text differences with visual highlighting
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```tsx
|
|
52
|
+
* <DiffViewer
|
|
53
|
+
* oldText="Hello world"
|
|
54
|
+
* newText="Hello beautiful world"
|
|
55
|
+
* diffType="words"
|
|
56
|
+
* theme="github"
|
|
57
|
+
* />
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare const DiffViewer: import("react").ForwardRefExoticComponent<DiffViewerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
61
|
+
/**
|
|
62
|
+
* Legacy export for backward compatibility
|
|
63
|
+
*/
|
|
64
|
+
export declare const InlineDiffHighlighter: import("react").ForwardRefExoticComponent<DiffViewerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { FC, ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Props for the Divider component
|
|
4
|
+
*/
|
|
5
|
+
export interface DividerProps {
|
|
6
|
+
/** Optional content to display in the center of the divider */
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
/** Additional CSS classes */
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Divider component displays a horizontal line with optional centered content
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* <Divider />
|
|
17
|
+
* <Divider>OR</Divider>
|
|
18
|
+
* <Divider className="my-4">Section</Divider>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare const Divider: FC<DividerProps>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
export declare const TABS: readonly ["JSON", "Grid"];
|
|
3
|
+
export type TTabKey = (typeof TABS)[number];
|
|
4
|
+
export interface DynamicDataModalProps {
|
|
5
|
+
isVisible: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
onChange: (value: string) => void;
|
|
8
|
+
defaultValue: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
saveText?: string;
|
|
11
|
+
width?: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* DynamicDataModal component for editing JSON data
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* <DynamicDataModal
|
|
19
|
+
* isVisible={isOpen}
|
|
20
|
+
* onClose={() => setIsOpen(false)}
|
|
21
|
+
* onChange={handleChange}
|
|
22
|
+
* defaultValue={jsonData}
|
|
23
|
+
* />
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare const DynamicDataModal: FC<DynamicDataModalProps>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
interface DynamicItemsCellItem {
|
|
2
|
+
id?: string | number;
|
|
3
|
+
[key: string]: unknown;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Props for the DynamicItemsCell component
|
|
7
|
+
*/
|
|
8
|
+
export interface DynamicItemsCellProps<T extends DynamicItemsCellItem> {
|
|
9
|
+
/** Array of items to display */
|
|
10
|
+
items: T[];
|
|
11
|
+
/** Whether dark mode is enabled */
|
|
12
|
+
isDarkMode: boolean;
|
|
13
|
+
/** Function to extract label from item */
|
|
14
|
+
getLabel: (item: T) => string;
|
|
15
|
+
/** Function to extract color from item */
|
|
16
|
+
getColor: (item: T) => string;
|
|
17
|
+
/** Function to extract unique ID from item */
|
|
18
|
+
getId?: (item: T) => string | number;
|
|
19
|
+
/** Color for the "more" tag */
|
|
20
|
+
moreTagColor?: string;
|
|
21
|
+
/** Whether to use hash color generation */
|
|
22
|
+
useHashColor?: boolean;
|
|
23
|
+
/** Tooltip placement */
|
|
24
|
+
tooltipPlacement?: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
25
|
+
/** Additional CSS classes */
|
|
26
|
+
className?: string;
|
|
27
|
+
/** Container width for calculating visible items */
|
|
28
|
+
containerWidth?: number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* DynamicItemsCell component displays a list of tags that automatically
|
|
32
|
+
* truncates based on container width and shows overflow count
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```tsx
|
|
36
|
+
* <DynamicItemsCell
|
|
37
|
+
* items={[{ id: 1, name: "Tag 1", color: "blue" }, { id: 2, name: "Tag 2", color: "green" }]}
|
|
38
|
+
* isDarkMode={false}
|
|
39
|
+
* getLabel={(item) => item.name}
|
|
40
|
+
* getColor={(item) => item.color}
|
|
41
|
+
* containerWidth={300}
|
|
42
|
+
* />
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
declare const DynamicItemsCellComponent: {
|
|
46
|
+
<T extends DynamicItemsCellItem>({ items, isDarkMode, getLabel, getColor, getId, moreTagColor, useHashColor, tooltipPlacement, className, containerWidth, }: DynamicItemsCellProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
displayName: string;
|
|
48
|
+
};
|
|
49
|
+
export declare const DynamicItemsCell: typeof DynamicItemsCellComponent;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
export interface NoDataFoundProps {
|
|
3
|
+
/** Main text to display */
|
|
4
|
+
text: string;
|
|
5
|
+
/** Additional descriptive text */
|
|
6
|
+
additionaltext?: string;
|
|
7
|
+
/** Children elements (e.g., action buttons) */
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
/** Custom icon to display instead of default */
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
/** Custom CSS class name */
|
|
12
|
+
className?: string;
|
|
13
|
+
/** Test ID for testing */
|
|
14
|
+
'data-testid'?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* NoDataFound component displays an empty state message
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```tsx
|
|
21
|
+
* <NoDataFound
|
|
22
|
+
* text="No results found"
|
|
23
|
+
* additionaltext="Try adjusting your search or filters"
|
|
24
|
+
* />
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare const NoDataFound: FC<NoDataFoundProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
export interface NoDataFoundWidgetsProps {
|
|
3
|
+
/** Widget type to determine which illustration to show */
|
|
4
|
+
widgetType?: string;
|
|
5
|
+
/** Custom CSS class name */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Test ID for testing */
|
|
8
|
+
'data-testid'?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* NoDataFoundWidgets component displays an empty state for various widget types
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <NoDataFoundWidgets widgetType="BAR_CHART" />
|
|
16
|
+
* <NoDataFoundWidgets widgetType="PIE_CHART" />
|
|
17
|
+
* <NoDataFoundWidgets widgetType="TABLE" />
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const NoDataFoundWidgets: FC<NoDataFoundWidgetsProps>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { FC, ReactNode } from 'react';
|
|
2
|
+
export interface PageNotFoundProps {
|
|
3
|
+
/** Custom icon to display */
|
|
4
|
+
icon?: ReactNode;
|
|
5
|
+
/** Path to navigate on back to home click */
|
|
6
|
+
homePath?: string;
|
|
7
|
+
/** Custom back to home text */
|
|
8
|
+
backToHomeText?: string;
|
|
9
|
+
/** Custom 404 title */
|
|
10
|
+
title?: string;
|
|
11
|
+
/** Custom subtitle */
|
|
12
|
+
subtitle?: string;
|
|
13
|
+
/** Custom description */
|
|
14
|
+
description?: string;
|
|
15
|
+
/** Custom CSS class name */
|
|
16
|
+
className?: string;
|
|
17
|
+
/** Test ID for testing */
|
|
18
|
+
'data-testid'?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* PageNotFound component displays a 404 error page
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* import { Link } from 'react-router-dom';
|
|
26
|
+
*
|
|
27
|
+
* <PageNotFound
|
|
28
|
+
* linkComponent={Link}
|
|
29
|
+
* homePath="/home"
|
|
30
|
+
* />
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare const PageNotFound: FC<PageNotFoundProps>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
export interface UserNotFoundProps {
|
|
3
|
+
/** Custom CSS class name */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** Title text */
|
|
6
|
+
title?: ReactNode;
|
|
7
|
+
/** Description text */
|
|
8
|
+
description?: ReactNode;
|
|
9
|
+
/** Warning title */
|
|
10
|
+
warningTitle?: string;
|
|
11
|
+
/** Warning description */
|
|
12
|
+
warningDescription?: string;
|
|
13
|
+
/** Custom icon */
|
|
14
|
+
icon?: ReactNode;
|
|
15
|
+
/** Custom warning icon */
|
|
16
|
+
warningIcon?: ReactNode;
|
|
17
|
+
/** Test ID for testing */
|
|
18
|
+
'data-testid'?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* UserNotFound component displays when a user account is not linked
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* <UserNotFound />
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare const UserNotFound: FC<UserNotFoundProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EmptyBarChartData: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EmptyCardListChartData: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EmptyContentChartData: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EmptyCountWidgetData: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EmptyDonutChartData: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EmptyPieChatData: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EmptyTableWidgetData: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EmptyTimelineChartData: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './EmptyBarChartData';
|
|
2
|
+
export * from './EmptyCountWidgetData';
|
|
3
|
+
export * from './EmptyCardChartData';
|
|
4
|
+
export * from './EmptyPieChatData';
|
|
5
|
+
export * from './EmptyDonutChartData';
|
|
6
|
+
export * from './EmptyTimelineChartData';
|
|
7
|
+
export * from './EmptyTableWidgetData';
|
|
8
|
+
export * from './EmptyContentChart';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { NoDataFound } from './NoDataFound';
|
|
2
|
+
export type { NoDataFoundProps } from './NoDataFound';
|
|
3
|
+
export { PageNotFound } from './PageNotFound';
|
|
4
|
+
export type { PageNotFoundProps } from './PageNotFound';
|
|
5
|
+
export { UserNotFound } from './UserNotFound';
|
|
6
|
+
export type { UserNotFoundProps } from './UserNotFound';
|
|
7
|
+
export { EmptyEvent } from './EmptyEvent';
|
|
8
|
+
export type { EmptyEventProps } from './EmptyEvent';
|
|
9
|
+
export { NoDataFoundWidgets } from './NoDataFoundWidgets';
|
|
10
|
+
export type { NoDataFoundWidgetsProps } from './NoDataFoundWidgets';
|
|
11
|
+
export { EmptyBarChartData, EmptyCardListChartData, EmptyContentChartData, EmptyCountWidgetData, EmptyDonutChartData, EmptyPieChatData, EmptyTableWidgetData, EmptyTimelineChartData, } from './empty-widget';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
export interface ErrorModalProps {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
content?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
okText?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* ErrorModal component for displaying error messages
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <ErrorModal
|
|
15
|
+
* visible={isOpen}
|
|
16
|
+
* onClose={() => setIsOpen(false)}
|
|
17
|
+
* title="Error"
|
|
18
|
+
* content="An error occurred while processing your request."
|
|
19
|
+
* />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare const ErrorModal: FC<ErrorModalProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FloatingElementWrapper: ({ children, showAsModal, ...props }: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
export interface InProgressProps {
|
|
3
|
+
containerClass?: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* InProgress component for displaying a coming soon message
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <InProgress containerClass="custom-class" />
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare const InProgress: FC<InProgressProps>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction, FC } from 'react';
|
|
2
|
+
export interface JsonGridViewerProps {
|
|
3
|
+
/** Whether the viewer is in full screen mode */
|
|
4
|
+
isFullScreen: boolean;
|
|
5
|
+
/** Whether all nodes are expanded */
|
|
6
|
+
allExpanded: boolean;
|
|
7
|
+
/** Toggle all nodes expanded/collapsed */
|
|
8
|
+
toggleAll: () => void;
|
|
9
|
+
/** Whether edit mode is enabled */
|
|
10
|
+
isEditMode: boolean;
|
|
11
|
+
/** Whether dark mode is enabled */
|
|
12
|
+
isDarkMode: boolean;
|
|
13
|
+
/** Custom styles for the grid */
|
|
14
|
+
style: React.CSSProperties;
|
|
15
|
+
/** JSON value as a string */
|
|
16
|
+
value: string;
|
|
17
|
+
/** Callback when the JSON value changes */
|
|
18
|
+
onChange?: (v: string) => void;
|
|
19
|
+
/** Setter for add key modal open state */
|
|
20
|
+
setIsAddKeyModalOpen: Dispatch<SetStateAction<boolean>>;
|
|
21
|
+
/** Whether the add key modal is open */
|
|
22
|
+
isAddKeyModalOpen: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* JsonGridViewer component provides a visual grid editor for JSON data
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* const [value, setValue] = useState('{"key": "value"}');
|
|
30
|
+
* const [allExpanded, setAllExpanded] = useState(false);
|
|
31
|
+
* const [isAddKeyModalOpen, setIsAddKeyModalOpen] = useState(false);
|
|
32
|
+
*
|
|
33
|
+
* <JsonGridViewer
|
|
34
|
+
* isFullScreen={false}
|
|
35
|
+
* allExpanded={allExpanded}
|
|
36
|
+
* toggleAll={() => setAllExpanded(!allExpanded)}
|
|
37
|
+
* isEditMode={true}
|
|
38
|
+
* isDarkMode={false}
|
|
39
|
+
* style={{ maxHeight: '500px' }}
|
|
40
|
+
* value={value}
|
|
41
|
+
* onChange={setValue}
|
|
42
|
+
* setIsAddKeyModalOpen={setIsAddKeyModalOpen}
|
|
43
|
+
* isAddKeyModalOpen={isAddKeyModalOpen}
|
|
44
|
+
* />
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export declare const JsonGridViewer: FC<JsonGridViewerProps>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IJsonGridViewerContext } from './types';
|
|
2
|
+
export declare const JsonGridViewerContext: import("react").Context<IJsonGridViewerContext>;
|
|
3
|
+
export declare const JsonGridViewerContextProvider: import("react").Provider<IJsonGridViewerContext>;
|
|
4
|
+
export declare const useJsonGridViewerContext: () => IJsonGridViewerContext;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JsonArray, JsonObject, JsonValue } from './types';
|
|
2
|
+
export declare const useCheckboxSelection: (selectedPaths: string[], setSelectedPaths: (paths: string[]) => void) => {
|
|
3
|
+
handleCheckboxChange: (fullPath: string, isChecked: boolean, value: JsonValue, isExpandable: boolean) => void;
|
|
4
|
+
isPathSelected: (path: string) => boolean;
|
|
5
|
+
getAllChildPaths: (parentPath: string, sourceData: JsonObject | JsonArray) => string[];
|
|
6
|
+
};
|