@activecollab/components 2.0.569 → 2.0.571
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/dist/cjs/components/Autocomplete/Autocomplete.js +1 -1
- package/dist/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
- package/dist/cjs/components/Autocomplete/Styles.js +1 -1
- package/dist/cjs/components/Autocomplete/Styles.js.map +1 -1
- package/dist/cjs/components/Chip/ChipGroupStyles.js +1 -1
- package/dist/cjs/components/Chip/ChipGroupStyles.js.map +1 -1
- package/dist/cjs/components/Chip/Styles.js +2 -2
- package/dist/cjs/components/Chip/Styles.js.map +1 -1
- package/dist/cjs/components/Dialog/Styles.js +1 -1
- package/dist/cjs/components/Dialog/Styles.js.map +1 -1
- package/dist/cjs/components/GlobalStyle.js +1 -1
- package/dist/cjs/components/GlobalStyle.js.map +1 -1
- package/dist/cjs/components/Icons/collection/ArrowUpCircle.js +61 -0
- package/dist/cjs/components/Icons/collection/ArrowUpCircle.js.map +1 -0
- package/dist/cjs/components/Icons/collection/Storage.js +61 -0
- package/dist/cjs/components/Icons/collection/Storage.js.map +1 -0
- package/dist/cjs/components/Icons/collection/index.js +14 -0
- package/dist/cjs/components/Icons/collection/index.js.map +1 -1
- package/dist/cjs/components/IdentityMark/Styles.js +7 -0
- package/dist/cjs/components/IdentityMark/Styles.js.map +1 -1
- package/dist/cjs/components/ListSection/Styles.js +1 -1
- package/dist/cjs/components/ListSection/Styles.js.map +1 -1
- package/dist/cjs/components/Menu/Menu.js +3 -0
- package/dist/cjs/components/Menu/Menu.js.map +1 -1
- package/dist/cjs/components/NoteCard/NoteCard.js +23 -18
- package/dist/cjs/components/NoteCard/NoteCard.js.map +1 -1
- package/dist/cjs/components/NoteCard/Styles.js +62 -49
- package/dist/cjs/components/NoteCard/Styles.js.map +1 -1
- package/dist/cjs/components/NotebookCard/NotebookCard.js +45 -0
- package/dist/cjs/components/NotebookCard/NotebookCard.js.map +1 -0
- package/dist/cjs/components/NotebookCard/Styles.js +49 -0
- package/dist/cjs/components/NotebookCard/Styles.js.map +1 -0
- package/dist/cjs/components/NotebookCard/index.js +17 -0
- package/dist/cjs/components/NotebookCard/index.js.map +1 -0
- package/dist/cjs/components/ObjectFormModal/Styles.js +2 -2
- package/dist/cjs/components/ObjectFormModal/Styles.js.map +1 -1
- package/dist/cjs/components/PillButton/PillButton.js +5 -2
- package/dist/cjs/components/PillButton/PillButton.js.map +1 -1
- package/dist/cjs/components/PillButton/Styles.js +8 -2
- package/dist/cjs/components/PillButton/Styles.js.map +1 -1
- package/dist/cjs/components/PillGroup/PillGroup.js.map +1 -1
- package/dist/cjs/components/PillGroup/Styles.js +4 -1
- package/dist/cjs/components/PillGroup/Styles.js.map +1 -1
- package/dist/cjs/components/Popper/Popper.js +18 -1
- package/dist/cjs/components/Popper/Popper.js.map +1 -1
- package/dist/cjs/components/PresenceCapsule/PresenceCapsule.js +11 -8
- package/dist/cjs/components/PresenceCapsule/PresenceCapsule.js.map +1 -1
- package/dist/cjs/components/PresenceCapsule/Styles.js +7 -8
- package/dist/cjs/components/PresenceCapsule/Styles.js.map +1 -1
- package/dist/cjs/components/PropertyList/PropertyListPopover.js +3 -0
- package/dist/cjs/components/PropertyList/PropertyListPopover.js.map +1 -1
- package/dist/cjs/components/PropertyList/Styles.js +1 -1
- package/dist/cjs/components/PropertyList/Styles.js.map +1 -1
- package/dist/cjs/components/Select/Select.js +4 -2
- package/dist/cjs/components/Select/Select.js.map +1 -1
- package/dist/cjs/components/Sheet/Sheet.js +5 -2
- package/dist/cjs/components/Sheet/Sheet.js.map +1 -1
- package/dist/cjs/components/Sheet/Styles.js +19 -14
- package/dist/cjs/components/Sheet/Styles.js.map +1 -1
- package/dist/cjs/components/SwatchPalette/swatchPalette.js +1 -1
- package/dist/cjs/components/SwatchPalette/swatchPalette.js.map +1 -1
- package/dist/cjs/components/SwatchPalette/swatchPalette.test.js +1 -1
- package/dist/cjs/components/SwatchPalette/swatchPalette.test.js.map +1 -1
- package/dist/cjs/components/ToastMessage/Styles.js +6 -6
- package/dist/cjs/components/ToastMessage/Styles.js.map +1 -1
- package/dist/cjs/components/Tooltip/Tooltip.js +5 -0
- package/dist/cjs/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/cjs/components/ViewSwitcher/Styles.js +62 -22
- package/dist/cjs/components/ViewSwitcher/Styles.js.map +1 -1
- package/dist/cjs/components/ViewSwitcher/ViewSwitcher.js +149 -153
- package/dist/cjs/components/ViewSwitcher/ViewSwitcher.js.map +1 -1
- package/dist/cjs/components/ViewSwitcher/index.js +0 -11
- package/dist/cjs/components/ViewSwitcher/index.js.map +1 -1
- package/dist/cjs/components/index.js +12 -0
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/presentation/invoicing/invoiceObjectList.js +2 -4
- package/dist/cjs/presentation/invoicing/invoiceObjectList.js.map +1 -1
- package/dist/cjs/presentation/shared/ActivityFeed.js +3 -5
- package/dist/cjs/presentation/shared/ActivityFeed.js.map +1 -1
- package/dist/cjs/presentation/shared/PageViewSwitcher.js +5 -10
- package/dist/cjs/presentation/shared/PageViewSwitcher.js.map +1 -1
- package/dist/cjs/presentation/shared/TaskListSettingsDialog.js +3 -2
- package/dist/cjs/presentation/shared/TaskListSettingsDialog.js.map +1 -1
- package/dist/cjs/presentation/shared/headers.js +4 -8
- package/dist/cjs/presentation/shared/headers.js.map +1 -1
- package/dist/cjs/presentation/shared/systemSettingsDialog.js +13 -8
- package/dist/cjs/presentation/shared/systemSettingsDialog.js.map +1 -1
- package/dist/esm/components/Autocomplete/Autocomplete.js +1 -1
- package/dist/esm/components/Autocomplete/Autocomplete.js.map +1 -1
- package/dist/esm/components/Autocomplete/Styles.js +1 -1
- package/dist/esm/components/Autocomplete/Styles.js.map +1 -1
- package/dist/esm/components/Chip/ChipGroupStyles.js +2 -2
- package/dist/esm/components/Chip/ChipGroupStyles.js.map +1 -1
- package/dist/esm/components/Chip/Styles.d.ts +5 -0
- package/dist/esm/components/Chip/Styles.d.ts.map +1 -1
- package/dist/esm/components/Chip/Styles.js +1 -1
- package/dist/esm/components/Chip/Styles.js.map +1 -1
- package/dist/esm/components/Dialog/Styles.js +1 -1
- package/dist/esm/components/Dialog/Styles.js.map +1 -1
- package/dist/esm/components/GlobalStyle.d.ts.map +1 -1
- package/dist/esm/components/GlobalStyle.js +1 -1
- package/dist/esm/components/GlobalStyle.js.map +1 -1
- package/dist/esm/components/Icons/collection/ArrowUpCircle.d.ts +32 -0
- package/dist/esm/components/Icons/collection/ArrowUpCircle.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/ArrowUpCircle.js +54 -0
- package/dist/esm/components/Icons/collection/ArrowUpCircle.js.map +1 -0
- package/dist/esm/components/Icons/collection/Storage.d.ts +32 -0
- package/dist/esm/components/Icons/collection/Storage.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/Storage.js +54 -0
- package/dist/esm/components/Icons/collection/Storage.js.map +1 -0
- package/dist/esm/components/Icons/collection/index.d.ts +2 -0
- package/dist/esm/components/Icons/collection/index.d.ts.map +1 -1
- package/dist/esm/components/Icons/collection/index.js +2 -0
- package/dist/esm/components/Icons/collection/index.js.map +1 -1
- package/dist/esm/components/IdentityMark/Styles.d.ts +1 -1
- package/dist/esm/components/IdentityMark/Styles.d.ts.map +1 -1
- package/dist/esm/components/IdentityMark/Styles.js +7 -0
- package/dist/esm/components/IdentityMark/Styles.js.map +1 -1
- package/dist/esm/components/ListSection/Styles.js +1 -1
- package/dist/esm/components/ListSection/Styles.js.map +1 -1
- package/dist/esm/components/Menu/Menu.d.ts +2 -0
- package/dist/esm/components/Menu/Menu.d.ts.map +1 -1
- package/dist/esm/components/Menu/Menu.js +3 -0
- package/dist/esm/components/Menu/Menu.js.map +1 -1
- package/dist/esm/components/NoteCard/NoteCard.d.ts +13 -7
- package/dist/esm/components/NoteCard/NoteCard.d.ts.map +1 -1
- package/dist/esm/components/NoteCard/NoteCard.js +24 -19
- package/dist/esm/components/NoteCard/NoteCard.js.map +1 -1
- package/dist/esm/components/NoteCard/Styles.d.ts +7 -6
- package/dist/esm/components/NoteCard/Styles.d.ts.map +1 -1
- package/dist/esm/components/NoteCard/Styles.js +59 -48
- package/dist/esm/components/NoteCard/Styles.js.map +1 -1
- package/dist/esm/components/NotebookCard/NotebookCard.d.ts +21 -0
- package/dist/esm/components/NotebookCard/NotebookCard.d.ts.map +1 -0
- package/dist/esm/components/NotebookCard/NotebookCard.js +35 -0
- package/dist/esm/components/NotebookCard/NotebookCard.js.map +1 -0
- package/dist/esm/components/NotebookCard/Styles.d.ts +11 -0
- package/dist/esm/components/NotebookCard/Styles.d.ts.map +1 -0
- package/dist/esm/components/NotebookCard/Styles.js +42 -0
- package/dist/esm/components/NotebookCard/Styles.js.map +1 -0
- package/dist/esm/components/NotebookCard/index.d.ts +2 -0
- package/dist/esm/components/NotebookCard/index.d.ts.map +1 -0
- package/dist/esm/components/NotebookCard/index.js +2 -0
- package/dist/esm/components/NotebookCard/index.js.map +1 -0
- package/dist/esm/components/ObjectFormModal/Styles.js +2 -2
- package/dist/esm/components/ObjectFormModal/Styles.js.map +1 -1
- package/dist/esm/components/PillButton/PillButton.d.ts +5 -3
- package/dist/esm/components/PillButton/PillButton.d.ts.map +1 -1
- package/dist/esm/components/PillButton/PillButton.js +5 -2
- package/dist/esm/components/PillButton/PillButton.js.map +1 -1
- package/dist/esm/components/PillButton/Styles.d.ts.map +1 -1
- package/dist/esm/components/PillButton/Styles.js +5 -1
- package/dist/esm/components/PillButton/Styles.js.map +1 -1
- package/dist/esm/components/PillGroup/PillGroup.d.ts +2 -2
- package/dist/esm/components/PillGroup/PillGroup.d.ts.map +1 -1
- package/dist/esm/components/PillGroup/PillGroup.js.map +1 -1
- package/dist/esm/components/PillGroup/Styles.d.ts.map +1 -1
- package/dist/esm/components/PillGroup/Styles.js +2 -1
- package/dist/esm/components/PillGroup/Styles.js.map +1 -1
- package/dist/esm/components/Popper/Popper.d.ts +2 -0
- package/dist/esm/components/Popper/Popper.d.ts.map +1 -1
- package/dist/esm/components/Popper/Popper.js +16 -1
- package/dist/esm/components/Popper/Popper.js.map +1 -1
- package/dist/esm/components/PresenceCapsule/PresenceCapsule.d.ts +2 -2
- package/dist/esm/components/PresenceCapsule/PresenceCapsule.d.ts.map +1 -1
- package/dist/esm/components/PresenceCapsule/PresenceCapsule.js +11 -8
- package/dist/esm/components/PresenceCapsule/PresenceCapsule.js.map +1 -1
- package/dist/esm/components/PresenceCapsule/Styles.d.ts +1 -3
- package/dist/esm/components/PresenceCapsule/Styles.d.ts.map +1 -1
- package/dist/esm/components/PresenceCapsule/Styles.js +6 -5
- package/dist/esm/components/PresenceCapsule/Styles.js.map +1 -1
- package/dist/esm/components/PropertyList/PropertyListPopover.d.ts +3 -1
- package/dist/esm/components/PropertyList/PropertyListPopover.d.ts.map +1 -1
- package/dist/esm/components/PropertyList/PropertyListPopover.js +3 -0
- package/dist/esm/components/PropertyList/PropertyListPopover.js.map +1 -1
- package/dist/esm/components/PropertyList/Styles.js +1 -1
- package/dist/esm/components/PropertyList/Styles.js.map +1 -1
- package/dist/esm/components/Select/Select.d.ts +2 -0
- package/dist/esm/components/Select/Select.d.ts.map +1 -1
- package/dist/esm/components/Select/Select.js +4 -2
- package/dist/esm/components/Select/Select.js.map +1 -1
- package/dist/esm/components/Sheet/Sheet.d.ts +2 -0
- package/dist/esm/components/Sheet/Sheet.d.ts.map +1 -1
- package/dist/esm/components/Sheet/Sheet.js +6 -3
- package/dist/esm/components/Sheet/Sheet.js.map +1 -1
- package/dist/esm/components/Sheet/Styles.d.ts +1 -0
- package/dist/esm/components/Sheet/Styles.d.ts.map +1 -1
- package/dist/esm/components/Sheet/Styles.js +17 -12
- package/dist/esm/components/Sheet/Styles.js.map +1 -1
- package/dist/esm/components/SwatchPalette/swatchPalette.d.ts +1 -1
- package/dist/esm/components/SwatchPalette/swatchPalette.d.ts.map +1 -1
- package/dist/esm/components/SwatchPalette/swatchPalette.js +1 -1
- package/dist/esm/components/SwatchPalette/swatchPalette.js.map +1 -1
- package/dist/esm/components/SwatchPalette/swatchPalette.test.js +1 -1
- package/dist/esm/components/SwatchPalette/swatchPalette.test.js.map +1 -1
- package/dist/esm/components/ToastMessage/Styles.d.ts.map +1 -1
- package/dist/esm/components/ToastMessage/Styles.js +3 -3
- package/dist/esm/components/ToastMessage/Styles.js.map +1 -1
- package/dist/esm/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/esm/components/Tooltip/Tooltip.js +5 -0
- package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/components/ViewSwitcher/Styles.d.ts +13 -3
- package/dist/esm/components/ViewSwitcher/Styles.d.ts.map +1 -1
- package/dist/esm/components/ViewSwitcher/Styles.js +60 -20
- package/dist/esm/components/ViewSwitcher/Styles.js.map +1 -1
- package/dist/esm/components/ViewSwitcher/ViewSwitcher.d.ts +13 -13
- package/dist/esm/components/ViewSwitcher/ViewSwitcher.d.ts.map +1 -1
- package/dist/esm/components/ViewSwitcher/ViewSwitcher.js +138 -147
- package/dist/esm/components/ViewSwitcher/ViewSwitcher.js.map +1 -1
- package/dist/esm/components/ViewSwitcher/index.d.ts +0 -1
- package/dist/esm/components/ViewSwitcher/index.d.ts.map +1 -1
- package/dist/esm/components/ViewSwitcher/index.js +0 -1
- package/dist/esm/components/ViewSwitcher/index.js.map +1 -1
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/presentation/invoicing/invoiceObjectList.d.ts.map +1 -1
- package/dist/esm/presentation/invoicing/invoiceObjectList.js +2 -4
- package/dist/esm/presentation/invoicing/invoiceObjectList.js.map +1 -1
- package/dist/esm/presentation/shared/ActivityFeed.d.ts.map +1 -1
- package/dist/esm/presentation/shared/ActivityFeed.js +3 -5
- package/dist/esm/presentation/shared/ActivityFeed.js.map +1 -1
- package/dist/esm/presentation/shared/PageViewSwitcher.d.ts.map +1 -1
- package/dist/esm/presentation/shared/PageViewSwitcher.js +5 -10
- package/dist/esm/presentation/shared/PageViewSwitcher.js.map +1 -1
- package/dist/esm/presentation/shared/TaskListSettingsDialog.d.ts.map +1 -1
- package/dist/esm/presentation/shared/TaskListSettingsDialog.js +3 -2
- package/dist/esm/presentation/shared/TaskListSettingsDialog.js.map +1 -1
- package/dist/esm/presentation/shared/headers.d.ts.map +1 -1
- package/dist/esm/presentation/shared/headers.js +4 -8
- package/dist/esm/presentation/shared/headers.js.map +1 -1
- package/dist/esm/presentation/shared/systemSettingsDialog.d.ts +22 -1
- package/dist/esm/presentation/shared/systemSettingsDialog.d.ts.map +1 -1
- package/dist/esm/presentation/shared/systemSettingsDialog.js +12 -7
- package/dist/esm/presentation/shared/systemSettingsDialog.js.map +1 -1
- package/dist/index.js +1229 -1052
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/components/ViewSwitcher/ViewIllustration.js +0 -127
- package/dist/cjs/components/ViewSwitcher/ViewIllustration.js.map +0 -1
- package/dist/esm/components/ViewSwitcher/ViewIllustration.d.ts +0 -20
- package/dist/esm/components/ViewSwitcher/ViewIllustration.d.ts.map +0 -1
- package/dist/esm/components/ViewSwitcher/ViewIllustration.js +0 -91
- package/dist/esm/components/ViewSwitcher/ViewIllustration.js.map +0 -1
|
@@ -1,36 +1,18 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
-
const _excluded = ["views", "value", "onChange", "aria-label", "onApplyToAll", "applyToAllLabel", "offerTitle", "className", "onKeyDown", "onBlur"];
|
|
3
|
+
const _excluded = ["views", "value", "onChange", "aria-label", "onApplyToAll", "applyToAllLabel", "applyToAllTitle", "offerTitle", "dismissLabel", "appliedLabel", "className", "onKeyDown", "onBlur"];
|
|
4
4
|
import React, { forwardRef, useCallback, useEffect, useId, useRef, useState } from "react";
|
|
5
5
|
import classnames from "classnames";
|
|
6
|
-
import { StyledViewSwitcher,
|
|
7
|
-
import { Portal, useLayerContext } from "../../helpers";
|
|
8
|
-
import { layers } from "../../utils";
|
|
6
|
+
import { StyledViewSwitcher, StyledViewSwitcherAction, StyledViewSwitcherApplied, StyledViewSwitcherDismiss, StyledViewSwitcherLine, StyledViewSwitcherOption, StyledViewSwitcherOptions, StyledViewSwitcherPrompt, StyledViewSwitcherPromptClip, StyledViewSwitcherPromptPill, StyledViewSwitcherPromptTitle, StyledViewSwitcherTrack, VIEW_SWITCHER_APPLIED_MS, VIEW_SWITCHER_LEAVE_MS, VIEW_SWITCHER_PROMPT_DELAY_MS, VIEW_SWITCHER_PROMPT_MS } from "./Styles";
|
|
9
7
|
import useForkRef from "../../utils/useForkRef";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { Body2, Caption1 } from "../Typography";
|
|
13
|
-
import { ViewIllustration } from "./ViewIllustration";
|
|
14
|
-
const POPOVER_MODIFIERS = [{
|
|
15
|
-
name: "offset",
|
|
16
|
-
options: {
|
|
17
|
-
offset: [0, 6]
|
|
18
|
-
}
|
|
19
|
-
}];
|
|
20
|
-
const TABBABLE = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
21
|
-
const matchesFocusVisible = element => {
|
|
22
|
-
try {
|
|
23
|
-
return element.matches(":focus-visible");
|
|
24
|
-
} catch (_unused) {
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
|
|
8
|
+
import { CheckIcon, CloseSmallIcon } from "../Icons";
|
|
9
|
+
import { Tooltip } from "../Tooltip";
|
|
29
10
|
/**
|
|
30
11
|
* @component ViewSwitcher
|
|
31
12
|
* @description
|
|
32
|
-
* Icon-only radiogroup that switches the view of a page. A
|
|
33
|
-
*
|
|
13
|
+
* Icon-only radiogroup that switches the view of a page. A tooltip shows the view name on hover.
|
|
14
|
+
* With onApplyToAll, a switch or a click on the checked view opens a compact extra action beside the buttons
|
|
15
|
+
* after a short delay, for five seconds.
|
|
34
16
|
*
|
|
35
17
|
* @example
|
|
36
18
|
* <ViewSwitcher
|
|
@@ -53,28 +35,37 @@ export const ViewSwitcher = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
53
35
|
ariaLabel = _ref$ariaLabel === void 0 ? "View" : _ref$ariaLabel,
|
|
54
36
|
onApplyToAll = _ref.onApplyToAll,
|
|
55
37
|
_ref$applyToAllLabel = _ref.applyToAllLabel,
|
|
56
|
-
applyToAllLabel = _ref$applyToAllLabel === void 0 ? "
|
|
38
|
+
applyToAllLabel = _ref$applyToAllLabel === void 0 ? "All Projects" : _ref$applyToAllLabel,
|
|
39
|
+
_ref$applyToAllTitle = _ref.applyToAllTitle,
|
|
40
|
+
applyToAllTitle = _ref$applyToAllTitle === void 0 ? "Apply to All Projects" : _ref$applyToAllTitle,
|
|
57
41
|
offerTitle = _ref.offerTitle,
|
|
42
|
+
_ref$dismissLabel = _ref.dismissLabel,
|
|
43
|
+
dismissLabel = _ref$dismissLabel === void 0 ? "Dismiss" : _ref$dismissLabel,
|
|
44
|
+
_ref$appliedLabel = _ref.appliedLabel,
|
|
45
|
+
appliedLabel = _ref$appliedLabel === void 0 ? "Applied" : _ref$appliedLabel,
|
|
58
46
|
className = _ref.className,
|
|
59
47
|
onKeyDown = _ref.onKeyDown,
|
|
60
48
|
onBlur = _ref.onBlur,
|
|
61
49
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
62
|
-
const _useLayerContext = useLayerContext(),
|
|
63
|
-
_useLayerContext$zInd = _useLayerContext.zIndex,
|
|
64
|
-
zIndex = _useLayerContext$zInd === void 0 ? layers.skyscraper : _useLayerContext$zInd;
|
|
65
50
|
const rootRef = useRef(null);
|
|
66
51
|
const handleRootRef = useForkRef(rootRef, ref);
|
|
67
|
-
const trackRef = useRef(null);
|
|
68
52
|
const optionRefs = useRef({});
|
|
69
|
-
const
|
|
70
|
-
const offerActionRef = useRef(null);
|
|
53
|
+
const promptRef = useRef(null);
|
|
71
54
|
const _useState = useState(null),
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
const _useState2 = useState(
|
|
75
|
-
|
|
76
|
-
|
|
55
|
+
offerId = _useState[0],
|
|
56
|
+
setOfferId = _useState[1];
|
|
57
|
+
const _useState2 = useState("waiting"),
|
|
58
|
+
offerPhase = _useState2[0],
|
|
59
|
+
setOfferPhase = _useState2[1];
|
|
60
|
+
const _useState3 = useState(false),
|
|
61
|
+
isConfirmed = _useState3[0],
|
|
62
|
+
setIsConfirmed = _useState3[1];
|
|
77
63
|
const offerTitleId = useId();
|
|
64
|
+
const offerIdRef = useRef(offerId);
|
|
65
|
+
const offerPhaseRef = useRef(offerPhase);
|
|
66
|
+
const restoreFocusRef = useRef(false);
|
|
67
|
+
offerIdRef.current = offerId;
|
|
68
|
+
offerPhaseRef.current = offerPhase;
|
|
78
69
|
const checkedIndex = views.findIndex(_ref2 => {
|
|
79
70
|
let id = _ref2.id;
|
|
80
71
|
return id === value;
|
|
@@ -84,25 +75,28 @@ export const ViewSwitcher = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
84
75
|
let id = _ref3.id;
|
|
85
76
|
return id === offerId;
|
|
86
77
|
});
|
|
87
|
-
const previewView = offerView ? undefined : views.find(_ref4 => {
|
|
88
|
-
let id = _ref4.id;
|
|
89
|
-
return id === previewId;
|
|
90
|
-
});
|
|
91
78
|
const select = useCallback(id => {
|
|
79
|
+
// A click on the checked view also offers the extra action.
|
|
92
80
|
if (id === value) {
|
|
81
|
+
const isOfferUp = offerIdRef.current && ["open", "applying", "applied"].includes(offerPhaseRef.current);
|
|
82
|
+
if (onApplyToAll && !isOfferUp) {
|
|
83
|
+
setOfferPhase("waiting");
|
|
84
|
+
setIsConfirmed(false);
|
|
85
|
+
setOfferId(id);
|
|
86
|
+
}
|
|
93
87
|
return;
|
|
94
88
|
}
|
|
95
89
|
onChange(id);
|
|
96
|
-
setPreviewId(null);
|
|
97
90
|
if (onApplyToAll) {
|
|
91
|
+
// An open prompt stays for the next switch, and only a new one waits.
|
|
92
|
+
setOfferPhase(phase => offerIdRef.current && phase === "open" ? "open" : "waiting");
|
|
93
|
+
setIsConfirmed(false);
|
|
98
94
|
setOfferId(id);
|
|
99
95
|
}
|
|
100
96
|
}, [onApplyToAll, onChange, value]);
|
|
101
|
-
|
|
102
|
-
// The popovers live in a portal, so "inside" covers them as well as the track.
|
|
103
97
|
const isInside = node => {
|
|
104
|
-
var _rootRef$current
|
|
105
|
-
return Boolean(node && ((
|
|
98
|
+
var _rootRef$current;
|
|
99
|
+
return Boolean(node && ((_rootRef$current = rootRef.current) == null ? void 0 : _rootRef$current.contains(node)));
|
|
106
100
|
};
|
|
107
101
|
const focusChecked = useCallback(() => {
|
|
108
102
|
if (tabStopId) {
|
|
@@ -110,18 +104,48 @@ export const ViewSwitcher = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
110
104
|
(_optionRefs$current$t = optionRefs.current[tabStopId]) == null || _optionRefs$current$t.focus();
|
|
111
105
|
}
|
|
112
106
|
}, [tabStopId]);
|
|
107
|
+
const leave = useCallback(() => {
|
|
108
|
+
var _promptRef$current;
|
|
109
|
+
restoreFocusRef.current = Boolean((_promptRef$current = promptRef.current) == null ? void 0 : _promptRef$current.contains(document.activeElement));
|
|
110
|
+
if (offerPhaseRef.current === "waiting") {
|
|
111
|
+
setOfferId(null);
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
setOfferPhase("leaving");
|
|
115
|
+
}, []);
|
|
116
|
+
useEffect(() => {
|
|
117
|
+
if (!offerId && restoreFocusRef.current) {
|
|
118
|
+
restoreFocusRef.current = false;
|
|
119
|
+
focusChecked();
|
|
120
|
+
}
|
|
121
|
+
}, [focusChecked, offerId]);
|
|
122
|
+
useEffect(() => {
|
|
123
|
+
if (!offerId || offerPhase === "applying") {
|
|
124
|
+
return undefined;
|
|
125
|
+
}
|
|
126
|
+
if (offerPhase === "waiting") {
|
|
127
|
+
const timer = setTimeout(() => setOfferPhase("open"), VIEW_SWITCHER_PROMPT_DELAY_MS);
|
|
128
|
+
return () => clearTimeout(timer);
|
|
129
|
+
}
|
|
130
|
+
if (offerPhase === "leaving") {
|
|
131
|
+
const timer = setTimeout(() => setOfferId(null), VIEW_SWITCHER_LEAVE_MS);
|
|
132
|
+
return () => clearTimeout(timer);
|
|
133
|
+
}
|
|
134
|
+
const timer = setTimeout(leave, offerPhase === "applied" ? VIEW_SWITCHER_APPLIED_MS : VIEW_SWITCHER_PROMPT_MS);
|
|
135
|
+
return () => clearTimeout(timer);
|
|
136
|
+
}, [leave, offerId, offerPhase]);
|
|
113
137
|
useEffect(() => {
|
|
114
138
|
if (!offerId) {
|
|
115
139
|
return undefined;
|
|
116
140
|
}
|
|
117
|
-
const
|
|
141
|
+
const leaveOutside = event => {
|
|
118
142
|
if (!isInside(event.target)) {
|
|
119
|
-
|
|
143
|
+
leave();
|
|
120
144
|
}
|
|
121
145
|
};
|
|
122
|
-
document.addEventListener("mousedown",
|
|
123
|
-
return () => document.removeEventListener("mousedown",
|
|
124
|
-
}, [offerId]);
|
|
146
|
+
document.addEventListener("mousedown", leaveOutside);
|
|
147
|
+
return () => document.removeEventListener("mousedown", leaveOutside);
|
|
148
|
+
}, [leave, offerId]);
|
|
125
149
|
const handleOptionKeyDown = (event, index) => {
|
|
126
150
|
var _optionRefs$current$i;
|
|
127
151
|
const last = views.length - 1;
|
|
@@ -133,11 +157,6 @@ export const ViewSwitcher = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
133
157
|
Home: 0,
|
|
134
158
|
End: last
|
|
135
159
|
};
|
|
136
|
-
if (event.key === "Tab" && !event.shiftKey && offerActionRef.current) {
|
|
137
|
-
event.preventDefault();
|
|
138
|
-
offerActionRef.current.focus();
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
160
|
const target = targets[event.key];
|
|
142
161
|
if (target === undefined) {
|
|
143
162
|
return;
|
|
@@ -149,53 +168,46 @@ export const ViewSwitcher = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
149
168
|
};
|
|
150
169
|
const handleRootKeyDown = event => {
|
|
151
170
|
onKeyDown == null || onKeyDown(event);
|
|
152
|
-
if (event.key !== "Escape" || !offerId
|
|
171
|
+
if (event.key !== "Escape" || !offerId) {
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
if (offerPhase === "waiting") {
|
|
175
|
+
leave();
|
|
153
176
|
return;
|
|
154
177
|
}
|
|
155
178
|
|
|
156
179
|
// A native dialog around the switcher would take an Escape that is not prevented as its own close request.
|
|
157
180
|
event.preventDefault();
|
|
158
181
|
event.stopPropagation();
|
|
159
|
-
|
|
160
|
-
if (offerId) {
|
|
161
|
-
setOfferId(null);
|
|
162
|
-
focusChecked();
|
|
163
|
-
}
|
|
182
|
+
leave();
|
|
164
183
|
};
|
|
165
184
|
const handleRootBlur = event => {
|
|
166
185
|
onBlur == null || onBlur(event);
|
|
167
186
|
const next = event.relatedTarget;
|
|
168
|
-
if (next && !isInside(next)) {
|
|
169
|
-
|
|
187
|
+
if (offerId && next && !isInside(next)) {
|
|
188
|
+
leave();
|
|
170
189
|
}
|
|
171
190
|
};
|
|
172
|
-
const
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
176
|
-
event.preventDefault();
|
|
177
|
-
if (event.shiftKey) {
|
|
178
|
-
focusChecked();
|
|
191
|
+
const applyToAll = async () => {
|
|
192
|
+
var _promptRef$current2;
|
|
193
|
+
if (!offerId || !onApplyToAll || offerPhase !== "open") {
|
|
179
194
|
return;
|
|
180
195
|
}
|
|
196
|
+
let isApplied = false;
|
|
181
197
|
|
|
182
|
-
// The
|
|
183
|
-
|
|
184
|
-
if (next) {
|
|
185
|
-
next.focus();
|
|
186
|
-
} else {
|
|
198
|
+
// The action hides while it confirms, so the focus goes back to the views now.
|
|
199
|
+
if ((_promptRef$current2 = promptRef.current) != null && _promptRef$current2.contains(document.activeElement)) {
|
|
187
200
|
focusChecked();
|
|
188
|
-
setOfferId(null);
|
|
189
201
|
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
202
|
+
setOfferPhase("applying");
|
|
203
|
+
try {
|
|
204
|
+
isApplied = (await onApplyToAll(offerId)) !== false;
|
|
205
|
+
} finally {
|
|
206
|
+
if (offerIdRef.current === offerId) {
|
|
207
|
+
setIsConfirmed(isApplied);
|
|
208
|
+
setOfferPhase(isApplied ? "applied" : "leaving");
|
|
209
|
+
}
|
|
194
210
|
}
|
|
195
|
-
const id = offerId;
|
|
196
|
-
focusChecked();
|
|
197
|
-
setOfferId(null);
|
|
198
|
-
await onApplyToAll(id);
|
|
199
211
|
};
|
|
200
212
|
return /*#__PURE__*/React.createElement(StyledViewSwitcher, _extends({
|
|
201
213
|
ref: handleRootRef,
|
|
@@ -203,14 +215,48 @@ export const ViewSwitcher = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
203
215
|
onKeyDown: handleRootKeyDown,
|
|
204
216
|
onBlur: handleRootBlur
|
|
205
217
|
}, rest), /*#__PURE__*/React.createElement(StyledViewSwitcherTrack, {
|
|
206
|
-
ref: trackRef,
|
|
207
|
-
role: "radiogroup",
|
|
208
|
-
"aria-label": ariaLabel,
|
|
209
218
|
className: "c-view-switcher__track"
|
|
219
|
+
}, offerView && offerPhase !== "waiting" ? /*#__PURE__*/React.createElement(StyledViewSwitcherPrompt, {
|
|
220
|
+
ref: promptRef,
|
|
221
|
+
role: "group",
|
|
222
|
+
"aria-labelledby": offerTitleId,
|
|
223
|
+
className: "c-view-switcher__prompt",
|
|
224
|
+
"data-phase": offerPhase,
|
|
225
|
+
"data-confirmed": isConfirmed || undefined
|
|
226
|
+
}, /*#__PURE__*/React.createElement(StyledViewSwitcherPromptTitle, {
|
|
227
|
+
id: offerTitleId
|
|
228
|
+
}, offerTitle ? offerTitle(offerView) : "Now in " + offerView.label), /*#__PURE__*/React.createElement(StyledViewSwitcherPromptClip, null, /*#__PURE__*/React.createElement(StyledViewSwitcherPromptPill, {
|
|
229
|
+
className: "c-view-switcher__prompt-pill"
|
|
230
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
231
|
+
title: applyToAllTitle,
|
|
232
|
+
placement: "bottom"
|
|
233
|
+
}, /*#__PURE__*/React.createElement(StyledViewSwitcherAction, {
|
|
234
|
+
type: "button",
|
|
235
|
+
"aria-label": applyToAllTitle,
|
|
236
|
+
className: "c-view-switcher__action",
|
|
237
|
+
onClick: applyToAll
|
|
238
|
+
}, /*#__PURE__*/React.createElement(CheckIcon, null), applyToAllLabel)), /*#__PURE__*/React.createElement(StyledViewSwitcherLine, {
|
|
239
|
+
className: "c-view-switcher__line"
|
|
240
|
+
}), /*#__PURE__*/React.createElement(Tooltip, {
|
|
241
|
+
title: dismissLabel,
|
|
242
|
+
placement: "bottom"
|
|
243
|
+
}, /*#__PURE__*/React.createElement(StyledViewSwitcherDismiss, {
|
|
244
|
+
type: "button",
|
|
245
|
+
"aria-label": dismissLabel,
|
|
246
|
+
className: "c-view-switcher__dismiss",
|
|
247
|
+
onClick: leave
|
|
248
|
+
}, /*#__PURE__*/React.createElement(CloseSmallIcon, null))), isConfirmed ? /*#__PURE__*/React.createElement(StyledViewSwitcherApplied, {
|
|
249
|
+
role: "status"
|
|
250
|
+
}, /*#__PURE__*/React.createElement(CheckIcon, null), appliedLabel) : null))) : null, /*#__PURE__*/React.createElement(StyledViewSwitcherOptions, {
|
|
251
|
+
role: "radiogroup",
|
|
252
|
+
"aria-label": ariaLabel
|
|
210
253
|
}, views.map((view, index) => {
|
|
211
254
|
const checked = view.id === value;
|
|
212
|
-
return /*#__PURE__*/React.createElement(
|
|
255
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
213
256
|
key: view.id,
|
|
257
|
+
title: view.label,
|
|
258
|
+
placement: "bottom"
|
|
259
|
+
}, /*#__PURE__*/React.createElement(StyledViewSwitcherOption, {
|
|
214
260
|
ref: node => {
|
|
215
261
|
optionRefs.current[view.id] = node;
|
|
216
262
|
},
|
|
@@ -221,64 +267,9 @@ export const ViewSwitcher = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
221
267
|
tabIndex: view.id === tabStopId ? 0 : -1,
|
|
222
268
|
className: "c-view-switcher__option",
|
|
223
269
|
onClick: () => select(view.id),
|
|
224
|
-
onKeyDown: event => handleOptionKeyDown(event, index)
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
onFocus: event => {
|
|
228
|
-
if (matchesFocusVisible(event.currentTarget)) {
|
|
229
|
-
setPreviewId(view.id);
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
onBlur: () => setPreviewId(null)
|
|
233
|
-
}, view.icon);
|
|
234
|
-
})), previewView ? /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(Popper, {
|
|
235
|
-
anchorEl: optionRefs.current[previewView.id],
|
|
236
|
-
open: true,
|
|
237
|
-
placement: "bottom",
|
|
238
|
-
strategy: "fixed",
|
|
239
|
-
modifiers: POPOVER_MODIFIERS,
|
|
240
|
-
style: {
|
|
241
|
-
zIndex
|
|
242
|
-
},
|
|
243
|
-
"aria-hidden": "true"
|
|
244
|
-
}, /*#__PURE__*/React.createElement(StyledViewSwitcherPreview, {
|
|
245
|
-
className: "c-view-switcher__preview"
|
|
246
|
-
}, previewView.preview ? /*#__PURE__*/React.createElement(StyledViewSwitcherThumbnail, null, previewView.preview) : previewView.illustration ? /*#__PURE__*/React.createElement(StyledViewSwitcherThumbnail, null, /*#__PURE__*/React.createElement(ViewIllustration, {
|
|
247
|
-
type: previewView.illustration
|
|
248
|
-
})) : null, /*#__PURE__*/React.createElement(Caption1, {
|
|
249
|
-
weight: "bold",
|
|
250
|
-
color: "primary"
|
|
251
|
-
}, previewView.label), previewView.description ? /*#__PURE__*/React.createElement(Caption1, {
|
|
252
|
-
color: "tertiary"
|
|
253
|
-
}, previewView.description) : null))) : null, offerView ? /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(Popper, {
|
|
254
|
-
anchorEl: trackRef.current,
|
|
255
|
-
open: true,
|
|
256
|
-
placement: "bottom",
|
|
257
|
-
strategy: "fixed",
|
|
258
|
-
modifiers: POPOVER_MODIFIERS,
|
|
259
|
-
style: {
|
|
260
|
-
zIndex
|
|
261
|
-
}
|
|
262
|
-
}, /*#__PURE__*/React.createElement(StyledViewSwitcherOffer, {
|
|
263
|
-
ref: offerRef,
|
|
264
|
-
role: "group",
|
|
265
|
-
"aria-labelledby": offerTitleId,
|
|
266
|
-
className: "c-view-switcher__offer"
|
|
267
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
268
|
-
className: "c-view-switcher__offer-title"
|
|
269
|
-
}, offerView.icon, /*#__PURE__*/React.createElement(Body2, {
|
|
270
|
-
id: offerTitleId,
|
|
271
|
-
weight: "bold",
|
|
272
|
-
color: "primary"
|
|
273
|
-
}, offerTitle ? offerTitle(offerView) : "Now in " + offerView.label)), /*#__PURE__*/React.createElement(Button, {
|
|
274
|
-
type: "button",
|
|
275
|
-
variant: "secondary",
|
|
276
|
-
size: "small",
|
|
277
|
-
ref: offerActionRef,
|
|
278
|
-
className: "c-view-switcher__offer-action",
|
|
279
|
-
onClick: applyToAll,
|
|
280
|
-
onKeyDown: handleOfferActionKeyDown
|
|
281
|
-
}, /*#__PURE__*/React.createElement(Caption1, null, applyToAllLabel))))) : null);
|
|
270
|
+
onKeyDown: event => handleOptionKeyDown(event, index)
|
|
271
|
+
}, view.icon));
|
|
272
|
+
}))));
|
|
282
273
|
});
|
|
283
274
|
ViewSwitcher.displayName = "ViewSwitcher";
|
|
284
275
|
//# sourceMappingURL=ViewSwitcher.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewSwitcher.js","names":["React","forwardRef","useCallback","useEffect","useId","useRef","useState","classnames","StyledViewSwitcher","StyledViewSwitcherOffer","StyledViewSwitcherOption","StyledViewSwitcherPreview","StyledViewSwitcherThumbnail","StyledViewSwitcherTrack","Portal","useLayerContext","layers","useForkRef","Button","Popper","Body2","Caption1","ViewIllustration","POPOVER_MODIFIERS","name","options","offset","TABBABLE","matchesFocusVisible","element","matches","_unused","ViewSwitcher","_ref","ref","_views","views","value","onChange","_ref$ariaLabel","ariaLabel","onApplyToAll","_ref$applyToAllLabel","applyToAllLabel","offerTitle","className","onKeyDown","onBlur","rest","_objectWithoutPropertiesLoose","_excluded","_useLayerContext","_useLayerContext$zInd","zIndex","skyscraper","rootRef","handleRootRef","trackRef","optionRefs","offerRef","offerActionRef","_useState","previewId","setPreviewId","_useState2","offerId","setOfferId","offerTitleId","checkedIndex","findIndex","_ref2","id","tabStopId","offerView","find","_ref3","previewView","undefined","_ref4","select","isInside","node","_rootRef$current","_offerRef$current","Boolean","current","contains","focusChecked","_optionRefs$current$t","focus","closeOutside","event","target","document","addEventListener","removeEventListener","handleOptionKeyDown","index","_optionRefs$current$i","last","length","targets","ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End","key","shiftKey","preventDefault","handleRootKeyDown","stopPropagation","handleRootBlur","next","relatedTarget","handleOfferActionKeyDown","Array","from","querySelectorAll","compareDocumentPosition","Node","DOCUMENT_POSITION_FOLLOWING","applyToAll","createElement","_extends","role","map","view","checked","type","label","tabIndex","onClick","onMouseEnter","onMouseLeave","onFocus","currentTarget","icon","anchorEl","open","placement","strategy","modifiers","style","preview","illustration","weight","color","description","variant","size","displayName"],"sources":["../../../../src/components/ViewSwitcher/ViewSwitcher.tsx"],"sourcesContent":["import React, {\n FocusEvent,\n forwardRef,\n HTMLAttributes,\n KeyboardEvent,\n ReactNode,\n useCallback,\n useEffect,\n useId,\n useRef,\n useState,\n} from \"react\";\n\nimport classnames from \"classnames\";\n\nimport {\n StyledViewSwitcher,\n StyledViewSwitcherOffer,\n StyledViewSwitcherOption,\n StyledViewSwitcherPreview,\n StyledViewSwitcherThumbnail,\n StyledViewSwitcherTrack,\n} from \"./Styles\";\nimport { Portal, useLayerContext } from \"../../helpers\";\nimport { layers } from \"../../utils\";\nimport useForkRef from \"../../utils/useForkRef\";\nimport { Button } from \"../Button\";\nimport { Popper, PopperModifier } from \"../Popper\";\nimport { Body2, Caption1 } from \"../Typography\";\nimport { ViewIllustration, ViewIllustrationType } from \"./ViewIllustration\";\n\nexport interface ViewSwitcherView {\n id: string;\n /** View name: the radio's accessible name and the preview title. */\n label: string;\n /** DS icon element. */\n icon: ReactNode;\n /** Second line of the preview. */\n description?: string;\n /** Thumbnail drawn above the preview title. */\n preview?: ReactNode;\n /** Built-in thumbnail of this kind of view, used when there is no preview. */\n illustration?: ViewIllustrationType;\n}\n\nexport interface ViewSwitcherProps\n extends Omit<HTMLAttributes<HTMLDivElement>, \"onChange\"> {\n views: ViewSwitcherView[];\n /** Id of the checked view. */\n value?: string;\n onChange: (id: string) => void;\n /** Accessible name of the radiogroup. */\n \"aria-label\"?: string;\n /** Turns on the extra action offered after a switch. */\n onApplyToAll?: (id: string) => unknown;\n /** Extra action button text. */\n applyToAllLabel?: string;\n /** Title of the extra action popover. Defaults to \"Now in {label}\". */\n offerTitle?: (view: ViewSwitcherView) => ReactNode;\n}\n\nconst POPOVER_MODIFIERS: PopperModifier[] = [\n { name: \"offset\", options: { offset: [0, 6] } },\n];\nconst TABBABLE =\n 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])';\n\nconst matchesFocusVisible = (element: Element): boolean => {\n try {\n return element.matches(\":focus-visible\");\n } catch {\n return false;\n }\n};\n\n/**\n * @component ViewSwitcher\n * @description\n * Icon-only radiogroup that switches the view of a page. A preview with the view name shows on hover\n * and on keyboard focus. With onApplyToAll, a switch offers an extra action under the switcher.\n *\n * @example\n * <ViewSwitcher\n * aria-label=\"View\"\n * views={[\n * { id: \"list\", label: \"List View\", icon: <ViewListIcon /> },\n * { id: \"grid\", label: \"Grid View\", icon: <ViewGridIcon /> },\n * ]}\n * value={view}\n * onChange={setView}\n * onApplyToAll={applyToAllProjects}\n * />\n */\nexport const ViewSwitcher = forwardRef<HTMLDivElement, ViewSwitcherProps>(\n (\n {\n views,\n value,\n onChange,\n \"aria-label\": ariaLabel = \"View\",\n onApplyToAll,\n applyToAllLabel = \"Apply to All Projects\",\n offerTitle,\n className,\n onKeyDown,\n onBlur,\n ...rest\n },\n ref\n ) => {\n const { zIndex = layers.skyscraper } = useLayerContext();\n const rootRef = useRef<HTMLDivElement | null>(null);\n const handleRootRef = useForkRef(rootRef, ref);\n const trackRef = useRef<HTMLDivElement | null>(null);\n const optionRefs = useRef<Record<string, HTMLButtonElement | null>>({});\n const offerRef = useRef<HTMLDivElement | null>(null);\n const offerActionRef = useRef<HTMLButtonElement | null>(null);\n const [previewId, setPreviewId] = useState<string | null>(null);\n const [offerId, setOfferId] = useState<string | null>(null);\n const offerTitleId = useId();\n\n const checkedIndex = views.findIndex(({ id }) => id === value);\n const tabStopId = views[checkedIndex >= 0 ? checkedIndex : 0]?.id;\n const offerView = views.find(({ id }) => id === offerId);\n const previewView = offerView\n ? undefined\n : views.find(({ id }) => id === previewId);\n\n const select = useCallback(\n (id: string) => {\n if (id === value) {\n return;\n }\n\n onChange(id);\n setPreviewId(null);\n\n if (onApplyToAll) {\n setOfferId(id);\n }\n },\n [onApplyToAll, onChange, value]\n );\n\n // The popovers live in a portal, so \"inside\" covers them as well as the track.\n const isInside = (node: Node | null): boolean =>\n Boolean(\n node &&\n (rootRef.current?.contains(node) || offerRef.current?.contains(node))\n );\n\n const focusChecked = useCallback(() => {\n if (tabStopId) {\n optionRefs.current[tabStopId]?.focus();\n }\n }, [tabStopId]);\n\n useEffect(() => {\n if (!offerId) {\n return undefined;\n }\n\n const closeOutside = (event: MouseEvent): void => {\n if (!isInside(event.target as Node)) {\n setOfferId(null);\n }\n };\n\n document.addEventListener(\"mousedown\", closeOutside);\n\n return () => document.removeEventListener(\"mousedown\", closeOutside);\n }, [offerId]);\n\n const handleOptionKeyDown = (\n event: KeyboardEvent<HTMLButtonElement>,\n index: number\n ): void => {\n const last = views.length - 1;\n const targets: Record<string, number> = {\n ArrowRight: index === last ? 0 : index + 1,\n ArrowDown: index === last ? 0 : index + 1,\n ArrowLeft: index === 0 ? last : index - 1,\n ArrowUp: index === 0 ? last : index - 1,\n Home: 0,\n End: last,\n };\n if (event.key === \"Tab\" && !event.shiftKey && offerActionRef.current) {\n event.preventDefault();\n offerActionRef.current.focus();\n\n return;\n }\n\n const target = targets[event.key];\n\n if (target === undefined) {\n return;\n }\n\n event.preventDefault();\n\n const { id } = views[target];\n\n optionRefs.current[id]?.focus();\n select(id);\n };\n\n const handleRootKeyDown = (event: KeyboardEvent<HTMLDivElement>): void => {\n onKeyDown?.(event);\n\n if (event.key !== \"Escape\" || (!offerId && !previewId)) {\n return;\n }\n\n // A native dialog around the switcher would take an Escape that is not prevented as its own close request.\n event.preventDefault();\n event.stopPropagation();\n setPreviewId(null);\n\n if (offerId) {\n setOfferId(null);\n focusChecked();\n }\n };\n\n const handleRootBlur = (event: FocusEvent<HTMLDivElement>): void => {\n onBlur?.(event);\n\n const next = event.relatedTarget as Node | null;\n\n if (next && !isInside(next)) {\n setOfferId(null);\n }\n };\n\n const handleOfferActionKeyDown = (\n event: KeyboardEvent<HTMLButtonElement>\n ): void => {\n if (event.key !== \"Tab\") {\n return;\n }\n\n event.preventDefault();\n\n if (event.shiftKey) {\n focusChecked();\n\n return;\n }\n\n // The offer sits in a portal, so Tab goes on from the switcher in the page.\n const next = Array.from(\n document.querySelectorAll<HTMLElement>(TABBABLE)\n ).find(\n (element) =>\n !isInside(element) &&\n Boolean(\n rootRef.current &&\n rootRef.current.compareDocumentPosition(element) &\n Node.DOCUMENT_POSITION_FOLLOWING\n )\n );\n\n if (next) {\n next.focus();\n } else {\n focusChecked();\n setOfferId(null);\n }\n };\n\n const applyToAll = async (): Promise<void> => {\n if (!offerId || !onApplyToAll) {\n return;\n }\n\n const id = offerId;\n\n focusChecked();\n setOfferId(null);\n\n await onApplyToAll(id);\n };\n\n return (\n <StyledViewSwitcher\n ref={handleRootRef}\n className={classnames(\"c-view-switcher\", className)}\n onKeyDown={handleRootKeyDown}\n onBlur={handleRootBlur}\n {...rest}\n >\n <StyledViewSwitcherTrack\n ref={trackRef}\n role=\"radiogroup\"\n aria-label={ariaLabel}\n className=\"c-view-switcher__track\"\n >\n {views.map((view, index) => {\n const checked = view.id === value;\n\n return (\n <StyledViewSwitcherOption\n key={view.id}\n ref={(node: HTMLButtonElement | null) => {\n optionRefs.current[view.id] = node;\n }}\n type=\"button\"\n role=\"radio\"\n aria-checked={checked}\n aria-label={view.label}\n tabIndex={view.id === tabStopId ? 0 : -1}\n className=\"c-view-switcher__option\"\n onClick={() => select(view.id)}\n onKeyDown={(event: KeyboardEvent<HTMLButtonElement>) =>\n handleOptionKeyDown(event, index)\n }\n onMouseEnter={() => setPreviewId(view.id)}\n onMouseLeave={() => setPreviewId(null)}\n onFocus={(event: FocusEvent<HTMLButtonElement>) => {\n if (matchesFocusVisible(event.currentTarget)) {\n setPreviewId(view.id);\n }\n }}\n onBlur={() => setPreviewId(null)}\n >\n {view.icon}\n </StyledViewSwitcherOption>\n );\n })}\n </StyledViewSwitcherTrack>\n {previewView ? (\n <Portal>\n <Popper\n anchorEl={optionRefs.current[previewView.id]}\n open\n placement=\"bottom\"\n strategy=\"fixed\"\n modifiers={POPOVER_MODIFIERS}\n style={{ zIndex }}\n aria-hidden=\"true\"\n >\n <StyledViewSwitcherPreview className=\"c-view-switcher__preview\">\n {previewView.preview ? (\n <StyledViewSwitcherThumbnail>\n {previewView.preview}\n </StyledViewSwitcherThumbnail>\n ) : previewView.illustration ? (\n <StyledViewSwitcherThumbnail>\n <ViewIllustration type={previewView.illustration} />\n </StyledViewSwitcherThumbnail>\n ) : null}\n <Caption1 weight=\"bold\" color=\"primary\">\n {previewView.label}\n </Caption1>\n {previewView.description ? (\n <Caption1 color=\"tertiary\">\n {previewView.description}\n </Caption1>\n ) : null}\n </StyledViewSwitcherPreview>\n </Popper>\n </Portal>\n ) : null}\n {offerView ? (\n <Portal>\n <Popper\n anchorEl={trackRef.current}\n open\n placement=\"bottom\"\n strategy=\"fixed\"\n modifiers={POPOVER_MODIFIERS}\n style={{ zIndex }}\n >\n <StyledViewSwitcherOffer\n ref={offerRef}\n role=\"group\"\n aria-labelledby={offerTitleId}\n className=\"c-view-switcher__offer\"\n >\n <div className=\"c-view-switcher__offer-title\">\n {offerView.icon}\n <Body2 id={offerTitleId} weight=\"bold\" color=\"primary\">\n {offerTitle\n ? offerTitle(offerView)\n : `Now in ${offerView.label}`}\n </Body2>\n </div>\n <Button\n type=\"button\"\n variant=\"secondary\"\n size=\"small\"\n ref={offerActionRef}\n className=\"c-view-switcher__offer-action\"\n onClick={applyToAll}\n onKeyDown={handleOfferActionKeyDown}\n >\n <Caption1>{applyToAllLabel}</Caption1>\n </Button>\n </StyledViewSwitcherOffer>\n </Popper>\n </Portal>\n ) : null}\n </StyledViewSwitcher>\n );\n }\n);\n\nViewSwitcher.displayName = \"ViewSwitcher\";\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAEVC,UAAU,EAIVC,WAAW,EACXC,SAAS,EACTC,KAAK,EACLC,MAAM,EACNC,QAAQ,QACH,OAAO;AAEd,OAAOC,UAAU,MAAM,YAAY;AAEnC,SACEC,kBAAkB,EAClBC,uBAAuB,EACvBC,wBAAwB,EACxBC,yBAAyB,EACzBC,2BAA2B,EAC3BC,uBAAuB,QAClB,UAAU;AACjB,SAASC,MAAM,EAAEC,eAAe,QAAQ,eAAe;AACvD,SAASC,MAAM,QAAQ,aAAa;AACpC,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,MAAM,QAAwB,WAAW;AAClD,SAASC,KAAK,EAAEC,QAAQ,QAAQ,eAAe;AAC/C,SAASC,gBAAgB,QAA8B,oBAAoB;AAgC3E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,OAAO;IACZrH,GAAG,EAAE0B,cAAe;IACpBf,SAAS,EAAC,+BAA+B;IACzCwF,OAAO,EAAEV,UAAW;IACpB7E,SAAS,EAAEsE;EAAyB,gBAEpCpH,KAAA,CAAA4H,aAAA,CAACvG,QAAQ,QAAEsB,eAA0B,CAC/B,CACe,CACnB,CACF,CAAC,GACP,IACc,CAAC;AAEzB,CACF,CAAC;AAEDX,YAAY,CAACwH,WAAW,GAAG,cAAc","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"ViewSwitcher.js","names":["React","forwardRef","useCallback","useEffect","useId","useRef","useState","classnames","StyledViewSwitcher","StyledViewSwitcherAction","StyledViewSwitcherApplied","StyledViewSwitcherDismiss","StyledViewSwitcherLine","StyledViewSwitcherOption","StyledViewSwitcherOptions","StyledViewSwitcherPrompt","StyledViewSwitcherPromptClip","StyledViewSwitcherPromptPill","StyledViewSwitcherPromptTitle","StyledViewSwitcherTrack","VIEW_SWITCHER_APPLIED_MS","VIEW_SWITCHER_LEAVE_MS","VIEW_SWITCHER_PROMPT_DELAY_MS","VIEW_SWITCHER_PROMPT_MS","useForkRef","CheckIcon","CloseSmallIcon","Tooltip","ViewSwitcher","_ref","ref","_views","views","value","onChange","_ref$ariaLabel","ariaLabel","onApplyToAll","_ref$applyToAllLabel","applyToAllLabel","_ref$applyToAllTitle","applyToAllTitle","offerTitle","_ref$dismissLabel","dismissLabel","_ref$appliedLabel","appliedLabel","className","onKeyDown","onBlur","rest","_objectWithoutPropertiesLoose","_excluded","rootRef","handleRootRef","optionRefs","promptRef","_useState","offerId","setOfferId","_useState2","offerPhase","setOfferPhase","_useState3","isConfirmed","setIsConfirmed","offerTitleId","offerIdRef","offerPhaseRef","restoreFocusRef","current","checkedIndex","findIndex","_ref2","id","tabStopId","offerView","find","_ref3","select","isOfferUp","includes","phase","isInside","node","_rootRef$current","Boolean","contains","focusChecked","_optionRefs$current$t","focus","leave","_promptRef$current","document","activeElement","undefined","timer","setTimeout","clearTimeout","leaveOutside","event","target","addEventListener","removeEventListener","handleOptionKeyDown","index","_optionRefs$current$i","last","length","targets","ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End","key","preventDefault","handleRootKeyDown","stopPropagation","handleRootBlur","next","relatedTarget","applyToAll","_promptRef$current2","isApplied","createElement","_extends","role","label","title","placement","type","onClick","map","view","checked","tabIndex","icon","displayName"],"sources":["../../../../src/components/ViewSwitcher/ViewSwitcher.tsx"],"sourcesContent":["import React, {\n FocusEvent,\n forwardRef,\n HTMLAttributes,\n KeyboardEvent,\n ReactNode,\n useCallback,\n useEffect,\n useId,\n useRef,\n useState,\n} from \"react\";\n\nimport classnames from \"classnames\";\n\nimport {\n StyledViewSwitcher,\n StyledViewSwitcherAction,\n StyledViewSwitcherApplied,\n StyledViewSwitcherDismiss,\n StyledViewSwitcherLine,\n StyledViewSwitcherOption,\n StyledViewSwitcherOptions,\n StyledViewSwitcherPrompt,\n StyledViewSwitcherPromptClip,\n StyledViewSwitcherPromptPill,\n StyledViewSwitcherPromptTitle,\n StyledViewSwitcherTrack,\n VIEW_SWITCHER_APPLIED_MS,\n VIEW_SWITCHER_LEAVE_MS,\n VIEW_SWITCHER_PROMPT_DELAY_MS,\n VIEW_SWITCHER_PROMPT_MS,\n} from \"./Styles\";\nimport useForkRef from \"../../utils/useForkRef\";\nimport { CheckIcon, CloseSmallIcon } from \"../Icons\";\nimport { Tooltip } from \"../Tooltip\";\n\nexport interface ViewSwitcherView {\n id: string;\n /** View name: the radio's accessible name and its tooltip. */\n label: string;\n /** DS icon element. */\n icon: ReactNode;\n}\n\nexport interface ViewSwitcherProps\n extends Omit<HTMLAttributes<HTMLDivElement>, \"onChange\"> {\n views: ViewSwitcherView[];\n /** Id of the checked view. */\n value?: string;\n onChange: (id: string) => void;\n /** Accessible name of the radiogroup. */\n \"aria-label\"?: string;\n /** Turns on the extra action offered after a switch. A result of false shows no confirmation. */\n onApplyToAll?: (id: string) => unknown;\n /** Short visible text of the extra action. */\n applyToAllLabel?: string;\n /** Tooltip and accessible name of the extra action. */\n applyToAllTitle?: string;\n /** Accessible name of the extra action group. Defaults to \"Now in {label}\". */\n offerTitle?: (view: ViewSwitcherView) => ReactNode;\n /** Accessible name of the button that dismisses the extra action. */\n dismissLabel?: string;\n /** Text that confirms the extra action. */\n appliedLabel?: string;\n}\n\n/**\n * @component ViewSwitcher\n * @description\n * Icon-only radiogroup that switches the view of a page. A tooltip shows the view name on hover.\n * With onApplyToAll, a switch or a click on the checked view opens a compact extra action beside the buttons\n * after a short delay, for five seconds.\n *\n * @example\n * <ViewSwitcher\n * aria-label=\"View\"\n * views={[\n * { id: \"list\", label: \"List View\", icon: <ViewListIcon /> },\n * { id: \"grid\", label: \"Grid View\", icon: <ViewGridIcon /> },\n * ]}\n * value={view}\n * onChange={setView}\n * onApplyToAll={applyToAllProjects}\n * />\n */\nexport const ViewSwitcher = forwardRef<HTMLDivElement, ViewSwitcherProps>(\n (\n {\n views,\n value,\n onChange,\n \"aria-label\": ariaLabel = \"View\",\n onApplyToAll,\n applyToAllLabel = \"All Projects\",\n applyToAllTitle = \"Apply to All Projects\",\n offerTitle,\n dismissLabel = \"Dismiss\",\n appliedLabel = \"Applied\",\n className,\n onKeyDown,\n onBlur,\n ...rest\n },\n ref\n ) => {\n const rootRef = useRef<HTMLDivElement | null>(null);\n const handleRootRef = useForkRef(rootRef, ref);\n const optionRefs = useRef<Record<string, HTMLButtonElement | null>>({});\n const promptRef = useRef<HTMLDivElement | null>(null);\n const [offerId, setOfferId] = useState<string | null>(null);\n const [offerPhase, setOfferPhase] = useState<\n \"waiting\" | \"open\" | \"applying\" | \"applied\" | \"leaving\"\n >(\"waiting\");\n const [isConfirmed, setIsConfirmed] = useState(false);\n const offerTitleId = useId();\n const offerIdRef = useRef(offerId);\n const offerPhaseRef = useRef(offerPhase);\n const restoreFocusRef = useRef(false);\n\n offerIdRef.current = offerId;\n offerPhaseRef.current = offerPhase;\n\n const checkedIndex = views.findIndex(({ id }) => id === value);\n const tabStopId = views[checkedIndex >= 0 ? checkedIndex : 0]?.id;\n const offerView = views.find(({ id }) => id === offerId);\n\n const select = useCallback(\n (id: string) => {\n // A click on the checked view also offers the extra action.\n if (id === value) {\n const isOfferUp =\n offerIdRef.current &&\n [\"open\", \"applying\", \"applied\"].includes(offerPhaseRef.current);\n\n if (onApplyToAll && !isOfferUp) {\n setOfferPhase(\"waiting\");\n setIsConfirmed(false);\n setOfferId(id);\n }\n\n return;\n }\n\n onChange(id);\n\n if (onApplyToAll) {\n // An open prompt stays for the next switch, and only a new one waits.\n setOfferPhase((phase) =>\n offerIdRef.current && phase === \"open\" ? \"open\" : \"waiting\"\n );\n setIsConfirmed(false);\n setOfferId(id);\n }\n },\n [onApplyToAll, onChange, value]\n );\n\n const isInside = (node: Node | null): boolean =>\n Boolean(node && rootRef.current?.contains(node));\n\n const focusChecked = useCallback(() => {\n if (tabStopId) {\n optionRefs.current[tabStopId]?.focus();\n }\n }, [tabStopId]);\n\n const leave = useCallback((): void => {\n restoreFocusRef.current = Boolean(\n promptRef.current?.contains(document.activeElement)\n );\n\n if (offerPhaseRef.current === \"waiting\") {\n setOfferId(null);\n\n return;\n }\n\n setOfferPhase(\"leaving\");\n }, []);\n\n useEffect(() => {\n if (!offerId && restoreFocusRef.current) {\n restoreFocusRef.current = false;\n focusChecked();\n }\n }, [focusChecked, offerId]);\n\n useEffect(() => {\n if (!offerId || offerPhase === \"applying\") {\n return undefined;\n }\n\n if (offerPhase === \"waiting\") {\n const timer = setTimeout(\n () => setOfferPhase(\"open\"),\n VIEW_SWITCHER_PROMPT_DELAY_MS\n );\n\n return () => clearTimeout(timer);\n }\n\n if (offerPhase === \"leaving\") {\n const timer = setTimeout(\n () => setOfferId(null),\n VIEW_SWITCHER_LEAVE_MS\n );\n\n return () => clearTimeout(timer);\n }\n\n const timer = setTimeout(\n leave,\n offerPhase === \"applied\"\n ? VIEW_SWITCHER_APPLIED_MS\n : VIEW_SWITCHER_PROMPT_MS\n );\n\n return () => clearTimeout(timer);\n }, [leave, offerId, offerPhase]);\n\n useEffect(() => {\n if (!offerId) {\n return undefined;\n }\n\n const leaveOutside = (event: MouseEvent): void => {\n if (!isInside(event.target as Node)) {\n leave();\n }\n };\n\n document.addEventListener(\"mousedown\", leaveOutside);\n\n return () => document.removeEventListener(\"mousedown\", leaveOutside);\n }, [leave, offerId]);\n\n const handleOptionKeyDown = (\n event: KeyboardEvent<HTMLButtonElement>,\n index: number\n ): void => {\n const last = views.length - 1;\n const targets: Record<string, number> = {\n ArrowRight: index === last ? 0 : index + 1,\n ArrowDown: index === last ? 0 : index + 1,\n ArrowLeft: index === 0 ? last : index - 1,\n ArrowUp: index === 0 ? last : index - 1,\n Home: 0,\n End: last,\n };\n const target = targets[event.key];\n\n if (target === undefined) {\n return;\n }\n\n event.preventDefault();\n\n const { id } = views[target];\n\n optionRefs.current[id]?.focus();\n select(id);\n };\n\n const handleRootKeyDown = (event: KeyboardEvent<HTMLDivElement>): void => {\n onKeyDown?.(event);\n\n if (event.key !== \"Escape\" || !offerId) {\n return;\n }\n\n if (offerPhase === \"waiting\") {\n leave();\n\n return;\n }\n\n // A native dialog around the switcher would take an Escape that is not prevented as its own close request.\n event.preventDefault();\n event.stopPropagation();\n leave();\n };\n\n const handleRootBlur = (event: FocusEvent<HTMLDivElement>): void => {\n onBlur?.(event);\n\n const next = event.relatedTarget as Node | null;\n\n if (offerId && next && !isInside(next)) {\n leave();\n }\n };\n\n const applyToAll = async (): Promise<void> => {\n if (!offerId || !onApplyToAll || offerPhase !== \"open\") {\n return;\n }\n\n let isApplied = false;\n\n // The action hides while it confirms, so the focus goes back to the views now.\n if (promptRef.current?.contains(document.activeElement)) {\n focusChecked();\n }\n\n setOfferPhase(\"applying\");\n\n try {\n isApplied = (await onApplyToAll(offerId)) !== false;\n } finally {\n if (offerIdRef.current === offerId) {\n setIsConfirmed(isApplied);\n setOfferPhase(isApplied ? \"applied\" : \"leaving\");\n }\n }\n };\n\n return (\n <StyledViewSwitcher\n ref={handleRootRef}\n className={classnames(\"c-view-switcher\", className)}\n onKeyDown={handleRootKeyDown}\n onBlur={handleRootBlur}\n {...rest}\n >\n <StyledViewSwitcherTrack className=\"c-view-switcher__track\">\n {offerView && offerPhase !== \"waiting\" ? (\n <StyledViewSwitcherPrompt\n ref={promptRef}\n role=\"group\"\n aria-labelledby={offerTitleId}\n className=\"c-view-switcher__prompt\"\n data-phase={offerPhase}\n data-confirmed={isConfirmed || undefined}\n >\n <StyledViewSwitcherPromptTitle id={offerTitleId}>\n {offerTitle\n ? offerTitle(offerView)\n : `Now in ${offerView.label}`}\n </StyledViewSwitcherPromptTitle>\n <StyledViewSwitcherPromptClip>\n <StyledViewSwitcherPromptPill className=\"c-view-switcher__prompt-pill\">\n <Tooltip title={applyToAllTitle} placement=\"bottom\">\n <StyledViewSwitcherAction\n type=\"button\"\n aria-label={applyToAllTitle}\n className=\"c-view-switcher__action\"\n onClick={applyToAll}\n >\n <CheckIcon />\n {applyToAllLabel}\n </StyledViewSwitcherAction>\n </Tooltip>\n <StyledViewSwitcherLine className=\"c-view-switcher__line\" />\n <Tooltip title={dismissLabel} placement=\"bottom\">\n <StyledViewSwitcherDismiss\n type=\"button\"\n aria-label={dismissLabel}\n className=\"c-view-switcher__dismiss\"\n onClick={leave}\n >\n <CloseSmallIcon />\n </StyledViewSwitcherDismiss>\n </Tooltip>\n {isConfirmed ? (\n <StyledViewSwitcherApplied role=\"status\">\n <CheckIcon />\n {appliedLabel}\n </StyledViewSwitcherApplied>\n ) : null}\n </StyledViewSwitcherPromptPill>\n </StyledViewSwitcherPromptClip>\n </StyledViewSwitcherPrompt>\n ) : null}\n <StyledViewSwitcherOptions role=\"radiogroup\" aria-label={ariaLabel}>\n {views.map((view, index) => {\n const checked = view.id === value;\n\n return (\n <Tooltip key={view.id} title={view.label} placement=\"bottom\">\n <StyledViewSwitcherOption\n ref={(node: HTMLButtonElement | null) => {\n optionRefs.current[view.id] = node;\n }}\n type=\"button\"\n role=\"radio\"\n aria-checked={checked}\n aria-label={view.label}\n tabIndex={view.id === tabStopId ? 0 : -1}\n className=\"c-view-switcher__option\"\n onClick={() => select(view.id)}\n onKeyDown={(event: KeyboardEvent<HTMLButtonElement>) =>\n handleOptionKeyDown(event, index)\n }\n >\n {view.icon}\n </StyledViewSwitcherOption>\n </Tooltip>\n );\n })}\n </StyledViewSwitcherOptions>\n </StyledViewSwitcherTrack>\n </StyledViewSwitcher>\n );\n }\n);\n\nViewSwitcher.displayName = \"ViewSwitcher\";\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAEVC,UAAU,EAIVC,WAAW,EACXC,SAAS,EACTC,KAAK,EACLC,MAAM,EACNC,QAAQ,QACH,OAAO;AAEd,OAAOC,UAAU,MAAM,YAAY;AAEnC,SACEC,kBAAkB,EAClBC,wBAAwB,EACxBC,yBAAyB,EACzBC,yBAAyB,EACzBC,sBAAsB,EACtBC,wBAAwB,EACxBC,yBAAyB,EACzBC,wBAAwB,EACxBC,4BAA4B,EAC5BC,4BAA4B,EAC5BC,6BAA6B,EAC7BC,uBAAuB,EACvBC,wBAAwB,EACxBC,sBAAsB,EACtBC,6BAA6B,EAC7BC,uBAAuB,QAClB,UAAU;AACjB,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,SAASC,SAAS,EAAEC,cAAc,QAAQ,UAAU;AACpD,SAASC,OAAO,QAAQ,YAAY;AAgCpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,YAAY,gBAAG3B,UAAU,CACpC,CAAA4B,IAAA,EAiBEC,GAAG,KACA;EAAA,IAAAC,MAAA;EAAA,IAhBDC,KAAK,GAAAH,IAAA,CAALG,KAAK;IACLC,KAAK,GAAAJ,IAAA,CAALI,KAAK;IACLC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;IAAAC,cAAA,GAAAN,IAAA,CACR,YAAY;IAAEO,SAAS,GAAAD,cAAA,cAAG,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ourceRoot":"","sources":["../../../../src/components/ViewSwitcher/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ViewSwitcher/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/ViewSwitcher/index.ts"],"sourcesContent":["export * from \"./ViewSwitcher\";\nexport * from \"./ViewSwitcherMenu\";\
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/ViewSwitcher/index.ts"],"sourcesContent":["export * from \"./ViewSwitcher\";\nexport * from \"./ViewSwitcherMenu\";\n"],"mappings":"AAAA,cAAc,gBAAgB;AAC9B,cAAc,oBAAoB","ignoreList":[]}
|
|
@@ -146,6 +146,7 @@ export * from "./TicketPerforation";
|
|
|
146
146
|
export * from "./MessageBubble";
|
|
147
147
|
export * from "./DockedCard";
|
|
148
148
|
export * from "./NoteCard";
|
|
149
|
+
export * from "./NotebookCard";
|
|
149
150
|
export * from "./NotebookTile";
|
|
150
151
|
export * from "./ListSection";
|
|
151
152
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAA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,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
|
|
@@ -146,6 +146,7 @@ export * from "./TicketPerforation";
|
|
|
146
146
|
export * from "./MessageBubble";
|
|
147
147
|
export * from "./DockedCard";
|
|
148
148
|
export * from "./NoteCard";
|
|
149
|
+
export * from "./NotebookCard";
|
|
149
150
|
export * from "./NotebookTile";
|
|
150
151
|
export * from "./ListSection";
|
|
151
152
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["suspendModalRoots","useSuspendModalRoots"],"sources":["../../../src/components/index.ts"],"sourcesContent":["export * from \"./Button\";\nexport * from \"./CaretButton\";\nexport * from \"./CellTrigger\";\nexport * from \"./ButtonGroup\";\nexport * from \"./Breadcrumbs\";\nexport * from \"./CounterButton\";\nexport * from \"./Steppers\";\nexport * from \"./Tables\";\nexport * from \"./CompleteCheckbox\";\nexport * from \"./Paper\";\nexport * from \"./ScaleBar\";\nexport * from \"./Card\";\nexport * from \"./EntityCard\";\nexport * from \"./EntitiesHeader\";\nexport * from \"./Signifier\";\nexport * from \"./Avatar\";\nexport * from \"./Tag\";\nexport * from \"./Loaders\";\nexport * from \"./LogoField\";\nexport * from \"./MainMenu\";\nexport * from \"./Nav\";\nexport * from \"./SideNav\";\nexport * from \"./Bubble\";\nexport * from \"./Input\";\nexport * from \"./Display\";\nexport * from \"./DrilldownMenu\";\nexport * from \"./Menu\";\nexport * from \"./Expanders\";\nexport * from \"./DatePicker\";\nexport * from \"./List\";\nexport * from \"./MenuSelector\";\nexport * from \"./MultiAvatar\";\nexport * from \"./RadioButton\";\nexport * from \"./RadioCard\";\nexport * from \"./RadioGroup\";\nexport * from \"./RaisedAddButton\";\nexport * from \"./ScrollShadow\";\nexport * from \"./ScrollToToast\";\nexport * from \"./SwatchPalette\";\nexport * from \"./Icons\";\nexport * from \"./Textarea\";\nexport * from \"./Timesheet\";\nexport * from \"./Modal\";\nexport * from \"./BatchEdit\";\nexport * from \"./BlockingProgress\";\nexport * from \"./Sheet\";\nexport * from \"./Drawer\";\nexport * from \"./Header\";\nexport * from \"./HeaderControls\";\nexport * from \"./AutoResizeTextarea\";\nexport * from \"./Overlay\";\nexport * from \"./Accordion\";\nexport * from \"./ActivityRail\";\nexport * from \"./Choose\";\nexport * from \"./ChooseV2\";\nexport * from \"./Links\";\nexport * from \"./SelectDate\";\nexport * from \"./Popper\";\nexport * from \"./ThemeSwatch\";\nexport * from \"./ToastMessage\";\nexport * from \"./Tooltip\";\nexport * from \"./Transitions\";\nexport * from \"./Window\";\nexport * from \"./ValueButton\";\nexport * from \"./PillButton\";\nexport * from \"./PillGroup\";\nexport * from \"./ViewSwitcher\";\nexport * from \"./Select\";\nexport * from \"./SelectTrigger\";\nexport * from \"./SelectTime\";\nexport * from \"./Dialog\";\nexport * from \"./Divider\";\nexport * from \"./ObjectFormModal\";\nexport * from \"./ConfirmDialog\";\nexport * from \"./MediaViewer\";\nexport * from \"./Checkbox\";\nexport * from \"./Toggle\";\nexport * from \"./Typography\";\nexport * from \"./Autocomplete\";\nexport * from \"./ComboBox\";\nexport * from \"./Button/AddToListButton\";\nexport * from \"./PortableText\";\nexport * from \"./PresenceCapsule\";\nexport * from \"./ProgressBar\";\nexport * from \"./ProgressPie\";\nexport * from \"./Reactions\";\nexport * from \"./Label\";\nexport * from \"./GlobalPortal\";\nexport { suspendModalRoots } from \"./ModalRoot/modalRootStack\";\nexport { useSuspendModalRoots } from \"./ModalRoot/useSuspendModalRoots\";\nexport * from \"./GlobalStyle\";\nexport * from \"./ProgressRing\";\nexport * from \"./ProjectColor\";\nexport * from \"./ProjectIconPicker\";\nexport * from \"./EditableContent\";\nexport * from \"./EditableText\";\nexport * from \"./EditableHours\";\nexport * from \"./EditableCurrency\";\nexport * from \"./Folder\";\nexport * from \"./Chip\";\nexport * from \"./Trigger\";\nexport * from \"./Dot\";\nexport * from \"./Entity\";\nexport * from \"./Filter\";\nexport * from \"./Wizard\";\nexport * from \"./ContentWizard\";\nexport * from \"./IconButton\";\nexport * from \"./IdentityMark\";\nexport * from \"./Typography\";\nexport * from \"./Badge\";\nexport * from \"./AvatarGroup\";\nexport * from \"./CommandPalette\";\nexport * from \"./CommentsRail\";\nexport * from \"./EmptySlate\";\nexport * from \"./Illustrations\";\nexport * from \"./NoResultsSlate\";\nexport * from \"./FilterInput\";\nexport * from \"./Toolbar\";\nexport * from \"./InfoBox\";\nexport * from \"./Sort\";\nexport * from \"./StepSequence\";\nexport * from \"./Stopwatch\";\nexport * from \"./StackedCard\";\nexport * from \"./Stack\";\nexport * from \"./SwatchPicker\";\nexport * from \"./Row\";\nexport * from \"./Columns\";\nexport * from \"./Tiles\";\nexport * from \"./Media\";\nexport * from \"./TitledText\";\nexport * from \"./LayoutTokens\";\nexport * from \"./Section\";\nexport * from \"./Collapse\";\nexport * from \"./LabeledDivider\";\nexport * from \"./FloatingPill\";\nexport * from \"./ClampedContent\";\nexport * from \"./ResizeHandle\";\nexport * from \"./ObjectLayout\";\nexport * from \"./ListRow\";\nexport * from \"./ListGroupHeading\";\nexport * from \"./FileTile\";\nexport * from \"./DropZone\";\nexport * from \"./EditorFrame\";\nexport * from \"./PropertyList\";\nexport * from \"./TicketPerforation\";\nexport * from \"./MessageBubble\";\nexport * from \"./DockedCard\";\nexport * from \"./NoteCard\";\nexport * from \"./NotebookTile\";\nexport * from \"./ListSection\";\n"],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,iBAAiB;AAC/B,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,cAAc,oBAAoB;AAClC,cAAc,SAAS;AACvB,cAAc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B,cAAc,kBAAkB;AAChC,cAAc,gBAAgB;AAC9B,cAAc,gBAAgB;AAC9B,cAAc,WAAW;AACzB,cAAc,oBAAoB;AAClC,cAAc,YAAY;AAC1B,cAAc,YAAY;AAC1B,cAAc,eAAe;AAC7B,cAAc,gBAAgB;AAC9B,cAAc,qBAAqB;AACnC,cAAc,iBAAiB;AAC/B,cAAc,cAAc;AAC5B,cAAc,YAAY;AAC1B,cAAc,gBAAgB;AAC9B,cAAc,eAAe","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["suspendModalRoots","useSuspendModalRoots"],"sources":["../../../src/components/index.ts"],"sourcesContent":["export * from \"./Button\";\nexport * from \"./CaretButton\";\nexport * from \"./CellTrigger\";\nexport * from \"./ButtonGroup\";\nexport * from \"./Breadcrumbs\";\nexport * from \"./CounterButton\";\nexport * from \"./Steppers\";\nexport * from \"./Tables\";\nexport * from \"./CompleteCheckbox\";\nexport * from \"./Paper\";\nexport * from \"./ScaleBar\";\nexport * from \"./Card\";\nexport * from \"./EntityCard\";\nexport * from \"./EntitiesHeader\";\nexport * from \"./Signifier\";\nexport * from \"./Avatar\";\nexport * from \"./Tag\";\nexport * from \"./Loaders\";\nexport * from \"./LogoField\";\nexport * from \"./MainMenu\";\nexport * from \"./Nav\";\nexport * from \"./SideNav\";\nexport * from \"./Bubble\";\nexport * from \"./Input\";\nexport * from \"./Display\";\nexport * from \"./DrilldownMenu\";\nexport * from \"./Menu\";\nexport * from \"./Expanders\";\nexport * from \"./DatePicker\";\nexport * from \"./List\";\nexport * from \"./MenuSelector\";\nexport * from \"./MultiAvatar\";\nexport * from \"./RadioButton\";\nexport * from \"./RadioCard\";\nexport * from \"./RadioGroup\";\nexport * from \"./RaisedAddButton\";\nexport * from \"./ScrollShadow\";\nexport * from \"./ScrollToToast\";\nexport * from \"./SwatchPalette\";\nexport * from \"./Icons\";\nexport * from \"./Textarea\";\nexport * from \"./Timesheet\";\nexport * from \"./Modal\";\nexport * from \"./BatchEdit\";\nexport * from \"./BlockingProgress\";\nexport * from \"./Sheet\";\nexport * from \"./Drawer\";\nexport * from \"./Header\";\nexport * from \"./HeaderControls\";\nexport * from \"./AutoResizeTextarea\";\nexport * from \"./Overlay\";\nexport * from \"./Accordion\";\nexport * from \"./ActivityRail\";\nexport * from \"./Choose\";\nexport * from \"./ChooseV2\";\nexport * from \"./Links\";\nexport * from \"./SelectDate\";\nexport * from \"./Popper\";\nexport * from \"./ThemeSwatch\";\nexport * from \"./ToastMessage\";\nexport * from \"./Tooltip\";\nexport * from \"./Transitions\";\nexport * from \"./Window\";\nexport * from \"./ValueButton\";\nexport * from \"./PillButton\";\nexport * from \"./PillGroup\";\nexport * from \"./ViewSwitcher\";\nexport * from \"./Select\";\nexport * from \"./SelectTrigger\";\nexport * from \"./SelectTime\";\nexport * from \"./Dialog\";\nexport * from \"./Divider\";\nexport * from \"./ObjectFormModal\";\nexport * from \"./ConfirmDialog\";\nexport * from \"./MediaViewer\";\nexport * from \"./Checkbox\";\nexport * from \"./Toggle\";\nexport * from \"./Typography\";\nexport * from \"./Autocomplete\";\nexport * from \"./ComboBox\";\nexport * from \"./Button/AddToListButton\";\nexport * from \"./PortableText\";\nexport * from \"./PresenceCapsule\";\nexport * from \"./ProgressBar\";\nexport * from \"./ProgressPie\";\nexport * from \"./Reactions\";\nexport * from \"./Label\";\nexport * from \"./GlobalPortal\";\nexport { suspendModalRoots } from \"./ModalRoot/modalRootStack\";\nexport { useSuspendModalRoots } from \"./ModalRoot/useSuspendModalRoots\";\nexport * from \"./GlobalStyle\";\nexport * from \"./ProgressRing\";\nexport * from \"./ProjectColor\";\nexport * from \"./ProjectIconPicker\";\nexport * from \"./EditableContent\";\nexport * from \"./EditableText\";\nexport * from \"./EditableHours\";\nexport * from \"./EditableCurrency\";\nexport * from \"./Folder\";\nexport * from \"./Chip\";\nexport * from \"./Trigger\";\nexport * from \"./Dot\";\nexport * from \"./Entity\";\nexport * from \"./Filter\";\nexport * from \"./Wizard\";\nexport * from \"./ContentWizard\";\nexport * from \"./IconButton\";\nexport * from \"./IdentityMark\";\nexport * from \"./Typography\";\nexport * from \"./Badge\";\nexport * from \"./AvatarGroup\";\nexport * from \"./CommandPalette\";\nexport * from \"./CommentsRail\";\nexport * from \"./EmptySlate\";\nexport * from \"./Illustrations\";\nexport * from \"./NoResultsSlate\";\nexport * from \"./FilterInput\";\nexport * from \"./Toolbar\";\nexport * from \"./InfoBox\";\nexport * from \"./Sort\";\nexport * from \"./StepSequence\";\nexport * from \"./Stopwatch\";\nexport * from \"./StackedCard\";\nexport * from \"./Stack\";\nexport * from \"./SwatchPicker\";\nexport * from \"./Row\";\nexport * from \"./Columns\";\nexport * from \"./Tiles\";\nexport * from \"./Media\";\nexport * from \"./TitledText\";\nexport * from \"./LayoutTokens\";\nexport * from \"./Section\";\nexport * from \"./Collapse\";\nexport * from \"./LabeledDivider\";\nexport * from \"./FloatingPill\";\nexport * from \"./ClampedContent\";\nexport * from \"./ResizeHandle\";\nexport * from \"./ObjectLayout\";\nexport * from \"./ListRow\";\nexport * from \"./ListGroupHeading\";\nexport * from \"./FileTile\";\nexport * from \"./DropZone\";\nexport * from \"./EditorFrame\";\nexport * from \"./PropertyList\";\nexport * from \"./TicketPerforation\";\nexport * from \"./MessageBubble\";\nexport * from \"./DockedCard\";\nexport * from \"./NoteCard\";\nexport * from \"./NotebookCard\";\nexport * from \"./NotebookTile\";\nexport * from \"./ListSection\";\n"],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,iBAAiB;AAC/B,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,cAAc,oBAAoB;AAClC,cAAc,SAAS;AACvB,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,cAAc;AAC5B,cAAc,kBAAkB;AAChC,cAAc,aAAa;AAC3B,cAAc,UAAU;AACxB,cAAc,OAAO;AACrB,c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