@epam/ai-dial-ui-kit 0.13.0-dev.9 → 0.14.0-dev.1
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 +45 -0
- package/dist/CHANGELOG.md +48 -1
- package/dist/{JsonEditor-CRSkEnWP.cjs → JsonEditor-pyqbLZZf.cjs} +1 -1
- package/dist/{JsonEditor-Djt1V27V.js → JsonEditor-v9m_npfK.js} +1 -1
- package/dist/MarkdownEditor-5UpxUtXf.js +75 -0
- package/dist/{MarkdownEditor-BbGX2uA9.cjs → MarkdownEditor-9aPIyyuu.cjs} +1 -1
- package/dist/MarkdownEditor-BjqdSHPU.cjs +1 -0
- package/dist/{MarkdownEditor-DtKScLM2.js → MarkdownEditor-CWZVSR--.js} +1 -1
- package/dist/components-manifest.json +3420 -391
- package/dist/dial-ui-kit.cjs.js +1 -1
- package/dist/dial-ui-kit.es.js +201 -148
- package/dist/{index-JVDPW40K.js → index-DKDaSZqV.js} +24490 -21241
- package/dist/index-xlqMH2Q1.cjs +71 -0
- package/dist/index.css +6 -2
- package/dist/mcp-server.cjs +29 -9
- package/dist/migration-guides/0.13.0/caption-semi-text-lead-rename.md +82 -0
- package/dist/migration-guides/0.13.0/field-label-props-unification.md +94 -0
- package/dist/migration-guides/0.13.0/focus-border-token-rename.md +106 -0
- package/dist/migration-guides/0.13.0/progress-bar-2-0-rewrite.md +103 -0
- package/dist/migration-guides/0.13.0/spinner-dial-prefix-removal.md +69 -0
- package/dist/migration-guides/0.13.0/typography-heading-scale-shift.md +93 -0
- package/dist/migration-guides/README.md +6 -0
- package/dist/src/components/Accordion/Accordion.d.ts +1 -0
- package/dist/src/components/Analytics/Bar/Bar.d.ts +12 -7
- package/dist/src/components/Analytics/BarGroup/BarGroup.d.ts +23 -16
- package/dist/src/components/Analytics/Card/Card.d.ts +14 -3
- package/dist/src/components/Analytics/ErrorTag/ErrorTag.d.ts +1 -0
- package/dist/src/components/Analytics/Histogram/Histogram.d.ts +9 -6
- package/dist/src/components/Analytics/Histogram/utils.d.ts +10 -0
- package/dist/src/components/AutocompleteInput/AutocompleteInputValue.d.ts +1 -0
- package/dist/src/components/Breadcrumb/Breadcrumb.d.ts +1 -0
- package/dist/src/components/Breadcrumb/BreadcrumbItem.d.ts +3 -0
- package/dist/src/components/Button/Button.d.ts +1 -0
- package/dist/src/components/Button/ButtonWrappers.d.ts +1 -15
- package/dist/src/components/ButtonDropdown/ButtonDropdown.d.ts +1 -0
- package/dist/src/components/CaptionText/CaptionText.d.ts +1 -0
- package/dist/src/components/Checkbox/Checkbox.d.ts +1 -0
- package/dist/src/components/CloseButton/CloseButton.d.ts +1 -0
- package/dist/src/components/CollapsibleSidebar/CollapsibleSidebar.d.ts +1 -0
- package/dist/src/components/ConfirmationPopup/ConfirmationPopup.d.ts +1 -0
- package/dist/src/components/DraggableItem/DraggableItem.d.ts +1 -0
- package/dist/src/components/DropdownIcon/DropdownIcon.d.ts +1 -0
- package/dist/src/components/EllipsisTooltip/EllipsisTooltip.d.ts +1 -0
- package/dist/src/components/FabButton/FabButton.d.ts +8 -3
- package/dist/src/components/FileIcon/FileIcon.d.ts +1 -0
- package/dist/src/components/FileManager/FileManager.d.ts +3 -0
- package/dist/src/components/FileManager/FileManagerProvider.d.ts +1 -0
- package/dist/src/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.d.ts +3 -0
- package/dist/src/components/FileManager/components/FoldersTree/FoldersTree.d.ts +3 -0
- package/dist/src/components/FileManager/hooks/use-file-manager-context.d.ts +2 -0
- package/dist/src/components/FileManager/hooks/use-file-manager-tabs.d.ts +3 -0
- package/dist/src/components/FileName/FileName.d.ts +1 -0
- package/dist/src/components/FolderName/FolderName.d.ts +1 -0
- package/dist/src/components/FormItem/FormItem.d.ts +1 -0
- package/dist/src/components/FormPopup/FormPopup.d.ts +1 -0
- package/dist/src/components/Grid/Grid.d.ts +1 -0
- package/dist/src/components/Grid/comparators/base-column-comparator.d.ts +1 -0
- package/dist/src/components/Grid/renderers/DateCellRenderer.d.ts +1 -0
- package/dist/src/components/Icon/Icon.d.ts +1 -0
- package/dist/src/components/IconButton/IconButton.d.ts +5 -0
- package/dist/src/components/IconButton/IconButtonWrappers.d.ts +1 -0
- package/dist/src/components/Input/Input.d.ts +1 -0
- package/dist/src/components/InputPopup/InputPopup.d.ts +1 -0
- package/dist/src/components/JsonEditor/JsonEditor.d.ts +1 -0
- package/dist/src/components/Label/Label.d.ts +1 -0
- package/dist/src/components/LabelledText/LabelledText.d.ts +1 -0
- package/dist/src/components/LoadFileArea/LoadFileArea.d.ts +1 -0
- package/dist/src/components/LoadFileArea/LoadFileAreaField.d.ts +1 -0
- package/dist/src/components/Loader/Loader.d.ts +1 -0
- package/dist/src/components/MarkdownEditor/MarkdownEditor.d.ts +1 -0
- package/dist/src/components/New/Accordion/Accordion.d.ts +71 -0
- package/dist/src/components/New/Button/Button.d.ts +66 -0
- package/dist/src/components/New/Button/ButtonWrappers.d.ts +94 -0
- package/dist/src/components/New/Button/__tests__/utils.spec.d.ts +1 -0
- package/dist/src/components/New/Button/constants.d.ts +2 -0
- package/dist/src/components/New/Button/utils.d.ts +2 -0
- package/dist/src/components/New/ButtonDropdown/ButtonDropdown.d.ts +24 -0
- package/dist/src/components/New/ButtonDropdown/constants.d.ts +1 -0
- package/dist/src/components/New/Calendar/Calendar.d.ts +55 -0
- package/dist/src/components/New/Calendar/constants.d.ts +17 -0
- package/dist/src/components/New/Calendar/utils.d.ts +25 -0
- package/dist/src/components/New/Calendar/utils.spec.d.ts +1 -0
- package/dist/src/components/New/CaptionText/CaptionText.d.ts +21 -0
- package/dist/src/components/New/CardShell/CardShell.d.ts +14 -0
- package/dist/src/components/New/CloseButton/CloseButton.d.ts +33 -0
- package/dist/src/components/New/ConfirmationPopup/ConfirmationPopup.d.ts +55 -0
- package/dist/src/components/New/ConfirmationPopup/constants.d.ts +14 -0
- package/dist/src/components/New/Dropdown/Dropdown.d.ts +87 -0
- package/dist/src/components/New/Dropdown/DropdownSubMenuItem.d.ts +8 -0
- package/dist/src/components/New/Dropdown/constants.d.ts +9 -0
- package/dist/src/components/New/FileDropzone/FileDropzone.d.ts +81 -0
- package/dist/src/components/New/FolderPath/FolderPath.d.ts +32 -0
- package/dist/src/components/New/Highlight/Highlight.d.ts +19 -0
- package/dist/src/components/New/IconButton/IconButton.d.ts +48 -0
- package/dist/src/components/New/IconButton/IconButtonWrappers.d.ts +71 -0
- package/dist/src/components/New/InfoButton/InfoButton.d.ts +26 -0
- package/dist/src/components/New/InfoButton/InfoButton.stories.d.ts +6 -0
- package/dist/src/components/New/InlineSelect/InlineSelect.d.ts +51 -0
- package/dist/src/components/New/Input/Button/InputButton.d.ts +25 -0
- package/dist/src/components/New/Input/Button/constants.d.ts +1 -0
- package/dist/src/components/New/Input/Input.d.ts +67 -0
- package/dist/src/components/New/Input/utils.d.ts +2 -0
- package/dist/src/components/New/Label/Label.d.ts +33 -0
- package/dist/src/components/New/MarkdownEditor/MarkdownEditor.d.ts +33 -0
- package/dist/src/components/New/MarkdownEditor/constants.d.ts +20 -0
- package/dist/src/components/New/Notification/Notification.d.ts +7 -0
- package/dist/src/components/New/Notification/constants.d.ts +12 -1
- package/dist/src/components/New/NumberInput/NumberInput.d.ts +36 -0
- package/dist/src/components/New/PasswordInput/PasswordInput.d.ts +33 -0
- package/dist/src/components/New/Popup/Popup.d.ts +72 -0
- package/dist/src/components/New/Popup/constants.d.ts +10 -0
- package/dist/src/components/New/Search/Search.d.ts +42 -0
- package/dist/src/components/New/Select/MultiSelectTags.d.ts +17 -0
- package/dist/src/components/New/Select/Select.d.ts +110 -0
- package/dist/src/components/New/Select/SelectSubMenuItem.d.ts +8 -0
- package/dist/src/components/New/Select/constants.d.ts +32 -0
- package/dist/src/components/New/Switch/Switch.d.ts +38 -0
- package/dist/src/components/New/Tabs/Tabs.d.ts +63 -0
- package/dist/src/components/New/Tag/Tag.d.ts +45 -0
- package/dist/src/components/New/TagInput/TagInput.d.ts +72 -0
- package/dist/src/components/New/TagInput/utils.d.ts +21 -0
- package/dist/src/components/New/TagInput/utils.spec.d.ts +1 -0
- package/dist/src/components/New/Textarea/Textarea.d.ts +39 -0
- package/dist/src/components/New/constants/overlay.d.ts +24 -0
- package/dist/src/components/NoDataContent/NoDataContent.d.ts +1 -0
- package/dist/src/components/Notification/Notification.d.ts +1 -0
- package/dist/src/components/NumberInput/NumberInput.d.ts +1 -0
- package/dist/src/components/Pagination/Pagination.d.ts +3 -0
- package/dist/src/components/PasswordInput/PasswordInput.d.ts +1 -0
- package/dist/src/components/Popup/Popup.d.ts +2 -1
- package/dist/src/components/ProgressBar/ProgressBar.d.ts +51 -10
- package/dist/src/components/RadioButton/RadioButton.d.ts +1 -0
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +1 -0
- package/dist/src/components/RadioGroupPopupField/RadioGroupPopupField.d.ts +1 -0
- package/dist/src/components/RemoveButton/RemoveButton.d.ts +1 -0
- package/dist/src/components/ResizableContainer/ConditionalResizableContainer.d.ts +1 -0
- package/dist/src/components/ResizableContainer/ResizableContainer.d.ts +1 -0
- package/dist/src/components/SchemaRenderer/SchemaRenderer.d.ts +1 -0
- package/dist/src/components/SchemaRenderer/components/SchemaKeyValueEditor.d.ts +9 -1
- package/dist/src/components/SchemaRenderer/types.d.ts +6 -1
- package/dist/src/components/SchemaRenderer/utils.d.ts +1 -0
- package/dist/src/components/Search/Search.d.ts +1 -0
- package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +1 -0
- package/dist/src/components/Select/Select.d.ts +1 -0
- package/dist/src/components/SelectField/SelectField.d.ts +1 -0
- package/dist/src/components/SharedEntityIndicator/SharedEntityIndicator.d.ts +1 -0
- package/dist/src/components/Skeleton/Skeleton.d.ts +19 -18
- package/dist/src/components/Skeleton/utils.d.ts +2 -2
- package/dist/src/components/Slider/Slider.d.ts +1 -0
- package/dist/src/components/Spinner/Spinner.d.ts +5 -2
- package/dist/src/components/Steps/Steps.d.ts +1 -0
- package/dist/src/components/Switch/Switch.d.ts +1 -0
- package/dist/src/components/Tabs/Tabs.d.ts +1 -0
- package/dist/src/components/Tag/Tag.d.ts +1 -0
- package/dist/src/components/TagInput/TagInput.d.ts +1 -0
- package/dist/src/components/Textarea/Textarea.d.ts +1 -0
- package/dist/src/components/Tooltip/Tooltip.d.ts +1 -0
- package/dist/src/components/Tooltip/TooltipContainer.d.ts +1 -0
- package/dist/src/components/Tooltip/TooltipContent.d.ts +1 -0
- package/dist/src/components/Tooltip/TooltipTrigger.d.ts +1 -0
- package/dist/src/index.d.ts +89 -13
- package/dist/src/mcp/types.d.ts +12 -0
- package/dist/src/models/dropdown.d.ts +27 -0
- package/dist/src/types/button.d.ts +1 -0
- package/dist/src/types/calendar.d.ts +6 -0
- package/dist/src/types/skeleton.d.ts +3 -3
- package/dist/src/utils/__tests__/accessible-name.spec.d.ts +1 -0
- package/dist/src/utils/__tests__/file-accept.spec.d.ts +1 -0
- package/dist/src/utils/accessible-name.d.ts +19 -0
- package/dist/src/utils/file-accept.d.ts +16 -0
- package/dist/src/utils/sub-menu-floating.d.ts +15 -2
- package/package.json +4 -2
- package/dist/index-CmA_N28F.cjs +0 -71
|
@@ -12,6 +12,7 @@ export interface DialBreadcrumbProps {
|
|
|
12
12
|
/**
|
|
13
13
|
* Breadcrumb navigation component with horizontal scroll on overflow.
|
|
14
14
|
* aliases: NavigationPath|BreadcrumbTrail
|
|
15
|
+
* Design system 1.0
|
|
15
16
|
*
|
|
16
17
|
* Use either the `pathItems` prop or compose with `<DialBreadcrumbItem/>` as children.
|
|
17
18
|
* The last item is treated as the current page.
|
|
@@ -4,6 +4,7 @@ type ButtonVariantProps = Omit<DialButtonProps, 'variant'>;
|
|
|
4
4
|
type ButtonAppearanceProps = Omit<DialButtonProps, 'appearance'>;
|
|
5
5
|
/**
|
|
6
6
|
* A Primary Button component with predefined primary variant
|
|
7
|
+
* Design system 1.0
|
|
7
8
|
* @example
|
|
8
9
|
* ```tsx
|
|
9
10
|
* <DialPrimaryButton
|
|
@@ -68,19 +69,4 @@ export declare const DialLinkButton: FC<ButtonAppearanceProps>;
|
|
|
68
69
|
* Inherits all properties from the `DialButtonProps`
|
|
69
70
|
*/
|
|
70
71
|
export declare const DialGhostButton: FC<ButtonAppearanceProps>;
|
|
71
|
-
export interface DialRoundedButtonProps extends Omit<DialButtonProps, 'variant' | 'appearance'> {
|
|
72
|
-
selected?: boolean;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* A pill-shaped neutral button with an optional selected state.
|
|
76
|
-
* @example
|
|
77
|
-
* ```tsx
|
|
78
|
-
* <DialRoundedButton label="Tag" selected={isActive} onClick={handleClick} />
|
|
79
|
-
* ```
|
|
80
|
-
*
|
|
81
|
-
* Inherits all properties from `DialButtonProps` except `variant` and `appearance`.
|
|
82
|
-
*
|
|
83
|
-
* @param [selected=false] - Applies accent-primary tint and border when true
|
|
84
|
-
*/
|
|
85
|
-
export declare const DialRoundedButton: FC<DialRoundedButtonProps>;
|
|
86
72
|
export {};
|
|
@@ -14,6 +14,7 @@ export interface DialCollapsibleSidebarProps {
|
|
|
14
14
|
/**
|
|
15
15
|
* A collapsible horizontal bar component that allows toggling between an expanded and collapsed state.
|
|
16
16
|
* aliases: ToggleSidebar|CollapsiblePanel
|
|
17
|
+
* Design system 1.0
|
|
17
18
|
*
|
|
18
19
|
* It supports customizable width, title, icons, additional buttons, and flexible styling options.
|
|
19
20
|
*
|
|
@@ -17,6 +17,7 @@ export interface DialConfirmationPopupProps extends DialPopupProps {
|
|
|
17
17
|
/**
|
|
18
18
|
* A confirmation dialog built with DialPopup and DialButton.
|
|
19
19
|
* aliases: ConfirmDialog|WarningDialog
|
|
20
|
+
* Design system 1.0
|
|
20
21
|
*
|
|
21
22
|
* Provides an accessible modal with a title, optional description or custom content,
|
|
22
23
|
* and a footer with Cancel / Confirm actions.
|
|
@@ -10,6 +10,7 @@ export interface DialDraggableItemProps {
|
|
|
10
10
|
/**
|
|
11
11
|
* A lightweight wrapper that makes its children sortable via drag-and-drop.
|
|
12
12
|
* aliases: SortableItem|DragHandle
|
|
13
|
+
* Design system 1.0
|
|
13
14
|
*
|
|
14
15
|
* Renders a row with a grab handle (left) and the provided content (right).
|
|
15
16
|
* Integrates with `react-dnd` using a simple "column" drag type and delegates
|
|
@@ -11,6 +11,7 @@ export interface DialEllipsisTooltipProps extends DialTooltipContainerOptions {
|
|
|
11
11
|
/**
|
|
12
12
|
* Single-line text with CSS ellipsis that shows a tooltip **only when actually truncated**.
|
|
13
13
|
* aliases: TruncatedText|TruncationTooltip
|
|
14
|
+
* Design system 1.0
|
|
14
15
|
*
|
|
15
16
|
* If the text fits, tooltip content is empty and the popup stays hidden.
|
|
16
17
|
*
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, DetailedHTMLProps, FC, ReactNode } from 'react';
|
|
2
2
|
import { DialTooltipProps } from '../Tooltip/Tooltip';
|
|
3
3
|
type TooltipProps = Omit<DialTooltipProps, 'children'>;
|
|
4
|
-
export interface
|
|
4
|
+
export interface FabButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
5
5
|
icon?: ReactNode;
|
|
6
6
|
tooltipProps?: TooltipProps;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* A Floating Action Button (FAB) component — circular icon button for primary actions.
|
|
10
10
|
* aliases: FloatingActionButton|FabButton|CircularButton
|
|
11
|
+
* Design system 2.0
|
|
11
12
|
*
|
|
12
13
|
* @example
|
|
13
14
|
* ```tsx
|
|
14
|
-
* <
|
|
15
|
+
* <FabButton
|
|
15
16
|
* icon={<IconArrowNarrowDown size={24} stroke={1.5} />}
|
|
16
17
|
* onClick={handleClick}
|
|
17
18
|
* aria-label="Scroll to bottom"
|
|
@@ -20,8 +21,12 @@ export interface DialFabButtonProps extends DetailedHTMLProps<ButtonHTMLAttribut
|
|
|
20
21
|
*
|
|
21
22
|
* inherits all properties from `ButtonHTMLAttributes<HTMLButtonElement>`
|
|
22
23
|
*
|
|
24
|
+
* The button is icon-only, so it needs an accessible name: pass `aria-label`,
|
|
25
|
+
* or a string `tooltipProps.tooltip`, which is used as the label when no
|
|
26
|
+
* `aria-label` is given.
|
|
27
|
+
*
|
|
23
28
|
* @param icon - Icon to display inside the button
|
|
24
29
|
* @param [tooltipProps] - Optional tooltip configuration
|
|
25
30
|
*/
|
|
26
|
-
export declare const
|
|
31
|
+
export declare const FabButton: FC<FabButtonProps>;
|
|
27
32
|
export {};
|
|
@@ -207,6 +207,9 @@ export interface DialFileManagerProps {
|
|
|
207
207
|
/**
|
|
208
208
|
* File Manager layout with a collapsible folders tree, breadcrumb/search header, and a data grid.
|
|
209
209
|
* aliases: FileExplorer|FileBrowser
|
|
210
|
+
* Design system 1.0
|
|
211
|
+
*
|
|
212
|
+
* @deprecated Import `DialFileManager` from `@epam/ai-dial-react-file-manager` instead.
|
|
210
213
|
*
|
|
211
214
|
* Features:
|
|
212
215
|
* - Global `path` drives both the breadcrumb trail and the visible folder in the grid.
|
|
@@ -16,5 +16,6 @@ export interface FileManagerProviderProps extends Omit<DialFileManagerProps, 'ch
|
|
|
16
16
|
* - computed grid rows
|
|
17
17
|
* - new actions
|
|
18
18
|
*
|
|
19
|
+
* @deprecated Import `FileManagerProvider` from `@epam/ai-dial-react-file-manager` instead.
|
|
19
20
|
*/
|
|
20
21
|
export declare const FileManagerProvider: FC<FileManagerProviderProps>;
|
|
@@ -25,6 +25,9 @@ export interface DestinationFolderPopupProps extends DialFileManagerProps {
|
|
|
25
25
|
/**
|
|
26
26
|
* DestinationFolderPopup
|
|
27
27
|
* aliases: FolderSelector|PathChooser
|
|
28
|
+
* Design system 1.0
|
|
29
|
+
*
|
|
30
|
+
* @deprecated Import `DialDestinationFolderPopup` from `@epam/ai-dial-react-file-manager` instead.
|
|
28
31
|
*
|
|
29
32
|
* A popup dialog for selecting a destination folder when copying or moving files.
|
|
30
33
|
* Displays a File Manager interface with a footer containing action buttons and
|
|
@@ -31,8 +31,11 @@ export interface DialFoldersTreeProps {
|
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* DialFoldersTree — A hierarchical folder tree component with nested expand/collapse support, selection highlighting,
|
|
34
|
+
* Design system 1.0
|
|
34
35
|
* and optional file display.
|
|
35
36
|
*
|
|
37
|
+
* @deprecated Import `DialFoldersTree` from `@epam/ai-dial-react-file-manager` instead.
|
|
38
|
+
*
|
|
36
39
|
* Provides a fully interactive, recursive folder structure with:
|
|
37
40
|
* - Expandable and collapsible items
|
|
38
41
|
* - Optional file visibility
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hook to read the File Manager context.
|
|
3
3
|
* Throws if used outside of the provider.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated Import `useFileManagerContext` from `@epam/ai-dial-react-file-manager` instead.
|
|
4
6
|
*/
|
|
5
7
|
export declare const useFileManagerContext: () => import('../FileManagerContext').FileManagerContextValue;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { TabModel } from '../../../models/tab';
|
|
2
2
|
import { DialFileManagerTabs } from '../../../types/file-manager';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Import `useDialFileManagerTabs` from `@epam/ai-dial-react-file-manager` instead.
|
|
5
|
+
*/
|
|
3
6
|
export declare const useDialFileManagerTabs: (tabLabels?: Record<DialFileManagerTabs, string>, initialTab?: DialFileManagerTabs) => {
|
|
4
7
|
activeTab: DialFileManagerTabs;
|
|
5
8
|
handleTabChange: (tab: DialFileManagerTabs) => void;
|
|
@@ -14,6 +14,7 @@ export interface DialFormItemProps extends DialFormItemBaseProps {
|
|
|
14
14
|
/**
|
|
15
15
|
* A layout wrapper for form controls with label, helper text and error message.
|
|
16
16
|
* aliases: FieldWrapper|FormControl
|
|
17
|
+
* Design system 1.0
|
|
17
18
|
*
|
|
18
19
|
* Uses `DialLabel` for the label and `DialErrorText` for consistent error styling.
|
|
19
20
|
* Wires accessibility with:
|
|
@@ -13,6 +13,7 @@ export interface DialFormPopupProps extends DialPopupProps {
|
|
|
13
13
|
/**
|
|
14
14
|
* A form-oriented popup dialog.
|
|
15
15
|
* aliases: FormDialog|FormModal
|
|
16
|
+
* Design system 1.0
|
|
16
17
|
*
|
|
17
18
|
* Provides an accessible popup with a title, custom body,
|
|
18
19
|
* and a footer with "Cancel" and "Submit" actions.
|
|
@@ -29,6 +29,7 @@ export interface DialGridProps<T extends object = Record<string, unknown>> {
|
|
|
29
29
|
/**
|
|
30
30
|
* DialGrid — A feature-rich data grid wrapper built on ag-Grid with dark theme support.
|
|
31
31
|
* aliases: DataTable|TableGrid
|
|
32
|
+
* Design system 1.0
|
|
32
33
|
*
|
|
33
34
|
* Provides a pre-configured grid with:
|
|
34
35
|
* - Dark theme styling with CSS variable integration
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ColDef, IRowNode } from 'ag-grid-community';
|
|
2
2
|
export declare const baseColumnComparator: (a: string | number | undefined, b: string | number | undefined, _nodeA?: IRowNode, _nodeB?: IRowNode, isInverted?: boolean) => number;
|
|
3
|
+
export declare const omitUndefined: <T extends object>(value: T | undefined) => T;
|
|
3
4
|
export declare const checkColDefsChanges: (cols: ColDef[], initialCols: ColDef[]) => boolean;
|
|
@@ -11,6 +11,7 @@ export interface DialDateCellRendererProps extends Partial<ICellRendererParams<R
|
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Minimal date cell renderer (ag-Grid compatible).
|
|
14
|
+
* Design system 1.0
|
|
14
15
|
*
|
|
15
16
|
* Renders the value in the **"MMM dd, yyyy"** format (e.g., "Jul 20, 2025"),
|
|
16
17
|
* wrapped in `DialEllipsisTooltip` (tooltip only appears if truncated).
|
|
@@ -13,6 +13,7 @@ export interface DialIconButtonProps extends DetailedHTMLProps<ButtonHTMLAttribu
|
|
|
13
13
|
/**
|
|
14
14
|
* A Icon Button component with flexible icon and text positioning
|
|
15
15
|
* aliases: IconicButton|SymbolButton
|
|
16
|
+
* Design system 1.0
|
|
16
17
|
*
|
|
17
18
|
* @example
|
|
18
19
|
* ```tsx
|
|
@@ -33,6 +34,10 @@ export interface DialIconButtonProps extends DetailedHTMLProps<ButtonHTMLAttribu
|
|
|
33
34
|
*
|
|
34
35
|
* inherits all properties from the `ButtonHTMLAttributes<HTMLButtonElement>`
|
|
35
36
|
*
|
|
37
|
+
* The button is icon-only, so it needs an accessible name: pass `aria-label`,
|
|
38
|
+
* or a string `tooltipProps.tooltip`, which is used as the label when no
|
|
39
|
+
* `aria-label` is given.
|
|
40
|
+
*
|
|
36
41
|
* @param [variant] - Defines the visual style of the button
|
|
37
42
|
* @param [appearance=ButtonAppearance.Solid] - Defines the type of the button
|
|
38
43
|
* @param [size=ElementSize.Standard] - Defines the size of the button
|
|
@@ -4,6 +4,7 @@ type ButtonVariantProps = Omit<DialIconButtonProps, 'variant'>;
|
|
|
4
4
|
type ButtonAppearanceProps = Omit<DialIconButtonProps, 'appearance'>;
|
|
5
5
|
/**
|
|
6
6
|
* A Primary Icon Button component with predefined primary variant
|
|
7
|
+
* Design system 1.0
|
|
7
8
|
* @example
|
|
8
9
|
* ```tsx
|
|
9
10
|
* <DialPrimaryIconButton
|
|
@@ -20,6 +20,7 @@ export interface DialInputPopupProps {
|
|
|
20
20
|
/**
|
|
21
21
|
* An input field that opens a popup when clicked, displaying a selected value or a list of values.
|
|
22
22
|
* aliases: PopupInput|ReadonlyInput
|
|
23
|
+
* Design system 1.0
|
|
23
24
|
*
|
|
24
25
|
* It supports read-only mode, error states, and disabled state, with customizable styling.
|
|
25
26
|
* The modal content is rendered using a portal for seamless integration.
|
|
@@ -12,6 +12,7 @@ export interface DialJsonEditorProps {
|
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* A JSON editor component built on top of Monaco Editor.
|
|
15
|
+
* Design system 1.0
|
|
15
16
|
* Provides syntax highlighting, validation, and theme support for JSON editing.
|
|
16
17
|
*
|
|
17
18
|
* @param currentTheme - The theme to apply to the editor
|
|
@@ -11,6 +11,7 @@ export interface DialLoadFileAreaProps extends DialEmptyFileAreaProps {
|
|
|
11
11
|
/**
|
|
12
12
|
* A drag-and-drop file upload area component that allows users to upload files
|
|
13
13
|
* aliases: FileDropZone|DragDropUpload
|
|
14
|
+
* Design system 1.0
|
|
14
15
|
*
|
|
15
16
|
* either by dragging them into the area or by selecting them through the file picker.
|
|
16
17
|
* Displays helpful text, button prompts, and validation errors for file format or count limits.
|
|
@@ -10,6 +10,7 @@ export interface DialLoadFileAreaFieldProps extends DialLoadFileAreaProps {
|
|
|
10
10
|
/**
|
|
11
11
|
* A composite file upload field that combines a label, file list management,
|
|
12
12
|
* aliases: UploadField|FileListField
|
|
13
|
+
* Design system 1.0
|
|
13
14
|
*
|
|
14
15
|
* and a drag-and-drop upload area. Allows users to add, remove, and validate files
|
|
15
16
|
* with customizable restrictions on file types and count.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
export interface AccordionProps {
|
|
3
|
+
/** Title rendered in the header. */
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
/** Optional secondary text rendered under the title. */
|
|
6
|
+
description?: ReactNode;
|
|
7
|
+
/** Content revealed when the accordion is expanded. */
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
/** Controlled expanded state. When provided, the component becomes controlled. */
|
|
10
|
+
expanded?: boolean;
|
|
11
|
+
/** Initial expanded state when uncontrolled. Defaults to `false`. */
|
|
12
|
+
defaultExpanded?: boolean;
|
|
13
|
+
/** Disables toggling. */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Renders the panel permanently expanded: the content is always visible, the
|
|
17
|
+
* caret is hidden and the header is a plain heading rather than a control.
|
|
18
|
+
*/
|
|
19
|
+
nonCollapsible?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Accessible name for the header control. Only needed when `title` is a node
|
|
22
|
+
* that carries no text of its own — a string title already names the header.
|
|
23
|
+
*/
|
|
24
|
+
ariaLabel?: string;
|
|
25
|
+
/** Fired when the header is clicked. Receives the next expanded state. */
|
|
26
|
+
onToggle?: (expanded: boolean) => void;
|
|
27
|
+
/** Additional CSS classes for the outer container. */
|
|
28
|
+
className?: string;
|
|
29
|
+
/** Additional CSS classes for the header. */
|
|
30
|
+
headerClassName?: string;
|
|
31
|
+
/** Additional CSS classes for the content region. */
|
|
32
|
+
contentClassName?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A collapsible panel that toggles its content when the header is clicked.
|
|
36
|
+
* aliases: Collapse|Disclosure|ExpandablePanel
|
|
37
|
+
* Design system 2.0
|
|
38
|
+
*
|
|
39
|
+
* Works as a controlled component when `expanded` is provided, otherwise it manages
|
|
40
|
+
* its own state from `defaultExpanded`. The header shows a caret that rotates when
|
|
41
|
+
* expanded, a title, and an optional description stacked beneath it.
|
|
42
|
+
*
|
|
43
|
+
* The revealed content is a labelled `region`, so assistive tech announces it by the
|
|
44
|
+
* header it belongs to. `nonCollapsible` renders the header as static text instead of
|
|
45
|
+
* a permanently disabled button, which keeps a decorative panel out of the tab order.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```tsx
|
|
49
|
+
* <Accordion title="Advanced settings" description="Optional configuration">
|
|
50
|
+
* <p>Panel content</p>
|
|
51
|
+
* </Accordion>
|
|
52
|
+
*
|
|
53
|
+
* <Accordion title="Always open" nonCollapsible>
|
|
54
|
+
* <p>Panel content</p>
|
|
55
|
+
* </Accordion>
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param title - Title rendered in the header.
|
|
59
|
+
* @param [description] - Optional secondary text rendered under the title.
|
|
60
|
+
* @param [children] - Content revealed when expanded.
|
|
61
|
+
* @param [expanded] - Controlled expanded state.
|
|
62
|
+
* @param [defaultExpanded=false] - Initial expanded state when uncontrolled.
|
|
63
|
+
* @param [disabled] - Disables toggling.
|
|
64
|
+
* @param [nonCollapsible] - Renders the panel permanently expanded, with a static header.
|
|
65
|
+
* @param [ariaLabel] - Accessible name for the header; needed when `title` carries no text.
|
|
66
|
+
* @param [onToggle] - Fired when the header is clicked. Receives the next expanded state.
|
|
67
|
+
* @param [className] - Additional CSS classes for the outer container.
|
|
68
|
+
* @param [headerClassName] - Additional CSS classes for the header.
|
|
69
|
+
* @param [contentClassName] - Additional CSS classes for the content region.
|
|
70
|
+
*/
|
|
71
|
+
export declare const Accordion: FC<AccordionProps>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes, DetailedHTMLProps, FC, HTMLAttributeAnchorTarget, ReactNode } from 'react';
|
|
2
|
+
import { DialTooltipProps } from '../../Tooltip/Tooltip';
|
|
3
|
+
import { ButtonAppearance, ButtonVariant } from '../../../types/button';
|
|
4
|
+
import { ElementSize } from '../../../types/size';
|
|
5
|
+
type TooltipProps = Omit<DialTooltipProps, 'children'>;
|
|
6
|
+
export interface ButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
7
|
+
variant?: ButtonVariant;
|
|
8
|
+
size?: ElementSize;
|
|
9
|
+
appearance?: ButtonAppearance;
|
|
10
|
+
textClassName?: string;
|
|
11
|
+
label?: ReactNode;
|
|
12
|
+
iconBefore?: ReactNode;
|
|
13
|
+
iconAfter?: ReactNode;
|
|
14
|
+
tooltipProps?: TooltipProps;
|
|
15
|
+
href?: string;
|
|
16
|
+
target?: HTMLAttributeAnchorTarget;
|
|
17
|
+
rel?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A Button component with flexible icon and text positioning
|
|
21
|
+
* aliases: ActionButton|CallToAction
|
|
22
|
+
* Design system 2.0
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <Button
|
|
27
|
+
* label="Click me"
|
|
28
|
+
* onClick={handleClick}
|
|
29
|
+
* iconBefore={<Icon />}
|
|
30
|
+
* className="custom-button"
|
|
31
|
+
* />
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```tsx
|
|
36
|
+
* <Button
|
|
37
|
+
* label={<span>Custom <strong>Label</strong></span>}
|
|
38
|
+
* aria-label="Custom Label"
|
|
39
|
+
* onClick={handleClick}
|
|
40
|
+
* />
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* inherits all properties from the `ButtonHTMLAttributes<HTMLButtonElement>`
|
|
44
|
+
*
|
|
45
|
+
* The accessible name is taken from a string `label` first, then `aria-label`,
|
|
46
|
+
* then — only for a button with no `label` at all — a string
|
|
47
|
+
* `tooltipProps.tooltip`. Pass `aria-label` when `label` is a ReactNode, since
|
|
48
|
+
* an icon-only button is otherwise unnamed.
|
|
49
|
+
*
|
|
50
|
+
* @param [label] - The content of the button. Can be any React node.
|
|
51
|
+
* @param [variant] - Defines the visual style of the button
|
|
52
|
+
* @param [appearance=ButtonAppearance.Solid] - Defines the type of the button
|
|
53
|
+
* @param [size=ElementSize.Standard] - Defines the size of the button
|
|
54
|
+
* @param [textClassName] - Additional CSS classes to apply specifically to the button text
|
|
55
|
+
* @param [iconAfter] - Icon or element to display after the button text
|
|
56
|
+
* @param [iconBefore] - Icon or element to display before the button text
|
|
57
|
+
* @param [href] - Destination to navigate to. Renders an `<a>` instead of a
|
|
58
|
+
* `<button>`, so the control keeps the link role, middle-click, and
|
|
59
|
+
* "open in new tab". Pair it with `ButtonAppearance.Link` (or `LinkButton`)
|
|
60
|
+
* unless a button-shaped link is intended.
|
|
61
|
+
* @param [target] - Anchor target, only meaningful alongside `href`
|
|
62
|
+
* @param [rel] - Anchor `rel`. Defaults to `noopener noreferrer` when
|
|
63
|
+
* `target="_blank"`.
|
|
64
|
+
*/
|
|
65
|
+
export declare const Button: FC<ButtonProps>;
|
|
66
|
+
export {};
|