@vygruppen/spor-react 9.6.1 → 9.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +6 -0
- package/dist/{CountryCodeSelect-2KOFVXIQ.mjs → CountryCodeSelect-EZTV452W.mjs} +1 -1
- package/dist/{chunk-XXA3IGVH.mjs → chunk-7VZBL2PP.mjs} +479 -309
- package/dist/index.d.mts +694 -1
- package/dist/index.d.ts +694 -1
- package/dist/index.js +548 -362
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/card/PressableCard.tsx +52 -0
- package/src/card/index.tsx +1 -0
- package/src/theme/components/index.ts +1 -0
- package/src/theme/components/pressable-card.ts +179 -0
- package/src/theme/components/static-card.ts +3 -2
@@ -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 React71 from 'react';
|
7
|
+
import React71__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__ */ React71__default.createElement(Divider$1, { ...props, ref });
|
775
775
|
});
|
776
776
|
var Stack = forwardRef(
|
777
777
|
({ flexDirection, ...props }, ref) => {
|
778
|
-
return /* @__PURE__ */
|
778
|
+
return /* @__PURE__ */ React71__default.createElement(Stack$1, { ...props, direction: flexDirection, ref });
|
779
779
|
}
|
780
780
|
);
|
781
|
-
var AccordionContext =
|
781
|
+
var AccordionContext = React71__default.createContext(null);
|
782
782
|
var AccordionProvider = ({
|
783
783
|
size: size2,
|
784
784
|
...props
|
785
785
|
}) => {
|
786
|
-
return /* @__PURE__ */
|
786
|
+
return /* @__PURE__ */ React71__default.createElement(AccordionContext.Provider, { value: { size: size2 }, ...props });
|
787
787
|
};
|
788
788
|
var useAccordionContext = () => {
|
789
|
-
const context =
|
789
|
+
const context = React71__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__ */ React71__default.createElement(AccordionProvider, { size: props.size }, /* @__PURE__ */ React71__default.createElement(
|
801
801
|
Accordion$1,
|
802
802
|
{
|
803
803
|
...props,
|
804
804
|
ref,
|
805
805
|
defaultIndex
|
806
806
|
},
|
807
|
-
/* @__PURE__ */
|
807
|
+
/* @__PURE__ */ React71__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__ */ React71__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__ */ React71__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__ */ React71__default.createElement(AccordionItem, { ...rest }, /* @__PURE__ */ React71__default.createElement(Box, { as: headingLevel }, /* @__PURE__ */ React71__default.createElement(AccordionButton, null, /* @__PURE__ */ React71__default.createElement(Flex, { alignItems: "center" }, leftIcon && /* @__PURE__ */ React71__default.createElement(Box, { marginRight: 1 }, leftIcon), title), /* @__PURE__ */ React71__default.createElement(AccordionIcon, null))), /* @__PURE__ */ React71__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__ */ React71__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__ */ React71__default.createElement(React71__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__ */ React71__default.createElement(React71__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__ */ React71__default.createElement(Center, { ...props }, /* @__PURE__ */ React71__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React71__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React71__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__ */ React71__default.createElement(Center, { flexDirection: "column", ...props }, /* @__PURE__ */ React71__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React71__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React71__default.createElement(Lottie, { animationData: spinnerColorData }))), children && /* @__PURE__ */ React71__default.createElement(Box, { marginTop: 3, fontWeight: "bold" }, children));
|
956
956
|
};
|
957
957
|
var ContentLoader = ({ children, ...props }) => {
|
958
|
-
return /* @__PURE__ */
|
958
|
+
return /* @__PURE__ */ React71__default.createElement(Box, { ...props }, /* @__PURE__ */ React71__default.createElement(Box, { maxWidth: "140px", marginX: "auto" }, /* @__PURE__ */ React71__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React71__default.createElement(Lottie, { animationData: contentLoaderData }))), children && /* @__PURE__ */ React71__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__ */ React71__default.createElement(Center, { height: "100%", background: "darkTeal", ...props }, /* @__PURE__ */ React71__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React71__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React71__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__ */ React71__default.createElement(Center, { ...props }, /* @__PURE__ */ React71__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React71__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React71__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__ */ React71__default.createElement(Center, { flexDirection: "column", ...props }, /* @__PURE__ */ React71__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React71__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React71__default.createElement(Lottie, { animationData: spinnerData }))), children && /* @__PURE__ */ React71__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__ */ React71__default.createElement(Center, { height: "100%", background: "white", ...props }, /* @__PURE__ */ React71__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React71__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React71__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__ */ React71__default.createElement(Center, { ...props }, /* @__PURE__ */ React71__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React71__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React71__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__ */ React71__default.createElement(Center, { flexDirection: "column", ...props }, /* @__PURE__ */ React71__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React71__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React71__default.createElement(Lottie, { animationData: spinnerLightData }))), children && /* @__PURE__ */ React71__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__ */ React71__default.createElement(React71__default.Fragment, null, /* @__PURE__ */ React71__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__ */ React71__default.createElement(Box, { width, __css: styles3.background }, /* @__PURE__ */ React71__default.createElement(Box, { __css: styles3.progress, height, width: `${value}%` })),
|
1050
|
+
currentLoadingText && /* @__PURE__ */ React71__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__ */ React71__default.createElement(Box, { ...progressBarProps, minWidth: "100px", width, ...rest }, /* @__PURE__ */ React71__default.createElement(Box, { as: "svg", viewBox: "0 0 246 78", fill: "none" }, /* @__PURE__ */ React71__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__ */ React71__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__ */ React71__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__ */ React71__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__ */ React71__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__ */ React71__default.createElement(Skeleton$1, { ...props, ref }));
|
1146
|
+
var SkeletonCircle = (props) => /* @__PURE__ */ React71__default.createElement(SkeletonCircle$1, { boxSize: 6, borderRadius: "50%", ...props });
|
1147
|
+
var SkeletonText = (props) => /* @__PURE__ */ React71__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__ */ React71__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__ */ React71__default.createElement(Center, { position: "absolute", right: 0, left: 0, top: 1, bottom: 0 }, /* @__PURE__ */ React71__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__ */ React71__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__ */ React71__default.createElement(Flex, { gap: 1, alignItems: "center" }, leftIcon, /* @__PURE__ */ React71__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__ */ React71__default.createElement(ButtonGroup$1, { ...props, ref }));
|
1251
1251
|
var IconButton = forwardRef(
|
1252
|
-
({ ...props }, ref) => /* @__PURE__ */
|
1252
|
+
({ ...props }, ref) => /* @__PURE__ */ React71__default.createElement(
|
1253
1253
|
IconButton$1,
|
1254
1254
|
{
|
1255
1255
|
title: props["aria-label"],
|
1256
1256
|
...props,
|
1257
|
-
spinner: /* @__PURE__ */
|
1257
|
+
spinner: /* @__PURE__ */ React71__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__ */ React71__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__ */ React71__default.createElement(CloseFill18Icon, null);
|
1285
1285
|
case "md":
|
1286
|
-
return /* @__PURE__ */
|
1286
|
+
return /* @__PURE__ */ React71__default.createElement(CloseFill24Icon, null);
|
1287
1287
|
case "lg":
|
1288
|
-
return /* @__PURE__ */
|
1288
|
+
return /* @__PURE__ */ React71__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] = React71__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__ */ React71__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__ */ React71__default.createElement(Box, { __css: style.icon }, icon),
|
1341
|
+
/* @__PURE__ */ React71__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] = React71__default.useState(null);
|
1367
|
+
const lastScrollPosition = React71__default.useRef(
|
1368
1368
|
typeof window !== "undefined" ? window.scrollY : 0
|
1369
1369
|
);
|
1370
|
-
|
1370
|
+
React71__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__ */ React71__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__ */ React71__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__ */ React71__default.createElement(BaseAlert, { variant }, /* @__PURE__ */ React71__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__ */ React71__default.createElement(CloseFill18Icon, null),
|
1478
1478
|
"aria-label": t2(texts6.close),
|
1479
1479
|
sx: styles3.closeButton
|
1480
1480
|
}
|
1481
|
-
), /* @__PURE__ */
|
1481
|
+
), /* @__PURE__ */ React71__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__ */ React71__default.createElement(BaseAlert, { variant, ...boxProps, paddingX: 0, paddingY: 0 }, /* @__PURE__ */ React71__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__ */ React71__default.createElement(AccordionItem, null, /* @__PURE__ */ React71__default.createElement(AccordionButton, { sx: styles3.container }, /* @__PURE__ */ React71__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__ */ React71__default.createElement(Flex, { as: headingLevel, alignItems: "center" }, /* @__PURE__ */ React71__default.createElement(AlertIcon, { variant }), /* @__PURE__ */ React71__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__ */ React71__default.createElement(AccordionIcon, null)
|
1532
|
+
)), /* @__PURE__ */ React71__default.createElement(AccordionPanel, null, children))
|
1533
1533
|
));
|
1534
1534
|
};
|
1535
1535
|
var StaticAlert = ({ children, ...props }) => {
|
1536
|
-
return /* @__PURE__ */
|
1536
|
+
return /* @__PURE__ */ React71__default.createElement(BaseAlert, { ...props }, /* @__PURE__ */ React71__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__ */ React71__default.createElement(
|
1541
1541
|
Breadcrumb$1,
|
1542
1542
|
{
|
1543
|
-
separator: /* @__PURE__ */
|
1543
|
+
separator: /* @__PURE__ */ React71__default.createElement(DropdownRightFill18Icon, { color: iconColor }),
|
1544
1544
|
...props
|
1545
1545
|
}
|
1546
1546
|
);
|
@@ -1553,16 +1553,26 @@ var Card = forwardRef(
|
|
1553
1553
|
colorScheme,
|
1554
1554
|
size: size2
|
1555
1555
|
});
|
1556
|
-
return /* @__PURE__ */
|
1556
|
+
return /* @__PURE__ */ React71__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__ */
|
1561
|
+
return /* @__PURE__ */ React71__default.createElement(Box, { __css: styles3, ...props });
|
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);
|
1562
1572
|
};
|
1563
1573
|
var Badge = forwardRef(
|
1564
1574
|
({ icon, colorScheme = "grey", children, ...props }, ref) => {
|
1565
|
-
return /* @__PURE__ */
|
1575
|
+
return /* @__PURE__ */ React71__default.createElement(
|
1566
1576
|
Badge$1,
|
1567
1577
|
{
|
1568
1578
|
colorScheme,
|
@@ -1570,12 +1580,12 @@ var Badge = forwardRef(
|
|
1570
1580
|
paddingLeft: icon ? 1 : void 0,
|
1571
1581
|
ref
|
1572
1582
|
},
|
1573
|
-
icon &&
|
1583
|
+
icon && React71__default.cloneElement(icon, { marginRight: 1 }),
|
1574
1584
|
children
|
1575
1585
|
);
|
1576
1586
|
}
|
1577
1587
|
);
|
1578
|
-
var Code = forwardRef((props, ref) => /* @__PURE__ */
|
1588
|
+
var Code = forwardRef((props, ref) => /* @__PURE__ */ React71__default.createElement(Code$1, { ...props, ref }));
|
1579
1589
|
var Heading = ({
|
1580
1590
|
as,
|
1581
1591
|
variant = "xl-display",
|
@@ -1585,11 +1595,11 @@ var Heading = ({
|
|
1585
1595
|
}) => {
|
1586
1596
|
const id = externalId ?? (autoId && typeof props.children === "string") ? slugify(props.children) : void 0;
|
1587
1597
|
const color2 = useColorModeValue("text.primary.light", "text.primary.dark");
|
1588
|
-
return /* @__PURE__ */
|
1598
|
+
return /* @__PURE__ */ React71__default.createElement(Text, { as, textStyle: variant, id, color: color2, ...props });
|
1589
1599
|
};
|
1590
1600
|
var Text4 = forwardRef(
|
1591
1601
|
({ variant = "sm", ...props }, ref) => {
|
1592
|
-
return /* @__PURE__ */
|
1602
|
+
return /* @__PURE__ */ React71__default.createElement(Text, { ...props, textStyle: variant, ref });
|
1593
1603
|
}
|
1594
1604
|
);
|
1595
1605
|
function CalendarCell({
|
@@ -1632,7 +1642,7 @@ function CalendarCell({
|
|
1632
1642
|
{ passive: false, once: true }
|
1633
1643
|
);
|
1634
1644
|
}, []);
|
1635
|
-
return /* @__PURE__ */
|
1645
|
+
return /* @__PURE__ */ React71__default.createElement(
|
1636
1646
|
Box,
|
1637
1647
|
{
|
1638
1648
|
as: "td",
|
@@ -1655,7 +1665,7 @@ function CalendarCell({
|
|
1655
1665
|
}
|
1656
1666
|
}
|
1657
1667
|
},
|
1658
|
-
/* @__PURE__ */
|
1668
|
+
/* @__PURE__ */ React71__default.createElement(
|
1659
1669
|
Box,
|
1660
1670
|
{
|
1661
1671
|
as: "button",
|
@@ -1718,8 +1728,8 @@ function CalendarGrid({
|
|
1718
1728
|
const weeksInMonth = getWeeksInMonth(state2.visibleRange.start, locale);
|
1719
1729
|
const weeksInMonthRange = new Array(weeksInMonth).fill(0).map((_, i) => i);
|
1720
1730
|
const styles3 = useMultiStyleConfig("Datepicker", { variant });
|
1721
|
-
return /* @__PURE__ */
|
1722
|
-
return /* @__PURE__ */
|
1731
|
+
return /* @__PURE__ */ React71__default.createElement("table", { ...gridProps }, /* @__PURE__ */ React71__default.createElement("thead", { ...headerProps }, /* @__PURE__ */ React71__default.createElement("tr", null, weekDays[language].map((day, index) => {
|
1732
|
+
return /* @__PURE__ */ React71__default.createElement(
|
1723
1733
|
Text4,
|
1724
1734
|
{
|
1725
1735
|
as: "th",
|
@@ -1729,8 +1739,8 @@ function CalendarGrid({
|
|
1729
1739
|
},
|
1730
1740
|
day
|
1731
1741
|
);
|
1732
|
-
}))), /* @__PURE__ */
|
1733
|
-
(date, dayIndex) => date ? /* @__PURE__ */
|
1742
|
+
}))), /* @__PURE__ */ React71__default.createElement("tbody", null, weeksInMonthRange.map((weekIndex) => /* @__PURE__ */ React71__default.createElement("tr", { key: weekIndex }, state2.getDatesInWeek(weekIndex, startDate).map(
|
1743
|
+
(date, dayIndex) => date ? /* @__PURE__ */ React71__default.createElement(
|
1734
1744
|
CalendarCell,
|
1735
1745
|
{
|
1736
1746
|
variant,
|
@@ -1739,7 +1749,7 @@ function CalendarGrid({
|
|
1739
1749
|
date,
|
1740
1750
|
currentMonth: startDate
|
1741
1751
|
}
|
1742
|
-
) : /* @__PURE__ */
|
1752
|
+
) : /* @__PURE__ */ React71__default.createElement("td", { key: dayIndex })
|
1743
1753
|
)))));
|
1744
1754
|
}
|
1745
1755
|
function CalendarNavigationButton({
|
@@ -1749,7 +1759,7 @@ function CalendarNavigationButton({
|
|
1749
1759
|
}) {
|
1750
1760
|
const ref = useRef(null);
|
1751
1761
|
const { buttonProps } = useButton(rest, ref);
|
1752
|
-
return /* @__PURE__ */
|
1762
|
+
return /* @__PURE__ */ React71__default.createElement(
|
1753
1763
|
IconButton,
|
1754
1764
|
{
|
1755
1765
|
...buttonProps,
|
@@ -1783,7 +1793,7 @@ function CalendarHeader({
|
|
1783
1793
|
);
|
1784
1794
|
const areAllOtherYearsDisabled = isPreviousYearDisabled && isNextYearDisabled;
|
1785
1795
|
const isYearPickerVisible = showYearNavigation && !areAllOtherYearsDisabled;
|
1786
|
-
return /* @__PURE__ */
|
1796
|
+
return /* @__PURE__ */ React71__default.createElement(Flex, { alignItems: "center", paddingBottom: "4", justifyContent: "space-between" }, /* @__PURE__ */ React71__default.createElement(
|
1787
1797
|
CalendarNavigator,
|
1788
1798
|
{
|
1789
1799
|
title: title ? title : isYearPickerVisible ? monthTitle : monthAndYearTitle,
|
@@ -1793,7 +1803,7 @@ function CalendarHeader({
|
|
1793
1803
|
isNextDisabled: !state2.isPreviousVisibleRangeInvalid,
|
1794
1804
|
isPreviousDisabled: !state2.isNextVisibleRangeInvalid
|
1795
1805
|
}
|
1796
|
-
), isYearPickerVisible && /* @__PURE__ */
|
1806
|
+
), isYearPickerVisible && /* @__PURE__ */ React71__default.createElement(
|
1797
1807
|
CalendarNavigator,
|
1798
1808
|
{
|
1799
1809
|
title: jsDate.getFullYear().toString(),
|
@@ -1815,15 +1825,15 @@ var CalendarNavigator = ({
|
|
1815
1825
|
isNextDisabled
|
1816
1826
|
}) => {
|
1817
1827
|
const { t: t2 } = useTranslation();
|
1818
|
-
return /* @__PURE__ */
|
1828
|
+
return /* @__PURE__ */ React71__default.createElement(Flex, { alignItems: "center", flexGrow: 1 }, /* @__PURE__ */ React71__default.createElement(
|
1819
1829
|
CalendarNavigationButton,
|
1820
1830
|
{
|
1821
1831
|
onPress: onPrevious,
|
1822
1832
|
isDisabled: isPreviousDisabled,
|
1823
|
-
icon: /* @__PURE__ */
|
1833
|
+
icon: /* @__PURE__ */ React71__default.createElement(ArrowLeftOutline24Icon, null),
|
1824
1834
|
"aria-label": `${t2(texts7.previous)} ${t2(texts7[unit])}`
|
1825
1835
|
}
|
1826
|
-
), /* @__PURE__ */
|
1836
|
+
), /* @__PURE__ */ React71__default.createElement(
|
1827
1837
|
Heading,
|
1828
1838
|
{
|
1829
1839
|
as: "div",
|
@@ -1834,12 +1844,12 @@ var CalendarNavigator = ({
|
|
1834
1844
|
textAlign: "center"
|
1835
1845
|
},
|
1836
1846
|
capitalize(title)
|
1837
|
-
), /* @__PURE__ */
|
1847
|
+
), /* @__PURE__ */ React71__default.createElement(
|
1838
1848
|
CalendarNavigationButton,
|
1839
1849
|
{
|
1840
1850
|
onPress: onNext,
|
1841
1851
|
isDisabled: isNextDisabled,
|
1842
|
-
icon: /* @__PURE__ */
|
1852
|
+
icon: /* @__PURE__ */ React71__default.createElement(ArrowRightOutline24Icon, null),
|
1843
1853
|
"aria-label": `${t2(texts7.next)} ${t2(texts7[unit])}`
|
1844
1854
|
}
|
1845
1855
|
));
|
@@ -1887,7 +1897,7 @@ function Calendar({
|
|
1887
1897
|
const { calendarProps } = useCalendar(props, state2);
|
1888
1898
|
const calendarAriaLabel = calendarProps["aria-label"];
|
1889
1899
|
const ariaLabel = t2(texts8.calendar) + (calendarAriaLabel ? ` ${calendarAriaLabel}` : "");
|
1890
|
-
return /* @__PURE__ */
|
1900
|
+
return /* @__PURE__ */ React71__default.createElement(Box, { ...calendarProps, "aria-label": ariaLabel }, /* @__PURE__ */ React71__default.createElement(CalendarHeader, { state: state2, showYearNavigation }), /* @__PURE__ */ React71__default.createElement(CalendarGrid, { variant, state: state2 }));
|
1891
1901
|
}
|
1892
1902
|
var texts8 = createTexts({
|
1893
1903
|
calendar: {
|
@@ -1908,7 +1918,7 @@ var CalendarTriggerButton = forwardRef(
|
|
1908
1918
|
onPress(event);
|
1909
1919
|
}
|
1910
1920
|
};
|
1911
|
-
return /* @__PURE__ */
|
1921
|
+
return /* @__PURE__ */ React71__default.createElement(PopoverAnchor, null, /* @__PURE__ */ React71__default.createElement(
|
1912
1922
|
Box,
|
1913
1923
|
{
|
1914
1924
|
ref,
|
@@ -1919,7 +1929,7 @@ var CalendarTriggerButton = forwardRef(
|
|
1919
1929
|
...filteredButtonProps,
|
1920
1930
|
onKeyUp: handleOnPress
|
1921
1931
|
},
|
1922
|
-
/* @__PURE__ */
|
1932
|
+
/* @__PURE__ */ React71__default.createElement(CalendarOutline24Icon, null)
|
1923
1933
|
));
|
1924
1934
|
}
|
1925
1935
|
);
|
@@ -1944,7 +1954,7 @@ var DateTimeSegment = forwardRef$1(
|
|
1944
1954
|
isPlaceholder: segment.isPlaceholder,
|
1945
1955
|
isEditable: segment.isEditable
|
1946
1956
|
});
|
1947
|
-
return /* @__PURE__ */
|
1957
|
+
return /* @__PURE__ */ React71__default.createElement(
|
1948
1958
|
Box,
|
1949
1959
|
{
|
1950
1960
|
...segmentProps,
|
@@ -1995,7 +2005,7 @@ var DateField = forwardRef$1(
|
|
1995
2005
|
state2,
|
1996
2006
|
ref
|
1997
2007
|
);
|
1998
|
-
return /* @__PURE__ */
|
2008
|
+
return /* @__PURE__ */ React71__default.createElement(Box, { minWidth: "6rem", width: "100%" }, props.label && /* @__PURE__ */ React71__default.createElement(
|
1999
2009
|
FormLabel,
|
2000
2010
|
{
|
2001
2011
|
...props.labelProps,
|
@@ -2005,7 +2015,7 @@ var DateField = forwardRef$1(
|
|
2005
2015
|
paddingTop: "2px"
|
2006
2016
|
},
|
2007
2017
|
props.label
|
2008
|
-
), /* @__PURE__ */
|
2018
|
+
), /* @__PURE__ */ React71__default.createElement(Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5" }, state2.segments.map((segment, i) => /* @__PURE__ */ React71__default.createElement(DateTimeSegment, { key: i, segment, state: state2 }))), /* @__PURE__ */ React71__default.createElement(
|
2009
2019
|
"input",
|
2010
2020
|
{
|
2011
2021
|
type: "hidden",
|
@@ -2021,7 +2031,7 @@ var StyledField = forwardRef(
|
|
2021
2031
|
isInvalid: false
|
2022
2032
|
};
|
2023
2033
|
const styles3 = useMultiStyleConfig("Datepicker", { variant });
|
2024
|
-
return /* @__PURE__ */
|
2034
|
+
return /* @__PURE__ */ React71__default.createElement(
|
2025
2035
|
Box,
|
2026
2036
|
{
|
2027
2037
|
...otherProps,
|
@@ -2073,7 +2083,7 @@ var DatePicker = forwardRef$1(
|
|
2073
2083
|
const onFieldClick = () => {
|
2074
2084
|
state2.setOpen(true);
|
2075
2085
|
};
|
2076
|
-
const popoverContent = /* @__PURE__ */
|
2086
|
+
const popoverContent = /* @__PURE__ */ React71__default.createElement(PopoverContent, { color: "darkGrey", sx: styles3.calendarPopover }, /* @__PURE__ */ React71__default.createElement(PopoverArrow, { sx: styles3.arrow }), /* @__PURE__ */ React71__default.createElement(PopoverBody, null, /* @__PURE__ */ React71__default.createElement(FocusLock, null, /* @__PURE__ */ React71__default.createElement(
|
2077
2087
|
Calendar,
|
2078
2088
|
{
|
2079
2089
|
...calendarProps,
|
@@ -2081,7 +2091,7 @@ var DatePicker = forwardRef$1(
|
|
2081
2091
|
showYearNavigation
|
2082
2092
|
}
|
2083
2093
|
))));
|
2084
|
-
return /* @__PURE__ */
|
2094
|
+
return /* @__PURE__ */ React71__default.createElement(I18nProvider, { locale }, /* @__PURE__ */ React71__default.createElement(
|
2085
2095
|
Box,
|
2086
2096
|
{
|
2087
2097
|
position: "relative",
|
@@ -2089,7 +2099,7 @@ var DatePicker = forwardRef$1(
|
|
2089
2099
|
flexDirection: "column",
|
2090
2100
|
width
|
2091
2101
|
},
|
2092
|
-
/* @__PURE__ */
|
2102
|
+
/* @__PURE__ */ React71__default.createElement(
|
2093
2103
|
Popover,
|
2094
2104
|
{
|
2095
2105
|
...dialogProps,
|
@@ -2098,7 +2108,7 @@ var DatePicker = forwardRef$1(
|
|
2098
2108
|
onClose: state2.close,
|
2099
2109
|
flip: false
|
2100
2110
|
},
|
2101
|
-
/* @__PURE__ */
|
2111
|
+
/* @__PURE__ */ React71__default.createElement(InputGroup, { ...groupProps, display: "inline-flex" }, /* @__PURE__ */ React71__default.createElement(PopoverAnchor, null, /* @__PURE__ */ React71__default.createElement(
|
2102
2112
|
StyledField,
|
2103
2113
|
{
|
2104
2114
|
variant,
|
@@ -2106,7 +2116,7 @@ var DatePicker = forwardRef$1(
|
|
2106
2116
|
paddingX: 3,
|
2107
2117
|
minHeight
|
2108
2118
|
},
|
2109
|
-
/* @__PURE__ */
|
2119
|
+
/* @__PURE__ */ React71__default.createElement(PopoverTrigger, null, /* @__PURE__ */ React71__default.createElement(
|
2110
2120
|
CalendarTriggerButton,
|
2111
2121
|
{
|
2112
2122
|
variant,
|
@@ -2114,7 +2124,7 @@ var DatePicker = forwardRef$1(
|
|
2114
2124
|
...buttonProps
|
2115
2125
|
}
|
2116
2126
|
)),
|
2117
|
-
/* @__PURE__ */
|
2127
|
+
/* @__PURE__ */ React71__default.createElement(
|
2118
2128
|
DateField,
|
2119
2129
|
{
|
2120
2130
|
label: props.label,
|
@@ -2124,8 +2134,8 @@ var DatePicker = forwardRef$1(
|
|
2124
2134
|
}
|
2125
2135
|
)
|
2126
2136
|
))),
|
2127
|
-
/* @__PURE__ */
|
2128
|
-
state2.isOpen && !props.isDisabled && withPortal && /* @__PURE__ */
|
2137
|
+
/* @__PURE__ */ React71__default.createElement(FormErrorMessage, { ...errorMessageProps }, errorMessage),
|
2138
|
+
state2.isOpen && !props.isDisabled && withPortal && /* @__PURE__ */ React71__default.createElement(Portal, null, popoverContent),
|
2129
2139
|
state2.isOpen && !props.isDisabled && !withPortal && popoverContent
|
2130
2140
|
)
|
2131
2141
|
));
|
@@ -2141,7 +2151,7 @@ function RangeCalendar(props) {
|
|
2141
2151
|
});
|
2142
2152
|
const ref = useRef(null);
|
2143
2153
|
const { calendarProps, title } = useRangeCalendar(props, state2, ref);
|
2144
|
-
return /* @__PURE__ */
|
2154
|
+
return /* @__PURE__ */ React71__default.createElement(Box, { ...calendarProps, ref }, /* @__PURE__ */ React71__default.createElement(CalendarHeader, { state: state2, title }), /* @__PURE__ */ React71__default.createElement(Box, { display: "flex", gap: "8" }, /* @__PURE__ */ React71__default.createElement(CalendarGrid, { variant: props.variant, state: state2 }), /* @__PURE__ */ React71__default.createElement(
|
2145
2155
|
CalendarGrid,
|
2146
2156
|
{
|
2147
2157
|
variant: props.variant,
|
@@ -2188,8 +2198,8 @@ function DateRangePicker({
|
|
2188
2198
|
const onFieldClick = () => {
|
2189
2199
|
state2.setOpen(true);
|
2190
2200
|
};
|
2191
|
-
const popoverContent = /* @__PURE__ */
|
2192
|
-
return /* @__PURE__ */
|
2201
|
+
const popoverContent = /* @__PURE__ */ React71__default.createElement(PopoverContent, { sx: styles3.calendarPopover, maxWidth: "none" }, /* @__PURE__ */ React71__default.createElement(PopoverArrow, { sx: styles3.arrow }), /* @__PURE__ */ React71__default.createElement(PopoverBody, null, /* @__PURE__ */ React71__default.createElement(FocusLock, null, /* @__PURE__ */ React71__default.createElement(RangeCalendar, { variant: "base", ...calendarProps }))));
|
2202
|
+
return /* @__PURE__ */ React71__default.createElement(I18nProvider, { locale }, /* @__PURE__ */ React71__default.createElement(Box, { position: "relative", display: "inline-flex", flexDirection: "column" }, props.label && /* @__PURE__ */ React71__default.createElement(FormLabel, { ...labelProps, sx: styles3.inputLabel }, props.label), /* @__PURE__ */ React71__default.createElement(
|
2193
2203
|
Popover,
|
2194
2204
|
{
|
2195
2205
|
...dialogProps,
|
@@ -2198,7 +2208,7 @@ function DateRangePicker({
|
|
2198
2208
|
onClose: state2.close,
|
2199
2209
|
flip: false
|
2200
2210
|
},
|
2201
|
-
/* @__PURE__ */
|
2211
|
+
/* @__PURE__ */ React71__default.createElement(InputGroup, { ...groupProps, width: "auto", display: "inline-flex" }, /* @__PURE__ */ React71__default.createElement(PopoverAnchor, null, /* @__PURE__ */ React71__default.createElement(
|
2202
2212
|
StyledField,
|
2203
2213
|
{
|
2204
2214
|
alignItems: "center",
|
@@ -2208,7 +2218,7 @@ function DateRangePicker({
|
|
2208
2218
|
onKeyPress: handleEnterClick,
|
2209
2219
|
minHeight
|
2210
2220
|
},
|
2211
|
-
variant && /* @__PURE__ */
|
2221
|
+
variant && /* @__PURE__ */ React71__default.createElement(PopoverTrigger, null, /* @__PURE__ */ React71__default.createElement(
|
2212
2222
|
CalendarTriggerButton,
|
2213
2223
|
{
|
2214
2224
|
paddingLeft: 1,
|
@@ -2218,7 +2228,7 @@ function DateRangePicker({
|
|
2218
2228
|
...buttonProps
|
2219
2229
|
}
|
2220
2230
|
)),
|
2221
|
-
/* @__PURE__ */
|
2231
|
+
/* @__PURE__ */ React71__default.createElement(
|
2222
2232
|
DateField,
|
2223
2233
|
{
|
2224
2234
|
...startFieldProps,
|
@@ -2227,8 +2237,8 @@ function DateRangePicker({
|
|
2227
2237
|
labelProps
|
2228
2238
|
}
|
2229
2239
|
),
|
2230
|
-
/* @__PURE__ */
|
2231
|
-
/* @__PURE__ */
|
2240
|
+
/* @__PURE__ */ React71__default.createElement(Box, { as: "span", "aria-hidden": "true", paddingRight: "2" }, "\u2013"),
|
2241
|
+
/* @__PURE__ */ React71__default.createElement(
|
2232
2242
|
DateField,
|
2233
2243
|
{
|
2234
2244
|
...endFieldProps,
|
@@ -2238,14 +2248,14 @@ function DateRangePicker({
|
|
2238
2248
|
}
|
2239
2249
|
)
|
2240
2250
|
))),
|
2241
|
-
state2.isOpen && withPortal && /* @__PURE__ */
|
2251
|
+
state2.isOpen && withPortal && /* @__PURE__ */ React71__default.createElement(Portal, null, popoverContent),
|
2242
2252
|
state2.isOpen && !withPortal && popoverContent
|
2243
2253
|
)));
|
2244
2254
|
}
|
2245
2255
|
var TimeField = ({ state: state2, ...props }) => {
|
2246
2256
|
const ref = useRef(null);
|
2247
2257
|
const { labelProps, fieldProps } = useTimeField(props, state2, ref);
|
2248
|
-
return /* @__PURE__ */
|
2258
|
+
return /* @__PURE__ */ React71__default.createElement(Box, null, /* @__PURE__ */ React71__default.createElement(
|
2249
2259
|
FormLabel3,
|
2250
2260
|
{
|
2251
2261
|
...labelProps,
|
@@ -2257,7 +2267,7 @@ var TimeField = ({ state: state2, ...props }) => {
|
|
2257
2267
|
paddingTop: "2px"
|
2258
2268
|
},
|
2259
2269
|
props.label
|
2260
|
-
), /* @__PURE__ */
|
2270
|
+
), /* @__PURE__ */ React71__default.createElement(Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5" }, state2.segments.map((segment) => /* @__PURE__ */ React71__default.createElement(DateTimeSegment, { key: segment.type, segment, state: state2 }))), /* @__PURE__ */ React71__default.createElement(
|
2261
2271
|
"input",
|
2262
2272
|
{
|
2263
2273
|
type: "hidden",
|
@@ -2326,7 +2336,7 @@ var TimePicker = ({
|
|
2326
2336
|
const ariaLabel = `${inputLabel} \u2013 ${t2(
|
2327
2337
|
texts10.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
|
2328
2338
|
)}`;
|
2329
|
-
return /* @__PURE__ */
|
2339
|
+
return /* @__PURE__ */ React71__default.createElement(
|
2330
2340
|
StyledField,
|
2331
2341
|
{
|
2332
2342
|
variant: "base",
|
@@ -2342,7 +2352,7 @@ var TimePicker = ({
|
|
2342
2352
|
"aria-label": ariaLabel,
|
2343
2353
|
...boxProps
|
2344
2354
|
},
|
2345
|
-
/* @__PURE__ */
|
2355
|
+
/* @__PURE__ */ React71__default.createElement(
|
2346
2356
|
IconButton,
|
2347
2357
|
{
|
2348
2358
|
variant: "ghost",
|
@@ -2350,14 +2360,14 @@ var TimePicker = ({
|
|
2350
2360
|
borderRadius: "xs",
|
2351
2361
|
"aria-label": backwardsLabel,
|
2352
2362
|
title: backwardsLabel,
|
2353
|
-
icon: /* @__PURE__ */
|
2363
|
+
icon: /* @__PURE__ */ React71__default.createElement(DropdownLeftFill18Icon, null),
|
2354
2364
|
onClick: handleBackwardsClick,
|
2355
2365
|
isDisabled,
|
2356
2366
|
style: isDisabled ? { backgroundColor: "transparent" } : {}
|
2357
2367
|
}
|
2358
2368
|
),
|
2359
|
-
/* @__PURE__ */
|
2360
|
-
/* @__PURE__ */
|
2369
|
+
/* @__PURE__ */ React71__default.createElement(TimeField, { label, state: state2, name }),
|
2370
|
+
/* @__PURE__ */ React71__default.createElement(
|
2361
2371
|
IconButton,
|
2362
2372
|
{
|
2363
2373
|
variant: "ghost",
|
@@ -2365,7 +2375,7 @@ var TimePicker = ({
|
|
2365
2375
|
borderRadius: "xs",
|
2366
2376
|
"aria-label": forwardsLabel,
|
2367
2377
|
title: forwardsLabel,
|
2368
|
-
icon: /* @__PURE__ */
|
2378
|
+
icon: /* @__PURE__ */ React71__default.createElement(DropdownRightFill18Icon, null),
|
2369
2379
|
onClick: handleForwardClick,
|
2370
2380
|
isDisabled,
|
2371
2381
|
style: isDisabled ? { backgroundColor: "transparent" } : {}
|
@@ -2434,7 +2444,7 @@ var AttachedInputs = ({
|
|
2434
2444
|
}
|
2435
2445
|
};
|
2436
2446
|
const direction2 = flexDirection === "row" ? "horizontal" : "vertical";
|
2437
|
-
return /* @__PURE__ */
|
2447
|
+
return /* @__PURE__ */ React71__default.createElement(
|
2438
2448
|
Flex,
|
2439
2449
|
{
|
2440
2450
|
role: "group",
|
@@ -2448,7 +2458,7 @@ var AttachedInputs = ({
|
|
2448
2458
|
var Dialog = ({ title, children, ...props }) => {
|
2449
2459
|
const ref = useRef(null);
|
2450
2460
|
const { dialogProps, titleProps } = useDialog(props, ref);
|
2451
|
-
return /* @__PURE__ */
|
2461
|
+
return /* @__PURE__ */ React71__default.createElement(Box, { ...dialogProps, ref, outline: "none" }, title && /* @__PURE__ */ React71__default.createElement(Heading$1, { as: "h3", ...titleProps }, title), children);
|
2452
2462
|
};
|
2453
2463
|
var Popover3 = forwardRef$1(
|
2454
2464
|
({
|
@@ -2479,21 +2489,21 @@ var Popover3 = forwardRef$1(
|
|
2479
2489
|
},
|
2480
2490
|
state2
|
2481
2491
|
);
|
2482
|
-
const popoverBox = /* @__PURE__ */
|
2492
|
+
const popoverBox = /* @__PURE__ */ React71__default.createElement(
|
2483
2493
|
Box,
|
2484
2494
|
{
|
2485
2495
|
...popoverProps,
|
2486
2496
|
ref: popoverRef,
|
2487
2497
|
minWidth: ((_a6 = triggerRef.current) == null ? void 0 : _a6.clientWidth) ?? "auto"
|
2488
2498
|
},
|
2489
|
-
/* @__PURE__ */
|
2499
|
+
/* @__PURE__ */ React71__default.createElement(DismissButton, { onDismiss: state2.close }),
|
2490
2500
|
children,
|
2491
|
-
/* @__PURE__ */
|
2501
|
+
/* @__PURE__ */ React71__default.createElement(DismissButton, { onDismiss: state2.close })
|
2492
2502
|
);
|
2493
2503
|
if (isNonModal) {
|
2494
2504
|
return popoverBox;
|
2495
2505
|
}
|
2496
|
-
return /* @__PURE__ */
|
2506
|
+
return /* @__PURE__ */ React71__default.createElement(Overlay, null, hasBackdrop && /* @__PURE__ */ React71__default.createElement(Box, { ...underlayProps, position: "fixed", inset: "0" }), popoverBox);
|
2497
2507
|
}
|
2498
2508
|
);
|
2499
2509
|
|
@@ -2534,7 +2544,7 @@ var CardSelect = forwardRef(
|
|
2534
2544
|
});
|
2535
2545
|
useForceRerender(state2.isOpen);
|
2536
2546
|
const ChevronIcon = size2 === "sm" ? DropdownDownFill18Icon : DropdownDownFill24Icon;
|
2537
|
-
return /* @__PURE__ */
|
2547
|
+
return /* @__PURE__ */ React71__default.createElement(Box, { ...props }, /* @__PURE__ */ React71__default.createElement(
|
2538
2548
|
chakra.button,
|
2539
2549
|
{
|
2540
2550
|
type: "button",
|
@@ -2546,13 +2556,13 @@ var CardSelect = forwardRef(
|
|
2546
2556
|
width,
|
2547
2557
|
"data-attachable": true
|
2548
2558
|
},
|
2549
|
-
/* @__PURE__ */
|
2559
|
+
/* @__PURE__ */ React71__default.createElement(Flex, { gap: 1.5, alignItems: "center" }, icon, /* @__PURE__ */ React71__default.createElement(Box, { as: "span", display: props["aria-label"] ? "none" : "inline" }, label), withChevron ? /* @__PURE__ */ React71__default.createElement(
|
2550
2560
|
ChevronIcon,
|
2551
2561
|
{
|
2552
2562
|
transform: state2.isOpen ? "rotate(180deg)" : "none"
|
2553
2563
|
}
|
2554
2564
|
) : null)
|
2555
|
-
), state2.isOpen && /* @__PURE__ */
|
2565
|
+
), state2.isOpen && /* @__PURE__ */ React71__default.createElement(
|
2556
2566
|
Popover3,
|
2557
2567
|
{
|
2558
2568
|
state: state2,
|
@@ -2561,7 +2571,7 @@ var CardSelect = forwardRef(
|
|
2561
2571
|
crossOffset,
|
2562
2572
|
placement
|
2563
2573
|
},
|
2564
|
-
/* @__PURE__ */
|
2574
|
+
/* @__PURE__ */ React71__default.createElement(
|
2565
2575
|
Card,
|
2566
2576
|
{
|
2567
2577
|
colorScheme: "white",
|
@@ -2569,7 +2579,7 @@ var CardSelect = forwardRef(
|
|
2569
2579
|
sx: styles3.card,
|
2570
2580
|
...overlayProps
|
2571
2581
|
},
|
2572
|
-
/* @__PURE__ */
|
2582
|
+
/* @__PURE__ */ React71__default.createElement(Dialog, { "aria-label": label }, children)
|
2573
2583
|
)
|
2574
2584
|
));
|
2575
2585
|
}
|
@@ -2583,14 +2593,14 @@ function useForceRerender(shouldRerender) {
|
|
2583
2593
|
}, [shouldRerender]);
|
2584
2594
|
}
|
2585
2595
|
var Checkbox = forwardRef((props, ref) => {
|
2586
|
-
return /* @__PURE__ */
|
2596
|
+
return /* @__PURE__ */ React71__default.createElement(Checkbox$1, { ...props, ref });
|
2587
2597
|
});
|
2588
2598
|
var CheckboxGroup = ({
|
2589
2599
|
direction: direction2 = "row",
|
2590
2600
|
children,
|
2591
2601
|
...props
|
2592
2602
|
}) => {
|
2593
|
-
return /* @__PURE__ */
|
2603
|
+
return /* @__PURE__ */ React71__default.createElement(CheckboxGroup$1, { ...props }, /* @__PURE__ */ React71__default.createElement(Stack$1, { direction: direction2 }, children));
|
2594
2604
|
};
|
2595
2605
|
|
2596
2606
|
// ../../node_modules/@chakra-ui/utils/dist/chunk-O3SWHQEE.mjs
|
@@ -2619,15 +2629,15 @@ var ChoiceChip = forwardRef((props, ref) => {
|
|
2619
2629
|
hasLabel: Boolean(children)
|
2620
2630
|
});
|
2621
2631
|
const id = `choice-chip-${useId()}`;
|
2622
|
-
return /* @__PURE__ */
|
2632
|
+
return /* @__PURE__ */ React71__default.createElement(
|
2623
2633
|
chakra.label,
|
2624
2634
|
{
|
2625
2635
|
htmlFor: id,
|
2626
2636
|
...getRootProps(),
|
2627
2637
|
"aria-label": String(children)
|
2628
2638
|
},
|
2629
|
-
/* @__PURE__ */
|
2630
|
-
/* @__PURE__ */
|
2639
|
+
/* @__PURE__ */ React71__default.createElement(chakra.input, { ...getInputProps({}, ref), id, disabled: isDisabled }),
|
2640
|
+
/* @__PURE__ */ React71__default.createElement(
|
2631
2641
|
chakra.div,
|
2632
2642
|
{
|
2633
2643
|
...getLabelProps(),
|
@@ -2638,9 +2648,9 @@ var ChoiceChip = forwardRef((props, ref) => {
|
|
2638
2648
|
"data-active": dataAttr(state2.isActive),
|
2639
2649
|
"data-disabled": dataAttr(state2.isDisabled)
|
2640
2650
|
},
|
2641
|
-
icon && /* @__PURE__ */
|
2642
|
-
/* @__PURE__ */
|
2643
|
-
chipType === "filter" && state2.isChecked && /* @__PURE__ */
|
2651
|
+
icon && /* @__PURE__ */ React71__default.createElement(chakra.span, { __css: styles3.icon }, state2.isChecked ? icon.checked : icon.default),
|
2652
|
+
/* @__PURE__ */ React71__default.createElement(chakra.span, { __css: styles3.label, ...getCheckboxProps() }, chipType !== "icon" && children),
|
2653
|
+
chipType === "filter" && state2.isChecked && /* @__PURE__ */ React71__default.createElement(CloseOutline24Icon, { marginLeft: 1.5 })
|
2644
2654
|
)
|
2645
2655
|
);
|
2646
2656
|
});
|
@@ -2712,7 +2722,7 @@ function Combobox({
|
|
2712
2722
|
},
|
2713
2723
|
state2
|
2714
2724
|
);
|
2715
|
-
return /* @__PURE__ */
|
2725
|
+
return /* @__PURE__ */ React71__default.createElement(React71__default.Fragment, null, /* @__PURE__ */ React71__default.createElement(
|
2716
2726
|
Input,
|
2717
2727
|
{
|
2718
2728
|
...styleProps(comboBoxProps),
|
@@ -2722,7 +2732,7 @@ function Combobox({
|
|
2722
2732
|
borderBottomLeftRadius: state2.isOpen && !isLoading ? 0 : borderBottomLeftRadius,
|
2723
2733
|
borderBottomRightRadius: state2.isOpen && !isLoading ? 0 : borderBottomRightRadius,
|
2724
2734
|
...inputProps,
|
2725
|
-
rightIcon: isLoading ? /* @__PURE__ */
|
2735
|
+
rightIcon: isLoading ? /* @__PURE__ */ React71__default.createElement(
|
2726
2736
|
ColorSpinner,
|
2727
2737
|
{
|
2728
2738
|
width: "1.5rem",
|
@@ -2737,7 +2747,7 @@ function Combobox({
|
|
2737
2747
|
}
|
2738
2748
|
) : rightIcon
|
2739
2749
|
}
|
2740
|
-
), state2.isOpen && !isLoading && /* @__PURE__ */
|
2750
|
+
), state2.isOpen && !isLoading && /* @__PURE__ */ React71__default.createElement(
|
2741
2751
|
Popover3,
|
2742
2752
|
{
|
2743
2753
|
state: state2,
|
@@ -2749,7 +2759,7 @@ function Combobox({
|
|
2749
2759
|
hasBackdrop: false,
|
2750
2760
|
containerPadding: 0
|
2751
2761
|
},
|
2752
|
-
/* @__PURE__ */
|
2762
|
+
/* @__PURE__ */ React71__default.createElement(
|
2753
2763
|
ListBox,
|
2754
2764
|
{
|
2755
2765
|
...listBoxProps,
|
@@ -2791,7 +2801,7 @@ var debounce = (fn, ms = 100) => {
|
|
2791
2801
|
};
|
2792
2802
|
};
|
2793
2803
|
var FormControl = forwardRef((props, ref) => {
|
2794
|
-
return /* @__PURE__ */
|
2804
|
+
return /* @__PURE__ */ React71__default.createElement(FormControl$1, { ...props, ref });
|
2795
2805
|
});
|
2796
2806
|
var FormErrorMessage = ({
|
2797
2807
|
children,
|
@@ -2807,7 +2817,7 @@ var FormErrorMessage = ({
|
|
2807
2817
|
return null;
|
2808
2818
|
}
|
2809
2819
|
const { ref, ...errorMessageProps } = formControlContext.getErrorMessageProps();
|
2810
|
-
return /* @__PURE__ */
|
2820
|
+
return /* @__PURE__ */ React71__default.createElement(Box, { position: "relative", ref }, /* @__PURE__ */ React71__default.createElement(
|
2811
2821
|
Box,
|
2812
2822
|
{
|
2813
2823
|
borderRadius: "xs",
|
@@ -2825,12 +2835,12 @@ var FormErrorMessage = ({
|
|
2825
2835
|
...errorMessageProps,
|
2826
2836
|
...boxProps
|
2827
2837
|
},
|
2828
|
-
/* @__PURE__ */
|
2838
|
+
/* @__PURE__ */ React71__default.createElement(Arrow, { position: "absolute", top: "-0.25em", left: "1em" }),
|
2829
2839
|
children
|
2830
2840
|
));
|
2831
2841
|
};
|
2832
2842
|
var Arrow = (props) => {
|
2833
|
-
return /* @__PURE__ */
|
2843
|
+
return /* @__PURE__ */ React71__default.createElement(
|
2834
2844
|
Box,
|
2835
2845
|
{
|
2836
2846
|
...props,
|
@@ -2841,7 +2851,7 @@ var Arrow = (props) => {
|
|
2841
2851
|
fill: "none",
|
2842
2852
|
transform: "rotate(45deg)"
|
2843
2853
|
},
|
2844
|
-
/* @__PURE__ */
|
2854
|
+
/* @__PURE__ */ React71__default.createElement(
|
2845
2855
|
Box,
|
2846
2856
|
{
|
2847
2857
|
as: "path",
|
@@ -2852,7 +2862,7 @@ var Arrow = (props) => {
|
|
2852
2862
|
);
|
2853
2863
|
};
|
2854
2864
|
var FormLabel3 = forwardRef((props, ref) => {
|
2855
|
-
return /* @__PURE__ */
|
2865
|
+
return /* @__PURE__ */ React71__default.createElement(FormLabel, { ...props, ref });
|
2856
2866
|
});
|
2857
2867
|
function ListBox({
|
2858
2868
|
isLoading,
|
@@ -2863,7 +2873,7 @@ function ListBox({
|
|
2863
2873
|
}) {
|
2864
2874
|
const { listBoxProps } = useListBox(props, state2, listBoxRef);
|
2865
2875
|
const styles3 = useMultiStyleConfig("ListBox", {});
|
2866
|
-
return /* @__PURE__ */
|
2876
|
+
return /* @__PURE__ */ React71__default.createElement(
|
2867
2877
|
List,
|
2868
2878
|
{
|
2869
2879
|
...listBoxProps,
|
@@ -2874,19 +2884,19 @@ function ListBox({
|
|
2874
2884
|
},
|
2875
2885
|
state2.collection.size === 0 && props.emptyContent,
|
2876
2886
|
Array.from(state2.collection).map(
|
2877
|
-
(item) => item.type === "section" ? /* @__PURE__ */
|
2887
|
+
(item) => item.type === "section" ? /* @__PURE__ */ React71__default.createElement(ListBoxSection, { key: item.key, section: item, state: state2 }) : /* @__PURE__ */ React71__default.createElement(Option, { key: item.key, item, state: state2 })
|
2878
2888
|
)
|
2879
2889
|
);
|
2880
2890
|
}
|
2881
2891
|
function ItemLabel({ children }) {
|
2882
2892
|
let { labelProps } = useOptionContext();
|
2883
2893
|
const styles3 = useMultiStyleConfig("ListBox", {});
|
2884
|
-
return /* @__PURE__ */
|
2894
|
+
return /* @__PURE__ */ React71__default.createElement(Box, { ...labelProps, sx: styles3.label }, children);
|
2885
2895
|
}
|
2886
2896
|
function ItemDescription({ children }) {
|
2887
2897
|
let { descriptionProps } = useOptionContext();
|
2888
2898
|
const styles3 = useMultiStyleConfig("ListBox", {});
|
2889
|
-
return /* @__PURE__ */
|
2899
|
+
return /* @__PURE__ */ React71__default.createElement(Box, { ...descriptionProps, sx: styles3.description }, children);
|
2890
2900
|
}
|
2891
2901
|
function Option({ item, state: state2 }) {
|
2892
2902
|
const ref = useRef(null);
|
@@ -2919,9 +2929,9 @@ function Option({ item, state: state2 }) {
|
|
2919
2929
|
{ passive: false, once: true }
|
2920
2930
|
);
|
2921
2931
|
}, []);
|
2922
|
-
return /* @__PURE__ */
|
2932
|
+
return /* @__PURE__ */ React71__default.createElement(OptionContext.Provider, { value: { labelProps, descriptionProps } }, /* @__PURE__ */ React71__default.createElement(ListItem, { ...optionProps, ...dataFields, ref, sx: styles3.item }, item.rendered));
|
2923
2933
|
}
|
2924
|
-
var OptionContext =
|
2934
|
+
var OptionContext = React71__default.createContext({
|
2925
2935
|
labelProps: {},
|
2926
2936
|
descriptionProps: {}
|
2927
2937
|
});
|
@@ -2935,7 +2945,7 @@ function ListBoxSection({ section, state: state2 }) {
|
|
2935
2945
|
});
|
2936
2946
|
const isFirstSection = section.key === state2.collection.getFirstKey();
|
2937
2947
|
const titleColor = useColorModeValue("darkGrey", "white");
|
2938
|
-
return /* @__PURE__ */
|
2948
|
+
return /* @__PURE__ */ React71__default.createElement(ListItem, { ...itemProps }, section.rendered && /* @__PURE__ */ React71__default.createElement(
|
2939
2949
|
Box,
|
2940
2950
|
{
|
2941
2951
|
fontSize: "mobile.xs",
|
@@ -2948,8 +2958,8 @@ function ListBoxSection({ section, state: state2 }) {
|
|
2948
2958
|
...headingProps
|
2949
2959
|
},
|
2950
2960
|
section.rendered
|
2951
|
-
), /* @__PURE__ */
|
2952
|
-
(item) => /* @__PURE__ */
|
2961
|
+
), /* @__PURE__ */ React71__default.createElement(List, { ...groupProps, padding: 0, listStyleType: "none" }, Array.from(state2.collection.getChildren(section.key)).map(
|
2962
|
+
(item) => /* @__PURE__ */ React71__default.createElement(Option, { key: item.key, item, state: state2 })
|
2953
2963
|
)));
|
2954
2964
|
}
|
2955
2965
|
|
@@ -2989,7 +2999,7 @@ function InfoSelect({
|
|
2989
2999
|
const { buttonProps } = useButton(triggerProps, triggerRef);
|
2990
3000
|
const { t: t2 } = useTranslation();
|
2991
3001
|
const formControl = useFormControlProps(props);
|
2992
|
-
return /* @__PURE__ */
|
3002
|
+
return /* @__PURE__ */ React71__default.createElement(Box, { sx: styles3.container }, /* @__PURE__ */ React71__default.createElement(chakra.div, { ...labelProps, sx: styles3.label }, props.label), /* @__PURE__ */ React71__default.createElement(
|
2993
3003
|
HiddenSelect,
|
2994
3004
|
{
|
2995
3005
|
state: state2,
|
@@ -2997,7 +3007,7 @@ function InfoSelect({
|
|
2997
3007
|
label: props.label,
|
2998
3008
|
name: props.name
|
2999
3009
|
}
|
3000
|
-
), /* @__PURE__ */
|
3010
|
+
), /* @__PURE__ */ React71__default.createElement(
|
3001
3011
|
chakra.button,
|
3002
3012
|
{
|
3003
3013
|
type: "button",
|
@@ -3010,16 +3020,16 @@ function InfoSelect({
|
|
3010
3020
|
"aria-invalid": formControl.isInvalid,
|
3011
3021
|
"aria-describedby": formControl["aria-describedby"]
|
3012
3022
|
},
|
3013
|
-
/* @__PURE__ */
|
3014
|
-
/* @__PURE__ */
|
3015
|
-
), state2.isOpen && /* @__PURE__ */
|
3023
|
+
/* @__PURE__ */ React71__default.createElement(Box, { ...valueProps }, state2.selectedItem ? state2.selectedItem.textValue ?? state2.selectedItem.rendered : placeholder ?? t2(texts11.selectAnOption)),
|
3024
|
+
/* @__PURE__ */ React71__default.createElement(Box, { sx: styles3.arrowIcon }, state2.isOpen ? /* @__PURE__ */ React71__default.createElement(DropdownUpFill24Icon, null) : /* @__PURE__ */ React71__default.createElement(DropdownDownFill24Icon, null))
|
3025
|
+
), state2.isOpen && /* @__PURE__ */ React71__default.createElement(
|
3016
3026
|
Popover3,
|
3017
3027
|
{
|
3018
3028
|
state: state2,
|
3019
3029
|
triggerRef,
|
3020
3030
|
containerPadding: 0
|
3021
3031
|
},
|
3022
|
-
/* @__PURE__ */
|
3032
|
+
/* @__PURE__ */ React71__default.createElement(
|
3023
3033
|
ListBox,
|
3024
3034
|
{
|
3025
3035
|
...menuProps,
|
@@ -3044,7 +3054,7 @@ var Input = forwardRef(
|
|
3044
3054
|
const formControlProps = useFormControlContext();
|
3045
3055
|
const fallbackId = `input-${useId()}`;
|
3046
3056
|
const inputId = id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? fallbackId;
|
3047
|
-
return /* @__PURE__ */
|
3057
|
+
return /* @__PURE__ */ React71__default.createElement(InputGroup, { position: "relative" }, leftIcon && /* @__PURE__ */ React71__default.createElement(InputLeftElement, { pointerEvents: "none" }, leftIcon), /* @__PURE__ */ React71__default.createElement(
|
3048
3058
|
Input$1,
|
3049
3059
|
{
|
3050
3060
|
"data-attachable": true,
|
@@ -3055,19 +3065,19 @@ var Input = forwardRef(
|
|
3055
3065
|
ref,
|
3056
3066
|
placeholder: " "
|
3057
3067
|
}
|
3058
|
-
), /* @__PURE__ */
|
3068
|
+
), /* @__PURE__ */ React71__default.createElement(FormLabel, { htmlFor: inputId }, label), rightIcon && /* @__PURE__ */ React71__default.createElement(InputRightElement, { pointerEvents: "none" }, rightIcon));
|
3059
3069
|
}
|
3060
3070
|
);
|
3061
3071
|
var InputLeftElement2 = forwardRef(
|
3062
|
-
(props, ref) => /* @__PURE__ */
|
3072
|
+
(props, ref) => /* @__PURE__ */ React71__default.createElement(InputLeftElement, { ...props, ref })
|
3063
3073
|
);
|
3064
3074
|
var InputRightElement2 = forwardRef(
|
3065
|
-
(props, ref) => /* @__PURE__ */
|
3075
|
+
(props, ref) => /* @__PURE__ */ React71__default.createElement(InputRightElement, { ...props, ref })
|
3066
3076
|
);
|
3067
3077
|
var NativeSelect = forwardRef(
|
3068
3078
|
({ label, ...props }, ref) => {
|
3069
3079
|
const styles3 = useMultiStyleConfig("Select", props);
|
3070
|
-
return /* @__PURE__ */
|
3080
|
+
return /* @__PURE__ */ React71__default.createElement(FormControl, null, /* @__PURE__ */ React71__default.createElement(
|
3071
3081
|
Select,
|
3072
3082
|
{
|
3073
3083
|
"data-attachable": true,
|
@@ -3075,7 +3085,7 @@ var NativeSelect = forwardRef(
|
|
3075
3085
|
rootProps: { __css: styles3.root },
|
3076
3086
|
ref
|
3077
3087
|
}
|
3078
|
-
), label && /* @__PURE__ */
|
3088
|
+
), label && /* @__PURE__ */ React71__default.createElement(FormLabel3, null, label));
|
3079
3089
|
}
|
3080
3090
|
);
|
3081
3091
|
function NumericStepper({
|
@@ -3101,17 +3111,17 @@ function NumericStepper({
|
|
3101
3111
|
});
|
3102
3112
|
const formControlProps = useFormControl({ id: idProp, isDisabled });
|
3103
3113
|
const clampedStepSize = Math.max(Math.min(stepSize, 10), 1);
|
3104
|
-
return /* @__PURE__ */
|
3114
|
+
return /* @__PURE__ */ React71__default.createElement(Flex, { __css: styles3.container, ...boxProps }, /* @__PURE__ */ React71__default.createElement(
|
3105
3115
|
VerySmallButton,
|
3106
3116
|
{
|
3107
|
-
icon: /* @__PURE__ */
|
3117
|
+
icon: /* @__PURE__ */ React71__default.createElement(SubtractIcon, { stepLabel: clampedStepSize }),
|
3108
3118
|
"aria-label": t2(texts12.decrementButtonAriaLabel(clampedStepSize)),
|
3109
3119
|
onClick: () => onChange(Math.max(value - clampedStepSize, minValue)),
|
3110
3120
|
visibility: value <= minValue ? "hidden" : "visible",
|
3111
3121
|
isDisabled: formControlProps.disabled,
|
3112
3122
|
id: value <= minValue ? void 0 : formControlProps.id
|
3113
3123
|
}
|
3114
|
-
), withInput ? /* @__PURE__ */
|
3124
|
+
), withInput ? /* @__PURE__ */ React71__default.createElement(
|
3115
3125
|
chakra.input,
|
3116
3126
|
{
|
3117
3127
|
type: "number",
|
@@ -3134,7 +3144,7 @@ function NumericStepper({
|
|
3134
3144
|
onChange(Math.max(Math.min(numericInput, maxValue), minValue));
|
3135
3145
|
}
|
3136
3146
|
}
|
3137
|
-
) : /* @__PURE__ */
|
3147
|
+
) : /* @__PURE__ */ React71__default.createElement(
|
3138
3148
|
chakra.text,
|
3139
3149
|
{
|
3140
3150
|
sx: styles3.text,
|
@@ -3142,10 +3152,10 @@ function NumericStepper({
|
|
3142
3152
|
"aria-label": value.toString()
|
3143
3153
|
},
|
3144
3154
|
value
|
3145
|
-
), /* @__PURE__ */
|
3155
|
+
), /* @__PURE__ */ React71__default.createElement(
|
3146
3156
|
VerySmallButton,
|
3147
3157
|
{
|
3148
|
-
icon: /* @__PURE__ */
|
3158
|
+
icon: /* @__PURE__ */ React71__default.createElement(AddIcon, { stepLabel: clampedStepSize }),
|
3149
3159
|
"aria-label": t2(texts12.incrementButtonAriaLabel(clampedStepSize)),
|
3150
3160
|
onClick: () => onChange(Math.min(value + clampedStepSize, maxValue)),
|
3151
3161
|
visibility: value >= maxValue ? "hidden" : "visible",
|
@@ -3156,9 +3166,9 @@ function NumericStepper({
|
|
3156
3166
|
}
|
3157
3167
|
var VerySmallButton = (props) => {
|
3158
3168
|
const styles3 = useMultiStyleConfig("NumericStepper", {});
|
3159
|
-
return /* @__PURE__ */
|
3169
|
+
return /* @__PURE__ */ React71__default.createElement(IconButton, { variant: "primary", size: "xs", sx: styles3.button, ...props });
|
3160
3170
|
};
|
3161
|
-
var SubtractIcon = (props) => /* @__PURE__ */
|
3171
|
+
var SubtractIcon = (props) => /* @__PURE__ */ React71__default.createElement(React71__default.Fragment, null, /* @__PURE__ */ React71__default.createElement(
|
3162
3172
|
Box,
|
3163
3173
|
{
|
3164
3174
|
as: "svg",
|
@@ -3168,7 +3178,7 @@ var SubtractIcon = (props) => /* @__PURE__ */ React70__default.createElement(Rea
|
|
3168
3178
|
stroke: "currentColor",
|
3169
3179
|
...props
|
3170
3180
|
},
|
3171
|
-
/* @__PURE__ */
|
3181
|
+
/* @__PURE__ */ React71__default.createElement(
|
3172
3182
|
"line",
|
3173
3183
|
{
|
3174
3184
|
x1: "9",
|
@@ -3179,8 +3189,8 @@ var SubtractIcon = (props) => /* @__PURE__ */ React70__default.createElement(Rea
|
|
3179
3189
|
strokeLinecap: "round"
|
3180
3190
|
}
|
3181
3191
|
)
|
3182
|
-
), props.stepLabel > 1 && /* @__PURE__ */
|
3183
|
-
var AddIcon = (props) => /* @__PURE__ */
|
3192
|
+
), props.stepLabel > 1 && /* @__PURE__ */ React71__default.createElement(chakra.span, { paddingRight: "1" }, props.stepLabel.toString()));
|
3193
|
+
var AddIcon = (props) => /* @__PURE__ */ React71__default.createElement(React71__default.Fragment, null, /* @__PURE__ */ React71__default.createElement(
|
3184
3194
|
Box,
|
3185
3195
|
{
|
3186
3196
|
as: "svg",
|
@@ -3190,7 +3200,7 @@ var AddIcon = (props) => /* @__PURE__ */ React70__default.createElement(React70_
|
|
3190
3200
|
stroke: "currentColor",
|
3191
3201
|
...props
|
3192
3202
|
},
|
3193
|
-
/* @__PURE__ */
|
3203
|
+
/* @__PURE__ */ React71__default.createElement(
|
3194
3204
|
"line",
|
3195
3205
|
{
|
3196
3206
|
x1: "9",
|
@@ -3201,7 +3211,7 @@ var AddIcon = (props) => /* @__PURE__ */ React70__default.createElement(React70_
|
|
3201
3211
|
strokeLinecap: "round"
|
3202
3212
|
}
|
3203
3213
|
),
|
3204
|
-
/* @__PURE__ */
|
3214
|
+
/* @__PURE__ */ React71__default.createElement(
|
3205
3215
|
"line",
|
3206
3216
|
{
|
3207
3217
|
x1: "15",
|
@@ -3212,7 +3222,7 @@ var AddIcon = (props) => /* @__PURE__ */ React70__default.createElement(React70_
|
|
3212
3222
|
strokeLinecap: "round"
|
3213
3223
|
}
|
3214
3224
|
)
|
3215
|
-
), props.stepLabel > 1 && /* @__PURE__ */
|
3225
|
+
), props.stepLabel > 1 && /* @__PURE__ */ React71__default.createElement(chakra.span, { paddingRight: "1" }, props.stepLabel.toString()));
|
3216
3226
|
var texts12 = createTexts({
|
3217
3227
|
decrementButtonAriaLabel(stepSize) {
|
3218
3228
|
return {
|
@@ -3238,7 +3248,7 @@ var PasswordInput = forwardRef(
|
|
3238
3248
|
const formControlProps = useFormControlContext();
|
3239
3249
|
const autoGeneratedId = `password-input-${useId()}`;
|
3240
3250
|
const inputId = id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? autoGeneratedId;
|
3241
|
-
return /* @__PURE__ */
|
3251
|
+
return /* @__PURE__ */ React71__default.createElement(InputGroup, { position: "relative" }, leftIcon && /* @__PURE__ */ React71__default.createElement(InputLeftElement2, null, leftIcon), /* @__PURE__ */ React71__default.createElement(
|
3242
3252
|
Input$1,
|
3243
3253
|
{
|
3244
3254
|
...props,
|
@@ -3250,7 +3260,7 @@ var PasswordInput = forwardRef(
|
|
3250
3260
|
ref,
|
3251
3261
|
"data-attachable": true
|
3252
3262
|
}
|
3253
|
-
), /* @__PURE__ */
|
3263
|
+
), /* @__PURE__ */ React71__default.createElement(FormLabel3, { htmlFor: inputId, pointerEvents: "none" }, label), /* @__PURE__ */ React71__default.createElement(InputRightElement2, { width: "fit-content" }, /* @__PURE__ */ React71__default.createElement(
|
3254
3264
|
Button$1,
|
3255
3265
|
{
|
3256
3266
|
variant: "ghost",
|
@@ -3298,10 +3308,10 @@ var PhoneNumberInput = forwardRef(
|
|
3298
3308
|
nationalNumber: ""
|
3299
3309
|
}
|
3300
3310
|
});
|
3301
|
-
return /* @__PURE__ */
|
3311
|
+
return /* @__PURE__ */ React71__default.createElement(AttachedInputs, { ...boxProps }, /* @__PURE__ */ React71__default.createElement(
|
3302
3312
|
Suspense,
|
3303
3313
|
{
|
3304
|
-
fallback: /* @__PURE__ */
|
3314
|
+
fallback: /* @__PURE__ */ React71__default.createElement(
|
3305
3315
|
InfoSelect,
|
3306
3316
|
{
|
3307
3317
|
isLabelSrOnly: true,
|
@@ -3310,10 +3320,10 @@ var PhoneNumberInput = forwardRef(
|
|
3310
3320
|
height: "100%",
|
3311
3321
|
value: "+47"
|
3312
3322
|
},
|
3313
|
-
/* @__PURE__ */
|
3323
|
+
/* @__PURE__ */ React71__default.createElement(Item, { key: "+47" }, "+47")
|
3314
3324
|
)
|
3315
3325
|
},
|
3316
|
-
/* @__PURE__ */
|
3326
|
+
/* @__PURE__ */ React71__default.createElement(
|
3317
3327
|
LazyCountryCodeSelect,
|
3318
3328
|
{
|
3319
3329
|
value: value.countryCode,
|
@@ -3326,7 +3336,7 @@ var PhoneNumberInput = forwardRef(
|
|
3326
3336
|
width: "6.25rem"
|
3327
3337
|
}
|
3328
3338
|
)
|
3329
|
-
), /* @__PURE__ */
|
3339
|
+
), /* @__PURE__ */ React71__default.createElement(
|
3330
3340
|
Input,
|
3331
3341
|
{
|
3332
3342
|
ref,
|
@@ -3355,13 +3365,13 @@ var texts14 = createTexts({
|
|
3355
3365
|
sv: "Telefonnummer"
|
3356
3366
|
}
|
3357
3367
|
});
|
3358
|
-
var LazyCountryCodeSelect =
|
3368
|
+
var LazyCountryCodeSelect = React71__default.lazy(() => import('./CountryCodeSelect-EZTV452W.mjs'));
|
3359
3369
|
var Radio = forwardRef((props, ref) => {
|
3360
|
-
return /* @__PURE__ */
|
3370
|
+
return /* @__PURE__ */ React71__default.createElement(Radio$1, { ...props, ref });
|
3361
3371
|
});
|
3362
3372
|
var RadioGroup = forwardRef(
|
3363
3373
|
({ children, direction: direction2 = "row", ...rest }, ref) => {
|
3364
|
-
return /* @__PURE__ */
|
3374
|
+
return /* @__PURE__ */ React71__default.createElement(RadioGroup$1, { ...rest, ref }, /* @__PURE__ */ React71__default.createElement(Stack$1, { direction: direction2 }, children));
|
3365
3375
|
}
|
3366
3376
|
);
|
3367
3377
|
var SearchInput = forwardRef(
|
@@ -3371,7 +3381,7 @@ var SearchInput = forwardRef(
|
|
3371
3381
|
const formControlProps = useFormControlContext();
|
3372
3382
|
const autoGeneratedId = useId();
|
3373
3383
|
const inputId = props.id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? autoGeneratedId;
|
3374
|
-
return /* @__PURE__ */
|
3384
|
+
return /* @__PURE__ */ React71__default.createElement(InputGroup, { position: "relative" }, /* @__PURE__ */ React71__default.createElement(InputLeftElement2, null, /* @__PURE__ */ React71__default.createElement(SearchOutline24Icon, null)), /* @__PURE__ */ React71__default.createElement(
|
3375
3385
|
Input$1,
|
3376
3386
|
{
|
3377
3387
|
paddingLeft: 7,
|
@@ -3388,7 +3398,7 @@ var SearchInput = forwardRef(
|
|
3388
3398
|
placeholder: " ",
|
3389
3399
|
"data-attachable": true
|
3390
3400
|
}
|
3391
|
-
), /* @__PURE__ */
|
3401
|
+
), /* @__PURE__ */ React71__default.createElement(FormLabel3, { htmlFor: inputId, pointerEvents: "none" }, label ?? t2(texts15.label)), showClearButton && /* @__PURE__ */ React71__default.createElement(InputRightElement2, { width: "fit-content" }, /* @__PURE__ */ React71__default.createElement(
|
3392
3402
|
IconButton$1,
|
3393
3403
|
{
|
3394
3404
|
variant: "ghost",
|
@@ -3396,7 +3406,7 @@ var SearchInput = forwardRef(
|
|
3396
3406
|
size: "sm",
|
3397
3407
|
marginRight: 1,
|
3398
3408
|
"aria-label": t2(texts15.reset),
|
3399
|
-
icon: /* @__PURE__ */
|
3409
|
+
icon: /* @__PURE__ */ React71__default.createElement(CloseOutline24Icon, null),
|
3400
3410
|
onClick: onReset
|
3401
3411
|
}
|
3402
3412
|
)));
|
@@ -3418,7 +3428,7 @@ var texts15 = createTexts({
|
|
3418
3428
|
});
|
3419
3429
|
var Switch = forwardRef(
|
3420
3430
|
({ size: size2 = "md", ...props }, ref) => {
|
3421
|
-
return /* @__PURE__ */
|
3431
|
+
return /* @__PURE__ */ React71__default.createElement(Switch$1, { size: size2, ...props, ref });
|
3422
3432
|
}
|
3423
3433
|
);
|
3424
3434
|
var Textarea = forwardRef((props, ref) => {
|
@@ -3429,7 +3439,7 @@ var Textarea = forwardRef((props, ref) => {
|
|
3429
3439
|
const formControlProps = useFormControlContext();
|
3430
3440
|
const fallbackId = `textarea-${useId()}`;
|
3431
3441
|
const inputId = props.id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? fallbackId;
|
3432
|
-
return /* @__PURE__ */
|
3442
|
+
return /* @__PURE__ */ React71__default.createElement(InputGroup, { position: "relative", ...spacingProps }, /* @__PURE__ */ React71__default.createElement(Textarea$1, { ...rest, id: inputId, ref, placeholder: " " }), label && /* @__PURE__ */ React71__default.createElement(FormLabel, { htmlFor: inputId, id: `${inputId}-label` }, label));
|
3433
3443
|
});
|
3434
3444
|
function getSpacingProps(props) {
|
3435
3445
|
const {
|
@@ -3551,7 +3561,7 @@ var LineIcon = ({
|
|
3551
3561
|
if (!Icon) {
|
3552
3562
|
return null;
|
3553
3563
|
}
|
3554
|
-
return /* @__PURE__ */
|
3564
|
+
return /* @__PURE__ */ React71__default.createElement(Box, { sx: { ...styles3.iconContainer, ...sx }, ...rest }, /* @__PURE__ */ React71__default.createElement(Icon, { sx: styles3.icon }));
|
3555
3565
|
};
|
3556
3566
|
|
3557
3567
|
// src/linjetag/InfoTag.tsx
|
@@ -3567,7 +3577,7 @@ var InfoTag = ({
|
|
3567
3577
|
size: size2,
|
3568
3578
|
...customProps
|
3569
3579
|
});
|
3570
|
-
return /* @__PURE__ */
|
3580
|
+
return /* @__PURE__ */ React71__default.createElement(Box, { sx: styles3.container }, /* @__PURE__ */ React71__default.createElement(
|
3571
3581
|
LineIcon,
|
3572
3582
|
{
|
3573
3583
|
variant,
|
@@ -3575,7 +3585,7 @@ var InfoTag = ({
|
|
3575
3585
|
sx: styles3.iconContainer,
|
3576
3586
|
...customProps
|
3577
3587
|
}
|
3578
|
-
), /* @__PURE__ */
|
3588
|
+
), /* @__PURE__ */ React71__default.createElement(Box, { sx: styles3.textContainer }, title && /* @__PURE__ */ React71__default.createElement(Box, { as: "span", sx: styles3.title }, title), title && description && " ", description && /* @__PURE__ */ React71__default.createElement(Box, { as: "span", sx: styles3.description }, description)));
|
3579
3589
|
};
|
3580
3590
|
var TravelTag = forwardRef(
|
3581
3591
|
({
|
@@ -3595,7 +3605,7 @@ var TravelTag = forwardRef(
|
|
3595
3605
|
backgroundColor: variant === "custom" ? rest.backgroundColor : void 0
|
3596
3606
|
});
|
3597
3607
|
const DeviationLevelIcon = getDeviationLevelIcon({ deviationLevel, size: size2 });
|
3598
|
-
return /* @__PURE__ */
|
3608
|
+
return /* @__PURE__ */ React71__default.createElement(Box, { sx: styles3.container, "aria-disabled": isDisabled, ref, ...rest }, /* @__PURE__ */ React71__default.createElement(
|
3599
3609
|
LineIcon,
|
3600
3610
|
{
|
3601
3611
|
variant,
|
@@ -3603,7 +3613,7 @@ var TravelTag = forwardRef(
|
|
3603
3613
|
sx: styles3.iconContainer,
|
3604
3614
|
...rest
|
3605
3615
|
}
|
3606
|
-
), /* @__PURE__ */
|
3616
|
+
), /* @__PURE__ */ React71__default.createElement(Box, { sx: styles3.textContainer }, title && /* @__PURE__ */ React71__default.createElement(Box, { as: "span", sx: styles3.title }, title), title && description && " ", description && /* @__PURE__ */ React71__default.createElement(Box, { as: "span", sx: styles3.description }, description)), DeviationLevelIcon && /* @__PURE__ */ React71__default.createElement(DeviationLevelIcon, { sx: styles3.deviationIcon }));
|
3607
3617
|
}
|
3608
3618
|
);
|
3609
3619
|
var getDeviationLevelIcon = ({
|
@@ -3627,7 +3637,7 @@ var TextLink = forwardRef(
|
|
3627
3637
|
var _a6;
|
3628
3638
|
const { t: t2 } = useTranslation();
|
3629
3639
|
const isExternal = props.isExternal !== void 0 ? props.isExternal : Boolean((_a6 = props.href) == null ? void 0 : _a6.match(/^https?:\/\//));
|
3630
|
-
return /* @__PURE__ */
|
3640
|
+
return /* @__PURE__ */ React71__default.createElement(Link, { ...props, ref, isExternal }, children, isExternal && /* @__PURE__ */ React71__default.createElement(
|
3631
3641
|
LinkOutOutline24Icon,
|
3632
3642
|
{
|
3633
3643
|
marginLeft: 0.5,
|
@@ -3648,7 +3658,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3648
3658
|
const mainColor = colorScheme === "light" ? "#1d211c" : "#ffffff";
|
3649
3659
|
const accentColor = colorScheme === "light" ? "#138c6e" : "#ffffff";
|
3650
3660
|
const id = useId();
|
3651
|
-
return /* @__PURE__ */
|
3661
|
+
return /* @__PURE__ */ React71__default.createElement(Box, { as: "svg", viewBox: "0 0 107 54", ...boxProps }, /* @__PURE__ */ React71__default.createElement("title", null, "Vy logo"), /* @__PURE__ */ React71__default.createElement(
|
3652
3662
|
"path",
|
3653
3663
|
{
|
3654
3664
|
fillRule: "evenodd",
|
@@ -3656,7 +3666,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3656
3666
|
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",
|
3657
3667
|
fill: mainColor
|
3658
3668
|
}
|
3659
|
-
), /* @__PURE__ */
|
3669
|
+
), /* @__PURE__ */ React71__default.createElement(
|
3660
3670
|
"mask",
|
3661
3671
|
{
|
3662
3672
|
id: `${id}-a`,
|
@@ -3667,7 +3677,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3667
3677
|
width: "94",
|
3668
3678
|
height: "54"
|
3669
3679
|
},
|
3670
|
-
/* @__PURE__ */
|
3680
|
+
/* @__PURE__ */ React71__default.createElement(
|
3671
3681
|
"path",
|
3672
3682
|
{
|
3673
3683
|
fillRule: "evenodd",
|
@@ -3676,7 +3686,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3676
3686
|
fill: mainColor
|
3677
3687
|
}
|
3678
3688
|
)
|
3679
|
-
), /* @__PURE__ */
|
3689
|
+
), /* @__PURE__ */ React71__default.createElement(
|
3680
3690
|
"g",
|
3681
3691
|
{
|
3682
3692
|
mask: `url(#${id}-a)`,
|
@@ -3684,9 +3694,9 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3684
3694
|
clipRule: "evenodd",
|
3685
3695
|
fill: mainColor
|
3686
3696
|
},
|
3687
|
-
/* @__PURE__ */
|
3688
|
-
/* @__PURE__ */
|
3689
|
-
), /* @__PURE__ */
|
3697
|
+
/* @__PURE__ */ React71__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" }),
|
3698
|
+
/* @__PURE__ */ React71__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" })
|
3699
|
+
), /* @__PURE__ */ React71__default.createElement(
|
3690
3700
|
"path",
|
3691
3701
|
{
|
3692
3702
|
fillRule: "evenodd",
|
@@ -3694,7 +3704,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3694
3704
|
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",
|
3695
3705
|
fill: accentColor
|
3696
3706
|
}
|
3697
|
-
), /* @__PURE__ */
|
3707
|
+
), /* @__PURE__ */ React71__default.createElement(
|
3698
3708
|
"path",
|
3699
3709
|
{
|
3700
3710
|
fillRule: "evenodd",
|
@@ -3702,7 +3712,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3702
3712
|
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",
|
3703
3713
|
fill: mainColor
|
3704
3714
|
}
|
3705
|
-
), /* @__PURE__ */
|
3715
|
+
), /* @__PURE__ */ React71__default.createElement(
|
3706
3716
|
"mask",
|
3707
3717
|
{
|
3708
3718
|
id: `${id}-b`,
|
@@ -3713,7 +3723,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3713
3723
|
width: "78",
|
3714
3724
|
height: "54"
|
3715
3725
|
},
|
3716
|
-
/* @__PURE__ */
|
3726
|
+
/* @__PURE__ */ React71__default.createElement(
|
3717
3727
|
"path",
|
3718
3728
|
{
|
3719
3729
|
fillRule: "evenodd",
|
@@ -3722,25 +3732,25 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3722
3732
|
fill: mainColor
|
3723
3733
|
}
|
3724
3734
|
)
|
3725
|
-
), /* @__PURE__ */
|
3735
|
+
), /* @__PURE__ */ React71__default.createElement("g", { mask: `url(#${id}-b)`, fillRule: "evenodd", clipRule: "evenodd" }, /* @__PURE__ */ React71__default.createElement(
|
3726
3736
|
"path",
|
3727
3737
|
{
|
3728
3738
|
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",
|
3729
3739
|
fill: mainColor
|
3730
3740
|
}
|
3731
|
-
), /* @__PURE__ */
|
3741
|
+
), /* @__PURE__ */ React71__default.createElement(
|
3732
3742
|
"path",
|
3733
3743
|
{
|
3734
3744
|
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",
|
3735
3745
|
fill: mainColor
|
3736
3746
|
}
|
3737
|
-
), /* @__PURE__ */
|
3747
|
+
), /* @__PURE__ */ React71__default.createElement(
|
3738
3748
|
"path",
|
3739
3749
|
{
|
3740
3750
|
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",
|
3741
3751
|
fill: accentColor
|
3742
3752
|
}
|
3743
|
-
)), /* @__PURE__ */
|
3753
|
+
)), /* @__PURE__ */ React71__default.createElement(
|
3744
3754
|
"path",
|
3745
3755
|
{
|
3746
3756
|
fillRule: "evenodd",
|
@@ -3750,7 +3760,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3750
3760
|
}
|
3751
3761
|
));
|
3752
3762
|
};
|
3753
|
-
var JumpForwardIcon = (props) => /* @__PURE__ */
|
3763
|
+
var JumpForwardIcon = (props) => /* @__PURE__ */ React71.createElement(Box, { as: "svg", ...props, viewBox: "0 0 32 30", fill: "none" }, /* @__PURE__ */ React71.createElement(
|
3754
3764
|
"path",
|
3755
3765
|
{
|
3756
3766
|
fillRule: "evenodd",
|
@@ -3758,7 +3768,7 @@ var JumpForwardIcon = (props) => /* @__PURE__ */ React70.createElement(Box, { as
|
|
3758
3768
|
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",
|
3759
3769
|
fill: "currentColor"
|
3760
3770
|
}
|
3761
|
-
), /* @__PURE__ */
|
3771
|
+
), /* @__PURE__ */ React71.createElement(
|
3762
3772
|
"path",
|
3763
3773
|
{
|
3764
3774
|
fillRule: "evenodd",
|
@@ -3767,7 +3777,7 @@ var JumpForwardIcon = (props) => /* @__PURE__ */ React70.createElement(Box, { as
|
|
3767
3777
|
fill: "currentColor"
|
3768
3778
|
}
|
3769
3779
|
));
|
3770
|
-
var JumpBackwardIcon = (props) => /* @__PURE__ */
|
3780
|
+
var JumpBackwardIcon = (props) => /* @__PURE__ */ React71.createElement(Box, { as: "svg", ...props, viewBox: "0 0 32 30", fill: "none" }, /* @__PURE__ */ React71.createElement(
|
3771
3781
|
"path",
|
3772
3782
|
{
|
3773
3783
|
fillRule: "evenodd",
|
@@ -3775,7 +3785,7 @@ var JumpBackwardIcon = (props) => /* @__PURE__ */ React70.createElement(Box, { a
|
|
3775
3785
|
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",
|
3776
3786
|
fill: "currentColor"
|
3777
3787
|
}
|
3778
|
-
), /* @__PURE__ */
|
3788
|
+
), /* @__PURE__ */ React71.createElement(
|
3779
3789
|
"path",
|
3780
3790
|
{
|
3781
3791
|
fillRule: "evenodd",
|
@@ -3784,7 +3794,7 @@ var JumpBackwardIcon = (props) => /* @__PURE__ */ React70.createElement(Box, { a
|
|
3784
3794
|
fill: "currentColor"
|
3785
3795
|
}
|
3786
3796
|
));
|
3787
|
-
var PlayIcon = (props) => /* @__PURE__ */
|
3797
|
+
var PlayIcon = (props) => /* @__PURE__ */ React71.createElement(Box, { as: "svg", ...props, fill: "none", viewBox: "0 0 60 60" }, /* @__PURE__ */ React71.createElement(
|
3788
3798
|
"path",
|
3789
3799
|
{
|
3790
3800
|
fillRule: "evenodd",
|
@@ -3793,7 +3803,7 @@ var PlayIcon = (props) => /* @__PURE__ */ React70.createElement(Box, { as: "svg"
|
|
3793
3803
|
fill: "currentColor"
|
3794
3804
|
}
|
3795
3805
|
));
|
3796
|
-
var PauseIcon = (props) => /* @__PURE__ */
|
3806
|
+
var PauseIcon = (props) => /* @__PURE__ */ React71.createElement(Box, { as: "svg", ...props, viewBox: "0 0 60 60", fill: "none" }, /* @__PURE__ */ React71.createElement(
|
3797
3807
|
"path",
|
3798
3808
|
{
|
3799
3809
|
fillRule: "evenodd",
|
@@ -3802,7 +3812,7 @@ var PauseIcon = (props) => /* @__PURE__ */ React70.createElement(Box, { as: "svg
|
|
3802
3812
|
fill: "currentColor"
|
3803
3813
|
}
|
3804
3814
|
));
|
3805
|
-
var SkipNextIcon = (props) => /* @__PURE__ */
|
3815
|
+
var SkipNextIcon = (props) => /* @__PURE__ */ React71.createElement(Box, { as: "svg", ...props, viewBox: "0 0 30 30", fill: "none" }, /* @__PURE__ */ React71.createElement(
|
3806
3816
|
"path",
|
3807
3817
|
{
|
3808
3818
|
fillRule: "evenodd",
|
@@ -3811,7 +3821,7 @@ var SkipNextIcon = (props) => /* @__PURE__ */ React70.createElement(Box, { as: "
|
|
3811
3821
|
fill: "currentColor"
|
3812
3822
|
}
|
3813
3823
|
));
|
3814
|
-
var SkipPreviousIcon = (props) => /* @__PURE__ */
|
3824
|
+
var SkipPreviousIcon = (props) => /* @__PURE__ */ React71.createElement(Box, { as: "svg", ...props, viewBox: "0 0 30 30", fill: "none" }, /* @__PURE__ */ React71.createElement(
|
3815
3825
|
"path",
|
3816
3826
|
{
|
3817
3827
|
fillRule: "evenodd",
|
@@ -3833,7 +3843,7 @@ var JumpButton = ({
|
|
3833
3843
|
variant: "jumpSkip",
|
3834
3844
|
size: size2
|
3835
3845
|
});
|
3836
|
-
return /* @__PURE__ */
|
3846
|
+
return /* @__PURE__ */ React71__default.createElement(
|
3837
3847
|
Center,
|
3838
3848
|
{
|
3839
3849
|
as: "button",
|
@@ -3842,7 +3852,7 @@ var JumpButton = ({
|
|
3842
3852
|
disabled: isDisabled,
|
3843
3853
|
...props
|
3844
3854
|
},
|
3845
|
-
direction2 === "forward" ? /* @__PURE__ */
|
3855
|
+
direction2 === "forward" ? /* @__PURE__ */ React71__default.createElement(JumpForwardIcon, { sx: styles3.icon }) : /* @__PURE__ */ React71__default.createElement(JumpBackwardIcon, { sx: styles3.icon })
|
3846
3856
|
);
|
3847
3857
|
};
|
3848
3858
|
var texts17 = createTexts({
|
@@ -3870,7 +3880,7 @@ var PlayPauseButton = ({
|
|
3870
3880
|
variant: "play",
|
3871
3881
|
size: size2
|
3872
3882
|
});
|
3873
|
-
return /* @__PURE__ */
|
3883
|
+
return /* @__PURE__ */ React71__default.createElement(
|
3874
3884
|
Center,
|
3875
3885
|
{
|
3876
3886
|
as: "button",
|
@@ -3879,7 +3889,7 @@ var PlayPauseButton = ({
|
|
3879
3889
|
disabled: isDisabled,
|
3880
3890
|
...props
|
3881
3891
|
},
|
3882
|
-
isPlaying ? /* @__PURE__ */
|
3892
|
+
isPlaying ? /* @__PURE__ */ React71__default.createElement(PauseIcon, { sx: styles3.icon }) : /* @__PURE__ */ React71__default.createElement(PlayIcon, { sx: styles3.icon })
|
3883
3893
|
);
|
3884
3894
|
};
|
3885
3895
|
var texts18 = createTexts({
|
@@ -3907,7 +3917,7 @@ var SkipButton = ({
|
|
3907
3917
|
variant: "jumpSkip",
|
3908
3918
|
size: size2
|
3909
3919
|
});
|
3910
|
-
return /* @__PURE__ */
|
3920
|
+
return /* @__PURE__ */ React71__default.createElement(
|
3911
3921
|
Center,
|
3912
3922
|
{
|
3913
3923
|
as: "button",
|
@@ -3916,7 +3926,7 @@ var SkipButton = ({
|
|
3916
3926
|
disabled: isDisabled,
|
3917
3927
|
...props
|
3918
3928
|
},
|
3919
|
-
direction2 === "forward" ? /* @__PURE__ */
|
3929
|
+
direction2 === "forward" ? /* @__PURE__ */ React71__default.createElement(SkipNextIcon, { sx: styles3.icon }) : /* @__PURE__ */ React71__default.createElement(SkipPreviousIcon, { sx: styles3.icon })
|
3920
3930
|
);
|
3921
3931
|
};
|
3922
3932
|
var texts19 = createTexts({
|
@@ -3939,13 +3949,13 @@ var ModalHeader = forwardRef(
|
|
3939
3949
|
fontSize: size2 === "lg" ? ["mobile.lg", "desktop.lg"] : ["mobile.md", "desktop.md"],
|
3940
3950
|
textAlign: size2 === "lg" ? "center" : "left"
|
3941
3951
|
};
|
3942
|
-
return /* @__PURE__ */
|
3952
|
+
return /* @__PURE__ */ React71__default.createElement(ModalHeader$1, { ...props, ref, ...styles3 });
|
3943
3953
|
}
|
3944
3954
|
);
|
3945
3955
|
|
3946
3956
|
// src/modal/Drawer.tsx
|
3947
3957
|
var Drawer = (props) => {
|
3948
|
-
return /* @__PURE__ */
|
3958
|
+
return /* @__PURE__ */ React71__default.createElement(DrawerProvider, { placement: props.placement }, /* @__PURE__ */ React71__default.createElement(Drawer$1, { ...props }));
|
3949
3959
|
};
|
3950
3960
|
var DrawerContent = forwardRef(
|
3951
3961
|
({ children, ...props }, ref) => {
|
@@ -3962,7 +3972,7 @@ var DrawerContent = forwardRef(
|
|
3962
3972
|
});
|
3963
3973
|
const isTopOrBottom = placement === "top" || placement === "bottom";
|
3964
3974
|
const widthConstraits = isTopOrBottom ? { width: ["100%", "37.5rem"], mx: "auto" } : {};
|
3965
|
-
return /* @__PURE__ */
|
3975
|
+
return /* @__PURE__ */ React71__default.createElement(Box, { ...handlers }, /* @__PURE__ */ React71__default.createElement(
|
3966
3976
|
DrawerContent$1,
|
3967
3977
|
{
|
3968
3978
|
...widthConstraits,
|
@@ -3971,13 +3981,13 @@ var DrawerContent = forwardRef(
|
|
3971
3981
|
...props,
|
3972
3982
|
ref
|
3973
3983
|
},
|
3974
|
-
/* @__PURE__ */
|
3984
|
+
/* @__PURE__ */ React71__default.createElement(Box, { position: "relative" }, /* @__PURE__ */ React71__default.createElement(Box, { maxHeight: "100vh", maxWidth: "100vw", overflow: "auto" }, isTopOrBottom && /* @__PURE__ */ React71__default.createElement(Notch, null), /* @__PURE__ */ React71__default.createElement(Box, null, children)))
|
3975
3985
|
));
|
3976
3986
|
}
|
3977
3987
|
);
|
3978
3988
|
var Notch = forwardRef((props, ref) => {
|
3979
3989
|
const placement = useDrawerContext();
|
3980
|
-
return /* @__PURE__ */
|
3990
|
+
return /* @__PURE__ */ React71__default.createElement(
|
3981
3991
|
Box,
|
3982
3992
|
{
|
3983
3993
|
position: "absolute",
|
@@ -3989,14 +3999,14 @@ var Notch = forwardRef((props, ref) => {
|
|
3989
3999
|
...props,
|
3990
4000
|
ref
|
3991
4001
|
},
|
3992
|
-
/* @__PURE__ */
|
4002
|
+
/* @__PURE__ */ React71__default.createElement(
|
3993
4003
|
Center,
|
3994
4004
|
{
|
3995
4005
|
background: placement === "bottom" ? "bottom" : "top",
|
3996
4006
|
padding: 2,
|
3997
4007
|
borderRadius: "md"
|
3998
4008
|
},
|
3999
|
-
/* @__PURE__ */
|
4009
|
+
/* @__PURE__ */ React71__default.createElement(
|
4000
4010
|
Box,
|
4001
4011
|
{
|
4002
4012
|
width: "2.265rem",
|
@@ -4008,17 +4018,17 @@ var Notch = forwardRef((props, ref) => {
|
|
4008
4018
|
)
|
4009
4019
|
);
|
4010
4020
|
});
|
4011
|
-
var DrawerContext =
|
4012
|
-
var DrawerProvider = (props) => /* @__PURE__ */
|
4021
|
+
var DrawerContext = React71__default.createContext(void 0);
|
4022
|
+
var DrawerProvider = (props) => /* @__PURE__ */ React71__default.createElement(DrawerContext.Provider, { value: props.placement }, props.children);
|
4013
4023
|
var useDrawerContext = () => {
|
4014
|
-
return
|
4024
|
+
return React71__default.useContext(DrawerContext);
|
4015
4025
|
};
|
4016
4026
|
var FullScreenDrawer = ({
|
4017
4027
|
children,
|
4018
4028
|
title,
|
4019
4029
|
placement = "bottom",
|
4020
4030
|
leftButton = null,
|
4021
|
-
rightButton = /* @__PURE__ */
|
4031
|
+
rightButton = /* @__PURE__ */ React71__default.createElement(DrawerCloseButton2, null),
|
4022
4032
|
isOpen,
|
4023
4033
|
onClose
|
4024
4034
|
}) => {
|
@@ -4034,7 +4044,7 @@ var FullScreenDrawer = ({
|
|
4034
4044
|
useEffect(() => {
|
4035
4045
|
setContentBoxScrolled(false);
|
4036
4046
|
}, [isOpen]);
|
4037
|
-
return /* @__PURE__ */
|
4047
|
+
return /* @__PURE__ */ React71__default.createElement(Drawer, { isOpen, onClose, placement, size: "full" }, /* @__PURE__ */ React71__default.createElement(DrawerOverlay, null), /* @__PURE__ */ React71__default.createElement(
|
4038
4048
|
DrawerContent$1,
|
4039
4049
|
{
|
4040
4050
|
height: "100vh",
|
@@ -4042,7 +4052,7 @@ var FullScreenDrawer = ({
|
|
4042
4052
|
backgroundPosition: "top",
|
4043
4053
|
backgroundRepeat: "no-repeat"
|
4044
4054
|
},
|
4045
|
-
/* @__PURE__ */
|
4055
|
+
/* @__PURE__ */ React71__default.createElement(
|
4046
4056
|
DrawerTopMenu,
|
4047
4057
|
{
|
4048
4058
|
isScrolled: isContentBoxScrolled,
|
@@ -4051,7 +4061,7 @@ var FullScreenDrawer = ({
|
|
4051
4061
|
rightButton
|
4052
4062
|
}
|
4053
4063
|
),
|
4054
|
-
/* @__PURE__ */
|
4064
|
+
/* @__PURE__ */ React71__default.createElement(DrawerBody, { overflow: "auto", onScroll: onContentScroll }, children)
|
4055
4065
|
));
|
4056
4066
|
};
|
4057
4067
|
var DrawerTopMenu = ({
|
@@ -4064,7 +4074,7 @@ var DrawerTopMenu = ({
|
|
4064
4074
|
"bg.default.light",
|
4065
4075
|
"bg.default.dark"
|
4066
4076
|
);
|
4067
|
-
return /* @__PURE__ */
|
4077
|
+
return /* @__PURE__ */ React71__default.createElement(
|
4068
4078
|
Flex,
|
4069
4079
|
{
|
4070
4080
|
width: "100%",
|
@@ -4077,8 +4087,8 @@ var DrawerTopMenu = ({
|
|
4077
4087
|
transition: "box-shadow 0.2s",
|
4078
4088
|
boxShadow: isScrolled ? "md" : void 0
|
4079
4089
|
},
|
4080
|
-
/* @__PURE__ */
|
4081
|
-
/* @__PURE__ */
|
4090
|
+
/* @__PURE__ */ React71__default.createElement(Box, { flex: "1" }, leftButton),
|
4091
|
+
/* @__PURE__ */ React71__default.createElement(
|
4082
4092
|
DrawerHeader,
|
4083
4093
|
{
|
4084
4094
|
as: "h2",
|
@@ -4091,7 +4101,7 @@ var DrawerTopMenu = ({
|
|
4091
4101
|
},
|
4092
4102
|
title
|
4093
4103
|
),
|
4094
|
-
/* @__PURE__ */
|
4104
|
+
/* @__PURE__ */ React71__default.createElement(Box, { flex: "1" }, /* @__PURE__ */ React71__default.createElement(Box, { width: "fit-content", marginLeft: "auto" }, rightButton))
|
4095
4105
|
);
|
4096
4106
|
};
|
4097
4107
|
var DrawerCloseButton2 = () => {
|
@@ -4101,11 +4111,11 @@ var DrawerCloseButton2 = () => {
|
|
4101
4111
|
`(min-width: ${tokens11__default.size.breakpoint.sm})`
|
4102
4112
|
);
|
4103
4113
|
if (isScreenSizeMinSm) {
|
4104
|
-
return /* @__PURE__ */
|
4114
|
+
return /* @__PURE__ */ React71__default.createElement(
|
4105
4115
|
Button,
|
4106
4116
|
{
|
4107
4117
|
variant: "ghost",
|
4108
|
-
leftIcon: /* @__PURE__ */
|
4118
|
+
leftIcon: /* @__PURE__ */ React71__default.createElement(CloseFill24Icon, null),
|
4109
4119
|
onClick: onClose,
|
4110
4120
|
"aria-label": t2(texts20.close),
|
4111
4121
|
width: "fit-content",
|
@@ -4114,11 +4124,11 @@ var DrawerCloseButton2 = () => {
|
|
4114
4124
|
t2(texts20.close)
|
4115
4125
|
);
|
4116
4126
|
}
|
4117
|
-
return /* @__PURE__ */
|
4127
|
+
return /* @__PURE__ */ React71__default.createElement(
|
4118
4128
|
IconButton,
|
4119
4129
|
{
|
4120
4130
|
variant: "ghost",
|
4121
|
-
icon: /* @__PURE__ */
|
4131
|
+
icon: /* @__PURE__ */ React71__default.createElement(CloseFill30Icon, null),
|
4122
4132
|
onClick: onClose,
|
4123
4133
|
"aria-label": t2(texts20.close)
|
4124
4134
|
}
|
@@ -4138,7 +4148,7 @@ var SimpleDrawer = ({
|
|
4138
4148
|
title,
|
4139
4149
|
...props
|
4140
4150
|
}) => {
|
4141
|
-
return /* @__PURE__ */
|
4151
|
+
return /* @__PURE__ */ React71__default.createElement(Drawer, { placement, ...props }, /* @__PURE__ */ React71__default.createElement(DrawerOverlay, null), /* @__PURE__ */ React71__default.createElement(DrawerContent, null, /* @__PURE__ */ React71__default.createElement(DrawerCloseButton, null), title && /* @__PURE__ */ React71__default.createElement(ModalHeader, null, title), /* @__PURE__ */ React71__default.createElement(DrawerBody, null, children)));
|
4142
4152
|
};
|
4143
4153
|
var EXPIRATION_DELAY = 1e3 * 60 * 60 * 24 * 30;
|
4144
4154
|
var Nudge = ({
|
@@ -4160,7 +4170,7 @@ var Nudge = ({
|
|
4160
4170
|
}
|
4161
4171
|
return null;
|
4162
4172
|
}
|
4163
|
-
return /* @__PURE__ */
|
4173
|
+
return /* @__PURE__ */ React71__default.createElement(
|
4164
4174
|
Popover,
|
4165
4175
|
{
|
4166
4176
|
arrowSize: 12,
|
@@ -4168,8 +4178,8 @@ var Nudge = ({
|
|
4168
4178
|
defaultIsOpen: true,
|
4169
4179
|
...props
|
4170
4180
|
},
|
4171
|
-
/* @__PURE__ */
|
4172
|
-
/* @__PURE__ */
|
4181
|
+
/* @__PURE__ */ React71__default.createElement(PopoverAnchor, null, children),
|
4182
|
+
/* @__PURE__ */ React71__default.createElement(PopoverContent, { borderRadius: "sm" }, /* @__PURE__ */ React71__default.createElement(DarkMode, null, /* @__PURE__ */ React71__default.createElement(PopoverArrow, null), /* @__PURE__ */ React71__default.createElement(PopoverCloseButton, null), /* @__PURE__ */ React71__default.createElement(PopoverBody, { margin: 1 }, /* @__PURE__ */ React71__default.createElement(Box, { marginRight: 4 }, content), /* @__PURE__ */ React71__default.createElement(Box, { marginTop: 1.5 }, actions ?? /* @__PURE__ */ React71__default.createElement(ButtonGroup, null, /* @__PURE__ */ React71__default.createElement(Button, { variant: "tertiary", size: "xs" }, t2(texts21.close)), /* @__PURE__ */ React71__default.createElement(Button, { variant: "secondary", size: "xs", fontWeight: "bold" }, t2(texts21.showMe)))))))
|
4173
4183
|
);
|
4174
4184
|
};
|
4175
4185
|
var texts21 = createTexts({
|
@@ -4197,19 +4207,19 @@ var WizardNudge = ({
|
|
4197
4207
|
const totalSteps = content.length;
|
4198
4208
|
const isLastStep = totalSteps === currentStep;
|
4199
4209
|
const onNext = () => setCurrentStep((prev) => prev + 1);
|
4200
|
-
return /* @__PURE__ */
|
4210
|
+
return /* @__PURE__ */ React71__default.createElement(
|
4201
4211
|
Nudge,
|
4202
4212
|
{
|
4203
4213
|
onClose,
|
4204
4214
|
name,
|
4205
4215
|
content: content[currentStep - 1],
|
4206
|
-
actions: /* @__PURE__ */
|
4216
|
+
actions: /* @__PURE__ */ React71__default.createElement(Flex, { gap: 3, alignItems: "center" }, /* @__PURE__ */ React71__default.createElement(
|
4207
4217
|
ProgressIndicator,
|
4208
4218
|
{
|
4209
4219
|
activeStep: currentStep,
|
4210
4220
|
numberOfSteps: totalSteps
|
4211
4221
|
}
|
4212
|
-
), /* @__PURE__ */
|
4222
|
+
), /* @__PURE__ */ React71__default.createElement(Box, null, /* @__PURE__ */ React71__default.createElement(NextOrCloseButton, { isLastStep, onNext }))),
|
4213
4223
|
...props
|
4214
4224
|
},
|
4215
4225
|
children
|
@@ -4218,12 +4228,12 @@ var WizardNudge = ({
|
|
4218
4228
|
var NextOrCloseButton = ({ isLastStep, onNext }) => {
|
4219
4229
|
const { onClose } = usePopoverContext();
|
4220
4230
|
const { t: t2 } = useTranslation();
|
4221
|
-
return /* @__PURE__ */
|
4231
|
+
return /* @__PURE__ */ React71__default.createElement(
|
4222
4232
|
Button,
|
4223
4233
|
{
|
4224
4234
|
variant: "tertiary",
|
4225
4235
|
size: "xs",
|
4226
|
-
leftIcon: isLastStep ? void 0 : /* @__PURE__ */
|
4236
|
+
leftIcon: isLastStep ? void 0 : /* @__PURE__ */ React71__default.createElement(ArrowRightFill18Icon, null),
|
4227
4237
|
onClick: isLastStep ? onClose : onNext,
|
4228
4238
|
width: "fit-content"
|
4229
4239
|
},
|
@@ -4287,7 +4297,7 @@ var Pagination = ({
|
|
4287
4297
|
}
|
4288
4298
|
}
|
4289
4299
|
return displayPageNumbers.map(
|
4290
|
-
(pageNumber, index) => pageNumber === "..." ? /* @__PURE__ */
|
4300
|
+
(pageNumber, index) => pageNumber === "..." ? /* @__PURE__ */ React71__default.createElement(ListItem, { key: index, sx: style.listItem }, /* @__PURE__ */ React71__default.createElement(Center, null, "...")) : /* @__PURE__ */ React71__default.createElement(
|
4291
4301
|
Link,
|
4292
4302
|
{
|
4293
4303
|
key: index,
|
@@ -4304,7 +4314,7 @@ var Pagination = ({
|
|
4304
4314
|
)
|
4305
4315
|
);
|
4306
4316
|
};
|
4307
|
-
return /* @__PURE__ */
|
4317
|
+
return /* @__PURE__ */ React71__default.createElement(Flex, { as: "nav", "aria-label": "pagination" }, /* @__PURE__ */ React71__default.createElement(
|
4308
4318
|
UnorderedList,
|
4309
4319
|
{
|
4310
4320
|
display: "flex",
|
@@ -4313,22 +4323,22 @@ var Pagination = ({
|
|
4313
4323
|
padding: 0,
|
4314
4324
|
margin: 0
|
4315
4325
|
},
|
4316
|
-
/* @__PURE__ */
|
4326
|
+
/* @__PURE__ */ React71__default.createElement(ListItem, { "aria-label": t2(texts23.previousPage) }, /* @__PURE__ */ React71__default.createElement(
|
4317
4327
|
TextLink,
|
4318
4328
|
{
|
4319
4329
|
onClick: () => onPageChange(selectedPage - 1),
|
4320
4330
|
sx: hasPreviousPage ? style.link : style.disabled
|
4321
4331
|
},
|
4322
|
-
/* @__PURE__ */
|
4332
|
+
/* @__PURE__ */ React71__default.createElement(DropdownLeftFill18Icon, { sx: style.icon })
|
4323
4333
|
)),
|
4324
4334
|
renderPaginationButtons(),
|
4325
|
-
/* @__PURE__ */
|
4335
|
+
/* @__PURE__ */ React71__default.createElement(ListItem, { "aria-label": t2(texts23.nextPage) }, /* @__PURE__ */ React71__default.createElement(
|
4326
4336
|
TextLink,
|
4327
4337
|
{
|
4328
4338
|
onClick: () => onPageChange(selectedPage + 1),
|
4329
4339
|
sx: hasNextPage ? style.link : style.disabled
|
4330
4340
|
},
|
4331
|
-
/* @__PURE__ */
|
4341
|
+
/* @__PURE__ */ React71__default.createElement(DropdownRightFill18Icon, { sx: style.icon })
|
4332
4342
|
))
|
4333
4343
|
));
|
4334
4344
|
};
|
@@ -4348,7 +4358,7 @@ var texts23 = createTexts({
|
|
4348
4358
|
});
|
4349
4359
|
var ProgressDot = ({ isActive }) => {
|
4350
4360
|
const style = useMultiStyleConfig("ProgressIndicator");
|
4351
|
-
return /* @__PURE__ */
|
4361
|
+
return /* @__PURE__ */ React71__default.createElement(
|
4352
4362
|
Box,
|
4353
4363
|
{
|
4354
4364
|
as: "svg",
|
@@ -4358,7 +4368,7 @@ var ProgressDot = ({ isActive }) => {
|
|
4358
4368
|
viewBox: "0 0 100 100",
|
4359
4369
|
"aria-current": isActive ? "step" : void 0
|
4360
4370
|
},
|
4361
|
-
/* @__PURE__ */
|
4371
|
+
/* @__PURE__ */ React71__default.createElement(Box, { as: "circle", cx: "50", cy: "50", r: "50" })
|
4362
4372
|
);
|
4363
4373
|
};
|
4364
4374
|
|
@@ -4369,7 +4379,7 @@ var ProgressIndicator = ({
|
|
4369
4379
|
}) => {
|
4370
4380
|
const { t: t2 } = useTranslation();
|
4371
4381
|
const style = useMultiStyleConfig("ProgressIndicator");
|
4372
|
-
return /* @__PURE__ */
|
4382
|
+
return /* @__PURE__ */ React71__default.createElement(
|
4373
4383
|
Box,
|
4374
4384
|
{
|
4375
4385
|
__css: style.root,
|
@@ -4379,7 +4389,7 @@ var ProgressIndicator = ({
|
|
4379
4389
|
"aria-valuenow": activeStep,
|
4380
4390
|
"aria-valuetext": t2(texts24.stepsOf(activeStep, numberOfSteps))
|
4381
4391
|
},
|
4382
|
-
/* @__PURE__ */
|
4392
|
+
/* @__PURE__ */ React71__default.createElement(Box, { __css: style.container }, Array.from({ length: numberOfSteps }, (_, i) => /* @__PURE__ */ React71__default.createElement(
|
4383
4393
|
ProgressDot,
|
4384
4394
|
{
|
4385
4395
|
key: i,
|
@@ -4406,9 +4416,9 @@ var SporProvider = ({
|
|
4406
4416
|
}) => {
|
4407
4417
|
const brandCustomizations = brandTheme[brand] ?? {};
|
4408
4418
|
const extendedTheme = deepmerge(theme3, brandCustomizations);
|
4409
|
-
return /* @__PURE__ */
|
4419
|
+
return /* @__PURE__ */ React71__default.createElement(LanguageProvider, { language }, /* @__PURE__ */ React71__default.createElement(ChakraProvider, { theme: extendedTheme, ...props }, /* @__PURE__ */ React71__default.createElement(Global, { styles: fontFaces }), children));
|
4410
4420
|
};
|
4411
|
-
var StepperContext =
|
4421
|
+
var StepperContext = React71__default.createContext(null);
|
4412
4422
|
var StepperProvider = ({
|
4413
4423
|
activeStep,
|
4414
4424
|
children,
|
@@ -4416,7 +4426,7 @@ var StepperProvider = ({
|
|
4416
4426
|
numberOfSteps,
|
4417
4427
|
variant
|
4418
4428
|
}) => {
|
4419
|
-
return /* @__PURE__ */
|
4429
|
+
return /* @__PURE__ */ React71__default.createElement(
|
4420
4430
|
StepperContext.Provider,
|
4421
4431
|
{
|
4422
4432
|
value: { activeStep, onClick, numberOfSteps, variant }
|
@@ -4425,7 +4435,7 @@ var StepperProvider = ({
|
|
4425
4435
|
);
|
4426
4436
|
};
|
4427
4437
|
var useStepper = () => {
|
4428
|
-
const context =
|
4438
|
+
const context = React71__default.useContext(StepperContext);
|
4429
4439
|
if (!context) {
|
4430
4440
|
throw new Error(
|
4431
4441
|
"useStepper must be used within a StepperProvider. Most likely, you forgot to wrap your StepperStep in a Stepper component"
|
@@ -4453,7 +4463,7 @@ var Stepper = ({
|
|
4453
4463
|
const { t: t2 } = useTranslation();
|
4454
4464
|
const hideBackButtonOnFirstStep = activeStep === 1 && !onBackButtonClick;
|
4455
4465
|
const shownHeading = heading || title;
|
4456
|
-
return /* @__PURE__ */
|
4466
|
+
return /* @__PURE__ */ React71__default.createElement(Box, { sx: style.root }, /* @__PURE__ */ React71__default.createElement(
|
4457
4467
|
StepperProvider,
|
4458
4468
|
{
|
4459
4469
|
onClick,
|
@@ -4461,7 +4471,7 @@ var Stepper = ({
|
|
4461
4471
|
variant,
|
4462
4472
|
numberOfSteps
|
4463
4473
|
},
|
4464
|
-
/* @__PURE__ */
|
4474
|
+
/* @__PURE__ */ React71__default.createElement(Box, { sx: style.container }, /* @__PURE__ */ React71__default.createElement(Box, { sx: style.innerContainer }, /* @__PURE__ */ React71__default.createElement(
|
4465
4475
|
Flex,
|
4466
4476
|
{
|
4467
4477
|
justifyContent: "space-between",
|
@@ -4469,11 +4479,11 @@ var Stepper = ({
|
|
4469
4479
|
gap: 2,
|
4470
4480
|
flex: 1
|
4471
4481
|
},
|
4472
|
-
/* @__PURE__ */
|
4482
|
+
/* @__PURE__ */ React71__default.createElement(
|
4473
4483
|
IconButton,
|
4474
4484
|
{
|
4475
4485
|
"aria-label": t2(texts25.back),
|
4476
|
-
icon: /* @__PURE__ */
|
4486
|
+
icon: /* @__PURE__ */ React71__default.createElement(ArrowLeftFill24Icon, null),
|
4477
4487
|
variant: "ghost",
|
4478
4488
|
size: "sm",
|
4479
4489
|
visibility: hideBackButtonOnFirstStep ? "hidden" : "visible",
|
@@ -4486,9 +4496,9 @@ var Stepper = ({
|
|
4486
4496
|
}
|
4487
4497
|
}
|
4488
4498
|
),
|
4489
|
-
shownHeading && /* @__PURE__ */
|
4490
|
-
/* @__PURE__ */
|
4491
|
-
)), /* @__PURE__ */
|
4499
|
+
shownHeading && /* @__PURE__ */ React71__default.createElement(Text4, { flex: 1, variant: "sm", as: headingLevel, sx: style.title }, shownHeading),
|
4500
|
+
/* @__PURE__ */ React71__default.createElement(Box, { sx: style.stepCounter }, t2(texts25.stepsOf(activeStep, numberOfSteps)))
|
4501
|
+
)), /* @__PURE__ */ React71__default.createElement(Flex, { justifyContent: "center", display: ["none", null, "flex"] }, steps.map((step, index) => /* @__PURE__ */ React71__default.createElement(
|
4492
4502
|
StepperStep,
|
4493
4503
|
{
|
4494
4504
|
key: index,
|
@@ -4533,14 +4543,14 @@ var StepperStep = ({
|
|
4533
4543
|
);
|
4534
4544
|
const iconColor = useColorModeValue("blackAlpha.200", "whiteAlpha.200");
|
4535
4545
|
const isDisabled = state2 !== "active" && isDisabledOverride || state2 === "disabled";
|
4536
|
-
return /* @__PURE__ */
|
4546
|
+
return /* @__PURE__ */ React71__default.createElement(Box, { sx: style.stepContainer }, stepNumber > 1 && /* @__PURE__ */ React71__default.createElement(
|
4537
4547
|
DropdownRightFill18Icon,
|
4538
4548
|
{
|
4539
4549
|
marginX: 5,
|
4540
4550
|
display: ["none", null, "block"],
|
4541
4551
|
color: iconColor
|
4542
4552
|
}
|
4543
|
-
), isDisabled ? /* @__PURE__ */
|
4553
|
+
), isDisabled ? /* @__PURE__ */ React71__default.createElement(
|
4544
4554
|
Text4,
|
4545
4555
|
{
|
4546
4556
|
variant: "xs",
|
@@ -4550,7 +4560,7 @@ var StepperStep = ({
|
|
4550
4560
|
paddingX: 2
|
4551
4561
|
},
|
4552
4562
|
children
|
4553
|
-
) : /* @__PURE__ */
|
4563
|
+
) : /* @__PURE__ */ React71__default.createElement(
|
4554
4564
|
Button,
|
4555
4565
|
{
|
4556
4566
|
size: "xs",
|
@@ -4573,11 +4583,11 @@ var getState = (stepNumber, activeStep) => {
|
|
4573
4583
|
return "disabled";
|
4574
4584
|
};
|
4575
4585
|
var Tabs = forwardRef((props, ref) => {
|
4576
|
-
return /* @__PURE__ */
|
4586
|
+
return /* @__PURE__ */ React71.createElement(Tabs$1, { ...props, ref });
|
4577
4587
|
});
|
4578
4588
|
var Table = forwardRef((props, ref) => {
|
4579
4589
|
const { variant, size: size2, colorScheme, children, ...rest } = props;
|
4580
|
-
return /* @__PURE__ */
|
4590
|
+
return /* @__PURE__ */ React71__default.createElement(Box, { ...rest, ...getStyleProps(props) }, /* @__PURE__ */ React71__default.createElement(Box, { overflowX: "auto" }, /* @__PURE__ */ React71__default.createElement(
|
4581
4591
|
Table$1,
|
4582
4592
|
{
|
4583
4593
|
variant,
|
@@ -6393,16 +6403,16 @@ Object.assign({}, space, layout, flexbox, grid, position);
|
|
6393
6403
|
function defineStyle(styles3) {
|
6394
6404
|
return styles3;
|
6395
6405
|
}
|
6396
|
-
function defineStyleConfig(
|
6397
|
-
return
|
6406
|
+
function defineStyleConfig(config44) {
|
6407
|
+
return config44;
|
6398
6408
|
}
|
6399
6409
|
function createMultiStyleConfigHelpers(parts19) {
|
6400
6410
|
return {
|
6401
|
-
definePartsStyle(
|
6402
|
-
return
|
6411
|
+
definePartsStyle(config44) {
|
6412
|
+
return config44;
|
6403
6413
|
},
|
6404
|
-
defineMultiStyleConfig(
|
6405
|
-
return { parts: parts19, ...
|
6414
|
+
defineMultiStyleConfig(config44) {
|
6415
|
+
return { parts: parts19, ...config44 };
|
6406
6416
|
}
|
6407
6417
|
};
|
6408
6418
|
}
|
@@ -9687,6 +9697,7 @@ __export(components_exports, {
|
|
9687
9697
|
NumericStepper: () => numeric_stepper_default,
|
9688
9698
|
Pagination: () => pagination_default,
|
9689
9699
|
Popover: () => popover_default,
|
9700
|
+
PressableCard: () => pressable_card_default,
|
9690
9701
|
ProgressBar: () => progress_bar_default,
|
9691
9702
|
ProgressIndicator: () => progress_indicator_default,
|
9692
9703
|
Radio: () => radio_default,
|
@@ -13530,7 +13541,166 @@ var getColorSchemeBaseProps2 = (props) => {
|
|
13530
13541
|
}
|
13531
13542
|
default:
|
13532
13543
|
return {
|
13533
|
-
backgroundColor: ((_a6 = colors2[props.colorScheme]) == null ? void 0 : _a6[100]) ?? "
|
13544
|
+
backgroundColor: ((_a6 = colors2[props.colorScheme]) == null ? void 0 : _a6[100]) ?? "default",
|
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
|
+
}
|
13534
13704
|
};
|
13535
13705
|
}
|
13536
13706
|
};
|
@@ -13635,12 +13805,12 @@ var brandTheme = {
|
|
13635
13805
|
};
|
13636
13806
|
var BaseToast = ({ children, variant, id }) => {
|
13637
13807
|
const styles3 = useStyleConfig("Toast", { variant });
|
13638
|
-
return /* @__PURE__ */
|
13808
|
+
return /* @__PURE__ */ React71__default.createElement(Flex, { sx: styles3, id }, /* @__PURE__ */ React71__default.createElement(ToastIcon, { variant }), children);
|
13639
13809
|
};
|
13640
13810
|
var ToastIcon = ({ variant }) => {
|
13641
13811
|
const Icon = getIcon3(variant);
|
13642
13812
|
const { t: t2 } = useTranslation();
|
13643
|
-
return /* @__PURE__ */
|
13813
|
+
return /* @__PURE__ */ React71__default.createElement(
|
13644
13814
|
Icon,
|
13645
13815
|
{
|
13646
13816
|
flexShrink: 0,
|
@@ -13690,7 +13860,7 @@ var ActionToast = ({
|
|
13690
13860
|
buttonText,
|
13691
13861
|
id
|
13692
13862
|
}) => {
|
13693
|
-
return /* @__PURE__ */
|
13863
|
+
return /* @__PURE__ */ React71__default.createElement(BaseToast, { variant, id }, /* @__PURE__ */ React71__default.createElement(Box, { marginRight: 2, flexGrow: "1" }, children), /* @__PURE__ */ React71__default.createElement(Button, { variant: "tertiary", size: "sm", onClick }, buttonText));
|
13694
13864
|
};
|
13695
13865
|
var ClosableToast = ({
|
13696
13866
|
children,
|
@@ -13700,13 +13870,13 @@ var ClosableToast = ({
|
|
13700
13870
|
}) => {
|
13701
13871
|
const styles3 = useMultiStyleConfig("Toast", { variant });
|
13702
13872
|
const { t: t2 } = useTranslation();
|
13703
|
-
return /* @__PURE__ */
|
13873
|
+
return /* @__PURE__ */ React71__default.createElement(BaseToast, { variant, id }, /* @__PURE__ */ React71__default.createElement(Box, { flexGrow: "1" }, children), /* @__PURE__ */ React71__default.createElement(
|
13704
13874
|
IconButton,
|
13705
13875
|
{
|
13706
13876
|
sx: styles3.dismissButton,
|
13707
13877
|
variant: "ghost",
|
13708
13878
|
"aria-label": t2(texts27.dismiss),
|
13709
|
-
icon: /* @__PURE__ */
|
13879
|
+
icon: /* @__PURE__ */ React71__default.createElement(CloseFill18Icon, null),
|
13710
13880
|
onClick: onClose
|
13711
13881
|
}
|
13712
13882
|
));
|
@@ -13734,7 +13904,7 @@ var useToast = () => {
|
|
13734
13904
|
};
|
13735
13905
|
var getToastComponent = (opts) => {
|
13736
13906
|
if ("isClosable" in opts && opts.isClosable) {
|
13737
|
-
return ({ onClose, id }) => /* @__PURE__ */
|
13907
|
+
return ({ onClose, id }) => /* @__PURE__ */ React71__default.createElement(
|
13738
13908
|
ClosableToast,
|
13739
13909
|
{
|
13740
13910
|
id,
|
@@ -13750,7 +13920,7 @@ var getToastComponent = (opts) => {
|
|
13750
13920
|
);
|
13751
13921
|
}
|
13752
13922
|
if ("buttonText" in opts) {
|
13753
|
-
return ({ id }) => /* @__PURE__ */
|
13923
|
+
return ({ id }) => /* @__PURE__ */ React71__default.createElement(
|
13754
13924
|
ActionToast,
|
13755
13925
|
{
|
13756
13926
|
id,
|
@@ -13761,7 +13931,7 @@ var getToastComponent = (opts) => {
|
|
13761
13931
|
opts.text
|
13762
13932
|
);
|
13763
13933
|
}
|
13764
|
-
return ({ id }) => /* @__PURE__ */
|
13934
|
+
return ({ id }) => /* @__PURE__ */ React71__default.createElement(BaseToast, { id, variant: opts.variant }, opts.text);
|
13765
13935
|
};
|
13766
13936
|
var Tooltip = ({
|
13767
13937
|
children,
|
@@ -13774,7 +13944,7 @@ var Tooltip = ({
|
|
13774
13944
|
withCloseButton = false,
|
13775
13945
|
...props
|
13776
13946
|
}) => {
|
13777
|
-
return /* @__PURE__ */
|
13947
|
+
return /* @__PURE__ */ React71__default.createElement(
|
13778
13948
|
Popover,
|
13779
13949
|
{
|
13780
13950
|
onClose,
|
@@ -13786,8 +13956,8 @@ var Tooltip = ({
|
|
13786
13956
|
arrowShadowColor: "none",
|
13787
13957
|
...props
|
13788
13958
|
},
|
13789
|
-
/* @__PURE__ */
|
13790
|
-
/* @__PURE__ */
|
13959
|
+
/* @__PURE__ */ React71__default.createElement(PopoverTrigger, null, children),
|
13960
|
+
/* @__PURE__ */ React71__default.createElement(PopoverContent, null, /* @__PURE__ */ React71__default.createElement(PopoverArrow, null), withCloseButton && /* @__PURE__ */ React71__default.createElement(PopoverCloseButton, null), /* @__PURE__ */ React71__default.createElement(PopoverBody, null, content))
|
13791
13961
|
);
|
13792
13962
|
};
|
13793
13963
|
|
@@ -13896,4 +14066,4 @@ function slugify(text, maxLength = 50) {
|
|
13896
14066
|
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);
|
13897
14067
|
}
|
13898
14068
|
|
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 };
|
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, PressableCard, 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 };
|