@vygruppen/spor-react 9.6.5 → 9.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 +10 -10
- package/CHANGELOG.md +22 -0
- package/dist/{CountryCodeSelect-VSNXCJ6M.mjs → CountryCodeSelect-EKYAUNTI.mjs} +1 -1
- package/dist/{chunk-F6WDIMSM.mjs → chunk-3P7NVQKW.mjs} +515 -485
- package/dist/index.d.mts +370 -698
- package/dist/index.d.ts +370 -698
- package/dist/index.js +3286 -3234
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/card/Card.tsx +7 -0
- package/src/card/index.tsx +0 -2
- package/src/layout/PressableCard.tsx +57 -0
- package/src/layout/RadioCard.tsx +95 -0
- package/src/layout/RadioCardGroup.tsx +81 -0
- package/src/layout/StaticCard.tsx +77 -0
- package/src/layout/index.tsx +4 -0
- package/src/theme/components/index.ts +1 -0
- package/src/theme/components/pressable-card.ts +13 -131
- package/src/theme/components/radio-card.ts +64 -0
- package/src/theme/components/static-card.ts +4 -12
- package/src/theme/components/table.ts +0 -2
- package/src/theme/utils/base-utils.ts +8 -1
- package/src/theme/utils/floating-utils.ts +17 -1
- package/src/card/PressableCard.tsx +0 -52
- package/src/card/StaticCard.tsx +0 -25
@@ -1,10 +1,10 @@
|
|
1
1
|
import tokens11__default from '@vygruppen/spor-design-tokens';
|
2
2
|
import * as tokens11 from '@vygruppen/spor-design-tokens';
|
3
3
|
export { tokens11 as tokens };
|
4
|
-
import { forwardRef, Divider as Divider$1, Stack as Stack$1, Accordion as Accordion$1, Skeleton as Skeleton$1, useButtonGroup,
|
4
|
+
import { forwardRef, Divider as Divider$1, Stack as Stack$1, useRadio, useStyleConfig, chakra, Box, Card, Accordion as Accordion$1, Skeleton as Skeleton$1, useButtonGroup, Center, Flex, ButtonGroup as ButtonGroup$1, IconButton as IconButton$1, useMultiStyleConfig, Badge as Badge$1, Code as Code$1, Text, PopoverAnchor, FormLabel, useFormControlContext, PopoverContent, PopoverArrow, PopoverBody, FocusLock, Popover, InputGroup, PopoverTrigger, Portal, Checkbox as Checkbox$1, useCheckbox, FormControl as FormControl$1, InputLeftElement, Input as Input$1, InputRightElement, Select, useDisclosure, Button as Button$1, useControllableState, Radio as Radio$1, RadioGroup as RadioGroup$1, Switch as Switch$1, Textarea as Textarea$1, Link, ModalHeader as ModalHeader$1, useModalContext, DrawerContent as DrawerContent$1, Tabs as Tabs$1, Table as Table$1, defineStyleConfig as defineStyleConfig$1, createMultiStyleConfigHelpers as createMultiStyleConfigHelpers$1, useRadioGroup, AccordionItem, AccordionButton, AccordionIcon, AccordionPanel, useColorMode, SkeletonCircle as SkeletonCircle$1, SkeletonText as SkeletonText$1, useColorModeValue, Breadcrumb as Breadcrumb$1, BreadcrumbItem as BreadcrumbItem$1, BreadcrumbLink as BreadcrumbLink$1, Heading as Heading$1, CheckboxGroup as CheckboxGroup$1, List, ListItem, useFormControlProps, useFormControl, Drawer as Drawer$1, DrawerOverlay, DrawerBody, DrawerHeader, useMediaQuery, DrawerCloseButton, DarkMode, PopoverCloseButton, usePopoverContext, UnorderedList, ChakraProvider, useToast as useToast$1, useInterval } from '@chakra-ui/react';
|
5
5
|
export { AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, Box, Center, Collapse, Container, DarkMode, DrawerBody, DrawerCloseButton, DrawerFooter, DrawerOverlay, Fade, Flex, FormHelperText, Grid, GridItem, HStack, Image, Img, InputGroup, LightMode, ListItem, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalOverlay, OrderedList, Portal, ScaleFade, SimpleGrid, Slide, SlideFade, Spacer, Tab, TabList, TabPanel, TabPanels, TableCaption, Tbody, Td, Tfoot, Th, Thead, Tr, UnorderedList, VStack, Wrap, WrapItem, defineStyleConfig, extendTheme, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useTheme, useToken } from '@chakra-ui/react';
|
6
|
-
import * as
|
7
|
-
import
|
6
|
+
import * as React73 from 'react';
|
7
|
+
import React73__default, { useId, createContext, useEffect, forwardRef as forwardRef$1, useRef, useState, Suspense, Children, useContext, useCallback, useMemo, useLayoutEffect } from 'react';
|
8
8
|
import { CloseFill30Icon, CloseFill24Icon, CloseFill18Icon, CalendarOutline24Icon, CloseOutline24Icon, SearchOutline24Icon, InformationFill24Icon, InformationFill18Icon, WarningFill24Icon, WarningFill18Icon, ErrorFill24Icon, ErrorFill18Icon, LinkOutOutline24Icon, DropdownRightFill18Icon, DropdownLeftFill18Icon, DropdownDownFill18Icon, DropdownDownFill24Icon, DropdownUpFill24Icon, ArrowRightFill18Icon, ArrowLeftFill24Icon, ArrowLeftOutline24Icon, ArrowRightOutline24Icon, ErrorOutline24Icon, AltTransportOutline24Icon, WarningOutline24Icon, SuccessOutline24Icon, InformationOutline24Icon, TrainFill18Icon, TrainFill24Icon, TrainFill30Icon, ExpressBusFill18Icon, ExpressBusFill24Icon, ExpressBusFill30Icon, BusFill18Icon, BusFill24Icon, BusFill30Icon, FerryFill18Icon, FerryFill24Icon, FerryFill30Icon, SubwayFill18Icon, SubwayFill24Icon, SubwayFill30Icon, TramFill18Icon, TramFill24Icon, TramFill30Icon, AltTransportFill18Icon, AltTransportFill24Icon, AltTransportFill30Icon, WalkFill18Icon, WalkFill24Icon, WalkFill30Icon } from '@vygruppen/spor-icon-react';
|
9
9
|
import { inlineLoaderColorData, spinnerColorData, contentLoaderData, fullScreenLoaderWhiteData, inlineLoaderDarkData, fullScreenLoaderBlackData, inlineLoaderLightData, spinnerLightData, spinnerDarkData } from '@vygruppen/spor-loader';
|
10
10
|
import { useLottie } from 'lottie-react';
|
@@ -322,7 +322,7 @@ var require_lodash = __commonJS({
|
|
322
322
|
MapCache.prototype.get = mapCacheGet;
|
323
323
|
MapCache.prototype.has = mapCacheHas;
|
324
324
|
MapCache.prototype.set = mapCacheSet;
|
325
|
-
function
|
325
|
+
function Stack5(entries) {
|
326
326
|
var data = this.__data__ = new ListCache(entries);
|
327
327
|
this.size = data.size;
|
328
328
|
}
|
@@ -356,11 +356,11 @@ var require_lodash = __commonJS({
|
|
356
356
|
this.size = data.size;
|
357
357
|
return this;
|
358
358
|
}
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
359
|
+
Stack5.prototype.clear = stackClear;
|
360
|
+
Stack5.prototype["delete"] = stackDelete;
|
361
|
+
Stack5.prototype.get = stackGet;
|
362
|
+
Stack5.prototype.has = stackHas;
|
363
|
+
Stack5.prototype.set = stackSet;
|
364
364
|
function arrayLikeKeys(value, inherited) {
|
365
365
|
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
366
366
|
for (var key in value) {
|
@@ -443,7 +443,7 @@ var require_lodash = __commonJS({
|
|
443
443
|
return;
|
444
444
|
}
|
445
445
|
baseFor(source, function(srcValue, key) {
|
446
|
-
stack || (stack = new
|
446
|
+
stack || (stack = new Stack5());
|
447
447
|
if (isObject2(srcValue)) {
|
448
448
|
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
449
449
|
} else {
|
@@ -771,22 +771,99 @@ var require_lodash = __commonJS({
|
|
771
771
|
}
|
772
772
|
});
|
773
773
|
var Divider = forwardRef((props, ref) => {
|
774
|
-
return /* @__PURE__ */
|
774
|
+
return /* @__PURE__ */ React73__default.createElement(Divider$1, { ...props, ref });
|
775
775
|
});
|
776
776
|
var Stack = forwardRef(
|
777
777
|
({ flexDirection, ...props }, ref) => {
|
778
|
-
return /* @__PURE__ */
|
778
|
+
return /* @__PURE__ */ React73__default.createElement(Stack$1, { ...props, direction: flexDirection, ref });
|
779
779
|
}
|
780
780
|
);
|
781
|
-
|
781
|
+
|
782
|
+
// ../../node_modules/@chakra-ui/utils/dist/chunk-O3SWHQEE.mjs
|
783
|
+
var dataAttr = (condition) => condition ? "" : void 0;
|
784
|
+
var RadioCard = forwardRef(
|
785
|
+
({ children, variant = "base", ...props }, ref) => {
|
786
|
+
const { getInputProps, getRadioProps, getRootProps, state: state2 } = useRadio(props);
|
787
|
+
const styles3 = useStyleConfig("RadioCard", { variant });
|
788
|
+
const input = getInputProps({}, ref);
|
789
|
+
const radio = getRadioProps();
|
790
|
+
const id = `radio-card-${useId()}`;
|
791
|
+
return /* @__PURE__ */ React73__default.createElement(
|
792
|
+
chakra.label,
|
793
|
+
{
|
794
|
+
htmlFor: id,
|
795
|
+
...getRootProps(),
|
796
|
+
"aria-label": String(children)
|
797
|
+
},
|
798
|
+
/* @__PURE__ */ React73__default.createElement(chakra.input, { ...input, id, disabled: state2.isDisabled }),
|
799
|
+
/* @__PURE__ */ React73__default.createElement(
|
800
|
+
chakra.div,
|
801
|
+
{
|
802
|
+
__css: styles3,
|
803
|
+
...radio,
|
804
|
+
"data-checked": dataAttr(state2.isChecked),
|
805
|
+
"data-hover": dataAttr(state2.isHovered),
|
806
|
+
"data-focus": dataAttr(state2.isFocused),
|
807
|
+
"data-active": dataAttr(state2.isActive),
|
808
|
+
"data-disabled": dataAttr(state2.isDisabled),
|
809
|
+
...props
|
810
|
+
},
|
811
|
+
children
|
812
|
+
)
|
813
|
+
);
|
814
|
+
}
|
815
|
+
);
|
816
|
+
var RadioCardGroup = ({
|
817
|
+
children,
|
818
|
+
name,
|
819
|
+
direction: direction2 = "row",
|
820
|
+
onChange,
|
821
|
+
defaultValue,
|
822
|
+
variant = "base",
|
823
|
+
...props
|
824
|
+
}) => {
|
825
|
+
const { getRootProps, getRadioProps } = useRadioGroup({
|
826
|
+
defaultValue,
|
827
|
+
name,
|
828
|
+
onChange,
|
829
|
+
...props
|
830
|
+
});
|
831
|
+
const group = getRootProps();
|
832
|
+
return /* @__PURE__ */ React73__default.createElement(Stack$1, { direction: direction2, ...group }, Children.map(
|
833
|
+
children,
|
834
|
+
(child) => {
|
835
|
+
const radio = getRadioProps({ value: child.props.value });
|
836
|
+
return React73__default.cloneElement(child, { ...radio, variant, ...props });
|
837
|
+
}
|
838
|
+
));
|
839
|
+
};
|
840
|
+
var StaticCard = forwardRef(
|
841
|
+
({ colorScheme = "white", children, ...props }, ref) => {
|
842
|
+
const styles3 = useStyleConfig("StaticCard", {
|
843
|
+
colorScheme
|
844
|
+
});
|
845
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { __css: styles3, ...props, ref }, children, /* @__PURE__ */ React73__default.createElement(Card, null));
|
846
|
+
}
|
847
|
+
);
|
848
|
+
var PressableCard = ({
|
849
|
+
children,
|
850
|
+
as = "button",
|
851
|
+
size: size2 = "sm",
|
852
|
+
variant = "base",
|
853
|
+
...props
|
854
|
+
}) => {
|
855
|
+
const styles3 = useStyleConfig("PressableCard", { variant, size: size2 });
|
856
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { as, __css: styles3, ...props }, children);
|
857
|
+
};
|
858
|
+
var AccordionContext = React73__default.createContext(null);
|
782
859
|
var AccordionProvider = ({
|
783
860
|
size: size2,
|
784
861
|
...props
|
785
862
|
}) => {
|
786
|
-
return /* @__PURE__ */
|
863
|
+
return /* @__PURE__ */ React73__default.createElement(AccordionContext.Provider, { value: { size: size2 }, ...props });
|
787
864
|
};
|
788
865
|
var useAccordionContext = () => {
|
789
|
-
const context =
|
866
|
+
const context = React73__default.useContext(AccordionContext);
|
790
867
|
if (context === null) {
|
791
868
|
throw new Error(
|
792
869
|
"useAccordionContext must be used within AccordionProvider"
|
@@ -797,14 +874,14 @@ var useAccordionContext = () => {
|
|
797
874
|
var Accordion = forwardRef(
|
798
875
|
({ children, spacing: spacing3 = 2, ...props }, ref) => {
|
799
876
|
const defaultIndex = typeof props.defaultIndex === "number" && props.allowMultiple ? [props.defaultIndex] : props.defaultIndex;
|
800
|
-
return /* @__PURE__ */
|
877
|
+
return /* @__PURE__ */ React73__default.createElement(AccordionProvider, { size: props.size }, /* @__PURE__ */ React73__default.createElement(
|
801
878
|
Accordion$1,
|
802
879
|
{
|
803
880
|
...props,
|
804
881
|
ref,
|
805
882
|
defaultIndex
|
806
883
|
},
|
807
|
-
/* @__PURE__ */
|
884
|
+
/* @__PURE__ */ React73__default.createElement(Stack, { spacing: spacing3 }, children)
|
808
885
|
));
|
809
886
|
}
|
810
887
|
);
|
@@ -820,7 +897,7 @@ var Expandable = ({
|
|
820
897
|
},
|
821
898
|
...rest
|
822
899
|
}) => {
|
823
|
-
return /* @__PURE__ */
|
900
|
+
return /* @__PURE__ */ React73__default.createElement(
|
824
901
|
Accordion,
|
825
902
|
{
|
826
903
|
...rest,
|
@@ -830,7 +907,7 @@ var Expandable = ({
|
|
830
907
|
size: size2,
|
831
908
|
onChange: (expandedIndex) => onChange(expandedIndex === 0)
|
832
909
|
},
|
833
|
-
/* @__PURE__ */
|
910
|
+
/* @__PURE__ */ React73__default.createElement(
|
834
911
|
ExpandableItem,
|
835
912
|
{
|
836
913
|
headingLevel,
|
@@ -850,7 +927,7 @@ var ExpandableItem = ({
|
|
850
927
|
}) => {
|
851
928
|
const { size: size2 } = useAccordionContext();
|
852
929
|
warnAboutMismatchingIcon({ icon: leftIcon, size: size2 });
|
853
|
-
return /* @__PURE__ */
|
930
|
+
return /* @__PURE__ */ React73__default.createElement(AccordionItem, { ...rest }, /* @__PURE__ */ React73__default.createElement(Box, { as: headingLevel }, /* @__PURE__ */ React73__default.createElement(AccordionButton, null, /* @__PURE__ */ React73__default.createElement(Flex, { alignItems: "center" }, leftIcon && /* @__PURE__ */ React73__default.createElement(Box, { marginRight: 1 }, leftIcon), title), /* @__PURE__ */ React73__default.createElement(AccordionIcon, null))), /* @__PURE__ */ React73__default.createElement(AccordionPanel, null, children));
|
854
931
|
};
|
855
932
|
var warnAboutMismatchingIcon = ({ icon, size: size2 }) => {
|
856
933
|
var _a6, _b5;
|
@@ -899,7 +976,7 @@ function LanguageProvider({
|
|
899
976
|
language,
|
900
977
|
children
|
901
978
|
}) {
|
902
|
-
return /* @__PURE__ */
|
979
|
+
return /* @__PURE__ */ React73__default.createElement(LanguageContext.Provider, { value: language }, children);
|
903
980
|
}
|
904
981
|
function useLanguage() {
|
905
982
|
const language = useContext(LanguageContext);
|
@@ -931,11 +1008,11 @@ function useHydrated() {
|
|
931
1008
|
// src/loader/ClientOnly.tsx
|
932
1009
|
var ClientOnly = ({ children, fallback = null }) => {
|
933
1010
|
const isHydrated = useHydrated();
|
934
|
-
return /* @__PURE__ */
|
1011
|
+
return /* @__PURE__ */ React73__default.createElement(React73__default.Fragment, null, isHydrated ? children() : fallback);
|
935
1012
|
};
|
936
1013
|
function Lottie({ animationData }) {
|
937
1014
|
const { View } = useLottie({ animationData, loop: true });
|
938
|
-
return /* @__PURE__ */
|
1015
|
+
return /* @__PURE__ */ React73__default.createElement(React73__default.Fragment, null, View);
|
939
1016
|
}
|
940
1017
|
|
941
1018
|
// src/loader/ColorInlineLoader.tsx
|
@@ -944,7 +1021,7 @@ var ColorInlineLoader = ({
|
|
944
1021
|
maxWidth,
|
945
1022
|
...props
|
946
1023
|
}) => {
|
947
|
-
return /* @__PURE__ */
|
1024
|
+
return /* @__PURE__ */ React73__default.createElement(Center, { ...props }, /* @__PURE__ */ React73__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React73__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React73__default.createElement(Lottie, { animationData: inlineLoaderColorData }))));
|
948
1025
|
};
|
949
1026
|
var ColorSpinner = ({
|
950
1027
|
children,
|
@@ -952,24 +1029,24 @@ var ColorSpinner = ({
|
|
952
1029
|
maxWidth,
|
953
1030
|
...props
|
954
1031
|
}) => {
|
955
|
-
return /* @__PURE__ */
|
1032
|
+
return /* @__PURE__ */ React73__default.createElement(Center, { flexDirection: "column", ...props }, /* @__PURE__ */ React73__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React73__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React73__default.createElement(Lottie, { animationData: spinnerColorData }))), children && /* @__PURE__ */ React73__default.createElement(Box, { marginTop: 3, fontWeight: "bold" }, children));
|
956
1033
|
};
|
957
1034
|
var ContentLoader = ({ children, ...props }) => {
|
958
|
-
return /* @__PURE__ */
|
1035
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { ...props }, /* @__PURE__ */ React73__default.createElement(Box, { maxWidth: "140px", marginX: "auto" }, /* @__PURE__ */ React73__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React73__default.createElement(Lottie, { animationData: contentLoaderData }))), children && /* @__PURE__ */ React73__default.createElement(Box, { textAlign: "center", fontWeight: "bold" }, children));
|
959
1036
|
};
|
960
1037
|
var DarkFullScreenLoader = ({
|
961
1038
|
width,
|
962
1039
|
maxWidth,
|
963
1040
|
...props
|
964
1041
|
}) => {
|
965
|
-
return /* @__PURE__ */
|
1042
|
+
return /* @__PURE__ */ React73__default.createElement(Center, { height: "100%", background: "darkTeal", ...props }, /* @__PURE__ */ React73__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React73__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React73__default.createElement(Lottie, { animationData: fullScreenLoaderWhiteData }))));
|
966
1043
|
};
|
967
1044
|
var DarkInlineLoader = ({
|
968
1045
|
width,
|
969
1046
|
maxWidth,
|
970
1047
|
...props
|
971
1048
|
}) => {
|
972
|
-
return /* @__PURE__ */
|
1049
|
+
return /* @__PURE__ */ React73__default.createElement(Center, { ...props }, /* @__PURE__ */ React73__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React73__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React73__default.createElement(Lottie, { animationData: inlineLoaderDarkData }))));
|
973
1050
|
};
|
974
1051
|
var DarkSpinner = ({
|
975
1052
|
children,
|
@@ -979,21 +1056,21 @@ var DarkSpinner = ({
|
|
979
1056
|
}) => {
|
980
1057
|
const { colorMode } = useColorMode();
|
981
1058
|
const spinnerData = colorMode === "dark" ? spinnerLightData : spinnerDarkData;
|
982
|
-
return /* @__PURE__ */
|
1059
|
+
return /* @__PURE__ */ React73__default.createElement(Center, { flexDirection: "column", ...props }, /* @__PURE__ */ React73__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React73__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React73__default.createElement(Lottie, { animationData: spinnerData }))), children && /* @__PURE__ */ React73__default.createElement(Box, { marginTop: 3, fontWeight: "bold" }, children));
|
983
1060
|
};
|
984
1061
|
var LightFullScreenLoader = ({
|
985
1062
|
width,
|
986
1063
|
maxWidth,
|
987
1064
|
...props
|
988
1065
|
}) => {
|
989
|
-
return /* @__PURE__ */
|
1066
|
+
return /* @__PURE__ */ React73__default.createElement(Center, { height: "100%", background: "white", ...props }, /* @__PURE__ */ React73__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React73__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React73__default.createElement(Lottie, { animationData: fullScreenLoaderBlackData }))));
|
990
1067
|
};
|
991
1068
|
var LightInlineLoader = ({
|
992
1069
|
width,
|
993
1070
|
maxWidth,
|
994
1071
|
...props
|
995
1072
|
}) => {
|
996
|
-
return /* @__PURE__ */
|
1073
|
+
return /* @__PURE__ */ React73__default.createElement(Center, { ...props }, /* @__PURE__ */ React73__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React73__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React73__default.createElement(Lottie, { animationData: inlineLoaderLightData }))));
|
997
1074
|
};
|
998
1075
|
var LightSpinner = ({
|
999
1076
|
children,
|
@@ -1001,7 +1078,7 @@ var LightSpinner = ({
|
|
1001
1078
|
maxWidth,
|
1002
1079
|
...props
|
1003
1080
|
}) => {
|
1004
|
-
return /* @__PURE__ */
|
1081
|
+
return /* @__PURE__ */ React73__default.createElement(Center, { flexDirection: "column", ...props }, /* @__PURE__ */ React73__default.createElement(Box, { width, maxWidth }, /* @__PURE__ */ React73__default.createElement(ClientOnly, null, () => /* @__PURE__ */ React73__default.createElement(Lottie, { animationData: spinnerLightData }))), children && /* @__PURE__ */ React73__default.createElement(Box, { marginTop: 3, fontWeight: "bold" }, children));
|
1005
1082
|
};
|
1006
1083
|
var useRotatingLabel = ({ label, delay }) => {
|
1007
1084
|
const loadingTextArray = useMemo(
|
@@ -1038,7 +1115,7 @@ var ProgressBar = ({
|
|
1038
1115
|
"aria-label": ariaLabel || t2(texts.label(value))
|
1039
1116
|
});
|
1040
1117
|
const styles3 = useMultiStyleConfig("ProgressBar", {});
|
1041
|
-
return /* @__PURE__ */
|
1118
|
+
return /* @__PURE__ */ React73__default.createElement(React73__default.Fragment, null, /* @__PURE__ */ React73__default.createElement(
|
1042
1119
|
Box,
|
1043
1120
|
{
|
1044
1121
|
...progressBarProps,
|
@@ -1046,8 +1123,8 @@ var ProgressBar = ({
|
|
1046
1123
|
__css: styles3.container,
|
1047
1124
|
...rest
|
1048
1125
|
},
|
1049
|
-
/* @__PURE__ */
|
1050
|
-
currentLoadingText && /* @__PURE__ */
|
1126
|
+
/* @__PURE__ */ React73__default.createElement(Box, { width, __css: styles3.background }, /* @__PURE__ */ React73__default.createElement(Box, { __css: styles3.progress, height, width: `${value}%` })),
|
1127
|
+
currentLoadingText && /* @__PURE__ */ React73__default.createElement(Text, { sx: styles3.description, ...labelProps }, currentLoadingText)
|
1051
1128
|
));
|
1052
1129
|
};
|
1053
1130
|
var texts = createTexts({
|
@@ -1081,7 +1158,7 @@ var ProgressLoader = ({
|
|
1081
1158
|
const progressPathLength = ((_a6 = pathRef.current) == null ? void 0 : _a6.getTotalLength()) ?? 0;
|
1082
1159
|
const progress = (value - 100) / 100 * progressPathLength;
|
1083
1160
|
const id = useId();
|
1084
|
-
return /* @__PURE__ */
|
1161
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { ...progressBarProps, minWidth: "100px", width, ...rest }, /* @__PURE__ */ React73__default.createElement(Box, { as: "svg", viewBox: "0 0 246 78", fill: "none" }, /* @__PURE__ */ React73__default.createElement(
|
1085
1162
|
Box,
|
1086
1163
|
{
|
1087
1164
|
as: "path",
|
@@ -1089,7 +1166,7 @@ var ProgressLoader = ({
|
|
1089
1166
|
d: "M14.0479 44.8251C19.4332 44.8251 23.7988 40.5242 23.7988 35.2187C23.7988 29.9133 19.4332 25.6124 14.0479 25.6124C8.66254 25.6124 4.29688 29.9133 4.29688 35.2187C4.29688 40.5242 8.66254 44.8251 14.0479 44.8251Z",
|
1090
1167
|
fill: "#FFB466"
|
1091
1168
|
}
|
1092
|
-
), /* @__PURE__ */
|
1169
|
+
), /* @__PURE__ */ React73__default.createElement(
|
1093
1170
|
Box,
|
1094
1171
|
{
|
1095
1172
|
as: "path",
|
@@ -1100,7 +1177,7 @@ var ProgressLoader = ({
|
|
1100
1177
|
strokeLinecap: "round",
|
1101
1178
|
strokeLinejoin: "round"
|
1102
1179
|
}
|
1103
|
-
), /* @__PURE__ */
|
1180
|
+
), /* @__PURE__ */ React73__default.createElement(
|
1104
1181
|
Box,
|
1105
1182
|
{
|
1106
1183
|
as: "path",
|
@@ -1115,7 +1192,7 @@ var ProgressLoader = ({
|
|
1115
1192
|
transition: "stroke-dashoffset .2s ease-out",
|
1116
1193
|
ref: pathRef
|
1117
1194
|
}
|
1118
|
-
), /* @__PURE__ */
|
1195
|
+
), /* @__PURE__ */ React73__default.createElement(
|
1119
1196
|
Box,
|
1120
1197
|
{
|
1121
1198
|
as: "path",
|
@@ -1123,7 +1200,7 @@ var ProgressLoader = ({
|
|
1123
1200
|
d: "M226.025 44.8251C231.411 44.8251 235.776 40.5242 235.776 35.2187C235.776 29.9133 231.411 25.6124 226.025 25.6124C220.64 25.6124 216.274 29.9133 216.274 35.2187C216.274 40.5242 220.64 44.8251 226.025 44.8251Z",
|
1124
1201
|
fill: "#688CBA"
|
1125
1202
|
}
|
1126
|
-
)), currentLoadingText && /* @__PURE__ */
|
1203
|
+
)), currentLoadingText && /* @__PURE__ */ React73__default.createElement(
|
1127
1204
|
Text,
|
1128
1205
|
{
|
1129
1206
|
textAlign: "center",
|
@@ -1142,9 +1219,9 @@ var texts2 = createTexts({
|
|
1142
1219
|
en: `${value}% done`
|
1143
1220
|
})
|
1144
1221
|
});
|
1145
|
-
var Skeleton = forwardRef((props, ref) => /* @__PURE__ */
|
1146
|
-
var SkeletonCircle = (props) => /* @__PURE__ */
|
1147
|
-
var SkeletonText = (props) => /* @__PURE__ */
|
1222
|
+
var Skeleton = forwardRef((props, ref) => /* @__PURE__ */ React73__default.createElement(Skeleton$1, { ...props, ref }));
|
1223
|
+
var SkeletonCircle = (props) => /* @__PURE__ */ React73__default.createElement(SkeletonCircle$1, { boxSize: 6, borderRadius: "50%", ...props });
|
1224
|
+
var SkeletonText = (props) => /* @__PURE__ */ React73__default.createElement(SkeletonText$1, { boxSize: 6, ...props });
|
1148
1225
|
|
1149
1226
|
// src/button/Button.tsx
|
1150
1227
|
var Button = forwardRef((props, ref) => {
|
@@ -1174,7 +1251,7 @@ var Button = forwardRef((props, ref) => {
|
|
1174
1251
|
if (fontWeight) {
|
1175
1252
|
styles3.fontWeight = fontWeight;
|
1176
1253
|
}
|
1177
|
-
return /* @__PURE__ */
|
1254
|
+
return /* @__PURE__ */ React73__default.createElement(
|
1178
1255
|
Box,
|
1179
1256
|
{
|
1180
1257
|
...rest,
|
@@ -1187,7 +1264,7 @@ var Button = forwardRef((props, ref) => {
|
|
1187
1264
|
disabled: isDisabled || isLoading,
|
1188
1265
|
position: "relative"
|
1189
1266
|
},
|
1190
|
-
isLoading && /* @__PURE__ */
|
1267
|
+
isLoading && /* @__PURE__ */ React73__default.createElement(Center, { position: "absolute", right: 0, left: 0, top: 1, bottom: 0 }, /* @__PURE__ */ React73__default.createElement(
|
1191
1268
|
ColorInlineLoader,
|
1192
1269
|
{
|
1193
1270
|
maxWidth: getLoaderWidth(finalSize),
|
@@ -1196,7 +1273,7 @@ var Button = forwardRef((props, ref) => {
|
|
1196
1273
|
marginY: 2
|
1197
1274
|
}
|
1198
1275
|
)),
|
1199
|
-
/* @__PURE__ */
|
1276
|
+
/* @__PURE__ */ React73__default.createElement(
|
1200
1277
|
Flex,
|
1201
1278
|
{
|
1202
1279
|
gap: 1,
|
@@ -1206,7 +1283,7 @@ var Button = forwardRef((props, ref) => {
|
|
1206
1283
|
visibility: isLoading ? "hidden" : "visible",
|
1207
1284
|
"aria-hidden": isLoading
|
1208
1285
|
},
|
1209
|
-
/* @__PURE__ */
|
1286
|
+
/* @__PURE__ */ React73__default.createElement(Flex, { gap: 1, alignItems: "center" }, leftIcon, /* @__PURE__ */ React73__default.createElement(
|
1210
1287
|
Box,
|
1211
1288
|
{
|
1212
1289
|
visibility: isLoading ? "hidden" : "visible",
|
@@ -1247,14 +1324,14 @@ var texts3 = createTexts({
|
|
1247
1324
|
sv: "Laddar\u2026"
|
1248
1325
|
}
|
1249
1326
|
});
|
1250
|
-
var ButtonGroup = forwardRef((props, ref) => /* @__PURE__ */
|
1327
|
+
var ButtonGroup = forwardRef((props, ref) => /* @__PURE__ */ React73__default.createElement(ButtonGroup$1, { ...props, ref }));
|
1251
1328
|
var IconButton = forwardRef(
|
1252
|
-
({ ...props }, ref) => /* @__PURE__ */
|
1329
|
+
({ ...props }, ref) => /* @__PURE__ */ React73__default.createElement(
|
1253
1330
|
IconButton$1,
|
1254
1331
|
{
|
1255
1332
|
title: props["aria-label"],
|
1256
1333
|
...props,
|
1257
|
-
spinner: /* @__PURE__ */
|
1334
|
+
spinner: /* @__PURE__ */ React73__default.createElement(ColorSpinner, { width: "80%", height: "80%", marginX: 1, marginTop: 1 }),
|
1258
1335
|
ref
|
1259
1336
|
}
|
1260
1337
|
)
|
@@ -1264,7 +1341,7 @@ var IconButton = forwardRef(
|
|
1264
1341
|
var CloseButton = forwardRef(
|
1265
1342
|
({ size: size2 = "sm", ...props }, ref) => {
|
1266
1343
|
const { t: t2 } = useTranslation();
|
1267
|
-
return /* @__PURE__ */
|
1344
|
+
return /* @__PURE__ */ React73__default.createElement(
|
1268
1345
|
IconButton,
|
1269
1346
|
{
|
1270
1347
|
ref,
|
@@ -1281,11 +1358,11 @@ var getIcon = (size2) => {
|
|
1281
1358
|
switch (size2) {
|
1282
1359
|
case "xs":
|
1283
1360
|
case "sm":
|
1284
|
-
return /* @__PURE__ */
|
1361
|
+
return /* @__PURE__ */ React73__default.createElement(CloseFill18Icon, null);
|
1285
1362
|
case "md":
|
1286
|
-
return /* @__PURE__ */
|
1363
|
+
return /* @__PURE__ */ React73__default.createElement(CloseFill24Icon, null);
|
1287
1364
|
case "lg":
|
1288
|
-
return /* @__PURE__ */
|
1365
|
+
return /* @__PURE__ */ React73__default.createElement(CloseFill30Icon, null);
|
1289
1366
|
}
|
1290
1367
|
};
|
1291
1368
|
var texts4 = createTexts({
|
@@ -1307,7 +1384,7 @@ var FloatingActionButton = forwardRef(
|
|
1307
1384
|
placement = "bottom right",
|
1308
1385
|
...props
|
1309
1386
|
}, ref) => {
|
1310
|
-
const [isTextVisible, setIsTextVisible] =
|
1387
|
+
const [isTextVisible, setIsTextVisible] = React73__default.useState(
|
1311
1388
|
externalIsTextVisible !== void 0 ? externalIsTextVisible : false
|
1312
1389
|
);
|
1313
1390
|
const scrollDirection = useScrollDirection();
|
@@ -1329,7 +1406,7 @@ var FloatingActionButton = forwardRef(
|
|
1329
1406
|
isTextVisible,
|
1330
1407
|
placement
|
1331
1408
|
});
|
1332
|
-
return /* @__PURE__ */
|
1409
|
+
return /* @__PURE__ */ React73__default.createElement(
|
1333
1410
|
MotionBox,
|
1334
1411
|
{
|
1335
1412
|
__css: style.container,
|
@@ -1337,8 +1414,8 @@ var FloatingActionButton = forwardRef(
|
|
1337
1414
|
ref,
|
1338
1415
|
...props
|
1339
1416
|
},
|
1340
|
-
/* @__PURE__ */
|
1341
|
-
/* @__PURE__ */
|
1417
|
+
/* @__PURE__ */ React73__default.createElement(Box, { __css: style.icon }, icon),
|
1418
|
+
/* @__PURE__ */ React73__default.createElement(
|
1342
1419
|
MotionBox,
|
1343
1420
|
{
|
1344
1421
|
animate: isTextVisible ? "show" : "hide",
|
@@ -1363,11 +1440,11 @@ var FloatingActionButton = forwardRef(
|
|
1363
1440
|
}
|
1364
1441
|
);
|
1365
1442
|
var useScrollDirection = () => {
|
1366
|
-
const [scrollDirection, setScrollDirection] =
|
1367
|
-
const lastScrollPosition =
|
1443
|
+
const [scrollDirection, setScrollDirection] = React73__default.useState(null);
|
1444
|
+
const lastScrollPosition = React73__default.useRef(
|
1368
1445
|
typeof window !== "undefined" ? window.scrollY : 0
|
1369
1446
|
);
|
1370
|
-
|
1447
|
+
React73__default.useEffect(() => {
|
1371
1448
|
const onScroll = () => {
|
1372
1449
|
const delta = window.scrollY - lastScrollPosition.current;
|
1373
1450
|
if (delta === 0) {
|
@@ -1386,7 +1463,7 @@ var useScrollDirection = () => {
|
|
1386
1463
|
var AlertIcon = ({ variant }) => {
|
1387
1464
|
const Icon = getIcon2(variant);
|
1388
1465
|
const { t: t2 } = useTranslation();
|
1389
|
-
return /* @__PURE__ */
|
1466
|
+
return /* @__PURE__ */ React73__default.createElement(
|
1390
1467
|
Icon,
|
1391
1468
|
{
|
1392
1469
|
flexShrink: 0,
|
@@ -1448,7 +1525,7 @@ var BaseAlert = ({
|
|
1448
1525
|
...boxProps
|
1449
1526
|
}) => {
|
1450
1527
|
const styles3 = useMultiStyleConfig("Alert", { variant });
|
1451
|
-
return /* @__PURE__ */
|
1528
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { __css: styles3.container, ...boxProps }, children);
|
1452
1529
|
};
|
1453
1530
|
|
1454
1531
|
// src/alert/ClosableAlert.tsx
|
@@ -1468,17 +1545,17 @@ var ClosableAlert = ({
|
|
1468
1545
|
externalOnClose();
|
1469
1546
|
onClose();
|
1470
1547
|
};
|
1471
|
-
return /* @__PURE__ */
|
1548
|
+
return /* @__PURE__ */ React73__default.createElement(BaseAlert, { variant }, /* @__PURE__ */ React73__default.createElement(
|
1472
1549
|
IconButton,
|
1473
1550
|
{
|
1474
1551
|
variant: "ghost",
|
1475
1552
|
size: "sm",
|
1476
1553
|
onClick: handleClose,
|
1477
|
-
icon: /* @__PURE__ */
|
1554
|
+
icon: /* @__PURE__ */ React73__default.createElement(CloseFill18Icon, null),
|
1478
1555
|
"aria-label": t2(texts6.close),
|
1479
1556
|
sx: styles3.closeButton
|
1480
1557
|
}
|
1481
|
-
), /* @__PURE__ */
|
1558
|
+
), /* @__PURE__ */ React73__default.createElement(AlertIcon, { variant }), children);
|
1482
1559
|
};
|
1483
1560
|
var texts6 = createTexts({
|
1484
1561
|
close: {
|
@@ -1499,7 +1576,7 @@ var ExpandableAlert = ({
|
|
1499
1576
|
...boxProps
|
1500
1577
|
}) => {
|
1501
1578
|
const styles3 = useMultiStyleConfig("AlertExpandable", { variant });
|
1502
|
-
return /* @__PURE__ */
|
1579
|
+
return /* @__PURE__ */ React73__default.createElement(BaseAlert, { variant, ...boxProps, paddingX: 0, paddingY: 0 }, /* @__PURE__ */ React73__default.createElement(
|
1503
1580
|
Accordion$1,
|
1504
1581
|
{
|
1505
1582
|
onChange: (expandedIndex) => onToggle(expandedIndex === 0),
|
@@ -1507,14 +1584,14 @@ var ExpandableAlert = ({
|
|
1507
1584
|
allowToggle: true,
|
1508
1585
|
flexGrow: "1"
|
1509
1586
|
},
|
1510
|
-
/* @__PURE__ */
|
1587
|
+
/* @__PURE__ */ React73__default.createElement(AccordionItem, null, /* @__PURE__ */ React73__default.createElement(AccordionButton, { sx: styles3.container }, /* @__PURE__ */ React73__default.createElement(
|
1511
1588
|
Flex,
|
1512
1589
|
{
|
1513
1590
|
justifyContent: "space-between",
|
1514
1591
|
alignItems: "center",
|
1515
1592
|
flexGrow: "1"
|
1516
1593
|
},
|
1517
|
-
/* @__PURE__ */
|
1594
|
+
/* @__PURE__ */ React73__default.createElement(Flex, { as: headingLevel, alignItems: "center" }, /* @__PURE__ */ React73__default.createElement(AlertIcon, { variant }), /* @__PURE__ */ React73__default.createElement(
|
1518
1595
|
Box,
|
1519
1596
|
{
|
1520
1597
|
as: "span",
|
@@ -1528,51 +1605,40 @@ var ExpandableAlert = ({
|
|
1528
1605
|
},
|
1529
1606
|
title
|
1530
1607
|
)),
|
1531
|
-
/* @__PURE__ */
|
1532
|
-
)), /* @__PURE__ */
|
1608
|
+
/* @__PURE__ */ React73__default.createElement(AccordionIcon, null)
|
1609
|
+
)), /* @__PURE__ */ React73__default.createElement(AccordionPanel, null, children))
|
1533
1610
|
));
|
1534
1611
|
};
|
1535
1612
|
var StaticAlert = ({ children, ...props }) => {
|
1536
|
-
return /* @__PURE__ */
|
1613
|
+
return /* @__PURE__ */ React73__default.createElement(BaseAlert, { ...props }, /* @__PURE__ */ React73__default.createElement(AlertIcon, { variant: props.variant }), children);
|
1537
1614
|
};
|
1538
1615
|
var Breadcrumb = (props) => {
|
1539
1616
|
const iconColor = useColorModeValue("blackAlpha.400", "whiteAlpha.400");
|
1540
|
-
return /* @__PURE__ */
|
1617
|
+
return /* @__PURE__ */ React73__default.createElement(
|
1541
1618
|
Breadcrumb$1,
|
1542
1619
|
{
|
1543
|
-
separator: /* @__PURE__ */
|
1620
|
+
separator: /* @__PURE__ */ React73__default.createElement(DropdownRightFill18Icon, { color: iconColor }),
|
1544
1621
|
...props
|
1545
1622
|
}
|
1546
1623
|
);
|
1547
1624
|
};
|
1548
1625
|
var BreadcrumbItem = BreadcrumbItem$1;
|
1549
1626
|
var BreadcrumbLink = BreadcrumbLink$1;
|
1550
|
-
var
|
1627
|
+
var Card2 = forwardRef(
|
1551
1628
|
({ size: size2 = "sm", colorScheme = "white", children, ...props }, ref) => {
|
1629
|
+
console.warn(
|
1630
|
+
"Warning: Card is deprecated. Use `StaticCard` or `PressableCard` instead."
|
1631
|
+
);
|
1552
1632
|
const styles3 = useStyleConfig("Card", {
|
1553
1633
|
colorScheme,
|
1554
1634
|
size: size2
|
1555
1635
|
});
|
1556
|
-
return /* @__PURE__ */
|
1636
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { __css: styles3, ...props, ref }, children);
|
1557
1637
|
}
|
1558
1638
|
);
|
1559
|
-
var StaticCard = ({ colorScheme, ...props }) => {
|
1560
|
-
const styles3 = useStyleConfig("StaticCard", { colorScheme });
|
1561
|
-
return /* @__PURE__ */ React71__default.createElement(Box, { __css: styles3, ...props });
|
1562
|
-
};
|
1563
|
-
var PressableCard = ({
|
1564
|
-
children,
|
1565
|
-
as = "button",
|
1566
|
-
size: size2 = "sm",
|
1567
|
-
variant = "base",
|
1568
|
-
...props
|
1569
|
-
}) => {
|
1570
|
-
const styles3 = useStyleConfig("PressableCard", { variant, size: size2 });
|
1571
|
-
return /* @__PURE__ */ React71__default.createElement(Box, { as, __css: styles3, ...props }, children);
|
1572
|
-
};
|
1573
1639
|
var Badge = forwardRef(
|
1574
1640
|
({ icon, colorScheme = "grey", children, ...props }, ref) => {
|
1575
|
-
return /* @__PURE__ */
|
1641
|
+
return /* @__PURE__ */ React73__default.createElement(
|
1576
1642
|
Badge$1,
|
1577
1643
|
{
|
1578
1644
|
colorScheme,
|
@@ -1580,12 +1646,12 @@ var Badge = forwardRef(
|
|
1580
1646
|
paddingLeft: icon ? 1 : void 0,
|
1581
1647
|
ref
|
1582
1648
|
},
|
1583
|
-
icon &&
|
1649
|
+
icon && React73__default.cloneElement(icon, { marginRight: 1 }),
|
1584
1650
|
children
|
1585
1651
|
);
|
1586
1652
|
}
|
1587
1653
|
);
|
1588
|
-
var Code = forwardRef((props, ref) => /* @__PURE__ */
|
1654
|
+
var Code = forwardRef((props, ref) => /* @__PURE__ */ React73__default.createElement(Code$1, { ...props, ref }));
|
1589
1655
|
var Heading = ({
|
1590
1656
|
as,
|
1591
1657
|
variant = "xl-display",
|
@@ -1595,11 +1661,11 @@ var Heading = ({
|
|
1595
1661
|
}) => {
|
1596
1662
|
const id = externalId ?? (autoId && typeof props.children === "string") ? slugify(props.children) : void 0;
|
1597
1663
|
const color2 = useColorModeValue("text.primary.light", "text.primary.dark");
|
1598
|
-
return /* @__PURE__ */
|
1664
|
+
return /* @__PURE__ */ React73__default.createElement(Text, { as, textStyle: variant, id, color: color2, ...props });
|
1599
1665
|
};
|
1600
1666
|
var Text4 = forwardRef(
|
1601
1667
|
({ variant = "sm", ...props }, ref) => {
|
1602
|
-
return /* @__PURE__ */
|
1668
|
+
return /* @__PURE__ */ React73__default.createElement(Text, { ...props, textStyle: variant, ref });
|
1603
1669
|
}
|
1604
1670
|
);
|
1605
1671
|
function CalendarCell({
|
@@ -1642,7 +1708,7 @@ function CalendarCell({
|
|
1642
1708
|
{ passive: false, once: true }
|
1643
1709
|
);
|
1644
1710
|
}, []);
|
1645
|
-
return /* @__PURE__ */
|
1711
|
+
return /* @__PURE__ */ React73__default.createElement(
|
1646
1712
|
Box,
|
1647
1713
|
{
|
1648
1714
|
as: "td",
|
@@ -1665,7 +1731,7 @@ function CalendarCell({
|
|
1665
1731
|
}
|
1666
1732
|
}
|
1667
1733
|
},
|
1668
|
-
/* @__PURE__ */
|
1734
|
+
/* @__PURE__ */ React73__default.createElement(
|
1669
1735
|
Box,
|
1670
1736
|
{
|
1671
1737
|
as: "button",
|
@@ -1728,8 +1794,8 @@ function CalendarGrid({
|
|
1728
1794
|
const weeksInMonth = getWeeksInMonth(state2.visibleRange.start, locale);
|
1729
1795
|
const weeksInMonthRange = new Array(weeksInMonth).fill(0).map((_, i) => i);
|
1730
1796
|
const styles3 = useMultiStyleConfig("Datepicker", { variant });
|
1731
|
-
return /* @__PURE__ */
|
1732
|
-
return /* @__PURE__ */
|
1797
|
+
return /* @__PURE__ */ React73__default.createElement("table", { ...gridProps }, /* @__PURE__ */ React73__default.createElement("thead", { ...headerProps }, /* @__PURE__ */ React73__default.createElement("tr", null, weekDays[language].map((day, index) => {
|
1798
|
+
return /* @__PURE__ */ React73__default.createElement(
|
1733
1799
|
Text4,
|
1734
1800
|
{
|
1735
1801
|
as: "th",
|
@@ -1739,8 +1805,8 @@ function CalendarGrid({
|
|
1739
1805
|
},
|
1740
1806
|
day
|
1741
1807
|
);
|
1742
|
-
}))), /* @__PURE__ */
|
1743
|
-
(date, dayIndex) => date ? /* @__PURE__ */
|
1808
|
+
}))), /* @__PURE__ */ React73__default.createElement("tbody", null, weeksInMonthRange.map((weekIndex) => /* @__PURE__ */ React73__default.createElement("tr", { key: weekIndex }, state2.getDatesInWeek(weekIndex, startDate).map(
|
1809
|
+
(date, dayIndex) => date ? /* @__PURE__ */ React73__default.createElement(
|
1744
1810
|
CalendarCell,
|
1745
1811
|
{
|
1746
1812
|
variant,
|
@@ -1749,7 +1815,7 @@ function CalendarGrid({
|
|
1749
1815
|
date,
|
1750
1816
|
currentMonth: startDate
|
1751
1817
|
}
|
1752
|
-
) : /* @__PURE__ */
|
1818
|
+
) : /* @__PURE__ */ React73__default.createElement("td", { key: dayIndex })
|
1753
1819
|
)))));
|
1754
1820
|
}
|
1755
1821
|
function CalendarNavigationButton({
|
@@ -1759,7 +1825,7 @@ function CalendarNavigationButton({
|
|
1759
1825
|
}) {
|
1760
1826
|
const ref = useRef(null);
|
1761
1827
|
const { buttonProps } = useButton(rest, ref);
|
1762
|
-
return /* @__PURE__ */
|
1828
|
+
return /* @__PURE__ */ React73__default.createElement(
|
1763
1829
|
IconButton,
|
1764
1830
|
{
|
1765
1831
|
...buttonProps,
|
@@ -1793,7 +1859,7 @@ function CalendarHeader({
|
|
1793
1859
|
);
|
1794
1860
|
const areAllOtherYearsDisabled = isPreviousYearDisabled && isNextYearDisabled;
|
1795
1861
|
const isYearPickerVisible = showYearNavigation && !areAllOtherYearsDisabled;
|
1796
|
-
return /* @__PURE__ */
|
1862
|
+
return /* @__PURE__ */ React73__default.createElement(Flex, { alignItems: "center", paddingBottom: "4", justifyContent: "space-between" }, /* @__PURE__ */ React73__default.createElement(
|
1797
1863
|
CalendarNavigator,
|
1798
1864
|
{
|
1799
1865
|
title: title ? title : isYearPickerVisible ? monthTitle : monthAndYearTitle,
|
@@ -1803,7 +1869,7 @@ function CalendarHeader({
|
|
1803
1869
|
isNextDisabled: !state2.isPreviousVisibleRangeInvalid,
|
1804
1870
|
isPreviousDisabled: !state2.isNextVisibleRangeInvalid
|
1805
1871
|
}
|
1806
|
-
), isYearPickerVisible && /* @__PURE__ */
|
1872
|
+
), isYearPickerVisible && /* @__PURE__ */ React73__default.createElement(
|
1807
1873
|
CalendarNavigator,
|
1808
1874
|
{
|
1809
1875
|
title: jsDate.getFullYear().toString(),
|
@@ -1825,15 +1891,15 @@ var CalendarNavigator = ({
|
|
1825
1891
|
isNextDisabled
|
1826
1892
|
}) => {
|
1827
1893
|
const { t: t2 } = useTranslation();
|
1828
|
-
return /* @__PURE__ */
|
1894
|
+
return /* @__PURE__ */ React73__default.createElement(Flex, { alignItems: "center", flexGrow: 1 }, /* @__PURE__ */ React73__default.createElement(
|
1829
1895
|
CalendarNavigationButton,
|
1830
1896
|
{
|
1831
1897
|
onPress: onPrevious,
|
1832
1898
|
isDisabled: isPreviousDisabled,
|
1833
|
-
icon: /* @__PURE__ */
|
1899
|
+
icon: /* @__PURE__ */ React73__default.createElement(ArrowLeftOutline24Icon, null),
|
1834
1900
|
"aria-label": `${t2(texts7.previous)} ${t2(texts7[unit])}`
|
1835
1901
|
}
|
1836
|
-
), /* @__PURE__ */
|
1902
|
+
), /* @__PURE__ */ React73__default.createElement(
|
1837
1903
|
Heading,
|
1838
1904
|
{
|
1839
1905
|
as: "div",
|
@@ -1844,12 +1910,12 @@ var CalendarNavigator = ({
|
|
1844
1910
|
textAlign: "center"
|
1845
1911
|
},
|
1846
1912
|
capitalize(title)
|
1847
|
-
), /* @__PURE__ */
|
1913
|
+
), /* @__PURE__ */ React73__default.createElement(
|
1848
1914
|
CalendarNavigationButton,
|
1849
1915
|
{
|
1850
1916
|
onPress: onNext,
|
1851
1917
|
isDisabled: isNextDisabled,
|
1852
|
-
icon: /* @__PURE__ */
|
1918
|
+
icon: /* @__PURE__ */ React73__default.createElement(ArrowRightOutline24Icon, null),
|
1853
1919
|
"aria-label": `${t2(texts7.next)} ${t2(texts7[unit])}`
|
1854
1920
|
}
|
1855
1921
|
));
|
@@ -1897,7 +1963,7 @@ function Calendar({
|
|
1897
1963
|
const { calendarProps } = useCalendar(props, state2);
|
1898
1964
|
const calendarAriaLabel = calendarProps["aria-label"];
|
1899
1965
|
const ariaLabel = t2(texts8.calendar) + (calendarAriaLabel ? ` ${calendarAriaLabel}` : "");
|
1900
|
-
return /* @__PURE__ */
|
1966
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { ...calendarProps, "aria-label": ariaLabel }, /* @__PURE__ */ React73__default.createElement(CalendarHeader, { state: state2, showYearNavigation }), /* @__PURE__ */ React73__default.createElement(CalendarGrid, { variant, state: state2 }));
|
1901
1967
|
}
|
1902
1968
|
var texts8 = createTexts({
|
1903
1969
|
calendar: {
|
@@ -1918,7 +1984,7 @@ var CalendarTriggerButton = forwardRef(
|
|
1918
1984
|
onPress(event);
|
1919
1985
|
}
|
1920
1986
|
};
|
1921
|
-
return /* @__PURE__ */
|
1987
|
+
return /* @__PURE__ */ React73__default.createElement(PopoverAnchor, null, /* @__PURE__ */ React73__default.createElement(
|
1922
1988
|
Box,
|
1923
1989
|
{
|
1924
1990
|
ref,
|
@@ -1929,7 +1995,7 @@ var CalendarTriggerButton = forwardRef(
|
|
1929
1995
|
...filteredButtonProps,
|
1930
1996
|
onKeyUp: handleOnPress
|
1931
1997
|
},
|
1932
|
-
/* @__PURE__ */
|
1998
|
+
/* @__PURE__ */ React73__default.createElement(CalendarOutline24Icon, null)
|
1933
1999
|
));
|
1934
2000
|
}
|
1935
2001
|
);
|
@@ -1954,7 +2020,7 @@ var DateTimeSegment = forwardRef$1(
|
|
1954
2020
|
isPlaceholder: segment.isPlaceholder,
|
1955
2021
|
isEditable: segment.isEditable
|
1956
2022
|
});
|
1957
|
-
return /* @__PURE__ */
|
2023
|
+
return /* @__PURE__ */ React73__default.createElement(
|
1958
2024
|
Box,
|
1959
2025
|
{
|
1960
2026
|
...segmentProps,
|
@@ -2005,7 +2071,7 @@ var DateField = forwardRef$1(
|
|
2005
2071
|
state2,
|
2006
2072
|
ref
|
2007
2073
|
);
|
2008
|
-
return /* @__PURE__ */
|
2074
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { minWidth: "6rem", width: "100%" }, props.label && /* @__PURE__ */ React73__default.createElement(
|
2009
2075
|
FormLabel,
|
2010
2076
|
{
|
2011
2077
|
...props.labelProps,
|
@@ -2015,7 +2081,7 @@ var DateField = forwardRef$1(
|
|
2015
2081
|
paddingTop: "2px"
|
2016
2082
|
},
|
2017
2083
|
props.label
|
2018
|
-
), /* @__PURE__ */
|
2084
|
+
), /* @__PURE__ */ React73__default.createElement(Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5" }, state2.segments.map((segment, i) => /* @__PURE__ */ React73__default.createElement(DateTimeSegment, { key: i, segment, state: state2 }))), /* @__PURE__ */ React73__default.createElement(
|
2019
2085
|
"input",
|
2020
2086
|
{
|
2021
2087
|
type: "hidden",
|
@@ -2031,7 +2097,7 @@ var StyledField = forwardRef(
|
|
2031
2097
|
isInvalid: false
|
2032
2098
|
};
|
2033
2099
|
const styles3 = useMultiStyleConfig("Datepicker", { variant });
|
2034
|
-
return /* @__PURE__ */
|
2100
|
+
return /* @__PURE__ */ React73__default.createElement(
|
2035
2101
|
Box,
|
2036
2102
|
{
|
2037
2103
|
...otherProps,
|
@@ -2083,7 +2149,7 @@ var DatePicker = forwardRef$1(
|
|
2083
2149
|
const onFieldClick = () => {
|
2084
2150
|
state2.setOpen(true);
|
2085
2151
|
};
|
2086
|
-
const popoverContent = /* @__PURE__ */
|
2152
|
+
const popoverContent = /* @__PURE__ */ React73__default.createElement(PopoverContent, { color: "darkGrey", sx: styles3.calendarPopover }, /* @__PURE__ */ React73__default.createElement(PopoverArrow, { sx: styles3.arrow }), /* @__PURE__ */ React73__default.createElement(PopoverBody, null, /* @__PURE__ */ React73__default.createElement(FocusLock, null, /* @__PURE__ */ React73__default.createElement(
|
2087
2153
|
Calendar,
|
2088
2154
|
{
|
2089
2155
|
...calendarProps,
|
@@ -2091,7 +2157,7 @@ var DatePicker = forwardRef$1(
|
|
2091
2157
|
showYearNavigation
|
2092
2158
|
}
|
2093
2159
|
))));
|
2094
|
-
return /* @__PURE__ */
|
2160
|
+
return /* @__PURE__ */ React73__default.createElement(I18nProvider, { locale }, /* @__PURE__ */ React73__default.createElement(
|
2095
2161
|
Box,
|
2096
2162
|
{
|
2097
2163
|
position: "relative",
|
@@ -2099,7 +2165,7 @@ var DatePicker = forwardRef$1(
|
|
2099
2165
|
flexDirection: "column",
|
2100
2166
|
width
|
2101
2167
|
},
|
2102
|
-
/* @__PURE__ */
|
2168
|
+
/* @__PURE__ */ React73__default.createElement(
|
2103
2169
|
Popover,
|
2104
2170
|
{
|
2105
2171
|
...dialogProps,
|
@@ -2108,7 +2174,7 @@ var DatePicker = forwardRef$1(
|
|
2108
2174
|
onClose: state2.close,
|
2109
2175
|
flip: false
|
2110
2176
|
},
|
2111
|
-
/* @__PURE__ */
|
2177
|
+
/* @__PURE__ */ React73__default.createElement(InputGroup, { ...groupProps, display: "inline-flex" }, /* @__PURE__ */ React73__default.createElement(PopoverAnchor, null, /* @__PURE__ */ React73__default.createElement(
|
2112
2178
|
StyledField,
|
2113
2179
|
{
|
2114
2180
|
variant,
|
@@ -2116,7 +2182,7 @@ var DatePicker = forwardRef$1(
|
|
2116
2182
|
paddingX: 3,
|
2117
2183
|
minHeight
|
2118
2184
|
},
|
2119
|
-
/* @__PURE__ */
|
2185
|
+
/* @__PURE__ */ React73__default.createElement(PopoverTrigger, null, /* @__PURE__ */ React73__default.createElement(
|
2120
2186
|
CalendarTriggerButton,
|
2121
2187
|
{
|
2122
2188
|
variant,
|
@@ -2124,7 +2190,7 @@ var DatePicker = forwardRef$1(
|
|
2124
2190
|
...buttonProps
|
2125
2191
|
}
|
2126
2192
|
)),
|
2127
|
-
/* @__PURE__ */
|
2193
|
+
/* @__PURE__ */ React73__default.createElement(
|
2128
2194
|
DateField,
|
2129
2195
|
{
|
2130
2196
|
label: props.label,
|
@@ -2134,8 +2200,8 @@ var DatePicker = forwardRef$1(
|
|
2134
2200
|
}
|
2135
2201
|
)
|
2136
2202
|
))),
|
2137
|
-
/* @__PURE__ */
|
2138
|
-
state2.isOpen && !props.isDisabled && withPortal && /* @__PURE__ */
|
2203
|
+
/* @__PURE__ */ React73__default.createElement(FormErrorMessage, { ...errorMessageProps }, errorMessage),
|
2204
|
+
state2.isOpen && !props.isDisabled && withPortal && /* @__PURE__ */ React73__default.createElement(Portal, null, popoverContent),
|
2139
2205
|
state2.isOpen && !props.isDisabled && !withPortal && popoverContent
|
2140
2206
|
)
|
2141
2207
|
));
|
@@ -2151,7 +2217,7 @@ function RangeCalendar(props) {
|
|
2151
2217
|
});
|
2152
2218
|
const ref = useRef(null);
|
2153
2219
|
const { calendarProps, title } = useRangeCalendar(props, state2, ref);
|
2154
|
-
return /* @__PURE__ */
|
2220
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { ...calendarProps, ref }, /* @__PURE__ */ React73__default.createElement(CalendarHeader, { state: state2, title }), /* @__PURE__ */ React73__default.createElement(Box, { display: "flex", gap: "8" }, /* @__PURE__ */ React73__default.createElement(CalendarGrid, { variant: props.variant, state: state2 }), /* @__PURE__ */ React73__default.createElement(
|
2155
2221
|
CalendarGrid,
|
2156
2222
|
{
|
2157
2223
|
variant: props.variant,
|
@@ -2198,8 +2264,8 @@ function DateRangePicker({
|
|
2198
2264
|
const onFieldClick = () => {
|
2199
2265
|
state2.setOpen(true);
|
2200
2266
|
};
|
2201
|
-
const popoverContent = /* @__PURE__ */
|
2202
|
-
return /* @__PURE__ */
|
2267
|
+
const popoverContent = /* @__PURE__ */ React73__default.createElement(PopoverContent, { sx: styles3.calendarPopover, maxWidth: "none" }, /* @__PURE__ */ React73__default.createElement(PopoverArrow, { sx: styles3.arrow }), /* @__PURE__ */ React73__default.createElement(PopoverBody, null, /* @__PURE__ */ React73__default.createElement(FocusLock, null, /* @__PURE__ */ React73__default.createElement(RangeCalendar, { variant: "base", ...calendarProps }))));
|
2268
|
+
return /* @__PURE__ */ React73__default.createElement(I18nProvider, { locale }, /* @__PURE__ */ React73__default.createElement(Box, { position: "relative", display: "inline-flex", flexDirection: "column" }, props.label && /* @__PURE__ */ React73__default.createElement(FormLabel, { ...labelProps, sx: styles3.inputLabel }, props.label), /* @__PURE__ */ React73__default.createElement(
|
2203
2269
|
Popover,
|
2204
2270
|
{
|
2205
2271
|
...dialogProps,
|
@@ -2208,7 +2274,7 @@ function DateRangePicker({
|
|
2208
2274
|
onClose: state2.close,
|
2209
2275
|
flip: false
|
2210
2276
|
},
|
2211
|
-
/* @__PURE__ */
|
2277
|
+
/* @__PURE__ */ React73__default.createElement(InputGroup, { ...groupProps, width: "auto", display: "inline-flex" }, /* @__PURE__ */ React73__default.createElement(PopoverAnchor, null, /* @__PURE__ */ React73__default.createElement(
|
2212
2278
|
StyledField,
|
2213
2279
|
{
|
2214
2280
|
alignItems: "center",
|
@@ -2218,7 +2284,7 @@ function DateRangePicker({
|
|
2218
2284
|
onKeyPress: handleEnterClick,
|
2219
2285
|
minHeight
|
2220
2286
|
},
|
2221
|
-
variant && /* @__PURE__ */
|
2287
|
+
variant && /* @__PURE__ */ React73__default.createElement(PopoverTrigger, null, /* @__PURE__ */ React73__default.createElement(
|
2222
2288
|
CalendarTriggerButton,
|
2223
2289
|
{
|
2224
2290
|
paddingLeft: 1,
|
@@ -2228,7 +2294,7 @@ function DateRangePicker({
|
|
2228
2294
|
...buttonProps
|
2229
2295
|
}
|
2230
2296
|
)),
|
2231
|
-
/* @__PURE__ */
|
2297
|
+
/* @__PURE__ */ React73__default.createElement(
|
2232
2298
|
DateField,
|
2233
2299
|
{
|
2234
2300
|
...startFieldProps,
|
@@ -2237,8 +2303,8 @@ function DateRangePicker({
|
|
2237
2303
|
labelProps
|
2238
2304
|
}
|
2239
2305
|
),
|
2240
|
-
/* @__PURE__ */
|
2241
|
-
/* @__PURE__ */
|
2306
|
+
/* @__PURE__ */ React73__default.createElement(Box, { as: "span", "aria-hidden": "true", paddingRight: "2" }, "\u2013"),
|
2307
|
+
/* @__PURE__ */ React73__default.createElement(
|
2242
2308
|
DateField,
|
2243
2309
|
{
|
2244
2310
|
...endFieldProps,
|
@@ -2248,14 +2314,14 @@ function DateRangePicker({
|
|
2248
2314
|
}
|
2249
2315
|
)
|
2250
2316
|
))),
|
2251
|
-
state2.isOpen && withPortal && /* @__PURE__ */
|
2317
|
+
state2.isOpen && withPortal && /* @__PURE__ */ React73__default.createElement(Portal, null, popoverContent),
|
2252
2318
|
state2.isOpen && !withPortal && popoverContent
|
2253
2319
|
)));
|
2254
2320
|
}
|
2255
2321
|
var TimeField = ({ state: state2, ...props }) => {
|
2256
2322
|
const ref = useRef(null);
|
2257
2323
|
const { labelProps, fieldProps } = useTimeField(props, state2, ref);
|
2258
|
-
return /* @__PURE__ */
|
2324
|
+
return /* @__PURE__ */ React73__default.createElement(Box, null, /* @__PURE__ */ React73__default.createElement(
|
2259
2325
|
FormLabel3,
|
2260
2326
|
{
|
2261
2327
|
...labelProps,
|
@@ -2267,7 +2333,7 @@ var TimeField = ({ state: state2, ...props }) => {
|
|
2267
2333
|
paddingTop: "2px"
|
2268
2334
|
},
|
2269
2335
|
props.label
|
2270
|
-
), /* @__PURE__ */
|
2336
|
+
), /* @__PURE__ */ React73__default.createElement(Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5" }, state2.segments.map((segment) => /* @__PURE__ */ React73__default.createElement(DateTimeSegment, { key: segment.type, segment, state: state2 }))), /* @__PURE__ */ React73__default.createElement(
|
2271
2337
|
"input",
|
2272
2338
|
{
|
2273
2339
|
type: "hidden",
|
@@ -2336,7 +2402,7 @@ var TimePicker = ({
|
|
2336
2402
|
const ariaLabel = `${inputLabel} \u2013 ${t2(
|
2337
2403
|
texts10.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
|
2338
2404
|
)}`;
|
2339
|
-
return /* @__PURE__ */
|
2405
|
+
return /* @__PURE__ */ React73__default.createElement(
|
2340
2406
|
StyledField,
|
2341
2407
|
{
|
2342
2408
|
variant: "base",
|
@@ -2352,7 +2418,7 @@ var TimePicker = ({
|
|
2352
2418
|
"aria-label": ariaLabel,
|
2353
2419
|
...boxProps
|
2354
2420
|
},
|
2355
|
-
/* @__PURE__ */
|
2421
|
+
/* @__PURE__ */ React73__default.createElement(
|
2356
2422
|
IconButton,
|
2357
2423
|
{
|
2358
2424
|
variant: "ghost",
|
@@ -2360,14 +2426,14 @@ var TimePicker = ({
|
|
2360
2426
|
borderRadius: "xs",
|
2361
2427
|
"aria-label": backwardsLabel,
|
2362
2428
|
title: backwardsLabel,
|
2363
|
-
icon: /* @__PURE__ */
|
2429
|
+
icon: /* @__PURE__ */ React73__default.createElement(DropdownLeftFill18Icon, null),
|
2364
2430
|
onClick: handleBackwardsClick,
|
2365
2431
|
isDisabled,
|
2366
2432
|
style: isDisabled ? { backgroundColor: "transparent" } : {}
|
2367
2433
|
}
|
2368
2434
|
),
|
2369
|
-
/* @__PURE__ */
|
2370
|
-
/* @__PURE__ */
|
2435
|
+
/* @__PURE__ */ React73__default.createElement(TimeField, { label, state: state2, name }),
|
2436
|
+
/* @__PURE__ */ React73__default.createElement(
|
2371
2437
|
IconButton,
|
2372
2438
|
{
|
2373
2439
|
variant: "ghost",
|
@@ -2375,7 +2441,7 @@ var TimePicker = ({
|
|
2375
2441
|
borderRadius: "xs",
|
2376
2442
|
"aria-label": forwardsLabel,
|
2377
2443
|
title: forwardsLabel,
|
2378
|
-
icon: /* @__PURE__ */
|
2444
|
+
icon: /* @__PURE__ */ React73__default.createElement(DropdownRightFill18Icon, null),
|
2379
2445
|
onClick: handleForwardClick,
|
2380
2446
|
isDisabled,
|
2381
2447
|
style: isDisabled ? { backgroundColor: "transparent" } : {}
|
@@ -2444,7 +2510,7 @@ var AttachedInputs = ({
|
|
2444
2510
|
}
|
2445
2511
|
};
|
2446
2512
|
const direction2 = flexDirection === "row" ? "horizontal" : "vertical";
|
2447
|
-
return /* @__PURE__ */
|
2513
|
+
return /* @__PURE__ */ React73__default.createElement(
|
2448
2514
|
Flex,
|
2449
2515
|
{
|
2450
2516
|
role: "group",
|
@@ -2458,7 +2524,7 @@ var AttachedInputs = ({
|
|
2458
2524
|
var Dialog = ({ title, children, ...props }) => {
|
2459
2525
|
const ref = useRef(null);
|
2460
2526
|
const { dialogProps, titleProps } = useDialog(props, ref);
|
2461
|
-
return /* @__PURE__ */
|
2527
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { ...dialogProps, ref, outline: "none" }, title && /* @__PURE__ */ React73__default.createElement(Heading$1, { as: "h3", ...titleProps }, title), children);
|
2462
2528
|
};
|
2463
2529
|
var Popover3 = forwardRef$1(
|
2464
2530
|
({
|
@@ -2489,21 +2555,21 @@ var Popover3 = forwardRef$1(
|
|
2489
2555
|
},
|
2490
2556
|
state2
|
2491
2557
|
);
|
2492
|
-
const popoverBox = /* @__PURE__ */
|
2558
|
+
const popoverBox = /* @__PURE__ */ React73__default.createElement(
|
2493
2559
|
Box,
|
2494
2560
|
{
|
2495
2561
|
...popoverProps,
|
2496
2562
|
ref: popoverRef,
|
2497
2563
|
minWidth: ((_a6 = triggerRef.current) == null ? void 0 : _a6.clientWidth) ?? "auto"
|
2498
2564
|
},
|
2499
|
-
/* @__PURE__ */
|
2565
|
+
/* @__PURE__ */ React73__default.createElement(DismissButton, { onDismiss: state2.close }),
|
2500
2566
|
children,
|
2501
|
-
/* @__PURE__ */
|
2567
|
+
/* @__PURE__ */ React73__default.createElement(DismissButton, { onDismiss: state2.close })
|
2502
2568
|
);
|
2503
2569
|
if (isNonModal) {
|
2504
2570
|
return popoverBox;
|
2505
2571
|
}
|
2506
|
-
return /* @__PURE__ */
|
2572
|
+
return /* @__PURE__ */ React73__default.createElement(Overlay, null, hasBackdrop && /* @__PURE__ */ React73__default.createElement(Box, { ...underlayProps, position: "fixed", inset: "0" }), popoverBox);
|
2507
2573
|
}
|
2508
2574
|
);
|
2509
2575
|
|
@@ -2544,7 +2610,7 @@ var CardSelect = forwardRef(
|
|
2544
2610
|
});
|
2545
2611
|
useForceRerender(state2.isOpen);
|
2546
2612
|
const ChevronIcon = size2 === "sm" ? DropdownDownFill18Icon : DropdownDownFill24Icon;
|
2547
|
-
return /* @__PURE__ */
|
2613
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { ...props }, /* @__PURE__ */ React73__default.createElement(
|
2548
2614
|
chakra.button,
|
2549
2615
|
{
|
2550
2616
|
type: "button",
|
@@ -2556,13 +2622,13 @@ var CardSelect = forwardRef(
|
|
2556
2622
|
width,
|
2557
2623
|
"data-attachable": true
|
2558
2624
|
},
|
2559
|
-
/* @__PURE__ */
|
2625
|
+
/* @__PURE__ */ React73__default.createElement(Flex, { gap: 1.5, alignItems: "center" }, icon, /* @__PURE__ */ React73__default.createElement(Box, { as: "span", display: props["aria-label"] ? "none" : "inline" }, label), withChevron ? /* @__PURE__ */ React73__default.createElement(
|
2560
2626
|
ChevronIcon,
|
2561
2627
|
{
|
2562
2628
|
transform: state2.isOpen ? "rotate(180deg)" : "none"
|
2563
2629
|
}
|
2564
2630
|
) : null)
|
2565
|
-
), state2.isOpen && /* @__PURE__ */
|
2631
|
+
), state2.isOpen && /* @__PURE__ */ React73__default.createElement(
|
2566
2632
|
Popover3,
|
2567
2633
|
{
|
2568
2634
|
state: state2,
|
@@ -2571,15 +2637,15 @@ var CardSelect = forwardRef(
|
|
2571
2637
|
crossOffset,
|
2572
2638
|
placement
|
2573
2639
|
},
|
2574
|
-
/* @__PURE__ */
|
2575
|
-
|
2640
|
+
/* @__PURE__ */ React73__default.createElement(
|
2641
|
+
Card2,
|
2576
2642
|
{
|
2577
2643
|
colorScheme: "white",
|
2578
2644
|
size: "lg",
|
2579
2645
|
sx: styles3.card,
|
2580
2646
|
...overlayProps
|
2581
2647
|
},
|
2582
|
-
/* @__PURE__ */
|
2648
|
+
/* @__PURE__ */ React73__default.createElement(Dialog, { "aria-label": label }, children)
|
2583
2649
|
)
|
2584
2650
|
));
|
2585
2651
|
}
|
@@ -2593,18 +2659,15 @@ function useForceRerender(shouldRerender) {
|
|
2593
2659
|
}, [shouldRerender]);
|
2594
2660
|
}
|
2595
2661
|
var Checkbox = forwardRef((props, ref) => {
|
2596
|
-
return /* @__PURE__ */
|
2662
|
+
return /* @__PURE__ */ React73__default.createElement(Checkbox$1, { ...props, ref });
|
2597
2663
|
});
|
2598
2664
|
var CheckboxGroup = ({
|
2599
2665
|
direction: direction2 = "row",
|
2600
2666
|
children,
|
2601
2667
|
...props
|
2602
2668
|
}) => {
|
2603
|
-
return /* @__PURE__ */
|
2669
|
+
return /* @__PURE__ */ React73__default.createElement(CheckboxGroup$1, { ...props }, /* @__PURE__ */ React73__default.createElement(Stack$1, { direction: direction2 }, children));
|
2604
2670
|
};
|
2605
|
-
|
2606
|
-
// ../../node_modules/@chakra-ui/utils/dist/chunk-O3SWHQEE.mjs
|
2607
|
-
var dataAttr = (condition) => condition ? "" : void 0;
|
2608
2671
|
var ChoiceChip = forwardRef((props, ref) => {
|
2609
2672
|
const {
|
2610
2673
|
children,
|
@@ -2629,15 +2692,15 @@ var ChoiceChip = forwardRef((props, ref) => {
|
|
2629
2692
|
hasLabel: Boolean(children)
|
2630
2693
|
});
|
2631
2694
|
const id = `choice-chip-${useId()}`;
|
2632
|
-
return /* @__PURE__ */
|
2695
|
+
return /* @__PURE__ */ React73__default.createElement(
|
2633
2696
|
chakra.label,
|
2634
2697
|
{
|
2635
2698
|
htmlFor: id,
|
2636
2699
|
...getRootProps(),
|
2637
2700
|
"aria-label": String(children)
|
2638
2701
|
},
|
2639
|
-
/* @__PURE__ */
|
2640
|
-
/* @__PURE__ */
|
2702
|
+
/* @__PURE__ */ React73__default.createElement(chakra.input, { ...getInputProps({}, ref), id, disabled: isDisabled }),
|
2703
|
+
/* @__PURE__ */ React73__default.createElement(
|
2641
2704
|
chakra.div,
|
2642
2705
|
{
|
2643
2706
|
...getLabelProps(),
|
@@ -2648,9 +2711,9 @@ var ChoiceChip = forwardRef((props, ref) => {
|
|
2648
2711
|
"data-active": dataAttr(state2.isActive),
|
2649
2712
|
"data-disabled": dataAttr(state2.isDisabled)
|
2650
2713
|
},
|
2651
|
-
icon && /* @__PURE__ */
|
2652
|
-
/* @__PURE__ */
|
2653
|
-
chipType === "filter" && state2.isChecked && /* @__PURE__ */
|
2714
|
+
icon && /* @__PURE__ */ React73__default.createElement(chakra.span, { __css: styles3.icon }, state2.isChecked ? icon.checked : icon.default),
|
2715
|
+
/* @__PURE__ */ React73__default.createElement(chakra.span, { __css: styles3.label, ...getCheckboxProps() }, chipType !== "icon" && children),
|
2716
|
+
chipType === "filter" && state2.isChecked && /* @__PURE__ */ React73__default.createElement(CloseOutline24Icon, { marginLeft: 1.5 })
|
2654
2717
|
)
|
2655
2718
|
);
|
2656
2719
|
});
|
@@ -2722,7 +2785,7 @@ function Combobox({
|
|
2722
2785
|
},
|
2723
2786
|
state2
|
2724
2787
|
);
|
2725
|
-
return /* @__PURE__ */
|
2788
|
+
return /* @__PURE__ */ React73__default.createElement(React73__default.Fragment, null, /* @__PURE__ */ React73__default.createElement(
|
2726
2789
|
Input,
|
2727
2790
|
{
|
2728
2791
|
...styleProps(comboBoxProps),
|
@@ -2732,7 +2795,7 @@ function Combobox({
|
|
2732
2795
|
borderBottomLeftRadius: state2.isOpen && !isLoading ? 0 : borderBottomLeftRadius,
|
2733
2796
|
borderBottomRightRadius: state2.isOpen && !isLoading ? 0 : borderBottomRightRadius,
|
2734
2797
|
...inputProps,
|
2735
|
-
rightIcon: isLoading ? /* @__PURE__ */
|
2798
|
+
rightIcon: isLoading ? /* @__PURE__ */ React73__default.createElement(
|
2736
2799
|
ColorSpinner,
|
2737
2800
|
{
|
2738
2801
|
width: "1.5rem",
|
@@ -2747,7 +2810,7 @@ function Combobox({
|
|
2747
2810
|
}
|
2748
2811
|
) : rightIcon
|
2749
2812
|
}
|
2750
|
-
), state2.isOpen && !isLoading && /* @__PURE__ */
|
2813
|
+
), state2.isOpen && !isLoading && /* @__PURE__ */ React73__default.createElement(
|
2751
2814
|
Popover3,
|
2752
2815
|
{
|
2753
2816
|
state: state2,
|
@@ -2759,7 +2822,7 @@ function Combobox({
|
|
2759
2822
|
hasBackdrop: false,
|
2760
2823
|
containerPadding: 0
|
2761
2824
|
},
|
2762
|
-
/* @__PURE__ */
|
2825
|
+
/* @__PURE__ */ React73__default.createElement(
|
2763
2826
|
ListBox,
|
2764
2827
|
{
|
2765
2828
|
...listBoxProps,
|
@@ -2801,7 +2864,7 @@ var debounce = (fn, ms = 100) => {
|
|
2801
2864
|
};
|
2802
2865
|
};
|
2803
2866
|
var FormControl = forwardRef((props, ref) => {
|
2804
|
-
return /* @__PURE__ */
|
2867
|
+
return /* @__PURE__ */ React73__default.createElement(FormControl$1, { ...props, ref });
|
2805
2868
|
});
|
2806
2869
|
var FormErrorMessage = ({
|
2807
2870
|
children,
|
@@ -2817,7 +2880,7 @@ var FormErrorMessage = ({
|
|
2817
2880
|
return null;
|
2818
2881
|
}
|
2819
2882
|
const { ref, ...errorMessageProps } = formControlContext.getErrorMessageProps();
|
2820
|
-
return /* @__PURE__ */
|
2883
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { position: "relative", ref }, /* @__PURE__ */ React73__default.createElement(
|
2821
2884
|
Box,
|
2822
2885
|
{
|
2823
2886
|
borderRadius: "xs",
|
@@ -2835,12 +2898,12 @@ var FormErrorMessage = ({
|
|
2835
2898
|
...errorMessageProps,
|
2836
2899
|
...boxProps
|
2837
2900
|
},
|
2838
|
-
/* @__PURE__ */
|
2901
|
+
/* @__PURE__ */ React73__default.createElement(Arrow, { position: "absolute", top: "-0.25em", left: "1em" }),
|
2839
2902
|
children
|
2840
2903
|
));
|
2841
2904
|
};
|
2842
2905
|
var Arrow = (props) => {
|
2843
|
-
return /* @__PURE__ */
|
2906
|
+
return /* @__PURE__ */ React73__default.createElement(
|
2844
2907
|
Box,
|
2845
2908
|
{
|
2846
2909
|
...props,
|
@@ -2851,7 +2914,7 @@ var Arrow = (props) => {
|
|
2851
2914
|
fill: "none",
|
2852
2915
|
transform: "rotate(45deg)"
|
2853
2916
|
},
|
2854
|
-
/* @__PURE__ */
|
2917
|
+
/* @__PURE__ */ React73__default.createElement(
|
2855
2918
|
Box,
|
2856
2919
|
{
|
2857
2920
|
as: "path",
|
@@ -2862,7 +2925,7 @@ var Arrow = (props) => {
|
|
2862
2925
|
);
|
2863
2926
|
};
|
2864
2927
|
var FormLabel3 = forwardRef((props, ref) => {
|
2865
|
-
return /* @__PURE__ */
|
2928
|
+
return /* @__PURE__ */ React73__default.createElement(FormLabel, { ...props, ref });
|
2866
2929
|
});
|
2867
2930
|
function ListBox({
|
2868
2931
|
isLoading,
|
@@ -2873,7 +2936,7 @@ function ListBox({
|
|
2873
2936
|
}) {
|
2874
2937
|
const { listBoxProps } = useListBox(props, state2, listBoxRef);
|
2875
2938
|
const styles3 = useMultiStyleConfig("ListBox", {});
|
2876
|
-
return /* @__PURE__ */
|
2939
|
+
return /* @__PURE__ */ React73__default.createElement(
|
2877
2940
|
List,
|
2878
2941
|
{
|
2879
2942
|
...listBoxProps,
|
@@ -2884,19 +2947,19 @@ function ListBox({
|
|
2884
2947
|
},
|
2885
2948
|
state2.collection.size === 0 && props.emptyContent,
|
2886
2949
|
Array.from(state2.collection).map(
|
2887
|
-
(item) => item.type === "section" ? /* @__PURE__ */
|
2950
|
+
(item) => item.type === "section" ? /* @__PURE__ */ React73__default.createElement(ListBoxSection, { key: item.key, section: item, state: state2 }) : /* @__PURE__ */ React73__default.createElement(Option, { key: item.key, item, state: state2 })
|
2888
2951
|
)
|
2889
2952
|
);
|
2890
2953
|
}
|
2891
2954
|
function ItemLabel({ children }) {
|
2892
2955
|
let { labelProps } = useOptionContext();
|
2893
2956
|
const styles3 = useMultiStyleConfig("ListBox", {});
|
2894
|
-
return /* @__PURE__ */
|
2957
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { ...labelProps, sx: styles3.label }, children);
|
2895
2958
|
}
|
2896
2959
|
function ItemDescription({ children }) {
|
2897
2960
|
let { descriptionProps } = useOptionContext();
|
2898
2961
|
const styles3 = useMultiStyleConfig("ListBox", {});
|
2899
|
-
return /* @__PURE__ */
|
2962
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { ...descriptionProps, sx: styles3.description }, children);
|
2900
2963
|
}
|
2901
2964
|
function Option({ item, state: state2 }) {
|
2902
2965
|
const ref = useRef(null);
|
@@ -2929,9 +2992,9 @@ function Option({ item, state: state2 }) {
|
|
2929
2992
|
{ passive: false, once: true }
|
2930
2993
|
);
|
2931
2994
|
}, []);
|
2932
|
-
return /* @__PURE__ */
|
2995
|
+
return /* @__PURE__ */ React73__default.createElement(OptionContext.Provider, { value: { labelProps, descriptionProps } }, /* @__PURE__ */ React73__default.createElement(ListItem, { ...optionProps, ...dataFields, ref, sx: styles3.item }, item.rendered));
|
2933
2996
|
}
|
2934
|
-
var OptionContext =
|
2997
|
+
var OptionContext = React73__default.createContext({
|
2935
2998
|
labelProps: {},
|
2936
2999
|
descriptionProps: {}
|
2937
3000
|
});
|
@@ -2945,7 +3008,7 @@ function ListBoxSection({ section, state: state2 }) {
|
|
2945
3008
|
});
|
2946
3009
|
const isFirstSection = section.key === state2.collection.getFirstKey();
|
2947
3010
|
const titleColor = useColorModeValue("darkGrey", "white");
|
2948
|
-
return /* @__PURE__ */
|
3011
|
+
return /* @__PURE__ */ React73__default.createElement(ListItem, { ...itemProps }, section.rendered && /* @__PURE__ */ React73__default.createElement(
|
2949
3012
|
Box,
|
2950
3013
|
{
|
2951
3014
|
fontSize: "mobile.xs",
|
@@ -2958,8 +3021,8 @@ function ListBoxSection({ section, state: state2 }) {
|
|
2958
3021
|
...headingProps
|
2959
3022
|
},
|
2960
3023
|
section.rendered
|
2961
|
-
), /* @__PURE__ */
|
2962
|
-
(item) => /* @__PURE__ */
|
3024
|
+
), /* @__PURE__ */ React73__default.createElement(List, { ...groupProps, padding: 0, listStyleType: "none" }, Array.from(state2.collection.getChildren(section.key)).map(
|
3025
|
+
(item) => /* @__PURE__ */ React73__default.createElement(Option, { key: item.key, item, state: state2 })
|
2963
3026
|
)));
|
2964
3027
|
}
|
2965
3028
|
|
@@ -2999,7 +3062,7 @@ function InfoSelect({
|
|
2999
3062
|
const { buttonProps } = useButton(triggerProps, triggerRef);
|
3000
3063
|
const { t: t2 } = useTranslation();
|
3001
3064
|
const formControl = useFormControlProps(props);
|
3002
|
-
return /* @__PURE__ */
|
3065
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { sx: styles3.container }, /* @__PURE__ */ React73__default.createElement(chakra.div, { ...labelProps, sx: styles3.label }, props.label), /* @__PURE__ */ React73__default.createElement(
|
3003
3066
|
HiddenSelect,
|
3004
3067
|
{
|
3005
3068
|
state: state2,
|
@@ -3007,7 +3070,7 @@ function InfoSelect({
|
|
3007
3070
|
label: props.label,
|
3008
3071
|
name: props.name
|
3009
3072
|
}
|
3010
|
-
), /* @__PURE__ */
|
3073
|
+
), /* @__PURE__ */ React73__default.createElement(
|
3011
3074
|
chakra.button,
|
3012
3075
|
{
|
3013
3076
|
type: "button",
|
@@ -3020,16 +3083,16 @@ function InfoSelect({
|
|
3020
3083
|
"aria-invalid": formControl.isInvalid,
|
3021
3084
|
"aria-describedby": formControl["aria-describedby"]
|
3022
3085
|
},
|
3023
|
-
/* @__PURE__ */
|
3024
|
-
/* @__PURE__ */
|
3025
|
-
), state2.isOpen && /* @__PURE__ */
|
3086
|
+
/* @__PURE__ */ React73__default.createElement(Box, { ...valueProps }, state2.selectedItem ? state2.selectedItem.textValue ?? state2.selectedItem.rendered : placeholder ?? t2(texts11.selectAnOption)),
|
3087
|
+
/* @__PURE__ */ React73__default.createElement(Box, { sx: styles3.arrowIcon }, state2.isOpen ? /* @__PURE__ */ React73__default.createElement(DropdownUpFill24Icon, null) : /* @__PURE__ */ React73__default.createElement(DropdownDownFill24Icon, null))
|
3088
|
+
), state2.isOpen && /* @__PURE__ */ React73__default.createElement(
|
3026
3089
|
Popover3,
|
3027
3090
|
{
|
3028
3091
|
state: state2,
|
3029
3092
|
triggerRef,
|
3030
3093
|
containerPadding: 0
|
3031
3094
|
},
|
3032
|
-
/* @__PURE__ */
|
3095
|
+
/* @__PURE__ */ React73__default.createElement(
|
3033
3096
|
ListBox,
|
3034
3097
|
{
|
3035
3098
|
...menuProps,
|
@@ -3054,7 +3117,7 @@ var Input = forwardRef(
|
|
3054
3117
|
const formControlProps = useFormControlContext();
|
3055
3118
|
const fallbackId = `input-${useId()}`;
|
3056
3119
|
const inputId = id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? fallbackId;
|
3057
|
-
return /* @__PURE__ */
|
3120
|
+
return /* @__PURE__ */ React73__default.createElement(InputGroup, { position: "relative" }, leftIcon && /* @__PURE__ */ React73__default.createElement(InputLeftElement, { pointerEvents: "none" }, leftIcon), /* @__PURE__ */ React73__default.createElement(
|
3058
3121
|
Input$1,
|
3059
3122
|
{
|
3060
3123
|
"data-attachable": true,
|
@@ -3065,19 +3128,19 @@ var Input = forwardRef(
|
|
3065
3128
|
ref,
|
3066
3129
|
placeholder: " "
|
3067
3130
|
}
|
3068
|
-
), /* @__PURE__ */
|
3131
|
+
), /* @__PURE__ */ React73__default.createElement(FormLabel, { htmlFor: inputId }, label), rightIcon && /* @__PURE__ */ React73__default.createElement(InputRightElement, { pointerEvents: "none" }, rightIcon));
|
3069
3132
|
}
|
3070
3133
|
);
|
3071
3134
|
var InputLeftElement2 = forwardRef(
|
3072
|
-
(props, ref) => /* @__PURE__ */
|
3135
|
+
(props, ref) => /* @__PURE__ */ React73__default.createElement(InputLeftElement, { ...props, ref })
|
3073
3136
|
);
|
3074
3137
|
var InputRightElement2 = forwardRef(
|
3075
|
-
(props, ref) => /* @__PURE__ */
|
3138
|
+
(props, ref) => /* @__PURE__ */ React73__default.createElement(InputRightElement, { ...props, ref })
|
3076
3139
|
);
|
3077
3140
|
var NativeSelect = forwardRef(
|
3078
3141
|
({ label, ...props }, ref) => {
|
3079
3142
|
const styles3 = useMultiStyleConfig("Select", props);
|
3080
|
-
return /* @__PURE__ */
|
3143
|
+
return /* @__PURE__ */ React73__default.createElement(FormControl, null, /* @__PURE__ */ React73__default.createElement(
|
3081
3144
|
Select,
|
3082
3145
|
{
|
3083
3146
|
"data-attachable": true,
|
@@ -3085,7 +3148,7 @@ var NativeSelect = forwardRef(
|
|
3085
3148
|
rootProps: { __css: styles3.root },
|
3086
3149
|
ref
|
3087
3150
|
}
|
3088
|
-
), label && /* @__PURE__ */
|
3151
|
+
), label && /* @__PURE__ */ React73__default.createElement(FormLabel3, null, label));
|
3089
3152
|
}
|
3090
3153
|
);
|
3091
3154
|
function NumericStepper({
|
@@ -3111,17 +3174,17 @@ function NumericStepper({
|
|
3111
3174
|
});
|
3112
3175
|
const formControlProps = useFormControl({ id: idProp, isDisabled });
|
3113
3176
|
const clampedStepSize = Math.max(Math.min(stepSize, 10), 1);
|
3114
|
-
return /* @__PURE__ */
|
3177
|
+
return /* @__PURE__ */ React73__default.createElement(Flex, { __css: styles3.container, ...boxProps }, /* @__PURE__ */ React73__default.createElement(
|
3115
3178
|
VerySmallButton,
|
3116
3179
|
{
|
3117
|
-
icon: /* @__PURE__ */
|
3180
|
+
icon: /* @__PURE__ */ React73__default.createElement(SubtractIcon, { stepLabel: clampedStepSize }),
|
3118
3181
|
"aria-label": t2(texts12.decrementButtonAriaLabel(clampedStepSize)),
|
3119
3182
|
onClick: () => onChange(Math.max(value - clampedStepSize, minValue)),
|
3120
3183
|
visibility: value <= minValue ? "hidden" : "visible",
|
3121
3184
|
isDisabled: formControlProps.disabled,
|
3122
3185
|
id: value <= minValue ? void 0 : formControlProps.id
|
3123
3186
|
}
|
3124
|
-
), withInput ? /* @__PURE__ */
|
3187
|
+
), withInput ? /* @__PURE__ */ React73__default.createElement(
|
3125
3188
|
chakra.input,
|
3126
3189
|
{
|
3127
3190
|
type: "number",
|
@@ -3144,7 +3207,7 @@ function NumericStepper({
|
|
3144
3207
|
onChange(Math.max(Math.min(numericInput, maxValue), minValue));
|
3145
3208
|
}
|
3146
3209
|
}
|
3147
|
-
) : /* @__PURE__ */
|
3210
|
+
) : /* @__PURE__ */ React73__default.createElement(
|
3148
3211
|
chakra.text,
|
3149
3212
|
{
|
3150
3213
|
sx: styles3.text,
|
@@ -3152,10 +3215,10 @@ function NumericStepper({
|
|
3152
3215
|
"aria-label": value.toString()
|
3153
3216
|
},
|
3154
3217
|
value
|
3155
|
-
), /* @__PURE__ */
|
3218
|
+
), /* @__PURE__ */ React73__default.createElement(
|
3156
3219
|
VerySmallButton,
|
3157
3220
|
{
|
3158
|
-
icon: /* @__PURE__ */
|
3221
|
+
icon: /* @__PURE__ */ React73__default.createElement(AddIcon, { stepLabel: clampedStepSize }),
|
3159
3222
|
"aria-label": t2(texts12.incrementButtonAriaLabel(clampedStepSize)),
|
3160
3223
|
onClick: () => onChange(Math.min(value + clampedStepSize, maxValue)),
|
3161
3224
|
visibility: value >= maxValue ? "hidden" : "visible",
|
@@ -3166,9 +3229,9 @@ function NumericStepper({
|
|
3166
3229
|
}
|
3167
3230
|
var VerySmallButton = (props) => {
|
3168
3231
|
const styles3 = useMultiStyleConfig("NumericStepper", {});
|
3169
|
-
return /* @__PURE__ */
|
3232
|
+
return /* @__PURE__ */ React73__default.createElement(IconButton, { variant: "primary", size: "xs", sx: styles3.button, ...props });
|
3170
3233
|
};
|
3171
|
-
var SubtractIcon = (props) => /* @__PURE__ */
|
3234
|
+
var SubtractIcon = (props) => /* @__PURE__ */ React73__default.createElement(React73__default.Fragment, null, /* @__PURE__ */ React73__default.createElement(
|
3172
3235
|
Box,
|
3173
3236
|
{
|
3174
3237
|
as: "svg",
|
@@ -3178,7 +3241,7 @@ var SubtractIcon = (props) => /* @__PURE__ */ React71__default.createElement(Rea
|
|
3178
3241
|
stroke: "currentColor",
|
3179
3242
|
...props
|
3180
3243
|
},
|
3181
|
-
/* @__PURE__ */
|
3244
|
+
/* @__PURE__ */ React73__default.createElement(
|
3182
3245
|
"line",
|
3183
3246
|
{
|
3184
3247
|
x1: "9",
|
@@ -3189,8 +3252,8 @@ var SubtractIcon = (props) => /* @__PURE__ */ React71__default.createElement(Rea
|
|
3189
3252
|
strokeLinecap: "round"
|
3190
3253
|
}
|
3191
3254
|
)
|
3192
|
-
), props.stepLabel > 1 && /* @__PURE__ */
|
3193
|
-
var AddIcon = (props) => /* @__PURE__ */
|
3255
|
+
), props.stepLabel > 1 && /* @__PURE__ */ React73__default.createElement(chakra.span, { paddingRight: "1" }, props.stepLabel.toString()));
|
3256
|
+
var AddIcon = (props) => /* @__PURE__ */ React73__default.createElement(React73__default.Fragment, null, /* @__PURE__ */ React73__default.createElement(
|
3194
3257
|
Box,
|
3195
3258
|
{
|
3196
3259
|
as: "svg",
|
@@ -3200,7 +3263,7 @@ var AddIcon = (props) => /* @__PURE__ */ React71__default.createElement(React71_
|
|
3200
3263
|
stroke: "currentColor",
|
3201
3264
|
...props
|
3202
3265
|
},
|
3203
|
-
/* @__PURE__ */
|
3266
|
+
/* @__PURE__ */ React73__default.createElement(
|
3204
3267
|
"line",
|
3205
3268
|
{
|
3206
3269
|
x1: "9",
|
@@ -3211,7 +3274,7 @@ var AddIcon = (props) => /* @__PURE__ */ React71__default.createElement(React71_
|
|
3211
3274
|
strokeLinecap: "round"
|
3212
3275
|
}
|
3213
3276
|
),
|
3214
|
-
/* @__PURE__ */
|
3277
|
+
/* @__PURE__ */ React73__default.createElement(
|
3215
3278
|
"line",
|
3216
3279
|
{
|
3217
3280
|
x1: "15",
|
@@ -3222,7 +3285,7 @@ var AddIcon = (props) => /* @__PURE__ */ React71__default.createElement(React71_
|
|
3222
3285
|
strokeLinecap: "round"
|
3223
3286
|
}
|
3224
3287
|
)
|
3225
|
-
), props.stepLabel > 1 && /* @__PURE__ */
|
3288
|
+
), props.stepLabel > 1 && /* @__PURE__ */ React73__default.createElement(chakra.span, { paddingRight: "1" }, props.stepLabel.toString()));
|
3226
3289
|
var texts12 = createTexts({
|
3227
3290
|
decrementButtonAriaLabel(stepSize) {
|
3228
3291
|
return {
|
@@ -3248,7 +3311,7 @@ var PasswordInput = forwardRef(
|
|
3248
3311
|
const formControlProps = useFormControlContext();
|
3249
3312
|
const autoGeneratedId = `password-input-${useId()}`;
|
3250
3313
|
const inputId = id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? autoGeneratedId;
|
3251
|
-
return /* @__PURE__ */
|
3314
|
+
return /* @__PURE__ */ React73__default.createElement(InputGroup, { position: "relative" }, leftIcon && /* @__PURE__ */ React73__default.createElement(InputLeftElement2, null, leftIcon), /* @__PURE__ */ React73__default.createElement(
|
3252
3315
|
Input$1,
|
3253
3316
|
{
|
3254
3317
|
...props,
|
@@ -3260,7 +3323,7 @@ var PasswordInput = forwardRef(
|
|
3260
3323
|
ref,
|
3261
3324
|
"data-attachable": true
|
3262
3325
|
}
|
3263
|
-
), /* @__PURE__ */
|
3326
|
+
), /* @__PURE__ */ React73__default.createElement(FormLabel3, { htmlFor: inputId, pointerEvents: "none" }, label), /* @__PURE__ */ React73__default.createElement(InputRightElement2, { width: "fit-content" }, /* @__PURE__ */ React73__default.createElement(
|
3264
3327
|
Button$1,
|
3265
3328
|
{
|
3266
3329
|
variant: "ghost",
|
@@ -3308,10 +3371,10 @@ var PhoneNumberInput = forwardRef(
|
|
3308
3371
|
nationalNumber: ""
|
3309
3372
|
}
|
3310
3373
|
});
|
3311
|
-
return /* @__PURE__ */
|
3374
|
+
return /* @__PURE__ */ React73__default.createElement(AttachedInputs, { ...boxProps }, /* @__PURE__ */ React73__default.createElement(
|
3312
3375
|
Suspense,
|
3313
3376
|
{
|
3314
|
-
fallback: /* @__PURE__ */
|
3377
|
+
fallback: /* @__PURE__ */ React73__default.createElement(
|
3315
3378
|
InfoSelect,
|
3316
3379
|
{
|
3317
3380
|
isLabelSrOnly: true,
|
@@ -3320,10 +3383,10 @@ var PhoneNumberInput = forwardRef(
|
|
3320
3383
|
height: "100%",
|
3321
3384
|
value: "+47"
|
3322
3385
|
},
|
3323
|
-
/* @__PURE__ */
|
3386
|
+
/* @__PURE__ */ React73__default.createElement(Item, { key: "+47" }, "+47")
|
3324
3387
|
)
|
3325
3388
|
},
|
3326
|
-
/* @__PURE__ */
|
3389
|
+
/* @__PURE__ */ React73__default.createElement(
|
3327
3390
|
LazyCountryCodeSelect,
|
3328
3391
|
{
|
3329
3392
|
value: value.countryCode,
|
@@ -3336,7 +3399,7 @@ var PhoneNumberInput = forwardRef(
|
|
3336
3399
|
width: "6.25rem"
|
3337
3400
|
}
|
3338
3401
|
)
|
3339
|
-
), /* @__PURE__ */
|
3402
|
+
), /* @__PURE__ */ React73__default.createElement(
|
3340
3403
|
Input,
|
3341
3404
|
{
|
3342
3405
|
ref,
|
@@ -3365,13 +3428,13 @@ var texts14 = createTexts({
|
|
3365
3428
|
sv: "Telefonnummer"
|
3366
3429
|
}
|
3367
3430
|
});
|
3368
|
-
var LazyCountryCodeSelect =
|
3431
|
+
var LazyCountryCodeSelect = React73__default.lazy(() => import('./CountryCodeSelect-EKYAUNTI.mjs'));
|
3369
3432
|
var Radio = forwardRef((props, ref) => {
|
3370
|
-
return /* @__PURE__ */
|
3433
|
+
return /* @__PURE__ */ React73__default.createElement(Radio$1, { ...props, ref });
|
3371
3434
|
});
|
3372
3435
|
var RadioGroup = forwardRef(
|
3373
3436
|
({ children, direction: direction2 = "row", ...rest }, ref) => {
|
3374
|
-
return /* @__PURE__ */
|
3437
|
+
return /* @__PURE__ */ React73__default.createElement(RadioGroup$1, { ...rest, ref }, /* @__PURE__ */ React73__default.createElement(Stack$1, { direction: direction2 }, children));
|
3375
3438
|
}
|
3376
3439
|
);
|
3377
3440
|
var SearchInput = forwardRef(
|
@@ -3381,7 +3444,7 @@ var SearchInput = forwardRef(
|
|
3381
3444
|
const formControlProps = useFormControlContext();
|
3382
3445
|
const autoGeneratedId = useId();
|
3383
3446
|
const inputId = props.id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? autoGeneratedId;
|
3384
|
-
return /* @__PURE__ */
|
3447
|
+
return /* @__PURE__ */ React73__default.createElement(InputGroup, { position: "relative" }, /* @__PURE__ */ React73__default.createElement(InputLeftElement2, null, /* @__PURE__ */ React73__default.createElement(SearchOutline24Icon, null)), /* @__PURE__ */ React73__default.createElement(
|
3385
3448
|
Input$1,
|
3386
3449
|
{
|
3387
3450
|
paddingLeft: 7,
|
@@ -3398,7 +3461,7 @@ var SearchInput = forwardRef(
|
|
3398
3461
|
placeholder: " ",
|
3399
3462
|
"data-attachable": true
|
3400
3463
|
}
|
3401
|
-
), /* @__PURE__ */
|
3464
|
+
), /* @__PURE__ */ React73__default.createElement(FormLabel3, { htmlFor: inputId, pointerEvents: "none" }, label ?? t2(texts15.label)), showClearButton && /* @__PURE__ */ React73__default.createElement(InputRightElement2, { width: "fit-content" }, /* @__PURE__ */ React73__default.createElement(
|
3402
3465
|
IconButton$1,
|
3403
3466
|
{
|
3404
3467
|
variant: "ghost",
|
@@ -3406,7 +3469,7 @@ var SearchInput = forwardRef(
|
|
3406
3469
|
size: "sm",
|
3407
3470
|
marginRight: 1,
|
3408
3471
|
"aria-label": t2(texts15.reset),
|
3409
|
-
icon: /* @__PURE__ */
|
3472
|
+
icon: /* @__PURE__ */ React73__default.createElement(CloseOutline24Icon, null),
|
3410
3473
|
onClick: onReset
|
3411
3474
|
}
|
3412
3475
|
)));
|
@@ -3428,7 +3491,7 @@ var texts15 = createTexts({
|
|
3428
3491
|
});
|
3429
3492
|
var Switch = forwardRef(
|
3430
3493
|
({ size: size2 = "md", ...props }, ref) => {
|
3431
|
-
return /* @__PURE__ */
|
3494
|
+
return /* @__PURE__ */ React73__default.createElement(Switch$1, { size: size2, ...props, ref });
|
3432
3495
|
}
|
3433
3496
|
);
|
3434
3497
|
var Textarea = forwardRef((props, ref) => {
|
@@ -3439,7 +3502,7 @@ var Textarea = forwardRef((props, ref) => {
|
|
3439
3502
|
const formControlProps = useFormControlContext();
|
3440
3503
|
const fallbackId = `textarea-${useId()}`;
|
3441
3504
|
const inputId = props.id ?? (formControlProps == null ? void 0 : formControlProps.id) ?? fallbackId;
|
3442
|
-
return /* @__PURE__ */
|
3505
|
+
return /* @__PURE__ */ React73__default.createElement(InputGroup, { position: "relative", ...spacingProps }, /* @__PURE__ */ React73__default.createElement(Textarea$1, { ...rest, id: inputId, ref, placeholder: " " }), label && /* @__PURE__ */ React73__default.createElement(FormLabel, { htmlFor: inputId, id: `${inputId}-label` }, label));
|
3443
3506
|
});
|
3444
3507
|
function getSpacingProps(props) {
|
3445
3508
|
const {
|
@@ -3561,7 +3624,7 @@ var LineIcon = ({
|
|
3561
3624
|
if (!Icon) {
|
3562
3625
|
return null;
|
3563
3626
|
}
|
3564
|
-
return /* @__PURE__ */
|
3627
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { sx: { ...styles3.iconContainer, ...sx }, ...rest }, /* @__PURE__ */ React73__default.createElement(Icon, { sx: styles3.icon }));
|
3565
3628
|
};
|
3566
3629
|
|
3567
3630
|
// src/linjetag/InfoTag.tsx
|
@@ -3577,7 +3640,7 @@ var InfoTag = ({
|
|
3577
3640
|
size: size2,
|
3578
3641
|
...customProps
|
3579
3642
|
});
|
3580
|
-
return /* @__PURE__ */
|
3643
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { sx: styles3.container }, /* @__PURE__ */ React73__default.createElement(
|
3581
3644
|
LineIcon,
|
3582
3645
|
{
|
3583
3646
|
variant,
|
@@ -3585,7 +3648,7 @@ var InfoTag = ({
|
|
3585
3648
|
sx: styles3.iconContainer,
|
3586
3649
|
...customProps
|
3587
3650
|
}
|
3588
|
-
), /* @__PURE__ */
|
3651
|
+
), /* @__PURE__ */ React73__default.createElement(Box, { sx: styles3.textContainer }, title && /* @__PURE__ */ React73__default.createElement(Box, { as: "span", sx: styles3.title }, title), title && description && " ", description && /* @__PURE__ */ React73__default.createElement(Box, { as: "span", sx: styles3.description }, description)));
|
3589
3652
|
};
|
3590
3653
|
var TravelTag = forwardRef(
|
3591
3654
|
({
|
@@ -3605,7 +3668,7 @@ var TravelTag = forwardRef(
|
|
3605
3668
|
backgroundColor: variant === "custom" ? rest.backgroundColor : void 0
|
3606
3669
|
});
|
3607
3670
|
const DeviationLevelIcon = getDeviationLevelIcon({ deviationLevel, size: size2 });
|
3608
|
-
return /* @__PURE__ */
|
3671
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { sx: styles3.container, "aria-disabled": isDisabled, ref, ...rest }, /* @__PURE__ */ React73__default.createElement(
|
3609
3672
|
LineIcon,
|
3610
3673
|
{
|
3611
3674
|
variant,
|
@@ -3613,7 +3676,7 @@ var TravelTag = forwardRef(
|
|
3613
3676
|
sx: styles3.iconContainer,
|
3614
3677
|
...rest
|
3615
3678
|
}
|
3616
|
-
), /* @__PURE__ */
|
3679
|
+
), /* @__PURE__ */ React73__default.createElement(Box, { sx: styles3.textContainer }, title && /* @__PURE__ */ React73__default.createElement(Box, { as: "span", sx: styles3.title }, title), title && description && " ", description && /* @__PURE__ */ React73__default.createElement(Box, { as: "span", sx: styles3.description }, description)), DeviationLevelIcon && /* @__PURE__ */ React73__default.createElement(DeviationLevelIcon, { sx: styles3.deviationIcon }));
|
3617
3680
|
}
|
3618
3681
|
);
|
3619
3682
|
var getDeviationLevelIcon = ({
|
@@ -3637,7 +3700,7 @@ var TextLink = forwardRef(
|
|
3637
3700
|
var _a6;
|
3638
3701
|
const { t: t2 } = useTranslation();
|
3639
3702
|
const isExternal = props.isExternal !== void 0 ? props.isExternal : Boolean((_a6 = props.href) == null ? void 0 : _a6.match(/^https?:\/\//));
|
3640
|
-
return /* @__PURE__ */
|
3703
|
+
return /* @__PURE__ */ React73__default.createElement(Link, { ...props, ref, isExternal }, children, isExternal && /* @__PURE__ */ React73__default.createElement(
|
3641
3704
|
LinkOutOutline24Icon,
|
3642
3705
|
{
|
3643
3706
|
marginLeft: 0.5,
|
@@ -3658,7 +3721,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3658
3721
|
const mainColor = colorScheme === "light" ? "#1d211c" : "#ffffff";
|
3659
3722
|
const accentColor = colorScheme === "light" ? "#138c6e" : "#ffffff";
|
3660
3723
|
const id = useId();
|
3661
|
-
return /* @__PURE__ */
|
3724
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { as: "svg", viewBox: "0 0 107 54", ...boxProps }, /* @__PURE__ */ React73__default.createElement("title", null, "Vy logo"), /* @__PURE__ */ React73__default.createElement(
|
3662
3725
|
"path",
|
3663
3726
|
{
|
3664
3727
|
fillRule: "evenodd",
|
@@ -3666,7 +3729,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3666
3729
|
d: "M79.97 33.44a.04.04 0 0 0 0-.08 5.76 5.76 0 0 1-2.32-.85c-1.56-1-2.79-2.9-3.83-6.07L68.14 7.16c-1.18-4.04-3.42-5.85-5.48-6.6a8.36 8.36 0 0 0-2.88-.52h-1.44a.04.04 0 0 0 0 .08c.57.09 1.18.24 1.8.5 1.92.8 3.92 2.63 5.06 6.54l5.61 19.07c1.06 3.3 2.31 5.27 3.92 6.3 1.01.64 2.17.9 3.5.9h1.74Z",
|
3667
3730
|
fill: mainColor
|
3668
3731
|
}
|
3669
|
-
), /* @__PURE__ */
|
3732
|
+
), /* @__PURE__ */ React73__default.createElement(
|
3670
3733
|
"mask",
|
3671
3734
|
{
|
3672
3735
|
id: `${id}-a`,
|
@@ -3677,7 +3740,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3677
3740
|
width: "94",
|
3678
3741
|
height: "54"
|
3679
3742
|
},
|
3680
|
-
/* @__PURE__ */
|
3743
|
+
/* @__PURE__ */ React73__default.createElement(
|
3681
3744
|
"path",
|
3682
3745
|
{
|
3683
3746
|
fillRule: "evenodd",
|
@@ -3686,7 +3749,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3686
3749
|
fill: mainColor
|
3687
3750
|
}
|
3688
3751
|
)
|
3689
|
-
), /* @__PURE__ */
|
3752
|
+
), /* @__PURE__ */ React73__default.createElement(
|
3690
3753
|
"g",
|
3691
3754
|
{
|
3692
3755
|
mask: `url(#${id}-a)`,
|
@@ -3694,9 +3757,9 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3694
3757
|
clipRule: "evenodd",
|
3695
3758
|
fill: mainColor
|
3696
3759
|
},
|
3697
|
-
/* @__PURE__ */
|
3698
|
-
/* @__PURE__ */
|
3699
|
-
), /* @__PURE__ */
|
3760
|
+
/* @__PURE__ */ React73__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" }),
|
3761
|
+
/* @__PURE__ */ React73__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" })
|
3762
|
+
), /* @__PURE__ */ React73__default.createElement(
|
3700
3763
|
"path",
|
3701
3764
|
{
|
3702
3765
|
fillRule: "evenodd",
|
@@ -3704,7 +3767,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3704
3767
|
d: "M98.49.07h-1.82c-2.98 0-4.6 1.49-5.63 5.06l-6.52 21.79a18.22 18.22 0 0 1-1.67 3.96c.57.78 1.17 1.26 1.76 1.38 1.13-.96 2.06-2.75 2.89-5.46l6.49-21.67c.9-3.1 2.23-4.63 4.5-4.98a.04.04 0 0 0 0-.08Z",
|
3705
3768
|
fill: accentColor
|
3706
3769
|
}
|
3707
|
-
), /* @__PURE__ */
|
3770
|
+
), /* @__PURE__ */ React73__default.createElement(
|
3708
3771
|
"path",
|
3709
3772
|
{
|
3710
3773
|
fillRule: "evenodd",
|
@@ -3712,7 +3775,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3712
3775
|
d: "M85.25 34.53h-2.93L78.58 46.9c-1.82 6.1 1.05 6.73 2.15 6.73h2.31a.04.04 0 0 0 .01-.09c-1.25-.3-2.96-1.6-1.45-6.64l3.65-12.37ZM102.35.11c.02 0 .03-.02.03-.04a.04.04 0 0 0-.04-.04h-.4c-2.54 0-3.92 1.27-4.8 4.3 0 0-5 16.82-6.57 22.03-1.57 5.2-2.65 6.6-4.78 6.97l-.11.03a.04.04 0 0 0 0 .08h1.45c3.72 0 5.1-2.48 6.41-6.84l7.5-25.07c.19-.6.7-1.23 1.31-1.42Z",
|
3713
3776
|
fill: mainColor
|
3714
3777
|
}
|
3715
|
-
), /* @__PURE__ */
|
3778
|
+
), /* @__PURE__ */ React73__default.createElement(
|
3716
3779
|
"mask",
|
3717
3780
|
{
|
3718
3781
|
id: `${id}-b`,
|
@@ -3723,7 +3786,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3723
3786
|
width: "78",
|
3724
3787
|
height: "54"
|
3725
3788
|
},
|
3726
|
-
/* @__PURE__ */
|
3789
|
+
/* @__PURE__ */ React73__default.createElement(
|
3727
3790
|
"path",
|
3728
3791
|
{
|
3729
3792
|
fillRule: "evenodd",
|
@@ -3732,25 +3795,25 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3732
3795
|
fill: mainColor
|
3733
3796
|
}
|
3734
3797
|
)
|
3735
|
-
), /* @__PURE__ */
|
3798
|
+
), /* @__PURE__ */ React73__default.createElement("g", { mask: `url(#${id}-b)`, fillRule: "evenodd", clipRule: "evenodd" }, /* @__PURE__ */ React73__default.createElement(
|
3736
3799
|
"path",
|
3737
3800
|
{
|
3738
3801
|
d: "m88.2 34.45-3.96 13.46c-1.54 5.18.9 5.72 1.83 5.72h2.26a.04.04 0 0 0 0-.09c-1.05-.27-2.44-1.4-1.18-5.63l4.43-15.02c-.7.71-1.88 1.37-3.38 1.56ZM93.71 53.63c.02 0 .04-.02.04-.05a.04.04 0 0 0-.03-.04c-.9-.25-2.02-1.24-.96-4.77 0 0 12.4-42.2 13.08-44.6a3.1 3.1 0 0 0-2.47-4.1c-.02 0-.06-.02-.07.01-.01.04.03.06.04.06.3.16.63.52.45 1.14L89.84 48.77c-1.32 4.4.76 4.86 1.55 4.86h2.32ZM74.1 33.44a.04.04 0 0 0 0-.08 5.77 5.77 0 0 1-2.3-.83c-1.64-1.04-2.9-3.06-3.98-6.5-.1-.29-5.37-18.25-5.55-18.87-1.12-3.8-2.91-5.63-4.68-6.46a7.06 7.06 0 0 0-3.04-.66H53a.04.04 0 0 0-.02.08c.3.05 4.32.17 6.35 7.04 2.03 6.86 4.46 15.07 5.28 17.97 1.77 6.26 4.07 8.3 7.75 8.3h1.73Z",
|
3739
3802
|
fill: mainColor
|
3740
3803
|
}
|
3741
|
-
), /* @__PURE__ */
|
3804
|
+
), /* @__PURE__ */ React73__default.createElement(
|
3742
3805
|
"path",
|
3743
3806
|
{
|
3744
3807
|
d: "M55.43 2.4c-1.48 1.27-2.7 3.16-3.44 5.9-.07.29-11.08 37.74-11.32 38.55-.93 3.12-1.7 6.21-5.2 6.75a.04.04 0 0 0 0 .08h.7l.6-.01c3.56-.14 5.33-1.66 6.85-6.82L54.94 8.3c.44-1.44.96-3.08 1.7-4.52-.15-.25-.7-.96-1.2-1.38Z",
|
3745
3808
|
fill: mainColor
|
3746
3809
|
}
|
3747
|
-
), /* @__PURE__ */
|
3810
|
+
), /* @__PURE__ */ React73__default.createElement(
|
3748
3811
|
"path",
|
3749
3812
|
{
|
3750
3813
|
d: "M53.78 1.44a4.64 4.64 0 0 0-4.17.93A10.79 10.79 0 0 0 46.19 8L34.53 47.72c-.58 1.93-1.2 3.75-2.56 4.87-.62.5-1.4.86-2.39 1.01a.04.04 0 0 0 0 .08h1.8c1.57 0 2.69-.41 3.53-1.1 1.36-1.1 1.98-2.93 2.56-4.86L49.05 8.3c.73-2.74 1.95-4.63 3.43-5.9.43-.36.88-.68 1.35-.95l-.05-.01Z",
|
3751
3814
|
fill: accentColor
|
3752
3815
|
}
|
3753
|
-
)), /* @__PURE__ */
|
3816
|
+
)), /* @__PURE__ */ React73__default.createElement(
|
3754
3817
|
"path",
|
3755
3818
|
{
|
3756
3819
|
fillRule: "evenodd",
|
@@ -3760,7 +3823,7 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3760
3823
|
}
|
3761
3824
|
));
|
3762
3825
|
};
|
3763
|
-
var JumpForwardIcon = (props) => /* @__PURE__ */
|
3826
|
+
var JumpForwardIcon = (props) => /* @__PURE__ */ React73.createElement(Box, { as: "svg", ...props, viewBox: "0 0 32 30", fill: "none" }, /* @__PURE__ */ React73.createElement(
|
3764
3827
|
"path",
|
3765
3828
|
{
|
3766
3829
|
fillRule: "evenodd",
|
@@ -3768,7 +3831,7 @@ var JumpForwardIcon = (props) => /* @__PURE__ */ React71.createElement(Box, { as
|
|
3768
3831
|
d: "M22.388 7.5C20.567 5.967 18.251 5 15.75 5 9.951 5 5.25 9.701 5.25 15.5S9.951 26 15.75 26s10.5-4.701 10.5-10.5a1 1 0 1 1 2 0c0 6.904-5.596 12.5-12.5 12.5s-12.5-5.596-12.5-12.5S8.846 3 15.75 3c3.206 0 6.11 1.31 8.304 3.3l.206-1.441a1 1 0 0 1 1.98.282L25.617 9.5H21.25a1 1 0 1 1 0-2h1.138Z",
|
3769
3832
|
fill: "currentColor"
|
3770
3833
|
}
|
3771
|
-
), /* @__PURE__ */
|
3834
|
+
), /* @__PURE__ */ React73.createElement(
|
3772
3835
|
"path",
|
3773
3836
|
{
|
3774
3837
|
fillRule: "evenodd",
|
@@ -3777,7 +3840,7 @@ var JumpForwardIcon = (props) => /* @__PURE__ */ React71.createElement(Box, { as
|
|
3777
3840
|
fill: "currentColor"
|
3778
3841
|
}
|
3779
3842
|
));
|
3780
|
-
var JumpBackwardIcon = (props) => /* @__PURE__ */
|
3843
|
+
var JumpBackwardIcon = (props) => /* @__PURE__ */ React73.createElement(Box, { as: "svg", ...props, viewBox: "0 0 32 30", fill: "none" }, /* @__PURE__ */ React73.createElement(
|
3781
3844
|
"path",
|
3782
3845
|
{
|
3783
3846
|
fillRule: "evenodd",
|
@@ -3785,7 +3848,7 @@ var JumpBackwardIcon = (props) => /* @__PURE__ */ React71.createElement(Box, { a
|
|
3785
3848
|
d: "M9.612 7.5C11.433 5.967 13.749 5 16.25 5c5.799 0 10.5 4.701 10.5 10.5S22.049 26 16.25 26s-10.5-4.701-10.5-10.5a1 1 0 1 0-2 0c0 6.904 5.596 12.5 12.5 12.5s12.5-5.596 12.5-12.5S23.154 3 16.25 3c-3.206 0-6.11 1.31-8.304 3.3L7.74 4.86a1 1 0 0 0-1.98.282L6.383 9.5h4.367a1 1 0 1 0 0-2H9.612Z",
|
3786
3849
|
fill: "currentColor"
|
3787
3850
|
}
|
3788
|
-
), /* @__PURE__ */
|
3851
|
+
), /* @__PURE__ */ React73.createElement(
|
3789
3852
|
"path",
|
3790
3853
|
{
|
3791
3854
|
fillRule: "evenodd",
|
@@ -3794,7 +3857,7 @@ var JumpBackwardIcon = (props) => /* @__PURE__ */ React71.createElement(Box, { a
|
|
3794
3857
|
fill: "currentColor"
|
3795
3858
|
}
|
3796
3859
|
));
|
3797
|
-
var PlayIcon = (props) => /* @__PURE__ */
|
3860
|
+
var PlayIcon = (props) => /* @__PURE__ */ React73.createElement(Box, { as: "svg", ...props, fill: "none", viewBox: "0 0 60 60" }, /* @__PURE__ */ React73.createElement(
|
3798
3861
|
"path",
|
3799
3862
|
{
|
3800
3863
|
fillRule: "evenodd",
|
@@ -3803,7 +3866,7 @@ var PlayIcon = (props) => /* @__PURE__ */ React71.createElement(Box, { as: "svg"
|
|
3803
3866
|
fill: "currentColor"
|
3804
3867
|
}
|
3805
3868
|
));
|
3806
|
-
var PauseIcon = (props) => /* @__PURE__ */
|
3869
|
+
var PauseIcon = (props) => /* @__PURE__ */ React73.createElement(Box, { as: "svg", ...props, viewBox: "0 0 60 60", fill: "none" }, /* @__PURE__ */ React73.createElement(
|
3807
3870
|
"path",
|
3808
3871
|
{
|
3809
3872
|
fillRule: "evenodd",
|
@@ -3812,7 +3875,7 @@ var PauseIcon = (props) => /* @__PURE__ */ React71.createElement(Box, { as: "svg
|
|
3812
3875
|
fill: "currentColor"
|
3813
3876
|
}
|
3814
3877
|
));
|
3815
|
-
var SkipNextIcon = (props) => /* @__PURE__ */
|
3878
|
+
var SkipNextIcon = (props) => /* @__PURE__ */ React73.createElement(Box, { as: "svg", ...props, viewBox: "0 0 30 30", fill: "none" }, /* @__PURE__ */ React73.createElement(
|
3816
3879
|
"path",
|
3817
3880
|
{
|
3818
3881
|
fillRule: "evenodd",
|
@@ -3821,7 +3884,7 @@ var SkipNextIcon = (props) => /* @__PURE__ */ React71.createElement(Box, { as: "
|
|
3821
3884
|
fill: "currentColor"
|
3822
3885
|
}
|
3823
3886
|
));
|
3824
|
-
var SkipPreviousIcon = (props) => /* @__PURE__ */
|
3887
|
+
var SkipPreviousIcon = (props) => /* @__PURE__ */ React73.createElement(Box, { as: "svg", ...props, viewBox: "0 0 30 30", fill: "none" }, /* @__PURE__ */ React73.createElement(
|
3825
3888
|
"path",
|
3826
3889
|
{
|
3827
3890
|
fillRule: "evenodd",
|
@@ -3843,7 +3906,7 @@ var JumpButton = ({
|
|
3843
3906
|
variant: "jumpSkip",
|
3844
3907
|
size: size2
|
3845
3908
|
});
|
3846
|
-
return /* @__PURE__ */
|
3909
|
+
return /* @__PURE__ */ React73__default.createElement(
|
3847
3910
|
Center,
|
3848
3911
|
{
|
3849
3912
|
as: "button",
|
@@ -3852,7 +3915,7 @@ var JumpButton = ({
|
|
3852
3915
|
disabled: isDisabled,
|
3853
3916
|
...props
|
3854
3917
|
},
|
3855
|
-
direction2 === "forward" ? /* @__PURE__ */
|
3918
|
+
direction2 === "forward" ? /* @__PURE__ */ React73__default.createElement(JumpForwardIcon, { sx: styles3.icon }) : /* @__PURE__ */ React73__default.createElement(JumpBackwardIcon, { sx: styles3.icon })
|
3856
3919
|
);
|
3857
3920
|
};
|
3858
3921
|
var texts17 = createTexts({
|
@@ -3880,7 +3943,7 @@ var PlayPauseButton = ({
|
|
3880
3943
|
variant: "play",
|
3881
3944
|
size: size2
|
3882
3945
|
});
|
3883
|
-
return /* @__PURE__ */
|
3946
|
+
return /* @__PURE__ */ React73__default.createElement(
|
3884
3947
|
Center,
|
3885
3948
|
{
|
3886
3949
|
as: "button",
|
@@ -3889,7 +3952,7 @@ var PlayPauseButton = ({
|
|
3889
3952
|
disabled: isDisabled,
|
3890
3953
|
...props
|
3891
3954
|
},
|
3892
|
-
isPlaying ? /* @__PURE__ */
|
3955
|
+
isPlaying ? /* @__PURE__ */ React73__default.createElement(PauseIcon, { sx: styles3.icon }) : /* @__PURE__ */ React73__default.createElement(PlayIcon, { sx: styles3.icon })
|
3893
3956
|
);
|
3894
3957
|
};
|
3895
3958
|
var texts18 = createTexts({
|
@@ -3917,7 +3980,7 @@ var SkipButton = ({
|
|
3917
3980
|
variant: "jumpSkip",
|
3918
3981
|
size: size2
|
3919
3982
|
});
|
3920
|
-
return /* @__PURE__ */
|
3983
|
+
return /* @__PURE__ */ React73__default.createElement(
|
3921
3984
|
Center,
|
3922
3985
|
{
|
3923
3986
|
as: "button",
|
@@ -3926,7 +3989,7 @@ var SkipButton = ({
|
|
3926
3989
|
disabled: isDisabled,
|
3927
3990
|
...props
|
3928
3991
|
},
|
3929
|
-
direction2 === "forward" ? /* @__PURE__ */
|
3992
|
+
direction2 === "forward" ? /* @__PURE__ */ React73__default.createElement(SkipNextIcon, { sx: styles3.icon }) : /* @__PURE__ */ React73__default.createElement(SkipPreviousIcon, { sx: styles3.icon })
|
3930
3993
|
);
|
3931
3994
|
};
|
3932
3995
|
var texts19 = createTexts({
|
@@ -3949,13 +4012,13 @@ var ModalHeader = forwardRef(
|
|
3949
4012
|
fontSize: size2 === "lg" ? ["mobile.lg", "desktop.lg"] : ["mobile.md", "desktop.md"],
|
3950
4013
|
textAlign: size2 === "lg" ? "center" : "left"
|
3951
4014
|
};
|
3952
|
-
return /* @__PURE__ */
|
4015
|
+
return /* @__PURE__ */ React73__default.createElement(ModalHeader$1, { ...props, ref, ...styles3 });
|
3953
4016
|
}
|
3954
4017
|
);
|
3955
4018
|
|
3956
4019
|
// src/modal/Drawer.tsx
|
3957
4020
|
var Drawer = (props) => {
|
3958
|
-
return /* @__PURE__ */
|
4021
|
+
return /* @__PURE__ */ React73__default.createElement(DrawerProvider, { placement: props.placement }, /* @__PURE__ */ React73__default.createElement(Drawer$1, { ...props }));
|
3959
4022
|
};
|
3960
4023
|
var DrawerContent = forwardRef(
|
3961
4024
|
({ children, ...props }, ref) => {
|
@@ -3972,7 +4035,7 @@ var DrawerContent = forwardRef(
|
|
3972
4035
|
});
|
3973
4036
|
const isTopOrBottom = placement === "top" || placement === "bottom";
|
3974
4037
|
const widthConstraits = isTopOrBottom ? { width: ["100%", "37.5rem"], mx: "auto" } : {};
|
3975
|
-
return /* @__PURE__ */
|
4038
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { ...handlers }, /* @__PURE__ */ React73__default.createElement(
|
3976
4039
|
DrawerContent$1,
|
3977
4040
|
{
|
3978
4041
|
...widthConstraits,
|
@@ -3981,13 +4044,13 @@ var DrawerContent = forwardRef(
|
|
3981
4044
|
...props,
|
3982
4045
|
ref
|
3983
4046
|
},
|
3984
|
-
/* @__PURE__ */
|
4047
|
+
/* @__PURE__ */ React73__default.createElement(Box, { position: "relative" }, /* @__PURE__ */ React73__default.createElement(Box, { maxHeight: "100vh", maxWidth: "100vw", overflow: "auto" }, isTopOrBottom && /* @__PURE__ */ React73__default.createElement(Notch, null), /* @__PURE__ */ React73__default.createElement(Box, null, children)))
|
3985
4048
|
));
|
3986
4049
|
}
|
3987
4050
|
);
|
3988
4051
|
var Notch = forwardRef((props, ref) => {
|
3989
4052
|
const placement = useDrawerContext();
|
3990
|
-
return /* @__PURE__ */
|
4053
|
+
return /* @__PURE__ */ React73__default.createElement(
|
3991
4054
|
Box,
|
3992
4055
|
{
|
3993
4056
|
position: "absolute",
|
@@ -3999,14 +4062,14 @@ var Notch = forwardRef((props, ref) => {
|
|
3999
4062
|
...props,
|
4000
4063
|
ref
|
4001
4064
|
},
|
4002
|
-
/* @__PURE__ */
|
4065
|
+
/* @__PURE__ */ React73__default.createElement(
|
4003
4066
|
Center,
|
4004
4067
|
{
|
4005
4068
|
background: placement === "bottom" ? "bottom" : "top",
|
4006
4069
|
padding: 2,
|
4007
4070
|
borderRadius: "md"
|
4008
4071
|
},
|
4009
|
-
/* @__PURE__ */
|
4072
|
+
/* @__PURE__ */ React73__default.createElement(
|
4010
4073
|
Box,
|
4011
4074
|
{
|
4012
4075
|
width: "2.265rem",
|
@@ -4018,17 +4081,17 @@ var Notch = forwardRef((props, ref) => {
|
|
4018
4081
|
)
|
4019
4082
|
);
|
4020
4083
|
});
|
4021
|
-
var DrawerContext =
|
4022
|
-
var DrawerProvider = (props) => /* @__PURE__ */
|
4084
|
+
var DrawerContext = React73__default.createContext(void 0);
|
4085
|
+
var DrawerProvider = (props) => /* @__PURE__ */ React73__default.createElement(DrawerContext.Provider, { value: props.placement }, props.children);
|
4023
4086
|
var useDrawerContext = () => {
|
4024
|
-
return
|
4087
|
+
return React73__default.useContext(DrawerContext);
|
4025
4088
|
};
|
4026
4089
|
var FullScreenDrawer = ({
|
4027
4090
|
children,
|
4028
4091
|
title,
|
4029
4092
|
placement = "bottom",
|
4030
4093
|
leftButton = null,
|
4031
|
-
rightButton = /* @__PURE__ */
|
4094
|
+
rightButton = /* @__PURE__ */ React73__default.createElement(DrawerCloseButton2, null),
|
4032
4095
|
isOpen,
|
4033
4096
|
onClose
|
4034
4097
|
}) => {
|
@@ -4044,7 +4107,7 @@ var FullScreenDrawer = ({
|
|
4044
4107
|
useEffect(() => {
|
4045
4108
|
setContentBoxScrolled(false);
|
4046
4109
|
}, [isOpen]);
|
4047
|
-
return /* @__PURE__ */
|
4110
|
+
return /* @__PURE__ */ React73__default.createElement(Drawer, { isOpen, onClose, placement, size: "full" }, /* @__PURE__ */ React73__default.createElement(DrawerOverlay, null), /* @__PURE__ */ React73__default.createElement(
|
4048
4111
|
DrawerContent$1,
|
4049
4112
|
{
|
4050
4113
|
height: "100vh",
|
@@ -4052,7 +4115,7 @@ var FullScreenDrawer = ({
|
|
4052
4115
|
backgroundPosition: "top",
|
4053
4116
|
backgroundRepeat: "no-repeat"
|
4054
4117
|
},
|
4055
|
-
/* @__PURE__ */
|
4118
|
+
/* @__PURE__ */ React73__default.createElement(
|
4056
4119
|
DrawerTopMenu,
|
4057
4120
|
{
|
4058
4121
|
isScrolled: isContentBoxScrolled,
|
@@ -4061,7 +4124,7 @@ var FullScreenDrawer = ({
|
|
4061
4124
|
rightButton
|
4062
4125
|
}
|
4063
4126
|
),
|
4064
|
-
/* @__PURE__ */
|
4127
|
+
/* @__PURE__ */ React73__default.createElement(DrawerBody, { overflow: "auto", onScroll: onContentScroll }, children)
|
4065
4128
|
));
|
4066
4129
|
};
|
4067
4130
|
var DrawerTopMenu = ({
|
@@ -4074,7 +4137,7 @@ var DrawerTopMenu = ({
|
|
4074
4137
|
"bg.default.light",
|
4075
4138
|
"bg.default.dark"
|
4076
4139
|
);
|
4077
|
-
return /* @__PURE__ */
|
4140
|
+
return /* @__PURE__ */ React73__default.createElement(
|
4078
4141
|
Flex,
|
4079
4142
|
{
|
4080
4143
|
width: "100%",
|
@@ -4087,8 +4150,8 @@ var DrawerTopMenu = ({
|
|
4087
4150
|
transition: "box-shadow 0.2s",
|
4088
4151
|
boxShadow: isScrolled ? "md" : void 0
|
4089
4152
|
},
|
4090
|
-
/* @__PURE__ */
|
4091
|
-
/* @__PURE__ */
|
4153
|
+
/* @__PURE__ */ React73__default.createElement(Box, { flex: "1" }, leftButton),
|
4154
|
+
/* @__PURE__ */ React73__default.createElement(
|
4092
4155
|
DrawerHeader,
|
4093
4156
|
{
|
4094
4157
|
as: "h2",
|
@@ -4101,7 +4164,7 @@ var DrawerTopMenu = ({
|
|
4101
4164
|
},
|
4102
4165
|
title
|
4103
4166
|
),
|
4104
|
-
/* @__PURE__ */
|
4167
|
+
/* @__PURE__ */ React73__default.createElement(Box, { flex: "1" }, /* @__PURE__ */ React73__default.createElement(Box, { width: "fit-content", marginLeft: "auto" }, rightButton))
|
4105
4168
|
);
|
4106
4169
|
};
|
4107
4170
|
var DrawerCloseButton2 = () => {
|
@@ -4111,11 +4174,11 @@ var DrawerCloseButton2 = () => {
|
|
4111
4174
|
`(min-width: ${tokens11__default.size.breakpoint.sm})`
|
4112
4175
|
);
|
4113
4176
|
if (isScreenSizeMinSm) {
|
4114
|
-
return /* @__PURE__ */
|
4177
|
+
return /* @__PURE__ */ React73__default.createElement(
|
4115
4178
|
Button,
|
4116
4179
|
{
|
4117
4180
|
variant: "ghost",
|
4118
|
-
leftIcon: /* @__PURE__ */
|
4181
|
+
leftIcon: /* @__PURE__ */ React73__default.createElement(CloseFill24Icon, null),
|
4119
4182
|
onClick: onClose,
|
4120
4183
|
"aria-label": t2(texts20.close),
|
4121
4184
|
width: "fit-content",
|
@@ -4124,11 +4187,11 @@ var DrawerCloseButton2 = () => {
|
|
4124
4187
|
t2(texts20.close)
|
4125
4188
|
);
|
4126
4189
|
}
|
4127
|
-
return /* @__PURE__ */
|
4190
|
+
return /* @__PURE__ */ React73__default.createElement(
|
4128
4191
|
IconButton,
|
4129
4192
|
{
|
4130
4193
|
variant: "ghost",
|
4131
|
-
icon: /* @__PURE__ */
|
4194
|
+
icon: /* @__PURE__ */ React73__default.createElement(CloseFill30Icon, null),
|
4132
4195
|
onClick: onClose,
|
4133
4196
|
"aria-label": t2(texts20.close)
|
4134
4197
|
}
|
@@ -4148,7 +4211,7 @@ var SimpleDrawer = ({
|
|
4148
4211
|
title,
|
4149
4212
|
...props
|
4150
4213
|
}) => {
|
4151
|
-
return /* @__PURE__ */
|
4214
|
+
return /* @__PURE__ */ React73__default.createElement(Drawer, { placement, ...props }, /* @__PURE__ */ React73__default.createElement(DrawerOverlay, null), /* @__PURE__ */ React73__default.createElement(DrawerContent, null, /* @__PURE__ */ React73__default.createElement(DrawerCloseButton, null), title && /* @__PURE__ */ React73__default.createElement(ModalHeader, null, title), /* @__PURE__ */ React73__default.createElement(DrawerBody, null, children)));
|
4152
4215
|
};
|
4153
4216
|
var EXPIRATION_DELAY = 1e3 * 60 * 60 * 24 * 30;
|
4154
4217
|
var Nudge = ({
|
@@ -4170,7 +4233,7 @@ var Nudge = ({
|
|
4170
4233
|
}
|
4171
4234
|
return null;
|
4172
4235
|
}
|
4173
|
-
return /* @__PURE__ */
|
4236
|
+
return /* @__PURE__ */ React73__default.createElement(
|
4174
4237
|
Popover,
|
4175
4238
|
{
|
4176
4239
|
arrowSize: 12,
|
@@ -4178,8 +4241,8 @@ var Nudge = ({
|
|
4178
4241
|
defaultIsOpen: true,
|
4179
4242
|
...props
|
4180
4243
|
},
|
4181
|
-
/* @__PURE__ */
|
4182
|
-
/* @__PURE__ */
|
4244
|
+
/* @__PURE__ */ React73__default.createElement(PopoverAnchor, null, children),
|
4245
|
+
/* @__PURE__ */ React73__default.createElement(PopoverContent, { borderRadius: "sm" }, /* @__PURE__ */ React73__default.createElement(DarkMode, null, /* @__PURE__ */ React73__default.createElement(PopoverArrow, null), /* @__PURE__ */ React73__default.createElement(PopoverCloseButton, null), /* @__PURE__ */ React73__default.createElement(PopoverBody, { margin: 1 }, /* @__PURE__ */ React73__default.createElement(Box, { marginRight: 4 }, content), /* @__PURE__ */ React73__default.createElement(Box, { marginTop: 1.5 }, actions ?? /* @__PURE__ */ React73__default.createElement(ButtonGroup, null, /* @__PURE__ */ React73__default.createElement(Button, { variant: "tertiary", size: "xs" }, t2(texts21.close)), /* @__PURE__ */ React73__default.createElement(Button, { variant: "secondary", size: "xs", fontWeight: "bold" }, t2(texts21.showMe)))))))
|
4183
4246
|
);
|
4184
4247
|
};
|
4185
4248
|
var texts21 = createTexts({
|
@@ -4207,19 +4270,19 @@ var WizardNudge = ({
|
|
4207
4270
|
const totalSteps = content.length;
|
4208
4271
|
const isLastStep = totalSteps === currentStep;
|
4209
4272
|
const onNext = () => setCurrentStep((prev) => prev + 1);
|
4210
|
-
return /* @__PURE__ */
|
4273
|
+
return /* @__PURE__ */ React73__default.createElement(
|
4211
4274
|
Nudge,
|
4212
4275
|
{
|
4213
4276
|
onClose,
|
4214
4277
|
name,
|
4215
4278
|
content: content[currentStep - 1],
|
4216
|
-
actions: /* @__PURE__ */
|
4279
|
+
actions: /* @__PURE__ */ React73__default.createElement(Flex, { gap: 3, alignItems: "center" }, /* @__PURE__ */ React73__default.createElement(
|
4217
4280
|
ProgressIndicator,
|
4218
4281
|
{
|
4219
4282
|
activeStep: currentStep,
|
4220
4283
|
numberOfSteps: totalSteps
|
4221
4284
|
}
|
4222
|
-
), /* @__PURE__ */
|
4285
|
+
), /* @__PURE__ */ React73__default.createElement(Box, null, /* @__PURE__ */ React73__default.createElement(NextOrCloseButton, { isLastStep, onNext }))),
|
4223
4286
|
...props
|
4224
4287
|
},
|
4225
4288
|
children
|
@@ -4228,12 +4291,12 @@ var WizardNudge = ({
|
|
4228
4291
|
var NextOrCloseButton = ({ isLastStep, onNext }) => {
|
4229
4292
|
const { onClose } = usePopoverContext();
|
4230
4293
|
const { t: t2 } = useTranslation();
|
4231
|
-
return /* @__PURE__ */
|
4294
|
+
return /* @__PURE__ */ React73__default.createElement(
|
4232
4295
|
Button,
|
4233
4296
|
{
|
4234
4297
|
variant: "tertiary",
|
4235
4298
|
size: "xs",
|
4236
|
-
leftIcon: isLastStep ? void 0 : /* @__PURE__ */
|
4299
|
+
leftIcon: isLastStep ? void 0 : /* @__PURE__ */ React73__default.createElement(ArrowRightFill18Icon, null),
|
4237
4300
|
onClick: isLastStep ? onClose : onNext,
|
4238
4301
|
width: "fit-content"
|
4239
4302
|
},
|
@@ -4297,7 +4360,7 @@ var Pagination = ({
|
|
4297
4360
|
}
|
4298
4361
|
}
|
4299
4362
|
return displayPageNumbers.map(
|
4300
|
-
(pageNumber, index) => pageNumber === "..." ? /* @__PURE__ */
|
4363
|
+
(pageNumber, index) => pageNumber === "..." ? /* @__PURE__ */ React73__default.createElement(ListItem, { key: index, sx: style.listItem }, /* @__PURE__ */ React73__default.createElement(Center, null, "...")) : /* @__PURE__ */ React73__default.createElement(
|
4301
4364
|
Link,
|
4302
4365
|
{
|
4303
4366
|
key: index,
|
@@ -4314,7 +4377,7 @@ var Pagination = ({
|
|
4314
4377
|
)
|
4315
4378
|
);
|
4316
4379
|
};
|
4317
|
-
return /* @__PURE__ */
|
4380
|
+
return /* @__PURE__ */ React73__default.createElement(Flex, { as: "nav", "aria-label": "pagination" }, /* @__PURE__ */ React73__default.createElement(
|
4318
4381
|
UnorderedList,
|
4319
4382
|
{
|
4320
4383
|
display: "flex",
|
@@ -4323,22 +4386,22 @@ var Pagination = ({
|
|
4323
4386
|
padding: 0,
|
4324
4387
|
margin: 0
|
4325
4388
|
},
|
4326
|
-
/* @__PURE__ */
|
4389
|
+
/* @__PURE__ */ React73__default.createElement(ListItem, { "aria-label": t2(texts23.previousPage) }, /* @__PURE__ */ React73__default.createElement(
|
4327
4390
|
TextLink,
|
4328
4391
|
{
|
4329
4392
|
onClick: () => onPageChange(selectedPage - 1),
|
4330
4393
|
sx: hasPreviousPage ? style.link : style.disabled
|
4331
4394
|
},
|
4332
|
-
/* @__PURE__ */
|
4395
|
+
/* @__PURE__ */ React73__default.createElement(DropdownLeftFill18Icon, { sx: style.icon })
|
4333
4396
|
)),
|
4334
4397
|
renderPaginationButtons(),
|
4335
|
-
/* @__PURE__ */
|
4398
|
+
/* @__PURE__ */ React73__default.createElement(ListItem, { "aria-label": t2(texts23.nextPage) }, /* @__PURE__ */ React73__default.createElement(
|
4336
4399
|
TextLink,
|
4337
4400
|
{
|
4338
4401
|
onClick: () => onPageChange(selectedPage + 1),
|
4339
4402
|
sx: hasNextPage ? style.link : style.disabled
|
4340
4403
|
},
|
4341
|
-
/* @__PURE__ */
|
4404
|
+
/* @__PURE__ */ React73__default.createElement(DropdownRightFill18Icon, { sx: style.icon })
|
4342
4405
|
))
|
4343
4406
|
));
|
4344
4407
|
};
|
@@ -4358,7 +4421,7 @@ var texts23 = createTexts({
|
|
4358
4421
|
});
|
4359
4422
|
var ProgressDot = ({ isActive }) => {
|
4360
4423
|
const style = useMultiStyleConfig("ProgressIndicator");
|
4361
|
-
return /* @__PURE__ */
|
4424
|
+
return /* @__PURE__ */ React73__default.createElement(
|
4362
4425
|
Box,
|
4363
4426
|
{
|
4364
4427
|
as: "svg",
|
@@ -4368,7 +4431,7 @@ var ProgressDot = ({ isActive }) => {
|
|
4368
4431
|
viewBox: "0 0 100 100",
|
4369
4432
|
"aria-current": isActive ? "step" : void 0
|
4370
4433
|
},
|
4371
|
-
/* @__PURE__ */
|
4434
|
+
/* @__PURE__ */ React73__default.createElement(Box, { as: "circle", cx: "50", cy: "50", r: "50" })
|
4372
4435
|
);
|
4373
4436
|
};
|
4374
4437
|
|
@@ -4379,7 +4442,7 @@ var ProgressIndicator = ({
|
|
4379
4442
|
}) => {
|
4380
4443
|
const { t: t2 } = useTranslation();
|
4381
4444
|
const style = useMultiStyleConfig("ProgressIndicator");
|
4382
|
-
return /* @__PURE__ */
|
4445
|
+
return /* @__PURE__ */ React73__default.createElement(
|
4383
4446
|
Box,
|
4384
4447
|
{
|
4385
4448
|
__css: style.root,
|
@@ -4389,7 +4452,7 @@ var ProgressIndicator = ({
|
|
4389
4452
|
"aria-valuenow": activeStep,
|
4390
4453
|
"aria-valuetext": t2(texts24.stepsOf(activeStep, numberOfSteps))
|
4391
4454
|
},
|
4392
|
-
/* @__PURE__ */
|
4455
|
+
/* @__PURE__ */ React73__default.createElement(Box, { __css: style.container }, Array.from({ length: numberOfSteps }, (_, i) => /* @__PURE__ */ React73__default.createElement(
|
4393
4456
|
ProgressDot,
|
4394
4457
|
{
|
4395
4458
|
key: i,
|
@@ -4416,9 +4479,9 @@ var SporProvider = ({
|
|
4416
4479
|
}) => {
|
4417
4480
|
const brandCustomizations = brandTheme[brand] ?? {};
|
4418
4481
|
const extendedTheme = deepmerge(theme3, brandCustomizations);
|
4419
|
-
return /* @__PURE__ */
|
4482
|
+
return /* @__PURE__ */ React73__default.createElement(LanguageProvider, { language }, /* @__PURE__ */ React73__default.createElement(ChakraProvider, { theme: extendedTheme, ...props }, /* @__PURE__ */ React73__default.createElement(Global, { styles: fontFaces }), children));
|
4420
4483
|
};
|
4421
|
-
var StepperContext =
|
4484
|
+
var StepperContext = React73__default.createContext(null);
|
4422
4485
|
var StepperProvider = ({
|
4423
4486
|
activeStep,
|
4424
4487
|
children,
|
@@ -4426,7 +4489,7 @@ var StepperProvider = ({
|
|
4426
4489
|
numberOfSteps,
|
4427
4490
|
variant
|
4428
4491
|
}) => {
|
4429
|
-
return /* @__PURE__ */
|
4492
|
+
return /* @__PURE__ */ React73__default.createElement(
|
4430
4493
|
StepperContext.Provider,
|
4431
4494
|
{
|
4432
4495
|
value: { activeStep, onClick, numberOfSteps, variant }
|
@@ -4435,7 +4498,7 @@ var StepperProvider = ({
|
|
4435
4498
|
);
|
4436
4499
|
};
|
4437
4500
|
var useStepper = () => {
|
4438
|
-
const context =
|
4501
|
+
const context = React73__default.useContext(StepperContext);
|
4439
4502
|
if (!context) {
|
4440
4503
|
throw new Error(
|
4441
4504
|
"useStepper must be used within a StepperProvider. Most likely, you forgot to wrap your StepperStep in a Stepper component"
|
@@ -4463,7 +4526,7 @@ var Stepper = ({
|
|
4463
4526
|
const { t: t2 } = useTranslation();
|
4464
4527
|
const hideBackButtonOnFirstStep = activeStep === 1 && !onBackButtonClick;
|
4465
4528
|
const shownHeading = heading || title;
|
4466
|
-
return /* @__PURE__ */
|
4529
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { sx: style.root }, /* @__PURE__ */ React73__default.createElement(
|
4467
4530
|
StepperProvider,
|
4468
4531
|
{
|
4469
4532
|
onClick,
|
@@ -4471,7 +4534,7 @@ var Stepper = ({
|
|
4471
4534
|
variant,
|
4472
4535
|
numberOfSteps
|
4473
4536
|
},
|
4474
|
-
/* @__PURE__ */
|
4537
|
+
/* @__PURE__ */ React73__default.createElement(Box, { sx: style.container }, /* @__PURE__ */ React73__default.createElement(Box, { sx: style.innerContainer }, /* @__PURE__ */ React73__default.createElement(
|
4475
4538
|
Flex,
|
4476
4539
|
{
|
4477
4540
|
justifyContent: "space-between",
|
@@ -4479,11 +4542,11 @@ var Stepper = ({
|
|
4479
4542
|
gap: 2,
|
4480
4543
|
flex: 1
|
4481
4544
|
},
|
4482
|
-
/* @__PURE__ */
|
4545
|
+
/* @__PURE__ */ React73__default.createElement(
|
4483
4546
|
IconButton,
|
4484
4547
|
{
|
4485
4548
|
"aria-label": t2(texts25.back),
|
4486
|
-
icon: /* @__PURE__ */
|
4549
|
+
icon: /* @__PURE__ */ React73__default.createElement(ArrowLeftFill24Icon, null),
|
4487
4550
|
variant: "ghost",
|
4488
4551
|
size: "sm",
|
4489
4552
|
visibility: hideBackButtonOnFirstStep ? "hidden" : "visible",
|
@@ -4496,9 +4559,9 @@ var Stepper = ({
|
|
4496
4559
|
}
|
4497
4560
|
}
|
4498
4561
|
),
|
4499
|
-
shownHeading && /* @__PURE__ */
|
4500
|
-
/* @__PURE__ */
|
4501
|
-
)), /* @__PURE__ */
|
4562
|
+
shownHeading && /* @__PURE__ */ React73__default.createElement(Text4, { flex: 1, variant: "sm", as: headingLevel, sx: style.title }, shownHeading),
|
4563
|
+
/* @__PURE__ */ React73__default.createElement(Box, { sx: style.stepCounter }, t2(texts25.stepsOf(activeStep, numberOfSteps)))
|
4564
|
+
)), /* @__PURE__ */ React73__default.createElement(Flex, { justifyContent: "center", display: ["none", null, "flex"] }, steps.map((step, index) => /* @__PURE__ */ React73__default.createElement(
|
4502
4565
|
StepperStep,
|
4503
4566
|
{
|
4504
4567
|
key: index,
|
@@ -4543,14 +4606,14 @@ var StepperStep = ({
|
|
4543
4606
|
);
|
4544
4607
|
const iconColor = useColorModeValue("blackAlpha.200", "whiteAlpha.200");
|
4545
4608
|
const isDisabled = state2 !== "active" && isDisabledOverride || state2 === "disabled";
|
4546
|
-
return /* @__PURE__ */
|
4609
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { sx: style.stepContainer }, stepNumber > 1 && /* @__PURE__ */ React73__default.createElement(
|
4547
4610
|
DropdownRightFill18Icon,
|
4548
4611
|
{
|
4549
4612
|
marginX: 5,
|
4550
4613
|
display: ["none", null, "block"],
|
4551
4614
|
color: iconColor
|
4552
4615
|
}
|
4553
|
-
), isDisabled ? /* @__PURE__ */
|
4616
|
+
), isDisabled ? /* @__PURE__ */ React73__default.createElement(
|
4554
4617
|
Text4,
|
4555
4618
|
{
|
4556
4619
|
variant: "xs",
|
@@ -4560,7 +4623,7 @@ var StepperStep = ({
|
|
4560
4623
|
paddingX: 2
|
4561
4624
|
},
|
4562
4625
|
children
|
4563
|
-
) : /* @__PURE__ */
|
4626
|
+
) : /* @__PURE__ */ React73__default.createElement(
|
4564
4627
|
Button,
|
4565
4628
|
{
|
4566
4629
|
size: "xs",
|
@@ -4583,11 +4646,11 @@ var getState = (stepNumber, activeStep) => {
|
|
4583
4646
|
return "disabled";
|
4584
4647
|
};
|
4585
4648
|
var Tabs = forwardRef((props, ref) => {
|
4586
|
-
return /* @__PURE__ */
|
4649
|
+
return /* @__PURE__ */ React73.createElement(Tabs$1, { ...props, ref });
|
4587
4650
|
});
|
4588
4651
|
var Table = forwardRef((props, ref) => {
|
4589
4652
|
const { variant, size: size2, colorScheme, children, ...rest } = props;
|
4590
|
-
return /* @__PURE__ */
|
4653
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { ...rest, ...getStyleProps(props) }, /* @__PURE__ */ React73__default.createElement(Box, { overflowX: "auto", role: "region" }, /* @__PURE__ */ React73__default.createElement(
|
4591
4654
|
Table$1,
|
4592
4655
|
{
|
4593
4656
|
variant,
|
@@ -6403,16 +6466,16 @@ Object.assign({}, space, layout, flexbox, grid, position);
|
|
6403
6466
|
function defineStyle(styles3) {
|
6404
6467
|
return styles3;
|
6405
6468
|
}
|
6406
|
-
function defineStyleConfig(
|
6407
|
-
return
|
6469
|
+
function defineStyleConfig(config45) {
|
6470
|
+
return config45;
|
6408
6471
|
}
|
6409
6472
|
function createMultiStyleConfigHelpers(parts19) {
|
6410
6473
|
return {
|
6411
|
-
definePartsStyle(
|
6412
|
-
return
|
6474
|
+
definePartsStyle(config45) {
|
6475
|
+
return config45;
|
6413
6476
|
},
|
6414
|
-
defineMultiStyleConfig(
|
6415
|
-
return { parts: parts19, ...
|
6477
|
+
defineMultiStyleConfig(config45) {
|
6478
|
+
return { parts: parts19, ...config45 };
|
6416
6479
|
}
|
6417
6480
|
};
|
6418
6481
|
}
|
@@ -9701,6 +9764,7 @@ __export(components_exports, {
|
|
9701
9764
|
ProgressBar: () => progress_bar_default,
|
9702
9765
|
ProgressIndicator: () => progress_indicator_default,
|
9703
9766
|
Radio: () => radio_default,
|
9767
|
+
RadioCard: () => radio_card_default,
|
9704
9768
|
Select: () => select_default,
|
9705
9769
|
Skeleton: () => skeleton_default,
|
9706
9770
|
StaticCard: () => static_card_default,
|
@@ -9825,6 +9889,12 @@ function baseBorder(state2, props) {
|
|
9825
9889
|
)(props)
|
9826
9890
|
};
|
9827
9891
|
}
|
9892
|
+
case "active": {
|
9893
|
+
return {
|
9894
|
+
outline: "2px solid",
|
9895
|
+
outlineColor: mode("base.outline.light", "base.outline.dark")(props)
|
9896
|
+
};
|
9897
|
+
}
|
9828
9898
|
case "invalid": {
|
9829
9899
|
return {
|
9830
9900
|
outline: "2px solid",
|
@@ -9895,6 +9965,19 @@ function floatingBorder(state2, props) {
|
|
9895
9965
|
"floating.outline.hover.dark"
|
9896
9966
|
)(props)
|
9897
9967
|
};
|
9968
|
+
case "selected":
|
9969
|
+
return {
|
9970
|
+
outline: "1px solid",
|
9971
|
+
outlineColor: mode("outline.focus.light", "outline.focus.dark")(props)
|
9972
|
+
};
|
9973
|
+
case "active":
|
9974
|
+
return {
|
9975
|
+
outline: "1px solid",
|
9976
|
+
outlineColor: mode(
|
9977
|
+
"floating.outline.active.light",
|
9978
|
+
"floating.outline.active.dark"
|
9979
|
+
)(props)
|
9980
|
+
};
|
9898
9981
|
default:
|
9899
9982
|
return {
|
9900
9983
|
outline: "1px solid",
|
@@ -12867,8 +12950,66 @@ var config32 = helpers23.defineMultiStyleConfig({
|
|
12867
12950
|
}
|
12868
12951
|
});
|
12869
12952
|
var progress_indicator_default = config32;
|
12953
|
+
var config33 = defineStyleConfig$1({
|
12954
|
+
baseStyle: (props) => ({
|
12955
|
+
appearance: "none",
|
12956
|
+
border: "none",
|
12957
|
+
overflow: "hidden",
|
12958
|
+
fontSize: "inherit",
|
12959
|
+
display: "block",
|
12960
|
+
borderRadius: "sm",
|
12961
|
+
...focusVisibleStyles(props),
|
12962
|
+
_checked: {
|
12963
|
+
outline: "1px solid",
|
12964
|
+
outlineColor: "greenHaze",
|
12965
|
+
...floatingBackground("active", props),
|
12966
|
+
_hover: {
|
12967
|
+
...floatingBackground("active", props)
|
12968
|
+
}
|
12969
|
+
},
|
12970
|
+
_disabled: {
|
12971
|
+
pointerEvents: "none",
|
12972
|
+
...baseBackground("disabled", props),
|
12973
|
+
...baseBorder("disabled", props),
|
12974
|
+
...baseText("disabled", props)
|
12975
|
+
}
|
12976
|
+
}),
|
12977
|
+
variants: {
|
12978
|
+
base: (props) => ({
|
12979
|
+
...baseBackground("default", props),
|
12980
|
+
...baseBorder("default", props),
|
12981
|
+
_hover: {
|
12982
|
+
...baseBackground("hover", props),
|
12983
|
+
...baseBorder("hover", props)
|
12984
|
+
},
|
12985
|
+
_active: {
|
12986
|
+
...baseBackground("active", props)
|
12987
|
+
}
|
12988
|
+
}),
|
12989
|
+
floating: (props) => ({
|
12990
|
+
...floatingBackground("default", props),
|
12991
|
+
boxShadow: "sm",
|
12992
|
+
_hover: {
|
12993
|
+
...floatingBackground("hover", props),
|
12994
|
+
...floatingBorder("hover", props),
|
12995
|
+
boxShadow: "md"
|
12996
|
+
},
|
12997
|
+
_active: {
|
12998
|
+
...floatingBackground("active", props),
|
12999
|
+
...floatingBorder("active", props)
|
13000
|
+
},
|
13001
|
+
_checked: {
|
13002
|
+
_hover: {
|
13003
|
+
outline: "1px solid",
|
13004
|
+
outlineColor: "silver"
|
13005
|
+
}
|
13006
|
+
}
|
13007
|
+
})
|
13008
|
+
}
|
13009
|
+
});
|
13010
|
+
var radio_card_default = config33;
|
12870
13011
|
var helpers24 = createMultiStyleConfigHelpers$1(radioAnatomy.keys);
|
12871
|
-
var
|
13012
|
+
var config34 = helpers24.defineMultiStyleConfig({
|
12872
13013
|
baseStyle: (props) => ({
|
12873
13014
|
container: {
|
12874
13015
|
_hover: {
|
@@ -12921,10 +13062,10 @@ var config33 = helpers24.defineMultiStyleConfig({
|
|
12921
13062
|
}
|
12922
13063
|
})
|
12923
13064
|
});
|
12924
|
-
var radio_default =
|
13065
|
+
var radio_default = config34;
|
12925
13066
|
var parts17 = selectAnatomy.extend("root");
|
12926
13067
|
var helpers25 = createMultiStyleConfigHelpers$1(parts17.keys);
|
12927
|
-
var
|
13068
|
+
var config35 = helpers25.defineMultiStyleConfig({
|
12928
13069
|
baseStyle: (props) => ({
|
12929
13070
|
root: {
|
12930
13071
|
width: "100%",
|
@@ -12964,14 +13105,14 @@ var config34 = helpers25.defineMultiStyleConfig({
|
|
12964
13105
|
}
|
12965
13106
|
})
|
12966
13107
|
});
|
12967
|
-
var select_default =
|
13108
|
+
var select_default = config35;
|
12968
13109
|
var fade = (startColor, endColor) => keyframes({
|
12969
13110
|
from: { borderColor: startColor, background: startColor },
|
12970
13111
|
to: { borderColor: endColor, background: endColor }
|
12971
13112
|
});
|
12972
13113
|
var $startColor2 = cssVar$1("skeleton-start-color");
|
12973
13114
|
var $endColor2 = cssVar$1("skeleton-end-color");
|
12974
|
-
var
|
13115
|
+
var config36 = defineStyleConfig$1({
|
12975
13116
|
baseStyle: (props) => {
|
12976
13117
|
const defaultStartColor = mode("blackAlpha.300", "whiteAlpha.300")(props);
|
12977
13118
|
const defaultEndColor = mode("blackAlpha.100", "whiteAlpha.100")(props);
|
@@ -12994,7 +13135,7 @@ var config35 = defineStyleConfig$1({
|
|
12994
13135
|
};
|
12995
13136
|
}
|
12996
13137
|
});
|
12997
|
-
var skeleton_default =
|
13138
|
+
var skeleton_default = config36;
|
12998
13139
|
var parts18 = anatomy$1("stepper").parts(
|
12999
13140
|
"root",
|
13000
13141
|
"container",
|
@@ -13008,7 +13149,7 @@ var parts18 = anatomy$1("stepper").parts(
|
|
13008
13149
|
"closeButton"
|
13009
13150
|
);
|
13010
13151
|
var helpers26 = createMultiStyleConfigHelpers$1(parts18.keys);
|
13011
|
-
var
|
13152
|
+
var config37 = helpers26.defineMultiStyleConfig({
|
13012
13153
|
baseStyle: {
|
13013
13154
|
root: {
|
13014
13155
|
display: "flex",
|
@@ -13077,14 +13218,14 @@ var config36 = helpers26.defineMultiStyleConfig({
|
|
13077
13218
|
variant: "base"
|
13078
13219
|
}
|
13079
13220
|
});
|
13080
|
-
var stepper_default =
|
13221
|
+
var stepper_default = config37;
|
13081
13222
|
var $width2 = cssVar$1("switch-track-width");
|
13082
13223
|
var $height3 = cssVar$1("switch-track-height");
|
13083
13224
|
var $diff2 = cssVar$1("switch-track-diff");
|
13084
13225
|
var diffValue2 = calc$1.subtract($width2, $height3);
|
13085
13226
|
var $translateX2 = cssVar$1("switch-thumb-x");
|
13086
13227
|
var helpers27 = createMultiStyleConfigHelpers$1(switchAnatomy.keys);
|
13087
|
-
var
|
13228
|
+
var config38 = helpers27.defineMultiStyleConfig({
|
13088
13229
|
baseStyle: (props) => ({
|
13089
13230
|
container: {
|
13090
13231
|
[$diff2.variable]: diffValue2,
|
@@ -13177,14 +13318,14 @@ var config37 = helpers27.defineMultiStyleConfig({
|
|
13177
13318
|
size: "md"
|
13178
13319
|
}
|
13179
13320
|
});
|
13180
|
-
var switch_default =
|
13321
|
+
var switch_default = config38;
|
13181
13322
|
var helpers28 = createMultiStyleConfigHelpers$1(tableAnatomy.keys);
|
13182
13323
|
var numericStyles2 = {
|
13183
13324
|
"&[data-is-numeric=true]": {
|
13184
13325
|
textAlign: "end"
|
13185
13326
|
}
|
13186
13327
|
};
|
13187
|
-
var
|
13328
|
+
var config39 = helpers28.defineMultiStyleConfig({
|
13188
13329
|
baseStyle: (props) => ({
|
13189
13330
|
table: {
|
13190
13331
|
borderCollapse: "collapse",
|
@@ -13195,12 +13336,10 @@ var config38 = helpers28.defineMultiStyleConfig({
|
|
13195
13336
|
th: {
|
13196
13337
|
fontWeight: "bold",
|
13197
13338
|
textAlign: "start",
|
13198
|
-
verticalAlign: "top",
|
13199
13339
|
minWidth: "68px"
|
13200
13340
|
},
|
13201
13341
|
td: {
|
13202
|
-
textAlign: "start"
|
13203
|
-
verticalAlign: "top"
|
13342
|
+
textAlign: "start"
|
13204
13343
|
},
|
13205
13344
|
tfoot: {
|
13206
13345
|
tr: {
|
@@ -13334,9 +13473,9 @@ var config38 = helpers28.defineMultiStyleConfig({
|
|
13334
13473
|
colorScheme: "grey"
|
13335
13474
|
}
|
13336
13475
|
});
|
13337
|
-
var table_default =
|
13476
|
+
var table_default = config39;
|
13338
13477
|
var helpers29 = createMultiStyleConfigHelpers$1(tabsAnatomy.keys);
|
13339
|
-
var
|
13478
|
+
var config40 = helpers29.defineMultiStyleConfig({
|
13340
13479
|
baseStyle: (props) => ({
|
13341
13480
|
root: {
|
13342
13481
|
display: "flex",
|
@@ -13459,8 +13598,8 @@ var config39 = helpers29.defineMultiStyleConfig({
|
|
13459
13598
|
variant: "base"
|
13460
13599
|
}
|
13461
13600
|
});
|
13462
|
-
var tabs_default =
|
13463
|
-
var
|
13601
|
+
var tabs_default = config40;
|
13602
|
+
var config41 = defineStyleConfig$1({
|
13464
13603
|
baseStyle: (props) => ({
|
13465
13604
|
...input_default.baseStyle(props).field,
|
13466
13605
|
minHeight: "5rem",
|
@@ -13477,8 +13616,8 @@ var config40 = defineStyleConfig$1({
|
|
13477
13616
|
}
|
13478
13617
|
})
|
13479
13618
|
});
|
13480
|
-
var textarea_default =
|
13481
|
-
var
|
13619
|
+
var textarea_default = config41;
|
13620
|
+
var config42 = defineStyleConfig$1({
|
13482
13621
|
baseStyle: {
|
13483
13622
|
display: "flex",
|
13484
13623
|
alignItems: "center",
|
@@ -13502,8 +13641,8 @@ var config41 = defineStyleConfig$1({
|
|
13502
13641
|
}
|
13503
13642
|
}
|
13504
13643
|
});
|
13505
|
-
var toast_default =
|
13506
|
-
var
|
13644
|
+
var toast_default = config42;
|
13645
|
+
var config43 = defineStyleConfig$1({
|
13507
13646
|
baseStyle: (props) => ({
|
13508
13647
|
appearance: "none",
|
13509
13648
|
border: "none",
|
@@ -13511,23 +13650,19 @@ var config42 = defineStyleConfig$1({
|
|
13511
13650
|
fontSize: "inherit",
|
13512
13651
|
display: "block",
|
13513
13652
|
borderRadius: "md",
|
13514
|
-
// Except for white cards, all cards are light mode always
|
13515
13653
|
color: "text.default.light",
|
13654
|
+
...focusVisibleStyles(props),
|
13516
13655
|
...getColorSchemeBaseProps2(props)
|
13517
13656
|
})
|
13518
13657
|
});
|
13519
|
-
var static_card_default =
|
13658
|
+
var static_card_default = config43;
|
13520
13659
|
var getColorSchemeBaseProps2 = (props) => {
|
13521
13660
|
var _a6;
|
13522
13661
|
switch (props.colorScheme) {
|
13523
13662
|
case "white":
|
13524
13663
|
return {
|
13525
|
-
|
13526
|
-
|
13527
|
-
"white",
|
13528
|
-
`color-mix(in srgb, white 10%, var(--spor-colors-bg-default-dark))`
|
13529
|
-
)(props),
|
13530
|
-
color: "inherit"
|
13664
|
+
backgroundColor: "white",
|
13665
|
+
color: "darkGrey"
|
13531
13666
|
};
|
13532
13667
|
case "grey":
|
13533
13668
|
return {
|
@@ -13562,12 +13697,11 @@ var getColorSchemeBaseProps2 = (props) => {
|
|
13562
13697
|
}
|
13563
13698
|
default:
|
13564
13699
|
return {
|
13565
|
-
backgroundColor: ((_a6 = colors2[props.colorScheme]) == null ? void 0 : _a6[100]) ?? "default"
|
13566
|
-
...baseText("default", props)
|
13700
|
+
backgroundColor: ((_a6 = colors2[props.colorScheme]) == null ? void 0 : _a6[100]) ?? "default"
|
13567
13701
|
};
|
13568
13702
|
}
|
13569
13703
|
};
|
13570
|
-
var
|
13704
|
+
var config44 = defineStyleConfig$1({
|
13571
13705
|
baseStyle: (props) => ({
|
13572
13706
|
appearance: "none",
|
13573
13707
|
border: "none",
|
@@ -13575,156 +13709,52 @@ var config43 = defineStyleConfig$1({
|
|
13575
13709
|
fontSize: "inherit",
|
13576
13710
|
display: "block",
|
13577
13711
|
borderRadius: "md",
|
13578
|
-
...getColorSchemeBaseProps3(props),
|
13579
|
-
...getColorSchemeClickableProps2(props),
|
13580
13712
|
...focusVisibleStyles(props),
|
13581
|
-
...getColorSchemeActiveProps2(props),
|
13582
|
-
_hover: getColorSchemeHoverProps2(props),
|
13583
13713
|
_disabled: {
|
13584
13714
|
...baseBackground("disabled", props),
|
13585
|
-
...baseBorder("disabled", props),
|
13586
13715
|
...baseText("disabled", props),
|
13716
|
+
outline: "none",
|
13587
13717
|
pointerEvents: "none"
|
13588
13718
|
}
|
13589
13719
|
}),
|
13590
13720
|
variants: {
|
13591
13721
|
base: (props) => ({
|
13592
|
-
...
|
13722
|
+
...baseBorder("default", props),
|
13593
13723
|
_hover: {
|
13594
|
-
...
|
13724
|
+
...baseBorder("hover", props)
|
13595
13725
|
},
|
13596
13726
|
_active: {
|
13597
|
-
...baseBackground("active", props)
|
13727
|
+
...baseBackground("active", props),
|
13728
|
+
...baseBorder("active", props)
|
13598
13729
|
}
|
13599
13730
|
}),
|
13600
13731
|
accent: (props) => ({
|
13601
13732
|
...accentBackground("default", props),
|
13733
|
+
boxShadow: "sm",
|
13602
13734
|
_hover: {
|
13603
|
-
...accentBackground("hover", props)
|
13735
|
+
...accentBackground("hover", props),
|
13736
|
+
boxShadow: "sm"
|
13604
13737
|
},
|
13605
13738
|
_active: {
|
13606
|
-
...accentBackground("active", props)
|
13739
|
+
...accentBackground("active", props),
|
13740
|
+
boxShadow: "none"
|
13607
13741
|
}
|
13608
13742
|
}),
|
13609
13743
|
floating: (props) => ({
|
13610
13744
|
...floatingBackground("default", props),
|
13611
|
-
_hover: {
|
13612
|
-
...floatingBackground("hover", props)
|
13613
|
-
},
|
13614
|
-
_active: {
|
13615
|
-
...floatingBackground("active", props)
|
13616
|
-
}
|
13617
|
-
})
|
13618
|
-
},
|
13619
|
-
sizes: {
|
13620
|
-
sm: {
|
13621
13745
|
boxShadow: "sm",
|
13622
13746
|
_hover: {
|
13747
|
+
...floatingBackground("hover", props),
|
13623
13748
|
boxShadow: "md"
|
13624
13749
|
},
|
13625
13750
|
_active: {
|
13751
|
+
...floatingBackground("active", props),
|
13626
13752
|
boxShadow: "none"
|
13627
13753
|
}
|
13628
|
-
}
|
13629
|
-
lg: {
|
13630
|
-
boxShadow: "md",
|
13631
|
-
_hover: {
|
13632
|
-
boxShadow: "lg"
|
13633
|
-
},
|
13634
|
-
_active: {
|
13635
|
-
boxShadow: "sm"
|
13636
|
-
}
|
13637
|
-
}
|
13754
|
+
})
|
13638
13755
|
}
|
13639
13756
|
});
|
13640
|
-
var pressable_card_default =
|
13641
|
-
var getColorSchemeBaseProps3 = (props) => {
|
13642
|
-
switch (props.colorScheme) {
|
13643
|
-
case "default":
|
13644
|
-
return {
|
13645
|
-
...baseBorder("default", props),
|
13646
|
-
backgroundColor: mode(
|
13647
|
-
"white",
|
13648
|
-
`color-mix(in srgb, white 10%, var(--spor-colors-bg-default-dark))`
|
13649
|
-
)(props),
|
13650
|
-
color: "inherit"
|
13651
|
-
};
|
13652
|
-
case "accent":
|
13653
|
-
return {
|
13654
|
-
...accentBackground("default", props),
|
13655
|
-
...accentText("default", props),
|
13656
|
-
_hover: {
|
13657
|
-
...accentBackground("hover", props)
|
13658
|
-
},
|
13659
|
-
_active: {
|
13660
|
-
...accentBackground("active", props)
|
13661
|
-
}
|
13662
|
-
};
|
13663
|
-
}
|
13664
|
-
};
|
13665
|
-
function getColorSchemeClickableProps2(props) {
|
13666
|
-
switch (props.colorScheme) {
|
13667
|
-
case "default":
|
13668
|
-
return {
|
13669
|
-
...floatingBorder("default", props)
|
13670
|
-
};
|
13671
|
-
case "accent":
|
13672
|
-
return {
|
13673
|
-
...accentBackground("default", props),
|
13674
|
-
...accentText("default", props),
|
13675
|
-
_hover: {
|
13676
|
-
...accentBackground("hover", props)
|
13677
|
-
},
|
13678
|
-
_active: {
|
13679
|
-
...accentBackground("active", props)
|
13680
|
-
}
|
13681
|
-
};
|
13682
|
-
}
|
13683
|
-
}
|
13684
|
-
var getColorSchemeHoverProps2 = (props) => {
|
13685
|
-
switch (props.colorScheme) {
|
13686
|
-
case "default":
|
13687
|
-
return {
|
13688
|
-
backgroundColor: mode(
|
13689
|
-
"white",
|
13690
|
-
`color-mix(in srgb, white 20%, var(--spor-colors-bg-default-dark))`
|
13691
|
-
)(props),
|
13692
|
-
...floatingBorder("hover", props)
|
13693
|
-
};
|
13694
|
-
case "accent":
|
13695
|
-
return {
|
13696
|
-
...accentBackground("default", props),
|
13697
|
-
...accentText("default", props),
|
13698
|
-
_hover: {
|
13699
|
-
...accentBackground("hover", props)
|
13700
|
-
},
|
13701
|
-
_active: {
|
13702
|
-
...accentBackground("active", props)
|
13703
|
-
}
|
13704
|
-
};
|
13705
|
-
}
|
13706
|
-
};
|
13707
|
-
var getColorSchemeActiveProps2 = (props) => {
|
13708
|
-
const { colorScheme } = props;
|
13709
|
-
switch (colorScheme) {
|
13710
|
-
case "default":
|
13711
|
-
return {
|
13712
|
-
backgroundColor: mode("bg.tertiary.light", `bg.default.dark`)(props),
|
13713
|
-
...floatingBorder("active", props)
|
13714
|
-
};
|
13715
|
-
case "accent":
|
13716
|
-
return {
|
13717
|
-
...accentBackground("default", props),
|
13718
|
-
...accentText("default", props),
|
13719
|
-
_hover: {
|
13720
|
-
...accentBackground("hover", props)
|
13721
|
-
},
|
13722
|
-
_active: {
|
13723
|
-
...accentBackground("active", props)
|
13724
|
-
}
|
13725
|
-
};
|
13726
|
-
}
|
13727
|
-
};
|
13757
|
+
var pressable_card_default = config44;
|
13728
13758
|
var fontFaces = `
|
13729
13759
|
@font-face {
|
13730
13760
|
font-family: ${tokens11__default.asset.font["vy-sans"]["light"].name};
|
@@ -13826,12 +13856,12 @@ var brandTheme = {
|
|
13826
13856
|
};
|
13827
13857
|
var BaseToast = ({ children, variant, id }) => {
|
13828
13858
|
const styles3 = useStyleConfig("Toast", { variant });
|
13829
|
-
return /* @__PURE__ */
|
13859
|
+
return /* @__PURE__ */ React73__default.createElement(Flex, { sx: styles3, id }, /* @__PURE__ */ React73__default.createElement(ToastIcon, { variant }), children);
|
13830
13860
|
};
|
13831
13861
|
var ToastIcon = ({ variant }) => {
|
13832
13862
|
const Icon = getIcon3(variant);
|
13833
13863
|
const { t: t2 } = useTranslation();
|
13834
|
-
return /* @__PURE__ */
|
13864
|
+
return /* @__PURE__ */ React73__default.createElement(
|
13835
13865
|
Icon,
|
13836
13866
|
{
|
13837
13867
|
flexShrink: 0,
|
@@ -13881,7 +13911,7 @@ var ActionToast = ({
|
|
13881
13911
|
buttonText,
|
13882
13912
|
id
|
13883
13913
|
}) => {
|
13884
|
-
return /* @__PURE__ */
|
13914
|
+
return /* @__PURE__ */ React73__default.createElement(BaseToast, { variant, id }, /* @__PURE__ */ React73__default.createElement(Box, { marginRight: 2, flexGrow: "1" }, children), /* @__PURE__ */ React73__default.createElement(Button, { variant: "tertiary", size: "sm", onClick }, buttonText));
|
13885
13915
|
};
|
13886
13916
|
var ClosableToast = ({
|
13887
13917
|
children,
|
@@ -13891,13 +13921,13 @@ var ClosableToast = ({
|
|
13891
13921
|
}) => {
|
13892
13922
|
const styles3 = useMultiStyleConfig("Toast", { variant });
|
13893
13923
|
const { t: t2 } = useTranslation();
|
13894
|
-
return /* @__PURE__ */
|
13924
|
+
return /* @__PURE__ */ React73__default.createElement(BaseToast, { variant, id }, /* @__PURE__ */ React73__default.createElement(Box, { flexGrow: "1" }, children), /* @__PURE__ */ React73__default.createElement(
|
13895
13925
|
IconButton,
|
13896
13926
|
{
|
13897
13927
|
sx: styles3.dismissButton,
|
13898
13928
|
variant: "ghost",
|
13899
13929
|
"aria-label": t2(texts27.dismiss),
|
13900
|
-
icon: /* @__PURE__ */
|
13930
|
+
icon: /* @__PURE__ */ React73__default.createElement(CloseFill18Icon, null),
|
13901
13931
|
onClick: onClose
|
13902
13932
|
}
|
13903
13933
|
));
|
@@ -13925,7 +13955,7 @@ var useToast = () => {
|
|
13925
13955
|
};
|
13926
13956
|
var getToastComponent = (opts) => {
|
13927
13957
|
if ("isClosable" in opts && opts.isClosable) {
|
13928
|
-
return ({ onClose, id }) => /* @__PURE__ */
|
13958
|
+
return ({ onClose, id }) => /* @__PURE__ */ React73__default.createElement(
|
13929
13959
|
ClosableToast,
|
13930
13960
|
{
|
13931
13961
|
id,
|
@@ -13941,7 +13971,7 @@ var getToastComponent = (opts) => {
|
|
13941
13971
|
);
|
13942
13972
|
}
|
13943
13973
|
if ("buttonText" in opts) {
|
13944
|
-
return ({ id }) => /* @__PURE__ */
|
13974
|
+
return ({ id }) => /* @__PURE__ */ React73__default.createElement(
|
13945
13975
|
ActionToast,
|
13946
13976
|
{
|
13947
13977
|
id,
|
@@ -13952,7 +13982,7 @@ var getToastComponent = (opts) => {
|
|
13952
13982
|
opts.text
|
13953
13983
|
);
|
13954
13984
|
}
|
13955
|
-
return ({ id }) => /* @__PURE__ */
|
13985
|
+
return ({ id }) => /* @__PURE__ */ React73__default.createElement(BaseToast, { id, variant: opts.variant }, opts.text);
|
13956
13986
|
};
|
13957
13987
|
var Tooltip = ({
|
13958
13988
|
children,
|
@@ -13965,7 +13995,7 @@ var Tooltip = ({
|
|
13965
13995
|
withCloseButton = false,
|
13966
13996
|
...props
|
13967
13997
|
}) => {
|
13968
|
-
return /* @__PURE__ */
|
13998
|
+
return /* @__PURE__ */ React73__default.createElement(
|
13969
13999
|
Popover,
|
13970
14000
|
{
|
13971
14001
|
onClose,
|
@@ -13977,8 +14007,8 @@ var Tooltip = ({
|
|
13977
14007
|
arrowShadowColor: "none",
|
13978
14008
|
...props
|
13979
14009
|
},
|
13980
|
-
/* @__PURE__ */
|
13981
|
-
/* @__PURE__ */
|
14010
|
+
/* @__PURE__ */ React73__default.createElement(PopoverTrigger, null, children),
|
14011
|
+
/* @__PURE__ */ React73__default.createElement(PopoverContent, null, /* @__PURE__ */ React73__default.createElement(PopoverArrow, null), withCloseButton && /* @__PURE__ */ React73__default.createElement(PopoverCloseButton, null), /* @__PURE__ */ React73__default.createElement(PopoverBody, null, content))
|
13982
14012
|
);
|
13983
14013
|
};
|
13984
14014
|
|
@@ -14087,4 +14117,4 @@ function slugify(text, maxLength = 50) {
|
|
14087
14117
|
return text.normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[\u00C6\u00E6]/g, "ae").replace(/[\u00D8\u00F8]/g, "oe").replace(/[\u00C5\u00E5]/g, "aa").toLowerCase().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, "").substring(0, maxLength);
|
14088
14118
|
}
|
14089
14119
|
|
14090
|
-
export { Accordion, AttachedInputs, Badge, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, Card, CardSelect, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, ColorInlineLoader, ColorSpinner, Combobox, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerContent, Expandable, ExpandableAlert, ExpandableItem, FloatingActionButton, FormControl, FormErrorMessage, FormLabel3 as FormLabel, FullScreenDrawer, Heading, IconButton, InfoSelect, InfoTag, Input, InputLeftElement2 as InputLeftElement, InputRightElement2 as InputRightElement, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightSpinner, LineIcon, ListBox, ModalHeader, NativeSelect, Nudge, NumericStepper, Pagination, PasswordInput, PhoneNumberInput, PlayPauseButton, PressableCard, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioGroup, SearchInput, SimpleDrawer, Skeleton, SkeletonCircle, SkeletonText, SkipButton, SporProvider, Stack, StaticAlert, StaticCard, Stepper, StepperStep, Switch, Table, Tabs, Text4 as Text, TextLink, Textarea, TimePicker, Tooltip, TravelTag, VyLogo, WizardNudge, brandTheme, createTexts, fontFaces, slugify, theme, useSize, useToast, useTranslation };
|
14120
|
+
export { Accordion, AttachedInputs, Badge, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, Card2 as Card, CardSelect, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, ColorInlineLoader, ColorSpinner, Combobox, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerContent, Expandable, ExpandableAlert, ExpandableItem, FloatingActionButton, FormControl, FormErrorMessage, FormLabel3 as FormLabel, FullScreenDrawer, Heading, IconButton, InfoSelect, InfoTag, Input, InputLeftElement2 as InputLeftElement, InputRightElement2 as InputRightElement, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightSpinner, LineIcon, ListBox, ModalHeader, NativeSelect, Nudge, NumericStepper, Pagination, PasswordInput, PhoneNumberInput, PlayPauseButton, PressableCard, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioCard, RadioCardGroup, RadioGroup, SearchInput, SimpleDrawer, Skeleton, SkeletonCircle, SkeletonText, SkipButton, SporProvider, Stack, StaticAlert, StaticCard, Stepper, StepperStep, Switch, Table, Tabs, Text4 as Text, TextLink, Textarea, TimePicker, Tooltip, TravelTag, VyLogo, WizardNudge, brandTheme, createTexts, fontFaces, slugify, theme, useSize, useToast, useTranslation };
|