@epam/ai-dial-ui-kit 0.16.0-dev.2 → 0.16.0-dev.21
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 +3 -1
- package/dist/CHANGELOG.md +55 -0
- package/dist/DateCellRenderer-DDEzIi2B.cjs +63 -0
- package/dist/{IconButton-DHOFapLo.cjs → IconButton-B1Hx0Y3y.cjs} +1 -1
- package/dist/{MarkdownEditorContainer-B5aHwoYF.cjs → MarkdownEditorContainer-DLPODjar.cjs} +1 -1
- package/dist/{Switch-DE6MrcqJ.cjs → Switch-DAaAOaIu.cjs} +1 -1
- package/dist/_virtual/_commonjsHelpers.js +3 -28
- package/dist/_virtual/index.js +5 -3
- package/dist/components/Analytics/Bar/Bar.js +7 -7
- package/dist/components/Analytics/BarGroup/BarGroup.js +18 -18
- package/dist/components/Analytics/Histogram/Histogram.js +10 -10
- package/dist/components/Checkbox/Checkbox.js +9 -9
- package/dist/components/Dropdown/constants.js +2 -2
- package/dist/components/DropdownIcon/DropdownIcon.js +5 -5
- package/dist/components/Grid/Grid.js +11 -11
- package/dist/components/IconButton/IconButton.js +7 -7
- package/dist/components/InputPopup/InputPopup.js +8 -8
- package/dist/components/LoadFileArea/EmptyFileArea.js +28 -28
- package/dist/components/Loader/Loader.js +8 -8
- package/dist/components/New/Avatar/Avatar.js +18 -17
- package/dist/components/New/BottomSheet/BottomSheet.js +53 -52
- package/dist/components/New/Breadcrumbs/constants.js +1 -1
- package/dist/components/New/Calendar/Calendar.js +314 -227
- package/dist/components/New/Calendar/TimePickerPanel.js +87 -0
- package/dist/components/New/Calendar/constants.js +27 -25
- package/dist/components/New/Checkbox/Checkbox.js +23 -21
- package/dist/components/New/Checkbox/CheckboxBox.js +25 -18
- package/dist/components/New/ConfirmationPopup/ConfirmationPopup.js +49 -44
- package/dist/components/New/Dropdown/Dropdown.js +320 -251
- package/dist/components/New/Dropdown/constants.js +21 -18
- package/dist/components/New/Dropdown/search.js +37 -0
- package/dist/components/New/FolderPath/FolderPath.js +151 -46
- package/dist/components/New/Grid/Grid.js +139 -132
- package/dist/components/New/Grid/constants.js +5 -2
- package/dist/components/New/MenuItem/MenuItem.js +17 -17
- package/dist/components/New/Popup/Popup.js +124 -101
- package/dist/components/New/Popup/constants.js +11 -9
- package/dist/components/New/Radio/Radio.js +19 -17
- package/dist/components/New/SharedEntityIndicator/SharedEntityIndicator.js +1 -1
- package/dist/components/New/SideDrawer/SideDrawer.js +1 -1
- package/dist/components/New/Switch/Switch.js +19 -17
- package/dist/components/New/TransferQueue/TransferQueue.js +66 -71
- package/dist/components/New/TransferQueue/TransferQueueHeader.js +30 -38
- package/dist/components/New/TransferQueue/TransferQueueRow.js +106 -49
- package/dist/components/Search/Search.js +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/constants.js +6 -6
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Steps/Step.js +9 -9
- package/dist/components/TagInput/TagInput.js +1 -1
- package/dist/components-manifest.json +315 -1197
- package/dist/constants/public-class-names.js +7 -0
- package/dist/dial-ui-kit.cjs +4 -2
- package/dist/dial-ui-kit.js +357 -373
- package/dist/editors.cjs +1 -1
- package/dist/grid.cjs +1 -1
- package/dist/grid.js +19 -17
- package/dist/index.css +2 -6
- package/dist/migration-guides/0.16.0/legacy-file-manager-removal.md +89 -0
- package/dist/migration-guides/0.16.0/tailwind-v4-stylesheet.md +98 -0
- package/dist/migration-guides/README.md +2 -0
- package/dist/node_modules/ag-grid-community/dist/package/main.esm.js +1767 -1763
- package/dist/node_modules/react-dnd/dist/hooks/useCollector.js +1 -1
- package/dist/src/components/ButtonDropdown/constants.d.ts +2 -2
- package/dist/src/components/Dropdown/constants.d.ts +1 -1
- package/dist/src/components/Grid/Grid.d.ts +1 -1
- package/dist/src/components/JsonEditor/lazy.d.ts +1 -1
- package/dist/src/components/MarkdownEditor/lazy.d.ts +1 -1
- package/dist/src/components/New/Avatar/Avatar.d.ts +9 -3
- package/dist/src/components/New/Breadcrumbs/constants.d.ts +2 -2
- package/dist/src/components/New/ButtonDropdown/constants.d.ts +1 -1
- package/dist/src/components/New/Calendar/Calendar.d.ts +10 -2
- package/dist/src/components/New/Calendar/TimePickerPanel.d.ts +15 -0
- package/dist/src/components/New/Calendar/constants.d.ts +7 -5
- package/dist/src/components/New/Dropdown/Dropdown.d.ts +42 -0
- package/dist/src/components/New/Dropdown/constants.d.ts +7 -1
- package/dist/src/components/New/Dropdown/search.d.ts +9 -0
- package/dist/src/components/New/FilterChips/FilterChips.d.ts +1 -1
- package/dist/src/components/New/FolderPath/FolderPath.d.ts +16 -8
- package/dist/src/components/New/Grid/Grid.d.ts +12 -1
- package/dist/src/components/New/Grid/components/SelectionCell.d.ts +1 -1
- package/dist/src/components/New/Grid/components/SelectionHeader.d.ts +1 -1
- package/dist/src/components/New/InteractiveTooltip/constants.d.ts +1 -1
- package/dist/src/components/New/MarkdownEditor/lazy.d.ts +1 -1
- package/dist/src/components/New/MenuItem/constants.d.ts +1 -1
- package/dist/src/components/New/Popup/constants.d.ts +8 -1
- package/dist/src/components/New/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/src/components/New/Select/constants.d.ts +4 -4
- package/dist/src/components/New/Tooltip/constants.d.ts +2 -2
- package/dist/src/components/New/TransferQueue/TransferQueue.d.ts +9 -5
- package/dist/src/components/New/TransferQueue/TransferQueueHeader.d.ts +1 -3
- package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/src/components/Select/constants.d.ts +3 -3
- package/dist/src/constants/public-class-names.d.ts +7 -0
- package/dist/src/index.d.ts +4 -13
- package/dist/src/subpaths/editors.d.ts +1 -1
- package/dist/src/subpaths/grid.d.ts +1 -0
- package/dist/src/types/avatar.d.ts +9 -0
- package/dist/src/types/grid.d.ts +8 -0
- package/dist/src/utils/avatar.d.ts +2 -1
- package/dist/src/utils/sub-menu-floating.d.ts +1 -1
- package/dist/types/avatar.js +3 -2
- package/dist/types/grid.js +4 -0
- package/dist/utils/avatar.js +41 -18
- package/dist/utils/sub-menu-floating.js +8 -8
- package/package.json +9 -12
- package/dist/DateCellRenderer-BdUMSg-E.cjs +0 -1
- package/dist/DateCellRenderer-CZNa4jVJ.cjs +0 -63
- package/dist/_virtual/___vite-browser-external.js +0 -6
- package/dist/_virtual/__vite-browser-external.js +0 -4
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/index3.js +0 -7
- package/dist/assets/icons/add-child.svg.js +0 -5
- package/dist/assets/icons/add-sibling.svg.js +0 -5
- package/dist/assets/icons/copy-to.svg.js +0 -5
- package/dist/assets/icons/move-to.svg.js +0 -5
- package/dist/assets/icons/unshare.svg.js +0 -5
- package/dist/components/FileManager/FileManager.js +0 -888
- package/dist/components/FileManager/FileManagerContext.js +0 -5
- package/dist/components/FileManager/FileManagerProvider.js +0 -772
- package/dist/components/FileManager/FileManagerTooltip.js +0 -92
- package/dist/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.js +0 -293
- package/dist/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.js +0 -201
- package/dist/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.js +0 -52
- package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.js +0 -103
- package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/constants.js +0 -5
- package/dist/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.js +0 -56
- package/dist/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.js +0 -69
- package/dist/components/FileManager/components/FileManagerItemName/FileManagerItemName.js +0 -100
- package/dist/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.js +0 -93
- package/dist/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.js +0 -165
- package/dist/components/FileManager/components/FileManagerNavigationPanel/constants.js +0 -6
- package/dist/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.js +0 -120
- package/dist/components/FileManager/components/FileMetadataPopup/FileMetadataPopup.js +0 -119
- package/dist/components/FileManager/components/FileMetadataPopup/constants.js +0 -9
- package/dist/components/FileManager/components/FoldersTree/FoldersTree.js +0 -180
- package/dist/components/FileManager/components/FoldersTree/constants.js +0 -9
- package/dist/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.js +0 -51
- package/dist/components/FileManager/constants.js +0 -28
- package/dist/components/FileManager/errors.js +0 -10
- package/dist/components/FileManager/hooks/use-bulk-actions.js +0 -143
- package/dist/components/FileManager/hooks/use-collapse-tree.js +0 -22
- package/dist/components/FileManager/hooks/use-conflict-resolution.js +0 -158
- package/dist/components/FileManager/hooks/use-current-path.js +0 -29
- package/dist/components/FileManager/hooks/use-file-clipboard.js +0 -154
- package/dist/components/FileManager/hooks/use-file-delete.js +0 -39
- package/dist/components/FileManager/hooks/use-file-download.js +0 -16
- package/dist/components/FileManager/hooks/use-file-manager-columns.js +0 -106
- package/dist/components/FileManager/hooks/use-file-manager-context.js +0 -13
- package/dist/components/FileManager/hooks/use-file-manager-tabs.js +0 -23
- package/dist/components/FileManager/hooks/use-file-metadata.js +0 -20
- package/dist/components/FileManager/hooks/use-file-search.js +0 -90
- package/dist/components/FileManager/hooks/use-file-upload.js +0 -338
- package/dist/components/FileManager/hooks/use-folder-creation.js +0 -151
- package/dist/components/FileManager/hooks/use-grid-actions-column.js +0 -65
- package/dist/components/FileManager/hooks/use-grid-context-menu.js +0 -188
- package/dist/components/FileManager/hooks/use-item-renaming.js +0 -124
- package/dist/components/FileManager/hooks/use-new-actions.js +0 -67
- package/dist/components/FileManager/hooks/use-paths-selection.js +0 -28
- package/dist/components/FileManager/hooks/use-show-hidden-files.js +0 -20
- package/dist/components/FileManager/hooks/use-tree-additional-buttons.js +0 -39
- package/dist/components/FileManager/hooks/use-trigger-view-create-folder.js +0 -42
- package/dist/components/FileManager/hooks/use-trigger-view-rename.js +0 -25
- package/dist/components/FileManager/utils.js +0 -129
- package/dist/constants/file-grid-columns.js +0 -176
- package/dist/file-manager.cjs +0 -1
- package/dist/file-manager.js +0 -22
- package/dist/hooks/use-flexible-actions.js +0 -72
- package/dist/hooks/use-width-breakpoint.js +0 -15
- package/dist/node_modules/mime-db/db.json.js +0 -2527
- package/dist/node_modules/mime-db/index.js +0 -8
- package/dist/node_modules/mime-types/index.js +0 -70
- package/dist/node_modules/mime-types/mimeScore.js +0 -38
- package/dist/src/__mocks__/monaco-editor.d.ts +0 -13
- package/dist/src/components/Analytics/Bar/utils.spec.d.ts +0 -1
- package/dist/src/components/Analytics/Histogram/utils.spec.d.ts +0 -1
- package/dist/src/components/Button/ButtonWrappers.test.d.ts +0 -1
- package/dist/src/components/Button/__tests__/utils.spec.d.ts +0 -1
- package/dist/src/components/FileManager/FileManager.d.ts +0 -326
- package/dist/src/components/FileManager/FileManagerContext.d.ts +0 -181
- package/dist/src/components/FileManager/FileManagerProvider.d.ts +0 -21
- package/dist/src/components/FileManager/FileManagerTooltip.d.ts +0 -12
- package/dist/src/components/FileManager/__mocks__/files.d.ts +0 -3
- package/dist/src/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.d.ts +0 -90
- package/dist/src/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.d.ts +0 -73
- package/dist/src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.d.ts +0 -63
- package/dist/src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.test.d.ts +0 -1
- package/dist/src/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.d.ts +0 -56
- package/dist/src/components/FileManager/components/FileManagerBulkActionsToolbar/constants.d.ts +0 -3
- package/dist/src/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.d.ts +0 -26
- package/dist/src/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.d.ts +0 -51
- package/dist/src/components/FileManager/components/FileManagerItemName/FileManagerItemName.d.ts +0 -57
- package/dist/src/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.d.ts +0 -71
- package/dist/src/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.d.ts +0 -64
- package/dist/src/components/FileManager/components/FileManagerNavigationPanel/constants.d.ts +0 -3
- package/dist/src/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.d.ts +0 -76
- package/dist/src/components/FileManager/components/FileMetadataPopup/FileMetadataPopup.d.ts +0 -50
- package/dist/src/components/FileManager/components/FileMetadataPopup/constants.d.ts +0 -6
- package/dist/src/components/FileManager/components/FoldersTree/FoldersTree.d.ts +0 -135
- package/dist/src/components/FileManager/components/FoldersTree/constants.d.ts +0 -6
- package/dist/src/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.d.ts +0 -13
- package/dist/src/components/FileManager/constants.d.ts +0 -21
- package/dist/src/components/FileManager/errors.d.ts +0 -6
- package/dist/src/components/FileManager/hooks/__tests__/use-conflict-resolution.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-current-path.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-clipboard.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-delete.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-download.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-upload.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-show-hidden-files.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-trigger-view-rename.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/use-bulk-actions.d.ts +0 -30
- package/dist/src/components/FileManager/hooks/use-collapse-tree.d.ts +0 -9
- package/dist/src/components/FileManager/hooks/use-conflict-resolution.d.ts +0 -27
- package/dist/src/components/FileManager/hooks/use-current-path.d.ts +0 -13
- package/dist/src/components/FileManager/hooks/use-file-clipboard.d.ts +0 -37
- package/dist/src/components/FileManager/hooks/use-file-delete.d.ts +0 -13
- package/dist/src/components/FileManager/hooks/use-file-download.d.ts +0 -9
- package/dist/src/components/FileManager/hooks/use-file-manager-columns.d.ts +0 -43
- package/dist/src/components/FileManager/hooks/use-file-manager-context.d.ts +0 -7
- package/dist/src/components/FileManager/hooks/use-file-manager-tabs.d.ts +0 -10
- package/dist/src/components/FileManager/hooks/use-file-metadata.d.ts +0 -10
- package/dist/src/components/FileManager/hooks/use-file-search.d.ts +0 -23
- package/dist/src/components/FileManager/hooks/use-file-upload.d.ts +0 -64
- package/dist/src/components/FileManager/hooks/use-folder-creation.d.ts +0 -30
- package/dist/src/components/FileManager/hooks/use-grid-actions-column.d.ts +0 -15
- package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +0 -44
- package/dist/src/components/FileManager/hooks/use-item-renaming.d.ts +0 -22
- package/dist/src/components/FileManager/hooks/use-new-actions.d.ts +0 -23
- package/dist/src/components/FileManager/hooks/use-paths-selection.d.ts +0 -13
- package/dist/src/components/FileManager/hooks/use-show-hidden-files.d.ts +0 -9
- package/dist/src/components/FileManager/hooks/use-tree-additional-buttons.d.ts +0 -22
- package/dist/src/components/FileManager/hooks/use-trigger-view-create-folder.d.ts +0 -26
- package/dist/src/components/FileManager/hooks/use-trigger-view-rename.d.ts +0 -20
- package/dist/src/components/FileManager/utils.d.ts +0 -69
- package/dist/src/components/FileManager/utils.spec.d.ts +0 -1
- package/dist/src/components/Grid/comparators/base-column-comparator.spec.d.ts +0 -1
- package/dist/src/components/Grid/renderers/utils.spec.d.ts +0 -1
- package/dist/src/components/New/AutocompleteTagInput/utils.spec.d.ts +0 -1
- package/dist/src/components/New/Button/__tests__/utils.spec.d.ts +0 -1
- package/dist/src/components/New/Calendar/utils.spec.d.ts +0 -1
- package/dist/src/components/New/Slider/utils.spec.d.ts +0 -1
- package/dist/src/components/New/TagInput/utils.spec.d.ts +0 -1
- package/dist/src/components/Pagination/tests/utils.spec.d.ts +0 -1
- package/dist/src/components/SchemaRenderer/tests/utils.spec.d.ts +0 -1
- package/dist/src/components/Steps/tests/Steps.test.d.ts +0 -1
- package/dist/src/components/Steps/tests/utils.spec.d.ts +0 -1
- package/dist/src/constants/file-grid-columns.d.ts +0 -4
- package/dist/src/models/file-manager.d.ts +0 -19
- package/dist/src/subpaths/file-manager.d.ts +0 -21
- package/dist/src/types/file-manager.d.ts +0 -59
- package/dist/src/utils/__tests__/accessible-name.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/avatar.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/element-size-observer.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/file-accept.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/merge-classes.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/path.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/pointer.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/timezone.spec.d.ts +0 -1
- package/dist/src/utils/grid-registration.spec.d.ts +0 -1
- package/dist/types/file-manager.js +0 -12
- package/dist/use-file-manager-tabs-Bzzwwcgk.cjs +0 -3
- package/dist/utils/path.js +0 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const buttonChevronDown: import(
|
|
2
|
-
export declare const buttonChevronUp: import(
|
|
1
|
+
export declare const buttonChevronDown: import('react/jsx-runtime').JSX.Element;
|
|
2
|
+
export declare const buttonChevronUp: import('react/jsx-runtime').JSX.Element;
|
|
@@ -5,4 +5,4 @@ export declare const dropdownItemDisabledClassName = "opacity-75 !cursor-not-all
|
|
|
5
5
|
export declare const dropdownItemDangerClassName = "text-error";
|
|
6
6
|
export declare const dropdownDividerClassName = "my-1 border-t border-hover border-secondary";
|
|
7
7
|
export declare const dropdownGap = 4;
|
|
8
|
-
export declare const submenuCaretIcon: import(
|
|
8
|
+
export declare const submenuCaretIcon: import('react/jsx-runtime').JSX.Element;
|
|
@@ -117,4 +117,4 @@ export interface DialGridProps<T extends object = Record<string, unknown>> {
|
|
|
117
117
|
* @param [selectionMode] - Could be GridSelectionMode.MULTIPLE or GridSelectionMode.SINGLE to enable selection column
|
|
118
118
|
* @param [allowDisabledContextMenu] - Enables context menu actions even if row itself is disabled for selection
|
|
119
119
|
*/
|
|
120
|
-
export declare const DialGrid: <T extends object>({ columnDefs, rowData, additionalGridOptions, getContextMenuItems, className, ariaLabel, wrapCustomCellRenderers, disabledRowIds, selectedRowIds, onSelectionChange, onGridApiChange, getRowId, alternateOddRowColors, filterPlaceholder, emptyStateIcon, emptyStateTitle, emptyStateDescription, loading, wrapperBorder, withoutHeaderBorders, allowDisabledContextMenu, selectionMode, }: DialGridProps<T>) => import(
|
|
120
|
+
export declare const DialGrid: <T extends object>({ columnDefs, rowData, additionalGridOptions, getContextMenuItems, className, ariaLabel, wrapCustomCellRenderers, disabledRowIds, selectedRowIds, onSelectionChange, onGridApiChange, getRowId, alternateOddRowColors, filterPlaceholder, emptyStateIcon, emptyStateTitle, emptyStateDescription, loading, wrapperBorder, withoutHeaderBorders, allowDisabledContextMenu, selectionMode, }: DialGridProps<T>) => import('react/jsx-runtime').JSX.Element;
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
* Vite/Rolldown versions - see `openspec/changes/isolate-heavy-feature-modules`
|
|
12
12
|
* Section 9's `diagnosis-baseline.txt` for the measured reproduction).
|
|
13
13
|
*/
|
|
14
|
-
export declare const LazyDialJsonEditor: () => Promise<typeof import(
|
|
14
|
+
export declare const LazyDialJsonEditor: () => Promise<typeof import('./JsonEditor')>;
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* re-export this same binding instead of each declaring their own copy -
|
|
5
5
|
* see `src/components/JsonEditor/lazy.ts`'s comment for why.
|
|
6
6
|
*/
|
|
7
|
-
export declare const LazyDialMarkdownEditor: () => Promise<typeof import(
|
|
7
|
+
export declare const LazyDialMarkdownEditor: () => Promise<typeof import('./MarkdownEditor')>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FC, SyntheticEvent } from 'react';
|
|
2
2
|
import { AvatarShape } from '../../../types/avatar';
|
|
3
|
+
import { AvatarColorClasses } from '../../../utils/avatar';
|
|
3
4
|
/** Props for `Avatar`. */
|
|
4
5
|
export interface AvatarProps {
|
|
5
6
|
/** Display name the initials and the colour are derived from. */
|
|
@@ -14,6 +15,8 @@ export interface AvatarProps {
|
|
|
14
15
|
size?: number;
|
|
15
16
|
/** Outline of the avatar. */
|
|
16
17
|
shape?: AvatarShape;
|
|
18
|
+
/** Explicit colour pair overriding the deterministic pick from `name`. */
|
|
19
|
+
color?: AvatarColorClasses;
|
|
17
20
|
/** Additional CSS classes for the avatar. */
|
|
18
21
|
className?: string;
|
|
19
22
|
/** Type-scale class for the initials. When set, it replaces the font size derived from `size`. */
|
|
@@ -28,9 +31,11 @@ export interface AvatarProps {
|
|
|
28
31
|
* Design system 2.0
|
|
29
32
|
*
|
|
30
33
|
* The same name always gets the same colour, drawn from the theme's visual
|
|
31
|
-
* tokens, so a list of avatars stays stable between renders and sessions
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
+
* tokens, so a list of avatars stays stable between renders and sessions; pass
|
|
35
|
+
* `color` to pin one entry of `AVATAR_PALETTE` instead, so every avatar of a
|
|
36
|
+
* kind shares one colour regardless of name or locale. An image that is
|
|
37
|
+
* missing or fails to load falls back to the initials; a new `src` tries the
|
|
38
|
+
* image again.
|
|
34
39
|
*
|
|
35
40
|
* An avatar with an `alt` is a `role="img"` named by it, whether it shows the
|
|
36
41
|
* image or the initials. Without one it is decorative and hidden from
|
|
@@ -48,6 +53,7 @@ export interface AvatarProps {
|
|
|
48
53
|
* @param [alt=''] - Accessible name; empty makes the avatar decorative
|
|
49
54
|
* @param [size=32] - Width and height in px
|
|
50
55
|
* @param [shape=AvatarShape.Circle] - Outline of the avatar
|
|
56
|
+
* @param [color] - Explicit colour pair overriding the deterministic pick from `name`
|
|
51
57
|
* @param [className] - Additional CSS classes for the avatar
|
|
52
58
|
* @param [textClassName] - Type-scale class for the initials, replacing the size-derived font size
|
|
53
59
|
* @param [onImageError] - Called when the image fails to load
|
|
@@ -29,7 +29,7 @@ export declare const currentSizeClassName: Record<BreadcrumbsSize, string>;
|
|
|
29
29
|
*/
|
|
30
30
|
export declare const segmentWidthClassName: Record<'first' | 'middle' | 'last', string>;
|
|
31
31
|
/** The box that draws a segment, around its icon and its label. */
|
|
32
|
-
export declare const segmentClassName = "flex min-w-0 flex-1 items-center gap-1 rounded-
|
|
32
|
+
export declare const segmentClassName = "flex min-w-0 flex-1 items-center gap-1 rounded-xs transition-colors";
|
|
33
33
|
/**
|
|
34
34
|
* A segment the user can follow. Secondary until hovered, then accent — the
|
|
35
35
|
* same pairing the kit's other inline links use.
|
|
@@ -49,7 +49,7 @@ export declare const separatorClassName = "inline-flex flex-none items-center le
|
|
|
49
49
|
* glyph to the 24×24 of WCAG 2.5.8; the enhanced 44×44 target would overhang
|
|
50
50
|
* the segments on either side of it (see the README exception table).
|
|
51
51
|
*/
|
|
52
|
-
export declare const overflowButtonClassName = "dial-kit-minimum-target flex shrink-0 items-center rounded-
|
|
52
|
+
export declare const overflowButtonClassName = "dial-kit-minimum-target flex shrink-0 items-center rounded-xs text-secondary transition-colors hover:text-accent focus-visible:outline focus-visible:outline-offset-2 focus-visible:outline-focus";
|
|
53
53
|
/**
|
|
54
54
|
* Smallest trail the collapse can produce: the root, the ellipsis and the
|
|
55
55
|
* current page. Below that there is nothing left to hide behind the ellipsis.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getButtonChevron: (isOpen: boolean) => import(
|
|
1
|
+
export declare const getButtonChevron: (isOpen: boolean) => import('react/jsx-runtime').JSX.Element;
|
|
@@ -24,10 +24,17 @@ export interface CalendarProps {
|
|
|
24
24
|
fieldClassName?: string;
|
|
25
25
|
/**
|
|
26
26
|
* Shows the viewer's timezone (e.g. `(GMT+01:00) Europe/Berlin`, computed
|
|
27
|
-
* by `getTimezoneLabel`) at the trailing edge of the
|
|
27
|
+
* by `getTimezoneLabel`) at the trailing edge of the time fields — the
|
|
28
|
+
* `time` mode field and the `datetime` popover footer's field — naming
|
|
28
29
|
* the zone the entered time-of-day refers to.
|
|
29
30
|
*/
|
|
30
31
|
showTimezone?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* `time` mode only: shows a clock button at the field's trailing edge that
|
|
34
|
+
* opens an hour/minute list popover. The field stays typeable either way.
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
37
|
+
showTimePicker?: boolean;
|
|
31
38
|
}
|
|
32
39
|
/**
|
|
33
40
|
* A date/time picker supporting four selection modes.
|
|
@@ -63,6 +70,7 @@ export interface CalendarProps {
|
|
|
63
70
|
* @param [maxDate] - Latest selectable date (date/datetime modes)
|
|
64
71
|
* @param [locale="en-GB"] - BCP 47 locale tag used to localize month/weekday names and date formatting
|
|
65
72
|
* @param [fieldClassName] - Additional classes merged onto the trigger field, overriding conflicting defaults
|
|
66
|
-
* @param [showTimezone=false] - Shows the viewer's timezone (e.g. `(GMT+01:00) Europe/Berlin`) at the trailing edge of the `time`
|
|
73
|
+
* @param [showTimezone=false] - Shows the viewer's timezone (e.g. `(GMT+01:00) Europe/Berlin`) at the trailing edge of the time fields (`time` mode and the `datetime` popover footer)
|
|
74
|
+
* @param [showTimePicker=true] - `time` mode only: shows a clock button that opens an hour/minute list popover next to the typeable field
|
|
67
75
|
*/
|
|
68
76
|
export declare const Calendar: FC<CalendarProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
export interface TimePickerPanelProps {
|
|
3
|
+
/** Current `"HH:mm"` value, or an empty/partial string when nothing is picked yet. */
|
|
4
|
+
value: string;
|
|
5
|
+
/** Fired with a complete `"HH:mm"` value; `done` is true once the minutes were chosen. */
|
|
6
|
+
onSelect: (next: string, done: boolean) => void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Two-column hour/minute list shown in the `time` mode popover. Picking an
|
|
10
|
+
* hour keeps the current minutes (or `00`); picking minutes keeps the current
|
|
11
|
+
* hour (or `00`) and signals completion so the popover can close.
|
|
12
|
+
* @param value - current `"HH:mm"` value
|
|
13
|
+
* @param onSelect - fired with the next complete value and whether to close
|
|
14
|
+
*/
|
|
15
|
+
export declare const TimePickerPanel: FC<TimePickerPanelProps>;
|
|
@@ -1,17 +1,19 @@
|
|
|
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-raised px-4 py-3 dial-small-text text-primary outline-
|
|
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-hidden transition-colors hover:border-accent-alpha focus-within:border-accent-focus";
|
|
5
5
|
export declare const calendarFieldDisabledClassName = "!cursor-not-allowed !border-transparent bg-layer-sunken text-control-disable-primary hover:!border-transparent";
|
|
6
6
|
export declare const calendarFieldInvalidClassName = "!border-error";
|
|
7
7
|
export declare const calendarPopoverClassName = "z-floating flex w-[248px] flex-col gap-4 rounded-lg bg-layer-raised px-2 py-4 shadow-md";
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const timePickerPopoverClassName = "z-floating rounded-lg bg-layer-raised p-2 shadow-md";
|
|
9
|
+
export declare const timePickerButtonClassName = "absolute end-2 top-1/2 flex size-8 -translate-y-1/2 items-center justify-center rounded-lg text-secondary hover:bg-control-accent-alpha-hover hover:text-primary focus:outline-hidden focus-visible:outline focus-visible:outline-focus disabled:cursor-not-allowed disabled:text-control-disable-primary disabled:hover:bg-transparent";
|
|
10
|
+
export declare const calendarDayButtonBaseClassName = "flex size-10 items-center justify-center rounded-full dial-small-text text-primary hover:bg-control-accent-alpha-hover hover:text-primary focus:outline-hidden focus-visible:outline focus-visible:outline-focus";
|
|
9
11
|
export declare const calendarDaySelectedClassName = "bg-control-accent text-control-permanent";
|
|
10
12
|
export declare const calendarDayTodayClassName = "text-accent dial-small-semi-text";
|
|
11
13
|
export declare const calendarDayOutsideClassName = "text-control-disable-primary";
|
|
12
14
|
export declare const calendarFieldIconClassName = "text-secondary";
|
|
13
|
-
export declare const calendarIcon: import(
|
|
15
|
+
export declare const calendarIcon: import('react/jsx-runtime').JSX.Element;
|
|
14
16
|
export declare const calendarNavIcons: {
|
|
15
|
-
prev: import(
|
|
16
|
-
next: import(
|
|
17
|
+
prev: import('react/jsx-runtime').JSX.Element;
|
|
18
|
+
next: import('react/jsx-runtime').JSX.Element;
|
|
17
19
|
};
|
|
@@ -2,6 +2,7 @@ import { Placement } from '@floating-ui/react';
|
|
|
2
2
|
import { CSSProperties, FC, MouseEvent, ReactNode, RefObject } from 'react';
|
|
3
3
|
import { DropdownTrigger } from '../../../types/dropdown';
|
|
4
4
|
import { DropdownItem } from '../../../models/dropdown';
|
|
5
|
+
import { DropdownItemFilter } from './search';
|
|
5
6
|
export interface DropdownProps {
|
|
6
7
|
children: ReactNode;
|
|
7
8
|
items?: DropdownItem[];
|
|
@@ -46,6 +47,34 @@ export interface DropdownProps {
|
|
|
46
47
|
* opens, matching the pre-existing behavior.
|
|
47
48
|
*/
|
|
48
49
|
initialFocus?: 0 | -1 | RefObject<HTMLElement | null>;
|
|
50
|
+
/**
|
|
51
|
+
* Puts a search field above `items` that narrows them as the user types and
|
|
52
|
+
* highlights the match in each remaining label. The query is cleared when
|
|
53
|
+
* the menu closes.
|
|
54
|
+
*/
|
|
55
|
+
searchable?: boolean;
|
|
56
|
+
/** Controlled query of the search field; when omitted, the dropdown keeps its own. */
|
|
57
|
+
searchValue?: string;
|
|
58
|
+
/** Fired with every edit of the search field, and with `''` when the menu closes. */
|
|
59
|
+
onSearchChange?: (value: string) => void;
|
|
60
|
+
/** Placeholder and accessible name of the search field. */
|
|
61
|
+
searchPlaceholder?: string;
|
|
62
|
+
/** Accessible name of the search field's clear button. */
|
|
63
|
+
searchClearLabel?: string;
|
|
64
|
+
/** Text shown, and announced, when the query leaves no items. */
|
|
65
|
+
noResultsLabel?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Decides whether an item matches the query, which arrives trimmed and
|
|
68
|
+
* lower-cased. Defaults to a substring match on a string `label`. A submenu
|
|
69
|
+
* whose own row matches keeps all its children; otherwise it keeps only the
|
|
70
|
+
* matching ones, and disappears when none do.
|
|
71
|
+
*/
|
|
72
|
+
filterItem?: DropdownItemFilter;
|
|
73
|
+
/**
|
|
74
|
+
* Number of rows the item list shows before it scrolls. The cap applies to
|
|
75
|
+
* the list alone, so a search field or header stays in view above it.
|
|
76
|
+
*/
|
|
77
|
+
maxVisibleItems?: number;
|
|
49
78
|
}
|
|
50
79
|
/**
|
|
51
80
|
*
|
|
@@ -83,6 +112,11 @@ export interface DropdownProps {
|
|
|
83
112
|
* <Dropdown closable renderOverlay={() => <div className="p-3">Custom content</div>}>
|
|
84
113
|
* <button type="button" className="px-3 py-2 rounded border">Custom</button>
|
|
85
114
|
* </Dropdown>
|
|
115
|
+
*
|
|
116
|
+
* // Searchable menu, seven rows tall before it scrolls
|
|
117
|
+
* <Dropdown searchable maxVisibleItems={7} items={items}>
|
|
118
|
+
* <button type="button" className="px-3 py-2 rounded border">Create</button>
|
|
119
|
+
* </Dropdown>
|
|
86
120
|
* ```
|
|
87
121
|
*
|
|
88
122
|
* @param children - Trigger element(s) to anchor and open the menu
|
|
@@ -111,5 +145,13 @@ export interface DropdownProps {
|
|
|
111
145
|
* @param [matchReferenceWidth=true] - Whether to match the reference element's width
|
|
112
146
|
* @param [maxDropdownHeight] - Maximum height of the dropdown menu; when omitted, no limit is applied
|
|
113
147
|
* @param [initialFocus] - Initial focus target inside the overlay on open, forwarded to `FloatingFocusManager`; when omitted, matches pre-existing behavior
|
|
148
|
+
* @param [searchable=false] - Show a search field above `items` that filters them and highlights the match
|
|
149
|
+
* @param [searchValue] - Controlled query of the search field
|
|
150
|
+
* @param [onSearchChange] - Fired with every edit of the search field, and with `''` when the menu closes
|
|
151
|
+
* @param [searchPlaceholder="Search"] - Placeholder and accessible name of the search field
|
|
152
|
+
* @param [searchClearLabel="Clear search"] - Accessible name of the search field's clear button
|
|
153
|
+
* @param [noResultsLabel="No results found"] - Text shown and announced when the query leaves no items
|
|
154
|
+
* @param [filterItem] - Item matcher; defaults to a case-insensitive substring match on a string `label`
|
|
155
|
+
* @param [maxVisibleItems] - Rows the item list shows before it scrolls
|
|
114
156
|
*/
|
|
115
157
|
export declare const Dropdown: FC<DropdownProps>;
|
|
@@ -11,5 +11,11 @@ export declare const dropdownItemListClassName: string;
|
|
|
11
11
|
*/
|
|
12
12
|
export declare const dropdownItemBaseClassName: string;
|
|
13
13
|
export declare const dropdownDividerClassName = "my-1 border-t border-tertiary";
|
|
14
|
+
/** The search row of a `searchable` dropdown: pinned above the item list, which scrolls on its own. */
|
|
15
|
+
export declare const dropdownSearchClassName = "shrink-0 px-1 pt-1";
|
|
16
|
+
/** The no-results line of a `searchable` dropdown, styled as a `PlainText` row. */
|
|
17
|
+
export declare const dropdownNoResultsClassName = "px-3 py-2 text-secondary dial-caption-text";
|
|
18
|
+
/** Height of the item list that shows exactly `rows` rows before it scrolls. */
|
|
19
|
+
export declare const getDropdownListHeight: (rows: number) => number;
|
|
14
20
|
export declare const dropdownGap = 4;
|
|
15
|
-
export declare const submenuCaretIcon: import(
|
|
21
|
+
export declare const submenuCaretIcon: import('react/jsx-runtime').JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DropdownItem } from '../../../models/dropdown';
|
|
2
|
+
/** Decides whether an item matches a non-empty, trimmed, lower-cased query. */
|
|
3
|
+
export type DropdownItemFilter = (item: DropdownItem, query: string) => boolean;
|
|
4
|
+
/** Case-insensitive substring match on a string `label`; an item with a non-string label never matches. */
|
|
5
|
+
export declare const matchDropdownItemLabel: DropdownItemFilter;
|
|
6
|
+
/** Returns `items` narrowed to the rows matching `query`; an empty query returns `items` unchanged. */
|
|
7
|
+
export declare const filterDropdownItems: (items: DropdownItem[], query: string, isMatch?: DropdownItemFilter) => DropdownItem[];
|
|
8
|
+
/** Returns `items` with every string row label, submenus included, rendered through a single-line `Highlight` of `query`. */
|
|
9
|
+
export declare const highlightDropdownItems: (items: DropdownItem[], query: string) => DropdownItem[];
|
|
@@ -66,4 +66,4 @@ export interface FilterChipsProps<T extends string = string> {
|
|
|
66
66
|
* @param [aria-label] - Names the row as a whole
|
|
67
67
|
* @param [aria-labelledby] - Names the row from an existing element, e.g. a visible heading
|
|
68
68
|
*/
|
|
69
|
-
export declare const FilterChips: <T extends string = string>({ items, value, onChange, stretch, className, chipClassName, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, }: FilterChipsProps<T>) => import(
|
|
69
|
+
export declare const FilterChips: <T extends string = string>({ items, value, onChange, stretch, className, chipClassName, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, }: FilterChipsProps<T>) => import('react/jsx-runtime').JSX.Element;
|
|
@@ -7,12 +7,20 @@ export interface FolderPathProps {
|
|
|
7
7
|
ariaLabel?: string;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* A read-only, non-clickable folder/location path
|
|
10
|
+
* A read-only, non-clickable folder/location path styled like `DialBreadcrumb`.
|
|
11
11
|
* aliases: FolderBreadcrumb|LocationPath
|
|
12
12
|
* Design system 2.0
|
|
13
13
|
*
|
|
14
14
|
* Every segment is disabled (no navigation); the first segment gets a leading
|
|
15
|
-
* folder icon and the last segment is styled as the current/leaf item.
|
|
15
|
+
* folder icon and the last segment is styled as the current/leaf item. A path
|
|
16
|
+
* of more than three segments collapses its middle into a non-interactive `…`
|
|
17
|
+
* that shows the full path (`Shared > Team > Sub > Reports`) in a tooltip on
|
|
18
|
+
* hover; the hidden segments stay in the accessible text.
|
|
19
|
+
*
|
|
20
|
+
* When the path is too wide, the leaf keeps its width longest: the folder
|
|
21
|
+
* before it truncates first, down to about one character, and if the leaf
|
|
22
|
+
* still does not fit, that folder joins the `…` as well. Only then does the
|
|
23
|
+
* leaf truncate.
|
|
16
24
|
*
|
|
17
25
|
* @example
|
|
18
26
|
* ```tsx
|
|
@@ -22,11 +30,11 @@ export interface FolderPathProps {
|
|
|
22
30
|
* @param segments - Path segments to display, outermost first
|
|
23
31
|
* @param [labelClassName='dial-small-text'] - Additional CSS classes applied to non-leaf segments
|
|
24
32
|
* @param [leafClassName='dial-small-semi-text'] - Additional CSS classes applied to the last (leaf) segment
|
|
25
|
-
* @param [className] - Additional CSS classes applied to the
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* @param [ariaLabel='Folder path'] - Accessible name for the
|
|
29
|
-
*
|
|
30
|
-
*
|
|
33
|
+
* @param [className] - Additional CSS classes applied to the `<nav>` element.
|
|
34
|
+
* The nav clips on overflow, so this must not shrink it to content width
|
|
35
|
+
* (e.g. never `w-auto`).
|
|
36
|
+
* @param [ariaLabel='Folder path'] - Accessible name for the `<nav>`. A path
|
|
37
|
+
* has no navigable items, so it is not named "Breadcrumb"; override it when a
|
|
38
|
+
* page shows more than one.
|
|
31
39
|
*/
|
|
32
40
|
export declare const FolderPath: FC<FolderPathProps>;
|
|
@@ -2,6 +2,7 @@ import { ColDef, GridApi, GridOptions } from 'ag-grid-community';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { DropdownItem } from '../../../models/dropdown';
|
|
4
4
|
import { GridSelectionMode } from '../../../models/selection-mode';
|
|
5
|
+
import { GridColorScheme } from '../../../types/grid';
|
|
5
6
|
/** Column id of the selection column this component prepends itself. */
|
|
6
7
|
export declare const GRID_SELECTION_COLUMN_ID = "dial-kit-grid-selection";
|
|
7
8
|
export interface GridProps<T extends object = Record<string, unknown>> {
|
|
@@ -53,6 +54,12 @@ export interface GridProps<T extends object = Record<string, unknown>> {
|
|
|
53
54
|
selectRowLabel?: (row: T) => string;
|
|
54
55
|
/** Accessible name of the select-all control. Defaults to `'Select all rows'`. */
|
|
55
56
|
selectAllLabel?: string;
|
|
57
|
+
/**
|
|
58
|
+
* AG Grid color scheme. `dark` selects the dark theme part and asks the
|
|
59
|
+
* browser to paint native controls — the date filter calendar, scrollbars —
|
|
60
|
+
* dark. Defaults to `light`, which leaves the current appearance unchanged.
|
|
61
|
+
*/
|
|
62
|
+
colorScheme?: GridColorScheme;
|
|
56
63
|
}
|
|
57
64
|
/**
|
|
58
65
|
* A data grid built on ag-Grid, wired to the 2.0 tokens and controls.
|
|
@@ -94,6 +101,9 @@ export interface GridProps<T extends object = Record<string, unknown>> {
|
|
|
94
101
|
* selectRowLabel={(row) => `Select ${row.name}`}
|
|
95
102
|
* getContextMenuItems={(row) => [{ key: 'edit', label: 'Edit' }]}
|
|
96
103
|
* />
|
|
104
|
+
*
|
|
105
|
+
* // Dark native controls, including the date-filter calendar
|
|
106
|
+
* <Grid<Product> columnDefs={columns} rowData={products} colorScheme={GridColorScheme.Dark} />
|
|
97
107
|
* ```
|
|
98
108
|
*
|
|
99
109
|
* @param [columnDefs] - Column definitions, in ag-Grid `ColDef` format.
|
|
@@ -120,5 +130,6 @@ export interface GridProps<T extends object = Record<string, unknown>> {
|
|
|
120
130
|
* @param [allowDisabledContextMenu=false] - Keeps the context menu on a non-selectable row.
|
|
121
131
|
* @param [selectRowLabel] - Accessible name of a row's selection control.
|
|
122
132
|
* @param [selectAllLabel='Select all rows'] - Accessible name of the select-all control.
|
|
133
|
+
* @param [colorScheme='light'] - AG Grid color scheme. `dark` paints native controls dark.
|
|
123
134
|
*/
|
|
124
|
-
export declare const Grid: <T extends object>({ columnDefs, rowData, additionalGridOptions, getContextMenuItems, className, ariaLabel, wrapCustomCellRenderers, disabledRowIds, selectedRowIds, onSelectionChange, onGridApiChange, getRowId, alternateOddRowColors, filterPlaceholder, emptyStateIcon, emptyStateTitle, emptyStateDescription, loading, wrapperBorder, withoutHeaderBorders, allowDisabledContextMenu, selectionMode, selectRowLabel, selectAllLabel, }: GridProps<T>) => import(
|
|
135
|
+
export declare const Grid: <T extends object>({ columnDefs, rowData, additionalGridOptions, getContextMenuItems, className, ariaLabel, wrapCustomCellRenderers, disabledRowIds, selectedRowIds, onSelectionChange, onGridApiChange, getRowId, alternateOddRowColors, filterPlaceholder, emptyStateIcon, emptyStateTitle, emptyStateDescription, loading, wrapperBorder, withoutHeaderBorders, allowDisabledContextMenu, selectionMode, selectRowLabel, selectAllLabel, colorScheme, }: GridProps<T>) => import('react/jsx-runtime').JSX.Element;
|
|
@@ -18,4 +18,4 @@ export interface SelectionCellProps<T> {
|
|
|
18
18
|
* `rowSelected` event, so a selection made anywhere — another cell, the header,
|
|
19
19
|
* or the `selectedRowIds` prop — is reflected here without refreshing the cell.
|
|
20
20
|
*/
|
|
21
|
-
export declare const SelectionCell: <T>({ params, mode, label, radioName, rowId, disabled, }: SelectionCellProps<T>) => import(
|
|
21
|
+
export declare const SelectionCell: <T>({ params, mode, label, radioName, rowId, disabled, }: SelectionCellProps<T>) => import('react/jsx-runtime').JSX.Element;
|
|
@@ -11,4 +11,4 @@ export interface SelectionHeaderProps<T> extends IHeaderParams<T> {
|
|
|
11
11
|
* rows put it in the `mixed` state, and disabled rows are excluded from the
|
|
12
12
|
* count so a grid whose selectable rows are all selected still reads as full.
|
|
13
13
|
*/
|
|
14
|
-
export declare const SelectionHeader: <T>({ api, label, }: SelectionHeaderProps<T>) => import(
|
|
14
|
+
export declare const SelectionHeader: <T>({ api, label, }: SelectionHeaderProps<T>) => import('react/jsx-runtime').JSX.Element;
|
|
@@ -11,7 +11,7 @@ export declare const INTERACTIVE_TOOLTIP_GAP = 8;
|
|
|
11
11
|
export declare const INTERACTIVE_TOOLTIP_HOVER_OPEN_DELAY = 400;
|
|
12
12
|
/**
|
|
13
13
|
* The panel sits one step of the overlay ladder (`z-interactive-tooltip`, see
|
|
14
|
-
*
|
|
14
|
+
* `--z-index-*` in `src/styles/theme.scss`) above the surface it is anchored to — a
|
|
15
15
|
* dropdown or select overlay, both `z-floating` — since it can be opened from
|
|
16
16
|
* a row inside one of them.
|
|
17
17
|
*
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* re-export this same binding instead of each declaring their own copy -
|
|
5
5
|
* see `src/components/JsonEditor/lazy.ts`'s comment for why.
|
|
6
6
|
*/
|
|
7
|
-
export declare const LazyMarkdownEditor: () => Promise<typeof import(
|
|
7
|
+
export declare const LazyMarkdownEditor: () => Promise<typeof import('./MarkdownEditor')>;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Marks the chosen row in a `MenuItemMark.Check` list. Decorative: the row's
|
|
3
3
|
* `aria-checked`/`aria-selected` already carries the state.
|
|
4
4
|
*/
|
|
5
|
-
export declare const menuItemCheckIcon: import(
|
|
5
|
+
export declare const menuItemCheckIcon: import('react/jsx-runtime').JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { PopupSize } from '../../../types/popup';
|
|
|
2
2
|
export declare const popupOverlayBaseClassName = "z-popup flex items-center justify-center bg-backdrop md:p-4 gap-5 p-6";
|
|
3
3
|
export declare const popupBaseClassName = "relative flex w-full max-h-full flex-col rounded-xl bg-layer-raised md:h-auto";
|
|
4
4
|
export declare const popupHeaderClassName = "flex flex-row items-center justify-between px-6 py-4";
|
|
5
|
-
export declare const popupTitleClassName = "flex-1 min-w-0 mr-3 truncate dial-
|
|
5
|
+
export declare const popupTitleClassName = "flex-1 min-w-0 mr-3 truncate dial-h3-text text-primary";
|
|
6
6
|
/** Rule under the header. Opt-in: by default sections are separated by spacing. */
|
|
7
7
|
export declare const popupHeaderDividerClassName = "border-b border-tertiary";
|
|
8
8
|
export declare const popupFooterClassName = "flex flex-row items-center gap-2 px-6 py-4";
|
|
@@ -10,6 +10,13 @@ export declare const popupFooterClassName = "flex flex-row items-center gap-2 px
|
|
|
10
10
|
export declare const popupFooterDividerClassName = "border-t border-tertiary";
|
|
11
11
|
/** Groups the controls sitting on one side of the header or footer. */
|
|
12
12
|
export declare const popupActionsGroupClassName = "flex shrink-0 flex-row items-center gap-2";
|
|
13
|
+
/**
|
|
14
|
+
* Trailing footer group. Below the `mobile` breakpoint it spans the footer and
|
|
15
|
+
* every button in it takes an equal share, so a Cancel/Confirm pair splits 50/50.
|
|
16
|
+
*/
|
|
17
|
+
export declare const popupMainActionsGroupClassName = "ml-auto mobile:flex-1";
|
|
18
|
+
/** Applied to each button in the trailing footer group. */
|
|
19
|
+
export declare const popupMainActionButtonClassName = "mobile:flex-1";
|
|
13
20
|
/**
|
|
14
21
|
* Max widths per size. Full width below the `md` breakpoint, where the popup
|
|
15
22
|
* fills the screen.
|
|
@@ -51,4 +51,4 @@ export interface SegmentedControlProps<T extends string> {
|
|
|
51
51
|
* @param [segmentClassName] - Additional classes for every segment
|
|
52
52
|
* @param [aria-label] - Names the group as a whole
|
|
53
53
|
*/
|
|
54
|
-
export declare const SegmentedControl: <T extends string>({ items, value, onChange, disabled, className, segmentClassName: segmentClassNameProp, "aria-label": ariaLabel, }: SegmentedControlProps<T>) => import(
|
|
54
|
+
export declare const SegmentedControl: <T extends string>({ items, value, onChange, disabled, className, segmentClassName: segmentClassNameProp, "aria-label": ariaLabel, }: SegmentedControlProps<T>) => import('react/jsx-runtime').JSX.Element;
|
|
@@ -27,7 +27,7 @@ export declare const selectOptionsScrollClassName: string;
|
|
|
27
27
|
export declare const selectSubMenuGap = 4;
|
|
28
28
|
export declare const selectSubMenuClassName: string;
|
|
29
29
|
/** Marks an option that opens a nested list. Matches the dropdown's caret. */
|
|
30
|
-
export declare const selectSubMenuCaretIcon: import(
|
|
30
|
+
export declare const selectSubMenuCaretIcon: import('react/jsx-runtime').JSX.Element;
|
|
31
31
|
/** Classes for the chevron rendered as the field's trailing icon. */
|
|
32
32
|
export declare const selectFieldIconClassName = "text-secondary transition-transform";
|
|
33
33
|
/**
|
|
@@ -35,6 +35,6 @@ export declare const selectFieldIconClassName = "text-secondary transition-trans
|
|
|
35
35
|
* short enough to scan at a glance does not need to be filtered.
|
|
36
36
|
*/
|
|
37
37
|
export declare const selectSearchThreshold = 8;
|
|
38
|
-
export declare const selectSearchIcon: import(
|
|
39
|
-
export declare const selectCloseIcon: import(
|
|
40
|
-
export declare const selectEmptyStateIcon: import(
|
|
38
|
+
export declare const selectSearchIcon: import('react/jsx-runtime').JSX.Element;
|
|
39
|
+
export declare const selectCloseIcon: import('react/jsx-runtime').JSX.Element;
|
|
40
|
+
export declare const selectEmptyStateIcon: import('react/jsx-runtime').JSX.Element;
|
|
@@ -19,8 +19,8 @@ export declare const HOVER_OPEN_DELAY = 500;
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const arrowClassName = "fill-control-inverted";
|
|
21
21
|
/**
|
|
22
|
-
* Tooltips sit at the top of the overlay ladder (`z-tooltip`, see
|
|
23
|
-
* `
|
|
22
|
+
* Tooltips sit at the top of the overlay ladder (`z-tooltip`, see `--z-index-*` in
|
|
23
|
+
* `src/styles/theme.scss`) — above popups (`z-popup`), dropdowns and the calendar
|
|
24
24
|
* (`z-floating`) and interactive tooltips — since they can be triggered by a
|
|
25
25
|
* control inside any of them.
|
|
26
26
|
*
|
|
@@ -52,7 +52,11 @@ export interface TransferQueueLabels {
|
|
|
52
52
|
closeConfirmHeader: string;
|
|
53
53
|
/** Confirmation description when an item is in progress and none failed. */
|
|
54
54
|
closeConfirmDescriptionInProgress: string;
|
|
55
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* Confirmation description when an item failed and none is in progress.
|
|
57
|
+
* @deprecated Never shown: closing asks for confirmation only while an item
|
|
58
|
+
* is in progress, since a failed one has nothing left to lose.
|
|
59
|
+
*/
|
|
56
60
|
closeConfirmDescriptionFailed: string;
|
|
57
61
|
/** Confirmation description when items are both in progress and failed. */
|
|
58
62
|
closeConfirmDescriptionMixed: string;
|
|
@@ -103,12 +107,12 @@ export interface TransferQueueProps {
|
|
|
103
107
|
* Each row shows the file's `FileIcon` and name, and a trailing status: a
|
|
104
108
|
* spinner (with a cancel control on hover or focus) while in progress, a check
|
|
105
109
|
* on success, a warning or error icon whose reason is both its tooltip and its
|
|
106
|
-
* accessible name, or "Canceled". The header carries the host's title
|
|
107
|
-
*
|
|
110
|
+
* accessible name, or "Canceled". The header carries the host's title and the
|
|
111
|
+
* collapse and close controls. Collapsed while work runs,
|
|
108
112
|
* the rows are replaced by one aggregate `ProgressBar`.
|
|
109
113
|
*
|
|
110
|
-
* Closing while an item is in progress
|
|
111
|
-
*
|
|
114
|
+
* Closing while an item is in progress asks for confirmation first; a queue
|
|
115
|
+
* whose items have all settled, failed ones included, closes straight away. Once every item has succeeded the queue closes itself after
|
|
112
116
|
* `autoCloseDelay`; a warned or canceled row keeps it open so it can be read.
|
|
113
117
|
*
|
|
114
118
|
* The root is a polite `role="status"` live region. Positioning is left to
|
|
@@ -2,8 +2,6 @@ import { FC } from 'react';
|
|
|
2
2
|
import { TransferQueueLabels } from './TransferQueue';
|
|
3
3
|
interface TransferQueueHeaderProps {
|
|
4
4
|
title: string;
|
|
5
|
-
/** The badge renders only when this is positive. */
|
|
6
|
-
failedCount: number;
|
|
7
5
|
isCollapsed: boolean;
|
|
8
6
|
/** Id of the rows container the collapse toggle controls. */
|
|
9
7
|
itemsId: string;
|
|
@@ -11,6 +9,6 @@ interface TransferQueueHeaderProps {
|
|
|
11
9
|
onToggleCollapse: () => void;
|
|
12
10
|
onClose: () => void;
|
|
13
11
|
}
|
|
14
|
-
/** Queue heading with
|
|
12
|
+
/** Queue heading with the collapse and close controls. */
|
|
15
13
|
export declare const TransferQueueHeader: FC<TransferQueueHeaderProps>;
|
|
16
14
|
export {};
|
|
@@ -37,4 +37,4 @@ export interface DialSegmentedControlProps<T extends string> {
|
|
|
37
37
|
* @param [className] - Additional classes applied to the container.
|
|
38
38
|
* @param [ariaLabel] - Accessible label for the control (applied to the `tablist`).
|
|
39
39
|
*/
|
|
40
|
-
export declare const DialSegmentedControl: <T extends string>({ options, value, onChange, disabled, className, ariaLabel, }: DialSegmentedControlProps<T>) => import(
|
|
40
|
+
export declare const DialSegmentedControl: <T extends string>({ options, value, onChange, disabled, className, ariaLabel, }: DialSegmentedControlProps<T>) => import('react/jsx-runtime').JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const selectTriggerBaseClassName = "dial-input flex w-full items-center justify-between gap-2 dial-small-text cursor-pointer";
|
|
2
2
|
export declare const selectOverlayBaseClassName = "w-full rounded flex flex-col";
|
|
3
|
-
export declare const selectOptionBaseClassName = "flex w-full items-center justify-between gap-2 px-3 h-[34px] dial-small-text text-primary truncate hover:bg-accent-primary-alpha focus:bg-accent-primary-alpha focus:outline-
|
|
3
|
+
export declare const selectOptionBaseClassName = "flex w-full items-center justify-between gap-2 px-3 h-[34px] dial-small-text text-primary truncate hover:bg-accent-primary-alpha focus:bg-accent-primary-alpha focus:outline-hidden";
|
|
4
4
|
export declare const selectOptionSelectedClassName = "bg-accent-primary-alpha";
|
|
5
|
-
export declare const selectOptionSingleSelectedClassName = "bg-accent-primary-alpha border-l border-accent-primary
|
|
5
|
+
export declare const selectOptionSingleSelectedClassName = "bg-accent-primary-alpha border-l border-accent-primary";
|
|
6
6
|
export declare const selectOptionDisabledClassName = "opacity-75";
|
|
7
7
|
export declare const dropdownMenuMaxHeight = 352;
|
|
8
8
|
export declare const selectSubMenuGap = 4;
|
|
9
|
-
export declare const selectChevronIcon: import(
|
|
9
|
+
export declare const selectChevronIcon: import('react/jsx-runtime').JSX.Element;
|
|
@@ -43,6 +43,11 @@ export declare const DIAL_KIT_CLASS: {
|
|
|
43
43
|
readonly popup: "dial-kit-popup";
|
|
44
44
|
/** The `role="dialog"` panel of a `BottomSheet`. */
|
|
45
45
|
readonly bottomSheet: "dial-kit-bottom-sheet";
|
|
46
|
+
/**
|
|
47
|
+
* The backdrop of a `BottomSheet`: the portalled, scroll-locking layer on
|
|
48
|
+
* `z-popup` that holds the panel.
|
|
49
|
+
*/
|
|
50
|
+
readonly bottomSheetOverlay: "dial-kit-bottom-sheet-overlay";
|
|
46
51
|
/** The `role="dialog"` panel of a `SideDrawer`, open or closed. */
|
|
47
52
|
readonly sideDrawer: "dial-kit-side-drawer";
|
|
48
53
|
/** The `Popup` panel of a `ConfirmationPopup`, additive to `popup`. */
|
|
@@ -69,6 +74,8 @@ export declare const DIAL_KIT_CLASS: {
|
|
|
69
74
|
* on a submenu's own list. It is *not* the floating panel.
|
|
70
75
|
*/
|
|
71
76
|
readonly dropdownList: "dial-kit-dropdown-list";
|
|
77
|
+
/** The search row above the item list of a `searchable` `Dropdown`. */
|
|
78
|
+
readonly dropdownSearch: "dial-kit-dropdown-search";
|
|
72
79
|
/**
|
|
73
80
|
* One row of a floating overlay: a dropdown item, a `Select` option, a
|
|
74
81
|
* submenu trigger, or a submenu child. It sits on the element that draws the
|