@janbox/storefront-ui 4.0.13 → 4.0.14
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/dist/components/scroll-view.js +1 -1
- package/dist/lib/accordion/accordion-content/accordion-content.js +1 -1
- package/dist/lib/count-up/count-up.js +1 -1
- package/dist/lib/dialog/dialog/dialog.js +4 -4
- package/dist/lib/drawer/drawer/drawer.js +1 -1
- package/dist/lib/floating/floating-content/floating-content.js +1 -1
- package/dist/lib/lightbox/lightbox.js +1 -1
- package/dist/lib/loading/image-skeleton/image-skeleton.js +1 -1
- package/dist/lib/notifications/notifications.js +1 -1
- package/dist/lib/star-rating/star-rating.js +1 -1
- package/dist/lib/swiper/swiper-dots-paging/swiper-dots-paging.js +1 -1
- package/dist/lib/tabs/tab-indicator/tab-indicator.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { OverlayScrollbarsComponent } from "overlayscrollbars-react";
|
|
3
2
|
import { Stylesheet } from "../lib/stylesheet/stylesheet.js";
|
|
3
|
+
import { OverlayScrollbarsComponent } from "overlayscrollbars-react";
|
|
4
4
|
const ScrollView = ({ children, options, sx, ...props }) => {
|
|
5
5
|
return /* @__PURE__ */ jsx(Stylesheet, { children: ({ cx, css }) => /* @__PURE__ */ jsx(
|
|
6
6
|
OverlayScrollbarsComponent,
|
|
@@ -3,8 +3,8 @@ import { useRef } from "react";
|
|
|
3
3
|
import { motion } from "motion/react";
|
|
4
4
|
import { getAccordionContentProps } from "./helpers.js";
|
|
5
5
|
import { useAccordionContext } from "../accordion/helpers.js";
|
|
6
|
-
import { useAccordionGroupContext } from "../accordion-group/helpers.js";
|
|
7
6
|
import { Stylesheet } from "../../stylesheet/stylesheet.js";
|
|
7
|
+
import { useAccordionGroupContext } from "../accordion-group/helpers.js";
|
|
8
8
|
import { Primitive } from "../../primitive/primitive.js";
|
|
9
9
|
const AccordionContent = ({ children, ref, ..._props }) => {
|
|
10
10
|
const { accordionContentProps: accordionContentPropsByGroup = {} } = useAccordionGroupContext();
|
|
@@ -7,9 +7,9 @@ import { useTranslation } from "../../i18n/index.js";
|
|
|
7
7
|
import "lodash-es";
|
|
8
8
|
import "../../theme/palette.js";
|
|
9
9
|
import { getTypographyVar } from "../../theme/typography.js";
|
|
10
|
+
import { Stylesheet } from "../stylesheet/stylesheet.js";
|
|
10
11
|
import { getCountUpProps } from "./helpers.js";
|
|
11
12
|
import { getDecimalDigits } from "../../utils/common.js";
|
|
12
|
-
import { Stylesheet } from "../stylesheet/stylesheet.js";
|
|
13
13
|
const CountUp = ({ ref, ..._props }) => {
|
|
14
14
|
const {
|
|
15
15
|
from = 0,
|
|
@@ -28,7 +28,7 @@ const Dialog = (_props) => {
|
|
|
28
28
|
sx: {
|
|
29
29
|
width: getDialogSizeInNumber(size),
|
|
30
30
|
backgroundColor: getColorVar("surface.default"),
|
|
31
|
-
maxWidth: `calc(
|
|
31
|
+
maxWidth: `calc(100dvw - ${breakpoint.xs.padding * 2}px)`,
|
|
32
32
|
overflow: "hidden",
|
|
33
33
|
display: "flex",
|
|
34
34
|
flexDirection: "column",
|
|
@@ -36,15 +36,15 @@ const Dialog = (_props) => {
|
|
|
36
36
|
paddingBlock: 8,
|
|
37
37
|
sm: {
|
|
38
38
|
width: getDialogSizeInNumber(sm == null ? void 0 : sm.size),
|
|
39
|
-
maxWidth: `calc(
|
|
39
|
+
maxWidth: `calc(100dvw - ${breakpoint.sm.padding * 2}px)`
|
|
40
40
|
},
|
|
41
41
|
md: {
|
|
42
42
|
width: getDialogSizeInNumber(md == null ? void 0 : md.size),
|
|
43
|
-
maxWidth: `calc(
|
|
43
|
+
maxWidth: `calc(100dvw - ${breakpoint.md.padding * 2}px)`
|
|
44
44
|
},
|
|
45
45
|
lg: {
|
|
46
46
|
width: getDialogSizeInNumber(lg == null ? void 0 : lg.size),
|
|
47
|
-
maxWidth: `calc(
|
|
47
|
+
maxWidth: `calc(100dvw - ${breakpoint.lg.padding * 2}px)`
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
children
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { motion } from "motion/react";
|
|
4
|
+
import { Stylesheet } from "../../stylesheet/stylesheet.js";
|
|
4
5
|
import { Floating } from "../../floating/floating/floating.js";
|
|
5
6
|
import { FloatingContent } from "../../floating/floating-content/floating-content.js";
|
|
6
7
|
import { Primitive } from "../../primitive/primitive.js";
|
|
7
|
-
import { Stylesheet } from "../../stylesheet/stylesheet.js";
|
|
8
8
|
const Drawer = ({ children, placement = "left", ...props }) => {
|
|
9
9
|
const initial = useMemo(() => {
|
|
10
10
|
switch (placement) {
|
|
@@ -4,8 +4,8 @@ import { motion, AnimatePresence } from "motion/react";
|
|
|
4
4
|
import { useFloatingContext } from "../floating/helpers.js";
|
|
5
5
|
import { FLOATING_Z_INDEX } from "../../../theme/index.js";
|
|
6
6
|
import { useIsHydrated } from "../../../hooks/use-is-hydrated/index.js";
|
|
7
|
-
import { usePortalContainer } from "../../../theme/provider.js";
|
|
8
7
|
import { Stylesheet } from "../../stylesheet/stylesheet.js";
|
|
8
|
+
import { usePortalContainer } from "../../../theme/provider.js";
|
|
9
9
|
const FloatingContent = ({ preserveTabOrder, focus, overlay, sx, ref, ...props }) => {
|
|
10
10
|
const { getFloatingProps, context } = useFloatingContext();
|
|
11
11
|
const mergedRefs = useMergeRefs([context.refs.setFloating, ref]);
|
|
@@ -10,12 +10,12 @@ import ZoomPlusIcon from "../../assets/svg/search-add-plus-middle.svg.js";
|
|
|
10
10
|
import ZoomMinusIcon from "../../assets/svg/search-minus.svg.js";
|
|
11
11
|
import CloseIcon from "../../assets/svg/times-close-delete.svg.js";
|
|
12
12
|
import { FLOATING_Z_INDEX } from "../../theme/index.js";
|
|
13
|
+
import { Stylesheet } from "../stylesheet/stylesheet.js";
|
|
13
14
|
import { Swiper } from "../swiper/swiper/swiper.js";
|
|
14
15
|
import { SwiperSlide } from "../swiper/swiper-slide/swiper-slide.js";
|
|
15
16
|
import { Floating } from "../floating/floating/floating.js";
|
|
16
17
|
import { FloatingContent } from "../floating/floating-content/floating-content.js";
|
|
17
18
|
import { Primitive } from "../primitive/primitive.js";
|
|
18
|
-
import { Stylesheet } from "../stylesheet/stylesheet.js";
|
|
19
19
|
import { Image } from "../image/image.js";
|
|
20
20
|
import { FloatingClose } from "../floating/floating-close/floating-close.js";
|
|
21
21
|
import { IconButton } from "../icon-button/icon-button.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { animatePulseStyle } from "../../../constants/emotion.js";
|
|
3
|
+
import { Stylesheet } from "../../stylesheet/stylesheet.js";
|
|
3
4
|
import "lodash-es";
|
|
4
5
|
import { getColorVar } from "../../../theme/palette.js";
|
|
5
6
|
import { Primitive } from "../../primitive/primitive.js";
|
|
6
|
-
import { Stylesheet } from "../../stylesheet/stylesheet.js";
|
|
7
7
|
const ImageSkeleton = (props) => {
|
|
8
8
|
return /* @__PURE__ */ jsx(
|
|
9
9
|
Primitive,
|
|
@@ -7,9 +7,9 @@ import { notificationStore } from "./helpers.js";
|
|
|
7
7
|
import { getColorShadesByVariant } from "../../utils/index.js";
|
|
8
8
|
import { FLOATING_Z_INDEX } from "../../theme/index.js";
|
|
9
9
|
import CloseIcon from "../../assets/svg/times-close-delete.svg.js";
|
|
10
|
+
import { Stylesheet } from "../stylesheet/stylesheet.js";
|
|
10
11
|
import { usePortalContainer } from "../../theme/provider.js";
|
|
11
12
|
import { Primitive } from "../primitive/primitive.js";
|
|
12
|
-
import { Stylesheet } from "../stylesheet/stylesheet.js";
|
|
13
13
|
import { getTypographyVar } from "../../theme/typography.js";
|
|
14
14
|
import { IconButton } from "../icon-button/icon-button.js";
|
|
15
15
|
const Notifications = () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useId } from "react";
|
|
3
|
-
import { getStarRatingProps } from "./helpers.js";
|
|
4
3
|
import { Stylesheet } from "../stylesheet/stylesheet.js";
|
|
4
|
+
import { getStarRatingProps } from "./helpers.js";
|
|
5
5
|
const StarRating = (_props) => {
|
|
6
6
|
const { rating, maxRating, size, sm, md, lg, ref, color, sx } = getStarRatingProps(_props);
|
|
7
7
|
const id = useId();
|
|
@@ -6,8 +6,8 @@ import { motion } from "motion/react";
|
|
|
6
6
|
import { getColorVar } from "../../../theme/palette.js";
|
|
7
7
|
import { usePortalContainer } from "../../../theme/provider.js";
|
|
8
8
|
import { useIsHydrated } from "../../../hooks/use-is-hydrated/index.js";
|
|
9
|
-
import { Primitive } from "../../primitive/primitive.js";
|
|
10
9
|
import { Stylesheet } from "../../stylesheet/stylesheet.js";
|
|
10
|
+
import { Primitive } from "../../primitive/primitive.js";
|
|
11
11
|
const SWIPER_DOTS_SIZE_VAR = "--swiper-dots-size";
|
|
12
12
|
const SWIPER_DOTS_OFFSET_VAR = "--swiper-dots-offset";
|
|
13
13
|
const SWIPER_DOTS_SPACING_VAR = "--swiper-dots-spacing";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useRef, useState, useEffect } from "react";
|
|
3
3
|
import { motion } from "motion/react";
|
|
4
|
-
import { useTabsContext } from "../tabs/helpers.js";
|
|
5
4
|
import { Stylesheet } from "../../stylesheet/stylesheet.js";
|
|
5
|
+
import { useTabsContext } from "../tabs/helpers.js";
|
|
6
6
|
const TabIndicator = () => {
|
|
7
7
|
const { activeIndex, tabIndicatorProps } = useTabsContext();
|
|
8
8
|
const indicatorEl = useRef(null);
|