@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,203 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button } from '@/shared/ui/Button/Button';
|
|
3
|
+
/**
|
|
4
|
+
* Modal size options.
|
|
5
|
+
* @typedef {'sm' | 'md' | 'lg'} ModalSize
|
|
6
|
+
*/
|
|
7
|
+
export type ModalSize = 'sm' | 'md' | 'lg';
|
|
8
|
+
/**
|
|
9
|
+
* Modal root component. Provides modal context and manages open state.
|
|
10
|
+
* @param {Object} props
|
|
11
|
+
* @param {React.ReactNode} props.children - Modal children.
|
|
12
|
+
* @param {ModalSize} [props.size='md'] - Modal size.
|
|
13
|
+
* @returns {JSX.Element}
|
|
14
|
+
*/
|
|
15
|
+
declare const Modal: {
|
|
16
|
+
({ children, size, }: {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
size?: ModalSize;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Component to wrap the element that triggers opening the modal.
|
|
24
|
+
* @param {Object} props
|
|
25
|
+
* @param {React.ReactElement} props.children - Trigger element.
|
|
26
|
+
* @returns {JSX.Element}
|
|
27
|
+
*/
|
|
28
|
+
declare const ModalTrigger: {
|
|
29
|
+
({ children }: {
|
|
30
|
+
children: React.ReactElement<React.HTMLAttributes<HTMLElement>>;
|
|
31
|
+
}): React.ReactElement<React.HTMLAttributes<HTMLElement>, string | React.JSXElementConstructor<any>>;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Main modal content container. Handles animations and layout.
|
|
36
|
+
* @param {Object} props
|
|
37
|
+
* @param {React.ReactNode} props.children - Modal content.
|
|
38
|
+
* @param {string} [props.className] - Additional class names.
|
|
39
|
+
* @returns {JSX.Element}
|
|
40
|
+
*/
|
|
41
|
+
declare const ModalContent: React.ForwardRefExoticComponent<{
|
|
42
|
+
children: React.ReactNode;
|
|
43
|
+
className?: string;
|
|
44
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
/**
|
|
46
|
+
* Modal header section.
|
|
47
|
+
* @param {Object} props
|
|
48
|
+
* @param {React.ReactNode} props.children - Header content.
|
|
49
|
+
* @param {() => void} [props.onBack] - Optional back button handler.
|
|
50
|
+
* @param {boolean} [props.disabled] - Disable header actions.
|
|
51
|
+
* @param {string} [props.className] - Additional class names.
|
|
52
|
+
* @returns {JSX.Element}
|
|
53
|
+
*/
|
|
54
|
+
declare const ModalHeader: {
|
|
55
|
+
({ children, onBack, disabled, className, }: {
|
|
56
|
+
children: React.ReactNode;
|
|
57
|
+
onBack?: () => void;
|
|
58
|
+
disabled?: boolean;
|
|
59
|
+
className?: string;
|
|
60
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
displayName: string;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Modal title component for accessibility. Use inside ModalHeader.
|
|
65
|
+
* @param {Object} props
|
|
66
|
+
* @param {string} [props.className] - Additional class names.
|
|
67
|
+
* @returns {JSX.Element}
|
|
68
|
+
*/
|
|
69
|
+
declare const ModalTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
70
|
+
/**
|
|
71
|
+
* Modal description component for accessibility.
|
|
72
|
+
* @param {Object} props
|
|
73
|
+
* @param {string} [props.className] - Additional class names.
|
|
74
|
+
* @returns {JSX.Element}
|
|
75
|
+
*/
|
|
76
|
+
declare const ModalDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
77
|
+
/**
|
|
78
|
+
* Modal body/content section.
|
|
79
|
+
* @param {Object} props
|
|
80
|
+
* @param {React.ReactNode} props.children - Body content.
|
|
81
|
+
* @param {string} [props.className] - Additional class names.
|
|
82
|
+
* @returns {JSX.Element}
|
|
83
|
+
*/
|
|
84
|
+
declare const ModalBody: {
|
|
85
|
+
({ children, className, }: {
|
|
86
|
+
children: React.ReactNode;
|
|
87
|
+
className?: string;
|
|
88
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
89
|
+
displayName: string;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Modal footer section. Flexible container that accepts any children.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* // Flexible usage with custom layout
|
|
96
|
+
* <ModalFooter>
|
|
97
|
+
* <div className="flex justify-between w-full">
|
|
98
|
+
* <ModalClose><Button>Cancel</Button></ModalClose>
|
|
99
|
+
* <Button onClick={handleSave}>Save</Button>
|
|
100
|
+
* </div>
|
|
101
|
+
* </ModalFooter>
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* // For simple cases, use ModalFooterActions instead
|
|
105
|
+
* <ModalFooterActions
|
|
106
|
+
* cancelButton={{ label: "Cancel" }}
|
|
107
|
+
* acceptButton={{ label: "Confirm" }}
|
|
108
|
+
* />
|
|
109
|
+
*
|
|
110
|
+
* @param {Object} props
|
|
111
|
+
* @param {string} [props.className] - Additional class names.
|
|
112
|
+
* @param {React.ReactNode} props.children - Footer content. Use any custom layout or components.
|
|
113
|
+
* @returns {JSX.Element}
|
|
114
|
+
*/
|
|
115
|
+
declare const ModalFooter: {
|
|
116
|
+
({ className, children, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
117
|
+
displayName: string;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Button configuration for ModalFooterActions.
|
|
121
|
+
*/
|
|
122
|
+
interface ModalFooterButtonConfig extends Omit<React.ComponentPropsWithoutRef<typeof Button>, 'onClick'> {
|
|
123
|
+
/** Button label text */
|
|
124
|
+
label: string;
|
|
125
|
+
/** Optional click handler (called before closing modal if closeOnClick is true) */
|
|
126
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
127
|
+
/** Whether clicking the button should close the modal. Defaults to true. */
|
|
128
|
+
closeOnClick?: boolean;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Convenience component for common modal footer patterns with preset button layouts.
|
|
132
|
+
* Provides responsive behavior: full-width buttons on sm modals, fixed-width on md/lg.
|
|
133
|
+
*
|
|
134
|
+
* Use this when you need a simple, standard footer with cancel/accept actions.
|
|
135
|
+
* For custom layouts or complex footers, use ModalFooter with custom children.
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* // Simple confirmation dialog
|
|
139
|
+
* <ModalFooterActions
|
|
140
|
+
* cancelButton={{ label: "Cancel" }}
|
|
141
|
+
* acceptButton={{ label: "Confirm" }}
|
|
142
|
+
* />
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* // Custom styling and click handlers
|
|
146
|
+
* <ModalFooterActions
|
|
147
|
+
* cancelButton={{
|
|
148
|
+
* label: "No",
|
|
149
|
+
* variant: "neutral",
|
|
150
|
+
* onClick: () => console.log('Cancelled')
|
|
151
|
+
* }}
|
|
152
|
+
* acceptButton={{
|
|
153
|
+
* label: "Yes, Delete",
|
|
154
|
+
* variant: "danger",
|
|
155
|
+
* onClick: handleDelete,
|
|
156
|
+
* closeOnClick: false // Handle close manually after async operation
|
|
157
|
+
* }}
|
|
158
|
+
* />
|
|
159
|
+
*
|
|
160
|
+
* @example
|
|
161
|
+
* // With back button (only visible on md/lg modals)
|
|
162
|
+
* <ModalFooterActions
|
|
163
|
+
* backButton={{ label: "Back", onClick: () => setStep(step - 1), closeOnClick: false }}
|
|
164
|
+
* cancelButton={{ label: "Cancel" }}
|
|
165
|
+
* acceptButton={{ label: "Next" }}
|
|
166
|
+
* />
|
|
167
|
+
*
|
|
168
|
+
* @param {Object} props
|
|
169
|
+
* @param {ModalFooterButtonConfig} [props.backButton] - Optional back button configuration.
|
|
170
|
+
* @param {ModalFooterButtonConfig} [props.cancelButton] - Optional cancel button configuration.
|
|
171
|
+
* @param {ModalFooterButtonConfig} [props.acceptButton] - Optional accept/primary button configuration.
|
|
172
|
+
* @param {string} [props.className] - Additional class names for the footer container.
|
|
173
|
+
* @returns {JSX.Element}
|
|
174
|
+
*/
|
|
175
|
+
declare const ModalFooterActions: {
|
|
176
|
+
({ backButton, cancelButton, acceptButton, className, }: {
|
|
177
|
+
backButton?: ModalFooterButtonConfig;
|
|
178
|
+
cancelButton?: ModalFooterButtonConfig;
|
|
179
|
+
acceptButton?: ModalFooterButtonConfig;
|
|
180
|
+
className?: string;
|
|
181
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
182
|
+
displayName: string;
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* Component to wrap an element that closes the modal on click.
|
|
186
|
+
* @param {Object} props
|
|
187
|
+
* @param {React.ReactElement} props.children - Close trigger element.
|
|
188
|
+
* @returns {JSX.Element}
|
|
189
|
+
*/
|
|
190
|
+
declare const ModalClose: {
|
|
191
|
+
({ children }: {
|
|
192
|
+
children: React.ReactElement<React.HTMLAttributes<HTMLElement>>;
|
|
193
|
+
}): React.ReactElement<React.HTMLAttributes<HTMLElement>, string | React.JSXElementConstructor<any>>;
|
|
194
|
+
displayName: string;
|
|
195
|
+
};
|
|
196
|
+
/**
|
|
197
|
+
* Modal component exports.
|
|
198
|
+
*/
|
|
199
|
+
export { Modal, ModalTrigger, ModalContent, ModalHeader, ModalTitle, ModalDescription, ModalBody, ModalFooter, ModalFooterActions, ModalClose, };
|
|
200
|
+
/**
|
|
201
|
+
* Type exports for ModalFooterActions configuration.
|
|
202
|
+
*/
|
|
203
|
+
export type { ModalFooterButtonConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Modal';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ModuleCardHeaderProps {
|
|
3
|
+
/** Module name/title displayed in the header */
|
|
4
|
+
title?: string;
|
|
5
|
+
/** Callback when settings icon is clicked */
|
|
6
|
+
onSettingsClick?: () => void;
|
|
7
|
+
/** Additional CSS classes for the header */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Whether to show the settings button */
|
|
10
|
+
showSettings?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* ModuleCardHeader - Header section of a module card
|
|
14
|
+
*
|
|
15
|
+
* Displays the module icon, title, and optional settings button.
|
|
16
|
+
* Used as the drag handle when inside a draggable context.
|
|
17
|
+
*/
|
|
18
|
+
export declare const ModuleCardHeader: React.FC<ModuleCardHeaderProps>;
|
|
19
|
+
export interface ModuleCardProps {
|
|
20
|
+
/** Module name/title for the header */
|
|
21
|
+
title?: string;
|
|
22
|
+
/** Callback when settings icon is clicked */
|
|
23
|
+
onSettingsClick?: () => void;
|
|
24
|
+
/** Whether to show the settings button in header */
|
|
25
|
+
showSettings?: boolean;
|
|
26
|
+
/** Content to render inside the card body */
|
|
27
|
+
children?: React.ReactNode;
|
|
28
|
+
/** Additional CSS classes for the container */
|
|
29
|
+
className?: string;
|
|
30
|
+
/** Minimum width of the card */
|
|
31
|
+
minWidth?: number;
|
|
32
|
+
/** Maximum width of the card */
|
|
33
|
+
maxWidth?: number;
|
|
34
|
+
/** Empty state content when no children */
|
|
35
|
+
emptyState?: React.ReactNode;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* ModuleCard - Container card for displaying module fields
|
|
39
|
+
*
|
|
40
|
+
* A structured card component with header and body sections.
|
|
41
|
+
* The header includes a drag handle class for integration with drag libraries.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```tsx
|
|
45
|
+
* <ModuleCard title="Users" onSettingsClick={handleSettings}>
|
|
46
|
+
* <ModuleFieldItem type="text" label="Name" />
|
|
47
|
+
* <ModuleFieldItem type="email" label="Email" />
|
|
48
|
+
* </ModuleCard>
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare const ModuleCard: React.FC<ModuleCardProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ModuleCard, ModuleCardHeader, type ModuleCardProps, type ModuleCardHeaderProps, } from './ModuleCard';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ModuleFieldItemProps {
|
|
3
|
+
/** Field type label (e.g., "Texto", "Email", "Number") */
|
|
4
|
+
type: string;
|
|
5
|
+
/** Field name/label */
|
|
6
|
+
label?: string;
|
|
7
|
+
/** Description text below the type */
|
|
8
|
+
description?: string;
|
|
9
|
+
/** Whether the item is selected */
|
|
10
|
+
isSelected?: boolean;
|
|
11
|
+
/** Whether this is the last item (hides bottom border) */
|
|
12
|
+
isLast?: boolean;
|
|
13
|
+
/** Callback when the item is clicked */
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
/** Callback when delete button is clicked */
|
|
16
|
+
onDelete?: () => void;
|
|
17
|
+
/** Whether to show action buttons (drag handle, delete) */
|
|
18
|
+
showActions?: boolean;
|
|
19
|
+
/** Additional CSS classes */
|
|
20
|
+
className?: string;
|
|
21
|
+
/** Props to spread on the drag handle (for dnd-kit integration) */
|
|
22
|
+
dragHandleProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
23
|
+
/** Ref for sortable integration */
|
|
24
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
25
|
+
/** Style object (for transform during drag) */
|
|
26
|
+
style?: React.CSSProperties;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* ModuleFieldItem - A single field row in a module card
|
|
30
|
+
*
|
|
31
|
+
* Pure UI component that displays a field with type, label, and optional actions.
|
|
32
|
+
* On hover, action icons slide in from the left with a smooth animation.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```tsx
|
|
36
|
+
* // Basic usage
|
|
37
|
+
* <ModuleFieldItem
|
|
38
|
+
* type="Texto"
|
|
39
|
+
* label="Username"
|
|
40
|
+
* onClick={() => handleFieldClick('username')}
|
|
41
|
+
* />
|
|
42
|
+
*
|
|
43
|
+
* // With sortable (in consuming app)
|
|
44
|
+
* const { attributes, listeners, setNodeRef } = useSortable({ id: field.id });
|
|
45
|
+
* <ModuleFieldItem
|
|
46
|
+
* type={field.type}
|
|
47
|
+
* label={field.label}
|
|
48
|
+
* innerRef={setNodeRef}
|
|
49
|
+
* dragHandleProps={{ ...attributes, ...listeners }}
|
|
50
|
+
* />
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
export declare const ModuleFieldItem: React.ForwardRefExoticComponent<ModuleFieldItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ModuleFieldItem, type ModuleFieldItemProps } from './ModuleFieldItem';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface PanelHeaderProps {
|
|
3
|
+
/** Title text displayed in the header */
|
|
4
|
+
title: string;
|
|
5
|
+
/** Optional back button configuration */
|
|
6
|
+
backButton?: {
|
|
7
|
+
onClick: () => void;
|
|
8
|
+
'aria-label'?: string;
|
|
9
|
+
};
|
|
10
|
+
/** Optional actions to display on the right side (icons, menus, etc.) */
|
|
11
|
+
actions?: React.ReactNode;
|
|
12
|
+
/** Additional CSS classes */
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* PanelHeader - Standardized header for panels
|
|
17
|
+
*
|
|
18
|
+
* Provides consistent styling across all panel headers:
|
|
19
|
+
* - Height: 56px (fixed via h-14)
|
|
20
|
+
* - Typography: Inter Semi Bold, 14px
|
|
21
|
+
* - Border: bottom border with surface-3 color
|
|
22
|
+
* - Supports optional back button and right-side actions
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* // Simple header with title only
|
|
26
|
+
* <PanelHeader title="Types" />
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* // Header with back button and actions
|
|
30
|
+
* <PanelHeader
|
|
31
|
+
* title="Data"
|
|
32
|
+
* backButton={{ onClick: handleBack }}
|
|
33
|
+
* actions={<ContextualMenu ... />}
|
|
34
|
+
* />
|
|
35
|
+
*/
|
|
36
|
+
export declare const PanelHeader: React.FC<PanelHeaderProps>;
|
|
37
|
+
export default PanelHeader;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PanelHeader, type PanelHeaderProps } from './PanelHeader';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface PasswordResetWidgetProps {
|
|
3
|
+
/** Title displayed in the widget header. Defaults to "Recuperación" */
|
|
4
|
+
title?: string;
|
|
5
|
+
/** Actions displayed in the widget header. Pass `null` to hide. Defaults to settings button */
|
|
6
|
+
actions?: React.ReactNode | null;
|
|
7
|
+
/** Callback when password reset is submitted */
|
|
8
|
+
onSubmit?: (password: string, confirmPassword: string) => void;
|
|
9
|
+
/** Callback when back to login is clicked */
|
|
10
|
+
onBackToLogin?: () => void;
|
|
11
|
+
/** Callback when settings button is clicked */
|
|
12
|
+
onSettings?: () => void;
|
|
13
|
+
/** Optional className for the widget container */
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Password Reset Widget - A complete password reset form in a widget container
|
|
18
|
+
*/
|
|
19
|
+
export declare const PasswordResetWidget: ({ title, actions, onSubmit, onBackToLogin, onSettings, className, }: PasswordResetWidgetProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type ProductIconType = 'default' | 'brand' | 'danger' | 'success';
|
|
3
|
+
export type ProductIconSize = 'lg' | 'md' | 'sm';
|
|
4
|
+
export type ProductIconVariant = 'primary' | 'secondary' | 'tertiary' | 'quaternary';
|
|
5
|
+
export interface ProductIconProps {
|
|
6
|
+
type?: ProductIconType;
|
|
7
|
+
size?: ProductIconSize;
|
|
8
|
+
variant?: ProductIconVariant;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @file A styled container for displaying product or feature icons.
|
|
14
|
+
* @description The ProductIcon component is a wrapper that provides a consistent, themeable
|
|
15
|
+
* background and container for an icon passed as its child. Its appearance is determined
|
|
16
|
+
* by a combination of `type` (color scheme), `variant` (visual style), and `size`.
|
|
17
|
+
*
|
|
18
|
+
* @param {ProductIconType} [type='default'] - The color theme of the icon container.
|
|
19
|
+
* @param {ProductIconSize} [size='lg'] - The physical size of the icon container (sm: 34px, md: 56px, lg: 80px).
|
|
20
|
+
* @param {ProductIconVariant} [variant='primary'] - The visual style (e.g., filled, bordered).
|
|
21
|
+
* @param {React.ReactNode} children - The icon component to be rendered inside.
|
|
22
|
+
* @param {string} [className] - Optional custom CSS classes for additional styling.
|
|
23
|
+
* @returns {JSX.Element} The rendered ProductIcon element.
|
|
24
|
+
*/
|
|
25
|
+
export declare const ProductIcon: ({ type, size, variant, children, className, }: ProductIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProductIcon } from './ProductIcon';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines the display variant for the progress percentage.
|
|
3
|
+
* - "none": No percentage display
|
|
4
|
+
* - "inline": Percentage displayed inline on the right of the bar
|
|
5
|
+
* - "below": Percentage displayed below the bar with text-right alignment
|
|
6
|
+
* - "tooltip": Percentage displayed in a custom CSS tooltip at the end of the progress bar on hover
|
|
7
|
+
*/
|
|
8
|
+
type ProgressVariant = "none" | "inline" | "below" | "tooltip";
|
|
9
|
+
/**
|
|
10
|
+
* Defines the props for the Progress component.
|
|
11
|
+
*/
|
|
12
|
+
interface ProgressProps {
|
|
13
|
+
progress: number;
|
|
14
|
+
className?: string;
|
|
15
|
+
variant?: ProgressVariant;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A versatile progress bar component for displaying completion status.
|
|
19
|
+
*
|
|
20
|
+
* This component displays a horizontal progress bar with optional percentage display
|
|
21
|
+
* support for multiple display variants and is fully accessible with ARIA attributes.
|
|
22
|
+
*
|
|
23
|
+
* @param {number} progress - The current progress value as a percentage (0-100).
|
|
24
|
+
* @param {string} [className] - Additional CSS classes to apply to the progress bar container.
|
|
25
|
+
* @param {ProgressVariant} [variant="none"] - Display variant for the progress percentage.
|
|
26
|
+
* @returns {JSX.Element} The rendered progress bar element.
|
|
27
|
+
*/
|
|
28
|
+
export declare const Progress: ({ progress, className, variant, ...props }: ProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Progress } from "./Progress";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines the props for the ProgressBar component.
|
|
3
|
+
*/
|
|
4
|
+
interface ProgressBarProps {
|
|
5
|
+
progress: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A versatile progress bar component for displaying completion status.
|
|
11
|
+
*
|
|
12
|
+
* This component displays a horizontal progress bar with a circular indicator
|
|
13
|
+
* support for optional description text and is fully accessible with ARIA attributes.
|
|
14
|
+
*
|
|
15
|
+
* @param {number} progress - The current progress value as a percentage (0-100).
|
|
16
|
+
* @param {string} [description] - Optional description text to display below the progress bar.
|
|
17
|
+
* @param {string} [className] - Additional CSS classes to apply to the progress bar container.
|
|
18
|
+
* @returns {JSX.Element} The rendered progress bar element.
|
|
19
|
+
*/
|
|
20
|
+
export declare const ProgressBar: ({ progress, description, className, ...props }: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProgressBar } from "./ProgressBar";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Size variants for ProgressCircle component
|
|
3
|
+
*/
|
|
4
|
+
type ProgressSize = "xs" | "sm" | "md" | "lg";
|
|
5
|
+
/**
|
|
6
|
+
* Color variants for ProgressCircle component
|
|
7
|
+
*/
|
|
8
|
+
type ProgressVariant = "primary";
|
|
9
|
+
/**
|
|
10
|
+
* Shape variants for ProgressCircle component
|
|
11
|
+
*/
|
|
12
|
+
type ProgressShape = "circle" | "half-circle";
|
|
13
|
+
/**
|
|
14
|
+
* Defines props for ProgressCircle component.
|
|
15
|
+
*/
|
|
16
|
+
interface ProgressCircleProps {
|
|
17
|
+
progress: number;
|
|
18
|
+
size?: ProgressSize;
|
|
19
|
+
variant?: ProgressVariant;
|
|
20
|
+
shape?: ProgressShape;
|
|
21
|
+
showLabel?: boolean;
|
|
22
|
+
label?: string;
|
|
23
|
+
className?: string;
|
|
24
|
+
ariaLabel?: string;
|
|
25
|
+
id?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A versatile progress circle component for displaying completion status.
|
|
29
|
+
*
|
|
30
|
+
* This component displays a circular progress indicator with support for
|
|
31
|
+
* different sizes, colors, shapes, and optional label display. It is fully accessible
|
|
32
|
+
* with ARIA attributes and follows the project's design system.
|
|
33
|
+
*
|
|
34
|
+
* @param {number} progress - The current progress value as a percentage (0-100).
|
|
35
|
+
* @param {ProgressSize} [size='md'] - Size variant of progress circle.
|
|
36
|
+
* @param {ProgressVariant} [variant='primary'] - Color variant of progress circle.
|
|
37
|
+
* @param {ProgressShape} [shape='circle'] - Shape variant of progress circle.
|
|
38
|
+
* @param {boolean} [showLabel=true] - Whether to show progress label inside/under circle.
|
|
39
|
+
* @param {string} [label] - Custom label text to display instead of percentage.
|
|
40
|
+
* @param {string} [className] - Additional CSS classes to apply to the progress circle container.
|
|
41
|
+
* @returns {JSX.Element} The rendered progress circle element.
|
|
42
|
+
*/
|
|
43
|
+
export declare const ProgressCircle: ({ progress, size, variant, shape, showLabel, label, className, ariaLabel, id, ...props }: ProgressCircleProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProgressCircle } from './ProgressCircle';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines the display variant for the progress percentage.
|
|
3
|
+
* - "none": No percentage display
|
|
4
|
+
* - "inline": Percentage displayed inline on the right of the bar
|
|
5
|
+
* - "below": Percentage displayed below the bar with text-right alignment
|
|
6
|
+
* - "tooltip": Percentage displayed in a tooltip when hovering over the progress bar (uses Radix UI)
|
|
7
|
+
*/
|
|
8
|
+
type ProgressVariant = "none" | "inline" | "below" | "tooltip";
|
|
9
|
+
/**
|
|
10
|
+
* Defines the props for the ProgressCustomTooltip component.
|
|
11
|
+
*/
|
|
12
|
+
interface ProgressCustomTooltipProps {
|
|
13
|
+
progress: number;
|
|
14
|
+
className?: string;
|
|
15
|
+
isActive?: boolean;
|
|
16
|
+
variant?: ProgressVariant;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A versatile progress bar component for displaying completion status.
|
|
20
|
+
*
|
|
21
|
+
* This component displays a horizontal progress bar with optional percentage display
|
|
22
|
+
* support for multiple display variants and is fully accessible with ARIA attributes.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* // No percentage display
|
|
26
|
+
* <ProgressCustomTooltip progress={75} variant="none" />
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* // Inline percentage
|
|
30
|
+
* <ProgressCustomTooltip progress={75} variant="inline" />
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* // Below percentage
|
|
34
|
+
* <ProgressCustomTooltip progress={75} variant="below" />
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* // Tooltip on hover - shows percentage when hovering over the progress bar (Radix UI)
|
|
38
|
+
* <ProgressCustomTooltip progress={75} variant="tooltip" />
|
|
39
|
+
*
|
|
40
|
+
* @param {number} progress - The current progress value as a percentage (0-100).
|
|
41
|
+
* @param {string} [className] - Additional CSS classes to apply to the progress bar container.
|
|
42
|
+
* @param {boolean} [isActive] - Whether this progress bar represents the currently active step.
|
|
43
|
+
* @param {ProgressVariant} [variant="none"] - Display variant for the progress percentage.
|
|
44
|
+
* @returns {JSX.Element} The rendered progress bar element.
|
|
45
|
+
*/
|
|
46
|
+
export declare const ProgressCustomTooltip: ({ progress, className, isActive, variant, ...props }: ProgressCustomTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProgressCustomTooltip } from "./ProgressCustomTooltip";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props for the ProgressTracker component
|
|
3
|
+
*/
|
|
4
|
+
interface ProgressTrackerProps {
|
|
5
|
+
/** Current step number (1-based index) */
|
|
6
|
+
currentStep: number;
|
|
7
|
+
/** Total number of steps */
|
|
8
|
+
totalSteps: number;
|
|
9
|
+
/** Optional progress percentage for the current step (0-100). If not provided, current step shows as 50% */
|
|
10
|
+
currentStepProgress?: number;
|
|
11
|
+
/** Optional descriptions for each step */
|
|
12
|
+
stepDescriptions?: string[];
|
|
13
|
+
title?: string;
|
|
14
|
+
subtitle?: string;
|
|
15
|
+
collapsed?: boolean;
|
|
16
|
+
onToggleCollapse?: (collapsed: boolean) => void;
|
|
17
|
+
onClose?: () => void;
|
|
18
|
+
/** If true, only displays the progress circle without other elements */
|
|
19
|
+
onlyProgressCircle?: boolean;
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A versatile progress tracker component that displays multiple progress indicators
|
|
24
|
+
* with both collapsed and expanded states, following shadcn/ui design principles.
|
|
25
|
+
*
|
|
26
|
+
* @param {number} currentStep - Current step number (1-based)
|
|
27
|
+
* @param {number} totalSteps - Total number of steps
|
|
28
|
+
* @param {number} [currentStepProgress] - Optional progress for current step (0-100)
|
|
29
|
+
* @param {string[]} [stepDescriptions] - Optional descriptions for each step
|
|
30
|
+
* @param {string} [title] - Optional title displayed in expanded state
|
|
31
|
+
* @param {string} [subtitle] - Optional subtitle displayed in expanded state
|
|
32
|
+
* @param {string} [className] - Additional CSS classes
|
|
33
|
+
* @returns {JSX.Element} The rendered progress tracker component
|
|
34
|
+
*/
|
|
35
|
+
export declare const ProgressTracker: ({ currentStep, totalSteps, currentStepProgress, stepDescriptions, title, subtitle, className, collapsed: collapsedProp, onToggleCollapse, onClose, onlyProgressCircle, }: ProgressTrackerProps) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ProgressTracker';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface LabelIconItem {
|
|
3
|
+
icon: React.ReactNode;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ActionButton {
|
|
7
|
+
icon: React.ReactNode;
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
ariaLabel?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ProjectActionCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
12
|
+
title: string;
|
|
13
|
+
subtitle: string;
|
|
14
|
+
image: string;
|
|
15
|
+
imageAlt?: string;
|
|
16
|
+
actionButtons?: ActionButton[];
|
|
17
|
+
labelIcons?: LabelIconItem[];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A component for displaying a support card with a title, subtitle, and action buttons.
|
|
21
|
+
* Each button can have an icon, label, and custom variant/hierarchy styling.
|
|
22
|
+
*/
|
|
23
|
+
export declare const ProjectActionCard: ({ className, title, subtitle, image, imageAlt, actionButtons, labelIcons, ...props }: ProjectActionCardProps) => import("react/jsx-runtime").JSX.Element;
|