@vygruppen/spor-react 9.6.0 → 9.6.1
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/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +11 -1
- package/dist/{CountryCodeSelect-EZTV452W.mjs → CountryCodeSelect-2KOFVXIQ.mjs} +1 -1
- package/dist/{chunk-7VZBL2PP.mjs → chunk-XXA3IGVH.mjs} +309 -479
- package/dist/index.d.mts +1 -694
- package/dist/index.d.ts +1 -694
- package/dist/index.js +362 -548
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
- package/src/card/index.tsx +0 -1
- package/src/theme/components/index.ts +0 -1
- package/src/theme/components/static-card.ts +2 -3
- package/src/card/PressableCard.tsx +0 -52
- package/src/theme/components/pressable-card.ts +0 -179
@@ -3,8 +3,8 @@ import * as tokens11 from '@vygruppen/spor-design-tokens';
|
|
3
3
|
export { tokens11 as tokens };
|
4
4
|
import { forwardRef, Divider as Divider$1, Stack as Stack$1, Accordion as Accordion$1, Skeleton as Skeleton$1, useButtonGroup, useStyleConfig, Box, Center, Flex, ButtonGroup as ButtonGroup$1, IconButton as IconButton$1, useMultiStyleConfig, chakra, Badge as Badge$1, Code as Code$1, Text, PopoverAnchor, FormLabel, useFormControlContext, PopoverContent, PopoverArrow, PopoverBody, FocusLock, Popover, InputGroup, PopoverTrigger, Portal, Checkbox as Checkbox$1, useCheckbox, FormControl as FormControl$1, InputLeftElement, Input as Input$1, InputRightElement, Select, useDisclosure, Button as Button$1, useControllableState, Radio as Radio$1, RadioGroup as RadioGroup$1, Switch as Switch$1, Textarea as Textarea$1, Link, ModalHeader as ModalHeader$1, useModalContext, DrawerContent as DrawerContent$1, Tabs as Tabs$1, Table as Table$1, defineStyleConfig as defineStyleConfig$1, createMultiStyleConfigHelpers as createMultiStyleConfigHelpers$1, AccordionItem, AccordionButton, AccordionIcon, AccordionPanel, useColorMode, SkeletonCircle as SkeletonCircle$1, SkeletonText as SkeletonText$1, useColorModeValue, Breadcrumb as Breadcrumb$1, BreadcrumbItem as BreadcrumbItem$1, BreadcrumbLink as BreadcrumbLink$1, Heading as Heading$1, CheckboxGroup as CheckboxGroup$1, List, ListItem, useFormControlProps, useFormControl, Drawer as Drawer$1, DrawerOverlay, DrawerBody, DrawerHeader, useMediaQuery, DrawerCloseButton, DarkMode, PopoverCloseButton, usePopoverContext, UnorderedList, ChakraProvider, useToast as useToast$1, useInterval } from '@chakra-ui/react';
|
5
5
|
export { AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, Box, Center, Collapse, Container, DarkMode, DrawerBody, DrawerCloseButton, DrawerFooter, DrawerOverlay, Fade, Flex, FormHelperText, Grid, GridItem, HStack, Image, Img, InputGroup, LightMode, ListItem, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalOverlay, OrderedList, Portal, ScaleFade, SimpleGrid, Slide, SlideFade, Spacer, Tab, TabList, TabPanel, TabPanels, TableCaption, Tbody, Td, Tfoot, Th, Thead, Tr, UnorderedList, VStack, Wrap, WrapItem, defineStyleConfig, extendTheme, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useTheme, useToken } from '@chakra-ui/react';
|
6
|
-
import * as
|
7
|
-
import
|
6
|
+
import * as React70 from 'react';
|
7
|
+
import React70__default, { createContext, useEffect, forwardRef as forwardRef$1, useRef, useState, useId, Suspense, useContext, useCallback, useMemo, useLayoutEffect } from 'react';
|
8
8
|
import { CloseFill30Icon, CloseFill24Icon, CloseFill18Icon, CalendarOutline24Icon, CloseOutline24Icon, SearchOutline24Icon, InformationFill24Icon, InformationFill18Icon, WarningFill24Icon, WarningFill18Icon, ErrorFill24Icon, ErrorFill18Icon, LinkOutOutline24Icon, DropdownRightFill18Icon, DropdownLeftFill18Icon, DropdownDownFill18Icon, DropdownDownFill24Icon, DropdownUpFill24Icon, ArrowRightFill18Icon, ArrowLeftFill24Icon, ArrowLeftOutline24Icon, ArrowRightOutline24Icon, ErrorOutline24Icon, AltTransportOutline24Icon, WarningOutline24Icon, SuccessOutline24Icon, InformationOutline24Icon, TrainFill18Icon, TrainFill24Icon, TrainFill30Icon, ExpressBusFill18Icon, ExpressBusFill24Icon, ExpressBusFill30Icon, BusFill18Icon, BusFill24Icon, BusFill30Icon, FerryFill18Icon, FerryFill24Icon, FerryFill30Icon, SubwayFill18Icon, SubwayFill24Icon, SubwayFill30Icon, TramFill18Icon, TramFill24Icon, TramFill30Icon, AltTransportFill18Icon, AltTransportFill24Icon, AltTransportFill30Icon, WalkFill18Icon, WalkFill24Icon, WalkFill30Icon } from '@vygruppen/spor-icon-react';
|
9
9
|
import { inlineLoaderColorData, spinnerColorData, contentLoaderData, fullScreenLoaderWhiteData, inlineLoaderDarkData, fullScreenLoaderBlackData, inlineLoaderLightData, spinnerLightData, spinnerDarkData } from '@vygruppen/spor-loader';
|
10
10
|
import { useLottie } from 'lottie-react';
|
@@ -771,22 +771,22 @@ var require_lodash = __commonJS({
|
|
771
771
|
}
|
772
772
|
});
|
773
773
|
var Divider = forwardRef((props, ref) => {
|
774
|
-
return /* @__PURE__ */
|
774
|
+
return /* @__PURE__ */ React70__default.createElement(Divider$1, { ...props, ref });
|
775
775
|
});
|
776
776
|
var Stack = forwardRef(
|
777
777
|
({ flexDirection, ...props }, ref) => {
|
778
|
-
return /* @__PURE__ */
|
778
|
+
return /* @__PURE__ */ React70__default.createElement(Stack$1, { ...props, direction: flexDirection, ref });
|
779
779
|
}
|
780
780
|
);
|
781
|
-
var AccordionContext =
|
781
|
+
var AccordionContext = React70__default.createContext(null);
|
782
782
|
var AccordionProvider = ({
|
783
783
|
size: size2,
|
784
784
|
...props
|
785
785
|
}) => {
|
786
|
-
return /* @__PURE__ */
|
786
|
+
return /* @__PURE__ */ React70__default.createElement(AccordionContext.Provider, { value: { size: size2 }, ...props });
|
787
787
|
};
|
788
788
|
var useAccordionContext = () => {
|
789
|
-
const context =
|
789
|
+
const context = React70__default.useContext(AccordionContext);
|
790
790
|
if (context === null) {
|
791
791
|
throw new Error(
|
792
792
|
"useAccordionContext must be used within AccordionProvider"
|
@@ -797,14 +797,14 @@ var useAccordionContext = () => {
|
|
797
797
|
var Accordion = forwardRef(
|
798
798
|
({ children, spacing: spacing3 = 2, ...props }, ref) => {
|
799
799
|
const defaultIndex = typeof props.defaultIndex === "number" && props.allowMultiple ? [props.defaultIndex] : props.defaultIndex;
|
800
|
-
return /* @__PURE__ */
|
800
|
+
return /* @__PURE__ */ React70__default.createElement(AccordionProvider, { size: props.size }, /* @__PURE__ */ React70__default.createElement(
|
801
801
|
Accordion$1,
|
802
802
|
{
|
803
803
|
...props,
|
804
804
|
ref,
|
805
805
|
defaultIndex
|
806
806
|
},
|
807
|
-
/* @__PURE__ */
|
807
|
+
/* @__PURE__ */ React70__default.createElement(Stack, { spacing: spacing3 }, children)
|
808
808
|
));
|
809
809
|
}
|
810
810
|
);
|
@@ -820,7 +820,7 @@ var Expandable = ({
|
|
820
820
|
},
|
821
821
|
...rest
|
822
822
|
}) => {
|
823
|
-
return /* @__PURE__ */
|
823
|
+
return /* @__PURE__ */ React70__default.createElement(
|
824
824
|
Accordion,
|
825
825
|
{
|
826
826
|
...rest,
|
@@ -830,7 +830,7 @@ var Expandable = ({
|
|
830
830
|
size: size2,
|
831
831
|
onChange: (expandedIndex) => onChange(expandedIndex === 0)
|
832
832
|
},
|
833
|
-
/* @__PURE__ */
|
833
|
+
/* @__PURE__ */ React70__default.createElement(
|
834
834
|
ExpandableItem,
|
835
835
|
{
|
836
836
|
headingLevel,
|
@@ -850,7 +850,7 @@ var ExpandableItem = ({
|
|
850
850
|
}) => {
|
851
851
|
const { size: size2 } = useAccordionContext();
|
852
852
|
warnAboutMismatchingIcon({ icon: leftIcon, size: size2 });
|
853
|
-
return /* @__PURE__ */
|
853
|
+
return /* @__PURE__ */ React70__default.createElement(AccordionItem, { ...rest }, /* @__PURE__ */ React70__default.createElement(Box, { as: headingLevel }, /* @__PURE__ */ React70__default.createElement(AccordionButton, null, /* @__PURE__ */ React70__default.createElement(Flex, { alignItems: "center" }, leftIcon && /* @__PURE__ */ React70__default.createElement(Box, { marginRight: 1 }, leftIcon), title), /* @__PURE__ */ React70__default.createElement(AccordionIcon, null))), /* @__PURE__ */ React70__default.createElement(AccordionPanel, null, children));
|
854
854
|
};
|
855
855
|
var warnAboutMismatchingIcon = ({ icon, size: size2 }) => {
|
856
856
|
var _a6, _b5;
|
@@ -899,7 +899,7 @@ function LanguageProvider({
|
|
899
899
|
language,
|
900
900
|
children
|
901
901
|
}) {
|
902
|
-
return /* @__PURE__ */
|
902
|
+
return /* @__PURE__ */ React70__default.createElement(LanguageContext.Provider, { value: language }, children);
|
903
903
|
}
|
904
904
|
function useLanguage() {
|
905
905
|
const language = useContext(LanguageContext);
|
@@ -931,11 +931,11 @@ function useHydrated() {
|
|
931
931
|
// src/loader/ClientOnly.tsx
|
932
932
|
var ClientOnly = ({ children, fallback = null }) => {
|
933
933
|
const isHydrated = useHydrated();
|
934
|
-
return /* @__PURE__ */
|
934
|
+
return /* @__PURE__ */ React70__default.createElement(React70__default.Fragment, null, isHydrated ? children() : fallback);
|
935
935
|
};
|
936
936
|
function Lottie({ animationData }) {
|
937
937
|
const { View } = useLottie({ animationData, loop: true });
|
938
|
-
return /* @__PURE__ */
|
938
|
+
return /* @__PURE__ */ React70__default.createElement(React70__default.Fragment, null, View);
|
939
939
|
}
|
940
940
|
|
941
941
|
// src/loader/ColorInlineLoader.tsx
|
@@ -944,7 +944,7 @@ var ColorInlineLoader = ({
|
|
944
944
|
maxWidth,
|
945
945
|
...props
|
946
946
|
}) => {
|
947
|
-
return /* @__PURE__ */
|
947
|
+
return /* @__PURE__ */ React70__default.createElement(Center, { ...props }, /* @__PURE__ */ React70__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React70__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React70__default.createElement(Lottie, { animationData: inlineLoaderColorData }))));
|
948
948
|
};
|
949
949
|
var ColorSpinner = ({
|
950
950
|
children,
|
@@ -952,24 +952,24 @@ var ColorSpinner = ({
|
|
952
952
|
maxWidth,
|
953
953
|
...props
|
954
954
|
}) => {
|
955
|
-
return /* @__PURE__ */
|
955
|
+
return /* @__PURE__ */ React70__default.createElement(Center, { flexDirection: "column", ...props }, /* @__PURE__ */ React70__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React70__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React70__default.createElement(Lottie, { animationData: spinnerColorData }))), children && /* @__PURE__ */ React70__default.createElement(Box, { marginTop: 3, fontWeight: "bold" }, children));
|
956
956
|
};
|
957
957
|
var ContentLoader = ({ children, ...props }) => {
|
958
|
-
return /* @__PURE__ */
|
958
|
+
return /* @__PURE__ */ React70__default.createElement(Box, { ...props }, /* @__PURE__ */ React70__default.createElement(Box, { maxWidth: "140px", marginX: "auto" }, /* @__PURE__ */ React70__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React70__default.createElement(Lottie, { animationData: contentLoaderData }))), children && /* @__PURE__ */ React70__default.createElement(Box, { textAlign: "center", fontWeight: "bold" }, children));
|
959
959
|
};
|
960
960
|
var DarkFullScreenLoader = ({
|
961
961
|
width,
|
962
962
|
maxWidth,
|
963
963
|
...props
|
964
964
|
}) => {
|
965
|
-
return /* @__PURE__ */
|
965
|
+
return /* @__PURE__ */ React70__default.createElement(Center, { height: "100%", background: "darkTeal", ...props }, /* @__PURE__ */ React70__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React70__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React70__default.createElement(Lottie, { animationData: fullScreenLoaderWhiteData }))));
|
966
966
|
};
|
967
967
|
var DarkInlineLoader = ({
|
968
968
|
width,
|
969
969
|
maxWidth,
|
970
970
|
...props
|
971
971
|
}) => {
|
972
|
-
return /* @__PURE__ */
|
972
|
+
return /* @__PURE__ */ React70__default.createElement(Center, { ...props }, /* @__PURE__ */ React70__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React70__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React70__default.createElement(Lottie, { animationData: inlineLoaderDarkData }))));
|
973
973
|
};
|
974
974
|
var DarkSpinner = ({
|
975
975
|
children,
|
@@ -979,21 +979,21 @@ var DarkSpinner = ({
|
|
979
979
|
}) => {
|
980
980
|
const { colorMode } = useColorMode();
|
981
981
|
const spinnerData = colorMode === "dark" ? spinnerLightData : spinnerDarkData;
|
982
|
-
return /* @__PURE__ */
|
982
|
+
return /* @__PURE__ */ React70__default.createElement(Center, { flexDirection: "column", ...props }, /* @__PURE__ */ React70__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React70__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React70__default.createElement(Lottie, { animationData: spinnerData }))), children && /* @__PURE__ */ React70__default.createElement(Box, { marginTop: 3, fontWeight: "bold" }, children));
|
983
983
|
};
|
984
984
|
var LightFullScreenLoader = ({
|
985
985
|
width,
|
986
986
|
maxWidth,
|
987
987
|
...props
|
988
988
|
}) => {
|
989
|
-
return /* @__PURE__ */
|
989
|
+
return /* @__PURE__ */ React70__default.createElement(Center, { height: "100%", background: "white", ...props }, /* @__PURE__ */ React70__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React70__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React70__default.createElement(Lottie, { animationData: fullScreenLoaderBlackData }))));
|
990
990
|
};
|
991
991
|
var LightInlineLoader = ({
|
992
992
|
width,
|
993
993
|
maxWidth,
|
994
994
|
...props
|
995
995
|
}) => {
|
996
|
-
return /* @__PURE__ */
|
996
|
+
return /* @__PURE__ */ React70__default.createElement(Center, { ...props }, /* @__PURE__ */ React70__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React70__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React70__default.createElement(Lottie, { animationData: inlineLoaderLightData }))));
|
997
997
|
};
|
998
998
|
var LightSpinner = ({
|
999
999
|
children,
|
@@ -1001,7 +1001,7 @@ var LightSpinner = ({
|
|
1001
1001
|
maxWidth,
|
1002
1002
|
...props
|
1003
1003
|
}) => {
|
1004
|
-
return /* @__PURE__ */
|
1004
|
+
return /* @__PURE__ */ React70__default.createElement(Center, { flexDirection: "column", ...props }, /* @__PURE__ */ React70__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React70__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React70__default.createElement(Lottie, { animationData: spinnerLightData }))), children && /* @__PURE__ */ React70__default.createElement(Box, { marginTop: 3, fontWeight: "bold" }, children));
|
1005
1005
|
};
|
1006
1006
|
var useRotatingLabel = ({ label, delay }) => {
|
1007
1007
|
const loadingTextArray = useMemo(
|
@@ -1038,7 +1038,7 @@ var ProgressBar = ({
|
|
1038
1038
|
"aria-label": ariaLabel || t2(texts.label(value))
|
1039
1039
|
});
|
1040
1040
|
const styles3 = useMultiStyleConfig("ProgressBar", {});
|
1041
|
-
return /* @__PURE__ */
|
1041
|
+
return /* @__PURE__ */ React70__default.createElement(React70__default.Fragment, null, /* @__PURE__ */ React70__default.createElement(
|
1042
1042
|
Box,
|
1043
1043
|
{
|
1044
1044
|
...progressBarProps,
|
@@ -1046,8 +1046,8 @@ var ProgressBar = ({
|
|
1046
1046
|
__css: styles3.container,
|
1047
1047
|
...rest
|
1048
1048
|
},
|
1049
|
-
/* @__PURE__ */
|
1050
|
-
currentLoadingText && /* @__PURE__ */
|
1049
|
+
/* @__PURE__ */ React70__default.createElement(Box, { width, __css: styles3.background }, /* @__PURE__ */ React70__default.createElement(Box, { __css: styles3.progress, height, width: `${value}%` })),
|
1050
|
+
currentLoadingText && /* @__PURE__ */ React70__default.createElement(Text, { sx: styles3.description, ...labelProps }, currentLoadingText)
|
1051
1051
|
));
|
1052
1052
|
};
|
1053
1053
|
var texts = createTexts({
|
@@ -1081,7 +1081,7 @@ var ProgressLoader = ({
|
|
1081
1081
|
const progressPathLength = ((_a6 = pathRef.current) == null ? void 0 : _a6.getTotalLength()) ?? 0;
|
1082
1082
|
const progress = (value - 100) / 100 * progressPathLength;
|
1083
1083
|
const id = useId();
|
1084
|
-
return /* @__PURE__ */
|
1084
|
+
return /* @__PURE__ */ React70__default.createElement(Box, { ...progressBarProps, minWidth: "100px", width, ...rest }, /* @__PURE__ */ React70__default.createElement(Box, { as: "svg", viewBox: "0 0 246 78", fill: "none" }, /* @__PURE__ */ React70__default.createElement(
|
1085
1085
|
Box,
|
1086
1086
|
{
|
1087
1087
|
as: "path",
|
@@ -1089,7 +1089,7 @@ var ProgressLoader = ({
|
|
1089
1089
|
d: "M14.0479 44.8251C19.4332 44.8251 23.7988 40.5242 23.7988 35.2187C23.7988 29.9133 19.4332 25.6124 14.0479 25.6124C8.66254 25.6124 4.29688 29.9133 4.29688 35.2187C4.29688 40.5242 8.66254 44.8251 14.0479 44.8251Z",
|
1090
1090
|
fill: "#FFB466"
|
1091
1091
|
}
|
1092
|
-
), /* @__PURE__ */
|
1092
|
+
), /* @__PURE__ */ React70__default.createElement(
|
1093
1093
|
Box,
|
1094
1094
|
{
|
1095
1095
|
as: "path",
|
@@ -1100,7 +1100,7 @@ var ProgressLoader = ({
|
|
1100
1100
|
strokeLinecap: "round",
|
1101
1101
|
strokeLinejoin: "round"
|
1102
1102
|
}
|
1103
|
-
), /* @__PURE__ */
|
1103
|
+
), /* @__PURE__ */ React70__default.createElement(
|
1104
1104
|
Box,
|
1105
1105
|
{
|
1106
1106
|
as: "path",
|
@@ -1115,7 +1115,7 @@ var ProgressLoader = ({
|
|
1115
1115
|
transition: "stroke-dashoffset .2s ease-out",
|
1116
1116
|
ref: pathRef
|
1117
1117
|
}
|
1118
|
-
), /* @__PURE__ */
|
1118
|
+
), /* @__PURE__ */ React70__default.createElement(
|
1119
1119
|
Box,
|
1120
1120
|
{
|
1121
1121
|
as: "path",
|
@@ -1123,7 +1123,7 @@ var ProgressLoader = ({
|
|
1123
1123
|
d: "M226.025 44.8251C231.411 44.8251 235.776 40.5242 235.776 35.2187C235.776 29.9133 231.411 25.6124 226.025 25.6124C220.64 25.6124 216.274 29.9133 216.274 35.2187C216.274 40.5242 220.64 44.8251 226.025 44.8251Z",
|
1124
1124
|
fill: "#688CBA"
|
1125
1125
|
}
|
1126
|
-
)), currentLoadingText && /* @__PURE__ */
|
1126
|
+
)), currentLoadingText && /* @__PURE__ */ React70__default.createElement(
|
1127
1127
|
Text,
|
1128
1128
|
{
|
1129
1129
|
textAlign: "center",
|
@@ -1142,9 +1142,9 @@ var texts2 = createTexts({
|
|
1142
1142
|
en: `${value}% done`
|
1143
1143
|
})
|
1144
1144
|
});
|
1145
|
-
var Skeleton = forwardRef((props, ref) => /* @__PURE__ */
|
1146
|
-
var SkeletonCircle = (props) => /* @__PURE__ */
|
1147
|
-
var SkeletonText = (props) => /* @__PURE__ */
|
1145
|
+
var Skeleton = forwardRef((props, ref) => /* @__PURE__ */ React70__default.createElement(Skeleton$1, { ...props, ref }));
|
1146
|
+
var SkeletonCircle = (props) => /* @__PURE__ */ React70__default.createElement(SkeletonCircle$1, { boxSize: 6, borderRadius: "50%", ...props });
|
1147
|
+
var SkeletonText = (props) => /* @__PURE__ */ React70__default.createElement(SkeletonText$1, { boxSize: 6, ...props });
|
1148
1148
|
|
1149
1149
|
// src/button/Button.tsx
|
1150
1150
|
var Button = forwardRef((props, ref) => {
|
@@ -1174,7 +1174,7 @@ var Button = forwardRef((props, ref) => {
|
|
1174
1174
|
if (fontWeight) {
|
1175
1175
|
styles3.fontWeight = fontWeight;
|
1176
1176
|
}
|
1177
|
-
return /* @__PURE__ */
|
1177
|
+
return /* @__PURE__ */ React70__default.createElement(
|
1178
1178
|
Box,
|
1179
1179
|
{
|
1180
1180
|
...rest,
|
@@ -1187,7 +1187,7 @@ var Button = forwardRef((props, ref) => {
|
|
1187
1187
|
disabled: isDisabled || isLoading,
|
1188
1188
|
position: "relative"
|
1189
1189
|
},
|
1190
|
-
isLoading && /* @__PURE__ */
|
1190
|
+
isLoading && /* @__PURE__ */ React70__default.createElement(Center, { position: "absolute", right: 0, left: 0, top: 1, bottom: 0 }, /* @__PURE__ */ React70__default.createElement(
|
1191
1191
|
ColorInlineLoader,
|
1192
1192
|
{
|
1193
1193
|
maxWidth: getLoaderWidth(finalSize),
|
@@ -1196,7 +1196,7 @@ var Button = forwardRef((props, ref) => {
|
|
1196
1196
|
marginY: 2
|
1197
1197
|
}
|
1198
1198
|
)),
|
1199
|
-
/* @__PURE__ */
|
1199
|
+
/* @__PURE__ */ React70__default.createElement(
|
1200
1200
|
Flex,
|
1201
1201
|
{
|
1202
1202
|
gap: 1,
|
@@ -1206,7 +1206,7 @@ var Button = forwardRef((props, ref) => {
|
|
1206
1206
|
visibility: isLoading ? "hidden" : "visible",
|
1207
1207
|
"aria-hidden": isLoading
|
1208
1208
|
},
|
1209
|
-
/* @__PURE__ */
|
1209
|
+
/* @__PURE__ */ React70__default.createElement(Flex, { gap: 1, alignItems: "center" }, leftIcon, /* @__PURE__ */ React70__default.createElement(
|
1210
1210
|
Box,
|
1211
1211
|
{
|
1212
1212
|
visibility: isLoading ? "hidden" : "visible",
|
@@ -1247,14 +1247,14 @@ var texts3 = createTexts({
|
|
1247
1247
|
sv: "Laddar\u2026"
|
1248
1248
|
}
|
1249
1249
|
});
|
1250
|
-
var ButtonGroup = forwardRef((props, ref) => /* @__PURE__ */
|
1250
|
+
var ButtonGroup = forwardRef((props, ref) => /* @__PURE__ */ React70__default.createElement(ButtonGroup$1, { ...props, ref }));
|
1251
1251
|
var IconButton = forwardRef(
|
1252
|
-
({ ...props }, ref) => /* @__PURE__ */
|
1252
|
+
({ ...props }, ref) => /* @__PURE__ */ React70__default.createElement(
|
1253
1253
|
IconButton$1,
|
1254
1254
|
{
|
1255
1255
|
title: props["aria-label"],
|
1256
1256
|
...props,
|
1257
|
-
spinner: /* @__PURE__ */
|
1257
|
+
spinner: /* @__PURE__ */ React70__default.createElement(ColorSpinner, { width: "80%", height: "80%", marginX: 1, marginTop: 1 }),
|
1258
1258
|
ref
|
1259
1259
|
}
|
1260
1260
|
)
|
@@ -1264,7 +1264,7 @@ var IconButton = forwardRef(
|
|
1264
1264
|
var CloseButton = forwardRef(
|
1265
1265
|
({ size: size2 = "sm", ...props }, ref) => {
|
1266
1266
|
const { t: t2 } = useTranslation();
|
1267
|
-
return /* @__PURE__ */
|
1267
|
+
return /* @__PURE__ */ React70__default.createElement(
|
1268
1268
|
IconButton,
|
1269
1269
|
{
|
1270
1270
|
ref,
|
@@ -1281,11 +1281,11 @@ var getIcon = (size2) => {
|
|
1281
1281
|
switch (size2) {
|
1282
1282
|
case "xs":
|
1283
1283
|
case "sm":
|
1284
|
-
return /* @__PURE__ */
|
1284
|
+
return /* @__PURE__ */ React70__default.createElement(CloseFill18Icon, null);
|
1285
1285
|
case "md":
|
1286
|
-
return /* @__PURE__ */
|
1286
|
+
return /* @__PURE__ */ React70__default.createElement(CloseFill24Icon, null);
|
1287
1287
|
case "lg":
|
1288
|
-
return /* @__PURE__ */
|
1288
|
+
return /* @__PURE__ */ React70__default.createElement(CloseFill30Icon, null);
|
1289
1289
|
}
|
1290
1290
|
};
|
1291
1291
|
var texts4 = createTexts({
|
@@ -1307,7 +1307,7 @@ var FloatingActionButton = forwardRef(
|
|
1307
1307
|
placement = "bottom right",
|
1308
1308
|
...props
|
1309
1309
|
}, ref) => {
|
1310
|
-
const [isTextVisible, setIsTextVisible] =
|
1310
|
+
const [isTextVisible, setIsTextVisible] = React70__default.useState(
|
1311
1311
|
externalIsTextVisible !== void 0 ? externalIsTextVisible : false
|
1312
1312
|
);
|
1313
1313
|
const scrollDirection = useScrollDirection();
|
@@ -1329,7 +1329,7 @@ var FloatingActionButton = forwardRef(
|
|
1329
1329
|
isTextVisible,
|
1330
1330
|
placement
|
1331
1331
|
});
|
1332
|
-
return /* @__PURE__ */
|
1332
|
+
return /* @__PURE__ */ React70__default.createElement(
|
1333
1333
|
MotionBox,
|
1334
1334
|
{
|
1335
1335
|
__css: style.container,
|
@@ -1337,8 +1337,8 @@ var FloatingActionButton = forwardRef(
|
|
1337
1337
|
ref,
|
1338
1338
|
...props
|
1339
1339
|
},
|
1340
|
-
/* @__PURE__ */
|
1341
|
-
/* @__PURE__ */
|
1340
|
+
/* @__PURE__ */ React70__default.createElement(Box, { __css: style.icon }, icon),
|
1341
|
+
/* @__PURE__ */ React70__default.createElement(
|
1342
1342
|
MotionBox,
|
1343
1343
|
{
|
1344
1344
|
animate: isTextVisible ? "show" : "hide",
|
@@ -1363,11 +1363,11 @@ var FloatingActionButton = forwardRef(
|
|
1363
1363
|
}
|
1364
1364
|
);
|
1365
1365
|
var useScrollDirection = () => {
|
1366
|
-
const [scrollDirection, setScrollDirection] =
|
1367
|
-
const lastScrollPosition =
|
1366
|
+
const [scrollDirection, setScrollDirection] = React70__default.useState(null);
|
1367
|
+
const lastScrollPosition = React70__default.useRef(
|
1368
1368
|
typeof window !== "undefined" ? window.scrollY : 0
|
1369
1369
|
);
|
1370
|
-
|
1370
|
+
React70__default.useEffect(() => {
|
1371
1371
|
const onScroll = () => {
|
1372
1372
|
const delta = window.scrollY - lastScrollPosition.current;
|
1373
1373
|
if (delta === 0) {
|
@@ -1386,7 +1386,7 @@ var useScrollDirection = () => {
|
|
1386
1386
|
var AlertIcon = ({ variant }) => {
|
1387
1387
|
const Icon = getIcon2(variant);
|
1388
1388
|
const { t: t2 } = useTranslation();
|
1389
|
-
return /* @__PURE__ */
|
1389
|
+
return /* @__PURE__ */ React70__default.createElement(
|
1390
1390
|
Icon,
|
1391
1391
|
{
|
1392
1392
|
flexShrink: 0,
|
@@ -1448,7 +1448,7 @@ var BaseAlert = ({
|
|
1448
1448
|
...boxProps
|
1449
1449
|
}) => {
|
1450
1450
|
const styles3 = useMultiStyleConfig("Alert", { variant });
|
1451
|
-
return /* @__PURE__ */
|
1451
|
+
return /* @__PURE__ */ React70__default.createElement(Box, { __css: styles3.container, ...boxProps }, children);
|
1452
1452
|
};
|
1453
1453
|
|
1454
1454
|
// src/alert/ClosableAlert.tsx
|
@@ -1468,17 +1468,17 @@ var ClosableAlert = ({
|
|
1468
1468
|
externalOnClose();
|
1469
1469
|
onClose();
|
1470
1470
|
};
|
1471
|
-
return /* @__PURE__ */
|
1471
|
+
return /* @__PURE__ */ React70__default.createElement(BaseAlert, { variant }, /* @__PURE__ */ React70__default.createElement(
|
1472
1472
|
IconButton,
|
1473
1473
|
{
|
1474
1474
|
variant: "ghost",
|
1475
1475
|
size: "sm",
|
1476
1476
|
onClick: handleClose,
|
1477
|
-
icon: /* @__PURE__ */
|
1477
|
+
icon: /* @__PURE__ */ React70__default.createElement(CloseFill18Icon, null),
|
1478
1478
|
"aria-label": t2(texts6.close),
|
1479
1479
|
sx: styles3.closeButton
|
1480
1480
|
}
|
1481
|
-
), /* @__PURE__ */
|
1481
|
+
), /* @__PURE__ */ React70__default.createElement(AlertIcon, { variant }), children);
|
1482
1482
|
};
|
1483
1483
|
var texts6 = createTexts({
|
1484
1484
|
close: {
|
@@ -1499,7 +1499,7 @@ var ExpandableAlert = ({
|
|
1499
1499
|
...boxProps
|
1500
1500
|
}) => {
|
1501
1501
|
const styles3 = useMultiStyleConfig("AlertExpandable", { variant });
|
1502
|
-
return /* @__PURE__ */
|
1502
|
+
return /* @__PURE__ */ React70__default.createElement(BaseAlert, { variant, ...boxProps, paddingX: 0, paddingY: 0 }, /* @__PURE__ */ React70__default.createElement(
|
1503
1503
|
Accordion$1,
|
1504
1504
|
{
|
1505
1505
|
onChange: (expandedIndex) => onToggle(expandedIndex === 0),
|
@@ -1507,14 +1507,14 @@ var ExpandableAlert = ({
|
|
1507
1507
|
allowToggle: true,
|
1508
1508
|
flexGrow: "1"
|
1509
1509
|
},
|
1510
|
-
/* @__PURE__ */
|
1510
|
+
/* @__PURE__ */ React70__default.createElement(AccordionItem, null, /* @__PURE__ */ React70__default.createElement(AccordionButton, { sx: styles3.container }, /* @__PURE__ */ React70__default.createElement(
|
1511
1511
|
Flex,
|
1512
1512
|
{
|
1513
1513
|
justifyContent: "space-between",
|
1514
1514
|
alignItems: "center",
|
1515
1515
|
flexGrow: "1"
|
1516
1516
|
},
|
1517
|
-
/* @__PURE__ */
|
1517
|
+
/* @__PURE__ */ React70__default.createElement(Flex, { as: headingLevel, alignItems: "center" }, /* @__PURE__ */ React70__default.createElement(AlertIcon, { variant }), /* @__PURE__ */ React70__default.createElement(
|
1518
1518
|
Box,
|
1519
1519
|
{
|
1520
1520
|
as: "span",
|
@@ -1528,19 +1528,19 @@ var ExpandableAlert = ({
|
|
1528
1528
|
},
|
1529
1529
|
title
|
1530
1530
|
)),
|
1531
|
-
/* @__PURE__ */
|
1532
|
-
)), /* @__PURE__ */
|
1531
|
+
/* @__PURE__ */ React70__default.createElement(AccordionIcon, null)
|
1532
|
+
)), /* @__PURE__ */ React70__default.createElement(AccordionPanel, null, children))
|
1533
1533
|
));
|
1534
1534
|
};
|
1535
1535
|
var StaticAlert = ({ children, ...props }) => {
|
1536
|
-
return /* @__PURE__ */
|
1536
|
+
return /* @__PURE__ */ React70__default.createElement(BaseAlert, { ...props }, /* @__PURE__ */ React70__default.createElement(AlertIcon, { variant: props.variant }), children);
|
1537
1537
|
};
|
1538
1538
|
var Breadcrumb = (props) => {
|
1539
1539
|
const iconColor = useColorModeValue("blackAlpha.400", "whiteAlpha.400");
|
1540
|
-
return /* @__PURE__ */
|
1540
|
+
return /* @__PURE__ */ React70__default.createElement(
|
1541
1541
|
Breadcrumb$1,
|
1542
1542
|
{
|
1543
|
-
separator: /* @__PURE__ */
|
1543
|
+
separator: /* @__PURE__ */ React70__default.createElement(DropdownRightFill18Icon, { color: iconColor }),
|
1544
1544
|
...props
|
1545
1545
|
}
|
1546
1546
|
);
|
@@ -1553,26 +1553,16 @@ var Card = forwardRef(
|
|
1553
1553
|
colorScheme,
|
1554
1554
|
size: size2
|
1555
1555
|
});
|
1556
|
-
return /* @__PURE__ */
|
1556
|
+
return /* @__PURE__ */ React70__default.createElement(chakra.div, { sx: styles3, ...props, ref }, children);
|
1557
1557
|
}
|
1558
1558
|
);
|
1559
1559
|
var StaticCard = ({ colorScheme, ...props }) => {
|
1560
1560
|
const styles3 = useStyleConfig("StaticCard", { colorScheme });
|
1561
|
-
return /* @__PURE__ */
|
1562
|
-
};
|
1563
|
-
var PressableCard = ({
|
1564
|
-
children,
|
1565
|
-
as = "button",
|
1566
|
-
size: size2 = "sm",
|
1567
|
-
variant = "base",
|
1568
|
-
...props
|
1569
|
-
}) => {
|
1570
|
-
const styles3 = useStyleConfig("PressableCard", { variant, size: size2 });
|
1571
|
-
return /* @__PURE__ */ React71__default.createElement(Box, { as, __css: styles3, ...props }, children);
|
1561
|
+
return /* @__PURE__ */ React70__default.createElement(Box, { __css: styles3, ...props });
|
1572
1562
|
};
|
1573
1563
|
var Badge = forwardRef(
|
1574
1564
|
({ icon, colorScheme = "grey", children, ...props }, ref) => {
|
1575
|
-
return /* @__PURE__ */
|
1565
|
+
return /* @__PURE__ */ React70__default.createElement(
|
1576
1566
|
Badge$1,
|
1577
1567
|
{
|
1578
1568
|
colorScheme,
|
@@ -1580,12 +1570,12 @@ var Badge = forwardRef(
|
|
1580
1570
|
paddingLeft: icon ? 1 : void 0,
|
1581
1571
|
ref
|
1582
1572
|
},
|
1583
|
-
icon &&
|
1573
|
+
icon && React70__default.cloneElement(icon, { marginRight: 1 }),
|
1584
1574
|
children
|
1585
1575
|
);
|
1586
1576
|
}
|
1587
1577
|
);
|
1588
|
-
var Code = forwardRef((props, ref) => /* @__PURE__ */
|
1578
|
+
var Code = forwardRef((props, ref) => /* @__PURE__ */ React70__default.createElement(Code$1, { ...props, ref }));
|
1589
1579
|
var Heading = ({
|
1590
1580
|
as,
|
1591
1581
|
variant = "xl-display",
|
@@ -1595,11 +1585,11 @@ var Heading = ({
|
|
1595
1585
|
}) => {
|
1596
1586
|
const id = externalId ?? (autoId && typeof props.children === "string") ? slugify(props.children) : void 0;
|
1597
1587
|
const color2 = useColorModeValue("text.primary.light", "text.primary.dark");
|
1598
|
-
return /* @__PURE__ */
|
1588
|
+
return /* @__PURE__ */ React70__default.createElement(Text, { as, textStyle: variant, id, color: color2, ...props });
|
1599
1589
|
};
|
1600
1590
|
var Text4 = forwardRef(
|
1601
1591
|
({ variant = "sm", ...props }, ref) => {
|
1602
|
-
return /* @__PURE__ */
|
1592
|
+
return /* @__PURE__ */ React70__default.createElement(Text, { ...props, textStyle: variant, ref });
|
1603
1593
|
}
|
1604
1594
|
);
|
1605
1595
|
function CalendarCell({
|
@@ -1642,7 +1632,7 @@ function CalendarCell({
|
|
1642
1632
|
{ passive: false, once: true }
|
1643
1633
|
);
|
1644
1634
|
}, []);
|
1645
|
-
return /* @__PURE__ */
|
1635
|
+
return /* @__PURE__ */ React70__default.createElement(
|
1646
1636
|
Box,
|
1647
1637
|
{
|
1648
1638
|
as: "td",
|
@@ -1665,7 +1655,7 @@ function CalendarCell({
|
|
1665
1655
|
}
|
1666
1656
|
}
|
1667
1657
|
},
|
1668
|
-
/* @__PURE__ */
|
1658
|
+
/* @__PURE__ */ React70__default.createElement(
|
1669
1659
|
Box,
|
1670
1660
|
{
|
1671
1661
|
as: "button",
|
@@ -1728,8 +1718,8 @@ function CalendarGrid({
|
|
1728
1718
|
const weeksInMonth = getWeeksInMonth(state2.visibleRange.start, locale);
|
1729
1719
|
const weeksInMonthRange = new Array(weeksInMonth).fill(0).map((_, i) => i);
|
1730
1720
|
const styles3 = useMultiStyleConfig("Datepicker", { variant });
|
1731
|
-
return /* @__PURE__ */
|
1732
|
-
return /* @__PURE__ */
|
1721
|
+
return /* @__PURE__ */ React70__default.createElement("table", { ...gridProps }, /* @__PURE__ */ React70__default.createElement("thead", { ...headerProps }, /* @__PURE__ */ React70__default.createElement("tr", null, weekDays[language].map((day, index) => {
|
1722
|
+
return /* @__PURE__ */ React70__default.createElement(
|
1733
1723
|
Text4,
|
1734
1724
|
{
|
1735
1725
|
as: "th",
|
@@ -1739,8 +1729,8 @@ function CalendarGrid({
|
|
1739
1729
|
},
|
1740
1730
|
day
|
1741
1731
|
);
|
1742
|
-
}))), /* @__PURE__ */
|
1743
|
-
(date, dayIndex) => date ? /* @__PURE__ */
|
1732
|
+
}))), /* @__PURE__ */ React70__default.createElement("tbody", null, weeksInMonthRange.map((weekIndex) => /* @__PURE__ */ React70__default.createElement("tr", { key: weekIndex }, state2.getDatesInWeek(weekIndex, startDate).map(
|
1733
|
+
(date, dayIndex) => date ? /* @__PURE__ */ React70__default.createElement(
|
1744
1734
|
CalendarCell,
|
1745
1735
|
{
|
1746
1736
|
variant,
|
@@ -1749,7 +1739,7 @@ function CalendarGrid({
|
|
1749
1739
|
date,
|
1750
1740
|
currentMonth: startDate
|
1751
1741
|
}
|
1752
|
-
) : /* @__PURE__ */
|
1742
|
+
) : /* @__PURE__ */ React70__default.createElement("td", { key: dayIndex })
|
1753
1743
|
)))));
|
1754
1744
|
}
|
1755
1745
|
function CalendarNavigationButton({
|
@@ -1759,7 +1749,7 @@ function CalendarNavigationButton({
|
|
1759
1749
|
}) {
|
1760
1750
|
const ref = useRef(null);
|
1761
1751
|
const { buttonProps } = useButton(rest, ref);
|
1762
|
-
return /* @__PURE__ */
|
1752
|
+
return /* @__PURE__ */ React70__default.createElement(
|
1763
1753
|
IconButton,
|
1764
1754
|
{
|
1765
1755
|
...buttonProps,
|
@@ -1793,7 +1783,7 @@ function CalendarHeader({
|
|
1793
1783
|
);
|
1794
1784
|
const areAllOtherYearsDisabled = isPreviousYearDisabled && isNextYearDisabled;
|
1795
1785
|
const isYearPickerVisible = showYearNavigation && !areAllOtherYearsDisabled;
|
1796
|
-
return /* @__PURE__ */
|
1786
|
+
return /* @__PURE__ */ React70__default.createElement(Flex, { alignItems: "center", paddingBottom: "4", justifyContent: "space-between" }, /* @__PURE__ */ React70__default.createElement(
|
1797
1787
|
CalendarNavigator,
|
1798
1788
|
{
|
1799
1789
|
title: title ? title : isYearPickerVisible ? monthTitle : monthAndYearTitle,
|
@@ -1803,7 +1793,7 @@ function CalendarHeader({
|
|
1803
1793
|
isNextDisabled: !state2.isPreviousVisibleRangeInvalid,
|
1804
1794
|
isPreviousDisabled: !state2.isNextVisibleRangeInvalid
|
1805
1795
|
}
|
1806
|
-
), isYearPickerVisible && /* @__PURE__ */
|
1796
|
+
), isYearPickerVisible && /* @__PURE__ */ React70__default.createElement(
|
1807
1797
|
CalendarNavigator,
|
1808
1798
|
{
|
1809
1799
|
title: jsDate.getFullYear().toString(),
|
@@ -1825,15 +1815,15 @@ var CalendarNavigator = ({
|
|
1825
1815
|
isNextDisabled
|
1826
1816
|
}) => {
|
1827
1817
|
const { t: t2 } = useTranslation();
|
1828
|
-
return /* @__PURE__ */
|
1818
|
+
return /* @__PURE__ */ React70__default.createElement(Flex, { alignItems: "center", flexGrow: 1 }, /* @__PURE__ */ React70__default.createElement(
|
1829
1819
|
CalendarNavigationButton,
|
1830
1820
|
{
|
1831
1821
|
onPress: onPrevious,
|
1832
1822
|
isDisabled: isPreviousDisabled,
|
1833
|
-
icon: /* @__PURE__ */
|
1823
|
+
icon: /* @__PURE__ */ React70__default.createElement(ArrowLeftOutline24Icon, null),
|
1834
1824
|
"aria-label": `${t2(texts7.previous)} ${t2(texts7[unit])}`
|
1835
1825
|
}
|
1836
|
-
), /* @__PURE__ */
|
1826
|
+
), /* @__PURE__ */ React70__default.createElement(
|
1837
1827
|
Heading,
|
1838
1828
|
{
|
1839
1829
|
as: "div",
|
@@ -1844,12 +1834,12 @@ var CalendarNavigator = ({
|
|
1844
1834
|
textAlign: "center"
|
1845
1835
|
},
|
1846
1836
|
capitalize(title)
|
1847
|
-
), /* @__PURE__ */
|
1837
|
+
), /* @__PURE__ */ React70__default.createElement(
|
1848
1838
|
CalendarNavigationButton,
|
1849
1839
|
{
|
1850
1840
|
onPress: onNext,
|
1851
1841
|
isDisabled: isNextDisabled,
|
1852
|
-
icon: /* @__PURE__ */
|
1842
|
+
icon: /* @__PURE__ */ React70__default.createElement(ArrowRightOutline24Icon, null),
|
1853
1843
|
"aria-label": `${t2(texts7.next)} ${t2(texts7[unit])}`
|
1854
1844
|
}
|
1855
1845
|
));
|
@@ -1897,7 +1887,7 @@ function Calendar({
|
|
1897
1887
|
const { calendarProps } = useCalendar(props, state2);
|
1898
1888
|
const calendarAriaLabel = calendarProps["aria-label"];
|
1899
1889
|
const ariaLabel = t2(texts8.calendar) + (calendarAriaLabel ? ` ${calendarAriaLabel}` : "");
|
1900
|
-
return /* @__PURE__ */
|
1890
|
+
return /* @__PURE__ */ React70__default.createElement(Box, { ...calendarProps, "aria-label": ariaLabel }, /* @__PURE__ */ React70__default.createElement(CalendarHeader, { state: state2, showYearNavigation }), /* @__PURE__ */ React70__default.createElement(CalendarGrid, { variant, state: state2 }));
|
1901
1891
|
}
|
1902
1892
|
var texts8 = createTexts({
|
1903
1893
|
calendar: {
|
@@ -1918,7 +1908,7 @@ var CalendarTriggerButton = forwardRef(
|
|
1918
1908
|
onPress(event);
|
1919
1909
|
}
|
1920
1910
|
};
|
1921
|
-
return /* @__PURE__ */
|
1911
|
+
return /* @__PURE__ */ React70__default.createElement(PopoverAnchor, null, /* @__PURE__ */ React70__default.createElement(
|
1922
1912
|
Box,
|
1923
1913
|
{
|
1924
1914
|
ref,
|
@@ -1929,7 +1919,7 @@ var CalendarTriggerButton = forwardRef(
|
|
1929
1919
|
...filteredButtonProps,
|
1930
1920
|
onKeyUp: handleOnPress
|
1931
1921
|
},
|
1932
|
-
/* @__PURE__ */
|
1922
|
+
/* @__PURE__ */ React70__default.createElement(CalendarOutline24Icon, null)
|
1933
1923
|
));
|
1934
1924
|
}
|
1935
1925
|
);
|
@@ -1954,7 +1944,7 @@ var DateTimeSegment = forwardRef$1(
|
|
1954
1944
|
isPlaceholder: segment.isPlaceholder,
|
1955
1945
|
isEditable: segment.isEditable
|
1956
1946
|
});
|
1957
|
-
return /* @__PURE__ */
|
1947
|
+
return /* @__PURE__ */ React70__default.createElement(
|
1958
1948
|
Box,
|
1959
1949
|
{
|
1960
1950
|
...segmentProps,
|
@@ -2005,7 +1995,7 @@ var DateField = forwardRef$1(
|
|
2005
1995
|
state2,
|
2006
1996
|
ref
|
2007
1997
|
);
|
2008
|
-
return /* @__PURE__ */
|
1998
|
+
return /* @__PURE__ */ React70__default.createElement(Box, { minWidth: "6rem", width: "100%" }, props.label && /* @__PURE__ */ React70__default.createElement(
|
2009
1999
|
FormLabel,
|
2010
2000
|
{
|
2011
2001
|
...props.labelProps,
|
@@ -2015,7 +2005,7 @@ var DateField = forwardRef$1(
|
|
2015
2005
|
paddingTop: "2px"
|
2016
2006
|
},
|
2017
2007
|
props.label
|
2018
|
-
), /* @__PURE__ */
|
2008
|
+
), /* @__PURE__ */ React70__default.createElement(Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5" }, state2.segments.map((segment, i) => /* @__PURE__ */ React70__default.createElement(DateTimeSegment, { key: i, segment, state: state2 }))), /* @__PURE__ */ React70__default.createElement(
|
2019
2009
|
"input",
|
2020
2010
|
{
|
2021
2011
|
type: "hidden",
|
@@ -2031,7 +2021,7 @@ var StyledField = forwardRef(
|
|
2031
2021
|
isInvalid: false
|
2032
2022
|
};
|
2033
2023
|
const styles3 = useMultiStyleConfig("Datepicker", { variant });
|
2034
|
-
return /* @__PURE__ */
|
2024
|
+
return /* @__PURE__ */ React70__default.createElement(
|
2035
2025
|
Box,
|
2036
2026
|
{
|
2037
2027
|
...otherProps,
|
@@ -2083,7 +2073,7 @@ var DatePicker = forwardRef$1(
|
|
2083
2073
|
const onFieldClick = () => {
|
2084
2074
|
state2.setOpen(true);
|
2085
2075
|
};
|
2086
|
-
const popoverContent = /* @__PURE__ */
|
2076
|
+
const popoverContent = /* @__PURE__ */ React70__default.createElement(PopoverContent, { color: "darkGrey", sx: styles3.calendarPopover }, /* @__PURE__ */ React70__default.createElement(PopoverArrow, { sx: styles3.arrow }), /* @__PURE__ */ React70__default.createElement(PopoverBody, null, /* @__PURE__ */ React70__default.createElement(FocusLock, null, /* @__PURE__ */ React70__default.createElement(
|
2087
2077
|
Calendar,
|
2088
2078
|
{
|
2089
2079
|
...calendarProps,
|
@@ -2091,7 +2081,7 @@ var DatePicker = forwardRef$1(
|
|
2091
2081
|
showYearNavigation
|
2092
2082
|
}
|
2093
2083
|
))));
|
2094
|
-
return /* @__PURE__ */
|
2084
|
+
return /* @__PURE__ */ React70__default.createElement(I18nProvider, { locale }, /* @__PURE__ */ React70__default.createElement(
|
2095
2085
|
Box,
|
2096
2086
|
{
|
2097
2087
|
position: "relative",
|
@@ -2099,7 +2089,7 @@ var DatePicker = forwardRef$1(
|
|
2099
2089
|
flexDirection: "column",
|
2100
2090
|
width
|
2101
2091
|
},
|
2102
|
-
/* @__PURE__ */
|
2092
|
+
/* @__PURE__ */ React70__default.createElement(
|
2103
2093
|
Popover,
|
2104
2094
|
{
|
2105
2095
|
...dialogProps,
|
@@ -2108,7 +2098,7 @@ var DatePicker = forwardRef$1(
|
|
2108
2098
|
onClose: state2.close,
|
2109
2099
|
flip: false
|
2110
2100
|
},
|
2111
|
-
/* @__PURE__ */
|
2101
|
+
/* @__PURE__ */ React70__default.createElement(InputGroup, { ...groupProps, display: "inline-flex" }, /* @__PURE__ */ React70__default.createElement(PopoverAnchor, null, /* @__PURE__ */ React70__default.createElement(
|
2112
2102
|
StyledField,
|
2113
2103
|
{
|
2114
2104
|
variant,
|
@@ -2116,7 +2106,7 @@ var DatePicker = forwardRef$1(
|
|
2116
2106
|
paddingX: 3,
|
2117
2107
|
minHeight
|
2118
2108
|
},
|
2119
|
-
/* @__PURE__ */
|
2109
|
+
/* @__PURE__ */ React70__default.createElement(PopoverTrigger, null, /* @__PURE__ */ React70__default.createElement(
|
2120
2110
|
CalendarTriggerButton,
|
2121
2111
|
{
|
2122
2112
|
variant,
|
@@ -2124,7 +2114,7 @@ var DatePicker = forwardRef$1(
|
|
2124
2114
|
...buttonProps
|
2125
2115
|
}
|
2126
2116
|
)),
|
2127
|
-
/* @__PURE__ */
|
2117
|
+
/* @__PURE__ */ React70__default.createElement(
|
2128
2118
|
DateField,
|
2129
2119
|
{
|
2130
2120
|
label: props.label,
|
@@ -2134,8 +2124,8 @@ var DatePicker = forwardRef$1(
|
|
2134
2124
|
}
|
2135
2125
|
)
|
2136
2126
|
))),
|
2137
|
-
/* @__PURE__ */
|
2138
|
-
state2.isOpen && !props.isDisabled && withPortal && /* @__PURE__ */
|
2127
|
+
/* @__PURE__ */ React70__default.createElement(FormErrorMessage, { ...errorMessageProps }, errorMessage),
|
2128
|
+
state2.isOpen && !props.isDisabled && withPortal && /* @__PURE__ */ React70__default.createElement(Portal, null, popoverContent),
|
2139
2129
|
state2.isOpen && !props.isDisabled && !withPortal && popoverContent
|
2140
2130
|
)
|
2141
2131
|
));
|
@@ -2151,7 +2141,7 @@ function RangeCalendar(props) {
|
|
2151
2141
|
});
|
2152
2142
|
const ref = useRef(null);
|
2153
2143
|
const { calendarProps, title } = useRangeCalendar(props, state2, ref);
|
2154
|
-
return /* @__PURE__ */
|
2144
|
+
return /* @__PURE__ */ React70__default.createElement(Box, { ...calendarProps, ref }, /* @__PURE__ */ React70__default.createElement(CalendarHeader, { state: state2, title }), /* @__PURE__ */ React70__default.createElement(Box, { display: "flex", gap: "8" }, /* @__PURE__ */ React70__default.createElement(CalendarGrid, { variant: props.variant, state: state2 }), /* @__PURE__ */ React70__default.createElement(
|
2155
2145
|
CalendarGrid,
|
2156
2146
|
{
|
2157
2147
|
variant: props.variant,
|
@@ -2198,8 +2188,8 @@ function DateRangePicker({
|
|
2198
2188
|
const onFieldClick = () => {
|
2199
2189
|
state2.setOpen(true);
|
2200
2190
|
};
|
2201
|
-
const popoverContent = /* @__PURE__ */
|
2202
|
-
return /* @__PURE__ */
|
2191
|
+
const popoverContent = /* @__PURE__ */ React70__default.createElement(PopoverContent, { sx: styles3.calendarPopover, maxWidth: "none" }, /* @__PURE__ */ React70__default.createElement(PopoverArrow, { sx: styles3.arrow }), /* @__PURE__ */ React70__default.createElement(PopoverBody, null, /* @__PURE__ */ React70__default.createElement(FocusLock, null, /* @__PURE__ */ React70__default.createElement(RangeCalendar, { variant: "base", ...calendarProps }))));
|
2192
|
+
return /* @__PURE__ */ React70__default.createElement(I18nProvider, { locale }, /* @__PURE__ */ React70__default.createElement(Box, { position: "relative", display: "inline-flex", flexDirection: "column" }, props.label && /* @__PURE__ */ React70__default.createElement(FormLabel, { ...labelProps, sx: styles3.inputLabel }, props.label), /* @__PURE__ */ React70__default.createElement(
|
2203
2193
|
Popover,
|
2204
2194
|
{
|
2205
2195
|
...dialogProps,
|
@@ -2208,7 +2198,7 @@ function DateRangePicker({
|
|
2208
2198
|
onClose: state2.close,
|
2209
2199
|
flip: false
|
2210
2200
|
},
|
2211
|
-
/* @__PURE__ */
|
2201
|
+
/* @__PURE__ */ React70__default.createElement(InputGroup, { ...groupProps, width: "auto", display: "inline-flex" }, /* @__PURE__ */ React70__default.createElement(PopoverAnchor, null, /* @__PURE__ */ React70__default.createElement(
|
2212
2202
|
StyledField,
|
2213
2203
|
{
|
2214
2204
|
alignItems: "center",
|
@@ -2218,7 +2208,7 @@ function DateRangePicker({
|
|
2218
2208
|
onKeyPress: handleEnterClick,
|
2219
2209
|
minHeight
|
2220
2210
|
},
|
2221
|
-
variant && /* @__PURE__ */
|
2211
|
+
variant && /* @__PURE__ */ React70__default.createElement(PopoverTrigger, null, /* @__PURE__ */ React70__default.createElement(
|
2222
2212
|
CalendarTriggerButton,
|
2223
2213
|
{
|
2224
2214
|
paddingLeft: 1,
|
@@ -2228,7 +2218,7 @@ function DateRangePicker({
|
|
2228
2218
|
...buttonProps
|
2229
2219
|
}
|
2230
2220
|
)),
|
2231
|
-
/* @__PURE__ */
|
2221
|
+
/* @__PURE__ */ React70__default.createElement(
|
2232
2222
|
DateField,
|
2233
2223
|
{
|
2234
2224
|
...startFieldProps,
|
@@ -2237,8 +2227,8 @@ function DateRangePicker({
|
|
2237
2227
|
labelProps
|
2238
2228
|
}
|
2239
2229
|
),
|
2240
|
-
/* @__PURE__ */
|
2241
|
-
/* @__PURE__ */
|
2230
|
+
/* @__PURE__ */ React70__default.createElement(Box, { as: "span", "aria-hidden": "true", paddingRight: "2" }, "\u2013"),
|
2231
|
+
/* @__PURE__ */ React70__default.createElement(
|
2242
2232
|
DateField,
|
2243
2233
|
{
|
2244
2234
|
...endFieldProps,
|
@@ -2248,14 +2238,14 @@ function DateRangePicker({
|
|
2248
2238
|
}
|
2249
2239
|
)
|
2250
2240
|
))),
|
2251
|
-
state2.isOpen && withPortal && /* @__PURE__ */
|
2241
|
+
state2.isOpen && withPortal && /* @__PURE__ */ React70__default.createElement(Portal, null, popoverContent),
|
2252
2242
|
state2.isOpen && !withPortal && popoverContent
|
2253
2243
|
)));
|
2254
2244
|
}
|
2255
2245
|
var TimeField = ({ state: state2, ...props }) => {
|
2256
2246
|
const ref = useRef(null);
|
2257
2247
|
const { labelProps, fieldProps } = useTimeField(props, state2, ref);
|
2258
|
-
return /* @__PURE__ */
|
2248
|
+
return /* @__PURE__ */ React70__default.createElement(Box, null, /* @__PURE__ */ React70__default.createElement(
|
2259
2249
|
FormLabel3,
|
2260
2250
|
{
|
2261
2251
|
...labelProps,
|
@@ -2267,7 +2257,7 @@ var TimeField = ({ state: state2, ...props }) => {
|
|
2267
2257
|
paddingTop: "2px"
|
2268
2258
|
},
|
2269
2259
|
props.label
|
2270
|
-
), /* @__PURE__ */
|
2260
|
+
), /* @__PURE__ */ React70__default.createElement(Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5" }, state2.segments.map((segment) => /* @__PURE__ */ React70__default.createElement(DateTimeSegment, { key: segment.type, segment, state: state2 }))), /* @__PURE__ */ React70__default.createElement(
|
2271
2261
|
"input",
|
2272
2262
|
{
|
2273
2263
|
type: "hidden",
|
@@ -2336,7 +2326,7 @@ var TimePicker = ({
|
|
2336
2326
|
const ariaLabel = `${inputLabel} \u2013 ${t2(
|
2337
2327
|
texts10.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
|
2338
2328
|
)}`;
|
2339
|
-
return /* @__PURE__ */
|
2329
|
+
return /* @__PURE__ */ React70__default.createElement(
|
2340
2330
|
StyledField,
|
2341
2331
|
{
|
2342
2332
|
variant: "base",
|
@@ -2352,7 +2342,7 @@ var TimePicker = ({
|
|
2352
2342
|
"aria-label": ariaLabel,
|
2353
2343
|
...boxProps
|
2354
2344
|
},
|
2355
|
-
/* @__PURE__ */
|
2345
|
+
/* @__PURE__ */ React70__default.createElement(
|
2356
2346
|
IconButton,
|
2357
2347
|
{
|
2358
2348
|
variant: "ghost",
|
@@ -2360,14 +2350,14 @@ var TimePicker = ({
|
|
2360
2350
|
borderRadius: "xs",
|
2361
2351
|
"aria-label": backwardsLabel,
|
2362
2352
|
title: backwardsLabel,
|
2363
|
-
icon: /* @__PURE__ */
|
2353
|
+
icon: /* @__PURE__ */ React70__default.createElement(DropdownLeftFill18Icon, null),
|
2364
2354
|
onClick: handleBackwardsClick,
|
2365
2355
|
isDisabled,
|
2366
2356
|
style: isDisabled ? { backgroundColor: "transparent" } : {}
|
2367
2357
|
}
|
2368
2358
|
),
|
2369
|
-
/* @__PURE__ */
|
2370
|
-
/* @__PURE__ */
|
2359
|
+
/* @__PURE__ */ React70__default.createElement(TimeField, { label, state: state2, name }),
|
2360
|
+
/* @__PURE__ */ React70__default.createElement(
|
2371
2361
|
IconButton,
|
2372
2362
|
{
|
2373
2363
|
variant: "ghost",
|
@@ -2375,7 +2365,7 @@ var TimePicker = ({
|
|
2375
2365
|
borderRadius: "xs",
|
2376
2366
|
"aria-label": forwardsLabel,
|
2377
2367
|
title: forwardsLabel,
|
2378
|
-
icon: /* @__PURE__ */
|
2368
|
+
icon: /* @__PURE__ */ React70__default.createElement(DropdownRightFill18Icon, null),
|
2379
2369
|
onClick: handleForwardClick,
|
2380
2370
|
isDisabled,
|
2381
2371
|
style: isDisabled ? { backgroundColor: "transparent" } : {}
|
@@ -2444,7 +2434,7 @@ var AttachedInputs = ({
|
|
2444
2434
|
}
|
2445
2435
|
};
|
2446
2436
|
const direction2 = flexDirection === "row" ? "horizontal" : "vertical";
|
2447
|
-
return /* @__PURE__ */
|
2437
|
+
return /* @__PURE__ */ React70__default.createElement(
|
2448
2438
|
Flex,
|
2449
2439
|
{
|
2450
2440
|
role: "group",
|
@@ -2458,7 +2448,7 @@ var AttachedInputs = ({
|
|
2458
2448
|
var Dialog = ({ title, children, ...props }) => {
|
2459
2449
|
const ref = useRef(null);
|
2460
2450
|
const { dialogProps, titleProps } = useDialog(props, ref);
|
2461
|
-
return /* @__PURE__ */
|
2451
|
+
return /* @__PURE__ */ React70__default.createElement(Box, { ...dialogProps, ref, outline: "none" }, title && /* @__PURE__ */ React70__default.createElement(Heading$1, { as: "h3", ...titleProps }, title), children);
|
2462
2452
|
};
|
2463
2453
|
var Popover3 = forwardRef$1(
|
2464
2454
|
({
|
@@ -2489,21 +2479,21 @@ var Popover3 = forwardRef$1(
|
|
2489
2479
|
},
|
2490
2480
|
state2
|
2491
2481
|
);
|
2492
|
-
const popoverBox = /* @__PURE__ */
|
2482
|
+
const popoverBox = /* @__PURE__ */ React70__default.createElement(
|
2493
2483
|
Box,
|
2494
2484
|
{
|
2495
2485
|
...popoverProps,
|
2496
2486
|
ref: popoverRef,
|
2497
2487
|
minWidth: ((_a6 = triggerRef.current) == null ? void 0 : _a6.clientWidth) ?? "auto"
|
2498
2488
|
},
|
2499
|
-
/* @__PURE__ */
|
2489
|
+
/* @__PURE__ */ React70__default.createElement(DismissButton, { onDismiss: state2.close }),
|
2500
2490
|
children,
|
2501
|
-
/* @__PURE__ */
|
2491
|
+
/* @__PURE__ */ React70__default.createElement(DismissButton, { onDismiss: state2.close })
|
2502
2492
|
);
|
2503
2493
|
if (isNonModal) {
|
2504
2494
|
return popoverBox;
|
2505
2495
|
}
|
2506
|
-
return /* @__PURE__ */
|
2496
|
+
return /* @__PURE__ */ React70__default.createElement(Overlay, null, hasBackdrop && /* @__PURE__ */ React70__default.createElement(Box, { ...underlayProps, position: "fixed", inset: "0" }), popoverBox);
|
2507
2497
|
}
|
2508
2498
|
);
|
2509
2499
|
|
@@ -2544,7 +2534,7 @@ var CardSelect = forwardRef(
|
|
2544
2534
|
});
|
2545
2535
|
useForceRerender(state2.isOpen);
|
2546
2536
|
const ChevronIcon = size2 === "sm" ? DropdownDownFill18Icon : DropdownDownFill24Icon;
|
2547
|
-
return /* @__PURE__ */
|
2537
|
+
return /* @__PURE__ */ React70__default.createElement(Box, { ...props }, /* @__PURE__ */ React70__default.createElement(
|
2548
2538
|
chakra.button,
|
2549
2539
|
{
|
2550
2540
|
type: "button",
|
@@ -2556,13 +2546,13 @@ var CardSelect = forwardRef(
|
|
2556
2546
|
width,
|
2557
2547
|
"data-attachable": true
|
2558
2548
|
},
|
2559
|
-
/* @__PURE__ */
|
2549
|
+
/* @__PURE__ */ React70__default.createElement(Flex, { gap: 1.5, alignItems: "center" }, icon, /* @__PURE__ */ React70__default.createElement(Box, { as: "span", display: props["aria-label"] ? "none" : "inline" }, label), withChevron ? /* @__PURE__ */ React70__default.createElement(
|
2560
2550
|
ChevronIcon,
|
2561
2551
|
{
|
2562
2552
|
transform: state2.isOpen ? "rotate(180deg)" : "none"
|
2563
2553
|
}
|
2564
2554
|
) : null)
|
2565
|
-
), state2.isOpen && /* @__PURE__ */
|
2555
|
+
), state2.isOpen && /* @__PURE__ */ React70__default.createElement(
|
2566
2556
|
Popover3,
|
2567
2557
|
{
|
2568
2558
|
state: state2,
|
@@ -2571,7 +2561,7 @@ var CardSelect = forwardRef(
|
|
2571
2561
|
crossOffset,
|
2572
2562
|
placement
|
2573
2563
|
},
|
2574
|
-
/* @__PURE__ */
|
2564
|
+
/* @__PURE__ */ React70__default.createElement(
|
2575
2565
|
Card,
|
2576
2566
|
{
|
2577
2567
|
colorScheme: "white",
|
@@ -2579,7 +2569,7 @@ var CardSelect = forwardRef(
|
|
2579
2569
|
sx: styles3.card,
|
2580
2570
|
...overlayProps
|
2581
2571
|
},
|
2582
|
-
/* @__PURE__ */
|
2572
|
+
/* @__PURE__ */ React70__default.createElement(Dialog, { "aria-label": label }, children)
|
2583
2573
|
)
|
2584
2574
|
));
|
2585
2575
|
}
|
@@ -2593,14 +2583,14 @@ function useForceRerender(shouldRerender) {
|
|
2593
2583
|
}, [shouldRerender]);
|
2594
2584
|
}
|
2595
2585
|
var Checkbox = forwardRef((props, ref) => {
|
2596
|
-
return /* @__PURE__ */
|
2586
|
+
return /* @__PURE__ */ React70__default.createElement(Checkbox$1, { ...props, ref });
|
2597
2587
|
});
|
2598
2588
|
var CheckboxGroup = ({
|
2599
2589
|
direction: direction2 = "row",
|
2600
2590
|
children,
|
2601
2591
|
...props
|
2602
2592
|
}) => {
|
2603
|
-
return /* @__PURE__ */
|
2593
|
+
return /* @__PURE__ */ React70__default.createElement(CheckboxGroup$1, { ...props }, /* @__PURE__ */ React70__default.createElement(Stack$1, { direction: direction2 }, children));
|
2604
2594
|
};
|
2605
2595
|
|
2606
2596
|
// ../../node_modules/@chakra-ui/utils/dist/chunk-O3SWHQEE.mjs
|
@@ -2629,15 +2619,15 @@ var ChoiceChip = forwardRef((props, ref) => {
|
|
2629
2619
|
hasLabel: Boolean(children)
|
2630
2620
|
});
|
2631
2621
|
const id = `choice-chip-${useId()}`;
|
2632
|
-
return /* @__PURE__ */
|
2622
|
+
return /* @__PURE__ */ React70__default.createElement(
|
2633
2623
|
chakra.label,
|
2634
2624
|
{
|
2635
2625
|
htmlFor: id,
|
2636
2626
|
...getRootProps(),
|
2637
2627
|
"aria-label": String(children)
|
2638
2628
|
},
|
2639
|
-
/* @__PURE__ */
|
2640
|
-
/* @__PURE__ */
|
2629
|
+
/* @__PURE__ */ React70__default.createElement(chakra.input, { ...getInputProps({}, ref), id, disabled: isDisabled }),
|
2630
|
+
/* @__PURE__ */ React70__default.createElement(
|
2641
2631
|
chakra.div,
|
2642
2632
|
{
|
2643
2633
|
...getLabelProps(),
|
@@ -2648,9 +2638,9 @@ var ChoiceChip = forwardRef((props, ref) => {
|
|
2648
2638
|
"data-active": dataAttr(state2.isActive),
|
2649
2639
|
"data-disabled": dataAttr(state2.isDisabled)
|
2650
2640
|
},
|
2651
|
-
icon && /* @__PURE__ */
|
2652
|
-
/* @__PURE__ */
|
2653
|
-
chipType === "filter" && state2.isChecked && /* @__PURE__ */
|
2641
|
+
icon && /* @__PURE__ */ React70__default.createElement(chakra.span, { __css: styles3.icon }, state2.isChecked ? icon.checked : icon.default),
|
2642
|
+
/* @__PURE__ */ React70__default.createElement(chakra.span, { __css: styles3.label, ...getCheckboxProps() }, chipType !== "icon" && children),
|
2643
|
+
chipType === "filter" && state2.isChecked && /* @__PURE__ */ React70__default.createElement(CloseOutline24Icon, { marginLeft: 1.5 })
|
2654
2644
|
)
|
2655
2645
|
);
|
2656
2646
|
});
|
@@ -2722,7 +2712,7 @@ function Combobox({
|
|
2722
2712
|
},
|
2723
2713
|
state2
|
2724
2714
|
);
|
2725
|
-
return /* @__PURE__ */
|
2715
|
+
return /* @__PURE__ */ React70__default.createElement(React70__default.Fragment, null, /* @__PURE__ */ React70__default.createElement(
|
2726
2716
|
Input,
|
2727
2717
|
{
|
2728
2718
|
...styleProps(comboBoxProps),
|
@@ -2732,7 +2722,7 @@ function Combobox({
|
|
2732
2722
|
borderBottomLeftRadius: state2.isOpen && !isLoading ? 0 : borderBottomLeftRadius,
|
2733
2723
|
borderBottomRightRadius: state2.isOpen && !isLoading ? 0 : borderBottomRightRadius,
|
2734
2724
|
...inputProps,
|
2735
|
-
rightIcon: isLoading ? /* @__PURE__ */
|
2725
|
+
rightIcon: isLoading ? /* @__PURE__ */ React70__default.createElement(
|
2736
2726
|
ColorSpinner,
|
2737
2727
|
{
|
2738
2728
|
width: "1.5rem",
|
@@ -2747,7 +2737,7 @@ function Combobox({
|
|
2747
2737
|
}
|
2748
2738
|
) : rightIcon
|
2749
2739
|
}
|
2750
|
-
), state2.isOpen && !isLoading && /* @__PURE__ */
|
2740
|
+
), state2.isOpen && !isLoading && /* @__PURE__ */ React70__default.createElement(
|
2751
2741
|
Popover3,
|
2752
2742
|
{
|
2753
2743
|
state: state2,
|
@@ -2759,7 +2749,7 @@ function Combobox({
|
|
2759
2749
|
hasBackdrop: false,
|
2760
2750
|
containerPadding: 0
|
2761
2751
|
},
|
2762
|
-
/* @__PURE__ */
|
2752
|
+
/* @__PURE__ */ React70__default.createElement(
|
2763
2753
|
ListBox,
|
2764
2754
|
{
|
2765
2755
|
...listBoxProps,
|
@@ -2801,7 +2791,7 @@ var debounce = (fn, ms = 100) => {
|
|
2801
2791
|
};
|
2802
2792
|
};
|
2803
2793
|
var FormControl = forwardRef((props, ref) => {
|
2804
|
-
return /* @__PURE__ */
|
2794
|
+
return /* @__PURE__ */ React70__default.createElement(FormControl$1, { ...props, ref });
|
2805
2795
|
});
|
2806
2796
|
var FormErrorMessage = ({
|
2807
2797
|
children,
|
@@ -2817,7 +2807,7 @@ var FormErrorMessage = ({
|
|
2817
2807
|
return null;
|
2818
2808
|
}
|
2819
2809
|
const { ref, ...errorMessageProps } = formControlContext.getErrorMessageProps();
|
2820
|
-
return /* @__PURE__ */
|
2810
|
+
return /* @__PURE__ */ React70__default.createElement(Box, { position: "relative", ref }, /* @__PURE__ */ React70__default.createElement(
|
2821
2811
|
Box,
|
2822
2812
|
{
|
2823
2813
|
borderRadius: "xs",
|
@@ -2835,12 +2825,12 @@ var FormErrorMessage = ({
|
|
2835
2825
|
...errorMessageProps,
|
2836
2826
|
...boxProps
|
2837
2827
|
},
|
2838
|
-
/* @__PURE__ */
|
2828
|
+
/* @__PURE__ */ React70__default.createElement(Arrow, { position: "absolute", top: "-0.25em", left: "1em" }),
|
2839
2829
|
children
|
2840
2830
|
));
|
2841
2831
|
};
|
2842
2832
|
var Arrow = (props) => {
|
2843
|
-
return /* @__PURE__ */
|
2833
|
+
return /* @__PURE__ */ React70__default.createElement(
|
2844
2834
|
Box,
|
2845
2835
|
{
|
2846
2836
|
...props,
|
@@ -2851,7 +2841,7 @@ var Arrow = (props) => {
|
|
2851
2841
|
fill: "none",
|
2852
2842
|
transform: "rotate(45deg)"
|
2853
2843
|
},
|
2854
|
-
/* @__PURE__ */
|
2844
|
+
/* @__PURE__ */ React70__default.createElement(
|
2855
2845
|
Box,
|
2856
2846
|
{
|
2857
2847
|
as: "path",
|
@@ -2862,7 +2852,7 @@ var Arrow = (props) => {
|
|
2862
2852
|
);
|
2863
2853
|
};
|
2864
2854
|
var FormLabel3 = forwardRef((props, ref) => {
|
2865
|
-
return /* @__PURE__ */
|
2855
|
+
return /* @__PURE__ */ React70__default.createElement(FormLabel, { ...props, ref });
|
2866
2856
|
});
|
2867
2857
|
function ListBox({
|
2868
2858
|
isLoading,
|
@@ -2873,7 +2863,7 @@ function ListBox({
|
|
2873
2863
|
}) {
|
2874
2864
|
const { listBoxProps } = useListBox(props, state2, listBoxRef);
|
2875
2865
|
const styles3 = useMultiStyleConfig("ListBox", {});
|
2876
|
-
return /* @__PURE__ */
|
2866
|
+
return /* @__PURE__ */ React70__default.createElement(
|
2877
2867
|
List,
|
2878
2868
|
{
|
2879
2869
|
...listBoxProps,
|
@@ -2884,19 +2874,19 @@ function ListBox({
|
|
2884
2874
|
},
|
2885
2875
|
state2.collection.size === 0 && props.emptyContent,
|
2886
2876
|
Array.from(state2.collection).map(
|
2887
|
-
(item) => item.type === "section" ? /* @__PURE__ */
|
2877
|
+
(item) => item.type === "section" ? /* @__PURE__ */ React70__default.createElement(ListBoxSection, { key: item.key, section: item, state: state2 }) : /* @__PURE__ */ React70__default.createElement(Option, { key: item.key, item, state: state2 })
|
2888
2878
|
)
|
2889
2879
|
);
|
2890
2880
|
}
|
2891
2881
|
function ItemLabel({ children }) {
|
2892
2882
|
let { labelProps } = useOptionContext();
|
2893
2883
|
const styles3 = useMultiStyleConfig("ListBox", {});
|
2894
|
-
return /* @__PURE__ */
|
2884
|
+
return /* @__PURE__ */ React70__default.createElement(Box, { ...labelProps, sx: styles3.label }, children);
|
2895
2885
|
}
|
2896
2886
|
function ItemDescription({ children }) {
|
2897
2887
|
let { descriptionProps } = useOptionContext();
|
2898
2888
|
const styles3 = useMultiStyleConfig("ListBox", {});
|
2899
|
-
return /* @__PURE__ */
|
2889
|
+
return /* @__PURE__ */ React70__default.createElement(Box, { ...descriptionProps, sx: styles3.description }, children);
|
2900
2890
|
}
|
2901
2891
|
function Option({ item, state: state2 }) {
|
2902
2892
|
const ref = useRef(null);
|
@@ -2929,9 +2919,9 @@ function Option({ item, state: state2 }) {
|
|
2929
2919
|
{ passive: false, once: true }
|
2930
2920
|
);
|
2931
2921
|
}, []);
|
2932
|
-
return /* @__PURE__ */
|
2922
|
+
return /* @__PURE__ */ React70__default.createElement(OptionContext.Provider, { value: { labelProps, descriptionProps } }, /* @__PURE__ */ React70__default.createElement(ListItem, { ...optionProps, ...dataFields, ref, sx: styles3.item }, item.rendered));
|
2933
2923
|
}
|
2934
|
-
var OptionContext =
|
2924
|
+
var OptionContext = React70__default.createContext({
|
2935
2925
|
labelProps: {},
|
2936
2926
|
descriptionProps: {}
|
2937
2927
|
});
|
@@ -2945,7 +2935,7 @@ function ListBoxSection({ section, state: state2 }) {
|
|
2945
2935
|
});
|
2946
2936
|
const isFirstSection = section.key === state2.collection.getFirstKey();
|
2947
2937
|
const titleColor = useColorModeValue("darkGrey", "white");
|
2948
|
-
return /* @__PURE__ */
|
2938
|
+
return /* @__PURE__ */ React70__default.createElement(ListItem, { ...itemProps }, section.rendered && /* @__PURE__ */ React70__default.createElement(
|
2949
2939
|
Box,
|
2950
2940
|
{
|
2951
2941
|
fontSize: "mobile.xs",
|
@@ -2958,8 +2948,8 @@ function ListBoxSection({ section, state: state2 }) {
|
|
2958
2948
|
...headingProps
|
2959
2949
|
},
|
2960
2950
|
section.rendered
|
2961
|
-
), /* @__PURE__ */
|
2962
|
-
(item) => /* @__PURE__ */
|
2951
|
+
), /* @__PURE__ */ React70__default.createElement(List, { ...groupProps, padding: 0, listStyleType: "none" }, Array.from(state2.collection.getChildren(section.key)).map(
|
2952
|
+
(item) => /* @__PURE__ */ React70__default.createElement(Option, { key: item.key, item, state: state2 })
|
2963
2953
|
)));
|
2964
2954
|
}
|
2965
2955
|
|
@@ -2999,7 +2989,7 @@ function InfoSelect({
|
|
2999
2989
|
const { buttonProps } = useButton(triggerProps, triggerRef);
|
3000
2990
|
const { t: t2 } = useTranslation();
|
3001
2991
|
const formControl = useFormControlProps(props);
|
3002
|
-
return /* @__PURE__ */
|
2992
|
+
return /* @__PURE__ */ React70__default.createElement(Box, { sx: styles3.container }, /* @__PURE__ */ React70__default.createElement(chakra.div, { ...labelProps, sx: styles3.label }, props.label), /* @__PURE__ */ React70__default.createElement(
|
3003
2993
|
HiddenSelect,
|
3004
2994
|
{
|
3005
2995
|
state: state2,
|
@@ -3007,7 +2997,7 @@ function InfoSelect({
|
|
3007
2997
|
label: props.label,
|
3008
2998
|
name: props.name
|
3009
2999
|
}
|
3010
|
-
), /* @__PURE__ */
|
3000
|
+
), /* @__PURE__ */ React70__default.createElement(
|
3011
3001
|
chakra.button,
|
3012
3002
|
{
|
3013
3003
|
type: "button",
|
@@ -3020,16 +3010,16 @@ function InfoSelect({
|
|
3020
3010
|
"aria-invalid": formControl.isInvalid,
|
3021
3011
|
"aria-describedby": formControl["aria-describedby"]
|
3022
3012
|
},
|
3023
|
-
/* @__PURE__ */
|
3024
|
-
/* @__PURE__ */
|
3025
|
-
), state2.isOpen && /* @__PURE__ */
|
3013
|
+
/* @__PURE__ */ React70__default.createElement(Box, { ...valueProps }, state2.selectedItem ? state2.selectedItem.textValue ?? state2.selectedItem.rendered : placeholder ?? t2(texts11.selectAnOption)),
|
3014
|
+
/* @__PURE__ */ React70__default.createElement(Box, { sx: styles3.arrowIcon }, state2.isOpen ? /* @__PURE__ */ React70__default.createElement(DropdownUpFill24Icon, null) : /* @__PURE__ */ React70__default.createElement(DropdownDownFill24Icon, null))
|
3015
|
+
), state2.isOpen && /* @__PURE__ */ React70__default.createElement(
|
3026
3016
|
Popover3,
|
3027
3017
|
{
|
3028
3018
|
state: state2,
|
3029
3019
|
triggerRef,
|
3030
3020
|
containerPadding: 0
|
3031
3021
|
},
|
3032
|
-
/* @__PURE__ */
|
3022
|
+
/* @__PURE__ */ React70__default.createElement(
|
3033
3023
|
ListBox,
|
3034
3024
|
{
|
3035
3025
|
...menuProps,
|
@@ -3054,7 +3044,7 @@ var Input = forwardRef(
|
|
3054
3044
|
const formControlProps = useFormControlContext();
|
3055
3045
|
const fallbackId = `input-${useId()}`;
|
3056
3046
|
const inputId = id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? fallbackId;
|
3057
|
-
return /* @__PURE__ */
|
3047
|
+
return /* @__PURE__ */ React70__default.createElement(InputGroup, { position: "relative" }, leftIcon && /* @__PURE__ */ React70__default.createElement(InputLeftElement, { pointerEvents: "none" }, leftIcon), /* @__PURE__ */ React70__default.createElement(
|
3058
3048
|
Input$1,
|
3059
3049
|
{
|
3060
3050
|
"data-attachable": true,
|
@@ -3065,19 +3055,19 @@ var Input = forwardRef(
|
|
3065
3055
|
ref,
|
3066
3056
|
placeholder: " "
|
3067
3057
|
}
|
3068
|
-
), /* @__PURE__ */
|
3058
|
+
), /* @__PURE__ */ React70__default.createElement(FormLabel, { htmlFor: inputId }, label), rightIcon && /* @__PURE__ */ React70__default.createElement(InputRightElement, { pointerEvents: "none" }, rightIcon));
|
3069
3059
|
}
|
3070
3060
|
);
|
3071
3061
|
var InputLeftElement2 = forwardRef(
|
3072
|
-
(props, ref) => /* @__PURE__ */
|
3062
|
+
(props, ref) => /* @__PURE__ */ React70__default.createElement(InputLeftElement, { ...props, ref })
|
3073
3063
|
);
|
3074
3064
|
var InputRightElement2 = forwardRef(
|
3075
|
-
(props, ref) => /* @__PURE__ */
|
3065
|
+
(props, ref) => /* @__PURE__ */ React70__default.createElement(InputRightElement, { ...props, ref })
|
3076
3066
|
);
|
3077
3067
|
var NativeSelect = forwardRef(
|
3078
3068
|
({ label, ...props }, ref) => {
|
3079
3069
|
const styles3 = useMultiStyleConfig("Select", props);
|
3080
|
-
return /* @__PURE__ */
|
3070
|
+
return /* @__PURE__ */ React70__default.createElement(FormControl, null, /* @__PURE__ */ React70__default.createElement(
|
3081
3071
|
Select,
|
3082
3072
|
{
|
3083
3073
|
"data-attachable": true,
|
@@ -3085,7 +3075,7 @@ var NativeSelect = forwardRef(
|
|
3085
3075
|
rootProps: { __css: styles3.root },
|
3086
3076
|
ref
|
3087
3077
|
}
|
3088
|
-
), label && /* @__PURE__ */
|
3078
|
+
), label && /* @__PURE__ */ React70__default.createElement(FormLabel3, null, label));
|
3089
3079
|
}
|
3090
3080
|
);
|
3091
3081
|
function NumericStepper({
|
@@ -3111,17 +3101,17 @@ function NumericStepper({
|
|
3111
3101
|
});
|
3112
3102
|
const formControlProps = useFormControl({ id: idProp, isDisabled });
|
3113
3103
|
const clampedStepSize = Math.max(Math.min(stepSize, 10), 1);
|
3114
|
-
return /* @__PURE__ */
|
3104
|
+
return /* @__PURE__ */ React70__default.createElement(Flex, { __css: styles3.container, ...boxProps }, /* @__PURE__ */ React70__default.createElement(
|
3115
3105
|
VerySmallButton,
|
3116
3106
|
{
|
3117
|
-
icon: /* @__PURE__ */
|
3107
|
+
icon: /* @__PURE__ */ React70__default.createElement(SubtractIcon, { stepLabel: clampedStepSize }),
|
3118
3108
|
"aria-label": t2(texts12.decrementButtonAriaLabel(clampedStepSize)),
|
3119
3109
|
onClick: () => onChange(Math.max(value - clampedStepSize, minValue)),
|
3120
3110
|
visibility: value <= minValue ? "hidden" : "visible",
|
3121
3111
|
isDisabled: formControlProps.disabled,
|
3122
3112
|
id: value <= minValue ? void 0 : formControlProps.id
|
3123
3113
|
}
|
3124
|
-
), withInput ? /* @__PURE__ */
|
3114
|
+
), withInput ? /* @__PURE__ */ React70__default.createElement(
|
3125
3115
|
chakra.input,
|
3126
3116
|
{
|
3127
3117
|
type: "number",
|
@@ -3144,7 +3134,7 @@ function NumericStepper({
|
|
3144
3134
|
onChange(Math.max(Math.min(numericInput, maxValue), minValue));
|
3145
3135
|
}
|
3146
3136
|
}
|
3147
|
-
) : /* @__PURE__ */
|
3137
|
+
) : /* @__PURE__ */ React70__default.createElement(
|
3148
3138
|
chakra.text,
|
3149
3139
|
{
|
3150
3140
|
sx: styles3.text,
|
@@ -3152,10 +3142,10 @@ function NumericStepper({
|
|
3152
3142
|
"aria-label": value.toString()
|
3153
3143
|
},
|
3154
3144
|
value
|
3155
|
-
), /* @__PURE__ */
|
3145
|
+
), /* @__PURE__ */ React70__default.createElement(
|
3156
3146
|
VerySmallButton,
|
3157
3147
|
{
|
3158
|
-
icon: /* @__PURE__ */
|
3148
|
+
icon: /* @__PURE__ */ React70__default.createElement(AddIcon, { stepLabel: clampedStepSize }),
|
3159
3149
|
"aria-label": t2(texts12.incrementButtonAriaLabel(clampedStepSize)),
|
3160
3150
|
onClick: () => onChange(Math.min(value + clampedStepSize, maxValue)),
|
3161
3151
|
visibility: value >= maxValue ? "hidden" : "visible",
|
@@ -3166,9 +3156,9 @@ function NumericStepper({
|
|
3166
3156
|
}
|
3167
3157
|
var VerySmallButton = (props) => {
|
3168
3158
|
const styles3 = useMultiStyleConfig("NumericStepper", {});
|
3169
|
-
return /* @__PURE__ */
|
3159
|
+
return /* @__PURE__ */ React70__default.createElement(IconButton, { variant: "primary", size: "xs", sx: styles3.button, ...props });
|
3170
3160
|
};
|
3171
|
-
var SubtractIcon = (props) => /* @__PURE__ */
|
3161
|
+
var SubtractIcon = (props) => /* @__PURE__ */ React70__default.createElement(React70__default.Fragment, null, /* @__PURE__ */ React70__default.createElement(
|
3172
3162
|
Box,
|
3173
3163
|
{
|
3174
3164
|
as: "svg",
|
@@ -3178,7 +3168,7 @@ var SubtractIcon = (props) => /* @__PURE__ */ React71__default.createElement(Rea
|
|
3178
3168
|
stroke: "currentColor",
|
3179
3169
|
...props
|
3180
3170
|
},
|
3181
|
-
/* @__PURE__ */
|
3171
|
+
/* @__PURE__ */ React70__default.createElement(
|
3182
3172
|
"line",
|
3183
3173
|
{
|
3184
3174
|
x1: "9",
|
@@ -3189,8 +3179,8 @@ var SubtractIcon = (props) => /* @__PURE__ */ React71__default.createElement(Rea
|
|
3189
3179
|
strokeLinecap: "round"
|
3190
3180
|
}
|
3191
3181
|
)
|
3192
|
-
), props.stepLabel > 1 && /* @__PURE__ */
|
3193
|
-
var AddIcon = (props) => /* @__PURE__ */
|
3182
|
+
), props.stepLabel > 1 && /* @__PURE__ */ React70__default.createElement(chakra.span, { paddingRight: "1" }, props.stepLabel.toString()));
|
3183
|
+
var AddIcon = (props) => /* @__PURE__ */ React70__default.createElement(React70__default.Fragment, null, /* @__PURE__ */ React70__default.createElement(
|
3194
3184
|
Box,
|
3195
3185
|
{
|
3196
3186
|
as: "svg",
|
@@ -3200,7 +3190,7 @@ var AddIcon = (props) => /* @__PURE__ */ React71__default.createElement(React71_
|
|
3200
3190
|
stroke: "currentColor",
|
3201
3191
|
...props
|
3202
3192
|
},
|
3203
|
-
/* @__PURE__ */
|
3193
|
+
/* @__PURE__ */ React70__default.createElement(
|
3204
3194
|
"line",
|
3205
3195
|
{
|
3206
3196
|
x1: "9",
|
@@ -3211,7 +3201,7 @@ var AddIcon = (props) => /* @__PURE__ */ React71__default.createElement(React71_
|
|
3211
3201
|
strokeLinecap: "round"
|
3212
3202
|
}
|
3213
3203
|
),
|
3214
|
-
/* @__PURE__ */
|
3204
|
+
/* @__PURE__ */ React70__default.createElement(
|
3215
3205
|
"line",
|
3216
3206
|
{
|
3217
3207
|
x1: "15",
|
@@ -3222,7 +3212,7 @@ var AddIcon = (props) => /* @__PURE__ */ React71__default.createElement(React71_
|
|
3222
3212
|
strokeLinecap: "round"
|
3223
3213
|
}
|
3224
3214
|
)
|
3225
|
-
), props.stepLabel > 1 && /* @__PURE__ */
|
3215
|
+
), props.stepLabel > 1 && /* @__PURE__ */ React70__default.createElement(chakra.span, { paddingRight: "1" }, props.stepLabel.toString()));
|
3226
3216
|
var texts12 = createTexts({
|
3227
3217
|
decrementButtonAriaLabel(stepSize) {
|
3228
3218
|
return {
|
@@ -3248,7 +3238,7 @@ var PasswordInput = forwardRef(
|
|
3248
3238
|
const formControlProps = useFormControlContext();
|
3249
3239
|
const autoGeneratedId = `password-input-${useId()}`;
|
3250
3240
|
const inputId = id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? autoGeneratedId;
|
3251
|
-
return /* @__PURE__ */
|
3241
|
+
return /* @__PURE__ */ React70__default.createElement(InputGroup, { position: "relative" }, leftIcon && /* @__PURE__ */ React70__default.createElement(InputLeftElement2, null, leftIcon), /* @__PURE__ */ React70__default.createElement(
|
3252
3242
|
Input$1,
|
3253
3243
|
{
|
3254
3244
|
...props,
|
@@ -3260,7 +3250,7 @@ var PasswordInput = forwardRef(
|
|
3260
3250
|
ref,
|
3261
3251
|
"data-attachable": true
|
3262
3252
|
}
|
3263
|
-
), /* @__PURE__ */
|
3253
|
+
), /* @__PURE__ */ React70__default.createElement(FormLabel3, { htmlFor: inputId, pointerEvents: "none" }, label), /* @__PURE__ */ React70__default.createElement(InputRightElement2, { width: "fit-content" }, /* @__PURE__ */ React70__default.createElement(
|
3264
3254
|
Button$1,
|
3265
3255
|
{
|
3266
3256
|
variant: "ghost",
|
@@ -3308,10 +3298,10 @@ var PhoneNumberInput = forwardRef(
|
|
3308
3298
|
nationalNumber: ""
|
3309
3299
|
}
|
3310
3300
|
});
|
3311
|
-
return /* @__PURE__ */
|
3301
|
+
return /* @__PURE__ */ React70__default.createElement(AttachedInputs, { ...boxProps }, /* @__PURE__ */ React70__default.createElement(
|
3312
3302
|
Suspense,
|
3313
3303
|
{
|
3314
|
-
fallback: /* @__PURE__ */
|
3304
|
+
fallback: /* @__PURE__ */ React70__default.createElement(
|
3315
3305
|
InfoSelect,
|
3316
3306
|
{
|
3317
3307
|
isLabelSrOnly: true,
|
@@ -3320,10 +3310,10 @@ var PhoneNumberInput = forwardRef(
|
|
3320
3310
|
height: "100%",
|
3321
3311
|
value: "+47"
|
3322
3312
|
},
|
3323
|
-
/* @__PURE__ */
|
3313
|
+
/* @__PURE__ */ React70__default.createElement(Item, { key: "+47" }, "+47")
|
3324
3314
|
)
|
3325
3315
|
},
|
3326
|
-
/* @__PURE__ */
|
3316
|
+
/* @__PURE__ */ React70__default.createElement(
|
3327
3317
|
LazyCountryCodeSelect,
|
3328
3318
|
{
|
3329
3319
|
value: value.countryCode,
|
@@ -3336,7 +3326,7 @@ var PhoneNumberInput = forwardRef(
|
|
3336
3326
|
width: "6.25rem"
|
3337
3327
|
}
|
3338
3328
|
)
|
3339
|
-
), /* @__PURE__ */
|
3329
|
+
), /* @__PURE__ */ React70__default.createElement(
|
3340
3330
|
Input,
|
3341
3331
|
{
|
3342
3332
|
ref,
|
@@ -3365,13 +3355,13 @@ var texts14 = createTexts({
|
|
3365
3355
|
sv: "Telefonnummer"
|
3366
3356
|
}
|
3367
3357
|
});
|
3368
|
-
var LazyCountryCodeSelect =
|
3358
|
+
var LazyCountryCodeSelect = React70__default.lazy(() => import('./CountryCodeSelect-2KOFVXIQ.mjs'));
|
3369
3359
|
var Radio = forwardRef((props, ref) => {
|
3370
|
-
return /* @__PURE__ */
|
3360
|
+
return /* @__PURE__ */ React70__default.createElement(Radio$1, { ...props, ref });
|
3371
3361
|
});
|
3372
3362
|
var RadioGroup = forwardRef(
|
3373
3363
|
({ children, direction: direction2 = "row", ...rest }, ref) => {
|
3374
|
-
return /* @__PURE__ */
|
3364
|
+
return /* @__PURE__ */ React70__default.createElement(RadioGroup$1, { ...rest, ref }, /* @__PURE__ */ React70__default.createElement(Stack$1, { direction: direction2 }, children));
|
3375
3365
|
}
|
3376
3366
|
);
|
3377
3367
|
var SearchInput = forwardRef(
|
@@ -3381,7 +3371,7 @@ var SearchInput = forwardRef(
|
|
3381
3371
|
const formControlProps = useFormControlContext();
|
3382
3372
|
const autoGeneratedId = useId();
|
3383
3373
|
const inputId = props.id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? autoGeneratedId;
|
3384
|
-
return /* @__PURE__ */
|
3374
|
+
return /* @__PURE__ */ React70__default.createElement(InputGroup, { position: "relative" }, /* @__PURE__ */ React70__default.createElement(InputLeftElement2, null, /* @__PURE__ */ React70__default.createElement(SearchOutline24Icon, null)), /* @__PURE__ */ React70__default.createElement(
|
3385
3375
|
Input$1,
|
3386
3376
|
{
|
3387
3377
|
paddingLeft: 7,
|
@@ -3398,7 +3388,7 @@ var SearchInput = forwardRef(
|
|
3398
3388
|
placeholder: " ",
|
3399
3389
|
"data-attachable": true
|
3400
3390
|
}
|
3401
|
-
), /* @__PURE__ */
|
3391
|
+
), /* @__PURE__ */ React70__default.createElement(FormLabel3, { htmlFor: inputId, pointerEvents: "none" }, label ?? t2(texts15.label)), showClearButton && /* @__PURE__ */ React70__default.createElement(InputRightElement2, { width: "fit-content" }, /* @__PURE__ */ React70__default.createElement(
|
3402
3392
|
IconButton$1,
|
3403
3393
|
{
|
3404
3394
|
variant: "ghost",
|
@@ -3406,7 +3396,7 @@ var SearchInput = forwardRef(
|
|
3406
3396
|
size: "sm",
|
3407
3397
|
marginRight: 1,
|
3408
3398
|
"aria-label": t2(texts15.reset),
|
3409
|
-
icon: /* @__PURE__ */
|
3399
|
+
icon: /* @__PURE__ */ React70__default.createElement(CloseOutline24Icon, null),
|
3410
3400
|
onClick: onReset
|
3411
3401
|
}
|
3412
3402
|
)));
|
@@ -3428,7 +3418,7 @@ var texts15 = createTexts({
|
|
3428
3418
|
});
|
3429
3419
|
var Switch = forwardRef(
|
3430
3420
|
({ size: size2 = "md", ...props }, ref) => {
|
3431
|
-
return /* @__PURE__ */
|
3421
|
+
return /* @__PURE__ */ React70__default.createElement(Switch$1, { size: size2, ...props, ref });
|
3432
3422
|
}
|
3433
3423
|
);
|
3434
3424
|
var Textarea = forwardRef((props, ref) => {
|
@@ -3439,7 +3429,7 @@ var Textarea = forwardRef((props, ref) => {
|
|
3439
3429
|
const formControlProps = useFormControlContext();
|
3440
3430
|
const fallbackId = `textarea-${useId()}`;
|
3441
3431
|
const inputId = props.id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? fallbackId;
|
3442
|
-
return /* @__PURE__ */
|
3432
|
+
return /* @__PURE__ */ React70__default.createElement(InputGroup, { position: "relative", ...spacingProps }, /* @__PURE__ */ React70__default.createElement(Textarea$1, { ...rest, id: inputId, ref, placeholder: " " }), label && /* @__PURE__ */ React70__default.createElement(FormLabel, { htmlFor: inputId, id: `${inputId}-label` }, label));
|
3443
3433
|
});
|
3444
3434
|
function getSpacingProps(props) {
|
3445
3435
|
const {
|
@@ -3561,7 +3551,7 @@ var LineIcon = ({
|
|
3561
3551
|
if (!Icon) {
|
3562
3552
|
return null;
|
3563
3553
|
}
|
3564
|
-
return /* @__PURE__ */
|
3554
|
+
return /* @__PURE__ */ React70__default.createElement(Box, { sx: { ...styles3.iconContainer, ...sx }, ...rest }, /* @__PURE__ */ React70__default.createElement(Icon, { sx: styles3.icon }));
|
3565
3555
|
};
|
3566
3556
|
|
3567
3557
|
// src/linjetag/InfoTag.tsx
|
@@ -3577,7 +3567,7 @@ var InfoTag = ({
|
|
3577
3567
|
size: size2,
|
3578
3568
|
...customProps
|
3579
3569
|
});
|
3580
|
-
return /* @__PURE__ */
|
3570
|
+
return /* @__PURE__ */ React70__default.createElement(Box, { sx: styles3.container }, /* @__PURE__ */ React70__default.createElement(
|
3581
3571
|
LineIcon,
|
3582
3572
|
{
|
3583
3573
|
variant,
|
@@ -3585,7 +3575,7 @@ var InfoTag = ({
|
|
3585
3575
|
sx: styles3.iconContainer,
|
3586
3576
|
...customProps
|
3587
3577
|
}
|
3588
|
-
), /* @__PURE__ */
|
3578
|
+
), /* @__PURE__ */ React70__default.createElement(Box, { sx: styles3.textContainer }, title && /* @__PURE__ */ React70__default.createElement(Box, { as: "span", sx: styles3.title }, title), title && description && " ", description && /* @__PURE__ */ React70__default.createElement(Box, { as: "span", sx: styles3.description }, description)));
|
3589
3579
|
};
|
3590
3580
|
var TravelTag = forwardRef(
|
3591
3581
|
({
|
@@ -3605,7 +3595,7 @@ var TravelTag = forwardRef(
|
|
3605
3595
|
backgroundColor: variant === "custom" ? rest.backgroundColor : void 0
|
3606
3596
|
});
|
3607
3597
|
const DeviationLevelIcon = getDeviationLevelIcon({ deviationLevel, size: size2 });
|
3608
|
-
return /* @__PURE__ */
|
3598
|
+
return /* @__PURE__ */ React70__default.createElement(Box, { sx: styles3.container, "aria-disabled": isDisabled, ref, ...rest }, /* @__PURE__ */ React70__default.createElement(
|
3609
3599
|
LineIcon,
|
3610
3600
|
{
|
3611
3601
|
variant,
|
@@ -3613,7 +3603,7 @@ var TravelTag = forwardRef(
|
|
3613
3603
|
sx: styles3.iconContainer,
|
3614
3604
|
...rest
|
3615
3605
|
}
|
3616
|
-
), /* @__PURE__ */
|
3606
|
+
), /* @__PURE__ */ React70__default.createElement(Box, { sx: styles3.textContainer }, title && /* @__PURE__ */ React70__default.createElement(Box, { as: "span", sx: styles3.title }, title), title && description && " ", description && /* @__PURE__ */ React70__default.createElement(Box, { as: "span", sx: styles3.description }, description)), DeviationLevelIcon && /* @__PURE__ */ React70__default.createElement(DeviationLevelIcon, { sx: styles3.deviationIcon }));
|
3617
3607
|
}
|
3618
3608
|
);
|
3619
3609
|
var getDeviationLevelIcon = ({
|
@@ -3637,7 +3627,7 @@ var TextLink = forwardRef(
|
|
3637
3627
|
var _a6;
|
3638
3628
|
const { t: t2 } = useTranslation();
|
3639
3629
|
const isExternal = props.isExternal !== void 0 ? props.isExternal : Boolean((_a6 = props.href) == null ? void 0 : _a6.match(/^https?:\/\//));
|
3640
|
-
return /* @__PURE__ */
|
3630
|
+
return /* @__PURE__ */ React70__default.createElement(Link, { ...props, ref, isExternal }, children, isExternal && /* @__PURE__ */ React70__default.createElement(
|
3641
3631
|
LinkOutOutline24Icon,
|
3642
3632
|
{
|
3643
3633
|
marginLeft: 0.5,
|
@@ -3658,7 +3648,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3658
3648
|
const mainColor = colorScheme === "light" ? "#1d211c" : "#ffffff";
|
3659
3649
|
const accentColor = colorScheme === "light" ? "#138c6e" : "#ffffff";
|
3660
3650
|
const id = useId();
|
3661
|
-
return /* @__PURE__ */
|
3651
|
+
return /* @__PURE__ */ React70__default.createElement(Box, { as: "svg", viewBox: "0 0 107 54", ...boxProps }, /* @__PURE__ */ React70__default.createElement("title", null, "Vy logo"), /* @__PURE__ */ React70__default.createElement(
|
3662
3652
|
"path",
|
3663
3653
|
{
|
3664
3654
|
fillRule: "evenodd",
|
@@ -3666,7 +3656,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3666
3656
|
d: "M79.97 33.44a.04.04 0 0 0 0-.08 5.76 5.76 0 0 1-2.32-.85c-1.56-1-2.79-2.9-3.83-6.07L68.14 7.16c-1.18-4.04-3.42-5.85-5.48-6.6a8.36 8.36 0 0 0-2.88-.52h-1.44a.04.04 0 0 0 0 .08c.57.09 1.18.24 1.8.5 1.92.8 3.92 2.63 5.06 6.54l5.61 19.07c1.06 3.3 2.31 5.27 3.92 6.3 1.01.64 2.17.9 3.5.9h1.74Z",
|
3667
3657
|
fill: mainColor
|
3668
3658
|
}
|
3669
|
-
), /* @__PURE__ */
|
3659
|
+
), /* @__PURE__ */ React70__default.createElement(
|
3670
3660
|
"mask",
|
3671
3661
|
{
|
3672
3662
|
id: `${id}-a`,
|
@@ -3677,7 +3667,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3677
3667
|
width: "94",
|
3678
3668
|
height: "54"
|
3679
3669
|
},
|
3680
|
-
/* @__PURE__ */
|
3670
|
+
/* @__PURE__ */ React70__default.createElement(
|
3681
3671
|
"path",
|
3682
3672
|
{
|
3683
3673
|
fillRule: "evenodd",
|
@@ -3686,7 +3676,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3686
3676
|
fill: mainColor
|
3687
3677
|
}
|
3688
3678
|
)
|
3689
|
-
), /* @__PURE__ */
|
3679
|
+
), /* @__PURE__ */ React70__default.createElement(
|
3690
3680
|
"g",
|
3691
3681
|
{
|
3692
3682
|
mask: `url(#${id}-a)`,
|
@@ -3694,9 +3684,9 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3694
3684
|
clipRule: "evenodd",
|
3695
3685
|
fill: mainColor
|
3696
3686
|
},
|
3697
|
-
/* @__PURE__ */
|
3698
|
-
/* @__PURE__ */
|
3699
|
-
), /* @__PURE__ */
|
3687
|
+
/* @__PURE__ */ React70__default.createElement("path", { d: "M84.57 33.44a.04.04 0 0 0 .01-.08c-2.34-.3-3.85-3.59-4.68-6.38-.88-2.93-4.04-13.63-5.92-19.82C72.08.94 66.2.05 63.54.04a.04.04 0 0 0-.01.08c2.49.34 6.02 1.85 7.55 7.04 1.34 4.55 5.6 19.03 5.76 19.51 1.02 3.03 2.22 4.85 3.73 5.83a6.3 6.3 0 0 0 3.54.94h.46ZM23.28 53.68h-.72c-2.12 0-4.68-1.08-6.09-6.04L3.8 4.37C3.04 1.77 1.93.47.03.15A.04.04 0 0 1 .04.07h1.9c2.54 0 3.92 1.27 4.8 4.3 0 0 11.72 39.78 12.79 43.54.78 2.78 1.7 4.67 3.13 5.43.23.13.42.2.62.26a.04.04 0 0 1 0 .08ZM18.99 5.99C17.77 1.79 15.87.04 12.37.04h-1.71a.04.04 0 0 0 0 .08c2.73.39 4.32 2.19 5.39 5.87 0 0 10.49 35.72 11.85 40.4l1.44-4.87L18.99 6Z" }),
|
3688
|
+
/* @__PURE__ */ React70__default.createElement("path", { d: "M24.26 53.68h1.24c1.57 0 2.69-.41 3.52-1.1 1.37-1.1 1.99-2.93 2.56-4.86.09-.29 11.2-37.95 11.59-39.42 1.32-4.97 4.27-7.13 7.43-7.9a12.2 12.2 0 0 1 1.58-.28.04.04 0 0 0 0-.08h-1.4c-4.15 0-8.8 1.65-10.56 8.26-.63 2.38-11.5 39.13-11.58 39.42-.57 1.93-1.23 3.96-2.59 5.07-.56.45-1.06.7-1.8.81a.04.04 0 0 0 0 .08ZM81.3 27.76l6.53-21.78C88.89 2.3 90.49.5 93.23.11a.04.04 0 0 0-.01-.08H91.5c-3.5 0-5.4 1.76-6.62 5.95l-5.05 16.97s1.33 4.46 1.46 4.8Z" })
|
3689
|
+
), /* @__PURE__ */ React70__default.createElement(
|
3700
3690
|
"path",
|
3701
3691
|
{
|
3702
3692
|
fillRule: "evenodd",
|
@@ -3704,7 +3694,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3704
3694
|
d: "M98.49.07h-1.82c-2.98 0-4.6 1.49-5.63 5.06l-6.52 21.79a18.22 18.22 0 0 1-1.67 3.96c.57.78 1.17 1.26 1.76 1.38 1.13-.96 2.06-2.75 2.89-5.46l6.49-21.67c.9-3.1 2.23-4.63 4.5-4.98a.04.04 0 0 0 0-.08Z",
|
3705
3695
|
fill: accentColor
|
3706
3696
|
}
|
3707
|
-
), /* @__PURE__ */
|
3697
|
+
), /* @__PURE__ */ React70__default.createElement(
|
3708
3698
|
"path",
|
3709
3699
|
{
|
3710
3700
|
fillRule: "evenodd",
|
@@ -3712,7 +3702,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3712
3702
|
d: "M85.25 34.53h-2.93L78.58 46.9c-1.82 6.1 1.05 6.73 2.15 6.73h2.31a.04.04 0 0 0 .01-.09c-1.25-.3-2.96-1.6-1.45-6.64l3.65-12.37ZM102.35.11c.02 0 .03-.02.03-.04a.04.04 0 0 0-.04-.04h-.4c-2.54 0-3.92 1.27-4.8 4.3 0 0-5 16.82-6.57 22.03-1.57 5.2-2.65 6.6-4.78 6.97l-.11.03a.04.04 0 0 0 0 .08h1.45c3.72 0 5.1-2.48 6.41-6.84l7.5-25.07c.19-.6.7-1.23 1.31-1.42Z",
|
3713
3703
|
fill: mainColor
|
3714
3704
|
}
|
3715
|
-
), /* @__PURE__ */
|
3705
|
+
), /* @__PURE__ */ React70__default.createElement(
|
3716
3706
|
"mask",
|
3717
3707
|
{
|
3718
3708
|
id: `${id}-b`,
|
@@ -3723,7 +3713,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3723
3713
|
width: "78",
|
3724
3714
|
height: "54"
|
3725
3715
|
},
|
3726
|
-
/* @__PURE__ */
|
3716
|
+
/* @__PURE__ */ React70__default.createElement(
|
3727
3717
|
"path",
|
3728
3718
|
{
|
3729
3719
|
fillRule: "evenodd",
|
@@ -3732,25 +3722,25 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3732
3722
|
fill: mainColor
|
3733
3723
|
}
|
3734
3724
|
)
|
3735
|
-
), /* @__PURE__ */
|
3725
|
+
), /* @__PURE__ */ React70__default.createElement("g", { mask: `url(#${id}-b)`, fillRule: "evenodd", clipRule: "evenodd" }, /* @__PURE__ */ React70__default.createElement(
|
3736
3726
|
"path",
|
3737
3727
|
{
|
3738
3728
|
d: "m88.2 34.45-3.96 13.46c-1.54 5.18.9 5.72 1.83 5.72h2.26a.04.04 0 0 0 0-.09c-1.05-.27-2.44-1.4-1.18-5.63l4.43-15.02c-.7.71-1.88 1.37-3.38 1.56ZM93.71 53.63c.02 0 .04-.02.04-.05a.04.04 0 0 0-.03-.04c-.9-.25-2.02-1.24-.96-4.77 0 0 12.4-42.2 13.08-44.6a3.1 3.1 0 0 0-2.47-4.1c-.02 0-.06-.02-.07.01-.01.04.03.06.04.06.3.16.63.52.45 1.14L89.84 48.77c-1.32 4.4.76 4.86 1.55 4.86h2.32ZM74.1 33.44a.04.04 0 0 0 0-.08 5.77 5.77 0 0 1-2.3-.83c-1.64-1.04-2.9-3.06-3.98-6.5-.1-.29-5.37-18.25-5.55-18.87-1.12-3.8-2.91-5.63-4.68-6.46a7.06 7.06 0 0 0-3.04-.66H53a.04.04 0 0 0-.02.08c.3.05 4.32.17 6.35 7.04 2.03 6.86 4.46 15.07 5.28 17.97 1.77 6.26 4.07 8.3 7.75 8.3h1.73Z",
|
3739
3729
|
fill: mainColor
|
3740
3730
|
}
|
3741
|
-
), /* @__PURE__ */
|
3731
|
+
), /* @__PURE__ */ React70__default.createElement(
|
3742
3732
|
"path",
|
3743
3733
|
{
|
3744
3734
|
d: "M55.43 2.4c-1.48 1.27-2.7 3.16-3.44 5.9-.07.29-11.08 37.74-11.32 38.55-.93 3.12-1.7 6.21-5.2 6.75a.04.04 0 0 0 0 .08h.7l.6-.01c3.56-.14 5.33-1.66 6.85-6.82L54.94 8.3c.44-1.44.96-3.08 1.7-4.52-.15-.25-.7-.96-1.2-1.38Z",
|
3745
3735
|
fill: mainColor
|
3746
3736
|
}
|
3747
|
-
), /* @__PURE__ */
|
3737
|
+
), /* @__PURE__ */ React70__default.createElement(
|
3748
3738
|
"path",
|
3749
3739
|
{
|
3750
3740
|
d: "M53.78 1.44a4.64 4.64 0 0 0-4.17.93A10.79 10.79 0 0 0 46.19 8L34.53 47.72c-.58 1.93-1.2 3.75-2.56 4.87-.62.5-1.4.86-2.39 1.01a.04.04 0 0 0 0 .08h1.8c1.57 0 2.69-.41 3.53-1.1 1.36-1.1 1.98-2.93 2.56-4.86L49.05 8.3c.73-2.74 1.95-4.63 3.43-5.9.43-.36.88-.68 1.35-.95l-.05-.01Z",
|
3751
3741
|
fill: accentColor
|
3752
3742
|
}
|
3753
|
-
)), /* @__PURE__ */
|
3743
|
+
)), /* @__PURE__ */ React70__default.createElement(
|
3754
3744
|
"path",
|
3755
3745
|
{
|
3756
3746
|
fillRule: "evenodd",
|
@@ -3760,7 +3750,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3760
3750
|
}
|
3761
3751
|
));
|
3762
3752
|
};
|
3763
|
-
var JumpForwardIcon = (props) => /* @__PURE__ */
|
3753
|
+
var JumpForwardIcon = (props) => /* @__PURE__ */ React70.createElement(Box, { as: "svg", ...props, viewBox: "0 0 32 30", fill: "none" }, /* @__PURE__ */ React70.createElement(
|
3764
3754
|
"path",
|
3765
3755
|
{
|
3766
3756
|
fillRule: "evenodd",
|
@@ -3768,7 +3758,7 @@ var JumpForwardIcon = (props) => /* @__PURE__ */ React71.createElement(Box, { as
|
|
3768
3758
|
d: "M22.388 7.5C20.567 5.967 18.251 5 15.75 5 9.951 5 5.25 9.701 5.25 15.5S9.951 26 15.75 26s10.5-4.701 10.5-10.5a1 1 0 1 1 2 0c0 6.904-5.596 12.5-12.5 12.5s-12.5-5.596-12.5-12.5S8.846 3 15.75 3c3.206 0 6.11 1.31 8.304 3.3l.206-1.441a1 1 0 0 1 1.98.282L25.617 9.5H21.25a1 1 0 1 1 0-2h1.138Z",
|
3769
3759
|
fill: "currentColor"
|
3770
3760
|
}
|
3771
|
-
), /* @__PURE__ */
|
3761
|
+
), /* @__PURE__ */ React70.createElement(
|
3772
3762
|
"path",
|
3773
3763
|
{
|
3774
3764
|
fillRule: "evenodd",
|
@@ -3777,7 +3767,7 @@ var JumpForwardIcon = (props) => /* @__PURE__ */ React71.createElement(Box, { as
|
|
3777
3767
|
fill: "currentColor"
|
3778
3768
|
}
|
3779
3769
|
));
|
3780
|
-
var JumpBackwardIcon = (props) => /* @__PURE__ */
|
3770
|
+
var JumpBackwardIcon = (props) => /* @__PURE__ */ React70.createElement(Box, { as: "svg", ...props, viewBox: "0 0 32 30", fill: "none" }, /* @__PURE__ */ React70.createElement(
|
3781
3771
|
"path",
|
3782
3772
|
{
|
3783
3773
|
fillRule: "evenodd",
|
@@ -3785,7 +3775,7 @@ var JumpBackwardIcon = (props) => /* @__PURE__ */ React71.createElement(Box, { a
|
|
3785
3775
|
d: "M9.612 7.5C11.433 5.967 13.749 5 16.25 5c5.799 0 10.5 4.701 10.5 10.5S22.049 26 16.25 26s-10.5-4.701-10.5-10.5a1 1 0 1 0-2 0c0 6.904 5.596 12.5 12.5 12.5s12.5-5.596 12.5-12.5S23.154 3 16.25 3c-3.206 0-6.11 1.31-8.304 3.3L7.74 4.86a1 1 0 0 0-1.98.282L6.383 9.5h4.367a1 1 0 1 0 0-2H9.612Z",
|
3786
3776
|
fill: "currentColor"
|
3787
3777
|
}
|
3788
|
-
), /* @__PURE__ */
|
3778
|
+
), /* @__PURE__ */ React70.createElement(
|
3789
3779
|
"path",
|
3790
3780
|
{
|
3791
3781
|
fillRule: "evenodd",
|
@@ -3794,7 +3784,7 @@ var JumpBackwardIcon = (props) => /* @__PURE__ */ React71.createElement(Box, { a
|
|
3794
3784
|
fill: "currentColor"
|
3795
3785
|
}
|
3796
3786
|
));
|
3797
|
-
var PlayIcon = (props) => /* @__PURE__ */
|
3787
|
+
var PlayIcon = (props) => /* @__PURE__ */ React70.createElement(Box, { as: "svg", ...props, fill: "none", viewBox: "0 0 60 60" }, /* @__PURE__ */ React70.createElement(
|
3798
3788
|
"path",
|
3799
3789
|
{
|
3800
3790
|
fillRule: "evenodd",
|
@@ -3803,7 +3793,7 @@ var PlayIcon = (props) => /* @__PURE__ */ React71.createElement(Box, { as: "svg"
|
|
3803
3793
|
fill: "currentColor"
|
3804
3794
|
}
|
3805
3795
|
));
|
3806
|
-
var PauseIcon = (props) => /* @__PURE__ */
|
3796
|
+
var PauseIcon = (props) => /* @__PURE__ */ React70.createElement(Box, { as: "svg", ...props, viewBox: "0 0 60 60", fill: "none" }, /* @__PURE__ */ React70.createElement(
|
3807
3797
|
"path",
|
3808
3798
|
{
|
3809
3799
|
fillRule: "evenodd",
|
@@ -3812,7 +3802,7 @@ var PauseIcon = (props) => /* @__PURE__ */ React71.createElement(Box, { as: "svg
|
|
3812
3802
|
fill: "currentColor"
|
3813
3803
|
}
|
3814
3804
|
));
|
3815
|
-
var SkipNextIcon = (props) => /* @__PURE__ */
|
3805
|
+
var SkipNextIcon = (props) => /* @__PURE__ */ React70.createElement(Box, { as: "svg", ...props, viewBox: "0 0 30 30", fill: "none" }, /* @__PURE__ */ React70.createElement(
|
3816
3806
|
"path",
|
3817
3807
|
{
|
3818
3808
|
fillRule: "evenodd",
|
@@ -3821,7 +3811,7 @@ var SkipNextIcon = (props) => /* @__PURE__ */ React71.createElement(Box, { as: "
|
|
3821
3811
|
fill: "currentColor"
|
3822
3812
|
}
|
3823
3813
|
));
|
3824
|
-
var SkipPreviousIcon = (props) => /* @__PURE__ */
|
3814
|
+
var SkipPreviousIcon = (props) => /* @__PURE__ */ React70.createElement(Box, { as: "svg", ...props, viewBox: "0 0 30 30", fill: "none" }, /* @__PURE__ */ React70.createElement(
|
3825
3815
|
"path",
|
3826
3816
|
{
|
3827
3817
|
fillRule: "evenodd",
|
@@ -3843,7 +3833,7 @@ var JumpButton = ({
|
|
3843
3833
|
variant: "jumpSkip",
|
3844
3834
|
size: size2
|
3845
3835
|
});
|
3846
|
-
return /* @__PURE__ */
|
3836
|
+
return /* @__PURE__ */ React70__default.createElement(
|
3847
3837
|
Center,
|
3848
3838
|
{
|
3849
3839
|
as: "button",
|
@@ -3852,7 +3842,7 @@ var JumpButton = ({
|
|
3852
3842
|
disabled: isDisabled,
|
3853
3843
|
...props
|
3854
3844
|
},
|
3855
|
-
direction2 === "forward" ? /* @__PURE__ */
|
3845
|
+
direction2 === "forward" ? /* @__PURE__ */ React70__default.createElement(JumpForwardIcon, { sx: styles3.icon }) : /* @__PURE__ */ React70__default.createElement(JumpBackwardIcon, { sx: styles3.icon })
|
3856
3846
|
);
|
3857
3847
|
};
|
3858
3848
|
var texts17 = createTexts({
|
@@ -3880,7 +3870,7 @@ var PlayPauseButton = ({
|
|
3880
3870
|
variant: "play",
|
3881
3871
|
size: size2
|
3882
3872
|
});
|
3883
|
-
return /* @__PURE__ */
|
3873
|
+
return /* @__PURE__ */ React70__default.createElement(
|
3884
3874
|
Center,
|
3885
3875
|
{
|
3886
3876
|
as: "button",
|
@@ -3889,7 +3879,7 @@ var PlayPauseButton = ({
|
|
3889
3879
|
disabled: isDisabled,
|
3890
3880
|
...props
|
3891
3881
|
},
|
3892
|
-
isPlaying ? /* @__PURE__ */
|
3882
|
+
isPlaying ? /* @__PURE__ */ React70__default.createElement(PauseIcon, { sx: styles3.icon }) : /* @__PURE__ */ React70__default.createElement(PlayIcon, { sx: styles3.icon })
|
3893
3883
|
);
|
3894
3884
|
};
|
3895
3885
|
var texts18 = createTexts({
|
@@ -3917,7 +3907,7 @@ var SkipButton = ({
|
|
3917
3907
|
variant: "jumpSkip",
|
3918
3908
|
size: size2
|
3919
3909
|
});
|
3920
|
-
return /* @__PURE__ */
|
3910
|
+
return /* @__PURE__ */ React70__default.createElement(
|
3921
3911
|
Center,
|
3922
3912
|
{
|
3923
3913
|
as: "button",
|
@@ -3926,7 +3916,7 @@ var SkipButton = ({
|
|
3926
3916
|
disabled: isDisabled,
|
3927
3917
|
...props
|
3928
3918
|
},
|
3929
|
-
direction2 === "forward" ? /* @__PURE__ */
|
3919
|
+
direction2 === "forward" ? /* @__PURE__ */ React70__default.createElement(SkipNextIcon, { sx: styles3.icon }) : /* @__PURE__ */ React70__default.createElement(SkipPreviousIcon, { sx: styles3.icon })
|
3930
3920
|
);
|
3931
3921
|
};
|
3932
3922
|
var texts19 = createTexts({
|
@@ -3949,13 +3939,13 @@ var ModalHeader = forwardRef(
|
|
3949
3939
|
fontSize: size2 === "lg" ? ["mobile.lg", "desktop.lg"] : ["mobile.md", "desktop.md"],
|
3950
3940
|
textAlign: size2 === "lg" ? "center" : "left"
|
3951
3941
|
};
|
3952
|
-
return /* @__PURE__ */
|
3942
|
+
return /* @__PURE__ */ React70__default.createElement(ModalHeader$1, { ...props, ref, ...styles3 });
|
3953
3943
|
}
|
3954
3944
|
);
|
3955
3945
|
|
3956
3946
|
// src/modal/Drawer.tsx
|
3957
3947
|
var Drawer = (props) => {
|
3958
|
-
return /* @__PURE__ */
|
3948
|
+
return /* @__PURE__ */ React70__default.createElement(DrawerProvider, { placement: props.placement }, /* @__PURE__ */ React70__default.createElement(Drawer$1, { ...props }));
|
3959
3949
|
};
|
3960
3950
|
var DrawerContent = forwardRef(
|
3961
3951
|
({ children, ...props }, ref) => {
|
@@ -3972,7 +3962,7 @@ var DrawerContent = forwardRef(
|
|
3972
3962
|
});
|
3973
3963
|
const isTopOrBottom = placement === "top" || placement === "bottom";
|
3974
3964
|
const widthConstraits = isTopOrBottom ? { width: ["100%", "37.5rem"], mx: "auto" } : {};
|
3975
|
-
return /* @__PURE__ */
|
3965
|
+
return /* @__PURE__ */ React70__default.createElement(Box, { ...handlers }, /* @__PURE__ */ React70__default.createElement(
|
3976
3966
|
DrawerContent$1,
|
3977
3967
|
{
|
3978
3968
|
...widthConstraits,
|
@@ -3981,13 +3971,13 @@ var DrawerContent = forwardRef(
|
|
3981
3971
|
...props,
|
3982
3972
|
ref
|
3983
3973
|
},
|
3984
|
-
/* @__PURE__ */
|
3974
|
+
/* @__PURE__ */ React70__default.createElement(Box, { position: "relative" }, /* @__PURE__ */ React70__default.createElement(Box, { maxHeight: "100vh", maxWidth: "100vw", overflow: "auto" }, isTopOrBottom && /* @__PURE__ */ React70__default.createElement(Notch, null), /* @__PURE__ */ React70__default.createElement(Box, null, children)))
|
3985
3975
|
));
|
3986
3976
|
}
|
3987
3977
|
);
|
3988
3978
|
var Notch = forwardRef((props, ref) => {
|
3989
3979
|
const placement = useDrawerContext();
|
3990
|
-
return /* @__PURE__ */
|
3980
|
+
return /* @__PURE__ */ React70__default.createElement(
|
3991
3981
|
Box,
|
3992
3982
|
{
|
3993
3983
|
position: "absolute",
|
@@ -3999,14 +3989,14 @@ var Notch = forwardRef((props, ref) => {
|
|
3999
3989
|
...props,
|
4000
3990
|
ref
|
4001
3991
|
},
|
4002
|
-
/* @__PURE__ */
|
3992
|
+
/* @__PURE__ */ React70__default.createElement(
|
4003
3993
|
Center,
|
4004
3994
|
{
|
4005
3995
|
background: placement === "bottom" ? "bottom" : "top",
|
4006
3996
|
padding: 2,
|
4007
3997
|
borderRadius: "md"
|
4008
3998
|
},
|
4009
|
-
/* @__PURE__ */
|
3999
|
+
/* @__PURE__ */ React70__default.createElement(
|
4010
4000
|
Box,
|
4011
4001
|
{
|
4012
4002
|
width: "2.265rem",
|
@@ -4018,17 +4008,17 @@ var Notch = forwardRef((props, ref) => {
|
|
4018
4008
|
)
|
4019
4009
|
);
|
4020
4010
|
});
|
4021
|
-
var DrawerContext =
|
4022
|
-
var DrawerProvider = (props) => /* @__PURE__ */
|
4011
|
+
var DrawerContext = React70__default.createContext(void 0);
|
4012
|
+
var DrawerProvider = (props) => /* @__PURE__ */ React70__default.createElement(DrawerContext.Provider, { value: props.placement }, props.children);
|
4023
4013
|
var useDrawerContext = () => {
|
4024
|
-
return
|
4014
|
+
return React70__default.useContext(DrawerContext);
|
4025
4015
|
};
|
4026
4016
|
var FullScreenDrawer = ({
|
4027
4017
|
children,
|
4028
4018
|
title,
|
4029
4019
|
placement = "bottom",
|
4030
4020
|
leftButton = null,
|
4031
|
-
rightButton = /* @__PURE__ */
|
4021
|
+
rightButton = /* @__PURE__ */ React70__default.createElement(DrawerCloseButton2, null),
|
4032
4022
|
isOpen,
|
4033
4023
|
onClose
|
4034
4024
|
}) => {
|
@@ -4044,7 +4034,7 @@ var FullScreenDrawer = ({
|
|
4044
4034
|
useEffect(() => {
|
4045
4035
|
setContentBoxScrolled(false);
|
4046
4036
|
}, [isOpen]);
|
4047
|
-
return /* @__PURE__ */
|
4037
|
+
return /* @__PURE__ */ React70__default.createElement(Drawer, { isOpen, onClose, placement, size: "full" }, /* @__PURE__ */ React70__default.createElement(DrawerOverlay, null), /* @__PURE__ */ React70__default.createElement(
|
4048
4038
|
DrawerContent$1,
|
4049
4039
|
{
|
4050
4040
|
height: "100vh",
|
@@ -4052,7 +4042,7 @@ var FullScreenDrawer = ({
|
|
4052
4042
|
backgroundPosition: "top",
|
4053
4043
|
backgroundRepeat: "no-repeat"
|
4054
4044
|
},
|
4055
|
-
/* @__PURE__ */
|
4045
|
+
/* @__PURE__ */ React70__default.createElement(
|
4056
4046
|
DrawerTopMenu,
|
4057
4047
|
{
|
4058
4048
|
isScrolled: isContentBoxScrolled,
|
@@ -4061,7 +4051,7 @@ var FullScreenDrawer = ({
|
|
4061
4051
|
rightButton
|
4062
4052
|
}
|
4063
4053
|
),
|
4064
|
-
/* @__PURE__ */
|
4054
|
+
/* @__PURE__ */ React70__default.createElement(DrawerBody, { overflow: "auto", onScroll: onContentScroll }, children)
|
4065
4055
|
));
|
4066
4056
|
};
|
4067
4057
|
var DrawerTopMenu = ({
|
@@ -4074,7 +4064,7 @@ var DrawerTopMenu = ({
|
|
4074
4064
|
"bg.default.light",
|
4075
4065
|
"bg.default.dark"
|
4076
4066
|
);
|
4077
|
-
return /* @__PURE__ */
|
4067
|
+
return /* @__PURE__ */ React70__default.createElement(
|
4078
4068
|
Flex,
|
4079
4069
|
{
|
4080
4070
|
width: "100%",
|
@@ -4087,8 +4077,8 @@ var DrawerTopMenu = ({
|
|
4087
4077
|
transition: "box-shadow 0.2s",
|
4088
4078
|
boxShadow: isScrolled ? "md" : void 0
|
4089
4079
|
},
|
4090
|
-
/* @__PURE__ */
|
4091
|
-
/* @__PURE__ */
|
4080
|
+
/* @__PURE__ */ React70__default.createElement(Box, { flex: "1" }, leftButton),
|
4081
|
+
/* @__PURE__ */ React70__default.createElement(
|
4092
4082
|
DrawerHeader,
|
4093
4083
|
{
|
4094
4084
|
as: "h2",
|
@@ -4101,7 +4091,7 @@ var DrawerTopMenu = ({
|
|
4101
4091
|
},
|
4102
4092
|
title
|
4103
4093
|
),
|
4104
|
-
/* @__PURE__ */
|
4094
|
+
/* @__PURE__ */ React70__default.createElement(Box, { flex: "1" }, /* @__PURE__ */ React70__default.createElement(Box, { width: "fit-content", marginLeft: "auto" }, rightButton))
|
4105
4095
|
);
|
4106
4096
|
};
|
4107
4097
|
var DrawerCloseButton2 = () => {
|
@@ -4111,11 +4101,11 @@ var DrawerCloseButton2 = () => {
|
|
4111
4101
|
`(min-width: ${tokens11__default.size.breakpoint.sm})`
|
4112
4102
|
);
|
4113
4103
|
if (isScreenSizeMinSm) {
|
4114
|
-
return /* @__PURE__ */
|
4104
|
+
return /* @__PURE__ */ React70__default.createElement(
|
4115
4105
|
Button,
|
4116
4106
|
{
|
4117
4107
|
variant: "ghost",
|
4118
|
-
leftIcon: /* @__PURE__ */
|
4108
|
+
leftIcon: /* @__PURE__ */ React70__default.createElement(CloseFill24Icon, null),
|
4119
4109
|
onClick: onClose,
|
4120
4110
|
"aria-label": t2(texts20.close),
|
4121
4111
|
width: "fit-content",
|
@@ -4124,11 +4114,11 @@ var DrawerCloseButton2 = () => {
|
|
4124
4114
|
t2(texts20.close)
|
4125
4115
|
);
|
4126
4116
|
}
|
4127
|
-
return /* @__PURE__ */
|
4117
|
+
return /* @__PURE__ */ React70__default.createElement(
|
4128
4118
|
IconButton,
|
4129
4119
|
{
|
4130
4120
|
variant: "ghost",
|
4131
|
-
icon: /* @__PURE__ */
|
4121
|
+
icon: /* @__PURE__ */ React70__default.createElement(CloseFill30Icon, null),
|
4132
4122
|
onClick: onClose,
|
4133
4123
|
"aria-label": t2(texts20.close)
|
4134
4124
|
}
|
@@ -4148,7 +4138,7 @@ var SimpleDrawer = ({
|
|
4148
4138
|
title,
|
4149
4139
|
...props
|
4150
4140
|
}) => {
|
4151
|
-
return /* @__PURE__ */
|
4141
|
+
return /* @__PURE__ */ React70__default.createElement(Drawer, { placement, ...props }, /* @__PURE__ */ React70__default.createElement(DrawerOverlay, null), /* @__PURE__ */ React70__default.createElement(DrawerContent, null, /* @__PURE__ */ React70__default.createElement(DrawerCloseButton, null), title && /* @__PURE__ */ React70__default.createElement(ModalHeader, null, title), /* @__PURE__ */ React70__default.createElement(DrawerBody, null, children)));
|
4152
4142
|
};
|
4153
4143
|
var EXPIRATION_DELAY = 1e3 * 60 * 60 * 24 * 30;
|
4154
4144
|
var Nudge = ({
|
@@ -4170,7 +4160,7 @@ var Nudge = ({
|
|
4170
4160
|
}
|
4171
4161
|
return null;
|
4172
4162
|
}
|
4173
|
-
return /* @__PURE__ */
|
4163
|
+
return /* @__PURE__ */ React70__default.createElement(
|
4174
4164
|
Popover,
|
4175
4165
|
{
|
4176
4166
|
arrowSize: 12,
|
@@ -4178,8 +4168,8 @@ var Nudge = ({
|
|
4178
4168
|
defaultIsOpen: true,
|
4179
4169
|
...props
|
4180
4170
|
},
|
4181
|
-
/* @__PURE__ */
|
4182
|
-
/* @__PURE__ */
|
4171
|
+
/* @__PURE__ */ React70__default.createElement(PopoverAnchor, null, children),
|
4172
|
+
/* @__PURE__ */ React70__default.createElement(PopoverContent, { borderRadius: "sm" }, /* @__PURE__ */ React70__default.createElement(DarkMode, null, /* @__PURE__ */ React70__default.createElement(PopoverArrow, null), /* @__PURE__ */ React70__default.createElement(PopoverCloseButton, null), /* @__PURE__ */ React70__default.createElement(PopoverBody, { margin: 1 }, /* @__PURE__ */ React70__default.createElement(Box, { marginRight: 4 }, content), /* @__PURE__ */ React70__default.createElement(Box, { marginTop: 1.5 }, actions ?? /* @__PURE__ */ React70__default.createElement(ButtonGroup, null, /* @__PURE__ */ React70__default.createElement(Button, { variant: "tertiary", size: "xs" }, t2(texts21.close)), /* @__PURE__ */ React70__default.createElement(Button, { variant: "secondary", size: "xs", fontWeight: "bold" }, t2(texts21.showMe)))))))
|
4183
4173
|
);
|
4184
4174
|
};
|
4185
4175
|
var texts21 = createTexts({
|
@@ -4207,19 +4197,19 @@ var WizardNudge = ({
|
|
4207
4197
|
const totalSteps = content.length;
|
4208
4198
|
const isLastStep = totalSteps === currentStep;
|
4209
4199
|
const onNext = () => setCurrentStep((prev) => prev + 1);
|
4210
|
-
return /* @__PURE__ */
|
4200
|
+
return /* @__PURE__ */ React70__default.createElement(
|
4211
4201
|
Nudge,
|
4212
4202
|
{
|
4213
4203
|
onClose,
|
4214
4204
|
name,
|
4215
4205
|
content: content[currentStep - 1],
|
4216
|
-
actions: /* @__PURE__ */
|
4206
|
+
actions: /* @__PURE__ */ React70__default.createElement(Flex, { gap: 3, alignItems: "center" }, /* @__PURE__ */ React70__default.createElement(
|
4217
4207
|
ProgressIndicator,
|
4218
4208
|
{
|
4219
4209
|
activeStep: currentStep,
|
4220
4210
|
numberOfSteps: totalSteps
|
4221
4211
|
}
|
4222
|
-
), /* @__PURE__ */
|
4212
|
+
), /* @__PURE__ */ React70__default.createElement(Box, null, /* @__PURE__ */ React70__default.createElement(NextOrCloseButton, { isLastStep, onNext }))),
|
4223
4213
|
...props
|
4224
4214
|
},
|
4225
4215
|
children
|
@@ -4228,12 +4218,12 @@ var WizardNudge = ({
|
|
4228
4218
|
var NextOrCloseButton = ({ isLastStep, onNext }) => {
|
4229
4219
|
const { onClose } = usePopoverContext();
|
4230
4220
|
const { t: t2 } = useTranslation();
|
4231
|
-
return /* @__PURE__ */
|
4221
|
+
return /* @__PURE__ */ React70__default.createElement(
|
4232
4222
|
Button,
|
4233
4223
|
{
|
4234
4224
|
variant: "tertiary",
|
4235
4225
|
size: "xs",
|
4236
|
-
leftIcon: isLastStep ? void 0 : /* @__PURE__ */
|
4226
|
+
leftIcon: isLastStep ? void 0 : /* @__PURE__ */ React70__default.createElement(ArrowRightFill18Icon, null),
|
4237
4227
|
onClick: isLastStep ? onClose : onNext,
|
4238
4228
|
width: "fit-content"
|
4239
4229
|
},
|
@@ -4297,7 +4287,7 @@ var Pagination = ({
|
|
4297
4287
|
}
|
4298
4288
|
}
|
4299
4289
|
return displayPageNumbers.map(
|
4300
|
-
(pageNumber, index) => pageNumber === "..." ? /* @__PURE__ */
|
4290
|
+
(pageNumber, index) => pageNumber === "..." ? /* @__PURE__ */ React70__default.createElement(ListItem, { key: index, sx: style.listItem }, /* @__PURE__ */ React70__default.createElement(Center, null, "...")) : /* @__PURE__ */ React70__default.createElement(
|
4301
4291
|
Link,
|
4302
4292
|
{
|
4303
4293
|
key: index,
|
@@ -4314,7 +4304,7 @@ var Pagination = ({
|
|
4314
4304
|
)
|
4315
4305
|
);
|
4316
4306
|
};
|
4317
|
-
return /* @__PURE__ */
|
4307
|
+
return /* @__PURE__ */ React70__default.createElement(Flex, { as: "nav", "aria-label": "pagination" }, /* @__PURE__ */ React70__default.createElement(
|
4318
4308
|
UnorderedList,
|
4319
4309
|
{
|
4320
4310
|
display: "flex",
|
@@ -4323,22 +4313,22 @@ var Pagination = ({
|
|
4323
4313
|
padding: 0,
|
4324
4314
|
margin: 0
|
4325
4315
|
},
|
4326
|
-
/* @__PURE__ */
|
4316
|
+
/* @__PURE__ */ React70__default.createElement(ListItem, { "aria-label": t2(texts23.previousPage) }, /* @__PURE__ */ React70__default.createElement(
|
4327
4317
|
TextLink,
|
4328
4318
|
{
|
4329
4319
|
onClick: () => onPageChange(selectedPage - 1),
|
4330
4320
|
sx: hasPreviousPage ? style.link : style.disabled
|
4331
4321
|
},
|
4332
|
-
/* @__PURE__ */
|
4322
|
+
/* @__PURE__ */ React70__default.createElement(DropdownLeftFill18Icon, { sx: style.icon })
|
4333
4323
|
)),
|
4334
4324
|
renderPaginationButtons(),
|
4335
|
-
/* @__PURE__ */
|
4325
|
+
/* @__PURE__ */ React70__default.createElement(ListItem, { "aria-label": t2(texts23.nextPage) }, /* @__PURE__ */ React70__default.createElement(
|
4336
4326
|
TextLink,
|
4337
4327
|
{
|
4338
4328
|
onClick: () => onPageChange(selectedPage + 1),
|
4339
4329
|
sx: hasNextPage ? style.link : style.disabled
|
4340
4330
|
},
|
4341
|
-
/* @__PURE__ */
|
4331
|
+
/* @__PURE__ */ React70__default.createElement(DropdownRightFill18Icon, { sx: style.icon })
|
4342
4332
|
))
|
4343
4333
|
));
|
4344
4334
|
};
|
@@ -4358,7 +4348,7 @@ var texts23 = createTexts({
|
|
4358
4348
|
});
|
4359
4349
|
var ProgressDot = ({ isActive }) => {
|
4360
4350
|
const style = useMultiStyleConfig("ProgressIndicator");
|
4361
|
-
return /* @__PURE__ */
|
4351
|
+
return /* @__PURE__ */ React70__default.createElement(
|
4362
4352
|
Box,
|
4363
4353
|
{
|
4364
4354
|
as: "svg",
|
@@ -4368,7 +4358,7 @@ var ProgressDot = ({ isActive }) => {
|
|
4368
4358
|
viewBox: "0 0 100 100",
|
4369
4359
|
"aria-current": isActive ? "step" : void 0
|
4370
4360
|
},
|
4371
|
-
/* @__PURE__ */
|
4361
|
+
/* @__PURE__ */ React70__default.createElement(Box, { as: "circle", cx: "50", cy: "50", r: "50" })
|
4372
4362
|
);
|
4373
4363
|
};
|
4374
4364
|
|
@@ -4379,7 +4369,7 @@ var ProgressIndicator = ({
|
|
4379
4369
|
}) => {
|
4380
4370
|
const { t: t2 } = useTranslation();
|
4381
4371
|
const style = useMultiStyleConfig("ProgressIndicator");
|
4382
|
-
return /* @__PURE__ */
|
4372
|
+
return /* @__PURE__ */ React70__default.createElement(
|
4383
4373
|
Box,
|
4384
4374
|
{
|
4385
4375
|
__css: style.root,
|
@@ -4389,7 +4379,7 @@ var ProgressIndicator = ({
|
|
4389
4379
|
"aria-valuenow": activeStep,
|
4390
4380
|
"aria-valuetext": t2(texts24.stepsOf(activeStep, numberOfSteps))
|
4391
4381
|
},
|
4392
|
-
/* @__PURE__ */
|
4382
|
+
/* @__PURE__ */ React70__default.createElement(Box, { __css: style.container }, Array.from({ length: numberOfSteps }, (_, i) => /* @__PURE__ */ React70__default.createElement(
|
4393
4383
|
ProgressDot,
|
4394
4384
|
{
|
4395
4385
|
key: i,
|
@@ -4416,9 +4406,9 @@ var SporProvider = ({
|
|
4416
4406
|
}) => {
|
4417
4407
|
const brandCustomizations = brandTheme[brand] ?? {};
|
4418
4408
|
const extendedTheme = deepmerge(theme3, brandCustomizations);
|
4419
|
-
return /* @__PURE__ */
|
4409
|
+
return /* @__PURE__ */ React70__default.createElement(LanguageProvider, { language }, /* @__PURE__ */ React70__default.createElement(ChakraProvider, { theme: extendedTheme, ...props }, /* @__PURE__ */ React70__default.createElement(Global, { styles: fontFaces }), children));
|
4420
4410
|
};
|
4421
|
-
var StepperContext =
|
4411
|
+
var StepperContext = React70__default.createContext(null);
|
4422
4412
|
var StepperProvider = ({
|
4423
4413
|
activeStep,
|
4424
4414
|
children,
|
@@ -4426,7 +4416,7 @@ var StepperProvider = ({
|
|
4426
4416
|
numberOfSteps,
|
4427
4417
|
variant
|
4428
4418
|
}) => {
|
4429
|
-
return /* @__PURE__ */
|
4419
|
+
return /* @__PURE__ */ React70__default.createElement(
|
4430
4420
|
StepperContext.Provider,
|
4431
4421
|
{
|
4432
4422
|
value: { activeStep, onClick, numberOfSteps, variant }
|
@@ -4435,7 +4425,7 @@ var StepperProvider = ({
|
|
4435
4425
|
);
|
4436
4426
|
};
|
4437
4427
|
var useStepper = () => {
|
4438
|
-
const context =
|
4428
|
+
const context = React70__default.useContext(StepperContext);
|
4439
4429
|
if (!context) {
|
4440
4430
|
throw new Error(
|
4441
4431
|
"useStepper must be used within a StepperProvider. Most likely, you forgot to wrap your StepperStep in a Stepper component"
|
@@ -4463,7 +4453,7 @@ var Stepper = ({
|
|
4463
4453
|
const { t: t2 } = useTranslation();
|
4464
4454
|
const hideBackButtonOnFirstStep = activeStep === 1 && !onBackButtonClick;
|
4465
4455
|
const shownHeading = heading || title;
|
4466
|
-
return /* @__PURE__ */
|
4456
|
+
return /* @__PURE__ */ React70__default.createElement(Box, { sx: style.root }, /* @__PURE__ */ React70__default.createElement(
|
4467
4457
|
StepperProvider,
|
4468
4458
|
{
|
4469
4459
|
onClick,
|
@@ -4471,7 +4461,7 @@ var Stepper = ({
|
|
4471
4461
|
variant,
|
4472
4462
|
numberOfSteps
|
4473
4463
|
},
|
4474
|
-
/* @__PURE__ */
|
4464
|
+
/* @__PURE__ */ React70__default.createElement(Box, { sx: style.container }, /* @__PURE__ */ React70__default.createElement(Box, { sx: style.innerContainer }, /* @__PURE__ */ React70__default.createElement(
|
4475
4465
|
Flex,
|
4476
4466
|
{
|
4477
4467
|
justifyContent: "space-between",
|
@@ -4479,11 +4469,11 @@ var Stepper = ({
|
|
4479
4469
|
gap: 2,
|
4480
4470
|
flex: 1
|
4481
4471
|
},
|
4482
|
-
/* @__PURE__ */
|
4472
|
+
/* @__PURE__ */ React70__default.createElement(
|
4483
4473
|
IconButton,
|
4484
4474
|
{
|
4485
4475
|
"aria-label": t2(texts25.back),
|
4486
|
-
icon: /* @__PURE__ */
|
4476
|
+
icon: /* @__PURE__ */ React70__default.createElement(ArrowLeftFill24Icon, null),
|
4487
4477
|
variant: "ghost",
|
4488
4478
|
size: "sm",
|
4489
4479
|
visibility: hideBackButtonOnFirstStep ? "hidden" : "visible",
|
@@ -4496,9 +4486,9 @@ var Stepper = ({
|
|
4496
4486
|
}
|
4497
4487
|
}
|
4498
4488
|
),
|
4499
|
-
shownHeading && /* @__PURE__ */
|
4500
|
-
/* @__PURE__ */
|
4501
|
-
)), /* @__PURE__ */
|
4489
|
+
shownHeading && /* @__PURE__ */ React70__default.createElement(Text4, { flex: 1, variant: "sm", as: headingLevel, sx: style.title }, shownHeading),
|
4490
|
+
/* @__PURE__ */ React70__default.createElement(Box, { sx: style.stepCounter }, t2(texts25.stepsOf(activeStep, numberOfSteps)))
|
4491
|
+
)), /* @__PURE__ */ React70__default.createElement(Flex, { justifyContent: "center", display: ["none", null, "flex"] }, steps.map((step, index) => /* @__PURE__ */ React70__default.createElement(
|
4502
4492
|
StepperStep,
|
4503
4493
|
{
|
4504
4494
|
key: index,
|
@@ -4543,14 +4533,14 @@ var StepperStep = ({
|
|
4543
4533
|
);
|
4544
4534
|
const iconColor = useColorModeValue("blackAlpha.200", "whiteAlpha.200");
|
4545
4535
|
const isDisabled = state2 !== "active" && isDisabledOverride || state2 === "disabled";
|
4546
|
-
return /* @__PURE__ */
|
4536
|
+
return /* @__PURE__ */ React70__default.createElement(Box, { sx: style.stepContainer }, stepNumber > 1 && /* @__PURE__ */ React70__default.createElement(
|
4547
4537
|
DropdownRightFill18Icon,
|
4548
4538
|
{
|
4549
4539
|
marginX: 5,
|
4550
4540
|
display: ["none", null, "block"],
|
4551
4541
|
color: iconColor
|
4552
4542
|
}
|
4553
|
-
), isDisabled ? /* @__PURE__ */
|
4543
|
+
), isDisabled ? /* @__PURE__ */ React70__default.createElement(
|
4554
4544
|
Text4,
|
4555
4545
|
{
|
4556
4546
|
variant: "xs",
|
@@ -4560,7 +4550,7 @@ var StepperStep = ({
|
|
4560
4550
|
paddingX: 2
|
4561
4551
|
},
|
4562
4552
|
children
|
4563
|
-
) : /* @__PURE__ */
|
4553
|
+
) : /* @__PURE__ */ React70__default.createElement(
|
4564
4554
|
Button,
|
4565
4555
|
{
|
4566
4556
|
size: "xs",
|
@@ -4583,11 +4573,11 @@ var getState = (stepNumber, activeStep) => {
|
|
4583
4573
|
return "disabled";
|
4584
4574
|
};
|
4585
4575
|
var Tabs = forwardRef((props, ref) => {
|
4586
|
-
return /* @__PURE__ */
|
4576
|
+
return /* @__PURE__ */ React70.createElement(Tabs$1, { ...props, ref });
|
4587
4577
|
});
|
4588
4578
|
var Table = forwardRef((props, ref) => {
|
4589
4579
|
const { variant, size: size2, colorScheme, children, ...rest } = props;
|
4590
|
-
return /* @__PURE__ */
|
4580
|
+
return /* @__PURE__ */ React70__default.createElement(Box, { ...rest, ...getStyleProps(props) }, /* @__PURE__ */ React70__default.createElement(Box, { overflowX: "auto" }, /* @__PURE__ */ React70__default.createElement(
|
4591
4581
|
Table$1,
|
4592
4582
|
{
|
4593
4583
|
variant,
|
@@ -6403,16 +6393,16 @@ Object.assign({}, space, layout, flexbox, grid, position);
|
|
6403
6393
|
function defineStyle(styles3) {
|
6404
6394
|
return styles3;
|
6405
6395
|
}
|
6406
|
-
function defineStyleConfig(
|
6407
|
-
return
|
6396
|
+
function defineStyleConfig(config43) {
|
6397
|
+
return config43;
|
6408
6398
|
}
|
6409
6399
|
function createMultiStyleConfigHelpers(parts19) {
|
6410
6400
|
return {
|
6411
|
-
definePartsStyle(
|
6412
|
-
return
|
6401
|
+
definePartsStyle(config43) {
|
6402
|
+
return config43;
|
6413
6403
|
},
|
6414
|
-
defineMultiStyleConfig(
|
6415
|
-
return { parts: parts19, ...
|
6404
|
+
defineMultiStyleConfig(config43) {
|
6405
|
+
return { parts: parts19, ...config43 };
|
6416
6406
|
}
|
6417
6407
|
};
|
6418
6408
|
}
|
@@ -9697,7 +9687,6 @@ __export(components_exports, {
|
|
9697
9687
|
NumericStepper: () => numeric_stepper_default,
|
9698
9688
|
Pagination: () => pagination_default,
|
9699
9689
|
Popover: () => popover_default,
|
9700
|
-
PressableCard: () => pressable_card_default,
|
9701
9690
|
ProgressBar: () => progress_bar_default,
|
9702
9691
|
ProgressIndicator: () => progress_indicator_default,
|
9703
9692
|
Radio: () => radio_default,
|
@@ -13541,166 +13530,7 @@ var getColorSchemeBaseProps2 = (props) => {
|
|
13541
13530
|
}
|
13542
13531
|
default:
|
13543
13532
|
return {
|
13544
|
-
backgroundColor: ((_a6 = colors2[props.colorScheme]) == null ? void 0 : _a6[100]) ?? "
|
13545
|
-
...baseText("default", props)
|
13546
|
-
};
|
13547
|
-
}
|
13548
|
-
};
|
13549
|
-
var config43 = defineStyleConfig$1({
|
13550
|
-
baseStyle: (props) => ({
|
13551
|
-
appearance: "none",
|
13552
|
-
border: "none",
|
13553
|
-
overflow: "hidden",
|
13554
|
-
fontSize: "inherit",
|
13555
|
-
display: "block",
|
13556
|
-
borderRadius: "md",
|
13557
|
-
...getColorSchemeBaseProps3(props),
|
13558
|
-
...getColorSchemeClickableProps2(props),
|
13559
|
-
...focusVisibleStyles(props),
|
13560
|
-
...getColorSchemeActiveProps2(props),
|
13561
|
-
_hover: getColorSchemeHoverProps2(props),
|
13562
|
-
_disabled: {
|
13563
|
-
...baseBackground("disabled", props),
|
13564
|
-
...baseBorder("disabled", props),
|
13565
|
-
...baseText("disabled", props),
|
13566
|
-
pointerEvents: "none"
|
13567
|
-
}
|
13568
|
-
}),
|
13569
|
-
variants: {
|
13570
|
-
base: (props) => ({
|
13571
|
-
...baseBackground("default", props),
|
13572
|
-
_hover: {
|
13573
|
-
...baseBackground("hover", props)
|
13574
|
-
},
|
13575
|
-
_active: {
|
13576
|
-
...baseBackground("active", props)
|
13577
|
-
}
|
13578
|
-
}),
|
13579
|
-
accent: (props) => ({
|
13580
|
-
...accentBackground("default", props),
|
13581
|
-
_hover: {
|
13582
|
-
...accentBackground("hover", props)
|
13583
|
-
},
|
13584
|
-
_active: {
|
13585
|
-
...accentBackground("active", props)
|
13586
|
-
}
|
13587
|
-
}),
|
13588
|
-
floating: (props) => ({
|
13589
|
-
...floatingBackground("default", props),
|
13590
|
-
_hover: {
|
13591
|
-
...floatingBackground("hover", props)
|
13592
|
-
},
|
13593
|
-
_active: {
|
13594
|
-
...floatingBackground("active", props)
|
13595
|
-
}
|
13596
|
-
})
|
13597
|
-
},
|
13598
|
-
sizes: {
|
13599
|
-
sm: {
|
13600
|
-
boxShadow: "sm",
|
13601
|
-
_hover: {
|
13602
|
-
boxShadow: "md"
|
13603
|
-
},
|
13604
|
-
_active: {
|
13605
|
-
boxShadow: "none"
|
13606
|
-
}
|
13607
|
-
},
|
13608
|
-
lg: {
|
13609
|
-
boxShadow: "md",
|
13610
|
-
_hover: {
|
13611
|
-
boxShadow: "lg"
|
13612
|
-
},
|
13613
|
-
_active: {
|
13614
|
-
boxShadow: "sm"
|
13615
|
-
}
|
13616
|
-
}
|
13617
|
-
}
|
13618
|
-
});
|
13619
|
-
var pressable_card_default = config43;
|
13620
|
-
var getColorSchemeBaseProps3 = (props) => {
|
13621
|
-
switch (props.colorScheme) {
|
13622
|
-
case "default":
|
13623
|
-
return {
|
13624
|
-
...baseBorder("default", props),
|
13625
|
-
backgroundColor: mode(
|
13626
|
-
"white",
|
13627
|
-
`color-mix(in srgb, white 10%, var(--spor-colors-bg-default-dark))`
|
13628
|
-
)(props),
|
13629
|
-
color: "inherit"
|
13630
|
-
};
|
13631
|
-
case "accent":
|
13632
|
-
return {
|
13633
|
-
...accentBackground("default", props),
|
13634
|
-
...accentText("default", props),
|
13635
|
-
_hover: {
|
13636
|
-
...accentBackground("hover", props)
|
13637
|
-
},
|
13638
|
-
_active: {
|
13639
|
-
...accentBackground("active", props)
|
13640
|
-
}
|
13641
|
-
};
|
13642
|
-
}
|
13643
|
-
};
|
13644
|
-
function getColorSchemeClickableProps2(props) {
|
13645
|
-
switch (props.colorScheme) {
|
13646
|
-
case "default":
|
13647
|
-
return {
|
13648
|
-
...floatingBorder("default", props)
|
13649
|
-
};
|
13650
|
-
case "accent":
|
13651
|
-
return {
|
13652
|
-
...accentBackground("default", props),
|
13653
|
-
...accentText("default", props),
|
13654
|
-
_hover: {
|
13655
|
-
...accentBackground("hover", props)
|
13656
|
-
},
|
13657
|
-
_active: {
|
13658
|
-
...accentBackground("active", props)
|
13659
|
-
}
|
13660
|
-
};
|
13661
|
-
}
|
13662
|
-
}
|
13663
|
-
var getColorSchemeHoverProps2 = (props) => {
|
13664
|
-
switch (props.colorScheme) {
|
13665
|
-
case "default":
|
13666
|
-
return {
|
13667
|
-
backgroundColor: mode(
|
13668
|
-
"white",
|
13669
|
-
`color-mix(in srgb, white 20%, var(--spor-colors-bg-default-dark))`
|
13670
|
-
)(props),
|
13671
|
-
...floatingBorder("hover", props)
|
13672
|
-
};
|
13673
|
-
case "accent":
|
13674
|
-
return {
|
13675
|
-
...accentBackground("default", props),
|
13676
|
-
...accentText("default", props),
|
13677
|
-
_hover: {
|
13678
|
-
...accentBackground("hover", props)
|
13679
|
-
},
|
13680
|
-
_active: {
|
13681
|
-
...accentBackground("active", props)
|
13682
|
-
}
|
13683
|
-
};
|
13684
|
-
}
|
13685
|
-
};
|
13686
|
-
var getColorSchemeActiveProps2 = (props) => {
|
13687
|
-
const { colorScheme } = props;
|
13688
|
-
switch (colorScheme) {
|
13689
|
-
case "default":
|
13690
|
-
return {
|
13691
|
-
backgroundColor: mode("bg.tertiary.light", `bg.default.dark`)(props),
|
13692
|
-
...floatingBorder("active", props)
|
13693
|
-
};
|
13694
|
-
case "accent":
|
13695
|
-
return {
|
13696
|
-
...accentBackground("default", props),
|
13697
|
-
...accentText("default", props),
|
13698
|
-
_hover: {
|
13699
|
-
...accentBackground("hover", props)
|
13700
|
-
},
|
13701
|
-
_active: {
|
13702
|
-
...accentBackground("active", props)
|
13703
|
-
}
|
13533
|
+
backgroundColor: ((_a6 = colors2[props.colorScheme]) == null ? void 0 : _a6[100]) ?? "platinum"
|
13704
13534
|
};
|
13705
13535
|
}
|
13706
13536
|
};
|
@@ -13805,12 +13635,12 @@ var brandTheme = {
|
|
13805
13635
|
};
|
13806
13636
|
var BaseToast = ({ children, variant, id }) => {
|
13807
13637
|
const styles3 = useStyleConfig("Toast", { variant });
|
13808
|
-
return /* @__PURE__ */
|
13638
|
+
return /* @__PURE__ */ React70__default.createElement(Flex, { sx: styles3, id }, /* @__PURE__ */ React70__default.createElement(ToastIcon, { variant }), children);
|
13809
13639
|
};
|
13810
13640
|
var ToastIcon = ({ variant }) => {
|
13811
13641
|
const Icon = getIcon3(variant);
|
13812
13642
|
const { t: t2 } = useTranslation();
|
13813
|
-
return /* @__PURE__ */
|
13643
|
+
return /* @__PURE__ */ React70__default.createElement(
|
13814
13644
|
Icon,
|
13815
13645
|
{
|
13816
13646
|
flexShrink: 0,
|
@@ -13860,7 +13690,7 @@ var ActionToast = ({
|
|
13860
13690
|
buttonText,
|
13861
13691
|
id
|
13862
13692
|
}) => {
|
13863
|
-
return /* @__PURE__ */
|
13693
|
+
return /* @__PURE__ */ React70__default.createElement(BaseToast, { variant, id }, /* @__PURE__ */ React70__default.createElement(Box, { marginRight: 2, flexGrow: "1" }, children), /* @__PURE__ */ React70__default.createElement(Button, { variant: "tertiary", size: "sm", onClick }, buttonText));
|
13864
13694
|
};
|
13865
13695
|
var ClosableToast = ({
|
13866
13696
|
children,
|
@@ -13870,13 +13700,13 @@ var ClosableToast = ({
|
|
13870
13700
|
}) => {
|
13871
13701
|
const styles3 = useMultiStyleConfig("Toast", { variant });
|
13872
13702
|
const { t: t2 } = useTranslation();
|
13873
|
-
return /* @__PURE__ */
|
13703
|
+
return /* @__PURE__ */ React70__default.createElement(BaseToast, { variant, id }, /* @__PURE__ */ React70__default.createElement(Box, { flexGrow: "1" }, children), /* @__PURE__ */ React70__default.createElement(
|
13874
13704
|
IconButton,
|
13875
13705
|
{
|
13876
13706
|
sx: styles3.dismissButton,
|
13877
13707
|
variant: "ghost",
|
13878
13708
|
"aria-label": t2(texts27.dismiss),
|
13879
|
-
icon: /* @__PURE__ */
|
13709
|
+
icon: /* @__PURE__ */ React70__default.createElement(CloseFill18Icon, null),
|
13880
13710
|
onClick: onClose
|
13881
13711
|
}
|
13882
13712
|
));
|
@@ -13904,7 +13734,7 @@ var useToast = () => {
|
|
13904
13734
|
};
|
13905
13735
|
var getToastComponent = (opts) => {
|
13906
13736
|
if ("isClosable" in opts && opts.isClosable) {
|
13907
|
-
return ({ onClose, id }) => /* @__PURE__ */
|
13737
|
+
return ({ onClose, id }) => /* @__PURE__ */ React70__default.createElement(
|
13908
13738
|
ClosableToast,
|
13909
13739
|
{
|
13910
13740
|
id,
|
@@ -13920,7 +13750,7 @@ var getToastComponent = (opts) => {
|
|
13920
13750
|
);
|
13921
13751
|
}
|
13922
13752
|
if ("buttonText" in opts) {
|
13923
|
-
return ({ id }) => /* @__PURE__ */
|
13753
|
+
return ({ id }) => /* @__PURE__ */ React70__default.createElement(
|
13924
13754
|
ActionToast,
|
13925
13755
|
{
|
13926
13756
|
id,
|
@@ -13931,7 +13761,7 @@ var getToastComponent = (opts) => {
|
|
13931
13761
|
opts.text
|
13932
13762
|
);
|
13933
13763
|
}
|
13934
|
-
return ({ id }) => /* @__PURE__ */
|
13764
|
+
return ({ id }) => /* @__PURE__ */ React70__default.createElement(BaseToast, { id, variant: opts.variant }, opts.text);
|
13935
13765
|
};
|
13936
13766
|
var Tooltip = ({
|
13937
13767
|
children,
|
@@ -13944,7 +13774,7 @@ var Tooltip = ({
|
|
13944
13774
|
withCloseButton = false,
|
13945
13775
|
...props
|
13946
13776
|
}) => {
|
13947
|
-
return /* @__PURE__ */
|
13777
|
+
return /* @__PURE__ */ React70__default.createElement(
|
13948
13778
|
Popover,
|
13949
13779
|
{
|
13950
13780
|
onClose,
|
@@ -13956,8 +13786,8 @@ var Tooltip = ({
|
|
13956
13786
|
arrowShadowColor: "none",
|
13957
13787
|
...props
|
13958
13788
|
},
|
13959
|
-
/* @__PURE__ */
|
13960
|
-
/* @__PURE__ */
|
13789
|
+
/* @__PURE__ */ React70__default.createElement(PopoverTrigger, null, children),
|
13790
|
+
/* @__PURE__ */ React70__default.createElement(PopoverContent, null, /* @__PURE__ */ React70__default.createElement(PopoverArrow, null), withCloseButton && /* @__PURE__ */ React70__default.createElement(PopoverCloseButton, null), /* @__PURE__ */ React70__default.createElement(PopoverBody, null, content))
|
13961
13791
|
);
|
13962
13792
|
};
|
13963
13793
|
|
@@ -14066,4 +13896,4 @@ function slugify(text, maxLength = 50) {
|
|
14066
13896
|
return text.normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[\u00C6\u00E6]/g, "ae").replace(/[\u00D8\u00F8]/g, "oe").replace(/[\u00C5\u00E5]/g, "aa").toLowerCase().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, "").substring(0, maxLength);
|
14067
13897
|
}
|
14068
13898
|
|
14069
|
-
export { Accordion, AttachedInputs, Badge, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, Card, CardSelect, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, ColorInlineLoader, ColorSpinner, Combobox, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerContent, Expandable, ExpandableAlert, ExpandableItem, FloatingActionButton, FormControl, FormErrorMessage, FormLabel3 as FormLabel, FullScreenDrawer, Heading, IconButton, InfoSelect, InfoTag, Input, InputLeftElement2 as InputLeftElement, InputRightElement2 as InputRightElement, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightSpinner, LineIcon, ListBox, ModalHeader, NativeSelect, Nudge, NumericStepper, Pagination, PasswordInput, PhoneNumberInput, PlayPauseButton,
|
13899
|
+
export { Accordion, AttachedInputs, Badge, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, Card, CardSelect, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, ColorInlineLoader, ColorSpinner, Combobox, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerContent, Expandable, ExpandableAlert, ExpandableItem, FloatingActionButton, FormControl, FormErrorMessage, FormLabel3 as FormLabel, FullScreenDrawer, Heading, IconButton, InfoSelect, InfoTag, Input, InputLeftElement2 as InputLeftElement, InputRightElement2 as InputRightElement, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightSpinner, LineIcon, ListBox, ModalHeader, NativeSelect, Nudge, NumericStepper, Pagination, PasswordInput, PhoneNumberInput, PlayPauseButton, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioGroup, SearchInput, SimpleDrawer, Skeleton, SkeletonCircle, SkeletonText, SkipButton, SporProvider, Stack, StaticAlert, StaticCard, Stepper, StepperStep, Switch, Table, Tabs, Text4 as Text, TextLink, Textarea, TimePicker, Tooltip, TravelTag, VyLogo, WizardNudge, brandTheme, createTexts, fontFaces, slugify, theme, useSize, useToast, useTranslation };
|