@vygruppen/spor-react 3.4.4 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +6 -0
- package/dist/{CountryCodeSelect-7GGNROZW.mjs → CountryCodeSelect-46KAQXG4.mjs} +1 -1
- package/dist/{chunk-QBIZVUPL.mjs → chunk-ELSHBTSG.mjs} +332 -282
- package/dist/index.d.ts +71 -48
- package/dist/index.js +446 -374
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/breadcrumb/Breadcrumb.tsx +37 -0
- package/src/breadcrumb/index.tsx +1 -0
- package/src/index.tsx +1 -0
- package/src/theme/components/breadcrumb.ts +47 -0
- package/src/theme/components/index.ts +1 -0
@@ -1,11 +1,11 @@
|
|
1
|
-
import { forwardRef, Box, Stack as Stack$1, Accordion as Accordion$1, Skeleton as Skeleton$1, useButtonGroup, Button as Button$1, Center, ButtonGroup as ButtonGroup$1, IconButton as IconButton$1, useStyleConfig, Badge as Badge$1, Code as Code$1, Text, useMultiStyleConfig, PopoverAnchor, FormLabel, Flex, useFormControlContext, useBreakpointValue, PopoverContent, PopoverArrow, PopoverBody, FocusLock, Popover, InputGroup, PopoverTrigger, Portal, chakra, Checkbox as Checkbox$1, useCheckbox, FormControl as FormControl$1, InputLeftElement, Input as Input$1, InputRightElement, Select, useDisclosure, 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, SkeletonCircle as SkeletonCircle$1, SkeletonText as SkeletonText$1, Heading as Heading$1, CheckboxGroup as CheckboxGroup$1, List, ListItem, useColorModeValue, useFormControlProps, useFormControl, Drawer as Drawer$1, DrawerOverlay, DrawerCloseButton, DrawerBody, usePopoverContext, DarkMode, PopoverCloseButton, ChakraProvider, HStack, useToast as useToast$1, useInterval } from '@chakra-ui/react';
|
1
|
+
import { forwardRef, Box, Stack as Stack$1, Accordion as Accordion$1, Skeleton as Skeleton$1, useButtonGroup, Button as Button$1, Center, ButtonGroup as ButtonGroup$1, IconButton as IconButton$1, useStyleConfig, Badge as Badge$1, Code as Code$1, Text, useMultiStyleConfig, PopoverAnchor, FormLabel, Flex, useFormControlContext, useBreakpointValue, PopoverContent, PopoverArrow, PopoverBody, FocusLock, Popover, InputGroup, PopoverTrigger, Portal, chakra, Checkbox as Checkbox$1, useCheckbox, FormControl as FormControl$1, InputLeftElement, Input as Input$1, InputRightElement, Select, useDisclosure, 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, SkeletonCircle as SkeletonCircle$1, SkeletonText as SkeletonText$1, Breadcrumb as Breadcrumb$1, BreadcrumbItem as BreadcrumbItem$1, BreadcrumbLink as BreadcrumbLink$1, Heading as Heading$1, CheckboxGroup as CheckboxGroup$1, List, ListItem, useColorModeValue, useFormControlProps, useFormControl, Drawer as Drawer$1, DrawerOverlay, DrawerCloseButton, DrawerBody, usePopoverContext, DarkMode, PopoverCloseButton, ChakraProvider, HStack, useToast as useToast$1, useInterval } from '@chakra-ui/react';
|
2
2
|
export { AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, Box, Center, Collapse, Container, DarkMode, DrawerBody, DrawerCloseButton, DrawerFooter, DrawerOverlay, Fade, Flex, FormHelperText, Grid, GridItem, HStack, Image, Img, InputGroup, LightMode, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalOverlay, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, ScaleFade, SimpleGrid, Slide, SlideFade, Spacer, Tab, TabList, TabPanel, TabPanels, TableCaption, Tbody, Td, Tfoot, Th, Thead, Tr, VStack, Wrap, WrapItem, extendTheme, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useTheme, useToken } from '@chakra-ui/react';
|
3
3
|
import tokens10__default from '@vygruppen/spor-design-tokens';
|
4
4
|
import * as tokens10 from '@vygruppen/spor-design-tokens';
|
5
5
|
export { tokens10 as tokens };
|
6
|
-
import * as
|
7
|
-
import
|
8
|
-
import { CloseFill30Icon, CloseFill24Icon, CloseFill18Icon, CalendarOutline24Icon, CloseOutline24Icon, SearchOutline24Icon, InformationFill24Icon, InformationFill18Icon, WarningFill24Icon, WarningFill18Icon, ErrorFill24Icon, ErrorFill18Icon, LinkOutOutline24Icon,
|
6
|
+
import * as React50 from 'react';
|
7
|
+
import React50__default, { createContext, forwardRef as forwardRef$1, useRef, useState, useEffect, useId, Suspense, useMemo, useContext, useCallback } from 'react';
|
8
|
+
import { CloseFill30Icon, CloseFill24Icon, CloseFill18Icon, CalendarOutline24Icon, CloseOutline24Icon, SearchOutline24Icon, InformationFill24Icon, InformationFill18Icon, WarningFill24Icon, WarningFill18Icon, ErrorFill24Icon, ErrorFill18Icon, LinkOutOutline24Icon, DropdownRightFill18Icon, DropdownLeftFill18Icon, DropdownDownFill18Icon, DropdownDownFill24Icon, DropdownUpFill24Icon, ArrowRightFill18Icon, DropdownLeftFill24Icon, 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, spinnerDarkData, fullScreenLoaderBlackData, inlineLoaderLightData, spinnerLightData } from '@vygruppen/spor-loader';
|
10
10
|
import { useLottie } from 'lottie-react';
|
11
11
|
import { useDateSegment, useDateField, useDatePicker, I18nProvider, usePopover, DismissButton, Overlay, useOverlayTrigger, useButton, useProgressBar, useCalendar, useDateRangePicker, useDialog, useFilter, useComboBox, useListBox, useOption, useListBoxSection, useSelect, HiddenSelect, useCalendarGrid, useRangeCalendar, useTimeField, useCalendarCell } from 'react-aria';
|
@@ -770,7 +770,7 @@ var require_lodash = __commonJS({
|
|
770
770
|
}
|
771
771
|
});
|
772
772
|
var Divider = forwardRef((props, ref) => {
|
773
|
-
return /* @__PURE__ */
|
773
|
+
return /* @__PURE__ */ React50__default.createElement(
|
774
774
|
Box,
|
775
775
|
{
|
776
776
|
as: "hr",
|
@@ -786,18 +786,18 @@ var Divider = forwardRef((props, ref) => {
|
|
786
786
|
});
|
787
787
|
var Stack = forwardRef(
|
788
788
|
({ flexDirection, ...props }, ref) => {
|
789
|
-
return /* @__PURE__ */
|
789
|
+
return /* @__PURE__ */ React50__default.createElement(Stack$1, { ...props, direction: flexDirection, ref });
|
790
790
|
}
|
791
791
|
);
|
792
|
-
var AccordionContext =
|
792
|
+
var AccordionContext = React50__default.createContext(null);
|
793
793
|
var AccordionProvider = ({
|
794
794
|
size: size2,
|
795
795
|
...props
|
796
796
|
}) => {
|
797
|
-
return /* @__PURE__ */
|
797
|
+
return /* @__PURE__ */ React50__default.createElement(AccordionContext.Provider, { value: { size: size2 }, ...props });
|
798
798
|
};
|
799
799
|
var useAccordionContext = () => {
|
800
|
-
const context =
|
800
|
+
const context = React50__default.useContext(AccordionContext);
|
801
801
|
if (context === null) {
|
802
802
|
throw new Error(
|
803
803
|
"useAccordionContext must be used within AccordionProvider"
|
@@ -808,14 +808,14 @@ var useAccordionContext = () => {
|
|
808
808
|
var Accordion = forwardRef(
|
809
809
|
({ children, spacing: spacing3 = 2, ...props }, ref) => {
|
810
810
|
const defaultIndex = typeof props.defaultIndex === "number" && props.allowMultiple ? [props.defaultIndex] : props.defaultIndex;
|
811
|
-
return /* @__PURE__ */
|
811
|
+
return /* @__PURE__ */ React50__default.createElement(AccordionProvider, { size: props.size }, /* @__PURE__ */ React50__default.createElement(
|
812
812
|
Accordion$1,
|
813
813
|
{
|
814
814
|
...props,
|
815
815
|
ref,
|
816
816
|
defaultIndex
|
817
817
|
},
|
818
|
-
/* @__PURE__ */
|
818
|
+
/* @__PURE__ */ React50__default.createElement(Stack, { spacing: spacing3 }, children)
|
819
819
|
));
|
820
820
|
}
|
821
821
|
);
|
@@ -827,7 +827,7 @@ var Expandable = ({
|
|
827
827
|
size: size2 = "md",
|
828
828
|
...rest
|
829
829
|
}) => {
|
830
|
-
return /* @__PURE__ */
|
830
|
+
return /* @__PURE__ */ React50__default.createElement(Accordion, { ...rest, size: size2 }, /* @__PURE__ */ React50__default.createElement(
|
831
831
|
ExpandableItem,
|
832
832
|
{
|
833
833
|
headingLevel,
|
@@ -846,7 +846,7 @@ var ExpandableItem = ({
|
|
846
846
|
}) => {
|
847
847
|
const { size: size2 } = useAccordionContext();
|
848
848
|
warnAboutMismatchingIcon({ icon: leftIcon, size: size2 });
|
849
|
-
return /* @__PURE__ */
|
849
|
+
return /* @__PURE__ */ React50__default.createElement(AccordionItem, { ...rest }, /* @__PURE__ */ React50__default.createElement(Box, { as: headingLevel }, /* @__PURE__ */ React50__default.createElement(AccordionButton, null, /* @__PURE__ */ React50__default.createElement(Flex, { alignItems: "center" }, leftIcon && /* @__PURE__ */ React50__default.createElement(Box, { marginRight: 1 }, leftIcon), title), /* @__PURE__ */ React50__default.createElement(AccordionIcon, null))), /* @__PURE__ */ React50__default.createElement(AccordionPanel, null, children));
|
850
850
|
};
|
851
851
|
var warnAboutMismatchingIcon = ({ icon, size: size2 }) => {
|
852
852
|
var _a6, _b5;
|
@@ -895,7 +895,7 @@ function LanguageProvider({
|
|
895
895
|
language,
|
896
896
|
children
|
897
897
|
}) {
|
898
|
-
return /* @__PURE__ */
|
898
|
+
return /* @__PURE__ */ React50__default.createElement(LanguageContext.Provider, { value: language }, children);
|
899
899
|
}
|
900
900
|
function useLanguage() {
|
901
901
|
const language = useContext(LanguageContext);
|
@@ -927,11 +927,11 @@ function useHydrated() {
|
|
927
927
|
// src/loader/ClientOnly.tsx
|
928
928
|
var ClientOnly = ({ children, fallback = null }) => {
|
929
929
|
const isHydrated = useHydrated();
|
930
|
-
return /* @__PURE__ */
|
930
|
+
return /* @__PURE__ */ React50__default.createElement(React50__default.Fragment, null, isHydrated ? children() : fallback);
|
931
931
|
};
|
932
932
|
function Lottie({ animationData }) {
|
933
933
|
const { View } = useLottie({ animationData, loop: true });
|
934
|
-
return /* @__PURE__ */
|
934
|
+
return /* @__PURE__ */ React50__default.createElement(React50__default.Fragment, null, View);
|
935
935
|
}
|
936
936
|
|
937
937
|
// src/loader/ColorInlineLoader.tsx
|
@@ -940,7 +940,7 @@ var ColorInlineLoader = ({
|
|
940
940
|
maxWidth,
|
941
941
|
...props
|
942
942
|
}) => {
|
943
|
-
return /* @__PURE__ */
|
943
|
+
return /* @__PURE__ */ React50__default.createElement(Center, { ...props }, /* @__PURE__ */ React50__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React50__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React50__default.createElement(Lottie, { animationData: inlineLoaderColorData }))));
|
944
944
|
};
|
945
945
|
var ColorSpinner = ({
|
946
946
|
children,
|
@@ -948,24 +948,24 @@ var ColorSpinner = ({
|
|
948
948
|
maxWidth,
|
949
949
|
...props
|
950
950
|
}) => {
|
951
|
-
return /* @__PURE__ */
|
951
|
+
return /* @__PURE__ */ React50__default.createElement(Center, { flexDirection: "column", ...props }, /* @__PURE__ */ React50__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React50__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React50__default.createElement(Lottie, { animationData: spinnerColorData }))), children && /* @__PURE__ */ React50__default.createElement(Box, { mt: 3, fontWeight: "bold" }, children));
|
952
952
|
};
|
953
953
|
var ContentLoader = ({ children, ...props }) => {
|
954
|
-
return /* @__PURE__ */
|
954
|
+
return /* @__PURE__ */ React50__default.createElement(Box, { ...props }, /* @__PURE__ */ React50__default.createElement(Box, { maxWidth: "140px", mx: "auto" }, /* @__PURE__ */ React50__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React50__default.createElement(Lottie, { animationData: contentLoaderData }))), children && /* @__PURE__ */ React50__default.createElement(Box, { textAlign: "center", fontWeight: "bold" }, children));
|
955
955
|
};
|
956
956
|
var DarkFullScreenLoader = ({
|
957
957
|
width,
|
958
958
|
maxWidth,
|
959
959
|
...props
|
960
960
|
}) => {
|
961
|
-
return /* @__PURE__ */
|
961
|
+
return /* @__PURE__ */ React50__default.createElement(Center, { height: "100%", background: "darkTeal", ...props }, /* @__PURE__ */ React50__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React50__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React50__default.createElement(Lottie, { animationData: fullScreenLoaderWhiteData }))));
|
962
962
|
};
|
963
963
|
var DarkInlineLoader = ({
|
964
964
|
width,
|
965
965
|
maxWidth,
|
966
966
|
...props
|
967
967
|
}) => {
|
968
|
-
return /* @__PURE__ */
|
968
|
+
return /* @__PURE__ */ React50__default.createElement(Center, { ...props }, /* @__PURE__ */ React50__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React50__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React50__default.createElement(Lottie, { animationData: inlineLoaderDarkData }))));
|
969
969
|
};
|
970
970
|
var DarkSpinner = ({
|
971
971
|
children,
|
@@ -973,21 +973,21 @@ var DarkSpinner = ({
|
|
973
973
|
maxWidth,
|
974
974
|
...props
|
975
975
|
}) => {
|
976
|
-
return /* @__PURE__ */
|
976
|
+
return /* @__PURE__ */ React50__default.createElement(Center, { flexDirection: "column", ...props }, /* @__PURE__ */ React50__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React50__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React50__default.createElement(Lottie, { animationData: spinnerDarkData }))), children && /* @__PURE__ */ React50__default.createElement(Box, { marginTop: 3, fontWeight: "bold" }, children));
|
977
977
|
};
|
978
978
|
var LightFullScreenLoader = ({
|
979
979
|
width,
|
980
980
|
maxWidth,
|
981
981
|
...props
|
982
982
|
}) => {
|
983
|
-
return /* @__PURE__ */
|
983
|
+
return /* @__PURE__ */ React50__default.createElement(Center, { height: "100%", background: "white", ...props }, /* @__PURE__ */ React50__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React50__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React50__default.createElement(Lottie, { animationData: fullScreenLoaderBlackData }))));
|
984
984
|
};
|
985
985
|
var LightInlineLoader = ({
|
986
986
|
width,
|
987
987
|
maxWidth,
|
988
988
|
...props
|
989
989
|
}) => {
|
990
|
-
return /* @__PURE__ */
|
990
|
+
return /* @__PURE__ */ React50__default.createElement(Center, { ...props }, /* @__PURE__ */ React50__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React50__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React50__default.createElement(Lottie, { animationData: inlineLoaderLightData }))));
|
991
991
|
};
|
992
992
|
var LightSpinner = ({
|
993
993
|
children,
|
@@ -995,7 +995,7 @@ var LightSpinner = ({
|
|
995
995
|
maxWidth,
|
996
996
|
...props
|
997
997
|
}) => {
|
998
|
-
return /* @__PURE__ */
|
998
|
+
return /* @__PURE__ */ React50__default.createElement(Center, { flexDirection: "column", ...props }, /* @__PURE__ */ React50__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React50__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React50__default.createElement(Lottie, { animationData: spinnerLightData }))), children && /* @__PURE__ */ React50__default.createElement(Box, { mt: 3, fontWeight: "bold" }, children));
|
999
999
|
};
|
1000
1000
|
var useRotatingLabel = ({ label, delay }) => {
|
1001
1001
|
const loadingTextArray = useMemo(
|
@@ -1031,7 +1031,7 @@ var ProgressBar = ({
|
|
1031
1031
|
value,
|
1032
1032
|
"aria-label": ariaLabel || t2(texts.label(value))
|
1033
1033
|
});
|
1034
|
-
return /* @__PURE__ */
|
1034
|
+
return /* @__PURE__ */ React50__default.createElement(React50__default.Fragment, null, /* @__PURE__ */ React50__default.createElement(
|
1035
1035
|
Box,
|
1036
1036
|
{
|
1037
1037
|
...progressBarProps,
|
@@ -1039,7 +1039,7 @@ var ProgressBar = ({
|
|
1039
1039
|
minWidth: "100px",
|
1040
1040
|
...rest
|
1041
1041
|
},
|
1042
|
-
/* @__PURE__ */
|
1042
|
+
/* @__PURE__ */ React50__default.createElement(
|
1043
1043
|
Flex,
|
1044
1044
|
{
|
1045
1045
|
backgroundColor: "coralGreen",
|
@@ -1048,7 +1048,7 @@ var ProgressBar = ({
|
|
1048
1048
|
justifyContent: "flex-start",
|
1049
1049
|
marginX: "auto"
|
1050
1050
|
},
|
1051
|
-
/* @__PURE__ */
|
1051
|
+
/* @__PURE__ */ React50__default.createElement(
|
1052
1052
|
Box,
|
1053
1053
|
{
|
1054
1054
|
backgroundColor: "greenHaze",
|
@@ -1060,7 +1060,7 @@ var ProgressBar = ({
|
|
1060
1060
|
}
|
1061
1061
|
)
|
1062
1062
|
),
|
1063
|
-
currentLoadingText && /* @__PURE__ */
|
1063
|
+
currentLoadingText && /* @__PURE__ */ React50__default.createElement(
|
1064
1064
|
Text,
|
1065
1065
|
{
|
1066
1066
|
textAlign: "center",
|
@@ -1103,7 +1103,7 @@ var ProgressLoader = ({
|
|
1103
1103
|
const progressPathLength = ((_a6 = pathRef.current) == null ? void 0 : _a6.getTotalLength()) ?? 0;
|
1104
1104
|
const progress = (value - 100) / 100 * progressPathLength;
|
1105
1105
|
const id = useId();
|
1106
|
-
return /* @__PURE__ */
|
1106
|
+
return /* @__PURE__ */ React50__default.createElement(Box, { ...progressBarProps, minWidth: "100px", width, ...rest }, /* @__PURE__ */ React50__default.createElement(Box, { as: "svg", viewBox: "0 0 246 78", fill: "none" }, /* @__PURE__ */ React50__default.createElement(
|
1107
1107
|
Box,
|
1108
1108
|
{
|
1109
1109
|
as: "path",
|
@@ -1111,7 +1111,7 @@ var ProgressLoader = ({
|
|
1111
1111
|
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",
|
1112
1112
|
fill: "#FFB466"
|
1113
1113
|
}
|
1114
|
-
), /* @__PURE__ */
|
1114
|
+
), /* @__PURE__ */ React50__default.createElement(
|
1115
1115
|
Box,
|
1116
1116
|
{
|
1117
1117
|
as: "path",
|
@@ -1122,7 +1122,7 @@ var ProgressLoader = ({
|
|
1122
1122
|
strokeLinecap: "round",
|
1123
1123
|
strokeLinejoin: "round"
|
1124
1124
|
}
|
1125
|
-
), /* @__PURE__ */
|
1125
|
+
), /* @__PURE__ */ React50__default.createElement(
|
1126
1126
|
Box,
|
1127
1127
|
{
|
1128
1128
|
as: "path",
|
@@ -1137,7 +1137,7 @@ var ProgressLoader = ({
|
|
1137
1137
|
transition: "stroke-dashoffset .2s ease-out",
|
1138
1138
|
ref: pathRef
|
1139
1139
|
}
|
1140
|
-
), /* @__PURE__ */
|
1140
|
+
), /* @__PURE__ */ React50__default.createElement(
|
1141
1141
|
Box,
|
1142
1142
|
{
|
1143
1143
|
as: "path",
|
@@ -1145,7 +1145,7 @@ var ProgressLoader = ({
|
|
1145
1145
|
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",
|
1146
1146
|
fill: "#688CBA"
|
1147
1147
|
}
|
1148
|
-
)), currentLoadingText && /* @__PURE__ */
|
1148
|
+
)), currentLoadingText && /* @__PURE__ */ React50__default.createElement(
|
1149
1149
|
Text,
|
1150
1150
|
{
|
1151
1151
|
textAlign: "center",
|
@@ -1164,9 +1164,9 @@ var texts2 = createTexts({
|
|
1164
1164
|
en: `${value}% done`
|
1165
1165
|
})
|
1166
1166
|
});
|
1167
|
-
var Skeleton = forwardRef((props, ref) => /* @__PURE__ */
|
1168
|
-
var SkeletonCircle = (props) => /* @__PURE__ */
|
1169
|
-
var SkeletonText = (props) => /* @__PURE__ */
|
1167
|
+
var Skeleton = forwardRef((props, ref) => /* @__PURE__ */ React50__default.createElement(Skeleton$1, { ...props, ref }));
|
1168
|
+
var SkeletonCircle = (props) => /* @__PURE__ */ React50__default.createElement(SkeletonCircle$1, { boxSize: 6, borderRadius: "50%", ...props });
|
1169
|
+
var SkeletonText = (props) => /* @__PURE__ */ React50__default.createElement(SkeletonText$1, { boxSize: 6, ...props });
|
1170
1170
|
|
1171
1171
|
// src/button/Button.tsx
|
1172
1172
|
var Button = forwardRef((props, ref) => {
|
@@ -1183,7 +1183,7 @@ var Button = forwardRef((props, ref) => {
|
|
1183
1183
|
const buttonGroup = useButtonGroup();
|
1184
1184
|
const finalVariant = variant ?? (buttonGroup == null ? void 0 : buttonGroup.variant) ?? "primary";
|
1185
1185
|
const finalSize = size2 ?? (buttonGroup == null ? void 0 : buttonGroup.size) ?? "md";
|
1186
|
-
return /* @__PURE__ */
|
1186
|
+
return /* @__PURE__ */ React50__default.createElement(
|
1187
1187
|
Button$1,
|
1188
1188
|
{
|
1189
1189
|
size: finalSize,
|
@@ -1193,11 +1193,11 @@ var Button = forwardRef((props, ref) => {
|
|
1193
1193
|
"aria-label": ariaLabel,
|
1194
1194
|
"aria-busy": isLoading,
|
1195
1195
|
isDisabled: isDisabled || isLoading,
|
1196
|
-
leftIcon: isLoading && leftIcon ? /* @__PURE__ */
|
1197
|
-
rightIcon: isLoading && rightIcon ? /* @__PURE__ */
|
1196
|
+
leftIcon: isLoading && leftIcon ? /* @__PURE__ */ React50__default.createElement(Box, { visibility: isLoading ? "hidden" : "visible", "aria-hidden": "true" }, leftIcon) : leftIcon,
|
1197
|
+
rightIcon: isLoading && rightIcon ? /* @__PURE__ */ React50__default.createElement(Box, { visibility: isLoading ? "hidden" : "visible", "aria-hidden": "true" }, rightIcon) : rightIcon,
|
1198
1198
|
position: "relative"
|
1199
1199
|
},
|
1200
|
-
isLoading && /* @__PURE__ */
|
1200
|
+
isLoading && /* @__PURE__ */ React50__default.createElement(
|
1201
1201
|
Center,
|
1202
1202
|
{
|
1203
1203
|
position: "absolute",
|
@@ -1206,7 +1206,7 @@ var Button = forwardRef((props, ref) => {
|
|
1206
1206
|
left: "0",
|
1207
1207
|
paddingTop: 2
|
1208
1208
|
},
|
1209
|
-
/* @__PURE__ */
|
1209
|
+
/* @__PURE__ */ React50__default.createElement(
|
1210
1210
|
ColorInlineLoader,
|
1211
1211
|
{
|
1212
1212
|
maxWidth: getLoaderWidth(finalSize),
|
@@ -1215,7 +1215,7 @@ var Button = forwardRef((props, ref) => {
|
|
1215
1215
|
}
|
1216
1216
|
)
|
1217
1217
|
),
|
1218
|
-
/* @__PURE__ */
|
1218
|
+
/* @__PURE__ */ React50__default.createElement(Box, { visibility: isLoading ? "hidden" : "visible" }, children)
|
1219
1219
|
);
|
1220
1220
|
});
|
1221
1221
|
function getLoaderWidth(size2) {
|
@@ -1246,14 +1246,14 @@ var texts3 = createTexts({
|
|
1246
1246
|
sv: "Laddar\u2026"
|
1247
1247
|
}
|
1248
1248
|
});
|
1249
|
-
var ButtonGroup = forwardRef((props, ref) => /* @__PURE__ */
|
1249
|
+
var ButtonGroup = forwardRef((props, ref) => /* @__PURE__ */ React50__default.createElement(ButtonGroup$1, { ...props, ref }));
|
1250
1250
|
var IconButton = forwardRef(
|
1251
|
-
({ ...props }, ref) => /* @__PURE__ */
|
1251
|
+
({ ...props }, ref) => /* @__PURE__ */ React50__default.createElement(
|
1252
1252
|
IconButton$1,
|
1253
1253
|
{
|
1254
1254
|
title: props["aria-label"],
|
1255
1255
|
...props,
|
1256
|
-
spinner: /* @__PURE__ */
|
1256
|
+
spinner: /* @__PURE__ */ React50__default.createElement(ColorSpinner, { m: 1 }),
|
1257
1257
|
ref
|
1258
1258
|
}
|
1259
1259
|
)
|
@@ -1263,7 +1263,7 @@ var IconButton = forwardRef(
|
|
1263
1263
|
var CloseButton = forwardRef(
|
1264
1264
|
({ size: size2 = "sm", ...props }, ref) => {
|
1265
1265
|
const { t: t2 } = useTranslation();
|
1266
|
-
return /* @__PURE__ */
|
1266
|
+
return /* @__PURE__ */ React50__default.createElement(
|
1267
1267
|
IconButton,
|
1268
1268
|
{
|
1269
1269
|
ref,
|
@@ -1280,11 +1280,11 @@ var getIcon = (size2) => {
|
|
1280
1280
|
switch (size2) {
|
1281
1281
|
case "xs":
|
1282
1282
|
case "sm":
|
1283
|
-
return /* @__PURE__ */
|
1283
|
+
return /* @__PURE__ */ React50__default.createElement(CloseFill18Icon, null);
|
1284
1284
|
case "md":
|
1285
|
-
return /* @__PURE__ */
|
1285
|
+
return /* @__PURE__ */ React50__default.createElement(CloseFill24Icon, null);
|
1286
1286
|
case "lg":
|
1287
|
-
return /* @__PURE__ */
|
1287
|
+
return /* @__PURE__ */ React50__default.createElement(CloseFill30Icon, null);
|
1288
1288
|
}
|
1289
1289
|
};
|
1290
1290
|
var texts4 = createTexts({
|
@@ -1304,11 +1304,11 @@ var FloatingActionButton = ({
|
|
1304
1304
|
placement = "bottom right",
|
1305
1305
|
...props
|
1306
1306
|
}) => {
|
1307
|
-
const [isTextVisible, setIsTextVisible] =
|
1307
|
+
const [isTextVisible, setIsTextVisible] = React50__default.useState(
|
1308
1308
|
externalIsTextVisible !== void 0 ? externalIsTextVisible : true
|
1309
1309
|
);
|
1310
1310
|
const scrollDirection = useScrollDirection();
|
1311
|
-
|
1311
|
+
React50__default.useEffect(() => {
|
1312
1312
|
if (externalIsTextVisible !== void 0) {
|
1313
1313
|
return;
|
1314
1314
|
}
|
@@ -1318,7 +1318,7 @@ var FloatingActionButton = ({
|
|
1318
1318
|
);
|
1319
1319
|
return () => window.clearTimeout(id);
|
1320
1320
|
}, [scrollDirection, externalIsTextVisible]);
|
1321
|
-
|
1321
|
+
React50__default.useEffect(() => {
|
1322
1322
|
setIsTextVisible(!!externalIsTextVisible);
|
1323
1323
|
}, [externalIsTextVisible]);
|
1324
1324
|
const style = useMultiStyleConfig("FloatingActionButton", {
|
@@ -1326,7 +1326,7 @@ var FloatingActionButton = ({
|
|
1326
1326
|
isTextVisible,
|
1327
1327
|
placement
|
1328
1328
|
});
|
1329
|
-
return /* @__PURE__ */
|
1329
|
+
return /* @__PURE__ */ React50__default.createElement(
|
1330
1330
|
MotionBox,
|
1331
1331
|
{
|
1332
1332
|
__css: style.container,
|
@@ -1334,8 +1334,8 @@ var FloatingActionButton = ({
|
|
1334
1334
|
"aria-label": children,
|
1335
1335
|
...props
|
1336
1336
|
},
|
1337
|
-
/* @__PURE__ */
|
1338
|
-
/* @__PURE__ */
|
1337
|
+
/* @__PURE__ */ React50__default.createElement(Box, { __css: style.icon }, icon),
|
1338
|
+
/* @__PURE__ */ React50__default.createElement(
|
1339
1339
|
MotionBox,
|
1340
1340
|
{
|
1341
1341
|
animate: isTextVisible ? "show" : "hide",
|
@@ -1359,9 +1359,9 @@ var FloatingActionButton = ({
|
|
1359
1359
|
);
|
1360
1360
|
};
|
1361
1361
|
var useScrollDirection = () => {
|
1362
|
-
const [scrollDirection, setScrollDirection] =
|
1363
|
-
const lastScrollPosition =
|
1364
|
-
|
1362
|
+
const [scrollDirection, setScrollDirection] = React50__default.useState(null);
|
1363
|
+
const lastScrollPosition = React50__default.useRef(window.scrollY);
|
1364
|
+
React50__default.useEffect(() => {
|
1365
1365
|
const onScroll = () => {
|
1366
1366
|
const delta = window.scrollY - lastScrollPosition.current;
|
1367
1367
|
if (delta === 0) {
|
@@ -1380,7 +1380,7 @@ var useScrollDirection = () => {
|
|
1380
1380
|
var AlertIcon = ({ variant }) => {
|
1381
1381
|
const Icon = getIcon2(variant);
|
1382
1382
|
const { t: t2 } = useTranslation();
|
1383
|
-
return /* @__PURE__ */
|
1383
|
+
return /* @__PURE__ */ React50__default.createElement(
|
1384
1384
|
Icon,
|
1385
1385
|
{
|
1386
1386
|
flexShrink: 0,
|
@@ -1438,7 +1438,7 @@ var texts5 = createTexts({
|
|
1438
1438
|
});
|
1439
1439
|
var BaseAlert = ({ variant, children, ...boxProps }) => {
|
1440
1440
|
const styles2 = useMultiStyleConfig("Alert", { variant });
|
1441
|
-
return /* @__PURE__ */
|
1441
|
+
return /* @__PURE__ */ React50__default.createElement(Box, { sx: styles2.container, ...boxProps }, children);
|
1442
1442
|
};
|
1443
1443
|
|
1444
1444
|
// src/alert/ClosableAlert.tsx
|
@@ -1458,17 +1458,17 @@ var ClosableAlert = ({
|
|
1458
1458
|
externalOnClose();
|
1459
1459
|
onClose();
|
1460
1460
|
};
|
1461
|
-
return /* @__PURE__ */
|
1461
|
+
return /* @__PURE__ */ React50__default.createElement(BaseAlert, { variant }, /* @__PURE__ */ React50__default.createElement(
|
1462
1462
|
IconButton,
|
1463
1463
|
{
|
1464
1464
|
variant: "ghost",
|
1465
1465
|
size: "sm",
|
1466
1466
|
onClick: handleClose,
|
1467
|
-
icon: /* @__PURE__ */
|
1467
|
+
icon: /* @__PURE__ */ React50__default.createElement(CloseFill18Icon, null),
|
1468
1468
|
"aria-label": t2(texts6.close),
|
1469
1469
|
sx: styles2.closeButton
|
1470
1470
|
}
|
1471
|
-
), /* @__PURE__ */
|
1471
|
+
), /* @__PURE__ */ React50__default.createElement(AlertIcon, { variant }), children);
|
1472
1472
|
};
|
1473
1473
|
var texts6 = createTexts({
|
1474
1474
|
close: {
|
@@ -1488,7 +1488,7 @@ var ExpandableAlert = ({
|
|
1488
1488
|
},
|
1489
1489
|
...boxProps
|
1490
1490
|
}) => {
|
1491
|
-
return /* @__PURE__ */
|
1491
|
+
return /* @__PURE__ */ React50__default.createElement(BaseAlert, { variant, paddingX: 0, paddingY: 0, padding: 0, ...boxProps }, /* @__PURE__ */ React50__default.createElement(
|
1492
1492
|
Accordion$1,
|
1493
1493
|
{
|
1494
1494
|
onChange: (expandedIndex) => onToggle(expandedIndex === 0),
|
@@ -1496,14 +1496,14 @@ var ExpandableAlert = ({
|
|
1496
1496
|
allowToggle: true,
|
1497
1497
|
flexGrow: "1"
|
1498
1498
|
},
|
1499
|
-
/* @__PURE__ */
|
1499
|
+
/* @__PURE__ */ React50__default.createElement(AccordionItem, null, /* @__PURE__ */ React50__default.createElement(AccordionButton, { paddingX: 3, paddingY: 2 }, /* @__PURE__ */ React50__default.createElement(
|
1500
1500
|
Flex,
|
1501
1501
|
{
|
1502
1502
|
justifyContent: "space-between",
|
1503
1503
|
alignItems: "center",
|
1504
1504
|
flexGrow: "1"
|
1505
1505
|
},
|
1506
|
-
/* @__PURE__ */
|
1506
|
+
/* @__PURE__ */ React50__default.createElement(Flex, { as: headingLevel }, /* @__PURE__ */ React50__default.createElement(AlertIcon, { variant }), /* @__PURE__ */ React50__default.createElement(
|
1507
1507
|
Box,
|
1508
1508
|
{
|
1509
1509
|
as: "span",
|
@@ -1517,20 +1517,31 @@ var ExpandableAlert = ({
|
|
1517
1517
|
},
|
1518
1518
|
title
|
1519
1519
|
)),
|
1520
|
-
/* @__PURE__ */
|
1521
|
-
)), /* @__PURE__ */
|
1520
|
+
/* @__PURE__ */ React50__default.createElement(AccordionIcon, null)
|
1521
|
+
)), /* @__PURE__ */ React50__default.createElement(AccordionPanel, null, children))
|
1522
1522
|
));
|
1523
1523
|
};
|
1524
1524
|
var StaticAlert = ({ children, ...props }) => {
|
1525
|
-
return /* @__PURE__ */
|
1525
|
+
return /* @__PURE__ */ React50__default.createElement(BaseAlert, { ...props }, /* @__PURE__ */ React50__default.createElement(AlertIcon, { variant: props.variant }), children);
|
1526
1526
|
};
|
1527
|
+
var Breadcrumb = (props) => {
|
1528
|
+
return /* @__PURE__ */ React50__default.createElement(
|
1529
|
+
Breadcrumb$1,
|
1530
|
+
{
|
1531
|
+
separator: /* @__PURE__ */ React50__default.createElement(DropdownRightFill18Icon, { color: "blackAlpha.400" }),
|
1532
|
+
...props
|
1533
|
+
}
|
1534
|
+
);
|
1535
|
+
};
|
1536
|
+
var BreadcrumbItem = BreadcrumbItem$1;
|
1537
|
+
var BreadcrumbLink = BreadcrumbLink$1;
|
1527
1538
|
var Card = forwardRef(
|
1528
1539
|
({ size: size2 = "sm", colorScheme = "white", children, ...props }, ref) => {
|
1529
1540
|
const styles2 = useStyleConfig("Card", {
|
1530
1541
|
colorScheme,
|
1531
1542
|
size: size2
|
1532
1543
|
});
|
1533
|
-
return /* @__PURE__ */
|
1544
|
+
return /* @__PURE__ */ React50__default.createElement(Box, { __css: styles2, ...props, ref }, children);
|
1534
1545
|
}
|
1535
1546
|
);
|
1536
1547
|
function $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, defaultValue, onChange) {
|
@@ -3263,7 +3274,7 @@ function $9a36b6ba2fb1a7c5$var$nextUnavailableDate(anchorDate, state2, dir) {
|
|
3263
3274
|
}
|
3264
3275
|
var Badge = forwardRef(
|
3265
3276
|
({ icon, colorScheme = "grey", children, ...props }, ref) => {
|
3266
|
-
return /* @__PURE__ */
|
3277
|
+
return /* @__PURE__ */ React50__default.createElement(
|
3267
3278
|
Badge$1,
|
3268
3279
|
{
|
3269
3280
|
colorScheme,
|
@@ -3271,22 +3282,22 @@ var Badge = forwardRef(
|
|
3271
3282
|
paddingLeft: icon ? 1 : void 0,
|
3272
3283
|
ref
|
3273
3284
|
},
|
3274
|
-
icon &&
|
3285
|
+
icon && React50__default.cloneElement(icon, { marginRight: 1 }),
|
3275
3286
|
children
|
3276
3287
|
);
|
3277
3288
|
}
|
3278
3289
|
);
|
3279
|
-
var Code = forwardRef((props, ref) => /* @__PURE__ */
|
3290
|
+
var Code = forwardRef((props, ref) => /* @__PURE__ */ React50__default.createElement(Code$1, { ...props, ref }));
|
3280
3291
|
var Heading = ({
|
3281
3292
|
as,
|
3282
3293
|
variant = "xl-display",
|
3283
3294
|
...props
|
3284
3295
|
}) => {
|
3285
|
-
return /* @__PURE__ */
|
3296
|
+
return /* @__PURE__ */ React50__default.createElement(Text, { as, textStyle: variant, ...props });
|
3286
3297
|
};
|
3287
3298
|
var Text4 = forwardRef(
|
3288
3299
|
({ variant = "sm", ...props }, ref) => {
|
3289
|
-
return /* @__PURE__ */
|
3300
|
+
return /* @__PURE__ */ React50__default.createElement(Text, { ...props, textStyle: variant, ref });
|
3290
3301
|
}
|
3291
3302
|
);
|
3292
3303
|
function CalendarCell({ state: state2, date, currentMonth }) {
|
@@ -3324,7 +3335,7 @@ function CalendarCell({ state: state2, date, currentMonth }) {
|
|
3324
3335
|
{ passive: false, once: true }
|
3325
3336
|
);
|
3326
3337
|
}, []);
|
3327
|
-
return /* @__PURE__ */
|
3338
|
+
return /* @__PURE__ */ React50__default.createElement(
|
3328
3339
|
Box,
|
3329
3340
|
{
|
3330
3341
|
as: "td",
|
@@ -3347,7 +3358,7 @@ function CalendarCell({ state: state2, date, currentMonth }) {
|
|
3347
3358
|
}
|
3348
3359
|
}
|
3349
3360
|
},
|
3350
|
-
/* @__PURE__ */
|
3361
|
+
/* @__PURE__ */ React50__default.createElement(
|
3351
3362
|
Box,
|
3352
3363
|
{
|
3353
3364
|
as: "button",
|
@@ -3406,8 +3417,8 @@ function CalendarGrid({ state: state2, offset = {} }) {
|
|
3406
3417
|
const weeksInMonth = getWeeksInMonth(state2.visibleRange.start, locale);
|
3407
3418
|
const weeksInMonthRange = new Array(weeksInMonth).fill(0).map((_, i) => i);
|
3408
3419
|
const styles2 = useMultiStyleConfig("Datepicker", {});
|
3409
|
-
return /* @__PURE__ */
|
3410
|
-
return /* @__PURE__ */
|
3420
|
+
return /* @__PURE__ */ React50__default.createElement("table", { ...gridProps }, /* @__PURE__ */ React50__default.createElement("thead", { ...headerProps }, /* @__PURE__ */ React50__default.createElement("tr", null, weekDays[language].map((day, index) => {
|
3421
|
+
return /* @__PURE__ */ React50__default.createElement(
|
3411
3422
|
Text4,
|
3412
3423
|
{
|
3413
3424
|
as: "th",
|
@@ -3417,8 +3428,8 @@ function CalendarGrid({ state: state2, offset = {} }) {
|
|
3417
3428
|
},
|
3418
3429
|
day
|
3419
3430
|
);
|
3420
|
-
}))), /* @__PURE__ */
|
3421
|
-
(date, dayIndex) => date ? /* @__PURE__ */
|
3431
|
+
}))), /* @__PURE__ */ React50__default.createElement("tbody", null, weeksInMonthRange.map((weekIndex) => /* @__PURE__ */ React50__default.createElement("tr", { key: weekIndex }, state2.getDatesInWeek(weekIndex, startDate).map(
|
3432
|
+
(date, dayIndex) => date ? /* @__PURE__ */ React50__default.createElement(
|
3422
3433
|
CalendarCell,
|
3423
3434
|
{
|
3424
3435
|
key: dayIndex,
|
@@ -3426,7 +3437,7 @@ function CalendarGrid({ state: state2, offset = {} }) {
|
|
3426
3437
|
date,
|
3427
3438
|
currentMonth: startDate
|
3428
3439
|
}
|
3429
|
-
) : /* @__PURE__ */
|
3440
|
+
) : /* @__PURE__ */ React50__default.createElement("td", { key: dayIndex })
|
3430
3441
|
)))));
|
3431
3442
|
}
|
3432
3443
|
function CalendarNavigationButton({
|
@@ -3436,7 +3447,7 @@ function CalendarNavigationButton({
|
|
3436
3447
|
}) {
|
3437
3448
|
const ref = useRef(null);
|
3438
3449
|
const { buttonProps } = useButton(rest, ref);
|
3439
|
-
return /* @__PURE__ */
|
3450
|
+
return /* @__PURE__ */ React50__default.createElement(
|
3440
3451
|
IconButton,
|
3441
3452
|
{
|
3442
3453
|
...buttonProps,
|
@@ -3470,7 +3481,7 @@ function CalendarHeader({
|
|
3470
3481
|
);
|
3471
3482
|
const areAllOtherYearsDisabled = isPreviousYearDisabled && isNextYearDisabled;
|
3472
3483
|
const isYearPickerVisible = showYearNavigation && !areAllOtherYearsDisabled;
|
3473
|
-
return /* @__PURE__ */
|
3484
|
+
return /* @__PURE__ */ React50__default.createElement(Flex, { alignItems: "center", paddingBottom: "4", justifyContent: "space-between" }, /* @__PURE__ */ React50__default.createElement(
|
3474
3485
|
CalendarNavigator,
|
3475
3486
|
{
|
3476
3487
|
title: title ? title : isYearPickerVisible ? monthTitle : monthAndYearTitle,
|
@@ -3480,7 +3491,7 @@ function CalendarHeader({
|
|
3480
3491
|
isNextDisabled: !state2.isPreviousVisibleRangeInvalid,
|
3481
3492
|
isPreviousDisabled: !state2.isNextVisibleRangeInvalid
|
3482
3493
|
}
|
3483
|
-
), isYearPickerVisible && /* @__PURE__ */
|
3494
|
+
), isYearPickerVisible && /* @__PURE__ */ React50__default.createElement(
|
3484
3495
|
CalendarNavigator,
|
3485
3496
|
{
|
3486
3497
|
title: jsDate.getFullYear().toString(),
|
@@ -3502,15 +3513,15 @@ var CalendarNavigator = ({
|
|
3502
3513
|
isNextDisabled
|
3503
3514
|
}) => {
|
3504
3515
|
const { t: t2 } = useTranslation();
|
3505
|
-
return /* @__PURE__ */
|
3516
|
+
return /* @__PURE__ */ React50__default.createElement(Flex, { alignItems: "center", flexGrow: 1 }, /* @__PURE__ */ React50__default.createElement(
|
3506
3517
|
CalendarNavigationButton,
|
3507
3518
|
{
|
3508
3519
|
onPress: onPrevious,
|
3509
3520
|
isDisabled: isPreviousDisabled,
|
3510
|
-
icon: /* @__PURE__ */
|
3521
|
+
icon: /* @__PURE__ */ React50__default.createElement(ArrowLeftOutline24Icon, null),
|
3511
3522
|
"aria-label": `${t2(texts7.previous)} ${t2(texts7[unit])}`
|
3512
3523
|
}
|
3513
|
-
), /* @__PURE__ */
|
3524
|
+
), /* @__PURE__ */ React50__default.createElement(
|
3514
3525
|
Heading,
|
3515
3526
|
{
|
3516
3527
|
as: "div",
|
@@ -3521,12 +3532,12 @@ var CalendarNavigator = ({
|
|
3521
3532
|
textAlign: "center"
|
3522
3533
|
},
|
3523
3534
|
capitalize(title)
|
3524
|
-
), /* @__PURE__ */
|
3535
|
+
), /* @__PURE__ */ React50__default.createElement(
|
3525
3536
|
CalendarNavigationButton,
|
3526
3537
|
{
|
3527
3538
|
onPress: onNext,
|
3528
3539
|
isDisabled: isNextDisabled,
|
3529
|
-
icon: /* @__PURE__ */
|
3540
|
+
icon: /* @__PURE__ */ React50__default.createElement(ArrowRightOutline24Icon, null),
|
3530
3541
|
"aria-label": `${t2(texts7.next)} ${t2(texts7[unit])}`
|
3531
3542
|
}
|
3532
3543
|
));
|
@@ -3570,7 +3581,7 @@ function Calendar({ showYearNavigation, ...props }) {
|
|
3570
3581
|
const { calendarProps } = useCalendar(props, state2);
|
3571
3582
|
const calendarAriaLabel = calendarProps["aria-label"];
|
3572
3583
|
const ariaLabel = t2(texts8.calendar) + (calendarAriaLabel ? ` ${calendarAriaLabel}` : "");
|
3573
|
-
return /* @__PURE__ */
|
3584
|
+
return /* @__PURE__ */ React50__default.createElement(Box, { ...calendarProps, "aria-label": ariaLabel }, /* @__PURE__ */ React50__default.createElement(CalendarHeader, { state: state2, showYearNavigation }), /* @__PURE__ */ React50__default.createElement(CalendarGrid, { state: state2 }));
|
3574
3585
|
}
|
3575
3586
|
var texts8 = createTexts({
|
3576
3587
|
calendar: {
|
@@ -3591,7 +3602,7 @@ var CalendarTriggerButton = forwardRef(
|
|
3591
3602
|
onPress(event);
|
3592
3603
|
}
|
3593
3604
|
};
|
3594
|
-
return /* @__PURE__ */
|
3605
|
+
return /* @__PURE__ */ React50__default.createElement(PopoverAnchor, null, /* @__PURE__ */ React50__default.createElement(
|
3595
3606
|
Box,
|
3596
3607
|
{
|
3597
3608
|
ref,
|
@@ -3602,7 +3613,7 @@ var CalendarTriggerButton = forwardRef(
|
|
3602
3613
|
...filteredButtonProps,
|
3603
3614
|
onKeyUp: handleOnPress
|
3604
3615
|
},
|
3605
|
-
/* @__PURE__ */
|
3616
|
+
/* @__PURE__ */ React50__default.createElement(CalendarOutline24Icon, null)
|
3606
3617
|
));
|
3607
3618
|
}
|
3608
3619
|
);
|
@@ -3627,7 +3638,7 @@ var DateTimeSegment = forwardRef$1(
|
|
3627
3638
|
isPlaceholder: segment.isPlaceholder,
|
3628
3639
|
isEditable: segment.isEditable
|
3629
3640
|
});
|
3630
|
-
return /* @__PURE__ */
|
3641
|
+
return /* @__PURE__ */ React50__default.createElement(
|
3631
3642
|
Box,
|
3632
3643
|
{
|
3633
3644
|
...segmentProps,
|
@@ -3680,7 +3691,7 @@ var DateField = forwardRef$1(
|
|
3680
3691
|
state2,
|
3681
3692
|
ref
|
3682
3693
|
);
|
3683
|
-
return /* @__PURE__ */
|
3694
|
+
return /* @__PURE__ */ React50__default.createElement(Box, { minWidth: "6rem", width: "100%" }, props.label && /* @__PURE__ */ React50__default.createElement(
|
3684
3695
|
FormLabel,
|
3685
3696
|
{
|
3686
3697
|
...props.labelProps,
|
@@ -3690,7 +3701,7 @@ var DateField = forwardRef$1(
|
|
3690
3701
|
paddingTop: "2px"
|
3691
3702
|
},
|
3692
3703
|
props.label
|
3693
|
-
), /* @__PURE__ */
|
3704
|
+
), /* @__PURE__ */ React50__default.createElement(Flex, { ...fieldProps, paddingTop: "3", paddingBottom: "0.5" }, state2.segments.map((segment, i) => /* @__PURE__ */ React50__default.createElement(
|
3694
3705
|
DateTimeSegment,
|
3695
3706
|
{
|
3696
3707
|
ref: i === 0 ? ref : void 0,
|
@@ -3698,7 +3709,7 @@ var DateField = forwardRef$1(
|
|
3698
3709
|
segment,
|
3699
3710
|
state: state2
|
3700
3711
|
}
|
3701
|
-
))), /* @__PURE__ */
|
3712
|
+
))), /* @__PURE__ */ React50__default.createElement(
|
3702
3713
|
"input",
|
3703
3714
|
{
|
3704
3715
|
type: "hidden",
|
@@ -3714,7 +3725,7 @@ var StyledField = forwardRef(
|
|
3714
3725
|
isInvalid: false
|
3715
3726
|
};
|
3716
3727
|
const styles2 = useMultiStyleConfig("Datepicker", { variant });
|
3717
|
-
return /* @__PURE__ */
|
3728
|
+
return /* @__PURE__ */ React50__default.createElement(
|
3718
3729
|
Box,
|
3719
3730
|
{
|
3720
3731
|
...otherProps,
|
@@ -3770,14 +3781,14 @@ var DatePicker = forwardRef$1(
|
|
3770
3781
|
state2.setOpen(true);
|
3771
3782
|
}
|
3772
3783
|
};
|
3773
|
-
const popoverContent = /* @__PURE__ */
|
3784
|
+
const popoverContent = /* @__PURE__ */ React50__default.createElement(PopoverContent, { color: "darkGrey", boxShadow: "md", sx: styles2.calendar }, /* @__PURE__ */ React50__default.createElement(PopoverArrow, { sx: styles2.arrow }), /* @__PURE__ */ React50__default.createElement(PopoverBody, null, /* @__PURE__ */ React50__default.createElement(FocusLock, null, /* @__PURE__ */ React50__default.createElement(
|
3774
3785
|
Calendar,
|
3775
3786
|
{
|
3776
3787
|
...calendarProps,
|
3777
3788
|
showYearNavigation
|
3778
3789
|
}
|
3779
3790
|
))));
|
3780
|
-
return /* @__PURE__ */
|
3791
|
+
return /* @__PURE__ */ React50__default.createElement(I18nProvider, { locale }, /* @__PURE__ */ React50__default.createElement(
|
3781
3792
|
Box,
|
3782
3793
|
{
|
3783
3794
|
position: "relative",
|
@@ -3785,7 +3796,7 @@ var DatePicker = forwardRef$1(
|
|
3785
3796
|
flexDirection: "column",
|
3786
3797
|
width
|
3787
3798
|
},
|
3788
|
-
/* @__PURE__ */
|
3799
|
+
/* @__PURE__ */ React50__default.createElement(
|
3789
3800
|
Popover,
|
3790
3801
|
{
|
3791
3802
|
...dialogProps,
|
@@ -3793,7 +3804,7 @@ var DatePicker = forwardRef$1(
|
|
3793
3804
|
onOpen: state2.open,
|
3794
3805
|
onClose: state2.close
|
3795
3806
|
},
|
3796
|
-
/* @__PURE__ */
|
3807
|
+
/* @__PURE__ */ React50__default.createElement(InputGroup, { ...groupProps, display: "inline-flex" }, /* @__PURE__ */ React50__default.createElement(PopoverAnchor, null, /* @__PURE__ */ React50__default.createElement(
|
3797
3808
|
StyledField,
|
3798
3809
|
{
|
3799
3810
|
variant: responsiveVariant,
|
@@ -3801,8 +3812,8 @@ var DatePicker = forwardRef$1(
|
|
3801
3812
|
paddingX: 3,
|
3802
3813
|
minHeight
|
3803
3814
|
},
|
3804
|
-
!hasTrigger && /* @__PURE__ */
|
3805
|
-
/* @__PURE__ */
|
3815
|
+
!hasTrigger && /* @__PURE__ */ React50__default.createElement(CalendarOutline24Icon, { marginRight: 2, alignSelf: "center" }),
|
3816
|
+
/* @__PURE__ */ React50__default.createElement(
|
3806
3817
|
DateField,
|
3807
3818
|
{
|
3808
3819
|
label: props.label,
|
@@ -3812,9 +3823,9 @@ var DatePicker = forwardRef$1(
|
|
3812
3823
|
...fieldProps
|
3813
3824
|
}
|
3814
3825
|
)
|
3815
|
-
)), hasTrigger && /* @__PURE__ */
|
3816
|
-
/* @__PURE__ */
|
3817
|
-
state2.isOpen && !props.isDisabled && withPortal && /* @__PURE__ */
|
3826
|
+
)), hasTrigger && /* @__PURE__ */ React50__default.createElement(PopoverTrigger, null, /* @__PURE__ */ React50__default.createElement(CalendarTriggerButton, { ref, ...buttonProps }))),
|
3827
|
+
/* @__PURE__ */ React50__default.createElement(FormErrorMessage, { ...errorMessageProps }, errorMessage),
|
3828
|
+
state2.isOpen && !props.isDisabled && withPortal && /* @__PURE__ */ React50__default.createElement(Portal, null, popoverContent),
|
3818
3829
|
state2.isOpen && !props.isDisabled && !withPortal && popoverContent
|
3819
3830
|
)
|
3820
3831
|
));
|
@@ -3830,7 +3841,7 @@ function RangeCalendar(props) {
|
|
3830
3841
|
});
|
3831
3842
|
const ref = useRef(null);
|
3832
3843
|
const { calendarProps, title } = useRangeCalendar(props, state2, ref);
|
3833
|
-
return /* @__PURE__ */
|
3844
|
+
return /* @__PURE__ */ React50__default.createElement(Box, { ...calendarProps, ref }, /* @__PURE__ */ React50__default.createElement(CalendarHeader, { state: state2, title }), /* @__PURE__ */ React50__default.createElement(Box, { display: "flex", gap: "8" }, /* @__PURE__ */ React50__default.createElement(CalendarGrid, { state: state2 }), /* @__PURE__ */ React50__default.createElement(CalendarGrid, { state: state2, offset: { months: 1 } })));
|
3834
3845
|
}
|
3835
3846
|
|
3836
3847
|
// src/datepicker/DateRangePicker.tsx
|
@@ -3876,8 +3887,8 @@ function DateRangePicker({
|
|
3876
3887
|
}
|
3877
3888
|
};
|
3878
3889
|
const hasTrigger = responsiveVariant === "with-trigger";
|
3879
|
-
const popoverContent = /* @__PURE__ */
|
3880
|
-
return /* @__PURE__ */
|
3890
|
+
const popoverContent = /* @__PURE__ */ React50__default.createElement(PopoverContent, { sx: styles2.calendar, boxShadow: "md", maxWidth: "none" }, /* @__PURE__ */ React50__default.createElement(PopoverArrow, { sx: styles2.arrow }), /* @__PURE__ */ React50__default.createElement(PopoverBody, null, /* @__PURE__ */ React50__default.createElement(FocusLock, null, /* @__PURE__ */ React50__default.createElement(RangeCalendar, { ...calendarProps }))));
|
3891
|
+
return /* @__PURE__ */ React50__default.createElement(I18nProvider, { locale }, /* @__PURE__ */ React50__default.createElement(Box, { position: "relative", display: "inline-flex", flexDirection: "column" }, props.label && /* @__PURE__ */ React50__default.createElement(FormLabel, { ...labelProps, sx: styles2.inputLabel }, props.label), /* @__PURE__ */ React50__default.createElement(
|
3881
3892
|
Popover,
|
3882
3893
|
{
|
3883
3894
|
...dialogProps,
|
@@ -3885,7 +3896,7 @@ function DateRangePicker({
|
|
3885
3896
|
onOpen: state2.open,
|
3886
3897
|
onClose: state2.close
|
3887
3898
|
},
|
3888
|
-
/* @__PURE__ */
|
3899
|
+
/* @__PURE__ */ React50__default.createElement(InputGroup, { ...groupProps, width: "auto", display: "inline-flex" }, /* @__PURE__ */ React50__default.createElement(PopoverAnchor, null, /* @__PURE__ */ React50__default.createElement(
|
3889
3900
|
StyledField,
|
3890
3901
|
{
|
3891
3902
|
alignItems: "center",
|
@@ -3895,8 +3906,8 @@ function DateRangePicker({
|
|
3895
3906
|
onKeyPress: handleEnterClick,
|
3896
3907
|
minHeight
|
3897
3908
|
},
|
3898
|
-
!hasTrigger && /* @__PURE__ */
|
3899
|
-
/* @__PURE__ */
|
3909
|
+
!hasTrigger && /* @__PURE__ */ React50__default.createElement(CalendarOutline24Icon, { mr: 2, alignSelf: "center" }),
|
3910
|
+
/* @__PURE__ */ React50__default.createElement(
|
3900
3911
|
DateField,
|
3901
3912
|
{
|
3902
3913
|
...startFieldProps,
|
@@ -3906,8 +3917,8 @@ function DateRangePicker({
|
|
3906
3917
|
labelProps
|
3907
3918
|
}
|
3908
3919
|
),
|
3909
|
-
/* @__PURE__ */
|
3910
|
-
/* @__PURE__ */
|
3920
|
+
/* @__PURE__ */ React50__default.createElement(Box, { as: "span", "aria-hidden": "true", px: "2" }, "\u2013"),
|
3921
|
+
/* @__PURE__ */ React50__default.createElement(
|
3911
3922
|
DateField,
|
3912
3923
|
{
|
3913
3924
|
...endFieldProps,
|
@@ -3916,15 +3927,15 @@ function DateRangePicker({
|
|
3916
3927
|
labelProps
|
3917
3928
|
}
|
3918
3929
|
)
|
3919
|
-
)), hasTrigger && /* @__PURE__ */
|
3920
|
-
state2.isOpen && withPortal && /* @__PURE__ */
|
3930
|
+
)), hasTrigger && /* @__PURE__ */ React50__default.createElement(PopoverTrigger, null, /* @__PURE__ */ React50__default.createElement(CalendarTriggerButton, { ref, ...buttonProps }))),
|
3931
|
+
state2.isOpen && withPortal && /* @__PURE__ */ React50__default.createElement(Portal, null, popoverContent),
|
3921
3932
|
state2.isOpen && !withPortal && popoverContent
|
3922
3933
|
)));
|
3923
3934
|
}
|
3924
3935
|
var TimeField = ({ state: state2, ...props }) => {
|
3925
3936
|
const ref = useRef(null);
|
3926
3937
|
const { labelProps, fieldProps } = useTimeField(props, state2, ref);
|
3927
|
-
return /* @__PURE__ */
|
3938
|
+
return /* @__PURE__ */ React50__default.createElement(Box, null, /* @__PURE__ */ React50__default.createElement(
|
3928
3939
|
FormLabel3,
|
3929
3940
|
{
|
3930
3941
|
...labelProps,
|
@@ -3936,7 +3947,7 @@ var TimeField = ({ state: state2, ...props }) => {
|
|
3936
3947
|
paddingTop: "2px"
|
3937
3948
|
},
|
3938
3949
|
props.label
|
3939
|
-
), /* @__PURE__ */
|
3950
|
+
), /* @__PURE__ */ React50__default.createElement(Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5" }, state2.segments.map((segment) => /* @__PURE__ */ React50__default.createElement(DateTimeSegment, { key: segment.type, segment, state: state2 }))), /* @__PURE__ */ React50__default.createElement(
|
3940
3951
|
"input",
|
3941
3952
|
{
|
3942
3953
|
type: "hidden",
|
@@ -4005,7 +4016,7 @@ var TimePicker = ({
|
|
4005
4016
|
const ariaLabel = `${inputLabel} \u2013 ${t2(
|
4006
4017
|
texts10.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
|
4007
4018
|
)}`;
|
4008
|
-
return /* @__PURE__ */
|
4019
|
+
return /* @__PURE__ */ React50__default.createElement(
|
4009
4020
|
StyledField,
|
4010
4021
|
{
|
4011
4022
|
variant: "simple",
|
@@ -4021,7 +4032,7 @@ var TimePicker = ({
|
|
4021
4032
|
"aria-label": ariaLabel,
|
4022
4033
|
...boxProps
|
4023
4034
|
},
|
4024
|
-
/* @__PURE__ */
|
4035
|
+
/* @__PURE__ */ React50__default.createElement(
|
4025
4036
|
IconButton,
|
4026
4037
|
{
|
4027
4038
|
variant: "ghost",
|
@@ -4029,14 +4040,14 @@ var TimePicker = ({
|
|
4029
4040
|
borderRadius: "xs",
|
4030
4041
|
"aria-label": backwardsLabel,
|
4031
4042
|
title: backwardsLabel,
|
4032
|
-
icon: /* @__PURE__ */
|
4043
|
+
icon: /* @__PURE__ */ React50__default.createElement(DropdownLeftFill18Icon, null),
|
4033
4044
|
onClick: handleBackwardsClick,
|
4034
4045
|
isDisabled,
|
4035
4046
|
style: isDisabled ? { backgroundColor: "transparent" } : {}
|
4036
4047
|
}
|
4037
4048
|
),
|
4038
|
-
/* @__PURE__ */
|
4039
|
-
/* @__PURE__ */
|
4049
|
+
/* @__PURE__ */ React50__default.createElement(TimeField, { label, state: state2, name }),
|
4050
|
+
/* @__PURE__ */ React50__default.createElement(
|
4040
4051
|
IconButton,
|
4041
4052
|
{
|
4042
4053
|
variant: "ghost",
|
@@ -4044,7 +4055,7 @@ var TimePicker = ({
|
|
4044
4055
|
borderRadius: "xs",
|
4045
4056
|
"aria-label": forwardsLabel,
|
4046
4057
|
title: forwardsLabel,
|
4047
|
-
icon: /* @__PURE__ */
|
4058
|
+
icon: /* @__PURE__ */ React50__default.createElement(DropdownRightFill18Icon, null),
|
4048
4059
|
onClick: handleForwardClick,
|
4049
4060
|
isDisabled,
|
4050
4061
|
style: isDisabled ? { backgroundColor: "transparent" } : {}
|
@@ -4113,7 +4124,7 @@ var AttachedInputs = ({
|
|
4113
4124
|
}
|
4114
4125
|
};
|
4115
4126
|
const direction2 = flexDirection === "row" ? "horizontal" : "vertical";
|
4116
|
-
return /* @__PURE__ */
|
4127
|
+
return /* @__PURE__ */ React50__default.createElement(
|
4117
4128
|
Flex,
|
4118
4129
|
{
|
4119
4130
|
role: "group",
|
@@ -4127,7 +4138,7 @@ var AttachedInputs = ({
|
|
4127
4138
|
var Dialog = ({ title, children, ...props }) => {
|
4128
4139
|
const ref = useRef(null);
|
4129
4140
|
const { dialogProps, titleProps } = useDialog(props, ref);
|
4130
|
-
return /* @__PURE__ */
|
4141
|
+
return /* @__PURE__ */ React50__default.createElement(Box, { ...dialogProps, ref, outline: "none" }, title && /* @__PURE__ */ React50__default.createElement(Heading$1, { as: "h3", ...titleProps }, title), children);
|
4131
4142
|
};
|
4132
4143
|
var Popover3 = forwardRef$1(
|
4133
4144
|
({
|
@@ -4158,21 +4169,21 @@ var Popover3 = forwardRef$1(
|
|
4158
4169
|
},
|
4159
4170
|
state2
|
4160
4171
|
);
|
4161
|
-
const popoverBox = /* @__PURE__ */
|
4172
|
+
const popoverBox = /* @__PURE__ */ React50__default.createElement(
|
4162
4173
|
Box,
|
4163
4174
|
{
|
4164
4175
|
...popoverProps,
|
4165
4176
|
ref: popoverRef,
|
4166
4177
|
minWidth: ((_a6 = triggerRef.current) == null ? void 0 : _a6.clientWidth) ?? "auto"
|
4167
4178
|
},
|
4168
|
-
/* @__PURE__ */
|
4179
|
+
/* @__PURE__ */ React50__default.createElement(DismissButton, { onDismiss: state2.close }),
|
4169
4180
|
children,
|
4170
|
-
/* @__PURE__ */
|
4181
|
+
/* @__PURE__ */ React50__default.createElement(DismissButton, { onDismiss: state2.close })
|
4171
4182
|
);
|
4172
4183
|
if (isNonModal) {
|
4173
4184
|
return popoverBox;
|
4174
4185
|
}
|
4175
|
-
return /* @__PURE__ */
|
4186
|
+
return /* @__PURE__ */ React50__default.createElement(Overlay, null, hasBackdrop && /* @__PURE__ */ React50__default.createElement(Box, { ...underlayProps, position: "fixed", inset: "0" }), popoverBox);
|
4176
4187
|
}
|
4177
4188
|
);
|
4178
4189
|
|
@@ -4209,7 +4220,7 @@ var CardSelect = forwardRef(
|
|
4209
4220
|
const styles2 = useMultiStyleConfig("CardSelect", { variant, size: size2 });
|
4210
4221
|
useForceRerender(state2.isOpen);
|
4211
4222
|
const ChevronIcon = size2 === "sm" ? DropdownDownFill18Icon : DropdownDownFill24Icon;
|
4212
|
-
return /* @__PURE__ */
|
4223
|
+
return /* @__PURE__ */ React50__default.createElement(Box, { ...props }, /* @__PURE__ */ React50__default.createElement(
|
4213
4224
|
chakra.button,
|
4214
4225
|
{
|
4215
4226
|
type: "button",
|
@@ -4219,13 +4230,13 @@ var CardSelect = forwardRef(
|
|
4219
4230
|
width,
|
4220
4231
|
"data-attachable": true
|
4221
4232
|
},
|
4222
|
-
/* @__PURE__ */
|
4233
|
+
/* @__PURE__ */ React50__default.createElement(Flex, { gap: 1.5, alignItems: "center" }, icon, /* @__PURE__ */ React50__default.createElement(Box, { as: "span" }, label), withChevron ? /* @__PURE__ */ React50__default.createElement(
|
4223
4234
|
ChevronIcon,
|
4224
4235
|
{
|
4225
4236
|
transform: state2.isOpen ? "rotate(180deg)" : "none"
|
4226
4237
|
}
|
4227
4238
|
) : null)
|
4228
|
-
), state2.isOpen && /* @__PURE__ */
|
4239
|
+
), state2.isOpen && /* @__PURE__ */ React50__default.createElement(
|
4229
4240
|
Popover3,
|
4230
4241
|
{
|
4231
4242
|
state: state2,
|
@@ -4234,7 +4245,7 @@ var CardSelect = forwardRef(
|
|
4234
4245
|
crossOffset,
|
4235
4246
|
placement
|
4236
4247
|
},
|
4237
|
-
/* @__PURE__ */
|
4248
|
+
/* @__PURE__ */ React50__default.createElement(
|
4238
4249
|
Card,
|
4239
4250
|
{
|
4240
4251
|
colorScheme: "white",
|
@@ -4242,7 +4253,7 @@ var CardSelect = forwardRef(
|
|
4242
4253
|
sx: styles2.card,
|
4243
4254
|
...overlayProps
|
4244
4255
|
},
|
4245
|
-
/* @__PURE__ */
|
4256
|
+
/* @__PURE__ */ React50__default.createElement(Dialog, { "aria-label": label }, children)
|
4246
4257
|
)
|
4247
4258
|
));
|
4248
4259
|
}
|
@@ -4256,14 +4267,14 @@ function useForceRerender(shouldRerender) {
|
|
4256
4267
|
}, [shouldRerender]);
|
4257
4268
|
}
|
4258
4269
|
var Checkbox = forwardRef((props, ref) => {
|
4259
|
-
return /* @__PURE__ */
|
4270
|
+
return /* @__PURE__ */ React50__default.createElement(Checkbox$1, { ...props, ref });
|
4260
4271
|
});
|
4261
4272
|
var CheckboxGroup = ({
|
4262
4273
|
direction: direction2 = "row",
|
4263
4274
|
children,
|
4264
4275
|
...props
|
4265
4276
|
}) => {
|
4266
|
-
return /* @__PURE__ */
|
4277
|
+
return /* @__PURE__ */ React50__default.createElement(CheckboxGroup$1, { ...props }, /* @__PURE__ */ React50__default.createElement(Stack$1, { direction: direction2 }, children));
|
4267
4278
|
};
|
4268
4279
|
|
4269
4280
|
// ../../node_modules/@chakra-ui/utils/dist/chunk-O3SWHQEE.mjs
|
@@ -4284,15 +4295,15 @@ var ChoiceChip = forwardRef((props, ref) => {
|
|
4284
4295
|
hasLabel: Boolean(children)
|
4285
4296
|
});
|
4286
4297
|
const id = `choice-chip-${useId()}`;
|
4287
|
-
return /* @__PURE__ */
|
4298
|
+
return /* @__PURE__ */ React50__default.createElement(
|
4288
4299
|
chakra.label,
|
4289
4300
|
{
|
4290
4301
|
htmlFor: id,
|
4291
4302
|
...getRootProps(),
|
4292
4303
|
"aria-label": String(children)
|
4293
4304
|
},
|
4294
|
-
/* @__PURE__ */
|
4295
|
-
/* @__PURE__ */
|
4305
|
+
/* @__PURE__ */ React50__default.createElement(chakra.input, { ...getInputProps({}, ref), id }),
|
4306
|
+
/* @__PURE__ */ React50__default.createElement(
|
4296
4307
|
chakra.div,
|
4297
4308
|
{
|
4298
4309
|
...getLabelProps(),
|
@@ -4301,9 +4312,9 @@ var ChoiceChip = forwardRef((props, ref) => {
|
|
4301
4312
|
"data-hover": dataAttr(state2.isHovered),
|
4302
4313
|
"data-focus": dataAttr(state2.isFocused)
|
4303
4314
|
},
|
4304
|
-
icon && /* @__PURE__ */
|
4305
|
-
/* @__PURE__ */
|
4306
|
-
variant === "filter" && state2.isChecked && /* @__PURE__ */
|
4315
|
+
icon && /* @__PURE__ */ React50__default.createElement(chakra.span, { __css: styles2.icon }, state2.isChecked ? icon.checked : icon.default),
|
4316
|
+
/* @__PURE__ */ React50__default.createElement(chakra.span, { __css: styles2.label, ...getCheckboxProps() }, variant !== "icon" && children),
|
4317
|
+
variant === "filter" && state2.isChecked && /* @__PURE__ */ React50__default.createElement(CloseOutline24Icon, { ml: 1.5 })
|
4307
4318
|
)
|
4308
4319
|
);
|
4309
4320
|
});
|
@@ -4355,7 +4366,7 @@ function Combobox({
|
|
4355
4366
|
},
|
4356
4367
|
state2
|
4357
4368
|
);
|
4358
|
-
return /* @__PURE__ */
|
4369
|
+
return /* @__PURE__ */ React50__default.createElement(React50__default.Fragment, null, /* @__PURE__ */ React50__default.createElement(
|
4359
4370
|
Input,
|
4360
4371
|
{
|
4361
4372
|
...inputProps,
|
@@ -4379,7 +4390,7 @@ function Combobox({
|
|
4379
4390
|
paddingX,
|
4380
4391
|
paddingY,
|
4381
4392
|
leftIcon,
|
4382
|
-
rightIcon: isLoading ? /* @__PURE__ */
|
4393
|
+
rightIcon: isLoading ? /* @__PURE__ */ React50__default.createElement(
|
4383
4394
|
ColorSpinner,
|
4384
4395
|
{
|
4385
4396
|
width: "1.5rem",
|
@@ -4394,7 +4405,7 @@ function Combobox({
|
|
4394
4405
|
}
|
4395
4406
|
) : rightIcon
|
4396
4407
|
}
|
4397
|
-
), state2.isOpen && !isLoading && /* @__PURE__ */
|
4408
|
+
), state2.isOpen && !isLoading && /* @__PURE__ */ React50__default.createElement(
|
4398
4409
|
Popover3,
|
4399
4410
|
{
|
4400
4411
|
state: state2,
|
@@ -4406,7 +4417,7 @@ function Combobox({
|
|
4406
4417
|
hasBackdrop: false,
|
4407
4418
|
containerPadding: 0
|
4408
4419
|
},
|
4409
|
-
/* @__PURE__ */
|
4420
|
+
/* @__PURE__ */ React50__default.createElement(
|
4410
4421
|
ListBox,
|
4411
4422
|
{
|
4412
4423
|
...listBoxProps,
|
@@ -4443,7 +4454,7 @@ var debounce = (fn, ms = 100) => {
|
|
4443
4454
|
};
|
4444
4455
|
};
|
4445
4456
|
var FormControl = forwardRef((props, ref) => {
|
4446
|
-
return /* @__PURE__ */
|
4457
|
+
return /* @__PURE__ */ React50__default.createElement(FormControl$1, { ...props, ref });
|
4447
4458
|
});
|
4448
4459
|
var FormErrorMessage = ({
|
4449
4460
|
children,
|
@@ -4459,7 +4470,7 @@ var FormErrorMessage = ({
|
|
4459
4470
|
return null;
|
4460
4471
|
}
|
4461
4472
|
const { ref, ...errorMessageProps } = formControlContext.getErrorMessageProps();
|
4462
|
-
return /* @__PURE__ */
|
4473
|
+
return /* @__PURE__ */ React50__default.createElement(Box, { position: "relative", ref }, /* @__PURE__ */ React50__default.createElement(
|
4463
4474
|
Box,
|
4464
4475
|
{
|
4465
4476
|
borderRadius: "xs",
|
@@ -4477,12 +4488,12 @@ var FormErrorMessage = ({
|
|
4477
4488
|
...errorMessageProps,
|
4478
4489
|
...boxProps
|
4479
4490
|
},
|
4480
|
-
/* @__PURE__ */
|
4491
|
+
/* @__PURE__ */ React50__default.createElement(Arrow, { position: "absolute", top: "-0.25em", left: "1em" }),
|
4481
4492
|
children
|
4482
4493
|
));
|
4483
4494
|
};
|
4484
4495
|
var Arrow = (props) => {
|
4485
|
-
return /* @__PURE__ */
|
4496
|
+
return /* @__PURE__ */ React50__default.createElement(
|
4486
4497
|
Box,
|
4487
4498
|
{
|
4488
4499
|
...props,
|
@@ -4493,7 +4504,7 @@ var Arrow = (props) => {
|
|
4493
4504
|
fill: "none",
|
4494
4505
|
transform: "rotate(45deg)"
|
4495
4506
|
},
|
4496
|
-
/* @__PURE__ */
|
4507
|
+
/* @__PURE__ */ React50__default.createElement(
|
4497
4508
|
Box,
|
4498
4509
|
{
|
4499
4510
|
as: "path",
|
@@ -4504,7 +4515,7 @@ var Arrow = (props) => {
|
|
4504
4515
|
);
|
4505
4516
|
};
|
4506
4517
|
var FormLabel3 = forwardRef((props, ref) => {
|
4507
|
-
return /* @__PURE__ */
|
4518
|
+
return /* @__PURE__ */ React50__default.createElement(FormLabel, { ...props, ref });
|
4508
4519
|
});
|
4509
4520
|
function ListBox({
|
4510
4521
|
isLoading,
|
@@ -4515,7 +4526,7 @@ function ListBox({
|
|
4515
4526
|
}) {
|
4516
4527
|
const { listBoxProps } = useListBox(props, state2, listBoxRef);
|
4517
4528
|
const styles2 = useMultiStyleConfig("ListBox", {});
|
4518
|
-
return /* @__PURE__ */
|
4529
|
+
return /* @__PURE__ */ React50__default.createElement(
|
4519
4530
|
List,
|
4520
4531
|
{
|
4521
4532
|
...listBoxProps,
|
@@ -4526,19 +4537,19 @@ function ListBox({
|
|
4526
4537
|
},
|
4527
4538
|
state2.collection.size === 0 && props.emptyContent,
|
4528
4539
|
Array.from(state2.collection).map(
|
4529
|
-
(item) => item.type === "section" ? /* @__PURE__ */
|
4540
|
+
(item) => item.type === "section" ? /* @__PURE__ */ React50__default.createElement(ListBoxSection, { key: item.key, section: item, state: state2 }) : /* @__PURE__ */ React50__default.createElement(Option, { key: item.key, item, state: state2 })
|
4530
4541
|
)
|
4531
4542
|
);
|
4532
4543
|
}
|
4533
4544
|
function ItemLabel({ children }) {
|
4534
4545
|
let { labelProps } = useOptionContext();
|
4535
4546
|
const styles2 = useMultiStyleConfig("ListBox", {});
|
4536
|
-
return /* @__PURE__ */
|
4547
|
+
return /* @__PURE__ */ React50__default.createElement(Box, { ...labelProps, sx: styles2.label }, children);
|
4537
4548
|
}
|
4538
4549
|
function ItemDescription({ children }) {
|
4539
4550
|
let { descriptionProps } = useOptionContext();
|
4540
4551
|
const styles2 = useMultiStyleConfig("ListBox", {});
|
4541
|
-
return /* @__PURE__ */
|
4552
|
+
return /* @__PURE__ */ React50__default.createElement(Box, { ...descriptionProps, sx: styles2.description }, children);
|
4542
4553
|
}
|
4543
4554
|
function Option({ item, state: state2 }) {
|
4544
4555
|
const ref = useRef(null);
|
@@ -4571,9 +4582,9 @@ function Option({ item, state: state2 }) {
|
|
4571
4582
|
{ passive: false, once: true }
|
4572
4583
|
);
|
4573
4584
|
}, []);
|
4574
|
-
return /* @__PURE__ */
|
4585
|
+
return /* @__PURE__ */ React50__default.createElement(OptionContext.Provider, { value: { labelProps, descriptionProps } }, /* @__PURE__ */ React50__default.createElement(ListItem, { ...optionProps, ...dataFields, ref, sx: styles2.item }, item.rendered));
|
4575
4586
|
}
|
4576
|
-
var OptionContext =
|
4587
|
+
var OptionContext = React50__default.createContext({
|
4577
4588
|
labelProps: {},
|
4578
4589
|
descriptionProps: {}
|
4579
4590
|
});
|
@@ -4587,7 +4598,7 @@ function ListBoxSection({ section, state: state2 }) {
|
|
4587
4598
|
});
|
4588
4599
|
const isFirstSection = section.key === state2.collection.getFirstKey();
|
4589
4600
|
const titleColor = useColorModeValue("darkGrey", "white");
|
4590
|
-
return /* @__PURE__ */
|
4601
|
+
return /* @__PURE__ */ React50__default.createElement(ListItem, { ...itemProps }, section.rendered && /* @__PURE__ */ React50__default.createElement(
|
4591
4602
|
Box,
|
4592
4603
|
{
|
4593
4604
|
fontSize: "mobile.xs",
|
@@ -4600,8 +4611,8 @@ function ListBoxSection({ section, state: state2 }) {
|
|
4600
4611
|
...headingProps
|
4601
4612
|
},
|
4602
4613
|
section.rendered
|
4603
|
-
), /* @__PURE__ */
|
4604
|
-
(item) => /* @__PURE__ */
|
4614
|
+
), /* @__PURE__ */ React50__default.createElement(List, { ...groupProps, padding: 0, listStyleType: "none" }, Array.from(state2.collection.getChildren(section.key)).map(
|
4615
|
+
(item) => /* @__PURE__ */ React50__default.createElement(Option, { key: item.key, item, state: state2 })
|
4605
4616
|
)));
|
4606
4617
|
}
|
4607
4618
|
|
@@ -4637,7 +4648,7 @@ function InfoSelect({
|
|
4637
4648
|
const { buttonProps } = useButton(triggerProps, triggerRef);
|
4638
4649
|
const { t: t2 } = useTranslation();
|
4639
4650
|
const formControl = useFormControlProps(props);
|
4640
|
-
return /* @__PURE__ */
|
4651
|
+
return /* @__PURE__ */ React50__default.createElement(Box, { sx: styles2.container }, /* @__PURE__ */ React50__default.createElement(chakra.div, { ...labelProps, sx: styles2.label }, props.label), /* @__PURE__ */ React50__default.createElement(
|
4641
4652
|
HiddenSelect,
|
4642
4653
|
{
|
4643
4654
|
state: state2,
|
@@ -4645,7 +4656,7 @@ function InfoSelect({
|
|
4645
4656
|
label: props.label,
|
4646
4657
|
name: props.name
|
4647
4658
|
}
|
4648
|
-
), /* @__PURE__ */
|
4659
|
+
), /* @__PURE__ */ React50__default.createElement(
|
4649
4660
|
chakra.button,
|
4650
4661
|
{
|
4651
4662
|
type: "button",
|
@@ -4658,16 +4669,16 @@ function InfoSelect({
|
|
4658
4669
|
"aria-invalid": formControl.isInvalid,
|
4659
4670
|
"aria-describedby": formControl["aria-describedby"]
|
4660
4671
|
},
|
4661
|
-
/* @__PURE__ */
|
4662
|
-
/* @__PURE__ */
|
4663
|
-
), state2.isOpen && /* @__PURE__ */
|
4672
|
+
/* @__PURE__ */ React50__default.createElement(Box, { ...valueProps }, state2.selectedItem ? state2.selectedItem.textValue ?? state2.selectedItem.rendered : placeholder ?? t2(texts11.selectAnOption)),
|
4673
|
+
/* @__PURE__ */ React50__default.createElement(Box, { sx: styles2.arrowIcon }, state2.isOpen ? /* @__PURE__ */ React50__default.createElement(DropdownUpFill24Icon, null) : /* @__PURE__ */ React50__default.createElement(DropdownDownFill24Icon, null))
|
4674
|
+
), state2.isOpen && /* @__PURE__ */ React50__default.createElement(
|
4664
4675
|
Popover3,
|
4665
4676
|
{
|
4666
4677
|
state: state2,
|
4667
4678
|
triggerRef,
|
4668
4679
|
containerPadding: 0
|
4669
4680
|
},
|
4670
|
-
/* @__PURE__ */
|
4681
|
+
/* @__PURE__ */ React50__default.createElement(
|
4671
4682
|
ListBox,
|
4672
4683
|
{
|
4673
4684
|
...menuProps,
|
@@ -4692,7 +4703,7 @@ var Input = forwardRef(
|
|
4692
4703
|
const formControlProps = useFormControlContext();
|
4693
4704
|
const fallbackId = `input-${useId()}`;
|
4694
4705
|
const inputId = id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? fallbackId;
|
4695
|
-
return /* @__PURE__ */
|
4706
|
+
return /* @__PURE__ */ React50__default.createElement(InputGroup, { position: "relative" }, leftIcon && /* @__PURE__ */ React50__default.createElement(InputLeftElement, { pointerEvents: "none" }, leftIcon), /* @__PURE__ */ React50__default.createElement(
|
4696
4707
|
Input$1,
|
4697
4708
|
{
|
4698
4709
|
"data-attachable": true,
|
@@ -4703,19 +4714,19 @@ var Input = forwardRef(
|
|
4703
4714
|
ref,
|
4704
4715
|
placeholder: " "
|
4705
4716
|
}
|
4706
|
-
), /* @__PURE__ */
|
4717
|
+
), /* @__PURE__ */ React50__default.createElement(FormLabel, { htmlFor: inputId }, label), rightIcon && /* @__PURE__ */ React50__default.createElement(InputRightElement, { pointerEvents: "none" }, rightIcon));
|
4707
4718
|
}
|
4708
4719
|
);
|
4709
4720
|
var InputLeftElement2 = forwardRef(
|
4710
|
-
(props, ref) => /* @__PURE__ */
|
4721
|
+
(props, ref) => /* @__PURE__ */ React50__default.createElement(InputLeftElement, { ...props, ref })
|
4711
4722
|
);
|
4712
4723
|
var InputRightElement2 = forwardRef(
|
4713
|
-
(props, ref) => /* @__PURE__ */
|
4724
|
+
(props, ref) => /* @__PURE__ */ React50__default.createElement(InputRightElement, { ...props, ref })
|
4714
4725
|
);
|
4715
4726
|
var NativeSelect = forwardRef(
|
4716
4727
|
({ label, ...props }, ref) => {
|
4717
4728
|
const styles2 = useMultiStyleConfig("Select", props);
|
4718
|
-
return /* @__PURE__ */
|
4729
|
+
return /* @__PURE__ */ React50__default.createElement(FormControl, null, /* @__PURE__ */ React50__default.createElement(
|
4719
4730
|
Select,
|
4720
4731
|
{
|
4721
4732
|
"data-attachable": true,
|
@@ -4723,7 +4734,7 @@ var NativeSelect = forwardRef(
|
|
4723
4734
|
rootProps: { __css: styles2.root },
|
4724
4735
|
ref
|
4725
4736
|
}
|
4726
|
-
), label && /* @__PURE__ */
|
4737
|
+
), label && /* @__PURE__ */ React50__default.createElement(FormLabel3, null, label));
|
4727
4738
|
}
|
4728
4739
|
);
|
4729
4740
|
var colors = {
|
@@ -4797,16 +4808,16 @@ function NumericStepper({
|
|
4797
4808
|
const textColor = useColorModeValue("darkGrey", "white");
|
4798
4809
|
const backgroundColor = useColorModeValue("white", "darkGrey");
|
4799
4810
|
const focusColor = useColorModeValue("greenHaze", "azure");
|
4800
|
-
return /* @__PURE__ */
|
4811
|
+
return /* @__PURE__ */ React50__default.createElement(Flex, { alignItems: "center", ...boxProps }, /* @__PURE__ */ React50__default.createElement(
|
4801
4812
|
VerySmallButton,
|
4802
4813
|
{
|
4803
|
-
icon: /* @__PURE__ */
|
4814
|
+
icon: /* @__PURE__ */ React50__default.createElement(SubtractIcon, { color: "white" }),
|
4804
4815
|
"aria-label": t2(texts12.decrementButtonAriaLabel),
|
4805
4816
|
onClick: () => onChange(value - 1),
|
4806
4817
|
visibility: value <= minValue ? "hidden" : "visible",
|
4807
4818
|
isDisabled: formControlProps.disabled
|
4808
4819
|
}
|
4809
|
-
), withInput ? /* @__PURE__ */
|
4820
|
+
), withInput ? /* @__PURE__ */ React50__default.createElement(
|
4810
4821
|
chakra.input,
|
4811
4822
|
{
|
4812
4823
|
type: "number",
|
@@ -4856,7 +4867,7 @@ function NumericStepper({
|
|
4856
4867
|
onChange(numericInput);
|
4857
4868
|
}
|
4858
4869
|
}
|
4859
|
-
) : /* @__PURE__ */
|
4870
|
+
) : /* @__PURE__ */ React50__default.createElement(
|
4860
4871
|
chakra.text,
|
4861
4872
|
{
|
4862
4873
|
fontSize: "sm",
|
@@ -4871,10 +4882,10 @@ function NumericStepper({
|
|
4871
4882
|
"aria-label": value.toString()
|
4872
4883
|
},
|
4873
4884
|
value
|
4874
|
-
), /* @__PURE__ */
|
4885
|
+
), /* @__PURE__ */ React50__default.createElement(
|
4875
4886
|
VerySmallButton,
|
4876
4887
|
{
|
4877
|
-
icon: /* @__PURE__ */
|
4888
|
+
icon: /* @__PURE__ */ React50__default.createElement(AddIcon, { color: "white" }),
|
4878
4889
|
"aria-label": t2(texts12.incrementButtonAriaLabel),
|
4879
4890
|
onClick: () => onChange(value + 1),
|
4880
4891
|
visibility: value >= maxValue ? "hidden" : "visible",
|
@@ -4884,7 +4895,7 @@ function NumericStepper({
|
|
4884
4895
|
));
|
4885
4896
|
}
|
4886
4897
|
var VerySmallButton = (props) => {
|
4887
|
-
return /* @__PURE__ */
|
4898
|
+
return /* @__PURE__ */ React50__default.createElement(
|
4888
4899
|
IconButton,
|
4889
4900
|
{
|
4890
4901
|
variant: "primary",
|
@@ -4901,7 +4912,7 @@ var VerySmallButton = (props) => {
|
|
4901
4912
|
}
|
4902
4913
|
);
|
4903
4914
|
};
|
4904
|
-
var SubtractIcon = (props) => /* @__PURE__ */
|
4915
|
+
var SubtractIcon = (props) => /* @__PURE__ */ React50__default.createElement(
|
4905
4916
|
Box,
|
4906
4917
|
{
|
4907
4918
|
as: "svg",
|
@@ -4911,7 +4922,7 @@ var SubtractIcon = (props) => /* @__PURE__ */ React49__default.createElement(
|
|
4911
4922
|
stroke: "currentColor",
|
4912
4923
|
...props
|
4913
4924
|
},
|
4914
|
-
/* @__PURE__ */
|
4925
|
+
/* @__PURE__ */ React50__default.createElement(
|
4915
4926
|
"line",
|
4916
4927
|
{
|
4917
4928
|
x1: "9",
|
@@ -4923,7 +4934,7 @@ var SubtractIcon = (props) => /* @__PURE__ */ React49__default.createElement(
|
|
4923
4934
|
}
|
4924
4935
|
)
|
4925
4936
|
);
|
4926
|
-
var AddIcon = (props) => /* @__PURE__ */
|
4937
|
+
var AddIcon = (props) => /* @__PURE__ */ React50__default.createElement(
|
4927
4938
|
Box,
|
4928
4939
|
{
|
4929
4940
|
as: "svg",
|
@@ -4933,7 +4944,7 @@ var AddIcon = (props) => /* @__PURE__ */ React49__default.createElement(
|
|
4933
4944
|
stroke: "currentColor",
|
4934
4945
|
...props
|
4935
4946
|
},
|
4936
|
-
/* @__PURE__ */
|
4947
|
+
/* @__PURE__ */ React50__default.createElement(
|
4937
4948
|
"line",
|
4938
4949
|
{
|
4939
4950
|
x1: "9",
|
@@ -4944,7 +4955,7 @@ var AddIcon = (props) => /* @__PURE__ */ React49__default.createElement(
|
|
4944
4955
|
strokeLinecap: "round"
|
4945
4956
|
}
|
4946
4957
|
),
|
4947
|
-
/* @__PURE__ */
|
4958
|
+
/* @__PURE__ */ React50__default.createElement(
|
4948
4959
|
"line",
|
4949
4960
|
{
|
4950
4961
|
x1: "15",
|
@@ -4977,7 +4988,7 @@ var PasswordInput = forwardRef(
|
|
4977
4988
|
const formControlProps = useFormControlContext();
|
4978
4989
|
const autoGeneratedId = `password-input-${useId()}`;
|
4979
4990
|
const inputId = id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? autoGeneratedId;
|
4980
|
-
return /* @__PURE__ */
|
4991
|
+
return /* @__PURE__ */ React50__default.createElement(InputGroup, { position: "relative" }, leftIcon && /* @__PURE__ */ React50__default.createElement(InputLeftElement2, null, leftIcon), /* @__PURE__ */ React50__default.createElement(
|
4981
4992
|
Input$1,
|
4982
4993
|
{
|
4983
4994
|
...props,
|
@@ -4989,7 +5000,7 @@ var PasswordInput = forwardRef(
|
|
4989
5000
|
ref,
|
4990
5001
|
"data-attachable": true
|
4991
5002
|
}
|
4992
|
-
), /* @__PURE__ */
|
5003
|
+
), /* @__PURE__ */ React50__default.createElement(FormLabel3, { htmlFor: inputId, pointerEvents: "none" }, label), /* @__PURE__ */ React50__default.createElement(InputRightElement2, { width: "fit-content" }, /* @__PURE__ */ React50__default.createElement(
|
4993
5004
|
Button$1,
|
4994
5005
|
{
|
4995
5006
|
variant: "ghost",
|
@@ -5027,10 +5038,10 @@ var PhoneNumberInput = forwardRef(
|
|
5027
5038
|
nationalNumber: ""
|
5028
5039
|
}
|
5029
5040
|
});
|
5030
|
-
return /* @__PURE__ */
|
5041
|
+
return /* @__PURE__ */ React50__default.createElement(AttachedInputs, { ...boxProps }, /* @__PURE__ */ React50__default.createElement(
|
5031
5042
|
Suspense,
|
5032
5043
|
{
|
5033
|
-
fallback: /* @__PURE__ */
|
5044
|
+
fallback: /* @__PURE__ */ React50__default.createElement(
|
5034
5045
|
InfoSelect,
|
5035
5046
|
{
|
5036
5047
|
isLabelSrOnly: true,
|
@@ -5039,10 +5050,10 @@ var PhoneNumberInput = forwardRef(
|
|
5039
5050
|
height: "100%",
|
5040
5051
|
value: "+47"
|
5041
5052
|
},
|
5042
|
-
/* @__PURE__ */
|
5053
|
+
/* @__PURE__ */ React50__default.createElement(Item, { key: "+47" }, "+47")
|
5043
5054
|
)
|
5044
5055
|
},
|
5045
|
-
/* @__PURE__ */
|
5056
|
+
/* @__PURE__ */ React50__default.createElement(
|
5046
5057
|
LazyCountryCodeSelect,
|
5047
5058
|
{
|
5048
5059
|
value: value.countryCode,
|
@@ -5055,7 +5066,7 @@ var PhoneNumberInput = forwardRef(
|
|
5055
5066
|
width: "6.25rem"
|
5056
5067
|
}
|
5057
5068
|
)
|
5058
|
-
), /* @__PURE__ */
|
5069
|
+
), /* @__PURE__ */ React50__default.createElement(
|
5059
5070
|
Input,
|
5060
5071
|
{
|
5061
5072
|
ref,
|
@@ -5084,13 +5095,13 @@ var texts14 = createTexts({
|
|
5084
5095
|
sv: "Telefonnummer"
|
5085
5096
|
}
|
5086
5097
|
});
|
5087
|
-
var LazyCountryCodeSelect =
|
5098
|
+
var LazyCountryCodeSelect = React50__default.lazy(() => import('./CountryCodeSelect-46KAQXG4.mjs'));
|
5088
5099
|
var Radio = forwardRef((props, ref) => {
|
5089
|
-
return /* @__PURE__ */
|
5100
|
+
return /* @__PURE__ */ React50__default.createElement(Radio$1, { ...props, ref });
|
5090
5101
|
});
|
5091
5102
|
var RadioGroup = forwardRef(
|
5092
5103
|
({ children, direction: direction2 = "row", ...rest }, ref) => {
|
5093
|
-
return /* @__PURE__ */
|
5104
|
+
return /* @__PURE__ */ React50__default.createElement(RadioGroup$1, { ...rest, ref }, /* @__PURE__ */ React50__default.createElement(Stack$1, { direction: direction2 }, children));
|
5094
5105
|
}
|
5095
5106
|
);
|
5096
5107
|
var SearchInput = forwardRef(
|
@@ -5100,7 +5111,7 @@ var SearchInput = forwardRef(
|
|
5100
5111
|
const formControlProps = useFormControlContext();
|
5101
5112
|
const autoGeneratedId = useId();
|
5102
5113
|
const inputId = props.id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? autoGeneratedId;
|
5103
|
-
return /* @__PURE__ */
|
5114
|
+
return /* @__PURE__ */ React50__default.createElement(InputGroup, { position: "relative" }, /* @__PURE__ */ React50__default.createElement(InputLeftElement2, null, /* @__PURE__ */ React50__default.createElement(SearchOutline24Icon, null)), /* @__PURE__ */ React50__default.createElement(
|
5104
5115
|
Input$1,
|
5105
5116
|
{
|
5106
5117
|
pl: 7,
|
@@ -5117,7 +5128,7 @@ var SearchInput = forwardRef(
|
|
5117
5128
|
placeholder: " ",
|
5118
5129
|
"data-attachable": true
|
5119
5130
|
}
|
5120
|
-
), /* @__PURE__ */
|
5131
|
+
), /* @__PURE__ */ React50__default.createElement(FormLabel3, { htmlFor: inputId, pointerEvents: "none" }, label ?? t2(texts15.label)), showClearButton && /* @__PURE__ */ React50__default.createElement(InputRightElement2, { width: "fit-content" }, /* @__PURE__ */ React50__default.createElement(
|
5121
5132
|
IconButton$1,
|
5122
5133
|
{
|
5123
5134
|
variant: "ghost",
|
@@ -5125,7 +5136,7 @@ var SearchInput = forwardRef(
|
|
5125
5136
|
size: "sm",
|
5126
5137
|
mr: 1,
|
5127
5138
|
"aria-label": t2(texts15.reset),
|
5128
|
-
icon: /* @__PURE__ */
|
5139
|
+
icon: /* @__PURE__ */ React50__default.createElement(CloseOutline24Icon, null),
|
5129
5140
|
onClick: onReset
|
5130
5141
|
}
|
5131
5142
|
)));
|
@@ -5147,7 +5158,7 @@ var texts15 = createTexts({
|
|
5147
5158
|
});
|
5148
5159
|
var Switch = forwardRef(
|
5149
5160
|
({ size: size2 = "md", ...props }, ref) => {
|
5150
|
-
return /* @__PURE__ */
|
5161
|
+
return /* @__PURE__ */ React50__default.createElement(Switch$1, { variant: "solid", size: size2, ...props, ref });
|
5151
5162
|
}
|
5152
5163
|
);
|
5153
5164
|
var Textarea = forwardRef((props, ref) => {
|
@@ -5158,7 +5169,7 @@ var Textarea = forwardRef((props, ref) => {
|
|
5158
5169
|
const formControlProps = useFormControlContext();
|
5159
5170
|
const fallbackId = `textarea-${useId()}`;
|
5160
5171
|
const inputId = props.id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? fallbackId;
|
5161
|
-
return /* @__PURE__ */
|
5172
|
+
return /* @__PURE__ */ React50__default.createElement(InputGroup, { position: "relative", ...spacingProps }, /* @__PURE__ */ React50__default.createElement(Textarea$1, { ...rest, id: inputId, ref, placeholder: " " }), label && /* @__PURE__ */ React50__default.createElement(FormLabel, { htmlFor: inputId, id: `${inputId}-label` }, label));
|
5162
5173
|
});
|
5163
5174
|
function getSpacingProps(props) {
|
5164
5175
|
const {
|
@@ -5277,7 +5288,7 @@ var LineIcon = ({
|
|
5277
5288
|
if (!Icon) {
|
5278
5289
|
return null;
|
5279
5290
|
}
|
5280
|
-
return /* @__PURE__ */
|
5291
|
+
return /* @__PURE__ */ React50__default.createElement(Box, { sx: { ...styles2.iconContainer, ...sx }, ...rest }, /* @__PURE__ */ React50__default.createElement(Icon, { sx: styles2.icon }));
|
5281
5292
|
};
|
5282
5293
|
|
5283
5294
|
// src/linjetag/InfoTag.tsx
|
@@ -5288,7 +5299,7 @@ var InfoTag = ({
|
|
5288
5299
|
description
|
5289
5300
|
}) => {
|
5290
5301
|
const styles2 = useMultiStyleConfig("InfoTag", { variant, size: size2 });
|
5291
|
-
return /* @__PURE__ */
|
5302
|
+
return /* @__PURE__ */ React50__default.createElement(Box, { sx: styles2.container }, /* @__PURE__ */ React50__default.createElement(LineIcon, { variant, size: size2, sx: styles2.iconContainer }), /* @__PURE__ */ React50__default.createElement(Box, { sx: styles2.textContainer }, title && /* @__PURE__ */ React50__default.createElement(Box, { as: "span", sx: styles2.title }, title), title && description && " ", description && /* @__PURE__ */ React50__default.createElement(Box, { as: "span", sx: styles2.description }, description)));
|
5292
5303
|
};
|
5293
5304
|
var TravelTag = forwardRef(
|
5294
5305
|
({
|
@@ -5306,7 +5317,7 @@ var TravelTag = forwardRef(
|
|
5306
5317
|
deviationLevel
|
5307
5318
|
});
|
5308
5319
|
const DeviationLevelIcon = getDeviationLevelIcon({ deviationLevel, size: size2 });
|
5309
|
-
return /* @__PURE__ */
|
5320
|
+
return /* @__PURE__ */ React50__default.createElement(Box, { sx: styles2.container, "aria-disabled": isDisabled, ref, ...rest }, /* @__PURE__ */ React50__default.createElement(LineIcon, { variant, size: size2, sx: styles2.iconContainer }), /* @__PURE__ */ React50__default.createElement(Box, { sx: styles2.textContainer }, title && /* @__PURE__ */ React50__default.createElement(Box, { as: "span", sx: styles2.title }, title), title && description && " ", description && /* @__PURE__ */ React50__default.createElement(Box, { as: "span", sx: styles2.description }, description)), DeviationLevelIcon && /* @__PURE__ */ React50__default.createElement(DeviationLevelIcon, { sx: styles2.deviationIcon }));
|
5310
5321
|
}
|
5311
5322
|
);
|
5312
5323
|
var getDeviationLevelIcon = ({
|
@@ -5330,7 +5341,7 @@ var TextLink = forwardRef(
|
|
5330
5341
|
var _a6;
|
5331
5342
|
const { t: t2 } = useTranslation();
|
5332
5343
|
const isExternal = props.isExternal !== void 0 ? props.isExternal : Boolean((_a6 = props.href) == null ? void 0 : _a6.match(/^https?:\/\//));
|
5333
|
-
return /* @__PURE__ */
|
5344
|
+
return /* @__PURE__ */ React50__default.createElement(Link, { ...props, ref, isExternal }, children, isExternal && /* @__PURE__ */ React50__default.createElement(
|
5334
5345
|
LinkOutOutline24Icon,
|
5335
5346
|
{
|
5336
5347
|
marginLeft: 0.5,
|
@@ -5351,7 +5362,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
5351
5362
|
const mainColor = colorScheme === "light" ? "#1d211c" : "#ffffff";
|
5352
5363
|
const accentColor = colorScheme === "light" ? "#138c6e" : "#ffffff";
|
5353
5364
|
const id = useId();
|
5354
|
-
return /* @__PURE__ */
|
5365
|
+
return /* @__PURE__ */ React50__default.createElement(Box, { as: "svg", viewBox: "0 0 107 54", ...boxProps }, /* @__PURE__ */ React50__default.createElement("title", null, "Vy logo"), /* @__PURE__ */ React50__default.createElement(
|
5355
5366
|
"path",
|
5356
5367
|
{
|
5357
5368
|
fillRule: "evenodd",
|
@@ -5359,7 +5370,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
5359
5370
|
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",
|
5360
5371
|
fill: mainColor
|
5361
5372
|
}
|
5362
|
-
), /* @__PURE__ */
|
5373
|
+
), /* @__PURE__ */ React50__default.createElement(
|
5363
5374
|
"mask",
|
5364
5375
|
{
|
5365
5376
|
id: `${id}-a`,
|
@@ -5370,7 +5381,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
5370
5381
|
width: "94",
|
5371
5382
|
height: "54"
|
5372
5383
|
},
|
5373
|
-
/* @__PURE__ */
|
5384
|
+
/* @__PURE__ */ React50__default.createElement(
|
5374
5385
|
"path",
|
5375
5386
|
{
|
5376
5387
|
fillRule: "evenodd",
|
@@ -5379,7 +5390,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
5379
5390
|
fill: mainColor
|
5380
5391
|
}
|
5381
5392
|
)
|
5382
|
-
), /* @__PURE__ */
|
5393
|
+
), /* @__PURE__ */ React50__default.createElement(
|
5383
5394
|
"g",
|
5384
5395
|
{
|
5385
5396
|
mask: `url(#${id}-a)`,
|
@@ -5387,9 +5398,9 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
5387
5398
|
clipRule: "evenodd",
|
5388
5399
|
fill: mainColor
|
5389
5400
|
},
|
5390
|
-
/* @__PURE__ */
|
5391
|
-
/* @__PURE__ */
|
5392
|
-
), /* @__PURE__ */
|
5401
|
+
/* @__PURE__ */ React50__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" }),
|
5402
|
+
/* @__PURE__ */ React50__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" })
|
5403
|
+
), /* @__PURE__ */ React50__default.createElement(
|
5393
5404
|
"path",
|
5394
5405
|
{
|
5395
5406
|
fillRule: "evenodd",
|
@@ -5397,7 +5408,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
5397
5408
|
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",
|
5398
5409
|
fill: accentColor
|
5399
5410
|
}
|
5400
|
-
), /* @__PURE__ */
|
5411
|
+
), /* @__PURE__ */ React50__default.createElement(
|
5401
5412
|
"path",
|
5402
5413
|
{
|
5403
5414
|
fillRule: "evenodd",
|
@@ -5405,7 +5416,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
5405
5416
|
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",
|
5406
5417
|
fill: mainColor
|
5407
5418
|
}
|
5408
|
-
), /* @__PURE__ */
|
5419
|
+
), /* @__PURE__ */ React50__default.createElement(
|
5409
5420
|
"mask",
|
5410
5421
|
{
|
5411
5422
|
id: `${id}-b`,
|
@@ -5416,7 +5427,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
5416
5427
|
width: "78",
|
5417
5428
|
height: "54"
|
5418
5429
|
},
|
5419
|
-
/* @__PURE__ */
|
5430
|
+
/* @__PURE__ */ React50__default.createElement(
|
5420
5431
|
"path",
|
5421
5432
|
{
|
5422
5433
|
fillRule: "evenodd",
|
@@ -5425,25 +5436,25 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
5425
5436
|
fill: mainColor
|
5426
5437
|
}
|
5427
5438
|
)
|
5428
|
-
), /* @__PURE__ */
|
5439
|
+
), /* @__PURE__ */ React50__default.createElement("g", { mask: `url(#${id}-b)`, fillRule: "evenodd", clipRule: "evenodd" }, /* @__PURE__ */ React50__default.createElement(
|
5429
5440
|
"path",
|
5430
5441
|
{
|
5431
5442
|
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",
|
5432
5443
|
fill: mainColor
|
5433
5444
|
}
|
5434
|
-
), /* @__PURE__ */
|
5445
|
+
), /* @__PURE__ */ React50__default.createElement(
|
5435
5446
|
"path",
|
5436
5447
|
{
|
5437
5448
|
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",
|
5438
5449
|
fill: mainColor
|
5439
5450
|
}
|
5440
|
-
), /* @__PURE__ */
|
5451
|
+
), /* @__PURE__ */ React50__default.createElement(
|
5441
5452
|
"path",
|
5442
5453
|
{
|
5443
5454
|
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",
|
5444
5455
|
fill: accentColor
|
5445
5456
|
}
|
5446
|
-
)), /* @__PURE__ */
|
5457
|
+
)), /* @__PURE__ */ React50__default.createElement(
|
5447
5458
|
"path",
|
5448
5459
|
{
|
5449
5460
|
fillRule: "evenodd",
|
@@ -5453,7 +5464,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
5453
5464
|
}
|
5454
5465
|
));
|
5455
5466
|
};
|
5456
|
-
var JumpForwardIcon = (props) => /* @__PURE__ */
|
5467
|
+
var JumpForwardIcon = (props) => /* @__PURE__ */ React50.createElement(Box, { as: "svg", ...props, viewBox: "0 0 32 30", fill: "none" }, /* @__PURE__ */ React50.createElement(
|
5457
5468
|
"path",
|
5458
5469
|
{
|
5459
5470
|
fillRule: "evenodd",
|
@@ -5461,7 +5472,7 @@ var JumpForwardIcon = (props) => /* @__PURE__ */ React49.createElement(Box, { as
|
|
5461
5472
|
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",
|
5462
5473
|
fill: "currentColor"
|
5463
5474
|
}
|
5464
|
-
), /* @__PURE__ */
|
5475
|
+
), /* @__PURE__ */ React50.createElement(
|
5465
5476
|
"path",
|
5466
5477
|
{
|
5467
5478
|
fillRule: "evenodd",
|
@@ -5470,7 +5481,7 @@ var JumpForwardIcon = (props) => /* @__PURE__ */ React49.createElement(Box, { as
|
|
5470
5481
|
fill: "currentColor"
|
5471
5482
|
}
|
5472
5483
|
));
|
5473
|
-
var JumpBackwardIcon = (props) => /* @__PURE__ */
|
5484
|
+
var JumpBackwardIcon = (props) => /* @__PURE__ */ React50.createElement(Box, { as: "svg", ...props, viewBox: "0 0 32 30", fill: "none" }, /* @__PURE__ */ React50.createElement(
|
5474
5485
|
"path",
|
5475
5486
|
{
|
5476
5487
|
fillRule: "evenodd",
|
@@ -5478,7 +5489,7 @@ var JumpBackwardIcon = (props) => /* @__PURE__ */ React49.createElement(Box, { a
|
|
5478
5489
|
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",
|
5479
5490
|
fill: "currentColor"
|
5480
5491
|
}
|
5481
|
-
), /* @__PURE__ */
|
5492
|
+
), /* @__PURE__ */ React50.createElement(
|
5482
5493
|
"path",
|
5483
5494
|
{
|
5484
5495
|
fillRule: "evenodd",
|
@@ -5487,7 +5498,7 @@ var JumpBackwardIcon = (props) => /* @__PURE__ */ React49.createElement(Box, { a
|
|
5487
5498
|
fill: "currentColor"
|
5488
5499
|
}
|
5489
5500
|
));
|
5490
|
-
var PlayIcon = (props) => /* @__PURE__ */
|
5501
|
+
var PlayIcon = (props) => /* @__PURE__ */ React50.createElement(Box, { as: "svg", ...props, fill: "none", viewBox: "0 0 60 60" }, /* @__PURE__ */ React50.createElement(
|
5491
5502
|
"path",
|
5492
5503
|
{
|
5493
5504
|
fillRule: "evenodd",
|
@@ -5496,7 +5507,7 @@ var PlayIcon = (props) => /* @__PURE__ */ React49.createElement(Box, { as: "svg"
|
|
5496
5507
|
fill: "currentColor"
|
5497
5508
|
}
|
5498
5509
|
));
|
5499
|
-
var PauseIcon = (props) => /* @__PURE__ */
|
5510
|
+
var PauseIcon = (props) => /* @__PURE__ */ React50.createElement(Box, { as: "svg", ...props, viewBox: "0 0 60 60", fill: "none" }, /* @__PURE__ */ React50.createElement(
|
5500
5511
|
"path",
|
5501
5512
|
{
|
5502
5513
|
fillRule: "evenodd",
|
@@ -5505,7 +5516,7 @@ var PauseIcon = (props) => /* @__PURE__ */ React49.createElement(Box, { as: "svg
|
|
5505
5516
|
fill: "currentColor"
|
5506
5517
|
}
|
5507
5518
|
));
|
5508
|
-
var SkipNextIcon = (props) => /* @__PURE__ */
|
5519
|
+
var SkipNextIcon = (props) => /* @__PURE__ */ React50.createElement(Box, { as: "svg", ...props, viewBox: "0 0 30 30", fill: "none" }, /* @__PURE__ */ React50.createElement(
|
5509
5520
|
"path",
|
5510
5521
|
{
|
5511
5522
|
fillRule: "evenodd",
|
@@ -5514,7 +5525,7 @@ var SkipNextIcon = (props) => /* @__PURE__ */ React49.createElement(Box, { as: "
|
|
5514
5525
|
fill: "currentColor"
|
5515
5526
|
}
|
5516
5527
|
));
|
5517
|
-
var SkipPreviousIcon = (props) => /* @__PURE__ */
|
5528
|
+
var SkipPreviousIcon = (props) => /* @__PURE__ */ React50.createElement(Box, { as: "svg", ...props, viewBox: "0 0 30 30", fill: "none" }, /* @__PURE__ */ React50.createElement(
|
5518
5529
|
"path",
|
5519
5530
|
{
|
5520
5531
|
fillRule: "evenodd",
|
@@ -5536,7 +5547,7 @@ var JumpButton = ({
|
|
5536
5547
|
variant: "jumpSkip",
|
5537
5548
|
size: size2
|
5538
5549
|
});
|
5539
|
-
return /* @__PURE__ */
|
5550
|
+
return /* @__PURE__ */ React50__default.createElement(
|
5540
5551
|
Center,
|
5541
5552
|
{
|
5542
5553
|
as: "button",
|
@@ -5545,7 +5556,7 @@ var JumpButton = ({
|
|
5545
5556
|
disabled: isDisabled,
|
5546
5557
|
...props
|
5547
5558
|
},
|
5548
|
-
direction2 === "forward" ? /* @__PURE__ */
|
5559
|
+
direction2 === "forward" ? /* @__PURE__ */ React50__default.createElement(JumpForwardIcon, { sx: styles2.icon }) : /* @__PURE__ */ React50__default.createElement(JumpBackwardIcon, { sx: styles2.icon })
|
5549
5560
|
);
|
5550
5561
|
};
|
5551
5562
|
var texts17 = createTexts({
|
@@ -5573,7 +5584,7 @@ var PlayPauseButton = ({
|
|
5573
5584
|
variant: "play",
|
5574
5585
|
size: size2
|
5575
5586
|
});
|
5576
|
-
return /* @__PURE__ */
|
5587
|
+
return /* @__PURE__ */ React50__default.createElement(
|
5577
5588
|
Center,
|
5578
5589
|
{
|
5579
5590
|
as: "button",
|
@@ -5582,7 +5593,7 @@ var PlayPauseButton = ({
|
|
5582
5593
|
disabled: isDisabled,
|
5583
5594
|
...props
|
5584
5595
|
},
|
5585
|
-
isPlaying ? /* @__PURE__ */
|
5596
|
+
isPlaying ? /* @__PURE__ */ React50__default.createElement(PauseIcon, { sx: styles2.icon }) : /* @__PURE__ */ React50__default.createElement(PlayIcon, { sx: styles2.icon })
|
5586
5597
|
);
|
5587
5598
|
};
|
5588
5599
|
var texts18 = createTexts({
|
@@ -5610,7 +5621,7 @@ var SkipButton = ({
|
|
5610
5621
|
variant: "jumpSkip",
|
5611
5622
|
size: size2
|
5612
5623
|
});
|
5613
|
-
return /* @__PURE__ */
|
5624
|
+
return /* @__PURE__ */ React50__default.createElement(
|
5614
5625
|
Center,
|
5615
5626
|
{
|
5616
5627
|
as: "button",
|
@@ -5619,7 +5630,7 @@ var SkipButton = ({
|
|
5619
5630
|
disabled: isDisabled,
|
5620
5631
|
...props
|
5621
5632
|
},
|
5622
|
-
direction2 === "forward" ? /* @__PURE__ */
|
5633
|
+
direction2 === "forward" ? /* @__PURE__ */ React50__default.createElement(SkipNextIcon, { sx: styles2.icon }) : /* @__PURE__ */ React50__default.createElement(SkipPreviousIcon, { sx: styles2.icon })
|
5623
5634
|
);
|
5624
5635
|
};
|
5625
5636
|
var texts19 = createTexts({
|
@@ -5642,13 +5653,13 @@ var ModalHeader = forwardRef(
|
|
5642
5653
|
fontSize: size2 === "lg" ? ["mobile.lg", "desktop.lg"] : ["mobile.md", "desktop.md"],
|
5643
5654
|
textAlign: size2 === "lg" ? "center" : "left"
|
5644
5655
|
};
|
5645
|
-
return /* @__PURE__ */
|
5656
|
+
return /* @__PURE__ */ React50__default.createElement(ModalHeader$1, { ...props, ref, ...styles2 });
|
5646
5657
|
}
|
5647
5658
|
);
|
5648
5659
|
|
5649
5660
|
// src/modal/Drawer.tsx
|
5650
5661
|
var Drawer = (props) => {
|
5651
|
-
return /* @__PURE__ */
|
5662
|
+
return /* @__PURE__ */ React50__default.createElement(DrawerProvider, { placement: props.placement }, /* @__PURE__ */ React50__default.createElement(Drawer$1, { ...props }));
|
5652
5663
|
};
|
5653
5664
|
var DrawerContent = forwardRef(
|
5654
5665
|
({ children, ...props }, ref) => {
|
@@ -5665,7 +5676,7 @@ var DrawerContent = forwardRef(
|
|
5665
5676
|
});
|
5666
5677
|
const isTopOrBottom = placement === "top" || placement === "bottom";
|
5667
5678
|
const widthConstraits = isTopOrBottom ? { width: ["100%", "37.5rem"], mx: "auto" } : {};
|
5668
|
-
return /* @__PURE__ */
|
5679
|
+
return /* @__PURE__ */ React50__default.createElement(Box, { ...handlers }, /* @__PURE__ */ React50__default.createElement(
|
5669
5680
|
DrawerContent$1,
|
5670
5681
|
{
|
5671
5682
|
...widthConstraits,
|
@@ -5674,13 +5685,13 @@ var DrawerContent = forwardRef(
|
|
5674
5685
|
...props,
|
5675
5686
|
ref
|
5676
5687
|
},
|
5677
|
-
/* @__PURE__ */
|
5688
|
+
/* @__PURE__ */ React50__default.createElement(Box, { position: "relative" }, /* @__PURE__ */ React50__default.createElement(Box, { maxHeight: "100vh", maxWidth: "100vw", overflow: "auto" }, isTopOrBottom && /* @__PURE__ */ React50__default.createElement(Notch, null), /* @__PURE__ */ React50__default.createElement(Box, null, children)))
|
5678
5689
|
));
|
5679
5690
|
}
|
5680
5691
|
);
|
5681
5692
|
var Notch = forwardRef((props, ref) => {
|
5682
5693
|
const placement = useDrawerContext();
|
5683
|
-
return /* @__PURE__ */
|
5694
|
+
return /* @__PURE__ */ React50__default.createElement(
|
5684
5695
|
Box,
|
5685
5696
|
{
|
5686
5697
|
position: "absolute",
|
@@ -5692,14 +5703,14 @@ var Notch = forwardRef((props, ref) => {
|
|
5692
5703
|
...props,
|
5693
5704
|
ref
|
5694
5705
|
},
|
5695
|
-
/* @__PURE__ */
|
5706
|
+
/* @__PURE__ */ React50__default.createElement(
|
5696
5707
|
Center,
|
5697
5708
|
{
|
5698
5709
|
background: `linear-gradient(to ${placement === "bottom" ? "bottom" : "top"}, white 0%, white 60%, transparent)`,
|
5699
5710
|
padding: 2,
|
5700
5711
|
borderRadius: "md"
|
5701
5712
|
},
|
5702
|
-
/* @__PURE__ */
|
5713
|
+
/* @__PURE__ */ React50__default.createElement(
|
5703
5714
|
Box,
|
5704
5715
|
{
|
5705
5716
|
width: "2.265rem",
|
@@ -5711,10 +5722,10 @@ var Notch = forwardRef((props, ref) => {
|
|
5711
5722
|
)
|
5712
5723
|
);
|
5713
5724
|
});
|
5714
|
-
var DrawerContext =
|
5715
|
-
var DrawerProvider = (props) => /* @__PURE__ */
|
5725
|
+
var DrawerContext = React50__default.createContext(void 0);
|
5726
|
+
var DrawerProvider = (props) => /* @__PURE__ */ React50__default.createElement(DrawerContext.Provider, { value: props.placement }, props.children);
|
5716
5727
|
var useDrawerContext = () => {
|
5717
|
-
return
|
5728
|
+
return React50__default.useContext(DrawerContext);
|
5718
5729
|
};
|
5719
5730
|
var SimpleDrawer = ({
|
5720
5731
|
placement,
|
@@ -5722,19 +5733,19 @@ var SimpleDrawer = ({
|
|
5722
5733
|
title,
|
5723
5734
|
...props
|
5724
5735
|
}) => {
|
5725
|
-
return /* @__PURE__ */
|
5736
|
+
return /* @__PURE__ */ React50__default.createElement(Drawer, { placement, ...props }, /* @__PURE__ */ React50__default.createElement(DrawerOverlay, null), /* @__PURE__ */ React50__default.createElement(DrawerContent, null, /* @__PURE__ */ React50__default.createElement(DrawerCloseButton, null), title && /* @__PURE__ */ React50__default.createElement(ModalHeader, null, title), /* @__PURE__ */ React50__default.createElement(DrawerBody, null, children)));
|
5726
5737
|
};
|
5727
5738
|
var PopoverWizardBody = ({ children }) => {
|
5728
|
-
const [currentStep, setCurrentStep] =
|
5729
|
-
const totalSteps =
|
5739
|
+
const [currentStep, setCurrentStep] = React50.useState(1);
|
5740
|
+
const totalSteps = React50.Children.count(children);
|
5730
5741
|
const { isOpen } = usePopoverContext();
|
5731
|
-
|
5742
|
+
React50.useEffect(() => {
|
5732
5743
|
if (!isOpen && currentStep > 1) {
|
5733
5744
|
const id = setTimeout(() => setCurrentStep(1), 500);
|
5734
5745
|
return () => clearTimeout(id);
|
5735
5746
|
}
|
5736
5747
|
}, [isOpen, currentStep]);
|
5737
|
-
return /* @__PURE__ */
|
5748
|
+
return /* @__PURE__ */ React50.createElement(PopoverBody, null, /* @__PURE__ */ React50.createElement(Stack, { spacing: 1.5 }, /* @__PURE__ */ React50.createElement(Box, null, React50.Children.toArray(children)[currentStep - 1]), /* @__PURE__ */ React50.createElement(Flex, { gap: 3 }, /* @__PURE__ */ React50.createElement(StepIndicator, { totalSteps, currentStep }), /* @__PURE__ */ React50.createElement(
|
5738
5749
|
NextStepButton,
|
5739
5750
|
{
|
5740
5751
|
isLastStep: totalSteps === currentStep,
|
@@ -5744,7 +5755,7 @@ var PopoverWizardBody = ({ children }) => {
|
|
5744
5755
|
};
|
5745
5756
|
var StepIndicator = ({ totalSteps, currentStep }) => {
|
5746
5757
|
const steps = createRange(1, totalSteps);
|
5747
|
-
return /* @__PURE__ */
|
5758
|
+
return /* @__PURE__ */ React50.createElement(Flex, { gap: 1, alignItems: "center" }, steps.map((step) => /* @__PURE__ */ React50.createElement(
|
5748
5759
|
Box,
|
5749
5760
|
{
|
5750
5761
|
key: step,
|
@@ -5763,13 +5774,13 @@ var createRange = (start, end) => {
|
|
5763
5774
|
var NextStepButton = ({ isLastStep, onNext }) => {
|
5764
5775
|
const { onClose } = usePopoverContext();
|
5765
5776
|
const { t: t2 } = useTranslation();
|
5766
|
-
return /* @__PURE__ */
|
5777
|
+
return /* @__PURE__ */ React50.createElement(
|
5767
5778
|
Button,
|
5768
5779
|
{
|
5769
5780
|
variant: "additional",
|
5770
5781
|
size: "sm",
|
5771
5782
|
color: "white",
|
5772
|
-
leftIcon: isLastStep ? void 0 : /* @__PURE__ */
|
5783
|
+
leftIcon: isLastStep ? void 0 : /* @__PURE__ */ React50.createElement(ArrowRightFill18Icon, null),
|
5773
5784
|
onClick: isLastStep ? onClose : onNext
|
5774
5785
|
},
|
5775
5786
|
t2(isLastStep ? texts20.finish : texts20.nextStep)
|
@@ -5801,7 +5812,7 @@ var SimplePopover = ({
|
|
5801
5812
|
borderRadius,
|
5802
5813
|
...props
|
5803
5814
|
}) => {
|
5804
|
-
return /* @__PURE__ */
|
5815
|
+
return /* @__PURE__ */ React50__default.createElement(DarkMode, null, /* @__PURE__ */ React50__default.createElement(
|
5805
5816
|
Popover,
|
5806
5817
|
{
|
5807
5818
|
onClose,
|
@@ -5813,8 +5824,8 @@ var SimplePopover = ({
|
|
5813
5824
|
arrowShadowColor: "none",
|
5814
5825
|
...props
|
5815
5826
|
},
|
5816
|
-
triggerElement && /* @__PURE__ */
|
5817
|
-
/* @__PURE__ */
|
5827
|
+
triggerElement && /* @__PURE__ */ React50__default.createElement(PopoverTrigger, null, triggerElement),
|
5828
|
+
/* @__PURE__ */ React50__default.createElement(PopoverContent, { borderRadius }, /* @__PURE__ */ React50__default.createElement(PopoverArrow, null), withCloseButton && /* @__PURE__ */ React50__default.createElement(PopoverCloseButton, null), /* @__PURE__ */ React50__default.createElement(PopoverBody, null, children))
|
5818
5829
|
));
|
5819
5830
|
};
|
5820
5831
|
var WizardPopover = ({
|
@@ -5822,7 +5833,7 @@ var WizardPopover = ({
|
|
5822
5833
|
triggerElement,
|
5823
5834
|
withCloseButton = false
|
5824
5835
|
}) => {
|
5825
|
-
return /* @__PURE__ */
|
5836
|
+
return /* @__PURE__ */ React50.createElement(DarkMode, null, /* @__PURE__ */ React50.createElement(Popover, { size: "lg" }, /* @__PURE__ */ React50.createElement(PopoverTrigger, null, triggerElement), /* @__PURE__ */ React50.createElement(PopoverContent, null, /* @__PURE__ */ React50.createElement(PopoverArrow, null), withCloseButton && /* @__PURE__ */ React50.createElement(PopoverCloseButton, null), /* @__PURE__ */ React50.createElement(PopoverWizardBody, null, children))));
|
5826
5837
|
};
|
5827
5838
|
var SporProvider = ({
|
5828
5839
|
theme: theme3 = theme,
|
@@ -5830,7 +5841,7 @@ var SporProvider = ({
|
|
5830
5841
|
children,
|
5831
5842
|
...props
|
5832
5843
|
}) => {
|
5833
|
-
return /* @__PURE__ */
|
5844
|
+
return /* @__PURE__ */ React50__default.createElement(LanguageProvider, { language }, /* @__PURE__ */ React50__default.createElement(ChakraProvider, { theme: theme3, ...props }, /* @__PURE__ */ React50__default.createElement(Global, { styles: fontFaces }), /* @__PURE__ */ React50__default.createElement(
|
5834
5845
|
Global,
|
5835
5846
|
{
|
5836
5847
|
styles: `
|
@@ -5840,7 +5851,7 @@ var SporProvider = ({
|
|
5840
5851
|
}
|
5841
5852
|
), children));
|
5842
5853
|
};
|
5843
|
-
var StepperContext =
|
5854
|
+
var StepperContext = React50__default.createContext(null);
|
5844
5855
|
var StepperProvider = ({
|
5845
5856
|
activeStep,
|
5846
5857
|
children,
|
@@ -5848,7 +5859,7 @@ var StepperProvider = ({
|
|
5848
5859
|
colorScheme,
|
5849
5860
|
numberOfSteps
|
5850
5861
|
}) => {
|
5851
|
-
return /* @__PURE__ */
|
5862
|
+
return /* @__PURE__ */ React50__default.createElement(
|
5852
5863
|
StepperContext.Provider,
|
5853
5864
|
{
|
5854
5865
|
value: { activeStep, onClick, colorScheme, numberOfSteps }
|
@@ -5857,7 +5868,7 @@ var StepperProvider = ({
|
|
5857
5868
|
);
|
5858
5869
|
};
|
5859
5870
|
var useStepper = () => {
|
5860
|
-
const context =
|
5871
|
+
const context = React50__default.useContext(StepperContext);
|
5861
5872
|
if (!context) {
|
5862
5873
|
throw new Error(
|
5863
5874
|
"useStepper must be used within a StepperProvider. Most likely, you forgot to wrap your StepperStep in a Stepper component"
|
@@ -5879,7 +5890,7 @@ var Stepper = ({
|
|
5879
5890
|
const numberOfSteps = steps.length;
|
5880
5891
|
const activeStep = Number(activeStepAsStringOrNumber);
|
5881
5892
|
const { t: t2 } = useTranslation();
|
5882
|
-
return /* @__PURE__ */
|
5893
|
+
return /* @__PURE__ */ React50__default.createElement(Box, { __css: style.root }, /* @__PURE__ */ React50__default.createElement(
|
5883
5894
|
StepperProvider,
|
5884
5895
|
{
|
5885
5896
|
onClick,
|
@@ -5887,24 +5898,24 @@ var Stepper = ({
|
|
5887
5898
|
colorScheme,
|
5888
5899
|
numberOfSteps
|
5889
5900
|
},
|
5890
|
-
/* @__PURE__ */
|
5901
|
+
/* @__PURE__ */ React50__default.createElement(Box, { __css: style.container }, /* @__PURE__ */ React50__default.createElement(Box, { __css: style.innerContainer }, /* @__PURE__ */ React50__default.createElement(HStack, null, activeStep > 1 && /* @__PURE__ */ React50__default.createElement(
|
5891
5902
|
IconButton,
|
5892
5903
|
{
|
5893
5904
|
"aria-label": t2(texts21.back),
|
5894
|
-
icon: /* @__PURE__ */
|
5905
|
+
icon: /* @__PURE__ */ React50__default.createElement(DropdownLeftFill24Icon, null),
|
5895
5906
|
variant: "ghost",
|
5896
5907
|
size: "sm",
|
5897
5908
|
onClick: () => onClick(activeStep - 1),
|
5898
5909
|
__css: style.backButton
|
5899
5910
|
}
|
5900
|
-
), /* @__PURE__ */
|
5911
|
+
), /* @__PURE__ */ React50__default.createElement(
|
5901
5912
|
SimplePopover,
|
5902
5913
|
{
|
5903
|
-
triggerElement: /* @__PURE__ */
|
5914
|
+
triggerElement: /* @__PURE__ */ React50__default.createElement(Box, { as: "button", __css: style.stepCounter }, t2(texts21.stepsOf(activeStep, numberOfSteps))),
|
5904
5915
|
borderRadius: "xs"
|
5905
5916
|
},
|
5906
|
-
steps.map((step, index) => /* @__PURE__ */
|
5907
|
-
)), title && /* @__PURE__ */
|
5917
|
+
steps.map((step, index) => /* @__PURE__ */ React50__default.createElement(StepperStep, { key: step, stepNumber: index + 1 }, step))
|
5918
|
+
)), title && /* @__PURE__ */ React50__default.createElement(Box, { as: "h3", __css: style.title }, title)), /* @__PURE__ */ React50__default.createElement(Flex, { justifyContent: "center", display: ["none", "flex"] }, steps.map((step, index) => /* @__PURE__ */ React50__default.createElement(StepperStep, { key: index, stepNumber: index + 1 }, step))))
|
5908
5919
|
));
|
5909
5920
|
};
|
5910
5921
|
var texts21 = createTexts({
|
@@ -5928,7 +5939,7 @@ var StepperStep = ({ children, stepNumber }) => {
|
|
5928
5939
|
variant,
|
5929
5940
|
colorScheme
|
5930
5941
|
});
|
5931
|
-
return /* @__PURE__ */
|
5942
|
+
return /* @__PURE__ */ React50__default.createElement(Box, { __css: style.stepContainer }, stepNumber > 1 && /* @__PURE__ */ React50__default.createElement(DropdownRightFill18Icon, { mx: 5, display: ["none", "block"] }), /* @__PURE__ */ React50__default.createElement(
|
5932
5943
|
Flex,
|
5933
5944
|
{
|
5934
5945
|
__css: style.stepButton,
|
@@ -5938,8 +5949,8 @@ var StepperStep = ({ children, stepNumber }) => {
|
|
5938
5949
|
disabled: variant === "disabled" || variant === "active",
|
5939
5950
|
onClick: () => onClick(stepNumber)
|
5940
5951
|
},
|
5941
|
-
/* @__PURE__ */
|
5942
|
-
/* @__PURE__ */
|
5952
|
+
/* @__PURE__ */ React50__default.createElement(Box, { __css: style.stepNumber }, stepNumber),
|
5953
|
+
/* @__PURE__ */ React50__default.createElement(Box, { __css: style.stepTitle }, children)
|
5943
5954
|
));
|
5944
5955
|
};
|
5945
5956
|
var getVariant = (stepNumber, activeStep) => {
|
@@ -5952,11 +5963,11 @@ var getVariant = (stepNumber, activeStep) => {
|
|
5952
5963
|
return "disabled";
|
5953
5964
|
};
|
5954
5965
|
var Tabs = forwardRef((props, ref) => {
|
5955
|
-
return /* @__PURE__ */
|
5966
|
+
return /* @__PURE__ */ React50.createElement(Tabs$1, { ...props, ref });
|
5956
5967
|
});
|
5957
5968
|
var Table = forwardRef((props, ref) => {
|
5958
5969
|
const { variant, size: size2, colorScheme, children, ...rest } = props;
|
5959
|
-
return /* @__PURE__ */
|
5970
|
+
return /* @__PURE__ */ React50__default.createElement(Box, { ...rest, ...getStyleProps(props) }, /* @__PURE__ */ React50__default.createElement(Box, { overflowX: "auto" }, /* @__PURE__ */ React50__default.createElement(
|
5960
5971
|
Table$1,
|
5961
5972
|
{
|
5962
5973
|
variant,
|
@@ -10706,6 +10717,7 @@ __export(components_exports, {
|
|
10706
10717
|
Accordion: () => accordion_default,
|
10707
10718
|
Alert: () => alert_default,
|
10708
10719
|
Badge: () => badge_default,
|
10720
|
+
Breadcrumb: () => breadcrumb_default,
|
10709
10721
|
Button: () => button_default,
|
10710
10722
|
Card: () => card_default,
|
10711
10723
|
CardSelect: () => card_select_default,
|
@@ -11246,6 +11258,44 @@ var colorCombinations = {
|
|
11246
11258
|
color: "darkGrey"
|
11247
11259
|
}
|
11248
11260
|
};
|
11261
|
+
|
11262
|
+
// src/theme/components/breadcrumb.ts
|
11263
|
+
var { defineMultiStyleConfig: defineMultiStyleConfig27, definePartsStyle: definePartsStyle27 } = createMultiStyleConfigHelpers(breadcrumbAnatomy.keys);
|
11264
|
+
var baseStyleLink2 = defineStyle({
|
11265
|
+
transitionProperty: "common",
|
11266
|
+
transitionDuration: "fast",
|
11267
|
+
transitionTimingFunction: "ease-out",
|
11268
|
+
outline: "none",
|
11269
|
+
color: "inherit",
|
11270
|
+
textDecoration: "none",
|
11271
|
+
"&:not([aria-current=page])": {
|
11272
|
+
cursor: "pointer",
|
11273
|
+
paddingX: 0.5,
|
11274
|
+
borderRadius: "xs",
|
11275
|
+
_hover: {
|
11276
|
+
backgroundColor: "coralGreen"
|
11277
|
+
},
|
11278
|
+
_focusVisible: {
|
11279
|
+
boxShadow: getBoxShadowString({
|
11280
|
+
borderColor: "greenHaze",
|
11281
|
+
borderWidth: 2
|
11282
|
+
})
|
11283
|
+
},
|
11284
|
+
_active: {
|
11285
|
+
backgroundColor: "mint"
|
11286
|
+
}
|
11287
|
+
}
|
11288
|
+
});
|
11289
|
+
var baseStyle43 = definePartsStyle27({
|
11290
|
+
link: baseStyleLink2,
|
11291
|
+
list: {
|
11292
|
+
flexWrap: "wrap",
|
11293
|
+
alignItems: "flex-start"
|
11294
|
+
}
|
11295
|
+
});
|
11296
|
+
var breadcrumb_default = defineMultiStyleConfig27({
|
11297
|
+
baseStyle: baseStyle43
|
11298
|
+
});
|
11249
11299
|
var config6 = defineStyleConfig$1({
|
11250
11300
|
baseStyle: {
|
11251
11301
|
border: 0,
|
@@ -14584,12 +14634,12 @@ var theme = {
|
|
14584
14634
|
};
|
14585
14635
|
var BaseToast = ({ children, variant, id }) => {
|
14586
14636
|
const styles2 = useStyleConfig("Toast", { variant });
|
14587
|
-
return /* @__PURE__ */
|
14637
|
+
return /* @__PURE__ */ React50__default.createElement(Flex, { sx: styles2, id }, /* @__PURE__ */ React50__default.createElement(ToastIcon, { variant }), children);
|
14588
14638
|
};
|
14589
14639
|
var ToastIcon = ({ variant }) => {
|
14590
14640
|
const Icon = getIcon3(variant);
|
14591
14641
|
const { t: t2 } = useTranslation();
|
14592
|
-
return /* @__PURE__ */
|
14642
|
+
return /* @__PURE__ */ React50__default.createElement(
|
14593
14643
|
Icon,
|
14594
14644
|
{
|
14595
14645
|
flexShrink: 0,
|
@@ -14639,7 +14689,7 @@ var ActionToast = ({
|
|
14639
14689
|
buttonText,
|
14640
14690
|
id
|
14641
14691
|
}) => {
|
14642
|
-
return /* @__PURE__ */
|
14692
|
+
return /* @__PURE__ */ React50__default.createElement(BaseToast, { variant, id }, /* @__PURE__ */ React50__default.createElement(Box, { marginRight: 2, flexGrow: "1" }, children), /* @__PURE__ */ React50__default.createElement(Button, { variant: "additional", size: "sm", onClick }, buttonText));
|
14643
14693
|
};
|
14644
14694
|
var ClosableToast = ({
|
14645
14695
|
children,
|
@@ -14649,13 +14699,13 @@ var ClosableToast = ({
|
|
14649
14699
|
}) => {
|
14650
14700
|
const styles2 = useMultiStyleConfig("Toast", { variant });
|
14651
14701
|
const { t: t2 } = useTranslation();
|
14652
|
-
return /* @__PURE__ */
|
14702
|
+
return /* @__PURE__ */ React50__default.createElement(BaseToast, { variant, id }, /* @__PURE__ */ React50__default.createElement(Box, { flexGrow: "1" }, children), /* @__PURE__ */ React50__default.createElement(
|
14653
14703
|
IconButton,
|
14654
14704
|
{
|
14655
14705
|
sx: styles2.dismissButton,
|
14656
14706
|
variant: "ghost",
|
14657
14707
|
"aria-label": t2(texts23.dismiss),
|
14658
|
-
icon: /* @__PURE__ */
|
14708
|
+
icon: /* @__PURE__ */ React50__default.createElement(CloseFill18Icon, null),
|
14659
14709
|
onClick: onClose
|
14660
14710
|
}
|
14661
14711
|
));
|
@@ -14683,7 +14733,7 @@ var useToast = () => {
|
|
14683
14733
|
};
|
14684
14734
|
var getToastComponent = (opts) => {
|
14685
14735
|
if ("isClosable" in opts && opts.isClosable) {
|
14686
|
-
return ({ onClose, id }) => /* @__PURE__ */
|
14736
|
+
return ({ onClose, id }) => /* @__PURE__ */ React50__default.createElement(
|
14687
14737
|
ClosableToast,
|
14688
14738
|
{
|
14689
14739
|
id,
|
@@ -14699,7 +14749,7 @@ var getToastComponent = (opts) => {
|
|
14699
14749
|
);
|
14700
14750
|
}
|
14701
14751
|
if ("buttonText" in opts) {
|
14702
|
-
return ({ id }) => /* @__PURE__ */
|
14752
|
+
return ({ id }) => /* @__PURE__ */ React50__default.createElement(
|
14703
14753
|
ActionToast,
|
14704
14754
|
{
|
14705
14755
|
id,
|
@@ -14710,7 +14760,7 @@ var getToastComponent = (opts) => {
|
|
14710
14760
|
opts.text
|
14711
14761
|
);
|
14712
14762
|
}
|
14713
|
-
return ({ id }) => /* @__PURE__ */
|
14763
|
+
return ({ id }) => /* @__PURE__ */ React50__default.createElement(BaseToast, { id, variant: opts.variant }, opts.text);
|
14714
14764
|
};
|
14715
14765
|
|
14716
|
-
export { Accordion, AttachedInputs, Badge, 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, Heading, IconButton, InfoSelect, InfoTag, Input, InputLeftElement2 as InputLeftElement, InputRightElement2 as InputRightElement, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightSpinner, LineIcon, ListBox, ModalHeader, NativeSelect, NumericStepper, PasswordInput, PhoneNumberInput, PlayPauseButton, PopoverWizardBody, ProgressBar, ProgressLoader, Radio, RadioGroup, SearchInput, SimpleDrawer, SimplePopover, Skeleton, SkeletonCircle, SkeletonText, SkipButton, SporProvider, Stack, StaticAlert, Stepper, StepperStep, Switch, Table, Tabs, Text4 as Text, TextLink, Textarea, TimePicker, TravelTag, VyLogo, WizardPopover, createTexts, fontFaces, theme, useToast, useTranslation };
|
14766
|
+
export { Accordion, AttachedInputs, Badge, 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, Heading, IconButton, InfoSelect, InfoTag, Input, InputLeftElement2 as InputLeftElement, InputRightElement2 as InputRightElement, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightSpinner, LineIcon, ListBox, ModalHeader, NativeSelect, NumericStepper, PasswordInput, PhoneNumberInput, PlayPauseButton, PopoverWizardBody, ProgressBar, ProgressLoader, Radio, RadioGroup, SearchInput, SimpleDrawer, SimplePopover, Skeleton, SkeletonCircle, SkeletonText, SkipButton, SporProvider, Stack, StaticAlert, Stepper, StepperStep, Switch, Table, Tabs, Text4 as Text, TextLink, Textarea, TimePicker, TravelTag, VyLogo, WizardPopover, createTexts, fontFaces, theme, useToast, useTranslation };
|