@northlight/ui 2.34.1 → 2.34.2
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/es/northlight.js +378 -378
- package/dist/es/northlight.js.map +1 -1
- package/dist/umd/northlight.cjs +577 -577
- package/dist/umd/northlight.cjs.map +1 -1
- package/dist/umd/northlight.min.cjs +1 -1
- package/dist/umd/northlight.min.cjs.map +1 -1
- package/package.json +2 -2
package/dist/es/northlight.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Accordion as Accordion$1, AccordionButton as AccordionButton$1, AccordionPanel as AccordionPanel$1, AccordionItem as AccordionItem$1, useInterval, useMediaQuery, keyframes, useToken as useToken$1, extendTheme, Box, useMultiStyleConfig, chakra, Alert as Alert$2, AspectRatio as AspectRatio$1, forwardRef, useStyleConfig, Icon as Icon$2, Heading, Text, FormLabel as FormLabel$1, VisuallyHidden, HStack, Badge as Badge$2, Spinner as Spinner$2, Button as Button$2, Checkbox as Checkbox$2, FormControl, Stack, FormErrorMessage, Flex, CheckboxGroup, IconButton as IconButton$1, Popover as Popover$2, Portal, useDisclosure, useBoolean, PopoverTrigger, PopoverContent, PopoverHeader, PopoverBody, SimpleGrid, SlideFade as SlideFade$1, Table as Table$2, Thead, Tr, Tbody, Select as Select$2, PopoverAnchor, InputGroup, InputRightElement, Link as Link$1, Spacer, useOutsideClick, Tooltip as Tooltip$2, VStack, Circle, Center, Fade as Fade$1, ScaleFade as ScaleFade$1, Slide as Slide$1, Collapse as Collapse$1, CloseButton as CloseButton$1, Radio as Radio$2, RadioGroup as RadioGroup$1, Tag as Tag$2, TagLabel, TagRightIcon, useEditableControls, useEditableState, Editable, InputLeftElement, Input as Input$1, EditablePreview, EditableInput, Modal as Modal$2, ModalOverlay, ModalContent, ModalCloseButton, ModalBody as ModalBody$1, ModalHeader, Slider, SliderTrack, SliderFilledTrack, SliderThumb, ModalFooter, Progress, Image as Image$1, ChakraProvider, Menu as Menu$2, NumberInputStepper as NumberInputStepper$1, Divider, NumberIncrementStepper, NumberDecrementStepper, NumberInput as NumberInput$2, NumberInputField as NumberInputField$1, PinInput as PinInput$2, Switch as Switch$2, TabPanel as TabPanel$1, Tabs as Tabs$2, Textarea as Textarea$2, useToast as useToast$1, AlertTitle, AlertDescription, Tab, TabList, useClipboard, Grid, GridItem, theme as theme$1 } from '@chakra-ui/react';
|
|
2
2
|
export { AbsoluteCenter, AccordionIcon, AlertDescription, AlertDialog, AlertDialogBody, AlertDialogCloseButton, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertIcon, AlertTitle, Box, BreadcrumbItem as Breadcrumb, BreadcrumbLink, BreadcrumbSeparator, Breadcrumb as Breadcrumbs, ButtonGroup, Card, CardBody, CardFooter, CardHeader, Center, Modal as ChakraModal, CheckboxGroup, Circle, CircularProgress, CircularProgressLabel, CloseButton, Code, Container, Divider, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, DrawerHeader, DrawerOverlay, Editable, EditableInput, EditablePreview, Flex, FormControl, FormErrorMessage, FormHelperText, Grid, GridItem, HStack, Heading, Hide, Highlight, Image, Input, InputAddon, InputGroup, InputLeftAddon, InputLeftElement, InputRightAddon, InputRightElement, Kbd, Link, LinkBox, LinkOverlay, List, ListIcon, ListItem, Mark, MenuButton, MenuCommand, MenuDivider, MenuGroup, MenuIcon, MenuItem, MenuItemOption, MenuList, MenuOptionGroup, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, NumberDecrementStepper, NumberIncrementStepper, OrderedList, PinInputField, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, Portal, RangeSlider, RangeSliderFilledTrack, RangeSliderMark, RangeSliderThumb, RangeSliderTrack, Show, SimpleGrid, Skeleton, SkeletonCircle, SkeletonText, Slider, SliderFilledTrack, SliderMark, SliderThumb, SliderTrack, Spacer, Stack, StackDivider, Stat, StatArrow, StatGroup, StatHelpText, StatLabel, StatNumber, TabIndicator as StepIndicator, TabPanels as StepPanels, Tab, TabIndicator, TabList, TabPanels, TableCaption, TableContainer, TagCloseButton, TagLabel, TagLeftIcon, TagRightIcon, Tbody, Td, Text, Tfoot, Th, Thead, Tr, UnorderedList, VStack, VisuallyHidden, VisuallyHiddenInput, Wrap, WrapItem, keyframes, useBoolean, useBreakpoint, useBreakpointValue, useClipboard, useControllableProp, useControllableState, useDisclosure, useEditable, useEditableControls, useEditableState, useInterval, useMediaQuery, useMergeRefs, useNumberInput, useOutsideClick, usePrefersReducedMotion, useRadio, useRadioGroup, useTab, useTabs, useTheme, useToken } from '@chakra-ui/react';
|
|
3
|
-
import React
|
|
3
|
+
import React, { useState, useEffect, useRef, isValidElement, cloneElement, Children, createContext, useContext, forwardRef as forwardRef$1, useImperativeHandle, memo, useMemo, useCallback } from 'react';
|
|
4
4
|
import { CreatableSelect, chakraComponents, AsyncSelect, Select as Select$3 } from 'chakra-react-select';
|
|
5
5
|
export { AsyncCreatableSelect, AsyncSelect, Select as ChakraReactSelect, CreatableSelect, chakraComponents as selectChakraComponents } from 'chakra-react-select';
|
|
6
6
|
import { isNil, last, map, prop, difference, replace, split, path, T, keys, omit, merge, isEmpty, identity, any, ifElse, gt, always, defaultTo, take, inc, dec, forEach, is, trim, values, equals, mergeAll, toLower, find, times, has, not, all, filter, test, indexOf, remove, insert, intersection, findIndex, concat, head, match, length, propEq } from 'ramda';
|
|
@@ -58,7 +58,7 @@ var __spreadValues$2t = (a, b) => {
|
|
|
58
58
|
}
|
|
59
59
|
return a;
|
|
60
60
|
};
|
|
61
|
-
const Accordion = (props) => /* @__PURE__ */ React
|
|
61
|
+
const Accordion = (props) => /* @__PURE__ */ React.createElement(Accordion$1, __spreadValues$2t({}, props));
|
|
62
62
|
|
|
63
63
|
var __defProp$2s = Object.defineProperty;
|
|
64
64
|
var __getOwnPropSymbols$2s = Object.getOwnPropertySymbols;
|
|
@@ -76,7 +76,7 @@ var __spreadValues$2s = (a, b) => {
|
|
|
76
76
|
}
|
|
77
77
|
return a;
|
|
78
78
|
};
|
|
79
|
-
const AccordionButton = (props) => /* @__PURE__ */ React
|
|
79
|
+
const AccordionButton = (props) => /* @__PURE__ */ React.createElement(AccordionButton$1, __spreadValues$2s({}, props));
|
|
80
80
|
|
|
81
81
|
var __defProp$2r = Object.defineProperty;
|
|
82
82
|
var __getOwnPropSymbols$2r = Object.getOwnPropertySymbols;
|
|
@@ -94,7 +94,7 @@ var __spreadValues$2r = (a, b) => {
|
|
|
94
94
|
}
|
|
95
95
|
return a;
|
|
96
96
|
};
|
|
97
|
-
const AccordionPanel = (props) => /* @__PURE__ */ React
|
|
97
|
+
const AccordionPanel = (props) => /* @__PURE__ */ React.createElement(AccordionPanel$1, __spreadValues$2r({}, props));
|
|
98
98
|
|
|
99
99
|
var __defProp$2q = Object.defineProperty;
|
|
100
100
|
var __getOwnPropSymbols$2q = Object.getOwnPropertySymbols;
|
|
@@ -112,7 +112,7 @@ var __spreadValues$2q = (a, b) => {
|
|
|
112
112
|
}
|
|
113
113
|
return a;
|
|
114
114
|
};
|
|
115
|
-
const AccordionItem = (props) => /* @__PURE__ */ React
|
|
115
|
+
const AccordionItem = (props) => /* @__PURE__ */ React.createElement(AccordionItem$1, __spreadValues$2q({}, props));
|
|
116
116
|
|
|
117
117
|
const useDebounce = (value, delay) => {
|
|
118
118
|
const [debouncedValue, setDebouncedValue] = useState(value);
|
|
@@ -3819,7 +3819,7 @@ function TagsInput(_a) {
|
|
|
3819
3819
|
setMenuIsOpen(true);
|
|
3820
3820
|
}
|
|
3821
3821
|
};
|
|
3822
|
-
return /* @__PURE__ */ React
|
|
3822
|
+
return /* @__PURE__ */ React.createElement(Box, { w: "full", "data-testid": testId }, /* @__PURE__ */ React.createElement(
|
|
3823
3823
|
CustomSelect,
|
|
3824
3824
|
__spreadValues$2g(__spreadProps$t(__spreadValues$2g({
|
|
3825
3825
|
isMulti: true,
|
|
@@ -3898,19 +3898,19 @@ const OrganizationLogo = (_a) => {
|
|
|
3898
3898
|
container,
|
|
3899
3899
|
text
|
|
3900
3900
|
} = useMultiStyleConfig("Avatar", __spreadValues$2f({ variant, image }, rest));
|
|
3901
|
-
return /* @__PURE__ */ React
|
|
3901
|
+
return /* @__PURE__ */ React.createElement(
|
|
3902
3902
|
chakra.div,
|
|
3903
3903
|
__spreadValues$2f({
|
|
3904
3904
|
__css: container,
|
|
3905
3905
|
"data-testid": "organization-logo-test-id"
|
|
3906
3906
|
}, rest),
|
|
3907
|
-
image ? /* @__PURE__ */ React
|
|
3907
|
+
image ? /* @__PURE__ */ React.createElement(
|
|
3908
3908
|
chakra.img,
|
|
3909
3909
|
{
|
|
3910
3910
|
alt: name,
|
|
3911
3911
|
src: image
|
|
3912
3912
|
}
|
|
3913
|
-
) : /* @__PURE__ */ React
|
|
3913
|
+
) : /* @__PURE__ */ React.createElement(chakra.span, { __css: text }, getInitials(name))
|
|
3914
3914
|
);
|
|
3915
3915
|
};
|
|
3916
3916
|
|
|
@@ -3950,7 +3950,7 @@ const Alert = (_a) => {
|
|
|
3950
3950
|
"variant",
|
|
3951
3951
|
"children"
|
|
3952
3952
|
]);
|
|
3953
|
-
return /* @__PURE__ */ React
|
|
3953
|
+
return /* @__PURE__ */ React.createElement(Alert$2, __spreadValues$2e({ variant }, rest), children);
|
|
3954
3954
|
};
|
|
3955
3955
|
|
|
3956
3956
|
var __defProp$2d = Object.defineProperty;
|
|
@@ -3969,7 +3969,7 @@ var __spreadValues$2d = (a, b) => {
|
|
|
3969
3969
|
}
|
|
3970
3970
|
return a;
|
|
3971
3971
|
};
|
|
3972
|
-
const AspectRatio = (props) => /* @__PURE__ */ React
|
|
3972
|
+
const AspectRatio = (props) => /* @__PURE__ */ React.createElement(AspectRatio$1, __spreadValues$2d({}, props));
|
|
3973
3973
|
|
|
3974
3974
|
var __defProp$2c = Object.defineProperty;
|
|
3975
3975
|
var __getOwnPropSymbols$2c = Object.getOwnPropertySymbols;
|
|
@@ -4011,15 +4011,15 @@ const Icon = forwardRef((_a, ref) => {
|
|
|
4011
4011
|
"color",
|
|
4012
4012
|
"boxSize"
|
|
4013
4013
|
]);
|
|
4014
|
-
const CustomIcon = As != null ? As : () => /* @__PURE__ */ React
|
|
4014
|
+
const CustomIcon = As != null ? As : () => /* @__PURE__ */ React.createElement(Icon$2, null);
|
|
4015
4015
|
const styles = useStyleConfig("Icon", { size, color, boxSize });
|
|
4016
|
-
return /* @__PURE__ */ React
|
|
4016
|
+
return /* @__PURE__ */ React.createElement(
|
|
4017
4017
|
Icon$2,
|
|
4018
4018
|
__spreadValues$2c({
|
|
4019
4019
|
ref,
|
|
4020
4020
|
sx: styles
|
|
4021
4021
|
}, rest),
|
|
4022
|
-
/* @__PURE__ */ React
|
|
4022
|
+
/* @__PURE__ */ React.createElement(CustomIcon, null)
|
|
4023
4023
|
);
|
|
4024
4024
|
});
|
|
4025
4025
|
|
|
@@ -4027,7 +4027,7 @@ const AvatarBadge = ({
|
|
|
4027
4027
|
notificationCount = 0
|
|
4028
4028
|
}) => {
|
|
4029
4029
|
const { badge } = useMultiStyleConfig("Avatar");
|
|
4030
|
-
return /* @__PURE__ */ React
|
|
4030
|
+
return /* @__PURE__ */ React.createElement(chakra.span, { sx: badge }, notificationCount > 999 ? "999+" : notificationCount);
|
|
4031
4031
|
};
|
|
4032
4032
|
|
|
4033
4033
|
var __defProp$2b = Object.defineProperty;
|
|
@@ -4081,21 +4081,21 @@ const Avatar = (_a) => {
|
|
|
4081
4081
|
name,
|
|
4082
4082
|
bgColor
|
|
4083
4083
|
});
|
|
4084
|
-
return /* @__PURE__ */ React
|
|
4084
|
+
return /* @__PURE__ */ React.createElement(Box, __spreadValues$2b({ __css: container, "data-testid": "avatar-test-id" }, rest), image ? /* @__PURE__ */ React.createElement(
|
|
4085
4085
|
chakra.img,
|
|
4086
4086
|
{
|
|
4087
4087
|
alt: name,
|
|
4088
4088
|
src: image,
|
|
4089
4089
|
sx: userImage
|
|
4090
4090
|
}
|
|
4091
|
-
) : name ? /* @__PURE__ */ React
|
|
4091
|
+
) : name ? /* @__PURE__ */ React.createElement(chakra.span, { sx: text }, getInitials(name)) : /* @__PURE__ */ React.createElement(
|
|
4092
4092
|
Icon,
|
|
4093
4093
|
{
|
|
4094
4094
|
as: variant === "square" ? UserSquareDuo : BusinessContactDuo,
|
|
4095
4095
|
sx: icon,
|
|
4096
4096
|
"aria-label": "user-avatar"
|
|
4097
4097
|
}
|
|
4098
|
-
), notificationCount > 0 && /* @__PURE__ */ React
|
|
4098
|
+
), notificationCount > 0 && /* @__PURE__ */ React.createElement(AvatarBadge, { notificationCount }));
|
|
4099
4099
|
};
|
|
4100
4100
|
|
|
4101
4101
|
var __defProp$2a = Object.defineProperty;
|
|
@@ -4135,7 +4135,7 @@ const H1 = forwardRef$1((_a, ref) => {
|
|
|
4135
4135
|
"sx"
|
|
4136
4136
|
]);
|
|
4137
4137
|
const styles = useStyleConfig("H1", { sx });
|
|
4138
|
-
return /* @__PURE__ */ React
|
|
4138
|
+
return /* @__PURE__ */ React.createElement(
|
|
4139
4139
|
Heading,
|
|
4140
4140
|
__spreadValues$2a({
|
|
4141
4141
|
as: "h1",
|
|
@@ -4183,7 +4183,7 @@ const H2 = forwardRef$1((_a, ref) => {
|
|
|
4183
4183
|
"sx"
|
|
4184
4184
|
]);
|
|
4185
4185
|
const styles = useStyleConfig("H2", { sx });
|
|
4186
|
-
return /* @__PURE__ */ React
|
|
4186
|
+
return /* @__PURE__ */ React.createElement(
|
|
4187
4187
|
Heading,
|
|
4188
4188
|
__spreadValues$29({
|
|
4189
4189
|
as: "h2",
|
|
@@ -4231,7 +4231,7 @@ const H3 = forwardRef$1((_a, ref) => {
|
|
|
4231
4231
|
"sx"
|
|
4232
4232
|
]);
|
|
4233
4233
|
const styles = useStyleConfig("H3", { sx });
|
|
4234
|
-
return /* @__PURE__ */ React
|
|
4234
|
+
return /* @__PURE__ */ React.createElement(
|
|
4235
4235
|
Heading,
|
|
4236
4236
|
__spreadValues$28({
|
|
4237
4237
|
as: "h3",
|
|
@@ -4279,7 +4279,7 @@ const H4 = forwardRef$1((_a, ref) => {
|
|
|
4279
4279
|
"sx"
|
|
4280
4280
|
]);
|
|
4281
4281
|
const styles = useStyleConfig("H4", { sx });
|
|
4282
|
-
return /* @__PURE__ */ React
|
|
4282
|
+
return /* @__PURE__ */ React.createElement(
|
|
4283
4283
|
Heading,
|
|
4284
4284
|
__spreadValues$27({
|
|
4285
4285
|
as: "h4",
|
|
@@ -4327,7 +4327,7 @@ const H5 = forwardRef$1((_a, ref) => {
|
|
|
4327
4327
|
"sx"
|
|
4328
4328
|
]);
|
|
4329
4329
|
const styles = useStyleConfig("H5", { sx });
|
|
4330
|
-
return /* @__PURE__ */ React
|
|
4330
|
+
return /* @__PURE__ */ React.createElement(
|
|
4331
4331
|
Heading,
|
|
4332
4332
|
__spreadValues$26({
|
|
4333
4333
|
as: "h5",
|
|
@@ -4375,7 +4375,7 @@ const H6 = forwardRef$1((_a, ref) => {
|
|
|
4375
4375
|
"sx"
|
|
4376
4376
|
]);
|
|
4377
4377
|
const styles = useStyleConfig("H6", { sx });
|
|
4378
|
-
return /* @__PURE__ */ React
|
|
4378
|
+
return /* @__PURE__ */ React.createElement(
|
|
4379
4379
|
Heading,
|
|
4380
4380
|
__spreadValues$25({
|
|
4381
4381
|
as: "h6",
|
|
@@ -4425,7 +4425,7 @@ const P = forwardRef$1((_a, ref) => {
|
|
|
4425
4425
|
"sx"
|
|
4426
4426
|
]);
|
|
4427
4427
|
const styles = useStyleConfig("P", { variant, sx });
|
|
4428
|
-
return /* @__PURE__ */ React
|
|
4428
|
+
return /* @__PURE__ */ React.createElement(
|
|
4429
4429
|
Text,
|
|
4430
4430
|
__spreadValues$24({
|
|
4431
4431
|
variant,
|
|
@@ -4468,7 +4468,7 @@ const Blockquote = forwardRef$1(
|
|
|
4468
4468
|
(_a, ref) => {
|
|
4469
4469
|
var _b = _a, { children, sx = {} } = _b, rest = __objRest$1F(_b, ["children", "sx"]);
|
|
4470
4470
|
const styles = useStyleConfig("Blockquote", { sx });
|
|
4471
|
-
return /* @__PURE__ */ React
|
|
4471
|
+
return /* @__PURE__ */ React.createElement(Text, __spreadValues$23({ as: "span", sx: styles, ref }, rest), children);
|
|
4472
4472
|
}
|
|
4473
4473
|
);
|
|
4474
4474
|
|
|
@@ -4509,7 +4509,7 @@ const Capitalized = forwardRef$1((_a, ref) => {
|
|
|
4509
4509
|
"sx"
|
|
4510
4510
|
]);
|
|
4511
4511
|
const styles = useStyleConfig("Capitalized", { sx });
|
|
4512
|
-
return /* @__PURE__ */ React
|
|
4512
|
+
return /* @__PURE__ */ React.createElement(
|
|
4513
4513
|
Text,
|
|
4514
4514
|
__spreadValues$22({
|
|
4515
4515
|
as: "span",
|
|
@@ -4557,7 +4557,7 @@ const Lead = forwardRef$1((_a, ref) => {
|
|
|
4557
4557
|
"sx"
|
|
4558
4558
|
]);
|
|
4559
4559
|
const styles = useStyleConfig("Lead", { sx });
|
|
4560
|
-
return /* @__PURE__ */ React
|
|
4560
|
+
return /* @__PURE__ */ React.createElement(
|
|
4561
4561
|
Text,
|
|
4562
4562
|
__spreadValues$21({
|
|
4563
4563
|
as: "span",
|
|
@@ -4605,7 +4605,7 @@ const Small = forwardRef$1((_a, ref) => {
|
|
|
4605
4605
|
"sx"
|
|
4606
4606
|
]);
|
|
4607
4607
|
const styles = useStyleConfig("Small", { sx });
|
|
4608
|
-
return /* @__PURE__ */ React
|
|
4608
|
+
return /* @__PURE__ */ React.createElement(
|
|
4609
4609
|
Text,
|
|
4610
4610
|
__spreadValues$20({
|
|
4611
4611
|
as: "small",
|
|
@@ -4653,7 +4653,7 @@ const Tiny = forwardRef$1((_a, ref) => {
|
|
|
4653
4653
|
"sx"
|
|
4654
4654
|
]);
|
|
4655
4655
|
const styles = useStyleConfig("Tiny", { sx });
|
|
4656
|
-
return /* @__PURE__ */ React
|
|
4656
|
+
return /* @__PURE__ */ React.createElement(
|
|
4657
4657
|
Text,
|
|
4658
4658
|
__spreadValues$1$({
|
|
4659
4659
|
as: "span",
|
|
@@ -4703,11 +4703,11 @@ const Label = forwardRef$1((_a, ref) => {
|
|
|
4703
4703
|
"sx"
|
|
4704
4704
|
]);
|
|
4705
4705
|
const styles = useStyleConfig("Label", { sx, size });
|
|
4706
|
-
return /* @__PURE__ */ React
|
|
4706
|
+
return /* @__PURE__ */ React.createElement(
|
|
4707
4707
|
FormLabel$1,
|
|
4708
4708
|
__spreadValues$1_({
|
|
4709
4709
|
sx: styles,
|
|
4710
|
-
requiredIndicator: /* @__PURE__ */ React
|
|
4710
|
+
requiredIndicator: /* @__PURE__ */ React.createElement(VisuallyHidden, null),
|
|
4711
4711
|
ref
|
|
4712
4712
|
}, rest),
|
|
4713
4713
|
children
|
|
@@ -4746,7 +4746,7 @@ const NumVal = forwardRef$1(
|
|
|
4746
4746
|
(_a, ref) => {
|
|
4747
4747
|
var _b = _a, { children, size = "sm", sx = {} } = _b, rest = __objRest$1z(_b, ["children", "size", "sx"]);
|
|
4748
4748
|
const styles = useStyleConfig("NumVal", { sx, size });
|
|
4749
|
-
return /* @__PURE__ */ React
|
|
4749
|
+
return /* @__PURE__ */ React.createElement(
|
|
4750
4750
|
Text,
|
|
4751
4751
|
__spreadValues$1Z({
|
|
4752
4752
|
as: "span",
|
|
@@ -4825,7 +4825,7 @@ const OverflowGroup = ({
|
|
|
4825
4825
|
max,
|
|
4826
4826
|
getChildrenWithProps(children, defaultTo({}, childrenProps))
|
|
4827
4827
|
);
|
|
4828
|
-
return /* @__PURE__ */ React
|
|
4828
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, shownChildren);
|
|
4829
4829
|
};
|
|
4830
4830
|
|
|
4831
4831
|
const useOverflowGroup = () => {
|
|
@@ -4882,7 +4882,7 @@ const AvatarGroup = (_a) => {
|
|
|
4882
4882
|
{ ml: spacing },
|
|
4883
4883
|
(_child, idx) => idx > 0
|
|
4884
4884
|
);
|
|
4885
|
-
return /* @__PURE__ */ React
|
|
4885
|
+
return /* @__PURE__ */ React.createElement(HStack, __spreadValues$1Y({ bgColor: "background.default" }, rest), /* @__PURE__ */ React.createElement(HStack, { spacing: 0 }, /* @__PURE__ */ React.createElement(OverflowGroup, { max, onChange: setNbrRemainingAvatars }, childrenWithMargin)), nbrRemainingAvatars > 0 && /* @__PURE__ */ React.createElement(Small, { sx: { color: "blue.500" } }, "+", nbrRemainingAvatars));
|
|
4886
4886
|
};
|
|
4887
4887
|
|
|
4888
4888
|
var __defProp$1X = Object.defineProperty;
|
|
@@ -4901,7 +4901,7 @@ var __spreadValues$1X = (a, b) => {
|
|
|
4901
4901
|
}
|
|
4902
4902
|
return a;
|
|
4903
4903
|
};
|
|
4904
|
-
const Badge = forwardRef$1((props, ref) => /* @__PURE__ */ React
|
|
4904
|
+
const Badge = forwardRef$1((props, ref) => /* @__PURE__ */ React.createElement(Badge$2, __spreadValues$1X({ ref }, props)));
|
|
4905
4905
|
|
|
4906
4906
|
var __defProp$1W = Object.defineProperty;
|
|
4907
4907
|
var __getOwnPropSymbols$1W = Object.getOwnPropertySymbols;
|
|
@@ -4942,7 +4942,7 @@ const Blinker = (_a) => {
|
|
|
4942
4942
|
"isBlinking"
|
|
4943
4943
|
]);
|
|
4944
4944
|
const styles = useStyleConfig("Blinker", { color, size, isBlinking });
|
|
4945
|
-
return /* @__PURE__ */ React
|
|
4945
|
+
return /* @__PURE__ */ React.createElement(Box, __spreadValues$1W({ sx: styles, "data-testid": "blinker-test-id" }, rest));
|
|
4946
4946
|
};
|
|
4947
4947
|
|
|
4948
4948
|
var __defProp$1V = Object.defineProperty;
|
|
@@ -4975,7 +4975,7 @@ var __objRest$1w = (source, exclude) => {
|
|
|
4975
4975
|
};
|
|
4976
4976
|
const Spinner = (_a) => {
|
|
4977
4977
|
var rest = __objRest$1w(_a, []);
|
|
4978
|
-
return /* @__PURE__ */ React
|
|
4978
|
+
return /* @__PURE__ */ React.createElement(Spinner$2, __spreadValues$1V({}, rest));
|
|
4979
4979
|
};
|
|
4980
4980
|
|
|
4981
4981
|
var __defProp$1U = Object.defineProperty;
|
|
@@ -5015,13 +5015,13 @@ const SpinnerSizeMap = {
|
|
|
5015
5015
|
const Button = forwardRef$1(
|
|
5016
5016
|
(_a, ref) => {
|
|
5017
5017
|
var _b = _a, { variant = "default", children, size = "md" } = _b, rest = __objRest$1v(_b, ["variant", "children", "size"]);
|
|
5018
|
-
return /* @__PURE__ */ React
|
|
5018
|
+
return /* @__PURE__ */ React.createElement(
|
|
5019
5019
|
Button$2,
|
|
5020
5020
|
__spreadValues$1U({
|
|
5021
5021
|
variant,
|
|
5022
5022
|
ref,
|
|
5023
5023
|
size,
|
|
5024
|
-
spinner: /* @__PURE__ */ React
|
|
5024
|
+
spinner: /* @__PURE__ */ React.createElement(
|
|
5025
5025
|
Spinner,
|
|
5026
5026
|
{
|
|
5027
5027
|
size: SpinnerSizeMap[size]
|
|
@@ -5076,7 +5076,7 @@ const Checkbox = (_a) => {
|
|
|
5076
5076
|
"variant"
|
|
5077
5077
|
]);
|
|
5078
5078
|
const controlledValue = typeof value === "boolean" ? { isChecked: value } : { value };
|
|
5079
|
-
return /* @__PURE__ */ React
|
|
5079
|
+
return /* @__PURE__ */ React.createElement(
|
|
5080
5080
|
Checkbox$2,
|
|
5081
5081
|
__spreadValues$1T(__spreadValues$1T({
|
|
5082
5082
|
size,
|
|
@@ -5192,7 +5192,7 @@ const Form = forwardRef$1((_a, ref) => {
|
|
|
5192
5192
|
newMethods.trigger();
|
|
5193
5193
|
e.preventDefault();
|
|
5194
5194
|
};
|
|
5195
|
-
return /* @__PURE__ */ React
|
|
5195
|
+
return /* @__PURE__ */ React.createElement(FormProvider, __spreadValues$1S(__spreadValues$1S({}, newMethods), rest), /* @__PURE__ */ React.createElement("form", { style: __spreadValues$1S({ width: "100%" }, innerFormStyle), onSubmit: handleSubmit }, typeof children === "function" ? children(newMethods) : children));
|
|
5196
5196
|
});
|
|
5197
5197
|
|
|
5198
5198
|
var __defProp$1R = Object.defineProperty;
|
|
@@ -5232,7 +5232,7 @@ const FormLabel = forwardRef$1((_a, ref) => {
|
|
|
5232
5232
|
} = _b, rest = __objRest$1s(_b, [
|
|
5233
5233
|
"children"
|
|
5234
5234
|
]);
|
|
5235
|
-
return /* @__PURE__ */ React
|
|
5235
|
+
return /* @__PURE__ */ React.createElement(
|
|
5236
5236
|
Label,
|
|
5237
5237
|
__spreadProps$s(__spreadValues$1R({
|
|
5238
5238
|
size: "sm",
|
|
@@ -5302,15 +5302,15 @@ const BaseField = (_a, ref) => {
|
|
|
5302
5302
|
const { formState: { errors } } = methods;
|
|
5303
5303
|
const control = passedControl != null ? passedControl : methods.control;
|
|
5304
5304
|
const fieldError = getFieldError(name, errors);
|
|
5305
|
-
return /* @__PURE__ */ React
|
|
5305
|
+
return /* @__PURE__ */ React.createElement(FormControl, { isInvalid: !!fieldError, isRequired, ref }, /* @__PURE__ */ React.createElement(
|
|
5306
5306
|
Stack,
|
|
5307
5307
|
__spreadValues$1Q({
|
|
5308
5308
|
spacing: "auto",
|
|
5309
5309
|
direction,
|
|
5310
5310
|
alignItems: direction === "column" ? "stretch" : "center"
|
|
5311
5311
|
}, rest),
|
|
5312
|
-
label && /* @__PURE__ */ React
|
|
5313
|
-
/* @__PURE__ */ React
|
|
5312
|
+
label && /* @__PURE__ */ React.createElement(FormLabel, { htmlFor: noLabelConnection ? void 0 : name, mb: 1 }, label),
|
|
5313
|
+
/* @__PURE__ */ React.createElement(
|
|
5314
5314
|
Controller,
|
|
5315
5315
|
{
|
|
5316
5316
|
name,
|
|
@@ -5319,7 +5319,7 @@ const BaseField = (_a, ref) => {
|
|
|
5319
5319
|
render: ({ field }) => children(field, methods)
|
|
5320
5320
|
}
|
|
5321
5321
|
)
|
|
5322
|
-
), /* @__PURE__ */ React
|
|
5322
|
+
), /* @__PURE__ */ React.createElement(FormErrorMessage, null, fieldError && (fieldError == null ? void 0 : fieldError.message)));
|
|
5323
5323
|
};
|
|
5324
5324
|
const Field = forwardRef$1(BaseField);
|
|
5325
5325
|
|
|
@@ -5382,13 +5382,13 @@ const CheckboxField = forwardRef$1((_a, ref) => {
|
|
|
5382
5382
|
"labelPlacement",
|
|
5383
5383
|
"labelSize"
|
|
5384
5384
|
]);
|
|
5385
|
-
return /* @__PURE__ */ React
|
|
5385
|
+
return /* @__PURE__ */ React.createElement(
|
|
5386
5386
|
Box,
|
|
5387
5387
|
{
|
|
5388
5388
|
w: label ? "full" : "fit-content",
|
|
5389
5389
|
display: "inline-flex"
|
|
5390
5390
|
},
|
|
5391
|
-
/* @__PURE__ */ React
|
|
5391
|
+
/* @__PURE__ */ React.createElement(
|
|
5392
5392
|
Field,
|
|
5393
5393
|
{
|
|
5394
5394
|
name,
|
|
@@ -5398,13 +5398,13 @@ const CheckboxField = forwardRef$1((_a, ref) => {
|
|
|
5398
5398
|
validate,
|
|
5399
5399
|
ref
|
|
5400
5400
|
},
|
|
5401
|
-
({ onChange, value }) => /* @__PURE__ */ React
|
|
5401
|
+
({ onChange, value }) => /* @__PURE__ */ React.createElement(
|
|
5402
5402
|
Flex,
|
|
5403
5403
|
{
|
|
5404
5404
|
gap: 2,
|
|
5405
5405
|
direction: labelPlacement === "left" ? "row-reverse" : "row"
|
|
5406
5406
|
},
|
|
5407
|
-
/* @__PURE__ */ React
|
|
5407
|
+
/* @__PURE__ */ React.createElement(
|
|
5408
5408
|
Checkbox,
|
|
5409
5409
|
__spreadValues$1P({
|
|
5410
5410
|
name,
|
|
@@ -5417,7 +5417,7 @@ const CheckboxField = forwardRef$1((_a, ref) => {
|
|
|
5417
5417
|
"data-testid": "checkbox-field-test-id"
|
|
5418
5418
|
}, rest)
|
|
5419
5419
|
),
|
|
5420
|
-
/* @__PURE__ */ React
|
|
5420
|
+
/* @__PURE__ */ React.createElement(Label, { htmlFor: name, sx: { fontWeight: "normal" }, size: labelSize }, label)
|
|
5421
5421
|
)
|
|
5422
5422
|
)
|
|
5423
5423
|
);
|
|
@@ -5469,7 +5469,7 @@ const CheckboxGroupField = forwardRef$1((_a, ref) => {
|
|
|
5469
5469
|
"validate",
|
|
5470
5470
|
"onChange"
|
|
5471
5471
|
]);
|
|
5472
|
-
return /* @__PURE__ */ React
|
|
5472
|
+
return /* @__PURE__ */ React.createElement(Box, { w: label ? "full" : "fit-content" }, /* @__PURE__ */ React.createElement(
|
|
5473
5473
|
Field,
|
|
5474
5474
|
{
|
|
5475
5475
|
name,
|
|
@@ -5479,7 +5479,7 @@ const CheckboxGroupField = forwardRef$1((_a, ref) => {
|
|
|
5479
5479
|
direction,
|
|
5480
5480
|
ref
|
|
5481
5481
|
},
|
|
5482
|
-
({ onChange, value }) => /* @__PURE__ */ React
|
|
5482
|
+
({ onChange, value }) => /* @__PURE__ */ React.createElement(
|
|
5483
5483
|
CheckboxGroup,
|
|
5484
5484
|
__spreadValues$1O({
|
|
5485
5485
|
onChange: (e) => {
|
|
@@ -5537,7 +5537,7 @@ const IconButton = forwardRef$1((_a, ref) => {
|
|
|
5537
5537
|
var _a2;
|
|
5538
5538
|
const IconComponent = icon != null ? icon : children;
|
|
5539
5539
|
const IconWithSize = cloneElement(IconComponent, { size: (_a2 = IconComponent.props.size) != null ? _a2 : rest.size });
|
|
5540
|
-
return /* @__PURE__ */ React
|
|
5540
|
+
return /* @__PURE__ */ React.createElement(
|
|
5541
5541
|
IconButton$1,
|
|
5542
5542
|
__spreadValues$1N({
|
|
5543
5543
|
variant,
|
|
@@ -5559,7 +5559,7 @@ const ColorButton = forwardRef$1(({
|
|
|
5559
5559
|
selected = false
|
|
5560
5560
|
}, ref) => {
|
|
5561
5561
|
if (!color)
|
|
5562
|
-
return /* @__PURE__ */ React
|
|
5562
|
+
return /* @__PURE__ */ React.createElement(Box, null);
|
|
5563
5563
|
const { defaultArrows, focusPrevious, focusNext } = useArrowFocus(columns);
|
|
5564
5564
|
const onKeyDown = (e) => {
|
|
5565
5565
|
switch (e.key) {
|
|
@@ -5577,7 +5577,7 @@ const ColorButton = forwardRef$1(({
|
|
|
5577
5577
|
}
|
|
5578
5578
|
};
|
|
5579
5579
|
const { colorButton } = useMultiStyleConfig("ColorPicker", { size });
|
|
5580
|
-
return /* @__PURE__ */ React
|
|
5580
|
+
return /* @__PURE__ */ React.createElement(
|
|
5581
5581
|
IconButton,
|
|
5582
5582
|
{
|
|
5583
5583
|
bg: color,
|
|
@@ -5586,7 +5586,7 @@ const ColorButton = forwardRef$1(({
|
|
|
5586
5586
|
"aria-label": `select-${color}`,
|
|
5587
5587
|
onClick,
|
|
5588
5588
|
sx: colorButton,
|
|
5589
|
-
icon: /* @__PURE__ */ React
|
|
5589
|
+
icon: /* @__PURE__ */ React.createElement(Icon, { as: CheckDuo, boxSize: selected ? void 0 : "0" }),
|
|
5590
5590
|
color: getContrastColor(color)
|
|
5591
5591
|
}
|
|
5592
5592
|
);
|
|
@@ -5608,7 +5608,7 @@ var __spreadValues$1M = (a, b) => {
|
|
|
5608
5608
|
}
|
|
5609
5609
|
return a;
|
|
5610
5610
|
};
|
|
5611
|
-
const Popover = (props) => /* @__PURE__ */ React
|
|
5611
|
+
const Popover = (props) => /* @__PURE__ */ React.createElement(Popover$2, __spreadValues$1M({ isLazy: true }, props));
|
|
5612
5612
|
|
|
5613
5613
|
const ColorsExpandButton = ({
|
|
5614
5614
|
onClick,
|
|
@@ -5635,7 +5635,7 @@ const ColorsExpandButton = ({
|
|
|
5635
5635
|
break;
|
|
5636
5636
|
}
|
|
5637
5637
|
};
|
|
5638
|
-
return /* @__PURE__ */ React
|
|
5638
|
+
return /* @__PURE__ */ React.createElement(
|
|
5639
5639
|
IconButton,
|
|
5640
5640
|
{
|
|
5641
5641
|
variant: "ghost",
|
|
@@ -5644,7 +5644,7 @@ const ColorsExpandButton = ({
|
|
|
5644
5644
|
onClick,
|
|
5645
5645
|
sx: colorButton
|
|
5646
5646
|
},
|
|
5647
|
-
/* @__PURE__ */ React
|
|
5647
|
+
/* @__PURE__ */ React.createElement(Icon, { as: expanded ? ChevronUpDuo : ChevronDownDuo })
|
|
5648
5648
|
);
|
|
5649
5649
|
};
|
|
5650
5650
|
|
|
@@ -5786,14 +5786,14 @@ const ColorPicker = (_a) => {
|
|
|
5786
5786
|
setSelectedColor(null);
|
|
5787
5787
|
onChange(null);
|
|
5788
5788
|
};
|
|
5789
|
-
return /* @__PURE__ */ React
|
|
5789
|
+
return /* @__PURE__ */ React.createElement(Box, { "data-testid": "color-picker-test-id" }, /* @__PURE__ */ React.createElement(
|
|
5790
5790
|
Popover,
|
|
5791
5791
|
__spreadValues$1K({
|
|
5792
5792
|
isOpen,
|
|
5793
5793
|
onClose,
|
|
5794
5794
|
initialFocusRef
|
|
5795
5795
|
}, popoverProps),
|
|
5796
|
-
/* @__PURE__ */ React
|
|
5796
|
+
/* @__PURE__ */ React.createElement(PopoverTrigger, null, /* @__PURE__ */ React.createElement(
|
|
5797
5797
|
IconButton,
|
|
5798
5798
|
__spreadValues$1K({
|
|
5799
5799
|
onClick: onToggle,
|
|
@@ -5801,10 +5801,10 @@ const ColorPicker = (_a) => {
|
|
|
5801
5801
|
name,
|
|
5802
5802
|
sx: trigger,
|
|
5803
5803
|
size,
|
|
5804
|
-
icon: /* @__PURE__ */ React
|
|
5804
|
+
icon: /* @__PURE__ */ React.createElement(Icon, { as: ColorsDuo })
|
|
5805
5805
|
}, rest)
|
|
5806
5806
|
)),
|
|
5807
|
-
/* @__PURE__ */ React
|
|
5807
|
+
/* @__PURE__ */ React.createElement(RenderInPortal, { shouldRenderInPortal }, /* @__PURE__ */ React.createElement(PopoverContent, { w: "auto", boxShadow: "md", p: 2, bgColor: "background.default" }, /* @__PURE__ */ React.createElement(Stack, null, /* @__PURE__ */ React.createElement(
|
|
5808
5808
|
PopoverHeader,
|
|
5809
5809
|
{
|
|
5810
5810
|
color: "text.default",
|
|
@@ -5815,7 +5815,7 @@ const ColorPicker = (_a) => {
|
|
|
5815
5815
|
width: "full"
|
|
5816
5816
|
},
|
|
5817
5817
|
"Pick a color",
|
|
5818
|
-
clearable && trigger.color !== "unset" && /* @__PURE__ */ React
|
|
5818
|
+
clearable && trigger.color !== "unset" && /* @__PURE__ */ React.createElement(
|
|
5819
5819
|
Button,
|
|
5820
5820
|
{
|
|
5821
5821
|
size: "sm",
|
|
@@ -5825,7 +5825,7 @@ const ColorPicker = (_a) => {
|
|
|
5825
5825
|
},
|
|
5826
5826
|
"Clear"
|
|
5827
5827
|
)
|
|
5828
|
-
), /* @__PURE__ */ React
|
|
5828
|
+
), /* @__PURE__ */ React.createElement(PopoverBody, { p: 0 }, /* @__PURE__ */ React.createElement(Stack, { alignItems: "center", p: 0, spacing: 0 }, /* @__PURE__ */ React.createElement(FocusScope, null, /* @__PURE__ */ React.createElement(
|
|
5829
5829
|
SimpleGrid,
|
|
5830
5830
|
{
|
|
5831
5831
|
columns: getNumberOfColumns(),
|
|
@@ -5836,7 +5836,7 @@ const ColorPicker = (_a) => {
|
|
|
5836
5836
|
pl: 4,
|
|
5837
5837
|
py: 1
|
|
5838
5838
|
},
|
|
5839
|
-
visibleColors.map((color, index) => /* @__PURE__ */ React
|
|
5839
|
+
visibleColors.map((color, index) => /* @__PURE__ */ React.createElement(
|
|
5840
5840
|
ColorButton,
|
|
5841
5841
|
{
|
|
5842
5842
|
color,
|
|
@@ -5847,7 +5847,7 @@ const ColorPicker = (_a) => {
|
|
|
5847
5847
|
onClick: () => handleSelect(color)
|
|
5848
5848
|
}
|
|
5849
5849
|
))
|
|
5850
|
-
), expandedColors.length > 0 && /* @__PURE__ */ React
|
|
5850
|
+
), expandedColors.length > 0 && /* @__PURE__ */ React.createElement(
|
|
5851
5851
|
ColorsExpandButton,
|
|
5852
5852
|
{
|
|
5853
5853
|
onClick: expandColors,
|
|
@@ -5900,7 +5900,7 @@ const ColorPickerField = (_a) => {
|
|
|
5900
5900
|
"isRequired",
|
|
5901
5901
|
"validate"
|
|
5902
5902
|
]);
|
|
5903
|
-
return /* @__PURE__ */ React
|
|
5903
|
+
return /* @__PURE__ */ React.createElement(
|
|
5904
5904
|
Field,
|
|
5905
5905
|
{
|
|
5906
5906
|
name,
|
|
@@ -5909,7 +5909,7 @@ const ColorPickerField = (_a) => {
|
|
|
5909
5909
|
isRequired,
|
|
5910
5910
|
validate
|
|
5911
5911
|
},
|
|
5912
|
-
({ onChange, value }) => /* @__PURE__ */ React
|
|
5912
|
+
({ onChange, value }) => /* @__PURE__ */ React.createElement(
|
|
5913
5913
|
ColorPicker,
|
|
5914
5914
|
__spreadValues$1J({
|
|
5915
5915
|
name,
|
|
@@ -6046,7 +6046,7 @@ const FlipButton = (props) => {
|
|
|
6046
6046
|
isMulti: isMulti || false,
|
|
6047
6047
|
focusRing,
|
|
6048
6048
|
value
|
|
6049
|
-
}, rest)) : /* @__PURE__ */ React
|
|
6049
|
+
}, rest)) : /* @__PURE__ */ React.createElement(
|
|
6050
6050
|
HStack,
|
|
6051
6051
|
{
|
|
6052
6052
|
spacing: isSelected && iconPlacement !== "none" || icon ? 2 : 0,
|
|
@@ -6055,9 +6055,9 @@ const FlipButton = (props) => {
|
|
|
6055
6055
|
"aria-disabled": isDisabled,
|
|
6056
6056
|
as: "label"
|
|
6057
6057
|
},
|
|
6058
|
-
/* @__PURE__ */ React
|
|
6059
|
-
icon && iconPlacement !== "none" ? /* @__PURE__ */ React
|
|
6060
|
-
/* @__PURE__ */ React
|
|
6058
|
+
/* @__PURE__ */ React.createElement("input", __spreadValues$1H({}, flipButtonProps)),
|
|
6059
|
+
icon && iconPlacement !== "none" ? /* @__PURE__ */ React.createElement(Icon, { as: icon || CheckSolid, sx: buttonIcon }) : isSelected && iconPlacement !== "none" && /* @__PURE__ */ React.createElement(SlideFade$1, { in: isSelected }, /* @__PURE__ */ React.createElement(Icon, { as: icon || CheckSolid, sx: buttonIcon })),
|
|
6060
|
+
/* @__PURE__ */ React.createElement(Text, { textAlign: "center" }, children)
|
|
6061
6061
|
);
|
|
6062
6062
|
};
|
|
6063
6063
|
|
|
@@ -6136,7 +6136,7 @@ const FlipButtonGroup = (props) => {
|
|
|
6136
6136
|
sx
|
|
6137
6137
|
});
|
|
6138
6138
|
const restWithoutOnChange = omit(["onChange"], rest);
|
|
6139
|
-
return /* @__PURE__ */ React
|
|
6139
|
+
return /* @__PURE__ */ React.createElement(
|
|
6140
6140
|
Stack,
|
|
6141
6141
|
__spreadValues$1G(__spreadProps$p(__spreadValues$1G({}, flipButtonGroupProps), {
|
|
6142
6142
|
direction,
|
|
@@ -6144,7 +6144,7 @@ const FlipButtonGroup = (props) => {
|
|
|
6144
6144
|
spacing: 0,
|
|
6145
6145
|
sx: container
|
|
6146
6146
|
}), restWithoutOnChange),
|
|
6147
|
-
/* @__PURE__ */ React
|
|
6147
|
+
/* @__PURE__ */ React.createElement(FlipButtonContext.Provider, { value: state }, childrenWithProps)
|
|
6148
6148
|
);
|
|
6149
6149
|
};
|
|
6150
6150
|
|
|
@@ -6196,7 +6196,7 @@ const FlipButtonGroupField = forwardRef$1((_a, ref) => {
|
|
|
6196
6196
|
"onChange",
|
|
6197
6197
|
"validate"
|
|
6198
6198
|
]);
|
|
6199
|
-
return /* @__PURE__ */ React
|
|
6199
|
+
return /* @__PURE__ */ React.createElement(
|
|
6200
6200
|
Field,
|
|
6201
6201
|
{
|
|
6202
6202
|
name,
|
|
@@ -6206,7 +6206,7 @@ const FlipButtonGroupField = forwardRef$1((_a, ref) => {
|
|
|
6206
6206
|
validate,
|
|
6207
6207
|
ref
|
|
6208
6208
|
},
|
|
6209
|
-
({ onChange, value }) => /* @__PURE__ */ React
|
|
6209
|
+
({ onChange, value }) => /* @__PURE__ */ React.createElement(
|
|
6210
6210
|
FlipButtonGroup,
|
|
6211
6211
|
__spreadValues$1F({
|
|
6212
6212
|
name,
|
|
@@ -6257,7 +6257,7 @@ const hoverAndActiveStyles = {
|
|
|
6257
6257
|
const ResizeHandle = forwardRef$1(
|
|
6258
6258
|
(_a, ref) => {
|
|
6259
6259
|
var _b = _a, { color } = _b, rest = __objRest$1h(_b, ["color"]);
|
|
6260
|
-
return /* @__PURE__ */ React
|
|
6260
|
+
return /* @__PURE__ */ React.createElement(
|
|
6261
6261
|
Box,
|
|
6262
6262
|
__spreadValues$1E({
|
|
6263
6263
|
ref,
|
|
@@ -6299,7 +6299,7 @@ const Trigger = (props) => {
|
|
|
6299
6299
|
const { isDisabled, handleClick } = props;
|
|
6300
6300
|
const ref = useRef(null);
|
|
6301
6301
|
const { buttonProps } = useButton(props, ref);
|
|
6302
|
-
return /* @__PURE__ */ React
|
|
6302
|
+
return /* @__PURE__ */ React.createElement(
|
|
6303
6303
|
Button,
|
|
6304
6304
|
__spreadProps$o(__spreadValues$1D({}, buttonProps), {
|
|
6305
6305
|
ref,
|
|
@@ -6310,7 +6310,7 @@ const Trigger = (props) => {
|
|
|
6310
6310
|
onPointerDown: handleClick,
|
|
6311
6311
|
pointerEvents: isDisabled ? "none" : "auto"
|
|
6312
6312
|
}),
|
|
6313
|
-
/* @__PURE__ */ React
|
|
6313
|
+
/* @__PURE__ */ React.createElement(Icon, { as: CalendarDuo })
|
|
6314
6314
|
);
|
|
6315
6315
|
};
|
|
6316
6316
|
|
|
@@ -6339,7 +6339,7 @@ const DateSegment = ({ segment, state }) => {
|
|
|
6339
6339
|
const isDivider = segment.type === "literal";
|
|
6340
6340
|
const { dateSegment } = useMultiStyleConfig("DatePicker");
|
|
6341
6341
|
const minWidth = `${String(segment.maxValue).length}ch`;
|
|
6342
|
-
return /* @__PURE__ */ React
|
|
6342
|
+
return /* @__PURE__ */ React.createElement(
|
|
6343
6343
|
Box,
|
|
6344
6344
|
__spreadProps$n(__spreadValues$1C({}, segmentProps), {
|
|
6345
6345
|
ref,
|
|
@@ -6399,7 +6399,7 @@ const DateField = (props) => {
|
|
|
6399
6399
|
const sortedSegments = split(delimeterIncluded, dateFormat).map(
|
|
6400
6400
|
(query, index) => getMatchingSegment(query, index)
|
|
6401
6401
|
);
|
|
6402
|
-
return /* @__PURE__ */ React
|
|
6402
|
+
return /* @__PURE__ */ React.createElement(
|
|
6403
6403
|
Box,
|
|
6404
6404
|
__spreadProps$m(__spreadValues$1B({}, fieldProps), {
|
|
6405
6405
|
ref,
|
|
@@ -6409,7 +6409,7 @@ const DateField = (props) => {
|
|
|
6409
6409
|
}),
|
|
6410
6410
|
sortedSegments.map((segment, i) => {
|
|
6411
6411
|
const id = `${segment.type}-${i}`;
|
|
6412
|
-
return /* @__PURE__ */ React
|
|
6412
|
+
return /* @__PURE__ */ React.createElement(DateSegment, { segment, state, key: id });
|
|
6413
6413
|
})
|
|
6414
6414
|
);
|
|
6415
6415
|
};
|
|
@@ -6449,7 +6449,7 @@ const StyledField = forwardRef$1(
|
|
|
6449
6449
|
(_a, ref) => {
|
|
6450
6450
|
var _b = _a, { isInvalid, isDisabled, children, variant } = _b, rest = __objRest$1g(_b, ["isInvalid", "isDisabled", "children", "variant"]);
|
|
6451
6451
|
const { styledField } = useMultiStyleConfig("DatePicker", { variant });
|
|
6452
|
-
return /* @__PURE__ */ React
|
|
6452
|
+
return /* @__PURE__ */ React.createElement(
|
|
6453
6453
|
Box,
|
|
6454
6454
|
__spreadProps$l(__spreadValues$1A({}, rest), {
|
|
6455
6455
|
ref,
|
|
@@ -6481,7 +6481,7 @@ var __spreadValues$1z = (a, b) => {
|
|
|
6481
6481
|
}
|
|
6482
6482
|
return a;
|
|
6483
6483
|
};
|
|
6484
|
-
const Table = (props) => /* @__PURE__ */ React
|
|
6484
|
+
const Table = (props) => /* @__PURE__ */ React.createElement(Table$2, __spreadValues$1z({}, props));
|
|
6485
6485
|
|
|
6486
6486
|
var __defProp$1y = Object.defineProperty;
|
|
6487
6487
|
var __defProps$k = Object.defineProperties;
|
|
@@ -6515,7 +6515,7 @@ const CalendarCell = ({
|
|
|
6515
6515
|
);
|
|
6516
6516
|
const isToday = date.compare(today(state.timeZone)) === 0;
|
|
6517
6517
|
const isOutsideMonth = !isSameMonth(currentMonth, date);
|
|
6518
|
-
return /* @__PURE__ */ React
|
|
6518
|
+
return /* @__PURE__ */ React.createElement(chakra.td, __spreadValues$1y({}, cellProps), /* @__PURE__ */ React.createElement(
|
|
6519
6519
|
Button,
|
|
6520
6520
|
__spreadProps$k(__spreadValues$1y({}, buttonProps), {
|
|
6521
6521
|
ref,
|
|
@@ -6535,7 +6535,7 @@ const CalendarCell = ({
|
|
|
6535
6535
|
const DayLabels = memo(({ weekDays }) => {
|
|
6536
6536
|
const { dayLabel } = useMultiStyleConfig$1("Calendar");
|
|
6537
6537
|
const weekDaysWithIds = weekDays.map((day, i) => ({ label: day, _id: i }));
|
|
6538
|
-
return /* @__PURE__ */ React
|
|
6538
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, weekDaysWithIds.map(({ label, _id }) => /* @__PURE__ */ React.createElement(chakra$1.th, { key: _id, __css: dayLabel }, label)));
|
|
6539
6539
|
});
|
|
6540
6540
|
|
|
6541
6541
|
const mondayFirstWeekDays = ["M", "T", "W", "T", "F", "S", "S"];
|
|
@@ -6577,9 +6577,9 @@ const CalendarGrid = memo(
|
|
|
6577
6577
|
const { gridProps, headerProps } = useCalendarGrid(rest, state);
|
|
6578
6578
|
const weeksInMonth = getWeeksInMonth(startDate, locale);
|
|
6579
6579
|
const weekDays = getWeekdays(firstDayOfWeek);
|
|
6580
|
-
return /* @__PURE__ */ React
|
|
6581
|
-
(weekIndex) => /* @__PURE__ */ React
|
|
6582
|
-
(date) => date ? /* @__PURE__ */ React
|
|
6580
|
+
return /* @__PURE__ */ React.createElement(Table, __spreadValues$1x({ variant: "unstyled" }, gridProps), /* @__PURE__ */ React.createElement(Thead, __spreadValues$1x({}, headerProps), /* @__PURE__ */ React.createElement(Tr, null, /* @__PURE__ */ React.createElement(DayLabels, { weekDays }))), /* @__PURE__ */ React.createElement(Tbody, null, times(
|
|
6581
|
+
(weekIndex) => /* @__PURE__ */ React.createElement(Tr, { key: weekIndex }, state.getDatesInWeek(weekIndex, startDate).map(
|
|
6582
|
+
(date) => date ? /* @__PURE__ */ React.createElement(
|
|
6583
6583
|
CalendarCell,
|
|
6584
6584
|
{
|
|
6585
6585
|
key: date.day,
|
|
@@ -6587,7 +6587,7 @@ const CalendarGrid = memo(
|
|
|
6587
6587
|
date,
|
|
6588
6588
|
currentMonth: startDate
|
|
6589
6589
|
}
|
|
6590
|
-
) : /* @__PURE__ */ React
|
|
6590
|
+
) : /* @__PURE__ */ React.createElement(chakra.td, null)
|
|
6591
6591
|
)),
|
|
6592
6592
|
weeksInMonth
|
|
6593
6593
|
)));
|
|
@@ -6629,7 +6629,7 @@ const MonthButton = (_a) => {
|
|
|
6629
6629
|
var _b = _a, { children } = _b, rest = __objRest$1e(_b, ["children"]);
|
|
6630
6630
|
const ref = useRef(null);
|
|
6631
6631
|
const { buttonProps } = useButton(rest, ref);
|
|
6632
|
-
return /* @__PURE__ */ React
|
|
6632
|
+
return /* @__PURE__ */ React.createElement(
|
|
6633
6633
|
Button,
|
|
6634
6634
|
__spreadProps$j(__spreadValues$1w({}, buttonProps), {
|
|
6635
6635
|
boxSize: 8,
|
|
@@ -6664,7 +6664,7 @@ const MonthSelect = ({ state }) => {
|
|
|
6664
6664
|
const diff = index - selectedMonth;
|
|
6665
6665
|
state.setFocusedDate(state.visibleRange.start.add({ months: diff }));
|
|
6666
6666
|
};
|
|
6667
|
-
return /* @__PURE__ */ React
|
|
6667
|
+
return /* @__PURE__ */ React.createElement(
|
|
6668
6668
|
Select$2,
|
|
6669
6669
|
{
|
|
6670
6670
|
id: "month",
|
|
@@ -6678,7 +6678,7 @@ const MonthSelect = ({ state }) => {
|
|
|
6678
6678
|
w: "max-content",
|
|
6679
6679
|
textAlign: "center"
|
|
6680
6680
|
},
|
|
6681
|
-
months.map((month, i) => /* @__PURE__ */ React
|
|
6681
|
+
months.map((month, i) => /* @__PURE__ */ React.createElement("option", { value: i, key: `month-${i}` }, month))
|
|
6682
6682
|
);
|
|
6683
6683
|
};
|
|
6684
6684
|
|
|
@@ -6687,7 +6687,7 @@ const YearSelect = ({
|
|
|
6687
6687
|
years
|
|
6688
6688
|
}) => {
|
|
6689
6689
|
const { dateSelect } = useMultiStyleConfig("Calendar");
|
|
6690
|
-
return /* @__PURE__ */ React
|
|
6690
|
+
return /* @__PURE__ */ React.createElement(
|
|
6691
6691
|
Select$2,
|
|
6692
6692
|
{
|
|
6693
6693
|
id: "year",
|
|
@@ -6700,7 +6700,7 @@ const YearSelect = ({
|
|
|
6700
6700
|
sx: dateSelect,
|
|
6701
6701
|
w: "max-content"
|
|
6702
6702
|
},
|
|
6703
|
-
years.map((year, i) => /* @__PURE__ */ React
|
|
6703
|
+
years.map((year, i) => /* @__PURE__ */ React.createElement("option", { key: year.formatted, value: i }, year.formatted))
|
|
6704
6704
|
);
|
|
6705
6705
|
};
|
|
6706
6706
|
|
|
@@ -6739,7 +6739,7 @@ const YearSelectCalendar = ({ state }) => {
|
|
|
6739
6739
|
const date = years[index].value;
|
|
6740
6740
|
state.setFocusedDate(date);
|
|
6741
6741
|
};
|
|
6742
|
-
return /* @__PURE__ */ React
|
|
6742
|
+
return /* @__PURE__ */ React.createElement(YearSelect, { onChange, years });
|
|
6743
6743
|
};
|
|
6744
6744
|
|
|
6745
6745
|
const YearSelectRangeCalendar = ({
|
|
@@ -6751,7 +6751,7 @@ const YearSelectRangeCalendar = ({
|
|
|
6751
6751
|
const date = years[index].value;
|
|
6752
6752
|
state.setFocusedDate(date);
|
|
6753
6753
|
};
|
|
6754
|
-
return /* @__PURE__ */ React
|
|
6754
|
+
return /* @__PURE__ */ React.createElement(YearSelect, { onChange, years });
|
|
6755
6755
|
};
|
|
6756
6756
|
|
|
6757
6757
|
const MILLISECONDS_PER_DAY = 864e5;
|
|
@@ -6826,7 +6826,7 @@ const RangeCell = ({
|
|
|
6826
6826
|
}) => {
|
|
6827
6827
|
const isOutsideMonth = !isSameMonth(currentMonth, date);
|
|
6828
6828
|
if (isOutsideMonth)
|
|
6829
|
-
return /* @__PURE__ */ React
|
|
6829
|
+
return /* @__PURE__ */ React.createElement(chakra.td, null);
|
|
6830
6830
|
const ref = useRef(null);
|
|
6831
6831
|
const {
|
|
6832
6832
|
cellProps,
|
|
@@ -6837,7 +6837,7 @@ const RangeCell = ({
|
|
|
6837
6837
|
const isToday = date.compare(today(state.timeZone)) === 0;
|
|
6838
6838
|
const isHighlighted = range && date < range.end && date > range.start;
|
|
6839
6839
|
const isSelected = range && !isHighlighted && (equals(date, range.start) || equals(date, range.end));
|
|
6840
|
-
return /* @__PURE__ */ React
|
|
6840
|
+
return /* @__PURE__ */ React.createElement(chakra.td, __spreadValues$1v({}, cellProps), /* @__PURE__ */ React.createElement(
|
|
6841
6841
|
chakra.button,
|
|
6842
6842
|
__spreadProps$i(__spreadValues$1v({}, buttonProps), {
|
|
6843
6843
|
type: "button",
|
|
@@ -6929,15 +6929,15 @@ const StandaloneCalendarGrid = (_a) => {
|
|
|
6929
6929
|
const weekNumber = getWeekNumberAtStartOfMonth(startDate.year, startDate.month);
|
|
6930
6930
|
return weekNumber;
|
|
6931
6931
|
}, [startDate.year, startDate.month]);
|
|
6932
|
-
return /* @__PURE__ */ React
|
|
6932
|
+
return /* @__PURE__ */ React.createElement(Box, __spreadProps$h(__spreadValues$1u({}, calendarProps), { h: "265px", p: "0" }), /* @__PURE__ */ React.createElement(Stack, null, /* @__PURE__ */ React.createElement(Flex, { justify: "space-between", w: "full", p: "1", alignItems: "center" }, /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1u({}, prevButtonProps), /* @__PURE__ */ React.createElement(Icon, { as: ChevronLeftSolid, boxSize: 4 })), /* @__PURE__ */ React.createElement(HStack, { spacing: "0" }, /* @__PURE__ */ React.createElement(MonthSelect, { state }), /* @__PURE__ */ React.createElement(YearSelectRangeCalendar, { state })), /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1u({}, nextButtonProps), /* @__PURE__ */ React.createElement(Icon, { as: ChevronRightSolid, boxSize: 4 }))), /* @__PURE__ */ React.createElement(chakra.table, __spreadProps$h(__spreadValues$1u({}, gridProps), { sx: { borderSpacing: "0" } }), /* @__PURE__ */ React.createElement(chakra.thead, __spreadValues$1u({}, headerProps), /* @__PURE__ */ React.createElement(chakra.tr, null, /* @__PURE__ */ React.createElement(chakra.th, null), /* @__PURE__ */ React.createElement(DayLabels, { weekDays }))), /* @__PURE__ */ React.createElement(chakra.tbody, null, times((weekIndex) => {
|
|
6933
6933
|
const weekNumber = getDisplayWeek(
|
|
6934
6934
|
weekNumberStart,
|
|
6935
6935
|
weekIndex,
|
|
6936
6936
|
startDate.year,
|
|
6937
6937
|
startDate.month
|
|
6938
6938
|
);
|
|
6939
|
-
return /* @__PURE__ */ React
|
|
6940
|
-
(date) => date ? /* @__PURE__ */ React
|
|
6939
|
+
return /* @__PURE__ */ React.createElement(chakra.tr, { key: weekIndex }, /* @__PURE__ */ React.createElement(chakra.td, null, /* @__PURE__ */ React.createElement(Small, { sx: { color: "text.subdued" }, pr: "2" }, "w.", weekNumber)), state.getDatesInWeek(weekIndex, startDate).map(
|
|
6940
|
+
(date) => date ? /* @__PURE__ */ React.createElement(
|
|
6941
6941
|
RangeCell,
|
|
6942
6942
|
{
|
|
6943
6943
|
key: date.day,
|
|
@@ -6946,7 +6946,7 @@ const StandaloneCalendarGrid = (_a) => {
|
|
|
6946
6946
|
date,
|
|
6947
6947
|
currentMonth: startDate
|
|
6948
6948
|
}
|
|
6949
|
-
) : /* @__PURE__ */ React
|
|
6949
|
+
) : /* @__PURE__ */ React.createElement(chakra.td, null)
|
|
6950
6950
|
));
|
|
6951
6951
|
}, weeksInMonth)))));
|
|
6952
6952
|
};
|
|
@@ -6982,7 +6982,7 @@ const Calendar = (props) => {
|
|
|
6982
6982
|
props,
|
|
6983
6983
|
state
|
|
6984
6984
|
);
|
|
6985
|
-
return /* @__PURE__ */ React
|
|
6985
|
+
return /* @__PURE__ */ React.createElement(Box, __spreadProps$g(__spreadValues$1t({}, calendarProps), { __css: container }), /* @__PURE__ */ React.createElement(Stack, null, /* @__PURE__ */ React.createElement(Flex, { justifyContent: "space-between" }, /* @__PURE__ */ React.createElement(Box, { paddingInlineStart: "2" }, /* @__PURE__ */ React.createElement(YearSelectCalendar, { state })), /* @__PURE__ */ React.createElement(HStack, { spacing: 2 }, /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1t({}, prevButtonProps), /* @__PURE__ */ React.createElement(Icon, { as: ChevronLeftSolid, boxSize: 4 })), /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1t({}, nextButtonProps), /* @__PURE__ */ React.createElement(Icon, { as: ChevronRightSolid, boxSize: 4 })))), /* @__PURE__ */ React.createElement(
|
|
6986
6986
|
CalendarGrid,
|
|
6987
6987
|
{
|
|
6988
6988
|
state,
|
|
@@ -6997,7 +6997,7 @@ const DatePickerLocaleWrapper = ({
|
|
|
6997
6997
|
children
|
|
6998
6998
|
}) => {
|
|
6999
6999
|
const locale = firstDayOfWeek === "monday" ? "en-DE" : "en-US";
|
|
7000
|
-
return /* @__PURE__ */ React
|
|
7000
|
+
return /* @__PURE__ */ React.createElement(I18nProvider, { locale }, children);
|
|
7001
7001
|
};
|
|
7002
7002
|
|
|
7003
7003
|
var __defProp$1s = Object.defineProperty;
|
|
@@ -7042,35 +7042,35 @@ const DatePicker = (props) => {
|
|
|
7042
7042
|
ref
|
|
7043
7043
|
);
|
|
7044
7044
|
const togglePopup = () => state.setOpen(!state.isOpen);
|
|
7045
|
-
return /* @__PURE__ */ React
|
|
7045
|
+
return /* @__PURE__ */ React.createElement(
|
|
7046
7046
|
Popover,
|
|
7047
7047
|
{
|
|
7048
7048
|
isOpen: state.isOpen,
|
|
7049
7049
|
onClose: () => state.setOpen(false),
|
|
7050
7050
|
placement: "bottom-end"
|
|
7051
7051
|
},
|
|
7052
|
-
/* @__PURE__ */ React
|
|
7052
|
+
/* @__PURE__ */ React.createElement(PopoverAnchor, null, /* @__PURE__ */ React.createElement(HStack, { minW: 56 }, /* @__PURE__ */ React.createElement(InputGroup, __spreadProps$f(__spreadValues$1s({}, groupProps), { ref, __css: group }), /* @__PURE__ */ React.createElement(
|
|
7053
7053
|
StyledField,
|
|
7054
7054
|
{
|
|
7055
7055
|
isDisabled,
|
|
7056
7056
|
isInvalid,
|
|
7057
7057
|
variant
|
|
7058
7058
|
},
|
|
7059
|
-
/* @__PURE__ */ React
|
|
7060
|
-
), /* @__PURE__ */ React
|
|
7059
|
+
/* @__PURE__ */ React.createElement(Box, { paddingInlineStart: "1a", paddingInlineEnd: 10 }, /* @__PURE__ */ React.createElement(DateField, __spreadProps$f(__spreadValues$1s({}, fieldProps), { dateFormat })))
|
|
7060
|
+
), /* @__PURE__ */ React.createElement(
|
|
7061
7061
|
InputRightElement,
|
|
7062
7062
|
{
|
|
7063
7063
|
sx: { height: "100%", paddingRight: "1" },
|
|
7064
7064
|
zIndex: 0
|
|
7065
7065
|
},
|
|
7066
|
-
/* @__PURE__ */ React
|
|
7066
|
+
/* @__PURE__ */ React.createElement(
|
|
7067
7067
|
Trigger,
|
|
7068
7068
|
__spreadProps$f(__spreadValues$1s({}, buttonProps), {
|
|
7069
7069
|
isDisabled,
|
|
7070
7070
|
handleClick: togglePopup
|
|
7071
7071
|
})
|
|
7072
7072
|
)
|
|
7073
|
-
)), /* @__PURE__ */ React
|
|
7073
|
+
)), /* @__PURE__ */ React.createElement(
|
|
7074
7074
|
IconButton,
|
|
7075
7075
|
{
|
|
7076
7076
|
"aria-label": "reset-date",
|
|
@@ -7080,10 +7080,10 @@ const DatePicker = (props) => {
|
|
|
7080
7080
|
onClick: resetDate,
|
|
7081
7081
|
hidden: !state.dateValue || !isClearable,
|
|
7082
7082
|
isDisabled,
|
|
7083
|
-
icon: /* @__PURE__ */ React
|
|
7083
|
+
icon: /* @__PURE__ */ React.createElement(Icon, { as: XCloseSolid })
|
|
7084
7084
|
}
|
|
7085
7085
|
))),
|
|
7086
|
-
state.isOpen && /* @__PURE__ */ React
|
|
7086
|
+
state.isOpen && /* @__PURE__ */ React.createElement(PopoverContent, __spreadProps$f(__spreadValues$1s({}, dialogProps), { ref, w: 64, border: "none" }), /* @__PURE__ */ React.createElement(FocusScope, { contain: true, restoreFocus: true }, /* @__PURE__ */ React.createElement(DatePickerLocaleWrapper, { firstDayOfWeek }, /* @__PURE__ */ React.createElement(Calendar, __spreadProps$f(__spreadValues$1s({}, calendarProps), { firstDayOfWeek })))))
|
|
7087
7087
|
);
|
|
7088
7088
|
};
|
|
7089
7089
|
|
|
@@ -7118,7 +7118,7 @@ var __objRest$1c = (source, exclude) => {
|
|
|
7118
7118
|
const Clickable = (_a) => {
|
|
7119
7119
|
var _b = _a, { href, linkProps } = _b, rest = __objRest$1c(_b, ["href", "linkProps"]);
|
|
7120
7120
|
const clickable = useClickable(rest);
|
|
7121
|
-
return /* @__PURE__ */ React
|
|
7121
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, !isNil(href) && /* @__PURE__ */ React.createElement(
|
|
7122
7122
|
Link$1,
|
|
7123
7123
|
__spreadValues$1r(__spreadValues$1r({
|
|
7124
7124
|
as: Link$2,
|
|
@@ -7126,14 +7126,14 @@ const Clickable = (_a) => {
|
|
|
7126
7126
|
to: href,
|
|
7127
7127
|
_hover: { textDecoration: "none" }
|
|
7128
7128
|
}, linkProps), clickable)
|
|
7129
|
-
), isNil(href) && /* @__PURE__ */ React
|
|
7129
|
+
), isNil(href) && /* @__PURE__ */ React.createElement(chakra.button, __spreadValues$1r({ _focusVisible: ring }, clickable)));
|
|
7130
7130
|
};
|
|
7131
7131
|
|
|
7132
7132
|
const DateButton = ({
|
|
7133
7133
|
isActive,
|
|
7134
7134
|
onClick,
|
|
7135
7135
|
children
|
|
7136
|
-
}) => /* @__PURE__ */ React
|
|
7136
|
+
}) => /* @__PURE__ */ React.createElement(Flex, { maxW: "120px" }, /* @__PURE__ */ React.createElement(Clickable, { onClick }, /* @__PURE__ */ React.createElement(
|
|
7137
7137
|
Label,
|
|
7138
7138
|
{
|
|
7139
7139
|
_hover: {
|
|
@@ -7400,7 +7400,7 @@ const QuickSelect = ({
|
|
|
7400
7400
|
};
|
|
7401
7401
|
const getIsActive = (newDate) => equals(state.value, newDate.value);
|
|
7402
7402
|
const shouldShow = (dates) => any((date) => validRange(date.value, state), dates);
|
|
7403
|
-
return /* @__PURE__ */ React
|
|
7403
|
+
return /* @__PURE__ */ React.createElement(Stack, { alignItems: "start", borderRight: seperator, pt: "2" }, /* @__PURE__ */ React.createElement(
|
|
7404
7404
|
Stack,
|
|
7405
7405
|
{
|
|
7406
7406
|
h: height,
|
|
@@ -7411,7 +7411,7 @@ const QuickSelect = ({
|
|
|
7411
7411
|
display: shouldShow(quickDates) ? "initial" : "none"
|
|
7412
7412
|
},
|
|
7413
7413
|
map(
|
|
7414
|
-
(quickDate) => validRange(quickDate.value, state) && /* @__PURE__ */ React
|
|
7414
|
+
(quickDate) => validRange(quickDate.value, state) && /* @__PURE__ */ React.createElement(Box, { minH: "20px", key: `quick-select-${quickDate.label}` }, /* @__PURE__ */ React.createElement(
|
|
7415
7415
|
DateButton,
|
|
7416
7416
|
{
|
|
7417
7417
|
onClick: updateDate(quickDate.value),
|
|
@@ -7421,14 +7421,14 @@ const QuickSelect = ({
|
|
|
7421
7421
|
)),
|
|
7422
7422
|
quickDates
|
|
7423
7423
|
)
|
|
7424
|
-
), /* @__PURE__ */ React
|
|
7424
|
+
), /* @__PURE__ */ React.createElement(
|
|
7425
7425
|
Box,
|
|
7426
7426
|
{
|
|
7427
7427
|
w: "50%",
|
|
7428
7428
|
borderTop: seperator,
|
|
7429
7429
|
display: shouldShow(fiscalQuarters) ? "initial" : "none"
|
|
7430
7430
|
}
|
|
7431
|
-
), /* @__PURE__ */ React
|
|
7431
|
+
), /* @__PURE__ */ React.createElement(Spacer, null), /* @__PURE__ */ React.createElement(
|
|
7432
7432
|
Flex,
|
|
7433
7433
|
{
|
|
7434
7434
|
justifyContent: "space-between",
|
|
@@ -7438,7 +7438,7 @@ const QuickSelect = ({
|
|
|
7438
7438
|
display: shouldShow(fiscalQuarters) ? "flex" : "none"
|
|
7439
7439
|
},
|
|
7440
7440
|
map(
|
|
7441
|
-
(quarter) => validRange(quarter.value, state) && /* @__PURE__ */ React
|
|
7441
|
+
(quarter) => validRange(quarter.value, state) && /* @__PURE__ */ React.createElement(
|
|
7442
7442
|
DateButton,
|
|
7443
7443
|
{
|
|
7444
7444
|
onClick: updateDate(quarter.value),
|
|
@@ -7537,7 +7537,7 @@ const RangeCalendar = (props) => {
|
|
|
7537
7537
|
onSave == null ? void 0 : onSave();
|
|
7538
7538
|
handleClose();
|
|
7539
7539
|
};
|
|
7540
|
-
return /* @__PURE__ */ React
|
|
7540
|
+
return /* @__PURE__ */ React.createElement(Box, { ref, __css: rangeCalendarContainer }, /* @__PURE__ */ React.createElement(Stack, null, /* @__PURE__ */ React.createElement(Flex, { gap: 4 }, /* @__PURE__ */ React.createElement(
|
|
7541
7541
|
QuickSelect,
|
|
7542
7542
|
{
|
|
7543
7543
|
state,
|
|
@@ -7545,21 +7545,21 @@ const RangeCalendar = (props) => {
|
|
|
7545
7545
|
fiscalStartMonth,
|
|
7546
7546
|
fiscalStartDay
|
|
7547
7547
|
}
|
|
7548
|
-
), /* @__PURE__ */ React
|
|
7548
|
+
), /* @__PURE__ */ React.createElement(Stack, null, /* @__PURE__ */ React.createElement(HStack, { alignItems: "start", spacing: 8, h: "full", pt: "2" }, /* @__PURE__ */ React.createElement(Stack, __spreadValues$1q({ h: "full" }, focusedStartMonthProps), /* @__PURE__ */ React.createElement(Box, { p: "2" }, /* @__PURE__ */ React.createElement(Label, { size: "xs" }, "Start date:"), /* @__PURE__ */ React.createElement(
|
|
7549
7549
|
StandaloneCalendarGrid,
|
|
7550
7550
|
{
|
|
7551
7551
|
state: calendarOneState,
|
|
7552
7552
|
range: value,
|
|
7553
7553
|
firstDayOfWeek
|
|
7554
7554
|
}
|
|
7555
|
-
))), /* @__PURE__ */ React
|
|
7555
|
+
))), /* @__PURE__ */ React.createElement(Stack, { h: "full", justify: "space-between" }, /* @__PURE__ */ React.createElement(Stack, { opacity: value && value.start ? "1" : "0.4" }, /* @__PURE__ */ React.createElement(Box, { p: "2" }, /* @__PURE__ */ React.createElement(Label, { size: "xs" }, "End date:"), /* @__PURE__ */ React.createElement(
|
|
7556
7556
|
StandaloneCalendarGrid,
|
|
7557
7557
|
{
|
|
7558
7558
|
state: calendarTwoState,
|
|
7559
7559
|
range: value,
|
|
7560
7560
|
firstDayOfWeek
|
|
7561
7561
|
}
|
|
7562
|
-
))), /* @__PURE__ */ React
|
|
7562
|
+
))), /* @__PURE__ */ React.createElement(HStack, { pt: "2", alignSelf: "end" }, isClearable && /* @__PURE__ */ React.createElement(Button, { onClick: resetDate, variant: "ghost", size: "sm" }, "Clear"), /* @__PURE__ */ React.createElement(Button, { variant: "brand", onClick: handleSave, size: "sm" }, buttonLabel))))))));
|
|
7563
7563
|
};
|
|
7564
7564
|
|
|
7565
7565
|
const isValidDateRange = (value) => is(Object, value) && has("startDate", value) && has("endDate", value) && is(String, value.startDate) && is(String, value.endDate);
|
|
@@ -7593,9 +7593,9 @@ const PortalWrapper = ({
|
|
|
7593
7593
|
children
|
|
7594
7594
|
}) => {
|
|
7595
7595
|
if (renderInPortal) {
|
|
7596
|
-
return /* @__PURE__ */ React
|
|
7596
|
+
return /* @__PURE__ */ React.createElement(Portal, null, children);
|
|
7597
7597
|
}
|
|
7598
|
-
return /* @__PURE__ */ React
|
|
7598
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
|
|
7599
7599
|
};
|
|
7600
7600
|
const DateRangePicker = (props) => {
|
|
7601
7601
|
const {
|
|
@@ -7655,28 +7655,28 @@ const DateRangePicker = (props) => {
|
|
|
7655
7655
|
ref,
|
|
7656
7656
|
handler: () => state.setOpen(false)
|
|
7657
7657
|
});
|
|
7658
|
-
return /* @__PURE__ */ React
|
|
7658
|
+
return /* @__PURE__ */ React.createElement(
|
|
7659
7659
|
Popover,
|
|
7660
7660
|
{
|
|
7661
7661
|
isOpen: state.isOpen,
|
|
7662
7662
|
onClose: handleClose,
|
|
7663
7663
|
placement: "bottom-start"
|
|
7664
7664
|
},
|
|
7665
|
-
/* @__PURE__ */ React
|
|
7665
|
+
/* @__PURE__ */ React.createElement(PopoverAnchor, null, /* @__PURE__ */ React.createElement(HStack, null, /* @__PURE__ */ React.createElement(InputGroup, __spreadProps$e(__spreadValues$1p({}, groupProps), { ref, __css: group }), /* @__PURE__ */ React.createElement(
|
|
7666
7666
|
StyledField,
|
|
7667
7667
|
{
|
|
7668
7668
|
isDisabled,
|
|
7669
7669
|
isInvalid,
|
|
7670
7670
|
variant
|
|
7671
7671
|
},
|
|
7672
|
-
/* @__PURE__ */ React
|
|
7673
|
-
), /* @__PURE__ */ React
|
|
7672
|
+
/* @__PURE__ */ React.createElement(HStack, { paddingInlineStart: "1a", paddingInlineEnd: 10 }, /* @__PURE__ */ React.createElement(DateField, __spreadProps$e(__spreadValues$1p({}, startFieldProps), { dateFormat })), /* @__PURE__ */ React.createElement(P, null, "-"), /* @__PURE__ */ React.createElement(DateField, __spreadProps$e(__spreadValues$1p({}, endFieldProps), { dateFormat })))
|
|
7673
|
+
), /* @__PURE__ */ React.createElement(InputRightElement, { sx: { height: "100%", paddingRight: "1" } }, /* @__PURE__ */ React.createElement(
|
|
7674
7674
|
Trigger,
|
|
7675
7675
|
__spreadProps$e(__spreadValues$1p({}, buttonProps), {
|
|
7676
7676
|
isDisabled,
|
|
7677
7677
|
handleClick: togglePopup
|
|
7678
7678
|
})
|
|
7679
|
-
))), /* @__PURE__ */ React
|
|
7679
|
+
))), /* @__PURE__ */ React.createElement(
|
|
7680
7680
|
IconButton,
|
|
7681
7681
|
{
|
|
7682
7682
|
"aria-label": "reset-date",
|
|
@@ -7686,10 +7686,10 @@ const DateRangePicker = (props) => {
|
|
|
7686
7686
|
onClick: resetDate,
|
|
7687
7687
|
hidden: !isClearable,
|
|
7688
7688
|
isDisabled,
|
|
7689
|
-
icon: /* @__PURE__ */ React
|
|
7689
|
+
icon: /* @__PURE__ */ React.createElement(Icon, { as: XCloseSolid })
|
|
7690
7690
|
}
|
|
7691
7691
|
))),
|
|
7692
|
-
/* @__PURE__ */ React
|
|
7692
|
+
/* @__PURE__ */ React.createElement(PortalWrapper, { renderInPortal }, state.isOpen && /* @__PURE__ */ React.createElement(PopoverContent, __spreadProps$e(__spreadValues$1p({}, dialogProps), { ref, w: "max-content" }), /* @__PURE__ */ React.createElement(FocusScope, { contain: true, restoreFocus: true }, /* @__PURE__ */ React.createElement(DatePickerLocaleWrapper, { firstDayOfWeek }, /* @__PURE__ */ React.createElement(
|
|
7693
7693
|
RangeCalendar,
|
|
7694
7694
|
__spreadProps$e(__spreadValues$1p({}, calendarProps), {
|
|
7695
7695
|
resetDate,
|
|
@@ -7744,7 +7744,7 @@ const InputGroupWrapper = (_a) => {
|
|
|
7744
7744
|
"children"
|
|
7745
7745
|
]);
|
|
7746
7746
|
const containsInputGroupElement = not(all(isNil, [inputLeftElement, inputRightElement]));
|
|
7747
|
-
return containsInputGroupElement ? /* @__PURE__ */ React
|
|
7747
|
+
return containsInputGroupElement ? /* @__PURE__ */ React.createElement(InputGroup, __spreadValues$1o({}, rest), inputLeftElement, children, inputRightElement) : /* @__PURE__ */ React.createElement(React.Fragment, null, children);
|
|
7748
7748
|
};
|
|
7749
7749
|
|
|
7750
7750
|
var __defProp$1n = Object.defineProperty;
|
|
@@ -7814,7 +7814,7 @@ const DatePickerField = forwardRef$1((_a, ref) => {
|
|
|
7814
7814
|
}
|
|
7815
7815
|
onChangeCallback(date);
|
|
7816
7816
|
};
|
|
7817
|
-
return /* @__PURE__ */ React
|
|
7817
|
+
return /* @__PURE__ */ React.createElement(
|
|
7818
7818
|
Field,
|
|
7819
7819
|
{
|
|
7820
7820
|
name,
|
|
@@ -7824,13 +7824,13 @@ const DatePickerField = forwardRef$1((_a, ref) => {
|
|
|
7824
7824
|
validate,
|
|
7825
7825
|
ref
|
|
7826
7826
|
},
|
|
7827
|
-
({ value, onChange }, { formState: { errors } }) => /* @__PURE__ */ React
|
|
7827
|
+
({ value, onChange }, { formState: { errors } }) => /* @__PURE__ */ React.createElement(
|
|
7828
7828
|
InputGroupWrapper,
|
|
7829
7829
|
{
|
|
7830
7830
|
inputLeftElement,
|
|
7831
7831
|
inputRightElement
|
|
7832
7832
|
},
|
|
7833
|
-
/* @__PURE__ */ React
|
|
7833
|
+
/* @__PURE__ */ React.createElement(
|
|
7834
7834
|
DatePicker,
|
|
7835
7835
|
__spreadValues$1n({
|
|
7836
7836
|
firstDayOfWeek,
|
|
@@ -7917,7 +7917,7 @@ const DateRangePickerField = forwardRef$1((_a, ref) => {
|
|
|
7917
7917
|
}
|
|
7918
7918
|
onChangeCallback(dateRange);
|
|
7919
7919
|
};
|
|
7920
|
-
return /* @__PURE__ */ React
|
|
7920
|
+
return /* @__PURE__ */ React.createElement(
|
|
7921
7921
|
Field,
|
|
7922
7922
|
{
|
|
7923
7923
|
name,
|
|
@@ -7927,7 +7927,7 @@ const DateRangePickerField = forwardRef$1((_a, ref) => {
|
|
|
7927
7927
|
validate,
|
|
7928
7928
|
ref
|
|
7929
7929
|
},
|
|
7930
|
-
({ value, onChange }, { formState: { errors } }) => /* @__PURE__ */ React
|
|
7930
|
+
({ value, onChange }, { formState: { errors } }) => /* @__PURE__ */ React.createElement(
|
|
7931
7931
|
DateRangePicker,
|
|
7932
7932
|
__spreadValues$1m({
|
|
7933
7933
|
firstDayOfWeek,
|
|
@@ -8002,7 +8002,7 @@ const Tooltip = (_a) => {
|
|
|
8002
8002
|
]);
|
|
8003
8003
|
const iconVariant = variant;
|
|
8004
8004
|
const icon = tooltipIconMap[iconVariant];
|
|
8005
|
-
const TooltipContent = /* @__PURE__ */ React
|
|
8005
|
+
const TooltipContent = /* @__PURE__ */ React.createElement(HStack, { alignItems: "flex-start" }, hasIcon && /* @__PURE__ */ React.createElement(Icon, { as: icon, color: `icon.toast.${iconVariant}` }), /* @__PURE__ */ React.createElement(VStack, { spacing: 0, alignItems: "flex-start" }, /* @__PURE__ */ React.createElement(Label, { size: "sm" }, title), /* @__PURE__ */ React.createElement(
|
|
8006
8006
|
P,
|
|
8007
8007
|
{
|
|
8008
8008
|
variant: "14",
|
|
@@ -8012,7 +8012,7 @@ const Tooltip = (_a) => {
|
|
|
8012
8012
|
},
|
|
8013
8013
|
description
|
|
8014
8014
|
)));
|
|
8015
|
-
return /* @__PURE__ */ React
|
|
8015
|
+
return /* @__PURE__ */ React.createElement(
|
|
8016
8016
|
Tooltip$2,
|
|
8017
8017
|
__spreadValues$1l({
|
|
8018
8018
|
hasArrow,
|
|
@@ -8064,7 +8064,7 @@ const TimeoutProgressCircle = (_a) => {
|
|
|
8064
8064
|
const SVG_SIZE = 2 * (RADIUS + STROKE_WIDTH);
|
|
8065
8065
|
const CIRCUMFERENCE = 2 * Math.PI * RADIUS;
|
|
8066
8066
|
const strokeDashoffset = CIRCUMFERENCE - progress / 100 * CIRCUMFERENCE;
|
|
8067
|
-
return /* @__PURE__ */ React
|
|
8067
|
+
return /* @__PURE__ */ React.createElement(
|
|
8068
8068
|
Circle,
|
|
8069
8069
|
__spreadValues$1k({
|
|
8070
8070
|
as: "svg",
|
|
@@ -8074,7 +8074,7 @@ const TimeoutProgressCircle = (_a) => {
|
|
|
8074
8074
|
transform: "rotate(-90deg)"
|
|
8075
8075
|
}
|
|
8076
8076
|
}, rest),
|
|
8077
|
-
/* @__PURE__ */ React
|
|
8077
|
+
/* @__PURE__ */ React.createElement(
|
|
8078
8078
|
chakra$1.circle,
|
|
8079
8079
|
{
|
|
8080
8080
|
cx: SVG_SIZE / 2,
|
|
@@ -8085,7 +8085,7 @@ const TimeoutProgressCircle = (_a) => {
|
|
|
8085
8085
|
strokeWidth: STROKE_WIDTH
|
|
8086
8086
|
}
|
|
8087
8087
|
),
|
|
8088
|
-
/* @__PURE__ */ React
|
|
8088
|
+
/* @__PURE__ */ React.createElement(
|
|
8089
8089
|
chakra$1.circle,
|
|
8090
8090
|
{
|
|
8091
8091
|
cx: SVG_SIZE / 2,
|
|
@@ -8179,7 +8179,7 @@ const IntentButton = (_a) => {
|
|
|
8179
8179
|
setIsHovering(false);
|
|
8180
8180
|
clearTimer();
|
|
8181
8181
|
};
|
|
8182
|
-
return /* @__PURE__ */ React
|
|
8182
|
+
return /* @__PURE__ */ React.createElement(Tooltip, { label: tooltipText, placement: "top" }, /* @__PURE__ */ React.createElement(
|
|
8183
8183
|
Center,
|
|
8184
8184
|
__spreadValues$1j({
|
|
8185
8185
|
position: "relative",
|
|
@@ -8191,16 +8191,16 @@ const IntentButton = (_a) => {
|
|
|
8191
8191
|
boxSize: "50px",
|
|
8192
8192
|
opacity: `${(100 - progress) / 100}`
|
|
8193
8193
|
}, rest),
|
|
8194
|
-
/* @__PURE__ */ React
|
|
8194
|
+
/* @__PURE__ */ React.createElement(
|
|
8195
8195
|
IconButton,
|
|
8196
8196
|
{
|
|
8197
|
-
icon: /* @__PURE__ */ React
|
|
8197
|
+
icon: /* @__PURE__ */ React.createElement(Icon, { as: icon }),
|
|
8198
8198
|
size: "md",
|
|
8199
8199
|
"aria-label": ariaLabel,
|
|
8200
8200
|
variant: "ghost"
|
|
8201
8201
|
}
|
|
8202
8202
|
),
|
|
8203
|
-
isHovering && /* @__PURE__ */ React
|
|
8203
|
+
isHovering && /* @__PURE__ */ React.createElement(
|
|
8204
8204
|
TimeoutProgressCircle,
|
|
8205
8205
|
{
|
|
8206
8206
|
ringColor,
|
|
@@ -8329,7 +8329,7 @@ const Fade = (_a) => {
|
|
|
8329
8329
|
const showWithDelay = useDelay(show, enterDelay, exitDelay);
|
|
8330
8330
|
const isHidden = useHiddenDisplay(show, exitDelay, exitDuration, duration, onTransitionComplete);
|
|
8331
8331
|
const childrenWithProps = getChildrenWithFocus(children, disableFocus, isHidden);
|
|
8332
|
-
return /* @__PURE__ */ React
|
|
8332
|
+
return /* @__PURE__ */ React.createElement(
|
|
8333
8333
|
Fade$1,
|
|
8334
8334
|
__spreadValues$1i({
|
|
8335
8335
|
in: showWithDelay,
|
|
@@ -8396,7 +8396,7 @@ const ScaleFade = (_a) => {
|
|
|
8396
8396
|
const showWithDelay = useDelay(show, enterDelay, exitDelay);
|
|
8397
8397
|
const isHidden = useHiddenDisplay(show, exitDelay, exitDuration, duration, onTransitionComplete);
|
|
8398
8398
|
const childrenWithProps = getChildrenWithFocus(children, disableFocus, isHidden);
|
|
8399
|
-
return /* @__PURE__ */ React
|
|
8399
|
+
return /* @__PURE__ */ React.createElement(
|
|
8400
8400
|
ScaleFade$1,
|
|
8401
8401
|
__spreadValues$1h({
|
|
8402
8402
|
in: showWithDelay,
|
|
@@ -8465,7 +8465,7 @@ const Slide = (_a) => {
|
|
|
8465
8465
|
const showWithDelay = useDelay(show, enterDelay, exitDelay);
|
|
8466
8466
|
const isHidden = useHiddenDisplay(show, exitDelay, exitDuration, duration, onTransitionComplete);
|
|
8467
8467
|
const childrenWithProps = getChildrenWithFocus(children, disableFocus, isHidden);
|
|
8468
|
-
return /* @__PURE__ */ React
|
|
8468
|
+
return /* @__PURE__ */ React.createElement(
|
|
8469
8469
|
Slide$1,
|
|
8470
8470
|
__spreadValues$1g({
|
|
8471
8471
|
in: showWithDelay,
|
|
@@ -8542,7 +8542,7 @@ const SlideFade = (_a) => {
|
|
|
8542
8542
|
const showWithDelay = useDelay(show, enterDelay, exitDelay);
|
|
8543
8543
|
const isHidden = useHiddenDisplay(show, exitDelay, exitDuration, duration, onTransitionComplete);
|
|
8544
8544
|
const childrenWithProps = getChildrenWithFocus(children, disableFocus, isHidden);
|
|
8545
|
-
return /* @__PURE__ */ React
|
|
8545
|
+
return /* @__PURE__ */ React.createElement(
|
|
8546
8546
|
SlideFade$1,
|
|
8547
8547
|
__spreadValues$1f({
|
|
8548
8548
|
in: showWithDelay,
|
|
@@ -8611,7 +8611,7 @@ const Collapse = (_a) => {
|
|
|
8611
8611
|
const showWithDelay = useDelay(show, enterDelay, exitDelay);
|
|
8612
8612
|
const isHidden = useHiddenDisplay(show, exitDelay, exitDuration, duration, onTransitionComplete);
|
|
8613
8613
|
const childrenWithProps = getChildrenWithFocus(children, disableFocus, isHidden);
|
|
8614
|
-
return /* @__PURE__ */ React
|
|
8614
|
+
return /* @__PURE__ */ React.createElement(
|
|
8615
8615
|
Collapse$1,
|
|
8616
8616
|
__spreadValues$1e({
|
|
8617
8617
|
in: showWithDelay,
|
|
@@ -8702,13 +8702,13 @@ const Toolbox = (_a) => {
|
|
|
8702
8702
|
defaultWidthPx,
|
|
8703
8703
|
stationaryEdge: direction
|
|
8704
8704
|
});
|
|
8705
|
-
return /* @__PURE__ */ React
|
|
8705
|
+
return /* @__PURE__ */ React.createElement(
|
|
8706
8706
|
Box,
|
|
8707
8707
|
{
|
|
8708
8708
|
w: adjustableWidth,
|
|
8709
8709
|
display: isOpen && shouldPush ? "initial" : "none"
|
|
8710
8710
|
},
|
|
8711
|
-
/* @__PURE__ */ React
|
|
8711
|
+
/* @__PURE__ */ React.createElement(Portal, null, /* @__PURE__ */ React.createElement(
|
|
8712
8712
|
Slide,
|
|
8713
8713
|
{
|
|
8714
8714
|
direction,
|
|
@@ -8719,7 +8719,7 @@ const Toolbox = (_a) => {
|
|
|
8719
8719
|
zIndex
|
|
8720
8720
|
}
|
|
8721
8721
|
},
|
|
8722
|
-
/* @__PURE__ */ React
|
|
8722
|
+
/* @__PURE__ */ React.createElement(
|
|
8723
8723
|
Flex,
|
|
8724
8724
|
__spreadValues$1d({
|
|
8725
8725
|
sx: __spreadProps$d(__spreadValues$1d({}, container), { w: adjustableWidth }),
|
|
@@ -8728,8 +8728,8 @@ const Toolbox = (_a) => {
|
|
|
8728
8728
|
overflow: "hidden",
|
|
8729
8729
|
direction: direction === "left" ? "row-reverse" : "row"
|
|
8730
8730
|
}, rest),
|
|
8731
|
-
isResizable && /* @__PURE__ */ React
|
|
8732
|
-
/* @__PURE__ */ React
|
|
8731
|
+
isResizable && /* @__PURE__ */ React.createElement(ResizeHandle, __spreadValues$1d({}, resizeProps)),
|
|
8732
|
+
/* @__PURE__ */ React.createElement(FocusScope, { autoFocus }, /* @__PURE__ */ React.createElement(VStack, { w: "full", h: "full", alignItems: "normal" }, newChildren))
|
|
8733
8733
|
)
|
|
8734
8734
|
))
|
|
8735
8735
|
);
|
|
@@ -8772,7 +8772,7 @@ const ToolboxHeader = (_a) => {
|
|
|
8772
8772
|
"onClose"
|
|
8773
8773
|
]);
|
|
8774
8774
|
const { header } = useMultiStyleConfig$1("Toolbox", {});
|
|
8775
|
-
return /* @__PURE__ */ React
|
|
8775
|
+
return /* @__PURE__ */ React.createElement(Flex, __spreadValues$1c({ sx: header }, rest), typeof children === "string" ? /* @__PURE__ */ React.createElement(H4, null, children) : children, /* @__PURE__ */ React.createElement(
|
|
8776
8776
|
CloseButton$1,
|
|
8777
8777
|
{
|
|
8778
8778
|
"aria-label": "Close toolbox",
|
|
@@ -8814,7 +8814,7 @@ var __objRest$_ = (source, exclude) => {
|
|
|
8814
8814
|
const ToolboxContent = (_a) => {
|
|
8815
8815
|
var _b = _a, { sx = {}, children } = _b, rest = __objRest$_(_b, ["sx", "children"]);
|
|
8816
8816
|
const { body } = useMultiStyleConfig$1("Toolbox", {});
|
|
8817
|
-
return /* @__PURE__ */ React
|
|
8817
|
+
return /* @__PURE__ */ React.createElement(
|
|
8818
8818
|
Flex,
|
|
8819
8819
|
__spreadValues$1b({
|
|
8820
8820
|
sx: merge(body, sx)
|
|
@@ -8854,7 +8854,7 @@ var __objRest$Z = (source, exclude) => {
|
|
|
8854
8854
|
const ToolboxFooter = (_a) => {
|
|
8855
8855
|
var _b = _a, { children } = _b, rest = __objRest$Z(_b, ["children"]);
|
|
8856
8856
|
const { footer } = useMultiStyleConfig$1("Toolbox", {});
|
|
8857
|
-
return /* @__PURE__ */ React
|
|
8857
|
+
return /* @__PURE__ */ React.createElement(Flex, __spreadValues$1a({ sx: footer }, rest), children);
|
|
8858
8858
|
};
|
|
8859
8859
|
|
|
8860
8860
|
var __defProp$19 = Object.defineProperty;
|
|
@@ -8897,7 +8897,7 @@ const Radio = (_a) => {
|
|
|
8897
8897
|
"name",
|
|
8898
8898
|
"value"
|
|
8899
8899
|
]);
|
|
8900
|
-
return /* @__PURE__ */ React
|
|
8900
|
+
return /* @__PURE__ */ React.createElement(
|
|
8901
8901
|
Radio$2,
|
|
8902
8902
|
__spreadValues$19({
|
|
8903
8903
|
size,
|
|
@@ -8946,7 +8946,7 @@ const RadioGroup = (_a) => {
|
|
|
8946
8946
|
"children",
|
|
8947
8947
|
"name"
|
|
8948
8948
|
]);
|
|
8949
|
-
return /* @__PURE__ */ React
|
|
8949
|
+
return /* @__PURE__ */ React.createElement(RadioGroup$1, __spreadValues$18({ name, id: name }, rest), /* @__PURE__ */ React.createElement(Stack, { direction }, children));
|
|
8950
8950
|
};
|
|
8951
8951
|
|
|
8952
8952
|
var __defProp$17 = Object.defineProperty;
|
|
@@ -8995,7 +8995,7 @@ const RadioGroupField = forwardRef$1((_a, ref) => {
|
|
|
8995
8995
|
"validate",
|
|
8996
8996
|
"onChange"
|
|
8997
8997
|
]);
|
|
8998
|
-
return /* @__PURE__ */ React
|
|
8998
|
+
return /* @__PURE__ */ React.createElement(Box, { w: label ? "full" : "fit-content" }, /* @__PURE__ */ React.createElement(
|
|
8999
8999
|
Field,
|
|
9000
9000
|
{
|
|
9001
9001
|
name,
|
|
@@ -9005,7 +9005,7 @@ const RadioGroupField = forwardRef$1((_a, ref) => {
|
|
|
9005
9005
|
validate,
|
|
9006
9006
|
ref
|
|
9007
9007
|
},
|
|
9008
|
-
({ onChange, value }) => /* @__PURE__ */ React
|
|
9008
|
+
({ onChange, value }) => /* @__PURE__ */ React.createElement(
|
|
9009
9009
|
RadioGroup,
|
|
9010
9010
|
__spreadValues$17({
|
|
9011
9011
|
name,
|
|
@@ -9034,7 +9034,7 @@ const CarouselItem = ({
|
|
|
9034
9034
|
isActive = false,
|
|
9035
9035
|
itemWidth = carouselItemWidth,
|
|
9036
9036
|
itemHeight = carouselItemWidth
|
|
9037
|
-
}) => /* @__PURE__ */ React
|
|
9037
|
+
}) => /* @__PURE__ */ React.createElement(motion.div, { animate: isActive ? "active" : "inActive", variants }, /* @__PURE__ */ React.createElement(Center, { minW: `${itemWidth}px`, h: `${itemHeight}px ` }, children));
|
|
9038
9038
|
|
|
9039
9039
|
var __defProp$16 = Object.defineProperty;
|
|
9040
9040
|
var __getOwnPropSymbols$16 = Object.getOwnPropertySymbols;
|
|
@@ -9073,13 +9073,13 @@ const CarouselArrow = (_a) => {
|
|
|
9073
9073
|
"direction"
|
|
9074
9074
|
]);
|
|
9075
9075
|
const { arrow } = useMultiStyleConfig("Carousel", {});
|
|
9076
|
-
return /* @__PURE__ */ React
|
|
9076
|
+
return /* @__PURE__ */ React.createElement(
|
|
9077
9077
|
Center,
|
|
9078
9078
|
__spreadValues$16({
|
|
9079
9079
|
sx: arrow,
|
|
9080
9080
|
onClick
|
|
9081
9081
|
}, rest),
|
|
9082
|
-
/* @__PURE__ */ React
|
|
9082
|
+
/* @__PURE__ */ React.createElement(IconButton, { "aria-label": `move carousel to ${direction}`, variant: "ghost", size: "lg" }, /* @__PURE__ */ React.createElement(Icon, { as: direction === "right" ? ChevronRightSolid : ChevronLeftSolid }))
|
|
9083
9083
|
);
|
|
9084
9084
|
};
|
|
9085
9085
|
|
|
@@ -9167,7 +9167,7 @@ const Carousel = (_a) => {
|
|
|
9167
9167
|
(prev) => activeIndex === 0 ? numberOfChildren - 1 : prev - 1
|
|
9168
9168
|
);
|
|
9169
9169
|
};
|
|
9170
|
-
return /* @__PURE__ */ React
|
|
9170
|
+
return /* @__PURE__ */ React.createElement(
|
|
9171
9171
|
Box,
|
|
9172
9172
|
__spreadValues$15({
|
|
9173
9173
|
cursor: dragging ? "grabbing" : "grab",
|
|
@@ -9177,7 +9177,7 @@ const Carousel = (_a) => {
|
|
|
9177
9177
|
pl: `${(containerWidth - itemWidth) / 2}px`,
|
|
9178
9178
|
sx: container
|
|
9179
9179
|
}, rest),
|
|
9180
|
-
/* @__PURE__ */ React
|
|
9180
|
+
/* @__PURE__ */ React.createElement(
|
|
9181
9181
|
motion.div,
|
|
9182
9182
|
{
|
|
9183
9183
|
drag: "x",
|
|
@@ -9189,14 +9189,14 @@ const Carousel = (_a) => {
|
|
|
9189
9189
|
dragConstraints: { right: 0, left: -(totalWidth - itemWidth) },
|
|
9190
9190
|
onDragEnd: updateActiveIndex
|
|
9191
9191
|
},
|
|
9192
|
-
/* @__PURE__ */ React
|
|
9192
|
+
/* @__PURE__ */ React.createElement(
|
|
9193
9193
|
HStack,
|
|
9194
9194
|
__spreadValues$15({
|
|
9195
9195
|
spacing: `${spacing}px`,
|
|
9196
9196
|
width: `${totalWidth}px`,
|
|
9197
9197
|
h: "full"
|
|
9198
9198
|
}, carouselStyles),
|
|
9199
|
-
childrenAsArray.map((child, index) => /* @__PURE__ */ React
|
|
9199
|
+
childrenAsArray.map((child, index) => /* @__PURE__ */ React.createElement(
|
|
9200
9200
|
CarouselItem,
|
|
9201
9201
|
{
|
|
9202
9202
|
isActive: index === activeIndex,
|
|
@@ -9208,14 +9208,14 @@ const Carousel = (_a) => {
|
|
|
9208
9208
|
))
|
|
9209
9209
|
)
|
|
9210
9210
|
),
|
|
9211
|
-
showRadio && /* @__PURE__ */ React
|
|
9211
|
+
showRadio && /* @__PURE__ */ React.createElement(
|
|
9212
9212
|
RadioGroup,
|
|
9213
9213
|
{
|
|
9214
9214
|
onChange: (val) => setActiveIndex(parseInt(val, 10)),
|
|
9215
9215
|
value: `${activeIndex}`,
|
|
9216
9216
|
sx: radio
|
|
9217
9217
|
},
|
|
9218
|
-
/* @__PURE__ */ React
|
|
9218
|
+
/* @__PURE__ */ React.createElement(HStack, null, childrenAsArray.map((_child, i) => /* @__PURE__ */ React.createElement(
|
|
9219
9219
|
Radio,
|
|
9220
9220
|
{
|
|
9221
9221
|
value: `${i}`,
|
|
@@ -9224,14 +9224,14 @@ const Carousel = (_a) => {
|
|
|
9224
9224
|
}
|
|
9225
9225
|
)))
|
|
9226
9226
|
),
|
|
9227
|
-
showArrows && /* @__PURE__ */ React
|
|
9227
|
+
showArrows && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
9228
9228
|
CarouselArrow,
|
|
9229
9229
|
{
|
|
9230
9230
|
direction: "left",
|
|
9231
9231
|
onClick: handleLeftArrowClick,
|
|
9232
9232
|
left: "2"
|
|
9233
9233
|
}
|
|
9234
|
-
), /* @__PURE__ */ React
|
|
9234
|
+
), /* @__PURE__ */ React.createElement(
|
|
9235
9235
|
CarouselArrow,
|
|
9236
9236
|
{
|
|
9237
9237
|
direction: "right",
|
|
@@ -9326,17 +9326,17 @@ var __objRest$T = (source, exclude) => {
|
|
|
9326
9326
|
function getComponents(components) {
|
|
9327
9327
|
return merge(
|
|
9328
9328
|
{
|
|
9329
|
-
Menu: (props) => /* @__PURE__ */ React
|
|
9330
|
-
DropdownIndicator: (props) => props.selectProps.icon ? /* @__PURE__ */ React
|
|
9331
|
-
Option: (props) => props.selectProps.customOption ? /* @__PURE__ */ React
|
|
9332
|
-
MultiValueContainer: (props) => props.selectProps.customTag ? /* @__PURE__ */ React
|
|
9329
|
+
Menu: (props) => /* @__PURE__ */ React.createElement(Box, { "data-testid": "select-menu-wrapper-test-id" }, /* @__PURE__ */ React.createElement(chakraComponents.Menu, __spreadValues$13({}, props), props.children)),
|
|
9330
|
+
DropdownIndicator: (props) => props.selectProps.icon ? /* @__PURE__ */ React.createElement(chakraComponents.DropdownIndicator, __spreadValues$13({}, props), /* @__PURE__ */ React.createElement(Icon, { as: props.selectProps.icon })) : /* @__PURE__ */ React.createElement(chakraComponents.DropdownIndicator, __spreadValues$13({}, props)),
|
|
9331
|
+
Option: (props) => props.selectProps.customOption ? /* @__PURE__ */ React.createElement(chakraComponents.Option, __spreadValues$13({}, props), props.selectProps.customOption(props.data)) : /* @__PURE__ */ React.createElement(chakraComponents.Option, __spreadValues$13({}, props)),
|
|
9332
|
+
MultiValueContainer: (props) => props.selectProps.customTag ? /* @__PURE__ */ React.createElement(chakraComponents.MultiValueContainer, __spreadValues$13({}, props), props.selectProps.customTag(props.data)) : /* @__PURE__ */ React.createElement(chakraComponents.MultiValueContainer, __spreadValues$13({}, props)),
|
|
9333
9333
|
Control: (_a) => {
|
|
9334
9334
|
var _b = _a, {
|
|
9335
9335
|
children
|
|
9336
9336
|
} = _b, props = __objRest$T(_b, [
|
|
9337
9337
|
"children"
|
|
9338
9338
|
]);
|
|
9339
|
-
return props.selectProps.leftComponent ? /* @__PURE__ */ React
|
|
9339
|
+
return props.selectProps.leftComponent ? /* @__PURE__ */ React.createElement(chakraComponents.Control, __spreadValues$13({}, props), /* @__PURE__ */ React.createElement(HStack, { w: "full", pl: "2" }, props.selectProps.leftComponent, /* @__PURE__ */ React.createElement(HStack, { w: "full", justify: "space-between" }, children))) : /* @__PURE__ */ React.createElement(chakraComponents.Control, __spreadValues$13({}, props), children);
|
|
9340
9340
|
}
|
|
9341
9341
|
},
|
|
9342
9342
|
components || {}
|
|
@@ -9456,7 +9456,7 @@ const SearchBar = forwardRef$1(
|
|
|
9456
9456
|
}
|
|
9457
9457
|
}
|
|
9458
9458
|
};
|
|
9459
|
-
return /* @__PURE__ */ React
|
|
9459
|
+
return /* @__PURE__ */ React.createElement(Box, { w: "full", "data-testid": testId }, /* @__PURE__ */ React.createElement(
|
|
9460
9460
|
AsyncSelect,
|
|
9461
9461
|
__spreadValues$12({
|
|
9462
9462
|
cacheOptions: true,
|
|
@@ -9536,7 +9536,7 @@ const BaseSearchBarField = (_a, ref) => {
|
|
|
9536
9536
|
"inputLeftElement",
|
|
9537
9537
|
"inputRightElement"
|
|
9538
9538
|
]);
|
|
9539
|
-
return /* @__PURE__ */ React
|
|
9539
|
+
return /* @__PURE__ */ React.createElement(
|
|
9540
9540
|
Field,
|
|
9541
9541
|
{
|
|
9542
9542
|
name,
|
|
@@ -9547,13 +9547,13 @@ const BaseSearchBarField = (_a, ref) => {
|
|
|
9547
9547
|
validate,
|
|
9548
9548
|
ref
|
|
9549
9549
|
},
|
|
9550
|
-
({ value, onChange }) => /* @__PURE__ */ React
|
|
9550
|
+
({ value, onChange }) => /* @__PURE__ */ React.createElement(HStack, { w: "full" }, /* @__PURE__ */ React.createElement(
|
|
9551
9551
|
InputGroupWrapper,
|
|
9552
9552
|
{
|
|
9553
9553
|
inputLeftElement,
|
|
9554
9554
|
inputRightElement
|
|
9555
9555
|
},
|
|
9556
|
-
/* @__PURE__ */ React
|
|
9556
|
+
/* @__PURE__ */ React.createElement(
|
|
9557
9557
|
SearchBar,
|
|
9558
9558
|
__spreadValues$11({
|
|
9559
9559
|
name,
|
|
@@ -9567,7 +9567,7 @@ const BaseSearchBarField = (_a, ref) => {
|
|
|
9567
9567
|
value
|
|
9568
9568
|
}, rest)
|
|
9569
9569
|
)
|
|
9570
|
-
), /* @__PURE__ */ React
|
|
9570
|
+
), /* @__PURE__ */ React.createElement(
|
|
9571
9571
|
IconButton,
|
|
9572
9572
|
{
|
|
9573
9573
|
"aria-label": `${name}-close-button`,
|
|
@@ -9576,7 +9576,7 @@ const BaseSearchBarField = (_a, ref) => {
|
|
|
9576
9576
|
fontSize: "sm",
|
|
9577
9577
|
hidden: isEmpty(value) || !isClearable,
|
|
9578
9578
|
onClick: () => onChange([]),
|
|
9579
|
-
icon: /* @__PURE__ */ React
|
|
9579
|
+
icon: /* @__PURE__ */ React.createElement(Icon, { as: XCloseSolid })
|
|
9580
9580
|
}
|
|
9581
9581
|
))
|
|
9582
9582
|
);
|
|
@@ -9599,7 +9599,7 @@ var __spreadValues$10 = (a, b) => {
|
|
|
9599
9599
|
}
|
|
9600
9600
|
return a;
|
|
9601
9601
|
};
|
|
9602
|
-
const DragAndDrop = (props) => /* @__PURE__ */ React
|
|
9602
|
+
const DragAndDrop = (props) => /* @__PURE__ */ React.createElement(DndContext, __spreadValues$10({}, props));
|
|
9603
9603
|
|
|
9604
9604
|
var __defProp$$ = Object.defineProperty;
|
|
9605
9605
|
var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
|
|
@@ -9641,7 +9641,7 @@ const Tag = forwardRef$1((_a, ref) => {
|
|
|
9641
9641
|
"bgColor",
|
|
9642
9642
|
"colorScheme"
|
|
9643
9643
|
]);
|
|
9644
|
-
return /* @__PURE__ */ React
|
|
9644
|
+
return /* @__PURE__ */ React.createElement(
|
|
9645
9645
|
Tag$2,
|
|
9646
9646
|
__spreadValues$$({
|
|
9647
9647
|
bgColor,
|
|
@@ -9655,7 +9655,7 @@ const Tag = forwardRef$1((_a, ref) => {
|
|
|
9655
9655
|
|
|
9656
9656
|
const OverflowIndicator = ({
|
|
9657
9657
|
nbrRemainingTags
|
|
9658
|
-
}) => /* @__PURE__ */ React
|
|
9658
|
+
}) => /* @__PURE__ */ React.createElement(Tag, { variant: "subtle", minW: "max-content" }, "+", nbrRemainingTags);
|
|
9659
9659
|
|
|
9660
9660
|
var __defProp$_ = Object.defineProperty;
|
|
9661
9661
|
var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
|
|
@@ -9699,15 +9699,15 @@ const TagGroup = (_a) => {
|
|
|
9699
9699
|
]);
|
|
9700
9700
|
const [nbrRemainingTags, setNbrRemainingTags] = useState(0);
|
|
9701
9701
|
const { rect, containerRef } = useOverflowGroup();
|
|
9702
|
-
return /* @__PURE__ */ React
|
|
9702
|
+
return /* @__PURE__ */ React.createElement(
|
|
9703
9703
|
HStack,
|
|
9704
9704
|
__spreadValues$_({
|
|
9705
9705
|
bgColor: "background.default",
|
|
9706
9706
|
ref: containerRef,
|
|
9707
9707
|
overflow: "hidden"
|
|
9708
9708
|
}, rest),
|
|
9709
|
-
/* @__PURE__ */ React
|
|
9710
|
-
nbrRemainingTags > 0 && /* @__PURE__ */ React
|
|
9709
|
+
/* @__PURE__ */ React.createElement(HStack, { spacing }, /* @__PURE__ */ React.createElement(OverflowGroup, { max, onChange: setNbrRemainingTags, rect }, children)),
|
|
9710
|
+
nbrRemainingTags > 0 && /* @__PURE__ */ React.createElement(OverflowIndicator$1, { nbrRemainingTags })
|
|
9711
9711
|
);
|
|
9712
9712
|
};
|
|
9713
9713
|
|
|
@@ -9752,7 +9752,7 @@ const DragItem = forwardRef$1(
|
|
|
9752
9752
|
"itemLabel",
|
|
9753
9753
|
"bgColor"
|
|
9754
9754
|
]);
|
|
9755
|
-
return /* @__PURE__ */ React
|
|
9755
|
+
return /* @__PURE__ */ React.createElement(
|
|
9756
9756
|
Tag,
|
|
9757
9757
|
__spreadValues$Z({
|
|
9758
9758
|
ref,
|
|
@@ -9761,8 +9761,8 @@ const DragItem = forwardRef$1(
|
|
|
9761
9761
|
size,
|
|
9762
9762
|
minW: "max-content"
|
|
9763
9763
|
}, rest),
|
|
9764
|
-
/* @__PURE__ */ React
|
|
9765
|
-
/* @__PURE__ */ React
|
|
9764
|
+
/* @__PURE__ */ React.createElement(TagLabel, null, itemLabel),
|
|
9765
|
+
/* @__PURE__ */ React.createElement(TagRightIcon, null, /* @__PURE__ */ React.createElement(Icon, { as: DotsMatrixSolid }))
|
|
9766
9766
|
);
|
|
9767
9767
|
}
|
|
9768
9768
|
);
|
|
@@ -9824,13 +9824,13 @@ const Draggable = (_a) => {
|
|
|
9824
9824
|
"isDragging"
|
|
9825
9825
|
]);
|
|
9826
9826
|
if (!listeners) {
|
|
9827
|
-
return /* @__PURE__ */ React
|
|
9827
|
+
return /* @__PURE__ */ React.createElement(DragItem, { itemLabel });
|
|
9828
9828
|
}
|
|
9829
9829
|
const childrenWithDragCursor = isValidElement(children) ? cloneElement(children, {
|
|
9830
9830
|
cursor: isDragging ? "grabbing" : "grab"
|
|
9831
9831
|
}) : children;
|
|
9832
9832
|
const dragEventListeners = !disableDrag && listeners;
|
|
9833
|
-
return /* @__PURE__ */ React
|
|
9833
|
+
return /* @__PURE__ */ React.createElement(
|
|
9834
9834
|
Box,
|
|
9835
9835
|
__spreadValues$Y(__spreadProps$b(__spreadValues$Y({
|
|
9836
9836
|
ref: setNodeRef
|
|
@@ -9841,7 +9841,7 @@ const Draggable = (_a) => {
|
|
|
9841
9841
|
w: "max-content",
|
|
9842
9842
|
"data-testid": dataTestId
|
|
9843
9843
|
}), dragEventListeners),
|
|
9844
|
-
typeof childrenWithDragCursor === "function" ? childrenWithDragCursor(listeners, props) : childrenWithDragCursor || /* @__PURE__ */ React
|
|
9844
|
+
typeof childrenWithDragCursor === "function" ? childrenWithDragCursor(listeners, props) : childrenWithDragCursor || /* @__PURE__ */ React.createElement(DragItem, { isDragging, itemLabel })
|
|
9845
9845
|
);
|
|
9846
9846
|
};
|
|
9847
9847
|
|
|
@@ -9882,7 +9882,7 @@ const Droppable = (_a) => {
|
|
|
9882
9882
|
"data-testid"
|
|
9883
9883
|
]);
|
|
9884
9884
|
const _a2 = useDroppable(__spreadValues$X({}, rest)), { setNodeRef } = _a2, props = __objRest$M(_a2, ["setNodeRef"]);
|
|
9885
|
-
return /* @__PURE__ */ React
|
|
9885
|
+
return /* @__PURE__ */ React.createElement(Box, { ref: setNodeRef, "data-testid": testId }, typeof children === "function" ? children(props) : children || /* @__PURE__ */ React.createElement(Center, null, "Drop here"));
|
|
9886
9886
|
};
|
|
9887
9887
|
|
|
9888
9888
|
var __defProp$W = Object.defineProperty;
|
|
@@ -9901,7 +9901,7 @@ var __spreadValues$W = (a, b) => {
|
|
|
9901
9901
|
}
|
|
9902
9902
|
return a;
|
|
9903
9903
|
};
|
|
9904
|
-
const Sortable = (props) => /* @__PURE__ */ React
|
|
9904
|
+
const Sortable = (props) => /* @__PURE__ */ React.createElement(SortableContext, __spreadValues$W({}, props));
|
|
9905
9905
|
|
|
9906
9906
|
var __defProp$V = Object.defineProperty;
|
|
9907
9907
|
var __defProps$a = Object.defineProperties;
|
|
@@ -9964,7 +9964,7 @@ const SortableItem = (_a) => {
|
|
|
9964
9964
|
"isDragging"
|
|
9965
9965
|
]);
|
|
9966
9966
|
if (!listeners) {
|
|
9967
|
-
return /* @__PURE__ */ React
|
|
9967
|
+
return /* @__PURE__ */ React.createElement(DragItem, { itemLabel });
|
|
9968
9968
|
}
|
|
9969
9969
|
const timeStampSnapchot = useRef(0);
|
|
9970
9970
|
const inEditMode = useRef(false);
|
|
@@ -9995,7 +9995,7 @@ const SortableItem = (_a) => {
|
|
|
9995
9995
|
onPointerDown: handlePointerDown,
|
|
9996
9996
|
onKeyDown: handleKeyDown
|
|
9997
9997
|
};
|
|
9998
|
-
return /* @__PURE__ */ React
|
|
9998
|
+
return /* @__PURE__ */ React.createElement(
|
|
9999
9999
|
Box,
|
|
10000
10000
|
__spreadValues$V(__spreadProps$a(__spreadValues$V({
|
|
10001
10001
|
ref: setNodeRef,
|
|
@@ -10006,7 +10006,7 @@ const SortableItem = (_a) => {
|
|
|
10006
10006
|
borderRadius: "tag.default",
|
|
10007
10007
|
"data-testid": dataTestId
|
|
10008
10008
|
}), dragEventListeners),
|
|
10009
|
-
(typeof childrenWithDragCursor === "function" ? childrenWithDragCursor(listeners, props) : childrenWithDragCursor) || /* @__PURE__ */ React
|
|
10009
|
+
(typeof childrenWithDragCursor === "function" ? childrenWithDragCursor(listeners, props) : childrenWithDragCursor) || /* @__PURE__ */ React.createElement(DragItem, { isDragging, itemLabel })
|
|
10010
10010
|
);
|
|
10011
10011
|
};
|
|
10012
10012
|
|
|
@@ -10040,7 +10040,7 @@ var __objRest$K = (source, exclude) => {
|
|
|
10040
10040
|
};
|
|
10041
10041
|
const DragHandle = (_a) => {
|
|
10042
10042
|
var _b = _a, { icon, isDragging } = _b, rest = __objRest$K(_b, ["icon", "isDragging"]);
|
|
10043
|
-
return /* @__PURE__ */ React
|
|
10043
|
+
return /* @__PURE__ */ React.createElement(
|
|
10044
10044
|
Icon,
|
|
10045
10045
|
__spreadValues$U({
|
|
10046
10046
|
as: icon || DragDuo,
|
|
@@ -10080,7 +10080,7 @@ var __objRest$J = (source, exclude) => {
|
|
|
10080
10080
|
const DropZone = (_a) => {
|
|
10081
10081
|
var _b = _a, { sx = {}, name, children } = _b, rest = __objRest$J(_b, ["sx", "name", "children"]);
|
|
10082
10082
|
const { dropZone } = useMultiStyleConfig("DragAndDrop", { sx });
|
|
10083
|
-
return /* @__PURE__ */ React
|
|
10083
|
+
return /* @__PURE__ */ React.createElement(Droppable, { id: name }, /* @__PURE__ */ React.createElement(Stack, __spreadValues$T({ sx: dropZone }, rest), children));
|
|
10084
10084
|
};
|
|
10085
10085
|
|
|
10086
10086
|
var __defProp$S = Object.defineProperty;
|
|
@@ -10176,7 +10176,7 @@ function MultiSort({
|
|
|
10176
10176
|
));
|
|
10177
10177
|
}
|
|
10178
10178
|
};
|
|
10179
|
-
return /* @__PURE__ */ React
|
|
10179
|
+
return /* @__PURE__ */ React.createElement(
|
|
10180
10180
|
DragAndDrop,
|
|
10181
10181
|
{
|
|
10182
10182
|
sensors: sensors || customSensors,
|
|
@@ -10229,7 +10229,7 @@ function SortableList({
|
|
|
10229
10229
|
onChange(newItems);
|
|
10230
10230
|
}
|
|
10231
10231
|
};
|
|
10232
|
-
return /* @__PURE__ */ React
|
|
10232
|
+
return /* @__PURE__ */ React.createElement(
|
|
10233
10233
|
DragAndDrop,
|
|
10234
10234
|
{
|
|
10235
10235
|
sensors: sensors || customSensors,
|
|
@@ -10238,7 +10238,7 @@ function SortableList({
|
|
|
10238
10238
|
onDragEnd: handleDragEnd,
|
|
10239
10239
|
modifiers
|
|
10240
10240
|
},
|
|
10241
|
-
/* @__PURE__ */ React
|
|
10241
|
+
/* @__PURE__ */ React.createElement(
|
|
10242
10242
|
Sortable,
|
|
10243
10243
|
{
|
|
10244
10244
|
items: identifierItems,
|
|
@@ -10246,7 +10246,7 @@ function SortableList({
|
|
|
10246
10246
|
},
|
|
10247
10247
|
items.map((item, index) => {
|
|
10248
10248
|
const id = createKey(item);
|
|
10249
|
-
return /* @__PURE__ */ React
|
|
10249
|
+
return /* @__PURE__ */ React.createElement(
|
|
10250
10250
|
SortableItem,
|
|
10251
10251
|
{
|
|
10252
10252
|
key: id,
|
|
@@ -10259,11 +10259,11 @@ function SortableList({
|
|
|
10259
10259
|
);
|
|
10260
10260
|
})
|
|
10261
10261
|
),
|
|
10262
|
-
displayOverlay && /* @__PURE__ */ React
|
|
10262
|
+
displayOverlay && /* @__PURE__ */ React.createElement(DragOverlay, null, activeItem ? /* @__PURE__ */ React.createElement(DragItem, { itemLabel: activeItem }) : null)
|
|
10263
10263
|
);
|
|
10264
10264
|
}
|
|
10265
10265
|
|
|
10266
|
-
const SortableContainer = ({ children, items, strategy }) => /* @__PURE__ */ React
|
|
10266
|
+
const SortableContainer = ({ children, items, strategy }) => /* @__PURE__ */ React.createElement(Sortable, { items, strategy: strategy || rectSortingStrategy }, items.map((id) => /* @__PURE__ */ React.createElement(SortableItem, { key: id, id, itemLabel: id }, typeof children === "function" ? children(id) : children)));
|
|
10267
10267
|
|
|
10268
10268
|
var __defProp$R = Object.defineProperty;
|
|
10269
10269
|
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
@@ -10313,7 +10313,7 @@ const FastList = forwardRef$1((_a, ref) => {
|
|
|
10313
10313
|
"overscanCount",
|
|
10314
10314
|
"initialScrollOffset"
|
|
10315
10315
|
]);
|
|
10316
|
-
return /* @__PURE__ */ React
|
|
10316
|
+
return /* @__PURE__ */ React.createElement(AutoSizer, null, ({ width: autoWidth, height: autoHeight }) => /* @__PURE__ */ React.createElement(
|
|
10317
10317
|
VariableSizeList,
|
|
10318
10318
|
__spreadValues$R({
|
|
10319
10319
|
itemCount,
|
|
@@ -10325,7 +10325,7 @@ const FastList = forwardRef$1((_a, ref) => {
|
|
|
10325
10325
|
overscanCount,
|
|
10326
10326
|
ref
|
|
10327
10327
|
}, rest),
|
|
10328
|
-
({ style, index }) => /* @__PURE__ */ React
|
|
10328
|
+
({ style, index }) => /* @__PURE__ */ React.createElement("div", { style }, typeof children === "function" ? children(index) : children)
|
|
10329
10329
|
));
|
|
10330
10330
|
});
|
|
10331
10331
|
|
|
@@ -10379,7 +10379,7 @@ const FastGrid = forwardRef$1((_a, ref) => {
|
|
|
10379
10379
|
"overscanRowCount",
|
|
10380
10380
|
"overscanColumnCount"
|
|
10381
10381
|
]);
|
|
10382
|
-
return /* @__PURE__ */ React
|
|
10382
|
+
return /* @__PURE__ */ React.createElement(AutoSizer, null, ({ width: autoWidth, height: autoHeight }) => /* @__PURE__ */ React.createElement(
|
|
10383
10383
|
VariableSizeGrid,
|
|
10384
10384
|
__spreadValues$Q({
|
|
10385
10385
|
rowCount: rows,
|
|
@@ -10392,7 +10392,7 @@ const FastGrid = forwardRef$1((_a, ref) => {
|
|
|
10392
10392
|
overscanColumnCount,
|
|
10393
10393
|
ref
|
|
10394
10394
|
}, rest),
|
|
10395
|
-
({ style, rowIndex, columnIndex }) => /* @__PURE__ */ React
|
|
10395
|
+
({ style, rowIndex, columnIndex }) => /* @__PURE__ */ React.createElement("div", { style }, typeof children === "function" ? children(rowIndex, columnIndex) : children)
|
|
10396
10396
|
));
|
|
10397
10397
|
});
|
|
10398
10398
|
|
|
@@ -10427,23 +10427,23 @@ const EditableControls = ({ size, variant = "default" }) => {
|
|
|
10427
10427
|
} = useEditableControls();
|
|
10428
10428
|
const { onEdit, isEditing } = useEditableState();
|
|
10429
10429
|
const { button, icon, controls } = useMultiStyleConfig("EditableText", { size, isEditing });
|
|
10430
|
-
return /* @__PURE__ */ React
|
|
10430
|
+
return /* @__PURE__ */ React.createElement(HStack, { spacing: 1, sx: controls }, isEditing ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
10431
10431
|
IconButton,
|
|
10432
10432
|
__spreadValues$P({
|
|
10433
10433
|
"aria-label": "Cancel",
|
|
10434
10434
|
sx: button,
|
|
10435
10435
|
variant: mapEditableVariantsToButtonCancelVariants[variant]
|
|
10436
10436
|
}, getCancelButtonProps()),
|
|
10437
|
-
/* @__PURE__ */ React
|
|
10438
|
-
), /* @__PURE__ */ React
|
|
10437
|
+
/* @__PURE__ */ React.createElement(Icon, { sx: icon, as: XCloseSolid })
|
|
10438
|
+
), /* @__PURE__ */ React.createElement(
|
|
10439
10439
|
IconButton,
|
|
10440
10440
|
__spreadValues$P({
|
|
10441
10441
|
"aria-label": "Save",
|
|
10442
10442
|
sx: button,
|
|
10443
10443
|
variant: mapEditableVariantsToButtonSubmitVariants[variant]
|
|
10444
10444
|
}, getSubmitButtonProps()),
|
|
10445
|
-
/* @__PURE__ */ React
|
|
10446
|
-
)) : /* @__PURE__ */ React
|
|
10445
|
+
/* @__PURE__ */ React.createElement(Icon, { sx: icon, as: CheckDuo })
|
|
10446
|
+
)) : /* @__PURE__ */ React.createElement(
|
|
10447
10447
|
IconButton,
|
|
10448
10448
|
{
|
|
10449
10449
|
"aria-label": "Edit",
|
|
@@ -10451,7 +10451,7 @@ const EditableControls = ({ size, variant = "default" }) => {
|
|
|
10451
10451
|
sx: button,
|
|
10452
10452
|
onClick: onEdit
|
|
10453
10453
|
},
|
|
10454
|
-
/* @__PURE__ */ React
|
|
10454
|
+
/* @__PURE__ */ React.createElement(Icon, { sx: icon, as: EditDuo })
|
|
10455
10455
|
));
|
|
10456
10456
|
};
|
|
10457
10457
|
|
|
@@ -10502,7 +10502,7 @@ const EditableText = (_a) => {
|
|
|
10502
10502
|
useEffect(() => {
|
|
10503
10503
|
setValue(inputValue);
|
|
10504
10504
|
}, [inputValue]);
|
|
10505
|
-
return /* @__PURE__ */ React
|
|
10505
|
+
return /* @__PURE__ */ React.createElement(
|
|
10506
10506
|
Editable,
|
|
10507
10507
|
__spreadValues$O({
|
|
10508
10508
|
isPreviewFocusable: true,
|
|
@@ -10511,20 +10511,20 @@ const EditableText = (_a) => {
|
|
|
10511
10511
|
onChange: (newValue) => setValue(newValue),
|
|
10512
10512
|
onSubmit
|
|
10513
10513
|
}, rest),
|
|
10514
|
-
/* @__PURE__ */ React
|
|
10514
|
+
/* @__PURE__ */ React.createElement(InputGroup, { size }, leftItem && /* @__PURE__ */ React.createElement(InputLeftElement, null, leftItem), /* @__PURE__ */ React.createElement(
|
|
10515
10515
|
Input$1,
|
|
10516
10516
|
{
|
|
10517
10517
|
as: EditablePreview,
|
|
10518
10518
|
sx: preview
|
|
10519
10519
|
}
|
|
10520
|
-
), /* @__PURE__ */ React
|
|
10520
|
+
), /* @__PURE__ */ React.createElement(
|
|
10521
10521
|
Input$1,
|
|
10522
10522
|
{
|
|
10523
10523
|
as: EditableInput,
|
|
10524
10524
|
size,
|
|
10525
10525
|
sx: input
|
|
10526
10526
|
}
|
|
10527
|
-
), /* @__PURE__ */ React
|
|
10527
|
+
), /* @__PURE__ */ React.createElement(InputRightElement, { sx: { width: "min-content" } }, /* @__PURE__ */ React.createElement(EditableControls, { size, variant })))
|
|
10528
10528
|
);
|
|
10529
10529
|
};
|
|
10530
10530
|
|
|
@@ -10564,15 +10564,15 @@ const ModalBase = (_a) => {
|
|
|
10564
10564
|
"isCentered",
|
|
10565
10565
|
"children"
|
|
10566
10566
|
]);
|
|
10567
|
-
return /* @__PURE__ */ React
|
|
10567
|
+
return /* @__PURE__ */ React.createElement(
|
|
10568
10568
|
Modal$2,
|
|
10569
10569
|
__spreadValues$N({
|
|
10570
10570
|
isCentered,
|
|
10571
10571
|
scrollBehavior: "inside",
|
|
10572
10572
|
motionPreset: "slideInBottom"
|
|
10573
10573
|
}, rest),
|
|
10574
|
-
/* @__PURE__ */ React
|
|
10575
|
-
/* @__PURE__ */ React
|
|
10574
|
+
/* @__PURE__ */ React.createElement(ModalOverlay, null),
|
|
10575
|
+
/* @__PURE__ */ React.createElement(ModalContent, { "data-testid": "modal-test-id" }, /* @__PURE__ */ React.createElement(ModalCloseButton, { "data-testid": "modal-test-button-id" }), children)
|
|
10576
10576
|
);
|
|
10577
10577
|
};
|
|
10578
10578
|
|
|
@@ -10612,7 +10612,7 @@ const Modal = (_a) => {
|
|
|
10612
10612
|
"stayMountedOnClose",
|
|
10613
10613
|
"isOpen"
|
|
10614
10614
|
]);
|
|
10615
|
-
return /* @__PURE__ */ React
|
|
10615
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, (stayMountedOnClose || isOpen) && /* @__PURE__ */ React.createElement(ModalBase, __spreadValues$M({ isOpen }, rest)));
|
|
10616
10616
|
};
|
|
10617
10617
|
|
|
10618
10618
|
var __defProp$L = Object.defineProperty;
|
|
@@ -10631,7 +10631,7 @@ var __spreadValues$L = (a, b) => {
|
|
|
10631
10631
|
}
|
|
10632
10632
|
return a;
|
|
10633
10633
|
};
|
|
10634
|
-
const ModalBody = (props) => /* @__PURE__ */ React
|
|
10634
|
+
const ModalBody = (props) => /* @__PURE__ */ React.createElement(ModalBody$1, __spreadValues$L({ minH: props.h, maxH: props.h }, props));
|
|
10635
10635
|
|
|
10636
10636
|
var __defProp$K = Object.defineProperty;
|
|
10637
10637
|
var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
|
|
@@ -10689,15 +10689,15 @@ const FileEditorModal = forwardRef$1((_a, ref) => {
|
|
|
10689
10689
|
setZoomLevel(1);
|
|
10690
10690
|
onClose();
|
|
10691
10691
|
};
|
|
10692
|
-
return /* @__PURE__ */ React
|
|
10692
|
+
return /* @__PURE__ */ React.createElement(
|
|
10693
10693
|
Modal,
|
|
10694
10694
|
__spreadValues$K({
|
|
10695
10695
|
isOpen,
|
|
10696
10696
|
onClose,
|
|
10697
10697
|
closeOnOverlayClick: false
|
|
10698
10698
|
}, rest),
|
|
10699
|
-
/* @__PURE__ */ React
|
|
10700
|
-
/* @__PURE__ */ React
|
|
10699
|
+
/* @__PURE__ */ React.createElement(ModalHeader, null, "Edit ", isImage ? "image" : "file"),
|
|
10700
|
+
/* @__PURE__ */ React.createElement(
|
|
10701
10701
|
ModalBody,
|
|
10702
10702
|
{
|
|
10703
10703
|
display: "flex",
|
|
@@ -10707,7 +10707,7 @@ const FileEditorModal = forwardRef$1((_a, ref) => {
|
|
|
10707
10707
|
gap: 4,
|
|
10708
10708
|
minH: "300px"
|
|
10709
10709
|
},
|
|
10710
|
-
/* @__PURE__ */ React
|
|
10710
|
+
/* @__PURE__ */ React.createElement(Stack, { display: isImage && canCropImage ? "inherit" : "none" }, /* @__PURE__ */ React.createElement(
|
|
10711
10711
|
AvatarEditor,
|
|
10712
10712
|
{
|
|
10713
10713
|
ref,
|
|
@@ -10721,7 +10721,7 @@ const FileEditorModal = forwardRef$1((_a, ref) => {
|
|
|
10721
10721
|
scale: zoomLevel,
|
|
10722
10722
|
rotate: 0
|
|
10723
10723
|
}
|
|
10724
|
-
), /* @__PURE__ */ React
|
|
10724
|
+
), /* @__PURE__ */ React.createElement(HStack, { w: "90%" }, /* @__PURE__ */ React.createElement(FormLabel, null, "Zoom"), /* @__PURE__ */ React.createElement(
|
|
10725
10725
|
Slider,
|
|
10726
10726
|
{
|
|
10727
10727
|
"aria-label": "zoom",
|
|
@@ -10732,12 +10732,12 @@ const FileEditorModal = forwardRef$1((_a, ref) => {
|
|
|
10732
10732
|
max: 10,
|
|
10733
10733
|
onChange: (value) => setZoomLevel(value)
|
|
10734
10734
|
},
|
|
10735
|
-
/* @__PURE__ */ React
|
|
10736
|
-
/* @__PURE__ */ React
|
|
10735
|
+
/* @__PURE__ */ React.createElement(SliderTrack, null, /* @__PURE__ */ React.createElement(SliderFilledTrack, null)),
|
|
10736
|
+
/* @__PURE__ */ React.createElement(SliderThumb, { boxSize: 6 }, /* @__PURE__ */ React.createElement(Icon, { as: ZoomInDuo }))
|
|
10737
10737
|
))),
|
|
10738
|
-
canEditFileName && /* @__PURE__ */ React
|
|
10738
|
+
canEditFileName && /* @__PURE__ */ React.createElement(Stack, { w: "90%", direction: isImage ? "row" : "column", pt: 2 }, /* @__PURE__ */ React.createElement(FormLabel, null, "Name the file:"), /* @__PURE__ */ React.createElement(Box, { maxW: "50%" }, /* @__PURE__ */ React.createElement(EditableText, { onSubmit: (v) => setFileName(v), value: fileName, size: "sm" })))
|
|
10739
10739
|
),
|
|
10740
|
-
/* @__PURE__ */ React
|
|
10740
|
+
/* @__PURE__ */ React.createElement(ModalFooter, null, /* @__PURE__ */ React.createElement(HStack, null, /* @__PURE__ */ React.createElement(Button, { variant: "danger", onClick: handleClose }, "Cancel"), /* @__PURE__ */ React.createElement(Button, { variant: "success", onClick: handleCrop }, "Save")))
|
|
10741
10741
|
);
|
|
10742
10742
|
});
|
|
10743
10743
|
|
|
@@ -10785,7 +10785,7 @@ const ConfirmDeleteModal = (_a) => {
|
|
|
10785
10785
|
confirmDelete();
|
|
10786
10786
|
onClose();
|
|
10787
10787
|
};
|
|
10788
|
-
return /* @__PURE__ */ React
|
|
10788
|
+
return /* @__PURE__ */ React.createElement(Modal, __spreadValues$J({ isOpen, onClose }, rest), /* @__PURE__ */ React.createElement(
|
|
10789
10789
|
ModalHeader,
|
|
10790
10790
|
{
|
|
10791
10791
|
sx: { fontSize: "lg" },
|
|
@@ -10796,7 +10796,7 @@ const ConfirmDeleteModal = (_a) => {
|
|
|
10796
10796
|
},
|
|
10797
10797
|
"Delete ",
|
|
10798
10798
|
fileName
|
|
10799
|
-
), /* @__PURE__ */ React
|
|
10799
|
+
), /* @__PURE__ */ React.createElement(ModalBody, null, "Deleting this file is a permanent action. You will not be able to recover this file at a later time."), /* @__PURE__ */ React.createElement(ModalFooter, null, /* @__PURE__ */ React.createElement(Button, { variant: "danger", onClick: handleDelete }, "Delete")));
|
|
10800
10800
|
};
|
|
10801
10801
|
|
|
10802
10802
|
const updateTimeThreshold = 0.5;
|
|
@@ -10833,7 +10833,7 @@ var __objRest$B = (source, exclude) => {
|
|
|
10833
10833
|
const ProgressBar = forwardRef$1(
|
|
10834
10834
|
(_a, ref) => {
|
|
10835
10835
|
var _b = _a, { animationSlideTimeMs = animationSlideTime, sx } = _b, props = __objRest$B(_b, ["animationSlideTimeMs", "sx"]);
|
|
10836
|
-
return /* @__PURE__ */ React
|
|
10836
|
+
return /* @__PURE__ */ React.createElement(
|
|
10837
10837
|
Progress,
|
|
10838
10838
|
__spreadValues$I({
|
|
10839
10839
|
ref,
|
|
@@ -10924,7 +10924,7 @@ const LoadingBar = (_a) => {
|
|
|
10924
10924
|
timeRef.current = Date.now();
|
|
10925
10925
|
}
|
|
10926
10926
|
}, [progress]);
|
|
10927
|
-
return /* @__PURE__ */ React
|
|
10927
|
+
return /* @__PURE__ */ React.createElement(
|
|
10928
10928
|
Fade,
|
|
10929
10929
|
{
|
|
10930
10930
|
in: progress < 1,
|
|
@@ -10938,7 +10938,7 @@ const LoadingBar = (_a) => {
|
|
|
10938
10938
|
}
|
|
10939
10939
|
}
|
|
10940
10940
|
},
|
|
10941
|
-
/* @__PURE__ */ React
|
|
10941
|
+
/* @__PURE__ */ React.createElement(VStack, __spreadValues$H({}, rest), /* @__PURE__ */ React.createElement(Small, null, Math.round(progress * 100), "%", " ", !!timeLeft && `\xB7 ${formattedTime(timeLeft)} left`), /* @__PURE__ */ React.createElement(
|
|
10942
10942
|
ProgressBar,
|
|
10943
10943
|
{
|
|
10944
10944
|
ref,
|
|
@@ -11185,7 +11185,7 @@ const FileIconButton = (_a) => {
|
|
|
11185
11185
|
"icon",
|
|
11186
11186
|
"color"
|
|
11187
11187
|
]);
|
|
11188
|
-
return /* @__PURE__ */ React
|
|
11188
|
+
return /* @__PURE__ */ React.createElement(IconButton, __spreadValues$F({ variant: "ghost", size: "sm" }, rest), /* @__PURE__ */ React.createElement(Icon, { as: icon, boxSize: "24px", color }));
|
|
11189
11189
|
};
|
|
11190
11190
|
|
|
11191
11191
|
var __defProp$E = Object.defineProperty;
|
|
@@ -11355,7 +11355,7 @@ const FilePicker = (_a) => {
|
|
|
11355
11355
|
}
|
|
11356
11356
|
}
|
|
11357
11357
|
};
|
|
11358
|
-
return /* @__PURE__ */ React
|
|
11358
|
+
return /* @__PURE__ */ React.createElement(Stack, __spreadValues$E({ maxW: filePicker.width }, rest), /* @__PURE__ */ React.createElement(
|
|
11359
11359
|
Clickable,
|
|
11360
11360
|
{
|
|
11361
11361
|
onClick: handleOnClick,
|
|
@@ -11364,7 +11364,7 @@ const FilePicker = (_a) => {
|
|
|
11364
11364
|
onMouseEnter: () => setEditable(true),
|
|
11365
11365
|
onMouseLeave: () => setEditable(false)
|
|
11366
11366
|
},
|
|
11367
|
-
/* @__PURE__ */ React
|
|
11367
|
+
/* @__PURE__ */ React.createElement(Box, { sx: filePicker }, /* @__PURE__ */ React.createElement(
|
|
11368
11368
|
SlideFade$1,
|
|
11369
11369
|
{
|
|
11370
11370
|
in: hasLoaded,
|
|
@@ -11374,7 +11374,7 @@ const FilePicker = (_a) => {
|
|
|
11374
11374
|
display: hasLoaded && isImage ? "initial" : "none"
|
|
11375
11375
|
}
|
|
11376
11376
|
},
|
|
11377
|
-
/* @__PURE__ */ React
|
|
11377
|
+
/* @__PURE__ */ React.createElement(
|
|
11378
11378
|
Image$1,
|
|
11379
11379
|
{
|
|
11380
11380
|
src: file ? isFile(file) ? URL.createObjectURL(file) : file : "",
|
|
@@ -11386,7 +11386,7 @@ const FilePicker = (_a) => {
|
|
|
11386
11386
|
w: "full"
|
|
11387
11387
|
}
|
|
11388
11388
|
)
|
|
11389
|
-
), /* @__PURE__ */ React
|
|
11389
|
+
), /* @__PURE__ */ React.createElement(
|
|
11390
11390
|
Input$1,
|
|
11391
11391
|
{
|
|
11392
11392
|
type: "file",
|
|
@@ -11395,7 +11395,7 @@ const FilePicker = (_a) => {
|
|
|
11395
11395
|
ref: fileInputRef,
|
|
11396
11396
|
onChange: handleChange
|
|
11397
11397
|
}
|
|
11398
|
-
), /* @__PURE__ */ React
|
|
11398
|
+
), /* @__PURE__ */ React.createElement(
|
|
11399
11399
|
Stack,
|
|
11400
11400
|
{
|
|
11401
11401
|
display: hasLoaded && isImage ? "none" : "default",
|
|
@@ -11403,7 +11403,7 @@ const FilePicker = (_a) => {
|
|
|
11403
11403
|
w: "85%",
|
|
11404
11404
|
spacing: "0a"
|
|
11405
11405
|
},
|
|
11406
|
-
/* @__PURE__ */ React
|
|
11406
|
+
/* @__PURE__ */ React.createElement(
|
|
11407
11407
|
Icon,
|
|
11408
11408
|
{
|
|
11409
11409
|
as: onlyImageAccepted ? Image03Solid : UploadCloudSolid,
|
|
@@ -11413,7 +11413,7 @@ const FilePicker = (_a) => {
|
|
|
11413
11413
|
"aria-label": "file-icon-upload"
|
|
11414
11414
|
}
|
|
11415
11415
|
),
|
|
11416
|
-
/* @__PURE__ */ React
|
|
11416
|
+
/* @__PURE__ */ React.createElement(
|
|
11417
11417
|
Icon,
|
|
11418
11418
|
{
|
|
11419
11419
|
as: FileBlankDuo,
|
|
@@ -11422,7 +11422,7 @@ const FilePicker = (_a) => {
|
|
|
11422
11422
|
display: hasLoaded && !isImage ? "inline-block" : "none"
|
|
11423
11423
|
}
|
|
11424
11424
|
),
|
|
11425
|
-
/* @__PURE__ */ React
|
|
11425
|
+
/* @__PURE__ */ React.createElement(
|
|
11426
11426
|
P,
|
|
11427
11427
|
{
|
|
11428
11428
|
variant: isInvalid ? "16" : "14",
|
|
@@ -11435,7 +11435,7 @@ const FilePicker = (_a) => {
|
|
|
11435
11435
|
},
|
|
11436
11436
|
isInvalid ? "File not supported" : file && isFile(file) ? file.name : `Drag & drop ${onlyImageAccepted ? "image" : "file"} or`
|
|
11437
11437
|
),
|
|
11438
|
-
/* @__PURE__ */ React
|
|
11438
|
+
/* @__PURE__ */ React.createElement(
|
|
11439
11439
|
Lead,
|
|
11440
11440
|
{
|
|
11441
11441
|
sx: {
|
|
@@ -11446,8 +11446,8 @@ const FilePicker = (_a) => {
|
|
|
11446
11446
|
},
|
|
11447
11447
|
"Click to upload"
|
|
11448
11448
|
),
|
|
11449
|
-
/* @__PURE__ */ React
|
|
11450
|
-
), /* @__PURE__ */ React
|
|
11449
|
+
/* @__PURE__ */ React.createElement(Box, { display: isLoading ? "block" : "none", pt: 1 }, loadWithSpinner ? /* @__PURE__ */ React.createElement(Spinner, null) : /* @__PURE__ */ React.createElement(LoadingBar, { loaded: uploaded }))
|
|
11450
|
+
), /* @__PURE__ */ React.createElement(
|
|
11451
11451
|
Fade$1,
|
|
11452
11452
|
{
|
|
11453
11453
|
in: hasLoaded && editable,
|
|
@@ -11456,7 +11456,7 @@ const FilePicker = (_a) => {
|
|
|
11456
11456
|
justifyContent: "center"
|
|
11457
11457
|
}
|
|
11458
11458
|
},
|
|
11459
|
-
/* @__PURE__ */ React
|
|
11459
|
+
/* @__PURE__ */ React.createElement(
|
|
11460
11460
|
HStack,
|
|
11461
11461
|
{
|
|
11462
11462
|
spacing: 2,
|
|
@@ -11468,7 +11468,7 @@ const FilePicker = (_a) => {
|
|
|
11468
11468
|
width: "44",
|
|
11469
11469
|
py: 2
|
|
11470
11470
|
},
|
|
11471
|
-
editFileOptions.canEdit && /* @__PURE__ */ React
|
|
11471
|
+
editFileOptions.canEdit && /* @__PURE__ */ React.createElement(
|
|
11472
11472
|
FileIconButton,
|
|
11473
11473
|
{
|
|
11474
11474
|
"aria-label": "edit-file",
|
|
@@ -11476,7 +11476,7 @@ const FilePicker = (_a) => {
|
|
|
11476
11476
|
icon: EditBoxDuo
|
|
11477
11477
|
}
|
|
11478
11478
|
),
|
|
11479
|
-
/* @__PURE__ */ React
|
|
11479
|
+
/* @__PURE__ */ React.createElement(
|
|
11480
11480
|
FileIconButton,
|
|
11481
11481
|
{
|
|
11482
11482
|
"aria-label": "download-file",
|
|
@@ -11484,7 +11484,7 @@ const FilePicker = (_a) => {
|
|
|
11484
11484
|
icon: DownloadDuo
|
|
11485
11485
|
}
|
|
11486
11486
|
),
|
|
11487
|
-
/* @__PURE__ */ React
|
|
11487
|
+
/* @__PURE__ */ React.createElement(
|
|
11488
11488
|
FileIconButton,
|
|
11489
11489
|
{
|
|
11490
11490
|
"aria-label": "delete-file",
|
|
@@ -11494,7 +11494,7 @@ const FilePicker = (_a) => {
|
|
|
11494
11494
|
}
|
|
11495
11495
|
)
|
|
11496
11496
|
)
|
|
11497
|
-
), /* @__PURE__ */ React
|
|
11497
|
+
), /* @__PURE__ */ React.createElement(
|
|
11498
11498
|
P,
|
|
11499
11499
|
{
|
|
11500
11500
|
variant: "14",
|
|
@@ -11503,7 +11503,7 @@ const FilePicker = (_a) => {
|
|
|
11503
11503
|
},
|
|
11504
11504
|
isFile(file) && readableFileSize(file == null ? void 0 : file.size)
|
|
11505
11505
|
))
|
|
11506
|
-
), /* @__PURE__ */ React
|
|
11506
|
+
), /* @__PURE__ */ React.createElement(
|
|
11507
11507
|
FileEditorModal,
|
|
11508
11508
|
__spreadProps$7(__spreadValues$E({}, editModal), {
|
|
11509
11509
|
fileName: name,
|
|
@@ -11515,7 +11515,7 @@ const FilePicker = (_a) => {
|
|
|
11515
11515
|
canEditFileName: editFileOptions.canEditName,
|
|
11516
11516
|
canCropImage: editFileOptions.canEditImage
|
|
11517
11517
|
})
|
|
11518
|
-
), /* @__PURE__ */ React
|
|
11518
|
+
), /* @__PURE__ */ React.createElement(
|
|
11519
11519
|
ConfirmDeleteModal,
|
|
11520
11520
|
__spreadProps$7(__spreadValues$E({}, deleteModal), {
|
|
11521
11521
|
confirmDelete: clearImage,
|
|
@@ -11569,7 +11569,7 @@ const FilePickerField = (_a) => {
|
|
|
11569
11569
|
"onChange"
|
|
11570
11570
|
]);
|
|
11571
11571
|
const [uploaded, setUploaded] = useState(0);
|
|
11572
|
-
return /* @__PURE__ */ React
|
|
11572
|
+
return /* @__PURE__ */ React.createElement(
|
|
11573
11573
|
Field,
|
|
11574
11574
|
{
|
|
11575
11575
|
name,
|
|
@@ -11578,7 +11578,7 @@ const FilePickerField = (_a) => {
|
|
|
11578
11578
|
isRequired,
|
|
11579
11579
|
validate
|
|
11580
11580
|
},
|
|
11581
|
-
({ onChange, value }) => /* @__PURE__ */ React
|
|
11581
|
+
({ onChange, value }) => /* @__PURE__ */ React.createElement(
|
|
11582
11582
|
FilePicker,
|
|
11583
11583
|
__spreadValues$D({
|
|
11584
11584
|
onChange: async (file) => {
|
|
@@ -11706,7 +11706,7 @@ function MultiFileUploader(_a) {
|
|
|
11706
11706
|
updateMultipleFiles(e.target.files);
|
|
11707
11707
|
}
|
|
11708
11708
|
};
|
|
11709
|
-
return /* @__PURE__ */ React
|
|
11709
|
+
return /* @__PURE__ */ React.createElement(
|
|
11710
11710
|
Clickable,
|
|
11711
11711
|
{
|
|
11712
11712
|
onClick: handleClick,
|
|
@@ -11715,7 +11715,7 @@ function MultiFileUploader(_a) {
|
|
|
11715
11715
|
onMouseEnter: toggleHover,
|
|
11716
11716
|
onMouseLeave: toggleHover
|
|
11717
11717
|
},
|
|
11718
|
-
/* @__PURE__ */ React
|
|
11718
|
+
/* @__PURE__ */ React.createElement(Box, __spreadValues$C({ sx: multiFilePicker }, rest), /* @__PURE__ */ React.createElement(
|
|
11719
11719
|
Stack,
|
|
11720
11720
|
{
|
|
11721
11721
|
alignItems: "center",
|
|
@@ -11724,7 +11724,7 @@ function MultiFileUploader(_a) {
|
|
|
11724
11724
|
w: "full",
|
|
11725
11725
|
spacing: 0
|
|
11726
11726
|
},
|
|
11727
|
-
/* @__PURE__ */ React
|
|
11727
|
+
/* @__PURE__ */ React.createElement(
|
|
11728
11728
|
Icon,
|
|
11729
11729
|
{
|
|
11730
11730
|
as: onlyImageAccepted ? Image03Solid : UploadCloudSolid,
|
|
@@ -11734,10 +11734,10 @@ function MultiFileUploader(_a) {
|
|
|
11734
11734
|
mb: onlyImageAccepted ? "0a" : 0
|
|
11735
11735
|
}
|
|
11736
11736
|
),
|
|
11737
|
-
/* @__PURE__ */ React
|
|
11738
|
-
/* @__PURE__ */ React
|
|
11739
|
-
/* @__PURE__ */ React
|
|
11740
|
-
), /* @__PURE__ */ React
|
|
11737
|
+
/* @__PURE__ */ React.createElement(HStack, { spacing: 1, display: isInvalid ? "none" : "flex" }, /* @__PURE__ */ React.createElement(P, { variant: "14", textAlign: "center", alignSelf: "center" }, "Drag & drop ", onlyImageAccepted ? "images" : "files", " here or"), /* @__PURE__ */ React.createElement(Lead, { sx: { textDecoration: "underline", color: "blue.500" } }, "choose ", onlyImageAccepted ? "image" : "file")),
|
|
11738
|
+
/* @__PURE__ */ React.createElement(P, { variant: "14", textAlign: "center", alignSelf: "center", display: isInvalid ? "initial" : "none" }, errorMessage),
|
|
11739
|
+
/* @__PURE__ */ React.createElement(P, { variant: "14", sx: { color: "gray.400" } }, "Max file size is ", readableFileSize(maxFileSize))
|
|
11740
|
+
), /* @__PURE__ */ React.createElement(
|
|
11741
11741
|
Input$1,
|
|
11742
11742
|
{
|
|
11743
11743
|
type: "file",
|
|
@@ -11822,7 +11822,7 @@ function FileItem({
|
|
|
11822
11822
|
deleteFile(file);
|
|
11823
11823
|
}, 500);
|
|
11824
11824
|
};
|
|
11825
|
-
return /* @__PURE__ */ React
|
|
11825
|
+
return /* @__PURE__ */ React.createElement(
|
|
11826
11826
|
SlideFade,
|
|
11827
11827
|
{
|
|
11828
11828
|
in: show,
|
|
@@ -11831,7 +11831,7 @@ function FileItem({
|
|
|
11831
11831
|
enterDuration: !isLazy ? 300 : 1,
|
|
11832
11832
|
exitDuration: 300
|
|
11833
11833
|
},
|
|
11834
|
-
/* @__PURE__ */ React
|
|
11834
|
+
/* @__PURE__ */ React.createElement(Box, { sx: fileItem }, /* @__PURE__ */ React.createElement(
|
|
11835
11835
|
HStack,
|
|
11836
11836
|
{
|
|
11837
11837
|
w: "full",
|
|
@@ -11842,7 +11842,7 @@ function FileItem({
|
|
|
11842
11842
|
px: 2,
|
|
11843
11843
|
pt: file.isUploading && !hasLoaded ? 2 : 0
|
|
11844
11844
|
},
|
|
11845
|
-
/* @__PURE__ */ React
|
|
11845
|
+
/* @__PURE__ */ React.createElement(HStack, { spacing: 4, alignItems: "start", maxW: "50%" }, isFileImage(file) ? file.isUploading || loadingImage ? /* @__PURE__ */ React.createElement(
|
|
11846
11846
|
Icon,
|
|
11847
11847
|
{
|
|
11848
11848
|
as: Image03Duo,
|
|
@@ -11852,7 +11852,7 @@ function FileItem({
|
|
|
11852
11852
|
borderRadius: "8",
|
|
11853
11853
|
p: "2"
|
|
11854
11854
|
}
|
|
11855
|
-
) : /* @__PURE__ */ React
|
|
11855
|
+
) : /* @__PURE__ */ React.createElement(
|
|
11856
11856
|
Image$1,
|
|
11857
11857
|
{
|
|
11858
11858
|
src: file.src || "",
|
|
@@ -11862,7 +11862,7 @@ function FileItem({
|
|
|
11862
11862
|
borderRadius: "8",
|
|
11863
11863
|
boxSize: "10"
|
|
11864
11864
|
}
|
|
11865
|
-
) : /* @__PURE__ */ React
|
|
11865
|
+
) : /* @__PURE__ */ React.createElement(
|
|
11866
11866
|
Icon,
|
|
11867
11867
|
{
|
|
11868
11868
|
as: FileBlankDuo,
|
|
@@ -11870,7 +11870,7 @@ function FileItem({
|
|
|
11870
11870
|
p: "1",
|
|
11871
11871
|
color: "gray.300"
|
|
11872
11872
|
}
|
|
11873
|
-
), /* @__PURE__ */ React
|
|
11873
|
+
), /* @__PURE__ */ React.createElement(
|
|
11874
11874
|
Stack,
|
|
11875
11875
|
{
|
|
11876
11876
|
alignItems: "start",
|
|
@@ -11878,7 +11878,7 @@ function FileItem({
|
|
|
11878
11878
|
spacing: "0",
|
|
11879
11879
|
maxW: "100%"
|
|
11880
11880
|
},
|
|
11881
|
-
/* @__PURE__ */ React
|
|
11881
|
+
/* @__PURE__ */ React.createElement(
|
|
11882
11882
|
P,
|
|
11883
11883
|
{
|
|
11884
11884
|
variant: "14",
|
|
@@ -11889,9 +11889,9 @@ function FileItem({
|
|
|
11889
11889
|
},
|
|
11890
11890
|
file == null ? void 0 : file.name
|
|
11891
11891
|
),
|
|
11892
|
-
/* @__PURE__ */ React
|
|
11892
|
+
/* @__PURE__ */ React.createElement(P, { variant: "14", sx: { color: "gray.400" } }, (file == null ? void 0 : file.size) && readableFileSize(file.size))
|
|
11893
11893
|
)),
|
|
11894
|
-
/* @__PURE__ */ React
|
|
11894
|
+
/* @__PURE__ */ React.createElement(
|
|
11895
11895
|
HStack,
|
|
11896
11896
|
{
|
|
11897
11897
|
spacing: "3",
|
|
@@ -11901,7 +11901,7 @@ function FileItem({
|
|
|
11901
11901
|
display: file.isUploading ? "none" : "flex",
|
|
11902
11902
|
p: "1"
|
|
11903
11903
|
},
|
|
11904
|
-
canEdit && /* @__PURE__ */ React
|
|
11904
|
+
canEdit && /* @__PURE__ */ React.createElement(
|
|
11905
11905
|
FileIconButton,
|
|
11906
11906
|
{
|
|
11907
11907
|
"aria-label": "Edit-image",
|
|
@@ -11909,7 +11909,7 @@ function FileItem({
|
|
|
11909
11909
|
icon: EditBoxDuo
|
|
11910
11910
|
}
|
|
11911
11911
|
),
|
|
11912
|
-
/* @__PURE__ */ React
|
|
11912
|
+
/* @__PURE__ */ React.createElement(
|
|
11913
11913
|
FileIconButton,
|
|
11914
11914
|
{
|
|
11915
11915
|
"aria-label": "download-image",
|
|
@@ -11917,14 +11917,14 @@ function FileItem({
|
|
|
11917
11917
|
icon: DownloadDuo
|
|
11918
11918
|
}
|
|
11919
11919
|
),
|
|
11920
|
-
/* @__PURE__ */ React
|
|
11920
|
+
/* @__PURE__ */ React.createElement(
|
|
11921
11921
|
CloseButton$1,
|
|
11922
11922
|
{
|
|
11923
11923
|
onClick: confirmDelete ? deleteModalDisclosure.onOpen : clearImage
|
|
11924
11924
|
}
|
|
11925
11925
|
)
|
|
11926
11926
|
)
|
|
11927
|
-
), /* @__PURE__ */ React
|
|
11927
|
+
), /* @__PURE__ */ React.createElement(
|
|
11928
11928
|
Box,
|
|
11929
11929
|
{
|
|
11930
11930
|
w: "full",
|
|
@@ -11934,14 +11934,14 @@ function FileItem({
|
|
|
11934
11934
|
mt: "-2",
|
|
11935
11935
|
display: file.isUploading ? "block" : "none"
|
|
11936
11936
|
},
|
|
11937
|
-
/* @__PURE__ */ React
|
|
11937
|
+
/* @__PURE__ */ React.createElement(
|
|
11938
11938
|
LoadingBar,
|
|
11939
11939
|
{
|
|
11940
11940
|
loaded: file.size ? ((file == null ? void 0 : file.uploaded) || 0) / file.size : 0,
|
|
11941
11941
|
onLoadEnd: () => setHasLoaded(true)
|
|
11942
11942
|
}
|
|
11943
11943
|
)
|
|
11944
|
-
), canEdit && /* @__PURE__ */ React
|
|
11944
|
+
), canEdit && /* @__PURE__ */ React.createElement(
|
|
11945
11945
|
FileEditorModal,
|
|
11946
11946
|
__spreadProps$6(__spreadValues$B({}, editModalDisclosure), {
|
|
11947
11947
|
fileName: fileName || file.name,
|
|
@@ -11953,7 +11953,7 @@ function FileItem({
|
|
|
11953
11953
|
isImage: isFileImage(file),
|
|
11954
11954
|
ref: imageEditorRef
|
|
11955
11955
|
})
|
|
11956
|
-
), /* @__PURE__ */ React
|
|
11956
|
+
), /* @__PURE__ */ React.createElement(
|
|
11957
11957
|
ConfirmDeleteModal,
|
|
11958
11958
|
__spreadProps$6(__spreadValues$B({}, deleteModalDisclosure), {
|
|
11959
11959
|
confirmDelete: clearImage,
|
|
@@ -12029,7 +12029,7 @@ function MultiFileList(_a) {
|
|
|
12029
12029
|
}
|
|
12030
12030
|
}, [uploadingFiles, files]);
|
|
12031
12031
|
const isLazy = uploadingFilesReference ? any((file) => file.isLazy || false, uploadingFilesReference) : false;
|
|
12032
|
-
return /* @__PURE__ */ React
|
|
12032
|
+
return /* @__PURE__ */ React.createElement(
|
|
12033
12033
|
Stack,
|
|
12034
12034
|
__spreadValues$A({
|
|
12035
12035
|
ref: listRef,
|
|
@@ -12038,7 +12038,7 @@ function MultiFileList(_a) {
|
|
|
12038
12038
|
pr: overflowing ? 2 : 0,
|
|
12039
12039
|
overflowY: "auto"
|
|
12040
12040
|
}, rest),
|
|
12041
|
-
uploadingFilesReference && map((file) => /* @__PURE__ */ React
|
|
12041
|
+
uploadingFilesReference && map((file) => /* @__PURE__ */ React.createElement(
|
|
12042
12042
|
FileItem,
|
|
12043
12043
|
{
|
|
12044
12044
|
onChangeCallback: onChange,
|
|
@@ -12050,7 +12050,7 @@ function MultiFileList(_a) {
|
|
|
12050
12050
|
editFileOptions
|
|
12051
12051
|
}
|
|
12052
12052
|
), uploadingFilesReference),
|
|
12053
|
-
formattedFiles && map((file) => /* @__PURE__ */ React
|
|
12053
|
+
formattedFiles && map((file) => /* @__PURE__ */ React.createElement(
|
|
12054
12054
|
FileItem,
|
|
12055
12055
|
{
|
|
12056
12056
|
onChangeCallback: onChange,
|
|
@@ -12141,14 +12141,14 @@ function MultiFilePicker(_a) {
|
|
|
12141
12141
|
setBufferFiles(queuedFiles);
|
|
12142
12142
|
}
|
|
12143
12143
|
};
|
|
12144
|
-
return /* @__PURE__ */ React
|
|
12144
|
+
return /* @__PURE__ */ React.createElement(
|
|
12145
12145
|
Stack,
|
|
12146
12146
|
__spreadValues$z({
|
|
12147
12147
|
spacing: 4,
|
|
12148
12148
|
maxW: "inherit",
|
|
12149
12149
|
maxH: "inherit"
|
|
12150
12150
|
}, rest),
|
|
12151
|
-
/* @__PURE__ */ React
|
|
12151
|
+
/* @__PURE__ */ React.createElement(
|
|
12152
12152
|
MultiFileUploader,
|
|
12153
12153
|
{
|
|
12154
12154
|
acceptFormat,
|
|
@@ -12160,7 +12160,7 @@ function MultiFilePicker(_a) {
|
|
|
12160
12160
|
variant
|
|
12161
12161
|
}
|
|
12162
12162
|
),
|
|
12163
|
-
/* @__PURE__ */ React
|
|
12163
|
+
/* @__PURE__ */ React.createElement(
|
|
12164
12164
|
MultiFileList,
|
|
12165
12165
|
{
|
|
12166
12166
|
files: files || previewFiles,
|
|
@@ -12229,7 +12229,7 @@ const MultiFilePickerField = (_a) => {
|
|
|
12229
12229
|
const formattedFiles = map((file) => isFile(file) ? file : createFileObjectFromSrc(file), buffer);
|
|
12230
12230
|
return formattedFiles;
|
|
12231
12231
|
};
|
|
12232
|
-
return /* @__PURE__ */ React
|
|
12232
|
+
return /* @__PURE__ */ React.createElement(
|
|
12233
12233
|
Field,
|
|
12234
12234
|
{
|
|
12235
12235
|
name,
|
|
@@ -12244,7 +12244,7 @@ const MultiFilePickerField = (_a) => {
|
|
|
12244
12244
|
const newValues = remove(removedIndex, 1, value);
|
|
12245
12245
|
onChange(newValues);
|
|
12246
12246
|
};
|
|
12247
|
-
return /* @__PURE__ */ React
|
|
12247
|
+
return /* @__PURE__ */ React.createElement(
|
|
12248
12248
|
MultiFilePicker,
|
|
12249
12249
|
__spreadValues$y({
|
|
12250
12250
|
onChange: async (files) => {
|
|
@@ -12278,7 +12278,7 @@ const MediatoolThemeProvider = ({
|
|
|
12278
12278
|
children,
|
|
12279
12279
|
theme: theme$1 = theme,
|
|
12280
12280
|
themeName = "webappTheme"
|
|
12281
|
-
}) => /* @__PURE__ */ React
|
|
12281
|
+
}) => /* @__PURE__ */ React.createElement(ChakraProvider, { resetCSS: true, theme: theme$1 }, /* @__PURE__ */ React.createElement(CustomTheme.Provider, { value: themeName }, children));
|
|
12282
12282
|
|
|
12283
12283
|
var __defProp$x = Object.defineProperty;
|
|
12284
12284
|
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
@@ -12310,20 +12310,20 @@ var __objRest$s = (source, exclude) => {
|
|
|
12310
12310
|
};
|
|
12311
12311
|
const Menu = (_a) => {
|
|
12312
12312
|
var _b = _a, { variant = "relaxed" } = _b, props = __objRest$s(_b, ["variant"]);
|
|
12313
|
-
return /* @__PURE__ */ React
|
|
12313
|
+
return /* @__PURE__ */ React.createElement(Menu$2, __spreadValues$x({ variant }, props));
|
|
12314
12314
|
};
|
|
12315
12315
|
|
|
12316
12316
|
const NumberInputStepper = ({
|
|
12317
12317
|
includePercentage = false,
|
|
12318
12318
|
enableStepperArrows = false
|
|
12319
|
-
}) => /* @__PURE__ */ React
|
|
12319
|
+
}) => /* @__PURE__ */ React.createElement(NumberInputStepper$1, null, /* @__PURE__ */ React.createElement(HStack, { alignItems: "center", h: "full" }, includePercentage && /* @__PURE__ */ React.createElement(Center, { bgColor: "gray.50", borderRadius: "md", boxSize: "6" }, /* @__PURE__ */ React.createElement(P, null, "%")), enableStepperArrows && /* @__PURE__ */ React.createElement(HStack, { alignItems: "center", h: "full" }, /* @__PURE__ */ React.createElement(Divider, { orientation: "vertical", h: "50%" }), /* @__PURE__ */ React.createElement(NumberIncrementStepper, { border: "none" }, /* @__PURE__ */ React.createElement(
|
|
12320
12320
|
Icon,
|
|
12321
12321
|
{
|
|
12322
12322
|
as: ChevronUpSolid,
|
|
12323
12323
|
color: "icon.input-stepper.default",
|
|
12324
12324
|
boxSize: 4
|
|
12325
12325
|
}
|
|
12326
|
-
)), /* @__PURE__ */ React
|
|
12326
|
+
)), /* @__PURE__ */ React.createElement(NumberDecrementStepper, null, /* @__PURE__ */ React.createElement(
|
|
12327
12327
|
Icon,
|
|
12328
12328
|
{
|
|
12329
12329
|
as: ChevronDownSolid,
|
|
@@ -12411,7 +12411,7 @@ const NumberInput = (_a) => {
|
|
|
12411
12411
|
const filteredNaN = Number.isNaN(value) ? "" : value;
|
|
12412
12412
|
onChange(`${filteredNaN}`);
|
|
12413
12413
|
};
|
|
12414
|
-
return /* @__PURE__ */ React
|
|
12414
|
+
return /* @__PURE__ */ React.createElement(
|
|
12415
12415
|
NumberInput$2,
|
|
12416
12416
|
__spreadValues$w(__spreadValues$w({
|
|
12417
12417
|
variant,
|
|
@@ -12419,8 +12419,8 @@ const NumberInput = (_a) => {
|
|
|
12419
12419
|
onChange: handleChange,
|
|
12420
12420
|
id: name
|
|
12421
12421
|
}, percentageProps), rest),
|
|
12422
|
-
/* @__PURE__ */ React
|
|
12423
|
-
/* @__PURE__ */ React
|
|
12422
|
+
/* @__PURE__ */ React.createElement(NumberInputField$1, { onChange: handleChange }),
|
|
12423
|
+
/* @__PURE__ */ React.createElement(
|
|
12424
12424
|
NumberInputStepper,
|
|
12425
12425
|
{
|
|
12426
12426
|
includePercentage: onlyAcceptPercentage,
|
|
@@ -12481,7 +12481,7 @@ const NumberInputField = forwardRef$1((_a, ref) => {
|
|
|
12481
12481
|
"inputRightElement"
|
|
12482
12482
|
]);
|
|
12483
12483
|
const formatNumber = (value, factor) => onlyAcceptPercentage ? advancedParseFloat(value * factor) : value;
|
|
12484
|
-
return /* @__PURE__ */ React
|
|
12484
|
+
return /* @__PURE__ */ React.createElement(
|
|
12485
12485
|
Field,
|
|
12486
12486
|
{
|
|
12487
12487
|
name,
|
|
@@ -12494,13 +12494,13 @@ const NumberInputField = forwardRef$1((_a, ref) => {
|
|
|
12494
12494
|
({ onChange, value }) => {
|
|
12495
12495
|
const initialValue = isNil(value) || Number.isNaN(parseFloat(value)) ? "" : formatNumber(value, 100);
|
|
12496
12496
|
const [displayValue, setDisplayValue] = useState(initialValue);
|
|
12497
|
-
return /* @__PURE__ */ React
|
|
12497
|
+
return /* @__PURE__ */ React.createElement(
|
|
12498
12498
|
InputGroupWrapper,
|
|
12499
12499
|
{
|
|
12500
12500
|
inputLeftElement,
|
|
12501
12501
|
inputRightElement
|
|
12502
12502
|
},
|
|
12503
|
-
/* @__PURE__ */ React
|
|
12503
|
+
/* @__PURE__ */ React.createElement(
|
|
12504
12504
|
NumberInput,
|
|
12505
12505
|
__spreadValues$v({
|
|
12506
12506
|
name,
|
|
@@ -12566,15 +12566,15 @@ const NotificationIconButton = forwardRef$1((_a, ref) => {
|
|
|
12566
12566
|
]);
|
|
12567
12567
|
const [isBlinking, setIsBlinking] = useState(false);
|
|
12568
12568
|
const { container, notifier } = useMultiStyleConfig("NotificationIconButton", { size, variant });
|
|
12569
|
-
return /* @__PURE__ */ React
|
|
12569
|
+
return /* @__PURE__ */ React.createElement(
|
|
12570
12570
|
Box,
|
|
12571
12571
|
{
|
|
12572
12572
|
onMouseEnter: () => setIsBlinking(true),
|
|
12573
12573
|
onMouseLeave: () => setIsBlinking(false),
|
|
12574
12574
|
sx: container
|
|
12575
12575
|
},
|
|
12576
|
-
hasNotification && /* @__PURE__ */ React
|
|
12577
|
-
/* @__PURE__ */ React
|
|
12576
|
+
hasNotification && /* @__PURE__ */ React.createElement(Box, { sx: notifier }, /* @__PURE__ */ React.createElement(Blinker, { isBlinking, color: blinkerColor, size: "2xs" })),
|
|
12577
|
+
/* @__PURE__ */ React.createElement(
|
|
12578
12578
|
IconButton,
|
|
12579
12579
|
__spreadValues$u({
|
|
12580
12580
|
variant,
|
|
@@ -12628,7 +12628,7 @@ const PinInput = (_a) => {
|
|
|
12628
12628
|
"hidden",
|
|
12629
12629
|
"children"
|
|
12630
12630
|
]);
|
|
12631
|
-
return /* @__PURE__ */ React
|
|
12631
|
+
return /* @__PURE__ */ React.createElement(PinInput$2, __spreadProps$5(__spreadValues$t({}, rest), { variant, placeholder: "\u25CF", mask: hidden }), children);
|
|
12632
12632
|
};
|
|
12633
12633
|
|
|
12634
12634
|
const isStringArray = (value) => is(Array, value) && length(value) > 0 && typeof value[0] === "string";
|
|
@@ -12730,7 +12730,7 @@ const Select = forwardRef$1((_a, ref) => {
|
|
|
12730
12730
|
}
|
|
12731
12731
|
return prevOptions.current;
|
|
12732
12732
|
}, [options]);
|
|
12733
|
-
return /* @__PURE__ */ React
|
|
12733
|
+
return /* @__PURE__ */ React.createElement(Box, { w: "full", "data-testid": testId, cursor: "pointer" }, /* @__PURE__ */ React.createElement(
|
|
12734
12734
|
Select$3,
|
|
12735
12735
|
__spreadValues$s(__spreadProps$4(__spreadValues$s({
|
|
12736
12736
|
isMulti,
|
|
@@ -12810,7 +12810,7 @@ const BaseSelectField = (_a, ref) => {
|
|
|
12810
12810
|
"inputLeftElement",
|
|
12811
12811
|
"inputRightElement"
|
|
12812
12812
|
]);
|
|
12813
|
-
return /* @__PURE__ */ React
|
|
12813
|
+
return /* @__PURE__ */ React.createElement(
|
|
12814
12814
|
Field,
|
|
12815
12815
|
{
|
|
12816
12816
|
name,
|
|
@@ -12821,13 +12821,13 @@ const BaseSelectField = (_a, ref) => {
|
|
|
12821
12821
|
validate,
|
|
12822
12822
|
ref
|
|
12823
12823
|
},
|
|
12824
|
-
({ value, onChange }) => /* @__PURE__ */ React
|
|
12824
|
+
({ value, onChange }) => /* @__PURE__ */ React.createElement(HStack, { w: "full" }, /* @__PURE__ */ React.createElement(
|
|
12825
12825
|
InputGroupWrapper,
|
|
12826
12826
|
{
|
|
12827
12827
|
inputLeftElement,
|
|
12828
12828
|
inputRightElement
|
|
12829
12829
|
},
|
|
12830
|
-
/* @__PURE__ */ React
|
|
12830
|
+
/* @__PURE__ */ React.createElement(
|
|
12831
12831
|
Select,
|
|
12832
12832
|
__spreadValues$r({
|
|
12833
12833
|
name,
|
|
@@ -12846,7 +12846,7 @@ const BaseSelectField = (_a, ref) => {
|
|
|
12846
12846
|
) : null
|
|
12847
12847
|
}, rest)
|
|
12848
12848
|
)
|
|
12849
|
-
), /* @__PURE__ */ React
|
|
12849
|
+
), /* @__PURE__ */ React.createElement(
|
|
12850
12850
|
IconButton,
|
|
12851
12851
|
{
|
|
12852
12852
|
"aria-label": `${name}-close-button`,
|
|
@@ -12858,7 +12858,7 @@ const BaseSelectField = (_a, ref) => {
|
|
|
12858
12858
|
onChange(void 0);
|
|
12859
12859
|
onChangeCallback(void 0, { action: "clear", removedValues: value });
|
|
12860
12860
|
},
|
|
12861
|
-
icon: /* @__PURE__ */ React
|
|
12861
|
+
icon: /* @__PURE__ */ React.createElement(Icon, { as: XCloseSolid })
|
|
12862
12862
|
}
|
|
12863
12863
|
))
|
|
12864
12864
|
);
|
|
@@ -12905,7 +12905,7 @@ const Switch = (_a) => {
|
|
|
12905
12905
|
"name",
|
|
12906
12906
|
"size"
|
|
12907
12907
|
]);
|
|
12908
|
-
return /* @__PURE__ */ React
|
|
12908
|
+
return /* @__PURE__ */ React.createElement(
|
|
12909
12909
|
Switch$2,
|
|
12910
12910
|
__spreadValues$q({
|
|
12911
12911
|
size,
|
|
@@ -12964,7 +12964,7 @@ const SwitchField = forwardRef$1((_a, ref) => {
|
|
|
12964
12964
|
"labelPlacement",
|
|
12965
12965
|
"labelSize"
|
|
12966
12966
|
]);
|
|
12967
|
-
return /* @__PURE__ */ React
|
|
12967
|
+
return /* @__PURE__ */ React.createElement(Box, { w: label ? "full" : "fit-content", display: "inline-flex" }, /* @__PURE__ */ React.createElement(
|
|
12968
12968
|
Field,
|
|
12969
12969
|
{
|
|
12970
12970
|
name,
|
|
@@ -12974,7 +12974,7 @@ const SwitchField = forwardRef$1((_a, ref) => {
|
|
|
12974
12974
|
validate,
|
|
12975
12975
|
ref
|
|
12976
12976
|
},
|
|
12977
|
-
({ onChange, value }) => /* @__PURE__ */ React
|
|
12977
|
+
({ onChange, value }) => /* @__PURE__ */ React.createElement(
|
|
12978
12978
|
Flex,
|
|
12979
12979
|
{
|
|
12980
12980
|
display: "inline-flex",
|
|
@@ -12982,7 +12982,7 @@ const SwitchField = forwardRef$1((_a, ref) => {
|
|
|
12982
12982
|
gap: 2,
|
|
12983
12983
|
direction: labelPlacement === "left" ? "row-reverse" : "row"
|
|
12984
12984
|
},
|
|
12985
|
-
/* @__PURE__ */ React
|
|
12985
|
+
/* @__PURE__ */ React.createElement(
|
|
12986
12986
|
Switch,
|
|
12987
12987
|
__spreadValues$p({
|
|
12988
12988
|
name,
|
|
@@ -12994,7 +12994,7 @@ const SwitchField = forwardRef$1((_a, ref) => {
|
|
|
12994
12994
|
"data-testid": "switch-field-test-id"
|
|
12995
12995
|
}, rest)
|
|
12996
12996
|
),
|
|
12997
|
-
/* @__PURE__ */ React
|
|
12997
|
+
/* @__PURE__ */ React.createElement(Label, { htmlFor: name, sx: { fontWeight: "normal" }, size: labelSize }, label)
|
|
12998
12998
|
)
|
|
12999
12999
|
));
|
|
13000
13000
|
});
|
|
@@ -13015,7 +13015,7 @@ var __spreadValues$o = (a, b) => {
|
|
|
13015
13015
|
}
|
|
13016
13016
|
return a;
|
|
13017
13017
|
};
|
|
13018
|
-
const TabPanel = (props) => /* @__PURE__ */ React
|
|
13018
|
+
const TabPanel = (props) => /* @__PURE__ */ React.createElement(TabPanel$1, __spreadValues$o({ padding: 0 }, props));
|
|
13019
13019
|
|
|
13020
13020
|
var __defProp$n = Object.defineProperty;
|
|
13021
13021
|
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
@@ -13055,7 +13055,7 @@ const Tabs = (_a) => {
|
|
|
13055
13055
|
"variant",
|
|
13056
13056
|
"isManual"
|
|
13057
13057
|
]);
|
|
13058
|
-
return /* @__PURE__ */ React
|
|
13058
|
+
return /* @__PURE__ */ React.createElement(
|
|
13059
13059
|
Tabs$2,
|
|
13060
13060
|
__spreadValues$n({
|
|
13061
13061
|
isManual,
|
|
@@ -13105,7 +13105,7 @@ const Textarea = (_a) => {
|
|
|
13105
13105
|
"name",
|
|
13106
13106
|
"value"
|
|
13107
13107
|
]);
|
|
13108
|
-
return /* @__PURE__ */ React
|
|
13108
|
+
return /* @__PURE__ */ React.createElement(
|
|
13109
13109
|
Textarea$2,
|
|
13110
13110
|
__spreadValues$m({
|
|
13111
13111
|
size,
|
|
@@ -13160,7 +13160,7 @@ const TextareaField = forwardRef$1((_a, ref) => {
|
|
|
13160
13160
|
"direction",
|
|
13161
13161
|
"onChange"
|
|
13162
13162
|
]);
|
|
13163
|
-
return /* @__PURE__ */ React
|
|
13163
|
+
return /* @__PURE__ */ React.createElement(
|
|
13164
13164
|
Field,
|
|
13165
13165
|
{
|
|
13166
13166
|
name,
|
|
@@ -13170,7 +13170,7 @@ const TextareaField = forwardRef$1((_a, ref) => {
|
|
|
13170
13170
|
direction,
|
|
13171
13171
|
ref
|
|
13172
13172
|
},
|
|
13173
|
-
({ onChange, value }) => /* @__PURE__ */ React
|
|
13173
|
+
({ onChange, value }) => /* @__PURE__ */ React.createElement(
|
|
13174
13174
|
Textarea,
|
|
13175
13175
|
__spreadValues$l({
|
|
13176
13176
|
name,
|
|
@@ -13294,13 +13294,13 @@ const FormattedNumberInput = (_a) => {
|
|
|
13294
13294
|
useEffect(() => {
|
|
13295
13295
|
validateRange();
|
|
13296
13296
|
}, [value]);
|
|
13297
|
-
return /* @__PURE__ */ React
|
|
13297
|
+
return /* @__PURE__ */ React.createElement(
|
|
13298
13298
|
InputGroupWrapper,
|
|
13299
13299
|
{
|
|
13300
13300
|
inputLeftElement,
|
|
13301
13301
|
inputRightElement
|
|
13302
13302
|
},
|
|
13303
|
-
/* @__PURE__ */ React
|
|
13303
|
+
/* @__PURE__ */ React.createElement(
|
|
13304
13304
|
NumericFormat,
|
|
13305
13305
|
__spreadValues$k(__spreadValues$k({
|
|
13306
13306
|
allowLeadingZeros: true,
|
|
@@ -13362,7 +13362,7 @@ const FormattedNumberInputField = forwardRef$1((_a, ref) => {
|
|
|
13362
13362
|
"onChange",
|
|
13363
13363
|
"direction"
|
|
13364
13364
|
]);
|
|
13365
|
-
return /* @__PURE__ */ React
|
|
13365
|
+
return /* @__PURE__ */ React.createElement(
|
|
13366
13366
|
Field,
|
|
13367
13367
|
{
|
|
13368
13368
|
name,
|
|
@@ -13372,7 +13372,7 @@ const FormattedNumberInputField = forwardRef$1((_a, ref) => {
|
|
|
13372
13372
|
validate,
|
|
13373
13373
|
ref
|
|
13374
13374
|
},
|
|
13375
|
-
({ onChange, value }) => /* @__PURE__ */ React
|
|
13375
|
+
({ onChange, value }) => /* @__PURE__ */ React.createElement(
|
|
13376
13376
|
FormattedNumberInput,
|
|
13377
13377
|
__spreadValues$j({
|
|
13378
13378
|
name,
|
|
@@ -13436,7 +13436,7 @@ const MaskedTextInput = (_a) => {
|
|
|
13436
13436
|
"onChange",
|
|
13437
13437
|
"onBlur"
|
|
13438
13438
|
]);
|
|
13439
|
-
return /* @__PURE__ */ React
|
|
13439
|
+
return /* @__PURE__ */ React.createElement(
|
|
13440
13440
|
CustomInput,
|
|
13441
13441
|
{
|
|
13442
13442
|
mask,
|
|
@@ -13447,7 +13447,7 @@ const MaskedTextInput = (_a) => {
|
|
|
13447
13447
|
onChange,
|
|
13448
13448
|
onBlur
|
|
13449
13449
|
},
|
|
13450
|
-
({ name: nameProp }) => /* @__PURE__ */ React
|
|
13450
|
+
({ name: nameProp }) => /* @__PURE__ */ React.createElement(
|
|
13451
13451
|
Input$1,
|
|
13452
13452
|
__spreadValues$i({
|
|
13453
13453
|
placeholder: maskPlaceholder != null ? maskPlaceholder : placeholder,
|
|
@@ -13507,7 +13507,7 @@ const TextField = forwardRef$1((_a, ref) => {
|
|
|
13507
13507
|
"inputLeftElement",
|
|
13508
13508
|
"inputRightElement"
|
|
13509
13509
|
]);
|
|
13510
|
-
return /* @__PURE__ */ React
|
|
13510
|
+
return /* @__PURE__ */ React.createElement(
|
|
13511
13511
|
Field,
|
|
13512
13512
|
{
|
|
13513
13513
|
name,
|
|
@@ -13517,13 +13517,13 @@ const TextField = forwardRef$1((_a, ref) => {
|
|
|
13517
13517
|
direction,
|
|
13518
13518
|
ref
|
|
13519
13519
|
},
|
|
13520
|
-
({ onChange, value }) => /* @__PURE__ */ React
|
|
13520
|
+
({ onChange, value }) => /* @__PURE__ */ React.createElement(
|
|
13521
13521
|
InputGroupWrapper,
|
|
13522
13522
|
{
|
|
13523
13523
|
inputLeftElement,
|
|
13524
13524
|
inputRightElement
|
|
13525
13525
|
},
|
|
13526
|
-
/* @__PURE__ */ React
|
|
13526
|
+
/* @__PURE__ */ React.createElement(
|
|
13527
13527
|
As,
|
|
13528
13528
|
__spreadValues$h({
|
|
13529
13529
|
id: name,
|
|
@@ -13592,20 +13592,20 @@ const Toast = (_a) => {
|
|
|
13592
13592
|
"onClose"
|
|
13593
13593
|
]);
|
|
13594
13594
|
const icon = toastIconMap[variant];
|
|
13595
|
-
return /* @__PURE__ */ React
|
|
13595
|
+
return /* @__PURE__ */ React.createElement(
|
|
13596
13596
|
Alert$2,
|
|
13597
13597
|
__spreadValues$g({
|
|
13598
13598
|
variant,
|
|
13599
13599
|
"data-testid": "toast-test"
|
|
13600
13600
|
}, rest),
|
|
13601
|
-
/* @__PURE__ */ React
|
|
13601
|
+
/* @__PURE__ */ React.createElement(HStack, { alignItems: "flex-start" }, icon && /* @__PURE__ */ React.createElement(
|
|
13602
13602
|
Icon,
|
|
13603
13603
|
{
|
|
13604
13604
|
as: icon,
|
|
13605
13605
|
color: `icon.toast.${variant}`,
|
|
13606
13606
|
boxSize: 6
|
|
13607
13607
|
}
|
|
13608
|
-
), /* @__PURE__ */ React
|
|
13608
|
+
), /* @__PURE__ */ React.createElement(Stack, { spacing: 0, alignItems: "flex-start" }, title && /* @__PURE__ */ React.createElement(Label, { size: "md" }, title), description && /* @__PURE__ */ React.createElement(
|
|
13609
13609
|
P,
|
|
13610
13610
|
{
|
|
13611
13611
|
sx: {
|
|
@@ -13613,7 +13613,7 @@ const Toast = (_a) => {
|
|
|
13613
13613
|
}
|
|
13614
13614
|
},
|
|
13615
13615
|
description
|
|
13616
|
-
)), /* @__PURE__ */ React
|
|
13616
|
+
)), /* @__PURE__ */ React.createElement(
|
|
13617
13617
|
CloseButton$1,
|
|
13618
13618
|
{
|
|
13619
13619
|
size: "sm",
|
|
@@ -13653,7 +13653,7 @@ const useToast = (defaultOpts = {}) => {
|
|
|
13653
13653
|
title = "Success",
|
|
13654
13654
|
description = ""
|
|
13655
13655
|
} = opts;
|
|
13656
|
-
return /* @__PURE__ */ React
|
|
13656
|
+
return /* @__PURE__ */ React.createElement(
|
|
13657
13657
|
Toast,
|
|
13658
13658
|
{
|
|
13659
13659
|
variant,
|
|
@@ -13724,7 +13724,7 @@ const StatusPin = (_a) => {
|
|
|
13724
13724
|
const pinColor = pinVariantMap[variant];
|
|
13725
13725
|
const pinSizeTuple = pinSizeMap[size];
|
|
13726
13726
|
const [outerSize, innerSize] = pinSizeTuple;
|
|
13727
|
-
return /* @__PURE__ */ React
|
|
13727
|
+
return /* @__PURE__ */ React.createElement(
|
|
13728
13728
|
Circle,
|
|
13729
13729
|
__spreadValues$e({
|
|
13730
13730
|
size: outerSize,
|
|
@@ -13732,7 +13732,7 @@ const StatusPin = (_a) => {
|
|
|
13732
13732
|
borderWidth: "xs",
|
|
13733
13733
|
borderColor: pinColor
|
|
13734
13734
|
}, rest),
|
|
13735
|
-
/* @__PURE__ */ React
|
|
13735
|
+
/* @__PURE__ */ React.createElement(
|
|
13736
13736
|
Circle,
|
|
13737
13737
|
{
|
|
13738
13738
|
size: innerSize,
|
|
@@ -13776,7 +13776,7 @@ const AsyncError = (_a) => {
|
|
|
13776
13776
|
} = _b, rest = __objRest$a(_b, [
|
|
13777
13777
|
"message"
|
|
13778
13778
|
]);
|
|
13779
|
-
return /* @__PURE__ */ React
|
|
13779
|
+
return /* @__PURE__ */ React.createElement(Alert$2, __spreadValues$d({ backgroundColor: "background.default", color: "text.default", width: "100%" }, rest), /* @__PURE__ */ React.createElement(VStack, { w: "full" }, /* @__PURE__ */ React.createElement(Icon, { as: toastIconMap.error, color: "icon.toast.error", boxSize: 6 }), /* @__PURE__ */ React.createElement(AlertTitle, null, " Error "), message && /* @__PURE__ */ React.createElement(AlertDescription, null, message)));
|
|
13780
13780
|
};
|
|
13781
13781
|
|
|
13782
13782
|
var __defProp$c = Object.defineProperty;
|
|
@@ -13795,7 +13795,7 @@ var __spreadValues$c = (a, b) => {
|
|
|
13795
13795
|
}
|
|
13796
13796
|
return a;
|
|
13797
13797
|
};
|
|
13798
|
-
const StepPanel = (props) => /* @__PURE__ */ React
|
|
13798
|
+
const StepPanel = (props) => /* @__PURE__ */ React.createElement(TabPanel, __spreadValues$c({ padding: 0 }, props));
|
|
13799
13799
|
|
|
13800
13800
|
var __defProp$b = Object.defineProperty;
|
|
13801
13801
|
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
@@ -13813,7 +13813,7 @@ var __spreadValues$b = (a, b) => {
|
|
|
13813
13813
|
}
|
|
13814
13814
|
return a;
|
|
13815
13815
|
};
|
|
13816
|
-
const Steps = (props) => /* @__PURE__ */ React
|
|
13816
|
+
const Steps = (props) => /* @__PURE__ */ React.createElement(Tabs$2, __spreadValues$b({ isManual: true }, props));
|
|
13817
13817
|
|
|
13818
13818
|
var __defProp$a = Object.defineProperty;
|
|
13819
13819
|
var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
|
|
@@ -13851,12 +13851,12 @@ const Step = (_a) => {
|
|
|
13851
13851
|
description: descriptionStyle,
|
|
13852
13852
|
indicator: indicatorStyle
|
|
13853
13853
|
} = useMultiStyleConfig("Step");
|
|
13854
|
-
return /* @__PURE__ */ React
|
|
13854
|
+
return /* @__PURE__ */ React.createElement(
|
|
13855
13855
|
Tab,
|
|
13856
13856
|
__spreadValues$a({
|
|
13857
13857
|
sx: step
|
|
13858
13858
|
}, rest),
|
|
13859
|
-
/* @__PURE__ */ React
|
|
13859
|
+
/* @__PURE__ */ React.createElement(Flex, { flexDirection: "row", alignItems: "flex-start", gap: "4", _groupFocusVisible: ring }, indicator && /* @__PURE__ */ React.createElement(
|
|
13860
13860
|
Box,
|
|
13861
13861
|
{
|
|
13862
13862
|
sx: indicatorStyle,
|
|
@@ -13864,7 +13864,7 @@ const Step = (_a) => {
|
|
|
13864
13864
|
justifyContent: "center"
|
|
13865
13865
|
},
|
|
13866
13866
|
indicator
|
|
13867
|
-
), /* @__PURE__ */ React
|
|
13867
|
+
), /* @__PURE__ */ React.createElement(Flex, { flexDirection: "column" }, /* @__PURE__ */ React.createElement(Capitalized, { sx: labelStyle }, label), description && /* @__PURE__ */ React.createElement(Lead, { sx: descriptionStyle }, description)))
|
|
13868
13868
|
);
|
|
13869
13869
|
};
|
|
13870
13870
|
|
|
@@ -13903,7 +13903,7 @@ const StepList = (_a) => {
|
|
|
13903
13903
|
var _b = _a, { children } = _b, rest = __objRest$8(_b, ["children"]);
|
|
13904
13904
|
const tabs = Children.count(children);
|
|
13905
13905
|
const styles = useStyleConfig("StepList", { tabs });
|
|
13906
|
-
return /* @__PURE__ */ React
|
|
13906
|
+
return /* @__PURE__ */ React.createElement(TabList, __spreadProps$2(__spreadValues$9({}, rest), { sx: styles }), children);
|
|
13907
13907
|
};
|
|
13908
13908
|
|
|
13909
13909
|
var __defProp$8 = Object.defineProperty;
|
|
@@ -13949,7 +13949,7 @@ const ClipboardInput = forwardRef$1((_a, ref) => {
|
|
|
13949
13949
|
useEffect(() => {
|
|
13950
13950
|
setValue(value);
|
|
13951
13951
|
}, [value]);
|
|
13952
|
-
return /* @__PURE__ */ React
|
|
13952
|
+
return /* @__PURE__ */ React.createElement(InputGroup, { size, "data-testid": "clipboard-input-test-id", ref }, /* @__PURE__ */ React.createElement(
|
|
13953
13953
|
Input$1,
|
|
13954
13954
|
__spreadValues$8({
|
|
13955
13955
|
textOverflow: "ellipsis",
|
|
@@ -13957,7 +13957,7 @@ const ClipboardInput = forwardRef$1((_a, ref) => {
|
|
|
13957
13957
|
isReadOnly: true,
|
|
13958
13958
|
value
|
|
13959
13959
|
}, rest)
|
|
13960
|
-
), /* @__PURE__ */ React
|
|
13960
|
+
), /* @__PURE__ */ React.createElement(InputRightElement, null, /* @__PURE__ */ React.createElement(
|
|
13961
13961
|
Tooltip,
|
|
13962
13962
|
{
|
|
13963
13963
|
label: hasCopied ? "Copied!" : "Copy",
|
|
@@ -13965,7 +13965,7 @@ const ClipboardInput = forwardRef$1((_a, ref) => {
|
|
|
13965
13965
|
closeOnClick: false,
|
|
13966
13966
|
sx: tooltip
|
|
13967
13967
|
},
|
|
13968
|
-
/* @__PURE__ */ React
|
|
13968
|
+
/* @__PURE__ */ React.createElement(
|
|
13969
13969
|
IconButton,
|
|
13970
13970
|
{
|
|
13971
13971
|
"aria-label": ariaLabel || "Click to copy",
|
|
@@ -13973,7 +13973,7 @@ const ClipboardInput = forwardRef$1((_a, ref) => {
|
|
|
13973
13973
|
variant: hasCopied ? "success" : "default",
|
|
13974
13974
|
sx: button
|
|
13975
13975
|
},
|
|
13976
|
-
/* @__PURE__ */ React
|
|
13976
|
+
/* @__PURE__ */ React.createElement(
|
|
13977
13977
|
Icon,
|
|
13978
13978
|
{
|
|
13979
13979
|
as: hasCopied ? CheckDuo : CopyDuo,
|
|
@@ -14060,7 +14060,7 @@ const SplitPane = (_a) => {
|
|
|
14060
14060
|
[]
|
|
14061
14061
|
);
|
|
14062
14062
|
const containerStyle = useStyleConfig("SplitPane", { minLeftWidth, minRightWidth, initialSplit, isOpen });
|
|
14063
|
-
return /* @__PURE__ */ React
|
|
14063
|
+
return /* @__PURE__ */ React.createElement(
|
|
14064
14064
|
Grid,
|
|
14065
14065
|
__spreadValues$7({
|
|
14066
14066
|
sx: containerStyle,
|
|
@@ -14102,7 +14102,7 @@ var __objRest$5 = (source, exclude) => {
|
|
|
14102
14102
|
};
|
|
14103
14103
|
const PaneItem = (_a) => {
|
|
14104
14104
|
var _b = _a, { children } = _b, rest = __objRest$5(_b, ["children"]);
|
|
14105
|
-
return /* @__PURE__ */ React
|
|
14105
|
+
return /* @__PURE__ */ React.createElement(GridItem, __spreadValues$6({ overflow: "hidden" }, rest), children);
|
|
14106
14106
|
};
|
|
14107
14107
|
|
|
14108
14108
|
var __defProp$5 = Object.defineProperty;
|
|
@@ -14123,7 +14123,7 @@ var __spreadValues$5 = (a, b) => {
|
|
|
14123
14123
|
};
|
|
14124
14124
|
const PaneDivider = forwardRef((props, ref) => {
|
|
14125
14125
|
const style = useStyleConfig("PaneDivider");
|
|
14126
|
-
return /* @__PURE__ */ React
|
|
14126
|
+
return /* @__PURE__ */ React.createElement(
|
|
14127
14127
|
Box,
|
|
14128
14128
|
__spreadValues$5({
|
|
14129
14129
|
ref,
|
|
@@ -14176,8 +14176,8 @@ const StepStack = (_a) => {
|
|
|
14176
14176
|
]);
|
|
14177
14177
|
const rows = getChildrenWithProps(children, {});
|
|
14178
14178
|
const parsedRowHeight = useToken("sizes", rowHeight);
|
|
14179
|
-
return /* @__PURE__ */ React
|
|
14180
|
-
(row, i) => /* @__PURE__ */ React
|
|
14179
|
+
return /* @__PURE__ */ React.createElement(Stack, __spreadValues$4({ spacing, position: "relative" }, rest), rows.map(
|
|
14180
|
+
(row, i) => /* @__PURE__ */ React.createElement(HStack, { key: `row-${i}`, alignItems: stepCircleAlignment }, /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
14181
14181
|
Box,
|
|
14182
14182
|
{
|
|
14183
14183
|
borderRadius: "full",
|
|
@@ -14188,7 +14188,7 @@ const StepStack = (_a) => {
|
|
|
14188
14188
|
zIndex: "docked",
|
|
14189
14189
|
marginTop: `${stepCircleMarginTopPx}px`
|
|
14190
14190
|
},
|
|
14191
|
-
/* @__PURE__ */ React
|
|
14191
|
+
/* @__PURE__ */ React.createElement(
|
|
14192
14192
|
Label,
|
|
14193
14193
|
{
|
|
14194
14194
|
size: "sm",
|
|
@@ -14199,7 +14199,7 @@ const StepStack = (_a) => {
|
|
|
14199
14199
|
i + 1
|
|
14200
14200
|
)
|
|
14201
14201
|
), row))
|
|
14202
|
-
), /* @__PURE__ */ React
|
|
14202
|
+
), /* @__PURE__ */ React.createElement(
|
|
14203
14203
|
Divider,
|
|
14204
14204
|
{
|
|
14205
14205
|
orientation: "vertical",
|
|
@@ -14243,7 +14243,7 @@ const { Option: ChakraOption } = chakraComponents;
|
|
|
14243
14243
|
const getCustomComponents = () => ({
|
|
14244
14244
|
Option: (_a) => {
|
|
14245
14245
|
var _b = _a, { children } = _b, props = __objRest$3(_b, ["children"]);
|
|
14246
|
-
return /* @__PURE__ */ React
|
|
14246
|
+
return /* @__PURE__ */ React.createElement(ChakraOption, __spreadValues$3({}, props), props.data.isCreation && /* @__PURE__ */ React.createElement(
|
|
14247
14247
|
Flex,
|
|
14248
14248
|
{
|
|
14249
14249
|
mr: 3,
|
|
@@ -14252,8 +14252,8 @@ const getCustomComponents = () => ({
|
|
|
14252
14252
|
justifyContent: "center",
|
|
14253
14253
|
alignItems: "center"
|
|
14254
14254
|
},
|
|
14255
|
-
/* @__PURE__ */ React
|
|
14256
|
-
), !props.data.isCreation && /* @__PURE__ */ React
|
|
14255
|
+
/* @__PURE__ */ React.createElement(Icon, { as: PlusSolid, color: "brand" })
|
|
14256
|
+
), !props.data.isCreation && /* @__PURE__ */ React.createElement(Box, { mr: 3, width: 1.5 }), /* @__PURE__ */ React.createElement(
|
|
14257
14257
|
Text,
|
|
14258
14258
|
{
|
|
14259
14259
|
color: props.data.isCreation ? "text.brand" : "text.default",
|
|
@@ -14385,7 +14385,7 @@ const CreatableSelectDropdown = (_a) => {
|
|
|
14385
14385
|
);
|
|
14386
14386
|
const customOptions = [
|
|
14387
14387
|
__spreadProps$1(__spreadValues$2({}, creationOption), {
|
|
14388
|
-
icon: /* @__PURE__ */ React
|
|
14388
|
+
icon: /* @__PURE__ */ React.createElement(Icon$2, { as: PlusSolid, color: "brand" })
|
|
14389
14389
|
}),
|
|
14390
14390
|
...combinedOptions
|
|
14391
14391
|
];
|
|
@@ -14396,14 +14396,14 @@ const CreatableSelectDropdown = (_a) => {
|
|
|
14396
14396
|
setSelectedOption(newSelectedOption);
|
|
14397
14397
|
}
|
|
14398
14398
|
}, [value, combinedOptions]);
|
|
14399
|
-
return /* @__PURE__ */ React
|
|
14399
|
+
return /* @__PURE__ */ React.createElement(
|
|
14400
14400
|
Box,
|
|
14401
14401
|
{
|
|
14402
14402
|
ref,
|
|
14403
14403
|
w: "full",
|
|
14404
14404
|
borderRadius: "none"
|
|
14405
14405
|
},
|
|
14406
|
-
createNewOption && /* @__PURE__ */ React
|
|
14406
|
+
createNewOption && /* @__PURE__ */ React.createElement(
|
|
14407
14407
|
EditableText,
|
|
14408
14408
|
{
|
|
14409
14409
|
value: addFieldInputValue,
|
|
@@ -14427,7 +14427,7 @@ const CreatableSelectDropdown = (_a) => {
|
|
|
14427
14427
|
}
|
|
14428
14428
|
}
|
|
14429
14429
|
),
|
|
14430
|
-
!createNewOption && /* @__PURE__ */ React
|
|
14430
|
+
!createNewOption && /* @__PURE__ */ React.createElement(
|
|
14431
14431
|
CreatableSelect,
|
|
14432
14432
|
__spreadValues$2({
|
|
14433
14433
|
menuPlacement,
|
|
@@ -14579,7 +14579,7 @@ const ComboPicker = (_a) => {
|
|
|
14579
14579
|
onChange == null ? void 0 : onChange(getNewValue(option, input));
|
|
14580
14580
|
}
|
|
14581
14581
|
}, [inputValue, defaultToZeroIfEmpty]);
|
|
14582
|
-
return /* @__PURE__ */ React
|
|
14582
|
+
return /* @__PURE__ */ React.createElement(InputGroup, null, /* @__PURE__ */ React.createElement(
|
|
14583
14583
|
FormattedNumberInput,
|
|
14584
14584
|
__spreadValues$1({
|
|
14585
14585
|
width: "100%",
|
|
@@ -14594,7 +14594,7 @@ const ComboPicker = (_a) => {
|
|
|
14594
14594
|
min,
|
|
14595
14595
|
max
|
|
14596
14596
|
}, rest)
|
|
14597
|
-
), /* @__PURE__ */ React
|
|
14597
|
+
), /* @__PURE__ */ React.createElement(
|
|
14598
14598
|
InputRightElement,
|
|
14599
14599
|
{
|
|
14600
14600
|
width: "auto",
|
|
@@ -14602,7 +14602,7 @@ const ComboPicker = (_a) => {
|
|
|
14602
14602
|
justifyContent: "flex-end",
|
|
14603
14603
|
padding: 2
|
|
14604
14604
|
},
|
|
14605
|
-
/* @__PURE__ */ React
|
|
14605
|
+
/* @__PURE__ */ React.createElement(
|
|
14606
14606
|
Button$2,
|
|
14607
14607
|
{
|
|
14608
14608
|
ref: buttonRef,
|
|
@@ -14613,7 +14613,7 @@ const ComboPicker = (_a) => {
|
|
|
14613
14613
|
},
|
|
14614
14614
|
(_a2 = selectOption == null ? void 0 : selectOption.label) != null ? _a2 : ""
|
|
14615
14615
|
)
|
|
14616
|
-
), /* @__PURE__ */ React
|
|
14616
|
+
), /* @__PURE__ */ React.createElement(Box, { position: "absolute", width: "100%" }, /* @__PURE__ */ React.createElement(
|
|
14617
14617
|
Select,
|
|
14618
14618
|
{
|
|
14619
14619
|
ref: selectRef,
|
|
@@ -14686,7 +14686,7 @@ const ComboPickerField = (_a) => {
|
|
|
14686
14686
|
"validate",
|
|
14687
14687
|
"onChange"
|
|
14688
14688
|
]);
|
|
14689
|
-
return /* @__PURE__ */ React
|
|
14689
|
+
return /* @__PURE__ */ React.createElement(
|
|
14690
14690
|
Field,
|
|
14691
14691
|
{
|
|
14692
14692
|
name,
|
|
@@ -14695,7 +14695,7 @@ const ComboPickerField = (_a) => {
|
|
|
14695
14695
|
isRequired,
|
|
14696
14696
|
validate
|
|
14697
14697
|
},
|
|
14698
|
-
({ value, onChange }) => /* @__PURE__ */ React
|
|
14698
|
+
({ value, onChange }) => /* @__PURE__ */ React.createElement(
|
|
14699
14699
|
ComboPicker,
|
|
14700
14700
|
__spreadValues({
|
|
14701
14701
|
"data-testid": "combo-picker-test-id",
|