@uniformdev/design-system 19.36.1-alpha.7 → 19.37.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 +40 -41
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +40 -41
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -2122,7 +2122,7 @@ var IntegrationHeaderSection = ({
|
|
|
2122
2122
|
/* @__PURE__ */ jsx13(IntegrationHeaderSectionHexImage, { css: IntegrationHeaderSectionHexIcon }),
|
|
2123
2123
|
CompIcon ? /* @__PURE__ */ jsx13(CompIcon, { css: IntegrationHeaderSectionIcon }) : icon ? /* @__PURE__ */ jsx13("img", { src: icon, alt: title, css: IntegrationHeaderSectionIcon }) : null
|
|
2124
2124
|
] }) : null,
|
|
2125
|
-
/* @__PURE__ */ jsxs5("div", { css: IntegrationHeaderSectionTitleGroup, "data-
|
|
2125
|
+
/* @__PURE__ */ jsxs5("div", { css: IntegrationHeaderSectionTitleGroup, "data-testid": "integration-header-text", children: [
|
|
2126
2126
|
/* @__PURE__ */ jsx13("h1", { css: IntegrationHeaderSectionTitle, children: title }),
|
|
2127
2127
|
badgeText ? /* @__PURE__ */ jsx13(Badge, { text: badgeText }) : null,
|
|
2128
2128
|
menu2 ? /* @__PURE__ */ jsx13("div", { children: menu2 }) : null,
|
|
@@ -2144,7 +2144,7 @@ var IntegrationHeaderSection = ({
|
|
|
2144
2144
|
{
|
|
2145
2145
|
css: IntegrationHeaderSectionText,
|
|
2146
2146
|
htmlContent: description,
|
|
2147
|
-
"data-
|
|
2147
|
+
"data-testid": "integration-description"
|
|
2148
2148
|
}
|
|
2149
2149
|
) : null
|
|
2150
2150
|
] }),
|
|
@@ -2249,7 +2249,7 @@ var PageHeaderSection = ({
|
|
|
2249
2249
|
}
|
|
2250
2250
|
)
|
|
2251
2251
|
] }) : null,
|
|
2252
|
-
/* @__PURE__ */ jsx14(Heading, { level, css: PageHeaderSectionTitle, ...htmlProps, "data-
|
|
2252
|
+
/* @__PURE__ */ jsx14(Heading, { level, css: PageHeaderSectionTitle, ...htmlProps, "data-testid": "page-header-section", children: title }),
|
|
2253
2253
|
desc
|
|
2254
2254
|
] }),
|
|
2255
2255
|
children ? /* @__PURE__ */ jsx14("div", { css: PageHeaderSectionChildContainer, children }) : null
|
|
@@ -10804,7 +10804,7 @@ var AnimationFile = ({
|
|
|
10804
10804
|
Lottie,
|
|
10805
10805
|
{
|
|
10806
10806
|
role: "graphics-symbol",
|
|
10807
|
-
"data-
|
|
10807
|
+
"data-testid": "graphic-loader",
|
|
10808
10808
|
"aria-label": label,
|
|
10809
10809
|
autoPlay: autoplay,
|
|
10810
10810
|
loop,
|
|
@@ -11113,7 +11113,7 @@ var UniformBadge = ({
|
|
|
11113
11113
|
viewBox: "0 0 51 52",
|
|
11114
11114
|
fill: "none",
|
|
11115
11115
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11116
|
-
"data-
|
|
11116
|
+
"data-testid": "uniform-Badge",
|
|
11117
11117
|
css: [SVG, theme === "dark" ? SVGDark : SVGLight],
|
|
11118
11118
|
...props,
|
|
11119
11119
|
children: [
|
|
@@ -11149,7 +11149,7 @@ var UniformLogo = ({
|
|
|
11149
11149
|
theme = "light",
|
|
11150
11150
|
...props
|
|
11151
11151
|
}) => {
|
|
11152
|
-
return /* @__PURE__ */ jsx21("div", { "data-
|
|
11152
|
+
return /* @__PURE__ */ jsx21("div", { "data-testid": "uniform-Logo", children: /* @__PURE__ */ jsxs13(
|
|
11153
11153
|
"svg",
|
|
11154
11154
|
{
|
|
11155
11155
|
width: "153",
|
|
@@ -11322,7 +11322,7 @@ var MenuTitle = css23`
|
|
|
11322
11322
|
// src/components/Menu/MenuGroup.tsx
|
|
11323
11323
|
import { jsx as jsx23, jsxs as jsxs14 } from "@emotion/react/jsx-runtime";
|
|
11324
11324
|
var MenuGroup = ({ title, children }) => {
|
|
11325
|
-
return /* @__PURE__ */ jsxs14("div", { css: MenuGroupContainer, "data-
|
|
11325
|
+
return /* @__PURE__ */ jsxs14("div", { css: MenuGroupContainer, "data-testid": "menu-group", children: [
|
|
11326
11326
|
/* @__PURE__ */ jsx23("span", { css: MenuTitle, children: title }),
|
|
11327
11327
|
children
|
|
11328
11328
|
] });
|
|
@@ -11507,7 +11507,7 @@ var MenuItem = React9.forwardRef(
|
|
|
11507
11507
|
{
|
|
11508
11508
|
ref,
|
|
11509
11509
|
type: "button",
|
|
11510
|
-
"data-
|
|
11510
|
+
"data-testid": "button-menu",
|
|
11511
11511
|
...menuState,
|
|
11512
11512
|
...resolvedProps,
|
|
11513
11513
|
css: [menuItem(textColor, active), typeof className === "object" ? className : void 0],
|
|
@@ -11641,7 +11641,7 @@ var ButtonWithMenu = ({
|
|
|
11641
11641
|
"div",
|
|
11642
11642
|
{
|
|
11643
11643
|
css: [ButtonWithMenuContainer, disabled ? buttonDisabledTheme[buttonType] : buttonTheme[buttonType]],
|
|
11644
|
-
"data-
|
|
11644
|
+
"data-testid": "multioptions-button",
|
|
11645
11645
|
children: [
|
|
11646
11646
|
/* @__PURE__ */ jsx27(
|
|
11647
11647
|
"button",
|
|
@@ -11650,7 +11650,7 @@ var ButtonWithMenu = ({
|
|
|
11650
11650
|
css: ButtonWithMenuBtn,
|
|
11651
11651
|
disabled,
|
|
11652
11652
|
onClick: onButtonClick,
|
|
11653
|
-
"data-
|
|
11653
|
+
"data-testid": "multioptions-button-main",
|
|
11654
11654
|
...buttonProps,
|
|
11655
11655
|
children: buttonText
|
|
11656
11656
|
}
|
|
@@ -11660,7 +11660,7 @@ var ButtonWithMenu = ({
|
|
|
11660
11660
|
{
|
|
11661
11661
|
menuLabel: "buttonMenu",
|
|
11662
11662
|
placement,
|
|
11663
|
-
menuTrigger: /* @__PURE__ */ jsx27("div", { css: ButtonWithMenuIcon, "data-
|
|
11663
|
+
menuTrigger: /* @__PURE__ */ jsx27("div", { css: ButtonWithMenuIcon, "data-testid": "multioptions-button-call-menu", children: /* @__PURE__ */ jsx27(Icon, { icon: CgChevronDown, size: 24, iconColor: "currentColor" }) }),
|
|
11664
11664
|
children
|
|
11665
11665
|
}
|
|
11666
11666
|
)
|
|
@@ -11963,8 +11963,8 @@ var Callout = ({
|
|
|
11963
11963
|
children: /* @__PURE__ */ jsxs18("div", { css: calloutInner, children: [
|
|
11964
11964
|
compact ? null : /* @__PURE__ */ jsx29("div", { css: calloutIconWrap, children: /* @__PURE__ */ jsx29(Icon2, { css: [calloutIcon, calloutTypeData.iconColor] }) }),
|
|
11965
11965
|
/* @__PURE__ */ jsxs18("div", { css: [calloutBody, compact ? calloutBodyCompact : void 0], children: [
|
|
11966
|
-
title ? /* @__PURE__ */ jsx29("div", { css: [calloutTitle], "data-
|
|
11967
|
-
children ? /* @__PURE__ */ jsx29("div", { css: [calloutTypeData.descriptionColor], "data-
|
|
11966
|
+
title ? /* @__PURE__ */ jsx29("div", { css: [calloutTitle], "data-testid": "callout-title", children: title }) : null,
|
|
11967
|
+
children ? /* @__PURE__ */ jsx29("div", { css: [calloutTypeData.descriptionColor], "data-testid": "callout-description", children }) : null
|
|
11968
11968
|
] })
|
|
11969
11969
|
] })
|
|
11970
11970
|
}
|
|
@@ -12042,7 +12042,7 @@ var Card = ({
|
|
|
12042
12042
|
type: "button",
|
|
12043
12043
|
disabled,
|
|
12044
12044
|
css: CardMenu,
|
|
12045
|
-
"data-
|
|
12045
|
+
"data-testid": menuButtonTestId != null ? menuButtonTestId : "list-card-menu",
|
|
12046
12046
|
children: /* @__PURE__ */ jsx30(Icon, { icon: CgMoreAlt, iconColor: "currentColor", size: 32 })
|
|
12047
12047
|
}
|
|
12048
12048
|
),
|
|
@@ -13015,7 +13015,7 @@ var DrawerInner = ({
|
|
|
13015
13015
|
tabIndex: -1,
|
|
13016
13016
|
"aria-labelledby": headerId,
|
|
13017
13017
|
css: drawerStyles(bgColor),
|
|
13018
|
-
"data-
|
|
13018
|
+
"data-testid": testId,
|
|
13019
13019
|
children: [
|
|
13020
13020
|
/* @__PURE__ */ jsxs26("div", { css: headerWrapperStyles, children: [
|
|
13021
13021
|
header ? /* @__PURE__ */ jsx43("div", { id: headerId, css: drawerHeaderStyles, children: header }) : null,
|
|
@@ -13200,7 +13200,7 @@ var CaptionText = (dynamicSize) => css43`
|
|
|
13200
13200
|
// src/components/Input/Caption.tsx
|
|
13201
13201
|
import { jsx as jsx46 } from "@emotion/react/jsx-runtime";
|
|
13202
13202
|
var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
|
|
13203
|
-
return /* @__PURE__ */ jsx46("small", { css: CaptionText(dynamicSize), "data-
|
|
13203
|
+
return /* @__PURE__ */ jsx46("small", { css: CaptionText(dynamicSize), "data-testid": testId, ...props, children });
|
|
13204
13204
|
};
|
|
13205
13205
|
|
|
13206
13206
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
@@ -13313,7 +13313,7 @@ var ErrorText = css45`
|
|
|
13313
13313
|
// src/components/Input/ErrorMessage.tsx
|
|
13314
13314
|
import { jsx as jsx48, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
|
|
13315
13315
|
var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
13316
|
-
return message ? /* @__PURE__ */ jsxs30("span", { role: "alert", css: ErrorText, "data-
|
|
13316
|
+
return message ? /* @__PURE__ */ jsxs30("span", { role: "alert", css: ErrorText, "data-testid": testId, ...otherProps, children: [
|
|
13317
13317
|
/* @__PURE__ */ jsx48("span", { children: /* @__PURE__ */ jsx48(Icon, { icon: MdWarning, size: "1rem", iconColor: "currentColor" }) }),
|
|
13318
13318
|
message
|
|
13319
13319
|
] }) : null;
|
|
@@ -13394,7 +13394,7 @@ var InfoIcon2 = css47`
|
|
|
13394
13394
|
// src/components/Input/InfoMessage.tsx
|
|
13395
13395
|
import { jsx as jsx50, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
|
|
13396
13396
|
var InfoMessage = ({ message, testId, ...props }) => {
|
|
13397
|
-
return message ? /* @__PURE__ */ jsxs32("span", { role: "status", css: InfoText, "data-
|
|
13397
|
+
return message ? /* @__PURE__ */ jsxs32("span", { role: "status", css: InfoText, "data-testid": testId, ...props, children: [
|
|
13398
13398
|
/* @__PURE__ */ jsx50("span", { children: /* @__PURE__ */ jsx50(Icon, { css: InfoIcon2, icon: MdInfoOutline, size: "1rem", iconColor: "currentColor" }) }),
|
|
13399
13399
|
message
|
|
13400
13400
|
] }) : null;
|
|
@@ -13411,7 +13411,7 @@ var Label = ({ children, className, testId, ...props }) => {
|
|
|
13411
13411
|
{
|
|
13412
13412
|
css: [labelText, typeof className === "object" ? className : void 0],
|
|
13413
13413
|
className: typeof className === "string" ? className : "",
|
|
13414
|
-
"data-
|
|
13414
|
+
"data-testid": testId,
|
|
13415
13415
|
...props,
|
|
13416
13416
|
children
|
|
13417
13417
|
}
|
|
@@ -13436,7 +13436,7 @@ var WarningIcon = css48`
|
|
|
13436
13436
|
// src/components/Input/WarningMessage.tsx
|
|
13437
13437
|
import { jsx as jsx52, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
13438
13438
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
13439
|
-
return message ? /* @__PURE__ */ jsxs33("span", { role: "status", css: WarningText, "data-
|
|
13439
|
+
return message ? /* @__PURE__ */ jsxs33("span", { role: "status", css: WarningText, "data-testid": testId, ...props, children: [
|
|
13440
13440
|
/* @__PURE__ */ jsx52("span", { children: /* @__PURE__ */ jsx52(Icon, { css: WarningIcon, icon: MdWarning2, size: "1rem", iconColor: "currentColor" }) }),
|
|
13441
13441
|
message
|
|
13442
13442
|
] }) : null;
|
|
@@ -13462,7 +13462,7 @@ var Input = React16.forwardRef(
|
|
|
13462
13462
|
classNameLabel,
|
|
13463
13463
|
...props
|
|
13464
13464
|
}, ref) => {
|
|
13465
|
-
return /* @__PURE__ */ jsxs34("div", { css: inputContainer, "data-
|
|
13465
|
+
return /* @__PURE__ */ jsxs34("div", { css: inputContainer, "data-testid": containerTestId ? containerTestId : "container-input-field", children: [
|
|
13466
13466
|
showLabel ? /* @__PURE__ */ jsx53(
|
|
13467
13467
|
Label,
|
|
13468
13468
|
{
|
|
@@ -13912,7 +13912,7 @@ var InputToggle = React17.forwardRef(
|
|
|
13912
13912
|
Label,
|
|
13913
13913
|
{
|
|
13914
13914
|
css: [inputToggleLabel, disabled ? inputDisabled : void 0],
|
|
13915
|
-
"data-
|
|
13915
|
+
"data-testid": testId ? testId : "input-toggle",
|
|
13916
13916
|
children: [
|
|
13917
13917
|
/* @__PURE__ */ jsx58(
|
|
13918
13918
|
"input",
|
|
@@ -13965,7 +13965,7 @@ var SuccessIcon2 = css51`
|
|
|
13965
13965
|
// src/components/Input/SuccessMessage.tsx
|
|
13966
13966
|
import { jsx as jsx60, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
13967
13967
|
var SuccessMessage = ({ message, testId, ...props }) => {
|
|
13968
|
-
return message ? /* @__PURE__ */ jsxs38("span", { role: "status", css: SuccessText, "data-
|
|
13968
|
+
return message ? /* @__PURE__ */ jsxs38("span", { role: "status", css: SuccessText, "data-testid": testId, ...props, children: [
|
|
13969
13969
|
/* @__PURE__ */ jsx60("span", { children: /* @__PURE__ */ jsx60(Icon, { css: SuccessIcon2, icon: CgCheckO, size: "1rem", iconColor: "currentColor" }) }),
|
|
13970
13970
|
message
|
|
13971
13971
|
] }) : null;
|
|
@@ -14240,8 +14240,8 @@ var EditTeamIntegrationTile = ({
|
|
|
14240
14240
|
"data-testid": "configure-integration-container",
|
|
14241
14241
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
14242
14242
|
children: [
|
|
14243
|
-
/* @__PURE__ */ jsx65(ResolveIcon, { icon, name, "data-
|
|
14244
|
-
/* @__PURE__ */ jsx65("span", { css: IntegrationTileName, "data-
|
|
14243
|
+
/* @__PURE__ */ jsx65(ResolveIcon, { icon, name, "data-testid": "integration-logo" }),
|
|
14244
|
+
/* @__PURE__ */ jsx65("span", { css: IntegrationTileName, "data-testid": "integration-card-name", children: name }),
|
|
14245
14245
|
!isPublic ? /* @__PURE__ */ jsx65(IntegrationCustomBadge, {}) : null,
|
|
14246
14246
|
canEdit ? /* @__PURE__ */ jsx65(
|
|
14247
14247
|
Button,
|
|
@@ -14436,7 +14436,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
14436
14436
|
{
|
|
14437
14437
|
src: iconSrc,
|
|
14438
14438
|
alt: name,
|
|
14439
|
-
"data-
|
|
14439
|
+
"data-testid": "integration-modal-icon",
|
|
14440
14440
|
css: IntegrationModalImage,
|
|
14441
14441
|
...imgProps
|
|
14442
14442
|
}
|
|
@@ -14644,7 +14644,7 @@ var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
|
14644
14644
|
/* @__PURE__ */ jsx73(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
14645
14645
|
/* @__PURE__ */ jsx73("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs47("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
14646
14646
|
icon ? /* @__PURE__ */ jsx73(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
14647
|
-
/* @__PURE__ */ jsx73(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-
|
|
14647
|
+
/* @__PURE__ */ jsx73(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-testid": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
14648
14648
|
menu2 ? /* @__PURE__ */ jsxs47("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
14649
14649
|
menu2,
|
|
14650
14650
|
" "
|
|
@@ -14938,7 +14938,7 @@ var ScrollableListInputItem = ({
|
|
|
14938
14938
|
active ? ScrollableListItemActive : void 0
|
|
14939
14939
|
],
|
|
14940
14940
|
...props,
|
|
14941
|
-
children: /* @__PURE__ */ jsxs51("label", { "data-
|
|
14941
|
+
children: /* @__PURE__ */ jsxs51("label", { "data-testid": labelTestId, css: ScrollableListInputLabel, children: [
|
|
14942
14942
|
/* @__PURE__ */ jsxs51("span", { css: ScrollableListInputText, children: [
|
|
14943
14943
|
icon,
|
|
14944
14944
|
label
|
|
@@ -14951,7 +14951,7 @@ var ScrollableListInputItem = ({
|
|
|
14951
14951
|
iconColor: "currentColor",
|
|
14952
14952
|
css: [ScrollableListIcon, active ? ScrollableListIconVisible : void 0],
|
|
14953
14953
|
size: 24,
|
|
14954
|
-
"data-
|
|
14954
|
+
"data-testid": "check-mark",
|
|
14955
14955
|
"data-test-active": active
|
|
14956
14956
|
}
|
|
14957
14957
|
)
|
|
@@ -15042,7 +15042,7 @@ var loadingDot = css66`
|
|
|
15042
15042
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
15043
15043
|
import { jsx as jsx80, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
15044
15044
|
var LoadingIndicator = ({ ...props }) => {
|
|
15045
|
-
return /* @__PURE__ */ jsxs53("div", { role: "alert", css: loader, "data-
|
|
15045
|
+
return /* @__PURE__ */ jsxs53("div", { role: "alert", css: loader, "data-testid": "loading-indicator", ...props, children: [
|
|
15046
15046
|
/* @__PURE__ */ jsx80("span", { css: loadingDot }),
|
|
15047
15047
|
/* @__PURE__ */ jsx80("span", { css: loadingDot }),
|
|
15048
15048
|
/* @__PURE__ */ jsx80("span", { css: loadingDot })
|
|
@@ -15147,14 +15147,13 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
15147
15147
|
return /* @__PURE__ */ jsx81(
|
|
15148
15148
|
"svg",
|
|
15149
15149
|
{
|
|
15150
|
-
"data-testid": "svg",
|
|
15151
15150
|
viewBox: "0 0 38 38",
|
|
15152
15151
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15153
15152
|
width: width != null ? width : 40,
|
|
15154
15153
|
height: height != null ? height : 40,
|
|
15155
15154
|
stroke: "currentColor",
|
|
15156
15155
|
...props,
|
|
15157
|
-
"data-
|
|
15156
|
+
"data-testid": "loading-icon",
|
|
15158
15157
|
children: /* @__PURE__ */ jsx81("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs54("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
15159
15158
|
/* @__PURE__ */ jsx81("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
15160
15159
|
/* @__PURE__ */ jsx81("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx81(
|
|
@@ -15904,7 +15903,7 @@ var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx89(Tooltip, { title:
|
|
|
15904
15903
|
import { Fragment as Fragment11, jsx as jsx90, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
|
|
15905
15904
|
var ParameterImage = forwardRef11((props, ref) => {
|
|
15906
15905
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
15907
|
-
return /* @__PURE__ */ jsx90(ParameterShell, { "data-
|
|
15906
|
+
return /* @__PURE__ */ jsx90(ParameterShell, { "data-testid": "parameter-image", ...shellProps, children: /* @__PURE__ */ jsx90(ParameterImageInner, { ref, ...innerProps }) });
|
|
15908
15907
|
});
|
|
15909
15908
|
var BrokenImage = ({ ...props }) => {
|
|
15910
15909
|
return /* @__PURE__ */ jsxs61(
|
|
@@ -16021,7 +16020,7 @@ import { forwardRef as forwardRef12 } from "react";
|
|
|
16021
16020
|
import { jsx as jsx91 } from "@emotion/react/jsx-runtime";
|
|
16022
16021
|
var ParameterInput = forwardRef12((props, ref) => {
|
|
16023
16022
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16024
|
-
return /* @__PURE__ */ jsx91(ParameterShell, { "data-
|
|
16023
|
+
return /* @__PURE__ */ jsx91(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx91(ParameterInputInner, { ref, ...innerProps }) });
|
|
16025
16024
|
});
|
|
16026
16025
|
var ParameterInputInner = forwardRef12(
|
|
16027
16026
|
({ ...props }, ref) => {
|
|
@@ -16050,7 +16049,7 @@ var ParameterLink = forwardRef13(
|
|
|
16050
16049
|
return /* @__PURE__ */ jsx92(
|
|
16051
16050
|
ParameterShell,
|
|
16052
16051
|
{
|
|
16053
|
-
"data-
|
|
16052
|
+
"data-testid": "link-parameter-editor",
|
|
16054
16053
|
...shellProps,
|
|
16055
16054
|
label: innerProps.value ? shellProps.label : "",
|
|
16056
16055
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
@@ -16145,7 +16144,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16145
16144
|
id: nameIdField,
|
|
16146
16145
|
name: nameIdField,
|
|
16147
16146
|
label,
|
|
16148
|
-
"data-
|
|
16147
|
+
"data-testid": "name-field",
|
|
16149
16148
|
autoComplete: "off",
|
|
16150
16149
|
"data-af": "true",
|
|
16151
16150
|
onBlur,
|
|
@@ -16165,7 +16164,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16165
16164
|
name: publicIdFieldName,
|
|
16166
16165
|
label: "Public ID",
|
|
16167
16166
|
disabled: Boolean(id) || isReadonly,
|
|
16168
|
-
"data-
|
|
16167
|
+
"data-testid": "public-id-field",
|
|
16169
16168
|
autoComplete: "off",
|
|
16170
16169
|
onBlur,
|
|
16171
16170
|
onChange: onPublicIdChange,
|
|
@@ -17570,7 +17569,7 @@ var ParameterRichText = ({
|
|
|
17570
17569
|
return /* @__PURE__ */ jsxs66(
|
|
17571
17570
|
ParameterShell,
|
|
17572
17571
|
{
|
|
17573
|
-
"data-
|
|
17572
|
+
"data-testid": "parameter-input",
|
|
17574
17573
|
label,
|
|
17575
17574
|
hiddenLabel,
|
|
17576
17575
|
labelLeadingIcon,
|
|
@@ -17802,7 +17801,7 @@ import { forwardRef as forwardRef15 } from "react";
|
|
|
17802
17801
|
import { jsx as jsx99 } from "@emotion/react/jsx-runtime";
|
|
17803
17802
|
var ParameterTextarea = forwardRef15((props, ref) => {
|
|
17804
17803
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
17805
|
-
return /* @__PURE__ */ jsx99(ParameterShell, { "data-
|
|
17804
|
+
return /* @__PURE__ */ jsx99(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx99(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
17806
17805
|
});
|
|
17807
17806
|
var ParameterTextareaInner = forwardRef15(({ ...props }, ref) => {
|
|
17808
17807
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
@@ -17855,7 +17854,7 @@ var Popover2 = ({
|
|
|
17855
17854
|
}) => {
|
|
17856
17855
|
const popover = usePopoverState({ placement });
|
|
17857
17856
|
return /* @__PURE__ */ jsxs69(Fragment16, { children: [
|
|
17858
|
-
/* @__PURE__ */ jsxs69(PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, "data-
|
|
17857
|
+
/* @__PURE__ */ jsxs69(PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, "data-testid": testId, children: [
|
|
17859
17858
|
/* @__PURE__ */ jsx101(Icon, { icon, iconColor, size: iconSize }),
|
|
17860
17859
|
/* @__PURE__ */ jsx101("span", { hidden: true, children: buttonText })
|
|
17861
17860
|
] }),
|
|
@@ -18135,7 +18134,7 @@ var SegmentedControl = ({
|
|
|
18135
18134
|
Tooltip,
|
|
18136
18135
|
{
|
|
18137
18136
|
title: isDisabled || !option.tooltip ? "" : option.tooltip,
|
|
18138
|
-
children: /* @__PURE__ */ jsx103("div", { css: segmentedControlItemStyles, "data-
|
|
18137
|
+
children: /* @__PURE__ */ jsx103("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ jsxs71(
|
|
18139
18138
|
"label",
|
|
18140
18139
|
{
|
|
18141
18140
|
css: [
|
package/dist/index.d.mts
CHANGED
|
@@ -20334,7 +20334,7 @@ type ButtonWithMenuProps = ActionButtonsProps & React$1.ButtonHTMLAttributes<HTM
|
|
|
20334
20334
|
className="flex gap-2 items-center"
|
|
20335
20335
|
data-testid="save-menu-item-button"
|
|
20336
20336
|
>
|
|
20337
|
-
<span className="whitespace-nowrap" data-
|
|
20337
|
+
<span className="whitespace-nowrap" data-testid="save-menu-item">
|
|
20338
20338
|
Save
|
|
20339
20339
|
</span>
|
|
20340
20340
|
</MenuItem>
|
|
@@ -20359,7 +20359,7 @@ interface CalloutProps {
|
|
|
20359
20359
|
children?: React$1.ReactNode;
|
|
20360
20360
|
/** sets additional css classes or emotion styles on the callout */
|
|
20361
20361
|
className?: SerializedStyles | string;
|
|
20362
|
-
/** sets the data-
|
|
20362
|
+
/** sets the data-testid on the callout element */
|
|
20363
20363
|
testId?: string;
|
|
20364
20364
|
}
|
|
20365
20365
|
/**
|
|
@@ -20379,7 +20379,7 @@ type CardProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
|
20379
20379
|
children?: React$1.ReactNode;
|
|
20380
20380
|
/** (optional) sets options for a dropdown menu */
|
|
20381
20381
|
menuItems?: JSX.Element;
|
|
20382
|
-
/** (optional) sets the data-
|
|
20382
|
+
/** (optional) sets the data-testid attribute on the button element
|
|
20383
20383
|
* @default 'list-card-menu'
|
|
20384
20384
|
*/
|
|
20385
20385
|
menuButtonTestId?: string;
|
|
@@ -20713,7 +20713,7 @@ type CaptionProps = React$1.HTMLAttributes<HTMLElement> & {
|
|
|
20713
20713
|
children: React$1.ReactNode;
|
|
20714
20714
|
/** Makes the font size relative to the inherited font size */
|
|
20715
20715
|
dynamicSize?: boolean;
|
|
20716
|
-
/** sets data-
|
|
20716
|
+
/** sets data-testid attribute for test automation */
|
|
20717
20717
|
testId?: string;
|
|
20718
20718
|
};
|
|
20719
20719
|
/**
|
|
@@ -21267,7 +21267,7 @@ type ScrollableItemProps = {
|
|
|
21267
21267
|
icon?: React.ReactElement;
|
|
21268
21268
|
/**sets the label value */
|
|
21269
21269
|
label: string | React.ReactElement;
|
|
21270
|
-
/** sets a data-
|
|
21270
|
+
/** sets a data-testid on the label */
|
|
21271
21271
|
labelTestId?: string;
|
|
21272
21272
|
/** recommended to use a form input element of type radio or checkbox */
|
|
21273
21273
|
children: React.ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -20334,7 +20334,7 @@ type ButtonWithMenuProps = ActionButtonsProps & React$1.ButtonHTMLAttributes<HTM
|
|
|
20334
20334
|
className="flex gap-2 items-center"
|
|
20335
20335
|
data-testid="save-menu-item-button"
|
|
20336
20336
|
>
|
|
20337
|
-
<span className="whitespace-nowrap" data-
|
|
20337
|
+
<span className="whitespace-nowrap" data-testid="save-menu-item">
|
|
20338
20338
|
Save
|
|
20339
20339
|
</span>
|
|
20340
20340
|
</MenuItem>
|
|
@@ -20359,7 +20359,7 @@ interface CalloutProps {
|
|
|
20359
20359
|
children?: React$1.ReactNode;
|
|
20360
20360
|
/** sets additional css classes or emotion styles on the callout */
|
|
20361
20361
|
className?: SerializedStyles | string;
|
|
20362
|
-
/** sets the data-
|
|
20362
|
+
/** sets the data-testid on the callout element */
|
|
20363
20363
|
testId?: string;
|
|
20364
20364
|
}
|
|
20365
20365
|
/**
|
|
@@ -20379,7 +20379,7 @@ type CardProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
|
20379
20379
|
children?: React$1.ReactNode;
|
|
20380
20380
|
/** (optional) sets options for a dropdown menu */
|
|
20381
20381
|
menuItems?: JSX.Element;
|
|
20382
|
-
/** (optional) sets the data-
|
|
20382
|
+
/** (optional) sets the data-testid attribute on the button element
|
|
20383
20383
|
* @default 'list-card-menu'
|
|
20384
20384
|
*/
|
|
20385
20385
|
menuButtonTestId?: string;
|
|
@@ -20713,7 +20713,7 @@ type CaptionProps = React$1.HTMLAttributes<HTMLElement> & {
|
|
|
20713
20713
|
children: React$1.ReactNode;
|
|
20714
20714
|
/** Makes the font size relative to the inherited font size */
|
|
20715
20715
|
dynamicSize?: boolean;
|
|
20716
|
-
/** sets data-
|
|
20716
|
+
/** sets data-testid attribute for test automation */
|
|
20717
20717
|
testId?: string;
|
|
20718
20718
|
};
|
|
20719
20719
|
/**
|
|
@@ -21267,7 +21267,7 @@ type ScrollableItemProps = {
|
|
|
21267
21267
|
icon?: React.ReactElement;
|
|
21268
21268
|
/**sets the label value */
|
|
21269
21269
|
label: string | React.ReactElement;
|
|
21270
|
-
/** sets a data-
|
|
21270
|
+
/** sets a data-testid on the label */
|
|
21271
21271
|
labelTestId?: string;
|
|
21272
21272
|
/** recommended to use a form input element of type radio or checkbox */
|
|
21273
21273
|
children: React.ReactNode;
|
package/dist/index.js
CHANGED
|
@@ -2360,7 +2360,7 @@ var IntegrationHeaderSection = ({
|
|
|
2360
2360
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(IntegrationHeaderSectionHexImage, { css: IntegrationHeaderSectionHexIcon }),
|
|
2361
2361
|
CompIcon ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(CompIcon, { css: IntegrationHeaderSectionIcon }) : icon ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("img", { src: icon, alt: title, css: IntegrationHeaderSectionIcon }) : null
|
|
2362
2362
|
] }) : null,
|
|
2363
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { css: IntegrationHeaderSectionTitleGroup, "data-
|
|
2363
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { css: IntegrationHeaderSectionTitleGroup, "data-testid": "integration-header-text", children: [
|
|
2364
2364
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h1", { css: IntegrationHeaderSectionTitle, children: title }),
|
|
2365
2365
|
badgeText ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Badge, { text: badgeText }) : null,
|
|
2366
2366
|
menu2 ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { children: menu2 }) : null,
|
|
@@ -2382,7 +2382,7 @@ var IntegrationHeaderSection = ({
|
|
|
2382
2382
|
{
|
|
2383
2383
|
css: IntegrationHeaderSectionText,
|
|
2384
2384
|
htmlContent: description,
|
|
2385
|
-
"data-
|
|
2385
|
+
"data-testid": "integration-description"
|
|
2386
2386
|
}
|
|
2387
2387
|
) : null
|
|
2388
2388
|
] }),
|
|
@@ -2487,7 +2487,7 @@ var PageHeaderSection = ({
|
|
|
2487
2487
|
}
|
|
2488
2488
|
)
|
|
2489
2489
|
] }) : null,
|
|
2490
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Heading, { level, css: PageHeaderSectionTitle, ...htmlProps, "data-
|
|
2490
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Heading, { level, css: PageHeaderSectionTitle, ...htmlProps, "data-testid": "page-header-section", children: title }),
|
|
2491
2491
|
desc
|
|
2492
2492
|
] }),
|
|
2493
2493
|
children ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { css: PageHeaderSectionChildContainer, children }) : null
|
|
@@ -11042,7 +11042,7 @@ var AnimationFile = ({
|
|
|
11042
11042
|
import_lottie_react.default,
|
|
11043
11043
|
{
|
|
11044
11044
|
role: "graphics-symbol",
|
|
11045
|
-
"data-
|
|
11045
|
+
"data-testid": "graphic-loader",
|
|
11046
11046
|
"aria-label": label,
|
|
11047
11047
|
autoPlay: autoplay,
|
|
11048
11048
|
loop,
|
|
@@ -11346,7 +11346,7 @@ var UniformBadge = ({
|
|
|
11346
11346
|
viewBox: "0 0 51 52",
|
|
11347
11347
|
fill: "none",
|
|
11348
11348
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11349
|
-
"data-
|
|
11349
|
+
"data-testid": "uniform-Badge",
|
|
11350
11350
|
css: [SVG, theme === "dark" ? SVGDark : SVGLight],
|
|
11351
11351
|
...props,
|
|
11352
11352
|
children: [
|
|
@@ -11382,7 +11382,7 @@ var UniformLogo = ({
|
|
|
11382
11382
|
theme = "light",
|
|
11383
11383
|
...props
|
|
11384
11384
|
}) => {
|
|
11385
|
-
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { "data-
|
|
11385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { "data-testid": "uniform-Logo", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
11386
11386
|
"svg",
|
|
11387
11387
|
{
|
|
11388
11388
|
width: "153",
|
|
@@ -11551,7 +11551,7 @@ var MenuTitle = import_react31.css`
|
|
|
11551
11551
|
// src/components/Menu/MenuGroup.tsx
|
|
11552
11552
|
var import_jsx_runtime23 = require("@emotion/react/jsx-runtime");
|
|
11553
11553
|
var MenuGroup = ({ title, children }) => {
|
|
11554
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { css: MenuGroupContainer, "data-
|
|
11554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { css: MenuGroupContainer, "data-testid": "menu-group", children: [
|
|
11555
11555
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { css: MenuTitle, children: title }),
|
|
11556
11556
|
children
|
|
11557
11557
|
] });
|
|
@@ -11736,7 +11736,7 @@ var MenuItem = React9.forwardRef(
|
|
|
11736
11736
|
{
|
|
11737
11737
|
ref,
|
|
11738
11738
|
type: "button",
|
|
11739
|
-
"data-
|
|
11739
|
+
"data-testid": "button-menu",
|
|
11740
11740
|
...menuState,
|
|
11741
11741
|
...resolvedProps,
|
|
11742
11742
|
css: [menuItem(textColor, active), typeof className === "object" ? className : void 0],
|
|
@@ -11870,7 +11870,7 @@ var ButtonWithMenu = ({
|
|
|
11870
11870
|
"div",
|
|
11871
11871
|
{
|
|
11872
11872
|
css: [ButtonWithMenuContainer, disabled ? buttonDisabledTheme[buttonType] : buttonTheme[buttonType]],
|
|
11873
|
-
"data-
|
|
11873
|
+
"data-testid": "multioptions-button",
|
|
11874
11874
|
children: [
|
|
11875
11875
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
11876
11876
|
"button",
|
|
@@ -11879,7 +11879,7 @@ var ButtonWithMenu = ({
|
|
|
11879
11879
|
css: ButtonWithMenuBtn,
|
|
11880
11880
|
disabled,
|
|
11881
11881
|
onClick: onButtonClick,
|
|
11882
|
-
"data-
|
|
11882
|
+
"data-testid": "multioptions-button-main",
|
|
11883
11883
|
...buttonProps,
|
|
11884
11884
|
children: buttonText
|
|
11885
11885
|
}
|
|
@@ -11889,7 +11889,7 @@ var ButtonWithMenu = ({
|
|
|
11889
11889
|
{
|
|
11890
11890
|
menuLabel: "buttonMenu",
|
|
11891
11891
|
placement,
|
|
11892
|
-
menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { css: ButtonWithMenuIcon, "data-
|
|
11892
|
+
menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { css: ButtonWithMenuIcon, "data-testid": "multioptions-button-call-menu", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Icon, { icon: import_cg6.CgChevronDown, size: 24, iconColor: "currentColor" }) }),
|
|
11893
11893
|
children
|
|
11894
11894
|
}
|
|
11895
11895
|
)
|
|
@@ -12192,8 +12192,8 @@ var Callout = ({
|
|
|
12192
12192
|
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { css: calloutInner, children: [
|
|
12193
12193
|
compact ? null : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { css: calloutIconWrap, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon2, { css: [calloutIcon, calloutTypeData.iconColor] }) }),
|
|
12194
12194
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { css: [calloutBody, compact ? calloutBodyCompact : void 0], children: [
|
|
12195
|
-
title ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { css: [calloutTitle], "data-
|
|
12196
|
-
children ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { css: [calloutTypeData.descriptionColor], "data-
|
|
12195
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { css: [calloutTitle], "data-testid": "callout-title", children: title }) : null,
|
|
12196
|
+
children ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { css: [calloutTypeData.descriptionColor], "data-testid": "callout-description", children }) : null
|
|
12197
12197
|
] })
|
|
12198
12198
|
] })
|
|
12199
12199
|
}
|
|
@@ -12271,7 +12271,7 @@ var Card = ({
|
|
|
12271
12271
|
type: "button",
|
|
12272
12272
|
disabled,
|
|
12273
12273
|
css: CardMenu,
|
|
12274
|
-
"data-
|
|
12274
|
+
"data-testid": menuButtonTestId != null ? menuButtonTestId : "list-card-menu",
|
|
12275
12275
|
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon, { icon: import_cg7.CgMoreAlt, iconColor: "currentColor", size: 32 })
|
|
12276
12276
|
}
|
|
12277
12277
|
),
|
|
@@ -13244,7 +13244,7 @@ var DrawerInner = ({
|
|
|
13244
13244
|
tabIndex: -1,
|
|
13245
13245
|
"aria-labelledby": headerId,
|
|
13246
13246
|
css: drawerStyles(bgColor),
|
|
13247
|
-
"data-
|
|
13247
|
+
"data-testid": testId,
|
|
13248
13248
|
children: [
|
|
13249
13249
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { css: headerWrapperStyles, children: [
|
|
13250
13250
|
header ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { id: headerId, css: drawerHeaderStyles, children: header }) : null,
|
|
@@ -13429,7 +13429,7 @@ var CaptionText = (dynamicSize) => import_react56.css`
|
|
|
13429
13429
|
// src/components/Input/Caption.tsx
|
|
13430
13430
|
var import_jsx_runtime46 = require("@emotion/react/jsx-runtime");
|
|
13431
13431
|
var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
|
|
13432
|
-
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("small", { css: CaptionText(dynamicSize), "data-
|
|
13432
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("small", { css: CaptionText(dynamicSize), "data-testid": testId, ...props, children });
|
|
13433
13433
|
};
|
|
13434
13434
|
|
|
13435
13435
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
@@ -13542,7 +13542,7 @@ var ErrorText = import_react59.css`
|
|
|
13542
13542
|
// src/components/Input/ErrorMessage.tsx
|
|
13543
13543
|
var import_jsx_runtime48 = require("@emotion/react/jsx-runtime");
|
|
13544
13544
|
var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
13545
|
-
return message ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("span", { role: "alert", css: ErrorText, "data-
|
|
13545
|
+
return message ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("span", { role: "alert", css: ErrorText, "data-testid": testId, ...otherProps, children: [
|
|
13546
13546
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icon, { icon: import_md2.MdWarning, size: "1rem", iconColor: "currentColor" }) }),
|
|
13547
13547
|
message
|
|
13548
13548
|
] }) : null;
|
|
@@ -13623,7 +13623,7 @@ var InfoIcon2 = import_react61.css`
|
|
|
13623
13623
|
// src/components/Input/InfoMessage.tsx
|
|
13624
13624
|
var import_jsx_runtime50 = require("@emotion/react/jsx-runtime");
|
|
13625
13625
|
var InfoMessage = ({ message, testId, ...props }) => {
|
|
13626
|
-
return message ? /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("span", { role: "status", css: InfoText, "data-
|
|
13626
|
+
return message ? /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("span", { role: "status", css: InfoText, "data-testid": testId, ...props, children: [
|
|
13627
13627
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, { css: InfoIcon2, icon: import_md3.MdInfoOutline, size: "1rem", iconColor: "currentColor" }) }),
|
|
13628
13628
|
message
|
|
13629
13629
|
] }) : null;
|
|
@@ -13640,7 +13640,7 @@ var Label = ({ children, className, testId, ...props }) => {
|
|
|
13640
13640
|
{
|
|
13641
13641
|
css: [labelText, typeof className === "object" ? className : void 0],
|
|
13642
13642
|
className: typeof className === "string" ? className : "",
|
|
13643
|
-
"data-
|
|
13643
|
+
"data-testid": testId,
|
|
13644
13644
|
...props,
|
|
13645
13645
|
children
|
|
13646
13646
|
}
|
|
@@ -13665,7 +13665,7 @@ var WarningIcon = import_react62.css`
|
|
|
13665
13665
|
// src/components/Input/WarningMessage.tsx
|
|
13666
13666
|
var import_jsx_runtime52 = require("@emotion/react/jsx-runtime");
|
|
13667
13667
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
13668
|
-
return message ? /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("span", { role: "status", css: WarningText, "data-
|
|
13668
|
+
return message ? /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("span", { role: "status", css: WarningText, "data-testid": testId, ...props, children: [
|
|
13669
13669
|
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { css: WarningIcon, icon: import_md4.MdWarning, size: "1rem", iconColor: "currentColor" }) }),
|
|
13670
13670
|
message
|
|
13671
13671
|
] }) : null;
|
|
@@ -13691,7 +13691,7 @@ var Input = React16.forwardRef(
|
|
|
13691
13691
|
classNameLabel,
|
|
13692
13692
|
...props
|
|
13693
13693
|
}, ref) => {
|
|
13694
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { css: inputContainer, "data-
|
|
13694
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { css: inputContainer, "data-testid": containerTestId ? containerTestId : "container-input-field", children: [
|
|
13695
13695
|
showLabel ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
13696
13696
|
Label,
|
|
13697
13697
|
{
|
|
@@ -14141,7 +14141,7 @@ var InputToggle = React17.forwardRef(
|
|
|
14141
14141
|
Label,
|
|
14142
14142
|
{
|
|
14143
14143
|
css: [inputToggleLabel, disabled ? inputDisabled : void 0],
|
|
14144
|
-
"data-
|
|
14144
|
+
"data-testid": testId ? testId : "input-toggle",
|
|
14145
14145
|
children: [
|
|
14146
14146
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
14147
14147
|
"input",
|
|
@@ -14194,7 +14194,7 @@ var SuccessIcon2 = import_react66.css`
|
|
|
14194
14194
|
// src/components/Input/SuccessMessage.tsx
|
|
14195
14195
|
var import_jsx_runtime60 = require("@emotion/react/jsx-runtime");
|
|
14196
14196
|
var SuccessMessage = ({ message, testId, ...props }) => {
|
|
14197
|
-
return message ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("span", { role: "status", css: SuccessText, "data-
|
|
14197
|
+
return message ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("span", { role: "status", css: SuccessText, "data-testid": testId, ...props, children: [
|
|
14198
14198
|
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icon, { css: SuccessIcon2, icon: import_cg13.CgCheckO, size: "1rem", iconColor: "currentColor" }) }),
|
|
14199
14199
|
message
|
|
14200
14200
|
] }) : null;
|
|
@@ -14469,8 +14469,8 @@ var EditTeamIntegrationTile = ({
|
|
|
14469
14469
|
"data-testid": "configure-integration-container",
|
|
14470
14470
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
14471
14471
|
children: [
|
|
14472
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ResolveIcon, { icon, name, "data-
|
|
14473
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { css: IntegrationTileName, "data-
|
|
14472
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ResolveIcon, { icon, name, "data-testid": "integration-logo" }),
|
|
14473
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { css: IntegrationTileName, "data-testid": "integration-card-name", children: name }),
|
|
14474
14474
|
!isPublic ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(IntegrationCustomBadge, {}) : null,
|
|
14475
14475
|
canEdit ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
14476
14476
|
Button,
|
|
@@ -14665,7 +14665,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
14665
14665
|
{
|
|
14666
14666
|
src: iconSrc,
|
|
14667
14667
|
alt: name,
|
|
14668
|
-
"data-
|
|
14668
|
+
"data-testid": "integration-modal-icon",
|
|
14669
14669
|
css: IntegrationModalImage,
|
|
14670
14670
|
...imgProps
|
|
14671
14671
|
}
|
|
@@ -14873,7 +14873,7 @@ var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
|
14873
14873
|
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
14874
14874
|
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
14875
14875
|
icon ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
14876
|
-
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-
|
|
14876
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-testid": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
14877
14877
|
menu2 ? /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
14878
14878
|
menu2,
|
|
14879
14879
|
" "
|
|
@@ -15167,7 +15167,7 @@ var ScrollableListInputItem = ({
|
|
|
15167
15167
|
active ? ScrollableListItemActive : void 0
|
|
15168
15168
|
],
|
|
15169
15169
|
...props,
|
|
15170
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("label", { "data-
|
|
15170
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("label", { "data-testid": labelTestId, css: ScrollableListInputLabel, children: [
|
|
15171
15171
|
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("span", { css: ScrollableListInputText, children: [
|
|
15172
15172
|
icon,
|
|
15173
15173
|
label
|
|
@@ -15180,7 +15180,7 @@ var ScrollableListInputItem = ({
|
|
|
15180
15180
|
iconColor: "currentColor",
|
|
15181
15181
|
css: [ScrollableListIcon, active ? ScrollableListIconVisible : void 0],
|
|
15182
15182
|
size: 24,
|
|
15183
|
-
"data-
|
|
15183
|
+
"data-testid": "check-mark",
|
|
15184
15184
|
"data-test-active": active
|
|
15185
15185
|
}
|
|
15186
15186
|
)
|
|
@@ -15271,7 +15271,7 @@ var loadingDot = import_react84.css`
|
|
|
15271
15271
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
15272
15272
|
var import_jsx_runtime80 = require("@emotion/react/jsx-runtime");
|
|
15273
15273
|
var LoadingIndicator = ({ ...props }) => {
|
|
15274
|
-
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { role: "alert", css: loader, "data-
|
|
15274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { role: "alert", css: loader, "data-testid": "loading-indicator", ...props, children: [
|
|
15275
15275
|
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { css: loadingDot }),
|
|
15276
15276
|
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { css: loadingDot }),
|
|
15277
15277
|
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { css: loadingDot })
|
|
@@ -15376,14 +15376,13 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
15376
15376
|
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
15377
15377
|
"svg",
|
|
15378
15378
|
{
|
|
15379
|
-
"data-testid": "svg",
|
|
15380
15379
|
viewBox: "0 0 38 38",
|
|
15381
15380
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15382
15381
|
width: width != null ? width : 40,
|
|
15383
15382
|
height: height != null ? height : 40,
|
|
15384
15383
|
stroke: "currentColor",
|
|
15385
15384
|
...props,
|
|
15386
|
-
"data-
|
|
15385
|
+
"data-testid": "loading-icon",
|
|
15387
15386
|
children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
15388
15387
|
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
15389
15388
|
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
@@ -16133,7 +16132,7 @@ var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0, import_jsx_runtime8
|
|
|
16133
16132
|
var import_jsx_runtime90 = require("@emotion/react/jsx-runtime");
|
|
16134
16133
|
var ParameterImage = (0, import_react98.forwardRef)((props, ref) => {
|
|
16135
16134
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16136
|
-
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(ParameterShell, { "data-
|
|
16135
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(ParameterShell, { "data-testid": "parameter-image", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(ParameterImageInner, { ref, ...innerProps }) });
|
|
16137
16136
|
});
|
|
16138
16137
|
var BrokenImage = ({ ...props }) => {
|
|
16139
16138
|
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
@@ -16250,7 +16249,7 @@ var import_react99 = require("react");
|
|
|
16250
16249
|
var import_jsx_runtime91 = require("@emotion/react/jsx-runtime");
|
|
16251
16250
|
var ParameterInput = (0, import_react99.forwardRef)((props, ref) => {
|
|
16252
16251
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16253
|
-
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ParameterShell, { "data-
|
|
16252
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ParameterInputInner, { ref, ...innerProps }) });
|
|
16254
16253
|
});
|
|
16255
16254
|
var ParameterInputInner = (0, import_react99.forwardRef)(
|
|
16256
16255
|
({ ...props }, ref) => {
|
|
@@ -16279,7 +16278,7 @@ var ParameterLink = (0, import_react100.forwardRef)(
|
|
|
16279
16278
|
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
16280
16279
|
ParameterShell,
|
|
16281
16280
|
{
|
|
16282
|
-
"data-
|
|
16281
|
+
"data-testid": "link-parameter-editor",
|
|
16283
16282
|
...shellProps,
|
|
16284
16283
|
label: innerProps.value ? shellProps.label : "",
|
|
16285
16284
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
@@ -16374,7 +16373,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16374
16373
|
id: nameIdField,
|
|
16375
16374
|
name: nameIdField,
|
|
16376
16375
|
label,
|
|
16377
|
-
"data-
|
|
16376
|
+
"data-testid": "name-field",
|
|
16378
16377
|
autoComplete: "off",
|
|
16379
16378
|
"data-af": "true",
|
|
16380
16379
|
onBlur,
|
|
@@ -16394,7 +16393,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
16394
16393
|
name: publicIdFieldName,
|
|
16395
16394
|
label: "Public ID",
|
|
16396
16395
|
disabled: Boolean(id) || isReadonly,
|
|
16397
|
-
"data-
|
|
16396
|
+
"data-testid": "public-id-field",
|
|
16398
16397
|
autoComplete: "off",
|
|
16399
16398
|
onBlur,
|
|
16400
16399
|
onChange: onPublicIdChange,
|
|
@@ -17762,7 +17761,7 @@ var ParameterRichText = ({
|
|
|
17762
17761
|
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
17763
17762
|
ParameterShell,
|
|
17764
17763
|
{
|
|
17765
|
-
"data-
|
|
17764
|
+
"data-testid": "parameter-input",
|
|
17766
17765
|
label,
|
|
17767
17766
|
hiddenLabel,
|
|
17768
17767
|
labelLeadingIcon,
|
|
@@ -17994,7 +17993,7 @@ var import_react111 = require("react");
|
|
|
17994
17993
|
var import_jsx_runtime99 = require("@emotion/react/jsx-runtime");
|
|
17995
17994
|
var ParameterTextarea = (0, import_react111.forwardRef)((props, ref) => {
|
|
17996
17995
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
17997
|
-
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(ParameterShell, { "data-
|
|
17996
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
17998
17997
|
});
|
|
17999
17998
|
var ParameterTextareaInner = (0, import_react111.forwardRef)(({ ...props }, ref) => {
|
|
18000
17999
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
@@ -18043,7 +18042,7 @@ var Popover2 = ({
|
|
|
18043
18042
|
}) => {
|
|
18044
18043
|
const popover = (0, import_Popover.usePopoverState)({ placement });
|
|
18045
18044
|
return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_jsx_runtime101.Fragment, { children: [
|
|
18046
|
-
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_Popover.PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, "data-
|
|
18045
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_Popover.PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, "data-testid": testId, children: [
|
|
18047
18046
|
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Icon, { icon, iconColor, size: iconSize }),
|
|
18048
18047
|
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { hidden: true, children: buttonText })
|
|
18049
18048
|
] }),
|
|
@@ -18323,7 +18322,7 @@ var SegmentedControl = ({
|
|
|
18323
18322
|
Tooltip,
|
|
18324
18323
|
{
|
|
18325
18324
|
title: isDisabled || !option.tooltip ? "" : option.tooltip,
|
|
18326
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { css: segmentedControlItemStyles, "data-
|
|
18325
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
|
|
18327
18326
|
"label",
|
|
18328
18327
|
{
|
|
18329
18328
|
css: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.37.1-alpha.4+d2fd8a8f3",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"@storybook/react": "6.5.16",
|
|
25
25
|
"@types/react": "18.2.7",
|
|
26
26
|
"@types/react-dom": "18.2.4",
|
|
27
|
-
"@uniformdev/canvas": "^19.
|
|
28
|
-
"@uniformdev/richtext": "^19.
|
|
27
|
+
"@uniformdev/canvas": "^19.37.1-alpha.4+d2fd8a8f3",
|
|
28
|
+
"@uniformdev/richtext": "^19.37.1-alpha.4+d2fd8a8f3",
|
|
29
29
|
"autoprefixer": "10.4.14",
|
|
30
30
|
"hygen": "6.2.11",
|
|
31
31
|
"postcss": "8.4.27",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "d2fd8a8f3cd9348ecdd87bdd821e1ab89a7b8054"
|
|
72
72
|
}
|