@uniformdev/design-system 19.55.1-alpha.8 → 19.56.1-alpha.5
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 +210 -167
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +297 -256
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -272,7 +272,7 @@ var supports = (cssProp) => `@supports (${cssProp})`;
|
|
|
272
272
|
var cq = (size) => `@container (min-width: ${size})`;
|
|
273
273
|
|
|
274
274
|
// src/utils/replaceUnderscoreInString.ts
|
|
275
|
-
var replaceUnderscoreInString = (
|
|
275
|
+
var replaceUnderscoreInString = (title2) => (title2 == null ? void 0 : title2.includes("_")) ? title2.replaceAll("_", " ") : title2;
|
|
276
276
|
|
|
277
277
|
// src/utils/url.ts
|
|
278
278
|
var isSecureURL = (value = "") => {
|
|
@@ -2264,7 +2264,7 @@ var IntegrationHeaderSectionHexImage = ({ ...props }) => {
|
|
|
2264
2264
|
] });
|
|
2265
2265
|
};
|
|
2266
2266
|
var IntegrationHeaderSection = ({
|
|
2267
|
-
title,
|
|
2267
|
+
title: title2,
|
|
2268
2268
|
description,
|
|
2269
2269
|
icon,
|
|
2270
2270
|
docsLink,
|
|
@@ -2279,10 +2279,10 @@ var IntegrationHeaderSection = ({
|
|
|
2279
2279
|
/* @__PURE__ */ jsxs5("div", { css: IntegrationHeaderSectionTitleContainer, children: [
|
|
2280
2280
|
icon ? /* @__PURE__ */ jsxs5("div", { css: IntegrationHeaderSectionIconContainer, children: [
|
|
2281
2281
|
/* @__PURE__ */ jsx13(IntegrationHeaderSectionHexImage, { css: IntegrationHeaderSectionHexIcon }),
|
|
2282
|
-
CompIcon ? /* @__PURE__ */ jsx13(CompIcon, { css: IntegrationHeaderSectionIcon }) : icon ? /* @__PURE__ */ jsx13("img", { src: icon, alt:
|
|
2282
|
+
CompIcon ? /* @__PURE__ */ jsx13(CompIcon, { css: IntegrationHeaderSectionIcon }) : icon ? /* @__PURE__ */ jsx13("img", { src: icon, alt: title2, css: IntegrationHeaderSectionIcon }) : null
|
|
2283
2283
|
] }) : null,
|
|
2284
2284
|
/* @__PURE__ */ jsxs5("div", { css: IntegrationHeaderSectionTitleGroup, "data-testid": "integration-header-text", children: [
|
|
2285
|
-
/* @__PURE__ */ jsx13("h1", { css: IntegrationHeaderSectionTitle, children:
|
|
2285
|
+
/* @__PURE__ */ jsx13("h1", { css: IntegrationHeaderSectionTitle, children: title2 }),
|
|
2286
2286
|
badgeText ? /* @__PURE__ */ jsx13(Badge, { text: badgeText }) : null,
|
|
2287
2287
|
menu2 ? /* @__PURE__ */ jsx13("div", { children: menu2 }) : null,
|
|
2288
2288
|
docsLink ? /* @__PURE__ */ jsx13(
|
|
@@ -2382,7 +2382,7 @@ var PageHeaderSectionTitle = css15`
|
|
|
2382
2382
|
// src/components/Typography/PageHeaderSection.tsx
|
|
2383
2383
|
import { jsx as jsx14, jsxs as jsxs6 } from "@emotion/react/jsx-runtime";
|
|
2384
2384
|
var PageHeaderSection = ({
|
|
2385
|
-
title,
|
|
2385
|
+
title: title2,
|
|
2386
2386
|
desc,
|
|
2387
2387
|
children,
|
|
2388
2388
|
linkText,
|
|
@@ -2409,7 +2409,7 @@ var PageHeaderSection = ({
|
|
|
2409
2409
|
}
|
|
2410
2410
|
)
|
|
2411
2411
|
] }) : null,
|
|
2412
|
-
/* @__PURE__ */ jsx14(Heading, { level, css: PageHeaderSectionTitle, ...htmlProps, "data-testid": "page-header-section", children:
|
|
2412
|
+
/* @__PURE__ */ jsx14(Heading, { level, css: PageHeaderSectionTitle, ...htmlProps, "data-testid": "page-header-section", children: title2 }),
|
|
2413
2413
|
desc
|
|
2414
2414
|
] }),
|
|
2415
2415
|
children ? /* @__PURE__ */ jsx14("div", { css: PageHeaderSectionChildContainer, children }) : null
|
|
@@ -2504,7 +2504,7 @@ var InlineAlertParagraph = css16`
|
|
|
2504
2504
|
import { jsx as jsx15, jsxs as jsxs7 } from "@emotion/react/jsx-runtime";
|
|
2505
2505
|
var InlineAlert = ({
|
|
2506
2506
|
id,
|
|
2507
|
-
title,
|
|
2507
|
+
title: title2,
|
|
2508
2508
|
text,
|
|
2509
2509
|
arrowPosition = "left-top",
|
|
2510
2510
|
positionCss,
|
|
@@ -2512,7 +2512,7 @@ var InlineAlert = ({
|
|
|
2512
2512
|
}) => {
|
|
2513
2513
|
return /* @__PURE__ */ jsxs7("div", { role: "alert", id, css: [InlineAlertContainer, InlineAlertTriangle(arrowPosition), positionCss], children: [
|
|
2514
2514
|
/* @__PURE__ */ jsx15("button", { type: "button", "aria-controls": id, title: "close alert", css: InlineAlertCloseBtn, ...btnProps, children: /* @__PURE__ */ jsx15(Icon, { icon: CgClose, iconColor: "currentColor", size: 24 }) }),
|
|
2515
|
-
/* @__PURE__ */ jsx15(Heading, { level: 3, css: InlineAlertTitle, children:
|
|
2515
|
+
/* @__PURE__ */ jsx15(Heading, { level: 3, css: InlineAlertTitle, children: title2 }),
|
|
2516
2516
|
/* @__PURE__ */ jsx15("p", { css: InlineAlertParagraph, children: text })
|
|
2517
2517
|
] });
|
|
2518
2518
|
};
|
|
@@ -11005,13 +11005,13 @@ var TooltipArrowStyles = css17`
|
|
|
11005
11005
|
|
|
11006
11006
|
// src/components/Tooltip/Tooltip.tsx
|
|
11007
11007
|
import { Fragment as Fragment4, jsx as jsx17, jsxs as jsxs8 } from "@emotion/react/jsx-runtime";
|
|
11008
|
-
function Tooltip({ children, title, placement = "bottom", visible, ...props }) {
|
|
11008
|
+
function Tooltip({ children, title: title2, placement = "bottom", visible, ...props }) {
|
|
11009
11009
|
const tooltip = useTooltipState({ placement });
|
|
11010
|
-
return !
|
|
11010
|
+
return !title2 ? children : /* @__PURE__ */ jsxs8(Fragment4, { children: [
|
|
11011
11011
|
/* @__PURE__ */ jsx17(TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => React5.cloneElement(children, referenceProps) }),
|
|
11012
11012
|
/* @__PURE__ */ jsxs8(ReakitTooltip, { ...tooltip, ...props, css: TooltipContainer, visible: visible != null ? visible : tooltip.visible, children: [
|
|
11013
11013
|
/* @__PURE__ */ jsx17(TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
|
|
11014
|
-
|
|
11014
|
+
title2
|
|
11015
11015
|
] })
|
|
11016
11016
|
] });
|
|
11017
11017
|
}
|
|
@@ -11483,9 +11483,9 @@ var MenuTitle = css23`
|
|
|
11483
11483
|
|
|
11484
11484
|
// src/components/Menu/MenuGroup.tsx
|
|
11485
11485
|
import { jsx as jsx23, jsxs as jsxs14 } from "@emotion/react/jsx-runtime";
|
|
11486
|
-
var MenuGroup = ({ title, children }) => {
|
|
11487
|
-
return /* @__PURE__ */ jsxs14("div", { css: MenuGroupContainer(!!
|
|
11488
|
-
|
|
11486
|
+
var MenuGroup = ({ title: title2, children }) => {
|
|
11487
|
+
return /* @__PURE__ */ jsxs14("div", { css: MenuGroupContainer(!!title2), "data-testid": "menu-group", children: [
|
|
11488
|
+
title2 ? /* @__PURE__ */ jsx23("span", { css: MenuTitle, children: title2 }) : null,
|
|
11489
11489
|
children
|
|
11490
11490
|
] });
|
|
11491
11491
|
};
|
|
@@ -12208,7 +12208,7 @@ var calloutTypeDataMap = {
|
|
|
12208
12208
|
var Callout = ({
|
|
12209
12209
|
type = "info",
|
|
12210
12210
|
compact = false,
|
|
12211
|
-
title,
|
|
12211
|
+
title: title2,
|
|
12212
12212
|
children,
|
|
12213
12213
|
className,
|
|
12214
12214
|
testId
|
|
@@ -12232,7 +12232,7 @@ var Callout = ({
|
|
|
12232
12232
|
children: /* @__PURE__ */ jsxs18("div", { css: calloutInner, children: [
|
|
12233
12233
|
compact ? null : /* @__PURE__ */ jsx29("div", { css: calloutIconWrap, children: /* @__PURE__ */ jsx29(Icon2, { css: [calloutIcon, calloutTypeData.iconColor] }) }),
|
|
12234
12234
|
/* @__PURE__ */ jsxs18("div", { css: [calloutBody, compact ? calloutBodyCompact : void 0], children: [
|
|
12235
|
-
|
|
12235
|
+
title2 ? /* @__PURE__ */ jsx29("div", { css: [calloutTitle], "data-testid": "callout-title", children: title2 }) : null,
|
|
12236
12236
|
children ? /* @__PURE__ */ jsx29("div", { css: [calloutTypeData.descriptionColor], "data-testid": "callout-description", children }) : null
|
|
12237
12237
|
] })
|
|
12238
12238
|
] })
|
|
@@ -12289,7 +12289,7 @@ var CardMenu = css29`
|
|
|
12289
12289
|
// src/components/Card/Card.tsx
|
|
12290
12290
|
import { jsx as jsx30, jsxs as jsxs19 } from "@emotion/react/jsx-runtime";
|
|
12291
12291
|
var Card = ({
|
|
12292
|
-
title,
|
|
12292
|
+
title: title2,
|
|
12293
12293
|
menuItems,
|
|
12294
12294
|
children,
|
|
12295
12295
|
titleWithMarginBottom = true,
|
|
@@ -12299,7 +12299,7 @@ var Card = ({
|
|
|
12299
12299
|
...props
|
|
12300
12300
|
}) => {
|
|
12301
12301
|
return /* @__PURE__ */ jsxs19(Tag, { css: CardContainer, ...props, children: [
|
|
12302
|
-
|
|
12302
|
+
title2 ? /* @__PURE__ */ jsx30(CardTitle2, { title: title2, titleWithMarginBottom }) : null,
|
|
12303
12303
|
menuItems ? /* @__PURE__ */ jsx30(
|
|
12304
12304
|
Menu,
|
|
12305
12305
|
{
|
|
@@ -12321,8 +12321,8 @@ var Card = ({
|
|
|
12321
12321
|
children
|
|
12322
12322
|
] });
|
|
12323
12323
|
};
|
|
12324
|
-
var CardTitle2 = ({ title, titleWithMarginBottom, children }) => {
|
|
12325
|
-
const normalizeTitle = replaceUnderscoreInString(
|
|
12324
|
+
var CardTitle2 = ({ title: title2, titleWithMarginBottom, children }) => {
|
|
12325
|
+
const normalizeTitle = replaceUnderscoreInString(title2);
|
|
12326
12326
|
return /* @__PURE__ */ jsxs19(Heading, { level: 3, css: CardTitle(titleWithMarginBottom), children: [
|
|
12327
12327
|
normalizeTitle,
|
|
12328
12328
|
children
|
|
@@ -14750,14 +14750,14 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css55`
|
|
|
14750
14750
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
14751
14751
|
import { jsx as jsx66, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
14752
14752
|
var CreateTeamIntegrationTile = ({
|
|
14753
|
-
title = "Create a custom integration for your team",
|
|
14753
|
+
title: title2 = "Create a custom integration for your team",
|
|
14754
14754
|
buttonText = "Add Integration",
|
|
14755
14755
|
onClick,
|
|
14756
14756
|
asDeepLink = false,
|
|
14757
14757
|
...props
|
|
14758
14758
|
}) => {
|
|
14759
14759
|
return /* @__PURE__ */ jsxs42("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
14760
|
-
/* @__PURE__ */ jsx66("span", { css: IntegrationTileTitle, title, children:
|
|
14760
|
+
/* @__PURE__ */ jsx66("span", { css: IntegrationTileTitle, title: title2, children: title2 }),
|
|
14761
14761
|
/* @__PURE__ */ jsxs42(
|
|
14762
14762
|
Button,
|
|
14763
14763
|
{
|
|
@@ -15410,9 +15410,9 @@ var LinkListTitle = css65`
|
|
|
15410
15410
|
|
|
15411
15411
|
// src/components/LinkList/LinkList.tsx
|
|
15412
15412
|
import { jsx as jsx80, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
15413
|
-
var LinkList = ({ title, padding = "var(--spacing-md)", children, ...props }) => {
|
|
15413
|
+
var LinkList = ({ title: title2, padding = "var(--spacing-md)", children, ...props }) => {
|
|
15414
15414
|
return /* @__PURE__ */ jsxs51("div", { css: LinkListContainer(padding), ...props, children: [
|
|
15415
|
-
/* @__PURE__ */ jsx80(Heading, { level: 3, css: LinkListTitle, children:
|
|
15415
|
+
/* @__PURE__ */ jsx80(Heading, { level: 3, css: LinkListTitle, children: title2 }),
|
|
15416
15416
|
children
|
|
15417
15417
|
] });
|
|
15418
15418
|
};
|
|
@@ -15799,6 +15799,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
15799
15799
|
);
|
|
15800
15800
|
};
|
|
15801
15801
|
|
|
15802
|
+
// src/components/MediaCard/MediaCard.tsx
|
|
15803
|
+
import { useCallback as useCallback4 } from "react";
|
|
15804
|
+
|
|
15802
15805
|
// src/components/Popover/Popover.tsx
|
|
15803
15806
|
import {
|
|
15804
15807
|
Popover as ReakitPopover,
|
|
@@ -15870,7 +15873,7 @@ var Popover2 = ({
|
|
|
15870
15873
|
|
|
15871
15874
|
// src/components/MediaCard/MediaCard.styles.ts
|
|
15872
15875
|
import { css as css72 } from "@emotion/react";
|
|
15873
|
-
var
|
|
15876
|
+
var cardBase = css72`
|
|
15874
15877
|
display: flex;
|
|
15875
15878
|
flex-direction: column;
|
|
15876
15879
|
justify-content: flex-start;
|
|
@@ -15879,12 +15882,9 @@ var cardBaseStyles = css72`
|
|
|
15879
15882
|
padding: 0;
|
|
15880
15883
|
min-height: unset;
|
|
15881
15884
|
outline: none;
|
|
15882
|
-
|
|
15883
|
-
&:focus-visible {
|
|
15884
|
-
outline: 2px solid var(--primary-action-default);
|
|
15885
|
-
}
|
|
15885
|
+
cursor: pointer;
|
|
15886
15886
|
`;
|
|
15887
|
-
var
|
|
15887
|
+
var coverWrapper = css72`
|
|
15888
15888
|
position: relative;
|
|
15889
15889
|
display: flex;
|
|
15890
15890
|
align-items: center;
|
|
@@ -15894,27 +15894,43 @@ var cardBaseCoverIconWrapperStyles = css72`
|
|
|
15894
15894
|
overflow: hidden;
|
|
15895
15895
|
border-radius: 3px 3px 0 0;
|
|
15896
15896
|
padding: var(--spacing-sm);
|
|
15897
|
-
|
|
15897
|
+
outline: none;
|
|
15898
|
+
border: 0;
|
|
15898
15899
|
`;
|
|
15899
|
-
var
|
|
15900
|
+
var contentWrapper = css72`
|
|
15900
15901
|
padding: var(--spacing-sm);
|
|
15901
15902
|
`;
|
|
15902
|
-
var
|
|
15903
|
+
var title = css72`
|
|
15903
15904
|
font-size: var(--fs-sm);
|
|
15904
15905
|
color: var(--gray-500);
|
|
15905
|
-
cursor: pointer;
|
|
15906
15906
|
white-space: nowrap;
|
|
15907
15907
|
overflow: hidden;
|
|
15908
15908
|
text-overflow: ellipsis;
|
|
15909
|
+
outline: none;
|
|
15910
|
+
border: 0;
|
|
15911
|
+
background-color: transparent;
|
|
15912
|
+
|
|
15913
|
+
&:focus-visible {
|
|
15914
|
+
outline: 2px solid var(--primary-action-default);
|
|
15915
|
+
}
|
|
15909
15916
|
`;
|
|
15910
|
-
var
|
|
15917
|
+
var subtitle = css72`
|
|
15911
15918
|
font-size: var(--fs-xs);
|
|
15912
15919
|
color: var(--gray-500);
|
|
15913
15920
|
white-space: nowrap;
|
|
15914
15921
|
overflow: hidden;
|
|
15915
15922
|
text-overflow: ellipsis;
|
|
15923
|
+
outline: none;
|
|
15924
|
+
border: 0;
|
|
15925
|
+
background-color: transparent;
|
|
15916
15926
|
`;
|
|
15917
|
-
var
|
|
15927
|
+
var sideSection = css72`
|
|
15928
|
+
cursor: default;
|
|
15929
|
+
`;
|
|
15930
|
+
var menuSection = css72`
|
|
15931
|
+
cursor: default;
|
|
15932
|
+
`;
|
|
15933
|
+
var menuButton = css72`
|
|
15918
15934
|
padding: var(--spacing-2xs);
|
|
15919
15935
|
border-radius: var(--rounded-sm);
|
|
15920
15936
|
border-width: 0;
|
|
@@ -15928,25 +15944,29 @@ var cardBaseMenuButtonStyles = css72`
|
|
|
15928
15944
|
// src/components/MediaCard/MediaCard.tsx
|
|
15929
15945
|
import { jsx as jsx87, jsxs as jsxs58 } from "@emotion/react/jsx-runtime";
|
|
15930
15946
|
var MediaCard = ({
|
|
15931
|
-
title,
|
|
15932
|
-
subtitle,
|
|
15947
|
+
title: title2,
|
|
15948
|
+
subtitle: subtitle2,
|
|
15933
15949
|
infoPopover,
|
|
15934
15950
|
cover,
|
|
15935
15951
|
menuItems,
|
|
15936
|
-
sideSection,
|
|
15952
|
+
sideSection: sideSection2,
|
|
15937
15953
|
onClick,
|
|
15938
15954
|
...cardProps
|
|
15939
15955
|
}) => {
|
|
15940
|
-
|
|
15941
|
-
|
|
15942
|
-
|
|
15956
|
+
const onStopPropogation = useCallback4((e) => {
|
|
15957
|
+
e.stopPropagation();
|
|
15958
|
+
}, []);
|
|
15959
|
+
const hasMenuItems = Array.isArray(menuItems) ? menuItems.length > 0 : Boolean(menuItems);
|
|
15960
|
+
return /* @__PURE__ */ jsxs58(Card, { css: cardBase, ...cardProps, onClick, children: [
|
|
15961
|
+
/* @__PURE__ */ jsx87("button", { tabIndex: -1, css: coverWrapper, children: cover }),
|
|
15962
|
+
/* @__PURE__ */ jsx87("div", { css: contentWrapper, children: /* @__PURE__ */ jsxs58(HorizontalRhythm, { gap: "sm", justify: "space-between", align: "center", css: { width: "100%" }, children: [
|
|
15943
15963
|
/* @__PURE__ */ jsxs58(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1, minWidth: 0 }, children: [
|
|
15944
15964
|
/* @__PURE__ */ jsxs58(HorizontalRhythm, { gap: "xs", align: "center", css: { maxWidth: "100%" }, children: [
|
|
15945
|
-
/* @__PURE__ */ jsx87("
|
|
15946
|
-
!infoPopover ? null : /* @__PURE__ */ jsx87("div", { css: { display: "flex", cursor: "default" }, onClick:
|
|
15965
|
+
/* @__PURE__ */ jsx87("button", { css: title, "data-testid": "card-title", children: title2 }),
|
|
15966
|
+
!infoPopover ? null : /* @__PURE__ */ jsx87("div", { css: { display: "flex", cursor: "default" }, onClick: onStopPropogation, children: /* @__PURE__ */ jsx87(
|
|
15947
15967
|
Popover2,
|
|
15948
15968
|
{
|
|
15949
|
-
baseId: `info-of-${
|
|
15969
|
+
baseId: `info-of-${title2}`,
|
|
15950
15970
|
buttonText: "Details",
|
|
15951
15971
|
ariaLabel: "Details",
|
|
15952
15972
|
iconColor: "default",
|
|
@@ -15956,17 +15976,26 @@ var MediaCard = ({
|
|
|
15956
15976
|
}
|
|
15957
15977
|
) })
|
|
15958
15978
|
] }),
|
|
15959
|
-
|
|
15979
|
+
subtitle2 ? /* @__PURE__ */ jsx87("button", { tabIndex: -1, css: subtitle, children: subtitle2 }) : null
|
|
15960
15980
|
] }),
|
|
15961
|
-
|
|
15962
|
-
|
|
15963
|
-
|
|
15981
|
+
sideSection2 ? /* @__PURE__ */ jsx87("div", { css: sideSection, onClick: onStopPropogation, children: sideSection2 }) : null,
|
|
15982
|
+
hasMenuItems ? /* @__PURE__ */ jsx87(
|
|
15983
|
+
VerticalRhythm,
|
|
15964
15984
|
{
|
|
15965
|
-
|
|
15966
|
-
|
|
15967
|
-
|
|
15985
|
+
css: menuSection,
|
|
15986
|
+
align: "center",
|
|
15987
|
+
justify: "center",
|
|
15988
|
+
onClick: onStopPropogation,
|
|
15989
|
+
children: /* @__PURE__ */ jsx87(
|
|
15990
|
+
Menu,
|
|
15991
|
+
{
|
|
15992
|
+
menuTrigger: /* @__PURE__ */ jsx87("button", { type: "button", "aria-label": "More options", css: menuButton, children: /* @__PURE__ */ jsx87(Icon, { icon: "more-alt", iconColor: "gray", size: 16 }) }),
|
|
15993
|
+
menuLabel: `Menu of ${title2}`,
|
|
15994
|
+
children: menuItems
|
|
15995
|
+
}
|
|
15996
|
+
)
|
|
15968
15997
|
}
|
|
15969
|
-
)
|
|
15998
|
+
) : null
|
|
15970
15999
|
] }) })
|
|
15971
16000
|
] });
|
|
15972
16001
|
};
|
|
@@ -16131,10 +16160,10 @@ var LabelLeadingIcon = ({
|
|
|
16131
16160
|
isBound,
|
|
16132
16161
|
isActive,
|
|
16133
16162
|
isLocked,
|
|
16134
|
-
title,
|
|
16163
|
+
title: title2,
|
|
16135
16164
|
...props
|
|
16136
16165
|
}) => {
|
|
16137
|
-
const titleFr =
|
|
16166
|
+
const titleFr = title2 != null ? title2 : isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
16138
16167
|
return /* @__PURE__ */ jsx89(Tooltip, { title: titleFr, children: /* @__PURE__ */ jsxs60(
|
|
16139
16168
|
"button",
|
|
16140
16169
|
{
|
|
@@ -16474,11 +16503,11 @@ var ParameterDrawerHeaderTitle = css76`
|
|
|
16474
16503
|
|
|
16475
16504
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
16476
16505
|
import { jsx as jsx91, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
|
|
16477
|
-
var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
16506
|
+
var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
|
|
16478
16507
|
return /* @__PURE__ */ jsxs62("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
16479
16508
|
/* @__PURE__ */ jsxs62("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
16480
16509
|
iconBeforeTitle,
|
|
16481
|
-
/* @__PURE__ */ jsx91(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children:
|
|
16510
|
+
/* @__PURE__ */ jsx91(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title: title2, children: title2 })
|
|
16482
16511
|
] }),
|
|
16483
16512
|
children
|
|
16484
16513
|
] });
|
|
@@ -16597,6 +16626,7 @@ var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
|
16597
16626
|
};
|
|
16598
16627
|
|
|
16599
16628
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
16629
|
+
import { css as css80 } from "@emotion/react";
|
|
16600
16630
|
import { useState as useState11 } from "react";
|
|
16601
16631
|
|
|
16602
16632
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
@@ -16674,7 +16704,7 @@ var extractParameterProps = (props) => {
|
|
|
16674
16704
|
hiddenLabel,
|
|
16675
16705
|
labelLeadingIcon,
|
|
16676
16706
|
menuItems,
|
|
16677
|
-
title,
|
|
16707
|
+
title: title2,
|
|
16678
16708
|
hasOverriddenValue,
|
|
16679
16709
|
onResetOverriddenValue,
|
|
16680
16710
|
...innerProps
|
|
@@ -16692,7 +16722,7 @@ var extractParameterProps = (props) => {
|
|
|
16692
16722
|
hiddenLabel,
|
|
16693
16723
|
labelLeadingIcon,
|
|
16694
16724
|
menuItems,
|
|
16695
|
-
title,
|
|
16725
|
+
title: title2,
|
|
16696
16726
|
hasOverriddenValue,
|
|
16697
16727
|
onResetOverriddenValue
|
|
16698
16728
|
},
|
|
@@ -16712,9 +16742,10 @@ var ParameterShell = ({
|
|
|
16712
16742
|
errorTestId,
|
|
16713
16743
|
captionTestId,
|
|
16714
16744
|
menuItems,
|
|
16745
|
+
actionItems,
|
|
16715
16746
|
hasOverriddenValue,
|
|
16716
16747
|
onResetOverriddenValue,
|
|
16717
|
-
title,
|
|
16748
|
+
title: title2,
|
|
16718
16749
|
children,
|
|
16719
16750
|
...props
|
|
16720
16751
|
}) => {
|
|
@@ -16722,17 +16753,29 @@ var ParameterShell = ({
|
|
|
16722
16753
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
16723
16754
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
16724
16755
|
return /* @__PURE__ */ jsxs65("div", { css: inputContainer2, ...props, children: [
|
|
16725
|
-
hiddenLabel ||
|
|
16756
|
+
hiddenLabel || title2 ? null : /* @__PURE__ */ jsxs65(ParameterLabel, { id, css: labelText2, children: [
|
|
16726
16757
|
labelLeadingIcon != null ? labelLeadingIcon : null,
|
|
16727
16758
|
label,
|
|
16728
16759
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
16729
16760
|
] }),
|
|
16730
|
-
!
|
|
16761
|
+
!title2 ? null : /* @__PURE__ */ jsxs65(ParameterLabel, { id, asSpan: true, children: [
|
|
16731
16762
|
labelLeadingIcon != null ? labelLeadingIcon : null,
|
|
16732
|
-
|
|
16763
|
+
title2,
|
|
16733
16764
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
16734
16765
|
] }),
|
|
16735
16766
|
/* @__PURE__ */ jsxs65("div", { css: inputWrapper, children: [
|
|
16767
|
+
actionItems ? /* @__PURE__ */ jsx96(
|
|
16768
|
+
"div",
|
|
16769
|
+
{
|
|
16770
|
+
css: [
|
|
16771
|
+
inputMenu,
|
|
16772
|
+
menuItems ? css80`
|
|
16773
|
+
right: var(--spacing-md);
|
|
16774
|
+
` : void 0
|
|
16775
|
+
],
|
|
16776
|
+
children: actionItems
|
|
16777
|
+
}
|
|
16778
|
+
) : null,
|
|
16736
16779
|
menuItems ? /* @__PURE__ */ jsx96(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
16737
16780
|
/* @__PURE__ */ jsx96(
|
|
16738
16781
|
ParameterShellContext.Provider,
|
|
@@ -16969,7 +17012,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16969
17012
|
};
|
|
16970
17013
|
|
|
16971
17014
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
16972
|
-
import { css as
|
|
17015
|
+
import { css as css84 } from "@emotion/react";
|
|
16973
17016
|
import { ListItemNode, ListNode as ListNode2 } from "@lexical/list";
|
|
16974
17017
|
import {
|
|
16975
17018
|
CODE,
|
|
@@ -17121,23 +17164,23 @@ function DisableStylesPlugin() {
|
|
|
17121
17164
|
}
|
|
17122
17165
|
|
|
17123
17166
|
// src/components/ParameterInputs/rich-text/editorStyles.ts
|
|
17124
|
-
import { css as
|
|
17125
|
-
var textBold =
|
|
17167
|
+
import { css as css81 } from "@emotion/css";
|
|
17168
|
+
var textBold = css81`
|
|
17126
17169
|
font-weight: 700;
|
|
17127
17170
|
`;
|
|
17128
|
-
var textItalic =
|
|
17171
|
+
var textItalic = css81`
|
|
17129
17172
|
font-style: italic;
|
|
17130
17173
|
`;
|
|
17131
|
-
var textUnderline =
|
|
17174
|
+
var textUnderline = css81`
|
|
17132
17175
|
text-decoration: underline;
|
|
17133
17176
|
`;
|
|
17134
|
-
var textStrikethrough =
|
|
17177
|
+
var textStrikethrough = css81`
|
|
17135
17178
|
text-decoration: line-through;
|
|
17136
17179
|
`;
|
|
17137
|
-
var textUnderlineStrikethrough =
|
|
17180
|
+
var textUnderlineStrikethrough = css81`
|
|
17138
17181
|
text-decoration: underline line-through;
|
|
17139
17182
|
`;
|
|
17140
|
-
var textCode =
|
|
17183
|
+
var textCode = css81`
|
|
17141
17184
|
background-color: var(--gray-100);
|
|
17142
17185
|
border-radius: var(--rounded-sm);
|
|
17143
17186
|
display: inline-block;
|
|
@@ -17148,68 +17191,68 @@ var textCode = css80`
|
|
|
17148
17191
|
padding-left: var(--spacing-xs);
|
|
17149
17192
|
padding-right: var(--spacing-xs);
|
|
17150
17193
|
`;
|
|
17151
|
-
var textSuperscript =
|
|
17194
|
+
var textSuperscript = css81`
|
|
17152
17195
|
vertical-align: super;
|
|
17153
17196
|
font-size: smaller;
|
|
17154
17197
|
`;
|
|
17155
|
-
var textSubscript =
|
|
17198
|
+
var textSubscript = css81`
|
|
17156
17199
|
vertical-align: sub;
|
|
17157
17200
|
font-size: smaller;
|
|
17158
17201
|
`;
|
|
17159
|
-
var linkElement =
|
|
17202
|
+
var linkElement = css81`
|
|
17160
17203
|
${link}
|
|
17161
17204
|
${linkColorDefault}
|
|
17162
17205
|
text-decoration: underline;
|
|
17163
17206
|
`;
|
|
17164
|
-
var h12 =
|
|
17207
|
+
var h12 = css81`
|
|
17165
17208
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.7rem);
|
|
17166
17209
|
`;
|
|
17167
|
-
var h22 =
|
|
17210
|
+
var h22 = css81`
|
|
17168
17211
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.6rem);
|
|
17169
17212
|
`;
|
|
17170
|
-
var h32 =
|
|
17213
|
+
var h32 = css81`
|
|
17171
17214
|
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
17172
17215
|
`;
|
|
17173
|
-
var h42 =
|
|
17216
|
+
var h42 = css81`
|
|
17174
17217
|
font-size: clamp(1.15rem, var(--fluid-font-base), 1.25rem);
|
|
17175
17218
|
`;
|
|
17176
|
-
var h52 =
|
|
17219
|
+
var h52 = css81`
|
|
17177
17220
|
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
17178
17221
|
`;
|
|
17179
|
-
var h62 =
|
|
17222
|
+
var h62 = css81`
|
|
17180
17223
|
font-size: var(--fs-base);
|
|
17181
17224
|
`;
|
|
17182
|
-
var heading1Element =
|
|
17225
|
+
var heading1Element = css81`
|
|
17183
17226
|
${h12}
|
|
17184
17227
|
${commonHeadingAttr(true)}
|
|
17185
17228
|
${commonLineHeight}
|
|
17186
17229
|
`;
|
|
17187
|
-
var heading2Element =
|
|
17230
|
+
var heading2Element = css81`
|
|
17188
17231
|
${h22}
|
|
17189
17232
|
${commonHeadingAttr(true)}
|
|
17190
17233
|
${commonLineHeight}
|
|
17191
17234
|
`;
|
|
17192
|
-
var heading3Element =
|
|
17235
|
+
var heading3Element = css81`
|
|
17193
17236
|
${h32}
|
|
17194
17237
|
${commonHeadingAttr(true)}
|
|
17195
17238
|
${commonLineHeight}
|
|
17196
17239
|
`;
|
|
17197
|
-
var heading4Element =
|
|
17240
|
+
var heading4Element = css81`
|
|
17198
17241
|
${h42}
|
|
17199
17242
|
${commonHeadingAttr(true)}
|
|
17200
17243
|
${commonLineHeight}
|
|
17201
17244
|
`;
|
|
17202
|
-
var heading5Element =
|
|
17245
|
+
var heading5Element = css81`
|
|
17203
17246
|
${h52}
|
|
17204
17247
|
${commonHeadingAttr(true)}
|
|
17205
17248
|
${commonLineHeight}
|
|
17206
17249
|
`;
|
|
17207
|
-
var heading6Element =
|
|
17250
|
+
var heading6Element = css81`
|
|
17208
17251
|
${h62}
|
|
17209
17252
|
${commonHeadingAttr(true)}
|
|
17210
17253
|
${commonLineHeight}
|
|
17211
17254
|
`;
|
|
17212
|
-
var paragraphElement =
|
|
17255
|
+
var paragraphElement = css81`
|
|
17213
17256
|
line-height: 1.5;
|
|
17214
17257
|
margin-bottom: var(--spacing-base);
|
|
17215
17258
|
|
|
@@ -17217,7 +17260,7 @@ var paragraphElement = css80`
|
|
|
17217
17260
|
margin-bottom: 0;
|
|
17218
17261
|
}
|
|
17219
17262
|
`;
|
|
17220
|
-
var orderedListElement =
|
|
17263
|
+
var orderedListElement = css81`
|
|
17221
17264
|
${commonLineHeight}
|
|
17222
17265
|
display: block;
|
|
17223
17266
|
list-style: decimal;
|
|
@@ -17246,7 +17289,7 @@ var orderedListElement = css80`
|
|
|
17246
17289
|
}
|
|
17247
17290
|
}
|
|
17248
17291
|
`;
|
|
17249
|
-
var unorderedListElement =
|
|
17292
|
+
var unorderedListElement = css81`
|
|
17250
17293
|
${commonLineHeight}
|
|
17251
17294
|
display: block;
|
|
17252
17295
|
list-style: disc;
|
|
@@ -17267,13 +17310,13 @@ var unorderedListElement = css80`
|
|
|
17267
17310
|
}
|
|
17268
17311
|
}
|
|
17269
17312
|
`;
|
|
17270
|
-
var listItemElement =
|
|
17313
|
+
var listItemElement = css81`
|
|
17271
17314
|
margin-left: var(--spacing-md);
|
|
17272
17315
|
`;
|
|
17273
|
-
var nestedListItemElement =
|
|
17316
|
+
var nestedListItemElement = css81`
|
|
17274
17317
|
list-style-type: none;
|
|
17275
17318
|
`;
|
|
17276
|
-
var blockquoteElement =
|
|
17319
|
+
var blockquoteElement = css81`
|
|
17277
17320
|
border-left: 0.25rem solid var(--gray-300);
|
|
17278
17321
|
color: var(--gray-600);
|
|
17279
17322
|
margin-bottom: var(--spacing-base);
|
|
@@ -17283,7 +17326,7 @@ var blockquoteElement = css80`
|
|
|
17283
17326
|
margin-bottom: 0;
|
|
17284
17327
|
}
|
|
17285
17328
|
`;
|
|
17286
|
-
var codeElement =
|
|
17329
|
+
var codeElement = css81`
|
|
17287
17330
|
background-color: var(--gray-100);
|
|
17288
17331
|
border-radius: var(--rounded-sm);
|
|
17289
17332
|
display: block;
|
|
@@ -17300,7 +17343,7 @@ var codeElement = css80`
|
|
|
17300
17343
|
`;
|
|
17301
17344
|
|
|
17302
17345
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
17303
|
-
import { css as
|
|
17346
|
+
import { css as css82 } from "@emotion/react";
|
|
17304
17347
|
import { useLexicalComposerContext as useLexicalComposerContext2 } from "@lexical/react/LexicalComposerContext";
|
|
17305
17348
|
import { NodeEventPlugin } from "@lexical/react/LexicalNodeEventPlugin";
|
|
17306
17349
|
import { addClassNamesToElement, isHTMLAnchorElement, mergeRegister as mergeRegister2 } from "@lexical/utils";
|
|
@@ -17316,7 +17359,7 @@ import {
|
|
|
17316
17359
|
ElementNode as ElementNode2,
|
|
17317
17360
|
FOCUS_COMMAND
|
|
17318
17361
|
} from "lexical";
|
|
17319
|
-
import { useCallback as
|
|
17362
|
+
import { useCallback as useCallback5, useEffect as useEffect11, useRef as useRef6, useState as useState12 } from "react";
|
|
17320
17363
|
|
|
17321
17364
|
// src/components/ParameterInputs/rich-text/utils.ts
|
|
17322
17365
|
import { $isAtNodeEnd } from "@lexical/selection";
|
|
@@ -17641,16 +17684,16 @@ var OPEN_LINK_NODE_MODAL_COMMAND = createCommand(
|
|
|
17641
17684
|
);
|
|
17642
17685
|
var LINK_POPOVER_OFFSET_X = 0;
|
|
17643
17686
|
var LINK_POPOVER_OFFSET_Y = 8;
|
|
17644
|
-
var linkPopover =
|
|
17687
|
+
var linkPopover = css82`
|
|
17645
17688
|
position: absolute;
|
|
17646
17689
|
z-index: 5;
|
|
17647
17690
|
`;
|
|
17648
|
-
var linkPopoverContainer =
|
|
17691
|
+
var linkPopoverContainer = css82`
|
|
17649
17692
|
${Popover};
|
|
17650
17693
|
align-items: center;
|
|
17651
17694
|
display: flex;
|
|
17652
17695
|
`;
|
|
17653
|
-
var linkPopoverAnchor =
|
|
17696
|
+
var linkPopoverAnchor = css82`
|
|
17654
17697
|
${link}
|
|
17655
17698
|
${linkColorDefault}
|
|
17656
17699
|
`;
|
|
@@ -17738,7 +17781,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17738
17781
|
)
|
|
17739
17782
|
);
|
|
17740
17783
|
}, [editor, onConnectLink]);
|
|
17741
|
-
const maybeShowLinkToolbar =
|
|
17784
|
+
const maybeShowLinkToolbar = useCallback5(() => {
|
|
17742
17785
|
if (!editor.isEditable()) {
|
|
17743
17786
|
return;
|
|
17744
17787
|
}
|
|
@@ -17897,7 +17940,7 @@ function ListIndentPlugin({ maxDepth }) {
|
|
|
17897
17940
|
}
|
|
17898
17941
|
|
|
17899
17942
|
// src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
|
|
17900
|
-
import { css as
|
|
17943
|
+
import { css as css83 } from "@emotion/react";
|
|
17901
17944
|
import { $createCodeNode } from "@lexical/code";
|
|
17902
17945
|
import {
|
|
17903
17946
|
$isListNode as $isListNode2,
|
|
@@ -17919,9 +17962,9 @@ import {
|
|
|
17919
17962
|
FORMAT_TEXT_COMMAND,
|
|
17920
17963
|
SELECTION_CHANGE_COMMAND
|
|
17921
17964
|
} from "lexical";
|
|
17922
|
-
import { useCallback as
|
|
17965
|
+
import { useCallback as useCallback6, useEffect as useEffect13, useMemo as useMemo3, useState as useState13 } from "react";
|
|
17923
17966
|
import { Fragment as Fragment18, jsx as jsx103, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
17924
|
-
var toolbar =
|
|
17967
|
+
var toolbar = css83`
|
|
17925
17968
|
background: var(--gray-50);
|
|
17926
17969
|
border-radius: var(--rounded-base);
|
|
17927
17970
|
display: flex;
|
|
@@ -17933,7 +17976,7 @@ var toolbar = css82`
|
|
|
17933
17976
|
top: calc(var(--spacing-sm) * -2);
|
|
17934
17977
|
z-index: 10;
|
|
17935
17978
|
`;
|
|
17936
|
-
var toolbarGroup =
|
|
17979
|
+
var toolbarGroup = css83`
|
|
17937
17980
|
display: flex;
|
|
17938
17981
|
gap: var(--spacing-xs);
|
|
17939
17982
|
position: relative;
|
|
@@ -17949,7 +17992,7 @@ var toolbarGroup = css82`
|
|
|
17949
17992
|
width: 1px;
|
|
17950
17993
|
}
|
|
17951
17994
|
`;
|
|
17952
|
-
var richTextToolbarButton =
|
|
17995
|
+
var richTextToolbarButton = css83`
|
|
17953
17996
|
align-items: center;
|
|
17954
17997
|
appearance: none;
|
|
17955
17998
|
border: 0;
|
|
@@ -17962,13 +18005,13 @@ var richTextToolbarButton = css82`
|
|
|
17962
18005
|
min-width: 32px;
|
|
17963
18006
|
padding: 0 var(--spacing-sm);
|
|
17964
18007
|
`;
|
|
17965
|
-
var richTextToolbarButtonActive =
|
|
18008
|
+
var richTextToolbarButtonActive = css83`
|
|
17966
18009
|
background: var(--gray-200);
|
|
17967
18010
|
`;
|
|
17968
|
-
var toolbarIcon =
|
|
18011
|
+
var toolbarIcon = css83`
|
|
17969
18012
|
color: inherit;
|
|
17970
18013
|
`;
|
|
17971
|
-
var toolbarChevron =
|
|
18014
|
+
var toolbarChevron = css83`
|
|
17972
18015
|
margin-left: var(--spacing-xs);
|
|
17973
18016
|
`;
|
|
17974
18017
|
var RichTextToolbarIcon = ({ icon }) => {
|
|
@@ -18023,7 +18066,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18023
18066
|
}
|
|
18024
18067
|
});
|
|
18025
18068
|
};
|
|
18026
|
-
const updateToolbar =
|
|
18069
|
+
const updateToolbar = useCallback6(() => {
|
|
18027
18070
|
const selection = $getSelection3();
|
|
18028
18071
|
if (!$isRangeSelection3(selection)) {
|
|
18029
18072
|
return;
|
|
@@ -18382,18 +18425,18 @@ var ParameterRichText = ({
|
|
|
18382
18425
|
}
|
|
18383
18426
|
);
|
|
18384
18427
|
};
|
|
18385
|
-
var editorWrapper =
|
|
18428
|
+
var editorWrapper = css84`
|
|
18386
18429
|
display: flex;
|
|
18387
18430
|
flex-flow: column;
|
|
18388
18431
|
flex-grow: 1;
|
|
18389
18432
|
`;
|
|
18390
|
-
var editorContainer =
|
|
18433
|
+
var editorContainer = css84`
|
|
18391
18434
|
display: flex;
|
|
18392
18435
|
flex-flow: column;
|
|
18393
18436
|
flex-grow: 1;
|
|
18394
18437
|
position: relative;
|
|
18395
18438
|
`;
|
|
18396
|
-
var editorPlaceholder =
|
|
18439
|
+
var editorPlaceholder = css84`
|
|
18397
18440
|
color: var(--gray-500);
|
|
18398
18441
|
font-style: italic;
|
|
18399
18442
|
/* 1px is added to make sure caret is clearly visible when field is focused
|
|
@@ -18404,7 +18447,7 @@ var editorPlaceholder = css83`
|
|
|
18404
18447
|
top: var(--spacing-xs);
|
|
18405
18448
|
user-select: none;
|
|
18406
18449
|
`;
|
|
18407
|
-
var editorInput =
|
|
18450
|
+
var editorInput = css84`
|
|
18408
18451
|
background: var(--white);
|
|
18409
18452
|
border: 1px solid var(--white);
|
|
18410
18453
|
border-radius: var(--rounded-sm);
|
|
@@ -18647,8 +18690,8 @@ var ParameterToggleInner = forwardRef17(
|
|
|
18647
18690
|
);
|
|
18648
18691
|
|
|
18649
18692
|
// src/components/ProgressBar/ProgressBar.styles.ts
|
|
18650
|
-
import { css as
|
|
18651
|
-
var container =
|
|
18693
|
+
import { css as css85 } from "@emotion/react";
|
|
18694
|
+
var container = css85`
|
|
18652
18695
|
background: var(--gray-50);
|
|
18653
18696
|
margin-block: var(--spacing-sm);
|
|
18654
18697
|
position: relative;
|
|
@@ -18658,14 +18701,14 @@ var container = css84`
|
|
|
18658
18701
|
border: solid 1px var(--gray-300);
|
|
18659
18702
|
`;
|
|
18660
18703
|
var themeMap = {
|
|
18661
|
-
primary:
|
|
18704
|
+
primary: css85`
|
|
18662
18705
|
background-color: var(--accent-light);
|
|
18663
18706
|
`,
|
|
18664
|
-
secondary:
|
|
18707
|
+
secondary: css85`
|
|
18665
18708
|
background-color: var(--brand-secondary-5);
|
|
18666
18709
|
`
|
|
18667
18710
|
};
|
|
18668
|
-
var bar =
|
|
18711
|
+
var bar = css85`
|
|
18669
18712
|
position: absolute;
|
|
18670
18713
|
inset: 0;
|
|
18671
18714
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
@@ -18703,21 +18746,21 @@ function ProgressBar({ className, current, max, theme = "primary" }) {
|
|
|
18703
18746
|
}
|
|
18704
18747
|
|
|
18705
18748
|
// src/components/ProgressList/ProgressList.tsx
|
|
18706
|
-
import { css as
|
|
18749
|
+
import { css as css87 } from "@emotion/react";
|
|
18707
18750
|
import { CgCheckO as CgCheckO2 } from "@react-icons/all-files/cg/CgCheckO";
|
|
18708
18751
|
import { CgRadioCheck } from "@react-icons/all-files/cg/CgRadioCheck";
|
|
18709
18752
|
import { CgRecord } from "@react-icons/all-files/cg/CgRecord";
|
|
18710
18753
|
import { useMemo as useMemo4 } from "react";
|
|
18711
18754
|
|
|
18712
18755
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
18713
|
-
import { css as
|
|
18714
|
-
var progressListStyles =
|
|
18756
|
+
import { css as css86 } from "@emotion/react";
|
|
18757
|
+
var progressListStyles = css86`
|
|
18715
18758
|
display: flex;
|
|
18716
18759
|
flex-direction: column;
|
|
18717
18760
|
gap: var(--spacing-sm);
|
|
18718
18761
|
list-style-type: none;
|
|
18719
18762
|
`;
|
|
18720
|
-
var progressListItemStyles =
|
|
18763
|
+
var progressListItemStyles = css86`
|
|
18721
18764
|
display: flex;
|
|
18722
18765
|
gap: var(--spacing-base);
|
|
18723
18766
|
align-items: center;
|
|
@@ -18772,12 +18815,12 @@ var ProgressListItem = ({
|
|
|
18772
18815
|
}, [status, error]);
|
|
18773
18816
|
const statusStyles = useMemo4(() => {
|
|
18774
18817
|
if (error) {
|
|
18775
|
-
return errorLevel === "caution" ?
|
|
18818
|
+
return errorLevel === "caution" ? css87`
|
|
18776
18819
|
color: rgb(161, 98, 7);
|
|
18777
18820
|
& svg {
|
|
18778
18821
|
color: rgb(250, 204, 21);
|
|
18779
18822
|
}
|
|
18780
|
-
` :
|
|
18823
|
+
` : css87`
|
|
18781
18824
|
color: rgb(185, 28, 28);
|
|
18782
18825
|
& svg {
|
|
18783
18826
|
color: var(--brand-primary-2);
|
|
@@ -18785,13 +18828,13 @@ var ProgressListItem = ({
|
|
|
18785
18828
|
`;
|
|
18786
18829
|
}
|
|
18787
18830
|
const colorPerStatus = {
|
|
18788
|
-
completed:
|
|
18831
|
+
completed: css87`
|
|
18789
18832
|
opacity: 0.75;
|
|
18790
18833
|
`,
|
|
18791
|
-
inProgress:
|
|
18834
|
+
inProgress: css87`
|
|
18792
18835
|
-webkit-text-stroke-width: thin;
|
|
18793
18836
|
`,
|
|
18794
|
-
queued:
|
|
18837
|
+
queued: css87`
|
|
18795
18838
|
opacity: 0.5;
|
|
18796
18839
|
`
|
|
18797
18840
|
};
|
|
@@ -18807,13 +18850,13 @@ var ProgressListItem = ({
|
|
|
18807
18850
|
};
|
|
18808
18851
|
|
|
18809
18852
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
18810
|
-
import { css as
|
|
18853
|
+
import { css as css89 } from "@emotion/react";
|
|
18811
18854
|
import { CgCheck as CgCheck4 } from "@react-icons/all-files/cg/CgCheck";
|
|
18812
|
-
import { useCallback as
|
|
18855
|
+
import { useCallback as useCallback7, useMemo as useMemo5 } from "react";
|
|
18813
18856
|
|
|
18814
18857
|
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
18815
|
-
import { css as
|
|
18816
|
-
var segmentedControlStyles =
|
|
18858
|
+
import { css as css88 } from "@emotion/react";
|
|
18859
|
+
var segmentedControlStyles = css88`
|
|
18817
18860
|
--segmented-control-rounded-value: var(--rounded-base);
|
|
18818
18861
|
--segmented-control-border-width: 1px;
|
|
18819
18862
|
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
@@ -18832,14 +18875,14 @@ var segmentedControlStyles = css87`
|
|
|
18832
18875
|
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
18833
18876
|
font-size: var(--fs-xs);
|
|
18834
18877
|
`;
|
|
18835
|
-
var segmentedControlVerticalStyles =
|
|
18878
|
+
var segmentedControlVerticalStyles = css88`
|
|
18836
18879
|
flex-direction: column;
|
|
18837
18880
|
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
18838
18881
|
var(--segmented-control-rounded-value) 0 0;
|
|
18839
18882
|
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
18840
18883
|
var(--segmented-control-rounded-value);
|
|
18841
18884
|
`;
|
|
18842
|
-
var segmentedControlItemStyles =
|
|
18885
|
+
var segmentedControlItemStyles = css88`
|
|
18843
18886
|
&:first-of-type label {
|
|
18844
18887
|
border-radius: var(--segmented-control-first-border-radius);
|
|
18845
18888
|
}
|
|
@@ -18847,10 +18890,10 @@ var segmentedControlItemStyles = css87`
|
|
|
18847
18890
|
border-radius: var(--segmented-control-last-border-radius);
|
|
18848
18891
|
}
|
|
18849
18892
|
`;
|
|
18850
|
-
var segmentedControlInputStyles =
|
|
18893
|
+
var segmentedControlInputStyles = css88`
|
|
18851
18894
|
${accessibleHidden}
|
|
18852
18895
|
`;
|
|
18853
|
-
var segmentedControlLabelStyles = (checked, disabled) =>
|
|
18896
|
+
var segmentedControlLabelStyles = (checked, disabled) => css88`
|
|
18854
18897
|
position: relative;
|
|
18855
18898
|
display: flex;
|
|
18856
18899
|
align-items: center;
|
|
@@ -18917,20 +18960,20 @@ var segmentedControlLabelStyles = (checked, disabled) => css87`
|
|
|
18917
18960
|
`}
|
|
18918
18961
|
}
|
|
18919
18962
|
`;
|
|
18920
|
-
var segmentedControlLabelIconOnlyStyles =
|
|
18963
|
+
var segmentedControlLabelIconOnlyStyles = css88`
|
|
18921
18964
|
padding-inline: 0.5em;
|
|
18922
18965
|
`;
|
|
18923
|
-
var segmentedControlLabelCheckStyles =
|
|
18966
|
+
var segmentedControlLabelCheckStyles = css88`
|
|
18924
18967
|
opacity: 0.5;
|
|
18925
18968
|
`;
|
|
18926
|
-
var segmentedControlLabelContentStyles =
|
|
18969
|
+
var segmentedControlLabelContentStyles = css88`
|
|
18927
18970
|
display: flex;
|
|
18928
18971
|
align-items: center;
|
|
18929
18972
|
justify-content: center;
|
|
18930
18973
|
gap: var(--spacing-sm);
|
|
18931
18974
|
height: 100%;
|
|
18932
18975
|
`;
|
|
18933
|
-
var segmentedControlLabelTextStyles =
|
|
18976
|
+
var segmentedControlLabelTextStyles = css88``;
|
|
18934
18977
|
|
|
18935
18978
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
18936
18979
|
import { jsx as jsx110, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
|
|
@@ -18945,7 +18988,7 @@ var SegmentedControl = ({
|
|
|
18945
18988
|
size = "md",
|
|
18946
18989
|
...props
|
|
18947
18990
|
}) => {
|
|
18948
|
-
const onOptionChange =
|
|
18991
|
+
const onOptionChange = useCallback7(
|
|
18949
18992
|
(event) => {
|
|
18950
18993
|
if (event.target.checked) {
|
|
18951
18994
|
onChange == null ? void 0 : onChange(options[parseInt(event.target.value)].value);
|
|
@@ -18955,9 +18998,9 @@ var SegmentedControl = ({
|
|
|
18955
18998
|
);
|
|
18956
18999
|
const sizeStyles = useMemo5(() => {
|
|
18957
19000
|
const map = {
|
|
18958
|
-
sm:
|
|
18959
|
-
md:
|
|
18960
|
-
lg:
|
|
19001
|
+
sm: css89({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
19002
|
+
md: css89({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
19003
|
+
lg: css89({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
|
|
18961
19004
|
};
|
|
18962
19005
|
return map[size];
|
|
18963
19006
|
}, [size]);
|
|
@@ -19014,12 +19057,12 @@ var SegmentedControl = ({
|
|
|
19014
19057
|
};
|
|
19015
19058
|
|
|
19016
19059
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
19017
|
-
import { css as
|
|
19060
|
+
import { css as css90, keyframes as keyframes4 } from "@emotion/react";
|
|
19018
19061
|
var lightFadingOut = keyframes4`
|
|
19019
19062
|
from { opacity: 0.1; }
|
|
19020
19063
|
to { opacity: 0.025; }
|
|
19021
19064
|
`;
|
|
19022
|
-
var skeletonStyles =
|
|
19065
|
+
var skeletonStyles = css90`
|
|
19023
19066
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
19024
19067
|
background-color: var(--gray-900);
|
|
19025
19068
|
`;
|
|
@@ -19056,8 +19099,8 @@ var Skeleton = ({
|
|
|
19056
19099
|
import * as React23 from "react";
|
|
19057
19100
|
|
|
19058
19101
|
// src/components/Switch/Switch.styles.ts
|
|
19059
|
-
import { css as
|
|
19060
|
-
var SwitchInputContainer =
|
|
19102
|
+
import { css as css91 } from "@emotion/react";
|
|
19103
|
+
var SwitchInputContainer = css91`
|
|
19061
19104
|
cursor: pointer;
|
|
19062
19105
|
display: inline-block;
|
|
19063
19106
|
position: relative;
|
|
@@ -19066,7 +19109,7 @@ var SwitchInputContainer = css90`
|
|
|
19066
19109
|
vertical-align: middle;
|
|
19067
19110
|
user-select: none;
|
|
19068
19111
|
`;
|
|
19069
|
-
var SwitchInput =
|
|
19112
|
+
var SwitchInput = css91`
|
|
19070
19113
|
appearance: none;
|
|
19071
19114
|
border-radius: var(--rounded-full);
|
|
19072
19115
|
background-color: var(--white);
|
|
@@ -19104,7 +19147,7 @@ var SwitchInput = css90`
|
|
|
19104
19147
|
cursor: not-allowed;
|
|
19105
19148
|
}
|
|
19106
19149
|
`;
|
|
19107
|
-
var SwitchInputDisabled =
|
|
19150
|
+
var SwitchInputDisabled = css91`
|
|
19108
19151
|
opacity: var(--opacity-50);
|
|
19109
19152
|
cursor: not-allowed;
|
|
19110
19153
|
|
|
@@ -19112,7 +19155,7 @@ var SwitchInputDisabled = css90`
|
|
|
19112
19155
|
cursor: not-allowed;
|
|
19113
19156
|
}
|
|
19114
19157
|
`;
|
|
19115
|
-
var SwitchInputLabel =
|
|
19158
|
+
var SwitchInputLabel = css91`
|
|
19116
19159
|
align-items: center;
|
|
19117
19160
|
color: var(--brand-secondary-1);
|
|
19118
19161
|
display: inline-flex;
|
|
@@ -19134,7 +19177,7 @@ var SwitchInputLabel = css90`
|
|
|
19134
19177
|
top: 0;
|
|
19135
19178
|
}
|
|
19136
19179
|
`;
|
|
19137
|
-
var SwitchText =
|
|
19180
|
+
var SwitchText = css91`
|
|
19138
19181
|
color: var(--gray-500);
|
|
19139
19182
|
font-size: var(--fs-sm);
|
|
19140
19183
|
padding-inline: var(--spacing-2xl) 0;
|
|
@@ -19163,8 +19206,8 @@ var Switch = React23.forwardRef(
|
|
|
19163
19206
|
import * as React24 from "react";
|
|
19164
19207
|
|
|
19165
19208
|
// src/components/Table/Table.styles.ts
|
|
19166
|
-
import { css as
|
|
19167
|
-
var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) =>
|
|
19209
|
+
import { css as css92 } from "@emotion/react";
|
|
19210
|
+
var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css92`
|
|
19168
19211
|
border-bottom: 1px solid var(--gray-400);
|
|
19169
19212
|
border-collapse: collapse;
|
|
19170
19213
|
min-width: 100%;
|
|
@@ -19175,15 +19218,15 @@ var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css91
|
|
|
19175
19218
|
padding: ${cellPadding};
|
|
19176
19219
|
}
|
|
19177
19220
|
`;
|
|
19178
|
-
var tableHead =
|
|
19221
|
+
var tableHead = css92`
|
|
19179
19222
|
background: var(--gray-100);
|
|
19180
19223
|
color: var(--brand-secondary-1);
|
|
19181
19224
|
text-align: left;
|
|
19182
19225
|
`;
|
|
19183
|
-
var tableRow =
|
|
19226
|
+
var tableRow = css92`
|
|
19184
19227
|
border-bottom: 1px solid var(--gray-200);
|
|
19185
19228
|
`;
|
|
19186
|
-
var tableCellHead =
|
|
19229
|
+
var tableCellHead = css92`
|
|
19187
19230
|
font-size: var(--fs-sm);
|
|
19188
19231
|
text-transform: uppercase;
|
|
19189
19232
|
font-weight: var(--fw-bold);
|
|
@@ -19237,8 +19280,8 @@ import {
|
|
|
19237
19280
|
} from "reakit/Tab";
|
|
19238
19281
|
|
|
19239
19282
|
// src/components/Tabs/Tabs.styles.ts
|
|
19240
|
-
import { css as
|
|
19241
|
-
var tabButtonStyles =
|
|
19283
|
+
import { css as css93 } from "@emotion/react";
|
|
19284
|
+
var tabButtonStyles = css93`
|
|
19242
19285
|
align-items: center;
|
|
19243
19286
|
border: 0;
|
|
19244
19287
|
height: 2.5rem;
|
|
@@ -19255,7 +19298,7 @@ var tabButtonStyles = css92`
|
|
|
19255
19298
|
box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
|
|
19256
19299
|
}
|
|
19257
19300
|
`;
|
|
19258
|
-
var tabButtonGroupStyles =
|
|
19301
|
+
var tabButtonGroupStyles = css93`
|
|
19259
19302
|
display: flex;
|
|
19260
19303
|
gap: var(--spacing-base);
|
|
19261
19304
|
border-bottom: 1px solid var(--gray-300);
|
|
@@ -19307,8 +19350,8 @@ var TabContent = ({ children, ...props }) => {
|
|
|
19307
19350
|
};
|
|
19308
19351
|
|
|
19309
19352
|
// src/components/Validation/StatusBullet.styles.ts
|
|
19310
|
-
import { css as
|
|
19311
|
-
var StatusBulletContainer =
|
|
19353
|
+
import { css as css94 } from "@emotion/react";
|
|
19354
|
+
var StatusBulletContainer = css94`
|
|
19312
19355
|
align-items: center;
|
|
19313
19356
|
align-self: center;
|
|
19314
19357
|
color: var(--gray-500);
|
|
@@ -19325,33 +19368,33 @@ var StatusBulletContainer = css93`
|
|
|
19325
19368
|
display: block;
|
|
19326
19369
|
}
|
|
19327
19370
|
`;
|
|
19328
|
-
var StatusBulletBase =
|
|
19371
|
+
var StatusBulletBase = css94`
|
|
19329
19372
|
font-size: var(--fs-sm);
|
|
19330
19373
|
&:before {
|
|
19331
19374
|
width: var(--fs-xs);
|
|
19332
19375
|
height: var(--fs-xs);
|
|
19333
19376
|
}
|
|
19334
19377
|
`;
|
|
19335
|
-
var StatusBulletSmall =
|
|
19378
|
+
var StatusBulletSmall = css94`
|
|
19336
19379
|
font-size: var(--fs-xs);
|
|
19337
19380
|
&:before {
|
|
19338
19381
|
width: var(--fs-xxs);
|
|
19339
19382
|
height: var(--fs-xxs);
|
|
19340
19383
|
}
|
|
19341
19384
|
`;
|
|
19342
|
-
var StatusDraft =
|
|
19385
|
+
var StatusDraft = css94`
|
|
19343
19386
|
&:before {
|
|
19344
19387
|
background: var(--white);
|
|
19345
19388
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
19346
19389
|
}
|
|
19347
19390
|
`;
|
|
19348
|
-
var StatusModified =
|
|
19391
|
+
var StatusModified = css94`
|
|
19349
19392
|
&:before {
|
|
19350
19393
|
background: linear-gradient(to right, var(--white) 50%, var(--primary-action-default) 50% 100%);
|
|
19351
19394
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
19352
19395
|
}
|
|
19353
19396
|
`;
|
|
19354
|
-
var StatusError =
|
|
19397
|
+
var StatusError = css94`
|
|
19355
19398
|
color: var(--error);
|
|
19356
19399
|
&:before {
|
|
19357
19400
|
/* TODO: replace this with an svg icon */
|
|
@@ -19364,12 +19407,12 @@ var StatusError = css93`
|
|
|
19364
19407
|
);
|
|
19365
19408
|
}
|
|
19366
19409
|
`;
|
|
19367
|
-
var StatusPublished =
|
|
19410
|
+
var StatusPublished = css94`
|
|
19368
19411
|
&:before {
|
|
19369
19412
|
background: var(--primary-action-default);
|
|
19370
19413
|
}
|
|
19371
19414
|
`;
|
|
19372
|
-
var StatusOrphan =
|
|
19415
|
+
var StatusOrphan = css94`
|
|
19373
19416
|
&:before {
|
|
19374
19417
|
background: var(--brand-secondary-5);
|
|
19375
19418
|
}
|