@vygruppen/spor-react 9.9.0 → 9.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +9 -9
- package/CHANGELOG.md +18 -0
- package/dist/{CountryCodeSelect-U25NF65N.mjs → CountryCodeSelect-CO6P2KH4.mjs} +1 -1
- package/dist/{chunk-TEDOVPXZ.mjs → chunk-QOPSLFKS.mjs} +178 -180
- package/dist/index.d.mts +165 -74
- package/dist/index.d.ts +165 -74
- package/dist/index.js +2598 -2604
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/src/layout/RadioCard.tsx +44 -35
- package/src/layout/RadioCardGroup.tsx +9 -5
- package/src/media-controller/JumpButton.tsx +6 -3
- package/src/media-controller/PlayPauseButton.tsx +6 -3
- package/src/media-controller/SkipButton.tsx +6 -3
- package/src/theme/components/media-controller-button.ts +20 -11
- package/src/theme/components/pressable-card.ts +4 -1
- package/src/theme/components/radio-card.ts +79 -40
- package/src/theme/components/static-card.ts +4 -2
- package/src/theme/utils/base-utils.ts +5 -2
- package/src/theme/utils/outline-utils.ts +26 -0
- package/src/theme/utils/types.ts +3 -1
- package/src/media-controller/icons.tsx +0 -80
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@9.
|
2
|
+
> @vygruppen/spor-react@9.10.1 build
|
3
3
|
> tsup src/index.tsx --dts --treeshake --format cjs,esm
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: src/index.tsx
|
@@ -9,12 +9,12 @@
|
|
9
9
|
[34mCJS[39m Build start
|
10
10
|
[34mESM[39m Build start
|
11
11
|
[34mDTS[39m Build start
|
12
|
-
[32mCJS[39m [1mdist/index.js [22m[
|
13
|
-
[32mCJS[39m ⚡️ Build success in
|
12
|
+
[32mCJS[39m [1mdist/index.js [22m[32m507.77 KB[39m
|
13
|
+
[32mCJS[39m ⚡️ Build success in 2227ms
|
14
14
|
[32mESM[39m [1mdist/index.mjs [22m[32m2.11 KB[39m
|
15
|
-
[32mESM[39m [1mdist/CountryCodeSelect-
|
16
|
-
[32mESM[39m [1mdist/chunk-
|
17
|
-
[32mESM[39m ⚡️ Build success in
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
19
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
20
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
15
|
+
[32mESM[39m [1mdist/CountryCodeSelect-CO6P2KH4.mjs [22m[32m1.19 KB[39m
|
16
|
+
[32mESM[39m [1mdist/chunk-QOPSLFKS.mjs [22m[32m397.40 KB[39m
|
17
|
+
[32mESM[39m ⚡️ Build success in 2228ms
|
18
|
+
[32mDTS[39m ⚡️ Build success in 13445ms
|
19
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m343.06 KB[39m
|
20
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m343.06 KB[39m
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 9.10.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 47c0496: Changed icons used in MediaController component
|
8
|
+
|
9
|
+
## 9.10.0
|
10
|
+
|
11
|
+
### Minor Changes
|
12
|
+
|
13
|
+
- c29f006: Fixed crusial error with RadioCard and updated styling.
|
14
|
+
- c29f006: Fix values on PressableCard
|
15
|
+
|
16
|
+
### Patch Changes
|
17
|
+
|
18
|
+
- Updated dependencies [c29f006]
|
19
|
+
- @vygruppen/spor-design-tokens@3.6.1
|
20
|
+
|
3
21
|
## 9.9.0
|
4
22
|
|
5
23
|
### Minor Changes
|
@@ -1,11 +1,11 @@
|
|
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,
|
4
|
+
import { forwardRef, Divider as Divider$1, Stack as Stack$1, useMultiStyleConfig, Box, chakra, useStyleConfig, Accordion as Accordion$1, Skeleton as Skeleton$1, useButtonGroup, Center, Flex, ButtonGroup as ButtonGroup$1, IconButton as IconButton$1, 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
6
|
import * as React73 from 'react';
|
7
7
|
import React73__default, { useId, createContext, useEffect, forwardRef as forwardRef$1, useRef, useState, Suspense, useContext, useCallback, useMemo, useLayoutEffect } from 'react';
|
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';
|
8
|
+
import { CloseFill30Icon, CloseFill24Icon, CloseFill18Icon, CalendarOutline24Icon, CloseOutline24Icon, SearchOutline24Icon, InformationFill24Icon, InformationFill18Icon, WarningFill24Icon, WarningFill18Icon, ErrorFill24Icon, ErrorFill18Icon, LinkOutOutline24Icon, DropdownRightFill18Icon, DropdownLeftFill18Icon, DropdownDownFill18Icon, DropdownDownFill24Icon, DropdownUpFill24Icon, Forward15MediaControllerFill30Icon, Backward15MediaControllerFill30Icon, PauseMediaControllerFill24Icon, PlayMediaControllerFill24Icon, NextMediaControllerFill30Icon, PreviousMediaControllerFill30Icon, 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';
|
11
11
|
import { useDateSegment, useDateField, useDatePicker, I18nProvider, usePopover, DismissButton, Overlay, useOverlayTrigger, useButton, useProgressBar, useCalendar, useDateRangePicker, useDialog, useFilter, useComboBox, useListBox, useOption, useListBoxSection, useSelect, HiddenSelect, useCalendarGrid, useRangeCalendar, useTimeField, useCalendarCell } from 'react-aria';
|
@@ -778,39 +778,34 @@ var Stack = forwardRef(
|
|
778
778
|
return /* @__PURE__ */ React73__default.createElement(Stack$1, { ...props, direction: flexDirection, ref });
|
779
779
|
}
|
780
780
|
);
|
781
|
-
|
782
|
-
// ../../node_modules/@chakra-ui/utils/dist/chunk-O3SWHQEE.mjs
|
783
|
-
var dataAttr = (condition) => condition ? "" : void 0;
|
784
781
|
var RadioCard = forwardRef(
|
785
|
-
({ children, variant = "base", ...props }, ref) => {
|
786
|
-
const
|
787
|
-
const styles3 = useStyleConfig("RadioCard", { variant });
|
788
|
-
const input = getInputProps({}, ref);
|
789
|
-
const radio = getRadioProps();
|
782
|
+
({ children, variant = "base", isChecked, onChange, ...props }, ref) => {
|
783
|
+
const styles3 = useMultiStyleConfig("RadioCard", { variant });
|
790
784
|
const id = `radio-card-${useId()}`;
|
791
|
-
|
792
|
-
|
785
|
+
const handleChange = (event) => {
|
786
|
+
onChange && onChange(event);
|
787
|
+
};
|
788
|
+
return /* @__PURE__ */ React73__default.createElement(Box, { as: "label", htmlFor: id, "aria-label": String(children), ref }, /* @__PURE__ */ React73__default.createElement(
|
789
|
+
chakra.input,
|
790
|
+
{
|
791
|
+
type: "radio",
|
792
|
+
id,
|
793
|
+
checked: isChecked,
|
794
|
+
onChange: handleChange,
|
795
|
+
...props,
|
796
|
+
sx: styles3.radioInput
|
797
|
+
}
|
798
|
+
), /* @__PURE__ */ React73__default.createElement(
|
799
|
+
Box,
|
793
800
|
{
|
794
|
-
|
795
|
-
|
796
|
-
|
801
|
+
...props,
|
802
|
+
__css: {
|
803
|
+
...styles3.container,
|
804
|
+
...isChecked && styles3.checked
|
805
|
+
}
|
797
806
|
},
|
798
|
-
|
799
|
-
|
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
|
-
);
|
807
|
+
children
|
808
|
+
));
|
814
809
|
}
|
815
810
|
);
|
816
811
|
var RadioCardGroup = ({
|
@@ -828,14 +823,18 @@ var RadioCardGroup = ({
|
|
828
823
|
onChange,
|
829
824
|
...props
|
830
825
|
});
|
831
|
-
const
|
832
|
-
return /* @__PURE__ */ React73__default.createElement(Stack$1, { direction: direction2, ...
|
826
|
+
const rootProps = getRootProps();
|
827
|
+
return /* @__PURE__ */ React73__default.createElement(Stack$1, { direction: direction2, ...rootProps }, recursiveMap(children, (child) => {
|
833
828
|
if (child.type === RadioCard) {
|
834
|
-
const
|
829
|
+
const radioProps = getRadioProps({ value: child.props.value });
|
835
830
|
const variantValue = variant;
|
836
831
|
return React73__default.cloneElement(
|
837
832
|
child,
|
838
|
-
{
|
833
|
+
{
|
834
|
+
...radioProps,
|
835
|
+
variant: variantValue,
|
836
|
+
...props
|
837
|
+
}
|
839
838
|
);
|
840
839
|
}
|
841
840
|
return child;
|
@@ -2691,6 +2690,9 @@ var CheckboxGroup = ({
|
|
2691
2690
|
}) => {
|
2692
2691
|
return /* @__PURE__ */ React73__default.createElement(CheckboxGroup$1, { ...props }, /* @__PURE__ */ React73__default.createElement(Stack$1, { direction: direction2 }, children));
|
2693
2692
|
};
|
2693
|
+
|
2694
|
+
// ../../node_modules/@chakra-ui/utils/dist/chunk-O3SWHQEE.mjs
|
2695
|
+
var dataAttr = (condition) => condition ? "" : void 0;
|
2694
2696
|
var ChoiceChip = forwardRef((props, ref) => {
|
2695
2697
|
const {
|
2696
2698
|
children,
|
@@ -3473,7 +3475,7 @@ var texts14 = createTexts({
|
|
3473
3475
|
sv: "Telefonnummer"
|
3474
3476
|
}
|
3475
3477
|
});
|
3476
|
-
var LazyCountryCodeSelect = React73__default.lazy(() => import('./CountryCodeSelect-
|
3478
|
+
var LazyCountryCodeSelect = React73__default.lazy(() => import('./CountryCodeSelect-CO6P2KH4.mjs'));
|
3477
3479
|
var Radio = forwardRef((props, ref) => {
|
3478
3480
|
return /* @__PURE__ */ React73__default.createElement(Radio$1, { ...props, ref });
|
3479
3481
|
});
|
@@ -3868,78 +3870,6 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3868
3870
|
}
|
3869
3871
|
));
|
3870
3872
|
};
|
3871
|
-
var JumpForwardIcon = (props) => /* @__PURE__ */ React73.createElement(Box, { as: "svg", ...props, viewBox: "0 0 32 30", fill: "none" }, /* @__PURE__ */ React73.createElement(
|
3872
|
-
"path",
|
3873
|
-
{
|
3874
|
-
fillRule: "evenodd",
|
3875
|
-
clipRule: "evenodd",
|
3876
|
-
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",
|
3877
|
-
fill: "currentColor"
|
3878
|
-
}
|
3879
|
-
), /* @__PURE__ */ React73.createElement(
|
3880
|
-
"path",
|
3881
|
-
{
|
3882
|
-
fillRule: "evenodd",
|
3883
|
-
clipRule: "evenodd",
|
3884
|
-
d: "M19.465 14.568c-.4-.232-.863-.348-1.392-.348-.655 0-1.195.172-1.62.516l.18-2.172h2.989c.256 0 .436-.016.54-.048.111-.032.168-.112.168-.24v-1.02h-.012c-.04.04-.117.064-.229.072a7.65 7.65 0 0 1-.515.012H15.42l-.36 4.464 1.273.12c.175-.16.384-.284.623-.372a2.11 2.11 0 0 1 .768-.144c.48 0 .856.136 1.128.408.28.264.42.624.42 1.08 0 .456-.155.832-.468 1.128-.311.296-.703.444-1.175.444a3.04 3.04 0 0 1-.936-.132 3.802 3.802 0 0 1-.756-.348c-.289-.176-.48-.34-.577-.492l-.636.888a.233.233 0 0 0-.047.12c0 .08.043.16.131.24.089.072.225.168.409.288.712.448 1.547.672 2.508.672.576 0 1.091-.124 1.547-.372a2.743 2.743 0 0 0 1.08-1.056 2.97 2.97 0 0 0 .384-1.5c0-.472-.111-.9-.335-1.284a2.314 2.314 0 0 0-.937-.924ZM13.338 19.224a2.954 2.954 0 0 1-.036-.552V11.34h-1.116a2.07 2.07 0 0 1-.576.768c-.248.208-.576.312-.984.312h-.144c-.136 0-.224-.016-.264-.048v.792c0 .128.052.208.156.24.112.032.296.048.552.048h.912v5.364c0 .248.028.424.084.528.056.104.172.156.348.156h1.248v-.012a.478.478 0 0 1-.18-.264Z",
|
3885
|
-
fill: "currentColor"
|
3886
|
-
}
|
3887
|
-
));
|
3888
|
-
var JumpBackwardIcon = (props) => /* @__PURE__ */ React73.createElement(Box, { as: "svg", ...props, viewBox: "0 0 32 30", fill: "none" }, /* @__PURE__ */ React73.createElement(
|
3889
|
-
"path",
|
3890
|
-
{
|
3891
|
-
fillRule: "evenodd",
|
3892
|
-
clipRule: "evenodd",
|
3893
|
-
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",
|
3894
|
-
fill: "currentColor"
|
3895
|
-
}
|
3896
|
-
), /* @__PURE__ */ React73.createElement(
|
3897
|
-
"path",
|
3898
|
-
{
|
3899
|
-
fillRule: "evenodd",
|
3900
|
-
clipRule: "evenodd",
|
3901
|
-
d: "M19.965 14.568c-.4-.232-.863-.348-1.392-.348-.655 0-1.195.172-1.62.516l.18-2.172h2.989c.256 0 .436-.016.54-.048.111-.032.168-.112.168-.24v-1.02h-.012c-.04.04-.117.064-.229.072a7.65 7.65 0 0 1-.515.012H15.92l-.36 4.464 1.273.12c.175-.16.384-.284.623-.372a2.11 2.11 0 0 1 .768-.144c.48 0 .856.136 1.128.408.28.264.42.624.42 1.08 0 .456-.155.832-.468 1.128-.311.296-.703.444-1.175.444a3.04 3.04 0 0 1-.936-.132 3.802 3.802 0 0 1-.756-.348c-.288-.176-.48-.34-.576-.492l-.636.888a.233.233 0 0 0-.049.12c0 .08.045.16.133.24.088.072.223.168.407.288.713.448 1.548.672 2.508.672.576 0 1.092-.124 1.548-.372a2.743 2.743 0 0 0 1.08-1.056 2.97 2.97 0 0 0 .384-1.5c0-.472-.111-.9-.335-1.284a2.314 2.314 0 0 0-.937-.924ZM13.838 19.224a2.954 2.954 0 0 1-.036-.552V11.34h-1.116a2.07 2.07 0 0 1-.576.768c-.248.208-.576.312-.984.312h-.144c-.136 0-.224-.016-.264-.048v.792c0 .128.052.208.156.24.112.032.296.048.552.048h.912v5.364c0 .248.028.424.084.528.056.104.172.156.348.156h1.248v-.012a.478.478 0 0 1-.18-.264Z",
|
3902
|
-
fill: "currentColor"
|
3903
|
-
}
|
3904
|
-
));
|
3905
|
-
var PlayIcon = (props) => /* @__PURE__ */ React73.createElement(Box, { as: "svg", ...props, fill: "none", viewBox: "0 0 60 60" }, /* @__PURE__ */ React73.createElement(
|
3906
|
-
"path",
|
3907
|
-
{
|
3908
|
-
fillRule: "evenodd",
|
3909
|
-
clipRule: "evenodd",
|
3910
|
-
d: "M30 60c16.569 0 30-13.431 30-30C60 13.431 46.569 0 30 0 13.431 0 0 13.431 0 30c0 16.569 13.431 30 30 30Zm-4.25-45.325c-1.97-1.533-4.84-.128-4.84 2.368v25.914c0 2.496 2.87 3.9 4.84 2.368l16.66-12.957a3 3 0 0 0 0-4.736L25.75 14.675Z",
|
3911
|
-
fill: "currentColor"
|
3912
|
-
}
|
3913
|
-
));
|
3914
|
-
var PauseIcon = (props) => /* @__PURE__ */ React73.createElement(Box, { as: "svg", ...props, viewBox: "0 0 60 60", fill: "none" }, /* @__PURE__ */ React73.createElement(
|
3915
|
-
"path",
|
3916
|
-
{
|
3917
|
-
fillRule: "evenodd",
|
3918
|
-
clipRule: "evenodd",
|
3919
|
-
d: "M60 30c0 16.569-13.431 30-30 30C13.431 60 0 46.569 0 30 0 13.431 13.431 0 30 0c16.569 0 30 13.431 30 30Zm-25.5-9.75a2.25 2.25 0 0 1 4.5 0v19.5a2.25 2.25 0 0 1-4.5 0v-19.5ZM23.25 18A2.25 2.25 0 0 0 21 20.25v19.5a2.25 2.25 0 0 0 4.5 0v-19.5A2.25 2.25 0 0 0 23.25 18Z",
|
3920
|
-
fill: "currentColor"
|
3921
|
-
}
|
3922
|
-
));
|
3923
|
-
var SkipNextIcon = (props) => /* @__PURE__ */ React73.createElement(Box, { as: "svg", ...props, viewBox: "0 0 30 30", fill: "none" }, /* @__PURE__ */ React73.createElement(
|
3924
|
-
"path",
|
3925
|
-
{
|
3926
|
-
fillRule: "evenodd",
|
3927
|
-
clipRule: "evenodd",
|
3928
|
-
d: "M6.453 4.18A1.695 1.695 0 0 0 4 5.696v18.608c0 1.26 1.326 2.08 2.453 1.516L24 17.047V25a1 1 0 1 0 2 0V5a1 1 0 1 0-2 0v7.952L6.453 4.18ZM23.623 15 6 23.81V6.19l17.623 8.81Z",
|
3929
|
-
fill: "currentColor"
|
3930
|
-
}
|
3931
|
-
));
|
3932
|
-
var SkipPreviousIcon = (props) => /* @__PURE__ */ React73.createElement(Box, { as: "svg", ...props, viewBox: "0 0 30 30", fill: "none" }, /* @__PURE__ */ React73.createElement(
|
3933
|
-
"path",
|
3934
|
-
{
|
3935
|
-
fillRule: "evenodd",
|
3936
|
-
clipRule: "evenodd",
|
3937
|
-
d: "M23.547 4.18A1.695 1.695 0 0 1 26 5.696v18.608c0 1.26-1.326 2.08-2.453 1.516L6 17.047V25a1 1 0 1 1-2 0V5a1 1 0 1 1 2 0v7.952L23.547 4.18ZM6.377 15 24 23.81V6.19l-17.623 8.81Z",
|
3938
|
-
fill: "currentColor"
|
3939
|
-
}
|
3940
|
-
));
|
3941
|
-
|
3942
|
-
// src/media-controller/JumpButton.tsx
|
3943
3873
|
var JumpButton = ({
|
3944
3874
|
direction: direction2,
|
3945
3875
|
isDisabled,
|
@@ -3960,7 +3890,7 @@ var JumpButton = ({
|
|
3960
3890
|
disabled: isDisabled,
|
3961
3891
|
...props
|
3962
3892
|
},
|
3963
|
-
direction2 === "forward" ? /* @__PURE__ */ React73__default.createElement(
|
3893
|
+
direction2 === "forward" ? /* @__PURE__ */ React73__default.createElement(Forward15MediaControllerFill30Icon, { sx: styles3.icon }) : /* @__PURE__ */ React73__default.createElement(Backward15MediaControllerFill30Icon, { sx: styles3.icon })
|
3964
3894
|
);
|
3965
3895
|
};
|
3966
3896
|
var texts17 = createTexts({
|
@@ -3997,7 +3927,7 @@ var PlayPauseButton = ({
|
|
3997
3927
|
disabled: isDisabled,
|
3998
3928
|
...props
|
3999
3929
|
},
|
4000
|
-
isPlaying ? /* @__PURE__ */ React73__default.createElement(
|
3930
|
+
isPlaying ? /* @__PURE__ */ React73__default.createElement(PauseMediaControllerFill24Icon, { sx: styles3.icon }) : /* @__PURE__ */ React73__default.createElement(PlayMediaControllerFill24Icon, { sx: styles3.icon })
|
4001
3931
|
);
|
4002
3932
|
};
|
4003
3933
|
var texts18 = createTexts({
|
@@ -4034,7 +3964,7 @@ var SkipButton = ({
|
|
4034
3964
|
disabled: isDisabled,
|
4035
3965
|
...props
|
4036
3966
|
},
|
4037
|
-
direction2 === "forward" ? /* @__PURE__ */ React73__default.createElement(
|
3967
|
+
direction2 === "forward" ? /* @__PURE__ */ React73__default.createElement(NextMediaControllerFill30Icon, { sx: styles3.icon }) : /* @__PURE__ */ React73__default.createElement(PreviousMediaControllerFill30Icon, { sx: styles3.icon })
|
4038
3968
|
);
|
4039
3969
|
};
|
4040
3970
|
var texts19 = createTexts({
|
@@ -6514,13 +6444,13 @@ function defineStyle(styles3) {
|
|
6514
6444
|
function defineStyleConfig(config45) {
|
6515
6445
|
return config45;
|
6516
6446
|
}
|
6517
|
-
function createMultiStyleConfigHelpers(
|
6447
|
+
function createMultiStyleConfigHelpers(parts20) {
|
6518
6448
|
return {
|
6519
6449
|
definePartsStyle(config45) {
|
6520
6450
|
return config45;
|
6521
6451
|
},
|
6522
6452
|
defineMultiStyleConfig(config45) {
|
6523
|
-
return { parts:
|
6453
|
+
return { parts: parts20, ...config45 };
|
6524
6454
|
}
|
6525
6455
|
};
|
6526
6456
|
}
|
@@ -6683,7 +6613,7 @@ function anatomy(name, map = {}) {
|
|
6683
6613
|
"[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?"
|
6684
6614
|
);
|
6685
6615
|
}
|
6686
|
-
function
|
6616
|
+
function parts20(...values) {
|
6687
6617
|
assert();
|
6688
6618
|
for (const part of values) {
|
6689
6619
|
map[part] = toPart(part);
|
@@ -6723,7 +6653,7 @@ function anatomy(name, map = {}) {
|
|
6723
6653
|
}
|
6724
6654
|
const __type = {};
|
6725
6655
|
return {
|
6726
|
-
parts:
|
6656
|
+
parts: parts20,
|
6727
6657
|
toPart,
|
6728
6658
|
extend,
|
6729
6659
|
selectors,
|
@@ -9936,8 +9866,11 @@ function baseBorder(state2, props) {
|
|
9936
9866
|
}
|
9937
9867
|
case "active": {
|
9938
9868
|
return {
|
9939
|
-
outline: "
|
9940
|
-
outlineColor: mode(
|
9869
|
+
outline: "1px solid",
|
9870
|
+
outlineColor: mode(
|
9871
|
+
"base.outline.default.light",
|
9872
|
+
"base.outline.default.dark"
|
9873
|
+
)(props)
|
9941
9874
|
};
|
9942
9875
|
}
|
9943
9876
|
case "invalid": {
|
@@ -12640,15 +12573,20 @@ var config26 = helpers17.defineMultiStyleConfig({
|
|
12640
12573
|
play: (props) => ({
|
12641
12574
|
container: {
|
12642
12575
|
padding: 0,
|
12576
|
+
...brandText("default", props),
|
12577
|
+
...brandBackground("default", props),
|
12643
12578
|
_hover: {
|
12644
|
-
|
12579
|
+
...brandText("default", props),
|
12580
|
+
...brandBackground("hover", props)
|
12645
12581
|
},
|
12646
12582
|
_active: {
|
12647
|
-
|
12583
|
+
...brandText("default", props),
|
12584
|
+
...brandBackground("active", props)
|
12648
12585
|
},
|
12649
12586
|
_disabled: {
|
12650
12587
|
pointerEvents: "none",
|
12651
|
-
color:
|
12588
|
+
color: mode("icon.disabled.light", "icon.disabled.dark")(props),
|
12589
|
+
...surface("disabled", props)
|
12652
12590
|
}
|
12653
12591
|
}
|
12654
12592
|
}),
|
@@ -12673,16 +12611,20 @@ var config26 = helpers17.defineMultiStyleConfig({
|
|
12673
12611
|
})
|
12674
12612
|
},
|
12675
12613
|
sizes: {
|
12676
|
-
sm: {
|
12614
|
+
sm: (props) => ({
|
12677
12615
|
container: {
|
12678
|
-
fontSize: 42
|
12616
|
+
fontSize: props.variant === "play" ? 24 : 42,
|
12617
|
+
width: props.variant === "play" ? "2.625rem" : void 0,
|
12618
|
+
height: props.variant === "play" ? "2.625rem" : void 0
|
12679
12619
|
}
|
12680
|
-
},
|
12681
|
-
lg: {
|
12620
|
+
}),
|
12621
|
+
lg: (props) => ({
|
12682
12622
|
container: {
|
12683
|
-
fontSize: 60
|
12623
|
+
fontSize: props.variant === "play" ? 38 : 60,
|
12624
|
+
width: props.variant === "play" ? "3.75rem" : void 0,
|
12625
|
+
height: props.variant === "play" ? "3.75rem" : void 0
|
12684
12626
|
}
|
12685
|
-
}
|
12627
|
+
})
|
12686
12628
|
}
|
12687
12629
|
});
|
12688
12630
|
var media_controller_button_default = config26;
|
@@ -13022,66 +12964,119 @@ var config32 = helpers23.defineMultiStyleConfig({
|
|
13022
12964
|
}
|
13023
12965
|
});
|
13024
12966
|
var progress_indicator_default = config32;
|
13025
|
-
|
12967
|
+
function outlineBorder(state2, props) {
|
12968
|
+
switch (state2) {
|
12969
|
+
case "error":
|
12970
|
+
return {
|
12971
|
+
outlineColor: mode("outline.error.light", "outline.error.dark")(props)
|
12972
|
+
};
|
12973
|
+
case "focus":
|
12974
|
+
return {
|
12975
|
+
outlineColor: mode("outline.focus.light", "outline.focus.dark")(props)
|
12976
|
+
};
|
12977
|
+
default:
|
12978
|
+
return {
|
12979
|
+
outlineColor: mode(
|
12980
|
+
"outline.default.light",
|
12981
|
+
"outline.default.dark"
|
12982
|
+
)(props)
|
12983
|
+
};
|
12984
|
+
}
|
12985
|
+
}
|
12986
|
+
|
12987
|
+
// src/theme/components/radio-card.ts
|
12988
|
+
var parts17 = anatomy$1("radio-card").parts("container", "checked", "radioInput");
|
12989
|
+
var helpers24 = createMultiStyleConfigHelpers$1(parts17.keys);
|
12990
|
+
var config33 = helpers24.defineMultiStyleConfig({
|
13026
12991
|
baseStyle: (props) => ({
|
13027
|
-
|
13028
|
-
|
13029
|
-
|
13030
|
-
|
13031
|
-
|
13032
|
-
|
13033
|
-
|
13034
|
-
|
13035
|
-
|
13036
|
-
|
13037
|
-
|
13038
|
-
|
13039
|
-
|
12992
|
+
container: {
|
12993
|
+
appearance: "none",
|
12994
|
+
border: "none",
|
12995
|
+
overflow: "hidden",
|
12996
|
+
fontSize: "inherit",
|
12997
|
+
display: "block",
|
12998
|
+
cursor: "pointer",
|
12999
|
+
borderRadius: "sm",
|
13000
|
+
...focusVisibleStyles(props),
|
13001
|
+
transitionProperty: "common",
|
13002
|
+
transitionDuration: "fast",
|
13003
|
+
_disabled: {
|
13004
|
+
pointerEvents: "none",
|
13005
|
+
...baseBackground("disabled", props),
|
13006
|
+
...baseBorder("disabled", props),
|
13007
|
+
...baseText("disabled", props)
|
13040
13008
|
}
|
13041
13009
|
},
|
13042
|
-
|
13043
|
-
|
13044
|
-
...
|
13045
|
-
...
|
13046
|
-
|
13010
|
+
checked: {
|
13011
|
+
outline: "2px solid",
|
13012
|
+
...outlineBorder("focus", props),
|
13013
|
+
...floatingBackground("active", props)
|
13014
|
+
},
|
13015
|
+
radioInput: {
|
13016
|
+
appearance: "none",
|
13017
|
+
position: "absolute",
|
13018
|
+
opacity: 0,
|
13019
|
+
zIndex: -1
|
13047
13020
|
}
|
13048
13021
|
}),
|
13049
13022
|
variants: {
|
13050
13023
|
base: (props) => ({
|
13051
|
-
|
13052
|
-
|
13053
|
-
|
13054
|
-
...
|
13055
|
-
|
13024
|
+
container: {
|
13025
|
+
...baseText("default", props),
|
13026
|
+
...baseBackground("default", props),
|
13027
|
+
...baseBorder("default", props),
|
13028
|
+
_hover: {
|
13029
|
+
...baseBackground("hover", props),
|
13030
|
+
...baseBorder("hover", props)
|
13031
|
+
},
|
13032
|
+
_active: {
|
13033
|
+
...baseBackground("active", props),
|
13034
|
+
...baseBorder("active", props)
|
13035
|
+
}
|
13056
13036
|
},
|
13057
|
-
|
13058
|
-
|
13037
|
+
checked: {
|
13038
|
+
_hover: {
|
13039
|
+
...baseBorder("hover", props)
|
13040
|
+
},
|
13041
|
+
_active: {
|
13042
|
+
...baseBackground("active", props),
|
13043
|
+
...baseBorder("active", props)
|
13044
|
+
}
|
13059
13045
|
}
|
13060
13046
|
}),
|
13061
13047
|
floating: (props) => ({
|
13062
|
-
|
13063
|
-
|
13064
|
-
|
13065
|
-
...floatingBackground("
|
13066
|
-
...floatingBorder("
|
13067
|
-
boxShadow: "
|
13068
|
-
|
13069
|
-
|
13070
|
-
|
13071
|
-
|
13048
|
+
container: {
|
13049
|
+
...baseText("default", props),
|
13050
|
+
...baseBackground("default", props),
|
13051
|
+
...floatingBackground("default", props),
|
13052
|
+
...floatingBorder("default", props),
|
13053
|
+
boxShadow: "sm",
|
13054
|
+
_hover: {
|
13055
|
+
...floatingBackground("hover", props),
|
13056
|
+
...floatingBorder("hover", props),
|
13057
|
+
boxShadow: "md"
|
13058
|
+
},
|
13059
|
+
_active: {
|
13060
|
+
...floatingBackground("active", props),
|
13061
|
+
...floatingBorder("active", props)
|
13062
|
+
}
|
13072
13063
|
},
|
13073
|
-
|
13064
|
+
checked: {
|
13065
|
+
cursor: "normal",
|
13074
13066
|
_hover: {
|
13075
|
-
|
13076
|
-
|
13067
|
+
...floatingBorder("hover", props)
|
13068
|
+
},
|
13069
|
+
_active: {
|
13070
|
+
...floatingBackground("active", props),
|
13071
|
+
...floatingBorder("active", props)
|
13077
13072
|
}
|
13078
13073
|
}
|
13079
13074
|
})
|
13080
13075
|
}
|
13081
13076
|
});
|
13082
13077
|
var radio_card_default = config33;
|
13083
|
-
var
|
13084
|
-
var config34 =
|
13078
|
+
var helpers25 = createMultiStyleConfigHelpers$1(radioAnatomy.keys);
|
13079
|
+
var config34 = helpers25.defineMultiStyleConfig({
|
13085
13080
|
baseStyle: (props) => ({
|
13086
13081
|
container: {
|
13087
13082
|
_hover: {
|
@@ -13135,9 +13130,9 @@ var config34 = helpers24.defineMultiStyleConfig({
|
|
13135
13130
|
})
|
13136
13131
|
});
|
13137
13132
|
var radio_default = config34;
|
13138
|
-
var
|
13139
|
-
var
|
13140
|
-
var config35 =
|
13133
|
+
var parts18 = selectAnatomy.extend("root");
|
13134
|
+
var helpers26 = createMultiStyleConfigHelpers$1(parts18.keys);
|
13135
|
+
var config35 = helpers26.defineMultiStyleConfig({
|
13141
13136
|
baseStyle: (props) => ({
|
13142
13137
|
root: {
|
13143
13138
|
width: "100%",
|
@@ -13208,7 +13203,7 @@ var config36 = defineStyleConfig$1({
|
|
13208
13203
|
}
|
13209
13204
|
});
|
13210
13205
|
var skeleton_default = config36;
|
13211
|
-
var
|
13206
|
+
var parts19 = anatomy$1("stepper").parts(
|
13212
13207
|
"root",
|
13213
13208
|
"container",
|
13214
13209
|
"innerContainer",
|
@@ -13220,8 +13215,8 @@ var parts18 = anatomy$1("stepper").parts(
|
|
13220
13215
|
"stepTitle",
|
13221
13216
|
"closeButton"
|
13222
13217
|
);
|
13223
|
-
var
|
13224
|
-
var config37 =
|
13218
|
+
var helpers27 = createMultiStyleConfigHelpers$1(parts19.keys);
|
13219
|
+
var config37 = helpers27.defineMultiStyleConfig({
|
13225
13220
|
baseStyle: {
|
13226
13221
|
root: {
|
13227
13222
|
display: "flex",
|
@@ -13296,8 +13291,8 @@ var $height3 = cssVar$1("switch-track-height");
|
|
13296
13291
|
var $diff2 = cssVar$1("switch-track-diff");
|
13297
13292
|
var diffValue2 = calc$1.subtract($width2, $height3);
|
13298
13293
|
var $translateX2 = cssVar$1("switch-thumb-x");
|
13299
|
-
var
|
13300
|
-
var config38 =
|
13294
|
+
var helpers28 = createMultiStyleConfigHelpers$1(switchAnatomy.keys);
|
13295
|
+
var config38 = helpers28.defineMultiStyleConfig({
|
13301
13296
|
baseStyle: (props) => ({
|
13302
13297
|
container: {
|
13303
13298
|
[$diff2.variable]: diffValue2,
|
@@ -13391,13 +13386,13 @@ var config38 = helpers27.defineMultiStyleConfig({
|
|
13391
13386
|
}
|
13392
13387
|
});
|
13393
13388
|
var switch_default = config38;
|
13394
|
-
var
|
13389
|
+
var helpers29 = createMultiStyleConfigHelpers$1(tableAnatomy.keys);
|
13395
13390
|
var numericStyles2 = {
|
13396
13391
|
"&[data-is-numeric=true]": {
|
13397
13392
|
textAlign: "end"
|
13398
13393
|
}
|
13399
13394
|
};
|
13400
|
-
var config39 =
|
13395
|
+
var config39 = helpers29.defineMultiStyleConfig({
|
13401
13396
|
baseStyle: (props) => ({
|
13402
13397
|
table: {
|
13403
13398
|
borderCollapse: "collapse",
|
@@ -13544,8 +13539,8 @@ var config39 = helpers28.defineMultiStyleConfig({
|
|
13544
13539
|
}
|
13545
13540
|
});
|
13546
13541
|
var table_default = config39;
|
13547
|
-
var
|
13548
|
-
var config40 =
|
13542
|
+
var helpers30 = createMultiStyleConfigHelpers$1(tabsAnatomy.keys);
|
13543
|
+
var config40 = helpers30.defineMultiStyleConfig({
|
13549
13544
|
baseStyle: (props) => ({
|
13550
13545
|
root: {
|
13551
13546
|
display: "flex",
|
@@ -13795,6 +13790,7 @@ var config44 = defineStyleConfig$1({
|
|
13795
13790
|
}),
|
13796
13791
|
variants: {
|
13797
13792
|
base: (props) => ({
|
13793
|
+
cursor: "pointer",
|
13798
13794
|
...baseBorder("default", props),
|
13799
13795
|
_hover: {
|
13800
13796
|
...baseBorder("hover", props)
|
@@ -13809,7 +13805,7 @@ var config44 = defineStyleConfig$1({
|
|
13809
13805
|
boxShadow: "sm",
|
13810
13806
|
_hover: {
|
13811
13807
|
...accentBackground("hover", props),
|
13812
|
-
boxShadow: "
|
13808
|
+
boxShadow: "md"
|
13813
13809
|
},
|
13814
13810
|
_active: {
|
13815
13811
|
...accentBackground("active", props),
|
@@ -13818,6 +13814,7 @@ var config44 = defineStyleConfig$1({
|
|
13818
13814
|
}),
|
13819
13815
|
floating: (props) => ({
|
13820
13816
|
...floatingBackground("default", props),
|
13817
|
+
...floatingBorder("default", props),
|
13821
13818
|
boxShadow: "sm",
|
13822
13819
|
_hover: {
|
13823
13820
|
...floatingBackground("hover", props),
|
@@ -13825,6 +13822,7 @@ var config44 = defineStyleConfig$1({
|
|
13825
13822
|
boxShadow: "md"
|
13826
13823
|
},
|
13827
13824
|
_active: {
|
13825
|
+
...floatingBorder("default", props),
|
13828
13826
|
...floatingBackground("active", props),
|
13829
13827
|
boxShadow: "none"
|
13830
13828
|
}
|