@epam/ai-dial-ui-kit 0.16.0-dev.3 → 0.16.0-dev.33
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 +6 -1
- package/dist/CHANGELOG.md +59 -1
- package/dist/DateCellRenderer-BX8RfCHm.cjs +63 -0
- package/dist/{IconButton-DHOFapLo.cjs → IconButton-CsePS6PY.cjs} +1 -1
- package/dist/JsonEditor-DQhHSm93.cjs +1 -0
- package/dist/{MarkdownEditor-Cp-KX6-T.cjs → MarkdownEditor-CvIPIbPq.cjs} +1 -1
- package/dist/{MarkdownEditor-Dav_pp0T.cjs → MarkdownEditor-TR6X_gdl.cjs} +1 -1
- package/dist/MarkdownEditorContainer-JIn_VNUX.cjs +1 -0
- package/dist/{Switch-DE6MrcqJ.cjs → Switch-HEL_aq23.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/MarkdownEditor/MarkdownEditorContainer.js +16 -18
- 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/CaptionText/CaptionText.js +3 -4
- 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 +334 -254
- 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/Input/Input.js +121 -107
- package/dist/components/New/MenuItem/MenuItem.js +17 -17
- package/dist/components/New/NoDataContent/NoDataContent.js +22 -27
- package/dist/components/New/NoDataContent/NoDataIllustration.js +53 -0
- package/dist/components/New/Popup/constants.js +1 -1
- package/dist/components/New/Radio/Radio.js +19 -17
- package/dist/components/New/ResizeHandle/ResizeHandle.js +147 -0
- package/dist/components/New/SchemaRenderer/components/SchemaField.js +45 -44
- package/dist/components/New/SchemaRenderer/components/SchemaFieldContent.js +41 -38
- package/dist/components/New/SchemaRenderer/components/SchemaPrimitiveField.js +45 -39
- package/dist/components/New/Select/Select.js +205 -202
- package/dist/components/New/Select/constants.js +29 -38
- package/dist/components/New/SharedEntityIndicator/SharedEntityIndicator.js +1 -1
- package/dist/components/New/SideDrawer/SideDrawer.js +1 -1
- package/dist/components/New/StateScreen/StateScreen.js +61 -0
- package/dist/components/New/Switch/Switch.js +19 -17
- package/dist/components/New/Textarea/Textarea.js +37 -33
- 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 +422 -1171
- package/dist/constants/public-class-names.js +11 -0
- package/dist/dial-ui-kit.cjs +4 -2
- package/dist/dial-ui-kit.js +354 -366
- 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/lazy-kq-xfXXv.cjs +1 -0
- package/dist/{merge-classes-BEJXjzkx.cjs → merge-classes-B0SnCG4i.cjs} +1 -1
- package/dist/migration-guides/0.16.0/caption-text-no-alert-role.md +90 -0
- 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 +3 -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/CaptionText/CaptionText.d.ts +8 -1
- 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/NoDataContent/NoDataContent.d.ts +16 -8
- package/dist/src/components/New/NoDataContent/NoDataIllustration.d.ts +7 -0
- package/dist/src/components/New/Popup/constants.d.ts +1 -1
- package/dist/src/components/New/ResizeHandle/ResizeHandle.d.ts +68 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaFieldContent.d.ts +1 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaPrimitiveField.d.ts +2 -0
- package/dist/src/components/New/SchemaRenderer/types.d.ts +3 -1
- package/dist/src/components/New/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/src/components/New/Select/Select.d.ts +2 -0
- package/dist/src/components/New/Select/constants.d.ts +3 -4
- package/dist/src/components/New/StateScreen/StateScreen.d.ts +47 -0
- 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 +11 -0
- package/dist/src/index.d.ts +8 -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/merge-classes.js +36 -7
- 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/JsonEditor-eAV7SaKu.cjs +0 -1
- package/dist/MarkdownEditorContainer-96cKYmYd.cjs +0 -1
- 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/no-data.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/editor-BH6_A1k2.cjs +0 -1
- 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/lazy-DMVYJhUR.cjs +0 -1
- 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,53 +1,44 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { IconSearch as a, IconX as r, IconChevronRight as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
const N = o("w-full flex flex-col"), v = n, y = "!max-w-[var(--reference-width)]", x = o(
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { IconSearch as a, IconX as r, IconChevronRight as l } from "@tabler/icons-react";
|
|
3
|
+
import { overlayItemClassName as c, overlayListClassName as n, overlayGap as i, overlaySubMenuListClassName as m } from "../constants/overlay.js";
|
|
4
|
+
import { DIAL_KIT_ICON_STROKE as s } from "../constants/icon.js";
|
|
5
|
+
import { DIAL_ICON_SIZE as o } from "../../../constants/icon.js";
|
|
6
|
+
import { mergeClasses as t } from "../../../utils/merge-classes.js";
|
|
7
|
+
const S = t("w-full flex flex-col"), d = c, N = "!max-w-[var(--reference-width)]", v = t(
|
|
9
8
|
"max-h-[344px] overflow-y-auto py-1",
|
|
10
|
-
|
|
11
|
-
),
|
|
12
|
-
|
|
9
|
+
n
|
|
10
|
+
), x = i, y = m, M = /* @__PURE__ */ e(
|
|
11
|
+
l,
|
|
13
12
|
{
|
|
14
|
-
size:
|
|
15
|
-
stroke:
|
|
13
|
+
size: o.SM,
|
|
14
|
+
stroke: s,
|
|
16
15
|
"aria-hidden": "true"
|
|
17
16
|
}
|
|
18
|
-
),
|
|
17
|
+
), O = "text-secondary transition-transform", L = 8, _ = /* @__PURE__ */ e(
|
|
19
18
|
a,
|
|
20
19
|
{
|
|
21
|
-
size:
|
|
22
|
-
stroke:
|
|
20
|
+
size: o.MD,
|
|
21
|
+
stroke: s,
|
|
23
22
|
"aria-hidden": "true"
|
|
24
23
|
}
|
|
25
|
-
),
|
|
24
|
+
), b = /* @__PURE__ */ e(
|
|
26
25
|
r,
|
|
27
26
|
{
|
|
28
|
-
size:
|
|
29
|
-
stroke:
|
|
30
|
-
"aria-hidden": "true"
|
|
31
|
-
}
|
|
32
|
-
), D = /* @__PURE__ */ s(
|
|
33
|
-
l,
|
|
34
|
-
{
|
|
35
|
-
width: e.LG,
|
|
36
|
-
height: e.LG,
|
|
27
|
+
size: o.SM,
|
|
28
|
+
stroke: s,
|
|
37
29
|
"aria-hidden": "true"
|
|
38
30
|
}
|
|
39
31
|
);
|
|
40
32
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
v as
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
L as selectSubMenuGap
|
|
33
|
+
b as selectCloseIcon,
|
|
34
|
+
O as selectFieldIconClassName,
|
|
35
|
+
N as selectListWidthClassName,
|
|
36
|
+
d as selectOptionBaseClassName,
|
|
37
|
+
v as selectOptionsScrollClassName,
|
|
38
|
+
S as selectOverlayBaseClassName,
|
|
39
|
+
_ as selectSearchIcon,
|
|
40
|
+
L as selectSearchThreshold,
|
|
41
|
+
M as selectSubMenuCaretIcon,
|
|
42
|
+
y as selectSubMenuClassName,
|
|
43
|
+
x as selectSubMenuGap
|
|
53
44
|
};
|
|
@@ -68,7 +68,7 @@ const ne = ({
|
|
|
68
68
|
inert: !t,
|
|
69
69
|
style: w,
|
|
70
70
|
className: r(
|
|
71
|
-
"fixed inset-y-0 end-0 flex w-full flex-col overflow-hidden bg-layer-raised outline-
|
|
71
|
+
"fixed inset-y-0 end-0 flex w-full flex-col overflow-hidden bg-layer-raised outline-hidden",
|
|
72
72
|
"desktop:w-[540px] desktop:rounded-s-xl desktop:border-s desktop:border-secondary",
|
|
73
73
|
"transition-transform duration-300 motion-reduce:transition-none",
|
|
74
74
|
t ? "translate-x-0" : "translate-x-full rtl:-translate-x-full",
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useId as o } from "react";
|
|
3
|
+
import { mergeClasses as t } from "../../../utils/merge-classes.js";
|
|
4
|
+
import { DIAL_KIT_CLASS as x } from "../../../constants/public-class-names.js";
|
|
5
|
+
const h = ({
|
|
6
|
+
title: i,
|
|
7
|
+
description: r,
|
|
8
|
+
icon: l,
|
|
9
|
+
action: s,
|
|
10
|
+
className: m,
|
|
11
|
+
titleClassName: n,
|
|
12
|
+
descriptionClassName: c
|
|
13
|
+
}) => {
|
|
14
|
+
const a = o();
|
|
15
|
+
return /* @__PURE__ */ d(
|
|
16
|
+
"section",
|
|
17
|
+
{
|
|
18
|
+
"aria-labelledby": a,
|
|
19
|
+
className: t(
|
|
20
|
+
"flex size-full flex-col items-center justify-center px-4 text-center",
|
|
21
|
+
m,
|
|
22
|
+
x.stateScreen
|
|
23
|
+
),
|
|
24
|
+
children: [
|
|
25
|
+
l != null && /* @__PURE__ */ e(
|
|
26
|
+
"span",
|
|
27
|
+
{
|
|
28
|
+
"aria-hidden": "true",
|
|
29
|
+
className: "mb-4 flex size-14 items-center justify-center rounded-full border border-secondary text-secondary",
|
|
30
|
+
children: l
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
/* @__PURE__ */ e(
|
|
34
|
+
"h1",
|
|
35
|
+
{
|
|
36
|
+
id: a,
|
|
37
|
+
className: t(
|
|
38
|
+
"dial-body-semi-text text-primary",
|
|
39
|
+
n
|
|
40
|
+
),
|
|
41
|
+
children: i
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
r != null && /* @__PURE__ */ e(
|
|
45
|
+
"p",
|
|
46
|
+
{
|
|
47
|
+
className: t(
|
|
48
|
+
"dial-small-text mt-2 text-secondary",
|
|
49
|
+
c
|
|
50
|
+
),
|
|
51
|
+
children: r
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
s != null && /* @__PURE__ */ e("div", { className: "mt-4", children: s })
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
export {
|
|
60
|
+
h as StateScreen
|
|
61
|
+
};
|
|
@@ -9,15 +9,15 @@ const C = ({
|
|
|
9
9
|
id: d,
|
|
10
10
|
labelProps: o,
|
|
11
11
|
isOn: t = !1,
|
|
12
|
-
disabled:
|
|
12
|
+
disabled: c,
|
|
13
13
|
onChange: a,
|
|
14
|
-
caption:
|
|
14
|
+
caption: s,
|
|
15
15
|
className: u,
|
|
16
16
|
...i
|
|
17
17
|
}) => {
|
|
18
|
-
const p = b(),
|
|
19
|
-
(
|
|
20
|
-
a?.(
|
|
18
|
+
const p = b(), l = d ?? p, n = s ? `${l}-caption` : void 0, h = g(
|
|
19
|
+
(f) => {
|
|
20
|
+
a?.(f.target.checked);
|
|
21
21
|
},
|
|
22
22
|
[a]
|
|
23
23
|
);
|
|
@@ -26,7 +26,9 @@ const C = ({
|
|
|
26
26
|
"div",
|
|
27
27
|
{
|
|
28
28
|
className: r(
|
|
29
|
-
|
|
29
|
+
// Named group: the control shows its hover state while either of its
|
|
30
|
+
// two <label>s (the control or the text) is hovered.
|
|
31
|
+
"group/choice flex items-center gap-2",
|
|
30
32
|
u,
|
|
31
33
|
N.switch
|
|
32
34
|
),
|
|
@@ -37,11 +39,11 @@ const C = ({
|
|
|
37
39
|
...i,
|
|
38
40
|
type: "checkbox",
|
|
39
41
|
role: "switch",
|
|
40
|
-
id:
|
|
42
|
+
id: l,
|
|
41
43
|
checked: t,
|
|
42
44
|
"aria-checked": t,
|
|
43
|
-
disabled:
|
|
44
|
-
onChange:
|
|
45
|
+
disabled: c,
|
|
46
|
+
onChange: h,
|
|
45
47
|
"aria-label": y(
|
|
46
48
|
typeof o?.label != "string" ? i["aria-label"] : void 0
|
|
47
49
|
),
|
|
@@ -52,14 +54,14 @@ const C = ({
|
|
|
52
54
|
/* @__PURE__ */ e(
|
|
53
55
|
"label",
|
|
54
56
|
{
|
|
55
|
-
htmlFor:
|
|
57
|
+
htmlFor: l,
|
|
56
58
|
className: r(
|
|
57
59
|
"flex h-[18px] w-[36px] shrink-0 items-center rounded-full p-0.5 transition-colors duration-200",
|
|
58
60
|
"peer-focus-visible:outline peer-focus-visible:outline-offset-2 peer-focus-visible:outline-focus",
|
|
59
61
|
t ? "justify-end" : "justify-start",
|
|
60
|
-
|
|
62
|
+
c ? "cursor-not-allowed bg-control-disable-primary" : r(
|
|
61
63
|
"cursor-pointer",
|
|
62
|
-
t ? "bg-control-accent hover:bg-control-accent-hover" : "bg-control-neutral-default hover:bg-control-neutral-hover-strong"
|
|
64
|
+
t ? "bg-control-accent group-has-[label:hover]/choice:bg-control-accent-hover" : "bg-control-neutral-default group-has-[label:hover]/choice:bg-control-neutral-hover-strong"
|
|
63
65
|
)
|
|
64
66
|
),
|
|
65
67
|
children: /* @__PURE__ */ e(
|
|
@@ -67,7 +69,7 @@ const C = ({
|
|
|
67
69
|
{
|
|
68
70
|
className: r(
|
|
69
71
|
"size-3.5 shrink-0 rounded-full",
|
|
70
|
-
|
|
72
|
+
c ? "bg-control-disable-secondary" : "bg-control-neutral"
|
|
71
73
|
)
|
|
72
74
|
}
|
|
73
75
|
)
|
|
@@ -78,12 +80,12 @@ const C = ({
|
|
|
78
80
|
{
|
|
79
81
|
size: x.Standard,
|
|
80
82
|
...o,
|
|
81
|
-
htmlFor:
|
|
83
|
+
htmlFor: l,
|
|
82
84
|
className: r(
|
|
83
85
|
// `Label` defaults to the secondary colour; the switch's own label
|
|
84
86
|
// has always been primary while the control is usable.
|
|
85
87
|
"py-[1px]",
|
|
86
|
-
|
|
88
|
+
c ? "cursor-not-allowed text-control-disable-primary" : "cursor-pointer text-primary",
|
|
87
89
|
o.className
|
|
88
90
|
)
|
|
89
91
|
}
|
|
@@ -91,12 +93,12 @@ const C = ({
|
|
|
91
93
|
]
|
|
92
94
|
}
|
|
93
95
|
),
|
|
94
|
-
|
|
96
|
+
s && /* @__PURE__ */ e(
|
|
95
97
|
"span",
|
|
96
98
|
{
|
|
97
99
|
id: n,
|
|
98
100
|
className: "dial-tiny-text text-secondary ml-[44px]",
|
|
99
|
-
children:
|
|
101
|
+
children: s
|
|
100
102
|
}
|
|
101
103
|
)
|
|
102
104
|
] });
|
|
@@ -1,56 +1,60 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import "react";
|
|
3
|
-
import { mergeClasses as
|
|
4
|
-
import { ErrorText as
|
|
5
|
-
import { Label as
|
|
6
|
-
var
|
|
7
|
-
const
|
|
1
|
+
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useId as I } from "react";
|
|
3
|
+
import { mergeClasses as m } from "../../../utils/merge-classes.js";
|
|
4
|
+
import { ErrorText as k, CaptionText as z } from "../CaptionText/CaptionText.js";
|
|
5
|
+
import { Label as j } from "../Label/Label.js";
|
|
6
|
+
var B = /* @__PURE__ */ ((e) => (e.None = "none", e.Both = "both", e.Horizontal = "horizontal", e.Vertical = "vertical", e))(B || {});
|
|
7
|
+
const f = {
|
|
8
8
|
none: "resize-none",
|
|
9
9
|
both: "resize",
|
|
10
10
|
horizontal: "resize-x",
|
|
11
11
|
vertical: "resize-y"
|
|
12
|
-
},
|
|
12
|
+
}, $ = (e) => typeof e == "boolean" ? f[
|
|
13
13
|
e ? "both" : "none"
|
|
14
14
|
/* None */
|
|
15
|
-
] :
|
|
15
|
+
] : f[e], V = ({
|
|
16
16
|
className: e = "",
|
|
17
|
-
value:
|
|
18
|
-
onChange:
|
|
19
|
-
error:
|
|
20
|
-
containerClassName:
|
|
21
|
-
resize:
|
|
22
|
-
labelProps:
|
|
23
|
-
caption:
|
|
24
|
-
id:
|
|
25
|
-
invalid:
|
|
17
|
+
value: x,
|
|
18
|
+
onChange: p,
|
|
19
|
+
error: t,
|
|
20
|
+
containerClassName: v,
|
|
21
|
+
resize: u = !1,
|
|
22
|
+
labelProps: o,
|
|
23
|
+
caption: r,
|
|
24
|
+
id: b,
|
|
25
|
+
invalid: n,
|
|
26
|
+
"aria-describedby": h,
|
|
27
|
+
"aria-invalid": N,
|
|
26
28
|
...l
|
|
27
29
|
}) => {
|
|
28
|
-
const
|
|
30
|
+
const g = I(), i = b ?? g, s = t ? `${i}-error` : void 0, d = !t && r ? `${i}-caption` : void 0, C = m(
|
|
29
31
|
"dial-kit-textarea dial-kit-input px-3 py-2",
|
|
30
|
-
|
|
32
|
+
n && "dial-kit-input-error",
|
|
31
33
|
l.disabled && "dial-kit-input-disable",
|
|
32
|
-
|
|
34
|
+
$(u),
|
|
33
35
|
e
|
|
34
36
|
);
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
-
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */
|
|
37
|
+
return /* @__PURE__ */ c("div", { className: m("flex flex-col gap-2", v), children: [
|
|
38
|
+
o && /* @__PURE__ */ a(j, { ...o, htmlFor: i }),
|
|
39
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col gap-1", children: [
|
|
40
|
+
/* @__PURE__ */ a(
|
|
39
41
|
"textarea",
|
|
40
42
|
{
|
|
41
|
-
id:
|
|
42
|
-
value:
|
|
43
|
-
className:
|
|
44
|
-
onChange: (
|
|
43
|
+
id: i,
|
|
44
|
+
value: x || "",
|
|
45
|
+
className: C,
|
|
46
|
+
onChange: (y) => p?.(y.currentTarget.value),
|
|
47
|
+
"aria-describedby": [h, s, d].filter(Boolean).join(" ") || void 0,
|
|
48
|
+
"aria-invalid": N ?? (t || n ? !0 : void 0),
|
|
45
49
|
...l
|
|
46
50
|
}
|
|
47
51
|
),
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
!
|
|
52
|
+
/* @__PURE__ */ a(k, { id: s, text: t }),
|
|
53
|
+
!t && /* @__PURE__ */ a(z, { id: d, text: r })
|
|
50
54
|
] })
|
|
51
55
|
] });
|
|
52
56
|
};
|
|
53
57
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
58
|
+
V as Textarea,
|
|
59
|
+
B as TextareaResize
|
|
56
60
|
};
|
|
@@ -1,118 +1,113 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { ConfirmationPopup as
|
|
1
|
+
import { jsxs as _, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as g, useId as b, useCallback as f, useEffect as Q } from "react";
|
|
3
|
+
import { ConfirmationPopup as w } from "../ConfirmationPopup/ConfirmationPopup.js";
|
|
4
4
|
import { ProgressBar as U } from "../../ProgressBar/ProgressBar.js";
|
|
5
|
-
import { DIAL_KIT_CLASS as
|
|
6
|
-
import { ConfirmationPopupVariant as
|
|
7
|
-
import { ElementSize as
|
|
8
|
-
import { TransferQueueItemStatus as
|
|
9
|
-
import { mergeClasses as
|
|
10
|
-
import { DEFAULT_TRANSFER_QUEUE_LABELS as
|
|
11
|
-
import { TransferQueueHeader as
|
|
12
|
-
import { TransferQueueRow as
|
|
13
|
-
const
|
|
5
|
+
import { DIAL_KIT_CLASS as D } from "../../../constants/public-class-names.js";
|
|
6
|
+
import { ConfirmationPopupVariant as F } from "../../../types/confirmation-popup.js";
|
|
7
|
+
import { ElementSize as R } from "../../../types/size.js";
|
|
8
|
+
import { TransferQueueItemStatus as t } from "../../../types/transfer-queue.js";
|
|
9
|
+
import { mergeClasses as C } from "../../../utils/merge-classes.js";
|
|
10
|
+
import { DEFAULT_TRANSFER_QUEUE_LABELS as N, TRANSFER_QUEUE_AUTO_CLOSE_DELAY_MS as O } from "./constants.js";
|
|
11
|
+
import { TransferQueueHeader as y } from "./TransferQueueHeader.js";
|
|
12
|
+
import { TransferQueueRow as M } from "./TransferQueueRow.js";
|
|
13
|
+
const j = (n) => Math.round(
|
|
14
14
|
n.reduce(
|
|
15
|
-
(e,
|
|
15
|
+
(e, o) => e + (o.percent ?? (o.status === t.InProgress ? 0 : 100)),
|
|
16
16
|
0
|
|
17
17
|
) / n.length
|
|
18
|
-
),
|
|
18
|
+
), q = (n, e) => n ? e.closeConfirmDescriptionMixed : e.closeConfirmDescriptionInProgress, $ = ({
|
|
19
19
|
title: n,
|
|
20
20
|
items: e,
|
|
21
|
-
onClose:
|
|
22
|
-
onCancelItem:
|
|
23
|
-
labels:
|
|
24
|
-
autoCloseDelay:
|
|
25
|
-
className:
|
|
26
|
-
bodyClassName:
|
|
21
|
+
onClose: o,
|
|
22
|
+
onCancelItem: h,
|
|
23
|
+
labels: T,
|
|
24
|
+
autoCloseDelay: l = O,
|
|
25
|
+
className: E,
|
|
26
|
+
bodyClassName: S
|
|
27
27
|
}) => {
|
|
28
|
-
const [
|
|
29
|
-
(
|
|
30
|
-
).length,
|
|
31
|
-
(
|
|
32
|
-
)
|
|
33
|
-
|
|
34
|
-
}, [
|
|
35
|
-
|
|
36
|
-
}, [
|
|
37
|
-
|
|
28
|
+
const [i, v] = g(!1), [x, c] = g(!1), m = b(), s = { ...N, ...T }, p = e.filter(
|
|
29
|
+
(r) => r.status === t.InProgress
|
|
30
|
+
).length, u = p > 0, I = e.some(
|
|
31
|
+
(r) => r.status === t.Failed
|
|
32
|
+
), d = e.length > 0 && e.every((r) => r.status === t.Success), L = f(() => {
|
|
33
|
+
u ? c(!0) : o();
|
|
34
|
+
}, [u, o]), P = f(() => {
|
|
35
|
+
c(!1), o();
|
|
36
|
+
}, [o]), A = f(() => {
|
|
37
|
+
v((r) => !r);
|
|
38
38
|
}, []);
|
|
39
|
-
return
|
|
40
|
-
if (!
|
|
41
|
-
const
|
|
42
|
-
return () => clearTimeout(
|
|
43
|
-
}, [
|
|
39
|
+
return Q(() => {
|
|
40
|
+
if (!d || l <= 0) return;
|
|
41
|
+
const r = setTimeout(o, l);
|
|
42
|
+
return () => clearTimeout(r);
|
|
43
|
+
}, [d, l, o]), e.length === 0 ? null : /* @__PURE__ */ _(
|
|
44
44
|
"div",
|
|
45
45
|
{
|
|
46
46
|
role: "status",
|
|
47
47
|
"aria-live": "polite",
|
|
48
|
-
className:
|
|
48
|
+
className: C(
|
|
49
49
|
"w-[370px] max-w-[calc(100vw-2rem)] rounded-xl bg-layer-raised shadow-md",
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
E,
|
|
51
|
+
D.transferQueue
|
|
52
52
|
),
|
|
53
53
|
children: [
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
|
|
54
|
+
/* @__PURE__ */ a(
|
|
55
|
+
y,
|
|
56
56
|
{
|
|
57
57
|
title: n,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
itemsId: p,
|
|
58
|
+
isCollapsed: i,
|
|
59
|
+
itemsId: m,
|
|
61
60
|
labels: s,
|
|
62
|
-
onToggleCollapse:
|
|
63
|
-
onClose:
|
|
61
|
+
onToggleCollapse: A,
|
|
62
|
+
onClose: L
|
|
64
63
|
}
|
|
65
64
|
),
|
|
66
|
-
|
|
65
|
+
i && u && /*
|
|
67
66
|
* Only while collapsed: expanded, every running row already shows its
|
|
68
67
|
* own spinner, so an aggregate bar would restate what is on screen.
|
|
69
68
|
*/
|
|
70
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ a(
|
|
71
70
|
U,
|
|
72
71
|
{
|
|
73
|
-
value:
|
|
74
|
-
size:
|
|
72
|
+
value: j(e),
|
|
73
|
+
size: R.Small,
|
|
75
74
|
"aria-label": s.queueProgressAriaLabel,
|
|
76
75
|
"aria-valuetext": s.queueProgressValueText(
|
|
77
|
-
e.length -
|
|
76
|
+
e.length - p,
|
|
78
77
|
e.length
|
|
79
78
|
)
|
|
80
79
|
}
|
|
81
80
|
),
|
|
82
|
-
!
|
|
81
|
+
!i && /* @__PURE__ */ a(
|
|
83
82
|
"div",
|
|
84
83
|
{
|
|
85
|
-
id:
|
|
86
|
-
className:
|
|
84
|
+
id: m,
|
|
85
|
+
className: C(
|
|
87
86
|
"flex max-h-[40vh] flex-col overflow-y-auto py-1",
|
|
88
|
-
|
|
87
|
+
S
|
|
89
88
|
),
|
|
90
|
-
children: e.map((
|
|
91
|
-
|
|
89
|
+
children: e.map((r) => /* @__PURE__ */ a(
|
|
90
|
+
M,
|
|
92
91
|
{
|
|
93
|
-
item:
|
|
92
|
+
item: r,
|
|
94
93
|
labels: s,
|
|
95
|
-
onCancel:
|
|
94
|
+
onCancel: h
|
|
96
95
|
},
|
|
97
|
-
|
|
96
|
+
r.id
|
|
98
97
|
))
|
|
99
98
|
}
|
|
100
99
|
),
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
|
|
100
|
+
/* @__PURE__ */ a(
|
|
101
|
+
w,
|
|
103
102
|
{
|
|
104
|
-
open:
|
|
103
|
+
open: x,
|
|
105
104
|
header: s.closeConfirmHeader,
|
|
106
|
-
description:
|
|
107
|
-
a,
|
|
108
|
-
u,
|
|
109
|
-
s
|
|
110
|
-
),
|
|
105
|
+
description: q(I, s),
|
|
111
106
|
confirmLabel: s.closeConfirmLabel,
|
|
112
107
|
cancelLabel: s.closeCancelLabel,
|
|
113
|
-
variant:
|
|
114
|
-
onConfirm:
|
|
115
|
-
onClose: () =>
|
|
108
|
+
variant: F.Danger,
|
|
109
|
+
onConfirm: P,
|
|
110
|
+
onClose: () => c(!1)
|
|
116
111
|
}
|
|
117
112
|
)
|
|
118
113
|
]
|
|
@@ -120,5 +115,5 @@ const q = (n) => Math.round(
|
|
|
120
115
|
);
|
|
121
116
|
};
|
|
122
117
|
export {
|
|
123
|
-
|
|
118
|
+
$ as TransferQueue
|
|
124
119
|
};
|
|
@@ -1,71 +1,63 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { IconChevronUp as
|
|
3
|
-
import { GhostIconButton as
|
|
4
|
-
import { DIAL_KIT_ICON_STROKE as
|
|
5
|
-
import { DIAL_ICON_SIZE as
|
|
6
|
-
import { ElementSize as
|
|
7
|
-
import { STATUS_SLOT_CLASS as
|
|
8
|
-
const
|
|
9
|
-
title:
|
|
10
|
-
failedCount: n,
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { IconChevronUp as S, IconChevronDown as f, IconX as h } from "@tabler/icons-react";
|
|
3
|
+
import { GhostIconButton as i } from "../IconButton/IconButtonWrappers.js";
|
|
4
|
+
import { DIAL_KIT_ICON_STROKE as t } from "../constants/icon.js";
|
|
5
|
+
import { DIAL_ICON_SIZE as n } from "../../../constants/icon.js";
|
|
6
|
+
import { ElementSize as s } from "../../../types/size.js";
|
|
7
|
+
import { STATUS_SLOT_CLASS as m } from "./constants.js";
|
|
8
|
+
const y = ({
|
|
9
|
+
title: c,
|
|
11
10
|
isCollapsed: r,
|
|
12
|
-
itemsId:
|
|
11
|
+
itemsId: l,
|
|
13
12
|
labels: a,
|
|
14
13
|
onToggleCollapse: d,
|
|
15
|
-
onClose:
|
|
14
|
+
onClose: p
|
|
16
15
|
}) => {
|
|
17
|
-
const
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
|
|
21
|
-
n > 0 && /*
|
|
22
|
-
* On the filled --bg-control-error swatch, so it takes the on-control
|
|
23
|
-
* token; --text-tertiary would contrast at under 2:1 over that fill.
|
|
24
|
-
*/
|
|
25
|
-
/* @__PURE__ */ e("span", { className: "dial-small-paragraph-semi-text inline-flex h-4 min-w-4 shrink-0 items-center justify-center rounded-full bg-control-error px-1 text-control-permanent", children: n })
|
|
26
|
-
] }),
|
|
27
|
-
/* @__PURE__ */ i("div", { className: "flex shrink-0 items-center gap-1", children: [
|
|
16
|
+
const x = r ? S : f;
|
|
17
|
+
return /* @__PURE__ */ o("div", { className: "mx-4 flex items-center justify-between border-b border-tertiary py-3", children: [
|
|
18
|
+
/* @__PURE__ */ e("span", { className: "dial-small-paragraph-semi-text min-w-0 truncate text-primary", children: c }),
|
|
19
|
+
/* @__PURE__ */ o("div", { className: "flex shrink-0 items-center gap-1", children: [
|
|
28
20
|
/* @__PURE__ */ e(
|
|
29
|
-
|
|
21
|
+
i,
|
|
30
22
|
{
|
|
31
23
|
"aria-label": r ? a.expandAriaLabel : a.collapseAriaLabel,
|
|
32
24
|
"aria-expanded": !r,
|
|
33
|
-
"aria-controls":
|
|
34
|
-
size:
|
|
25
|
+
"aria-controls": l,
|
|
26
|
+
size: s.Small,
|
|
35
27
|
icon: /* @__PURE__ */ e(
|
|
36
|
-
|
|
28
|
+
x,
|
|
37
29
|
{
|
|
38
|
-
size:
|
|
39
|
-
stroke:
|
|
30
|
+
size: n.SM,
|
|
31
|
+
stroke: t,
|
|
40
32
|
className: "text-secondary",
|
|
41
33
|
"aria-hidden": !0
|
|
42
34
|
}
|
|
43
35
|
),
|
|
44
36
|
onClick: d,
|
|
45
|
-
className:
|
|
37
|
+
className: m
|
|
46
38
|
}
|
|
47
39
|
),
|
|
48
40
|
/* @__PURE__ */ e(
|
|
49
|
-
|
|
41
|
+
i,
|
|
50
42
|
{
|
|
51
43
|
"aria-label": a.closeAriaLabel,
|
|
52
|
-
size:
|
|
44
|
+
size: s.Small,
|
|
53
45
|
icon: /* @__PURE__ */ e(
|
|
54
|
-
|
|
46
|
+
h,
|
|
55
47
|
{
|
|
56
|
-
size:
|
|
57
|
-
stroke:
|
|
48
|
+
size: n.SM,
|
|
49
|
+
stroke: t,
|
|
58
50
|
className: "text-secondary",
|
|
59
51
|
"aria-hidden": !0
|
|
60
52
|
}
|
|
61
53
|
),
|
|
62
|
-
onClick:
|
|
63
|
-
className:
|
|
54
|
+
onClick: p,
|
|
55
|
+
className: m
|
|
64
56
|
}
|
|
65
57
|
)
|
|
66
58
|
] })
|
|
67
59
|
] });
|
|
68
60
|
};
|
|
69
61
|
export {
|
|
70
|
-
|
|
62
|
+
y as TransferQueueHeader
|
|
71
63
|
};
|