@uniformdev/design-system 19.96.1-alpha.13 → 19.99.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 +330 -194
- package/dist/index.d.mts +14 -6
- package/dist/index.d.ts +14 -6
- package/dist/index.js +572 -436
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -33,13 +33,17 @@ var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
|
|
|
33
33
|
--brand-primary-3: #83c6e1; /* slate blue */
|
|
34
34
|
|
|
35
35
|
/* secondary colours */
|
|
36
|
-
--brand-secondary-1:
|
|
36
|
+
--brand-secondary-1: var(--typography-base); /* carbon */
|
|
37
37
|
--brand-secondary-2: var(--gray-50);
|
|
38
38
|
--brand-secondary-3: var(--purple-rain-500);
|
|
39
39
|
--brand-secondary-5: #d9534f; /* brick red */
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
/* new colour range 4th May 2023 (may the fourth be with you) */
|
|
43
|
+
|
|
44
|
+
/* text colours */
|
|
45
|
+
--typography-base: #1f2b34;
|
|
46
|
+
|
|
43
47
|
/* purple spectrum */
|
|
44
48
|
--purple-rain-100: #dccbff;
|
|
45
49
|
--purple-rain-200: #c2a5ff;
|
|
@@ -63,6 +67,9 @@ var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
|
|
|
63
67
|
--primary-action-hover: #1264ff;
|
|
64
68
|
--primary-action-active: #0043c2;
|
|
65
69
|
|
|
70
|
+
--action-destructive-default: var(--brand-secondary-5);
|
|
71
|
+
--action-destructive-hover: #e07571;
|
|
72
|
+
|
|
66
73
|
/* tertiary action */
|
|
67
74
|
--tertiary-action-default: var(--gray-700);
|
|
68
75
|
--tertiary-action-hover: var(--gray-600);
|
|
@@ -89,6 +96,7 @@ var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
|
|
|
89
96
|
--accent-alt-light-hover: var(--raspberry-beret-100);
|
|
90
97
|
--accent-alt-light-active: var(--raspberry-beret-300);
|
|
91
98
|
|
|
99
|
+
|
|
92
100
|
/* off brand */
|
|
93
101
|
--input-border: rgba(31, 43, 52, 0.5);
|
|
94
102
|
--ring: 0 0 0 0 var(--white), 0 0 0 2px var(--brand-primary-3);
|
|
@@ -577,6 +585,41 @@ var buttonGhostUnimportant = css`
|
|
|
577
585
|
|
|
578
586
|
// src/components/Input/styles/Inputs.styles.ts
|
|
579
587
|
import { css as css2 } from "@emotion/react";
|
|
588
|
+
|
|
589
|
+
// src/components/Button/Button.tsx
|
|
590
|
+
import * as React2 from "react";
|
|
591
|
+
import { Button as BaseButton } from "reakit/Button";
|
|
592
|
+
import { jsx as jsx3 } from "@emotion/react/jsx-runtime";
|
|
593
|
+
var Button = React2.forwardRef(
|
|
594
|
+
({ buttonType = "primary", size = "md", children, ...props }, ref) => {
|
|
595
|
+
const buttonTheme = {
|
|
596
|
+
primary: buttonPrimary,
|
|
597
|
+
primaryInvert: buttonPrimaryInvert,
|
|
598
|
+
"accent-alt-dark": buttonAccentAltDark,
|
|
599
|
+
"accent-alt-dark-outline": buttonAccentAltDarkOutline,
|
|
600
|
+
destructive: buttonDestructive,
|
|
601
|
+
secondary: buttonSecondary,
|
|
602
|
+
secondaryInvert: buttonSecondaryInvert,
|
|
603
|
+
ghost: buttonGhost,
|
|
604
|
+
ghostDestructive: buttonGhostDestructive,
|
|
605
|
+
unimportant: buttonUnimportant,
|
|
606
|
+
ghostUnimportant: buttonGhostUnimportant,
|
|
607
|
+
tertiary: buttonTertiary,
|
|
608
|
+
tertiaryOutline: buttonTertiaryOutline
|
|
609
|
+
};
|
|
610
|
+
const btnSize = {
|
|
611
|
+
zero: "padding: 0",
|
|
612
|
+
xs: "padding: 0.375rem 0.625rem; font-size: var(--fs-xs); line-height: 1.5;",
|
|
613
|
+
sm: "padding: var(--spacing-sm) 0.75rem; font-size: var(--fs-sm);",
|
|
614
|
+
md: "padding: var(--spacing-sm) var(--spacing-base); font-size: var(--fs-sm);",
|
|
615
|
+
lg: "padding: var(--spacing-sm) var(--spacing-base)",
|
|
616
|
+
xl: "padding: 0.75rem var(--spacing-md)"
|
|
617
|
+
};
|
|
618
|
+
return /* @__PURE__ */ jsx3(BaseButton, { ref, css: [button, buttonTheme[buttonType], btnSize[size]], ...props, children });
|
|
619
|
+
}
|
|
620
|
+
);
|
|
621
|
+
|
|
622
|
+
// src/components/Input/styles/Inputs.styles.ts
|
|
580
623
|
var inputContainer = css2`
|
|
581
624
|
position: relative;
|
|
582
625
|
`;
|
|
@@ -586,27 +629,33 @@ var labelText = css2`
|
|
|
586
629
|
align-items: center;
|
|
587
630
|
`;
|
|
588
631
|
var input = (whiteSpaceWrap) => css2`
|
|
632
|
+
--input-padding: 12px var(--spacing-base) 12px var(--spacing-sm);
|
|
589
633
|
appearance: none;
|
|
590
634
|
background-color: var(--white);
|
|
591
|
-
border: 1px solid var(--gray-
|
|
592
|
-
border-radius: var(--rounded-
|
|
635
|
+
border: 1px solid var(--gray-300);
|
|
636
|
+
border-radius: var(--rounded-sm);
|
|
593
637
|
color: var(--gray-700);
|
|
594
|
-
padding: var(--
|
|
638
|
+
padding: var(--input-padding);
|
|
639
|
+
min-height: 46px;
|
|
595
640
|
width: 100%;
|
|
596
641
|
position: relative;
|
|
597
642
|
white-space: ${whiteSpaceWrap};
|
|
598
643
|
transition: background var(--duration-fast) var(--timing-ease-out),
|
|
599
644
|
border-color var(--duration-fast) var(--timing-ease-out),
|
|
600
|
-
color var(--duration-fast) var(--timing-ease-out);
|
|
645
|
+
color var(--duration-fast) var(--timing-ease-out), box-shadow var(--duration-fast) var(--timing-ease-out);
|
|
601
646
|
|
|
602
647
|
&::placeholder {
|
|
603
648
|
color: var(--gray-400);
|
|
604
649
|
}
|
|
605
650
|
|
|
651
|
+
&:hover {
|
|
652
|
+
border-color: var(--accent-dark-hover);
|
|
653
|
+
}
|
|
654
|
+
|
|
606
655
|
&:focus,
|
|
607
656
|
&:focus-within {
|
|
608
|
-
border-color: var(--
|
|
609
|
-
box-shadow:
|
|
657
|
+
border-color: var(--accent-dark-active);
|
|
658
|
+
box-shadow: var(--elevation-100);
|
|
610
659
|
outline: none;
|
|
611
660
|
}
|
|
612
661
|
|
|
@@ -625,9 +674,39 @@ var input = (whiteSpaceWrap) => css2`
|
|
|
625
674
|
no-repeat 50% 45%;
|
|
626
675
|
background-size: contain;
|
|
627
676
|
}
|
|
677
|
+
|
|
678
|
+
&:where([type='range']) {
|
|
679
|
+
appearance: auto;
|
|
680
|
+
border: none;
|
|
681
|
+
box-shadow: none;
|
|
682
|
+
|
|
683
|
+
&:focus,
|
|
684
|
+
&:focus-within {
|
|
685
|
+
border: none;
|
|
686
|
+
box-shadow: none;
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
&:where([type='file']) {
|
|
691
|
+
border: none;
|
|
692
|
+
padding: var(--spacing-2xs);
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
&::file-selector-button {
|
|
696
|
+
${button}
|
|
697
|
+
${buttonSecondaryInvert}
|
|
698
|
+
padding: 0.375rem 0.625rem;
|
|
699
|
+
font-size: var(--fs-sm);
|
|
700
|
+
margin-right: var(--spacing-base);
|
|
701
|
+
}
|
|
628
702
|
`;
|
|
629
703
|
var inputError = css2`
|
|
630
|
-
border-color: var(--
|
|
704
|
+
border-color: var(--action-destructive-default);
|
|
705
|
+
box-shadow: var(--elevation-100);
|
|
706
|
+
|
|
707
|
+
&:hover {
|
|
708
|
+
border-color: var(--action-destructive-hover);
|
|
709
|
+
}
|
|
631
710
|
`;
|
|
632
711
|
var inputIcon = css2`
|
|
633
712
|
align-items: center;
|
|
@@ -891,7 +970,7 @@ var scrollbarStyles = css4`
|
|
|
891
970
|
import { css as css7 } from "@emotion/react";
|
|
892
971
|
|
|
893
972
|
// src/components/Shortcuts/ShortcutRevealer.tsx
|
|
894
|
-
import
|
|
973
|
+
import React3, { useContext, useEffect as useEffect2, useState } from "react";
|
|
895
974
|
|
|
896
975
|
// src/components/Shortcuts/ShortcutRevealer.styles.ts
|
|
897
976
|
import { css as css5 } from "@emotion/react";
|
|
@@ -950,9 +1029,9 @@ function useShortcut({
|
|
|
950
1029
|
}
|
|
951
1030
|
|
|
952
1031
|
// src/components/Shortcuts/ShortcutRevealer.tsx
|
|
953
|
-
import { jsx as
|
|
1032
|
+
import { jsx as jsx4 } from "@emotion/react/jsx-runtime";
|
|
954
1033
|
var loggedHotkeyConsole = false;
|
|
955
|
-
var Context =
|
|
1034
|
+
var Context = React3.createContext(false);
|
|
956
1035
|
var revealHotkey = ["ctrl+F1", "ctrl+shift+/"];
|
|
957
1036
|
function ShortcutContext({ children }) {
|
|
958
1037
|
const [reveal, setReveal] = useState(false);
|
|
@@ -975,7 +1054,7 @@ function ShortcutContext({ children }) {
|
|
|
975
1054
|
},
|
|
976
1055
|
activeWhenEditing: true
|
|
977
1056
|
});
|
|
978
|
-
return /* @__PURE__ */
|
|
1057
|
+
return /* @__PURE__ */ jsx4(Context.Provider, { value: reveal, children });
|
|
979
1058
|
}
|
|
980
1059
|
function computeDisplayedHotkey(shortcut) {
|
|
981
1060
|
return shortcut.replace(/meta/g, "\u2318").replace(/option/g, "\u2325").replace(/shift/g, "\u21E7").replace(/ctrl/g, "\u2303");
|
|
@@ -994,18 +1073,18 @@ function ShortcutRevealer({
|
|
|
994
1073
|
finalShortcut = macifyShortcut(shortcut);
|
|
995
1074
|
}
|
|
996
1075
|
const displayedShortcut = computeDisplayedHotkey(finalShortcut);
|
|
997
|
-
return /* @__PURE__ */
|
|
1076
|
+
return /* @__PURE__ */ jsx4(
|
|
998
1077
|
"div",
|
|
999
1078
|
{
|
|
1000
1079
|
css: [ShortcutRevealerContainer, typeof className === "object" ? className : void 0],
|
|
1001
1080
|
className: typeof className === "string" ? className : "",
|
|
1002
|
-
children: /* @__PURE__ */
|
|
1081
|
+
children: /* @__PURE__ */ jsx4(Hotkey, { shortcut: displayedShortcut })
|
|
1003
1082
|
}
|
|
1004
1083
|
);
|
|
1005
1084
|
}
|
|
1006
1085
|
function Hotkey({ shortcut }) {
|
|
1007
1086
|
const hk = shortcut.split("+");
|
|
1008
|
-
return /* @__PURE__ */
|
|
1087
|
+
return /* @__PURE__ */ jsx4("div", { css: ShortcutRevealerHotKeyContainer, children: hk.map((key) => /* @__PURE__ */ jsx4("span", { css: ShortcutRevealerHotKey, children: key.toUpperCase() }, key)) });
|
|
1009
1088
|
}
|
|
1010
1089
|
|
|
1011
1090
|
// src/components/AddButton/AddButton.styles.ts
|
|
@@ -1058,7 +1137,7 @@ var addButton = css6`
|
|
|
1058
1137
|
`;
|
|
1059
1138
|
|
|
1060
1139
|
// src/components/AddButton/AddButton.tsx
|
|
1061
|
-
import { jsx as
|
|
1140
|
+
import { jsx as jsx5, jsxs as jsxs2 } from "@emotion/react/jsx-runtime";
|
|
1062
1141
|
var AddButton = ({
|
|
1063
1142
|
buttonText = "Add",
|
|
1064
1143
|
onClick,
|
|
@@ -1082,7 +1161,7 @@ var AddButton = ({
|
|
|
1082
1161
|
css: addButton,
|
|
1083
1162
|
...props,
|
|
1084
1163
|
children: [
|
|
1085
|
-
shortcut ? /* @__PURE__ */
|
|
1164
|
+
shortcut ? /* @__PURE__ */ jsx5(
|
|
1086
1165
|
ShortcutRevealer,
|
|
1087
1166
|
{
|
|
1088
1167
|
shortcut,
|
|
@@ -1092,7 +1171,7 @@ var AddButton = ({
|
|
|
1092
1171
|
`
|
|
1093
1172
|
}
|
|
1094
1173
|
) : null,
|
|
1095
|
-
/* @__PURE__ */
|
|
1174
|
+
/* @__PURE__ */ jsx5("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx5("path", { d: "M14 8H8V14H6V8H0V6H6V0H8V6H14V8Z", fill: "currentColor" }) })
|
|
1096
1175
|
]
|
|
1097
1176
|
}
|
|
1098
1177
|
);
|
|
@@ -1108,7 +1187,7 @@ import { GenIcon } from "@react-icons/all-files";
|
|
|
1108
1187
|
import { MdSettings } from "@react-icons/all-files/md/MdSettings";
|
|
1109
1188
|
|
|
1110
1189
|
// src/components/Icons/Icon.tsx
|
|
1111
|
-
import
|
|
1190
|
+
import React4 from "react";
|
|
1112
1191
|
|
|
1113
1192
|
// src/components/Icons/Icon.styles.ts
|
|
1114
1193
|
import { css as css8 } from "@emotion/react";
|
|
@@ -1145,7 +1224,7 @@ var IconColorAccentLight = css8`
|
|
|
1145
1224
|
|
|
1146
1225
|
// src/components/Icons/IconsProvider.tsx
|
|
1147
1226
|
import { createContext, useContext as useContext2, useEffect as useEffect3, useState as useState2 } from "react";
|
|
1148
|
-
import { jsx as
|
|
1227
|
+
import { jsx as jsx6 } from "@emotion/react/jsx-runtime";
|
|
1149
1228
|
var IconContext = createContext({
|
|
1150
1229
|
/** object mapping of available icons */
|
|
1151
1230
|
iconsMap: {},
|
|
@@ -1166,11 +1245,11 @@ function IconsProvider({ children }) {
|
|
|
1166
1245
|
useEffect3(() => {
|
|
1167
1246
|
initializeIconsMap();
|
|
1168
1247
|
}, []);
|
|
1169
|
-
return /* @__PURE__ */
|
|
1248
|
+
return /* @__PURE__ */ jsx6(IconContext.Provider, { value: { iconsMap, isLoading }, children });
|
|
1170
1249
|
}
|
|
1171
1250
|
|
|
1172
1251
|
// src/components/Icons/Icon.tsx
|
|
1173
|
-
import { jsx as
|
|
1252
|
+
import { jsx as jsx7 } from "@emotion/react/jsx-runtime";
|
|
1174
1253
|
var IconInner = ({ icon, iconColor = "default", size = "1.5rem", ...otherProps }) => {
|
|
1175
1254
|
const isIconName = typeof icon === "string";
|
|
1176
1255
|
const { iconsMap, isLoading } = useIconContext();
|
|
@@ -1194,12 +1273,12 @@ var IconInner = ({ icon, iconColor = "default", size = "1.5rem", ...otherProps }
|
|
|
1194
1273
|
);
|
|
1195
1274
|
return null;
|
|
1196
1275
|
}
|
|
1197
|
-
return /* @__PURE__ */
|
|
1276
|
+
return /* @__PURE__ */ jsx7(IconComponent, { role: "img", size, ...otherProps, css: [IconImg, customColor[iconColor]] });
|
|
1198
1277
|
};
|
|
1199
|
-
var Icon =
|
|
1278
|
+
var Icon = React4.memo(IconInner);
|
|
1200
1279
|
|
|
1201
1280
|
// src/components/Icons/customIcons.tsx
|
|
1202
|
-
import { jsx as
|
|
1281
|
+
import { jsx as jsx8 } from "@emotion/react/jsx-runtime";
|
|
1203
1282
|
var rectangleRoundedIcon = GenIcon({
|
|
1204
1283
|
tag: "svg",
|
|
1205
1284
|
attr: {
|
|
@@ -1498,7 +1577,7 @@ var infoFilledIcon = GenIcon({
|
|
|
1498
1577
|
]
|
|
1499
1578
|
});
|
|
1500
1579
|
var settingsIcon = MdSettings;
|
|
1501
|
-
var settings = (props) => /* @__PURE__ */
|
|
1580
|
+
var settings = (props) => /* @__PURE__ */ jsx8(Icon, { ...props, icon: MdSettings });
|
|
1502
1581
|
var queryStringIcon = GenIcon({
|
|
1503
1582
|
tag: "svg",
|
|
1504
1583
|
attr: {
|
|
@@ -1839,6 +1918,96 @@ var magicWand = GenIcon({
|
|
|
1839
1918
|
}
|
|
1840
1919
|
]
|
|
1841
1920
|
});
|
|
1921
|
+
var listViewShort = GenIcon({
|
|
1922
|
+
tag: "svg",
|
|
1923
|
+
attr: {
|
|
1924
|
+
role: "img",
|
|
1925
|
+
viewBox: "0 0 24 24"
|
|
1926
|
+
},
|
|
1927
|
+
child: [
|
|
1928
|
+
{
|
|
1929
|
+
tag: "path",
|
|
1930
|
+
attr: {
|
|
1931
|
+
fill: "currentColor",
|
|
1932
|
+
d: "M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z"
|
|
1933
|
+
},
|
|
1934
|
+
child: []
|
|
1935
|
+
},
|
|
1936
|
+
{
|
|
1937
|
+
tag: "path",
|
|
1938
|
+
attr: {
|
|
1939
|
+
fill: "currentColor",
|
|
1940
|
+
d: "M2 10C2 9.44772 2.44772 9 3 9H21C21.5523 9 22 9.44772 22 10C22 10.5523 21.5523 11 21 11H3C2.44772 11 2 10.5523 2 10Z"
|
|
1941
|
+
},
|
|
1942
|
+
child: []
|
|
1943
|
+
},
|
|
1944
|
+
{
|
|
1945
|
+
tag: "path",
|
|
1946
|
+
attr: {
|
|
1947
|
+
fill: "currentColor",
|
|
1948
|
+
d: "M2 14C2 13.4477 2.44772 13 3 13H21C21.5523 13 22 13.4477 22 14C22 14.5523 21.5523 15 21 15H3C2.44772 15 2 14.5523 2 14Z"
|
|
1949
|
+
},
|
|
1950
|
+
child: []
|
|
1951
|
+
},
|
|
1952
|
+
{
|
|
1953
|
+
tag: "path",
|
|
1954
|
+
attr: {
|
|
1955
|
+
fill: "currentColor",
|
|
1956
|
+
d: "M2 18C2 17.4477 2.44772 17 3 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H3C2.44772 19 2 18.5523 2 18Z"
|
|
1957
|
+
},
|
|
1958
|
+
child: []
|
|
1959
|
+
}
|
|
1960
|
+
]
|
|
1961
|
+
});
|
|
1962
|
+
var listViewLong = GenIcon({
|
|
1963
|
+
tag: "svg",
|
|
1964
|
+
attr: {
|
|
1965
|
+
role: "img",
|
|
1966
|
+
viewBox: "0 0 24 24"
|
|
1967
|
+
},
|
|
1968
|
+
child: [
|
|
1969
|
+
{
|
|
1970
|
+
tag: "path",
|
|
1971
|
+
attr: {
|
|
1972
|
+
fill: "currentColor",
|
|
1973
|
+
d: 'M2 4C2 3.44772 2.44772 3 3 3H21C21.5523 3 22 3.44772 22 4C22 4.55228 21.5523 5 21 5H3C2.44772 5 2 4.55228 2 4Z"'
|
|
1974
|
+
},
|
|
1975
|
+
child: []
|
|
1976
|
+
},
|
|
1977
|
+
{
|
|
1978
|
+
tag: "path",
|
|
1979
|
+
attr: {
|
|
1980
|
+
fill: "currentColor",
|
|
1981
|
+
d: "M2 8C2 7.44772 2.44772 7 3 7H21C21.5523 7 22 7.44772 22 8C22 8.55228 21.5523 9 21 9H3C2.44772 9 2 8.55228 2 8Z"
|
|
1982
|
+
},
|
|
1983
|
+
child: []
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
tag: "path",
|
|
1987
|
+
attr: {
|
|
1988
|
+
fill: "currentColor",
|
|
1989
|
+
d: "M2 12C2 11.4477 2.44772 11 3 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H3C2.44772 13 2 12.5523 2 12Z"
|
|
1990
|
+
},
|
|
1991
|
+
child: []
|
|
1992
|
+
},
|
|
1993
|
+
{
|
|
1994
|
+
tag: "path",
|
|
1995
|
+
attr: {
|
|
1996
|
+
fill: "currentColor",
|
|
1997
|
+
d: "M2 16C2 15.4477 2.44772 15 3 15H21C21.5523 15 22 15.4477 22 16C22 16.5523 21.5523 17 21 17H3C2.44772 17 2 16.5523 2 16Z"
|
|
1998
|
+
},
|
|
1999
|
+
child: []
|
|
2000
|
+
},
|
|
2001
|
+
{
|
|
2002
|
+
tag: "path",
|
|
2003
|
+
attr: {
|
|
2004
|
+
fill: "currentColor",
|
|
2005
|
+
d: "M2 20C2 19.4477 2.44772 19 3 19H21C21.5523 19 22 19.4477 22 20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20Z"
|
|
2006
|
+
},
|
|
2007
|
+
child: []
|
|
2008
|
+
}
|
|
2009
|
+
]
|
|
2010
|
+
});
|
|
1842
2011
|
var customIcons = {
|
|
1843
2012
|
"rectangle-rounded": rectangleRoundedIcon,
|
|
1844
2013
|
card: cardIcon,
|
|
@@ -1863,7 +2032,9 @@ var customIcons = {
|
|
|
1863
2032
|
"yes-no": yesNoIcon,
|
|
1864
2033
|
"diamond-outline": diamondOutline,
|
|
1865
2034
|
"diamond-fill": diamondFill,
|
|
1866
|
-
"magic-wand": magicWand
|
|
2035
|
+
"magic-wand": magicWand,
|
|
2036
|
+
"list-view-short": listViewShort,
|
|
2037
|
+
"list-view-long": listViewLong
|
|
1867
2038
|
};
|
|
1868
2039
|
|
|
1869
2040
|
// src/components/AddListButton/AddListButton.styles.ts
|
|
@@ -1909,7 +2080,7 @@ var AddListButtonIcon = css9`
|
|
|
1909
2080
|
`;
|
|
1910
2081
|
|
|
1911
2082
|
// src/components/AddListButton/AddListButton.tsx
|
|
1912
|
-
import { jsx as
|
|
2083
|
+
import { jsx as jsx9, jsxs as jsxs3 } from "@emotion/react/jsx-runtime";
|
|
1913
2084
|
var AddListButton = ({
|
|
1914
2085
|
buttonText = "Add Item",
|
|
1915
2086
|
onButtonClick,
|
|
@@ -1938,7 +2109,7 @@ var AddListButton = ({
|
|
|
1938
2109
|
disabled: disabled2,
|
|
1939
2110
|
...buttonProps,
|
|
1940
2111
|
children: [
|
|
1941
|
-
icon === "math-plus" ? /* @__PURE__ */
|
|
2112
|
+
icon === "math-plus" ? /* @__PURE__ */ jsx9(
|
|
1942
2113
|
Icon,
|
|
1943
2114
|
{
|
|
1944
2115
|
icon: mapIcon[icon],
|
|
@@ -1946,7 +2117,7 @@ var AddListButton = ({
|
|
|
1946
2117
|
size: "1.25em",
|
|
1947
2118
|
css: [AddListButtonIcon, AddListButtonIconMathPlus(disabled2, theme)]
|
|
1948
2119
|
}
|
|
1949
|
-
) : /* @__PURE__ */
|
|
2120
|
+
) : /* @__PURE__ */ jsx9(Icon, { icon: mapIcon[icon], iconColor: "currentColor", size: "1.25em", css: AddListButtonIcon }),
|
|
1950
2121
|
buttonText
|
|
1951
2122
|
]
|
|
1952
2123
|
}
|
|
@@ -1987,7 +2158,7 @@ var commonLineHeight = css10`
|
|
|
1987
2158
|
`;
|
|
1988
2159
|
|
|
1989
2160
|
// src/components/Typography/Heading.tsx
|
|
1990
|
-
import { jsx as
|
|
2161
|
+
import { jsx as jsx10 } from "@emotion/react/jsx-runtime";
|
|
1991
2162
|
var Heading = ({
|
|
1992
2163
|
level = 2,
|
|
1993
2164
|
as,
|
|
@@ -2005,7 +2176,7 @@ var Heading = ({
|
|
|
2005
2176
|
5: h5,
|
|
2006
2177
|
6: h6
|
|
2007
2178
|
};
|
|
2008
|
-
return /* @__PURE__ */
|
|
2179
|
+
return /* @__PURE__ */ jsx10(
|
|
2009
2180
|
Heading2,
|
|
2010
2181
|
{
|
|
2011
2182
|
...hAttributes,
|
|
@@ -2083,7 +2254,7 @@ var UppercaseText = css11`
|
|
|
2083
2254
|
`;
|
|
2084
2255
|
|
|
2085
2256
|
// src/components/Badges/Badge.tsx
|
|
2086
|
-
import { jsx as
|
|
2257
|
+
import { jsx as jsx11 } from "@emotion/react/jsx-runtime";
|
|
2087
2258
|
var Badge = ({
|
|
2088
2259
|
text,
|
|
2089
2260
|
theme = "unimportant",
|
|
@@ -2104,7 +2275,7 @@ var Badge = ({
|
|
|
2104
2275
|
sm: Small,
|
|
2105
2276
|
base: Base
|
|
2106
2277
|
};
|
|
2107
|
-
return /* @__PURE__ */
|
|
2278
|
+
return /* @__PURE__ */ jsx11(
|
|
2108
2279
|
"span",
|
|
2109
2280
|
{
|
|
2110
2281
|
css: [
|
|
@@ -2121,7 +2292,7 @@ var Badge = ({
|
|
|
2121
2292
|
|
|
2122
2293
|
// src/components/Typography/Link.tsx
|
|
2123
2294
|
import { CgExternal } from "@react-icons/all-files/cg/CgExternal";
|
|
2124
|
-
import * as
|
|
2295
|
+
import * as React5 from "react";
|
|
2125
2296
|
|
|
2126
2297
|
// src/components/Typography/styles/Link.styles.ts
|
|
2127
2298
|
import { css as css12 } from "@emotion/react";
|
|
@@ -2145,8 +2316,8 @@ var linkColorCurrent = css12`
|
|
|
2145
2316
|
`;
|
|
2146
2317
|
|
|
2147
2318
|
// src/components/Typography/Link.tsx
|
|
2148
|
-
import { jsx as
|
|
2149
|
-
var Link =
|
|
2319
|
+
import { jsx as jsx12, jsxs as jsxs4 } from "@emotion/react/jsx-runtime";
|
|
2320
|
+
var Link = React5.forwardRef(
|
|
2150
2321
|
({ external, text, linkColor = "default", children, ...props }, ref) => {
|
|
2151
2322
|
const textColor = {
|
|
2152
2323
|
currentColor: linkColorCurrent,
|
|
@@ -2154,17 +2325,17 @@ var Link = React4.forwardRef(
|
|
|
2154
2325
|
destructive: linkColorDestructive
|
|
2155
2326
|
};
|
|
2156
2327
|
const externalAttrs = external ? {
|
|
2157
|
-
target: "
|
|
2328
|
+
target: "_blank",
|
|
2158
2329
|
rel: "noreferrer noopener"
|
|
2159
2330
|
} : {};
|
|
2160
|
-
return /* @__PURE__ */ jsxs4("a", { css: [link, textColor[linkColor]], ...
|
|
2331
|
+
return /* @__PURE__ */ jsxs4("a", { css: [link, textColor[linkColor]], ...externalAttrs, ...props, ref, children: [
|
|
2161
2332
|
text,
|
|
2162
|
-
external ? /* @__PURE__ */
|
|
2333
|
+
external ? /* @__PURE__ */ jsx12(Icon, { icon: CgExternal, iconColor: "currentColor", size: 20 }) : null,
|
|
2163
2334
|
children
|
|
2164
2335
|
] });
|
|
2165
2336
|
}
|
|
2166
2337
|
);
|
|
2167
|
-
var LinkWithRef =
|
|
2338
|
+
var LinkWithRef = React5.forwardRef(({ linkManagerComponent: LinkManager, href, as, onClick, ...props }, ref) => /* @__PURE__ */ jsx12(LinkManager, { ...props, as, href, ref, passHref: true, legacyBehavior: true, children: /* @__PURE__ */ jsx12(Link, { ...props, onClick }) }));
|
|
2168
2339
|
|
|
2169
2340
|
// src/components/Typography/styles/Paragraph.styles.ts
|
|
2170
2341
|
import { css as css13 } from "@emotion/react";
|
|
@@ -2178,7 +2349,7 @@ var paragraph = css13`
|
|
|
2178
2349
|
`;
|
|
2179
2350
|
|
|
2180
2351
|
// src/components/Typography/Paragraph.tsx
|
|
2181
|
-
import { Fragment as Fragment2, jsx as
|
|
2352
|
+
import { Fragment as Fragment2, jsx as jsx13 } from "@emotion/react/jsx-runtime";
|
|
2182
2353
|
import { createElement } from "@emotion/react";
|
|
2183
2354
|
var Paragraph = ({ className, htmlContent, children, ...pAttributes }) => {
|
|
2184
2355
|
if (htmlContent && Array.isArray(htmlContent)) {
|
|
@@ -2192,9 +2363,9 @@ var Paragraph = ({ className, htmlContent, children, ...pAttributes }) => {
|
|
|
2192
2363
|
dangerouslySetInnerHTML: { __html: html }
|
|
2193
2364
|
}
|
|
2194
2365
|
));
|
|
2195
|
-
return /* @__PURE__ */
|
|
2366
|
+
return /* @__PURE__ */ jsx13(Fragment2, { children: paragraphContent });
|
|
2196
2367
|
}
|
|
2197
|
-
return htmlContent ? /* @__PURE__ */
|
|
2368
|
+
return htmlContent ? /* @__PURE__ */ jsx13(
|
|
2198
2369
|
"p",
|
|
2199
2370
|
{
|
|
2200
2371
|
...pAttributes,
|
|
@@ -2202,7 +2373,7 @@ var Paragraph = ({ className, htmlContent, children, ...pAttributes }) => {
|
|
|
2202
2373
|
className: typeof className === "string" ? className : "",
|
|
2203
2374
|
dangerouslySetInnerHTML: { __html: htmlContent }
|
|
2204
2375
|
}
|
|
2205
|
-
) : /* @__PURE__ */
|
|
2376
|
+
) : /* @__PURE__ */ jsx13(
|
|
2206
2377
|
"p",
|
|
2207
2378
|
{
|
|
2208
2379
|
...pAttributes,
|
|
@@ -2261,10 +2432,10 @@ var IntegrationHeaderSectionDocsLink = css14`
|
|
|
2261
2432
|
`;
|
|
2262
2433
|
|
|
2263
2434
|
// src/components/Typography/IntegrationHeaderSection.tsx
|
|
2264
|
-
import { Fragment as Fragment3, jsx as
|
|
2435
|
+
import { Fragment as Fragment3, jsx as jsx14, jsxs as jsxs5 } from "@emotion/react/jsx-runtime";
|
|
2265
2436
|
var IntegrationHeaderSectionHexImage = ({ ...props }) => {
|
|
2266
2437
|
return /* @__PURE__ */ jsxs5("svg", { viewBox: "0 0 100 116", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
2267
|
-
/* @__PURE__ */
|
|
2438
|
+
/* @__PURE__ */ jsx14(
|
|
2268
2439
|
"path",
|
|
2269
2440
|
{
|
|
2270
2441
|
d: "M50 2L98.4974 30V86L50 114L1.50258 86V30L50 2Z",
|
|
@@ -2273,7 +2444,7 @@ var IntegrationHeaderSectionHexImage = ({ ...props }) => {
|
|
|
2273
2444
|
strokeWidth: "2"
|
|
2274
2445
|
}
|
|
2275
2446
|
),
|
|
2276
|
-
/* @__PURE__ */
|
|
2447
|
+
/* @__PURE__ */ jsx14("defs", { children: /* @__PURE__ */ jsxs5(
|
|
2277
2448
|
"linearGradient",
|
|
2278
2449
|
{
|
|
2279
2450
|
id: "paint0_linear_154_2529",
|
|
@@ -2283,8 +2454,8 @@ var IntegrationHeaderSectionHexImage = ({ ...props }) => {
|
|
|
2283
2454
|
y2: "6.75894",
|
|
2284
2455
|
gradientUnits: "userSpaceOnUse",
|
|
2285
2456
|
children: [
|
|
2286
|
-
/* @__PURE__ */
|
|
2287
|
-
/* @__PURE__ */
|
|
2457
|
+
/* @__PURE__ */ jsx14("stop", { stopColor: "#1768B2" }),
|
|
2458
|
+
/* @__PURE__ */ jsx14("stop", { offset: "1", stopColor: "#B3EFE4" })
|
|
2288
2459
|
]
|
|
2289
2460
|
}
|
|
2290
2461
|
) })
|
|
@@ -2305,14 +2476,14 @@ var IntegrationHeaderSection = ({
|
|
|
2305
2476
|
/* @__PURE__ */ jsxs5("div", { css: IntegrationHeaderSectionContainer, ...props, children: [
|
|
2306
2477
|
/* @__PURE__ */ jsxs5("div", { css: IntegrationHeaderSectionTitleContainer, children: [
|
|
2307
2478
|
icon ? /* @__PURE__ */ jsxs5("div", { css: IntegrationHeaderSectionIconContainer, children: [
|
|
2308
|
-
/* @__PURE__ */
|
|
2309
|
-
CompIcon ? /* @__PURE__ */
|
|
2479
|
+
/* @__PURE__ */ jsx14(IntegrationHeaderSectionHexImage, { css: IntegrationHeaderSectionHexIcon }),
|
|
2480
|
+
CompIcon ? /* @__PURE__ */ jsx14(CompIcon, { css: IntegrationHeaderSectionIcon }) : icon ? /* @__PURE__ */ jsx14("img", { src: icon, alt: title2, css: IntegrationHeaderSectionIcon }) : null
|
|
2310
2481
|
] }) : null,
|
|
2311
2482
|
/* @__PURE__ */ jsxs5("div", { css: IntegrationHeaderSectionTitleGroup, "data-testid": "integration-header-text", children: [
|
|
2312
|
-
/* @__PURE__ */
|
|
2313
|
-
badgeText ? /* @__PURE__ */
|
|
2314
|
-
menu ? /* @__PURE__ */
|
|
2315
|
-
docsLink ? /* @__PURE__ */
|
|
2483
|
+
/* @__PURE__ */ jsx14("h1", { css: IntegrationHeaderSectionTitle, children: title2 }),
|
|
2484
|
+
badgeText ? /* @__PURE__ */ jsx14(Badge, { text: badgeText }) : null,
|
|
2485
|
+
menu ? /* @__PURE__ */ jsx14("div", { children: menu }) : null,
|
|
2486
|
+
docsLink ? /* @__PURE__ */ jsx14(
|
|
2316
2487
|
Link,
|
|
2317
2488
|
{
|
|
2318
2489
|
href: docsLink,
|
|
@@ -2325,7 +2496,7 @@ var IntegrationHeaderSection = ({
|
|
|
2325
2496
|
) : null
|
|
2326
2497
|
] })
|
|
2327
2498
|
] }),
|
|
2328
|
-
description ? /* @__PURE__ */
|
|
2499
|
+
description ? /* @__PURE__ */ jsx14(
|
|
2329
2500
|
Paragraph,
|
|
2330
2501
|
{
|
|
2331
2502
|
css: IntegrationHeaderSectionText,
|
|
@@ -2407,7 +2578,7 @@ var PageHeaderSectionTitle = css15`
|
|
|
2407
2578
|
`;
|
|
2408
2579
|
|
|
2409
2580
|
// src/components/Typography/PageHeaderSection.tsx
|
|
2410
|
-
import { jsx as
|
|
2581
|
+
import { jsx as jsx15, jsxs as jsxs6 } from "@emotion/react/jsx-runtime";
|
|
2411
2582
|
var PageHeaderSection = ({
|
|
2412
2583
|
title: title2,
|
|
2413
2584
|
desc,
|
|
@@ -2424,8 +2595,8 @@ var PageHeaderSection = ({
|
|
|
2424
2595
|
return /* @__PURE__ */ jsxs6("div", { css: PageHeaderSectionContainer, "data-testid": "page-header", children: [
|
|
2425
2596
|
/* @__PURE__ */ jsxs6("section", { css: PageHeaderSectionDetails, children: [
|
|
2426
2597
|
linkText && linkProps && linkManagerComponent ? /* @__PURE__ */ jsxs6("div", { css: PageHeaderSectionLinkContainer, children: [
|
|
2427
|
-
/* @__PURE__ */
|
|
2428
|
-
/* @__PURE__ */
|
|
2598
|
+
/* @__PURE__ */ jsx15(Icon, { icon: CgChevronLeft, size: 18, css: PageHeaderSectionLinkIcon, iconColor: "currentColor" }),
|
|
2599
|
+
/* @__PURE__ */ jsx15(
|
|
2429
2600
|
LinkWithRef,
|
|
2430
2601
|
{
|
|
2431
2602
|
linkManagerComponent,
|
|
@@ -2436,10 +2607,10 @@ var PageHeaderSection = ({
|
|
|
2436
2607
|
}
|
|
2437
2608
|
)
|
|
2438
2609
|
] }) : null,
|
|
2439
|
-
/* @__PURE__ */
|
|
2610
|
+
/* @__PURE__ */ jsx15(Heading, { level, css: PageHeaderSectionTitle, ...htmlProps, "data-testid": "page-header-section", children: title2 }),
|
|
2440
2611
|
desc
|
|
2441
2612
|
] }),
|
|
2442
|
-
children ? /* @__PURE__ */
|
|
2613
|
+
children ? /* @__PURE__ */ jsx15("div", { css: PageHeaderSectionChildContainer, children }) : null
|
|
2443
2614
|
] });
|
|
2444
2615
|
};
|
|
2445
2616
|
|
|
@@ -2528,7 +2699,7 @@ var InlineAlertParagraph = css16`
|
|
|
2528
2699
|
`;
|
|
2529
2700
|
|
|
2530
2701
|
// src/components/Alerts/InlineAlert.tsx
|
|
2531
|
-
import { jsx as
|
|
2702
|
+
import { jsx as jsx16, jsxs as jsxs7 } from "@emotion/react/jsx-runtime";
|
|
2532
2703
|
var InlineAlert = ({
|
|
2533
2704
|
id,
|
|
2534
2705
|
title: title2,
|
|
@@ -2538,9 +2709,9 @@ var InlineAlert = ({
|
|
|
2538
2709
|
...btnProps
|
|
2539
2710
|
}) => {
|
|
2540
2711
|
return /* @__PURE__ */ jsxs7("div", { role: "alert", id, css: [InlineAlertContainer, InlineAlertTriangle(arrowPosition), positionCss], children: [
|
|
2541
|
-
/* @__PURE__ */
|
|
2542
|
-
/* @__PURE__ */
|
|
2543
|
-
/* @__PURE__ */
|
|
2712
|
+
/* @__PURE__ */ jsx16("button", { type: "button", "aria-controls": id, title: "close alert", css: InlineAlertCloseBtn, ...btnProps, children: /* @__PURE__ */ jsx16(Icon, { icon: CgClose, iconColor: "currentColor", size: 24 }) }),
|
|
2713
|
+
/* @__PURE__ */ jsx16(Heading, { level: 3, css: InlineAlertTitle, children: title2 }),
|
|
2714
|
+
/* @__PURE__ */ jsx16("p", { css: InlineAlertParagraph, children: text })
|
|
2544
2715
|
] });
|
|
2545
2716
|
};
|
|
2546
2717
|
|
|
@@ -10978,7 +11149,7 @@ var spinner_default = {
|
|
|
10978
11149
|
|
|
10979
11150
|
// src/components/AnimationFile/AnimationFile.tsx
|
|
10980
11151
|
import Lottie from "lottie-react";
|
|
10981
|
-
import { jsx as
|
|
11152
|
+
import { jsx as jsx17 } from "@emotion/react/jsx-runtime";
|
|
10982
11153
|
var AnimationFile = ({
|
|
10983
11154
|
label,
|
|
10984
11155
|
loop,
|
|
@@ -10987,7 +11158,7 @@ var AnimationFile = ({
|
|
|
10987
11158
|
height = "auto",
|
|
10988
11159
|
...props
|
|
10989
11160
|
}) => {
|
|
10990
|
-
return /* @__PURE__ */
|
|
11161
|
+
return /* @__PURE__ */ jsx17(
|
|
10991
11162
|
Lottie,
|
|
10992
11163
|
{
|
|
10993
11164
|
role: "graphics-symbol",
|
|
@@ -11005,7 +11176,7 @@ var AnimationFile = ({
|
|
|
11005
11176
|
};
|
|
11006
11177
|
|
|
11007
11178
|
// src/components/Tooltip/Tooltip.tsx
|
|
11008
|
-
import
|
|
11179
|
+
import React6 from "react";
|
|
11009
11180
|
import {
|
|
11010
11181
|
Tooltip as ReakitTooltip,
|
|
11011
11182
|
TooltipArrow,
|
|
@@ -11031,7 +11202,7 @@ var TooltipArrowStyles = css17`
|
|
|
11031
11202
|
`;
|
|
11032
11203
|
|
|
11033
11204
|
// src/components/Tooltip/Tooltip.tsx
|
|
11034
|
-
import { Fragment as Fragment4, jsx as
|
|
11205
|
+
import { Fragment as Fragment4, jsx as jsx18, jsxs as jsxs8 } from "@emotion/react/jsx-runtime";
|
|
11035
11206
|
function Tooltip({
|
|
11036
11207
|
children,
|
|
11037
11208
|
title: title2,
|
|
@@ -11042,7 +11213,7 @@ function Tooltip({
|
|
|
11042
11213
|
}) {
|
|
11043
11214
|
const tooltip = useTooltipState({ placement });
|
|
11044
11215
|
return !title2 ? children : /* @__PURE__ */ jsxs8(Fragment4, { children: [
|
|
11045
|
-
/* @__PURE__ */
|
|
11216
|
+
/* @__PURE__ */ jsx18(TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => React6.cloneElement(children, referenceProps) }),
|
|
11046
11217
|
/* @__PURE__ */ jsxs8(
|
|
11047
11218
|
ReakitTooltip,
|
|
11048
11219
|
{
|
|
@@ -11052,7 +11223,7 @@ function Tooltip({
|
|
|
11052
11223
|
css: TooltipContainer,
|
|
11053
11224
|
visible: visible != null ? visible : tooltip.visible,
|
|
11054
11225
|
children: [
|
|
11055
|
-
/* @__PURE__ */
|
|
11226
|
+
/* @__PURE__ */ jsx18(TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
|
|
11056
11227
|
title2
|
|
11057
11228
|
]
|
|
11058
11229
|
}
|
|
@@ -11098,7 +11269,7 @@ var avatarSizeXlStyles = css18`
|
|
|
11098
11269
|
`;
|
|
11099
11270
|
|
|
11100
11271
|
// src/components/Avatar/Avatar.tsx
|
|
11101
|
-
import { jsx as
|
|
11272
|
+
import { jsx as jsx19, jsxs as jsxs9 } from "@emotion/react/jsx-runtime";
|
|
11102
11273
|
var avatarSizeStylesMap = {
|
|
11103
11274
|
xs: avatarSizeXsStyles,
|
|
11104
11275
|
sm: avatarSizeSmStyles,
|
|
@@ -11107,8 +11278,8 @@ var avatarSizeStylesMap = {
|
|
|
11107
11278
|
xl: avatarSizeXlStyles
|
|
11108
11279
|
};
|
|
11109
11280
|
var Avatar = ({ src, label = "", children, size = "md", ...props }) => {
|
|
11110
|
-
return /* @__PURE__ */
|
|
11111
|
-
!src ? null : /* @__PURE__ */
|
|
11281
|
+
return /* @__PURE__ */ jsx19(Tooltip, { title: label, children: /* @__PURE__ */ jsxs9("div", { css: [avatarStyles, avatarSizeStylesMap[size]], ...props, children: [
|
|
11282
|
+
!src ? null : /* @__PURE__ */ jsx19("img", { role: "presentation", src, css: avatarImageStyles }),
|
|
11112
11283
|
children
|
|
11113
11284
|
] }) });
|
|
11114
11285
|
};
|
|
@@ -11272,7 +11443,7 @@ var bannerDismissButtonStyles = css21`
|
|
|
11272
11443
|
`;
|
|
11273
11444
|
|
|
11274
11445
|
// src/components/Banner/Banner.tsx
|
|
11275
|
-
import { jsx as
|
|
11446
|
+
import { jsx as jsx20, jsxs as jsxs11 } from "@emotion/react/jsx-runtime";
|
|
11276
11447
|
var Banner = ({ type = "note", onDismiss, children, isAnimated = false, ...props }) => {
|
|
11277
11448
|
return /* @__PURE__ */ jsxs11(
|
|
11278
11449
|
"div",
|
|
@@ -11282,8 +11453,8 @@ var Banner = ({ type = "note", onDismiss, children, isAnimated = false, ...props
|
|
|
11282
11453
|
"data-type": type,
|
|
11283
11454
|
...props,
|
|
11284
11455
|
children: [
|
|
11285
|
-
/* @__PURE__ */
|
|
11286
|
-
!onDismiss ? null : /* @__PURE__ */
|
|
11456
|
+
/* @__PURE__ */ jsx20("div", { css: bannerContentStyles, children }),
|
|
11457
|
+
!onDismiss ? null : /* @__PURE__ */ jsx20("button", { type: "button", css: bannerDismissButtonStyles, title: "Dismiss banner", onClick: onDismiss, children: /* @__PURE__ */ jsx20(CgClose2, {}) })
|
|
11287
11458
|
]
|
|
11288
11459
|
}
|
|
11289
11460
|
);
|
|
@@ -11304,7 +11475,7 @@ var SVGDark = css22`
|
|
|
11304
11475
|
`;
|
|
11305
11476
|
|
|
11306
11477
|
// src/components/Brand/UniformBadge.tsx
|
|
11307
|
-
import { jsx as
|
|
11478
|
+
import { jsx as jsx21, jsxs as jsxs12 } from "@emotion/react/jsx-runtime";
|
|
11308
11479
|
var UniformBadge = ({
|
|
11309
11480
|
theme = "light",
|
|
11310
11481
|
...props
|
|
@@ -11321,21 +11492,21 @@ var UniformBadge = ({
|
|
|
11321
11492
|
css: [SVG, theme === "dark" ? SVGDark : SVGLight],
|
|
11322
11493
|
...props,
|
|
11323
11494
|
children: [
|
|
11324
|
-
/* @__PURE__ */
|
|
11495
|
+
/* @__PURE__ */ jsx21(
|
|
11325
11496
|
"path",
|
|
11326
11497
|
{
|
|
11327
11498
|
d: "M19.3444 4.35168L7 11.484V25.7181L19.3444 18.5858L31.6583 11.484L19.3444 4.35168Z",
|
|
11328
11499
|
fill: "#84ADFF"
|
|
11329
11500
|
}
|
|
11330
11501
|
),
|
|
11331
|
-
/* @__PURE__ */
|
|
11502
|
+
/* @__PURE__ */ jsx21(
|
|
11332
11503
|
"path",
|
|
11333
11504
|
{
|
|
11334
11505
|
d: "M19.3444 32.8505V18.5858L7 25.7182V39.9523L19.3444 47.0846L31.6583 39.9523V25.7182L19.3444 32.8505Z",
|
|
11335
11506
|
fill: "#5786FF"
|
|
11336
11507
|
}
|
|
11337
11508
|
),
|
|
11338
|
-
/* @__PURE__ */
|
|
11509
|
+
/* @__PURE__ */ jsx21(
|
|
11339
11510
|
"path",
|
|
11340
11511
|
{
|
|
11341
11512
|
d: "M31.6583 11.484L19.3444 18.5858L31.6583 25.7182V39.9523L44.0027 32.8505V18.5858L31.6583 11.484Z",
|
|
@@ -11348,12 +11519,12 @@ var UniformBadge = ({
|
|
|
11348
11519
|
};
|
|
11349
11520
|
|
|
11350
11521
|
// src/components/Brand/UniformLogo.tsx
|
|
11351
|
-
import { jsx as
|
|
11522
|
+
import { jsx as jsx22, jsxs as jsxs13 } from "@emotion/react/jsx-runtime";
|
|
11352
11523
|
var UniformLogo = ({
|
|
11353
11524
|
theme = "light",
|
|
11354
11525
|
...props
|
|
11355
11526
|
}) => {
|
|
11356
|
-
return /* @__PURE__ */
|
|
11527
|
+
return /* @__PURE__ */ jsx22("div", { "data-testid": "uniform-Logo", children: /* @__PURE__ */ jsxs13(
|
|
11357
11528
|
"svg",
|
|
11358
11529
|
{
|
|
11359
11530
|
width: "153",
|
|
@@ -11364,16 +11535,16 @@ var UniformLogo = ({
|
|
|
11364
11535
|
css: [SVG, theme === "dark" ? SVGDark : SVGLight],
|
|
11365
11536
|
...props,
|
|
11366
11537
|
children: [
|
|
11367
|
-
/* @__PURE__ */
|
|
11368
|
-
/* @__PURE__ */
|
|
11538
|
+
/* @__PURE__ */ jsx22("path", { d: "M11.249 0 0 6.495v12.99l11.249-6.495L22.5 6.495 11.25 0Z", fill: "#7BB3FF" }),
|
|
11539
|
+
/* @__PURE__ */ jsx22(
|
|
11369
11540
|
"path",
|
|
11370
11541
|
{
|
|
11371
11542
|
d: "M11.249 25.98V12.99L0 19.486v12.99l11.249 6.495L22.5 32.476v-12.99L11.25 25.98Z",
|
|
11372
11543
|
fill: "#498DFF"
|
|
11373
11544
|
}
|
|
11374
11545
|
),
|
|
11375
|
-
/* @__PURE__ */
|
|
11376
|
-
/* @__PURE__ */
|
|
11546
|
+
/* @__PURE__ */ jsx22("path", { d: "m22.5 6.495-11.25 6.496 11.25 6.495v12.99l11.25-6.495V12.99L22.5 6.495Z", fill: "#E61408" }),
|
|
11547
|
+
/* @__PURE__ */ jsx22(
|
|
11377
11548
|
"path",
|
|
11378
11549
|
{
|
|
11379
11550
|
d: "M86.45 12.98h-4.076v14.87h4.076V12.98Zm.146-6.843h-4.371v4.076h4.37V6.137Zm5.861 1.993v4.85h-2.736v3.477h2.736V27.85h4.076V16.457h3.27V12.98h-3.27V9.617h3.27v-3.48h-3.896l-3.45 1.992Zm13.503 4.7-3.45 1.993v11.183l3.45 1.992h6.335l3.45-1.992V14.823l-3.45-1.992h-6.335Zm5.71 11.688h-5.087v-8.21h5.087v8.21Zm12.607-10.315-2.119-1.224h-1.954v14.87h4.076V16.457h5.115V12.98h-2.999l-2.119 1.224ZM71.034 12.83l-2.375 1.373-2.379-1.372h-1.6v15.018h4.075V16.31h5.084v11.54h4.076V14.823l-3.45-1.992h-3.431ZM56.145 24.517h-5.087V12.98h-4.073v13.027l3.45 1.992h3.593l2.111-1.22.003.002.003-.003v.003l2.108 1.218h1.965v-15.02h-4.073v11.538Zm93.68-11.687h-2.855l-2.794 1.604-2.767-1.603h-2.854l-2.111 1.218-2.111-1.218h-1.965v15.018h4.076V16.31h4.343v11.54h4.073V16.31h4.343v11.54h4.073V14.823l-3.451-1.992Z",
|
|
@@ -11396,59 +11567,59 @@ var UniformLogoLarge = ({ ...props }) => {
|
|
|
11396
11567
|
...props,
|
|
11397
11568
|
children: [
|
|
11398
11569
|
/* @__PURE__ */ jsxs13("g", { clipPath: "url(#clip0)", children: [
|
|
11399
|
-
/* @__PURE__ */
|
|
11400
|
-
/* @__PURE__ */
|
|
11570
|
+
/* @__PURE__ */ jsx22("path", { d: "M18.3804 0L0 10.6131V31.8393L18.3804 21.2262L36.7654 10.6131L18.3804 0Z", fill: "#7BB3FF" }),
|
|
11571
|
+
/* @__PURE__ */ jsx22(
|
|
11401
11572
|
"path",
|
|
11402
11573
|
{
|
|
11403
11574
|
d: "M18.3804 42.4524V21.2262L0 31.8393V53.0655L18.3804 63.6786L36.7654 53.0655V31.8393L18.3804 42.4524Z",
|
|
11404
11575
|
fill: "#498DFF"
|
|
11405
11576
|
}
|
|
11406
11577
|
),
|
|
11407
|
-
/* @__PURE__ */
|
|
11578
|
+
/* @__PURE__ */ jsx22(
|
|
11408
11579
|
"path",
|
|
11409
11580
|
{
|
|
11410
11581
|
d: "M36.7654 10.6132L18.3804 21.2263L36.7654 31.8394V53.0656L55.1458 42.4525V21.2263L36.7654 10.6132Z",
|
|
11411
11582
|
fill: "#E61408"
|
|
11412
11583
|
}
|
|
11413
11584
|
),
|
|
11414
|
-
/* @__PURE__ */
|
|
11415
|
-
/* @__PURE__ */
|
|
11416
|
-
/* @__PURE__ */
|
|
11585
|
+
/* @__PURE__ */ jsx22("path", { d: "M141.257 21.2081H134.598V45.5052H141.257V21.2081Z", fill: "currentColor" }),
|
|
11586
|
+
/* @__PURE__ */ jsx22("path", { d: "M141.496 10.0277H134.355V16.6874H141.496V10.0277Z", fill: "currentColor" }),
|
|
11587
|
+
/* @__PURE__ */ jsx22(
|
|
11417
11588
|
"path",
|
|
11418
11589
|
{
|
|
11419
11590
|
d: "M151.073 13.2832V21.2082H146.602V26.8907H151.073V45.5053H157.733V26.8907H163.078V21.2082H157.733V15.7147H163.078V10.0277H156.711L151.073 13.2832Z",
|
|
11420
11591
|
fill: "currentColor"
|
|
11421
11592
|
}
|
|
11422
11593
|
),
|
|
11423
|
-
/* @__PURE__ */
|
|
11594
|
+
/* @__PURE__ */ jsx22(
|
|
11424
11595
|
"path",
|
|
11425
11596
|
{
|
|
11426
11597
|
d: "M173.137 20.965L167.5 24.2205V42.4929L173.137 45.7484H183.489L189.127 42.4929V24.2205L183.489 20.965H173.137ZM182.467 40.0613H174.155V26.6475H182.467V40.0613Z",
|
|
11427
11598
|
fill: "currentColor"
|
|
11428
11599
|
}
|
|
11429
11600
|
),
|
|
11430
|
-
/* @__PURE__ */
|
|
11601
|
+
/* @__PURE__ */ jsx22(
|
|
11431
11602
|
"path",
|
|
11432
11603
|
{
|
|
11433
11604
|
d: "M203.067 23.2074L199.605 21.2081H196.412V45.5052H203.072V26.8907H211.429V21.2081H206.53L203.067 23.2074Z",
|
|
11434
11605
|
fill: "currentColor"
|
|
11435
11606
|
}
|
|
11436
11607
|
),
|
|
11437
|
-
/* @__PURE__ */
|
|
11608
|
+
/* @__PURE__ */ jsx22(
|
|
11438
11609
|
"path",
|
|
11439
11610
|
{
|
|
11440
11611
|
d: "M116.069 20.965L112.187 23.2074L108.301 20.965H105.685V45.5052H112.345V26.6475H120.653V45.5052H127.312V24.2205L121.675 20.965H116.069Z",
|
|
11441
11612
|
fill: "currentColor"
|
|
11442
11613
|
}
|
|
11443
11614
|
),
|
|
11444
|
-
/* @__PURE__ */
|
|
11615
|
+
/* @__PURE__ */ jsx22(
|
|
11445
11616
|
"path",
|
|
11446
11617
|
{
|
|
11447
11618
|
d: "M91.7401 40.0614H83.4279V21.2081H76.7728V42.4929L82.4103 45.7484H88.2819L91.7311 43.7537L91.7356 43.7582L91.7401 43.7537V43.7582L95.1847 45.7484H98.3952V21.2081H91.7401V40.0614Z",
|
|
11448
11619
|
fill: "currentColor"
|
|
11449
11620
|
}
|
|
11450
11621
|
),
|
|
11451
|
-
/* @__PURE__ */
|
|
11622
|
+
/* @__PURE__ */ jsx22(
|
|
11452
11623
|
"path",
|
|
11453
11624
|
{
|
|
11454
11625
|
d: "M244.813 20.965H240.148L235.582 23.5856L231.061 20.965H226.396L222.947 22.9552L219.498 20.965H216.288V45.5052H222.947V26.6475H230.044V45.5052H236.699V26.6475H243.795V45.5052H250.45V24.2205L244.813 20.965Z",
|
|
@@ -11456,45 +11627,12 @@ var UniformLogoLarge = ({ ...props }) => {
|
|
|
11456
11627
|
}
|
|
11457
11628
|
)
|
|
11458
11629
|
] }),
|
|
11459
|
-
/* @__PURE__ */
|
|
11630
|
+
/* @__PURE__ */ jsx22("defs", { children: /* @__PURE__ */ jsx22("clipPath", { id: "clip0", children: /* @__PURE__ */ jsx22("rect", { width: "250", height: "63.6786", fill: "currentColor" }) }) })
|
|
11460
11631
|
]
|
|
11461
11632
|
}
|
|
11462
11633
|
);
|
|
11463
11634
|
};
|
|
11464
11635
|
|
|
11465
|
-
// src/components/Button/Button.tsx
|
|
11466
|
-
import * as React6 from "react";
|
|
11467
|
-
import { Button as BaseButton } from "reakit/Button";
|
|
11468
|
-
import { jsx as jsx22 } from "@emotion/react/jsx-runtime";
|
|
11469
|
-
var Button = React6.forwardRef(
|
|
11470
|
-
({ buttonType = "primary", size = "md", children, ...props }, ref) => {
|
|
11471
|
-
const buttonTheme = {
|
|
11472
|
-
primary: buttonPrimary,
|
|
11473
|
-
primaryInvert: buttonPrimaryInvert,
|
|
11474
|
-
"accent-alt-dark": buttonAccentAltDark,
|
|
11475
|
-
"accent-alt-dark-outline": buttonAccentAltDarkOutline,
|
|
11476
|
-
destructive: buttonDestructive,
|
|
11477
|
-
secondary: buttonSecondary,
|
|
11478
|
-
secondaryInvert: buttonSecondaryInvert,
|
|
11479
|
-
ghost: buttonGhost,
|
|
11480
|
-
ghostDestructive: buttonGhostDestructive,
|
|
11481
|
-
unimportant: buttonUnimportant,
|
|
11482
|
-
ghostUnimportant: buttonGhostUnimportant,
|
|
11483
|
-
tertiary: buttonTertiary,
|
|
11484
|
-
tertiaryOutline: buttonTertiaryOutline
|
|
11485
|
-
};
|
|
11486
|
-
const btnSize = {
|
|
11487
|
-
zero: "padding: 0",
|
|
11488
|
-
xs: "padding: 0.375rem 0.625rem; font-size: var(--fs-xs); line-height: 1.5;",
|
|
11489
|
-
sm: "padding: var(--spacing-sm) 0.75rem; font-size: var(--fs-sm);",
|
|
11490
|
-
md: "padding: var(--spacing-sm) var(--spacing-base); font-size: var(--fs-sm);",
|
|
11491
|
-
lg: "padding: var(--spacing-sm) var(--spacing-base)",
|
|
11492
|
-
xl: "padding: 0.75rem var(--spacing-md)"
|
|
11493
|
-
};
|
|
11494
|
-
return /* @__PURE__ */ jsx22(BaseButton, { ref, css: [button, buttonTheme[buttonType], btnSize[size]], ...props, children });
|
|
11495
|
-
}
|
|
11496
|
-
);
|
|
11497
|
-
|
|
11498
11636
|
// src/components/ButtonWithMenu/ButtonWithMenu.tsx
|
|
11499
11637
|
import { CgChevronDown } from "@react-icons/all-files/cg/CgChevronDown";
|
|
11500
11638
|
import { CgMathPlus as CgMathPlus2 } from "@react-icons/all-files/cg/CgMathPlus";
|
|
@@ -11709,6 +11847,7 @@ var Menu = React8.forwardRef(function Menu2({
|
|
|
11709
11847
|
/* @__PURE__ */ jsx26(
|
|
11710
11848
|
BaseMenu,
|
|
11711
11849
|
{
|
|
11850
|
+
unmountOnHide: true,
|
|
11712
11851
|
gutter: 0,
|
|
11713
11852
|
shift: menu.parent ? -4 : 0,
|
|
11714
11853
|
...props,
|
|
@@ -14126,7 +14265,7 @@ function InputComboBox(props) {
|
|
|
14126
14265
|
var _a2, _b;
|
|
14127
14266
|
return {
|
|
14128
14267
|
...base,
|
|
14129
|
-
color: "
|
|
14268
|
+
color: "var(--typography-base)",
|
|
14130
14269
|
...(_b = (_a2 = props.styles) == null ? void 0 : _a2.singleValue) == null ? void 0 : _b.call(_a2, base, sProps)
|
|
14131
14270
|
};
|
|
14132
14271
|
},
|
|
@@ -14134,7 +14273,7 @@ function InputComboBox(props) {
|
|
|
14134
14273
|
var _a2, _b;
|
|
14135
14274
|
return {
|
|
14136
14275
|
...base,
|
|
14137
|
-
padding: "var(--spacing-base)",
|
|
14276
|
+
padding: "12px var(--spacing-base) 12px var(--spacing-sm)",
|
|
14138
14277
|
gap: "2px",
|
|
14139
14278
|
...(_b = (_a2 = props.styles) == null ? void 0 : _a2.valueContainer) == null ? void 0 : _b.call(_a2, base, sProps)
|
|
14140
14279
|
};
|
|
@@ -14166,15 +14305,16 @@ function InputComboBox(props) {
|
|
|
14166
14305
|
...base,
|
|
14167
14306
|
className: "input-combobox-control",
|
|
14168
14307
|
// Used to provide overriding styles for blue focus ring and offset borders
|
|
14169
|
-
border: state.isFocused ? "1px solid
|
|
14308
|
+
border: state.isFocused ? "1px solid var(--accent-dark-active)" : "1px solid var(--gray-300)",
|
|
14170
14309
|
lineHeight: 1.25,
|
|
14171
|
-
outline:
|
|
14310
|
+
outline: "none",
|
|
14172
14311
|
outlineOffset: 0,
|
|
14173
|
-
minHeight: "
|
|
14312
|
+
minHeight: "48px",
|
|
14174
14313
|
// matches the min-height of other input fields
|
|
14175
|
-
boxShadow: "none",
|
|
14314
|
+
boxShadow: state.isFocused ? "var(--elevation-100)" : "none",
|
|
14176
14315
|
"&:hover": {
|
|
14177
|
-
boxShadow: "none"
|
|
14316
|
+
boxShadow: "none",
|
|
14317
|
+
borderColor: "var(--accent-dark-hover)"
|
|
14178
14318
|
},
|
|
14179
14319
|
...(_b = (_a2 = props.styles) == null ? void 0 : _a2.control) == null ? void 0 : _b.call(_a2, base, state)
|
|
14180
14320
|
};
|
|
@@ -14205,7 +14345,7 @@ function InputComboBox(props) {
|
|
|
14205
14345
|
var _a2, _b;
|
|
14206
14346
|
return {
|
|
14207
14347
|
...base,
|
|
14208
|
-
color: state.isDisabled ? "var(--gray-
|
|
14348
|
+
color: state.isDisabled ? "var(--gray-300)" : "var(--gray-700)",
|
|
14209
14349
|
backgroundColor: state.isDisabled ? "transparent" : state.isSelected ? "var(--gray-200)" : state.isFocused ? "var(--gray-100)" : "transparent",
|
|
14210
14350
|
...(_b = (_a2 = props.styles) == null ? void 0 : _a2.option) == null ? void 0 : _b.call(_a2, base, state)
|
|
14211
14351
|
};
|
|
@@ -14232,7 +14372,7 @@ function InputComboBox(props) {
|
|
|
14232
14372
|
background: "var(--gray-100)",
|
|
14233
14373
|
":hover": {
|
|
14234
14374
|
color: "var(--white)",
|
|
14235
|
-
background: "var(--
|
|
14375
|
+
background: "var(--action-destructive-default)",
|
|
14236
14376
|
transition: "color var(--duration-fast) var(--timing-ease-out), background-color var(--duration-fast) var(--timing-ease-out)"
|
|
14237
14377
|
}
|
|
14238
14378
|
};
|
|
@@ -16014,10 +16154,10 @@ import { useCallback as useCallback4 } from "react";
|
|
|
16014
16154
|
|
|
16015
16155
|
// src/components/Popover/Popover.tsx
|
|
16016
16156
|
import {
|
|
16017
|
-
Popover as
|
|
16157
|
+
Popover as AriakitPopover,
|
|
16018
16158
|
PopoverDisclosure,
|
|
16019
|
-
|
|
16020
|
-
} from "
|
|
16159
|
+
PopoverProvider
|
|
16160
|
+
} from "@ariakit/react";
|
|
16021
16161
|
|
|
16022
16162
|
// src/components/Popover/Popover.styles.ts
|
|
16023
16163
|
import { css as css71 } from "@emotion/react";
|
|
@@ -16060,14 +16200,13 @@ var Popover2 = ({
|
|
|
16060
16200
|
testId,
|
|
16061
16201
|
trigger,
|
|
16062
16202
|
children,
|
|
16203
|
+
baseId,
|
|
16063
16204
|
...otherProps
|
|
16064
16205
|
}) => {
|
|
16065
|
-
|
|
16066
|
-
return /* @__PURE__ */ jsxs57(Fragment12, { children: [
|
|
16206
|
+
return /* @__PURE__ */ jsxs57(PopoverProvider, { placement, children: [
|
|
16067
16207
|
/* @__PURE__ */ jsx88(
|
|
16068
16208
|
PopoverDisclosure,
|
|
16069
16209
|
{
|
|
16070
|
-
...popover,
|
|
16071
16210
|
css: [PopoverBtn, trigger ? void 0 : PopoverDefaulterTriggerBtn],
|
|
16072
16211
|
title: buttonText,
|
|
16073
16212
|
"data-testid": testId,
|
|
@@ -16077,7 +16216,7 @@ var Popover2 = ({
|
|
|
16077
16216
|
] })
|
|
16078
16217
|
}
|
|
16079
16218
|
),
|
|
16080
|
-
/* @__PURE__ */ jsx88(
|
|
16219
|
+
/* @__PURE__ */ jsx88(AriakitPopover, { unmountOnHide: true, css: Popover, ...otherProps, "aria-label": ariaLabel, children })
|
|
16081
16220
|
] });
|
|
16082
16221
|
};
|
|
16083
16222
|
|
|
@@ -16324,7 +16463,9 @@ var Modal = React19.forwardRef(
|
|
|
16324
16463
|
lg: modalSizeLarge
|
|
16325
16464
|
};
|
|
16326
16465
|
useShortcut({
|
|
16327
|
-
handler:
|
|
16466
|
+
handler: () => {
|
|
16467
|
+
onRequestClose();
|
|
16468
|
+
},
|
|
16328
16469
|
shortcut: "escape"
|
|
16329
16470
|
});
|
|
16330
16471
|
useEffect10(() => {
|
|
@@ -16338,7 +16479,7 @@ var Modal = React19.forwardRef(
|
|
|
16338
16479
|
(_a = dialogRef.current) == null ? void 0 : _a.showModal();
|
|
16339
16480
|
return () => {
|
|
16340
16481
|
var _a2;
|
|
16341
|
-
|
|
16482
|
+
(_a2 = dialogRef.current) == null ? void 0 : _a2.close();
|
|
16342
16483
|
};
|
|
16343
16484
|
}, []);
|
|
16344
16485
|
return /* @__PURE__ */ jsx90(
|
|
@@ -16598,7 +16739,7 @@ var input2 = css76`
|
|
|
16598
16739
|
|
|
16599
16740
|
&:focus,
|
|
16600
16741
|
&:focus-within {
|
|
16601
|
-
border-radius: var(--rounded-
|
|
16742
|
+
border-radius: var(--rounded-sm);
|
|
16602
16743
|
box-shadow: var(--elevation-100);
|
|
16603
16744
|
border: 1px solid var(--accent-dark-active);
|
|
16604
16745
|
outline: none;
|
|
@@ -16611,7 +16752,7 @@ var input2 = css76`
|
|
|
16611
16752
|
&:disabled,
|
|
16612
16753
|
&:disabled::placeholder,
|
|
16613
16754
|
&:disabled:hover {
|
|
16614
|
-
border-radius: var(--rounded-
|
|
16755
|
+
border-radius: var(--rounded-sm);
|
|
16615
16756
|
cursor: not-allowed;
|
|
16616
16757
|
color: var(--gray-400);
|
|
16617
16758
|
}
|
|
@@ -16754,7 +16895,7 @@ var dataConnectButton = css76`
|
|
|
16754
16895
|
box-sizing: border-box;
|
|
16755
16896
|
background-color: var(--white);
|
|
16756
16897
|
border: 1px solid var(--primary-action-default);
|
|
16757
|
-
border-radius: var(--rounded-
|
|
16898
|
+
border-radius: var(--rounded-sm);
|
|
16758
16899
|
color: var(--primary-action-default);
|
|
16759
16900
|
display: flex;
|
|
16760
16901
|
padding: var(--spacing-sm);
|
|
@@ -16772,12 +16913,12 @@ var dataConnectButton = css76`
|
|
|
16772
16913
|
&:focus,
|
|
16773
16914
|
&:focus-within {
|
|
16774
16915
|
outline: 1px solid var(--gray-300);
|
|
16775
|
-
border-radius: var(--rounded-
|
|
16916
|
+
border-radius: var(--rounded-sm);
|
|
16776
16917
|
}
|
|
16777
16918
|
|
|
16778
16919
|
&:disabled:hover,
|
|
16779
16920
|
&:disabled {
|
|
16780
|
-
border-radius: var(--rounded-
|
|
16921
|
+
border-radius: var(--rounded-sm);
|
|
16781
16922
|
cursor: not-allowed;
|
|
16782
16923
|
color: var(--gray-400);
|
|
16783
16924
|
pointer-events: none;
|
|
@@ -18848,7 +18989,7 @@ var editorInput = css85`
|
|
|
18848
18989
|
|
|
18849
18990
|
&:focus,
|
|
18850
18991
|
&:focus-within {
|
|
18851
|
-
border-radius: var(--rounded-
|
|
18992
|
+
border-radius: var(--rounded-sm);
|
|
18852
18993
|
box-shadow: var(--elevation-100);
|
|
18853
18994
|
border: 1px solid var(--accent-dark-hover);
|
|
18854
18995
|
outline: none;
|
|
@@ -19443,47 +19584,41 @@ var SegmentedControl = ({
|
|
|
19443
19584
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
19444
19585
|
...props,
|
|
19445
19586
|
children: options.map((option, index) => {
|
|
19587
|
+
var _a;
|
|
19446
19588
|
if (!option) {
|
|
19447
19589
|
return null;
|
|
19448
19590
|
}
|
|
19449
19591
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
19450
19592
|
const isDisabled = disabled2 || option.disabled;
|
|
19451
|
-
return /* @__PURE__ */ jsx113(
|
|
19452
|
-
|
|
19593
|
+
return /* @__PURE__ */ jsx113(Tooltip, { title: (_a = option.tooltip) != null ? _a : "", children: /* @__PURE__ */ jsx113("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ jsxs75(
|
|
19594
|
+
"label",
|
|
19453
19595
|
{
|
|
19454
|
-
|
|
19455
|
-
|
|
19456
|
-
|
|
19457
|
-
|
|
19458
|
-
|
|
19459
|
-
|
|
19460
|
-
|
|
19461
|
-
|
|
19462
|
-
|
|
19463
|
-
|
|
19464
|
-
|
|
19465
|
-
|
|
19466
|
-
|
|
19467
|
-
|
|
19468
|
-
|
|
19469
|
-
|
|
19470
|
-
|
|
19471
|
-
|
|
19472
|
-
|
|
19473
|
-
|
|
19474
|
-
|
|
19475
|
-
|
|
19476
|
-
|
|
19477
|
-
|
|
19478
|
-
|
|
19479
|
-
|
|
19480
|
-
] })
|
|
19481
|
-
]
|
|
19482
|
-
}
|
|
19483
|
-
) })
|
|
19484
|
-
},
|
|
19485
|
-
JSON.stringify(option.value)
|
|
19486
|
-
);
|
|
19596
|
+
css: [
|
|
19597
|
+
segmentedControlLabelStyles(option.value === value, isDisabled),
|
|
19598
|
+
sizeStyles,
|
|
19599
|
+
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
19600
|
+
],
|
|
19601
|
+
children: [
|
|
19602
|
+
/* @__PURE__ */ jsx113(
|
|
19603
|
+
"input",
|
|
19604
|
+
{
|
|
19605
|
+
css: segmentedControlInputStyles,
|
|
19606
|
+
type: "radio",
|
|
19607
|
+
name,
|
|
19608
|
+
value: index,
|
|
19609
|
+
checked: option.value === value,
|
|
19610
|
+
onChange: onOptionChange,
|
|
19611
|
+
disabled: isDisabled
|
|
19612
|
+
}
|
|
19613
|
+
),
|
|
19614
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx113(CgCheck4, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
19615
|
+
/* @__PURE__ */ jsxs75("span", { css: segmentedControlLabelContentStyles, children: [
|
|
19616
|
+
!option.icon ? null : /* @__PURE__ */ jsx113(Icon, { icon: option.icon, size: "1.5em", iconColor: "currentColor" }),
|
|
19617
|
+
!text ? null : /* @__PURE__ */ jsx113("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
19618
|
+
] })
|
|
19619
|
+
]
|
|
19620
|
+
}
|
|
19621
|
+
) }) }, JSON.stringify(option.value));
|
|
19487
19622
|
})
|
|
19488
19623
|
}
|
|
19489
19624
|
);
|
|
@@ -19875,11 +20010,11 @@ var toastContainerStyles = css95`
|
|
|
19875
20010
|
cursor: pointer;
|
|
19876
20011
|
}
|
|
19877
20012
|
.Toastify__toast-body {
|
|
20013
|
+
display: flex;
|
|
20014
|
+
align-items: flex-start;
|
|
19878
20015
|
margin: auto 0;
|
|
19879
20016
|
flex: 1 1 auto;
|
|
19880
20017
|
padding: var(--spacing-sm);
|
|
19881
|
-
display: flex;
|
|
19882
|
-
align-items: center;
|
|
19883
20018
|
}
|
|
19884
20019
|
.Toastify__toast-body > div:last-child {
|
|
19885
20020
|
word-break: break-word;
|
|
@@ -19887,6 +20022,7 @@ var toastContainerStyles = css95`
|
|
|
19887
20022
|
}
|
|
19888
20023
|
.Toastify__toast-icon {
|
|
19889
20024
|
margin-inline-end: var(--spacing-base);
|
|
20025
|
+
margin-block-start: var(--spacing-2xs);
|
|
19890
20026
|
width: 16px;
|
|
19891
20027
|
flex-shrink: 0;
|
|
19892
20028
|
display: flex;
|