@telia/teddy 0.6.1 → 0.6.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/{subscription-card/subscription-card-avatar.cjs → dashboard-card/dashboard-card-avatar.cjs} +3 -3
- package/dist/components/{subscription-card/subscription-card-avatar.js → dashboard-card/dashboard-card-avatar.js} +1 -1
- package/dist/components/{subscription-card/subscription-card-content.cjs → dashboard-card/dashboard-card-content.cjs} +2 -2
- package/dist/components/{subscription-card/subscription-card-content.d.ts → dashboard-card/dashboard-card-content.d.ts} +1 -1
- package/dist/components/{subscription-card/subscription-card-content.js → dashboard-card/dashboard-card-content.js} +1 -1
- package/dist/components/dashboard-card/dashboard-card-footer.cjs +11 -0
- package/dist/components/dashboard-card/dashboard-card-footer.d.ts +4 -0
- package/dist/components/dashboard-card/dashboard-card-footer.js +11 -0
- package/dist/components/{subscription-card/subscription-card-heading.cjs → dashboard-card/dashboard-card-heading.cjs} +2 -2
- package/dist/components/{subscription-card/subscription-card-heading.js → dashboard-card/dashboard-card-heading.js} +1 -1
- package/dist/components/dashboard-card/dashboard-card-illustration.cjs +14 -0
- package/dist/components/dashboard-card/dashboard-card-illustration.d.ts +4 -0
- package/dist/components/dashboard-card/dashboard-card-illustration.js +14 -0
- package/dist/components/{subscription-card/subscription-card-root.cjs → dashboard-card/dashboard-card-root.cjs} +16 -14
- package/dist/components/{subscription-card/subscription-card-root.d.ts → dashboard-card/dashboard-card-root.d.ts} +1 -1
- package/dist/components/{subscription-card/subscription-card-root.js → dashboard-card/dashboard-card-root.js} +16 -14
- package/dist/components/{subscription-card/subscription-card-subtitle.cjs → dashboard-card/dashboard-card-subtitle.cjs} +2 -2
- package/dist/components/{subscription-card/subscription-card-subtitle.js → dashboard-card/dashboard-card-subtitle.js} +1 -1
- package/dist/components/dashboard-card/index.cjs +24 -0
- package/dist/components/dashboard-card/index.d.ts +96 -0
- package/dist/components/dashboard-card/index.js +24 -0
- package/dist/components/index.cjs +2 -2
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/modal/modal-close.cjs +1 -1
- package/dist/components/modal/modal-close.js +1 -1
- package/dist/components/navigation-menu/navigation-menu.cjs +1 -1
- package/dist/components/navigation-menu/navigation-menu.js +1 -1
- package/dist/components/radio-card-group/radio-card-group-content.cjs +1 -1
- package/dist/components/radio-card-group/radio-card-group-content.js +1 -1
- package/dist/components/radio-card-group/radio-card-group-item-title.cjs +1 -1
- package/dist/components/radio-card-group/radio-card-group-item-title.js +1 -1
- package/dist/components/radio-card-group/radio-card-group-item.cjs +1 -1
- package/dist/components/radio-card-group/radio-card-group-item.js +1 -1
- package/dist/main.cjs +2 -2
- package/dist/main.js +2 -2
- package/dist/style.css +58 -34
- package/package.json +1 -1
- package/dist/components/subscription-card/index.cjs +0 -18
- package/dist/components/subscription-card/index.d.ts +0 -74
- package/dist/components/subscription-card/index.js +0 -18
- /package/dist/components/{subscription-card/subscription-card-avatar.d.ts → dashboard-card/dashboard-card-avatar.d.ts} +0 -0
- /package/dist/components/{subscription-card/subscription-card-heading.d.ts → dashboard-card/dashboard-card-heading.d.ts} +0 -0
- /package/dist/components/{subscription-card/subscription-card-subtitle.d.ts → dashboard-card/dashboard-card-subtitle.d.ts} +0 -0
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const components_avatar_index = require("../avatar/index.cjs");
|
|
7
|
-
const
|
|
7
|
+
const components_dashboardCard_dashboardCardRoot = require("./dashboard-card-root.cjs");
|
|
8
8
|
const getDefaultVariant = (variant) => {
|
|
9
9
|
switch (variant) {
|
|
10
10
|
case "white":
|
|
@@ -15,8 +15,8 @@ const getDefaultVariant = (variant) => {
|
|
|
15
15
|
};
|
|
16
16
|
const Avatar = React.forwardRef(
|
|
17
17
|
({ className, ...props }, forwardRef) => {
|
|
18
|
-
const classes = clsx([
|
|
19
|
-
const rootContext = React.useContext(
|
|
18
|
+
const classes = clsx([components_dashboardCard_dashboardCardRoot.styles[`${components_dashboardCard_dashboardCardRoot.rootClassName}__avatar`]], className);
|
|
19
|
+
const rootContext = React.useContext(components_dashboardCard_dashboardCardRoot.RootContext);
|
|
20
20
|
const cardVariant = rootContext == null ? void 0 : rootContext.variant;
|
|
21
21
|
const variant = props.variant ?? getDefaultVariant(cardVariant);
|
|
22
22
|
return /* @__PURE__ */ jsxRuntime.jsx(components_avatar_index.Avatar, { ...props, variant, ref: forwardRef, className: classes });
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { Avatar as Avatar$1 } from "../avatar/index.js";
|
|
5
|
-
import { s as styles, rootClassName, RootContext } from "./
|
|
5
|
+
import { s as styles, rootClassName, RootContext } from "./dashboard-card-root.js";
|
|
6
6
|
const getDefaultVariant = (variant) => {
|
|
7
7
|
switch (variant) {
|
|
8
8
|
case "white":
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
|
-
const
|
|
6
|
+
const components_dashboardCard_dashboardCardRoot = require("./dashboard-card-root.cjs");
|
|
7
7
|
const Content = React.forwardRef(
|
|
8
8
|
({ className, ...props }, forwardRef) => {
|
|
9
|
-
const classes = clsx([
|
|
9
|
+
const classes = clsx([components_dashboardCard_dashboardCardRoot.styles[`${components_dashboardCard_dashboardCardRoot.rootClassName}__content`]], className);
|
|
10
10
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { ...props, ref: forwardRef, className: classes });
|
|
11
11
|
}
|
|
12
12
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
|
-
export type ContentProps = React.ComponentPropsWithoutRef<'div'
|
|
3
|
+
export type ContentProps = React.ComponentPropsWithoutRef<'div'>;
|
|
4
4
|
export declare const Content: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import { s as styles, rootClassName } from "./
|
|
4
|
+
import { s as styles, rootClassName } from "./dashboard-card-root.js";
|
|
5
5
|
const Content = React__default.forwardRef(
|
|
6
6
|
({ className, ...props }, forwardRef) => {
|
|
7
7
|
const classes = clsx([styles[`${rootClassName}__content`]], className);
|
|
@@ -0,0 +1,11 @@
|
|
|
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 components_dashboardCard_dashboardCardRoot = require("./dashboard-card-root.cjs");
|
|
7
|
+
const Footer = React.forwardRef(({ className, ...props }, forwardRef) => {
|
|
8
|
+
const classes = clsx([components_dashboardCard_dashboardCardRoot.styles[`${components_dashboardCard_dashboardCardRoot.rootClassName}__footer`]], className);
|
|
9
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ...props, ref: forwardRef, className: classes });
|
|
10
|
+
});
|
|
11
|
+
exports.Footer = Footer;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export type FooterProps = React.ComponentPropsWithoutRef<'div'>;
|
|
4
|
+
export declare const Footer: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { s as styles, rootClassName } from "./dashboard-card-root.js";
|
|
5
|
+
const Footer = React__default.forwardRef(({ className, ...props }, forwardRef) => {
|
|
6
|
+
const classes = clsx([styles[`${rootClassName}__footer`]], className);
|
|
7
|
+
return /* @__PURE__ */ jsx("div", { ...props, ref: forwardRef, className: classes });
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
Footer
|
|
11
|
+
};
|
|
@@ -4,10 +4,10 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const components_heading_heading = require("../heading/heading.cjs");
|
|
7
|
-
const
|
|
7
|
+
const components_dashboardCard_dashboardCardRoot = require("./dashboard-card-root.cjs");
|
|
8
8
|
const Heading = React.forwardRef(
|
|
9
9
|
({ className, as = "h2", ...props }, forwardRef) => {
|
|
10
|
-
const classes = clsx([
|
|
10
|
+
const classes = clsx([components_dashboardCard_dashboardCardRoot.styles[`${components_dashboardCard_dashboardCardRoot.rootClassName}__heading`]], className);
|
|
11
11
|
const variant = props.variant ?? "subsection-100";
|
|
12
12
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13
13
|
components_heading_heading.Heading,
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { Heading as Heading$1 } from "../heading/heading.js";
|
|
5
|
-
import { s as styles, rootClassName } from "./
|
|
5
|
+
import { s as styles, rootClassName } from "./dashboard-card-root.js";
|
|
6
6
|
const Heading = React__default.forwardRef(
|
|
7
7
|
({ className, as = "h2", ...props }, forwardRef) => {
|
|
8
8
|
const classes = clsx([styles[`${rootClassName}__heading`]], className);
|
|
@@ -0,0 +1,14 @@
|
|
|
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 components_dashboardCard_dashboardCardRoot = require("./dashboard-card-root.cjs");
|
|
7
|
+
const Illustration = React.forwardRef(
|
|
8
|
+
({ className, ...props }, forwardRef) => {
|
|
9
|
+
const classes = clsx([components_dashboardCard_dashboardCardRoot.styles[`${components_dashboardCard_dashboardCardRoot.rootClassName}__illustration`]], className);
|
|
10
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ...props, ref: forwardRef, className: classes });
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
Illustration.displayName = "Illustration";
|
|
14
|
+
exports.Illustration = Illustration;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export type IllustrationProps = React.ComponentPropsWithoutRef<'div'>;
|
|
4
|
+
export declare const Illustration: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { s as styles, rootClassName } from "./dashboard-card-root.js";
|
|
5
|
+
const Illustration = React__default.forwardRef(
|
|
6
|
+
({ className, ...props }, forwardRef) => {
|
|
7
|
+
const classes = clsx([styles[`${rootClassName}__illustration`]], className);
|
|
8
|
+
return /* @__PURE__ */ jsx("div", { ...props, ref: forwardRef, className: classes });
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
Illustration.displayName = "Illustration";
|
|
12
|
+
export {
|
|
13
|
+
Illustration
|
|
14
|
+
};
|
|
@@ -7,21 +7,23 @@ const reactSlot = require("@radix-ui/react-slot");
|
|
|
7
7
|
require("../../assets/sprite.c3af21af-teddy.svg");
|
|
8
8
|
const components_icon_icon = require("../icon/icon.cjs");
|
|
9
9
|
const styles = {
|
|
10
|
-
"teddy-
|
|
11
|
-
"teddy-
|
|
12
|
-
"teddy-
|
|
13
|
-
"teddy-
|
|
14
|
-
"teddy-
|
|
15
|
-
"teddy-
|
|
16
|
-
"teddy-
|
|
17
|
-
"teddy-
|
|
18
|
-
"teddy-
|
|
19
|
-
"teddy-
|
|
20
|
-
"teddy-
|
|
21
|
-
"teddy-
|
|
22
|
-
"teddy-
|
|
10
|
+
"teddy-dashboard-card": "_teddy-dashboard-card_hpo7d_3",
|
|
11
|
+
"teddy-dashboard-card__content": "_teddy-dashboard-card__content_hpo7d_18",
|
|
12
|
+
"teddy-dashboard-card__footer": "_teddy-dashboard-card__footer_hpo7d_19",
|
|
13
|
+
"teddy-dashboard-card--white": "_teddy-dashboard-card--white_hpo7d_22",
|
|
14
|
+
"teddy-dashboard-card--disabled": "_teddy-dashboard-card--disabled_hpo7d_26",
|
|
15
|
+
"teddy-dashboard-card--border": "_teddy-dashboard-card--border_hpo7d_35",
|
|
16
|
+
"teddy-dashboard-card--grey": "_teddy-dashboard-card--grey_hpo7d_47",
|
|
17
|
+
"teddy-dashboard-card--purple-light": "_teddy-dashboard-card--purple-light_hpo7d_60",
|
|
18
|
+
"teddy-dashboard-card--beige-light": "_teddy-dashboard-card--beige-light_hpo7d_73",
|
|
19
|
+
"teddy-dashboard-card__layout": "_teddy-dashboard-card__layout_hpo7d_86",
|
|
20
|
+
"teddy-dashboard-card__avatar": "_teddy-dashboard-card__avatar_hpo7d_96",
|
|
21
|
+
"teddy-dashboard-card__illustration": "_teddy-dashboard-card__illustration_hpo7d_99",
|
|
22
|
+
"teddy-dashboard-card__heading": "_teddy-dashboard-card__heading_hpo7d_102",
|
|
23
|
+
"teddy-dashboard-card__subtitle": "_teddy-dashboard-card__subtitle_hpo7d_106",
|
|
24
|
+
"teddy-dashboard-card__chevron": "_teddy-dashboard-card__chevron_hpo7d_110"
|
|
23
25
|
};
|
|
24
|
-
const rootClassName = "teddy-
|
|
26
|
+
const rootClassName = "teddy-dashboard-card";
|
|
25
27
|
const RootContext = React.createContext(void 0);
|
|
26
28
|
const Root = React.forwardRef(
|
|
27
29
|
({ className, asChild, variant = "white", bordered = false, children, ...props }, forwardRef) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
|
-
export declare const rootClassName = "teddy-
|
|
3
|
+
export declare const rootClassName = "teddy-dashboard-card";
|
|
4
4
|
type Variant = 'white' | 'grey' | 'purple-light' | 'beige-light';
|
|
5
5
|
export declare const RootContext: React.Context<{
|
|
6
6
|
variant?: Variant | undefined;
|
|
@@ -5,21 +5,23 @@ import { Slottable, Slot } from "@radix-ui/react-slot";
|
|
|
5
5
|
import "../../assets/sprite.c3af21af-teddy.svg";
|
|
6
6
|
import { Icon } from "../icon/icon.js";
|
|
7
7
|
const styles = {
|
|
8
|
-
"teddy-
|
|
9
|
-
"teddy-
|
|
10
|
-
"teddy-
|
|
11
|
-
"teddy-
|
|
12
|
-
"teddy-
|
|
13
|
-
"teddy-
|
|
14
|
-
"teddy-
|
|
15
|
-
"teddy-
|
|
16
|
-
"teddy-
|
|
17
|
-
"teddy-
|
|
18
|
-
"teddy-
|
|
19
|
-
"teddy-
|
|
20
|
-
"teddy-
|
|
8
|
+
"teddy-dashboard-card": "_teddy-dashboard-card_hpo7d_3",
|
|
9
|
+
"teddy-dashboard-card__content": "_teddy-dashboard-card__content_hpo7d_18",
|
|
10
|
+
"teddy-dashboard-card__footer": "_teddy-dashboard-card__footer_hpo7d_19",
|
|
11
|
+
"teddy-dashboard-card--white": "_teddy-dashboard-card--white_hpo7d_22",
|
|
12
|
+
"teddy-dashboard-card--disabled": "_teddy-dashboard-card--disabled_hpo7d_26",
|
|
13
|
+
"teddy-dashboard-card--border": "_teddy-dashboard-card--border_hpo7d_35",
|
|
14
|
+
"teddy-dashboard-card--grey": "_teddy-dashboard-card--grey_hpo7d_47",
|
|
15
|
+
"teddy-dashboard-card--purple-light": "_teddy-dashboard-card--purple-light_hpo7d_60",
|
|
16
|
+
"teddy-dashboard-card--beige-light": "_teddy-dashboard-card--beige-light_hpo7d_73",
|
|
17
|
+
"teddy-dashboard-card__layout": "_teddy-dashboard-card__layout_hpo7d_86",
|
|
18
|
+
"teddy-dashboard-card__avatar": "_teddy-dashboard-card__avatar_hpo7d_96",
|
|
19
|
+
"teddy-dashboard-card__illustration": "_teddy-dashboard-card__illustration_hpo7d_99",
|
|
20
|
+
"teddy-dashboard-card__heading": "_teddy-dashboard-card__heading_hpo7d_102",
|
|
21
|
+
"teddy-dashboard-card__subtitle": "_teddy-dashboard-card__subtitle_hpo7d_106",
|
|
22
|
+
"teddy-dashboard-card__chevron": "_teddy-dashboard-card__chevron_hpo7d_110"
|
|
21
23
|
};
|
|
22
|
-
const rootClassName = "teddy-
|
|
24
|
+
const rootClassName = "teddy-dashboard-card";
|
|
23
25
|
const RootContext = React__default.createContext(void 0);
|
|
24
26
|
const Root = React__default.forwardRef(
|
|
25
27
|
({ className, asChild, variant = "white", bordered = false, children, ...props }, forwardRef) => {
|
|
@@ -4,10 +4,10 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const components_text_text = require("../text/text.cjs");
|
|
7
|
-
const
|
|
7
|
+
const components_dashboardCard_dashboardCardRoot = require("./dashboard-card-root.cjs");
|
|
8
8
|
const Subtitle = React.forwardRef(
|
|
9
9
|
({ className, ...props }, forwardRef) => {
|
|
10
|
-
const classes = clsx([
|
|
10
|
+
const classes = clsx([components_dashboardCard_dashboardCardRoot.styles[`${components_dashboardCard_dashboardCardRoot.rootClassName}__subtitle`]], className);
|
|
11
11
|
const variant = props.variant ?? "additional-100";
|
|
12
12
|
return /* @__PURE__ */ jsxRuntime.jsx(components_text_text.Text, { faded: true, ...props, variant, ref: forwardRef, className: classes });
|
|
13
13
|
}
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { Text } from "../text/text.js";
|
|
5
|
-
import { s as styles, rootClassName } from "./
|
|
5
|
+
import { s as styles, rootClassName } from "./dashboard-card-root.js";
|
|
6
6
|
const Subtitle = React__default.forwardRef(
|
|
7
7
|
({ className, ...props }, forwardRef) => {
|
|
8
8
|
const classes = clsx([styles[`${rootClassName}__subtitle`]], className);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const components_dashboardCard_dashboardCardRoot = require("./dashboard-card-root.cjs");
|
|
4
|
+
const components_dashboardCard_dashboardCardHeading = require("./dashboard-card-heading.cjs");
|
|
5
|
+
const components_dashboardCard_dashboardCardSubtitle = require("./dashboard-card-subtitle.cjs");
|
|
6
|
+
const components_dashboardCard_dashboardCardAvatar = require("./dashboard-card-avatar.cjs");
|
|
7
|
+
const components_dashboardCard_dashboardCardContent = require("./dashboard-card-content.cjs");
|
|
8
|
+
const components_dashboardCard_dashboardCardIllustration = require("./dashboard-card-illustration.cjs");
|
|
9
|
+
const components_dashboardCard_dashboardCardFooter = require("./dashboard-card-footer.cjs");
|
|
10
|
+
const DashboardCard = components_dashboardCard_dashboardCardRoot.Root;
|
|
11
|
+
DashboardCard.displayName = "DashboardCard";
|
|
12
|
+
DashboardCard.Avatar = components_dashboardCard_dashboardCardAvatar.Avatar;
|
|
13
|
+
DashboardCard.Avatar.displayName = "DashboardCard.Avatar";
|
|
14
|
+
DashboardCard.Illustration = components_dashboardCard_dashboardCardIllustration.Illustration;
|
|
15
|
+
DashboardCard.Illustration.displayName = "DashboardCard.Illustration";
|
|
16
|
+
DashboardCard.Heading = components_dashboardCard_dashboardCardHeading.Heading;
|
|
17
|
+
DashboardCard.Heading.displayName = "DashboardCard.Heading";
|
|
18
|
+
DashboardCard.Subtitle = components_dashboardCard_dashboardCardSubtitle.Subtitle;
|
|
19
|
+
DashboardCard.Subtitle.displayName = "DashboardCard.Subtitle";
|
|
20
|
+
DashboardCard.Content = components_dashboardCard_dashboardCardContent.Content;
|
|
21
|
+
DashboardCard.Content.displayName = "DashboardCard.Content";
|
|
22
|
+
DashboardCard.Footer = components_dashboardCard_dashboardCardFooter.Footer;
|
|
23
|
+
DashboardCard.Footer.displayName = "DashboardCard.Footer";
|
|
24
|
+
exports.DashboardCard = DashboardCard;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { RootProps } from './dashboard-card-root';
|
|
2
|
+
import { Heading, HeadingProps } from './dashboard-card-heading';
|
|
3
|
+
import { Subtitle, SubtitleProps } from './dashboard-card-subtitle';
|
|
4
|
+
import { Avatar, AvatarProps } from './dashboard-card-avatar';
|
|
5
|
+
import { Content, ContentProps } from './dashboard-card-content';
|
|
6
|
+
import { Illustration, IllustrationProps } from './dashboard-card-illustration';
|
|
7
|
+
import { Footer, FooterProps } from './dashboard-card-footer';
|
|
8
|
+
|
|
9
|
+
export type DashboardCardProps = {
|
|
10
|
+
Root: RootProps;
|
|
11
|
+
Avatar: AvatarProps;
|
|
12
|
+
Illustration: IllustrationProps;
|
|
13
|
+
Heading: HeadingProps;
|
|
14
|
+
Subtitle: SubtitleProps;
|
|
15
|
+
Content: ContentProps;
|
|
16
|
+
Footer: FooterProps;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Dashboard card is used as a navigation anchor from MinSide homepage to other pages.
|
|
20
|
+
* The dashboard card by default is an anchor element, but it can be used as a button as well.
|
|
21
|
+
* Use the `asChild` prop to render it as a button. Button onClick event gives you an opportunity
|
|
22
|
+
* to handle your custom logic before the navigation happens. When you need just to navigate,
|
|
23
|
+
* prefer using default - anchor.
|
|
24
|
+
*
|
|
25
|
+
* @component
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* <DashboardCard>
|
|
29
|
+
* <DashboardCard.Avatar/>
|
|
30
|
+
* <DashboardCard.Heading/>
|
|
31
|
+
* <DashboardCard.Subtitle/>
|
|
32
|
+
* <DashboardCard.Content/>
|
|
33
|
+
* </DashboardCard>
|
|
34
|
+
*/
|
|
35
|
+
declare const DashboardCard: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
36
|
+
asChild?: boolean | undefined;
|
|
37
|
+
variant?: ("grey" | "white" | "purple-light" | "beige-light") | undefined;
|
|
38
|
+
bordered?: boolean | undefined;
|
|
39
|
+
disabled?: boolean | undefined;
|
|
40
|
+
} & import('react').RefAttributes<HTMLAnchorElement>> & {
|
|
41
|
+
/**
|
|
42
|
+
* Avatar component for the DashboardCard.
|
|
43
|
+
*
|
|
44
|
+
* @component
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* <DashboardCard.Avatar/>
|
|
48
|
+
*/
|
|
49
|
+
Avatar: typeof Avatar;
|
|
50
|
+
/**
|
|
51
|
+
* Illustration component for the DashboardCard.
|
|
52
|
+
*
|
|
53
|
+
* @component
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* <DashboardCard.Illustration/>
|
|
57
|
+
*/
|
|
58
|
+
Illustration: typeof Illustration;
|
|
59
|
+
/**
|
|
60
|
+
* Heading component for the DashboardCard.
|
|
61
|
+
*
|
|
62
|
+
* @component
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* <DashboardCard.Heading/>
|
|
66
|
+
*/
|
|
67
|
+
Heading: typeof Heading;
|
|
68
|
+
/**
|
|
69
|
+
* Subtitle component for the DashboardCard.
|
|
70
|
+
*
|
|
71
|
+
* @component
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* <DashboardCard.Subtitle/>
|
|
75
|
+
*/
|
|
76
|
+
Subtitle: typeof Subtitle;
|
|
77
|
+
/**
|
|
78
|
+
* Content component for the DashboardCard.
|
|
79
|
+
*
|
|
80
|
+
* @component
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* <DashboardCard.Content/>
|
|
84
|
+
*/
|
|
85
|
+
Content: typeof Content;
|
|
86
|
+
/**
|
|
87
|
+
* Footer component for the DashboardCard.
|
|
88
|
+
*
|
|
89
|
+
* @component
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* <DashboardCard.Footer/>
|
|
93
|
+
*/
|
|
94
|
+
Footer: typeof Footer;
|
|
95
|
+
};
|
|
96
|
+
export { DashboardCard };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Root } from "./dashboard-card-root.js";
|
|
2
|
+
import { Heading } from "./dashboard-card-heading.js";
|
|
3
|
+
import { Subtitle } from "./dashboard-card-subtitle.js";
|
|
4
|
+
import { Avatar } from "./dashboard-card-avatar.js";
|
|
5
|
+
import { Content } from "./dashboard-card-content.js";
|
|
6
|
+
import { Illustration } from "./dashboard-card-illustration.js";
|
|
7
|
+
import { Footer } from "./dashboard-card-footer.js";
|
|
8
|
+
const DashboardCard = Root;
|
|
9
|
+
DashboardCard.displayName = "DashboardCard";
|
|
10
|
+
DashboardCard.Avatar = Avatar;
|
|
11
|
+
DashboardCard.Avatar.displayName = "DashboardCard.Avatar";
|
|
12
|
+
DashboardCard.Illustration = Illustration;
|
|
13
|
+
DashboardCard.Illustration.displayName = "DashboardCard.Illustration";
|
|
14
|
+
DashboardCard.Heading = Heading;
|
|
15
|
+
DashboardCard.Heading.displayName = "DashboardCard.Heading";
|
|
16
|
+
DashboardCard.Subtitle = Subtitle;
|
|
17
|
+
DashboardCard.Subtitle.displayName = "DashboardCard.Subtitle";
|
|
18
|
+
DashboardCard.Content = Content;
|
|
19
|
+
DashboardCard.Content.displayName = "DashboardCard.Content";
|
|
20
|
+
DashboardCard.Footer = Footer;
|
|
21
|
+
DashboardCard.Footer.displayName = "DashboardCard.Footer";
|
|
22
|
+
export {
|
|
23
|
+
DashboardCard
|
|
24
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const components_avatar_index = require("./avatar/index.cjs");
|
|
4
|
-
const
|
|
4
|
+
const components_dashboardCard_index = require("./dashboard-card/index.cjs");
|
|
5
5
|
const components_table_index = require("./table/index.cjs");
|
|
6
6
|
const components_flipCard_index = require("./flip-card/index.cjs");
|
|
7
7
|
const components_channelButton_index = require("./channel-button/index.cjs");
|
|
@@ -60,7 +60,7 @@ const components_slider_slider = require("./slider/slider.cjs");
|
|
|
60
60
|
const sonner = require("sonner");
|
|
61
61
|
const components_input_inputGroup = require("./input/input-group.cjs");
|
|
62
62
|
exports.Avatar = components_avatar_index.Avatar;
|
|
63
|
-
exports.
|
|
63
|
+
exports.DashboardCard = components_dashboardCard_index.DashboardCard;
|
|
64
64
|
exports.Table = components_table_index.Table;
|
|
65
65
|
exports.FlipCard = components_flipCard_index.FlipCard;
|
|
66
66
|
exports.ChannelButton = components_channelButton_index.ChannelButton;
|
package/dist/components/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Avatar } from "./avatar/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { DashboardCard } from "./dashboard-card/index.js";
|
|
3
3
|
import { Table } from "./table/index.js";
|
|
4
4
|
import { FlipCard } from "./flip-card/index.js";
|
|
5
5
|
import { ChannelButton } from "./channel-button/index.js";
|
|
@@ -76,6 +76,7 @@ export {
|
|
|
76
76
|
ColorDot,
|
|
77
77
|
Container,
|
|
78
78
|
CounterBadge,
|
|
79
|
+
DashboardCard,
|
|
79
80
|
DatePicker,
|
|
80
81
|
Drawer,
|
|
81
82
|
ExpandableCard,
|
|
@@ -107,7 +108,6 @@ export {
|
|
|
107
108
|
Skeleton,
|
|
108
109
|
Slider,
|
|
109
110
|
Spinner,
|
|
110
|
-
SubscriptionCard,
|
|
111
111
|
Table,
|
|
112
112
|
Tabs,
|
|
113
113
|
Text,
|
|
@@ -4,7 +4,7 @@ require("react/jsx-runtime");
|
|
|
4
4
|
require("react");
|
|
5
5
|
require("@radix-ui/react-dialog");
|
|
6
6
|
require("../avatar/index.cjs");
|
|
7
|
-
require("../
|
|
7
|
+
require("../dashboard-card/index.cjs");
|
|
8
8
|
require("../table/index.cjs");
|
|
9
9
|
require("../flip-card/index.cjs");
|
|
10
10
|
require("../channel-button/index.cjs");
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "@radix-ui/react-dialog";
|
|
4
4
|
import "../avatar/index.js";
|
|
5
|
-
import "../
|
|
5
|
+
import "../dashboard-card/index.js";
|
|
6
6
|
import "../table/index.js";
|
|
7
7
|
import "../flip-card/index.js";
|
|
8
8
|
import "../channel-button/index.js";
|
|
@@ -13,7 +13,7 @@ require("@radix-ui/react-use-controllable-state");
|
|
|
13
13
|
require("../../utils/generate-styling/index.cjs");
|
|
14
14
|
require("../../tokens/motion/variables.cjs");
|
|
15
15
|
require("../avatar/index.cjs");
|
|
16
|
-
require("../
|
|
16
|
+
require("../dashboard-card/index.cjs");
|
|
17
17
|
require("../table/index.cjs");
|
|
18
18
|
require("../flip-card/index.cjs");
|
|
19
19
|
require("../channel-button/index.cjs");
|
|
@@ -11,7 +11,7 @@ import "@radix-ui/react-use-controllable-state";
|
|
|
11
11
|
import "../../utils/generate-styling/index.js";
|
|
12
12
|
import "../../tokens/motion/variables.js";
|
|
13
13
|
import "../avatar/index.js";
|
|
14
|
-
import "../
|
|
14
|
+
import "../dashboard-card/index.js";
|
|
15
15
|
import "../table/index.js";
|
|
16
16
|
import "../flip-card/index.js";
|
|
17
17
|
import "../channel-button/index.js";
|
|
@@ -5,7 +5,7 @@ require("clsx");
|
|
|
5
5
|
require("react");
|
|
6
6
|
require("./radio-card-group-root.cjs");
|
|
7
7
|
require("../avatar/index.cjs");
|
|
8
|
-
require("../
|
|
8
|
+
require("../dashboard-card/index.cjs");
|
|
9
9
|
require("../table/index.cjs");
|
|
10
10
|
require("../flip-card/index.cjs");
|
|
11
11
|
require("../channel-button/index.cjs");
|
|
@@ -3,7 +3,7 @@ import "clsx";
|
|
|
3
3
|
import "react";
|
|
4
4
|
import "./radio-card-group-root.js";
|
|
5
5
|
import "../avatar/index.js";
|
|
6
|
-
import "../
|
|
6
|
+
import "../dashboard-card/index.js";
|
|
7
7
|
import "../table/index.js";
|
|
8
8
|
import "../flip-card/index.js";
|
|
9
9
|
import "../channel-button/index.js";
|
|
@@ -13,7 +13,7 @@ const reactUseControllableState = require("@radix-ui/react-use-controllable-stat
|
|
|
13
13
|
const utils_generateStyling_index = require("../../utils/generate-styling/index.cjs");
|
|
14
14
|
const tokens_motion_variables = require("../../tokens/motion/variables.cjs");
|
|
15
15
|
require("../avatar/index.cjs");
|
|
16
|
-
require("../
|
|
16
|
+
require("../dashboard-card/index.cjs");
|
|
17
17
|
require("../table/index.cjs");
|
|
18
18
|
require("../flip-card/index.cjs");
|
|
19
19
|
require("../channel-button/index.cjs");
|
|
@@ -11,7 +11,7 @@ import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
|
|
11
11
|
import { mergeStyles } from "../../utils/generate-styling/index.js";
|
|
12
12
|
import { teddyMotionDuration300 } from "../../tokens/motion/variables.js";
|
|
13
13
|
import "../avatar/index.js";
|
|
14
|
-
import "../
|
|
14
|
+
import "../dashboard-card/index.js";
|
|
15
15
|
import "../table/index.js";
|
|
16
16
|
import "../flip-card/index.js";
|
|
17
17
|
import "../channel-button/index.js";
|
|
@@ -6,7 +6,7 @@ require("react");
|
|
|
6
6
|
require("./radio-card-group-root.cjs");
|
|
7
7
|
require("@radix-ui/react-radio-group");
|
|
8
8
|
require("../avatar/index.cjs");
|
|
9
|
-
require("../
|
|
9
|
+
require("../dashboard-card/index.cjs");
|
|
10
10
|
require("../table/index.cjs");
|
|
11
11
|
require("../flip-card/index.cjs");
|
|
12
12
|
require("../channel-button/index.cjs");
|
|
@@ -4,7 +4,7 @@ import "react";
|
|
|
4
4
|
import "./radio-card-group-root.js";
|
|
5
5
|
import "@radix-ui/react-radio-group";
|
|
6
6
|
import "../avatar/index.js";
|
|
7
|
-
import "../
|
|
7
|
+
import "../dashboard-card/index.js";
|
|
8
8
|
import "../table/index.js";
|
|
9
9
|
import "../flip-card/index.js";
|
|
10
10
|
import "../channel-button/index.js";
|
package/dist/main.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const components_avatar_index = require("./components/avatar/index.cjs");
|
|
4
|
-
const
|
|
4
|
+
const components_dashboardCard_index = require("./components/dashboard-card/index.cjs");
|
|
5
5
|
const components_table_index = require("./components/table/index.cjs");
|
|
6
6
|
const components_flipCard_index = require("./components/flip-card/index.cjs");
|
|
7
7
|
const components_channelButton_index = require("./components/channel-button/index.cjs");
|
|
@@ -67,7 +67,7 @@ const tokens_typography_variables = require("./tokens/typography/variables.cjs")
|
|
|
67
67
|
const sonner = require("sonner");
|
|
68
68
|
const components_input_inputGroup = require("./components/input/input-group.cjs");
|
|
69
69
|
exports.Avatar = components_avatar_index.Avatar;
|
|
70
|
-
exports.
|
|
70
|
+
exports.DashboardCard = components_dashboardCard_index.DashboardCard;
|
|
71
71
|
exports.Table = components_table_index.Table;
|
|
72
72
|
exports.FlipCard = components_flipCard_index.FlipCard;
|
|
73
73
|
exports.ChannelButton = components_channelButton_index.ChannelButton;
|
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Avatar } from "./components/avatar/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { DashboardCard } from "./components/dashboard-card/index.js";
|
|
3
3
|
import { Table } from "./components/table/index.js";
|
|
4
4
|
import { FlipCard } from "./components/flip-card/index.js";
|
|
5
5
|
import { ChannelButton } from "./components/channel-button/index.js";
|
|
@@ -83,6 +83,7 @@ export {
|
|
|
83
83
|
ColorDot,
|
|
84
84
|
Container,
|
|
85
85
|
CounterBadge,
|
|
86
|
+
DashboardCard,
|
|
86
87
|
DatePicker,
|
|
87
88
|
Drawer,
|
|
88
89
|
ExpandableCard,
|
|
@@ -114,7 +115,6 @@ export {
|
|
|
114
115
|
Skeleton,
|
|
115
116
|
Slider,
|
|
116
117
|
Spinner,
|
|
117
|
-
SubscriptionCard,
|
|
118
118
|
Table,
|
|
119
119
|
Tabs,
|
|
120
120
|
Text,
|
package/dist/style.css
CHANGED
|
@@ -148,9 +148,9 @@
|
|
|
148
148
|
}
|
|
149
149
|
._teddy-avatar--green_e3370_30 {
|
|
150
150
|
background-color: var(--teddy-color-green-50);
|
|
151
|
-
}@layer heading, badge, flex, grid,
|
|
152
|
-
@layer
|
|
153
|
-
._teddy-
|
|
151
|
+
}@layer heading, badge, flex, grid, dashboard-card;
|
|
152
|
+
@layer dashboard-card {
|
|
153
|
+
._teddy-dashboard-card_hpo7d_3 {
|
|
154
154
|
outline: none;
|
|
155
155
|
background: none;
|
|
156
156
|
border: none;
|
|
@@ -165,102 +165,126 @@
|
|
|
165
165
|
border: var(--teddy-border-width-xs) solid transparent;
|
|
166
166
|
border-radius: var(--teddy-border-radius-md);
|
|
167
167
|
}
|
|
168
|
-
._teddy-
|
|
168
|
+
._teddy-dashboard-card_hpo7d_3 ._teddy-dashboard-card__content_hpo7d_18,
|
|
169
|
+
._teddy-dashboard-card_hpo7d_3 ._teddy-dashboard-card__footer_hpo7d_19 {
|
|
169
170
|
margin-top: var(--teddy-spacing-150);
|
|
170
171
|
}
|
|
171
|
-
._teddy-
|
|
172
|
+
._teddy-dashboard-card--white_hpo7d_22 {
|
|
172
173
|
background-color: var(--teddy-color-brand-white);
|
|
173
174
|
color: var(--teddy-color-text-default);
|
|
174
175
|
}
|
|
175
|
-
._teddy-
|
|
176
|
+
._teddy-dashboard-card--white_hpo7d_22._teddy-dashboard-card--disabled_hpo7d_26 {
|
|
176
177
|
background-color: var(--teddy-color-background-interactive-disabled);
|
|
177
178
|
}
|
|
178
|
-
._teddy-
|
|
179
|
+
._teddy-dashboard-card--white_hpo7d_22:hover:not(:has(._teddy-dashboard-card--disabled_hpo7d_26)) {
|
|
179
180
|
background-color: var(--teddy-color-purple-50);
|
|
180
181
|
}
|
|
181
|
-
._teddy-
|
|
182
|
+
._teddy-dashboard-card--white_hpo7d_22:active:not(:has(._teddy-dashboard-card--disabled_hpo7d_26)) {
|
|
182
183
|
background-color: var(--teddy-color-purple-100);
|
|
183
184
|
}
|
|
184
|
-
._teddy-
|
|
185
|
+
._teddy-dashboard-card--white_hpo7d_22._teddy-dashboard-card--border_hpo7d_35 {
|
|
185
186
|
border-color: var(--teddy-color-transparent-black-300);
|
|
186
187
|
}
|
|
187
|
-
._teddy-
|
|
188
|
+
._teddy-dashboard-card--white_hpo7d_22._teddy-dashboard-card--border_hpo7d_35._teddy-dashboard-card--disabled_hpo7d_26 {
|
|
188
189
|
border-color: var(--teddy-color-transparent-black-300);
|
|
189
190
|
}
|
|
190
|
-
._teddy-
|
|
191
|
+
._teddy-dashboard-card--white_hpo7d_22._teddy-dashboard-card--border_hpo7d_35:hover:not(:has(._teddy-dashboard-card--disabled_hpo7d_26)) {
|
|
191
192
|
border-color: var(--teddy-color-transparent-black-300);
|
|
192
193
|
}
|
|
193
|
-
._teddy-
|
|
194
|
+
._teddy-dashboard-card--white_hpo7d_22._teddy-dashboard-card--border_hpo7d_35:active:not(:has(._teddy-dashboard-card--disabled_hpo7d_26)) {
|
|
194
195
|
border-color: var(--teddy-color-transparent-black-300);
|
|
195
196
|
}
|
|
196
|
-
._teddy-
|
|
197
|
+
._teddy-dashboard-card--grey_hpo7d_47 {
|
|
197
198
|
background-color: #f5f5fa;
|
|
198
199
|
color: var(--teddy-color-text-default);
|
|
199
200
|
}
|
|
200
|
-
._teddy-
|
|
201
|
+
._teddy-dashboard-card--grey_hpo7d_47._teddy-dashboard-card--disabled_hpo7d_26 {
|
|
201
202
|
background-color: var(--teddy-color-background-interactive-disabled);
|
|
202
203
|
}
|
|
203
|
-
._teddy-
|
|
204
|
+
._teddy-dashboard-card--grey_hpo7d_47:hover:not(:has(._teddy-dashboard-card--disabled_hpo7d_26)) {
|
|
204
205
|
background-color: var(--teddy-color-gray-100);
|
|
205
206
|
}
|
|
206
|
-
._teddy-
|
|
207
|
+
._teddy-dashboard-card--grey_hpo7d_47:active:not(:has(._teddy-dashboard-card--disabled_hpo7d_26)) {
|
|
207
208
|
background-color: var(--teddy-color-gray-200);
|
|
208
209
|
}
|
|
209
|
-
._teddy-
|
|
210
|
+
._teddy-dashboard-card--purple-light_hpo7d_60 {
|
|
210
211
|
background-color: var(--teddy-color-purple-50);
|
|
211
212
|
color: var(--teddy-color-text-default);
|
|
212
213
|
}
|
|
213
|
-
._teddy-
|
|
214
|
+
._teddy-dashboard-card--purple-light_hpo7d_60._teddy-dashboard-card--disabled_hpo7d_26 {
|
|
214
215
|
background-color: var(--teddy-color-background-interactive-disabled);
|
|
215
216
|
}
|
|
216
|
-
._teddy-
|
|
217
|
+
._teddy-dashboard-card--purple-light_hpo7d_60:hover:not(:has(._teddy-dashboard-card--disabled_hpo7d_26)) {
|
|
217
218
|
background-color: var(--teddy-color-purple-100);
|
|
218
219
|
}
|
|
219
|
-
._teddy-
|
|
220
|
+
._teddy-dashboard-card--purple-light_hpo7d_60:active:not(:has(._teddy-dashboard-card--disabled_hpo7d_26)) {
|
|
220
221
|
background-color: var(--teddy-color-purple-200);
|
|
221
222
|
}
|
|
222
|
-
._teddy-
|
|
223
|
+
._teddy-dashboard-card--beige-light_hpo7d_73 {
|
|
223
224
|
background-color: var(--teddy-color-beige-50);
|
|
224
225
|
color: var(--teddy-color-text-default);
|
|
225
226
|
}
|
|
226
|
-
._teddy-
|
|
227
|
+
._teddy-dashboard-card--beige-light_hpo7d_73._teddy-dashboard-card--disabled_hpo7d_26 {
|
|
227
228
|
background-color: var(--teddy-color-background-interactive-disabled);
|
|
228
229
|
}
|
|
229
|
-
._teddy-
|
|
230
|
+
._teddy-dashboard-card--beige-light_hpo7d_73:hover:not(:has(._teddy-dashboard-card--disabled_hpo7d_26)) {
|
|
230
231
|
background-color: var(--teddy-color-beige-100);
|
|
231
232
|
}
|
|
232
|
-
._teddy-
|
|
233
|
+
._teddy-dashboard-card--beige-light_hpo7d_73:active:not(:has(._teddy-dashboard-card--disabled_hpo7d_26)) {
|
|
233
234
|
background-color: var(--teddy-color-beige-200);
|
|
234
235
|
}
|
|
235
|
-
._teddy-
|
|
236
|
+
._teddy-dashboard-card__layout_hpo7d_86 {
|
|
236
237
|
display: grid;
|
|
237
238
|
gap: 0 var(--teddy-spacing-150);
|
|
238
239
|
grid-template-columns: auto 1fr auto;
|
|
240
|
+
grid-template-rows: auto auto 1fr auto;
|
|
239
241
|
justify-items: start;
|
|
240
242
|
justify-content: stretch;
|
|
241
243
|
align-items: center;
|
|
242
|
-
grid-template-areas: "
|
|
244
|
+
grid-template-areas: "media heading chevron" "media subtitle chevron" "content content content" "footer footer footer";
|
|
245
|
+
}
|
|
246
|
+
._teddy-dashboard-card__layout_hpo7d_86 ._teddy-dashboard-card__avatar_hpo7d_96 {
|
|
247
|
+
grid-area: media;
|
|
243
248
|
}
|
|
244
|
-
._teddy-
|
|
245
|
-
grid-area:
|
|
249
|
+
._teddy-dashboard-card__layout_hpo7d_86 ._teddy-dashboard-card__illustration_hpo7d_99 {
|
|
250
|
+
grid-area: media;
|
|
246
251
|
}
|
|
247
|
-
._teddy-
|
|
252
|
+
._teddy-dashboard-card__layout_hpo7d_86 ._teddy-dashboard-card__heading_hpo7d_102 {
|
|
248
253
|
grid-area: heading;
|
|
254
|
+
align-self: end;
|
|
249
255
|
}
|
|
250
|
-
._teddy-
|
|
256
|
+
._teddy-dashboard-card__layout_hpo7d_86 ._teddy-dashboard-card__subtitle_hpo7d_106 {
|
|
251
257
|
grid-area: subtitle;
|
|
258
|
+
align-self: start;
|
|
252
259
|
}
|
|
253
|
-
._teddy-
|
|
260
|
+
._teddy-dashboard-card__layout_hpo7d_86 ._teddy-dashboard-card__chevron_hpo7d_110 {
|
|
254
261
|
grid-area: chevron;
|
|
255
262
|
}
|
|
256
|
-
._teddy-
|
|
263
|
+
._teddy-dashboard-card__layout_hpo7d_86 ._teddy-dashboard-card__content_hpo7d_18 {
|
|
257
264
|
grid-area: content;
|
|
265
|
+
align-self: start;
|
|
266
|
+
}
|
|
267
|
+
._teddy-dashboard-card__layout_hpo7d_86 ._teddy-dashboard-card__footer_hpo7d_19 {
|
|
268
|
+
grid-area: footer;
|
|
269
|
+
align-self: end;
|
|
270
|
+
}
|
|
271
|
+
._teddy-dashboard-card__layout_hpo7d_86:not(:has(._teddy-dashboard-card__subtitle_hpo7d_106)) {
|
|
272
|
+
grid-template-areas: "media heading chevron" "media heading chevron" "content content content" "footer footer footer";
|
|
273
|
+
}
|
|
274
|
+
._teddy-dashboard-card__layout_hpo7d_86:not(:has(._teddy-dashboard-card__subtitle_hpo7d_106)) ._teddy-dashboard-card__heading_hpo7d_102 {
|
|
275
|
+
align-self: center;
|
|
276
|
+
}
|
|
277
|
+
._teddy-dashboard-card__illustration_hpo7d_99 {
|
|
278
|
+
display: flex;
|
|
279
|
+
align-items: center;
|
|
280
|
+
justify-content: center;
|
|
281
|
+
width: 40px;
|
|
258
282
|
}
|
|
259
|
-
._teddy-
|
|
283
|
+
._teddy-dashboard-card_hpo7d_3:focus-visible {
|
|
260
284
|
outline: solid var(--teddy-border-width-sm) var(--teddy-color-border-interactive-focus);
|
|
261
285
|
outline-offset: var(--teddy-spacing-25);
|
|
262
286
|
}
|
|
263
|
-
._teddy-
|
|
287
|
+
._teddy-dashboard-card--disabled_hpo7d_26 {
|
|
264
288
|
pointer-events: none;
|
|
265
289
|
}
|
|
266
290
|
}@layer heading {
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const components_subscriptionCard_subscriptionCardRoot = require("./subscription-card-root.cjs");
|
|
4
|
-
const components_subscriptionCard_subscriptionCardHeading = require("./subscription-card-heading.cjs");
|
|
5
|
-
const components_subscriptionCard_subscriptionCardSubtitle = require("./subscription-card-subtitle.cjs");
|
|
6
|
-
const components_subscriptionCard_subscriptionCardAvatar = require("./subscription-card-avatar.cjs");
|
|
7
|
-
const components_subscriptionCard_subscriptionCardContent = require("./subscription-card-content.cjs");
|
|
8
|
-
const SubscriptionCard = components_subscriptionCard_subscriptionCardRoot.Root;
|
|
9
|
-
SubscriptionCard.displayName = "SubscriptionCard";
|
|
10
|
-
SubscriptionCard.Avatar = components_subscriptionCard_subscriptionCardAvatar.Avatar;
|
|
11
|
-
SubscriptionCard.Avatar.displayName = "SubscriptionCard.Avatar";
|
|
12
|
-
SubscriptionCard.Heading = components_subscriptionCard_subscriptionCardHeading.Heading;
|
|
13
|
-
SubscriptionCard.Heading.displayName = "SubscriptionCard.Heading";
|
|
14
|
-
SubscriptionCard.Subtitle = components_subscriptionCard_subscriptionCardSubtitle.Subtitle;
|
|
15
|
-
SubscriptionCard.Subtitle.displayName = "SubscriptionCard.Subtitle";
|
|
16
|
-
SubscriptionCard.Content = components_subscriptionCard_subscriptionCardContent.Content;
|
|
17
|
-
SubscriptionCard.Content.displayName = "SubscriptionCard.Content";
|
|
18
|
-
exports.SubscriptionCard = SubscriptionCard;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { RootProps } from './subscription-card-root';
|
|
2
|
-
import { Heading, HeadingProps } from './subscription-card-heading';
|
|
3
|
-
import { Subtitle, SubtitleProps } from './subscription-card-subtitle';
|
|
4
|
-
import { Avatar, AvatarProps } from './subscription-card-avatar';
|
|
5
|
-
import { Content, ContentProps } from './subscription-card-content';
|
|
6
|
-
|
|
7
|
-
export type SubscriptionCardProps = {
|
|
8
|
-
Root: RootProps;
|
|
9
|
-
Avatar: AvatarProps;
|
|
10
|
-
Heading: HeadingProps;
|
|
11
|
-
Subtitle: SubtitleProps;
|
|
12
|
-
Content: ContentProps;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Subscription card is used as a navigation anchor from MinSide homepage to other pages.
|
|
16
|
-
* The subscription card by default is an anchor element, but it can be used as a button as well.
|
|
17
|
-
* Use the `asChild` prop to render it as a button. Button onClick event gives you an opportunity
|
|
18
|
-
* to handle your custom logic before the navigation happens. When you need just to navigate,
|
|
19
|
-
* prefer using default - anchor.
|
|
20
|
-
*
|
|
21
|
-
* @component
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* <SubscriptionCard>
|
|
25
|
-
* <SubscriptionCard.Avatar/>
|
|
26
|
-
* <SubscriptionCard.Heading/>
|
|
27
|
-
* <SubscriptionCard.Subtitle/>
|
|
28
|
-
* <SubscriptionCard.Content/>
|
|
29
|
-
* </SubscriptionCard>
|
|
30
|
-
*/
|
|
31
|
-
declare const SubscriptionCard: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
32
|
-
asChild?: boolean | undefined;
|
|
33
|
-
variant?: ("grey" | "white" | "purple-light" | "beige-light") | undefined;
|
|
34
|
-
bordered?: boolean | undefined;
|
|
35
|
-
disabled?: boolean | undefined;
|
|
36
|
-
} & import('react').RefAttributes<HTMLAnchorElement>> & {
|
|
37
|
-
/**
|
|
38
|
-
* Avatar component for the SubscriptionCard.
|
|
39
|
-
*
|
|
40
|
-
* @component
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* <SubscriptionCard.Avatar/>
|
|
44
|
-
*/
|
|
45
|
-
Avatar: typeof Avatar;
|
|
46
|
-
/**
|
|
47
|
-
* Heading component for the SubscriptionCard.
|
|
48
|
-
*
|
|
49
|
-
* @component
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* <SubscriptionCard.Heading/>
|
|
53
|
-
*/
|
|
54
|
-
Heading: typeof Heading;
|
|
55
|
-
/**
|
|
56
|
-
* Subtitle component for the SubscriptionCard.
|
|
57
|
-
*
|
|
58
|
-
* @component
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* <SubscriptionCard.Subtitle/>
|
|
62
|
-
*/
|
|
63
|
-
Subtitle: typeof Subtitle;
|
|
64
|
-
/**
|
|
65
|
-
* Content component for the SubscriptionCard.
|
|
66
|
-
*
|
|
67
|
-
* @component
|
|
68
|
-
*
|
|
69
|
-
* @example
|
|
70
|
-
* <SubscriptionCard.Content/>
|
|
71
|
-
*/
|
|
72
|
-
Content: typeof Content;
|
|
73
|
-
};
|
|
74
|
-
export { SubscriptionCard };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Root } from "./subscription-card-root.js";
|
|
2
|
-
import { Heading } from "./subscription-card-heading.js";
|
|
3
|
-
import { Subtitle } from "./subscription-card-subtitle.js";
|
|
4
|
-
import { Avatar } from "./subscription-card-avatar.js";
|
|
5
|
-
import { Content } from "./subscription-card-content.js";
|
|
6
|
-
const SubscriptionCard = Root;
|
|
7
|
-
SubscriptionCard.displayName = "SubscriptionCard";
|
|
8
|
-
SubscriptionCard.Avatar = Avatar;
|
|
9
|
-
SubscriptionCard.Avatar.displayName = "SubscriptionCard.Avatar";
|
|
10
|
-
SubscriptionCard.Heading = Heading;
|
|
11
|
-
SubscriptionCard.Heading.displayName = "SubscriptionCard.Heading";
|
|
12
|
-
SubscriptionCard.Subtitle = Subtitle;
|
|
13
|
-
SubscriptionCard.Subtitle.displayName = "SubscriptionCard.Subtitle";
|
|
14
|
-
SubscriptionCard.Content = Content;
|
|
15
|
-
SubscriptionCard.Content.displayName = "SubscriptionCard.Content";
|
|
16
|
-
export {
|
|
17
|
-
SubscriptionCard
|
|
18
|
-
};
|
|
File without changes
|
|
File without changes
|