@activecollab/components 2.0.568 → 2.0.570
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/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/ListSection/Styles.js +1 -1
- package/dist/cjs/components/ListSection/Styles.js.map +1 -1
- package/dist/cjs/components/MainMenu/MainMenu.js +0 -22
- package/dist/cjs/components/MainMenu/MainMenu.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/PillButton/PillButton.js.map +1 -1
- package/dist/cjs/components/PillButton/Styles.js +5 -1
- package/dist/cjs/components/PillButton/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/PropertyList/PropertyListPopover.js +3 -0
- package/dist/cjs/components/PropertyList/PropertyListPopover.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/ViewSwitcher/Styles.js +22 -18
- package/dist/cjs/components/ViewSwitcher/Styles.js.map +1 -1
- package/dist/cjs/components/ViewSwitcher/ViewSwitcher.js +131 -144
- 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 +2 -4
- 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/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/ListSection/Styles.js +1 -1
- package/dist/esm/components/ListSection/Styles.js.map +1 -1
- package/dist/esm/components/MainMenu/MainMenu.d.ts.map +1 -1
- package/dist/esm/components/MainMenu/MainMenu.js +0 -20
- package/dist/esm/components/MainMenu/MainMenu.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/PillButton/PillButton.d.ts +2 -2
- package/dist/esm/components/PillButton/PillButton.d.ts.map +1 -1
- 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 +3 -1
- package/dist/esm/components/PillButton/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/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/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/ViewSwitcher/Styles.d.ts +6 -3
- package/dist/esm/components/ViewSwitcher/Styles.d.ts.map +1 -1
- package/dist/esm/components/ViewSwitcher/Styles.js +20 -16
- package/dist/esm/components/ViewSwitcher/Styles.js.map +1 -1
- package/dist/esm/components/ViewSwitcher/ViewSwitcher.d.ts +9 -12
- package/dist/esm/components/ViewSwitcher/ViewSwitcher.d.ts.map +1 -1
- package/dist/esm/components/ViewSwitcher/ViewSwitcher.js +124 -139
- 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 +2 -4
- 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 +469 -493
- 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
package/dist/index.js
CHANGED
|
@@ -17145,7 +17145,7 @@
|
|
|
17145
17145
|
componentId: "sc-1hgjasy-0"
|
|
17146
17146
|
})(["&[data-popper-reference-hidden]{display:none !important;pointer-events:none !important;}"]);
|
|
17147
17147
|
|
|
17148
|
-
var _excluded$2s = ["children", "anchorEl", "open", "style", "transition", "placement", "strategy", "afterWrite", "modifiers"];
|
|
17148
|
+
var _excluded$2s = ["children", "anchorEl", "open", "style", "transition", "placement", "strategy", "afterWrite", "followAnchor", "modifiers"];
|
|
17149
17149
|
var Popper = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
17150
17150
|
var children = _ref.children,
|
|
17151
17151
|
anchorEl = _ref.anchorEl,
|
|
@@ -17159,6 +17159,8 @@
|
|
|
17159
17159
|
_ref$strategy = _ref.strategy,
|
|
17160
17160
|
strategy = _ref$strategy === void 0 ? "absolute" : _ref$strategy,
|
|
17161
17161
|
afterWrite = _ref.afterWrite,
|
|
17162
|
+
_ref$followAnchor = _ref.followAnchor,
|
|
17163
|
+
followAnchor = _ref$followAnchor === void 0 ? false : _ref$followAnchor,
|
|
17162
17164
|
extraModifiers = _ref.modifiers,
|
|
17163
17165
|
rest = _objectWithoutProperties(_ref, _excluded$2s);
|
|
17164
17166
|
var _useState = React.useState(true),
|
|
@@ -17249,6 +17251,21 @@
|
|
|
17249
17251
|
handleClose();
|
|
17250
17252
|
}
|
|
17251
17253
|
}, [open, transition]);
|
|
17254
|
+
React.useEffect(function () {
|
|
17255
|
+
if (!followAnchor || !open || !anchorEl || typeof ResizeObserver === "undefined") {
|
|
17256
|
+
return undefined;
|
|
17257
|
+
}
|
|
17258
|
+
|
|
17259
|
+
// eslint-disable-next-line compat/compat -- guarded above
|
|
17260
|
+
var observer = new ResizeObserver(function () {
|
|
17261
|
+
var _popperRef$current;
|
|
17262
|
+
(_popperRef$current = popperRef.current) === null || _popperRef$current === void 0 || _popperRef$current.update();
|
|
17263
|
+
});
|
|
17264
|
+
observer.observe(anchorEl);
|
|
17265
|
+
return function () {
|
|
17266
|
+
return observer.disconnect();
|
|
17267
|
+
};
|
|
17268
|
+
}, [anchorEl, followAnchor, open]);
|
|
17252
17269
|
React.useEffect(function () {
|
|
17253
17270
|
if (popperRef.current) {
|
|
17254
17271
|
popperRef.current.update();
|
|
@@ -17937,7 +17954,7 @@
|
|
|
17937
17954
|
}
|
|
17938
17955
|
};
|
|
17939
17956
|
};
|
|
17940
|
-
var TABBABLE
|
|
17957
|
+
var TABBABLE = 'a[href], button, input, select, textarea, iframe, [tabindex], [contenteditable="true"]';
|
|
17941
17958
|
|
|
17942
17959
|
// A menu opened with the pointer hands the focus back without a focus ring, so its trigger does not stay lit.
|
|
17943
17960
|
var returnFocusOptions = function returnFocusOptions(visible) {
|
|
@@ -17948,7 +17965,7 @@
|
|
|
17948
17965
|
|
|
17949
17966
|
// Moves the focus where a Tab or Shift+Tab on the trigger would go. The closing menu itself does not count.
|
|
17950
17967
|
var focusTabNeighbor = function focusTabNeighbor(trigger, step, menu) {
|
|
17951
|
-
var nodes = Array.from(document.querySelectorAll(TABBABLE
|
|
17968
|
+
var nodes = Array.from(document.querySelectorAll(TABBABLE)).filter(function (node) {
|
|
17952
17969
|
return node === trigger || node.tabIndex >= 0 && !node.disabled && !node.closest("[inert]") && !(menu !== null && menu !== void 0 && menu.contains(node));
|
|
17953
17970
|
});
|
|
17954
17971
|
var from = nodes.indexOf(trigger);
|
|
@@ -18017,7 +18034,7 @@
|
|
|
18017
18034
|
onFocused();
|
|
18018
18035
|
return;
|
|
18019
18036
|
}
|
|
18020
|
-
var first = Array.from(menu.querySelectorAll(TABBABLE
|
|
18037
|
+
var first = Array.from(menu.querySelectorAll(TABBABLE)).find(function (node) {
|
|
18021
18038
|
return node.tabIndex >= 0 && !node.disabled;
|
|
18022
18039
|
});
|
|
18023
18040
|
(_ref3 = first !== null && first !== void 0 ? first : menu.closest("[tabindex]")) === null || _ref3 === void 0 || _ref3.focus({
|
|
@@ -18055,6 +18072,8 @@
|
|
|
18055
18072
|
_ref4$windowAbsolutel = _ref4.windowAbsolutelyPositioned,
|
|
18056
18073
|
windowAbsolutelyPositioned = _ref4$windowAbsolutel === void 0 ? false : _ref4$windowAbsolutel,
|
|
18057
18074
|
onPopperOpen = _ref4.onPopperOpen,
|
|
18075
|
+
_ref4$followTarget = _ref4.followTarget,
|
|
18076
|
+
followTarget = _ref4$followTarget === void 0 ? false : _ref4$followTarget,
|
|
18058
18077
|
_ref4$closeOnTab = _ref4.closeOnTab,
|
|
18059
18078
|
closeOnTab = _ref4$closeOnTab === void 0 ? false : _ref4$closeOnTab,
|
|
18060
18079
|
_ref4$prerender = _ref4.prerender,
|
|
@@ -18341,6 +18360,7 @@
|
|
|
18341
18360
|
className: popperClassName,
|
|
18342
18361
|
tabIndex: -1,
|
|
18343
18362
|
afterWrite: onPopperOpen,
|
|
18363
|
+
followAnchor: followTarget,
|
|
18344
18364
|
modifiers: popperModifiers,
|
|
18345
18365
|
transition: true
|
|
18346
18366
|
}, function (_ref5) {
|
|
@@ -24946,7 +24966,6 @@
|
|
|
24946
24966
|
var PEEK_OPEN = "open";
|
|
24947
24967
|
var PEEK_CLOSING = "closing";
|
|
24948
24968
|
var PEEK_ANIMATION_FALLBACK_MS = 400;
|
|
24949
|
-
var PEEK_RESUME_DELAY_MS = 300;
|
|
24950
24969
|
var settlePeek = function settlePeek(current) {
|
|
24951
24970
|
if (current === PEEK_EXPANDING) {
|
|
24952
24971
|
return PEEK_OPEN;
|
|
@@ -25060,27 +25079,6 @@
|
|
|
25060
25079
|
}
|
|
25061
25080
|
}, [isHovered, isDismissed]);
|
|
25062
25081
|
useDialogOpen(canPeek && peek !== PEEK_CLOSED, dismissPeek);
|
|
25063
|
-
|
|
25064
|
-
// A pointer that keeps moving over the closed menu wants it back, and one that leaves does not.
|
|
25065
|
-
React.useEffect(function () {
|
|
25066
|
-
var root = rootRef.current;
|
|
25067
|
-
if (!isDismissed || !isHovered || peek !== PEEK_CLOSED || !root) {
|
|
25068
|
-
return undefined;
|
|
25069
|
-
}
|
|
25070
|
-
var timer;
|
|
25071
|
-
var handleMove = function handleMove() {
|
|
25072
|
-
if (timer === undefined) {
|
|
25073
|
-
timer = setTimeout(function () {
|
|
25074
|
-
return setIsDismissed(false);
|
|
25075
|
-
}, PEEK_RESUME_DELAY_MS);
|
|
25076
|
-
}
|
|
25077
|
-
};
|
|
25078
|
-
root.addEventListener("mousemove", handleMove);
|
|
25079
|
-
return function () {
|
|
25080
|
-
clearTimeout(timer);
|
|
25081
|
-
root.removeEventListener("mousemove", handleMove);
|
|
25082
|
-
};
|
|
25083
|
-
}, [isDismissed, isHovered, peek]);
|
|
25084
25082
|
var lastNavigationKey = React.useRef(navigationKey);
|
|
25085
25083
|
React.useEffect(function () {
|
|
25086
25084
|
if (navigationKey !== lastNavigationKey.current) {
|
|
@@ -26038,7 +26036,7 @@
|
|
|
26038
26036
|
displayName: "ChipGroupStyles__StyledChipGroup",
|
|
26039
26037
|
componentId: "sc-1wgqzaj-0"
|
|
26040
26038
|
})(["display:flex;align-items:center;min-width:0;", ""], function (props) {
|
|
26041
|
-
return props.$joined ? styled.css(["gap:1px;overflow:hidden;border-radius:
|
|
26039
|
+
return props.$joined ? styled.css(["gap:1px;overflow:hidden;border-radius:", ";", "{min-width:0;max-width:none;border-radius:0;padding-left:0.5rem;padding-right:0.5rem;}"], RADIUS$2.rounded, ChipContainer) : styled.css(["flex-wrap:wrap;gap:0.375rem;"]);
|
|
26042
26040
|
});
|
|
26043
26041
|
StyledChipGroup.displayName = "StyledChipGroup";
|
|
26044
26042
|
|
|
@@ -28213,7 +28211,7 @@
|
|
|
28213
28211
|
componentId: "sc-9x4q7e-0"
|
|
28214
28212
|
})(["cursor:auto"]);
|
|
28215
28213
|
|
|
28216
|
-
var _excluded$1M = ["type", "mode", "target", "options", "selected", "mixed", "position", "onChange", "placeholder", "emptyAction", "disableSearch", "forceCloseMenu", "selectClassName", "keepSameOptionsOrder", "onSelectOpen", "onSelectClose", "renderOption", "handleDefaultOptionChange", "preselectDefaultValue", "startAdornment", "endAdornment", "focusInput", "disableVirtualization", "closeOnTab", "prerender", "scopedFocus", "handleScroll"];
|
|
28214
|
+
var _excluded$1M = ["type", "mode", "target", "options", "selected", "mixed", "position", "followTarget", "onChange", "placeholder", "emptyAction", "disableSearch", "forceCloseMenu", "selectClassName", "keepSameOptionsOrder", "onSelectOpen", "onSelectClose", "renderOption", "handleDefaultOptionChange", "preselectDefaultValue", "startAdornment", "endAdornment", "focusInput", "disableVirtualization", "closeOnTab", "prerender", "scopedFocus", "handleScroll"];
|
|
28217
28215
|
var Select = function Select(_ref) {
|
|
28218
28216
|
var _ref$type = _ref.type,
|
|
28219
28217
|
type = _ref$type === void 0 ? "single" : _ref$type,
|
|
@@ -28226,6 +28224,7 @@
|
|
|
28226
28224
|
mixed = _ref$mixed === void 0 ? [] : _ref$mixed,
|
|
28227
28225
|
_ref$position = _ref.position,
|
|
28228
28226
|
position = _ref$position === void 0 ? "bottom-start" : _ref$position,
|
|
28227
|
+
followTarget = _ref.followTarget,
|
|
28229
28228
|
_ref$onChange = _ref.onChange,
|
|
28230
28229
|
onChange = _ref$onChange === void 0 ? function () {
|
|
28231
28230
|
return null;
|
|
@@ -28378,6 +28377,7 @@
|
|
|
28378
28377
|
mode,
|
|
28379
28378
|
open,
|
|
28380
28379
|
position,
|
|
28380
|
+
followTarget,
|
|
28381
28381
|
onPopperOpen,
|
|
28382
28382
|
closeOnTab,
|
|
28383
28383
|
prerender,
|
|
@@ -28388,7 +28388,7 @@
|
|
|
28388
28388
|
return {
|
|
28389
28389
|
className: classnames__default["default"]("c-select", selectClassName)
|
|
28390
28390
|
};
|
|
28391
|
-
}, [menuTarget, selectClassName, onClose, onOpen, mode, open, position, onPopperOpen, closeOnTab, prerender, scopedFocus, handleScroll]);
|
|
28391
|
+
}, [menuTarget, selectClassName, onClose, onOpen, mode, open, position, followTarget, onPopperOpen, closeOnTab, prerender, scopedFocus, handleScroll]);
|
|
28392
28392
|
var handleEmptyAction = React.useCallback(function (value) {
|
|
28393
28393
|
emptyAction(value);
|
|
28394
28394
|
if (forceCloseMenu) {
|
|
@@ -34726,15 +34726,17 @@
|
|
|
34726
34726
|
var PILL_HEIGHTS = {
|
|
34727
34727
|
xsmall: "18px",
|
|
34728
34728
|
small: "24px",
|
|
34729
|
+
dense: "24px",
|
|
34729
34730
|
medium: "26px"
|
|
34730
34731
|
};
|
|
34732
|
+
var denseStyle = styled.css(["gap:4px;--c-pill-padding-x:11px;font-size:calc(0.75rem * var(--text-scale,1));", " svg{width:12px;height:12px;}"], StyledPillIcon);
|
|
34731
34733
|
|
|
34732
34734
|
/* The size of a type chip: small caps of an object type or a state switch. */
|
|
34733
34735
|
var xsmallStyle = styled.css(["gap:3px;--c-pill-padding-x:6px;font-size:calc(0.625rem * var(--text-scale,1));font-weight:600;", " svg{width:12px;height:12px;}"], StyledPillIcon);
|
|
34734
34736
|
var StyledPillButton = styled__default["default"].button.withConfig({
|
|
34735
34737
|
displayName: "Styles__StyledPillButton",
|
|
34736
34738
|
componentId: "sc-14yhio0-2"
|
|
34737
|
-
})(["", " ", " display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;max-width:100%;height:", ";margin:0;--c-pill-padding-x:", ";padding:0 var(--c-pill-padding-x);border:none;border-radius:var(--ac-br-rounded);font-size:calc(0.875rem * var(--text-scale,1));font-weight:500;line-height:1;white-space:nowrap;color:", ";cursor:pointer;user-select:none;&:focus{outline:none;}&:disabled{cursor:default;opacity:", ";pointer-events:none;}", " ", " ", " ", " ", " ", " ", " &[aria-haspopup][aria-expanded=\"true\"],.c-pill-host:hover &[aria-haspopup][aria-expanded=\"true\"]{", "}"], FontStyle, BoxSizingStyle, function (props) {
|
|
34739
|
+
})(["", " ", " display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;max-width:100%;height:", ";margin:0;--c-pill-padding-x:", ";padding:0 var(--c-pill-padding-x);border:none;border-radius:var(--ac-br-rounded);font-size:calc(0.875rem * var(--text-scale,1));font-weight:500;line-height:1;white-space:nowrap;color:", ";cursor:pointer;user-select:none;&:focus{outline:none;}&:disabled{cursor:default;opacity:", ";pointer-events:none;}", " ", " ", " ", " ", " ", " ", " ", " &[aria-haspopup][aria-expanded=\"true\"],.c-pill-host:hover &[aria-haspopup][aria-expanded=\"true\"]{", "}"], FontStyle, BoxSizingStyle, function (props) {
|
|
34738
34740
|
return PILL_HEIGHTS[props.$size];
|
|
34739
34741
|
}, function (props) {
|
|
34740
34742
|
return props.$inset === "tight" ? "6px" : "10px";
|
|
@@ -34750,6 +34752,8 @@
|
|
|
34750
34752
|
return props.$iconOnly && styled.css(["width:36px;padding:0;", " svg{width:16px;height:16px;}"], StyledPillIcon);
|
|
34751
34753
|
}, function (props) {
|
|
34752
34754
|
return props.$size === "xsmall" && xsmallStyle;
|
|
34755
|
+
}, function (props) {
|
|
34756
|
+
return props.$size === "dense" && denseStyle;
|
|
34753
34757
|
}, function (props) {
|
|
34754
34758
|
return props.$compact === true && compactStyle;
|
|
34755
34759
|
}, function (props) {
|
|
@@ -34867,6 +34871,10 @@
|
|
|
34867
34871
|
});
|
|
34868
34872
|
PillGroup.displayName = "PillGroup";
|
|
34869
34873
|
|
|
34874
|
+
var VIEW_SWITCHER_PROMPT_MS = 5000;
|
|
34875
|
+
var VIEW_SWITCHER_RESIZE_MS = 200;
|
|
34876
|
+
var VIEW_SWITCHER_APPLIED_MS = 900;
|
|
34877
|
+
var VIEW_SWITCHER_LEAVE_MS = 150;
|
|
34870
34878
|
var StyledViewSwitcher = styled__default["default"].div.withConfig({
|
|
34871
34879
|
displayName: "Styles__StyledViewSwitcher",
|
|
34872
34880
|
componentId: "sc-1cg2mte-0"
|
|
@@ -34875,12 +34883,12 @@
|
|
|
34875
34883
|
var StyledViewSwitcherTrack = styled__default["default"].div.withConfig({
|
|
34876
34884
|
displayName: "Styles__StyledViewSwitcherTrack",
|
|
34877
34885
|
componentId: "sc-1cg2mte-1"
|
|
34878
|
-
})(["", " display:inline-flex;align-items:center;height:32px;padding:3px;border-radius:var(--ac-br-rounded);background-color:var(--color-theme-300);"], BoxSizingStyle);
|
|
34886
|
+
})(["", " display:inline-flex;align-items:center;justify-content:flex-end;height:32px;padding:3px;border-radius:var(--ac-br-rounded);background-color:var(--color-theme-300);transition:width ", "ms cubic-bezier(0.4,0,0.2,1);@media (prefers-reduced-motion:reduce){transition:none;}"], BoxSizingStyle, VIEW_SWITCHER_RESIZE_MS);
|
|
34879
34887
|
StyledViewSwitcherTrack.displayName = "StyledViewSwitcherTrack";
|
|
34880
34888
|
var StyledViewSwitcherOption = styled__default["default"].button.withConfig({
|
|
34881
34889
|
displayName: "Styles__StyledViewSwitcherOption",
|
|
34882
34890
|
componentId: "sc-1cg2mte-2"
|
|
34883
|
-
})(["", " display:inline-flex;align-items:center;justify-content:center;width:34px;height:26px;margin:0;padding:0;border:0;border-radius:var(--ac-br-rounded);background-color:transparent;cursor:pointer;outline:none;transition:background-color 150ms ease,box-shadow 150ms ease;svg{width:20px;height:20px;fill:var(--color-theme-700);}&:hover{background-color:color-mix( in srgb,var(--color-theme-900) 16%,transparent );}&[aria-checked=\"true\"]{background-color:var(--page-paper-main);box-shadow:var(--shadow-float);cursor:default;svg{fill:var(--color-theme-900);}}&:focus-visible{box-shadow:0 0 0 2px var(--color-primary);}"], BoxSizingStyle);
|
|
34891
|
+
})(["", " display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:34px;height:26px;margin:0;padding:0;border:0;border-radius:var(--ac-br-rounded);background-color:transparent;cursor:pointer;outline:none;transition:background-color 150ms ease,box-shadow 150ms ease;svg{width:20px;height:20px;fill:var(--color-theme-700);}&:hover{background-color:color-mix( in srgb,var(--color-theme-900) 16%,transparent );}&[aria-checked=\"true\"]{background-color:var(--page-paper-main);box-shadow:var(--shadow-float);cursor:default;svg{fill:var(--color-theme-900);}}&:focus-visible{box-shadow:0 0 0 2px var(--color-primary);}"], BoxSizingStyle);
|
|
34884
34892
|
StyledViewSwitcherOption.displayName = "StyledViewSwitcherOption";
|
|
34885
34893
|
var StyledViewSwitcherMenuOption = styled__default["default"].button.withConfig({
|
|
34886
34894
|
displayName: "Styles__StyledViewSwitcherMenuOption",
|
|
@@ -34902,157 +34910,27 @@
|
|
|
34902
34910
|
componentId: "sc-1cg2mte-6"
|
|
34903
34911
|
})(["flex:1;&[data-selected=\"true\"]{font-weight:bold;color:var(--color-primary);}"]);
|
|
34904
34912
|
StyledViewSwitcherMenuLabel.displayName = "StyledViewSwitcherMenuLabel";
|
|
34905
|
-
var
|
|
34906
|
-
|
|
34913
|
+
var promptIn = styled.keyframes(["from{opacity:0;}"]);
|
|
34914
|
+
var promptOut = styled.keyframes(["to{opacity:0;transform:scale(0.96);}"]);
|
|
34915
|
+
var promptTimeLeft = styled.keyframes(["to{transform:scaleX(0);}"]);
|
|
34916
|
+
var appliedIcon = styled.keyframes(["from{opacity:0;transform:scale(0.4);}60%{transform:scale(1.2);}"]);
|
|
34917
|
+
var StyledViewSwitcherPromptTitle = styled__default["default"].span.withConfig({
|
|
34918
|
+
displayName: "Styles__StyledViewSwitcherPromptTitle",
|
|
34907
34919
|
componentId: "sc-1cg2mte-7"
|
|
34908
|
-
})(["
|
|
34909
|
-
|
|
34910
|
-
var
|
|
34911
|
-
displayName: "
|
|
34920
|
+
})(["position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;"]);
|
|
34921
|
+
StyledViewSwitcherPromptTitle.displayName = "StyledViewSwitcherPromptTitle";
|
|
34922
|
+
var StyledViewSwitcherPrompt = styled__default["default"](PillGroup).withConfig({
|
|
34923
|
+
displayName: "Styles__StyledViewSwitcherPrompt",
|
|
34912
34924
|
componentId: "sc-1cg2mte-8"
|
|
34913
|
-
})(["", " position:relative;width:
|
|
34914
|
-
|
|
34915
|
-
var StyledViewSwitcherOffer = styled__default["default"].div.withConfig({
|
|
34916
|
-
displayName: "Styles__StyledViewSwitcherOffer",
|
|
34917
|
-
componentId: "sc-1cg2mte-9"
|
|
34918
|
-
})(["", " display:flex;flex-direction:column;gap:8px;width:260px;padding:10px 14px;border:1px solid var(--border-raised);border-radius:var(--ac-br-8);background-color:var(--page-paper-main);box-shadow:var(--shadow-popover);.c-view-switcher__offer-title{display:flex;align-items:center;gap:8px;}.c-view-switcher__offer-title svg{width:18px;height:18px;flex-shrink:0;fill:var(--color-primary);}.c-view-switcher__offer-action{align-self:flex-start;height:28px;padding:0 10px;border-color:var(--border-raised);border-radius:var(--ac-br-6);color:var(--color-theme-700);}"], BoxSizingStyle);
|
|
34919
|
-
StyledViewSwitcherOffer.displayName = "StyledViewSwitcherOffer";
|
|
34920
|
-
|
|
34921
|
-
var _excluded$13 = ["type", "className"];
|
|
34922
|
-
var VIEW_ILLUSTRATION_TYPES = ["list", "grid", "column", "timeline", "month", "week", "day", "timesheet", "activity-summary", "activity-timeline"];
|
|
34923
|
-
var box = function box(x, y, w, h) {
|
|
34924
|
-
var r = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 2;
|
|
34925
|
-
return {
|
|
34926
|
-
x,
|
|
34927
|
-
y,
|
|
34928
|
-
w,
|
|
34929
|
-
h,
|
|
34930
|
-
r
|
|
34931
|
-
};
|
|
34932
|
-
};
|
|
34933
|
-
var cut = function cut(x, y, w, h) {
|
|
34934
|
-
return {
|
|
34935
|
-
x,
|
|
34936
|
-
y,
|
|
34937
|
-
w,
|
|
34938
|
-
h,
|
|
34939
|
-
r: 2,
|
|
34940
|
-
cut: true
|
|
34941
|
-
};
|
|
34942
|
-
};
|
|
34943
|
-
var dot = function dot(x, y, d) {
|
|
34944
|
-
return {
|
|
34945
|
-
cx: x + d / 2,
|
|
34946
|
-
cy: y + d / 2,
|
|
34947
|
-
d
|
|
34948
|
-
};
|
|
34949
|
-
};
|
|
34950
|
-
var DAYS$1 = [0, 1, 2, 3, 4, 5, 6].map(function (index) {
|
|
34951
|
-
return 11 + index * 20;
|
|
34952
|
-
});
|
|
34953
|
-
var WEEKDAYS = [0, 1, 2, 3, 4].map(function (index) {
|
|
34954
|
-
return 50 + index * 21;
|
|
34955
|
-
});
|
|
34956
|
-
var COLUMNS = [10, 58, 106];
|
|
34957
|
-
var SHAPES = {
|
|
34958
|
-
list: [10, 22, 34, 46].flatMap(function (y, index) {
|
|
34959
|
-
return [box(10, y, 8, 8), box(24, y, [96, 72, 108, 60][index], 8)];
|
|
34960
|
-
}),
|
|
34961
|
-
grid: COLUMNS.flatMap(function (x) {
|
|
34962
|
-
return [box(x, 10, 44, 44, 3), cut(x + 6, 36, 26, 4), cut(x + 6, 44, 18, 4)];
|
|
34963
|
-
}),
|
|
34964
|
-
column: [box(10, 10, 24, 6), box(10, 20, 44, 14, 3), box(10, 38, 44, 14, 3), box(58, 10, 24, 6), box(58, 20, 44, 14, 3), box(106, 10, 24, 6), box(106, 20, 44, 14, 3), box(106, 38, 44, 14, 3)],
|
|
34965
|
-
timeline: [box(10, 10, 30, 8), box(28, 22, 52, 8), box(46, 34, 74, 8), box(64, 46, 96, 8)],
|
|
34966
|
-
month: [...DAYS$1.map(function (x) {
|
|
34967
|
-
return box(x, 8, 18, 4, 1);
|
|
34968
|
-
}), ...[16, 27, 38, 49].flatMap(function (y) {
|
|
34969
|
-
return DAYS$1.map(function (x) {
|
|
34970
|
-
return box(x, y, 18, 9);
|
|
34971
|
-
});
|
|
34972
|
-
})],
|
|
34973
|
-
week: [...DAYS$1.map(function (x) {
|
|
34974
|
-
return box(x, 8, 18, 4, 1);
|
|
34975
|
-
}), box(DAYS$1[0], 16, 18, 14), box(DAYS$1[1], 24, 18, 20), box(DAYS$1[3], 14, 18, 10), box(DAYS$1[3], 30, 18, 16), box(DAYS$1[4], 20, 18, 24), box(DAYS$1[6], 36, 18, 12)],
|
|
34976
|
-
day: [...[12, 26, 40, 54].flatMap(function (y) {
|
|
34977
|
-
return [box(10, y - 2, 10, 4, 1), box(26, y, 124, 1, 0)];
|
|
34978
|
-
}), box(26, 15, 80, 9), box(26, 43, 110, 9)],
|
|
34979
|
-
timesheet: [...WEEKDAYS.map(function (x) {
|
|
34980
|
-
return box(x, 6, 15, 4, 1);
|
|
34981
|
-
}), ...[16, 30, 44].flatMap(function (y) {
|
|
34982
|
-
return [box(10, y, 30, 8), ...WEEKDAYS.map(function (x) {
|
|
34983
|
-
return box(x, y, 15, 8);
|
|
34984
|
-
})];
|
|
34985
|
-
})],
|
|
34986
|
-
"activity-summary": [dot(10, 8, 10), box(26, 9, 64, 8), box(26, 22, 96, 6), box(26, 31, 80, 6), dot(10, 42, 10), box(26, 43, 52, 8), box(26, 56, 88, 6)],
|
|
34987
|
-
"activity-timeline": [box(14, 8, 1, 46, 0), dot(11, 8, 7), dot(11, 27, 7), dot(11, 46, 7), box(26, 8, 96, 7), box(26, 27, 72, 7), box(26, 46, 108, 7)]
|
|
34988
|
-
};
|
|
34989
|
-
var StyledViewIllustration = styled__default["default"].svg.withConfig({
|
|
34990
|
-
displayName: "ViewIllustration__StyledViewIllustration",
|
|
34991
|
-
componentId: "sc-1qsu41v-0"
|
|
34992
|
-
})(["display:block;width:160px;height:64px;border-radius:var(--ac-br-4);background-color:var(--surface-sheet);.c-view-illustration__shape{fill:color-mix(in srgb,var(--color-theme-900) 12%,transparent);}.c-view-illustration__cut{fill:var(--surface-sheet);}"]);
|
|
34993
|
-
StyledViewIllustration.displayName = "StyledViewIllustration";
|
|
34994
|
-
/**
|
|
34995
|
-
* @component ViewIllustration
|
|
34996
|
-
* @description
|
|
34997
|
-
* Small schematic of a page view, 160x64, for the preview card of a ViewSwitcher.
|
|
34998
|
-
* It takes its colors from the theme tokens only.
|
|
34999
|
-
*
|
|
35000
|
-
* @example
|
|
35001
|
-
* <ViewIllustration type="timeline" />
|
|
35002
|
-
*/
|
|
35003
|
-
var ViewIllustration = function ViewIllustration(_ref) {
|
|
35004
|
-
var _SHAPES$type;
|
|
35005
|
-
var type = _ref.type,
|
|
35006
|
-
className = _ref.className,
|
|
35007
|
-
rest = _objectWithoutProperties(_ref, _excluded$13);
|
|
35008
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledViewIllustration, _extends({}, rest, {
|
|
35009
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
35010
|
-
viewBox: "0 0 160 64",
|
|
35011
|
-
"aria-hidden": "true",
|
|
35012
|
-
focusable: "false",
|
|
35013
|
-
"data-illustration": type,
|
|
35014
|
-
className: classnames__default["default"]("c-view-illustration", className)
|
|
35015
|
-
}), ((_SHAPES$type = SHAPES[type]) !== null && _SHAPES$type !== void 0 ? _SHAPES$type : []).map(function (shape, index) {
|
|
35016
|
-
return "d" in shape ? /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
35017
|
-
key: index,
|
|
35018
|
-
className: "c-view-illustration__shape",
|
|
35019
|
-
cx: shape.cx,
|
|
35020
|
-
cy: shape.cy,
|
|
35021
|
-
r: shape.d / 2
|
|
35022
|
-
}) : /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
35023
|
-
key: index,
|
|
35024
|
-
className: shape.cut ? "c-view-illustration__cut" : "c-view-illustration__shape",
|
|
35025
|
-
x: shape.x,
|
|
35026
|
-
y: shape.y,
|
|
35027
|
-
width: shape.w,
|
|
35028
|
-
height: shape.h,
|
|
35029
|
-
rx: shape.r
|
|
35030
|
-
});
|
|
35031
|
-
}));
|
|
35032
|
-
};
|
|
35033
|
-
ViewIllustration.displayName = "ViewIllustration";
|
|
35034
|
-
|
|
35035
|
-
var _excluded$12 = ["views", "value", "onChange", "aria-label", "onApplyToAll", "applyToAllLabel", "offerTitle", "className", "onKeyDown", "onBlur"];
|
|
35036
|
-
var POPOVER_MODIFIERS = [{
|
|
35037
|
-
name: "offset",
|
|
35038
|
-
options: {
|
|
35039
|
-
offset: [0, 6]
|
|
35040
|
-
}
|
|
35041
|
-
}];
|
|
35042
|
-
var TABBABLE = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
35043
|
-
var matchesFocusVisible = function matchesFocusVisible(element) {
|
|
35044
|
-
try {
|
|
35045
|
-
return element.matches(":focus-visible");
|
|
35046
|
-
} catch (_unused) {
|
|
35047
|
-
return false;
|
|
35048
|
-
}
|
|
35049
|
-
};
|
|
34925
|
+
})(["flex:1 0 auto;max-width:none;animation:", " 150ms ease-out;.c-pill-button:not(.c-pill-button--icon-only){flex:1 0 auto;justify-content:center;font-size:calc(0.75rem * var(--text-scale,1));}& > .c-pill-button:not(.c-pill-button--icon-only){white-space:nowrap;}.c-view-switcher__dismiss{position:relative;width:32px;overflow:hidden;}.c-view-switcher__dismiss::before{content:\"\";position:absolute;inset:0;background-color:color-mix(in srgb,var(--color-primary) 25%,transparent);transform-origin:left;animation:", " ", "ms linear forwards;}.c-view-switcher__dismiss > *{position:relative;}&[data-phase=\"applying\"]{pointer-events:none;.c-pill-button{opacity:0.7;}.c-view-switcher__dismiss::before{animation-play-state:paused;}}&[data-phase=\"applied\"]{pointer-events:none;.c-pill-button{background-color:color-mix( in srgb,var(--color-primary) 30%,transparent );}.c-pill-button svg{width:16px;height:16px;animation:", " 250ms ease-out;}}&[data-phase=\"leaving\"]{pointer-events:none;animation:", " ", "ms ease-in forwards;}"], promptIn, promptTimeLeft, VIEW_SWITCHER_PROMPT_MS, appliedIcon, promptOut, VIEW_SWITCHER_LEAVE_MS);
|
|
34926
|
+
StyledViewSwitcherPrompt.displayName = "StyledViewSwitcherPrompt";
|
|
35050
34927
|
|
|
34928
|
+
var _excluded$13 = ["views", "value", "onChange", "aria-label", "onApplyToAll", "applyToAllLabel", "offerTitle", "dismissLabel", "appliedLabel", "className", "onKeyDown", "onBlur"];
|
|
35051
34929
|
/**
|
|
35052
34930
|
* @component ViewSwitcher
|
|
35053
34931
|
* @description
|
|
35054
|
-
* Icon-only radiogroup that switches the view of a page. A
|
|
35055
|
-
*
|
|
34932
|
+
* Icon-only radiogroup that switches the view of a page. A tooltip shows the view name on hover.
|
|
34933
|
+
* With onApplyToAll, a switch replaces the buttons with an extra action for five seconds.
|
|
35056
34934
|
*
|
|
35057
34935
|
* @example
|
|
35058
34936
|
* <ViewSwitcher
|
|
@@ -35077,28 +34955,32 @@
|
|
|
35077
34955
|
_ref$applyToAllLabel = _ref.applyToAllLabel,
|
|
35078
34956
|
applyToAllLabel = _ref$applyToAllLabel === void 0 ? "Apply to All Projects" : _ref$applyToAllLabel,
|
|
35079
34957
|
offerTitle = _ref.offerTitle,
|
|
34958
|
+
_ref$dismissLabel = _ref.dismissLabel,
|
|
34959
|
+
dismissLabel = _ref$dismissLabel === void 0 ? "Dismiss" : _ref$dismissLabel,
|
|
34960
|
+
_ref$appliedLabel = _ref.appliedLabel,
|
|
34961
|
+
appliedLabel = _ref$appliedLabel === void 0 ? "Applied" : _ref$appliedLabel,
|
|
35080
34962
|
className = _ref.className,
|
|
35081
34963
|
onKeyDown = _ref.onKeyDown,
|
|
35082
34964
|
onBlur = _ref.onBlur,
|
|
35083
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
35084
|
-
var _useLayerContext = useLayerContext(),
|
|
35085
|
-
_useLayerContext$zInd = _useLayerContext.zIndex,
|
|
35086
|
-
zIndex = _useLayerContext$zInd === void 0 ? layers.skyscraper : _useLayerContext$zInd;
|
|
34965
|
+
rest = _objectWithoutProperties(_ref, _excluded$13);
|
|
35087
34966
|
var rootRef = React.useRef(null);
|
|
35088
34967
|
var handleRootRef = useForkRef(rootRef, ref);
|
|
35089
34968
|
var trackRef = React.useRef(null);
|
|
35090
34969
|
var optionRefs = React.useRef({});
|
|
35091
|
-
var offerRef = React.useRef(null);
|
|
35092
34970
|
var offerActionRef = React.useRef(null);
|
|
35093
34971
|
var _useState = React.useState(null),
|
|
35094
34972
|
_useState2 = _slicedToArray(_useState, 2),
|
|
35095
|
-
|
|
35096
|
-
|
|
35097
|
-
var _useState3 = React.useState(
|
|
34973
|
+
offerId = _useState2[0],
|
|
34974
|
+
setOfferId = _useState2[1];
|
|
34975
|
+
var _useState3 = React.useState("open"),
|
|
35098
34976
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
35099
|
-
|
|
35100
|
-
|
|
34977
|
+
offerPhase = _useState4[0],
|
|
34978
|
+
setOfferPhase = _useState4[1];
|
|
35101
34979
|
var offerTitleId = React.useId();
|
|
34980
|
+
var closedWidthRef = React.useRef(0);
|
|
34981
|
+
var wasOfferOpenRef = React.useRef(false);
|
|
34982
|
+
var restoreFocusRef = React.useRef(false);
|
|
34983
|
+
var resizeTimerRef = React.useRef();
|
|
35102
34984
|
var checkedIndex = views.findIndex(function (_ref2) {
|
|
35103
34985
|
var id = _ref2.id;
|
|
35104
34986
|
return id === value;
|
|
@@ -35108,25 +34990,21 @@
|
|
|
35108
34990
|
var id = _ref3.id;
|
|
35109
34991
|
return id === offerId;
|
|
35110
34992
|
});
|
|
35111
|
-
var previewView = offerView ? undefined : views.find(function (_ref4) {
|
|
35112
|
-
var id = _ref4.id;
|
|
35113
|
-
return id === previewId;
|
|
35114
|
-
});
|
|
35115
34993
|
var select = React.useCallback(function (id) {
|
|
35116
34994
|
if (id === value) {
|
|
35117
34995
|
return;
|
|
35118
34996
|
}
|
|
35119
34997
|
onChange(id);
|
|
35120
|
-
setPreviewId(null);
|
|
35121
34998
|
if (onApplyToAll) {
|
|
34999
|
+
var _trackRef$current$off, _trackRef$current;
|
|
35000
|
+
closedWidthRef.current = (_trackRef$current$off = (_trackRef$current = trackRef.current) === null || _trackRef$current === void 0 ? void 0 : _trackRef$current.offsetWidth) !== null && _trackRef$current$off !== void 0 ? _trackRef$current$off : 0;
|
|
35001
|
+
setOfferPhase("open");
|
|
35122
35002
|
setOfferId(id);
|
|
35123
35003
|
}
|
|
35124
35004
|
}, [onApplyToAll, onChange, value]);
|
|
35125
|
-
|
|
35126
|
-
// The popovers live in a portal, so "inside" covers them as well as the track.
|
|
35127
35005
|
var isInside = function isInside(node) {
|
|
35128
|
-
var _rootRef$current
|
|
35129
|
-
return Boolean(node && ((
|
|
35006
|
+
var _rootRef$current;
|
|
35007
|
+
return Boolean(node && ((_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.contains(node)));
|
|
35130
35008
|
};
|
|
35131
35009
|
var focusChecked = React.useCallback(function () {
|
|
35132
35010
|
if (tabStopId) {
|
|
@@ -35134,6 +35012,70 @@
|
|
|
35134
35012
|
(_optionRefs$current$t = optionRefs.current[tabStopId]) === null || _optionRefs$current$t === void 0 || _optionRefs$current$t.focus();
|
|
35135
35013
|
}
|
|
35136
35014
|
}, [tabStopId]);
|
|
35015
|
+
var closeOffer = React.useCallback(function (restoreFocus) {
|
|
35016
|
+
restoreFocusRef.current = restoreFocus;
|
|
35017
|
+
setOfferId(null);
|
|
35018
|
+
}, []);
|
|
35019
|
+
|
|
35020
|
+
// The buttons and the prompt take turns in the track, so the track holds its width from one to the other.
|
|
35021
|
+
React.useLayoutEffect(function () {
|
|
35022
|
+
var track = trackRef.current;
|
|
35023
|
+
var isOpen = Boolean(offerId);
|
|
35024
|
+
var wasOpen = wasOfferOpenRef.current;
|
|
35025
|
+
wasOfferOpenRef.current = isOpen;
|
|
35026
|
+
if (!track || isOpen === wasOpen) {
|
|
35027
|
+
return;
|
|
35028
|
+
}
|
|
35029
|
+
clearTimeout(resizeTimerRef.current);
|
|
35030
|
+
var from = isOpen ? closedWidthRef.current : track.offsetWidth;
|
|
35031
|
+
track.style.width = "";
|
|
35032
|
+
var natural = track.offsetWidth;
|
|
35033
|
+
var to = isOpen ? Math.max(natural, from) : natural;
|
|
35034
|
+
track.style.overflow = "hidden";
|
|
35035
|
+
track.style.width = "".concat(from, "px");
|
|
35036
|
+
// Without this read the browser skips the start width, and nothing animates.
|
|
35037
|
+
void track.offsetWidth;
|
|
35038
|
+
track.style.width = "".concat(to, "px");
|
|
35039
|
+
if (isOpen) {
|
|
35040
|
+
var _offerActionRef$curre;
|
|
35041
|
+
(_offerActionRef$curre = offerActionRef.current) === null || _offerActionRef$curre === void 0 || _offerActionRef$curre.focus({
|
|
35042
|
+
preventScroll: true
|
|
35043
|
+
});
|
|
35044
|
+
return;
|
|
35045
|
+
}
|
|
35046
|
+
resizeTimerRef.current = setTimeout(function () {
|
|
35047
|
+
track.style.width = "";
|
|
35048
|
+
track.style.overflow = "";
|
|
35049
|
+
}, VIEW_SWITCHER_RESIZE_MS);
|
|
35050
|
+
if (restoreFocusRef.current) {
|
|
35051
|
+
restoreFocusRef.current = false;
|
|
35052
|
+
focusChecked();
|
|
35053
|
+
}
|
|
35054
|
+
}, [focusChecked, offerId]);
|
|
35055
|
+
React.useEffect(function () {
|
|
35056
|
+
return function () {
|
|
35057
|
+
return clearTimeout(resizeTimerRef.current);
|
|
35058
|
+
};
|
|
35059
|
+
}, []);
|
|
35060
|
+
React.useEffect(function () {
|
|
35061
|
+
if (!offerId || offerPhase === "applying") {
|
|
35062
|
+
return undefined;
|
|
35063
|
+
}
|
|
35064
|
+
if (offerPhase === "leaving") {
|
|
35065
|
+
var _timer = setTimeout(function () {
|
|
35066
|
+
closeOffer(isInside(document.activeElement));
|
|
35067
|
+
}, VIEW_SWITCHER_LEAVE_MS);
|
|
35068
|
+
return function () {
|
|
35069
|
+
return clearTimeout(_timer);
|
|
35070
|
+
};
|
|
35071
|
+
}
|
|
35072
|
+
var timer = setTimeout(function () {
|
|
35073
|
+
return setOfferPhase("leaving");
|
|
35074
|
+
}, offerPhase === "applied" ? VIEW_SWITCHER_APPLIED_MS : VIEW_SWITCHER_PROMPT_MS);
|
|
35075
|
+
return function () {
|
|
35076
|
+
return clearTimeout(timer);
|
|
35077
|
+
};
|
|
35078
|
+
}, [closeOffer, offerId, offerPhase]);
|
|
35137
35079
|
React.useEffect(function () {
|
|
35138
35080
|
if (!offerId) {
|
|
35139
35081
|
return undefined;
|
|
@@ -35159,11 +35101,6 @@
|
|
|
35159
35101
|
Home: 0,
|
|
35160
35102
|
End: last
|
|
35161
35103
|
};
|
|
35162
|
-
if (event.key === "Tab" && !event.shiftKey && offerActionRef.current) {
|
|
35163
|
-
event.preventDefault();
|
|
35164
|
-
offerActionRef.current.focus();
|
|
35165
|
-
return;
|
|
35166
|
-
}
|
|
35167
35104
|
var target = targets[event.key];
|
|
35168
35105
|
if (target === undefined) {
|
|
35169
35106
|
return;
|
|
@@ -35175,18 +35112,14 @@
|
|
|
35175
35112
|
};
|
|
35176
35113
|
var handleRootKeyDown = function handleRootKeyDown(event) {
|
|
35177
35114
|
onKeyDown === null || onKeyDown === void 0 || onKeyDown(event);
|
|
35178
|
-
if (event.key !== "Escape" || !offerId
|
|
35115
|
+
if (event.key !== "Escape" || !offerId) {
|
|
35179
35116
|
return;
|
|
35180
35117
|
}
|
|
35181
35118
|
|
|
35182
35119
|
// A native dialog around the switcher would take an Escape that is not prevented as its own close request.
|
|
35183
35120
|
event.preventDefault();
|
|
35184
35121
|
event.stopPropagation();
|
|
35185
|
-
|
|
35186
|
-
if (offerId) {
|
|
35187
|
-
setOfferId(null);
|
|
35188
|
-
focusChecked();
|
|
35189
|
-
}
|
|
35122
|
+
closeOffer(true);
|
|
35190
35123
|
};
|
|
35191
35124
|
var handleRootBlur = function handleRootBlur(event) {
|
|
35192
35125
|
onBlur === null || onBlur === void 0 || onBlur(event);
|
|
@@ -35195,35 +35128,22 @@
|
|
|
35195
35128
|
setOfferId(null);
|
|
35196
35129
|
}
|
|
35197
35130
|
};
|
|
35198
|
-
var
|
|
35199
|
-
if (
|
|
35200
|
-
return;
|
|
35201
|
-
}
|
|
35202
|
-
event.preventDefault();
|
|
35203
|
-
if (event.shiftKey) {
|
|
35204
|
-
focusChecked();
|
|
35131
|
+
var applyToAll = async function applyToAll() {
|
|
35132
|
+
if (!offerId || !onApplyToAll || offerPhase !== "open") {
|
|
35205
35133
|
return;
|
|
35206
35134
|
}
|
|
35207
|
-
|
|
35208
|
-
|
|
35209
|
-
|
|
35210
|
-
|
|
35211
|
-
}
|
|
35212
|
-
|
|
35213
|
-
next.focus();
|
|
35214
|
-
} else {
|
|
35215
|
-
focusChecked();
|
|
35216
|
-
setOfferId(null);
|
|
35135
|
+
var isApplied = false;
|
|
35136
|
+
setOfferPhase("applying");
|
|
35137
|
+
try {
|
|
35138
|
+
isApplied = (await onApplyToAll(offerId)) !== false;
|
|
35139
|
+
} finally {
|
|
35140
|
+
setOfferPhase(isApplied ? "applied" : "leaving");
|
|
35217
35141
|
}
|
|
35218
35142
|
};
|
|
35219
|
-
var
|
|
35220
|
-
if (
|
|
35221
|
-
|
|
35143
|
+
var dismiss = function dismiss() {
|
|
35144
|
+
if (offerPhase === "open") {
|
|
35145
|
+
setOfferPhase("leaving");
|
|
35222
35146
|
}
|
|
35223
|
-
var id = offerId;
|
|
35224
|
-
focusChecked();
|
|
35225
|
-
setOfferId(null);
|
|
35226
|
-
await onApplyToAll(id);
|
|
35227
35147
|
};
|
|
35228
35148
|
return /*#__PURE__*/React__default["default"].createElement(StyledViewSwitcher, _extends({
|
|
35229
35149
|
ref: handleRootRef,
|
|
@@ -35232,13 +35152,37 @@
|
|
|
35232
35152
|
onBlur: handleRootBlur
|
|
35233
35153
|
}, rest), /*#__PURE__*/React__default["default"].createElement(StyledViewSwitcherTrack, {
|
|
35234
35154
|
ref: trackRef,
|
|
35235
|
-
role: "radiogroup",
|
|
35236
|
-
"aria-label": ariaLabel,
|
|
35155
|
+
role: offerView ? undefined : "radiogroup",
|
|
35156
|
+
"aria-label": offerView ? undefined : ariaLabel,
|
|
35237
35157
|
className: "c-view-switcher__track"
|
|
35238
|
-
},
|
|
35158
|
+
}, offerView ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(StyledViewSwitcherPromptTitle, {
|
|
35159
|
+
id: offerTitleId
|
|
35160
|
+
}, offerTitle ? offerTitle(offerView) : "Now in ".concat(offerView.label)), /*#__PURE__*/React__default["default"].createElement(StyledViewSwitcherPrompt, {
|
|
35161
|
+
"aria-labelledby": offerTitleId,
|
|
35162
|
+
className: "c-view-switcher__prompt",
|
|
35163
|
+
"data-phase": offerPhase
|
|
35164
|
+
}, /*#__PURE__*/React__default["default"].createElement(PillButton, {
|
|
35165
|
+
ref: offerActionRef,
|
|
35166
|
+
type: "button",
|
|
35167
|
+
tone: "accent",
|
|
35168
|
+
icon: offerPhase === "applied" ? /*#__PURE__*/React__default["default"].createElement(CheckIcon$1, null) : undefined,
|
|
35169
|
+
placeholder: offerPhase === "applied" ? appliedLabel : applyToAllLabel,
|
|
35170
|
+
onClick: applyToAll
|
|
35171
|
+
}), offerPhase === "applied" ? null : /*#__PURE__*/React__default["default"].createElement(PillButton, {
|
|
35172
|
+
type: "button",
|
|
35173
|
+
tone: "accent",
|
|
35174
|
+
iconOnly: true,
|
|
35175
|
+
icon: /*#__PURE__*/React__default["default"].createElement(CloseIcon$1, null),
|
|
35176
|
+
"aria-label": dismissLabel,
|
|
35177
|
+
className: "c-view-switcher__dismiss",
|
|
35178
|
+
onClick: dismiss
|
|
35179
|
+
}))) : null, offerView ? null : views.map(function (view, index) {
|
|
35239
35180
|
var checked = view.id === value;
|
|
35240
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
35181
|
+
return /*#__PURE__*/React__default["default"].createElement(Tooltip, {
|
|
35241
35182
|
key: view.id,
|
|
35183
|
+
title: view.label,
|
|
35184
|
+
placement: "bottom"
|
|
35185
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledViewSwitcherOption, {
|
|
35242
35186
|
ref: function ref(node) {
|
|
35243
35187
|
optionRefs.current[view.id] = node;
|
|
35244
35188
|
},
|
|
@@ -35253,74 +35197,13 @@
|
|
|
35253
35197
|
},
|
|
35254
35198
|
onKeyDown: function onKeyDown(event) {
|
|
35255
35199
|
return handleOptionKeyDown(event, index);
|
|
35256
|
-
},
|
|
35257
|
-
onMouseEnter: function onMouseEnter() {
|
|
35258
|
-
return setPreviewId(view.id);
|
|
35259
|
-
},
|
|
35260
|
-
onMouseLeave: function onMouseLeave() {
|
|
35261
|
-
return setPreviewId(null);
|
|
35262
|
-
},
|
|
35263
|
-
onFocus: function onFocus(event) {
|
|
35264
|
-
if (matchesFocusVisible(event.currentTarget)) {
|
|
35265
|
-
setPreviewId(view.id);
|
|
35266
|
-
}
|
|
35267
|
-
},
|
|
35268
|
-
onBlur: function onBlur() {
|
|
35269
|
-
return setPreviewId(null);
|
|
35270
35200
|
}
|
|
35271
|
-
}, view.icon);
|
|
35272
|
-
}))
|
|
35273
|
-
anchorEl: optionRefs.current[previewView.id],
|
|
35274
|
-
open: true,
|
|
35275
|
-
placement: "bottom",
|
|
35276
|
-
strategy: "fixed",
|
|
35277
|
-
modifiers: POPOVER_MODIFIERS,
|
|
35278
|
-
style: {
|
|
35279
|
-
zIndex
|
|
35280
|
-
},
|
|
35281
|
-
"aria-hidden": "true"
|
|
35282
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledViewSwitcherPreview, {
|
|
35283
|
-
className: "c-view-switcher__preview"
|
|
35284
|
-
}, previewView.preview ? /*#__PURE__*/React__default["default"].createElement(StyledViewSwitcherThumbnail, null, previewView.preview) : previewView.illustration ? /*#__PURE__*/React__default["default"].createElement(StyledViewSwitcherThumbnail, null, /*#__PURE__*/React__default["default"].createElement(ViewIllustration, {
|
|
35285
|
-
type: previewView.illustration
|
|
35286
|
-
})) : null, /*#__PURE__*/React__default["default"].createElement(Caption1, {
|
|
35287
|
-
weight: "bold",
|
|
35288
|
-
color: "primary"
|
|
35289
|
-
}, previewView.label), previewView.description ? /*#__PURE__*/React__default["default"].createElement(Caption1, {
|
|
35290
|
-
color: "tertiary"
|
|
35291
|
-
}, previewView.description) : null))) : null, offerView ? /*#__PURE__*/React__default["default"].createElement(Portal, null, /*#__PURE__*/React__default["default"].createElement(Popper, {
|
|
35292
|
-
anchorEl: trackRef.current,
|
|
35293
|
-
open: true,
|
|
35294
|
-
placement: "bottom",
|
|
35295
|
-
strategy: "fixed",
|
|
35296
|
-
modifiers: POPOVER_MODIFIERS,
|
|
35297
|
-
style: {
|
|
35298
|
-
zIndex
|
|
35299
|
-
}
|
|
35300
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledViewSwitcherOffer, {
|
|
35301
|
-
ref: offerRef,
|
|
35302
|
-
role: "group",
|
|
35303
|
-
"aria-labelledby": offerTitleId,
|
|
35304
|
-
className: "c-view-switcher__offer"
|
|
35305
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
35306
|
-
className: "c-view-switcher__offer-title"
|
|
35307
|
-
}, offerView.icon, /*#__PURE__*/React__default["default"].createElement(Body2, {
|
|
35308
|
-
id: offerTitleId,
|
|
35309
|
-
weight: "bold",
|
|
35310
|
-
color: "primary"
|
|
35311
|
-
}, offerTitle ? offerTitle(offerView) : "Now in ".concat(offerView.label))), /*#__PURE__*/React__default["default"].createElement(Button, {
|
|
35312
|
-
type: "button",
|
|
35313
|
-
variant: "secondary",
|
|
35314
|
-
size: "small",
|
|
35315
|
-
ref: offerActionRef,
|
|
35316
|
-
className: "c-view-switcher__offer-action",
|
|
35317
|
-
onClick: applyToAll,
|
|
35318
|
-
onKeyDown: handleOfferActionKeyDown
|
|
35319
|
-
}, /*#__PURE__*/React__default["default"].createElement(Caption1, null, applyToAllLabel))))) : null);
|
|
35201
|
+
}, view.icon));
|
|
35202
|
+
})));
|
|
35320
35203
|
});
|
|
35321
35204
|
ViewSwitcher.displayName = "ViewSwitcher";
|
|
35322
35205
|
|
|
35323
|
-
var _excluded$
|
|
35206
|
+
var _excluded$12 = ["options", "value", "onChange", "aria-label", "className"];
|
|
35324
35207
|
/**
|
|
35325
35208
|
* @component ViewSwitcherMenu
|
|
35326
35209
|
* @description
|
|
@@ -35346,7 +35229,7 @@
|
|
|
35346
35229
|
onChange = _ref.onChange,
|
|
35347
35230
|
ariaLabel = _ref["aria-label"],
|
|
35348
35231
|
className = _ref.className,
|
|
35349
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
35232
|
+
rest = _objectWithoutProperties(_ref, _excluded$12);
|
|
35350
35233
|
var _useState = React.useState(false),
|
|
35351
35234
|
_useState2 = _slicedToArray(_useState, 2),
|
|
35352
35235
|
open = _useState2[0],
|
|
@@ -35455,7 +35338,7 @@
|
|
|
35455
35338
|
});
|
|
35456
35339
|
StyledCaretIcon.displayName = "StyledCaretIcon";
|
|
35457
35340
|
|
|
35458
|
-
var _excluded$
|
|
35341
|
+
var _excluded$11 = ["children", "type", "size", "invalid", "open", "endAdornment", "typographyProps", "mode"];
|
|
35459
35342
|
var SelectTrigger = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
35460
35343
|
var children = _ref.children,
|
|
35461
35344
|
_ref$type = _ref.type,
|
|
@@ -35470,7 +35353,7 @@
|
|
|
35470
35353
|
typographyProps = _ref.typographyProps,
|
|
35471
35354
|
_ref$mode = _ref.mode,
|
|
35472
35355
|
mode = _ref$mode === void 0 ? "outlined" : _ref$mode,
|
|
35473
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
35356
|
+
rest = _objectWithoutProperties(_ref, _excluded$11);
|
|
35474
35357
|
var variant = React.useMemo(function () {
|
|
35475
35358
|
if (size === "big") {
|
|
35476
35359
|
return "Body 1";
|
|
@@ -35501,7 +35384,7 @@
|
|
|
35501
35384
|
});
|
|
35502
35385
|
SelectTrigger.displayName = "SelectTrigger";
|
|
35503
35386
|
|
|
35504
|
-
var _excluded
|
|
35387
|
+
var _excluded$10 = ["mode", "selected", "min", "max", "onChange", "target", "triggerMode", "step"];
|
|
35505
35388
|
var renderOption = function renderOption(option) {
|
|
35506
35389
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
35507
35390
|
id: option.id
|
|
@@ -35520,7 +35403,7 @@
|
|
|
35520
35403
|
triggerMode = _ref.triggerMode,
|
|
35521
35404
|
_ref$step = _ref.step,
|
|
35522
35405
|
step = _ref$step === void 0 ? 15 : _ref$step,
|
|
35523
|
-
rest = _objectWithoutProperties(_ref, _excluded
|
|
35406
|
+
rest = _objectWithoutProperties(_ref, _excluded$10);
|
|
35524
35407
|
var generateTimeOptions = function generateTimeOptions() {
|
|
35525
35408
|
var minTime = moment__default$1["default"](isValidTime(min) ? min : "00:00", "HH:mm");
|
|
35526
35409
|
var maxTime = moment__default$1["default"](isValidTime(max) ? max : "23:45", "HH:mm");
|
|
@@ -35584,7 +35467,7 @@
|
|
|
35584
35467
|
}, FontStyle, BoxSizingStyle);
|
|
35585
35468
|
StyledObjectFormModal.displayName = "StyledObjectFormModal";
|
|
35586
35469
|
|
|
35587
|
-
var _excluded
|
|
35470
|
+
var _excluded$$ = ["children", "open", "onClose", "label", "size", "dismissOnBackdropClick", "onBackdropClickBlocked", "enableBackgroundClick", "disableCloseOnEsc", "disableFocusLock", "fill", "closeButton", "closeLabel", "className"];
|
|
35588
35471
|
// Menus and pickers opened from the form keep the layer they had before the form became a native modal.
|
|
35589
35472
|
var MODAL_LAYER = {
|
|
35590
35473
|
zIndex: layers.skyscraper
|
|
@@ -35611,7 +35494,7 @@
|
|
|
35611
35494
|
_ref$closeLabel = _ref.closeLabel,
|
|
35612
35495
|
closeLabel = _ref$closeLabel === void 0 ? "Close" : _ref$closeLabel,
|
|
35613
35496
|
className = _ref.className,
|
|
35614
|
-
rest = _objectWithoutProperties(_ref, _excluded
|
|
35497
|
+
rest = _objectWithoutProperties(_ref, _excluded$$);
|
|
35615
35498
|
var _useState = React.useState(null),
|
|
35616
35499
|
_useState2 = _slicedToArray(_useState, 2),
|
|
35617
35500
|
surfaceNode = _useState2[0],
|
|
@@ -35658,7 +35541,7 @@
|
|
|
35658
35541
|
})(["position:absolute;inset:0;"]);
|
|
35659
35542
|
StyledMediaViewer.displayName = "StyledMediaViewer";
|
|
35660
35543
|
|
|
35661
|
-
var _excluded$
|
|
35544
|
+
var _excluded$_ = ["open", "onClose", "children", "className"];
|
|
35662
35545
|
var MEDIA_VIEWER_FADE_MS = 250;
|
|
35663
35546
|
/**
|
|
35664
35547
|
* A full-viewport native modal for a file, image or video viewer, without a card. It opens on top of every other
|
|
@@ -35669,7 +35552,7 @@
|
|
|
35669
35552
|
onClose = _ref.onClose,
|
|
35670
35553
|
children = _ref.children,
|
|
35671
35554
|
className = _ref.className,
|
|
35672
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
35555
|
+
rest = _objectWithoutProperties(_ref, _excluded$_);
|
|
35673
35556
|
var _useState = React.useState(open),
|
|
35674
35557
|
_useState2 = _slicedToArray(_useState, 2),
|
|
35675
35558
|
innerOpen = _useState2[0],
|
|
@@ -35750,13 +35633,13 @@
|
|
|
35750
35633
|
});
|
|
35751
35634
|
StyledToggle.displayName = "StyledToggle";
|
|
35752
35635
|
|
|
35753
|
-
var _excluded$
|
|
35636
|
+
var _excluded$Z = ["hovered", "className", "size"];
|
|
35754
35637
|
var Toggle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
35755
35638
|
var hovered = _ref.hovered,
|
|
35756
35639
|
className = _ref.className,
|
|
35757
35640
|
_ref$size = _ref.size,
|
|
35758
35641
|
size = _ref$size === void 0 ? "regular" : _ref$size,
|
|
35759
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
35642
|
+
args = _objectWithoutProperties(_ref, _excluded$Z);
|
|
35760
35643
|
return /*#__PURE__*/React__default["default"].createElement(StyledToggle, {
|
|
35761
35644
|
className: classnames__default["default"]("c-toggle", "c-toggle--".concat(size), className),
|
|
35762
35645
|
$isHovered: hovered,
|
|
@@ -35800,14 +35683,14 @@
|
|
|
35800
35683
|
})(["display:flex;flex-shrink:0;align-items:center;justify-content:center;width:20px;svg{fill:var(--color-primary);}"]);
|
|
35801
35684
|
StyledAddRowIcon.displayName = "StyledAddRowIcon";
|
|
35802
35685
|
|
|
35803
|
-
var _excluded$
|
|
35686
|
+
var _excluded$Y = ["text", "className", "appearance", "trailing"];
|
|
35804
35687
|
var AddToListButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
35805
35688
|
var text = _ref.text,
|
|
35806
35689
|
className = _ref.className,
|
|
35807
35690
|
_ref$appearance = _ref.appearance,
|
|
35808
35691
|
appearance = _ref$appearance === void 0 ? "pill" : _ref$appearance,
|
|
35809
35692
|
trailing = _ref.trailing,
|
|
35810
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
35693
|
+
rest = _objectWithoutProperties(_ref, _excluded$Y);
|
|
35811
35694
|
if (appearance === "row") {
|
|
35812
35695
|
return /*#__PURE__*/React__default["default"].createElement(StyledAddRow$1, {
|
|
35813
35696
|
className: classnames__default["default"]("c--add-to-list-row", className)
|
|
@@ -36079,7 +35962,7 @@
|
|
|
36079
35962
|
});
|
|
36080
35963
|
StyledMedia.displayName = "StyledMedia";
|
|
36081
35964
|
|
|
36082
|
-
var _excluded$
|
|
35965
|
+
var _excluded$X = ["src", "alt", "variant", "caption", "width", "height", "density"];
|
|
36083
35966
|
/** A tall image (height greater than width) is capped at this display height. */
|
|
36084
35967
|
var MEDIA_PORTRAIT_MAX_HEIGHT = 680;
|
|
36085
35968
|
|
|
@@ -36126,7 +36009,7 @@
|
|
|
36126
36009
|
width = _ref.width,
|
|
36127
36010
|
height = _ref.height,
|
|
36128
36011
|
density = _ref.density,
|
|
36129
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
36012
|
+
rest = _objectWithoutProperties(_ref, _excluded$X);
|
|
36130
36013
|
var size = displaySize(width, height);
|
|
36131
36014
|
return /*#__PURE__*/React__default["default"].createElement(StyledMedia, _extends({
|
|
36132
36015
|
ref: ref,
|
|
@@ -36164,13 +36047,13 @@
|
|
|
36164
36047
|
});
|
|
36165
36048
|
StyledStack.displayName = "StyledStack";
|
|
36166
36049
|
|
|
36167
|
-
var _excluded$
|
|
36050
|
+
var _excluded$W = ["space", "align", "children"];
|
|
36168
36051
|
var Stack = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
36169
36052
|
var _ref$space = _ref.space,
|
|
36170
36053
|
space = _ref$space === void 0 ? "md" : _ref$space,
|
|
36171
36054
|
align = _ref.align,
|
|
36172
36055
|
children = _ref.children,
|
|
36173
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
36056
|
+
rest = _objectWithoutProperties(_ref, _excluded$W);
|
|
36174
36057
|
return /*#__PURE__*/React__default["default"].createElement(StyledStack, _extends({
|
|
36175
36058
|
ref: ref,
|
|
36176
36059
|
$space: space,
|
|
@@ -36179,7 +36062,7 @@
|
|
|
36179
36062
|
});
|
|
36180
36063
|
Stack.displayName = "Stack";
|
|
36181
36064
|
|
|
36182
|
-
var _excluded$
|
|
36065
|
+
var _excluded$V = ["title", "variant", "children"];
|
|
36183
36066
|
|
|
36184
36067
|
/** Heading typography of a TitledText — a component prop, not wire data. */
|
|
36185
36068
|
|
|
@@ -36211,7 +36094,7 @@
|
|
|
36211
36094
|
_ref2$variant = _ref2.variant,
|
|
36212
36095
|
variant = _ref2$variant === void 0 ? "header2" : _ref2$variant,
|
|
36213
36096
|
children = _ref2.children,
|
|
36214
|
-
rest = _objectWithoutProperties(_ref2, _excluded$
|
|
36097
|
+
rest = _objectWithoutProperties(_ref2, _excluded$V);
|
|
36215
36098
|
var Heading = (_titledTextHeadings$v = titledTextHeadings[variant]) !== null && _titledTextHeadings$v !== void 0 ? _titledTextHeadings$v : titledTextHeadings.header2;
|
|
36216
36099
|
return /*#__PURE__*/React__default["default"].createElement(Stack, _extends({
|
|
36217
36100
|
ref: ref,
|
|
@@ -36410,7 +36293,7 @@
|
|
|
36410
36293
|
}
|
|
36411
36294
|
};
|
|
36412
36295
|
|
|
36413
|
-
var _excluded$
|
|
36296
|
+
var _excluded$U = ["content", "components", "space"];
|
|
36414
36297
|
var defaultUnknownTypeHandler = function defaultUnknownTypeHandler(kind, type) {
|
|
36415
36298
|
console.warn("PortableText: no renderer for ".concat(kind, " type \"").concat(type, "\"."));
|
|
36416
36299
|
};
|
|
@@ -36508,7 +36391,7 @@
|
|
|
36508
36391
|
components = _ref2.components,
|
|
36509
36392
|
_ref2$space = _ref2.space,
|
|
36510
36393
|
space = _ref2$space === void 0 ? "md" : _ref2$space,
|
|
36511
|
-
rest = _objectWithoutProperties(_ref2, _excluded$
|
|
36394
|
+
rest = _objectWithoutProperties(_ref2, _excluded$U);
|
|
36512
36395
|
// Memoized so unknown types are reported once per type for a given
|
|
36513
36396
|
// content/components pair, not again on every parent re-render.
|
|
36514
36397
|
var nodes = React.useMemo(function () {
|
|
@@ -36578,7 +36461,7 @@
|
|
|
36578
36461
|
})(["height:0.25rem;"]);
|
|
36579
36462
|
StyledPresenceEnd.displayName = "StyledPresenceEnd";
|
|
36580
36463
|
|
|
36581
|
-
var _excluded$
|
|
36464
|
+
var _excluded$T = ["faces", "limit", "expanded", "onExpandedChange", "onFaceClick", "labels", "className", "data-testid"];
|
|
36582
36465
|
var AVATAR_SIZE = 32;
|
|
36583
36466
|
var DEFAULT_LABELS$2 = {
|
|
36584
36467
|
group: "Here now",
|
|
@@ -36601,7 +36484,7 @@
|
|
|
36601
36484
|
labels = _ref.labels,
|
|
36602
36485
|
className = _ref.className,
|
|
36603
36486
|
testId = _ref["data-testid"],
|
|
36604
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
36487
|
+
rest = _objectWithoutProperties(_ref, _excluded$T);
|
|
36605
36488
|
var partTestId = function partTestId(part) {
|
|
36606
36489
|
return testId ? "".concat(testId, "-").concat(part) : undefined;
|
|
36607
36490
|
};
|
|
@@ -36810,7 +36693,7 @@
|
|
|
36810
36693
|
});
|
|
36811
36694
|
StyledProgressRingPercentage.displayName = "StyledProgressRingPercentage";
|
|
36812
36695
|
|
|
36813
|
-
var _excluded$
|
|
36696
|
+
var _excluded$S = ["className", "children"];
|
|
36814
36697
|
var ProgressCircle = function ProgressCircle(_ref) {
|
|
36815
36698
|
var backgroundColor = _ref.backgroundColor,
|
|
36816
36699
|
progressColor = _ref.progressColor,
|
|
@@ -36887,7 +36770,7 @@
|
|
|
36887
36770
|
var ProgressRing = function ProgressRing(_ref2) {
|
|
36888
36771
|
var className = _ref2.className,
|
|
36889
36772
|
children = _ref2.children,
|
|
36890
|
-
rest = _objectWithoutProperties(_ref2, _excluded$
|
|
36773
|
+
rest = _objectWithoutProperties(_ref2, _excluded$S);
|
|
36891
36774
|
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
36892
36775
|
className: classnames__default["default"](className),
|
|
36893
36776
|
"data-testid": "progress-ring"
|
|
@@ -36895,11 +36778,11 @@
|
|
|
36895
36778
|
};
|
|
36896
36779
|
ProgressRing.displayName = "ProgressRing";
|
|
36897
36780
|
|
|
36898
|
-
var _excluded$
|
|
36781
|
+
var _excluded$R = ["radius"];
|
|
36899
36782
|
var ProgressPie = function ProgressPie(_ref) {
|
|
36900
36783
|
var _ref$radius = _ref.radius,
|
|
36901
36784
|
radius = _ref$radius === void 0 ? 20 : _ref$radius,
|
|
36902
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
36785
|
+
rest = _objectWithoutProperties(_ref, _excluded$R);
|
|
36903
36786
|
return /*#__PURE__*/React__default["default"].createElement(ProgressCircle, _extends({}, rest, {
|
|
36904
36787
|
stroke: radius,
|
|
36905
36788
|
radius: radius
|
|
@@ -37354,7 +37237,7 @@
|
|
|
37354
37237
|
})(["box-sizing:border-box;display:inline-flex;height:21px;align-items:center;border-radius:4px;padding:0 6px;@supports (color:light-dark(red,red)){background-color:", ";& .typography{color:light-dark( var(--project-chip-ink),var(--project-glow-dark) ) !important;}}"], PROJECT_GLOW_COLOR);
|
|
37355
37238
|
StyledProjectColorChip.displayName = "StyledProjectColorChip";
|
|
37356
37239
|
|
|
37357
|
-
var _excluded$
|
|
37240
|
+
var _excluded$Q = ["glow", "ink", "children", "className", "style"];
|
|
37358
37241
|
/** The project number on a tint of the project color: the chip color mode of the list and the Project Details button. */
|
|
37359
37242
|
var ProjectColorChip = function ProjectColorChip(_ref) {
|
|
37360
37243
|
var glow = _ref.glow,
|
|
@@ -37362,7 +37245,7 @@
|
|
|
37362
37245
|
children = _ref.children,
|
|
37363
37246
|
className = _ref.className,
|
|
37364
37247
|
style = _ref.style,
|
|
37365
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
37248
|
+
rest = _objectWithoutProperties(_ref, _excluded$Q);
|
|
37366
37249
|
return /*#__PURE__*/React__default["default"].createElement(StyledProjectColorChip, _extends({}, rest, {
|
|
37367
37250
|
"data-project-color": "chip",
|
|
37368
37251
|
className: classnames__default["default"]("c-project-color-chip", className),
|
|
@@ -37762,7 +37645,7 @@
|
|
|
37762
37645
|
};
|
|
37763
37646
|
};
|
|
37764
37647
|
|
|
37765
|
-
var _excluded$
|
|
37648
|
+
var _excluded$P = ["className", "variant", "weight", "disabled", "inputProps", "wrapRef", "children", "invalid", "onMouseLeave"];
|
|
37766
37649
|
var EditableContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
37767
37650
|
var className = _ref.className,
|
|
37768
37651
|
_ref$variant = _ref.variant,
|
|
@@ -37775,7 +37658,7 @@
|
|
|
37775
37658
|
children = _ref.children,
|
|
37776
37659
|
invalid = _ref.invalid,
|
|
37777
37660
|
onMouseLeave = _ref.onMouseLeave,
|
|
37778
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
37661
|
+
props = _objectWithoutProperties(_ref, _excluded$P);
|
|
37779
37662
|
var intInputRef = React.useRef(null);
|
|
37780
37663
|
var handleRef = useForkRef(ref, intInputRef);
|
|
37781
37664
|
var _useHoverSuppression = useHoverSuppression(),
|
|
@@ -37909,7 +37792,7 @@
|
|
|
37909
37792
|
};
|
|
37910
37793
|
};
|
|
37911
37794
|
|
|
37912
|
-
var _excluded$
|
|
37795
|
+
var _excluded$O = ["onSave", "onCancel", "value", "inputProps", "allowEmptyString", "multiline", "submitOnMetaEnter", "wrap", "variant", "weight", "disabled", "invalid", "wrapRef", "children"],
|
|
37913
37796
|
_excluded2$a = ["onMouseLeave"];
|
|
37914
37797
|
var EditableText = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
37915
37798
|
var onSave = _ref.onSave,
|
|
@@ -37931,7 +37814,7 @@
|
|
|
37931
37814
|
invalid = _ref.invalid,
|
|
37932
37815
|
wrapRef = _ref.wrapRef,
|
|
37933
37816
|
children = _ref.children,
|
|
37934
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
37817
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
37935
37818
|
var mode = wrap ? "wrap" : multiline ? "multiline" : "single";
|
|
37936
37819
|
var _useEditableText = useEditableText({
|
|
37937
37820
|
value,
|
|
@@ -38053,7 +37936,7 @@
|
|
|
38053
37936
|
});
|
|
38054
37937
|
EditableText.displayName = "EditableText";
|
|
38055
37938
|
|
|
38056
|
-
var _excluded$
|
|
37939
|
+
var _excluded$N = ["value", "onCancel", "onSave", "allowEmptyValue", "withLeadingZero", "validation", "incrementOnlySelected", "minuteIncrement", "className", "onEnterKeyPress", "inputProps", "onClick", "ticking", "onFocus"];
|
|
38057
37940
|
var StyledEditableContent = styled__default["default"](EditableContent).withConfig({
|
|
38058
37941
|
displayName: "EditableHours__StyledEditableContent",
|
|
38059
37942
|
componentId: "sc-nvi34j-0"
|
|
@@ -38080,7 +37963,7 @@
|
|
|
38080
37963
|
externalOnClick = _ref2.onClick,
|
|
38081
37964
|
ticking = _ref2.ticking,
|
|
38082
37965
|
onFocus = _ref2.onFocus,
|
|
38083
|
-
rest = _objectWithoutProperties(_ref2, _excluded$
|
|
37966
|
+
rest = _objectWithoutProperties(_ref2, _excluded$N);
|
|
38084
37967
|
var inputRef = React.useRef(null);
|
|
38085
37968
|
var handleRef = useForkRef(ref, inputRef);
|
|
38086
37969
|
var _useInputHours = useInputHours({
|
|
@@ -38152,7 +38035,7 @@
|
|
|
38152
38035
|
});
|
|
38153
38036
|
EditableHours.displayName = "EditableHours";
|
|
38154
38037
|
|
|
38155
|
-
var _excluded$
|
|
38038
|
+
var _excluded$M = ["decimalLength", "decimalSeparator", "disableAbbreviation", "disabled", "disableMacros", "step", "thousandSeparator", "value", "onSave", "onCancel", "className", "allowEmptyValue", "onEnterKeyPress", "onClick", "onChange", "trimDecimals", "min", "max", "invalid"];
|
|
38156
38039
|
var EditableCurrency = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
38157
38040
|
var _ref$decimalLength = _ref.decimalLength,
|
|
38158
38041
|
decimalLength = _ref$decimalLength === void 0 ? 2 : _ref$decimalLength,
|
|
@@ -38180,7 +38063,7 @@
|
|
|
38180
38063
|
min = _ref.min,
|
|
38181
38064
|
max = _ref.max,
|
|
38182
38065
|
invalid = _ref.invalid,
|
|
38183
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
38066
|
+
rest = _objectWithoutProperties(_ref, _excluded$M);
|
|
38184
38067
|
var inputRef = React.useRef(null);
|
|
38185
38068
|
var handleRef = useForkRef(ref, inputRef);
|
|
38186
38069
|
var _useInputNumber = useInputNumber({
|
|
@@ -38235,11 +38118,11 @@
|
|
|
38235
38118
|
});
|
|
38236
38119
|
EditableCurrency.displayName = "EditableCurrency";
|
|
38237
38120
|
|
|
38238
|
-
var _excluded$
|
|
38121
|
+
var _excluded$L = ["withDocuments"];
|
|
38239
38122
|
var FolderIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, svgRef) {
|
|
38240
38123
|
var _ref$withDocuments = _ref.withDocuments,
|
|
38241
38124
|
withDocuments = _ref$withDocuments === void 0 ? false : _ref$withDocuments,
|
|
38242
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38125
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
38243
38126
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
38244
38127
|
width: 100,
|
|
38245
38128
|
height: 100,
|
|
@@ -38382,7 +38265,7 @@
|
|
|
38382
38265
|
return $renderAs === "list" && styled.css(["justify-self:flex-end;"]);
|
|
38383
38266
|
});
|
|
38384
38267
|
|
|
38385
|
-
var _excluded$
|
|
38268
|
+
var _excluded$K = ["children", "gap", "renderAs"];
|
|
38386
38269
|
var EntityGroupContext = /*#__PURE__*/React__default["default"].createContext({
|
|
38387
38270
|
renderAs: "grid"
|
|
38388
38271
|
});
|
|
@@ -38391,7 +38274,7 @@
|
|
|
38391
38274
|
gap = _ref.gap,
|
|
38392
38275
|
_ref$renderAs = _ref.renderAs,
|
|
38393
38276
|
renderAs = _ref$renderAs === void 0 ? "grid" : _ref$renderAs,
|
|
38394
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
38277
|
+
rest = _objectWithoutProperties(_ref, _excluded$K);
|
|
38395
38278
|
var value = React.useMemo(function () {
|
|
38396
38279
|
return {
|
|
38397
38280
|
renderAs
|
|
@@ -38406,14 +38289,14 @@
|
|
|
38406
38289
|
};
|
|
38407
38290
|
EntityGroup.displayName = "EntityGroup";
|
|
38408
38291
|
|
|
38409
|
-
var _excluded$
|
|
38292
|
+
var _excluded$J = ["children", "isCollection", "background", "className", "as"];
|
|
38410
38293
|
var EntityCard = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
38411
38294
|
var children = _ref.children,
|
|
38412
38295
|
isCollection = _ref.isCollection,
|
|
38413
38296
|
background = _ref.background,
|
|
38414
38297
|
className = _ref.className,
|
|
38415
38298
|
as = _ref.as,
|
|
38416
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
38299
|
+
rest = _objectWithoutProperties(_ref, _excluded$J);
|
|
38417
38300
|
var _useContext = React.useContext(EntityGroupContext),
|
|
38418
38301
|
renderAs = _useContext.renderAs;
|
|
38419
38302
|
var classSuffix = "c-entity-card-".concat(renderAs);
|
|
@@ -38432,13 +38315,13 @@
|
|
|
38432
38315
|
});
|
|
38433
38316
|
EntityCard.displayName = "EntityCard";
|
|
38434
38317
|
|
|
38435
|
-
var _excluded$
|
|
38318
|
+
var _excluded$I = ["listOrder", "listWidth", "visibleFromBreakpoint", "className"];
|
|
38436
38319
|
var EntityProperty = function EntityProperty(_ref) {
|
|
38437
38320
|
var listOrder = _ref.listOrder,
|
|
38438
38321
|
listWidth = _ref.listWidth,
|
|
38439
38322
|
visibleFromBreakpoint = _ref.visibleFromBreakpoint,
|
|
38440
38323
|
className = _ref.className,
|
|
38441
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38324
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
38442
38325
|
var _useContext = React.useContext(EntityGroupContext),
|
|
38443
38326
|
renderAs = _useContext.renderAs;
|
|
38444
38327
|
var classSuffix = "c-entity-property-".concat(renderAs);
|
|
@@ -38453,10 +38336,10 @@
|
|
|
38453
38336
|
};
|
|
38454
38337
|
EntityProperty.displayName = "EntityProperty";
|
|
38455
38338
|
|
|
38456
|
-
var _excluded$
|
|
38339
|
+
var _excluded$H = ["children"];
|
|
38457
38340
|
var EntitySeparator = function EntitySeparator(_ref) {
|
|
38458
38341
|
var children = _ref.children,
|
|
38459
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
38342
|
+
rest = _objectWithoutProperties(_ref, _excluded$H);
|
|
38460
38343
|
return /*#__PURE__*/React__default["default"].createElement(_StyledDiv, rest, children);
|
|
38461
38344
|
};
|
|
38462
38345
|
var _StyledDiv = styled__default["default"]("div").withConfig({
|
|
@@ -38707,7 +38590,7 @@
|
|
|
38707
38590
|
componentId: "sc-bna484-1"
|
|
38708
38591
|
})(["&&{background-color:color-mix(in srgb,var(--color-primary) 25%,transparent);border-radius:50%;flex-shrink:0;height:20px;left:5px;min-height:20px;min-width:20px;padding:0;position:relative;width:20px;&:hover{background-color:color-mix( in srgb,var(--color-primary) 40%,transparent );}svg{fill:var(--color-theme-900);height:14px;width:14px;}}"]);
|
|
38709
38592
|
|
|
38710
|
-
var _excluded$
|
|
38593
|
+
var _excluded$G = ["value", "onChange", "placeholder", "clearLabel", "shortcut", "debounce", "size", "onKeyDown"];
|
|
38711
38594
|
var isMac = function isMac() {
|
|
38712
38595
|
return typeof navigator !== "undefined" && /Mac|iPhone|iPad/.test(navigator.platform);
|
|
38713
38596
|
};
|
|
@@ -38729,7 +38612,7 @@
|
|
|
38729
38612
|
_ref$size = _ref.size,
|
|
38730
38613
|
size = _ref$size === void 0 ? "regular" : _ref$size,
|
|
38731
38614
|
onKeyDown = _ref.onKeyDown,
|
|
38732
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
38615
|
+
rest = _objectWithoutProperties(_ref, _excluded$G);
|
|
38733
38616
|
var inputRef = React.useRef(null);
|
|
38734
38617
|
var handleRef = useForkRef(ref, inputRef);
|
|
38735
38618
|
var _useState = React.useState(value),
|
|
@@ -38816,7 +38699,7 @@
|
|
|
38816
38699
|
});
|
|
38817
38700
|
FilterInput.displayName = "FilterInput";
|
|
38818
38701
|
|
|
38819
|
-
var _excluded$
|
|
38702
|
+
var _excluded$F = ["id", "title", "submenu", "searchPlaceholder", "disableInternalSort", "isSingleSelect", "defaultValue", "type", "inputPlaceholder", "saveLabel", "clearLabel"];
|
|
38820
38703
|
var Filter = function Filter(_ref) {
|
|
38821
38704
|
var data = _ref.data,
|
|
38822
38705
|
_ref$selected = _ref.selected,
|
|
@@ -39012,7 +38895,7 @@
|
|
|
39012
38895
|
_ref2$saveLabel = _ref2.saveLabel,
|
|
39013
38896
|
saveLabel = _ref2$saveLabel === void 0 ? "Save" : _ref2$saveLabel,
|
|
39014
38897
|
clearLabel = _ref2.clearLabel,
|
|
39015
|
-
rest = _objectWithoutProperties(_ref2, _excluded$
|
|
38898
|
+
rest = _objectWithoutProperties(_ref2, _excluded$F);
|
|
39016
38899
|
return /*#__PURE__*/React__default["default"].createElement(SlideLeftRightTransition, {
|
|
39017
38900
|
key: "filter-submenu-".concat(index),
|
|
39018
38901
|
in: menu === id,
|
|
@@ -39486,7 +39369,7 @@
|
|
|
39486
39369
|
});
|
|
39487
39370
|
StyledIdentityMark.displayName = "StyledIdentityMark";
|
|
39488
39371
|
|
|
39489
|
-
var _excluded$
|
|
39372
|
+
var _excluded$E = ["size", "initials", "color", "textColor", "tint", "src", "tile", "icon", "className", "style"];
|
|
39490
39373
|
var HEX_COLOR$1 = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
39491
39374
|
var DARK_INK = "#1F1F1F";
|
|
39492
39375
|
var LIGHT_INK = "#FFFFFF";
|
|
@@ -39519,7 +39402,7 @@
|
|
|
39519
39402
|
icon = _ref.icon,
|
|
39520
39403
|
className = _ref.className,
|
|
39521
39404
|
style = _ref.style,
|
|
39522
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
39405
|
+
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
39523
39406
|
var _useState = React.useState(null),
|
|
39524
39407
|
_useState2 = _slicedToArray(_useState, 2),
|
|
39525
39408
|
failedSrc = _useState2[0],
|
|
@@ -39579,7 +39462,7 @@
|
|
|
39579
39462
|
return props.size + "px";
|
|
39580
39463
|
});
|
|
39581
39464
|
|
|
39582
|
-
var _excluded$
|
|
39465
|
+
var _excluded$D = ["limit", "size", "children", "hasTooltip", "className"];
|
|
39583
39466
|
var AvatarGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
39584
39467
|
var _Children$toArray;
|
|
39585
39468
|
var limit = _ref.limit,
|
|
@@ -39589,7 +39472,7 @@
|
|
|
39589
39472
|
_ref$hasTooltip = _ref.hasTooltip,
|
|
39590
39473
|
hasTooltip = _ref$hasTooltip === void 0 ? false : _ref$hasTooltip,
|
|
39591
39474
|
className = _ref.className,
|
|
39592
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
39475
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
39593
39476
|
// always display counter with min +2 as +1 can takes space of an 1 more Avatar
|
|
39594
39477
|
var minChildren = React.Children.count(children) - limit > 1 ? false : true;
|
|
39595
39478
|
// gap between Avatars
|
|
@@ -39755,14 +39638,14 @@
|
|
|
39755
39638
|
return React.useContext(SearchContext);
|
|
39756
39639
|
};
|
|
39757
39640
|
|
|
39758
|
-
var _excluded$
|
|
39641
|
+
var _excluded$C = ["title", "renderIcon", "className", "index", "as"];
|
|
39759
39642
|
var CommandPaletteCommandItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
39760
39643
|
var title = _ref.title,
|
|
39761
39644
|
renderIcon = _ref.renderIcon,
|
|
39762
39645
|
className = _ref.className,
|
|
39763
39646
|
index = _ref.index,
|
|
39764
39647
|
as = _ref.as,
|
|
39765
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
39648
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
39766
39649
|
var Component = as || "a";
|
|
39767
39650
|
var icon = renderIcon();
|
|
39768
39651
|
var _useSelectedContext = useSelectedContext(),
|
|
@@ -39931,7 +39814,7 @@
|
|
|
39931
39814
|
return "";
|
|
39932
39815
|
};
|
|
39933
39816
|
|
|
39934
|
-
var _excluded$
|
|
39817
|
+
var _excluded$B = ["title", "renderIcon", "className", "index", "loading", "as"];
|
|
39935
39818
|
var generateRandomWidth = function generateRandomWidth() {
|
|
39936
39819
|
// generate range 30-80
|
|
39937
39820
|
var randomNum = Math.round(Math.random() * 30 + 30);
|
|
@@ -39944,7 +39827,7 @@
|
|
|
39944
39827
|
index = _ref.index,
|
|
39945
39828
|
loading = _ref.loading,
|
|
39946
39829
|
as = _ref.as,
|
|
39947
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
39830
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
39948
39831
|
var Component = as || "a";
|
|
39949
39832
|
var icon = renderIcon && renderIcon();
|
|
39950
39833
|
var _useSelectedContext = useSelectedContext(),
|
|
@@ -40031,7 +39914,7 @@
|
|
|
40031
39914
|
});
|
|
40032
39915
|
};
|
|
40033
39916
|
|
|
40034
|
-
var _excluded$
|
|
39917
|
+
var _excluded$A = ["children", "onChangeSearch", "search", "mode", "setMode", "loading", "idModeEnabled", "aria-label"];
|
|
40035
39918
|
var _CommandPalette = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
40036
39919
|
var children = _ref.children,
|
|
40037
39920
|
onChangeSearch = _ref.onChangeSearch,
|
|
@@ -40042,7 +39925,7 @@
|
|
|
40042
39925
|
_ref$idModeEnabled = _ref.idModeEnabled,
|
|
40043
39926
|
idModeEnabled = _ref$idModeEnabled === void 0 ? false : _ref$idModeEnabled,
|
|
40044
39927
|
ariaLabel = _ref["aria-label"],
|
|
40045
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
39928
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
40046
39929
|
var _useState = React.useState(0),
|
|
40047
39930
|
_useState2 = _slicedToArray(_useState, 2),
|
|
40048
39931
|
selected = _useState2[0],
|
|
@@ -40221,7 +40104,7 @@
|
|
|
40221
40104
|
})(["font-size:calc(14px * var(--text-scale,1));line-height:17px;font-weight:600;letter-spacing:-0.01em;white-space:nowrap;"]);
|
|
40222
40105
|
StyledCommentsRailText.displayName = "StyledCommentsRailText";
|
|
40223
40106
|
|
|
40224
|
-
var _excluded$
|
|
40107
|
+
var _excluded$z = ["commentsCount", "historyCount", "onOpen", "onWrite", "width", "labels", "className", "style"];
|
|
40225
40108
|
|
|
40226
40109
|
/** The width of the folded comments panel, COMMENTS_RAIL_WIDTH in the frontend. */
|
|
40227
40110
|
var COMMENTS_RAIL_WIDTH = 44;
|
|
@@ -40285,7 +40168,7 @@
|
|
|
40285
40168
|
labels = _ref.labels,
|
|
40286
40169
|
className = _ref.className,
|
|
40287
40170
|
style = _ref.style,
|
|
40288
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
40171
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
40289
40172
|
var text = _objectSpread2(_objectSpread2({}, DEFAULT_LABELS$1), labels);
|
|
40290
40173
|
return /*#__PURE__*/React__default["default"].createElement(StyledCommentsRail, _extends({}, rest, {
|
|
40291
40174
|
ref: ref,
|
|
@@ -40409,14 +40292,14 @@
|
|
|
40409
40292
|
componentId: "sc-jfbqky-16"
|
|
40410
40293
|
})(["display:flex;flex-direction:column;flex:1;min-width:0;"]);
|
|
40411
40294
|
|
|
40412
|
-
var _excluded$
|
|
40295
|
+
var _excluded$y = ["icon", "tone", "className", "children"];
|
|
40413
40296
|
var EmptySlateAddRow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
40414
40297
|
var icon = _ref.icon,
|
|
40415
40298
|
_ref$tone = _ref.tone,
|
|
40416
40299
|
tone = _ref$tone === void 0 ? "primary" : _ref$tone,
|
|
40417
40300
|
className = _ref.className,
|
|
40418
40301
|
children = _ref.children,
|
|
40419
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
40302
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
40420
40303
|
return /*#__PURE__*/React__default["default"].createElement(StyledAddRow, _extends({
|
|
40421
40304
|
type: "button"
|
|
40422
40305
|
}, rest, {
|
|
@@ -40432,22 +40315,22 @@
|
|
|
40432
40315
|
});
|
|
40433
40316
|
EmptySlateAddRow.displayName = "EmptySlateAddRow";
|
|
40434
40317
|
|
|
40435
|
-
var _excluded$
|
|
40318
|
+
var _excluded$x = ["children"];
|
|
40436
40319
|
|
|
40437
40320
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
40438
40321
|
|
|
40439
40322
|
var EmptySlateFooter = function EmptySlateFooter(_ref) {
|
|
40440
40323
|
var children = _ref.children,
|
|
40441
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
40324
|
+
rest = _objectWithoutProperties(_ref, _excluded$x);
|
|
40442
40325
|
return /*#__PURE__*/React__default["default"].createElement(FooterContainer, rest, children);
|
|
40443
40326
|
};
|
|
40444
40327
|
EmptySlateFooter.displayName = "EmptySlateFooter";
|
|
40445
40328
|
|
|
40446
|
-
var _excluded$
|
|
40329
|
+
var _excluded$w = ["items", "className"];
|
|
40447
40330
|
var EmptySlateIdeas = function EmptySlateIdeas(_ref) {
|
|
40448
40331
|
var items = _ref.items,
|
|
40449
40332
|
className = _ref.className,
|
|
40450
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
40333
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
40451
40334
|
return /*#__PURE__*/React__default["default"].createElement(IdeasList, _extends({}, rest, {
|
|
40452
40335
|
className: classnames__default["default"]("c-empty-slate-ideas", className)
|
|
40453
40336
|
}), items.map(function (_ref2, index) {
|
|
@@ -40465,7 +40348,7 @@
|
|
|
40465
40348
|
};
|
|
40466
40349
|
EmptySlateIdeas.displayName = "EmptySlateIdeas";
|
|
40467
40350
|
|
|
40468
|
-
var _excluded$
|
|
40351
|
+
var _excluded$v = ["title", "description", "src", "alt", "illustration", "size", "align", "helpLink", "children"];
|
|
40469
40352
|
var isAlreadyLoaded = function isAlreadyLoaded(image) {
|
|
40470
40353
|
return !!image && image.complete && image.naturalWidth > 0;
|
|
40471
40354
|
};
|
|
@@ -40482,7 +40365,7 @@
|
|
|
40482
40365
|
align = _ref$align === void 0 ? "start" : _ref$align,
|
|
40483
40366
|
helpLink = _ref.helpLink,
|
|
40484
40367
|
children = _ref.children,
|
|
40485
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
40368
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
40486
40369
|
var compact = size === "compact";
|
|
40487
40370
|
var imageRef = React.useRef(null);
|
|
40488
40371
|
var _useState = React.useState(),
|
|
@@ -40552,7 +40435,7 @@
|
|
|
40552
40435
|
})([".c-illustration__glow-primary{fill:color-mix(in srgb,var(--color-primary) 15%,transparent);}.c-illustration__glow-secondary{fill:color-mix(in srgb,var(--color-secondary) 20%,transparent);}.c-illustration__paper{fill:var(--surface-sheet);stroke:var(--border-primary);}.c-illustration__paper-stroke{stroke:var(--border-primary);}.c-illustration__paper-ring{stroke:var(--surface-sheet);}@supports (color:light-dark(red,red)){.c-illustration__paper{fill:light-dark(var(--surface-raised),var(--surface-sheet));stroke:light-dark(var(--border-primary),var(--border-raised));}.c-illustration__paper-stroke{stroke:light-dark(var(--border-primary),var(--border-raised));}.c-illustration__paper-ring{stroke:light-dark(var(--surface-raised),var(--surface-sheet));}}.c-illustration__fill-primary{fill:var(--color-primary);}.c-illustration__fill-secondary{fill:var(--color-secondary);}.c-illustration__fill-theme-500{fill:var(--color-theme-500);}.c-illustration__fill-theme-600{fill:var(--color-theme-600);}.c-illustration__fill-theme-700{fill:var(--color-theme-700);}.c-illustration__stroke-primary{stroke:var(--color-primary);}.c-illustration__stroke-theme-500{stroke:var(--color-theme-500);}.c-illustration__stroke-theme-600{stroke:var(--color-theme-600);}"]);
|
|
40553
40436
|
StyledIllustration$1.displayName = "StyledIllustration";
|
|
40554
40437
|
|
|
40555
|
-
var _excluded$
|
|
40438
|
+
var _excluded$u = ["size", "className", "children"];
|
|
40556
40439
|
/**
|
|
40557
40440
|
* Shared root of every empty-state illustration: a 100x100 drawing that takes its colors from the theme tokens.
|
|
40558
40441
|
* It is hidden from assistive technology, unless it gets an `aria-label` or `aria-labelledby`.
|
|
@@ -40562,7 +40445,7 @@
|
|
|
40562
40445
|
size = _ref$size === void 0 ? "100%" : _ref$size,
|
|
40563
40446
|
className = _ref.className,
|
|
40564
40447
|
children = _ref.children,
|
|
40565
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
40448
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
40566
40449
|
var labelled = Boolean(rest["aria-label"] || rest["aria-labelledby"]);
|
|
40567
40450
|
return /*#__PURE__*/React__default["default"].createElement(StyledIllustration$1, _extends({
|
|
40568
40451
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -43833,13 +43716,13 @@
|
|
|
43833
43716
|
}));
|
|
43834
43717
|
};
|
|
43835
43718
|
|
|
43836
|
-
var _excluded$
|
|
43719
|
+
var _excluded$t = ["title", "description", "clearLabel", "onClear"];
|
|
43837
43720
|
var NoResultsSlate = function NoResultsSlate(_ref) {
|
|
43838
43721
|
var title = _ref.title,
|
|
43839
43722
|
description = _ref.description,
|
|
43840
43723
|
clearLabel = _ref.clearLabel,
|
|
43841
43724
|
onClear = _ref.onClear,
|
|
43842
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
43725
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
43843
43726
|
return /*#__PURE__*/React__default["default"].createElement(StyledNoResultsSlate, _extends({}, rest, {
|
|
43844
43727
|
role: "status"
|
|
43845
43728
|
}), /*#__PURE__*/React__default["default"].createElement(StyledIllustrationBox, null, /*#__PURE__*/React__default["default"].createElement(NoResultsIllustration, null)), /*#__PURE__*/React__default["default"].createElement(StyledTitle, null, title), description ? /*#__PURE__*/React__default["default"].createElement(Body1, {
|
|
@@ -43920,7 +43803,7 @@
|
|
|
43920
43803
|
})(["flex-shrink:0;margin-left:auto;"]);
|
|
43921
43804
|
StyledInfoBoxProgressMeta.displayName = "StyledInfoBoxProgressMeta";
|
|
43922
43805
|
|
|
43923
|
-
var _excluded$
|
|
43806
|
+
var _excluded$s = ["type", "children", "showIcon", "icon", "title", "action", "variant", "progress", "className"];
|
|
43924
43807
|
var InfoBox = function InfoBox(_ref) {
|
|
43925
43808
|
var _ref$type = _ref.type,
|
|
43926
43809
|
type = _ref$type === void 0 ? "default" : _ref$type,
|
|
@@ -43935,7 +43818,7 @@
|
|
|
43935
43818
|
variant = _ref$variant === void 0 ? "box" : _ref$variant,
|
|
43936
43819
|
progress = _ref.progress,
|
|
43937
43820
|
className = _ref.className,
|
|
43938
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
43821
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
43939
43822
|
if (variant === "ribbon") {
|
|
43940
43823
|
return /*#__PURE__*/React__default["default"].createElement(StyledInfoBoxRibbon, _extends({
|
|
43941
43824
|
className: classnames__default["default"]("c-info-box", "c-info-box--ribbon", className)
|
|
@@ -44493,7 +44376,7 @@
|
|
|
44493
44376
|
})(["&&{box-sizing:border-box;width:100%;}"]);
|
|
44494
44377
|
StyledStopwatchDescription.displayName = "StyledStopwatchDescription";
|
|
44495
44378
|
|
|
44496
|
-
var _excluded$
|
|
44379
|
+
var _excluded$r = ["seconds", "onSave", "onCancel", "autoFocus", "labels", "className", "data-testid"],
|
|
44497
44380
|
_excluded2$9 = ["onConfirm", "onCancel", "labels", "className", "data-testid", "testIdPrefix"],
|
|
44498
44381
|
_excluded3$3 = ["hours", "onHoursChange", "invalid", "date", "jobType", "summary", "onSummaryChange", "billable", "onBillableChange", "keep", "onKeepChange", "roundingInterval", "roundingHint", "saving", "onSubmit", "onCancel", "autoFocus", "labels", "hoursRef", "className", "data-testid", "testIdPrefix"],
|
|
44499
44382
|
_excluded4$2 = ["className"],
|
|
@@ -44531,7 +44414,7 @@
|
|
|
44531
44414
|
labels = _ref.labels,
|
|
44532
44415
|
className = _ref.className,
|
|
44533
44416
|
testId = _ref["data-testid"],
|
|
44534
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
44417
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
44535
44418
|
var partTestId = function partTestId(part) {
|
|
44536
44419
|
return testId ? "".concat(testId, "-").concat(part) : undefined;
|
|
44537
44420
|
};
|
|
@@ -45001,7 +44884,7 @@
|
|
|
45001
44884
|
});
|
|
45002
44885
|
StyledStopwatchTriggerTime.displayName = "StyledStopwatchTriggerTime";
|
|
45003
44886
|
|
|
45004
|
-
var _excluded$
|
|
44887
|
+
var _excluded$q = ["seconds", "running", "paused", "locked", "stopDisabled", "onStart", "onPause", "onStop", "onDiscard", "onTimeClick", "header", "other", "limited", "children", "labels", "className", "data-testid", "testIdPrefix"],
|
|
45005
44888
|
_excluded2$8 = ["seconds", "running", "paused", "open", "label", "className", "data-testid"];
|
|
45006
44889
|
/** Hours without a leading zero and minutes with one, for example "1:05". */
|
|
45007
44890
|
var formatStopwatchTime = function formatStopwatchTime(seconds) {
|
|
@@ -45060,7 +44943,7 @@
|
|
|
45060
44943
|
className = _ref.className,
|
|
45061
44944
|
testId = _ref["data-testid"],
|
|
45062
44945
|
testIdPrefix = _ref.testIdPrefix,
|
|
45063
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
44946
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
45064
44947
|
var partPrefix = testIdPrefix !== null && testIdPrefix !== void 0 ? testIdPrefix : testId;
|
|
45065
44948
|
var partTestId = function partTestId(part) {
|
|
45066
44949
|
return partPrefix ? "".concat(partPrefix, "-").concat(part) : undefined;
|
|
@@ -45790,7 +45673,7 @@
|
|
|
45790
45673
|
});
|
|
45791
45674
|
StyledStackedCard.displayName = "StyledStackedCard";
|
|
45792
45675
|
|
|
45793
|
-
var _excluded$
|
|
45676
|
+
var _excluded$p = ["selected", "disabled", "pending", "isDragSource", "isDragPreview", "entered", "forceHover", "resizable", "resizeAxis", "resizeLabel", "priorityColor", "onResizeStart", "onResizeDelta", "onResizeCommit", "resizeHandleProps", "className", "children"];
|
|
45794
45677
|
|
|
45795
45678
|
/**
|
|
45796
45679
|
* StackedCard — the hollow shell for cards on drag-and-drop surfaces.
|
|
@@ -45862,7 +45745,7 @@
|
|
|
45862
45745
|
resizeHandleProps = _ref.resizeHandleProps,
|
|
45863
45746
|
className = _ref.className,
|
|
45864
45747
|
children = _ref.children,
|
|
45865
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
45748
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
45866
45749
|
/**
|
|
45867
45750
|
* One live gesture. `x`/`y` anchor a pointer drag; `dx`/`dy` carry the
|
|
45868
45751
|
* running total a keyboard gesture has nudged. `moved` gates the commit, so
|
|
@@ -45961,7 +45844,7 @@
|
|
|
45961
45844
|
});
|
|
45962
45845
|
StackedCard.displayName = "StackedCard";
|
|
45963
45846
|
|
|
45964
|
-
var _excluded$
|
|
45847
|
+
var _excluded$o = ["role", "bleed", "direction", "background", "className", "children"];
|
|
45965
45848
|
|
|
45966
45849
|
/**
|
|
45967
45850
|
* StackedCard layout primitives.
|
|
@@ -46006,7 +45889,7 @@
|
|
|
46006
45889
|
background = _ref.background,
|
|
46007
45890
|
className = _ref.className,
|
|
46008
45891
|
children = _ref.children,
|
|
46009
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
45892
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
46010
45893
|
return /*#__PURE__*/React__default["default"].createElement(StyledStackedCardRow, _extends({
|
|
46011
45894
|
ref: ref,
|
|
46012
45895
|
$role: role,
|
|
@@ -46234,7 +46117,7 @@
|
|
|
46234
46117
|
};
|
|
46235
46118
|
};
|
|
46236
46119
|
|
|
46237
|
-
var _excluded$
|
|
46120
|
+
var _excluded$n = ["size"],
|
|
46238
46121
|
_excluded2$7 = ["name", "detail", "size"];
|
|
46239
46122
|
var TRIGGER_SWATCH_SIZE = 20;
|
|
46240
46123
|
var SWATCH_SIZE = 22;
|
|
@@ -46361,7 +46244,7 @@
|
|
|
46361
46244
|
var SwatchMark = function SwatchMark(_ref4) {
|
|
46362
46245
|
var _ref4$size = _ref4.size,
|
|
46363
46246
|
size = _ref4$size === void 0 ? 16 : _ref4$size,
|
|
46364
|
-
mark = _objectWithoutProperties(_ref4, _excluded$
|
|
46247
|
+
mark = _objectWithoutProperties(_ref4, _excluded$n);
|
|
46365
46248
|
return /*#__PURE__*/React__default["default"].createElement(StyledSwatchMark, {
|
|
46366
46249
|
"aria-hidden": "true",
|
|
46367
46250
|
className: "c-swatch-picker__mark",
|
|
@@ -46712,7 +46595,7 @@
|
|
|
46712
46595
|
});
|
|
46713
46596
|
StyledRow.displayName = "StyledRow";
|
|
46714
46597
|
|
|
46715
|
-
var _excluded$
|
|
46598
|
+
var _excluded$m = ["space", "align", "collapseBelow", "children"];
|
|
46716
46599
|
var Row = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
46717
46600
|
var _ref$space = _ref.space,
|
|
46718
46601
|
space = _ref$space === void 0 ? "md" : _ref$space,
|
|
@@ -46720,7 +46603,7 @@
|
|
|
46720
46603
|
align = _ref$align === void 0 ? "center" : _ref$align,
|
|
46721
46604
|
collapseBelow = _ref.collapseBelow,
|
|
46722
46605
|
children = _ref.children,
|
|
46723
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46606
|
+
rest = _objectWithoutProperties(_ref, _excluded$m);
|
|
46724
46607
|
return /*#__PURE__*/React__default["default"].createElement(StyledRow, _extends({
|
|
46725
46608
|
ref: ref,
|
|
46726
46609
|
$space: space,
|
|
@@ -46745,7 +46628,7 @@
|
|
|
46745
46628
|
});
|
|
46746
46629
|
StyledColumns$1.displayName = "StyledColumns";
|
|
46747
46630
|
|
|
46748
|
-
var _excluded$
|
|
46631
|
+
var _excluded$l = ["widths", "space", "alignY", "collapseBelow", "children"];
|
|
46749
46632
|
var Columns = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
46750
46633
|
var widths = _ref.widths,
|
|
46751
46634
|
_ref$space = _ref.space,
|
|
@@ -46754,7 +46637,7 @@
|
|
|
46754
46637
|
alignY = _ref$alignY === void 0 ? "stretch" : _ref$alignY,
|
|
46755
46638
|
collapseBelow = _ref.collapseBelow,
|
|
46756
46639
|
children = _ref.children,
|
|
46757
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46640
|
+
rest = _objectWithoutProperties(_ref, _excluded$l);
|
|
46758
46641
|
return /*#__PURE__*/React__default["default"].createElement(StyledColumns$1, _extends({
|
|
46759
46642
|
ref: ref,
|
|
46760
46643
|
$space: space,
|
|
@@ -46796,7 +46679,7 @@
|
|
|
46796
46679
|
componentId: "sc-vhpgru-4"
|
|
46797
46680
|
})(["display:flex;align-items:center;gap:16px;margin-left:auto;"]);
|
|
46798
46681
|
|
|
46799
|
-
var _excluded$
|
|
46682
|
+
var _excluded$k = ["title", "counter", "actions", "card", "radius", "className", "children"];
|
|
46800
46683
|
var Section = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
46801
46684
|
var title = _ref.title,
|
|
46802
46685
|
counter = _ref.counter,
|
|
@@ -46807,7 +46690,7 @@
|
|
|
46807
46690
|
radius = _ref$radius === void 0 ? 24 : _ref$radius,
|
|
46808
46691
|
className = _ref.className,
|
|
46809
46692
|
children = _ref.children,
|
|
46810
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46693
|
+
rest = _objectWithoutProperties(_ref, _excluded$k);
|
|
46811
46694
|
var titleId = React.useId();
|
|
46812
46695
|
var hasCounter = counter !== undefined && counter !== null;
|
|
46813
46696
|
return /*#__PURE__*/React__default["default"].createElement(StyledSection, _extends({}, rest, {
|
|
@@ -46853,7 +46736,7 @@
|
|
|
46853
46736
|
return $clip === "vertical" ? "clip-path: inset(0 -100vw);" : "overflow: hidden;";
|
|
46854
46737
|
});
|
|
46855
46738
|
|
|
46856
|
-
var _excluded$
|
|
46739
|
+
var _excluded$j = ["open", "duration", "unmountOnExit", "appear", "clip", "className", "children"];
|
|
46857
46740
|
var Collapse = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
46858
46741
|
var open = _ref.open,
|
|
46859
46742
|
_ref$duration = _ref.duration,
|
|
@@ -46866,7 +46749,7 @@
|
|
|
46866
46749
|
clip = _ref$clip === void 0 ? "both" : _ref$clip,
|
|
46867
46750
|
className = _ref.className,
|
|
46868
46751
|
children = _ref.children,
|
|
46869
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46752
|
+
rest = _objectWithoutProperties(_ref, _excluded$j);
|
|
46870
46753
|
var _useState = React.useState(open || !unmountOnExit),
|
|
46871
46754
|
_useState2 = _slicedToArray(_useState, 2),
|
|
46872
46755
|
mounted = _useState2[0],
|
|
@@ -46945,7 +46828,7 @@
|
|
|
46945
46828
|
return $tone === "accent" ? styled.css(["font-size:calc(11px * var(--text-scale,1));line-height:13px;letter-spacing:0.06em;text-transform:uppercase;color:var(--color-secondary);"]) : styled.css(["padding:4px 0;font-size:calc(12px * var(--text-scale,1));line-height:15px;color:var(--color-theme-700);"]);
|
|
46946
46829
|
});
|
|
46947
46830
|
|
|
46948
|
-
var _excluded$
|
|
46831
|
+
var _excluded$i = ["label", "tone", "lines", "className"];
|
|
46949
46832
|
var LabeledDivider = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
46950
46833
|
var label = _ref.label,
|
|
46951
46834
|
_ref$tone = _ref.tone,
|
|
@@ -46953,7 +46836,7 @@
|
|
|
46953
46836
|
_ref$lines = _ref.lines,
|
|
46954
46837
|
lines = _ref$lines === void 0 ? true : _ref$lines,
|
|
46955
46838
|
className = _ref.className,
|
|
46956
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46839
|
+
rest = _objectWithoutProperties(_ref, _excluded$i);
|
|
46957
46840
|
return /*#__PURE__*/React__default["default"].createElement(StyledLabeledDivider, _extends({
|
|
46958
46841
|
role: "separator"
|
|
46959
46842
|
}, rest, {
|
|
@@ -46978,14 +46861,14 @@
|
|
|
46978
46861
|
return $leaving && styled.css(["&&{opacity:0;pointer-events:none;}"]);
|
|
46979
46862
|
});
|
|
46980
46863
|
|
|
46981
|
-
var _excluded$
|
|
46864
|
+
var _excluded$h = ["icon", "leaving", "className", "children"];
|
|
46982
46865
|
var FloatingPill = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
46983
46866
|
var icon = _ref.icon,
|
|
46984
46867
|
_ref$leaving = _ref.leaving,
|
|
46985
46868
|
leaving = _ref$leaving === void 0 ? false : _ref$leaving,
|
|
46986
46869
|
className = _ref.className,
|
|
46987
46870
|
children = _ref.children,
|
|
46988
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46871
|
+
rest = _objectWithoutProperties(_ref, _excluded$h);
|
|
46989
46872
|
return /*#__PURE__*/React__default["default"].createElement(StyledFloatingPill, _extends({
|
|
46990
46873
|
type: "button"
|
|
46991
46874
|
}, rest, {
|
|
@@ -47017,7 +46900,7 @@
|
|
|
47017
46900
|
componentId: "sc-13aqf5r-2"
|
|
47018
46901
|
})(["align-self:flex-start;padding:0;border:0;background:transparent;cursor:pointer;font-family:inherit;font-size:calc(16px * var(--text-scale,1));line-height:24px;text-decoration:underline;color:var(--color-primary);@media print{display:none;}"]);
|
|
47019
46902
|
|
|
47020
|
-
var _excluded$
|
|
46903
|
+
var _excluded$g = ["maxHeight", "slack", "moreLabel", "lessLabel", "expanded", "defaultExpanded", "onExpandedChange", "className", "children"];
|
|
47021
46904
|
var isKeyboardFocus = function isKeyboardFocus(node) {
|
|
47022
46905
|
try {
|
|
47023
46906
|
return node.matches(":focus-visible");
|
|
@@ -47038,7 +46921,7 @@
|
|
|
47038
46921
|
onExpandedChange = _ref.onExpandedChange,
|
|
47039
46922
|
className = _ref.className,
|
|
47040
46923
|
children = _ref.children,
|
|
47041
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46924
|
+
rest = _objectWithoutProperties(_ref, _excluded$g);
|
|
47042
46925
|
var frameId = React.useId();
|
|
47043
46926
|
var frameRef = React.useRef(null);
|
|
47044
46927
|
var contentRef = React.useRef(null);
|
|
@@ -47219,7 +47102,7 @@
|
|
|
47219
47102
|
}, [id, css]);
|
|
47220
47103
|
};
|
|
47221
47104
|
|
|
47222
|
-
var _excluded$
|
|
47105
|
+
var _excluded$f = ["topBar", "band", "properties", "main", "rail", "stream", "panel", "panelWidth", "panelMin", "panelMax", "mainMin", "onPanelWidthChange", "onPanelWidthReset", "resizeLabel", "ownScroll", "resetKey", "gap", "softShadow", "className", "data-testid"];
|
|
47223
47106
|
// The height of the rail as the object opens. It stops to follow the rail at the first action of the user.
|
|
47224
47107
|
var useOpeningRailHeight = function useOpeningRailHeight(resetKey) {
|
|
47225
47108
|
var railRef = React.useRef(null);
|
|
@@ -47288,7 +47171,7 @@
|
|
|
47288
47171
|
softShadow = _ref$softShadow === void 0 ? false : _ref$softShadow,
|
|
47289
47172
|
className = _ref.className,
|
|
47290
47173
|
testId = _ref["data-testid"],
|
|
47291
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
47174
|
+
rest = _objectWithoutProperties(_ref, _excluded$f);
|
|
47292
47175
|
useContainerCss("c-object-layout-container", CONTAINER_CSS$2);
|
|
47293
47176
|
var hasPanel = panel !== undefined && panel !== null;
|
|
47294
47177
|
var hasRail = rail !== undefined && rail !== null;
|
|
@@ -47446,7 +47329,7 @@
|
|
|
47446
47329
|
return $cardEdges && styled.css(["&:first-child{border-top-left-radius:", ";border-top-right-radius:", ";}&:last-child{border-bottom-left-radius:", ";border-bottom-right-radius:", ";}"], CARD_EDGE_RADIUS, CARD_EDGE_RADIUS, CARD_EDGE_RADIUS, CARD_EDGE_RADIUS);
|
|
47447
47330
|
}, StyledListRowSideAction, StyledListRowSideAction, StyledListRowDivider, StyledListRowDivider);
|
|
47448
47331
|
|
|
47449
|
-
var _excluded$
|
|
47332
|
+
var _excluded$e = ["variant", "leading", "sideAction", "sideActionTop", "sideActionOffset", "sideActionProps", "divided", "hover", "selected", "cardEdges", "className", "children"];
|
|
47450
47333
|
var ListRow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
47451
47334
|
var _ref$variant = _ref.variant,
|
|
47452
47335
|
variant = _ref$variant === void 0 ? "plain" : _ref$variant,
|
|
@@ -47467,7 +47350,7 @@
|
|
|
47467
47350
|
cardEdges = _ref$cardEdges === void 0 ? false : _ref$cardEdges,
|
|
47468
47351
|
className = _ref.className,
|
|
47469
47352
|
children = _ref.children,
|
|
47470
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
47353
|
+
rest = _objectWithoutProperties(_ref, _excluded$e);
|
|
47471
47354
|
useContainerCss("c-list-row-container", CONTAINER_CSS$1);
|
|
47472
47355
|
var hasLeading = leading !== undefined && leading !== null;
|
|
47473
47356
|
var leadingBox = hasLeading ? /*#__PURE__*/React__default["default"].createElement(StyledListRowLeading, {
|
|
@@ -47535,7 +47418,7 @@
|
|
|
47535
47418
|
componentId: "sc-1wm99km-3"
|
|
47536
47419
|
})(["&&{flex-shrink:0;margin:0 8px;}"]);
|
|
47537
47420
|
|
|
47538
|
-
var _excluded$
|
|
47421
|
+
var _excluded$d = ["name", "onRename", "disabled", "caret", "collapsed", "count", "before", "afterCount", "after", "onToggle", "inset", "sticky", "stickyTop", "hovered", "nameInputProps", "nameClassName", "nameRef", "className", "onClick"];
|
|
47539
47422
|
var NAME_CLASS = "c-list-group-heading__name";
|
|
47540
47423
|
var CONTROLS = "a, button, input, textarea, label";
|
|
47541
47424
|
var NAME_INPUT_PROPS = {
|
|
@@ -47567,7 +47450,7 @@
|
|
|
47567
47450
|
nameRef = _ref.nameRef,
|
|
47568
47451
|
className = _ref.className,
|
|
47569
47452
|
onClick = _ref.onClick,
|
|
47570
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
47453
|
+
rest = _objectWithoutProperties(_ref, _excluded$d);
|
|
47571
47454
|
var handleClick = React.useCallback(function (event) {
|
|
47572
47455
|
onClick === null || onClick === void 0 || onClick(event);
|
|
47573
47456
|
if (!onToggle) {
|
|
@@ -47688,7 +47571,7 @@
|
|
|
47688
47571
|
componentId: "sc-1bv6320-12"
|
|
47689
47572
|
})(["padding:0;border:0;background:transparent;color:var(--red-alert);font-size:calc(11px * var(--text-scale,1));line-height:14px;text-decoration:underline;cursor:pointer;pointer-events:auto;"]);
|
|
47690
47573
|
|
|
47691
|
-
var _excluded$
|
|
47574
|
+
var _excluded$c = ["name", "detail", "preview", "overlay", "cornerAction", "captionAction", "onOpen", "openLabel", "openProps", "busy", "dragging", "className"],
|
|
47692
47575
|
_excluded2$6 = ["value", "label", "barProps"],
|
|
47693
47576
|
_excluded3$2 = ["label"],
|
|
47694
47577
|
_excluded4$1 = ["progress", "uploading", "failed", "onCancel", "onRetry", "progressLabel", "errorLabel", "cancelLabel", "retryLabel", "cancelProps", "retryProps", "errorProps", "barProps", "detail"];
|
|
@@ -47708,7 +47591,7 @@
|
|
|
47708
47591
|
_ref$dragging = _ref.dragging,
|
|
47709
47592
|
dragging = _ref$dragging === void 0 ? false : _ref$dragging,
|
|
47710
47593
|
className = _ref.className,
|
|
47711
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
47594
|
+
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
47712
47595
|
return /*#__PURE__*/React__default["default"].createElement(StyledFileTile, _extends({}, rest, {
|
|
47713
47596
|
ref: ref,
|
|
47714
47597
|
"aria-busy": busy || undefined,
|
|
@@ -47852,7 +47735,7 @@
|
|
|
47852
47735
|
componentId: "sc-1m5mmzc-6"
|
|
47853
47736
|
})(["margin-top:14px;font-size:calc(13px * var(--text-scale,1));color:var(--color-theme-600);"]);
|
|
47854
47737
|
|
|
47855
|
-
var _excluded$
|
|
47738
|
+
var _excluded$b = ["onFiles", "accept", "variant", "message", "disabled", "dragOver", "icon", "hint", "inputProps", "className", "children"];
|
|
47856
47739
|
var parseAccept = function parseAccept(accept) {
|
|
47857
47740
|
return (accept !== null && accept !== void 0 ? accept : "").split(",").map(function (rule) {
|
|
47858
47741
|
return rule.trim().toLowerCase();
|
|
@@ -47969,7 +47852,7 @@
|
|
|
47969
47852
|
inputProps = _ref2.inputProps,
|
|
47970
47853
|
className = _ref2.className,
|
|
47971
47854
|
children = _ref2.children,
|
|
47972
|
-
rest = _objectWithoutProperties(_ref2, _excluded$
|
|
47855
|
+
rest = _objectWithoutProperties(_ref2, _excluded$b);
|
|
47973
47856
|
var isField = variant === "field";
|
|
47974
47857
|
var dragging = useFileDrag(disabled || dragOver !== undefined || isField, accept);
|
|
47975
47858
|
var _useState3 = React.useState(false),
|
|
@@ -48130,7 +48013,7 @@
|
|
|
48130
48013
|
componentId: "sc-ruvdwa-1"
|
|
48131
48014
|
})(["display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-height:52px;padding:10px 11px;border-top:1px solid var(--border-raised);"]);
|
|
48132
48015
|
|
|
48133
|
-
var _excluded$
|
|
48016
|
+
var _excluded$a = ["look", "radius", "flatBottom", "shadow", "className", "children"],
|
|
48134
48017
|
_excluded2$5 = ["className", "children"];
|
|
48135
48018
|
var RADIUS = {
|
|
48136
48019
|
field: 14,
|
|
@@ -48147,7 +48030,7 @@
|
|
|
48147
48030
|
shadow = _ref$shadow === void 0 ? "look" : _ref$shadow,
|
|
48148
48031
|
className = _ref.className,
|
|
48149
48032
|
children = _ref.children,
|
|
48150
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48033
|
+
rest = _objectWithoutProperties(_ref, _excluded$a);
|
|
48151
48034
|
return /*#__PURE__*/React__default["default"].createElement(StyledEditorFrame, _extends({}, rest, {
|
|
48152
48035
|
ref: ref,
|
|
48153
48036
|
$look: look,
|
|
@@ -48393,13 +48276,13 @@
|
|
|
48393
48276
|
return ticketDash($line);
|
|
48394
48277
|
});
|
|
48395
48278
|
|
|
48396
|
-
var _excluded$
|
|
48279
|
+
var _excluded$9 = ["line", "className"];
|
|
48397
48280
|
/** The line where a ticket tears: a dashed line with a notch in each edge of a card with a 16px padding. */
|
|
48398
48281
|
var TicketPerforation = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
48399
48282
|
var _ref$line = _ref.line,
|
|
48400
48283
|
line = _ref$line === void 0 ? "primary" : _ref$line,
|
|
48401
48284
|
className = _ref.className,
|
|
48402
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48285
|
+
rest = _objectWithoutProperties(_ref, _excluded$9);
|
|
48403
48286
|
return /*#__PURE__*/React__default["default"].createElement(StyledTicketPerforation, _extends({
|
|
48404
48287
|
"aria-hidden": "true"
|
|
48405
48288
|
}, rest, {
|
|
@@ -48419,7 +48302,7 @@
|
|
|
48419
48302
|
});
|
|
48420
48303
|
TicketPerforation.displayName = "TicketPerforation";
|
|
48421
48304
|
|
|
48422
|
-
var _excluded$
|
|
48305
|
+
var _excluded$8 = ["aside", "asideProps", "className", "children"],
|
|
48423
48306
|
_excluded2$4 = ["density", "disabled", "layout", "cells", "header", "footer", "cellsProps", "footerProps", "tearProps", "perforationProps", "className", "children"],
|
|
48424
48307
|
_excluded3$1 = ["icon", "label", "value", "action", "tone", "readOnly", "chevron", "disabled", "parts", "aside", "wrap", "footer", "labelProps", "caretProps", "className", "children"],
|
|
48425
48308
|
_excluded4 = ["expanded", "disabled", "className", "children"],
|
|
@@ -48477,7 +48360,7 @@
|
|
|
48477
48360
|
asideProps = _ref3.asideProps,
|
|
48478
48361
|
className = _ref3.className,
|
|
48479
48362
|
children = _ref3.children,
|
|
48480
|
-
cellProps = _objectWithoutProperties(_ref3, _excluded$
|
|
48363
|
+
cellProps = _objectWithoutProperties(_ref3, _excluded$8);
|
|
48481
48364
|
var hasAside = aside !== undefined && aside !== null;
|
|
48482
48365
|
return /*#__PURE__*/React__default["default"].createElement(StyledPropertyListCell, _extends({}, cellProps, {
|
|
48483
48366
|
className: classnames__default["default"]("c-property-list__cell", className)
|
|
@@ -48862,7 +48745,7 @@
|
|
|
48862
48745
|
// The job type gives way first and leaves below 560px. Below 680px the value column takes only the width of the values.
|
|
48863
48746
|
var BULLETS_CONTAINER_CSS = "\n@container (max-width: 679.98px) {\n ".concat(plain, " .").concat(cols, " { grid-template-columns: fit-content(120px) minmax(160px, 1fr) fit-content(140px); }\n .c-property-list-bullets .c-property-list-bullets__full { display: none; }\n}\n@container (min-width: 680px) {\n ").concat(plain, " .").concat(cols, " { grid-template-columns: fit-content(180px) minmax(220px, 1fr) 140px; }\n .c-property-list-bullets .c-property-list-bullets__short { display: none; }\n}\n@container (max-width: 559.98px) {\n ").concat(job, " .").concat(cols, " { grid-template-columns: fit-content(120px) minmax(160px, 1fr) fit-content(140px); }\n .c-property-list-bullets .c-property-list-bullets__job { display: none; }\n}\n@container (min-width: 560px) and (max-width: 679.98px) {\n ").concat(job, " .").concat(cols, " { grid-template-columns: fit-content(120px) minmax(0, 160px) minmax(220px, 1fr) fit-content(140px); }\n}\n@container (min-width: 560px) {\n ").concat(job, " .c-property-list-bullets__label.c-property-list-bullets__label { grid-column-end: 3; }\n}\n@container (min-width: 680px) {\n ").concat(job, " .").concat(cols, " { grid-template-columns: fit-content(180px) minmax(0, 160px) minmax(220px, 1fr) 140px; }\n}\n");
|
|
48864
48747
|
|
|
48865
|
-
var _excluded$
|
|
48748
|
+
var _excluded$7 = ["label", "max", "ticks", "tickLabel", "estimateOnly", "withJobType", "testIdPrefix", "className", "children"],
|
|
48866
48749
|
_excluded2$3 = ["avatar", "name", "shortName", "job", "estimate", "tracked", "value", "note", "muted", "readOnly", "testIdPrefix", "caretProps", "className"];
|
|
48867
48750
|
var BulletsContext = /*#__PURE__*/React.createContext({
|
|
48868
48751
|
max: 1,
|
|
@@ -48954,7 +48837,7 @@
|
|
|
48954
48837
|
testIdPrefix = _ref3.testIdPrefix,
|
|
48955
48838
|
className = _ref3.className,
|
|
48956
48839
|
children = _ref3.children,
|
|
48957
|
-
rest = _objectWithoutProperties(_ref3, _excluded$
|
|
48840
|
+
rest = _objectWithoutProperties(_ref3, _excluded$7);
|
|
48958
48841
|
var _useState = React.useState(function () {
|
|
48959
48842
|
return new Map();
|
|
48960
48843
|
}),
|
|
@@ -49188,7 +49071,7 @@
|
|
|
49188
49071
|
componentId: "sc-ld4yoe-6"
|
|
49189
49072
|
})(["", ""], ticketDash("primary"));
|
|
49190
49073
|
|
|
49191
|
-
var _excluded$
|
|
49074
|
+
var _excluded$6 = ["start", "end", "length", "readOnly", "lengthProps", "caretProps", "className"];
|
|
49192
49075
|
var Moment = function Moment(_ref) {
|
|
49193
49076
|
var moment = _ref.moment,
|
|
49194
49077
|
caret = _ref.caret,
|
|
@@ -49213,7 +49096,7 @@
|
|
|
49213
49096
|
lengthProps = _ref2.lengthProps,
|
|
49214
49097
|
caretProps = _ref2.caretProps,
|
|
49215
49098
|
className = _ref2.className,
|
|
49216
|
-
rest = _objectWithoutProperties(_ref2, _excluded$
|
|
49099
|
+
rest = _objectWithoutProperties(_ref2, _excluded$6);
|
|
49217
49100
|
return /*#__PURE__*/React__default["default"].createElement(StyledPropertyListTime, _extends({}, rest, {
|
|
49218
49101
|
as: readOnly ? "div" : "button",
|
|
49219
49102
|
ref: ref,
|
|
@@ -49276,6 +49159,8 @@
|
|
|
49276
49159
|
onClose = _ref.onClose,
|
|
49277
49160
|
onClickAway = _ref.onClickAway,
|
|
49278
49161
|
fixedWidth = _ref.width,
|
|
49162
|
+
_ref$followRow = _ref.followRow,
|
|
49163
|
+
followRow = _ref$followRow === void 0 ? false : _ref$followRow,
|
|
49279
49164
|
className = _ref.className,
|
|
49280
49165
|
testId = _ref["data-testid"],
|
|
49281
49166
|
_ref$typeToFilter = _ref.typeToFilter,
|
|
@@ -49379,6 +49264,7 @@
|
|
|
49379
49264
|
onBeforeClose: handleBeforeClose,
|
|
49380
49265
|
onClose: onClose,
|
|
49381
49266
|
position: isTable ? "bottom" : "bottom-start",
|
|
49267
|
+
followTarget: followRow,
|
|
49382
49268
|
width: fixedWidth !== null && fixedWidth !== void 0 ? fixedWidth : width,
|
|
49383
49269
|
menuClassName: POPOVER_CLASS,
|
|
49384
49270
|
target: /*#__PURE__*/React.cloneElement(row, _objectSpread2({
|
|
@@ -49481,7 +49367,7 @@
|
|
|
49481
49367
|
return $open ? 1 : 0;
|
|
49482
49368
|
});
|
|
49483
49369
|
|
|
49484
|
-
var _excluded$
|
|
49370
|
+
var _excluded$5 = ["look", "surface", "side", "highlighted", "className", "children"],
|
|
49485
49371
|
_excluded2$2 = ["emoji", "count", "pressed", "readOnly", "className"],
|
|
49486
49372
|
_excluded3 = ["open", "className", "children"];
|
|
49487
49373
|
var MessageBubble = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
@@ -49494,7 +49380,7 @@
|
|
|
49494
49380
|
highlighted = _ref$highlighted === void 0 ? false : _ref$highlighted,
|
|
49495
49381
|
className = _ref.className,
|
|
49496
49382
|
children = _ref.children,
|
|
49497
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49383
|
+
rest = _objectWithoutProperties(_ref, _excluded$5);
|
|
49498
49384
|
return /*#__PURE__*/React__default["default"].createElement(StyledMessageBubble, _extends({}, rest, {
|
|
49499
49385
|
ref: ref,
|
|
49500
49386
|
$look: look,
|
|
@@ -49584,7 +49470,7 @@
|
|
|
49584
49470
|
componentId: "sc-1qu0xie-2"
|
|
49585
49471
|
})(["position:absolute;right:-100vw;bottom:0;left:-100vw;height:100vh;background-color:rgba(0,0,0,0.5);"]);
|
|
49586
49472
|
|
|
49587
|
-
var _excluded$
|
|
49473
|
+
var _excluded$4 = ["docked", "open", "lifted", "moving", "offset", "panel", "panelHeight", "className", "style", "children"],
|
|
49588
49474
|
_excluded2$1 = ["layerRef", "layerProps", "onClick", "className"];
|
|
49589
49475
|
/** A card in the flow of the page that sticks to the bottom edge of its scroll container. */
|
|
49590
49476
|
var DockedCard = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
@@ -49604,7 +49490,7 @@
|
|
|
49604
49490
|
className = _ref.className,
|
|
49605
49491
|
style = _ref.style,
|
|
49606
49492
|
children = _ref.children,
|
|
49607
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49493
|
+
rest = _objectWithoutProperties(_ref, _excluded$4);
|
|
49608
49494
|
var isPanel = !docked && panel;
|
|
49609
49495
|
useContainerCss("c-docked-card-panel-css", DOCKED_CARD_PANEL_CSS);
|
|
49610
49496
|
var cardStyle = style;
|
|
@@ -49888,92 +49774,106 @@
|
|
|
49888
49774
|
};
|
|
49889
49775
|
};
|
|
49890
49776
|
|
|
49777
|
+
var sheetBackground = function sheetBackground(firstMargin, secondMargin) {
|
|
49778
|
+
return styled.css(["background-image:linear-gradient( to right,transparent ", "px,var(--note-sheet-margin) ", "px,var(--note-sheet-margin) ", "px,transparent ", "px,transparent ", "px,var(--note-sheet-margin) ", "px,var(--note-sheet-margin) ", "px,transparent ", "px ),linear-gradient(to bottom,var(--note-sheet-top),var(--note-sheet-bottom));"], firstMargin, firstMargin, firstMargin + 1, firstMargin + 1, secondMargin, secondMargin, secondMargin + 1, secondMargin + 1);
|
|
49779
|
+
};
|
|
49891
49780
|
var SHEET_SIZES = {
|
|
49892
|
-
grid: styled.css(["width:208px;height:
|
|
49893
|
-
list: styled.css(["width:138px;height:
|
|
49781
|
+
grid: styled.css(["width:208px;height:234px;gap:6px;padding:12px 12px 12px 30px;", ""], sheetBackground(20, 23)),
|
|
49782
|
+
list: styled.css(["width:138px;height:74px;gap:4px;padding:8px 8px 8px 20px;", ""], sheetBackground(13, 15))
|
|
49894
49783
|
};
|
|
49895
49784
|
var SHEET_TITLE_SIZES = {
|
|
49896
|
-
grid: styled.css(["
|
|
49897
|
-
list: styled.css(["
|
|
49785
|
+
grid: styled.css(["-webkit-line-clamp:2;font-size:calc(16px * var(--text-scale,1));line-height:20px;"]),
|
|
49786
|
+
list: styled.css(["-webkit-line-clamp:1;font-size:calc(9px * var(--text-scale,1));line-height:12px;"])
|
|
49787
|
+
};
|
|
49788
|
+
var SHEET_LINES_SIZES = {
|
|
49789
|
+
grid: styled.css(["margin:0 -12px -12px -30px;padding:0 12px 12px 30px;background-image:repeating-linear-gradient( to bottom,transparent 0,transparent 15px,var(--note-sheet-rule) 15px,var(--note-sheet-rule) 16px );"]),
|
|
49790
|
+
list: styled.css(["margin:0 -8px -8px -20px;padding:0 8px 8px 20px;background-image:repeating-linear-gradient( to bottom,transparent 0,transparent 9.5px,var(--note-sheet-rule) 9.5px,var(--note-sheet-rule) 10px,transparent 10px,transparent 10.5px );@media (max-resolution:1.99dppx){background-image:repeating-linear-gradient( to bottom,transparent 0,transparent 9.5px,color-mix(in srgb,var(--note-sheet-rule) 50%,transparent) 9.5px,color-mix(in srgb,var(--note-sheet-rule) 50%,transparent) 10.5px );}"])
|
|
49898
49791
|
};
|
|
49899
49792
|
var SHEET_TEXT_SIZES = {
|
|
49900
|
-
grid: styled.css(["font-size:calc(
|
|
49901
|
-
list: styled.css(["font-size:calc(5px * var(--text-scale,1));line-height:
|
|
49793
|
+
grid: styled.css(["-webkit-line-clamp:6;font-size:calc(11px * var(--text-scale,1));line-height:16px;"]),
|
|
49794
|
+
list: styled.css(["-webkit-line-clamp:4;font-size:calc(7.5px * var(--text-scale,1));line-height:10.5px;"])
|
|
49902
49795
|
};
|
|
49903
49796
|
var StyledNoteSheet = styled__default["default"](Card).withConfig({
|
|
49904
49797
|
displayName: "Styles__StyledNoteSheet",
|
|
49905
49798
|
componentId: "sc-10rkcp1-0"
|
|
49906
|
-
})(["&&{position:relative;display:flex;flex-shrink:0;flex-direction:column;overflow:hidden;border-radius:3px;
|
|
49799
|
+
})(["&&{--note-sheet-top:var(--page-paper-main);--note-sheet-bottom:var(--page-paper-main);--note-sheet-name:var(--color-theme-900);--note-sheet-text:var(--color-theme-700);--note-sheet-rule:var(--color-theme-300);--note-sheet-margin:rgba(200,112,106,0.33);--note-sheet-edge:transparent;--note-sheet-shadow:rgba(0,0,0,0.08);--note-sheet-shadow-near:rgba(0,0,0,0.15);@supports (color:light-dark(red,red)){--note-sheet-top:light-dark(#faf7ea,#b8a87a);--note-sheet-bottom:light-dark(#f8f4e5,#b1a175);--note-sheet-name:light-dark(#3a3830,#241c06);--note-sheet-text:light-dark(#6b675a,#3d3210);--note-sheet-rule:light-dark(rgba(58,56,48,0.09),rgba(0,0,0,0.1));--note-sheet-margin:light-dark( rgba(200,112,106,0.45),rgba(190,70,60,0.55) );--note-sheet-edge:light-dark( rgba(255,255,255,0.35),rgba(255,255,255,0.3) );--note-sheet-shadow:light-dark(rgba(0,0,0,0.05),rgba(0,0,0,0.08));--note-sheet-shadow-near:light-dark( rgba(0,0,0,0.07),rgba(0,0,0,0.15) );}position:relative;display:flex;flex-shrink:0;flex-direction:column;overflow:hidden;border-radius:3px;box-shadow:0 4px 5px var(--note-sheet-shadow),0 1px 1px var(--note-sheet-shadow-near),inset 0 1px 0 var(--note-sheet-edge);word-break:break-word;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:cubic-bezier(0.4,0,0.2,1);transition-duration:150ms;", "}.c-note-card__body:hover &&,.c-list-row:hover &&{translate:0 -2px;box-shadow:0 6px 8px var(--note-sheet-shadow),0 1px 2px var(--note-sheet-shadow-near),inset 0 1px 0 var(--note-sheet-edge);}"], function (_ref) {
|
|
49907
49800
|
var $size = _ref.$size;
|
|
49908
49801
|
return SHEET_SIZES[$size];
|
|
49909
49802
|
});
|
|
49803
|
+
|
|
49804
|
+
/* The pin sits in the margin, on the first line of the name. */
|
|
49805
|
+
var StyledNoteSheetPin = styled__default["default"].div.withConfig({
|
|
49806
|
+
displayName: "Styles__StyledNoteSheetPin",
|
|
49807
|
+
componentId: "sc-10rkcp1-1"
|
|
49808
|
+
})(["position:absolute;top:15px;left:3px;display:flex;& > svg{width:14px;height:14px;}@supports (color:light-dark(red,red)){& > svg{fill:light-dark(var(--color-primary),#241c06);}}"]);
|
|
49809
|
+
|
|
49810
|
+
/* The line sits at the height of the options control, and leaves room for it. */
|
|
49811
|
+
var StyledNoteSheetMeta = styled__default["default"].div.withConfig({
|
|
49812
|
+
displayName: "Styles__StyledNoteSheetMeta",
|
|
49813
|
+
componentId: "sc-10rkcp1-2"
|
|
49814
|
+
})(["position:absolute;right:40px;bottom:14px;left:30px;display:flex;align-items:center;gap:8px;font-size:calc(12px * var(--text-scale,1));line-height:16px;color:var(--note-sheet-text);white-space:nowrap;"]);
|
|
49815
|
+
var StyledNoteSheetDate = styled__default["default"].span.withConfig({
|
|
49816
|
+
displayName: "Styles__StyledNoteSheetDate",
|
|
49817
|
+
componentId: "sc-10rkcp1-3"
|
|
49818
|
+
})(["min-width:0;overflow:hidden;text-overflow:ellipsis;"]);
|
|
49819
|
+
var StyledNoteSheetSignifiers = styled__default["default"].span.withConfig({
|
|
49820
|
+
displayName: "Styles__StyledNoteSheetSignifiers",
|
|
49821
|
+
componentId: "sc-10rkcp1-4"
|
|
49822
|
+
})(["@supports (color:light-dark(red,red)){--color-theme-300:light-dark(#ebebee,rgba(0,0,0,0.1));--color-theme-600:light-dark(#89898e,#4f4318);--color-theme-700:light-dark(#626268,#4f4318);--color-theme-800:light-dark(#5b5b61,#3a3010);--color-theme-900:light-dark(#2b2b32,#241c06);}display:flex;flex-shrink:0;align-items:center;gap:8px;"]);
|
|
49910
49823
|
var StyledNoteSheetTitle = styled__default["default"].div.withConfig({
|
|
49911
49824
|
displayName: "Styles__StyledNoteSheetTitle",
|
|
49912
|
-
componentId: "sc-10rkcp1-
|
|
49913
|
-
})(["flex-shrink:0;overflow:hidden;font-weight:
|
|
49825
|
+
componentId: "sc-10rkcp1-5"
|
|
49826
|
+
})(["display:-webkit-box;flex-shrink:0;overflow:hidden;-webkit-box-orient:vertical;font-weight:600;color:var(--note-sheet-name);", " .c-note-card__body:hover &{text-decoration-line:underline;}"], function (_ref2) {
|
|
49914
49827
|
var $size = _ref2.$size;
|
|
49915
49828
|
return SHEET_TITLE_SIZES[$size];
|
|
49916
49829
|
});
|
|
49830
|
+
|
|
49831
|
+
/* The rules start at the text, so a name on two lines moves them with the text lines. */
|
|
49832
|
+
var StyledNoteSheetLines = styled__default["default"].div.withConfig({
|
|
49833
|
+
displayName: "Styles__StyledNoteSheetLines",
|
|
49834
|
+
componentId: "sc-10rkcp1-6"
|
|
49835
|
+
})(["min-height:0;flex:1 1 0%;", ""], function (_ref3) {
|
|
49836
|
+
var $size = _ref3.$size;
|
|
49837
|
+
return SHEET_LINES_SIZES[$size];
|
|
49838
|
+
});
|
|
49917
49839
|
var StyledNoteSheetText = styled__default["default"].div.withConfig({
|
|
49918
49840
|
displayName: "Styles__StyledNoteSheetText",
|
|
49919
|
-
componentId: "sc-10rkcp1-
|
|
49920
|
-
})(["
|
|
49921
|
-
var $size =
|
|
49841
|
+
componentId: "sc-10rkcp1-7"
|
|
49842
|
+
})(["display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;overflow-wrap:break-word;color:var(--note-sheet-text);", " ", ""], function (_ref4) {
|
|
49843
|
+
var $size = _ref4.$size;
|
|
49922
49844
|
return SHEET_TEXT_SIZES[$size];
|
|
49923
|
-
}, function (
|
|
49924
|
-
var $empty =
|
|
49925
|
-
return $empty && styled.css(["font-style:italic;
|
|
49845
|
+
}, function (_ref5) {
|
|
49846
|
+
var $empty = _ref5.$empty;
|
|
49847
|
+
return $empty && styled.css(["font-style:italic;"]);
|
|
49926
49848
|
});
|
|
49927
49849
|
var StyledNoteCard = styled__default["default"].a.withConfig({
|
|
49928
49850
|
displayName: "Styles__StyledNoteCard",
|
|
49929
|
-
componentId: "sc-10rkcp1-
|
|
49851
|
+
componentId: "sc-10rkcp1-8"
|
|
49930
49852
|
})(["display:block;text-decoration:none;"]);
|
|
49931
|
-
var StyledNoteCardSheets = styled__default["default"].div.withConfig({
|
|
49932
|
-
displayName: "Styles__StyledNoteCardSheets",
|
|
49933
|
-
componentId: "sc-10rkcp1-4"
|
|
49934
|
-
})(["position:relative;box-sizing:border-box;width:208px;height:221px;"]);
|
|
49935
|
-
var StyledNoteCardSheetBelow = styled__default["default"].span.withConfig({
|
|
49936
|
-
displayName: "Styles__StyledNoteCardSheetBelow",
|
|
49937
|
-
componentId: "sc-10rkcp1-5"
|
|
49938
|
-
})(["position:absolute;top:6px;left:6px;box-sizing:border-box;width:208px;height:221px;border:1px solid var(--color-theme-400);border-radius:3px;background-color:color-mix( in srgb,var(--color-theme-900) 5%,var(--page-paper-main) );"]);
|
|
49939
|
-
var StyledNoteCardName = styled__default["default"](Body2).withConfig({
|
|
49940
|
-
displayName: "Styles__StyledNoteCardName",
|
|
49941
|
-
componentId: "sc-10rkcp1-6"
|
|
49942
|
-
})(["&&{max-height:40px;min-width:0;flex:1 1 0%;overflow:hidden;overflow-wrap:break-word;}"]);
|
|
49943
49853
|
var StyledNoteCardBody = styled__default["default"].div.withConfig({
|
|
49944
49854
|
displayName: "Styles__StyledNoteCardBody",
|
|
49945
|
-
componentId: "sc-10rkcp1-
|
|
49946
|
-
})(["display:flex;box-sizing:border-box;width:208px;flex-direction:column;gap:20px
|
|
49855
|
+
componentId: "sc-10rkcp1-9"
|
|
49856
|
+
})(["position:relative;display:flex;box-sizing:border-box;width:208px;flex-direction:column;gap:20px;"]);
|
|
49947
49857
|
var StyledNoteCardCaption = styled__default["default"].div.withConfig({
|
|
49948
49858
|
displayName: "Styles__StyledNoteCardCaption",
|
|
49949
|
-
componentId: "sc-10rkcp1-
|
|
49859
|
+
componentId: "sc-10rkcp1-10"
|
|
49950
49860
|
})(["display:flex;flex-direction:column;gap:2px;"]);
|
|
49951
|
-
|
|
49952
|
-
|
|
49953
|
-
componentId: "sc-10rkcp1-9"
|
|
49954
|
-
})(["display:flex;align-items:flex-start;gap:6px;& > .c-note-card__pin{flex-shrink:0;margin-top:2px;}"]);
|
|
49861
|
+
|
|
49862
|
+
/* The body is taller than the sheet, so the control counts from the bottom of the sheet. */
|
|
49955
49863
|
var StyledNoteCardOptions = styled__default["default"].div.withConfig({
|
|
49956
49864
|
displayName: "Styles__StyledNoteCardOptions",
|
|
49957
|
-
componentId: "sc-10rkcp1-
|
|
49958
|
-
})(["
|
|
49865
|
+
componentId: "sc-10rkcp1-11"
|
|
49866
|
+
})(["@supports (color:light-dark(red,red)){--color-theme-300:light-dark(#ebebee,rgba(0,0,0,0.1));--color-theme-600:light-dark(#89898e,#4f4318);--color-theme-700:light-dark(#626268,#4f4318);--color-theme-800:light-dark(#5b5b61,#3a3010);--color-theme-900:light-dark(#2b2b32,#241c06);}position:absolute;top:234px;right:6px;display:flex;translate:0 calc(-100% - 6px);transition:translate 150ms cubic-bezier(0.4,0,0.2,1);.c-note-card__body:hover &{translate:0 calc(-100% - 8px);}"]);
|
|
49959
49867
|
var StyledNoteCardNotebook = styled__default["default"].span.withConfig({
|
|
49960
49868
|
displayName: "Styles__StyledNoteCardNotebook",
|
|
49961
|
-
componentId: "sc-10rkcp1-
|
|
49869
|
+
componentId: "sc-10rkcp1-12"
|
|
49962
49870
|
})(["display:flex;min-width:0;align-items:center;gap:4px;"]);
|
|
49963
49871
|
var StyledNoteCardNotebookIcon = styled__default["default"](NotebookIcon$1).withConfig({
|
|
49964
49872
|
displayName: "Styles__StyledNoteCardNotebookIcon",
|
|
49965
|
-
componentId: "sc-10rkcp1-12"
|
|
49966
|
-
})(["width:14px;height:14px;flex-shrink:0;fill:var(--color-theme-600);"]);
|
|
49967
|
-
var StyledNoteCardMeta = styled__default["default"].div.withConfig({
|
|
49968
|
-
displayName: "Styles__StyledNoteCardMeta",
|
|
49969
49873
|
componentId: "sc-10rkcp1-13"
|
|
49970
|
-
})(["
|
|
49971
|
-
var StyledNoteCardSignifiers = styled__default["default"].div.withConfig({
|
|
49972
|
-
displayName: "Styles__StyledNoteCardSignifiers",
|
|
49973
|
-
componentId: "sc-10rkcp1-14"
|
|
49974
|
-
})(["display:flex;flex-shrink:0;align-items:center;gap:8px;"]);
|
|
49874
|
+
})(["width:14px;height:14px;flex-shrink:0;fill:var(--color-theme-600);"]);
|
|
49975
49875
|
|
|
49976
|
-
var _excluded$
|
|
49876
|
+
var _excluded$3 = ["name", "excerpt", "emptyExcerpt", "size", "pin", "meta", "signifiers", "className"],
|
|
49977
49877
|
_excluded2 = ["as", "name", "excerpt", "emptyExcerpt", "pinned", "notebookName", "meta", "signifiers", "options", "pinProps", "notebookProps", "sheetProps", "className"];
|
|
49978
49878
|
var NoteSheet = function NoteSheet(_ref) {
|
|
49979
49879
|
var name = _ref.name,
|
|
@@ -49982,20 +49882,27 @@
|
|
|
49982
49882
|
emptyExcerpt = _ref$emptyExcerpt === void 0 ? "No text yet" : _ref$emptyExcerpt,
|
|
49983
49883
|
_ref$size = _ref.size,
|
|
49984
49884
|
size = _ref$size === void 0 ? "grid" : _ref$size,
|
|
49885
|
+
pin = _ref.pin,
|
|
49886
|
+
meta = _ref.meta,
|
|
49887
|
+
signifiers = _ref.signifiers,
|
|
49985
49888
|
className = _ref.className,
|
|
49986
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49889
|
+
rest = _objectWithoutProperties(_ref, _excluded$3);
|
|
49987
49890
|
return /*#__PURE__*/React__default["default"].createElement(StyledNoteSheet, _extends({
|
|
49988
49891
|
"aria-hidden": "true"
|
|
49989
49892
|
}, rest, {
|
|
49990
49893
|
variant: "tile-2",
|
|
49991
49894
|
$size: size,
|
|
49992
49895
|
className: classnames__default["default"]("c-note-sheet", className)
|
|
49993
|
-
}), /*#__PURE__*/React__default["default"].createElement(StyledNoteSheetTitle, {
|
|
49896
|
+
}), pin ? /*#__PURE__*/React__default["default"].createElement(StyledNoteSheetPin, null, pin) : null, /*#__PURE__*/React__default["default"].createElement(StyledNoteSheetTitle, {
|
|
49897
|
+
$size: size
|
|
49898
|
+
}, name), /*#__PURE__*/React__default["default"].createElement(StyledNoteSheetLines, {
|
|
49994
49899
|
$size: size
|
|
49995
|
-
},
|
|
49900
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledNoteSheetText, {
|
|
49996
49901
|
$size: size,
|
|
49997
49902
|
$empty: !excerpt
|
|
49998
|
-
}, excerpt || emptyExcerpt))
|
|
49903
|
+
}, excerpt || emptyExcerpt)), meta || signifiers ? /*#__PURE__*/React__default["default"].createElement(StyledNoteSheetMeta, null, /*#__PURE__*/React__default["default"].createElement(StyledNoteSheetDate, null, meta), /*#__PURE__*/React__default["default"].createElement(StyledNoteSheetSignifiers, {
|
|
49904
|
+
className: "c-note-sheet__signifiers"
|
|
49905
|
+
}, signifiers)) : null);
|
|
49999
49906
|
};
|
|
50000
49907
|
NoteSheet.displayName = "NoteSheet";
|
|
50001
49908
|
// The root is polymorphic; the public props carry the types.
|
|
@@ -50022,29 +49929,99 @@
|
|
|
50022
49929
|
className: classnames__default["default"]("c-note-card", className)
|
|
50023
49930
|
}), /*#__PURE__*/React__default["default"].createElement(StyledNoteCardBody, {
|
|
50024
49931
|
className: "c-note-card__body"
|
|
50025
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
50026
|
-
|
|
50027
|
-
}
|
|
49932
|
+
}, /*#__PURE__*/React__default["default"].createElement(NoteSheet, _extends({
|
|
49933
|
+
"aria-hidden": undefined
|
|
49934
|
+
}, sheetProps, {
|
|
50028
49935
|
name: name,
|
|
50029
49936
|
excerpt: excerpt,
|
|
50030
|
-
emptyExcerpt: emptyExcerpt
|
|
50031
|
-
|
|
50032
|
-
|
|
50033
|
-
|
|
50034
|
-
|
|
50035
|
-
|
|
50036
|
-
|
|
50037
|
-
}
|
|
49937
|
+
emptyExcerpt: emptyExcerpt,
|
|
49938
|
+
meta: meta,
|
|
49939
|
+
signifiers: signifiers,
|
|
49940
|
+
pin: pinned ? /*#__PURE__*/React__default["default"].createElement(PinSmallIcon$1, _extends({}, pinProps, {
|
|
49941
|
+
className: "c-note-card__pin",
|
|
49942
|
+
fill: "var(--color-primary)"
|
|
49943
|
+
})) : null
|
|
49944
|
+
})), options ? /*#__PURE__*/React__default["default"].createElement(StyledNoteCardOptions, null, options) : null, notebookName ? /*#__PURE__*/React__default["default"].createElement(StyledNoteCardCaption, null, /*#__PURE__*/React__default["default"].createElement(StyledNoteCardNotebook, _extends({}, notebookProps, {
|
|
50038
49945
|
className: "c-note-card__notebook"
|
|
50039
49946
|
}), /*#__PURE__*/React__default["default"].createElement(StyledNoteCardNotebookIcon, null), /*#__PURE__*/React__default["default"].createElement(Caption1, {
|
|
50040
49947
|
color: "tertiary",
|
|
50041
49948
|
overflow: "truncate"
|
|
50042
|
-
}, notebookName)) : null
|
|
50043
|
-
color: "tertiary"
|
|
50044
|
-
}, meta), /*#__PURE__*/React__default["default"].createElement(StyledNoteCardSignifiers, null, signifiers)))));
|
|
49949
|
+
}, notebookName))) : null));
|
|
50045
49950
|
};
|
|
50046
49951
|
NoteCard.displayName = "NoteCard";
|
|
50047
49952
|
|
|
49953
|
+
var NOTEBOOK_CARD_MAX_TABS = 6;
|
|
49954
|
+
var StyledNotebookCard = styled__default["default"].a.withConfig({
|
|
49955
|
+
displayName: "Styles__StyledNotebookCard",
|
|
49956
|
+
componentId: "sc-944luu-0"
|
|
49957
|
+
})(["", " --notebook-card-cover-top:#44474e;--notebook-card-cover-bottom:#3f4249;--notebook-card-cover-edge:rgba(255,255,255,0.008);--notebook-card-cover-shadow:rgba(0,0,0,0.055);--notebook-card-spine:rgba(0,0,0,0.045);--notebook-card-back:#26282d;--notebook-card-shadow:rgba(0,0,0,0.032);--notebook-card-shadow-near:rgba(0,0,0,0.045);--notebook-card-tab-edge:rgba(255,255,255,0.016);--notebook-card-tab-shadow:rgba(0,0,0,0.05);--notebook-card-name:#eef0f3;--notebook-card-count:#b8bdc7;@supports (color:light-dark(red,red)){--notebook-card-cover-top:light-dark(#f5f0dd,#44474e);--notebook-card-cover-bottom:light-dark(#f3edd9,#3f4249);--notebook-card-cover-edge:light-dark( rgba(255,255,255,0.6),rgba(255,255,255,0.008) );--notebook-card-cover-shadow:light-dark( rgba(0,0,0,0.06),rgba(0,0,0,0.055) );--notebook-card-spine:light-dark( rgba(0,0,0,0.03),rgba(0,0,0,0.045) );--notebook-card-back:light-dark(#cfc6a8,#26282d);--notebook-card-shadow:light-dark( rgba(0,0,0,0.05),rgba(0,0,0,0.032) );--notebook-card-shadow-near:light-dark( rgba(0,0,0,0.07),rgba(0,0,0,0.045) );--notebook-card-tab-edge:light-dark( rgba(255,255,255,0.05),rgba(255,255,255,0.016) );--notebook-card-tab-shadow:light-dark( rgba(0,0,0,0.09),rgba(0,0,0,0.05) );--notebook-card-name:light-dark(#3a3830,#eef0f3);--notebook-card-count:light-dark(#6b675a,#b8bdc7);}display:block;width:208px;height:234px;text-decoration:none;"], FontStyle);
|
|
49958
|
+
|
|
49959
|
+
/* The link stays in place on hover, so a pointer at the bottom edge does not lose it. */
|
|
49960
|
+
var StyledNotebookCardBook = styled__default["default"].div.withConfig({
|
|
49961
|
+
displayName: "Styles__StyledNotebookCardBook",
|
|
49962
|
+
componentId: "sc-944luu-1"
|
|
49963
|
+
})(["position:relative;display:flex;box-sizing:border-box;height:100%;flex-direction:column;gap:2px;padding:24px 30px 0 18px;transition:translate 150ms cubic-bezier(0.4,0,0.2,1);", ":hover &{translate:0 -2px;}"], StyledNotebookCard);
|
|
49964
|
+
var StyledNotebookCardTabs = styled__default["default"].div.withConfig({
|
|
49965
|
+
displayName: "Styles__StyledNotebookCardTabs",
|
|
49966
|
+
componentId: "sc-944luu-2"
|
|
49967
|
+
})(["position:absolute;top:8px;left:176px;display:flex;width:32px;flex-direction:column;gap:6px;"]);
|
|
49968
|
+
var StyledNotebookCardTab = styled__default["default"].div.withConfig({
|
|
49969
|
+
displayName: "Styles__StyledNotebookCardTab",
|
|
49970
|
+
componentId: "sc-944luu-3"
|
|
49971
|
+
})(["height:31px;border-radius:0 4px 4px 0;box-shadow:0 1px 1.5px var(--notebook-card-tab-shadow),inset 0 1px 0 var(--notebook-card-tab-edge);background-color:var(--page-paper-main);@supports (color:light-dark(red,red)){background-color:light-dark(#e3d9b8,#b4a578);}"]);
|
|
49972
|
+
var StyledNotebookCardBack = styled__default["default"].div.withConfig({
|
|
49973
|
+
displayName: "Styles__StyledNotebookCardBack",
|
|
49974
|
+
componentId: "sc-944luu-4"
|
|
49975
|
+
})(["position:absolute;top:0.3px;left:0.2px;width:194px;height:231px;border-radius:4px;background-color:var(--notebook-card-back);box-shadow:0 5px 12px var(--notebook-card-shadow),0 1px 2px var(--notebook-card-shadow-near);"]);
|
|
49976
|
+
var StyledNotebookCardCover = styled__default["default"].div.withConfig({
|
|
49977
|
+
displayName: "Styles__StyledNotebookCardCover",
|
|
49978
|
+
componentId: "sc-944luu-5"
|
|
49979
|
+
})(["position:absolute;top:0;left:0;width:194px;height:231px;border-radius:5px 3px 3px 5px;background:linear-gradient(to right,var(--notebook-card-spine),transparent) left / 12px 100% no-repeat,linear-gradient( 191.86deg,var(--notebook-card-cover-top) 6.84%,var(--notebook-card-cover-bottom) 93.16% );box-shadow:2px 0 3px var(--notebook-card-cover-shadow),inset 0 1px 0 var(--notebook-card-cover-edge);"]);
|
|
49980
|
+
var StyledNotebookCardName = styled__default["default"].div.withConfig({
|
|
49981
|
+
displayName: "Styles__StyledNotebookCardName",
|
|
49982
|
+
componentId: "sc-944luu-6"
|
|
49983
|
+
})(["position:relative;display:-webkit-box;flex-shrink:0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow-wrap:break-word;font-size:calc(16px * var(--text-scale,1));font-weight:600;line-height:20px;color:var(--notebook-card-name);", ":hover &{text-decoration-line:underline;}"], StyledNotebookCard);
|
|
49984
|
+
var StyledNotebookCardCount = styled__default["default"].div.withConfig({
|
|
49985
|
+
displayName: "Styles__StyledNotebookCardCount",
|
|
49986
|
+
componentId: "sc-944luu-7"
|
|
49987
|
+
})(["position:relative;flex-shrink:0;overflow:hidden;font-size:calc(12px * var(--text-scale,1));line-height:16px;color:var(--notebook-card-count);text-overflow:ellipsis;white-space:nowrap;"]);
|
|
49988
|
+
var StyledNotebookCardOptions = styled__default["default"].div.withConfig({
|
|
49989
|
+
displayName: "Styles__StyledNotebookCardOptions",
|
|
49990
|
+
componentId: "sc-944luu-8"
|
|
49991
|
+
})(["--color-theme-300:#33363f;--color-theme-700:#b0b0b5;--color-theme-800:#dfdfe5;--color-theme-900:#ffffff;@supports (color:light-dark(red,red)){--color-theme-300:light-dark(rgba(0,0,0,0.08),#33363f);--color-theme-700:light-dark(#4a4a50,#b0b0b5);--color-theme-800:light-dark(#3a3a40,#dfdfe5);--color-theme-900:light-dark(#2b2b32,#ffffff);}position:absolute;right:20px;bottom:9px;display:flex;"]);
|
|
49992
|
+
|
|
49993
|
+
var _excluded$2 = ["as", "name", "nameTitle", "count", "tabCount", "options", "className"];
|
|
49994
|
+
// The root is polymorphic; the public props carry the types.
|
|
49995
|
+
var StyledNotebookCardRoot = StyledNotebookCard;
|
|
49996
|
+
var NotebookCard = function NotebookCard(_ref) {
|
|
49997
|
+
var as = _ref.as,
|
|
49998
|
+
name = _ref.name,
|
|
49999
|
+
nameTitle = _ref.nameTitle,
|
|
50000
|
+
count = _ref.count,
|
|
50001
|
+
_ref$tabCount = _ref.tabCount,
|
|
50002
|
+
tabCount = _ref$tabCount === void 0 ? 0 : _ref$tabCount,
|
|
50003
|
+
options = _ref.options,
|
|
50004
|
+
className = _ref.className,
|
|
50005
|
+
rest = _objectWithoutProperties(_ref, _excluded$2);
|
|
50006
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledNotebookCardRoot, _extends({
|
|
50007
|
+
as: as
|
|
50008
|
+
}, rest, {
|
|
50009
|
+
className: classnames__default["default"]("c-notebook-card", className)
|
|
50010
|
+
}), /*#__PURE__*/React__default["default"].createElement(StyledNotebookCardBook, null, /*#__PURE__*/React__default["default"].createElement(StyledNotebookCardTabs, {
|
|
50011
|
+
"aria-hidden": "true"
|
|
50012
|
+
}, Array.from({
|
|
50013
|
+
length: Math.max(0, Math.min(tabCount, NOTEBOOK_CARD_MAX_TABS))
|
|
50014
|
+
}, function (_, index) {
|
|
50015
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledNotebookCardTab, {
|
|
50016
|
+
key: index,
|
|
50017
|
+
className: "c-notebook-card__tab"
|
|
50018
|
+
});
|
|
50019
|
+
})), /*#__PURE__*/React__default["default"].createElement(StyledNotebookCardBack, null), /*#__PURE__*/React__default["default"].createElement(StyledNotebookCardCover, null), /*#__PURE__*/React__default["default"].createElement(StyledNotebookCardName, {
|
|
50020
|
+
title: nameTitle
|
|
50021
|
+
}, name), /*#__PURE__*/React__default["default"].createElement(StyledNotebookCardCount, null, count), options ? /*#__PURE__*/React__default["default"].createElement(StyledNotebookCardOptions, null, options) : null));
|
|
50022
|
+
};
|
|
50023
|
+
NotebookCard.displayName = "NotebookCard";
|
|
50024
|
+
|
|
50048
50025
|
var StyledNotebookTile = styled__default["default"].a.withConfig({
|
|
50049
50026
|
displayName: "Styles__StyledNotebookTile",
|
|
50050
50027
|
componentId: "sc-1bdeo7e-0"
|
|
@@ -50093,7 +50070,7 @@
|
|
|
50093
50070
|
|
|
50094
50071
|
var LAYOUTS = {
|
|
50095
50072
|
notebooks: styled.css(["display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;"]),
|
|
50096
|
-
grid: styled.css(["display:grid;grid-template-columns:repeat(auto-fill,
|
|
50073
|
+
grid: styled.css(["display:grid;grid-template-columns:repeat(auto-fill,208px);column-gap:32px;row-gap:32px;"]),
|
|
50097
50074
|
list: styled.css(["display:flex;flex-direction:column;"])
|
|
50098
50075
|
};
|
|
50099
50076
|
var StyledListSection = styled__default["default"].section.withConfig({
|
|
@@ -50509,6 +50486,7 @@
|
|
|
50509
50486
|
exports.NoteCard = NoteCard;
|
|
50510
50487
|
exports.NoteIcon = NoteIcon$1;
|
|
50511
50488
|
exports.NoteSheet = NoteSheet;
|
|
50489
|
+
exports.NotebookCard = NotebookCard;
|
|
50512
50490
|
exports.NotebookIcon = NotebookIcon$1;
|
|
50513
50491
|
exports.NotebookTile = NotebookTile;
|
|
50514
50492
|
exports.NotesEmptyIllustration = NotesEmptyIllustration;
|
|
@@ -50777,13 +50755,11 @@
|
|
|
50777
50755
|
exports.TriangleIcon = TriangleIcon$1;
|
|
50778
50756
|
exports.Trigger = Trigger;
|
|
50779
50757
|
exports.UploadIcon = UploadIcon$1;
|
|
50780
|
-
exports.VIEW_ILLUSTRATION_TYPES = VIEW_ILLUSTRATION_TYPES;
|
|
50781
50758
|
exports.ValueButton = ValueButton;
|
|
50782
50759
|
exports.ViewColumnIcon = ViewColumnIcon$1;
|
|
50783
50760
|
exports.ViewCombinedIcon = ViewCombinedIcon$1;
|
|
50784
50761
|
exports.ViewDayIcon = ViewDayIcon$1;
|
|
50785
50762
|
exports.ViewGridIcon = ViewGridIcon$1;
|
|
50786
|
-
exports.ViewIllustration = ViewIllustration;
|
|
50787
50763
|
exports.ViewListIcon = ViewListIcon$1;
|
|
50788
50764
|
exports.ViewSwitcher = ViewSwitcher;
|
|
50789
50765
|
exports.ViewSwitcherMenu = ViewSwitcherMenu;
|