@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,20 @@
|
|
|
1
|
+
import type { FC } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Props for the ComponentLoader component
|
|
4
|
+
*/
|
|
5
|
+
export interface ComponentLoaderProps {
|
|
6
|
+
/** Additional CSS classes for the wrapper */
|
|
7
|
+
className?: string;
|
|
8
|
+
/** Label text to display above the loader */
|
|
9
|
+
label: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* ComponentLoader displays a loading indicator with a label
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* <ComponentLoader label="Loading..." />
|
|
17
|
+
* <ComponentLoader label="Loading data" className="my-4" />
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const ComponentLoader: FC<ComponentLoaderProps>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Scrollbars } from 'react-custom-scrollbars-2';
|
|
3
|
+
import type { ScrollbarProps } from 'react-custom-scrollbars-2';
|
|
4
|
+
/**
|
|
5
|
+
* Custom scrollbar handle for external control
|
|
6
|
+
*/
|
|
7
|
+
export interface CustomScrollbarHandle {
|
|
8
|
+
/** Get the Scrollbars instance */
|
|
9
|
+
getInstance?: Scrollbars | null;
|
|
10
|
+
/** Scroll to the top of the container */
|
|
11
|
+
scrollToTop?: () => void;
|
|
12
|
+
/** Scroll to the right of the container */
|
|
13
|
+
scrollToRight?: () => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Props for the CustomScrollbar component
|
|
17
|
+
*/
|
|
18
|
+
export interface CustomScrollbarProps {
|
|
19
|
+
/** Content to render inside the scrollbar */
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
/** Whether to adjust height based on screen size */
|
|
22
|
+
adjustWithScreen?: boolean;
|
|
23
|
+
/** Additional CSS classes for the inner view */
|
|
24
|
+
renderViewClassName?: string;
|
|
25
|
+
/** Whether to use full height */
|
|
26
|
+
fullHeight?: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* CustomScrollbar component provides a styled scrollable container
|
|
30
|
+
* with custom scrollbar appearance
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```tsx
|
|
34
|
+
* <CustomScrollbar>
|
|
35
|
+
* <div>Scrollable content...</div>
|
|
36
|
+
* </CustomScrollbar>
|
|
37
|
+
*
|
|
38
|
+
* // With ref for programmatic control
|
|
39
|
+
* const scrollRef = useRef<CustomScrollbarHandle>(null);
|
|
40
|
+
* <CustomScrollbar ref={scrollRef}>
|
|
41
|
+
* <div>Content...</div>
|
|
42
|
+
* </CustomScrollbar>
|
|
43
|
+
* // scrollRef.current?.scrollToTop();
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare const CustomScrollbar: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<CustomScrollbarProps & ScrollbarProps, "ref"> & React.RefAttributes<CustomScrollbarHandle>>>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { FC, ReactNode } from "react";
|
|
2
|
+
type TMeta = {
|
|
3
|
+
name: string;
|
|
4
|
+
content: string;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Props for the Helmet component
|
|
8
|
+
*/
|
|
9
|
+
export interface HelmetProps {
|
|
10
|
+
/** The document title to set */
|
|
11
|
+
title: string;
|
|
12
|
+
/** Optional meta tag configuration */
|
|
13
|
+
meta?: TMeta;
|
|
14
|
+
/** Additional children to render within Helmet */
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Helmet component for managing document head metadata
|
|
19
|
+
*
|
|
20
|
+
* Note: Requires react-helmet-async to be installed and configured
|
|
21
|
+
* in the parent application with HelmetProvider.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* <Helmet title="Dashboard" meta={{ name: "description", content: "Dashboard page" }} />
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare const Helmet: FC<HelmetProps>;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Props for the HelmetTitle component
|
|
4
|
+
*/
|
|
5
|
+
export interface HelmetTitleProps {
|
|
6
|
+
/** The title to display (will be used by parent app's Helmet integration) */
|
|
7
|
+
title?: string;
|
|
8
|
+
/** Additional children to render */
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* HelmetTitle component for managing document title
|
|
13
|
+
*
|
|
14
|
+
* Note: This is a simple wrapper component. The parent application should
|
|
15
|
+
* integrate this with react-helmet-async or similar library for actual
|
|
16
|
+
* document title management.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <HelmetTitle title="Dashboard" />
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare const HelmetTitle: FC<HelmetTitleProps>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { FC } from "react";
|
|
2
|
+
type ClassValue = string | number | boolean | undefined | null | ClassValue[];
|
|
3
|
+
/**
|
|
4
|
+
* Props for the LogoLoader component
|
|
5
|
+
*/
|
|
6
|
+
export interface LogoLoaderProps {
|
|
7
|
+
/** Additional CSS classes for the wrapper */
|
|
8
|
+
classValue?: ClassValue;
|
|
9
|
+
/** Whether dark mode is enabled */
|
|
10
|
+
isDarkMode: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* LogoLoader displays an animated LAX logo with a loading bar
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* <LogoLoader isDarkMode={false} />
|
|
18
|
+
* <LogoLoader isDarkMode={true} classValue="h-screen" />
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare const LogoLoader: FC<LogoLoaderProps>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Props for the PageContainer component
|
|
4
|
+
*/
|
|
5
|
+
export interface PageContainerProps {
|
|
6
|
+
/** Page title for document head */
|
|
7
|
+
title?: string;
|
|
8
|
+
/** Main content to render */
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
/** Current page mode (edit, comparison, etc.) */
|
|
11
|
+
mode?: string | null;
|
|
12
|
+
/** Display ID for edit mode banner */
|
|
13
|
+
displayId?: string | null;
|
|
14
|
+
/** Disable padding on the content area */
|
|
15
|
+
noPadding?: boolean;
|
|
16
|
+
/** Additional CSS classes for the container */
|
|
17
|
+
className?: string;
|
|
18
|
+
/** Hide the banner even if mode/displayId would show it */
|
|
19
|
+
noBanner?: boolean;
|
|
20
|
+
/** Additional CSS classes for the content area */
|
|
21
|
+
contentClassName?: string;
|
|
22
|
+
/** Callback when banner is clicked */
|
|
23
|
+
onBannerClick?: () => void;
|
|
24
|
+
/** Enable scroll to top on mount */
|
|
25
|
+
scrollToTopOnMount?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* PageContainer component provides a consistent layout wrapper for pages
|
|
29
|
+
*
|
|
30
|
+
* Features:
|
|
31
|
+
* - Automatic height calculation
|
|
32
|
+
* - Mode-based banners (edit/comparison)
|
|
33
|
+
* - Flexible content area
|
|
34
|
+
* - Dark mode support
|
|
35
|
+
* - Smooth transitions
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```tsx
|
|
39
|
+
* <PageContainer
|
|
40
|
+
* title="Dashboard"
|
|
41
|
+
* mode="edit"
|
|
42
|
+
* displayId="AGR-123"
|
|
43
|
+
* >
|
|
44
|
+
* <YourContent />
|
|
45
|
+
* </PageContainer>
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
export declare const PageContainer: {
|
|
49
|
+
({ title, children, mode, displayId, noPadding, className, noBanner, contentClassName, onBannerClick, scrollToTopOnMount, }: PageContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
displayName: string;
|
|
51
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { PageContainer } from "./PageContainer";
|
|
2
|
+
export type { PageContainerProps } from "./PageContainer";
|
|
3
|
+
export { HelmetTitle } from "./HelmetTitle";
|
|
4
|
+
export type { HelmetTitleProps } from "./HelmetTitle";
|
|
5
|
+
export { Helmet } from "./Helmet";
|
|
6
|
+
export type { HelmetProps } from "./Helmet";
|
|
7
|
+
export { ComponentLoader } from "./ComponentLoader";
|
|
8
|
+
export type { ComponentLoaderProps } from "./ComponentLoader";
|
|
9
|
+
export { LogoLoader } from "./LogoLoader";
|
|
10
|
+
export type { LogoLoaderProps } from "./LogoLoader";
|
|
11
|
+
export { CustomScrollbar } from "./CustomScrollbar";
|
|
12
|
+
export type { CustomScrollbarProps, CustomScrollbarHandle } from "./CustomScrollbar";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type IButtonStatus = 'primary' | 'secondary' | 'secondary-neutral' | 'error' | 'success' | 'warning';
|
|
3
|
+
export type ConfirmPopUpProps = {
|
|
4
|
+
children?: React.ReactElement;
|
|
5
|
+
onCancel?: (closeByIcon?: boolean) => void;
|
|
6
|
+
onOk: () => void;
|
|
7
|
+
title: string;
|
|
8
|
+
content: string;
|
|
9
|
+
footer?: {
|
|
10
|
+
justify?: string;
|
|
11
|
+
okText?: string;
|
|
12
|
+
cancelText?: string;
|
|
13
|
+
okBtnType?: IButtonStatus;
|
|
14
|
+
cancelBtnType?: IButtonStatus;
|
|
15
|
+
};
|
|
16
|
+
async?: (cb: ({ error }: {
|
|
17
|
+
error: boolean;
|
|
18
|
+
}) => void) => Promise<void>;
|
|
19
|
+
width?: number;
|
|
20
|
+
forceVisible?: boolean;
|
|
21
|
+
isVisibleOutside?: boolean;
|
|
22
|
+
ableToConfirmByChildren?: boolean;
|
|
23
|
+
parentContainer?: string;
|
|
24
|
+
};
|
|
25
|
+
declare const _default: React.NamedExoticComponent<ConfirmPopUpProps>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Drawer as AntDrawer } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export type DrawerProps = {
|
|
4
|
+
id?: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
open: boolean;
|
|
8
|
+
title: React.ReactNode;
|
|
9
|
+
parentContainer?: string;
|
|
10
|
+
resizable?: boolean;
|
|
11
|
+
width?: number;
|
|
12
|
+
placement?: 'left' | 'right' | 'top' | 'bottom';
|
|
13
|
+
closable?: boolean;
|
|
14
|
+
mask?: boolean;
|
|
15
|
+
getContainer?: false | HTMLElement | (() => HTMLElement);
|
|
16
|
+
zIndex?: number;
|
|
17
|
+
footer?: React.ReactNode;
|
|
18
|
+
} & React.ComponentProps<typeof AntDrawer>;
|
|
19
|
+
/**
|
|
20
|
+
* Drawer component for sliding panels from screen edges
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* <Drawer
|
|
25
|
+
* open={isOpen}
|
|
26
|
+
* onClose={() => setIsOpen(false)}
|
|
27
|
+
* title="Drawer Title"
|
|
28
|
+
* width={400}
|
|
29
|
+
* >
|
|
30
|
+
* <div>Drawer content</div>
|
|
31
|
+
* </Drawer>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare const Drawer: React.FC<DrawerProps>;
|
|
35
|
+
export default Drawer;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { FC, HTMLAttributes } from 'react';
|
|
2
|
+
export type AccordionProps = HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
title: any;
|
|
4
|
+
toggle: () => void;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
hoveringIndex?: number | null;
|
|
7
|
+
index?: number;
|
|
8
|
+
viewOnly?: boolean;
|
|
9
|
+
onTitleClick?: (e: React.MouseEvent) => void;
|
|
10
|
+
onSelect?: () => void;
|
|
11
|
+
isChecked?: boolean;
|
|
12
|
+
subTitle?: string;
|
|
13
|
+
noSpace?: boolean;
|
|
14
|
+
isDraggable?: boolean;
|
|
15
|
+
sortableConfig?: Record<string, any>;
|
|
16
|
+
headerClass?: string;
|
|
17
|
+
icon?: JSX.Element;
|
|
18
|
+
additionalHeader?: JSX.Element;
|
|
19
|
+
id: string;
|
|
20
|
+
isEditMode?: boolean;
|
|
21
|
+
mainClass?: string;
|
|
22
|
+
childrenClass?: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Accordion component for collapsible content sections
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* <Accordion
|
|
30
|
+
* id="my-accordion"
|
|
31
|
+
* title="Section Title"
|
|
32
|
+
* isOpen={isOpen}
|
|
33
|
+
* toggle={() => setIsOpen(!isOpen)}
|
|
34
|
+
* >
|
|
35
|
+
* <div>Accordion content</div>
|
|
36
|
+
* </Accordion>
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export declare const Accordion: FC<AccordionProps>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { FC, ReactNode } from "react";
|
|
2
|
+
import { type TBreadCrumbItem } from "./BreadCrumbItem";
|
|
3
|
+
/**
|
|
4
|
+
* Arrow icon for breadcrumb separators
|
|
5
|
+
*/
|
|
6
|
+
export declare const ArrowBreadCums: ({ fill, size, className, }: {
|
|
7
|
+
fill?: string;
|
|
8
|
+
size?: number;
|
|
9
|
+
className?: string;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
/**
|
|
12
|
+
* Props for the BreadCrumb component
|
|
13
|
+
*/
|
|
14
|
+
export interface BreadCrumbProps {
|
|
15
|
+
/** Array of breadcrumb items to display */
|
|
16
|
+
items: TBreadCrumbItem[];
|
|
17
|
+
/** Visual variant of the breadcrumb */
|
|
18
|
+
variant?: "primary" | "secondary";
|
|
19
|
+
/** Click handler when a breadcrumb item is clicked */
|
|
20
|
+
onClick?: (id: string | number) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Custom link renderer for navigation
|
|
23
|
+
* Allows integration with any routing library (react-router, next/link, etc.)
|
|
24
|
+
* If not provided, items will be rendered as clickable divs
|
|
25
|
+
*/
|
|
26
|
+
renderLink?: (item: TBreadCrumbItem, children: ReactNode, isLastItem: boolean) => ReactNode;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* BreadCrumb component displays a navigation trail with animated items
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* // Basic usage with onClick handler
|
|
34
|
+
* <BreadCrumb
|
|
35
|
+
* items={[
|
|
36
|
+
* { id: "1", title: "Home" },
|
|
37
|
+
* { id: "2", title: "Products" },
|
|
38
|
+
* { id: "3", title: "Product Details" }
|
|
39
|
+
* ]}
|
|
40
|
+
* onClick={(id) => navigate(id)}
|
|
41
|
+
* />
|
|
42
|
+
*
|
|
43
|
+
* // With custom link renderer (e.g., react-router)
|
|
44
|
+
* <BreadCrumb
|
|
45
|
+
* items={items}
|
|
46
|
+
* renderLink={(item, children) => (
|
|
47
|
+
* <Link to={item.link || "/"}>{children}</Link>
|
|
48
|
+
* )}
|
|
49
|
+
* />
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export declare const BreadCrumb: FC<BreadCrumbProps>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Breadcrumb item data structure
|
|
3
|
+
*/
|
|
4
|
+
export interface TBreadCrumbItem {
|
|
5
|
+
/** Unique identifier for the item */
|
|
6
|
+
id?: string | number;
|
|
7
|
+
/** Display title for the breadcrumb item */
|
|
8
|
+
title: string;
|
|
9
|
+
/** Navigation link URL */
|
|
10
|
+
link?: string;
|
|
11
|
+
/** Optional source for navigation state */
|
|
12
|
+
source?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Props for the BreadCrumbItem component
|
|
16
|
+
*/
|
|
17
|
+
export interface BreadCrumbItemProps {
|
|
18
|
+
/** The breadcrumb item data */
|
|
19
|
+
item: TBreadCrumbItem;
|
|
20
|
+
/** Visual variant of the breadcrumb */
|
|
21
|
+
variant?: "primary" | "secondary";
|
|
22
|
+
/** Whether this is the last item in the breadcrumb trail */
|
|
23
|
+
isLastItem?: boolean;
|
|
24
|
+
/** Click handler when the item is clicked */
|
|
25
|
+
onClick?: (id: string | number) => void;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* BreadCrumbItem component displays a single breadcrumb item with appropriate styling
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```tsx
|
|
32
|
+
* <BreadCrumbItem
|
|
33
|
+
* item={{ id: "1", title: "Home", link: "/" }}
|
|
34
|
+
* variant="primary"
|
|
35
|
+
* isLastItem={false}
|
|
36
|
+
* />
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export declare const BreadCrumbItem: import("react").ForwardRefExoticComponent<BreadCrumbItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export type TStep = {
|
|
2
|
+
label: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
isLocked?: boolean;
|
|
5
|
+
tooltipText?: string;
|
|
6
|
+
};
|
|
7
|
+
export type TStepperProps = {
|
|
8
|
+
steps: TStep[];
|
|
9
|
+
currentStep: number;
|
|
10
|
+
onClick?: (index: number) => void;
|
|
11
|
+
appearance?: 'linear' | 'parallel';
|
|
12
|
+
labelPosition?: 'top' | 'bottom' | 'inline' | 'top-right' | 'bottom-right';
|
|
13
|
+
className?: string;
|
|
14
|
+
showIndex?: boolean;
|
|
15
|
+
disableOneMore?: boolean;
|
|
16
|
+
lockConfig?: {
|
|
17
|
+
isLocked?: boolean;
|
|
18
|
+
tooltipText?: string;
|
|
19
|
+
};
|
|
20
|
+
/** Whether the main sidebar is open (affects responsive calculations) */
|
|
21
|
+
isMainSideBarOpen?: boolean;
|
|
22
|
+
/** Whether the authoring panel is open (affects responsive calculations) */
|
|
23
|
+
isAuthoringOpen?: boolean;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Stepper component for multi-step workflows
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```tsx
|
|
30
|
+
* <Stepper
|
|
31
|
+
* steps={[
|
|
32
|
+
* { label: 'Step 1', description: 'First step' },
|
|
33
|
+
* { label: 'Step 2', description: 'Second step' },
|
|
34
|
+
* { label: 'Step 3', description: 'Third step' },
|
|
35
|
+
* ]}
|
|
36
|
+
* currentStep={1}
|
|
37
|
+
* onClick={(index) => setCurrentStep(index)}
|
|
38
|
+
* />
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
declare const Stepper: {
|
|
42
|
+
({ steps, currentStep, appearance, labelPosition, onClick, className, showIndex, disableOneMore, isMainSideBarOpen, isAuthoringOpen, }: TStepperProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
displayName: string;
|
|
44
|
+
};
|
|
45
|
+
export default Stepper;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type ShortcutKbdVariant = 'dark' | 'light';
|
|
2
|
+
export interface ShortcutKbdProps {
|
|
3
|
+
/** Array of keyboard shortcut keys to display (e.g., ['Meta', 'S'] or ['Ctrl', 'Enter']) */
|
|
4
|
+
shortcuts: string[];
|
|
5
|
+
/** Visual variant of the keyboard shortcuts */
|
|
6
|
+
variant?: ShortcutKbdVariant;
|
|
7
|
+
/** Additional CSS class name */
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* ShortcutKbd component displays keyboard shortcuts with OS-aware key symbols.
|
|
12
|
+
*
|
|
13
|
+
* Keys like 'Meta', 'Alt', 'Shift', 'Control', 'Enter', 'Delete' are automatically
|
|
14
|
+
* converted to OS-specific symbols (e.g., ⌘ on macOS, Ctrl on Windows/Linux).
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* // macOS: Shows "⌘ S", Windows: Shows "Ctrl S"
|
|
19
|
+
* <ShortcutKbd shortcuts={['Meta', 'S']} />
|
|
20
|
+
*
|
|
21
|
+
* // Light variant for dark backgrounds
|
|
22
|
+
* <ShortcutKbd shortcuts={['Meta', 'Shift', 'P']} variant="light" />
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare const ShortcutKbd: ({ shortcuts, variant, className, }: ShortcutKbdProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export default ShortcutKbd;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export type SidebarProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
/** Whether the sidebar should take full screen width minus the main sidebar */
|
|
5
|
+
isFullScreen?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Default width when not in fullscreen mode */
|
|
8
|
+
defaultSize?: number | string;
|
|
9
|
+
/** Custom height. Defaults to viewport height minus navbar */
|
|
10
|
+
height?: string;
|
|
11
|
+
/** Whether the main sidebar is expanded */
|
|
12
|
+
isMainSideBarOpen?: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: React.NamedExoticComponent<SidebarProps>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import './styles.css';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type TooltipPlacement = 'auto' | 'auto-start' | 'auto-end' | 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
|
|
4
|
+
export interface TooltipProps {
|
|
5
|
+
title: React.ReactNode;
|
|
6
|
+
placement?: TooltipPlacement;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
hideTooltip?: boolean;
|
|
10
|
+
delayShow?: boolean;
|
|
11
|
+
whiteSpace?: 'normal' | 'nowrap' | 'pre' | 'pre-wrap' | 'pre-line' | 'initial' | 'inherit';
|
|
12
|
+
/** Array of keyboard shortcut keys to display (e.g., ['Cmd', 'S'] or ['Ctrl', 'Enter']) */
|
|
13
|
+
shortcuts?: string[];
|
|
14
|
+
}
|
|
15
|
+
declare const Tooltip: ({ children, title, hideTooltip, delayShow, whiteSpace, placement, className, shortcuts, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default Tooltip;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
export type NameInitialLogoProps = {
|
|
3
|
+
initials: string;
|
|
4
|
+
rounded: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* NameInitialLogo component displays user initials in a styled container
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <NameInitialLogo initials="JD" rounded={true} />
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare const NameInitialLogo: FC<NameInitialLogoProps>;
|