@uniformdev/design-system 20.34.2-alpha.67 → 20.35.1-alpha.87
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 +571 -484
- package/dist/index.d.mts +42 -4
- package/dist/index.d.ts +42 -4
- package/dist/index.js +735 -644
- package/package.json +9 -9
package/dist/esm/index.js
CHANGED
|
@@ -3995,7 +3995,7 @@ var menuItem = (textTheme, forceActive) => css24`
|
|
|
3995
3995
|
align-items: center;
|
|
3996
3996
|
border-radius: var(--rounded-base);
|
|
3997
3997
|
background: none;
|
|
3998
|
-
color: ${textTheme === "base"
|
|
3998
|
+
color: ${textTheme === "base" || textTheme === "accent-alt" ? "var(--typography-base)" : "var(--brand-secondary-5)"};
|
|
3999
3999
|
display: flex;
|
|
4000
4000
|
font-weight: var(--fw-regular);
|
|
4001
4001
|
font-size: var(--menu-item-font-size);
|
|
@@ -4014,7 +4014,7 @@ var menuItem = (textTheme, forceActive) => css24`
|
|
|
4014
4014
|
}
|
|
4015
4015
|
|
|
4016
4016
|
svg {
|
|
4017
|
-
${textTheme === "red" ? "" : `color: var(--gray-400)`};
|
|
4017
|
+
${textTheme === "red" ? "" : textTheme === "accent-alt" ? "color: var(--accent-alt-dark);" : `color: var(--gray-400)`};
|
|
4018
4018
|
width: var(--menu-item-icon-size);
|
|
4019
4019
|
height: var(--menu-item-icon-size);
|
|
4020
4020
|
}
|
|
@@ -4023,7 +4023,7 @@ var menuItem = (textTheme, forceActive) => css24`
|
|
|
4023
4023
|
[aria-selected='true'] {
|
|
4024
4024
|
background: var(--gray-200);
|
|
4025
4025
|
svg {
|
|
4026
|
-
|
|
4026
|
+
${textTheme === "red" ? `color: var(--action-destructive-active);` : textTheme === "accent-alt" ? "color: var(--accent-alt-dark-active);" : `color: var(--accent-dark-active);`}
|
|
4027
4027
|
}
|
|
4028
4028
|
}
|
|
4029
4029
|
|
|
@@ -4033,7 +4033,7 @@ var menuItem = (textTheme, forceActive) => css24`
|
|
|
4033
4033
|
${typeof forceActive === "undefined" ? activeMenuItem : ""}
|
|
4034
4034
|
|
|
4035
4035
|
svg {
|
|
4036
|
-
|
|
4036
|
+
${textTheme === "red" ? `color: var(--action-destructive-hover);` : textTheme === "accent-alt" ? "color: var(--accent-alt-dark-hover);" : `color: var(--accent-dark-hover);`}
|
|
4037
4037
|
}
|
|
4038
4038
|
}
|
|
4039
4039
|
|
|
@@ -4754,15 +4754,15 @@ function InputCreatableComboBox(props) {
|
|
|
4754
4754
|
}
|
|
4755
4755
|
);
|
|
4756
4756
|
}
|
|
4757
|
-
function inputComboBoxStyles(
|
|
4757
|
+
function inputComboBoxStyles(baseStyles2) {
|
|
4758
4758
|
return {
|
|
4759
|
-
...
|
|
4759
|
+
...baseStyles2,
|
|
4760
4760
|
singleValue: (base, sProps) => {
|
|
4761
4761
|
var _a;
|
|
4762
4762
|
return {
|
|
4763
4763
|
...base,
|
|
4764
4764
|
color: "var(--typography-base)",
|
|
4765
|
-
...(_a =
|
|
4765
|
+
...(_a = baseStyles2 == null ? void 0 : baseStyles2.singleValue) == null ? void 0 : _a.call(baseStyles2, base, sProps)
|
|
4766
4766
|
};
|
|
4767
4767
|
},
|
|
4768
4768
|
valueContainer: (base, sProps) => {
|
|
@@ -4771,7 +4771,7 @@ function inputComboBoxStyles(baseStyles) {
|
|
|
4771
4771
|
...base,
|
|
4772
4772
|
padding: "12px var(--spacing-base) 12px var(--spacing-sm)",
|
|
4773
4773
|
gap: "2px",
|
|
4774
|
-
...(_a =
|
|
4774
|
+
...(_a = baseStyles2 == null ? void 0 : baseStyles2.valueContainer) == null ? void 0 : _a.call(baseStyles2, base, sProps)
|
|
4775
4775
|
};
|
|
4776
4776
|
},
|
|
4777
4777
|
input: (base, sProps) => {
|
|
@@ -4784,7 +4784,7 @@ function inputComboBoxStyles(baseStyles) {
|
|
|
4784
4784
|
"& > input": {
|
|
4785
4785
|
boxShadow: "none !important"
|
|
4786
4786
|
},
|
|
4787
|
-
...(_a =
|
|
4787
|
+
...(_a = baseStyles2 == null ? void 0 : baseStyles2.input) == null ? void 0 : _a.call(baseStyles2, base, sProps)
|
|
4788
4788
|
};
|
|
4789
4789
|
},
|
|
4790
4790
|
menu: (base, state) => {
|
|
@@ -4792,7 +4792,7 @@ function inputComboBoxStyles(baseStyles) {
|
|
|
4792
4792
|
return {
|
|
4793
4793
|
...base,
|
|
4794
4794
|
zIndex: "var(--z-20)",
|
|
4795
|
-
...(_a =
|
|
4795
|
+
...(_a = baseStyles2 == null ? void 0 : baseStyles2.menu) == null ? void 0 : _a.call(baseStyles2, base, state)
|
|
4796
4796
|
};
|
|
4797
4797
|
},
|
|
4798
4798
|
control: (base, state) => {
|
|
@@ -4824,7 +4824,7 @@ function inputComboBoxStyles(baseStyles) {
|
|
|
4824
4824
|
},
|
|
4825
4825
|
...state.isFocused ? { borderColor: "var(--gray-300)" } : {}
|
|
4826
4826
|
},
|
|
4827
|
-
...(_a =
|
|
4827
|
+
...(_a = baseStyles2 == null ? void 0 : baseStyles2.control) == null ? void 0 : _a.call(baseStyles2, base, state)
|
|
4828
4828
|
};
|
|
4829
4829
|
},
|
|
4830
4830
|
indicatorsContainer: (base, state) => {
|
|
@@ -4844,14 +4844,14 @@ function inputComboBoxStyles(baseStyles) {
|
|
|
4844
4844
|
"& svg": {
|
|
4845
4845
|
display: "none"
|
|
4846
4846
|
},
|
|
4847
|
-
...(_a =
|
|
4847
|
+
...(_a = baseStyles2 == null ? void 0 : baseStyles2.indicatorsContainer) == null ? void 0 : _a.call(baseStyles2, base, state)
|
|
4848
4848
|
};
|
|
4849
4849
|
},
|
|
4850
4850
|
indicatorSeparator: (base, state) => {
|
|
4851
4851
|
var _a;
|
|
4852
4852
|
return {
|
|
4853
4853
|
display: "none",
|
|
4854
|
-
...(_a =
|
|
4854
|
+
...(_a = baseStyles2 == null ? void 0 : baseStyles2.indicatorSeparator) == null ? void 0 : _a.call(baseStyles2, base, state)
|
|
4855
4855
|
};
|
|
4856
4856
|
},
|
|
4857
4857
|
option: (base, state) => {
|
|
@@ -4862,7 +4862,7 @@ function inputComboBoxStyles(baseStyles) {
|
|
|
4862
4862
|
color: state.isDisabled ? "var(--gray-300)" : "var(--gray-700)",
|
|
4863
4863
|
paddingLeft: isIndented ? "var(--spacing-md)" : "",
|
|
4864
4864
|
backgroundColor: state.isDisabled ? "transparent" : state.isSelected ? "var(--gray-200)" : state.isFocused ? "var(--gray-100)" : "transparent",
|
|
4865
|
-
...(_a =
|
|
4865
|
+
...(_a = baseStyles2 == null ? void 0 : baseStyles2.option) == null ? void 0 : _a.call(baseStyles2, base, state)
|
|
4866
4866
|
};
|
|
4867
4867
|
},
|
|
4868
4868
|
multiValue: (styles) => {
|
|
@@ -6519,9 +6519,12 @@ var ChipContainer = css45`
|
|
|
6519
6519
|
}
|
|
6520
6520
|
`;
|
|
6521
6521
|
var ChipText = css45`
|
|
6522
|
+
display: flex;
|
|
6523
|
+
align-items: center;
|
|
6524
|
+
justify-content: left;
|
|
6522
6525
|
align-self: center;
|
|
6523
6526
|
line-height: 1.2;
|
|
6524
|
-
|
|
6527
|
+
white-space: nowrap;
|
|
6525
6528
|
`;
|
|
6526
6529
|
var ChipIcon = css45`
|
|
6527
6530
|
align-self: center;
|
|
@@ -10329,7 +10332,7 @@ var LoadingOverlay = ({
|
|
|
10329
10332
|
var LoadingAnimation = ({
|
|
10330
10333
|
label,
|
|
10331
10334
|
width,
|
|
10332
|
-
css:
|
|
10335
|
+
css: css111,
|
|
10333
10336
|
isPaused
|
|
10334
10337
|
}) => {
|
|
10335
10338
|
return /* @__PURE__ */ jsxs66(
|
|
@@ -10340,7 +10343,7 @@ var LoadingAnimation = ({
|
|
|
10340
10343
|
width: typeof width === "number" ? `${width}px` : width,
|
|
10341
10344
|
height: typeof width === "number" ? `${width}px` : width
|
|
10342
10345
|
},
|
|
10343
|
-
css: [loaderAnimationContainer,
|
|
10346
|
+
css: [loaderAnimationContainer, css111],
|
|
10344
10347
|
className: `loader-container${isPaused ? " paused" : ""}`,
|
|
10345
10348
|
children: [
|
|
10346
10349
|
/* @__PURE__ */ jsxs66("div", { className: "bottom-cubes", children: [
|
|
@@ -11495,21 +11498,130 @@ var LabelLeadingIcon = ({
|
|
|
11495
11498
|
) });
|
|
11496
11499
|
};
|
|
11497
11500
|
|
|
11498
|
-
// src/components/ParameterInputs/
|
|
11501
|
+
// src/components/ParameterInputs/ParameterActionButton.tsx
|
|
11502
|
+
import React18 from "react";
|
|
11503
|
+
|
|
11504
|
+
// src/components/ParameterInputs/styles/ParameterActionButton.styles.ts
|
|
11499
11505
|
import { css as css87 } from "@emotion/react";
|
|
11500
|
-
var
|
|
11506
|
+
var baseStyles = css87`
|
|
11507
|
+
--hover-color: var(--accent-dark-hover);
|
|
11508
|
+
--active-color: var(--accent-dark-active);
|
|
11509
|
+
border: 1px solid transparent;
|
|
11510
|
+
border-radius: var(--rounded-base);
|
|
11511
|
+
display: flex;
|
|
11512
|
+
align-items: center;
|
|
11513
|
+
justify-content: center;
|
|
11514
|
+
max-width: fit-content;
|
|
11515
|
+
padding: 0.125rem;
|
|
11516
|
+
transition:
|
|
11517
|
+
border-color var(--duration-fast) var(--timing-ease-out),
|
|
11518
|
+
background var(--duration-fast) var(--timing-ease-out),
|
|
11519
|
+
color var(--duration-fast) var(--timing-ease-out),
|
|
11520
|
+
box-shadow var(--duration-fast) var(--timing-ease-out);
|
|
11521
|
+
min-height: 1.125rem;
|
|
11522
|
+
min-width: 1.125rem;
|
|
11523
|
+
font-size: 0.75rem;
|
|
11524
|
+
|
|
11525
|
+
&:disabled,
|
|
11526
|
+
&[aria-disabled='true'] {
|
|
11527
|
+
opacity: 0.5;
|
|
11528
|
+
cursor: default;
|
|
11529
|
+
}
|
|
11530
|
+
`;
|
|
11531
|
+
var solidHoverStyles = css87`
|
|
11532
|
+
--text-color: var(--typography-inverted);
|
|
11533
|
+
&:hover,
|
|
11534
|
+
&:focus,
|
|
11535
|
+
&:focus-within {
|
|
11536
|
+
border-color: var(--hover-color);
|
|
11537
|
+
background: var(--hover-color);
|
|
11538
|
+
color: var(--text-color);
|
|
11539
|
+
}
|
|
11540
|
+
|
|
11541
|
+
&:active,
|
|
11542
|
+
&[aria-pressed='true'] {
|
|
11543
|
+
border-color: var(--active-color);
|
|
11544
|
+
background: var(--active-color);
|
|
11545
|
+
color: var(--text-color);
|
|
11546
|
+
}
|
|
11547
|
+
`;
|
|
11548
|
+
var outlineHoverStyles = css87`
|
|
11549
|
+
--text-color: var(--typography-light);
|
|
11550
|
+
&:hover:not([aria-disabled='true']),
|
|
11551
|
+
&:focus:not([aria-disabled='true']),
|
|
11552
|
+
&:focus-within:not([aria-disabled='true']) {
|
|
11553
|
+
background: var(--gray-50);
|
|
11554
|
+
border-color: var(--hover-color);
|
|
11555
|
+
}
|
|
11556
|
+
&:active:not([aria-disabled='true']),
|
|
11557
|
+
&[aria-pressed='true']:not([aria-disabled='true']) {
|
|
11558
|
+
border-color: var(--active-color);
|
|
11559
|
+
}
|
|
11560
|
+
`;
|
|
11561
|
+
var invertedStyles = css87`
|
|
11562
|
+
--text-color: var(--typography-inverted);
|
|
11563
|
+
box-shadow: inset 0 0 0 1px transparent;
|
|
11564
|
+
&:hover,
|
|
11565
|
+
&:focus,
|
|
11566
|
+
&:focus-within {
|
|
11567
|
+
box-shadow: inset 0 0 0 1px var(--text-color);
|
|
11568
|
+
color: var(--text-color);
|
|
11569
|
+
}
|
|
11570
|
+
&:active,
|
|
11571
|
+
&[aria-pressed='true'] {
|
|
11572
|
+
background: var(--active-color);
|
|
11573
|
+
border-color: var(--active-color);
|
|
11574
|
+
}
|
|
11575
|
+
`;
|
|
11576
|
+
|
|
11577
|
+
// src/components/ParameterInputs/ParameterActionButton.tsx
|
|
11578
|
+
import { jsx as jsx115 } from "@emotion/react/jsx-runtime";
|
|
11579
|
+
var ParameterActionButton = ({
|
|
11580
|
+
children,
|
|
11581
|
+
themeType,
|
|
11582
|
+
tooltip,
|
|
11583
|
+
renderAs = "button",
|
|
11584
|
+
disabled: disabled2,
|
|
11585
|
+
...props
|
|
11586
|
+
}) => {
|
|
11587
|
+
const shouldApplyInverted = themeType === "filled" && "inverted" in props && props.inverted;
|
|
11588
|
+
const ComponentWrapper = renderAs === "div" ? "div" : "button";
|
|
11589
|
+
const buttonElement = /* @__PURE__ */ jsx115(
|
|
11590
|
+
ComponentWrapper,
|
|
11591
|
+
{
|
|
11592
|
+
css: [
|
|
11593
|
+
baseStyles,
|
|
11594
|
+
themeType === "filled" ? solidHoverStyles : outlineHoverStyles,
|
|
11595
|
+
shouldApplyInverted ? invertedStyles : null
|
|
11596
|
+
],
|
|
11597
|
+
...renderAs === "button" && { type: "button" },
|
|
11598
|
+
...shouldApplyInverted && { "data-inverted": true },
|
|
11599
|
+
...disabled2 && { "aria-disabled": true },
|
|
11600
|
+
...props,
|
|
11601
|
+
children
|
|
11602
|
+
}
|
|
11603
|
+
);
|
|
11604
|
+
if (tooltip && (typeof tooltip === "string" || React18.isValidElement(tooltip))) {
|
|
11605
|
+
return /* @__PURE__ */ jsx115(Tooltip, { title: tooltip, children: buttonElement });
|
|
11606
|
+
}
|
|
11607
|
+
return buttonElement;
|
|
11608
|
+
};
|
|
11609
|
+
|
|
11610
|
+
// src/components/ParameterInputs/styles/ParameterDrawerHeader.styles.ts
|
|
11611
|
+
import { css as css88 } from "@emotion/react";
|
|
11612
|
+
var ParameterDrawerHeaderContainer = css88`
|
|
11501
11613
|
align-items: center;
|
|
11502
11614
|
display: flex;
|
|
11503
11615
|
gap: var(--spacing-base);
|
|
11504
11616
|
justify-content: space-between;
|
|
11505
11617
|
margin-bottom: var(--spacing-sm);
|
|
11506
11618
|
`;
|
|
11507
|
-
var ParameterDrawerHeaderTitleGroup =
|
|
11619
|
+
var ParameterDrawerHeaderTitleGroup = css88`
|
|
11508
11620
|
align-items: center;
|
|
11509
11621
|
display: flex;
|
|
11510
11622
|
gap: var(--spacing-sm);
|
|
11511
11623
|
`;
|
|
11512
|
-
var ParameterDrawerHeaderTitle =
|
|
11624
|
+
var ParameterDrawerHeaderTitle = css88`
|
|
11513
11625
|
text-overflow: ellipsis;
|
|
11514
11626
|
white-space: nowrap;
|
|
11515
11627
|
overflow: hidden;
|
|
@@ -11517,12 +11629,12 @@ var ParameterDrawerHeaderTitle = css87`
|
|
|
11517
11629
|
`;
|
|
11518
11630
|
|
|
11519
11631
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
11520
|
-
import { jsx as
|
|
11632
|
+
import { jsx as jsx116, jsxs as jsxs77 } from "@emotion/react/jsx-runtime";
|
|
11521
11633
|
var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
11522
11634
|
return /* @__PURE__ */ jsxs77("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
11523
11635
|
/* @__PURE__ */ jsxs77("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
11524
11636
|
iconBeforeTitle,
|
|
11525
|
-
/* @__PURE__ */
|
|
11637
|
+
/* @__PURE__ */ jsx116(Heading2, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title, children: title })
|
|
11526
11638
|
] }),
|
|
11527
11639
|
children
|
|
11528
11640
|
] });
|
|
@@ -11532,11 +11644,15 @@ var ParameterDrawerHeader = ({ title, iconBeforeTitle, children }) => {
|
|
|
11532
11644
|
import { forwardRef as forwardRef20 } from "react";
|
|
11533
11645
|
|
|
11534
11646
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
11535
|
-
import { css as
|
|
11536
|
-
var fieldsetStyles =
|
|
11647
|
+
import { css as css89 } from "@emotion/react";
|
|
11648
|
+
var fieldsetStyles = css89`
|
|
11537
11649
|
&:disabled,
|
|
11538
11650
|
[readonly] {
|
|
11539
|
-
|
|
11651
|
+
input,
|
|
11652
|
+
select,
|
|
11653
|
+
textarea {
|
|
11654
|
+
pointer-events: none;
|
|
11655
|
+
}
|
|
11540
11656
|
|
|
11541
11657
|
label,
|
|
11542
11658
|
legend {
|
|
@@ -11544,19 +11660,19 @@ var fieldsetStyles = css88`
|
|
|
11544
11660
|
}
|
|
11545
11661
|
}
|
|
11546
11662
|
`;
|
|
11547
|
-
var fieldsetLegend2 =
|
|
11663
|
+
var fieldsetLegend2 = css89`
|
|
11548
11664
|
display: block;
|
|
11549
11665
|
font-weight: var(--fw-medium);
|
|
11550
|
-
margin-bottom: var(--spacing-
|
|
11666
|
+
margin-bottom: var(--spacing-base);
|
|
11551
11667
|
width: 100%;
|
|
11552
11668
|
`;
|
|
11553
11669
|
|
|
11554
11670
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
11555
|
-
import { jsx as
|
|
11671
|
+
import { jsx as jsx117, jsxs as jsxs78 } from "@emotion/react/jsx-runtime";
|
|
11556
11672
|
var ParameterGroup = forwardRef20(
|
|
11557
11673
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
11558
11674
|
return /* @__PURE__ */ jsxs78("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
11559
|
-
/* @__PURE__ */
|
|
11675
|
+
/* @__PURE__ */ jsx117("legend", { css: fieldsetLegend2, children: legend }),
|
|
11560
11676
|
children
|
|
11561
11677
|
] });
|
|
11562
11678
|
}
|
|
@@ -11570,15 +11686,15 @@ import { useState as useState13 } from "react";
|
|
|
11570
11686
|
import { createPortal as createPortal2 } from "react-dom";
|
|
11571
11687
|
|
|
11572
11688
|
// src/components/ParameterInputs/styles/ParameterImage.styles.ts
|
|
11573
|
-
import { css as
|
|
11574
|
-
var previewWrapper =
|
|
11689
|
+
import { css as css90 } from "@emotion/react";
|
|
11690
|
+
var previewWrapper = css90`
|
|
11575
11691
|
margin-top: var(--spacing-xs);
|
|
11576
11692
|
background: var(--gray-50);
|
|
11577
11693
|
padding: var(--spacing-sm);
|
|
11578
11694
|
border: solid 1px var(--gray-300);
|
|
11579
11695
|
border-radius: var(--rounded-sm);
|
|
11580
11696
|
`;
|
|
11581
|
-
var previewLink =
|
|
11697
|
+
var previewLink = css90`
|
|
11582
11698
|
display: block;
|
|
11583
11699
|
width: 100%;
|
|
11584
11700
|
|
|
@@ -11586,7 +11702,7 @@ var previewLink = css89`
|
|
|
11586
11702
|
max-height: 9rem;
|
|
11587
11703
|
}
|
|
11588
11704
|
`;
|
|
11589
|
-
var previewModalWrapper =
|
|
11705
|
+
var previewModalWrapper = css90`
|
|
11590
11706
|
background: var(--gray-50);
|
|
11591
11707
|
display: flex;
|
|
11592
11708
|
height: 100%;
|
|
@@ -11595,7 +11711,7 @@ var previewModalWrapper = css89`
|
|
|
11595
11711
|
border: solid 1px var(--gray-300);
|
|
11596
11712
|
border-radius: var(--rounded-sm);
|
|
11597
11713
|
`;
|
|
11598
|
-
var previewModalImage =
|
|
11714
|
+
var previewModalImage = css90`
|
|
11599
11715
|
display: flex;
|
|
11600
11716
|
height: 100%;
|
|
11601
11717
|
width: 100%;
|
|
@@ -11607,32 +11723,32 @@ var previewModalImage = css89`
|
|
|
11607
11723
|
`;
|
|
11608
11724
|
|
|
11609
11725
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
11610
|
-
import { Fragment as Fragment12, jsx as
|
|
11726
|
+
import { Fragment as Fragment12, jsx as jsx118, jsxs as jsxs79 } from "@emotion/react/jsx-runtime";
|
|
11611
11727
|
function ParameterImagePreview({ imageSrc }) {
|
|
11612
11728
|
const [showModal, setShowModal] = useState13(false);
|
|
11613
11729
|
return imageSrc ? /* @__PURE__ */ jsxs79("div", { css: previewWrapper, children: [
|
|
11614
|
-
/* @__PURE__ */
|
|
11615
|
-
/* @__PURE__ */
|
|
11730
|
+
/* @__PURE__ */ jsx118(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
|
|
11731
|
+
/* @__PURE__ */ jsx118(
|
|
11616
11732
|
"button",
|
|
11617
11733
|
{
|
|
11618
11734
|
css: previewLink,
|
|
11619
11735
|
onClick: () => {
|
|
11620
11736
|
setShowModal(true);
|
|
11621
11737
|
},
|
|
11622
|
-
children: /* @__PURE__ */
|
|
11738
|
+
children: /* @__PURE__ */ jsx118(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
|
|
11623
11739
|
}
|
|
11624
11740
|
)
|
|
11625
11741
|
] }) : null;
|
|
11626
11742
|
}
|
|
11627
11743
|
var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
11628
|
-
return open ? /* @__PURE__ */
|
|
11629
|
-
/* @__PURE__ */
|
|
11744
|
+
return open ? /* @__PURE__ */ jsx118(Fragment12, { children: createPortal2(
|
|
11745
|
+
/* @__PURE__ */ jsx118(
|
|
11630
11746
|
Modal,
|
|
11631
11747
|
{
|
|
11632
11748
|
header: "Image Preview",
|
|
11633
11749
|
onRequestClose,
|
|
11634
|
-
buttonGroup: /* @__PURE__ */
|
|
11635
|
-
children: /* @__PURE__ */
|
|
11750
|
+
buttonGroup: /* @__PURE__ */ jsx118(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
|
|
11751
|
+
children: /* @__PURE__ */ jsx118("div", { css: previewModalWrapper, children: /* @__PURE__ */ jsx118(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
|
|
11636
11752
|
}
|
|
11637
11753
|
),
|
|
11638
11754
|
document.body
|
|
@@ -11640,12 +11756,28 @@ var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
|
11640
11756
|
};
|
|
11641
11757
|
|
|
11642
11758
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
11643
|
-
import { css as
|
|
11759
|
+
import { css as css93 } from "@emotion/react";
|
|
11644
11760
|
import { useState as useState14 } from "react";
|
|
11645
11761
|
|
|
11646
11762
|
// src/components/ParameterInputs/styles/ParameterInput.styles.ts
|
|
11647
|
-
import { css as
|
|
11648
|
-
var
|
|
11763
|
+
import { css as css91 } from "@emotion/react";
|
|
11764
|
+
var actionBarVisibilityStyles = css91`
|
|
11765
|
+
[data-action-bar] {
|
|
11766
|
+
opacity: 1;
|
|
11767
|
+
transform: translateX(0);
|
|
11768
|
+
transition:
|
|
11769
|
+
opacity var(--duration-fast) var(--timing-ease-out),
|
|
11770
|
+
transform var(--duration-fast) var(--timing-ease-out);
|
|
11771
|
+
}
|
|
11772
|
+
`;
|
|
11773
|
+
var actionBarVisibilityHiddenStyles = css91`
|
|
11774
|
+
opacity: 0;
|
|
11775
|
+
transform: translateX(1rem);
|
|
11776
|
+
transition:
|
|
11777
|
+
opacity var(--duration-fast) var(--timing-ease-out),
|
|
11778
|
+
transform var(--duration-fast) var(--timing-ease-out);
|
|
11779
|
+
`;
|
|
11780
|
+
var inputContainer2 = css91`
|
|
11649
11781
|
position: relative;
|
|
11650
11782
|
scroll-margin: var(--spacing-2xl);
|
|
11651
11783
|
|
|
@@ -11656,16 +11788,17 @@ var inputContainer2 = css90`
|
|
|
11656
11788
|
opacity: var(--opacity-100);
|
|
11657
11789
|
translate: 0 0;
|
|
11658
11790
|
}
|
|
11791
|
+
${actionBarVisibilityStyles}
|
|
11659
11792
|
}
|
|
11660
11793
|
`;
|
|
11661
|
-
var labelText2 =
|
|
11794
|
+
var labelText2 = css91`
|
|
11662
11795
|
align-items: center;
|
|
11663
11796
|
display: flex;
|
|
11664
11797
|
gap: var(--spacing-xs);
|
|
11665
11798
|
font-weight: var(--fw-regular);
|
|
11666
11799
|
margin: 0 0 var(--spacing-xs);
|
|
11667
11800
|
`;
|
|
11668
|
-
var input3 =
|
|
11801
|
+
var input3 = css91`
|
|
11669
11802
|
display: block;
|
|
11670
11803
|
appearance: none;
|
|
11671
11804
|
box-sizing: border-box;
|
|
@@ -11713,18 +11846,18 @@ var input3 = css90`
|
|
|
11713
11846
|
color: var(--gray-400);
|
|
11714
11847
|
}
|
|
11715
11848
|
`;
|
|
11716
|
-
var selectInput =
|
|
11849
|
+
var selectInput = css91`
|
|
11717
11850
|
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");
|
|
11718
11851
|
background-position: right var(--spacing-sm) center;
|
|
11719
11852
|
background-repeat: no-repeat;
|
|
11720
11853
|
background-size: 1rem;
|
|
11721
11854
|
padding-right: var(--spacing-xl);
|
|
11722
11855
|
`;
|
|
11723
|
-
var inputWrapper =
|
|
11856
|
+
var inputWrapper = css91`
|
|
11724
11857
|
display: flex; // used to correct overflow with chrome textarea
|
|
11725
11858
|
position: relative;
|
|
11726
11859
|
`;
|
|
11727
|
-
var inputIcon2 =
|
|
11860
|
+
var inputIcon2 = css91`
|
|
11728
11861
|
align-items: center;
|
|
11729
11862
|
background: var(--white);
|
|
11730
11863
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -11740,7 +11873,7 @@ var inputIcon2 = css90`
|
|
|
11740
11873
|
width: var(--spacing-lg);
|
|
11741
11874
|
z-index: var(--z-10);
|
|
11742
11875
|
`;
|
|
11743
|
-
var inputToggleLabel2 =
|
|
11876
|
+
var inputToggleLabel2 = css91`
|
|
11744
11877
|
--inline-label-color: var(--typography-base);
|
|
11745
11878
|
align-items: center;
|
|
11746
11879
|
cursor: pointer;
|
|
@@ -11755,7 +11888,7 @@ var inputToggleLabel2 = css90`
|
|
|
11755
11888
|
--inline-label-color: var(--gray-400);
|
|
11756
11889
|
}
|
|
11757
11890
|
`;
|
|
11758
|
-
var toggleInput2 =
|
|
11891
|
+
var toggleInput2 = css91`
|
|
11759
11892
|
appearance: none;
|
|
11760
11893
|
border: 1px solid var(--gray-200);
|
|
11761
11894
|
background: var(--white);
|
|
@@ -11809,7 +11942,7 @@ var toggleInput2 = css90`
|
|
|
11809
11942
|
border-color: var(--gray-300);
|
|
11810
11943
|
}
|
|
11811
11944
|
`;
|
|
11812
|
-
var inlineLabel2 =
|
|
11945
|
+
var inlineLabel2 = css91`
|
|
11813
11946
|
color: var(--inline-label-color);
|
|
11814
11947
|
padding-left: var(--spacing-md);
|
|
11815
11948
|
font-size: var(--fs-sm);
|
|
@@ -11826,20 +11959,29 @@ var inlineLabel2 = css90`
|
|
|
11826
11959
|
}
|
|
11827
11960
|
}
|
|
11828
11961
|
`;
|
|
11829
|
-
var inputMenu =
|
|
11962
|
+
var inputMenu = css91`
|
|
11830
11963
|
background: none;
|
|
11831
11964
|
border: none;
|
|
11832
11965
|
padding: var(--spacing-2xs);
|
|
11833
11966
|
position: absolute;
|
|
11834
11967
|
top: calc(var(--spacing-md) * -1.2);
|
|
11835
11968
|
right: 0;
|
|
11969
|
+
|
|
11970
|
+
&:disabled,
|
|
11971
|
+
&[aria-disabled='true'] {
|
|
11972
|
+
color: var(--gray-400);
|
|
11973
|
+
cursor: default;
|
|
11974
|
+
}
|
|
11836
11975
|
`;
|
|
11837
|
-
var inputActionItems =
|
|
11976
|
+
var inputActionItems = css91`
|
|
11838
11977
|
display: flex;
|
|
11978
|
+
${actionBarVisibilityHiddenStyles}
|
|
11839
11979
|
`;
|
|
11840
|
-
var inputMenuHover =
|
|
11980
|
+
var inputMenuHover = css91`
|
|
11841
11981
|
opacity: var(--opacity-50);
|
|
11842
11982
|
transition: background-color var(--duration-fast) var(--timing-ease-out);
|
|
11983
|
+
margin-top: 0.25rem;
|
|
11984
|
+
${actionBarVisibilityHiddenStyles}
|
|
11843
11985
|
|
|
11844
11986
|
// css trick to style the input like a hover or active state when the menu button is active or hovered
|
|
11845
11987
|
&:hover,
|
|
@@ -11847,11 +11989,11 @@ var inputMenuHover = css90`
|
|
|
11847
11989
|
background-color: var(--gray-200);
|
|
11848
11990
|
}
|
|
11849
11991
|
`;
|
|
11850
|
-
var textarea2 =
|
|
11992
|
+
var textarea2 = css91`
|
|
11851
11993
|
resize: vertical;
|
|
11852
11994
|
min-height: 2rem;
|
|
11853
11995
|
`;
|
|
11854
|
-
var dataConnectButton =
|
|
11996
|
+
var dataConnectButton = css91`
|
|
11855
11997
|
align-items: center;
|
|
11856
11998
|
appearance: none;
|
|
11857
11999
|
box-sizing: border-box;
|
|
@@ -11887,7 +12029,7 @@ var dataConnectButton = css90`
|
|
|
11887
12029
|
pointer-events: none;
|
|
11888
12030
|
}
|
|
11889
12031
|
`;
|
|
11890
|
-
var linkParameterBtn =
|
|
12032
|
+
var linkParameterBtn = css91`
|
|
11891
12033
|
border-radius: var(--rounded-base);
|
|
11892
12034
|
background: transparent;
|
|
11893
12035
|
border: none;
|
|
@@ -11896,7 +12038,7 @@ var linkParameterBtn = css90`
|
|
|
11896
12038
|
font-size: var(--fs-sm);
|
|
11897
12039
|
line-height: 1;
|
|
11898
12040
|
`;
|
|
11899
|
-
var linkParameterControls =
|
|
12041
|
+
var linkParameterControls = css91`
|
|
11900
12042
|
position: absolute;
|
|
11901
12043
|
inset: 0 0 0 auto;
|
|
11902
12044
|
padding: 0 var(--spacing-base);
|
|
@@ -11905,7 +12047,7 @@ var linkParameterControls = css90`
|
|
|
11905
12047
|
justify-content: center;
|
|
11906
12048
|
gap: var(--spacing-base);
|
|
11907
12049
|
`;
|
|
11908
|
-
var linkParameterInput = (withExternalLinkIcon) =>
|
|
12050
|
+
var linkParameterInput = (withExternalLinkIcon) => css91`
|
|
11909
12051
|
padding-right: calc(
|
|
11910
12052
|
${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
|
|
11911
12053
|
var(--spacing-base)
|
|
@@ -11918,7 +12060,7 @@ var linkParameterInput = (withExternalLinkIcon) => css90`
|
|
|
11918
12060
|
}
|
|
11919
12061
|
}
|
|
11920
12062
|
`;
|
|
11921
|
-
var linkParameterIcon =
|
|
12063
|
+
var linkParameterIcon = css91`
|
|
11922
12064
|
align-items: center;
|
|
11923
12065
|
color: var(--brand-secondary-3);
|
|
11924
12066
|
display: flex;
|
|
@@ -11933,28 +12075,30 @@ var linkParameterIcon = css90`
|
|
|
11933
12075
|
`;
|
|
11934
12076
|
|
|
11935
12077
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
11936
|
-
import { jsx as
|
|
12078
|
+
import { jsx as jsx119 } from "@emotion/react/jsx-runtime";
|
|
11937
12079
|
var ParameterLabel = ({ id, asSpan, children, testId, ...props }) => {
|
|
11938
|
-
return !asSpan ? /* @__PURE__ */
|
|
12080
|
+
return !asSpan ? /* @__PURE__ */ jsx119("label", { ...props, htmlFor: id, css: labelText2, "data-testid": testId, children }) : /* @__PURE__ */ jsx119("span", { "aria-labelledby": id, css: labelText2, children });
|
|
11939
12081
|
};
|
|
11940
12082
|
|
|
11941
12083
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
11942
12084
|
import { forwardRef as forwardRef21 } from "react";
|
|
11943
|
-
import { jsx as
|
|
12085
|
+
import { jsx as jsx120 } from "@emotion/react/jsx-runtime";
|
|
11944
12086
|
var ParameterMenuButton = forwardRef21(
|
|
11945
|
-
({ label, children }, ref) => {
|
|
11946
|
-
return /* @__PURE__ */
|
|
12087
|
+
({ label, children, disabled: disabled2 }, ref) => {
|
|
12088
|
+
return /* @__PURE__ */ jsx120(
|
|
11947
12089
|
Menu,
|
|
11948
12090
|
{
|
|
11949
|
-
menuTrigger: /* @__PURE__ */
|
|
12091
|
+
menuTrigger: /* @__PURE__ */ jsx120(
|
|
11950
12092
|
"button",
|
|
11951
12093
|
{
|
|
12094
|
+
"data-action-bar": true,
|
|
11952
12095
|
className: "parameter-menu",
|
|
11953
12096
|
css: [inputMenu, inputMenuHover],
|
|
11954
12097
|
type: "button",
|
|
11955
12098
|
"aria-label": `${label} options`,
|
|
11956
12099
|
ref,
|
|
11957
|
-
|
|
12100
|
+
disabled: disabled2,
|
|
12101
|
+
children: /* @__PURE__ */ jsx120(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
11958
12102
|
}
|
|
11959
12103
|
),
|
|
11960
12104
|
children
|
|
@@ -11964,14 +12108,14 @@ var ParameterMenuButton = forwardRef21(
|
|
|
11964
12108
|
);
|
|
11965
12109
|
|
|
11966
12110
|
// src/components/ParameterInputs/styles/ParameterShell.styles.ts
|
|
11967
|
-
import { css as
|
|
11968
|
-
var emptyParameterShell =
|
|
12111
|
+
import { css as css92 } from "@emotion/react";
|
|
12112
|
+
var emptyParameterShell = css92`
|
|
11969
12113
|
border-radius: var(--rounded-sm);
|
|
11970
12114
|
flex-grow: 1;
|
|
11971
12115
|
position: relative;
|
|
11972
12116
|
max-width: 100%;
|
|
11973
12117
|
`;
|
|
11974
|
-
var emptyParameterShellText =
|
|
12118
|
+
var emptyParameterShellText = css92`
|
|
11975
12119
|
background: var(--brand-secondary-6);
|
|
11976
12120
|
border-radius: var(--rounded-sm);
|
|
11977
12121
|
padding: var(--spacing-sm);
|
|
@@ -11979,7 +12123,7 @@ var emptyParameterShellText = css91`
|
|
|
11979
12123
|
font-size: var(--fs-sm);
|
|
11980
12124
|
margin: 0;
|
|
11981
12125
|
`;
|
|
11982
|
-
var overrideMarker =
|
|
12126
|
+
var overrideMarker = css92`
|
|
11983
12127
|
border-radius: var(--rounded-sm);
|
|
11984
12128
|
border: 10px solid var(--gray-300);
|
|
11985
12129
|
border-left-color: transparent;
|
|
@@ -11990,7 +12134,7 @@ var overrideMarker = css91`
|
|
|
11990
12134
|
`;
|
|
11991
12135
|
|
|
11992
12136
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
11993
|
-
import { jsx as
|
|
12137
|
+
import { jsx as jsx121, jsxs as jsxs80 } from "@emotion/react/jsx-runtime";
|
|
11994
12138
|
var extractParameterProps = (props) => {
|
|
11995
12139
|
const {
|
|
11996
12140
|
id,
|
|
@@ -12065,21 +12209,22 @@ var ParameterShell = ({
|
|
|
12065
12209
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
12066
12210
|
] }),
|
|
12067
12211
|
/* @__PURE__ */ jsxs80("div", { css: inputWrapper, children: [
|
|
12068
|
-
actionItems ? /* @__PURE__ */
|
|
12212
|
+
actionItems ? /* @__PURE__ */ jsx121(
|
|
12069
12213
|
"div",
|
|
12070
12214
|
{
|
|
12215
|
+
"data-action-bar": true,
|
|
12071
12216
|
css: [
|
|
12072
12217
|
inputMenu,
|
|
12073
12218
|
inputActionItems,
|
|
12074
|
-
menuItems ?
|
|
12219
|
+
menuItems ? css93`
|
|
12075
12220
|
right: var(--spacing-md);
|
|
12076
12221
|
` : void 0
|
|
12077
12222
|
],
|
|
12078
12223
|
children: actionItems
|
|
12079
12224
|
}
|
|
12080
12225
|
) : null,
|
|
12081
|
-
menuItems ? /* @__PURE__ */
|
|
12082
|
-
/* @__PURE__ */
|
|
12226
|
+
menuItems ? /* @__PURE__ */ jsx121(ParameterMenuButton, { label: `${label} menu`, disabled: props.disabled, children: menuItems }) : null,
|
|
12227
|
+
/* @__PURE__ */ jsx121(
|
|
12083
12228
|
ParameterShellContext.Provider,
|
|
12084
12229
|
{
|
|
12085
12230
|
value: {
|
|
@@ -12089,14 +12234,14 @@ var ParameterShell = ({
|
|
|
12089
12234
|
errorMessage: errorMessaging,
|
|
12090
12235
|
handleManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
12091
12236
|
},
|
|
12092
|
-
children: isParameterGroup ? /* @__PURE__ */
|
|
12237
|
+
children: isParameterGroup ? /* @__PURE__ */ jsx121("div", { style: { flexGrow: 1 }, children }) : /* @__PURE__ */ jsxs80(ParameterShellPlaceholder, { children: [
|
|
12093
12238
|
children,
|
|
12094
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
12239
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx121(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
12095
12240
|
] })
|
|
12096
12241
|
}
|
|
12097
12242
|
)
|
|
12098
12243
|
] }),
|
|
12099
|
-
/* @__PURE__ */
|
|
12244
|
+
/* @__PURE__ */ jsx121(
|
|
12100
12245
|
FieldMessage,
|
|
12101
12246
|
{
|
|
12102
12247
|
helperMessageTestId: captionTestId,
|
|
@@ -12110,17 +12255,17 @@ var ParameterShell = ({
|
|
|
12110
12255
|
] });
|
|
12111
12256
|
};
|
|
12112
12257
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
12113
|
-
return /* @__PURE__ */
|
|
12258
|
+
return /* @__PURE__ */ jsx121("div", { css: emptyParameterShell, children });
|
|
12114
12259
|
};
|
|
12115
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
12260
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx121(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx121("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx121("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
12116
12261
|
|
|
12117
12262
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
12118
|
-
import { Fragment as Fragment13, jsx as
|
|
12263
|
+
import { Fragment as Fragment13, jsx as jsx122, jsxs as jsxs81 } from "@emotion/react/jsx-runtime";
|
|
12119
12264
|
var ParameterImage = forwardRef22(
|
|
12120
12265
|
({ children, ...props }, ref) => {
|
|
12121
12266
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
12122
12267
|
return /* @__PURE__ */ jsxs81(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
|
|
12123
|
-
/* @__PURE__ */
|
|
12268
|
+
/* @__PURE__ */ jsx122(ParameterImageInner, { ref, ...innerProps }),
|
|
12124
12269
|
children
|
|
12125
12270
|
] });
|
|
12126
12271
|
}
|
|
@@ -12130,7 +12275,7 @@ var ParameterImageInner = forwardRef22((props, ref) => {
|
|
|
12130
12275
|
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
12131
12276
|
const deferredValue = useDeferredValue(value);
|
|
12132
12277
|
return /* @__PURE__ */ jsxs81(Fragment13, { children: [
|
|
12133
|
-
/* @__PURE__ */
|
|
12278
|
+
/* @__PURE__ */ jsx122(
|
|
12134
12279
|
"input",
|
|
12135
12280
|
{
|
|
12136
12281
|
css: input3,
|
|
@@ -12142,21 +12287,21 @@ var ParameterImageInner = forwardRef22((props, ref) => {
|
|
|
12142
12287
|
...props
|
|
12143
12288
|
}
|
|
12144
12289
|
),
|
|
12145
|
-
errorMessage || props.disablePreview ? null : /* @__PURE__ */
|
|
12290
|
+
errorMessage || props.disablePreview ? null : /* @__PURE__ */ jsx122(ParameterImagePreview, { imageSrc: deferredValue })
|
|
12146
12291
|
] });
|
|
12147
12292
|
});
|
|
12148
12293
|
|
|
12149
12294
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
12150
12295
|
import { forwardRef as forwardRef23 } from "react";
|
|
12151
|
-
import { jsx as
|
|
12296
|
+
import { jsx as jsx123 } from "@emotion/react/jsx-runtime";
|
|
12152
12297
|
var ParameterInput = forwardRef23((props, ref) => {
|
|
12153
12298
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
12154
|
-
return /* @__PURE__ */
|
|
12299
|
+
return /* @__PURE__ */ jsx123(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx123(ParameterInputInner, { ref, ...innerProps }) });
|
|
12155
12300
|
});
|
|
12156
12301
|
var ParameterInputInner = forwardRef23(({ enableMouseWheel = false, ...props }, ref) => {
|
|
12157
12302
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
12158
12303
|
const isNumberInputAndMouseWheelDisabled = enableMouseWheel !== true && props.type === "number";
|
|
12159
|
-
return /* @__PURE__ */
|
|
12304
|
+
return /* @__PURE__ */ jsx123(
|
|
12160
12305
|
"input",
|
|
12161
12306
|
{
|
|
12162
12307
|
css: input3,
|
|
@@ -12173,18 +12318,18 @@ var ParameterInputInner = forwardRef23(({ enableMouseWheel = false, ...props },
|
|
|
12173
12318
|
|
|
12174
12319
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
12175
12320
|
import { forwardRef as forwardRef24 } from "react";
|
|
12176
|
-
import { jsx as
|
|
12321
|
+
import { jsx as jsx124, jsxs as jsxs82 } from "@emotion/react/jsx-runtime";
|
|
12177
12322
|
var ParameterLink = forwardRef24(
|
|
12178
12323
|
({ disabled: disabled2, onConnectLink, externalLink, ...props }, ref) => {
|
|
12179
12324
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
12180
|
-
return /* @__PURE__ */
|
|
12325
|
+
return /* @__PURE__ */ jsx124(
|
|
12181
12326
|
ParameterShell,
|
|
12182
12327
|
{
|
|
12183
12328
|
"data-testid": "link-parameter-editor",
|
|
12184
12329
|
...shellProps,
|
|
12185
12330
|
label: innerProps.value ? shellProps.label : "",
|
|
12186
12331
|
title: !innerProps.value && typeof shellProps.label === "string" ? shellProps.label : void 0,
|
|
12187
|
-
children: /* @__PURE__ */
|
|
12332
|
+
children: /* @__PURE__ */ jsx124(
|
|
12188
12333
|
ParameterLinkInner,
|
|
12189
12334
|
{
|
|
12190
12335
|
onConnectLink,
|
|
@@ -12201,9 +12346,9 @@ var ParameterLinkInner = forwardRef24(
|
|
|
12201
12346
|
({ externalLink, onConnectLink, disabled: disabled2, buttonText = "Select link", ...props }, ref) => {
|
|
12202
12347
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
12203
12348
|
if (!props.value)
|
|
12204
|
-
return /* @__PURE__ */
|
|
12349
|
+
return /* @__PURE__ */ jsx124("button", { type: "button", css: dataConnectButton, disabled: disabled2, onClick: onConnectLink, children: buttonText });
|
|
12205
12350
|
return /* @__PURE__ */ jsxs82("div", { css: inputWrapper, children: [
|
|
12206
|
-
/* @__PURE__ */
|
|
12351
|
+
/* @__PURE__ */ jsx124(
|
|
12207
12352
|
"input",
|
|
12208
12353
|
{
|
|
12209
12354
|
type: "text",
|
|
@@ -12216,7 +12361,7 @@ var ParameterLinkInner = forwardRef24(
|
|
|
12216
12361
|
}
|
|
12217
12362
|
),
|
|
12218
12363
|
/* @__PURE__ */ jsxs82("div", { css: linkParameterControls, children: [
|
|
12219
|
-
/* @__PURE__ */
|
|
12364
|
+
/* @__PURE__ */ jsx124(
|
|
12220
12365
|
"button",
|
|
12221
12366
|
{
|
|
12222
12367
|
type: "button",
|
|
@@ -12228,7 +12373,7 @@ var ParameterLinkInner = forwardRef24(
|
|
|
12228
12373
|
children: "edit"
|
|
12229
12374
|
}
|
|
12230
12375
|
),
|
|
12231
|
-
externalLink ? /* @__PURE__ */
|
|
12376
|
+
externalLink ? /* @__PURE__ */ jsx124(
|
|
12232
12377
|
"a",
|
|
12233
12378
|
{
|
|
12234
12379
|
href: externalLink,
|
|
@@ -12236,7 +12381,7 @@ var ParameterLinkInner = forwardRef24(
|
|
|
12236
12381
|
title: "Open link in new tab",
|
|
12237
12382
|
target: "_blank",
|
|
12238
12383
|
rel: "noopener noreferrer",
|
|
12239
|
-
children: /* @__PURE__ */
|
|
12384
|
+
children: /* @__PURE__ */ jsx124(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
12240
12385
|
}
|
|
12241
12386
|
) : null
|
|
12242
12387
|
] })
|
|
@@ -12245,15 +12390,15 @@ var ParameterLinkInner = forwardRef24(
|
|
|
12245
12390
|
);
|
|
12246
12391
|
|
|
12247
12392
|
// src/components/ParameterInputs/ParameterMultiSelect.tsx
|
|
12248
|
-
import { jsx as
|
|
12393
|
+
import { jsx as jsx125 } from "@emotion/react/jsx-runtime";
|
|
12249
12394
|
var ParameterMultiSelect = ({ disabled: disabled2 = false, ...props }) => {
|
|
12250
12395
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
12251
|
-
return /* @__PURE__ */
|
|
12396
|
+
return /* @__PURE__ */ jsx125(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx125(ParameterMultiSelectInner, { isDisabled: disabled2, ...innerProps }) });
|
|
12252
12397
|
};
|
|
12253
12398
|
var ParameterMultiSelectInner = (props) => {
|
|
12254
12399
|
var _a;
|
|
12255
12400
|
const { id, label } = useParameterShell();
|
|
12256
|
-
return /* @__PURE__ */
|
|
12401
|
+
return /* @__PURE__ */ jsx125(
|
|
12257
12402
|
InputComboBox,
|
|
12258
12403
|
{
|
|
12259
12404
|
menuPortalTarget: document.body,
|
|
@@ -12303,7 +12448,7 @@ var ParameterMultiSelectInner = (props) => {
|
|
|
12303
12448
|
};
|
|
12304
12449
|
|
|
12305
12450
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
12306
|
-
import { Fragment as Fragment14, jsx as
|
|
12451
|
+
import { Fragment as Fragment14, jsx as jsx126, jsxs as jsxs83 } from "@emotion/react/jsx-runtime";
|
|
12307
12452
|
var ParameterNameAndPublicIdInput = ({
|
|
12308
12453
|
id,
|
|
12309
12454
|
onBlur,
|
|
@@ -12330,7 +12475,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
12330
12475
|
};
|
|
12331
12476
|
autoFocus == null ? void 0 : autoFocus();
|
|
12332
12477
|
return /* @__PURE__ */ jsxs83(Fragment14, { children: [
|
|
12333
|
-
/* @__PURE__ */
|
|
12478
|
+
/* @__PURE__ */ jsx126(
|
|
12334
12479
|
ParameterInput,
|
|
12335
12480
|
{
|
|
12336
12481
|
id: nameIdField,
|
|
@@ -12349,7 +12494,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
12349
12494
|
value: values[nameIdField]
|
|
12350
12495
|
}
|
|
12351
12496
|
),
|
|
12352
|
-
/* @__PURE__ */
|
|
12497
|
+
/* @__PURE__ */ jsx126(
|
|
12353
12498
|
ParameterInput,
|
|
12354
12499
|
{
|
|
12355
12500
|
id: publicIdFieldName,
|
|
@@ -12363,11 +12508,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
12363
12508
|
caption: !publicIdError ? publicIdCaption : void 0,
|
|
12364
12509
|
placeholder: publicIdPlaceholderText,
|
|
12365
12510
|
errorMessage: publicIdError,
|
|
12366
|
-
menuItems: /* @__PURE__ */
|
|
12511
|
+
menuItems: /* @__PURE__ */ jsx126(
|
|
12367
12512
|
MenuItem,
|
|
12368
12513
|
{
|
|
12369
12514
|
disabled: !values[publicIdFieldName],
|
|
12370
|
-
icon: /* @__PURE__ */
|
|
12515
|
+
icon: /* @__PURE__ */ jsx126(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
12371
12516
|
onClick: handleCopyPidFieldValue,
|
|
12372
12517
|
children: "Copy"
|
|
12373
12518
|
}
|
|
@@ -12375,12 +12520,12 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
12375
12520
|
value: values[publicIdFieldName]
|
|
12376
12521
|
}
|
|
12377
12522
|
),
|
|
12378
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
12523
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx126(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
12379
12524
|
] });
|
|
12380
12525
|
};
|
|
12381
12526
|
|
|
12382
12527
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
12383
|
-
import { css as
|
|
12528
|
+
import { css as css99 } from "@emotion/react";
|
|
12384
12529
|
import { ListItemNode, ListNode as ListNode3 } from "@lexical/list";
|
|
12385
12530
|
import {
|
|
12386
12531
|
CODE,
|
|
@@ -12562,23 +12707,23 @@ function DisableStylesPlugin() {
|
|
|
12562
12707
|
}
|
|
12563
12708
|
|
|
12564
12709
|
// src/components/ParameterInputs/rich-text/editorStyles.ts
|
|
12565
|
-
import { css as
|
|
12566
|
-
var textBold =
|
|
12710
|
+
import { css as css94 } from "@emotion/css";
|
|
12711
|
+
var textBold = css94`
|
|
12567
12712
|
font-weight: 700;
|
|
12568
12713
|
`;
|
|
12569
|
-
var textItalic =
|
|
12714
|
+
var textItalic = css94`
|
|
12570
12715
|
font-style: italic;
|
|
12571
12716
|
`;
|
|
12572
|
-
var textUnderline =
|
|
12717
|
+
var textUnderline = css94`
|
|
12573
12718
|
text-decoration: underline;
|
|
12574
12719
|
`;
|
|
12575
|
-
var textStrikethrough =
|
|
12720
|
+
var textStrikethrough = css94`
|
|
12576
12721
|
text-decoration: line-through;
|
|
12577
12722
|
`;
|
|
12578
|
-
var textUnderlineStrikethrough =
|
|
12723
|
+
var textUnderlineStrikethrough = css94`
|
|
12579
12724
|
text-decoration: underline line-through;
|
|
12580
12725
|
`;
|
|
12581
|
-
var textCode =
|
|
12726
|
+
var textCode = css94`
|
|
12582
12727
|
background-color: var(--gray-100);
|
|
12583
12728
|
border-radius: var(--rounded-sm);
|
|
12584
12729
|
display: inline-block;
|
|
@@ -12589,68 +12734,68 @@ var textCode = css93`
|
|
|
12589
12734
|
padding-left: var(--spacing-xs);
|
|
12590
12735
|
padding-right: var(--spacing-xs);
|
|
12591
12736
|
`;
|
|
12592
|
-
var textSuperscript =
|
|
12737
|
+
var textSuperscript = css94`
|
|
12593
12738
|
vertical-align: super;
|
|
12594
12739
|
font-size: smaller;
|
|
12595
12740
|
`;
|
|
12596
|
-
var textSubscript =
|
|
12741
|
+
var textSubscript = css94`
|
|
12597
12742
|
vertical-align: sub;
|
|
12598
12743
|
font-size: smaller;
|
|
12599
12744
|
`;
|
|
12600
|
-
var linkElement =
|
|
12745
|
+
var linkElement = css94`
|
|
12601
12746
|
${link}
|
|
12602
12747
|
${linkColorDefault}
|
|
12603
12748
|
text-decoration: underline;
|
|
12604
12749
|
`;
|
|
12605
|
-
var h12 =
|
|
12750
|
+
var h12 = css94`
|
|
12606
12751
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.7rem);
|
|
12607
12752
|
`;
|
|
12608
|
-
var h22 =
|
|
12753
|
+
var h22 = css94`
|
|
12609
12754
|
font-size: clamp(1.35rem, var(--fluid-font-base), 1.6rem);
|
|
12610
12755
|
`;
|
|
12611
|
-
var h32 =
|
|
12756
|
+
var h32 = css94`
|
|
12612
12757
|
font-size: clamp(1.25rem, var(--fluid-font-base), 1.5rem);
|
|
12613
12758
|
`;
|
|
12614
|
-
var h42 =
|
|
12759
|
+
var h42 = css94`
|
|
12615
12760
|
font-size: clamp(1.15rem, var(--fluid-font-base), 1.25rem);
|
|
12616
12761
|
`;
|
|
12617
|
-
var h52 =
|
|
12762
|
+
var h52 = css94`
|
|
12618
12763
|
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
12619
12764
|
`;
|
|
12620
|
-
var h62 =
|
|
12765
|
+
var h62 = css94`
|
|
12621
12766
|
font-size: var(--fs-base);
|
|
12622
12767
|
`;
|
|
12623
|
-
var heading1Element =
|
|
12768
|
+
var heading1Element = css94`
|
|
12624
12769
|
${h12}
|
|
12625
12770
|
${commonHeadingAttr(true)}
|
|
12626
12771
|
${commonLineHeight}
|
|
12627
12772
|
`;
|
|
12628
|
-
var heading2Element =
|
|
12773
|
+
var heading2Element = css94`
|
|
12629
12774
|
${h22}
|
|
12630
12775
|
${commonHeadingAttr(true)}
|
|
12631
12776
|
${commonLineHeight}
|
|
12632
12777
|
`;
|
|
12633
|
-
var heading3Element =
|
|
12778
|
+
var heading3Element = css94`
|
|
12634
12779
|
${h32}
|
|
12635
12780
|
${commonHeadingAttr(true)}
|
|
12636
12781
|
${commonLineHeight}
|
|
12637
12782
|
`;
|
|
12638
|
-
var heading4Element =
|
|
12783
|
+
var heading4Element = css94`
|
|
12639
12784
|
${h42}
|
|
12640
12785
|
${commonHeadingAttr(true)}
|
|
12641
12786
|
${commonLineHeight}
|
|
12642
12787
|
`;
|
|
12643
|
-
var heading5Element =
|
|
12788
|
+
var heading5Element = css94`
|
|
12644
12789
|
${h52}
|
|
12645
12790
|
${commonHeadingAttr(true)}
|
|
12646
12791
|
${commonLineHeight}
|
|
12647
12792
|
`;
|
|
12648
|
-
var heading6Element =
|
|
12793
|
+
var heading6Element = css94`
|
|
12649
12794
|
${h62}
|
|
12650
12795
|
${commonHeadingAttr(true)}
|
|
12651
12796
|
${commonLineHeight}
|
|
12652
12797
|
`;
|
|
12653
|
-
var paragraphElement =
|
|
12798
|
+
var paragraphElement = css94`
|
|
12654
12799
|
line-height: 1.5;
|
|
12655
12800
|
margin-bottom: var(--spacing-base);
|
|
12656
12801
|
|
|
@@ -12658,7 +12803,7 @@ var paragraphElement = css93`
|
|
|
12658
12803
|
margin-bottom: 0;
|
|
12659
12804
|
}
|
|
12660
12805
|
`;
|
|
12661
|
-
var orderedListElement =
|
|
12806
|
+
var orderedListElement = css94`
|
|
12662
12807
|
${commonLineHeight}
|
|
12663
12808
|
display: block;
|
|
12664
12809
|
list-style: decimal;
|
|
@@ -12687,7 +12832,7 @@ var orderedListElement = css93`
|
|
|
12687
12832
|
}
|
|
12688
12833
|
}
|
|
12689
12834
|
`;
|
|
12690
|
-
var unorderedListElement =
|
|
12835
|
+
var unorderedListElement = css94`
|
|
12691
12836
|
${commonLineHeight}
|
|
12692
12837
|
display: block;
|
|
12693
12838
|
list-style: disc;
|
|
@@ -12708,13 +12853,13 @@ var unorderedListElement = css93`
|
|
|
12708
12853
|
}
|
|
12709
12854
|
}
|
|
12710
12855
|
`;
|
|
12711
|
-
var listItemElement =
|
|
12856
|
+
var listItemElement = css94`
|
|
12712
12857
|
margin-left: var(--spacing-md);
|
|
12713
12858
|
`;
|
|
12714
|
-
var nestedListItemElement =
|
|
12859
|
+
var nestedListItemElement = css94`
|
|
12715
12860
|
list-style-type: none;
|
|
12716
12861
|
`;
|
|
12717
|
-
var blockquoteElement =
|
|
12862
|
+
var blockquoteElement = css94`
|
|
12718
12863
|
border-left: 0.25rem solid var(--gray-300);
|
|
12719
12864
|
color: var(--gray-600);
|
|
12720
12865
|
margin-bottom: var(--spacing-base);
|
|
@@ -12724,7 +12869,7 @@ var blockquoteElement = css93`
|
|
|
12724
12869
|
margin-bottom: 0;
|
|
12725
12870
|
}
|
|
12726
12871
|
`;
|
|
12727
|
-
var codeElement =
|
|
12872
|
+
var codeElement = css94`
|
|
12728
12873
|
background-color: var(--gray-100);
|
|
12729
12874
|
border-radius: var(--rounded-sm);
|
|
12730
12875
|
display: block;
|
|
@@ -12739,7 +12884,7 @@ var codeElement = css93`
|
|
|
12739
12884
|
margin-bottom: 0;
|
|
12740
12885
|
}
|
|
12741
12886
|
`;
|
|
12742
|
-
var tableElement =
|
|
12887
|
+
var tableElement = css94`
|
|
12743
12888
|
border-collapse: collapse;
|
|
12744
12889
|
border-spacing: 0;
|
|
12745
12890
|
border-color: var(--gray-300);
|
|
@@ -12752,7 +12897,7 @@ var tableElement = css93`
|
|
|
12752
12897
|
margin-bottom: 0;
|
|
12753
12898
|
}
|
|
12754
12899
|
`;
|
|
12755
|
-
var tableCellElement =
|
|
12900
|
+
var tableCellElement = css94`
|
|
12756
12901
|
background-color: var(--white);
|
|
12757
12902
|
border-color: var(--gray-300);
|
|
12758
12903
|
border-style: solid;
|
|
@@ -12788,7 +12933,7 @@ var tableCellElement = css93`
|
|
|
12788
12933
|
z-index: 1;
|
|
12789
12934
|
}
|
|
12790
12935
|
`;
|
|
12791
|
-
var tableHeaderElement =
|
|
12936
|
+
var tableHeaderElement = css94`
|
|
12792
12937
|
background-color: var(--gray-100);
|
|
12793
12938
|
border-color: var(--gray-300);
|
|
12794
12939
|
border-style: solid;
|
|
@@ -12858,7 +13003,7 @@ var ImprovedAssetSelectionPlugin = () => {
|
|
|
12858
13003
|
var ImprovedAssetSelectionPlugin_default = ImprovedAssetSelectionPlugin;
|
|
12859
13004
|
|
|
12860
13005
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
12861
|
-
import { css as
|
|
13006
|
+
import { css as css95 } from "@emotion/react";
|
|
12862
13007
|
import { useLexicalComposerContext as useLexicalComposerContext3 } from "@lexical/react/LexicalComposerContext";
|
|
12863
13008
|
import { NodeEventPlugin } from "@lexical/react/LexicalNodeEventPlugin";
|
|
12864
13009
|
import {
|
|
@@ -12941,7 +13086,7 @@ var normalizeStateForDeepEqualComparison = (editorState) => {
|
|
|
12941
13086
|
};
|
|
12942
13087
|
|
|
12943
13088
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
12944
|
-
import { Fragment as Fragment15, jsx as
|
|
13089
|
+
import { Fragment as Fragment15, jsx as jsx127, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
|
|
12945
13090
|
var isProjectMapLinkValue = (value) => {
|
|
12946
13091
|
return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
|
|
12947
13092
|
value.nodeId && value.path && value.projectMapId
|
|
@@ -13230,17 +13375,17 @@ var OPEN_LINK_NODE_MODAL_COMMAND = createCommand(
|
|
|
13230
13375
|
);
|
|
13231
13376
|
var LINK_POPOVER_OFFSET_X = 0;
|
|
13232
13377
|
var LINK_POPOVER_OFFSET_Y = 8;
|
|
13233
|
-
var linkPopover =
|
|
13378
|
+
var linkPopover = css95`
|
|
13234
13379
|
position: absolute;
|
|
13235
13380
|
z-index: 11;
|
|
13236
13381
|
`;
|
|
13237
|
-
var linkPopoverContainer =
|
|
13382
|
+
var linkPopoverContainer = css95`
|
|
13238
13383
|
${Popover};
|
|
13239
13384
|
${PopoverVariantSmall};
|
|
13240
13385
|
align-items: center;
|
|
13241
13386
|
display: flex;
|
|
13242
13387
|
`;
|
|
13243
|
-
var linkPopoverAnchor =
|
|
13388
|
+
var linkPopoverAnchor = css95`
|
|
13244
13389
|
${link}
|
|
13245
13390
|
${linkColorDefault}
|
|
13246
13391
|
`;
|
|
@@ -13429,7 +13574,7 @@ function LinkNodePlugin({
|
|
|
13429
13574
|
});
|
|
13430
13575
|
};
|
|
13431
13576
|
return /* @__PURE__ */ jsxs84(Fragment15, { children: [
|
|
13432
|
-
/* @__PURE__ */
|
|
13577
|
+
/* @__PURE__ */ jsx127(
|
|
13433
13578
|
NodeEventPlugin,
|
|
13434
13579
|
{
|
|
13435
13580
|
nodeType: LinkNode,
|
|
@@ -13439,7 +13584,7 @@ function LinkNodePlugin({
|
|
|
13439
13584
|
}
|
|
13440
13585
|
}
|
|
13441
13586
|
),
|
|
13442
|
-
linkPopoverState ? /* @__PURE__ */
|
|
13587
|
+
linkPopoverState ? /* @__PURE__ */ jsx127(
|
|
13443
13588
|
"div",
|
|
13444
13589
|
{
|
|
13445
13590
|
css: linkPopover,
|
|
@@ -13449,7 +13594,7 @@ function LinkNodePlugin({
|
|
|
13449
13594
|
},
|
|
13450
13595
|
ref: linkPopoverElRef,
|
|
13451
13596
|
children: /* @__PURE__ */ jsxs84("div", { css: linkPopoverContainer, children: [
|
|
13452
|
-
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */
|
|
13597
|
+
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ jsx127(
|
|
13453
13598
|
"a",
|
|
13454
13599
|
{
|
|
13455
13600
|
href: parsePath(
|
|
@@ -13461,7 +13606,7 @@ function LinkNodePlugin({
|
|
|
13461
13606
|
children: parsePath(linkPopoverState.node.__link.path)
|
|
13462
13607
|
}
|
|
13463
13608
|
),
|
|
13464
|
-
/* @__PURE__ */
|
|
13609
|
+
/* @__PURE__ */ jsx127(
|
|
13465
13610
|
Button,
|
|
13466
13611
|
{
|
|
13467
13612
|
size: "xs",
|
|
@@ -13469,7 +13614,7 @@ function LinkNodePlugin({
|
|
|
13469
13614
|
onEditLinkNode(linkPopoverState.node);
|
|
13470
13615
|
},
|
|
13471
13616
|
buttonType: "ghost",
|
|
13472
|
-
children: /* @__PURE__ */
|
|
13617
|
+
children: /* @__PURE__ */ jsx127(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
|
|
13473
13618
|
}
|
|
13474
13619
|
)
|
|
13475
13620
|
] })
|
|
@@ -13607,7 +13752,7 @@ function ListIndentPlugin({ maxDepth }) {
|
|
|
13607
13752
|
}
|
|
13608
13753
|
|
|
13609
13754
|
// src/components/ParameterInputs/rich-text/TableActionMenuPlugin.tsx
|
|
13610
|
-
import { css as
|
|
13755
|
+
import { css as css96 } from "@emotion/react";
|
|
13611
13756
|
import { useLexicalComposerContext as useLexicalComposerContext5 } from "@lexical/react/LexicalComposerContext";
|
|
13612
13757
|
import { useLexicalEditable } from "@lexical/react/useLexicalEditable";
|
|
13613
13758
|
import {
|
|
@@ -13628,7 +13773,7 @@ import {
|
|
|
13628
13773
|
} from "@lexical/table";
|
|
13629
13774
|
import { $getRoot as $getRoot2, $getSelection as $getSelection3, $isRangeSelection as $isRangeSelection3 } from "lexical";
|
|
13630
13775
|
import { forwardRef as forwardRef25, useCallback as useCallback9, useEffect as useEffect19, useLayoutEffect, useState as useState16 } from "react";
|
|
13631
|
-
import { jsx as
|
|
13776
|
+
import { jsx as jsx128, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
|
|
13632
13777
|
function computeSelectionCount(selection) {
|
|
13633
13778
|
const selectionShape = selection.getShape();
|
|
13634
13779
|
return {
|
|
@@ -13636,7 +13781,7 @@ function computeSelectionCount(selection) {
|
|
|
13636
13781
|
rows: selectionShape.toY - selectionShape.fromY + 1
|
|
13637
13782
|
};
|
|
13638
13783
|
}
|
|
13639
|
-
var tableActionMenuTrigger =
|
|
13784
|
+
var tableActionMenuTrigger = css96`
|
|
13640
13785
|
position: absolute;
|
|
13641
13786
|
transform: translate(calc(-100% - 1px), 1px);
|
|
13642
13787
|
`;
|
|
@@ -13650,7 +13795,7 @@ var TableActionMenuTrigger = forwardRef25((props, ref) => {
|
|
|
13650
13795
|
const relativeY = rect.top - parentRect.top + positioningAnchorEl.scrollTop;
|
|
13651
13796
|
setCoordinates({ x: relativeX, y: relativeY });
|
|
13652
13797
|
}, [tableCellEl, positioningAnchorEl]);
|
|
13653
|
-
return /* @__PURE__ */
|
|
13798
|
+
return /* @__PURE__ */ jsx128(
|
|
13654
13799
|
IconButton,
|
|
13655
13800
|
{
|
|
13656
13801
|
ref,
|
|
@@ -13664,7 +13809,7 @@ var TableActionMenuTrigger = forwardRef25((props, ref) => {
|
|
|
13664
13809
|
size: "xs",
|
|
13665
13810
|
buttonType: "unimportant",
|
|
13666
13811
|
...rest,
|
|
13667
|
-
children: /* @__PURE__ */
|
|
13812
|
+
children: /* @__PURE__ */ jsx128(Icon, { icon: "chevron-down", size: "1rem", iconColor: "currentColor" })
|
|
13668
13813
|
}
|
|
13669
13814
|
);
|
|
13670
13815
|
});
|
|
@@ -13815,13 +13960,13 @@ function TableActionMenu({
|
|
|
13815
13960
|
clearTableSelection();
|
|
13816
13961
|
});
|
|
13817
13962
|
}, [editor, tableCellNode, clearTableSelection]);
|
|
13818
|
-
const menuItemCss =
|
|
13963
|
+
const menuItemCss = css96({
|
|
13819
13964
|
fontSize: "var(--fs-sm)"
|
|
13820
13965
|
});
|
|
13821
13966
|
return /* @__PURE__ */ jsxs85(
|
|
13822
13967
|
Menu,
|
|
13823
13968
|
{
|
|
13824
|
-
menuTrigger: /* @__PURE__ */
|
|
13969
|
+
menuTrigger: /* @__PURE__ */ jsx128(
|
|
13825
13970
|
TableActionMenuTrigger,
|
|
13826
13971
|
{
|
|
13827
13972
|
tableCellEl,
|
|
@@ -13851,7 +13996,7 @@ function TableActionMenu({
|
|
|
13851
13996
|
selectionCounts.rows === 1 ? "row" : `${selectionCounts.rows} rows`,
|
|
13852
13997
|
" below"
|
|
13853
13998
|
] }),
|
|
13854
|
-
/* @__PURE__ */
|
|
13999
|
+
/* @__PURE__ */ jsx128(MenuItemSeparator, {}),
|
|
13855
14000
|
/* @__PURE__ */ jsxs85(MenuItem, { onClick: () => insertTableColumnAtSelection(false), css: menuItemCss, children: [
|
|
13856
14001
|
"Insert ",
|
|
13857
14002
|
selectionCounts.columns === 1 ? "column" : `${selectionCounts.columns} columns`,
|
|
@@ -13862,11 +14007,11 @@ function TableActionMenu({
|
|
|
13862
14007
|
selectionCounts.columns === 1 ? "column" : `${selectionCounts.columns} columns`,
|
|
13863
14008
|
" right"
|
|
13864
14009
|
] }),
|
|
13865
|
-
/* @__PURE__ */
|
|
13866
|
-
/* @__PURE__ */
|
|
13867
|
-
/* @__PURE__ */
|
|
13868
|
-
/* @__PURE__ */
|
|
13869
|
-
/* @__PURE__ */
|
|
14010
|
+
/* @__PURE__ */ jsx128(MenuItemSeparator, {}),
|
|
14011
|
+
/* @__PURE__ */ jsx128(MenuItem, { onClick: () => deleteTableColumnAtSelection(), css: menuItemCss, children: "Delete column" }),
|
|
14012
|
+
/* @__PURE__ */ jsx128(MenuItem, { onClick: () => deleteTableRowAtSelection(), css: menuItemCss, children: "Delete row" }),
|
|
14013
|
+
/* @__PURE__ */ jsx128(MenuItem, { onClick: () => deleteTableAtSelection(), css: menuItemCss, children: "Delete table" }),
|
|
14014
|
+
/* @__PURE__ */ jsx128(MenuItemSeparator, {}),
|
|
13870
14015
|
/* @__PURE__ */ jsxs85(MenuItem, { onClick: () => toggleTableRowIsHeader(), css: menuItemCss, children: [
|
|
13871
14016
|
(tableCellNode.__headerState & TableCellHeaderStates.ROW) === TableCellHeaderStates.ROW ? "Remove" : "Add",
|
|
13872
14017
|
" ",
|
|
@@ -13940,7 +14085,7 @@ function TableCellActionMenuContainer({
|
|
|
13940
14085
|
});
|
|
13941
14086
|
});
|
|
13942
14087
|
});
|
|
13943
|
-
return tableCellNode != null && tableCellNodeEl != null && tableCellMenuPortalEl != null && /* @__PURE__ */
|
|
14088
|
+
return tableCellNode != null && tableCellNodeEl != null && tableCellMenuPortalEl != null && /* @__PURE__ */ jsx128(
|
|
13944
14089
|
TableActionMenu,
|
|
13945
14090
|
{
|
|
13946
14091
|
tableCellNode,
|
|
@@ -13956,11 +14101,11 @@ function TableActionMenuPlugin({
|
|
|
13956
14101
|
menuPortalEl
|
|
13957
14102
|
}) {
|
|
13958
14103
|
const isEditable = useLexicalEditable();
|
|
13959
|
-
return isEditable ? /* @__PURE__ */
|
|
14104
|
+
return isEditable ? /* @__PURE__ */ jsx128(TableCellActionMenuContainer, { menuPortalEl, positioningAnchorEl }) : null;
|
|
13960
14105
|
}
|
|
13961
14106
|
|
|
13962
14107
|
// src/components/ParameterInputs/rich-text/TableCellResizerPlugin.tsx
|
|
13963
|
-
import { css as
|
|
14108
|
+
import { css as css97 } from "@emotion/react";
|
|
13964
14109
|
import { useLexicalComposerContext as useLexicalComposerContext6 } from "@lexical/react/LexicalComposerContext";
|
|
13965
14110
|
import { useLexicalEditable as useLexicalEditable2 } from "@lexical/react/useLexicalEditable";
|
|
13966
14111
|
import {
|
|
@@ -13974,10 +14119,10 @@ import { calculateZoomLevel } from "@lexical/utils";
|
|
|
13974
14119
|
import { $getNearestNodeFromDOMNode } from "lexical";
|
|
13975
14120
|
import { useCallback as useCallback10, useEffect as useEffect20, useMemo as useMemo6, useRef as useRef11, useState as useState17 } from "react";
|
|
13976
14121
|
import { createPortal as createPortal3 } from "react-dom";
|
|
13977
|
-
import { Fragment as Fragment16, jsx as
|
|
14122
|
+
import { Fragment as Fragment16, jsx as jsx129, jsxs as jsxs86 } from "@emotion/react/jsx-runtime";
|
|
13978
14123
|
var MIN_ROW_HEIGHT = 33;
|
|
13979
14124
|
var MIN_COLUMN_WIDTH = 50;
|
|
13980
|
-
var tableResizer =
|
|
14125
|
+
var tableResizer = css97`
|
|
13981
14126
|
position: absolute;
|
|
13982
14127
|
z-index: var(--z-10);
|
|
13983
14128
|
`;
|
|
@@ -14275,8 +14420,8 @@ function TableCellResizer({ editor, positioningAnchorEl }) {
|
|
|
14275
14420
|
};
|
|
14276
14421
|
}, [activeCell, draggingDirection, mouseCurrentPos, positioningAnchorEl]);
|
|
14277
14422
|
const resizerStyles = getResizers();
|
|
14278
|
-
return /* @__PURE__ */
|
|
14279
|
-
/* @__PURE__ */
|
|
14423
|
+
return /* @__PURE__ */ jsx129("div", { ref: resizerRef, children: activeCell != null && !isMouseDown && /* @__PURE__ */ jsxs86(Fragment16, { children: [
|
|
14424
|
+
/* @__PURE__ */ jsx129(
|
|
14280
14425
|
"div",
|
|
14281
14426
|
{
|
|
14282
14427
|
css: tableResizer,
|
|
@@ -14284,7 +14429,7 @@ function TableCellResizer({ editor, positioningAnchorEl }) {
|
|
|
14284
14429
|
onMouseDown: toggleResize("right")
|
|
14285
14430
|
}
|
|
14286
14431
|
),
|
|
14287
|
-
/* @__PURE__ */
|
|
14432
|
+
/* @__PURE__ */ jsx129(
|
|
14288
14433
|
"div",
|
|
14289
14434
|
{
|
|
14290
14435
|
css: tableResizer,
|
|
@@ -14299,7 +14444,7 @@ function TableCellResizerPlugin({ positioningAnchorEl }) {
|
|
|
14299
14444
|
const isEditable = useLexicalEditable2();
|
|
14300
14445
|
return useMemo6(
|
|
14301
14446
|
() => isEditable ? createPortal3(
|
|
14302
|
-
/* @__PURE__ */
|
|
14447
|
+
/* @__PURE__ */ jsx129(TableCellResizer, { editor, positioningAnchorEl }),
|
|
14303
14448
|
positioningAnchorEl
|
|
14304
14449
|
) : null,
|
|
14305
14450
|
[editor, isEditable, positioningAnchorEl]
|
|
@@ -14365,7 +14510,7 @@ var TableSelectionPlugin = () => {
|
|
|
14365
14510
|
var TableSelectionPlugin_default = TableSelectionPlugin;
|
|
14366
14511
|
|
|
14367
14512
|
// src/components/ParameterInputs/rich-text/toolbar/RichTextToolbar.tsx
|
|
14368
|
-
import { css as
|
|
14513
|
+
import { css as css98 } from "@emotion/react";
|
|
14369
14514
|
import { $createCodeNode } from "@lexical/code";
|
|
14370
14515
|
import {
|
|
14371
14516
|
$isListNode as $isListNode2,
|
|
@@ -14535,8 +14680,8 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
14535
14680
|
};
|
|
14536
14681
|
|
|
14537
14682
|
// src/components/ParameterInputs/rich-text/toolbar/RichTextToolbar.tsx
|
|
14538
|
-
import { Fragment as Fragment17, jsx as
|
|
14539
|
-
var toolbar =
|
|
14683
|
+
import { Fragment as Fragment17, jsx as jsx130, jsxs as jsxs87 } from "@emotion/react/jsx-runtime";
|
|
14684
|
+
var toolbar = css98`
|
|
14540
14685
|
${scrollbarStyles}
|
|
14541
14686
|
background: var(--gray-50);
|
|
14542
14687
|
border-radius: var(--rounded-base);
|
|
@@ -14550,7 +14695,7 @@ var toolbar = css97`
|
|
|
14550
14695
|
top: calc(var(--spacing-sm) * -2);
|
|
14551
14696
|
z-index: 10;
|
|
14552
14697
|
`;
|
|
14553
|
-
var toolbarGroup =
|
|
14698
|
+
var toolbarGroup = css98`
|
|
14554
14699
|
display: flex;
|
|
14555
14700
|
flex-shrink: 0;
|
|
14556
14701
|
gap: var(--spacing-xs);
|
|
@@ -14567,7 +14712,7 @@ var toolbarGroup = css97`
|
|
|
14567
14712
|
width: 1px;
|
|
14568
14713
|
}
|
|
14569
14714
|
`;
|
|
14570
|
-
var richTextToolbarButton =
|
|
14715
|
+
var richTextToolbarButton = css98`
|
|
14571
14716
|
align-items: center;
|
|
14572
14717
|
appearance: none;
|
|
14573
14718
|
border: 0;
|
|
@@ -14581,21 +14726,21 @@ var richTextToolbarButton = css97`
|
|
|
14581
14726
|
min-width: 32px;
|
|
14582
14727
|
padding: 0 var(--spacing-sm);
|
|
14583
14728
|
`;
|
|
14584
|
-
var richTextToolbarButtonActive =
|
|
14729
|
+
var richTextToolbarButtonActive = css98`
|
|
14585
14730
|
background: var(--gray-200);
|
|
14586
14731
|
`;
|
|
14587
|
-
var textStyleButton =
|
|
14732
|
+
var textStyleButton = css98`
|
|
14588
14733
|
justify-content: space-between;
|
|
14589
14734
|
min-width: 7rem;
|
|
14590
14735
|
`;
|
|
14591
|
-
var toolbarIcon =
|
|
14736
|
+
var toolbarIcon = css98`
|
|
14592
14737
|
color: inherit;
|
|
14593
14738
|
`;
|
|
14594
|
-
var toolbarChevron =
|
|
14739
|
+
var toolbarChevron = css98`
|
|
14595
14740
|
margin-left: var(--spacing-xs);
|
|
14596
14741
|
`;
|
|
14597
14742
|
var RichTextToolbarIcon = ({ icon }) => {
|
|
14598
|
-
return /* @__PURE__ */
|
|
14743
|
+
return /* @__PURE__ */ jsx130(Icon, { icon, css: toolbarIcon, size: "1rem" });
|
|
14599
14744
|
};
|
|
14600
14745
|
var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset }) => {
|
|
14601
14746
|
const [editor] = useLexicalComposerContext8();
|
|
@@ -14716,7 +14861,7 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
|
|
|
14716
14861
|
menuTrigger: /* @__PURE__ */ jsxs87("button", { css: [richTextToolbarButton, textStyleButton], title: "Text styles", type: "button", children: [
|
|
14717
14862
|
visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
|
|
14718
14863
|
" ",
|
|
14719
|
-
/* @__PURE__ */
|
|
14864
|
+
/* @__PURE__ */ jsx130(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
|
|
14720
14865
|
] }),
|
|
14721
14866
|
placement: "bottom-start",
|
|
14722
14867
|
children: [
|
|
@@ -14726,7 +14871,7 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
|
|
|
14726
14871
|
type: "paragraph"
|
|
14727
14872
|
},
|
|
14728
14873
|
...visibleTextualElements
|
|
14729
|
-
].map((element) => /* @__PURE__ */
|
|
14874
|
+
].map((element) => /* @__PURE__ */ jsx130(
|
|
14730
14875
|
MenuItem,
|
|
14731
14876
|
{
|
|
14732
14877
|
"data-testid": "menu-item",
|
|
@@ -14737,12 +14882,12 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
|
|
|
14737
14882
|
},
|
|
14738
14883
|
element.type
|
|
14739
14884
|
)),
|
|
14740
|
-
visibleTextualElements.length === 0 ? /* @__PURE__ */
|
|
14885
|
+
visibleTextualElements.length === 0 ? /* @__PURE__ */ jsx130(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
|
|
14741
14886
|
]
|
|
14742
14887
|
}
|
|
14743
14888
|
),
|
|
14744
14889
|
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsxs87("div", { css: toolbarGroup, "data-testid": "rich-text-toolbar-formatting", children: [
|
|
14745
|
-
visibleFormatsWithIcon.map((format) => /* @__PURE__ */
|
|
14890
|
+
visibleFormatsWithIcon.map((format) => /* @__PURE__ */ jsx130(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ jsx130(
|
|
14746
14891
|
"button",
|
|
14747
14892
|
{
|
|
14748
14893
|
"data-testid": `formatting-button-${format.type}`,
|
|
@@ -14754,15 +14899,15 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
|
|
|
14754
14899
|
richTextToolbarButton,
|
|
14755
14900
|
activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
|
|
14756
14901
|
],
|
|
14757
|
-
children: /* @__PURE__ */
|
|
14902
|
+
children: /* @__PURE__ */ jsx130(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
|
|
14758
14903
|
}
|
|
14759
14904
|
) }, format.type)),
|
|
14760
|
-
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
14905
|
+
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsx130(
|
|
14761
14906
|
Menu,
|
|
14762
14907
|
{
|
|
14763
|
-
menuTrigger: /* @__PURE__ */
|
|
14908
|
+
menuTrigger: /* @__PURE__ */ jsx130("button", { css: richTextToolbarButton, title: "Alternative text styles", type: "button", children: /* @__PURE__ */ jsx130(Icon, { icon: "more-alt", css: toolbarIcon }) }),
|
|
14764
14909
|
placement: "bottom-start",
|
|
14765
|
-
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */
|
|
14910
|
+
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ jsx130(
|
|
14766
14911
|
MenuItem,
|
|
14767
14912
|
{
|
|
14768
14913
|
onClick: () => {
|
|
@@ -14776,7 +14921,7 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
|
|
|
14776
14921
|
) : null
|
|
14777
14922
|
] }) : null,
|
|
14778
14923
|
visibleElementsWithIcons.size > 0 || customControls ? /* @__PURE__ */ jsxs87("div", { css: toolbarGroup, "data-testid": "rich-text-toolbar-elements", children: [
|
|
14779
|
-
linkElementVisible ? /* @__PURE__ */
|
|
14924
|
+
linkElementVisible ? /* @__PURE__ */ jsx130(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ jsx130(
|
|
14780
14925
|
"button",
|
|
14781
14926
|
{
|
|
14782
14927
|
"data-testid": "element-link",
|
|
@@ -14789,11 +14934,11 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
|
|
|
14789
14934
|
}
|
|
14790
14935
|
},
|
|
14791
14936
|
css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
|
|
14792
|
-
children: /* @__PURE__ */
|
|
14937
|
+
children: /* @__PURE__ */ jsx130(RichTextToolbarIcon, { icon: "link" })
|
|
14793
14938
|
}
|
|
14794
14939
|
) }) : null,
|
|
14795
14940
|
visibleLists.size > 0 ? /* @__PURE__ */ jsxs87(Fragment17, { children: [
|
|
14796
|
-
visibleLists.has("unorderedList") ? /* @__PURE__ */
|
|
14941
|
+
visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx130(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx130(
|
|
14797
14942
|
"button",
|
|
14798
14943
|
{
|
|
14799
14944
|
"data-testid": "element-unordered-list",
|
|
@@ -14809,10 +14954,10 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
|
|
|
14809
14954
|
richTextToolbarButton,
|
|
14810
14955
|
activeElement === "unorderedList" ? richTextToolbarButtonActive : null
|
|
14811
14956
|
],
|
|
14812
|
-
children: /* @__PURE__ */
|
|
14957
|
+
children: /* @__PURE__ */ jsx130(RichTextToolbarIcon, { icon: "layout-list" })
|
|
14813
14958
|
}
|
|
14814
14959
|
) }) : null,
|
|
14815
|
-
visibleLists.has("orderedList") ? /* @__PURE__ */
|
|
14960
|
+
visibleLists.has("orderedList") ? /* @__PURE__ */ jsx130(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ jsx130(
|
|
14816
14961
|
"button",
|
|
14817
14962
|
{
|
|
14818
14963
|
"data-testid": "element-ordered-list",
|
|
@@ -14828,58 +14973,58 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
|
|
|
14828
14973
|
richTextToolbarButton,
|
|
14829
14974
|
activeElement === "orderedList" ? richTextToolbarButtonActive : null
|
|
14830
14975
|
],
|
|
14831
|
-
children: /* @__PURE__ */
|
|
14976
|
+
children: /* @__PURE__ */ jsx130(RichTextToolbarIcon, { icon: "layout-list-numbered" })
|
|
14832
14977
|
}
|
|
14833
14978
|
) }) : null
|
|
14834
14979
|
] }) : null,
|
|
14835
14980
|
customControls ? customControls : null
|
|
14836
14981
|
] }) : null,
|
|
14837
|
-
visibleInsertElementsWithIcons.size > 0 ? /* @__PURE__ */
|
|
14982
|
+
visibleInsertElementsWithIcons.size > 0 ? /* @__PURE__ */ jsx130("div", { css: toolbarGroup, "data-testid": "rich-text-toolbar-insert", children: /* @__PURE__ */ jsxs87(
|
|
14838
14983
|
Menu,
|
|
14839
14984
|
{
|
|
14840
14985
|
menuTrigger: /* @__PURE__ */ jsxs87("button", { css: richTextToolbarButton, title: "Insert block element", type: "button", children: [
|
|
14841
14986
|
"Insert",
|
|
14842
|
-
/* @__PURE__ */
|
|
14987
|
+
/* @__PURE__ */ jsx130(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
|
|
14843
14988
|
] }),
|
|
14844
14989
|
placement: "bottom-start",
|
|
14845
14990
|
children: [
|
|
14846
|
-
quoteElementVisible ? /* @__PURE__ */
|
|
14991
|
+
quoteElementVisible ? /* @__PURE__ */ jsx130(
|
|
14847
14992
|
MenuItem,
|
|
14848
14993
|
{
|
|
14849
14994
|
onClick: () => {
|
|
14850
14995
|
onSelectElement("quote");
|
|
14851
14996
|
},
|
|
14852
|
-
icon: /* @__PURE__ */
|
|
14997
|
+
icon: /* @__PURE__ */ jsx130(Icon, { icon: "quote", iconColor: "currentColor" }),
|
|
14853
14998
|
children: "Quote"
|
|
14854
14999
|
}
|
|
14855
15000
|
) : null,
|
|
14856
|
-
codeElementVisible ? /* @__PURE__ */
|
|
15001
|
+
codeElementVisible ? /* @__PURE__ */ jsx130(
|
|
14857
15002
|
MenuItem,
|
|
14858
15003
|
{
|
|
14859
15004
|
onClick: () => {
|
|
14860
15005
|
onSelectElement("code");
|
|
14861
15006
|
},
|
|
14862
|
-
icon: /* @__PURE__ */
|
|
15007
|
+
icon: /* @__PURE__ */ jsx130(Icon, { icon: "code-slash", iconColor: "currentColor" }),
|
|
14863
15008
|
children: "Code"
|
|
14864
15009
|
}
|
|
14865
15010
|
) : null,
|
|
14866
|
-
tableElementVisible && onInsertTable !== void 0 ? /* @__PURE__ */
|
|
15011
|
+
tableElementVisible && onInsertTable !== void 0 ? /* @__PURE__ */ jsx130(
|
|
14867
15012
|
MenuItem,
|
|
14868
15013
|
{
|
|
14869
15014
|
onClick: () => {
|
|
14870
15015
|
onSelectElement("table");
|
|
14871
15016
|
},
|
|
14872
|
-
icon: /* @__PURE__ */
|
|
15017
|
+
icon: /* @__PURE__ */ jsx130(Icon, { icon: "view-grid", iconColor: "currentColor" }),
|
|
14873
15018
|
children: "Table"
|
|
14874
15019
|
}
|
|
14875
15020
|
) : null,
|
|
14876
|
-
assetElementVisible && onInsertAsset !== void 0 ? /* @__PURE__ */
|
|
15021
|
+
assetElementVisible && onInsertAsset !== void 0 ? /* @__PURE__ */ jsx130(
|
|
14877
15022
|
MenuItem,
|
|
14878
15023
|
{
|
|
14879
15024
|
onClick: () => {
|
|
14880
15025
|
onSelectElement("asset");
|
|
14881
15026
|
},
|
|
14882
|
-
icon: /* @__PURE__ */
|
|
15027
|
+
icon: /* @__PURE__ */ jsx130(Icon, { icon: "image", iconColor: "currentColor" }),
|
|
14883
15028
|
children: "Asset"
|
|
14884
15029
|
}
|
|
14885
15030
|
) : null
|
|
@@ -14891,7 +15036,7 @@ var RichTextToolbar = ({ config, customControls, onInsertTable, onInsertAsset })
|
|
|
14891
15036
|
var RichTextToolbar_default = RichTextToolbar;
|
|
14892
15037
|
|
|
14893
15038
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
14894
|
-
import { Fragment as Fragment18, jsx as
|
|
15039
|
+
import { Fragment as Fragment18, jsx as jsx131, jsxs as jsxs88 } from "@emotion/react/jsx-runtime";
|
|
14895
15040
|
var ParameterRichText = ({
|
|
14896
15041
|
label,
|
|
14897
15042
|
labelLeadingIcon,
|
|
@@ -14902,23 +15047,8 @@ var ParameterRichText = ({
|
|
|
14902
15047
|
errorTestId,
|
|
14903
15048
|
captionTestId,
|
|
14904
15049
|
menuItems,
|
|
14905
|
-
value,
|
|
14906
|
-
onChange,
|
|
14907
|
-
onConnectLink,
|
|
14908
|
-
config,
|
|
14909
|
-
onRichTextInit,
|
|
14910
|
-
readOnly,
|
|
14911
|
-
editorWrapperClassName,
|
|
14912
|
-
editorInputClassName,
|
|
14913
|
-
editorInputWrapperClassName,
|
|
14914
|
-
editorFooter,
|
|
14915
|
-
customNodes,
|
|
14916
15050
|
children,
|
|
14917
|
-
|
|
14918
|
-
customControls,
|
|
14919
|
-
onInsertTable,
|
|
14920
|
-
onInsertAsset,
|
|
14921
|
-
minimalInteractivity
|
|
15051
|
+
...innerProps
|
|
14922
15052
|
}) => {
|
|
14923
15053
|
return /* @__PURE__ */ jsxs88(
|
|
14924
15054
|
ParameterShell,
|
|
@@ -14934,34 +15064,13 @@ var ParameterRichText = ({
|
|
|
14934
15064
|
captionTestId,
|
|
14935
15065
|
menuItems,
|
|
14936
15066
|
children: [
|
|
14937
|
-
/* @__PURE__ */
|
|
14938
|
-
|
|
14939
|
-
{
|
|
14940
|
-
value,
|
|
14941
|
-
onChange,
|
|
14942
|
-
onConnectLink,
|
|
14943
|
-
config,
|
|
14944
|
-
onRichTextInit,
|
|
14945
|
-
readOnly,
|
|
14946
|
-
editorWrapperClassName,
|
|
14947
|
-
editorInputClassName,
|
|
14948
|
-
editorInputWrapperClassName,
|
|
14949
|
-
editorFooter,
|
|
14950
|
-
customNodes,
|
|
14951
|
-
variables,
|
|
14952
|
-
customControls,
|
|
14953
|
-
onInsertTable,
|
|
14954
|
-
onInsertAsset,
|
|
14955
|
-
minimalInteractivity,
|
|
14956
|
-
children
|
|
14957
|
-
}
|
|
14958
|
-
),
|
|
14959
|
-
menuItems ? /* @__PURE__ */ jsx130(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx130(Fragment18, { children: menuItems }) }) : null
|
|
15067
|
+
/* @__PURE__ */ jsx131(ParameterRichTextInner, { ...innerProps, children }),
|
|
15068
|
+
menuItems ? /* @__PURE__ */ jsx131(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx131(Fragment18, { children: menuItems }) }) : null
|
|
14960
15069
|
]
|
|
14961
15070
|
}
|
|
14962
15071
|
);
|
|
14963
15072
|
};
|
|
14964
|
-
var editorContainerWrapper =
|
|
15073
|
+
var editorContainerWrapper = css99`
|
|
14965
15074
|
position: relative;
|
|
14966
15075
|
|
|
14967
15076
|
&::before {
|
|
@@ -14977,12 +15086,12 @@ var editorContainerWrapper = css98`
|
|
|
14977
15086
|
z-index: 2;
|
|
14978
15087
|
}
|
|
14979
15088
|
`;
|
|
14980
|
-
var editorWrapper =
|
|
15089
|
+
var editorWrapper = css99`
|
|
14981
15090
|
display: flex;
|
|
14982
15091
|
flex-flow: column;
|
|
14983
15092
|
flex-grow: 1;
|
|
14984
15093
|
`;
|
|
14985
|
-
var editorContainer =
|
|
15094
|
+
var editorContainer = css99`
|
|
14986
15095
|
${scrollbarStyles}
|
|
14987
15096
|
background: var(--white);
|
|
14988
15097
|
border-radius: var(--rounded-sm);
|
|
@@ -15014,7 +15123,7 @@ var editorContainer = css98`
|
|
|
15014
15123
|
max-height: unset;
|
|
15015
15124
|
}
|
|
15016
15125
|
`;
|
|
15017
|
-
var editorContainerOverflowWrapper =
|
|
15126
|
+
var editorContainerOverflowWrapper = css99`
|
|
15018
15127
|
overflow: hidden;
|
|
15019
15128
|
pointer-events: none;
|
|
15020
15129
|
|
|
@@ -15022,7 +15131,7 @@ var editorContainerOverflowWrapper = css98`
|
|
|
15022
15131
|
pointer-events: auto;
|
|
15023
15132
|
}
|
|
15024
15133
|
`;
|
|
15025
|
-
var editorPlaceholder =
|
|
15134
|
+
var editorPlaceholder = css99`
|
|
15026
15135
|
color: var(--gray-500);
|
|
15027
15136
|
font-style: italic;
|
|
15028
15137
|
/* 1px is added to make sure caret is clearly visible when field is focused
|
|
@@ -15033,7 +15142,7 @@ var editorPlaceholder = css98`
|
|
|
15033
15142
|
top: calc(1rem + var(--spacing-sm));
|
|
15034
15143
|
user-select: none;
|
|
15035
15144
|
`;
|
|
15036
|
-
var editorInput =
|
|
15145
|
+
var editorInput = css99`
|
|
15037
15146
|
min-height: 100%;
|
|
15038
15147
|
flex-grow: 1;
|
|
15039
15148
|
|
|
@@ -15044,22 +15153,11 @@ var editorInput = css98`
|
|
|
15044
15153
|
`;
|
|
15045
15154
|
var ParameterRichTextInner = ({
|
|
15046
15155
|
value,
|
|
15047
|
-
onChange,
|
|
15048
|
-
onConnectLink,
|
|
15049
|
-
config,
|
|
15050
|
-
onRichTextInit,
|
|
15051
|
-
readOnly,
|
|
15052
|
-
editorWrapperClassName,
|
|
15053
|
-
editorInputClassName,
|
|
15054
|
-
editorInputWrapperClassName,
|
|
15055
15156
|
editorFooter,
|
|
15056
15157
|
children,
|
|
15057
15158
|
customNodes,
|
|
15058
|
-
|
|
15059
|
-
|
|
15060
|
-
onInsertTable,
|
|
15061
|
-
onInsertAsset,
|
|
15062
|
-
minimalInteractivity
|
|
15159
|
+
editorWrapperClassName,
|
|
15160
|
+
...richTextProps
|
|
15063
15161
|
}) => {
|
|
15064
15162
|
const lexicalConfig = {
|
|
15065
15163
|
namespace: "uniform",
|
|
@@ -15115,27 +15213,10 @@ var ParameterRichTextInner = ({
|
|
|
15115
15213
|
tableCell: tableCellElement,
|
|
15116
15214
|
tableCellHeader: tableHeaderElement
|
|
15117
15215
|
},
|
|
15118
|
-
editable: !readOnly
|
|
15216
|
+
editable: !richTextProps.readOnly
|
|
15119
15217
|
};
|
|
15120
15218
|
return /* @__PURE__ */ jsxs88(Fragment18, { children: [
|
|
15121
|
-
/* @__PURE__ */
|
|
15122
|
-
RichText,
|
|
15123
|
-
{
|
|
15124
|
-
onChange,
|
|
15125
|
-
onConnectLink,
|
|
15126
|
-
config,
|
|
15127
|
-
onRichTextInit,
|
|
15128
|
-
readOnly,
|
|
15129
|
-
editorInputClassName,
|
|
15130
|
-
editorInputWrapperClassName,
|
|
15131
|
-
variables,
|
|
15132
|
-
customControls,
|
|
15133
|
-
onInsertTable,
|
|
15134
|
-
onInsertAsset,
|
|
15135
|
-
minimalInteractivity,
|
|
15136
|
-
children
|
|
15137
|
-
}
|
|
15138
|
-
) }) }),
|
|
15219
|
+
/* @__PURE__ */ jsx131("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx131(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx131(RichText, { ...richTextProps, children }) }) }),
|
|
15139
15220
|
editorFooter ? editorFooter : null
|
|
15140
15221
|
] });
|
|
15141
15222
|
};
|
|
@@ -15161,7 +15242,8 @@ var RichText = ({
|
|
|
15161
15242
|
customControls,
|
|
15162
15243
|
onInsertTable,
|
|
15163
15244
|
onInsertAsset,
|
|
15164
|
-
minimalInteractivity
|
|
15245
|
+
minimalInteractivity,
|
|
15246
|
+
placeholder
|
|
15165
15247
|
}) => {
|
|
15166
15248
|
const [editor] = useLexicalComposerContext9();
|
|
15167
15249
|
useEffect23(() => {
|
|
@@ -15202,7 +15284,7 @@ var RichText = ({
|
|
|
15202
15284
|
}
|
|
15203
15285
|
};
|
|
15204
15286
|
return /* @__PURE__ */ jsxs88(Fragment18, { children: [
|
|
15205
|
-
readOnly || minimalInteractivity ? null : /* @__PURE__ */
|
|
15287
|
+
readOnly || minimalInteractivity ? null : /* @__PURE__ */ jsx131(
|
|
15206
15288
|
RichTextToolbar_default,
|
|
15207
15289
|
{
|
|
15208
15290
|
config,
|
|
@@ -15220,33 +15302,33 @@ var RichText = ({
|
|
|
15220
15302
|
ref: onEditorContainerRef,
|
|
15221
15303
|
"data-testid": "value-container",
|
|
15222
15304
|
children: [
|
|
15223
|
-
/* @__PURE__ */
|
|
15305
|
+
/* @__PURE__ */ jsx131(
|
|
15224
15306
|
RichTextPlugin,
|
|
15225
15307
|
{
|
|
15226
|
-
contentEditable: /* @__PURE__ */
|
|
15227
|
-
placeholder: /* @__PURE__ */
|
|
15308
|
+
contentEditable: /* @__PURE__ */ jsx131(ContentEditable, { css: editorInput, className: editorInputClassName }),
|
|
15309
|
+
placeholder: /* @__PURE__ */ jsx131("div", { css: editorPlaceholder, "data-placeholder": true, children: placeholder != null ? placeholder : readOnly ? "empty" : "start editing..." }),
|
|
15228
15310
|
ErrorBoundary: LexicalErrorBoundary
|
|
15229
15311
|
}
|
|
15230
15312
|
),
|
|
15231
|
-
/* @__PURE__ */
|
|
15232
|
-
/* @__PURE__ */
|
|
15233
|
-
/* @__PURE__ */
|
|
15234
|
-
/* @__PURE__ */
|
|
15313
|
+
/* @__PURE__ */ jsx131(ListPlugin, {}),
|
|
15314
|
+
/* @__PURE__ */ jsx131(ListIndentPlugin, { maxDepth: 4 }),
|
|
15315
|
+
/* @__PURE__ */ jsx131(TablePlugin, { hasCellMerge: false, hasCellBackgroundColor: false }),
|
|
15316
|
+
/* @__PURE__ */ jsx131("div", { css: editorContainerOverflowWrapper, "data-testid": "table-action-menu-plugin", children: editorContainerRef && portalContainerRef && !minimalInteractivity ? /* @__PURE__ */ jsx131(
|
|
15235
15317
|
TableActionMenuPlugin,
|
|
15236
15318
|
{
|
|
15237
15319
|
positioningAnchorEl: editorContainerRef,
|
|
15238
15320
|
menuPortalEl: portalContainerRef
|
|
15239
15321
|
}
|
|
15240
15322
|
) : null }),
|
|
15241
|
-
editorContainerRef && !minimalInteractivity ? /* @__PURE__ */
|
|
15242
|
-
readOnly ? null : /* @__PURE__ */
|
|
15243
|
-
/* @__PURE__ */
|
|
15244
|
-
/* @__PURE__ */
|
|
15323
|
+
editorContainerRef && !minimalInteractivity ? /* @__PURE__ */ jsx131(TableCellResizerPlugin, { positioningAnchorEl: editorContainerRef }) : null,
|
|
15324
|
+
readOnly ? null : /* @__PURE__ */ jsx131(HistoryPlugin, {}),
|
|
15325
|
+
/* @__PURE__ */ jsx131(DisableStylesPlugin, {}),
|
|
15326
|
+
/* @__PURE__ */ jsx131(MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS })
|
|
15245
15327
|
]
|
|
15246
15328
|
}
|
|
15247
15329
|
),
|
|
15248
|
-
/* @__PURE__ */
|
|
15249
|
-
editorContainerRef ? /* @__PURE__ */
|
|
15330
|
+
/* @__PURE__ */ jsx131(Fragment18, { children }),
|
|
15331
|
+
editorContainerRef ? /* @__PURE__ */ jsx131(
|
|
15250
15332
|
LinkNodePlugin,
|
|
15251
15333
|
{
|
|
15252
15334
|
onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
|
|
@@ -15257,19 +15339,19 @@ var RichText = ({
|
|
|
15257
15339
|
positioningAnchorEl: editorContainerRef
|
|
15258
15340
|
}
|
|
15259
15341
|
) : null,
|
|
15260
|
-
/* @__PURE__ */
|
|
15261
|
-
/* @__PURE__ */
|
|
15342
|
+
/* @__PURE__ */ jsx131(TableSelectionPlugin_default, {}),
|
|
15343
|
+
/* @__PURE__ */ jsx131(ImprovedAssetSelectionPlugin_default, {})
|
|
15262
15344
|
] })
|
|
15263
15345
|
] });
|
|
15264
15346
|
};
|
|
15265
15347
|
|
|
15266
15348
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
15267
15349
|
import { forwardRef as forwardRef26 } from "react";
|
|
15268
|
-
import { jsx as
|
|
15350
|
+
import { jsx as jsx132, jsxs as jsxs89 } from "@emotion/react/jsx-runtime";
|
|
15269
15351
|
var ParameterSelect = forwardRef26(
|
|
15270
15352
|
({ defaultOption, options, ...props }, ref) => {
|
|
15271
15353
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
15272
|
-
return /* @__PURE__ */
|
|
15354
|
+
return /* @__PURE__ */ jsx132(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx132(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
15273
15355
|
}
|
|
15274
15356
|
);
|
|
15275
15357
|
var ParameterSelectInner = forwardRef26(
|
|
@@ -15284,10 +15366,10 @@ var ParameterSelectInner = forwardRef26(
|
|
|
15284
15366
|
ref,
|
|
15285
15367
|
...props,
|
|
15286
15368
|
children: [
|
|
15287
|
-
defaultOption ? /* @__PURE__ */
|
|
15369
|
+
defaultOption ? /* @__PURE__ */ jsx132("option", { value: "", children: defaultOption }) : null,
|
|
15288
15370
|
options.map((option) => {
|
|
15289
15371
|
var _a;
|
|
15290
|
-
return /* @__PURE__ */
|
|
15372
|
+
return /* @__PURE__ */ jsx132("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
15291
15373
|
})
|
|
15292
15374
|
]
|
|
15293
15375
|
}
|
|
@@ -15297,14 +15379,14 @@ var ParameterSelectInner = forwardRef26(
|
|
|
15297
15379
|
|
|
15298
15380
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
15299
15381
|
import { forwardRef as forwardRef27 } from "react";
|
|
15300
|
-
import { jsx as
|
|
15382
|
+
import { jsx as jsx133 } from "@emotion/react/jsx-runtime";
|
|
15301
15383
|
var ParameterTextarea = forwardRef27((props, ref) => {
|
|
15302
15384
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
15303
|
-
return /* @__PURE__ */
|
|
15385
|
+
return /* @__PURE__ */ jsx133(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx133(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
15304
15386
|
});
|
|
15305
15387
|
var ParameterTextareaInner = forwardRef27(({ ...props }, ref) => {
|
|
15306
15388
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
15307
|
-
return /* @__PURE__ */
|
|
15389
|
+
return /* @__PURE__ */ jsx133(
|
|
15308
15390
|
"textarea",
|
|
15309
15391
|
{
|
|
15310
15392
|
css: [input3, textarea2],
|
|
@@ -15318,25 +15400,25 @@ var ParameterTextareaInner = forwardRef27(({ ...props }, ref) => {
|
|
|
15318
15400
|
|
|
15319
15401
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
15320
15402
|
import { forwardRef as forwardRef28 } from "react";
|
|
15321
|
-
import { jsx as
|
|
15403
|
+
import { jsx as jsx134, jsxs as jsxs90 } from "@emotion/react/jsx-runtime";
|
|
15322
15404
|
var ParameterToggle = forwardRef28((props, ref) => {
|
|
15323
15405
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
15324
|
-
return /* @__PURE__ */
|
|
15406
|
+
return /* @__PURE__ */ jsx134(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx134(ParameterToggleInner, { ref, ...innerProps }) });
|
|
15325
15407
|
});
|
|
15326
15408
|
var ParameterToggleInner = forwardRef28(
|
|
15327
15409
|
({ children, ...props }, ref) => {
|
|
15328
15410
|
const { id, label } = useParameterShell();
|
|
15329
15411
|
return /* @__PURE__ */ jsxs90("label", { css: inputToggleLabel2, children: [
|
|
15330
|
-
/* @__PURE__ */
|
|
15331
|
-
/* @__PURE__ */
|
|
15412
|
+
/* @__PURE__ */ jsx134("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
15413
|
+
/* @__PURE__ */ jsx134("span", { css: inlineLabel2, children: label }),
|
|
15332
15414
|
children
|
|
15333
15415
|
] });
|
|
15334
15416
|
}
|
|
15335
15417
|
);
|
|
15336
15418
|
|
|
15337
15419
|
// src/components/ProgressBar/ProgressBar.styles.ts
|
|
15338
|
-
import { css as
|
|
15339
|
-
var container3 =
|
|
15420
|
+
import { css as css100, keyframes as keyframes4 } from "@emotion/react";
|
|
15421
|
+
var container3 = css100`
|
|
15340
15422
|
background: var(--gray-50);
|
|
15341
15423
|
margin-block: var(--spacing-sm);
|
|
15342
15424
|
position: relative;
|
|
@@ -15346,13 +15428,13 @@ var container3 = css99`
|
|
|
15346
15428
|
border: solid 1px var(--gray-300);
|
|
15347
15429
|
`;
|
|
15348
15430
|
var themeMap = {
|
|
15349
|
-
primary:
|
|
15431
|
+
primary: css100`
|
|
15350
15432
|
--progress-color: var(--accent-light);
|
|
15351
15433
|
`,
|
|
15352
|
-
secondary:
|
|
15434
|
+
secondary: css100`
|
|
15353
15435
|
--progress-color: var(--accent-alt-light);
|
|
15354
15436
|
`,
|
|
15355
|
-
destructive:
|
|
15437
|
+
destructive: css100`
|
|
15356
15438
|
--progress-color: var(--brand-secondary-5);
|
|
15357
15439
|
`
|
|
15358
15440
|
};
|
|
@@ -15364,10 +15446,10 @@ var slidingBackgroundPosition = keyframes4`
|
|
|
15364
15446
|
background-position: 64px 0;
|
|
15365
15447
|
}
|
|
15366
15448
|
`;
|
|
15367
|
-
var determinate =
|
|
15449
|
+
var determinate = css100`
|
|
15368
15450
|
background-color: var(--progress-color);
|
|
15369
15451
|
`;
|
|
15370
|
-
var indeterminate =
|
|
15452
|
+
var indeterminate = css100`
|
|
15371
15453
|
background-image: linear-gradient(
|
|
15372
15454
|
45deg,
|
|
15373
15455
|
var(--progress-color) 25%,
|
|
@@ -15381,7 +15463,7 @@ var indeterminate = css99`
|
|
|
15381
15463
|
background-size: 64px 64px;
|
|
15382
15464
|
animation: ${slidingBackgroundPosition} 1s linear infinite;
|
|
15383
15465
|
`;
|
|
15384
|
-
var bar =
|
|
15466
|
+
var bar = css100`
|
|
15385
15467
|
position: absolute;
|
|
15386
15468
|
inset: 0;
|
|
15387
15469
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
@@ -15389,7 +15471,7 @@ var bar = css99`
|
|
|
15389
15471
|
`;
|
|
15390
15472
|
|
|
15391
15473
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
15392
|
-
import { jsx as
|
|
15474
|
+
import { jsx as jsx135 } from "@emotion/react/jsx-runtime";
|
|
15393
15475
|
function ProgressBar({
|
|
15394
15476
|
current,
|
|
15395
15477
|
max,
|
|
@@ -15399,7 +15481,7 @@ function ProgressBar({
|
|
|
15399
15481
|
}) {
|
|
15400
15482
|
const valueNow = Math.min(current, max);
|
|
15401
15483
|
const valuePercentage = max > 0 ? Math.ceil(100 / max * valueNow) : 0;
|
|
15402
|
-
return /* @__PURE__ */
|
|
15484
|
+
return /* @__PURE__ */ jsx135(
|
|
15403
15485
|
"div",
|
|
15404
15486
|
{
|
|
15405
15487
|
css: container3,
|
|
@@ -15410,7 +15492,7 @@ function ProgressBar({
|
|
|
15410
15492
|
"aria-valuemax": max,
|
|
15411
15493
|
"aria-valuenow": valueNow,
|
|
15412
15494
|
...props,
|
|
15413
|
-
children: /* @__PURE__ */
|
|
15495
|
+
children: /* @__PURE__ */ jsx135(
|
|
15414
15496
|
"div",
|
|
15415
15497
|
{
|
|
15416
15498
|
css: [
|
|
@@ -15429,28 +15511,28 @@ function ProgressBar({
|
|
|
15429
15511
|
}
|
|
15430
15512
|
|
|
15431
15513
|
// src/components/ProgressList/ProgressList.tsx
|
|
15432
|
-
import { css as
|
|
15514
|
+
import { css as css102 } from "@emotion/react";
|
|
15433
15515
|
import { CgCheckO as CgCheckO2 } from "@react-icons/all-files/cg/CgCheckO";
|
|
15434
15516
|
import { CgRadioCheck } from "@react-icons/all-files/cg/CgRadioCheck";
|
|
15435
15517
|
import { CgRecord } from "@react-icons/all-files/cg/CgRecord";
|
|
15436
15518
|
import { useMemo as useMemo8 } from "react";
|
|
15437
15519
|
|
|
15438
15520
|
// src/components/ProgressList/styles/ProgressList.styles.ts
|
|
15439
|
-
import { css as
|
|
15440
|
-
var progressListStyles =
|
|
15521
|
+
import { css as css101 } from "@emotion/react";
|
|
15522
|
+
var progressListStyles = css101`
|
|
15441
15523
|
display: flex;
|
|
15442
15524
|
flex-direction: column;
|
|
15443
15525
|
gap: var(--spacing-sm);
|
|
15444
15526
|
list-style-type: none;
|
|
15445
15527
|
`;
|
|
15446
|
-
var progressListItemStyles =
|
|
15528
|
+
var progressListItemStyles = css101`
|
|
15447
15529
|
display: flex;
|
|
15448
15530
|
gap: var(--spacing-base);
|
|
15449
15531
|
align-items: center;
|
|
15450
15532
|
`;
|
|
15451
15533
|
|
|
15452
15534
|
// src/components/ProgressList/ProgressList.tsx
|
|
15453
|
-
import { jsx as
|
|
15535
|
+
import { jsx as jsx136, jsxs as jsxs91 } from "@emotion/react/jsx-runtime";
|
|
15454
15536
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
15455
15537
|
const itemsWithStatus = useMemo8(() => {
|
|
15456
15538
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -15464,8 +15546,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
15464
15546
|
return { ...item, status };
|
|
15465
15547
|
});
|
|
15466
15548
|
}, [items, inProgressId]);
|
|
15467
|
-
return /* @__PURE__ */
|
|
15468
|
-
return /* @__PURE__ */
|
|
15549
|
+
return /* @__PURE__ */ jsx136("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
15550
|
+
return /* @__PURE__ */ jsx136(
|
|
15469
15551
|
ProgressListItem,
|
|
15470
15552
|
{
|
|
15471
15553
|
status,
|
|
@@ -15498,12 +15580,12 @@ var ProgressListItem = ({
|
|
|
15498
15580
|
}, [status, error]);
|
|
15499
15581
|
const statusStyles = useMemo8(() => {
|
|
15500
15582
|
if (error) {
|
|
15501
|
-
return errorLevel === "caution" ?
|
|
15583
|
+
return errorLevel === "caution" ? css102`
|
|
15502
15584
|
color: rgb(161, 98, 7);
|
|
15503
15585
|
& svg {
|
|
15504
15586
|
color: rgb(250, 204, 21);
|
|
15505
15587
|
}
|
|
15506
|
-
` :
|
|
15588
|
+
` : css102`
|
|
15507
15589
|
color: rgb(185, 28, 28);
|
|
15508
15590
|
& svg {
|
|
15509
15591
|
color: var(--brand-primary-2);
|
|
@@ -15511,38 +15593,38 @@ var ProgressListItem = ({
|
|
|
15511
15593
|
`;
|
|
15512
15594
|
}
|
|
15513
15595
|
const colorPerStatus = {
|
|
15514
|
-
completed:
|
|
15596
|
+
completed: css102`
|
|
15515
15597
|
opacity: 0.75;
|
|
15516
15598
|
`,
|
|
15517
|
-
inProgress:
|
|
15599
|
+
inProgress: css102`
|
|
15518
15600
|
-webkit-text-stroke-width: thin;
|
|
15519
15601
|
`,
|
|
15520
|
-
queued:
|
|
15602
|
+
queued: css102`
|
|
15521
15603
|
opacity: 0.5;
|
|
15522
15604
|
`
|
|
15523
15605
|
};
|
|
15524
15606
|
return colorPerStatus[status];
|
|
15525
15607
|
}, [status, error, errorLevel]);
|
|
15526
15608
|
return /* @__PURE__ */ jsxs91("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
15527
|
-
/* @__PURE__ */
|
|
15609
|
+
/* @__PURE__ */ jsx136(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx136("div", { children: /* @__PURE__ */ jsx136(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
|
|
15528
15610
|
/* @__PURE__ */ jsxs91("div", { children: [
|
|
15529
15611
|
children,
|
|
15530
|
-
/* @__PURE__ */
|
|
15612
|
+
/* @__PURE__ */ jsx136("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
15531
15613
|
] })
|
|
15532
15614
|
] });
|
|
15533
15615
|
};
|
|
15534
15616
|
|
|
15535
15617
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
15536
|
-
import { css as
|
|
15618
|
+
import { css as css104 } from "@emotion/react";
|
|
15537
15619
|
import { CgCheck as CgCheck5 } from "@react-icons/all-files/cg/CgCheck";
|
|
15538
15620
|
import { useCallback as useCallback12, useEffect as useEffect24, useMemo as useMemo9, useRef as useRef12, useState as useState21 } from "react";
|
|
15539
15621
|
|
|
15540
15622
|
// src/components/SegmentedControl/SegmentedControl.styles.ts
|
|
15541
|
-
import { css as
|
|
15542
|
-
var segmentedControlRootStyles =
|
|
15623
|
+
import { css as css103 } from "@emotion/react";
|
|
15624
|
+
var segmentedControlRootStyles = css103`
|
|
15543
15625
|
position: relative;
|
|
15544
15626
|
`;
|
|
15545
|
-
var segmentedControlScrollIndicatorsStyles =
|
|
15627
|
+
var segmentedControlScrollIndicatorsStyles = css103`
|
|
15546
15628
|
position: absolute;
|
|
15547
15629
|
inset: 0;
|
|
15548
15630
|
z-index: 1;
|
|
@@ -15570,17 +15652,17 @@ var segmentedControlScrollIndicatorsStyles = css102`
|
|
|
15570
15652
|
background: linear-gradient(to left, var(--background-color) 10%, transparent);
|
|
15571
15653
|
}
|
|
15572
15654
|
`;
|
|
15573
|
-
var segmentedControlScrollIndicatorStartVisibleStyles =
|
|
15655
|
+
var segmentedControlScrollIndicatorStartVisibleStyles = css103`
|
|
15574
15656
|
&::before {
|
|
15575
15657
|
opacity: 1;
|
|
15576
15658
|
}
|
|
15577
15659
|
`;
|
|
15578
|
-
var segmentedControlScrollIndicatorEndVisibleStyles =
|
|
15660
|
+
var segmentedControlScrollIndicatorEndVisibleStyles = css103`
|
|
15579
15661
|
&::after {
|
|
15580
15662
|
opacity: 1;
|
|
15581
15663
|
}
|
|
15582
15664
|
`;
|
|
15583
|
-
var segmentedControlWrapperStyles =
|
|
15665
|
+
var segmentedControlWrapperStyles = css103`
|
|
15584
15666
|
overflow-y: auto;
|
|
15585
15667
|
scroll-behavior: smooth;
|
|
15586
15668
|
scrollbar-width: none;
|
|
@@ -15589,7 +15671,7 @@ var segmentedControlWrapperStyles = css102`
|
|
|
15589
15671
|
height: 0px;
|
|
15590
15672
|
}
|
|
15591
15673
|
`;
|
|
15592
|
-
var segmentedControlStyles =
|
|
15674
|
+
var segmentedControlStyles = css103`
|
|
15593
15675
|
--segmented-control-rounded-value: var(--rounded-base);
|
|
15594
15676
|
--segmented-control-border-width: 1px;
|
|
15595
15677
|
--segmented-control-selected-color: var(--brand-secondary-3);
|
|
@@ -15608,14 +15690,14 @@ var segmentedControlStyles = css102`
|
|
|
15608
15690
|
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
15609
15691
|
font-size: var(--fs-xs);
|
|
15610
15692
|
`;
|
|
15611
|
-
var segmentedControlVerticalStyles =
|
|
15693
|
+
var segmentedControlVerticalStyles = css103`
|
|
15612
15694
|
flex-direction: column;
|
|
15613
15695
|
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
15614
15696
|
var(--segmented-control-rounded-value) 0 0;
|
|
15615
15697
|
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
15616
15698
|
var(--segmented-control-rounded-value);
|
|
15617
15699
|
`;
|
|
15618
|
-
var segmentedControlItemStyles =
|
|
15700
|
+
var segmentedControlItemStyles = css103`
|
|
15619
15701
|
&:first-of-type label {
|
|
15620
15702
|
border-radius: var(--segmented-control-first-border-radius);
|
|
15621
15703
|
}
|
|
@@ -15623,10 +15705,10 @@ var segmentedControlItemStyles = css102`
|
|
|
15623
15705
|
border-radius: var(--segmented-control-last-border-radius);
|
|
15624
15706
|
}
|
|
15625
15707
|
`;
|
|
15626
|
-
var segmentedControlInputStyles =
|
|
15708
|
+
var segmentedControlInputStyles = css103`
|
|
15627
15709
|
${accessibleHidden}
|
|
15628
15710
|
`;
|
|
15629
|
-
var segmentedControlLabelStyles = (checked, disabled2) =>
|
|
15711
|
+
var segmentedControlLabelStyles = (checked, disabled2) => css103`
|
|
15630
15712
|
position: relative;
|
|
15631
15713
|
display: flex;
|
|
15632
15714
|
align-items: center;
|
|
@@ -15690,25 +15772,25 @@ var segmentedControlLabelStyles = (checked, disabled2) => css102`
|
|
|
15690
15772
|
`}
|
|
15691
15773
|
}
|
|
15692
15774
|
`;
|
|
15693
|
-
var segmentedControlLabelIconOnlyStyles =
|
|
15775
|
+
var segmentedControlLabelIconOnlyStyles = css103`
|
|
15694
15776
|
padding-inline: 0.5em;
|
|
15695
15777
|
`;
|
|
15696
|
-
var segmentedControlLabelCheckStyles =
|
|
15778
|
+
var segmentedControlLabelCheckStyles = css103`
|
|
15697
15779
|
opacity: 0.5;
|
|
15698
15780
|
`;
|
|
15699
|
-
var segmentedControlLabelContentStyles =
|
|
15781
|
+
var segmentedControlLabelContentStyles = css103`
|
|
15700
15782
|
display: flex;
|
|
15701
15783
|
align-items: center;
|
|
15702
15784
|
justify-content: center;
|
|
15703
15785
|
gap: var(--spacing-sm);
|
|
15704
15786
|
height: 100%;
|
|
15705
15787
|
`;
|
|
15706
|
-
var segmentedControlLabelTextStyles =
|
|
15788
|
+
var segmentedControlLabelTextStyles = css103`
|
|
15707
15789
|
white-space: nowrap;
|
|
15708
15790
|
`;
|
|
15709
15791
|
|
|
15710
15792
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
15711
|
-
import { jsx as
|
|
15793
|
+
import { jsx as jsx137, jsxs as jsxs92 } from "@emotion/react/jsx-runtime";
|
|
15712
15794
|
var SegmentedControl = ({
|
|
15713
15795
|
name,
|
|
15714
15796
|
options,
|
|
@@ -15736,10 +15818,10 @@ var SegmentedControl = ({
|
|
|
15736
15818
|
);
|
|
15737
15819
|
const sizeStyles = useMemo9(() => {
|
|
15738
15820
|
const map = {
|
|
15739
|
-
sm:
|
|
15740
|
-
md:
|
|
15741
|
-
lg:
|
|
15742
|
-
xl:
|
|
15821
|
+
sm: css104({ height: "calc(24px - 2px)", fontSize: "var(--fs-xs)" }),
|
|
15822
|
+
md: css104({ height: "calc(32px - 2px)", fontSize: "var(--fs-sm)" }),
|
|
15823
|
+
lg: css104({ height: "calc(40px - 2px)", fontSize: "var(--fs-base)" }),
|
|
15824
|
+
xl: css104({ height: "calc(48px - 2px)", fontSize: "var(--fs-base)" })
|
|
15743
15825
|
};
|
|
15744
15826
|
return map[size];
|
|
15745
15827
|
}, [size]);
|
|
@@ -15768,7 +15850,7 @@ var SegmentedControl = ({
|
|
|
15768
15850
|
};
|
|
15769
15851
|
}, []);
|
|
15770
15852
|
return /* @__PURE__ */ jsxs92("div", { css: [segmentedControlRootStyles, { "--background-color": currentBackgroundColor }], children: [
|
|
15771
|
-
/* @__PURE__ */
|
|
15853
|
+
/* @__PURE__ */ jsx137("div", { ref: wrapperRef, css: segmentedControlWrapperStyles, children: /* @__PURE__ */ jsx137(
|
|
15772
15854
|
"div",
|
|
15773
15855
|
{
|
|
15774
15856
|
css: [
|
|
@@ -15785,7 +15867,7 @@ var SegmentedControl = ({
|
|
|
15785
15867
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
15786
15868
|
const isDisabled = disabled2 || option.disabled;
|
|
15787
15869
|
const isChecked = option.value === value;
|
|
15788
|
-
return /* @__PURE__ */
|
|
15870
|
+
return /* @__PURE__ */ jsx137(Tooltip, { title: (_a = option.tooltip) != null ? _a : "", children: /* @__PURE__ */ jsx137(
|
|
15789
15871
|
"div",
|
|
15790
15872
|
{
|
|
15791
15873
|
css: segmentedControlItemStyles,
|
|
@@ -15799,7 +15881,7 @@ var SegmentedControl = ({
|
|
|
15799
15881
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
15800
15882
|
],
|
|
15801
15883
|
children: [
|
|
15802
|
-
/* @__PURE__ */
|
|
15884
|
+
/* @__PURE__ */ jsx137(
|
|
15803
15885
|
"input",
|
|
15804
15886
|
{
|
|
15805
15887
|
css: segmentedControlInputStyles,
|
|
@@ -15811,10 +15893,10 @@ var SegmentedControl = ({
|
|
|
15811
15893
|
disabled: isDisabled
|
|
15812
15894
|
}
|
|
15813
15895
|
),
|
|
15814
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */
|
|
15896
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx137(CgCheck5, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
15815
15897
|
/* @__PURE__ */ jsxs92("span", { css: segmentedControlLabelContentStyles, children: [
|
|
15816
|
-
!option.icon ? null : /* @__PURE__ */
|
|
15817
|
-
!text || hideOptionText ? null : /* @__PURE__ */
|
|
15898
|
+
!option.icon ? null : /* @__PURE__ */ jsx137(Icon, { icon: option.icon, size: iconSize, iconColor: "currentColor" }),
|
|
15899
|
+
!text || hideOptionText ? null : /* @__PURE__ */ jsx137("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
15818
15900
|
] })
|
|
15819
15901
|
]
|
|
15820
15902
|
}
|
|
@@ -15824,7 +15906,7 @@ var SegmentedControl = ({
|
|
|
15824
15906
|
})
|
|
15825
15907
|
}
|
|
15826
15908
|
) }),
|
|
15827
|
-
/* @__PURE__ */
|
|
15909
|
+
/* @__PURE__ */ jsx137(
|
|
15828
15910
|
"div",
|
|
15829
15911
|
{
|
|
15830
15912
|
css: [
|
|
@@ -15838,18 +15920,18 @@ var SegmentedControl = ({
|
|
|
15838
15920
|
};
|
|
15839
15921
|
|
|
15840
15922
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
15841
|
-
import { css as
|
|
15923
|
+
import { css as css105, keyframes as keyframes5 } from "@emotion/react";
|
|
15842
15924
|
var lightFadingOut = keyframes5`
|
|
15843
15925
|
from { opacity: 0.1; }
|
|
15844
15926
|
to { opacity: 0.025; }
|
|
15845
15927
|
`;
|
|
15846
|
-
var skeletonStyles =
|
|
15928
|
+
var skeletonStyles = css105`
|
|
15847
15929
|
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
15848
15930
|
background-color: var(--gray-900);
|
|
15849
15931
|
`;
|
|
15850
15932
|
|
|
15851
15933
|
// src/components/Skeleton/Skeleton.tsx
|
|
15852
|
-
import { jsx as
|
|
15934
|
+
import { jsx as jsx138 } from "@emotion/react/jsx-runtime";
|
|
15853
15935
|
var Skeleton = ({
|
|
15854
15936
|
width = "100%",
|
|
15855
15937
|
height = "1.25rem",
|
|
@@ -15857,7 +15939,7 @@ var Skeleton = ({
|
|
|
15857
15939
|
circle = false,
|
|
15858
15940
|
children,
|
|
15859
15941
|
...otherProps
|
|
15860
|
-
}) => /* @__PURE__ */
|
|
15942
|
+
}) => /* @__PURE__ */ jsx138(
|
|
15861
15943
|
"div",
|
|
15862
15944
|
{
|
|
15863
15945
|
css: [
|
|
@@ -15880,8 +15962,8 @@ var Skeleton = ({
|
|
|
15880
15962
|
import { useEffect as useEffect25, useRef as useRef13 } from "react";
|
|
15881
15963
|
|
|
15882
15964
|
// src/components/Spinner/Spinner.styles.ts
|
|
15883
|
-
import { css as
|
|
15884
|
-
var SpinnerStyles =
|
|
15965
|
+
import { css as css106 } from "@emotion/react";
|
|
15966
|
+
var SpinnerStyles = css106`
|
|
15885
15967
|
--color: #00b4ff;
|
|
15886
15968
|
--speed: 5s;
|
|
15887
15969
|
--red: rgb(218, 63, 50);
|
|
@@ -16311,7 +16393,7 @@ var SpinnerStyles = css105`
|
|
|
16311
16393
|
`;
|
|
16312
16394
|
|
|
16313
16395
|
// src/components/Spinner/Spinner.tsx
|
|
16314
|
-
import { jsx as
|
|
16396
|
+
import { jsx as jsx139, jsxs as jsxs93 } from "@emotion/react/jsx-runtime";
|
|
16315
16397
|
var Spinner = ({
|
|
16316
16398
|
width,
|
|
16317
16399
|
label,
|
|
@@ -16334,51 +16416,51 @@ var Spinner = ({
|
|
|
16334
16416
|
css: SpinnerStyles,
|
|
16335
16417
|
className: `container${isPaused ? " paused" : ""}`,
|
|
16336
16418
|
children: [
|
|
16337
|
-
/* @__PURE__ */
|
|
16338
|
-
/* @__PURE__ */
|
|
16339
|
-
/* @__PURE__ */
|
|
16340
|
-
/* @__PURE__ */
|
|
16341
|
-
/* @__PURE__ */
|
|
16419
|
+
/* @__PURE__ */ jsx139("div", { className: "pyramid-container", children: /* @__PURE__ */ jsxs93("div", { className: "pyramid top", children: [
|
|
16420
|
+
/* @__PURE__ */ jsx139("div", { className: "side one" }),
|
|
16421
|
+
/* @__PURE__ */ jsx139("div", { className: "side two" }),
|
|
16422
|
+
/* @__PURE__ */ jsx139("div", { className: "side three" }),
|
|
16423
|
+
/* @__PURE__ */ jsx139("div", { className: "side four" }),
|
|
16342
16424
|
/* @__PURE__ */ jsxs93("div", { className: "bottom-pyramid", children: [
|
|
16343
|
-
/* @__PURE__ */
|
|
16344
|
-
/* @__PURE__ */
|
|
16345
|
-
/* @__PURE__ */
|
|
16346
|
-
/* @__PURE__ */
|
|
16425
|
+
/* @__PURE__ */ jsx139("div", { className: "side five" }),
|
|
16426
|
+
/* @__PURE__ */ jsx139("div", { className: "side six" }),
|
|
16427
|
+
/* @__PURE__ */ jsx139("div", { className: "side seven" }),
|
|
16428
|
+
/* @__PURE__ */ jsx139("div", { className: "side eight" })
|
|
16347
16429
|
] })
|
|
16348
16430
|
] }) }),
|
|
16349
|
-
/* @__PURE__ */
|
|
16431
|
+
/* @__PURE__ */ jsx139("div", { className: "turning-circle" }),
|
|
16350
16432
|
/* @__PURE__ */ jsxs93("div", { className: "pulsating-star delay-top-right", children: [
|
|
16351
|
-
/* @__PURE__ */
|
|
16352
|
-
/* @__PURE__ */
|
|
16353
|
-
/* @__PURE__ */
|
|
16354
|
-
/* @__PURE__ */
|
|
16355
|
-
/* @__PURE__ */
|
|
16433
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-center" }),
|
|
16434
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-top" }),
|
|
16435
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-bottom" }),
|
|
16436
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-left" }),
|
|
16437
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-right" })
|
|
16356
16438
|
] }),
|
|
16357
16439
|
/* @__PURE__ */ jsxs93("div", { className: "pulsating-star delay-top-left-2", children: [
|
|
16358
|
-
/* @__PURE__ */
|
|
16359
|
-
/* @__PURE__ */
|
|
16360
|
-
/* @__PURE__ */
|
|
16361
|
-
/* @__PURE__ */
|
|
16362
|
-
/* @__PURE__ */
|
|
16440
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-center" }),
|
|
16441
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-top" }),
|
|
16442
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-bottom" }),
|
|
16443
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-left" }),
|
|
16444
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-right" })
|
|
16363
16445
|
] }),
|
|
16364
16446
|
/* @__PURE__ */ jsxs93("div", { className: "pulsating-star delay-top-left", children: [
|
|
16365
|
-
/* @__PURE__ */
|
|
16366
|
-
/* @__PURE__ */
|
|
16367
|
-
/* @__PURE__ */
|
|
16368
|
-
/* @__PURE__ */
|
|
16447
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-top" }),
|
|
16448
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-bottom" }),
|
|
16449
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-left" }),
|
|
16450
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-right" })
|
|
16369
16451
|
] }),
|
|
16370
16452
|
/* @__PURE__ */ jsxs93("div", { className: "pulsating-star delay-bottom-right", children: [
|
|
16371
|
-
/* @__PURE__ */
|
|
16372
|
-
/* @__PURE__ */
|
|
16373
|
-
/* @__PURE__ */
|
|
16374
|
-
/* @__PURE__ */
|
|
16453
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-top" }),
|
|
16454
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-bottom" }),
|
|
16455
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-left" }),
|
|
16456
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-right" })
|
|
16375
16457
|
] }),
|
|
16376
16458
|
/* @__PURE__ */ jsxs93("div", { className: "pulsating-star delay-bottom-left", children: [
|
|
16377
|
-
/* @__PURE__ */
|
|
16378
|
-
/* @__PURE__ */
|
|
16379
|
-
/* @__PURE__ */
|
|
16380
|
-
/* @__PURE__ */
|
|
16381
|
-
/* @__PURE__ */
|
|
16459
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-center" }),
|
|
16460
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-top" }),
|
|
16461
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-bottom" }),
|
|
16462
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-left" }),
|
|
16463
|
+
/* @__PURE__ */ jsx139("div", { className: "star-inner star-right" })
|
|
16382
16464
|
] })
|
|
16383
16465
|
]
|
|
16384
16466
|
}
|
|
@@ -16389,8 +16471,8 @@ var Spinner = ({
|
|
|
16389
16471
|
import { forwardRef as forwardRef29, useMemo as useMemo10 } from "react";
|
|
16390
16472
|
|
|
16391
16473
|
// src/components/Switch/Switch.styles.ts
|
|
16392
|
-
import { css as
|
|
16393
|
-
var SwitchInputContainer =
|
|
16474
|
+
import { css as css107 } from "@emotion/react";
|
|
16475
|
+
var SwitchInputContainer = css107`
|
|
16394
16476
|
cursor: pointer;
|
|
16395
16477
|
display: inline-flex;
|
|
16396
16478
|
position: relative;
|
|
@@ -16400,7 +16482,7 @@ var SwitchInputContainer = css106`
|
|
|
16400
16482
|
user-select: none;
|
|
16401
16483
|
z-index: 0;
|
|
16402
16484
|
`;
|
|
16403
|
-
var SwitchInput = (size) =>
|
|
16485
|
+
var SwitchInput = (size) => css107`
|
|
16404
16486
|
appearance: none;
|
|
16405
16487
|
border-radius: var(--rounded-full);
|
|
16406
16488
|
background-color: var(--white);
|
|
@@ -16439,18 +16521,18 @@ var SwitchInput = (size) => css106`
|
|
|
16439
16521
|
cursor: not-allowed;
|
|
16440
16522
|
}
|
|
16441
16523
|
`;
|
|
16442
|
-
var SwitchInputCheckedDirectionLeft =
|
|
16524
|
+
var SwitchInputCheckedDirectionLeft = css107`
|
|
16443
16525
|
&:checked {
|
|
16444
16526
|
transform: translateX(var(--spacing-base));
|
|
16445
16527
|
}
|
|
16446
16528
|
`;
|
|
16447
|
-
var SwitchInputCheckedDirectionRight =
|
|
16529
|
+
var SwitchInputCheckedDirectionRight = css107`
|
|
16448
16530
|
transform: translateX(-var(--spacing-base));
|
|
16449
16531
|
&:checked {
|
|
16450
16532
|
transform: translateX(0);
|
|
16451
16533
|
}
|
|
16452
16534
|
`;
|
|
16453
|
-
var SwitchInputDisabled =
|
|
16535
|
+
var SwitchInputDisabled = css107`
|
|
16454
16536
|
opacity: var(--opacity-50);
|
|
16455
16537
|
cursor: not-allowed;
|
|
16456
16538
|
|
|
@@ -16458,19 +16540,19 @@ var SwitchInputDisabled = css106`
|
|
|
16458
16540
|
cursor: not-allowed;
|
|
16459
16541
|
}
|
|
16460
16542
|
`;
|
|
16461
|
-
var SwitchInputLabelAlignmentLeft = (size) =>
|
|
16543
|
+
var SwitchInputLabelAlignmentLeft = (size) => css107`
|
|
16462
16544
|
padding-inline-start: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"};
|
|
16463
16545
|
&:before {
|
|
16464
16546
|
left: 0;
|
|
16465
16547
|
}
|
|
16466
16548
|
`;
|
|
16467
|
-
var SwitchInputLabelAlignmentRight = (size) =>
|
|
16549
|
+
var SwitchInputLabelAlignmentRight = (size) => css107`
|
|
16468
16550
|
padding-inline-end: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"};
|
|
16469
16551
|
&:before {
|
|
16470
16552
|
right: 0;
|
|
16471
16553
|
}
|
|
16472
16554
|
`;
|
|
16473
|
-
var SwitchInputLabel = (size) =>
|
|
16555
|
+
var SwitchInputLabel = (size) => css107`
|
|
16474
16556
|
align-items: center;
|
|
16475
16557
|
color: var(--typography-base);
|
|
16476
16558
|
display: inline-flex;
|
|
@@ -16490,25 +16572,25 @@ var SwitchInputLabel = (size) => css106`
|
|
|
16490
16572
|
top: 0;
|
|
16491
16573
|
}
|
|
16492
16574
|
`;
|
|
16493
|
-
var SwitchTextAlignmentLeft = (size) =>
|
|
16575
|
+
var SwitchTextAlignmentLeft = (size) => css107`
|
|
16494
16576
|
padding-inline-start: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"};
|
|
16495
16577
|
`;
|
|
16496
|
-
var SwitchTextAlignmentRight = (size) =>
|
|
16578
|
+
var SwitchTextAlignmentRight = (size) => css107`
|
|
16497
16579
|
padding-inline-end: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"};
|
|
16498
16580
|
`;
|
|
16499
|
-
var SwitchText =
|
|
16581
|
+
var SwitchText = css107`
|
|
16500
16582
|
color: var(--gray-500);
|
|
16501
16583
|
font-size: var(--fs-sm);
|
|
16502
16584
|
`;
|
|
16503
|
-
var SwitchInputContainerAlignmentLeft =
|
|
16585
|
+
var SwitchInputContainerAlignmentLeft = css107`
|
|
16504
16586
|
flex-direction: row;
|
|
16505
16587
|
`;
|
|
16506
|
-
var SwitchInputContainerAlignmentRight =
|
|
16588
|
+
var SwitchInputContainerAlignmentRight = css107`
|
|
16507
16589
|
flex-direction: row-reverse;
|
|
16508
16590
|
`;
|
|
16509
16591
|
|
|
16510
16592
|
// src/components/Switch/Switch.tsx
|
|
16511
|
-
import { Fragment as Fragment19, jsx as
|
|
16593
|
+
import { Fragment as Fragment19, jsx as jsx140, jsxs as jsxs94 } from "@emotion/react/jsx-runtime";
|
|
16512
16594
|
var Switch = forwardRef29(
|
|
16513
16595
|
({
|
|
16514
16596
|
label,
|
|
@@ -16548,7 +16630,7 @@ var Switch = forwardRef29(
|
|
|
16548
16630
|
inputProps.disabled ? SwitchInputDisabled : void 0
|
|
16549
16631
|
],
|
|
16550
16632
|
children: [
|
|
16551
|
-
/* @__PURE__ */
|
|
16633
|
+
/* @__PURE__ */ jsx140(
|
|
16552
16634
|
"input",
|
|
16553
16635
|
{
|
|
16554
16636
|
type: "checkbox",
|
|
@@ -16557,11 +16639,11 @@ var Switch = forwardRef29(
|
|
|
16557
16639
|
ref
|
|
16558
16640
|
}
|
|
16559
16641
|
),
|
|
16560
|
-
/* @__PURE__ */
|
|
16642
|
+
/* @__PURE__ */ jsx140("span", { css: [SwitchInputLabel(switchSize), SwitchInputLabelAlignment], children: label })
|
|
16561
16643
|
]
|
|
16562
16644
|
}
|
|
16563
16645
|
),
|
|
16564
|
-
additionalText ? /* @__PURE__ */
|
|
16646
|
+
additionalText ? /* @__PURE__ */ jsx140(
|
|
16565
16647
|
"p",
|
|
16566
16648
|
{
|
|
16567
16649
|
css: [
|
|
@@ -16577,8 +16659,8 @@ var Switch = forwardRef29(
|
|
|
16577
16659
|
);
|
|
16578
16660
|
|
|
16579
16661
|
// src/components/Table/Table.styles.ts
|
|
16580
|
-
import { css as
|
|
16581
|
-
var table = ({ cellPadding = "var(--spacing-sm)" }) =>
|
|
16662
|
+
import { css as css108 } from "@emotion/react";
|
|
16663
|
+
var table = ({ cellPadding = "var(--spacing-sm)" }) => css108`
|
|
16582
16664
|
border-bottom: 1px solid var(--gray-400);
|
|
16583
16665
|
border-collapse: collapse;
|
|
16584
16666
|
min-width: 100%;
|
|
@@ -16598,21 +16680,21 @@ var table = ({ cellPadding = "var(--spacing-sm)" }) => css107`
|
|
|
16598
16680
|
background-color: var(--gray-50);
|
|
16599
16681
|
}
|
|
16600
16682
|
`;
|
|
16601
|
-
var tableHead =
|
|
16683
|
+
var tableHead = css108`
|
|
16602
16684
|
color: var(--typography-base);
|
|
16603
16685
|
text-align: left;
|
|
16604
16686
|
`;
|
|
16605
|
-
var tableRow =
|
|
16687
|
+
var tableRow = css108`
|
|
16606
16688
|
border-bottom: 1px solid var(--gray-200);
|
|
16607
16689
|
font-size: var(--fs-sm);
|
|
16608
16690
|
`;
|
|
16609
|
-
var tableCellHead =
|
|
16691
|
+
var tableCellHead = css108`
|
|
16610
16692
|
font-size: var(--fs-sm);
|
|
16611
16693
|
font-weight: var(--fw-regular);
|
|
16612
16694
|
line-height: 1.2;
|
|
16613
16695
|
}
|
|
16614
16696
|
`;
|
|
16615
|
-
var responsiveTableContainer =
|
|
16697
|
+
var responsiveTableContainer = css108`
|
|
16616
16698
|
max-width: calc(100vw - var(--spacing-md) * 2);
|
|
16617
16699
|
overflow-x: auto;
|
|
16618
16700
|
${scrollbarStyles}
|
|
@@ -16631,47 +16713,47 @@ var responsiveTableContainer = css107`
|
|
|
16631
16713
|
`;
|
|
16632
16714
|
|
|
16633
16715
|
// src/components/Table/ResponsiveTableContainer.tsx
|
|
16634
|
-
import { jsx as
|
|
16716
|
+
import { jsx as jsx141 } from "@emotion/react/jsx-runtime";
|
|
16635
16717
|
var ResponsiveTableContainer = ({ children }) => {
|
|
16636
|
-
return /* @__PURE__ */
|
|
16718
|
+
return /* @__PURE__ */ jsx141("div", { css: responsiveTableContainer, children });
|
|
16637
16719
|
};
|
|
16638
16720
|
|
|
16639
16721
|
// src/components/Table/Table.tsx
|
|
16640
|
-
import * as
|
|
16641
|
-
import { jsx as
|
|
16642
|
-
var Table =
|
|
16722
|
+
import * as React22 from "react";
|
|
16723
|
+
import { jsx as jsx142 } from "@emotion/react/jsx-runtime";
|
|
16724
|
+
var Table = React22.forwardRef(
|
|
16643
16725
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
16644
|
-
return /* @__PURE__ */
|
|
16726
|
+
return /* @__PURE__ */ jsx142("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
16645
16727
|
}
|
|
16646
16728
|
);
|
|
16647
|
-
var TableHead =
|
|
16729
|
+
var TableHead = React22.forwardRef(
|
|
16648
16730
|
({ children, ...otherProps }, ref) => {
|
|
16649
|
-
return /* @__PURE__ */
|
|
16731
|
+
return /* @__PURE__ */ jsx142("thead", { ref, css: tableHead, ...otherProps, children });
|
|
16650
16732
|
}
|
|
16651
16733
|
);
|
|
16652
|
-
var TableBody =
|
|
16734
|
+
var TableBody = React22.forwardRef(
|
|
16653
16735
|
({ children, ...otherProps }, ref) => {
|
|
16654
|
-
return /* @__PURE__ */
|
|
16736
|
+
return /* @__PURE__ */ jsx142("tbody", { ref, ...otherProps, children });
|
|
16655
16737
|
}
|
|
16656
16738
|
);
|
|
16657
|
-
var TableFoot =
|
|
16739
|
+
var TableFoot = React22.forwardRef(
|
|
16658
16740
|
({ children, ...otherProps }, ref) => {
|
|
16659
|
-
return /* @__PURE__ */
|
|
16741
|
+
return /* @__PURE__ */ jsx142("tfoot", { ref, ...otherProps, children });
|
|
16660
16742
|
}
|
|
16661
16743
|
);
|
|
16662
|
-
var TableRow =
|
|
16744
|
+
var TableRow = React22.forwardRef(
|
|
16663
16745
|
({ children, ...otherProps }, ref) => {
|
|
16664
|
-
return /* @__PURE__ */
|
|
16746
|
+
return /* @__PURE__ */ jsx142("tr", { ref, css: tableRow, ...otherProps, children });
|
|
16665
16747
|
}
|
|
16666
16748
|
);
|
|
16667
|
-
var TableCellHead =
|
|
16749
|
+
var TableCellHead = React22.forwardRef(
|
|
16668
16750
|
({ children, ...otherProps }, ref) => {
|
|
16669
|
-
return /* @__PURE__ */
|
|
16751
|
+
return /* @__PURE__ */ jsx142("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
16670
16752
|
}
|
|
16671
16753
|
);
|
|
16672
|
-
var TableCellData =
|
|
16754
|
+
var TableCellData = React22.forwardRef(
|
|
16673
16755
|
({ children, ...otherProps }, ref) => {
|
|
16674
|
-
return /* @__PURE__ */
|
|
16756
|
+
return /* @__PURE__ */ jsx142("td", { ref, ...otherProps, children });
|
|
16675
16757
|
}
|
|
16676
16758
|
);
|
|
16677
16759
|
|
|
@@ -16686,8 +16768,8 @@ import {
|
|
|
16686
16768
|
import { useCallback as useCallback13, useMemo as useMemo11 } from "react";
|
|
16687
16769
|
|
|
16688
16770
|
// src/components/Tabs/Tabs.styles.ts
|
|
16689
|
-
import { css as
|
|
16690
|
-
var tabButtonStyles =
|
|
16771
|
+
import { css as css109 } from "@emotion/react";
|
|
16772
|
+
var tabButtonStyles = css109`
|
|
16691
16773
|
align-items: center;
|
|
16692
16774
|
border: 0;
|
|
16693
16775
|
height: 2.5rem;
|
|
@@ -16704,14 +16786,14 @@ var tabButtonStyles = css108`
|
|
|
16704
16786
|
box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
|
|
16705
16787
|
}
|
|
16706
16788
|
`;
|
|
16707
|
-
var tabButtonGroupStyles =
|
|
16789
|
+
var tabButtonGroupStyles = css109`
|
|
16708
16790
|
display: flex;
|
|
16709
16791
|
gap: var(--spacing-base);
|
|
16710
16792
|
border-bottom: 1px solid var(--gray-300);
|
|
16711
16793
|
`;
|
|
16712
16794
|
|
|
16713
16795
|
// src/components/Tabs/Tabs.tsx
|
|
16714
|
-
import { jsx as
|
|
16796
|
+
import { jsx as jsx143 } from "@emotion/react/jsx-runtime";
|
|
16715
16797
|
var useCurrentTab = () => {
|
|
16716
16798
|
const context = useAriakitTabStore();
|
|
16717
16799
|
if (!context) {
|
|
@@ -16742,28 +16824,28 @@ var Tabs = ({
|
|
|
16742
16824
|
},
|
|
16743
16825
|
[onSelectedIdChange, useHashForState]
|
|
16744
16826
|
);
|
|
16745
|
-
return /* @__PURE__ */
|
|
16827
|
+
return /* @__PURE__ */ jsx143(AriakitTabProvider, { selectedId: selected, selectOnMove: !manual, setSelectedId: onTabSelect, ...props, children });
|
|
16746
16828
|
};
|
|
16747
16829
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
16748
|
-
return /* @__PURE__ */
|
|
16830
|
+
return /* @__PURE__ */ jsx143(AriakitTabList, { ...props, css: tabButtonGroupStyles, children });
|
|
16749
16831
|
};
|
|
16750
16832
|
var TabButton = ({
|
|
16751
16833
|
children,
|
|
16752
16834
|
id,
|
|
16753
16835
|
...props
|
|
16754
16836
|
}) => {
|
|
16755
|
-
return /* @__PURE__ */
|
|
16837
|
+
return /* @__PURE__ */ jsx143(AriakitTab, { type: "button", id, ...props, css: tabButtonStyles, children });
|
|
16756
16838
|
};
|
|
16757
16839
|
var TabContent = ({
|
|
16758
16840
|
children,
|
|
16759
16841
|
...props
|
|
16760
16842
|
}) => {
|
|
16761
|
-
return /* @__PURE__ */
|
|
16843
|
+
return /* @__PURE__ */ jsx143(AriakitTabPanel, { ...props, children });
|
|
16762
16844
|
};
|
|
16763
16845
|
|
|
16764
16846
|
// src/components/Validation/StatusBullet.styles.ts
|
|
16765
|
-
import { css as
|
|
16766
|
-
var StatusBulletContainer =
|
|
16847
|
+
import { css as css110 } from "@emotion/react";
|
|
16848
|
+
var StatusBulletContainer = css110`
|
|
16767
16849
|
align-items: center;
|
|
16768
16850
|
align-self: center;
|
|
16769
16851
|
color: var(--gray-500);
|
|
@@ -16779,33 +16861,33 @@ var StatusBulletContainer = css109`
|
|
|
16779
16861
|
display: block;
|
|
16780
16862
|
}
|
|
16781
16863
|
`;
|
|
16782
|
-
var StatusBulletBase =
|
|
16864
|
+
var StatusBulletBase = css110`
|
|
16783
16865
|
font-size: var(--fs-sm);
|
|
16784
16866
|
&:before {
|
|
16785
16867
|
width: var(--fs-xs);
|
|
16786
16868
|
height: var(--fs-xs);
|
|
16787
16869
|
}
|
|
16788
16870
|
`;
|
|
16789
|
-
var StatusBulletSmall =
|
|
16871
|
+
var StatusBulletSmall = css110`
|
|
16790
16872
|
font-size: var(--fs-xs);
|
|
16791
16873
|
&:before {
|
|
16792
16874
|
width: var(--fs-xxs);
|
|
16793
16875
|
height: var(--fs-xxs);
|
|
16794
16876
|
}
|
|
16795
16877
|
`;
|
|
16796
|
-
var StatusDraft =
|
|
16878
|
+
var StatusDraft = css110`
|
|
16797
16879
|
&:before {
|
|
16798
16880
|
background: var(--white);
|
|
16799
16881
|
box-shadow: inset 0 0 0 0.125rem var(--accent-dark);
|
|
16800
16882
|
}
|
|
16801
16883
|
`;
|
|
16802
|
-
var StatusModified =
|
|
16884
|
+
var StatusModified = css110`
|
|
16803
16885
|
&:before {
|
|
16804
16886
|
background: linear-gradient(to right, var(--white) 50%, var(--accent-dark) 50% 100%);
|
|
16805
16887
|
box-shadow: inset 0 0 0 0.125rem var(--accent-dark);
|
|
16806
16888
|
}
|
|
16807
16889
|
`;
|
|
16808
|
-
var StatusError =
|
|
16890
|
+
var StatusError = css110`
|
|
16809
16891
|
color: var(--error);
|
|
16810
16892
|
&:before {
|
|
16811
16893
|
/* TODO: replace this with an svg icon */
|
|
@@ -16818,29 +16900,44 @@ var StatusError = css109`
|
|
|
16818
16900
|
);
|
|
16819
16901
|
}
|
|
16820
16902
|
`;
|
|
16821
|
-
var StatusPublished =
|
|
16903
|
+
var StatusPublished = css110`
|
|
16822
16904
|
&:before {
|
|
16823
16905
|
background: var(--accent-dark);
|
|
16824
16906
|
}
|
|
16825
16907
|
`;
|
|
16826
|
-
var StatusOrphan =
|
|
16908
|
+
var StatusOrphan = css110`
|
|
16827
16909
|
&:before {
|
|
16828
16910
|
background: var(--brand-secondary-5);
|
|
16829
16911
|
}
|
|
16830
16912
|
`;
|
|
16831
|
-
var StatusUnknown =
|
|
16913
|
+
var StatusUnknown = css110`
|
|
16832
16914
|
&:before {
|
|
16833
16915
|
background: var(--gray-800);
|
|
16834
16916
|
}
|
|
16835
16917
|
`;
|
|
16836
|
-
var StatusDeleted =
|
|
16918
|
+
var StatusDeleted = css110`
|
|
16837
16919
|
&:before {
|
|
16838
16920
|
background: var(--error);
|
|
16839
16921
|
}
|
|
16840
16922
|
`;
|
|
16841
16923
|
|
|
16842
16924
|
// src/components/Validation/StatusBullet.tsx
|
|
16843
|
-
import { jsx as
|
|
16925
|
+
import { jsx as jsx144 } from "@emotion/react/jsx-runtime";
|
|
16926
|
+
var currentStateStyles = {
|
|
16927
|
+
Error: StatusError,
|
|
16928
|
+
Modified: StatusModified,
|
|
16929
|
+
Unsaved: StatusDraft,
|
|
16930
|
+
Orphan: StatusOrphan,
|
|
16931
|
+
Published: StatusPublished,
|
|
16932
|
+
Draft: StatusDraft,
|
|
16933
|
+
Previous: StatusDraft,
|
|
16934
|
+
Unknown: StatusUnknown,
|
|
16935
|
+
Deleted: StatusDeleted
|
|
16936
|
+
};
|
|
16937
|
+
var statusSize = {
|
|
16938
|
+
sm: StatusBulletSmall,
|
|
16939
|
+
base: StatusBulletBase
|
|
16940
|
+
};
|
|
16844
16941
|
var StatusBullet = ({
|
|
16845
16942
|
status,
|
|
16846
16943
|
hideText = false,
|
|
@@ -16849,31 +16946,19 @@ var StatusBullet = ({
|
|
|
16849
16946
|
compact = false,
|
|
16850
16947
|
...props
|
|
16851
16948
|
}) => {
|
|
16852
|
-
const
|
|
16853
|
-
Error: StatusError,
|
|
16854
|
-
Modified: StatusModified,
|
|
16855
|
-
Unsaved: StatusDraft,
|
|
16856
|
-
Orphan: StatusOrphan,
|
|
16857
|
-
Published: StatusPublished,
|
|
16858
|
-
Draft: StatusDraft,
|
|
16859
|
-
Previous: StatusDraft,
|
|
16860
|
-
Unknown: StatusUnknown,
|
|
16861
|
-
Deleted: StatusDeleted
|
|
16862
|
-
};
|
|
16863
|
-
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
16864
|
-
const StatusComponent = () => /* @__PURE__ */ jsx143(
|
|
16949
|
+
const StatusComponent = () => /* @__PURE__ */ jsx144(
|
|
16865
16950
|
"span",
|
|
16866
16951
|
{
|
|
16867
16952
|
role: "status",
|
|
16868
|
-
css: [StatusBulletContainer, currentStateStyles[status], statusSize],
|
|
16953
|
+
css: [StatusBulletContainer, currentStateStyles[status], statusSize[size]],
|
|
16869
16954
|
...props,
|
|
16870
16955
|
children: hideText ? null : message ? message : status
|
|
16871
16956
|
}
|
|
16872
16957
|
);
|
|
16873
16958
|
if (compact) {
|
|
16874
|
-
return /* @__PURE__ */
|
|
16959
|
+
return /* @__PURE__ */ jsx144(StatusComponent, {});
|
|
16875
16960
|
}
|
|
16876
|
-
return /* @__PURE__ */
|
|
16961
|
+
return /* @__PURE__ */ jsx144(Tooltip, { title: message != null ? message : status, children: /* @__PURE__ */ jsx144("div", { children: /* @__PURE__ */ jsx144(StatusComponent, {}) }) });
|
|
16877
16962
|
};
|
|
16878
16963
|
export {
|
|
16879
16964
|
AddButton,
|
|
@@ -16982,6 +17067,7 @@ export {
|
|
|
16982
17067
|
PageHeaderSection,
|
|
16983
17068
|
Pagination,
|
|
16984
17069
|
Paragraph,
|
|
17070
|
+
ParameterActionButton,
|
|
16985
17071
|
ParameterDrawerHeader,
|
|
16986
17072
|
ParameterGroup,
|
|
16987
17073
|
ParameterImage,
|
|
@@ -17053,6 +17139,7 @@ export {
|
|
|
17053
17139
|
VerticalRhythm,
|
|
17054
17140
|
WarningMessage,
|
|
17055
17141
|
accessibleHidden,
|
|
17142
|
+
actionBarVisibilityStyles,
|
|
17056
17143
|
addPathSegmentToPathname,
|
|
17057
17144
|
borderTopIcon,
|
|
17058
17145
|
breakpoints,
|