@uniformdev/design-system 19.11.0 → 19.13.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 +570 -509
- package/dist/index.d.ts +32 -24
- package/dist/index.js +664 -602
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -10521,6 +10521,7 @@ var AnimationFile = ({
|
|
|
10521
10521
|
Lottie,
|
|
10522
10522
|
{
|
|
10523
10523
|
role: "graphics-symbol",
|
|
10524
|
+
"data-test-id": "graphic-loader",
|
|
10524
10525
|
"aria-label": label,
|
|
10525
10526
|
autoPlay: autoplay,
|
|
10526
10527
|
loop,
|
|
@@ -11445,7 +11446,14 @@ var calloutTypeDataMap = {
|
|
|
11445
11446
|
`
|
|
11446
11447
|
}
|
|
11447
11448
|
};
|
|
11448
|
-
var Callout = ({
|
|
11449
|
+
var Callout = ({
|
|
11450
|
+
type = "info",
|
|
11451
|
+
compact = false,
|
|
11452
|
+
title,
|
|
11453
|
+
children,
|
|
11454
|
+
className,
|
|
11455
|
+
testId
|
|
11456
|
+
}) => {
|
|
11449
11457
|
const calloutTypeData = calloutTypeDataMap[type];
|
|
11450
11458
|
if (!calloutTypeData) {
|
|
11451
11459
|
return null;
|
|
@@ -11454,7 +11462,7 @@ var Callout = ({ type = "info", compact = false, title, children, className }) =
|
|
|
11454
11462
|
return /* @__PURE__ */ jsx27(
|
|
11455
11463
|
"div",
|
|
11456
11464
|
{
|
|
11457
|
-
"data-testid": "sdk-ui-callout",
|
|
11465
|
+
"data-testid": testId ? testId : "sdk-ui-callout",
|
|
11458
11466
|
css: [
|
|
11459
11467
|
calloutContainer,
|
|
11460
11468
|
calloutTypeData.containerStyles,
|
|
@@ -11634,6 +11642,9 @@ var Container2 = ({
|
|
|
11634
11642
|
);
|
|
11635
11643
|
};
|
|
11636
11644
|
|
|
11645
|
+
// src/components/Layout/HorizontalRhythm.tsx
|
|
11646
|
+
import { css as css30 } from "@emotion/react";
|
|
11647
|
+
|
|
11637
11648
|
// src/components/Layout/styles/HorizontalRhythm.styles.ts
|
|
11638
11649
|
import { css as css29 } from "@emotion/react";
|
|
11639
11650
|
var HorizontalRhythmContainer = (size) => css29`
|
|
@@ -11643,22 +11654,29 @@ var HorizontalRhythmContainer = (size) => css29`
|
|
|
11643
11654
|
|
|
11644
11655
|
// src/components/Layout/HorizontalRhythm.tsx
|
|
11645
11656
|
import { jsx as jsx31 } from "@emotion/react/jsx-runtime";
|
|
11646
|
-
var HorizontalRhythm = ({
|
|
11647
|
-
tag = "div",
|
|
11648
|
-
gap = "base",
|
|
11649
|
-
children,
|
|
11650
|
-
...props
|
|
11651
|
-
}) => {
|
|
11657
|
+
var HorizontalRhythm = ({ align, tag = "div", gap = "base", children, ...props }) => {
|
|
11652
11658
|
const Tag = tag;
|
|
11653
|
-
return /* @__PURE__ */ jsx31(
|
|
11659
|
+
return /* @__PURE__ */ jsx31(
|
|
11660
|
+
Tag,
|
|
11661
|
+
{
|
|
11662
|
+
css: [
|
|
11663
|
+
HorizontalRhythmContainer(gap),
|
|
11664
|
+
align ? css30`
|
|
11665
|
+
align-items: ${align};
|
|
11666
|
+
` : void 0
|
|
11667
|
+
],
|
|
11668
|
+
...props,
|
|
11669
|
+
children
|
|
11670
|
+
}
|
|
11671
|
+
);
|
|
11654
11672
|
};
|
|
11655
11673
|
|
|
11656
11674
|
// src/components/Layout/styles/TwoColumnLayout.styles.ts
|
|
11657
|
-
import { css as
|
|
11658
|
-
var TwoColumnLayoutContainer = (bgColor) =>
|
|
11675
|
+
import { css as css31 } from "@emotion/react";
|
|
11676
|
+
var TwoColumnLayoutContainer = (bgColor) => css31`
|
|
11659
11677
|
background: ${bgColor};
|
|
11660
11678
|
`;
|
|
11661
|
-
var TwoColumnLayoutInner = (invertLayout) =>
|
|
11679
|
+
var TwoColumnLayoutInner = (invertLayout) => css31`
|
|
11662
11680
|
display: grid;
|
|
11663
11681
|
max-width: var(--site-width);
|
|
11664
11682
|
margin-inline: auto;
|
|
@@ -11674,8 +11692,8 @@ var TwoColumnLayoutInner = (invertLayout) => css30`
|
|
|
11674
11692
|
}`}
|
|
11675
11693
|
}
|
|
11676
11694
|
`;
|
|
11677
|
-
var TwoColumnLayoutMain =
|
|
11678
|
-
var TwoColumnLayoutSupporting =
|
|
11695
|
+
var TwoColumnLayoutMain = css31``;
|
|
11696
|
+
var TwoColumnLayoutSupporting = css31`
|
|
11679
11697
|
display: flex;
|
|
11680
11698
|
flex-direction: column;
|
|
11681
11699
|
gap: var(--spacing-lg);
|
|
@@ -11695,9 +11713,12 @@ var TwoColumnLayout = ({
|
|
|
11695
11713
|
] }) });
|
|
11696
11714
|
};
|
|
11697
11715
|
|
|
11716
|
+
// src/components/Layout/VerticalRhythm.tsx
|
|
11717
|
+
import { css as css33 } from "@emotion/react";
|
|
11718
|
+
|
|
11698
11719
|
// src/components/Layout/styles/VerticalRhythm.styles.ts
|
|
11699
|
-
import { css as
|
|
11700
|
-
var VerticalRhythmContainer = (size) =>
|
|
11720
|
+
import { css as css32 } from "@emotion/react";
|
|
11721
|
+
var VerticalRhythmContainer = (size) => css32`
|
|
11701
11722
|
display: flex;
|
|
11702
11723
|
flex-direction: column;
|
|
11703
11724
|
gap: var(--spacing-${size});
|
|
@@ -11705,14 +11726,26 @@ var VerticalRhythmContainer = (size) => css31`
|
|
|
11705
11726
|
|
|
11706
11727
|
// src/components/Layout/VerticalRhythm.tsx
|
|
11707
11728
|
import { jsx as jsx33 } from "@emotion/react/jsx-runtime";
|
|
11708
|
-
var VerticalRhythm = ({ tag = "div", gap = "base", children, ...props }) => {
|
|
11729
|
+
var VerticalRhythm = ({ align, tag = "div", gap = "base", children, ...props }) => {
|
|
11709
11730
|
const Tag = tag;
|
|
11710
|
-
return /* @__PURE__ */ jsx33(
|
|
11731
|
+
return /* @__PURE__ */ jsx33(
|
|
11732
|
+
Tag,
|
|
11733
|
+
{
|
|
11734
|
+
css: [
|
|
11735
|
+
VerticalRhythmContainer(gap),
|
|
11736
|
+
align ? css33`
|
|
11737
|
+
align-items: ${align};
|
|
11738
|
+
` : void 0
|
|
11739
|
+
],
|
|
11740
|
+
...props,
|
|
11741
|
+
children
|
|
11742
|
+
}
|
|
11743
|
+
);
|
|
11711
11744
|
};
|
|
11712
11745
|
|
|
11713
11746
|
// src/components/Card/LoadingCardSkeleton.styles.ts
|
|
11714
|
-
import { css as
|
|
11715
|
-
var LoadingCardSkeleton =
|
|
11747
|
+
import { css as css34 } from "@emotion/react";
|
|
11748
|
+
var LoadingCardSkeleton = css34`
|
|
11716
11749
|
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
11717
11750
|
color: var(--gray-400);
|
|
11718
11751
|
border-radius: var(--rounded-base);
|
|
@@ -11720,21 +11753,21 @@ var LoadingCardSkeleton = css32`
|
|
|
11720
11753
|
min-height: 160px;
|
|
11721
11754
|
position: relative;
|
|
11722
11755
|
`;
|
|
11723
|
-
var LoadingText =
|
|
11756
|
+
var LoadingText = css34`
|
|
11724
11757
|
animation: ${fadeIn} 1s linear infinite alternate;
|
|
11725
11758
|
border-radius: var(--rounded-base);
|
|
11726
11759
|
background: var(--gray-300);
|
|
11727
11760
|
display: block;
|
|
11728
11761
|
`;
|
|
11729
|
-
var LoadingTitle =
|
|
11762
|
+
var LoadingTitle = css34`
|
|
11730
11763
|
width: clamp(200px, 100vw, 60%);
|
|
11731
11764
|
height: var(--spacing-md);
|
|
11732
11765
|
`;
|
|
11733
|
-
var LoadingTimeStamp =
|
|
11766
|
+
var LoadingTimeStamp = css34`
|
|
11734
11767
|
width: clamp(200px, 100vw, 30%);
|
|
11735
11768
|
height: var(--spacing-sm);
|
|
11736
11769
|
`;
|
|
11737
|
-
var LoadingMenuIcon =
|
|
11770
|
+
var LoadingMenuIcon = css34`
|
|
11738
11771
|
animation: ${fadeIn} 1s linear infinite alternate;
|
|
11739
11772
|
position: absolute;
|
|
11740
11773
|
top: var(--spacing-md);
|
|
@@ -11755,8 +11788,8 @@ var LoadingCardSkeleton2 = () => {
|
|
|
11755
11788
|
import { CgClose as CgClose3 } from "react-icons/cg";
|
|
11756
11789
|
|
|
11757
11790
|
// src/components/Chip/Chip.styles.ts
|
|
11758
|
-
import { css as
|
|
11759
|
-
var ChipContainer =
|
|
11791
|
+
import { css as css35 } from "@emotion/react";
|
|
11792
|
+
var ChipContainer = css35`
|
|
11760
11793
|
border-radius: var(--rounded-full);
|
|
11761
11794
|
background: lime;
|
|
11762
11795
|
cursor: pointer;
|
|
@@ -11774,20 +11807,20 @@ var ChipContainer = css33`
|
|
|
11774
11807
|
}
|
|
11775
11808
|
}
|
|
11776
11809
|
`;
|
|
11777
|
-
var ChipText =
|
|
11810
|
+
var ChipText = css35`
|
|
11778
11811
|
line-height: 1;
|
|
11779
11812
|
`;
|
|
11780
|
-
var ChipIcon =
|
|
11813
|
+
var ChipIcon = css35`
|
|
11781
11814
|
align-items: center;
|
|
11782
11815
|
display: flex;
|
|
11783
11816
|
opacity: var(--opacity-50);
|
|
11784
11817
|
`;
|
|
11785
|
-
var ChipSeparator =
|
|
11818
|
+
var ChipSeparator = css35`
|
|
11786
11819
|
display: flex;
|
|
11787
11820
|
border-right: 1px solid var(--white);
|
|
11788
11821
|
opacity: var(--opacity-50);
|
|
11789
11822
|
`;
|
|
11790
|
-
var ChipTiny =
|
|
11823
|
+
var ChipTiny = css35`
|
|
11791
11824
|
font-size: var(--fs-xs);
|
|
11792
11825
|
padding-inline: var(--spacing-sm);
|
|
11793
11826
|
|
|
@@ -11795,7 +11828,7 @@ var ChipTiny = css33`
|
|
|
11795
11828
|
padding-block: var(--spacing-xs);
|
|
11796
11829
|
}
|
|
11797
11830
|
`;
|
|
11798
|
-
var ChipSmall =
|
|
11831
|
+
var ChipSmall = css35`
|
|
11799
11832
|
font-size: var(--fs-sm);
|
|
11800
11833
|
padding-inline: var(--spacing-base);
|
|
11801
11834
|
|
|
@@ -11803,7 +11836,7 @@ var ChipSmall = css33`
|
|
|
11803
11836
|
padding-block: var(--spacing-sm);
|
|
11804
11837
|
}
|
|
11805
11838
|
`;
|
|
11806
|
-
var ChipMedium =
|
|
11839
|
+
var ChipMedium = css35`
|
|
11807
11840
|
font-size: var(--fs-base);
|
|
11808
11841
|
padding-inline: var(--spacing-base);
|
|
11809
11842
|
|
|
@@ -11811,7 +11844,7 @@ var ChipMedium = css33`
|
|
|
11811
11844
|
padding-block: var(--spacing-sm);
|
|
11812
11845
|
}
|
|
11813
11846
|
`;
|
|
11814
|
-
var ChipThemeAccentLight =
|
|
11847
|
+
var ChipThemeAccentLight = css35`
|
|
11815
11848
|
background: var(--accent-light);
|
|
11816
11849
|
color: var(--brand-secondary-1);
|
|
11817
11850
|
|
|
@@ -11834,7 +11867,7 @@ var ChipThemeAccentLight = css33`
|
|
|
11834
11867
|
color: var(--accent-light);
|
|
11835
11868
|
}
|
|
11836
11869
|
`;
|
|
11837
|
-
var ChipThemeAccentDark =
|
|
11870
|
+
var ChipThemeAccentDark = css35`
|
|
11838
11871
|
background: var(--accent-dark);
|
|
11839
11872
|
color: var(--white);
|
|
11840
11873
|
|
|
@@ -11853,7 +11886,7 @@ var ChipThemeAccentDark = css33`
|
|
|
11853
11886
|
color: var(--white);
|
|
11854
11887
|
}
|
|
11855
11888
|
`;
|
|
11856
|
-
var ChipAltThemeAccentLight =
|
|
11889
|
+
var ChipAltThemeAccentLight = css35`
|
|
11857
11890
|
background: var(--accent-alt-light);
|
|
11858
11891
|
color: var(--brand-secondary-1);
|
|
11859
11892
|
|
|
@@ -11876,7 +11909,7 @@ var ChipAltThemeAccentLight = css33`
|
|
|
11876
11909
|
color: var(--accent-alt-light);
|
|
11877
11910
|
}
|
|
11878
11911
|
`;
|
|
11879
|
-
var ChipAltThemeAccentDark =
|
|
11912
|
+
var ChipAltThemeAccentDark = css35`
|
|
11880
11913
|
background: var(--accent-alt-dark);
|
|
11881
11914
|
color: var(--white);
|
|
11882
11915
|
|
|
@@ -11895,7 +11928,7 @@ var ChipAltThemeAccentDark = css33`
|
|
|
11895
11928
|
color: var(--white);
|
|
11896
11929
|
}
|
|
11897
11930
|
`;
|
|
11898
|
-
var ChipThemeNeutralLight =
|
|
11931
|
+
var ChipThemeNeutralLight = css35`
|
|
11899
11932
|
background: var(--gray-100);
|
|
11900
11933
|
color: var(--brand-secondary-1);
|
|
11901
11934
|
|
|
@@ -11904,7 +11937,7 @@ var ChipThemeNeutralLight = css33`
|
|
|
11904
11937
|
background: var(--gray-400);
|
|
11905
11938
|
}
|
|
11906
11939
|
`;
|
|
11907
|
-
var ChipThemeNeutralDark =
|
|
11940
|
+
var ChipThemeNeutralDark = css35`
|
|
11908
11941
|
background: var(--gray-700);
|
|
11909
11942
|
color: var(--white);
|
|
11910
11943
|
|
|
@@ -11917,7 +11950,7 @@ var ChipThemeNeutralDark = css33`
|
|
|
11917
11950
|
background: var(--gray-900);
|
|
11918
11951
|
}
|
|
11919
11952
|
`;
|
|
11920
|
-
var ChipActionButton =
|
|
11953
|
+
var ChipActionButton = css35`
|
|
11921
11954
|
background: transparent;
|
|
11922
11955
|
border: none;
|
|
11923
11956
|
border-radius: 0 var(--rounded-full) var(--rounded-full) 0;
|
|
@@ -11971,8 +12004,8 @@ var DismissibleChipAction = ({ onDismiss, ...props }) => {
|
|
|
11971
12004
|
};
|
|
11972
12005
|
|
|
11973
12006
|
// src/components/Counter/Counter.styles.ts
|
|
11974
|
-
import { css as
|
|
11975
|
-
var counterContainer = (bgColor) =>
|
|
12007
|
+
import { css as css36 } from "@emotion/react";
|
|
12008
|
+
var counterContainer = (bgColor) => css36`
|
|
11976
12009
|
align-items: center;
|
|
11977
12010
|
border-radius: var(--rounded-full);
|
|
11978
12011
|
border: 1px solid var(--gray-300);
|
|
@@ -11985,16 +12018,16 @@ var counterContainer = (bgColor) => css34`
|
|
|
11985
12018
|
width: var(--spacing-base);
|
|
11986
12019
|
height: var(--spacing-base);
|
|
11987
12020
|
`;
|
|
11988
|
-
var counterZeroValue =
|
|
12021
|
+
var counterZeroValue = css36`
|
|
11989
12022
|
background: var(--brand-secondary-1);
|
|
11990
12023
|
border-radius: var(--rounded-full);
|
|
11991
12024
|
width: 2px;
|
|
11992
12025
|
height: 2px;
|
|
11993
12026
|
`;
|
|
11994
|
-
var counterTripleValue =
|
|
12027
|
+
var counterTripleValue = css36`
|
|
11995
12028
|
position: relative;
|
|
11996
12029
|
`;
|
|
11997
|
-
var counterIcon =
|
|
12030
|
+
var counterIcon = css36`
|
|
11998
12031
|
border-radius: var(--rounded-full);
|
|
11999
12032
|
background: var(--white);
|
|
12000
12033
|
color: var(--brand-secondary-3);
|
|
@@ -12019,7 +12052,7 @@ var Counter = ({ count, bgColor = "transparent", ...props }) => {
|
|
|
12019
12052
|
};
|
|
12020
12053
|
|
|
12021
12054
|
// src/components/DashedBox/DashedBox.styles.ts
|
|
12022
|
-
import { css as
|
|
12055
|
+
import { css as css37 } from "@emotion/react";
|
|
12023
12056
|
var minHeight = (prop) => {
|
|
12024
12057
|
const values = {
|
|
12025
12058
|
auto: "auto",
|
|
@@ -12038,7 +12071,7 @@ var alignItemsConvert = (props) => {
|
|
|
12038
12071
|
};
|
|
12039
12072
|
return alignment[props];
|
|
12040
12073
|
};
|
|
12041
|
-
var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) =>
|
|
12074
|
+
var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) => css37`
|
|
12042
12075
|
align-items: ${alignItemsConvert(textAlign)};
|
|
12043
12076
|
border: 2px dashed var(--gray-300);
|
|
12044
12077
|
border-radius: var(--rounded-base);
|
|
@@ -12068,8 +12101,8 @@ var DashedBox = ({
|
|
|
12068
12101
|
import * as React8 from "react";
|
|
12069
12102
|
|
|
12070
12103
|
// src/components/Details/Details.styles.ts
|
|
12071
|
-
import { css as
|
|
12072
|
-
var details =
|
|
12104
|
+
import { css as css38 } from "@emotion/react";
|
|
12105
|
+
var details = css38`
|
|
12073
12106
|
cursor: pointer;
|
|
12074
12107
|
&[open] {
|
|
12075
12108
|
& > summary svg {
|
|
@@ -12077,11 +12110,11 @@ var details = css36`
|
|
|
12077
12110
|
}
|
|
12078
12111
|
}
|
|
12079
12112
|
`;
|
|
12080
|
-
var detailsContent =
|
|
12113
|
+
var detailsContent = css38`
|
|
12081
12114
|
animation: ${fadeInRtl} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
12082
12115
|
will-change: height;
|
|
12083
12116
|
`;
|
|
12084
|
-
var summary =
|
|
12117
|
+
var summary = css38`
|
|
12085
12118
|
align-items: center;
|
|
12086
12119
|
display: grid;
|
|
12087
12120
|
grid-template-columns: 1.25rem 1fr;
|
|
@@ -12094,11 +12127,11 @@ var summary = css36`
|
|
|
12094
12127
|
display: none;
|
|
12095
12128
|
}
|
|
12096
12129
|
`;
|
|
12097
|
-
var summaryIcon =
|
|
12130
|
+
var summaryIcon = css38`
|
|
12098
12131
|
transition: rotate var(--duration-fast) var(--timing-ease-out);
|
|
12099
12132
|
rotate: -90deg;
|
|
12100
12133
|
`;
|
|
12101
|
-
var summaryIconVisiblyHidden =
|
|
12134
|
+
var summaryIconVisiblyHidden = css38`
|
|
12102
12135
|
visibility: hidden;
|
|
12103
12136
|
`;
|
|
12104
12137
|
|
|
@@ -12145,8 +12178,8 @@ import React11, { useEffect as useEffect6, useMemo, useRef as useRef2 } from "re
|
|
|
12145
12178
|
import { CgChevronRight } from "react-icons/cg";
|
|
12146
12179
|
|
|
12147
12180
|
// src/components/Drawer/Drawer.styles.ts
|
|
12148
|
-
import { css as
|
|
12149
|
-
var drawerStyles = (bgColor = "var(--white)") =>
|
|
12181
|
+
import { css as css39, keyframes as keyframes2 } from "@emotion/react";
|
|
12182
|
+
var drawerStyles = (bgColor = "var(--white)") => css39`
|
|
12150
12183
|
background-color: ${bgColor};
|
|
12151
12184
|
display: flex;
|
|
12152
12185
|
gap: var(--spacing-sm);
|
|
@@ -12156,7 +12189,7 @@ var drawerStyles = (bgColor = "var(--white)") => css37`
|
|
|
12156
12189
|
padding-top: var(--spacing-sm);
|
|
12157
12190
|
height: 100%;
|
|
12158
12191
|
`;
|
|
12159
|
-
var drawerCloseButtonStyles =
|
|
12192
|
+
var drawerCloseButtonStyles = css39`
|
|
12160
12193
|
align-self: flex-end;
|
|
12161
12194
|
background: transparent;
|
|
12162
12195
|
border: none;
|
|
@@ -12164,17 +12197,17 @@ var drawerCloseButtonStyles = css37`
|
|
|
12164
12197
|
padding: var(--spacing-xs);
|
|
12165
12198
|
margin-right: var(--spacing-sm);
|
|
12166
12199
|
`;
|
|
12167
|
-
var drawerHeaderStyles =
|
|
12200
|
+
var drawerHeaderStyles = css39`
|
|
12168
12201
|
font-size: var(--fs-lg);
|
|
12169
12202
|
font-weight: var(--fw-bold);
|
|
12170
12203
|
padding-inline: var(--spacing-base);
|
|
12171
12204
|
`;
|
|
12172
|
-
var drawerRendererStyles =
|
|
12205
|
+
var drawerRendererStyles = css39`
|
|
12173
12206
|
inset: 0;
|
|
12174
12207
|
overflow: hidden;
|
|
12175
12208
|
z-index: 40;
|
|
12176
12209
|
`;
|
|
12177
|
-
var drawerInnerStyles =
|
|
12210
|
+
var drawerInnerStyles = css39`
|
|
12178
12211
|
height: 100%;
|
|
12179
12212
|
padding: 0 var(--spacing-base) var(--spacing-base);
|
|
12180
12213
|
overflow: auto;
|
|
@@ -12195,7 +12228,7 @@ var slideDrawerIn = keyframes2`
|
|
|
12195
12228
|
transform: translate(0);
|
|
12196
12229
|
}
|
|
12197
12230
|
`;
|
|
12198
|
-
var drawerWrapperStyles =
|
|
12231
|
+
var drawerWrapperStyles = css39`
|
|
12199
12232
|
position: absolute;
|
|
12200
12233
|
inset-block: 0;
|
|
12201
12234
|
right: 0;
|
|
@@ -12206,7 +12239,7 @@ var drawerWrapperStyles = css37`
|
|
|
12206
12239
|
transition: width var(--duration-fast) ease-out;
|
|
12207
12240
|
box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
|
|
12208
12241
|
`;
|
|
12209
|
-
var drawerWrapperOverlayStyles =
|
|
12242
|
+
var drawerWrapperOverlayStyles = css39`
|
|
12210
12243
|
position: absolute;
|
|
12211
12244
|
inset: 0;
|
|
12212
12245
|
background: rgba(31, 43, 52, 0.4);
|
|
@@ -12432,8 +12465,8 @@ var DrawerInner = ({
|
|
|
12432
12465
|
};
|
|
12433
12466
|
|
|
12434
12467
|
// src/components/Input/styles/CaptionText.styles.ts
|
|
12435
|
-
import { css as
|
|
12436
|
-
var CaptionText = (dynamicSize) =>
|
|
12468
|
+
import { css as css40 } from "@emotion/react";
|
|
12469
|
+
var CaptionText = (dynamicSize) => css40`
|
|
12437
12470
|
color: var(--gray-500);
|
|
12438
12471
|
display: block;
|
|
12439
12472
|
font-size: ${dynamicSize ? "clamp(var(--fs-xs), 87.5%,var(--fs-sm))" : "var(--fs-sm)"};
|
|
@@ -12451,20 +12484,20 @@ var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
|
|
|
12451
12484
|
import { forwardRef as forwardRef4 } from "react";
|
|
12452
12485
|
|
|
12453
12486
|
// src/components/Input/styles/CheckboxWithInfo.styles.ts
|
|
12454
|
-
import { css as
|
|
12455
|
-
var CheckboxWithInfoContainer =
|
|
12487
|
+
import { css as css41 } from "@emotion/react";
|
|
12488
|
+
var CheckboxWithInfoContainer = css41`
|
|
12456
12489
|
align-items: center;
|
|
12457
12490
|
display: flex;
|
|
12458
12491
|
gap: var(--spacing-sm);
|
|
12459
12492
|
`;
|
|
12460
|
-
var CheckboxWithInfoLabel =
|
|
12493
|
+
var CheckboxWithInfoLabel = css41`
|
|
12461
12494
|
align-items: center;
|
|
12462
12495
|
color: var(--gray-500);
|
|
12463
12496
|
display: flex;
|
|
12464
12497
|
font-size: var(--fs-xs);
|
|
12465
12498
|
gap: var(--spacing-sm);
|
|
12466
12499
|
`;
|
|
12467
|
-
var CheckboxWithInfoInput =
|
|
12500
|
+
var CheckboxWithInfoInput = css41`
|
|
12468
12501
|
appearance: none;
|
|
12469
12502
|
border: 1px solid var(--gray-300);
|
|
12470
12503
|
background: var(--white) no-repeat bottom center;
|
|
@@ -12497,7 +12530,7 @@ var CheckboxWithInfoInput = css39`
|
|
|
12497
12530
|
border-color: var(--gray-200);
|
|
12498
12531
|
}
|
|
12499
12532
|
`;
|
|
12500
|
-
var InfoDialogContainer =
|
|
12533
|
+
var InfoDialogContainer = css41`
|
|
12501
12534
|
position: relative;
|
|
12502
12535
|
|
|
12503
12536
|
&:hover {
|
|
@@ -12506,7 +12539,7 @@ var InfoDialogContainer = css39`
|
|
|
12506
12539
|
}
|
|
12507
12540
|
}
|
|
12508
12541
|
`;
|
|
12509
|
-
var InfoDialogMessage =
|
|
12542
|
+
var InfoDialogMessage = css41`
|
|
12510
12543
|
background: var(--white);
|
|
12511
12544
|
box-shadow: var(--shadow-base);
|
|
12512
12545
|
border-radius: var(--rounded-md);
|
|
@@ -12546,8 +12579,8 @@ var CheckboxWithInfo = forwardRef4(
|
|
|
12546
12579
|
import { MdWarning } from "react-icons/md";
|
|
12547
12580
|
|
|
12548
12581
|
// src/components/Input/styles/ErrorMessage.styles.ts
|
|
12549
|
-
import { css as
|
|
12550
|
-
var ErrorText =
|
|
12582
|
+
import { css as css42 } from "@emotion/react";
|
|
12583
|
+
var ErrorText = css42`
|
|
12551
12584
|
align-items: center;
|
|
12552
12585
|
color: var(--brand-secondary-5);
|
|
12553
12586
|
display: flex;
|
|
@@ -12558,7 +12591,7 @@ var ErrorText = css40`
|
|
|
12558
12591
|
import { jsx as jsx44, jsxs as jsxs25 } from "@emotion/react/jsx-runtime";
|
|
12559
12592
|
var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
12560
12593
|
return message ? /* @__PURE__ */ jsxs25("span", { role: "alert", css: ErrorText, "data-test-id": testId, ...otherProps, children: [
|
|
12561
|
-
/* @__PURE__ */ jsx44(Icon, { icon: MdWarning, size:
|
|
12594
|
+
/* @__PURE__ */ jsx44("span", { children: /* @__PURE__ */ jsx44(Icon, { icon: MdWarning, size: "1rem", iconColor: "currentColor" }) }),
|
|
12562
12595
|
message
|
|
12563
12596
|
] }) : null;
|
|
12564
12597
|
};
|
|
@@ -12567,9 +12600,9 @@ var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
|
12567
12600
|
import * as React12 from "react";
|
|
12568
12601
|
|
|
12569
12602
|
// src/components/Input/styles/Fieldset.styles.ts
|
|
12570
|
-
import { css as
|
|
12603
|
+
import { css as css43 } from "@emotion/react";
|
|
12571
12604
|
function fieldsetContainer(invert) {
|
|
12572
|
-
const base =
|
|
12605
|
+
const base = css43`
|
|
12573
12606
|
border-radius: var(--rounded-base);
|
|
12574
12607
|
border: 1px solid var(--gray-300);
|
|
12575
12608
|
|
|
@@ -12581,18 +12614,18 @@ function fieldsetContainer(invert) {
|
|
|
12581
12614
|
}
|
|
12582
12615
|
`;
|
|
12583
12616
|
return invert ? [
|
|
12584
|
-
|
|
12617
|
+
css43`
|
|
12585
12618
|
background: white;
|
|
12586
12619
|
`,
|
|
12587
12620
|
base
|
|
12588
12621
|
] : [
|
|
12589
|
-
|
|
12622
|
+
css43`
|
|
12590
12623
|
background: var(--gray-50);
|
|
12591
12624
|
`,
|
|
12592
12625
|
base
|
|
12593
12626
|
];
|
|
12594
12627
|
}
|
|
12595
|
-
var fieldsetLegend =
|
|
12628
|
+
var fieldsetLegend = css43`
|
|
12596
12629
|
align-items: center;
|
|
12597
12630
|
color: var(--brand-secondary-1);
|
|
12598
12631
|
display: flex;
|
|
@@ -12602,7 +12635,7 @@ var fieldsetLegend = css41`
|
|
|
12602
12635
|
margin-bottom: var(--spacing-base);
|
|
12603
12636
|
float: left; // allows the legend to be inside the fieldset and not sat on the border line
|
|
12604
12637
|
`;
|
|
12605
|
-
var fieldsetBody =
|
|
12638
|
+
var fieldsetBody = css43`
|
|
12606
12639
|
clear: left;
|
|
12607
12640
|
`;
|
|
12608
12641
|
|
|
@@ -12621,8 +12654,8 @@ var Fieldset = React12.forwardRef(
|
|
|
12621
12654
|
import { MdInfoOutline } from "react-icons/md";
|
|
12622
12655
|
|
|
12623
12656
|
// src/components/Input/styles/InfoMessage.styles.tsx
|
|
12624
|
-
import { css as
|
|
12625
|
-
var InfoText =
|
|
12657
|
+
import { css as css44 } from "@emotion/react";
|
|
12658
|
+
var InfoText = css44`
|
|
12626
12659
|
--info-desc: rgb(29, 78, 216);
|
|
12627
12660
|
--info-icon: rgb(96, 165, 250);
|
|
12628
12661
|
|
|
@@ -12631,7 +12664,7 @@ var InfoText = css42`
|
|
|
12631
12664
|
display: flex;
|
|
12632
12665
|
gap: var(--spacing-sm);
|
|
12633
12666
|
`;
|
|
12634
|
-
var InfoIcon2 =
|
|
12667
|
+
var InfoIcon2 = css44`
|
|
12635
12668
|
color: var(--info-icon);
|
|
12636
12669
|
`;
|
|
12637
12670
|
|
|
@@ -12639,7 +12672,7 @@ var InfoIcon2 = css42`
|
|
|
12639
12672
|
import { jsx as jsx46, jsxs as jsxs27 } from "@emotion/react/jsx-runtime";
|
|
12640
12673
|
var InfoMessage = ({ message, testId, ...props }) => {
|
|
12641
12674
|
return message ? /* @__PURE__ */ jsxs27("span", { role: "status", css: InfoText, "data-test-id": testId, ...props, children: [
|
|
12642
|
-
/* @__PURE__ */ jsx46(Icon, { css: InfoIcon2, icon: MdInfoOutline, size: "1rem", iconColor: "currentColor" }),
|
|
12675
|
+
/* @__PURE__ */ jsx46("span", { children: /* @__PURE__ */ jsx46(Icon, { css: InfoIcon2, icon: MdInfoOutline, size: "1rem", iconColor: "currentColor" }) }),
|
|
12643
12676
|
message
|
|
12644
12677
|
] }) : null;
|
|
12645
12678
|
};
|
|
@@ -12666,14 +12699,14 @@ var Label = ({ children, className, testId, ...props }) => {
|
|
|
12666
12699
|
import { MdWarning as MdWarning2 } from "react-icons/md";
|
|
12667
12700
|
|
|
12668
12701
|
// src/components/Input/styles/WarningMessage.styles.tsx
|
|
12669
|
-
import { css as
|
|
12670
|
-
var WarningText =
|
|
12702
|
+
import { css as css45 } from "@emotion/react";
|
|
12703
|
+
var WarningText = css45`
|
|
12671
12704
|
align-items: center;
|
|
12672
12705
|
color: var(--alert-text);
|
|
12673
12706
|
display: flex;
|
|
12674
12707
|
gap: var(--spacing-sm);
|
|
12675
12708
|
`;
|
|
12676
|
-
var WarningIcon =
|
|
12709
|
+
var WarningIcon = css45`
|
|
12677
12710
|
color: var(--alert);
|
|
12678
12711
|
`;
|
|
12679
12712
|
|
|
@@ -12681,7 +12714,7 @@ var WarningIcon = css43`
|
|
|
12681
12714
|
import { jsx as jsx48, jsxs as jsxs28 } from "@emotion/react/jsx-runtime";
|
|
12682
12715
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
12683
12716
|
return message ? /* @__PURE__ */ jsxs28("span", { role: "status", css: WarningText, "data-test-id": testId, ...props, children: [
|
|
12684
|
-
/* @__PURE__ */ jsx48(Icon, { css: WarningIcon, icon: MdWarning2, size: "1rem", iconColor: "currentColor" }),
|
|
12717
|
+
/* @__PURE__ */ jsx48("span", { children: /* @__PURE__ */ jsx48(Icon, { css: WarningIcon, icon: MdWarning2, size: "1rem", iconColor: "currentColor" }) }),
|
|
12685
12718
|
message
|
|
12686
12719
|
] }) : null;
|
|
12687
12720
|
};
|
|
@@ -12884,17 +12917,17 @@ function InputComboBox(props) {
|
|
|
12884
12917
|
}
|
|
12885
12918
|
|
|
12886
12919
|
// src/components/Input/InputInlineSelect.tsx
|
|
12887
|
-
import { css as
|
|
12920
|
+
import { css as css47 } from "@emotion/react";
|
|
12888
12921
|
import { useRef as useRef3, useState as useState5 } from "react";
|
|
12889
12922
|
import { CgChevronDown as CgChevronDown2 } from "react-icons/cg";
|
|
12890
12923
|
|
|
12891
12924
|
// src/components/Input/styles/InputInlineSelect.styles.ts
|
|
12892
|
-
import { css as
|
|
12893
|
-
var inlineSelectContainer =
|
|
12925
|
+
import { css as css46 } from "@emotion/react";
|
|
12926
|
+
var inlineSelectContainer = css46`
|
|
12894
12927
|
margin-inline: auto;
|
|
12895
12928
|
max-width: fit-content;
|
|
12896
12929
|
`;
|
|
12897
|
-
var inlineSelectBtn =
|
|
12930
|
+
var inlineSelectBtn = css46`
|
|
12898
12931
|
align-items: center;
|
|
12899
12932
|
background: var(--brand-secondary-3);
|
|
12900
12933
|
border: 2px solid var(--brand-secondary-3);
|
|
@@ -12918,7 +12951,7 @@ var inlineSelectBtn = css44`
|
|
|
12918
12951
|
outline: 2px solid var(--brand-secondary-1);
|
|
12919
12952
|
}
|
|
12920
12953
|
`;
|
|
12921
|
-
var inlineSelectMenu =
|
|
12954
|
+
var inlineSelectMenu = css46`
|
|
12922
12955
|
background: var(--white);
|
|
12923
12956
|
border: 1px solid var(--brand-secondary-3);
|
|
12924
12957
|
border-top: none;
|
|
@@ -12929,7 +12962,7 @@ var inlineSelectMenu = css44`
|
|
|
12929
12962
|
inset: auto 0;
|
|
12930
12963
|
transform: translateY(-0.2rem);
|
|
12931
12964
|
`;
|
|
12932
|
-
var inlineSelectBtnOptions =
|
|
12965
|
+
var inlineSelectBtnOptions = css46`
|
|
12933
12966
|
cursor: pointer;
|
|
12934
12967
|
display: block;
|
|
12935
12968
|
font-size: var(--fs-sm);
|
|
@@ -12945,7 +12978,7 @@ var inlineSelectBtnOptions = css44`
|
|
|
12945
12978
|
background: var(--gray-50);
|
|
12946
12979
|
}
|
|
12947
12980
|
`;
|
|
12948
|
-
var inlineSelectMenuClosed =
|
|
12981
|
+
var inlineSelectMenuClosed = css46`
|
|
12949
12982
|
position: absolute;
|
|
12950
12983
|
overflow: hidden;
|
|
12951
12984
|
height: 1px;
|
|
@@ -12973,7 +13006,7 @@ var InputInlineSelect = ({
|
|
|
12973
13006
|
"div",
|
|
12974
13007
|
{
|
|
12975
13008
|
ref: divRef,
|
|
12976
|
-
css: !classNameContainer ? inlineSelectContainer :
|
|
13009
|
+
css: !classNameContainer ? inlineSelectContainer : css47`
|
|
12977
13010
|
max-width: fit-content;
|
|
12978
13011
|
${typeof classNameContainer === "object" ? classNameContainer : void 0}
|
|
12979
13012
|
`,
|
|
@@ -13171,8 +13204,35 @@ var Legend = ({ children }) => {
|
|
|
13171
13204
|
return /* @__PURE__ */ jsx55("legend", { css: fieldsetLegend, children });
|
|
13172
13205
|
};
|
|
13173
13206
|
|
|
13207
|
+
// src/components/Input/SuccessMessage.tsx
|
|
13208
|
+
import { CgCheckO } from "react-icons/cg";
|
|
13209
|
+
|
|
13210
|
+
// src/components/Input/styles/SuccessMessage.styles.ts
|
|
13211
|
+
import { css as css48 } from "@emotion/react";
|
|
13212
|
+
var SuccessText = css48`
|
|
13213
|
+
--info-desc: var(--brand-secondary-3);
|
|
13214
|
+
--info-icon: var(--brand-secondary-3);
|
|
13215
|
+
|
|
13216
|
+
align-items: center;
|
|
13217
|
+
color: var(--info-desc);
|
|
13218
|
+
display: flex;
|
|
13219
|
+
gap: var(--spacing-sm);
|
|
13220
|
+
`;
|
|
13221
|
+
var SuccessIcon2 = css48`
|
|
13222
|
+
color: var(--info-icon);
|
|
13223
|
+
`;
|
|
13224
|
+
|
|
13225
|
+
// src/components/Input/SuccessMessage.tsx
|
|
13226
|
+
import { jsx as jsx56, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
13227
|
+
var SuccessMessage = ({ message, testId, ...props }) => {
|
|
13228
|
+
return message ? /* @__PURE__ */ jsxs33("span", { role: "status", css: SuccessText, "data-test-id": testId, ...props, children: [
|
|
13229
|
+
/* @__PURE__ */ jsx56("span", { children: /* @__PURE__ */ jsx56(Icon, { css: SuccessIcon2, icon: CgCheckO, size: "1rem", iconColor: "currentColor" }) }),
|
|
13230
|
+
message
|
|
13231
|
+
] }) : null;
|
|
13232
|
+
};
|
|
13233
|
+
|
|
13174
13234
|
// src/components/Input/Textarea.tsx
|
|
13175
|
-
import { Fragment as Fragment7, jsx as
|
|
13235
|
+
import { Fragment as Fragment7, jsx as jsx57, jsxs as jsxs34 } from "@emotion/react/jsx-runtime";
|
|
13176
13236
|
var Textarea = ({
|
|
13177
13237
|
label,
|
|
13178
13238
|
icon,
|
|
@@ -13183,10 +13243,10 @@ var Textarea = ({
|
|
|
13183
13243
|
warningMessage,
|
|
13184
13244
|
...props
|
|
13185
13245
|
}) => {
|
|
13186
|
-
return /* @__PURE__ */
|
|
13187
|
-
showLabel ? /* @__PURE__ */
|
|
13188
|
-
/* @__PURE__ */
|
|
13189
|
-
/* @__PURE__ */
|
|
13246
|
+
return /* @__PURE__ */ jsxs34(Fragment7, { children: [
|
|
13247
|
+
showLabel ? /* @__PURE__ */ jsx57("label", { htmlFor: id, css: [labelText], children: label }) : null,
|
|
13248
|
+
/* @__PURE__ */ jsxs34("div", { css: [inputContainer], children: [
|
|
13249
|
+
/* @__PURE__ */ jsx57(
|
|
13190
13250
|
"textarea",
|
|
13191
13251
|
{
|
|
13192
13252
|
id,
|
|
@@ -13195,17 +13255,17 @@ var Textarea = ({
|
|
|
13195
13255
|
...props
|
|
13196
13256
|
}
|
|
13197
13257
|
),
|
|
13198
|
-
icon ? /* @__PURE__ */
|
|
13258
|
+
icon ? /* @__PURE__ */ jsx57("div", { css: inputIcon, children: icon }) : null
|
|
13199
13259
|
] }),
|
|
13200
|
-
caption ? /* @__PURE__ */
|
|
13201
|
-
errorMessage ? /* @__PURE__ */
|
|
13202
|
-
warningMessage && !errorMessage ? /* @__PURE__ */
|
|
13260
|
+
caption ? /* @__PURE__ */ jsx57(Caption, { children: caption }) : null,
|
|
13261
|
+
errorMessage ? /* @__PURE__ */ jsx57(ErrorMessage, { message: errorMessage }) : null,
|
|
13262
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx57(WarningMessage, { message: warningMessage }) : null
|
|
13203
13263
|
] });
|
|
13204
13264
|
};
|
|
13205
13265
|
|
|
13206
13266
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
13207
13267
|
import MonacoEditor from "@monaco-editor/react";
|
|
13208
|
-
import { jsx as
|
|
13268
|
+
import { jsx as jsx58 } from "@emotion/react/jsx-runtime";
|
|
13209
13269
|
var minEditorHeightPx = 150;
|
|
13210
13270
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
13211
13271
|
let effectiveHeight = height;
|
|
@@ -13215,7 +13275,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
13215
13275
|
if (typeof effectiveHeight === "number" && effectiveHeight < minEditorHeightPx) {
|
|
13216
13276
|
effectiveHeight = minEditorHeightPx;
|
|
13217
13277
|
}
|
|
13218
|
-
return /* @__PURE__ */
|
|
13278
|
+
return /* @__PURE__ */ jsx58(
|
|
13219
13279
|
MonacoEditor,
|
|
13220
13280
|
{
|
|
13221
13281
|
height: effectiveHeight,
|
|
@@ -13252,39 +13312,39 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
13252
13312
|
};
|
|
13253
13313
|
|
|
13254
13314
|
// src/components/LimitsBar/LimitsBar.styles.ts
|
|
13255
|
-
import { css as
|
|
13256
|
-
var LimitsBarContainer =
|
|
13315
|
+
import { css as css49 } from "@emotion/react";
|
|
13316
|
+
var LimitsBarContainer = css49`
|
|
13257
13317
|
margin-block: var(--spacing-sm);
|
|
13258
13318
|
`;
|
|
13259
|
-
var LimitsBarProgressBar =
|
|
13319
|
+
var LimitsBarProgressBar = css49`
|
|
13260
13320
|
background: var(--gray-100);
|
|
13261
13321
|
margin-top: var(--spacing-sm);
|
|
13262
13322
|
position: relative;
|
|
13263
13323
|
overflow: hidden;
|
|
13264
13324
|
height: 0.25rem;
|
|
13265
13325
|
`;
|
|
13266
|
-
var LimitsBarProgressBarLine =
|
|
13326
|
+
var LimitsBarProgressBarLine = css49`
|
|
13267
13327
|
position: absolute;
|
|
13268
13328
|
inset: 0;
|
|
13269
13329
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
13270
13330
|
`;
|
|
13271
|
-
var LimitsBarLabelContainer =
|
|
13331
|
+
var LimitsBarLabelContainer = css49`
|
|
13272
13332
|
display: flex;
|
|
13273
13333
|
justify-content: space-between;
|
|
13274
13334
|
font-weight: var(--fw-bold);
|
|
13275
13335
|
`;
|
|
13276
|
-
var LimitsBarLabel =
|
|
13336
|
+
var LimitsBarLabel = css49`
|
|
13277
13337
|
font-size: var(--fs-baase);
|
|
13278
13338
|
`;
|
|
13279
|
-
var LimitsBarBgColor = (statusColor) =>
|
|
13339
|
+
var LimitsBarBgColor = (statusColor) => css49`
|
|
13280
13340
|
background: ${statusColor};
|
|
13281
13341
|
`;
|
|
13282
|
-
var LimitsBarTextColor = (statusColor) =>
|
|
13342
|
+
var LimitsBarTextColor = (statusColor) => css49`
|
|
13283
13343
|
color: ${statusColor};
|
|
13284
13344
|
`;
|
|
13285
13345
|
|
|
13286
13346
|
// src/components/LimitsBar/LimitsBar.tsx
|
|
13287
|
-
import { jsx as
|
|
13347
|
+
import { jsx as jsx59, jsxs as jsxs35 } from "@emotion/react/jsx-runtime";
|
|
13288
13348
|
var LimitsBar = ({ current, max, label }) => {
|
|
13289
13349
|
const maxPercentage = 100;
|
|
13290
13350
|
const progressBarValue = Math.ceil(current / max * maxPercentage);
|
|
@@ -13295,16 +13355,16 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
13295
13355
|
danger: "var(--brand-secondary-5)"
|
|
13296
13356
|
};
|
|
13297
13357
|
const statusColor = progressBarValue === 100 ? colorMap.danger : progressBarValue >= 75 ? colorMap.warn : colorMap.base;
|
|
13298
|
-
return /* @__PURE__ */
|
|
13299
|
-
/* @__PURE__ */
|
|
13300
|
-
/* @__PURE__ */
|
|
13301
|
-
/* @__PURE__ */
|
|
13358
|
+
return /* @__PURE__ */ jsxs35("div", { css: LimitsBarContainer, children: [
|
|
13359
|
+
/* @__PURE__ */ jsxs35("div", { css: LimitsBarLabelContainer, children: [
|
|
13360
|
+
/* @__PURE__ */ jsx59("span", { css: LimitsBarLabel, children: label }),
|
|
13361
|
+
/* @__PURE__ */ jsxs35("span", { css: [LimitsBarLabel, LimitsBarTextColor(statusColor)], children: [
|
|
13302
13362
|
current,
|
|
13303
13363
|
" of ",
|
|
13304
13364
|
max
|
|
13305
13365
|
] })
|
|
13306
13366
|
] }),
|
|
13307
|
-
/* @__PURE__ */
|
|
13367
|
+
/* @__PURE__ */ jsx59(
|
|
13308
13368
|
"div",
|
|
13309
13369
|
{
|
|
13310
13370
|
role: "progressbar",
|
|
@@ -13313,7 +13373,7 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
13313
13373
|
"aria-valuemax": max,
|
|
13314
13374
|
"aria-valuetext": `${current} of ${max}`,
|
|
13315
13375
|
css: LimitsBarProgressBar,
|
|
13316
|
-
children: /* @__PURE__ */
|
|
13376
|
+
children: /* @__PURE__ */ jsx59(
|
|
13317
13377
|
"span",
|
|
13318
13378
|
{
|
|
13319
13379
|
role: "presentation",
|
|
@@ -13329,8 +13389,8 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
13329
13389
|
};
|
|
13330
13390
|
|
|
13331
13391
|
// src/components/LinkList/LinkList.styles.ts
|
|
13332
|
-
import { css as
|
|
13333
|
-
var LinkListContainer = (padding) =>
|
|
13392
|
+
import { css as css50 } from "@emotion/react";
|
|
13393
|
+
var LinkListContainer = (padding) => css50`
|
|
13334
13394
|
padding: ${padding};
|
|
13335
13395
|
|
|
13336
13396
|
${mq("sm")} {
|
|
@@ -13340,23 +13400,23 @@ var LinkListContainer = (padding) => css47`
|
|
|
13340
13400
|
`;
|
|
13341
13401
|
|
|
13342
13402
|
// src/components/LinkList/LinkList.tsx
|
|
13343
|
-
import { jsx as
|
|
13403
|
+
import { jsx as jsx60, jsxs as jsxs36 } from "@emotion/react/jsx-runtime";
|
|
13344
13404
|
var LinkList = ({ title, padding = "var(--spacing-md)", children, ...props }) => {
|
|
13345
|
-
return /* @__PURE__ */
|
|
13346
|
-
/* @__PURE__ */
|
|
13405
|
+
return /* @__PURE__ */ jsxs36("div", { css: LinkListContainer(padding), ...props, children: [
|
|
13406
|
+
/* @__PURE__ */ jsx60(Heading, { level: 3, children: title }),
|
|
13347
13407
|
children
|
|
13348
13408
|
] });
|
|
13349
13409
|
};
|
|
13350
13410
|
|
|
13351
13411
|
// src/components/List/ScrollableList.tsx
|
|
13352
|
-
import { css as
|
|
13412
|
+
import { css as css52 } from "@emotion/react";
|
|
13353
13413
|
|
|
13354
13414
|
// src/components/List/styles/ScrollableList.styles.ts
|
|
13355
|
-
import { css as
|
|
13356
|
-
var ScrollableListContainer =
|
|
13415
|
+
import { css as css51 } from "@emotion/react";
|
|
13416
|
+
var ScrollableListContainer = css51`
|
|
13357
13417
|
position: relative;
|
|
13358
13418
|
`;
|
|
13359
|
-
var ScrollableListInner =
|
|
13419
|
+
var ScrollableListInner = css51`
|
|
13360
13420
|
background: var(--gray-50);
|
|
13361
13421
|
border-top: 1px solid var(--gray-200);
|
|
13362
13422
|
border-bottom: 1px solid var(--gray-200);
|
|
@@ -13379,19 +13439,19 @@ var ScrollableListInner = css48`
|
|
|
13379
13439
|
`;
|
|
13380
13440
|
|
|
13381
13441
|
// src/components/List/ScrollableList.tsx
|
|
13382
|
-
import { jsx as
|
|
13442
|
+
import { jsx as jsx61, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
13383
13443
|
var ScrollableList = ({ label, children, ...props }) => {
|
|
13384
|
-
return /* @__PURE__ */
|
|
13385
|
-
label ? /* @__PURE__ */
|
|
13444
|
+
return /* @__PURE__ */ jsxs37("div", { css: [ScrollableListContainer, scrollbarStyles], ...props, children: [
|
|
13445
|
+
label ? /* @__PURE__ */ jsx61(
|
|
13386
13446
|
"span",
|
|
13387
13447
|
{
|
|
13388
|
-
css:
|
|
13448
|
+
css: css52`
|
|
13389
13449
|
${labelText}
|
|
13390
13450
|
`,
|
|
13391
13451
|
children: label
|
|
13392
13452
|
}
|
|
13393
13453
|
) : null,
|
|
13394
|
-
/* @__PURE__ */
|
|
13454
|
+
/* @__PURE__ */ jsx61("div", { css: [ScrollableListInner, scrollbarStyles], children })
|
|
13395
13455
|
] });
|
|
13396
13456
|
};
|
|
13397
13457
|
|
|
@@ -13399,8 +13459,8 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
13399
13459
|
import { CgCheck } from "react-icons/cg";
|
|
13400
13460
|
|
|
13401
13461
|
// src/components/List/styles/ScrollableListItem.styles.ts
|
|
13402
|
-
import { css as
|
|
13403
|
-
var ScrollableListItemContainer =
|
|
13462
|
+
import { css as css53 } from "@emotion/react";
|
|
13463
|
+
var ScrollableListItemContainer = css53`
|
|
13404
13464
|
align-items: center;
|
|
13405
13465
|
background: var(--white);
|
|
13406
13466
|
border-radius: var(--rounded-base);
|
|
@@ -13409,13 +13469,13 @@ var ScrollableListItemContainer = css50`
|
|
|
13409
13469
|
min-height: 52px;
|
|
13410
13470
|
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
13411
13471
|
`;
|
|
13412
|
-
var ScrollableListItemShadow =
|
|
13472
|
+
var ScrollableListItemShadow = css53`
|
|
13413
13473
|
box-shadow: var(--shadow-base);
|
|
13414
13474
|
`;
|
|
13415
|
-
var ScrollableListItemActive =
|
|
13475
|
+
var ScrollableListItemActive = css53`
|
|
13416
13476
|
border-color: var(--brand-secondary-3);
|
|
13417
13477
|
`;
|
|
13418
|
-
var ScrollableListItemBtn =
|
|
13478
|
+
var ScrollableListItemBtn = css53`
|
|
13419
13479
|
align-items: center;
|
|
13420
13480
|
border: none;
|
|
13421
13481
|
background: transparent;
|
|
@@ -13430,27 +13490,27 @@ var ScrollableListItemBtn = css50`
|
|
|
13430
13490
|
outline: none;
|
|
13431
13491
|
}
|
|
13432
13492
|
`;
|
|
13433
|
-
var ScrollableListInputLabel =
|
|
13493
|
+
var ScrollableListInputLabel = css53`
|
|
13434
13494
|
align-items: center;
|
|
13435
13495
|
cursor: pointer;
|
|
13436
13496
|
display: flex;
|
|
13437
13497
|
padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs);
|
|
13438
13498
|
flex-grow: 1;
|
|
13439
13499
|
`;
|
|
13440
|
-
var ScrollableListInputText =
|
|
13500
|
+
var ScrollableListInputText = css53`
|
|
13441
13501
|
align-items: center;
|
|
13442
13502
|
display: flex;
|
|
13443
13503
|
gap: var(--spacing-sm);
|
|
13444
13504
|
flex-grow: 1;
|
|
13445
13505
|
flex-wrap: wrap;
|
|
13446
13506
|
`;
|
|
13447
|
-
var ScrollableListHiddenInput =
|
|
13507
|
+
var ScrollableListHiddenInput = css53`
|
|
13448
13508
|
position: absolute;
|
|
13449
13509
|
height: 0;
|
|
13450
13510
|
width: 0;
|
|
13451
13511
|
opacity: 0;
|
|
13452
13512
|
`;
|
|
13453
|
-
var ScrollableListIcon =
|
|
13513
|
+
var ScrollableListIcon = css53`
|
|
13454
13514
|
border-radius: var(--rounded-full);
|
|
13455
13515
|
background: var(--brand-secondary-3);
|
|
13456
13516
|
color: var(--white);
|
|
@@ -13458,12 +13518,12 @@ var ScrollableListIcon = css50`
|
|
|
13458
13518
|
min-width: 24px;
|
|
13459
13519
|
opacity: 0;
|
|
13460
13520
|
`;
|
|
13461
|
-
var ScrollableListIconVisible =
|
|
13521
|
+
var ScrollableListIconVisible = css53`
|
|
13462
13522
|
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
13463
13523
|
`;
|
|
13464
13524
|
|
|
13465
13525
|
// src/components/List/ScrollableListInputItem.tsx
|
|
13466
|
-
import { jsx as
|
|
13526
|
+
import { jsx as jsx62, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
|
|
13467
13527
|
var ScrollableListInputItem = ({
|
|
13468
13528
|
label,
|
|
13469
13529
|
icon,
|
|
@@ -13473,7 +13533,7 @@ var ScrollableListInputItem = ({
|
|
|
13473
13533
|
labelTestId,
|
|
13474
13534
|
...props
|
|
13475
13535
|
}) => {
|
|
13476
|
-
return /* @__PURE__ */
|
|
13536
|
+
return /* @__PURE__ */ jsx62(
|
|
13477
13537
|
"div",
|
|
13478
13538
|
{
|
|
13479
13539
|
css: [
|
|
@@ -13482,13 +13542,13 @@ var ScrollableListInputItem = ({
|
|
|
13482
13542
|
active ? ScrollableListItemActive : void 0
|
|
13483
13543
|
],
|
|
13484
13544
|
...props,
|
|
13485
|
-
children: /* @__PURE__ */
|
|
13486
|
-
/* @__PURE__ */
|
|
13545
|
+
children: /* @__PURE__ */ jsxs38("label", { "data-test-id": labelTestId, css: ScrollableListInputLabel, children: [
|
|
13546
|
+
/* @__PURE__ */ jsxs38("span", { css: ScrollableListInputText, children: [
|
|
13487
13547
|
icon,
|
|
13488
13548
|
label
|
|
13489
13549
|
] }),
|
|
13490
|
-
/* @__PURE__ */
|
|
13491
|
-
/* @__PURE__ */
|
|
13550
|
+
/* @__PURE__ */ jsx62("div", { css: ScrollableListHiddenInput, children }),
|
|
13551
|
+
/* @__PURE__ */ jsx62(
|
|
13492
13552
|
Icon,
|
|
13493
13553
|
{
|
|
13494
13554
|
icon: CgCheck,
|
|
@@ -13506,14 +13566,14 @@ var ScrollableListInputItem = ({
|
|
|
13506
13566
|
|
|
13507
13567
|
// src/components/List/ScrollableListItem.tsx
|
|
13508
13568
|
import { CgCheck as CgCheck2 } from "react-icons/cg";
|
|
13509
|
-
import { jsx as
|
|
13569
|
+
import { jsx as jsx63, jsxs as jsxs39 } from "@emotion/react/jsx-runtime";
|
|
13510
13570
|
var ScrollableListItem = ({
|
|
13511
13571
|
buttonText,
|
|
13512
13572
|
active,
|
|
13513
13573
|
disableShadow,
|
|
13514
13574
|
...props
|
|
13515
13575
|
}) => {
|
|
13516
|
-
return /* @__PURE__ */
|
|
13576
|
+
return /* @__PURE__ */ jsx63(
|
|
13517
13577
|
"div",
|
|
13518
13578
|
{
|
|
13519
13579
|
css: [
|
|
@@ -13521,9 +13581,9 @@ var ScrollableListItem = ({
|
|
|
13521
13581
|
disableShadow ? void 0 : ScrollableListItemShadow,
|
|
13522
13582
|
active ? ScrollableListItemActive : void 0
|
|
13523
13583
|
],
|
|
13524
|
-
children: /* @__PURE__ */
|
|
13525
|
-
/* @__PURE__ */
|
|
13526
|
-
/* @__PURE__ */
|
|
13584
|
+
children: /* @__PURE__ */ jsxs39("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
13585
|
+
/* @__PURE__ */ jsx63("span", { children: buttonText }),
|
|
13586
|
+
/* @__PURE__ */ jsx63(
|
|
13527
13587
|
Icon,
|
|
13528
13588
|
{
|
|
13529
13589
|
icon: CgCheck2,
|
|
@@ -13538,7 +13598,7 @@ var ScrollableListItem = ({
|
|
|
13538
13598
|
};
|
|
13539
13599
|
|
|
13540
13600
|
// src/components/LoadingIndicator/LoadingIndicator.styles.ts
|
|
13541
|
-
import { css as
|
|
13601
|
+
import { css as css54, keyframes as keyframes3 } from "@emotion/react";
|
|
13542
13602
|
var bounceFade = keyframes3`
|
|
13543
13603
|
0%, 100% {
|
|
13544
13604
|
opacity: 1.0;
|
|
@@ -13556,11 +13616,11 @@ var bounceFade = keyframes3`
|
|
|
13556
13616
|
transform: translateY(-5px);
|
|
13557
13617
|
}
|
|
13558
13618
|
`;
|
|
13559
|
-
var loader =
|
|
13619
|
+
var loader = css54`
|
|
13560
13620
|
display: inline-flex;
|
|
13561
13621
|
justify-content: center;
|
|
13562
13622
|
`;
|
|
13563
|
-
var loadingDot =
|
|
13623
|
+
var loadingDot = css54`
|
|
13564
13624
|
background-color: var(--gray-700);
|
|
13565
13625
|
display: block;
|
|
13566
13626
|
border-radius: var(--rounded-full);
|
|
@@ -13584,12 +13644,12 @@ var loadingDot = css51`
|
|
|
13584
13644
|
`;
|
|
13585
13645
|
|
|
13586
13646
|
// src/components/LoadingIndicator/LoadingIndicator.tsx
|
|
13587
|
-
import { jsx as
|
|
13647
|
+
import { jsx as jsx64, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
13588
13648
|
var LoadingIndicator = ({ ...props }) => {
|
|
13589
|
-
return /* @__PURE__ */
|
|
13590
|
-
/* @__PURE__ */
|
|
13591
|
-
/* @__PURE__ */
|
|
13592
|
-
/* @__PURE__ */
|
|
13649
|
+
return /* @__PURE__ */ jsxs40("div", { role: "alert", css: loader, "data-test-id": "loading-indicator", ...props, children: [
|
|
13650
|
+
/* @__PURE__ */ jsx64("span", { css: loadingDot }),
|
|
13651
|
+
/* @__PURE__ */ jsx64("span", { css: loadingDot }),
|
|
13652
|
+
/* @__PURE__ */ jsx64("span", { css: loadingDot })
|
|
13593
13653
|
] });
|
|
13594
13654
|
};
|
|
13595
13655
|
|
|
@@ -13597,8 +13657,8 @@ var LoadingIndicator = ({ ...props }) => {
|
|
|
13597
13657
|
import { useCallback as useCallback2, useEffect as useEffect7, useRef as useRef4 } from "react";
|
|
13598
13658
|
|
|
13599
13659
|
// src/components/LoadingOverlay/LoadingOverlay.styles.ts
|
|
13600
|
-
import { css as
|
|
13601
|
-
var loadingOverlayContainer =
|
|
13660
|
+
import { css as css55 } from "@emotion/react";
|
|
13661
|
+
var loadingOverlayContainer = css55`
|
|
13602
13662
|
position: absolute;
|
|
13603
13663
|
inset: 0;
|
|
13604
13664
|
overflow: hidden;
|
|
@@ -13606,30 +13666,30 @@ var loadingOverlayContainer = css52`
|
|
|
13606
13666
|
padding: var(--spacing-xl);
|
|
13607
13667
|
overflow-y: auto;
|
|
13608
13668
|
`;
|
|
13609
|
-
var loadingOverlayVisible =
|
|
13669
|
+
var loadingOverlayVisible = css55`
|
|
13610
13670
|
display: flex;
|
|
13611
13671
|
`;
|
|
13612
|
-
var loadingOverlayHidden =
|
|
13672
|
+
var loadingOverlayHidden = css55`
|
|
13613
13673
|
display: none;
|
|
13614
13674
|
`;
|
|
13615
|
-
var loadingOverlayBackground = (bgColor) =>
|
|
13675
|
+
var loadingOverlayBackground = (bgColor) => css55`
|
|
13616
13676
|
background: ${bgColor};
|
|
13617
13677
|
opacity: 0.92;
|
|
13618
13678
|
position: absolute;
|
|
13619
13679
|
inset: 0 0;
|
|
13620
13680
|
`;
|
|
13621
|
-
var loadingOverlayBody =
|
|
13681
|
+
var loadingOverlayBody = css55`
|
|
13622
13682
|
align-items: center;
|
|
13623
13683
|
display: flex;
|
|
13624
13684
|
flex-direction: column;
|
|
13625
13685
|
`;
|
|
13626
|
-
var loadingOverlayMessage =
|
|
13686
|
+
var loadingOverlayMessage = css55`
|
|
13627
13687
|
color: var(--gray-600);
|
|
13628
13688
|
margin: var(--spacing-base) 0 0;
|
|
13629
13689
|
`;
|
|
13630
13690
|
|
|
13631
13691
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
13632
|
-
import { jsx as
|
|
13692
|
+
import { jsx as jsx65, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
13633
13693
|
var LoadingOverlay = ({
|
|
13634
13694
|
isActive,
|
|
13635
13695
|
statusMessage,
|
|
@@ -13655,7 +13715,7 @@ var LoadingOverlay = ({
|
|
|
13655
13715
|
(_f = lottieRef.current) == null ? void 0 : _f.stop();
|
|
13656
13716
|
}
|
|
13657
13717
|
}, [isPaused]);
|
|
13658
|
-
return /* @__PURE__ */
|
|
13718
|
+
return /* @__PURE__ */ jsxs41(
|
|
13659
13719
|
"div",
|
|
13660
13720
|
{
|
|
13661
13721
|
role: "alert",
|
|
@@ -13663,9 +13723,9 @@ var LoadingOverlay = ({
|
|
|
13663
13723
|
"aria-hidden": !isActive,
|
|
13664
13724
|
"aria-busy": isActive && !isPaused,
|
|
13665
13725
|
children: [
|
|
13666
|
-
/* @__PURE__ */
|
|
13667
|
-
/* @__PURE__ */
|
|
13668
|
-
/* @__PURE__ */
|
|
13726
|
+
/* @__PURE__ */ jsx65("div", { css: loadingOverlayBackground(overlayBackgroundColor) }),
|
|
13727
|
+
/* @__PURE__ */ jsx65("div", { css: { position: "relative", maxWidth: "100%", margin: isTopAligned ? "0" : "auto" }, children: /* @__PURE__ */ jsxs41("div", { css: loadingOverlayBody, children: [
|
|
13728
|
+
/* @__PURE__ */ jsx65(
|
|
13669
13729
|
AnimationFile,
|
|
13670
13730
|
{
|
|
13671
13731
|
lottieRef,
|
|
@@ -13680,15 +13740,15 @@ var LoadingOverlay = ({
|
|
|
13680
13740
|
}
|
|
13681
13741
|
}
|
|
13682
13742
|
),
|
|
13683
|
-
statusMessage ? /* @__PURE__ */
|
|
13684
|
-
/* @__PURE__ */
|
|
13743
|
+
statusMessage ? /* @__PURE__ */ jsx65("div", { css: loadingOverlayMessage, children: statusMessage }) : null,
|
|
13744
|
+
/* @__PURE__ */ jsx65("div", { css: { width: "100%", marginTop: "var(--spacing-md)" }, children })
|
|
13685
13745
|
] }) })
|
|
13686
13746
|
]
|
|
13687
13747
|
}
|
|
13688
13748
|
);
|
|
13689
13749
|
};
|
|
13690
13750
|
var LoadingIcon = ({ height, width, ...props }) => {
|
|
13691
|
-
return /* @__PURE__ */
|
|
13751
|
+
return /* @__PURE__ */ jsx65(
|
|
13692
13752
|
"svg",
|
|
13693
13753
|
{
|
|
13694
13754
|
"data-testid": "svg",
|
|
@@ -13699,9 +13759,9 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
13699
13759
|
stroke: "currentColor",
|
|
13700
13760
|
...props,
|
|
13701
13761
|
"data-test-id": "loading-icon",
|
|
13702
|
-
children: /* @__PURE__ */
|
|
13703
|
-
/* @__PURE__ */
|
|
13704
|
-
/* @__PURE__ */
|
|
13762
|
+
children: /* @__PURE__ */ jsx65("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs41("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
|
|
13763
|
+
/* @__PURE__ */ jsx65("circle", { strokeOpacity: ".25", cx: "18", cy: "18", r: "18" }),
|
|
13764
|
+
/* @__PURE__ */ jsx65("path", { d: "M36 18c0-9.94-8.06-18-18-18", transform: "rotate(166.645 18 18)", children: /* @__PURE__ */ jsx65(
|
|
13705
13765
|
"animateTransform",
|
|
13706
13766
|
{
|
|
13707
13767
|
attributeName: "transform",
|
|
@@ -13718,12 +13778,12 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
13718
13778
|
};
|
|
13719
13779
|
|
|
13720
13780
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
13721
|
-
import { css as
|
|
13781
|
+
import { css as css57 } from "@emotion/react";
|
|
13722
13782
|
import { CgAdd as CgAdd2, CgChevronRight as CgChevronRight2 } from "react-icons/cg";
|
|
13723
13783
|
|
|
13724
13784
|
// src/components/Tiles/styles/IntegrationTile.styles.ts
|
|
13725
|
-
import { css as
|
|
13726
|
-
var IntegrationTileContainer =
|
|
13785
|
+
import { css as css56 } from "@emotion/react";
|
|
13786
|
+
var IntegrationTileContainer = css56`
|
|
13727
13787
|
align-items: center;
|
|
13728
13788
|
box-sizing: border-box;
|
|
13729
13789
|
border-radius: var(--rounded-base);
|
|
@@ -13754,22 +13814,22 @@ var IntegrationTileContainer = css53`
|
|
|
13754
13814
|
}
|
|
13755
13815
|
}
|
|
13756
13816
|
`;
|
|
13757
|
-
var IntegrationTileBtnDashedBorder =
|
|
13817
|
+
var IntegrationTileBtnDashedBorder = css56`
|
|
13758
13818
|
border: 1px dashed var(--brand-secondary-1);
|
|
13759
13819
|
`;
|
|
13760
|
-
var IntegrationTileTitle =
|
|
13820
|
+
var IntegrationTileTitle = css56`
|
|
13761
13821
|
display: block;
|
|
13762
13822
|
font-weight: var(--fw-bold);
|
|
13763
13823
|
margin: 0 0 var(--spacing-base);
|
|
13764
13824
|
max-width: 13rem;
|
|
13765
13825
|
`;
|
|
13766
|
-
var IntegrationTitleLogo =
|
|
13826
|
+
var IntegrationTitleLogo = css56`
|
|
13767
13827
|
display: block;
|
|
13768
13828
|
max-width: 10rem;
|
|
13769
13829
|
max-height: 4rem;
|
|
13770
13830
|
margin: 0 auto;
|
|
13771
13831
|
`;
|
|
13772
|
-
var IntegrationTileName =
|
|
13832
|
+
var IntegrationTileName = css56`
|
|
13773
13833
|
color: var(--gray-500);
|
|
13774
13834
|
display: -webkit-box;
|
|
13775
13835
|
-webkit-line-clamp: 1;
|
|
@@ -13782,7 +13842,7 @@ var IntegrationTileName = css53`
|
|
|
13782
13842
|
position: absolute;
|
|
13783
13843
|
bottom: calc(var(--spacing-base) * 3.8);
|
|
13784
13844
|
`;
|
|
13785
|
-
var IntegrationAddedText =
|
|
13845
|
+
var IntegrationAddedText = css56`
|
|
13786
13846
|
align-items: center;
|
|
13787
13847
|
background: var(--brand-secondary-3);
|
|
13788
13848
|
border-radius: 0 var(--rounded-md) 0 var(--rounded-md);
|
|
@@ -13797,7 +13857,7 @@ var IntegrationAddedText = css53`
|
|
|
13797
13857
|
top: 0;
|
|
13798
13858
|
right: 0;
|
|
13799
13859
|
`;
|
|
13800
|
-
var IntegrationCustomBadgeText = (theme) =>
|
|
13860
|
+
var IntegrationCustomBadgeText = (theme) => css56`
|
|
13801
13861
|
align-items: center;
|
|
13802
13862
|
border-radius: var(--rounded-sm) 0 var(--rounded-sm) 0;
|
|
13803
13863
|
background: ${theme === "gray" ? "var(--brand-secondary-2)" : "var(--brand-secondary-1)"};
|
|
@@ -13811,26 +13871,26 @@ var IntegrationCustomBadgeText = (theme) => css53`
|
|
|
13811
13871
|
top: 0;
|
|
13812
13872
|
left: 0;
|
|
13813
13873
|
`;
|
|
13814
|
-
var IntegrationAuthorBadgeIcon =
|
|
13874
|
+
var IntegrationAuthorBadgeIcon = css56`
|
|
13815
13875
|
position: absolute;
|
|
13816
13876
|
bottom: var(--spacing-sm);
|
|
13817
13877
|
right: var(--spacing-xs);
|
|
13818
13878
|
max-height: 1rem;
|
|
13819
13879
|
`;
|
|
13820
|
-
var IntegrationTitleFakeButton =
|
|
13880
|
+
var IntegrationTitleFakeButton = css56`
|
|
13821
13881
|
font-size: var(--fs-xs);
|
|
13822
13882
|
gap: var(--spacing-sm);
|
|
13823
13883
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
13824
13884
|
text-transform: uppercase;
|
|
13825
13885
|
`;
|
|
13826
|
-
var IntegrationTileFloatingButton =
|
|
13886
|
+
var IntegrationTileFloatingButton = css56`
|
|
13827
13887
|
position: absolute;
|
|
13828
13888
|
bottom: var(--spacing-base);
|
|
13829
13889
|
gap: var(--spacing-sm);
|
|
13830
13890
|
font-size: var(--fs-xs);
|
|
13831
13891
|
overflow: hidden;
|
|
13832
13892
|
`;
|
|
13833
|
-
var IntegrationTileFloatingButtonMessage = (clicked) =>
|
|
13893
|
+
var IntegrationTileFloatingButtonMessage = (clicked) => css56`
|
|
13834
13894
|
strong,
|
|
13835
13895
|
span:first-of-type {
|
|
13836
13896
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
@@ -13851,7 +13911,7 @@ var IntegrationTileFloatingButtonMessage = (clicked) => css53`
|
|
|
13851
13911
|
`;
|
|
13852
13912
|
|
|
13853
13913
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
13854
|
-
import { jsx as
|
|
13914
|
+
import { jsx as jsx66, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
13855
13915
|
var CreateTeamIntegrationTile = ({
|
|
13856
13916
|
title = "Create a custom integration for your team",
|
|
13857
13917
|
buttonText = "Add Integration",
|
|
@@ -13859,9 +13919,9 @@ var CreateTeamIntegrationTile = ({
|
|
|
13859
13919
|
asDeepLink = false,
|
|
13860
13920
|
...props
|
|
13861
13921
|
}) => {
|
|
13862
|
-
return /* @__PURE__ */
|
|
13863
|
-
/* @__PURE__ */
|
|
13864
|
-
/* @__PURE__ */
|
|
13922
|
+
return /* @__PURE__ */ jsxs42("div", { css: [IntegrationTileContainer, IntegrationTileBtnDashedBorder], ...props, children: [
|
|
13923
|
+
/* @__PURE__ */ jsx66("span", { css: IntegrationTileTitle, title, children: title }),
|
|
13924
|
+
/* @__PURE__ */ jsxs42(
|
|
13865
13925
|
Button,
|
|
13866
13926
|
{
|
|
13867
13927
|
buttonType: "tertiary",
|
|
@@ -13871,23 +13931,23 @@ var CreateTeamIntegrationTile = ({
|
|
|
13871
13931
|
css: IntegrationTitleFakeButton,
|
|
13872
13932
|
children: [
|
|
13873
13933
|
buttonText,
|
|
13874
|
-
asDeepLink ? /* @__PURE__ */
|
|
13934
|
+
asDeepLink ? /* @__PURE__ */ jsx66(
|
|
13875
13935
|
Icon,
|
|
13876
13936
|
{
|
|
13877
13937
|
icon: CgChevronRight2,
|
|
13878
13938
|
iconColor: "currentColor",
|
|
13879
13939
|
size: 20,
|
|
13880
|
-
css:
|
|
13940
|
+
css: css57`
|
|
13881
13941
|
order: 1;
|
|
13882
13942
|
`
|
|
13883
13943
|
}
|
|
13884
|
-
) : /* @__PURE__ */
|
|
13944
|
+
) : /* @__PURE__ */ jsx66(
|
|
13885
13945
|
Icon,
|
|
13886
13946
|
{
|
|
13887
13947
|
icon: CgAdd2,
|
|
13888
13948
|
iconColor: "currentColor",
|
|
13889
13949
|
size: 16,
|
|
13890
|
-
css:
|
|
13950
|
+
css: css57`
|
|
13891
13951
|
order: -1;
|
|
13892
13952
|
`
|
|
13893
13953
|
}
|
|
@@ -13900,31 +13960,31 @@ var CreateTeamIntegrationTile = ({
|
|
|
13900
13960
|
|
|
13901
13961
|
// src/components/Tiles/IntegrationBadges.tsx
|
|
13902
13962
|
import { CgCheck as CgCheck3, CgLock, CgSandClock } from "react-icons/cg";
|
|
13903
|
-
import { jsx as
|
|
13963
|
+
import { jsx as jsx67, jsxs as jsxs43 } from "@emotion/react/jsx-runtime";
|
|
13904
13964
|
var IntegrationedAddedBadge = ({ text = "Added" }) => {
|
|
13905
|
-
return /* @__PURE__ */
|
|
13906
|
-
/* @__PURE__ */
|
|
13965
|
+
return /* @__PURE__ */ jsxs43("span", { "data-testid": "integration-icon-installed", css: IntegrationAddedText, children: [
|
|
13966
|
+
/* @__PURE__ */ jsx67(Icon, { icon: CgCheck3, iconColor: "currentColor" }),
|
|
13907
13967
|
text
|
|
13908
13968
|
] });
|
|
13909
13969
|
};
|
|
13910
13970
|
var IntegrationCustomBadge = ({ text = "Custom" }) => {
|
|
13911
|
-
return /* @__PURE__ */
|
|
13971
|
+
return /* @__PURE__ */ jsx67("span", { "data-testid": "integration-is-private", css: IntegrationCustomBadgeText("gray"), children: text });
|
|
13912
13972
|
};
|
|
13913
13973
|
var IntegrationPremiumBadge = ({ text = "Premium" }) => {
|
|
13914
|
-
return /* @__PURE__ */
|
|
13915
|
-
/* @__PURE__ */
|
|
13974
|
+
return /* @__PURE__ */ jsxs43("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
13975
|
+
/* @__PURE__ */ jsx67(Icon, { icon: CgLock, iconColor: "currentColor", size: 12 }),
|
|
13916
13976
|
text
|
|
13917
13977
|
] });
|
|
13918
13978
|
};
|
|
13919
13979
|
var IntegrationComingSoonBadge = ({ text = "Coming soon" }) => {
|
|
13920
|
-
return /* @__PURE__ */
|
|
13921
|
-
/* @__PURE__ */
|
|
13980
|
+
return /* @__PURE__ */ jsxs43("span", { css: IntegrationCustomBadgeText("blue"), children: [
|
|
13981
|
+
/* @__PURE__ */ jsx67(Icon, { icon: CgSandClock, iconColor: "currentColor", size: 12 }),
|
|
13922
13982
|
text
|
|
13923
13983
|
] });
|
|
13924
13984
|
};
|
|
13925
13985
|
|
|
13926
13986
|
// src/components/Tiles/ResolveIcon.tsx
|
|
13927
|
-
import { jsx as
|
|
13987
|
+
import { jsx as jsx68 } from "@emotion/react/jsx-runtime";
|
|
13928
13988
|
var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
13929
13989
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
13930
13990
|
const mapClassName = {
|
|
@@ -13932,13 +13992,13 @@ var ResolveIcon = ({ icon, name, styleType = "logo", ...props }) => {
|
|
|
13932
13992
|
logo: IntegrationTitleLogo
|
|
13933
13993
|
};
|
|
13934
13994
|
if (icon) {
|
|
13935
|
-
return CompIcon ? /* @__PURE__ */
|
|
13995
|
+
return CompIcon ? /* @__PURE__ */ jsx68(CompIcon, { css: mapClassName[styleType], ...props }) : /* @__PURE__ */ jsx68("img", { src: icon, alt: name, css: mapClassName[styleType], ...props });
|
|
13936
13996
|
}
|
|
13937
13997
|
return null;
|
|
13938
13998
|
};
|
|
13939
13999
|
|
|
13940
14000
|
// src/components/Tiles/EditTeamIntegrationTile.tsx
|
|
13941
|
-
import { jsx as
|
|
14001
|
+
import { jsx as jsx69, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
13942
14002
|
var EditTeamIntegrationTile = ({
|
|
13943
14003
|
id,
|
|
13944
14004
|
icon,
|
|
@@ -13947,17 +14007,17 @@ var EditTeamIntegrationTile = ({
|
|
|
13947
14007
|
isPublic,
|
|
13948
14008
|
canEdit = false
|
|
13949
14009
|
}) => {
|
|
13950
|
-
return /* @__PURE__ */
|
|
14010
|
+
return /* @__PURE__ */ jsxs44(
|
|
13951
14011
|
"div",
|
|
13952
14012
|
{
|
|
13953
14013
|
css: IntegrationTileContainer,
|
|
13954
14014
|
"data-testid": "configure-integration-container",
|
|
13955
14015
|
"integration-id": `${id.toLocaleLowerCase()}`,
|
|
13956
14016
|
children: [
|
|
13957
|
-
/* @__PURE__ */
|
|
13958
|
-
/* @__PURE__ */
|
|
13959
|
-
!isPublic ? /* @__PURE__ */
|
|
13960
|
-
canEdit ? /* @__PURE__ */
|
|
14017
|
+
/* @__PURE__ */ jsx69(ResolveIcon, { icon, name, "data-test-id": "integration-logo" }),
|
|
14018
|
+
/* @__PURE__ */ jsx69("span", { css: IntegrationTileName, "data-test-id": "integration-card-name", children: name }),
|
|
14019
|
+
!isPublic ? /* @__PURE__ */ jsx69(IntegrationCustomBadge, {}) : null,
|
|
14020
|
+
canEdit ? /* @__PURE__ */ jsx69(
|
|
13961
14021
|
Button,
|
|
13962
14022
|
{
|
|
13963
14023
|
buttonType: "unimportant",
|
|
@@ -13975,10 +14035,10 @@ var EditTeamIntegrationTile = ({
|
|
|
13975
14035
|
};
|
|
13976
14036
|
|
|
13977
14037
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
13978
|
-
import { css as
|
|
14038
|
+
import { css as css58 } from "@emotion/react";
|
|
13979
14039
|
import { useEffect as useEffect8, useState as useState6 } from "react";
|
|
13980
14040
|
import { CgHeart } from "react-icons/cg";
|
|
13981
|
-
import { jsx as
|
|
14041
|
+
import { jsx as jsx70, jsxs as jsxs45 } from "@emotion/react/jsx-runtime";
|
|
13982
14042
|
var IntegrationComingSoon = ({
|
|
13983
14043
|
name,
|
|
13984
14044
|
icon,
|
|
@@ -14000,17 +14060,17 @@ var IntegrationComingSoon = ({
|
|
|
14000
14060
|
};
|
|
14001
14061
|
}
|
|
14002
14062
|
}, [upVote, setUpVote, timing]);
|
|
14003
|
-
return /* @__PURE__ */
|
|
14063
|
+
return /* @__PURE__ */ jsxs45(
|
|
14004
14064
|
"div",
|
|
14005
14065
|
{
|
|
14006
14066
|
css: IntegrationTileContainer,
|
|
14007
14067
|
"data-testid": `coming-soon-${id.toLowerCase()}-integration`,
|
|
14008
14068
|
...props,
|
|
14009
14069
|
children: [
|
|
14010
|
-
/* @__PURE__ */
|
|
14011
|
-
/* @__PURE__ */
|
|
14012
|
-
/* @__PURE__ */
|
|
14013
|
-
/* @__PURE__ */
|
|
14070
|
+
/* @__PURE__ */ jsx70(IntegrationComingSoonBadge, {}),
|
|
14071
|
+
/* @__PURE__ */ jsx70(ResolveIcon, { icon, name }),
|
|
14072
|
+
/* @__PURE__ */ jsx70("span", { css: IntegrationTileName, title: name, children: name }),
|
|
14073
|
+
/* @__PURE__ */ jsxs45(
|
|
14014
14074
|
Button,
|
|
14015
14075
|
{
|
|
14016
14076
|
buttonType: "unimportant",
|
|
@@ -14020,19 +14080,19 @@ var IntegrationComingSoon = ({
|
|
|
14020
14080
|
role: "link",
|
|
14021
14081
|
css: [IntegrationTileFloatingButton, IntegrationTileFloatingButtonMessage(upVote)],
|
|
14022
14082
|
children: [
|
|
14023
|
-
/* @__PURE__ */
|
|
14024
|
-
/* @__PURE__ */
|
|
14083
|
+
/* @__PURE__ */ jsx70("strong", { children: "+1" }),
|
|
14084
|
+
/* @__PURE__ */ jsx70(
|
|
14025
14085
|
"span",
|
|
14026
14086
|
{
|
|
14027
|
-
css:
|
|
14087
|
+
css: css58`
|
|
14028
14088
|
text-transform: uppercase;
|
|
14029
14089
|
color: var(--gray-500);
|
|
14030
14090
|
`,
|
|
14031
14091
|
children: "(I want this)"
|
|
14032
14092
|
}
|
|
14033
14093
|
),
|
|
14034
|
-
/* @__PURE__ */
|
|
14035
|
-
/* @__PURE__ */
|
|
14094
|
+
/* @__PURE__ */ jsxs45("span", { "aria-hidden": !upVote, children: [
|
|
14095
|
+
/* @__PURE__ */ jsx70(Icon, { icon: CgHeart, iconColor: "currentColor", size: 18 }),
|
|
14036
14096
|
"Thanks!"
|
|
14037
14097
|
] })
|
|
14038
14098
|
]
|
|
@@ -14044,8 +14104,8 @@ var IntegrationComingSoon = ({
|
|
|
14044
14104
|
};
|
|
14045
14105
|
|
|
14046
14106
|
// src/components/Tiles/styles/IntegrationLoadingTile.styles.ts
|
|
14047
|
-
import { css as
|
|
14048
|
-
var IntegrationLoadingTileContainer =
|
|
14107
|
+
import { css as css59 } from "@emotion/react";
|
|
14108
|
+
var IntegrationLoadingTileContainer = css59`
|
|
14049
14109
|
align-items: center;
|
|
14050
14110
|
box-sizing: border-box;
|
|
14051
14111
|
border-radius: var(--rounded-base);
|
|
@@ -14072,39 +14132,39 @@ var IntegrationLoadingTileContainer = css56`
|
|
|
14072
14132
|
}
|
|
14073
14133
|
}
|
|
14074
14134
|
`;
|
|
14075
|
-
var IntegrationLoadingTileImg =
|
|
14135
|
+
var IntegrationLoadingTileImg = css59`
|
|
14076
14136
|
width: 10rem;
|
|
14077
14137
|
height: 4rem;
|
|
14078
14138
|
margin: 0 auto;
|
|
14079
14139
|
`;
|
|
14080
|
-
var IntegrationLoadingTileText =
|
|
14140
|
+
var IntegrationLoadingTileText = css59`
|
|
14081
14141
|
width: 5rem;
|
|
14082
14142
|
height: var(--spacing-sm);
|
|
14083
14143
|
margin: var(--spacing-sm) 0;
|
|
14084
14144
|
`;
|
|
14085
|
-
var IntegrationLoadingFrame =
|
|
14145
|
+
var IntegrationLoadingFrame = css59`
|
|
14086
14146
|
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
14087
14147
|
border-radius: var(--rounded-base);
|
|
14088
14148
|
`;
|
|
14089
14149
|
|
|
14090
14150
|
// src/components/Tiles/IntegrationLoadingTile.tsx
|
|
14091
|
-
import { Fragment as Fragment8, jsx as
|
|
14151
|
+
import { Fragment as Fragment8, jsx as jsx71, jsxs as jsxs46 } from "@emotion/react/jsx-runtime";
|
|
14092
14152
|
var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
14093
14153
|
const componentCount = Array.from(Array(count).keys());
|
|
14094
|
-
return /* @__PURE__ */
|
|
14095
|
-
/* @__PURE__ */
|
|
14096
|
-
/* @__PURE__ */
|
|
14154
|
+
return /* @__PURE__ */ jsx71(Fragment8, { children: componentCount.map((i) => /* @__PURE__ */ jsxs46("div", { css: IntegrationLoadingTileContainer, children: [
|
|
14155
|
+
/* @__PURE__ */ jsx71("div", { css: [IntegrationLoadingTileImg, IntegrationLoadingFrame], role: "presentation" }),
|
|
14156
|
+
/* @__PURE__ */ jsx71("div", { css: [IntegrationLoadingTileText, IntegrationLoadingFrame] })
|
|
14097
14157
|
] }, i)) });
|
|
14098
14158
|
};
|
|
14099
14159
|
|
|
14100
14160
|
// src/components/Tiles/styles/IntegrationModalIcon.styles.ts
|
|
14101
|
-
import { css as
|
|
14102
|
-
var IntegrationModalIconContainer =
|
|
14161
|
+
import { css as css60 } from "@emotion/react";
|
|
14162
|
+
var IntegrationModalIconContainer = css60`
|
|
14103
14163
|
position: relative;
|
|
14104
14164
|
width: 50px;
|
|
14105
14165
|
margin-bottom: var(--spacing-base);
|
|
14106
14166
|
`;
|
|
14107
|
-
var IntegrationModalImage =
|
|
14167
|
+
var IntegrationModalImage = css60`
|
|
14108
14168
|
position: absolute;
|
|
14109
14169
|
inset: 0;
|
|
14110
14170
|
margin: auto;
|
|
@@ -14113,7 +14173,7 @@ var IntegrationModalImage = css57`
|
|
|
14113
14173
|
`;
|
|
14114
14174
|
|
|
14115
14175
|
// src/components/Tiles/IntegrationModalIcon.tsx
|
|
14116
|
-
import { jsx as
|
|
14176
|
+
import { jsx as jsx72, jsxs as jsxs47 } from "@emotion/react/jsx-runtime";
|
|
14117
14177
|
var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
14118
14178
|
const CompIcon = icon && typeof icon !== "string" ? icon : null;
|
|
14119
14179
|
let iconSrc = void 0;
|
|
@@ -14129,9 +14189,9 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
14129
14189
|
}
|
|
14130
14190
|
}
|
|
14131
14191
|
}
|
|
14132
|
-
return /* @__PURE__ */
|
|
14133
|
-
/* @__PURE__ */
|
|
14134
|
-
/* @__PURE__ */
|
|
14192
|
+
return /* @__PURE__ */ jsxs47("div", { css: IntegrationModalIconContainer, children: [
|
|
14193
|
+
/* @__PURE__ */ jsxs47("svg", { width: "49", height: "57", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
14194
|
+
/* @__PURE__ */ jsx72(
|
|
14135
14195
|
"path",
|
|
14136
14196
|
{
|
|
14137
14197
|
d: "m24.367 1.813 22.786 13.322V41.78L24.367 55.102 1.581 41.78V15.135L24.367 1.814Z",
|
|
@@ -14140,12 +14200,12 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
14140
14200
|
strokeWidth: "2"
|
|
14141
14201
|
}
|
|
14142
14202
|
),
|
|
14143
|
-
/* @__PURE__ */
|
|
14144
|
-
/* @__PURE__ */
|
|
14145
|
-
/* @__PURE__ */
|
|
14203
|
+
/* @__PURE__ */ jsx72("defs", { children: /* @__PURE__ */ jsxs47("linearGradient", { id: "a", x1: "41.353", y1: "49.107", x2: "8.048", y2: "4.478", gradientUnits: "userSpaceOnUse", children: [
|
|
14204
|
+
/* @__PURE__ */ jsx72("stop", { stopColor: "#1768B2" }),
|
|
14205
|
+
/* @__PURE__ */ jsx72("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
14146
14206
|
] }) })
|
|
14147
14207
|
] }),
|
|
14148
|
-
CompIcon ? /* @__PURE__ */
|
|
14208
|
+
CompIcon ? /* @__PURE__ */ jsx72(CompIcon, { role: "img", css: IntegrationModalImage, ...imgProps }) : iconSrc ? /* @__PURE__ */ jsx72(
|
|
14149
14209
|
"img",
|
|
14150
14210
|
{
|
|
14151
14211
|
src: iconSrc,
|
|
@@ -14159,7 +14219,7 @@ var IntegrationModalIcon = ({ icon, name, ...imgProps }) => {
|
|
|
14159
14219
|
};
|
|
14160
14220
|
|
|
14161
14221
|
// src/components/Tiles/IntegrationTile.tsx
|
|
14162
|
-
import { jsx as
|
|
14222
|
+
import { jsx as jsx73, jsxs as jsxs48 } from "@emotion/react/jsx-runtime";
|
|
14163
14223
|
var IntegrationTile = ({
|
|
14164
14224
|
id,
|
|
14165
14225
|
icon,
|
|
@@ -14171,7 +14231,7 @@ var IntegrationTile = ({
|
|
|
14171
14231
|
authorIcon,
|
|
14172
14232
|
...btnProps
|
|
14173
14233
|
}) => {
|
|
14174
|
-
return /* @__PURE__ */
|
|
14234
|
+
return /* @__PURE__ */ jsxs48(
|
|
14175
14235
|
"button",
|
|
14176
14236
|
{
|
|
14177
14237
|
type: "button",
|
|
@@ -14181,70 +14241,70 @@ var IntegrationTile = ({
|
|
|
14181
14241
|
"aria-label": name,
|
|
14182
14242
|
...btnProps,
|
|
14183
14243
|
children: [
|
|
14184
|
-
/* @__PURE__ */
|
|
14185
|
-
/* @__PURE__ */
|
|
14186
|
-
isInstalled ? /* @__PURE__ */
|
|
14187
|
-
requiedEntitlement && isPublic ? /* @__PURE__ */
|
|
14188
|
-
!isPublic ? /* @__PURE__ */
|
|
14189
|
-
authorIcon ? /* @__PURE__ */
|
|
14244
|
+
/* @__PURE__ */ jsx73(ResolveIcon, { icon, name }),
|
|
14245
|
+
/* @__PURE__ */ jsx73("span", { css: IntegrationTileName, title: name, children: name }),
|
|
14246
|
+
isInstalled ? /* @__PURE__ */ jsx73(IntegrationedAddedBadge, {}) : null,
|
|
14247
|
+
requiedEntitlement && isPublic ? /* @__PURE__ */ jsx73(IntegrationPremiumBadge, {}) : null,
|
|
14248
|
+
!isPublic ? /* @__PURE__ */ jsx73(IntegrationCustomBadge, {}) : null,
|
|
14249
|
+
authorIcon ? /* @__PURE__ */ jsx73(ResolveIcon, { icon: authorIcon, name }) : null
|
|
14190
14250
|
]
|
|
14191
14251
|
}
|
|
14192
14252
|
);
|
|
14193
14253
|
};
|
|
14194
14254
|
|
|
14195
14255
|
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
14196
|
-
import { css as
|
|
14197
|
-
var TileContainerWrapper =
|
|
14256
|
+
import { css as css61 } from "@emotion/react";
|
|
14257
|
+
var TileContainerWrapper = css61`
|
|
14198
14258
|
background: var(--brand-secondary-2);
|
|
14199
14259
|
padding: var(--spacing-base);
|
|
14200
14260
|
margin-bottom: var(--spacing-lg);
|
|
14201
14261
|
`;
|
|
14202
|
-
var TileContainerInner =
|
|
14262
|
+
var TileContainerInner = css61`
|
|
14203
14263
|
display: grid;
|
|
14204
14264
|
grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
|
|
14205
14265
|
gap: var(--spacing-base);
|
|
14206
14266
|
`;
|
|
14207
14267
|
|
|
14208
14268
|
// src/components/Tiles/TileContainer.tsx
|
|
14209
|
-
import { jsx as
|
|
14269
|
+
import { jsx as jsx74 } from "@emotion/react/jsx-runtime";
|
|
14210
14270
|
var TileContainer = ({ children, ...props }) => {
|
|
14211
|
-
return /* @__PURE__ */
|
|
14271
|
+
return /* @__PURE__ */ jsx74("div", { css: TileContainerWrapper, ...props, children: /* @__PURE__ */ jsx74("div", { css: TileContainerInner, children }) });
|
|
14212
14272
|
};
|
|
14213
14273
|
|
|
14214
14274
|
// src/components/Modal/IntegrationModalHeader.styles.ts
|
|
14215
|
-
import { css as
|
|
14216
|
-
var IntegrationModalHeaderSVGBackground =
|
|
14275
|
+
import { css as css62 } from "@emotion/react";
|
|
14276
|
+
var IntegrationModalHeaderSVGBackground = css62`
|
|
14217
14277
|
position: absolute;
|
|
14218
14278
|
top: 0;
|
|
14219
14279
|
left: 0;
|
|
14220
14280
|
`;
|
|
14221
|
-
var IntegrationModalHeaderGroup =
|
|
14281
|
+
var IntegrationModalHeaderGroup = css62`
|
|
14222
14282
|
align-items: center;
|
|
14223
14283
|
display: flex;
|
|
14224
14284
|
gap: var(--spacing-sm);
|
|
14225
14285
|
margin: 0 0 var(--spacing-md);
|
|
14226
14286
|
position: relative;
|
|
14227
14287
|
`;
|
|
14228
|
-
var IntegrationModalHeaderTitleGroup =
|
|
14288
|
+
var IntegrationModalHeaderTitleGroup = css62`
|
|
14229
14289
|
align-items: center;
|
|
14230
14290
|
display: flex;
|
|
14231
14291
|
gap: var(--spacing-base);
|
|
14232
14292
|
`;
|
|
14233
|
-
var IntegrationModalHeaderTitle =
|
|
14293
|
+
var IntegrationModalHeaderTitle = css62`
|
|
14234
14294
|
margin-top: 0;
|
|
14235
14295
|
`;
|
|
14236
|
-
var IntegrationModalHeaderMenuPlacement =
|
|
14296
|
+
var IntegrationModalHeaderMenuPlacement = css62`
|
|
14237
14297
|
margin-bottom: var(--spacing-base);
|
|
14238
14298
|
`;
|
|
14239
|
-
var IntegrationModalHeaderContentWrapper =
|
|
14299
|
+
var IntegrationModalHeaderContentWrapper = css62`
|
|
14240
14300
|
position: relative;
|
|
14241
14301
|
z-index: var(--z-10);
|
|
14242
14302
|
`;
|
|
14243
14303
|
|
|
14244
14304
|
// src/components/Modal/IntegrationModalHeader.tsx
|
|
14245
|
-
import { Fragment as Fragment9, jsx as
|
|
14305
|
+
import { Fragment as Fragment9, jsx as jsx75, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
14246
14306
|
var HexModalBackground = ({ ...props }) => {
|
|
14247
|
-
return /* @__PURE__ */
|
|
14307
|
+
return /* @__PURE__ */ jsxs49(
|
|
14248
14308
|
"svg",
|
|
14249
14309
|
{
|
|
14250
14310
|
width: "236",
|
|
@@ -14254,7 +14314,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14254
14314
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14255
14315
|
...props,
|
|
14256
14316
|
children: [
|
|
14257
|
-
/* @__PURE__ */
|
|
14317
|
+
/* @__PURE__ */ jsx75(
|
|
14258
14318
|
"path",
|
|
14259
14319
|
{
|
|
14260
14320
|
fillRule: "evenodd",
|
|
@@ -14263,7 +14323,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14263
14323
|
fill: "url(#paint0_linear_196_2737)"
|
|
14264
14324
|
}
|
|
14265
14325
|
),
|
|
14266
|
-
/* @__PURE__ */
|
|
14326
|
+
/* @__PURE__ */ jsx75("defs", { children: /* @__PURE__ */ jsxs49(
|
|
14267
14327
|
"linearGradient",
|
|
14268
14328
|
{
|
|
14269
14329
|
id: "paint0_linear_196_2737",
|
|
@@ -14273,8 +14333,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14273
14333
|
y2: "-95.2742",
|
|
14274
14334
|
gradientUnits: "userSpaceOnUse",
|
|
14275
14335
|
children: [
|
|
14276
|
-
/* @__PURE__ */
|
|
14277
|
-
/* @__PURE__ */
|
|
14336
|
+
/* @__PURE__ */ jsx75("stop", { stopColor: "#81DCDE" }),
|
|
14337
|
+
/* @__PURE__ */ jsx75("stop", { offset: "1", stopColor: "#428ED4" })
|
|
14278
14338
|
]
|
|
14279
14339
|
}
|
|
14280
14340
|
) })
|
|
@@ -14283,17 +14343,17 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14283
14343
|
);
|
|
14284
14344
|
};
|
|
14285
14345
|
var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
14286
|
-
return /* @__PURE__ */
|
|
14287
|
-
/* @__PURE__ */
|
|
14288
|
-
/* @__PURE__ */
|
|
14289
|
-
icon ? /* @__PURE__ */
|
|
14290
|
-
/* @__PURE__ */
|
|
14291
|
-
menu2 ? /* @__PURE__ */
|
|
14346
|
+
return /* @__PURE__ */ jsxs49(Fragment9, { children: [
|
|
14347
|
+
/* @__PURE__ */ jsx75(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
14348
|
+
/* @__PURE__ */ jsx75("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs49("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
14349
|
+
icon ? /* @__PURE__ */ jsx75(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
14350
|
+
/* @__PURE__ */ jsx75(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-test-id": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
14351
|
+
menu2 ? /* @__PURE__ */ jsxs49("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
14292
14352
|
menu2,
|
|
14293
14353
|
" "
|
|
14294
14354
|
] }) : null
|
|
14295
14355
|
] }) }),
|
|
14296
|
-
/* @__PURE__ */
|
|
14356
|
+
/* @__PURE__ */ jsx75("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
14297
14357
|
] });
|
|
14298
14358
|
};
|
|
14299
14359
|
|
|
@@ -14307,8 +14367,8 @@ import {
|
|
|
14307
14367
|
} from "reakit/Tooltip";
|
|
14308
14368
|
|
|
14309
14369
|
// src/components/Tooltip/Tooltip.styles.ts
|
|
14310
|
-
import { css as
|
|
14311
|
-
var TooltipContainer =
|
|
14370
|
+
import { css as css63 } from "@emotion/react";
|
|
14371
|
+
var TooltipContainer = css63`
|
|
14312
14372
|
border: 2px solid var(--gray-300);
|
|
14313
14373
|
border-radius: var(--rounded-base);
|
|
14314
14374
|
padding: var(--spacing-xs) var(--spacing-sm);
|
|
@@ -14316,28 +14376,28 @@ var TooltipContainer = css60`
|
|
|
14316
14376
|
font-size: var(--fs-xs);
|
|
14317
14377
|
background: var(--white);
|
|
14318
14378
|
`;
|
|
14319
|
-
var TooltipArrowStyles =
|
|
14379
|
+
var TooltipArrowStyles = css63`
|
|
14320
14380
|
svg {
|
|
14321
14381
|
fill: var(--gray-300);
|
|
14322
14382
|
}
|
|
14323
14383
|
`;
|
|
14324
14384
|
|
|
14325
14385
|
// src/components/Tooltip/Tooltip.tsx
|
|
14326
|
-
import { Fragment as Fragment10, jsx as
|
|
14386
|
+
import { Fragment as Fragment10, jsx as jsx76, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
14327
14387
|
function Tooltip({ children, title, placement = "bottom", visible, ...props }) {
|
|
14328
14388
|
const tooltip = useTooltipState({ placement });
|
|
14329
|
-
return !title ? children : /* @__PURE__ */
|
|
14330
|
-
/* @__PURE__ */
|
|
14331
|
-
/* @__PURE__ */
|
|
14332
|
-
/* @__PURE__ */
|
|
14389
|
+
return !title ? children : /* @__PURE__ */ jsxs50(Fragment10, { children: [
|
|
14390
|
+
/* @__PURE__ */ jsx76(TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => React16.cloneElement(children, referenceProps) }),
|
|
14391
|
+
/* @__PURE__ */ jsxs50(ReakitTooltip, { ...tooltip, ...props, css: TooltipContainer, visible: visible != null ? visible : tooltip.visible, children: [
|
|
14392
|
+
/* @__PURE__ */ jsx76(TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
|
|
14333
14393
|
title
|
|
14334
14394
|
] })
|
|
14335
14395
|
] });
|
|
14336
14396
|
}
|
|
14337
14397
|
|
|
14338
14398
|
// src/components/ParameterInputs/styles/ParameterBindingButton.styles.ts
|
|
14339
|
-
import { css as
|
|
14340
|
-
var inputIconBtn =
|
|
14399
|
+
import { css as css64 } from "@emotion/react";
|
|
14400
|
+
var inputIconBtn = css64`
|
|
14341
14401
|
align-items: center;
|
|
14342
14402
|
border: none;
|
|
14343
14403
|
border-radius: var(--rounded-base);
|
|
@@ -14361,7 +14421,7 @@ var inputIconBtn = css61`
|
|
|
14361
14421
|
`;
|
|
14362
14422
|
|
|
14363
14423
|
// src/components/ParameterInputs/ConnectToDataElementButton.tsx
|
|
14364
|
-
import { jsx as
|
|
14424
|
+
import { jsx as jsx77, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
14365
14425
|
var ConnectToDataElementButton = ({
|
|
14366
14426
|
icon,
|
|
14367
14427
|
iconColor,
|
|
@@ -14371,7 +14431,7 @@ var ConnectToDataElementButton = ({
|
|
|
14371
14431
|
...props
|
|
14372
14432
|
}) => {
|
|
14373
14433
|
const title = isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
14374
|
-
return /* @__PURE__ */
|
|
14434
|
+
return /* @__PURE__ */ jsx77(Tooltip, { title, children: /* @__PURE__ */ jsxs51(
|
|
14375
14435
|
"button",
|
|
14376
14436
|
{
|
|
14377
14437
|
css: inputIconBtn,
|
|
@@ -14380,7 +14440,7 @@ var ConnectToDataElementButton = ({
|
|
|
14380
14440
|
"aria-disabled": isLocked,
|
|
14381
14441
|
...props,
|
|
14382
14442
|
children: [
|
|
14383
|
-
/* @__PURE__ */
|
|
14443
|
+
/* @__PURE__ */ jsx77(
|
|
14384
14444
|
Icon,
|
|
14385
14445
|
{
|
|
14386
14446
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -14416,8 +14476,8 @@ var useParameterShell = () => {
|
|
|
14416
14476
|
};
|
|
14417
14477
|
|
|
14418
14478
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
14419
|
-
import { css as
|
|
14420
|
-
var inputContainer2 =
|
|
14479
|
+
import { css as css65 } from "@emotion/react";
|
|
14480
|
+
var inputContainer2 = css65`
|
|
14421
14481
|
position: relative;
|
|
14422
14482
|
|
|
14423
14483
|
&:hover,
|
|
@@ -14429,14 +14489,14 @@ var inputContainer2 = css62`
|
|
|
14429
14489
|
}
|
|
14430
14490
|
}
|
|
14431
14491
|
`;
|
|
14432
|
-
var labelText2 =
|
|
14492
|
+
var labelText2 = css65`
|
|
14433
14493
|
align-items: center;
|
|
14434
14494
|
display: flex;
|
|
14435
14495
|
gap: var(--spacing-xs);
|
|
14436
14496
|
font-weight: var(--fw-regular);
|
|
14437
14497
|
margin: 0 0 var(--spacing-xs);
|
|
14438
14498
|
`;
|
|
14439
|
-
var input2 =
|
|
14499
|
+
var input2 = css65`
|
|
14440
14500
|
display: block;
|
|
14441
14501
|
appearance: none;
|
|
14442
14502
|
box-sizing: border-box;
|
|
@@ -14480,18 +14540,18 @@ var input2 = css62`
|
|
|
14480
14540
|
color: var(--gray-400);
|
|
14481
14541
|
}
|
|
14482
14542
|
`;
|
|
14483
|
-
var selectInput =
|
|
14543
|
+
var selectInput = css65`
|
|
14484
14544
|
background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath d='M6.34317 7.75732L4.92896 9.17154L12 16.2426L19.0711 9.17157L17.6569 7.75735L12 13.4142L6.34317 7.75732Z' fill='currentColor' /%3E%3C/svg%3E");
|
|
14485
14545
|
background-position: right var(--spacing-sm) center;
|
|
14486
14546
|
background-repeat: no-repeat;
|
|
14487
14547
|
background-size: 1rem;
|
|
14488
14548
|
padding-right: var(--spacing-xl);
|
|
14489
14549
|
`;
|
|
14490
|
-
var inputWrapper =
|
|
14550
|
+
var inputWrapper = css65`
|
|
14491
14551
|
display: flex; // used to correct overflow with chrome textarea
|
|
14492
14552
|
position: relative;
|
|
14493
14553
|
`;
|
|
14494
|
-
var inputIcon2 =
|
|
14554
|
+
var inputIcon2 = css65`
|
|
14495
14555
|
align-items: center;
|
|
14496
14556
|
background: var(--white);
|
|
14497
14557
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -14507,7 +14567,7 @@ var inputIcon2 = css62`
|
|
|
14507
14567
|
width: var(--spacing-lg);
|
|
14508
14568
|
z-index: var(--z-10);
|
|
14509
14569
|
`;
|
|
14510
|
-
var inputToggleLabel2 =
|
|
14570
|
+
var inputToggleLabel2 = css65`
|
|
14511
14571
|
align-items: center;
|
|
14512
14572
|
background: var(--white);
|
|
14513
14573
|
cursor: pointer;
|
|
@@ -14518,7 +14578,7 @@ var inputToggleLabel2 = css62`
|
|
|
14518
14578
|
min-height: var(--spacing-md);
|
|
14519
14579
|
position: relative;
|
|
14520
14580
|
`;
|
|
14521
|
-
var toggleInput2 =
|
|
14581
|
+
var toggleInput2 = css65`
|
|
14522
14582
|
appearance: none;
|
|
14523
14583
|
border: 1px solid var(--gray-300);
|
|
14524
14584
|
background: var(--white);
|
|
@@ -14557,7 +14617,7 @@ var toggleInput2 = css62`
|
|
|
14557
14617
|
border-color: var(--gray-300);
|
|
14558
14618
|
}
|
|
14559
14619
|
`;
|
|
14560
|
-
var inlineLabel2 =
|
|
14620
|
+
var inlineLabel2 = css65`
|
|
14561
14621
|
padding-left: var(--spacing-lg);
|
|
14562
14622
|
font-size: var(--fs-sm);
|
|
14563
14623
|
font-weight: var(--fw-regular);
|
|
@@ -14573,7 +14633,7 @@ var inlineLabel2 = css62`
|
|
|
14573
14633
|
}
|
|
14574
14634
|
}
|
|
14575
14635
|
`;
|
|
14576
|
-
var inputMenu =
|
|
14636
|
+
var inputMenu = css65`
|
|
14577
14637
|
background: none;
|
|
14578
14638
|
border: none;
|
|
14579
14639
|
padding: var(--spacing-2xs);
|
|
@@ -14589,14 +14649,14 @@ var inputMenu = css62`
|
|
|
14589
14649
|
background-color: var(--gray-200);
|
|
14590
14650
|
}
|
|
14591
14651
|
`;
|
|
14592
|
-
var textarea2 =
|
|
14652
|
+
var textarea2 = css65`
|
|
14593
14653
|
resize: vertical;
|
|
14594
14654
|
min-height: 2rem;
|
|
14595
14655
|
`;
|
|
14596
|
-
var imageWrapper =
|
|
14656
|
+
var imageWrapper = css65`
|
|
14597
14657
|
background: var(--white);
|
|
14598
14658
|
`;
|
|
14599
|
-
var img =
|
|
14659
|
+
var img = css65`
|
|
14600
14660
|
animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
14601
14661
|
object-fit: contain;
|
|
14602
14662
|
max-width: 100%;
|
|
@@ -14604,7 +14664,7 @@ var img = css62`
|
|
|
14604
14664
|
opacity: var(--opacity-0);
|
|
14605
14665
|
margin: var(--spacing-sm) auto 0;
|
|
14606
14666
|
`;
|
|
14607
|
-
var dataConnectButton =
|
|
14667
|
+
var dataConnectButton = css65`
|
|
14608
14668
|
align-items: center;
|
|
14609
14669
|
appearance: none;
|
|
14610
14670
|
box-sizing: border-box;
|
|
@@ -14639,7 +14699,7 @@ var dataConnectButton = css62`
|
|
|
14639
14699
|
pointer-events: none;
|
|
14640
14700
|
}
|
|
14641
14701
|
`;
|
|
14642
|
-
var linkParameterBtn =
|
|
14702
|
+
var linkParameterBtn = css65`
|
|
14643
14703
|
border-radius: var(--rounded-base);
|
|
14644
14704
|
background: var(--white);
|
|
14645
14705
|
border: none;
|
|
@@ -14648,7 +14708,7 @@ var linkParameterBtn = css62`
|
|
|
14648
14708
|
font-size: var(--fs-sm);
|
|
14649
14709
|
line-height: 1;
|
|
14650
14710
|
`;
|
|
14651
|
-
var linkParameterControls =
|
|
14711
|
+
var linkParameterControls = css65`
|
|
14652
14712
|
position: absolute;
|
|
14653
14713
|
inset: 0 0 0 auto;
|
|
14654
14714
|
padding: 0 var(--spacing-base);
|
|
@@ -14657,13 +14717,13 @@ var linkParameterControls = css62`
|
|
|
14657
14717
|
justify-content: center;
|
|
14658
14718
|
gap: var(--spacing-base);
|
|
14659
14719
|
`;
|
|
14660
|
-
var linkParameterInput = (withExternalLinkIcon) =>
|
|
14720
|
+
var linkParameterInput = (withExternalLinkIcon) => css65`
|
|
14661
14721
|
padding-right: calc(
|
|
14662
14722
|
${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
|
|
14663
14723
|
var(--spacing-base)
|
|
14664
14724
|
);
|
|
14665
14725
|
`;
|
|
14666
|
-
var linkParameterIcon =
|
|
14726
|
+
var linkParameterIcon = css65`
|
|
14667
14727
|
align-items: center;
|
|
14668
14728
|
color: var(--brand-secondary-3);
|
|
14669
14729
|
display: flex;
|
|
@@ -14678,7 +14738,7 @@ var linkParameterIcon = css62`
|
|
|
14678
14738
|
`;
|
|
14679
14739
|
|
|
14680
14740
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
14681
|
-
import { jsx as
|
|
14741
|
+
import { jsx as jsx78, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
14682
14742
|
function ParameterDataResource({
|
|
14683
14743
|
label,
|
|
14684
14744
|
labelLeadingIcon,
|
|
@@ -14688,12 +14748,12 @@ function ParameterDataResource({
|
|
|
14688
14748
|
disabled,
|
|
14689
14749
|
children
|
|
14690
14750
|
}) {
|
|
14691
|
-
return /* @__PURE__ */
|
|
14692
|
-
/* @__PURE__ */
|
|
14751
|
+
return /* @__PURE__ */ jsxs52("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
14752
|
+
/* @__PURE__ */ jsxs52("span", { css: labelText2, children: [
|
|
14693
14753
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
14694
14754
|
label
|
|
14695
14755
|
] }),
|
|
14696
|
-
/* @__PURE__ */
|
|
14756
|
+
/* @__PURE__ */ jsxs52(
|
|
14697
14757
|
"button",
|
|
14698
14758
|
{
|
|
14699
14759
|
type: "button",
|
|
@@ -14702,30 +14762,30 @@ function ParameterDataResource({
|
|
|
14702
14762
|
disabled,
|
|
14703
14763
|
onClick: onConnectDatasource,
|
|
14704
14764
|
children: [
|
|
14705
|
-
/* @__PURE__ */
|
|
14765
|
+
/* @__PURE__ */ jsx78("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx78(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
14706
14766
|
children
|
|
14707
14767
|
]
|
|
14708
14768
|
}
|
|
14709
14769
|
),
|
|
14710
|
-
caption ? /* @__PURE__ */
|
|
14770
|
+
caption ? /* @__PURE__ */ jsx78(Caption, { children: caption }) : null
|
|
14711
14771
|
] });
|
|
14712
14772
|
}
|
|
14713
14773
|
|
|
14714
14774
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
14715
|
-
import { css as
|
|
14716
|
-
var ParameterDrawerHeaderContainer =
|
|
14775
|
+
import { css as css66 } from "@emotion/react";
|
|
14776
|
+
var ParameterDrawerHeaderContainer = css66`
|
|
14717
14777
|
align-items: center;
|
|
14718
14778
|
display: flex;
|
|
14719
14779
|
gap: var(--spacing-base);
|
|
14720
14780
|
justify-content: space-between;
|
|
14721
14781
|
margin-bottom: var(--spacing-sm);
|
|
14722
14782
|
`;
|
|
14723
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
14783
|
+
var ParameterDrawerHeaderTitleGroup = css66`
|
|
14724
14784
|
align-items: center;
|
|
14725
14785
|
display: flex;
|
|
14726
14786
|
gap: var(--spacing-sm);
|
|
14727
14787
|
`;
|
|
14728
|
-
var ParameterDrawerHeaderTitle =
|
|
14788
|
+
var ParameterDrawerHeaderTitle = css66`
|
|
14729
14789
|
text-overflow: ellipsis;
|
|
14730
14790
|
white-space: nowrap;
|
|
14731
14791
|
overflow: hidden;
|
|
@@ -14733,12 +14793,12 @@ var ParameterDrawerHeaderTitle = css63`
|
|
|
14733
14793
|
`;
|
|
14734
14794
|
|
|
14735
14795
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
14736
|
-
import { jsx as
|
|
14796
|
+
import { jsx as jsx79, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
14737
14797
|
var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
14738
|
-
return /* @__PURE__ */
|
|
14739
|
-
/* @__PURE__ */
|
|
14798
|
+
return /* @__PURE__ */ jsxs53("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
14799
|
+
/* @__PURE__ */ jsxs53("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
14740
14800
|
iconBeforeTitle,
|
|
14741
|
-
/* @__PURE__ */
|
|
14801
|
+
/* @__PURE__ */ jsx79(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
|
|
14742
14802
|
] }),
|
|
14743
14803
|
children
|
|
14744
14804
|
] });
|
|
@@ -14748,8 +14808,8 @@ var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
|
14748
14808
|
import { forwardRef as forwardRef8 } from "react";
|
|
14749
14809
|
|
|
14750
14810
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
14751
|
-
import { css as
|
|
14752
|
-
var fieldsetStyles =
|
|
14811
|
+
import { css as css67 } from "@emotion/react";
|
|
14812
|
+
var fieldsetStyles = css67`
|
|
14753
14813
|
&:disabled,
|
|
14754
14814
|
[readonly] {
|
|
14755
14815
|
pointer-events: none;
|
|
@@ -14760,7 +14820,7 @@ var fieldsetStyles = css64`
|
|
|
14760
14820
|
}
|
|
14761
14821
|
}
|
|
14762
14822
|
`;
|
|
14763
|
-
var fieldsetLegend2 =
|
|
14823
|
+
var fieldsetLegend2 = css67`
|
|
14764
14824
|
display: block;
|
|
14765
14825
|
font-weight: var(--fw-medium);
|
|
14766
14826
|
margin-bottom: var(--spacing-sm);
|
|
@@ -14768,11 +14828,11 @@ var fieldsetLegend2 = css64`
|
|
|
14768
14828
|
`;
|
|
14769
14829
|
|
|
14770
14830
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
14771
|
-
import { jsx as
|
|
14831
|
+
import { jsx as jsx80, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
14772
14832
|
var ParameterGroup = forwardRef8(
|
|
14773
14833
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
14774
|
-
return /* @__PURE__ */
|
|
14775
|
-
/* @__PURE__ */
|
|
14834
|
+
return /* @__PURE__ */ jsxs54("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
14835
|
+
/* @__PURE__ */ jsx80("legend", { css: fieldsetLegend2, children: legend }),
|
|
14776
14836
|
children
|
|
14777
14837
|
] });
|
|
14778
14838
|
}
|
|
@@ -14785,21 +14845,21 @@ import { forwardRef as forwardRef10, useCallback as useCallback3, useDeferredVal
|
|
|
14785
14845
|
import { useState as useState7 } from "react";
|
|
14786
14846
|
|
|
14787
14847
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
14788
|
-
import { jsx as
|
|
14848
|
+
import { jsx as jsx81 } from "@emotion/react/jsx-runtime";
|
|
14789
14849
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
14790
|
-
return !asSpan ? /* @__PURE__ */
|
|
14850
|
+
return !asSpan ? /* @__PURE__ */ jsx81("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx81("span", { "aria-labelledby": id, css: labelText2, children });
|
|
14791
14851
|
};
|
|
14792
14852
|
|
|
14793
14853
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
14794
14854
|
import { forwardRef as forwardRef9 } from "react";
|
|
14795
|
-
import { jsx as
|
|
14855
|
+
import { jsx as jsx82 } from "@emotion/react/jsx-runtime";
|
|
14796
14856
|
var ParameterMenuButton = forwardRef9(
|
|
14797
14857
|
({ label, children }, ref) => {
|
|
14798
|
-
return /* @__PURE__ */
|
|
14858
|
+
return /* @__PURE__ */ jsx82(
|
|
14799
14859
|
Menu,
|
|
14800
14860
|
{
|
|
14801
14861
|
menuLabel: `${label} menu`,
|
|
14802
|
-
menuTrigger: /* @__PURE__ */
|
|
14862
|
+
menuTrigger: /* @__PURE__ */ jsx82(
|
|
14803
14863
|
"button",
|
|
14804
14864
|
{
|
|
14805
14865
|
className: "parameter-menu",
|
|
@@ -14807,7 +14867,7 @@ var ParameterMenuButton = forwardRef9(
|
|
|
14807
14867
|
type: "button",
|
|
14808
14868
|
"aria-label": `${label} options`,
|
|
14809
14869
|
ref,
|
|
14810
|
-
children: /* @__PURE__ */
|
|
14870
|
+
children: /* @__PURE__ */ jsx82(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
14811
14871
|
}
|
|
14812
14872
|
),
|
|
14813
14873
|
children
|
|
@@ -14817,15 +14877,15 @@ var ParameterMenuButton = forwardRef9(
|
|
|
14817
14877
|
);
|
|
14818
14878
|
|
|
14819
14879
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
14820
|
-
import { css as
|
|
14821
|
-
var emptyParameterShell =
|
|
14880
|
+
import { css as css68 } from "@emotion/react";
|
|
14881
|
+
var emptyParameterShell = css68`
|
|
14822
14882
|
border-radius: var(--rounded-sm);
|
|
14823
14883
|
background: var(--white);
|
|
14824
14884
|
flex-grow: 1;
|
|
14825
14885
|
padding: var(--spacing-xs);
|
|
14826
14886
|
position: relative;
|
|
14827
14887
|
`;
|
|
14828
|
-
var emptyParameterShellText =
|
|
14888
|
+
var emptyParameterShellText = css68`
|
|
14829
14889
|
background: var(--brand-secondary-6);
|
|
14830
14890
|
border-radius: var(--rounded-sm);
|
|
14831
14891
|
padding: var(--spacing-sm);
|
|
@@ -14833,7 +14893,7 @@ var emptyParameterShellText = css65`
|
|
|
14833
14893
|
font-size: var(--fs-sm);
|
|
14834
14894
|
margin: 0;
|
|
14835
14895
|
`;
|
|
14836
|
-
var overrideMarker =
|
|
14896
|
+
var overrideMarker = css68`
|
|
14837
14897
|
border-radius: var(--rounded-sm);
|
|
14838
14898
|
border: 10px solid var(--gray-300);
|
|
14839
14899
|
border-left-color: transparent;
|
|
@@ -14844,7 +14904,7 @@ var overrideMarker = css65`
|
|
|
14844
14904
|
`;
|
|
14845
14905
|
|
|
14846
14906
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
14847
|
-
import { jsx as
|
|
14907
|
+
import { jsx as jsx83, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
14848
14908
|
var extractParameterProps = (props) => {
|
|
14849
14909
|
const {
|
|
14850
14910
|
id,
|
|
@@ -14906,18 +14966,18 @@ var ParameterShell = ({
|
|
|
14906
14966
|
const [manualErrorMessage, setManualErrorMessage] = useState7(void 0);
|
|
14907
14967
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
14908
14968
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
14909
|
-
return /* @__PURE__ */
|
|
14910
|
-
hiddenLabel || title ? null : /* @__PURE__ */
|
|
14969
|
+
return /* @__PURE__ */ jsxs55("div", { css: inputContainer2, ...props, children: [
|
|
14970
|
+
hiddenLabel || title ? null : /* @__PURE__ */ jsxs55(ParameterLabel, { id, css: labelText2, children: [
|
|
14911
14971
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
14912
14972
|
label
|
|
14913
14973
|
] }),
|
|
14914
|
-
!title ? null : /* @__PURE__ */
|
|
14974
|
+
!title ? null : /* @__PURE__ */ jsxs55(ParameterLabel, { id, asSpan: true, children: [
|
|
14915
14975
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
14916
14976
|
title
|
|
14917
14977
|
] }),
|
|
14918
|
-
/* @__PURE__ */
|
|
14919
|
-
menuItems ? /* @__PURE__ */
|
|
14920
|
-
/* @__PURE__ */
|
|
14978
|
+
/* @__PURE__ */ jsxs55("div", { css: inputWrapper, children: [
|
|
14979
|
+
menuItems ? /* @__PURE__ */ jsx83(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
14980
|
+
/* @__PURE__ */ jsx83(
|
|
14921
14981
|
ParameterShellContext.Provider,
|
|
14922
14982
|
{
|
|
14923
14983
|
value: {
|
|
@@ -14927,32 +14987,32 @@ var ParameterShell = ({
|
|
|
14927
14987
|
errorMessage: errorMessaging,
|
|
14928
14988
|
handleManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
14929
14989
|
},
|
|
14930
|
-
children: /* @__PURE__ */
|
|
14990
|
+
children: /* @__PURE__ */ jsxs55(ParameterShellPlaceholder, { children: [
|
|
14931
14991
|
children,
|
|
14932
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
14992
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx83(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
14933
14993
|
] })
|
|
14934
14994
|
}
|
|
14935
14995
|
)
|
|
14936
14996
|
] }),
|
|
14937
|
-
caption ? /* @__PURE__ */
|
|
14938
|
-
errorMessaging ? /* @__PURE__ */
|
|
14939
|
-
warningMessage ? /* @__PURE__ */
|
|
14940
|
-
infoMessage ? /* @__PURE__ */
|
|
14997
|
+
caption ? /* @__PURE__ */ jsx83(Caption, { testId: captionTestId, children: caption }) : null,
|
|
14998
|
+
errorMessaging ? /* @__PURE__ */ jsx83(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null,
|
|
14999
|
+
warningMessage ? /* @__PURE__ */ jsx83(WarningMessage, { message: warningMessage }) : null,
|
|
15000
|
+
infoMessage ? /* @__PURE__ */ jsx83(InfoMessage, { message: infoMessage }) : null
|
|
14941
15001
|
] });
|
|
14942
15002
|
};
|
|
14943
15003
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
14944
|
-
return /* @__PURE__ */
|
|
15004
|
+
return /* @__PURE__ */ jsx83("div", { css: emptyParameterShell, children });
|
|
14945
15005
|
};
|
|
14946
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
15006
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx83(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx83("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx83("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
14947
15007
|
|
|
14948
15008
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
14949
|
-
import { Fragment as Fragment11, jsx as
|
|
15009
|
+
import { Fragment as Fragment11, jsx as jsx84, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
14950
15010
|
var ParameterImage = forwardRef10((props, ref) => {
|
|
14951
15011
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14952
|
-
return /* @__PURE__ */
|
|
15012
|
+
return /* @__PURE__ */ jsx84(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: /* @__PURE__ */ jsx84(ParameterImageInner, { ref, ...innerProps }) });
|
|
14953
15013
|
});
|
|
14954
15014
|
var BrokenImage = ({ ...props }) => {
|
|
14955
|
-
return /* @__PURE__ */
|
|
15015
|
+
return /* @__PURE__ */ jsxs56(
|
|
14956
15016
|
"svg",
|
|
14957
15017
|
{
|
|
14958
15018
|
role: "img",
|
|
@@ -14964,11 +15024,11 @@ var BrokenImage = ({ ...props }) => {
|
|
|
14964
15024
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
14965
15025
|
...props,
|
|
14966
15026
|
children: [
|
|
14967
|
-
/* @__PURE__ */
|
|
14968
|
-
/* @__PURE__ */
|
|
14969
|
-
/* @__PURE__ */
|
|
14970
|
-
/* @__PURE__ */
|
|
14971
|
-
/* @__PURE__ */
|
|
15027
|
+
/* @__PURE__ */ jsx84("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
15028
|
+
/* @__PURE__ */ jsx84("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
15029
|
+
/* @__PURE__ */ jsxs56("defs", { children: [
|
|
15030
|
+
/* @__PURE__ */ jsx84("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx84("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
15031
|
+
/* @__PURE__ */ jsx84(
|
|
14972
15032
|
"image",
|
|
14973
15033
|
{
|
|
14974
15034
|
id: "image0_761_4353",
|
|
@@ -15027,8 +15087,8 @@ var ParameterImageInner = forwardRef10(
|
|
|
15027
15087
|
useEffect9(() => {
|
|
15028
15088
|
updateImageSrc();
|
|
15029
15089
|
}, [deferredValue]);
|
|
15030
|
-
return /* @__PURE__ */
|
|
15031
|
-
/* @__PURE__ */
|
|
15090
|
+
return /* @__PURE__ */ jsxs56(Fragment11, { children: [
|
|
15091
|
+
/* @__PURE__ */ jsx84(
|
|
15032
15092
|
"input",
|
|
15033
15093
|
{
|
|
15034
15094
|
css: input2,
|
|
@@ -15040,8 +15100,8 @@ var ParameterImageInner = forwardRef10(
|
|
|
15040
15100
|
...props
|
|
15041
15101
|
}
|
|
15042
15102
|
),
|
|
15043
|
-
/* @__PURE__ */
|
|
15044
|
-
deferredValue && !errorMessage ? /* @__PURE__ */
|
|
15103
|
+
/* @__PURE__ */ jsxs56("div", { css: imageWrapper, children: [
|
|
15104
|
+
deferredValue && !errorMessage ? /* @__PURE__ */ jsx84(
|
|
15045
15105
|
"img",
|
|
15046
15106
|
{
|
|
15047
15107
|
src: deferredValue,
|
|
@@ -15052,24 +15112,24 @@ var ParameterImageInner = forwardRef10(
|
|
|
15052
15112
|
loading: "lazy"
|
|
15053
15113
|
}
|
|
15054
15114
|
) : null,
|
|
15055
|
-
deferredValue && errorMessage ? /* @__PURE__ */
|
|
15115
|
+
deferredValue && errorMessage ? /* @__PURE__ */ jsx84(BrokenImage, { css: img }) : null
|
|
15056
15116
|
] }),
|
|
15057
|
-
loading ? /* @__PURE__ */
|
|
15117
|
+
loading ? /* @__PURE__ */ jsx84(LoadingIcon, {}) : null
|
|
15058
15118
|
] });
|
|
15059
15119
|
}
|
|
15060
15120
|
);
|
|
15061
15121
|
|
|
15062
15122
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
15063
15123
|
import { forwardRef as forwardRef11 } from "react";
|
|
15064
|
-
import { jsx as
|
|
15124
|
+
import { jsx as jsx85 } from "@emotion/react/jsx-runtime";
|
|
15065
15125
|
var ParameterInput = forwardRef11((props, ref) => {
|
|
15066
15126
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
15067
|
-
return /* @__PURE__ */
|
|
15127
|
+
return /* @__PURE__ */ jsx85(ParameterShell, { "data-test-id": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx85(ParameterInputInner, { ref, ...innerProps }) });
|
|
15068
15128
|
});
|
|
15069
15129
|
var ParameterInputInner = forwardRef11(
|
|
15070
15130
|
({ ...props }, ref) => {
|
|
15071
15131
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
15072
|
-
return /* @__PURE__ */
|
|
15132
|
+
return /* @__PURE__ */ jsx85(
|
|
15073
15133
|
"input",
|
|
15074
15134
|
{
|
|
15075
15135
|
css: input2,
|
|
@@ -15086,18 +15146,18 @@ var ParameterInputInner = forwardRef11(
|
|
|
15086
15146
|
|
|
15087
15147
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
15088
15148
|
import { forwardRef as forwardRef12 } from "react";
|
|
15089
|
-
import { jsx as
|
|
15149
|
+
import { jsx as jsx86, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
15090
15150
|
var ParameterLink = forwardRef12(
|
|
15091
15151
|
({ buttonText = "Select link", disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
15092
15152
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
15093
|
-
return /* @__PURE__ */
|
|
15153
|
+
return /* @__PURE__ */ jsx86(
|
|
15094
15154
|
ParameterShell,
|
|
15095
15155
|
{
|
|
15096
15156
|
"data-test-id": "link-parameter-editor",
|
|
15097
15157
|
...shellProps,
|
|
15098
15158
|
label: innerProps.value ? shellProps.label : "",
|
|
15099
15159
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
15100
|
-
children: !innerProps.value ? /* @__PURE__ */
|
|
15160
|
+
children: !innerProps.value ? /* @__PURE__ */ jsx86("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText }) : /* @__PURE__ */ jsx86(
|
|
15101
15161
|
ParameterLinkInner,
|
|
15102
15162
|
{
|
|
15103
15163
|
onConnectLink,
|
|
@@ -15113,8 +15173,8 @@ var ParameterLink = forwardRef12(
|
|
|
15113
15173
|
var ParameterLinkInner = forwardRef12(
|
|
15114
15174
|
({ externalLink, onConnectLink, disabled, ...props }, ref) => {
|
|
15115
15175
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
15116
|
-
return /* @__PURE__ */
|
|
15117
|
-
/* @__PURE__ */
|
|
15176
|
+
return /* @__PURE__ */ jsxs57("div", { css: inputWrapper, children: [
|
|
15177
|
+
/* @__PURE__ */ jsx86(
|
|
15118
15178
|
"input",
|
|
15119
15179
|
{
|
|
15120
15180
|
type: "text",
|
|
@@ -15126,8 +15186,8 @@ var ParameterLinkInner = forwardRef12(
|
|
|
15126
15186
|
...props
|
|
15127
15187
|
}
|
|
15128
15188
|
),
|
|
15129
|
-
/* @__PURE__ */
|
|
15130
|
-
/* @__PURE__ */
|
|
15189
|
+
/* @__PURE__ */ jsxs57("div", { css: linkParameterControls, children: [
|
|
15190
|
+
/* @__PURE__ */ jsx86(
|
|
15131
15191
|
"button",
|
|
15132
15192
|
{
|
|
15133
15193
|
type: "button",
|
|
@@ -15138,7 +15198,7 @@ var ParameterLinkInner = forwardRef12(
|
|
|
15138
15198
|
children: "edit"
|
|
15139
15199
|
}
|
|
15140
15200
|
),
|
|
15141
|
-
externalLink ? /* @__PURE__ */
|
|
15201
|
+
externalLink ? /* @__PURE__ */ jsx86(
|
|
15142
15202
|
"a",
|
|
15143
15203
|
{
|
|
15144
15204
|
href: externalLink,
|
|
@@ -15146,7 +15206,7 @@ var ParameterLinkInner = forwardRef12(
|
|
|
15146
15206
|
title: "Open link in new tab",
|
|
15147
15207
|
target: "_blank",
|
|
15148
15208
|
rel: "noopener noreferrer",
|
|
15149
|
-
children: /* @__PURE__ */
|
|
15209
|
+
children: /* @__PURE__ */ jsx86(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
15150
15210
|
}
|
|
15151
15211
|
) : null
|
|
15152
15212
|
] })
|
|
@@ -15155,7 +15215,7 @@ var ParameterLinkInner = forwardRef12(
|
|
|
15155
15215
|
);
|
|
15156
15216
|
|
|
15157
15217
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
15158
|
-
import { Fragment as Fragment12, jsx as
|
|
15218
|
+
import { Fragment as Fragment12, jsx as jsx87, jsxs as jsxs58 } from "@emotion/react/jsx-runtime";
|
|
15159
15219
|
var ParameterNameAndPublicIdInput = ({
|
|
15160
15220
|
id,
|
|
15161
15221
|
onBlur,
|
|
@@ -15181,8 +15241,8 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
15181
15241
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
15182
15242
|
};
|
|
15183
15243
|
autoFocus == null ? void 0 : autoFocus();
|
|
15184
|
-
return /* @__PURE__ */
|
|
15185
|
-
/* @__PURE__ */
|
|
15244
|
+
return /* @__PURE__ */ jsxs58(Fragment12, { children: [
|
|
15245
|
+
/* @__PURE__ */ jsx87(
|
|
15186
15246
|
ParameterInput,
|
|
15187
15247
|
{
|
|
15188
15248
|
id: nameIdField,
|
|
@@ -15201,7 +15261,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
15201
15261
|
value: values[nameIdField]
|
|
15202
15262
|
}
|
|
15203
15263
|
),
|
|
15204
|
-
/* @__PURE__ */
|
|
15264
|
+
/* @__PURE__ */ jsx87(
|
|
15205
15265
|
ParameterInput,
|
|
15206
15266
|
{
|
|
15207
15267
|
id: publicIdFieldName,
|
|
@@ -15215,11 +15275,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
15215
15275
|
caption: publicIdCaption,
|
|
15216
15276
|
placeholder: publicIdPlaceholderText,
|
|
15217
15277
|
errorMessage: publicIdError,
|
|
15218
|
-
menuItems: /* @__PURE__ */
|
|
15278
|
+
menuItems: /* @__PURE__ */ jsx87(
|
|
15219
15279
|
MenuItem,
|
|
15220
15280
|
{
|
|
15221
15281
|
disabled: !values[publicIdFieldName],
|
|
15222
|
-
icon: /* @__PURE__ */
|
|
15282
|
+
icon: /* @__PURE__ */ jsx87(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
15223
15283
|
onClick: handleCopyPidFieldValue,
|
|
15224
15284
|
children: "Copy"
|
|
15225
15285
|
}
|
|
@@ -15227,13 +15287,13 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
15227
15287
|
value: values[publicIdFieldName]
|
|
15228
15288
|
}
|
|
15229
15289
|
),
|
|
15230
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
15290
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx87(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
15231
15291
|
] });
|
|
15232
15292
|
};
|
|
15233
15293
|
|
|
15234
15294
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
15235
15295
|
import { forwardRef as forwardRef13 } from "react";
|
|
15236
|
-
import { Fragment as Fragment13, jsx as
|
|
15296
|
+
import { Fragment as Fragment13, jsx as jsx88, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
|
|
15237
15297
|
var ParameterRichText = forwardRef13(
|
|
15238
15298
|
({
|
|
15239
15299
|
label,
|
|
@@ -15247,7 +15307,7 @@ var ParameterRichText = forwardRef13(
|
|
|
15247
15307
|
menuItems,
|
|
15248
15308
|
...props
|
|
15249
15309
|
}, ref) => {
|
|
15250
|
-
return /* @__PURE__ */
|
|
15310
|
+
return /* @__PURE__ */ jsxs59(
|
|
15251
15311
|
ParameterShell,
|
|
15252
15312
|
{
|
|
15253
15313
|
"data-test-id": "parameter-input",
|
|
@@ -15260,8 +15320,8 @@ var ParameterRichText = forwardRef13(
|
|
|
15260
15320
|
captionTestId,
|
|
15261
15321
|
menuItems,
|
|
15262
15322
|
children: [
|
|
15263
|
-
/* @__PURE__ */
|
|
15264
|
-
menuItems ? /* @__PURE__ */
|
|
15323
|
+
/* @__PURE__ */ jsx88(ParameterRichTextInner, { ref, ...props }),
|
|
15324
|
+
menuItems ? /* @__PURE__ */ jsx88(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx88(Fragment13, { children: menuItems }) }) : null
|
|
15265
15325
|
]
|
|
15266
15326
|
}
|
|
15267
15327
|
);
|
|
@@ -15269,7 +15329,7 @@ var ParameterRichText = forwardRef13(
|
|
|
15269
15329
|
);
|
|
15270
15330
|
var ParameterRichTextInner = forwardRef13(({ ...props }, ref) => {
|
|
15271
15331
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
15272
|
-
return /* @__PURE__ */
|
|
15332
|
+
return /* @__PURE__ */ jsx88(
|
|
15273
15333
|
"textarea",
|
|
15274
15334
|
{
|
|
15275
15335
|
css: [input2, textarea2],
|
|
@@ -15283,17 +15343,17 @@ var ParameterRichTextInner = forwardRef13(({ ...props }, ref) => {
|
|
|
15283
15343
|
|
|
15284
15344
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
15285
15345
|
import { forwardRef as forwardRef14 } from "react";
|
|
15286
|
-
import { jsx as
|
|
15346
|
+
import { jsx as jsx89, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
|
|
15287
15347
|
var ParameterSelect = forwardRef14(
|
|
15288
15348
|
({ defaultOption, options, ...props }, ref) => {
|
|
15289
15349
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
15290
|
-
return /* @__PURE__ */
|
|
15350
|
+
return /* @__PURE__ */ jsx89(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx89(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
15291
15351
|
}
|
|
15292
15352
|
);
|
|
15293
15353
|
var ParameterSelectInner = forwardRef14(
|
|
15294
15354
|
({ defaultOption, options, ...props }, ref) => {
|
|
15295
15355
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
15296
|
-
return /* @__PURE__ */
|
|
15356
|
+
return /* @__PURE__ */ jsxs60(
|
|
15297
15357
|
"select",
|
|
15298
15358
|
{
|
|
15299
15359
|
css: [input2, selectInput],
|
|
@@ -15302,10 +15362,10 @@ var ParameterSelectInner = forwardRef14(
|
|
|
15302
15362
|
ref,
|
|
15303
15363
|
...props,
|
|
15304
15364
|
children: [
|
|
15305
|
-
defaultOption ? /* @__PURE__ */
|
|
15365
|
+
defaultOption ? /* @__PURE__ */ jsx89("option", { value: "", children: defaultOption }) : null,
|
|
15306
15366
|
options.map((option) => {
|
|
15307
15367
|
var _a;
|
|
15308
|
-
return /* @__PURE__ */
|
|
15368
|
+
return /* @__PURE__ */ jsx89("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
15309
15369
|
})
|
|
15310
15370
|
]
|
|
15311
15371
|
}
|
|
@@ -15315,14 +15375,14 @@ var ParameterSelectInner = forwardRef14(
|
|
|
15315
15375
|
|
|
15316
15376
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
15317
15377
|
import { forwardRef as forwardRef15 } from "react";
|
|
15318
|
-
import { jsx as
|
|
15378
|
+
import { jsx as jsx90 } from "@emotion/react/jsx-runtime";
|
|
15319
15379
|
var ParameterTextarea = forwardRef15((props, ref) => {
|
|
15320
15380
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
15321
|
-
return /* @__PURE__ */
|
|
15381
|
+
return /* @__PURE__ */ jsx90(ParameterShell, { "data-test-id": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx90(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
15322
15382
|
});
|
|
15323
15383
|
var ParameterTextareaInner = forwardRef15(({ ...props }, ref) => {
|
|
15324
15384
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
15325
|
-
return /* @__PURE__ */
|
|
15385
|
+
return /* @__PURE__ */ jsx90(
|
|
15326
15386
|
"textarea",
|
|
15327
15387
|
{
|
|
15328
15388
|
css: [input2, textarea2],
|
|
@@ -15336,17 +15396,17 @@ var ParameterTextareaInner = forwardRef15(({ ...props }, ref) => {
|
|
|
15336
15396
|
|
|
15337
15397
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
15338
15398
|
import { forwardRef as forwardRef16 } from "react";
|
|
15339
|
-
import { jsx as
|
|
15399
|
+
import { jsx as jsx91, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
|
|
15340
15400
|
var ParameterToggle = forwardRef16((props, ref) => {
|
|
15341
15401
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
15342
|
-
return /* @__PURE__ */
|
|
15402
|
+
return /* @__PURE__ */ jsx91(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx91(ParameterToggleInner, { ref, ...innerProps }) });
|
|
15343
15403
|
});
|
|
15344
15404
|
var ParameterToggleInner = forwardRef16(
|
|
15345
15405
|
({ ...props }, ref) => {
|
|
15346
15406
|
const { id, label } = useParameterShell();
|
|
15347
|
-
return /* @__PURE__ */
|
|
15348
|
-
/* @__PURE__ */
|
|
15349
|
-
/* @__PURE__ */
|
|
15407
|
+
return /* @__PURE__ */ jsxs61("label", { css: inputToggleLabel2, children: [
|
|
15408
|
+
/* @__PURE__ */ jsx91("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
15409
|
+
/* @__PURE__ */ jsx91("span", { css: inlineLabel2, children: label })
|
|
15350
15410
|
] });
|
|
15351
15411
|
}
|
|
15352
15412
|
);
|
|
@@ -15360,13 +15420,13 @@ import {
|
|
|
15360
15420
|
import { Portal as Portal2 } from "reakit/Portal";
|
|
15361
15421
|
|
|
15362
15422
|
// src/components/Popover/Popover.styles.ts
|
|
15363
|
-
import { css as
|
|
15364
|
-
var PopoverBtn =
|
|
15423
|
+
import { css as css69 } from "@emotion/react";
|
|
15424
|
+
var PopoverBtn = css69`
|
|
15365
15425
|
border: none;
|
|
15366
15426
|
background: none;
|
|
15367
15427
|
padding: 0;
|
|
15368
15428
|
`;
|
|
15369
|
-
var Popover =
|
|
15429
|
+
var Popover = css69`
|
|
15370
15430
|
border-left: var(--spacing-xs) solid var(--brand-secondary-3);
|
|
15371
15431
|
border-radius: var(--rounded-base);
|
|
15372
15432
|
box-shadow: var(--shadow-base);
|
|
@@ -15379,7 +15439,7 @@ var Popover = css66`
|
|
|
15379
15439
|
`;
|
|
15380
15440
|
|
|
15381
15441
|
// src/components/Popover/Popover.tsx
|
|
15382
|
-
import { Fragment as Fragment14, jsx as
|
|
15442
|
+
import { Fragment as Fragment14, jsx as jsx92, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
|
|
15383
15443
|
var Popover2 = ({
|
|
15384
15444
|
iconColor = "action",
|
|
15385
15445
|
icon = "info",
|
|
@@ -15391,36 +15451,36 @@ var Popover2 = ({
|
|
|
15391
15451
|
children
|
|
15392
15452
|
}) => {
|
|
15393
15453
|
const popover = usePopoverState({ placement });
|
|
15394
|
-
return /* @__PURE__ */
|
|
15395
|
-
/* @__PURE__ */
|
|
15396
|
-
/* @__PURE__ */
|
|
15397
|
-
/* @__PURE__ */
|
|
15454
|
+
return /* @__PURE__ */ jsxs62(Fragment14, { children: [
|
|
15455
|
+
/* @__PURE__ */ jsxs62(PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, "data-test-id": testId, children: [
|
|
15456
|
+
/* @__PURE__ */ jsx92(Icon, { icon, iconColor, size: iconSize }),
|
|
15457
|
+
/* @__PURE__ */ jsx92("span", { hidden: true, children: buttonText })
|
|
15398
15458
|
] }),
|
|
15399
|
-
/* @__PURE__ */
|
|
15459
|
+
/* @__PURE__ */ jsx92(Portal2, { children: /* @__PURE__ */ jsx92(ReakitPopover, { css: Popover, ...popover, "aria-label": ariaLabel, children }) })
|
|
15400
15460
|
] });
|
|
15401
15461
|
};
|
|
15402
15462
|
|
|
15403
15463
|
// src/components/ProgressList/ProgressList.tsx
|
|
15404
|
-
import { css as
|
|
15464
|
+
import { css as css71 } from "@emotion/react";
|
|
15405
15465
|
import { useMemo as useMemo2 } from "react";
|
|
15406
|
-
import { CgCheckO, CgRadioCheck, CgRecord } from "react-icons/cg";
|
|
15466
|
+
import { CgCheckO as CgCheckO2, CgRadioCheck, CgRecord } from "react-icons/cg";
|
|
15407
15467
|
|
|
15408
15468
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
15409
|
-
import { css as
|
|
15410
|
-
var progressListStyles =
|
|
15469
|
+
import { css as css70 } from "@emotion/react";
|
|
15470
|
+
var progressListStyles = css70`
|
|
15411
15471
|
display: flex;
|
|
15412
15472
|
flex-direction: column;
|
|
15413
15473
|
gap: var(--spacing-sm);
|
|
15414
15474
|
list-style-type: none;
|
|
15415
15475
|
`;
|
|
15416
|
-
var progressListItemStyles =
|
|
15476
|
+
var progressListItemStyles = css70`
|
|
15417
15477
|
display: flex;
|
|
15418
15478
|
gap: var(--spacing-base);
|
|
15419
15479
|
align-items: center;
|
|
15420
15480
|
`;
|
|
15421
15481
|
|
|
15422
15482
|
// src/components/ProgressList/ProgressList.tsx
|
|
15423
|
-
import { jsx as
|
|
15483
|
+
import { jsx as jsx93, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
|
|
15424
15484
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
15425
15485
|
const itemsWithStatus = useMemo2(() => {
|
|
15426
15486
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -15434,8 +15494,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
15434
15494
|
return { ...item, status };
|
|
15435
15495
|
});
|
|
15436
15496
|
}, [items, inProgressId]);
|
|
15437
|
-
return /* @__PURE__ */
|
|
15438
|
-
return /* @__PURE__ */
|
|
15497
|
+
return /* @__PURE__ */ jsx93("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
15498
|
+
return /* @__PURE__ */ jsx93(
|
|
15439
15499
|
ProgressListItem,
|
|
15440
15500
|
{
|
|
15441
15501
|
status,
|
|
@@ -15460,7 +15520,7 @@ var ProgressListItem = ({
|
|
|
15460
15520
|
return warningIcon;
|
|
15461
15521
|
}
|
|
15462
15522
|
const iconPerStatus = {
|
|
15463
|
-
completed:
|
|
15523
|
+
completed: CgCheckO2,
|
|
15464
15524
|
inProgress: CgRecord,
|
|
15465
15525
|
queued: CgRadioCheck
|
|
15466
15526
|
};
|
|
@@ -15468,12 +15528,12 @@ var ProgressListItem = ({
|
|
|
15468
15528
|
}, [status, error]);
|
|
15469
15529
|
const statusStyles = useMemo2(() => {
|
|
15470
15530
|
if (error) {
|
|
15471
|
-
return errorLevel === "caution" ?
|
|
15531
|
+
return errorLevel === "caution" ? css71`
|
|
15472
15532
|
color: rgb(161, 98, 7);
|
|
15473
15533
|
& svg {
|
|
15474
15534
|
color: rgb(250, 204, 21);
|
|
15475
15535
|
}
|
|
15476
|
-
` :
|
|
15536
|
+
` : css71`
|
|
15477
15537
|
color: rgb(185, 28, 28);
|
|
15478
15538
|
& svg {
|
|
15479
15539
|
color: var(--brand-primary-2);
|
|
@@ -15481,35 +15541,35 @@ var ProgressListItem = ({
|
|
|
15481
15541
|
`;
|
|
15482
15542
|
}
|
|
15483
15543
|
const colorPerStatus = {
|
|
15484
|
-
completed:
|
|
15544
|
+
completed: css71`
|
|
15485
15545
|
opacity: 0.75;
|
|
15486
15546
|
`,
|
|
15487
|
-
inProgress:
|
|
15547
|
+
inProgress: css71`
|
|
15488
15548
|
-webkit-text-stroke-width: thin;
|
|
15489
15549
|
`,
|
|
15490
|
-
queued:
|
|
15550
|
+
queued: css71`
|
|
15491
15551
|
opacity: 0.5;
|
|
15492
15552
|
`
|
|
15493
15553
|
};
|
|
15494
15554
|
return colorPerStatus[status];
|
|
15495
15555
|
}, [status, error, errorLevel]);
|
|
15496
|
-
return /* @__PURE__ */
|
|
15497
|
-
/* @__PURE__ */
|
|
15498
|
-
/* @__PURE__ */
|
|
15556
|
+
return /* @__PURE__ */ jsxs63("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
15557
|
+
/* @__PURE__ */ jsx93(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx93("div", { children: /* @__PURE__ */ jsx93(Icon2, { size: 20 }) }) }),
|
|
15558
|
+
/* @__PURE__ */ jsxs63("div", { children: [
|
|
15499
15559
|
children,
|
|
15500
|
-
/* @__PURE__ */
|
|
15560
|
+
/* @__PURE__ */ jsx93("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
15501
15561
|
] })
|
|
15502
15562
|
] });
|
|
15503
15563
|
};
|
|
15504
15564
|
|
|
15505
15565
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
15506
|
-
import { css as
|
|
15566
|
+
import { css as css73 } from "@emotion/react";
|
|
15507
15567
|
import { useCallback as useCallback4, useMemo as useMemo3 } from "react";
|
|
15508
15568
|
import { CgCheck as CgCheck4 } from "react-icons/cg";
|
|
15509
15569
|
|
|
15510
15570
|
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
15511
|
-
import { css as
|
|
15512
|
-
var segmentedControlStyles =
|
|
15571
|
+
import { css as css72 } from "@emotion/react";
|
|
15572
|
+
var segmentedControlStyles = css72`
|
|
15513
15573
|
--segmented-control-rounded-value: var(--rounded-base);
|
|
15514
15574
|
--segmented-control-border-width: 1px;
|
|
15515
15575
|
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
@@ -15528,14 +15588,14 @@ var segmentedControlStyles = css69`
|
|
|
15528
15588
|
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
15529
15589
|
font-size: var(--fs-xs);
|
|
15530
15590
|
`;
|
|
15531
|
-
var segmentedControlVerticalStyles =
|
|
15591
|
+
var segmentedControlVerticalStyles = css72`
|
|
15532
15592
|
flex-direction: column;
|
|
15533
15593
|
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
15534
15594
|
var(--segmented-control-rounded-value) 0 0;
|
|
15535
15595
|
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
15536
15596
|
var(--segmented-control-rounded-value);
|
|
15537
15597
|
`;
|
|
15538
|
-
var segmentedControlItemStyles =
|
|
15598
|
+
var segmentedControlItemStyles = css72`
|
|
15539
15599
|
&:first-of-type label {
|
|
15540
15600
|
border-radius: var(--segmented-control-first-border-radius);
|
|
15541
15601
|
}
|
|
@@ -15543,10 +15603,10 @@ var segmentedControlItemStyles = css69`
|
|
|
15543
15603
|
border-radius: var(--segmented-control-last-border-radius);
|
|
15544
15604
|
}
|
|
15545
15605
|
`;
|
|
15546
|
-
var segmentedControlInputStyles =
|
|
15606
|
+
var segmentedControlInputStyles = css72`
|
|
15547
15607
|
${accessibleHidden}
|
|
15548
15608
|
`;
|
|
15549
|
-
var segmentedControlLabelStyles =
|
|
15609
|
+
var segmentedControlLabelStyles = css72`
|
|
15550
15610
|
position: relative;
|
|
15551
15611
|
display: flex;
|
|
15552
15612
|
align-items: center;
|
|
@@ -15583,23 +15643,23 @@ var segmentedControlLabelStyles = css69`
|
|
|
15583
15643
|
background-color: var(--gray-400);
|
|
15584
15644
|
}
|
|
15585
15645
|
`;
|
|
15586
|
-
var segmentedControlLabelIconOnlyStyles =
|
|
15646
|
+
var segmentedControlLabelIconOnlyStyles = css72`
|
|
15587
15647
|
padding-inline: 0.5em;
|
|
15588
15648
|
`;
|
|
15589
|
-
var segmentedControlLabelCheckStyles =
|
|
15649
|
+
var segmentedControlLabelCheckStyles = css72`
|
|
15590
15650
|
opacity: 0.5;
|
|
15591
15651
|
`;
|
|
15592
|
-
var segmentedControlLabelContentStyles =
|
|
15652
|
+
var segmentedControlLabelContentStyles = css72`
|
|
15593
15653
|
display: flex;
|
|
15594
15654
|
align-items: center;
|
|
15595
15655
|
justify-content: center;
|
|
15596
15656
|
gap: var(--spacing-sm);
|
|
15597
15657
|
height: 100%;
|
|
15598
15658
|
`;
|
|
15599
|
-
var segmentedControlLabelTextStyles =
|
|
15659
|
+
var segmentedControlLabelTextStyles = css72``;
|
|
15600
15660
|
|
|
15601
15661
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
15602
|
-
import { jsx as
|
|
15662
|
+
import { jsx as jsx94, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
|
|
15603
15663
|
var SegmentedControl = ({
|
|
15604
15664
|
name,
|
|
15605
15665
|
options,
|
|
@@ -15621,16 +15681,16 @@ var SegmentedControl = ({
|
|
|
15621
15681
|
);
|
|
15622
15682
|
const sizeStyles = useMemo3(() => {
|
|
15623
15683
|
const map = {
|
|
15624
|
-
sm:
|
|
15625
|
-
md:
|
|
15626
|
-
lg:
|
|
15684
|
+
sm: css73({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
15685
|
+
md: css73({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
15686
|
+
lg: css73({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
|
|
15627
15687
|
};
|
|
15628
15688
|
return map[size];
|
|
15629
15689
|
}, [size]);
|
|
15630
15690
|
const isIconOnly = useMemo3(() => {
|
|
15631
15691
|
return options.every((option) => option.icon && !option.label);
|
|
15632
15692
|
}, [options]);
|
|
15633
|
-
return /* @__PURE__ */
|
|
15693
|
+
return /* @__PURE__ */ jsx94(
|
|
15634
15694
|
"div",
|
|
15635
15695
|
{
|
|
15636
15696
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
@@ -15638,11 +15698,11 @@ var SegmentedControl = ({
|
|
|
15638
15698
|
children: options.map((option, index) => {
|
|
15639
15699
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
15640
15700
|
const isDisabled = disabled || option.disabled;
|
|
15641
|
-
return /* @__PURE__ */
|
|
15701
|
+
return /* @__PURE__ */ jsx94(
|
|
15642
15702
|
Tooltip,
|
|
15643
15703
|
{
|
|
15644
15704
|
title: isDisabled || !option.tooltip ? "" : option.tooltip,
|
|
15645
|
-
children: /* @__PURE__ */
|
|
15705
|
+
children: /* @__PURE__ */ jsx94("div", { css: segmentedControlItemStyles, "data-test-id": "container-segmented-control", children: /* @__PURE__ */ jsxs64(
|
|
15646
15706
|
"label",
|
|
15647
15707
|
{
|
|
15648
15708
|
css: [
|
|
@@ -15651,7 +15711,7 @@ var SegmentedControl = ({
|
|
|
15651
15711
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
15652
15712
|
],
|
|
15653
15713
|
children: [
|
|
15654
|
-
/* @__PURE__ */
|
|
15714
|
+
/* @__PURE__ */ jsx94(
|
|
15655
15715
|
"input",
|
|
15656
15716
|
{
|
|
15657
15717
|
css: segmentedControlInputStyles,
|
|
@@ -15663,10 +15723,10 @@ var SegmentedControl = ({
|
|
|
15663
15723
|
disabled: isDisabled
|
|
15664
15724
|
}
|
|
15665
15725
|
),
|
|
15666
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */
|
|
15667
|
-
/* @__PURE__ */
|
|
15668
|
-
!option.icon ? null : /* @__PURE__ */
|
|
15669
|
-
!text ? null : /* @__PURE__ */
|
|
15726
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx94(CgCheck4, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
15727
|
+
/* @__PURE__ */ jsxs64("span", { css: segmentedControlLabelContentStyles, children: [
|
|
15728
|
+
!option.icon ? null : /* @__PURE__ */ jsx94(option.icon, { size: "1.5em" }),
|
|
15729
|
+
!text ? null : /* @__PURE__ */ jsx94("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
15670
15730
|
] })
|
|
15671
15731
|
]
|
|
15672
15732
|
}
|
|
@@ -15680,18 +15740,18 @@ var SegmentedControl = ({
|
|
|
15680
15740
|
};
|
|
15681
15741
|
|
|
15682
15742
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
15683
|
-
import { css as
|
|
15743
|
+
import { css as css74, keyframes as keyframes4 } from "@emotion/react";
|
|
15684
15744
|
var lightFadingOut = keyframes4`
|
|
15685
15745
|
from { opacity: 0.1; }
|
|
15686
15746
|
to { opacity: 0.025; }
|
|
15687
15747
|
`;
|
|
15688
|
-
var skeletonStyles =
|
|
15748
|
+
var skeletonStyles = css74`
|
|
15689
15749
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
15690
15750
|
background-color: var(--gray-900);
|
|
15691
15751
|
`;
|
|
15692
15752
|
|
|
15693
15753
|
// src/components/Skeleton/Skeleton.tsx
|
|
15694
|
-
import { jsx as
|
|
15754
|
+
import { jsx as jsx95 } from "@emotion/react/jsx-runtime";
|
|
15695
15755
|
var Skeleton = ({
|
|
15696
15756
|
width = "100%",
|
|
15697
15757
|
height = "1.25rem",
|
|
@@ -15699,7 +15759,7 @@ var Skeleton = ({
|
|
|
15699
15759
|
circle = false,
|
|
15700
15760
|
children,
|
|
15701
15761
|
...otherProps
|
|
15702
|
-
}) => /* @__PURE__ */
|
|
15762
|
+
}) => /* @__PURE__ */ jsx95(
|
|
15703
15763
|
"div",
|
|
15704
15764
|
{
|
|
15705
15765
|
css: [
|
|
@@ -15722,8 +15782,8 @@ var Skeleton = ({
|
|
|
15722
15782
|
import * as React19 from "react";
|
|
15723
15783
|
|
|
15724
15784
|
// src/components/Switch/Switch.styles.ts
|
|
15725
|
-
import { css as
|
|
15726
|
-
var SwitchInputContainer =
|
|
15785
|
+
import { css as css75 } from "@emotion/react";
|
|
15786
|
+
var SwitchInputContainer = css75`
|
|
15727
15787
|
cursor: pointer;
|
|
15728
15788
|
display: inline-block;
|
|
15729
15789
|
position: relative;
|
|
@@ -15732,7 +15792,7 @@ var SwitchInputContainer = css72`
|
|
|
15732
15792
|
vertical-align: middle;
|
|
15733
15793
|
user-select: none;
|
|
15734
15794
|
`;
|
|
15735
|
-
var SwitchInput =
|
|
15795
|
+
var SwitchInput = css75`
|
|
15736
15796
|
appearance: none;
|
|
15737
15797
|
border-radius: var(--rounded-full);
|
|
15738
15798
|
background-color: var(--white);
|
|
@@ -15770,7 +15830,7 @@ var SwitchInput = css72`
|
|
|
15770
15830
|
cursor: not-allowed;
|
|
15771
15831
|
}
|
|
15772
15832
|
`;
|
|
15773
|
-
var SwitchInputDisabled =
|
|
15833
|
+
var SwitchInputDisabled = css75`
|
|
15774
15834
|
opacity: var(--opacity-50);
|
|
15775
15835
|
cursor: not-allowed;
|
|
15776
15836
|
|
|
@@ -15778,7 +15838,7 @@ var SwitchInputDisabled = css72`
|
|
|
15778
15838
|
cursor: not-allowed;
|
|
15779
15839
|
}
|
|
15780
15840
|
`;
|
|
15781
|
-
var SwitchInputLabel =
|
|
15841
|
+
var SwitchInputLabel = css75`
|
|
15782
15842
|
align-items: center;
|
|
15783
15843
|
color: var(--brand-secondary-1);
|
|
15784
15844
|
display: inline-flex;
|
|
@@ -15800,26 +15860,26 @@ var SwitchInputLabel = css72`
|
|
|
15800
15860
|
top: 0;
|
|
15801
15861
|
}
|
|
15802
15862
|
`;
|
|
15803
|
-
var SwitchText =
|
|
15863
|
+
var SwitchText = css75`
|
|
15804
15864
|
color: var(--gray-500);
|
|
15805
15865
|
font-size: var(--fs-sm);
|
|
15806
15866
|
padding-inline: var(--spacing-2xl) 0;
|
|
15807
15867
|
`;
|
|
15808
15868
|
|
|
15809
15869
|
// src/components/Switch/Switch.tsx
|
|
15810
|
-
import { Fragment as Fragment15, jsx as
|
|
15870
|
+
import { Fragment as Fragment15, jsx as jsx96, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
|
|
15811
15871
|
var Switch = React19.forwardRef(
|
|
15812
15872
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
15813
15873
|
let additionalText = infoText;
|
|
15814
15874
|
if (infoText && toggleText) {
|
|
15815
15875
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
15816
15876
|
}
|
|
15817
|
-
return /* @__PURE__ */
|
|
15818
|
-
/* @__PURE__ */
|
|
15819
|
-
/* @__PURE__ */
|
|
15820
|
-
/* @__PURE__ */
|
|
15877
|
+
return /* @__PURE__ */ jsxs65(Fragment15, { children: [
|
|
15878
|
+
/* @__PURE__ */ jsxs65("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
15879
|
+
/* @__PURE__ */ jsx96("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
15880
|
+
/* @__PURE__ */ jsx96("span", { css: SwitchInputLabel, children: label })
|
|
15821
15881
|
] }),
|
|
15822
|
-
additionalText ? /* @__PURE__ */
|
|
15882
|
+
additionalText ? /* @__PURE__ */ jsx96("p", { css: SwitchText, children: additionalText }) : null,
|
|
15823
15883
|
children
|
|
15824
15884
|
] });
|
|
15825
15885
|
}
|
|
@@ -15829,64 +15889,64 @@ var Switch = React19.forwardRef(
|
|
|
15829
15889
|
import * as React20 from "react";
|
|
15830
15890
|
|
|
15831
15891
|
// src/components/Table/Table.styles.ts
|
|
15832
|
-
import { css as
|
|
15833
|
-
var table =
|
|
15892
|
+
import { css as css76 } from "@emotion/react";
|
|
15893
|
+
var table = css76`
|
|
15834
15894
|
border-bottom: 1px solid var(--gray-400);
|
|
15835
15895
|
border-collapse: collapse;
|
|
15836
15896
|
min-width: 100%;
|
|
15837
15897
|
table-layout: auto;
|
|
15838
15898
|
`;
|
|
15839
|
-
var tableHead =
|
|
15899
|
+
var tableHead = css76`
|
|
15840
15900
|
background: var(--gray-100);
|
|
15841
15901
|
color: var(--brand-secondary-1);
|
|
15842
15902
|
text-align: left;
|
|
15843
15903
|
`;
|
|
15844
|
-
var tableRow =
|
|
15904
|
+
var tableRow = css76`
|
|
15845
15905
|
border-bottom: 1px solid var(--gray-200);
|
|
15846
15906
|
`;
|
|
15847
|
-
var tableCellHead =
|
|
15907
|
+
var tableCellHead = css76`
|
|
15848
15908
|
font-size: var(--fs-sm);
|
|
15849
15909
|
padding: var(--spacing-base) var(--spacing-md);
|
|
15850
15910
|
text-transform: uppercase;
|
|
15851
15911
|
font-weight: var(--fw-bold);
|
|
15852
15912
|
`;
|
|
15853
|
-
var tableCellData =
|
|
15913
|
+
var tableCellData = css76`
|
|
15854
15914
|
padding: var(--spacing-base) var(--spacing-md);
|
|
15855
15915
|
`;
|
|
15856
15916
|
|
|
15857
15917
|
// src/components/Table/Table.tsx
|
|
15858
|
-
import { jsx as
|
|
15918
|
+
import { jsx as jsx97 } from "@emotion/react/jsx-runtime";
|
|
15859
15919
|
var Table = React20.forwardRef(({ children, ...otherProps }, ref) => {
|
|
15860
|
-
return /* @__PURE__ */
|
|
15920
|
+
return /* @__PURE__ */ jsx97("table", { ref, css: table, ...otherProps, children });
|
|
15861
15921
|
});
|
|
15862
15922
|
var TableHead = React20.forwardRef(
|
|
15863
15923
|
({ children, ...otherProps }, ref) => {
|
|
15864
|
-
return /* @__PURE__ */
|
|
15924
|
+
return /* @__PURE__ */ jsx97("thead", { ref, css: tableHead, ...otherProps, children });
|
|
15865
15925
|
}
|
|
15866
15926
|
);
|
|
15867
15927
|
var TableBody = React20.forwardRef(
|
|
15868
15928
|
({ children, ...otherProps }, ref) => {
|
|
15869
|
-
return /* @__PURE__ */
|
|
15929
|
+
return /* @__PURE__ */ jsx97("tbody", { ref, ...otherProps, children });
|
|
15870
15930
|
}
|
|
15871
15931
|
);
|
|
15872
15932
|
var TableFoot = React20.forwardRef(
|
|
15873
15933
|
({ children, ...otherProps }, ref) => {
|
|
15874
|
-
return /* @__PURE__ */
|
|
15934
|
+
return /* @__PURE__ */ jsx97("tfoot", { ref, ...otherProps, children });
|
|
15875
15935
|
}
|
|
15876
15936
|
);
|
|
15877
15937
|
var TableRow = React20.forwardRef(
|
|
15878
15938
|
({ children, ...otherProps }, ref) => {
|
|
15879
|
-
return /* @__PURE__ */
|
|
15939
|
+
return /* @__PURE__ */ jsx97("tr", { ref, css: tableRow, ...otherProps, children });
|
|
15880
15940
|
}
|
|
15881
15941
|
);
|
|
15882
15942
|
var TableCellHead = React20.forwardRef(
|
|
15883
15943
|
({ children, ...otherProps }, ref) => {
|
|
15884
|
-
return /* @__PURE__ */
|
|
15944
|
+
return /* @__PURE__ */ jsx97("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
15885
15945
|
}
|
|
15886
15946
|
);
|
|
15887
15947
|
var TableCellData = React20.forwardRef(
|
|
15888
15948
|
({ children, ...otherProps }, ref) => {
|
|
15889
|
-
return /* @__PURE__ */
|
|
15949
|
+
return /* @__PURE__ */ jsx97("td", { ref, css: tableCellData, ...otherProps, children });
|
|
15890
15950
|
}
|
|
15891
15951
|
);
|
|
15892
15952
|
|
|
@@ -15900,8 +15960,8 @@ import {
|
|
|
15900
15960
|
} from "reakit/Tab";
|
|
15901
15961
|
|
|
15902
15962
|
// src/components/Tabs/Tabs.styles.ts
|
|
15903
|
-
import { css as
|
|
15904
|
-
var tabButtonStyles =
|
|
15963
|
+
import { css as css77 } from "@emotion/react";
|
|
15964
|
+
var tabButtonStyles = css77`
|
|
15905
15965
|
align-items: center;
|
|
15906
15966
|
border: 0;
|
|
15907
15967
|
height: 2.5rem;
|
|
@@ -15918,14 +15978,14 @@ var tabButtonStyles = css74`
|
|
|
15918
15978
|
box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
|
|
15919
15979
|
}
|
|
15920
15980
|
`;
|
|
15921
|
-
var tabButtonGroupStyles =
|
|
15981
|
+
var tabButtonGroupStyles = css77`
|
|
15922
15982
|
display: flex;
|
|
15923
15983
|
gap: var(--spacing-base);
|
|
15924
15984
|
border-bottom: 1px solid var(--gray-300);
|
|
15925
15985
|
`;
|
|
15926
15986
|
|
|
15927
15987
|
// src/components/Tabs/Tabs.tsx
|
|
15928
|
-
import { jsx as
|
|
15988
|
+
import { jsx as jsx98 } from "@emotion/react/jsx-runtime";
|
|
15929
15989
|
var CurrentTabContext = createContext6(null);
|
|
15930
15990
|
var useCurrentTab = () => {
|
|
15931
15991
|
const context = useContext7(CurrentTabContext);
|
|
@@ -15954,24 +16014,24 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
15954
16014
|
tab.setSelectedId(selected);
|
|
15955
16015
|
}
|
|
15956
16016
|
}, [selected]);
|
|
15957
|
-
return /* @__PURE__ */
|
|
16017
|
+
return /* @__PURE__ */ jsx98(CurrentTabContext.Provider, { value: tab, children });
|
|
15958
16018
|
};
|
|
15959
16019
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
15960
16020
|
const currentTab = useCurrentTab();
|
|
15961
|
-
return /* @__PURE__ */
|
|
16021
|
+
return /* @__PURE__ */ jsx98(ReakitTabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
15962
16022
|
};
|
|
15963
16023
|
var TabButton = ({ children, id, ...props }) => {
|
|
15964
16024
|
const currentTab = useCurrentTab();
|
|
15965
|
-
return /* @__PURE__ */
|
|
16025
|
+
return /* @__PURE__ */ jsx98(ReakitTab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
15966
16026
|
};
|
|
15967
16027
|
var TabContent = ({ children, ...props }) => {
|
|
15968
16028
|
const currentTab = useCurrentTab();
|
|
15969
|
-
return /* @__PURE__ */
|
|
16029
|
+
return /* @__PURE__ */ jsx98(ReakitTabPanel, { ...props, ...currentTab, children });
|
|
15970
16030
|
};
|
|
15971
16031
|
|
|
15972
16032
|
// src/components/Validation/StatusBullet.styles.ts
|
|
15973
|
-
import { css as
|
|
15974
|
-
var StatusBulletContainer =
|
|
16033
|
+
import { css as css78 } from "@emotion/react";
|
|
16034
|
+
var StatusBulletContainer = css78`
|
|
15975
16035
|
align-items: center;
|
|
15976
16036
|
align-self: center;
|
|
15977
16037
|
color: var(--gray-500);
|
|
@@ -15988,51 +16048,51 @@ var StatusBulletContainer = css75`
|
|
|
15988
16048
|
display: block;
|
|
15989
16049
|
}
|
|
15990
16050
|
`;
|
|
15991
|
-
var StatusBulletBase =
|
|
16051
|
+
var StatusBulletBase = css78`
|
|
15992
16052
|
font-size: var(--fs-sm);
|
|
15993
16053
|
&:before {
|
|
15994
16054
|
width: var(--fs-xs);
|
|
15995
16055
|
height: var(--fs-xs);
|
|
15996
16056
|
}
|
|
15997
16057
|
`;
|
|
15998
|
-
var StatusBulletSmall =
|
|
16058
|
+
var StatusBulletSmall = css78`
|
|
15999
16059
|
font-size: var(--fs-xs);
|
|
16000
16060
|
&:before {
|
|
16001
16061
|
width: var(--fs-xxs);
|
|
16002
16062
|
height: var(--fs-xxs);
|
|
16003
16063
|
}
|
|
16004
16064
|
`;
|
|
16005
|
-
var StatusDraft =
|
|
16065
|
+
var StatusDraft = css78`
|
|
16006
16066
|
&:before {
|
|
16007
16067
|
background: var(--white);
|
|
16008
16068
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
16009
16069
|
}
|
|
16010
16070
|
`;
|
|
16011
|
-
var StatusModified =
|
|
16071
|
+
var StatusModified = css78`
|
|
16012
16072
|
&:before {
|
|
16013
16073
|
background: linear-gradient(to right, var(--white) 50%, var(--primary-action-default) 50% 100%);
|
|
16014
16074
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
16015
16075
|
}
|
|
16016
16076
|
`;
|
|
16017
|
-
var StatusError =
|
|
16077
|
+
var StatusError = css78`
|
|
16018
16078
|
color: var(--error);
|
|
16019
16079
|
&:before {
|
|
16020
16080
|
background: linear-gradient(120deg, var(--error) 40%, var(--white) 50%, var(--error) 60%);
|
|
16021
16081
|
}
|
|
16022
16082
|
`;
|
|
16023
|
-
var StatusPublished =
|
|
16083
|
+
var StatusPublished = css78`
|
|
16024
16084
|
&:before {
|
|
16025
16085
|
background: var(--primary-action-default);
|
|
16026
16086
|
}
|
|
16027
16087
|
`;
|
|
16028
|
-
var StatusOrphan =
|
|
16088
|
+
var StatusOrphan = css78`
|
|
16029
16089
|
&:before {
|
|
16030
16090
|
background: var(--brand-secondary-5);
|
|
16031
16091
|
}
|
|
16032
16092
|
`;
|
|
16033
16093
|
|
|
16034
16094
|
// src/components/Validation/StatusBullet.tsx
|
|
16035
|
-
import { jsx as
|
|
16095
|
+
import { jsx as jsx99 } from "@emotion/react/jsx-runtime";
|
|
16036
16096
|
var StatusBullet = ({
|
|
16037
16097
|
status,
|
|
16038
16098
|
hideText = false,
|
|
@@ -16049,7 +16109,7 @@ var StatusBullet = ({
|
|
|
16049
16109
|
Draft: StatusDraft
|
|
16050
16110
|
};
|
|
16051
16111
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
16052
|
-
return /* @__PURE__ */
|
|
16112
|
+
return /* @__PURE__ */ jsx99(
|
|
16053
16113
|
"span",
|
|
16054
16114
|
{
|
|
16055
16115
|
role: "status",
|
|
@@ -16161,6 +16221,7 @@ export {
|
|
|
16161
16221
|
ShortcutRevealer,
|
|
16162
16222
|
Skeleton,
|
|
16163
16223
|
StatusBullet,
|
|
16224
|
+
SuccessMessage,
|
|
16164
16225
|
Switch,
|
|
16165
16226
|
TabButton,
|
|
16166
16227
|
TabButtonGroup,
|