@uniformdev/design-system 19.17.0 → 19.20.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 +770 -435
- package/dist/index.d.ts +50 -10
- package/dist/index.js +1077 -749
- package/package.json +6 -5
package/dist/esm/index.js
CHANGED
|
@@ -579,10 +579,17 @@ var toggleInput = css2`
|
|
|
579
579
|
}
|
|
580
580
|
|
|
581
581
|
&:disabled {
|
|
582
|
+
filter: grayscale(100%);
|
|
582
583
|
cursor: not-allowed;
|
|
583
584
|
color: var(--gray-300);
|
|
584
585
|
border-color: var(--gray-300);
|
|
585
586
|
}
|
|
587
|
+
|
|
588
|
+
&:disabled:checked {
|
|
589
|
+
background: var(--white)
|
|
590
|
+
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='M10.5858 13.4142L7.75735 10.5858L6.34314 12L10.5858 16.2427L17.6568 9.1716L16.2426 7.75739L10.5858 13.4142Z' fill='%23000' /%3E%3C/svg%3E")
|
|
591
|
+
no-repeat center center;
|
|
592
|
+
}
|
|
586
593
|
`;
|
|
587
594
|
var inlineLabel = (fontWeight) => css2`
|
|
588
595
|
font-weight: ${fontWeight === "medium" ? "var(--fw-medium)" : fontWeight === "normal" ? "var(--fw-regular)" : "var(--fw-bold)"};
|
|
@@ -1495,6 +1502,74 @@ var formatSubscript = GenIcon({
|
|
|
1495
1502
|
}
|
|
1496
1503
|
]
|
|
1497
1504
|
});
|
|
1505
|
+
var jsonIcon = GenIcon({
|
|
1506
|
+
tag: "svg",
|
|
1507
|
+
attr: {
|
|
1508
|
+
role: "img",
|
|
1509
|
+
viewBox: "0 0 40 40"
|
|
1510
|
+
},
|
|
1511
|
+
child: [
|
|
1512
|
+
{
|
|
1513
|
+
tag: "path",
|
|
1514
|
+
attr: {
|
|
1515
|
+
fill: "currentColor",
|
|
1516
|
+
d: "M3.3335 20.0719V18.1118C4.82718 18.1118 5.87011 17.8113 6.46228 17.2102C7.05446 16.6005 7.35054 15.5943 7.35054 14.1918V10.4417C7.35054 9.10884 7.50079 7.98945 7.8013 7.08349C8.11064 6.16882 8.57908 5.43708 9.2066 4.88827C9.83413 4.33947 10.6296 3.94311 11.593 3.6992C12.5563 3.45528 13.6921 3.33333 15.0002 3.33333V6.43015C13.9749 6.43015 13.175 6.57824 12.6005 6.87442C12.026 7.1706 11.6239 7.6323 11.3941 8.2595C11.1731 8.878 11.0627 9.67071 11.0627 10.6377V15.394C11.0627 16.0647 10.961 16.6876 10.7577 17.2625C10.5545 17.8287 10.1788 18.3209 9.63084 18.7391C9.08286 19.1572 8.30067 19.4839 7.28425 19.7191C6.26784 19.9543 4.95092 20.0719 3.3335 20.0719ZM15.0002 36.6667C13.6921 36.6667 12.5563 36.5447 11.593 36.3008C10.6296 36.0569 9.83413 35.6605 9.2066 35.1117C8.57908 34.5629 8.11064 33.8312 7.8013 32.9165C7.50079 32.0105 7.35054 30.8911 7.35054 29.5583V25.7951C7.35054 24.4013 7.05446 23.3995 6.46228 22.7897C5.87011 22.18 4.82718 21.8751 3.3335 21.8751V19.9281C4.95092 19.9281 6.26784 20.0457 7.28425 20.2809C8.30067 20.5074 9.08286 20.8341 9.63084 21.2609C10.1788 21.6791 10.5545 22.1756 10.7577 22.7506C10.961 23.3168 11.0627 23.9353 11.0627 24.606V29.3623C11.0627 30.3206 11.1731 31.1089 11.3941 31.7274C11.6239 32.3546 12.026 32.8163 12.6005 33.1125C13.175 33.4174 13.9749 33.5698 15.0002 33.5698V36.6667ZM3.3335 21.8751V18.1118H7.00584V21.8751H3.3335Z"
|
|
1517
|
+
},
|
|
1518
|
+
child: []
|
|
1519
|
+
},
|
|
1520
|
+
{
|
|
1521
|
+
tag: "path",
|
|
1522
|
+
attr: {
|
|
1523
|
+
fill: "currentColor",
|
|
1524
|
+
d: "M14.9998 20C14.9998 20.9205 14.2536 21.6667 13.3332 21.6667C12.4127 21.6667 11.6665 20.9205 11.6665 20C11.6665 19.0795 12.4127 18.3333 13.3332 18.3333C14.2536 18.3333 14.9998 19.0795 14.9998 20Z"
|
|
1525
|
+
},
|
|
1526
|
+
child: []
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
tag: "path",
|
|
1530
|
+
attr: {
|
|
1531
|
+
fill: "currentColor",
|
|
1532
|
+
d: "M21.6665 20C21.6665 20.9205 20.9203 21.6667 19.9998 21.6667C19.0794 21.6667 18.3332 20.9205 18.3332 20C18.3332 19.0795 19.0794 18.3333 19.9998 18.3333C20.9203 18.3333 21.6665 19.0795 21.6665 20Z"
|
|
1533
|
+
},
|
|
1534
|
+
child: []
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
tag: "path",
|
|
1538
|
+
attr: {
|
|
1539
|
+
fill: "currentColor",
|
|
1540
|
+
d: "M28.3332 20C28.3332 20.9205 27.587 21.6667 26.6665 21.6667C25.746 21.6667 24.9998 20.9205 24.9998 20C24.9998 19.0795 25.746 18.3333 26.6665 18.3333C27.587 18.3333 28.3332 19.0795 28.3332 20Z"
|
|
1541
|
+
},
|
|
1542
|
+
child: []
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
tag: "path",
|
|
1546
|
+
attr: {
|
|
1547
|
+
fill: "currentColor",
|
|
1548
|
+
d: "M36.6667 19.9281V21.8751C35.173 21.8751 34.1301 22.18 33.5379 22.7898C32.9457 23.3995 32.6496 24.4013 32.6496 25.7951V29.5583C32.6496 30.8912 32.4949 32.0105 32.1856 32.9165C31.8851 33.8312 31.4211 34.5629 30.7936 35.1117C30.166 35.6605 29.3706 36.0569 28.4072 36.3008C27.4438 36.5447 26.3081 36.6667 25 36.6667V33.5698C26.0253 33.5698 26.8251 33.4174 27.3996 33.1125C27.9741 32.8163 28.3718 32.3546 28.5928 31.7274C28.8226 31.1089 28.9375 30.3206 28.9375 29.3623V24.606C28.9375 23.9353 29.0391 23.3168 29.2424 22.7506C29.4457 22.1756 29.8213 21.6791 30.3693 21.2609C30.9173 20.8341 31.6995 20.5074 32.7159 20.2809C33.7323 20.0457 35.0492 19.9281 36.6667 19.9281ZM25 3.33333C26.3081 3.33333 27.4438 3.45528 28.4072 3.6992C29.3706 3.94311 30.166 4.33947 30.7936 4.88827C31.4211 5.43708 31.8851 6.16882 32.1856 7.08349C32.4949 7.98945 32.6496 9.10884 32.6496 10.4417V14.1918C32.6496 15.5943 32.9457 16.6005 33.5379 17.2102C34.1301 17.8113 35.173 18.1118 36.6667 18.1118V20.0719C35.0492 20.0719 33.7323 19.9543 32.7159 19.7191C31.6995 19.4839 30.9173 19.1572 30.3693 18.7391C29.8213 18.3209 29.4457 17.8287 29.2424 17.2625C29.0391 16.6876 28.9375 16.0647 28.9375 15.394V10.6377C28.9375 9.67071 28.8226 8.878 28.5928 8.2595C28.3718 7.6323 27.9741 7.1706 27.3996 6.87442C26.8251 6.57824 26.0253 6.43015 25 6.43015V3.33333ZM36.6667 18.1118V21.8751H32.9943V18.1118H36.6667Z"
|
|
1549
|
+
},
|
|
1550
|
+
child: []
|
|
1551
|
+
}
|
|
1552
|
+
]
|
|
1553
|
+
});
|
|
1554
|
+
var clearFormatting = GenIcon({
|
|
1555
|
+
tag: "svg",
|
|
1556
|
+
attr: {
|
|
1557
|
+
role: "img",
|
|
1558
|
+
viewBox: "0 0 24 24"
|
|
1559
|
+
},
|
|
1560
|
+
child: [
|
|
1561
|
+
{
|
|
1562
|
+
tag: "path",
|
|
1563
|
+
attr: {
|
|
1564
|
+
fill: "currentColor",
|
|
1565
|
+
fillRule: "evenodd",
|
|
1566
|
+
clipRule: "evenodd",
|
|
1567
|
+
d: "M4.904 12.75a1.67 1.67 0 0 0 0 2.362l3.22 3.22h-2.73a.835.835 0 0 0 0 1.67H18.75a.835.835 0 1 0 0-1.67h-7.622l7.943-7.942a1.67 1.67 0 0 0 0-2.362L15.53 4.487a1.67 1.67 0 0 0-2.362 0L4.904 12.75Zm3.611-1.25-2.43 2.431 3.542 3.542 2.43-2.43L8.515 11.5Zm1.181-1.18 3.542 3.542L17.89 9.21l-3.542-3.542-4.653 4.653Z"
|
|
1568
|
+
},
|
|
1569
|
+
child: []
|
|
1570
|
+
}
|
|
1571
|
+
]
|
|
1572
|
+
});
|
|
1498
1573
|
var customIcons = {
|
|
1499
1574
|
"rectangle-rounded": rectangleRoundedIcon,
|
|
1500
1575
|
card: cardIcon,
|
|
@@ -1508,12 +1583,14 @@ var customIcons = {
|
|
|
1508
1583
|
"info-filled": infoFilledIcon,
|
|
1509
1584
|
settings,
|
|
1510
1585
|
"query-string": queryStringIcon,
|
|
1586
|
+
json: jsonIcon,
|
|
1511
1587
|
"format-bold": formatBoldIcon,
|
|
1512
1588
|
"format-code": formatCode,
|
|
1513
1589
|
"format-strike": formatStrike,
|
|
1514
1590
|
"format-superscript": formatSuperscript,
|
|
1515
1591
|
"format-subscript": formatSubscript,
|
|
1516
|
-
"layout-list-numbered": layoutListNumberedIcon
|
|
1592
|
+
"layout-list-numbered": layoutListNumberedIcon,
|
|
1593
|
+
"clear-formatting": clearFormatting
|
|
1517
1594
|
};
|
|
1518
1595
|
|
|
1519
1596
|
// src/components/AddListButton/AddListButton.styles.ts
|
|
@@ -10975,7 +11052,7 @@ var Button = React5.forwardRef(
|
|
|
10975
11052
|
import { CgChevronDown } from "react-icons/cg";
|
|
10976
11053
|
|
|
10977
11054
|
// src/components/Menu/Menu.tsx
|
|
10978
|
-
import * as
|
|
11055
|
+
import * as React7 from "react";
|
|
10979
11056
|
import {
|
|
10980
11057
|
Menu as BaseMenu,
|
|
10981
11058
|
MenuButton,
|
|
@@ -10983,66 +11060,16 @@ import {
|
|
|
10983
11060
|
} from "reakit/Menu";
|
|
10984
11061
|
import { Portal } from "reakit/Portal";
|
|
10985
11062
|
|
|
10986
|
-
// src/components/Menu/
|
|
10987
|
-
import {
|
|
10988
|
-
var menu = css20`
|
|
10989
|
-
box-shadow: var(--shadow-base);
|
|
10990
|
-
border-radius: var(--rounded-base);
|
|
10991
|
-
background: var(--gray-50);
|
|
10992
|
-
display: flex;
|
|
10993
|
-
flex-direction: column;
|
|
10994
|
-
padding: var(--spacing-sm);
|
|
10995
|
-
outline: none;
|
|
10996
|
-
overflow: hidden;
|
|
10997
|
-
position: relative;
|
|
10998
|
-
z-index: var(--z-50);
|
|
10999
|
-
`;
|
|
11000
|
-
|
|
11001
|
-
// src/components/Menu/Menu.tsx
|
|
11002
|
-
import { jsx as jsx21, jsxs as jsxs11 } from "@emotion/react/jsx-runtime";
|
|
11003
|
-
var MenuContext = React6.createContext({});
|
|
11004
|
-
var useMenuContext = () => {
|
|
11005
|
-
return React6.useContext(MenuContext);
|
|
11006
|
-
};
|
|
11007
|
-
var Menu = ({
|
|
11008
|
-
menuLabel,
|
|
11009
|
-
menuTrigger,
|
|
11010
|
-
placement = "auto",
|
|
11011
|
-
menuItemsContainerCssClasses,
|
|
11012
|
-
children,
|
|
11013
|
-
forceVisible
|
|
11014
|
-
}) => {
|
|
11015
|
-
const menuState = useMenuState({ placement, visible: forceVisible });
|
|
11016
|
-
React6.useEffect(() => {
|
|
11017
|
-
if (forceVisible !== void 0) {
|
|
11018
|
-
menuState.setVisible(forceVisible);
|
|
11019
|
-
}
|
|
11020
|
-
});
|
|
11021
|
-
return /* @__PURE__ */ jsxs11(MenuContext.Provider, { value: menuState, children: [
|
|
11022
|
-
/* @__PURE__ */ jsx21(MenuButton, { ...menuState, ref: menuTrigger.ref, ...menuTrigger.props, children: (triggerProps) => React6.cloneElement(menuTrigger, triggerProps) }),
|
|
11023
|
-
/* @__PURE__ */ jsx21(Portal, { children: /* @__PURE__ */ jsx21(
|
|
11024
|
-
BaseMenu,
|
|
11025
|
-
{
|
|
11026
|
-
...menuState,
|
|
11027
|
-
"aria-label": menuLabel,
|
|
11028
|
-
css: [
|
|
11029
|
-
menu,
|
|
11030
|
-
typeof menuItemsContainerCssClasses === "object" ? menuItemsContainerCssClasses : void 0
|
|
11031
|
-
],
|
|
11032
|
-
className: typeof menuItemsContainerCssClasses === "string" ? menuItemsContainerCssClasses : "",
|
|
11033
|
-
children
|
|
11034
|
-
}
|
|
11035
|
-
) })
|
|
11036
|
-
] });
|
|
11037
|
-
};
|
|
11063
|
+
// src/components/Menu/filterMenuSeparators.ts
|
|
11064
|
+
import React6, { isValidElement } from "react";
|
|
11038
11065
|
|
|
11039
11066
|
// src/components/Menu/MenuGroup.styles.ts
|
|
11040
|
-
import { css as
|
|
11041
|
-
var MenuGroupContainer =
|
|
11067
|
+
import { css as css20 } from "@emotion/react";
|
|
11068
|
+
var MenuGroupContainer = css20`
|
|
11042
11069
|
display: flex;
|
|
11043
11070
|
flex-direction: column;
|
|
11044
11071
|
`;
|
|
11045
|
-
var MenuTitle =
|
|
11072
|
+
var MenuTitle = css20`
|
|
11046
11073
|
color: var(--gray-400);
|
|
11047
11074
|
font-size: var(--fs-xs);
|
|
11048
11075
|
font-weight: var(--fw-bold);
|
|
@@ -11050,21 +11077,17 @@ var MenuTitle = css21`
|
|
|
11050
11077
|
`;
|
|
11051
11078
|
|
|
11052
11079
|
// src/components/Menu/MenuGroup.tsx
|
|
11053
|
-
import { jsx as
|
|
11080
|
+
import { jsx as jsx21, jsxs as jsxs11 } from "@emotion/react/jsx-runtime";
|
|
11054
11081
|
var MenuGroup = ({ title, children }) => {
|
|
11055
|
-
return /* @__PURE__ */
|
|
11056
|
-
/* @__PURE__ */
|
|
11082
|
+
return /* @__PURE__ */ jsxs11("div", { css: MenuGroupContainer, "data-test-id": "menu-group", children: [
|
|
11083
|
+
/* @__PURE__ */ jsx21("span", { css: MenuTitle, children: title }),
|
|
11057
11084
|
children
|
|
11058
11085
|
] });
|
|
11059
11086
|
};
|
|
11060
11087
|
|
|
11061
|
-
// src/components/Menu/MenuItem.tsx
|
|
11062
|
-
import * as React7 from "react";
|
|
11063
|
-
import { MenuItem as BaseMenuItem } from "reakit";
|
|
11064
|
-
|
|
11065
11088
|
// src/components/Menu/MenuItem.styles.ts
|
|
11066
|
-
import { css as
|
|
11067
|
-
var menuItem = (textTheme) =>
|
|
11089
|
+
import { css as css21 } from "@emotion/react";
|
|
11090
|
+
var menuItem = (textTheme) => css21`
|
|
11068
11091
|
align-items: center;
|
|
11069
11092
|
border: none;
|
|
11070
11093
|
border-radius: var(--rounded-base);
|
|
@@ -11090,7 +11113,7 @@ var menuItem = (textTheme) => css22`
|
|
|
11090
11113
|
outline: none;
|
|
11091
11114
|
}
|
|
11092
11115
|
`;
|
|
11093
|
-
var menuItemWithIcon =
|
|
11116
|
+
var menuItemWithIcon = css21`
|
|
11094
11117
|
align-items: center;
|
|
11095
11118
|
display: flex;
|
|
11096
11119
|
justify-content: space-between;
|
|
@@ -11102,15 +11125,120 @@ var menuItemWithIcon = css22`
|
|
|
11102
11125
|
height: var(--spacing-base);
|
|
11103
11126
|
}
|
|
11104
11127
|
`;
|
|
11105
|
-
var menuItemSeparator =
|
|
11128
|
+
var menuItemSeparator = css21`
|
|
11106
11129
|
border-top: 1px solid var(--gray-300);
|
|
11107
11130
|
width: 100%;
|
|
11108
11131
|
margin-block: var(--spacing-sm);
|
|
11109
11132
|
`;
|
|
11110
11133
|
|
|
11134
|
+
// src/components/Menu/MenuItemSeparator.tsx
|
|
11135
|
+
import { jsx as jsx22 } from "@emotion/react/jsx-runtime";
|
|
11136
|
+
var MenuItemSeparator = () => /* @__PURE__ */ jsx22("hr", { css: menuItemSeparator, "data-testid": "menu-separator" });
|
|
11137
|
+
|
|
11138
|
+
// src/components/Menu/filterMenuSeparators.ts
|
|
11139
|
+
function filterMenuSeparators(children, context) {
|
|
11140
|
+
const currentContext = context || { lastChildWasSeparator: false, effectiveIndex: 0 };
|
|
11141
|
+
if (!Array.isArray(children)) {
|
|
11142
|
+
return children;
|
|
11143
|
+
}
|
|
11144
|
+
const filteredList = [];
|
|
11145
|
+
children.forEach((child, index) => {
|
|
11146
|
+
if (child === null || child === false) {
|
|
11147
|
+
return;
|
|
11148
|
+
}
|
|
11149
|
+
const isSeparator = isMenuSeparator(child);
|
|
11150
|
+
if (currentContext.effectiveIndex === 0 && isSeparator) {
|
|
11151
|
+
return;
|
|
11152
|
+
}
|
|
11153
|
+
if (isSeparator && index === children.length - 1) {
|
|
11154
|
+
return;
|
|
11155
|
+
}
|
|
11156
|
+
if (isSeparator && currentContext.lastChildWasSeparator) {
|
|
11157
|
+
return;
|
|
11158
|
+
}
|
|
11159
|
+
if (isSubgroup(child)) {
|
|
11160
|
+
child = {
|
|
11161
|
+
...child,
|
|
11162
|
+
props: {
|
|
11163
|
+
...child.props,
|
|
11164
|
+
children: filterMenuSeparators(child.props.children, currentContext)
|
|
11165
|
+
}
|
|
11166
|
+
};
|
|
11167
|
+
filteredList.push(child);
|
|
11168
|
+
return;
|
|
11169
|
+
}
|
|
11170
|
+
currentContext.effectiveIndex++;
|
|
11171
|
+
currentContext.lastChildWasSeparator = isSeparator;
|
|
11172
|
+
filteredList.push(child);
|
|
11173
|
+
});
|
|
11174
|
+
return filteredList;
|
|
11175
|
+
}
|
|
11176
|
+
function isSubgroup(child) {
|
|
11177
|
+
return isValidElement(child) && (child.type === React6.Fragment || child.type === MenuGroup);
|
|
11178
|
+
}
|
|
11179
|
+
function isMenuSeparator(child) {
|
|
11180
|
+
return isValidElement(child) && child.type === MenuItemSeparator;
|
|
11181
|
+
}
|
|
11182
|
+
|
|
11183
|
+
// src/components/Menu/Menu.styles.ts
|
|
11184
|
+
import { css as css22 } from "@emotion/react";
|
|
11185
|
+
var menu = css22`
|
|
11186
|
+
box-shadow: var(--shadow-base);
|
|
11187
|
+
border-radius: var(--rounded-base);
|
|
11188
|
+
background: var(--gray-50);
|
|
11189
|
+
display: flex;
|
|
11190
|
+
flex-direction: column;
|
|
11191
|
+
padding: var(--spacing-sm);
|
|
11192
|
+
outline: none;
|
|
11193
|
+
overflow: hidden;
|
|
11194
|
+
position: relative;
|
|
11195
|
+
z-index: var(--z-50);
|
|
11196
|
+
`;
|
|
11197
|
+
|
|
11198
|
+
// src/components/Menu/Menu.tsx
|
|
11199
|
+
import { jsx as jsx23, jsxs as jsxs12 } from "@emotion/react/jsx-runtime";
|
|
11200
|
+
var MenuContext = React7.createContext({});
|
|
11201
|
+
var useMenuContext = () => {
|
|
11202
|
+
return React7.useContext(MenuContext);
|
|
11203
|
+
};
|
|
11204
|
+
var Menu = ({
|
|
11205
|
+
menuLabel,
|
|
11206
|
+
menuTrigger,
|
|
11207
|
+
placement = "auto",
|
|
11208
|
+
menuItemsContainerCssClasses,
|
|
11209
|
+
children,
|
|
11210
|
+
forceVisible,
|
|
11211
|
+
disableAutoSeparatorManagement
|
|
11212
|
+
}) => {
|
|
11213
|
+
const menuState = useMenuState({ placement, visible: forceVisible });
|
|
11214
|
+
React7.useEffect(() => {
|
|
11215
|
+
if (forceVisible !== void 0) {
|
|
11216
|
+
menuState.setVisible(forceVisible);
|
|
11217
|
+
}
|
|
11218
|
+
});
|
|
11219
|
+
return /* @__PURE__ */ jsxs12(MenuContext.Provider, { value: menuState, children: [
|
|
11220
|
+
/* @__PURE__ */ jsx23(MenuButton, { ...menuState, ref: menuTrigger.ref, ...menuTrigger.props, children: (triggerProps) => React7.cloneElement(menuTrigger, triggerProps) }),
|
|
11221
|
+
/* @__PURE__ */ jsx23(Portal, { children: /* @__PURE__ */ jsx23(
|
|
11222
|
+
BaseMenu,
|
|
11223
|
+
{
|
|
11224
|
+
...menuState,
|
|
11225
|
+
"aria-label": menuLabel,
|
|
11226
|
+
css: [
|
|
11227
|
+
menu,
|
|
11228
|
+
typeof menuItemsContainerCssClasses === "object" ? menuItemsContainerCssClasses : void 0
|
|
11229
|
+
],
|
|
11230
|
+
className: typeof menuItemsContainerCssClasses === "string" ? menuItemsContainerCssClasses : "",
|
|
11231
|
+
children: disableAutoSeparatorManagement ? children : filterMenuSeparators(children)
|
|
11232
|
+
}
|
|
11233
|
+
) })
|
|
11234
|
+
] });
|
|
11235
|
+
};
|
|
11236
|
+
|
|
11111
11237
|
// src/components/Menu/MenuItem.tsx
|
|
11112
|
-
import
|
|
11113
|
-
|
|
11238
|
+
import * as React8 from "react";
|
|
11239
|
+
import { MenuItem as BaseMenuItem } from "reakit";
|
|
11240
|
+
import { jsx as jsx24, jsxs as jsxs13 } from "@emotion/react/jsx-runtime";
|
|
11241
|
+
var MenuItem = React8.forwardRef(
|
|
11114
11242
|
({ children, className, hideMenuOnClick = true, icon, textColor = "base", ...props }, ref) => {
|
|
11115
11243
|
const menuState = useMenuContext();
|
|
11116
11244
|
const resolveProps = (originalProps) => {
|
|
@@ -11126,7 +11254,7 @@ var MenuItem = React7.forwardRef(
|
|
|
11126
11254
|
};
|
|
11127
11255
|
const resolvedProps = hideMenuOnClick ? resolveProps(props) : props;
|
|
11128
11256
|
const resolvedChildren = typeof children === "function" ? children(resolvedProps) : children;
|
|
11129
|
-
return /* @__PURE__ */
|
|
11257
|
+
return /* @__PURE__ */ jsx24(
|
|
11130
11258
|
BaseMenuItem,
|
|
11131
11259
|
{
|
|
11132
11260
|
ref,
|
|
@@ -11149,10 +11277,6 @@ function renderWithIcon(children, icon) {
|
|
|
11149
11277
|
] });
|
|
11150
11278
|
}
|
|
11151
11279
|
|
|
11152
|
-
// src/components/Menu/MenuItemSeparator.tsx
|
|
11153
|
-
import { jsx as jsx24 } from "@emotion/react/jsx-runtime";
|
|
11154
|
-
var MenuItemSeparator = () => /* @__PURE__ */ jsx24("hr", { css: menuItemSeparator });
|
|
11155
|
-
|
|
11156
11280
|
// src/components/ButtonWithMenu/ButtonWithMenu.styles.ts
|
|
11157
11281
|
import { css as css23 } from "@emotion/react";
|
|
11158
11282
|
var ButtonWithMenuContainer = css23`
|
|
@@ -12233,7 +12357,7 @@ var DashedBox = ({
|
|
|
12233
12357
|
};
|
|
12234
12358
|
|
|
12235
12359
|
// src/components/Details/Details.tsx
|
|
12236
|
-
import * as
|
|
12360
|
+
import * as React9 from "react";
|
|
12237
12361
|
|
|
12238
12362
|
// src/components/Details/Details.styles.ts
|
|
12239
12363
|
import { css as css38 } from "@emotion/react";
|
|
@@ -12273,9 +12397,9 @@ var summaryIconVisiblyHidden = css38`
|
|
|
12273
12397
|
// src/components/Details/Details.tsx
|
|
12274
12398
|
import { jsx as jsx38, jsxs as jsxs21 } from "@emotion/react/jsx-runtime";
|
|
12275
12399
|
var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props }) => {
|
|
12276
|
-
const detailsRef =
|
|
12277
|
-
const [open, setOpen] =
|
|
12278
|
-
|
|
12400
|
+
const detailsRef = React9.useRef(null);
|
|
12401
|
+
const [open, setOpen] = React9.useState(isOpenByDefault);
|
|
12402
|
+
React9.useEffect(() => {
|
|
12279
12403
|
var _a;
|
|
12280
12404
|
if (!detailsRef) {
|
|
12281
12405
|
return;
|
|
@@ -12309,7 +12433,7 @@ var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props
|
|
|
12309
12433
|
};
|
|
12310
12434
|
|
|
12311
12435
|
// src/components/Drawer/Drawer.tsx
|
|
12312
|
-
import
|
|
12436
|
+
import React12, { useEffect as useEffect6, useMemo, useRef as useRef2 } from "react";
|
|
12313
12437
|
import { CgChevronRight } from "react-icons/cg";
|
|
12314
12438
|
|
|
12315
12439
|
// src/components/Drawer/Drawer.styles.ts
|
|
@@ -12522,7 +12646,7 @@ var DrawerWrapper = ({
|
|
|
12522
12646
|
// src/components/Drawer/Drawer.tsx
|
|
12523
12647
|
import { jsx as jsx41, jsxs as jsxs23 } from "@emotion/react/jsx-runtime";
|
|
12524
12648
|
var defaultSackId = "_default";
|
|
12525
|
-
var Drawer =
|
|
12649
|
+
var Drawer = React12.forwardRef(
|
|
12526
12650
|
({ width, minWidth, maxWidth, position, ...drawerProps }, ref) => {
|
|
12527
12651
|
const drawerRendererProps = { width, minWidth, maxWidth, position };
|
|
12528
12652
|
const { stackId: inheritedStackId } = useCurrentDrawerRenderer();
|
|
@@ -12732,7 +12856,7 @@ var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
|
12732
12856
|
};
|
|
12733
12857
|
|
|
12734
12858
|
// src/components/Input/Fieldset.tsx
|
|
12735
|
-
import * as
|
|
12859
|
+
import * as React13 from "react";
|
|
12736
12860
|
|
|
12737
12861
|
// src/components/Input/styles/Fieldset.styles.ts
|
|
12738
12862
|
import { css as css43 } from "@emotion/react";
|
|
@@ -12776,7 +12900,7 @@ var fieldsetBody = css43`
|
|
|
12776
12900
|
|
|
12777
12901
|
// src/components/Input/Fieldset.tsx
|
|
12778
12902
|
import { jsx as jsx45, jsxs as jsxs26 } from "@emotion/react/jsx-runtime";
|
|
12779
|
-
var Fieldset =
|
|
12903
|
+
var Fieldset = React13.forwardRef(
|
|
12780
12904
|
({ legend, disabled, children, invert, ...props }, ref) => {
|
|
12781
12905
|
return /* @__PURE__ */ jsxs26("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
|
|
12782
12906
|
legend,
|
|
@@ -12813,7 +12937,7 @@ var InfoMessage = ({ message, testId, ...props }) => {
|
|
|
12813
12937
|
};
|
|
12814
12938
|
|
|
12815
12939
|
// src/components/Input/Input.tsx
|
|
12816
|
-
import * as
|
|
12940
|
+
import * as React14 from "react";
|
|
12817
12941
|
|
|
12818
12942
|
// src/components/Input/Label.tsx
|
|
12819
12943
|
import { jsx as jsx47 } from "@emotion/react/jsx-runtime";
|
|
@@ -12856,7 +12980,7 @@ var WarningMessage = ({ message, testId, ...props }) => {
|
|
|
12856
12980
|
|
|
12857
12981
|
// src/components/Input/Input.tsx
|
|
12858
12982
|
import { jsx as jsx49, jsxs as jsxs29 } from "@emotion/react/jsx-runtime";
|
|
12859
|
-
var Input =
|
|
12983
|
+
var Input = React14.forwardRef(
|
|
12860
12984
|
({
|
|
12861
12985
|
label,
|
|
12862
12986
|
icon,
|
|
@@ -13294,9 +13418,9 @@ var InputSelect = ({
|
|
|
13294
13418
|
};
|
|
13295
13419
|
|
|
13296
13420
|
// src/components/Input/InputToggle.tsx
|
|
13297
|
-
import * as
|
|
13421
|
+
import * as React15 from "react";
|
|
13298
13422
|
import { jsx as jsx54, jsxs as jsxs32 } from "@emotion/react/jsx-runtime";
|
|
13299
|
-
var InputToggle =
|
|
13423
|
+
var InputToggle = React15.forwardRef(
|
|
13300
13424
|
({
|
|
13301
13425
|
label,
|
|
13302
13426
|
type,
|
|
@@ -13310,26 +13434,33 @@ var InputToggle = React14.forwardRef(
|
|
|
13310
13434
|
fontWeight = "medium",
|
|
13311
13435
|
...props
|
|
13312
13436
|
}, ref) => {
|
|
13313
|
-
return /* @__PURE__ */ jsxs32(
|
|
13314
|
-
|
|
13315
|
-
|
|
13316
|
-
|
|
13317
|
-
|
|
13318
|
-
|
|
13319
|
-
|
|
13320
|
-
|
|
13321
|
-
|
|
13322
|
-
|
|
13323
|
-
|
|
13324
|
-
|
|
13325
|
-
|
|
13326
|
-
|
|
13327
|
-
|
|
13328
|
-
|
|
13329
|
-
|
|
13330
|
-
|
|
13331
|
-
|
|
13332
|
-
|
|
13437
|
+
return /* @__PURE__ */ jsxs32(
|
|
13438
|
+
Label,
|
|
13439
|
+
{
|
|
13440
|
+
css: [inputToggleLabel, disabled ? inputDisabled : void 0],
|
|
13441
|
+
"data-test-id": testId ? testId : "input-toggle",
|
|
13442
|
+
children: [
|
|
13443
|
+
/* @__PURE__ */ jsx54(
|
|
13444
|
+
"input",
|
|
13445
|
+
{
|
|
13446
|
+
ref,
|
|
13447
|
+
type,
|
|
13448
|
+
css: toggleInput,
|
|
13449
|
+
checked,
|
|
13450
|
+
name,
|
|
13451
|
+
disabled,
|
|
13452
|
+
...props
|
|
13453
|
+
}
|
|
13454
|
+
),
|
|
13455
|
+
/* @__PURE__ */ jsx54("span", { css: inlineLabel(fontWeight), children: label }),
|
|
13456
|
+
caption || errorMessage ? /* @__PURE__ */ jsxs32("span", { css: inputToggleMessageContainer, children: [
|
|
13457
|
+
caption ? /* @__PURE__ */ jsx54(Caption, { children: caption }) : null,
|
|
13458
|
+
errorMessage ? /* @__PURE__ */ jsx54(ErrorMessage, { message: errorMessage }) : null,
|
|
13459
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ jsx54(WarningMessage, { message: warningMessage }) : null
|
|
13460
|
+
] }) : null
|
|
13461
|
+
]
|
|
13462
|
+
}
|
|
13463
|
+
);
|
|
13333
13464
|
}
|
|
13334
13465
|
);
|
|
13335
13466
|
|
|
@@ -14392,57 +14523,116 @@ var IntegrationTile = ({
|
|
|
14392
14523
|
);
|
|
14393
14524
|
};
|
|
14394
14525
|
|
|
14395
|
-
// src/components/Tiles/styles/
|
|
14526
|
+
// src/components/Tiles/styles/Tile.styles.ts
|
|
14396
14527
|
import { css as css61 } from "@emotion/react";
|
|
14397
|
-
var
|
|
14398
|
-
background: var(--
|
|
14528
|
+
var Tile = css61`
|
|
14529
|
+
background: var(--white);
|
|
14530
|
+
border: none;
|
|
14531
|
+
cursor: pointer;
|
|
14532
|
+
outline: 1px solid var(--gray-300);
|
|
14533
|
+
display: grid;
|
|
14399
14534
|
padding: var(--spacing-base);
|
|
14400
|
-
|
|
14535
|
+
place-items: center;
|
|
14536
|
+
place-content: flex-start center;
|
|
14537
|
+
gap: var(--spacing-sm);
|
|
14538
|
+
transition: background-color var(--duration-fast) var(--timing-ease-out);
|
|
14539
|
+
min-height: 128px;
|
|
14540
|
+
|
|
14541
|
+
&:hover,
|
|
14542
|
+
&:focus {
|
|
14543
|
+
background: var(--gray-50);
|
|
14544
|
+
}
|
|
14401
14545
|
`;
|
|
14402
|
-
|
|
14546
|
+
|
|
14547
|
+
// src/components/Tiles/Tile.tsx
|
|
14548
|
+
import { jsx as jsx74 } from "@emotion/react/jsx-runtime";
|
|
14549
|
+
var Tile2 = ({ children, ...props }) => {
|
|
14550
|
+
return /* @__PURE__ */ jsx74("button", { type: "button", css: Tile, ...props, children });
|
|
14551
|
+
};
|
|
14552
|
+
|
|
14553
|
+
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
14554
|
+
import { css as css62 } from "@emotion/react";
|
|
14555
|
+
var TileContainerWrapper = (theme, padding) => css62`
|
|
14556
|
+
background: ${theme};
|
|
14557
|
+
padding: ${padding != "none" ? `var(--spacing-${padding})` : "0"};
|
|
14558
|
+
`;
|
|
14559
|
+
var TileContainerInner = (gap, templateColumns) => css62`
|
|
14403
14560
|
display: grid;
|
|
14404
|
-
grid-template-columns:
|
|
14405
|
-
gap: var(--spacing
|
|
14561
|
+
grid-template-columns: ${templateColumns};
|
|
14562
|
+
gap: var(--spacing-${gap});
|
|
14406
14563
|
`;
|
|
14407
14564
|
|
|
14408
14565
|
// src/components/Tiles/TileContainer.tsx
|
|
14409
|
-
import { jsx as
|
|
14410
|
-
var TileContainer = ({
|
|
14411
|
-
|
|
14566
|
+
import { jsx as jsx75 } from "@emotion/react/jsx-runtime";
|
|
14567
|
+
var TileContainer = ({
|
|
14568
|
+
bgColor = "var(--brand-secondary-2)",
|
|
14569
|
+
containerPadding = "base",
|
|
14570
|
+
gap = "base",
|
|
14571
|
+
gridTemplateColumns = "repeat(auto-fill, minmax(13rem, 1fr))",
|
|
14572
|
+
children,
|
|
14573
|
+
...props
|
|
14574
|
+
}) => {
|
|
14575
|
+
return /* @__PURE__ */ jsx75("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ jsx75("div", { css: TileContainerInner(gap, gridTemplateColumns), children }) });
|
|
14576
|
+
};
|
|
14577
|
+
|
|
14578
|
+
// src/components/Tiles/styles/TileText.styles.ts
|
|
14579
|
+
import { css as css63 } from "@emotion/react";
|
|
14580
|
+
var TileHeading = css63`
|
|
14581
|
+
font-size: var(--fs-base);
|
|
14582
|
+
`;
|
|
14583
|
+
var TileText = css63`
|
|
14584
|
+
color: var(--gray-500);
|
|
14585
|
+
font-size: var(--fs-sm);
|
|
14586
|
+
line-height: 1.2;
|
|
14587
|
+
`;
|
|
14588
|
+
|
|
14589
|
+
// src/components/Tiles/TileText.tsx
|
|
14590
|
+
import { jsx as jsx76 } from "@emotion/react/jsx-runtime";
|
|
14591
|
+
var TileText2 = ({ as = "heading", children, ...props }) => {
|
|
14592
|
+
const isHeading = as === "heading";
|
|
14593
|
+
return /* @__PURE__ */ jsx76(
|
|
14594
|
+
"span",
|
|
14595
|
+
{
|
|
14596
|
+
role: isHeading ? "heading" : void 0,
|
|
14597
|
+
css: isHeading ? TileHeading : TileText,
|
|
14598
|
+
...props,
|
|
14599
|
+
children
|
|
14600
|
+
}
|
|
14601
|
+
);
|
|
14412
14602
|
};
|
|
14413
14603
|
|
|
14414
14604
|
// src/components/Modal/IntegrationModalHeader.styles.ts
|
|
14415
|
-
import { css as
|
|
14416
|
-
var IntegrationModalHeaderSVGBackground =
|
|
14605
|
+
import { css as css64 } from "@emotion/react";
|
|
14606
|
+
var IntegrationModalHeaderSVGBackground = css64`
|
|
14417
14607
|
position: absolute;
|
|
14418
14608
|
top: 0;
|
|
14419
14609
|
left: 0;
|
|
14420
14610
|
`;
|
|
14421
|
-
var IntegrationModalHeaderGroup =
|
|
14611
|
+
var IntegrationModalHeaderGroup = css64`
|
|
14422
14612
|
align-items: center;
|
|
14423
14613
|
display: flex;
|
|
14424
14614
|
gap: var(--spacing-sm);
|
|
14425
14615
|
margin: 0 0 var(--spacing-md);
|
|
14426
14616
|
position: relative;
|
|
14427
14617
|
`;
|
|
14428
|
-
var IntegrationModalHeaderTitleGroup =
|
|
14618
|
+
var IntegrationModalHeaderTitleGroup = css64`
|
|
14429
14619
|
align-items: center;
|
|
14430
14620
|
display: flex;
|
|
14431
14621
|
gap: var(--spacing-base);
|
|
14432
14622
|
`;
|
|
14433
|
-
var IntegrationModalHeaderTitle =
|
|
14623
|
+
var IntegrationModalHeaderTitle = css64`
|
|
14434
14624
|
margin-top: 0;
|
|
14435
14625
|
`;
|
|
14436
|
-
var IntegrationModalHeaderMenuPlacement =
|
|
14626
|
+
var IntegrationModalHeaderMenuPlacement = css64`
|
|
14437
14627
|
margin-bottom: var(--spacing-base);
|
|
14438
14628
|
`;
|
|
14439
|
-
var IntegrationModalHeaderContentWrapper =
|
|
14629
|
+
var IntegrationModalHeaderContentWrapper = css64`
|
|
14440
14630
|
position: relative;
|
|
14441
14631
|
z-index: var(--z-10);
|
|
14442
14632
|
`;
|
|
14443
14633
|
|
|
14444
14634
|
// src/components/Modal/IntegrationModalHeader.tsx
|
|
14445
|
-
import { Fragment as Fragment9, jsx as
|
|
14635
|
+
import { Fragment as Fragment9, jsx as jsx77, jsxs as jsxs49 } from "@emotion/react/jsx-runtime";
|
|
14446
14636
|
var HexModalBackground = ({ ...props }) => {
|
|
14447
14637
|
return /* @__PURE__ */ jsxs49(
|
|
14448
14638
|
"svg",
|
|
@@ -14454,7 +14644,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14454
14644
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14455
14645
|
...props,
|
|
14456
14646
|
children: [
|
|
14457
|
-
/* @__PURE__ */
|
|
14647
|
+
/* @__PURE__ */ jsx77(
|
|
14458
14648
|
"path",
|
|
14459
14649
|
{
|
|
14460
14650
|
fillRule: "evenodd",
|
|
@@ -14463,7 +14653,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14463
14653
|
fill: "url(#paint0_linear_196_2737)"
|
|
14464
14654
|
}
|
|
14465
14655
|
),
|
|
14466
|
-
/* @__PURE__ */
|
|
14656
|
+
/* @__PURE__ */ jsx77("defs", { children: /* @__PURE__ */ jsxs49(
|
|
14467
14657
|
"linearGradient",
|
|
14468
14658
|
{
|
|
14469
14659
|
id: "paint0_linear_196_2737",
|
|
@@ -14473,8 +14663,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14473
14663
|
y2: "-95.2742",
|
|
14474
14664
|
gradientUnits: "userSpaceOnUse",
|
|
14475
14665
|
children: [
|
|
14476
|
-
/* @__PURE__ */
|
|
14477
|
-
/* @__PURE__ */
|
|
14666
|
+
/* @__PURE__ */ jsx77("stop", { stopColor: "#81DCDE" }),
|
|
14667
|
+
/* @__PURE__ */ jsx77("stop", { offset: "1", stopColor: "#428ED4" })
|
|
14478
14668
|
]
|
|
14479
14669
|
}
|
|
14480
14670
|
) })
|
|
@@ -14484,21 +14674,21 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14484
14674
|
};
|
|
14485
14675
|
var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
14486
14676
|
return /* @__PURE__ */ jsxs49(Fragment9, { children: [
|
|
14487
|
-
/* @__PURE__ */
|
|
14488
|
-
/* @__PURE__ */
|
|
14489
|
-
icon ? /* @__PURE__ */
|
|
14490
|
-
/* @__PURE__ */
|
|
14677
|
+
/* @__PURE__ */ jsx77(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
14678
|
+
/* @__PURE__ */ jsx77("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ jsxs49("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
14679
|
+
icon ? /* @__PURE__ */ jsx77(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
14680
|
+
/* @__PURE__ */ jsx77(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-test-id": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
14491
14681
|
menu2 ? /* @__PURE__ */ jsxs49("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
14492
14682
|
menu2,
|
|
14493
14683
|
" "
|
|
14494
14684
|
] }) : null
|
|
14495
14685
|
] }) }),
|
|
14496
|
-
/* @__PURE__ */
|
|
14686
|
+
/* @__PURE__ */ jsx77("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
14497
14687
|
] });
|
|
14498
14688
|
};
|
|
14499
14689
|
|
|
14500
14690
|
// src/components/Tooltip/Tooltip.tsx
|
|
14501
|
-
import
|
|
14691
|
+
import React17 from "react";
|
|
14502
14692
|
import {
|
|
14503
14693
|
Tooltip as ReakitTooltip,
|
|
14504
14694
|
TooltipArrow,
|
|
@@ -14507,8 +14697,8 @@ import {
|
|
|
14507
14697
|
} from "reakit/Tooltip";
|
|
14508
14698
|
|
|
14509
14699
|
// src/components/Tooltip/Tooltip.styles.ts
|
|
14510
|
-
import { css as
|
|
14511
|
-
var TooltipContainer =
|
|
14700
|
+
import { css as css65 } from "@emotion/react";
|
|
14701
|
+
var TooltipContainer = css65`
|
|
14512
14702
|
z-index: var(--z-tooltip);
|
|
14513
14703
|
border: 2px solid var(--gray-300);
|
|
14514
14704
|
border-radius: var(--rounded-base);
|
|
@@ -14517,28 +14707,28 @@ var TooltipContainer = css63`
|
|
|
14517
14707
|
font-size: var(--fs-xs);
|
|
14518
14708
|
background: var(--white);
|
|
14519
14709
|
`;
|
|
14520
|
-
var TooltipArrowStyles =
|
|
14710
|
+
var TooltipArrowStyles = css65`
|
|
14521
14711
|
svg {
|
|
14522
14712
|
fill: var(--gray-300);
|
|
14523
14713
|
}
|
|
14524
14714
|
`;
|
|
14525
14715
|
|
|
14526
14716
|
// src/components/Tooltip/Tooltip.tsx
|
|
14527
|
-
import { Fragment as Fragment10, jsx as
|
|
14717
|
+
import { Fragment as Fragment10, jsx as jsx78, jsxs as jsxs50 } from "@emotion/react/jsx-runtime";
|
|
14528
14718
|
function Tooltip({ children, title, placement = "bottom", visible, ...props }) {
|
|
14529
14719
|
const tooltip = useTooltipState({ placement });
|
|
14530
14720
|
return !title ? children : /* @__PURE__ */ jsxs50(Fragment10, { children: [
|
|
14531
|
-
/* @__PURE__ */
|
|
14721
|
+
/* @__PURE__ */ jsx78(TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => React17.cloneElement(children, referenceProps) }),
|
|
14532
14722
|
/* @__PURE__ */ jsxs50(ReakitTooltip, { ...tooltip, ...props, css: TooltipContainer, visible: visible != null ? visible : tooltip.visible, children: [
|
|
14533
|
-
/* @__PURE__ */
|
|
14723
|
+
/* @__PURE__ */ jsx78(TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
|
|
14534
14724
|
title
|
|
14535
14725
|
] })
|
|
14536
14726
|
] });
|
|
14537
14727
|
}
|
|
14538
14728
|
|
|
14539
14729
|
// src/components/ParameterInputs/styles/ParameterBindingButton.styles.ts
|
|
14540
|
-
import { css as
|
|
14541
|
-
var inputIconBtn =
|
|
14730
|
+
import { css as css66 } from "@emotion/react";
|
|
14731
|
+
var inputIconBtn = css66`
|
|
14542
14732
|
align-items: center;
|
|
14543
14733
|
border: none;
|
|
14544
14734
|
border-radius: var(--rounded-base);
|
|
@@ -14562,7 +14752,7 @@ var inputIconBtn = css64`
|
|
|
14562
14752
|
`;
|
|
14563
14753
|
|
|
14564
14754
|
// src/components/ParameterInputs/ConnectToDataElementButton.tsx
|
|
14565
|
-
import { jsx as
|
|
14755
|
+
import { jsx as jsx79, jsxs as jsxs51 } from "@emotion/react/jsx-runtime";
|
|
14566
14756
|
var ConnectToDataElementButton = ({
|
|
14567
14757
|
icon,
|
|
14568
14758
|
iconColor,
|
|
@@ -14572,7 +14762,7 @@ var ConnectToDataElementButton = ({
|
|
|
14572
14762
|
...props
|
|
14573
14763
|
}) => {
|
|
14574
14764
|
const title = isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
14575
|
-
return /* @__PURE__ */
|
|
14765
|
+
return /* @__PURE__ */ jsx79(Tooltip, { title, children: /* @__PURE__ */ jsxs51(
|
|
14576
14766
|
"button",
|
|
14577
14767
|
{
|
|
14578
14768
|
css: inputIconBtn,
|
|
@@ -14581,7 +14771,7 @@ var ConnectToDataElementButton = ({
|
|
|
14581
14771
|
"aria-disabled": isLocked,
|
|
14582
14772
|
...props,
|
|
14583
14773
|
children: [
|
|
14584
|
-
/* @__PURE__ */
|
|
14774
|
+
/* @__PURE__ */ jsx79(
|
|
14585
14775
|
Icon,
|
|
14586
14776
|
{
|
|
14587
14777
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -14617,8 +14807,8 @@ var useParameterShell = () => {
|
|
|
14617
14807
|
};
|
|
14618
14808
|
|
|
14619
14809
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
14620
|
-
import { css as
|
|
14621
|
-
var inputContainer2 =
|
|
14810
|
+
import { css as css67 } from "@emotion/react";
|
|
14811
|
+
var inputContainer2 = css67`
|
|
14622
14812
|
position: relative;
|
|
14623
14813
|
|
|
14624
14814
|
&:hover,
|
|
@@ -14630,14 +14820,14 @@ var inputContainer2 = css65`
|
|
|
14630
14820
|
}
|
|
14631
14821
|
}
|
|
14632
14822
|
`;
|
|
14633
|
-
var labelText2 =
|
|
14823
|
+
var labelText2 = css67`
|
|
14634
14824
|
align-items: center;
|
|
14635
14825
|
display: flex;
|
|
14636
14826
|
gap: var(--spacing-xs);
|
|
14637
14827
|
font-weight: var(--fw-regular);
|
|
14638
14828
|
margin: 0 0 var(--spacing-xs);
|
|
14639
14829
|
`;
|
|
14640
|
-
var input2 =
|
|
14830
|
+
var input2 = css67`
|
|
14641
14831
|
display: block;
|
|
14642
14832
|
appearance: none;
|
|
14643
14833
|
box-sizing: border-box;
|
|
@@ -14681,18 +14871,18 @@ var input2 = css65`
|
|
|
14681
14871
|
color: var(--gray-400);
|
|
14682
14872
|
}
|
|
14683
14873
|
`;
|
|
14684
|
-
var selectInput =
|
|
14874
|
+
var selectInput = css67`
|
|
14685
14875
|
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");
|
|
14686
14876
|
background-position: right var(--spacing-sm) center;
|
|
14687
14877
|
background-repeat: no-repeat;
|
|
14688
14878
|
background-size: 1rem;
|
|
14689
14879
|
padding-right: var(--spacing-xl);
|
|
14690
14880
|
`;
|
|
14691
|
-
var inputWrapper =
|
|
14881
|
+
var inputWrapper = css67`
|
|
14692
14882
|
display: flex; // used to correct overflow with chrome textarea
|
|
14693
14883
|
position: relative;
|
|
14694
14884
|
`;
|
|
14695
|
-
var inputIcon2 =
|
|
14885
|
+
var inputIcon2 = css67`
|
|
14696
14886
|
align-items: center;
|
|
14697
14887
|
background: var(--white);
|
|
14698
14888
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -14708,7 +14898,7 @@ var inputIcon2 = css65`
|
|
|
14708
14898
|
width: var(--spacing-lg);
|
|
14709
14899
|
z-index: var(--z-10);
|
|
14710
14900
|
`;
|
|
14711
|
-
var inputToggleLabel2 =
|
|
14901
|
+
var inputToggleLabel2 = css67`
|
|
14712
14902
|
align-items: center;
|
|
14713
14903
|
background: var(--white);
|
|
14714
14904
|
cursor: pointer;
|
|
@@ -14719,7 +14909,7 @@ var inputToggleLabel2 = css65`
|
|
|
14719
14909
|
min-height: var(--spacing-md);
|
|
14720
14910
|
position: relative;
|
|
14721
14911
|
`;
|
|
14722
|
-
var toggleInput2 =
|
|
14912
|
+
var toggleInput2 = css67`
|
|
14723
14913
|
appearance: none;
|
|
14724
14914
|
border: 1px solid var(--gray-300);
|
|
14725
14915
|
background: var(--white);
|
|
@@ -14758,7 +14948,7 @@ var toggleInput2 = css65`
|
|
|
14758
14948
|
border-color: var(--gray-300);
|
|
14759
14949
|
}
|
|
14760
14950
|
`;
|
|
14761
|
-
var inlineLabel2 =
|
|
14951
|
+
var inlineLabel2 = css67`
|
|
14762
14952
|
padding-left: var(--spacing-lg);
|
|
14763
14953
|
font-size: var(--fs-sm);
|
|
14764
14954
|
font-weight: var(--fw-regular);
|
|
@@ -14774,7 +14964,7 @@ var inlineLabel2 = css65`
|
|
|
14774
14964
|
}
|
|
14775
14965
|
}
|
|
14776
14966
|
`;
|
|
14777
|
-
var inputMenu =
|
|
14967
|
+
var inputMenu = css67`
|
|
14778
14968
|
background: none;
|
|
14779
14969
|
border: none;
|
|
14780
14970
|
padding: var(--spacing-2xs);
|
|
@@ -14790,14 +14980,14 @@ var inputMenu = css65`
|
|
|
14790
14980
|
background-color: var(--gray-200);
|
|
14791
14981
|
}
|
|
14792
14982
|
`;
|
|
14793
|
-
var textarea2 =
|
|
14983
|
+
var textarea2 = css67`
|
|
14794
14984
|
resize: vertical;
|
|
14795
14985
|
min-height: 2rem;
|
|
14796
14986
|
`;
|
|
14797
|
-
var imageWrapper =
|
|
14987
|
+
var imageWrapper = css67`
|
|
14798
14988
|
background: var(--white);
|
|
14799
14989
|
`;
|
|
14800
|
-
var img =
|
|
14990
|
+
var img = css67`
|
|
14801
14991
|
animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
14802
14992
|
object-fit: contain;
|
|
14803
14993
|
max-width: 100%;
|
|
@@ -14805,7 +14995,7 @@ var img = css65`
|
|
|
14805
14995
|
opacity: var(--opacity-0);
|
|
14806
14996
|
margin: var(--spacing-sm) auto 0;
|
|
14807
14997
|
`;
|
|
14808
|
-
var dataConnectButton =
|
|
14998
|
+
var dataConnectButton = css67`
|
|
14809
14999
|
align-items: center;
|
|
14810
15000
|
appearance: none;
|
|
14811
15001
|
box-sizing: border-box;
|
|
@@ -14840,7 +15030,7 @@ var dataConnectButton = css65`
|
|
|
14840
15030
|
pointer-events: none;
|
|
14841
15031
|
}
|
|
14842
15032
|
`;
|
|
14843
|
-
var linkParameterBtn =
|
|
15033
|
+
var linkParameterBtn = css67`
|
|
14844
15034
|
border-radius: var(--rounded-base);
|
|
14845
15035
|
background: var(--white);
|
|
14846
15036
|
border: none;
|
|
@@ -14849,7 +15039,7 @@ var linkParameterBtn = css65`
|
|
|
14849
15039
|
font-size: var(--fs-sm);
|
|
14850
15040
|
line-height: 1;
|
|
14851
15041
|
`;
|
|
14852
|
-
var linkParameterControls =
|
|
15042
|
+
var linkParameterControls = css67`
|
|
14853
15043
|
position: absolute;
|
|
14854
15044
|
inset: 0 0 0 auto;
|
|
14855
15045
|
padding: 0 var(--spacing-base);
|
|
@@ -14858,13 +15048,13 @@ var linkParameterControls = css65`
|
|
|
14858
15048
|
justify-content: center;
|
|
14859
15049
|
gap: var(--spacing-base);
|
|
14860
15050
|
`;
|
|
14861
|
-
var linkParameterInput = (withExternalLinkIcon) =>
|
|
15051
|
+
var linkParameterInput = (withExternalLinkIcon) => css67`
|
|
14862
15052
|
padding-right: calc(
|
|
14863
15053
|
${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
|
|
14864
15054
|
var(--spacing-base)
|
|
14865
15055
|
);
|
|
14866
15056
|
`;
|
|
14867
|
-
var linkParameterIcon =
|
|
15057
|
+
var linkParameterIcon = css67`
|
|
14868
15058
|
align-items: center;
|
|
14869
15059
|
color: var(--brand-secondary-3);
|
|
14870
15060
|
display: flex;
|
|
@@ -14879,7 +15069,7 @@ var linkParameterIcon = css65`
|
|
|
14879
15069
|
`;
|
|
14880
15070
|
|
|
14881
15071
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
14882
|
-
import { jsx as
|
|
15072
|
+
import { jsx as jsx80, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
|
|
14883
15073
|
function ParameterDataResource({
|
|
14884
15074
|
label,
|
|
14885
15075
|
labelLeadingIcon,
|
|
@@ -14903,30 +15093,30 @@ function ParameterDataResource({
|
|
|
14903
15093
|
disabled,
|
|
14904
15094
|
onClick: onConnectDatasource,
|
|
14905
15095
|
children: [
|
|
14906
|
-
/* @__PURE__ */
|
|
15096
|
+
/* @__PURE__ */ jsx80("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx80(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
14907
15097
|
children
|
|
14908
15098
|
]
|
|
14909
15099
|
}
|
|
14910
15100
|
),
|
|
14911
|
-
caption ? /* @__PURE__ */
|
|
15101
|
+
caption ? /* @__PURE__ */ jsx80(Caption, { children: caption }) : null
|
|
14912
15102
|
] });
|
|
14913
15103
|
}
|
|
14914
15104
|
|
|
14915
15105
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
14916
|
-
import { css as
|
|
14917
|
-
var ParameterDrawerHeaderContainer =
|
|
15106
|
+
import { css as css68 } from "@emotion/react";
|
|
15107
|
+
var ParameterDrawerHeaderContainer = css68`
|
|
14918
15108
|
align-items: center;
|
|
14919
15109
|
display: flex;
|
|
14920
15110
|
gap: var(--spacing-base);
|
|
14921
15111
|
justify-content: space-between;
|
|
14922
15112
|
margin-bottom: var(--spacing-sm);
|
|
14923
15113
|
`;
|
|
14924
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
15114
|
+
var ParameterDrawerHeaderTitleGroup = css68`
|
|
14925
15115
|
align-items: center;
|
|
14926
15116
|
display: flex;
|
|
14927
15117
|
gap: var(--spacing-sm);
|
|
14928
15118
|
`;
|
|
14929
|
-
var ParameterDrawerHeaderTitle =
|
|
15119
|
+
var ParameterDrawerHeaderTitle = css68`
|
|
14930
15120
|
text-overflow: ellipsis;
|
|
14931
15121
|
white-space: nowrap;
|
|
14932
15122
|
overflow: hidden;
|
|
@@ -14934,12 +15124,12 @@ var ParameterDrawerHeaderTitle = css66`
|
|
|
14934
15124
|
`;
|
|
14935
15125
|
|
|
14936
15126
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
14937
|
-
import { jsx as
|
|
15127
|
+
import { jsx as jsx81, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
14938
15128
|
var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
14939
15129
|
return /* @__PURE__ */ jsxs53("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
14940
15130
|
/* @__PURE__ */ jsxs53("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
14941
15131
|
iconBeforeTitle,
|
|
14942
|
-
/* @__PURE__ */
|
|
15132
|
+
/* @__PURE__ */ jsx81(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
|
|
14943
15133
|
] }),
|
|
14944
15134
|
children
|
|
14945
15135
|
] });
|
|
@@ -14949,8 +15139,8 @@ var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
|
14949
15139
|
import { forwardRef as forwardRef8 } from "react";
|
|
14950
15140
|
|
|
14951
15141
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
14952
|
-
import { css as
|
|
14953
|
-
var fieldsetStyles =
|
|
15142
|
+
import { css as css69 } from "@emotion/react";
|
|
15143
|
+
var fieldsetStyles = css69`
|
|
14954
15144
|
&:disabled,
|
|
14955
15145
|
[readonly] {
|
|
14956
15146
|
pointer-events: none;
|
|
@@ -14961,7 +15151,7 @@ var fieldsetStyles = css67`
|
|
|
14961
15151
|
}
|
|
14962
15152
|
}
|
|
14963
15153
|
`;
|
|
14964
|
-
var fieldsetLegend2 =
|
|
15154
|
+
var fieldsetLegend2 = css69`
|
|
14965
15155
|
display: block;
|
|
14966
15156
|
font-weight: var(--fw-medium);
|
|
14967
15157
|
margin-bottom: var(--spacing-sm);
|
|
@@ -14969,11 +15159,11 @@ var fieldsetLegend2 = css67`
|
|
|
14969
15159
|
`;
|
|
14970
15160
|
|
|
14971
15161
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
14972
|
-
import { jsx as
|
|
15162
|
+
import { jsx as jsx82, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
14973
15163
|
var ParameterGroup = forwardRef8(
|
|
14974
15164
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
14975
15165
|
return /* @__PURE__ */ jsxs54("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
14976
|
-
/* @__PURE__ */
|
|
15166
|
+
/* @__PURE__ */ jsx82("legend", { css: fieldsetLegend2, children: legend }),
|
|
14977
15167
|
children
|
|
14978
15168
|
] });
|
|
14979
15169
|
}
|
|
@@ -14986,21 +15176,21 @@ import { forwardRef as forwardRef10, useCallback as useCallback3, useDeferredVal
|
|
|
14986
15176
|
import { useState as useState7 } from "react";
|
|
14987
15177
|
|
|
14988
15178
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
14989
|
-
import { jsx as
|
|
15179
|
+
import { jsx as jsx83 } from "@emotion/react/jsx-runtime";
|
|
14990
15180
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
14991
|
-
return !asSpan ? /* @__PURE__ */
|
|
15181
|
+
return !asSpan ? /* @__PURE__ */ jsx83("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx83("span", { "aria-labelledby": id, css: labelText2, children });
|
|
14992
15182
|
};
|
|
14993
15183
|
|
|
14994
15184
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
14995
15185
|
import { forwardRef as forwardRef9 } from "react";
|
|
14996
|
-
import { jsx as
|
|
15186
|
+
import { jsx as jsx84 } from "@emotion/react/jsx-runtime";
|
|
14997
15187
|
var ParameterMenuButton = forwardRef9(
|
|
14998
15188
|
({ label, children }, ref) => {
|
|
14999
|
-
return /* @__PURE__ */
|
|
15189
|
+
return /* @__PURE__ */ jsx84(
|
|
15000
15190
|
Menu,
|
|
15001
15191
|
{
|
|
15002
15192
|
menuLabel: `${label} menu`,
|
|
15003
|
-
menuTrigger: /* @__PURE__ */
|
|
15193
|
+
menuTrigger: /* @__PURE__ */ jsx84(
|
|
15004
15194
|
"button",
|
|
15005
15195
|
{
|
|
15006
15196
|
className: "parameter-menu",
|
|
@@ -15008,7 +15198,7 @@ var ParameterMenuButton = forwardRef9(
|
|
|
15008
15198
|
type: "button",
|
|
15009
15199
|
"aria-label": `${label} options`,
|
|
15010
15200
|
ref,
|
|
15011
|
-
children: /* @__PURE__ */
|
|
15201
|
+
children: /* @__PURE__ */ jsx84(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
15012
15202
|
}
|
|
15013
15203
|
),
|
|
15014
15204
|
children
|
|
@@ -15018,15 +15208,15 @@ var ParameterMenuButton = forwardRef9(
|
|
|
15018
15208
|
);
|
|
15019
15209
|
|
|
15020
15210
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
15021
|
-
import { css as
|
|
15022
|
-
var emptyParameterShell =
|
|
15211
|
+
import { css as css70 } from "@emotion/react";
|
|
15212
|
+
var emptyParameterShell = css70`
|
|
15023
15213
|
border-radius: var(--rounded-sm);
|
|
15024
15214
|
background: var(--white);
|
|
15025
15215
|
flex-grow: 1;
|
|
15026
15216
|
padding: var(--spacing-xs);
|
|
15027
15217
|
position: relative;
|
|
15028
15218
|
`;
|
|
15029
|
-
var emptyParameterShellText =
|
|
15219
|
+
var emptyParameterShellText = css70`
|
|
15030
15220
|
background: var(--brand-secondary-6);
|
|
15031
15221
|
border-radius: var(--rounded-sm);
|
|
15032
15222
|
padding: var(--spacing-sm);
|
|
@@ -15034,7 +15224,7 @@ var emptyParameterShellText = css68`
|
|
|
15034
15224
|
font-size: var(--fs-sm);
|
|
15035
15225
|
margin: 0;
|
|
15036
15226
|
`;
|
|
15037
|
-
var overrideMarker =
|
|
15227
|
+
var overrideMarker = css70`
|
|
15038
15228
|
border-radius: var(--rounded-sm);
|
|
15039
15229
|
border: 10px solid var(--gray-300);
|
|
15040
15230
|
border-left-color: transparent;
|
|
@@ -15045,7 +15235,7 @@ var overrideMarker = css68`
|
|
|
15045
15235
|
`;
|
|
15046
15236
|
|
|
15047
15237
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
15048
|
-
import { jsx as
|
|
15238
|
+
import { jsx as jsx85, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
15049
15239
|
var extractParameterProps = (props) => {
|
|
15050
15240
|
const {
|
|
15051
15241
|
id,
|
|
@@ -15059,7 +15249,6 @@ var extractParameterProps = (props) => {
|
|
|
15059
15249
|
hiddenLabel,
|
|
15060
15250
|
labelLeadingIcon,
|
|
15061
15251
|
menuItems,
|
|
15062
|
-
handleManuallySetErrorMessage,
|
|
15063
15252
|
title,
|
|
15064
15253
|
hasOverriddenValue,
|
|
15065
15254
|
onResetOverriddenValue,
|
|
@@ -15078,7 +15267,6 @@ var extractParameterProps = (props) => {
|
|
|
15078
15267
|
hiddenLabel,
|
|
15079
15268
|
labelLeadingIcon,
|
|
15080
15269
|
menuItems,
|
|
15081
|
-
handleManuallySetErrorMessage,
|
|
15082
15270
|
title,
|
|
15083
15271
|
hasOverriddenValue,
|
|
15084
15272
|
onResetOverriddenValue
|
|
@@ -15117,8 +15305,8 @@ var ParameterShell = ({
|
|
|
15117
15305
|
title
|
|
15118
15306
|
] }),
|
|
15119
15307
|
/* @__PURE__ */ jsxs55("div", { css: inputWrapper, children: [
|
|
15120
|
-
menuItems ? /* @__PURE__ */
|
|
15121
|
-
/* @__PURE__ */
|
|
15308
|
+
menuItems ? /* @__PURE__ */ jsx85(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
15309
|
+
/* @__PURE__ */ jsx85(
|
|
15122
15310
|
ParameterShellContext.Provider,
|
|
15123
15311
|
{
|
|
15124
15312
|
value: {
|
|
@@ -15130,27 +15318,27 @@ var ParameterShell = ({
|
|
|
15130
15318
|
},
|
|
15131
15319
|
children: /* @__PURE__ */ jsxs55(ParameterShellPlaceholder, { children: [
|
|
15132
15320
|
children,
|
|
15133
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
15321
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx85(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
15134
15322
|
] })
|
|
15135
15323
|
}
|
|
15136
15324
|
)
|
|
15137
15325
|
] }),
|
|
15138
|
-
caption ? /* @__PURE__ */
|
|
15139
|
-
errorMessaging ? /* @__PURE__ */
|
|
15140
|
-
warningMessage ? /* @__PURE__ */
|
|
15141
|
-
infoMessage ? /* @__PURE__ */
|
|
15326
|
+
caption ? /* @__PURE__ */ jsx85(Caption, { testId: captionTestId, children: caption }) : null,
|
|
15327
|
+
errorMessaging ? /* @__PURE__ */ jsx85(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null,
|
|
15328
|
+
warningMessage ? /* @__PURE__ */ jsx85(WarningMessage, { message: warningMessage }) : null,
|
|
15329
|
+
infoMessage ? /* @__PURE__ */ jsx85(InfoMessage, { message: infoMessage }) : null
|
|
15142
15330
|
] });
|
|
15143
15331
|
};
|
|
15144
15332
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
15145
|
-
return /* @__PURE__ */
|
|
15333
|
+
return /* @__PURE__ */ jsx85("div", { css: emptyParameterShell, children });
|
|
15146
15334
|
};
|
|
15147
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
15335
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx85(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx85("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx85("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
15148
15336
|
|
|
15149
15337
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
15150
|
-
import { Fragment as Fragment11, jsx as
|
|
15338
|
+
import { Fragment as Fragment11, jsx as jsx86, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
15151
15339
|
var ParameterImage = forwardRef10((props, ref) => {
|
|
15152
15340
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
15153
|
-
return /* @__PURE__ */
|
|
15341
|
+
return /* @__PURE__ */ jsx86(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: /* @__PURE__ */ jsx86(ParameterImageInner, { ref, ...innerProps }) });
|
|
15154
15342
|
});
|
|
15155
15343
|
var BrokenImage = ({ ...props }) => {
|
|
15156
15344
|
return /* @__PURE__ */ jsxs56(
|
|
@@ -15165,11 +15353,11 @@ var BrokenImage = ({ ...props }) => {
|
|
|
15165
15353
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
15166
15354
|
...props,
|
|
15167
15355
|
children: [
|
|
15168
|
-
/* @__PURE__ */
|
|
15169
|
-
/* @__PURE__ */
|
|
15356
|
+
/* @__PURE__ */ jsx86("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
15357
|
+
/* @__PURE__ */ jsx86("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
15170
15358
|
/* @__PURE__ */ jsxs56("defs", { children: [
|
|
15171
|
-
/* @__PURE__ */
|
|
15172
|
-
/* @__PURE__ */
|
|
15359
|
+
/* @__PURE__ */ jsx86("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx86("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
15360
|
+
/* @__PURE__ */ jsx86(
|
|
15173
15361
|
"image",
|
|
15174
15362
|
{
|
|
15175
15363
|
id: "image0_761_4353",
|
|
@@ -15229,7 +15417,7 @@ var ParameterImageInner = forwardRef10(
|
|
|
15229
15417
|
updateImageSrc();
|
|
15230
15418
|
}, [deferredValue]);
|
|
15231
15419
|
return /* @__PURE__ */ jsxs56(Fragment11, { children: [
|
|
15232
|
-
/* @__PURE__ */
|
|
15420
|
+
/* @__PURE__ */ jsx86(
|
|
15233
15421
|
"input",
|
|
15234
15422
|
{
|
|
15235
15423
|
css: input2,
|
|
@@ -15242,7 +15430,7 @@ var ParameterImageInner = forwardRef10(
|
|
|
15242
15430
|
}
|
|
15243
15431
|
),
|
|
15244
15432
|
/* @__PURE__ */ jsxs56("div", { css: imageWrapper, children: [
|
|
15245
|
-
deferredValue && !errorMessage ? /* @__PURE__ */
|
|
15433
|
+
deferredValue && !errorMessage ? /* @__PURE__ */ jsx86(
|
|
15246
15434
|
"img",
|
|
15247
15435
|
{
|
|
15248
15436
|
src: deferredValue,
|
|
@@ -15253,24 +15441,24 @@ var ParameterImageInner = forwardRef10(
|
|
|
15253
15441
|
loading: "lazy"
|
|
15254
15442
|
}
|
|
15255
15443
|
) : null,
|
|
15256
|
-
deferredValue && errorMessage ? /* @__PURE__ */
|
|
15444
|
+
deferredValue && errorMessage ? /* @__PURE__ */ jsx86(BrokenImage, { css: img }) : null
|
|
15257
15445
|
] }),
|
|
15258
|
-
loading ? /* @__PURE__ */
|
|
15446
|
+
loading ? /* @__PURE__ */ jsx86(LoadingIcon, {}) : null
|
|
15259
15447
|
] });
|
|
15260
15448
|
}
|
|
15261
15449
|
);
|
|
15262
15450
|
|
|
15263
15451
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
15264
15452
|
import { forwardRef as forwardRef11 } from "react";
|
|
15265
|
-
import { jsx as
|
|
15453
|
+
import { jsx as jsx87 } from "@emotion/react/jsx-runtime";
|
|
15266
15454
|
var ParameterInput = forwardRef11((props, ref) => {
|
|
15267
15455
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
15268
|
-
return /* @__PURE__ */
|
|
15456
|
+
return /* @__PURE__ */ jsx87(ParameterShell, { "data-test-id": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx87(ParameterInputInner, { ref, ...innerProps }) });
|
|
15269
15457
|
});
|
|
15270
15458
|
var ParameterInputInner = forwardRef11(
|
|
15271
15459
|
({ ...props }, ref) => {
|
|
15272
15460
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
15273
|
-
return /* @__PURE__ */
|
|
15461
|
+
return /* @__PURE__ */ jsx87(
|
|
15274
15462
|
"input",
|
|
15275
15463
|
{
|
|
15276
15464
|
css: input2,
|
|
@@ -15287,18 +15475,18 @@ var ParameterInputInner = forwardRef11(
|
|
|
15287
15475
|
|
|
15288
15476
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
15289
15477
|
import { forwardRef as forwardRef12 } from "react";
|
|
15290
|
-
import { jsx as
|
|
15478
|
+
import { jsx as jsx88, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
15291
15479
|
var ParameterLink = forwardRef12(
|
|
15292
15480
|
({ buttonText = "Select link", disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
15293
15481
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
15294
|
-
return /* @__PURE__ */
|
|
15482
|
+
return /* @__PURE__ */ jsx88(
|
|
15295
15483
|
ParameterShell,
|
|
15296
15484
|
{
|
|
15297
15485
|
"data-test-id": "link-parameter-editor",
|
|
15298
15486
|
...shellProps,
|
|
15299
15487
|
label: innerProps.value ? shellProps.label : "",
|
|
15300
15488
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
15301
|
-
children: !innerProps.value ? /* @__PURE__ */
|
|
15489
|
+
children: !innerProps.value ? /* @__PURE__ */ jsx88("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText }) : /* @__PURE__ */ jsx88(
|
|
15302
15490
|
ParameterLinkInner,
|
|
15303
15491
|
{
|
|
15304
15492
|
onConnectLink,
|
|
@@ -15315,7 +15503,7 @@ var ParameterLinkInner = forwardRef12(
|
|
|
15315
15503
|
({ externalLink, onConnectLink, disabled, ...props }, ref) => {
|
|
15316
15504
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
15317
15505
|
return /* @__PURE__ */ jsxs57("div", { css: inputWrapper, children: [
|
|
15318
|
-
/* @__PURE__ */
|
|
15506
|
+
/* @__PURE__ */ jsx88(
|
|
15319
15507
|
"input",
|
|
15320
15508
|
{
|
|
15321
15509
|
type: "text",
|
|
@@ -15328,7 +15516,7 @@ var ParameterLinkInner = forwardRef12(
|
|
|
15328
15516
|
}
|
|
15329
15517
|
),
|
|
15330
15518
|
/* @__PURE__ */ jsxs57("div", { css: linkParameterControls, children: [
|
|
15331
|
-
/* @__PURE__ */
|
|
15519
|
+
/* @__PURE__ */ jsx88(
|
|
15332
15520
|
"button",
|
|
15333
15521
|
{
|
|
15334
15522
|
type: "button",
|
|
@@ -15339,7 +15527,7 @@ var ParameterLinkInner = forwardRef12(
|
|
|
15339
15527
|
children: "edit"
|
|
15340
15528
|
}
|
|
15341
15529
|
),
|
|
15342
|
-
externalLink ? /* @__PURE__ */
|
|
15530
|
+
externalLink ? /* @__PURE__ */ jsx88(
|
|
15343
15531
|
"a",
|
|
15344
15532
|
{
|
|
15345
15533
|
href: externalLink,
|
|
@@ -15347,7 +15535,7 @@ var ParameterLinkInner = forwardRef12(
|
|
|
15347
15535
|
title: "Open link in new tab",
|
|
15348
15536
|
target: "_blank",
|
|
15349
15537
|
rel: "noopener noreferrer",
|
|
15350
|
-
children: /* @__PURE__ */
|
|
15538
|
+
children: /* @__PURE__ */ jsx88(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
15351
15539
|
}
|
|
15352
15540
|
) : null
|
|
15353
15541
|
] })
|
|
@@ -15356,7 +15544,7 @@ var ParameterLinkInner = forwardRef12(
|
|
|
15356
15544
|
);
|
|
15357
15545
|
|
|
15358
15546
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
15359
|
-
import { Fragment as Fragment12, jsx as
|
|
15547
|
+
import { Fragment as Fragment12, jsx as jsx89, jsxs as jsxs58 } from "@emotion/react/jsx-runtime";
|
|
15360
15548
|
var ParameterNameAndPublicIdInput = ({
|
|
15361
15549
|
id,
|
|
15362
15550
|
onBlur,
|
|
@@ -15383,7 +15571,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
15383
15571
|
};
|
|
15384
15572
|
autoFocus == null ? void 0 : autoFocus();
|
|
15385
15573
|
return /* @__PURE__ */ jsxs58(Fragment12, { children: [
|
|
15386
|
-
/* @__PURE__ */
|
|
15574
|
+
/* @__PURE__ */ jsx89(
|
|
15387
15575
|
ParameterInput,
|
|
15388
15576
|
{
|
|
15389
15577
|
id: nameIdField,
|
|
@@ -15402,7 +15590,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
15402
15590
|
value: values[nameIdField]
|
|
15403
15591
|
}
|
|
15404
15592
|
),
|
|
15405
|
-
/* @__PURE__ */
|
|
15593
|
+
/* @__PURE__ */ jsx89(
|
|
15406
15594
|
ParameterInput,
|
|
15407
15595
|
{
|
|
15408
15596
|
id: publicIdFieldName,
|
|
@@ -15416,11 +15604,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
15416
15604
|
caption: publicIdCaption,
|
|
15417
15605
|
placeholder: publicIdPlaceholderText,
|
|
15418
15606
|
errorMessage: publicIdError,
|
|
15419
|
-
menuItems: /* @__PURE__ */
|
|
15607
|
+
menuItems: /* @__PURE__ */ jsx89(
|
|
15420
15608
|
MenuItem,
|
|
15421
15609
|
{
|
|
15422
15610
|
disabled: !values[publicIdFieldName],
|
|
15423
|
-
icon: /* @__PURE__ */
|
|
15611
|
+
icon: /* @__PURE__ */ jsx89(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
15424
15612
|
onClick: handleCopyPidFieldValue,
|
|
15425
15613
|
children: "Copy"
|
|
15426
15614
|
}
|
|
@@ -15428,12 +15616,13 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
15428
15616
|
value: values[publicIdFieldName]
|
|
15429
15617
|
}
|
|
15430
15618
|
),
|
|
15431
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
15619
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx89(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
15432
15620
|
] });
|
|
15433
15621
|
};
|
|
15434
15622
|
|
|
15435
15623
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
15436
|
-
import { css as
|
|
15624
|
+
import { css as css75 } from "@emotion/react";
|
|
15625
|
+
import { CodeNode } from "@lexical/code";
|
|
15437
15626
|
import { ListItemNode, ListNode as ListNode2 } from "@lexical/list";
|
|
15438
15627
|
import { LexicalComposer } from "@lexical/react/LexicalComposer";
|
|
15439
15628
|
import { useLexicalComposerContext as useLexicalComposerContext4 } from "@lexical/react/LexicalComposerContext";
|
|
@@ -15442,7 +15631,7 @@ import LexicalErrorBoundary from "@lexical/react/LexicalErrorBoundary";
|
|
|
15442
15631
|
import { HistoryPlugin } from "@lexical/react/LexicalHistoryPlugin";
|
|
15443
15632
|
import { ListPlugin } from "@lexical/react/LexicalListPlugin";
|
|
15444
15633
|
import { RichTextPlugin } from "@lexical/react/LexicalRichTextPlugin";
|
|
15445
|
-
import { HeadingNode } from "@lexical/rich-text";
|
|
15634
|
+
import { HeadingNode, QuoteNode } from "@lexical/rich-text";
|
|
15446
15635
|
import { deepEqual as deepEqual2 } from "fast-equals";
|
|
15447
15636
|
import { ParagraphNode } from "lexical";
|
|
15448
15637
|
import { useEffect as useEffect13, useRef as useRef6 } from "react";
|
|
@@ -15484,6 +15673,14 @@ var richTextBuiltInElements = [
|
|
|
15484
15673
|
{
|
|
15485
15674
|
label: "Link",
|
|
15486
15675
|
type: "link"
|
|
15676
|
+
},
|
|
15677
|
+
{
|
|
15678
|
+
label: "Blockquote",
|
|
15679
|
+
type: "quote"
|
|
15680
|
+
},
|
|
15681
|
+
{
|
|
15682
|
+
label: "Code Block",
|
|
15683
|
+
type: "code"
|
|
15487
15684
|
}
|
|
15488
15685
|
];
|
|
15489
15686
|
|
|
@@ -15520,93 +15717,93 @@ var richTextBuiltInFormats = [
|
|
|
15520
15717
|
];
|
|
15521
15718
|
|
|
15522
15719
|
// src/components/ParameterInputs/rich-text/editorStyles.ts
|
|
15523
|
-
import { css as
|
|
15524
|
-
var textBold =
|
|
15720
|
+
import { css as css71 } from "@emotion/css";
|
|
15721
|
+
var textBold = css71`
|
|
15525
15722
|
font-weight: 700;
|
|
15526
15723
|
`;
|
|
15527
|
-
var textItalic =
|
|
15724
|
+
var textItalic = css71`
|
|
15528
15725
|
font-style: italic;
|
|
15529
15726
|
`;
|
|
15530
|
-
var textUnderline =
|
|
15727
|
+
var textUnderline = css71`
|
|
15531
15728
|
text-decoration: underline;
|
|
15532
15729
|
`;
|
|
15533
|
-
var textStrikethrough =
|
|
15730
|
+
var textStrikethrough = css71`
|
|
15534
15731
|
text-decoration: line-through;
|
|
15535
15732
|
`;
|
|
15536
|
-
var textUnderlineStrikethrough =
|
|
15733
|
+
var textUnderlineStrikethrough = css71`
|
|
15537
15734
|
text-decoration: underline line-through;
|
|
15538
15735
|
`;
|
|
15539
|
-
var textCode =
|
|
15736
|
+
var textCode = css71`
|
|
15540
15737
|
background-color: var(--gray-100);
|
|
15541
15738
|
border-radius: var(--rounded-sm);
|
|
15542
15739
|
display: inline-block;
|
|
15543
15740
|
font-family: var(--ff-mono);
|
|
15544
|
-
font-size:
|
|
15741
|
+
font-size: var(--fs-sm);
|
|
15545
15742
|
padding-left: var(--spacing-xs);
|
|
15546
15743
|
padding-right: var(--spacing-xs);
|
|
15547
15744
|
`;
|
|
15548
|
-
var textSuperscript =
|
|
15745
|
+
var textSuperscript = css71`
|
|
15549
15746
|
vertical-align: super;
|
|
15550
15747
|
font-size: smaller;
|
|
15551
15748
|
`;
|
|
15552
|
-
var textSubscript =
|
|
15749
|
+
var textSubscript = css71`
|
|
15553
15750
|
vertical-align: sub;
|
|
15554
15751
|
font-size: smaller;
|
|
15555
15752
|
`;
|
|
15556
|
-
var linkElement =
|
|
15753
|
+
var linkElement = css71`
|
|
15557
15754
|
${link}
|
|
15558
15755
|
${linkColorDefault}
|
|
15559
15756
|
text-decoration: underline;
|
|
15560
15757
|
`;
|
|
15561
|
-
var h12 =
|
|
15758
|
+
var h12 = css71`
|
|
15562
15759
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.7rem);
|
|
15563
15760
|
`;
|
|
15564
|
-
var h22 =
|
|
15761
|
+
var h22 = css71`
|
|
15565
15762
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.6rem);
|
|
15566
15763
|
`;
|
|
15567
|
-
var h32 =
|
|
15764
|
+
var h32 = css71`
|
|
15568
15765
|
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
15569
15766
|
`;
|
|
15570
|
-
var h42 =
|
|
15767
|
+
var h42 = css71`
|
|
15571
15768
|
font-size: clamp(1.15rem, var(--fluid-font-base), 1.25rem);
|
|
15572
15769
|
`;
|
|
15573
|
-
var h52 =
|
|
15770
|
+
var h52 = css71`
|
|
15574
15771
|
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
15575
15772
|
`;
|
|
15576
|
-
var h62 =
|
|
15773
|
+
var h62 = css71`
|
|
15577
15774
|
font-size: var(--fs-base);
|
|
15578
15775
|
`;
|
|
15579
|
-
var heading1Element =
|
|
15776
|
+
var heading1Element = css71`
|
|
15580
15777
|
${h12}
|
|
15581
15778
|
${commonHeadingAttr(true)}
|
|
15582
15779
|
${commonLineHeight}
|
|
15583
15780
|
`;
|
|
15584
|
-
var heading2Element =
|
|
15781
|
+
var heading2Element = css71`
|
|
15585
15782
|
${h22}
|
|
15586
15783
|
${commonHeadingAttr(true)}
|
|
15587
15784
|
${commonLineHeight}
|
|
15588
15785
|
`;
|
|
15589
|
-
var heading3Element =
|
|
15786
|
+
var heading3Element = css71`
|
|
15590
15787
|
${h32}
|
|
15591
15788
|
${commonHeadingAttr(true)}
|
|
15592
15789
|
${commonLineHeight}
|
|
15593
15790
|
`;
|
|
15594
|
-
var heading4Element =
|
|
15791
|
+
var heading4Element = css71`
|
|
15595
15792
|
${h42}
|
|
15596
15793
|
${commonHeadingAttr(true)}
|
|
15597
15794
|
${commonLineHeight}
|
|
15598
15795
|
`;
|
|
15599
|
-
var heading5Element =
|
|
15796
|
+
var heading5Element = css71`
|
|
15600
15797
|
${h52}
|
|
15601
15798
|
${commonHeadingAttr(true)}
|
|
15602
15799
|
${commonLineHeight}
|
|
15603
15800
|
`;
|
|
15604
|
-
var heading6Element =
|
|
15801
|
+
var heading6Element = css71`
|
|
15605
15802
|
${h62}
|
|
15606
15803
|
${commonHeadingAttr(true)}
|
|
15607
15804
|
${commonLineHeight}
|
|
15608
15805
|
`;
|
|
15609
|
-
var paragraphElement =
|
|
15806
|
+
var paragraphElement = css71`
|
|
15610
15807
|
line-height: 1.5;
|
|
15611
15808
|
margin-bottom: var(--spacing-base);
|
|
15612
15809
|
|
|
@@ -15614,7 +15811,7 @@ var paragraphElement = css69`
|
|
|
15614
15811
|
margin-bottom: 0;
|
|
15615
15812
|
}
|
|
15616
15813
|
`;
|
|
15617
|
-
var orderedListElement =
|
|
15814
|
+
var orderedListElement = css71`
|
|
15618
15815
|
${commonLineHeight}
|
|
15619
15816
|
display: block;
|
|
15620
15817
|
list-style: decimal;
|
|
@@ -15643,7 +15840,7 @@ var orderedListElement = css69`
|
|
|
15643
15840
|
}
|
|
15644
15841
|
}
|
|
15645
15842
|
`;
|
|
15646
|
-
var unorderedListElement =
|
|
15843
|
+
var unorderedListElement = css71`
|
|
15647
15844
|
${commonLineHeight}
|
|
15648
15845
|
display: block;
|
|
15649
15846
|
list-style: disc;
|
|
@@ -15664,15 +15861,38 @@ var unorderedListElement = css69`
|
|
|
15664
15861
|
}
|
|
15665
15862
|
}
|
|
15666
15863
|
`;
|
|
15667
|
-
var listItemElement =
|
|
15864
|
+
var listItemElement = css71`
|
|
15668
15865
|
margin-left: var(--spacing-md);
|
|
15669
15866
|
`;
|
|
15670
|
-
var nestedListItemElement =
|
|
15867
|
+
var nestedListItemElement = css71`
|
|
15671
15868
|
list-style-type: none;
|
|
15672
15869
|
`;
|
|
15870
|
+
var blockquoteElement = css71`
|
|
15871
|
+
border-left: 0.25rem solid var(--gray-300);
|
|
15872
|
+
color: var(--gray-600);
|
|
15873
|
+
margin-bottom: var(--spacing-base);
|
|
15874
|
+
padding-left: var(--spacing-base);
|
|
15875
|
+
|
|
15876
|
+
&:last-child {
|
|
15877
|
+
margin-bottom: 0;
|
|
15878
|
+
}
|
|
15879
|
+
`;
|
|
15880
|
+
var codeElement = css71`
|
|
15881
|
+
background-color: var(--gray-100);
|
|
15882
|
+
border-radius: var(--rounded-sm);
|
|
15883
|
+
display: block;
|
|
15884
|
+
font-family: var(--ff-mono);
|
|
15885
|
+
font-size: var(--fs-sm);
|
|
15886
|
+
margin-bottom: var(--spacing-base);
|
|
15887
|
+
padding: var(--spacing-sm);
|
|
15888
|
+
|
|
15889
|
+
&:last-child {
|
|
15890
|
+
margin-bottom: 0;
|
|
15891
|
+
}
|
|
15892
|
+
`;
|
|
15673
15893
|
|
|
15674
15894
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
15675
|
-
import { css as
|
|
15895
|
+
import { css as css73 } from "@emotion/react";
|
|
15676
15896
|
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
|
15677
15897
|
import { NodeEventPlugin } from "@lexical/react/LexicalNodeEventPlugin";
|
|
15678
15898
|
import { addClassNamesToElement, isHTMLAnchorElement, mergeRegister } from "@lexical/utils";
|
|
@@ -15691,13 +15911,13 @@ import {
|
|
|
15691
15911
|
import { useCallback as useCallback4, useEffect as useEffect10, useRef as useRef5, useState as useState9 } from "react";
|
|
15692
15912
|
|
|
15693
15913
|
// src/components/Popover/Popover.styles.ts
|
|
15694
|
-
import { css as
|
|
15695
|
-
var PopoverBtn =
|
|
15914
|
+
import { css as css72 } from "@emotion/react";
|
|
15915
|
+
var PopoverBtn = css72`
|
|
15696
15916
|
border: none;
|
|
15697
15917
|
background: none;
|
|
15698
15918
|
padding: 0;
|
|
15699
15919
|
`;
|
|
15700
|
-
var Popover =
|
|
15920
|
+
var Popover = css72`
|
|
15701
15921
|
border-left: var(--spacing-xs) solid var(--brand-secondary-3);
|
|
15702
15922
|
border-radius: var(--rounded-base);
|
|
15703
15923
|
box-shadow: var(--shadow-base);
|
|
@@ -15763,7 +15983,7 @@ var richTextIsValueConsideredEmpty = (value) => {
|
|
|
15763
15983
|
};
|
|
15764
15984
|
|
|
15765
15985
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
15766
|
-
import { Fragment as Fragment13, jsx as
|
|
15986
|
+
import { Fragment as Fragment13, jsx as jsx90, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
|
|
15767
15987
|
var isProjectMapLinkValue = (value) => {
|
|
15768
15988
|
return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
|
|
15769
15989
|
value.nodeId && value.path && value.projectMapId
|
|
@@ -16029,16 +16249,16 @@ var OPEN_LINK_NODE_MODAL_COMMAND = createCommand(
|
|
|
16029
16249
|
);
|
|
16030
16250
|
var LINK_POPOVER_OFFSET_X = 0;
|
|
16031
16251
|
var LINK_POPOVER_OFFSET_Y = 8;
|
|
16032
|
-
var linkPopover =
|
|
16252
|
+
var linkPopover = css73`
|
|
16033
16253
|
position: absolute;
|
|
16034
16254
|
z-index: 5;
|
|
16035
16255
|
`;
|
|
16036
|
-
var linkPopoverContainer =
|
|
16256
|
+
var linkPopoverContainer = css73`
|
|
16037
16257
|
${Popover};
|
|
16038
16258
|
align-items: center;
|
|
16039
16259
|
display: flex;
|
|
16040
16260
|
`;
|
|
16041
|
-
var linkPopoverAnchor =
|
|
16261
|
+
var linkPopoverAnchor = css73`
|
|
16042
16262
|
${link}
|
|
16043
16263
|
${linkColorDefault}
|
|
16044
16264
|
`;
|
|
@@ -16175,7 +16395,7 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
16175
16395
|
});
|
|
16176
16396
|
};
|
|
16177
16397
|
return /* @__PURE__ */ jsxs59(Fragment13, { children: [
|
|
16178
|
-
/* @__PURE__ */
|
|
16398
|
+
/* @__PURE__ */ jsx90(
|
|
16179
16399
|
NodeEventPlugin,
|
|
16180
16400
|
{
|
|
16181
16401
|
nodeType: LinkNode,
|
|
@@ -16185,7 +16405,7 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
16185
16405
|
}
|
|
16186
16406
|
}
|
|
16187
16407
|
),
|
|
16188
|
-
linkPopoverState ? /* @__PURE__ */
|
|
16408
|
+
linkPopoverState ? /* @__PURE__ */ jsx90(
|
|
16189
16409
|
"div",
|
|
16190
16410
|
{
|
|
16191
16411
|
css: linkPopover,
|
|
@@ -16195,7 +16415,7 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
16195
16415
|
},
|
|
16196
16416
|
ref: linkPopoverElRef,
|
|
16197
16417
|
children: /* @__PURE__ */ jsxs59("div", { css: linkPopoverContainer, children: [
|
|
16198
|
-
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */
|
|
16418
|
+
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ jsx90(
|
|
16199
16419
|
"a",
|
|
16200
16420
|
{
|
|
16201
16421
|
href: `${linkPopoverState.node.__link.type === "email" ? "mailto:" : linkPopoverState.node.__link.type === "tel" ? "tel:" : ""}${linkPopoverState.node.__link.path}`,
|
|
@@ -16205,7 +16425,7 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
16205
16425
|
children: linkPopoverState.node.__link.path
|
|
16206
16426
|
}
|
|
16207
16427
|
),
|
|
16208
|
-
/* @__PURE__ */
|
|
16428
|
+
/* @__PURE__ */ jsx90(
|
|
16209
16429
|
Button,
|
|
16210
16430
|
{
|
|
16211
16431
|
size: "xs",
|
|
@@ -16213,7 +16433,7 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
16213
16433
|
onEditLinkNode(linkPopoverState.node);
|
|
16214
16434
|
},
|
|
16215
16435
|
buttonType: "ghost",
|
|
16216
|
-
children: /* @__PURE__ */
|
|
16436
|
+
children: /* @__PURE__ */ jsx90(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
|
|
16217
16437
|
}
|
|
16218
16438
|
)
|
|
16219
16439
|
] })
|
|
@@ -16238,7 +16458,7 @@ import {
|
|
|
16238
16458
|
INDENT_CONTENT_COMMAND
|
|
16239
16459
|
} from "lexical";
|
|
16240
16460
|
import { useEffect as useEffect11 } from "react";
|
|
16241
|
-
import { jsx as
|
|
16461
|
+
import { jsx as jsx91 } from "@emotion/react/jsx-runtime";
|
|
16242
16462
|
function isIndentPermitted(maxDepth) {
|
|
16243
16463
|
const selection = $getSelection2();
|
|
16244
16464
|
if (!$isRangeSelection2(selection)) {
|
|
@@ -16268,11 +16488,12 @@ function ListIndentPlugin({ maxDepth }) {
|
|
|
16268
16488
|
COMMAND_PRIORITY_CRITICAL
|
|
16269
16489
|
);
|
|
16270
16490
|
}, [editor, maxDepth]);
|
|
16271
|
-
return /* @__PURE__ */
|
|
16491
|
+
return /* @__PURE__ */ jsx91(TabIndentationPlugin, {});
|
|
16272
16492
|
}
|
|
16273
16493
|
|
|
16274
16494
|
// src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
|
|
16275
|
-
import { css as
|
|
16495
|
+
import { css as css74 } from "@emotion/react";
|
|
16496
|
+
import { $createCodeNode } from "@lexical/code";
|
|
16276
16497
|
import {
|
|
16277
16498
|
$isListNode as $isListNode2,
|
|
16278
16499
|
INSERT_ORDERED_LIST_COMMAND,
|
|
@@ -16281,21 +16502,32 @@ import {
|
|
|
16281
16502
|
REMOVE_LIST_COMMAND
|
|
16282
16503
|
} from "@lexical/list";
|
|
16283
16504
|
import { useLexicalComposerContext as useLexicalComposerContext3 } from "@lexical/react/LexicalComposerContext";
|
|
16284
|
-
import { $
|
|
16505
|
+
import { $isDecoratorBlockNode } from "@lexical/react/LexicalDecoratorBlockNode";
|
|
16506
|
+
import {
|
|
16507
|
+
$createHeadingNode,
|
|
16508
|
+
$createQuoteNode,
|
|
16509
|
+
$isHeadingNode,
|
|
16510
|
+
$isQuoteNode
|
|
16511
|
+
} from "@lexical/rich-text";
|
|
16285
16512
|
import { $setBlocksType } from "@lexical/selection";
|
|
16286
|
-
import {
|
|
16513
|
+
import {
|
|
16514
|
+
$findMatchingParent,
|
|
16515
|
+
$getNearestBlockElementAncestorOrThrow,
|
|
16516
|
+
$getNearestNodeOfType
|
|
16517
|
+
} from "@lexical/utils";
|
|
16287
16518
|
import {
|
|
16288
16519
|
$createParagraphNode,
|
|
16289
16520
|
$getSelection as $getSelection3,
|
|
16290
16521
|
$isRangeSelection as $isRangeSelection3,
|
|
16291
16522
|
$isRootOrShadowRoot,
|
|
16523
|
+
$isTextNode,
|
|
16292
16524
|
COMMAND_PRIORITY_CRITICAL as COMMAND_PRIORITY_CRITICAL2,
|
|
16293
16525
|
FORMAT_TEXT_COMMAND,
|
|
16294
16526
|
SELECTION_CHANGE_COMMAND
|
|
16295
16527
|
} from "lexical";
|
|
16296
16528
|
import { useCallback as useCallback5, useEffect as useEffect12, useMemo as useMemo2, useState as useState10 } from "react";
|
|
16297
|
-
import { Fragment as Fragment14, jsx as
|
|
16298
|
-
var toolbar =
|
|
16529
|
+
import { Fragment as Fragment14, jsx as jsx92, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
|
|
16530
|
+
var toolbar = css74`
|
|
16299
16531
|
background: var(--gray-50);
|
|
16300
16532
|
border-radius: var(--rounded-base);
|
|
16301
16533
|
display: flex;
|
|
@@ -16307,7 +16539,7 @@ var toolbar = css72`
|
|
|
16307
16539
|
top: 0;
|
|
16308
16540
|
z-index: 10;
|
|
16309
16541
|
`;
|
|
16310
|
-
var toolbarGroup =
|
|
16542
|
+
var toolbarGroup = css74`
|
|
16311
16543
|
display: flex;
|
|
16312
16544
|
gap: var(--spacing-xs);
|
|
16313
16545
|
position: relative;
|
|
@@ -16323,7 +16555,7 @@ var toolbarGroup = css72`
|
|
|
16323
16555
|
width: 1px;
|
|
16324
16556
|
}
|
|
16325
16557
|
`;
|
|
16326
|
-
var toolbarButton =
|
|
16558
|
+
var toolbarButton = css74`
|
|
16327
16559
|
align-items: center;
|
|
16328
16560
|
appearance: none;
|
|
16329
16561
|
border: 0;
|
|
@@ -16336,17 +16568,17 @@ var toolbarButton = css72`
|
|
|
16336
16568
|
min-width: 32px;
|
|
16337
16569
|
padding: 0 var(--spacing-sm);
|
|
16338
16570
|
`;
|
|
16339
|
-
var toolbarButtonActive =
|
|
16571
|
+
var toolbarButtonActive = css74`
|
|
16340
16572
|
background: var(--gray-200);
|
|
16341
16573
|
`;
|
|
16342
|
-
var toolbarIcon =
|
|
16574
|
+
var toolbarIcon = css74`
|
|
16343
16575
|
color: inherit;
|
|
16344
16576
|
`;
|
|
16345
|
-
var toolbarChevron =
|
|
16577
|
+
var toolbarChevron = css74`
|
|
16346
16578
|
margin-left: var(--spacing-xs);
|
|
16347
16579
|
`;
|
|
16348
16580
|
var ToolbarIcon = ({ icon }) => {
|
|
16349
|
-
return /* @__PURE__ */
|
|
16581
|
+
return /* @__PURE__ */ jsx92(Icon, { icon, css: toolbarIcon, size: "1rem" });
|
|
16350
16582
|
};
|
|
16351
16583
|
var RichTextToolbar = ({ config }) => {
|
|
16352
16584
|
const [editor] = useLexicalComposerContext3();
|
|
@@ -16362,7 +16594,6 @@ var RichTextToolbar = ({ config }) => {
|
|
|
16362
16594
|
return (_b = (_a = config == null ? void 0 : config.elements) == null ? void 0 : _a.builtIn) == null ? void 0 : _b.includes(element.type);
|
|
16363
16595
|
}
|
|
16364
16596
|
);
|
|
16365
|
-
const showToolbar = enabledBuiltInFormats.length > 0 || enabledBuiltInElements.length > 0;
|
|
16366
16597
|
const formatsWithIcon = /* @__PURE__ */ new Map([
|
|
16367
16598
|
["bold", "format-bold"],
|
|
16368
16599
|
["italic", "format-italic"],
|
|
@@ -16388,7 +16619,7 @@ var RichTextToolbar = ({ config }) => {
|
|
|
16388
16619
|
if (type === "paragraph") {
|
|
16389
16620
|
return "Normal";
|
|
16390
16621
|
}
|
|
16391
|
-
const element =
|
|
16622
|
+
const element = richTextBuiltInElements.find((element2) => element2.type === type);
|
|
16392
16623
|
return (_a = element == null ? void 0 : element.label) != null ? _a : type;
|
|
16393
16624
|
};
|
|
16394
16625
|
const onSelectElement = (type) => {
|
|
@@ -16404,6 +16635,10 @@ var RichTextToolbar = ({ config }) => {
|
|
|
16404
16635
|
$setBlocksType(selection, () => $createHeadingNode(type));
|
|
16405
16636
|
} else if (type === "paragraph") {
|
|
16406
16637
|
$setBlocksType(selection, () => $createParagraphNode());
|
|
16638
|
+
} else if (type === "quote") {
|
|
16639
|
+
$setBlocksType(selection, () => $createQuoteNode());
|
|
16640
|
+
} else if (type === "code") {
|
|
16641
|
+
$setBlocksType(selection, () => $createCodeNode());
|
|
16407
16642
|
}
|
|
16408
16643
|
});
|
|
16409
16644
|
};
|
|
@@ -16416,6 +16651,12 @@ var RichTextToolbar = ({ config }) => {
|
|
|
16416
16651
|
enabledBuiltInElements.filter((element) => ["orderedList", "unorderedList"].includes(element.type)).map((element) => element.type)
|
|
16417
16652
|
);
|
|
16418
16653
|
}, [enabledBuiltInElements]);
|
|
16654
|
+
const quoteElementEnabled = useMemo2(() => {
|
|
16655
|
+
return enabledBuiltInElements.some((element) => element.type === "quote");
|
|
16656
|
+
}, [enabledBuiltInElements]);
|
|
16657
|
+
const codeElementEnabled = useMemo2(() => {
|
|
16658
|
+
return enabledBuiltInElements.some((element) => element.type === "code");
|
|
16659
|
+
}, [enabledBuiltInElements]);
|
|
16419
16660
|
const updateToolbar = useCallback5(() => {
|
|
16420
16661
|
const selection = $getSelection3();
|
|
16421
16662
|
if (!$isRangeSelection3(selection)) {
|
|
@@ -16474,18 +16715,65 @@ var RichTextToolbar = ({ config }) => {
|
|
|
16474
16715
|
});
|
|
16475
16716
|
});
|
|
16476
16717
|
}, [editor, updateToolbar]);
|
|
16477
|
-
|
|
16478
|
-
|
|
16479
|
-
|
|
16718
|
+
const clearFormatting2 = useCallback5(() => {
|
|
16719
|
+
editor.update(() => {
|
|
16720
|
+
const selection = $getSelection3();
|
|
16721
|
+
if ($isRangeSelection3(selection)) {
|
|
16722
|
+
const anchor = selection.anchor;
|
|
16723
|
+
const focus = selection.focus;
|
|
16724
|
+
const nodes = selection.getNodes();
|
|
16725
|
+
if (anchor.key === focus.key && anchor.offset === focus.offset) {
|
|
16726
|
+
return;
|
|
16727
|
+
}
|
|
16728
|
+
nodes.forEach((node, idx) => {
|
|
16729
|
+
if ($isTextNode(node)) {
|
|
16730
|
+
if (idx === 0 && anchor.offset !== 0) {
|
|
16731
|
+
node = node.splitText(anchor.offset)[1] || node;
|
|
16732
|
+
}
|
|
16733
|
+
if (idx === nodes.length - 1) {
|
|
16734
|
+
node = node.splitText(focus.offset)[0] || node;
|
|
16735
|
+
}
|
|
16736
|
+
if (node.__style !== "") {
|
|
16737
|
+
node.setStyle("");
|
|
16738
|
+
}
|
|
16739
|
+
if (node.__format !== 0) {
|
|
16740
|
+
node.setFormat(0);
|
|
16741
|
+
$getNearestBlockElementAncestorOrThrow(node).setFormat("");
|
|
16742
|
+
}
|
|
16743
|
+
} else if ($isHeadingNode(node) || $isQuoteNode(node)) {
|
|
16744
|
+
node.replace($createParagraphNode(), true);
|
|
16745
|
+
} else if ($isDecoratorBlockNode(node)) {
|
|
16746
|
+
node.setFormat("");
|
|
16747
|
+
}
|
|
16748
|
+
});
|
|
16749
|
+
}
|
|
16750
|
+
updateToolbar();
|
|
16751
|
+
});
|
|
16752
|
+
}, [editor, updateToolbar]);
|
|
16753
|
+
const elementsThatShouldBeVisibleInDropdown = useMemo2(() => {
|
|
16754
|
+
if (activeElement === "paragraph") {
|
|
16755
|
+
return enabledTextualElements;
|
|
16756
|
+
}
|
|
16757
|
+
if (enabledBuiltInElements.some((element) => element.type === activeElement)) {
|
|
16758
|
+
return enabledTextualElements;
|
|
16759
|
+
}
|
|
16760
|
+
return [
|
|
16761
|
+
...enabledTextualElements,
|
|
16762
|
+
{
|
|
16763
|
+
label: elementTypeToLabel(activeElement),
|
|
16764
|
+
type: activeElement
|
|
16765
|
+
}
|
|
16766
|
+
];
|
|
16767
|
+
}, [enabledBuiltInElements, enabledTextualElements, activeElement]);
|
|
16480
16768
|
return /* @__PURE__ */ jsxs60("div", { css: toolbar, children: [
|
|
16481
|
-
|
|
16769
|
+
elementsThatShouldBeVisibleInDropdown.length > 0 ? /* @__PURE__ */ jsx92(
|
|
16482
16770
|
Menu,
|
|
16483
16771
|
{
|
|
16484
16772
|
menuLabel: "Elements",
|
|
16485
16773
|
menuTrigger: /* @__PURE__ */ jsxs60("button", { css: toolbarButton, title: "Text formatting", children: [
|
|
16486
|
-
|
|
16774
|
+
elementsThatShouldBeVisibleInDropdown.some((element) => element.type === activeElement) ? elementTypeToLabel(activeElement) : elementTypeToLabel("paragraph"),
|
|
16487
16775
|
" ",
|
|
16488
|
-
/* @__PURE__ */
|
|
16776
|
+
/* @__PURE__ */ jsx92(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
|
|
16489
16777
|
] }),
|
|
16490
16778
|
placement: "bottom-start",
|
|
16491
16779
|
children: [
|
|
@@ -16493,8 +16781,8 @@ var RichTextToolbar = ({ config }) => {
|
|
|
16493
16781
|
label: "Normal",
|
|
16494
16782
|
type: "paragraph"
|
|
16495
16783
|
},
|
|
16496
|
-
...
|
|
16497
|
-
].map((element) => /* @__PURE__ */
|
|
16784
|
+
...elementsThatShouldBeVisibleInDropdown
|
|
16785
|
+
].map((element) => /* @__PURE__ */ jsx92(
|
|
16498
16786
|
MenuItem,
|
|
16499
16787
|
{
|
|
16500
16788
|
onClick: () => {
|
|
@@ -16507,23 +16795,23 @@ var RichTextToolbar = ({ config }) => {
|
|
|
16507
16795
|
}
|
|
16508
16796
|
) : null,
|
|
16509
16797
|
enabledBuiltInFormatsWithIcon.length > 0 || enabledBuiltInFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsxs60("div", { css: toolbarGroup, children: [
|
|
16510
|
-
enabledBuiltInFormatsWithIcon.map((format) => /* @__PURE__ */
|
|
16798
|
+
enabledBuiltInFormatsWithIcon.map((format) => /* @__PURE__ */ jsx92(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ jsx92(
|
|
16511
16799
|
"button",
|
|
16512
16800
|
{
|
|
16513
16801
|
onClick: () => {
|
|
16514
16802
|
editor.dispatchCommand(FORMAT_TEXT_COMMAND, format.type);
|
|
16515
16803
|
},
|
|
16516
16804
|
css: [toolbarButton, activeFormats.includes(format.type) ? toolbarButtonActive : null],
|
|
16517
|
-
children: /* @__PURE__ */
|
|
16805
|
+
children: /* @__PURE__ */ jsx92(ToolbarIcon, { icon: formatsWithIcon.get(format.type) })
|
|
16518
16806
|
}
|
|
16519
16807
|
) }, format.type)),
|
|
16520
|
-
enabledBuiltInFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
16808
|
+
enabledBuiltInFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsx92(
|
|
16521
16809
|
Menu,
|
|
16522
16810
|
{
|
|
16523
16811
|
menuLabel: "Text formatting",
|
|
16524
|
-
menuTrigger: /* @__PURE__ */
|
|
16812
|
+
menuTrigger: /* @__PURE__ */ jsx92("button", { css: toolbarButton, title: "Text formatting", children: /* @__PURE__ */ jsx92(Icon, { icon: "more-alt", css: toolbarIcon }) }),
|
|
16525
16813
|
placement: "bottom-start",
|
|
16526
|
-
children: enabledBuiltInFormatsWithoutIcon.map((format) => /* @__PURE__ */
|
|
16814
|
+
children: enabledBuiltInFormatsWithoutIcon.map((format) => /* @__PURE__ */ jsx92(
|
|
16527
16815
|
MenuItem,
|
|
16528
16816
|
{
|
|
16529
16817
|
onClick: () => {
|
|
@@ -16536,46 +16824,87 @@ var RichTextToolbar = ({ config }) => {
|
|
|
16536
16824
|
}
|
|
16537
16825
|
) : null
|
|
16538
16826
|
] }) : null,
|
|
16539
|
-
linkElementEnabled || enabledLists.size > 0 ? /* @__PURE__ */ jsxs60("div", { css: toolbarGroup, children: [
|
|
16540
|
-
linkElementEnabled ? /* @__PURE__ */
|
|
16827
|
+
linkElementEnabled || enabledLists.size > 0 || quoteElementEnabled || codeElementEnabled ? /* @__PURE__ */ jsxs60("div", { css: toolbarGroup, children: [
|
|
16828
|
+
linkElementEnabled ? /* @__PURE__ */ jsx92(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ jsx92(
|
|
16541
16829
|
"button",
|
|
16542
16830
|
{
|
|
16543
16831
|
onClick: () => {
|
|
16544
16832
|
editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
|
|
16545
16833
|
},
|
|
16546
16834
|
css: [toolbarButton, isLink ? toolbarButtonActive : null],
|
|
16547
|
-
children: /* @__PURE__ */
|
|
16835
|
+
children: /* @__PURE__ */ jsx92(ToolbarIcon, { icon: "link" })
|
|
16548
16836
|
}
|
|
16549
16837
|
) }) : null,
|
|
16550
16838
|
enabledLists.size > 0 ? /* @__PURE__ */ jsxs60(Fragment14, { children: [
|
|
16551
|
-
enabledLists.has("unorderedList") ? /* @__PURE__ */
|
|
16839
|
+
enabledLists.has("unorderedList") ? /* @__PURE__ */ jsx92(Tooltip, { title: "Bullet list", placement: "top", children: /* @__PURE__ */ jsx92(
|
|
16552
16840
|
"button",
|
|
16553
16841
|
{
|
|
16554
16842
|
onClick: () => {
|
|
16555
16843
|
activeElement === "unorderedList" ? editor.dispatchCommand(REMOVE_LIST_COMMAND, void 0) : editor.dispatchCommand(INSERT_UNORDERED_LIST_COMMAND, void 0);
|
|
16556
16844
|
},
|
|
16557
16845
|
css: [toolbarButton, activeElement === "unorderedList" ? toolbarButtonActive : null],
|
|
16558
|
-
children: /* @__PURE__ */
|
|
16846
|
+
children: /* @__PURE__ */ jsx92(ToolbarIcon, { icon: "layout-list" })
|
|
16559
16847
|
}
|
|
16560
16848
|
) }) : null,
|
|
16561
|
-
enabledLists.has("orderedList") ? /* @__PURE__ */
|
|
16849
|
+
enabledLists.has("orderedList") ? /* @__PURE__ */ jsx92(Tooltip, { title: "Numbered list", placement: "top", children: /* @__PURE__ */ jsx92(
|
|
16562
16850
|
"button",
|
|
16563
16851
|
{
|
|
16564
16852
|
onClick: () => {
|
|
16565
16853
|
activeElement === "orderedList" ? editor.dispatchCommand(REMOVE_LIST_COMMAND, void 0) : editor.dispatchCommand(INSERT_ORDERED_LIST_COMMAND, void 0);
|
|
16566
16854
|
},
|
|
16567
16855
|
css: [toolbarButton, activeElement === "orderedList" ? toolbarButtonActive : null],
|
|
16568
|
-
children: /* @__PURE__ */
|
|
16856
|
+
children: /* @__PURE__ */ jsx92(ToolbarIcon, { icon: "layout-list-numbered" })
|
|
16569
16857
|
}
|
|
16570
16858
|
) }) : null
|
|
16571
|
-
] }) : null
|
|
16572
|
-
|
|
16859
|
+
] }) : null,
|
|
16860
|
+
quoteElementEnabled ? /* @__PURE__ */ jsx92(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ jsx92(
|
|
16861
|
+
"button",
|
|
16862
|
+
{
|
|
16863
|
+
onClick: () => {
|
|
16864
|
+
activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
|
|
16865
|
+
},
|
|
16866
|
+
css: [toolbarButton, activeElement === "quote" ? toolbarButtonActive : null],
|
|
16867
|
+
children: /* @__PURE__ */ jsx92(ToolbarIcon, { icon: "quote" })
|
|
16868
|
+
}
|
|
16869
|
+
) }) : null,
|
|
16870
|
+
codeElementEnabled ? /* @__PURE__ */ jsx92(Tooltip, { title: "Code", placement: "top", children: /* @__PURE__ */ jsx92(
|
|
16871
|
+
"button",
|
|
16872
|
+
{
|
|
16873
|
+
onClick: () => {
|
|
16874
|
+
activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
|
|
16875
|
+
},
|
|
16876
|
+
css: [toolbarButton, activeElement === "code" ? toolbarButtonActive : null],
|
|
16877
|
+
children: /* @__PURE__ */ jsx92(ToolbarIcon, { icon: "code-slash" })
|
|
16878
|
+
}
|
|
16879
|
+
) }) : null
|
|
16880
|
+
] }) : null,
|
|
16881
|
+
/* @__PURE__ */ jsx92(
|
|
16882
|
+
"div",
|
|
16883
|
+
{
|
|
16884
|
+
css: [
|
|
16885
|
+
toolbarGroup,
|
|
16886
|
+
{
|
|
16887
|
+
marginLeft: "auto"
|
|
16888
|
+
}
|
|
16889
|
+
],
|
|
16890
|
+
children: /* @__PURE__ */ jsx92(Tooltip, { title: "Clear formatting", placement: "top", children: /* @__PURE__ */ jsx92(
|
|
16891
|
+
"button",
|
|
16892
|
+
{
|
|
16893
|
+
onClick: () => {
|
|
16894
|
+
clearFormatting2();
|
|
16895
|
+
},
|
|
16896
|
+
css: [toolbarButton],
|
|
16897
|
+
children: /* @__PURE__ */ jsx92(ToolbarIcon, { icon: "clear-formatting" })
|
|
16898
|
+
}
|
|
16899
|
+
) })
|
|
16900
|
+
}
|
|
16901
|
+
)
|
|
16573
16902
|
] });
|
|
16574
16903
|
};
|
|
16575
16904
|
var RichTextToolbar_default = RichTextToolbar;
|
|
16576
16905
|
|
|
16577
16906
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
16578
|
-
import { Fragment as Fragment15, jsx as
|
|
16907
|
+
import { Fragment as Fragment15, jsx as jsx93, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
|
|
16579
16908
|
var ParameterRichText = ({
|
|
16580
16909
|
label,
|
|
16581
16910
|
labelLeadingIcon,
|
|
@@ -16610,7 +16939,7 @@ var ParameterRichText = ({
|
|
|
16610
16939
|
captionTestId,
|
|
16611
16940
|
menuItems,
|
|
16612
16941
|
children: [
|
|
16613
|
-
/* @__PURE__ */
|
|
16942
|
+
/* @__PURE__ */ jsx93(
|
|
16614
16943
|
ParameterRichTextInner,
|
|
16615
16944
|
{
|
|
16616
16945
|
value,
|
|
@@ -16624,23 +16953,23 @@ var ParameterRichText = ({
|
|
|
16624
16953
|
editorFooter
|
|
16625
16954
|
}
|
|
16626
16955
|
),
|
|
16627
|
-
menuItems ? /* @__PURE__ */
|
|
16956
|
+
menuItems ? /* @__PURE__ */ jsx93(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx93(Fragment15, { children: menuItems }) }) : null
|
|
16628
16957
|
]
|
|
16629
16958
|
}
|
|
16630
16959
|
);
|
|
16631
16960
|
};
|
|
16632
|
-
var editorWrapper =
|
|
16961
|
+
var editorWrapper = css75`
|
|
16633
16962
|
display: flex;
|
|
16634
16963
|
flex-flow: column;
|
|
16635
16964
|
flex-grow: 1;
|
|
16636
16965
|
`;
|
|
16637
|
-
var editorContainer =
|
|
16966
|
+
var editorContainer = css75`
|
|
16638
16967
|
display: flex;
|
|
16639
16968
|
flex-flow: column;
|
|
16640
16969
|
flex-grow: 1;
|
|
16641
16970
|
position: relative;
|
|
16642
16971
|
`;
|
|
16643
|
-
var editorPlaceholder =
|
|
16972
|
+
var editorPlaceholder = css75`
|
|
16644
16973
|
color: var(--gray-500);
|
|
16645
16974
|
font-style: italic;
|
|
16646
16975
|
/* 1px is added to make sure caret is clearly visible when field is focused
|
|
@@ -16651,11 +16980,11 @@ var editorPlaceholder = css73`
|
|
|
16651
16980
|
top: var(--spacing-xs);
|
|
16652
16981
|
user-select: none;
|
|
16653
16982
|
`;
|
|
16654
|
-
var editorInput =
|
|
16983
|
+
var editorInput = css75`
|
|
16655
16984
|
background: var(--white);
|
|
16656
16985
|
border: 1px solid var(--white);
|
|
16657
16986
|
border-radius: var(--rounded-sm);
|
|
16658
|
-
color: var(--gray-
|
|
16987
|
+
color: var(--gray-900);
|
|
16659
16988
|
flex-grow: 1;
|
|
16660
16989
|
font-size: var(--fs-base);
|
|
16661
16990
|
line-height: 1.2;
|
|
@@ -16687,7 +17016,7 @@ var ParameterRichTextInner = ({
|
|
|
16687
17016
|
console.error(error);
|
|
16688
17017
|
},
|
|
16689
17018
|
editorState: value ? JSON.stringify(value) : void 0,
|
|
16690
|
-
nodes: [ListNode2, ListItemNode, LinkNode, HeadingNode, ParagraphNode],
|
|
17019
|
+
nodes: [ListNode2, ListItemNode, LinkNode, HeadingNode, QuoteNode, CodeNode, ParagraphNode],
|
|
16691
17020
|
theme: {
|
|
16692
17021
|
text: {
|
|
16693
17022
|
bold: textBold,
|
|
@@ -16716,12 +17045,14 @@ var ParameterRichTextInner = ({
|
|
|
16716
17045
|
nested: {
|
|
16717
17046
|
listitem: nestedListItemElement
|
|
16718
17047
|
}
|
|
16719
|
-
}
|
|
17048
|
+
},
|
|
17049
|
+
quote: blockquoteElement,
|
|
17050
|
+
code: codeElement
|
|
16720
17051
|
},
|
|
16721
17052
|
editable: !readOnly
|
|
16722
17053
|
};
|
|
16723
17054
|
return /* @__PURE__ */ jsxs61(Fragment15, { children: [
|
|
16724
|
-
/* @__PURE__ */
|
|
17055
|
+
/* @__PURE__ */ jsx93("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx93(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx93(
|
|
16725
17056
|
RichText,
|
|
16726
17057
|
{
|
|
16727
17058
|
onChange,
|
|
@@ -16763,31 +17094,31 @@ var RichText = ({
|
|
|
16763
17094
|
};
|
|
16764
17095
|
}, []);
|
|
16765
17096
|
return /* @__PURE__ */ jsxs61(Fragment15, { children: [
|
|
16766
|
-
readOnly ? null : /* @__PURE__ */
|
|
17097
|
+
readOnly ? null : /* @__PURE__ */ jsx93(RichTextToolbar_default, { config }),
|
|
16767
17098
|
/* @__PURE__ */ jsxs61("div", { css: editorContainer, ref: editorContainerRef, children: [
|
|
16768
|
-
/* @__PURE__ */
|
|
17099
|
+
/* @__PURE__ */ jsx93(
|
|
16769
17100
|
RichTextPlugin,
|
|
16770
17101
|
{
|
|
16771
|
-
contentEditable: /* @__PURE__ */
|
|
16772
|
-
placeholder: /* @__PURE__ */
|
|
17102
|
+
contentEditable: /* @__PURE__ */ jsx93(ContentEditable, { css: editorInput, className: editorInputClassName }),
|
|
17103
|
+
placeholder: /* @__PURE__ */ jsx93("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
|
|
16773
17104
|
ErrorBoundary: LexicalErrorBoundary
|
|
16774
17105
|
}
|
|
16775
17106
|
),
|
|
16776
|
-
/* @__PURE__ */
|
|
16777
|
-
readOnly ? null : /* @__PURE__ */
|
|
16778
|
-
/* @__PURE__ */
|
|
16779
|
-
/* @__PURE__ */
|
|
17107
|
+
/* @__PURE__ */ jsx93(ListPlugin, {}),
|
|
17108
|
+
readOnly ? null : /* @__PURE__ */ jsx93(HistoryPlugin, {}),
|
|
17109
|
+
/* @__PURE__ */ jsx93(LinkNodePlugin, { onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve() }),
|
|
17110
|
+
/* @__PURE__ */ jsx93(ListIndentPlugin, { maxDepth: 4 })
|
|
16780
17111
|
] })
|
|
16781
17112
|
] });
|
|
16782
17113
|
};
|
|
16783
17114
|
|
|
16784
17115
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
16785
17116
|
import { forwardRef as forwardRef13 } from "react";
|
|
16786
|
-
import { jsx as
|
|
17117
|
+
import { jsx as jsx94, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
|
|
16787
17118
|
var ParameterSelect = forwardRef13(
|
|
16788
17119
|
({ defaultOption, options, ...props }, ref) => {
|
|
16789
17120
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16790
|
-
return /* @__PURE__ */
|
|
17121
|
+
return /* @__PURE__ */ jsx94(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx94(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
16791
17122
|
}
|
|
16792
17123
|
);
|
|
16793
17124
|
var ParameterSelectInner = forwardRef13(
|
|
@@ -16802,10 +17133,10 @@ var ParameterSelectInner = forwardRef13(
|
|
|
16802
17133
|
ref,
|
|
16803
17134
|
...props,
|
|
16804
17135
|
children: [
|
|
16805
|
-
defaultOption ? /* @__PURE__ */
|
|
17136
|
+
defaultOption ? /* @__PURE__ */ jsx94("option", { value: "", children: defaultOption }) : null,
|
|
16806
17137
|
options.map((option) => {
|
|
16807
17138
|
var _a;
|
|
16808
|
-
return /* @__PURE__ */
|
|
17139
|
+
return /* @__PURE__ */ jsx94("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
16809
17140
|
})
|
|
16810
17141
|
]
|
|
16811
17142
|
}
|
|
@@ -16815,14 +17146,14 @@ var ParameterSelectInner = forwardRef13(
|
|
|
16815
17146
|
|
|
16816
17147
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
16817
17148
|
import { forwardRef as forwardRef14 } from "react";
|
|
16818
|
-
import { jsx as
|
|
17149
|
+
import { jsx as jsx95 } from "@emotion/react/jsx-runtime";
|
|
16819
17150
|
var ParameterTextarea = forwardRef14((props, ref) => {
|
|
16820
17151
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16821
|
-
return /* @__PURE__ */
|
|
17152
|
+
return /* @__PURE__ */ jsx95(ParameterShell, { "data-test-id": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx95(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
16822
17153
|
});
|
|
16823
17154
|
var ParameterTextareaInner = forwardRef14(({ ...props }, ref) => {
|
|
16824
17155
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
16825
|
-
return /* @__PURE__ */
|
|
17156
|
+
return /* @__PURE__ */ jsx95(
|
|
16826
17157
|
"textarea",
|
|
16827
17158
|
{
|
|
16828
17159
|
css: [input2, textarea2],
|
|
@@ -16836,17 +17167,17 @@ var ParameterTextareaInner = forwardRef14(({ ...props }, ref) => {
|
|
|
16836
17167
|
|
|
16837
17168
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
16838
17169
|
import { forwardRef as forwardRef15 } from "react";
|
|
16839
|
-
import { jsx as
|
|
17170
|
+
import { jsx as jsx96, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
|
|
16840
17171
|
var ParameterToggle = forwardRef15((props, ref) => {
|
|
16841
17172
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16842
|
-
return /* @__PURE__ */
|
|
17173
|
+
return /* @__PURE__ */ jsx96(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx96(ParameterToggleInner, { ref, ...innerProps }) });
|
|
16843
17174
|
});
|
|
16844
17175
|
var ParameterToggleInner = forwardRef15(
|
|
16845
17176
|
({ ...props }, ref) => {
|
|
16846
17177
|
const { id, label } = useParameterShell();
|
|
16847
17178
|
return /* @__PURE__ */ jsxs63("label", { css: inputToggleLabel2, children: [
|
|
16848
|
-
/* @__PURE__ */
|
|
16849
|
-
/* @__PURE__ */
|
|
17179
|
+
/* @__PURE__ */ jsx96("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
17180
|
+
/* @__PURE__ */ jsx96("span", { css: inlineLabel2, children: label })
|
|
16850
17181
|
] });
|
|
16851
17182
|
}
|
|
16852
17183
|
);
|
|
@@ -16858,7 +17189,7 @@ import {
|
|
|
16858
17189
|
usePopoverState
|
|
16859
17190
|
} from "reakit/Popover";
|
|
16860
17191
|
import { Portal as Portal2 } from "reakit/Portal";
|
|
16861
|
-
import { Fragment as Fragment16, jsx as
|
|
17192
|
+
import { Fragment as Fragment16, jsx as jsx97, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
|
|
16862
17193
|
var Popover2 = ({
|
|
16863
17194
|
iconColor = "action",
|
|
16864
17195
|
icon = "info",
|
|
@@ -16872,34 +17203,34 @@ var Popover2 = ({
|
|
|
16872
17203
|
const popover = usePopoverState({ placement });
|
|
16873
17204
|
return /* @__PURE__ */ jsxs64(Fragment16, { children: [
|
|
16874
17205
|
/* @__PURE__ */ jsxs64(PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, "data-test-id": testId, children: [
|
|
16875
|
-
/* @__PURE__ */
|
|
16876
|
-
/* @__PURE__ */
|
|
17206
|
+
/* @__PURE__ */ jsx97(Icon, { icon, iconColor, size: iconSize }),
|
|
17207
|
+
/* @__PURE__ */ jsx97("span", { hidden: true, children: buttonText })
|
|
16877
17208
|
] }),
|
|
16878
|
-
/* @__PURE__ */
|
|
17209
|
+
/* @__PURE__ */ jsx97(Portal2, { children: /* @__PURE__ */ jsx97(ReakitPopover, { css: Popover, ...popover, "aria-label": ariaLabel, children }) })
|
|
16879
17210
|
] });
|
|
16880
17211
|
};
|
|
16881
17212
|
|
|
16882
17213
|
// src/components/ProgressList/ProgressList.tsx
|
|
16883
|
-
import { css as
|
|
17214
|
+
import { css as css77 } from "@emotion/react";
|
|
16884
17215
|
import { useMemo as useMemo3 } from "react";
|
|
16885
17216
|
import { CgCheckO as CgCheckO2, CgRadioCheck, CgRecord } from "react-icons/cg";
|
|
16886
17217
|
|
|
16887
17218
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
16888
|
-
import { css as
|
|
16889
|
-
var progressListStyles =
|
|
17219
|
+
import { css as css76 } from "@emotion/react";
|
|
17220
|
+
var progressListStyles = css76`
|
|
16890
17221
|
display: flex;
|
|
16891
17222
|
flex-direction: column;
|
|
16892
17223
|
gap: var(--spacing-sm);
|
|
16893
17224
|
list-style-type: none;
|
|
16894
17225
|
`;
|
|
16895
|
-
var progressListItemStyles =
|
|
17226
|
+
var progressListItemStyles = css76`
|
|
16896
17227
|
display: flex;
|
|
16897
17228
|
gap: var(--spacing-base);
|
|
16898
17229
|
align-items: center;
|
|
16899
17230
|
`;
|
|
16900
17231
|
|
|
16901
17232
|
// src/components/ProgressList/ProgressList.tsx
|
|
16902
|
-
import { jsx as
|
|
17233
|
+
import { jsx as jsx98, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
|
|
16903
17234
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
16904
17235
|
const itemsWithStatus = useMemo3(() => {
|
|
16905
17236
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -16913,8 +17244,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
16913
17244
|
return { ...item, status };
|
|
16914
17245
|
});
|
|
16915
17246
|
}, [items, inProgressId]);
|
|
16916
|
-
return /* @__PURE__ */
|
|
16917
|
-
return /* @__PURE__ */
|
|
17247
|
+
return /* @__PURE__ */ jsx98("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
17248
|
+
return /* @__PURE__ */ jsx98(
|
|
16918
17249
|
ProgressListItem,
|
|
16919
17250
|
{
|
|
16920
17251
|
status,
|
|
@@ -16947,12 +17278,12 @@ var ProgressListItem = ({
|
|
|
16947
17278
|
}, [status, error]);
|
|
16948
17279
|
const statusStyles = useMemo3(() => {
|
|
16949
17280
|
if (error) {
|
|
16950
|
-
return errorLevel === "caution" ?
|
|
17281
|
+
return errorLevel === "caution" ? css77`
|
|
16951
17282
|
color: rgb(161, 98, 7);
|
|
16952
17283
|
& svg {
|
|
16953
17284
|
color: rgb(250, 204, 21);
|
|
16954
17285
|
}
|
|
16955
|
-
` :
|
|
17286
|
+
` : css77`
|
|
16956
17287
|
color: rgb(185, 28, 28);
|
|
16957
17288
|
& svg {
|
|
16958
17289
|
color: var(--brand-primary-2);
|
|
@@ -16960,35 +17291,35 @@ var ProgressListItem = ({
|
|
|
16960
17291
|
`;
|
|
16961
17292
|
}
|
|
16962
17293
|
const colorPerStatus = {
|
|
16963
|
-
completed:
|
|
17294
|
+
completed: css77`
|
|
16964
17295
|
opacity: 0.75;
|
|
16965
17296
|
`,
|
|
16966
|
-
inProgress:
|
|
17297
|
+
inProgress: css77`
|
|
16967
17298
|
-webkit-text-stroke-width: thin;
|
|
16968
17299
|
`,
|
|
16969
|
-
queued:
|
|
17300
|
+
queued: css77`
|
|
16970
17301
|
opacity: 0.5;
|
|
16971
17302
|
`
|
|
16972
17303
|
};
|
|
16973
17304
|
return colorPerStatus[status];
|
|
16974
17305
|
}, [status, error, errorLevel]);
|
|
16975
17306
|
return /* @__PURE__ */ jsxs65("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
16976
|
-
/* @__PURE__ */
|
|
17307
|
+
/* @__PURE__ */ jsx98(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx98("div", { children: /* @__PURE__ */ jsx98(Icon2, { size: 20 }) }) }),
|
|
16977
17308
|
/* @__PURE__ */ jsxs65("div", { children: [
|
|
16978
17309
|
children,
|
|
16979
|
-
/* @__PURE__ */
|
|
17310
|
+
/* @__PURE__ */ jsx98("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
16980
17311
|
] })
|
|
16981
17312
|
] });
|
|
16982
17313
|
};
|
|
16983
17314
|
|
|
16984
17315
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
16985
|
-
import { css as
|
|
17316
|
+
import { css as css79 } from "@emotion/react";
|
|
16986
17317
|
import { useCallback as useCallback6, useMemo as useMemo4 } from "react";
|
|
16987
17318
|
import { CgCheck as CgCheck4 } from "react-icons/cg";
|
|
16988
17319
|
|
|
16989
17320
|
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
16990
|
-
import { css as
|
|
16991
|
-
var segmentedControlStyles =
|
|
17321
|
+
import { css as css78 } from "@emotion/react";
|
|
17322
|
+
var segmentedControlStyles = css78`
|
|
16992
17323
|
--segmented-control-rounded-value: var(--rounded-base);
|
|
16993
17324
|
--segmented-control-border-width: 1px;
|
|
16994
17325
|
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
@@ -17007,14 +17338,14 @@ var segmentedControlStyles = css76`
|
|
|
17007
17338
|
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
17008
17339
|
font-size: var(--fs-xs);
|
|
17009
17340
|
`;
|
|
17010
|
-
var segmentedControlVerticalStyles =
|
|
17341
|
+
var segmentedControlVerticalStyles = css78`
|
|
17011
17342
|
flex-direction: column;
|
|
17012
17343
|
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
17013
17344
|
var(--segmented-control-rounded-value) 0 0;
|
|
17014
17345
|
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
17015
17346
|
var(--segmented-control-rounded-value);
|
|
17016
17347
|
`;
|
|
17017
|
-
var segmentedControlItemStyles =
|
|
17348
|
+
var segmentedControlItemStyles = css78`
|
|
17018
17349
|
&:first-of-type label {
|
|
17019
17350
|
border-radius: var(--segmented-control-first-border-radius);
|
|
17020
17351
|
}
|
|
@@ -17022,10 +17353,10 @@ var segmentedControlItemStyles = css76`
|
|
|
17022
17353
|
border-radius: var(--segmented-control-last-border-radius);
|
|
17023
17354
|
}
|
|
17024
17355
|
`;
|
|
17025
|
-
var segmentedControlInputStyles =
|
|
17356
|
+
var segmentedControlInputStyles = css78`
|
|
17026
17357
|
${accessibleHidden}
|
|
17027
17358
|
`;
|
|
17028
|
-
var segmentedControlLabelStyles =
|
|
17359
|
+
var segmentedControlLabelStyles = css78`
|
|
17029
17360
|
position: relative;
|
|
17030
17361
|
display: flex;
|
|
17031
17362
|
align-items: center;
|
|
@@ -17062,23 +17393,23 @@ var segmentedControlLabelStyles = css76`
|
|
|
17062
17393
|
background-color: var(--gray-400);
|
|
17063
17394
|
}
|
|
17064
17395
|
`;
|
|
17065
|
-
var segmentedControlLabelIconOnlyStyles =
|
|
17396
|
+
var segmentedControlLabelIconOnlyStyles = css78`
|
|
17066
17397
|
padding-inline: 0.5em;
|
|
17067
17398
|
`;
|
|
17068
|
-
var segmentedControlLabelCheckStyles =
|
|
17399
|
+
var segmentedControlLabelCheckStyles = css78`
|
|
17069
17400
|
opacity: 0.5;
|
|
17070
17401
|
`;
|
|
17071
|
-
var segmentedControlLabelContentStyles =
|
|
17402
|
+
var segmentedControlLabelContentStyles = css78`
|
|
17072
17403
|
display: flex;
|
|
17073
17404
|
align-items: center;
|
|
17074
17405
|
justify-content: center;
|
|
17075
17406
|
gap: var(--spacing-sm);
|
|
17076
17407
|
height: 100%;
|
|
17077
17408
|
`;
|
|
17078
|
-
var segmentedControlLabelTextStyles =
|
|
17409
|
+
var segmentedControlLabelTextStyles = css78``;
|
|
17079
17410
|
|
|
17080
17411
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
17081
|
-
import { jsx as
|
|
17412
|
+
import { jsx as jsx99, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
|
|
17082
17413
|
var SegmentedControl = ({
|
|
17083
17414
|
name,
|
|
17084
17415
|
options,
|
|
@@ -17100,16 +17431,16 @@ var SegmentedControl = ({
|
|
|
17100
17431
|
);
|
|
17101
17432
|
const sizeStyles = useMemo4(() => {
|
|
17102
17433
|
const map = {
|
|
17103
|
-
sm:
|
|
17104
|
-
md:
|
|
17105
|
-
lg:
|
|
17434
|
+
sm: css79({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
17435
|
+
md: css79({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
17436
|
+
lg: css79({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
|
|
17106
17437
|
};
|
|
17107
17438
|
return map[size];
|
|
17108
17439
|
}, [size]);
|
|
17109
17440
|
const isIconOnly = useMemo4(() => {
|
|
17110
17441
|
return options.every((option) => option.icon && !option.label);
|
|
17111
17442
|
}, [options]);
|
|
17112
|
-
return /* @__PURE__ */
|
|
17443
|
+
return /* @__PURE__ */ jsx99(
|
|
17113
17444
|
"div",
|
|
17114
17445
|
{
|
|
17115
17446
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
@@ -17117,11 +17448,11 @@ var SegmentedControl = ({
|
|
|
17117
17448
|
children: options.map((option, index) => {
|
|
17118
17449
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
17119
17450
|
const isDisabled = disabled || option.disabled;
|
|
17120
|
-
return /* @__PURE__ */
|
|
17451
|
+
return /* @__PURE__ */ jsx99(
|
|
17121
17452
|
Tooltip,
|
|
17122
17453
|
{
|
|
17123
17454
|
title: isDisabled || !option.tooltip ? "" : option.tooltip,
|
|
17124
|
-
children: /* @__PURE__ */
|
|
17455
|
+
children: /* @__PURE__ */ jsx99("div", { css: segmentedControlItemStyles, "data-test-id": "container-segmented-control", children: /* @__PURE__ */ jsxs66(
|
|
17125
17456
|
"label",
|
|
17126
17457
|
{
|
|
17127
17458
|
css: [
|
|
@@ -17130,7 +17461,7 @@ var SegmentedControl = ({
|
|
|
17130
17461
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
17131
17462
|
],
|
|
17132
17463
|
children: [
|
|
17133
|
-
/* @__PURE__ */
|
|
17464
|
+
/* @__PURE__ */ jsx99(
|
|
17134
17465
|
"input",
|
|
17135
17466
|
{
|
|
17136
17467
|
css: segmentedControlInputStyles,
|
|
@@ -17142,10 +17473,10 @@ var SegmentedControl = ({
|
|
|
17142
17473
|
disabled: isDisabled
|
|
17143
17474
|
}
|
|
17144
17475
|
),
|
|
17145
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */
|
|
17476
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx99(CgCheck4, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
17146
17477
|
/* @__PURE__ */ jsxs66("span", { css: segmentedControlLabelContentStyles, children: [
|
|
17147
|
-
!option.icon ? null : /* @__PURE__ */
|
|
17148
|
-
!text ? null : /* @__PURE__ */
|
|
17478
|
+
!option.icon ? null : /* @__PURE__ */ jsx99(option.icon, { size: "1.5em" }),
|
|
17479
|
+
!text ? null : /* @__PURE__ */ jsx99("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
17149
17480
|
] })
|
|
17150
17481
|
]
|
|
17151
17482
|
}
|
|
@@ -17159,18 +17490,18 @@ var SegmentedControl = ({
|
|
|
17159
17490
|
};
|
|
17160
17491
|
|
|
17161
17492
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
17162
|
-
import { css as
|
|
17493
|
+
import { css as css80, keyframes as keyframes4 } from "@emotion/react";
|
|
17163
17494
|
var lightFadingOut = keyframes4`
|
|
17164
17495
|
from { opacity: 0.1; }
|
|
17165
17496
|
to { opacity: 0.025; }
|
|
17166
17497
|
`;
|
|
17167
|
-
var skeletonStyles =
|
|
17498
|
+
var skeletonStyles = css80`
|
|
17168
17499
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
17169
17500
|
background-color: var(--gray-900);
|
|
17170
17501
|
`;
|
|
17171
17502
|
|
|
17172
17503
|
// src/components/Skeleton/Skeleton.tsx
|
|
17173
|
-
import { jsx as
|
|
17504
|
+
import { jsx as jsx100 } from "@emotion/react/jsx-runtime";
|
|
17174
17505
|
var Skeleton = ({
|
|
17175
17506
|
width = "100%",
|
|
17176
17507
|
height = "1.25rem",
|
|
@@ -17178,7 +17509,7 @@ var Skeleton = ({
|
|
|
17178
17509
|
circle = false,
|
|
17179
17510
|
children,
|
|
17180
17511
|
...otherProps
|
|
17181
|
-
}) => /* @__PURE__ */
|
|
17512
|
+
}) => /* @__PURE__ */ jsx100(
|
|
17182
17513
|
"div",
|
|
17183
17514
|
{
|
|
17184
17515
|
css: [
|
|
@@ -17198,11 +17529,11 @@ var Skeleton = ({
|
|
|
17198
17529
|
);
|
|
17199
17530
|
|
|
17200
17531
|
// src/components/Switch/Switch.tsx
|
|
17201
|
-
import * as
|
|
17532
|
+
import * as React20 from "react";
|
|
17202
17533
|
|
|
17203
17534
|
// src/components/Switch/Switch.styles.ts
|
|
17204
|
-
import { css as
|
|
17205
|
-
var SwitchInputContainer =
|
|
17535
|
+
import { css as css81 } from "@emotion/react";
|
|
17536
|
+
var SwitchInputContainer = css81`
|
|
17206
17537
|
cursor: pointer;
|
|
17207
17538
|
display: inline-block;
|
|
17208
17539
|
position: relative;
|
|
@@ -17211,7 +17542,7 @@ var SwitchInputContainer = css79`
|
|
|
17211
17542
|
vertical-align: middle;
|
|
17212
17543
|
user-select: none;
|
|
17213
17544
|
`;
|
|
17214
|
-
var SwitchInput =
|
|
17545
|
+
var SwitchInput = css81`
|
|
17215
17546
|
appearance: none;
|
|
17216
17547
|
border-radius: var(--rounded-full);
|
|
17217
17548
|
background-color: var(--white);
|
|
@@ -17249,7 +17580,7 @@ var SwitchInput = css79`
|
|
|
17249
17580
|
cursor: not-allowed;
|
|
17250
17581
|
}
|
|
17251
17582
|
`;
|
|
17252
|
-
var SwitchInputDisabled =
|
|
17583
|
+
var SwitchInputDisabled = css81`
|
|
17253
17584
|
opacity: var(--opacity-50);
|
|
17254
17585
|
cursor: not-allowed;
|
|
17255
17586
|
|
|
@@ -17257,7 +17588,7 @@ var SwitchInputDisabled = css79`
|
|
|
17257
17588
|
cursor: not-allowed;
|
|
17258
17589
|
}
|
|
17259
17590
|
`;
|
|
17260
|
-
var SwitchInputLabel =
|
|
17591
|
+
var SwitchInputLabel = css81`
|
|
17261
17592
|
align-items: center;
|
|
17262
17593
|
color: var(--brand-secondary-1);
|
|
17263
17594
|
display: inline-flex;
|
|
@@ -17279,15 +17610,15 @@ var SwitchInputLabel = css79`
|
|
|
17279
17610
|
top: 0;
|
|
17280
17611
|
}
|
|
17281
17612
|
`;
|
|
17282
|
-
var SwitchText =
|
|
17613
|
+
var SwitchText = css81`
|
|
17283
17614
|
color: var(--gray-500);
|
|
17284
17615
|
font-size: var(--fs-sm);
|
|
17285
17616
|
padding-inline: var(--spacing-2xl) 0;
|
|
17286
17617
|
`;
|
|
17287
17618
|
|
|
17288
17619
|
// src/components/Switch/Switch.tsx
|
|
17289
|
-
import { Fragment as Fragment17, jsx as
|
|
17290
|
-
var Switch =
|
|
17620
|
+
import { Fragment as Fragment17, jsx as jsx101, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
|
|
17621
|
+
var Switch = React20.forwardRef(
|
|
17291
17622
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
17292
17623
|
let additionalText = infoText;
|
|
17293
17624
|
if (infoText && toggleText) {
|
|
@@ -17295,77 +17626,77 @@ var Switch = React19.forwardRef(
|
|
|
17295
17626
|
}
|
|
17296
17627
|
return /* @__PURE__ */ jsxs67(Fragment17, { children: [
|
|
17297
17628
|
/* @__PURE__ */ jsxs67("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
17298
|
-
/* @__PURE__ */
|
|
17299
|
-
/* @__PURE__ */
|
|
17629
|
+
/* @__PURE__ */ jsx101("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
17630
|
+
/* @__PURE__ */ jsx101("span", { css: SwitchInputLabel, children: label })
|
|
17300
17631
|
] }),
|
|
17301
|
-
additionalText ? /* @__PURE__ */
|
|
17632
|
+
additionalText ? /* @__PURE__ */ jsx101("p", { css: SwitchText, children: additionalText }) : null,
|
|
17302
17633
|
children
|
|
17303
17634
|
] });
|
|
17304
17635
|
}
|
|
17305
17636
|
);
|
|
17306
17637
|
|
|
17307
17638
|
// src/components/Table/Table.tsx
|
|
17308
|
-
import * as
|
|
17639
|
+
import * as React21 from "react";
|
|
17309
17640
|
|
|
17310
17641
|
// src/components/Table/Table.styles.ts
|
|
17311
|
-
import { css as
|
|
17312
|
-
var table =
|
|
17642
|
+
import { css as css82 } from "@emotion/react";
|
|
17643
|
+
var table = css82`
|
|
17313
17644
|
border-bottom: 1px solid var(--gray-400);
|
|
17314
17645
|
border-collapse: collapse;
|
|
17315
17646
|
min-width: 100%;
|
|
17316
17647
|
table-layout: auto;
|
|
17317
17648
|
`;
|
|
17318
|
-
var tableHead =
|
|
17649
|
+
var tableHead = css82`
|
|
17319
17650
|
background: var(--gray-100);
|
|
17320
17651
|
color: var(--brand-secondary-1);
|
|
17321
17652
|
text-align: left;
|
|
17322
17653
|
`;
|
|
17323
|
-
var tableRow =
|
|
17654
|
+
var tableRow = css82`
|
|
17324
17655
|
border-bottom: 1px solid var(--gray-200);
|
|
17325
17656
|
`;
|
|
17326
|
-
var tableCellHead =
|
|
17657
|
+
var tableCellHead = css82`
|
|
17327
17658
|
font-size: var(--fs-sm);
|
|
17328
17659
|
padding: var(--spacing-base) var(--spacing-md);
|
|
17329
17660
|
text-transform: uppercase;
|
|
17330
17661
|
font-weight: var(--fw-bold);
|
|
17331
17662
|
`;
|
|
17332
|
-
var tableCellData =
|
|
17663
|
+
var tableCellData = css82`
|
|
17333
17664
|
padding: var(--spacing-base) var(--spacing-md);
|
|
17334
17665
|
`;
|
|
17335
17666
|
|
|
17336
17667
|
// src/components/Table/Table.tsx
|
|
17337
|
-
import { jsx as
|
|
17338
|
-
var Table =
|
|
17339
|
-
return /* @__PURE__ */
|
|
17668
|
+
import { jsx as jsx102 } from "@emotion/react/jsx-runtime";
|
|
17669
|
+
var Table = React21.forwardRef(({ children, ...otherProps }, ref) => {
|
|
17670
|
+
return /* @__PURE__ */ jsx102("table", { ref, css: table, ...otherProps, children });
|
|
17340
17671
|
});
|
|
17341
|
-
var TableHead =
|
|
17672
|
+
var TableHead = React21.forwardRef(
|
|
17342
17673
|
({ children, ...otherProps }, ref) => {
|
|
17343
|
-
return /* @__PURE__ */
|
|
17674
|
+
return /* @__PURE__ */ jsx102("thead", { ref, css: tableHead, ...otherProps, children });
|
|
17344
17675
|
}
|
|
17345
17676
|
);
|
|
17346
|
-
var TableBody =
|
|
17677
|
+
var TableBody = React21.forwardRef(
|
|
17347
17678
|
({ children, ...otherProps }, ref) => {
|
|
17348
|
-
return /* @__PURE__ */
|
|
17679
|
+
return /* @__PURE__ */ jsx102("tbody", { ref, ...otherProps, children });
|
|
17349
17680
|
}
|
|
17350
17681
|
);
|
|
17351
|
-
var TableFoot =
|
|
17682
|
+
var TableFoot = React21.forwardRef(
|
|
17352
17683
|
({ children, ...otherProps }, ref) => {
|
|
17353
|
-
return /* @__PURE__ */
|
|
17684
|
+
return /* @__PURE__ */ jsx102("tfoot", { ref, ...otherProps, children });
|
|
17354
17685
|
}
|
|
17355
17686
|
);
|
|
17356
|
-
var TableRow =
|
|
17687
|
+
var TableRow = React21.forwardRef(
|
|
17357
17688
|
({ children, ...otherProps }, ref) => {
|
|
17358
|
-
return /* @__PURE__ */
|
|
17689
|
+
return /* @__PURE__ */ jsx102("tr", { ref, css: tableRow, ...otherProps, children });
|
|
17359
17690
|
}
|
|
17360
17691
|
);
|
|
17361
|
-
var TableCellHead =
|
|
17692
|
+
var TableCellHead = React21.forwardRef(
|
|
17362
17693
|
({ children, ...otherProps }, ref) => {
|
|
17363
|
-
return /* @__PURE__ */
|
|
17694
|
+
return /* @__PURE__ */ jsx102("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
17364
17695
|
}
|
|
17365
17696
|
);
|
|
17366
|
-
var TableCellData =
|
|
17697
|
+
var TableCellData = React21.forwardRef(
|
|
17367
17698
|
({ children, ...otherProps }, ref) => {
|
|
17368
|
-
return /* @__PURE__ */
|
|
17699
|
+
return /* @__PURE__ */ jsx102("td", { ref, css: tableCellData, ...otherProps, children });
|
|
17369
17700
|
}
|
|
17370
17701
|
);
|
|
17371
17702
|
|
|
@@ -17379,8 +17710,8 @@ import {
|
|
|
17379
17710
|
} from "reakit/Tab";
|
|
17380
17711
|
|
|
17381
17712
|
// src/components/Tabs/Tabs.styles.ts
|
|
17382
|
-
import { css as
|
|
17383
|
-
var tabButtonStyles =
|
|
17713
|
+
import { css as css83 } from "@emotion/react";
|
|
17714
|
+
var tabButtonStyles = css83`
|
|
17384
17715
|
align-items: center;
|
|
17385
17716
|
border: 0;
|
|
17386
17717
|
height: 2.5rem;
|
|
@@ -17397,14 +17728,14 @@ var tabButtonStyles = css81`
|
|
|
17397
17728
|
box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
|
|
17398
17729
|
}
|
|
17399
17730
|
`;
|
|
17400
|
-
var tabButtonGroupStyles =
|
|
17731
|
+
var tabButtonGroupStyles = css83`
|
|
17401
17732
|
display: flex;
|
|
17402
17733
|
gap: var(--spacing-base);
|
|
17403
17734
|
border-bottom: 1px solid var(--gray-300);
|
|
17404
17735
|
`;
|
|
17405
17736
|
|
|
17406
17737
|
// src/components/Tabs/Tabs.tsx
|
|
17407
|
-
import { jsx as
|
|
17738
|
+
import { jsx as jsx103 } from "@emotion/react/jsx-runtime";
|
|
17408
17739
|
var CurrentTabContext = createContext6(null);
|
|
17409
17740
|
var useCurrentTab = () => {
|
|
17410
17741
|
const context = useContext7(CurrentTabContext);
|
|
@@ -17433,24 +17764,24 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
17433
17764
|
tab.setSelectedId(selected);
|
|
17434
17765
|
}
|
|
17435
17766
|
}, [selected]);
|
|
17436
|
-
return /* @__PURE__ */
|
|
17767
|
+
return /* @__PURE__ */ jsx103(CurrentTabContext.Provider, { value: tab, children });
|
|
17437
17768
|
};
|
|
17438
17769
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
17439
17770
|
const currentTab = useCurrentTab();
|
|
17440
|
-
return /* @__PURE__ */
|
|
17771
|
+
return /* @__PURE__ */ jsx103(ReakitTabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
17441
17772
|
};
|
|
17442
17773
|
var TabButton = ({ children, id, ...props }) => {
|
|
17443
17774
|
const currentTab = useCurrentTab();
|
|
17444
|
-
return /* @__PURE__ */
|
|
17775
|
+
return /* @__PURE__ */ jsx103(ReakitTab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
17445
17776
|
};
|
|
17446
17777
|
var TabContent = ({ children, ...props }) => {
|
|
17447
17778
|
const currentTab = useCurrentTab();
|
|
17448
|
-
return /* @__PURE__ */
|
|
17779
|
+
return /* @__PURE__ */ jsx103(ReakitTabPanel, { ...props, ...currentTab, children });
|
|
17449
17780
|
};
|
|
17450
17781
|
|
|
17451
17782
|
// src/components/Validation/StatusBullet.styles.ts
|
|
17452
|
-
import { css as
|
|
17453
|
-
var StatusBulletContainer =
|
|
17783
|
+
import { css as css84 } from "@emotion/react";
|
|
17784
|
+
var StatusBulletContainer = css84`
|
|
17454
17785
|
align-items: center;
|
|
17455
17786
|
align-self: center;
|
|
17456
17787
|
color: var(--gray-500);
|
|
@@ -17467,51 +17798,51 @@ var StatusBulletContainer = css82`
|
|
|
17467
17798
|
display: block;
|
|
17468
17799
|
}
|
|
17469
17800
|
`;
|
|
17470
|
-
var StatusBulletBase =
|
|
17801
|
+
var StatusBulletBase = css84`
|
|
17471
17802
|
font-size: var(--fs-sm);
|
|
17472
17803
|
&:before {
|
|
17473
17804
|
width: var(--fs-xs);
|
|
17474
17805
|
height: var(--fs-xs);
|
|
17475
17806
|
}
|
|
17476
17807
|
`;
|
|
17477
|
-
var StatusBulletSmall =
|
|
17808
|
+
var StatusBulletSmall = css84`
|
|
17478
17809
|
font-size: var(--fs-xs);
|
|
17479
17810
|
&:before {
|
|
17480
17811
|
width: var(--fs-xxs);
|
|
17481
17812
|
height: var(--fs-xxs);
|
|
17482
17813
|
}
|
|
17483
17814
|
`;
|
|
17484
|
-
var StatusDraft =
|
|
17815
|
+
var StatusDraft = css84`
|
|
17485
17816
|
&:before {
|
|
17486
17817
|
background: var(--white);
|
|
17487
17818
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
17488
17819
|
}
|
|
17489
17820
|
`;
|
|
17490
|
-
var StatusModified =
|
|
17821
|
+
var StatusModified = css84`
|
|
17491
17822
|
&:before {
|
|
17492
17823
|
background: linear-gradient(to right, var(--white) 50%, var(--primary-action-default) 50% 100%);
|
|
17493
17824
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
17494
17825
|
}
|
|
17495
17826
|
`;
|
|
17496
|
-
var StatusError =
|
|
17827
|
+
var StatusError = css84`
|
|
17497
17828
|
color: var(--error);
|
|
17498
17829
|
&:before {
|
|
17499
17830
|
background: linear-gradient(120deg, var(--error) 40%, var(--white) 50%, var(--error) 60%);
|
|
17500
17831
|
}
|
|
17501
17832
|
`;
|
|
17502
|
-
var StatusPublished =
|
|
17833
|
+
var StatusPublished = css84`
|
|
17503
17834
|
&:before {
|
|
17504
17835
|
background: var(--primary-action-default);
|
|
17505
17836
|
}
|
|
17506
17837
|
`;
|
|
17507
|
-
var StatusOrphan =
|
|
17838
|
+
var StatusOrphan = css84`
|
|
17508
17839
|
&:before {
|
|
17509
17840
|
background: var(--brand-secondary-5);
|
|
17510
17841
|
}
|
|
17511
17842
|
`;
|
|
17512
17843
|
|
|
17513
17844
|
// src/components/Validation/StatusBullet.tsx
|
|
17514
|
-
import { jsx as
|
|
17845
|
+
import { jsx as jsx104 } from "@emotion/react/jsx-runtime";
|
|
17515
17846
|
var StatusBullet = ({
|
|
17516
17847
|
status,
|
|
17517
17848
|
hideText = false,
|
|
@@ -17525,10 +17856,11 @@ var StatusBullet = ({
|
|
|
17525
17856
|
Unsaved: StatusDraft,
|
|
17526
17857
|
Orphan: StatusOrphan,
|
|
17527
17858
|
Published: StatusPublished,
|
|
17528
|
-
Draft: StatusDraft
|
|
17859
|
+
Draft: StatusDraft,
|
|
17860
|
+
Previous: StatusDraft
|
|
17529
17861
|
};
|
|
17530
17862
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
17531
|
-
return /* @__PURE__ */
|
|
17863
|
+
return /* @__PURE__ */ jsx104(
|
|
17532
17864
|
"span",
|
|
17533
17865
|
{
|
|
17534
17866
|
role: "status",
|
|
@@ -17656,7 +17988,9 @@ export {
|
|
|
17656
17988
|
Tabs,
|
|
17657
17989
|
Textarea,
|
|
17658
17990
|
Theme,
|
|
17991
|
+
Tile2 as Tile,
|
|
17659
17992
|
TileContainer,
|
|
17993
|
+
TileText2 as TileText,
|
|
17660
17994
|
Tooltip,
|
|
17661
17995
|
TwoColumnLayout,
|
|
17662
17996
|
UniformBadge,
|
|
@@ -17698,6 +18032,7 @@ export {
|
|
|
17698
18032
|
inputError,
|
|
17699
18033
|
inputSelect,
|
|
17700
18034
|
isMacLike,
|
|
18035
|
+
jsonIcon,
|
|
17701
18036
|
labelText,
|
|
17702
18037
|
loader_default as loaderAnimationData,
|
|
17703
18038
|
macifyShortcut,
|