@uniformdev/design-system 18.27.1-alpha.12 → 18.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +107 -128
- package/dist/index.js +6 -27
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -424,15 +424,11 @@ var inputSelect = css2`
|
|
|
424
424
|
background-size: 1rem;
|
|
425
425
|
padding-right: var(--spacing-xl);
|
|
426
426
|
`;
|
|
427
|
-
var
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
var inputSearchCloseIcon = css2`
|
|
433
|
-
color: var(--brand-primary-2);
|
|
434
|
-
height: 1.5rem;
|
|
435
|
-
width: 1.5rem;
|
|
427
|
+
var inputSearchCloseBtn = css2`
|
|
428
|
+
background: none;
|
|
429
|
+
border: none;
|
|
430
|
+
padding: 0;
|
|
431
|
+
pointer-events: all;
|
|
436
432
|
`;
|
|
437
433
|
var inputToggleLabel = css2`
|
|
438
434
|
align-items: flex-start;
|
|
@@ -12124,7 +12120,7 @@ var InputInlineSelect = ({
|
|
|
12124
12120
|
};
|
|
12125
12121
|
|
|
12126
12122
|
// src/components/Input/InputKeywordSearch.tsx
|
|
12127
|
-
import { jsx as jsx42
|
|
12123
|
+
import { jsx as jsx42 } from "@emotion/react/jsx-runtime";
|
|
12128
12124
|
var InputKeywordSearch = ({
|
|
12129
12125
|
onSearchTextChanged,
|
|
12130
12126
|
disabled = false,
|
|
@@ -12151,24 +12147,7 @@ var InputKeywordSearch = ({
|
|
|
12151
12147
|
placeholder,
|
|
12152
12148
|
showLabel: false,
|
|
12153
12149
|
value,
|
|
12154
|
-
icon: value ? /* @__PURE__ */ jsx42("button", {
|
|
12155
|
-
"svg",
|
|
12156
|
-
{
|
|
12157
|
-
width: "26",
|
|
12158
|
-
height: "24",
|
|
12159
|
-
viewBox: "0 0 26 24",
|
|
12160
|
-
fill: "currentColor",
|
|
12161
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
12162
|
-
css: inputSearchIcon,
|
|
12163
|
-
children: [
|
|
12164
|
-
/* @__PURE__ */ jsxs25("g", { clipPath: "url(#clip0)", children: [
|
|
12165
|
-
/* @__PURE__ */ jsx42("path", { d: "M11.539 0C5.48429 0 0.558105 4.74145 0.558105 10.5691C0.558105 16.3971 5.48429 21.1382 11.539 21.1382C17.594 21.1382 22.5199 16.3971 22.5199 10.5691C22.5199 4.74145 17.594 0 11.539 0ZM11.539 19.187C6.60198 19.187 2.58535 15.321 2.58535 10.5691C2.58535 5.81728 6.60198 1.95122 11.539 1.95122C16.476 1.95122 20.4926 5.81723 20.4926 10.5691C20.4926 15.321 16.476 19.187 11.539 19.187Z" }),
|
|
12166
|
-
/* @__PURE__ */ jsx42("path", { d: "M25.196 22.3344L19.3846 16.7409C18.9886 16.3598 18.3473 16.3598 17.9513 16.7409C17.5553 17.1217 17.5553 17.7397 17.9513 18.1205L23.7627 23.714C23.9607 23.9045 24.2199 23.9998 24.4794 23.9998C24.7385 23.9998 24.998 23.9045 25.196 23.714C25.592 23.3332 25.592 22.7153 25.196 22.3344Z" })
|
|
12167
|
-
] }),
|
|
12168
|
-
/* @__PURE__ */ jsx42("defs", { children: /* @__PURE__ */ jsx42("clipPath", { id: "clip0", children: /* @__PURE__ */ jsx42("rect", { width: "24.9351", height: "24", fill: "white", transform: "translate(0.558105)" }) }) })
|
|
12169
|
-
]
|
|
12170
|
-
}
|
|
12171
|
-
),
|
|
12150
|
+
icon: value ? /* @__PURE__ */ jsx42("button", { css: inputSearchCloseBtn, onClick: onClear, children: /* @__PURE__ */ jsx42(Icon, { icon: "close", iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ jsx42(Icon, { icon: "search", iconColor: "gray", size: "1rem" }),
|
|
12172
12151
|
onChange: handleSearchTextChanged,
|
|
12173
12152
|
onKeyPress: preventSubmitOnField,
|
|
12174
12153
|
disabled,
|
|
@@ -12179,7 +12158,7 @@ var InputKeywordSearch = ({
|
|
|
12179
12158
|
};
|
|
12180
12159
|
|
|
12181
12160
|
// src/components/Input/InputSelect.tsx
|
|
12182
|
-
import { Fragment as Fragment5, jsx as jsx43, jsxs as
|
|
12161
|
+
import { Fragment as Fragment5, jsx as jsx43, jsxs as jsxs25 } from "@emotion/react/jsx-runtime";
|
|
12183
12162
|
var InputSelect = ({
|
|
12184
12163
|
label,
|
|
12185
12164
|
defaultOption,
|
|
@@ -12195,13 +12174,13 @@ var InputSelect = ({
|
|
|
12195
12174
|
classNameLabel,
|
|
12196
12175
|
...props
|
|
12197
12176
|
}) => {
|
|
12198
|
-
return /* @__PURE__ */
|
|
12177
|
+
return /* @__PURE__ */ jsxs25(
|
|
12199
12178
|
"div",
|
|
12200
12179
|
{
|
|
12201
12180
|
css: [inputContainer, typeof classNameContainer === "object" ? classNameContainer : void 0],
|
|
12202
12181
|
className: typeof classNameContainer === "string" ? classNameContainer : "",
|
|
12203
12182
|
children: [
|
|
12204
|
-
showLabel ? /* @__PURE__ */ jsx43(Fragment5, { children: /* @__PURE__ */
|
|
12183
|
+
showLabel ? /* @__PURE__ */ jsx43(Fragment5, { children: /* @__PURE__ */ jsxs25(
|
|
12205
12184
|
Label,
|
|
12206
12185
|
{
|
|
12207
12186
|
htmlFor: props.id,
|
|
@@ -12213,7 +12192,7 @@ var InputSelect = ({
|
|
|
12213
12192
|
]
|
|
12214
12193
|
}
|
|
12215
12194
|
) }) : null,
|
|
12216
|
-
/* @__PURE__ */
|
|
12195
|
+
/* @__PURE__ */ jsxs25(
|
|
12217
12196
|
"select",
|
|
12218
12197
|
{
|
|
12219
12198
|
title: label,
|
|
@@ -12242,7 +12221,7 @@ var InputSelect = ({
|
|
|
12242
12221
|
};
|
|
12243
12222
|
|
|
12244
12223
|
// src/components/Input/InputToggle.tsx
|
|
12245
|
-
import { jsx as jsx44, jsxs as
|
|
12224
|
+
import { jsx as jsx44, jsxs as jsxs26 } from "@emotion/react/jsx-runtime";
|
|
12246
12225
|
var InputToggle = ({
|
|
12247
12226
|
label,
|
|
12248
12227
|
type,
|
|
@@ -12256,10 +12235,10 @@ var InputToggle = ({
|
|
|
12256
12235
|
fontWeight = "medium",
|
|
12257
12236
|
...props
|
|
12258
12237
|
}) => {
|
|
12259
|
-
return /* @__PURE__ */
|
|
12238
|
+
return /* @__PURE__ */ jsxs26(Label, { css: [inputToggleLabel, disabled ? inputDisabled : void 0], "data-test-id": testId, children: [
|
|
12260
12239
|
/* @__PURE__ */ jsx44("input", { type, css: toggleInput, checked, name, disabled, ...props }),
|
|
12261
12240
|
/* @__PURE__ */ jsx44("span", { css: inlineLabel(fontWeight), dangerouslySetInnerHTML: { __html: label } }),
|
|
12262
|
-
caption || errorMessage ? /* @__PURE__ */
|
|
12241
|
+
caption || errorMessage ? /* @__PURE__ */ jsxs26("span", { css: inputToggleMessageContainer, children: [
|
|
12263
12242
|
caption ? /* @__PURE__ */ jsx44(Caption, { children: caption }) : null,
|
|
12264
12243
|
errorMessage ? /* @__PURE__ */ jsx44(ErrorMessage, { message: errorMessage }) : null,
|
|
12265
12244
|
warningMessage && !errorMessage ? /* @__PURE__ */ jsx44(WarningMessage, { message: warningMessage }) : null
|
|
@@ -12274,7 +12253,7 @@ var Legend = ({ children }) => {
|
|
|
12274
12253
|
};
|
|
12275
12254
|
|
|
12276
12255
|
// src/components/Input/Textarea.tsx
|
|
12277
|
-
import { Fragment as Fragment6, jsx as jsx46, jsxs as
|
|
12256
|
+
import { Fragment as Fragment6, jsx as jsx46, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
|
|
12278
12257
|
var Textarea = ({
|
|
12279
12258
|
label,
|
|
12280
12259
|
icon,
|
|
@@ -12285,9 +12264,9 @@ var Textarea = ({
|
|
|
12285
12264
|
warningMessage,
|
|
12286
12265
|
...props
|
|
12287
12266
|
}) => {
|
|
12288
|
-
return /* @__PURE__ */
|
|
12267
|
+
return /* @__PURE__ */ jsxs27(Fragment6, { children: [
|
|
12289
12268
|
showLabel ? /* @__PURE__ */ jsx46("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
12290
|
-
/* @__PURE__ */
|
|
12269
|
+
/* @__PURE__ */ jsxs27("div", { css: [inputContainer], children: [
|
|
12291
12270
|
/* @__PURE__ */ jsx46(
|
|
12292
12271
|
"textarea",
|
|
12293
12272
|
{
|
|
@@ -12445,7 +12424,7 @@ var LimitsBarTextColor = (statusColor) => css38`
|
|
|
12445
12424
|
`;
|
|
12446
12425
|
|
|
12447
12426
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
12448
|
-
import { jsx as jsx50, jsxs as
|
|
12427
|
+
import { jsx as jsx50, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
|
|
12449
12428
|
var LimitsBar = ({ current, max, label }) => {
|
|
12450
12429
|
const maxPercentage = 100;
|
|
12451
12430
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -12456,10 +12435,10 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
12456
12435
|
danger: "var(--brand-secondary-5)"
|
|
12457
12436
|
};
|
|
12458
12437
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
12459
|
-
return /* @__PURE__ */
|
|
12460
|
-
/* @__PURE__ */
|
|
12438
|
+
return /* @__PURE__ */ jsxs28("div", { css: LimitsBarContainer, children: [
|
|
12439
|
+
/* @__PURE__ */ jsxs28("div", { css: LimitsBarLabelContainer, children: [
|
|
12461
12440
|
/* @__PURE__ */ jsx50("span", { css: LimitsBarLabel, children: label }),
|
|
12462
|
-
/* @__PURE__ */
|
|
12441
|
+
/* @__PURE__ */ jsxs28("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
12463
12442
|
current,
|
|
12464
12443
|
" of ",
|
|
12465
12444
|
max
|
|
@@ -12500,9 +12479,9 @@ var LinkListContainer = css39`
|
|
|
12500
12479
|
`;
|
|
12501
12480
|
|
|
12502
12481
|
// src/components/LinkList/LinkList.tsx
|
|
12503
|
-
import { jsx as jsx51, jsxs as
|
|
12482
|
+
import { jsx as jsx51, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
|
|
12504
12483
|
var LinkList = ({ title, children, ...props }) => {
|
|
12505
|
-
return /* @__PURE__ */
|
|
12484
|
+
return /* @__PURE__ */ jsxs29("div", { css: LinkListContainer, ...props, children: [
|
|
12506
12485
|
/* @__PURE__ */ jsx51(Heading, { level: 3, children: title }),
|
|
12507
12486
|
children
|
|
12508
12487
|
] });
|
|
@@ -12534,9 +12513,9 @@ var ScrollableListInner = css40`
|
|
|
12534
12513
|
`;
|
|
12535
12514
|
|
|
12536
12515
|
// src/components/List/ScrollableList.tsx
|
|
12537
|
-
import { jsx as jsx52, jsxs as
|
|
12516
|
+
import { jsx as jsx52, jsxs as jsxs30 } from "@emotion/react/jsx-runtime";
|
|
12538
12517
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
12539
|
-
return /* @__PURE__ */
|
|
12518
|
+
return /* @__PURE__ */ jsxs30("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
12540
12519
|
label ? /* @__PURE__ */ jsx52(
|
|
12541
12520
|
"span",
|
|
12542
12521
|
{
|
|
@@ -12611,7 +12590,7 @@ var ScrollableListIcon = css42`
|
|
|
12611
12590
|
`;
|
|
12612
12591
|
|
|
12613
12592
|
// src/components/List/ScrollableListInputItem.tsx
|
|
12614
|
-
import { jsx as jsx53, jsxs as
|
|
12593
|
+
import { jsx as jsx53, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
|
|
12615
12594
|
var ScrollableListInputItem = ({
|
|
12616
12595
|
label,
|
|
12617
12596
|
icon,
|
|
@@ -12619,8 +12598,8 @@ var ScrollableListInputItem = ({
|
|
|
12619
12598
|
children,
|
|
12620
12599
|
labelTestId
|
|
12621
12600
|
}) => {
|
|
12622
|
-
return /* @__PURE__ */ jsx53("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */
|
|
12623
|
-
/* @__PURE__ */
|
|
12601
|
+
return /* @__PURE__ */ jsx53("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */ jsxs31("label", { "data-test-id": labelTestId, css: ScrollableListInputLabel, children: [
|
|
12602
|
+
/* @__PURE__ */ jsxs31("span", { css: ScrollableListInputText, children: [
|
|
12624
12603
|
icon,
|
|
12625
12604
|
label
|
|
12626
12605
|
] }),
|
|
@@ -12631,9 +12610,9 @@ var ScrollableListInputItem = ({
|
|
|
12631
12610
|
|
|
12632
12611
|
// src/components/List/ScrollableListItem.tsx
|
|
12633
12612
|
import { css as css43 } from "@emotion/react";
|
|
12634
|
-
import { jsx as jsx54, jsxs as
|
|
12613
|
+
import { jsx as jsx54, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
|
|
12635
12614
|
var ScrollableListItem = ({ buttonText, active, ...props }) => {
|
|
12636
|
-
return /* @__PURE__ */ jsx54("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */
|
|
12615
|
+
return /* @__PURE__ */ jsx54("div", { css: [ScrollableListItemContainer, active ? ScrollableListItemActive : void 0], children: /* @__PURE__ */ jsxs32("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
12637
12616
|
/* @__PURE__ */ jsx54("span", { children: buttonText }),
|
|
12638
12617
|
/* @__PURE__ */ jsx54(
|
|
12639
12618
|
"svg",
|
|
@@ -12711,9 +12690,9 @@ var loadingDot = css44`
|
|
|
12711
12690
|
`;
|
|
12712
12691
|
|
|
12713
12692
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
12714
|
-
import { jsx as jsx55, jsxs as
|
|
12693
|
+
import { jsx as jsx55, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
12715
12694
|
var LoadingIndicator = () => {
|
|
12716
|
-
return /* @__PURE__ */
|
|
12695
|
+
return /* @__PURE__ */ jsxs33("div", { css: loader, role: "alert", "data-test-id": "loading-indicator", children: [
|
|
12717
12696
|
/* @__PURE__ */ jsx55("span", { css: loadingDot }),
|
|
12718
12697
|
/* @__PURE__ */ jsx55("span", { css: loadingDot }),
|
|
12719
12698
|
/* @__PURE__ */ jsx55("span", { css: loadingDot })
|
|
@@ -12756,7 +12735,7 @@ var loadingOverlayMessage = css45`
|
|
|
12756
12735
|
`;
|
|
12757
12736
|
|
|
12758
12737
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
12759
|
-
import { jsx as jsx56, jsxs as
|
|
12738
|
+
import { jsx as jsx56, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
|
|
12760
12739
|
var LoadingOverlay = ({
|
|
12761
12740
|
isActive,
|
|
12762
12741
|
statusMessage,
|
|
@@ -12782,7 +12761,7 @@ var LoadingOverlay = ({
|
|
|
12782
12761
|
(_f = lottieRef.current) == null ? void 0 : _f.stop();
|
|
12783
12762
|
}
|
|
12784
12763
|
}, [isPaused]);
|
|
12785
|
-
return /* @__PURE__ */
|
|
12764
|
+
return /* @__PURE__ */ jsxs34(
|
|
12786
12765
|
"div",
|
|
12787
12766
|
{
|
|
12788
12767
|
role: "alert",
|
|
@@ -12790,7 +12769,7 @@ var LoadingOverlay = ({
|
|
|
12790
12769
|
"aria-hidden": !isActive,
|
|
12791
12770
|
children: [
|
|
12792
12771
|
/* @__PURE__ */ jsx56("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
12793
|
-
/* @__PURE__ */ jsx56("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */
|
|
12772
|
+
/* @__PURE__ */ jsx56("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ jsxs34("div", { css: loadingOverlayBody, children: [
|
|
12794
12773
|
/* @__PURE__ */ jsx56(
|
|
12795
12774
|
AnimationFile,
|
|
12796
12775
|
{
|
|
@@ -12825,7 +12804,7 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
12825
12804
|
stroke: "currentColor",
|
|
12826
12805
|
...props,
|
|
12827
12806
|
"data-test-id": "loading-icon",
|
|
12828
|
-
children: /* @__PURE__ */ jsx56("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */
|
|
12807
|
+
children: /* @__PURE__ */ jsx56("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs34("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
12829
12808
|
/* @__PURE__ */ jsx56("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
12830
12809
|
/* @__PURE__ */ jsx56("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx56(
|
|
12831
12810
|
"animateTransform",
|
|
@@ -12977,7 +12956,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css46`
|
|
|
12977
12956
|
`;
|
|
12978
12957
|
|
|
12979
12958
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
12980
|
-
import { jsx as jsx57, jsxs as
|
|
12959
|
+
import { jsx as jsx57, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
12981
12960
|
var CreateTeamIntegrationTile = ({
|
|
12982
12961
|
title = "Create a custom integration for your team",
|
|
12983
12962
|
buttonText = "Add Integration",
|
|
@@ -12985,9 +12964,9 @@ var CreateTeamIntegrationTile = ({
|
|
|
12985
12964
|
asDeepLink = false,
|
|
12986
12965
|
...props
|
|
12987
12966
|
}) => {
|
|
12988
|
-
return /* @__PURE__ */
|
|
12967
|
+
return /* @__PURE__ */ jsxs35("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
12989
12968
|
/* @__PURE__ */ jsx57("span", { css: IntegrationTileTitle, title, children: title }),
|
|
12990
|
-
/* @__PURE__ */
|
|
12969
|
+
/* @__PURE__ */ jsxs35(
|
|
12991
12970
|
Button,
|
|
12992
12971
|
{
|
|
12993
12972
|
buttonType: "tertiary",
|
|
@@ -13026,9 +13005,9 @@ var CreateTeamIntegrationTile = ({
|
|
|
13026
13005
|
|
|
13027
13006
|
// src/components/Tiles/IntegrationBadges.tsx
|
|
13028
13007
|
import { CgCheck as CgCheck2, CgLock, CgSandClock } from "react-icons/cg";
|
|
13029
|
-
import { jsx as jsx58, jsxs as
|
|
13008
|
+
import { jsx as jsx58, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
13030
13009
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
13031
|
-
return /* @__PURE__ */
|
|
13010
|
+
return /* @__PURE__ */ jsxs36("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
13032
13011
|
/* @__PURE__ */ jsx58(Icon, { icon: CgCheck2, iconColor: "currentColor" }),
|
|
13033
13012
|
text
|
|
13034
13013
|
] });
|
|
@@ -13037,13 +13016,13 @@ var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
|
13037
13016
|
return /* @__PURE__ */ jsx58("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
13038
13017
|
};
|
|
13039
13018
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
13040
|
-
return /* @__PURE__ */
|
|
13019
|
+
return /* @__PURE__ */ jsxs36("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
13041
13020
|
/* @__PURE__ */ jsx58(Icon, { icon: CgLock, iconColor: "currentColor", size: 12 }),
|
|
13042
13021
|
text
|
|
13043
13022
|
] });
|
|
13044
13023
|
};
|
|
13045
13024
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
13046
|
-
return /* @__PURE__ */
|
|
13025
|
+
return /* @__PURE__ */ jsxs36("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
13047
13026
|
/* @__PURE__ */ jsx58(Icon, { icon: CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
13048
13027
|
text
|
|
13049
13028
|
] });
|
|
@@ -13064,7 +13043,7 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
13064
13043
|
};
|
|
13065
13044
|
|
|
13066
13045
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
13067
|
-
import { jsx as jsx60, jsxs as
|
|
13046
|
+
import { jsx as jsx60, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
13068
13047
|
var EditTeamIntegrationTile = ({
|
|
13069
13048
|
id,
|
|
13070
13049
|
icon,
|
|
@@ -13073,7 +13052,7 @@ var EditTeamIntegrationTile = ({
|
|
|
13073
13052
|
isPublic,
|
|
13074
13053
|
canEdit = false
|
|
13075
13054
|
}) => {
|
|
13076
|
-
return /* @__PURE__ */
|
|
13055
|
+
return /* @__PURE__ */ jsxs37(
|
|
13077
13056
|
"div",
|
|
13078
13057
|
{
|
|
13079
13058
|
css: IntegrationTileContainer,
|
|
@@ -13104,7 +13083,7 @@ var EditTeamIntegrationTile = ({
|
|
|
13104
13083
|
import { css as css48 } from "@emotion/react";
|
|
13105
13084
|
import { useEffect as useEffect7, useState as useState6 } from "react";
|
|
13106
13085
|
import { CgHeart } from "react-icons/cg";
|
|
13107
|
-
import { jsx as jsx61, jsxs as
|
|
13086
|
+
import { jsx as jsx61, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
13108
13087
|
var IntegrationComingSoon = ({
|
|
13109
13088
|
name,
|
|
13110
13089
|
icon,
|
|
@@ -13126,7 +13105,7 @@ var IntegrationComingSoon = ({
|
|
|
13126
13105
|
};
|
|
13127
13106
|
}
|
|
13128
13107
|
}, [upVote, setUpVote, timing]);
|
|
13129
|
-
return /* @__PURE__ */
|
|
13108
|
+
return /* @__PURE__ */ jsxs38(
|
|
13130
13109
|
"div",
|
|
13131
13110
|
{
|
|
13132
13111
|
css: IntegrationTileContainer,
|
|
@@ -13136,7 +13115,7 @@ var IntegrationComingSoon = ({
|
|
|
13136
13115
|
/* @__PURE__ */ jsx61(IntegrationComingSoonBadge, {}),
|
|
13137
13116
|
/* @__PURE__ */ jsx61(ResolveIcon, { icon, name }),
|
|
13138
13117
|
/* @__PURE__ */ jsx61("span", { css: IntegrationTileName, title: name, children: name }),
|
|
13139
|
-
/* @__PURE__ */
|
|
13118
|
+
/* @__PURE__ */ jsxs38(
|
|
13140
13119
|
Button,
|
|
13141
13120
|
{
|
|
13142
13121
|
buttonType: "unimportant",
|
|
@@ -13157,7 +13136,7 @@ var IntegrationComingSoon = ({
|
|
|
13157
13136
|
children: "(I want this)"
|
|
13158
13137
|
}
|
|
13159
13138
|
),
|
|
13160
|
-
/* @__PURE__ */
|
|
13139
|
+
/* @__PURE__ */ jsxs38("span", { "aria-hidden": !upVote, children: [
|
|
13161
13140
|
/* @__PURE__ */ jsx61(Icon, { icon: CgHeart, iconColor: "currentColor", size: 18 }),
|
|
13162
13141
|
"Thanks!"
|
|
13163
13142
|
] })
|
|
@@ -13214,10 +13193,10 @@ var IntegrationLoadingFrame = css49`
|
|
|
13214
13193
|
`;
|
|
13215
13194
|
|
|
13216
13195
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
13217
|
-
import { Fragment as Fragment7, jsx as jsx62, jsxs as
|
|
13196
|
+
import { Fragment as Fragment7, jsx as jsx62, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
13218
13197
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
13219
13198
|
const componentCount = Array.from(Array(count).keys());
|
|
13220
|
-
return /* @__PURE__ */ jsx62(Fragment7, { children: componentCount.map((i) => /* @__PURE__ */
|
|
13199
|
+
return /* @__PURE__ */ jsx62(Fragment7, { children: componentCount.map((i) => /* @__PURE__ */ jsxs39("div", { css: IntegrationLoadingTileContainer, children: [
|
|
13221
13200
|
/* @__PURE__ */ jsx62("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
13222
13201
|
/* @__PURE__ */ jsx62("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
13223
13202
|
] }, i)) });
|
|
@@ -13239,11 +13218,11 @@ var IntegrationModalImage = css50`
|
|
|
13239
13218
|
`;
|
|
13240
13219
|
|
|
13241
13220
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
13242
|
-
import { jsx as jsx63, jsxs as
|
|
13221
|
+
import { jsx as jsx63, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
13243
13222
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
13244
13223
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
13245
|
-
return /* @__PURE__ */
|
|
13246
|
-
/* @__PURE__ */
|
|
13224
|
+
return /* @__PURE__ */ jsxs40("div", { css: IntegrationModalIconContainer, children: [
|
|
13225
|
+
/* @__PURE__ */ jsxs40("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
13247
13226
|
/* @__PURE__ */ jsx63(
|
|
13248
13227
|
"path",
|
|
13249
13228
|
{
|
|
@@ -13253,7 +13232,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
13253
13232
|
strokeWidth: "2"
|
|
13254
13233
|
}
|
|
13255
13234
|
),
|
|
13256
|
-
/* @__PURE__ */ jsx63("defs", { children: /* @__PURE__ */
|
|
13235
|
+
/* @__PURE__ */ jsx63("defs", { children: /* @__PURE__ */ jsxs40("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
13257
13236
|
/* @__PURE__ */ jsx63("stop", { stopColor: "#1768B2" }),
|
|
13258
13237
|
/* @__PURE__ */ jsx63("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
13259
13238
|
] }) })
|
|
@@ -13272,7 +13251,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
13272
13251
|
};
|
|
13273
13252
|
|
|
13274
13253
|
// src/components/Tiles/IntegrationTile.tsx
|
|
13275
|
-
import { jsx as jsx64, jsxs as
|
|
13254
|
+
import { jsx as jsx64, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
13276
13255
|
var IntegrationTile = ({
|
|
13277
13256
|
id,
|
|
13278
13257
|
icon,
|
|
@@ -13284,7 +13263,7 @@ var IntegrationTile = ({
|
|
|
13284
13263
|
authorIcon,
|
|
13285
13264
|
...btnProps
|
|
13286
13265
|
}) => {
|
|
13287
|
-
return /* @__PURE__ */
|
|
13266
|
+
return /* @__PURE__ */ jsxs41(
|
|
13288
13267
|
"button",
|
|
13289
13268
|
{
|
|
13290
13269
|
type: "button",
|
|
@@ -13355,9 +13334,9 @@ var IntegrationModalHeaderContentWrapper = css52`
|
|
|
13355
13334
|
`;
|
|
13356
13335
|
|
|
13357
13336
|
// src/components/Modal/IntegrationModalHeader.tsx
|
|
13358
|
-
import { Fragment as Fragment8, jsx as jsx66, jsxs as
|
|
13337
|
+
import { Fragment as Fragment8, jsx as jsx66, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
13359
13338
|
var HexModalBackground = ({ ...props }) => {
|
|
13360
|
-
return /* @__PURE__ */
|
|
13339
|
+
return /* @__PURE__ */ jsxs42(
|
|
13361
13340
|
"svg",
|
|
13362
13341
|
{
|
|
13363
13342
|
width: "236",
|
|
@@ -13376,7 +13355,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13376
13355
|
fill: "url(#paint0_linear_196_2737)"
|
|
13377
13356
|
}
|
|
13378
13357
|
),
|
|
13379
|
-
/* @__PURE__ */ jsx66("defs", { children: /* @__PURE__ */
|
|
13358
|
+
/* @__PURE__ */ jsx66("defs", { children: /* @__PURE__ */ jsxs42(
|
|
13380
13359
|
"linearGradient",
|
|
13381
13360
|
{
|
|
13382
13361
|
id: "paint0_linear_196_2737",
|
|
@@ -13396,12 +13375,12 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
13396
13375
|
);
|
|
13397
13376
|
};
|
|
13398
13377
|
var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
13399
|
-
return /* @__PURE__ */
|
|
13378
|
+
return /* @__PURE__ */ jsxs42(Fragment8, { children: [
|
|
13400
13379
|
/* @__PURE__ */ jsx66(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
13401
|
-
/* @__PURE__ */ jsx66("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */
|
|
13380
|
+
/* @__PURE__ */ jsx66("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs42("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
13402
13381
|
icon ? /* @__PURE__ */ jsx66(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
13403
13382
|
/* @__PURE__ */ jsx66(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-test-id": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
13404
|
-
menu2 ? /* @__PURE__ */
|
|
13383
|
+
menu2 ? /* @__PURE__ */ jsxs42("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
13405
13384
|
menu2,
|
|
13406
13385
|
" "
|
|
13407
13386
|
] }) : null
|
|
@@ -13436,12 +13415,12 @@ var TooltipArrowStyles = css53`
|
|
|
13436
13415
|
`;
|
|
13437
13416
|
|
|
13438
13417
|
// src/components/Tooltip/Tooltip.tsx
|
|
13439
|
-
import { Fragment as Fragment9, jsx as jsx67, jsxs as
|
|
13418
|
+
import { Fragment as Fragment9, jsx as jsx67, jsxs as jsxs43 } from "@emotion/react/jsx-runtime";
|
|
13440
13419
|
function Tooltip({ children, title, placement = "bottom", visible, ...props }) {
|
|
13441
13420
|
const tooltip = useTooltipState({ placement });
|
|
13442
|
-
return /* @__PURE__ */
|
|
13421
|
+
return /* @__PURE__ */ jsxs43(Fragment9, { children: [
|
|
13443
13422
|
/* @__PURE__ */ jsx67(TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => React15.cloneElement(children, referenceProps) }),
|
|
13444
|
-
!title ? null : /* @__PURE__ */
|
|
13423
|
+
!title ? null : /* @__PURE__ */ jsxs43(ReakitTooltip, { ...tooltip, ...props, css: TooltipContainer, visible: visible != null ? visible : tooltip.visible, children: [
|
|
13445
13424
|
/* @__PURE__ */ jsx67(TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
|
|
13446
13425
|
title
|
|
13447
13426
|
] })
|
|
@@ -13473,7 +13452,7 @@ var inputIconBtn = css54`
|
|
|
13473
13452
|
`;
|
|
13474
13453
|
|
|
13475
13454
|
// src/components/ParameterInputs/ConnectToDataElementButton.tsx
|
|
13476
|
-
import { jsx as jsx68, jsxs as
|
|
13455
|
+
import { jsx as jsx68, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
13477
13456
|
var ConnectToDataElementButton = ({
|
|
13478
13457
|
icon,
|
|
13479
13458
|
iconColor,
|
|
@@ -13483,7 +13462,7 @@ var ConnectToDataElementButton = ({
|
|
|
13483
13462
|
...props
|
|
13484
13463
|
}) => {
|
|
13485
13464
|
const title = isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
13486
|
-
return /* @__PURE__ */ jsx68(Tooltip, { title, children: /* @__PURE__ */
|
|
13465
|
+
return /* @__PURE__ */ jsx68(Tooltip, { title, children: /* @__PURE__ */ jsxs44(
|
|
13487
13466
|
"button",
|
|
13488
13467
|
{
|
|
13489
13468
|
css: inputIconBtn,
|
|
@@ -13781,7 +13760,7 @@ var linkParameterIcon = css55`
|
|
|
13781
13760
|
`;
|
|
13782
13761
|
|
|
13783
13762
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
13784
|
-
import { jsx as jsx69, jsxs as
|
|
13763
|
+
import { jsx as jsx69, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
|
|
13785
13764
|
function ParameterDataResource({
|
|
13786
13765
|
label,
|
|
13787
13766
|
labelLeadingIcon,
|
|
@@ -13791,12 +13770,12 @@ function ParameterDataResource({
|
|
|
13791
13770
|
disabled,
|
|
13792
13771
|
children
|
|
13793
13772
|
}) {
|
|
13794
|
-
return /* @__PURE__ */
|
|
13795
|
-
/* @__PURE__ */
|
|
13773
|
+
return /* @__PURE__ */ jsxs45("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
13774
|
+
/* @__PURE__ */ jsxs45("span", { css: labelText2, children: [
|
|
13796
13775
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
13797
13776
|
label
|
|
13798
13777
|
] }),
|
|
13799
|
-
/* @__PURE__ */
|
|
13778
|
+
/* @__PURE__ */ jsxs45(
|
|
13800
13779
|
"button",
|
|
13801
13780
|
{
|
|
13802
13781
|
type: "button",
|
|
@@ -13836,10 +13815,10 @@ var ParameterDrawerHeaderTitle = css56`
|
|
|
13836
13815
|
`;
|
|
13837
13816
|
|
|
13838
13817
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
13839
|
-
import { jsx as jsx70, jsxs as
|
|
13818
|
+
import { jsx as jsx70, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
13840
13819
|
var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
13841
|
-
return /* @__PURE__ */
|
|
13842
|
-
/* @__PURE__ */
|
|
13820
|
+
return /* @__PURE__ */ jsxs46("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
13821
|
+
/* @__PURE__ */ jsxs46("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
13843
13822
|
iconBeforeTitle,
|
|
13844
13823
|
/* @__PURE__ */ jsx70(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
|
|
13845
13824
|
] }),
|
|
@@ -13871,10 +13850,10 @@ var fieldsetLegend2 = css57`
|
|
|
13871
13850
|
`;
|
|
13872
13851
|
|
|
13873
13852
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
13874
|
-
import { jsx as jsx71, jsxs as
|
|
13853
|
+
import { jsx as jsx71, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
13875
13854
|
var ParameterGroup = forwardRef7(
|
|
13876
13855
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
13877
|
-
return /* @__PURE__ */
|
|
13856
|
+
return /* @__PURE__ */ jsxs47("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
13878
13857
|
/* @__PURE__ */ jsx71("legend", { css: fieldsetLegend2, children: legend }),
|
|
13879
13858
|
children
|
|
13880
13859
|
] });
|
|
@@ -13947,7 +13926,7 @@ var overrideMarker = css58`
|
|
|
13947
13926
|
`;
|
|
13948
13927
|
|
|
13949
13928
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
13950
|
-
import { jsx as jsx74, jsxs as
|
|
13929
|
+
import { jsx as jsx74, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
13951
13930
|
var extractParameterProps = (props) => {
|
|
13952
13931
|
const {
|
|
13953
13932
|
id,
|
|
@@ -14003,16 +13982,16 @@ var ParameterShell = ({
|
|
|
14003
13982
|
const [manualErrorMessage, setManualErrorMessage] = useState7(void 0);
|
|
14004
13983
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
14005
13984
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
14006
|
-
return /* @__PURE__ */
|
|
14007
|
-
hiddenLabel || title ? null : /* @__PURE__ */
|
|
13985
|
+
return /* @__PURE__ */ jsxs48("div", { css: inputContainer2, ...props, children: [
|
|
13986
|
+
hiddenLabel || title ? null : /* @__PURE__ */ jsxs48(ParameterLabel, { id, css: labelText2, children: [
|
|
14008
13987
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
14009
13988
|
label
|
|
14010
13989
|
] }),
|
|
14011
|
-
!title ? null : /* @__PURE__ */
|
|
13990
|
+
!title ? null : /* @__PURE__ */ jsxs48(ParameterLabel, { id, asSpan: true, children: [
|
|
14012
13991
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
14013
13992
|
title
|
|
14014
13993
|
] }),
|
|
14015
|
-
/* @__PURE__ */
|
|
13994
|
+
/* @__PURE__ */ jsxs48("div", { css: inputWrapper, children: [
|
|
14016
13995
|
menuItems ? /* @__PURE__ */ jsx74(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
14017
13996
|
/* @__PURE__ */ jsx74(
|
|
14018
13997
|
ParameterShellContext.Provider,
|
|
@@ -14024,7 +14003,7 @@ var ParameterShell = ({
|
|
|
14024
14003
|
errorMessage: errorMessaging,
|
|
14025
14004
|
onManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
14026
14005
|
},
|
|
14027
|
-
children: /* @__PURE__ */
|
|
14006
|
+
children: /* @__PURE__ */ jsxs48(ParameterShellPlaceholder, { children: [
|
|
14028
14007
|
children,
|
|
14029
14008
|
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx74(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
14030
14009
|
] })
|
|
@@ -14041,13 +14020,13 @@ var ParameterShellPlaceholder = ({ children }) => {
|
|
|
14041
14020
|
var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx74(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx74("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx74("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
14042
14021
|
|
|
14043
14022
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
14044
|
-
import { Fragment as Fragment10, jsx as jsx75, jsxs as
|
|
14023
|
+
import { Fragment as Fragment10, jsx as jsx75, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
14045
14024
|
var ParameterImage = forwardRef9((props, ref) => {
|
|
14046
14025
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14047
14026
|
return /* @__PURE__ */ jsx75(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: /* @__PURE__ */ jsx75(ParameterImageInner, { ref, ...innerProps }) });
|
|
14048
14027
|
});
|
|
14049
14028
|
var BrokenImage = ({ ...props }) => {
|
|
14050
|
-
return /* @__PURE__ */
|
|
14029
|
+
return /* @__PURE__ */ jsxs49(
|
|
14051
14030
|
"svg",
|
|
14052
14031
|
{
|
|
14053
14032
|
width: "214",
|
|
@@ -14060,7 +14039,7 @@ var BrokenImage = ({ ...props }) => {
|
|
|
14060
14039
|
children: [
|
|
14061
14040
|
/* @__PURE__ */ jsx75("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
14062
14041
|
/* @__PURE__ */ jsx75("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
14063
|
-
/* @__PURE__ */
|
|
14042
|
+
/* @__PURE__ */ jsxs49("defs", { children: [
|
|
14064
14043
|
/* @__PURE__ */ jsx75("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx75("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
14065
14044
|
/* @__PURE__ */ jsx75(
|
|
14066
14045
|
"image",
|
|
@@ -14114,7 +14093,7 @@ var ParameterImageInner = forwardRef9(
|
|
|
14114
14093
|
useEffect8(() => {
|
|
14115
14094
|
updateImageSrc();
|
|
14116
14095
|
}, [value]);
|
|
14117
|
-
return /* @__PURE__ */
|
|
14096
|
+
return /* @__PURE__ */ jsxs49(Fragment10, { children: [
|
|
14118
14097
|
/* @__PURE__ */ jsx75(
|
|
14119
14098
|
"input",
|
|
14120
14099
|
{
|
|
@@ -14127,7 +14106,7 @@ var ParameterImageInner = forwardRef9(
|
|
|
14127
14106
|
...props
|
|
14128
14107
|
}
|
|
14129
14108
|
),
|
|
14130
|
-
/* @__PURE__ */
|
|
14109
|
+
/* @__PURE__ */ jsxs49("div", { css: imageWrapper, children: [
|
|
14131
14110
|
deferredValue && !errorMessage ? /* @__PURE__ */ jsx75(
|
|
14132
14111
|
"img",
|
|
14133
14112
|
{
|
|
@@ -14172,7 +14151,7 @@ var ParameterInputInner = forwardRef10(
|
|
|
14172
14151
|
|
|
14173
14152
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
14174
14153
|
import { forwardRef as forwardRef11 } from "react";
|
|
14175
|
-
import { jsx as jsx77, jsxs as
|
|
14154
|
+
import { jsx as jsx77, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
14176
14155
|
var ParameterLink = forwardRef11(
|
|
14177
14156
|
({ buttonText = "Select project map node", disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
14178
14157
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
@@ -14199,7 +14178,7 @@ var ParameterLink = forwardRef11(
|
|
|
14199
14178
|
var ParameterLinkInner = forwardRef11(
|
|
14200
14179
|
({ externalLink, onConnectLink, disabled, ...props }, ref) => {
|
|
14201
14180
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14202
|
-
return /* @__PURE__ */
|
|
14181
|
+
return /* @__PURE__ */ jsxs50("div", { css: inputWrapper, children: [
|
|
14203
14182
|
/* @__PURE__ */ jsx77(
|
|
14204
14183
|
"input",
|
|
14205
14184
|
{
|
|
@@ -14239,7 +14218,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14239
14218
|
);
|
|
14240
14219
|
|
|
14241
14220
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
14242
|
-
import { Fragment as Fragment11, jsx as jsx78, jsxs as
|
|
14221
|
+
import { Fragment as Fragment11, jsx as jsx78, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
14243
14222
|
var ParameterNameAndPublicIdInput = ({
|
|
14244
14223
|
id,
|
|
14245
14224
|
onBlur,
|
|
@@ -14265,7 +14244,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14265
14244
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
14266
14245
|
};
|
|
14267
14246
|
autoFocus == null ? void 0 : autoFocus();
|
|
14268
|
-
return /* @__PURE__ */
|
|
14247
|
+
return /* @__PURE__ */ jsxs51(Fragment11, { children: [
|
|
14269
14248
|
/* @__PURE__ */ jsx78(
|
|
14270
14249
|
ParameterInput,
|
|
14271
14250
|
{
|
|
@@ -14317,7 +14296,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
14317
14296
|
|
|
14318
14297
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
14319
14298
|
import { forwardRef as forwardRef12 } from "react";
|
|
14320
|
-
import { Fragment as Fragment12, jsx as jsx79, jsxs as
|
|
14299
|
+
import { Fragment as Fragment12, jsx as jsx79, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
14321
14300
|
var ParameterRichText = forwardRef12(
|
|
14322
14301
|
({
|
|
14323
14302
|
label,
|
|
@@ -14331,7 +14310,7 @@ var ParameterRichText = forwardRef12(
|
|
|
14331
14310
|
menuItems,
|
|
14332
14311
|
...props
|
|
14333
14312
|
}, ref) => {
|
|
14334
|
-
return /* @__PURE__ */
|
|
14313
|
+
return /* @__PURE__ */ jsxs52(
|
|
14335
14314
|
ParameterShell,
|
|
14336
14315
|
{
|
|
14337
14316
|
"data-test-id": "parameter-input",
|
|
@@ -14367,7 +14346,7 @@ var ParameterRichTextInner = forwardRef12(({ ...props }, ref) => {
|
|
|
14367
14346
|
|
|
14368
14347
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
14369
14348
|
import { forwardRef as forwardRef13 } from "react";
|
|
14370
|
-
import { jsx as jsx80, jsxs as
|
|
14349
|
+
import { jsx as jsx80, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
14371
14350
|
var ParameterSelect = forwardRef13(
|
|
14372
14351
|
({ defaultOption, options, ...props }, ref) => {
|
|
14373
14352
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
@@ -14377,7 +14356,7 @@ var ParameterSelect = forwardRef13(
|
|
|
14377
14356
|
var ParameterSelectInner = forwardRef13(
|
|
14378
14357
|
({ defaultOption, options, ...props }, ref) => {
|
|
14379
14358
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
14380
|
-
return /* @__PURE__ */
|
|
14359
|
+
return /* @__PURE__ */ jsxs53(
|
|
14381
14360
|
"select",
|
|
14382
14361
|
{
|
|
14383
14362
|
css: [input2, selectInput],
|
|
@@ -14420,7 +14399,7 @@ var ParameterTextareaInner = forwardRef14(({ ...props }, ref) => {
|
|
|
14420
14399
|
|
|
14421
14400
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
14422
14401
|
import { forwardRef as forwardRef15 } from "react";
|
|
14423
|
-
import { jsx as jsx82, jsxs as
|
|
14402
|
+
import { jsx as jsx82, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
14424
14403
|
var ParameterToggle = forwardRef15((props, ref) => {
|
|
14425
14404
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14426
14405
|
return /* @__PURE__ */ jsx82(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx82(ParameterToggleInner, { ref, ...innerProps }) });
|
|
@@ -14428,7 +14407,7 @@ var ParameterToggle = forwardRef15((props, ref) => {
|
|
|
14428
14407
|
var ParameterToggleInner = forwardRef15(
|
|
14429
14408
|
({ ...props }, ref) => {
|
|
14430
14409
|
const { id, label } = useParameterShell();
|
|
14431
|
-
return /* @__PURE__ */
|
|
14410
|
+
return /* @__PURE__ */ jsxs54("label", { css: inputToggleLabel2, children: [
|
|
14432
14411
|
/* @__PURE__ */ jsx82("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
14433
14412
|
/* @__PURE__ */ jsx82("span", { css: inlineLabel2, children: label })
|
|
14434
14413
|
] });
|
|
@@ -14463,7 +14442,7 @@ var Popover = css59`
|
|
|
14463
14442
|
`;
|
|
14464
14443
|
|
|
14465
14444
|
// src/components/Popover/Popover.tsx
|
|
14466
|
-
import { Fragment as Fragment13, jsx as jsx83, jsxs as
|
|
14445
|
+
import { Fragment as Fragment13, jsx as jsx83, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
14467
14446
|
var Popover2 = ({
|
|
14468
14447
|
iconColor = "green",
|
|
14469
14448
|
buttonText,
|
|
@@ -14472,8 +14451,8 @@ var Popover2 = ({
|
|
|
14472
14451
|
children
|
|
14473
14452
|
}) => {
|
|
14474
14453
|
const popover = usePopoverState({ placement });
|
|
14475
|
-
return /* @__PURE__ */
|
|
14476
|
-
/* @__PURE__ */
|
|
14454
|
+
return /* @__PURE__ */ jsxs55(Fragment13, { children: [
|
|
14455
|
+
/* @__PURE__ */ jsxs55(PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, children: [
|
|
14477
14456
|
/* @__PURE__ */ jsx83(Icon, { icon: "info", iconColor, size: "1rem" }),
|
|
14478
14457
|
/* @__PURE__ */ jsx83("span", { hidden: true, children: buttonText })
|
|
14479
14458
|
] }),
|
|
@@ -14501,7 +14480,7 @@ var progressListItemStyles = css60`
|
|
|
14501
14480
|
`;
|
|
14502
14481
|
|
|
14503
14482
|
// src/components/ProgressList/ProgressList.tsx
|
|
14504
|
-
import { jsx as jsx84, jsxs as
|
|
14483
|
+
import { jsx as jsx84, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
14505
14484
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
14506
14485
|
const itemsWithStatus = useMemo2(() => {
|
|
14507
14486
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -14574,9 +14553,9 @@ var ProgressListItem = ({
|
|
|
14574
14553
|
};
|
|
14575
14554
|
return colorPerStatus[status];
|
|
14576
14555
|
}, [status, error, errorLevel]);
|
|
14577
|
-
return /* @__PURE__ */
|
|
14556
|
+
return /* @__PURE__ */ jsxs56("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
14578
14557
|
/* @__PURE__ */ jsx84(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx84("div", { children: /* @__PURE__ */ jsx84(Icon2, { size: 20 }) }) }),
|
|
14579
|
-
/* @__PURE__ */
|
|
14558
|
+
/* @__PURE__ */ jsxs56("div", { children: [
|
|
14580
14559
|
children,
|
|
14581
14560
|
/* @__PURE__ */ jsx84("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
14582
14561
|
] })
|
|
@@ -14711,15 +14690,15 @@ var SwitchText = css63`
|
|
|
14711
14690
|
`;
|
|
14712
14691
|
|
|
14713
14692
|
// src/components/Switch/Switch.tsx
|
|
14714
|
-
import { Fragment as Fragment14, jsx as jsx86, jsxs as
|
|
14693
|
+
import { Fragment as Fragment14, jsx as jsx86, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
14715
14694
|
var Switch = React17.forwardRef(
|
|
14716
14695
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
14717
14696
|
let additionalText = infoText;
|
|
14718
14697
|
if (infoText && toggleText) {
|
|
14719
14698
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
14720
14699
|
}
|
|
14721
|
-
return /* @__PURE__ */
|
|
14722
|
-
/* @__PURE__ */
|
|
14700
|
+
return /* @__PURE__ */ jsxs57(Fragment14, { children: [
|
|
14701
|
+
/* @__PURE__ */ jsxs57("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
14723
14702
|
/* @__PURE__ */ jsx86("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
14724
14703
|
/* @__PURE__ */ jsx86("span", { css: SwitchInputLabel, children: label })
|
|
14725
14704
|
] }),
|
package/dist/index.js
CHANGED
|
@@ -611,15 +611,11 @@ var inputSelect = import_react4.css`
|
|
|
611
611
|
background-size: 1rem;
|
|
612
612
|
padding-right: var(--spacing-xl);
|
|
613
613
|
`;
|
|
614
|
-
var
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
var inputSearchCloseIcon = import_react4.css`
|
|
620
|
-
color: var(--brand-primary-2);
|
|
621
|
-
height: 1.5rem;
|
|
622
|
-
width: 1.5rem;
|
|
614
|
+
var inputSearchCloseBtn = import_react4.css`
|
|
615
|
+
background: none;
|
|
616
|
+
border: none;
|
|
617
|
+
padding: 0;
|
|
618
|
+
pointer-events: all;
|
|
623
619
|
`;
|
|
624
620
|
var inputToggleLabel = import_react4.css`
|
|
625
621
|
align-items: flex-start;
|
|
@@ -12334,24 +12330,7 @@ var InputKeywordSearch = ({
|
|
|
12334
12330
|
placeholder,
|
|
12335
12331
|
showLabel: false,
|
|
12336
12332
|
value,
|
|
12337
|
-
icon: value ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("button", {
|
|
12338
|
-
"svg",
|
|
12339
|
-
{
|
|
12340
|
-
width: "26",
|
|
12341
|
-
height: "24",
|
|
12342
|
-
viewBox: "0 0 26 24",
|
|
12343
|
-
fill: "currentColor",
|
|
12344
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
12345
|
-
css: inputSearchIcon,
|
|
12346
|
-
children: [
|
|
12347
|
-
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("g", { clipPath: "url(#clip0)", children: [
|
|
12348
|
-
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { d: "M11.539 0C5.48429 0 0.558105 4.74145 0.558105 10.5691C0.558105 16.3971 5.48429 21.1382 11.539 21.1382C17.594 21.1382 22.5199 16.3971 22.5199 10.5691C22.5199 4.74145 17.594 0 11.539 0ZM11.539 19.187C6.60198 19.187 2.58535 15.321 2.58535 10.5691C2.58535 5.81728 6.60198 1.95122 11.539 1.95122C16.476 1.95122 20.4926 5.81723 20.4926 10.5691C20.4926 15.321 16.476 19.187 11.539 19.187Z" }),
|
|
12349
|
-
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { d: "M25.196 22.3344L19.3846 16.7409C18.9886 16.3598 18.3473 16.3598 17.9513 16.7409C17.5553 17.1217 17.5553 17.7397 17.9513 18.1205L23.7627 23.714C23.9607 23.9045 24.2199 23.9998 24.4794 23.9998C24.7385 23.9998 24.998 23.9045 25.196 23.714C25.592 23.3332 25.592 22.7153 25.196 22.3344Z" })
|
|
12350
|
-
] }),
|
|
12351
|
-
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("clipPath", { id: "clip0", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("rect", { width: "24.9351", height: "24", fill: "white", transform: "translate(0.558105)" }) }) })
|
|
12352
|
-
]
|
|
12353
|
-
}
|
|
12354
|
-
),
|
|
12333
|
+
icon: value ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("button", { css: inputSearchCloseBtn, onClick: onClear, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon, { icon: "close", iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon, { icon: "search", iconColor: "gray", size: "1rem" }),
|
|
12355
12334
|
onChange: handleSearchTextChanged,
|
|
12356
12335
|
onKeyPress: preventSubmitOnField,
|
|
12357
12336
|
disabled,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.28.0",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "97d916ca20965e8a86d2454847114068895ccddd"
|
|
58
58
|
}
|