@uniformdev/design-system 19.132.0 → 19.133.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +343 -303
- package/dist/index.d.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +576 -534
- package/package.json +6 -6
package/dist/esm/index.js
CHANGED
|
@@ -13391,7 +13391,7 @@ var DashedBox = ({
|
|
|
13391
13391
|
};
|
|
13392
13392
|
|
|
13393
13393
|
// src/components/DateTimePicker/DateTimePicker.tsx
|
|
13394
|
-
import { CalendarDate as CalendarDate3, parseDate as parseDate2, parseTime as parseTime2, Time as
|
|
13394
|
+
import { CalendarDate as CalendarDate3, parseDate as parseDate2, parseTime as parseTime2, Time as Time2 } from "@internationalized/date";
|
|
13395
13395
|
import { createContext as createContext2, useCallback as useCallback3, useContext as useContext3, useEffect as useEffect4, useMemo, useState as useState6 } from "react";
|
|
13396
13396
|
import { Popover as Popover2, PopoverDisclosure, usePopoverState } from "reakit/Popover";
|
|
13397
13397
|
|
|
@@ -14292,7 +14292,8 @@ var InputTime = React13.forwardRef(
|
|
|
14292
14292
|
isDisabled: !!disabled2,
|
|
14293
14293
|
onChange: useCallback2(
|
|
14294
14294
|
(time) => {
|
|
14295
|
-
|
|
14295
|
+
var _a;
|
|
14296
|
+
onChange == null ? void 0 : onChange((_a = time == null ? void 0 : time.toString()) != null ? _a : "00:00:00");
|
|
14296
14297
|
},
|
|
14297
14298
|
[onChange]
|
|
14298
14299
|
),
|
|
@@ -14558,7 +14559,7 @@ function DateTimePickerSummary({
|
|
|
14558
14559
|
import {
|
|
14559
14560
|
getLocalTimeZone as libGetLocalTimeZone,
|
|
14560
14561
|
parseAbsolute,
|
|
14561
|
-
Time
|
|
14562
|
+
Time,
|
|
14562
14563
|
toCalendarDate,
|
|
14563
14564
|
toCalendarDateTime,
|
|
14564
14565
|
toTime,
|
|
@@ -14588,7 +14589,7 @@ function tryToTime(time) {
|
|
|
14588
14589
|
}
|
|
14589
14590
|
function dateTimePickerPartsToIsoString(date, time, draftTimeZone) {
|
|
14590
14591
|
return date ? toZoned(
|
|
14591
|
-
toCalendarDateTime(date, time != null ? time : new
|
|
14592
|
+
toCalendarDateTime(date, time != null ? time : new Time(0, 0)),
|
|
14592
14593
|
draftTimeZone || getLocalTimeZone()
|
|
14593
14594
|
).toAbsoluteString() : null;
|
|
14594
14595
|
}
|
|
@@ -14666,7 +14667,7 @@ var DateTimePicker = ({
|
|
|
14666
14667
|
var _a;
|
|
14667
14668
|
if (popover2.visible) {
|
|
14668
14669
|
setDraftDate(tryToCalendarDate(parsedValue));
|
|
14669
|
-
setDraftTime((_a = tryToTime(parsedValue)) != null ? _a : new
|
|
14670
|
+
setDraftTime((_a = tryToTime(parsedValue)) != null ? _a : new Time2(0, 0));
|
|
14670
14671
|
}
|
|
14671
14672
|
}, [parsedValue, popover2.visible]);
|
|
14672
14673
|
const handleDateChange = useCallback3((isoDate) => {
|
|
@@ -17135,7 +17136,7 @@ var modalInnerStyles = css76`
|
|
|
17135
17136
|
gap: var(--spacing-base);
|
|
17136
17137
|
background: var(--gray-50);
|
|
17137
17138
|
color: unset;
|
|
17138
|
-
padding:
|
|
17139
|
+
padding: var(--spacing-base);
|
|
17139
17140
|
box-shadow: var(--elevation-500);
|
|
17140
17141
|
border-radius: var(--rounded-base);
|
|
17141
17142
|
`;
|
|
@@ -17157,7 +17158,6 @@ var modalCloseButtonStyles = css76`
|
|
|
17157
17158
|
display: block;
|
|
17158
17159
|
padding: 0;
|
|
17159
17160
|
margin-left: auto;
|
|
17160
|
-
translate: calc(var(--spacing-base)) calc(var(--spacing-base) * -1);
|
|
17161
17161
|
transition: color var(--duration-fast) var(--timing-ease-out);
|
|
17162
17162
|
|
|
17163
17163
|
&:hover,
|
|
@@ -17170,21 +17170,33 @@ var modalContentStyles = css76`
|
|
|
17170
17170
|
position: relative;
|
|
17171
17171
|
flex: 1;
|
|
17172
17172
|
overflow: auto;
|
|
17173
|
+
padding: var(--spacing-md);
|
|
17173
17174
|
${scrollbarStyles}
|
|
17174
17175
|
`;
|
|
17176
|
+
var modalDialogWrapper = css76`
|
|
17177
|
+
padding: 0 var(--spacing-lg) var(--spacing-md);
|
|
17178
|
+
`;
|
|
17179
|
+
var modalDialogInnerStyles = css76`
|
|
17180
|
+
// we need to override the gap of the modalInnerStyles when using a modal dialog
|
|
17181
|
+
> div {
|
|
17182
|
+
gap: 0;
|
|
17183
|
+
}
|
|
17184
|
+
`;
|
|
17175
17185
|
|
|
17176
17186
|
// src/components/Modal/Modal.tsx
|
|
17177
17187
|
import { jsx as jsx94, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
|
|
17188
|
+
var defaultModalWidth = "75rem";
|
|
17178
17189
|
var defaultModalHeight = "51rem";
|
|
17179
17190
|
var Modal = React21.forwardRef(
|
|
17180
17191
|
({
|
|
17181
17192
|
header: header2,
|
|
17182
17193
|
children,
|
|
17183
17194
|
onRequestClose,
|
|
17184
|
-
width,
|
|
17195
|
+
width = defaultModalWidth,
|
|
17185
17196
|
height = defaultModalHeight,
|
|
17186
17197
|
buttonGroup,
|
|
17187
17198
|
modalSize = "lg",
|
|
17199
|
+
withoutContentPadding = false,
|
|
17188
17200
|
...modalProps
|
|
17189
17201
|
}, ref) => {
|
|
17190
17202
|
const dialogRef = useRef6(null);
|
|
@@ -17227,7 +17239,7 @@ var Modal = React21.forwardRef(
|
|
|
17227
17239
|
ref.current = element;
|
|
17228
17240
|
}
|
|
17229
17241
|
},
|
|
17230
|
-
css: [modalStyles, width ?
|
|
17242
|
+
css: [modalStyles, !width ? size[modalSize] : void 0],
|
|
17231
17243
|
style: { width, height: height === "auto" ? "min-content" : height },
|
|
17232
17244
|
"data-testid": "side-dialog",
|
|
17233
17245
|
onClick: onRequestClose,
|
|
@@ -17242,7 +17254,7 @@ var Modal = React21.forwardRef(
|
|
|
17242
17254
|
onClick: (e) => e.stopPropagation(),
|
|
17243
17255
|
children: [
|
|
17244
17256
|
/* @__PURE__ */ jsxs63("div", { css: modalHeaderStyles, children: [
|
|
17245
|
-
/* @__PURE__ */ jsx94("div", { css: modalHeaderHeaderStyles, children: header2 }),
|
|
17257
|
+
!header2 ? null : /* @__PURE__ */ jsx94("div", { css: modalHeaderHeaderStyles, children: header2 }),
|
|
17246
17258
|
/* @__PURE__ */ jsx94(
|
|
17247
17259
|
Button,
|
|
17248
17260
|
{
|
|
@@ -17256,7 +17268,7 @@ var Modal = React21.forwardRef(
|
|
|
17256
17268
|
}
|
|
17257
17269
|
)
|
|
17258
17270
|
] }),
|
|
17259
|
-
/* @__PURE__ */ jsx94("div", { css: modalContentStyles, children }),
|
|
17271
|
+
/* @__PURE__ */ jsx94("div", { css: [modalContentStyles, !withoutContentPadding ? null : { padding: 0 }], children }),
|
|
17260
17272
|
buttonGroup ? /* @__PURE__ */ jsx94(HorizontalRhythm, { children: buttonGroup }) : null
|
|
17261
17273
|
]
|
|
17262
17274
|
}
|
|
@@ -17267,6 +17279,33 @@ var Modal = React21.forwardRef(
|
|
|
17267
17279
|
);
|
|
17268
17280
|
Modal.displayName = "Modal";
|
|
17269
17281
|
|
|
17282
|
+
// src/components/Modal/ModalDialog.tsx
|
|
17283
|
+
import { forwardRef as forwardRef13 } from "react";
|
|
17284
|
+
import { jsx as jsx95, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
|
|
17285
|
+
var ModalDialog = forwardRef13(
|
|
17286
|
+
({ header: header2, buttonGroup, modalSize = "lg", children, height = "auto", onRequestClose, ...props }, ref) => {
|
|
17287
|
+
return /* @__PURE__ */ jsx95(
|
|
17288
|
+
Modal,
|
|
17289
|
+
{
|
|
17290
|
+
...props,
|
|
17291
|
+
modalSize,
|
|
17292
|
+
ref,
|
|
17293
|
+
onRequestClose,
|
|
17294
|
+
height,
|
|
17295
|
+
withoutContentPadding: true,
|
|
17296
|
+
css: modalDialogInnerStyles,
|
|
17297
|
+
width: "",
|
|
17298
|
+
children: /* @__PURE__ */ jsxs64(VerticalRhythm, { css: modalDialogWrapper, children: [
|
|
17299
|
+
/* @__PURE__ */ jsx95("div", { css: modalHeaderStyles, children: header2 }),
|
|
17300
|
+
/* @__PURE__ */ jsx95("div", { children }),
|
|
17301
|
+
/* @__PURE__ */ jsx95(HorizontalRhythm, { children: buttonGroup })
|
|
17302
|
+
] })
|
|
17303
|
+
}
|
|
17304
|
+
);
|
|
17305
|
+
}
|
|
17306
|
+
);
|
|
17307
|
+
ModalDialog.displayName = "ModalDialog";
|
|
17308
|
+
|
|
17270
17309
|
// src/components/Pagination/Pagination.tsx
|
|
17271
17310
|
import Paginate from "react-paginate";
|
|
17272
17311
|
|
|
@@ -17299,7 +17338,7 @@ var page = css77`
|
|
|
17299
17338
|
`;
|
|
17300
17339
|
|
|
17301
17340
|
// src/components/Pagination/Pagination.tsx
|
|
17302
|
-
import { jsx as
|
|
17341
|
+
import { jsx as jsx96 } from "@emotion/react/jsx-runtime";
|
|
17303
17342
|
function Pagination({
|
|
17304
17343
|
limit,
|
|
17305
17344
|
offset,
|
|
@@ -17314,12 +17353,12 @@ function Pagination({
|
|
|
17314
17353
|
if (pageCount <= 1) {
|
|
17315
17354
|
return null;
|
|
17316
17355
|
}
|
|
17317
|
-
return /* @__PURE__ */
|
|
17356
|
+
return /* @__PURE__ */ jsx96(
|
|
17318
17357
|
Paginate,
|
|
17319
17358
|
{
|
|
17320
17359
|
forcePage: currentPage,
|
|
17321
|
-
previousLabel: /* @__PURE__ */
|
|
17322
|
-
nextLabel: /* @__PURE__ */
|
|
17360
|
+
previousLabel: /* @__PURE__ */ jsx96("div", { className: prevNextControls, children: "<" }),
|
|
17361
|
+
nextLabel: /* @__PURE__ */ jsx96("div", { className: prevNextControls, children: ">" }),
|
|
17323
17362
|
breakLabel: "...",
|
|
17324
17363
|
pageCount,
|
|
17325
17364
|
marginPagesDisplayed: 2,
|
|
@@ -17386,7 +17425,7 @@ var inputIconBtn = css78`
|
|
|
17386
17425
|
`;
|
|
17387
17426
|
|
|
17388
17427
|
// src/components/ParameterInputs/LabelLeadingIcon.tsx
|
|
17389
|
-
import { jsx as
|
|
17428
|
+
import { jsx as jsx97, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
|
|
17390
17429
|
var LabelLeadingIcon = ({
|
|
17391
17430
|
icon,
|
|
17392
17431
|
iconColor,
|
|
@@ -17398,7 +17437,7 @@ var LabelLeadingIcon = ({
|
|
|
17398
17437
|
...props
|
|
17399
17438
|
}) => {
|
|
17400
17439
|
const titleFr = title2 != null ? title2 : isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
|
|
17401
|
-
return /* @__PURE__ */
|
|
17440
|
+
return /* @__PURE__ */ jsx97(Tooltip, { title: titleFr, children: /* @__PURE__ */ jsxs65(
|
|
17402
17441
|
"button",
|
|
17403
17442
|
{
|
|
17404
17443
|
css: inputIconBtn,
|
|
@@ -17408,7 +17447,7 @@ var LabelLeadingIcon = ({
|
|
|
17408
17447
|
...props,
|
|
17409
17448
|
"data-testid": "lock-button",
|
|
17410
17449
|
children: [
|
|
17411
|
-
/* @__PURE__ */
|
|
17450
|
+
/* @__PURE__ */ jsx97(
|
|
17412
17451
|
Icon,
|
|
17413
17452
|
{
|
|
17414
17453
|
icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
|
|
@@ -17711,7 +17750,7 @@ var linkParameterIcon = css79`
|
|
|
17711
17750
|
`;
|
|
17712
17751
|
|
|
17713
17752
|
// src/components/ParameterInputs/ParameterDataResource.tsx
|
|
17714
|
-
import { jsx as
|
|
17753
|
+
import { jsx as jsx98, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
|
|
17715
17754
|
function ParameterDataResource({
|
|
17716
17755
|
label,
|
|
17717
17756
|
labelLeadingIcon,
|
|
@@ -17721,12 +17760,12 @@ function ParameterDataResource({
|
|
|
17721
17760
|
disabled: disabled2,
|
|
17722
17761
|
children
|
|
17723
17762
|
}) {
|
|
17724
|
-
return /* @__PURE__ */
|
|
17725
|
-
/* @__PURE__ */
|
|
17763
|
+
return /* @__PURE__ */ jsxs66("div", { "data-testid": "parameter-data-connect-button", children: [
|
|
17764
|
+
/* @__PURE__ */ jsxs66("span", { css: labelText2, children: [
|
|
17726
17765
|
labelLeadingIcon ? labelLeadingIcon : null,
|
|
17727
17766
|
label
|
|
17728
17767
|
] }),
|
|
17729
|
-
/* @__PURE__ */
|
|
17768
|
+
/* @__PURE__ */ jsxs66(
|
|
17730
17769
|
"button",
|
|
17731
17770
|
{
|
|
17732
17771
|
type: "button",
|
|
@@ -17735,12 +17774,12 @@ function ParameterDataResource({
|
|
|
17735
17774
|
disabled: disabled2,
|
|
17736
17775
|
onClick: onConnectDatasource,
|
|
17737
17776
|
children: [
|
|
17738
|
-
/* @__PURE__ */
|
|
17777
|
+
/* @__PURE__ */ jsx98("span", { className: "advance-input-icon", css: [inputIcon2], children: /* @__PURE__ */ jsx98(Icon, { icon: "stack", iconColor: "currentColor", size: "1rem" }) }),
|
|
17739
17778
|
children
|
|
17740
17779
|
]
|
|
17741
17780
|
}
|
|
17742
17781
|
),
|
|
17743
|
-
caption ? /* @__PURE__ */
|
|
17782
|
+
caption ? /* @__PURE__ */ jsx98(Caption, { children: caption }) : null
|
|
17744
17783
|
] });
|
|
17745
17784
|
}
|
|
17746
17785
|
|
|
@@ -17766,19 +17805,19 @@ var ParameterDrawerHeaderTitle = css80`
|
|
|
17766
17805
|
`;
|
|
17767
17806
|
|
|
17768
17807
|
// src/components/ParameterInputs/ParameterDrawerHeader.tsx
|
|
17769
|
-
import { jsx as
|
|
17808
|
+
import { jsx as jsx99, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
|
|
17770
17809
|
var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
|
|
17771
|
-
return /* @__PURE__ */
|
|
17772
|
-
/* @__PURE__ */
|
|
17810
|
+
return /* @__PURE__ */ jsxs67("div", { css: ParameterDrawerHeaderContainer, children: [
|
|
17811
|
+
/* @__PURE__ */ jsxs67("header", { css: ParameterDrawerHeaderTitleGroup, children: [
|
|
17773
17812
|
iconBeforeTitle,
|
|
17774
|
-
/* @__PURE__ */
|
|
17813
|
+
/* @__PURE__ */ jsx99(Heading, { level: 3, withMarginBottom: false, css: ParameterDrawerHeaderTitle, title: title2, children: title2 })
|
|
17775
17814
|
] }),
|
|
17776
17815
|
children
|
|
17777
17816
|
] });
|
|
17778
17817
|
};
|
|
17779
17818
|
|
|
17780
17819
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
17781
|
-
import { forwardRef as
|
|
17820
|
+
import { forwardRef as forwardRef14 } from "react";
|
|
17782
17821
|
|
|
17783
17822
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
17784
17823
|
import { css as css81 } from "@emotion/react";
|
|
@@ -17801,18 +17840,18 @@ var fieldsetLegend2 = css81`
|
|
|
17801
17840
|
`;
|
|
17802
17841
|
|
|
17803
17842
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
17804
|
-
import { jsx as
|
|
17805
|
-
var ParameterGroup =
|
|
17843
|
+
import { jsx as jsx100, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
|
|
17844
|
+
var ParameterGroup = forwardRef14(
|
|
17806
17845
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
17807
|
-
return /* @__PURE__ */
|
|
17808
|
-
/* @__PURE__ */
|
|
17846
|
+
return /* @__PURE__ */ jsxs68("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
17847
|
+
/* @__PURE__ */ jsx100("legend", { css: fieldsetLegend2, children: legend }),
|
|
17809
17848
|
children
|
|
17810
17849
|
] });
|
|
17811
17850
|
}
|
|
17812
17851
|
);
|
|
17813
17852
|
|
|
17814
17853
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
17815
|
-
import { forwardRef as
|
|
17854
|
+
import { forwardRef as forwardRef16, useDeferredValue } from "react";
|
|
17816
17855
|
|
|
17817
17856
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
17818
17857
|
import { useState as useState12 } from "react";
|
|
@@ -17856,32 +17895,32 @@ var previewModalImage = css82`
|
|
|
17856
17895
|
`;
|
|
17857
17896
|
|
|
17858
17897
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
17859
|
-
import { Fragment as Fragment13, jsx as
|
|
17898
|
+
import { Fragment as Fragment13, jsx as jsx101, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
|
|
17860
17899
|
function ParameterImagePreview({ imageSrc }) {
|
|
17861
17900
|
const [showModal, setShowModal] = useState12(false);
|
|
17862
|
-
return imageSrc ? /* @__PURE__ */
|
|
17863
|
-
/* @__PURE__ */
|
|
17864
|
-
/* @__PURE__ */
|
|
17901
|
+
return imageSrc ? /* @__PURE__ */ jsxs69("div", { css: previewWrapper, children: [
|
|
17902
|
+
/* @__PURE__ */ jsx101(PreviewImageModal, { open: showModal, imageSrc, onRequestClose: () => setShowModal(false) }),
|
|
17903
|
+
/* @__PURE__ */ jsx101(
|
|
17865
17904
|
"button",
|
|
17866
17905
|
{
|
|
17867
17906
|
css: previewLink,
|
|
17868
17907
|
onClick: () => {
|
|
17869
17908
|
setShowModal(true);
|
|
17870
17909
|
},
|
|
17871
|
-
children: /* @__PURE__ */
|
|
17910
|
+
children: /* @__PURE__ */ jsx101(Image, { src: imageSrc, "data-testid": "parameter-image-preview" })
|
|
17872
17911
|
}
|
|
17873
17912
|
)
|
|
17874
17913
|
] }) : null;
|
|
17875
17914
|
}
|
|
17876
17915
|
var PreviewImageModal = ({ open, onRequestClose, imageSrc }) => {
|
|
17877
|
-
return open ? /* @__PURE__ */
|
|
17878
|
-
/* @__PURE__ */
|
|
17916
|
+
return open ? /* @__PURE__ */ jsx101(Fragment13, { children: createPortal2(
|
|
17917
|
+
/* @__PURE__ */ jsx101(
|
|
17879
17918
|
Modal,
|
|
17880
17919
|
{
|
|
17881
17920
|
header: "Image Preview",
|
|
17882
17921
|
onRequestClose,
|
|
17883
|
-
buttonGroup: /* @__PURE__ */
|
|
17884
|
-
children: /* @__PURE__ */
|
|
17922
|
+
buttonGroup: /* @__PURE__ */ jsx101(Button, { buttonType: "secondary", onClick: onRequestClose, children: "Ok" }),
|
|
17923
|
+
children: /* @__PURE__ */ jsx101("div", { css: previewModalWrapper, children: /* @__PURE__ */ jsx101(Image, { src: imageSrc, css: previewModalImage, "data-testid": "parameter-image-preview" }) })
|
|
17885
17924
|
}
|
|
17886
17925
|
),
|
|
17887
17926
|
document.body
|
|
@@ -17893,21 +17932,21 @@ import { css as css84 } from "@emotion/react";
|
|
|
17893
17932
|
import { useState as useState13 } from "react";
|
|
17894
17933
|
|
|
17895
17934
|
// src/components/ParameterInputs/ParameterLabel.tsx
|
|
17896
|
-
import { jsx as
|
|
17935
|
+
import { jsx as jsx102 } from "@emotion/react/jsx-runtime";
|
|
17897
17936
|
var ParameterLabel = ({ id, asSpan, children, ...props }) => {
|
|
17898
|
-
return !asSpan ? /* @__PURE__ */
|
|
17937
|
+
return !asSpan ? /* @__PURE__ */ jsx102("label", { ...props, htmlFor: id, css: labelText2, children }) : /* @__PURE__ */ jsx102("span", { "aria-labelledby": id, css: labelText2, children });
|
|
17899
17938
|
};
|
|
17900
17939
|
|
|
17901
17940
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
17902
|
-
import { forwardRef as
|
|
17903
|
-
import { jsx as
|
|
17904
|
-
var ParameterMenuButton =
|
|
17941
|
+
import { forwardRef as forwardRef15 } from "react";
|
|
17942
|
+
import { jsx as jsx103 } from "@emotion/react/jsx-runtime";
|
|
17943
|
+
var ParameterMenuButton = forwardRef15(
|
|
17905
17944
|
({ label, children }, ref) => {
|
|
17906
|
-
return /* @__PURE__ */
|
|
17945
|
+
return /* @__PURE__ */ jsx103(
|
|
17907
17946
|
Menu,
|
|
17908
17947
|
{
|
|
17909
17948
|
menuLabel: `${label} menu`,
|
|
17910
|
-
menuTrigger: /* @__PURE__ */
|
|
17949
|
+
menuTrigger: /* @__PURE__ */ jsx103(
|
|
17911
17950
|
"button",
|
|
17912
17951
|
{
|
|
17913
17952
|
className: "parameter-menu",
|
|
@@ -17915,7 +17954,7 @@ var ParameterMenuButton = forwardRef14(
|
|
|
17915
17954
|
type: "button",
|
|
17916
17955
|
"aria-label": `${label} options`,
|
|
17917
17956
|
ref,
|
|
17918
|
-
children: /* @__PURE__ */
|
|
17957
|
+
children: /* @__PURE__ */ jsx103(Icon, { icon: "more-alt", iconColor: "currentColor", size: "0.9rem" })
|
|
17919
17958
|
}
|
|
17920
17959
|
),
|
|
17921
17960
|
children
|
|
@@ -17951,7 +17990,7 @@ var overrideMarker = css83`
|
|
|
17951
17990
|
`;
|
|
17952
17991
|
|
|
17953
17992
|
// src/components/ParameterInputs/ParameterShell.tsx
|
|
17954
|
-
import { jsx as
|
|
17993
|
+
import { jsx as jsx104, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
17955
17994
|
var extractParameterProps = (props) => {
|
|
17956
17995
|
const {
|
|
17957
17996
|
id,
|
|
@@ -18014,19 +18053,19 @@ var ParameterShell = ({
|
|
|
18014
18053
|
const [manualErrorMessage, setManualErrorMessage] = useState13(void 0);
|
|
18015
18054
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
18016
18055
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
18017
|
-
return /* @__PURE__ */
|
|
18018
|
-
hiddenLabel || title2 ? null : /* @__PURE__ */
|
|
18056
|
+
return /* @__PURE__ */ jsxs70("div", { css: inputContainer2, ...props, id, children: [
|
|
18057
|
+
hiddenLabel || title2 ? null : /* @__PURE__ */ jsxs70(ParameterLabel, { id, css: labelText2, children: [
|
|
18019
18058
|
labelLeadingIcon != null ? labelLeadingIcon : null,
|
|
18020
18059
|
label,
|
|
18021
18060
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
18022
18061
|
] }),
|
|
18023
|
-
!title2 ? null : /* @__PURE__ */
|
|
18062
|
+
!title2 ? null : /* @__PURE__ */ jsxs70(ParameterLabel, { id, asSpan: true, children: [
|
|
18024
18063
|
labelLeadingIcon != null ? labelLeadingIcon : null,
|
|
18025
18064
|
title2,
|
|
18026
18065
|
labelTrailingIcon != null ? labelTrailingIcon : null
|
|
18027
18066
|
] }),
|
|
18028
|
-
/* @__PURE__ */
|
|
18029
|
-
actionItems ? /* @__PURE__ */
|
|
18067
|
+
/* @__PURE__ */ jsxs70("div", { css: inputWrapper, children: [
|
|
18068
|
+
actionItems ? /* @__PURE__ */ jsx104(
|
|
18030
18069
|
"div",
|
|
18031
18070
|
{
|
|
18032
18071
|
css: [
|
|
@@ -18039,8 +18078,8 @@ var ParameterShell = ({
|
|
|
18039
18078
|
children: actionItems
|
|
18040
18079
|
}
|
|
18041
18080
|
) : null,
|
|
18042
|
-
menuItems ? /* @__PURE__ */
|
|
18043
|
-
/* @__PURE__ */
|
|
18081
|
+
menuItems ? /* @__PURE__ */ jsx104(ParameterMenuButton, { label: `${label} menu`, children: menuItems }) : null,
|
|
18082
|
+
/* @__PURE__ */ jsx104(
|
|
18044
18083
|
ParameterShellContext.Provider,
|
|
18045
18084
|
{
|
|
18046
18085
|
value: {
|
|
@@ -18050,14 +18089,14 @@ var ParameterShell = ({
|
|
|
18050
18089
|
errorMessage: errorMessaging,
|
|
18051
18090
|
handleManuallySetErrorMessage: (message) => setErrorMessage(message)
|
|
18052
18091
|
},
|
|
18053
|
-
children: isParameterGroup ? /* @__PURE__ */
|
|
18092
|
+
children: isParameterGroup ? /* @__PURE__ */ jsx104("div", { style: { flexGrow: 1 }, children }) : /* @__PURE__ */ jsxs70(ParameterShellPlaceholder, { children: [
|
|
18054
18093
|
children,
|
|
18055
|
-
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */
|
|
18094
|
+
hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ jsx104(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
|
|
18056
18095
|
] })
|
|
18057
18096
|
}
|
|
18058
18097
|
)
|
|
18059
18098
|
] }),
|
|
18060
|
-
/* @__PURE__ */
|
|
18099
|
+
/* @__PURE__ */ jsx104(
|
|
18061
18100
|
FieldMessage,
|
|
18062
18101
|
{
|
|
18063
18102
|
helperMessageTestId: captionTestId,
|
|
@@ -18071,27 +18110,27 @@ var ParameterShell = ({
|
|
|
18071
18110
|
] });
|
|
18072
18111
|
};
|
|
18073
18112
|
var ParameterShellPlaceholder = ({ children }) => {
|
|
18074
|
-
return /* @__PURE__ */
|
|
18113
|
+
return /* @__PURE__ */ jsx104("div", { css: emptyParameterShell, children });
|
|
18075
18114
|
};
|
|
18076
|
-
var ParameterOverrideMarker = (props) => /* @__PURE__ */
|
|
18115
|
+
var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx104(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ jsx104("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ jsx104("span", { hidden: true, children: "reset overridden value to default" }) }) });
|
|
18077
18116
|
|
|
18078
18117
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
18079
|
-
import { Fragment as Fragment14, jsx as
|
|
18080
|
-
var ParameterImage =
|
|
18118
|
+
import { Fragment as Fragment14, jsx as jsx105, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
|
|
18119
|
+
var ParameterImage = forwardRef16(
|
|
18081
18120
|
({ children, ...props }, ref) => {
|
|
18082
18121
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18083
|
-
return /* @__PURE__ */
|
|
18084
|
-
/* @__PURE__ */
|
|
18122
|
+
return /* @__PURE__ */ jsxs71(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
|
|
18123
|
+
/* @__PURE__ */ jsx105(ParameterImageInner, { ref, ...innerProps }),
|
|
18085
18124
|
children
|
|
18086
18125
|
] });
|
|
18087
18126
|
}
|
|
18088
18127
|
);
|
|
18089
|
-
var ParameterImageInner =
|
|
18128
|
+
var ParameterImageInner = forwardRef16((props, ref) => {
|
|
18090
18129
|
const { value } = props;
|
|
18091
18130
|
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
18092
18131
|
const deferredValue = useDeferredValue(value);
|
|
18093
|
-
return /* @__PURE__ */
|
|
18094
|
-
/* @__PURE__ */
|
|
18132
|
+
return /* @__PURE__ */ jsxs71(Fragment14, { children: [
|
|
18133
|
+
/* @__PURE__ */ jsx105(
|
|
18095
18134
|
"input",
|
|
18096
18135
|
{
|
|
18097
18136
|
css: input3,
|
|
@@ -18103,21 +18142,21 @@ var ParameterImageInner = forwardRef15((props, ref) => {
|
|
|
18103
18142
|
...props
|
|
18104
18143
|
}
|
|
18105
18144
|
),
|
|
18106
|
-
errorMessage || props.disablePreview ? null : /* @__PURE__ */
|
|
18145
|
+
errorMessage || props.disablePreview ? null : /* @__PURE__ */ jsx105(ParameterImagePreview, { imageSrc: deferredValue })
|
|
18107
18146
|
] });
|
|
18108
18147
|
});
|
|
18109
18148
|
|
|
18110
18149
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
18111
|
-
import { forwardRef as
|
|
18112
|
-
import { jsx as
|
|
18113
|
-
var ParameterInput =
|
|
18150
|
+
import { forwardRef as forwardRef17 } from "react";
|
|
18151
|
+
import { jsx as jsx106 } from "@emotion/react/jsx-runtime";
|
|
18152
|
+
var ParameterInput = forwardRef17((props, ref) => {
|
|
18114
18153
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18115
|
-
return /* @__PURE__ */
|
|
18154
|
+
return /* @__PURE__ */ jsx106(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx106(ParameterInputInner, { ref, ...innerProps }) });
|
|
18116
18155
|
});
|
|
18117
|
-
var ParameterInputInner =
|
|
18156
|
+
var ParameterInputInner = forwardRef17(
|
|
18118
18157
|
({ ...props }, ref) => {
|
|
18119
18158
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
18120
|
-
return /* @__PURE__ */
|
|
18159
|
+
return /* @__PURE__ */ jsx106(
|
|
18121
18160
|
"input",
|
|
18122
18161
|
{
|
|
18123
18162
|
css: input3,
|
|
@@ -18133,19 +18172,19 @@ var ParameterInputInner = forwardRef16(
|
|
|
18133
18172
|
);
|
|
18134
18173
|
|
|
18135
18174
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
18136
|
-
import { forwardRef as
|
|
18137
|
-
import { jsx as
|
|
18138
|
-
var ParameterLink =
|
|
18175
|
+
import { forwardRef as forwardRef18 } from "react";
|
|
18176
|
+
import { jsx as jsx107, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
|
|
18177
|
+
var ParameterLink = forwardRef18(
|
|
18139
18178
|
({ disabled: disabled2, onConnectLink, externalLink, ...props }, ref) => {
|
|
18140
18179
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
18141
|
-
return /* @__PURE__ */
|
|
18180
|
+
return /* @__PURE__ */ jsx107(
|
|
18142
18181
|
ParameterShell,
|
|
18143
18182
|
{
|
|
18144
18183
|
"data-testid": "link-parameter-editor",
|
|
18145
18184
|
...shellProps,
|
|
18146
18185
|
label: innerProps.value ? shellProps.label : "",
|
|
18147
18186
|
title: !innerProps.value ? shellProps.label : void 0,
|
|
18148
|
-
children: /* @__PURE__ */
|
|
18187
|
+
children: /* @__PURE__ */ jsx107(
|
|
18149
18188
|
ParameterLinkInner,
|
|
18150
18189
|
{
|
|
18151
18190
|
onConnectLink,
|
|
@@ -18158,13 +18197,13 @@ var ParameterLink = forwardRef17(
|
|
|
18158
18197
|
);
|
|
18159
18198
|
}
|
|
18160
18199
|
);
|
|
18161
|
-
var ParameterLinkInner =
|
|
18200
|
+
var ParameterLinkInner = forwardRef18(
|
|
18162
18201
|
({ externalLink, onConnectLink, disabled: disabled2, buttonText = "Select link", ...props }, ref) => {
|
|
18163
18202
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
18164
18203
|
if (!props.value)
|
|
18165
|
-
return /* @__PURE__ */
|
|
18166
|
-
return /* @__PURE__ */
|
|
18167
|
-
/* @__PURE__ */
|
|
18204
|
+
return /* @__PURE__ */ jsx107("button", { type: "button", css: dataConnectButton, disabled: disabled2, onClick: onConnectLink, children: buttonText });
|
|
18205
|
+
return /* @__PURE__ */ jsxs72("div", { css: inputWrapper, children: [
|
|
18206
|
+
/* @__PURE__ */ jsx107(
|
|
18168
18207
|
"input",
|
|
18169
18208
|
{
|
|
18170
18209
|
type: "text",
|
|
@@ -18176,8 +18215,8 @@ var ParameterLinkInner = forwardRef17(
|
|
|
18176
18215
|
...props
|
|
18177
18216
|
}
|
|
18178
18217
|
),
|
|
18179
|
-
/* @__PURE__ */
|
|
18180
|
-
/* @__PURE__ */
|
|
18218
|
+
/* @__PURE__ */ jsxs72("div", { css: linkParameterControls, children: [
|
|
18219
|
+
/* @__PURE__ */ jsx107(
|
|
18181
18220
|
"button",
|
|
18182
18221
|
{
|
|
18183
18222
|
type: "button",
|
|
@@ -18188,7 +18227,7 @@ var ParameterLinkInner = forwardRef17(
|
|
|
18188
18227
|
children: "edit"
|
|
18189
18228
|
}
|
|
18190
18229
|
),
|
|
18191
|
-
externalLink ? /* @__PURE__ */
|
|
18230
|
+
externalLink ? /* @__PURE__ */ jsx107(
|
|
18192
18231
|
"a",
|
|
18193
18232
|
{
|
|
18194
18233
|
href: externalLink,
|
|
@@ -18196,7 +18235,7 @@ var ParameterLinkInner = forwardRef17(
|
|
|
18196
18235
|
title: "Open link in new tab",
|
|
18197
18236
|
target: "_blank",
|
|
18198
18237
|
rel: "noopener noreferrer",
|
|
18199
|
-
children: /* @__PURE__ */
|
|
18238
|
+
children: /* @__PURE__ */ jsx107(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
18200
18239
|
}
|
|
18201
18240
|
) : null
|
|
18202
18241
|
] })
|
|
@@ -18205,7 +18244,7 @@ var ParameterLinkInner = forwardRef17(
|
|
|
18205
18244
|
);
|
|
18206
18245
|
|
|
18207
18246
|
// src/components/ParameterInputs/ParameterNameAndPublicIdInput.tsx
|
|
18208
|
-
import { Fragment as Fragment15, jsx as
|
|
18247
|
+
import { Fragment as Fragment15, jsx as jsx108, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
|
|
18209
18248
|
var ParameterNameAndPublicIdInput = ({
|
|
18210
18249
|
id,
|
|
18211
18250
|
onBlur,
|
|
@@ -18231,8 +18270,8 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
18231
18270
|
navigator.clipboard.writeText(values[publicIdFieldName]);
|
|
18232
18271
|
};
|
|
18233
18272
|
autoFocus == null ? void 0 : autoFocus();
|
|
18234
|
-
return /* @__PURE__ */
|
|
18235
|
-
/* @__PURE__ */
|
|
18273
|
+
return /* @__PURE__ */ jsxs73(Fragment15, { children: [
|
|
18274
|
+
/* @__PURE__ */ jsx108(
|
|
18236
18275
|
ParameterInput,
|
|
18237
18276
|
{
|
|
18238
18277
|
id: nameIdField,
|
|
@@ -18251,7 +18290,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
18251
18290
|
value: values[nameIdField]
|
|
18252
18291
|
}
|
|
18253
18292
|
),
|
|
18254
|
-
/* @__PURE__ */
|
|
18293
|
+
/* @__PURE__ */ jsx108(
|
|
18255
18294
|
ParameterInput,
|
|
18256
18295
|
{
|
|
18257
18296
|
id: publicIdFieldName,
|
|
@@ -18265,11 +18304,11 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
18265
18304
|
caption: !publicIdError ? publicIdCaption : void 0,
|
|
18266
18305
|
placeholder: publicIdPlaceholderText,
|
|
18267
18306
|
errorMessage: publicIdError,
|
|
18268
|
-
menuItems: /* @__PURE__ */
|
|
18307
|
+
menuItems: /* @__PURE__ */ jsx108(
|
|
18269
18308
|
MenuItem,
|
|
18270
18309
|
{
|
|
18271
18310
|
disabled: !values[publicIdFieldName],
|
|
18272
|
-
icon: /* @__PURE__ */
|
|
18311
|
+
icon: /* @__PURE__ */ jsx108(Icon, { icon: "path-trim", iconColor: "currentColor" }),
|
|
18273
18312
|
onClick: handleCopyPidFieldValue,
|
|
18274
18313
|
children: "Copy"
|
|
18275
18314
|
}
|
|
@@ -18277,7 +18316,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
18277
18316
|
value: values[publicIdFieldName]
|
|
18278
18317
|
}
|
|
18279
18318
|
),
|
|
18280
|
-
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */
|
|
18319
|
+
(warnOverLength == null ? void 0 : warnOverLength.length) && values[publicIdFieldName].length > warnOverLength.length ? /* @__PURE__ */ jsx108(Callout, { type: "caution", children: warnOverLength.message }) : null
|
|
18281
18320
|
] });
|
|
18282
18321
|
};
|
|
18283
18322
|
|
|
@@ -18667,7 +18706,7 @@ var getSelectedNode = (selection) => {
|
|
|
18667
18706
|
};
|
|
18668
18707
|
|
|
18669
18708
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
18670
|
-
import { Fragment as Fragment16, jsx as
|
|
18709
|
+
import { Fragment as Fragment16, jsx as jsx109, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
|
|
18671
18710
|
var isProjectMapLinkValue = (value) => {
|
|
18672
18711
|
return (value == null ? void 0 : value.type) === "projectMapNode" && Boolean(
|
|
18673
18712
|
value.nodeId && value.path && value.projectMapId
|
|
@@ -19110,8 +19149,8 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
19110
19149
|
});
|
|
19111
19150
|
});
|
|
19112
19151
|
};
|
|
19113
|
-
return /* @__PURE__ */
|
|
19114
|
-
/* @__PURE__ */
|
|
19152
|
+
return /* @__PURE__ */ jsxs74(Fragment16, { children: [
|
|
19153
|
+
/* @__PURE__ */ jsx109(
|
|
19115
19154
|
NodeEventPlugin,
|
|
19116
19155
|
{
|
|
19117
19156
|
nodeType: LinkNode,
|
|
@@ -19121,7 +19160,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
19121
19160
|
}
|
|
19122
19161
|
}
|
|
19123
19162
|
),
|
|
19124
|
-
linkPopoverState ? /* @__PURE__ */
|
|
19163
|
+
linkPopoverState ? /* @__PURE__ */ jsx109(
|
|
19125
19164
|
"div",
|
|
19126
19165
|
{
|
|
19127
19166
|
css: linkPopover,
|
|
@@ -19130,8 +19169,8 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
19130
19169
|
top: linkPopoverState.position.y
|
|
19131
19170
|
},
|
|
19132
19171
|
ref: linkPopoverElRef,
|
|
19133
|
-
children: /* @__PURE__ */
|
|
19134
|
-
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */
|
|
19172
|
+
children: /* @__PURE__ */ jsxs74("div", { css: linkPopoverContainer, children: [
|
|
19173
|
+
linkPopoverState.node.__link.type === "projectMapNode" ? linkPopoverState.node.__link.path : /* @__PURE__ */ jsx109(
|
|
19135
19174
|
"a",
|
|
19136
19175
|
{
|
|
19137
19176
|
href: parsePath(
|
|
@@ -19143,7 +19182,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
19143
19182
|
children: parsePath(linkPopoverState.node.__link.path)
|
|
19144
19183
|
}
|
|
19145
19184
|
),
|
|
19146
|
-
/* @__PURE__ */
|
|
19185
|
+
/* @__PURE__ */ jsx109(
|
|
19147
19186
|
Button,
|
|
19148
19187
|
{
|
|
19149
19188
|
size: "xs",
|
|
@@ -19151,7 +19190,7 @@ function LinkNodePlugin({ onConnectLink, getBoundPath }) {
|
|
|
19151
19190
|
onEditLinkNode(linkPopoverState.node);
|
|
19152
19191
|
},
|
|
19153
19192
|
buttonType: "ghost",
|
|
19154
|
-
children: /* @__PURE__ */
|
|
19193
|
+
children: /* @__PURE__ */ jsx109(Icon, { icon: "pen", size: "1rem", title: "Edit link" })
|
|
19155
19194
|
}
|
|
19156
19195
|
)
|
|
19157
19196
|
] })
|
|
@@ -19176,7 +19215,7 @@ import {
|
|
|
19176
19215
|
INDENT_CONTENT_COMMAND
|
|
19177
19216
|
} from "lexical";
|
|
19178
19217
|
import { useEffect as useEffect14 } from "react";
|
|
19179
|
-
import { jsx as
|
|
19218
|
+
import { jsx as jsx110 } from "@emotion/react/jsx-runtime";
|
|
19180
19219
|
function isIndentPermitted(maxDepth) {
|
|
19181
19220
|
const selection = $getSelection2();
|
|
19182
19221
|
if (!$isRangeSelection2(selection)) {
|
|
@@ -19206,7 +19245,7 @@ function ListIndentPlugin({ maxDepth }) {
|
|
|
19206
19245
|
COMMAND_PRIORITY_CRITICAL
|
|
19207
19246
|
);
|
|
19208
19247
|
}, [editor, maxDepth]);
|
|
19209
|
-
return /* @__PURE__ */
|
|
19248
|
+
return /* @__PURE__ */ jsx110(TabIndentationPlugin, {});
|
|
19210
19249
|
}
|
|
19211
19250
|
|
|
19212
19251
|
// src/components/ParameterInputs/rich-text/RichTextToolbar.tsx
|
|
@@ -19233,7 +19272,7 @@ import {
|
|
|
19233
19272
|
SELECTION_CHANGE_COMMAND
|
|
19234
19273
|
} from "lexical";
|
|
19235
19274
|
import { useCallback as useCallback9, useEffect as useEffect15, useMemo as useMemo4, useState as useState15 } from "react";
|
|
19236
|
-
import { Fragment as Fragment17, jsx as
|
|
19275
|
+
import { Fragment as Fragment17, jsx as jsx111, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
|
|
19237
19276
|
var toolbar = css87`
|
|
19238
19277
|
background: var(--gray-50);
|
|
19239
19278
|
border-radius: var(--rounded-base);
|
|
@@ -19285,7 +19324,7 @@ var toolbarChevron = css87`
|
|
|
19285
19324
|
margin-left: var(--spacing-xs);
|
|
19286
19325
|
`;
|
|
19287
19326
|
var RichTextToolbarIcon = ({ icon }) => {
|
|
19288
|
-
return /* @__PURE__ */
|
|
19327
|
+
return /* @__PURE__ */ jsx111(Icon, { icon, css: toolbarIcon, size: "1rem" });
|
|
19289
19328
|
};
|
|
19290
19329
|
var FORMATS_WITH_ICON = /* @__PURE__ */ new Map([
|
|
19291
19330
|
["bold", "format-bold"],
|
|
@@ -19394,15 +19433,15 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
19394
19433
|
});
|
|
19395
19434
|
});
|
|
19396
19435
|
}, [editor, updateToolbar]);
|
|
19397
|
-
return /* @__PURE__ */
|
|
19398
|
-
/* @__PURE__ */
|
|
19436
|
+
return /* @__PURE__ */ jsxs75("div", { css: toolbar, children: [
|
|
19437
|
+
/* @__PURE__ */ jsxs75(
|
|
19399
19438
|
Menu,
|
|
19400
19439
|
{
|
|
19401
19440
|
menuLabel: "Elements",
|
|
19402
|
-
menuTrigger: /* @__PURE__ */
|
|
19441
|
+
menuTrigger: /* @__PURE__ */ jsxs75("button", { css: richTextToolbarButton, title: "Text styles", children: [
|
|
19403
19442
|
visibleTextualElements.some((element) => element.type === activeElement) ? getLabelForElement(activeElement) : getLabelForElement("paragraph"),
|
|
19404
19443
|
" ",
|
|
19405
|
-
/* @__PURE__ */
|
|
19444
|
+
/* @__PURE__ */ jsx111(Icon, { icon: "chevron-down", css: [toolbarIcon, toolbarChevron], size: "1rem" })
|
|
19406
19445
|
] }),
|
|
19407
19446
|
placement: "bottom-start",
|
|
19408
19447
|
children: [
|
|
@@ -19412,7 +19451,7 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
19412
19451
|
type: "paragraph"
|
|
19413
19452
|
},
|
|
19414
19453
|
...visibleTextualElements
|
|
19415
|
-
].map((element) => /* @__PURE__ */
|
|
19454
|
+
].map((element) => /* @__PURE__ */ jsx111(
|
|
19416
19455
|
MenuItem,
|
|
19417
19456
|
{
|
|
19418
19457
|
onClick: () => {
|
|
@@ -19422,12 +19461,12 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
19422
19461
|
},
|
|
19423
19462
|
element.type
|
|
19424
19463
|
)),
|
|
19425
|
-
visibleTextualElements.length === 0 ? /* @__PURE__ */
|
|
19464
|
+
visibleTextualElements.length === 0 ? /* @__PURE__ */ jsx111(MenuItem, { disabled: true, children: "Alternative text styles are not available" }) : null
|
|
19426
19465
|
]
|
|
19427
19466
|
}
|
|
19428
19467
|
),
|
|
19429
|
-
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
19430
|
-
visibleFormatsWithIcon.map((format) => /* @__PURE__ */
|
|
19468
|
+
visibleFormatsWithIcon.length > 0 || visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsxs75("div", { css: toolbarGroup, children: [
|
|
19469
|
+
visibleFormatsWithIcon.map((format) => /* @__PURE__ */ jsx111(Tooltip, { title: format.label, placement: "top", children: /* @__PURE__ */ jsx111(
|
|
19431
19470
|
"button",
|
|
19432
19471
|
{
|
|
19433
19472
|
onClick: () => {
|
|
@@ -19437,16 +19476,16 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
19437
19476
|
richTextToolbarButton,
|
|
19438
19477
|
activeFormats.includes(format.type) ? richTextToolbarButtonActive : null
|
|
19439
19478
|
],
|
|
19440
|
-
children: /* @__PURE__ */
|
|
19479
|
+
children: /* @__PURE__ */ jsx111(RichTextToolbarIcon, { icon: FORMATS_WITH_ICON.get(format.type) })
|
|
19441
19480
|
}
|
|
19442
19481
|
) }, format.type)),
|
|
19443
|
-
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */
|
|
19482
|
+
visibleFormatsWithoutIcon.length > 0 ? /* @__PURE__ */ jsx111(
|
|
19444
19483
|
Menu,
|
|
19445
19484
|
{
|
|
19446
19485
|
menuLabel: "Alternative text styles",
|
|
19447
|
-
menuTrigger: /* @__PURE__ */
|
|
19486
|
+
menuTrigger: /* @__PURE__ */ jsx111("button", { css: richTextToolbarButton, title: "Alternative text styles", children: /* @__PURE__ */ jsx111(Icon, { icon: "more-alt", css: toolbarIcon }) }),
|
|
19448
19487
|
placement: "bottom-start",
|
|
19449
|
-
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */
|
|
19488
|
+
children: visibleFormatsWithoutIcon.map((format) => /* @__PURE__ */ jsx111(
|
|
19450
19489
|
MenuItem,
|
|
19451
19490
|
{
|
|
19452
19491
|
onClick: () => {
|
|
@@ -19459,19 +19498,19 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
19459
19498
|
}
|
|
19460
19499
|
) : null
|
|
19461
19500
|
] }) : null,
|
|
19462
|
-
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */
|
|
19463
|
-
linkElementVisible ? /* @__PURE__ */
|
|
19501
|
+
visibleElementsWithIcons.size > 0 ? /* @__PURE__ */ jsxs75("div", { css: toolbarGroup, children: [
|
|
19502
|
+
linkElementVisible ? /* @__PURE__ */ jsx111(Tooltip, { title: "Link", placement: "top", children: /* @__PURE__ */ jsx111(
|
|
19464
19503
|
"button",
|
|
19465
19504
|
{
|
|
19466
19505
|
onClick: () => {
|
|
19467
19506
|
isLink ? editor.dispatchCommand(REMOVE_LINK_NODE_COMMAND, {}) : editor.dispatchCommand(OPEN_LINK_NODE_MODAL_COMMAND, {});
|
|
19468
19507
|
},
|
|
19469
19508
|
css: [richTextToolbarButton, isLink ? richTextToolbarButtonActive : null],
|
|
19470
|
-
children: /* @__PURE__ */
|
|
19509
|
+
children: /* @__PURE__ */ jsx111(RichTextToolbarIcon, { icon: "link" })
|
|
19471
19510
|
}
|
|
19472
19511
|
) }) : null,
|
|
19473
|
-
visibleLists.size > 0 ? /* @__PURE__ */
|
|
19474
|
-
visibleLists.has("unorderedList") ? /* @__PURE__ */
|
|
19512
|
+
visibleLists.size > 0 ? /* @__PURE__ */ jsxs75(Fragment17, { children: [
|
|
19513
|
+
visibleLists.has("unorderedList") ? /* @__PURE__ */ jsx111(Tooltip, { title: "Bullet List", placement: "top", children: /* @__PURE__ */ jsx111(
|
|
19475
19514
|
"button",
|
|
19476
19515
|
{
|
|
19477
19516
|
onClick: () => {
|
|
@@ -19481,10 +19520,10 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
19481
19520
|
richTextToolbarButton,
|
|
19482
19521
|
activeElement === "unorderedList" ? richTextToolbarButtonActive : null
|
|
19483
19522
|
],
|
|
19484
|
-
children: /* @__PURE__ */
|
|
19523
|
+
children: /* @__PURE__ */ jsx111(RichTextToolbarIcon, { icon: "layout-list" })
|
|
19485
19524
|
}
|
|
19486
19525
|
) }) : null,
|
|
19487
|
-
visibleLists.has("orderedList") ? /* @__PURE__ */
|
|
19526
|
+
visibleLists.has("orderedList") ? /* @__PURE__ */ jsx111(Tooltip, { title: "Ordered List", placement: "top", children: /* @__PURE__ */ jsx111(
|
|
19488
19527
|
"button",
|
|
19489
19528
|
{
|
|
19490
19529
|
onClick: () => {
|
|
@@ -19494,32 +19533,32 @@ var RichTextToolbar = ({ config, customControls }) => {
|
|
|
19494
19533
|
richTextToolbarButton,
|
|
19495
19534
|
activeElement === "orderedList" ? richTextToolbarButtonActive : null
|
|
19496
19535
|
],
|
|
19497
|
-
children: /* @__PURE__ */
|
|
19536
|
+
children: /* @__PURE__ */ jsx111(RichTextToolbarIcon, { icon: "layout-list-numbered" })
|
|
19498
19537
|
}
|
|
19499
19538
|
) }) : null
|
|
19500
19539
|
] }) : null,
|
|
19501
|
-
quoteElementVisible ? /* @__PURE__ */
|
|
19540
|
+
quoteElementVisible ? /* @__PURE__ */ jsx111(Tooltip, { title: "Blockquote", placement: "top", children: /* @__PURE__ */ jsx111(
|
|
19502
19541
|
"button",
|
|
19503
19542
|
{
|
|
19504
19543
|
onClick: () => {
|
|
19505
19544
|
activeElement === "quote" ? onSelectElement("paragraph") : onSelectElement("quote");
|
|
19506
19545
|
},
|
|
19507
19546
|
css: [richTextToolbarButton, activeElement === "quote" ? richTextToolbarButtonActive : null],
|
|
19508
|
-
children: /* @__PURE__ */
|
|
19547
|
+
children: /* @__PURE__ */ jsx111(RichTextToolbarIcon, { icon: "quote" })
|
|
19509
19548
|
}
|
|
19510
19549
|
) }) : null,
|
|
19511
|
-
codeElementVisible ? /* @__PURE__ */
|
|
19550
|
+
codeElementVisible ? /* @__PURE__ */ jsx111(Tooltip, { title: "Code Block", placement: "top", children: /* @__PURE__ */ jsx111(
|
|
19512
19551
|
"button",
|
|
19513
19552
|
{
|
|
19514
19553
|
onClick: () => {
|
|
19515
19554
|
activeElement === "code" ? onSelectElement("paragraph") : onSelectElement("code");
|
|
19516
19555
|
},
|
|
19517
19556
|
css: [richTextToolbarButton, activeElement === "code" ? richTextToolbarButtonActive : null],
|
|
19518
|
-
children: /* @__PURE__ */
|
|
19557
|
+
children: /* @__PURE__ */ jsx111(RichTextToolbarIcon, { icon: "code-slash" })
|
|
19519
19558
|
}
|
|
19520
19559
|
) }) : null
|
|
19521
19560
|
] }) : null,
|
|
19522
|
-
customControls ? /* @__PURE__ */
|
|
19561
|
+
customControls ? /* @__PURE__ */ jsx111("div", { css: toolbarGroup, children: customControls }) : null
|
|
19523
19562
|
] });
|
|
19524
19563
|
};
|
|
19525
19564
|
var RichTextToolbar_default = RichTextToolbar;
|
|
@@ -19633,7 +19672,7 @@ var useRichTextToolbarState = ({ config }) => {
|
|
|
19633
19672
|
};
|
|
19634
19673
|
|
|
19635
19674
|
// src/components/ParameterInputs/ParameterRichText.tsx
|
|
19636
|
-
import { Fragment as Fragment18, jsx as
|
|
19675
|
+
import { Fragment as Fragment18, jsx as jsx112, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
|
|
19637
19676
|
var ParameterRichText = ({
|
|
19638
19677
|
label,
|
|
19639
19678
|
labelLeadingIcon,
|
|
@@ -19658,7 +19697,7 @@ var ParameterRichText = ({
|
|
|
19658
19697
|
variables,
|
|
19659
19698
|
customControls
|
|
19660
19699
|
}) => {
|
|
19661
|
-
return /* @__PURE__ */
|
|
19700
|
+
return /* @__PURE__ */ jsxs76(
|
|
19662
19701
|
ParameterShell,
|
|
19663
19702
|
{
|
|
19664
19703
|
"data-testid": "parameter-richtext",
|
|
@@ -19672,7 +19711,7 @@ var ParameterRichText = ({
|
|
|
19672
19711
|
captionTestId,
|
|
19673
19712
|
menuItems,
|
|
19674
19713
|
children: [
|
|
19675
|
-
/* @__PURE__ */
|
|
19714
|
+
/* @__PURE__ */ jsx112(
|
|
19676
19715
|
ParameterRichTextInner,
|
|
19677
19716
|
{
|
|
19678
19717
|
value,
|
|
@@ -19690,7 +19729,7 @@ var ParameterRichText = ({
|
|
|
19690
19729
|
children
|
|
19691
19730
|
}
|
|
19692
19731
|
),
|
|
19693
|
-
menuItems ? /* @__PURE__ */
|
|
19732
|
+
menuItems ? /* @__PURE__ */ jsx112(ParameterMenuButton, { label: `${label} menu`, children: /* @__PURE__ */ jsx112(Fragment18, { children: menuItems }) }) : null
|
|
19694
19733
|
]
|
|
19695
19734
|
}
|
|
19696
19735
|
);
|
|
@@ -19801,8 +19840,8 @@ var ParameterRichTextInner = ({
|
|
|
19801
19840
|
},
|
|
19802
19841
|
editable: !readOnly
|
|
19803
19842
|
};
|
|
19804
|
-
return /* @__PURE__ */
|
|
19805
|
-
/* @__PURE__ */
|
|
19843
|
+
return /* @__PURE__ */ jsxs76(Fragment18, { children: [
|
|
19844
|
+
/* @__PURE__ */ jsx112("div", { css: [editorWrapper], className: editorWrapperClassName, children: /* @__PURE__ */ jsx112(LexicalComposer, { initialConfig: lexicalConfig, children: /* @__PURE__ */ jsx112(
|
|
19806
19845
|
RichText,
|
|
19807
19846
|
{
|
|
19808
19847
|
onChange,
|
|
@@ -19861,20 +19900,20 @@ var RichText = ({
|
|
|
19861
19900
|
useEffect16(() => {
|
|
19862
19901
|
editor.setEditable(!readOnly);
|
|
19863
19902
|
}, [editor, readOnly]);
|
|
19864
|
-
return /* @__PURE__ */
|
|
19865
|
-
readOnly ? null : /* @__PURE__ */
|
|
19866
|
-
/* @__PURE__ */
|
|
19867
|
-
/* @__PURE__ */
|
|
19903
|
+
return /* @__PURE__ */ jsxs76(Fragment18, { children: [
|
|
19904
|
+
readOnly ? null : /* @__PURE__ */ jsx112(RichTextToolbar_default, { config, customControls }),
|
|
19905
|
+
/* @__PURE__ */ jsxs76("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
|
|
19906
|
+
/* @__PURE__ */ jsx112(
|
|
19868
19907
|
RichTextPlugin,
|
|
19869
19908
|
{
|
|
19870
|
-
contentEditable: /* @__PURE__ */
|
|
19871
|
-
placeholder: /* @__PURE__ */
|
|
19909
|
+
contentEditable: /* @__PURE__ */ jsx112(ContentEditable, { css: editorInput, className: editorInputClassName }),
|
|
19910
|
+
placeholder: /* @__PURE__ */ jsx112("div", { css: editorPlaceholder, children: readOnly ? "empty" : "start editing..." }),
|
|
19872
19911
|
ErrorBoundary: LexicalErrorBoundary
|
|
19873
19912
|
}
|
|
19874
19913
|
),
|
|
19875
|
-
/* @__PURE__ */
|
|
19876
|
-
readOnly ? null : /* @__PURE__ */
|
|
19877
|
-
/* @__PURE__ */
|
|
19914
|
+
/* @__PURE__ */ jsx112(ListPlugin, {}),
|
|
19915
|
+
readOnly ? null : /* @__PURE__ */ jsx112(HistoryPlugin, {}),
|
|
19916
|
+
/* @__PURE__ */ jsx112(
|
|
19878
19917
|
LinkNodePlugin,
|
|
19879
19918
|
{
|
|
19880
19919
|
onConnectLink: onConnectLink ? onConnectLink : () => Promise.resolve(),
|
|
@@ -19884,27 +19923,27 @@ var RichText = ({
|
|
|
19884
19923
|
} : void 0
|
|
19885
19924
|
}
|
|
19886
19925
|
),
|
|
19887
|
-
/* @__PURE__ */
|
|
19888
|
-
/* @__PURE__ */
|
|
19889
|
-
/* @__PURE__ */
|
|
19890
|
-
/* @__PURE__ */
|
|
19926
|
+
/* @__PURE__ */ jsx112(ListIndentPlugin, { maxDepth: 4 }),
|
|
19927
|
+
/* @__PURE__ */ jsx112(DisableStylesPlugin, {}),
|
|
19928
|
+
/* @__PURE__ */ jsx112(MarkdownShortcutPlugin, { transformers: MARKDOWN_TRANSFORMERS }),
|
|
19929
|
+
/* @__PURE__ */ jsx112(Fragment18, { children })
|
|
19891
19930
|
] })
|
|
19892
19931
|
] });
|
|
19893
19932
|
};
|
|
19894
19933
|
|
|
19895
19934
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
19896
|
-
import { forwardRef as
|
|
19897
|
-
import { jsx as
|
|
19898
|
-
var ParameterSelect =
|
|
19935
|
+
import { forwardRef as forwardRef19 } from "react";
|
|
19936
|
+
import { jsx as jsx113, jsxs as jsxs77 } from "@emotion/react/jsx-runtime";
|
|
19937
|
+
var ParameterSelect = forwardRef19(
|
|
19899
19938
|
({ defaultOption, options, ...props }, ref) => {
|
|
19900
19939
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
19901
|
-
return /* @__PURE__ */
|
|
19940
|
+
return /* @__PURE__ */ jsx113(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx113(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
19902
19941
|
}
|
|
19903
19942
|
);
|
|
19904
|
-
var ParameterSelectInner =
|
|
19943
|
+
var ParameterSelectInner = forwardRef19(
|
|
19905
19944
|
({ defaultOption, options, ...props }, ref) => {
|
|
19906
19945
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
19907
|
-
return /* @__PURE__ */
|
|
19946
|
+
return /* @__PURE__ */ jsxs77(
|
|
19908
19947
|
"select",
|
|
19909
19948
|
{
|
|
19910
19949
|
css: [input3, selectInput],
|
|
@@ -19913,10 +19952,10 @@ var ParameterSelectInner = forwardRef18(
|
|
|
19913
19952
|
ref,
|
|
19914
19953
|
...props,
|
|
19915
19954
|
children: [
|
|
19916
|
-
defaultOption ? /* @__PURE__ */
|
|
19955
|
+
defaultOption ? /* @__PURE__ */ jsx113("option", { value: "", children: defaultOption }) : null,
|
|
19917
19956
|
options.map((option) => {
|
|
19918
19957
|
var _a;
|
|
19919
|
-
return /* @__PURE__ */
|
|
19958
|
+
return /* @__PURE__ */ jsx113("option", { value: (_a = option.value) != null ? _a : option.label, children: option.label }, option.label);
|
|
19920
19959
|
})
|
|
19921
19960
|
]
|
|
19922
19961
|
}
|
|
@@ -19925,15 +19964,15 @@ var ParameterSelectInner = forwardRef18(
|
|
|
19925
19964
|
);
|
|
19926
19965
|
|
|
19927
19966
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
19928
|
-
import { forwardRef as
|
|
19929
|
-
import { jsx as
|
|
19930
|
-
var ParameterTextarea =
|
|
19967
|
+
import { forwardRef as forwardRef20 } from "react";
|
|
19968
|
+
import { jsx as jsx114 } from "@emotion/react/jsx-runtime";
|
|
19969
|
+
var ParameterTextarea = forwardRef20((props, ref) => {
|
|
19931
19970
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
19932
|
-
return /* @__PURE__ */
|
|
19971
|
+
return /* @__PURE__ */ jsx114(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx114(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
19933
19972
|
});
|
|
19934
|
-
var ParameterTextareaInner =
|
|
19973
|
+
var ParameterTextareaInner = forwardRef20(({ ...props }, ref) => {
|
|
19935
19974
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
19936
|
-
return /* @__PURE__ */
|
|
19975
|
+
return /* @__PURE__ */ jsx114(
|
|
19937
19976
|
"textarea",
|
|
19938
19977
|
{
|
|
19939
19978
|
css: [input3, textarea2],
|
|
@@ -19946,18 +19985,18 @@ var ParameterTextareaInner = forwardRef19(({ ...props }, ref) => {
|
|
|
19946
19985
|
});
|
|
19947
19986
|
|
|
19948
19987
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
19949
|
-
import { forwardRef as
|
|
19950
|
-
import { jsx as
|
|
19951
|
-
var ParameterToggle =
|
|
19988
|
+
import { forwardRef as forwardRef21 } from "react";
|
|
19989
|
+
import { jsx as jsx115, jsxs as jsxs78 } from "@emotion/react/jsx-runtime";
|
|
19990
|
+
var ParameterToggle = forwardRef21((props, ref) => {
|
|
19952
19991
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
19953
|
-
return /* @__PURE__ */
|
|
19992
|
+
return /* @__PURE__ */ jsx115(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx115(ParameterToggleInner, { ref, ...innerProps }) });
|
|
19954
19993
|
});
|
|
19955
|
-
var ParameterToggleInner =
|
|
19994
|
+
var ParameterToggleInner = forwardRef21(
|
|
19956
19995
|
({ children, ...props }, ref) => {
|
|
19957
19996
|
const { id, label } = useParameterShell();
|
|
19958
|
-
return /* @__PURE__ */
|
|
19959
|
-
/* @__PURE__ */
|
|
19960
|
-
/* @__PURE__ */
|
|
19997
|
+
return /* @__PURE__ */ jsxs78("label", { css: inputToggleLabel2, children: [
|
|
19998
|
+
/* @__PURE__ */ jsx115("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
19999
|
+
/* @__PURE__ */ jsx115("span", { css: inlineLabel2, children: label }),
|
|
19961
20000
|
children
|
|
19962
20001
|
] });
|
|
19963
20002
|
}
|
|
@@ -20018,7 +20057,7 @@ var bar = css89`
|
|
|
20018
20057
|
`;
|
|
20019
20058
|
|
|
20020
20059
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
20021
|
-
import { jsx as
|
|
20060
|
+
import { jsx as jsx116 } from "@emotion/react/jsx-runtime";
|
|
20022
20061
|
function ProgressBar({
|
|
20023
20062
|
current,
|
|
20024
20063
|
max,
|
|
@@ -20028,7 +20067,7 @@ function ProgressBar({
|
|
|
20028
20067
|
}) {
|
|
20029
20068
|
const valueNow = Math.min(current, max);
|
|
20030
20069
|
const valuePercentage = max > 0 ? Math.ceil(100 / max * valueNow) : 0;
|
|
20031
|
-
return /* @__PURE__ */
|
|
20070
|
+
return /* @__PURE__ */ jsx116(
|
|
20032
20071
|
"div",
|
|
20033
20072
|
{
|
|
20034
20073
|
css: container3,
|
|
@@ -20039,7 +20078,7 @@ function ProgressBar({
|
|
|
20039
20078
|
"aria-valuemax": max,
|
|
20040
20079
|
"aria-valuenow": valueNow,
|
|
20041
20080
|
...props,
|
|
20042
|
-
children: /* @__PURE__ */
|
|
20081
|
+
children: /* @__PURE__ */ jsx116(
|
|
20043
20082
|
"div",
|
|
20044
20083
|
{
|
|
20045
20084
|
css: [
|
|
@@ -20079,7 +20118,7 @@ var progressListItemStyles = css90`
|
|
|
20079
20118
|
`;
|
|
20080
20119
|
|
|
20081
20120
|
// src/components/ProgressList/ProgressList.tsx
|
|
20082
|
-
import { jsx as
|
|
20121
|
+
import { jsx as jsx117, jsxs as jsxs79 } from "@emotion/react/jsx-runtime";
|
|
20083
20122
|
var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
20084
20123
|
const itemsWithStatus = useMemo5(() => {
|
|
20085
20124
|
const indexOfInProgressItem = items.findIndex(({ id }) => id === inProgressId);
|
|
@@ -20093,8 +20132,8 @@ var ProgressList = ({ inProgressId, items, autoEllipsis, ...htmlProps }) => {
|
|
|
20093
20132
|
return { ...item, status };
|
|
20094
20133
|
});
|
|
20095
20134
|
}, [items, inProgressId]);
|
|
20096
|
-
return /* @__PURE__ */
|
|
20097
|
-
return /* @__PURE__ */
|
|
20135
|
+
return /* @__PURE__ */ jsx117("ol", { css: progressListStyles, ...htmlProps, children: itemsWithStatus.map(({ id, label, status, error, errorLevel }) => {
|
|
20136
|
+
return /* @__PURE__ */ jsx117(
|
|
20098
20137
|
ProgressListItem,
|
|
20099
20138
|
{
|
|
20100
20139
|
status,
|
|
@@ -20152,11 +20191,11 @@ var ProgressListItem = ({
|
|
|
20152
20191
|
};
|
|
20153
20192
|
return colorPerStatus[status];
|
|
20154
20193
|
}, [status, error, errorLevel]);
|
|
20155
|
-
return /* @__PURE__ */
|
|
20156
|
-
/* @__PURE__ */
|
|
20157
|
-
/* @__PURE__ */
|
|
20194
|
+
return /* @__PURE__ */ jsxs79("li", { css: [progressListItemStyles, statusStyles], children: [
|
|
20195
|
+
/* @__PURE__ */ jsx117(Tooltip, { title: error != null ? error : "", children: /* @__PURE__ */ jsx117("div", { children: /* @__PURE__ */ jsx117(Icon, { icon, size: 20, iconColor: "currentColor" }) }) }),
|
|
20196
|
+
/* @__PURE__ */ jsxs79("div", { children: [
|
|
20158
20197
|
children,
|
|
20159
|
-
/* @__PURE__ */
|
|
20198
|
+
/* @__PURE__ */ jsx117("span", { css: { visibility: autoEllipsis && status === "inProgress" && !error ? "visible" : "hidden" }, children: "..." })
|
|
20160
20199
|
] })
|
|
20161
20200
|
] });
|
|
20162
20201
|
};
|
|
@@ -20597,7 +20636,7 @@ var SortFilterInputRow = css92`
|
|
|
20597
20636
|
`;
|
|
20598
20637
|
|
|
20599
20638
|
// src/components/SearchAndFilter/FilterButton.tsx
|
|
20600
|
-
import { jsx as
|
|
20639
|
+
import { jsx as jsx118, jsxs as jsxs80 } from "@emotion/react/jsx-runtime";
|
|
20601
20640
|
var FilterButton2 = ({
|
|
20602
20641
|
text = "Filters",
|
|
20603
20642
|
icon = "filter-add",
|
|
@@ -20605,7 +20644,7 @@ var FilterButton2 = ({
|
|
|
20605
20644
|
hasSelectedValue,
|
|
20606
20645
|
...props
|
|
20607
20646
|
}) => {
|
|
20608
|
-
return /* @__PURE__ */
|
|
20647
|
+
return /* @__PURE__ */ jsxs80(
|
|
20609
20648
|
"button",
|
|
20610
20649
|
{
|
|
20611
20650
|
type: "button",
|
|
@@ -20617,9 +20656,9 @@ var FilterButton2 = ({
|
|
|
20617
20656
|
...props,
|
|
20618
20657
|
"data-testid": "filters-button",
|
|
20619
20658
|
children: [
|
|
20620
|
-
/* @__PURE__ */
|
|
20621
|
-
/* @__PURE__ */
|
|
20622
|
-
filterCount ? /* @__PURE__ */
|
|
20659
|
+
/* @__PURE__ */ jsx118(Icon, { icon, iconColor: "currentColor", size: "1rem" }),
|
|
20660
|
+
/* @__PURE__ */ jsx118("span", { css: FilterButtonText, children: text }),
|
|
20661
|
+
filterCount ? /* @__PURE__ */ jsx118(Counter, { count: filterCount, bgColor: "var(--white)" }) : null
|
|
20623
20662
|
]
|
|
20624
20663
|
}
|
|
20625
20664
|
);
|
|
@@ -20639,7 +20678,7 @@ import {
|
|
|
20639
20678
|
useMemo as useMemo6,
|
|
20640
20679
|
useState as useState16
|
|
20641
20680
|
} from "react";
|
|
20642
|
-
import { jsx as
|
|
20681
|
+
import { jsx as jsx119 } from "@emotion/react/jsx-runtime";
|
|
20643
20682
|
var SearchAndFilterContext = createContext6({
|
|
20644
20683
|
searchTerm: "",
|
|
20645
20684
|
setSearchTerm: () => {
|
|
@@ -20730,7 +20769,7 @@ var SearchAndFilterProvider = ({
|
|
|
20730
20769
|
};
|
|
20731
20770
|
}
|
|
20732
20771
|
}, [filterVisibility]);
|
|
20733
|
-
return /* @__PURE__ */
|
|
20772
|
+
return /* @__PURE__ */ jsx119(
|
|
20734
20773
|
SearchAndFilterContext.Provider,
|
|
20735
20774
|
{
|
|
20736
20775
|
value: {
|
|
@@ -20750,7 +20789,7 @@ var SearchAndFilterProvider = ({
|
|
|
20750
20789
|
validFilterQuery,
|
|
20751
20790
|
totalResults
|
|
20752
20791
|
},
|
|
20753
|
-
children: /* @__PURE__ */
|
|
20792
|
+
children: /* @__PURE__ */ jsx119(VerticalRhythm, { children })
|
|
20754
20793
|
}
|
|
20755
20794
|
);
|
|
20756
20795
|
};
|
|
@@ -20760,7 +20799,7 @@ var useSearchAndFilter = () => {
|
|
|
20760
20799
|
};
|
|
20761
20800
|
|
|
20762
20801
|
// src/components/SearchAndFilter/FilterControls.tsx
|
|
20763
|
-
import { Fragment as Fragment19, jsx as
|
|
20802
|
+
import { Fragment as Fragment19, jsx as jsx120, jsxs as jsxs81 } from "@emotion/react/jsx-runtime";
|
|
20764
20803
|
var FilterControls = ({
|
|
20765
20804
|
children,
|
|
20766
20805
|
defaultSortByValue,
|
|
@@ -20811,8 +20850,8 @@ var FilterControls = ({
|
|
|
20811
20850
|
setUserHasChangedSortByValue(true);
|
|
20812
20851
|
}
|
|
20813
20852
|
}, [initialSortValue, sortByValue]);
|
|
20814
|
-
return /* @__PURE__ */
|
|
20815
|
-
/* @__PURE__ */
|
|
20853
|
+
return /* @__PURE__ */ jsxs81(Fragment19, { children: [
|
|
20854
|
+
/* @__PURE__ */ jsx120(
|
|
20816
20855
|
FilterButton2,
|
|
20817
20856
|
{
|
|
20818
20857
|
"aria-controls": "search-and-filter-options",
|
|
@@ -20823,7 +20862,7 @@ var FilterControls = ({
|
|
|
20823
20862
|
onClick: () => handleFilterToggle("filters")
|
|
20824
20863
|
}
|
|
20825
20864
|
),
|
|
20826
|
-
/* @__PURE__ */
|
|
20865
|
+
/* @__PURE__ */ jsx120(
|
|
20827
20866
|
FilterButton2,
|
|
20828
20867
|
{
|
|
20829
20868
|
"aria-controls": "search-and-filter-sortBy",
|
|
@@ -20837,7 +20876,7 @@ var FilterControls = ({
|
|
|
20837
20876
|
"data-testid": "sort-by-dropdown"
|
|
20838
20877
|
}
|
|
20839
20878
|
),
|
|
20840
|
-
hideSearchInput ? null : /* @__PURE__ */
|
|
20879
|
+
hideSearchInput ? null : /* @__PURE__ */ jsx120(
|
|
20841
20880
|
InputKeywordSearch,
|
|
20842
20881
|
{
|
|
20843
20882
|
placeholder: "Search...",
|
|
@@ -20938,7 +20977,7 @@ var StatusDeleted = css93`
|
|
|
20938
20977
|
`;
|
|
20939
20978
|
|
|
20940
20979
|
// src/components/Validation/StatusBullet.tsx
|
|
20941
|
-
import { jsx as
|
|
20980
|
+
import { jsx as jsx121 } from "@emotion/react/jsx-runtime";
|
|
20942
20981
|
var StatusBullet = ({
|
|
20943
20982
|
status,
|
|
20944
20983
|
hideText = false,
|
|
@@ -20958,7 +20997,7 @@ var StatusBullet = ({
|
|
|
20958
20997
|
Deleted: StatusDeleted
|
|
20959
20998
|
};
|
|
20960
20999
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
20961
|
-
return /* @__PURE__ */
|
|
21000
|
+
return /* @__PURE__ */ jsx121(
|
|
20962
21001
|
"span",
|
|
20963
21002
|
{
|
|
20964
21003
|
role: "status",
|
|
@@ -20971,7 +21010,7 @@ var StatusBullet = ({
|
|
|
20971
21010
|
};
|
|
20972
21011
|
|
|
20973
21012
|
// src/components/SearchAndFilter/FilterEditor.tsx
|
|
20974
|
-
import { Fragment as Fragment20, jsx as
|
|
21013
|
+
import { Fragment as Fragment20, jsx as jsx122, jsxs as jsxs82 } from "@emotion/react/jsx-runtime";
|
|
20975
21014
|
var readOnlyAttributes = {
|
|
20976
21015
|
isSearchable: false,
|
|
20977
21016
|
menuIsOpen: false,
|
|
@@ -20986,7 +21025,7 @@ var FilterMultiChoiceEditor = ({
|
|
|
20986
21025
|
...props
|
|
20987
21026
|
}) => {
|
|
20988
21027
|
const readOnlyProps = readOnly ? readOnlyAttributes : {};
|
|
20989
|
-
return /* @__PURE__ */
|
|
21028
|
+
return /* @__PURE__ */ jsx122("div", { "data-testid": valueTestId, children: /* @__PURE__ */ jsx122(
|
|
20990
21029
|
InputComboBox,
|
|
20991
21030
|
{
|
|
20992
21031
|
...props,
|
|
@@ -21022,7 +21061,7 @@ var FilterSingleChoiceEditor = ({
|
|
|
21022
21061
|
valueTestId
|
|
21023
21062
|
}) => {
|
|
21024
21063
|
const readOnlyProps = readOnly ? readOnlyAttributes : {};
|
|
21025
|
-
return /* @__PURE__ */
|
|
21064
|
+
return /* @__PURE__ */ jsx122("div", { "data-testid": valueTestId, children: /* @__PURE__ */ jsx122(
|
|
21026
21065
|
InputComboBox,
|
|
21027
21066
|
{
|
|
21028
21067
|
placeholder: "Type to search...",
|
|
@@ -21048,7 +21087,7 @@ var FilterSingleChoiceEditor = ({
|
|
|
21048
21087
|
) });
|
|
21049
21088
|
};
|
|
21050
21089
|
var CustomOptions = ({ label, value }) => {
|
|
21051
|
-
return /* @__PURE__ */
|
|
21090
|
+
return /* @__PURE__ */ jsx122(StatusBullet, { status: label, message: value });
|
|
21052
21091
|
};
|
|
21053
21092
|
var StatusMultiEditor = ({
|
|
21054
21093
|
options,
|
|
@@ -21059,7 +21098,7 @@ var StatusMultiEditor = ({
|
|
|
21059
21098
|
valueTestId
|
|
21060
21099
|
}) => {
|
|
21061
21100
|
const readOnlyProps = readOnly ? readOnlyAttributes : {};
|
|
21062
|
-
return /* @__PURE__ */
|
|
21101
|
+
return /* @__PURE__ */ jsx122("div", { "data-testid": valueTestId, children: /* @__PURE__ */ jsx122(
|
|
21063
21102
|
InputComboBox,
|
|
21064
21103
|
{
|
|
21065
21104
|
options,
|
|
@@ -21092,7 +21131,7 @@ var StatusSingleEditor = ({
|
|
|
21092
21131
|
valueTestId
|
|
21093
21132
|
}) => {
|
|
21094
21133
|
const readOnlyProps = readOnly ? readOnlyAttributes : {};
|
|
21095
|
-
return /* @__PURE__ */
|
|
21134
|
+
return /* @__PURE__ */ jsx122("div", { "data-testid": valueTestId, children: /* @__PURE__ */ jsx122(
|
|
21096
21135
|
InputComboBox,
|
|
21097
21136
|
{
|
|
21098
21137
|
options,
|
|
@@ -21117,7 +21156,7 @@ var StatusSingleEditor = ({
|
|
|
21117
21156
|
};
|
|
21118
21157
|
var TextEditor = ({ onChange, ariaLabel, value, readOnly, valueTestId }) => {
|
|
21119
21158
|
useDebounce3(() => onChange, 500, [value]);
|
|
21120
|
-
return /* @__PURE__ */
|
|
21159
|
+
return /* @__PURE__ */ jsx122(
|
|
21121
21160
|
Input,
|
|
21122
21161
|
{
|
|
21123
21162
|
showLabel: false,
|
|
@@ -21160,9 +21199,9 @@ var NumberRangeEditor = ({
|
|
|
21160
21199
|
setError("");
|
|
21161
21200
|
onChange([minValue, maxValue]);
|
|
21162
21201
|
}, [maxValue, minValue, setError]);
|
|
21163
|
-
return /* @__PURE__ */
|
|
21164
|
-
/* @__PURE__ */
|
|
21165
|
-
/* @__PURE__ */
|
|
21202
|
+
return /* @__PURE__ */ jsxs82(Fragment20, { children: [
|
|
21203
|
+
/* @__PURE__ */ jsxs82("div", { css: twoColumnGrid, "data-testid": valueTestId, children: [
|
|
21204
|
+
/* @__PURE__ */ jsx122(
|
|
21166
21205
|
Input,
|
|
21167
21206
|
{
|
|
21168
21207
|
label: `${ariaLabel}-min`,
|
|
@@ -21177,7 +21216,7 @@ var NumberRangeEditor = ({
|
|
|
21177
21216
|
readOnly
|
|
21178
21217
|
}
|
|
21179
21218
|
),
|
|
21180
|
-
/* @__PURE__ */
|
|
21219
|
+
/* @__PURE__ */ jsx122(
|
|
21181
21220
|
Input,
|
|
21182
21221
|
{
|
|
21183
21222
|
type: "number",
|
|
@@ -21193,7 +21232,7 @@ var NumberRangeEditor = ({
|
|
|
21193
21232
|
}
|
|
21194
21233
|
)
|
|
21195
21234
|
] }),
|
|
21196
|
-
/* @__PURE__ */
|
|
21235
|
+
/* @__PURE__ */ jsx122(ErrorContainer, { errorMessage: error })
|
|
21197
21236
|
] });
|
|
21198
21237
|
};
|
|
21199
21238
|
var NumberEditor = ({
|
|
@@ -21204,7 +21243,7 @@ var NumberEditor = ({
|
|
|
21204
21243
|
readOnly,
|
|
21205
21244
|
valueTestId
|
|
21206
21245
|
}) => {
|
|
21207
|
-
return /* @__PURE__ */
|
|
21246
|
+
return /* @__PURE__ */ jsx122(
|
|
21208
21247
|
Input,
|
|
21209
21248
|
{
|
|
21210
21249
|
label: ariaLabel,
|
|
@@ -21227,7 +21266,7 @@ var DateEditor = ({
|
|
|
21227
21266
|
readOnly,
|
|
21228
21267
|
valueTestId
|
|
21229
21268
|
}) => {
|
|
21230
|
-
return /* @__PURE__ */
|
|
21269
|
+
return /* @__PURE__ */ jsx122(
|
|
21231
21270
|
Input,
|
|
21232
21271
|
{
|
|
21233
21272
|
type: "date",
|
|
@@ -21283,9 +21322,9 @@ var DateRangeEditor = ({
|
|
|
21283
21322
|
setError("");
|
|
21284
21323
|
onChange([minDateValue, maxDateValue]);
|
|
21285
21324
|
}, [minDateValue, maxDateValue, setError]);
|
|
21286
|
-
return /* @__PURE__ */
|
|
21287
|
-
/* @__PURE__ */
|
|
21288
|
-
/* @__PURE__ */
|
|
21325
|
+
return /* @__PURE__ */ jsxs82(Fragment20, { children: [
|
|
21326
|
+
/* @__PURE__ */ jsxs82("div", { css: twoColumnGrid, "data-testid": valueTestId, children: [
|
|
21327
|
+
/* @__PURE__ */ jsx122(
|
|
21289
21328
|
Input,
|
|
21290
21329
|
{
|
|
21291
21330
|
label: `${ariaLabel}-min-date`,
|
|
@@ -21298,7 +21337,7 @@ var DateRangeEditor = ({
|
|
|
21298
21337
|
readOnly
|
|
21299
21338
|
}
|
|
21300
21339
|
),
|
|
21301
|
-
/* @__PURE__ */
|
|
21340
|
+
/* @__PURE__ */ jsx122(
|
|
21302
21341
|
Input,
|
|
21303
21342
|
{
|
|
21304
21343
|
label: `${ariaLabel}-max-date`,
|
|
@@ -21312,7 +21351,7 @@ var DateRangeEditor = ({
|
|
|
21312
21351
|
}
|
|
21313
21352
|
)
|
|
21314
21353
|
] }),
|
|
21315
|
-
/* @__PURE__ */
|
|
21354
|
+
/* @__PURE__ */ jsx122(ErrorContainer, { errorMessage: error })
|
|
21316
21355
|
] });
|
|
21317
21356
|
};
|
|
21318
21357
|
var FilterEditorRenderer = ({ editorType, ...props }) => {
|
|
@@ -21323,7 +21362,7 @@ var FilterEditorRenderer = ({ editorType, ...props }) => {
|
|
|
21323
21362
|
if (editorType === "empty") {
|
|
21324
21363
|
return null;
|
|
21325
21364
|
}
|
|
21326
|
-
return /* @__PURE__ */
|
|
21365
|
+
return /* @__PURE__ */ jsx122(Editor, { ...props, disabled: props.isDisabled });
|
|
21327
21366
|
};
|
|
21328
21367
|
var filterMapper = {
|
|
21329
21368
|
multiChoice: FilterMultiChoiceEditor,
|
|
@@ -21338,14 +21377,14 @@ var filterMapper = {
|
|
|
21338
21377
|
empty: null
|
|
21339
21378
|
};
|
|
21340
21379
|
var ErrorContainer = ({ errorMessage }) => {
|
|
21341
|
-
return /* @__PURE__ */
|
|
21380
|
+
return /* @__PURE__ */ jsx122(
|
|
21342
21381
|
"div",
|
|
21343
21382
|
{
|
|
21344
21383
|
css: {
|
|
21345
21384
|
gridColumn: "span 6",
|
|
21346
21385
|
order: 6
|
|
21347
21386
|
},
|
|
21348
|
-
children: /* @__PURE__ */
|
|
21387
|
+
children: /* @__PURE__ */ jsx122(FieldMessage, { errorMessage })
|
|
21349
21388
|
}
|
|
21350
21389
|
);
|
|
21351
21390
|
};
|
|
@@ -21357,14 +21396,14 @@ var twoColumnGrid = {
|
|
|
21357
21396
|
|
|
21358
21397
|
// src/components/SearchAndFilter/FilterMenu.tsx
|
|
21359
21398
|
import React24, { useEffect as useEffect20 } from "react";
|
|
21360
|
-
import { jsx as
|
|
21399
|
+
import { jsx as jsx123, jsxs as jsxs83 } from "@emotion/react/jsx-runtime";
|
|
21361
21400
|
var SearchAndFilterOptionsContainer2 = ({
|
|
21362
21401
|
buttonRow,
|
|
21363
21402
|
children
|
|
21364
21403
|
}) => {
|
|
21365
|
-
return /* @__PURE__ */
|
|
21366
|
-
/* @__PURE__ */
|
|
21367
|
-
buttonRow ? /* @__PURE__ */
|
|
21404
|
+
return /* @__PURE__ */ jsxs83("div", { css: SearchAndFilterOptionsContainer, "data-testid": "search-and-filter-options", children: [
|
|
21405
|
+
/* @__PURE__ */ jsx123("div", { css: SearchAndFilterOptionsInnerContainer, children }),
|
|
21406
|
+
buttonRow ? /* @__PURE__ */ jsx123(
|
|
21368
21407
|
HorizontalRhythm,
|
|
21369
21408
|
{
|
|
21370
21409
|
css: SearchAndFilterButtonGroup,
|
|
@@ -21385,16 +21424,16 @@ var FilterMenu = ({ id, filterTitle = "Show results", menuControls, children })
|
|
|
21385
21424
|
(_a = innerMenuRef.current) == null ? void 0 : _a.focus();
|
|
21386
21425
|
}
|
|
21387
21426
|
}, [filterVisibility]);
|
|
21388
|
-
return /* @__PURE__ */
|
|
21389
|
-
/* @__PURE__ */
|
|
21390
|
-
/* @__PURE__ */
|
|
21427
|
+
return /* @__PURE__ */ jsx123(VerticalRhythm, { gap: "sm", "aria-haspopup": "true", id, children: filterVisibility ? /* @__PURE__ */ jsxs83(SearchAndFilterOptionsContainer2, { buttonRow: menuControls, children: [
|
|
21428
|
+
/* @__PURE__ */ jsx123("span", { css: Title, ref: innerMenuRef, tabIndex: 0, children: filterTitle }),
|
|
21429
|
+
/* @__PURE__ */ jsx123(
|
|
21391
21430
|
"button",
|
|
21392
21431
|
{
|
|
21393
21432
|
type: "button",
|
|
21394
21433
|
"aria-label": "close filters",
|
|
21395
21434
|
css: [CloseBtn],
|
|
21396
21435
|
onClick: () => setFilterVisibility(void 0),
|
|
21397
|
-
children: /* @__PURE__ */
|
|
21436
|
+
children: /* @__PURE__ */ jsx123(Icon, { icon: "close", iconColor: "currentColor", size: "1.1rem" })
|
|
21398
21437
|
}
|
|
21399
21438
|
),
|
|
21400
21439
|
children
|
|
@@ -21402,7 +21441,7 @@ var FilterMenu = ({ id, filterTitle = "Show results", menuControls, children })
|
|
|
21402
21441
|
};
|
|
21403
21442
|
|
|
21404
21443
|
// src/components/SearchAndFilter/FilterItem.tsx
|
|
21405
|
-
import { Fragment as Fragment21, jsx as
|
|
21444
|
+
import { Fragment as Fragment21, jsx as jsx124, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
|
|
21406
21445
|
var FilterItem = ({
|
|
21407
21446
|
index,
|
|
21408
21447
|
paramOptions,
|
|
@@ -21450,10 +21489,10 @@ var FilterItem = ({
|
|
|
21450
21489
|
menuIsOpen: false,
|
|
21451
21490
|
isClearable: false
|
|
21452
21491
|
} : {};
|
|
21453
|
-
return /* @__PURE__ */
|
|
21454
|
-
/* @__PURE__ */
|
|
21455
|
-
/* @__PURE__ */
|
|
21456
|
-
/* @__PURE__ */
|
|
21492
|
+
return /* @__PURE__ */ jsxs84("div", { css: ConditionalFilterRow, "data-testid": "filter-item", children: [
|
|
21493
|
+
/* @__PURE__ */ jsx124("span", { children: index === 0 ? "Where" : "and" }),
|
|
21494
|
+
/* @__PURE__ */ jsxs84("div", { css: ConditionalInputRow, children: [
|
|
21495
|
+
/* @__PURE__ */ jsx124(
|
|
21457
21496
|
InputComboBox,
|
|
21458
21497
|
{
|
|
21459
21498
|
"aria-label": label,
|
|
@@ -21479,7 +21518,7 @@ var FilterItem = ({
|
|
|
21479
21518
|
id: "filter-field"
|
|
21480
21519
|
}
|
|
21481
21520
|
),
|
|
21482
|
-
/* @__PURE__ */
|
|
21521
|
+
/* @__PURE__ */ jsx124(
|
|
21483
21522
|
InputComboBox,
|
|
21484
21523
|
{
|
|
21485
21524
|
"aria-label": operatorLabel,
|
|
@@ -21502,7 +21541,7 @@ var FilterItem = ({
|
|
|
21502
21541
|
id: "filter-operator"
|
|
21503
21542
|
}
|
|
21504
21543
|
),
|
|
21505
|
-
/* @__PURE__ */
|
|
21544
|
+
/* @__PURE__ */ jsx124(
|
|
21506
21545
|
FilterEditorRenderer,
|
|
21507
21546
|
{
|
|
21508
21547
|
"aria-label": metaDataLabel,
|
|
@@ -21515,7 +21554,7 @@ var FilterItem = ({
|
|
|
21515
21554
|
valueTestId: "filter-value"
|
|
21516
21555
|
}
|
|
21517
21556
|
),
|
|
21518
|
-
readOnly ? null : /* @__PURE__ */
|
|
21557
|
+
readOnly ? null : /* @__PURE__ */ jsx124(
|
|
21519
21558
|
"button",
|
|
21520
21559
|
{
|
|
21521
21560
|
type: "button",
|
|
@@ -21523,7 +21562,7 @@ var FilterItem = ({
|
|
|
21523
21562
|
"aria-label": "delete filter",
|
|
21524
21563
|
css: IconBtn,
|
|
21525
21564
|
"data-testid": "delete-filter",
|
|
21526
|
-
children: /* @__PURE__ */
|
|
21565
|
+
children: /* @__PURE__ */ jsx124(Icon, { icon: "trash", iconColor: "red", size: "1rem" })
|
|
21527
21566
|
}
|
|
21528
21567
|
)
|
|
21529
21568
|
] })
|
|
@@ -21557,12 +21596,12 @@ var FilterItems = ({
|
|
|
21557
21596
|
}
|
|
21558
21597
|
setFilters(next);
|
|
21559
21598
|
};
|
|
21560
|
-
return /* @__PURE__ */
|
|
21599
|
+
return /* @__PURE__ */ jsx124(
|
|
21561
21600
|
FilterMenu,
|
|
21562
21601
|
{
|
|
21563
21602
|
id: "search-and-filter-options",
|
|
21564
|
-
menuControls: /* @__PURE__ */
|
|
21565
|
-
/* @__PURE__ */
|
|
21603
|
+
menuControls: /* @__PURE__ */ jsxs84(Fragment21, { children: [
|
|
21604
|
+
/* @__PURE__ */ jsxs84(
|
|
21566
21605
|
"button",
|
|
21567
21606
|
{
|
|
21568
21607
|
type: "button",
|
|
@@ -21570,12 +21609,12 @@ var FilterItems = ({
|
|
|
21570
21609
|
onClick: handleAddFilter,
|
|
21571
21610
|
"data-testid": "add-filter",
|
|
21572
21611
|
children: [
|
|
21573
|
-
/* @__PURE__ */
|
|
21612
|
+
/* @__PURE__ */ jsx124(Icon, { icon: "math-plus", iconColor: "currentColor", size: "1rem" }),
|
|
21574
21613
|
addButtonText
|
|
21575
21614
|
]
|
|
21576
21615
|
}
|
|
21577
21616
|
),
|
|
21578
|
-
(filters == null ? void 0 : filters.length) ? /* @__PURE__ */
|
|
21617
|
+
(filters == null ? void 0 : filters.length) ? /* @__PURE__ */ jsx124(
|
|
21579
21618
|
"button",
|
|
21580
21619
|
{
|
|
21581
21620
|
type: "button",
|
|
@@ -21597,7 +21636,7 @@ var FilterItems = ({
|
|
|
21597
21636
|
})) == null ? void 0 : _a.options) != null ? _b : [];
|
|
21598
21637
|
const possibleValueOptions = (_d = (_c = availableTypeOptions == null ? void 0 : availableTypeOptions.find((op) => op.value === item.field)) == null ? void 0 : _c.valueOptions) != null ? _d : [];
|
|
21599
21638
|
const possibleOperators = (_f = (_e = availableTypeOptions == null ? void 0 : availableTypeOptions.find((op) => op.value === item.field)) == null ? void 0 : _e.operatorOptions) != null ? _f : [];
|
|
21600
|
-
return /* @__PURE__ */
|
|
21639
|
+
return /* @__PURE__ */ jsx124(
|
|
21601
21640
|
FilterItem,
|
|
21602
21641
|
{
|
|
21603
21642
|
index: i,
|
|
@@ -21742,7 +21781,7 @@ var segmentedControlLabelContentStyles = css94`
|
|
|
21742
21781
|
var segmentedControlLabelTextStyles = css94``;
|
|
21743
21782
|
|
|
21744
21783
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
21745
|
-
import { jsx as
|
|
21784
|
+
import { jsx as jsx125, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
|
|
21746
21785
|
var SegmentedControl = ({
|
|
21747
21786
|
name,
|
|
21748
21787
|
options,
|
|
@@ -21773,7 +21812,7 @@ var SegmentedControl = ({
|
|
|
21773
21812
|
const isIconOnly = useMemo8(() => {
|
|
21774
21813
|
return options.every((option) => option && option.icon && !option.label);
|
|
21775
21814
|
}, [options]);
|
|
21776
|
-
return /* @__PURE__ */
|
|
21815
|
+
return /* @__PURE__ */ jsx125(
|
|
21777
21816
|
"div",
|
|
21778
21817
|
{
|
|
21779
21818
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
@@ -21785,7 +21824,7 @@ var SegmentedControl = ({
|
|
|
21785
21824
|
}
|
|
21786
21825
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
21787
21826
|
const isDisabled = disabled2 || option.disabled;
|
|
21788
|
-
return /* @__PURE__ */
|
|
21827
|
+
return /* @__PURE__ */ jsx125(Tooltip, { title: (_a = option.tooltip) != null ? _a : "", children: /* @__PURE__ */ jsx125("div", { css: segmentedControlItemStyles, "data-testid": "container-segmented-control", children: /* @__PURE__ */ jsxs85(
|
|
21789
21828
|
"label",
|
|
21790
21829
|
{
|
|
21791
21830
|
css: [
|
|
@@ -21794,7 +21833,7 @@ var SegmentedControl = ({
|
|
|
21794
21833
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
21795
21834
|
],
|
|
21796
21835
|
children: [
|
|
21797
|
-
/* @__PURE__ */
|
|
21836
|
+
/* @__PURE__ */ jsx125(
|
|
21798
21837
|
"input",
|
|
21799
21838
|
{
|
|
21800
21839
|
css: segmentedControlInputStyles,
|
|
@@ -21806,10 +21845,10 @@ var SegmentedControl = ({
|
|
|
21806
21845
|
disabled: isDisabled
|
|
21807
21846
|
}
|
|
21808
21847
|
),
|
|
21809
|
-
option.value !== value || noCheckmark ? null : /* @__PURE__ */
|
|
21810
|
-
/* @__PURE__ */
|
|
21811
|
-
!option.icon ? null : /* @__PURE__ */
|
|
21812
|
-
!text ? null : /* @__PURE__ */
|
|
21848
|
+
option.value !== value || noCheckmark ? null : /* @__PURE__ */ jsx125(CgCheck4, { css: segmentedControlLabelCheckStyles, "aria-label": "Selected", size: "1.5em" }),
|
|
21849
|
+
/* @__PURE__ */ jsxs85("span", { css: segmentedControlLabelContentStyles, children: [
|
|
21850
|
+
!option.icon ? null : /* @__PURE__ */ jsx125(Icon, { icon: option.icon, size: "1.5em", iconColor: "currentColor" }),
|
|
21851
|
+
!text ? null : /* @__PURE__ */ jsx125("span", { css: segmentedControlLabelTextStyles, children: text })
|
|
21813
21852
|
] })
|
|
21814
21853
|
]
|
|
21815
21854
|
}
|
|
@@ -21820,7 +21859,7 @@ var SegmentedControl = ({
|
|
|
21820
21859
|
};
|
|
21821
21860
|
|
|
21822
21861
|
// src/components/SearchAndFilter/SortItems.tsx
|
|
21823
|
-
import { jsx as
|
|
21862
|
+
import { jsx as jsx126, jsxs as jsxs86 } from "@emotion/react/jsx-runtime";
|
|
21824
21863
|
var SortItems = () => {
|
|
21825
21864
|
var _a, _b;
|
|
21826
21865
|
const { sortOptions, setSortBy, sortByValue } = useSearchAndFilter();
|
|
@@ -21831,8 +21870,8 @@ var SortItems = () => {
|
|
|
21831
21870
|
var _a2;
|
|
21832
21871
|
return (_a2 = item.options) == null ? void 0 : _a2.find((option) => option.value === sortField);
|
|
21833
21872
|
})) == null ? void 0 : _a.options) == null ? void 0 : _b.find((nestedOption) => nestedOption.value === sortField);
|
|
21834
|
-
return /* @__PURE__ */
|
|
21835
|
-
/* @__PURE__ */
|
|
21873
|
+
return /* @__PURE__ */ jsx126(FilterMenu, { id: "search-and-filter-options", filterTitle: "Sort by", children: /* @__PURE__ */ jsxs86("div", { css: SortFilterInputRow, children: [
|
|
21874
|
+
/* @__PURE__ */ jsx126(
|
|
21836
21875
|
InputComboBox,
|
|
21837
21876
|
{
|
|
21838
21877
|
options: sortOptions,
|
|
@@ -21851,7 +21890,7 @@ var SortItems = () => {
|
|
|
21851
21890
|
value: currentSelectedOption
|
|
21852
21891
|
}
|
|
21853
21892
|
),
|
|
21854
|
-
/* @__PURE__ */
|
|
21893
|
+
/* @__PURE__ */ jsx126(
|
|
21855
21894
|
SegmentedControl,
|
|
21856
21895
|
{
|
|
21857
21896
|
noCheckmark: true,
|
|
@@ -21868,18 +21907,18 @@ var SortItems = () => {
|
|
|
21868
21907
|
};
|
|
21869
21908
|
|
|
21870
21909
|
// src/components/SearchAndFilter/FilterModeView.tsx
|
|
21871
|
-
import { jsx as
|
|
21910
|
+
import { jsx as jsx127 } from "@emotion/react/jsx-runtime";
|
|
21872
21911
|
var FilterModeView = () => {
|
|
21873
21912
|
const { filterVisibility } = useSearchAndFilter();
|
|
21874
21913
|
const modeView = {
|
|
21875
|
-
filters: /* @__PURE__ */
|
|
21876
|
-
sort: /* @__PURE__ */
|
|
21914
|
+
filters: /* @__PURE__ */ jsx127(FilterItems, {}),
|
|
21915
|
+
sort: /* @__PURE__ */ jsx127(SortItems, {})
|
|
21877
21916
|
};
|
|
21878
21917
|
return filterVisibility ? modeView[filterVisibility] : null;
|
|
21879
21918
|
};
|
|
21880
21919
|
|
|
21881
21920
|
// src/components/SearchAndFilter/SearchAndFilterResultContainer.tsx
|
|
21882
|
-
import { Fragment as Fragment22, jsx as
|
|
21921
|
+
import { Fragment as Fragment22, jsx as jsx128, jsxs as jsxs87 } from "@emotion/react/jsx-runtime";
|
|
21883
21922
|
var SearchAndFilterResultContainer = ({
|
|
21884
21923
|
buttonText,
|
|
21885
21924
|
clearButtonLabel = "clear",
|
|
@@ -21913,24 +21952,24 @@ var SearchAndFilterResultContainer = ({
|
|
|
21913
21952
|
if (totalResults && totalResults > 0) {
|
|
21914
21953
|
return null;
|
|
21915
21954
|
}
|
|
21916
|
-
return /* @__PURE__ */
|
|
21917
|
-
/* @__PURE__ */
|
|
21918
|
-
/* @__PURE__ */
|
|
21955
|
+
return /* @__PURE__ */ jsxs87(Fragment22, { children: [
|
|
21956
|
+
/* @__PURE__ */ jsxs87(HorizontalRhythm, { children: [
|
|
21957
|
+
/* @__PURE__ */ jsxs87("span", { children: [
|
|
21919
21958
|
totalResults,
|
|
21920
21959
|
" results ",
|
|
21921
21960
|
searchTerm ? `for "${searchTerm}"` : null
|
|
21922
21961
|
] }),
|
|
21923
|
-
!searchTerm ? null : /* @__PURE__ */
|
|
21962
|
+
!searchTerm ? null : /* @__PURE__ */ jsx128(Button, { buttonType: "ghostDestructive", size: "zero", onClick: () => setSearchTerm(""), children: clearButtonLabel })
|
|
21924
21963
|
] }),
|
|
21925
|
-
totalResults === 0 ? /* @__PURE__ */
|
|
21926
|
-
calloutText ? /* @__PURE__ */
|
|
21927
|
-
/* @__PURE__ */
|
|
21964
|
+
totalResults === 0 ? /* @__PURE__ */ jsxs87(Callout, { title: calloutTitle2 != null ? calloutTitle2 : automateCalloutTitle(), type: "note", children: [
|
|
21965
|
+
calloutText ? /* @__PURE__ */ jsx128(Paragraph, { children: calloutText }) : null,
|
|
21966
|
+
/* @__PURE__ */ jsx128(Button, { buttonType: "tertiaryOutline", size: "xs", onClick: onHandleClear != null ? onHandleClear : handleResetFilters, children: buttonText != null ? buttonText : "Clear search" })
|
|
21928
21967
|
] }) : null
|
|
21929
21968
|
] });
|
|
21930
21969
|
};
|
|
21931
21970
|
|
|
21932
21971
|
// src/components/SearchAndFilter/SearchAndFilter.tsx
|
|
21933
|
-
import { jsx as
|
|
21972
|
+
import { jsx as jsx129, jsxs as jsxs88 } from "@emotion/react/jsx-runtime";
|
|
21934
21973
|
var SearchAndFilter = ({
|
|
21935
21974
|
filters,
|
|
21936
21975
|
filterOptions,
|
|
@@ -21939,14 +21978,14 @@ var SearchAndFilter = ({
|
|
|
21939
21978
|
defaultSortByValue,
|
|
21940
21979
|
filterControls,
|
|
21941
21980
|
viewSwitchControls,
|
|
21942
|
-
resultsContainerView = /* @__PURE__ */
|
|
21943
|
-
children = /* @__PURE__ */
|
|
21981
|
+
resultsContainerView = /* @__PURE__ */ jsx129(SearchAndFilterResultContainer, {}),
|
|
21982
|
+
children = /* @__PURE__ */ jsx129(FilterModeView, {}),
|
|
21944
21983
|
onChange,
|
|
21945
21984
|
onSearchChange,
|
|
21946
21985
|
onSortChange,
|
|
21947
21986
|
totalResults
|
|
21948
21987
|
}) => {
|
|
21949
|
-
return /* @__PURE__ */
|
|
21988
|
+
return /* @__PURE__ */ jsx129(
|
|
21950
21989
|
SearchAndFilterProvider,
|
|
21951
21990
|
{
|
|
21952
21991
|
filters,
|
|
@@ -21958,15 +21997,15 @@ var SearchAndFilter = ({
|
|
|
21958
21997
|
onSearchChange,
|
|
21959
21998
|
onSortChange,
|
|
21960
21999
|
totalResults,
|
|
21961
|
-
children: /* @__PURE__ */
|
|
21962
|
-
/* @__PURE__ */
|
|
21963
|
-
/* @__PURE__ */
|
|
22000
|
+
children: /* @__PURE__ */ jsxs88(VerticalRhythm, { css: SearchAndFilterContainer, "data-testid": "search-and-filter", children: [
|
|
22001
|
+
/* @__PURE__ */ jsxs88("div", { css: SearchAndFilterOutterControlWrapper(viewSwitchControls ? "1fr auto" : "1fr"), children: [
|
|
22002
|
+
/* @__PURE__ */ jsx129(
|
|
21964
22003
|
"div",
|
|
21965
22004
|
{
|
|
21966
22005
|
css: SearchAndFilterControlsWrapper(
|
|
21967
22006
|
viewSwitchControls ? "auto auto 1fr 0.5fr" : "auto auto 1fr"
|
|
21968
22007
|
),
|
|
21969
|
-
children: !filterControls ? /* @__PURE__ */
|
|
22008
|
+
children: !filterControls ? /* @__PURE__ */ jsx129(FilterControls, { hideSearchInput: !onSearchChange, defaultSortByValue }) : filterControls
|
|
21970
22009
|
}
|
|
21971
22010
|
),
|
|
21972
22011
|
viewSwitchControls
|
|
@@ -21981,7 +22020,7 @@ var SearchAndFilter = ({
|
|
|
21981
22020
|
// src/components/SearchAndFilter/SearchOnlyFilter.tsx
|
|
21982
22021
|
import { createContext as createContext7, useState as useState19 } from "react";
|
|
21983
22022
|
import { useDebounce as useDebounce4 } from "react-use";
|
|
21984
|
-
import { jsx as
|
|
22023
|
+
import { jsx as jsx130 } from "@emotion/react/jsx-runtime";
|
|
21985
22024
|
var SearchOnlyContext = createContext7({
|
|
21986
22025
|
searchTerm: "",
|
|
21987
22026
|
setSearchTerm: () => {
|
|
@@ -21998,14 +22037,14 @@ var SearchOnlyFilter = ({ onSearchChange, maxWidth }) => {
|
|
|
21998
22037
|
300,
|
|
21999
22038
|
[localeSearchTerm]
|
|
22000
22039
|
);
|
|
22001
|
-
return /* @__PURE__ */
|
|
22040
|
+
return /* @__PURE__ */ jsx130(
|
|
22002
22041
|
SearchOnlyContext.Provider,
|
|
22003
22042
|
{
|
|
22004
22043
|
value: {
|
|
22005
22044
|
searchTerm,
|
|
22006
22045
|
setSearchTerm: setLocaleSearchTerm
|
|
22007
22046
|
},
|
|
22008
|
-
children: /* @__PURE__ */
|
|
22047
|
+
children: /* @__PURE__ */ jsx130("div", { css: { maxWidth: maxWidth != null ? maxWidth : "712px" }, children: /* @__PURE__ */ jsx130(
|
|
22009
22048
|
InputKeywordSearch,
|
|
22010
22049
|
{
|
|
22011
22050
|
placeholder: "Search...",
|
|
@@ -22031,7 +22070,7 @@ var skeletonStyles = css96`
|
|
|
22031
22070
|
`;
|
|
22032
22071
|
|
|
22033
22072
|
// src/components/Skeleton/Skeleton.tsx
|
|
22034
|
-
import { jsx as
|
|
22073
|
+
import { jsx as jsx131 } from "@emotion/react/jsx-runtime";
|
|
22035
22074
|
var Skeleton = ({
|
|
22036
22075
|
width = "100%",
|
|
22037
22076
|
height = "1.25rem",
|
|
@@ -22039,7 +22078,7 @@ var Skeleton = ({
|
|
|
22039
22078
|
circle = false,
|
|
22040
22079
|
children,
|
|
22041
22080
|
...otherProps
|
|
22042
|
-
}) => /* @__PURE__ */
|
|
22081
|
+
}) => /* @__PURE__ */ jsx131(
|
|
22043
22082
|
"div",
|
|
22044
22083
|
{
|
|
22045
22084
|
css: [
|
|
@@ -22146,19 +22185,19 @@ var SwitchText = css97`
|
|
|
22146
22185
|
`;
|
|
22147
22186
|
|
|
22148
22187
|
// src/components/Switch/Switch.tsx
|
|
22149
|
-
import { Fragment as Fragment23, jsx as
|
|
22188
|
+
import { Fragment as Fragment23, jsx as jsx132, jsxs as jsxs89 } from "@emotion/react/jsx-runtime";
|
|
22150
22189
|
var Switch = React26.forwardRef(
|
|
22151
22190
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
22152
22191
|
let additionalText = infoText;
|
|
22153
22192
|
if (infoText && toggleText) {
|
|
22154
22193
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
22155
22194
|
}
|
|
22156
|
-
return /* @__PURE__ */
|
|
22157
|
-
/* @__PURE__ */
|
|
22158
|
-
/* @__PURE__ */
|
|
22159
|
-
/* @__PURE__ */
|
|
22195
|
+
return /* @__PURE__ */ jsxs89(Fragment23, { children: [
|
|
22196
|
+
/* @__PURE__ */ jsxs89("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
22197
|
+
/* @__PURE__ */ jsx132("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
22198
|
+
/* @__PURE__ */ jsx132("span", { css: SwitchInputLabel, children: label })
|
|
22160
22199
|
] }),
|
|
22161
|
-
additionalText ? /* @__PURE__ */
|
|
22200
|
+
additionalText ? /* @__PURE__ */ jsx132("p", { css: SwitchText, children: additionalText }) : null,
|
|
22162
22201
|
children
|
|
22163
22202
|
] });
|
|
22164
22203
|
}
|
|
@@ -22195,40 +22234,40 @@ var tableCellHead = css98`
|
|
|
22195
22234
|
`;
|
|
22196
22235
|
|
|
22197
22236
|
// src/components/Table/Table.tsx
|
|
22198
|
-
import { jsx as
|
|
22237
|
+
import { jsx as jsx133 } from "@emotion/react/jsx-runtime";
|
|
22199
22238
|
var Table = React27.forwardRef(
|
|
22200
22239
|
({ children, cellPadding, ...otherProps }, ref) => {
|
|
22201
|
-
return /* @__PURE__ */
|
|
22240
|
+
return /* @__PURE__ */ jsx133("table", { ref, css: table({ cellPadding }), ...otherProps, children });
|
|
22202
22241
|
}
|
|
22203
22242
|
);
|
|
22204
22243
|
var TableHead = React27.forwardRef(
|
|
22205
22244
|
({ children, ...otherProps }, ref) => {
|
|
22206
|
-
return /* @__PURE__ */
|
|
22245
|
+
return /* @__PURE__ */ jsx133("thead", { ref, css: tableHead, ...otherProps, children });
|
|
22207
22246
|
}
|
|
22208
22247
|
);
|
|
22209
22248
|
var TableBody = React27.forwardRef(
|
|
22210
22249
|
({ children, ...otherProps }, ref) => {
|
|
22211
|
-
return /* @__PURE__ */
|
|
22250
|
+
return /* @__PURE__ */ jsx133("tbody", { ref, ...otherProps, children });
|
|
22212
22251
|
}
|
|
22213
22252
|
);
|
|
22214
22253
|
var TableFoot = React27.forwardRef(
|
|
22215
22254
|
({ children, ...otherProps }, ref) => {
|
|
22216
|
-
return /* @__PURE__ */
|
|
22255
|
+
return /* @__PURE__ */ jsx133("tfoot", { ref, ...otherProps, children });
|
|
22217
22256
|
}
|
|
22218
22257
|
);
|
|
22219
22258
|
var TableRow = React27.forwardRef(
|
|
22220
22259
|
({ children, ...otherProps }, ref) => {
|
|
22221
|
-
return /* @__PURE__ */
|
|
22260
|
+
return /* @__PURE__ */ jsx133("tr", { ref, css: tableRow, ...otherProps, children });
|
|
22222
22261
|
}
|
|
22223
22262
|
);
|
|
22224
22263
|
var TableCellHead = React27.forwardRef(
|
|
22225
22264
|
({ children, ...otherProps }, ref) => {
|
|
22226
|
-
return /* @__PURE__ */
|
|
22265
|
+
return /* @__PURE__ */ jsx133("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
22227
22266
|
}
|
|
22228
22267
|
);
|
|
22229
22268
|
var TableCellData = React27.forwardRef(
|
|
22230
22269
|
({ children, ...otherProps }, ref) => {
|
|
22231
|
-
return /* @__PURE__ */
|
|
22270
|
+
return /* @__PURE__ */ jsx133("td", { ref, ...otherProps, children });
|
|
22232
22271
|
}
|
|
22233
22272
|
);
|
|
22234
22273
|
|
|
@@ -22268,7 +22307,7 @@ var tabButtonGroupStyles = css99`
|
|
|
22268
22307
|
`;
|
|
22269
22308
|
|
|
22270
22309
|
// src/components/Tabs/Tabs.tsx
|
|
22271
|
-
import { jsx as
|
|
22310
|
+
import { jsx as jsx134 } from "@emotion/react/jsx-runtime";
|
|
22272
22311
|
var useCurrentTab = () => {
|
|
22273
22312
|
const context = useAriakitTabStore();
|
|
22274
22313
|
if (!context) {
|
|
@@ -22306,23 +22345,23 @@ var Tabs = ({
|
|
|
22306
22345
|
tab.setSelectedId(selected);
|
|
22307
22346
|
}
|
|
22308
22347
|
}, [selected, tab]);
|
|
22309
|
-
return /* @__PURE__ */
|
|
22348
|
+
return /* @__PURE__ */ jsx134(AriakitTabProvider, { store: tab, setSelectedId: onTabSelect, children });
|
|
22310
22349
|
};
|
|
22311
22350
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
22312
|
-
return /* @__PURE__ */
|
|
22351
|
+
return /* @__PURE__ */ jsx134(AriakitTabList, { ...props, css: tabButtonGroupStyles, children });
|
|
22313
22352
|
};
|
|
22314
22353
|
var TabButton = ({
|
|
22315
22354
|
children,
|
|
22316
22355
|
id,
|
|
22317
22356
|
...props
|
|
22318
22357
|
}) => {
|
|
22319
|
-
return /* @__PURE__ */
|
|
22358
|
+
return /* @__PURE__ */ jsx134(AriakitTab, { type: "button", id, ...props, css: tabButtonStyles, children });
|
|
22320
22359
|
};
|
|
22321
22360
|
var TabContent = ({
|
|
22322
22361
|
children,
|
|
22323
22362
|
...props
|
|
22324
22363
|
}) => {
|
|
22325
|
-
return /* @__PURE__ */
|
|
22364
|
+
return /* @__PURE__ */ jsx134(AriakitTabPanel, { ...props, children });
|
|
22326
22365
|
};
|
|
22327
22366
|
|
|
22328
22367
|
// src/components/Toast/Toast.tsx
|
|
@@ -22553,9 +22592,9 @@ var toastContainerStyles = css100`
|
|
|
22553
22592
|
`;
|
|
22554
22593
|
|
|
22555
22594
|
// src/components/Toast/Toast.tsx
|
|
22556
|
-
import { jsx as
|
|
22595
|
+
import { jsx as jsx135 } from "@emotion/react/jsx-runtime";
|
|
22557
22596
|
var ToastContainer = ({ limit = 4 }) => {
|
|
22558
|
-
return /* @__PURE__ */
|
|
22597
|
+
return /* @__PURE__ */ jsx135(
|
|
22559
22598
|
ToastifyContainer,
|
|
22560
22599
|
{
|
|
22561
22600
|
css: toastContainerStyles,
|
|
@@ -22654,6 +22693,7 @@ export {
|
|
|
22654
22693
|
MenuItemInner,
|
|
22655
22694
|
MenuItemSeparator,
|
|
22656
22695
|
Modal,
|
|
22696
|
+
ModalDialog,
|
|
22657
22697
|
MultilineChip,
|
|
22658
22698
|
NUMBER_OPERATORS,
|
|
22659
22699
|
PageHeaderSection,
|