@skalar-saas/design-system 0.1.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +68 -0
- package/dist/design-system.css +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useDebounce.d.ts +7 -0
- package/dist/index-CVAu6nrM.cjs +15 -0
- package/dist/index-CVAu6nrM.cjs.map +1 -0
- package/dist/index-D9hMGhK3.js +6790 -0
- package/dist/index-D9hMGhK3.js.map +1 -0
- package/dist/index.d.ts +130 -0
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +11508 -0
- package/dist/index.mjs.map +1 -0
- package/dist/layout/Container/Container.d.ts +62 -0
- package/dist/layout/Container/index.d.ts +2 -0
- package/dist/layout/PanelLayout/Panel.d.ts +20 -0
- package/dist/layout/PanelLayout/PanelContext.d.ts +10 -0
- package/dist/layout/PanelLayout/PanelLayout.d.ts +28 -0
- package/dist/layout/PanelLayout/PanelLayout.types.d.ts +146 -0
- package/dist/layout/PanelLayout/PanelMain.d.ts +19 -0
- package/dist/layout/PanelLayout/index.d.ts +6 -0
- package/dist/layout/PanelLayout/panelUtils.d.ts +74 -0
- package/dist/layout/PanelLayout/usePanelState.d.ts +25 -0
- package/dist/layout/Section/Section.d.ts +20 -0
- package/dist/layout/Section/index.d.ts +2 -0
- package/dist/layout/SplitPanelLayout/SplitPanelLayout.d.ts +57 -0
- package/dist/layout/SplitPanelLayout/index.d.ts +2 -0
- package/dist/layout/constants.d.ts +348 -0
- package/dist/layout/index.d.ts +31 -0
- package/dist/shared/icons/AICommentaryIcon.d.ts +11 -0
- package/dist/shared/icons/AIMessage.d.ts +2 -0
- package/dist/shared/icons/Add2Icon.d.ts +12 -0
- package/dist/shared/icons/AddIcon.d.ts +7 -0
- package/dist/shared/icons/ArrowNarrowDownIcon.d.ts +6 -0
- package/dist/shared/icons/BookOutlined.d.ts +10 -0
- package/dist/shared/icons/Box2Icon.d.ts +6 -0
- package/dist/shared/icons/BoxIcon.d.ts +11 -0
- package/dist/shared/icons/CalendarIcon.d.ts +11 -0
- package/dist/shared/icons/CalendarIcon2.d.ts +12 -0
- package/dist/shared/icons/ChatIcon.d.ts +11 -0
- package/dist/shared/icons/ChevronDownIcon.d.ts +6 -0
- package/dist/shared/icons/ChevronUpIcon.d.ts +6 -0
- package/dist/shared/icons/CircleIcon.d.ts +6 -0
- package/dist/shared/icons/CopyIcon.d.ts +12 -0
- package/dist/shared/icons/DataArrowsOutlined.d.ts +10 -0
- package/dist/shared/icons/Edit2Icon.d.ts +12 -0
- package/dist/shared/icons/EyeIcon.d.ts +12 -0
- package/dist/shared/icons/EyeOffIcon.d.ts +12 -0
- package/dist/shared/icons/FilterFunnel02Icon.d.ts +6 -0
- package/dist/shared/icons/FlashIcon.d.ts +12 -0
- package/dist/shared/icons/GridIcon.d.ts +12 -0
- package/dist/shared/icons/InfoIcon.d.ts +12 -0
- package/dist/shared/icons/LayerIcon.d.ts +12 -0
- package/dist/shared/icons/LeftArrowIcon.d.ts +5 -0
- package/dist/shared/icons/MaximizeIcon.d.ts +12 -0
- package/dist/shared/icons/MessageProgrammingOutlined.d.ts +10 -0
- package/dist/shared/icons/MoreIcon.d.ts +12 -0
- package/dist/shared/icons/PlusCircleIcon.d.ts +6 -0
- package/dist/shared/icons/ProgrammingArrowsOutlined.d.ts +10 -0
- package/dist/shared/icons/QuestionCircle.d.ts +11 -0
- package/dist/shared/icons/RightArrowIcon.d.ts +5 -0
- package/dist/shared/icons/ShareIcon.d.ts +6 -0
- package/dist/shared/icons/SkalarLogo.d.ts +13 -0
- package/dist/shared/icons/SkalarLogoNoText.d.ts +13 -0
- package/dist/shared/icons/SlashIcon.d.ts +5 -0
- package/dist/shared/icons/SliderPointerDown.d.ts +10 -0
- package/dist/shared/icons/SliderPointerUp.d.ts +10 -0
- package/dist/shared/icons/SliderThumbIcon.d.ts +10 -0
- package/dist/shared/icons/StraightInfoIcon.d.ts +11 -0
- package/dist/shared/icons/TrashIcon.d.ts +12 -0
- package/dist/shared/icons/UnionIcon.d.ts +12 -0
- package/dist/shared/icons/UploadImageIcon.d.ts +10 -0
- package/dist/shared/icons/VideoPlayOutlined.d.ts +10 -0
- package/dist/shared/icons/XMark.d.ts +11 -0
- package/dist/shared/icons/XMarkAlert.d.ts +11 -0
- package/dist/shared/icons/index.d.ts +83 -0
- package/dist/shared/ui/Alert/Alert.d.ts +95 -0
- package/dist/shared/ui/Alert/index.d.ts +1 -0
- package/dist/shared/ui/AttachmentMessage/AttachmentMessage.d.ts +29 -0
- package/dist/shared/ui/AttachmentMessage/index.d.ts +1 -0
- package/dist/shared/ui/AuthActionWidget/AuthActionWidget.d.ts +18 -0
- package/dist/shared/ui/AuthActionWidget/index.d.ts +2 -0
- package/dist/shared/ui/AuthFormWidget/AuthFormWidget.d.ts +27 -0
- package/dist/shared/ui/AuthFormWidget/index.d.ts +2 -0
- package/dist/shared/ui/AuthSocialOptionsWidget/AuthSocialOptionsWidget.d.ts +25 -0
- package/dist/shared/ui/AuthSocialOptionsWidget/index.d.ts +2 -0
- package/dist/shared/ui/Avatar/Avatar.d.ts +38 -0
- package/dist/shared/ui/Avatar/index.d.ts +1 -0
- package/dist/shared/ui/AvatarGroup/AvatarGroup.d.ts +39 -0
- package/dist/shared/ui/AvatarGroup/index.d.ts +1 -0
- package/dist/shared/ui/Badge/Badge.d.ts +40 -0
- package/dist/shared/ui/Badge/index.d.ts +1 -0
- package/dist/shared/ui/BreadCrumb/BreadCrumb.d.ts +12 -0
- package/dist/shared/ui/BreadCrumb/index.d.ts +1 -0
- package/dist/shared/ui/Button/Button.d.ts +47 -0
- package/dist/shared/ui/Button/index.d.ts +1 -0
- package/dist/shared/ui/ButtonDropdown/ButtonDropdown.d.ts +53 -0
- package/dist/shared/ui/ButtonDropdown/index.d.ts +1 -0
- package/dist/shared/ui/ButtonGroup/ButtonGroup.d.ts +39 -0
- package/dist/shared/ui/ButtonGroup/index.d.ts +1 -0
- package/dist/shared/ui/Card/Card.d.ts +46 -0
- package/dist/shared/ui/Card/index.d.ts +2 -0
- package/dist/shared/ui/CardAction/CardAction.d.ts +28 -0
- package/dist/shared/ui/CardAction/index.d.ts +2 -0
- package/dist/shared/ui/ChatCollapsibleCheck/ChatCollapsibleCheck.d.ts +54 -0
- package/dist/shared/ui/ChatCollapsibleCheck/index.d.ts +2 -0
- package/dist/shared/ui/ChatCollapsibleContainer/ChatCollapsibleContainer.d.ts +32 -0
- package/dist/shared/ui/ChatCollapsibleContainer/index.d.ts +2 -0
- package/dist/shared/ui/ChatCollapsibleDialog/ChatCollapsibleDialog.d.ts +43 -0
- package/dist/shared/ui/ChatCollapsibleDialog/index.d.ts +2 -0
- package/dist/shared/ui/ChatCommandList/ChatCommandList.d.ts +78 -0
- package/dist/shared/ui/ChatCommandList/index.d.ts +2 -0
- package/dist/shared/ui/ChatCommandListItem/ChatCommandListItem.d.ts +88 -0
- package/dist/shared/ui/ChatCommandListItem/index.d.ts +2 -0
- package/dist/shared/ui/ChatHeader/ChatHeader.d.ts +38 -0
- package/dist/shared/ui/ChatHeader/index.d.ts +1 -0
- package/dist/shared/ui/ChatHistorial/ChatHistorial.d.ts +49 -0
- package/dist/shared/ui/ChatHistorial/index.d.ts +2 -0
- package/dist/shared/ui/ChatHistorialItem/ChatHistorialItem.d.ts +33 -0
- package/dist/shared/ui/ChatHistorialItem/index.d.ts +2 -0
- package/dist/shared/ui/ChatInputText/ChatInputText.d.ts +36 -0
- package/dist/shared/ui/ChatInputText/index.d.ts +1 -0
- package/dist/shared/ui/ChatMessage/ChatMessage.d.ts +27 -0
- package/dist/shared/ui/ChatMessage/index.d.ts +2 -0
- package/dist/shared/ui/ChatMessageOptions/ChatMessageOptions.d.ts +30 -0
- package/dist/shared/ui/ChatMessageOptions/index.d.ts +2 -0
- package/dist/shared/ui/ChatPanel/ChatPanel.d.ts +57 -0
- package/dist/shared/ui/ChatPanel/ChatPanel.types.d.ts +171 -0
- package/dist/shared/ui/ChatPanel/index.d.ts +2 -0
- package/dist/shared/ui/ChatTypingIndicator/ChatTypingIndicator.d.ts +17 -0
- package/dist/shared/ui/ChatTypingIndicator/index.d.ts +1 -0
- package/dist/shared/ui/Checkbox/Checkbox.d.ts +26 -0
- package/dist/shared/ui/Checkbox/index.d.ts +1 -0
- package/dist/shared/ui/Chip/Chip.d.ts +35 -0
- package/dist/shared/ui/Chip/index.d.ts +1 -0
- package/dist/shared/ui/ColorPalette/ColorPalette.d.ts +9 -0
- package/dist/shared/ui/ColumnHandler/ColumnHandler.d.ts +17 -0
- package/dist/shared/ui/ColumnHandler/PanelHandle.d.ts +32 -0
- package/dist/shared/ui/ColumnHandler/index.d.ts +4 -0
- package/dist/shared/ui/ComboBox/ComboBox.d.ts +69 -0
- package/dist/shared/ui/ComboBox/index.d.ts +1 -0
- package/dist/shared/ui/ContextualMenu/ContextualMenu.d.ts +47 -0
- package/dist/shared/ui/ContextualMenu/index.d.ts +2 -0
- package/dist/shared/ui/DateRangePicker/DateRangePicker.d.ts +47 -0
- package/dist/shared/ui/DateRangePicker/index.d.ts +1 -0
- package/dist/shared/ui/Divider/Divider.d.ts +8 -0
- package/dist/shared/ui/Divider/index.d.ts +1 -0
- package/dist/shared/ui/DragAndDropListItem/DragAndDropListItem.d.ts +54 -0
- package/dist/shared/ui/DragAndDropListItem/index.d.ts +2 -0
- package/dist/shared/ui/DropMenu/DropMenu.d.ts +58 -0
- package/dist/shared/ui/DropMenu/index.d.ts +1 -0
- package/dist/shared/ui/DropZone/DropZone.d.ts +47 -0
- package/dist/shared/ui/DropZone/index.d.ts +2 -0
- package/dist/shared/ui/Dropdown/Dropdown.d.ts +66 -0
- package/dist/shared/ui/Dropdown/index.d.ts +1 -0
- package/dist/shared/ui/DropdownMenu/DropdownMenu.d.ts +37 -0
- package/dist/shared/ui/ErrorBoundary/ErrorBoundary.d.ts +46 -0
- package/dist/shared/ui/ErrorBoundary/index.d.ts +2 -0
- package/dist/shared/ui/ErrorState/ErrorState.d.ts +51 -0
- package/dist/shared/ui/ErrorState/index.d.ts +2 -0
- package/dist/shared/ui/FloatingBar/FloatingBar.d.ts +92 -0
- package/dist/shared/ui/FloatingBar/index.d.ts +1 -0
- package/dist/shared/ui/FormFieldGroup/FormFieldGroup.d.ts +9 -0
- package/dist/shared/ui/FormFieldGroup/index.d.ts +2 -0
- package/dist/shared/ui/GridDraggableItem/GridDraggableItem.d.ts +45 -0
- package/dist/shared/ui/GridDraggableItem/index.d.ts +2 -0
- package/dist/shared/ui/Header/Header.d.ts +36 -0
- package/dist/shared/ui/Header/index.d.ts +2 -0
- package/dist/shared/ui/Header/useCalculateHeaderWidths.d.ts +31 -0
- package/dist/shared/ui/HeaderTabs/HeaderTabs.d.ts +36 -0
- package/dist/shared/ui/HeaderTabs/index.d.ts +2 -0
- package/dist/shared/ui/Icon/Icon.d.ts +37 -0
- package/dist/shared/ui/Icon/index.d.ts +1 -0
- package/dist/shared/ui/ImageUploader/ImageUploader.d.ts +38 -0
- package/dist/shared/ui/ImageUploader/index.d.ts +1 -0
- package/dist/shared/ui/InfoLabel/InfoLabel.d.ts +28 -0
- package/dist/shared/ui/InfoLabel/index.d.ts +2 -0
- package/dist/shared/ui/InputField/InputField.d.ts +55 -0
- package/dist/shared/ui/InputField/index.d.ts +1 -0
- package/dist/shared/ui/InputSearch/InputSearch.d.ts +44 -0
- package/dist/shared/ui/InputSearch/index.d.ts +1 -0
- package/dist/shared/ui/Kbd/Kbd.d.ts +8 -0
- package/dist/shared/ui/Kbd/index.d.ts +2 -0
- package/dist/shared/ui/LabelIcon/LabelIcon.d.ts +26 -0
- package/dist/shared/ui/LabelIcon/index.d.ts +2 -0
- package/dist/shared/ui/LabelWithIcon/LabelWithIcon.d.ts +27 -0
- package/dist/shared/ui/LabelWithIcon/index.d.ts +1 -0
- package/dist/shared/ui/LabelWithTooltip/LabelWithTooltip.d.ts +41 -0
- package/dist/shared/ui/LabelWithTooltip/index.d.ts +1 -0
- package/dist/shared/ui/Link/Link.d.ts +39 -0
- package/dist/shared/ui/Link/index.d.ts +1 -0
- package/dist/shared/ui/ListItem/ListItem.d.ts +72 -0
- package/dist/shared/ui/ListItem/index.d.ts +2 -0
- package/dist/shared/ui/Modal/Modal.d.ts +203 -0
- package/dist/shared/ui/Modal/index.d.ts +1 -0
- package/dist/shared/ui/ModuleCard/ModuleCard.d.ts +51 -0
- package/dist/shared/ui/ModuleCard/index.d.ts +1 -0
- package/dist/shared/ui/ModuleFieldItem/ModuleFieldItem.d.ts +53 -0
- package/dist/shared/ui/ModuleFieldItem/index.d.ts +1 -0
- package/dist/shared/ui/PanelHeader/PanelHeader.d.ts +37 -0
- package/dist/shared/ui/PanelHeader/index.d.ts +1 -0
- package/dist/shared/ui/PasswordResetWidget/PasswordResetWidget.d.ts +19 -0
- package/dist/shared/ui/PasswordResetWidget/index.d.ts +2 -0
- package/dist/shared/ui/ProductIcon/ProductIcon.d.ts +25 -0
- package/dist/shared/ui/ProductIcon/index.d.ts +1 -0
- package/dist/shared/ui/Progress/Progress.d.ts +29 -0
- package/dist/shared/ui/Progress/index.d.ts +1 -0
- package/dist/shared/ui/ProgressBar/ProgressBar.d.ts +21 -0
- package/dist/shared/ui/ProgressBar/index.d.ts +1 -0
- package/dist/shared/ui/ProgressCircle/ProgressCircle.d.ts +44 -0
- package/dist/shared/ui/ProgressCircle/index.d.ts +1 -0
- package/dist/shared/ui/ProgressCustomTooltip/ProgressCustomTooltip.d.ts +47 -0
- package/dist/shared/ui/ProgressCustomTooltip/index.d.ts +1 -0
- package/dist/shared/ui/ProgressTracker/ProgressTracker.d.ts +36 -0
- package/dist/shared/ui/ProgressTracker/index.d.ts +1 -0
- package/dist/shared/ui/ProjectActionCard/ProjectActionCard.d.ts +23 -0
- package/dist/shared/ui/ProjectActionCard/index.d.ts +2 -0
- package/dist/shared/ui/ProjectCard/ProjectCard.d.ts +46 -0
- package/dist/shared/ui/ProjectCard/index.d.ts +2 -0
- package/dist/shared/ui/ProjectCardPlan/ProjectCardPlan.d.ts +27 -0
- package/dist/shared/ui/ProjectCardPlan/index.d.ts +2 -0
- package/dist/shared/ui/Radio/Radio.d.ts +24 -0
- package/dist/shared/ui/Radio/index.d.ts +1 -0
- package/dist/shared/ui/RecoveryWidget/RecoveryWidget.d.ts +26 -0
- package/dist/shared/ui/RecoveryWidget/index.d.ts +2 -0
- package/dist/shared/ui/RelatedDataCard/RelatedDataCard.d.ts +47 -0
- package/dist/shared/ui/RelatedDataCard/index.d.ts +1 -0
- package/dist/shared/ui/SettingsCard/SettingsCard.d.ts +24 -0
- package/dist/shared/ui/SettingsCard/index.d.ts +2 -0
- package/dist/shared/ui/SidePanel/SidePanel.d.ts +26 -0
- package/dist/shared/ui/SidePanel/SidePanel.types.d.ts +27 -0
- package/dist/shared/ui/SidePanel/index.d.ts +2 -0
- package/dist/shared/ui/SupportCard/SupportCard.d.ts +19 -0
- package/dist/shared/ui/SupportCard/index.d.ts +2 -0
- package/dist/shared/ui/Switcher/Switcher.d.ts +41 -0
- package/dist/shared/ui/Switcher/index.d.ts +1 -0
- package/dist/shared/ui/Table/Table.d.ts +136 -0
- package/dist/shared/ui/Table/TableBody.d.ts +13 -0
- package/dist/shared/ui/Table/TableCell.d.ts +6 -0
- package/dist/shared/ui/Table/TableColumnFilter.d.ts +11 -0
- package/dist/shared/ui/Table/TableColumnHeader.d.ts +6 -0
- package/dist/shared/ui/Table/TableColumnVisibility.d.ts +7 -0
- package/dist/shared/ui/Table/TableContext.d.ts +31 -0
- package/dist/shared/ui/Table/TableEmptyState.d.ts +16 -0
- package/dist/shared/ui/Table/TableHeader.d.ts +5 -0
- package/dist/shared/ui/Table/TablePagination.d.ts +9 -0
- package/dist/shared/ui/Table/TableRoot.d.ts +6 -0
- package/dist/shared/ui/Table/TableRow.d.ts +8 -0
- package/dist/shared/ui/Table/configParser.d.ts +18 -0
- package/dist/shared/ui/Table/index.d.ts +15 -0
- package/dist/shared/ui/Table/mockData.d.ts +33 -0
- package/dist/shared/ui/Table/types.d.ts +66 -0
- package/dist/shared/ui/Tabs/Tabs.d.ts +59 -0
- package/dist/shared/ui/Tabs/index.d.ts +1 -0
- package/dist/shared/ui/Tag/Tag.d.ts +29 -0
- package/dist/shared/ui/Tag/index.d.ts +1 -0
- package/dist/shared/ui/TextArea/TextArea.d.ts +28 -0
- package/dist/shared/ui/TextArea/index.d.ts +1 -0
- package/dist/shared/ui/ThemeToggle/ThemeToggle.d.ts +29 -0
- package/dist/shared/ui/ThemeToggle/index.d.ts +1 -0
- package/dist/shared/ui/Toast/Toast.d.ts +54 -0
- package/dist/shared/ui/Toast/index.d.ts +2 -0
- package/dist/shared/ui/Toggle/Toggle.d.ts +24 -0
- package/dist/shared/ui/Toggle/index.d.ts +1 -0
- package/dist/shared/ui/Tooltip/Tooltip.d.ts +103 -0
- package/dist/shared/ui/Tooltip/index.d.ts +1 -0
- package/dist/shared/ui/TypesPanel/TypesPanel.d.ts +28 -0
- package/dist/shared/ui/TypesPanel/index.d.ts +2 -0
- package/dist/shared/ui/TypesPanelBodyGrid/TypesPanelBodyGrid.d.ts +45 -0
- package/dist/shared/ui/TypesPanelBodyGrid/index.d.ts +2 -0
- package/dist/shared/ui/TypesPanelBodyList/TypesPanelBodyList.d.ts +45 -0
- package/dist/shared/ui/TypesPanelBodyList/index.d.ts +2 -0
- package/dist/shared/ui/TypesPanelHeader/TypesPanelHeader.d.ts +27 -0
- package/dist/shared/ui/TypesPanelHeader/index.d.ts +2 -0
- package/dist/shared/ui/TypesPanelHeaderSearch/TypesPanelHeaderSearch.d.ts +44 -0
- package/dist/shared/ui/TypesPanelHeaderSearch/index.d.ts +1 -0
- package/dist/shared/ui/UserMenu/UserMenu.d.ts +78 -0
- package/dist/shared/ui/UserMenu/index.d.ts +1 -0
- package/dist/shared/ui/VisualComposer/VisualComposer.d.ts +36 -0
- package/dist/shared/ui/VisualComposer/index.d.ts +2 -0
- package/dist/shared/ui/WidgetBuilderItemHoverAction/WidgetBuilderItemHoverAction.d.ts +15 -0
- package/dist/shared/ui/WidgetBuilderItemHoverAction/index.d.ts +2 -0
- package/dist/shared/ui/WidgetContainer/WidgetContainer.d.ts +23 -0
- package/dist/shared/ui/WidgetContainer/index.d.ts +2 -0
- package/dist/shared/ui/WidgetSidebar/WidgetSidebar.d.ts +70 -0
- package/dist/shared/ui/WidgetSidebar/index.d.ts +2 -0
- package/dist/shared/ui/WorkspaceSettings/WorkspaceSettings.d.ts +22 -0
- package/dist/shared/ui/WorkspaceSettings/index.d.ts +2 -0
- package/dist/shared/ui/index.d.ts +1 -0
- package/dist/shared/ui/slider/Slider.d.ts +96 -0
- package/dist/shared/ui/slider/index.d.ts +2 -0
- package/dist/shared/utils/index.d.ts +1 -0
- package/dist/shared/utils/tailwind.d.ts +9 -0
- package/package.json +112 -0
- package/tailwind.preset.js +278 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ContainerSize } from "../constants";
|
|
3
|
+
/**
|
|
4
|
+
* Valid HTML elements that Container can render as.
|
|
5
|
+
*/
|
|
6
|
+
export type ContainerElement = "div" | "main" | "section" | "article" | "aside" | "header" | "footer";
|
|
7
|
+
/**
|
|
8
|
+
* Container padding variants for different use cases.
|
|
9
|
+
*/
|
|
10
|
+
export type ContainerPadding = "none" | "responsive" | "fixed";
|
|
11
|
+
/**
|
|
12
|
+
* Props for the Container component.
|
|
13
|
+
*/
|
|
14
|
+
export interface ContainerProps extends React.HTMLAttributes<HTMLElement> {
|
|
15
|
+
/**
|
|
16
|
+
* Maximum width variant of the container.
|
|
17
|
+
* @default "default"
|
|
18
|
+
*/
|
|
19
|
+
size?: ContainerSize;
|
|
20
|
+
/**
|
|
21
|
+
* Whether to center the container horizontally.
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
centered?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Horizontal padding behavior.
|
|
27
|
+
* @default "responsive"
|
|
28
|
+
*/
|
|
29
|
+
padding?: ContainerPadding;
|
|
30
|
+
/**
|
|
31
|
+
* The HTML element to render.
|
|
32
|
+
* @default "div"
|
|
33
|
+
*/
|
|
34
|
+
as?: ContainerElement;
|
|
35
|
+
/**
|
|
36
|
+
* Content to render inside the container.
|
|
37
|
+
*/
|
|
38
|
+
children: React.ReactNode;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A responsive container component for constraining content width.
|
|
42
|
+
*/
|
|
43
|
+
declare const ContainerBase: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLElement>>;
|
|
44
|
+
export interface ContainerHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
45
|
+
children: React.ReactNode;
|
|
46
|
+
}
|
|
47
|
+
declare const ContainerHeader: React.ForwardRefExoticComponent<ContainerHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
48
|
+
export interface ContainerContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
49
|
+
children: React.ReactNode;
|
|
50
|
+
}
|
|
51
|
+
declare const ContainerContent: React.ForwardRefExoticComponent<ContainerContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
52
|
+
export interface ContainerFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
53
|
+
children: React.ReactNode;
|
|
54
|
+
}
|
|
55
|
+
declare const ContainerFooter: React.ForwardRefExoticComponent<ContainerFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
56
|
+
type ContainerComponent = typeof ContainerBase & {
|
|
57
|
+
Header: typeof ContainerHeader;
|
|
58
|
+
Content: typeof ContainerContent;
|
|
59
|
+
Footer: typeof ContainerFooter;
|
|
60
|
+
};
|
|
61
|
+
declare const ContainerWithCompounds: ContainerComponent;
|
|
62
|
+
export { ContainerWithCompounds as Container };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PanelProps } from './PanelLayout.types';
|
|
3
|
+
/**
|
|
4
|
+
* Panel - Individual panel component with optional resize handle
|
|
5
|
+
*
|
|
6
|
+
* Panels can be positioned on the left or right side of the layout.
|
|
7
|
+
* Multiple panels on the same side will stack horizontally.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <Panel id="sidebar" side="left">
|
|
12
|
+
* <SidebarContent />
|
|
13
|
+
* </Panel>
|
|
14
|
+
*
|
|
15
|
+
* <Panel id="chat" side="right" resizable={false}>
|
|
16
|
+
* <ChatPanel />
|
|
17
|
+
* </Panel>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const Panel: React.NamedExoticComponent<PanelProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PanelContextValue } from './PanelLayout.types';
|
|
2
|
+
/**
|
|
3
|
+
* Context for sharing panel state and callbacks between PanelLayout and Panel components
|
|
4
|
+
*/
|
|
5
|
+
export declare const PanelContext: import("react").Context<PanelContextValue | null>;
|
|
6
|
+
/**
|
|
7
|
+
* Hook to access the panel context
|
|
8
|
+
* @throws Error if used outside of PanelLayout
|
|
9
|
+
*/
|
|
10
|
+
export declare function usePanelContext(): PanelContextValue;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PanelLayoutProps } from './PanelLayout.types';
|
|
3
|
+
/**
|
|
4
|
+
* PanelLayout - Container for a flexible panel-based layout
|
|
5
|
+
*
|
|
6
|
+
* Organizes Panel and PanelMain children into a responsive layout where:
|
|
7
|
+
* - Left panels stack on the left side
|
|
8
|
+
* - Right panels stack on the right side
|
|
9
|
+
* - PanelMain fills the remaining central space
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <PanelLayout panels={panelsState} onPanelResize={handleResize}>
|
|
14
|
+
* <Panel id="sidebar" side="left">
|
|
15
|
+
* <Sidebar />
|
|
16
|
+
* </Panel>
|
|
17
|
+
*
|
|
18
|
+
* <PanelMain>
|
|
19
|
+
* <MainContent />
|
|
20
|
+
* </PanelMain>
|
|
21
|
+
*
|
|
22
|
+
* <Panel id="chat" side="right">
|
|
23
|
+
* <ChatPanel />
|
|
24
|
+
* </Panel>
|
|
25
|
+
* </PanelLayout>
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare const PanelLayout: React.NamedExoticComponent<PanelLayoutProps>;
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Side where a panel is positioned
|
|
4
|
+
*/
|
|
5
|
+
export type PanelSide = 'left' | 'right';
|
|
6
|
+
/**
|
|
7
|
+
* State of an individual panel
|
|
8
|
+
*/
|
|
9
|
+
export interface PanelState {
|
|
10
|
+
/** Unique identifier for the panel */
|
|
11
|
+
id: string;
|
|
12
|
+
/** Whether the panel is currently open */
|
|
13
|
+
open: boolean;
|
|
14
|
+
/** Current width as percentage of viewport */
|
|
15
|
+
width: number;
|
|
16
|
+
/** Whether the panel is currently being resized */
|
|
17
|
+
isResizing?: boolean;
|
|
18
|
+
/** Whether the panel is in the close zone during drag (10-15%) */
|
|
19
|
+
inCloseZone?: boolean;
|
|
20
|
+
/** Whether the panel is in the process of closing (exit animation) */
|
|
21
|
+
exiting?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Configuration for a panel (used in usePanelState)
|
|
25
|
+
*/
|
|
26
|
+
export interface PanelConfig {
|
|
27
|
+
/** Unique identifier for the panel */
|
|
28
|
+
id: string;
|
|
29
|
+
/** Side where the panel is positioned */
|
|
30
|
+
side: PanelSide;
|
|
31
|
+
/** Default width in pixels */
|
|
32
|
+
defaultWidth: number;
|
|
33
|
+
/** Minimum width in pixels (default: 200) */
|
|
34
|
+
minWidth?: number;
|
|
35
|
+
/** Maximum width in pixels (default: 50% of viewport) */
|
|
36
|
+
maxWidth?: number;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Complete state for all panels
|
|
40
|
+
*/
|
|
41
|
+
export interface PanelsState {
|
|
42
|
+
left: PanelState[];
|
|
43
|
+
right: PanelState[];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Props for the PanelLayout component
|
|
47
|
+
*/
|
|
48
|
+
export interface PanelLayoutProps {
|
|
49
|
+
/** Panel and PanelMain components */
|
|
50
|
+
children: ReactNode;
|
|
51
|
+
/** Current state of all panels */
|
|
52
|
+
panels: PanelsState;
|
|
53
|
+
/** Callback when a panel is resized */
|
|
54
|
+
onPanelResize: (id: string, width: number) => void;
|
|
55
|
+
/** Callback when a panel enters/exits the close zone during drag */
|
|
56
|
+
onCloseZoneChange?: (id: string, inCloseZone: boolean) => void;
|
|
57
|
+
/** Callback when a panel should be closed (released in close zone) */
|
|
58
|
+
onPanelClose?: (id: string) => void;
|
|
59
|
+
/** Minimum width for central content in pixels (default: 150) */
|
|
60
|
+
minCentralWidth?: number;
|
|
61
|
+
/** Additional CSS classes */
|
|
62
|
+
className?: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Props for the Panel component
|
|
66
|
+
*/
|
|
67
|
+
export interface PanelProps {
|
|
68
|
+
/** Unique identifier matching PanelState.id */
|
|
69
|
+
id: string;
|
|
70
|
+
/** Side where the panel is positioned */
|
|
71
|
+
side: PanelSide;
|
|
72
|
+
/** Panel content (including header if needed) */
|
|
73
|
+
children: ReactNode;
|
|
74
|
+
/** Whether the panel can be resized (default: true) */
|
|
75
|
+
resizable?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Background color for panel and handle
|
|
78
|
+
* Use CSS variable like 'var(--surface-1)' or 'var(--surface-2)'
|
|
79
|
+
* @default 'var(--surface-1)'
|
|
80
|
+
*/
|
|
81
|
+
panelBg?: string;
|
|
82
|
+
/** Additional CSS classes */
|
|
83
|
+
className?: string;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Props for the PanelMain component
|
|
87
|
+
*/
|
|
88
|
+
export interface PanelMainProps {
|
|
89
|
+
/** Main content */
|
|
90
|
+
children: ReactNode;
|
|
91
|
+
/** Additional CSS classes */
|
|
92
|
+
className?: string;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Options for the usePanelState hook
|
|
96
|
+
*/
|
|
97
|
+
export interface UsePanelStateOptions {
|
|
98
|
+
/** Configuration for each panel */
|
|
99
|
+
config: PanelConfig[];
|
|
100
|
+
/** Whether to persist state to localStorage (default: false) */
|
|
101
|
+
persist?: boolean;
|
|
102
|
+
/** Key for localStorage (default: 'panel-state') */
|
|
103
|
+
persistKey?: string;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Return type for the usePanelState hook
|
|
107
|
+
*/
|
|
108
|
+
export interface UsePanelStateReturn {
|
|
109
|
+
/** Current state of all panels */
|
|
110
|
+
panels: PanelsState;
|
|
111
|
+
/** Toggle a panel open/closed */
|
|
112
|
+
togglePanel: (id: string) => void;
|
|
113
|
+
/** Resize a panel to a specific width */
|
|
114
|
+
resizePanel: (id: string, width: number) => void;
|
|
115
|
+
/** Open a specific panel */
|
|
116
|
+
openPanel: (id: string) => void;
|
|
117
|
+
/** Close a specific panel (with animation) */
|
|
118
|
+
closePanel: (id: string) => void;
|
|
119
|
+
/** Reset all panels to default state */
|
|
120
|
+
resetPanels: () => void;
|
|
121
|
+
/** Handle close zone change (called by PanelLayout) */
|
|
122
|
+
handleCloseZoneChange: (id: string, inCloseZone: boolean) => void;
|
|
123
|
+
/** Handle panel close request (called by PanelLayout when released in close zone) */
|
|
124
|
+
handlePanelClose: (id: string) => void;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Internal context value for PanelLayout
|
|
128
|
+
*/
|
|
129
|
+
export interface PanelContextValue {
|
|
130
|
+
/** Current state of all panels */
|
|
131
|
+
panels: PanelsState;
|
|
132
|
+
/** Callback when resize starts */
|
|
133
|
+
onResizeStart: (id: string) => void;
|
|
134
|
+
/** Callback during resize */
|
|
135
|
+
onResize: (id: string, width: number) => void;
|
|
136
|
+
/** Callback when resize ends */
|
|
137
|
+
onResizeEnd: (id: string, shouldClose: boolean) => void;
|
|
138
|
+
/** Callback when panel enters/exits close zone */
|
|
139
|
+
onCloseZoneChange: (id: string, inCloseZone: boolean) => void;
|
|
140
|
+
/** Get panel state by id */
|
|
141
|
+
getPanelState: (id: string) => PanelState | undefined;
|
|
142
|
+
/** Minimum width for central content */
|
|
143
|
+
minCentralWidth: number;
|
|
144
|
+
/** Ref to the container element for calculating relative positions */
|
|
145
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
146
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PanelMainProps } from './PanelLayout.types';
|
|
3
|
+
/**
|
|
4
|
+
* PanelMain - Central content area that fills the remaining space
|
|
5
|
+
*
|
|
6
|
+
* This component should be used inside PanelLayout to define the main content area.
|
|
7
|
+
* It automatically fills the space not occupied by Panel components.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <PanelLayout panels={state} onPanelResize={handleResize}>
|
|
12
|
+
* <Panel id="sidebar" side="left">...</Panel>
|
|
13
|
+
* <PanelMain>
|
|
14
|
+
* <YourMainContent />
|
|
15
|
+
* </PanelMain>
|
|
16
|
+
* </PanelLayout>
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare const PanelMain: React.NamedExoticComponent<PanelMainProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { PanelLayout } from './PanelLayout';
|
|
2
|
+
export { Panel } from './Panel';
|
|
3
|
+
export { PanelMain } from './PanelMain';
|
|
4
|
+
export { usePanelState } from './usePanelState';
|
|
5
|
+
export { calculatePanelPercentage, calculateDraggedPanelPercentage, getTotalSideWidth, getTotalPanelsWidth, findPanelById, getCentralWidth, initializePanelsState, isInCloseZone, getSnappedWidth, PANEL_DEFAULTS, } from './panelUtils';
|
|
6
|
+
export type { PanelSide, PanelState, PanelConfig, PanelsState, PanelLayoutProps, PanelProps, PanelMainProps, UsePanelStateOptions, UsePanelStateReturn, PanelContextValue, } from './PanelLayout.types';
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { PanelSide, PanelsState, PanelState, PanelConfig } from './PanelLayout.types';
|
|
2
|
+
/**
|
|
3
|
+
* Default values for panel calculations
|
|
4
|
+
*/
|
|
5
|
+
export declare const PANEL_DEFAULTS: {
|
|
6
|
+
readonly minWidth: 200;
|
|
7
|
+
readonly maxWidthPercent: 50;
|
|
8
|
+
readonly minCentralWidth: 150;
|
|
9
|
+
/** Minimum percentage for central content (used for space calculations) */
|
|
10
|
+
readonly minCentralPercent: 10;
|
|
11
|
+
/** Minimum percentage for close zone (panel will show close indicator) */
|
|
12
|
+
readonly closeZoneMin: 10;
|
|
13
|
+
/** Maximum percentage for close zone */
|
|
14
|
+
readonly closeZoneMax: 15;
|
|
15
|
+
/** Minimum width to snap to if released outside close zone but below this */
|
|
16
|
+
readonly snapMinWidth: 15;
|
|
17
|
+
/** Animation duration for panel exit in ms */
|
|
18
|
+
readonly exitAnimationDuration: 100;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a width percentage is in the close zone
|
|
22
|
+
*/
|
|
23
|
+
export declare function isInCloseZone(widthPercent: number): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Get the snapped width (minimum width if below threshold, otherwise original)
|
|
26
|
+
*/
|
|
27
|
+
export declare function getSnappedWidth(widthPercent: number): number;
|
|
28
|
+
/**
|
|
29
|
+
* Calculates the percentage width for a panel based on its desired pixel width
|
|
30
|
+
* and the current viewport width.
|
|
31
|
+
*
|
|
32
|
+
* @param desiredWidthPx - The desired width of the panel in pixels
|
|
33
|
+
* @param viewportWidth - The current viewport width in pixels
|
|
34
|
+
* @param otherPanelsWidthPx - Total width of other panels on the same side in pixels
|
|
35
|
+
* @param minCentralWidthPx - Minimum width the central content must maintain
|
|
36
|
+
* @returns The calculated percentage width for the panel
|
|
37
|
+
*/
|
|
38
|
+
export declare function calculatePanelPercentage(desiredWidthPx: number, viewportWidth: number, otherPanelsWidthPx?: number, minCentralWidthPx?: number): number;
|
|
39
|
+
/**
|
|
40
|
+
* Calculates the panel width during a drag/resize operation.
|
|
41
|
+
*
|
|
42
|
+
* @param side - Which panel is being resized ('left' or 'right')
|
|
43
|
+
* @param mouseX - Current mouse X position relative to container
|
|
44
|
+
* @param containerWidth - Current container width
|
|
45
|
+
* @param oppositeSideWidthPercent - Total width percentage of panels on opposite side
|
|
46
|
+
* @param minCentralWidthPx - Minimum width the central content must maintain (in px, for backwards compat)
|
|
47
|
+
* @param externalPanelsWidthPercent - Width percentage of panels "more external" on same side
|
|
48
|
+
* @param internalPanelsWidthPercent - Width percentage of panels "more internal" on same side (not used for max calc, resizePanel handles redistribution)
|
|
49
|
+
* @returns The calculated percentage width based on mouse position
|
|
50
|
+
*/
|
|
51
|
+
export declare function calculateDraggedPanelPercentage(side: PanelSide, mouseX: number, containerWidth: number, oppositeSideWidthPercent?: number, minCentralWidthPx?: number, externalPanelsWidthPercent?: number, _internalPanelsWidthPercent?: number): number;
|
|
52
|
+
/**
|
|
53
|
+
* Get total width of panels on a specific side
|
|
54
|
+
*/
|
|
55
|
+
export declare function getTotalSideWidth(panels: PanelState[]): number;
|
|
56
|
+
/**
|
|
57
|
+
* Get total width of all open panels
|
|
58
|
+
*/
|
|
59
|
+
export declare function getTotalPanelsWidth(state: PanelsState): number;
|
|
60
|
+
/**
|
|
61
|
+
* Find a panel by id in the panels state
|
|
62
|
+
*/
|
|
63
|
+
export declare function findPanelById(state: PanelsState, id: string): {
|
|
64
|
+
panel: PanelState;
|
|
65
|
+
side: PanelSide;
|
|
66
|
+
} | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Calculate the width of the central content area
|
|
69
|
+
*/
|
|
70
|
+
export declare function getCentralWidth(state: PanelsState): number;
|
|
71
|
+
/**
|
|
72
|
+
* Initialize panels state from config
|
|
73
|
+
*/
|
|
74
|
+
export declare function initializePanelsState(config: PanelConfig[], viewportWidth?: number): PanelsState;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { UsePanelStateOptions, UsePanelStateReturn } from './PanelLayout.types';
|
|
2
|
+
/**
|
|
3
|
+
* Hook for managing panel state
|
|
4
|
+
*
|
|
5
|
+
* Provides a convenient way to manage panel open/close state and widths.
|
|
6
|
+
* Can optionally persist state to localStorage.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* const { panels, togglePanel, resizePanel } = usePanelState({
|
|
11
|
+
* config: [
|
|
12
|
+
* { id: 'sidebar', side: 'left', defaultWidth: 275 },
|
|
13
|
+
* { id: 'chat', side: 'right', defaultWidth: 375 },
|
|
14
|
+
* ],
|
|
15
|
+
* persist: true,
|
|
16
|
+
* });
|
|
17
|
+
*
|
|
18
|
+
* return (
|
|
19
|
+
* <PanelLayout panels={panels} onPanelResize={resizePanel}>
|
|
20
|
+
* ...
|
|
21
|
+
* </PanelLayout>
|
|
22
|
+
* );
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare function usePanelState(options: UsePanelStateOptions): UsePanelStateReturn;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { LayoutSpacingKey } from "../constants";
|
|
3
|
+
export type SectionElement = "div" | "section" | "article" | "aside";
|
|
4
|
+
export type SectionBackground = "transparent" | "surface-bg" | "surface-1" | "surface-2" | "white";
|
|
5
|
+
export interface SectionProps extends React.HTMLAttributes<HTMLElement> {
|
|
6
|
+
spacing?: LayoutSpacingKey;
|
|
7
|
+
background?: SectionBackground;
|
|
8
|
+
bordered?: boolean;
|
|
9
|
+
as?: SectionElement;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const Section: React.ForwardRefExoticComponent<SectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export interface SectionHeroProps extends Omit<SectionProps, "spacing" | "background"> {
|
|
14
|
+
spacing?: LayoutSpacingKey;
|
|
15
|
+
}
|
|
16
|
+
export declare const SectionHero: React.ForwardRefExoticComponent<SectionHeroProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export interface SectionFeaturesProps extends Omit<SectionProps, "background"> {
|
|
18
|
+
background?: SectionBackground;
|
|
19
|
+
}
|
|
20
|
+
export declare const SectionFeatures: React.ForwardRefExoticComponent<SectionFeaturesProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Position where the side panel appears
|
|
4
|
+
*/
|
|
5
|
+
export type SplitPanelPosition = 'left' | 'right';
|
|
6
|
+
/**
|
|
7
|
+
* Props for the SplitPanelLayout component
|
|
8
|
+
*/
|
|
9
|
+
export interface SplitPanelLayoutProps {
|
|
10
|
+
/**
|
|
11
|
+
* Main content that shrinks when panel opens
|
|
12
|
+
*/
|
|
13
|
+
mainContent: React.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Content to display in the sliding side panel
|
|
16
|
+
*/
|
|
17
|
+
sidePanel: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Whether the side panel is currently open
|
|
20
|
+
*/
|
|
21
|
+
isPanelOpen: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Callback when panel should exit (for parent to update state after animation)
|
|
24
|
+
* This is called after the exit animation completes
|
|
25
|
+
*/
|
|
26
|
+
onPanelExited?: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* Width of the side panel in pixels
|
|
29
|
+
* @default 400
|
|
30
|
+
*/
|
|
31
|
+
panelWidth?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Position of the side panel
|
|
34
|
+
* @default 'right'
|
|
35
|
+
*/
|
|
36
|
+
panelPosition?: SplitPanelPosition;
|
|
37
|
+
/**
|
|
38
|
+
* Animation duration in milliseconds
|
|
39
|
+
* @default 75
|
|
40
|
+
*/
|
|
41
|
+
animationDuration?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Additional CSS classes for the container
|
|
44
|
+
*/
|
|
45
|
+
className?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Background color for the main content area
|
|
48
|
+
* @default 'bg-white'
|
|
49
|
+
*/
|
|
50
|
+
mainContentBg?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Background color for the side panel
|
|
53
|
+
* Does not apply background by default - control via sidePanel content
|
|
54
|
+
*/
|
|
55
|
+
sidePanelBg?: string;
|
|
56
|
+
}
|
|
57
|
+
export declare const SplitPanelLayout: React.NamedExoticComponent<SplitPanelLayoutProps>;
|