@vygruppen/spor-react 3.7.6 → 3.8.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 +11 -11
- package/CHANGELOG.md +29 -0
- package/dist/{CountryCodeSelect-IV4VKD4A.mjs → CountryCodeSelect-BA3A7ODU.mjs} +1 -1
- package/dist/{chunk-LQEO65MM.mjs → chunk-HL3ESNVB.mjs} +654 -445
- package/dist/index.d.mts +237 -43
- package/dist/index.d.ts +237 -43
- package/dist/index.js +830 -621
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/src/button/Button.tsx +7 -1
- package/src/button/FloatingActionButton.tsx +10 -1
- package/src/datepicker/Calendar.tsx +8 -3
- package/src/datepicker/CalendarCell.tsx +8 -3
- package/src/datepicker/CalendarGrid.tsx +9 -3
- package/src/datepicker/CalendarTriggerButton.tsx +10 -3
- package/src/datepicker/DatePicker.tsx +15 -35
- package/src/datepicker/DateRangePicker.tsx +14 -25
- package/src/datepicker/DateTimeSegment.tsx +0 -2
- package/src/datepicker/RangeCalendar.tsx +8 -4
- package/src/datepicker/StyledField.tsx +6 -1
- package/src/datepicker/TimePicker.tsx +1 -1
- package/src/input/NumericStepper.tsx +91 -68
- package/src/tab/Tabs.tsx +11 -1
- package/src/theme/components/button.ts +18 -16
- package/src/theme/components/card.ts +18 -10
- package/src/theme/components/close-button.ts +9 -8
- package/src/theme/components/datepicker.ts +74 -23
- package/src/theme/components/fab.ts +76 -1
- package/src/theme/components/info-tag.ts +16 -1
- package/src/theme/components/line-icon.ts +5 -4
- package/src/theme/components/link.ts +14 -36
- package/src/theme/components/modal.ts +4 -3
- package/src/theme/components/tabs.ts +82 -1
- package/src/theme/components/travel-tag.ts +6 -4
@@ -1,10 +1,10 @@
|
|
1
|
-
import { forwardRef, Divider as Divider$1, Stack as Stack$1, Accordion as Accordion$1, Skeleton as Skeleton$1, useButtonGroup, Button as Button$1, Box, Center, ButtonGroup as ButtonGroup$1, IconButton as IconButton$1, useMultiStyleConfig, useStyleConfig, Badge as Badge$1, Code as Code$1, Text, PopoverAnchor, FormLabel, Flex, useFormControlContext,
|
1
|
+
import { forwardRef, Divider as Divider$1, Stack as Stack$1, Accordion as Accordion$1, Skeleton as Skeleton$1, useButtonGroup, Button as Button$1, Box, Center, ButtonGroup as ButtonGroup$1, IconButton as IconButton$1, useMultiStyleConfig, useStyleConfig, Badge as Badge$1, Code as Code$1, Text, PopoverAnchor, FormLabel, Flex, useFormControlContext, 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, ListItem, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalOverlay, OrderedList, 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, UnorderedList, 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
|
6
|
+
import * as React69 from 'react';
|
7
|
+
import React69__default, { createContext, useEffect, forwardRef as forwardRef$1, useRef, useState, useId, Suspense, useMemo, useContext, useCallback } from 'react';
|
8
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';
|
@@ -770,22 +770,22 @@ var require_lodash = __commonJS({
|
|
770
770
|
}
|
771
771
|
});
|
772
772
|
var Divider = forwardRef((props, ref) => {
|
773
|
-
return /* @__PURE__ */
|
773
|
+
return /* @__PURE__ */ React69__default.createElement(Divider$1, { ...props, ref });
|
774
774
|
});
|
775
775
|
var Stack = forwardRef(
|
776
776
|
({ flexDirection, ...props }, ref) => {
|
777
|
-
return /* @__PURE__ */
|
777
|
+
return /* @__PURE__ */ React69__default.createElement(Stack$1, { ...props, direction: flexDirection, ref });
|
778
778
|
}
|
779
779
|
);
|
780
|
-
var AccordionContext =
|
780
|
+
var AccordionContext = React69__default.createContext(null);
|
781
781
|
var AccordionProvider = ({
|
782
782
|
size: size2,
|
783
783
|
...props
|
784
784
|
}) => {
|
785
|
-
return /* @__PURE__ */
|
785
|
+
return /* @__PURE__ */ React69__default.createElement(AccordionContext.Provider, { value: { size: size2 }, ...props });
|
786
786
|
};
|
787
787
|
var useAccordionContext = () => {
|
788
|
-
const context =
|
788
|
+
const context = React69__default.useContext(AccordionContext);
|
789
789
|
if (context === null) {
|
790
790
|
throw new Error(
|
791
791
|
"useAccordionContext must be used within AccordionProvider"
|
@@ -796,14 +796,14 @@ var useAccordionContext = () => {
|
|
796
796
|
var Accordion = forwardRef(
|
797
797
|
({ children, spacing: spacing3 = 2, ...props }, ref) => {
|
798
798
|
const defaultIndex = typeof props.defaultIndex === "number" && props.allowMultiple ? [props.defaultIndex] : props.defaultIndex;
|
799
|
-
return /* @__PURE__ */
|
799
|
+
return /* @__PURE__ */ React69__default.createElement(AccordionProvider, { size: props.size }, /* @__PURE__ */ React69__default.createElement(
|
800
800
|
Accordion$1,
|
801
801
|
{
|
802
802
|
...props,
|
803
803
|
ref,
|
804
804
|
defaultIndex
|
805
805
|
},
|
806
|
-
/* @__PURE__ */
|
806
|
+
/* @__PURE__ */ React69__default.createElement(Stack, { spacing: spacing3 }, children)
|
807
807
|
));
|
808
808
|
}
|
809
809
|
);
|
@@ -815,7 +815,7 @@ var Expandable = ({
|
|
815
815
|
size: size2 = "md",
|
816
816
|
...rest
|
817
817
|
}) => {
|
818
|
-
return /* @__PURE__ */
|
818
|
+
return /* @__PURE__ */ React69__default.createElement(Accordion, { ...rest, size: size2 }, /* @__PURE__ */ React69__default.createElement(
|
819
819
|
ExpandableItem,
|
820
820
|
{
|
821
821
|
headingLevel,
|
@@ -834,7 +834,7 @@ var ExpandableItem = ({
|
|
834
834
|
}) => {
|
835
835
|
const { size: size2 } = useAccordionContext();
|
836
836
|
warnAboutMismatchingIcon({ icon: leftIcon, size: size2 });
|
837
|
-
return /* @__PURE__ */
|
837
|
+
return /* @__PURE__ */ React69__default.createElement(AccordionItem, { ...rest }, /* @__PURE__ */ React69__default.createElement(Box, { as: headingLevel }, /* @__PURE__ */ React69__default.createElement(AccordionButton, null, /* @__PURE__ */ React69__default.createElement(Flex, { alignItems: "center" }, leftIcon && /* @__PURE__ */ React69__default.createElement(Box, { marginRight: 1 }, leftIcon), title), /* @__PURE__ */ React69__default.createElement(AccordionIcon, null))), /* @__PURE__ */ React69__default.createElement(AccordionPanel, null, children));
|
838
838
|
};
|
839
839
|
var warnAboutMismatchingIcon = ({ icon, size: size2 }) => {
|
840
840
|
var _a6, _b5;
|
@@ -883,7 +883,7 @@ function LanguageProvider({
|
|
883
883
|
language,
|
884
884
|
children
|
885
885
|
}) {
|
886
|
-
return /* @__PURE__ */
|
886
|
+
return /* @__PURE__ */ React69__default.createElement(LanguageContext.Provider, { value: language }, children);
|
887
887
|
}
|
888
888
|
function useLanguage() {
|
889
889
|
const language = useContext(LanguageContext);
|
@@ -915,11 +915,11 @@ function useHydrated() {
|
|
915
915
|
// src/loader/ClientOnly.tsx
|
916
916
|
var ClientOnly = ({ children, fallback = null }) => {
|
917
917
|
const isHydrated = useHydrated();
|
918
|
-
return /* @__PURE__ */
|
918
|
+
return /* @__PURE__ */ React69__default.createElement(React69__default.Fragment, null, isHydrated ? children() : fallback);
|
919
919
|
};
|
920
920
|
function Lottie({ animationData }) {
|
921
921
|
const { View } = useLottie({ animationData, loop: true });
|
922
|
-
return /* @__PURE__ */
|
922
|
+
return /* @__PURE__ */ React69__default.createElement(React69__default.Fragment, null, View);
|
923
923
|
}
|
924
924
|
|
925
925
|
// src/loader/ColorInlineLoader.tsx
|
@@ -928,7 +928,7 @@ var ColorInlineLoader = ({
|
|
928
928
|
maxWidth,
|
929
929
|
...props
|
930
930
|
}) => {
|
931
|
-
return /* @__PURE__ */
|
931
|
+
return /* @__PURE__ */ React69__default.createElement(Center, { ...props }, /* @__PURE__ */ React69__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React69__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React69__default.createElement(Lottie, { animationData: inlineLoaderColorData }))));
|
932
932
|
};
|
933
933
|
var ColorSpinner = ({
|
934
934
|
children,
|
@@ -936,24 +936,24 @@ var ColorSpinner = ({
|
|
936
936
|
maxWidth,
|
937
937
|
...props
|
938
938
|
}) => {
|
939
|
-
return /* @__PURE__ */
|
939
|
+
return /* @__PURE__ */ React69__default.createElement(Center, { flexDirection: "column", ...props }, /* @__PURE__ */ React69__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React69__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React69__default.createElement(Lottie, { animationData: spinnerColorData }))), children && /* @__PURE__ */ React69__default.createElement(Box, { marginTop: 3, fontWeight: "bold" }, children));
|
940
940
|
};
|
941
941
|
var ContentLoader = ({ children, ...props }) => {
|
942
|
-
return /* @__PURE__ */
|
942
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { ...props }, /* @__PURE__ */ React69__default.createElement(Box, { maxWidth: "140px", marginX: "auto" }, /* @__PURE__ */ React69__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React69__default.createElement(Lottie, { animationData: contentLoaderData }))), children && /* @__PURE__ */ React69__default.createElement(Box, { textAlign: "center", fontWeight: "bold" }, children));
|
943
943
|
};
|
944
944
|
var DarkFullScreenLoader = ({
|
945
945
|
width,
|
946
946
|
maxWidth,
|
947
947
|
...props
|
948
948
|
}) => {
|
949
|
-
return /* @__PURE__ */
|
949
|
+
return /* @__PURE__ */ React69__default.createElement(Center, { height: "100%", background: "darkTeal", ...props }, /* @__PURE__ */ React69__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React69__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React69__default.createElement(Lottie, { animationData: fullScreenLoaderWhiteData }))));
|
950
950
|
};
|
951
951
|
var DarkInlineLoader = ({
|
952
952
|
width,
|
953
953
|
maxWidth,
|
954
954
|
...props
|
955
955
|
}) => {
|
956
|
-
return /* @__PURE__ */
|
956
|
+
return /* @__PURE__ */ React69__default.createElement(Center, { ...props }, /* @__PURE__ */ React69__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React69__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React69__default.createElement(Lottie, { animationData: inlineLoaderDarkData }))));
|
957
957
|
};
|
958
958
|
var DarkSpinner = ({
|
959
959
|
children,
|
@@ -961,21 +961,21 @@ var DarkSpinner = ({
|
|
961
961
|
maxWidth,
|
962
962
|
...props
|
963
963
|
}) => {
|
964
|
-
return /* @__PURE__ */
|
964
|
+
return /* @__PURE__ */ React69__default.createElement(Center, { flexDirection: "column", ...props }, /* @__PURE__ */ React69__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React69__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React69__default.createElement(Lottie, { animationData: spinnerDarkData }))), children && /* @__PURE__ */ React69__default.createElement(Box, { marginTop: 3, fontWeight: "bold" }, children));
|
965
965
|
};
|
966
966
|
var LightFullScreenLoader = ({
|
967
967
|
width,
|
968
968
|
maxWidth,
|
969
969
|
...props
|
970
970
|
}) => {
|
971
|
-
return /* @__PURE__ */
|
971
|
+
return /* @__PURE__ */ React69__default.createElement(Center, { height: "100%", background: "white", ...props }, /* @__PURE__ */ React69__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React69__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React69__default.createElement(Lottie, { animationData: fullScreenLoaderBlackData }))));
|
972
972
|
};
|
973
973
|
var LightInlineLoader = ({
|
974
974
|
width,
|
975
975
|
maxWidth,
|
976
976
|
...props
|
977
977
|
}) => {
|
978
|
-
return /* @__PURE__ */
|
978
|
+
return /* @__PURE__ */ React69__default.createElement(Center, { ...props }, /* @__PURE__ */ React69__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React69__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React69__default.createElement(Lottie, { animationData: inlineLoaderLightData }))));
|
979
979
|
};
|
980
980
|
var LightSpinner = ({
|
981
981
|
children,
|
@@ -983,7 +983,7 @@ var LightSpinner = ({
|
|
983
983
|
maxWidth,
|
984
984
|
...props
|
985
985
|
}) => {
|
986
|
-
return /* @__PURE__ */
|
986
|
+
return /* @__PURE__ */ React69__default.createElement(Center, { flexDirection: "column", ...props }, /* @__PURE__ */ React69__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React69__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React69__default.createElement(Lottie, { animationData: spinnerLightData }))), children && /* @__PURE__ */ React69__default.createElement(Box, { marginTop: 3, fontWeight: "bold" }, children));
|
987
987
|
};
|
988
988
|
var useRotatingLabel = ({ label, delay }) => {
|
989
989
|
const loadingTextArray = useMemo(
|
@@ -1019,7 +1019,7 @@ var ProgressBar = ({
|
|
1019
1019
|
value,
|
1020
1020
|
"aria-label": ariaLabel || t2(texts.label(value))
|
1021
1021
|
});
|
1022
|
-
return /* @__PURE__ */
|
1022
|
+
return /* @__PURE__ */ React69__default.createElement(React69__default.Fragment, null, /* @__PURE__ */ React69__default.createElement(
|
1023
1023
|
Box,
|
1024
1024
|
{
|
1025
1025
|
...progressBarProps,
|
@@ -1027,7 +1027,7 @@ var ProgressBar = ({
|
|
1027
1027
|
minWidth: "100px",
|
1028
1028
|
...rest
|
1029
1029
|
},
|
1030
|
-
/* @__PURE__ */
|
1030
|
+
/* @__PURE__ */ React69__default.createElement(
|
1031
1031
|
Flex,
|
1032
1032
|
{
|
1033
1033
|
backgroundColor: "coralGreen",
|
@@ -1036,7 +1036,7 @@ var ProgressBar = ({
|
|
1036
1036
|
justifyContent: "flex-start",
|
1037
1037
|
marginX: "auto"
|
1038
1038
|
},
|
1039
|
-
/* @__PURE__ */
|
1039
|
+
/* @__PURE__ */ React69__default.createElement(
|
1040
1040
|
Box,
|
1041
1041
|
{
|
1042
1042
|
backgroundColor: "greenHaze",
|
@@ -1048,7 +1048,7 @@ var ProgressBar = ({
|
|
1048
1048
|
}
|
1049
1049
|
)
|
1050
1050
|
),
|
1051
|
-
currentLoadingText && /* @__PURE__ */
|
1051
|
+
currentLoadingText && /* @__PURE__ */ React69__default.createElement(
|
1052
1052
|
Text,
|
1053
1053
|
{
|
1054
1054
|
textAlign: "center",
|
@@ -1091,7 +1091,7 @@ var ProgressLoader = ({
|
|
1091
1091
|
const progressPathLength = ((_a6 = pathRef.current) == null ? void 0 : _a6.getTotalLength()) ?? 0;
|
1092
1092
|
const progress = (value - 100) / 100 * progressPathLength;
|
1093
1093
|
const id = useId();
|
1094
|
-
return /* @__PURE__ */
|
1094
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { ...progressBarProps, minWidth: "100px", width, ...rest }, /* @__PURE__ */ React69__default.createElement(Box, { as: "svg", viewBox: "0 0 246 78", fill: "none" }, /* @__PURE__ */ React69__default.createElement(
|
1095
1095
|
Box,
|
1096
1096
|
{
|
1097
1097
|
as: "path",
|
@@ -1099,7 +1099,7 @@ var ProgressLoader = ({
|
|
1099
1099
|
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",
|
1100
1100
|
fill: "#FFB466"
|
1101
1101
|
}
|
1102
|
-
), /* @__PURE__ */
|
1102
|
+
), /* @__PURE__ */ React69__default.createElement(
|
1103
1103
|
Box,
|
1104
1104
|
{
|
1105
1105
|
as: "path",
|
@@ -1110,7 +1110,7 @@ var ProgressLoader = ({
|
|
1110
1110
|
strokeLinecap: "round",
|
1111
1111
|
strokeLinejoin: "round"
|
1112
1112
|
}
|
1113
|
-
), /* @__PURE__ */
|
1113
|
+
), /* @__PURE__ */ React69__default.createElement(
|
1114
1114
|
Box,
|
1115
1115
|
{
|
1116
1116
|
as: "path",
|
@@ -1125,7 +1125,7 @@ var ProgressLoader = ({
|
|
1125
1125
|
transition: "stroke-dashoffset .2s ease-out",
|
1126
1126
|
ref: pathRef
|
1127
1127
|
}
|
1128
|
-
), /* @__PURE__ */
|
1128
|
+
), /* @__PURE__ */ React69__default.createElement(
|
1129
1129
|
Box,
|
1130
1130
|
{
|
1131
1131
|
as: "path",
|
@@ -1133,7 +1133,7 @@ var ProgressLoader = ({
|
|
1133
1133
|
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",
|
1134
1134
|
fill: "#688CBA"
|
1135
1135
|
}
|
1136
|
-
)), currentLoadingText && /* @__PURE__ */
|
1136
|
+
)), currentLoadingText && /* @__PURE__ */ React69__default.createElement(
|
1137
1137
|
Text,
|
1138
1138
|
{
|
1139
1139
|
textAlign: "center",
|
@@ -1152,9 +1152,9 @@ var texts2 = createTexts({
|
|
1152
1152
|
en: `${value}% done`
|
1153
1153
|
})
|
1154
1154
|
});
|
1155
|
-
var Skeleton = forwardRef((props, ref) => /* @__PURE__ */
|
1156
|
-
var SkeletonCircle = (props) => /* @__PURE__ */
|
1157
|
-
var SkeletonText = (props) => /* @__PURE__ */
|
1155
|
+
var Skeleton = forwardRef((props, ref) => /* @__PURE__ */ React69__default.createElement(Skeleton$1, { ...props, ref }));
|
1156
|
+
var SkeletonCircle = (props) => /* @__PURE__ */ React69__default.createElement(SkeletonCircle$1, { boxSize: 6, borderRadius: "50%", ...props });
|
1157
|
+
var SkeletonText = (props) => /* @__PURE__ */ React69__default.createElement(SkeletonText$1, { boxSize: 6, ...props });
|
1158
1158
|
|
1159
1159
|
// src/button/Button.tsx
|
1160
1160
|
var Button = forwardRef((props, ref) => {
|
@@ -1171,7 +1171,7 @@ var Button = forwardRef((props, ref) => {
|
|
1171
1171
|
const buttonGroup = useButtonGroup();
|
1172
1172
|
const finalVariant = variant ?? (buttonGroup == null ? void 0 : buttonGroup.variant) ?? "primary";
|
1173
1173
|
const finalSize = size2 ?? (buttonGroup == null ? void 0 : buttonGroup.size) ?? "md";
|
1174
|
-
return /* @__PURE__ */
|
1174
|
+
return /* @__PURE__ */ React69__default.createElement(
|
1175
1175
|
Button$1,
|
1176
1176
|
{
|
1177
1177
|
size: finalSize,
|
@@ -1181,11 +1181,11 @@ var Button = forwardRef((props, ref) => {
|
|
1181
1181
|
"aria-label": ariaLabel,
|
1182
1182
|
"aria-busy": isLoading,
|
1183
1183
|
isDisabled: isDisabled || isLoading,
|
1184
|
-
leftIcon: isLoading && leftIcon ? /* @__PURE__ */
|
1185
|
-
rightIcon: isLoading && rightIcon ? /* @__PURE__ */
|
1184
|
+
leftIcon: isLoading && leftIcon ? /* @__PURE__ */ React69__default.createElement(Box, { visibility: isLoading ? "hidden" : "visible", "aria-hidden": "true" }, leftIcon) : leftIcon,
|
1185
|
+
rightIcon: isLoading && rightIcon ? /* @__PURE__ */ React69__default.createElement(Box, { visibility: isLoading ? "hidden" : "visible", "aria-hidden": "true" }, rightIcon) : rightIcon,
|
1186
1186
|
position: "relative"
|
1187
1187
|
},
|
1188
|
-
isLoading && /* @__PURE__ */
|
1188
|
+
isLoading && /* @__PURE__ */ React69__default.createElement(
|
1189
1189
|
Center,
|
1190
1190
|
{
|
1191
1191
|
position: "absolute",
|
@@ -1194,7 +1194,7 @@ var Button = forwardRef((props, ref) => {
|
|
1194
1194
|
left: "0",
|
1195
1195
|
paddingTop: 2
|
1196
1196
|
},
|
1197
|
-
/* @__PURE__ */
|
1197
|
+
/* @__PURE__ */ React69__default.createElement(
|
1198
1198
|
ColorInlineLoader,
|
1199
1199
|
{
|
1200
1200
|
maxWidth: getLoaderWidth(finalSize),
|
@@ -1203,7 +1203,15 @@ var Button = forwardRef((props, ref) => {
|
|
1203
1203
|
}
|
1204
1204
|
)
|
1205
1205
|
),
|
1206
|
-
/* @__PURE__ */
|
1206
|
+
/* @__PURE__ */ React69__default.createElement(
|
1207
|
+
Box,
|
1208
|
+
{
|
1209
|
+
visibility: isLoading ? "hidden" : "visible",
|
1210
|
+
whiteSpace: "normal",
|
1211
|
+
textAlign: "left"
|
1212
|
+
},
|
1213
|
+
children
|
1214
|
+
)
|
1207
1215
|
);
|
1208
1216
|
});
|
1209
1217
|
function getLoaderWidth(size2) {
|
@@ -1234,14 +1242,14 @@ var texts3 = createTexts({
|
|
1234
1242
|
sv: "Laddar\u2026"
|
1235
1243
|
}
|
1236
1244
|
});
|
1237
|
-
var ButtonGroup = forwardRef((props, ref) => /* @__PURE__ */
|
1245
|
+
var ButtonGroup = forwardRef((props, ref) => /* @__PURE__ */ React69__default.createElement(ButtonGroup$1, { ...props, ref }));
|
1238
1246
|
var IconButton = forwardRef(
|
1239
|
-
({ ...props }, ref) => /* @__PURE__ */
|
1247
|
+
({ ...props }, ref) => /* @__PURE__ */ React69__default.createElement(
|
1240
1248
|
IconButton$1,
|
1241
1249
|
{
|
1242
1250
|
title: props["aria-label"],
|
1243
1251
|
...props,
|
1244
|
-
spinner: /* @__PURE__ */
|
1252
|
+
spinner: /* @__PURE__ */ React69__default.createElement(ColorSpinner, { margin: 1 }),
|
1245
1253
|
ref
|
1246
1254
|
}
|
1247
1255
|
)
|
@@ -1251,7 +1259,7 @@ var IconButton = forwardRef(
|
|
1251
1259
|
var CloseButton = forwardRef(
|
1252
1260
|
({ size: size2 = "sm", ...props }, ref) => {
|
1253
1261
|
const { t: t2 } = useTranslation();
|
1254
|
-
return /* @__PURE__ */
|
1262
|
+
return /* @__PURE__ */ React69__default.createElement(
|
1255
1263
|
IconButton,
|
1256
1264
|
{
|
1257
1265
|
ref,
|
@@ -1268,11 +1276,11 @@ var getIcon = (size2) => {
|
|
1268
1276
|
switch (size2) {
|
1269
1277
|
case "xs":
|
1270
1278
|
case "sm":
|
1271
|
-
return /* @__PURE__ */
|
1279
|
+
return /* @__PURE__ */ React69__default.createElement(CloseFill18Icon, null);
|
1272
1280
|
case "md":
|
1273
|
-
return /* @__PURE__ */
|
1281
|
+
return /* @__PURE__ */ React69__default.createElement(CloseFill24Icon, null);
|
1274
1282
|
case "lg":
|
1275
|
-
return /* @__PURE__ */
|
1283
|
+
return /* @__PURE__ */ React69__default.createElement(CloseFill30Icon, null);
|
1276
1284
|
}
|
1277
1285
|
};
|
1278
1286
|
var texts4 = createTexts({
|
@@ -1294,7 +1302,7 @@ var FloatingActionButton = forwardRef(
|
|
1294
1302
|
placement = "bottom right",
|
1295
1303
|
...props
|
1296
1304
|
}, ref) => {
|
1297
|
-
const [isTextVisible, setIsTextVisible] =
|
1305
|
+
const [isTextVisible, setIsTextVisible] = React69__default.useState(
|
1298
1306
|
externalIsTextVisible !== void 0 ? externalIsTextVisible : false
|
1299
1307
|
);
|
1300
1308
|
const scrollDirection = useScrollDirection();
|
@@ -1316,7 +1324,7 @@ var FloatingActionButton = forwardRef(
|
|
1316
1324
|
isTextVisible,
|
1317
1325
|
placement
|
1318
1326
|
});
|
1319
|
-
return /* @__PURE__ */
|
1327
|
+
return /* @__PURE__ */ React69__default.createElement(
|
1320
1328
|
MotionBox,
|
1321
1329
|
{
|
1322
1330
|
__css: style.container,
|
@@ -1324,8 +1332,8 @@ var FloatingActionButton = forwardRef(
|
|
1324
1332
|
ref,
|
1325
1333
|
...props
|
1326
1334
|
},
|
1327
|
-
/* @__PURE__ */
|
1328
|
-
/* @__PURE__ */
|
1335
|
+
/* @__PURE__ */ React69__default.createElement(Box, { __css: style.icon }, icon),
|
1336
|
+
/* @__PURE__ */ React69__default.createElement(
|
1329
1337
|
MotionBox,
|
1330
1338
|
{
|
1331
1339
|
animate: isTextVisible ? "show" : "hide",
|
@@ -1350,11 +1358,11 @@ var FloatingActionButton = forwardRef(
|
|
1350
1358
|
}
|
1351
1359
|
);
|
1352
1360
|
var useScrollDirection = () => {
|
1353
|
-
const [scrollDirection, setScrollDirection] =
|
1354
|
-
const lastScrollPosition =
|
1361
|
+
const [scrollDirection, setScrollDirection] = React69__default.useState(null);
|
1362
|
+
const lastScrollPosition = React69__default.useRef(
|
1355
1363
|
typeof window !== "undefined" ? window.scrollY : 0
|
1356
1364
|
);
|
1357
|
-
|
1365
|
+
React69__default.useEffect(() => {
|
1358
1366
|
const onScroll = () => {
|
1359
1367
|
const delta = window.scrollY - lastScrollPosition.current;
|
1360
1368
|
if (delta === 0) {
|
@@ -1373,7 +1381,7 @@ var useScrollDirection = () => {
|
|
1373
1381
|
var AlertIcon = ({ variant }) => {
|
1374
1382
|
const Icon = getIcon2(variant);
|
1375
1383
|
const { t: t2 } = useTranslation();
|
1376
|
-
return /* @__PURE__ */
|
1384
|
+
return /* @__PURE__ */ React69__default.createElement(
|
1377
1385
|
Icon,
|
1378
1386
|
{
|
1379
1387
|
flexShrink: 0,
|
@@ -1431,7 +1439,7 @@ var texts5 = createTexts({
|
|
1431
1439
|
});
|
1432
1440
|
var BaseAlert = ({ variant, children, ...boxProps }) => {
|
1433
1441
|
const styles3 = useMultiStyleConfig("Alert", { variant });
|
1434
|
-
return /* @__PURE__ */
|
1442
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { __css: styles3.container, ...boxProps }, children);
|
1435
1443
|
};
|
1436
1444
|
|
1437
1445
|
// src/alert/ClosableAlert.tsx
|
@@ -1451,17 +1459,17 @@ var ClosableAlert = ({
|
|
1451
1459
|
externalOnClose();
|
1452
1460
|
onClose();
|
1453
1461
|
};
|
1454
|
-
return /* @__PURE__ */
|
1462
|
+
return /* @__PURE__ */ React69__default.createElement(BaseAlert, { variant }, /* @__PURE__ */ React69__default.createElement(
|
1455
1463
|
IconButton,
|
1456
1464
|
{
|
1457
1465
|
variant: "ghost",
|
1458
1466
|
size: "sm",
|
1459
1467
|
onClick: handleClose,
|
1460
|
-
icon: /* @__PURE__ */
|
1468
|
+
icon: /* @__PURE__ */ React69__default.createElement(CloseFill18Icon, null),
|
1461
1469
|
"aria-label": t2(texts6.close),
|
1462
1470
|
sx: styles3.closeButton
|
1463
1471
|
}
|
1464
|
-
), /* @__PURE__ */
|
1472
|
+
), /* @__PURE__ */ React69__default.createElement(AlertIcon, { variant }), children);
|
1465
1473
|
};
|
1466
1474
|
var texts6 = createTexts({
|
1467
1475
|
close: {
|
@@ -1481,7 +1489,7 @@ var ExpandableAlert = ({
|
|
1481
1489
|
},
|
1482
1490
|
...boxProps
|
1483
1491
|
}) => {
|
1484
|
-
return /* @__PURE__ */
|
1492
|
+
return /* @__PURE__ */ React69__default.createElement(BaseAlert, { variant, ...boxProps, paddingX: 0, paddingY: 0 }, /* @__PURE__ */ React69__default.createElement(
|
1485
1493
|
Accordion$1,
|
1486
1494
|
{
|
1487
1495
|
onChange: (expandedIndex) => onToggle(expandedIndex === 0),
|
@@ -1489,14 +1497,14 @@ var ExpandableAlert = ({
|
|
1489
1497
|
allowToggle: true,
|
1490
1498
|
flexGrow: "1"
|
1491
1499
|
},
|
1492
|
-
/* @__PURE__ */
|
1500
|
+
/* @__PURE__ */ React69__default.createElement(AccordionItem, null, /* @__PURE__ */ React69__default.createElement(AccordionButton, { paddingX: 3, paddingY: 2, fontSize: "inherit" }, /* @__PURE__ */ React69__default.createElement(
|
1493
1501
|
Flex,
|
1494
1502
|
{
|
1495
1503
|
justifyContent: "space-between",
|
1496
1504
|
alignItems: "center",
|
1497
1505
|
flexGrow: "1"
|
1498
1506
|
},
|
1499
|
-
/* @__PURE__ */
|
1507
|
+
/* @__PURE__ */ React69__default.createElement(Flex, { as: headingLevel, alignItems: "center" }, /* @__PURE__ */ React69__default.createElement(AlertIcon, { variant }), /* @__PURE__ */ React69__default.createElement(
|
1500
1508
|
Box,
|
1501
1509
|
{
|
1502
1510
|
as: "span",
|
@@ -1510,18 +1518,18 @@ var ExpandableAlert = ({
|
|
1510
1518
|
},
|
1511
1519
|
title
|
1512
1520
|
)),
|
1513
|
-
/* @__PURE__ */
|
1514
|
-
)), /* @__PURE__ */
|
1521
|
+
/* @__PURE__ */ React69__default.createElement(AccordionIcon, null)
|
1522
|
+
)), /* @__PURE__ */ React69__default.createElement(AccordionPanel, null, children))
|
1515
1523
|
));
|
1516
1524
|
};
|
1517
1525
|
var StaticAlert = ({ children, ...props }) => {
|
1518
|
-
return /* @__PURE__ */
|
1526
|
+
return /* @__PURE__ */ React69__default.createElement(BaseAlert, { ...props }, /* @__PURE__ */ React69__default.createElement(AlertIcon, { variant: props.variant }), children);
|
1519
1527
|
};
|
1520
1528
|
var Breadcrumb = (props) => {
|
1521
|
-
return /* @__PURE__ */
|
1529
|
+
return /* @__PURE__ */ React69__default.createElement(
|
1522
1530
|
Breadcrumb$1,
|
1523
1531
|
{
|
1524
|
-
separator: /* @__PURE__ */
|
1532
|
+
separator: /* @__PURE__ */ React69__default.createElement(DropdownRightFill18Icon, { color: "blackAlpha.400" }),
|
1525
1533
|
...props
|
1526
1534
|
}
|
1527
1535
|
);
|
@@ -1534,7 +1542,7 @@ var Card = forwardRef(
|
|
1534
1542
|
colorScheme,
|
1535
1543
|
size: size2
|
1536
1544
|
});
|
1537
|
-
return /* @__PURE__ */
|
1545
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { __css: styles3, ...props, ref }, children);
|
1538
1546
|
}
|
1539
1547
|
);
|
1540
1548
|
function $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, defaultValue, onChange) {
|
@@ -3267,7 +3275,7 @@ function $9a36b6ba2fb1a7c5$var$nextUnavailableDate(anchorDate, state2, dir) {
|
|
3267
3275
|
}
|
3268
3276
|
var Badge = forwardRef(
|
3269
3277
|
({ icon, colorScheme = "grey", children, ...props }, ref) => {
|
3270
|
-
return /* @__PURE__ */
|
3278
|
+
return /* @__PURE__ */ React69__default.createElement(
|
3271
3279
|
Badge$1,
|
3272
3280
|
{
|
3273
3281
|
colorScheme,
|
@@ -3275,25 +3283,25 @@ var Badge = forwardRef(
|
|
3275
3283
|
paddingLeft: icon ? 1 : void 0,
|
3276
3284
|
ref
|
3277
3285
|
},
|
3278
|
-
icon &&
|
3286
|
+
icon && React69__default.cloneElement(icon, { marginRight: 1 }),
|
3279
3287
|
children
|
3280
3288
|
);
|
3281
3289
|
}
|
3282
3290
|
);
|
3283
|
-
var Code = forwardRef((props, ref) => /* @__PURE__ */
|
3291
|
+
var Code = forwardRef((props, ref) => /* @__PURE__ */ React69__default.createElement(Code$1, { ...props, ref }));
|
3284
3292
|
var Heading = ({
|
3285
3293
|
as,
|
3286
3294
|
variant = "xl-display",
|
3287
3295
|
...props
|
3288
3296
|
}) => {
|
3289
|
-
return /* @__PURE__ */
|
3297
|
+
return /* @__PURE__ */ React69__default.createElement(Text, { as, textStyle: variant, ...props });
|
3290
3298
|
};
|
3291
3299
|
var Text4 = forwardRef(
|
3292
3300
|
({ variant = "sm", ...props }, ref) => {
|
3293
|
-
return /* @__PURE__ */
|
3301
|
+
return /* @__PURE__ */ React69__default.createElement(Text, { ...props, textStyle: variant, ref });
|
3294
3302
|
}
|
3295
3303
|
);
|
3296
|
-
function CalendarCell({ state: state2, date, currentMonth }) {
|
3304
|
+
function CalendarCell({ state: state2, date, currentMonth, variant }) {
|
3297
3305
|
const ref = useRef(null);
|
3298
3306
|
const {
|
3299
3307
|
cellProps,
|
@@ -3304,7 +3312,7 @@ function CalendarCell({ state: state2, date, currentMonth }) {
|
|
3304
3312
|
isOutsideVisibleRange
|
3305
3313
|
} = useCalendarCell({ date }, state2, ref);
|
3306
3314
|
const isOutsideMonth = !isSameMonth(currentMonth, date);
|
3307
|
-
const styles3 = useMultiStyleConfig("Datepicker", {});
|
3315
|
+
const styles3 = useMultiStyleConfig("Datepicker", { variant });
|
3308
3316
|
const stateProps = {};
|
3309
3317
|
if (isSelected) {
|
3310
3318
|
stateProps["data-selected"] = true;
|
@@ -3328,7 +3336,7 @@ function CalendarCell({ state: state2, date, currentMonth }) {
|
|
3328
3336
|
{ passive: false, once: true }
|
3329
3337
|
);
|
3330
3338
|
}, []);
|
3331
|
-
return /* @__PURE__ */
|
3339
|
+
return /* @__PURE__ */ React69__default.createElement(
|
3332
3340
|
Box,
|
3333
3341
|
{
|
3334
3342
|
as: "td",
|
@@ -3351,7 +3359,7 @@ function CalendarCell({ state: state2, date, currentMonth }) {
|
|
3351
3359
|
}
|
3352
3360
|
}
|
3353
3361
|
},
|
3354
|
-
/* @__PURE__ */
|
3362
|
+
/* @__PURE__ */ React69__default.createElement(
|
3355
3363
|
Box,
|
3356
3364
|
{
|
3357
3365
|
as: "button",
|
@@ -3395,7 +3403,7 @@ var weekDays = {
|
|
3395
3403
|
sv: ["M\xE5", "Ti", "On", "To", "Fr", "L\xF6", "S\xF6"],
|
3396
3404
|
en: ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"]
|
3397
3405
|
};
|
3398
|
-
function CalendarGrid({ state: state2, offset = {} }) {
|
3406
|
+
function CalendarGrid({ state: state2, variant, offset = {} }) {
|
3399
3407
|
const { language } = useTranslation();
|
3400
3408
|
const locale = useCurrentLocale();
|
3401
3409
|
const startDate = state2.visibleRange.start.add(offset);
|
@@ -3409,9 +3417,9 @@ function CalendarGrid({ state: state2, offset = {} }) {
|
|
3409
3417
|
);
|
3410
3418
|
const weeksInMonth = getWeeksInMonth(state2.visibleRange.start, locale);
|
3411
3419
|
const weeksInMonthRange = new Array(weeksInMonth).fill(0).map((_, i) => i);
|
3412
|
-
const styles3 = useMultiStyleConfig("Datepicker", {});
|
3413
|
-
return /* @__PURE__ */
|
3414
|
-
return /* @__PURE__ */
|
3420
|
+
const styles3 = useMultiStyleConfig("Datepicker", { variant });
|
3421
|
+
return /* @__PURE__ */ React69__default.createElement("table", { ...gridProps }, /* @__PURE__ */ React69__default.createElement("thead", { ...headerProps }, /* @__PURE__ */ React69__default.createElement("tr", null, weekDays[language].map((day, index) => {
|
3422
|
+
return /* @__PURE__ */ React69__default.createElement(
|
3415
3423
|
Text4,
|
3416
3424
|
{
|
3417
3425
|
as: "th",
|
@@ -3421,16 +3429,17 @@ function CalendarGrid({ state: state2, offset = {} }) {
|
|
3421
3429
|
},
|
3422
3430
|
day
|
3423
3431
|
);
|
3424
|
-
}))), /* @__PURE__ */
|
3425
|
-
(date, dayIndex) => date ? /* @__PURE__ */
|
3432
|
+
}))), /* @__PURE__ */ React69__default.createElement("tbody", null, weeksInMonthRange.map((weekIndex) => /* @__PURE__ */ React69__default.createElement("tr", { key: weekIndex }, state2.getDatesInWeek(weekIndex, startDate).map(
|
3433
|
+
(date, dayIndex) => date ? /* @__PURE__ */ React69__default.createElement(
|
3426
3434
|
CalendarCell,
|
3427
3435
|
{
|
3436
|
+
variant,
|
3428
3437
|
key: dayIndex,
|
3429
3438
|
state: state2,
|
3430
3439
|
date,
|
3431
3440
|
currentMonth: startDate
|
3432
3441
|
}
|
3433
|
-
) : /* @__PURE__ */
|
3442
|
+
) : /* @__PURE__ */ React69__default.createElement("td", { key: dayIndex })
|
3434
3443
|
)))));
|
3435
3444
|
}
|
3436
3445
|
function CalendarNavigationButton({
|
@@ -3440,7 +3449,7 @@ function CalendarNavigationButton({
|
|
3440
3449
|
}) {
|
3441
3450
|
const ref = useRef(null);
|
3442
3451
|
const { buttonProps } = useButton(rest, ref);
|
3443
|
-
return /* @__PURE__ */
|
3452
|
+
return /* @__PURE__ */ React69__default.createElement(
|
3444
3453
|
IconButton,
|
3445
3454
|
{
|
3446
3455
|
...buttonProps,
|
@@ -3474,7 +3483,7 @@ function CalendarHeader({
|
|
3474
3483
|
);
|
3475
3484
|
const areAllOtherYearsDisabled = isPreviousYearDisabled && isNextYearDisabled;
|
3476
3485
|
const isYearPickerVisible = showYearNavigation && !areAllOtherYearsDisabled;
|
3477
|
-
return /* @__PURE__ */
|
3486
|
+
return /* @__PURE__ */ React69__default.createElement(Flex, { alignItems: "center", paddingBottom: "4", justifyContent: "space-between" }, /* @__PURE__ */ React69__default.createElement(
|
3478
3487
|
CalendarNavigator,
|
3479
3488
|
{
|
3480
3489
|
title: title ? title : isYearPickerVisible ? monthTitle : monthAndYearTitle,
|
@@ -3484,7 +3493,7 @@ function CalendarHeader({
|
|
3484
3493
|
isNextDisabled: !state2.isPreviousVisibleRangeInvalid,
|
3485
3494
|
isPreviousDisabled: !state2.isNextVisibleRangeInvalid
|
3486
3495
|
}
|
3487
|
-
), isYearPickerVisible && /* @__PURE__ */
|
3496
|
+
), isYearPickerVisible && /* @__PURE__ */ React69__default.createElement(
|
3488
3497
|
CalendarNavigator,
|
3489
3498
|
{
|
3490
3499
|
title: jsDate.getFullYear().toString(),
|
@@ -3506,15 +3515,15 @@ var CalendarNavigator = ({
|
|
3506
3515
|
isNextDisabled
|
3507
3516
|
}) => {
|
3508
3517
|
const { t: t2 } = useTranslation();
|
3509
|
-
return /* @__PURE__ */
|
3518
|
+
return /* @__PURE__ */ React69__default.createElement(Flex, { alignItems: "center", flexGrow: 1 }, /* @__PURE__ */ React69__default.createElement(
|
3510
3519
|
CalendarNavigationButton,
|
3511
3520
|
{
|
3512
3521
|
onPress: onPrevious,
|
3513
3522
|
isDisabled: isPreviousDisabled,
|
3514
|
-
icon: /* @__PURE__ */
|
3523
|
+
icon: /* @__PURE__ */ React69__default.createElement(ArrowLeftOutline24Icon, null),
|
3515
3524
|
"aria-label": `${t2(texts7.previous)} ${t2(texts7[unit])}`
|
3516
3525
|
}
|
3517
|
-
), /* @__PURE__ */
|
3526
|
+
), /* @__PURE__ */ React69__default.createElement(
|
3518
3527
|
Heading,
|
3519
3528
|
{
|
3520
3529
|
as: "div",
|
@@ -3525,12 +3534,12 @@ var CalendarNavigator = ({
|
|
3525
3534
|
textAlign: "center"
|
3526
3535
|
},
|
3527
3536
|
capitalize(title)
|
3528
|
-
), /* @__PURE__ */
|
3537
|
+
), /* @__PURE__ */ React69__default.createElement(
|
3529
3538
|
CalendarNavigationButton,
|
3530
3539
|
{
|
3531
3540
|
onPress: onNext,
|
3532
3541
|
isDisabled: isNextDisabled,
|
3533
|
-
icon: /* @__PURE__ */
|
3542
|
+
icon: /* @__PURE__ */ React69__default.createElement(ArrowRightOutline24Icon, null),
|
3534
3543
|
"aria-label": `${t2(texts7.next)} ${t2(texts7[unit])}`
|
3535
3544
|
}
|
3536
3545
|
));
|
@@ -3563,7 +3572,7 @@ var texts7 = createTexts({
|
|
3563
3572
|
});
|
3564
3573
|
|
3565
3574
|
// src/datepicker/Calendar.tsx
|
3566
|
-
function Calendar({ showYearNavigation, ...props }) {
|
3575
|
+
function Calendar({ showYearNavigation, variant, ...props }) {
|
3567
3576
|
const { t: t2 } = useTranslation();
|
3568
3577
|
const locale = useCurrentLocale();
|
3569
3578
|
const state2 = $131cf43a05231e1e$export$6d095e787d2b5e1f({
|
@@ -3574,7 +3583,7 @@ function Calendar({ showYearNavigation, ...props }) {
|
|
3574
3583
|
const { calendarProps } = useCalendar(props, state2);
|
3575
3584
|
const calendarAriaLabel = calendarProps["aria-label"];
|
3576
3585
|
const ariaLabel = t2(texts8.calendar) + (calendarAriaLabel ? ` ${calendarAriaLabel}` : "");
|
3577
|
-
return /* @__PURE__ */
|
3586
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { ...calendarProps, "aria-label": ariaLabel }, /* @__PURE__ */ React69__default.createElement(CalendarHeader, { state: state2, showYearNavigation }), /* @__PURE__ */ React69__default.createElement(CalendarGrid, { variant, state: state2 }));
|
3578
3587
|
}
|
3579
3588
|
var texts8 = createTexts({
|
3580
3589
|
calendar: {
|
@@ -3585,9 +3594,9 @@ var texts8 = createTexts({
|
|
3585
3594
|
}
|
3586
3595
|
});
|
3587
3596
|
var CalendarTriggerButton = forwardRef(
|
3588
|
-
({ ...buttonProps }, ref) => {
|
3597
|
+
({ variant, ...buttonProps }, ref) => {
|
3589
3598
|
const { t: t2 } = useTranslation();
|
3590
|
-
const styles3 = useMultiStyleConfig("Datepicker", {});
|
3599
|
+
const styles3 = useMultiStyleConfig("Datepicker", { variant });
|
3591
3600
|
const { onPress, ...filteredButtonProps } = buttonProps;
|
3592
3601
|
const handleOnPress = (event) => {
|
3593
3602
|
if (onPress) {
|
@@ -3595,7 +3604,7 @@ var CalendarTriggerButton = forwardRef(
|
|
3595
3604
|
onPress(event);
|
3596
3605
|
}
|
3597
3606
|
};
|
3598
|
-
return /* @__PURE__ */
|
3607
|
+
return /* @__PURE__ */ React69__default.createElement(PopoverAnchor, null, /* @__PURE__ */ React69__default.createElement(
|
3599
3608
|
Box,
|
3600
3609
|
{
|
3601
3610
|
ref,
|
@@ -3606,7 +3615,7 @@ var CalendarTriggerButton = forwardRef(
|
|
3606
3615
|
...filteredButtonProps,
|
3607
3616
|
onKeyUp: handleOnPress
|
3608
3617
|
},
|
3609
|
-
/* @__PURE__ */
|
3618
|
+
/* @__PURE__ */ React69__default.createElement(CalendarOutline24Icon, null)
|
3610
3619
|
));
|
3611
3620
|
}
|
3612
3621
|
);
|
@@ -3631,7 +3640,7 @@ var DateTimeSegment = forwardRef$1(
|
|
3631
3640
|
isPlaceholder: segment.isPlaceholder,
|
3632
3641
|
isEditable: segment.isEditable
|
3633
3642
|
});
|
3634
|
-
return /* @__PURE__ */
|
3643
|
+
return /* @__PURE__ */ React69__default.createElement(
|
3635
3644
|
Box,
|
3636
3645
|
{
|
3637
3646
|
...segmentProps,
|
@@ -3640,12 +3649,10 @@ var DateTimeSegment = forwardRef$1(
|
|
3640
3649
|
...segmentProps.style,
|
3641
3650
|
boxSizing: "content-box"
|
3642
3651
|
},
|
3643
|
-
paddingX: "1px",
|
3644
3652
|
textAlign: "center",
|
3645
3653
|
outline: "none",
|
3646
3654
|
borderRadius: "xs",
|
3647
3655
|
fontSize: ["mobile.sm", "desktop.sm"],
|
3648
|
-
minWidth: isPaddable(segment.type) ? "1.3em" : "auto",
|
3649
3656
|
sx: styles3.dateTimeSegment,
|
3650
3657
|
_focus: {
|
3651
3658
|
backgroundColor: "darkTeal",
|
@@ -3684,7 +3691,7 @@ var DateField = forwardRef$1(
|
|
3684
3691
|
state2,
|
3685
3692
|
ref
|
3686
3693
|
);
|
3687
|
-
return /* @__PURE__ */
|
3694
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { minWidth: "6rem", width: "100%" }, props.label && /* @__PURE__ */ React69__default.createElement(
|
3688
3695
|
FormLabel,
|
3689
3696
|
{
|
3690
3697
|
...props.labelProps,
|
@@ -3694,7 +3701,7 @@ var DateField = forwardRef$1(
|
|
3694
3701
|
paddingTop: "2px"
|
3695
3702
|
},
|
3696
3703
|
props.label
|
3697
|
-
), /* @__PURE__ */
|
3704
|
+
), /* @__PURE__ */ React69__default.createElement(Flex, { ...fieldProps, paddingTop: "3", paddingBottom: "0.5" }, state2.segments.map((segment, i) => /* @__PURE__ */ React69__default.createElement(
|
3698
3705
|
DateTimeSegment,
|
3699
3706
|
{
|
3700
3707
|
ref: i === 0 ? ref : void 0,
|
@@ -3702,7 +3709,7 @@ var DateField = forwardRef$1(
|
|
3702
3709
|
segment,
|
3703
3710
|
state: state2
|
3704
3711
|
}
|
3705
|
-
))), /* @__PURE__ */
|
3712
|
+
))), /* @__PURE__ */ React69__default.createElement(
|
3706
3713
|
"input",
|
3707
3714
|
{
|
3708
3715
|
type: "hidden",
|
@@ -3718,7 +3725,7 @@ var StyledField = forwardRef(
|
|
3718
3725
|
isInvalid: false
|
3719
3726
|
};
|
3720
3727
|
const styles3 = useMultiStyleConfig("Datepicker", { variant });
|
3721
|
-
return /* @__PURE__ */
|
3728
|
+
return /* @__PURE__ */ React69__default.createElement(
|
3722
3729
|
Box,
|
3723
3730
|
{
|
3724
3731
|
...otherProps,
|
@@ -3765,63 +3772,50 @@ var DatePicker = forwardRef$1(
|
|
3765
3772
|
state2,
|
3766
3773
|
ref
|
3767
3774
|
);
|
3768
|
-
const styles3 = useMultiStyleConfig("Datepicker", {});
|
3775
|
+
const styles3 = useMultiStyleConfig("Datepicker", { variant });
|
3769
3776
|
const locale = useCurrentLocale();
|
3770
|
-
const responsiveVariant = useBreakpointValue(typeof variant === "string" ? [variant] : variant) ?? "simple";
|
3771
|
-
const hasTrigger = responsiveVariant === "with-trigger";
|
3772
3777
|
const onFieldClick = () => {
|
3773
|
-
|
3774
|
-
state2.setOpen(true);
|
3775
|
-
}
|
3778
|
+
state2.setOpen(true);
|
3776
3779
|
};
|
3777
|
-
const popoverContent = /* @__PURE__ */
|
3780
|
+
const popoverContent = /* @__PURE__ */ React69__default.createElement(PopoverContent, { color: "darkGrey", boxShadow: "md", sx: styles3.calendar }, /* @__PURE__ */ React69__default.createElement(PopoverArrow, { sx: styles3.arrow }), /* @__PURE__ */ React69__default.createElement(PopoverBody, null, /* @__PURE__ */ React69__default.createElement(FocusLock, null, /* @__PURE__ */ React69__default.createElement(
|
3778
3781
|
Calendar,
|
3779
3782
|
{
|
3780
3783
|
...calendarProps,
|
3784
|
+
variant,
|
3781
3785
|
showYearNavigation
|
3782
3786
|
}
|
3783
3787
|
))));
|
3784
|
-
return /* @__PURE__ */
|
3785
|
-
|
3788
|
+
return /* @__PURE__ */ React69__default.createElement(I18nProvider, { locale }, /* @__PURE__ */ React69__default.createElement(Box, { position: "relative", display: "inline-flex", flexDirection: "column", width }, /* @__PURE__ */ React69__default.createElement(
|
3789
|
+
Popover,
|
3786
3790
|
{
|
3787
|
-
|
3788
|
-
|
3789
|
-
|
3790
|
-
|
3791
|
+
...dialogProps,
|
3792
|
+
isOpen: state2.isOpen,
|
3793
|
+
onOpen: state2.open,
|
3794
|
+
onClose: state2.close
|
3791
3795
|
},
|
3792
|
-
/* @__PURE__ */
|
3793
|
-
|
3796
|
+
/* @__PURE__ */ React69__default.createElement(InputGroup, { ...groupProps, display: "inline-flex" }, /* @__PURE__ */ React69__default.createElement(PopoverAnchor, null, /* @__PURE__ */ React69__default.createElement(
|
3797
|
+
StyledField,
|
3794
3798
|
{
|
3795
|
-
|
3796
|
-
|
3797
|
-
|
3798
|
-
|
3799
|
+
variant,
|
3800
|
+
onClick: onFieldClick,
|
3801
|
+
paddingX: 3,
|
3802
|
+
minHeight
|
3799
3803
|
},
|
3800
|
-
/* @__PURE__ */
|
3801
|
-
|
3804
|
+
/* @__PURE__ */ React69__default.createElement(PopoverTrigger, null, /* @__PURE__ */ React69__default.createElement(CalendarTriggerButton, { variant, ref, ...buttonProps })),
|
3805
|
+
/* @__PURE__ */ React69__default.createElement(
|
3806
|
+
DateField,
|
3802
3807
|
{
|
3803
|
-
|
3804
|
-
|
3805
|
-
|
3806
|
-
|
3807
|
-
}
|
3808
|
-
|
3809
|
-
|
3810
|
-
|
3811
|
-
|
3812
|
-
|
3813
|
-
|
3814
|
-
name: props.name,
|
3815
|
-
ref: hasTrigger ? void 0 : ref,
|
3816
|
-
...fieldProps
|
3817
|
-
}
|
3818
|
-
)
|
3819
|
-
)), hasTrigger && /* @__PURE__ */ React50__default.createElement(PopoverTrigger, null, /* @__PURE__ */ React50__default.createElement(CalendarTriggerButton, { ref, ...buttonProps }))),
|
3820
|
-
/* @__PURE__ */ React50__default.createElement(FormErrorMessage, { ...errorMessageProps }, errorMessage),
|
3821
|
-
state2.isOpen && !props.isDisabled && withPortal && /* @__PURE__ */ React50__default.createElement(Portal, null, popoverContent),
|
3822
|
-
state2.isOpen && !props.isDisabled && !withPortal && popoverContent
|
3823
|
-
)
|
3824
|
-
));
|
3808
|
+
label: props.label,
|
3809
|
+
labelProps,
|
3810
|
+
name: props.name,
|
3811
|
+
...fieldProps
|
3812
|
+
}
|
3813
|
+
)
|
3814
|
+
))),
|
3815
|
+
/* @__PURE__ */ React69__default.createElement(FormErrorMessage, { ...errorMessageProps }, errorMessage),
|
3816
|
+
state2.isOpen && !props.isDisabled && withPortal && /* @__PURE__ */ React69__default.createElement(Portal, null, popoverContent),
|
3817
|
+
state2.isOpen && !props.isDisabled && !withPortal && popoverContent
|
3818
|
+
)));
|
3825
3819
|
}
|
3826
3820
|
);
|
3827
3821
|
function RangeCalendar(props) {
|
@@ -3834,7 +3828,7 @@ function RangeCalendar(props) {
|
|
3834
3828
|
});
|
3835
3829
|
const ref = useRef(null);
|
3836
3830
|
const { calendarProps, title } = useRangeCalendar(props, state2, ref);
|
3837
|
-
return /* @__PURE__ */
|
3831
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { ...calendarProps, ref }, /* @__PURE__ */ React69__default.createElement(CalendarHeader, { state: state2, title }), /* @__PURE__ */ React69__default.createElement(Box, { display: "flex", gap: "8" }, /* @__PURE__ */ React69__default.createElement(CalendarGrid, { variant: props.variant, state: state2 }), /* @__PURE__ */ React69__default.createElement(CalendarGrid, { variant: props.variant, state: state2, offset: { months: 1 } })));
|
3838
3832
|
}
|
3839
3833
|
|
3840
3834
|
// src/datepicker/DateRangePicker.tsx
|
@@ -3863,25 +3857,19 @@ function DateRangePicker({
|
|
3863
3857
|
dialogProps,
|
3864
3858
|
calendarProps
|
3865
3859
|
} = useDateRangePicker(props, state2, ref);
|
3866
|
-
const
|
3867
|
-
const styles3 = useMultiStyleConfig("Datepicker", {
|
3868
|
-
variant: responsiveVariant
|
3869
|
-
});
|
3860
|
+
const styles3 = useMultiStyleConfig("Datepicker", { variant });
|
3870
3861
|
const locale = useCurrentLocale();
|
3871
3862
|
const handleEnterClick = (e) => {
|
3872
|
-
if (e.key === "Enter" && !state2.isOpen &&
|
3863
|
+
if (e.key === "Enter" && !state2.isOpen && variant === "base") {
|
3873
3864
|
e.stopPropagation();
|
3874
3865
|
state2.setOpen(true);
|
3875
3866
|
}
|
3876
3867
|
};
|
3877
3868
|
const onFieldClick = () => {
|
3878
|
-
|
3879
|
-
state2.setOpen(true);
|
3880
|
-
}
|
3869
|
+
state2.setOpen(true);
|
3881
3870
|
};
|
3882
|
-
const
|
3883
|
-
|
3884
|
-
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: styles3.inputLabel }, props.label), /* @__PURE__ */ React50__default.createElement(
|
3871
|
+
const popoverContent = /* @__PURE__ */ React69__default.createElement(PopoverContent, { sx: styles3.calendar, boxShadow: "md", maxWidth: "none" }, /* @__PURE__ */ React69__default.createElement(PopoverArrow, { sx: styles3.arrow }), /* @__PURE__ */ React69__default.createElement(PopoverBody, null, /* @__PURE__ */ React69__default.createElement(FocusLock, null, /* @__PURE__ */ React69__default.createElement(RangeCalendar, { variant: "base", ...calendarProps }))));
|
3872
|
+
return /* @__PURE__ */ React69__default.createElement(I18nProvider, { locale }, /* @__PURE__ */ React69__default.createElement(Box, { position: "relative", display: "inline-flex", flexDirection: "column" }, props.label && /* @__PURE__ */ React69__default.createElement(FormLabel, { ...labelProps, sx: styles3.inputLabel }, props.label), /* @__PURE__ */ React69__default.createElement(
|
3885
3873
|
Popover,
|
3886
3874
|
{
|
3887
3875
|
...dialogProps,
|
@@ -3889,29 +3877,28 @@ function DateRangePicker({
|
|
3889
3877
|
onOpen: state2.open,
|
3890
3878
|
onClose: state2.close
|
3891
3879
|
},
|
3892
|
-
/* @__PURE__ */
|
3880
|
+
/* @__PURE__ */ React69__default.createElement(InputGroup, { ...groupProps, width: "auto", display: "inline-flex" }, /* @__PURE__ */ React69__default.createElement(PopoverAnchor, null, /* @__PURE__ */ React69__default.createElement(
|
3893
3881
|
StyledField,
|
3894
3882
|
{
|
3895
3883
|
alignItems: "center",
|
3896
3884
|
paddingX: 3,
|
3897
|
-
variant
|
3885
|
+
variant,
|
3898
3886
|
onClick: onFieldClick,
|
3899
3887
|
onKeyPress: handleEnterClick,
|
3900
3888
|
minHeight
|
3901
3889
|
},
|
3902
|
-
|
3903
|
-
/* @__PURE__ */
|
3890
|
+
variant && /* @__PURE__ */ React69__default.createElement(PopoverTrigger, null, /* @__PURE__ */ React69__default.createElement(CalendarTriggerButton, { paddingLeft: 1, paddingRight: 1, variant, ref, ...buttonProps })),
|
3891
|
+
/* @__PURE__ */ React69__default.createElement(
|
3904
3892
|
DateField,
|
3905
3893
|
{
|
3906
3894
|
...startFieldProps,
|
3907
3895
|
name: startName,
|
3908
3896
|
label: props.startLabel,
|
3909
|
-
ref: hasTrigger ? void 0 : ref,
|
3910
3897
|
labelProps
|
3911
3898
|
}
|
3912
3899
|
),
|
3913
|
-
/* @__PURE__ */
|
3914
|
-
/* @__PURE__ */
|
3900
|
+
/* @__PURE__ */ React69__default.createElement(Box, { as: "span", "aria-hidden": "true", paddingRight: "2" }, "\u2013"),
|
3901
|
+
/* @__PURE__ */ React69__default.createElement(
|
3915
3902
|
DateField,
|
3916
3903
|
{
|
3917
3904
|
...endFieldProps,
|
@@ -3920,15 +3907,15 @@ function DateRangePicker({
|
|
3920
3907
|
labelProps
|
3921
3908
|
}
|
3922
3909
|
)
|
3923
|
-
))
|
3924
|
-
state2.isOpen && withPortal && /* @__PURE__ */
|
3910
|
+
))),
|
3911
|
+
state2.isOpen && withPortal && /* @__PURE__ */ React69__default.createElement(Portal, null, popoverContent),
|
3925
3912
|
state2.isOpen && !withPortal && popoverContent
|
3926
3913
|
)));
|
3927
3914
|
}
|
3928
3915
|
var TimeField = ({ state: state2, ...props }) => {
|
3929
3916
|
const ref = useRef(null);
|
3930
3917
|
const { labelProps, fieldProps } = useTimeField(props, state2, ref);
|
3931
|
-
return /* @__PURE__ */
|
3918
|
+
return /* @__PURE__ */ React69__default.createElement(Box, null, /* @__PURE__ */ React69__default.createElement(
|
3932
3919
|
FormLabel3,
|
3933
3920
|
{
|
3934
3921
|
...labelProps,
|
@@ -3940,7 +3927,7 @@ var TimeField = ({ state: state2, ...props }) => {
|
|
3940
3927
|
paddingTop: "2px"
|
3941
3928
|
},
|
3942
3929
|
props.label
|
3943
|
-
), /* @__PURE__ */
|
3930
|
+
), /* @__PURE__ */ React69__default.createElement(Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5" }, state2.segments.map((segment) => /* @__PURE__ */ React69__default.createElement(DateTimeSegment, { key: segment.type, segment, state: state2 }))), /* @__PURE__ */ React69__default.createElement(
|
3944
3931
|
"input",
|
3945
3932
|
{
|
3946
3933
|
type: "hidden",
|
@@ -4009,10 +3996,10 @@ var TimePicker = ({
|
|
4009
3996
|
const ariaLabel = `${inputLabel} \u2013 ${t2(
|
4010
3997
|
texts10.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
|
4011
3998
|
)}`;
|
4012
|
-
return /* @__PURE__ */
|
3999
|
+
return /* @__PURE__ */ React69__default.createElement(
|
4013
4000
|
StyledField,
|
4014
4001
|
{
|
4015
|
-
variant: "
|
4002
|
+
variant: "base",
|
4016
4003
|
width: "fit-content",
|
4017
4004
|
paddingX: 2,
|
4018
4005
|
alignItems: "center",
|
@@ -4025,7 +4012,7 @@ var TimePicker = ({
|
|
4025
4012
|
"aria-label": ariaLabel,
|
4026
4013
|
...boxProps
|
4027
4014
|
},
|
4028
|
-
/* @__PURE__ */
|
4015
|
+
/* @__PURE__ */ React69__default.createElement(
|
4029
4016
|
IconButton,
|
4030
4017
|
{
|
4031
4018
|
variant: "ghost",
|
@@ -4033,14 +4020,14 @@ var TimePicker = ({
|
|
4033
4020
|
borderRadius: "xs",
|
4034
4021
|
"aria-label": backwardsLabel,
|
4035
4022
|
title: backwardsLabel,
|
4036
|
-
icon: /* @__PURE__ */
|
4023
|
+
icon: /* @__PURE__ */ React69__default.createElement(DropdownLeftFill18Icon, null),
|
4037
4024
|
onClick: handleBackwardsClick,
|
4038
4025
|
isDisabled,
|
4039
4026
|
style: isDisabled ? { backgroundColor: "transparent" } : {}
|
4040
4027
|
}
|
4041
4028
|
),
|
4042
|
-
/* @__PURE__ */
|
4043
|
-
/* @__PURE__ */
|
4029
|
+
/* @__PURE__ */ React69__default.createElement(TimeField, { label, state: state2, name }),
|
4030
|
+
/* @__PURE__ */ React69__default.createElement(
|
4044
4031
|
IconButton,
|
4045
4032
|
{
|
4046
4033
|
variant: "ghost",
|
@@ -4048,7 +4035,7 @@ var TimePicker = ({
|
|
4048
4035
|
borderRadius: "xs",
|
4049
4036
|
"aria-label": forwardsLabel,
|
4050
4037
|
title: forwardsLabel,
|
4051
|
-
icon: /* @__PURE__ */
|
4038
|
+
icon: /* @__PURE__ */ React69__default.createElement(DropdownRightFill18Icon, null),
|
4052
4039
|
onClick: handleForwardClick,
|
4053
4040
|
isDisabled,
|
4054
4041
|
style: isDisabled ? { backgroundColor: "transparent" } : {}
|
@@ -4117,7 +4104,7 @@ var AttachedInputs = ({
|
|
4117
4104
|
}
|
4118
4105
|
};
|
4119
4106
|
const direction2 = flexDirection === "row" ? "horizontal" : "vertical";
|
4120
|
-
return /* @__PURE__ */
|
4107
|
+
return /* @__PURE__ */ React69__default.createElement(
|
4121
4108
|
Flex,
|
4122
4109
|
{
|
4123
4110
|
role: "group",
|
@@ -4131,7 +4118,7 @@ var AttachedInputs = ({
|
|
4131
4118
|
var Dialog = ({ title, children, ...props }) => {
|
4132
4119
|
const ref = useRef(null);
|
4133
4120
|
const { dialogProps, titleProps } = useDialog(props, ref);
|
4134
|
-
return /* @__PURE__ */
|
4121
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { ...dialogProps, ref, outline: "none" }, title && /* @__PURE__ */ React69__default.createElement(Heading$1, { as: "h3", ...titleProps }, title), children);
|
4135
4122
|
};
|
4136
4123
|
var Popover3 = forwardRef$1(
|
4137
4124
|
({
|
@@ -4162,21 +4149,21 @@ var Popover3 = forwardRef$1(
|
|
4162
4149
|
},
|
4163
4150
|
state2
|
4164
4151
|
);
|
4165
|
-
const popoverBox = /* @__PURE__ */
|
4152
|
+
const popoverBox = /* @__PURE__ */ React69__default.createElement(
|
4166
4153
|
Box,
|
4167
4154
|
{
|
4168
4155
|
...popoverProps,
|
4169
4156
|
ref: popoverRef,
|
4170
4157
|
minWidth: ((_a6 = triggerRef.current) == null ? void 0 : _a6.clientWidth) ?? "auto"
|
4171
4158
|
},
|
4172
|
-
/* @__PURE__ */
|
4159
|
+
/* @__PURE__ */ React69__default.createElement(DismissButton, { onDismiss: state2.close }),
|
4173
4160
|
children,
|
4174
|
-
/* @__PURE__ */
|
4161
|
+
/* @__PURE__ */ React69__default.createElement(DismissButton, { onDismiss: state2.close })
|
4175
4162
|
);
|
4176
4163
|
if (isNonModal) {
|
4177
4164
|
return popoverBox;
|
4178
4165
|
}
|
4179
|
-
return /* @__PURE__ */
|
4166
|
+
return /* @__PURE__ */ React69__default.createElement(Overlay, null, hasBackdrop && /* @__PURE__ */ React69__default.createElement(Box, { ...underlayProps, position: "fixed", inset: "0" }), popoverBox);
|
4180
4167
|
}
|
4181
4168
|
);
|
4182
4169
|
|
@@ -4213,7 +4200,7 @@ var CardSelect = forwardRef(
|
|
4213
4200
|
const styles3 = useMultiStyleConfig("CardSelect", { variant, size: size2 });
|
4214
4201
|
useForceRerender(state2.isOpen);
|
4215
4202
|
const ChevronIcon = size2 === "sm" ? DropdownDownFill18Icon : DropdownDownFill24Icon;
|
4216
|
-
return /* @__PURE__ */
|
4203
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { ...props }, /* @__PURE__ */ React69__default.createElement(
|
4217
4204
|
chakra.button,
|
4218
4205
|
{
|
4219
4206
|
type: "button",
|
@@ -4223,13 +4210,13 @@ var CardSelect = forwardRef(
|
|
4223
4210
|
width,
|
4224
4211
|
"data-attachable": true
|
4225
4212
|
},
|
4226
|
-
/* @__PURE__ */
|
4213
|
+
/* @__PURE__ */ React69__default.createElement(Flex, { gap: 1.5, alignItems: "center" }, icon, /* @__PURE__ */ React69__default.createElement(Box, { as: "span" }, label), withChevron ? /* @__PURE__ */ React69__default.createElement(
|
4227
4214
|
ChevronIcon,
|
4228
4215
|
{
|
4229
4216
|
transform: state2.isOpen ? "rotate(180deg)" : "none"
|
4230
4217
|
}
|
4231
4218
|
) : null)
|
4232
|
-
), state2.isOpen && /* @__PURE__ */
|
4219
|
+
), state2.isOpen && /* @__PURE__ */ React69__default.createElement(
|
4233
4220
|
Popover3,
|
4234
4221
|
{
|
4235
4222
|
state: state2,
|
@@ -4238,7 +4225,7 @@ var CardSelect = forwardRef(
|
|
4238
4225
|
crossOffset,
|
4239
4226
|
placement
|
4240
4227
|
},
|
4241
|
-
/* @__PURE__ */
|
4228
|
+
/* @__PURE__ */ React69__default.createElement(
|
4242
4229
|
Card,
|
4243
4230
|
{
|
4244
4231
|
colorScheme: "white",
|
@@ -4246,7 +4233,7 @@ var CardSelect = forwardRef(
|
|
4246
4233
|
sx: styles3.card,
|
4247
4234
|
...overlayProps
|
4248
4235
|
},
|
4249
|
-
/* @__PURE__ */
|
4236
|
+
/* @__PURE__ */ React69__default.createElement(Dialog, { "aria-label": label }, children)
|
4250
4237
|
)
|
4251
4238
|
));
|
4252
4239
|
}
|
@@ -4260,14 +4247,14 @@ function useForceRerender(shouldRerender) {
|
|
4260
4247
|
}, [shouldRerender]);
|
4261
4248
|
}
|
4262
4249
|
var Checkbox = forwardRef((props, ref) => {
|
4263
|
-
return /* @__PURE__ */
|
4250
|
+
return /* @__PURE__ */ React69__default.createElement(Checkbox$1, { ...props, ref });
|
4264
4251
|
});
|
4265
4252
|
var CheckboxGroup = ({
|
4266
4253
|
direction: direction2 = "row",
|
4267
4254
|
children,
|
4268
4255
|
...props
|
4269
4256
|
}) => {
|
4270
|
-
return /* @__PURE__ */
|
4257
|
+
return /* @__PURE__ */ React69__default.createElement(CheckboxGroup$1, { ...props }, /* @__PURE__ */ React69__default.createElement(Stack$1, { direction: direction2 }, children));
|
4271
4258
|
};
|
4272
4259
|
|
4273
4260
|
// ../../node_modules/@chakra-ui/utils/dist/chunk-O3SWHQEE.mjs
|
@@ -4288,15 +4275,15 @@ var ChoiceChip = forwardRef((props, ref) => {
|
|
4288
4275
|
hasLabel: Boolean(children)
|
4289
4276
|
});
|
4290
4277
|
const id = `choice-chip-${useId()}`;
|
4291
|
-
return /* @__PURE__ */
|
4278
|
+
return /* @__PURE__ */ React69__default.createElement(
|
4292
4279
|
chakra.label,
|
4293
4280
|
{
|
4294
4281
|
htmlFor: id,
|
4295
4282
|
...getRootProps(),
|
4296
4283
|
"aria-label": String(children)
|
4297
4284
|
},
|
4298
|
-
/* @__PURE__ */
|
4299
|
-
/* @__PURE__ */
|
4285
|
+
/* @__PURE__ */ React69__default.createElement(chakra.input, { ...getInputProps({}, ref), id }),
|
4286
|
+
/* @__PURE__ */ React69__default.createElement(
|
4300
4287
|
chakra.div,
|
4301
4288
|
{
|
4302
4289
|
...getLabelProps(),
|
@@ -4307,9 +4294,9 @@ var ChoiceChip = forwardRef((props, ref) => {
|
|
4307
4294
|
"data-active": dataAttr(state2.isActive),
|
4308
4295
|
"data-disabled": dataAttr(state2.isDisabled)
|
4309
4296
|
},
|
4310
|
-
icon && /* @__PURE__ */
|
4311
|
-
/* @__PURE__ */
|
4312
|
-
variant === "filter" && state2.isChecked && /* @__PURE__ */
|
4297
|
+
icon && /* @__PURE__ */ React69__default.createElement(chakra.span, { __css: styles3.icon }, state2.isChecked ? icon.checked : icon.default),
|
4298
|
+
/* @__PURE__ */ React69__default.createElement(chakra.span, { __css: styles3.label, ...getCheckboxProps() }, variant !== "icon" && children),
|
4299
|
+
variant === "filter" && state2.isChecked && /* @__PURE__ */ React69__default.createElement(CloseOutline24Icon, { marginLeft: 1.5 })
|
4313
4300
|
)
|
4314
4301
|
);
|
4315
4302
|
});
|
@@ -4361,7 +4348,7 @@ function Combobox({
|
|
4361
4348
|
},
|
4362
4349
|
state2
|
4363
4350
|
);
|
4364
|
-
return /* @__PURE__ */
|
4351
|
+
return /* @__PURE__ */ React69__default.createElement(React69__default.Fragment, null, /* @__PURE__ */ React69__default.createElement(
|
4365
4352
|
Input,
|
4366
4353
|
{
|
4367
4354
|
...inputProps,
|
@@ -4385,7 +4372,7 @@ function Combobox({
|
|
4385
4372
|
paddingX,
|
4386
4373
|
paddingY,
|
4387
4374
|
leftIcon,
|
4388
|
-
rightIcon: isLoading ? /* @__PURE__ */
|
4375
|
+
rightIcon: isLoading ? /* @__PURE__ */ React69__default.createElement(
|
4389
4376
|
ColorSpinner,
|
4390
4377
|
{
|
4391
4378
|
width: "1.5rem",
|
@@ -4400,7 +4387,7 @@ function Combobox({
|
|
4400
4387
|
}
|
4401
4388
|
) : rightIcon
|
4402
4389
|
}
|
4403
|
-
), state2.isOpen && !isLoading && /* @__PURE__ */
|
4390
|
+
), state2.isOpen && !isLoading && /* @__PURE__ */ React69__default.createElement(
|
4404
4391
|
Popover3,
|
4405
4392
|
{
|
4406
4393
|
state: state2,
|
@@ -4412,7 +4399,7 @@ function Combobox({
|
|
4412
4399
|
hasBackdrop: false,
|
4413
4400
|
containerPadding: 0
|
4414
4401
|
},
|
4415
|
-
/* @__PURE__ */
|
4402
|
+
/* @__PURE__ */ React69__default.createElement(
|
4416
4403
|
ListBox,
|
4417
4404
|
{
|
4418
4405
|
...listBoxProps,
|
@@ -4449,7 +4436,7 @@ var debounce = (fn, ms = 100) => {
|
|
4449
4436
|
};
|
4450
4437
|
};
|
4451
4438
|
var FormControl = forwardRef((props, ref) => {
|
4452
|
-
return /* @__PURE__ */
|
4439
|
+
return /* @__PURE__ */ React69__default.createElement(FormControl$1, { ...props, ref });
|
4453
4440
|
});
|
4454
4441
|
var FormErrorMessage = ({
|
4455
4442
|
children,
|
@@ -4465,7 +4452,7 @@ var FormErrorMessage = ({
|
|
4465
4452
|
return null;
|
4466
4453
|
}
|
4467
4454
|
const { ref, ...errorMessageProps } = formControlContext.getErrorMessageProps();
|
4468
|
-
return /* @__PURE__ */
|
4455
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { position: "relative", ref }, /* @__PURE__ */ React69__default.createElement(
|
4469
4456
|
Box,
|
4470
4457
|
{
|
4471
4458
|
borderRadius: "xs",
|
@@ -4483,12 +4470,12 @@ var FormErrorMessage = ({
|
|
4483
4470
|
...errorMessageProps,
|
4484
4471
|
...boxProps
|
4485
4472
|
},
|
4486
|
-
/* @__PURE__ */
|
4473
|
+
/* @__PURE__ */ React69__default.createElement(Arrow, { position: "absolute", top: "-0.25em", left: "1em" }),
|
4487
4474
|
children
|
4488
4475
|
));
|
4489
4476
|
};
|
4490
4477
|
var Arrow = (props) => {
|
4491
|
-
return /* @__PURE__ */
|
4478
|
+
return /* @__PURE__ */ React69__default.createElement(
|
4492
4479
|
Box,
|
4493
4480
|
{
|
4494
4481
|
...props,
|
@@ -4499,7 +4486,7 @@ var Arrow = (props) => {
|
|
4499
4486
|
fill: "none",
|
4500
4487
|
transform: "rotate(45deg)"
|
4501
4488
|
},
|
4502
|
-
/* @__PURE__ */
|
4489
|
+
/* @__PURE__ */ React69__default.createElement(
|
4503
4490
|
Box,
|
4504
4491
|
{
|
4505
4492
|
as: "path",
|
@@ -4510,7 +4497,7 @@ var Arrow = (props) => {
|
|
4510
4497
|
);
|
4511
4498
|
};
|
4512
4499
|
var FormLabel3 = forwardRef((props, ref) => {
|
4513
|
-
return /* @__PURE__ */
|
4500
|
+
return /* @__PURE__ */ React69__default.createElement(FormLabel, { ...props, ref });
|
4514
4501
|
});
|
4515
4502
|
function ListBox({
|
4516
4503
|
isLoading,
|
@@ -4521,7 +4508,7 @@ function ListBox({
|
|
4521
4508
|
}) {
|
4522
4509
|
const { listBoxProps } = useListBox(props, state2, listBoxRef);
|
4523
4510
|
const styles3 = useMultiStyleConfig("ListBox", {});
|
4524
|
-
return /* @__PURE__ */
|
4511
|
+
return /* @__PURE__ */ React69__default.createElement(
|
4525
4512
|
List,
|
4526
4513
|
{
|
4527
4514
|
...listBoxProps,
|
@@ -4532,19 +4519,19 @@ function ListBox({
|
|
4532
4519
|
},
|
4533
4520
|
state2.collection.size === 0 && props.emptyContent,
|
4534
4521
|
Array.from(state2.collection).map(
|
4535
|
-
(item) => item.type === "section" ? /* @__PURE__ */
|
4522
|
+
(item) => item.type === "section" ? /* @__PURE__ */ React69__default.createElement(ListBoxSection, { key: item.key, section: item, state: state2 }) : /* @__PURE__ */ React69__default.createElement(Option, { key: item.key, item, state: state2 })
|
4536
4523
|
)
|
4537
4524
|
);
|
4538
4525
|
}
|
4539
4526
|
function ItemLabel({ children }) {
|
4540
4527
|
let { labelProps } = useOptionContext();
|
4541
4528
|
const styles3 = useMultiStyleConfig("ListBox", {});
|
4542
|
-
return /* @__PURE__ */
|
4529
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { ...labelProps, sx: styles3.label }, children);
|
4543
4530
|
}
|
4544
4531
|
function ItemDescription({ children }) {
|
4545
4532
|
let { descriptionProps } = useOptionContext();
|
4546
4533
|
const styles3 = useMultiStyleConfig("ListBox", {});
|
4547
|
-
return /* @__PURE__ */
|
4534
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { ...descriptionProps, sx: styles3.description }, children);
|
4548
4535
|
}
|
4549
4536
|
function Option({ item, state: state2 }) {
|
4550
4537
|
const ref = useRef(null);
|
@@ -4577,9 +4564,9 @@ function Option({ item, state: state2 }) {
|
|
4577
4564
|
{ passive: false, once: true }
|
4578
4565
|
);
|
4579
4566
|
}, []);
|
4580
|
-
return /* @__PURE__ */
|
4567
|
+
return /* @__PURE__ */ React69__default.createElement(OptionContext.Provider, { value: { labelProps, descriptionProps } }, /* @__PURE__ */ React69__default.createElement(ListItem, { ...optionProps, ...dataFields, ref, sx: styles3.item }, item.rendered));
|
4581
4568
|
}
|
4582
|
-
var OptionContext =
|
4569
|
+
var OptionContext = React69__default.createContext({
|
4583
4570
|
labelProps: {},
|
4584
4571
|
descriptionProps: {}
|
4585
4572
|
});
|
@@ -4593,7 +4580,7 @@ function ListBoxSection({ section, state: state2 }) {
|
|
4593
4580
|
});
|
4594
4581
|
const isFirstSection = section.key === state2.collection.getFirstKey();
|
4595
4582
|
const titleColor = useColorModeValue("darkGrey", "white");
|
4596
|
-
return /* @__PURE__ */
|
4583
|
+
return /* @__PURE__ */ React69__default.createElement(ListItem, { ...itemProps }, section.rendered && /* @__PURE__ */ React69__default.createElement(
|
4597
4584
|
Box,
|
4598
4585
|
{
|
4599
4586
|
fontSize: "mobile.xs",
|
@@ -4606,8 +4593,8 @@ function ListBoxSection({ section, state: state2 }) {
|
|
4606
4593
|
...headingProps
|
4607
4594
|
},
|
4608
4595
|
section.rendered
|
4609
|
-
), /* @__PURE__ */
|
4610
|
-
(item) => /* @__PURE__ */
|
4596
|
+
), /* @__PURE__ */ React69__default.createElement(List, { ...groupProps, padding: 0, listStyleType: "none" }, Array.from(state2.collection.getChildren(section.key)).map(
|
4597
|
+
(item) => /* @__PURE__ */ React69__default.createElement(Option, { key: item.key, item, state: state2 })
|
4611
4598
|
)));
|
4612
4599
|
}
|
4613
4600
|
|
@@ -4643,7 +4630,7 @@ function InfoSelect({
|
|
4643
4630
|
const { buttonProps } = useButton(triggerProps, triggerRef);
|
4644
4631
|
const { t: t2 } = useTranslation();
|
4645
4632
|
const formControl = useFormControlProps(props);
|
4646
|
-
return /* @__PURE__ */
|
4633
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { sx: styles3.container }, /* @__PURE__ */ React69__default.createElement(chakra.div, { ...labelProps, sx: styles3.label }, props.label), /* @__PURE__ */ React69__default.createElement(
|
4647
4634
|
HiddenSelect,
|
4648
4635
|
{
|
4649
4636
|
state: state2,
|
@@ -4651,7 +4638,7 @@ function InfoSelect({
|
|
4651
4638
|
label: props.label,
|
4652
4639
|
name: props.name
|
4653
4640
|
}
|
4654
|
-
), /* @__PURE__ */
|
4641
|
+
), /* @__PURE__ */ React69__default.createElement(
|
4655
4642
|
chakra.button,
|
4656
4643
|
{
|
4657
4644
|
type: "button",
|
@@ -4664,16 +4651,16 @@ function InfoSelect({
|
|
4664
4651
|
"aria-invalid": formControl.isInvalid,
|
4665
4652
|
"aria-describedby": formControl["aria-describedby"]
|
4666
4653
|
},
|
4667
|
-
/* @__PURE__ */
|
4668
|
-
/* @__PURE__ */
|
4669
|
-
), state2.isOpen && /* @__PURE__ */
|
4654
|
+
/* @__PURE__ */ React69__default.createElement(Box, { ...valueProps }, state2.selectedItem ? state2.selectedItem.textValue ?? state2.selectedItem.rendered : placeholder ?? t2(texts11.selectAnOption)),
|
4655
|
+
/* @__PURE__ */ React69__default.createElement(Box, { sx: styles3.arrowIcon }, state2.isOpen ? /* @__PURE__ */ React69__default.createElement(DropdownUpFill24Icon, null) : /* @__PURE__ */ React69__default.createElement(DropdownDownFill24Icon, null))
|
4656
|
+
), state2.isOpen && /* @__PURE__ */ React69__default.createElement(
|
4670
4657
|
Popover3,
|
4671
4658
|
{
|
4672
4659
|
state: state2,
|
4673
4660
|
triggerRef,
|
4674
4661
|
containerPadding: 0
|
4675
4662
|
},
|
4676
|
-
/* @__PURE__ */
|
4663
|
+
/* @__PURE__ */ React69__default.createElement(
|
4677
4664
|
ListBox,
|
4678
4665
|
{
|
4679
4666
|
...menuProps,
|
@@ -4698,7 +4685,7 @@ var Input = forwardRef(
|
|
4698
4685
|
const formControlProps = useFormControlContext();
|
4699
4686
|
const fallbackId = `input-${useId()}`;
|
4700
4687
|
const inputId = id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? fallbackId;
|
4701
|
-
return /* @__PURE__ */
|
4688
|
+
return /* @__PURE__ */ React69__default.createElement(InputGroup, { position: "relative" }, leftIcon && /* @__PURE__ */ React69__default.createElement(InputLeftElement, { pointerEvents: "none" }, leftIcon), /* @__PURE__ */ React69__default.createElement(
|
4702
4689
|
Input$1,
|
4703
4690
|
{
|
4704
4691
|
"data-attachable": true,
|
@@ -4709,19 +4696,19 @@ var Input = forwardRef(
|
|
4709
4696
|
ref,
|
4710
4697
|
placeholder: " "
|
4711
4698
|
}
|
4712
|
-
), /* @__PURE__ */
|
4699
|
+
), /* @__PURE__ */ React69__default.createElement(FormLabel, { htmlFor: inputId }, label), rightIcon && /* @__PURE__ */ React69__default.createElement(InputRightElement, { pointerEvents: "none" }, rightIcon));
|
4713
4700
|
}
|
4714
4701
|
);
|
4715
4702
|
var InputLeftElement2 = forwardRef(
|
4716
|
-
(props, ref) => /* @__PURE__ */
|
4703
|
+
(props, ref) => /* @__PURE__ */ React69__default.createElement(InputLeftElement, { ...props, ref })
|
4717
4704
|
);
|
4718
4705
|
var InputRightElement2 = forwardRef(
|
4719
|
-
(props, ref) => /* @__PURE__ */
|
4706
|
+
(props, ref) => /* @__PURE__ */ React69__default.createElement(InputRightElement, { ...props, ref })
|
4720
4707
|
);
|
4721
4708
|
var NativeSelect = forwardRef(
|
4722
4709
|
({ label, ...props }, ref) => {
|
4723
4710
|
const styles3 = useMultiStyleConfig("Select", props);
|
4724
|
-
return /* @__PURE__ */
|
4711
|
+
return /* @__PURE__ */ React69__default.createElement(FormControl, null, /* @__PURE__ */ React69__default.createElement(
|
4725
4712
|
Select,
|
4726
4713
|
{
|
4727
4714
|
"data-attachable": true,
|
@@ -4729,7 +4716,7 @@ var NativeSelect = forwardRef(
|
|
4729
4716
|
rootProps: { __css: styles3.root },
|
4730
4717
|
ref
|
4731
4718
|
}
|
4732
|
-
), label && /* @__PURE__ */
|
4719
|
+
), label && /* @__PURE__ */ React69__default.createElement(FormLabel3, null, label));
|
4733
4720
|
}
|
4734
4721
|
);
|
4735
4722
|
var colors = {
|
@@ -4791,6 +4778,8 @@ function NumericStepper({
|
|
4791
4778
|
maxValue = 99,
|
4792
4779
|
isDisabled,
|
4793
4780
|
withInput = true,
|
4781
|
+
stepSize = 1,
|
4782
|
+
showZero = false,
|
4794
4783
|
...boxProps
|
4795
4784
|
}) {
|
4796
4785
|
const { t: t2 } = useTranslation();
|
@@ -4803,16 +4792,18 @@ function NumericStepper({
|
|
4803
4792
|
const textColor = useColorModeValue("darkGrey", "white");
|
4804
4793
|
const backgroundColor = useColorModeValue("white", "darkGrey");
|
4805
4794
|
const focusColor = useColorModeValue("greenHaze", "azure");
|
4806
|
-
|
4795
|
+
const clampedStepSize = Math.max(Math.min(stepSize, 10), 1);
|
4796
|
+
return /* @__PURE__ */ React69__default.createElement(Flex, { alignItems: "center", ...boxProps }, /* @__PURE__ */ React69__default.createElement(
|
4807
4797
|
VerySmallButton,
|
4808
4798
|
{
|
4809
|
-
icon: /* @__PURE__ */
|
4810
|
-
"aria-label": t2(texts12.decrementButtonAriaLabel),
|
4811
|
-
onClick: () => onChange(value -
|
4799
|
+
icon: /* @__PURE__ */ React69__default.createElement(SubtractIcon, { color: "white", stepLabel: clampedStepSize }),
|
4800
|
+
"aria-label": t2(texts12.decrementButtonAriaLabel(clampedStepSize)),
|
4801
|
+
onClick: () => onChange(Math.max(value - clampedStepSize, minValue)),
|
4812
4802
|
visibility: value <= minValue ? "hidden" : "visible",
|
4813
|
-
isDisabled: formControlProps.disabled
|
4803
|
+
isDisabled: formControlProps.disabled,
|
4804
|
+
id: value <= minValue ? void 0 : formControlProps.id
|
4814
4805
|
}
|
4815
|
-
), withInput ? /* @__PURE__ */
|
4806
|
+
), withInput ? /* @__PURE__ */ React69__default.createElement(
|
4816
4807
|
chakra.input,
|
4817
4808
|
{
|
4818
4809
|
type: "number",
|
@@ -4821,10 +4812,10 @@ function NumericStepper({
|
|
4821
4812
|
name: nameProp,
|
4822
4813
|
value,
|
4823
4814
|
...formControlProps,
|
4824
|
-
id: value
|
4815
|
+
id: !showZero && value === 0 ? void 0 : formControlProps.id,
|
4825
4816
|
fontSize: "sm",
|
4826
4817
|
fontWeight: "bold",
|
4827
|
-
width:
|
4818
|
+
width: `${Math.max(value.toString().length + 1, 3)}ch`,
|
4828
4819
|
marginX: 1,
|
4829
4820
|
paddingX: 1,
|
4830
4821
|
borderRadius: "xs",
|
@@ -4832,7 +4823,7 @@ function NumericStepper({
|
|
4832
4823
|
backgroundColor,
|
4833
4824
|
color: textColor,
|
4834
4825
|
transition: "box-shadow .1s ease-out",
|
4835
|
-
visibility: value === 0 ? "hidden" : "visible",
|
4826
|
+
visibility: !showZero && value === 0 ? "hidden" : "visible",
|
4836
4827
|
"aria-live": "assertive",
|
4837
4828
|
"aria-label": value.toString(),
|
4838
4829
|
_hover: {
|
@@ -4859,10 +4850,10 @@ function NumericStepper({
|
|
4859
4850
|
if (Number.isNaN(numericInput)) {
|
4860
4851
|
return;
|
4861
4852
|
}
|
4862
|
-
onChange(numericInput);
|
4853
|
+
onChange(Math.max(Math.min(numericInput, maxValue), minValue));
|
4863
4854
|
}
|
4864
4855
|
}
|
4865
|
-
) : /* @__PURE__ */
|
4856
|
+
) : /* @__PURE__ */ React69__default.createElement(
|
4866
4857
|
chakra.text,
|
4867
4858
|
{
|
4868
4859
|
fontSize: "sm",
|
@@ -4873,24 +4864,24 @@ function NumericStepper({
|
|
4873
4864
|
textAlign: "center",
|
4874
4865
|
color: textColor,
|
4875
4866
|
transition: "box-shadow .1s ease-out",
|
4876
|
-
visibility: value === 0 ? "hidden" : "visible",
|
4867
|
+
visibility: !showZero && value === 0 ? "hidden" : "visible",
|
4877
4868
|
"aria-label": value.toString()
|
4878
4869
|
},
|
4879
4870
|
value
|
4880
|
-
), /* @__PURE__ */
|
4871
|
+
), /* @__PURE__ */ React69__default.createElement(
|
4881
4872
|
VerySmallButton,
|
4882
4873
|
{
|
4883
|
-
icon: /* @__PURE__ */
|
4884
|
-
"aria-label": t2(texts12.incrementButtonAriaLabel),
|
4885
|
-
onClick: () => onChange(value +
|
4874
|
+
icon: /* @__PURE__ */ React69__default.createElement(AddIcon, { color: "white", stepLabel: clampedStepSize }),
|
4875
|
+
"aria-label": t2(texts12.incrementButtonAriaLabel(clampedStepSize)),
|
4876
|
+
onClick: () => onChange(Math.min(value + clampedStepSize, maxValue)),
|
4886
4877
|
visibility: value >= maxValue ? "hidden" : "visible",
|
4887
4878
|
isDisabled: formControlProps.disabled,
|
4888
|
-
id: value
|
4879
|
+
id: value >= maxValue ? void 0 : formControlProps.id
|
4889
4880
|
}
|
4890
4881
|
));
|
4891
4882
|
}
|
4892
4883
|
var VerySmallButton = (props) => {
|
4893
|
-
return /* @__PURE__ */
|
4884
|
+
return /* @__PURE__ */ React69__default.createElement(
|
4894
4885
|
IconButton,
|
4895
4886
|
{
|
4896
4887
|
variant: "primary",
|
@@ -4907,7 +4898,7 @@ var VerySmallButton = (props) => {
|
|
4907
4898
|
}
|
4908
4899
|
);
|
4909
4900
|
};
|
4910
|
-
var SubtractIcon = (props) => /* @__PURE__ */
|
4901
|
+
var SubtractIcon = (props) => /* @__PURE__ */ React69__default.createElement(React69__default.Fragment, null, /* @__PURE__ */ React69__default.createElement(
|
4911
4902
|
Box,
|
4912
4903
|
{
|
4913
4904
|
as: "svg",
|
@@ -4917,7 +4908,7 @@ var SubtractIcon = (props) => /* @__PURE__ */ React50__default.createElement(
|
|
4917
4908
|
stroke: "currentColor",
|
4918
4909
|
...props
|
4919
4910
|
},
|
4920
|
-
/* @__PURE__ */
|
4911
|
+
/* @__PURE__ */ React69__default.createElement(
|
4921
4912
|
"line",
|
4922
4913
|
{
|
4923
4914
|
x1: "9",
|
@@ -4928,8 +4919,8 @@ var SubtractIcon = (props) => /* @__PURE__ */ React50__default.createElement(
|
|
4928
4919
|
strokeLinecap: "round"
|
4929
4920
|
}
|
4930
4921
|
)
|
4931
|
-
);
|
4932
|
-
var AddIcon = (props) => /* @__PURE__ */
|
4922
|
+
), props.stepLabel > 1 && /* @__PURE__ */ React69__default.createElement(chakra.span, { paddingRight: "1" }, props.stepLabel.toString()));
|
4923
|
+
var AddIcon = (props) => /* @__PURE__ */ React69__default.createElement(React69__default.Fragment, null, /* @__PURE__ */ React69__default.createElement(
|
4933
4924
|
Box,
|
4934
4925
|
{
|
4935
4926
|
as: "svg",
|
@@ -4939,7 +4930,7 @@ var AddIcon = (props) => /* @__PURE__ */ React50__default.createElement(
|
|
4939
4930
|
stroke: "currentColor",
|
4940
4931
|
...props
|
4941
4932
|
},
|
4942
|
-
/* @__PURE__ */
|
4933
|
+
/* @__PURE__ */ React69__default.createElement(
|
4943
4934
|
"line",
|
4944
4935
|
{
|
4945
4936
|
x1: "9",
|
@@ -4950,7 +4941,7 @@ var AddIcon = (props) => /* @__PURE__ */ React50__default.createElement(
|
|
4950
4941
|
strokeLinecap: "round"
|
4951
4942
|
}
|
4952
4943
|
),
|
4953
|
-
/* @__PURE__ */
|
4944
|
+
/* @__PURE__ */ React69__default.createElement(
|
4954
4945
|
"line",
|
4955
4946
|
{
|
4956
4947
|
x1: "15",
|
@@ -4961,19 +4952,23 @@ var AddIcon = (props) => /* @__PURE__ */ React50__default.createElement(
|
|
4961
4952
|
strokeLinecap: "round"
|
4962
4953
|
}
|
4963
4954
|
)
|
4964
|
-
);
|
4955
|
+
), props.stepLabel > 1 && /* @__PURE__ */ React69__default.createElement(chakra.span, { paddingRight: "1" }, props.stepLabel.toString()));
|
4965
4956
|
var texts12 = createTexts({
|
4966
|
-
decrementButtonAriaLabel
|
4967
|
-
|
4968
|
-
|
4969
|
-
|
4970
|
-
|
4957
|
+
decrementButtonAriaLabel(stepSize) {
|
4958
|
+
return {
|
4959
|
+
nb: `Trekk fra ${stepSize}`,
|
4960
|
+
en: `Subtract ${stepSize}`,
|
4961
|
+
nn: `Trekk fr\xE5 ${stepSize}`,
|
4962
|
+
sv: `Subtrahera ${stepSize}`
|
4963
|
+
};
|
4971
4964
|
},
|
4972
|
-
incrementButtonAriaLabel
|
4973
|
-
|
4974
|
-
|
4975
|
-
|
4976
|
-
|
4965
|
+
incrementButtonAriaLabel(stepSize) {
|
4966
|
+
return {
|
4967
|
+
nb: `Legg til ${stepSize}`,
|
4968
|
+
en: `Add ${stepSize}`,
|
4969
|
+
nn: `Legg til ${stepSize}`,
|
4970
|
+
sv: `L\xE4gg till ${stepSize}`
|
4971
|
+
};
|
4977
4972
|
}
|
4978
4973
|
});
|
4979
4974
|
var PasswordInput = forwardRef(
|
@@ -4983,7 +4978,7 @@ var PasswordInput = forwardRef(
|
|
4983
4978
|
const formControlProps = useFormControlContext();
|
4984
4979
|
const autoGeneratedId = `password-input-${useId()}`;
|
4985
4980
|
const inputId = id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? autoGeneratedId;
|
4986
|
-
return /* @__PURE__ */
|
4981
|
+
return /* @__PURE__ */ React69__default.createElement(InputGroup, { position: "relative" }, leftIcon && /* @__PURE__ */ React69__default.createElement(InputLeftElement2, null, leftIcon), /* @__PURE__ */ React69__default.createElement(
|
4987
4982
|
Input$1,
|
4988
4983
|
{
|
4989
4984
|
...props,
|
@@ -4995,7 +4990,7 @@ var PasswordInput = forwardRef(
|
|
4995
4990
|
ref,
|
4996
4991
|
"data-attachable": true
|
4997
4992
|
}
|
4998
|
-
), /* @__PURE__ */
|
4993
|
+
), /* @__PURE__ */ React69__default.createElement(FormLabel3, { htmlFor: inputId, pointerEvents: "none" }, label), /* @__PURE__ */ React69__default.createElement(InputRightElement2, { width: "fit-content" }, /* @__PURE__ */ React69__default.createElement(
|
4999
4994
|
Button$1,
|
5000
4995
|
{
|
5001
4996
|
variant: "ghost",
|
@@ -5033,10 +5028,10 @@ var PhoneNumberInput = forwardRef(
|
|
5033
5028
|
nationalNumber: ""
|
5034
5029
|
}
|
5035
5030
|
});
|
5036
|
-
return /* @__PURE__ */
|
5031
|
+
return /* @__PURE__ */ React69__default.createElement(AttachedInputs, { ...boxProps }, /* @__PURE__ */ React69__default.createElement(
|
5037
5032
|
Suspense,
|
5038
5033
|
{
|
5039
|
-
fallback: /* @__PURE__ */
|
5034
|
+
fallback: /* @__PURE__ */ React69__default.createElement(
|
5040
5035
|
InfoSelect,
|
5041
5036
|
{
|
5042
5037
|
isLabelSrOnly: true,
|
@@ -5045,10 +5040,10 @@ var PhoneNumberInput = forwardRef(
|
|
5045
5040
|
height: "100%",
|
5046
5041
|
value: "+47"
|
5047
5042
|
},
|
5048
|
-
/* @__PURE__ */
|
5043
|
+
/* @__PURE__ */ React69__default.createElement(Item, { key: "+47" }, "+47")
|
5049
5044
|
)
|
5050
5045
|
},
|
5051
|
-
/* @__PURE__ */
|
5046
|
+
/* @__PURE__ */ React69__default.createElement(
|
5052
5047
|
LazyCountryCodeSelect,
|
5053
5048
|
{
|
5054
5049
|
value: value.countryCode,
|
@@ -5061,7 +5056,7 @@ var PhoneNumberInput = forwardRef(
|
|
5061
5056
|
width: "6.25rem"
|
5062
5057
|
}
|
5063
5058
|
)
|
5064
|
-
), /* @__PURE__ */
|
5059
|
+
), /* @__PURE__ */ React69__default.createElement(
|
5065
5060
|
Input,
|
5066
5061
|
{
|
5067
5062
|
ref,
|
@@ -5090,13 +5085,13 @@ var texts14 = createTexts({
|
|
5090
5085
|
sv: "Telefonnummer"
|
5091
5086
|
}
|
5092
5087
|
});
|
5093
|
-
var LazyCountryCodeSelect =
|
5088
|
+
var LazyCountryCodeSelect = React69__default.lazy(() => import('./CountryCodeSelect-BA3A7ODU.mjs'));
|
5094
5089
|
var Radio = forwardRef((props, ref) => {
|
5095
|
-
return /* @__PURE__ */
|
5090
|
+
return /* @__PURE__ */ React69__default.createElement(Radio$1, { ...props, ref });
|
5096
5091
|
});
|
5097
5092
|
var RadioGroup = forwardRef(
|
5098
5093
|
({ children, direction: direction2 = "row", ...rest }, ref) => {
|
5099
|
-
return /* @__PURE__ */
|
5094
|
+
return /* @__PURE__ */ React69__default.createElement(RadioGroup$1, { ...rest, ref }, /* @__PURE__ */ React69__default.createElement(Stack$1, { direction: direction2 }, children));
|
5100
5095
|
}
|
5101
5096
|
);
|
5102
5097
|
var SearchInput = forwardRef(
|
@@ -5106,7 +5101,7 @@ var SearchInput = forwardRef(
|
|
5106
5101
|
const formControlProps = useFormControlContext();
|
5107
5102
|
const autoGeneratedId = useId();
|
5108
5103
|
const inputId = props.id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? autoGeneratedId;
|
5109
|
-
return /* @__PURE__ */
|
5104
|
+
return /* @__PURE__ */ React69__default.createElement(InputGroup, { position: "relative" }, /* @__PURE__ */ React69__default.createElement(InputLeftElement2, null, /* @__PURE__ */ React69__default.createElement(SearchOutline24Icon, null)), /* @__PURE__ */ React69__default.createElement(
|
5110
5105
|
Input$1,
|
5111
5106
|
{
|
5112
5107
|
paddingLeft: 7,
|
@@ -5123,7 +5118,7 @@ var SearchInput = forwardRef(
|
|
5123
5118
|
placeholder: " ",
|
5124
5119
|
"data-attachable": true
|
5125
5120
|
}
|
5126
|
-
), /* @__PURE__ */
|
5121
|
+
), /* @__PURE__ */ React69__default.createElement(FormLabel3, { htmlFor: inputId, pointerEvents: "none" }, label ?? t2(texts15.label)), showClearButton && /* @__PURE__ */ React69__default.createElement(InputRightElement2, { width: "fit-content" }, /* @__PURE__ */ React69__default.createElement(
|
5127
5122
|
IconButton$1,
|
5128
5123
|
{
|
5129
5124
|
variant: "ghost",
|
@@ -5131,7 +5126,7 @@ var SearchInput = forwardRef(
|
|
5131
5126
|
size: "sm",
|
5132
5127
|
marginRight: 1,
|
5133
5128
|
"aria-label": t2(texts15.reset),
|
5134
|
-
icon: /* @__PURE__ */
|
5129
|
+
icon: /* @__PURE__ */ React69__default.createElement(CloseOutline24Icon, null),
|
5135
5130
|
onClick: onReset
|
5136
5131
|
}
|
5137
5132
|
)));
|
@@ -5153,7 +5148,7 @@ var texts15 = createTexts({
|
|
5153
5148
|
});
|
5154
5149
|
var Switch = forwardRef(
|
5155
5150
|
({ size: size2 = "md", ...props }, ref) => {
|
5156
|
-
return /* @__PURE__ */
|
5151
|
+
return /* @__PURE__ */ React69__default.createElement(Switch$1, { variant: "solid", size: size2, ...props, ref });
|
5157
5152
|
}
|
5158
5153
|
);
|
5159
5154
|
var Textarea = forwardRef((props, ref) => {
|
@@ -5164,7 +5159,7 @@ var Textarea = forwardRef((props, ref) => {
|
|
5164
5159
|
const formControlProps = useFormControlContext();
|
5165
5160
|
const fallbackId = `textarea-${useId()}`;
|
5166
5161
|
const inputId = props.id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? fallbackId;
|
5167
|
-
return /* @__PURE__ */
|
5162
|
+
return /* @__PURE__ */ React69__default.createElement(InputGroup, { position: "relative", ...spacingProps }, /* @__PURE__ */ React69__default.createElement(Textarea$1, { ...rest, id: inputId, ref, placeholder: " " }), label && /* @__PURE__ */ React69__default.createElement(FormLabel, { htmlFor: inputId, id: `${inputId}-label` }, label));
|
5168
5163
|
});
|
5169
5164
|
function getSpacingProps(props) {
|
5170
5165
|
const {
|
@@ -5283,7 +5278,7 @@ var LineIcon = ({
|
|
5283
5278
|
if (!Icon) {
|
5284
5279
|
return null;
|
5285
5280
|
}
|
5286
|
-
return /* @__PURE__ */
|
5281
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { sx: { ...styles3.iconContainer, ...sx }, ...rest }, /* @__PURE__ */ React69__default.createElement(Icon, { sx: styles3.icon }));
|
5287
5282
|
};
|
5288
5283
|
|
5289
5284
|
// src/linjetag/InfoTag.tsx
|
@@ -5294,7 +5289,7 @@ var InfoTag = ({
|
|
5294
5289
|
description
|
5295
5290
|
}) => {
|
5296
5291
|
const styles3 = useMultiStyleConfig("InfoTag", { variant, size: size2 });
|
5297
|
-
return /* @__PURE__ */
|
5292
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { sx: styles3.container }, /* @__PURE__ */ React69__default.createElement(LineIcon, { variant, size: size2, sx: styles3.iconContainer }), /* @__PURE__ */ React69__default.createElement(Box, { sx: styles3.textContainer }, title && /* @__PURE__ */ React69__default.createElement(Box, { as: "span", sx: styles3.title }, title), title && description && " ", description && /* @__PURE__ */ React69__default.createElement(Box, { as: "span", sx: styles3.description }, description)));
|
5298
5293
|
};
|
5299
5294
|
var TravelTag = forwardRef(
|
5300
5295
|
({
|
@@ -5312,7 +5307,7 @@ var TravelTag = forwardRef(
|
|
5312
5307
|
deviationLevel
|
5313
5308
|
});
|
5314
5309
|
const DeviationLevelIcon = getDeviationLevelIcon({ deviationLevel, size: size2 });
|
5315
|
-
return /* @__PURE__ */
|
5310
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { sx: styles3.container, "aria-disabled": isDisabled, ref, ...rest }, /* @__PURE__ */ React69__default.createElement(LineIcon, { variant, size: size2, sx: styles3.iconContainer }), /* @__PURE__ */ React69__default.createElement(Box, { sx: styles3.textContainer }, title && /* @__PURE__ */ React69__default.createElement(Box, { as: "span", sx: styles3.title }, title), title && description && " ", description && /* @__PURE__ */ React69__default.createElement(Box, { as: "span", sx: styles3.description }, description)), DeviationLevelIcon && /* @__PURE__ */ React69__default.createElement(DeviationLevelIcon, { sx: styles3.deviationIcon }));
|
5316
5311
|
}
|
5317
5312
|
);
|
5318
5313
|
var getDeviationLevelIcon = ({
|
@@ -5336,7 +5331,7 @@ var TextLink = forwardRef(
|
|
5336
5331
|
var _a6;
|
5337
5332
|
const { t: t2 } = useTranslation();
|
5338
5333
|
const isExternal = props.isExternal !== void 0 ? props.isExternal : Boolean((_a6 = props.href) == null ? void 0 : _a6.match(/^https?:\/\//));
|
5339
|
-
return /* @__PURE__ */
|
5334
|
+
return /* @__PURE__ */ React69__default.createElement(Link, { ...props, ref, isExternal }, children, isExternal && /* @__PURE__ */ React69__default.createElement(
|
5340
5335
|
LinkOutOutline24Icon,
|
5341
5336
|
{
|
5342
5337
|
marginLeft: 0.5,
|
@@ -5357,7 +5352,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
5357
5352
|
const mainColor = colorScheme === "light" ? "#1d211c" : "#ffffff";
|
5358
5353
|
const accentColor = colorScheme === "light" ? "#138c6e" : "#ffffff";
|
5359
5354
|
const id = useId();
|
5360
|
-
return /* @__PURE__ */
|
5355
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { as: "svg", viewBox: "0 0 107 54", ...boxProps }, /* @__PURE__ */ React69__default.createElement("title", null, "Vy logo"), /* @__PURE__ */ React69__default.createElement(
|
5361
5356
|
"path",
|
5362
5357
|
{
|
5363
5358
|
fillRule: "evenodd",
|
@@ -5365,7 +5360,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
5365
5360
|
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",
|
5366
5361
|
fill: mainColor
|
5367
5362
|
}
|
5368
|
-
), /* @__PURE__ */
|
5363
|
+
), /* @__PURE__ */ React69__default.createElement(
|
5369
5364
|
"mask",
|
5370
5365
|
{
|
5371
5366
|
id: `${id}-a`,
|
@@ -5376,7 +5371,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
5376
5371
|
width: "94",
|
5377
5372
|
height: "54"
|
5378
5373
|
},
|
5379
|
-
/* @__PURE__ */
|
5374
|
+
/* @__PURE__ */ React69__default.createElement(
|
5380
5375
|
"path",
|
5381
5376
|
{
|
5382
5377
|
fillRule: "evenodd",
|
@@ -5385,7 +5380,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
5385
5380
|
fill: mainColor
|
5386
5381
|
}
|
5387
5382
|
)
|
5388
|
-
), /* @__PURE__ */
|
5383
|
+
), /* @__PURE__ */ React69__default.createElement(
|
5389
5384
|
"g",
|
5390
5385
|
{
|
5391
5386
|
mask: `url(#${id}-a)`,
|
@@ -5393,9 +5388,9 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
5393
5388
|
clipRule: "evenodd",
|
5394
5389
|
fill: mainColor
|
5395
5390
|
},
|
5396
|
-
/* @__PURE__ */
|
5397
|
-
/* @__PURE__ */
|
5398
|
-
), /* @__PURE__ */
|
5391
|
+
/* @__PURE__ */ React69__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" }),
|
5392
|
+
/* @__PURE__ */ React69__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" })
|
5393
|
+
), /* @__PURE__ */ React69__default.createElement(
|
5399
5394
|
"path",
|
5400
5395
|
{
|
5401
5396
|
fillRule: "evenodd",
|
@@ -5403,7 +5398,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
5403
5398
|
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",
|
5404
5399
|
fill: accentColor
|
5405
5400
|
}
|
5406
|
-
), /* @__PURE__ */
|
5401
|
+
), /* @__PURE__ */ React69__default.createElement(
|
5407
5402
|
"path",
|
5408
5403
|
{
|
5409
5404
|
fillRule: "evenodd",
|
@@ -5411,7 +5406,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
5411
5406
|
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",
|
5412
5407
|
fill: mainColor
|
5413
5408
|
}
|
5414
|
-
), /* @__PURE__ */
|
5409
|
+
), /* @__PURE__ */ React69__default.createElement(
|
5415
5410
|
"mask",
|
5416
5411
|
{
|
5417
5412
|
id: `${id}-b`,
|
@@ -5422,7 +5417,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
5422
5417
|
width: "78",
|
5423
5418
|
height: "54"
|
5424
5419
|
},
|
5425
|
-
/* @__PURE__ */
|
5420
|
+
/* @__PURE__ */ React69__default.createElement(
|
5426
5421
|
"path",
|
5427
5422
|
{
|
5428
5423
|
fillRule: "evenodd",
|
@@ -5431,25 +5426,25 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
5431
5426
|
fill: mainColor
|
5432
5427
|
}
|
5433
5428
|
)
|
5434
|
-
), /* @__PURE__ */
|
5429
|
+
), /* @__PURE__ */ React69__default.createElement("g", { mask: `url(#${id}-b)`, fillRule: "evenodd", clipRule: "evenodd" }, /* @__PURE__ */ React69__default.createElement(
|
5435
5430
|
"path",
|
5436
5431
|
{
|
5437
5432
|
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",
|
5438
5433
|
fill: mainColor
|
5439
5434
|
}
|
5440
|
-
), /* @__PURE__ */
|
5435
|
+
), /* @__PURE__ */ React69__default.createElement(
|
5441
5436
|
"path",
|
5442
5437
|
{
|
5443
5438
|
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",
|
5444
5439
|
fill: mainColor
|
5445
5440
|
}
|
5446
|
-
), /* @__PURE__ */
|
5441
|
+
), /* @__PURE__ */ React69__default.createElement(
|
5447
5442
|
"path",
|
5448
5443
|
{
|
5449
5444
|
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",
|
5450
5445
|
fill: accentColor
|
5451
5446
|
}
|
5452
|
-
)), /* @__PURE__ */
|
5447
|
+
)), /* @__PURE__ */ React69__default.createElement(
|
5453
5448
|
"path",
|
5454
5449
|
{
|
5455
5450
|
fillRule: "evenodd",
|
@@ -5459,7 +5454,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
5459
5454
|
}
|
5460
5455
|
));
|
5461
5456
|
};
|
5462
|
-
var JumpForwardIcon = (props) => /* @__PURE__ */
|
5457
|
+
var JumpForwardIcon = (props) => /* @__PURE__ */ React69.createElement(Box, { as: "svg", ...props, viewBox: "0 0 32 30", fill: "none" }, /* @__PURE__ */ React69.createElement(
|
5463
5458
|
"path",
|
5464
5459
|
{
|
5465
5460
|
fillRule: "evenodd",
|
@@ -5467,7 +5462,7 @@ var JumpForwardIcon = (props) => /* @__PURE__ */ React50.createElement(Box, { as
|
|
5467
5462
|
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",
|
5468
5463
|
fill: "currentColor"
|
5469
5464
|
}
|
5470
|
-
), /* @__PURE__ */
|
5465
|
+
), /* @__PURE__ */ React69.createElement(
|
5471
5466
|
"path",
|
5472
5467
|
{
|
5473
5468
|
fillRule: "evenodd",
|
@@ -5476,7 +5471,7 @@ var JumpForwardIcon = (props) => /* @__PURE__ */ React50.createElement(Box, { as
|
|
5476
5471
|
fill: "currentColor"
|
5477
5472
|
}
|
5478
5473
|
));
|
5479
|
-
var JumpBackwardIcon = (props) => /* @__PURE__ */
|
5474
|
+
var JumpBackwardIcon = (props) => /* @__PURE__ */ React69.createElement(Box, { as: "svg", ...props, viewBox: "0 0 32 30", fill: "none" }, /* @__PURE__ */ React69.createElement(
|
5480
5475
|
"path",
|
5481
5476
|
{
|
5482
5477
|
fillRule: "evenodd",
|
@@ -5484,7 +5479,7 @@ var JumpBackwardIcon = (props) => /* @__PURE__ */ React50.createElement(Box, { a
|
|
5484
5479
|
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",
|
5485
5480
|
fill: "currentColor"
|
5486
5481
|
}
|
5487
|
-
), /* @__PURE__ */
|
5482
|
+
), /* @__PURE__ */ React69.createElement(
|
5488
5483
|
"path",
|
5489
5484
|
{
|
5490
5485
|
fillRule: "evenodd",
|
@@ -5493,7 +5488,7 @@ var JumpBackwardIcon = (props) => /* @__PURE__ */ React50.createElement(Box, { a
|
|
5493
5488
|
fill: "currentColor"
|
5494
5489
|
}
|
5495
5490
|
));
|
5496
|
-
var PlayIcon = (props) => /* @__PURE__ */
|
5491
|
+
var PlayIcon = (props) => /* @__PURE__ */ React69.createElement(Box, { as: "svg", ...props, fill: "none", viewBox: "0 0 60 60" }, /* @__PURE__ */ React69.createElement(
|
5497
5492
|
"path",
|
5498
5493
|
{
|
5499
5494
|
fillRule: "evenodd",
|
@@ -5502,7 +5497,7 @@ var PlayIcon = (props) => /* @__PURE__ */ React50.createElement(Box, { as: "svg"
|
|
5502
5497
|
fill: "currentColor"
|
5503
5498
|
}
|
5504
5499
|
));
|
5505
|
-
var PauseIcon = (props) => /* @__PURE__ */
|
5500
|
+
var PauseIcon = (props) => /* @__PURE__ */ React69.createElement(Box, { as: "svg", ...props, viewBox: "0 0 60 60", fill: "none" }, /* @__PURE__ */ React69.createElement(
|
5506
5501
|
"path",
|
5507
5502
|
{
|
5508
5503
|
fillRule: "evenodd",
|
@@ -5511,7 +5506,7 @@ var PauseIcon = (props) => /* @__PURE__ */ React50.createElement(Box, { as: "svg
|
|
5511
5506
|
fill: "currentColor"
|
5512
5507
|
}
|
5513
5508
|
));
|
5514
|
-
var SkipNextIcon = (props) => /* @__PURE__ */
|
5509
|
+
var SkipNextIcon = (props) => /* @__PURE__ */ React69.createElement(Box, { as: "svg", ...props, viewBox: "0 0 30 30", fill: "none" }, /* @__PURE__ */ React69.createElement(
|
5515
5510
|
"path",
|
5516
5511
|
{
|
5517
5512
|
fillRule: "evenodd",
|
@@ -5520,7 +5515,7 @@ var SkipNextIcon = (props) => /* @__PURE__ */ React50.createElement(Box, { as: "
|
|
5520
5515
|
fill: "currentColor"
|
5521
5516
|
}
|
5522
5517
|
));
|
5523
|
-
var SkipPreviousIcon = (props) => /* @__PURE__ */
|
5518
|
+
var SkipPreviousIcon = (props) => /* @__PURE__ */ React69.createElement(Box, { as: "svg", ...props, viewBox: "0 0 30 30", fill: "none" }, /* @__PURE__ */ React69.createElement(
|
5524
5519
|
"path",
|
5525
5520
|
{
|
5526
5521
|
fillRule: "evenodd",
|
@@ -5542,7 +5537,7 @@ var JumpButton = ({
|
|
5542
5537
|
variant: "jumpSkip",
|
5543
5538
|
size: size2
|
5544
5539
|
});
|
5545
|
-
return /* @__PURE__ */
|
5540
|
+
return /* @__PURE__ */ React69__default.createElement(
|
5546
5541
|
Center,
|
5547
5542
|
{
|
5548
5543
|
as: "button",
|
@@ -5551,7 +5546,7 @@ var JumpButton = ({
|
|
5551
5546
|
disabled: isDisabled,
|
5552
5547
|
...props
|
5553
5548
|
},
|
5554
|
-
direction2 === "forward" ? /* @__PURE__ */
|
5549
|
+
direction2 === "forward" ? /* @__PURE__ */ React69__default.createElement(JumpForwardIcon, { sx: styles3.icon }) : /* @__PURE__ */ React69__default.createElement(JumpBackwardIcon, { sx: styles3.icon })
|
5555
5550
|
);
|
5556
5551
|
};
|
5557
5552
|
var texts17 = createTexts({
|
@@ -5579,7 +5574,7 @@ var PlayPauseButton = ({
|
|
5579
5574
|
variant: "play",
|
5580
5575
|
size: size2
|
5581
5576
|
});
|
5582
|
-
return /* @__PURE__ */
|
5577
|
+
return /* @__PURE__ */ React69__default.createElement(
|
5583
5578
|
Center,
|
5584
5579
|
{
|
5585
5580
|
as: "button",
|
@@ -5588,7 +5583,7 @@ var PlayPauseButton = ({
|
|
5588
5583
|
disabled: isDisabled,
|
5589
5584
|
...props
|
5590
5585
|
},
|
5591
|
-
isPlaying ? /* @__PURE__ */
|
5586
|
+
isPlaying ? /* @__PURE__ */ React69__default.createElement(PauseIcon, { sx: styles3.icon }) : /* @__PURE__ */ React69__default.createElement(PlayIcon, { sx: styles3.icon })
|
5592
5587
|
);
|
5593
5588
|
};
|
5594
5589
|
var texts18 = createTexts({
|
@@ -5616,7 +5611,7 @@ var SkipButton = ({
|
|
5616
5611
|
variant: "jumpSkip",
|
5617
5612
|
size: size2
|
5618
5613
|
});
|
5619
|
-
return /* @__PURE__ */
|
5614
|
+
return /* @__PURE__ */ React69__default.createElement(
|
5620
5615
|
Center,
|
5621
5616
|
{
|
5622
5617
|
as: "button",
|
@@ -5625,7 +5620,7 @@ var SkipButton = ({
|
|
5625
5620
|
disabled: isDisabled,
|
5626
5621
|
...props
|
5627
5622
|
},
|
5628
|
-
direction2 === "forward" ? /* @__PURE__ */
|
5623
|
+
direction2 === "forward" ? /* @__PURE__ */ React69__default.createElement(SkipNextIcon, { sx: styles3.icon }) : /* @__PURE__ */ React69__default.createElement(SkipPreviousIcon, { sx: styles3.icon })
|
5629
5624
|
);
|
5630
5625
|
};
|
5631
5626
|
var texts19 = createTexts({
|
@@ -5648,13 +5643,13 @@ var ModalHeader = forwardRef(
|
|
5648
5643
|
fontSize: size2 === "lg" ? ["mobile.lg", "desktop.lg"] : ["mobile.md", "desktop.md"],
|
5649
5644
|
textAlign: size2 === "lg" ? "center" : "left"
|
5650
5645
|
};
|
5651
|
-
return /* @__PURE__ */
|
5646
|
+
return /* @__PURE__ */ React69__default.createElement(ModalHeader$1, { ...props, ref, ...styles3 });
|
5652
5647
|
}
|
5653
5648
|
);
|
5654
5649
|
|
5655
5650
|
// src/modal/Drawer.tsx
|
5656
5651
|
var Drawer = (props) => {
|
5657
|
-
return /* @__PURE__ */
|
5652
|
+
return /* @__PURE__ */ React69__default.createElement(DrawerProvider, { placement: props.placement }, /* @__PURE__ */ React69__default.createElement(Drawer$1, { ...props }));
|
5658
5653
|
};
|
5659
5654
|
var DrawerContent = forwardRef(
|
5660
5655
|
({ children, ...props }, ref) => {
|
@@ -5671,7 +5666,7 @@ var DrawerContent = forwardRef(
|
|
5671
5666
|
});
|
5672
5667
|
const isTopOrBottom = placement === "top" || placement === "bottom";
|
5673
5668
|
const widthConstraits = isTopOrBottom ? { width: ["100%", "37.5rem"], mx: "auto" } : {};
|
5674
|
-
return /* @__PURE__ */
|
5669
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { ...handlers }, /* @__PURE__ */ React69__default.createElement(
|
5675
5670
|
DrawerContent$1,
|
5676
5671
|
{
|
5677
5672
|
...widthConstraits,
|
@@ -5680,13 +5675,13 @@ var DrawerContent = forwardRef(
|
|
5680
5675
|
...props,
|
5681
5676
|
ref
|
5682
5677
|
},
|
5683
|
-
/* @__PURE__ */
|
5678
|
+
/* @__PURE__ */ React69__default.createElement(Box, { position: "relative" }, /* @__PURE__ */ React69__default.createElement(Box, { maxHeight: "100vh", maxWidth: "100vw", overflow: "auto" }, isTopOrBottom && /* @__PURE__ */ React69__default.createElement(Notch, null), /* @__PURE__ */ React69__default.createElement(Box, null, children)))
|
5684
5679
|
));
|
5685
5680
|
}
|
5686
5681
|
);
|
5687
5682
|
var Notch = forwardRef((props, ref) => {
|
5688
5683
|
const placement = useDrawerContext();
|
5689
|
-
return /* @__PURE__ */
|
5684
|
+
return /* @__PURE__ */ React69__default.createElement(
|
5690
5685
|
Box,
|
5691
5686
|
{
|
5692
5687
|
position: "absolute",
|
@@ -5698,14 +5693,14 @@ var Notch = forwardRef((props, ref) => {
|
|
5698
5693
|
...props,
|
5699
5694
|
ref
|
5700
5695
|
},
|
5701
|
-
/* @__PURE__ */
|
5696
|
+
/* @__PURE__ */ React69__default.createElement(
|
5702
5697
|
Center,
|
5703
5698
|
{
|
5704
5699
|
background: `linear-gradient(to ${placement === "bottom" ? "bottom" : "top"}, white 0%, white 60%, transparent)`,
|
5705
5700
|
padding: 2,
|
5706
5701
|
borderRadius: "md"
|
5707
5702
|
},
|
5708
|
-
/* @__PURE__ */
|
5703
|
+
/* @__PURE__ */ React69__default.createElement(
|
5709
5704
|
Box,
|
5710
5705
|
{
|
5711
5706
|
width: "2.265rem",
|
@@ -5717,10 +5712,10 @@ var Notch = forwardRef((props, ref) => {
|
|
5717
5712
|
)
|
5718
5713
|
);
|
5719
5714
|
});
|
5720
|
-
var DrawerContext =
|
5721
|
-
var DrawerProvider = (props) => /* @__PURE__ */
|
5715
|
+
var DrawerContext = React69__default.createContext(void 0);
|
5716
|
+
var DrawerProvider = (props) => /* @__PURE__ */ React69__default.createElement(DrawerContext.Provider, { value: props.placement }, props.children);
|
5722
5717
|
var useDrawerContext = () => {
|
5723
|
-
return
|
5718
|
+
return React69__default.useContext(DrawerContext);
|
5724
5719
|
};
|
5725
5720
|
var SimpleDrawer = ({
|
5726
5721
|
placement,
|
@@ -5728,19 +5723,19 @@ var SimpleDrawer = ({
|
|
5728
5723
|
title,
|
5729
5724
|
...props
|
5730
5725
|
}) => {
|
5731
|
-
return /* @__PURE__ */
|
5726
|
+
return /* @__PURE__ */ React69__default.createElement(Drawer, { placement, ...props }, /* @__PURE__ */ React69__default.createElement(DrawerOverlay, null), /* @__PURE__ */ React69__default.createElement(DrawerContent, null, /* @__PURE__ */ React69__default.createElement(DrawerCloseButton, null), title && /* @__PURE__ */ React69__default.createElement(ModalHeader, null, title), /* @__PURE__ */ React69__default.createElement(DrawerBody, null, children)));
|
5732
5727
|
};
|
5733
5728
|
var PopoverWizardBody = ({ children }) => {
|
5734
|
-
const [currentStep, setCurrentStep] =
|
5735
|
-
const totalSteps =
|
5729
|
+
const [currentStep, setCurrentStep] = React69.useState(1);
|
5730
|
+
const totalSteps = React69.Children.count(children);
|
5736
5731
|
const { isOpen } = usePopoverContext();
|
5737
|
-
|
5732
|
+
React69.useEffect(() => {
|
5738
5733
|
if (!isOpen && currentStep > 1) {
|
5739
5734
|
const id = setTimeout(() => setCurrentStep(1), 500);
|
5740
5735
|
return () => clearTimeout(id);
|
5741
5736
|
}
|
5742
5737
|
}, [isOpen, currentStep]);
|
5743
|
-
return /* @__PURE__ */
|
5738
|
+
return /* @__PURE__ */ React69.createElement(PopoverBody, null, /* @__PURE__ */ React69.createElement(Stack, { spacing: 1.5 }, /* @__PURE__ */ React69.createElement(Box, null, React69.Children.toArray(children)[currentStep - 1]), /* @__PURE__ */ React69.createElement(Flex, { gap: 3 }, /* @__PURE__ */ React69.createElement(StepIndicator, { totalSteps, currentStep }), /* @__PURE__ */ React69.createElement(
|
5744
5739
|
NextStepButton,
|
5745
5740
|
{
|
5746
5741
|
isLastStep: totalSteps === currentStep,
|
@@ -5750,7 +5745,7 @@ var PopoverWizardBody = ({ children }) => {
|
|
5750
5745
|
};
|
5751
5746
|
var StepIndicator = ({ totalSteps, currentStep }) => {
|
5752
5747
|
const steps = createRange(1, totalSteps);
|
5753
|
-
return /* @__PURE__ */
|
5748
|
+
return /* @__PURE__ */ React69.createElement(Flex, { gap: 1, alignItems: "center" }, steps.map((step) => /* @__PURE__ */ React69.createElement(
|
5754
5749
|
Box,
|
5755
5750
|
{
|
5756
5751
|
key: step,
|
@@ -5769,13 +5764,13 @@ var createRange = (start, end) => {
|
|
5769
5764
|
var NextStepButton = ({ isLastStep, onNext }) => {
|
5770
5765
|
const { onClose } = usePopoverContext();
|
5771
5766
|
const { t: t2 } = useTranslation();
|
5772
|
-
return /* @__PURE__ */
|
5767
|
+
return /* @__PURE__ */ React69.createElement(
|
5773
5768
|
Button,
|
5774
5769
|
{
|
5775
5770
|
variant: "additional",
|
5776
5771
|
size: "sm",
|
5777
5772
|
color: "white",
|
5778
|
-
leftIcon: isLastStep ? void 0 : /* @__PURE__ */
|
5773
|
+
leftIcon: isLastStep ? void 0 : /* @__PURE__ */ React69.createElement(ArrowRightFill18Icon, null),
|
5779
5774
|
onClick: isLastStep ? onClose : onNext
|
5780
5775
|
},
|
5781
5776
|
t2(isLastStep ? texts20.finish : texts20.nextStep)
|
@@ -5807,7 +5802,7 @@ var SimplePopover = ({
|
|
5807
5802
|
borderRadius,
|
5808
5803
|
...props
|
5809
5804
|
}) => {
|
5810
|
-
return /* @__PURE__ */
|
5805
|
+
return /* @__PURE__ */ React69__default.createElement(DarkMode, null, /* @__PURE__ */ React69__default.createElement(
|
5811
5806
|
Popover,
|
5812
5807
|
{
|
5813
5808
|
onClose,
|
@@ -5819,8 +5814,8 @@ var SimplePopover = ({
|
|
5819
5814
|
arrowShadowColor: "none",
|
5820
5815
|
...props
|
5821
5816
|
},
|
5822
|
-
triggerElement && /* @__PURE__ */
|
5823
|
-
/* @__PURE__ */
|
5817
|
+
triggerElement && /* @__PURE__ */ React69__default.createElement(PopoverTrigger, null, triggerElement),
|
5818
|
+
/* @__PURE__ */ React69__default.createElement(PopoverContent, { borderRadius }, /* @__PURE__ */ React69__default.createElement(PopoverArrow, null), withCloseButton && /* @__PURE__ */ React69__default.createElement(PopoverCloseButton, null), /* @__PURE__ */ React69__default.createElement(PopoverBody, null, children))
|
5824
5819
|
));
|
5825
5820
|
};
|
5826
5821
|
var WizardPopover = ({
|
@@ -5828,7 +5823,7 @@ var WizardPopover = ({
|
|
5828
5823
|
triggerElement,
|
5829
5824
|
withCloseButton = false
|
5830
5825
|
}) => {
|
5831
|
-
return /* @__PURE__ */
|
5826
|
+
return /* @__PURE__ */ React69.createElement(DarkMode, null, /* @__PURE__ */ React69.createElement(Popover, { size: "lg" }, /* @__PURE__ */ React69.createElement(PopoverTrigger, null, triggerElement), /* @__PURE__ */ React69.createElement(PopoverContent, null, /* @__PURE__ */ React69.createElement(PopoverArrow, null), withCloseButton && /* @__PURE__ */ React69.createElement(PopoverCloseButton, null), /* @__PURE__ */ React69.createElement(PopoverWizardBody, null, children))));
|
5832
5827
|
};
|
5833
5828
|
var SporProvider = ({
|
5834
5829
|
theme: theme3 = theme,
|
@@ -5836,9 +5831,9 @@ var SporProvider = ({
|
|
5836
5831
|
children,
|
5837
5832
|
...props
|
5838
5833
|
}) => {
|
5839
|
-
return /* @__PURE__ */
|
5834
|
+
return /* @__PURE__ */ React69__default.createElement(LanguageProvider, { language }, /* @__PURE__ */ React69__default.createElement(ChakraProvider, { theme: theme3, ...props }, /* @__PURE__ */ React69__default.createElement(Global, { styles: fontFaces }), children));
|
5840
5835
|
};
|
5841
|
-
var StepperContext =
|
5836
|
+
var StepperContext = React69__default.createContext(null);
|
5842
5837
|
var StepperProvider = ({
|
5843
5838
|
activeStep,
|
5844
5839
|
children,
|
@@ -5846,7 +5841,7 @@ var StepperProvider = ({
|
|
5846
5841
|
colorScheme,
|
5847
5842
|
numberOfSteps
|
5848
5843
|
}) => {
|
5849
|
-
return /* @__PURE__ */
|
5844
|
+
return /* @__PURE__ */ React69__default.createElement(
|
5850
5845
|
StepperContext.Provider,
|
5851
5846
|
{
|
5852
5847
|
value: { activeStep, onClick, colorScheme, numberOfSteps }
|
@@ -5855,7 +5850,7 @@ var StepperProvider = ({
|
|
5855
5850
|
);
|
5856
5851
|
};
|
5857
5852
|
var useStepper = () => {
|
5858
|
-
const context =
|
5853
|
+
const context = React69__default.useContext(StepperContext);
|
5859
5854
|
if (!context) {
|
5860
5855
|
throw new Error(
|
5861
5856
|
"useStepper must be used within a StepperProvider. Most likely, you forgot to wrap your StepperStep in a Stepper component"
|
@@ -5877,7 +5872,7 @@ var Stepper = ({
|
|
5877
5872
|
const numberOfSteps = steps.length;
|
5878
5873
|
const activeStep = Number(activeStepAsStringOrNumber);
|
5879
5874
|
const { t: t2 } = useTranslation();
|
5880
|
-
return /* @__PURE__ */
|
5875
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { __css: style.root }, /* @__PURE__ */ React69__default.createElement(
|
5881
5876
|
StepperProvider,
|
5882
5877
|
{
|
5883
5878
|
onClick,
|
@@ -5885,24 +5880,24 @@ var Stepper = ({
|
|
5885
5880
|
colorScheme,
|
5886
5881
|
numberOfSteps
|
5887
5882
|
},
|
5888
|
-
/* @__PURE__ */
|
5883
|
+
/* @__PURE__ */ React69__default.createElement(Box, { __css: style.container }, /* @__PURE__ */ React69__default.createElement(Box, { __css: style.innerContainer }, /* @__PURE__ */ React69__default.createElement(HStack, null, activeStep > 1 && /* @__PURE__ */ React69__default.createElement(
|
5889
5884
|
IconButton,
|
5890
5885
|
{
|
5891
5886
|
"aria-label": t2(texts21.back),
|
5892
|
-
icon: /* @__PURE__ */
|
5887
|
+
icon: /* @__PURE__ */ React69__default.createElement(DropdownLeftFill24Icon, null),
|
5893
5888
|
variant: "ghost",
|
5894
5889
|
size: "sm",
|
5895
5890
|
onClick: () => onClick(activeStep - 1),
|
5896
5891
|
__css: style.backButton
|
5897
5892
|
}
|
5898
|
-
), /* @__PURE__ */
|
5893
|
+
), /* @__PURE__ */ React69__default.createElement(
|
5899
5894
|
SimplePopover,
|
5900
5895
|
{
|
5901
|
-
triggerElement: /* @__PURE__ */
|
5896
|
+
triggerElement: /* @__PURE__ */ React69__default.createElement(Box, { as: "button", __css: style.stepCounter }, t2(texts21.stepsOf(activeStep, numberOfSteps))),
|
5902
5897
|
borderRadius: "xs"
|
5903
5898
|
},
|
5904
|
-
steps.map((step, index) => /* @__PURE__ */
|
5905
|
-
)), title && /* @__PURE__ */
|
5899
|
+
steps.map((step, index) => /* @__PURE__ */ React69__default.createElement(StepperStep, { key: step, stepNumber: index + 1 }, step))
|
5900
|
+
)), title && /* @__PURE__ */ React69__default.createElement(Box, { as: "h3", __css: style.title }, title)), /* @__PURE__ */ React69__default.createElement(Flex, { justifyContent: "center", display: ["none", "flex"] }, steps.map((step, index) => /* @__PURE__ */ React69__default.createElement(StepperStep, { key: index, stepNumber: index + 1 }, step))))
|
5906
5901
|
));
|
5907
5902
|
};
|
5908
5903
|
var texts21 = createTexts({
|
@@ -5926,7 +5921,7 @@ var StepperStep = ({ children, stepNumber }) => {
|
|
5926
5921
|
variant,
|
5927
5922
|
colorScheme
|
5928
5923
|
});
|
5929
|
-
return /* @__PURE__ */
|
5924
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { __css: style.stepContainer }, stepNumber > 1 && /* @__PURE__ */ React69__default.createElement(DropdownRightFill18Icon, { marginX: 5, display: ["none", "block"] }), /* @__PURE__ */ React69__default.createElement(
|
5930
5925
|
Flex,
|
5931
5926
|
{
|
5932
5927
|
__css: style.stepButton,
|
@@ -5936,8 +5931,8 @@ var StepperStep = ({ children, stepNumber }) => {
|
|
5936
5931
|
disabled: variant === "disabled" || variant === "active",
|
5937
5932
|
onClick: () => onClick(stepNumber)
|
5938
5933
|
},
|
5939
|
-
/* @__PURE__ */
|
5940
|
-
/* @__PURE__ */
|
5934
|
+
/* @__PURE__ */ React69__default.createElement(Box, { __css: style.stepNumber }, stepNumber),
|
5935
|
+
/* @__PURE__ */ React69__default.createElement(Box, { __css: style.stepTitle }, children)
|
5941
5936
|
));
|
5942
5937
|
};
|
5943
5938
|
var getVariant = (stepNumber, activeStep) => {
|
@@ -5950,11 +5945,11 @@ var getVariant = (stepNumber, activeStep) => {
|
|
5950
5945
|
return "disabled";
|
5951
5946
|
};
|
5952
5947
|
var Tabs = forwardRef((props, ref) => {
|
5953
|
-
return /* @__PURE__ */
|
5948
|
+
return /* @__PURE__ */ React69.createElement(Tabs$1, { ...props, ref });
|
5954
5949
|
});
|
5955
5950
|
var Table = forwardRef((props, ref) => {
|
5956
5951
|
const { variant, size: size2, colorScheme, children, ...rest } = props;
|
5957
|
-
return /* @__PURE__ */
|
5952
|
+
return /* @__PURE__ */ React69__default.createElement(Box, { ...rest, ...getStyleProps(props) }, /* @__PURE__ */ React69__default.createElement(Box, { overflowX: "auto" }, /* @__PURE__ */ React69__default.createElement(
|
5958
5953
|
Table$1,
|
5959
5954
|
{
|
5960
5955
|
variant,
|
@@ -11413,7 +11408,9 @@ var config6 = defineStyleConfig$1({
|
|
11413
11408
|
fontWeight: "bold",
|
11414
11409
|
transitionProperty: "common",
|
11415
11410
|
transitionDuration: "normal",
|
11416
|
-
|
11411
|
+
textWrap: "wrap",
|
11412
|
+
paddingX: 3,
|
11413
|
+
paddingY: 1,
|
11417
11414
|
_focus: {
|
11418
11415
|
boxShadow: 0,
|
11419
11416
|
outline: 0
|
@@ -11662,7 +11659,7 @@ var config6 = defineStyleConfig$1({
|
|
11662
11659
|
minHeight: 5,
|
11663
11660
|
minWidth: 5,
|
11664
11661
|
fontSize: "16px",
|
11665
|
-
|
11662
|
+
paddingX: 2
|
11666
11663
|
}
|
11667
11664
|
},
|
11668
11665
|
defaultProps: {
|
@@ -11689,7 +11686,7 @@ var config7 = defineStyleConfig$1({
|
|
11689
11686
|
...focusVisible({
|
11690
11687
|
focus: {
|
11691
11688
|
boxShadow: getBoxShadowString({
|
11692
|
-
borderColor: "greenHaze",
|
11689
|
+
borderColor: mode("greenHaze", "azure")(props),
|
11693
11690
|
borderWidth: 2,
|
11694
11691
|
isInset: false
|
11695
11692
|
}),
|
@@ -11714,12 +11711,19 @@ var config7 = defineStyleConfig$1({
|
|
11714
11711
|
})
|
11715
11712
|
});
|
11716
11713
|
var card_default = config7;
|
11717
|
-
|
11714
|
+
var getColorSchemeBaseProps = (props) => {
|
11718
11715
|
var _a6;
|
11716
|
+
const { colorScheme, size: size2 } = props;
|
11717
|
+
const baseShadow = size2 === "lg" ? "md" : "sm";
|
11719
11718
|
switch (colorScheme) {
|
11720
11719
|
case "white":
|
11721
11720
|
return {
|
11722
|
-
backgroundColor: "white"
|
11721
|
+
backgroundColor: mode("white", "whiteAlpha.100")(props),
|
11722
|
+
boxShadow: getBoxShadowString({
|
11723
|
+
baseShadow,
|
11724
|
+
borderColor: "silver",
|
11725
|
+
isInset: false
|
11726
|
+
})
|
11723
11727
|
};
|
11724
11728
|
case "grey":
|
11725
11729
|
return {
|
@@ -11735,7 +11739,7 @@ function getColorSchemeBaseProps({ colorScheme }) {
|
|
11735
11739
|
backgroundColor: ((_a6 = colors[colorScheme]) == null ? void 0 : _a6[100]) ?? "platinum"
|
11736
11740
|
};
|
11737
11741
|
}
|
11738
|
-
}
|
11742
|
+
};
|
11739
11743
|
function getColorSchemeClickableProps({ colorScheme, size: size2 }) {
|
11740
11744
|
var _a6, _b5;
|
11741
11745
|
const baseShadow = size2 === "lg" ? "md" : "sm";
|
@@ -11767,12 +11771,14 @@ function getColorSchemeClickableProps({ colorScheme, size: size2 }) {
|
|
11767
11771
|
};
|
11768
11772
|
}
|
11769
11773
|
}
|
11770
|
-
|
11774
|
+
var getColorSchemeHoverProps = (props) => {
|
11771
11775
|
var _a6, _b5;
|
11776
|
+
const { colorScheme, size: size2 } = props;
|
11772
11777
|
const baseShadow = size2 === "lg" ? "lg" : "md";
|
11773
11778
|
switch (colorScheme) {
|
11774
11779
|
case "white":
|
11775
11780
|
return {
|
11781
|
+
backgroundColor: mode("white", "whiteAlpha.200")(props),
|
11776
11782
|
boxShadow: getBoxShadowString({
|
11777
11783
|
baseShadow,
|
11778
11784
|
borderColor: colors.steel,
|
@@ -11797,14 +11803,15 @@ function getColorSchemeHoverProps({ colorScheme, size: size2 }) {
|
|
11797
11803
|
})
|
11798
11804
|
};
|
11799
11805
|
}
|
11800
|
-
}
|
11801
|
-
|
11806
|
+
};
|
11807
|
+
var getColorSchemeActiveProps = (props) => {
|
11802
11808
|
var _a6, _b5;
|
11809
|
+
const { colorScheme, size: size2 } = props;
|
11803
11810
|
const baseShadow = size2 === "lg" ? "sm" : "none";
|
11804
11811
|
switch (colorScheme) {
|
11805
11812
|
case "white":
|
11806
11813
|
return {
|
11807
|
-
backgroundColor: "mint",
|
11814
|
+
backgroundColor: mode("mint", "teal")(props),
|
11808
11815
|
boxShadow: getBoxShadowString({
|
11809
11816
|
baseShadow,
|
11810
11817
|
borderColor: colors.silver,
|
@@ -11830,7 +11837,7 @@ function getColorSchemeActiveProps({ colorScheme, size: size2 }) {
|
|
11830
11837
|
})
|
11831
11838
|
};
|
11832
11839
|
}
|
11833
|
-
}
|
11840
|
+
};
|
11834
11841
|
var parts2 = anatomy("card-select").parts("trigger", "card");
|
11835
11842
|
var helpers3 = createMultiStyleConfigHelpers(parts2.keys);
|
11836
11843
|
var config8 = helpers3.defineMultiStyleConfig({
|
@@ -12143,34 +12150,35 @@ var config10 = helpers5.defineMultiStyleConfig({
|
|
12143
12150
|
var choice_chip_default = config10;
|
12144
12151
|
var $size6 = cssVar$1("close-button-size");
|
12145
12152
|
var config11 = defineStyleConfig$1({
|
12146
|
-
baseStyle: {
|
12153
|
+
baseStyle: (props) => ({
|
12147
12154
|
w: [$size6.reference],
|
12148
12155
|
h: [$size6.reference],
|
12149
12156
|
transitionProperty: "common",
|
12150
12157
|
transitionDuration: "normal",
|
12151
|
-
borderRadius: "
|
12158
|
+
borderRadius: "md",
|
12152
12159
|
backgroundColor: "transparent",
|
12153
|
-
color: "darkGrey",
|
12160
|
+
color: mode("darkGrey", "white")(props),
|
12154
12161
|
fontWeight: "normal",
|
12155
12162
|
...focusVisible({
|
12156
12163
|
focus: {
|
12157
12164
|
outline: "none",
|
12158
|
-
boxShadow: getBoxShadowString({ borderColor: "greenHaze" })
|
12165
|
+
boxShadow: getBoxShadowString({ borderColor: mode("greenHaze", "azure")(props) }),
|
12166
|
+
outlineOffset: "2px"
|
12159
12167
|
},
|
12160
12168
|
notFocus: {
|
12161
12169
|
boxShadow: "none"
|
12162
12170
|
}
|
12163
12171
|
}),
|
12164
12172
|
_hover: {
|
12165
|
-
backgroundColor: "seaMist",
|
12173
|
+
backgroundColor: mode("seaMist", "pine")(props),
|
12166
12174
|
_disabled: {
|
12167
12175
|
color: "dimGrey"
|
12168
12176
|
}
|
12169
12177
|
},
|
12170
12178
|
_active: {
|
12171
|
-
backgroundColor: "mint"
|
12179
|
+
backgroundColor: mode("mint", "whiteAlpha.200")(props)
|
12172
12180
|
}
|
12173
|
-
},
|
12181
|
+
}),
|
12174
12182
|
sizes: {
|
12175
12183
|
lg: {
|
12176
12184
|
[$size6.variable]: "40px",
|
@@ -12224,6 +12232,7 @@ var config13 = helpers6.defineMultiStyleConfig({
|
|
12224
12232
|
}),
|
12225
12233
|
transitionProperty: "box-shadow",
|
12226
12234
|
transitionDuration: "fast",
|
12235
|
+
borderRadius: "sm",
|
12227
12236
|
display: "flex",
|
12228
12237
|
flex: 1,
|
12229
12238
|
paddingY: 0.5,
|
@@ -12275,28 +12284,25 @@ var config13 = helpers6.defineMultiStyleConfig({
|
|
12275
12284
|
},
|
12276
12285
|
calendarTriggerButton: {
|
12277
12286
|
backgroundColor: mode("white", "night")(props),
|
12278
|
-
boxShadow:
|
12279
|
-
borderColor: mode("blackAlpha.400", "whiteAlpha.400")(props)
|
12280
|
-
})}, inset 1px 0 0 1px ${mode("white", colors.night)(props)}`,
|
12281
|
-
// to make the shadow colors not multiply
|
12287
|
+
boxShadow: "none",
|
12282
12288
|
width: 8,
|
12283
12289
|
display: "flex",
|
12284
12290
|
alignItems: "center",
|
12285
12291
|
justifyContent: "center",
|
12286
|
-
|
12292
|
+
borderLeftRadius: "sm",
|
12287
12293
|
transitionProperty: "box-shadow, background-color",
|
12288
12294
|
transitionSpeed: "fast",
|
12289
12295
|
position: "relative",
|
12290
|
-
|
12291
|
-
|
12296
|
+
paddingTop: 1,
|
12297
|
+
paddingBottom: 1,
|
12298
|
+
borderRadius: "sm",
|
12299
|
+
right: "9px",
|
12292
12300
|
_hover: {
|
12293
|
-
boxShadow:
|
12294
|
-
|
12295
|
-
borderWidth: 2
|
12296
|
-
})}, inset 2px 0 0 2px ${mode("white", colors.night)(props)}`
|
12301
|
+
boxShadow: "none",
|
12302
|
+
backgroundColor: mode("seaMist", "pine")(props)
|
12297
12303
|
},
|
12298
12304
|
_active: {
|
12299
|
-
backgroundColor: mode("mint", "
|
12305
|
+
backgroundColor: mode("mint", "whiteAlpha.200")(props)
|
12300
12306
|
},
|
12301
12307
|
...focusVisible({
|
12302
12308
|
focus: {
|
@@ -12325,13 +12331,17 @@ var config13 = helpers6.defineMultiStyleConfig({
|
|
12325
12331
|
},
|
12326
12332
|
calendar: {
|
12327
12333
|
backgroundColor: mode("white", "night")(props),
|
12328
|
-
color: mode("darkGrey", "white")(props)
|
12334
|
+
color: mode("darkGrey", "white")(props),
|
12335
|
+
boxShadow: getBoxShadowString({
|
12336
|
+
borderWidth: 2,
|
12337
|
+
borderColor: mode("blackAlpha.200", "whiteAlpha.200")(props)
|
12338
|
+
})
|
12329
12339
|
},
|
12330
12340
|
weekdays: {
|
12331
12341
|
color: mode("darkGrey", "white")(props)
|
12332
12342
|
},
|
12333
12343
|
weekend: {
|
12334
|
-
color: mode("
|
12344
|
+
color: mode("darkTeal", "seaMist")(props)
|
12335
12345
|
},
|
12336
12346
|
dateCell: {
|
12337
12347
|
backgroundColor: mode("white", "night")(props),
|
@@ -12390,7 +12400,7 @@ var config13 = helpers6.defineMultiStyleConfig({
|
|
12390
12400
|
"&[data-today]": {
|
12391
12401
|
boxShadow: getBoxShadowString({
|
12392
12402
|
borderWidth: 1,
|
12393
|
-
borderColor: mode("
|
12403
|
+
borderColor: mode("blackAlpha.400", "whiteAlpha.400")(props)
|
12394
12404
|
}),
|
12395
12405
|
_focus: {
|
12396
12406
|
outline: "none",
|
@@ -12407,16 +12417,64 @@ var config13 = helpers6.defineMultiStyleConfig({
|
|
12407
12417
|
}
|
12408
12418
|
}),
|
12409
12419
|
variants: {
|
12410
|
-
|
12411
|
-
|
12412
|
-
|
12420
|
+
base: (props) => ({
|
12421
|
+
calendar: {
|
12422
|
+
backgroundColor: mode("white", "night")(props),
|
12423
|
+
color: mode("darkGrey", "white")(props),
|
12424
|
+
boxShadow: getBoxShadowString({
|
12425
|
+
borderWidth: 2,
|
12426
|
+
borderColor: mode("blackAlpha.200", "whiteAlpha.200")(props)
|
12427
|
+
})
|
12428
|
+
},
|
12429
|
+
dateCell: {
|
12430
|
+
color: mode("darkGrey", "white")(props),
|
12431
|
+
_hover: {
|
12432
|
+
backgroundColor: mode("seaMist", "pine")(props)
|
12433
|
+
},
|
12434
|
+
"&[data-today]": {
|
12435
|
+
boxShadow: getBoxShadowString({
|
12436
|
+
borderWidth: 1,
|
12437
|
+
borderColor: mode("blackAlpha.400", "whiteAlpha.400")(props)
|
12438
|
+
})
|
12439
|
+
}
|
12413
12440
|
}
|
12414
|
-
},
|
12415
|
-
|
12416
|
-
|
12417
|
-
|
12441
|
+
}),
|
12442
|
+
floating: (props) => ({
|
12443
|
+
calendar: {
|
12444
|
+
backgroundColor: mode("white", "night")(props),
|
12445
|
+
color: mode("darkGrey", "white")(props),
|
12446
|
+
boxShadow: getBoxShadowString({
|
12447
|
+
borderColor: mode("grey.200", "whiteAlpha.400")(props),
|
12448
|
+
baseShadow: "sm"
|
12449
|
+
})
|
12450
|
+
},
|
12451
|
+
dateCell: {
|
12452
|
+
color: mode("darkGrey", "white")(props),
|
12453
|
+
_hover: {
|
12454
|
+
backgroundColor: mode("", "")(props)
|
12455
|
+
}
|
12418
12456
|
}
|
12419
|
-
}
|
12457
|
+
}),
|
12458
|
+
ghost: (props) => ({
|
12459
|
+
calendar: {
|
12460
|
+
backgroundColor: mode("white", "night")(props),
|
12461
|
+
color: mode("darkGrey", "white")(props),
|
12462
|
+
boxShadow: getBoxShadowString({
|
12463
|
+
borderWidth: 2,
|
12464
|
+
borderColor: mode("", "")(props)
|
12465
|
+
})
|
12466
|
+
},
|
12467
|
+
dateCell: {
|
12468
|
+
color: mode("darkGrey", "white")(props),
|
12469
|
+
_hover: {
|
12470
|
+
backgroundColor: mode("seaMist", "pine")(props)
|
12471
|
+
},
|
12472
|
+
_selected: {
|
12473
|
+
backgroundColor: mode("", "primaryGreen")(props),
|
12474
|
+
color: "darkGrey"
|
12475
|
+
}
|
12476
|
+
}
|
12477
|
+
})
|
12420
12478
|
}
|
12421
12479
|
});
|
12422
12480
|
var datepicker_default = config13;
|
@@ -12620,7 +12678,82 @@ var config15 = helpers8.defineMultiStyleConfig({
|
|
12620
12678
|
color: "darkTeal",
|
12621
12679
|
_active: { color: "darkTeal", backgroundColor: "lightGrey" }
|
12622
12680
|
}
|
12623
|
-
}
|
12681
|
+
},
|
12682
|
+
brand: (props) => ({
|
12683
|
+
container: {
|
12684
|
+
backgroundColor: mode("darkTeal", "mint")(props),
|
12685
|
+
color: mode("white", "darkTeal")(props),
|
12686
|
+
_active: { backgroundColor: mode("pine", "white")(props) },
|
12687
|
+
_hover: {
|
12688
|
+
backgroundColor: mode("night", "seaMist")(props)
|
12689
|
+
},
|
12690
|
+
...focusVisible({
|
12691
|
+
focus: {
|
12692
|
+
boxShadow: mode(
|
12693
|
+
`${props.theme.shadows.md}, inset 0 0 0 4px ${props.theme.colors.darkTeal}, inset 0 0 0 6px ${props.theme.colors.white}`,
|
12694
|
+
`${props.theme.shadows.md}, inset 0 0 0 4px ${props.theme.colors.mint}, inset 0 0 0 6px ${props.theme.colors.darkTeal}`
|
12695
|
+
)(props),
|
12696
|
+
outline: "none"
|
12697
|
+
},
|
12698
|
+
notFocus: {
|
12699
|
+
boxShadow: "md"
|
12700
|
+
}
|
12701
|
+
})
|
12702
|
+
}
|
12703
|
+
}),
|
12704
|
+
base: (props) => ({
|
12705
|
+
container: {
|
12706
|
+
backgroundColor: mode("white", "whiteAlpha.100")(props),
|
12707
|
+
color: mode("darkGrey", "white")(props),
|
12708
|
+
_active: {
|
12709
|
+
backgroundColor: mode("mint", "whiteAlpha.100")(props),
|
12710
|
+
color: mode("darkGrey", "white")(props)
|
12711
|
+
},
|
12712
|
+
_hover: {
|
12713
|
+
backgroundColor: mode("white", "transparent")(props),
|
12714
|
+
boxShadow: mode(`inset 0 0 0 2px ${props.theme.colors.darkGrey}`, `inset 0 0 0 2px ${props.theme.colors.white}`)(props),
|
12715
|
+
color: mode("darkGrey", "white")(props)
|
12716
|
+
},
|
12717
|
+
...focusVisible({
|
12718
|
+
focus: {
|
12719
|
+
boxShadow: mode(
|
12720
|
+
`${props.theme.shadows.md}, inset 0 0 0 4px ${props.theme.colors.white}, inset 0 0 0 6px ${props.theme.colors.darkGrey}`,
|
12721
|
+
`${props.theme.shadows.md}, inset 0 0 0 4px ${props.theme.colors.brightRed}, inset 0 0 0 6px ${props.theme.colors.white}`
|
12722
|
+
)(props),
|
12723
|
+
outline: "none"
|
12724
|
+
},
|
12725
|
+
notFocus: {
|
12726
|
+
boxShadow: "md"
|
12727
|
+
}
|
12728
|
+
})
|
12729
|
+
}
|
12730
|
+
}),
|
12731
|
+
accent: (props) => ({
|
12732
|
+
container: {
|
12733
|
+
backgroundColor: mode("mint", "pine")(props),
|
12734
|
+
color: mode("darkTeal", "white")(props),
|
12735
|
+
_active: {
|
12736
|
+
backgroundColor: mode("seaMist", "whiteAlpha.100")(props),
|
12737
|
+
color: mode("darkTeal", "white")(props)
|
12738
|
+
},
|
12739
|
+
_hover: {
|
12740
|
+
backgroundColor: mode("coralGreen", "whiteAlpha.200")(props),
|
12741
|
+
color: mode("darkTeal", "white")(props)
|
12742
|
+
},
|
12743
|
+
...focusVisible({
|
12744
|
+
focus: {
|
12745
|
+
boxShadow: mode(
|
12746
|
+
`${props.theme.shadows.md}, inset 0 0 0 4px ${props.theme.colors.mint}, inset 0 0 0 6px ${props.theme.colors.azure}`,
|
12747
|
+
`${props.theme.shadows.md}, inset 0 0 0 4px ${props.theme.colors.pine}, inset 0 0 0 6px ${props.theme.colors.azure}`
|
12748
|
+
)(props),
|
12749
|
+
outline: "none"
|
12750
|
+
},
|
12751
|
+
notFocus: {
|
12752
|
+
boxShadow: "md"
|
12753
|
+
}
|
12754
|
+
})
|
12755
|
+
}
|
12756
|
+
})
|
12624
12757
|
},
|
12625
12758
|
defaultProps: {
|
12626
12759
|
variant: "dark"
|
@@ -12906,9 +13039,9 @@ var config19 = helpers11.defineMultiStyleConfig({
|
|
12906
13039
|
backgroundColor: "linjetag.altTransportLight"
|
12907
13040
|
}
|
12908
13041
|
},
|
12909
|
-
walk: {
|
13042
|
+
walk: (props) => ({
|
12910
13043
|
container: {
|
12911
|
-
backgroundColor: "white",
|
13044
|
+
backgroundColor: mode("white", "transparent")(props),
|
12912
13045
|
_disabled: {
|
12913
13046
|
backgroundColor: "white"
|
12914
13047
|
}
|
@@ -12917,6 +13050,7 @@ var config19 = helpers11.defineMultiStyleConfig({
|
|
12917
13050
|
border: "none",
|
12918
13051
|
position: "relative",
|
12919
13052
|
left: -1,
|
13053
|
+
backgroundColor: mode("white", "transparent")(props),
|
12920
13054
|
"[aria-disabled=true] &": {
|
12921
13055
|
backgroundColor: "transparent",
|
12922
13056
|
color: "osloGrey"
|
@@ -12932,12 +13066,13 @@ var config19 = helpers11.defineMultiStyleConfig({
|
|
12932
13066
|
},
|
12933
13067
|
title: {
|
12934
13068
|
fontSize: "mobile.xs",
|
12935
|
-
fontWeight: "normal"
|
13069
|
+
fontWeight: "normal",
|
13070
|
+
color: mode("black", "white")(props)
|
12936
13071
|
},
|
12937
13072
|
description: {
|
12938
13073
|
display: "none"
|
12939
13074
|
}
|
12940
|
-
}
|
13075
|
+
})
|
12941
13076
|
},
|
12942
13077
|
sizes: {
|
12943
13078
|
sm: {
|
@@ -13044,6 +13179,9 @@ var config20 = helpers12.defineMultiStyleConfig({
|
|
13044
13179
|
iconContainer: {
|
13045
13180
|
...travel_tag_default.baseStyle(props).iconContainer,
|
13046
13181
|
padding: 1
|
13182
|
+
},
|
13183
|
+
textContainer: {
|
13184
|
+
color: mode("darkGrey", "white")(props)
|
13047
13185
|
}
|
13048
13186
|
}),
|
13049
13187
|
sizes: {
|
@@ -13069,6 +13207,17 @@ var config20 = helpers12.defineMultiStyleConfig({
|
|
13069
13207
|
},
|
13070
13208
|
defaultProps: {
|
13071
13209
|
size: "md"
|
13210
|
+
},
|
13211
|
+
variants: {
|
13212
|
+
"walk": (props) => ({
|
13213
|
+
iconContainer: {
|
13214
|
+
backgroundColor: mode("white", "transparent")(props),
|
13215
|
+
boxShadow: mode(
|
13216
|
+
`${props.theme.shadows.md}, inset 0 0 0 2px ${props.theme.colors.black[200]}`,
|
13217
|
+
`${props.theme.shadows.md}, inset 0 0 0 2px ${props.theme.colors.whiteAlpha[400]}`
|
13218
|
+
)(props)
|
13219
|
+
}
|
13220
|
+
})
|
13072
13221
|
}
|
13073
13222
|
});
|
13074
13223
|
var info_tag_default = config20;
|
@@ -13244,7 +13393,7 @@ var config22 = helpers14.defineMultiStyleConfig({
|
|
13244
13393
|
}
|
13245
13394
|
}
|
13246
13395
|
},
|
13247
|
-
walk: {
|
13396
|
+
walk: (props) => ({
|
13248
13397
|
iconContainer: {
|
13249
13398
|
backgroundColor: "white",
|
13250
13399
|
borderWidth: 1,
|
@@ -13252,12 +13401,12 @@ var config22 = helpers14.defineMultiStyleConfig({
|
|
13252
13401
|
borderColor: "blackAlpha.200"
|
13253
13402
|
},
|
13254
13403
|
icon: {
|
13255
|
-
color: "darkGrey",
|
13404
|
+
color: mode("darkGrey", "white")(props),
|
13256
13405
|
"[aria-disabled=true] &": {
|
13257
13406
|
color: "osloGrey"
|
13258
13407
|
}
|
13259
13408
|
}
|
13260
|
-
}
|
13409
|
+
})
|
13261
13410
|
},
|
13262
13411
|
sizes: {
|
13263
13412
|
sm: {
|
@@ -13295,7 +13444,7 @@ var config23 = defineStyleConfig$1({
|
|
13295
13444
|
backgroundPosition: "0 100%",
|
13296
13445
|
backgroundRepeat: "no-repeat",
|
13297
13446
|
borderRadius: "none",
|
13298
|
-
|
13447
|
+
padding: "2px",
|
13299
13448
|
color: "inherit",
|
13300
13449
|
display: "inline",
|
13301
13450
|
position: "relative",
|
@@ -13316,12 +13465,12 @@ var config23 = defineStyleConfig$1({
|
|
13316
13465
|
},
|
13317
13466
|
variants: {
|
13318
13467
|
primary: (props) => ({
|
13319
|
-
color: mode("pine", "
|
13468
|
+
color: mode("pine", "coralGreen")(props),
|
13320
13469
|
...focusVisible({
|
13321
13470
|
focus: {
|
13322
|
-
backgroundColor: "
|
13471
|
+
backgroundColor: mode("pine", "white")(props),
|
13472
|
+
color: mode("white", "pine")(props),
|
13323
13473
|
boxShadow: getBoxShadowString({
|
13324
|
-
borderColor: "azure",
|
13325
13474
|
borderWidth: 2,
|
13326
13475
|
isInset: false
|
13327
13476
|
})
|
@@ -13333,34 +13482,20 @@ var config23 = defineStyleConfig$1({
|
|
13333
13482
|
}
|
13334
13483
|
}),
|
13335
13484
|
_hover: {
|
13336
|
-
color: "white",
|
13337
|
-
backgroundColor: "
|
13338
|
-
boxShadow: getBoxShadowString({
|
13339
|
-
borderColor: "pine",
|
13340
|
-
borderWidth: 2,
|
13341
|
-
isInset: false
|
13342
|
-
})
|
13485
|
+
color: mode("darkTeal", "white")(props),
|
13486
|
+
backgroundColor: mode("coralGreen", "whiteAlpha.200")(props)
|
13343
13487
|
},
|
13344
13488
|
_active: {
|
13345
|
-
color: "white",
|
13346
|
-
backgroundColor: "
|
13347
|
-
boxShadow: getBoxShadowString({
|
13348
|
-
borderColor: "azure",
|
13349
|
-
borderWidth: 2,
|
13350
|
-
isInset: false
|
13351
|
-
})
|
13489
|
+
color: mode("pine", "white")(props),
|
13490
|
+
backgroundColor: mode("mint", "whiteAlpha.100")(props)
|
13352
13491
|
}
|
13353
13492
|
}),
|
13354
13493
|
secondary: (props) => ({
|
13355
13494
|
color: mode("darkGrey", "white")(props),
|
13356
13495
|
...focusVisible({
|
13357
13496
|
focus: {
|
13358
|
-
backgroundColor: "
|
13359
|
-
|
13360
|
-
borderColor: "azure",
|
13361
|
-
borderWidth: 2,
|
13362
|
-
isInset: false
|
13363
|
-
})
|
13497
|
+
backgroundColor: mode("darkGrey", "white")(props),
|
13498
|
+
color: mode("white", "darkTeal")(props)
|
13364
13499
|
},
|
13365
13500
|
notFocus: {
|
13366
13501
|
boxShadow: "none",
|
@@ -13368,20 +13503,12 @@ var config23 = defineStyleConfig$1({
|
|
13368
13503
|
}
|
13369
13504
|
}),
|
13370
13505
|
_hover: {
|
13371
|
-
backgroundColor: mode("
|
13372
|
-
|
13373
|
-
borderColor: mode("seaMist", "pine")(props),
|
13374
|
-
borderWidth: 2,
|
13375
|
-
isInset: false
|
13376
|
-
})
|
13506
|
+
backgroundColor: mode("blackAlpha.100", "whiteAlpha.200")(props),
|
13507
|
+
color: mode("darkGrey", "white")(props)
|
13377
13508
|
},
|
13378
13509
|
_active: {
|
13379
|
-
backgroundColor: mode("mint", "whiteAlpha.
|
13380
|
-
|
13381
|
-
borderColor: mode("mint", "whiteAlpha.200")(props),
|
13382
|
-
borderWidth: 2,
|
13383
|
-
isInset: false
|
13384
|
-
})
|
13510
|
+
backgroundColor: mode("mint", "whiteAlpha.100")(props),
|
13511
|
+
color: mode("darkGrey", "white")(props)
|
13385
13512
|
}
|
13386
13513
|
}),
|
13387
13514
|
/**
|
@@ -13641,8 +13768,8 @@ var config26 = helpers17.defineMultiStyleConfig({
|
|
13641
13768
|
},
|
13642
13769
|
dialog: {
|
13643
13770
|
borderRadius: "md",
|
13644
|
-
background: "white",
|
13645
|
-
color: "inherit",
|
13771
|
+
background: mode("white", "night")(props),
|
13772
|
+
color: mode("inherit", "white")(props),
|
13646
13773
|
my: "3.75rem",
|
13647
13774
|
zIndex: "modal",
|
13648
13775
|
maxHeight: props.scrollBehavior === "inside" ? "calc(100% - 7.5rem)" : void 0,
|
@@ -13657,6 +13784,7 @@ var config26 = helpers17.defineMultiStyleConfig({
|
|
13657
13784
|
},
|
13658
13785
|
closeButton: {
|
13659
13786
|
position: "absolute",
|
13787
|
+
color: "inherit",
|
13660
13788
|
top: 3,
|
13661
13789
|
insetEnd: 3
|
13662
13790
|
},
|
@@ -14602,6 +14730,14 @@ var getTabColorSchemeProps = (props) => {
|
|
14602
14730
|
return {
|
14603
14731
|
color: "darkGrey"
|
14604
14732
|
};
|
14733
|
+
case "base":
|
14734
|
+
return {
|
14735
|
+
color: mode("darkGrey", "white")(props)
|
14736
|
+
};
|
14737
|
+
case "accent":
|
14738
|
+
return {
|
14739
|
+
color: mode("darkTeal", "white")(props)
|
14740
|
+
};
|
14605
14741
|
default:
|
14606
14742
|
return {};
|
14607
14743
|
}
|
@@ -14630,6 +14766,32 @@ var getTabColorSchemeSelectedProps = (props) => {
|
|
14630
14766
|
color: "darkTeal"
|
14631
14767
|
}
|
14632
14768
|
};
|
14769
|
+
case "base":
|
14770
|
+
return {
|
14771
|
+
backgroundColor: "pine",
|
14772
|
+
color: "white",
|
14773
|
+
_hover: {
|
14774
|
+
backgroundColor: "darkTeal",
|
14775
|
+
color: "white"
|
14776
|
+
},
|
14777
|
+
_active: {
|
14778
|
+
backgroundColor: "darkTeal",
|
14779
|
+
color: "white"
|
14780
|
+
}
|
14781
|
+
};
|
14782
|
+
case "accent":
|
14783
|
+
return {
|
14784
|
+
backgroundColor: "pine",
|
14785
|
+
color: "white",
|
14786
|
+
_hover: {
|
14787
|
+
backgroundColor: "darkTeal",
|
14788
|
+
color: "white"
|
14789
|
+
},
|
14790
|
+
_active: {
|
14791
|
+
backgroundColor: "darkTeal",
|
14792
|
+
color: "white"
|
14793
|
+
}
|
14794
|
+
};
|
14633
14795
|
default:
|
14634
14796
|
return {
|
14635
14797
|
backgroundColor: "darkTeal",
|
@@ -14651,6 +14813,14 @@ var getTabColorSchemeFocusProps = (props) => {
|
|
14651
14813
|
return {
|
14652
14814
|
boxShadow: `inset 0 0 0 2px ${props.theme.colors.white}`
|
14653
14815
|
};
|
14816
|
+
case "base":
|
14817
|
+
return {
|
14818
|
+
boxShadow: `inset 0 0 0 2px ${props.theme.colors.azure}`
|
14819
|
+
};
|
14820
|
+
case "accent":
|
14821
|
+
return {
|
14822
|
+
boxShadow: `inset 0 0 0 2px ${props.theme.colors.azure}`
|
14823
|
+
};
|
14654
14824
|
default:
|
14655
14825
|
return {
|
14656
14826
|
boxShadow: `inset 0 0 0 2px ${props.theme.colors.greenHaze}`
|
@@ -14675,6 +14845,16 @@ var getTabColorSchemeHoverProps = (props) => {
|
|
14675
14845
|
return {
|
14676
14846
|
backgroundColor: "silver"
|
14677
14847
|
};
|
14848
|
+
case "base":
|
14849
|
+
return {
|
14850
|
+
boxShadow: mode(`inset 0 0 0 2px ${props.theme.colors.darkGrey}`, `inset 0 0 0 2px ${props.theme.colors.white}`)(props),
|
14851
|
+
color: mode("darkGrey", "white")(props)
|
14852
|
+
};
|
14853
|
+
case "accent":
|
14854
|
+
return {
|
14855
|
+
backgroundColor: mode("seaMist", "whiteAlpha.200")(props),
|
14856
|
+
color: mode("darkTeal", "white")(props)
|
14857
|
+
};
|
14678
14858
|
default:
|
14679
14859
|
return {};
|
14680
14860
|
}
|
@@ -14701,6 +14881,16 @@ var getTabColorSchemeActiveProps = (props) => {
|
|
14701
14881
|
backgroundColor: "lightGrey",
|
14702
14882
|
color: "darkGrey"
|
14703
14883
|
};
|
14884
|
+
case "base":
|
14885
|
+
return {
|
14886
|
+
backgroundColor: mode("mint", "whiteAlpha.100")(props),
|
14887
|
+
color: mode("darkGrey", "white")(props)
|
14888
|
+
};
|
14889
|
+
case "accent":
|
14890
|
+
return {
|
14891
|
+
backgroundColor: mode("seaMist", "whiteAlpha.100")(props),
|
14892
|
+
color: mode("darkTeal", "white")(props)
|
14893
|
+
};
|
14704
14894
|
default:
|
14705
14895
|
return {};
|
14706
14896
|
}
|
@@ -14723,6 +14913,14 @@ var getTabColorSchemeDisabledProps = (props) => {
|
|
14723
14913
|
return {
|
14724
14914
|
color: "steel"
|
14725
14915
|
};
|
14916
|
+
case "base":
|
14917
|
+
return {
|
14918
|
+
color: mode("blackAlpha.400", "whiteAlpha.400")(props)
|
14919
|
+
};
|
14920
|
+
case "accent":
|
14921
|
+
return {
|
14922
|
+
color: mode("blackAlpha.400", "whiteAlpha.400")(props)
|
14923
|
+
};
|
14726
14924
|
default:
|
14727
14925
|
return {};
|
14728
14926
|
}
|
@@ -14744,6 +14942,17 @@ var getTablistColorSchemeProps = (props) => {
|
|
14744
14942
|
backgroundColor: "platinum",
|
14745
14943
|
color: "darkGrey"
|
14746
14944
|
};
|
14945
|
+
case "base":
|
14946
|
+
return {
|
14947
|
+
backgroundColor: mode("white", "transparent")(props),
|
14948
|
+
color: "darkGrey",
|
14949
|
+
boxShadow: mode(`inset 0 0 0 1px ${props.theme.colors.blackAlpha["400"]}`, `inset 0 0 0 1px ${props.theme.colors.whiteAlpha["400"]}`)(props)
|
14950
|
+
};
|
14951
|
+
case "accent":
|
14952
|
+
return {
|
14953
|
+
backgroundColor: mode("mint", "whiteAlpha.100")(props),
|
14954
|
+
color: "darkTeal"
|
14955
|
+
};
|
14747
14956
|
default:
|
14748
14957
|
return {};
|
14749
14958
|
}
|
@@ -14866,12 +15075,12 @@ var theme = {
|
|
14866
15075
|
};
|
14867
15076
|
var BaseToast = ({ children, variant, id }) => {
|
14868
15077
|
const styles3 = useStyleConfig("Toast", { variant });
|
14869
|
-
return /* @__PURE__ */
|
15078
|
+
return /* @__PURE__ */ React69__default.createElement(Flex, { sx: styles3, id }, /* @__PURE__ */ React69__default.createElement(ToastIcon, { variant }), children);
|
14870
15079
|
};
|
14871
15080
|
var ToastIcon = ({ variant }) => {
|
14872
15081
|
const Icon = getIcon3(variant);
|
14873
15082
|
const { t: t2 } = useTranslation();
|
14874
|
-
return /* @__PURE__ */
|
15083
|
+
return /* @__PURE__ */ React69__default.createElement(
|
14875
15084
|
Icon,
|
14876
15085
|
{
|
14877
15086
|
flexShrink: 0,
|
@@ -14921,7 +15130,7 @@ var ActionToast = ({
|
|
14921
15130
|
buttonText,
|
14922
15131
|
id
|
14923
15132
|
}) => {
|
14924
|
-
return /* @__PURE__ */
|
15133
|
+
return /* @__PURE__ */ React69__default.createElement(BaseToast, { variant, id }, /* @__PURE__ */ React69__default.createElement(Box, { marginRight: 2, flexGrow: "1" }, children), /* @__PURE__ */ React69__default.createElement(Button, { variant: "additional", size: "sm", onClick }, buttonText));
|
14925
15134
|
};
|
14926
15135
|
var ClosableToast = ({
|
14927
15136
|
children,
|
@@ -14931,13 +15140,13 @@ var ClosableToast = ({
|
|
14931
15140
|
}) => {
|
14932
15141
|
const styles3 = useMultiStyleConfig("Toast", { variant });
|
14933
15142
|
const { t: t2 } = useTranslation();
|
14934
|
-
return /* @__PURE__ */
|
15143
|
+
return /* @__PURE__ */ React69__default.createElement(BaseToast, { variant, id }, /* @__PURE__ */ React69__default.createElement(Box, { flexGrow: "1" }, children), /* @__PURE__ */ React69__default.createElement(
|
14935
15144
|
IconButton,
|
14936
15145
|
{
|
14937
15146
|
sx: styles3.dismissButton,
|
14938
15147
|
variant: "ghost",
|
14939
15148
|
"aria-label": t2(texts23.dismiss),
|
14940
|
-
icon: /* @__PURE__ */
|
15149
|
+
icon: /* @__PURE__ */ React69__default.createElement(CloseFill18Icon, null),
|
14941
15150
|
onClick: onClose
|
14942
15151
|
}
|
14943
15152
|
));
|
@@ -14965,7 +15174,7 @@ var useToast = () => {
|
|
14965
15174
|
};
|
14966
15175
|
var getToastComponent = (opts) => {
|
14967
15176
|
if ("isClosable" in opts && opts.isClosable) {
|
14968
|
-
return ({ onClose, id }) => /* @__PURE__ */
|
15177
|
+
return ({ onClose, id }) => /* @__PURE__ */ React69__default.createElement(
|
14969
15178
|
ClosableToast,
|
14970
15179
|
{
|
14971
15180
|
id,
|
@@ -14981,7 +15190,7 @@ var getToastComponent = (opts) => {
|
|
14981
15190
|
);
|
14982
15191
|
}
|
14983
15192
|
if ("buttonText" in opts) {
|
14984
|
-
return ({ id }) => /* @__PURE__ */
|
15193
|
+
return ({ id }) => /* @__PURE__ */ React69__default.createElement(
|
14985
15194
|
ActionToast,
|
14986
15195
|
{
|
14987
15196
|
id,
|
@@ -14992,7 +15201,7 @@ var getToastComponent = (opts) => {
|
|
14992
15201
|
opts.text
|
14993
15202
|
);
|
14994
15203
|
}
|
14995
|
-
return ({ id }) => /* @__PURE__ */
|
15204
|
+
return ({ id }) => /* @__PURE__ */ React69__default.createElement(BaseToast, { id, variant: opts.variant }, opts.text);
|
14996
15205
|
};
|
14997
15206
|
|
14998
15207
|
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 };
|