@activecollab/components 2.0.569 → 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/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/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 -471
- 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) {
|
|
@@ -26016,7 +26036,7 @@
|
|
|
26016
26036
|
displayName: "ChipGroupStyles__StyledChipGroup",
|
|
26017
26037
|
componentId: "sc-1wgqzaj-0"
|
|
26018
26038
|
})(["display:flex;align-items:center;min-width:0;", ""], function (props) {
|
|
26019
|
-
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;"]);
|
|
26020
26040
|
});
|
|
26021
26041
|
StyledChipGroup.displayName = "StyledChipGroup";
|
|
26022
26042
|
|
|
@@ -28191,7 +28211,7 @@
|
|
|
28191
28211
|
componentId: "sc-9x4q7e-0"
|
|
28192
28212
|
})(["cursor:auto"]);
|
|
28193
28213
|
|
|
28194
|
-
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"];
|
|
28195
28215
|
var Select = function Select(_ref) {
|
|
28196
28216
|
var _ref$type = _ref.type,
|
|
28197
28217
|
type = _ref$type === void 0 ? "single" : _ref$type,
|
|
@@ -28204,6 +28224,7 @@
|
|
|
28204
28224
|
mixed = _ref$mixed === void 0 ? [] : _ref$mixed,
|
|
28205
28225
|
_ref$position = _ref.position,
|
|
28206
28226
|
position = _ref$position === void 0 ? "bottom-start" : _ref$position,
|
|
28227
|
+
followTarget = _ref.followTarget,
|
|
28207
28228
|
_ref$onChange = _ref.onChange,
|
|
28208
28229
|
onChange = _ref$onChange === void 0 ? function () {
|
|
28209
28230
|
return null;
|
|
@@ -28356,6 +28377,7 @@
|
|
|
28356
28377
|
mode,
|
|
28357
28378
|
open,
|
|
28358
28379
|
position,
|
|
28380
|
+
followTarget,
|
|
28359
28381
|
onPopperOpen,
|
|
28360
28382
|
closeOnTab,
|
|
28361
28383
|
prerender,
|
|
@@ -28366,7 +28388,7 @@
|
|
|
28366
28388
|
return {
|
|
28367
28389
|
className: classnames__default["default"]("c-select", selectClassName)
|
|
28368
28390
|
};
|
|
28369
|
-
}, [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]);
|
|
28370
28392
|
var handleEmptyAction = React.useCallback(function (value) {
|
|
28371
28393
|
emptyAction(value);
|
|
28372
28394
|
if (forceCloseMenu) {
|
|
@@ -34704,15 +34726,17 @@
|
|
|
34704
34726
|
var PILL_HEIGHTS = {
|
|
34705
34727
|
xsmall: "18px",
|
|
34706
34728
|
small: "24px",
|
|
34729
|
+
dense: "24px",
|
|
34707
34730
|
medium: "26px"
|
|
34708
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);
|
|
34709
34733
|
|
|
34710
34734
|
/* The size of a type chip: small caps of an object type or a state switch. */
|
|
34711
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);
|
|
34712
34736
|
var StyledPillButton = styled__default["default"].button.withConfig({
|
|
34713
34737
|
displayName: "Styles__StyledPillButton",
|
|
34714
34738
|
componentId: "sc-14yhio0-2"
|
|
34715
|
-
})(["", " ", " 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) {
|
|
34716
34740
|
return PILL_HEIGHTS[props.$size];
|
|
34717
34741
|
}, function (props) {
|
|
34718
34742
|
return props.$inset === "tight" ? "6px" : "10px";
|
|
@@ -34728,6 +34752,8 @@
|
|
|
34728
34752
|
return props.$iconOnly && styled.css(["width:36px;padding:0;", " svg{width:16px;height:16px;}"], StyledPillIcon);
|
|
34729
34753
|
}, function (props) {
|
|
34730
34754
|
return props.$size === "xsmall" && xsmallStyle;
|
|
34755
|
+
}, function (props) {
|
|
34756
|
+
return props.$size === "dense" && denseStyle;
|
|
34731
34757
|
}, function (props) {
|
|
34732
34758
|
return props.$compact === true && compactStyle;
|
|
34733
34759
|
}, function (props) {
|
|
@@ -34845,6 +34871,10 @@
|
|
|
34845
34871
|
});
|
|
34846
34872
|
PillGroup.displayName = "PillGroup";
|
|
34847
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;
|
|
34848
34878
|
var StyledViewSwitcher = styled__default["default"].div.withConfig({
|
|
34849
34879
|
displayName: "Styles__StyledViewSwitcher",
|
|
34850
34880
|
componentId: "sc-1cg2mte-0"
|
|
@@ -34853,12 +34883,12 @@
|
|
|
34853
34883
|
var StyledViewSwitcherTrack = styled__default["default"].div.withConfig({
|
|
34854
34884
|
displayName: "Styles__StyledViewSwitcherTrack",
|
|
34855
34885
|
componentId: "sc-1cg2mte-1"
|
|
34856
|
-
})(["", " 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);
|
|
34857
34887
|
StyledViewSwitcherTrack.displayName = "StyledViewSwitcherTrack";
|
|
34858
34888
|
var StyledViewSwitcherOption = styled__default["default"].button.withConfig({
|
|
34859
34889
|
displayName: "Styles__StyledViewSwitcherOption",
|
|
34860
34890
|
componentId: "sc-1cg2mte-2"
|
|
34861
|
-
})(["", " 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);
|
|
34862
34892
|
StyledViewSwitcherOption.displayName = "StyledViewSwitcherOption";
|
|
34863
34893
|
var StyledViewSwitcherMenuOption = styled__default["default"].button.withConfig({
|
|
34864
34894
|
displayName: "Styles__StyledViewSwitcherMenuOption",
|
|
@@ -34880,157 +34910,27 @@
|
|
|
34880
34910
|
componentId: "sc-1cg2mte-6"
|
|
34881
34911
|
})(["flex:1;&[data-selected=\"true\"]{font-weight:bold;color:var(--color-primary);}"]);
|
|
34882
34912
|
StyledViewSwitcherMenuLabel.displayName = "StyledViewSwitcherMenuLabel";
|
|
34883
|
-
var
|
|
34884
|
-
|
|
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",
|
|
34885
34919
|
componentId: "sc-1cg2mte-7"
|
|
34886
|
-
})(["
|
|
34887
|
-
|
|
34888
|
-
var
|
|
34889
|
-
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",
|
|
34890
34924
|
componentId: "sc-1cg2mte-8"
|
|
34891
|
-
})(["", " position:relative;width:
|
|
34892
|
-
|
|
34893
|
-
var StyledViewSwitcherOffer = styled__default["default"].div.withConfig({
|
|
34894
|
-
displayName: "Styles__StyledViewSwitcherOffer",
|
|
34895
|
-
componentId: "sc-1cg2mte-9"
|
|
34896
|
-
})(["", " 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);
|
|
34897
|
-
StyledViewSwitcherOffer.displayName = "StyledViewSwitcherOffer";
|
|
34898
|
-
|
|
34899
|
-
var _excluded$13 = ["type", "className"];
|
|
34900
|
-
var VIEW_ILLUSTRATION_TYPES = ["list", "grid", "column", "timeline", "month", "week", "day", "timesheet", "activity-summary", "activity-timeline"];
|
|
34901
|
-
var box = function box(x, y, w, h) {
|
|
34902
|
-
var r = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 2;
|
|
34903
|
-
return {
|
|
34904
|
-
x,
|
|
34905
|
-
y,
|
|
34906
|
-
w,
|
|
34907
|
-
h,
|
|
34908
|
-
r
|
|
34909
|
-
};
|
|
34910
|
-
};
|
|
34911
|
-
var cut = function cut(x, y, w, h) {
|
|
34912
|
-
return {
|
|
34913
|
-
x,
|
|
34914
|
-
y,
|
|
34915
|
-
w,
|
|
34916
|
-
h,
|
|
34917
|
-
r: 2,
|
|
34918
|
-
cut: true
|
|
34919
|
-
};
|
|
34920
|
-
};
|
|
34921
|
-
var dot = function dot(x, y, d) {
|
|
34922
|
-
return {
|
|
34923
|
-
cx: x + d / 2,
|
|
34924
|
-
cy: y + d / 2,
|
|
34925
|
-
d
|
|
34926
|
-
};
|
|
34927
|
-
};
|
|
34928
|
-
var DAYS$1 = [0, 1, 2, 3, 4, 5, 6].map(function (index) {
|
|
34929
|
-
return 11 + index * 20;
|
|
34930
|
-
});
|
|
34931
|
-
var WEEKDAYS = [0, 1, 2, 3, 4].map(function (index) {
|
|
34932
|
-
return 50 + index * 21;
|
|
34933
|
-
});
|
|
34934
|
-
var COLUMNS = [10, 58, 106];
|
|
34935
|
-
var SHAPES = {
|
|
34936
|
-
list: [10, 22, 34, 46].flatMap(function (y, index) {
|
|
34937
|
-
return [box(10, y, 8, 8), box(24, y, [96, 72, 108, 60][index], 8)];
|
|
34938
|
-
}),
|
|
34939
|
-
grid: COLUMNS.flatMap(function (x) {
|
|
34940
|
-
return [box(x, 10, 44, 44, 3), cut(x + 6, 36, 26, 4), cut(x + 6, 44, 18, 4)];
|
|
34941
|
-
}),
|
|
34942
|
-
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)],
|
|
34943
|
-
timeline: [box(10, 10, 30, 8), box(28, 22, 52, 8), box(46, 34, 74, 8), box(64, 46, 96, 8)],
|
|
34944
|
-
month: [...DAYS$1.map(function (x) {
|
|
34945
|
-
return box(x, 8, 18, 4, 1);
|
|
34946
|
-
}), ...[16, 27, 38, 49].flatMap(function (y) {
|
|
34947
|
-
return DAYS$1.map(function (x) {
|
|
34948
|
-
return box(x, y, 18, 9);
|
|
34949
|
-
});
|
|
34950
|
-
})],
|
|
34951
|
-
week: [...DAYS$1.map(function (x) {
|
|
34952
|
-
return box(x, 8, 18, 4, 1);
|
|
34953
|
-
}), 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)],
|
|
34954
|
-
day: [...[12, 26, 40, 54].flatMap(function (y) {
|
|
34955
|
-
return [box(10, y - 2, 10, 4, 1), box(26, y, 124, 1, 0)];
|
|
34956
|
-
}), box(26, 15, 80, 9), box(26, 43, 110, 9)],
|
|
34957
|
-
timesheet: [...WEEKDAYS.map(function (x) {
|
|
34958
|
-
return box(x, 6, 15, 4, 1);
|
|
34959
|
-
}), ...[16, 30, 44].flatMap(function (y) {
|
|
34960
|
-
return [box(10, y, 30, 8), ...WEEKDAYS.map(function (x) {
|
|
34961
|
-
return box(x, y, 15, 8);
|
|
34962
|
-
})];
|
|
34963
|
-
})],
|
|
34964
|
-
"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)],
|
|
34965
|
-
"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)]
|
|
34966
|
-
};
|
|
34967
|
-
var StyledViewIllustration = styled__default["default"].svg.withConfig({
|
|
34968
|
-
displayName: "ViewIllustration__StyledViewIllustration",
|
|
34969
|
-
componentId: "sc-1qsu41v-0"
|
|
34970
|
-
})(["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);}"]);
|
|
34971
|
-
StyledViewIllustration.displayName = "StyledViewIllustration";
|
|
34972
|
-
/**
|
|
34973
|
-
* @component ViewIllustration
|
|
34974
|
-
* @description
|
|
34975
|
-
* Small schematic of a page view, 160x64, for the preview card of a ViewSwitcher.
|
|
34976
|
-
* It takes its colors from the theme tokens only.
|
|
34977
|
-
*
|
|
34978
|
-
* @example
|
|
34979
|
-
* <ViewIllustration type="timeline" />
|
|
34980
|
-
*/
|
|
34981
|
-
var ViewIllustration = function ViewIllustration(_ref) {
|
|
34982
|
-
var _SHAPES$type;
|
|
34983
|
-
var type = _ref.type,
|
|
34984
|
-
className = _ref.className,
|
|
34985
|
-
rest = _objectWithoutProperties(_ref, _excluded$13);
|
|
34986
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledViewIllustration, _extends({}, rest, {
|
|
34987
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
34988
|
-
viewBox: "0 0 160 64",
|
|
34989
|
-
"aria-hidden": "true",
|
|
34990
|
-
focusable: "false",
|
|
34991
|
-
"data-illustration": type,
|
|
34992
|
-
className: classnames__default["default"]("c-view-illustration", className)
|
|
34993
|
-
}), ((_SHAPES$type = SHAPES[type]) !== null && _SHAPES$type !== void 0 ? _SHAPES$type : []).map(function (shape, index) {
|
|
34994
|
-
return "d" in shape ? /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
34995
|
-
key: index,
|
|
34996
|
-
className: "c-view-illustration__shape",
|
|
34997
|
-
cx: shape.cx,
|
|
34998
|
-
cy: shape.cy,
|
|
34999
|
-
r: shape.d / 2
|
|
35000
|
-
}) : /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
35001
|
-
key: index,
|
|
35002
|
-
className: shape.cut ? "c-view-illustration__cut" : "c-view-illustration__shape",
|
|
35003
|
-
x: shape.x,
|
|
35004
|
-
y: shape.y,
|
|
35005
|
-
width: shape.w,
|
|
35006
|
-
height: shape.h,
|
|
35007
|
-
rx: shape.r
|
|
35008
|
-
});
|
|
35009
|
-
}));
|
|
35010
|
-
};
|
|
35011
|
-
ViewIllustration.displayName = "ViewIllustration";
|
|
35012
|
-
|
|
35013
|
-
var _excluded$12 = ["views", "value", "onChange", "aria-label", "onApplyToAll", "applyToAllLabel", "offerTitle", "className", "onKeyDown", "onBlur"];
|
|
35014
|
-
var POPOVER_MODIFIERS = [{
|
|
35015
|
-
name: "offset",
|
|
35016
|
-
options: {
|
|
35017
|
-
offset: [0, 6]
|
|
35018
|
-
}
|
|
35019
|
-
}];
|
|
35020
|
-
var TABBABLE = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
35021
|
-
var matchesFocusVisible = function matchesFocusVisible(element) {
|
|
35022
|
-
try {
|
|
35023
|
-
return element.matches(":focus-visible");
|
|
35024
|
-
} catch (_unused) {
|
|
35025
|
-
return false;
|
|
35026
|
-
}
|
|
35027
|
-
};
|
|
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";
|
|
35028
34927
|
|
|
34928
|
+
var _excluded$13 = ["views", "value", "onChange", "aria-label", "onApplyToAll", "applyToAllLabel", "offerTitle", "dismissLabel", "appliedLabel", "className", "onKeyDown", "onBlur"];
|
|
35029
34929
|
/**
|
|
35030
34930
|
* @component ViewSwitcher
|
|
35031
34931
|
* @description
|
|
35032
|
-
* Icon-only radiogroup that switches the view of a page. A
|
|
35033
|
-
*
|
|
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.
|
|
35034
34934
|
*
|
|
35035
34935
|
* @example
|
|
35036
34936
|
* <ViewSwitcher
|
|
@@ -35055,28 +34955,32 @@
|
|
|
35055
34955
|
_ref$applyToAllLabel = _ref.applyToAllLabel,
|
|
35056
34956
|
applyToAllLabel = _ref$applyToAllLabel === void 0 ? "Apply to All Projects" : _ref$applyToAllLabel,
|
|
35057
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,
|
|
35058
34962
|
className = _ref.className,
|
|
35059
34963
|
onKeyDown = _ref.onKeyDown,
|
|
35060
34964
|
onBlur = _ref.onBlur,
|
|
35061
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
35062
|
-
var _useLayerContext = useLayerContext(),
|
|
35063
|
-
_useLayerContext$zInd = _useLayerContext.zIndex,
|
|
35064
|
-
zIndex = _useLayerContext$zInd === void 0 ? layers.skyscraper : _useLayerContext$zInd;
|
|
34965
|
+
rest = _objectWithoutProperties(_ref, _excluded$13);
|
|
35065
34966
|
var rootRef = React.useRef(null);
|
|
35066
34967
|
var handleRootRef = useForkRef(rootRef, ref);
|
|
35067
34968
|
var trackRef = React.useRef(null);
|
|
35068
34969
|
var optionRefs = React.useRef({});
|
|
35069
|
-
var offerRef = React.useRef(null);
|
|
35070
34970
|
var offerActionRef = React.useRef(null);
|
|
35071
34971
|
var _useState = React.useState(null),
|
|
35072
34972
|
_useState2 = _slicedToArray(_useState, 2),
|
|
35073
|
-
|
|
35074
|
-
|
|
35075
|
-
var _useState3 = React.useState(
|
|
34973
|
+
offerId = _useState2[0],
|
|
34974
|
+
setOfferId = _useState2[1];
|
|
34975
|
+
var _useState3 = React.useState("open"),
|
|
35076
34976
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
35077
|
-
|
|
35078
|
-
|
|
34977
|
+
offerPhase = _useState4[0],
|
|
34978
|
+
setOfferPhase = _useState4[1];
|
|
35079
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();
|
|
35080
34984
|
var checkedIndex = views.findIndex(function (_ref2) {
|
|
35081
34985
|
var id = _ref2.id;
|
|
35082
34986
|
return id === value;
|
|
@@ -35086,25 +34990,21 @@
|
|
|
35086
34990
|
var id = _ref3.id;
|
|
35087
34991
|
return id === offerId;
|
|
35088
34992
|
});
|
|
35089
|
-
var previewView = offerView ? undefined : views.find(function (_ref4) {
|
|
35090
|
-
var id = _ref4.id;
|
|
35091
|
-
return id === previewId;
|
|
35092
|
-
});
|
|
35093
34993
|
var select = React.useCallback(function (id) {
|
|
35094
34994
|
if (id === value) {
|
|
35095
34995
|
return;
|
|
35096
34996
|
}
|
|
35097
34997
|
onChange(id);
|
|
35098
|
-
setPreviewId(null);
|
|
35099
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");
|
|
35100
35002
|
setOfferId(id);
|
|
35101
35003
|
}
|
|
35102
35004
|
}, [onApplyToAll, onChange, value]);
|
|
35103
|
-
|
|
35104
|
-
// The popovers live in a portal, so "inside" covers them as well as the track.
|
|
35105
35005
|
var isInside = function isInside(node) {
|
|
35106
|
-
var _rootRef$current
|
|
35107
|
-
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)));
|
|
35108
35008
|
};
|
|
35109
35009
|
var focusChecked = React.useCallback(function () {
|
|
35110
35010
|
if (tabStopId) {
|
|
@@ -35112,6 +35012,70 @@
|
|
|
35112
35012
|
(_optionRefs$current$t = optionRefs.current[tabStopId]) === null || _optionRefs$current$t === void 0 || _optionRefs$current$t.focus();
|
|
35113
35013
|
}
|
|
35114
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]);
|
|
35115
35079
|
React.useEffect(function () {
|
|
35116
35080
|
if (!offerId) {
|
|
35117
35081
|
return undefined;
|
|
@@ -35137,11 +35101,6 @@
|
|
|
35137
35101
|
Home: 0,
|
|
35138
35102
|
End: last
|
|
35139
35103
|
};
|
|
35140
|
-
if (event.key === "Tab" && !event.shiftKey && offerActionRef.current) {
|
|
35141
|
-
event.preventDefault();
|
|
35142
|
-
offerActionRef.current.focus();
|
|
35143
|
-
return;
|
|
35144
|
-
}
|
|
35145
35104
|
var target = targets[event.key];
|
|
35146
35105
|
if (target === undefined) {
|
|
35147
35106
|
return;
|
|
@@ -35153,18 +35112,14 @@
|
|
|
35153
35112
|
};
|
|
35154
35113
|
var handleRootKeyDown = function handleRootKeyDown(event) {
|
|
35155
35114
|
onKeyDown === null || onKeyDown === void 0 || onKeyDown(event);
|
|
35156
|
-
if (event.key !== "Escape" || !offerId
|
|
35115
|
+
if (event.key !== "Escape" || !offerId) {
|
|
35157
35116
|
return;
|
|
35158
35117
|
}
|
|
35159
35118
|
|
|
35160
35119
|
// A native dialog around the switcher would take an Escape that is not prevented as its own close request.
|
|
35161
35120
|
event.preventDefault();
|
|
35162
35121
|
event.stopPropagation();
|
|
35163
|
-
|
|
35164
|
-
if (offerId) {
|
|
35165
|
-
setOfferId(null);
|
|
35166
|
-
focusChecked();
|
|
35167
|
-
}
|
|
35122
|
+
closeOffer(true);
|
|
35168
35123
|
};
|
|
35169
35124
|
var handleRootBlur = function handleRootBlur(event) {
|
|
35170
35125
|
onBlur === null || onBlur === void 0 || onBlur(event);
|
|
@@ -35173,35 +35128,22 @@
|
|
|
35173
35128
|
setOfferId(null);
|
|
35174
35129
|
}
|
|
35175
35130
|
};
|
|
35176
|
-
var
|
|
35177
|
-
if (
|
|
35178
|
-
return;
|
|
35179
|
-
}
|
|
35180
|
-
event.preventDefault();
|
|
35181
|
-
if (event.shiftKey) {
|
|
35182
|
-
focusChecked();
|
|
35131
|
+
var applyToAll = async function applyToAll() {
|
|
35132
|
+
if (!offerId || !onApplyToAll || offerPhase !== "open") {
|
|
35183
35133
|
return;
|
|
35184
35134
|
}
|
|
35185
|
-
|
|
35186
|
-
|
|
35187
|
-
|
|
35188
|
-
|
|
35189
|
-
}
|
|
35190
|
-
|
|
35191
|
-
next.focus();
|
|
35192
|
-
} else {
|
|
35193
|
-
focusChecked();
|
|
35194
|
-
setOfferId(null);
|
|
35135
|
+
var isApplied = false;
|
|
35136
|
+
setOfferPhase("applying");
|
|
35137
|
+
try {
|
|
35138
|
+
isApplied = (await onApplyToAll(offerId)) !== false;
|
|
35139
|
+
} finally {
|
|
35140
|
+
setOfferPhase(isApplied ? "applied" : "leaving");
|
|
35195
35141
|
}
|
|
35196
35142
|
};
|
|
35197
|
-
var
|
|
35198
|
-
if (
|
|
35199
|
-
|
|
35143
|
+
var dismiss = function dismiss() {
|
|
35144
|
+
if (offerPhase === "open") {
|
|
35145
|
+
setOfferPhase("leaving");
|
|
35200
35146
|
}
|
|
35201
|
-
var id = offerId;
|
|
35202
|
-
focusChecked();
|
|
35203
|
-
setOfferId(null);
|
|
35204
|
-
await onApplyToAll(id);
|
|
35205
35147
|
};
|
|
35206
35148
|
return /*#__PURE__*/React__default["default"].createElement(StyledViewSwitcher, _extends({
|
|
35207
35149
|
ref: handleRootRef,
|
|
@@ -35210,13 +35152,37 @@
|
|
|
35210
35152
|
onBlur: handleRootBlur
|
|
35211
35153
|
}, rest), /*#__PURE__*/React__default["default"].createElement(StyledViewSwitcherTrack, {
|
|
35212
35154
|
ref: trackRef,
|
|
35213
|
-
role: "radiogroup",
|
|
35214
|
-
"aria-label": ariaLabel,
|
|
35155
|
+
role: offerView ? undefined : "radiogroup",
|
|
35156
|
+
"aria-label": offerView ? undefined : ariaLabel,
|
|
35215
35157
|
className: "c-view-switcher__track"
|
|
35216
|
-
},
|
|
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) {
|
|
35217
35180
|
var checked = view.id === value;
|
|
35218
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
35181
|
+
return /*#__PURE__*/React__default["default"].createElement(Tooltip, {
|
|
35219
35182
|
key: view.id,
|
|
35183
|
+
title: view.label,
|
|
35184
|
+
placement: "bottom"
|
|
35185
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledViewSwitcherOption, {
|
|
35220
35186
|
ref: function ref(node) {
|
|
35221
35187
|
optionRefs.current[view.id] = node;
|
|
35222
35188
|
},
|
|
@@ -35231,74 +35197,13 @@
|
|
|
35231
35197
|
},
|
|
35232
35198
|
onKeyDown: function onKeyDown(event) {
|
|
35233
35199
|
return handleOptionKeyDown(event, index);
|
|
35234
|
-
},
|
|
35235
|
-
onMouseEnter: function onMouseEnter() {
|
|
35236
|
-
return setPreviewId(view.id);
|
|
35237
|
-
},
|
|
35238
|
-
onMouseLeave: function onMouseLeave() {
|
|
35239
|
-
return setPreviewId(null);
|
|
35240
|
-
},
|
|
35241
|
-
onFocus: function onFocus(event) {
|
|
35242
|
-
if (matchesFocusVisible(event.currentTarget)) {
|
|
35243
|
-
setPreviewId(view.id);
|
|
35244
|
-
}
|
|
35245
|
-
},
|
|
35246
|
-
onBlur: function onBlur() {
|
|
35247
|
-
return setPreviewId(null);
|
|
35248
35200
|
}
|
|
35249
|
-
}, view.icon);
|
|
35250
|
-
}))
|
|
35251
|
-
anchorEl: optionRefs.current[previewView.id],
|
|
35252
|
-
open: true,
|
|
35253
|
-
placement: "bottom",
|
|
35254
|
-
strategy: "fixed",
|
|
35255
|
-
modifiers: POPOVER_MODIFIERS,
|
|
35256
|
-
style: {
|
|
35257
|
-
zIndex
|
|
35258
|
-
},
|
|
35259
|
-
"aria-hidden": "true"
|
|
35260
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledViewSwitcherPreview, {
|
|
35261
|
-
className: "c-view-switcher__preview"
|
|
35262
|
-
}, 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, {
|
|
35263
|
-
type: previewView.illustration
|
|
35264
|
-
})) : null, /*#__PURE__*/React__default["default"].createElement(Caption1, {
|
|
35265
|
-
weight: "bold",
|
|
35266
|
-
color: "primary"
|
|
35267
|
-
}, previewView.label), previewView.description ? /*#__PURE__*/React__default["default"].createElement(Caption1, {
|
|
35268
|
-
color: "tertiary"
|
|
35269
|
-
}, previewView.description) : null))) : null, offerView ? /*#__PURE__*/React__default["default"].createElement(Portal, null, /*#__PURE__*/React__default["default"].createElement(Popper, {
|
|
35270
|
-
anchorEl: trackRef.current,
|
|
35271
|
-
open: true,
|
|
35272
|
-
placement: "bottom",
|
|
35273
|
-
strategy: "fixed",
|
|
35274
|
-
modifiers: POPOVER_MODIFIERS,
|
|
35275
|
-
style: {
|
|
35276
|
-
zIndex
|
|
35277
|
-
}
|
|
35278
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledViewSwitcherOffer, {
|
|
35279
|
-
ref: offerRef,
|
|
35280
|
-
role: "group",
|
|
35281
|
-
"aria-labelledby": offerTitleId,
|
|
35282
|
-
className: "c-view-switcher__offer"
|
|
35283
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
35284
|
-
className: "c-view-switcher__offer-title"
|
|
35285
|
-
}, offerView.icon, /*#__PURE__*/React__default["default"].createElement(Body2, {
|
|
35286
|
-
id: offerTitleId,
|
|
35287
|
-
weight: "bold",
|
|
35288
|
-
color: "primary"
|
|
35289
|
-
}, offerTitle ? offerTitle(offerView) : "Now in ".concat(offerView.label))), /*#__PURE__*/React__default["default"].createElement(Button, {
|
|
35290
|
-
type: "button",
|
|
35291
|
-
variant: "secondary",
|
|
35292
|
-
size: "small",
|
|
35293
|
-
ref: offerActionRef,
|
|
35294
|
-
className: "c-view-switcher__offer-action",
|
|
35295
|
-
onClick: applyToAll,
|
|
35296
|
-
onKeyDown: handleOfferActionKeyDown
|
|
35297
|
-
}, /*#__PURE__*/React__default["default"].createElement(Caption1, null, applyToAllLabel))))) : null);
|
|
35201
|
+
}, view.icon));
|
|
35202
|
+
})));
|
|
35298
35203
|
});
|
|
35299
35204
|
ViewSwitcher.displayName = "ViewSwitcher";
|
|
35300
35205
|
|
|
35301
|
-
var _excluded$
|
|
35206
|
+
var _excluded$12 = ["options", "value", "onChange", "aria-label", "className"];
|
|
35302
35207
|
/**
|
|
35303
35208
|
* @component ViewSwitcherMenu
|
|
35304
35209
|
* @description
|
|
@@ -35324,7 +35229,7 @@
|
|
|
35324
35229
|
onChange = _ref.onChange,
|
|
35325
35230
|
ariaLabel = _ref["aria-label"],
|
|
35326
35231
|
className = _ref.className,
|
|
35327
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
35232
|
+
rest = _objectWithoutProperties(_ref, _excluded$12);
|
|
35328
35233
|
var _useState = React.useState(false),
|
|
35329
35234
|
_useState2 = _slicedToArray(_useState, 2),
|
|
35330
35235
|
open = _useState2[0],
|
|
@@ -35433,7 +35338,7 @@
|
|
|
35433
35338
|
});
|
|
35434
35339
|
StyledCaretIcon.displayName = "StyledCaretIcon";
|
|
35435
35340
|
|
|
35436
|
-
var _excluded$
|
|
35341
|
+
var _excluded$11 = ["children", "type", "size", "invalid", "open", "endAdornment", "typographyProps", "mode"];
|
|
35437
35342
|
var SelectTrigger = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
35438
35343
|
var children = _ref.children,
|
|
35439
35344
|
_ref$type = _ref.type,
|
|
@@ -35448,7 +35353,7 @@
|
|
|
35448
35353
|
typographyProps = _ref.typographyProps,
|
|
35449
35354
|
_ref$mode = _ref.mode,
|
|
35450
35355
|
mode = _ref$mode === void 0 ? "outlined" : _ref$mode,
|
|
35451
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
35356
|
+
rest = _objectWithoutProperties(_ref, _excluded$11);
|
|
35452
35357
|
var variant = React.useMemo(function () {
|
|
35453
35358
|
if (size === "big") {
|
|
35454
35359
|
return "Body 1";
|
|
@@ -35479,7 +35384,7 @@
|
|
|
35479
35384
|
});
|
|
35480
35385
|
SelectTrigger.displayName = "SelectTrigger";
|
|
35481
35386
|
|
|
35482
|
-
var _excluded
|
|
35387
|
+
var _excluded$10 = ["mode", "selected", "min", "max", "onChange", "target", "triggerMode", "step"];
|
|
35483
35388
|
var renderOption = function renderOption(option) {
|
|
35484
35389
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
35485
35390
|
id: option.id
|
|
@@ -35498,7 +35403,7 @@
|
|
|
35498
35403
|
triggerMode = _ref.triggerMode,
|
|
35499
35404
|
_ref$step = _ref.step,
|
|
35500
35405
|
step = _ref$step === void 0 ? 15 : _ref$step,
|
|
35501
|
-
rest = _objectWithoutProperties(_ref, _excluded
|
|
35406
|
+
rest = _objectWithoutProperties(_ref, _excluded$10);
|
|
35502
35407
|
var generateTimeOptions = function generateTimeOptions() {
|
|
35503
35408
|
var minTime = moment__default$1["default"](isValidTime(min) ? min : "00:00", "HH:mm");
|
|
35504
35409
|
var maxTime = moment__default$1["default"](isValidTime(max) ? max : "23:45", "HH:mm");
|
|
@@ -35562,7 +35467,7 @@
|
|
|
35562
35467
|
}, FontStyle, BoxSizingStyle);
|
|
35563
35468
|
StyledObjectFormModal.displayName = "StyledObjectFormModal";
|
|
35564
35469
|
|
|
35565
|
-
var _excluded
|
|
35470
|
+
var _excluded$$ = ["children", "open", "onClose", "label", "size", "dismissOnBackdropClick", "onBackdropClickBlocked", "enableBackgroundClick", "disableCloseOnEsc", "disableFocusLock", "fill", "closeButton", "closeLabel", "className"];
|
|
35566
35471
|
// Menus and pickers opened from the form keep the layer they had before the form became a native modal.
|
|
35567
35472
|
var MODAL_LAYER = {
|
|
35568
35473
|
zIndex: layers.skyscraper
|
|
@@ -35589,7 +35494,7 @@
|
|
|
35589
35494
|
_ref$closeLabel = _ref.closeLabel,
|
|
35590
35495
|
closeLabel = _ref$closeLabel === void 0 ? "Close" : _ref$closeLabel,
|
|
35591
35496
|
className = _ref.className,
|
|
35592
|
-
rest = _objectWithoutProperties(_ref, _excluded
|
|
35497
|
+
rest = _objectWithoutProperties(_ref, _excluded$$);
|
|
35593
35498
|
var _useState = React.useState(null),
|
|
35594
35499
|
_useState2 = _slicedToArray(_useState, 2),
|
|
35595
35500
|
surfaceNode = _useState2[0],
|
|
@@ -35636,7 +35541,7 @@
|
|
|
35636
35541
|
})(["position:absolute;inset:0;"]);
|
|
35637
35542
|
StyledMediaViewer.displayName = "StyledMediaViewer";
|
|
35638
35543
|
|
|
35639
|
-
var _excluded$
|
|
35544
|
+
var _excluded$_ = ["open", "onClose", "children", "className"];
|
|
35640
35545
|
var MEDIA_VIEWER_FADE_MS = 250;
|
|
35641
35546
|
/**
|
|
35642
35547
|
* A full-viewport native modal for a file, image or video viewer, without a card. It opens on top of every other
|
|
@@ -35647,7 +35552,7 @@
|
|
|
35647
35552
|
onClose = _ref.onClose,
|
|
35648
35553
|
children = _ref.children,
|
|
35649
35554
|
className = _ref.className,
|
|
35650
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
35555
|
+
rest = _objectWithoutProperties(_ref, _excluded$_);
|
|
35651
35556
|
var _useState = React.useState(open),
|
|
35652
35557
|
_useState2 = _slicedToArray(_useState, 2),
|
|
35653
35558
|
innerOpen = _useState2[0],
|
|
@@ -35728,13 +35633,13 @@
|
|
|
35728
35633
|
});
|
|
35729
35634
|
StyledToggle.displayName = "StyledToggle";
|
|
35730
35635
|
|
|
35731
|
-
var _excluded$
|
|
35636
|
+
var _excluded$Z = ["hovered", "className", "size"];
|
|
35732
35637
|
var Toggle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
35733
35638
|
var hovered = _ref.hovered,
|
|
35734
35639
|
className = _ref.className,
|
|
35735
35640
|
_ref$size = _ref.size,
|
|
35736
35641
|
size = _ref$size === void 0 ? "regular" : _ref$size,
|
|
35737
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
35642
|
+
args = _objectWithoutProperties(_ref, _excluded$Z);
|
|
35738
35643
|
return /*#__PURE__*/React__default["default"].createElement(StyledToggle, {
|
|
35739
35644
|
className: classnames__default["default"]("c-toggle", "c-toggle--".concat(size), className),
|
|
35740
35645
|
$isHovered: hovered,
|
|
@@ -35778,14 +35683,14 @@
|
|
|
35778
35683
|
})(["display:flex;flex-shrink:0;align-items:center;justify-content:center;width:20px;svg{fill:var(--color-primary);}"]);
|
|
35779
35684
|
StyledAddRowIcon.displayName = "StyledAddRowIcon";
|
|
35780
35685
|
|
|
35781
|
-
var _excluded$
|
|
35686
|
+
var _excluded$Y = ["text", "className", "appearance", "trailing"];
|
|
35782
35687
|
var AddToListButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
35783
35688
|
var text = _ref.text,
|
|
35784
35689
|
className = _ref.className,
|
|
35785
35690
|
_ref$appearance = _ref.appearance,
|
|
35786
35691
|
appearance = _ref$appearance === void 0 ? "pill" : _ref$appearance,
|
|
35787
35692
|
trailing = _ref.trailing,
|
|
35788
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
35693
|
+
rest = _objectWithoutProperties(_ref, _excluded$Y);
|
|
35789
35694
|
if (appearance === "row") {
|
|
35790
35695
|
return /*#__PURE__*/React__default["default"].createElement(StyledAddRow$1, {
|
|
35791
35696
|
className: classnames__default["default"]("c--add-to-list-row", className)
|
|
@@ -36057,7 +35962,7 @@
|
|
|
36057
35962
|
});
|
|
36058
35963
|
StyledMedia.displayName = "StyledMedia";
|
|
36059
35964
|
|
|
36060
|
-
var _excluded$
|
|
35965
|
+
var _excluded$X = ["src", "alt", "variant", "caption", "width", "height", "density"];
|
|
36061
35966
|
/** A tall image (height greater than width) is capped at this display height. */
|
|
36062
35967
|
var MEDIA_PORTRAIT_MAX_HEIGHT = 680;
|
|
36063
35968
|
|
|
@@ -36104,7 +36009,7 @@
|
|
|
36104
36009
|
width = _ref.width,
|
|
36105
36010
|
height = _ref.height,
|
|
36106
36011
|
density = _ref.density,
|
|
36107
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
36012
|
+
rest = _objectWithoutProperties(_ref, _excluded$X);
|
|
36108
36013
|
var size = displaySize(width, height);
|
|
36109
36014
|
return /*#__PURE__*/React__default["default"].createElement(StyledMedia, _extends({
|
|
36110
36015
|
ref: ref,
|
|
@@ -36142,13 +36047,13 @@
|
|
|
36142
36047
|
});
|
|
36143
36048
|
StyledStack.displayName = "StyledStack";
|
|
36144
36049
|
|
|
36145
|
-
var _excluded$
|
|
36050
|
+
var _excluded$W = ["space", "align", "children"];
|
|
36146
36051
|
var Stack = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
36147
36052
|
var _ref$space = _ref.space,
|
|
36148
36053
|
space = _ref$space === void 0 ? "md" : _ref$space,
|
|
36149
36054
|
align = _ref.align,
|
|
36150
36055
|
children = _ref.children,
|
|
36151
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
36056
|
+
rest = _objectWithoutProperties(_ref, _excluded$W);
|
|
36152
36057
|
return /*#__PURE__*/React__default["default"].createElement(StyledStack, _extends({
|
|
36153
36058
|
ref: ref,
|
|
36154
36059
|
$space: space,
|
|
@@ -36157,7 +36062,7 @@
|
|
|
36157
36062
|
});
|
|
36158
36063
|
Stack.displayName = "Stack";
|
|
36159
36064
|
|
|
36160
|
-
var _excluded$
|
|
36065
|
+
var _excluded$V = ["title", "variant", "children"];
|
|
36161
36066
|
|
|
36162
36067
|
/** Heading typography of a TitledText — a component prop, not wire data. */
|
|
36163
36068
|
|
|
@@ -36189,7 +36094,7 @@
|
|
|
36189
36094
|
_ref2$variant = _ref2.variant,
|
|
36190
36095
|
variant = _ref2$variant === void 0 ? "header2" : _ref2$variant,
|
|
36191
36096
|
children = _ref2.children,
|
|
36192
|
-
rest = _objectWithoutProperties(_ref2, _excluded$
|
|
36097
|
+
rest = _objectWithoutProperties(_ref2, _excluded$V);
|
|
36193
36098
|
var Heading = (_titledTextHeadings$v = titledTextHeadings[variant]) !== null && _titledTextHeadings$v !== void 0 ? _titledTextHeadings$v : titledTextHeadings.header2;
|
|
36194
36099
|
return /*#__PURE__*/React__default["default"].createElement(Stack, _extends({
|
|
36195
36100
|
ref: ref,
|
|
@@ -36388,7 +36293,7 @@
|
|
|
36388
36293
|
}
|
|
36389
36294
|
};
|
|
36390
36295
|
|
|
36391
|
-
var _excluded$
|
|
36296
|
+
var _excluded$U = ["content", "components", "space"];
|
|
36392
36297
|
var defaultUnknownTypeHandler = function defaultUnknownTypeHandler(kind, type) {
|
|
36393
36298
|
console.warn("PortableText: no renderer for ".concat(kind, " type \"").concat(type, "\"."));
|
|
36394
36299
|
};
|
|
@@ -36486,7 +36391,7 @@
|
|
|
36486
36391
|
components = _ref2.components,
|
|
36487
36392
|
_ref2$space = _ref2.space,
|
|
36488
36393
|
space = _ref2$space === void 0 ? "md" : _ref2$space,
|
|
36489
|
-
rest = _objectWithoutProperties(_ref2, _excluded$
|
|
36394
|
+
rest = _objectWithoutProperties(_ref2, _excluded$U);
|
|
36490
36395
|
// Memoized so unknown types are reported once per type for a given
|
|
36491
36396
|
// content/components pair, not again on every parent re-render.
|
|
36492
36397
|
var nodes = React.useMemo(function () {
|
|
@@ -36556,7 +36461,7 @@
|
|
|
36556
36461
|
})(["height:0.25rem;"]);
|
|
36557
36462
|
StyledPresenceEnd.displayName = "StyledPresenceEnd";
|
|
36558
36463
|
|
|
36559
|
-
var _excluded$
|
|
36464
|
+
var _excluded$T = ["faces", "limit", "expanded", "onExpandedChange", "onFaceClick", "labels", "className", "data-testid"];
|
|
36560
36465
|
var AVATAR_SIZE = 32;
|
|
36561
36466
|
var DEFAULT_LABELS$2 = {
|
|
36562
36467
|
group: "Here now",
|
|
@@ -36579,7 +36484,7 @@
|
|
|
36579
36484
|
labels = _ref.labels,
|
|
36580
36485
|
className = _ref.className,
|
|
36581
36486
|
testId = _ref["data-testid"],
|
|
36582
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
36487
|
+
rest = _objectWithoutProperties(_ref, _excluded$T);
|
|
36583
36488
|
var partTestId = function partTestId(part) {
|
|
36584
36489
|
return testId ? "".concat(testId, "-").concat(part) : undefined;
|
|
36585
36490
|
};
|
|
@@ -36788,7 +36693,7 @@
|
|
|
36788
36693
|
});
|
|
36789
36694
|
StyledProgressRingPercentage.displayName = "StyledProgressRingPercentage";
|
|
36790
36695
|
|
|
36791
|
-
var _excluded$
|
|
36696
|
+
var _excluded$S = ["className", "children"];
|
|
36792
36697
|
var ProgressCircle = function ProgressCircle(_ref) {
|
|
36793
36698
|
var backgroundColor = _ref.backgroundColor,
|
|
36794
36699
|
progressColor = _ref.progressColor,
|
|
@@ -36865,7 +36770,7 @@
|
|
|
36865
36770
|
var ProgressRing = function ProgressRing(_ref2) {
|
|
36866
36771
|
var className = _ref2.className,
|
|
36867
36772
|
children = _ref2.children,
|
|
36868
|
-
rest = _objectWithoutProperties(_ref2, _excluded$
|
|
36773
|
+
rest = _objectWithoutProperties(_ref2, _excluded$S);
|
|
36869
36774
|
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
36870
36775
|
className: classnames__default["default"](className),
|
|
36871
36776
|
"data-testid": "progress-ring"
|
|
@@ -36873,11 +36778,11 @@
|
|
|
36873
36778
|
};
|
|
36874
36779
|
ProgressRing.displayName = "ProgressRing";
|
|
36875
36780
|
|
|
36876
|
-
var _excluded$
|
|
36781
|
+
var _excluded$R = ["radius"];
|
|
36877
36782
|
var ProgressPie = function ProgressPie(_ref) {
|
|
36878
36783
|
var _ref$radius = _ref.radius,
|
|
36879
36784
|
radius = _ref$radius === void 0 ? 20 : _ref$radius,
|
|
36880
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
36785
|
+
rest = _objectWithoutProperties(_ref, _excluded$R);
|
|
36881
36786
|
return /*#__PURE__*/React__default["default"].createElement(ProgressCircle, _extends({}, rest, {
|
|
36882
36787
|
stroke: radius,
|
|
36883
36788
|
radius: radius
|
|
@@ -37332,7 +37237,7 @@
|
|
|
37332
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);
|
|
37333
37238
|
StyledProjectColorChip.displayName = "StyledProjectColorChip";
|
|
37334
37239
|
|
|
37335
|
-
var _excluded$
|
|
37240
|
+
var _excluded$Q = ["glow", "ink", "children", "className", "style"];
|
|
37336
37241
|
/** The project number on a tint of the project color: the chip color mode of the list and the Project Details button. */
|
|
37337
37242
|
var ProjectColorChip = function ProjectColorChip(_ref) {
|
|
37338
37243
|
var glow = _ref.glow,
|
|
@@ -37340,7 +37245,7 @@
|
|
|
37340
37245
|
children = _ref.children,
|
|
37341
37246
|
className = _ref.className,
|
|
37342
37247
|
style = _ref.style,
|
|
37343
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
37248
|
+
rest = _objectWithoutProperties(_ref, _excluded$Q);
|
|
37344
37249
|
return /*#__PURE__*/React__default["default"].createElement(StyledProjectColorChip, _extends({}, rest, {
|
|
37345
37250
|
"data-project-color": "chip",
|
|
37346
37251
|
className: classnames__default["default"]("c-project-color-chip", className),
|
|
@@ -37740,7 +37645,7 @@
|
|
|
37740
37645
|
};
|
|
37741
37646
|
};
|
|
37742
37647
|
|
|
37743
|
-
var _excluded$
|
|
37648
|
+
var _excluded$P = ["className", "variant", "weight", "disabled", "inputProps", "wrapRef", "children", "invalid", "onMouseLeave"];
|
|
37744
37649
|
var EditableContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
37745
37650
|
var className = _ref.className,
|
|
37746
37651
|
_ref$variant = _ref.variant,
|
|
@@ -37753,7 +37658,7 @@
|
|
|
37753
37658
|
children = _ref.children,
|
|
37754
37659
|
invalid = _ref.invalid,
|
|
37755
37660
|
onMouseLeave = _ref.onMouseLeave,
|
|
37756
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
37661
|
+
props = _objectWithoutProperties(_ref, _excluded$P);
|
|
37757
37662
|
var intInputRef = React.useRef(null);
|
|
37758
37663
|
var handleRef = useForkRef(ref, intInputRef);
|
|
37759
37664
|
var _useHoverSuppression = useHoverSuppression(),
|
|
@@ -37887,7 +37792,7 @@
|
|
|
37887
37792
|
};
|
|
37888
37793
|
};
|
|
37889
37794
|
|
|
37890
|
-
var _excluded$
|
|
37795
|
+
var _excluded$O = ["onSave", "onCancel", "value", "inputProps", "allowEmptyString", "multiline", "submitOnMetaEnter", "wrap", "variant", "weight", "disabled", "invalid", "wrapRef", "children"],
|
|
37891
37796
|
_excluded2$a = ["onMouseLeave"];
|
|
37892
37797
|
var EditableText = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
37893
37798
|
var onSave = _ref.onSave,
|
|
@@ -37909,7 +37814,7 @@
|
|
|
37909
37814
|
invalid = _ref.invalid,
|
|
37910
37815
|
wrapRef = _ref.wrapRef,
|
|
37911
37816
|
children = _ref.children,
|
|
37912
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
37817
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
37913
37818
|
var mode = wrap ? "wrap" : multiline ? "multiline" : "single";
|
|
37914
37819
|
var _useEditableText = useEditableText({
|
|
37915
37820
|
value,
|
|
@@ -38031,7 +37936,7 @@
|
|
|
38031
37936
|
});
|
|
38032
37937
|
EditableText.displayName = "EditableText";
|
|
38033
37938
|
|
|
38034
|
-
var _excluded$
|
|
37939
|
+
var _excluded$N = ["value", "onCancel", "onSave", "allowEmptyValue", "withLeadingZero", "validation", "incrementOnlySelected", "minuteIncrement", "className", "onEnterKeyPress", "inputProps", "onClick", "ticking", "onFocus"];
|
|
38035
37940
|
var StyledEditableContent = styled__default["default"](EditableContent).withConfig({
|
|
38036
37941
|
displayName: "EditableHours__StyledEditableContent",
|
|
38037
37942
|
componentId: "sc-nvi34j-0"
|
|
@@ -38058,7 +37963,7 @@
|
|
|
38058
37963
|
externalOnClick = _ref2.onClick,
|
|
38059
37964
|
ticking = _ref2.ticking,
|
|
38060
37965
|
onFocus = _ref2.onFocus,
|
|
38061
|
-
rest = _objectWithoutProperties(_ref2, _excluded$
|
|
37966
|
+
rest = _objectWithoutProperties(_ref2, _excluded$N);
|
|
38062
37967
|
var inputRef = React.useRef(null);
|
|
38063
37968
|
var handleRef = useForkRef(ref, inputRef);
|
|
38064
37969
|
var _useInputHours = useInputHours({
|
|
@@ -38130,7 +38035,7 @@
|
|
|
38130
38035
|
});
|
|
38131
38036
|
EditableHours.displayName = "EditableHours";
|
|
38132
38037
|
|
|
38133
|
-
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"];
|
|
38134
38039
|
var EditableCurrency = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
38135
38040
|
var _ref$decimalLength = _ref.decimalLength,
|
|
38136
38041
|
decimalLength = _ref$decimalLength === void 0 ? 2 : _ref$decimalLength,
|
|
@@ -38158,7 +38063,7 @@
|
|
|
38158
38063
|
min = _ref.min,
|
|
38159
38064
|
max = _ref.max,
|
|
38160
38065
|
invalid = _ref.invalid,
|
|
38161
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
38066
|
+
rest = _objectWithoutProperties(_ref, _excluded$M);
|
|
38162
38067
|
var inputRef = React.useRef(null);
|
|
38163
38068
|
var handleRef = useForkRef(ref, inputRef);
|
|
38164
38069
|
var _useInputNumber = useInputNumber({
|
|
@@ -38213,11 +38118,11 @@
|
|
|
38213
38118
|
});
|
|
38214
38119
|
EditableCurrency.displayName = "EditableCurrency";
|
|
38215
38120
|
|
|
38216
|
-
var _excluded$
|
|
38121
|
+
var _excluded$L = ["withDocuments"];
|
|
38217
38122
|
var FolderIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, svgRef) {
|
|
38218
38123
|
var _ref$withDocuments = _ref.withDocuments,
|
|
38219
38124
|
withDocuments = _ref$withDocuments === void 0 ? false : _ref$withDocuments,
|
|
38220
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38125
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
38221
38126
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
38222
38127
|
width: 100,
|
|
38223
38128
|
height: 100,
|
|
@@ -38360,7 +38265,7 @@
|
|
|
38360
38265
|
return $renderAs === "list" && styled.css(["justify-self:flex-end;"]);
|
|
38361
38266
|
});
|
|
38362
38267
|
|
|
38363
|
-
var _excluded$
|
|
38268
|
+
var _excluded$K = ["children", "gap", "renderAs"];
|
|
38364
38269
|
var EntityGroupContext = /*#__PURE__*/React__default["default"].createContext({
|
|
38365
38270
|
renderAs: "grid"
|
|
38366
38271
|
});
|
|
@@ -38369,7 +38274,7 @@
|
|
|
38369
38274
|
gap = _ref.gap,
|
|
38370
38275
|
_ref$renderAs = _ref.renderAs,
|
|
38371
38276
|
renderAs = _ref$renderAs === void 0 ? "grid" : _ref$renderAs,
|
|
38372
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
38277
|
+
rest = _objectWithoutProperties(_ref, _excluded$K);
|
|
38373
38278
|
var value = React.useMemo(function () {
|
|
38374
38279
|
return {
|
|
38375
38280
|
renderAs
|
|
@@ -38384,14 +38289,14 @@
|
|
|
38384
38289
|
};
|
|
38385
38290
|
EntityGroup.displayName = "EntityGroup";
|
|
38386
38291
|
|
|
38387
|
-
var _excluded$
|
|
38292
|
+
var _excluded$J = ["children", "isCollection", "background", "className", "as"];
|
|
38388
38293
|
var EntityCard = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
38389
38294
|
var children = _ref.children,
|
|
38390
38295
|
isCollection = _ref.isCollection,
|
|
38391
38296
|
background = _ref.background,
|
|
38392
38297
|
className = _ref.className,
|
|
38393
38298
|
as = _ref.as,
|
|
38394
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
38299
|
+
rest = _objectWithoutProperties(_ref, _excluded$J);
|
|
38395
38300
|
var _useContext = React.useContext(EntityGroupContext),
|
|
38396
38301
|
renderAs = _useContext.renderAs;
|
|
38397
38302
|
var classSuffix = "c-entity-card-".concat(renderAs);
|
|
@@ -38410,13 +38315,13 @@
|
|
|
38410
38315
|
});
|
|
38411
38316
|
EntityCard.displayName = "EntityCard";
|
|
38412
38317
|
|
|
38413
|
-
var _excluded$
|
|
38318
|
+
var _excluded$I = ["listOrder", "listWidth", "visibleFromBreakpoint", "className"];
|
|
38414
38319
|
var EntityProperty = function EntityProperty(_ref) {
|
|
38415
38320
|
var listOrder = _ref.listOrder,
|
|
38416
38321
|
listWidth = _ref.listWidth,
|
|
38417
38322
|
visibleFromBreakpoint = _ref.visibleFromBreakpoint,
|
|
38418
38323
|
className = _ref.className,
|
|
38419
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38324
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
38420
38325
|
var _useContext = React.useContext(EntityGroupContext),
|
|
38421
38326
|
renderAs = _useContext.renderAs;
|
|
38422
38327
|
var classSuffix = "c-entity-property-".concat(renderAs);
|
|
@@ -38431,10 +38336,10 @@
|
|
|
38431
38336
|
};
|
|
38432
38337
|
EntityProperty.displayName = "EntityProperty";
|
|
38433
38338
|
|
|
38434
|
-
var _excluded$
|
|
38339
|
+
var _excluded$H = ["children"];
|
|
38435
38340
|
var EntitySeparator = function EntitySeparator(_ref) {
|
|
38436
38341
|
var children = _ref.children,
|
|
38437
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
38342
|
+
rest = _objectWithoutProperties(_ref, _excluded$H);
|
|
38438
38343
|
return /*#__PURE__*/React__default["default"].createElement(_StyledDiv, rest, children);
|
|
38439
38344
|
};
|
|
38440
38345
|
var _StyledDiv = styled__default["default"]("div").withConfig({
|
|
@@ -38685,7 +38590,7 @@
|
|
|
38685
38590
|
componentId: "sc-bna484-1"
|
|
38686
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;}}"]);
|
|
38687
38592
|
|
|
38688
|
-
var _excluded$
|
|
38593
|
+
var _excluded$G = ["value", "onChange", "placeholder", "clearLabel", "shortcut", "debounce", "size", "onKeyDown"];
|
|
38689
38594
|
var isMac = function isMac() {
|
|
38690
38595
|
return typeof navigator !== "undefined" && /Mac|iPhone|iPad/.test(navigator.platform);
|
|
38691
38596
|
};
|
|
@@ -38707,7 +38612,7 @@
|
|
|
38707
38612
|
_ref$size = _ref.size,
|
|
38708
38613
|
size = _ref$size === void 0 ? "regular" : _ref$size,
|
|
38709
38614
|
onKeyDown = _ref.onKeyDown,
|
|
38710
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
38615
|
+
rest = _objectWithoutProperties(_ref, _excluded$G);
|
|
38711
38616
|
var inputRef = React.useRef(null);
|
|
38712
38617
|
var handleRef = useForkRef(ref, inputRef);
|
|
38713
38618
|
var _useState = React.useState(value),
|
|
@@ -38794,7 +38699,7 @@
|
|
|
38794
38699
|
});
|
|
38795
38700
|
FilterInput.displayName = "FilterInput";
|
|
38796
38701
|
|
|
38797
|
-
var _excluded$
|
|
38702
|
+
var _excluded$F = ["id", "title", "submenu", "searchPlaceholder", "disableInternalSort", "isSingleSelect", "defaultValue", "type", "inputPlaceholder", "saveLabel", "clearLabel"];
|
|
38798
38703
|
var Filter = function Filter(_ref) {
|
|
38799
38704
|
var data = _ref.data,
|
|
38800
38705
|
_ref$selected = _ref.selected,
|
|
@@ -38990,7 +38895,7 @@
|
|
|
38990
38895
|
_ref2$saveLabel = _ref2.saveLabel,
|
|
38991
38896
|
saveLabel = _ref2$saveLabel === void 0 ? "Save" : _ref2$saveLabel,
|
|
38992
38897
|
clearLabel = _ref2.clearLabel,
|
|
38993
|
-
rest = _objectWithoutProperties(_ref2, _excluded$
|
|
38898
|
+
rest = _objectWithoutProperties(_ref2, _excluded$F);
|
|
38994
38899
|
return /*#__PURE__*/React__default["default"].createElement(SlideLeftRightTransition, {
|
|
38995
38900
|
key: "filter-submenu-".concat(index),
|
|
38996
38901
|
in: menu === id,
|
|
@@ -39464,7 +39369,7 @@
|
|
|
39464
39369
|
});
|
|
39465
39370
|
StyledIdentityMark.displayName = "StyledIdentityMark";
|
|
39466
39371
|
|
|
39467
|
-
var _excluded$
|
|
39372
|
+
var _excluded$E = ["size", "initials", "color", "textColor", "tint", "src", "tile", "icon", "className", "style"];
|
|
39468
39373
|
var HEX_COLOR$1 = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
39469
39374
|
var DARK_INK = "#1F1F1F";
|
|
39470
39375
|
var LIGHT_INK = "#FFFFFF";
|
|
@@ -39497,7 +39402,7 @@
|
|
|
39497
39402
|
icon = _ref.icon,
|
|
39498
39403
|
className = _ref.className,
|
|
39499
39404
|
style = _ref.style,
|
|
39500
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
39405
|
+
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
39501
39406
|
var _useState = React.useState(null),
|
|
39502
39407
|
_useState2 = _slicedToArray(_useState, 2),
|
|
39503
39408
|
failedSrc = _useState2[0],
|
|
@@ -39557,7 +39462,7 @@
|
|
|
39557
39462
|
return props.size + "px";
|
|
39558
39463
|
});
|
|
39559
39464
|
|
|
39560
|
-
var _excluded$
|
|
39465
|
+
var _excluded$D = ["limit", "size", "children", "hasTooltip", "className"];
|
|
39561
39466
|
var AvatarGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
39562
39467
|
var _Children$toArray;
|
|
39563
39468
|
var limit = _ref.limit,
|
|
@@ -39567,7 +39472,7 @@
|
|
|
39567
39472
|
_ref$hasTooltip = _ref.hasTooltip,
|
|
39568
39473
|
hasTooltip = _ref$hasTooltip === void 0 ? false : _ref$hasTooltip,
|
|
39569
39474
|
className = _ref.className,
|
|
39570
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
39475
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
39571
39476
|
// always display counter with min +2 as +1 can takes space of an 1 more Avatar
|
|
39572
39477
|
var minChildren = React.Children.count(children) - limit > 1 ? false : true;
|
|
39573
39478
|
// gap between Avatars
|
|
@@ -39733,14 +39638,14 @@
|
|
|
39733
39638
|
return React.useContext(SearchContext);
|
|
39734
39639
|
};
|
|
39735
39640
|
|
|
39736
|
-
var _excluded$
|
|
39641
|
+
var _excluded$C = ["title", "renderIcon", "className", "index", "as"];
|
|
39737
39642
|
var CommandPaletteCommandItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
39738
39643
|
var title = _ref.title,
|
|
39739
39644
|
renderIcon = _ref.renderIcon,
|
|
39740
39645
|
className = _ref.className,
|
|
39741
39646
|
index = _ref.index,
|
|
39742
39647
|
as = _ref.as,
|
|
39743
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
39648
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
39744
39649
|
var Component = as || "a";
|
|
39745
39650
|
var icon = renderIcon();
|
|
39746
39651
|
var _useSelectedContext = useSelectedContext(),
|
|
@@ -39909,7 +39814,7 @@
|
|
|
39909
39814
|
return "";
|
|
39910
39815
|
};
|
|
39911
39816
|
|
|
39912
|
-
var _excluded$
|
|
39817
|
+
var _excluded$B = ["title", "renderIcon", "className", "index", "loading", "as"];
|
|
39913
39818
|
var generateRandomWidth = function generateRandomWidth() {
|
|
39914
39819
|
// generate range 30-80
|
|
39915
39820
|
var randomNum = Math.round(Math.random() * 30 + 30);
|
|
@@ -39922,7 +39827,7 @@
|
|
|
39922
39827
|
index = _ref.index,
|
|
39923
39828
|
loading = _ref.loading,
|
|
39924
39829
|
as = _ref.as,
|
|
39925
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
39830
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
39926
39831
|
var Component = as || "a";
|
|
39927
39832
|
var icon = renderIcon && renderIcon();
|
|
39928
39833
|
var _useSelectedContext = useSelectedContext(),
|
|
@@ -40009,7 +39914,7 @@
|
|
|
40009
39914
|
});
|
|
40010
39915
|
};
|
|
40011
39916
|
|
|
40012
|
-
var _excluded$
|
|
39917
|
+
var _excluded$A = ["children", "onChangeSearch", "search", "mode", "setMode", "loading", "idModeEnabled", "aria-label"];
|
|
40013
39918
|
var _CommandPalette = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
40014
39919
|
var children = _ref.children,
|
|
40015
39920
|
onChangeSearch = _ref.onChangeSearch,
|
|
@@ -40020,7 +39925,7 @@
|
|
|
40020
39925
|
_ref$idModeEnabled = _ref.idModeEnabled,
|
|
40021
39926
|
idModeEnabled = _ref$idModeEnabled === void 0 ? false : _ref$idModeEnabled,
|
|
40022
39927
|
ariaLabel = _ref["aria-label"],
|
|
40023
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
39928
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
40024
39929
|
var _useState = React.useState(0),
|
|
40025
39930
|
_useState2 = _slicedToArray(_useState, 2),
|
|
40026
39931
|
selected = _useState2[0],
|
|
@@ -40199,7 +40104,7 @@
|
|
|
40199
40104
|
})(["font-size:calc(14px * var(--text-scale,1));line-height:17px;font-weight:600;letter-spacing:-0.01em;white-space:nowrap;"]);
|
|
40200
40105
|
StyledCommentsRailText.displayName = "StyledCommentsRailText";
|
|
40201
40106
|
|
|
40202
|
-
var _excluded$
|
|
40107
|
+
var _excluded$z = ["commentsCount", "historyCount", "onOpen", "onWrite", "width", "labels", "className", "style"];
|
|
40203
40108
|
|
|
40204
40109
|
/** The width of the folded comments panel, COMMENTS_RAIL_WIDTH in the frontend. */
|
|
40205
40110
|
var COMMENTS_RAIL_WIDTH = 44;
|
|
@@ -40263,7 +40168,7 @@
|
|
|
40263
40168
|
labels = _ref.labels,
|
|
40264
40169
|
className = _ref.className,
|
|
40265
40170
|
style = _ref.style,
|
|
40266
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
40171
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
40267
40172
|
var text = _objectSpread2(_objectSpread2({}, DEFAULT_LABELS$1), labels);
|
|
40268
40173
|
return /*#__PURE__*/React__default["default"].createElement(StyledCommentsRail, _extends({}, rest, {
|
|
40269
40174
|
ref: ref,
|
|
@@ -40387,14 +40292,14 @@
|
|
|
40387
40292
|
componentId: "sc-jfbqky-16"
|
|
40388
40293
|
})(["display:flex;flex-direction:column;flex:1;min-width:0;"]);
|
|
40389
40294
|
|
|
40390
|
-
var _excluded$
|
|
40295
|
+
var _excluded$y = ["icon", "tone", "className", "children"];
|
|
40391
40296
|
var EmptySlateAddRow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
40392
40297
|
var icon = _ref.icon,
|
|
40393
40298
|
_ref$tone = _ref.tone,
|
|
40394
40299
|
tone = _ref$tone === void 0 ? "primary" : _ref$tone,
|
|
40395
40300
|
className = _ref.className,
|
|
40396
40301
|
children = _ref.children,
|
|
40397
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
40302
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
40398
40303
|
return /*#__PURE__*/React__default["default"].createElement(StyledAddRow, _extends({
|
|
40399
40304
|
type: "button"
|
|
40400
40305
|
}, rest, {
|
|
@@ -40410,22 +40315,22 @@
|
|
|
40410
40315
|
});
|
|
40411
40316
|
EmptySlateAddRow.displayName = "EmptySlateAddRow";
|
|
40412
40317
|
|
|
40413
|
-
var _excluded$
|
|
40318
|
+
var _excluded$x = ["children"];
|
|
40414
40319
|
|
|
40415
40320
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
40416
40321
|
|
|
40417
40322
|
var EmptySlateFooter = function EmptySlateFooter(_ref) {
|
|
40418
40323
|
var children = _ref.children,
|
|
40419
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
40324
|
+
rest = _objectWithoutProperties(_ref, _excluded$x);
|
|
40420
40325
|
return /*#__PURE__*/React__default["default"].createElement(FooterContainer, rest, children);
|
|
40421
40326
|
};
|
|
40422
40327
|
EmptySlateFooter.displayName = "EmptySlateFooter";
|
|
40423
40328
|
|
|
40424
|
-
var _excluded$
|
|
40329
|
+
var _excluded$w = ["items", "className"];
|
|
40425
40330
|
var EmptySlateIdeas = function EmptySlateIdeas(_ref) {
|
|
40426
40331
|
var items = _ref.items,
|
|
40427
40332
|
className = _ref.className,
|
|
40428
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
40333
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
40429
40334
|
return /*#__PURE__*/React__default["default"].createElement(IdeasList, _extends({}, rest, {
|
|
40430
40335
|
className: classnames__default["default"]("c-empty-slate-ideas", className)
|
|
40431
40336
|
}), items.map(function (_ref2, index) {
|
|
@@ -40443,7 +40348,7 @@
|
|
|
40443
40348
|
};
|
|
40444
40349
|
EmptySlateIdeas.displayName = "EmptySlateIdeas";
|
|
40445
40350
|
|
|
40446
|
-
var _excluded$
|
|
40351
|
+
var _excluded$v = ["title", "description", "src", "alt", "illustration", "size", "align", "helpLink", "children"];
|
|
40447
40352
|
var isAlreadyLoaded = function isAlreadyLoaded(image) {
|
|
40448
40353
|
return !!image && image.complete && image.naturalWidth > 0;
|
|
40449
40354
|
};
|
|
@@ -40460,7 +40365,7 @@
|
|
|
40460
40365
|
align = _ref$align === void 0 ? "start" : _ref$align,
|
|
40461
40366
|
helpLink = _ref.helpLink,
|
|
40462
40367
|
children = _ref.children,
|
|
40463
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
40368
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
40464
40369
|
var compact = size === "compact";
|
|
40465
40370
|
var imageRef = React.useRef(null);
|
|
40466
40371
|
var _useState = React.useState(),
|
|
@@ -40530,7 +40435,7 @@
|
|
|
40530
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);}"]);
|
|
40531
40436
|
StyledIllustration$1.displayName = "StyledIllustration";
|
|
40532
40437
|
|
|
40533
|
-
var _excluded$
|
|
40438
|
+
var _excluded$u = ["size", "className", "children"];
|
|
40534
40439
|
/**
|
|
40535
40440
|
* Shared root of every empty-state illustration: a 100x100 drawing that takes its colors from the theme tokens.
|
|
40536
40441
|
* It is hidden from assistive technology, unless it gets an `aria-label` or `aria-labelledby`.
|
|
@@ -40540,7 +40445,7 @@
|
|
|
40540
40445
|
size = _ref$size === void 0 ? "100%" : _ref$size,
|
|
40541
40446
|
className = _ref.className,
|
|
40542
40447
|
children = _ref.children,
|
|
40543
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
40448
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
40544
40449
|
var labelled = Boolean(rest["aria-label"] || rest["aria-labelledby"]);
|
|
40545
40450
|
return /*#__PURE__*/React__default["default"].createElement(StyledIllustration$1, _extends({
|
|
40546
40451
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -43811,13 +43716,13 @@
|
|
|
43811
43716
|
}));
|
|
43812
43717
|
};
|
|
43813
43718
|
|
|
43814
|
-
var _excluded$
|
|
43719
|
+
var _excluded$t = ["title", "description", "clearLabel", "onClear"];
|
|
43815
43720
|
var NoResultsSlate = function NoResultsSlate(_ref) {
|
|
43816
43721
|
var title = _ref.title,
|
|
43817
43722
|
description = _ref.description,
|
|
43818
43723
|
clearLabel = _ref.clearLabel,
|
|
43819
43724
|
onClear = _ref.onClear,
|
|
43820
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
43725
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
43821
43726
|
return /*#__PURE__*/React__default["default"].createElement(StyledNoResultsSlate, _extends({}, rest, {
|
|
43822
43727
|
role: "status"
|
|
43823
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, {
|
|
@@ -43898,7 +43803,7 @@
|
|
|
43898
43803
|
})(["flex-shrink:0;margin-left:auto;"]);
|
|
43899
43804
|
StyledInfoBoxProgressMeta.displayName = "StyledInfoBoxProgressMeta";
|
|
43900
43805
|
|
|
43901
|
-
var _excluded$
|
|
43806
|
+
var _excluded$s = ["type", "children", "showIcon", "icon", "title", "action", "variant", "progress", "className"];
|
|
43902
43807
|
var InfoBox = function InfoBox(_ref) {
|
|
43903
43808
|
var _ref$type = _ref.type,
|
|
43904
43809
|
type = _ref$type === void 0 ? "default" : _ref$type,
|
|
@@ -43913,7 +43818,7 @@
|
|
|
43913
43818
|
variant = _ref$variant === void 0 ? "box" : _ref$variant,
|
|
43914
43819
|
progress = _ref.progress,
|
|
43915
43820
|
className = _ref.className,
|
|
43916
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
43821
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
43917
43822
|
if (variant === "ribbon") {
|
|
43918
43823
|
return /*#__PURE__*/React__default["default"].createElement(StyledInfoBoxRibbon, _extends({
|
|
43919
43824
|
className: classnames__default["default"]("c-info-box", "c-info-box--ribbon", className)
|
|
@@ -44471,7 +44376,7 @@
|
|
|
44471
44376
|
})(["&&{box-sizing:border-box;width:100%;}"]);
|
|
44472
44377
|
StyledStopwatchDescription.displayName = "StyledStopwatchDescription";
|
|
44473
44378
|
|
|
44474
|
-
var _excluded$
|
|
44379
|
+
var _excluded$r = ["seconds", "onSave", "onCancel", "autoFocus", "labels", "className", "data-testid"],
|
|
44475
44380
|
_excluded2$9 = ["onConfirm", "onCancel", "labels", "className", "data-testid", "testIdPrefix"],
|
|
44476
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"],
|
|
44477
44382
|
_excluded4$2 = ["className"],
|
|
@@ -44509,7 +44414,7 @@
|
|
|
44509
44414
|
labels = _ref.labels,
|
|
44510
44415
|
className = _ref.className,
|
|
44511
44416
|
testId = _ref["data-testid"],
|
|
44512
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
44417
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
44513
44418
|
var partTestId = function partTestId(part) {
|
|
44514
44419
|
return testId ? "".concat(testId, "-").concat(part) : undefined;
|
|
44515
44420
|
};
|
|
@@ -44979,7 +44884,7 @@
|
|
|
44979
44884
|
});
|
|
44980
44885
|
StyledStopwatchTriggerTime.displayName = "StyledStopwatchTriggerTime";
|
|
44981
44886
|
|
|
44982
|
-
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"],
|
|
44983
44888
|
_excluded2$8 = ["seconds", "running", "paused", "open", "label", "className", "data-testid"];
|
|
44984
44889
|
/** Hours without a leading zero and minutes with one, for example "1:05". */
|
|
44985
44890
|
var formatStopwatchTime = function formatStopwatchTime(seconds) {
|
|
@@ -45038,7 +44943,7 @@
|
|
|
45038
44943
|
className = _ref.className,
|
|
45039
44944
|
testId = _ref["data-testid"],
|
|
45040
44945
|
testIdPrefix = _ref.testIdPrefix,
|
|
45041
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
44946
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
45042
44947
|
var partPrefix = testIdPrefix !== null && testIdPrefix !== void 0 ? testIdPrefix : testId;
|
|
45043
44948
|
var partTestId = function partTestId(part) {
|
|
45044
44949
|
return partPrefix ? "".concat(partPrefix, "-").concat(part) : undefined;
|
|
@@ -45768,7 +45673,7 @@
|
|
|
45768
45673
|
});
|
|
45769
45674
|
StyledStackedCard.displayName = "StyledStackedCard";
|
|
45770
45675
|
|
|
45771
|
-
var _excluded$
|
|
45676
|
+
var _excluded$p = ["selected", "disabled", "pending", "isDragSource", "isDragPreview", "entered", "forceHover", "resizable", "resizeAxis", "resizeLabel", "priorityColor", "onResizeStart", "onResizeDelta", "onResizeCommit", "resizeHandleProps", "className", "children"];
|
|
45772
45677
|
|
|
45773
45678
|
/**
|
|
45774
45679
|
* StackedCard — the hollow shell for cards on drag-and-drop surfaces.
|
|
@@ -45840,7 +45745,7 @@
|
|
|
45840
45745
|
resizeHandleProps = _ref.resizeHandleProps,
|
|
45841
45746
|
className = _ref.className,
|
|
45842
45747
|
children = _ref.children,
|
|
45843
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
45748
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
45844
45749
|
/**
|
|
45845
45750
|
* One live gesture. `x`/`y` anchor a pointer drag; `dx`/`dy` carry the
|
|
45846
45751
|
* running total a keyboard gesture has nudged. `moved` gates the commit, so
|
|
@@ -45939,7 +45844,7 @@
|
|
|
45939
45844
|
});
|
|
45940
45845
|
StackedCard.displayName = "StackedCard";
|
|
45941
45846
|
|
|
45942
|
-
var _excluded$
|
|
45847
|
+
var _excluded$o = ["role", "bleed", "direction", "background", "className", "children"];
|
|
45943
45848
|
|
|
45944
45849
|
/**
|
|
45945
45850
|
* StackedCard layout primitives.
|
|
@@ -45984,7 +45889,7 @@
|
|
|
45984
45889
|
background = _ref.background,
|
|
45985
45890
|
className = _ref.className,
|
|
45986
45891
|
children = _ref.children,
|
|
45987
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
45892
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
45988
45893
|
return /*#__PURE__*/React__default["default"].createElement(StyledStackedCardRow, _extends({
|
|
45989
45894
|
ref: ref,
|
|
45990
45895
|
$role: role,
|
|
@@ -46212,7 +46117,7 @@
|
|
|
46212
46117
|
};
|
|
46213
46118
|
};
|
|
46214
46119
|
|
|
46215
|
-
var _excluded$
|
|
46120
|
+
var _excluded$n = ["size"],
|
|
46216
46121
|
_excluded2$7 = ["name", "detail", "size"];
|
|
46217
46122
|
var TRIGGER_SWATCH_SIZE = 20;
|
|
46218
46123
|
var SWATCH_SIZE = 22;
|
|
@@ -46339,7 +46244,7 @@
|
|
|
46339
46244
|
var SwatchMark = function SwatchMark(_ref4) {
|
|
46340
46245
|
var _ref4$size = _ref4.size,
|
|
46341
46246
|
size = _ref4$size === void 0 ? 16 : _ref4$size,
|
|
46342
|
-
mark = _objectWithoutProperties(_ref4, _excluded$
|
|
46247
|
+
mark = _objectWithoutProperties(_ref4, _excluded$n);
|
|
46343
46248
|
return /*#__PURE__*/React__default["default"].createElement(StyledSwatchMark, {
|
|
46344
46249
|
"aria-hidden": "true",
|
|
46345
46250
|
className: "c-swatch-picker__mark",
|
|
@@ -46690,7 +46595,7 @@
|
|
|
46690
46595
|
});
|
|
46691
46596
|
StyledRow.displayName = "StyledRow";
|
|
46692
46597
|
|
|
46693
|
-
var _excluded$
|
|
46598
|
+
var _excluded$m = ["space", "align", "collapseBelow", "children"];
|
|
46694
46599
|
var Row = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
46695
46600
|
var _ref$space = _ref.space,
|
|
46696
46601
|
space = _ref$space === void 0 ? "md" : _ref$space,
|
|
@@ -46698,7 +46603,7 @@
|
|
|
46698
46603
|
align = _ref$align === void 0 ? "center" : _ref$align,
|
|
46699
46604
|
collapseBelow = _ref.collapseBelow,
|
|
46700
46605
|
children = _ref.children,
|
|
46701
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46606
|
+
rest = _objectWithoutProperties(_ref, _excluded$m);
|
|
46702
46607
|
return /*#__PURE__*/React__default["default"].createElement(StyledRow, _extends({
|
|
46703
46608
|
ref: ref,
|
|
46704
46609
|
$space: space,
|
|
@@ -46723,7 +46628,7 @@
|
|
|
46723
46628
|
});
|
|
46724
46629
|
StyledColumns$1.displayName = "StyledColumns";
|
|
46725
46630
|
|
|
46726
|
-
var _excluded$
|
|
46631
|
+
var _excluded$l = ["widths", "space", "alignY", "collapseBelow", "children"];
|
|
46727
46632
|
var Columns = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
46728
46633
|
var widths = _ref.widths,
|
|
46729
46634
|
_ref$space = _ref.space,
|
|
@@ -46732,7 +46637,7 @@
|
|
|
46732
46637
|
alignY = _ref$alignY === void 0 ? "stretch" : _ref$alignY,
|
|
46733
46638
|
collapseBelow = _ref.collapseBelow,
|
|
46734
46639
|
children = _ref.children,
|
|
46735
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46640
|
+
rest = _objectWithoutProperties(_ref, _excluded$l);
|
|
46736
46641
|
return /*#__PURE__*/React__default["default"].createElement(StyledColumns$1, _extends({
|
|
46737
46642
|
ref: ref,
|
|
46738
46643
|
$space: space,
|
|
@@ -46774,7 +46679,7 @@
|
|
|
46774
46679
|
componentId: "sc-vhpgru-4"
|
|
46775
46680
|
})(["display:flex;align-items:center;gap:16px;margin-left:auto;"]);
|
|
46776
46681
|
|
|
46777
|
-
var _excluded$
|
|
46682
|
+
var _excluded$k = ["title", "counter", "actions", "card", "radius", "className", "children"];
|
|
46778
46683
|
var Section = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
46779
46684
|
var title = _ref.title,
|
|
46780
46685
|
counter = _ref.counter,
|
|
@@ -46785,7 +46690,7 @@
|
|
|
46785
46690
|
radius = _ref$radius === void 0 ? 24 : _ref$radius,
|
|
46786
46691
|
className = _ref.className,
|
|
46787
46692
|
children = _ref.children,
|
|
46788
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46693
|
+
rest = _objectWithoutProperties(_ref, _excluded$k);
|
|
46789
46694
|
var titleId = React.useId();
|
|
46790
46695
|
var hasCounter = counter !== undefined && counter !== null;
|
|
46791
46696
|
return /*#__PURE__*/React__default["default"].createElement(StyledSection, _extends({}, rest, {
|
|
@@ -46831,7 +46736,7 @@
|
|
|
46831
46736
|
return $clip === "vertical" ? "clip-path: inset(0 -100vw);" : "overflow: hidden;";
|
|
46832
46737
|
});
|
|
46833
46738
|
|
|
46834
|
-
var _excluded$
|
|
46739
|
+
var _excluded$j = ["open", "duration", "unmountOnExit", "appear", "clip", "className", "children"];
|
|
46835
46740
|
var Collapse = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
46836
46741
|
var open = _ref.open,
|
|
46837
46742
|
_ref$duration = _ref.duration,
|
|
@@ -46844,7 +46749,7 @@
|
|
|
46844
46749
|
clip = _ref$clip === void 0 ? "both" : _ref$clip,
|
|
46845
46750
|
className = _ref.className,
|
|
46846
46751
|
children = _ref.children,
|
|
46847
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46752
|
+
rest = _objectWithoutProperties(_ref, _excluded$j);
|
|
46848
46753
|
var _useState = React.useState(open || !unmountOnExit),
|
|
46849
46754
|
_useState2 = _slicedToArray(_useState, 2),
|
|
46850
46755
|
mounted = _useState2[0],
|
|
@@ -46923,7 +46828,7 @@
|
|
|
46923
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);"]);
|
|
46924
46829
|
});
|
|
46925
46830
|
|
|
46926
|
-
var _excluded$
|
|
46831
|
+
var _excluded$i = ["label", "tone", "lines", "className"];
|
|
46927
46832
|
var LabeledDivider = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
46928
46833
|
var label = _ref.label,
|
|
46929
46834
|
_ref$tone = _ref.tone,
|
|
@@ -46931,7 +46836,7 @@
|
|
|
46931
46836
|
_ref$lines = _ref.lines,
|
|
46932
46837
|
lines = _ref$lines === void 0 ? true : _ref$lines,
|
|
46933
46838
|
className = _ref.className,
|
|
46934
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46839
|
+
rest = _objectWithoutProperties(_ref, _excluded$i);
|
|
46935
46840
|
return /*#__PURE__*/React__default["default"].createElement(StyledLabeledDivider, _extends({
|
|
46936
46841
|
role: "separator"
|
|
46937
46842
|
}, rest, {
|
|
@@ -46956,14 +46861,14 @@
|
|
|
46956
46861
|
return $leaving && styled.css(["&&{opacity:0;pointer-events:none;}"]);
|
|
46957
46862
|
});
|
|
46958
46863
|
|
|
46959
|
-
var _excluded$
|
|
46864
|
+
var _excluded$h = ["icon", "leaving", "className", "children"];
|
|
46960
46865
|
var FloatingPill = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
46961
46866
|
var icon = _ref.icon,
|
|
46962
46867
|
_ref$leaving = _ref.leaving,
|
|
46963
46868
|
leaving = _ref$leaving === void 0 ? false : _ref$leaving,
|
|
46964
46869
|
className = _ref.className,
|
|
46965
46870
|
children = _ref.children,
|
|
46966
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46871
|
+
rest = _objectWithoutProperties(_ref, _excluded$h);
|
|
46967
46872
|
return /*#__PURE__*/React__default["default"].createElement(StyledFloatingPill, _extends({
|
|
46968
46873
|
type: "button"
|
|
46969
46874
|
}, rest, {
|
|
@@ -46995,7 +46900,7 @@
|
|
|
46995
46900
|
componentId: "sc-13aqf5r-2"
|
|
46996
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;}"]);
|
|
46997
46902
|
|
|
46998
|
-
var _excluded$
|
|
46903
|
+
var _excluded$g = ["maxHeight", "slack", "moreLabel", "lessLabel", "expanded", "defaultExpanded", "onExpandedChange", "className", "children"];
|
|
46999
46904
|
var isKeyboardFocus = function isKeyboardFocus(node) {
|
|
47000
46905
|
try {
|
|
47001
46906
|
return node.matches(":focus-visible");
|
|
@@ -47016,7 +46921,7 @@
|
|
|
47016
46921
|
onExpandedChange = _ref.onExpandedChange,
|
|
47017
46922
|
className = _ref.className,
|
|
47018
46923
|
children = _ref.children,
|
|
47019
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46924
|
+
rest = _objectWithoutProperties(_ref, _excluded$g);
|
|
47020
46925
|
var frameId = React.useId();
|
|
47021
46926
|
var frameRef = React.useRef(null);
|
|
47022
46927
|
var contentRef = React.useRef(null);
|
|
@@ -47197,7 +47102,7 @@
|
|
|
47197
47102
|
}, [id, css]);
|
|
47198
47103
|
};
|
|
47199
47104
|
|
|
47200
|
-
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"];
|
|
47201
47106
|
// The height of the rail as the object opens. It stops to follow the rail at the first action of the user.
|
|
47202
47107
|
var useOpeningRailHeight = function useOpeningRailHeight(resetKey) {
|
|
47203
47108
|
var railRef = React.useRef(null);
|
|
@@ -47266,7 +47171,7 @@
|
|
|
47266
47171
|
softShadow = _ref$softShadow === void 0 ? false : _ref$softShadow,
|
|
47267
47172
|
className = _ref.className,
|
|
47268
47173
|
testId = _ref["data-testid"],
|
|
47269
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
47174
|
+
rest = _objectWithoutProperties(_ref, _excluded$f);
|
|
47270
47175
|
useContainerCss("c-object-layout-container", CONTAINER_CSS$2);
|
|
47271
47176
|
var hasPanel = panel !== undefined && panel !== null;
|
|
47272
47177
|
var hasRail = rail !== undefined && rail !== null;
|
|
@@ -47424,7 +47329,7 @@
|
|
|
47424
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);
|
|
47425
47330
|
}, StyledListRowSideAction, StyledListRowSideAction, StyledListRowDivider, StyledListRowDivider);
|
|
47426
47331
|
|
|
47427
|
-
var _excluded$
|
|
47332
|
+
var _excluded$e = ["variant", "leading", "sideAction", "sideActionTop", "sideActionOffset", "sideActionProps", "divided", "hover", "selected", "cardEdges", "className", "children"];
|
|
47428
47333
|
var ListRow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
47429
47334
|
var _ref$variant = _ref.variant,
|
|
47430
47335
|
variant = _ref$variant === void 0 ? "plain" : _ref$variant,
|
|
@@ -47445,7 +47350,7 @@
|
|
|
47445
47350
|
cardEdges = _ref$cardEdges === void 0 ? false : _ref$cardEdges,
|
|
47446
47351
|
className = _ref.className,
|
|
47447
47352
|
children = _ref.children,
|
|
47448
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
47353
|
+
rest = _objectWithoutProperties(_ref, _excluded$e);
|
|
47449
47354
|
useContainerCss("c-list-row-container", CONTAINER_CSS$1);
|
|
47450
47355
|
var hasLeading = leading !== undefined && leading !== null;
|
|
47451
47356
|
var leadingBox = hasLeading ? /*#__PURE__*/React__default["default"].createElement(StyledListRowLeading, {
|
|
@@ -47513,7 +47418,7 @@
|
|
|
47513
47418
|
componentId: "sc-1wm99km-3"
|
|
47514
47419
|
})(["&&{flex-shrink:0;margin:0 8px;}"]);
|
|
47515
47420
|
|
|
47516
|
-
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"];
|
|
47517
47422
|
var NAME_CLASS = "c-list-group-heading__name";
|
|
47518
47423
|
var CONTROLS = "a, button, input, textarea, label";
|
|
47519
47424
|
var NAME_INPUT_PROPS = {
|
|
@@ -47545,7 +47450,7 @@
|
|
|
47545
47450
|
nameRef = _ref.nameRef,
|
|
47546
47451
|
className = _ref.className,
|
|
47547
47452
|
onClick = _ref.onClick,
|
|
47548
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
47453
|
+
rest = _objectWithoutProperties(_ref, _excluded$d);
|
|
47549
47454
|
var handleClick = React.useCallback(function (event) {
|
|
47550
47455
|
onClick === null || onClick === void 0 || onClick(event);
|
|
47551
47456
|
if (!onToggle) {
|
|
@@ -47666,7 +47571,7 @@
|
|
|
47666
47571
|
componentId: "sc-1bv6320-12"
|
|
47667
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;"]);
|
|
47668
47573
|
|
|
47669
|
-
var _excluded$
|
|
47574
|
+
var _excluded$c = ["name", "detail", "preview", "overlay", "cornerAction", "captionAction", "onOpen", "openLabel", "openProps", "busy", "dragging", "className"],
|
|
47670
47575
|
_excluded2$6 = ["value", "label", "barProps"],
|
|
47671
47576
|
_excluded3$2 = ["label"],
|
|
47672
47577
|
_excluded4$1 = ["progress", "uploading", "failed", "onCancel", "onRetry", "progressLabel", "errorLabel", "cancelLabel", "retryLabel", "cancelProps", "retryProps", "errorProps", "barProps", "detail"];
|
|
@@ -47686,7 +47591,7 @@
|
|
|
47686
47591
|
_ref$dragging = _ref.dragging,
|
|
47687
47592
|
dragging = _ref$dragging === void 0 ? false : _ref$dragging,
|
|
47688
47593
|
className = _ref.className,
|
|
47689
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
47594
|
+
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
47690
47595
|
return /*#__PURE__*/React__default["default"].createElement(StyledFileTile, _extends({}, rest, {
|
|
47691
47596
|
ref: ref,
|
|
47692
47597
|
"aria-busy": busy || undefined,
|
|
@@ -47830,7 +47735,7 @@
|
|
|
47830
47735
|
componentId: "sc-1m5mmzc-6"
|
|
47831
47736
|
})(["margin-top:14px;font-size:calc(13px * var(--text-scale,1));color:var(--color-theme-600);"]);
|
|
47832
47737
|
|
|
47833
|
-
var _excluded$
|
|
47738
|
+
var _excluded$b = ["onFiles", "accept", "variant", "message", "disabled", "dragOver", "icon", "hint", "inputProps", "className", "children"];
|
|
47834
47739
|
var parseAccept = function parseAccept(accept) {
|
|
47835
47740
|
return (accept !== null && accept !== void 0 ? accept : "").split(",").map(function (rule) {
|
|
47836
47741
|
return rule.trim().toLowerCase();
|
|
@@ -47947,7 +47852,7 @@
|
|
|
47947
47852
|
inputProps = _ref2.inputProps,
|
|
47948
47853
|
className = _ref2.className,
|
|
47949
47854
|
children = _ref2.children,
|
|
47950
|
-
rest = _objectWithoutProperties(_ref2, _excluded$
|
|
47855
|
+
rest = _objectWithoutProperties(_ref2, _excluded$b);
|
|
47951
47856
|
var isField = variant === "field";
|
|
47952
47857
|
var dragging = useFileDrag(disabled || dragOver !== undefined || isField, accept);
|
|
47953
47858
|
var _useState3 = React.useState(false),
|
|
@@ -48108,7 +48013,7 @@
|
|
|
48108
48013
|
componentId: "sc-ruvdwa-1"
|
|
48109
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);"]);
|
|
48110
48015
|
|
|
48111
|
-
var _excluded$
|
|
48016
|
+
var _excluded$a = ["look", "radius", "flatBottom", "shadow", "className", "children"],
|
|
48112
48017
|
_excluded2$5 = ["className", "children"];
|
|
48113
48018
|
var RADIUS = {
|
|
48114
48019
|
field: 14,
|
|
@@ -48125,7 +48030,7 @@
|
|
|
48125
48030
|
shadow = _ref$shadow === void 0 ? "look" : _ref$shadow,
|
|
48126
48031
|
className = _ref.className,
|
|
48127
48032
|
children = _ref.children,
|
|
48128
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48033
|
+
rest = _objectWithoutProperties(_ref, _excluded$a);
|
|
48129
48034
|
return /*#__PURE__*/React__default["default"].createElement(StyledEditorFrame, _extends({}, rest, {
|
|
48130
48035
|
ref: ref,
|
|
48131
48036
|
$look: look,
|
|
@@ -48371,13 +48276,13 @@
|
|
|
48371
48276
|
return ticketDash($line);
|
|
48372
48277
|
});
|
|
48373
48278
|
|
|
48374
|
-
var _excluded$
|
|
48279
|
+
var _excluded$9 = ["line", "className"];
|
|
48375
48280
|
/** The line where a ticket tears: a dashed line with a notch in each edge of a card with a 16px padding. */
|
|
48376
48281
|
var TicketPerforation = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
48377
48282
|
var _ref$line = _ref.line,
|
|
48378
48283
|
line = _ref$line === void 0 ? "primary" : _ref$line,
|
|
48379
48284
|
className = _ref.className,
|
|
48380
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48285
|
+
rest = _objectWithoutProperties(_ref, _excluded$9);
|
|
48381
48286
|
return /*#__PURE__*/React__default["default"].createElement(StyledTicketPerforation, _extends({
|
|
48382
48287
|
"aria-hidden": "true"
|
|
48383
48288
|
}, rest, {
|
|
@@ -48397,7 +48302,7 @@
|
|
|
48397
48302
|
});
|
|
48398
48303
|
TicketPerforation.displayName = "TicketPerforation";
|
|
48399
48304
|
|
|
48400
|
-
var _excluded$
|
|
48305
|
+
var _excluded$8 = ["aside", "asideProps", "className", "children"],
|
|
48401
48306
|
_excluded2$4 = ["density", "disabled", "layout", "cells", "header", "footer", "cellsProps", "footerProps", "tearProps", "perforationProps", "className", "children"],
|
|
48402
48307
|
_excluded3$1 = ["icon", "label", "value", "action", "tone", "readOnly", "chevron", "disabled", "parts", "aside", "wrap", "footer", "labelProps", "caretProps", "className", "children"],
|
|
48403
48308
|
_excluded4 = ["expanded", "disabled", "className", "children"],
|
|
@@ -48455,7 +48360,7 @@
|
|
|
48455
48360
|
asideProps = _ref3.asideProps,
|
|
48456
48361
|
className = _ref3.className,
|
|
48457
48362
|
children = _ref3.children,
|
|
48458
|
-
cellProps = _objectWithoutProperties(_ref3, _excluded$
|
|
48363
|
+
cellProps = _objectWithoutProperties(_ref3, _excluded$8);
|
|
48459
48364
|
var hasAside = aside !== undefined && aside !== null;
|
|
48460
48365
|
return /*#__PURE__*/React__default["default"].createElement(StyledPropertyListCell, _extends({}, cellProps, {
|
|
48461
48366
|
className: classnames__default["default"]("c-property-list__cell", className)
|
|
@@ -48840,7 +48745,7 @@
|
|
|
48840
48745
|
// The job type gives way first and leaves below 560px. Below 680px the value column takes only the width of the values.
|
|
48841
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");
|
|
48842
48747
|
|
|
48843
|
-
var _excluded$
|
|
48748
|
+
var _excluded$7 = ["label", "max", "ticks", "tickLabel", "estimateOnly", "withJobType", "testIdPrefix", "className", "children"],
|
|
48844
48749
|
_excluded2$3 = ["avatar", "name", "shortName", "job", "estimate", "tracked", "value", "note", "muted", "readOnly", "testIdPrefix", "caretProps", "className"];
|
|
48845
48750
|
var BulletsContext = /*#__PURE__*/React.createContext({
|
|
48846
48751
|
max: 1,
|
|
@@ -48932,7 +48837,7 @@
|
|
|
48932
48837
|
testIdPrefix = _ref3.testIdPrefix,
|
|
48933
48838
|
className = _ref3.className,
|
|
48934
48839
|
children = _ref3.children,
|
|
48935
|
-
rest = _objectWithoutProperties(_ref3, _excluded$
|
|
48840
|
+
rest = _objectWithoutProperties(_ref3, _excluded$7);
|
|
48936
48841
|
var _useState = React.useState(function () {
|
|
48937
48842
|
return new Map();
|
|
48938
48843
|
}),
|
|
@@ -49166,7 +49071,7 @@
|
|
|
49166
49071
|
componentId: "sc-ld4yoe-6"
|
|
49167
49072
|
})(["", ""], ticketDash("primary"));
|
|
49168
49073
|
|
|
49169
|
-
var _excluded$
|
|
49074
|
+
var _excluded$6 = ["start", "end", "length", "readOnly", "lengthProps", "caretProps", "className"];
|
|
49170
49075
|
var Moment = function Moment(_ref) {
|
|
49171
49076
|
var moment = _ref.moment,
|
|
49172
49077
|
caret = _ref.caret,
|
|
@@ -49191,7 +49096,7 @@
|
|
|
49191
49096
|
lengthProps = _ref2.lengthProps,
|
|
49192
49097
|
caretProps = _ref2.caretProps,
|
|
49193
49098
|
className = _ref2.className,
|
|
49194
|
-
rest = _objectWithoutProperties(_ref2, _excluded$
|
|
49099
|
+
rest = _objectWithoutProperties(_ref2, _excluded$6);
|
|
49195
49100
|
return /*#__PURE__*/React__default["default"].createElement(StyledPropertyListTime, _extends({}, rest, {
|
|
49196
49101
|
as: readOnly ? "div" : "button",
|
|
49197
49102
|
ref: ref,
|
|
@@ -49254,6 +49159,8 @@
|
|
|
49254
49159
|
onClose = _ref.onClose,
|
|
49255
49160
|
onClickAway = _ref.onClickAway,
|
|
49256
49161
|
fixedWidth = _ref.width,
|
|
49162
|
+
_ref$followRow = _ref.followRow,
|
|
49163
|
+
followRow = _ref$followRow === void 0 ? false : _ref$followRow,
|
|
49257
49164
|
className = _ref.className,
|
|
49258
49165
|
testId = _ref["data-testid"],
|
|
49259
49166
|
_ref$typeToFilter = _ref.typeToFilter,
|
|
@@ -49357,6 +49264,7 @@
|
|
|
49357
49264
|
onBeforeClose: handleBeforeClose,
|
|
49358
49265
|
onClose: onClose,
|
|
49359
49266
|
position: isTable ? "bottom" : "bottom-start",
|
|
49267
|
+
followTarget: followRow,
|
|
49360
49268
|
width: fixedWidth !== null && fixedWidth !== void 0 ? fixedWidth : width,
|
|
49361
49269
|
menuClassName: POPOVER_CLASS,
|
|
49362
49270
|
target: /*#__PURE__*/React.cloneElement(row, _objectSpread2({
|
|
@@ -49459,7 +49367,7 @@
|
|
|
49459
49367
|
return $open ? 1 : 0;
|
|
49460
49368
|
});
|
|
49461
49369
|
|
|
49462
|
-
var _excluded$
|
|
49370
|
+
var _excluded$5 = ["look", "surface", "side", "highlighted", "className", "children"],
|
|
49463
49371
|
_excluded2$2 = ["emoji", "count", "pressed", "readOnly", "className"],
|
|
49464
49372
|
_excluded3 = ["open", "className", "children"];
|
|
49465
49373
|
var MessageBubble = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
@@ -49472,7 +49380,7 @@
|
|
|
49472
49380
|
highlighted = _ref$highlighted === void 0 ? false : _ref$highlighted,
|
|
49473
49381
|
className = _ref.className,
|
|
49474
49382
|
children = _ref.children,
|
|
49475
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49383
|
+
rest = _objectWithoutProperties(_ref, _excluded$5);
|
|
49476
49384
|
return /*#__PURE__*/React__default["default"].createElement(StyledMessageBubble, _extends({}, rest, {
|
|
49477
49385
|
ref: ref,
|
|
49478
49386
|
$look: look,
|
|
@@ -49562,7 +49470,7 @@
|
|
|
49562
49470
|
componentId: "sc-1qu0xie-2"
|
|
49563
49471
|
})(["position:absolute;right:-100vw;bottom:0;left:-100vw;height:100vh;background-color:rgba(0,0,0,0.5);"]);
|
|
49564
49472
|
|
|
49565
|
-
var _excluded$
|
|
49473
|
+
var _excluded$4 = ["docked", "open", "lifted", "moving", "offset", "panel", "panelHeight", "className", "style", "children"],
|
|
49566
49474
|
_excluded2$1 = ["layerRef", "layerProps", "onClick", "className"];
|
|
49567
49475
|
/** A card in the flow of the page that sticks to the bottom edge of its scroll container. */
|
|
49568
49476
|
var DockedCard = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
@@ -49582,7 +49490,7 @@
|
|
|
49582
49490
|
className = _ref.className,
|
|
49583
49491
|
style = _ref.style,
|
|
49584
49492
|
children = _ref.children,
|
|
49585
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49493
|
+
rest = _objectWithoutProperties(_ref, _excluded$4);
|
|
49586
49494
|
var isPanel = !docked && panel;
|
|
49587
49495
|
useContainerCss("c-docked-card-panel-css", DOCKED_CARD_PANEL_CSS);
|
|
49588
49496
|
var cardStyle = style;
|
|
@@ -49866,92 +49774,106 @@
|
|
|
49866
49774
|
};
|
|
49867
49775
|
};
|
|
49868
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
|
+
};
|
|
49869
49780
|
var SHEET_SIZES = {
|
|
49870
|
-
grid: styled.css(["width:208px;height:
|
|
49871
|
-
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))
|
|
49872
49783
|
};
|
|
49873
49784
|
var SHEET_TITLE_SIZES = {
|
|
49874
|
-
grid: styled.css(["
|
|
49875
|
-
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 );}"])
|
|
49876
49791
|
};
|
|
49877
49792
|
var SHEET_TEXT_SIZES = {
|
|
49878
|
-
grid: styled.css(["font-size:calc(
|
|
49879
|
-
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;"])
|
|
49880
49795
|
};
|
|
49881
49796
|
var StyledNoteSheet = styled__default["default"](Card).withConfig({
|
|
49882
49797
|
displayName: "Styles__StyledNoteSheet",
|
|
49883
49798
|
componentId: "sc-10rkcp1-0"
|
|
49884
|
-
})(["&&{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) {
|
|
49885
49800
|
var $size = _ref.$size;
|
|
49886
49801
|
return SHEET_SIZES[$size];
|
|
49887
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;"]);
|
|
49888
49823
|
var StyledNoteSheetTitle = styled__default["default"].div.withConfig({
|
|
49889
49824
|
displayName: "Styles__StyledNoteSheetTitle",
|
|
49890
|
-
componentId: "sc-10rkcp1-
|
|
49891
|
-
})(["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) {
|
|
49892
49827
|
var $size = _ref2.$size;
|
|
49893
49828
|
return SHEET_TITLE_SIZES[$size];
|
|
49894
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
|
+
});
|
|
49895
49839
|
var StyledNoteSheetText = styled__default["default"].div.withConfig({
|
|
49896
49840
|
displayName: "Styles__StyledNoteSheetText",
|
|
49897
|
-
componentId: "sc-10rkcp1-
|
|
49898
|
-
})(["
|
|
49899
|
-
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;
|
|
49900
49844
|
return SHEET_TEXT_SIZES[$size];
|
|
49901
|
-
}, function (
|
|
49902
|
-
var $empty =
|
|
49903
|
-
return $empty && styled.css(["font-style:italic;
|
|
49845
|
+
}, function (_ref5) {
|
|
49846
|
+
var $empty = _ref5.$empty;
|
|
49847
|
+
return $empty && styled.css(["font-style:italic;"]);
|
|
49904
49848
|
});
|
|
49905
49849
|
var StyledNoteCard = styled__default["default"].a.withConfig({
|
|
49906
49850
|
displayName: "Styles__StyledNoteCard",
|
|
49907
|
-
componentId: "sc-10rkcp1-
|
|
49851
|
+
componentId: "sc-10rkcp1-8"
|
|
49908
49852
|
})(["display:block;text-decoration:none;"]);
|
|
49909
|
-
var StyledNoteCardSheets = styled__default["default"].div.withConfig({
|
|
49910
|
-
displayName: "Styles__StyledNoteCardSheets",
|
|
49911
|
-
componentId: "sc-10rkcp1-4"
|
|
49912
|
-
})(["position:relative;box-sizing:border-box;width:208px;height:221px;"]);
|
|
49913
|
-
var StyledNoteCardSheetBelow = styled__default["default"].span.withConfig({
|
|
49914
|
-
displayName: "Styles__StyledNoteCardSheetBelow",
|
|
49915
|
-
componentId: "sc-10rkcp1-5"
|
|
49916
|
-
})(["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) );"]);
|
|
49917
|
-
var StyledNoteCardName = styled__default["default"](Body2).withConfig({
|
|
49918
|
-
displayName: "Styles__StyledNoteCardName",
|
|
49919
|
-
componentId: "sc-10rkcp1-6"
|
|
49920
|
-
})(["&&{max-height:40px;min-width:0;flex:1 1 0%;overflow:hidden;overflow-wrap:break-word;}"]);
|
|
49921
49853
|
var StyledNoteCardBody = styled__default["default"].div.withConfig({
|
|
49922
49854
|
displayName: "Styles__StyledNoteCardBody",
|
|
49923
|
-
componentId: "sc-10rkcp1-
|
|
49924
|
-
})(["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;"]);
|
|
49925
49857
|
var StyledNoteCardCaption = styled__default["default"].div.withConfig({
|
|
49926
49858
|
displayName: "Styles__StyledNoteCardCaption",
|
|
49927
|
-
componentId: "sc-10rkcp1-
|
|
49859
|
+
componentId: "sc-10rkcp1-10"
|
|
49928
49860
|
})(["display:flex;flex-direction:column;gap:2px;"]);
|
|
49929
|
-
|
|
49930
|
-
|
|
49931
|
-
componentId: "sc-10rkcp1-9"
|
|
49932
|
-
})(["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. */
|
|
49933
49863
|
var StyledNoteCardOptions = styled__default["default"].div.withConfig({
|
|
49934
49864
|
displayName: "Styles__StyledNoteCardOptions",
|
|
49935
|
-
componentId: "sc-10rkcp1-
|
|
49936
|
-
})(["
|
|
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);}"]);
|
|
49937
49867
|
var StyledNoteCardNotebook = styled__default["default"].span.withConfig({
|
|
49938
49868
|
displayName: "Styles__StyledNoteCardNotebook",
|
|
49939
|
-
componentId: "sc-10rkcp1-
|
|
49869
|
+
componentId: "sc-10rkcp1-12"
|
|
49940
49870
|
})(["display:flex;min-width:0;align-items:center;gap:4px;"]);
|
|
49941
49871
|
var StyledNoteCardNotebookIcon = styled__default["default"](NotebookIcon$1).withConfig({
|
|
49942
49872
|
displayName: "Styles__StyledNoteCardNotebookIcon",
|
|
49943
|
-
componentId: "sc-10rkcp1-12"
|
|
49944
|
-
})(["width:14px;height:14px;flex-shrink:0;fill:var(--color-theme-600);"]);
|
|
49945
|
-
var StyledNoteCardMeta = styled__default["default"].div.withConfig({
|
|
49946
|
-
displayName: "Styles__StyledNoteCardMeta",
|
|
49947
49873
|
componentId: "sc-10rkcp1-13"
|
|
49948
|
-
})(["
|
|
49949
|
-
var StyledNoteCardSignifiers = styled__default["default"].div.withConfig({
|
|
49950
|
-
displayName: "Styles__StyledNoteCardSignifiers",
|
|
49951
|
-
componentId: "sc-10rkcp1-14"
|
|
49952
|
-
})(["display:flex;flex-shrink:0;align-items:center;gap:8px;"]);
|
|
49874
|
+
})(["width:14px;height:14px;flex-shrink:0;fill:var(--color-theme-600);"]);
|
|
49953
49875
|
|
|
49954
|
-
var _excluded$
|
|
49876
|
+
var _excluded$3 = ["name", "excerpt", "emptyExcerpt", "size", "pin", "meta", "signifiers", "className"],
|
|
49955
49877
|
_excluded2 = ["as", "name", "excerpt", "emptyExcerpt", "pinned", "notebookName", "meta", "signifiers", "options", "pinProps", "notebookProps", "sheetProps", "className"];
|
|
49956
49878
|
var NoteSheet = function NoteSheet(_ref) {
|
|
49957
49879
|
var name = _ref.name,
|
|
@@ -49960,20 +49882,27 @@
|
|
|
49960
49882
|
emptyExcerpt = _ref$emptyExcerpt === void 0 ? "No text yet" : _ref$emptyExcerpt,
|
|
49961
49883
|
_ref$size = _ref.size,
|
|
49962
49884
|
size = _ref$size === void 0 ? "grid" : _ref$size,
|
|
49885
|
+
pin = _ref.pin,
|
|
49886
|
+
meta = _ref.meta,
|
|
49887
|
+
signifiers = _ref.signifiers,
|
|
49963
49888
|
className = _ref.className,
|
|
49964
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49889
|
+
rest = _objectWithoutProperties(_ref, _excluded$3);
|
|
49965
49890
|
return /*#__PURE__*/React__default["default"].createElement(StyledNoteSheet, _extends({
|
|
49966
49891
|
"aria-hidden": "true"
|
|
49967
49892
|
}, rest, {
|
|
49968
49893
|
variant: "tile-2",
|
|
49969
49894
|
$size: size,
|
|
49970
49895
|
className: classnames__default["default"]("c-note-sheet", className)
|
|
49971
|
-
}), /*#__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, {
|
|
49972
49899
|
$size: size
|
|
49973
|
-
},
|
|
49900
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledNoteSheetText, {
|
|
49974
49901
|
$size: size,
|
|
49975
49902
|
$empty: !excerpt
|
|
49976
|
-
}, 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);
|
|
49977
49906
|
};
|
|
49978
49907
|
NoteSheet.displayName = "NoteSheet";
|
|
49979
49908
|
// The root is polymorphic; the public props carry the types.
|
|
@@ -50000,29 +49929,99 @@
|
|
|
50000
49929
|
className: classnames__default["default"]("c-note-card", className)
|
|
50001
49930
|
}), /*#__PURE__*/React__default["default"].createElement(StyledNoteCardBody, {
|
|
50002
49931
|
className: "c-note-card__body"
|
|
50003
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
50004
|
-
|
|
50005
|
-
}
|
|
49932
|
+
}, /*#__PURE__*/React__default["default"].createElement(NoteSheet, _extends({
|
|
49933
|
+
"aria-hidden": undefined
|
|
49934
|
+
}, sheetProps, {
|
|
50006
49935
|
name: name,
|
|
50007
49936
|
excerpt: excerpt,
|
|
50008
|
-
emptyExcerpt: emptyExcerpt
|
|
50009
|
-
|
|
50010
|
-
|
|
50011
|
-
|
|
50012
|
-
|
|
50013
|
-
|
|
50014
|
-
|
|
50015
|
-
}
|
|
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, {
|
|
50016
49945
|
className: "c-note-card__notebook"
|
|
50017
49946
|
}), /*#__PURE__*/React__default["default"].createElement(StyledNoteCardNotebookIcon, null), /*#__PURE__*/React__default["default"].createElement(Caption1, {
|
|
50018
49947
|
color: "tertiary",
|
|
50019
49948
|
overflow: "truncate"
|
|
50020
|
-
}, notebookName)) : null
|
|
50021
|
-
color: "tertiary"
|
|
50022
|
-
}, meta), /*#__PURE__*/React__default["default"].createElement(StyledNoteCardSignifiers, null, signifiers)))));
|
|
49949
|
+
}, notebookName))) : null));
|
|
50023
49950
|
};
|
|
50024
49951
|
NoteCard.displayName = "NoteCard";
|
|
50025
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
|
+
|
|
50026
50025
|
var StyledNotebookTile = styled__default["default"].a.withConfig({
|
|
50027
50026
|
displayName: "Styles__StyledNotebookTile",
|
|
50028
50027
|
componentId: "sc-1bdeo7e-0"
|
|
@@ -50071,7 +50070,7 @@
|
|
|
50071
50070
|
|
|
50072
50071
|
var LAYOUTS = {
|
|
50073
50072
|
notebooks: styled.css(["display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;"]),
|
|
50074
|
-
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;"]),
|
|
50075
50074
|
list: styled.css(["display:flex;flex-direction:column;"])
|
|
50076
50075
|
};
|
|
50077
50076
|
var StyledListSection = styled__default["default"].section.withConfig({
|
|
@@ -50487,6 +50486,7 @@
|
|
|
50487
50486
|
exports.NoteCard = NoteCard;
|
|
50488
50487
|
exports.NoteIcon = NoteIcon$1;
|
|
50489
50488
|
exports.NoteSheet = NoteSheet;
|
|
50489
|
+
exports.NotebookCard = NotebookCard;
|
|
50490
50490
|
exports.NotebookIcon = NotebookIcon$1;
|
|
50491
50491
|
exports.NotebookTile = NotebookTile;
|
|
50492
50492
|
exports.NotesEmptyIllustration = NotesEmptyIllustration;
|
|
@@ -50755,13 +50755,11 @@
|
|
|
50755
50755
|
exports.TriangleIcon = TriangleIcon$1;
|
|
50756
50756
|
exports.Trigger = Trigger;
|
|
50757
50757
|
exports.UploadIcon = UploadIcon$1;
|
|
50758
|
-
exports.VIEW_ILLUSTRATION_TYPES = VIEW_ILLUSTRATION_TYPES;
|
|
50759
50758
|
exports.ValueButton = ValueButton;
|
|
50760
50759
|
exports.ViewColumnIcon = ViewColumnIcon$1;
|
|
50761
50760
|
exports.ViewCombinedIcon = ViewCombinedIcon$1;
|
|
50762
50761
|
exports.ViewDayIcon = ViewDayIcon$1;
|
|
50763
50762
|
exports.ViewGridIcon = ViewGridIcon$1;
|
|
50764
|
-
exports.ViewIllustration = ViewIllustration;
|
|
50765
50763
|
exports.ViewListIcon = ViewListIcon$1;
|
|
50766
50764
|
exports.ViewSwitcher = ViewSwitcher;
|
|
50767
50765
|
exports.ViewSwitcherMenu = ViewSwitcherMenu;
|