@vygruppen/spor-react 9.10.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 +6 -0
- package/dist/{CountryCodeSelect-FVCL47RT.mjs → CountryCodeSelect-CO6P2KH4.mjs} +1 -1
- package/dist/{chunk-WZYWSOJB.mjs → chunk-QOPSLFKS.mjs} +23 -86
- package/dist/index.d.mts +13 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.js +21 -90
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- 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/static-card.ts +4 -2
- 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.10.
|
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
|
14
|
-
[32mESM[39m [1mdist/CountryCodeSelect-FVCL47RT.mjs [22m[32m1.19 KB[39m
|
12
|
+
[32mCJS[39m [1mdist/index.js [22m[32m507.77 KB[39m
|
13
|
+
[32mCJS[39m ⚡️ Build success in 2227ms
|
15
14
|
[32mESM[39m [1mdist/index.mjs [22m[32m2.11 KB[39m
|
16
|
-
[32mESM[39m [1mdist/
|
17
|
-
[32mESM[39m
|
18
|
-
[
|
19
|
-
[32mDTS[39m
|
20
|
-
[32mDTS[39m [1mdist/index.d.
|
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
@@ -5,7 +5,7 @@ import { forwardRef, Divider as Divider$1, Stack as Stack$1, useMultiStyleConfig
|
|
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';
|
@@ -3475,7 +3475,7 @@ var texts14 = createTexts({
|
|
3475
3475
|
sv: "Telefonnummer"
|
3476
3476
|
}
|
3477
3477
|
});
|
3478
|
-
var LazyCountryCodeSelect = React73__default.lazy(() => import('./CountryCodeSelect-
|
3478
|
+
var LazyCountryCodeSelect = React73__default.lazy(() => import('./CountryCodeSelect-CO6P2KH4.mjs'));
|
3479
3479
|
var Radio = forwardRef((props, ref) => {
|
3480
3480
|
return /* @__PURE__ */ React73__default.createElement(Radio$1, { ...props, ref });
|
3481
3481
|
});
|
@@ -3870,78 +3870,6 @@ var VyLogo = ({ colorScheme, ...boxProps }) => {
|
|
3870
3870
|
}
|
3871
3871
|
));
|
3872
3872
|
};
|
3873
|
-
var JumpForwardIcon = (props) => /* @__PURE__ */ React73.createElement(Box, { as: "svg", ...props, viewBox: "0 0 32 30", fill: "none" }, /* @__PURE__ */ React73.createElement(
|
3874
|
-
"path",
|
3875
|
-
{
|
3876
|
-
fillRule: "evenodd",
|
3877
|
-
clipRule: "evenodd",
|
3878
|
-
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",
|
3879
|
-
fill: "currentColor"
|
3880
|
-
}
|
3881
|
-
), /* @__PURE__ */ React73.createElement(
|
3882
|
-
"path",
|
3883
|
-
{
|
3884
|
-
fillRule: "evenodd",
|
3885
|
-
clipRule: "evenodd",
|
3886
|
-
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",
|
3887
|
-
fill: "currentColor"
|
3888
|
-
}
|
3889
|
-
));
|
3890
|
-
var JumpBackwardIcon = (props) => /* @__PURE__ */ React73.createElement(Box, { as: "svg", ...props, viewBox: "0 0 32 30", fill: "none" }, /* @__PURE__ */ React73.createElement(
|
3891
|
-
"path",
|
3892
|
-
{
|
3893
|
-
fillRule: "evenodd",
|
3894
|
-
clipRule: "evenodd",
|
3895
|
-
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",
|
3896
|
-
fill: "currentColor"
|
3897
|
-
}
|
3898
|
-
), /* @__PURE__ */ React73.createElement(
|
3899
|
-
"path",
|
3900
|
-
{
|
3901
|
-
fillRule: "evenodd",
|
3902
|
-
clipRule: "evenodd",
|
3903
|
-
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",
|
3904
|
-
fill: "currentColor"
|
3905
|
-
}
|
3906
|
-
));
|
3907
|
-
var PlayIcon = (props) => /* @__PURE__ */ React73.createElement(Box, { as: "svg", ...props, fill: "none", viewBox: "0 0 60 60" }, /* @__PURE__ */ React73.createElement(
|
3908
|
-
"path",
|
3909
|
-
{
|
3910
|
-
fillRule: "evenodd",
|
3911
|
-
clipRule: "evenodd",
|
3912
|
-
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",
|
3913
|
-
fill: "currentColor"
|
3914
|
-
}
|
3915
|
-
));
|
3916
|
-
var PauseIcon = (props) => /* @__PURE__ */ React73.createElement(Box, { as: "svg", ...props, viewBox: "0 0 60 60", fill: "none" }, /* @__PURE__ */ React73.createElement(
|
3917
|
-
"path",
|
3918
|
-
{
|
3919
|
-
fillRule: "evenodd",
|
3920
|
-
clipRule: "evenodd",
|
3921
|
-
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",
|
3922
|
-
fill: "currentColor"
|
3923
|
-
}
|
3924
|
-
));
|
3925
|
-
var SkipNextIcon = (props) => /* @__PURE__ */ React73.createElement(Box, { as: "svg", ...props, viewBox: "0 0 30 30", fill: "none" }, /* @__PURE__ */ React73.createElement(
|
3926
|
-
"path",
|
3927
|
-
{
|
3928
|
-
fillRule: "evenodd",
|
3929
|
-
clipRule: "evenodd",
|
3930
|
-
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",
|
3931
|
-
fill: "currentColor"
|
3932
|
-
}
|
3933
|
-
));
|
3934
|
-
var SkipPreviousIcon = (props) => /* @__PURE__ */ React73.createElement(Box, { as: "svg", ...props, viewBox: "0 0 30 30", fill: "none" }, /* @__PURE__ */ React73.createElement(
|
3935
|
-
"path",
|
3936
|
-
{
|
3937
|
-
fillRule: "evenodd",
|
3938
|
-
clipRule: "evenodd",
|
3939
|
-
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",
|
3940
|
-
fill: "currentColor"
|
3941
|
-
}
|
3942
|
-
));
|
3943
|
-
|
3944
|
-
// src/media-controller/JumpButton.tsx
|
3945
3873
|
var JumpButton = ({
|
3946
3874
|
direction: direction2,
|
3947
3875
|
isDisabled,
|
@@ -3962,7 +3890,7 @@ var JumpButton = ({
|
|
3962
3890
|
disabled: isDisabled,
|
3963
3891
|
...props
|
3964
3892
|
},
|
3965
|
-
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 })
|
3966
3894
|
);
|
3967
3895
|
};
|
3968
3896
|
var texts17 = createTexts({
|
@@ -3999,7 +3927,7 @@ var PlayPauseButton = ({
|
|
3999
3927
|
disabled: isDisabled,
|
4000
3928
|
...props
|
4001
3929
|
},
|
4002
|
-
isPlaying ? /* @__PURE__ */ React73__default.createElement(
|
3930
|
+
isPlaying ? /* @__PURE__ */ React73__default.createElement(PauseMediaControllerFill24Icon, { sx: styles3.icon }) : /* @__PURE__ */ React73__default.createElement(PlayMediaControllerFill24Icon, { sx: styles3.icon })
|
4003
3931
|
);
|
4004
3932
|
};
|
4005
3933
|
var texts18 = createTexts({
|
@@ -4036,7 +3964,7 @@ var SkipButton = ({
|
|
4036
3964
|
disabled: isDisabled,
|
4037
3965
|
...props
|
4038
3966
|
},
|
4039
|
-
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 })
|
4040
3968
|
);
|
4041
3969
|
};
|
4042
3970
|
var texts19 = createTexts({
|
@@ -12645,15 +12573,20 @@ var config26 = helpers17.defineMultiStyleConfig({
|
|
12645
12573
|
play: (props) => ({
|
12646
12574
|
container: {
|
12647
12575
|
padding: 0,
|
12576
|
+
...brandText("default", props),
|
12577
|
+
...brandBackground("default", props),
|
12648
12578
|
_hover: {
|
12649
|
-
|
12579
|
+
...brandText("default", props),
|
12580
|
+
...brandBackground("hover", props)
|
12650
12581
|
},
|
12651
12582
|
_active: {
|
12652
|
-
|
12583
|
+
...brandText("default", props),
|
12584
|
+
...brandBackground("active", props)
|
12653
12585
|
},
|
12654
12586
|
_disabled: {
|
12655
12587
|
pointerEvents: "none",
|
12656
|
-
color:
|
12588
|
+
color: mode("icon.disabled.light", "icon.disabled.dark")(props),
|
12589
|
+
...surface("disabled", props)
|
12657
12590
|
}
|
12658
12591
|
}
|
12659
12592
|
}),
|
@@ -12678,16 +12611,20 @@ var config26 = helpers17.defineMultiStyleConfig({
|
|
12678
12611
|
})
|
12679
12612
|
},
|
12680
12613
|
sizes: {
|
12681
|
-
sm: {
|
12614
|
+
sm: (props) => ({
|
12682
12615
|
container: {
|
12683
|
-
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
|
12684
12619
|
}
|
12685
|
-
},
|
12686
|
-
lg: {
|
12620
|
+
}),
|
12621
|
+
lg: (props) => ({
|
12687
12622
|
container: {
|
12688
|
-
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
|
12689
12626
|
}
|
12690
|
-
}
|
12627
|
+
})
|
12691
12628
|
}
|
12692
12629
|
});
|
12693
12630
|
var media_controller_button_default = config26;
|
package/dist/index.d.mts
CHANGED
@@ -5475,31 +5475,40 @@ declare const theme: {
|
|
5475
5475
|
};
|
5476
5476
|
}) | undefined;
|
5477
5477
|
sizes?: {
|
5478
|
-
sm: {
|
5478
|
+
sm: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
5479
5479
|
container: {
|
5480
5480
|
fontSize: number;
|
5481
|
+
width: string | undefined;
|
5482
|
+
height: string | undefined;
|
5481
5483
|
};
|
5482
5484
|
};
|
5483
|
-
lg: {
|
5485
|
+
lg: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
5484
5486
|
container: {
|
5485
5487
|
fontSize: number;
|
5488
|
+
width: string | undefined;
|
5489
|
+
height: string | undefined;
|
5486
5490
|
};
|
5487
5491
|
};
|
5488
5492
|
} | undefined;
|
5489
5493
|
variants?: {
|
5490
5494
|
play: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
5491
5495
|
container: {
|
5492
|
-
padding: number;
|
5493
5496
|
_hover: {
|
5497
|
+
backgroundColor: string;
|
5494
5498
|
color: string;
|
5495
5499
|
};
|
5496
5500
|
_active: {
|
5501
|
+
backgroundColor: string;
|
5497
5502
|
color: string;
|
5498
5503
|
};
|
5499
5504
|
_disabled: {
|
5505
|
+
backgroundColor: string;
|
5500
5506
|
pointerEvents: string;
|
5501
5507
|
color: string;
|
5502
5508
|
};
|
5509
|
+
backgroundColor: string;
|
5510
|
+
color: string;
|
5511
|
+
padding: number;
|
5503
5512
|
};
|
5504
5513
|
};
|
5505
5514
|
jumpSkip: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
@@ -7288,7 +7297,7 @@ declare const theme: {
|
|
7288
7297
|
display: string;
|
7289
7298
|
borderRadius: string;
|
7290
7299
|
} | {
|
7291
|
-
backgroundColor:
|
7300
|
+
backgroundColor: string;
|
7292
7301
|
_focusVisible: {
|
7293
7302
|
outlineWidth: string;
|
7294
7303
|
outlineColor: string;
|
package/dist/index.d.ts
CHANGED
@@ -5475,31 +5475,40 @@ declare const theme: {
|
|
5475
5475
|
};
|
5476
5476
|
}) | undefined;
|
5477
5477
|
sizes?: {
|
5478
|
-
sm: {
|
5478
|
+
sm: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
5479
5479
|
container: {
|
5480
5480
|
fontSize: number;
|
5481
|
+
width: string | undefined;
|
5482
|
+
height: string | undefined;
|
5481
5483
|
};
|
5482
5484
|
};
|
5483
|
-
lg: {
|
5485
|
+
lg: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
5484
5486
|
container: {
|
5485
5487
|
fontSize: number;
|
5488
|
+
width: string | undefined;
|
5489
|
+
height: string | undefined;
|
5486
5490
|
};
|
5487
5491
|
};
|
5488
5492
|
} | undefined;
|
5489
5493
|
variants?: {
|
5490
5494
|
play: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
5491
5495
|
container: {
|
5492
|
-
padding: number;
|
5493
5496
|
_hover: {
|
5497
|
+
backgroundColor: string;
|
5494
5498
|
color: string;
|
5495
5499
|
};
|
5496
5500
|
_active: {
|
5501
|
+
backgroundColor: string;
|
5497
5502
|
color: string;
|
5498
5503
|
};
|
5499
5504
|
_disabled: {
|
5505
|
+
backgroundColor: string;
|
5500
5506
|
pointerEvents: string;
|
5501
5507
|
color: string;
|
5502
5508
|
};
|
5509
|
+
backgroundColor: string;
|
5510
|
+
color: string;
|
5511
|
+
padding: number;
|
5503
5512
|
};
|
5504
5513
|
};
|
5505
5514
|
jumpSkip: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
@@ -7288,7 +7297,7 @@ declare const theme: {
|
|
7288
7297
|
display: string;
|
7289
7298
|
borderRadius: string;
|
7290
7299
|
} | {
|
7291
|
-
backgroundColor:
|
7300
|
+
backgroundColor: string;
|
7292
7301
|
_focusVisible: {
|
7293
7302
|
outlineWidth: string;
|
7294
7303
|
outlineColor: string;
|
package/dist/index.js
CHANGED
@@ -4624,86 +4624,10 @@ var init_logo = __esm({
|
|
4624
4624
|
init_VyLogo();
|
4625
4625
|
}
|
4626
4626
|
});
|
4627
|
-
var JumpForwardIcon, JumpBackwardIcon, PlayIcon, PauseIcon, SkipNextIcon, SkipPreviousIcon;
|
4628
|
-
var init_icons2 = __esm({
|
4629
|
-
"src/media-controller/icons.tsx"() {
|
4630
|
-
JumpForwardIcon = (props) => /* @__PURE__ */ React73__namespace.createElement(react.Box, { as: "svg", ...props, viewBox: "0 0 32 30", fill: "none" }, /* @__PURE__ */ React73__namespace.createElement(
|
4631
|
-
"path",
|
4632
|
-
{
|
4633
|
-
fillRule: "evenodd",
|
4634
|
-
clipRule: "evenodd",
|
4635
|
-
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",
|
4636
|
-
fill: "currentColor"
|
4637
|
-
}
|
4638
|
-
), /* @__PURE__ */ React73__namespace.createElement(
|
4639
|
-
"path",
|
4640
|
-
{
|
4641
|
-
fillRule: "evenodd",
|
4642
|
-
clipRule: "evenodd",
|
4643
|
-
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",
|
4644
|
-
fill: "currentColor"
|
4645
|
-
}
|
4646
|
-
));
|
4647
|
-
JumpBackwardIcon = (props) => /* @__PURE__ */ React73__namespace.createElement(react.Box, { as: "svg", ...props, viewBox: "0 0 32 30", fill: "none" }, /* @__PURE__ */ React73__namespace.createElement(
|
4648
|
-
"path",
|
4649
|
-
{
|
4650
|
-
fillRule: "evenodd",
|
4651
|
-
clipRule: "evenodd",
|
4652
|
-
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",
|
4653
|
-
fill: "currentColor"
|
4654
|
-
}
|
4655
|
-
), /* @__PURE__ */ React73__namespace.createElement(
|
4656
|
-
"path",
|
4657
|
-
{
|
4658
|
-
fillRule: "evenodd",
|
4659
|
-
clipRule: "evenodd",
|
4660
|
-
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",
|
4661
|
-
fill: "currentColor"
|
4662
|
-
}
|
4663
|
-
));
|
4664
|
-
PlayIcon = (props) => /* @__PURE__ */ React73__namespace.createElement(react.Box, { as: "svg", ...props, fill: "none", viewBox: "0 0 60 60" }, /* @__PURE__ */ React73__namespace.createElement(
|
4665
|
-
"path",
|
4666
|
-
{
|
4667
|
-
fillRule: "evenodd",
|
4668
|
-
clipRule: "evenodd",
|
4669
|
-
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",
|
4670
|
-
fill: "currentColor"
|
4671
|
-
}
|
4672
|
-
));
|
4673
|
-
PauseIcon = (props) => /* @__PURE__ */ React73__namespace.createElement(react.Box, { as: "svg", ...props, viewBox: "0 0 60 60", fill: "none" }, /* @__PURE__ */ React73__namespace.createElement(
|
4674
|
-
"path",
|
4675
|
-
{
|
4676
|
-
fillRule: "evenodd",
|
4677
|
-
clipRule: "evenodd",
|
4678
|
-
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",
|
4679
|
-
fill: "currentColor"
|
4680
|
-
}
|
4681
|
-
));
|
4682
|
-
SkipNextIcon = (props) => /* @__PURE__ */ React73__namespace.createElement(react.Box, { as: "svg", ...props, viewBox: "0 0 30 30", fill: "none" }, /* @__PURE__ */ React73__namespace.createElement(
|
4683
|
-
"path",
|
4684
|
-
{
|
4685
|
-
fillRule: "evenodd",
|
4686
|
-
clipRule: "evenodd",
|
4687
|
-
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",
|
4688
|
-
fill: "currentColor"
|
4689
|
-
}
|
4690
|
-
));
|
4691
|
-
SkipPreviousIcon = (props) => /* @__PURE__ */ React73__namespace.createElement(react.Box, { as: "svg", ...props, viewBox: "0 0 30 30", fill: "none" }, /* @__PURE__ */ React73__namespace.createElement(
|
4692
|
-
"path",
|
4693
|
-
{
|
4694
|
-
fillRule: "evenodd",
|
4695
|
-
clipRule: "evenodd",
|
4696
|
-
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",
|
4697
|
-
fill: "currentColor"
|
4698
|
-
}
|
4699
|
-
));
|
4700
|
-
}
|
4701
|
-
});
|
4702
4627
|
exports.JumpButton = void 0; var texts18;
|
4703
4628
|
var init_JumpButton = __esm({
|
4704
4629
|
"src/media-controller/JumpButton.tsx"() {
|
4705
4630
|
init_src();
|
4706
|
-
init_icons2();
|
4707
4631
|
exports.JumpButton = ({
|
4708
4632
|
direction: direction2,
|
4709
4633
|
isDisabled,
|
@@ -4724,7 +4648,7 @@ var init_JumpButton = __esm({
|
|
4724
4648
|
disabled: isDisabled,
|
4725
4649
|
...props
|
4726
4650
|
},
|
4727
|
-
direction2 === "forward" ? /* @__PURE__ */ React73__namespace.default.createElement(
|
4651
|
+
direction2 === "forward" ? /* @__PURE__ */ React73__namespace.default.createElement(sporIconReact.Forward15MediaControllerFill30Icon, { sx: styles3.icon }) : /* @__PURE__ */ React73__namespace.default.createElement(sporIconReact.Backward15MediaControllerFill30Icon, { sx: styles3.icon })
|
4728
4652
|
);
|
4729
4653
|
};
|
4730
4654
|
texts18 = createTexts({
|
@@ -4747,7 +4671,6 @@ exports.PlayPauseButton = void 0; var texts19;
|
|
4747
4671
|
var init_PlayPauseButton = __esm({
|
4748
4672
|
"src/media-controller/PlayPauseButton.tsx"() {
|
4749
4673
|
init_src();
|
4750
|
-
init_icons2();
|
4751
4674
|
exports.PlayPauseButton = ({
|
4752
4675
|
size: size2 = "lg",
|
4753
4676
|
isPlaying,
|
@@ -4768,7 +4691,7 @@ var init_PlayPauseButton = __esm({
|
|
4768
4691
|
disabled: isDisabled,
|
4769
4692
|
...props
|
4770
4693
|
},
|
4771
|
-
isPlaying ? /* @__PURE__ */ React73__namespace.default.createElement(
|
4694
|
+
isPlaying ? /* @__PURE__ */ React73__namespace.default.createElement(sporIconReact.PauseMediaControllerFill24Icon, { sx: styles3.icon }) : /* @__PURE__ */ React73__namespace.default.createElement(sporIconReact.PlayMediaControllerFill24Icon, { sx: styles3.icon })
|
4772
4695
|
);
|
4773
4696
|
};
|
4774
4697
|
texts19 = createTexts({
|
@@ -4791,7 +4714,6 @@ exports.SkipButton = void 0; var texts20;
|
|
4791
4714
|
var init_SkipButton = __esm({
|
4792
4715
|
"src/media-controller/SkipButton.tsx"() {
|
4793
4716
|
init_src();
|
4794
|
-
init_icons2();
|
4795
4717
|
exports.SkipButton = ({
|
4796
4718
|
direction: direction2,
|
4797
4719
|
isDisabled,
|
@@ -4812,7 +4734,7 @@ var init_SkipButton = __esm({
|
|
4812
4734
|
disabled: isDisabled,
|
4813
4735
|
...props
|
4814
4736
|
},
|
4815
|
-
direction2 === "forward" ? /* @__PURE__ */ React73__namespace.default.createElement(
|
4737
|
+
direction2 === "forward" ? /* @__PURE__ */ React73__namespace.default.createElement(sporIconReact.NextMediaControllerFill30Icon, { sx: styles3.icon }) : /* @__PURE__ */ React73__namespace.default.createElement(sporIconReact.PreviousMediaControllerFill30Icon, { sx: styles3.icon })
|
4816
4738
|
);
|
4817
4739
|
};
|
4818
4740
|
texts20 = createTexts({
|
@@ -14328,15 +14250,20 @@ var init_media_controller_button = __esm({
|
|
14328
14250
|
play: (props) => ({
|
14329
14251
|
container: {
|
14330
14252
|
padding: 0,
|
14253
|
+
...brandText("default", props),
|
14254
|
+
...brandBackground("default", props),
|
14331
14255
|
_hover: {
|
14332
|
-
|
14256
|
+
...brandText("default", props),
|
14257
|
+
...brandBackground("hover", props)
|
14333
14258
|
},
|
14334
14259
|
_active: {
|
14335
|
-
|
14260
|
+
...brandText("default", props),
|
14261
|
+
...brandBackground("active", props)
|
14336
14262
|
},
|
14337
14263
|
_disabled: {
|
14338
14264
|
pointerEvents: "none",
|
14339
|
-
color:
|
14265
|
+
color: themeTools.mode("icon.disabled.light", "icon.disabled.dark")(props),
|
14266
|
+
...surface("disabled", props)
|
14340
14267
|
}
|
14341
14268
|
}
|
14342
14269
|
}),
|
@@ -14361,16 +14288,20 @@ var init_media_controller_button = __esm({
|
|
14361
14288
|
})
|
14362
14289
|
},
|
14363
14290
|
sizes: {
|
14364
|
-
sm: {
|
14291
|
+
sm: (props) => ({
|
14365
14292
|
container: {
|
14366
|
-
fontSize: 42
|
14293
|
+
fontSize: props.variant === "play" ? 24 : 42,
|
14294
|
+
width: props.variant === "play" ? "2.625rem" : void 0,
|
14295
|
+
height: props.variant === "play" ? "2.625rem" : void 0
|
14367
14296
|
}
|
14368
|
-
},
|
14369
|
-
lg: {
|
14297
|
+
}),
|
14298
|
+
lg: (props) => ({
|
14370
14299
|
container: {
|
14371
|
-
fontSize: 60
|
14300
|
+
fontSize: props.variant === "play" ? 38 : 60,
|
14301
|
+
width: props.variant === "play" ? "3.75rem" : void 0,
|
14302
|
+
height: props.variant === "play" ? "3.75rem" : void 0
|
14372
14303
|
}
|
14373
|
-
}
|
14304
|
+
})
|
14374
14305
|
}
|
14375
14306
|
});
|
14376
14307
|
media_controller_button_default = config26;
|
package/dist/index.mjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, Card, CardSelect, Center, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, Collapse, ColorInlineLoader, ColorSpinner, Combobox, Container, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkMode, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, ModalHeader as DrawerHeader, DrawerOverlay, Expandable, ExpandableAlert, ExpandableItem, Fade, Flex, FloatingActionButton, FormControl, FormErrorMessage, FormHelperText, FormLabel, FullScreenDrawer, Grid, GridItem, HStack, Heading, IconButton, Image, Img, InfoSelect, InfoTag, Input, InputGroup, InputLeftElement, InputRightElement, Item, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightMode, LightSpinner, LineIcon, ListBox, ListItem, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, NativeSelect, Nudge, NumericStepper, OrderedList, Pagination, PasswordInput, PhoneNumberInput, PlayPauseButton, Portal, PressableCard, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioCard, RadioCardGroup, RadioGroup, ScaleFade, SearchInput, Section, SimpleDrawer, SimpleGrid, Skeleton, SkeletonCircle, SkeletonText, SkipButton, Slide, SlideFade, Spacer, SporProvider, Stack, StaticAlert, StaticCard, Stepper, StepperStep, Switch, Tab, TabList, TabPanel, TabPanels, Table, TableCaption, Tabs, Tbody, Td, Text, TextLink, Textarea, Tfoot, Th, Thead, Time, TimePicker, Tooltip, Tr, TravelTag, UnorderedList, VStack, VyLogo, WizardNudge, Wrap, WrapItem, brandTheme, createTexts, defineStyleConfig, extendTheme, fontFaces, slugify, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useSize, useTheme, useToast, useToken, useTranslation } from './chunk-
|
1
|
+
export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, Card, CardSelect, Center, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, Collapse, ColorInlineLoader, ColorSpinner, Combobox, Container, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkMode, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, ModalHeader as DrawerHeader, DrawerOverlay, Expandable, ExpandableAlert, ExpandableItem, Fade, Flex, FloatingActionButton, FormControl, FormErrorMessage, FormHelperText, FormLabel, FullScreenDrawer, Grid, GridItem, HStack, Heading, IconButton, Image, Img, InfoSelect, InfoTag, Input, InputGroup, InputLeftElement, InputRightElement, Item, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightMode, LightSpinner, LineIcon, ListBox, ListItem, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, NativeSelect, Nudge, NumericStepper, OrderedList, Pagination, PasswordInput, PhoneNumberInput, PlayPauseButton, Portal, PressableCard, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioCard, RadioCardGroup, RadioGroup, ScaleFade, SearchInput, Section, SimpleDrawer, SimpleGrid, Skeleton, SkeletonCircle, SkeletonText, SkipButton, Slide, SlideFade, Spacer, SporProvider, Stack, StaticAlert, StaticCard, Stepper, StepperStep, Switch, Tab, TabList, TabPanel, TabPanels, Table, TableCaption, Tabs, Tbody, Td, Text, TextLink, Textarea, Tfoot, Th, Thead, Time, TimePicker, Tooltip, Tr, TravelTag, UnorderedList, VStack, VyLogo, WizardNudge, Wrap, WrapItem, brandTheme, createTexts, defineStyleConfig, extendTheme, fontFaces, slugify, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useSize, useTheme, useToast, useToken, useTranslation } from './chunk-QOPSLFKS.mjs';
|
package/package.json
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
import { BoxProps, Center, useMultiStyleConfig } from "@chakra-ui/react";
|
2
2
|
import React from "react";
|
3
3
|
import { createTexts, useTranslation } from "..";
|
4
|
-
import {
|
4
|
+
import {
|
5
|
+
Backward15MediaControllerFill30Icon,
|
6
|
+
Forward15MediaControllerFill30Icon,
|
7
|
+
} from "@vygruppen/spor-icon-react";
|
5
8
|
|
6
9
|
type JumpButtonProps = BoxProps & {
|
7
10
|
onClick: () => void;
|
@@ -45,9 +48,9 @@ export const JumpButton = ({
|
|
45
48
|
{...props}
|
46
49
|
>
|
47
50
|
{direction === "forward" ? (
|
48
|
-
<
|
51
|
+
<Forward15MediaControllerFill30Icon sx={styles.icon} />
|
49
52
|
) : (
|
50
|
-
<
|
53
|
+
<Backward15MediaControllerFill30Icon sx={styles.icon} />
|
51
54
|
)}
|
52
55
|
</Center>
|
53
56
|
);
|
@@ -1,7 +1,10 @@
|
|
1
1
|
import { BoxProps, Center, useMultiStyleConfig } from "@chakra-ui/react";
|
2
2
|
import React from "react";
|
3
3
|
import { createTexts, useTranslation } from "..";
|
4
|
-
import {
|
4
|
+
import {
|
5
|
+
PauseMediaControllerFill24Icon,
|
6
|
+
PlayMediaControllerFill24Icon,
|
7
|
+
} from "@vygruppen/spor-icon-react";
|
5
8
|
|
6
9
|
type PlayPauseButtonProps = BoxProps & {
|
7
10
|
onClick: () => void;
|
@@ -43,9 +46,9 @@ export const PlayPauseButton = ({
|
|
43
46
|
{...props}
|
44
47
|
>
|
45
48
|
{isPlaying ? (
|
46
|
-
<
|
49
|
+
<PauseMediaControllerFill24Icon sx={styles.icon} />
|
47
50
|
) : (
|
48
|
-
<
|
51
|
+
<PlayMediaControllerFill24Icon sx={styles.icon} />
|
49
52
|
)}
|
50
53
|
</Center>
|
51
54
|
);
|
@@ -1,7 +1,10 @@
|
|
1
1
|
import { BoxProps, Center, useMultiStyleConfig } from "@chakra-ui/react";
|
2
2
|
import React from "react";
|
3
3
|
import { createTexts, useTranslation } from "..";
|
4
|
-
import {
|
4
|
+
import {
|
5
|
+
NextMediaControllerFill30Icon,
|
6
|
+
PreviousMediaControllerFill30Icon,
|
7
|
+
} from "@vygruppen/spor-icon-react";
|
5
8
|
|
6
9
|
type SkipButtonProps = BoxProps & {
|
7
10
|
onClick: () => void;
|
@@ -42,9 +45,9 @@ export const SkipButton = ({
|
|
42
45
|
{...props}
|
43
46
|
>
|
44
47
|
{direction === "forward" ? (
|
45
|
-
<
|
48
|
+
<NextMediaControllerFill30Icon sx={styles.icon} />
|
46
49
|
) : (
|
47
|
-
<
|
50
|
+
<PreviousMediaControllerFill30Icon sx={styles.icon} />
|
48
51
|
)}
|
49
52
|
</Center>
|
50
53
|
);
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createMultiStyleConfigHelpers } from "@chakra-ui/react";
|
2
|
-
import { anatomy } from "@chakra-ui/theme-tools";
|
2
|
+
import { anatomy, mode } from "@chakra-ui/theme-tools";
|
3
3
|
import { baseText } from "../utils/base-utils";
|
4
|
-
import { brandBackground } from "../utils/brand-utils";
|
4
|
+
import { brandBackground, brandText } from "../utils/brand-utils";
|
5
5
|
import { focusVisibleStyles } from "../utils/focus-utils";
|
6
6
|
import { ghostBackground } from "../utils/ghost-utils";
|
7
7
|
import { surface } from "../utils/surface-utils";
|
@@ -38,16 +38,21 @@ const config = helpers.defineMultiStyleConfig({
|
|
38
38
|
play: (props) => ({
|
39
39
|
container: {
|
40
40
|
padding: 0,
|
41
|
+
...brandText("default", props),
|
42
|
+
...brandBackground("default", props),
|
41
43
|
_hover: {
|
42
|
-
|
44
|
+
...brandText("default", props),
|
45
|
+
...brandBackground("hover", props),
|
43
46
|
},
|
44
47
|
_active: {
|
45
|
-
|
48
|
+
...brandText("default", props),
|
49
|
+
...brandBackground("active", props),
|
46
50
|
},
|
47
51
|
|
48
52
|
_disabled: {
|
49
53
|
pointerEvents: "none",
|
50
|
-
color:
|
54
|
+
color: mode("icon.disabled.light", "icon.disabled.dark")(props),
|
55
|
+
...surface("disabled", props),
|
51
56
|
},
|
52
57
|
},
|
53
58
|
}),
|
@@ -72,16 +77,20 @@ const config = helpers.defineMultiStyleConfig({
|
|
72
77
|
}),
|
73
78
|
},
|
74
79
|
sizes: {
|
75
|
-
sm: {
|
80
|
+
sm: (props) => ({
|
76
81
|
container: {
|
77
|
-
fontSize: 42,
|
82
|
+
fontSize: props.variant === "play" ? 24 : 42,
|
83
|
+
width: props.variant === "play" ? "2.625rem" : undefined,
|
84
|
+
height: props.variant === "play" ? "2.625rem" : undefined,
|
78
85
|
},
|
79
|
-
},
|
80
|
-
lg: {
|
86
|
+
}),
|
87
|
+
lg: (props) => ({
|
81
88
|
container: {
|
82
|
-
fontSize: 60,
|
89
|
+
fontSize: props.variant === "play" ? 38 : 60,
|
90
|
+
width: props.variant === "play" ? "3.75rem" : undefined,
|
91
|
+
height: props.variant === "play" ? "3.75rem" : undefined,
|
83
92
|
},
|
84
|
-
},
|
93
|
+
}),
|
85
94
|
},
|
86
95
|
});
|
87
96
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineStyleConfig } from "@chakra-ui/react";
|
1
|
+
import { Theme, defineStyleConfig } from "@chakra-ui/react";
|
2
2
|
import { colors } from "../foundations";
|
3
3
|
import { focusVisibleStyles } from "../utils/focus-utils";
|
4
4
|
import { bg } from "../utils/bg-utils";
|
@@ -33,9 +33,11 @@ type CardThemeProps = {
|
|
33
33
|
| "darkBlue"
|
34
34
|
| "darkGreen"
|
35
35
|
| "darkYellow";
|
36
|
+
theme: Theme;
|
37
|
+
colorMode: "light" | "dark";
|
36
38
|
};
|
37
39
|
|
38
|
-
const getColorSchemeBaseProps = (props:
|
40
|
+
const getColorSchemeBaseProps = (props: CardThemeProps) => {
|
39
41
|
switch (props.colorScheme) {
|
40
42
|
case "white":
|
41
43
|
return {
|
@@ -1,80 +0,0 @@
|
|
1
|
-
import { Box, BoxProps } from "@chakra-ui/react";
|
2
|
-
import * as React from "react";
|
3
|
-
|
4
|
-
export const JumpForwardIcon = (props: BoxProps) => (
|
5
|
-
<Box as="svg" {...props} viewBox="0 0 32 30" fill="none">
|
6
|
-
<path
|
7
|
-
fillRule="evenodd"
|
8
|
-
clipRule="evenodd"
|
9
|
-
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"
|
10
|
-
fill="currentColor"
|
11
|
-
/>
|
12
|
-
<path
|
13
|
-
fillRule="evenodd"
|
14
|
-
clipRule="evenodd"
|
15
|
-
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"
|
16
|
-
fill="currentColor"
|
17
|
-
/>
|
18
|
-
</Box>
|
19
|
-
);
|
20
|
-
|
21
|
-
export const JumpBackwardIcon = (props: BoxProps) => (
|
22
|
-
<Box as="svg" {...props} viewBox="0 0 32 30" fill="none">
|
23
|
-
<path
|
24
|
-
fillRule="evenodd"
|
25
|
-
clipRule="evenodd"
|
26
|
-
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"
|
27
|
-
fill="currentColor"
|
28
|
-
/>
|
29
|
-
<path
|
30
|
-
fillRule="evenodd"
|
31
|
-
clipRule="evenodd"
|
32
|
-
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"
|
33
|
-
fill="currentColor"
|
34
|
-
/>
|
35
|
-
</Box>
|
36
|
-
);
|
37
|
-
|
38
|
-
export const PlayIcon = (props: BoxProps) => (
|
39
|
-
<Box as="svg" {...props} fill="none" viewBox="0 0 60 60">
|
40
|
-
<path
|
41
|
-
fillRule="evenodd"
|
42
|
-
clipRule="evenodd"
|
43
|
-
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"
|
44
|
-
fill="currentColor"
|
45
|
-
/>
|
46
|
-
</Box>
|
47
|
-
);
|
48
|
-
|
49
|
-
export const PauseIcon = (props: BoxProps) => (
|
50
|
-
<Box as="svg" {...props} viewBox="0 0 60 60" fill="none">
|
51
|
-
<path
|
52
|
-
fillRule="evenodd"
|
53
|
-
clipRule="evenodd"
|
54
|
-
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"
|
55
|
-
fill="currentColor"
|
56
|
-
/>
|
57
|
-
</Box>
|
58
|
-
);
|
59
|
-
|
60
|
-
export const SkipNextIcon = (props: BoxProps) => (
|
61
|
-
<Box as="svg" {...props} viewBox="0 0 30 30" fill="none">
|
62
|
-
<path
|
63
|
-
fillRule="evenodd"
|
64
|
-
clipRule="evenodd"
|
65
|
-
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"
|
66
|
-
fill="currentColor"
|
67
|
-
/>
|
68
|
-
</Box>
|
69
|
-
);
|
70
|
-
|
71
|
-
export const SkipPreviousIcon = (props: BoxProps) => (
|
72
|
-
<Box as="svg" {...props} viewBox="0 0 30 30" fill="none">
|
73
|
-
<path
|
74
|
-
fillRule="evenodd"
|
75
|
-
clipRule="evenodd"
|
76
|
-
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"
|
77
|
-
fill="currentColor"
|
78
|
-
/>
|
79
|
-
</Box>
|
80
|
-
);
|