@uniformdev/design-system 19.17.0 → 19.19.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/index.js
CHANGED
|
@@ -146,7 +146,9 @@ __export(src_exports, {
|
|
|
146
146
|
Tabs: () => Tabs,
|
|
147
147
|
Textarea: () => Textarea,
|
|
148
148
|
Theme: () => Theme,
|
|
149
|
+
Tile: () => Tile2,
|
|
149
150
|
TileContainer: () => TileContainer,
|
|
151
|
+
TileText: () => TileText2,
|
|
150
152
|
Tooltip: () => Tooltip,
|
|
151
153
|
TwoColumnLayout: () => TwoColumnLayout,
|
|
152
154
|
UniformBadge: () => UniformBadge,
|
|
@@ -188,6 +190,7 @@ __export(src_exports, {
|
|
|
188
190
|
inputError: () => inputError,
|
|
189
191
|
inputSelect: () => inputSelect,
|
|
190
192
|
isMacLike: () => isMacLike,
|
|
193
|
+
jsonIcon: () => jsonIcon,
|
|
191
194
|
labelText: () => labelText,
|
|
192
195
|
loaderAnimationData: () => loader_default,
|
|
193
196
|
macifyShortcut: () => macifyShortcut,
|
|
@@ -802,10 +805,17 @@ var toggleInput = import_react4.css`
|
|
|
802
805
|
}
|
|
803
806
|
|
|
804
807
|
&:disabled {
|
|
808
|
+
filter: grayscale(100%);
|
|
805
809
|
cursor: not-allowed;
|
|
806
810
|
color: var(--gray-300);
|
|
807
811
|
border-color: var(--gray-300);
|
|
808
812
|
}
|
|
813
|
+
|
|
814
|
+
&:disabled:checked {
|
|
815
|
+
background: var(--white)
|
|
816
|
+
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")
|
|
817
|
+
no-repeat center center;
|
|
818
|
+
}
|
|
809
819
|
`;
|
|
810
820
|
var inlineLabel = (fontWeight) => import_react4.css`
|
|
811
821
|
font-weight: ${fontWeight === "medium" ? "var(--fw-medium)" : fontWeight === "normal" ? "var(--fw-regular)" : "var(--fw-bold)"};
|
|
@@ -1718,6 +1728,74 @@ var formatSubscript = (0, import_react_icons.GenIcon)({
|
|
|
1718
1728
|
}
|
|
1719
1729
|
]
|
|
1720
1730
|
});
|
|
1731
|
+
var jsonIcon = (0, import_react_icons.GenIcon)({
|
|
1732
|
+
tag: "svg",
|
|
1733
|
+
attr: {
|
|
1734
|
+
role: "img",
|
|
1735
|
+
viewBox: "0 0 40 40"
|
|
1736
|
+
},
|
|
1737
|
+
child: [
|
|
1738
|
+
{
|
|
1739
|
+
tag: "path",
|
|
1740
|
+
attr: {
|
|
1741
|
+
fill: "currentColor",
|
|
1742
|
+
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"
|
|
1743
|
+
},
|
|
1744
|
+
child: []
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
tag: "path",
|
|
1748
|
+
attr: {
|
|
1749
|
+
fill: "currentColor",
|
|
1750
|
+
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"
|
|
1751
|
+
},
|
|
1752
|
+
child: []
|
|
1753
|
+
},
|
|
1754
|
+
{
|
|
1755
|
+
tag: "path",
|
|
1756
|
+
attr: {
|
|
1757
|
+
fill: "currentColor",
|
|
1758
|
+
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"
|
|
1759
|
+
},
|
|
1760
|
+
child: []
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
tag: "path",
|
|
1764
|
+
attr: {
|
|
1765
|
+
fill: "currentColor",
|
|
1766
|
+
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"
|
|
1767
|
+
},
|
|
1768
|
+
child: []
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
tag: "path",
|
|
1772
|
+
attr: {
|
|
1773
|
+
fill: "currentColor",
|
|
1774
|
+
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"
|
|
1775
|
+
},
|
|
1776
|
+
child: []
|
|
1777
|
+
}
|
|
1778
|
+
]
|
|
1779
|
+
});
|
|
1780
|
+
var clearFormatting = (0, import_react_icons.GenIcon)({
|
|
1781
|
+
tag: "svg",
|
|
1782
|
+
attr: {
|
|
1783
|
+
role: "img",
|
|
1784
|
+
viewBox: "0 0 24 24"
|
|
1785
|
+
},
|
|
1786
|
+
child: [
|
|
1787
|
+
{
|
|
1788
|
+
tag: "path",
|
|
1789
|
+
attr: {
|
|
1790
|
+
fill: "currentColor",
|
|
1791
|
+
fillRule: "evenodd",
|
|
1792
|
+
clipRule: "evenodd",
|
|
1793
|
+
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"
|
|
1794
|
+
},
|
|
1795
|
+
child: []
|
|
1796
|
+
}
|
|
1797
|
+
]
|
|
1798
|
+
});
|
|
1721
1799
|
var customIcons = {
|
|
1722
1800
|
"rectangle-rounded": rectangleRoundedIcon,
|
|
1723
1801
|
card: cardIcon,
|
|
@@ -1731,12 +1809,14 @@ var customIcons = {
|
|
|
1731
1809
|
"info-filled": infoFilledIcon,
|
|
1732
1810
|
settings,
|
|
1733
1811
|
"query-string": queryStringIcon,
|
|
1812
|
+
json: jsonIcon,
|
|
1734
1813
|
"format-bold": formatBoldIcon,
|
|
1735
1814
|
"format-code": formatCode,
|
|
1736
1815
|
"format-strike": formatStrike,
|
|
1737
1816
|
"format-superscript": formatSuperscript,
|
|
1738
1817
|
"format-subscript": formatSubscript,
|
|
1739
|
-
"layout-list-numbered": layoutListNumberedIcon
|
|
1818
|
+
"layout-list-numbered": layoutListNumberedIcon,
|
|
1819
|
+
"clear-formatting": clearFormatting
|
|
1740
1820
|
};
|
|
1741
1821
|
|
|
1742
1822
|
// src/components/AddListButton/AddListButton.styles.ts
|
|
@@ -11198,70 +11278,20 @@ var Button = React5.forwardRef(
|
|
|
11198
11278
|
var import_cg6 = require("react-icons/cg");
|
|
11199
11279
|
|
|
11200
11280
|
// src/components/Menu/Menu.tsx
|
|
11201
|
-
var
|
|
11281
|
+
var React7 = __toESM(require("react"));
|
|
11202
11282
|
var import_Menu = require("reakit/Menu");
|
|
11203
11283
|
var import_Portal = require("reakit/Portal");
|
|
11204
11284
|
|
|
11205
|
-
// src/components/Menu/
|
|
11206
|
-
var
|
|
11207
|
-
var menu = import_react27.css`
|
|
11208
|
-
box-shadow: var(--shadow-base);
|
|
11209
|
-
border-radius: var(--rounded-base);
|
|
11210
|
-
background: var(--gray-50);
|
|
11211
|
-
display: flex;
|
|
11212
|
-
flex-direction: column;
|
|
11213
|
-
padding: var(--spacing-sm);
|
|
11214
|
-
outline: none;
|
|
11215
|
-
overflow: hidden;
|
|
11216
|
-
position: relative;
|
|
11217
|
-
z-index: var(--z-50);
|
|
11218
|
-
`;
|
|
11219
|
-
|
|
11220
|
-
// src/components/Menu/Menu.tsx
|
|
11221
|
-
var import_jsx_runtime20 = require("@emotion/react/jsx-runtime");
|
|
11222
|
-
var MenuContext = React6.createContext({});
|
|
11223
|
-
var useMenuContext = () => {
|
|
11224
|
-
return React6.useContext(MenuContext);
|
|
11225
|
-
};
|
|
11226
|
-
var Menu = ({
|
|
11227
|
-
menuLabel,
|
|
11228
|
-
menuTrigger,
|
|
11229
|
-
placement = "auto",
|
|
11230
|
-
menuItemsContainerCssClasses,
|
|
11231
|
-
children,
|
|
11232
|
-
forceVisible
|
|
11233
|
-
}) => {
|
|
11234
|
-
const menuState = (0, import_Menu.useMenuState)({ placement, visible: forceVisible });
|
|
11235
|
-
React6.useEffect(() => {
|
|
11236
|
-
if (forceVisible !== void 0) {
|
|
11237
|
-
menuState.setVisible(forceVisible);
|
|
11238
|
-
}
|
|
11239
|
-
});
|
|
11240
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(MenuContext.Provider, { value: menuState, children: [
|
|
11241
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_Menu.MenuButton, { ...menuState, ref: menuTrigger.ref, ...menuTrigger.props, children: (triggerProps) => React6.cloneElement(menuTrigger, triggerProps) }),
|
|
11242
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_Portal.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
11243
|
-
import_Menu.Menu,
|
|
11244
|
-
{
|
|
11245
|
-
...menuState,
|
|
11246
|
-
"aria-label": menuLabel,
|
|
11247
|
-
css: [
|
|
11248
|
-
menu,
|
|
11249
|
-
typeof menuItemsContainerCssClasses === "object" ? menuItemsContainerCssClasses : void 0
|
|
11250
|
-
],
|
|
11251
|
-
className: typeof menuItemsContainerCssClasses === "string" ? menuItemsContainerCssClasses : "",
|
|
11252
|
-
children
|
|
11253
|
-
}
|
|
11254
|
-
) })
|
|
11255
|
-
] });
|
|
11256
|
-
};
|
|
11285
|
+
// src/components/Menu/filterMenuSeparators.ts
|
|
11286
|
+
var import_react29 = __toESM(require("react"));
|
|
11257
11287
|
|
|
11258
11288
|
// src/components/Menu/MenuGroup.styles.ts
|
|
11259
|
-
var
|
|
11260
|
-
var MenuGroupContainer =
|
|
11289
|
+
var import_react27 = require("@emotion/react");
|
|
11290
|
+
var MenuGroupContainer = import_react27.css`
|
|
11261
11291
|
display: flex;
|
|
11262
11292
|
flex-direction: column;
|
|
11263
11293
|
`;
|
|
11264
|
-
var MenuTitle =
|
|
11294
|
+
var MenuTitle = import_react27.css`
|
|
11265
11295
|
color: var(--gray-400);
|
|
11266
11296
|
font-size: var(--fs-xs);
|
|
11267
11297
|
font-weight: var(--fw-bold);
|
|
@@ -11269,21 +11299,17 @@ var MenuTitle = import_react28.css`
|
|
|
11269
11299
|
`;
|
|
11270
11300
|
|
|
11271
11301
|
// src/components/Menu/MenuGroup.tsx
|
|
11272
|
-
var
|
|
11302
|
+
var import_jsx_runtime20 = require("@emotion/react/jsx-runtime");
|
|
11273
11303
|
var MenuGroup = ({ title, children }) => {
|
|
11274
|
-
return /* @__PURE__ */ (0,
|
|
11275
|
-
/* @__PURE__ */ (0,
|
|
11304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { css: MenuGroupContainer, "data-test-id": "menu-group", children: [
|
|
11305
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { css: MenuTitle, children: title }),
|
|
11276
11306
|
children
|
|
11277
11307
|
] });
|
|
11278
11308
|
};
|
|
11279
11309
|
|
|
11280
|
-
// src/components/Menu/MenuItem.tsx
|
|
11281
|
-
var React7 = __toESM(require("react"));
|
|
11282
|
-
var import_reakit = require("reakit");
|
|
11283
|
-
|
|
11284
11310
|
// src/components/Menu/MenuItem.styles.ts
|
|
11285
|
-
var
|
|
11286
|
-
var menuItem = (textTheme) =>
|
|
11311
|
+
var import_react28 = require("@emotion/react");
|
|
11312
|
+
var menuItem = (textTheme) => import_react28.css`
|
|
11287
11313
|
align-items: center;
|
|
11288
11314
|
border: none;
|
|
11289
11315
|
border-radius: var(--rounded-base);
|
|
@@ -11309,7 +11335,7 @@ var menuItem = (textTheme) => import_react29.css`
|
|
|
11309
11335
|
outline: none;
|
|
11310
11336
|
}
|
|
11311
11337
|
`;
|
|
11312
|
-
var menuItemWithIcon =
|
|
11338
|
+
var menuItemWithIcon = import_react28.css`
|
|
11313
11339
|
align-items: center;
|
|
11314
11340
|
display: flex;
|
|
11315
11341
|
justify-content: space-between;
|
|
@@ -11321,15 +11347,120 @@ var menuItemWithIcon = import_react29.css`
|
|
|
11321
11347
|
height: var(--spacing-base);
|
|
11322
11348
|
}
|
|
11323
11349
|
`;
|
|
11324
|
-
var menuItemSeparator =
|
|
11350
|
+
var menuItemSeparator = import_react28.css`
|
|
11325
11351
|
border-top: 1px solid var(--gray-300);
|
|
11326
11352
|
width: 100%;
|
|
11327
11353
|
margin-block: var(--spacing-sm);
|
|
11328
11354
|
`;
|
|
11329
11355
|
|
|
11330
|
-
// src/components/Menu/
|
|
11356
|
+
// src/components/Menu/MenuItemSeparator.tsx
|
|
11357
|
+
var import_jsx_runtime21 = require("@emotion/react/jsx-runtime");
|
|
11358
|
+
var MenuItemSeparator = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("hr", { css: menuItemSeparator, "data-testid": "menu-separator" });
|
|
11359
|
+
|
|
11360
|
+
// src/components/Menu/filterMenuSeparators.ts
|
|
11361
|
+
function filterMenuSeparators(children, context) {
|
|
11362
|
+
const currentContext = context || { lastChildWasSeparator: false, effectiveIndex: 0 };
|
|
11363
|
+
if (!Array.isArray(children)) {
|
|
11364
|
+
return children;
|
|
11365
|
+
}
|
|
11366
|
+
const filteredList = [];
|
|
11367
|
+
children.forEach((child, index) => {
|
|
11368
|
+
if (child === null || child === false) {
|
|
11369
|
+
return;
|
|
11370
|
+
}
|
|
11371
|
+
const isSeparator = isMenuSeparator(child);
|
|
11372
|
+
if (currentContext.effectiveIndex === 0 && isSeparator) {
|
|
11373
|
+
return;
|
|
11374
|
+
}
|
|
11375
|
+
if (isSeparator && index === children.length - 1) {
|
|
11376
|
+
return;
|
|
11377
|
+
}
|
|
11378
|
+
if (isSeparator && currentContext.lastChildWasSeparator) {
|
|
11379
|
+
return;
|
|
11380
|
+
}
|
|
11381
|
+
if (isSubgroup(child)) {
|
|
11382
|
+
child = {
|
|
11383
|
+
...child,
|
|
11384
|
+
props: {
|
|
11385
|
+
...child.props,
|
|
11386
|
+
children: filterMenuSeparators(child.props.children, currentContext)
|
|
11387
|
+
}
|
|
11388
|
+
};
|
|
11389
|
+
filteredList.push(child);
|
|
11390
|
+
return;
|
|
11391
|
+
}
|
|
11392
|
+
currentContext.effectiveIndex++;
|
|
11393
|
+
currentContext.lastChildWasSeparator = isSeparator;
|
|
11394
|
+
filteredList.push(child);
|
|
11395
|
+
});
|
|
11396
|
+
return filteredList;
|
|
11397
|
+
}
|
|
11398
|
+
function isSubgroup(child) {
|
|
11399
|
+
return (0, import_react29.isValidElement)(child) && (child.type === import_react29.default.Fragment || child.type === MenuGroup);
|
|
11400
|
+
}
|
|
11401
|
+
function isMenuSeparator(child) {
|
|
11402
|
+
return (0, import_react29.isValidElement)(child) && child.type === MenuItemSeparator;
|
|
11403
|
+
}
|
|
11404
|
+
|
|
11405
|
+
// src/components/Menu/Menu.styles.ts
|
|
11406
|
+
var import_react30 = require("@emotion/react");
|
|
11407
|
+
var menu = import_react30.css`
|
|
11408
|
+
box-shadow: var(--shadow-base);
|
|
11409
|
+
border-radius: var(--rounded-base);
|
|
11410
|
+
background: var(--gray-50);
|
|
11411
|
+
display: flex;
|
|
11412
|
+
flex-direction: column;
|
|
11413
|
+
padding: var(--spacing-sm);
|
|
11414
|
+
outline: none;
|
|
11415
|
+
overflow: hidden;
|
|
11416
|
+
position: relative;
|
|
11417
|
+
z-index: var(--z-50);
|
|
11418
|
+
`;
|
|
11419
|
+
|
|
11420
|
+
// src/components/Menu/Menu.tsx
|
|
11331
11421
|
var import_jsx_runtime22 = require("@emotion/react/jsx-runtime");
|
|
11332
|
-
var
|
|
11422
|
+
var MenuContext = React7.createContext({});
|
|
11423
|
+
var useMenuContext = () => {
|
|
11424
|
+
return React7.useContext(MenuContext);
|
|
11425
|
+
};
|
|
11426
|
+
var Menu = ({
|
|
11427
|
+
menuLabel,
|
|
11428
|
+
menuTrigger,
|
|
11429
|
+
placement = "auto",
|
|
11430
|
+
menuItemsContainerCssClasses,
|
|
11431
|
+
children,
|
|
11432
|
+
forceVisible,
|
|
11433
|
+
disableAutoSeparatorManagement
|
|
11434
|
+
}) => {
|
|
11435
|
+
const menuState = (0, import_Menu.useMenuState)({ placement, visible: forceVisible });
|
|
11436
|
+
React7.useEffect(() => {
|
|
11437
|
+
if (forceVisible !== void 0) {
|
|
11438
|
+
menuState.setVisible(forceVisible);
|
|
11439
|
+
}
|
|
11440
|
+
});
|
|
11441
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(MenuContext.Provider, { value: menuState, children: [
|
|
11442
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_Menu.MenuButton, { ...menuState, ref: menuTrigger.ref, ...menuTrigger.props, children: (triggerProps) => React7.cloneElement(menuTrigger, triggerProps) }),
|
|
11443
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_Portal.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
11444
|
+
import_Menu.Menu,
|
|
11445
|
+
{
|
|
11446
|
+
...menuState,
|
|
11447
|
+
"aria-label": menuLabel,
|
|
11448
|
+
css: [
|
|
11449
|
+
menu,
|
|
11450
|
+
typeof menuItemsContainerCssClasses === "object" ? menuItemsContainerCssClasses : void 0
|
|
11451
|
+
],
|
|
11452
|
+
className: typeof menuItemsContainerCssClasses === "string" ? menuItemsContainerCssClasses : "",
|
|
11453
|
+
children: disableAutoSeparatorManagement ? children : filterMenuSeparators(children)
|
|
11454
|
+
}
|
|
11455
|
+
) })
|
|
11456
|
+
] });
|
|
11457
|
+
};
|
|
11458
|
+
|
|
11459
|
+
// src/components/Menu/MenuItem.tsx
|
|
11460
|
+
var React8 = __toESM(require("react"));
|
|
11461
|
+
var import_reakit = require("reakit");
|
|
11462
|
+
var import_jsx_runtime23 = require("@emotion/react/jsx-runtime");
|
|
11463
|
+
var MenuItem = React8.forwardRef(
|
|
11333
11464
|
({ children, className, hideMenuOnClick = true, icon, textColor = "base", ...props }, ref) => {
|
|
11334
11465
|
const menuState = useMenuContext();
|
|
11335
11466
|
const resolveProps = (originalProps) => {
|
|
@@ -11345,7 +11476,7 @@ var MenuItem = React7.forwardRef(
|
|
|
11345
11476
|
};
|
|
11346
11477
|
const resolvedProps = hideMenuOnClick ? resolveProps(props) : props;
|
|
11347
11478
|
const resolvedChildren = typeof children === "function" ? children(resolvedProps) : children;
|
|
11348
|
-
return /* @__PURE__ */ (0,
|
|
11479
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11349
11480
|
import_reakit.MenuItem,
|
|
11350
11481
|
{
|
|
11351
11482
|
ref,
|
|
@@ -11361,20 +11492,16 @@ var MenuItem = React7.forwardRef(
|
|
|
11361
11492
|
}
|
|
11362
11493
|
);
|
|
11363
11494
|
function renderWithIcon(children, icon) {
|
|
11364
|
-
return /* @__PURE__ */ (0,
|
|
11495
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("span", { css: menuItemWithIcon, children: [
|
|
11365
11496
|
icon,
|
|
11366
11497
|
" ",
|
|
11367
11498
|
children
|
|
11368
11499
|
] });
|
|
11369
11500
|
}
|
|
11370
11501
|
|
|
11371
|
-
// src/components/Menu/MenuItemSeparator.tsx
|
|
11372
|
-
var import_jsx_runtime23 = require("@emotion/react/jsx-runtime");
|
|
11373
|
-
var MenuItemSeparator = () => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("hr", { css: menuItemSeparator });
|
|
11374
|
-
|
|
11375
11502
|
// src/components/ButtonWithMenu/ButtonWithMenu.styles.ts
|
|
11376
|
-
var
|
|
11377
|
-
var ButtonWithMenuContainer =
|
|
11503
|
+
var import_react31 = require("@emotion/react");
|
|
11504
|
+
var ButtonWithMenuContainer = import_react31.css`
|
|
11378
11505
|
align-items: center;
|
|
11379
11506
|
border: 1px solid transparent;
|
|
11380
11507
|
border-radius: var(--rounded-sm);
|
|
@@ -11395,7 +11522,7 @@ var ButtonWithMenuContainer = import_react30.css`
|
|
|
11395
11522
|
border-color: var(--gray-700);
|
|
11396
11523
|
}
|
|
11397
11524
|
`;
|
|
11398
|
-
var ButtonWithMenuBtn =
|
|
11525
|
+
var ButtonWithMenuBtn = import_react31.css`
|
|
11399
11526
|
border: 1px solid transparent;
|
|
11400
11527
|
background: transparent;
|
|
11401
11528
|
border-radius: var(--rounded-base);
|
|
@@ -11418,19 +11545,19 @@ var ButtonWithMenuBtn = import_react30.css`
|
|
|
11418
11545
|
pointer-events: none;
|
|
11419
11546
|
}
|
|
11420
11547
|
`;
|
|
11421
|
-
var ButtonWithMenuIcon =
|
|
11548
|
+
var ButtonWithMenuIcon = import_react31.css`
|
|
11422
11549
|
padding: var(--spacing-sm);
|
|
11423
11550
|
border-left: 1px solid currentColor;
|
|
11424
11551
|
`;
|
|
11425
|
-
var buttonPrimary2 =
|
|
11552
|
+
var buttonPrimary2 = import_react31.css`
|
|
11426
11553
|
background: var(--brand-secondary-1);
|
|
11427
11554
|
color: var(--white);
|
|
11428
11555
|
`;
|
|
11429
|
-
var buttonPrimaryDisabled =
|
|
11556
|
+
var buttonPrimaryDisabled = import_react31.css`
|
|
11430
11557
|
background: var(--gray-300);
|
|
11431
11558
|
color: var(--white);
|
|
11432
11559
|
`;
|
|
11433
|
-
var buttonSecondary2 =
|
|
11560
|
+
var buttonSecondary2 = import_react31.css`
|
|
11434
11561
|
background: var(--primary-action-default);
|
|
11435
11562
|
color: var(--white);
|
|
11436
11563
|
|
|
@@ -11438,17 +11565,17 @@ var buttonSecondary2 = import_react30.css`
|
|
|
11438
11565
|
background: var(--primary-action-hover);
|
|
11439
11566
|
}
|
|
11440
11567
|
`;
|
|
11441
|
-
var buttonSecondaryDisabled =
|
|
11568
|
+
var buttonSecondaryDisabled = import_react31.css`
|
|
11442
11569
|
${buttonPrimaryDisabled}
|
|
11443
11570
|
`;
|
|
11444
|
-
var buttonUnimportant2 =
|
|
11571
|
+
var buttonUnimportant2 = import_react31.css`
|
|
11445
11572
|
background: var(--brand-secondary-2);
|
|
11446
11573
|
color: var(--brand-secondary-1);
|
|
11447
11574
|
`;
|
|
11448
|
-
var buttonUnimportantDisabled =
|
|
11575
|
+
var buttonUnimportantDisabled = import_react31.css`
|
|
11449
11576
|
${buttonPrimaryDisabled}
|
|
11450
11577
|
`;
|
|
11451
|
-
var buttonGhost2 =
|
|
11578
|
+
var buttonGhost2 = import_react31.css`
|
|
11452
11579
|
background: transparent;
|
|
11453
11580
|
color: var(--brand-secondary-3);
|
|
11454
11581
|
|
|
@@ -11456,7 +11583,7 @@ var buttonGhost2 = import_react30.css`
|
|
|
11456
11583
|
border-color: var(--brand-secondary-3);
|
|
11457
11584
|
}
|
|
11458
11585
|
`;
|
|
11459
|
-
var buttonGhostDisabled =
|
|
11586
|
+
var buttonGhostDisabled = import_react31.css`
|
|
11460
11587
|
border-color: var(--gray-400);
|
|
11461
11588
|
color: var(--gray-400);
|
|
11462
11589
|
`;
|
|
@@ -11517,18 +11644,18 @@ var ButtonWithMenu = ({
|
|
|
11517
11644
|
};
|
|
11518
11645
|
|
|
11519
11646
|
// src/components/Callout/Callout.tsx
|
|
11520
|
-
var
|
|
11647
|
+
var import_react33 = require("@emotion/react");
|
|
11521
11648
|
|
|
11522
11649
|
// src/components/Callout/Callout.styles.ts
|
|
11523
|
-
var
|
|
11524
|
-
var calloutContainer =
|
|
11650
|
+
var import_react32 = require("@emotion/react");
|
|
11651
|
+
var calloutContainer = import_react32.css`
|
|
11525
11652
|
${functionalColors}
|
|
11526
11653
|
|
|
11527
11654
|
font-size: var(--fs-sm);
|
|
11528
11655
|
border-radius: var(--rounded-base);
|
|
11529
11656
|
padding: var(--spacing-base);
|
|
11530
11657
|
`;
|
|
11531
|
-
var calloutContainerCompact =
|
|
11658
|
+
var calloutContainerCompact = import_react32.css`
|
|
11532
11659
|
font-size: var(--fs-xs);
|
|
11533
11660
|
padding: var(--spacing-sm);
|
|
11534
11661
|
border-radius: 0 var(--rounded-base) var(--rounded-base) 0;
|
|
@@ -11540,25 +11667,25 @@ var calloutContainerCompact = import_react31.css`
|
|
|
11540
11667
|
--note-desc: var(--brand-secondary-1);
|
|
11541
11668
|
--success-desc: var(--brand-secondary-1);
|
|
11542
11669
|
`;
|
|
11543
|
-
var calloutInner =
|
|
11670
|
+
var calloutInner = import_react32.css`
|
|
11544
11671
|
display: flex;
|
|
11545
11672
|
gap: var(--spacing-sm);
|
|
11546
11673
|
`;
|
|
11547
|
-
var calloutBody =
|
|
11674
|
+
var calloutBody = import_react32.css`
|
|
11548
11675
|
display: flex;
|
|
11549
11676
|
flex-direction: column;
|
|
11550
11677
|
gap: var(--spacing-base);
|
|
11551
11678
|
`;
|
|
11552
|
-
var calloutBodyCompact =
|
|
11679
|
+
var calloutBodyCompact = import_react32.css`
|
|
11553
11680
|
gap: var(--spacing-xs);
|
|
11554
11681
|
`;
|
|
11555
|
-
var calloutIconWrap =
|
|
11682
|
+
var calloutIconWrap = import_react32.css`
|
|
11556
11683
|
flex-shrink: 0;
|
|
11557
11684
|
`;
|
|
11558
|
-
var calloutTitle =
|
|
11685
|
+
var calloutTitle = import_react32.css`
|
|
11559
11686
|
font-weight: var(--fw-bold);
|
|
11560
11687
|
`;
|
|
11561
|
-
var calloutIcon =
|
|
11688
|
+
var calloutIcon = import_react32.css`
|
|
11562
11689
|
width: 1.25rem;
|
|
11563
11690
|
height: 1.25rem;
|
|
11564
11691
|
`;
|
|
@@ -11692,91 +11819,91 @@ var import_jsx_runtime26 = require("@emotion/react/jsx-runtime");
|
|
|
11692
11819
|
var calloutTypeDataMap = {
|
|
11693
11820
|
caution: {
|
|
11694
11821
|
icon: CautionIcon,
|
|
11695
|
-
descriptionColor:
|
|
11822
|
+
descriptionColor: import_react33.css`
|
|
11696
11823
|
color: var(--caution-desc);
|
|
11697
11824
|
`,
|
|
11698
|
-
iconColor:
|
|
11825
|
+
iconColor: import_react33.css`
|
|
11699
11826
|
color: var(--caution-icon);
|
|
11700
11827
|
`,
|
|
11701
|
-
containerStyles:
|
|
11828
|
+
containerStyles: import_react33.css`
|
|
11702
11829
|
color: var(--caution-title);
|
|
11703
11830
|
background-color: var(--caution-container);
|
|
11704
11831
|
`
|
|
11705
11832
|
},
|
|
11706
11833
|
danger: {
|
|
11707
11834
|
icon: DangerIcon,
|
|
11708
|
-
descriptionColor:
|
|
11835
|
+
descriptionColor: import_react33.css`
|
|
11709
11836
|
color: var(--danger-desc);
|
|
11710
11837
|
`,
|
|
11711
|
-
iconColor:
|
|
11838
|
+
iconColor: import_react33.css`
|
|
11712
11839
|
color: var(--danger-icon);
|
|
11713
11840
|
`,
|
|
11714
|
-
containerStyles:
|
|
11841
|
+
containerStyles: import_react33.css`
|
|
11715
11842
|
color: var(--danger-title);
|
|
11716
11843
|
background-color: var(--danger-container);
|
|
11717
11844
|
`
|
|
11718
11845
|
},
|
|
11719
11846
|
error: {
|
|
11720
11847
|
icon: CautionIcon,
|
|
11721
|
-
descriptionColor:
|
|
11848
|
+
descriptionColor: import_react33.css`
|
|
11722
11849
|
color: var(--danger-desc);
|
|
11723
11850
|
`,
|
|
11724
|
-
iconColor:
|
|
11851
|
+
iconColor: import_react33.css`
|
|
11725
11852
|
color: var(--danger-icon);
|
|
11726
11853
|
`,
|
|
11727
|
-
containerStyles:
|
|
11854
|
+
containerStyles: import_react33.css`
|
|
11728
11855
|
color: var(--danger-title);
|
|
11729
11856
|
background-color: var(--danger-container);
|
|
11730
11857
|
`
|
|
11731
11858
|
},
|
|
11732
11859
|
info: {
|
|
11733
11860
|
icon: InfoIcon,
|
|
11734
|
-
descriptionColor:
|
|
11861
|
+
descriptionColor: import_react33.css`
|
|
11735
11862
|
color: var(--info-desc);
|
|
11736
11863
|
`,
|
|
11737
|
-
iconColor:
|
|
11864
|
+
iconColor: import_react33.css`
|
|
11738
11865
|
color: var(--info-icon);
|
|
11739
11866
|
`,
|
|
11740
|
-
containerStyles:
|
|
11867
|
+
containerStyles: import_react33.css`
|
|
11741
11868
|
color: var(--info-title);
|
|
11742
11869
|
background-color: var(--info-container);
|
|
11743
11870
|
`
|
|
11744
11871
|
},
|
|
11745
11872
|
note: {
|
|
11746
11873
|
icon: NoteIcon,
|
|
11747
|
-
descriptionColor:
|
|
11874
|
+
descriptionColor: import_react33.css`
|
|
11748
11875
|
color: var(--note-desc);
|
|
11749
11876
|
`,
|
|
11750
|
-
iconColor:
|
|
11877
|
+
iconColor: import_react33.css`
|
|
11751
11878
|
color: var(--note-icon);
|
|
11752
11879
|
`,
|
|
11753
|
-
containerStyles:
|
|
11880
|
+
containerStyles: import_react33.css`
|
|
11754
11881
|
color: var(--note-title);
|
|
11755
11882
|
background-color: var(--note-container);
|
|
11756
11883
|
`
|
|
11757
11884
|
},
|
|
11758
11885
|
success: {
|
|
11759
11886
|
icon: SuccessIcon,
|
|
11760
|
-
descriptionColor:
|
|
11887
|
+
descriptionColor: import_react33.css`
|
|
11761
11888
|
color: var(--success-desc);
|
|
11762
11889
|
`,
|
|
11763
|
-
iconColor:
|
|
11890
|
+
iconColor: import_react33.css`
|
|
11764
11891
|
color: var(--success-icon);
|
|
11765
11892
|
`,
|
|
11766
|
-
containerStyles:
|
|
11893
|
+
containerStyles: import_react33.css`
|
|
11767
11894
|
color: var(--success-title);
|
|
11768
11895
|
background-color: var(--success-container);
|
|
11769
11896
|
`
|
|
11770
11897
|
},
|
|
11771
11898
|
tip: {
|
|
11772
11899
|
icon: TipIcon,
|
|
11773
|
-
descriptionColor:
|
|
11900
|
+
descriptionColor: import_react33.css`
|
|
11774
11901
|
color: var(--success-desc);
|
|
11775
11902
|
`,
|
|
11776
|
-
iconColor:
|
|
11903
|
+
iconColor: import_react33.css`
|
|
11777
11904
|
color: var(--success-icon);
|
|
11778
11905
|
`,
|
|
11779
|
-
containerStyles:
|
|
11906
|
+
containerStyles: import_react33.css`
|
|
11780
11907
|
color: var(--success-title);
|
|
11781
11908
|
background-color: var(--success-container);
|
|
11782
11909
|
`
|
|
@@ -11821,8 +11948,8 @@ var Callout = ({
|
|
|
11821
11948
|
var import_cg7 = require("react-icons/cg");
|
|
11822
11949
|
|
|
11823
11950
|
// src/components/Card/Card.styles.ts
|
|
11824
|
-
var
|
|
11825
|
-
var CardContainer =
|
|
11951
|
+
var import_react34 = require("@emotion/react");
|
|
11952
|
+
var CardContainer = import_react34.css`
|
|
11826
11953
|
background: var(--white);
|
|
11827
11954
|
border: 1px solid var(--gray-300);
|
|
11828
11955
|
border-radius: var(--rounded-base);
|
|
@@ -11835,7 +11962,7 @@ var CardContainer = import_react33.css`
|
|
|
11835
11962
|
background: var(--gray-50);
|
|
11836
11963
|
}
|
|
11837
11964
|
`;
|
|
11838
|
-
var CardTitle = (marginBottom) =>
|
|
11965
|
+
var CardTitle = (marginBottom) => import_react34.css`
|
|
11839
11966
|
display: flex;
|
|
11840
11967
|
margin: ${marginBottom ? "0 0 var(--spacing-base)" : "0"};
|
|
11841
11968
|
padding-right: var(--spacing-lg);
|
|
@@ -11843,7 +11970,7 @@ var CardTitle = (marginBottom) => import_react33.css`
|
|
|
11843
11970
|
gap: var(--spacing-xs);
|
|
11844
11971
|
font-weight: var(--fw-regular);
|
|
11845
11972
|
`;
|
|
11846
|
-
var CardMenu =
|
|
11973
|
+
var CardMenu = import_react34.css`
|
|
11847
11974
|
align-items: center;
|
|
11848
11975
|
background: transparent;
|
|
11849
11976
|
color: var(--gray-300);
|
|
@@ -11906,12 +12033,12 @@ var CardTitle2 = ({ title, titleWithMarginBottom, children }) => {
|
|
|
11906
12033
|
};
|
|
11907
12034
|
|
|
11908
12035
|
// src/components/Card/CardContainer.styles.ts
|
|
11909
|
-
var
|
|
11910
|
-
var CardContainerWrapper = (bgColor) =>
|
|
12036
|
+
var import_react35 = require("@emotion/react");
|
|
12037
|
+
var CardContainerWrapper = (bgColor) => import_react35.css`
|
|
11911
12038
|
background: ${bgColor === "gray" ? `var(--gray-50)` : `var(--white)`};
|
|
11912
12039
|
container-type: inline-size;
|
|
11913
12040
|
`;
|
|
11914
|
-
var CardContainerInner = ({ padding, withLastColumn }) =>
|
|
12041
|
+
var CardContainerInner = ({ padding, withLastColumn }) => import_react35.css`
|
|
11915
12042
|
display: grid;
|
|
11916
12043
|
gap: var(--spacing-lg);
|
|
11917
12044
|
max-width: var(--site-width);
|
|
@@ -11940,8 +12067,8 @@ var CardContainer2 = ({
|
|
|
11940
12067
|
var import_cg8 = require("react-icons/cg");
|
|
11941
12068
|
|
|
11942
12069
|
// src/components/Layout/styles/Container.styles.ts
|
|
11943
|
-
var
|
|
11944
|
-
var Container = ({ backgroundColor, border, rounded, padding, margin }) =>
|
|
12070
|
+
var import_react36 = require("@emotion/react");
|
|
12071
|
+
var Container = ({ backgroundColor, border, rounded, padding, margin }) => import_react36.css`
|
|
11945
12072
|
background: var(--${backgroundColor});
|
|
11946
12073
|
${border ? "border: 1px solid var(--gray-300)" : void 0};
|
|
11947
12074
|
${rounded ? `border-radius: var(--${rounded})` : void 0};
|
|
@@ -11979,11 +12106,11 @@ var Container2 = ({
|
|
|
11979
12106
|
};
|
|
11980
12107
|
|
|
11981
12108
|
// src/components/Layout/HorizontalRhythm.tsx
|
|
11982
|
-
var
|
|
12109
|
+
var import_react38 = require("@emotion/react");
|
|
11983
12110
|
|
|
11984
12111
|
// src/components/Layout/styles/HorizontalRhythm.styles.ts
|
|
11985
|
-
var
|
|
11986
|
-
var HorizontalRhythmContainer = (size) =>
|
|
12112
|
+
var import_react37 = require("@emotion/react");
|
|
12113
|
+
var HorizontalRhythmContainer = (size) => import_react37.css`
|
|
11987
12114
|
display: flex;
|
|
11988
12115
|
gap: var(--spacing-${size});
|
|
11989
12116
|
`;
|
|
@@ -11997,7 +12124,7 @@ var HorizontalRhythm = ({ align, tag = "div", gap = "base", children, ...props }
|
|
|
11997
12124
|
{
|
|
11998
12125
|
css: [
|
|
11999
12126
|
HorizontalRhythmContainer(gap),
|
|
12000
|
-
align ?
|
|
12127
|
+
align ? import_react38.css`
|
|
12001
12128
|
align-items: ${align};
|
|
12002
12129
|
` : void 0
|
|
12003
12130
|
],
|
|
@@ -12008,11 +12135,11 @@ var HorizontalRhythm = ({ align, tag = "div", gap = "base", children, ...props }
|
|
|
12008
12135
|
};
|
|
12009
12136
|
|
|
12010
12137
|
// src/components/Layout/styles/TwoColumnLayout.styles.ts
|
|
12011
|
-
var
|
|
12012
|
-
var TwoColumnLayoutContainer = (bgColor) =>
|
|
12138
|
+
var import_react39 = require("@emotion/react");
|
|
12139
|
+
var TwoColumnLayoutContainer = (bgColor) => import_react39.css`
|
|
12013
12140
|
background: ${bgColor};
|
|
12014
12141
|
`;
|
|
12015
|
-
var TwoColumnLayoutInner = (invertLayout) =>
|
|
12142
|
+
var TwoColumnLayoutInner = (invertLayout) => import_react39.css`
|
|
12016
12143
|
display: grid;
|
|
12017
12144
|
max-width: var(--site-width);
|
|
12018
12145
|
margin-inline: auto;
|
|
@@ -12028,8 +12155,8 @@ var TwoColumnLayoutInner = (invertLayout) => import_react38.css`
|
|
|
12028
12155
|
}`}
|
|
12029
12156
|
}
|
|
12030
12157
|
`;
|
|
12031
|
-
var TwoColumnLayoutMain =
|
|
12032
|
-
var TwoColumnLayoutSupporting =
|
|
12158
|
+
var TwoColumnLayoutMain = import_react39.css``;
|
|
12159
|
+
var TwoColumnLayoutSupporting = import_react39.css`
|
|
12033
12160
|
display: flex;
|
|
12034
12161
|
flex-direction: column;
|
|
12035
12162
|
gap: var(--spacing-lg);
|
|
@@ -12050,11 +12177,11 @@ var TwoColumnLayout = ({
|
|
|
12050
12177
|
};
|
|
12051
12178
|
|
|
12052
12179
|
// src/components/Layout/VerticalRhythm.tsx
|
|
12053
|
-
var
|
|
12180
|
+
var import_react41 = require("@emotion/react");
|
|
12054
12181
|
|
|
12055
12182
|
// src/components/Layout/styles/VerticalRhythm.styles.ts
|
|
12056
|
-
var
|
|
12057
|
-
var VerticalRhythmContainer = (size) =>
|
|
12183
|
+
var import_react40 = require("@emotion/react");
|
|
12184
|
+
var VerticalRhythmContainer = (size) => import_react40.css`
|
|
12058
12185
|
display: flex;
|
|
12059
12186
|
flex-direction: column;
|
|
12060
12187
|
gap: var(--spacing-${size});
|
|
@@ -12069,7 +12196,7 @@ var VerticalRhythm = ({ align, tag = "div", gap = "base", children, ...props })
|
|
|
12069
12196
|
{
|
|
12070
12197
|
css: [
|
|
12071
12198
|
VerticalRhythmContainer(gap),
|
|
12072
|
-
align ?
|
|
12199
|
+
align ? import_react41.css`
|
|
12073
12200
|
align-items: ${align};
|
|
12074
12201
|
` : void 0
|
|
12075
12202
|
],
|
|
@@ -12080,8 +12207,8 @@ var VerticalRhythm = ({ align, tag = "div", gap = "base", children, ...props })
|
|
|
12080
12207
|
};
|
|
12081
12208
|
|
|
12082
12209
|
// src/components/Card/LoadingCardSkeleton.styles.ts
|
|
12083
|
-
var
|
|
12084
|
-
var LoadingCardSkeleton =
|
|
12210
|
+
var import_react42 = require("@emotion/react");
|
|
12211
|
+
var LoadingCardSkeleton = import_react42.css`
|
|
12085
12212
|
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
12086
12213
|
color: var(--gray-400);
|
|
12087
12214
|
border-radius: var(--rounded-base);
|
|
@@ -12089,21 +12216,21 @@ var LoadingCardSkeleton = import_react41.css`
|
|
|
12089
12216
|
min-height: 160px;
|
|
12090
12217
|
position: relative;
|
|
12091
12218
|
`;
|
|
12092
|
-
var LoadingText =
|
|
12219
|
+
var LoadingText = import_react42.css`
|
|
12093
12220
|
animation: ${fadeIn} 1s linear infinite alternate;
|
|
12094
12221
|
border-radius: var(--rounded-base);
|
|
12095
12222
|
background: var(--gray-300);
|
|
12096
12223
|
display: block;
|
|
12097
12224
|
`;
|
|
12098
|
-
var LoadingTitle =
|
|
12225
|
+
var LoadingTitle = import_react42.css`
|
|
12099
12226
|
width: clamp(200px, 100vw, 60%);
|
|
12100
12227
|
height: var(--spacing-md);
|
|
12101
12228
|
`;
|
|
12102
|
-
var LoadingTimeStamp =
|
|
12229
|
+
var LoadingTimeStamp = import_react42.css`
|
|
12103
12230
|
width: clamp(200px, 100vw, 30%);
|
|
12104
12231
|
height: var(--spacing-sm);
|
|
12105
12232
|
`;
|
|
12106
|
-
var LoadingMenuIcon =
|
|
12233
|
+
var LoadingMenuIcon = import_react42.css`
|
|
12107
12234
|
animation: ${fadeIn} 1s linear infinite alternate;
|
|
12108
12235
|
position: absolute;
|
|
12109
12236
|
top: var(--spacing-md);
|
|
@@ -12124,8 +12251,8 @@ var LoadingCardSkeleton2 = () => {
|
|
|
12124
12251
|
var import_cg9 = require("react-icons/cg");
|
|
12125
12252
|
|
|
12126
12253
|
// src/components/Chip/Chip.styles.ts
|
|
12127
|
-
var
|
|
12128
|
-
var ChipContainer =
|
|
12254
|
+
var import_react43 = require("@emotion/react");
|
|
12255
|
+
var ChipContainer = import_react43.css`
|
|
12129
12256
|
border-radius: var(--rounded-full);
|
|
12130
12257
|
background: lime;
|
|
12131
12258
|
display: inline-flex;
|
|
@@ -12145,23 +12272,23 @@ var ChipContainer = import_react42.css`
|
|
|
12145
12272
|
}
|
|
12146
12273
|
}
|
|
12147
12274
|
`;
|
|
12148
|
-
var ChipText =
|
|
12275
|
+
var ChipText = import_react43.css`
|
|
12149
12276
|
align-self: center;
|
|
12150
12277
|
line-height: 1;
|
|
12151
12278
|
`;
|
|
12152
|
-
var ChipIcon =
|
|
12279
|
+
var ChipIcon = import_react43.css`
|
|
12153
12280
|
align-self: center;
|
|
12154
12281
|
justify-content: center;
|
|
12155
12282
|
display: flex;
|
|
12156
12283
|
opacity: var(--opacity-50);
|
|
12157
12284
|
`;
|
|
12158
|
-
var ChipSeparator =
|
|
12285
|
+
var ChipSeparator = import_react43.css`
|
|
12159
12286
|
display: flex;
|
|
12160
12287
|
border-right: 1px solid var(--white);
|
|
12161
12288
|
opacity: var(--opacity-50);
|
|
12162
12289
|
margin-left: -1px;
|
|
12163
12290
|
`;
|
|
12164
|
-
var ChipTiny = (withIcon) =>
|
|
12291
|
+
var ChipTiny = (withIcon) => import_react43.css`
|
|
12165
12292
|
font-size: var(--fs-xs);
|
|
12166
12293
|
padding-inline: ${withIcon ? "calc(var(--spacing-2xs) + 2px) var(--spacing-sm)" : "var(--spacing-sm)"};
|
|
12167
12294
|
gap: var(--spacing-2xs);
|
|
@@ -12170,7 +12297,7 @@ var ChipTiny = (withIcon) => import_react42.css`
|
|
|
12170
12297
|
padding: var(--spacing-xs) var(--spacing-xs);
|
|
12171
12298
|
}
|
|
12172
12299
|
`;
|
|
12173
|
-
var ChipSmall =
|
|
12300
|
+
var ChipSmall = import_react43.css`
|
|
12174
12301
|
font-size: var(--fs-sm);
|
|
12175
12302
|
padding-inline: var(--spacing-sm);
|
|
12176
12303
|
gap: var(--spacing-xs);
|
|
@@ -12179,7 +12306,7 @@ var ChipSmall = import_react42.css`
|
|
|
12179
12306
|
padding: var(--spacing-sm) var(--spacing-xs);
|
|
12180
12307
|
}
|
|
12181
12308
|
`;
|
|
12182
|
-
var ChipMedium =
|
|
12309
|
+
var ChipMedium = import_react43.css`
|
|
12183
12310
|
font-size: var(--fs-base);
|
|
12184
12311
|
padding-inline: var(--spacing-sm);
|
|
12185
12312
|
gap: var(--spacing-xs);
|
|
@@ -12188,7 +12315,7 @@ var ChipMedium = import_react42.css`
|
|
|
12188
12315
|
padding: var(--spacing-sm) var(--spacing-xs);
|
|
12189
12316
|
}
|
|
12190
12317
|
`;
|
|
12191
|
-
var ChipThemeAccentLight =
|
|
12318
|
+
var ChipThemeAccentLight = import_react43.css`
|
|
12192
12319
|
background: var(--accent-light);
|
|
12193
12320
|
color: var(--brand-secondary-1);
|
|
12194
12321
|
|
|
@@ -12213,7 +12340,7 @@ var ChipThemeAccentLight = import_react42.css`
|
|
|
12213
12340
|
color: var(--accent-light);
|
|
12214
12341
|
}
|
|
12215
12342
|
`;
|
|
12216
|
-
var ChipThemeAccentDark =
|
|
12343
|
+
var ChipThemeAccentDark = import_react43.css`
|
|
12217
12344
|
background: var(--accent-dark);
|
|
12218
12345
|
color: var(--white);
|
|
12219
12346
|
|
|
@@ -12234,7 +12361,7 @@ var ChipThemeAccentDark = import_react42.css`
|
|
|
12234
12361
|
}
|
|
12235
12362
|
}
|
|
12236
12363
|
`;
|
|
12237
|
-
var ChipAltThemeAccentLight =
|
|
12364
|
+
var ChipAltThemeAccentLight = import_react43.css`
|
|
12238
12365
|
background: var(--accent-alt-light);
|
|
12239
12366
|
color: var(--brand-secondary-1);
|
|
12240
12367
|
|
|
@@ -12259,7 +12386,7 @@ var ChipAltThemeAccentLight = import_react42.css`
|
|
|
12259
12386
|
color: var(--accent-alt-light);
|
|
12260
12387
|
}
|
|
12261
12388
|
`;
|
|
12262
|
-
var ChipAltThemeAccentDark =
|
|
12389
|
+
var ChipAltThemeAccentDark = import_react43.css`
|
|
12263
12390
|
background: var(--accent-alt-dark);
|
|
12264
12391
|
color: var(--white);
|
|
12265
12392
|
|
|
@@ -12280,7 +12407,7 @@ var ChipAltThemeAccentDark = import_react42.css`
|
|
|
12280
12407
|
}
|
|
12281
12408
|
}
|
|
12282
12409
|
`;
|
|
12283
|
-
var ChipThemeNeutralLight =
|
|
12410
|
+
var ChipThemeNeutralLight = import_react43.css`
|
|
12284
12411
|
background: var(--gray-100);
|
|
12285
12412
|
color: var(--brand-secondary-1);
|
|
12286
12413
|
:where([role='button']) {
|
|
@@ -12290,7 +12417,7 @@ var ChipThemeNeutralLight = import_react42.css`
|
|
|
12290
12417
|
}
|
|
12291
12418
|
}
|
|
12292
12419
|
`;
|
|
12293
|
-
var ChipThemeNeutralDark =
|
|
12420
|
+
var ChipThemeNeutralDark = import_react43.css`
|
|
12294
12421
|
background: var(--gray-700);
|
|
12295
12422
|
color: var(--white);
|
|
12296
12423
|
:where([role='button']) {
|
|
@@ -12304,7 +12431,7 @@ var ChipThemeNeutralDark = import_react42.css`
|
|
|
12304
12431
|
}
|
|
12305
12432
|
}
|
|
12306
12433
|
`;
|
|
12307
|
-
var ChipActionButton =
|
|
12434
|
+
var ChipActionButton = import_react43.css`
|
|
12308
12435
|
background: transparent;
|
|
12309
12436
|
border: none;
|
|
12310
12437
|
border-radius: 0 var(--rounded-full) var(--rounded-full) 0;
|
|
@@ -12358,8 +12485,8 @@ var DismissibleChipAction = ({ onDismiss, ...props }) => {
|
|
|
12358
12485
|
};
|
|
12359
12486
|
|
|
12360
12487
|
// src/components/Counter/Counter.styles.ts
|
|
12361
|
-
var
|
|
12362
|
-
var counterContainer = (bgColor) =>
|
|
12488
|
+
var import_react44 = require("@emotion/react");
|
|
12489
|
+
var counterContainer = (bgColor) => import_react44.css`
|
|
12363
12490
|
align-items: center;
|
|
12364
12491
|
border-radius: var(--rounded-full);
|
|
12365
12492
|
border: 1px solid var(--gray-300);
|
|
@@ -12372,16 +12499,16 @@ var counterContainer = (bgColor) => import_react43.css`
|
|
|
12372
12499
|
width: var(--spacing-base);
|
|
12373
12500
|
height: var(--spacing-base);
|
|
12374
12501
|
`;
|
|
12375
|
-
var counterZeroValue =
|
|
12502
|
+
var counterZeroValue = import_react44.css`
|
|
12376
12503
|
background: var(--brand-secondary-1);
|
|
12377
12504
|
border-radius: var(--rounded-full);
|
|
12378
12505
|
width: 2px;
|
|
12379
12506
|
height: 2px;
|
|
12380
12507
|
`;
|
|
12381
|
-
var counterTripleValue =
|
|
12508
|
+
var counterTripleValue = import_react44.css`
|
|
12382
12509
|
position: relative;
|
|
12383
12510
|
`;
|
|
12384
|
-
var counterIcon =
|
|
12511
|
+
var counterIcon = import_react44.css`
|
|
12385
12512
|
border-radius: var(--rounded-full);
|
|
12386
12513
|
background: var(--white);
|
|
12387
12514
|
color: var(--brand-secondary-3);
|
|
@@ -12406,7 +12533,7 @@ var Counter = ({ count, bgColor = "transparent", ...props }) => {
|
|
|
12406
12533
|
};
|
|
12407
12534
|
|
|
12408
12535
|
// src/components/DashedBox/DashedBox.styles.ts
|
|
12409
|
-
var
|
|
12536
|
+
var import_react45 = require("@emotion/react");
|
|
12410
12537
|
var minHeight = (prop) => {
|
|
12411
12538
|
const values = {
|
|
12412
12539
|
auto: "auto",
|
|
@@ -12425,7 +12552,7 @@ var alignItemsConvert = (props) => {
|
|
|
12425
12552
|
};
|
|
12426
12553
|
return alignment[props];
|
|
12427
12554
|
};
|
|
12428
|
-
var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) =>
|
|
12555
|
+
var DashedBoxContainer = ({ textAlign, boxHeight, bgColor }) => import_react45.css`
|
|
12429
12556
|
align-items: ${alignItemsConvert(textAlign)};
|
|
12430
12557
|
border: 2px dashed var(--gray-300);
|
|
12431
12558
|
border-radius: var(--rounded-base);
|
|
@@ -12452,11 +12579,11 @@ var DashedBox = ({
|
|
|
12452
12579
|
};
|
|
12453
12580
|
|
|
12454
12581
|
// src/components/Details/Details.tsx
|
|
12455
|
-
var
|
|
12582
|
+
var React9 = __toESM(require("react"));
|
|
12456
12583
|
|
|
12457
12584
|
// src/components/Details/Details.styles.ts
|
|
12458
|
-
var
|
|
12459
|
-
var details =
|
|
12585
|
+
var import_react46 = require("@emotion/react");
|
|
12586
|
+
var details = import_react46.css`
|
|
12460
12587
|
cursor: pointer;
|
|
12461
12588
|
&[open] {
|
|
12462
12589
|
& > summary svg {
|
|
@@ -12464,11 +12591,11 @@ var details = import_react45.css`
|
|
|
12464
12591
|
}
|
|
12465
12592
|
}
|
|
12466
12593
|
`;
|
|
12467
|
-
var detailsContent =
|
|
12594
|
+
var detailsContent = import_react46.css`
|
|
12468
12595
|
animation: ${fadeInRtl} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
12469
12596
|
will-change: height;
|
|
12470
12597
|
`;
|
|
12471
|
-
var summary =
|
|
12598
|
+
var summary = import_react46.css`
|
|
12472
12599
|
align-items: center;
|
|
12473
12600
|
display: grid;
|
|
12474
12601
|
grid-template-columns: 1.25rem 1fr;
|
|
@@ -12481,20 +12608,20 @@ var summary = import_react45.css`
|
|
|
12481
12608
|
display: none;
|
|
12482
12609
|
}
|
|
12483
12610
|
`;
|
|
12484
|
-
var summaryIcon =
|
|
12611
|
+
var summaryIcon = import_react46.css`
|
|
12485
12612
|
transition: rotate var(--duration-fast) var(--timing-ease-out);
|
|
12486
12613
|
rotate: -90deg;
|
|
12487
12614
|
`;
|
|
12488
|
-
var summaryIconVisiblyHidden =
|
|
12615
|
+
var summaryIconVisiblyHidden = import_react46.css`
|
|
12489
12616
|
visibility: hidden;
|
|
12490
12617
|
`;
|
|
12491
12618
|
|
|
12492
12619
|
// src/components/Details/Details.tsx
|
|
12493
12620
|
var import_jsx_runtime37 = require("@emotion/react/jsx-runtime");
|
|
12494
12621
|
var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props }) => {
|
|
12495
|
-
const detailsRef =
|
|
12496
|
-
const [open, setOpen] =
|
|
12497
|
-
|
|
12622
|
+
const detailsRef = React9.useRef(null);
|
|
12623
|
+
const [open, setOpen] = React9.useState(isOpenByDefault);
|
|
12624
|
+
React9.useEffect(() => {
|
|
12498
12625
|
var _a;
|
|
12499
12626
|
if (!detailsRef) {
|
|
12500
12627
|
return;
|
|
@@ -12528,12 +12655,12 @@ var Details = ({ summary: summary2, children, isOpenByDefault = false, ...props
|
|
|
12528
12655
|
};
|
|
12529
12656
|
|
|
12530
12657
|
// src/components/Drawer/Drawer.tsx
|
|
12531
|
-
var
|
|
12658
|
+
var import_react50 = __toESM(require("react"));
|
|
12532
12659
|
var import_cg10 = require("react-icons/cg");
|
|
12533
12660
|
|
|
12534
12661
|
// src/components/Drawer/Drawer.styles.ts
|
|
12535
|
-
var
|
|
12536
|
-
var drawerStyles = (bgColor = "var(--white)") =>
|
|
12662
|
+
var import_react47 = require("@emotion/react");
|
|
12663
|
+
var drawerStyles = (bgColor = "var(--white)") => import_react47.css`
|
|
12537
12664
|
background-color: ${bgColor};
|
|
12538
12665
|
display: flex;
|
|
12539
12666
|
gap: var(--spacing-sm);
|
|
@@ -12543,7 +12670,7 @@ var drawerStyles = (bgColor = "var(--white)") => import_react46.css`
|
|
|
12543
12670
|
padding-top: var(--spacing-sm);
|
|
12544
12671
|
height: 100%;
|
|
12545
12672
|
`;
|
|
12546
|
-
var drawerCloseButtonStyles =
|
|
12673
|
+
var drawerCloseButtonStyles = import_react47.css`
|
|
12547
12674
|
align-self: flex-end;
|
|
12548
12675
|
background: transparent;
|
|
12549
12676
|
border: none;
|
|
@@ -12551,23 +12678,23 @@ var drawerCloseButtonStyles = import_react46.css`
|
|
|
12551
12678
|
padding: var(--spacing-xs);
|
|
12552
12679
|
margin-right: var(--spacing-sm);
|
|
12553
12680
|
`;
|
|
12554
|
-
var drawerHeaderStyles =
|
|
12681
|
+
var drawerHeaderStyles = import_react47.css`
|
|
12555
12682
|
font-size: var(--fs-lg);
|
|
12556
12683
|
font-weight: var(--fw-bold);
|
|
12557
12684
|
padding-inline: var(--spacing-base);
|
|
12558
12685
|
`;
|
|
12559
|
-
var drawerRendererStyles =
|
|
12686
|
+
var drawerRendererStyles = import_react47.css`
|
|
12560
12687
|
inset: 0;
|
|
12561
12688
|
overflow: hidden;
|
|
12562
12689
|
z-index: var(--z-drawer);
|
|
12563
12690
|
`;
|
|
12564
|
-
var drawerInnerStyles =
|
|
12691
|
+
var drawerInnerStyles = import_react47.css`
|
|
12565
12692
|
height: 100%;
|
|
12566
12693
|
padding: 0 var(--spacing-base) var(--spacing-base);
|
|
12567
12694
|
overflow: auto;
|
|
12568
12695
|
${scrollbarStyles}
|
|
12569
12696
|
`;
|
|
12570
|
-
var slideDrawerIn =
|
|
12697
|
+
var slideDrawerIn = import_react47.keyframes`
|
|
12571
12698
|
0% {
|
|
12572
12699
|
transform: translate(0);
|
|
12573
12700
|
opacity: 0;
|
|
@@ -12582,7 +12709,7 @@ var slideDrawerIn = import_react46.keyframes`
|
|
|
12582
12709
|
transform: translate(0);
|
|
12583
12710
|
}
|
|
12584
12711
|
`;
|
|
12585
|
-
var drawerWrapperStyles =
|
|
12712
|
+
var drawerWrapperStyles = import_react47.css`
|
|
12586
12713
|
position: absolute;
|
|
12587
12714
|
inset-block: 0;
|
|
12588
12715
|
right: 0;
|
|
@@ -12593,7 +12720,7 @@ var drawerWrapperStyles = import_react46.css`
|
|
|
12593
12720
|
transition: width var(--duration-fast) ease-out;
|
|
12594
12721
|
box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
|
|
12595
12722
|
`;
|
|
12596
|
-
var drawerWrapperOverlayStyles =
|
|
12723
|
+
var drawerWrapperOverlayStyles = import_react47.css`
|
|
12597
12724
|
position: absolute;
|
|
12598
12725
|
inset: 0;
|
|
12599
12726
|
background: rgba(31, 43, 52, 0.4);
|
|
@@ -12601,9 +12728,9 @@ var drawerWrapperOverlayStyles = import_react46.css`
|
|
|
12601
12728
|
`;
|
|
12602
12729
|
|
|
12603
12730
|
// src/components/Drawer/DrawerProvider.tsx
|
|
12604
|
-
var
|
|
12731
|
+
var import_react48 = require("react");
|
|
12605
12732
|
var import_jsx_runtime38 = require("@emotion/react/jsx-runtime");
|
|
12606
|
-
var DrawerContext = (0,
|
|
12733
|
+
var DrawerContext = (0, import_react48.createContext)({
|
|
12607
12734
|
drawersRegistry: [],
|
|
12608
12735
|
registerDrawer: () => {
|
|
12609
12736
|
},
|
|
@@ -12611,7 +12738,7 @@ var DrawerContext = (0, import_react47.createContext)({
|
|
|
12611
12738
|
}
|
|
12612
12739
|
});
|
|
12613
12740
|
var DrawerProvider = ({ children }) => {
|
|
12614
|
-
const [drawersRegistry, setDrawersRegistry] = (0,
|
|
12741
|
+
const [drawersRegistry, setDrawersRegistry] = (0, import_react48.useState)([]);
|
|
12615
12742
|
useShortcut({
|
|
12616
12743
|
handler: () => {
|
|
12617
12744
|
var _a, _b;
|
|
@@ -12619,7 +12746,7 @@ var DrawerProvider = ({ children }) => {
|
|
|
12619
12746
|
},
|
|
12620
12747
|
shortcut: "escape"
|
|
12621
12748
|
});
|
|
12622
|
-
const registerDrawer = (0,
|
|
12749
|
+
const registerDrawer = (0, import_react48.useCallback)(
|
|
12623
12750
|
({ drawer, onFirstRender }) => {
|
|
12624
12751
|
setDrawersRegistry((currentValue) => {
|
|
12625
12752
|
var _a;
|
|
@@ -12641,7 +12768,7 @@ var DrawerProvider = ({ children }) => {
|
|
|
12641
12768
|
},
|
|
12642
12769
|
[setDrawersRegistry]
|
|
12643
12770
|
);
|
|
12644
|
-
const unregisterDrawer = (0,
|
|
12771
|
+
const unregisterDrawer = (0, import_react48.useCallback)(
|
|
12645
12772
|
(drawer) => {
|
|
12646
12773
|
setDrawersRegistry((currentValue) => {
|
|
12647
12774
|
return currentValue.filter((d) => {
|
|
@@ -12654,7 +12781,7 @@ var DrawerProvider = ({ children }) => {
|
|
|
12654
12781
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DrawerContext.Provider, { value: { drawersRegistry, registerDrawer, unregisterDrawer }, children });
|
|
12655
12782
|
};
|
|
12656
12783
|
var useDrawer = () => {
|
|
12657
|
-
return (0,
|
|
12784
|
+
return (0, import_react48.useContext)(DrawerContext);
|
|
12658
12785
|
};
|
|
12659
12786
|
var useCloseCurrentDrawer = () => {
|
|
12660
12787
|
const context = useDrawer();
|
|
@@ -12671,13 +12798,13 @@ function isEqualDrawerInstance(a, b) {
|
|
|
12671
12798
|
}
|
|
12672
12799
|
|
|
12673
12800
|
// src/components/Drawer/DrawerRenderer.tsx
|
|
12674
|
-
var
|
|
12801
|
+
var import_react49 = require("react");
|
|
12675
12802
|
var import_jsx_runtime39 = require("@emotion/react/jsx-runtime");
|
|
12676
12803
|
var maxLayeringInPx = 64;
|
|
12677
12804
|
var idealDistanceBetweenLayersInPx = 16;
|
|
12678
|
-
var CurrentDrawerRendererContext = (0,
|
|
12805
|
+
var CurrentDrawerRendererContext = (0, import_react49.createContext)({});
|
|
12679
12806
|
var useCurrentDrawerRenderer = () => {
|
|
12680
|
-
return (0,
|
|
12807
|
+
return (0, import_react49.useContext)(CurrentDrawerRendererContext);
|
|
12681
12808
|
};
|
|
12682
12809
|
var DrawerRenderer = ({
|
|
12683
12810
|
stackId,
|
|
@@ -12741,7 +12868,7 @@ var DrawerWrapper = ({
|
|
|
12741
12868
|
// src/components/Drawer/Drawer.tsx
|
|
12742
12869
|
var import_jsx_runtime40 = require("@emotion/react/jsx-runtime");
|
|
12743
12870
|
var defaultSackId = "_default";
|
|
12744
|
-
var Drawer =
|
|
12871
|
+
var Drawer = import_react50.default.forwardRef(
|
|
12745
12872
|
({ width, minWidth, maxWidth, position, ...drawerProps }, ref) => {
|
|
12746
12873
|
const drawerRendererProps = { width, minWidth, maxWidth, position };
|
|
12747
12874
|
const { stackId: inheritedStackId } = useCurrentDrawerRenderer();
|
|
@@ -12763,8 +12890,8 @@ var DrawerInner = ({
|
|
|
12763
12890
|
testId = "side-dialog"
|
|
12764
12891
|
}) => {
|
|
12765
12892
|
const { registerDrawer, unregisterDrawer } = useDrawer();
|
|
12766
|
-
const closeButtonRef = (0,
|
|
12767
|
-
const component = (0,
|
|
12893
|
+
const closeButtonRef = (0, import_react50.useRef)(null);
|
|
12894
|
+
const component = (0, import_react50.useMemo)(() => {
|
|
12768
12895
|
const headerId = `dialog-header-${stackId}-${id}`;
|
|
12769
12896
|
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
12770
12897
|
"div",
|
|
@@ -12795,7 +12922,7 @@ var DrawerInner = ({
|
|
|
12795
12922
|
}
|
|
12796
12923
|
);
|
|
12797
12924
|
}, [children, header, id, stackId, bgColor, onRequestClose, ref, testId]);
|
|
12798
|
-
(0,
|
|
12925
|
+
(0, import_react50.useEffect)(() => {
|
|
12799
12926
|
registerDrawer({
|
|
12800
12927
|
drawer: {
|
|
12801
12928
|
id,
|
|
@@ -12812,15 +12939,15 @@ var DrawerInner = ({
|
|
|
12812
12939
|
}
|
|
12813
12940
|
});
|
|
12814
12941
|
}, [component, instanceKey, registerDrawer]);
|
|
12815
|
-
(0,
|
|
12942
|
+
(0, import_react50.useEffect)(() => {
|
|
12816
12943
|
return () => unregisterDrawer({ id, stackId, instanceKey });
|
|
12817
12944
|
}, [id, stackId, instanceKey, unregisterDrawer]);
|
|
12818
12945
|
return null;
|
|
12819
12946
|
};
|
|
12820
12947
|
|
|
12821
12948
|
// src/components/Input/styles/CaptionText.styles.ts
|
|
12822
|
-
var
|
|
12823
|
-
var CaptionText = (dynamicSize) =>
|
|
12949
|
+
var import_react51 = require("@emotion/react");
|
|
12950
|
+
var CaptionText = (dynamicSize) => import_react51.css`
|
|
12824
12951
|
color: var(--gray-500);
|
|
12825
12952
|
display: block;
|
|
12826
12953
|
font-size: ${dynamicSize ? "clamp(var(--fs-xs), 87.5%,var(--fs-sm))" : "var(--fs-sm)"};
|
|
@@ -12835,23 +12962,23 @@ var Caption = ({ children, testId, dynamicSize = false, ...props }) => {
|
|
|
12835
12962
|
};
|
|
12836
12963
|
|
|
12837
12964
|
// src/components/Input/CheckboxWithInfo.tsx
|
|
12838
|
-
var
|
|
12965
|
+
var import_react53 = require("react");
|
|
12839
12966
|
|
|
12840
12967
|
// src/components/Input/styles/CheckboxWithInfo.styles.ts
|
|
12841
|
-
var
|
|
12842
|
-
var CheckboxWithInfoContainer =
|
|
12968
|
+
var import_react52 = require("@emotion/react");
|
|
12969
|
+
var CheckboxWithInfoContainer = import_react52.css`
|
|
12843
12970
|
align-items: center;
|
|
12844
12971
|
display: flex;
|
|
12845
12972
|
gap: var(--spacing-sm);
|
|
12846
12973
|
`;
|
|
12847
|
-
var CheckboxWithInfoLabel =
|
|
12974
|
+
var CheckboxWithInfoLabel = import_react52.css`
|
|
12848
12975
|
align-items: center;
|
|
12849
12976
|
color: var(--gray-500);
|
|
12850
12977
|
display: flex;
|
|
12851
12978
|
font-size: var(--fs-xs);
|
|
12852
12979
|
gap: var(--spacing-sm);
|
|
12853
12980
|
`;
|
|
12854
|
-
var CheckboxWithInfoInput =
|
|
12981
|
+
var CheckboxWithInfoInput = import_react52.css`
|
|
12855
12982
|
appearance: none;
|
|
12856
12983
|
border: 1px solid var(--gray-300);
|
|
12857
12984
|
background: var(--white) no-repeat bottom center;
|
|
@@ -12884,7 +13011,7 @@ var CheckboxWithInfoInput = import_react51.css`
|
|
|
12884
13011
|
border-color: var(--gray-200);
|
|
12885
13012
|
}
|
|
12886
13013
|
`;
|
|
12887
|
-
var InfoDialogContainer =
|
|
13014
|
+
var InfoDialogContainer = import_react52.css`
|
|
12888
13015
|
position: relative;
|
|
12889
13016
|
|
|
12890
13017
|
&:hover {
|
|
@@ -12893,7 +13020,7 @@ var InfoDialogContainer = import_react51.css`
|
|
|
12893
13020
|
}
|
|
12894
13021
|
}
|
|
12895
13022
|
`;
|
|
12896
|
-
var InfoDialogMessage =
|
|
13023
|
+
var InfoDialogMessage = import_react52.css`
|
|
12897
13024
|
background: var(--white);
|
|
12898
13025
|
box-shadow: var(--shadow-base);
|
|
12899
13026
|
border-radius: var(--rounded-md);
|
|
@@ -12917,7 +13044,7 @@ var InfoDialog = ({ message }) => {
|
|
|
12917
13044
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { role: "paragraph", css: InfoDialogMessage, className: "info-message", children: message })
|
|
12918
13045
|
] });
|
|
12919
13046
|
};
|
|
12920
|
-
var CheckboxWithInfo = (0,
|
|
13047
|
+
var CheckboxWithInfo = (0, import_react53.forwardRef)(
|
|
12921
13048
|
({ label, name, info, ...props }, ref) => {
|
|
12922
13049
|
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { css: CheckboxWithInfoContainer, children: [
|
|
12923
13050
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("label", { css: CheckboxWithInfoLabel, children: [
|
|
@@ -12933,8 +13060,8 @@ var CheckboxWithInfo = (0, import_react52.forwardRef)(
|
|
|
12933
13060
|
var import_md2 = require("react-icons/md");
|
|
12934
13061
|
|
|
12935
13062
|
// src/components/Input/styles/ErrorMessage.styles.ts
|
|
12936
|
-
var
|
|
12937
|
-
var ErrorText =
|
|
13063
|
+
var import_react54 = require("@emotion/react");
|
|
13064
|
+
var ErrorText = import_react54.css`
|
|
12938
13065
|
align-items: center;
|
|
12939
13066
|
color: var(--brand-secondary-5);
|
|
12940
13067
|
display: flex;
|
|
@@ -12951,12 +13078,12 @@ var ErrorMessage = ({ message, testId, ...otherProps }) => {
|
|
|
12951
13078
|
};
|
|
12952
13079
|
|
|
12953
13080
|
// src/components/Input/Fieldset.tsx
|
|
12954
|
-
var
|
|
13081
|
+
var React13 = __toESM(require("react"));
|
|
12955
13082
|
|
|
12956
13083
|
// src/components/Input/styles/Fieldset.styles.ts
|
|
12957
|
-
var
|
|
13084
|
+
var import_react55 = require("@emotion/react");
|
|
12958
13085
|
function fieldsetContainer(invert) {
|
|
12959
|
-
const base =
|
|
13086
|
+
const base = import_react55.css`
|
|
12960
13087
|
border-radius: var(--rounded-base);
|
|
12961
13088
|
border: 1px solid var(--gray-300);
|
|
12962
13089
|
|
|
@@ -12968,18 +13095,18 @@ function fieldsetContainer(invert) {
|
|
|
12968
13095
|
}
|
|
12969
13096
|
`;
|
|
12970
13097
|
return invert ? [
|
|
12971
|
-
|
|
13098
|
+
import_react55.css`
|
|
12972
13099
|
background: white;
|
|
12973
13100
|
`,
|
|
12974
13101
|
base
|
|
12975
13102
|
] : [
|
|
12976
|
-
|
|
13103
|
+
import_react55.css`
|
|
12977
13104
|
background: var(--gray-50);
|
|
12978
13105
|
`,
|
|
12979
13106
|
base
|
|
12980
13107
|
];
|
|
12981
13108
|
}
|
|
12982
|
-
var fieldsetLegend =
|
|
13109
|
+
var fieldsetLegend = import_react55.css`
|
|
12983
13110
|
align-items: center;
|
|
12984
13111
|
color: var(--brand-secondary-1);
|
|
12985
13112
|
display: flex;
|
|
@@ -12989,13 +13116,13 @@ var fieldsetLegend = import_react54.css`
|
|
|
12989
13116
|
margin-bottom: var(--spacing-base);
|
|
12990
13117
|
float: left; // allows the legend to be inside the fieldset and not sat on the border line
|
|
12991
13118
|
`;
|
|
12992
|
-
var fieldsetBody =
|
|
13119
|
+
var fieldsetBody = import_react55.css`
|
|
12993
13120
|
clear: left;
|
|
12994
13121
|
`;
|
|
12995
13122
|
|
|
12996
13123
|
// src/components/Input/Fieldset.tsx
|
|
12997
13124
|
var import_jsx_runtime44 = require("@emotion/react/jsx-runtime");
|
|
12998
|
-
var Fieldset =
|
|
13125
|
+
var Fieldset = React13.forwardRef(
|
|
12999
13126
|
({ legend, disabled, children, invert, ...props }, ref) => {
|
|
13000
13127
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
|
|
13001
13128
|
legend,
|
|
@@ -13008,8 +13135,8 @@ var Fieldset = React12.forwardRef(
|
|
|
13008
13135
|
var import_md3 = require("react-icons/md");
|
|
13009
13136
|
|
|
13010
13137
|
// src/components/Input/styles/InfoMessage.styles.tsx
|
|
13011
|
-
var
|
|
13012
|
-
var InfoText =
|
|
13138
|
+
var import_react56 = require("@emotion/react");
|
|
13139
|
+
var InfoText = import_react56.css`
|
|
13013
13140
|
--info-desc: rgb(29, 78, 216);
|
|
13014
13141
|
--info-icon: rgb(96, 165, 250);
|
|
13015
13142
|
|
|
@@ -13018,7 +13145,7 @@ var InfoText = import_react55.css`
|
|
|
13018
13145
|
display: flex;
|
|
13019
13146
|
gap: var(--spacing-sm);
|
|
13020
13147
|
`;
|
|
13021
|
-
var InfoIcon2 =
|
|
13148
|
+
var InfoIcon2 = import_react56.css`
|
|
13022
13149
|
color: var(--info-icon);
|
|
13023
13150
|
`;
|
|
13024
13151
|
|
|
@@ -13032,7 +13159,7 @@ var InfoMessage = ({ message, testId, ...props }) => {
|
|
|
13032
13159
|
};
|
|
13033
13160
|
|
|
13034
13161
|
// src/components/Input/Input.tsx
|
|
13035
|
-
var
|
|
13162
|
+
var React14 = __toESM(require("react"));
|
|
13036
13163
|
|
|
13037
13164
|
// src/components/Input/Label.tsx
|
|
13038
13165
|
var import_jsx_runtime46 = require("@emotion/react/jsx-runtime");
|
|
@@ -13053,14 +13180,14 @@ var Label = ({ children, className, testId, ...props }) => {
|
|
|
13053
13180
|
var import_md4 = require("react-icons/md");
|
|
13054
13181
|
|
|
13055
13182
|
// src/components/Input/styles/WarningMessage.styles.tsx
|
|
13056
|
-
var
|
|
13057
|
-
var WarningText =
|
|
13183
|
+
var import_react57 = require("@emotion/react");
|
|
13184
|
+
var WarningText = import_react57.css`
|
|
13058
13185
|
align-items: center;
|
|
13059
13186
|
color: var(--alert-text);
|
|
13060
13187
|
display: flex;
|
|
13061
13188
|
gap: var(--spacing-sm);
|
|
13062
13189
|
`;
|
|
13063
|
-
var WarningIcon =
|
|
13190
|
+
var WarningIcon = import_react57.css`
|
|
13064
13191
|
color: var(--alert);
|
|
13065
13192
|
`;
|
|
13066
13193
|
|
|
@@ -13075,7 +13202,7 @@ var WarningMessage = ({ message, testId, ...props }) => {
|
|
|
13075
13202
|
|
|
13076
13203
|
// src/components/Input/Input.tsx
|
|
13077
13204
|
var import_jsx_runtime48 = require("@emotion/react/jsx-runtime");
|
|
13078
|
-
var Input =
|
|
13205
|
+
var Input = React14.forwardRef(
|
|
13079
13206
|
({
|
|
13080
13207
|
label,
|
|
13081
13208
|
icon,
|
|
@@ -13271,17 +13398,17 @@ function InputComboBox(props) {
|
|
|
13271
13398
|
}
|
|
13272
13399
|
|
|
13273
13400
|
// src/components/Input/InputInlineSelect.tsx
|
|
13274
|
-
var
|
|
13275
|
-
var
|
|
13401
|
+
var import_react59 = require("@emotion/react");
|
|
13402
|
+
var import_react60 = require("react");
|
|
13276
13403
|
var import_cg11 = require("react-icons/cg");
|
|
13277
13404
|
|
|
13278
13405
|
// src/components/Input/styles/InputInlineSelect.styles.ts
|
|
13279
|
-
var
|
|
13280
|
-
var inlineSelectContainer =
|
|
13406
|
+
var import_react58 = require("@emotion/react");
|
|
13407
|
+
var inlineSelectContainer = import_react58.css`
|
|
13281
13408
|
margin-inline: auto;
|
|
13282
13409
|
max-width: fit-content;
|
|
13283
13410
|
`;
|
|
13284
|
-
var inlineSelectBtn =
|
|
13411
|
+
var inlineSelectBtn = import_react58.css`
|
|
13285
13412
|
align-items: center;
|
|
13286
13413
|
background: var(--brand-secondary-3);
|
|
13287
13414
|
border: 2px solid var(--brand-secondary-3);
|
|
@@ -13305,7 +13432,7 @@ var inlineSelectBtn = import_react57.css`
|
|
|
13305
13432
|
outline: 2px solid var(--brand-secondary-1);
|
|
13306
13433
|
}
|
|
13307
13434
|
`;
|
|
13308
|
-
var inlineSelectMenu =
|
|
13435
|
+
var inlineSelectMenu = import_react58.css`
|
|
13309
13436
|
background: var(--white);
|
|
13310
13437
|
border: 1px solid var(--brand-secondary-3);
|
|
13311
13438
|
border-top: none;
|
|
@@ -13316,7 +13443,7 @@ var inlineSelectMenu = import_react57.css`
|
|
|
13316
13443
|
inset: auto 0;
|
|
13317
13444
|
transform: translateY(-0.2rem);
|
|
13318
13445
|
`;
|
|
13319
|
-
var inlineSelectBtnOptions =
|
|
13446
|
+
var inlineSelectBtnOptions = import_react58.css`
|
|
13320
13447
|
cursor: pointer;
|
|
13321
13448
|
display: block;
|
|
13322
13449
|
font-size: var(--fs-sm);
|
|
@@ -13332,7 +13459,7 @@ var inlineSelectBtnOptions = import_react57.css`
|
|
|
13332
13459
|
background: var(--gray-50);
|
|
13333
13460
|
}
|
|
13334
13461
|
`;
|
|
13335
|
-
var inlineSelectMenuClosed =
|
|
13462
|
+
var inlineSelectMenuClosed = import_react58.css`
|
|
13336
13463
|
position: absolute;
|
|
13337
13464
|
overflow: hidden;
|
|
13338
13465
|
height: 1px;
|
|
@@ -13352,15 +13479,15 @@ var InputInlineSelect = ({
|
|
|
13352
13479
|
...props
|
|
13353
13480
|
}) => {
|
|
13354
13481
|
var _a;
|
|
13355
|
-
const [menuVisible, setMenuVisible] = (0,
|
|
13356
|
-
const divRef = (0,
|
|
13482
|
+
const [menuVisible, setMenuVisible] = (0, import_react60.useState)(false);
|
|
13483
|
+
const divRef = (0, import_react60.useRef)(null);
|
|
13357
13484
|
useOutsideClick(divRef, () => setMenuVisible(false));
|
|
13358
13485
|
const selected = options.find((option) => option.value === value);
|
|
13359
13486
|
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
13360
13487
|
"div",
|
|
13361
13488
|
{
|
|
13362
13489
|
ref: divRef,
|
|
13363
|
-
css: !classNameContainer ? inlineSelectContainer :
|
|
13490
|
+
css: !classNameContainer ? inlineSelectContainer : import_react59.css`
|
|
13364
13491
|
max-width: fit-content;
|
|
13365
13492
|
${typeof classNameContainer === "object" ? classNameContainer : void 0}
|
|
13366
13493
|
`,
|
|
@@ -13513,9 +13640,9 @@ var InputSelect = ({
|
|
|
13513
13640
|
};
|
|
13514
13641
|
|
|
13515
13642
|
// src/components/Input/InputToggle.tsx
|
|
13516
|
-
var
|
|
13643
|
+
var React15 = __toESM(require("react"));
|
|
13517
13644
|
var import_jsx_runtime53 = require("@emotion/react/jsx-runtime");
|
|
13518
|
-
var InputToggle =
|
|
13645
|
+
var InputToggle = React15.forwardRef(
|
|
13519
13646
|
({
|
|
13520
13647
|
label,
|
|
13521
13648
|
type,
|
|
@@ -13529,26 +13656,33 @@ var InputToggle = React14.forwardRef(
|
|
|
13529
13656
|
fontWeight = "medium",
|
|
13530
13657
|
...props
|
|
13531
13658
|
}, ref) => {
|
|
13532
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
13533
|
-
|
|
13534
|
-
|
|
13535
|
-
|
|
13536
|
-
|
|
13537
|
-
|
|
13538
|
-
|
|
13539
|
-
|
|
13540
|
-
|
|
13541
|
-
|
|
13542
|
-
|
|
13543
|
-
|
|
13544
|
-
|
|
13545
|
-
|
|
13546
|
-
|
|
13547
|
-
|
|
13548
|
-
|
|
13549
|
-
|
|
13550
|
-
|
|
13551
|
-
|
|
13659
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
13660
|
+
Label,
|
|
13661
|
+
{
|
|
13662
|
+
css: [inputToggleLabel, disabled ? inputDisabled : void 0],
|
|
13663
|
+
"data-test-id": testId ? testId : "input-toggle",
|
|
13664
|
+
children: [
|
|
13665
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
13666
|
+
"input",
|
|
13667
|
+
{
|
|
13668
|
+
ref,
|
|
13669
|
+
type,
|
|
13670
|
+
css: toggleInput,
|
|
13671
|
+
checked,
|
|
13672
|
+
name,
|
|
13673
|
+
disabled,
|
|
13674
|
+
...props
|
|
13675
|
+
}
|
|
13676
|
+
),
|
|
13677
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { css: inlineLabel(fontWeight), children: label }),
|
|
13678
|
+
caption || errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("span", { css: inputToggleMessageContainer, children: [
|
|
13679
|
+
caption ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Caption, { children: caption }) : null,
|
|
13680
|
+
errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ErrorMessage, { message: errorMessage }) : null,
|
|
13681
|
+
warningMessage && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(WarningMessage, { message: warningMessage }) : null
|
|
13682
|
+
] }) : null
|
|
13683
|
+
]
|
|
13684
|
+
}
|
|
13685
|
+
);
|
|
13552
13686
|
}
|
|
13553
13687
|
);
|
|
13554
13688
|
|
|
@@ -13562,8 +13696,8 @@ var Legend = ({ children }) => {
|
|
|
13562
13696
|
var import_cg12 = require("react-icons/cg");
|
|
13563
13697
|
|
|
13564
13698
|
// src/components/Input/styles/SuccessMessage.styles.ts
|
|
13565
|
-
var
|
|
13566
|
-
var SuccessText =
|
|
13699
|
+
var import_react61 = require("@emotion/react");
|
|
13700
|
+
var SuccessText = import_react61.css`
|
|
13567
13701
|
--info-desc: var(--brand-secondary-3);
|
|
13568
13702
|
--info-icon: var(--brand-secondary-3);
|
|
13569
13703
|
|
|
@@ -13572,7 +13706,7 @@ var SuccessText = import_react60.css`
|
|
|
13572
13706
|
display: flex;
|
|
13573
13707
|
gap: var(--spacing-sm);
|
|
13574
13708
|
`;
|
|
13575
|
-
var SuccessIcon2 =
|
|
13709
|
+
var SuccessIcon2 = import_react61.css`
|
|
13576
13710
|
color: var(--info-icon);
|
|
13577
13711
|
`;
|
|
13578
13712
|
|
|
@@ -13618,7 +13752,7 @@ var Textarea = ({
|
|
|
13618
13752
|
};
|
|
13619
13753
|
|
|
13620
13754
|
// src/components/JsonEditor/JsonEditor.tsx
|
|
13621
|
-
var
|
|
13755
|
+
var import_react62 = __toESM(require("@monaco-editor/react"));
|
|
13622
13756
|
var import_jsx_runtime57 = require("@emotion/react/jsx-runtime");
|
|
13623
13757
|
var minEditorHeightPx = 150;
|
|
13624
13758
|
var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
@@ -13630,7 +13764,7 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
13630
13764
|
effectiveHeight = minEditorHeightPx;
|
|
13631
13765
|
}
|
|
13632
13766
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
13633
|
-
|
|
13767
|
+
import_react62.default,
|
|
13634
13768
|
{
|
|
13635
13769
|
height: effectiveHeight,
|
|
13636
13770
|
className: "uniform-json-editor",
|
|
@@ -13666,34 +13800,34 @@ var JsonEditor = ({ defaultValue, onChange, jsonSchema, height, readOnly }) => {
|
|
|
13666
13800
|
};
|
|
13667
13801
|
|
|
13668
13802
|
// src/components/LimitsBar/LimitsBar.styles.ts
|
|
13669
|
-
var
|
|
13670
|
-
var LimitsBarContainer =
|
|
13803
|
+
var import_react63 = require("@emotion/react");
|
|
13804
|
+
var LimitsBarContainer = import_react63.css`
|
|
13671
13805
|
margin-block: var(--spacing-sm);
|
|
13672
13806
|
`;
|
|
13673
|
-
var LimitsBarProgressBar =
|
|
13807
|
+
var LimitsBarProgressBar = import_react63.css`
|
|
13674
13808
|
background: var(--gray-100);
|
|
13675
13809
|
margin-top: var(--spacing-sm);
|
|
13676
13810
|
position: relative;
|
|
13677
13811
|
overflow: hidden;
|
|
13678
13812
|
height: 0.25rem;
|
|
13679
13813
|
`;
|
|
13680
|
-
var LimitsBarProgressBarLine =
|
|
13814
|
+
var LimitsBarProgressBarLine = import_react63.css`
|
|
13681
13815
|
position: absolute;
|
|
13682
13816
|
inset: 0;
|
|
13683
13817
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
13684
13818
|
`;
|
|
13685
|
-
var LimitsBarLabelContainer =
|
|
13819
|
+
var LimitsBarLabelContainer = import_react63.css`
|
|
13686
13820
|
display: flex;
|
|
13687
13821
|
justify-content: space-between;
|
|
13688
13822
|
font-weight: var(--fw-bold);
|
|
13689
13823
|
`;
|
|
13690
|
-
var LimitsBarLabel =
|
|
13824
|
+
var LimitsBarLabel = import_react63.css`
|
|
13691
13825
|
font-size: var(--fs-baase);
|
|
13692
13826
|
`;
|
|
13693
|
-
var LimitsBarBgColor = (statusColor) =>
|
|
13827
|
+
var LimitsBarBgColor = (statusColor) => import_react63.css`
|
|
13694
13828
|
background: ${statusColor};
|
|
13695
13829
|
`;
|
|
13696
|
-
var LimitsBarTextColor = (statusColor) =>
|
|
13830
|
+
var LimitsBarTextColor = (statusColor) => import_react63.css`
|
|
13697
13831
|
color: ${statusColor};
|
|
13698
13832
|
`;
|
|
13699
13833
|
|
|
@@ -13743,8 +13877,8 @@ var LimitsBar = ({ current, max, label }) => {
|
|
|
13743
13877
|
};
|
|
13744
13878
|
|
|
13745
13879
|
// src/components/LinkList/LinkList.styles.ts
|
|
13746
|
-
var
|
|
13747
|
-
var LinkListContainer = (padding) =>
|
|
13880
|
+
var import_react64 = require("@emotion/react");
|
|
13881
|
+
var LinkListContainer = (padding) => import_react64.css`
|
|
13748
13882
|
padding: ${padding};
|
|
13749
13883
|
|
|
13750
13884
|
${mq("sm")} {
|
|
@@ -13752,7 +13886,7 @@ var LinkListContainer = (padding) => import_react63.css`
|
|
|
13752
13886
|
grid-row: 1 / last-line;
|
|
13753
13887
|
}
|
|
13754
13888
|
`;
|
|
13755
|
-
var LinkListTitle =
|
|
13889
|
+
var LinkListTitle = import_react64.css`
|
|
13756
13890
|
font-weight: var(--fw-bold);
|
|
13757
13891
|
font-size: var(--fs-sm);
|
|
13758
13892
|
text-transform: uppercase;
|
|
@@ -13768,14 +13902,14 @@ var LinkList = ({ title, padding = "var(--spacing-md)", children, ...props }) =>
|
|
|
13768
13902
|
};
|
|
13769
13903
|
|
|
13770
13904
|
// src/components/List/ScrollableList.tsx
|
|
13771
|
-
var
|
|
13905
|
+
var import_react66 = require("@emotion/react");
|
|
13772
13906
|
|
|
13773
13907
|
// src/components/List/styles/ScrollableList.styles.ts
|
|
13774
|
-
var
|
|
13775
|
-
var ScrollableListContainer =
|
|
13908
|
+
var import_react65 = require("@emotion/react");
|
|
13909
|
+
var ScrollableListContainer = import_react65.css`
|
|
13776
13910
|
position: relative;
|
|
13777
13911
|
`;
|
|
13778
|
-
var ScrollableListInner =
|
|
13912
|
+
var ScrollableListInner = import_react65.css`
|
|
13779
13913
|
background: var(--gray-50);
|
|
13780
13914
|
border-top: 1px solid var(--gray-200);
|
|
13781
13915
|
border-bottom: 1px solid var(--gray-200);
|
|
@@ -13804,7 +13938,7 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
13804
13938
|
label ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
13805
13939
|
"span",
|
|
13806
13940
|
{
|
|
13807
|
-
css:
|
|
13941
|
+
css: import_react66.css`
|
|
13808
13942
|
${labelText}
|
|
13809
13943
|
`,
|
|
13810
13944
|
children: label
|
|
@@ -13818,8 +13952,8 @@ var ScrollableList = ({ label, children, ...props }) => {
|
|
|
13818
13952
|
var import_cg13 = require("react-icons/cg");
|
|
13819
13953
|
|
|
13820
13954
|
// src/components/List/styles/ScrollableListItem.styles.ts
|
|
13821
|
-
var
|
|
13822
|
-
var ScrollableListItemContainer =
|
|
13955
|
+
var import_react67 = require("@emotion/react");
|
|
13956
|
+
var ScrollableListItemContainer = import_react67.css`
|
|
13823
13957
|
align-items: center;
|
|
13824
13958
|
background: var(--white);
|
|
13825
13959
|
border-radius: var(--rounded-base);
|
|
@@ -13828,13 +13962,13 @@ var ScrollableListItemContainer = import_react66.css`
|
|
|
13828
13962
|
min-height: 52px;
|
|
13829
13963
|
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
13830
13964
|
`;
|
|
13831
|
-
var ScrollableListItemShadow =
|
|
13965
|
+
var ScrollableListItemShadow = import_react67.css`
|
|
13832
13966
|
box-shadow: var(--shadow-base);
|
|
13833
13967
|
`;
|
|
13834
|
-
var ScrollableListItemActive =
|
|
13968
|
+
var ScrollableListItemActive = import_react67.css`
|
|
13835
13969
|
border-color: var(--brand-secondary-3);
|
|
13836
13970
|
`;
|
|
13837
|
-
var ScrollableListItemBtn =
|
|
13971
|
+
var ScrollableListItemBtn = import_react67.css`
|
|
13838
13972
|
align-items: center;
|
|
13839
13973
|
border: none;
|
|
13840
13974
|
background: transparent;
|
|
@@ -13849,27 +13983,27 @@ var ScrollableListItemBtn = import_react66.css`
|
|
|
13849
13983
|
outline: none;
|
|
13850
13984
|
}
|
|
13851
13985
|
`;
|
|
13852
|
-
var ScrollableListInputLabel =
|
|
13986
|
+
var ScrollableListInputLabel = import_react67.css`
|
|
13853
13987
|
align-items: center;
|
|
13854
13988
|
cursor: pointer;
|
|
13855
13989
|
display: flex;
|
|
13856
13990
|
padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs);
|
|
13857
13991
|
flex-grow: 1;
|
|
13858
13992
|
`;
|
|
13859
|
-
var ScrollableListInputText =
|
|
13993
|
+
var ScrollableListInputText = import_react67.css`
|
|
13860
13994
|
align-items: center;
|
|
13861
13995
|
display: flex;
|
|
13862
13996
|
gap: var(--spacing-sm);
|
|
13863
13997
|
flex-grow: 1;
|
|
13864
13998
|
flex-wrap: wrap;
|
|
13865
13999
|
`;
|
|
13866
|
-
var ScrollableListHiddenInput =
|
|
14000
|
+
var ScrollableListHiddenInput = import_react67.css`
|
|
13867
14001
|
position: absolute;
|
|
13868
14002
|
height: 0;
|
|
13869
14003
|
width: 0;
|
|
13870
14004
|
opacity: 0;
|
|
13871
14005
|
`;
|
|
13872
|
-
var ScrollableListIcon =
|
|
14006
|
+
var ScrollableListIcon = import_react67.css`
|
|
13873
14007
|
border-radius: var(--rounded-full);
|
|
13874
14008
|
background: var(--brand-secondary-3);
|
|
13875
14009
|
color: var(--white);
|
|
@@ -13877,7 +14011,7 @@ var ScrollableListIcon = import_react66.css`
|
|
|
13877
14011
|
min-width: 24px;
|
|
13878
14012
|
opacity: 0;
|
|
13879
14013
|
`;
|
|
13880
|
-
var ScrollableListIconVisible =
|
|
14014
|
+
var ScrollableListIconVisible = import_react67.css`
|
|
13881
14015
|
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
13882
14016
|
`;
|
|
13883
14017
|
|
|
@@ -13957,8 +14091,8 @@ var ScrollableListItem = ({
|
|
|
13957
14091
|
};
|
|
13958
14092
|
|
|
13959
14093
|
// src/components/LoadingIndicator/LoadingIndicator.styles.ts
|
|
13960
|
-
var
|
|
13961
|
-
var bounceFade =
|
|
14094
|
+
var import_react68 = require("@emotion/react");
|
|
14095
|
+
var bounceFade = import_react68.keyframes`
|
|
13962
14096
|
0%, 100% {
|
|
13963
14097
|
opacity: 1.0;
|
|
13964
14098
|
transform: translateY(0);
|
|
@@ -13975,11 +14109,11 @@ var bounceFade = import_react67.keyframes`
|
|
|
13975
14109
|
transform: translateY(-5px);
|
|
13976
14110
|
}
|
|
13977
14111
|
`;
|
|
13978
|
-
var loader =
|
|
14112
|
+
var loader = import_react68.css`
|
|
13979
14113
|
display: inline-flex;
|
|
13980
14114
|
justify-content: center;
|
|
13981
14115
|
`;
|
|
13982
|
-
var loadingDot =
|
|
14116
|
+
var loadingDot = import_react68.css`
|
|
13983
14117
|
background-color: var(--gray-700);
|
|
13984
14118
|
display: block;
|
|
13985
14119
|
border-radius: var(--rounded-full);
|
|
@@ -14013,11 +14147,11 @@ var LoadingIndicator = ({ ...props }) => {
|
|
|
14013
14147
|
};
|
|
14014
14148
|
|
|
14015
14149
|
// src/components/LoadingOverlay/LoadingOverlay.tsx
|
|
14016
|
-
var
|
|
14150
|
+
var import_react70 = require("react");
|
|
14017
14151
|
|
|
14018
14152
|
// src/components/LoadingOverlay/LoadingOverlay.styles.ts
|
|
14019
|
-
var
|
|
14020
|
-
var loadingOverlayContainer =
|
|
14153
|
+
var import_react69 = require("@emotion/react");
|
|
14154
|
+
var loadingOverlayContainer = import_react69.css`
|
|
14021
14155
|
position: absolute;
|
|
14022
14156
|
inset: 0;
|
|
14023
14157
|
overflow: hidden;
|
|
@@ -14025,24 +14159,24 @@ var loadingOverlayContainer = import_react68.css`
|
|
|
14025
14159
|
padding: var(--spacing-xl);
|
|
14026
14160
|
overflow-y: auto;
|
|
14027
14161
|
`;
|
|
14028
|
-
var loadingOverlayVisible =
|
|
14162
|
+
var loadingOverlayVisible = import_react69.css`
|
|
14029
14163
|
display: flex;
|
|
14030
14164
|
`;
|
|
14031
|
-
var loadingOverlayHidden =
|
|
14165
|
+
var loadingOverlayHidden = import_react69.css`
|
|
14032
14166
|
display: none;
|
|
14033
14167
|
`;
|
|
14034
|
-
var loadingOverlayBackground = (bgColor) =>
|
|
14168
|
+
var loadingOverlayBackground = (bgColor) => import_react69.css`
|
|
14035
14169
|
background: ${bgColor};
|
|
14036
14170
|
opacity: 0.92;
|
|
14037
14171
|
position: absolute;
|
|
14038
14172
|
inset: 0 0;
|
|
14039
14173
|
`;
|
|
14040
|
-
var loadingOverlayBody =
|
|
14174
|
+
var loadingOverlayBody = import_react69.css`
|
|
14041
14175
|
align-items: center;
|
|
14042
14176
|
display: flex;
|
|
14043
14177
|
flex-direction: column;
|
|
14044
14178
|
`;
|
|
14045
|
-
var loadingOverlayMessage =
|
|
14179
|
+
var loadingOverlayMessage = import_react69.css`
|
|
14046
14180
|
color: var(--gray-600);
|
|
14047
14181
|
margin: var(--spacing-base) 0 0;
|
|
14048
14182
|
`;
|
|
@@ -14059,14 +14193,14 @@ var LoadingOverlay = ({
|
|
|
14059
14193
|
isPaused = false,
|
|
14060
14194
|
children
|
|
14061
14195
|
}) => {
|
|
14062
|
-
const lottieRef = (0,
|
|
14063
|
-
const onLoopComplete = (0,
|
|
14196
|
+
const lottieRef = (0, import_react70.useRef)(null);
|
|
14197
|
+
const onLoopComplete = (0, import_react70.useCallback)(() => {
|
|
14064
14198
|
var _a, _b, _c;
|
|
14065
14199
|
if (isPaused && !((_b = (_a = lottieRef.current) == null ? void 0 : _a.animationItem) == null ? void 0 : _b.isPaused)) {
|
|
14066
14200
|
(_c = lottieRef.current) == null ? void 0 : _c.stop();
|
|
14067
14201
|
}
|
|
14068
14202
|
}, [isPaused]);
|
|
14069
|
-
(0,
|
|
14203
|
+
(0, import_react70.useEffect)(() => {
|
|
14070
14204
|
var _a, _b, _c, _d, _e, _f;
|
|
14071
14205
|
if (!isPaused && ((_b = (_a = lottieRef.current) == null ? void 0 : _a.animationItem) == null ? void 0 : _b.isPaused)) {
|
|
14072
14206
|
(_c = lottieRef.current) == null ? void 0 : _c.play();
|
|
@@ -14137,12 +14271,12 @@ var LoadingIcon = ({ height, width, ...props }) => {
|
|
|
14137
14271
|
};
|
|
14138
14272
|
|
|
14139
14273
|
// src/components/Tiles/CreateTeamIntegrationTile.tsx
|
|
14140
|
-
var
|
|
14274
|
+
var import_react72 = require("@emotion/react");
|
|
14141
14275
|
var import_cg15 = require("react-icons/cg");
|
|
14142
14276
|
|
|
14143
14277
|
// src/components/Tiles/styles/IntegrationTile.styles.ts
|
|
14144
|
-
var
|
|
14145
|
-
var IntegrationTileContainer =
|
|
14278
|
+
var import_react71 = require("@emotion/react");
|
|
14279
|
+
var IntegrationTileContainer = import_react71.css`
|
|
14146
14280
|
align-items: center;
|
|
14147
14281
|
box-sizing: border-box;
|
|
14148
14282
|
border-radius: var(--rounded-base);
|
|
@@ -14173,22 +14307,22 @@ var IntegrationTileContainer = import_react70.css`
|
|
|
14173
14307
|
}
|
|
14174
14308
|
}
|
|
14175
14309
|
`;
|
|
14176
|
-
var IntegrationTileBtnDashedBorder =
|
|
14310
|
+
var IntegrationTileBtnDashedBorder = import_react71.css`
|
|
14177
14311
|
border: 1px dashed var(--brand-secondary-1);
|
|
14178
14312
|
`;
|
|
14179
|
-
var IntegrationTileTitle =
|
|
14313
|
+
var IntegrationTileTitle = import_react71.css`
|
|
14180
14314
|
display: block;
|
|
14181
14315
|
font-weight: var(--fw-bold);
|
|
14182
14316
|
margin: 0 0 var(--spacing-base);
|
|
14183
14317
|
max-width: 13rem;
|
|
14184
14318
|
`;
|
|
14185
|
-
var IntegrationTitleLogo =
|
|
14319
|
+
var IntegrationTitleLogo = import_react71.css`
|
|
14186
14320
|
display: block;
|
|
14187
14321
|
max-width: 10rem;
|
|
14188
14322
|
max-height: 4rem;
|
|
14189
14323
|
margin: 0 auto;
|
|
14190
14324
|
`;
|
|
14191
|
-
var IntegrationTileName =
|
|
14325
|
+
var IntegrationTileName = import_react71.css`
|
|
14192
14326
|
color: var(--gray-500);
|
|
14193
14327
|
display: -webkit-box;
|
|
14194
14328
|
-webkit-line-clamp: 1;
|
|
@@ -14201,7 +14335,7 @@ var IntegrationTileName = import_react70.css`
|
|
|
14201
14335
|
position: absolute;
|
|
14202
14336
|
bottom: calc(var(--spacing-base) * 3.8);
|
|
14203
14337
|
`;
|
|
14204
|
-
var IntegrationAddedText =
|
|
14338
|
+
var IntegrationAddedText = import_react71.css`
|
|
14205
14339
|
align-items: center;
|
|
14206
14340
|
background: var(--brand-secondary-3);
|
|
14207
14341
|
border-radius: 0 var(--rounded-md) 0 var(--rounded-md);
|
|
@@ -14216,7 +14350,7 @@ var IntegrationAddedText = import_react70.css`
|
|
|
14216
14350
|
top: 0;
|
|
14217
14351
|
right: 0;
|
|
14218
14352
|
`;
|
|
14219
|
-
var IntegrationCustomBadgeText = (theme) =>
|
|
14353
|
+
var IntegrationCustomBadgeText = (theme) => import_react71.css`
|
|
14220
14354
|
align-items: center;
|
|
14221
14355
|
border-radius: var(--rounded-sm) 0 var(--rounded-sm) 0;
|
|
14222
14356
|
background: ${theme === "gray" ? "var(--brand-secondary-2)" : "var(--brand-secondary-1)"};
|
|
@@ -14230,26 +14364,26 @@ var IntegrationCustomBadgeText = (theme) => import_react70.css`
|
|
|
14230
14364
|
top: 0;
|
|
14231
14365
|
left: 0;
|
|
14232
14366
|
`;
|
|
14233
|
-
var IntegrationAuthorBadgeIcon =
|
|
14367
|
+
var IntegrationAuthorBadgeIcon = import_react71.css`
|
|
14234
14368
|
position: absolute;
|
|
14235
14369
|
bottom: var(--spacing-sm);
|
|
14236
14370
|
right: var(--spacing-xs);
|
|
14237
14371
|
max-height: 1rem;
|
|
14238
14372
|
`;
|
|
14239
|
-
var IntegrationTitleFakeButton =
|
|
14373
|
+
var IntegrationTitleFakeButton = import_react71.css`
|
|
14240
14374
|
font-size: var(--fs-xs);
|
|
14241
14375
|
gap: var(--spacing-sm);
|
|
14242
14376
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
14243
14377
|
text-transform: uppercase;
|
|
14244
14378
|
`;
|
|
14245
|
-
var IntegrationTileFloatingButton =
|
|
14379
|
+
var IntegrationTileFloatingButton = import_react71.css`
|
|
14246
14380
|
position: absolute;
|
|
14247
14381
|
bottom: var(--spacing-base);
|
|
14248
14382
|
gap: var(--spacing-sm);
|
|
14249
14383
|
font-size: var(--fs-xs);
|
|
14250
14384
|
overflow: hidden;
|
|
14251
14385
|
`;
|
|
14252
|
-
var IntegrationTileFloatingButtonMessage = (clicked) =>
|
|
14386
|
+
var IntegrationTileFloatingButtonMessage = (clicked) => import_react71.css`
|
|
14253
14387
|
strong,
|
|
14254
14388
|
span:first-of-type {
|
|
14255
14389
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
@@ -14296,7 +14430,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
14296
14430
|
icon: import_cg15.CgChevronRight,
|
|
14297
14431
|
iconColor: "currentColor",
|
|
14298
14432
|
size: 20,
|
|
14299
|
-
css:
|
|
14433
|
+
css: import_react72.css`
|
|
14300
14434
|
order: 1;
|
|
14301
14435
|
`
|
|
14302
14436
|
}
|
|
@@ -14306,7 +14440,7 @@ var CreateTeamIntegrationTile = ({
|
|
|
14306
14440
|
icon: import_cg15.CgAdd,
|
|
14307
14441
|
iconColor: "currentColor",
|
|
14308
14442
|
size: 16,
|
|
14309
|
-
css:
|
|
14443
|
+
css: import_react72.css`
|
|
14310
14444
|
order: -1;
|
|
14311
14445
|
`
|
|
14312
14446
|
}
|
|
@@ -14394,8 +14528,8 @@ var EditTeamIntegrationTile = ({
|
|
|
14394
14528
|
};
|
|
14395
14529
|
|
|
14396
14530
|
// src/components/Tiles/IntegrationComingSoon.tsx
|
|
14397
|
-
var
|
|
14398
|
-
var
|
|
14531
|
+
var import_react73 = require("@emotion/react");
|
|
14532
|
+
var import_react74 = require("react");
|
|
14399
14533
|
var import_cg17 = require("react-icons/cg");
|
|
14400
14534
|
var import_jsx_runtime69 = require("@emotion/react/jsx-runtime");
|
|
14401
14535
|
var IntegrationComingSoon = ({
|
|
@@ -14406,12 +14540,12 @@ var IntegrationComingSoon = ({
|
|
|
14406
14540
|
timing = 1e3,
|
|
14407
14541
|
...props
|
|
14408
14542
|
}) => {
|
|
14409
|
-
const [upVote, setUpVote] = (0,
|
|
14543
|
+
const [upVote, setUpVote] = (0, import_react74.useState)(false);
|
|
14410
14544
|
const handleUpVoteInteraction = () => {
|
|
14411
14545
|
setUpVote((prev) => !prev);
|
|
14412
14546
|
onUpVoteClick();
|
|
14413
14547
|
};
|
|
14414
|
-
(0,
|
|
14548
|
+
(0, import_react74.useEffect)(() => {
|
|
14415
14549
|
if (upVote) {
|
|
14416
14550
|
const timer = setTimeout(() => setUpVote(false), timing);
|
|
14417
14551
|
return () => {
|
|
@@ -14443,7 +14577,7 @@ var IntegrationComingSoon = ({
|
|
|
14443
14577
|
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
14444
14578
|
"span",
|
|
14445
14579
|
{
|
|
14446
|
-
css:
|
|
14580
|
+
css: import_react73.css`
|
|
14447
14581
|
text-transform: uppercase;
|
|
14448
14582
|
color: var(--gray-500);
|
|
14449
14583
|
`,
|
|
@@ -14463,8 +14597,8 @@ var IntegrationComingSoon = ({
|
|
|
14463
14597
|
};
|
|
14464
14598
|
|
|
14465
14599
|
// src/components/Tiles/styles/IntegrationLoadingTile.styles.ts
|
|
14466
|
-
var
|
|
14467
|
-
var IntegrationLoadingTileContainer =
|
|
14600
|
+
var import_react75 = require("@emotion/react");
|
|
14601
|
+
var IntegrationLoadingTileContainer = import_react75.css`
|
|
14468
14602
|
align-items: center;
|
|
14469
14603
|
box-sizing: border-box;
|
|
14470
14604
|
border-radius: var(--rounded-base);
|
|
@@ -14491,17 +14625,17 @@ var IntegrationLoadingTileContainer = import_react74.css`
|
|
|
14491
14625
|
}
|
|
14492
14626
|
}
|
|
14493
14627
|
`;
|
|
14494
|
-
var IntegrationLoadingTileImg =
|
|
14628
|
+
var IntegrationLoadingTileImg = import_react75.css`
|
|
14495
14629
|
width: 10rem;
|
|
14496
14630
|
height: 4rem;
|
|
14497
14631
|
margin: 0 auto;
|
|
14498
14632
|
`;
|
|
14499
|
-
var IntegrationLoadingTileText =
|
|
14633
|
+
var IntegrationLoadingTileText = import_react75.css`
|
|
14500
14634
|
width: 5rem;
|
|
14501
14635
|
height: var(--spacing-sm);
|
|
14502
14636
|
margin: var(--spacing-sm) 0;
|
|
14503
14637
|
`;
|
|
14504
|
-
var IntegrationLoadingFrame =
|
|
14638
|
+
var IntegrationLoadingFrame = import_react75.css`
|
|
14505
14639
|
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
14506
14640
|
border-radius: var(--rounded-base);
|
|
14507
14641
|
`;
|
|
@@ -14517,13 +14651,13 @@ var IntegrationLoadingTile = ({ count = 1 }) => {
|
|
|
14517
14651
|
};
|
|
14518
14652
|
|
|
14519
14653
|
// src/components/Tiles/styles/IntegrationModalIcon.styles.ts
|
|
14520
|
-
var
|
|
14521
|
-
var IntegrationModalIconContainer =
|
|
14654
|
+
var import_react76 = require("@emotion/react");
|
|
14655
|
+
var IntegrationModalIconContainer = import_react76.css`
|
|
14522
14656
|
position: relative;
|
|
14523
14657
|
width: 50px;
|
|
14524
14658
|
margin-bottom: var(--spacing-base);
|
|
14525
14659
|
`;
|
|
14526
|
-
var IntegrationModalImage =
|
|
14660
|
+
var IntegrationModalImage = import_react76.css`
|
|
14527
14661
|
position: absolute;
|
|
14528
14662
|
inset: 0;
|
|
14529
14663
|
margin: auto;
|
|
@@ -14611,59 +14745,118 @@ var IntegrationTile = ({
|
|
|
14611
14745
|
);
|
|
14612
14746
|
};
|
|
14613
14747
|
|
|
14614
|
-
// src/components/Tiles/styles/
|
|
14615
|
-
var
|
|
14616
|
-
var
|
|
14617
|
-
background: var(--
|
|
14748
|
+
// src/components/Tiles/styles/Tile.styles.ts
|
|
14749
|
+
var import_react77 = require("@emotion/react");
|
|
14750
|
+
var Tile = import_react77.css`
|
|
14751
|
+
background: var(--white);
|
|
14752
|
+
border: none;
|
|
14753
|
+
cursor: pointer;
|
|
14754
|
+
outline: 1px solid var(--gray-300);
|
|
14755
|
+
display: grid;
|
|
14618
14756
|
padding: var(--spacing-base);
|
|
14619
|
-
|
|
14757
|
+
place-items: center;
|
|
14758
|
+
place-content: flex-start center;
|
|
14759
|
+
gap: var(--spacing-sm);
|
|
14760
|
+
transition: background-color var(--duration-fast) var(--timing-ease-out);
|
|
14761
|
+
min-height: 128px;
|
|
14762
|
+
|
|
14763
|
+
&:hover,
|
|
14764
|
+
&:focus {
|
|
14765
|
+
background: var(--gray-50);
|
|
14766
|
+
}
|
|
14620
14767
|
`;
|
|
14621
|
-
|
|
14768
|
+
|
|
14769
|
+
// src/components/Tiles/Tile.tsx
|
|
14770
|
+
var import_jsx_runtime73 = require("@emotion/react/jsx-runtime");
|
|
14771
|
+
var Tile2 = ({ children, ...props }) => {
|
|
14772
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("button", { type: "button", css: Tile, ...props, children });
|
|
14773
|
+
};
|
|
14774
|
+
|
|
14775
|
+
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
14776
|
+
var import_react78 = require("@emotion/react");
|
|
14777
|
+
var TileContainerWrapper = (theme, padding) => import_react78.css`
|
|
14778
|
+
background: ${theme};
|
|
14779
|
+
padding: ${padding != "none" ? `var(--spacing-${padding})` : "0"};
|
|
14780
|
+
`;
|
|
14781
|
+
var TileContainerInner = (gap, templateColumns) => import_react78.css`
|
|
14622
14782
|
display: grid;
|
|
14623
|
-
grid-template-columns:
|
|
14624
|
-
gap: var(--spacing
|
|
14783
|
+
grid-template-columns: ${templateColumns};
|
|
14784
|
+
gap: var(--spacing-${gap});
|
|
14625
14785
|
`;
|
|
14626
14786
|
|
|
14627
14787
|
// src/components/Tiles/TileContainer.tsx
|
|
14628
|
-
var
|
|
14629
|
-
var TileContainer = ({
|
|
14630
|
-
|
|
14788
|
+
var import_jsx_runtime74 = require("@emotion/react/jsx-runtime");
|
|
14789
|
+
var TileContainer = ({
|
|
14790
|
+
bgColor = "var(--brand-secondary-2)",
|
|
14791
|
+
containerPadding = "base",
|
|
14792
|
+
gap = "base",
|
|
14793
|
+
gridTemplateColumns = "repeat(auto-fill, minmax(13rem, 1fr))",
|
|
14794
|
+
children,
|
|
14795
|
+
...props
|
|
14796
|
+
}) => {
|
|
14797
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { css: TileContainerInner(gap, gridTemplateColumns), children }) });
|
|
14798
|
+
};
|
|
14799
|
+
|
|
14800
|
+
// src/components/Tiles/styles/TileText.styles.ts
|
|
14801
|
+
var import_react79 = require("@emotion/react");
|
|
14802
|
+
var TileHeading = import_react79.css`
|
|
14803
|
+
font-size: var(--fs-base);
|
|
14804
|
+
`;
|
|
14805
|
+
var TileText = import_react79.css`
|
|
14806
|
+
color: var(--gray-500);
|
|
14807
|
+
font-size: var(--fs-sm);
|
|
14808
|
+
line-height: 1.2;
|
|
14809
|
+
`;
|
|
14810
|
+
|
|
14811
|
+
// src/components/Tiles/TileText.tsx
|
|
14812
|
+
var import_jsx_runtime75 = require("@emotion/react/jsx-runtime");
|
|
14813
|
+
var TileText2 = ({ as = "heading", children, ...props }) => {
|
|
14814
|
+
const isHeading = as === "heading";
|
|
14815
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
14816
|
+
"span",
|
|
14817
|
+
{
|
|
14818
|
+
role: isHeading ? "heading" : void 0,
|
|
14819
|
+
css: isHeading ? TileHeading : TileText,
|
|
14820
|
+
...props,
|
|
14821
|
+
children
|
|
14822
|
+
}
|
|
14823
|
+
);
|
|
14631
14824
|
};
|
|
14632
14825
|
|
|
14633
14826
|
// src/components/Modal/IntegrationModalHeader.styles.ts
|
|
14634
|
-
var
|
|
14635
|
-
var IntegrationModalHeaderSVGBackground =
|
|
14827
|
+
var import_react80 = require("@emotion/react");
|
|
14828
|
+
var IntegrationModalHeaderSVGBackground = import_react80.css`
|
|
14636
14829
|
position: absolute;
|
|
14637
14830
|
top: 0;
|
|
14638
14831
|
left: 0;
|
|
14639
14832
|
`;
|
|
14640
|
-
var IntegrationModalHeaderGroup =
|
|
14833
|
+
var IntegrationModalHeaderGroup = import_react80.css`
|
|
14641
14834
|
align-items: center;
|
|
14642
14835
|
display: flex;
|
|
14643
14836
|
gap: var(--spacing-sm);
|
|
14644
14837
|
margin: 0 0 var(--spacing-md);
|
|
14645
14838
|
position: relative;
|
|
14646
14839
|
`;
|
|
14647
|
-
var IntegrationModalHeaderTitleGroup =
|
|
14840
|
+
var IntegrationModalHeaderTitleGroup = import_react80.css`
|
|
14648
14841
|
align-items: center;
|
|
14649
14842
|
display: flex;
|
|
14650
14843
|
gap: var(--spacing-base);
|
|
14651
14844
|
`;
|
|
14652
|
-
var IntegrationModalHeaderTitle =
|
|
14845
|
+
var IntegrationModalHeaderTitle = import_react80.css`
|
|
14653
14846
|
margin-top: 0;
|
|
14654
14847
|
`;
|
|
14655
|
-
var IntegrationModalHeaderMenuPlacement =
|
|
14848
|
+
var IntegrationModalHeaderMenuPlacement = import_react80.css`
|
|
14656
14849
|
margin-bottom: var(--spacing-base);
|
|
14657
14850
|
`;
|
|
14658
|
-
var IntegrationModalHeaderContentWrapper =
|
|
14851
|
+
var IntegrationModalHeaderContentWrapper = import_react80.css`
|
|
14659
14852
|
position: relative;
|
|
14660
14853
|
z-index: var(--z-10);
|
|
14661
14854
|
`;
|
|
14662
14855
|
|
|
14663
14856
|
// src/components/Modal/IntegrationModalHeader.tsx
|
|
14664
|
-
var
|
|
14857
|
+
var import_jsx_runtime76 = require("@emotion/react/jsx-runtime");
|
|
14665
14858
|
var HexModalBackground = ({ ...props }) => {
|
|
14666
|
-
return /* @__PURE__ */ (0,
|
|
14859
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
14667
14860
|
"svg",
|
|
14668
14861
|
{
|
|
14669
14862
|
width: "236",
|
|
@@ -14673,7 +14866,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14673
14866
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14674
14867
|
...props,
|
|
14675
14868
|
children: [
|
|
14676
|
-
/* @__PURE__ */ (0,
|
|
14869
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
14677
14870
|
"path",
|
|
14678
14871
|
{
|
|
14679
14872
|
fillRule: "evenodd",
|
|
@@ -14682,7 +14875,7 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14682
14875
|
fill: "url(#paint0_linear_196_2737)"
|
|
14683
14876
|
}
|
|
14684
14877
|
),
|
|
14685
|
-
/* @__PURE__ */ (0,
|
|
14878
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
14686
14879
|
"linearGradient",
|
|
14687
14880
|
{
|
|
14688
14881
|
id: "paint0_linear_196_2737",
|
|
@@ -14692,8 +14885,8 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14692
14885
|
y2: "-95.2742",
|
|
14693
14886
|
gradientUnits: "userSpaceOnUse",
|
|
14694
14887
|
children: [
|
|
14695
|
-
/* @__PURE__ */ (0,
|
|
14696
|
-
/* @__PURE__ */ (0,
|
|
14888
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("stop", { stopColor: "#81DCDE" }),
|
|
14889
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("stop", { offset: "1", stopColor: "#428ED4" })
|
|
14697
14890
|
]
|
|
14698
14891
|
}
|
|
14699
14892
|
) })
|
|
@@ -14702,27 +14895,27 @@ var HexModalBackground = ({ ...props }) => {
|
|
|
14702
14895
|
);
|
|
14703
14896
|
};
|
|
14704
14897
|
var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
14705
|
-
return /* @__PURE__ */ (0,
|
|
14706
|
-
/* @__PURE__ */ (0,
|
|
14707
|
-
/* @__PURE__ */ (0,
|
|
14708
|
-
icon ? /* @__PURE__ */ (0,
|
|
14709
|
-
/* @__PURE__ */ (0,
|
|
14710
|
-
menu2 ? /* @__PURE__ */ (0,
|
|
14898
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
|
|
14899
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(HexModalBackground, { css: IntegrationModalHeaderSVGBackground, role: "presentation" }),
|
|
14900
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { css: IntegrationModalHeaderGroup, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { css: IntegrationModalHeaderTitleGroup, children: [
|
|
14901
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(IntegrationModalIcon, { icon, name: name || "" }) : null,
|
|
14902
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Heading, { level: 3, css: IntegrationModalHeaderTitle, "data-test-id": "integration-modal-title", children: name || "Create Team Integration" }),
|
|
14903
|
+
menu2 ? /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { css: IntegrationModalHeaderMenuPlacement, children: [
|
|
14711
14904
|
menu2,
|
|
14712
14905
|
" "
|
|
14713
14906
|
] }) : null
|
|
14714
14907
|
] }) }),
|
|
14715
|
-
/* @__PURE__ */ (0,
|
|
14908
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { css: IntegrationModalHeaderContentWrapper, children })
|
|
14716
14909
|
] });
|
|
14717
14910
|
};
|
|
14718
14911
|
|
|
14719
14912
|
// src/components/Tooltip/Tooltip.tsx
|
|
14720
|
-
var
|
|
14913
|
+
var import_react82 = __toESM(require("react"));
|
|
14721
14914
|
var import_Tooltip = require("reakit/Tooltip");
|
|
14722
14915
|
|
|
14723
14916
|
// src/components/Tooltip/Tooltip.styles.ts
|
|
14724
|
-
var
|
|
14725
|
-
var TooltipContainer =
|
|
14917
|
+
var import_react81 = require("@emotion/react");
|
|
14918
|
+
var TooltipContainer = import_react81.css`
|
|
14726
14919
|
z-index: var(--z-tooltip);
|
|
14727
14920
|
border: 2px solid var(--gray-300);
|
|
14728
14921
|
border-radius: var(--rounded-base);
|
|
@@ -14731,28 +14924,28 @@ var TooltipContainer = import_react78.css`
|
|
|
14731
14924
|
font-size: var(--fs-xs);
|
|
14732
14925
|
background: var(--white);
|
|
14733
14926
|
`;
|
|
14734
|
-
var TooltipArrowStyles =
|
|
14927
|
+
var TooltipArrowStyles = import_react81.css`
|
|
14735
14928
|
svg {
|
|
14736
14929
|
fill: var(--gray-300);
|
|
14737
14930
|
}
|
|
14738
14931
|
`;
|
|
14739
14932
|
|
|
14740
14933
|
// src/components/Tooltip/Tooltip.tsx
|
|
14741
|
-
var
|
|
14934
|
+
var import_jsx_runtime77 = require("@emotion/react/jsx-runtime");
|
|
14742
14935
|
function Tooltip({ children, title, placement = "bottom", visible, ...props }) {
|
|
14743
14936
|
const tooltip = (0, import_Tooltip.useTooltipState)({ placement });
|
|
14744
|
-
return !title ? children : /* @__PURE__ */ (0,
|
|
14745
|
-
/* @__PURE__ */ (0,
|
|
14746
|
-
/* @__PURE__ */ (0,
|
|
14747
|
-
/* @__PURE__ */ (0,
|
|
14937
|
+
return !title ? children : /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_jsx_runtime77.Fragment, { children: [
|
|
14938
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_Tooltip.TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => import_react82.default.cloneElement(children, referenceProps) }),
|
|
14939
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_Tooltip.Tooltip, { ...tooltip, ...props, css: TooltipContainer, visible: visible != null ? visible : tooltip.visible, children: [
|
|
14940
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_Tooltip.TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
|
|
14748
14941
|
title
|
|
14749
14942
|
] })
|
|
14750
14943
|
] });
|
|
14751
14944
|
}
|
|
14752
14945
|
|
|
14753
14946
|
// src/components/ParameterInputs/styles/ParameterBindingButton.styles.ts
|
|
14754
|
-
var
|
|
14755
|
-
var inputIconBtn =
|
|
14947
|
+
var import_react83 = require("@emotion/react");
|
|
14948
|
+
var inputIconBtn = import_react83.css`
|
|
14756
14949
|
align-items: center;
|
|
14757
14950
|
border: none;
|
|
14758
14951
|
border-radius: var(--rounded-base);
|
|
@@ -14776,7 +14969,7 @@ var inputIconBtn = import_react80.css`
|
|
|
14776
14969
|
`;
|
|
14777
14970
|
|
|
14778
14971
|
// src/components/ParameterInputs/ConnectToDataElementButton.tsx
|
|
14779
|
-
var
|
|
14972
|
+
var import_jsx_runtime78 = require("@emotion/react/jsx-runtime");
|
|
14780
14973
|
var ConnectToDataElementButton = ({
|
|
14781
14974
|
icon,
|
|
14782
14975
|
iconColor,
|
|
@@ -14786,7 +14979,7 @@ var ConnectToDataElementButton = ({
|
|
|
14786
14979
|
...props
|
|
14787
14980
|
}) => {
|
|
14788
14981
|
const title = isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
14789
|
-
return /* @__PURE__ */ (0,
|
|
14982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Tooltip, { title, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
14790
14983
|
"button",
|
|
14791
14984
|
{
|
|
14792
14985
|
css: inputIconBtn,
|
|
@@ -14795,7 +14988,7 @@ var ConnectToDataElementButton = ({
|
|
|
14795
14988
|
"aria-disabled": isLocked,
|
|
14796
14989
|
...props,
|
|
14797
14990
|
children: [
|
|
14798
|
-
/* @__PURE__ */ (0,
|
|
14991
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
14799
14992
|
Icon,
|
|
14800
14993
|
{
|
|
14801
14994
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -14810,8 +15003,8 @@ var ConnectToDataElementButton = ({
|
|
|
14810
15003
|
};
|
|
14811
15004
|
|
|
14812
15005
|
// src/components/ParameterInputs/hooks/ParameterShellContext.tsx
|
|
14813
|
-
var
|
|
14814
|
-
var ParameterShellContext = (0,
|
|
15006
|
+
var import_react84 = require("react");
|
|
15007
|
+
var ParameterShellContext = (0, import_react84.createContext)({
|
|
14815
15008
|
id: "",
|
|
14816
15009
|
label: "",
|
|
14817
15010
|
hiddenLabel: void 0,
|
|
@@ -14820,7 +15013,7 @@ var ParameterShellContext = (0, import_react81.createContext)({
|
|
|
14820
15013
|
}
|
|
14821
15014
|
});
|
|
14822
15015
|
var useParameterShell = () => {
|
|
14823
|
-
const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } = (0,
|
|
15016
|
+
const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } = (0, import_react84.useContext)(ParameterShellContext);
|
|
14824
15017
|
return {
|
|
14825
15018
|
id,
|
|
14826
15019
|
label,
|
|
@@ -14831,8 +15024,8 @@ var useParameterShell = () => {
|
|
|
14831
15024
|
};
|
|
14832
15025
|
|
|
14833
15026
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
14834
|
-
var
|
|
14835
|
-
var inputContainer2 =
|
|
15027
|
+
var import_react85 = require("@emotion/react");
|
|
15028
|
+
var inputContainer2 = import_react85.css`
|
|
14836
15029
|
position: relative;
|
|
14837
15030
|
|
|
14838
15031
|
&:hover,
|
|
@@ -14844,14 +15037,14 @@ var inputContainer2 = import_react82.css`
|
|
|
14844
15037
|
}
|
|
14845
15038
|
}
|
|
14846
15039
|
`;
|
|
14847
|
-
var labelText2 =
|
|
15040
|
+
var labelText2 = import_react85.css`
|
|
14848
15041
|
align-items: center;
|
|
14849
15042
|
display: flex;
|
|
14850
15043
|
gap: var(--spacing-xs);
|
|
14851
15044
|
font-weight: var(--fw-regular);
|
|
14852
15045
|
margin: 0 0 var(--spacing-xs);
|
|
14853
15046
|
`;
|
|
14854
|
-
var input2 =
|
|
15047
|
+
var input2 = import_react85.css`
|
|
14855
15048
|
display: block;
|
|
14856
15049
|
appearance: none;
|
|
14857
15050
|
box-sizing: border-box;
|
|
@@ -14895,18 +15088,18 @@ var input2 = import_react82.css`
|
|
|
14895
15088
|
color: var(--gray-400);
|
|
14896
15089
|
}
|
|
14897
15090
|
`;
|
|
14898
|
-
var selectInput =
|
|
15091
|
+
var selectInput = import_react85.css`
|
|
14899
15092
|
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");
|
|
14900
15093
|
background-position: right var(--spacing-sm) center;
|
|
14901
15094
|
background-repeat: no-repeat;
|
|
14902
15095
|
background-size: 1rem;
|
|
14903
15096
|
padding-right: var(--spacing-xl);
|
|
14904
15097
|
`;
|
|
14905
|
-
var inputWrapper =
|
|
15098
|
+
var inputWrapper = import_react85.css`
|
|
14906
15099
|
display: flex; // used to correct overflow with chrome textarea
|
|
14907
15100
|
position: relative;
|
|
14908
15101
|
`;
|
|
14909
|
-
var inputIcon2 =
|
|
15102
|
+
var inputIcon2 = import_react85.css`
|
|
14910
15103
|
align-items: center;
|
|
14911
15104
|
background: var(--white);
|
|
14912
15105
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -14922,7 +15115,7 @@ var inputIcon2 = import_react82.css`
|
|
|
14922
15115
|
width: var(--spacing-lg);
|
|
14923
15116
|
z-index: var(--z-10);
|
|
14924
15117
|
`;
|
|
14925
|
-
var inputToggleLabel2 =
|
|
15118
|
+
var inputToggleLabel2 = import_react85.css`
|
|
14926
15119
|
align-items: center;
|
|
14927
15120
|
background: var(--white);
|
|
14928
15121
|
cursor: pointer;
|
|
@@ -14933,7 +15126,7 @@ var inputToggleLabel2 = import_react82.css`
|
|
|
14933
15126
|
min-height: var(--spacing-md);
|
|
14934
15127
|
position: relative;
|
|
14935
15128
|
`;
|
|
14936
|
-
var toggleInput2 =
|
|
15129
|
+
var toggleInput2 = import_react85.css`
|
|
14937
15130
|
appearance: none;
|
|
14938
15131
|
border: 1px solid var(--gray-300);
|
|
14939
15132
|
background: var(--white);
|
|
@@ -14972,7 +15165,7 @@ var toggleInput2 = import_react82.css`
|
|
|
14972
15165
|
border-color: var(--gray-300);
|
|
14973
15166
|
}
|
|
14974
15167
|
`;
|
|
14975
|
-
var inlineLabel2 =
|
|
15168
|
+
var inlineLabel2 = import_react85.css`
|
|
14976
15169
|
padding-left: var(--spacing-lg);
|
|
14977
15170
|
font-size: var(--fs-sm);
|
|
14978
15171
|
font-weight: var(--fw-regular);
|
|
@@ -14988,7 +15181,7 @@ var inlineLabel2 = import_react82.css`
|
|
|
14988
15181
|
}
|
|
14989
15182
|
}
|
|
14990
15183
|
`;
|
|
14991
|
-
var inputMenu =
|
|
15184
|
+
var inputMenu = import_react85.css`
|
|
14992
15185
|
background: none;
|
|
14993
15186
|
border: none;
|
|
14994
15187
|
padding: var(--spacing-2xs);
|
|
@@ -15004,14 +15197,14 @@ var inputMenu = import_react82.css`
|
|
|
15004
15197
|
background-color: var(--gray-200);
|
|
15005
15198
|
}
|
|
15006
15199
|
`;
|
|
15007
|
-
var textarea2 =
|
|
15200
|
+
var textarea2 = import_react85.css`
|
|
15008
15201
|
resize: vertical;
|
|
15009
15202
|
min-height: 2rem;
|
|
15010
15203
|
`;
|
|
15011
|
-
var imageWrapper =
|
|
15204
|
+
var imageWrapper = import_react85.css`
|
|
15012
15205
|
background: var(--white);
|
|
15013
15206
|
`;
|
|
15014
|
-
var img =
|
|
15207
|
+
var img = import_react85.css`
|
|
15015
15208
|
animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
15016
15209
|
object-fit: contain;
|
|
15017
15210
|
max-width: 100%;
|
|
@@ -15019,7 +15212,7 @@ var img = import_react82.css`
|
|
|
15019
15212
|
opacity: var(--opacity-0);
|
|
15020
15213
|
margin: var(--spacing-sm) auto 0;
|
|
15021
15214
|
`;
|
|
15022
|
-
var dataConnectButton =
|
|
15215
|
+
var dataConnectButton = import_react85.css`
|
|
15023
15216
|
align-items: center;
|
|
15024
15217
|
appearance: none;
|
|
15025
15218
|
box-sizing: border-box;
|
|
@@ -15054,7 +15247,7 @@ var dataConnectButton = import_react82.css`
|
|
|
15054
15247
|
pointer-events: none;
|
|
15055
15248
|
}
|
|
15056
15249
|
`;
|
|
15057
|
-
var linkParameterBtn =
|
|
15250
|
+
var linkParameterBtn = import_react85.css`
|
|
15058
15251
|
border-radius: var(--rounded-base);
|
|
15059
15252
|
background: var(--white);
|
|
15060
15253
|
border: none;
|
|
@@ -15063,7 +15256,7 @@ var linkParameterBtn = import_react82.css`
|
|
|
15063
15256
|
font-size: var(--fs-sm);
|
|
15064
15257
|
line-height: 1;
|
|
15065
15258
|
`;
|
|
15066
|
-
var linkParameterControls =
|
|
15259
|
+
var linkParameterControls = import_react85.css`
|
|
15067
15260
|
position: absolute;
|
|
15068
15261
|
inset: 0 0 0 auto;
|
|
15069
15262
|
padding: 0 var(--spacing-base);
|
|
@@ -15072,13 +15265,13 @@ var linkParameterControls = import_react82.css`
|
|
|
15072
15265
|
justify-content: center;
|
|
15073
15266
|
gap: var(--spacing-base);
|
|
15074
15267
|
`;
|
|
15075
|
-
var linkParameterInput = (withExternalLinkIcon) =>
|
|
15268
|
+
var linkParameterInput = (withExternalLinkIcon) => import_react85.css`
|
|
15076
15269
|
padding-right: calc(
|
|
15077
15270
|
${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
|
|
15078
15271
|
var(--spacing-base)
|
|
15079
15272
|
);
|
|
15080
15273
|
`;
|
|
15081
|
-
var linkParameterIcon =
|
|
15274
|
+
var linkParameterIcon = import_react85.css`
|
|
15082
15275
|
align-items: center;
|
|
15083
15276
|
color: var(--brand-secondary-3);
|
|
15084
15277
|
display: flex;
|
|
@@ -15093,7 +15286,7 @@ var linkParameterIcon = import_react82.css`
|
|
|
15093
15286
|
`;
|
|
15094
15287
|
|
|
15095
15288
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
15096
|
-
var
|
|
15289
|
+
var import_jsx_runtime79 = require("@emotion/react/jsx-runtime");
|
|
15097
15290
|
function ParameterDataResource({
|
|
15098
15291
|
label,
|
|
15099
15292
|
labelLeadingIcon,
|
|
@@ -15103,12 +15296,12 @@ function ParameterDataResource({
|
|
|
15103
15296
|
disabled,
|
|
15104
15297
|
children
|
|
15105
15298
|
}) {
|
|
15106
|
-
return /* @__PURE__ */ (0,
|
|
15107
|
-
/* @__PURE__ */ (0,
|
|
15299
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
15300
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("span", { css: labelText2, children: [
|
|
15108
15301
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
15109
15302
|
label
|
|
15110
15303
|
] }),
|
|
15111
|
-
/* @__PURE__ */ (0,
|
|
15304
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
15112
15305
|
"button",
|
|
15113
15306
|
{
|
|
15114
15307
|
type: "button",
|
|
@@ -15117,30 +15310,30 @@ function ParameterDataResource({
|
|
|
15117
15310
|
disabled,
|
|
15118
15311
|
onClick: onConnectDatasource,
|
|
15119
15312
|
children: [
|
|
15120
|
-
/* @__PURE__ */ (0,
|
|
15313
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
15121
15314
|
children
|
|
15122
15315
|
]
|
|
15123
15316
|
}
|
|
15124
15317
|
),
|
|
15125
|
-
caption ? /* @__PURE__ */ (0,
|
|
15318
|
+
caption ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Caption, { children: caption }) : null
|
|
15126
15319
|
] });
|
|
15127
15320
|
}
|
|
15128
15321
|
|
|
15129
15322
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
15130
|
-
var
|
|
15131
|
-
var ParameterDrawerHeaderContainer =
|
|
15323
|
+
var import_react86 = require("@emotion/react");
|
|
15324
|
+
var ParameterDrawerHeaderContainer = import_react86.css`
|
|
15132
15325
|
align-items: center;
|
|
15133
15326
|
display: flex;
|
|
15134
15327
|
gap: var(--spacing-base);
|
|
15135
15328
|
justify-content: space-between;
|
|
15136
15329
|
margin-bottom: var(--spacing-sm);
|
|
15137
15330
|
`;
|
|
15138
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
15331
|
+
var ParameterDrawerHeaderTitleGroup = import_react86.css`
|
|
15139
15332
|
align-items: center;
|
|
15140
15333
|
display: flex;
|
|
15141
15334
|
gap: var(--spacing-sm);
|
|
15142
15335
|
`;
|
|
15143
|
-
var ParameterDrawerHeaderTitle =
|
|
15336
|
+
var ParameterDrawerHeaderTitle = import_react86.css`
|
|
15144
15337
|
text-overflow: ellipsis;
|
|
15145
15338
|
white-space: nowrap;
|
|
15146
15339
|
overflow: hidden;
|
|
@@ -15148,23 +15341,23 @@ var ParameterDrawerHeaderTitle = import_react83.css`
|
|
|
15148
15341
|
`;
|
|
15149
15342
|
|
|
15150
15343
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
15151
|
-
var
|
|
15344
|
+
var import_jsx_runtime80 = require("@emotion/react/jsx-runtime");
|
|
15152
15345
|
var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
15153
|
-
return /* @__PURE__ */ (0,
|
|
15154
|
-
/* @__PURE__ */ (0,
|
|
15346
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
15347
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
15155
15348
|
iconBeforeTitle,
|
|
15156
|
-
/* @__PURE__ */ (0,
|
|
15349
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
|
|
15157
15350
|
] }),
|
|
15158
15351
|
children
|
|
15159
15352
|
] });
|
|
15160
15353
|
};
|
|
15161
15354
|
|
|
15162
15355
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
15163
|
-
var
|
|
15356
|
+
var import_react88 = require("react");
|
|
15164
15357
|
|
|
15165
15358
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
15166
|
-
var
|
|
15167
|
-
var fieldsetStyles =
|
|
15359
|
+
var import_react87 = require("@emotion/react");
|
|
15360
|
+
var fieldsetStyles = import_react87.css`
|
|
15168
15361
|
&:disabled,
|
|
15169
15362
|
[readonly] {
|
|
15170
15363
|
pointer-events: none;
|
|
@@ -15175,7 +15368,7 @@ var fieldsetStyles = import_react84.css`
|
|
|
15175
15368
|
}
|
|
15176
15369
|
}
|
|
15177
15370
|
`;
|
|
15178
|
-
var fieldsetLegend2 =
|
|
15371
|
+
var fieldsetLegend2 = import_react87.css`
|
|
15179
15372
|
display: block;
|
|
15180
15373
|
font-weight: var(--fw-medium);
|
|
15181
15374
|
margin-bottom: var(--spacing-sm);
|
|
@@ -15183,38 +15376,38 @@ var fieldsetLegend2 = import_react84.css`
|
|
|
15183
15376
|
`;
|
|
15184
15377
|
|
|
15185
15378
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
15186
|
-
var
|
|
15187
|
-
var ParameterGroup = (0,
|
|
15379
|
+
var import_jsx_runtime81 = require("@emotion/react/jsx-runtime");
|
|
15380
|
+
var ParameterGroup = (0, import_react88.forwardRef)(
|
|
15188
15381
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
15189
|
-
return /* @__PURE__ */ (0,
|
|
15190
|
-
/* @__PURE__ */ (0,
|
|
15382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
15383
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("legend", { css: fieldsetLegend2, children: legend }),
|
|
15191
15384
|
children
|
|
15192
15385
|
] });
|
|
15193
15386
|
}
|
|
15194
15387
|
);
|
|
15195
15388
|
|
|
15196
15389
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
15197
|
-
var
|
|
15390
|
+
var import_react92 = require("react");
|
|
15198
15391
|
|
|
15199
15392
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
15200
|
-
var
|
|
15393
|
+
var import_react91 = require("react");
|
|
15201
15394
|
|
|
15202
15395
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
15203
|
-
var
|
|
15396
|
+
var import_jsx_runtime82 = require("@emotion/react/jsx-runtime");
|
|
15204
15397
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
15205
|
-
return !asSpan ? /* @__PURE__ */ (0,
|
|
15398
|
+
return !asSpan ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { "aria-labelledby": id, css: labelText2, children });
|
|
15206
15399
|
};
|
|
15207
15400
|
|
|
15208
15401
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
15209
|
-
var
|
|
15210
|
-
var
|
|
15211
|
-
var ParameterMenuButton = (0,
|
|
15402
|
+
var import_react89 = require("react");
|
|
15403
|
+
var import_jsx_runtime83 = require("@emotion/react/jsx-runtime");
|
|
15404
|
+
var ParameterMenuButton = (0, import_react89.forwardRef)(
|
|
15212
15405
|
({ label, children }, ref) => {
|
|
15213
|
-
return /* @__PURE__ */ (0,
|
|
15406
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
15214
15407
|
Menu,
|
|
15215
15408
|
{
|
|
15216
15409
|
menuLabel: `${label} menu`,
|
|
15217
|
-
menuTrigger: /* @__PURE__ */ (0,
|
|
15410
|
+
menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
15218
15411
|
"button",
|
|
15219
15412
|
{
|
|
15220
15413
|
className: "parameter-menu",
|
|
@@ -15222,7 +15415,7 @@ var ParameterMenuButton = (0, import_react86.forwardRef)(
|
|
|
15222
15415
|
type: "button",
|
|
15223
15416
|
"aria-label": `${label} options`,
|
|
15224
15417
|
ref,
|
|
15225
|
-
children: /* @__PURE__ */ (0,
|
|
15418
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
15226
15419
|
}
|
|
15227
15420
|
),
|
|
15228
15421
|
children
|
|
@@ -15232,15 +15425,15 @@ var ParameterMenuButton = (0, import_react86.forwardRef)(
|
|
|
15232
15425
|
);
|
|
15233
15426
|
|
|
15234
15427
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
15235
|
-
var
|
|
15236
|
-
var emptyParameterShell =
|
|
15428
|
+
var import_react90 = require("@emotion/react");
|
|
15429
|
+
var emptyParameterShell = import_react90.css`
|
|
15237
15430
|
border-radius: var(--rounded-sm);
|
|
15238
15431
|
background: var(--white);
|
|
15239
15432
|
flex-grow: 1;
|
|
15240
15433
|
padding: var(--spacing-xs);
|
|
15241
15434
|
position: relative;
|
|
15242
15435
|
`;
|
|
15243
|
-
var emptyParameterShellText =
|
|
15436
|
+
var emptyParameterShellText = import_react90.css`
|
|
15244
15437
|
background: var(--brand-secondary-6);
|
|
15245
15438
|
border-radius: var(--rounded-sm);
|
|
15246
15439
|
padding: var(--spacing-sm);
|
|
@@ -15248,7 +15441,7 @@ var emptyParameterShellText = import_react87.css`
|
|
|
15248
15441
|
font-size: var(--fs-sm);
|
|
15249
15442
|
margin: 0;
|
|
15250
15443
|
`;
|
|
15251
|
-
var overrideMarker =
|
|
15444
|
+
var overrideMarker = import_react90.css`
|
|
15252
15445
|
border-radius: var(--rounded-sm);
|
|
15253
15446
|
border: 10px solid var(--gray-300);
|
|
15254
15447
|
border-left-color: transparent;
|
|
@@ -15259,7 +15452,7 @@ var overrideMarker = import_react87.css`
|
|
|
15259
15452
|
`;
|
|
15260
15453
|
|
|
15261
15454
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
15262
|
-
var
|
|
15455
|
+
var import_jsx_runtime84 = require("@emotion/react/jsx-runtime");
|
|
15263
15456
|
var extractParameterProps = (props) => {
|
|
15264
15457
|
const {
|
|
15265
15458
|
id,
|
|
@@ -15273,7 +15466,6 @@ var extractParameterProps = (props) => {
|
|
|
15273
15466
|
hiddenLabel,
|
|
15274
15467
|
labelLeadingIcon,
|
|
15275
15468
|
menuItems,
|
|
15276
|
-
handleManuallySetErrorMessage,
|
|
15277
15469
|
title,
|
|
15278
15470
|
hasOverriddenValue,
|
|
15279
15471
|
onResetOverriddenValue,
|
|
@@ -15292,7 +15484,6 @@ var extractParameterProps = (props) => {
|
|
|
15292
15484
|
hiddenLabel,
|
|
15293
15485
|
labelLeadingIcon,
|
|
15294
15486
|
menuItems,
|
|
15295
|
-
handleManuallySetErrorMessage,
|
|
15296
15487
|
title,
|
|
15297
15488
|
hasOverriddenValue,
|
|
15298
15489
|
onResetOverriddenValue
|
|
@@ -15318,21 +15509,21 @@ var ParameterShell = ({
|
|
|
15318
15509
|
children,
|
|
15319
15510
|
...props
|
|
15320
15511
|
}) => {
|
|
15321
|
-
const [manualErrorMessage, setManualErrorMessage] = (0,
|
|
15512
|
+
const [manualErrorMessage, setManualErrorMessage] = (0, import_react91.useState)(void 0);
|
|
15322
15513
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
15323
15514
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
15324
|
-
return /* @__PURE__ */ (0,
|
|
15325
|
-
hiddenLabel || title ? null : /* @__PURE__ */ (0,
|
|
15515
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { css: inputContainer2, ...props, children: [
|
|
15516
|
+
hiddenLabel || title ? null : /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(ParameterLabel, { id, css: labelText2, children: [
|
|
15326
15517
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
15327
15518
|
label
|
|
15328
15519
|
] }),
|
|
15329
|
-
!title ? null : /* @__PURE__ */ (0,
|
|
15520
|
+
!title ? null : /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(ParameterLabel, { id, asSpan: true, children: [
|
|
15330
15521
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
15331
15522
|
title
|
|
15332
15523
|
] }),
|
|
15333
|
-
/* @__PURE__ */ (0,
|
|
15334
|
-
menuItems ? /* @__PURE__ */ (0,
|
|
15335
|
-
/* @__PURE__ */ (0,
|
|
15524
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { css: inputWrapper, children: [
|
|
15525
|
+
menuItems ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
15526
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
15336
15527
|
ParameterShellContext.Provider,
|
|
15337
15528
|
{
|
|
15338
15529
|
value: {
|
|
@@ -15342,32 +15533,32 @@ var ParameterShell = ({
|
|
|
15342
15533
|
errorMessage: errorMessaging,
|
|
15343
15534
|
handleManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
15344
15535
|
},
|
|
15345
|
-
children: /* @__PURE__ */ (0,
|
|
15536
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(ParameterShellPlaceholder, { children: [
|
|
15346
15537
|
children,
|
|
15347
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0,
|
|
15538
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
15348
15539
|
] })
|
|
15349
15540
|
}
|
|
15350
15541
|
)
|
|
15351
15542
|
] }),
|
|
15352
|
-
caption ? /* @__PURE__ */ (0,
|
|
15353
|
-
errorMessaging ? /* @__PURE__ */ (0,
|
|
15354
|
-
warningMessage ? /* @__PURE__ */ (0,
|
|
15355
|
-
infoMessage ? /* @__PURE__ */ (0,
|
|
15543
|
+
caption ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Caption, { testId: captionTestId, children: caption }) : null,
|
|
15544
|
+
errorMessaging ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null,
|
|
15545
|
+
warningMessage ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(WarningMessage, { message: warningMessage }) : null,
|
|
15546
|
+
infoMessage ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(InfoMessage, { message: infoMessage }) : null
|
|
15356
15547
|
] });
|
|
15357
15548
|
};
|
|
15358
15549
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
15359
|
-
return /* @__PURE__ */ (0,
|
|
15550
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { css: emptyParameterShell, children });
|
|
15360
15551
|
};
|
|
15361
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0,
|
|
15552
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
15362
15553
|
|
|
15363
15554
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
15364
|
-
var
|
|
15365
|
-
var ParameterImage = (0,
|
|
15555
|
+
var import_jsx_runtime85 = require("@emotion/react/jsx-runtime");
|
|
15556
|
+
var ParameterImage = (0, import_react92.forwardRef)((props, ref) => {
|
|
15366
15557
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
15367
|
-
return /* @__PURE__ */ (0,
|
|
15558
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ParameterImageInner, { ref, ...innerProps }) });
|
|
15368
15559
|
});
|
|
15369
15560
|
var BrokenImage = ({ ...props }) => {
|
|
15370
|
-
return /* @__PURE__ */ (0,
|
|
15561
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
15371
15562
|
"svg",
|
|
15372
15563
|
{
|
|
15373
15564
|
role: "img",
|
|
@@ -15379,11 +15570,11 @@ var BrokenImage = ({ ...props }) => {
|
|
|
15379
15570
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
15380
15571
|
...props,
|
|
15381
15572
|
children: [
|
|
15382
|
-
/* @__PURE__ */ (0,
|
|
15383
|
-
/* @__PURE__ */ (0,
|
|
15384
|
-
/* @__PURE__ */ (0,
|
|
15385
|
-
/* @__PURE__ */ (0,
|
|
15386
|
-
/* @__PURE__ */ (0,
|
|
15573
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("rect", { width: "214", height: "214", fill: "#F9FAFB" }),
|
|
15574
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("rect", { width: "214", height: "214", fill: "url(#pattern0)" }),
|
|
15575
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("defs", { children: [
|
|
15576
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("pattern", { id: "pattern0", patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("use", { xlinkHref: "#image0_761_4353", transform: "scale(0.0025)" }) }),
|
|
15577
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
15387
15578
|
"image",
|
|
15388
15579
|
{
|
|
15389
15580
|
id: "image0_761_4353",
|
|
@@ -15397,14 +15588,14 @@ var BrokenImage = ({ ...props }) => {
|
|
|
15397
15588
|
}
|
|
15398
15589
|
);
|
|
15399
15590
|
};
|
|
15400
|
-
var ParameterImageInner = (0,
|
|
15591
|
+
var ParameterImageInner = (0, import_react92.forwardRef)(
|
|
15401
15592
|
({ ...props }, ref) => {
|
|
15402
15593
|
const { value } = props;
|
|
15403
15594
|
const { id, label, hiddenLabel, errorMessage, handleManuallySetErrorMessage } = useParameterShell();
|
|
15404
|
-
const [loading, setLoading] = (0,
|
|
15405
|
-
const deferredValue = (0,
|
|
15595
|
+
const [loading, setLoading] = (0, import_react92.useState)(false);
|
|
15596
|
+
const deferredValue = (0, import_react92.useDeferredValue)(value);
|
|
15406
15597
|
const errorText = "The text you provided is not a valid URL";
|
|
15407
|
-
const updateImageSrc = (0,
|
|
15598
|
+
const updateImageSrc = (0, import_react92.useCallback)(() => {
|
|
15408
15599
|
const validUrl = new RegExp(
|
|
15409
15600
|
"^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$",
|
|
15410
15601
|
"i"
|
|
@@ -15439,11 +15630,11 @@ var ParameterImageInner = (0, import_react89.forwardRef)(
|
|
|
15439
15630
|
handleManuallySetErrorMessage(errorText);
|
|
15440
15631
|
}
|
|
15441
15632
|
};
|
|
15442
|
-
(0,
|
|
15633
|
+
(0, import_react92.useEffect)(() => {
|
|
15443
15634
|
updateImageSrc();
|
|
15444
15635
|
}, [deferredValue]);
|
|
15445
|
-
return /* @__PURE__ */ (0,
|
|
15446
|
-
/* @__PURE__ */ (0,
|
|
15636
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_jsx_runtime85.Fragment, { children: [
|
|
15637
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
15447
15638
|
"input",
|
|
15448
15639
|
{
|
|
15449
15640
|
css: input2,
|
|
@@ -15455,8 +15646,8 @@ var ParameterImageInner = (0, import_react89.forwardRef)(
|
|
|
15455
15646
|
...props
|
|
15456
15647
|
}
|
|
15457
15648
|
),
|
|
15458
|
-
/* @__PURE__ */ (0,
|
|
15459
|
-
deferredValue && !errorMessage ? /* @__PURE__ */ (0,
|
|
15649
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { css: imageWrapper, children: [
|
|
15650
|
+
deferredValue && !errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
15460
15651
|
"img",
|
|
15461
15652
|
{
|
|
15462
15653
|
src: deferredValue,
|
|
@@ -15467,24 +15658,24 @@ var ParameterImageInner = (0, import_react89.forwardRef)(
|
|
|
15467
15658
|
loading: "lazy"
|
|
15468
15659
|
}
|
|
15469
15660
|
) : null,
|
|
15470
|
-
deferredValue && errorMessage ? /* @__PURE__ */ (0,
|
|
15661
|
+
deferredValue && errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(BrokenImage, { css: img }) : null
|
|
15471
15662
|
] }),
|
|
15472
|
-
loading ? /* @__PURE__ */ (0,
|
|
15663
|
+
loading ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(LoadingIcon, {}) : null
|
|
15473
15664
|
] });
|
|
15474
15665
|
}
|
|
15475
15666
|
);
|
|
15476
15667
|
|
|
15477
15668
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
15478
|
-
var
|
|
15479
|
-
var
|
|
15480
|
-
var ParameterInput = (0,
|
|
15669
|
+
var import_react93 = require("react");
|
|
15670
|
+
var import_jsx_runtime86 = require("@emotion/react/jsx-runtime");
|
|
15671
|
+
var ParameterInput = (0, import_react93.forwardRef)((props, ref) => {
|
|
15481
15672
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
15482
|
-
return /* @__PURE__ */ (0,
|
|
15673
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ParameterShell, { "data-test-id": "parameter-input", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ParameterInputInner, { ref, ...innerProps }) });
|
|
15483
15674
|
});
|
|
15484
|
-
var ParameterInputInner = (0,
|
|
15675
|
+
var ParameterInputInner = (0, import_react93.forwardRef)(
|
|
15485
15676
|
({ ...props }, ref) => {
|
|
15486
15677
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
15487
|
-
return /* @__PURE__ */ (0,
|
|
15678
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
15488
15679
|
"input",
|
|
15489
15680
|
{
|
|
15490
15681
|
css: input2,
|
|
@@ -15500,19 +15691,19 @@ var ParameterInputInner = (0, import_react90.forwardRef)(
|
|
|
15500
15691
|
);
|
|
15501
15692
|
|
|
15502
15693
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
15503
|
-
var
|
|
15504
|
-
var
|
|
15505
|
-
var ParameterLink = (0,
|
|
15694
|
+
var import_react94 = require("react");
|
|
15695
|
+
var import_jsx_runtime87 = require("@emotion/react/jsx-runtime");
|
|
15696
|
+
var ParameterLink = (0, import_react94.forwardRef)(
|
|
15506
15697
|
({ buttonText = "Select link", disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
15507
15698
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
15508
|
-
return /* @__PURE__ */ (0,
|
|
15699
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
15509
15700
|
ParameterShell,
|
|
15510
15701
|
{
|
|
15511
15702
|
"data-test-id": "link-parameter-editor",
|
|
15512
15703
|
...shellProps,
|
|
15513
15704
|
label: innerProps.value ? shellProps.label : "",
|
|
15514
15705
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
15515
|
-
children: !innerProps.value ? /* @__PURE__ */ (0,
|
|
15706
|
+
children: !innerProps.value ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("button", { type: "button", css: dataConnectButton, disabled, onClick: onConnectLink, children: buttonText }) : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
15516
15707
|
ParameterLinkInner,
|
|
15517
15708
|
{
|
|
15518
15709
|
onConnectLink,
|
|
@@ -15525,11 +15716,11 @@ var ParameterLink = (0, import_react91.forwardRef)(
|
|
|
15525
15716
|
);
|
|
15526
15717
|
}
|
|
15527
15718
|
);
|
|
15528
|
-
var ParameterLinkInner = (0,
|
|
15719
|
+
var ParameterLinkInner = (0, import_react94.forwardRef)(
|
|
15529
15720
|
({ externalLink, onConnectLink, disabled, ...props }, ref) => {
|
|
15530
15721
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
15531
|
-
return /* @__PURE__ */ (0,
|
|
15532
|
-
/* @__PURE__ */ (0,
|
|
15722
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { css: inputWrapper, children: [
|
|
15723
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
15533
15724
|
"input",
|
|
15534
15725
|
{
|
|
15535
15726
|
type: "text",
|
|
@@ -15541,8 +15732,8 @@ var ParameterLinkInner = (0, import_react91.forwardRef)(
|
|
|
15541
15732
|
...props
|
|
15542
15733
|
}
|
|
15543
15734
|
),
|
|
15544
|
-
/* @__PURE__ */ (0,
|
|
15545
|
-
/* @__PURE__ */ (0,
|
|
15735
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { css: linkParameterControls, children: [
|
|
15736
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
15546
15737
|
"button",
|
|
15547
15738
|
{
|
|
15548
15739
|
type: "button",
|
|
@@ -15553,7 +15744,7 @@ var ParameterLinkInner = (0, import_react91.forwardRef)(
|
|
|
15553
15744
|
children: "edit"
|
|
15554
15745
|
}
|
|
15555
15746
|
),
|
|
15556
|
-
externalLink ? /* @__PURE__ */ (0,
|
|
15747
|
+
externalLink ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
15557
15748
|
"a",
|
|
15558
15749
|
{
|
|
15559
15750
|
href: externalLink,
|
|
@@ -15561,7 +15752,7 @@ var ParameterLinkInner = (0, import_react91.forwardRef)(
|
|
|
15561
15752
|
title: "Open link in new tab",
|
|
15562
15753
|
target: "_blank",
|
|
15563
15754
|
rel: "noopener noreferrer",
|
|
15564
|
-
children: /* @__PURE__ */ (0,
|
|
15755
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
15565
15756
|
}
|
|
15566
15757
|
) : null
|
|
15567
15758
|
] })
|
|
@@ -15570,7 +15761,7 @@ var ParameterLinkInner = (0, import_react91.forwardRef)(
|
|
|
15570
15761
|
);
|
|
15571
15762
|
|
|
15572
15763
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
15573
|
-
var
|
|
15764
|
+
var import_jsx_runtime88 = require("@emotion/react/jsx-runtime");
|
|
15574
15765
|
var ParameterNameAndPublicIdInput = ({
|
|
15575
15766
|
id,
|
|
15576
15767
|
onBlur,
|
|
@@ -15596,8 +15787,8 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
15596
15787
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
15597
15788
|
};
|
|
15598
15789
|
autoFocus == null ? void 0 : autoFocus();
|
|
15599
|
-
return /* @__PURE__ */ (0,
|
|
15600
|
-
/* @__PURE__ */ (0,
|
|
15790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
|
|
15791
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
15601
15792
|
ParameterInput,
|
|
15602
15793
|
{
|
|
15603
15794
|
id: nameIdField,
|
|
@@ -15616,7 +15807,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
15616
15807
|
value: values[nameIdField]
|
|
15617
15808
|
}
|
|
15618
15809
|
),
|
|
15619
|
-
/* @__PURE__ */ (0,
|
|
15810
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
15620
15811
|
ParameterInput,
|
|
15621
15812
|
{
|
|
15622
15813
|
id: publicIdFieldName,
|
|
@@ -15630,11 +15821,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
15630
15821
|
caption: publicIdCaption,
|
|
15631
15822
|
placeholder: publicIdPlaceholderText,
|
|
15632
15823
|
errorMessage: publicIdError,
|
|
15633
|
-
menuItems: /* @__PURE__ */ (0,
|
|
15824
|
+
menuItems: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
15634
15825
|
MenuItem,
|
|
15635
15826
|
{
|
|
15636
15827
|
disabled: !values[publicIdFieldName],
|
|
15637
|
-
icon: /* @__PURE__ */ (0,
|
|
15828
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
15638
15829
|
onClick: handleCopyPidFieldValue,
|
|
15639
15830
|
children: "Copy"
|
|
15640
15831
|
}
|
|
@@ -15642,12 +15833,13 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
15642
15833
|
value: values[publicIdFieldName]
|
|
15643
15834
|
}
|
|
15644
15835
|
),
|
|
15645
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0,
|
|
15836
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
15646
15837
|
] });
|
|
15647
15838
|
};
|
|
15648
15839
|
|
|
15649
15840
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
15650
|
-
var
|
|
15841
|
+
var import_react101 = require("@emotion/react");
|
|
15842
|
+
var import_code2 = require("@lexical/code");
|
|
15651
15843
|
var import_list3 = require("@lexical/list");
|
|
15652
15844
|
var import_LexicalComposer = require("@lexical/react/LexicalComposer");
|
|
15653
15845
|
var import_LexicalComposerContext4 = require("@lexical/react/LexicalComposerContext");
|
|
@@ -15659,7 +15851,7 @@ var import_LexicalRichTextPlugin = require("@lexical/react/LexicalRichTextPlugin
|
|
|
15659
15851
|
var import_rich_text2 = require("@lexical/rich-text");
|
|
15660
15852
|
var import_fast_equals2 = require("fast-equals");
|
|
15661
15853
|
var import_lexical5 = require("lexical");
|
|
15662
|
-
var
|
|
15854
|
+
var import_react102 = require("react");
|
|
15663
15855
|
|
|
15664
15856
|
// src/components/ParameterInputs/rich-text/builtInElements.ts
|
|
15665
15857
|
var richTextBuiltInElements = [
|
|
@@ -15698,6 +15890,14 @@ var richTextBuiltInElements = [
|
|
|
15698
15890
|
{
|
|
15699
15891
|
label: "Link",
|
|
15700
15892
|
type: "link"
|
|
15893
|
+
},
|
|
15894
|
+
{
|
|
15895
|
+
label: "Blockquote",
|
|
15896
|
+
type: "quote"
|
|
15897
|
+
},
|
|
15898
|
+
{
|
|
15899
|
+
label: "Code Block",
|
|
15900
|
+
type: "code"
|
|
15701
15901
|
}
|
|
15702
15902
|
];
|
|
15703
15903
|
|
|
@@ -15755,7 +15955,7 @@ var textCode = import_css.css`
|
|
|
15755
15955
|
border-radius: var(--rounded-sm);
|
|
15756
15956
|
display: inline-block;
|
|
15757
15957
|
font-family: var(--ff-mono);
|
|
15758
|
-
font-size:
|
|
15958
|
+
font-size: var(--fs-sm);
|
|
15759
15959
|
padding-left: var(--spacing-xs);
|
|
15760
15960
|
padding-right: var(--spacing-xs);
|
|
15761
15961
|
`;
|
|
@@ -15884,24 +16084,47 @@ var listItemElement = import_css.css`
|
|
|
15884
16084
|
var nestedListItemElement = import_css.css`
|
|
15885
16085
|
list-style-type: none;
|
|
15886
16086
|
`;
|
|
16087
|
+
var blockquoteElement = import_css.css`
|
|
16088
|
+
border-left: 0.25rem solid var(--gray-300);
|
|
16089
|
+
color: var(--gray-600);
|
|
16090
|
+
margin-bottom: var(--spacing-base);
|
|
16091
|
+
padding-left: var(--spacing-base);
|
|
16092
|
+
|
|
16093
|
+
&:last-child {
|
|
16094
|
+
margin-bottom: 0;
|
|
16095
|
+
}
|
|
16096
|
+
`;
|
|
16097
|
+
var codeElement = import_css.css`
|
|
16098
|
+
background-color: var(--gray-100);
|
|
16099
|
+
border-radius: var(--rounded-sm);
|
|
16100
|
+
display: block;
|
|
16101
|
+
font-family: var(--ff-mono);
|
|
16102
|
+
font-size: var(--fs-sm);
|
|
16103
|
+
margin-bottom: var(--spacing-base);
|
|
16104
|
+
padding: var(--spacing-sm);
|
|
16105
|
+
|
|
16106
|
+
&:last-child {
|
|
16107
|
+
margin-bottom: 0;
|
|
16108
|
+
}
|
|
16109
|
+
`;
|
|
15887
16110
|
|
|
15888
16111
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
15889
|
-
var
|
|
16112
|
+
var import_react96 = require("@emotion/react");
|
|
15890
16113
|
var import_LexicalComposerContext = require("@lexical/react/LexicalComposerContext");
|
|
15891
16114
|
var import_LexicalNodeEventPlugin = require("@lexical/react/LexicalNodeEventPlugin");
|
|
15892
16115
|
var import_utils2 = require("@lexical/utils");
|
|
15893
16116
|
var import_fast_equals = require("fast-equals");
|
|
15894
16117
|
var import_lexical2 = require("lexical");
|
|
15895
|
-
var
|
|
16118
|
+
var import_react97 = require("react");
|
|
15896
16119
|
|
|
15897
16120
|
// src/components/Popover/Popover.styles.ts
|
|
15898
|
-
var
|
|
15899
|
-
var PopoverBtn =
|
|
16121
|
+
var import_react95 = require("@emotion/react");
|
|
16122
|
+
var PopoverBtn = import_react95.css`
|
|
15900
16123
|
border: none;
|
|
15901
16124
|
background: none;
|
|
15902
16125
|
padding: 0;
|
|
15903
16126
|
`;
|
|
15904
|
-
var Popover =
|
|
16127
|
+
var Popover = import_react95.css`
|
|
15905
16128
|
border-left: var(--spacing-xs) solid var(--brand-secondary-3);
|
|
15906
16129
|
border-radius: var(--rounded-base);
|
|
15907
16130
|
box-shadow: var(--shadow-base);
|
|
@@ -15965,7 +16188,7 @@ var richTextIsValueConsideredEmpty = (value) => {
|
|
|
15965
16188
|
};
|
|
15966
16189
|
|
|
15967
16190
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
15968
|
-
var
|
|
16191
|
+
var import_jsx_runtime89 = require("@emotion/react/jsx-runtime");
|
|
15969
16192
|
var isProjectMapLinkValue = (value) => {
|
|
15970
16193
|
return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
|
|
15971
16194
|
value.nodeId && value.path && value.projectMapId
|
|
@@ -16231,32 +16454,32 @@ var OPEN_LINK_NODE_MODAL_COMMAND = (0, import_lexical2.createCommand)(
|
|
|
16231
16454
|
);
|
|
16232
16455
|
var LINK_POPOVER_OFFSET_X = 0;
|
|
16233
16456
|
var LINK_POPOVER_OFFSET_Y = 8;
|
|
16234
|
-
var linkPopover =
|
|
16457
|
+
var linkPopover = import_react96.css`
|
|
16235
16458
|
position: absolute;
|
|
16236
16459
|
z-index: 5;
|
|
16237
16460
|
`;
|
|
16238
|
-
var linkPopoverContainer =
|
|
16461
|
+
var linkPopoverContainer = import_react96.css`
|
|
16239
16462
|
${Popover};
|
|
16240
16463
|
align-items: center;
|
|
16241
16464
|
display: flex;
|
|
16242
16465
|
`;
|
|
16243
|
-
var linkPopoverAnchor =
|
|
16466
|
+
var linkPopoverAnchor = import_react96.css`
|
|
16244
16467
|
${link}
|
|
16245
16468
|
${linkColorDefault}
|
|
16246
16469
|
`;
|
|
16247
16470
|
function LinkNodePlugin({ onConnectLink }) {
|
|
16248
16471
|
const [editor] = (0, import_LexicalComposerContext.useLexicalComposerContext)();
|
|
16249
|
-
const [linkPopoverState, setLinkPopoverState] = (0,
|
|
16250
|
-
const linkPopoverElRef = (0,
|
|
16251
|
-
const [isEditorFocused, setIsEditorFocused] = (0,
|
|
16252
|
-
const [isLinkPopoverFocused, setIsLinkPopoverFocused] = (0,
|
|
16253
|
-
(0,
|
|
16472
|
+
const [linkPopoverState, setLinkPopoverState] = (0, import_react97.useState)();
|
|
16473
|
+
const linkPopoverElRef = (0, import_react97.useRef)(null);
|
|
16474
|
+
const [isEditorFocused, setIsEditorFocused] = (0, import_react97.useState)(false);
|
|
16475
|
+
const [isLinkPopoverFocused, setIsLinkPopoverFocused] = (0, import_react97.useState)(false);
|
|
16476
|
+
(0, import_react97.useEffect)(() => {
|
|
16254
16477
|
if (!isEditorFocused && !isLinkPopoverFocused) {
|
|
16255
16478
|
setLinkPopoverState(void 0);
|
|
16256
16479
|
return;
|
|
16257
16480
|
}
|
|
16258
16481
|
}, [isEditorFocused, isLinkPopoverFocused]);
|
|
16259
|
-
(0,
|
|
16482
|
+
(0, import_react97.useEffect)(() => {
|
|
16260
16483
|
if (!editor.hasNodes([LinkNode])) {
|
|
16261
16484
|
throw new Error("LinkNode not registered on editor");
|
|
16262
16485
|
}
|
|
@@ -16317,7 +16540,7 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
16317
16540
|
)
|
|
16318
16541
|
);
|
|
16319
16542
|
}, [editor, onConnectLink]);
|
|
16320
|
-
const maybeShowLinkToolbar = (0,
|
|
16543
|
+
const maybeShowLinkToolbar = (0, import_react97.useCallback)(() => {
|
|
16321
16544
|
if (!editor.isEditable()) {
|
|
16322
16545
|
return;
|
|
16323
16546
|
}
|
|
@@ -16349,7 +16572,7 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
16349
16572
|
}
|
|
16350
16573
|
});
|
|
16351
16574
|
}, [editor]);
|
|
16352
|
-
(0,
|
|
16575
|
+
(0, import_react97.useEffect)(() => {
|
|
16353
16576
|
return editor.registerUpdateListener(({ editorState }) => {
|
|
16354
16577
|
requestAnimationFrame(() => {
|
|
16355
16578
|
editorState.read(() => {
|
|
@@ -16376,8 +16599,8 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
16376
16599
|
});
|
|
16377
16600
|
});
|
|
16378
16601
|
};
|
|
16379
|
-
return /* @__PURE__ */ (0,
|
|
16380
|
-
/* @__PURE__ */ (0,
|
|
16602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_jsx_runtime89.Fragment, { children: [
|
|
16603
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
16381
16604
|
import_LexicalNodeEventPlugin.NodeEventPlugin,
|
|
16382
16605
|
{
|
|
16383
16606
|
nodeType: LinkNode,
|
|
@@ -16387,7 +16610,7 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
16387
16610
|
}
|
|
16388
16611
|
}
|
|
16389
16612
|
),
|
|
16390
|
-
linkPopoverState ? /* @__PURE__ */ (0,
|
|
16613
|
+
linkPopoverState ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
16391
16614
|
"div",
|
|
16392
16615
|
{
|
|
16393
16616
|
css: linkPopover,
|
|
@@ -16396,8 +16619,8 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
16396
16619
|
top: linkPopoverState.position.y
|
|
16397
16620
|
},
|
|
16398
16621
|
ref: linkPopoverElRef,
|
|
16399
|
-
children: /* @__PURE__ */ (0,
|
|
16400
|
-
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ (0,
|
|
16622
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { css: linkPopoverContainer, children: [
|
|
16623
|
+
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
16401
16624
|
"a",
|
|
16402
16625
|
{
|
|
16403
16626
|
href: `${linkPopoverState.node.__link.type === "email" ? "mailto:" : linkPopoverState.node.__link.type === "tel" ? "tel:" : ""}${linkPopoverState.node.__link.path}`,
|
|
@@ -16407,7 +16630,7 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
16407
16630
|
children: linkPopoverState.node.__link.path
|
|
16408
16631
|
}
|
|
16409
16632
|
),
|
|
16410
|
-
/* @__PURE__ */ (0,
|
|
16633
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
16411
16634
|
Button,
|
|
16412
16635
|
{
|
|
16413
16636
|
size: "xs",
|
|
@@ -16415,7 +16638,7 @@ function LinkNodePlugin({ onConnectLink }) {
|
|
|
16415
16638
|
onEditLinkNode(linkPopoverState.node);
|
|
16416
16639
|
},
|
|
16417
16640
|
buttonType: "ghost",
|
|
16418
|
-
children: /* @__PURE__ */ (0,
|
|
16641
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
|
|
16419
16642
|
}
|
|
16420
16643
|
)
|
|
16421
16644
|
] })
|
|
@@ -16434,8 +16657,8 @@ var import_list = require("@lexical/list");
|
|
|
16434
16657
|
var import_LexicalComposerContext2 = require("@lexical/react/LexicalComposerContext");
|
|
16435
16658
|
var import_LexicalTabIndentationPlugin = require("@lexical/react/LexicalTabIndentationPlugin");
|
|
16436
16659
|
var import_lexical3 = require("lexical");
|
|
16437
|
-
var
|
|
16438
|
-
var
|
|
16660
|
+
var import_react98 = require("react");
|
|
16661
|
+
var import_jsx_runtime90 = require("@emotion/react/jsx-runtime");
|
|
16439
16662
|
function isIndentPermitted(maxDepth) {
|
|
16440
16663
|
const selection = (0, import_lexical3.$getSelection)();
|
|
16441
16664
|
if (!(0, import_lexical3.$isRangeSelection)(selection)) {
|
|
@@ -16458,27 +16681,29 @@ function isIndentPermitted(maxDepth) {
|
|
|
16458
16681
|
}
|
|
16459
16682
|
function ListIndentPlugin({ maxDepth }) {
|
|
16460
16683
|
const [editor] = (0, import_LexicalComposerContext2.useLexicalComposerContext)();
|
|
16461
|
-
(0,
|
|
16684
|
+
(0, import_react98.useEffect)(() => {
|
|
16462
16685
|
return editor.registerCommand(
|
|
16463
16686
|
import_lexical3.INDENT_CONTENT_COMMAND,
|
|
16464
16687
|
() => !isIndentPermitted(maxDepth),
|
|
16465
16688
|
import_lexical3.COMMAND_PRIORITY_CRITICAL
|
|
16466
16689
|
);
|
|
16467
16690
|
}, [editor, maxDepth]);
|
|
16468
|
-
return /* @__PURE__ */ (0,
|
|
16691
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_LexicalTabIndentationPlugin.TabIndentationPlugin, {});
|
|
16469
16692
|
}
|
|
16470
16693
|
|
|
16471
16694
|
// src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
|
|
16472
|
-
var
|
|
16695
|
+
var import_react99 = require("@emotion/react");
|
|
16696
|
+
var import_code = require("@lexical/code");
|
|
16473
16697
|
var import_list2 = require("@lexical/list");
|
|
16474
16698
|
var import_LexicalComposerContext3 = require("@lexical/react/LexicalComposerContext");
|
|
16699
|
+
var import_LexicalDecoratorBlockNode = require("@lexical/react/LexicalDecoratorBlockNode");
|
|
16475
16700
|
var import_rich_text = require("@lexical/rich-text");
|
|
16476
16701
|
var import_selection2 = require("@lexical/selection");
|
|
16477
16702
|
var import_utils5 = require("@lexical/utils");
|
|
16478
16703
|
var import_lexical4 = require("lexical");
|
|
16479
|
-
var
|
|
16480
|
-
var
|
|
16481
|
-
var toolbar =
|
|
16704
|
+
var import_react100 = require("react");
|
|
16705
|
+
var import_jsx_runtime91 = require("@emotion/react/jsx-runtime");
|
|
16706
|
+
var toolbar = import_react99.css`
|
|
16482
16707
|
background: var(--gray-50);
|
|
16483
16708
|
border-radius: var(--rounded-base);
|
|
16484
16709
|
display: flex;
|
|
@@ -16490,7 +16715,7 @@ var toolbar = import_react96.css`
|
|
|
16490
16715
|
top: 0;
|
|
16491
16716
|
z-index: 10;
|
|
16492
16717
|
`;
|
|
16493
|
-
var toolbarGroup =
|
|
16718
|
+
var toolbarGroup = import_react99.css`
|
|
16494
16719
|
display: flex;
|
|
16495
16720
|
gap: var(--spacing-xs);
|
|
16496
16721
|
position: relative;
|
|
@@ -16506,7 +16731,7 @@ var toolbarGroup = import_react96.css`
|
|
|
16506
16731
|
width: 1px;
|
|
16507
16732
|
}
|
|
16508
16733
|
`;
|
|
16509
|
-
var toolbarButton =
|
|
16734
|
+
var toolbarButton = import_react99.css`
|
|
16510
16735
|
align-items: center;
|
|
16511
16736
|
appearance: none;
|
|
16512
16737
|
border: 0;
|
|
@@ -16519,17 +16744,17 @@ var toolbarButton = import_react96.css`
|
|
|
16519
16744
|
min-width: 32px;
|
|
16520
16745
|
padding: 0 var(--spacing-sm);
|
|
16521
16746
|
`;
|
|
16522
|
-
var toolbarButtonActive =
|
|
16747
|
+
var toolbarButtonActive = import_react99.css`
|
|
16523
16748
|
background: var(--gray-200);
|
|
16524
16749
|
`;
|
|
16525
|
-
var toolbarIcon =
|
|
16750
|
+
var toolbarIcon = import_react99.css`
|
|
16526
16751
|
color: inherit;
|
|
16527
16752
|
`;
|
|
16528
|
-
var toolbarChevron =
|
|
16753
|
+
var toolbarChevron = import_react99.css`
|
|
16529
16754
|
margin-left: var(--spacing-xs);
|
|
16530
16755
|
`;
|
|
16531
16756
|
var ToolbarIcon = ({ icon }) => {
|
|
16532
|
-
return /* @__PURE__ */ (0,
|
|
16757
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Icon, { icon, css: toolbarIcon, size: "1rem" });
|
|
16533
16758
|
};
|
|
16534
16759
|
var RichTextToolbar = ({ config }) => {
|
|
16535
16760
|
const [editor] = (0, import_LexicalComposerContext3.useLexicalComposerContext)();
|
|
@@ -16545,7 +16770,6 @@ var RichTextToolbar = ({ config }) => {
|
|
|
16545
16770
|
return (_b = (_a = config == null ? void 0 : config.elements) == null ? void 0 : _a.builtIn) == null ? void 0 : _b.includes(element.type);
|
|
16546
16771
|
}
|
|
16547
16772
|
);
|
|
16548
|
-
const showToolbar = enabledBuiltInFormats.length > 0 || enabledBuiltInElements.length > 0;
|
|
16549
16773
|
const formatsWithIcon = /* @__PURE__ */ new Map([
|
|
16550
16774
|
["bold", "format-bold"],
|
|
16551
16775
|
["italic", "format-italic"],
|
|
@@ -16561,8 +16785,8 @@ var RichTextToolbar = ({ config }) => {
|
|
|
16561
16785
|
const enabledBuiltInFormatsWithoutIcon = enabledBuiltInFormats.filter(
|
|
16562
16786
|
(format) => !formatsWithIcon.has(format.type)
|
|
16563
16787
|
);
|
|
16564
|
-
const [activeFormats, setActiveFormats] = (0,
|
|
16565
|
-
const [activeElement, setActiveElement] = (0,
|
|
16788
|
+
const [activeFormats, setActiveFormats] = (0, import_react100.useState)([]);
|
|
16789
|
+
const [activeElement, setActiveElement] = (0, import_react100.useState)("paragraph");
|
|
16566
16790
|
const enabledTextualElements = enabledBuiltInElements.filter(
|
|
16567
16791
|
(element) => ["h1", "h2", "h3", "h4", "h5", "h6"].includes(element.type)
|
|
16568
16792
|
);
|
|
@@ -16571,7 +16795,7 @@ var RichTextToolbar = ({ config }) => {
|
|
|
16571
16795
|
if (type === "paragraph") {
|
|
16572
16796
|
return "Normal";
|
|
16573
16797
|
}
|
|
16574
|
-
const element =
|
|
16798
|
+
const element = richTextBuiltInElements.find((element2) => element2.type === type);
|
|
16575
16799
|
return (_a = element == null ? void 0 : element.label) != null ? _a : type;
|
|
16576
16800
|
};
|
|
16577
16801
|
const onSelectElement = (type) => {
|
|
@@ -16587,19 +16811,29 @@ var RichTextToolbar = ({ config }) => {
|
|
|
16587
16811
|
(0, import_selection2.$setBlocksType)(selection, () => (0, import_rich_text.$createHeadingNode)(type));
|
|
16588
16812
|
} else if (type === "paragraph") {
|
|
16589
16813
|
(0, import_selection2.$setBlocksType)(selection, () => (0, import_lexical4.$createParagraphNode)());
|
|
16814
|
+
} else if (type === "quote") {
|
|
16815
|
+
(0, import_selection2.$setBlocksType)(selection, () => (0, import_rich_text.$createQuoteNode)());
|
|
16816
|
+
} else if (type === "code") {
|
|
16817
|
+
(0, import_selection2.$setBlocksType)(selection, () => (0, import_code.$createCodeNode)());
|
|
16590
16818
|
}
|
|
16591
16819
|
});
|
|
16592
16820
|
};
|
|
16593
|
-
const [isLink, setIsLink] = (0,
|
|
16594
|
-
const linkElementEnabled = (0,
|
|
16821
|
+
const [isLink, setIsLink] = (0, import_react100.useState)(false);
|
|
16822
|
+
const linkElementEnabled = (0, import_react100.useMemo)(() => {
|
|
16595
16823
|
return enabledBuiltInElements.some((element) => element.type === "link");
|
|
16596
16824
|
}, [enabledBuiltInElements]);
|
|
16597
|
-
const enabledLists = (0,
|
|
16825
|
+
const enabledLists = (0, import_react100.useMemo)(() => {
|
|
16598
16826
|
return new Set(
|
|
16599
16827
|
enabledBuiltInElements.filter((element) => ["orderedList", "unorderedList"].includes(element.type)).map((element) => element.type)
|
|
16600
16828
|
);
|
|
16601
16829
|
}, [enabledBuiltInElements]);
|
|
16602
|
-
const
|
|
16830
|
+
const quoteElementEnabled = (0, import_react100.useMemo)(() => {
|
|
16831
|
+
return enabledBuiltInElements.some((element) => element.type === "quote");
|
|
16832
|
+
}, [enabledBuiltInElements]);
|
|
16833
|
+
const codeElementEnabled = (0, import_react100.useMemo)(() => {
|
|
16834
|
+
return enabledBuiltInElements.some((element) => element.type === "code");
|
|
16835
|
+
}, [enabledBuiltInElements]);
|
|
16836
|
+
const updateToolbar = (0, import_react100.useCallback)(() => {
|
|
16603
16837
|
const selection = (0, import_lexical4.$getSelection)();
|
|
16604
16838
|
if (!(0, import_lexical4.$isRangeSelection)(selection)) {
|
|
16605
16839
|
return;
|
|
@@ -16638,7 +16872,7 @@ var RichTextToolbar = ({ config }) => {
|
|
|
16638
16872
|
setIsLink(false);
|
|
16639
16873
|
}
|
|
16640
16874
|
}, [editor, enabledBuiltInFormats]);
|
|
16641
|
-
(0,
|
|
16875
|
+
(0, import_react100.useEffect)(() => {
|
|
16642
16876
|
return editor.registerCommand(
|
|
16643
16877
|
import_lexical4.SELECTION_CHANGE_COMMAND,
|
|
16644
16878
|
(_payload) => {
|
|
@@ -16648,7 +16882,7 @@ var RichTextToolbar = ({ config }) => {
|
|
|
16648
16882
|
import_lexical4.COMMAND_PRIORITY_CRITICAL
|
|
16649
16883
|
);
|
|
16650
16884
|
}, [editor, updateToolbar]);
|
|
16651
|
-
(0,
|
|
16885
|
+
(0, import_react100.useEffect)(() => {
|
|
16652
16886
|
return editor.registerUpdateListener(({ editorState }) => {
|
|
16653
16887
|
requestAnimationFrame(() => {
|
|
16654
16888
|
editorState.read(() => {
|
|
@@ -16657,18 +16891,65 @@ var RichTextToolbar = ({ config }) => {
|
|
|
16657
16891
|
});
|
|
16658
16892
|
});
|
|
16659
16893
|
}, [editor, updateToolbar]);
|
|
16660
|
-
|
|
16661
|
-
|
|
16662
|
-
|
|
16663
|
-
|
|
16664
|
-
|
|
16894
|
+
const clearFormatting2 = (0, import_react100.useCallback)(() => {
|
|
16895
|
+
editor.update(() => {
|
|
16896
|
+
const selection = (0, import_lexical4.$getSelection)();
|
|
16897
|
+
if ((0, import_lexical4.$isRangeSelection)(selection)) {
|
|
16898
|
+
const anchor = selection.anchor;
|
|
16899
|
+
const focus = selection.focus;
|
|
16900
|
+
const nodes = selection.getNodes();
|
|
16901
|
+
if (anchor.key === focus.key && anchor.offset === focus.offset) {
|
|
16902
|
+
return;
|
|
16903
|
+
}
|
|
16904
|
+
nodes.forEach((node, idx) => {
|
|
16905
|
+
if ((0, import_lexical4.$isTextNode)(node)) {
|
|
16906
|
+
if (idx === 0 && anchor.offset !== 0) {
|
|
16907
|
+
node = node.splitText(anchor.offset)[1] || node;
|
|
16908
|
+
}
|
|
16909
|
+
if (idx === nodes.length - 1) {
|
|
16910
|
+
node = node.splitText(focus.offset)[0] || node;
|
|
16911
|
+
}
|
|
16912
|
+
if (node.__style !== "") {
|
|
16913
|
+
node.setStyle("");
|
|
16914
|
+
}
|
|
16915
|
+
if (node.__format !== 0) {
|
|
16916
|
+
node.setFormat(0);
|
|
16917
|
+
(0, import_utils5.$getNearestBlockElementAncestorOrThrow)(node).setFormat("");
|
|
16918
|
+
}
|
|
16919
|
+
} else if ((0, import_rich_text.$isHeadingNode)(node) || (0, import_rich_text.$isQuoteNode)(node)) {
|
|
16920
|
+
node.replace((0, import_lexical4.$createParagraphNode)(), true);
|
|
16921
|
+
} else if ((0, import_LexicalDecoratorBlockNode.$isDecoratorBlockNode)(node)) {
|
|
16922
|
+
node.setFormat("");
|
|
16923
|
+
}
|
|
16924
|
+
});
|
|
16925
|
+
}
|
|
16926
|
+
updateToolbar();
|
|
16927
|
+
});
|
|
16928
|
+
}, [editor, updateToolbar]);
|
|
16929
|
+
const elementsThatShouldBeVisibleInDropdown = (0, import_react100.useMemo)(() => {
|
|
16930
|
+
if (activeElement === "paragraph") {
|
|
16931
|
+
return enabledTextualElements;
|
|
16932
|
+
}
|
|
16933
|
+
if (enabledBuiltInElements.some((element) => element.type === activeElement)) {
|
|
16934
|
+
return enabledTextualElements;
|
|
16935
|
+
}
|
|
16936
|
+
return [
|
|
16937
|
+
...enabledTextualElements,
|
|
16938
|
+
{
|
|
16939
|
+
label: elementTypeToLabel(activeElement),
|
|
16940
|
+
type: activeElement
|
|
16941
|
+
}
|
|
16942
|
+
];
|
|
16943
|
+
}, [enabledBuiltInElements, enabledTextualElements, activeElement]);
|
|
16944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { css: toolbar, children: [
|
|
16945
|
+
elementsThatShouldBeVisibleInDropdown.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
16665
16946
|
Menu,
|
|
16666
16947
|
{
|
|
16667
16948
|
menuLabel: "Elements",
|
|
16668
|
-
menuTrigger: /* @__PURE__ */ (0,
|
|
16669
|
-
|
|
16949
|
+
menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("button", { css: toolbarButton, title: "Text formatting", children: [
|
|
16950
|
+
elementsThatShouldBeVisibleInDropdown.some((element) => element.type === activeElement) ? elementTypeToLabel(activeElement) : elementTypeToLabel("paragraph"),
|
|
16670
16951
|
" ",
|
|
16671
|
-
/* @__PURE__ */ (0,
|
|
16952
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
|
|
16672
16953
|
] }),
|
|
16673
16954
|
placement: "bottom-start",
|
|
16674
16955
|
children: [
|
|
@@ -16676,8 +16957,8 @@ var RichTextToolbar = ({ config }) => {
|
|
|
16676
16957
|
label: "Normal",
|
|
16677
16958
|
type: "paragraph"
|
|
16678
16959
|
},
|
|
16679
|
-
...
|
|
16680
|
-
].map((element) => /* @__PURE__ */ (0,
|
|
16960
|
+
...elementsThatShouldBeVisibleInDropdown
|
|
16961
|
+
].map((element) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
16681
16962
|
MenuItem,
|
|
16682
16963
|
{
|
|
16683
16964
|
onClick: () => {
|
|
@@ -16689,24 +16970,24 @@ var RichTextToolbar = ({ config }) => {
|
|
|
16689
16970
|
))
|
|
16690
16971
|
}
|
|
16691
16972
|
) : null,
|
|
16692
|
-
enabledBuiltInFormatsWithIcon.length > 0 || enabledBuiltInFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0,
|
|
16693
|
-
enabledBuiltInFormatsWithIcon.map((format) => /* @__PURE__ */ (0,
|
|
16973
|
+
enabledBuiltInFormatsWithIcon.length > 0 || enabledBuiltInFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { css: toolbarGroup, children: [
|
|
16974
|
+
enabledBuiltInFormatsWithIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
16694
16975
|
"button",
|
|
16695
16976
|
{
|
|
16696
16977
|
onClick: () => {
|
|
16697
16978
|
editor.dispatchCommand(import_lexical4.FORMAT_TEXT_COMMAND, format.type);
|
|
16698
16979
|
},
|
|
16699
16980
|
css: [toolbarButton, activeFormats.includes(format.type) ? toolbarButtonActive : null],
|
|
16700
|
-
children: /* @__PURE__ */ (0,
|
|
16981
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ToolbarIcon, { icon: formatsWithIcon.get(format.type) })
|
|
16701
16982
|
}
|
|
16702
16983
|
) }, format.type)),
|
|
16703
|
-
enabledBuiltInFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0,
|
|
16984
|
+
enabledBuiltInFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
16704
16985
|
Menu,
|
|
16705
16986
|
{
|
|
16706
16987
|
menuLabel: "Text formatting",
|
|
16707
|
-
menuTrigger: /* @__PURE__ */ (0,
|
|
16988
|
+
menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("button", { css: toolbarButton, title: "Text formatting", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Icon, { icon: "more-alt", css: toolbarIcon }) }),
|
|
16708
16989
|
placement: "bottom-start",
|
|
16709
|
-
children: enabledBuiltInFormatsWithoutIcon.map((format) => /* @__PURE__ */ (0,
|
|
16990
|
+
children: enabledBuiltInFormatsWithoutIcon.map((format) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
16710
16991
|
MenuItem,
|
|
16711
16992
|
{
|
|
16712
16993
|
onClick: () => {
|
|
@@ -16719,46 +17000,87 @@ var RichTextToolbar = ({ config }) => {
|
|
|
16719
17000
|
}
|
|
16720
17001
|
) : null
|
|
16721
17002
|
] }) : null,
|
|
16722
|
-
linkElementEnabled || enabledLists.size > 0 ? /* @__PURE__ */ (0,
|
|
16723
|
-
linkElementEnabled ? /* @__PURE__ */ (0,
|
|
17003
|
+
linkElementEnabled || enabledLists.size > 0 || quoteElementEnabled || codeElementEnabled ? /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { css: toolbarGroup, children: [
|
|
17004
|
+
linkElementEnabled ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
16724
17005
|
"button",
|
|
16725
17006
|
{
|
|
16726
17007
|
onClick: () => {
|
|
16727
17008
|
editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
|
|
16728
17009
|
},
|
|
16729
17010
|
css: [toolbarButton, isLink ? toolbarButtonActive : null],
|
|
16730
|
-
children: /* @__PURE__ */ (0,
|
|
17011
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ToolbarIcon, { icon: "link" })
|
|
16731
17012
|
}
|
|
16732
17013
|
) }) : null,
|
|
16733
|
-
enabledLists.size > 0 ? /* @__PURE__ */ (0,
|
|
16734
|
-
enabledLists.has("unorderedList") ? /* @__PURE__ */ (0,
|
|
17014
|
+
enabledLists.size > 0 ? /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_jsx_runtime91.Fragment, { children: [
|
|
17015
|
+
enabledLists.has("unorderedList") ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Tooltip, { title: "Bullet list", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
16735
17016
|
"button",
|
|
16736
17017
|
{
|
|
16737
17018
|
onClick: () => {
|
|
16738
17019
|
activeElement === "unorderedList" ? editor.dispatchCommand(import_list2.REMOVE_LIST_COMMAND, void 0) : editor.dispatchCommand(import_list2.INSERT_UNORDERED_LIST_COMMAND, void 0);
|
|
16739
17020
|
},
|
|
16740
17021
|
css: [toolbarButton, activeElement === "unorderedList" ? toolbarButtonActive : null],
|
|
16741
|
-
children: /* @__PURE__ */ (0,
|
|
17022
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ToolbarIcon, { icon: "layout-list" })
|
|
16742
17023
|
}
|
|
16743
17024
|
) }) : null,
|
|
16744
|
-
enabledLists.has("orderedList") ? /* @__PURE__ */ (0,
|
|
17025
|
+
enabledLists.has("orderedList") ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Tooltip, { title: "Numbered list", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
16745
17026
|
"button",
|
|
16746
17027
|
{
|
|
16747
17028
|
onClick: () => {
|
|
16748
17029
|
activeElement === "orderedList" ? editor.dispatchCommand(import_list2.REMOVE_LIST_COMMAND, void 0) : editor.dispatchCommand(import_list2.INSERT_ORDERED_LIST_COMMAND, void 0);
|
|
16749
17030
|
},
|
|
16750
17031
|
css: [toolbarButton, activeElement === "orderedList" ? toolbarButtonActive : null],
|
|
16751
|
-
children: /* @__PURE__ */ (0,
|
|
17032
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ToolbarIcon, { icon: "layout-list-numbered" })
|
|
16752
17033
|
}
|
|
16753
17034
|
) }) : null
|
|
16754
|
-
] }) : null
|
|
16755
|
-
|
|
17035
|
+
] }) : null,
|
|
17036
|
+
quoteElementEnabled ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
17037
|
+
"button",
|
|
17038
|
+
{
|
|
17039
|
+
onClick: () => {
|
|
17040
|
+
activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
|
|
17041
|
+
},
|
|
17042
|
+
css: [toolbarButton, activeElement === "quote" ? toolbarButtonActive : null],
|
|
17043
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ToolbarIcon, { icon: "quote" })
|
|
17044
|
+
}
|
|
17045
|
+
) }) : null,
|
|
17046
|
+
codeElementEnabled ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Tooltip, { title: "Code", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
17047
|
+
"button",
|
|
17048
|
+
{
|
|
17049
|
+
onClick: () => {
|
|
17050
|
+
activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
|
|
17051
|
+
},
|
|
17052
|
+
css: [toolbarButton, activeElement === "code" ? toolbarButtonActive : null],
|
|
17053
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ToolbarIcon, { icon: "code-slash" })
|
|
17054
|
+
}
|
|
17055
|
+
) }) : null
|
|
17056
|
+
] }) : null,
|
|
17057
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
17058
|
+
"div",
|
|
17059
|
+
{
|
|
17060
|
+
css: [
|
|
17061
|
+
toolbarGroup,
|
|
17062
|
+
{
|
|
17063
|
+
marginLeft: "auto"
|
|
17064
|
+
}
|
|
17065
|
+
],
|
|
17066
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Tooltip, { title: "Clear formatting", placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
17067
|
+
"button",
|
|
17068
|
+
{
|
|
17069
|
+
onClick: () => {
|
|
17070
|
+
clearFormatting2();
|
|
17071
|
+
},
|
|
17072
|
+
css: [toolbarButton],
|
|
17073
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ToolbarIcon, { icon: "clear-formatting" })
|
|
17074
|
+
}
|
|
17075
|
+
) })
|
|
17076
|
+
}
|
|
17077
|
+
)
|
|
16756
17078
|
] });
|
|
16757
17079
|
};
|
|
16758
17080
|
var RichTextToolbar_default = RichTextToolbar;
|
|
16759
17081
|
|
|
16760
17082
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
16761
|
-
var
|
|
17083
|
+
var import_jsx_runtime92 = require("@emotion/react/jsx-runtime");
|
|
16762
17084
|
var ParameterRichText = ({
|
|
16763
17085
|
label,
|
|
16764
17086
|
labelLeadingIcon,
|
|
@@ -16779,7 +17101,7 @@ var ParameterRichText = ({
|
|
|
16779
17101
|
editorInputClassName,
|
|
16780
17102
|
editorFooter
|
|
16781
17103
|
}) => {
|
|
16782
|
-
return /* @__PURE__ */ (0,
|
|
17104
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
|
|
16783
17105
|
ParameterShell,
|
|
16784
17106
|
{
|
|
16785
17107
|
"data-test-id": "parameter-input",
|
|
@@ -16793,7 +17115,7 @@ var ParameterRichText = ({
|
|
|
16793
17115
|
captionTestId,
|
|
16794
17116
|
menuItems,
|
|
16795
17117
|
children: [
|
|
16796
|
-
/* @__PURE__ */ (0,
|
|
17118
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
16797
17119
|
ParameterRichTextInner,
|
|
16798
17120
|
{
|
|
16799
17121
|
value,
|
|
@@ -16807,23 +17129,23 @@ var ParameterRichText = ({
|
|
|
16807
17129
|
editorFooter
|
|
16808
17130
|
}
|
|
16809
17131
|
),
|
|
16810
|
-
menuItems ? /* @__PURE__ */ (0,
|
|
17132
|
+
menuItems ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_jsx_runtime92.Fragment, { children: menuItems }) }) : null
|
|
16811
17133
|
]
|
|
16812
17134
|
}
|
|
16813
17135
|
);
|
|
16814
17136
|
};
|
|
16815
|
-
var editorWrapper =
|
|
17137
|
+
var editorWrapper = import_react101.css`
|
|
16816
17138
|
display: flex;
|
|
16817
17139
|
flex-flow: column;
|
|
16818
17140
|
flex-grow: 1;
|
|
16819
17141
|
`;
|
|
16820
|
-
var editorContainer =
|
|
17142
|
+
var editorContainer = import_react101.css`
|
|
16821
17143
|
display: flex;
|
|
16822
17144
|
flex-flow: column;
|
|
16823
17145
|
flex-grow: 1;
|
|
16824
17146
|
position: relative;
|
|
16825
17147
|
`;
|
|
16826
|
-
var editorPlaceholder =
|
|
17148
|
+
var editorPlaceholder = import_react101.css`
|
|
16827
17149
|
color: var(--gray-500);
|
|
16828
17150
|
font-style: italic;
|
|
16829
17151
|
/* 1px is added to make sure caret is clearly visible when field is focused
|
|
@@ -16834,11 +17156,11 @@ var editorPlaceholder = import_react98.css`
|
|
|
16834
17156
|
top: var(--spacing-xs);
|
|
16835
17157
|
user-select: none;
|
|
16836
17158
|
`;
|
|
16837
|
-
var editorInput =
|
|
17159
|
+
var editorInput = import_react101.css`
|
|
16838
17160
|
background: var(--white);
|
|
16839
17161
|
border: 1px solid var(--white);
|
|
16840
17162
|
border-radius: var(--rounded-sm);
|
|
16841
|
-
color: var(--gray-
|
|
17163
|
+
color: var(--gray-900);
|
|
16842
17164
|
flex-grow: 1;
|
|
16843
17165
|
font-size: var(--fs-base);
|
|
16844
17166
|
line-height: 1.2;
|
|
@@ -16870,7 +17192,7 @@ var ParameterRichTextInner = ({
|
|
|
16870
17192
|
console.error(error);
|
|
16871
17193
|
},
|
|
16872
17194
|
editorState: value ? JSON.stringify(value) : void 0,
|
|
16873
|
-
nodes: [import_list3.ListNode, import_list3.ListItemNode, LinkNode, import_rich_text2.HeadingNode, import_lexical5.ParagraphNode],
|
|
17195
|
+
nodes: [import_list3.ListNode, import_list3.ListItemNode, LinkNode, import_rich_text2.HeadingNode, import_rich_text2.QuoteNode, import_code2.CodeNode, import_lexical5.ParagraphNode],
|
|
16874
17196
|
theme: {
|
|
16875
17197
|
text: {
|
|
16876
17198
|
bold: textBold,
|
|
@@ -16899,12 +17221,14 @@ var ParameterRichTextInner = ({
|
|
|
16899
17221
|
nested: {
|
|
16900
17222
|
listitem: nestedListItemElement
|
|
16901
17223
|
}
|
|
16902
|
-
}
|
|
17224
|
+
},
|
|
17225
|
+
quote: blockquoteElement,
|
|
17226
|
+
code: codeElement
|
|
16903
17227
|
},
|
|
16904
17228
|
editable: !readOnly
|
|
16905
17229
|
};
|
|
16906
|
-
return /* @__PURE__ */ (0,
|
|
16907
|
-
/* @__PURE__ */ (0,
|
|
17230
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
|
|
17231
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_LexicalComposer.LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
16908
17232
|
RichText,
|
|
16909
17233
|
{
|
|
16910
17234
|
onChange,
|
|
@@ -16926,14 +17250,14 @@ var RichText = ({
|
|
|
16926
17250
|
readOnly,
|
|
16927
17251
|
editorInputClassName
|
|
16928
17252
|
}) => {
|
|
16929
|
-
const editorContainerRef = (0,
|
|
17253
|
+
const editorContainerRef = (0, import_react102.useRef)(null);
|
|
16930
17254
|
const [editor] = (0, import_LexicalComposerContext4.useLexicalComposerContext)();
|
|
16931
|
-
(0,
|
|
17255
|
+
(0, import_react102.useEffect)(() => {
|
|
16932
17256
|
if (onRichTextInit) {
|
|
16933
17257
|
onRichTextInit(editor);
|
|
16934
17258
|
}
|
|
16935
17259
|
}, [editor, onRichTextInit]);
|
|
16936
|
-
(0,
|
|
17260
|
+
(0, import_react102.useEffect)(() => {
|
|
16937
17261
|
const removeUpdateListener = editor.registerUpdateListener(({ editorState, prevEditorState }) => {
|
|
16938
17262
|
requestAnimationFrame(() => {
|
|
16939
17263
|
if (!(0, import_fast_equals2.deepEqual)(editorState.toJSON(), prevEditorState.toJSON())) {
|
|
@@ -16945,38 +17269,38 @@ var RichText = ({
|
|
|
16945
17269
|
removeUpdateListener();
|
|
16946
17270
|
};
|
|
16947
17271
|
}, []);
|
|
16948
|
-
return /* @__PURE__ */ (0,
|
|
16949
|
-
readOnly ? null : /* @__PURE__ */ (0,
|
|
16950
|
-
/* @__PURE__ */ (0,
|
|
16951
|
-
/* @__PURE__ */ (0,
|
|
17272
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
|
|
17273
|
+
readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(RichTextToolbar_default, { config }),
|
|
17274
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { css: editorContainer, ref: editorContainerRef, children: [
|
|
17275
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
16952
17276
|
import_LexicalRichTextPlugin.RichTextPlugin,
|
|
16953
17277
|
{
|
|
16954
|
-
contentEditable: /* @__PURE__ */ (0,
|
|
16955
|
-
placeholder: /* @__PURE__ */ (0,
|
|
17278
|
+
contentEditable: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_LexicalContentEditable.ContentEditable, { css: editorInput, className: editorInputClassName }),
|
|
17279
|
+
placeholder: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
|
|
16956
17280
|
ErrorBoundary: import_LexicalErrorBoundary.default
|
|
16957
17281
|
}
|
|
16958
17282
|
),
|
|
16959
|
-
/* @__PURE__ */ (0,
|
|
16960
|
-
readOnly ? null : /* @__PURE__ */ (0,
|
|
16961
|
-
/* @__PURE__ */ (0,
|
|
16962
|
-
/* @__PURE__ */ (0,
|
|
17283
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_LexicalListPlugin.ListPlugin, {}),
|
|
17284
|
+
readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_LexicalHistoryPlugin.HistoryPlugin, {}),
|
|
17285
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(LinkNodePlugin, { onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve() }),
|
|
17286
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ListIndentPlugin, { maxDepth: 4 })
|
|
16963
17287
|
] })
|
|
16964
17288
|
] });
|
|
16965
17289
|
};
|
|
16966
17290
|
|
|
16967
17291
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
16968
|
-
var
|
|
16969
|
-
var
|
|
16970
|
-
var ParameterSelect = (0,
|
|
17292
|
+
var import_react103 = require("react");
|
|
17293
|
+
var import_jsx_runtime93 = require("@emotion/react/jsx-runtime");
|
|
17294
|
+
var ParameterSelect = (0, import_react103.forwardRef)(
|
|
16971
17295
|
({ defaultOption, options, ...props }, ref) => {
|
|
16972
17296
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16973
|
-
return /* @__PURE__ */ (0,
|
|
17297
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
16974
17298
|
}
|
|
16975
17299
|
);
|
|
16976
|
-
var ParameterSelectInner = (0,
|
|
17300
|
+
var ParameterSelectInner = (0, import_react103.forwardRef)(
|
|
16977
17301
|
({ defaultOption, options, ...props }, ref) => {
|
|
16978
17302
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
16979
|
-
return /* @__PURE__ */ (0,
|
|
17303
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
|
|
16980
17304
|
"select",
|
|
16981
17305
|
{
|
|
16982
17306
|
css: [input2, selectInput],
|
|
@@ -16985,10 +17309,10 @@ var ParameterSelectInner = (0, import_react100.forwardRef)(
|
|
|
16985
17309
|
ref,
|
|
16986
17310
|
...props,
|
|
16987
17311
|
children: [
|
|
16988
|
-
defaultOption ? /* @__PURE__ */ (0,
|
|
17312
|
+
defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("option", { value: "", children: defaultOption }) : null,
|
|
16989
17313
|
options.map((option) => {
|
|
16990
17314
|
var _a;
|
|
16991
|
-
return /* @__PURE__ */ (0,
|
|
17315
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
16992
17316
|
})
|
|
16993
17317
|
]
|
|
16994
17318
|
}
|
|
@@ -16997,15 +17321,15 @@ var ParameterSelectInner = (0, import_react100.forwardRef)(
|
|
|
16997
17321
|
);
|
|
16998
17322
|
|
|
16999
17323
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
17000
|
-
var
|
|
17001
|
-
var
|
|
17002
|
-
var ParameterTextarea = (0,
|
|
17324
|
+
var import_react104 = require("react");
|
|
17325
|
+
var import_jsx_runtime94 = require("@emotion/react/jsx-runtime");
|
|
17326
|
+
var ParameterTextarea = (0, import_react104.forwardRef)((props, ref) => {
|
|
17003
17327
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
17004
|
-
return /* @__PURE__ */ (0,
|
|
17328
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ParameterShell, { "data-test-id": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
17005
17329
|
});
|
|
17006
|
-
var ParameterTextareaInner = (0,
|
|
17330
|
+
var ParameterTextareaInner = (0, import_react104.forwardRef)(({ ...props }, ref) => {
|
|
17007
17331
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
17008
|
-
return /* @__PURE__ */ (0,
|
|
17332
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
17009
17333
|
"textarea",
|
|
17010
17334
|
{
|
|
17011
17335
|
css: [input2, textarea2],
|
|
@@ -17018,18 +17342,18 @@ var ParameterTextareaInner = (0, import_react101.forwardRef)(({ ...props }, ref)
|
|
|
17018
17342
|
});
|
|
17019
17343
|
|
|
17020
17344
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
17021
|
-
var
|
|
17022
|
-
var
|
|
17023
|
-
var ParameterToggle = (0,
|
|
17345
|
+
var import_react105 = require("react");
|
|
17346
|
+
var import_jsx_runtime95 = require("@emotion/react/jsx-runtime");
|
|
17347
|
+
var ParameterToggle = (0, import_react105.forwardRef)((props, ref) => {
|
|
17024
17348
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
17025
|
-
return /* @__PURE__ */ (0,
|
|
17349
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ParameterToggleInner, { ref, ...innerProps }) });
|
|
17026
17350
|
});
|
|
17027
|
-
var ParameterToggleInner = (0,
|
|
17351
|
+
var ParameterToggleInner = (0, import_react105.forwardRef)(
|
|
17028
17352
|
({ ...props }, ref) => {
|
|
17029
17353
|
const { id, label } = useParameterShell();
|
|
17030
|
-
return /* @__PURE__ */ (0,
|
|
17031
|
-
/* @__PURE__ */ (0,
|
|
17032
|
-
/* @__PURE__ */ (0,
|
|
17354
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("label", { css: inputToggleLabel2, children: [
|
|
17355
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
17356
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { css: inlineLabel2, children: label })
|
|
17033
17357
|
] });
|
|
17034
17358
|
}
|
|
17035
17359
|
);
|
|
@@ -17037,7 +17361,7 @@ var ParameterToggleInner = (0, import_react102.forwardRef)(
|
|
|
17037
17361
|
// src/components/Popover/Popover.tsx
|
|
17038
17362
|
var import_Popover = require("reakit/Popover");
|
|
17039
17363
|
var import_Portal2 = require("reakit/Portal");
|
|
17040
|
-
var
|
|
17364
|
+
var import_jsx_runtime96 = require("@emotion/react/jsx-runtime");
|
|
17041
17365
|
var Popover2 = ({
|
|
17042
17366
|
iconColor = "action",
|
|
17043
17367
|
icon = "info",
|
|
@@ -17049,38 +17373,38 @@ var Popover2 = ({
|
|
|
17049
17373
|
children
|
|
17050
17374
|
}) => {
|
|
17051
17375
|
const popover = (0, import_Popover.usePopoverState)({ placement });
|
|
17052
|
-
return /* @__PURE__ */ (0,
|
|
17053
|
-
/* @__PURE__ */ (0,
|
|
17054
|
-
/* @__PURE__ */ (0,
|
|
17055
|
-
/* @__PURE__ */ (0,
|
|
17376
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_jsx_runtime96.Fragment, { children: [
|
|
17377
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_Popover.PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, "data-test-id": testId, children: [
|
|
17378
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Icon, { icon, iconColor, size: iconSize }),
|
|
17379
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { hidden: true, children: buttonText })
|
|
17056
17380
|
] }),
|
|
17057
|
-
/* @__PURE__ */ (0,
|
|
17381
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_Portal2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_Popover.Popover, { css: Popover, ...popover, "aria-label": ariaLabel, children }) })
|
|
17058
17382
|
] });
|
|
17059
17383
|
};
|
|
17060
17384
|
|
|
17061
17385
|
// src/components/ProgressList/ProgressList.tsx
|
|
17062
|
-
var
|
|
17063
|
-
var
|
|
17386
|
+
var import_react107 = require("@emotion/react");
|
|
17387
|
+
var import_react108 = require("react");
|
|
17064
17388
|
var import_cg18 = require("react-icons/cg");
|
|
17065
17389
|
|
|
17066
17390
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
17067
|
-
var
|
|
17068
|
-
var progressListStyles =
|
|
17391
|
+
var import_react106 = require("@emotion/react");
|
|
17392
|
+
var progressListStyles = import_react106.css`
|
|
17069
17393
|
display: flex;
|
|
17070
17394
|
flex-direction: column;
|
|
17071
17395
|
gap: var(--spacing-sm);
|
|
17072
17396
|
list-style-type: none;
|
|
17073
17397
|
`;
|
|
17074
|
-
var progressListItemStyles =
|
|
17398
|
+
var progressListItemStyles = import_react106.css`
|
|
17075
17399
|
display: flex;
|
|
17076
17400
|
gap: var(--spacing-base);
|
|
17077
17401
|
align-items: center;
|
|
17078
17402
|
`;
|
|
17079
17403
|
|
|
17080
17404
|
// src/components/ProgressList/ProgressList.tsx
|
|
17081
|
-
var
|
|
17405
|
+
var import_jsx_runtime97 = require("@emotion/react/jsx-runtime");
|
|
17082
17406
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
17083
|
-
const itemsWithStatus = (0,
|
|
17407
|
+
const itemsWithStatus = (0, import_react108.useMemo)(() => {
|
|
17084
17408
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
17085
17409
|
return items.map((item, index) => {
|
|
17086
17410
|
let status = "queued";
|
|
@@ -17092,8 +17416,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
17092
17416
|
return { ...item, status };
|
|
17093
17417
|
});
|
|
17094
17418
|
}, [items, inProgressId]);
|
|
17095
|
-
return /* @__PURE__ */ (0,
|
|
17096
|
-
return /* @__PURE__ */ (0,
|
|
17419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
17420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
17097
17421
|
ProgressListItem,
|
|
17098
17422
|
{
|
|
17099
17423
|
status,
|
|
@@ -17113,7 +17437,7 @@ var ProgressListItem = ({
|
|
|
17113
17437
|
errorLevel = "danger",
|
|
17114
17438
|
autoEllipsis = false
|
|
17115
17439
|
}) => {
|
|
17116
|
-
const Icon2 = (0,
|
|
17440
|
+
const Icon2 = (0, import_react108.useMemo)(() => {
|
|
17117
17441
|
if (error) {
|
|
17118
17442
|
return warningIcon;
|
|
17119
17443
|
}
|
|
@@ -17124,14 +17448,14 @@ var ProgressListItem = ({
|
|
|
17124
17448
|
};
|
|
17125
17449
|
return iconPerStatus[status];
|
|
17126
17450
|
}, [status, error]);
|
|
17127
|
-
const statusStyles = (0,
|
|
17451
|
+
const statusStyles = (0, import_react108.useMemo)(() => {
|
|
17128
17452
|
if (error) {
|
|
17129
|
-
return errorLevel === "caution" ?
|
|
17453
|
+
return errorLevel === "caution" ? import_react107.css`
|
|
17130
17454
|
color: rgb(161, 98, 7);
|
|
17131
17455
|
& svg {
|
|
17132
17456
|
color: rgb(250, 204, 21);
|
|
17133
17457
|
}
|
|
17134
|
-
` :
|
|
17458
|
+
` : import_react107.css`
|
|
17135
17459
|
color: rgb(185, 28, 28);
|
|
17136
17460
|
& svg {
|
|
17137
17461
|
color: var(--brand-primary-2);
|
|
@@ -17139,35 +17463,35 @@ var ProgressListItem = ({
|
|
|
17139
17463
|
`;
|
|
17140
17464
|
}
|
|
17141
17465
|
const colorPerStatus = {
|
|
17142
|
-
completed:
|
|
17466
|
+
completed: import_react107.css`
|
|
17143
17467
|
opacity: 0.75;
|
|
17144
17468
|
`,
|
|
17145
|
-
inProgress:
|
|
17469
|
+
inProgress: import_react107.css`
|
|
17146
17470
|
-webkit-text-stroke-width: thin;
|
|
17147
17471
|
`,
|
|
17148
|
-
queued:
|
|
17472
|
+
queued: import_react107.css`
|
|
17149
17473
|
opacity: 0.5;
|
|
17150
17474
|
`
|
|
17151
17475
|
};
|
|
17152
17476
|
return colorPerStatus[status];
|
|
17153
17477
|
}, [status, error, errorLevel]);
|
|
17154
|
-
return /* @__PURE__ */ (0,
|
|
17155
|
-
/* @__PURE__ */ (0,
|
|
17156
|
-
/* @__PURE__ */ (0,
|
|
17478
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
17479
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Icon2, { size: 20 }) }) }),
|
|
17480
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { children: [
|
|
17157
17481
|
children,
|
|
17158
|
-
/* @__PURE__ */ (0,
|
|
17482
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
17159
17483
|
] })
|
|
17160
17484
|
] });
|
|
17161
17485
|
};
|
|
17162
17486
|
|
|
17163
17487
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
17164
|
-
var
|
|
17165
|
-
var
|
|
17488
|
+
var import_react110 = require("@emotion/react");
|
|
17489
|
+
var import_react111 = require("react");
|
|
17166
17490
|
var import_cg19 = require("react-icons/cg");
|
|
17167
17491
|
|
|
17168
17492
|
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
17169
|
-
var
|
|
17170
|
-
var segmentedControlStyles =
|
|
17493
|
+
var import_react109 = require("@emotion/react");
|
|
17494
|
+
var segmentedControlStyles = import_react109.css`
|
|
17171
17495
|
--segmented-control-rounded-value: var(--rounded-base);
|
|
17172
17496
|
--segmented-control-border-width: 1px;
|
|
17173
17497
|
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
@@ -17186,14 +17510,14 @@ var segmentedControlStyles = import_react106.css`
|
|
|
17186
17510
|
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
17187
17511
|
font-size: var(--fs-xs);
|
|
17188
17512
|
`;
|
|
17189
|
-
var segmentedControlVerticalStyles =
|
|
17513
|
+
var segmentedControlVerticalStyles = import_react109.css`
|
|
17190
17514
|
flex-direction: column;
|
|
17191
17515
|
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
17192
17516
|
var(--segmented-control-rounded-value) 0 0;
|
|
17193
17517
|
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
17194
17518
|
var(--segmented-control-rounded-value);
|
|
17195
17519
|
`;
|
|
17196
|
-
var segmentedControlItemStyles =
|
|
17520
|
+
var segmentedControlItemStyles = import_react109.css`
|
|
17197
17521
|
&:first-of-type label {
|
|
17198
17522
|
border-radius: var(--segmented-control-first-border-radius);
|
|
17199
17523
|
}
|
|
@@ -17201,10 +17525,10 @@ var segmentedControlItemStyles = import_react106.css`
|
|
|
17201
17525
|
border-radius: var(--segmented-control-last-border-radius);
|
|
17202
17526
|
}
|
|
17203
17527
|
`;
|
|
17204
|
-
var segmentedControlInputStyles =
|
|
17528
|
+
var segmentedControlInputStyles = import_react109.css`
|
|
17205
17529
|
${accessibleHidden}
|
|
17206
17530
|
`;
|
|
17207
|
-
var segmentedControlLabelStyles =
|
|
17531
|
+
var segmentedControlLabelStyles = import_react109.css`
|
|
17208
17532
|
position: relative;
|
|
17209
17533
|
display: flex;
|
|
17210
17534
|
align-items: center;
|
|
@@ -17241,23 +17565,23 @@ var segmentedControlLabelStyles = import_react106.css`
|
|
|
17241
17565
|
background-color: var(--gray-400);
|
|
17242
17566
|
}
|
|
17243
17567
|
`;
|
|
17244
|
-
var segmentedControlLabelIconOnlyStyles =
|
|
17568
|
+
var segmentedControlLabelIconOnlyStyles = import_react109.css`
|
|
17245
17569
|
padding-inline: 0.5em;
|
|
17246
17570
|
`;
|
|
17247
|
-
var segmentedControlLabelCheckStyles =
|
|
17571
|
+
var segmentedControlLabelCheckStyles = import_react109.css`
|
|
17248
17572
|
opacity: 0.5;
|
|
17249
17573
|
`;
|
|
17250
|
-
var segmentedControlLabelContentStyles =
|
|
17574
|
+
var segmentedControlLabelContentStyles = import_react109.css`
|
|
17251
17575
|
display: flex;
|
|
17252
17576
|
align-items: center;
|
|
17253
17577
|
justify-content: center;
|
|
17254
17578
|
gap: var(--spacing-sm);
|
|
17255
17579
|
height: 100%;
|
|
17256
17580
|
`;
|
|
17257
|
-
var segmentedControlLabelTextStyles =
|
|
17581
|
+
var segmentedControlLabelTextStyles = import_react109.css``;
|
|
17258
17582
|
|
|
17259
17583
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
17260
|
-
var
|
|
17584
|
+
var import_jsx_runtime98 = require("@emotion/react/jsx-runtime");
|
|
17261
17585
|
var SegmentedControl = ({
|
|
17262
17586
|
name,
|
|
17263
17587
|
options,
|
|
@@ -17269,7 +17593,7 @@ var SegmentedControl = ({
|
|
|
17269
17593
|
size = "md",
|
|
17270
17594
|
...props
|
|
17271
17595
|
}) => {
|
|
17272
|
-
const onOptionChange = (0,
|
|
17596
|
+
const onOptionChange = (0, import_react111.useCallback)(
|
|
17273
17597
|
(event) => {
|
|
17274
17598
|
if (event.target.checked) {
|
|
17275
17599
|
onChange == null ? void 0 : onChange(options[parseInt(event.target.value)].value);
|
|
@@ -17277,18 +17601,18 @@ var SegmentedControl = ({
|
|
|
17277
17601
|
},
|
|
17278
17602
|
[options, onChange]
|
|
17279
17603
|
);
|
|
17280
|
-
const sizeStyles = (0,
|
|
17604
|
+
const sizeStyles = (0, import_react111.useMemo)(() => {
|
|
17281
17605
|
const map = {
|
|
17282
|
-
sm: (0,
|
|
17283
|
-
md: (0,
|
|
17284
|
-
lg: (0,
|
|
17606
|
+
sm: (0, import_react110.css)({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
17607
|
+
md: (0, import_react110.css)({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
17608
|
+
lg: (0, import_react110.css)({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
|
|
17285
17609
|
};
|
|
17286
17610
|
return map[size];
|
|
17287
17611
|
}, [size]);
|
|
17288
|
-
const isIconOnly = (0,
|
|
17612
|
+
const isIconOnly = (0, import_react111.useMemo)(() => {
|
|
17289
17613
|
return options.every((option) => option.icon && !option.label);
|
|
17290
17614
|
}, [options]);
|
|
17291
|
-
return /* @__PURE__ */ (0,
|
|
17615
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
17292
17616
|
"div",
|
|
17293
17617
|
{
|
|
17294
17618
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
@@ -17296,11 +17620,11 @@ var SegmentedControl = ({
|
|
|
17296
17620
|
children: options.map((option, index) => {
|
|
17297
17621
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
17298
17622
|
const isDisabled = disabled || option.disabled;
|
|
17299
|
-
return /* @__PURE__ */ (0,
|
|
17623
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
17300
17624
|
Tooltip,
|
|
17301
17625
|
{
|
|
17302
17626
|
title: isDisabled || !option.tooltip ? "" : option.tooltip,
|
|
17303
|
-
children: /* @__PURE__ */ (0,
|
|
17627
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { css: segmentedControlItemStyles, "data-test-id": "container-segmented-control", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
|
|
17304
17628
|
"label",
|
|
17305
17629
|
{
|
|
17306
17630
|
css: [
|
|
@@ -17309,7 +17633,7 @@ var SegmentedControl = ({
|
|
|
17309
17633
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
17310
17634
|
],
|
|
17311
17635
|
children: [
|
|
17312
|
-
/* @__PURE__ */ (0,
|
|
17636
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
17313
17637
|
"input",
|
|
17314
17638
|
{
|
|
17315
17639
|
css: segmentedControlInputStyles,
|
|
@@ -17321,10 +17645,10 @@ var SegmentedControl = ({
|
|
|
17321
17645
|
disabled: isDisabled
|
|
17322
17646
|
}
|
|
17323
17647
|
),
|
|
17324
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */ (0,
|
|
17325
|
-
/* @__PURE__ */ (0,
|
|
17326
|
-
!option.icon ? null : /* @__PURE__ */ (0,
|
|
17327
|
-
!text ? null : /* @__PURE__ */ (0,
|
|
17648
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_cg19.CgCheck, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
17649
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("span", { css: segmentedControlLabelContentStyles, children: [
|
|
17650
|
+
!option.icon ? null : /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(option.icon, { size: "1.5em" }),
|
|
17651
|
+
!text ? null : /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
17328
17652
|
] })
|
|
17329
17653
|
]
|
|
17330
17654
|
}
|
|
@@ -17338,18 +17662,18 @@ var SegmentedControl = ({
|
|
|
17338
17662
|
};
|
|
17339
17663
|
|
|
17340
17664
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
17341
|
-
var
|
|
17342
|
-
var lightFadingOut =
|
|
17665
|
+
var import_react112 = require("@emotion/react");
|
|
17666
|
+
var lightFadingOut = import_react112.keyframes`
|
|
17343
17667
|
from { opacity: 0.1; }
|
|
17344
17668
|
to { opacity: 0.025; }
|
|
17345
17669
|
`;
|
|
17346
|
-
var skeletonStyles =
|
|
17670
|
+
var skeletonStyles = import_react112.css`
|
|
17347
17671
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
17348
17672
|
background-color: var(--gray-900);
|
|
17349
17673
|
`;
|
|
17350
17674
|
|
|
17351
17675
|
// src/components/Skeleton/Skeleton.tsx
|
|
17352
|
-
var
|
|
17676
|
+
var import_jsx_runtime99 = require("@emotion/react/jsx-runtime");
|
|
17353
17677
|
var Skeleton = ({
|
|
17354
17678
|
width = "100%",
|
|
17355
17679
|
height = "1.25rem",
|
|
@@ -17357,7 +17681,7 @@ var Skeleton = ({
|
|
|
17357
17681
|
circle = false,
|
|
17358
17682
|
children,
|
|
17359
17683
|
...otherProps
|
|
17360
|
-
}) => /* @__PURE__ */ (0,
|
|
17684
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
17361
17685
|
"div",
|
|
17362
17686
|
{
|
|
17363
17687
|
css: [
|
|
@@ -17377,11 +17701,11 @@ var Skeleton = ({
|
|
|
17377
17701
|
);
|
|
17378
17702
|
|
|
17379
17703
|
// src/components/Switch/Switch.tsx
|
|
17380
|
-
var
|
|
17704
|
+
var React20 = __toESM(require("react"));
|
|
17381
17705
|
|
|
17382
17706
|
// src/components/Switch/Switch.styles.ts
|
|
17383
|
-
var
|
|
17384
|
-
var SwitchInputContainer =
|
|
17707
|
+
var import_react113 = require("@emotion/react");
|
|
17708
|
+
var SwitchInputContainer = import_react113.css`
|
|
17385
17709
|
cursor: pointer;
|
|
17386
17710
|
display: inline-block;
|
|
17387
17711
|
position: relative;
|
|
@@ -17390,7 +17714,7 @@ var SwitchInputContainer = import_react110.css`
|
|
|
17390
17714
|
vertical-align: middle;
|
|
17391
17715
|
user-select: none;
|
|
17392
17716
|
`;
|
|
17393
|
-
var SwitchInput =
|
|
17717
|
+
var SwitchInput = import_react113.css`
|
|
17394
17718
|
appearance: none;
|
|
17395
17719
|
border-radius: var(--rounded-full);
|
|
17396
17720
|
background-color: var(--white);
|
|
@@ -17428,7 +17752,7 @@ var SwitchInput = import_react110.css`
|
|
|
17428
17752
|
cursor: not-allowed;
|
|
17429
17753
|
}
|
|
17430
17754
|
`;
|
|
17431
|
-
var SwitchInputDisabled =
|
|
17755
|
+
var SwitchInputDisabled = import_react113.css`
|
|
17432
17756
|
opacity: var(--opacity-50);
|
|
17433
17757
|
cursor: not-allowed;
|
|
17434
17758
|
|
|
@@ -17436,7 +17760,7 @@ var SwitchInputDisabled = import_react110.css`
|
|
|
17436
17760
|
cursor: not-allowed;
|
|
17437
17761
|
}
|
|
17438
17762
|
`;
|
|
17439
|
-
var SwitchInputLabel =
|
|
17763
|
+
var SwitchInputLabel = import_react113.css`
|
|
17440
17764
|
align-items: center;
|
|
17441
17765
|
color: var(--brand-secondary-1);
|
|
17442
17766
|
display: inline-flex;
|
|
@@ -17458,103 +17782,103 @@ var SwitchInputLabel = import_react110.css`
|
|
|
17458
17782
|
top: 0;
|
|
17459
17783
|
}
|
|
17460
17784
|
`;
|
|
17461
|
-
var SwitchText =
|
|
17785
|
+
var SwitchText = import_react113.css`
|
|
17462
17786
|
color: var(--gray-500);
|
|
17463
17787
|
font-size: var(--fs-sm);
|
|
17464
17788
|
padding-inline: var(--spacing-2xl) 0;
|
|
17465
17789
|
`;
|
|
17466
17790
|
|
|
17467
17791
|
// src/components/Switch/Switch.tsx
|
|
17468
|
-
var
|
|
17469
|
-
var Switch =
|
|
17792
|
+
var import_jsx_runtime100 = require("@emotion/react/jsx-runtime");
|
|
17793
|
+
var Switch = React20.forwardRef(
|
|
17470
17794
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
17471
17795
|
let additionalText = infoText;
|
|
17472
17796
|
if (infoText && toggleText) {
|
|
17473
17797
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
17474
17798
|
}
|
|
17475
|
-
return /* @__PURE__ */ (0,
|
|
17476
|
-
/* @__PURE__ */ (0,
|
|
17477
|
-
/* @__PURE__ */ (0,
|
|
17478
|
-
/* @__PURE__ */ (0,
|
|
17799
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_jsx_runtime100.Fragment, { children: [
|
|
17800
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
17801
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
17802
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { css: SwitchInputLabel, children: label })
|
|
17479
17803
|
] }),
|
|
17480
|
-
additionalText ? /* @__PURE__ */ (0,
|
|
17804
|
+
additionalText ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("p", { css: SwitchText, children: additionalText }) : null,
|
|
17481
17805
|
children
|
|
17482
17806
|
] });
|
|
17483
17807
|
}
|
|
17484
17808
|
);
|
|
17485
17809
|
|
|
17486
17810
|
// src/components/Table/Table.tsx
|
|
17487
|
-
var
|
|
17811
|
+
var React21 = __toESM(require("react"));
|
|
17488
17812
|
|
|
17489
17813
|
// src/components/Table/Table.styles.ts
|
|
17490
|
-
var
|
|
17491
|
-
var table =
|
|
17814
|
+
var import_react114 = require("@emotion/react");
|
|
17815
|
+
var table = import_react114.css`
|
|
17492
17816
|
border-bottom: 1px solid var(--gray-400);
|
|
17493
17817
|
border-collapse: collapse;
|
|
17494
17818
|
min-width: 100%;
|
|
17495
17819
|
table-layout: auto;
|
|
17496
17820
|
`;
|
|
17497
|
-
var tableHead =
|
|
17821
|
+
var tableHead = import_react114.css`
|
|
17498
17822
|
background: var(--gray-100);
|
|
17499
17823
|
color: var(--brand-secondary-1);
|
|
17500
17824
|
text-align: left;
|
|
17501
17825
|
`;
|
|
17502
|
-
var tableRow =
|
|
17826
|
+
var tableRow = import_react114.css`
|
|
17503
17827
|
border-bottom: 1px solid var(--gray-200);
|
|
17504
17828
|
`;
|
|
17505
|
-
var tableCellHead =
|
|
17829
|
+
var tableCellHead = import_react114.css`
|
|
17506
17830
|
font-size: var(--fs-sm);
|
|
17507
17831
|
padding: var(--spacing-base) var(--spacing-md);
|
|
17508
17832
|
text-transform: uppercase;
|
|
17509
17833
|
font-weight: var(--fw-bold);
|
|
17510
17834
|
`;
|
|
17511
|
-
var tableCellData =
|
|
17835
|
+
var tableCellData = import_react114.css`
|
|
17512
17836
|
padding: var(--spacing-base) var(--spacing-md);
|
|
17513
17837
|
`;
|
|
17514
17838
|
|
|
17515
17839
|
// src/components/Table/Table.tsx
|
|
17516
|
-
var
|
|
17517
|
-
var Table =
|
|
17518
|
-
return /* @__PURE__ */ (0,
|
|
17840
|
+
var import_jsx_runtime101 = require("@emotion/react/jsx-runtime");
|
|
17841
|
+
var Table = React21.forwardRef(({ children, ...otherProps }, ref) => {
|
|
17842
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("table", { ref, css: table, ...otherProps, children });
|
|
17519
17843
|
});
|
|
17520
|
-
var TableHead =
|
|
17844
|
+
var TableHead = React21.forwardRef(
|
|
17521
17845
|
({ children, ...otherProps }, ref) => {
|
|
17522
|
-
return /* @__PURE__ */ (0,
|
|
17846
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
|
|
17523
17847
|
}
|
|
17524
17848
|
);
|
|
17525
|
-
var TableBody =
|
|
17849
|
+
var TableBody = React21.forwardRef(
|
|
17526
17850
|
({ children, ...otherProps }, ref) => {
|
|
17527
|
-
return /* @__PURE__ */ (0,
|
|
17851
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("tbody", { ref, ...otherProps, children });
|
|
17528
17852
|
}
|
|
17529
17853
|
);
|
|
17530
|
-
var TableFoot =
|
|
17854
|
+
var TableFoot = React21.forwardRef(
|
|
17531
17855
|
({ children, ...otherProps }, ref) => {
|
|
17532
|
-
return /* @__PURE__ */ (0,
|
|
17856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("tfoot", { ref, ...otherProps, children });
|
|
17533
17857
|
}
|
|
17534
17858
|
);
|
|
17535
|
-
var TableRow =
|
|
17859
|
+
var TableRow = React21.forwardRef(
|
|
17536
17860
|
({ children, ...otherProps }, ref) => {
|
|
17537
|
-
return /* @__PURE__ */ (0,
|
|
17861
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
|
|
17538
17862
|
}
|
|
17539
17863
|
);
|
|
17540
|
-
var TableCellHead =
|
|
17864
|
+
var TableCellHead = React21.forwardRef(
|
|
17541
17865
|
({ children, ...otherProps }, ref) => {
|
|
17542
|
-
return /* @__PURE__ */ (0,
|
|
17866
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
17543
17867
|
}
|
|
17544
17868
|
);
|
|
17545
|
-
var TableCellData =
|
|
17869
|
+
var TableCellData = React21.forwardRef(
|
|
17546
17870
|
({ children, ...otherProps }, ref) => {
|
|
17547
|
-
return /* @__PURE__ */ (0,
|
|
17871
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("td", { ref, css: tableCellData, ...otherProps, children });
|
|
17548
17872
|
}
|
|
17549
17873
|
);
|
|
17550
17874
|
|
|
17551
17875
|
// src/components/Tabs/Tabs.tsx
|
|
17552
|
-
var
|
|
17876
|
+
var import_react116 = require("react");
|
|
17553
17877
|
var import_Tab = require("reakit/Tab");
|
|
17554
17878
|
|
|
17555
17879
|
// src/components/Tabs/Tabs.styles.ts
|
|
17556
|
-
var
|
|
17557
|
-
var tabButtonStyles =
|
|
17880
|
+
var import_react115 = require("@emotion/react");
|
|
17881
|
+
var tabButtonStyles = import_react115.css`
|
|
17558
17882
|
align-items: center;
|
|
17559
17883
|
border: 0;
|
|
17560
17884
|
height: 2.5rem;
|
|
@@ -17571,30 +17895,30 @@ var tabButtonStyles = import_react112.css`
|
|
|
17571
17895
|
box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
|
|
17572
17896
|
}
|
|
17573
17897
|
`;
|
|
17574
|
-
var tabButtonGroupStyles =
|
|
17898
|
+
var tabButtonGroupStyles = import_react115.css`
|
|
17575
17899
|
display: flex;
|
|
17576
17900
|
gap: var(--spacing-base);
|
|
17577
17901
|
border-bottom: 1px solid var(--gray-300);
|
|
17578
17902
|
`;
|
|
17579
17903
|
|
|
17580
17904
|
// src/components/Tabs/Tabs.tsx
|
|
17581
|
-
var
|
|
17582
|
-
var CurrentTabContext = (0,
|
|
17905
|
+
var import_jsx_runtime102 = require("@emotion/react/jsx-runtime");
|
|
17906
|
+
var CurrentTabContext = (0, import_react116.createContext)(null);
|
|
17583
17907
|
var useCurrentTab = () => {
|
|
17584
|
-
const context = (0,
|
|
17908
|
+
const context = (0, import_react116.useContext)(CurrentTabContext);
|
|
17585
17909
|
if (!context) {
|
|
17586
17910
|
throw new Error("This component can only be used inside <Tabs>");
|
|
17587
17911
|
}
|
|
17588
17912
|
return context;
|
|
17589
17913
|
};
|
|
17590
17914
|
var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...props }) => {
|
|
17591
|
-
const selected = (0,
|
|
17915
|
+
const selected = (0, import_react116.useMemo)(() => {
|
|
17592
17916
|
if (selectedId)
|
|
17593
17917
|
return selectedId;
|
|
17594
17918
|
return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
|
|
17595
17919
|
}, [selectedId, useHashForState]);
|
|
17596
17920
|
const tab = (0, import_Tab.useTabState)({ ...props, selectedId: selected });
|
|
17597
|
-
(0,
|
|
17921
|
+
(0, import_react116.useEffect)(() => {
|
|
17598
17922
|
var _a;
|
|
17599
17923
|
const selectedValueWithoutNull = (_a = tab.selectedId) != null ? _a : void 0;
|
|
17600
17924
|
onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
|
|
@@ -17602,29 +17926,29 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
17602
17926
|
window.location.hash = selectedValueWithoutNull != null ? selectedValueWithoutNull : "";
|
|
17603
17927
|
}
|
|
17604
17928
|
}, [tab.selectedId, onSelectedIdChange, useHashForState]);
|
|
17605
|
-
(0,
|
|
17929
|
+
(0, import_react116.useEffect)(() => {
|
|
17606
17930
|
if (selected && selected !== tab.selectedId) {
|
|
17607
17931
|
tab.setSelectedId(selected);
|
|
17608
17932
|
}
|
|
17609
17933
|
}, [selected]);
|
|
17610
|
-
return /* @__PURE__ */ (0,
|
|
17934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(CurrentTabContext.Provider, { value: tab, children });
|
|
17611
17935
|
};
|
|
17612
17936
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
17613
17937
|
const currentTab = useCurrentTab();
|
|
17614
|
-
return /* @__PURE__ */ (0,
|
|
17938
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_Tab.TabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
17615
17939
|
};
|
|
17616
17940
|
var TabButton = ({ children, id, ...props }) => {
|
|
17617
17941
|
const currentTab = useCurrentTab();
|
|
17618
|
-
return /* @__PURE__ */ (0,
|
|
17942
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_Tab.Tab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
17619
17943
|
};
|
|
17620
17944
|
var TabContent = ({ children, ...props }) => {
|
|
17621
17945
|
const currentTab = useCurrentTab();
|
|
17622
|
-
return /* @__PURE__ */ (0,
|
|
17946
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_Tab.TabPanel, { ...props, ...currentTab, children });
|
|
17623
17947
|
};
|
|
17624
17948
|
|
|
17625
17949
|
// src/components/Validation/StatusBullet.styles.ts
|
|
17626
|
-
var
|
|
17627
|
-
var StatusBulletContainer =
|
|
17950
|
+
var import_react117 = require("@emotion/react");
|
|
17951
|
+
var StatusBulletContainer = import_react117.css`
|
|
17628
17952
|
align-items: center;
|
|
17629
17953
|
align-self: center;
|
|
17630
17954
|
color: var(--gray-500);
|
|
@@ -17641,51 +17965,51 @@ var StatusBulletContainer = import_react114.css`
|
|
|
17641
17965
|
display: block;
|
|
17642
17966
|
}
|
|
17643
17967
|
`;
|
|
17644
|
-
var StatusBulletBase =
|
|
17968
|
+
var StatusBulletBase = import_react117.css`
|
|
17645
17969
|
font-size: var(--fs-sm);
|
|
17646
17970
|
&:before {
|
|
17647
17971
|
width: var(--fs-xs);
|
|
17648
17972
|
height: var(--fs-xs);
|
|
17649
17973
|
}
|
|
17650
17974
|
`;
|
|
17651
|
-
var StatusBulletSmall =
|
|
17975
|
+
var StatusBulletSmall = import_react117.css`
|
|
17652
17976
|
font-size: var(--fs-xs);
|
|
17653
17977
|
&:before {
|
|
17654
17978
|
width: var(--fs-xxs);
|
|
17655
17979
|
height: var(--fs-xxs);
|
|
17656
17980
|
}
|
|
17657
17981
|
`;
|
|
17658
|
-
var StatusDraft =
|
|
17982
|
+
var StatusDraft = import_react117.css`
|
|
17659
17983
|
&:before {
|
|
17660
17984
|
background: var(--white);
|
|
17661
17985
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
17662
17986
|
}
|
|
17663
17987
|
`;
|
|
17664
|
-
var StatusModified =
|
|
17988
|
+
var StatusModified = import_react117.css`
|
|
17665
17989
|
&:before {
|
|
17666
17990
|
background: linear-gradient(to right, var(--white) 50%, var(--primary-action-default) 50% 100%);
|
|
17667
17991
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
17668
17992
|
}
|
|
17669
17993
|
`;
|
|
17670
|
-
var StatusError =
|
|
17994
|
+
var StatusError = import_react117.css`
|
|
17671
17995
|
color: var(--error);
|
|
17672
17996
|
&:before {
|
|
17673
17997
|
background: linear-gradient(120deg, var(--error) 40%, var(--white) 50%, var(--error) 60%);
|
|
17674
17998
|
}
|
|
17675
17999
|
`;
|
|
17676
|
-
var StatusPublished =
|
|
18000
|
+
var StatusPublished = import_react117.css`
|
|
17677
18001
|
&:before {
|
|
17678
18002
|
background: var(--primary-action-default);
|
|
17679
18003
|
}
|
|
17680
18004
|
`;
|
|
17681
|
-
var StatusOrphan =
|
|
18005
|
+
var StatusOrphan = import_react117.css`
|
|
17682
18006
|
&:before {
|
|
17683
18007
|
background: var(--brand-secondary-5);
|
|
17684
18008
|
}
|
|
17685
18009
|
`;
|
|
17686
18010
|
|
|
17687
18011
|
// src/components/Validation/StatusBullet.tsx
|
|
17688
|
-
var
|
|
18012
|
+
var import_jsx_runtime103 = require("@emotion/react/jsx-runtime");
|
|
17689
18013
|
var StatusBullet = ({
|
|
17690
18014
|
status,
|
|
17691
18015
|
hideText = false,
|
|
@@ -17699,10 +18023,11 @@ var StatusBullet = ({
|
|
|
17699
18023
|
Unsaved: StatusDraft,
|
|
17700
18024
|
Orphan: StatusOrphan,
|
|
17701
18025
|
Published: StatusPublished,
|
|
17702
|
-
Draft: StatusDraft
|
|
18026
|
+
Draft: StatusDraft,
|
|
18027
|
+
Previous: StatusDraft
|
|
17703
18028
|
};
|
|
17704
18029
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
17705
|
-
return /* @__PURE__ */ (0,
|
|
18030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
17706
18031
|
"span",
|
|
17707
18032
|
{
|
|
17708
18033
|
role: "status",
|
|
@@ -17831,7 +18156,9 @@ var StatusBullet = ({
|
|
|
17831
18156
|
Tabs,
|
|
17832
18157
|
Textarea,
|
|
17833
18158
|
Theme,
|
|
18159
|
+
Tile,
|
|
17834
18160
|
TileContainer,
|
|
18161
|
+
TileText,
|
|
17835
18162
|
Tooltip,
|
|
17836
18163
|
TwoColumnLayout,
|
|
17837
18164
|
UniformBadge,
|
|
@@ -17873,6 +18200,7 @@ var StatusBullet = ({
|
|
|
17873
18200
|
inputError,
|
|
17874
18201
|
inputSelect,
|
|
17875
18202
|
isMacLike,
|
|
18203
|
+
jsonIcon,
|
|
17876
18204
|
labelText,
|
|
17877
18205
|
loaderAnimationData,
|
|
17878
18206
|
macifyShortcut,
|