@uniformdev/design-system 19.55.2-alpha.39 → 19.55.2-alpha.45
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 +442 -354
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +372 -281
- package/package.json +8 -7
package/dist/esm/index.js
CHANGED
|
@@ -1887,9 +1887,9 @@ var AddListButtonBtnSmall = css9`
|
|
|
1887
1887
|
font-weight: var(--fw-regular);
|
|
1888
1888
|
margin-block: var(--spacing-md) 0;
|
|
1889
1889
|
`;
|
|
1890
|
-
var AddListButtonIconMathPlus = (
|
|
1890
|
+
var AddListButtonIconMathPlus = (disabled2, theme) => css9`
|
|
1891
1891
|
box-sizing: border-box;
|
|
1892
|
-
background: ${
|
|
1892
|
+
background: ${disabled2 ? "var(--gray-300)" : theme};
|
|
1893
1893
|
color: var(--white);
|
|
1894
1894
|
padding: calc(var(--spacing-xs) - 0.15rem);
|
|
1895
1895
|
`;
|
|
@@ -1903,7 +1903,7 @@ import { jsx as jsx8, jsxs as jsxs3 } from "@emotion/react/jsx-runtime";
|
|
|
1903
1903
|
var AddListButton = ({
|
|
1904
1904
|
buttonText = "Add Item",
|
|
1905
1905
|
onButtonClick,
|
|
1906
|
-
disabled,
|
|
1906
|
+
disabled: disabled2,
|
|
1907
1907
|
icon = "math-plus",
|
|
1908
1908
|
variant = "regular",
|
|
1909
1909
|
theme = "var(--primary-action-default)",
|
|
@@ -1925,7 +1925,7 @@ var AddListButton = ({
|
|
|
1925
1925
|
css: [variantStylesMap[variant], AddListButtonTheme(theme)],
|
|
1926
1926
|
onClick: onButtonClick,
|
|
1927
1927
|
title: buttonText,
|
|
1928
|
-
disabled,
|
|
1928
|
+
disabled: disabled2,
|
|
1929
1929
|
...buttonProps,
|
|
1930
1930
|
children: [
|
|
1931
1931
|
icon === "math-plus" ? /* @__PURE__ */ jsx8(
|
|
@@ -1934,7 +1934,7 @@ var AddListButton = ({
|
|
|
1934
1934
|
icon: mapIcon[icon],
|
|
1935
1935
|
iconColor: "currentColor",
|
|
1936
1936
|
size: "1.25em",
|
|
1937
|
-
css: [AddListButtonIcon, AddListButtonIconMathPlus(
|
|
1937
|
+
css: [AddListButtonIcon, AddListButtonIconMathPlus(disabled2, theme)]
|
|
1938
1938
|
}
|
|
1939
1939
|
) : /* @__PURE__ */ jsx8(Icon, { icon: mapIcon[icon], iconColor: "currentColor", size: "1.25em", css: AddListButtonIcon }),
|
|
1940
1940
|
buttonText
|
|
@@ -11743,7 +11743,7 @@ import * as React9 from "react";
|
|
|
11743
11743
|
import { MenuItem as BaseMenuItem } from "reakit";
|
|
11744
11744
|
import { jsx as jsx27, jsxs as jsxs16 } from "@emotion/react/jsx-runtime";
|
|
11745
11745
|
var MenuItem = React9.forwardRef(
|
|
11746
|
-
({ children, className, hideMenuOnClick = true, icon, textColor = "base", active, ...props }, ref) => {
|
|
11746
|
+
({ children, className, hideMenuOnClick = true, icon, textColor = "base", active: active2, ...props }, ref) => {
|
|
11747
11747
|
const menuState = useMenuContext();
|
|
11748
11748
|
const resolveProps = (originalProps) => {
|
|
11749
11749
|
const resolvedProps2 = { ...originalProps };
|
|
@@ -11767,7 +11767,7 @@ var MenuItem = React9.forwardRef(
|
|
|
11767
11767
|
"data-testid": "button-menu",
|
|
11768
11768
|
...menuState,
|
|
11769
11769
|
...resolvedProps,
|
|
11770
|
-
css: [menuItem(textColor,
|
|
11770
|
+
css: [menuItem(textColor, active2), typeof className === "object" ? className : void 0],
|
|
11771
11771
|
className: typeof className === "string" ? className : void 0,
|
|
11772
11772
|
children: icon ? renderWithIcon(resolvedChildren, icon) : resolvedChildren
|
|
11773
11773
|
}
|
|
@@ -11946,7 +11946,7 @@ var ButtonWithMenu = ({
|
|
|
11946
11946
|
buttonType = "secondary",
|
|
11947
11947
|
buttonText,
|
|
11948
11948
|
icon,
|
|
11949
|
-
disabled,
|
|
11949
|
+
disabled: disabled2,
|
|
11950
11950
|
children,
|
|
11951
11951
|
placement,
|
|
11952
11952
|
size = "lg",
|
|
@@ -11982,7 +11982,7 @@ var ButtonWithMenu = ({
|
|
|
11982
11982
|
css: [
|
|
11983
11983
|
sizes2[size],
|
|
11984
11984
|
ButtonWithMenuContainer,
|
|
11985
|
-
|
|
11985
|
+
disabled2 ? buttonDisabledTheme[buttonType] : buttonTheme[buttonType]
|
|
11986
11986
|
],
|
|
11987
11987
|
"data-testid": "multioptions-button",
|
|
11988
11988
|
children: onButtonClick ? /* @__PURE__ */ jsxs17(Fragment6, { children: [
|
|
@@ -11991,7 +11991,7 @@ var ButtonWithMenu = ({
|
|
|
11991
11991
|
{
|
|
11992
11992
|
type: "button",
|
|
11993
11993
|
css: ButtonWithMenuBtn,
|
|
11994
|
-
disabled,
|
|
11994
|
+
disabled: disabled2,
|
|
11995
11995
|
onClick: onButtonClick,
|
|
11996
11996
|
"data-testid": "multioptions-button-main",
|
|
11997
11997
|
...buttonProps,
|
|
@@ -12001,8 +12001,8 @@ var ButtonWithMenu = ({
|
|
|
12001
12001
|
]
|
|
12002
12002
|
}
|
|
12003
12003
|
),
|
|
12004
|
-
|
|
12005
|
-
] }) : /* @__PURE__ */ jsx28(Fragment6, { children:
|
|
12004
|
+
disabled2 ? clickableButton : /* @__PURE__ */ jsx28(Menu, { menuLabel: "buttonMenu", placement, menuTrigger: clickableButton, children })
|
|
12005
|
+
] }) : /* @__PURE__ */ jsx28(Fragment6, { children: disabled2 ? dropdownButton : /* @__PURE__ */ jsx28(Menu, { menuLabel: "buttonMenu", placement, menuTrigger: dropdownButton, children }) })
|
|
12006
12006
|
}
|
|
12007
12007
|
);
|
|
12008
12008
|
};
|
|
@@ -12362,7 +12362,7 @@ var Card = ({
|
|
|
12362
12362
|
menuItems,
|
|
12363
12363
|
children,
|
|
12364
12364
|
titleWithMarginBottom = true,
|
|
12365
|
-
disabled,
|
|
12365
|
+
disabled: disabled2,
|
|
12366
12366
|
tag: Tag = "div",
|
|
12367
12367
|
menuButtonTestId,
|
|
12368
12368
|
...props
|
|
@@ -12378,7 +12378,7 @@ var Card = ({
|
|
|
12378
12378
|
{
|
|
12379
12379
|
"aria-label": "More options",
|
|
12380
12380
|
type: "button",
|
|
12381
|
-
disabled,
|
|
12381
|
+
disabled: disabled2,
|
|
12382
12382
|
css: CardMenu,
|
|
12383
12383
|
"data-testid": menuButtonTestId != null ? menuButtonTestId : "list-card-menu",
|
|
12384
12384
|
children: /* @__PURE__ */ jsx31(Icon, { icon: CgMoreAlt, iconColor: "currentColor", size: 32 })
|
|
@@ -13828,8 +13828,8 @@ var fieldsetBody = css48`
|
|
|
13828
13828
|
// src/components/Input/Fieldset.tsx
|
|
13829
13829
|
import { jsx as jsx51, jsxs as jsxs31 } from "@emotion/react/jsx-runtime";
|
|
13830
13830
|
var Fieldset = React15.forwardRef(
|
|
13831
|
-
({ legend, disabled, children, invert, ...props }, ref) => {
|
|
13832
|
-
return /* @__PURE__ */ jsxs31("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled, ...props, children: [
|
|
13831
|
+
({ legend, disabled: disabled2, children, invert, ...props }, ref) => {
|
|
13832
|
+
return /* @__PURE__ */ jsxs31("fieldset", { css: fieldsetContainer(Boolean(invert)), ref, disabled: disabled2, ...props, children: [
|
|
13833
13833
|
legend,
|
|
13834
13834
|
/* @__PURE__ */ jsx51("div", { css: fieldsetBody, children })
|
|
13835
13835
|
] });
|
|
@@ -14188,7 +14188,7 @@ var InputInlineSelect = ({
|
|
|
14188
14188
|
options,
|
|
14189
14189
|
value,
|
|
14190
14190
|
onChange,
|
|
14191
|
-
disabled,
|
|
14191
|
+
disabled: disabled2,
|
|
14192
14192
|
...props
|
|
14193
14193
|
}) => {
|
|
14194
14194
|
var _a;
|
|
@@ -14214,14 +14214,14 @@ var InputInlineSelect = ({
|
|
|
14214
14214
|
"aria-expanded": menuVisible,
|
|
14215
14215
|
css: inlineSelectBtn,
|
|
14216
14216
|
onClick: () => {
|
|
14217
|
-
if (!
|
|
14217
|
+
if (!disabled2)
|
|
14218
14218
|
setMenuVisible((prev) => !prev);
|
|
14219
14219
|
},
|
|
14220
|
-
disabled,
|
|
14220
|
+
disabled: disabled2,
|
|
14221
14221
|
...props,
|
|
14222
14222
|
children: [
|
|
14223
14223
|
/* @__PURE__ */ jsx57("span", { children: (_a = selected == null ? void 0 : selected.label) != null ? _a : value }),
|
|
14224
|
-
|
|
14224
|
+
disabled2 ? null : /* @__PURE__ */ jsx57(Icon, { icon: CgChevronDown2, iconColor: "currentColor", size: 24 })
|
|
14225
14225
|
]
|
|
14226
14226
|
}
|
|
14227
14227
|
),
|
|
@@ -14257,7 +14257,7 @@ import { CgSearch } from "@react-icons/all-files/cg/CgSearch";
|
|
|
14257
14257
|
import { jsx as jsx58 } from "@emotion/react/jsx-runtime";
|
|
14258
14258
|
var InputKeywordSearch = ({
|
|
14259
14259
|
onSearchTextChanged,
|
|
14260
|
-
disabled = false,
|
|
14260
|
+
disabled: disabled2 = false,
|
|
14261
14261
|
placeholder = "Keyword search",
|
|
14262
14262
|
inputFieldName = "keywordSearch",
|
|
14263
14263
|
disabledFieldSubmission = false,
|
|
@@ -14286,7 +14286,7 @@ var InputKeywordSearch = ({
|
|
|
14286
14286
|
icon: value ? /* @__PURE__ */ jsx58("button", { css: inputSearchCloseBtn, onClick: onClear, type: "button", children: /* @__PURE__ */ jsx58(Icon, { icon: CgClose4, iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ jsx58(Icon, { icon: CgSearch, iconColor: "gray", size: "1rem" }),
|
|
14287
14287
|
onChange: handleSearchTextChanged,
|
|
14288
14288
|
onKeyPress: preventSubmitOnField,
|
|
14289
|
-
disabled,
|
|
14289
|
+
disabled: disabled2,
|
|
14290
14290
|
"aria-label": placeholder,
|
|
14291
14291
|
css: [
|
|
14292
14292
|
compact ? {
|
|
@@ -14295,6 +14295,7 @@ var InputKeywordSearch = ({
|
|
|
14295
14295
|
} : null,
|
|
14296
14296
|
rounded ? { borderRadius: "var(--rounded-full)" } : null
|
|
14297
14297
|
],
|
|
14298
|
+
"data-testid": "input-search",
|
|
14298
14299
|
...props
|
|
14299
14300
|
}
|
|
14300
14301
|
);
|
|
@@ -14370,7 +14371,7 @@ var InputToggle = React17.forwardRef(
|
|
|
14370
14371
|
({
|
|
14371
14372
|
label,
|
|
14372
14373
|
type,
|
|
14373
|
-
disabled,
|
|
14374
|
+
disabled: disabled2,
|
|
14374
14375
|
checked,
|
|
14375
14376
|
name,
|
|
14376
14377
|
caption,
|
|
@@ -14388,7 +14389,7 @@ var InputToggle = React17.forwardRef(
|
|
|
14388
14389
|
return /* @__PURE__ */ jsxs37(
|
|
14389
14390
|
Label,
|
|
14390
14391
|
{
|
|
14391
|
-
css: [inputToggleLabel,
|
|
14392
|
+
css: [inputToggleLabel, disabled2 ? inputDisabled : void 0],
|
|
14392
14393
|
"data-testid": testId ? testId : "input-toggle",
|
|
14393
14394
|
children: [
|
|
14394
14395
|
/* @__PURE__ */ jsx60(
|
|
@@ -14399,7 +14400,7 @@ var InputToggle = React17.forwardRef(
|
|
|
14399
14400
|
css: toggleInput,
|
|
14400
14401
|
checked,
|
|
14401
14402
|
name,
|
|
14402
|
-
disabled,
|
|
14403
|
+
disabled: disabled2,
|
|
14403
14404
|
...props
|
|
14404
14405
|
}
|
|
14405
14406
|
),
|
|
@@ -15159,8 +15160,8 @@ var Tile = css60`
|
|
|
15159
15160
|
|
|
15160
15161
|
// src/components/Tiles/Tile.tsx
|
|
15161
15162
|
import { jsx as jsx74 } from "@emotion/react/jsx-runtime";
|
|
15162
|
-
var Tile2 = ({ children, disabled, ...props }) => {
|
|
15163
|
-
return /* @__PURE__ */ jsx74("button", { type: "button", css: Tile, disabled, ...props, children });
|
|
15163
|
+
var Tile2 = ({ children, disabled: disabled2, ...props }) => {
|
|
15164
|
+
return /* @__PURE__ */ jsx74("button", { type: "button", css: Tile, disabled: disabled2, ...props, children });
|
|
15164
15165
|
};
|
|
15165
15166
|
|
|
15166
15167
|
// src/components/Tiles/styles/TileContainer.styles.ts
|
|
@@ -15239,6 +15240,7 @@ var IntegrationModalHeaderTitleGroup = css63`
|
|
|
15239
15240
|
align-items: center;
|
|
15240
15241
|
display: flex;
|
|
15241
15242
|
gap: var(--spacing-base);
|
|
15243
|
+
padding: 0 var(--spacing-base);
|
|
15242
15244
|
`;
|
|
15243
15245
|
var IntegrationModalHeaderTitle = css63`
|
|
15244
15246
|
margin-top: 0;
|
|
@@ -15247,6 +15249,12 @@ var IntegrationModalHeaderMenuPlacement = css63`
|
|
|
15247
15249
|
margin-bottom: var(--spacing-base);
|
|
15248
15250
|
`;
|
|
15249
15251
|
var IntegrationModalHeaderContentWrapper = css63`
|
|
15252
|
+
background: var(--white);
|
|
15253
|
+
display: flex;
|
|
15254
|
+
padding: var(--spacing-base);
|
|
15255
|
+
flex-direction: column;
|
|
15256
|
+
gap: var(--spacing-base);
|
|
15257
|
+
height: 100%;
|
|
15250
15258
|
position: relative;
|
|
15251
15259
|
z-index: var(--z-10);
|
|
15252
15260
|
`;
|
|
@@ -15576,7 +15584,7 @@ import { jsx as jsx82, jsxs as jsxs53 } from "@emotion/react/jsx-runtime";
|
|
|
15576
15584
|
var ScrollableListInputItem = ({
|
|
15577
15585
|
label,
|
|
15578
15586
|
icon,
|
|
15579
|
-
active,
|
|
15587
|
+
active: active2,
|
|
15580
15588
|
disableShadow = false,
|
|
15581
15589
|
children,
|
|
15582
15590
|
labelTestId,
|
|
@@ -15588,7 +15596,7 @@ var ScrollableListInputItem = ({
|
|
|
15588
15596
|
css: [
|
|
15589
15597
|
ScrollableListItemContainer,
|
|
15590
15598
|
disableShadow ? void 0 : ScrollableListItemShadow,
|
|
15591
|
-
|
|
15599
|
+
active2 ? ScrollableListItemActive : void 0
|
|
15592
15600
|
],
|
|
15593
15601
|
...props,
|
|
15594
15602
|
children: /* @__PURE__ */ jsxs53("label", { "data-testid": labelTestId, css: ScrollableListInputLabel, children: [
|
|
@@ -15602,10 +15610,10 @@ var ScrollableListInputItem = ({
|
|
|
15602
15610
|
{
|
|
15603
15611
|
icon: CgCheck2,
|
|
15604
15612
|
iconColor: "currentColor",
|
|
15605
|
-
css: [ScrollableListIcon,
|
|
15613
|
+
css: [ScrollableListIcon, active2 ? ScrollableListIconVisible : void 0],
|
|
15606
15614
|
size: 24,
|
|
15607
15615
|
"data-testid": "check-mark",
|
|
15608
|
-
"data-test-active":
|
|
15616
|
+
"data-test-active": active2
|
|
15609
15617
|
}
|
|
15610
15618
|
)
|
|
15611
15619
|
] })
|
|
@@ -15619,7 +15627,7 @@ import { jsx as jsx83, jsxs as jsxs54 } from "@emotion/react/jsx-runtime";
|
|
|
15619
15627
|
var ScrollableListItem = ({
|
|
15620
15628
|
buttonText,
|
|
15621
15629
|
icon,
|
|
15622
|
-
active,
|
|
15630
|
+
active: active2,
|
|
15623
15631
|
disableShadow,
|
|
15624
15632
|
...props
|
|
15625
15633
|
}) => {
|
|
@@ -15629,7 +15637,7 @@ var ScrollableListItem = ({
|
|
|
15629
15637
|
css: [
|
|
15630
15638
|
ScrollableListItemContainer,
|
|
15631
15639
|
disableShadow ? void 0 : ScrollableListItemShadow,
|
|
15632
|
-
|
|
15640
|
+
active2 ? ScrollableListItemActive : void 0
|
|
15633
15641
|
],
|
|
15634
15642
|
children: /* @__PURE__ */ jsxs54("button", { css: ScrollableListItemBtn, type: "button", ...props, children: [
|
|
15635
15643
|
/* @__PURE__ */ jsxs54(HorizontalRhythm, { gap: "xs", align: "center", children: [
|
|
@@ -15641,7 +15649,7 @@ var ScrollableListItem = ({
|
|
|
15641
15649
|
{
|
|
15642
15650
|
icon: CgCheck3,
|
|
15643
15651
|
iconColor: "currentColor",
|
|
15644
|
-
css: [ScrollableListIcon,
|
|
15652
|
+
css: [ScrollableListIcon, active2 ? ScrollableListIconVisible : void 0],
|
|
15645
15653
|
size: 24
|
|
15646
15654
|
}
|
|
15647
15655
|
)
|
|
@@ -16119,30 +16127,110 @@ var Modal = React19.forwardRef(
|
|
|
16119
16127
|
});
|
|
16120
16128
|
return /* @__PURE__ */ jsxs59("div", { css: [modalWrapperStyles, wrapperClassName], children: [
|
|
16121
16129
|
/* @__PURE__ */ jsx88("div", { onClick: onRequestClose, css: modalBackdropStyles }),
|
|
16122
|
-
/* @__PURE__ */ jsxs59(
|
|
16123
|
-
|
|
16124
|
-
|
|
16125
|
-
|
|
16126
|
-
|
|
16127
|
-
|
|
16128
|
-
|
|
16129
|
-
|
|
16130
|
-
|
|
16131
|
-
|
|
16132
|
-
|
|
16133
|
-
|
|
16134
|
-
|
|
16135
|
-
|
|
16136
|
-
|
|
16137
|
-
|
|
16138
|
-
|
|
16139
|
-
|
|
16140
|
-
|
|
16130
|
+
/* @__PURE__ */ jsxs59(
|
|
16131
|
+
"dialog",
|
|
16132
|
+
{
|
|
16133
|
+
ref,
|
|
16134
|
+
css: modalStyles,
|
|
16135
|
+
style: { width, height },
|
|
16136
|
+
"data-testid": "side-dialog",
|
|
16137
|
+
...modalProps,
|
|
16138
|
+
children: [
|
|
16139
|
+
/* @__PURE__ */ jsxs59("div", { css: modalHeaderStyles, children: [
|
|
16140
|
+
/* @__PURE__ */ jsx88("div", { children: header }),
|
|
16141
|
+
/* @__PURE__ */ jsx88(
|
|
16142
|
+
Button,
|
|
16143
|
+
{
|
|
16144
|
+
type: "button",
|
|
16145
|
+
onClick: onRequestClose,
|
|
16146
|
+
css: modalCloseButtonStyles,
|
|
16147
|
+
title: "Close dialog",
|
|
16148
|
+
buttonType: "ghost",
|
|
16149
|
+
"data-testid": "close-dialog",
|
|
16150
|
+
children: /* @__PURE__ */ jsx88(Icon, { icon: CgClose5, iconColor: "gray", size: 24 })
|
|
16151
|
+
}
|
|
16152
|
+
)
|
|
16153
|
+
] }),
|
|
16154
|
+
/* @__PURE__ */ jsx88("div", { css: [modalContentStyles, !withoutContentPadding ? null : { padding: 0 }], children }),
|
|
16155
|
+
buttonGroup ? /* @__PURE__ */ jsx88(HorizontalRhythm, { children: buttonGroup }) : null
|
|
16156
|
+
]
|
|
16157
|
+
}
|
|
16158
|
+
)
|
|
16141
16159
|
] });
|
|
16142
16160
|
}
|
|
16143
16161
|
);
|
|
16144
16162
|
Modal.displayName = "Modal";
|
|
16145
16163
|
|
|
16164
|
+
// src/components/Pagination/Pagination.tsx
|
|
16165
|
+
import Paginate from "react-paginate";
|
|
16166
|
+
|
|
16167
|
+
// src/components/Pagination/Pagniation.styles.ts
|
|
16168
|
+
import { css as css74 } from "@emotion/css";
|
|
16169
|
+
var container = css74`
|
|
16170
|
+
align-items: center;
|
|
16171
|
+
display: flex;
|
|
16172
|
+
`;
|
|
16173
|
+
var disabled = css74`
|
|
16174
|
+
opacity: var(--opacity-50);
|
|
16175
|
+
`;
|
|
16176
|
+
var disabledLink = css74`
|
|
16177
|
+
cursor: pointer-default;
|
|
16178
|
+
`;
|
|
16179
|
+
var pageLink = css74`
|
|
16180
|
+
display: block;
|
|
16181
|
+
padding: var(--spacing-sm) var(--spacing-base);
|
|
16182
|
+
`;
|
|
16183
|
+
var prevNextControls = css74`
|
|
16184
|
+
padding: var(--spacing-sm) var(--spacing-base);
|
|
16185
|
+
`;
|
|
16186
|
+
var active = css74`
|
|
16187
|
+
border-radius: var(--rounded-base);
|
|
16188
|
+
background: var(--gray-200);
|
|
16189
|
+
`;
|
|
16190
|
+
var page = css74`
|
|
16191
|
+
margin-left: var(--spacing-xs);
|
|
16192
|
+
margin-right: var(--spacing-xs);
|
|
16193
|
+
`;
|
|
16194
|
+
|
|
16195
|
+
// src/components/Pagination/Pagination.tsx
|
|
16196
|
+
import { jsx as jsx89 } from "@emotion/react/jsx-runtime";
|
|
16197
|
+
function Pagination({
|
|
16198
|
+
limit,
|
|
16199
|
+
offset,
|
|
16200
|
+
total,
|
|
16201
|
+
onPageChange
|
|
16202
|
+
}) {
|
|
16203
|
+
if (limit < 1) {
|
|
16204
|
+
return null;
|
|
16205
|
+
}
|
|
16206
|
+
const pageCount = Math.ceil(total / limit);
|
|
16207
|
+
const currentPage = Math.ceil(offset / limit);
|
|
16208
|
+
if (pageCount <= 1) {
|
|
16209
|
+
return null;
|
|
16210
|
+
}
|
|
16211
|
+
return /* @__PURE__ */ jsx89(
|
|
16212
|
+
Paginate,
|
|
16213
|
+
{
|
|
16214
|
+
forcePage: currentPage,
|
|
16215
|
+
previousLabel: /* @__PURE__ */ jsx89("div", { className: prevNextControls, children: "<" }),
|
|
16216
|
+
nextLabel: /* @__PURE__ */ jsx89("div", { className: prevNextControls, children: ">" }),
|
|
16217
|
+
breakLabel: "...",
|
|
16218
|
+
pageCount,
|
|
16219
|
+
marginPagesDisplayed: 2,
|
|
16220
|
+
pageRangeDisplayed: 5,
|
|
16221
|
+
onPageChange: ({ selected }) => {
|
|
16222
|
+
onPageChange(limit, selected * limit);
|
|
16223
|
+
},
|
|
16224
|
+
containerClassName: container,
|
|
16225
|
+
disabledClassName: disabled,
|
|
16226
|
+
disabledLinkClassName: disabledLink,
|
|
16227
|
+
pageLinkClassName: pageLink,
|
|
16228
|
+
activeClassName: active,
|
|
16229
|
+
pageClassName: page
|
|
16230
|
+
}
|
|
16231
|
+
);
|
|
16232
|
+
}
|
|
16233
|
+
|
|
16146
16234
|
// src/components/ParameterInputs/hooks/ParameterShellContext.tsx
|
|
16147
16235
|
import { createContext as createContext5, useContext as useContext6 } from "react";
|
|
16148
16236
|
var ParameterShellContext = createContext5({
|
|
@@ -16165,8 +16253,8 @@ var useParameterShell = () => {
|
|
|
16165
16253
|
};
|
|
16166
16254
|
|
|
16167
16255
|
// src/components/ParameterInputs/styles/LabelLeadingIcon.styles.ts
|
|
16168
|
-
import { css as
|
|
16169
|
-
var inputIconBtn =
|
|
16256
|
+
import { css as css75 } from "@emotion/react";
|
|
16257
|
+
var inputIconBtn = css75`
|
|
16170
16258
|
align-items: center;
|
|
16171
16259
|
border: none;
|
|
16172
16260
|
border-radius: var(--rounded-base);
|
|
@@ -16192,7 +16280,7 @@ var inputIconBtn = css74`
|
|
|
16192
16280
|
`;
|
|
16193
16281
|
|
|
16194
16282
|
// src/components/ParameterInputs/LabelLeadingIcon.tsx
|
|
16195
|
-
import { jsx as
|
|
16283
|
+
import { jsx as jsx90, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
|
|
16196
16284
|
var LabelLeadingIcon = ({
|
|
16197
16285
|
icon,
|
|
16198
16286
|
iconColor,
|
|
@@ -16204,7 +16292,7 @@ var LabelLeadingIcon = ({
|
|
|
16204
16292
|
...props
|
|
16205
16293
|
}) => {
|
|
16206
16294
|
const titleFr = title2 != null ? title2 : isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
16207
|
-
return /* @__PURE__ */
|
|
16295
|
+
return /* @__PURE__ */ jsx90(Tooltip, { title: titleFr, children: /* @__PURE__ */ jsxs60(
|
|
16208
16296
|
"button",
|
|
16209
16297
|
{
|
|
16210
16298
|
css: inputIconBtn,
|
|
@@ -16213,7 +16301,7 @@ var LabelLeadingIcon = ({
|
|
|
16213
16301
|
"aria-disabled": isLocked,
|
|
16214
16302
|
...props,
|
|
16215
16303
|
children: [
|
|
16216
|
-
/* @__PURE__ */
|
|
16304
|
+
/* @__PURE__ */ jsx90(
|
|
16217
16305
|
Icon,
|
|
16218
16306
|
{
|
|
16219
16307
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -16229,8 +16317,8 @@ var LabelLeadingIcon = ({
|
|
|
16229
16317
|
var ConnectToDataElementButton = LabelLeadingIcon;
|
|
16230
16318
|
|
|
16231
16319
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
16232
|
-
import { css as
|
|
16233
|
-
var inputContainer2 =
|
|
16320
|
+
import { css as css76 } from "@emotion/react";
|
|
16321
|
+
var inputContainer2 = css76`
|
|
16234
16322
|
position: relative;
|
|
16235
16323
|
scroll-margin: var(--spacing-2xl);
|
|
16236
16324
|
|
|
@@ -16243,14 +16331,14 @@ var inputContainer2 = css75`
|
|
|
16243
16331
|
}
|
|
16244
16332
|
}
|
|
16245
16333
|
`;
|
|
16246
|
-
var labelText2 =
|
|
16334
|
+
var labelText2 = css76`
|
|
16247
16335
|
align-items: center;
|
|
16248
16336
|
display: flex;
|
|
16249
16337
|
gap: var(--spacing-xs);
|
|
16250
16338
|
font-weight: var(--fw-regular);
|
|
16251
16339
|
margin: 0 0 var(--spacing-xs);
|
|
16252
16340
|
`;
|
|
16253
|
-
var input2 =
|
|
16341
|
+
var input2 = css76`
|
|
16254
16342
|
display: block;
|
|
16255
16343
|
appearance: none;
|
|
16256
16344
|
box-sizing: border-box;
|
|
@@ -16294,18 +16382,18 @@ var input2 = css75`
|
|
|
16294
16382
|
color: var(--gray-400);
|
|
16295
16383
|
}
|
|
16296
16384
|
`;
|
|
16297
|
-
var selectInput =
|
|
16385
|
+
var selectInput = css76`
|
|
16298
16386
|
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");
|
|
16299
16387
|
background-position: right var(--spacing-sm) center;
|
|
16300
16388
|
background-repeat: no-repeat;
|
|
16301
16389
|
background-size: 1rem;
|
|
16302
16390
|
padding-right: var(--spacing-xl);
|
|
16303
16391
|
`;
|
|
16304
|
-
var inputWrapper =
|
|
16392
|
+
var inputWrapper = css76`
|
|
16305
16393
|
display: flex; // used to correct overflow with chrome textarea
|
|
16306
16394
|
position: relative;
|
|
16307
16395
|
`;
|
|
16308
|
-
var inputIcon2 =
|
|
16396
|
+
var inputIcon2 = css76`
|
|
16309
16397
|
align-items: center;
|
|
16310
16398
|
background: var(--white);
|
|
16311
16399
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -16321,7 +16409,7 @@ var inputIcon2 = css75`
|
|
|
16321
16409
|
width: var(--spacing-lg);
|
|
16322
16410
|
z-index: var(--z-10);
|
|
16323
16411
|
`;
|
|
16324
|
-
var inputToggleLabel2 =
|
|
16412
|
+
var inputToggleLabel2 = css76`
|
|
16325
16413
|
align-items: center;
|
|
16326
16414
|
background: var(--white);
|
|
16327
16415
|
cursor: pointer;
|
|
@@ -16332,7 +16420,7 @@ var inputToggleLabel2 = css75`
|
|
|
16332
16420
|
min-height: var(--spacing-md);
|
|
16333
16421
|
position: relative;
|
|
16334
16422
|
`;
|
|
16335
|
-
var toggleInput2 =
|
|
16423
|
+
var toggleInput2 = css76`
|
|
16336
16424
|
appearance: none;
|
|
16337
16425
|
border: 1px solid var(--gray-300);
|
|
16338
16426
|
background: var(--white);
|
|
@@ -16371,7 +16459,7 @@ var toggleInput2 = css75`
|
|
|
16371
16459
|
border-color: var(--gray-300);
|
|
16372
16460
|
}
|
|
16373
16461
|
`;
|
|
16374
|
-
var inlineLabel2 =
|
|
16462
|
+
var inlineLabel2 = css76`
|
|
16375
16463
|
padding-left: var(--spacing-lg);
|
|
16376
16464
|
font-size: var(--fs-sm);
|
|
16377
16465
|
font-weight: var(--fw-regular);
|
|
@@ -16387,7 +16475,7 @@ var inlineLabel2 = css75`
|
|
|
16387
16475
|
}
|
|
16388
16476
|
}
|
|
16389
16477
|
`;
|
|
16390
|
-
var inputMenu =
|
|
16478
|
+
var inputMenu = css76`
|
|
16391
16479
|
background: none;
|
|
16392
16480
|
border: none;
|
|
16393
16481
|
padding: var(--spacing-2xs);
|
|
@@ -16403,11 +16491,11 @@ var inputMenu = css75`
|
|
|
16403
16491
|
background-color: var(--gray-200);
|
|
16404
16492
|
}
|
|
16405
16493
|
`;
|
|
16406
|
-
var textarea2 =
|
|
16494
|
+
var textarea2 = css76`
|
|
16407
16495
|
resize: vertical;
|
|
16408
16496
|
min-height: 2rem;
|
|
16409
16497
|
`;
|
|
16410
|
-
var dataConnectButton =
|
|
16498
|
+
var dataConnectButton = css76`
|
|
16411
16499
|
align-items: center;
|
|
16412
16500
|
appearance: none;
|
|
16413
16501
|
box-sizing: border-box;
|
|
@@ -16442,7 +16530,7 @@ var dataConnectButton = css75`
|
|
|
16442
16530
|
pointer-events: none;
|
|
16443
16531
|
}
|
|
16444
16532
|
`;
|
|
16445
|
-
var linkParameterBtn =
|
|
16533
|
+
var linkParameterBtn = css76`
|
|
16446
16534
|
border-radius: var(--rounded-base);
|
|
16447
16535
|
background: var(--white);
|
|
16448
16536
|
border: none;
|
|
@@ -16451,7 +16539,7 @@ var linkParameterBtn = css75`
|
|
|
16451
16539
|
font-size: var(--fs-sm);
|
|
16452
16540
|
line-height: 1;
|
|
16453
16541
|
`;
|
|
16454
|
-
var linkParameterControls =
|
|
16542
|
+
var linkParameterControls = css76`
|
|
16455
16543
|
position: absolute;
|
|
16456
16544
|
inset: 0 0 0 auto;
|
|
16457
16545
|
padding: 0 var(--spacing-base);
|
|
@@ -16460,7 +16548,7 @@ var linkParameterControls = css75`
|
|
|
16460
16548
|
justify-content: center;
|
|
16461
16549
|
gap: var(--spacing-base);
|
|
16462
16550
|
`;
|
|
16463
|
-
var linkParameterInput = (withExternalLinkIcon) =>
|
|
16551
|
+
var linkParameterInput = (withExternalLinkIcon) => css76`
|
|
16464
16552
|
padding-right: calc(
|
|
16465
16553
|
${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
|
|
16466
16554
|
var(--spacing-base)
|
|
@@ -16473,7 +16561,7 @@ var linkParameterInput = (withExternalLinkIcon) => css75`
|
|
|
16473
16561
|
}
|
|
16474
16562
|
}
|
|
16475
16563
|
`;
|
|
16476
|
-
var linkParameterIcon =
|
|
16564
|
+
var linkParameterIcon = css76`
|
|
16477
16565
|
align-items: center;
|
|
16478
16566
|
color: var(--brand-secondary-3);
|
|
16479
16567
|
display: flex;
|
|
@@ -16488,14 +16576,14 @@ var linkParameterIcon = css75`
|
|
|
16488
16576
|
`;
|
|
16489
16577
|
|
|
16490
16578
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
16491
|
-
import { jsx as
|
|
16579
|
+
import { jsx as jsx91, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
|
|
16492
16580
|
function ParameterDataResource({
|
|
16493
16581
|
label,
|
|
16494
16582
|
labelLeadingIcon,
|
|
16495
16583
|
id,
|
|
16496
16584
|
onConnectDatasource,
|
|
16497
16585
|
caption,
|
|
16498
|
-
disabled,
|
|
16586
|
+
disabled: disabled2,
|
|
16499
16587
|
children
|
|
16500
16588
|
}) {
|
|
16501
16589
|
return /* @__PURE__ */ jsxs61("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
@@ -16509,33 +16597,33 @@ function ParameterDataResource({
|
|
|
16509
16597
|
type: "button",
|
|
16510
16598
|
css: dataConnectButton,
|
|
16511
16599
|
"aria-controls": id,
|
|
16512
|
-
disabled,
|
|
16600
|
+
disabled: disabled2,
|
|
16513
16601
|
onClick: onConnectDatasource,
|
|
16514
16602
|
children: [
|
|
16515
|
-
/* @__PURE__ */
|
|
16603
|
+
/* @__PURE__ */ jsx91("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx91(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
16516
16604
|
children
|
|
16517
16605
|
]
|
|
16518
16606
|
}
|
|
16519
16607
|
),
|
|
16520
|
-
caption ? /* @__PURE__ */
|
|
16608
|
+
caption ? /* @__PURE__ */ jsx91(Caption, { children: caption }) : null
|
|
16521
16609
|
] });
|
|
16522
16610
|
}
|
|
16523
16611
|
|
|
16524
16612
|
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
16525
|
-
import { css as
|
|
16526
|
-
var ParameterDrawerHeaderContainer =
|
|
16613
|
+
import { css as css77 } from "@emotion/react";
|
|
16614
|
+
var ParameterDrawerHeaderContainer = css77`
|
|
16527
16615
|
align-items: center;
|
|
16528
16616
|
display: flex;
|
|
16529
16617
|
gap: var(--spacing-base);
|
|
16530
16618
|
justify-content: space-between;
|
|
16531
16619
|
margin-bottom: var(--spacing-sm);
|
|
16532
16620
|
`;
|
|
16533
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
16621
|
+
var ParameterDrawerHeaderTitleGroup = css77`
|
|
16534
16622
|
align-items: center;
|
|
16535
16623
|
display: flex;
|
|
16536
16624
|
gap: var(--spacing-sm);
|
|
16537
16625
|
`;
|
|
16538
|
-
var ParameterDrawerHeaderTitle =
|
|
16626
|
+
var ParameterDrawerHeaderTitle = css77`
|
|
16539
16627
|
text-overflow: ellipsis;
|
|
16540
16628
|
white-space: nowrap;
|
|
16541
16629
|
overflow: hidden;
|
|
@@ -16543,12 +16631,12 @@ var ParameterDrawerHeaderTitle = css76`
|
|
|
16543
16631
|
`;
|
|
16544
16632
|
|
|
16545
16633
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
16546
|
-
import { jsx as
|
|
16634
|
+
import { jsx as jsx92, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
|
|
16547
16635
|
var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
|
|
16548
16636
|
return /* @__PURE__ */ jsxs62("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
16549
16637
|
/* @__PURE__ */ jsxs62("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
16550
16638
|
iconBeforeTitle,
|
|
16551
|
-
/* @__PURE__ */
|
|
16639
|
+
/* @__PURE__ */ jsx92(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title: title2, children: title2 })
|
|
16552
16640
|
] }),
|
|
16553
16641
|
children
|
|
16554
16642
|
] });
|
|
@@ -16558,8 +16646,8 @@ var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
|
|
|
16558
16646
|
import { forwardRef as forwardRef10 } from "react";
|
|
16559
16647
|
|
|
16560
16648
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
16561
|
-
import { css as
|
|
16562
|
-
var fieldsetStyles =
|
|
16649
|
+
import { css as css78 } from "@emotion/react";
|
|
16650
|
+
var fieldsetStyles = css78`
|
|
16563
16651
|
&:disabled,
|
|
16564
16652
|
[readonly] {
|
|
16565
16653
|
pointer-events: none;
|
|
@@ -16570,7 +16658,7 @@ var fieldsetStyles = css77`
|
|
|
16570
16658
|
}
|
|
16571
16659
|
}
|
|
16572
16660
|
`;
|
|
16573
|
-
var fieldsetLegend2 =
|
|
16661
|
+
var fieldsetLegend2 = css78`
|
|
16574
16662
|
display: block;
|
|
16575
16663
|
font-weight: var(--fw-medium);
|
|
16576
16664
|
margin-bottom: var(--spacing-sm);
|
|
@@ -16578,11 +16666,11 @@ var fieldsetLegend2 = css77`
|
|
|
16578
16666
|
`;
|
|
16579
16667
|
|
|
16580
16668
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
16581
|
-
import { jsx as
|
|
16669
|
+
import { jsx as jsx93, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
|
|
16582
16670
|
var ParameterGroup = forwardRef10(
|
|
16583
16671
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
16584
16672
|
return /* @__PURE__ */ jsxs63("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
16585
|
-
/* @__PURE__ */
|
|
16673
|
+
/* @__PURE__ */ jsx93("legend", { css: fieldsetLegend2, children: legend }),
|
|
16586
16674
|
children
|
|
16587
16675
|
] });
|
|
16588
16676
|
}
|
|
@@ -16596,15 +16684,15 @@ import { useState as useState10 } from "react";
|
|
|
16596
16684
|
import { createPortal as createPortal2 } from "react-dom";
|
|
16597
16685
|
|
|
16598
16686
|
// src/components/ParameterInputs/styles/ParameterImage.styles.ts
|
|
16599
|
-
import { css as
|
|
16600
|
-
var previewWrapper =
|
|
16687
|
+
import { css as css79 } from "@emotion/react";
|
|
16688
|
+
var previewWrapper = css79`
|
|
16601
16689
|
margin-top: var(--spacing-xs);
|
|
16602
16690
|
background: var(--gray-50);
|
|
16603
16691
|
padding: var(--spacing-sm);
|
|
16604
16692
|
border: solid 1px var(--gray-300);
|
|
16605
16693
|
border-radius: var(--rounded-sm);
|
|
16606
16694
|
`;
|
|
16607
|
-
var previewLink =
|
|
16695
|
+
var previewLink = css79`
|
|
16608
16696
|
display: block;
|
|
16609
16697
|
width: 100%;
|
|
16610
16698
|
|
|
@@ -16612,7 +16700,7 @@ var previewLink = css78`
|
|
|
16612
16700
|
max-height: 9rem;
|
|
16613
16701
|
}
|
|
16614
16702
|
`;
|
|
16615
|
-
var previewModalWrapper =
|
|
16703
|
+
var previewModalWrapper = css79`
|
|
16616
16704
|
background: var(--gray-50);
|
|
16617
16705
|
display: flex;
|
|
16618
16706
|
height: 100%;
|
|
@@ -16621,7 +16709,7 @@ var previewModalWrapper = css78`
|
|
|
16621
16709
|
border: solid 1px var(--gray-300);
|
|
16622
16710
|
border-radius: var(--rounded-sm);
|
|
16623
16711
|
`;
|
|
16624
|
-
var previewModalImage =
|
|
16712
|
+
var previewModalImage = css79`
|
|
16625
16713
|
display: flex;
|
|
16626
16714
|
height: 100%;
|
|
16627
16715
|
width: 100%;
|
|
@@ -16633,33 +16721,33 @@ var previewModalImage = css78`
|
|
|
16633
16721
|
`;
|
|
16634
16722
|
|
|
16635
16723
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
16636
|
-
import { Fragment as Fragment15, jsx as
|
|
16724
|
+
import { Fragment as Fragment15, jsx as jsx94, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
|
|
16637
16725
|
function ParameterImagePreview({ imageSrc }) {
|
|
16638
16726
|
const [showModal, setShowModal] = useState10(false);
|
|
16639
16727
|
return imageSrc ? /* @__PURE__ */ jsxs64("div", { css: previewWrapper, children: [
|
|
16640
|
-
/* @__PURE__ */
|
|
16641
|
-
/* @__PURE__ */
|
|
16728
|
+
/* @__PURE__ */ jsx94(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
|
|
16729
|
+
/* @__PURE__ */ jsx94(
|
|
16642
16730
|
"button",
|
|
16643
16731
|
{
|
|
16644
16732
|
css: previewLink,
|
|
16645
16733
|
onClick: () => {
|
|
16646
16734
|
setShowModal(true);
|
|
16647
16735
|
},
|
|
16648
|
-
children: /* @__PURE__ */
|
|
16736
|
+
children: /* @__PURE__ */ jsx94(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
|
|
16649
16737
|
}
|
|
16650
16738
|
)
|
|
16651
16739
|
] }) : null;
|
|
16652
16740
|
}
|
|
16653
16741
|
var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
16654
|
-
return open ? /* @__PURE__ */
|
|
16655
|
-
/* @__PURE__ */
|
|
16742
|
+
return open ? /* @__PURE__ */ jsx94(Fragment15, { children: createPortal2(
|
|
16743
|
+
/* @__PURE__ */ jsx94(
|
|
16656
16744
|
Modal,
|
|
16657
16745
|
{
|
|
16658
16746
|
header: "Image Preview",
|
|
16659
16747
|
onRequestClose,
|
|
16660
16748
|
withoutContentPadding: true,
|
|
16661
|
-
buttonGroup: /* @__PURE__ */
|
|
16662
|
-
children: /* @__PURE__ */
|
|
16749
|
+
buttonGroup: /* @__PURE__ */ jsx94(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
|
|
16750
|
+
children: /* @__PURE__ */ jsx94("div", { css: previewModalWrapper, children: /* @__PURE__ */ jsx94(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
|
|
16663
16751
|
}
|
|
16664
16752
|
),
|
|
16665
16753
|
document.body
|
|
@@ -16667,25 +16755,25 @@ var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
|
16667
16755
|
};
|
|
16668
16756
|
|
|
16669
16757
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
16670
|
-
import { css as
|
|
16758
|
+
import { css as css81 } from "@emotion/react";
|
|
16671
16759
|
import { useState as useState11 } from "react";
|
|
16672
16760
|
|
|
16673
16761
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
16674
|
-
import { jsx as
|
|
16762
|
+
import { jsx as jsx95 } from "@emotion/react/jsx-runtime";
|
|
16675
16763
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
16676
|
-
return !asSpan ? /* @__PURE__ */
|
|
16764
|
+
return !asSpan ? /* @__PURE__ */ jsx95("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx95("span", { "aria-labelledby": id, css: labelText2, children });
|
|
16677
16765
|
};
|
|
16678
16766
|
|
|
16679
16767
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
16680
16768
|
import { forwardRef as forwardRef11 } from "react";
|
|
16681
|
-
import { jsx as
|
|
16769
|
+
import { jsx as jsx96 } from "@emotion/react/jsx-runtime";
|
|
16682
16770
|
var ParameterMenuButton = forwardRef11(
|
|
16683
16771
|
({ label, children }, ref) => {
|
|
16684
|
-
return /* @__PURE__ */
|
|
16772
|
+
return /* @__PURE__ */ jsx96(
|
|
16685
16773
|
Menu,
|
|
16686
16774
|
{
|
|
16687
16775
|
menuLabel: `${label} menu`,
|
|
16688
|
-
menuTrigger: /* @__PURE__ */
|
|
16776
|
+
menuTrigger: /* @__PURE__ */ jsx96(
|
|
16689
16777
|
"button",
|
|
16690
16778
|
{
|
|
16691
16779
|
className: "parameter-menu",
|
|
@@ -16693,7 +16781,7 @@ var ParameterMenuButton = forwardRef11(
|
|
|
16693
16781
|
type: "button",
|
|
16694
16782
|
"aria-label": `${label} options`,
|
|
16695
16783
|
ref,
|
|
16696
|
-
children: /* @__PURE__ */
|
|
16784
|
+
children: /* @__PURE__ */ jsx96(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
16697
16785
|
}
|
|
16698
16786
|
),
|
|
16699
16787
|
children
|
|
@@ -16703,8 +16791,8 @@ var ParameterMenuButton = forwardRef11(
|
|
|
16703
16791
|
);
|
|
16704
16792
|
|
|
16705
16793
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
16706
|
-
import { css as
|
|
16707
|
-
var emptyParameterShell =
|
|
16794
|
+
import { css as css80 } from "@emotion/react";
|
|
16795
|
+
var emptyParameterShell = css80`
|
|
16708
16796
|
border-radius: var(--rounded-sm);
|
|
16709
16797
|
background: var(--white);
|
|
16710
16798
|
flex-grow: 1;
|
|
@@ -16712,7 +16800,7 @@ var emptyParameterShell = css79`
|
|
|
16712
16800
|
position: relative;
|
|
16713
16801
|
max-width: 100%;
|
|
16714
16802
|
`;
|
|
16715
|
-
var emptyParameterShellText =
|
|
16803
|
+
var emptyParameterShellText = css80`
|
|
16716
16804
|
background: var(--brand-secondary-6);
|
|
16717
16805
|
border-radius: var(--rounded-sm);
|
|
16718
16806
|
padding: var(--spacing-sm);
|
|
@@ -16720,7 +16808,7 @@ var emptyParameterShellText = css79`
|
|
|
16720
16808
|
font-size: var(--fs-sm);
|
|
16721
16809
|
margin: 0;
|
|
16722
16810
|
`;
|
|
16723
|
-
var overrideMarker =
|
|
16811
|
+
var overrideMarker = css80`
|
|
16724
16812
|
border-radius: var(--rounded-sm);
|
|
16725
16813
|
border: 10px solid var(--gray-300);
|
|
16726
16814
|
border-left-color: transparent;
|
|
@@ -16731,7 +16819,7 @@ var overrideMarker = css79`
|
|
|
16731
16819
|
`;
|
|
16732
16820
|
|
|
16733
16821
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
16734
|
-
import { jsx as
|
|
16822
|
+
import { jsx as jsx97, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
|
|
16735
16823
|
var extractParameterProps = (props) => {
|
|
16736
16824
|
const {
|
|
16737
16825
|
id,
|
|
@@ -16805,23 +16893,23 @@ var ParameterShell = ({
|
|
|
16805
16893
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
16806
16894
|
] }),
|
|
16807
16895
|
/* @__PURE__ */ jsxs65("div", { css: inputWrapper, children: [
|
|
16808
|
-
actionItems ? /* @__PURE__ */
|
|
16896
|
+
actionItems ? /* @__PURE__ */ jsx97(
|
|
16809
16897
|
"div",
|
|
16810
16898
|
{
|
|
16811
16899
|
css: [
|
|
16812
16900
|
inputMenu,
|
|
16813
|
-
|
|
16901
|
+
css81`
|
|
16814
16902
|
opacity: var(--opacity-100);
|
|
16815
16903
|
`,
|
|
16816
|
-
menuItems ?
|
|
16904
|
+
menuItems ? css81`
|
|
16817
16905
|
right: var(--spacing-md);
|
|
16818
16906
|
` : void 0
|
|
16819
16907
|
],
|
|
16820
16908
|
children: actionItems
|
|
16821
16909
|
}
|
|
16822
16910
|
) : null,
|
|
16823
|
-
menuItems ? /* @__PURE__ */
|
|
16824
|
-
/* @__PURE__ */
|
|
16911
|
+
menuItems ? /* @__PURE__ */ jsx97(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
16912
|
+
/* @__PURE__ */ jsx97(
|
|
16825
16913
|
ParameterShellContext.Provider,
|
|
16826
16914
|
{
|
|
16827
16915
|
value: {
|
|
@@ -16833,29 +16921,29 @@ var ParameterShell = ({
|
|
|
16833
16921
|
},
|
|
16834
16922
|
children: /* @__PURE__ */ jsxs65(ParameterShellPlaceholder, { children: [
|
|
16835
16923
|
children,
|
|
16836
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
16924
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx97(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
16837
16925
|
] })
|
|
16838
16926
|
}
|
|
16839
16927
|
)
|
|
16840
16928
|
] }),
|
|
16841
|
-
caption ? /* @__PURE__ */
|
|
16842
|
-
errorMessaging ? /* @__PURE__ */
|
|
16843
|
-
warningMessage ? /* @__PURE__ */
|
|
16844
|
-
infoMessage ? /* @__PURE__ */
|
|
16929
|
+
caption ? /* @__PURE__ */ jsx97(Caption, { testId: captionTestId, children: caption }) : null,
|
|
16930
|
+
errorMessaging ? /* @__PURE__ */ jsx97(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null,
|
|
16931
|
+
warningMessage ? /* @__PURE__ */ jsx97(WarningMessage, { message: warningMessage }) : null,
|
|
16932
|
+
infoMessage ? /* @__PURE__ */ jsx97(InfoMessage, { message: infoMessage }) : null
|
|
16845
16933
|
] });
|
|
16846
16934
|
};
|
|
16847
16935
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
16848
|
-
return /* @__PURE__ */
|
|
16936
|
+
return /* @__PURE__ */ jsx97("div", { css: emptyParameterShell, children });
|
|
16849
16937
|
};
|
|
16850
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
16938
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx97(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx97("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx97("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
16851
16939
|
|
|
16852
16940
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
16853
|
-
import { Fragment as Fragment16, jsx as
|
|
16941
|
+
import { Fragment as Fragment16, jsx as jsx98, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
|
|
16854
16942
|
var ParameterImage = forwardRef12(
|
|
16855
16943
|
({ children, ...props }, ref) => {
|
|
16856
16944
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16857
16945
|
return /* @__PURE__ */ jsxs66(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
|
|
16858
|
-
/* @__PURE__ */
|
|
16946
|
+
/* @__PURE__ */ jsx98(ParameterImageInner, { ref, ...innerProps }),
|
|
16859
16947
|
children
|
|
16860
16948
|
] });
|
|
16861
16949
|
}
|
|
@@ -16865,7 +16953,7 @@ var ParameterImageInner = forwardRef12((props, ref) => {
|
|
|
16865
16953
|
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
16866
16954
|
const deferredValue = useDeferredValue(value);
|
|
16867
16955
|
return /* @__PURE__ */ jsxs66(Fragment16, { children: [
|
|
16868
|
-
/* @__PURE__ */
|
|
16956
|
+
/* @__PURE__ */ jsx98(
|
|
16869
16957
|
"input",
|
|
16870
16958
|
{
|
|
16871
16959
|
css: input2,
|
|
@@ -16877,21 +16965,21 @@ var ParameterImageInner = forwardRef12((props, ref) => {
|
|
|
16877
16965
|
...props
|
|
16878
16966
|
}
|
|
16879
16967
|
),
|
|
16880
|
-
errorMessage || props.disablePreview ? null : /* @__PURE__ */
|
|
16968
|
+
errorMessage || props.disablePreview ? null : /* @__PURE__ */ jsx98(ParameterImagePreview, { imageSrc: deferredValue })
|
|
16881
16969
|
] });
|
|
16882
16970
|
});
|
|
16883
16971
|
|
|
16884
16972
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
16885
16973
|
import { forwardRef as forwardRef13 } from "react";
|
|
16886
|
-
import { jsx as
|
|
16974
|
+
import { jsx as jsx99 } from "@emotion/react/jsx-runtime";
|
|
16887
16975
|
var ParameterInput = forwardRef13((props, ref) => {
|
|
16888
16976
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16889
|
-
return /* @__PURE__ */
|
|
16977
|
+
return /* @__PURE__ */ jsx99(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx99(ParameterInputInner, { ref, ...innerProps }) });
|
|
16890
16978
|
});
|
|
16891
16979
|
var ParameterInputInner = forwardRef13(
|
|
16892
16980
|
({ ...props }, ref) => {
|
|
16893
16981
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
16894
|
-
return /* @__PURE__ */
|
|
16982
|
+
return /* @__PURE__ */ jsx99(
|
|
16895
16983
|
"input",
|
|
16896
16984
|
{
|
|
16897
16985
|
css: input2,
|
|
@@ -16908,18 +16996,18 @@ var ParameterInputInner = forwardRef13(
|
|
|
16908
16996
|
|
|
16909
16997
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
16910
16998
|
import { forwardRef as forwardRef14 } from "react";
|
|
16911
|
-
import { jsx as
|
|
16999
|
+
import { jsx as jsx100, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
|
|
16912
17000
|
var ParameterLink = forwardRef14(
|
|
16913
|
-
({ disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
17001
|
+
({ disabled: disabled2, onConnectLink, externalLink, ...props }, ref) => {
|
|
16914
17002
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
16915
|
-
return /* @__PURE__ */
|
|
17003
|
+
return /* @__PURE__ */ jsx100(
|
|
16916
17004
|
ParameterShell,
|
|
16917
17005
|
{
|
|
16918
17006
|
"data-testid": "link-parameter-editor",
|
|
16919
17007
|
...shellProps,
|
|
16920
17008
|
label: innerProps.value ? shellProps.label : "",
|
|
16921
17009
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
16922
|
-
children: /* @__PURE__ */
|
|
17010
|
+
children: /* @__PURE__ */ jsx100(
|
|
16923
17011
|
ParameterLinkInner,
|
|
16924
17012
|
{
|
|
16925
17013
|
onConnectLink,
|
|
@@ -16933,12 +17021,12 @@ var ParameterLink = forwardRef14(
|
|
|
16933
17021
|
}
|
|
16934
17022
|
);
|
|
16935
17023
|
var ParameterLinkInner = forwardRef14(
|
|
16936
|
-
({ externalLink, onConnectLink, disabled, buttonText = "Select link", ...props }, ref) => {
|
|
17024
|
+
({ externalLink, onConnectLink, disabled: disabled2, buttonText = "Select link", ...props }, ref) => {
|
|
16937
17025
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
16938
17026
|
if (!props.value)
|
|
16939
|
-
return /* @__PURE__ */
|
|
17027
|
+
return /* @__PURE__ */ jsx100("button", { type: "button", css: dataConnectButton, disabled: disabled2, onClick: onConnectLink, children: buttonText });
|
|
16940
17028
|
return /* @__PURE__ */ jsxs67("div", { css: inputWrapper, children: [
|
|
16941
|
-
/* @__PURE__ */
|
|
17029
|
+
/* @__PURE__ */ jsx100(
|
|
16942
17030
|
"input",
|
|
16943
17031
|
{
|
|
16944
17032
|
type: "text",
|
|
@@ -16951,18 +17039,18 @@ var ParameterLinkInner = forwardRef14(
|
|
|
16951
17039
|
}
|
|
16952
17040
|
),
|
|
16953
17041
|
/* @__PURE__ */ jsxs67("div", { css: linkParameterControls, children: [
|
|
16954
|
-
/* @__PURE__ */
|
|
17042
|
+
/* @__PURE__ */ jsx100(
|
|
16955
17043
|
"button",
|
|
16956
17044
|
{
|
|
16957
17045
|
type: "button",
|
|
16958
17046
|
css: linkParameterBtn,
|
|
16959
|
-
disabled,
|
|
17047
|
+
disabled: disabled2,
|
|
16960
17048
|
onClick: onConnectLink,
|
|
16961
17049
|
title: "edit current selection",
|
|
16962
17050
|
children: "edit"
|
|
16963
17051
|
}
|
|
16964
17052
|
),
|
|
16965
|
-
externalLink ? /* @__PURE__ */
|
|
17053
|
+
externalLink ? /* @__PURE__ */ jsx100(
|
|
16966
17054
|
"a",
|
|
16967
17055
|
{
|
|
16968
17056
|
href: externalLink,
|
|
@@ -16970,7 +17058,7 @@ var ParameterLinkInner = forwardRef14(
|
|
|
16970
17058
|
title: "Open link in new tab",
|
|
16971
17059
|
target: "_blank",
|
|
16972
17060
|
rel: "noopener noreferrer",
|
|
16973
|
-
children: /* @__PURE__ */
|
|
17061
|
+
children: /* @__PURE__ */ jsx100(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
16974
17062
|
}
|
|
16975
17063
|
) : null
|
|
16976
17064
|
] })
|
|
@@ -16979,7 +17067,7 @@ var ParameterLinkInner = forwardRef14(
|
|
|
16979
17067
|
);
|
|
16980
17068
|
|
|
16981
17069
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
16982
|
-
import { Fragment as Fragment17, jsx as
|
|
17070
|
+
import { Fragment as Fragment17, jsx as jsx101, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
|
|
16983
17071
|
var ParameterNameAndPublicIdInput = ({
|
|
16984
17072
|
id,
|
|
16985
17073
|
onBlur,
|
|
@@ -17006,7 +17094,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17006
17094
|
};
|
|
17007
17095
|
autoFocus == null ? void 0 : autoFocus();
|
|
17008
17096
|
return /* @__PURE__ */ jsxs68(Fragment17, { children: [
|
|
17009
|
-
/* @__PURE__ */
|
|
17097
|
+
/* @__PURE__ */ jsx101(
|
|
17010
17098
|
ParameterInput,
|
|
17011
17099
|
{
|
|
17012
17100
|
id: nameIdField,
|
|
@@ -17025,7 +17113,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17025
17113
|
value: values[nameIdField]
|
|
17026
17114
|
}
|
|
17027
17115
|
),
|
|
17028
|
-
/* @__PURE__ */
|
|
17116
|
+
/* @__PURE__ */ jsx101(
|
|
17029
17117
|
ParameterInput,
|
|
17030
17118
|
{
|
|
17031
17119
|
id: publicIdFieldName,
|
|
@@ -17039,11 +17127,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17039
17127
|
caption: publicIdCaption,
|
|
17040
17128
|
placeholder: publicIdPlaceholderText,
|
|
17041
17129
|
errorMessage: publicIdError,
|
|
17042
|
-
menuItems: /* @__PURE__ */
|
|
17130
|
+
menuItems: /* @__PURE__ */ jsx101(
|
|
17043
17131
|
MenuItem,
|
|
17044
17132
|
{
|
|
17045
17133
|
disabled: !values[publicIdFieldName],
|
|
17046
|
-
icon: /* @__PURE__ */
|
|
17134
|
+
icon: /* @__PURE__ */ jsx101(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
17047
17135
|
onClick: handleCopyPidFieldValue,
|
|
17048
17136
|
children: "Copy"
|
|
17049
17137
|
}
|
|
@@ -17051,12 +17139,12 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17051
17139
|
value: values[publicIdFieldName]
|
|
17052
17140
|
}
|
|
17053
17141
|
),
|
|
17054
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
17142
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx101(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
17055
17143
|
] });
|
|
17056
17144
|
};
|
|
17057
17145
|
|
|
17058
17146
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
17059
|
-
import { css as
|
|
17147
|
+
import { css as css85 } from "@emotion/react";
|
|
17060
17148
|
import { ListItemNode, ListNode as ListNode2 } from "@lexical/list";
|
|
17061
17149
|
import {
|
|
17062
17150
|
CODE,
|
|
@@ -17208,23 +17296,23 @@ function DisableStylesPlugin() {
|
|
|
17208
17296
|
}
|
|
17209
17297
|
|
|
17210
17298
|
// src/components/ParameterInputs/rich-text/editorStyles.ts
|
|
17211
|
-
import { css as
|
|
17212
|
-
var textBold =
|
|
17299
|
+
import { css as css82 } from "@emotion/css";
|
|
17300
|
+
var textBold = css82`
|
|
17213
17301
|
font-weight: 700;
|
|
17214
17302
|
`;
|
|
17215
|
-
var textItalic =
|
|
17303
|
+
var textItalic = css82`
|
|
17216
17304
|
font-style: italic;
|
|
17217
17305
|
`;
|
|
17218
|
-
var textUnderline =
|
|
17306
|
+
var textUnderline = css82`
|
|
17219
17307
|
text-decoration: underline;
|
|
17220
17308
|
`;
|
|
17221
|
-
var textStrikethrough =
|
|
17309
|
+
var textStrikethrough = css82`
|
|
17222
17310
|
text-decoration: line-through;
|
|
17223
17311
|
`;
|
|
17224
|
-
var textUnderlineStrikethrough =
|
|
17312
|
+
var textUnderlineStrikethrough = css82`
|
|
17225
17313
|
text-decoration: underline line-through;
|
|
17226
17314
|
`;
|
|
17227
|
-
var textCode =
|
|
17315
|
+
var textCode = css82`
|
|
17228
17316
|
background-color: var(--gray-100);
|
|
17229
17317
|
border-radius: var(--rounded-sm);
|
|
17230
17318
|
display: inline-block;
|
|
@@ -17235,68 +17323,68 @@ var textCode = css81`
|
|
|
17235
17323
|
padding-left: var(--spacing-xs);
|
|
17236
17324
|
padding-right: var(--spacing-xs);
|
|
17237
17325
|
`;
|
|
17238
|
-
var textSuperscript =
|
|
17326
|
+
var textSuperscript = css82`
|
|
17239
17327
|
vertical-align: super;
|
|
17240
17328
|
font-size: smaller;
|
|
17241
17329
|
`;
|
|
17242
|
-
var textSubscript =
|
|
17330
|
+
var textSubscript = css82`
|
|
17243
17331
|
vertical-align: sub;
|
|
17244
17332
|
font-size: smaller;
|
|
17245
17333
|
`;
|
|
17246
|
-
var linkElement =
|
|
17334
|
+
var linkElement = css82`
|
|
17247
17335
|
${link}
|
|
17248
17336
|
${linkColorDefault}
|
|
17249
17337
|
text-decoration: underline;
|
|
17250
17338
|
`;
|
|
17251
|
-
var h12 =
|
|
17339
|
+
var h12 = css82`
|
|
17252
17340
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.7rem);
|
|
17253
17341
|
`;
|
|
17254
|
-
var h22 =
|
|
17342
|
+
var h22 = css82`
|
|
17255
17343
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.6rem);
|
|
17256
17344
|
`;
|
|
17257
|
-
var h32 =
|
|
17345
|
+
var h32 = css82`
|
|
17258
17346
|
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
17259
17347
|
`;
|
|
17260
|
-
var h42 =
|
|
17348
|
+
var h42 = css82`
|
|
17261
17349
|
font-size: clamp(1.15rem, var(--fluid-font-base), 1.25rem);
|
|
17262
17350
|
`;
|
|
17263
|
-
var h52 =
|
|
17351
|
+
var h52 = css82`
|
|
17264
17352
|
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
17265
17353
|
`;
|
|
17266
|
-
var h62 =
|
|
17354
|
+
var h62 = css82`
|
|
17267
17355
|
font-size: var(--fs-base);
|
|
17268
17356
|
`;
|
|
17269
|
-
var heading1Element =
|
|
17357
|
+
var heading1Element = css82`
|
|
17270
17358
|
${h12}
|
|
17271
17359
|
${commonHeadingAttr(true)}
|
|
17272
17360
|
${commonLineHeight}
|
|
17273
17361
|
`;
|
|
17274
|
-
var heading2Element =
|
|
17362
|
+
var heading2Element = css82`
|
|
17275
17363
|
${h22}
|
|
17276
17364
|
${commonHeadingAttr(true)}
|
|
17277
17365
|
${commonLineHeight}
|
|
17278
17366
|
`;
|
|
17279
|
-
var heading3Element =
|
|
17367
|
+
var heading3Element = css82`
|
|
17280
17368
|
${h32}
|
|
17281
17369
|
${commonHeadingAttr(true)}
|
|
17282
17370
|
${commonLineHeight}
|
|
17283
17371
|
`;
|
|
17284
|
-
var heading4Element =
|
|
17372
|
+
var heading4Element = css82`
|
|
17285
17373
|
${h42}
|
|
17286
17374
|
${commonHeadingAttr(true)}
|
|
17287
17375
|
${commonLineHeight}
|
|
17288
17376
|
`;
|
|
17289
|
-
var heading5Element =
|
|
17377
|
+
var heading5Element = css82`
|
|
17290
17378
|
${h52}
|
|
17291
17379
|
${commonHeadingAttr(true)}
|
|
17292
17380
|
${commonLineHeight}
|
|
17293
17381
|
`;
|
|
17294
|
-
var heading6Element =
|
|
17382
|
+
var heading6Element = css82`
|
|
17295
17383
|
${h62}
|
|
17296
17384
|
${commonHeadingAttr(true)}
|
|
17297
17385
|
${commonLineHeight}
|
|
17298
17386
|
`;
|
|
17299
|
-
var paragraphElement =
|
|
17387
|
+
var paragraphElement = css82`
|
|
17300
17388
|
line-height: 1.5;
|
|
17301
17389
|
margin-bottom: var(--spacing-base);
|
|
17302
17390
|
|
|
@@ -17304,7 +17392,7 @@ var paragraphElement = css81`
|
|
|
17304
17392
|
margin-bottom: 0;
|
|
17305
17393
|
}
|
|
17306
17394
|
`;
|
|
17307
|
-
var orderedListElement =
|
|
17395
|
+
var orderedListElement = css82`
|
|
17308
17396
|
${commonLineHeight}
|
|
17309
17397
|
display: block;
|
|
17310
17398
|
list-style: decimal;
|
|
@@ -17333,7 +17421,7 @@ var orderedListElement = css81`
|
|
|
17333
17421
|
}
|
|
17334
17422
|
}
|
|
17335
17423
|
`;
|
|
17336
|
-
var unorderedListElement =
|
|
17424
|
+
var unorderedListElement = css82`
|
|
17337
17425
|
${commonLineHeight}
|
|
17338
17426
|
display: block;
|
|
17339
17427
|
list-style: disc;
|
|
@@ -17354,13 +17442,13 @@ var unorderedListElement = css81`
|
|
|
17354
17442
|
}
|
|
17355
17443
|
}
|
|
17356
17444
|
`;
|
|
17357
|
-
var listItemElement =
|
|
17445
|
+
var listItemElement = css82`
|
|
17358
17446
|
margin-left: var(--spacing-md);
|
|
17359
17447
|
`;
|
|
17360
|
-
var nestedListItemElement =
|
|
17448
|
+
var nestedListItemElement = css82`
|
|
17361
17449
|
list-style-type: none;
|
|
17362
17450
|
`;
|
|
17363
|
-
var blockquoteElement =
|
|
17451
|
+
var blockquoteElement = css82`
|
|
17364
17452
|
border-left: 0.25rem solid var(--gray-300);
|
|
17365
17453
|
color: var(--gray-600);
|
|
17366
17454
|
margin-bottom: var(--spacing-base);
|
|
@@ -17370,7 +17458,7 @@ var blockquoteElement = css81`
|
|
|
17370
17458
|
margin-bottom: 0;
|
|
17371
17459
|
}
|
|
17372
17460
|
`;
|
|
17373
|
-
var codeElement =
|
|
17461
|
+
var codeElement = css82`
|
|
17374
17462
|
background-color: var(--gray-100);
|
|
17375
17463
|
border-radius: var(--rounded-sm);
|
|
17376
17464
|
display: block;
|
|
@@ -17387,7 +17475,7 @@ var codeElement = css81`
|
|
|
17387
17475
|
`;
|
|
17388
17476
|
|
|
17389
17477
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
17390
|
-
import { css as
|
|
17478
|
+
import { css as css83 } from "@emotion/react";
|
|
17391
17479
|
import { useLexicalComposerContext as useLexicalComposerContext2 } from "@lexical/react/LexicalComposerContext";
|
|
17392
17480
|
import { NodeEventPlugin } from "@lexical/react/LexicalNodeEventPlugin";
|
|
17393
17481
|
import { addClassNamesToElement, isHTMLAnchorElement, mergeRegister as mergeRegister2 } from "@lexical/utils";
|
|
@@ -17441,7 +17529,7 @@ var getSelectedNode = (selection) => {
|
|
|
17441
17529
|
};
|
|
17442
17530
|
|
|
17443
17531
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
17444
|
-
import { Fragment as Fragment18, jsx as
|
|
17532
|
+
import { Fragment as Fragment18, jsx as jsx102, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
|
|
17445
17533
|
var isProjectMapLinkValue = (value) => {
|
|
17446
17534
|
return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
|
|
17447
17535
|
value.nodeId && value.path && value.projectMapId
|
|
@@ -17728,16 +17816,16 @@ var OPEN_LINK_NODE_MODAL_COMMAND = createCommand(
|
|
|
17728
17816
|
);
|
|
17729
17817
|
var LINK_POPOVER_OFFSET_X = 0;
|
|
17730
17818
|
var LINK_POPOVER_OFFSET_Y = 8;
|
|
17731
|
-
var linkPopover =
|
|
17819
|
+
var linkPopover = css83`
|
|
17732
17820
|
position: absolute;
|
|
17733
17821
|
z-index: 5;
|
|
17734
17822
|
`;
|
|
17735
|
-
var linkPopoverContainer =
|
|
17823
|
+
var linkPopoverContainer = css83`
|
|
17736
17824
|
${Popover};
|
|
17737
17825
|
align-items: center;
|
|
17738
17826
|
display: flex;
|
|
17739
17827
|
`;
|
|
17740
|
-
var linkPopoverAnchor =
|
|
17828
|
+
var linkPopoverAnchor = css83`
|
|
17741
17829
|
${link}
|
|
17742
17830
|
${linkColorDefault}
|
|
17743
17831
|
`;
|
|
@@ -17885,7 +17973,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17885
17973
|
});
|
|
17886
17974
|
};
|
|
17887
17975
|
return /* @__PURE__ */ jsxs69(Fragment18, { children: [
|
|
17888
|
-
/* @__PURE__ */
|
|
17976
|
+
/* @__PURE__ */ jsx102(
|
|
17889
17977
|
NodeEventPlugin,
|
|
17890
17978
|
{
|
|
17891
17979
|
nodeType: LinkNode,
|
|
@@ -17895,7 +17983,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17895
17983
|
}
|
|
17896
17984
|
}
|
|
17897
17985
|
),
|
|
17898
|
-
linkPopoverState ? /* @__PURE__ */
|
|
17986
|
+
linkPopoverState ? /* @__PURE__ */ jsx102(
|
|
17899
17987
|
"div",
|
|
17900
17988
|
{
|
|
17901
17989
|
css: linkPopover,
|
|
@@ -17905,7 +17993,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17905
17993
|
},
|
|
17906
17994
|
ref: linkPopoverElRef,
|
|
17907
17995
|
children: /* @__PURE__ */ jsxs69("div", { css: linkPopoverContainer, children: [
|
|
17908
|
-
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */
|
|
17996
|
+
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ jsx102(
|
|
17909
17997
|
"a",
|
|
17910
17998
|
{
|
|
17911
17999
|
href: parsePath(
|
|
@@ -17917,7 +18005,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17917
18005
|
children: parsePath(linkPopoverState.node.__link.path)
|
|
17918
18006
|
}
|
|
17919
18007
|
),
|
|
17920
|
-
/* @__PURE__ */
|
|
18008
|
+
/* @__PURE__ */ jsx102(
|
|
17921
18009
|
Button,
|
|
17922
18010
|
{
|
|
17923
18011
|
size: "xs",
|
|
@@ -17925,7 +18013,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
17925
18013
|
onEditLinkNode(linkPopoverState.node);
|
|
17926
18014
|
},
|
|
17927
18015
|
buttonType: "ghost",
|
|
17928
|
-
children: /* @__PURE__ */
|
|
18016
|
+
children: /* @__PURE__ */ jsx102(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
|
|
17929
18017
|
}
|
|
17930
18018
|
)
|
|
17931
18019
|
] })
|
|
@@ -17950,7 +18038,7 @@ import {
|
|
|
17950
18038
|
INDENT_CONTENT_COMMAND
|
|
17951
18039
|
} from "lexical";
|
|
17952
18040
|
import { useEffect as useEffect12 } from "react";
|
|
17953
|
-
import { jsx as
|
|
18041
|
+
import { jsx as jsx103 } from "@emotion/react/jsx-runtime";
|
|
17954
18042
|
function isIndentPermitted(maxDepth) {
|
|
17955
18043
|
const selection = $getSelection2();
|
|
17956
18044
|
if (!$isRangeSelection2(selection)) {
|
|
@@ -17980,11 +18068,11 @@ function ListIndentPlugin({ maxDepth }) {
|
|
|
17980
18068
|
COMMAND_PRIORITY_CRITICAL
|
|
17981
18069
|
);
|
|
17982
18070
|
}, [editor, maxDepth]);
|
|
17983
|
-
return /* @__PURE__ */
|
|
18071
|
+
return /* @__PURE__ */ jsx103(TabIndentationPlugin, {});
|
|
17984
18072
|
}
|
|
17985
18073
|
|
|
17986
18074
|
// src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
|
|
17987
|
-
import { css as
|
|
18075
|
+
import { css as css84 } from "@emotion/react";
|
|
17988
18076
|
import { $createCodeNode } from "@lexical/code";
|
|
17989
18077
|
import {
|
|
17990
18078
|
$isListNode as $isListNode2,
|
|
@@ -18007,8 +18095,8 @@ import {
|
|
|
18007
18095
|
SELECTION_CHANGE_COMMAND
|
|
18008
18096
|
} from "lexical";
|
|
18009
18097
|
import { useCallback as useCallback6, useEffect as useEffect13, useMemo as useMemo3, useState as useState13 } from "react";
|
|
18010
|
-
import { Fragment as Fragment19, jsx as
|
|
18011
|
-
var toolbar =
|
|
18098
|
+
import { Fragment as Fragment19, jsx as jsx104, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
18099
|
+
var toolbar = css84`
|
|
18012
18100
|
background: var(--gray-50);
|
|
18013
18101
|
border-radius: var(--rounded-base);
|
|
18014
18102
|
display: flex;
|
|
@@ -18020,7 +18108,7 @@ var toolbar = css83`
|
|
|
18020
18108
|
top: calc(var(--spacing-sm) * -2);
|
|
18021
18109
|
z-index: 10;
|
|
18022
18110
|
`;
|
|
18023
|
-
var toolbarGroup =
|
|
18111
|
+
var toolbarGroup = css84`
|
|
18024
18112
|
display: flex;
|
|
18025
18113
|
gap: var(--spacing-xs);
|
|
18026
18114
|
position: relative;
|
|
@@ -18036,7 +18124,7 @@ var toolbarGroup = css83`
|
|
|
18036
18124
|
width: 1px;
|
|
18037
18125
|
}
|
|
18038
18126
|
`;
|
|
18039
|
-
var richTextToolbarButton =
|
|
18127
|
+
var richTextToolbarButton = css84`
|
|
18040
18128
|
align-items: center;
|
|
18041
18129
|
appearance: none;
|
|
18042
18130
|
border: 0;
|
|
@@ -18049,17 +18137,17 @@ var richTextToolbarButton = css83`
|
|
|
18049
18137
|
min-width: 32px;
|
|
18050
18138
|
padding: 0 var(--spacing-sm);
|
|
18051
18139
|
`;
|
|
18052
|
-
var richTextToolbarButtonActive =
|
|
18140
|
+
var richTextToolbarButtonActive = css84`
|
|
18053
18141
|
background: var(--gray-200);
|
|
18054
18142
|
`;
|
|
18055
|
-
var toolbarIcon =
|
|
18143
|
+
var toolbarIcon = css84`
|
|
18056
18144
|
color: inherit;
|
|
18057
18145
|
`;
|
|
18058
|
-
var toolbarChevron =
|
|
18146
|
+
var toolbarChevron = css84`
|
|
18059
18147
|
margin-left: var(--spacing-xs);
|
|
18060
18148
|
`;
|
|
18061
18149
|
var RichTextToolbarIcon = ({ icon }) => {
|
|
18062
|
-
return /* @__PURE__ */
|
|
18150
|
+
return /* @__PURE__ */ jsx104(Icon, { icon, css: toolbarIcon, size: "1rem" });
|
|
18063
18151
|
};
|
|
18064
18152
|
var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
|
|
18065
18153
|
["bold", "format-bold"],
|
|
@@ -18176,7 +18264,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18176
18264
|
menuTrigger: /* @__PURE__ */ jsxs70("button", { css: richTextToolbarButton, title: "Text styles", children: [
|
|
18177
18265
|
visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
|
|
18178
18266
|
" ",
|
|
18179
|
-
/* @__PURE__ */
|
|
18267
|
+
/* @__PURE__ */ jsx104(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
|
|
18180
18268
|
] }),
|
|
18181
18269
|
placement: "bottom-start",
|
|
18182
18270
|
children: [
|
|
@@ -18186,7 +18274,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18186
18274
|
type: "paragraph"
|
|
18187
18275
|
},
|
|
18188
18276
|
...visibleTextualElements
|
|
18189
|
-
].map((element) => /* @__PURE__ */
|
|
18277
|
+
].map((element) => /* @__PURE__ */ jsx104(
|
|
18190
18278
|
MenuItem,
|
|
18191
18279
|
{
|
|
18192
18280
|
onClick: () => {
|
|
@@ -18196,12 +18284,12 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18196
18284
|
},
|
|
18197
18285
|
element.type
|
|
18198
18286
|
)),
|
|
18199
|
-
visibleTextualElements.length === 0 ? /* @__PURE__ */
|
|
18287
|
+
visibleTextualElements.length === 0 ? /* @__PURE__ */ jsx104(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
|
|
18200
18288
|
]
|
|
18201
18289
|
}
|
|
18202
18290
|
),
|
|
18203
18291
|
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsxs70("div", { css: toolbarGroup, children: [
|
|
18204
|
-
visibleFormatsWithIcon.map((format) => /* @__PURE__ */
|
|
18292
|
+
visibleFormatsWithIcon.map((format) => /* @__PURE__ */ jsx104(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ jsx104(
|
|
18205
18293
|
"button",
|
|
18206
18294
|
{
|
|
18207
18295
|
onClick: () => {
|
|
@@ -18211,16 +18299,16 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18211
18299
|
richTextToolbarButton,
|
|
18212
18300
|
activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
|
|
18213
18301
|
],
|
|
18214
|
-
children: /* @__PURE__ */
|
|
18302
|
+
children: /* @__PURE__ */ jsx104(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
|
|
18215
18303
|
}
|
|
18216
18304
|
) }, format.type)),
|
|
18217
|
-
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
18305
|
+
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsx104(
|
|
18218
18306
|
Menu,
|
|
18219
18307
|
{
|
|
18220
18308
|
menuLabel: "Alternative text styles",
|
|
18221
|
-
menuTrigger: /* @__PURE__ */
|
|
18309
|
+
menuTrigger: /* @__PURE__ */ jsx104("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ jsx104(Icon, { icon: "more-alt", css: toolbarIcon }) }),
|
|
18222
18310
|
placement: "bottom-start",
|
|
18223
|
-
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */
|
|
18311
|
+
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ jsx104(
|
|
18224
18312
|
MenuItem,
|
|
18225
18313
|
{
|
|
18226
18314
|
onClick: () => {
|
|
@@ -18234,18 +18322,18 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18234
18322
|
) : null
|
|
18235
18323
|
] }) : null,
|
|
18236
18324
|
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ jsxs70("div", { css: toolbarGroup, children: [
|
|
18237
|
-
linkElementVisible ? /* @__PURE__ */
|
|
18325
|
+
linkElementVisible ? /* @__PURE__ */ jsx104(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ jsx104(
|
|
18238
18326
|
"button",
|
|
18239
18327
|
{
|
|
18240
18328
|
onClick: () => {
|
|
18241
18329
|
isLink ? editor.dispatchCommand(REMOVE_LINK_NODE_COMMAND, {}) : editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
|
|
18242
18330
|
},
|
|
18243
18331
|
css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
|
|
18244
|
-
children: /* @__PURE__ */
|
|
18332
|
+
children: /* @__PURE__ */ jsx104(RichTextToolbarIcon, { icon: "link" })
|
|
18245
18333
|
}
|
|
18246
18334
|
) }) : null,
|
|
18247
18335
|
visibleLists.size > 0 ? /* @__PURE__ */ jsxs70(Fragment19, { children: [
|
|
18248
|
-
visibleLists.has("unorderedList") ? /* @__PURE__ */
|
|
18336
|
+
visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx104(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx104(
|
|
18249
18337
|
"button",
|
|
18250
18338
|
{
|
|
18251
18339
|
onClick: () => {
|
|
@@ -18255,10 +18343,10 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18255
18343
|
richTextToolbarButton,
|
|
18256
18344
|
activeElement === "unorderedList" ? richTextToolbarButtonActive : null
|
|
18257
18345
|
],
|
|
18258
|
-
children: /* @__PURE__ */
|
|
18346
|
+
children: /* @__PURE__ */ jsx104(RichTextToolbarIcon, { icon: "layout-list" })
|
|
18259
18347
|
}
|
|
18260
18348
|
) }) : null,
|
|
18261
|
-
visibleLists.has("orderedList") ? /* @__PURE__ */
|
|
18349
|
+
visibleLists.has("orderedList") ? /* @__PURE__ */ jsx104(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ jsx104(
|
|
18262
18350
|
"button",
|
|
18263
18351
|
{
|
|
18264
18352
|
onClick: () => {
|
|
@@ -18268,32 +18356,32 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
18268
18356
|
richTextToolbarButton,
|
|
18269
18357
|
activeElement === "orderedList" ? richTextToolbarButtonActive : null
|
|
18270
18358
|
],
|
|
18271
|
-
children: /* @__PURE__ */
|
|
18359
|
+
children: /* @__PURE__ */ jsx104(RichTextToolbarIcon, { icon: "layout-list-numbered" })
|
|
18272
18360
|
}
|
|
18273
18361
|
) }) : null
|
|
18274
18362
|
] }) : null,
|
|
18275
|
-
quoteElementVisible ? /* @__PURE__ */
|
|
18363
|
+
quoteElementVisible ? /* @__PURE__ */ jsx104(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ jsx104(
|
|
18276
18364
|
"button",
|
|
18277
18365
|
{
|
|
18278
18366
|
onClick: () => {
|
|
18279
18367
|
activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
|
|
18280
18368
|
},
|
|
18281
18369
|
css: [richTextToolbarButton, activeElement === "quote" ? richTextToolbarButtonActive : null],
|
|
18282
|
-
children: /* @__PURE__ */
|
|
18370
|
+
children: /* @__PURE__ */ jsx104(RichTextToolbarIcon, { icon: "quote" })
|
|
18283
18371
|
}
|
|
18284
18372
|
) }) : null,
|
|
18285
|
-
codeElementVisible ? /* @__PURE__ */
|
|
18373
|
+
codeElementVisible ? /* @__PURE__ */ jsx104(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ jsx104(
|
|
18286
18374
|
"button",
|
|
18287
18375
|
{
|
|
18288
18376
|
onClick: () => {
|
|
18289
18377
|
activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
|
|
18290
18378
|
},
|
|
18291
18379
|
css: [richTextToolbarButton, activeElement === "code" ? richTextToolbarButtonActive : null],
|
|
18292
|
-
children: /* @__PURE__ */
|
|
18380
|
+
children: /* @__PURE__ */ jsx104(RichTextToolbarIcon, { icon: "code-slash" })
|
|
18293
18381
|
}
|
|
18294
18382
|
) }) : null
|
|
18295
18383
|
] }) : null,
|
|
18296
|
-
customControls ? /* @__PURE__ */
|
|
18384
|
+
customControls ? /* @__PURE__ */ jsx104("div", { css: toolbarGroup, children: customControls }) : null
|
|
18297
18385
|
] });
|
|
18298
18386
|
};
|
|
18299
18387
|
var RichTextToolbar_default = RichTextToolbar;
|
|
@@ -18407,7 +18495,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
18407
18495
|
};
|
|
18408
18496
|
|
|
18409
18497
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
18410
|
-
import { Fragment as Fragment20, jsx as
|
|
18498
|
+
import { Fragment as Fragment20, jsx as jsx105, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
|
|
18411
18499
|
var ParameterRichText = ({
|
|
18412
18500
|
label,
|
|
18413
18501
|
labelLeadingIcon,
|
|
@@ -18446,7 +18534,7 @@ var ParameterRichText = ({
|
|
|
18446
18534
|
captionTestId,
|
|
18447
18535
|
menuItems,
|
|
18448
18536
|
children: [
|
|
18449
|
-
/* @__PURE__ */
|
|
18537
|
+
/* @__PURE__ */ jsx105(
|
|
18450
18538
|
ParameterRichTextInner,
|
|
18451
18539
|
{
|
|
18452
18540
|
value,
|
|
@@ -18464,23 +18552,23 @@ var ParameterRichText = ({
|
|
|
18464
18552
|
children
|
|
18465
18553
|
}
|
|
18466
18554
|
),
|
|
18467
|
-
menuItems ? /* @__PURE__ */
|
|
18555
|
+
menuItems ? /* @__PURE__ */ jsx105(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx105(Fragment20, { children: menuItems }) }) : null
|
|
18468
18556
|
]
|
|
18469
18557
|
}
|
|
18470
18558
|
);
|
|
18471
18559
|
};
|
|
18472
|
-
var editorWrapper =
|
|
18560
|
+
var editorWrapper = css85`
|
|
18473
18561
|
display: flex;
|
|
18474
18562
|
flex-flow: column;
|
|
18475
18563
|
flex-grow: 1;
|
|
18476
18564
|
`;
|
|
18477
|
-
var editorContainer =
|
|
18565
|
+
var editorContainer = css85`
|
|
18478
18566
|
display: flex;
|
|
18479
18567
|
flex-flow: column;
|
|
18480
18568
|
flex-grow: 1;
|
|
18481
18569
|
position: relative;
|
|
18482
18570
|
`;
|
|
18483
|
-
var editorPlaceholder =
|
|
18571
|
+
var editorPlaceholder = css85`
|
|
18484
18572
|
color: var(--gray-500);
|
|
18485
18573
|
font-style: italic;
|
|
18486
18574
|
/* 1px is added to make sure caret is clearly visible when field is focused
|
|
@@ -18491,7 +18579,7 @@ var editorPlaceholder = css84`
|
|
|
18491
18579
|
top: var(--spacing-xs);
|
|
18492
18580
|
user-select: none;
|
|
18493
18581
|
`;
|
|
18494
|
-
var editorInput =
|
|
18582
|
+
var editorInput = css85`
|
|
18495
18583
|
background: var(--white);
|
|
18496
18584
|
border: 1px solid var(--white);
|
|
18497
18585
|
border-radius: var(--rounded-sm);
|
|
@@ -18576,7 +18664,7 @@ var ParameterRichTextInner = ({
|
|
|
18576
18664
|
editable: !readOnly
|
|
18577
18665
|
};
|
|
18578
18666
|
return /* @__PURE__ */ jsxs71(Fragment20, { children: [
|
|
18579
|
-
/* @__PURE__ */
|
|
18667
|
+
/* @__PURE__ */ jsx105("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx105(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx105(
|
|
18580
18668
|
RichText,
|
|
18581
18669
|
{
|
|
18582
18670
|
onChange,
|
|
@@ -18633,19 +18721,19 @@ var RichText = ({
|
|
|
18633
18721
|
};
|
|
18634
18722
|
}, []);
|
|
18635
18723
|
return /* @__PURE__ */ jsxs71(Fragment20, { children: [
|
|
18636
|
-
readOnly ? null : /* @__PURE__ */
|
|
18724
|
+
readOnly ? null : /* @__PURE__ */ jsx105(RichTextToolbar_default, { config, customControls }),
|
|
18637
18725
|
/* @__PURE__ */ jsxs71("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
|
|
18638
|
-
/* @__PURE__ */
|
|
18726
|
+
/* @__PURE__ */ jsx105(
|
|
18639
18727
|
RichTextPlugin,
|
|
18640
18728
|
{
|
|
18641
|
-
contentEditable: /* @__PURE__ */
|
|
18642
|
-
placeholder: /* @__PURE__ */
|
|
18729
|
+
contentEditable: /* @__PURE__ */ jsx105(ContentEditable, { css: editorInput, className: editorInputClassName }),
|
|
18730
|
+
placeholder: /* @__PURE__ */ jsx105("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
|
|
18643
18731
|
ErrorBoundary: LexicalErrorBoundary
|
|
18644
18732
|
}
|
|
18645
18733
|
),
|
|
18646
|
-
/* @__PURE__ */
|
|
18647
|
-
readOnly ? null : /* @__PURE__ */
|
|
18648
|
-
/* @__PURE__ */
|
|
18734
|
+
/* @__PURE__ */ jsx105(ListPlugin, {}),
|
|
18735
|
+
readOnly ? null : /* @__PURE__ */ jsx105(HistoryPlugin, {}),
|
|
18736
|
+
/* @__PURE__ */ jsx105(
|
|
18649
18737
|
LinkNodePlugin,
|
|
18650
18738
|
{
|
|
18651
18739
|
onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
|
|
@@ -18655,21 +18743,21 @@ var RichText = ({
|
|
|
18655
18743
|
} : void 0
|
|
18656
18744
|
}
|
|
18657
18745
|
),
|
|
18658
|
-
/* @__PURE__ */
|
|
18659
|
-
/* @__PURE__ */
|
|
18660
|
-
/* @__PURE__ */
|
|
18661
|
-
/* @__PURE__ */
|
|
18746
|
+
/* @__PURE__ */ jsx105(ListIndentPlugin, { maxDepth: 4 }),
|
|
18747
|
+
/* @__PURE__ */ jsx105(DisableStylesPlugin, {}),
|
|
18748
|
+
/* @__PURE__ */ jsx105(MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
|
|
18749
|
+
/* @__PURE__ */ jsx105(Fragment20, { children })
|
|
18662
18750
|
] })
|
|
18663
18751
|
] });
|
|
18664
18752
|
};
|
|
18665
18753
|
|
|
18666
18754
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
18667
18755
|
import { forwardRef as forwardRef15 } from "react";
|
|
18668
|
-
import { jsx as
|
|
18756
|
+
import { jsx as jsx106, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
|
|
18669
18757
|
var ParameterSelect = forwardRef15(
|
|
18670
18758
|
({ defaultOption, options, ...props }, ref) => {
|
|
18671
18759
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18672
|
-
return /* @__PURE__ */
|
|
18760
|
+
return /* @__PURE__ */ jsx106(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx106(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
18673
18761
|
}
|
|
18674
18762
|
);
|
|
18675
18763
|
var ParameterSelectInner = forwardRef15(
|
|
@@ -18684,10 +18772,10 @@ var ParameterSelectInner = forwardRef15(
|
|
|
18684
18772
|
ref,
|
|
18685
18773
|
...props,
|
|
18686
18774
|
children: [
|
|
18687
|
-
defaultOption ? /* @__PURE__ */
|
|
18775
|
+
defaultOption ? /* @__PURE__ */ jsx106("option", { value: "", children: defaultOption }) : null,
|
|
18688
18776
|
options.map((option) => {
|
|
18689
18777
|
var _a;
|
|
18690
|
-
return /* @__PURE__ */
|
|
18778
|
+
return /* @__PURE__ */ jsx106("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
18691
18779
|
})
|
|
18692
18780
|
]
|
|
18693
18781
|
}
|
|
@@ -18697,14 +18785,14 @@ var ParameterSelectInner = forwardRef15(
|
|
|
18697
18785
|
|
|
18698
18786
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
18699
18787
|
import { forwardRef as forwardRef16 } from "react";
|
|
18700
|
-
import { jsx as
|
|
18788
|
+
import { jsx as jsx107 } from "@emotion/react/jsx-runtime";
|
|
18701
18789
|
var ParameterTextarea = forwardRef16((props, ref) => {
|
|
18702
18790
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18703
|
-
return /* @__PURE__ */
|
|
18791
|
+
return /* @__PURE__ */ jsx107(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx107(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
18704
18792
|
});
|
|
18705
18793
|
var ParameterTextareaInner = forwardRef16(({ ...props }, ref) => {
|
|
18706
18794
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
18707
|
-
return /* @__PURE__ */
|
|
18795
|
+
return /* @__PURE__ */ jsx107(
|
|
18708
18796
|
"textarea",
|
|
18709
18797
|
{
|
|
18710
18798
|
css: [input2, textarea2],
|
|
@@ -18718,24 +18806,24 @@ var ParameterTextareaInner = forwardRef16(({ ...props }, ref) => {
|
|
|
18718
18806
|
|
|
18719
18807
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
18720
18808
|
import { forwardRef as forwardRef17 } from "react";
|
|
18721
|
-
import { jsx as
|
|
18809
|
+
import { jsx as jsx108, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
|
|
18722
18810
|
var ParameterToggle = forwardRef17((props, ref) => {
|
|
18723
18811
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18724
|
-
return /* @__PURE__ */
|
|
18812
|
+
return /* @__PURE__ */ jsx108(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx108(ParameterToggleInner, { ref, ...innerProps }) });
|
|
18725
18813
|
});
|
|
18726
18814
|
var ParameterToggleInner = forwardRef17(
|
|
18727
18815
|
({ ...props }, ref) => {
|
|
18728
18816
|
const { id, label } = useParameterShell();
|
|
18729
18817
|
return /* @__PURE__ */ jsxs73("label", { css: inputToggleLabel2, children: [
|
|
18730
|
-
/* @__PURE__ */
|
|
18731
|
-
/* @__PURE__ */
|
|
18818
|
+
/* @__PURE__ */ jsx108("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
18819
|
+
/* @__PURE__ */ jsx108("span", { css: inlineLabel2, children: label })
|
|
18732
18820
|
] });
|
|
18733
18821
|
}
|
|
18734
18822
|
);
|
|
18735
18823
|
|
|
18736
18824
|
// src/components/ProgressBar/ProgressBar.styles.ts
|
|
18737
|
-
import { css as
|
|
18738
|
-
var
|
|
18825
|
+
import { css as css86, keyframes as keyframes4 } from "@emotion/react";
|
|
18826
|
+
var container2 = css86`
|
|
18739
18827
|
background: var(--gray-50);
|
|
18740
18828
|
margin-block: var(--spacing-sm);
|
|
18741
18829
|
position: relative;
|
|
@@ -18745,13 +18833,13 @@ var container = css85`
|
|
|
18745
18833
|
border: solid 1px var(--gray-300);
|
|
18746
18834
|
`;
|
|
18747
18835
|
var themeMap = {
|
|
18748
|
-
primary:
|
|
18836
|
+
primary: css86`
|
|
18749
18837
|
--progress-color: var(--accent-light);
|
|
18750
18838
|
`,
|
|
18751
|
-
secondary:
|
|
18839
|
+
secondary: css86`
|
|
18752
18840
|
--progress-color: var(--accent-alt-light);
|
|
18753
18841
|
`,
|
|
18754
|
-
destructive:
|
|
18842
|
+
destructive: css86`
|
|
18755
18843
|
--progress-color: var(--brand-secondary-5);
|
|
18756
18844
|
`
|
|
18757
18845
|
};
|
|
@@ -18763,10 +18851,10 @@ var slidingBackgroundPosition = keyframes4`
|
|
|
18763
18851
|
background-position: 64px 0;
|
|
18764
18852
|
}
|
|
18765
18853
|
`;
|
|
18766
|
-
var determinate =
|
|
18854
|
+
var determinate = css86`
|
|
18767
18855
|
background-color: var(--progress-color);
|
|
18768
18856
|
`;
|
|
18769
|
-
var indeterminate =
|
|
18857
|
+
var indeterminate = css86`
|
|
18770
18858
|
background-image: linear-gradient(
|
|
18771
18859
|
45deg,
|
|
18772
18860
|
var(--progress-color) 25%,
|
|
@@ -18780,7 +18868,7 @@ var indeterminate = css85`
|
|
|
18780
18868
|
background-size: 64px 64px;
|
|
18781
18869
|
animation: ${slidingBackgroundPosition} 1s linear infinite;
|
|
18782
18870
|
`;
|
|
18783
|
-
var bar =
|
|
18871
|
+
var bar = css86`
|
|
18784
18872
|
position: absolute;
|
|
18785
18873
|
inset: 0;
|
|
18786
18874
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
@@ -18788,7 +18876,7 @@ var bar = css85`
|
|
|
18788
18876
|
`;
|
|
18789
18877
|
|
|
18790
18878
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
18791
|
-
import { jsx as
|
|
18879
|
+
import { jsx as jsx109 } from "@emotion/react/jsx-runtime";
|
|
18792
18880
|
function ProgressBar({
|
|
18793
18881
|
current,
|
|
18794
18882
|
max,
|
|
@@ -18798,10 +18886,10 @@ function ProgressBar({
|
|
|
18798
18886
|
}) {
|
|
18799
18887
|
const valueNow = Math.min(current, max);
|
|
18800
18888
|
const valuePercentage = max > 0 ? Math.ceil(100 / max * valueNow) : 0;
|
|
18801
|
-
return /* @__PURE__ */
|
|
18889
|
+
return /* @__PURE__ */ jsx109(
|
|
18802
18890
|
"div",
|
|
18803
18891
|
{
|
|
18804
|
-
css:
|
|
18892
|
+
css: container2,
|
|
18805
18893
|
role: "progressbar",
|
|
18806
18894
|
"aria-busy": valuePercentage !== 100,
|
|
18807
18895
|
"aria-invalid": false,
|
|
@@ -18809,7 +18897,7 @@ function ProgressBar({
|
|
|
18809
18897
|
"aria-valuemax": max,
|
|
18810
18898
|
"aria-valuenow": valueNow,
|
|
18811
18899
|
...props,
|
|
18812
|
-
children: /* @__PURE__ */
|
|
18900
|
+
children: /* @__PURE__ */ jsx109(
|
|
18813
18901
|
"div",
|
|
18814
18902
|
{
|
|
18815
18903
|
css: [
|
|
@@ -18828,28 +18916,28 @@ function ProgressBar({
|
|
|
18828
18916
|
}
|
|
18829
18917
|
|
|
18830
18918
|
// src/components/ProgressList/ProgressList.tsx
|
|
18831
|
-
import { css as
|
|
18919
|
+
import { css as css88 } from "@emotion/react";
|
|
18832
18920
|
import { CgCheckO as CgCheckO2 } from "@react-icons/all-files/cg/CgCheckO";
|
|
18833
18921
|
import { CgRadioCheck } from "@react-icons/all-files/cg/CgRadioCheck";
|
|
18834
18922
|
import { CgRecord } from "@react-icons/all-files/cg/CgRecord";
|
|
18835
18923
|
import { useMemo as useMemo4 } from "react";
|
|
18836
18924
|
|
|
18837
18925
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
18838
|
-
import { css as
|
|
18839
|
-
var progressListStyles =
|
|
18926
|
+
import { css as css87 } from "@emotion/react";
|
|
18927
|
+
var progressListStyles = css87`
|
|
18840
18928
|
display: flex;
|
|
18841
18929
|
flex-direction: column;
|
|
18842
18930
|
gap: var(--spacing-sm);
|
|
18843
18931
|
list-style-type: none;
|
|
18844
18932
|
`;
|
|
18845
|
-
var progressListItemStyles =
|
|
18933
|
+
var progressListItemStyles = css87`
|
|
18846
18934
|
display: flex;
|
|
18847
18935
|
gap: var(--spacing-base);
|
|
18848
18936
|
align-items: center;
|
|
18849
18937
|
`;
|
|
18850
18938
|
|
|
18851
18939
|
// src/components/ProgressList/ProgressList.tsx
|
|
18852
|
-
import { jsx as
|
|
18940
|
+
import { jsx as jsx110, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
|
|
18853
18941
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
18854
18942
|
const itemsWithStatus = useMemo4(() => {
|
|
18855
18943
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -18863,8 +18951,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
18863
18951
|
return { ...item, status };
|
|
18864
18952
|
});
|
|
18865
18953
|
}, [items, inProgressId]);
|
|
18866
|
-
return /* @__PURE__ */
|
|
18867
|
-
return /* @__PURE__ */
|
|
18954
|
+
return /* @__PURE__ */ jsx110("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
18955
|
+
return /* @__PURE__ */ jsx110(
|
|
18868
18956
|
ProgressListItem,
|
|
18869
18957
|
{
|
|
18870
18958
|
status,
|
|
@@ -18897,12 +18985,12 @@ var ProgressListItem = ({
|
|
|
18897
18985
|
}, [status, error]);
|
|
18898
18986
|
const statusStyles = useMemo4(() => {
|
|
18899
18987
|
if (error) {
|
|
18900
|
-
return errorLevel === "caution" ?
|
|
18988
|
+
return errorLevel === "caution" ? css88`
|
|
18901
18989
|
color: rgb(161, 98, 7);
|
|
18902
18990
|
& svg {
|
|
18903
18991
|
color: rgb(250, 204, 21);
|
|
18904
18992
|
}
|
|
18905
|
-
` :
|
|
18993
|
+
` : css88`
|
|
18906
18994
|
color: rgb(185, 28, 28);
|
|
18907
18995
|
& svg {
|
|
18908
18996
|
color: var(--brand-primary-2);
|
|
@@ -18910,35 +18998,35 @@ var ProgressListItem = ({
|
|
|
18910
18998
|
`;
|
|
18911
18999
|
}
|
|
18912
19000
|
const colorPerStatus = {
|
|
18913
|
-
completed:
|
|
19001
|
+
completed: css88`
|
|
18914
19002
|
opacity: 0.75;
|
|
18915
19003
|
`,
|
|
18916
|
-
inProgress:
|
|
19004
|
+
inProgress: css88`
|
|
18917
19005
|
-webkit-text-stroke-width: thin;
|
|
18918
19006
|
`,
|
|
18919
|
-
queued:
|
|
19007
|
+
queued: css88`
|
|
18920
19008
|
opacity: 0.5;
|
|
18921
19009
|
`
|
|
18922
19010
|
};
|
|
18923
19011
|
return colorPerStatus[status];
|
|
18924
19012
|
}, [status, error, errorLevel]);
|
|
18925
19013
|
return /* @__PURE__ */ jsxs74("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
18926
|
-
/* @__PURE__ */
|
|
19014
|
+
/* @__PURE__ */ jsx110(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx110("div", { children: /* @__PURE__ */ jsx110(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
|
|
18927
19015
|
/* @__PURE__ */ jsxs74("div", { children: [
|
|
18928
19016
|
children,
|
|
18929
|
-
/* @__PURE__ */
|
|
19017
|
+
/* @__PURE__ */ jsx110("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
18930
19018
|
] })
|
|
18931
19019
|
] });
|
|
18932
19020
|
};
|
|
18933
19021
|
|
|
18934
19022
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
18935
|
-
import { css as
|
|
19023
|
+
import { css as css90 } from "@emotion/react";
|
|
18936
19024
|
import { CgCheck as CgCheck4 } from "@react-icons/all-files/cg/CgCheck";
|
|
18937
19025
|
import { useCallback as useCallback7, useMemo as useMemo5 } from "react";
|
|
18938
19026
|
|
|
18939
19027
|
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
18940
|
-
import { css as
|
|
18941
|
-
var segmentedControlStyles =
|
|
19028
|
+
import { css as css89 } from "@emotion/react";
|
|
19029
|
+
var segmentedControlStyles = css89`
|
|
18942
19030
|
--segmented-control-rounded-value: var(--rounded-base);
|
|
18943
19031
|
--segmented-control-border-width: 1px;
|
|
18944
19032
|
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
@@ -18957,14 +19045,14 @@ var segmentedControlStyles = css88`
|
|
|
18957
19045
|
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
18958
19046
|
font-size: var(--fs-xs);
|
|
18959
19047
|
`;
|
|
18960
|
-
var segmentedControlVerticalStyles =
|
|
19048
|
+
var segmentedControlVerticalStyles = css89`
|
|
18961
19049
|
flex-direction: column;
|
|
18962
19050
|
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
18963
19051
|
var(--segmented-control-rounded-value) 0 0;
|
|
18964
19052
|
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
18965
19053
|
var(--segmented-control-rounded-value);
|
|
18966
19054
|
`;
|
|
18967
|
-
var segmentedControlItemStyles =
|
|
19055
|
+
var segmentedControlItemStyles = css89`
|
|
18968
19056
|
&:first-of-type label {
|
|
18969
19057
|
border-radius: var(--segmented-control-first-border-radius);
|
|
18970
19058
|
}
|
|
@@ -18972,10 +19060,10 @@ var segmentedControlItemStyles = css88`
|
|
|
18972
19060
|
border-radius: var(--segmented-control-last-border-radius);
|
|
18973
19061
|
}
|
|
18974
19062
|
`;
|
|
18975
|
-
var segmentedControlInputStyles =
|
|
19063
|
+
var segmentedControlInputStyles = css89`
|
|
18976
19064
|
${accessibleHidden}
|
|
18977
19065
|
`;
|
|
18978
|
-
var segmentedControlLabelStyles = (checked,
|
|
19066
|
+
var segmentedControlLabelStyles = (checked, disabled2) => css89`
|
|
18979
19067
|
position: relative;
|
|
18980
19068
|
display: flex;
|
|
18981
19069
|
align-items: center;
|
|
@@ -19017,7 +19105,7 @@ var segmentedControlLabelStyles = (checked, disabled) => css88`
|
|
|
19017
19105
|
// once Firefox supports :has selector
|
|
19018
19106
|
@supports not selector(:has(*)) {
|
|
19019
19107
|
// equivalent to &:has(:checked:not(:disabled))
|
|
19020
|
-
${checked && !
|
|
19108
|
+
${checked && !disabled2 ? `
|
|
19021
19109
|
background-color: var(--segmented-control-selected-color);
|
|
19022
19110
|
outline: var(--segmented-control-border-width) solid var(--segmented-control-selected-color);
|
|
19023
19111
|
box-shadow: 0 0.43em 1.7em 0 rgba(0, 0, 0, 0.15);
|
|
@@ -19027,45 +19115,45 @@ var segmentedControlLabelStyles = (checked, disabled) => css88`
|
|
|
19027
19115
|
|
|
19028
19116
|
// equivalent to &:hover:not(:has(:disabled, :checked))
|
|
19029
19117
|
&:hover {
|
|
19030
|
-
${!checked && !
|
|
19118
|
+
${!checked && !disabled2 ? `background-color: var(--gray-100);` : void 0}
|
|
19031
19119
|
}
|
|
19032
19120
|
|
|
19033
19121
|
// equivalent to &:has(:disabled)
|
|
19034
|
-
${
|
|
19122
|
+
${disabled2 ? `
|
|
19035
19123
|
color: var(--gray-400);
|
|
19036
19124
|
cursor: default;` : void 0}
|
|
19037
19125
|
|
|
19038
19126
|
// equivalent to &:has(:checked:disabled)
|
|
19039
|
-
${checked &&
|
|
19127
|
+
${checked && disabled2 && `
|
|
19040
19128
|
color: var(--gray-50);
|
|
19041
19129
|
background-color: var(--gray-400);
|
|
19042
19130
|
`}
|
|
19043
19131
|
}
|
|
19044
19132
|
`;
|
|
19045
|
-
var segmentedControlLabelIconOnlyStyles =
|
|
19133
|
+
var segmentedControlLabelIconOnlyStyles = css89`
|
|
19046
19134
|
padding-inline: 0.5em;
|
|
19047
19135
|
`;
|
|
19048
|
-
var segmentedControlLabelCheckStyles =
|
|
19136
|
+
var segmentedControlLabelCheckStyles = css89`
|
|
19049
19137
|
opacity: 0.5;
|
|
19050
19138
|
`;
|
|
19051
|
-
var segmentedControlLabelContentStyles =
|
|
19139
|
+
var segmentedControlLabelContentStyles = css89`
|
|
19052
19140
|
display: flex;
|
|
19053
19141
|
align-items: center;
|
|
19054
19142
|
justify-content: center;
|
|
19055
19143
|
gap: var(--spacing-sm);
|
|
19056
19144
|
height: 100%;
|
|
19057
19145
|
`;
|
|
19058
|
-
var segmentedControlLabelTextStyles =
|
|
19146
|
+
var segmentedControlLabelTextStyles = css89``;
|
|
19059
19147
|
|
|
19060
19148
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
19061
|
-
import { jsx as
|
|
19149
|
+
import { jsx as jsx111, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
|
|
19062
19150
|
var SegmentedControl = ({
|
|
19063
19151
|
name,
|
|
19064
19152
|
options,
|
|
19065
19153
|
value,
|
|
19066
19154
|
onChange,
|
|
19067
19155
|
noCheckmark = false,
|
|
19068
|
-
disabled = false,
|
|
19156
|
+
disabled: disabled2 = false,
|
|
19069
19157
|
orientation = "horizontal",
|
|
19070
19158
|
size = "md",
|
|
19071
19159
|
...props
|
|
@@ -19080,28 +19168,28 @@ var SegmentedControl = ({
|
|
|
19080
19168
|
);
|
|
19081
19169
|
const sizeStyles = useMemo5(() => {
|
|
19082
19170
|
const map = {
|
|
19083
|
-
sm:
|
|
19084
|
-
md:
|
|
19085
|
-
lg:
|
|
19171
|
+
sm: css90({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
19172
|
+
md: css90({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
19173
|
+
lg: css90({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" })
|
|
19086
19174
|
};
|
|
19087
19175
|
return map[size];
|
|
19088
19176
|
}, [size]);
|
|
19089
19177
|
const isIconOnly = useMemo5(() => {
|
|
19090
19178
|
return options.every((option) => option.icon && !option.label);
|
|
19091
19179
|
}, [options]);
|
|
19092
|
-
return /* @__PURE__ */
|
|
19180
|
+
return /* @__PURE__ */ jsx111(
|
|
19093
19181
|
"div",
|
|
19094
19182
|
{
|
|
19095
19183
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
19096
19184
|
...props,
|
|
19097
19185
|
children: options.map((option, index) => {
|
|
19098
19186
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
19099
|
-
const isDisabled =
|
|
19100
|
-
return /* @__PURE__ */
|
|
19187
|
+
const isDisabled = disabled2 || option.disabled;
|
|
19188
|
+
return /* @__PURE__ */ jsx111(
|
|
19101
19189
|
Tooltip,
|
|
19102
19190
|
{
|
|
19103
19191
|
title: isDisabled || !option.tooltip ? "" : option.tooltip,
|
|
19104
|
-
children: /* @__PURE__ */
|
|
19192
|
+
children: /* @__PURE__ */ jsx111("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ jsxs75(
|
|
19105
19193
|
"label",
|
|
19106
19194
|
{
|
|
19107
19195
|
css: [
|
|
@@ -19110,7 +19198,7 @@ var SegmentedControl = ({
|
|
|
19110
19198
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
19111
19199
|
],
|
|
19112
19200
|
children: [
|
|
19113
|
-
/* @__PURE__ */
|
|
19201
|
+
/* @__PURE__ */ jsx111(
|
|
19114
19202
|
"input",
|
|
19115
19203
|
{
|
|
19116
19204
|
css: segmentedControlInputStyles,
|
|
@@ -19122,10 +19210,10 @@ var SegmentedControl = ({
|
|
|
19122
19210
|
disabled: isDisabled
|
|
19123
19211
|
}
|
|
19124
19212
|
),
|
|
19125
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */
|
|
19213
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx111(CgCheck4, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
19126
19214
|
/* @__PURE__ */ jsxs75("span", { css: segmentedControlLabelContentStyles, children: [
|
|
19127
|
-
!option.icon ? null : /* @__PURE__ */
|
|
19128
|
-
!text ? null : /* @__PURE__ */
|
|
19215
|
+
!option.icon ? null : /* @__PURE__ */ jsx111(Icon, { icon: option.icon, size: "1.5em", iconColor: "currentColor" }),
|
|
19216
|
+
!text ? null : /* @__PURE__ */ jsx111("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
19129
19217
|
] })
|
|
19130
19218
|
]
|
|
19131
19219
|
}
|
|
@@ -19139,18 +19227,18 @@ var SegmentedControl = ({
|
|
|
19139
19227
|
};
|
|
19140
19228
|
|
|
19141
19229
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
19142
|
-
import { css as
|
|
19230
|
+
import { css as css91, keyframes as keyframes5 } from "@emotion/react";
|
|
19143
19231
|
var lightFadingOut = keyframes5`
|
|
19144
19232
|
from { opacity: 0.1; }
|
|
19145
19233
|
to { opacity: 0.025; }
|
|
19146
19234
|
`;
|
|
19147
|
-
var skeletonStyles =
|
|
19235
|
+
var skeletonStyles = css91`
|
|
19148
19236
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
19149
19237
|
background-color: var(--gray-900);
|
|
19150
19238
|
`;
|
|
19151
19239
|
|
|
19152
19240
|
// src/components/Skeleton/Skeleton.tsx
|
|
19153
|
-
import { jsx as
|
|
19241
|
+
import { jsx as jsx112 } from "@emotion/react/jsx-runtime";
|
|
19154
19242
|
var Skeleton = ({
|
|
19155
19243
|
width = "100%",
|
|
19156
19244
|
height = "1.25rem",
|
|
@@ -19158,7 +19246,7 @@ var Skeleton = ({
|
|
|
19158
19246
|
circle = false,
|
|
19159
19247
|
children,
|
|
19160
19248
|
...otherProps
|
|
19161
|
-
}) => /* @__PURE__ */
|
|
19249
|
+
}) => /* @__PURE__ */ jsx112(
|
|
19162
19250
|
"div",
|
|
19163
19251
|
{
|
|
19164
19252
|
css: [
|
|
@@ -19181,8 +19269,8 @@ var Skeleton = ({
|
|
|
19181
19269
|
import * as React23 from "react";
|
|
19182
19270
|
|
|
19183
19271
|
// src/components/Switch/Switch.styles.ts
|
|
19184
|
-
import { css as
|
|
19185
|
-
var SwitchInputContainer =
|
|
19272
|
+
import { css as css92 } from "@emotion/react";
|
|
19273
|
+
var SwitchInputContainer = css92`
|
|
19186
19274
|
cursor: pointer;
|
|
19187
19275
|
display: inline-block;
|
|
19188
19276
|
position: relative;
|
|
@@ -19191,7 +19279,7 @@ var SwitchInputContainer = css91`
|
|
|
19191
19279
|
vertical-align: middle;
|
|
19192
19280
|
user-select: none;
|
|
19193
19281
|
`;
|
|
19194
|
-
var SwitchInput =
|
|
19282
|
+
var SwitchInput = css92`
|
|
19195
19283
|
appearance: none;
|
|
19196
19284
|
border-radius: var(--rounded-full);
|
|
19197
19285
|
background-color: var(--white);
|
|
@@ -19229,7 +19317,7 @@ var SwitchInput = css91`
|
|
|
19229
19317
|
cursor: not-allowed;
|
|
19230
19318
|
}
|
|
19231
19319
|
`;
|
|
19232
|
-
var SwitchInputDisabled =
|
|
19320
|
+
var SwitchInputDisabled = css92`
|
|
19233
19321
|
opacity: var(--opacity-50);
|
|
19234
19322
|
cursor: not-allowed;
|
|
19235
19323
|
|
|
@@ -19237,11 +19325,10 @@ var SwitchInputDisabled = css91`
|
|
|
19237
19325
|
cursor: not-allowed;
|
|
19238
19326
|
}
|
|
19239
19327
|
`;
|
|
19240
|
-
var SwitchInputLabel =
|
|
19328
|
+
var SwitchInputLabel = css92`
|
|
19241
19329
|
align-items: center;
|
|
19242
19330
|
color: var(--brand-secondary-1);
|
|
19243
19331
|
display: inline-flex;
|
|
19244
|
-
font-weight: var(--fw-bold);
|
|
19245
19332
|
line-height: 1.25;
|
|
19246
19333
|
padding-inline: var(--spacing-2xl) 0;
|
|
19247
19334
|
|
|
@@ -19259,14 +19346,14 @@ var SwitchInputLabel = css91`
|
|
|
19259
19346
|
top: 0;
|
|
19260
19347
|
}
|
|
19261
19348
|
`;
|
|
19262
|
-
var SwitchText =
|
|
19349
|
+
var SwitchText = css92`
|
|
19263
19350
|
color: var(--gray-500);
|
|
19264
19351
|
font-size: var(--fs-sm);
|
|
19265
19352
|
padding-inline: var(--spacing-2xl) 0;
|
|
19266
19353
|
`;
|
|
19267
19354
|
|
|
19268
19355
|
// src/components/Switch/Switch.tsx
|
|
19269
|
-
import { Fragment as Fragment21, jsx as
|
|
19356
|
+
import { Fragment as Fragment21, jsx as jsx113, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
|
|
19270
19357
|
var Switch = React23.forwardRef(
|
|
19271
19358
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
19272
19359
|
let additionalText = infoText;
|
|
@@ -19275,10 +19362,10 @@ var Switch = React23.forwardRef(
|
|
|
19275
19362
|
}
|
|
19276
19363
|
return /* @__PURE__ */ jsxs76(Fragment21, { children: [
|
|
19277
19364
|
/* @__PURE__ */ jsxs76("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
19278
|
-
/* @__PURE__ */
|
|
19279
|
-
/* @__PURE__ */
|
|
19365
|
+
/* @__PURE__ */ jsx113("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
19366
|
+
/* @__PURE__ */ jsx113("span", { css: SwitchInputLabel, children: label })
|
|
19280
19367
|
] }),
|
|
19281
|
-
additionalText ? /* @__PURE__ */
|
|
19368
|
+
additionalText ? /* @__PURE__ */ jsx113("p", { css: SwitchText, children: additionalText }) : null,
|
|
19282
19369
|
children
|
|
19283
19370
|
] });
|
|
19284
19371
|
}
|
|
@@ -19288,8 +19375,8 @@ var Switch = React23.forwardRef(
|
|
|
19288
19375
|
import * as React24 from "react";
|
|
19289
19376
|
|
|
19290
19377
|
// src/components/Table/Table.styles.ts
|
|
19291
|
-
import { css as
|
|
19292
|
-
var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) =>
|
|
19378
|
+
import { css as css93 } from "@emotion/react";
|
|
19379
|
+
var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css93`
|
|
19293
19380
|
border-bottom: 1px solid var(--gray-400);
|
|
19294
19381
|
border-collapse: collapse;
|
|
19295
19382
|
min-width: 100%;
|
|
@@ -19300,55 +19387,55 @@ var table = ({ cellPadding = "var(--spacing-base) var(--spacing-md)" }) => css92
|
|
|
19300
19387
|
padding: ${cellPadding};
|
|
19301
19388
|
}
|
|
19302
19389
|
`;
|
|
19303
|
-
var tableHead =
|
|
19390
|
+
var tableHead = css93`
|
|
19304
19391
|
background: var(--gray-100);
|
|
19305
19392
|
color: var(--brand-secondary-1);
|
|
19306
19393
|
text-align: left;
|
|
19307
19394
|
`;
|
|
19308
|
-
var tableRow =
|
|
19395
|
+
var tableRow = css93`
|
|
19309
19396
|
border-bottom: 1px solid var(--gray-200);
|
|
19310
19397
|
`;
|
|
19311
|
-
var tableCellHead =
|
|
19398
|
+
var tableCellHead = css93`
|
|
19312
19399
|
font-size: var(--fs-sm);
|
|
19313
19400
|
text-transform: uppercase;
|
|
19314
19401
|
font-weight: var(--fw-bold);
|
|
19315
19402
|
`;
|
|
19316
19403
|
|
|
19317
19404
|
// src/components/Table/Table.tsx
|
|
19318
|
-
import { jsx as
|
|
19405
|
+
import { jsx as jsx114 } from "@emotion/react/jsx-runtime";
|
|
19319
19406
|
var Table = React24.forwardRef(
|
|
19320
19407
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
19321
|
-
return /* @__PURE__ */
|
|
19408
|
+
return /* @__PURE__ */ jsx114("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
19322
19409
|
}
|
|
19323
19410
|
);
|
|
19324
19411
|
var TableHead = React24.forwardRef(
|
|
19325
19412
|
({ children, ...otherProps }, ref) => {
|
|
19326
|
-
return /* @__PURE__ */
|
|
19413
|
+
return /* @__PURE__ */ jsx114("thead", { ref, css: tableHead, ...otherProps, children });
|
|
19327
19414
|
}
|
|
19328
19415
|
);
|
|
19329
19416
|
var TableBody = React24.forwardRef(
|
|
19330
19417
|
({ children, ...otherProps }, ref) => {
|
|
19331
|
-
return /* @__PURE__ */
|
|
19418
|
+
return /* @__PURE__ */ jsx114("tbody", { ref, ...otherProps, children });
|
|
19332
19419
|
}
|
|
19333
19420
|
);
|
|
19334
19421
|
var TableFoot = React24.forwardRef(
|
|
19335
19422
|
({ children, ...otherProps }, ref) => {
|
|
19336
|
-
return /* @__PURE__ */
|
|
19423
|
+
return /* @__PURE__ */ jsx114("tfoot", { ref, ...otherProps, children });
|
|
19337
19424
|
}
|
|
19338
19425
|
);
|
|
19339
19426
|
var TableRow = React24.forwardRef(
|
|
19340
19427
|
({ children, ...otherProps }, ref) => {
|
|
19341
|
-
return /* @__PURE__ */
|
|
19428
|
+
return /* @__PURE__ */ jsx114("tr", { ref, css: tableRow, ...otherProps, children });
|
|
19342
19429
|
}
|
|
19343
19430
|
);
|
|
19344
19431
|
var TableCellHead = React24.forwardRef(
|
|
19345
19432
|
({ children, ...otherProps }, ref) => {
|
|
19346
|
-
return /* @__PURE__ */
|
|
19433
|
+
return /* @__PURE__ */ jsx114("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
19347
19434
|
}
|
|
19348
19435
|
);
|
|
19349
19436
|
var TableCellData = React24.forwardRef(
|
|
19350
19437
|
({ children, ...otherProps }, ref) => {
|
|
19351
|
-
return /* @__PURE__ */
|
|
19438
|
+
return /* @__PURE__ */ jsx114("td", { ref, ...otherProps, children });
|
|
19352
19439
|
}
|
|
19353
19440
|
);
|
|
19354
19441
|
|
|
@@ -19362,8 +19449,8 @@ import {
|
|
|
19362
19449
|
} from "reakit/Tab";
|
|
19363
19450
|
|
|
19364
19451
|
// src/components/Tabs/Tabs.styles.ts
|
|
19365
|
-
import { css as
|
|
19366
|
-
var tabButtonStyles =
|
|
19452
|
+
import { css as css94 } from "@emotion/react";
|
|
19453
|
+
var tabButtonStyles = css94`
|
|
19367
19454
|
align-items: center;
|
|
19368
19455
|
border: 0;
|
|
19369
19456
|
height: 2.5rem;
|
|
@@ -19380,14 +19467,14 @@ var tabButtonStyles = css93`
|
|
|
19380
19467
|
box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
|
|
19381
19468
|
}
|
|
19382
19469
|
`;
|
|
19383
|
-
var tabButtonGroupStyles =
|
|
19470
|
+
var tabButtonGroupStyles = css94`
|
|
19384
19471
|
display: flex;
|
|
19385
19472
|
gap: var(--spacing-base);
|
|
19386
19473
|
border-bottom: 1px solid var(--gray-300);
|
|
19387
19474
|
`;
|
|
19388
19475
|
|
|
19389
19476
|
// src/components/Tabs/Tabs.tsx
|
|
19390
|
-
import { jsx as
|
|
19477
|
+
import { jsx as jsx115 } from "@emotion/react/jsx-runtime";
|
|
19391
19478
|
var CurrentTabContext = createContext6(null);
|
|
19392
19479
|
var useCurrentTab = () => {
|
|
19393
19480
|
const context = useContext7(CurrentTabContext);
|
|
@@ -19417,24 +19504,24 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
19417
19504
|
tab.setSelectedId(selected);
|
|
19418
19505
|
}
|
|
19419
19506
|
}, [selected]);
|
|
19420
|
-
return /* @__PURE__ */
|
|
19507
|
+
return /* @__PURE__ */ jsx115(CurrentTabContext.Provider, { value: tab, children });
|
|
19421
19508
|
};
|
|
19422
19509
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
19423
19510
|
const currentTab = useCurrentTab();
|
|
19424
|
-
return /* @__PURE__ */
|
|
19511
|
+
return /* @__PURE__ */ jsx115(ReakitTabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
19425
19512
|
};
|
|
19426
19513
|
var TabButton = ({ children, id, ...props }) => {
|
|
19427
19514
|
const currentTab = useCurrentTab();
|
|
19428
|
-
return /* @__PURE__ */
|
|
19515
|
+
return /* @__PURE__ */ jsx115(ReakitTab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
19429
19516
|
};
|
|
19430
19517
|
var TabContent = ({ children, ...props }) => {
|
|
19431
19518
|
const currentTab = useCurrentTab();
|
|
19432
|
-
return /* @__PURE__ */
|
|
19519
|
+
return /* @__PURE__ */ jsx115(ReakitTabPanel, { ...props, ...currentTab, children });
|
|
19433
19520
|
};
|
|
19434
19521
|
|
|
19435
19522
|
// src/components/Validation/StatusBullet.styles.ts
|
|
19436
|
-
import { css as
|
|
19437
|
-
var StatusBulletContainer =
|
|
19523
|
+
import { css as css95 } from "@emotion/react";
|
|
19524
|
+
var StatusBulletContainer = css95`
|
|
19438
19525
|
align-items: center;
|
|
19439
19526
|
align-self: center;
|
|
19440
19527
|
color: var(--gray-500);
|
|
@@ -19451,33 +19538,33 @@ var StatusBulletContainer = css94`
|
|
|
19451
19538
|
display: block;
|
|
19452
19539
|
}
|
|
19453
19540
|
`;
|
|
19454
|
-
var StatusBulletBase =
|
|
19541
|
+
var StatusBulletBase = css95`
|
|
19455
19542
|
font-size: var(--fs-sm);
|
|
19456
19543
|
&:before {
|
|
19457
19544
|
width: var(--fs-xs);
|
|
19458
19545
|
height: var(--fs-xs);
|
|
19459
19546
|
}
|
|
19460
19547
|
`;
|
|
19461
|
-
var StatusBulletSmall =
|
|
19548
|
+
var StatusBulletSmall = css95`
|
|
19462
19549
|
font-size: var(--fs-xs);
|
|
19463
19550
|
&:before {
|
|
19464
19551
|
width: var(--fs-xxs);
|
|
19465
19552
|
height: var(--fs-xxs);
|
|
19466
19553
|
}
|
|
19467
19554
|
`;
|
|
19468
|
-
var StatusDraft =
|
|
19555
|
+
var StatusDraft = css95`
|
|
19469
19556
|
&:before {
|
|
19470
19557
|
background: var(--white);
|
|
19471
19558
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
19472
19559
|
}
|
|
19473
19560
|
`;
|
|
19474
|
-
var StatusModified =
|
|
19561
|
+
var StatusModified = css95`
|
|
19475
19562
|
&:before {
|
|
19476
19563
|
background: linear-gradient(to right, var(--white) 50%, var(--primary-action-default) 50% 100%);
|
|
19477
19564
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
19478
19565
|
}
|
|
19479
19566
|
`;
|
|
19480
|
-
var StatusError =
|
|
19567
|
+
var StatusError = css95`
|
|
19481
19568
|
color: var(--error);
|
|
19482
19569
|
&:before {
|
|
19483
19570
|
/* TODO: replace this with an svg icon */
|
|
@@ -19490,24 +19577,24 @@ var StatusError = css94`
|
|
|
19490
19577
|
);
|
|
19491
19578
|
}
|
|
19492
19579
|
`;
|
|
19493
|
-
var StatusPublished =
|
|
19580
|
+
var StatusPublished = css95`
|
|
19494
19581
|
&:before {
|
|
19495
19582
|
background: var(--primary-action-default);
|
|
19496
19583
|
}
|
|
19497
19584
|
`;
|
|
19498
|
-
var StatusOrphan =
|
|
19585
|
+
var StatusOrphan = css95`
|
|
19499
19586
|
&:before {
|
|
19500
19587
|
background: var(--brand-secondary-5);
|
|
19501
19588
|
}
|
|
19502
19589
|
`;
|
|
19503
|
-
var StatusUnknown =
|
|
19590
|
+
var StatusUnknown = css95`
|
|
19504
19591
|
&:before {
|
|
19505
19592
|
background: var(--brand-secondary-1);
|
|
19506
19593
|
}
|
|
19507
19594
|
`;
|
|
19508
19595
|
|
|
19509
19596
|
// src/components/Validation/StatusBullet.tsx
|
|
19510
|
-
import { jsx as
|
|
19597
|
+
import { jsx as jsx116 } from "@emotion/react/jsx-runtime";
|
|
19511
19598
|
var StatusBullet = ({
|
|
19512
19599
|
status,
|
|
19513
19600
|
hideText = false,
|
|
@@ -19526,7 +19613,7 @@ var StatusBullet = ({
|
|
|
19526
19613
|
Unknown: StatusUnknown
|
|
19527
19614
|
};
|
|
19528
19615
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
19529
|
-
return /* @__PURE__ */
|
|
19616
|
+
return /* @__PURE__ */ jsx116(
|
|
19530
19617
|
"span",
|
|
19531
19618
|
{
|
|
19532
19619
|
role: "status",
|
|
@@ -19614,6 +19701,7 @@ export {
|
|
|
19614
19701
|
Modal,
|
|
19615
19702
|
MultilineChip,
|
|
19616
19703
|
PageHeaderSection,
|
|
19704
|
+
Pagination,
|
|
19617
19705
|
Paragraph,
|
|
19618
19706
|
ParameterDataResource,
|
|
19619
19707
|
ParameterDrawerHeader,
|