@epam/ai-dial-ui-kit 0.13.0-dev.52 → 0.13.0-dev.59
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 +5 -0
- package/dist/CHANGELOG.md +10 -0
- package/dist/{JsonEditor-Ce0Hs40A.js → JsonEditor-CV2FUqAs.js} +1 -1
- package/dist/{JsonEditor-DTtTF4El.cjs → JsonEditor-DPQ_6Rk7.cjs} +1 -1
- package/dist/{MarkdownEditor-C105uDu_.cjs → MarkdownEditor-BEjYBI-4.cjs} +1 -1
- package/dist/{MarkdownEditor-hOjcKVaa.cjs → MarkdownEditor-BpG28sAL.cjs} +1 -1
- package/dist/{MarkdownEditor-C14oRqaF.js → MarkdownEditor-CfnRGBST.js} +1 -1
- package/dist/{MarkdownEditor-Df72yDza.js → MarkdownEditor-DT_WX1cP.js} +1 -1
- package/dist/components-manifest.json +530 -110
- package/dist/dial-ui-kit.cjs.js +1 -1
- package/dist/dial-ui-kit.es.js +98 -92
- package/dist/{index-C7_BAjRC.cjs → index-EGRzQwVW.cjs} +35 -35
- package/dist/{index-Cr2qLKjP.js → index-qU5tP4t0.js} +15484 -14880
- package/dist/index.css +6 -2
- package/dist/migration-guides/0.13.0/caption-semi-text-lead-rename.md +82 -0
- package/dist/migration-guides/0.13.0/typography-heading-scale-shift.md +93 -0
- package/dist/migration-guides/README.md +2 -0
- package/dist/src/components/Accordion/Accordion.d.ts +1 -0
- package/dist/src/components/Analytics/Bar/Bar.d.ts +1 -0
- package/dist/src/components/Analytics/BarGroup/BarGroup.d.ts +1 -0
- package/dist/src/components/Analytics/Card/Card.d.ts +1 -0
- package/dist/src/components/Analytics/ErrorTag/ErrorTag.d.ts +1 -0
- package/dist/src/components/Analytics/Histogram/Histogram.d.ts +1 -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 -0
- 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 +1 -0
- package/dist/src/components/FileIcon/FileIcon.d.ts +1 -0
- package/dist/src/components/FileManager/FileManager.d.ts +1 -0
- package/dist/src/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.d.ts +1 -0
- package/dist/src/components/FileManager/components/FoldersTree/FoldersTree.d.ts +1 -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/renderers/DateCellRenderer.d.ts +1 -0
- package/dist/src/components/Icon/Icon.d.ts +1 -0
- package/dist/src/components/IconButton/IconButton.d.ts +1 -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 +1 -0
- package/dist/src/components/New/Button/Button.d.ts +12 -1
- package/dist/src/components/New/Button/ButtonWrappers.d.ts +11 -0
- package/dist/src/components/New/ButtonDropdown/ButtonDropdown.d.ts +5 -4
- package/dist/src/components/New/Calendar/Calendar.d.ts +1 -0
- package/dist/src/components/New/Calendar/constants.d.ts +2 -2
- package/dist/src/components/New/CaptionText/CaptionText.d.ts +1 -0
- package/dist/src/components/New/CardShell/CardShell.d.ts +1 -0
- package/dist/src/components/New/CloseButton/CloseButton.d.ts +1 -0
- package/dist/src/components/New/ConfirmationPopup/ConfirmationPopup.d.ts +1 -0
- package/dist/src/components/New/Dropdown/Dropdown.d.ts +1 -0
- package/dist/src/components/New/FileDropzone/FileDropzone.d.ts +72 -0
- package/dist/src/components/New/FolderPath/FolderPath.d.ts +1 -0
- package/dist/src/components/New/Highlight/Highlight.d.ts +4 -1
- package/dist/src/components/New/IconButton/IconButton.d.ts +1 -0
- package/dist/src/components/New/IconButton/IconButtonWrappers.d.ts +1 -0
- package/dist/src/components/New/InfoButton/InfoButton.d.ts +1 -0
- package/dist/src/components/New/InlineSelect/InlineSelect.d.ts +2 -1
- package/dist/src/components/New/Input/Button/constants.d.ts +1 -1
- package/dist/src/components/New/Input/Input.d.ts +9 -2
- package/dist/src/components/New/Label/Label.d.ts +1 -0
- package/dist/src/components/New/MarkdownEditor/MarkdownEditor.d.ts +1 -0
- package/dist/src/components/New/Notification/Notification.d.ts +1 -0
- package/dist/src/components/New/NumberInput/NumberInput.d.ts +1 -0
- package/dist/src/components/New/PasswordInput/PasswordInput.d.ts +1 -0
- package/dist/src/components/New/Popup/Popup.d.ts +1 -0
- package/dist/src/components/New/Popup/constants.d.ts +1 -1
- package/dist/src/components/New/Select/MultiSelectTags.d.ts +1 -0
- package/dist/src/components/New/Select/Select.d.ts +1 -0
- package/dist/src/components/New/Select/constants.d.ts +1 -1
- package/dist/src/components/New/Switch/Switch.d.ts +32 -0
- package/dist/src/components/New/Tabs/Tabs.d.ts +59 -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 +3 -2
- package/dist/src/components/New/constants/overlay.d.ts +1 -1
- 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 +1 -0
- package/dist/src/components/ProgressBar/ProgressBar.d.ts +3 -0
- 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/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 +1 -0
- package/dist/src/components/Slider/Slider.d.ts +1 -0
- package/dist/src/components/Spinner/Spinner.d.ts +3 -0
- 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 +11 -0
- package/dist/src/utils/__tests__/file-accept.spec.d.ts +1 -0
- package/dist/src/utils/file-accept.d.ts +16 -0
- package/package.json +1 -1
|
@@ -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
|
*
|
|
@@ -8,6 +8,7 @@ export interface FabButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<H
|
|
|
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
|
|
@@ -207,6 +207,7 @@ 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
|
|
210
211
|
*
|
|
211
212
|
* @deprecated Import `DialFileManager` from `@epam/ai-dial-react-file-manager` instead.
|
|
212
213
|
*
|
|
@@ -25,6 +25,7 @@ export interface DestinationFolderPopupProps extends DialFileManagerProps {
|
|
|
25
25
|
/**
|
|
26
26
|
* DestinationFolderPopup
|
|
27
27
|
* aliases: FolderSelector|PathChooser
|
|
28
|
+
* Design system 1.0
|
|
28
29
|
*
|
|
29
30
|
* @deprecated Import `DialDestinationFolderPopup` from `@epam/ai-dial-react-file-manager` instead.
|
|
30
31
|
*
|
|
@@ -31,6 +31,7 @@ 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
|
*
|
|
36
37
|
* @deprecated Import `DialFoldersTree` from `@epam/ai-dial-react-file-manager` instead.
|
|
@@ -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
|
|
@@ -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).
|
|
@@ -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.
|
|
@@ -34,6 +34,7 @@ export interface AccordionProps {
|
|
|
34
34
|
/**
|
|
35
35
|
* A collapsible panel that toggles its content when the header is clicked.
|
|
36
36
|
* aliases: Collapse|Disclosure|ExpandablePanel
|
|
37
|
+
* Design system 2.0
|
|
37
38
|
*
|
|
38
39
|
* Works as a controlled component when `expanded` is provided, otherwise it manages
|
|
39
40
|
* its own state from `defaultExpanded`. The header shows a caret that rotates when
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, DetailedHTMLProps, FC, ReactNode } from 'react';
|
|
1
|
+
import { ButtonHTMLAttributes, DetailedHTMLProps, FC, HTMLAttributeAnchorTarget, ReactNode } from 'react';
|
|
2
2
|
import { DialTooltipProps } from '../../Tooltip/Tooltip';
|
|
3
3
|
import { ButtonAppearance, ButtonVariant } from '../../../types/button';
|
|
4
4
|
import { ElementSize } from '../../../types/size';
|
|
@@ -12,10 +12,14 @@ export interface ButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTML
|
|
|
12
12
|
iconBefore?: ReactNode;
|
|
13
13
|
iconAfter?: ReactNode;
|
|
14
14
|
tooltipProps?: TooltipProps;
|
|
15
|
+
href?: string;
|
|
16
|
+
target?: HTMLAttributeAnchorTarget;
|
|
17
|
+
rel?: string;
|
|
15
18
|
}
|
|
16
19
|
/**
|
|
17
20
|
* A Button component with flexible icon and text positioning
|
|
18
21
|
* aliases: ActionButton|CallToAction
|
|
22
|
+
* Design system 2.0
|
|
19
23
|
*
|
|
20
24
|
* @example
|
|
21
25
|
* ```tsx
|
|
@@ -50,6 +54,13 @@ export interface ButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTML
|
|
|
50
54
|
* @param [textClassName] - Additional CSS classes to apply specifically to the button text
|
|
51
55
|
* @param [iconAfter] - Icon or element to display after the button text
|
|
52
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"`.
|
|
53
64
|
*/
|
|
54
65
|
export declare const Button: FC<ButtonProps>;
|
|
55
66
|
export {};
|
|
@@ -4,6 +4,7 @@ type ButtonVariantProps = Omit<ButtonProps, 'variant'>;
|
|
|
4
4
|
type ButtonAppearanceProps = Omit<ButtonProps, 'appearance'>;
|
|
5
5
|
/**
|
|
6
6
|
* A Primary Button component with predefined primary variant
|
|
7
|
+
* Design system 2.0
|
|
7
8
|
* @example
|
|
8
9
|
* ```tsx
|
|
9
10
|
* <PrimaryButton
|
|
@@ -52,6 +53,16 @@ export declare const DangerButton: FC<ButtonVariantProps>;
|
|
|
52
53
|
* />
|
|
53
54
|
* ```
|
|
54
55
|
*
|
|
56
|
+
* Pass `href` to navigate: the control then renders a real `<a>`, so it keeps
|
|
57
|
+
* the link role, middle-click, and "open in new tab". Without `href` it stays a
|
|
58
|
+
* `<button>` and needs an `onClick`.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```tsx
|
|
62
|
+
* <LinkButton label="Read the docs" href="/docs" />
|
|
63
|
+
* <LinkButton label="Open dashboard" href="https://example.com" target="_blank" />
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
55
66
|
* Inherits all properties from the `ButtonProps`
|
|
56
67
|
*/
|
|
57
68
|
export declare const LinkButton: FC<ButtonAppearanceProps>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { DialButtonProps } from '../../Button/Button';
|
|
3
2
|
import { DropdownItem } from '../../../models/dropdown';
|
|
4
|
-
|
|
3
|
+
import { ButtonProps } from '../Button/Button';
|
|
4
|
+
export interface ButtonDropdownProps extends Omit<ButtonProps, 'iconAfter'> {
|
|
5
5
|
items: DropdownItem[];
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
* A Button dropdown component based on
|
|
8
|
+
* A Button dropdown component based on the Dropdown component
|
|
9
9
|
* aliases: SplitButton|MenuButton
|
|
10
|
+
* Design system 2.0
|
|
10
11
|
*
|
|
11
12
|
* @example
|
|
12
13
|
* ```tsx
|
|
@@ -17,7 +18,7 @@ export interface ButtonDropdownProps extends Omit<DialButtonProps, 'iconAfter'>
|
|
|
17
18
|
* />
|
|
18
19
|
* ```
|
|
19
20
|
*
|
|
20
|
-
* Inherits all props from
|
|
21
|
+
* Inherits all props from Button.
|
|
21
22
|
* @param [items] - DropdownItems with actions
|
|
22
23
|
*/
|
|
23
24
|
export declare const ButtonDropdown: FC<ButtonDropdownProps>;
|
|
@@ -20,6 +20,7 @@ export interface CalendarProps {
|
|
|
20
20
|
/**
|
|
21
21
|
* A date/time picker supporting four selection modes.
|
|
22
22
|
* aliases: DatePicker|DateTimePicker
|
|
23
|
+
* Design system 2.0
|
|
23
24
|
*
|
|
24
25
|
* Renders a text-field trigger that opens a rounded month-grid popover for
|
|
25
26
|
* the `date`/`datetime` modes, a masked `"HH:mm"` text field for `time`, and
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CalendarMode } from '../../../types/calendar';
|
|
2
2
|
export declare const DEFAULT_CALENDAR_LOCALE = "en-GB";
|
|
3
3
|
export declare const calendarModeDefaultPlaceholder: Record<CalendarMode, string>;
|
|
4
|
-
export declare const calendarFieldBaseClassName = "flex w-full items-center justify-between gap-2 rounded-xl border border-secondary bg-layer-
|
|
5
|
-
export declare const calendarFieldDisabledClassName = "!cursor-not-allowed !border-transparent bg-
|
|
4
|
+
export declare const calendarFieldBaseClassName = "flex w-full items-center justify-between gap-2 rounded-xl border border-secondary bg-layer-raised px-4 py-3 dial-small-text text-primary outline-none transition-colors hover:border-hover-alpha focus-within:border-focus-blue";
|
|
5
|
+
export declare const calendarFieldDisabledClassName = "!cursor-not-allowed !border-transparent bg-layer-sunken text-control-disable-alpha hover:!border-transparent";
|
|
6
6
|
export declare const calendarFieldInvalidClassName = "!border-error";
|
|
7
7
|
export declare const calendarPopoverClassName = "z-[53] flex w-[248px] flex-col gap-4 rounded-lg bg-layer-raised px-3 py-4 shadow-md";
|
|
8
8
|
export declare const calendarDayButtonBaseClassName = "flex size-8 items-center justify-center rounded-full dial-small-text text-primary hover:bg-control-accent-alpha-hover hover:text-primary focus:outline-none focus-visible:outline focus-visible:outline-focus-black";
|
|
@@ -2,6 +2,7 @@ import { FC, HTMLAttributes } from 'react';
|
|
|
2
2
|
export type CardShellProps = HTMLAttributes<HTMLElement>;
|
|
3
3
|
/**
|
|
4
4
|
* A shared elevated card shell used as the base wrapper for browse-grid cards.
|
|
5
|
+
* Design system 2.0
|
|
5
6
|
*
|
|
6
7
|
* Renders an `<article>` with rounded corners, padding, a resting shadow, and
|
|
7
8
|
* a hover lift with a stronger shadow. Respects `prefers-reduced-motion` by
|
|
@@ -10,6 +10,7 @@ export interface CloseButtonProps {
|
|
|
10
10
|
/**
|
|
11
11
|
* A close button: a ghost {@link IconButton} carrying an X icon.
|
|
12
12
|
* aliases: DismissButton|ExitButton
|
|
13
|
+
* Design system 2.0
|
|
13
14
|
*
|
|
14
15
|
* Sized through {@link ElementSize} like every other 2.0 control. It defaults to
|
|
15
16
|
* the small 24px box that headers and toasts want; pass `ElementSize.Standard`
|
|
@@ -17,6 +17,7 @@ export interface ConfirmationPopupProps extends PopupProps {
|
|
|
17
17
|
/**
|
|
18
18
|
* A confirmation dialog built from {@link Popup} and the 2.0 {@link Button}.
|
|
19
19
|
* aliases: ConfirmDialog|WarningDialog
|
|
20
|
+
* Design system 2.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.
|
|
@@ -35,6 +35,7 @@ export interface DropdownProps {
|
|
|
35
35
|
*
|
|
36
36
|
* Renders the given trigger (`children`) and a floating contextual menu overlay.
|
|
37
37
|
* aliases: ContextMenu|PopupMenu
|
|
38
|
+
* Design system 2.0
|
|
38
39
|
*
|
|
39
40
|
* Supports click/hover/contextMenu triggers, controlled/uncontrolled open, and an optional
|
|
40
41
|
* close button inside the overlay. Placement is taken directly from Floating UI; when
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
export interface FileDropzoneProps {
|
|
3
|
+
/** Primary line of copy, e.g. `'Drag and drop it or click here to upload'`. */
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
/** Secondary line of copy, e.g. `'File formats .md, .zip and .skill'`. */
|
|
6
|
+
description?: ReactNode;
|
|
7
|
+
/** Fired with the accepted files when files are picked or dropped. */
|
|
8
|
+
onChange: (files: File[]) => void;
|
|
9
|
+
/**
|
|
10
|
+
* Fired with files that a drop offered but `accept` excluded. The file picker
|
|
11
|
+
* filters by `accept` itself, so this only ever comes from a drop.
|
|
12
|
+
*/
|
|
13
|
+
onReject?: (files: File[]) => void;
|
|
14
|
+
/** Comma-separated `accept` tokens, e.g. `'.md,.zip,.skill'` or `'image/*'`. */
|
|
15
|
+
accept?: string;
|
|
16
|
+
/** Whether more than one file can be selected at a time. */
|
|
17
|
+
multiple?: boolean;
|
|
18
|
+
/** Disables picking and dropping. */
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/** Error message rendered below the area, which also turns its border red. */
|
|
21
|
+
errorText?: string;
|
|
22
|
+
/** Icon rendered above the copy. Defaults to an upload arrow. */
|
|
23
|
+
icon?: ReactNode;
|
|
24
|
+
/** `id` of the underlying file input. Generated when omitted. */
|
|
25
|
+
id?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Accessible name for the control. Only needed when `label` is a node that
|
|
28
|
+
* carries no text of its own — a string label already names the input.
|
|
29
|
+
*/
|
|
30
|
+
ariaLabel?: string;
|
|
31
|
+
/** Additional CSS classes for the drop area. */
|
|
32
|
+
className?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A dashed drop area that takes files by drag-and-drop or through the file picker.
|
|
36
|
+
* aliases: LoadFileArea|FileUpload|DragDropUpload|UploadArea
|
|
37
|
+
* Design system 2.0
|
|
38
|
+
*
|
|
39
|
+
* The area is a label over a visually hidden file input, so the picker opens on
|
|
40
|
+
* click and the control stays operable by keyboard and announced as a file input
|
|
41
|
+
* without any extra wiring. The border highlights while a drag hovers it.
|
|
42
|
+
*
|
|
43
|
+
* `accept` is enforced on drops as well as in the picker — the browser only
|
|
44
|
+
* filters the latter — so `onChange` never receives a file the caller excluded.
|
|
45
|
+
* Rejected files go to `onReject`; all copy stays with the caller, which keeps
|
|
46
|
+
* validation messages in the consumer's own wording and language.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```tsx
|
|
50
|
+
* <FileDropzone
|
|
51
|
+
* label="Drag and drop it or click here to upload"
|
|
52
|
+
* description="File formats .md, .zip and .skill"
|
|
53
|
+
* accept=".md,.zip,.skill"
|
|
54
|
+
* onChange={(files) => upload(files)}
|
|
55
|
+
* onReject={() => setError('Unsupported file format')}
|
|
56
|
+
* />
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @param label - Primary line of copy.
|
|
60
|
+
* @param [description] - Secondary line of copy.
|
|
61
|
+
* @param onChange - Fired with the accepted files.
|
|
62
|
+
* @param [onReject] - Fired with dropped files that `accept` excluded.
|
|
63
|
+
* @param [accept] - Comma-separated `accept` tokens.
|
|
64
|
+
* @param [multiple=false] - Whether more than one file can be selected.
|
|
65
|
+
* @param [disabled=false] - Disables picking and dropping.
|
|
66
|
+
* @param [errorText] - Error message rendered below the area.
|
|
67
|
+
* @param [icon] - Icon rendered above the copy.
|
|
68
|
+
* @param [id] - `id` of the underlying file input.
|
|
69
|
+
* @param [ariaLabel] - Accessible name; needed when `label` carries no text.
|
|
70
|
+
* @param [className] - Additional CSS classes for the drop area.
|
|
71
|
+
*/
|
|
72
|
+
export declare const FileDropzone: FC<FileDropzoneProps>;
|
|
@@ -9,6 +9,7 @@ export interface FolderPathProps {
|
|
|
9
9
|
/**
|
|
10
10
|
* A read-only, non-clickable folder/location path built on top of `DialBreadcrumb`.
|
|
11
11
|
* aliases: FolderBreadcrumb|LocationPath
|
|
12
|
+
* Design system 2.0
|
|
12
13
|
*
|
|
13
14
|
* Every segment is disabled (no navigation); the first segment gets a leading
|
|
14
15
|
* folder icon and the last segment is styled as the current/leaf item.
|
|
@@ -12,5 +12,8 @@ export interface HighlightProps {
|
|
|
12
12
|
/** Maximum number of lines to display before truncating. Use `1` for single-line ellipsis truncation (e.g. list rows). Defaults to `2`. */
|
|
13
13
|
maxLines?: number;
|
|
14
14
|
}
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Renders text with the first occurrence of `query` wrapped in a highlight mark, with ellipsis truncation and a tooltip when overflowing.
|
|
17
|
+
* Design system 2.0
|
|
18
|
+
*/
|
|
16
19
|
export declare const Highlight: FC<HighlightProps>;
|
|
@@ -4,6 +4,7 @@ type ButtonVariantProps = Omit<IconButtonProps, 'variant'>;
|
|
|
4
4
|
type ButtonAppearanceProps = Omit<IconButtonProps, 'appearance'>;
|
|
5
5
|
/**
|
|
6
6
|
* A Primary Icon Button component with predefined primary variant
|
|
7
|
+
* Design system 2.0
|
|
7
8
|
* @example
|
|
8
9
|
* ```tsx
|
|
9
10
|
* <PrimaryIconButton
|
|
@@ -37,7 +37,8 @@ export interface InlineSelectProps {
|
|
|
37
37
|
ariaLabel?: string;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
|
-
* An inline select control combining `InlineSelectTrigger` with `
|
|
40
|
+
* An inline select control combining `InlineSelectTrigger` with `Dropdown`.
|
|
41
|
+
* Design system 2.0
|
|
41
42
|
*
|
|
42
43
|
* @example
|
|
43
44
|
* ```tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const inputButtonClassName = "bg-
|
|
1
|
+
export declare const inputButtonClassName = "bg-control-neutral-active flex items-center justify-center enabled:text-secondary enabled:hover:text-control-blue-hover enabled:active:bg-control-accent-alpha-active enabled:hover:bg-control-accent-alpha-hover enabled:active:text-control-blue-active";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FC, InputHTMLAttributes, ReactNode, Ref } from 'react';
|
|
2
|
-
import { DialLabelProps } from '../../Label/Label';
|
|
3
2
|
import { ElementSize } from '../../../types/size';
|
|
3
|
+
import { LabelProps } from '../Label/Label';
|
|
4
4
|
import { InputButtonProps } from './Button/InputButton';
|
|
5
5
|
export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'size'> {
|
|
6
|
-
labelProps?:
|
|
6
|
+
labelProps?: LabelProps;
|
|
7
7
|
inputButtonProps?: InputButtonProps;
|
|
8
8
|
size?: ElementSize;
|
|
9
9
|
invalid?: boolean;
|
|
@@ -23,6 +23,12 @@ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
23
23
|
prefix?: string;
|
|
24
24
|
postfix?: string;
|
|
25
25
|
inputRef?: Ref<HTMLInputElement>;
|
|
26
|
+
/**
|
|
27
|
+
* Ref to the field wrapper — the bordered box holding the icons, the content
|
|
28
|
+
* slot and the input. Use it to measure the space `children` has to fit into;
|
|
29
|
+
* the input itself only ever reports its own share of the row.
|
|
30
|
+
*/
|
|
31
|
+
wrapperRef?: Ref<HTMLDivElement>;
|
|
26
32
|
onChange?: (value?: string) => void;
|
|
27
33
|
containerClassName?: string;
|
|
28
34
|
wrapperClassName?: string;
|
|
@@ -30,6 +36,7 @@ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
30
36
|
/**
|
|
31
37
|
* A flexible input component with icon support and various styling options
|
|
32
38
|
* aliases: TextField|FormInput
|
|
39
|
+
* Design system 2.0
|
|
33
40
|
*
|
|
34
41
|
* @example
|
|
35
42
|
* ```tsx
|