@uniformdev/design-system 20.65.0 → 20.66.0
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/esm/index.js
CHANGED
|
@@ -3346,18 +3346,11 @@ var linkButtonDisabled = css14`
|
|
|
3346
3346
|
pointer-events: none;
|
|
3347
3347
|
`;
|
|
3348
3348
|
var linkButtonTruncated = css14`
|
|
3349
|
-
|
|
3349
|
+
display: block;
|
|
3350
|
+
width: 100%;
|
|
3350
3351
|
overflow: hidden;
|
|
3351
3352
|
text-overflow: ellipsis;
|
|
3352
|
-
|
|
3353
|
-
display: inline-block;
|
|
3354
|
-
vertical-align: bottom;
|
|
3355
|
-
|
|
3356
|
-
/* Truncate over two lines */
|
|
3357
|
-
display: -webkit-box;
|
|
3358
|
-
-webkit-line-clamp: 1;
|
|
3359
|
-
-webkit-box-orient: vertical;
|
|
3360
|
-
white-space: normal;
|
|
3353
|
+
white-space: nowrap;
|
|
3361
3354
|
`;
|
|
3362
3355
|
|
|
3363
3356
|
// src/components/Button/LinkButton.tsx
|
|
@@ -5082,9 +5075,17 @@ var menuSelectSizeStyles = {
|
|
|
5082
5075
|
`
|
|
5083
5076
|
};
|
|
5084
5077
|
|
|
5078
|
+
// src/components/Menu/resolveMenuPlacement.ts
|
|
5079
|
+
var legacyPlacements = ["auto", "auto-start", "auto-end"];
|
|
5080
|
+
function resolveMenuPlacement(placement, isNested) {
|
|
5081
|
+
const placementOverride = legacyPlacements.includes(placement) ? void 0 : placement;
|
|
5082
|
+
const defaultSide = isNested ? "right" : "bottom";
|
|
5083
|
+
const defaultAlignment = isNested ? "start" : "end";
|
|
5084
|
+
return placementOverride ? parsePlacement(placementOverride) : { side: defaultSide, alignment: defaultAlignment };
|
|
5085
|
+
}
|
|
5086
|
+
|
|
5085
5087
|
// src/components/Menu/Menu.tsx
|
|
5086
5088
|
import { jsx as jsx28, jsxs as jsxs17 } from "@emotion/react/jsx-runtime";
|
|
5087
|
-
var legacyPlacements = ["auto", "auto-start", "auto-end"];
|
|
5088
5089
|
var MenuNestingContext = createContext3({ isNested: false });
|
|
5089
5090
|
var SubmenuTriggerModeContext = createContext3(false);
|
|
5090
5091
|
function useIsSubmenuTriggerMode() {
|
|
@@ -5116,10 +5117,7 @@ var Menu = React8.forwardRef(function Menu2({
|
|
|
5116
5117
|
const { isNested } = useContext3(MenuNestingContext);
|
|
5117
5118
|
const modalContainer = useModalPortalContainer();
|
|
5118
5119
|
const [inlineContainer, setInlineContainer] = useState5(null);
|
|
5119
|
-
const
|
|
5120
|
-
const defaultSide = isNested ? "right" : "bottom";
|
|
5121
|
-
const defaultAlignment = isNested ? "start" : "center";
|
|
5122
|
-
const { side, alignment } = placementOverride ? parsePlacement(placementOverride) : { side: defaultSide, alignment: defaultAlignment };
|
|
5120
|
+
const { side, alignment } = resolveMenuPlacement(placement, isNested);
|
|
5123
5121
|
const anchor = getAnchorRect ? {
|
|
5124
5122
|
getBoundingClientRect: () => {
|
|
5125
5123
|
var _a, _b, _c, _d;
|
|
@@ -9762,14 +9760,14 @@ var img = css63`
|
|
|
9762
9760
|
max-width: 100%;
|
|
9763
9761
|
max-height: 100%;
|
|
9764
9762
|
height: auto;
|
|
9765
|
-
opacity:
|
|
9763
|
+
opacity: 1;
|
|
9764
|
+
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
9766
9765
|
margin: 0 auto;
|
|
9767
9766
|
`;
|
|
9768
9767
|
var imgLoading = css63`
|
|
9769
9768
|
opacity: 0;
|
|
9770
9769
|
`;
|
|
9771
9770
|
var imgLoaded = css63`
|
|
9772
|
-
animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
9773
9771
|
opacity: 1;
|
|
9774
9772
|
`;
|
|
9775
9773
|
var brokenImage = css63`
|
|
@@ -9880,23 +9878,27 @@ function Image({
|
|
|
9880
9878
|
useEffect11(() => {
|
|
9881
9879
|
currentUpdateImageSrcRef.current();
|
|
9882
9880
|
}, [currentSrc]);
|
|
9883
|
-
const handleLoadEvent = () => {
|
|
9881
|
+
const handleLoadEvent = (event) => {
|
|
9884
9882
|
setLoadErrorText("");
|
|
9885
9883
|
if (currentSrc) {
|
|
9886
9884
|
setLoading(true);
|
|
9887
9885
|
}
|
|
9888
9886
|
const timer = setTimeout(() => {
|
|
9887
|
+
var _a;
|
|
9889
9888
|
setLoading(false);
|
|
9889
|
+
(_a = imgAttribs.onLoad) == null ? void 0 : _a.call(imgAttribs, event);
|
|
9890
9890
|
}, MIN_LOADING_MS);
|
|
9891
9891
|
return () => clearTimeout(timer);
|
|
9892
9892
|
};
|
|
9893
|
-
const handleErrorEvent = () => {
|
|
9893
|
+
const handleErrorEvent = (event) => {
|
|
9894
|
+
var _a;
|
|
9894
9895
|
if (tryFallback()) {
|
|
9895
9896
|
setLoading(true);
|
|
9896
9897
|
return;
|
|
9897
9898
|
}
|
|
9898
9899
|
setLoadErrorText("Image failed to load");
|
|
9899
9900
|
setLoading(false);
|
|
9901
|
+
(_a = imgAttribs.onError) == null ? void 0 : _a.call(imgAttribs, event);
|
|
9900
9902
|
};
|
|
9901
9903
|
return /* @__PURE__ */ jsxs53(
|
|
9902
9904
|
"span",
|
|
@@ -12914,6 +12916,9 @@ var ObjectGridItemMediaInner = css85`
|
|
|
12914
12916
|
height: 100%;
|
|
12915
12917
|
z-index: 0;
|
|
12916
12918
|
`;
|
|
12919
|
+
var ObjectGridItemMediaOnlyInner = css85`
|
|
12920
|
+
border-radius: var(--rounded-base);
|
|
12921
|
+
`;
|
|
12917
12922
|
var ObjectGridItemContentWrapper = css85`
|
|
12918
12923
|
display: grid;
|
|
12919
12924
|
grid-template-columns: 1fr auto;
|
|
@@ -12955,6 +12960,7 @@ var ObjectGridItem2 = ({
|
|
|
12955
12960
|
const onStopPropagation = (e) => {
|
|
12956
12961
|
e.stopPropagation();
|
|
12957
12962
|
};
|
|
12963
|
+
const mediaOnly = !(header2 || children || rightSlot || menuItems);
|
|
12958
12964
|
return /* @__PURE__ */ jsxs76(
|
|
12959
12965
|
"div",
|
|
12960
12966
|
{
|
|
@@ -12962,13 +12968,19 @@ var ObjectGridItem2 = ({
|
|
|
12962
12968
|
"aria-selected": isSelected,
|
|
12963
12969
|
...props,
|
|
12964
12970
|
children: [
|
|
12965
|
-
/* @__PURE__ */ jsx111("div", { css: ObjectGridItemMediaWrapper, children: /* @__PURE__ */ jsx111(
|
|
12966
|
-
|
|
12967
|
-
|
|
12968
|
-
|
|
12969
|
-
|
|
12970
|
-
|
|
12971
|
-
|
|
12971
|
+
/* @__PURE__ */ jsx111("div", { css: ObjectGridItemMediaWrapper, children: /* @__PURE__ */ jsx111(
|
|
12972
|
+
"div",
|
|
12973
|
+
{
|
|
12974
|
+
css: [ObjectGridItemMediaInner, mediaOnly ? ObjectGridItemMediaOnlyInner : void 0],
|
|
12975
|
+
children: cover
|
|
12976
|
+
}
|
|
12977
|
+
) }),
|
|
12978
|
+
header2 || children || rightSlot || menuItems ? /* @__PURE__ */ jsxs76("div", { css: ObjectGridItemContentWrapper, children: [
|
|
12979
|
+
header2 || children ? /* @__PURE__ */ jsxs76(VerticalRhythm, { gap: "0", css: ObjectGridItemInnerWrapper, children: [
|
|
12980
|
+
header2 ? /* @__PURE__ */ jsx111(HorizontalRhythm, { gap: "xs", align: "center", children: header2 }) : null,
|
|
12981
|
+
children ? /* @__PURE__ */ jsx111("div", { css: ObjectGridItemSubtitle, children }) : null
|
|
12982
|
+
] }) : null,
|
|
12983
|
+
rightSlot || menuItems ? /* @__PURE__ */ jsxs76(
|
|
12972
12984
|
HorizontalRhythm,
|
|
12973
12985
|
{
|
|
12974
12986
|
gap: "xs",
|
|
@@ -12987,8 +12999,8 @@ var ObjectGridItem2 = ({
|
|
|
12987
12999
|
) : null
|
|
12988
13000
|
]
|
|
12989
13001
|
}
|
|
12990
|
-
)
|
|
12991
|
-
] })
|
|
13002
|
+
) : null
|
|
13003
|
+
] }) : null
|
|
12992
13004
|
]
|
|
12993
13005
|
}
|
|
12994
13006
|
);
|
|
@@ -13126,6 +13138,7 @@ var ObjectGridItemCoverButton = ({
|
|
|
13126
13138
|
isSelected,
|
|
13127
13139
|
onSelection,
|
|
13128
13140
|
selectedText = "selected",
|
|
13141
|
+
coverSlotBottomRight,
|
|
13129
13142
|
...props
|
|
13130
13143
|
}) => {
|
|
13131
13144
|
return /* @__PURE__ */ jsx112(
|
|
@@ -13142,7 +13155,7 @@ var ObjectGridItemCoverButton = ({
|
|
|
13142
13155
|
ObjectGridItemCover,
|
|
13143
13156
|
{
|
|
13144
13157
|
...props,
|
|
13145
|
-
coverSlotBottomRight: isSelected ? /* @__PURE__ */ jsx112("div", { css: CoverSelectedChip, children: /* @__PURE__ */ jsx112(Chip, { text: selectedText, size: "xs", theme: "accent-dark" }) }) :
|
|
13158
|
+
coverSlotBottomRight: isSelected ? /* @__PURE__ */ jsx112("div", { css: CoverSelectedChip, children: /* @__PURE__ */ jsx112(Chip, { text: selectedText, size: "xs", theme: "accent-dark" }) }) : coverSlotBottomRight
|
|
13146
13159
|
}
|
|
13147
13160
|
)
|
|
13148
13161
|
}
|
|
@@ -13296,7 +13309,7 @@ var ObjectListItem = css89`
|
|
|
13296
13309
|
padding: var(--spacing-sm);
|
|
13297
13310
|
transition: background-color var(--duration-fast) var(--timing-ease-out);
|
|
13298
13311
|
container-type: inline-size;
|
|
13299
|
-
grid-template-columns: minmax(0, auto) 1fr auto;
|
|
13312
|
+
grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
|
|
13300
13313
|
|
|
13301
13314
|
&[aria-selected='true'] {
|
|
13302
13315
|
background: var(--gray-50);
|
|
@@ -13320,6 +13333,21 @@ var ObjectListItemContentWrapper = css89`
|
|
|
13320
13333
|
gap: var(--spacing-sm);
|
|
13321
13334
|
justify-content: space-between;
|
|
13322
13335
|
flex-grow: 1;
|
|
13336
|
+
min-width: 0;
|
|
13337
|
+
`;
|
|
13338
|
+
var ObjectListItemTitleArea = css89`
|
|
13339
|
+
min-width: 0;
|
|
13340
|
+
overflow: hidden;
|
|
13341
|
+
`;
|
|
13342
|
+
var ObjectListItemTitleColumnContent = css89`
|
|
13343
|
+
flex: 1;
|
|
13344
|
+
min-width: 0;
|
|
13345
|
+
overflow: hidden;
|
|
13346
|
+
`;
|
|
13347
|
+
var objectListItemContentWrapperColumns = (minContainerQueryWidth, hasCover) => css89`
|
|
13348
|
+
${cq(minContainerQueryWidth)} {
|
|
13349
|
+
grid-template-columns: ${hasCover ? "minmax(0, auto) " : ""}minmax(0, 1fr) minmax(0, auto);
|
|
13350
|
+
}
|
|
13323
13351
|
`;
|
|
13324
13352
|
var ObjectListItemRightSlot = css89`
|
|
13325
13353
|
display: flex;
|
|
@@ -13462,36 +13490,44 @@ var ObjectListItem2 = ({ minContainerQueryWidth = "34rem", ...props }) => {
|
|
|
13462
13490
|
{
|
|
13463
13491
|
css: [
|
|
13464
13492
|
ObjectListItemContentWrapper,
|
|
13465
|
-
|
|
13466
|
-
grid-template-columns: ${cover ? "minmax(0, auto)" : ""} minmax(0, 1fr) minmax(0, auto);
|
|
13467
|
-
}`,
|
|
13493
|
+
objectListItemContentWrapperColumns(minContainerQueryWidth, Boolean(cover)),
|
|
13468
13494
|
renderAs === "single" ? ObjectListItemSingle : null
|
|
13469
13495
|
],
|
|
13470
13496
|
children: [
|
|
13471
13497
|
cover ? /* @__PURE__ */ jsx117(HorizontalRhythm, { gap: "sm", align: "center", children: cover }) : null,
|
|
13472
|
-
/* @__PURE__ */ jsxs81(
|
|
13473
|
-
|
|
13474
|
-
|
|
13475
|
-
|
|
13476
|
-
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
"
|
|
13480
|
-
|
|
13481
|
-
|
|
13482
|
-
|
|
13483
|
-
|
|
13484
|
-
|
|
13485
|
-
|
|
13486
|
-
|
|
13487
|
-
|
|
13488
|
-
|
|
13489
|
-
|
|
13490
|
-
|
|
13491
|
-
|
|
13492
|
-
|
|
13493
|
-
|
|
13494
|
-
|
|
13498
|
+
/* @__PURE__ */ jsxs81(
|
|
13499
|
+
HorizontalRhythm,
|
|
13500
|
+
{
|
|
13501
|
+
gap: "xs",
|
|
13502
|
+
align: renderAs === "multi" ? "flex-start" : "center",
|
|
13503
|
+
css: ObjectListItemTitleArea,
|
|
13504
|
+
children: [
|
|
13505
|
+
leftSlot ? /* @__PURE__ */ jsx117(HorizontalRhythm, { gap: "xs", align: "baseline", children: leftSlot }) : null,
|
|
13506
|
+
/* @__PURE__ */ jsxs81(
|
|
13507
|
+
VerticalRhythm,
|
|
13508
|
+
{
|
|
13509
|
+
gap: "0",
|
|
13510
|
+
justify: renderAs === "multi" ? "flex-start" : "center",
|
|
13511
|
+
"data-testid": "title-container",
|
|
13512
|
+
css: ObjectListItemTitleColumnContent,
|
|
13513
|
+
children: [
|
|
13514
|
+
/* @__PURE__ */ jsx117(
|
|
13515
|
+
HorizontalRhythm,
|
|
13516
|
+
{
|
|
13517
|
+
gap: "xs",
|
|
13518
|
+
align: renderAs === "multi" ? "flex-start" : "center",
|
|
13519
|
+
"data-testid": "title",
|
|
13520
|
+
css: ObjectListItemTitleArea,
|
|
13521
|
+
children: header2
|
|
13522
|
+
}
|
|
13523
|
+
),
|
|
13524
|
+
renderAs === "multi" ? props.children : null
|
|
13525
|
+
]
|
|
13526
|
+
}
|
|
13527
|
+
)
|
|
13528
|
+
]
|
|
13529
|
+
}
|
|
13530
|
+
),
|
|
13495
13531
|
/* @__PURE__ */ jsx117(HorizontalRhythm, { gap: "xs", align: renderAs === "multi" ? "flex-start" : "center", children: rightSlot })
|
|
13496
13532
|
]
|
|
13497
13533
|
}
|
|
@@ -13551,6 +13587,10 @@ var ObjectListItemHeading = css90`
|
|
|
13551
13587
|
display: flex;
|
|
13552
13588
|
flex-direction: column;
|
|
13553
13589
|
gap: var(--spacing-xs);
|
|
13590
|
+
width: 100%;
|
|
13591
|
+
min-width: 0;
|
|
13592
|
+
max-width: 100%;
|
|
13593
|
+
overflow: hidden;
|
|
13554
13594
|
|
|
13555
13595
|
${cq("34rem")} {
|
|
13556
13596
|
align-items: center;
|
|
@@ -13559,6 +13599,20 @@ var ObjectListItemHeading = css90`
|
|
|
13559
13599
|
`;
|
|
13560
13600
|
var ObjectListItemHeadingAfterWrapper = css90`
|
|
13561
13601
|
line-height: 1.25;
|
|
13602
|
+
min-width: 0;
|
|
13603
|
+
flex: 1;
|
|
13604
|
+
width: 100%;
|
|
13605
|
+
overflow: hidden;
|
|
13606
|
+
`;
|
|
13607
|
+
var ObjectListItemHeadingText = css90`
|
|
13608
|
+
flex: 1;
|
|
13609
|
+
min-width: 0;
|
|
13610
|
+
overflow: hidden;
|
|
13611
|
+
text-overflow: ellipsis;
|
|
13612
|
+
white-space: nowrap;
|
|
13613
|
+
`;
|
|
13614
|
+
var ObjectListItemHeadingAfterSlot = css90`
|
|
13615
|
+
flex-shrink: 0;
|
|
13562
13616
|
`;
|
|
13563
13617
|
|
|
13564
13618
|
// src/components/Objects/ObjectListItemHeading.tsx
|
|
@@ -13573,8 +13627,8 @@ var ObjectListItemHeading2 = ({
|
|
|
13573
13627
|
return /* @__PURE__ */ jsxs83("div", { css: ObjectListItemHeading, ...props, children: [
|
|
13574
13628
|
beforeHeadingSlot ? /* @__PURE__ */ jsx120(HorizontalRhythm, { gap: "xs", align: "center", children: beforeHeadingSlot }) : null,
|
|
13575
13629
|
/* @__PURE__ */ jsxs83(HorizontalRhythm, { css: ObjectListItemHeadingAfterWrapper, gap: "xs", align: "flex-start", children: [
|
|
13576
|
-
/* @__PURE__ */ jsx120("div", { role: "heading", "data-testid": headingTestId, children: heading }),
|
|
13577
|
-
afterHeadingSlot
|
|
13630
|
+
/* @__PURE__ */ jsx120("div", { role: "heading", "data-testid": headingTestId, css: ObjectListItemHeadingText, children: heading }),
|
|
13631
|
+
afterHeadingSlot ? /* @__PURE__ */ jsx120("div", { css: ObjectListItemHeadingAfterSlot, children: afterHeadingSlot }) : null
|
|
13578
13632
|
] })
|
|
13579
13633
|
] });
|
|
13580
13634
|
};
|
|
@@ -13584,6 +13638,11 @@ import { css as css91 } from "@emotion/react";
|
|
|
13584
13638
|
var ObjectListSubText = css91`
|
|
13585
13639
|
color: var(--gray-500);
|
|
13586
13640
|
font-size: var(--fs-sm);
|
|
13641
|
+
min-width: 0;
|
|
13642
|
+
max-width: 100%;
|
|
13643
|
+
overflow: hidden;
|
|
13644
|
+
text-overflow: ellipsis;
|
|
13645
|
+
white-space: nowrap;
|
|
13587
13646
|
`;
|
|
13588
13647
|
|
|
13589
13648
|
// src/components/Objects/ObjectListSubText.tsx
|
|
@@ -19797,8 +19856,8 @@ import React25 from "react";
|
|
|
19797
19856
|
// src/components/StackedModal/styles/StackedModal.styles.ts
|
|
19798
19857
|
import { css as css115, keyframes as keyframes7 } from "@emotion/react";
|
|
19799
19858
|
var stackedModalRootStyles = css115`
|
|
19800
|
-
dialog > div {
|
|
19801
|
-
background: var(--
|
|
19859
|
+
& > dialog > div {
|
|
19860
|
+
background: var(--gray-50);
|
|
19802
19861
|
}
|
|
19803
19862
|
`;
|
|
19804
19863
|
var slideInFromRight = keyframes7`
|
|
@@ -19844,7 +19903,8 @@ var slideOutToRight = keyframes7`
|
|
|
19844
19903
|
var stepContainerStyles = css115`
|
|
19845
19904
|
position: relative;
|
|
19846
19905
|
flex: 1;
|
|
19847
|
-
overflow:
|
|
19906
|
+
overflow: clip;
|
|
19907
|
+
min-width: 0;
|
|
19848
19908
|
height: 100%;
|
|
19849
19909
|
`;
|
|
19850
19910
|
var stepBaseStyles = css115`
|
|
@@ -19897,14 +19957,16 @@ var headerItemStyles = (isActive) => css115`
|
|
|
19897
19957
|
position: ${isActive ? "relative" : "absolute"};
|
|
19898
19958
|
inset: 0;
|
|
19899
19959
|
white-space: nowrap;
|
|
19960
|
+
overflow: hidden;
|
|
19961
|
+
text-overflow: ellipsis;
|
|
19900
19962
|
`;
|
|
19901
19963
|
var stepContentStyles = css115`
|
|
19902
19964
|
position: relative;
|
|
19903
19965
|
flex: 1;
|
|
19904
19966
|
overflow: auto;
|
|
19905
|
-
padding: var(--spacing-md);
|
|
19906
19967
|
border-radius: var(--rounded-sm);
|
|
19907
19968
|
${scrollbarStyles}
|
|
19969
|
+
background: var(--white);
|
|
19908
19970
|
`;
|
|
19909
19971
|
|
|
19910
19972
|
// src/components/StackedModal/styles/getStepAnimationStyles.ts
|
|
@@ -19953,7 +20015,18 @@ import { Fragment as Fragment22, jsx as jsx156, jsxs as jsxs103 } from "@emotion
|
|
|
19953
20015
|
function StackedModalStep({ children, buttonGroup }) {
|
|
19954
20016
|
return /* @__PURE__ */ jsxs103(Fragment22, { children: [
|
|
19955
20017
|
/* @__PURE__ */ jsx156("div", { css: stepContentStyles, children }),
|
|
19956
|
-
buttonGroup ? /* @__PURE__ */ jsx156(
|
|
20018
|
+
buttonGroup ? /* @__PURE__ */ jsx156(
|
|
20019
|
+
HorizontalRhythm,
|
|
20020
|
+
{
|
|
20021
|
+
gap: "sm",
|
|
20022
|
+
align: "center",
|
|
20023
|
+
css: {
|
|
20024
|
+
// Some buttons rely on an outline for their border which gets cut by overflow: hidden;
|
|
20025
|
+
padding: "1px"
|
|
20026
|
+
},
|
|
20027
|
+
children: buttonGroup
|
|
20028
|
+
}
|
|
20029
|
+
) : null
|
|
19957
20030
|
] });
|
|
19958
20031
|
}
|
|
19959
20032
|
|
|
@@ -19972,11 +20045,12 @@ var StackedModal = React25.forwardRef(
|
|
|
19972
20045
|
);
|
|
19973
20046
|
StackedModal.displayName = "StackedModal";
|
|
19974
20047
|
var StackedModalInner = React25.forwardRef(
|
|
19975
|
-
({ steps, onRequestClose, modalSize = "lg", width, height }, ref) => {
|
|
20048
|
+
({ steps, onRequestClose, modalSize = "lg", width, height, "data-testid": dataTestId }, ref) => {
|
|
19976
20049
|
return /* @__PURE__ */ jsx157("div", { css: stackedModalRootStyles, children: /* @__PURE__ */ jsx157(
|
|
19977
20050
|
Modal,
|
|
19978
20051
|
{
|
|
19979
20052
|
ref,
|
|
20053
|
+
...dataTestId ? { "data-testid": dataTestId } : {},
|
|
19980
20054
|
header: /* @__PURE__ */ jsx157(AnimatedStepHeader, { steps }),
|
|
19981
20055
|
onRequestClose,
|
|
19982
20056
|
modalSize,
|
|
@@ -19999,6 +20073,16 @@ function StackedModalStepWrapper({ index, children }) {
|
|
|
19999
20073
|
return /* @__PURE__ */ jsx157("div", { css: [stepBaseStyles, getStepAnimationStyles(transition)], "aria-hidden": !transition.isActive, children });
|
|
20000
20074
|
}
|
|
20001
20075
|
|
|
20076
|
+
// src/components/StackedModal/StackedModalHeader.tsx
|
|
20077
|
+
import { CgChevronLeft as CgChevronLeft2 } from "@react-icons/all-files/cg/CgChevronLeft";
|
|
20078
|
+
import { jsx as jsx158, jsxs as jsxs104 } from "@emotion/react/jsx-runtime";
|
|
20079
|
+
var StackedModalHeader = ({ children, onBack, icon = CgChevronLeft2 }) => {
|
|
20080
|
+
return /* @__PURE__ */ jsxs104(HorizontalRhythm, { gap: "sm", align: "center", children: [
|
|
20081
|
+
onBack ? /* @__PURE__ */ jsx158(IconButton, { onClick: onBack, buttonType: "unimportant", size: "xs", children: /* @__PURE__ */ jsx158(Icon, { icon, size: "1rem" }) }) : null,
|
|
20082
|
+
children
|
|
20083
|
+
] });
|
|
20084
|
+
};
|
|
20085
|
+
|
|
20002
20086
|
// src/components/Switch/Switch.tsx
|
|
20003
20087
|
import { forwardRef as forwardRef35, useMemo as useMemo16 } from "react";
|
|
20004
20088
|
|
|
@@ -20135,7 +20219,7 @@ var SwitchInputContainerAlignmentRight = css116`
|
|
|
20135
20219
|
`;
|
|
20136
20220
|
|
|
20137
20221
|
// src/components/Switch/Switch.tsx
|
|
20138
|
-
import { Fragment as Fragment23, jsx as
|
|
20222
|
+
import { Fragment as Fragment23, jsx as jsx159, jsxs as jsxs105 } from "@emotion/react/jsx-runtime";
|
|
20139
20223
|
var Switch = forwardRef35(
|
|
20140
20224
|
({
|
|
20141
20225
|
label: label2,
|
|
@@ -20164,8 +20248,8 @@ var Switch = forwardRef35(
|
|
|
20164
20248
|
if (infoText && toggleText) {
|
|
20165
20249
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
20166
20250
|
}
|
|
20167
|
-
return /* @__PURE__ */
|
|
20168
|
-
/* @__PURE__ */
|
|
20251
|
+
return /* @__PURE__ */ jsxs105(Fragment23, { children: [
|
|
20252
|
+
/* @__PURE__ */ jsxs105(
|
|
20169
20253
|
"label",
|
|
20170
20254
|
{
|
|
20171
20255
|
css: [
|
|
@@ -20175,7 +20259,7 @@ var Switch = forwardRef35(
|
|
|
20175
20259
|
inputProps.disabled ? SwitchInputDisabled : void 0
|
|
20176
20260
|
],
|
|
20177
20261
|
children: [
|
|
20178
|
-
/* @__PURE__ */
|
|
20262
|
+
/* @__PURE__ */ jsx159(
|
|
20179
20263
|
"input",
|
|
20180
20264
|
{
|
|
20181
20265
|
type: "checkbox",
|
|
@@ -20184,11 +20268,11 @@ var Switch = forwardRef35(
|
|
|
20184
20268
|
ref
|
|
20185
20269
|
}
|
|
20186
20270
|
),
|
|
20187
|
-
/* @__PURE__ */
|
|
20271
|
+
/* @__PURE__ */ jsx159("span", { css: [SwitchInputLabel(switchSize), SwitchInputLabelAlignment], children: label2 })
|
|
20188
20272
|
]
|
|
20189
20273
|
}
|
|
20190
20274
|
),
|
|
20191
|
-
additionalText ? /* @__PURE__ */
|
|
20275
|
+
additionalText ? /* @__PURE__ */ jsx159(
|
|
20192
20276
|
"p",
|
|
20193
20277
|
{
|
|
20194
20278
|
css: [
|
|
@@ -20258,47 +20342,47 @@ var responsiveTableContainer = css117`
|
|
|
20258
20342
|
`;
|
|
20259
20343
|
|
|
20260
20344
|
// src/components/Table/ResponsiveTableContainer.tsx
|
|
20261
|
-
import { jsx as
|
|
20345
|
+
import { jsx as jsx160 } from "@emotion/react/jsx-runtime";
|
|
20262
20346
|
var ResponsiveTableContainer = ({ children }) => {
|
|
20263
|
-
return /* @__PURE__ */
|
|
20347
|
+
return /* @__PURE__ */ jsx160("div", { css: responsiveTableContainer, children });
|
|
20264
20348
|
};
|
|
20265
20349
|
|
|
20266
20350
|
// src/components/Table/Table.tsx
|
|
20267
20351
|
import * as React26 from "react";
|
|
20268
|
-
import { jsx as
|
|
20352
|
+
import { jsx as jsx161 } from "@emotion/react/jsx-runtime";
|
|
20269
20353
|
var Table = React26.forwardRef(
|
|
20270
20354
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
20271
|
-
return /* @__PURE__ */
|
|
20355
|
+
return /* @__PURE__ */ jsx161("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
20272
20356
|
}
|
|
20273
20357
|
);
|
|
20274
20358
|
var TableHead = React26.forwardRef(
|
|
20275
20359
|
({ children, ...otherProps }, ref) => {
|
|
20276
|
-
return /* @__PURE__ */
|
|
20360
|
+
return /* @__PURE__ */ jsx161("thead", { ref, css: tableHead, ...otherProps, children });
|
|
20277
20361
|
}
|
|
20278
20362
|
);
|
|
20279
20363
|
var TableBody = React26.forwardRef(
|
|
20280
20364
|
({ children, ...otherProps }, ref) => {
|
|
20281
|
-
return /* @__PURE__ */
|
|
20365
|
+
return /* @__PURE__ */ jsx161("tbody", { ref, ...otherProps, children });
|
|
20282
20366
|
}
|
|
20283
20367
|
);
|
|
20284
20368
|
var TableFoot = React26.forwardRef(
|
|
20285
20369
|
({ children, ...otherProps }, ref) => {
|
|
20286
|
-
return /* @__PURE__ */
|
|
20370
|
+
return /* @__PURE__ */ jsx161("tfoot", { ref, ...otherProps, children });
|
|
20287
20371
|
}
|
|
20288
20372
|
);
|
|
20289
20373
|
var TableRow = React26.forwardRef(
|
|
20290
20374
|
({ children, ...otherProps }, ref) => {
|
|
20291
|
-
return /* @__PURE__ */
|
|
20375
|
+
return /* @__PURE__ */ jsx161("tr", { ref, css: tableRow, ...otherProps, children });
|
|
20292
20376
|
}
|
|
20293
20377
|
);
|
|
20294
20378
|
var TableCellHead = React26.forwardRef(
|
|
20295
20379
|
({ children, ...otherProps }, ref) => {
|
|
20296
|
-
return /* @__PURE__ */
|
|
20380
|
+
return /* @__PURE__ */ jsx161("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
20297
20381
|
}
|
|
20298
20382
|
);
|
|
20299
20383
|
var TableCellData = React26.forwardRef(
|
|
20300
20384
|
({ children, ...otherProps }, ref) => {
|
|
20301
|
-
return /* @__PURE__ */
|
|
20385
|
+
return /* @__PURE__ */ jsx161("td", { ref, ...otherProps, children });
|
|
20302
20386
|
}
|
|
20303
20387
|
);
|
|
20304
20388
|
|
|
@@ -20332,7 +20416,7 @@ var tabButtonGroupStyles = css118`
|
|
|
20332
20416
|
`;
|
|
20333
20417
|
|
|
20334
20418
|
// src/components/Tabs/Tabs.tsx
|
|
20335
|
-
import { jsx as
|
|
20419
|
+
import { jsx as jsx162 } from "@emotion/react/jsx-runtime";
|
|
20336
20420
|
var TabsContext = createContext10(null);
|
|
20337
20421
|
var useCurrentTab = () => {
|
|
20338
20422
|
const context = useContext10(TabsContext);
|
|
@@ -20393,7 +20477,7 @@ var Tabs = ({
|
|
|
20393
20477
|
}),
|
|
20394
20478
|
[currentValue, onTabSelect]
|
|
20395
20479
|
);
|
|
20396
|
-
return /* @__PURE__ */
|
|
20480
|
+
return /* @__PURE__ */ jsx162(TabsContext.Provider, { value: tabsContextValue, children: /* @__PURE__ */ jsx162(TabRegistrationContext.Provider, { value: { registerTab }, children: /* @__PURE__ */ jsx162(ManualContext.Provider, { value: !!manual, children: /* @__PURE__ */ jsx162(
|
|
20397
20481
|
BaseUITabs.Root,
|
|
20398
20482
|
{
|
|
20399
20483
|
value: currentValue != null ? currentValue : null,
|
|
@@ -20407,7 +20491,7 @@ var Tabs = ({
|
|
|
20407
20491
|
};
|
|
20408
20492
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
20409
20493
|
const manual = useContext10(ManualContext);
|
|
20410
|
-
return /* @__PURE__ */
|
|
20494
|
+
return /* @__PURE__ */ jsx162(BaseUITabs.List, { activateOnFocus: !manual, ...props, css: tabButtonGroupStyles, children });
|
|
20411
20495
|
};
|
|
20412
20496
|
var TabButton = ({
|
|
20413
20497
|
children,
|
|
@@ -20418,7 +20502,7 @@ var TabButton = ({
|
|
|
20418
20502
|
useEffect32(() => {
|
|
20419
20503
|
registration == null ? void 0 : registration.registerTab(id);
|
|
20420
20504
|
}, []);
|
|
20421
|
-
return /* @__PURE__ */
|
|
20505
|
+
return /* @__PURE__ */ jsx162(BaseUITabs.Tab, { type: "button", value: id, "data-tab-id": id, ...props, css: tabButtonStyles, children });
|
|
20422
20506
|
};
|
|
20423
20507
|
var TabContent = ({
|
|
20424
20508
|
children,
|
|
@@ -20429,7 +20513,7 @@ var TabContent = ({
|
|
|
20429
20513
|
}) => {
|
|
20430
20514
|
const panelValue = tabId != null ? tabId : id;
|
|
20431
20515
|
const htmlId = id;
|
|
20432
|
-
return /* @__PURE__ */
|
|
20516
|
+
return /* @__PURE__ */ jsx162(BaseUITabs.Panel, { value: panelValue, id: htmlId, keepMounted, ...props, children });
|
|
20433
20517
|
};
|
|
20434
20518
|
|
|
20435
20519
|
// src/components/Validation/StatusBullet.styles.ts
|
|
@@ -20511,7 +20595,7 @@ var StatusDeleted = css119`
|
|
|
20511
20595
|
`;
|
|
20512
20596
|
|
|
20513
20597
|
// src/components/Validation/StatusBullet.tsx
|
|
20514
|
-
import { jsx as
|
|
20598
|
+
import { jsx as jsx163 } from "@emotion/react/jsx-runtime";
|
|
20515
20599
|
var currentStateStyles = {
|
|
20516
20600
|
Error: StatusError,
|
|
20517
20601
|
Modified: StatusModified,
|
|
@@ -20535,7 +20619,7 @@ var StatusBullet = ({
|
|
|
20535
20619
|
compact = false,
|
|
20536
20620
|
...props
|
|
20537
20621
|
}) => {
|
|
20538
|
-
const StatusComponent = () => /* @__PURE__ */
|
|
20622
|
+
const StatusComponent = () => /* @__PURE__ */ jsx163(
|
|
20539
20623
|
"span",
|
|
20540
20624
|
{
|
|
20541
20625
|
role: "status",
|
|
@@ -20546,9 +20630,9 @@ var StatusBullet = ({
|
|
|
20546
20630
|
}
|
|
20547
20631
|
);
|
|
20548
20632
|
if (compact) {
|
|
20549
|
-
return /* @__PURE__ */
|
|
20633
|
+
return /* @__PURE__ */ jsx163(StatusComponent, {});
|
|
20550
20634
|
}
|
|
20551
|
-
return /* @__PURE__ */
|
|
20635
|
+
return /* @__PURE__ */ jsx163(Tooltip, { title: message != null ? message : status, children: /* @__PURE__ */ jsx163("div", { children: /* @__PURE__ */ jsx163(StatusComponent, {}) }) });
|
|
20552
20636
|
};
|
|
20553
20637
|
export {
|
|
20554
20638
|
AVATAR_SIZE_2XL,
|
|
@@ -20724,6 +20808,7 @@ export {
|
|
|
20724
20808
|
SliderLabels,
|
|
20725
20809
|
Spinner,
|
|
20726
20810
|
StackedModal,
|
|
20811
|
+
StackedModalHeader,
|
|
20727
20812
|
StackedModalStep,
|
|
20728
20813
|
StatusBullet,
|
|
20729
20814
|
SuccessMessage,
|