@telia/teddy 0.3.2 → 0.3.3
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/drawer/drawer-close.cjs +1 -1
- package/dist/components/drawer/drawer-close.js +1 -1
- package/dist/components/drawer/drawer-content.cjs +1 -1
- package/dist/components/drawer/drawer-content.js +1 -1
- package/dist/components/drawer/drawer-description.cjs +1 -1
- package/dist/components/drawer/drawer-description.js +1 -1
- package/dist/components/drawer/drawer-footer.cjs +1 -1
- package/dist/components/drawer/drawer-footer.js +1 -1
- package/dist/components/drawer/drawer-overlay.cjs +1 -1
- package/dist/components/drawer/drawer-overlay.js +1 -1
- package/dist/components/drawer/drawer-title.cjs +1 -1
- package/dist/components/drawer/drawer-title.js +1 -1
- package/dist/components/modal/index.cjs +8 -0
- package/dist/components/modal/index.d.ts +185 -2
- package/dist/components/modal/index.js +8 -0
- package/dist/components/modal/{modal.cjs → modal-close.cjs} +3 -3
- package/dist/components/modal/modal-close.d.ts +19 -0
- package/dist/components/modal/{modal.js → modal-close.js} +4 -4
- package/dist/components/modal/modal-content.cjs +65 -0
- package/dist/components/modal/modal-content.d.ts +7 -0
- package/dist/components/modal/modal-content.js +48 -0
- package/dist/components/modal/modal-description.cjs +26 -0
- package/dist/components/modal/modal-description.d.ts +8 -0
- package/dist/components/modal/modal-description.js +9 -0
- package/dist/components/modal/modal-group.cjs +47 -0
- package/dist/components/modal/modal-group.d.ts +10 -0
- package/dist/components/modal/modal-group.js +47 -0
- package/dist/components/modal/modal-image.cjs +17 -0
- package/dist/components/modal/modal-image.d.ts +10 -0
- package/dist/components/modal/modal-image.js +17 -0
- package/dist/components/modal/modal-overlay.cjs +35 -0
- package/dist/components/modal/modal-overlay.d.ts +12 -0
- package/dist/components/modal/modal-overlay.js +18 -0
- package/dist/components/modal/modal-root.cjs +38 -0
- package/dist/components/modal/modal-root.d.ts +16 -0
- package/dist/components/modal/modal-root.js +21 -0
- package/dist/components/modal/modal-title.cjs +45 -0
- package/dist/components/modal/modal-title.d.ts +18 -0
- package/dist/components/modal/modal-title.js +28 -0
- package/dist/components/modal/modal-trigger.cjs +27 -0
- package/dist/components/modal/modal-trigger.d.ts +21 -0
- package/dist/components/modal/modal-trigger.js +10 -0
- package/dist/components/navigation-menu/global-navigation/global-navigation-desktop-simplified.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile-simplified.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-my-pages.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-root.js +4 -4
- package/dist/components/navigation-menu/global-navigation/global-navigation-search-field.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-search.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-shopping-cart.js +2 -2
- package/dist/components/notabene/index.cjs +4 -0
- package/dist/components/notabene/index.js +4 -0
- package/dist/components/notification/index.cjs +6 -0
- package/dist/components/notification/index.js +6 -0
- package/dist/components/notification/notification-footer.cjs +1 -1
- package/dist/components/notification/notification-footer.js +1 -1
- package/dist/components/radio-card-group/radio-card-group-item-title.cjs +49 -151
- package/dist/components/radio-card-group/radio-card-group-item-title.js +67 -169
- package/dist/drawer.module-Bh77Byg_.js +16 -0
- package/dist/drawer.module-khivHSFm.cjs +15 -0
- package/dist/modal.module-BfeNqXoN.cjs +19 -0
- package/dist/modal.module-DuP4in7f.js +20 -0
- package/dist/style.css +194 -190
- package/package.json +1 -1
- package/dist/components/modal/modal.d.ts +0 -76
- package/dist/drawer.module-Am9xxZYU.js +0 -16
- package/dist/drawer.module-CoqKvqzl.cjs +0 -15
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default, { useEffect } from "react";
|
|
3
|
+
import { Flex } from "../flex/flex.js";
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
import { s as styles } from "../../modal.module-DuP4in7f.js";
|
|
6
|
+
import { RootContext, rootClassName } from "./modal-root.js";
|
|
7
|
+
const GroupContext = React__default.createContext(false);
|
|
8
|
+
const Group = React__default.forwardRef(
|
|
9
|
+
({ className, variant, ...props }, forwardedRef) => {
|
|
10
|
+
const strollerRef = React__default.useContext(RootContext).scrollRef;
|
|
11
|
+
const [isOverflowing, setIsOverflowing] = React__default.useState(false);
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
if (strollerRef == null ? void 0 : strollerRef.current) {
|
|
14
|
+
const hasOverflow = strollerRef.current.scrollHeight > strollerRef.current.clientHeight;
|
|
15
|
+
setIsOverflowing(hasOverflow);
|
|
16
|
+
}
|
|
17
|
+
}, [strollerRef]);
|
|
18
|
+
const classes = clsx(
|
|
19
|
+
[styles[`${rootClassName}__group`]],
|
|
20
|
+
{
|
|
21
|
+
[styles[`${rootClassName}__group--action`]]: variant === "action",
|
|
22
|
+
[styles[`${rootClassName}__group--title`]]: variant === "title",
|
|
23
|
+
[styles[`${rootClassName}__group--scroll`]]: isOverflowing
|
|
24
|
+
},
|
|
25
|
+
className
|
|
26
|
+
);
|
|
27
|
+
return /* @__PURE__ */ jsx(GroupContext.Provider, { value: true, children: /* @__PURE__ */ jsx(
|
|
28
|
+
Flex,
|
|
29
|
+
{
|
|
30
|
+
...variant === "action" ? {
|
|
31
|
+
gap: "200",
|
|
32
|
+
justify: { md: "end" },
|
|
33
|
+
align: { sm: "stretch", md: "end" },
|
|
34
|
+
direction: { sm: "column-reverse", md: "row" }
|
|
35
|
+
} : { direction: "column" },
|
|
36
|
+
ref: forwardedRef,
|
|
37
|
+
...props,
|
|
38
|
+
className: classes
|
|
39
|
+
}
|
|
40
|
+
) });
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
Group.displayName = "Group";
|
|
44
|
+
export {
|
|
45
|
+
Group,
|
|
46
|
+
GroupContext
|
|
47
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const clsx = require("clsx");
|
|
6
|
+
const modal_module = require("../../modal.module-BfeNqXoN.cjs");
|
|
7
|
+
const reactSlot = require("@radix-ui/react-slot");
|
|
8
|
+
const utils_composeRefs = require("../../utils/composeRefs.cjs");
|
|
9
|
+
const components_modal_modalRoot = require("./modal-root.cjs");
|
|
10
|
+
const Image = React.forwardRef(({ asChild, ...props }, forwardedRef) => {
|
|
11
|
+
const classes = clsx([modal_module.styles[`${components_modal_modalRoot.rootClassName}__image`]], props.className);
|
|
12
|
+
const context = React.useContext(components_modal_modalRoot.RootContext);
|
|
13
|
+
const Comp = asChild ? reactSlot.Slot : "img";
|
|
14
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Comp, { ...props, className: classes, ref: utils_composeRefs.composeRefs(context.imageRef, forwardedRef) });
|
|
15
|
+
});
|
|
16
|
+
Image.displayName = "Image";
|
|
17
|
+
exports.Image = Image;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
type ImageProps = React.ComponentPropsWithoutRef<'img'> & {
|
|
4
|
+
asChild?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const Image: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
|
|
7
|
+
asChild?: boolean | undefined;
|
|
8
|
+
} & React.RefAttributes<HTMLImageElement>>;
|
|
9
|
+
export { Image };
|
|
10
|
+
export type { ImageProps };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { s as styles } from "../../modal.module-DuP4in7f.js";
|
|
5
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
6
|
+
import { composeRefs } from "../../utils/composeRefs.js";
|
|
7
|
+
import { rootClassName, RootContext } from "./modal-root.js";
|
|
8
|
+
const Image = React__default.forwardRef(({ asChild, ...props }, forwardedRef) => {
|
|
9
|
+
const classes = clsx([styles[`${rootClassName}__image`]], props.className);
|
|
10
|
+
const context = React__default.useContext(RootContext);
|
|
11
|
+
const Comp = asChild ? Slot : "img";
|
|
12
|
+
return /* @__PURE__ */ jsx(Comp, { ...props, className: classes, ref: composeRefs(context.imageRef, forwardedRef) });
|
|
13
|
+
});
|
|
14
|
+
Image.displayName = "Image";
|
|
15
|
+
export {
|
|
16
|
+
Image
|
|
17
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const DrawerPrimitive = require("@radix-ui/react-dialog");
|
|
6
|
+
const clsx = require("clsx");
|
|
7
|
+
const modal_module = require("../../modal.module-BfeNqXoN.cjs");
|
|
8
|
+
const components_modal_modalRoot = require("./modal-root.cjs");
|
|
9
|
+
function _interopNamespaceDefault(e) {
|
|
10
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
11
|
+
if (e) {
|
|
12
|
+
for (const k in e) {
|
|
13
|
+
if (k !== "default") {
|
|
14
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: () => e[k]
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
n.default = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
const DrawerPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(DrawerPrimitive);
|
|
26
|
+
const OverlayContext = React.createContext(false);
|
|
27
|
+
const Overlay = React.forwardRef(
|
|
28
|
+
({ className, forceMount, container, ...rest }, forwardedRef) => {
|
|
29
|
+
const classes = clsx([modal_module.styles[`${components_modal_modalRoot.rootClassName}__overlay`]], className);
|
|
30
|
+
return /* @__PURE__ */ jsxRuntime.jsx(OverlayContext.Provider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Portal, { container, forceMount, children: /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Overlay, { className: classes, ref: forwardedRef, ...rest }) }) });
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
Overlay.displayName = "Overlay";
|
|
34
|
+
exports.Overlay = Overlay;
|
|
35
|
+
exports.OverlayContext = OverlayContext;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
|
+
export declare const OverlayContext: React.Context<boolean>;
|
|
5
|
+
type OverlayProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay> & {
|
|
6
|
+
container?: React.ComponentProps<typeof DialogPrimitive.Portal>['container'];
|
|
7
|
+
};
|
|
8
|
+
declare const Overlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
9
|
+
container?: React.ComponentProps<typeof DialogPrimitive.Portal>['container'];
|
|
10
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export { Overlay };
|
|
12
|
+
export type { OverlayProps };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import * as DrawerPrimitive from "@radix-ui/react-dialog";
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
import { s as styles } from "../../modal.module-DuP4in7f.js";
|
|
6
|
+
import { rootClassName } from "./modal-root.js";
|
|
7
|
+
const OverlayContext = React__default.createContext(false);
|
|
8
|
+
const Overlay = React__default.forwardRef(
|
|
9
|
+
({ className, forceMount, container, ...rest }, forwardedRef) => {
|
|
10
|
+
const classes = clsx([styles[`${rootClassName}__overlay`]], className);
|
|
11
|
+
return /* @__PURE__ */ jsx(OverlayContext.Provider, { value: true, children: /* @__PURE__ */ jsx(DrawerPrimitive.Portal, { container, forceMount, children: /* @__PURE__ */ jsx(DrawerPrimitive.Overlay, { className: classes, ref: forwardedRef, ...rest }) }) });
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
Overlay.displayName = "Overlay";
|
|
15
|
+
export {
|
|
16
|
+
Overlay,
|
|
17
|
+
OverlayContext
|
|
18
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const DrawerPrimitive = require("@radix-ui/react-dialog");
|
|
6
|
+
function _interopNamespaceDefault(e) {
|
|
7
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
8
|
+
if (e) {
|
|
9
|
+
for (const k in e) {
|
|
10
|
+
if (k !== "default") {
|
|
11
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: () => e[k]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
n.default = e;
|
|
20
|
+
return Object.freeze(n);
|
|
21
|
+
}
|
|
22
|
+
const DrawerPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(DrawerPrimitive);
|
|
23
|
+
const rootClassName = "teddy-modal";
|
|
24
|
+
const RootContext = React.createContext({
|
|
25
|
+
imageRef: null,
|
|
26
|
+
actionGroupRef: null,
|
|
27
|
+
scrollRef: null
|
|
28
|
+
});
|
|
29
|
+
const Root = (props) => {
|
|
30
|
+
const imageRef = React.useRef(null);
|
|
31
|
+
const actionGroupRef = React.useRef(null);
|
|
32
|
+
const scrollRef = React.useRef(null);
|
|
33
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RootContext.Provider, { value: { imageRef, actionGroupRef, scrollRef }, children: /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Root, { ...props, modal: true }) });
|
|
34
|
+
};
|
|
35
|
+
Root.displayName = "Root";
|
|
36
|
+
exports.Root = Root;
|
|
37
|
+
exports.RootContext = RootContext;
|
|
38
|
+
exports.rootClassName = rootClassName;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Image } from './modal-image';
|
|
3
|
+
import { Group } from './modal-group';
|
|
4
|
+
import { Flex } from '../flex';
|
|
5
|
+
|
|
6
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
7
|
+
export declare const rootClassName = "teddy-modal";
|
|
8
|
+
export declare const RootContext: React.Context<{
|
|
9
|
+
imageRef: React.RefObject<React.ElementRef<typeof Image>> | null;
|
|
10
|
+
actionGroupRef: React.RefObject<React.ElementRef<typeof Group>> | null;
|
|
11
|
+
scrollRef: React.RefObject<React.ElementRef<typeof Flex>> | null;
|
|
12
|
+
}>;
|
|
13
|
+
type RootProps = Omit<React.ComponentPropsWithoutRef<typeof DialogPrimitive.Root>, 'modal'>;
|
|
14
|
+
declare const Root: React.FC<RootProps>;
|
|
15
|
+
export { Root };
|
|
16
|
+
export type { RootProps };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import * as DrawerPrimitive from "@radix-ui/react-dialog";
|
|
4
|
+
const rootClassName = "teddy-modal";
|
|
5
|
+
const RootContext = React__default.createContext({
|
|
6
|
+
imageRef: null,
|
|
7
|
+
actionGroupRef: null,
|
|
8
|
+
scrollRef: null
|
|
9
|
+
});
|
|
10
|
+
const Root = (props) => {
|
|
11
|
+
const imageRef = React__default.useRef(null);
|
|
12
|
+
const actionGroupRef = React__default.useRef(null);
|
|
13
|
+
const scrollRef = React__default.useRef(null);
|
|
14
|
+
return /* @__PURE__ */ jsx(RootContext.Provider, { value: { imageRef, actionGroupRef, scrollRef }, children: /* @__PURE__ */ jsx(DrawerPrimitive.Root, { ...props, modal: true }) });
|
|
15
|
+
};
|
|
16
|
+
Root.displayName = "Root";
|
|
17
|
+
export {
|
|
18
|
+
Root,
|
|
19
|
+
RootContext,
|
|
20
|
+
rootClassName
|
|
21
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const DrawerPrimitive = require("@radix-ui/react-dialog");
|
|
6
|
+
const components_heading_heading = require("../heading/heading.cjs");
|
|
7
|
+
const components_modal_modalGroup = require("./modal-group.cjs");
|
|
8
|
+
function _interopNamespaceDefault(e) {
|
|
9
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
10
|
+
if (e) {
|
|
11
|
+
for (const k in e) {
|
|
12
|
+
if (k !== "default") {
|
|
13
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: () => e[k]
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
n.default = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
const DrawerPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(DrawerPrimitive);
|
|
25
|
+
const TitleInner = React.forwardRef(function TitleInner2({ as = "h2", ...props }, forwardedRef) {
|
|
26
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Title, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
27
|
+
components_heading_heading.Heading,
|
|
28
|
+
{
|
|
29
|
+
variant: "title-200",
|
|
30
|
+
...props,
|
|
31
|
+
...!props.asChild ? { as, asChild: false } : { as: void 0, asChild: true },
|
|
32
|
+
ref: forwardedRef
|
|
33
|
+
}
|
|
34
|
+
) });
|
|
35
|
+
});
|
|
36
|
+
TitleInner.displayName = "TitleInner";
|
|
37
|
+
const Title = React.forwardRef((props, forwardedRef) => {
|
|
38
|
+
const isInsideGroup = React.useContext(components_modal_modalGroup.GroupContext);
|
|
39
|
+
if (!isInsideGroup) {
|
|
40
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components_modal_modalGroup.Group, { variant: "title", children: /* @__PURE__ */ jsxRuntime.jsx(TitleInner, { ...props, ref: forwardedRef }) });
|
|
41
|
+
}
|
|
42
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TitleInner, { ...props, ref: forwardedRef });
|
|
43
|
+
});
|
|
44
|
+
Title.displayName = "Title";
|
|
45
|
+
exports.Title = Title;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { HeadingProps } from '../heading';
|
|
3
|
+
|
|
4
|
+
type TitleProps = HeadingProps['Root'];
|
|
5
|
+
declare const Title: React.ForwardRefExoticComponent<({
|
|
6
|
+
enableHyphenation?: boolean | undefined;
|
|
7
|
+
variant?: "title-100" | "title-200" | "title-300" | "title-400" | "title-500" | "title-600" | "title-700" | "subsection-100" | "display-25" | "display-50" | "display-100" | "display-200" | undefined;
|
|
8
|
+
} & import('../../utils/generate-styling/flex').FlexChildren & (import('../../utils/generate-styling/grid').GridChildren & (import('../../utils/generate-styling/position').PositionProps & import('../../utils/generate-styling/inset').InsetProps & (import('../../utils/generate-styling/radius').RadiusProps & (import('../../utils/generate-styling/margin').MarginProps & import('../../utils/generate-styling/padding').PaddingProps & (import('../../utils/generate-styling/width').WidthProps & (import('../../utils/generate-styling/height').HeightProps & import('../../utils/generate-styling/color').ColorProps & ({
|
|
9
|
+
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
10
|
+
} & (({
|
|
11
|
+
asChild: true;
|
|
12
|
+
as?: undefined;
|
|
13
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">) | ({
|
|
14
|
+
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
|
|
15
|
+
asChild?: false | undefined;
|
|
16
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">)))))))))) & React.RefAttributes<HTMLHeadingElement>>;
|
|
17
|
+
export { Title };
|
|
18
|
+
export type { TitleProps };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import * as DrawerPrimitive from "@radix-ui/react-dialog";
|
|
4
|
+
import { Heading } from "../heading/heading.js";
|
|
5
|
+
import { GroupContext, Group } from "./modal-group.js";
|
|
6
|
+
const TitleInner = React__default.forwardRef(function TitleInner2({ as = "h2", ...props }, forwardedRef) {
|
|
7
|
+
return /* @__PURE__ */ jsx(DrawerPrimitive.Title, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
8
|
+
Heading,
|
|
9
|
+
{
|
|
10
|
+
variant: "title-200",
|
|
11
|
+
...props,
|
|
12
|
+
...!props.asChild ? { as, asChild: false } : { as: void 0, asChild: true },
|
|
13
|
+
ref: forwardedRef
|
|
14
|
+
}
|
|
15
|
+
) });
|
|
16
|
+
});
|
|
17
|
+
TitleInner.displayName = "TitleInner";
|
|
18
|
+
const Title = React__default.forwardRef((props, forwardedRef) => {
|
|
19
|
+
const isInsideGroup = React__default.useContext(GroupContext);
|
|
20
|
+
if (!isInsideGroup) {
|
|
21
|
+
return /* @__PURE__ */ jsx(Group, { variant: "title", children: /* @__PURE__ */ jsx(TitleInner, { ...props, ref: forwardedRef }) });
|
|
22
|
+
}
|
|
23
|
+
return /* @__PURE__ */ jsx(TitleInner, { ...props, ref: forwardedRef });
|
|
24
|
+
});
|
|
25
|
+
Title.displayName = "Title";
|
|
26
|
+
export {
|
|
27
|
+
Title
|
|
28
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const DrawerPrimitive = require("@radix-ui/react-dialog");
|
|
6
|
+
function _interopNamespaceDefault(e) {
|
|
7
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
8
|
+
if (e) {
|
|
9
|
+
for (const k in e) {
|
|
10
|
+
if (k !== "default") {
|
|
11
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: () => e[k]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
n.default = e;
|
|
20
|
+
return Object.freeze(n);
|
|
21
|
+
}
|
|
22
|
+
const DrawerPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(DrawerPrimitive);
|
|
23
|
+
const Trigger = React.forwardRef(
|
|
24
|
+
({ children, ...props }, forwardedRef) => /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Trigger, { ...props, ref: forwardedRef, asChild: true, children })
|
|
25
|
+
);
|
|
26
|
+
Trigger.displayName = "Trigger";
|
|
27
|
+
exports.Trigger = Trigger;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
|
+
type TriggerProps = Omit<React.ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger>, 'asChild' | 'children'> & {
|
|
5
|
+
/**
|
|
6
|
+
* This component requires a `children` prop which should be a `Button` component.
|
|
7
|
+
* The `asChild` prop is set to `true` for the underlying `DialogPrimitive.Trigger`,
|
|
8
|
+
* so the `children` must be a valid React element, specifically a `Button`.
|
|
9
|
+
*/
|
|
10
|
+
children: React.ReactElement;
|
|
11
|
+
};
|
|
12
|
+
declare const Trigger: React.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref">, "children" | "asChild"> & {
|
|
13
|
+
/**
|
|
14
|
+
* This component requires a `children` prop which should be a `Button` component.
|
|
15
|
+
* The `asChild` prop is set to `true` for the underlying `DialogPrimitive.Trigger`,
|
|
16
|
+
* so the `children` must be a valid React element, specifically a `Button`.
|
|
17
|
+
*/
|
|
18
|
+
children: React.ReactElement;
|
|
19
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
export { Trigger };
|
|
21
|
+
export type { TriggerProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import * as DrawerPrimitive from "@radix-ui/react-dialog";
|
|
4
|
+
const Trigger = React__default.forwardRef(
|
|
5
|
+
({ children, ...props }, forwardedRef) => /* @__PURE__ */ jsx(DrawerPrimitive.Trigger, { ...props, ref: forwardedRef, asChild: true, children })
|
|
6
|
+
);
|
|
7
|
+
Trigger.displayName = "Trigger";
|
|
8
|
+
export {
|
|
9
|
+
Trigger
|
|
10
|
+
};
|
package/dist/components/navigation-menu/global-navigation/global-navigation-desktop-simplified.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
3
|
+
import { h } from "../../radio-card-group/radio-card-group-item-title.js";
|
|
4
4
|
import "./utils.js";
|
|
5
5
|
import "../../box/box.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
h as DesktopSimplified
|
|
8
8
|
};
|
package/dist/components/navigation-menu/global-navigation/global-navigation-mobile-simplified.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
3
|
+
import { i } from "../../radio-card-group/radio-card-group-item-title.js";
|
|
4
4
|
import "clsx";
|
|
5
5
|
import "../../flex/flex.js";
|
|
6
6
|
import "../../box/box.js";
|
|
7
7
|
import "../../../assets/sprite.1321fab0-teddy.svg";
|
|
8
8
|
import "../../icon/icon.js";
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
i as MobileSimplified
|
|
11
11
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { H,
|
|
3
|
+
import { H, g } from "../../radio-card-group/radio-card-group-item-title.js";
|
|
4
4
|
import "clsx";
|
|
5
5
|
import "../../flex/flex.js";
|
|
6
6
|
import "../../box/box.js";
|
|
@@ -14,5 +14,5 @@ import "../../list/index.js";
|
|
|
14
14
|
import "../../heading/heading.js";
|
|
15
15
|
export {
|
|
16
16
|
H as HighlightedLinks,
|
|
17
|
-
|
|
17
|
+
g as Mobile
|
|
18
18
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../drawer/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { c } from "../../radio-card-group/radio-card-group-item-title.js";
|
|
5
5
|
import "../../../assets/sprite.1321fab0-teddy.svg";
|
|
6
6
|
import "../../icon/icon.js";
|
|
7
7
|
import "../../button/button.js";
|
|
@@ -11,5 +11,5 @@ import "../../text-spacing/text-spacing.js";
|
|
|
11
11
|
import "../../tabs/index.js";
|
|
12
12
|
import "./utils.js";
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
c as MyPages
|
|
15
15
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "clsx";
|
|
4
|
-
import { k, j
|
|
4
|
+
import { l, k, j } from "../../radio-card-group/radio-card-group-item-title.js";
|
|
5
5
|
import "./utils.js";
|
|
6
6
|
import "../../box/box.js";
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
l as Root,
|
|
9
|
+
k as RootContext,
|
|
10
|
+
j as rootClassName
|
|
11
11
|
};
|
|
@@ -4,7 +4,7 @@ import "../../../assets/sprite.1321fab0-teddy.svg";
|
|
|
4
4
|
import "../../icon/icon.js";
|
|
5
5
|
import "../../text-field/index.js";
|
|
6
6
|
import "../../../utils/composeRefs.js";
|
|
7
|
-
import {
|
|
7
|
+
import { d } from "../../radio-card-group/radio-card-group-item-title.js";
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
d as SearchField
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../drawer/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { e } from "../../radio-card-group/radio-card-group-item-title.js";
|
|
5
5
|
import "../../../assets/sprite.1321fab0-teddy.svg";
|
|
6
6
|
import "../../icon/icon.js";
|
|
7
7
|
import "../../button/button.js";
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
e as Search
|
|
10
10
|
};
|
package/dist/components/navigation-menu/global-navigation/global-navigation-shopping-cart.js
CHANGED
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "clsx";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../../drawer/index.js";
|
|
5
|
-
import {
|
|
5
|
+
import { f } from "../../radio-card-group/radio-card-group-item-title.js";
|
|
6
6
|
import "../../../assets/sprite.1321fab0-teddy.svg";
|
|
7
7
|
import "../../icon/icon.js";
|
|
8
8
|
import "../../button/button.js";
|
|
@@ -10,5 +10,5 @@ import "../../badge/badge.js";
|
|
|
10
10
|
import "../../badge/alert-badge.js";
|
|
11
11
|
import "../../badge/counter-badge.js";
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
f as ShoppingCart
|
|
14
14
|
};
|
|
@@ -5,7 +5,11 @@ const components_notabene_notabeneHeading = require("./notabene-heading.cjs");
|
|
|
5
5
|
const components_notabene_notabeneIcon = require("./notabene-icon.cjs");
|
|
6
6
|
const components_notabene_notabeneRoot = require("./notabene-root.cjs");
|
|
7
7
|
const Notabene = components_notabene_notabeneRoot.Root;
|
|
8
|
+
Notabene.displayName = "Notabene";
|
|
8
9
|
Notabene.Content = components_notabene_notabene_content.Content;
|
|
10
|
+
Notabene.Content.displayName = "Notabene.Content";
|
|
9
11
|
Notabene.Heading = components_notabene_notabeneHeading.Heading;
|
|
12
|
+
Notabene.Heading.displayName = "Notabene.Heading";
|
|
10
13
|
Notabene.Icon = components_notabene_notabeneIcon.Icon;
|
|
14
|
+
Notabene.Icon.displayName = "Notabene.Icon";
|
|
11
15
|
exports.Notabene = Notabene;
|
|
@@ -3,9 +3,13 @@ import { Heading } from "./notabene-heading.js";
|
|
|
3
3
|
import { Icon } from "./notabene-icon.js";
|
|
4
4
|
import { Root } from "./notabene-root.js";
|
|
5
5
|
const Notabene = Root;
|
|
6
|
+
Notabene.displayName = "Notabene";
|
|
6
7
|
Notabene.Content = Content;
|
|
8
|
+
Notabene.Content.displayName = "Notabene.Content";
|
|
7
9
|
Notabene.Heading = Heading;
|
|
10
|
+
Notabene.Heading.displayName = "Notabene.Heading";
|
|
8
11
|
Notabene.Icon = Icon;
|
|
12
|
+
Notabene.Icon.displayName = "Notabene.Icon";
|
|
9
13
|
export {
|
|
10
14
|
Notabene
|
|
11
15
|
};
|
|
@@ -7,9 +7,15 @@ const components_notification_notificationRoot = require("./notification-root.cj
|
|
|
7
7
|
const components_notification_notificationText = require("./notification-text.cjs");
|
|
8
8
|
const components_notification_notificationFooter = require("./notification-footer.cjs");
|
|
9
9
|
const Notification = components_notification_notificationRoot.Root;
|
|
10
|
+
Notification.displayName = "Notification";
|
|
10
11
|
Notification.Text = components_notification_notificationText.Text;
|
|
12
|
+
Notification.Text.displayName = "Notification.Text";
|
|
11
13
|
Notification.Heading = components_notification_notificationHeading.Heading;
|
|
14
|
+
Notification.Heading.displayName = "Notification.Heading";
|
|
12
15
|
Notification.Footer = components_notification_notificationFooter.Footer;
|
|
16
|
+
Notification.Footer.displayName = "Notification.Footer";
|
|
13
17
|
Notification.Icon = components_notification_notificationIcon.Icon;
|
|
18
|
+
Notification.Icon.displayName = "Notification.Icon";
|
|
14
19
|
Notification.Dismiss = components_notification_notificationDismiss.Dismiss;
|
|
20
|
+
Notification.Dismiss.displayName = "Notification.Dismiss";
|
|
15
21
|
exports.Notification = Notification;
|
|
@@ -5,11 +5,17 @@ import { Root } from "./notification-root.js";
|
|
|
5
5
|
import { Text } from "./notification-text.js";
|
|
6
6
|
import { Footer } from "./notification-footer.js";
|
|
7
7
|
const Notification = Root;
|
|
8
|
+
Notification.displayName = "Notification";
|
|
8
9
|
Notification.Text = Text;
|
|
10
|
+
Notification.Text.displayName = "Notification.Text";
|
|
9
11
|
Notification.Heading = Heading;
|
|
12
|
+
Notification.Heading.displayName = "Notification.Heading";
|
|
10
13
|
Notification.Footer = Footer;
|
|
14
|
+
Notification.Footer.displayName = "Notification.Footer";
|
|
11
15
|
Notification.Icon = Icon;
|
|
16
|
+
Notification.Icon.displayName = "Notification.Icon";
|
|
12
17
|
Notification.Dismiss = Dismiss;
|
|
18
|
+
Notification.Dismiss.displayName = "Notification.Dismiss";
|
|
13
19
|
export {
|
|
14
20
|
Notification
|
|
15
21
|
};
|
|
@@ -14,5 +14,5 @@ const Footer = React.forwardRef(
|
|
|
14
14
|
return /* @__PURE__ */ jsxRuntime.jsx(components_box_box.Box, { ...props, ref: forwardRef, className: classes });
|
|
15
15
|
}
|
|
16
16
|
);
|
|
17
|
-
Footer.displayName = "
|
|
17
|
+
Footer.displayName = "Footer";
|
|
18
18
|
exports.Footer = Footer;
|