@uniformdev/design-system 20.65.0 → 20.66.1-alpha.4
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/esm/index.js +174 -89
- package/dist/index.d.mts +20 -7
- package/dist/index.d.ts +20 -7
- package/dist/index.js +198 -110
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1533,6 +1533,7 @@ __export(src_exports, {
|
|
|
1533
1533
|
SliderLabels: () => SliderLabels,
|
|
1534
1534
|
Spinner: () => Spinner,
|
|
1535
1535
|
StackedModal: () => StackedModal,
|
|
1536
|
+
StackedModalHeader: () => StackedModalHeader,
|
|
1536
1537
|
StackedModalStep: () => StackedModalStep,
|
|
1537
1538
|
StatusBullet: () => StatusBullet,
|
|
1538
1539
|
SuccessMessage: () => SuccessMessage,
|
|
@@ -5111,18 +5112,11 @@ var linkButtonDisabled = import_react21.css`
|
|
|
5111
5112
|
pointer-events: none;
|
|
5112
5113
|
`;
|
|
5113
5114
|
var linkButtonTruncated = import_react21.css`
|
|
5114
|
-
|
|
5115
|
+
display: block;
|
|
5116
|
+
width: 100%;
|
|
5115
5117
|
overflow: hidden;
|
|
5116
5118
|
text-overflow: ellipsis;
|
|
5117
|
-
|
|
5118
|
-
display: inline-block;
|
|
5119
|
-
vertical-align: bottom;
|
|
5120
|
-
|
|
5121
|
-
/* Truncate over two lines */
|
|
5122
|
-
display: -webkit-box;
|
|
5123
|
-
-webkit-line-clamp: 1;
|
|
5124
|
-
-webkit-box-orient: vertical;
|
|
5125
|
-
white-space: normal;
|
|
5119
|
+
white-space: nowrap;
|
|
5126
5120
|
`;
|
|
5127
5121
|
|
|
5128
5122
|
// src/components/Button/LinkButton.tsx
|
|
@@ -6887,9 +6881,18 @@ var menuSelectSizeStyles = {
|
|
|
6887
6881
|
`
|
|
6888
6882
|
};
|
|
6889
6883
|
|
|
6884
|
+
// src/components/Menu/resolveMenuPlacement.ts
|
|
6885
|
+
init_emotion_jsx_shim();
|
|
6886
|
+
var legacyPlacements = ["auto", "auto-start", "auto-end"];
|
|
6887
|
+
function resolveMenuPlacement(placement, isNested) {
|
|
6888
|
+
const placementOverride = legacyPlacements.includes(placement) ? void 0 : placement;
|
|
6889
|
+
const defaultSide = isNested ? "right" : "bottom";
|
|
6890
|
+
const defaultAlignment = isNested ? "start" : "end";
|
|
6891
|
+
return placementOverride ? parsePlacement(placementOverride) : { side: defaultSide, alignment: defaultAlignment };
|
|
6892
|
+
}
|
|
6893
|
+
|
|
6890
6894
|
// src/components/Menu/Menu.tsx
|
|
6891
6895
|
var import_jsx_runtime28 = require("@emotion/react/jsx-runtime");
|
|
6892
|
-
var legacyPlacements = ["auto", "auto-start", "auto-end"];
|
|
6893
6896
|
var MenuNestingContext = (0, import_react40.createContext)({ isNested: false });
|
|
6894
6897
|
var SubmenuTriggerModeContext = (0, import_react40.createContext)(false);
|
|
6895
6898
|
function useIsSubmenuTriggerMode() {
|
|
@@ -6921,10 +6924,7 @@ var Menu = React8.forwardRef(function Menu2({
|
|
|
6921
6924
|
const { isNested } = (0, import_react40.useContext)(MenuNestingContext);
|
|
6922
6925
|
const modalContainer = useModalPortalContainer();
|
|
6923
6926
|
const [inlineContainer, setInlineContainer] = (0, import_react40.useState)(null);
|
|
6924
|
-
const
|
|
6925
|
-
const defaultSide = isNested ? "right" : "bottom";
|
|
6926
|
-
const defaultAlignment = isNested ? "start" : "center";
|
|
6927
|
-
const { side, alignment } = placementOverride ? parsePlacement(placementOverride) : { side: defaultSide, alignment: defaultAlignment };
|
|
6927
|
+
const { side, alignment } = resolveMenuPlacement(placement, isNested);
|
|
6928
6928
|
const anchor = getAnchorRect ? {
|
|
6929
6929
|
getBoundingClientRect: () => {
|
|
6930
6930
|
var _a, _b, _c, _d;
|
|
@@ -11671,14 +11671,14 @@ var img = import_react98.css`
|
|
|
11671
11671
|
max-width: 100%;
|
|
11672
11672
|
max-height: 100%;
|
|
11673
11673
|
height: auto;
|
|
11674
|
-
opacity:
|
|
11674
|
+
opacity: 1;
|
|
11675
|
+
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
11675
11676
|
margin: 0 auto;
|
|
11676
11677
|
`;
|
|
11677
11678
|
var imgLoading = import_react98.css`
|
|
11678
11679
|
opacity: 0;
|
|
11679
11680
|
`;
|
|
11680
11681
|
var imgLoaded = import_react98.css`
|
|
11681
|
-
animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
11682
11682
|
opacity: 1;
|
|
11683
11683
|
`;
|
|
11684
11684
|
var brokenImage = import_react98.css`
|
|
@@ -11790,23 +11790,27 @@ function Image({
|
|
|
11790
11790
|
(0, import_react99.useEffect)(() => {
|
|
11791
11791
|
currentUpdateImageSrcRef.current();
|
|
11792
11792
|
}, [currentSrc]);
|
|
11793
|
-
const handleLoadEvent = () => {
|
|
11793
|
+
const handleLoadEvent = (event) => {
|
|
11794
11794
|
setLoadErrorText("");
|
|
11795
11795
|
if (currentSrc) {
|
|
11796
11796
|
setLoading(true);
|
|
11797
11797
|
}
|
|
11798
11798
|
const timer = setTimeout(() => {
|
|
11799
|
+
var _a;
|
|
11799
11800
|
setLoading(false);
|
|
11801
|
+
(_a = imgAttribs.onLoad) == null ? void 0 : _a.call(imgAttribs, event);
|
|
11800
11802
|
}, MIN_LOADING_MS);
|
|
11801
11803
|
return () => clearTimeout(timer);
|
|
11802
11804
|
};
|
|
11803
|
-
const handleErrorEvent = () => {
|
|
11805
|
+
const handleErrorEvent = (event) => {
|
|
11806
|
+
var _a;
|
|
11804
11807
|
if (tryFallback()) {
|
|
11805
11808
|
setLoading(true);
|
|
11806
11809
|
return;
|
|
11807
11810
|
}
|
|
11808
11811
|
setLoadErrorText("Image failed to load");
|
|
11809
11812
|
setLoading(false);
|
|
11813
|
+
(_a = imgAttribs.onError) == null ? void 0 : _a.call(imgAttribs, event);
|
|
11810
11814
|
};
|
|
11811
11815
|
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
11812
11816
|
"span",
|
|
@@ -14874,6 +14878,9 @@ var ObjectGridItemMediaInner = import_react132.css`
|
|
|
14874
14878
|
height: 100%;
|
|
14875
14879
|
z-index: 0;
|
|
14876
14880
|
`;
|
|
14881
|
+
var ObjectGridItemMediaOnlyInner = import_react132.css`
|
|
14882
|
+
border-radius: var(--rounded-base);
|
|
14883
|
+
`;
|
|
14877
14884
|
var ObjectGridItemContentWrapper = import_react132.css`
|
|
14878
14885
|
display: grid;
|
|
14879
14886
|
grid-template-columns: 1fr auto;
|
|
@@ -14915,6 +14922,7 @@ var ObjectGridItem2 = ({
|
|
|
14915
14922
|
const onStopPropagation = (e) => {
|
|
14916
14923
|
e.stopPropagation();
|
|
14917
14924
|
};
|
|
14925
|
+
const mediaOnly = !(header2 || children || rightSlot || menuItems);
|
|
14918
14926
|
return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
|
|
14919
14927
|
"div",
|
|
14920
14928
|
{
|
|
@@ -14922,13 +14930,19 @@ var ObjectGridItem2 = ({
|
|
|
14922
14930
|
"aria-selected": isSelected,
|
|
14923
14931
|
...props,
|
|
14924
14932
|
children: [
|
|
14925
|
-
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("div", { css: ObjectGridItemMediaWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
14926
|
-
|
|
14927
|
-
|
|
14928
|
-
|
|
14929
|
-
|
|
14930
|
-
|
|
14931
|
-
|
|
14933
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("div", { css: ObjectGridItemMediaWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
14934
|
+
"div",
|
|
14935
|
+
{
|
|
14936
|
+
css: [ObjectGridItemMediaInner, mediaOnly ? ObjectGridItemMediaOnlyInner : void 0],
|
|
14937
|
+
children: cover
|
|
14938
|
+
}
|
|
14939
|
+
) }),
|
|
14940
|
+
header2 || children || rightSlot || menuItems ? /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { css: ObjectGridItemContentWrapper, children: [
|
|
14941
|
+
header2 || children ? /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(VerticalRhythm, { gap: "0", css: ObjectGridItemInnerWrapper, children: [
|
|
14942
|
+
header2 ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(HorizontalRhythm, { gap: "xs", align: "center", children: header2 }) : null,
|
|
14943
|
+
children ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("div", { css: ObjectGridItemSubtitle, children }) : null
|
|
14944
|
+
] }) : null,
|
|
14945
|
+
rightSlot || menuItems ? /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
|
|
14932
14946
|
HorizontalRhythm,
|
|
14933
14947
|
{
|
|
14934
14948
|
gap: "xs",
|
|
@@ -14947,8 +14961,8 @@ var ObjectGridItem2 = ({
|
|
|
14947
14961
|
) : null
|
|
14948
14962
|
]
|
|
14949
14963
|
}
|
|
14950
|
-
)
|
|
14951
|
-
] })
|
|
14964
|
+
) : null
|
|
14965
|
+
] }) : null
|
|
14952
14966
|
]
|
|
14953
14967
|
}
|
|
14954
14968
|
);
|
|
@@ -15090,6 +15104,7 @@ var ObjectGridItemCoverButton = ({
|
|
|
15090
15104
|
isSelected,
|
|
15091
15105
|
onSelection,
|
|
15092
15106
|
selectedText = "selected",
|
|
15107
|
+
coverSlotBottomRight,
|
|
15093
15108
|
...props
|
|
15094
15109
|
}) => {
|
|
15095
15110
|
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
@@ -15106,7 +15121,7 @@ var ObjectGridItemCoverButton = ({
|
|
|
15106
15121
|
ObjectGridItemCover,
|
|
15107
15122
|
{
|
|
15108
15123
|
...props,
|
|
15109
|
-
coverSlotBottomRight: isSelected ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { css: CoverSelectedChip, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(Chip, { text: selectedText, size: "xs", theme: "accent-dark" }) }) :
|
|
15124
|
+
coverSlotBottomRight: isSelected ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { css: CoverSelectedChip, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(Chip, { text: selectedText, size: "xs", theme: "accent-dark" }) }) : coverSlotBottomRight
|
|
15110
15125
|
}
|
|
15111
15126
|
)
|
|
15112
15127
|
}
|
|
@@ -15271,7 +15286,7 @@ var ObjectListItem = import_react137.css`
|
|
|
15271
15286
|
padding: var(--spacing-sm);
|
|
15272
15287
|
transition: background-color var(--duration-fast) var(--timing-ease-out);
|
|
15273
15288
|
container-type: inline-size;
|
|
15274
|
-
grid-template-columns: minmax(0, auto) 1fr auto;
|
|
15289
|
+
grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
|
|
15275
15290
|
|
|
15276
15291
|
&[aria-selected='true'] {
|
|
15277
15292
|
background: var(--gray-50);
|
|
@@ -15295,6 +15310,21 @@ var ObjectListItemContentWrapper = import_react137.css`
|
|
|
15295
15310
|
gap: var(--spacing-sm);
|
|
15296
15311
|
justify-content: space-between;
|
|
15297
15312
|
flex-grow: 1;
|
|
15313
|
+
min-width: 0;
|
|
15314
|
+
`;
|
|
15315
|
+
var ObjectListItemTitleArea = import_react137.css`
|
|
15316
|
+
min-width: 0;
|
|
15317
|
+
overflow: hidden;
|
|
15318
|
+
`;
|
|
15319
|
+
var ObjectListItemTitleColumnContent = import_react137.css`
|
|
15320
|
+
flex: 1;
|
|
15321
|
+
min-width: 0;
|
|
15322
|
+
overflow: hidden;
|
|
15323
|
+
`;
|
|
15324
|
+
var objectListItemContentWrapperColumns = (minContainerQueryWidth, hasCover) => import_react137.css`
|
|
15325
|
+
${cq(minContainerQueryWidth)} {
|
|
15326
|
+
grid-template-columns: ${hasCover ? "minmax(0, auto) " : ""}minmax(0, 1fr) minmax(0, auto);
|
|
15327
|
+
}
|
|
15298
15328
|
`;
|
|
15299
15329
|
var ObjectListItemRightSlot = import_react137.css`
|
|
15300
15330
|
display: flex;
|
|
@@ -15438,36 +15468,44 @@ var ObjectListItem2 = ({ minContainerQueryWidth = "34rem", ...props }) => {
|
|
|
15438
15468
|
{
|
|
15439
15469
|
css: [
|
|
15440
15470
|
ObjectListItemContentWrapper,
|
|
15441
|
-
|
|
15442
|
-
grid-template-columns: ${cover ? "minmax(0, auto)" : ""} minmax(0, 1fr) minmax(0, auto);
|
|
15443
|
-
}`,
|
|
15471
|
+
objectListItemContentWrapperColumns(minContainerQueryWidth, Boolean(cover)),
|
|
15444
15472
|
renderAs === "single" ? ObjectListItemSingle : null
|
|
15445
15473
|
],
|
|
15446
15474
|
children: [
|
|
15447
15475
|
cover ? /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(HorizontalRhythm, { gap: "sm", align: "center", children: cover }) : null,
|
|
15448
|
-
/* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(
|
|
15449
|
-
|
|
15450
|
-
|
|
15451
|
-
|
|
15452
|
-
|
|
15453
|
-
|
|
15454
|
-
|
|
15455
|
-
"
|
|
15456
|
-
|
|
15457
|
-
|
|
15458
|
-
|
|
15459
|
-
|
|
15460
|
-
|
|
15461
|
-
|
|
15462
|
-
|
|
15463
|
-
|
|
15464
|
-
|
|
15465
|
-
|
|
15466
|
-
|
|
15467
|
-
|
|
15468
|
-
|
|
15469
|
-
|
|
15470
|
-
|
|
15476
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(
|
|
15477
|
+
HorizontalRhythm,
|
|
15478
|
+
{
|
|
15479
|
+
gap: "xs",
|
|
15480
|
+
align: renderAs === "multi" ? "flex-start" : "center",
|
|
15481
|
+
css: ObjectListItemTitleArea,
|
|
15482
|
+
children: [
|
|
15483
|
+
leftSlot ? /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(HorizontalRhythm, { gap: "xs", align: "baseline", children: leftSlot }) : null,
|
|
15484
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(
|
|
15485
|
+
VerticalRhythm,
|
|
15486
|
+
{
|
|
15487
|
+
gap: "0",
|
|
15488
|
+
justify: renderAs === "multi" ? "flex-start" : "center",
|
|
15489
|
+
"data-testid": "title-container",
|
|
15490
|
+
css: ObjectListItemTitleColumnContent,
|
|
15491
|
+
children: [
|
|
15492
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
|
|
15493
|
+
HorizontalRhythm,
|
|
15494
|
+
{
|
|
15495
|
+
gap: "xs",
|
|
15496
|
+
align: renderAs === "multi" ? "flex-start" : "center",
|
|
15497
|
+
"data-testid": "title",
|
|
15498
|
+
css: ObjectListItemTitleArea,
|
|
15499
|
+
children: header2
|
|
15500
|
+
}
|
|
15501
|
+
),
|
|
15502
|
+
renderAs === "multi" ? props.children : null
|
|
15503
|
+
]
|
|
15504
|
+
}
|
|
15505
|
+
)
|
|
15506
|
+
]
|
|
15507
|
+
}
|
|
15508
|
+
),
|
|
15471
15509
|
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)(HorizontalRhythm, { gap: "xs", align: renderAs === "multi" ? "flex-start" : "center", children: rightSlot })
|
|
15472
15510
|
]
|
|
15473
15511
|
}
|
|
@@ -15533,6 +15571,10 @@ var ObjectListItemHeading = import_react138.css`
|
|
|
15533
15571
|
display: flex;
|
|
15534
15572
|
flex-direction: column;
|
|
15535
15573
|
gap: var(--spacing-xs);
|
|
15574
|
+
width: 100%;
|
|
15575
|
+
min-width: 0;
|
|
15576
|
+
max-width: 100%;
|
|
15577
|
+
overflow: hidden;
|
|
15536
15578
|
|
|
15537
15579
|
${cq("34rem")} {
|
|
15538
15580
|
align-items: center;
|
|
@@ -15541,6 +15583,20 @@ var ObjectListItemHeading = import_react138.css`
|
|
|
15541
15583
|
`;
|
|
15542
15584
|
var ObjectListItemHeadingAfterWrapper = import_react138.css`
|
|
15543
15585
|
line-height: 1.25;
|
|
15586
|
+
min-width: 0;
|
|
15587
|
+
flex: 1;
|
|
15588
|
+
width: 100%;
|
|
15589
|
+
overflow: hidden;
|
|
15590
|
+
`;
|
|
15591
|
+
var ObjectListItemHeadingText = import_react138.css`
|
|
15592
|
+
flex: 1;
|
|
15593
|
+
min-width: 0;
|
|
15594
|
+
overflow: hidden;
|
|
15595
|
+
text-overflow: ellipsis;
|
|
15596
|
+
white-space: nowrap;
|
|
15597
|
+
`;
|
|
15598
|
+
var ObjectListItemHeadingAfterSlot = import_react138.css`
|
|
15599
|
+
flex-shrink: 0;
|
|
15544
15600
|
`;
|
|
15545
15601
|
|
|
15546
15602
|
// src/components/Objects/ObjectListItemHeading.tsx
|
|
@@ -15555,8 +15611,8 @@ var ObjectListItemHeading2 = ({
|
|
|
15555
15611
|
return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { css: ObjectListItemHeading, ...props, children: [
|
|
15556
15612
|
beforeHeadingSlot ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(HorizontalRhythm, { gap: "xs", align: "center", children: beforeHeadingSlot }) : null,
|
|
15557
15613
|
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(HorizontalRhythm, { css: ObjectListItemHeadingAfterWrapper, gap: "xs", align: "flex-start", children: [
|
|
15558
|
-
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { role: "heading", "data-testid": headingTestId, children: heading }),
|
|
15559
|
-
afterHeadingSlot
|
|
15614
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { role: "heading", "data-testid": headingTestId, css: ObjectListItemHeadingText, children: heading }),
|
|
15615
|
+
afterHeadingSlot ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { css: ObjectListItemHeadingAfterSlot, children: afterHeadingSlot }) : null
|
|
15560
15616
|
] })
|
|
15561
15617
|
] });
|
|
15562
15618
|
};
|
|
@@ -15570,6 +15626,11 @@ var import_react139 = require("@emotion/react");
|
|
|
15570
15626
|
var ObjectListSubText = import_react139.css`
|
|
15571
15627
|
color: var(--gray-500);
|
|
15572
15628
|
font-size: var(--fs-sm);
|
|
15629
|
+
min-width: 0;
|
|
15630
|
+
max-width: 100%;
|
|
15631
|
+
overflow: hidden;
|
|
15632
|
+
text-overflow: ellipsis;
|
|
15633
|
+
white-space: nowrap;
|
|
15573
15634
|
`;
|
|
15574
15635
|
|
|
15575
15636
|
// src/components/Objects/ObjectListSubText.tsx
|
|
@@ -17913,13 +17974,13 @@ CustomCodeNode.importDOM = function() {
|
|
|
17913
17974
|
// src/components/ParameterInputs/rich-text/DisableStylesPlugin.ts
|
|
17914
17975
|
init_emotion_jsx_shim();
|
|
17915
17976
|
var import_LexicalComposerContext = require("@lexical/react/LexicalComposerContext");
|
|
17916
|
-
var
|
|
17977
|
+
var import_utils5 = require("@lexical/utils");
|
|
17917
17978
|
var import_lexical = require("lexical");
|
|
17918
17979
|
var import_react163 = require("react");
|
|
17919
17980
|
function DisableStylesPlugin() {
|
|
17920
17981
|
const [editor] = (0, import_LexicalComposerContext.useLexicalComposerContext)();
|
|
17921
17982
|
(0, import_react163.useEffect)(() => {
|
|
17922
|
-
return (0,
|
|
17983
|
+
return (0, import_utils5.mergeRegister)(
|
|
17923
17984
|
// Disable text alignment on paragraph nodes
|
|
17924
17985
|
editor.registerNodeTransform(import_lexical.ParagraphNode, (node) => {
|
|
17925
17986
|
if (node.getFormatType() !== "") {
|
|
@@ -18177,7 +18238,7 @@ var tableHeaderElement = import_css2.css`
|
|
|
18177
18238
|
// src/components/ParameterInputs/rich-text/ImprovedAssetSelectionPlugin.tsx
|
|
18178
18239
|
init_emotion_jsx_shim();
|
|
18179
18240
|
var import_LexicalComposerContext2 = require("@lexical/react/LexicalComposerContext");
|
|
18180
|
-
var
|
|
18241
|
+
var import_utils6 = require("@lexical/utils");
|
|
18181
18242
|
var import_lexical2 = require("lexical");
|
|
18182
18243
|
var import_react164 = require("react");
|
|
18183
18244
|
var ImprovedAssetSelectionPlugin = () => {
|
|
@@ -18194,7 +18255,7 @@ var ImprovedAssetSelectionPlugin = () => {
|
|
|
18194
18255
|
const lastNode = state.root.children.at(-1);
|
|
18195
18256
|
if (isRichTextNodeType(firstNode, "asset") && clickArea === "top") {
|
|
18196
18257
|
editor.update(() => {
|
|
18197
|
-
(0,
|
|
18258
|
+
(0, import_utils6.$insertFirst)((0, import_lexical2.$getRoot)(), (0, import_lexical2.$createParagraphNode)());
|
|
18198
18259
|
requestAnimationFrame(() => {
|
|
18199
18260
|
var _a, _b;
|
|
18200
18261
|
(_b = (_a = editor.getRootElement()) == null ? void 0 : _a.parentElement) == null ? void 0 : _b.scrollTo({
|
|
@@ -18234,7 +18295,7 @@ init_emotion_jsx_shim();
|
|
|
18234
18295
|
var import_react165 = require("@emotion/react");
|
|
18235
18296
|
var import_LexicalComposerContext3 = require("@lexical/react/LexicalComposerContext");
|
|
18236
18297
|
var import_LexicalNodeEventPlugin = require("@lexical/react/LexicalNodeEventPlugin");
|
|
18237
|
-
var
|
|
18298
|
+
var import_utils7 = require("@lexical/utils");
|
|
18238
18299
|
var import_fast_equals = require("fast-equals");
|
|
18239
18300
|
var import_lexical4 = require("lexical");
|
|
18240
18301
|
var import_react166 = require("react");
|
|
@@ -18319,7 +18380,7 @@ var guessLinkTypeFromPath = (path) => {
|
|
|
18319
18380
|
};
|
|
18320
18381
|
function convertAnchorElement(domNode) {
|
|
18321
18382
|
let node = null;
|
|
18322
|
-
if (!(0,
|
|
18383
|
+
if (!(0, import_utils7.isHTMLAnchorElement)(domNode)) {
|
|
18323
18384
|
return { node };
|
|
18324
18385
|
}
|
|
18325
18386
|
const textContent = domNode.textContent;
|
|
@@ -18426,7 +18487,7 @@ var LinkNode = class _LinkNode extends import_lexical4.ElementNode {
|
|
|
18426
18487
|
element.setAttribute("href", `mailto:${this.__link.path}`);
|
|
18427
18488
|
}
|
|
18428
18489
|
}
|
|
18429
|
-
(0,
|
|
18490
|
+
(0, import_utils7.addClassNamesToElement)(element, config.theme.link);
|
|
18430
18491
|
return element;
|
|
18431
18492
|
}
|
|
18432
18493
|
updateDOM(prevNode, a) {
|
|
@@ -18623,7 +18684,7 @@ function LinkNodePlugin({
|
|
|
18623
18684
|
if (!editor.hasNodes([LinkNode])) {
|
|
18624
18685
|
throw new Error("LinkNode not registered on editor");
|
|
18625
18686
|
}
|
|
18626
|
-
return (0,
|
|
18687
|
+
return (0, import_utils7.mergeRegister)(
|
|
18627
18688
|
editor.registerCommand(
|
|
18628
18689
|
UPSERT_LINK_NODE_COMMAND,
|
|
18629
18690
|
(payload) => {
|
|
@@ -18691,7 +18752,7 @@ function LinkNodePlugin({
|
|
|
18691
18752
|
import_lexical4.PASTE_COMMAND,
|
|
18692
18753
|
(event) => {
|
|
18693
18754
|
const selection = (0, import_lexical4.$getSelection)();
|
|
18694
|
-
if (!(0, import_lexical4.$isRangeSelection)(selection) || selection.isCollapsed() || !(0,
|
|
18755
|
+
if (!(0, import_lexical4.$isRangeSelection)(selection) || selection.isCollapsed() || !(0, import_utils7.objectKlassEquals)(event, ClipboardEvent)) {
|
|
18695
18756
|
return false;
|
|
18696
18757
|
}
|
|
18697
18758
|
const clipboardEvent = event;
|
|
@@ -18843,7 +18904,7 @@ function getLinkAncestor(node) {
|
|
|
18843
18904
|
init_emotion_jsx_shim();
|
|
18844
18905
|
var import_list = require("@lexical/list");
|
|
18845
18906
|
var import_LexicalComposerContext4 = require("@lexical/react/LexicalComposerContext");
|
|
18846
|
-
var
|
|
18907
|
+
var import_utils10 = require("@lexical/utils");
|
|
18847
18908
|
var import_lexical5 = require("lexical");
|
|
18848
18909
|
var import_react167 = require("react");
|
|
18849
18910
|
function isIndentPermitted(maxDepth) {
|
|
@@ -18868,11 +18929,11 @@ function isIndentPermitted(maxDepth) {
|
|
|
18868
18929
|
}
|
|
18869
18930
|
function $isAnyOfSelectedNodesAListItemNode(selection) {
|
|
18870
18931
|
const nodes = selection.getNodes();
|
|
18871
|
-
return (0,
|
|
18932
|
+
return (0, import_utils10.$filter)(nodes, (node) => (0, import_list.$isListItemNode)(node) ? node : null).length > 0;
|
|
18872
18933
|
}
|
|
18873
18934
|
function $indentOverTab(selection) {
|
|
18874
18935
|
const nodes = selection.getNodes();
|
|
18875
|
-
const canIndentBlockNodes = (0,
|
|
18936
|
+
const canIndentBlockNodes = (0, import_utils10.$filter)(nodes, (node) => {
|
|
18876
18937
|
if ((0, import_lexical5.$isBlockElementNode)(node) && node.canIndent()) {
|
|
18877
18938
|
return node;
|
|
18878
18939
|
}
|
|
@@ -18885,7 +18946,7 @@ function $indentOverTab(selection) {
|
|
|
18885
18946
|
const focus = selection.focus;
|
|
18886
18947
|
const first = focus.isBefore(anchor) ? focus : anchor;
|
|
18887
18948
|
const firstNode = first.getNode();
|
|
18888
|
-
const firstBlock = (0,
|
|
18949
|
+
const firstBlock = (0, import_utils10.$getNearestBlockElementAncestorOrThrow)(firstNode);
|
|
18889
18950
|
if (firstBlock.canIndent()) {
|
|
18890
18951
|
const firstBlockKey = firstBlock.getKey();
|
|
18891
18952
|
let selectionAtStart = (0, import_lexical5.$createRangeSelection)();
|
|
@@ -18911,7 +18972,7 @@ function ListIndentPlugin({ maxDepth }) {
|
|
|
18911
18972
|
isInListItemNode.current = false;
|
|
18912
18973
|
return false;
|
|
18913
18974
|
}
|
|
18914
|
-
isInListItemNode.current = (0,
|
|
18975
|
+
isInListItemNode.current = (0, import_utils10.$getNearestNodeOfType)(selection.anchor.getNode(), import_list.ListNode) !== null;
|
|
18915
18976
|
});
|
|
18916
18977
|
return false;
|
|
18917
18978
|
},
|
|
@@ -18919,7 +18980,7 @@ function ListIndentPlugin({ maxDepth }) {
|
|
|
18919
18980
|
);
|
|
18920
18981
|
}, [editor]);
|
|
18921
18982
|
(0, import_react167.useEffect)(() => {
|
|
18922
|
-
return (0,
|
|
18983
|
+
return (0, import_utils10.mergeRegister)(
|
|
18923
18984
|
editor.registerCommand(
|
|
18924
18985
|
import_lexical5.INDENT_CONTENT_COMMAND,
|
|
18925
18986
|
() => !isIndentPermitted(maxDepth),
|
|
@@ -19279,7 +19340,7 @@ var import_react170 = require("@emotion/react");
|
|
|
19279
19340
|
var import_LexicalComposerContext6 = require("@lexical/react/LexicalComposerContext");
|
|
19280
19341
|
var import_useLexicalEditable2 = require("@lexical/react/useLexicalEditable");
|
|
19281
19342
|
var import_table2 = require("@lexical/table");
|
|
19282
|
-
var
|
|
19343
|
+
var import_utils12 = require("@lexical/utils");
|
|
19283
19344
|
var import_lexical7 = require("lexical");
|
|
19284
19345
|
var import_react171 = require("react");
|
|
19285
19346
|
var import_react_dom3 = require("react-dom");
|
|
@@ -19502,7 +19563,7 @@ function TableCellResizer({ editor, positioningAnchorEl }) {
|
|
|
19502
19563
|
if (activeCell === null) {
|
|
19503
19564
|
return;
|
|
19504
19565
|
}
|
|
19505
|
-
const zoom = (0,
|
|
19566
|
+
const zoom = (0, import_utils12.calculateZoomLevel)(event.target);
|
|
19506
19567
|
if (isHeightChanging(direction)) {
|
|
19507
19568
|
const heightChange = (event.clientY - y) / zoom;
|
|
19508
19569
|
updateRowHeight(heightChange);
|
|
@@ -19539,7 +19600,7 @@ function TableCellResizer({ editor, positioningAnchorEl }) {
|
|
|
19539
19600
|
if (activeCell) {
|
|
19540
19601
|
const { height, width, top: top2, left } = activeCell.elem.getBoundingClientRect();
|
|
19541
19602
|
const parentRect = positioningAnchorEl.getBoundingClientRect();
|
|
19542
|
-
const zoom = (0,
|
|
19603
|
+
const zoom = (0, import_utils12.calculateZoomLevel)(activeCell.elem);
|
|
19543
19604
|
const zoneWidth = 10;
|
|
19544
19605
|
const styles = {
|
|
19545
19606
|
bottom: {
|
|
@@ -19677,7 +19738,7 @@ var import_LexicalComposerContext8 = require("@lexical/react/LexicalComposerCont
|
|
|
19677
19738
|
var import_rich_text = require("@lexical/rich-text");
|
|
19678
19739
|
var import_selection2 = require("@lexical/selection");
|
|
19679
19740
|
var import_table4 = require("@lexical/table");
|
|
19680
|
-
var
|
|
19741
|
+
var import_utils13 = require("@lexical/utils");
|
|
19681
19742
|
var import_lexical9 = require("lexical");
|
|
19682
19743
|
var import_react175 = require("react");
|
|
19683
19744
|
|
|
@@ -19956,7 +20017,7 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
|
|
|
19956
20017
|
}
|
|
19957
20018
|
setActiveFormats(newActiveFormats);
|
|
19958
20019
|
const anchorNode = selection.anchor.getNode();
|
|
19959
|
-
let element = anchorNode.getKey() === "root" ? anchorNode : (0,
|
|
20020
|
+
let element = anchorNode.getKey() === "root" ? anchorNode : (0, import_utils13.$findMatchingParent)(anchorNode, (e) => {
|
|
19960
20021
|
const parent = e.getParent();
|
|
19961
20022
|
return parent !== null && (0, import_lexical9.$isRootOrShadowRoot)(parent);
|
|
19962
20023
|
});
|
|
@@ -19967,7 +20028,7 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
|
|
|
19967
20028
|
const elementDOM = editor.getElementByKey(elementKey);
|
|
19968
20029
|
if (elementDOM !== null) {
|
|
19969
20030
|
if ((0, import_list2.$isListNode)(element)) {
|
|
19970
|
-
const parentList = (0,
|
|
20031
|
+
const parentList = (0, import_utils13.$getNearestNodeOfType)(anchorNode, import_list2.ListNode);
|
|
19971
20032
|
const type = parentList ? parentList.getListType() : element.getListType();
|
|
19972
20033
|
setActiveElement(type === "bullet" ? "unorderedList" : "orderedList");
|
|
19973
20034
|
} else {
|
|
@@ -21783,8 +21844,8 @@ init_emotion_jsx_shim();
|
|
|
21783
21844
|
init_emotion_jsx_shim();
|
|
21784
21845
|
var import_react193 = require("@emotion/react");
|
|
21785
21846
|
var stackedModalRootStyles = import_react193.css`
|
|
21786
|
-
dialog > div {
|
|
21787
|
-
background: var(--
|
|
21847
|
+
& > dialog > div {
|
|
21848
|
+
background: var(--gray-50);
|
|
21788
21849
|
}
|
|
21789
21850
|
`;
|
|
21790
21851
|
var slideInFromRight = import_react193.keyframes`
|
|
@@ -21830,7 +21891,8 @@ var slideOutToRight = import_react193.keyframes`
|
|
|
21830
21891
|
var stepContainerStyles = import_react193.css`
|
|
21831
21892
|
position: relative;
|
|
21832
21893
|
flex: 1;
|
|
21833
|
-
overflow:
|
|
21894
|
+
overflow: clip;
|
|
21895
|
+
min-width: 0;
|
|
21834
21896
|
height: 100%;
|
|
21835
21897
|
`;
|
|
21836
21898
|
var stepBaseStyles = import_react193.css`
|
|
@@ -21883,14 +21945,16 @@ var headerItemStyles = (isActive) => import_react193.css`
|
|
|
21883
21945
|
position: ${isActive ? "relative" : "absolute"};
|
|
21884
21946
|
inset: 0;
|
|
21885
21947
|
white-space: nowrap;
|
|
21948
|
+
overflow: hidden;
|
|
21949
|
+
text-overflow: ellipsis;
|
|
21886
21950
|
`;
|
|
21887
21951
|
var stepContentStyles = import_react193.css`
|
|
21888
21952
|
position: relative;
|
|
21889
21953
|
flex: 1;
|
|
21890
21954
|
overflow: auto;
|
|
21891
|
-
padding: var(--spacing-md);
|
|
21892
21955
|
border-radius: var(--rounded-sm);
|
|
21893
21956
|
${scrollbarStyles}
|
|
21957
|
+
background: var(--white);
|
|
21894
21958
|
`;
|
|
21895
21959
|
|
|
21896
21960
|
// src/components/StackedModal/styles/getStepAnimationStyles.ts
|
|
@@ -21940,7 +22004,18 @@ var import_jsx_runtime156 = require("@emotion/react/jsx-runtime");
|
|
|
21940
22004
|
function StackedModalStep({ children, buttonGroup }) {
|
|
21941
22005
|
return /* @__PURE__ */ (0, import_jsx_runtime156.jsxs)(import_jsx_runtime156.Fragment, { children: [
|
|
21942
22006
|
/* @__PURE__ */ (0, import_jsx_runtime156.jsx)("div", { css: stepContentStyles, children }),
|
|
21943
|
-
buttonGroup ? /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
|
|
22007
|
+
buttonGroup ? /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
|
|
22008
|
+
HorizontalRhythm,
|
|
22009
|
+
{
|
|
22010
|
+
gap: "sm",
|
|
22011
|
+
align: "center",
|
|
22012
|
+
css: {
|
|
22013
|
+
// Some buttons rely on an outline for their border which gets cut by overflow: hidden;
|
|
22014
|
+
padding: "1px"
|
|
22015
|
+
},
|
|
22016
|
+
children: buttonGroup
|
|
22017
|
+
}
|
|
22018
|
+
) : null
|
|
21944
22019
|
] });
|
|
21945
22020
|
}
|
|
21946
22021
|
|
|
@@ -21959,11 +22034,12 @@ var StackedModal = import_react194.default.forwardRef(
|
|
|
21959
22034
|
);
|
|
21960
22035
|
StackedModal.displayName = "StackedModal";
|
|
21961
22036
|
var StackedModalInner = import_react194.default.forwardRef(
|
|
21962
|
-
({ steps, onRequestClose, modalSize = "lg", width, height }, ref) => {
|
|
22037
|
+
({ steps, onRequestClose, modalSize = "lg", width, height, "data-testid": dataTestId }, ref) => {
|
|
21963
22038
|
return /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { css: stackedModalRootStyles, children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
|
|
21964
22039
|
Modal,
|
|
21965
22040
|
{
|
|
21966
22041
|
ref,
|
|
22042
|
+
...dataTestId ? { "data-testid": dataTestId } : {},
|
|
21967
22043
|
header: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(AnimatedStepHeader, { steps }),
|
|
21968
22044
|
onRequestClose,
|
|
21969
22045
|
modalSize,
|
|
@@ -21986,6 +22062,17 @@ function StackedModalStepWrapper({ index, children }) {
|
|
|
21986
22062
|
return /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { css: [stepBaseStyles, getStepAnimationStyles(transition)], "aria-hidden": !transition.isActive, children });
|
|
21987
22063
|
}
|
|
21988
22064
|
|
|
22065
|
+
// src/components/StackedModal/StackedModalHeader.tsx
|
|
22066
|
+
init_emotion_jsx_shim();
|
|
22067
|
+
var import_CgChevronLeft3 = require("@react-icons/all-files/cg/CgChevronLeft");
|
|
22068
|
+
var import_jsx_runtime158 = require("@emotion/react/jsx-runtime");
|
|
22069
|
+
var StackedModalHeader = ({ children, onBack, icon = import_CgChevronLeft3.CgChevronLeft }) => {
|
|
22070
|
+
return /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(HorizontalRhythm, { gap: "sm", align: "center", children: [
|
|
22071
|
+
onBack ? /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(IconButton, { onClick: onBack, buttonType: "unimportant", size: "xs", children: /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(Icon, { icon, size: "1rem" }) }) : null,
|
|
22072
|
+
children
|
|
22073
|
+
] });
|
|
22074
|
+
};
|
|
22075
|
+
|
|
21989
22076
|
// src/components/Switch/Switch.tsx
|
|
21990
22077
|
init_emotion_jsx_shim();
|
|
21991
22078
|
var import_react196 = require("react");
|
|
@@ -22124,7 +22211,7 @@ var SwitchInputContainerAlignmentRight = import_react195.css`
|
|
|
22124
22211
|
`;
|
|
22125
22212
|
|
|
22126
22213
|
// src/components/Switch/Switch.tsx
|
|
22127
|
-
var
|
|
22214
|
+
var import_jsx_runtime159 = require("@emotion/react/jsx-runtime");
|
|
22128
22215
|
var Switch = (0, import_react196.forwardRef)(
|
|
22129
22216
|
({
|
|
22130
22217
|
label: label2,
|
|
@@ -22153,8 +22240,8 @@ var Switch = (0, import_react196.forwardRef)(
|
|
|
22153
22240
|
if (infoText && toggleText) {
|
|
22154
22241
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
22155
22242
|
}
|
|
22156
|
-
return /* @__PURE__ */ (0,
|
|
22157
|
-
/* @__PURE__ */ (0,
|
|
22243
|
+
return /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)(import_jsx_runtime159.Fragment, { children: [
|
|
22244
|
+
/* @__PURE__ */ (0, import_jsx_runtime159.jsxs)(
|
|
22158
22245
|
"label",
|
|
22159
22246
|
{
|
|
22160
22247
|
css: [
|
|
@@ -22164,7 +22251,7 @@ var Switch = (0, import_react196.forwardRef)(
|
|
|
22164
22251
|
inputProps.disabled ? SwitchInputDisabled : void 0
|
|
22165
22252
|
],
|
|
22166
22253
|
children: [
|
|
22167
|
-
/* @__PURE__ */ (0,
|
|
22254
|
+
/* @__PURE__ */ (0, import_jsx_runtime159.jsx)(
|
|
22168
22255
|
"input",
|
|
22169
22256
|
{
|
|
22170
22257
|
type: "checkbox",
|
|
@@ -22173,11 +22260,11 @@ var Switch = (0, import_react196.forwardRef)(
|
|
|
22173
22260
|
ref
|
|
22174
22261
|
}
|
|
22175
22262
|
),
|
|
22176
|
-
/* @__PURE__ */ (0,
|
|
22263
|
+
/* @__PURE__ */ (0, import_jsx_runtime159.jsx)("span", { css: [SwitchInputLabel(switchSize), SwitchInputLabelAlignment], children: label2 })
|
|
22177
22264
|
]
|
|
22178
22265
|
}
|
|
22179
22266
|
),
|
|
22180
|
-
additionalText ? /* @__PURE__ */ (0,
|
|
22267
|
+
additionalText ? /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(
|
|
22181
22268
|
"p",
|
|
22182
22269
|
{
|
|
22183
22270
|
css: [
|
|
@@ -22251,48 +22338,48 @@ var responsiveTableContainer = import_react197.css`
|
|
|
22251
22338
|
`;
|
|
22252
22339
|
|
|
22253
22340
|
// src/components/Table/ResponsiveTableContainer.tsx
|
|
22254
|
-
var
|
|
22341
|
+
var import_jsx_runtime160 = require("@emotion/react/jsx-runtime");
|
|
22255
22342
|
var ResponsiveTableContainer = ({ children }) => {
|
|
22256
|
-
return /* @__PURE__ */ (0,
|
|
22343
|
+
return /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("div", { css: responsiveTableContainer, children });
|
|
22257
22344
|
};
|
|
22258
22345
|
|
|
22259
22346
|
// src/components/Table/Table.tsx
|
|
22260
22347
|
init_emotion_jsx_shim();
|
|
22261
22348
|
var React26 = __toESM(require("react"));
|
|
22262
|
-
var
|
|
22349
|
+
var import_jsx_runtime161 = require("@emotion/react/jsx-runtime");
|
|
22263
22350
|
var Table = React26.forwardRef(
|
|
22264
22351
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
22265
|
-
return /* @__PURE__ */ (0,
|
|
22352
|
+
return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
22266
22353
|
}
|
|
22267
22354
|
);
|
|
22268
22355
|
var TableHead = React26.forwardRef(
|
|
22269
22356
|
({ children, ...otherProps }, ref) => {
|
|
22270
|
-
return /* @__PURE__ */ (0,
|
|
22357
|
+
return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
|
|
22271
22358
|
}
|
|
22272
22359
|
);
|
|
22273
22360
|
var TableBody = React26.forwardRef(
|
|
22274
22361
|
({ children, ...otherProps }, ref) => {
|
|
22275
|
-
return /* @__PURE__ */ (0,
|
|
22362
|
+
return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("tbody", { ref, ...otherProps, children });
|
|
22276
22363
|
}
|
|
22277
22364
|
);
|
|
22278
22365
|
var TableFoot = React26.forwardRef(
|
|
22279
22366
|
({ children, ...otherProps }, ref) => {
|
|
22280
|
-
return /* @__PURE__ */ (0,
|
|
22367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("tfoot", { ref, ...otherProps, children });
|
|
22281
22368
|
}
|
|
22282
22369
|
);
|
|
22283
22370
|
var TableRow = React26.forwardRef(
|
|
22284
22371
|
({ children, ...otherProps }, ref) => {
|
|
22285
|
-
return /* @__PURE__ */ (0,
|
|
22372
|
+
return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
|
|
22286
22373
|
}
|
|
22287
22374
|
);
|
|
22288
22375
|
var TableCellHead = React26.forwardRef(
|
|
22289
22376
|
({ children, ...otherProps }, ref) => {
|
|
22290
|
-
return /* @__PURE__ */ (0,
|
|
22377
|
+
return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
22291
22378
|
}
|
|
22292
22379
|
);
|
|
22293
22380
|
var TableCellData = React26.forwardRef(
|
|
22294
22381
|
({ children, ...otherProps }, ref) => {
|
|
22295
|
-
return /* @__PURE__ */ (0,
|
|
22382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("td", { ref, ...otherProps, children });
|
|
22296
22383
|
}
|
|
22297
22384
|
);
|
|
22298
22385
|
|
|
@@ -22328,7 +22415,7 @@ var tabButtonGroupStyles = import_react198.css`
|
|
|
22328
22415
|
`;
|
|
22329
22416
|
|
|
22330
22417
|
// src/components/Tabs/Tabs.tsx
|
|
22331
|
-
var
|
|
22418
|
+
var import_jsx_runtime162 = require("@emotion/react/jsx-runtime");
|
|
22332
22419
|
var TabsContext = (0, import_react199.createContext)(null);
|
|
22333
22420
|
var useCurrentTab = () => {
|
|
22334
22421
|
const context = (0, import_react199.useContext)(TabsContext);
|
|
@@ -22389,7 +22476,7 @@ var Tabs = ({
|
|
|
22389
22476
|
}),
|
|
22390
22477
|
[currentValue, onTabSelect]
|
|
22391
22478
|
);
|
|
22392
|
-
return /* @__PURE__ */ (0,
|
|
22479
|
+
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(TabsContext.Provider, { value: tabsContextValue, children: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(TabRegistrationContext.Provider, { value: { registerTab }, children: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(ManualContext.Provider, { value: !!manual, children: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
|
|
22393
22480
|
import_tabs.Tabs.Root,
|
|
22394
22481
|
{
|
|
22395
22482
|
value: currentValue != null ? currentValue : null,
|
|
@@ -22403,7 +22490,7 @@ var Tabs = ({
|
|
|
22403
22490
|
};
|
|
22404
22491
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
22405
22492
|
const manual = (0, import_react199.useContext)(ManualContext);
|
|
22406
|
-
return /* @__PURE__ */ (0,
|
|
22493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(import_tabs.Tabs.List, { activateOnFocus: !manual, ...props, css: tabButtonGroupStyles, children });
|
|
22407
22494
|
};
|
|
22408
22495
|
var TabButton = ({
|
|
22409
22496
|
children,
|
|
@@ -22414,7 +22501,7 @@ var TabButton = ({
|
|
|
22414
22501
|
(0, import_react199.useEffect)(() => {
|
|
22415
22502
|
registration == null ? void 0 : registration.registerTab(id);
|
|
22416
22503
|
}, []);
|
|
22417
|
-
return /* @__PURE__ */ (0,
|
|
22504
|
+
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(import_tabs.Tabs.Tab, { type: "button", value: id, "data-tab-id": id, ...props, css: tabButtonStyles, children });
|
|
22418
22505
|
};
|
|
22419
22506
|
var TabContent = ({
|
|
22420
22507
|
children,
|
|
@@ -22425,7 +22512,7 @@ var TabContent = ({
|
|
|
22425
22512
|
}) => {
|
|
22426
22513
|
const panelValue = tabId != null ? tabId : id;
|
|
22427
22514
|
const htmlId = id;
|
|
22428
|
-
return /* @__PURE__ */ (0,
|
|
22515
|
+
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(import_tabs.Tabs.Panel, { value: panelValue, id: htmlId, keepMounted, ...props, children });
|
|
22429
22516
|
};
|
|
22430
22517
|
|
|
22431
22518
|
// src/components/Validation/StatusBullet.tsx
|
|
@@ -22511,7 +22598,7 @@ var StatusDeleted = import_react200.css`
|
|
|
22511
22598
|
`;
|
|
22512
22599
|
|
|
22513
22600
|
// src/components/Validation/StatusBullet.tsx
|
|
22514
|
-
var
|
|
22601
|
+
var import_jsx_runtime163 = require("@emotion/react/jsx-runtime");
|
|
22515
22602
|
var currentStateStyles = {
|
|
22516
22603
|
Error: StatusError,
|
|
22517
22604
|
Modified: StatusModified,
|
|
@@ -22535,7 +22622,7 @@ var StatusBullet = ({
|
|
|
22535
22622
|
compact = false,
|
|
22536
22623
|
...props
|
|
22537
22624
|
}) => {
|
|
22538
|
-
const StatusComponent = () => /* @__PURE__ */ (0,
|
|
22625
|
+
const StatusComponent = () => /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
|
|
22539
22626
|
"span",
|
|
22540
22627
|
{
|
|
22541
22628
|
role: "status",
|
|
@@ -22546,9 +22633,9 @@ var StatusBullet = ({
|
|
|
22546
22633
|
}
|
|
22547
22634
|
);
|
|
22548
22635
|
if (compact) {
|
|
22549
|
-
return /* @__PURE__ */ (0,
|
|
22636
|
+
return /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(StatusComponent, {});
|
|
22550
22637
|
}
|
|
22551
|
-
return /* @__PURE__ */ (0,
|
|
22638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Tooltip, { title: message != null ? message : status, children: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(StatusComponent, {}) }) });
|
|
22552
22639
|
};
|
|
22553
22640
|
// Annotate the CommonJS export names for ESM import in node:
|
|
22554
22641
|
0 && (module.exports = {
|
|
@@ -22725,6 +22812,7 @@ var StatusBullet = ({
|
|
|
22725
22812
|
SliderLabels,
|
|
22726
22813
|
Spinner,
|
|
22727
22814
|
StackedModal,
|
|
22815
|
+
StackedModalHeader,
|
|
22728
22816
|
StackedModalStep,
|
|
22729
22817
|
StatusBullet,
|
|
22730
22818
|
SuccessMessage,
|