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