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