@telia/teddy 0.4.7 → 0.4.8
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.
|
@@ -9,7 +9,7 @@ const components_scrollArea_index = require("../scroll-area/index.cjs");
|
|
|
9
9
|
const utils_composeRefs = require("../../utils/composeRefs.cjs");
|
|
10
10
|
const BackContext = React.createContext({});
|
|
11
11
|
const Back = React.forwardRef(
|
|
12
|
-
({ className, variant, bordered, children, wrapperClassName, "aria-label": ariaLabel, ...props }, forwardRef) => {
|
|
12
|
+
({ className, variant, shadow, bordered, children, wrapperClassName, "aria-label": ariaLabel, ...props }, forwardRef) => {
|
|
13
13
|
const { flipped, backId, backRef } = React.useContext(components_flipCard_flipCardRoot.FlipContext);
|
|
14
14
|
const ref = utils_composeRefs.useComposedRefs(forwardRef, backRef);
|
|
15
15
|
const classesOuter = clsx(
|
|
@@ -20,7 +20,7 @@ const Back = React.forwardRef(
|
|
|
20
20
|
wrapperClassName
|
|
21
21
|
);
|
|
22
22
|
const classesInner = clsx([components_flipCard_flipCardRoot.styles[`${components_flipCard_flipCardRoot.rootClassName}__back-inner`]], className);
|
|
23
|
-
return /* @__PURE__ */ jsxRuntime.jsx(BackContext.Provider, { value: { variant }, children: /* @__PURE__ */ jsxRuntime.jsx(components_card_index.Card, { variant, bordered, className: classesOuter, children: /* @__PURE__ */ jsxRuntime.jsx(components_scrollArea_index.ScrollArea, { viewPortClassName: components_flipCard_flipCardRoot.styles[`${components_flipCard_flipCardRoot.rootClassName}__scroll-area-view-port`], children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
23
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BackContext.Provider, { value: { variant }, children: /* @__PURE__ */ jsxRuntime.jsx(components_card_index.Card, { variant, shadow, bordered, className: classesOuter, children: /* @__PURE__ */ jsxRuntime.jsx(components_scrollArea_index.ScrollArea, { viewPortClassName: components_flipCard_flipCardRoot.styles[`${components_flipCard_flipCardRoot.rootClassName}__scroll-area-view-port`], children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
24
24
|
components_card_index.Card,
|
|
25
25
|
{
|
|
26
26
|
id: backId,
|
|
@@ -7,7 +7,7 @@ import { ScrollArea } from "../scroll-area/index.js";
|
|
|
7
7
|
import { useComposedRefs } from "../../utils/composeRefs.js";
|
|
8
8
|
const BackContext = React__default.createContext({});
|
|
9
9
|
const Back = React__default.forwardRef(
|
|
10
|
-
({ className, variant, bordered, children, wrapperClassName, "aria-label": ariaLabel, ...props }, forwardRef) => {
|
|
10
|
+
({ className, variant, shadow, bordered, children, wrapperClassName, "aria-label": ariaLabel, ...props }, forwardRef) => {
|
|
11
11
|
const { flipped, backId, backRef } = useContext(FlipContext);
|
|
12
12
|
const ref = useComposedRefs(forwardRef, backRef);
|
|
13
13
|
const classesOuter = clsx(
|
|
@@ -18,7 +18,7 @@ const Back = React__default.forwardRef(
|
|
|
18
18
|
wrapperClassName
|
|
19
19
|
);
|
|
20
20
|
const classesInner = clsx([styles[`${rootClassName}__back-inner`]], className);
|
|
21
|
-
return /* @__PURE__ */ jsx(BackContext.Provider, { value: { variant }, children: /* @__PURE__ */ jsx(Card, { variant, bordered, className: classesOuter, children: /* @__PURE__ */ jsx(ScrollArea, { viewPortClassName: styles[`${rootClassName}__scroll-area-view-port`], children: /* @__PURE__ */ jsx(
|
|
21
|
+
return /* @__PURE__ */ jsx(BackContext.Provider, { value: { variant }, children: /* @__PURE__ */ jsx(Card, { variant, shadow, bordered, className: classesOuter, children: /* @__PURE__ */ jsx(ScrollArea, { viewPortClassName: styles[`${rootClassName}__scroll-area-view-port`], children: /* @__PURE__ */ jsx(
|
|
22
22
|
Card,
|
|
23
23
|
{
|
|
24
24
|
id: backId,
|