@telia/teddy 0.5.1 → 0.6.0
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/avatar/avatar-root.cjs +34 -0
- package/dist/components/avatar/avatar-root.d.ts +17 -0
- package/dist/components/avatar/avatar-root.js +34 -0
- package/dist/components/avatar/index.cjs +6 -0
- package/dist/components/avatar/index.d.ts +9 -0
- package/dist/components/avatar/index.js +6 -0
- package/dist/components/avatar/utils.cjs +10 -0
- package/dist/components/avatar/utils.d.ts +1 -0
- package/dist/components/avatar/utils.js +10 -0
- package/dist/components/breadcrumbs/breadcrumbs-link.d.ts +1 -1
- package/dist/components/breadcrumbs/index.d.ts +1 -1
- package/dist/components/card/card-illustration.d.ts +1 -1
- package/dist/components/card/card-link.d.ts +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/channel-button/channel-button-root.d.ts +6 -6
- package/dist/components/channel-button/index.d.ts +6 -6
- package/dist/components/checkbox/checkbox-group-list.d.ts +1 -1
- package/dist/components/checkbox/checkbox-group.d.ts +1 -1
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/chip/chip-indicator.d.ts +2 -2
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/expandable-card/expandable-card-button.d.ts +4 -4
- package/dist/components/expandable-card/index.d.ts +5 -5
- package/dist/components/flip-card/flip-card-trigger.d.ts +4 -4
- package/dist/components/icon/utils.d.ts +1 -1
- package/dist/components/index.cjs +4 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +4 -0
- package/dist/components/modal/modal-close.cjs +2 -0
- package/dist/components/modal/modal-close.js +2 -0
- package/dist/components/modal/modal-title.d.ts +1 -1
- package/dist/components/navigation-menu/navigation-menu.cjs +2 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
- package/dist/components/navigation-menu/navigation-menu.js +2 -0
- package/dist/components/notabene/notabene-icon.d.ts +2 -2
- package/dist/components/notification/index.d.ts +8 -8
- package/dist/components/notification/notification-icon.d.ts +2 -2
- package/dist/components/notification/notification-root.d.ts +8 -8
- package/dist/components/radio-card-group/radio-card-group-content.cjs +2 -0
- package/dist/components/radio-card-group/radio-card-group-content.js +2 -0
- package/dist/components/radio-card-group/radio-card-group-item-title.cjs +2 -0
- package/dist/components/radio-card-group/radio-card-group-item-title.js +2 -0
- package/dist/components/radio-card-group/radio-card-group-item.cjs +2 -0
- package/dist/components/radio-card-group/radio-card-group-item.js +2 -0
- package/dist/components/scroll-area/index.d.ts +5 -5
- package/dist/components/scroll-area/scroll-area-button.d.ts +4 -4
- package/dist/components/subscription-card/index.cjs +18 -0
- package/dist/components/subscription-card/index.d.ts +74 -0
- package/dist/components/subscription-card/index.js +18 -0
- package/dist/components/subscription-card/subscription-card-avatar.cjs +25 -0
- package/dist/components/subscription-card/subscription-card-avatar.d.ts +10 -0
- package/dist/components/subscription-card/subscription-card-avatar.js +25 -0
- package/dist/components/subscription-card/subscription-card-content.cjs +13 -0
- package/dist/components/subscription-card/subscription-card-content.d.ts +4 -0
- package/dist/components/subscription-card/subscription-card-content.js +13 -0
- package/dist/components/subscription-card/subscription-card-heading.cjs +24 -0
- package/dist/components/subscription-card/subscription-card-heading.d.ts +5 -0
- package/dist/components/subscription-card/subscription-card-heading.js +24 -0
- package/dist/components/subscription-card/subscription-card-root.cjs +60 -0
- package/dist/components/subscription-card/subscription-card-root.d.ts +20 -0
- package/dist/components/subscription-card/subscription-card-root.js +60 -0
- package/dist/components/subscription-card/subscription-card-subtitle.cjs +15 -0
- package/dist/components/subscription-card/subscription-card-subtitle.d.ts +5 -0
- package/dist/components/subscription-card/subscription-card-subtitle.js +15 -0
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/tabs-root.d.ts +1 -1
- package/dist/components/tabs/tabs-scroll-button.d.ts +4 -4
- package/dist/components/tabs/tabs-scroll.d.ts +1 -1
- package/dist/components/text-field/index.d.ts +4 -4
- package/dist/components/text-field/text-field-button.d.ts +4 -4
- package/dist/components/toggle/toggle.d.ts +2 -2
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/main.cjs +4 -0
- package/dist/main.js +4 -0
- package/dist/style.css +349 -203
- package/dist/utils/generate-styling/grid.d.ts +24 -24
- package/dist/utils/generate-styling/index.d.ts +16 -16
- package/dist/utils/generate-styling/util.d.ts +2 -2
- package/package.json +2 -1
|
@@ -0,0 +1,13 @@
|
|
|
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 "./subscription-card-root.js";
|
|
5
|
+
const Content = React__default.forwardRef(
|
|
6
|
+
({ className, ...props }, forwardRef) => {
|
|
7
|
+
const classes = clsx([styles[`${rootClassName}__content`]], className);
|
|
8
|
+
return /* @__PURE__ */ jsx("div", { ...props, ref: forwardRef, className: classes });
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
export {
|
|
12
|
+
Content
|
|
13
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
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_heading_heading = require("../heading/heading.cjs");
|
|
7
|
+
const components_subscriptionCard_subscriptionCardRoot = require("./subscription-card-root.cjs");
|
|
8
|
+
const Heading = React.forwardRef(
|
|
9
|
+
({ className, as = "h2", ...props }, forwardRef) => {
|
|
10
|
+
const classes = clsx([components_subscriptionCard_subscriptionCardRoot.styles[`${components_subscriptionCard_subscriptionCardRoot.rootClassName}__heading`]], className);
|
|
11
|
+
const variant = props.variant ?? "subsection-100";
|
|
12
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13
|
+
components_heading_heading.Heading,
|
|
14
|
+
{
|
|
15
|
+
...props,
|
|
16
|
+
...!props.asChild ? { as, asChild: false } : { as: void 0, asChild: true },
|
|
17
|
+
variant,
|
|
18
|
+
ref: forwardRef,
|
|
19
|
+
className: classes
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
exports.Heading = Heading;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Heading as PrimitiveHeading } from '../heading';
|
|
3
|
+
|
|
4
|
+
export type HeadingProps = React.ComponentPropsWithoutRef<typeof PrimitiveHeading>;
|
|
5
|
+
export declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { Heading as Heading$1 } from "../heading/heading.js";
|
|
5
|
+
import { s as styles, rootClassName } from "./subscription-card-root.js";
|
|
6
|
+
const Heading = React__default.forwardRef(
|
|
7
|
+
({ className, as = "h2", ...props }, forwardRef) => {
|
|
8
|
+
const classes = clsx([styles[`${rootClassName}__heading`]], className);
|
|
9
|
+
const variant = props.variant ?? "subsection-100";
|
|
10
|
+
return /* @__PURE__ */ jsx(
|
|
11
|
+
Heading$1,
|
|
12
|
+
{
|
|
13
|
+
...props,
|
|
14
|
+
...!props.asChild ? { as, asChild: false } : { as: void 0, asChild: true },
|
|
15
|
+
variant,
|
|
16
|
+
ref: forwardRef,
|
|
17
|
+
className: classes
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
export {
|
|
23
|
+
Heading
|
|
24
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
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 reactSlot = require("@radix-ui/react-slot");
|
|
7
|
+
require("../../assets/sprite.c3af21af-teddy.svg");
|
|
8
|
+
const components_icon_icon = require("../icon/icon.cjs");
|
|
9
|
+
const styles = {
|
|
10
|
+
"teddy-subscription-card": "_teddy-subscription-card_77suf_3",
|
|
11
|
+
"teddy-subscription-card__content": "_teddy-subscription-card__content_77suf_18",
|
|
12
|
+
"teddy-subscription-card--white": "_teddy-subscription-card--white_77suf_21",
|
|
13
|
+
"teddy-subscription-card--disabled": "_teddy-subscription-card--disabled_77suf_25",
|
|
14
|
+
"teddy-subscription-card--border": "_teddy-subscription-card--border_77suf_34",
|
|
15
|
+
"teddy-subscription-card--grey": "_teddy-subscription-card--grey_77suf_46",
|
|
16
|
+
"teddy-subscription-card--purple-light": "_teddy-subscription-card--purple-light_77suf_59",
|
|
17
|
+
"teddy-subscription-card--beige-light": "_teddy-subscription-card--beige-light_77suf_72",
|
|
18
|
+
"teddy-subscription-card__layout": "_teddy-subscription-card__layout_77suf_85",
|
|
19
|
+
"teddy-subscription-card__avatar": "_teddy-subscription-card__avatar_77suf_94",
|
|
20
|
+
"teddy-subscription-card__heading": "_teddy-subscription-card__heading_77suf_97",
|
|
21
|
+
"teddy-subscription-card__subtitle": "_teddy-subscription-card__subtitle_77suf_100",
|
|
22
|
+
"teddy-subscription-card__chevron": "_teddy-subscription-card__chevron_77suf_103"
|
|
23
|
+
};
|
|
24
|
+
const rootClassName = "teddy-subscription-card";
|
|
25
|
+
const RootContext = React.createContext(void 0);
|
|
26
|
+
const Root = React.forwardRef(
|
|
27
|
+
({ className, asChild, variant = "white", bordered = false, children, ...props }, forwardRef) => {
|
|
28
|
+
const { disabled } = props;
|
|
29
|
+
const classes = clsx(
|
|
30
|
+
[styles[`${rootClassName}`]],
|
|
31
|
+
{
|
|
32
|
+
[styles[`${rootClassName}--${variant}`]]: variant,
|
|
33
|
+
[styles[`${rootClassName}--border`]]: bordered,
|
|
34
|
+
[styles[`${rootClassName}--disabled`]]: disabled,
|
|
35
|
+
[styles[`${rootClassName}__layout`]]: true
|
|
36
|
+
},
|
|
37
|
+
className
|
|
38
|
+
);
|
|
39
|
+
const Comp = asChild ? reactSlot.Slot : "a";
|
|
40
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RootContext.Provider, { value: { variant }, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
41
|
+
Comp,
|
|
42
|
+
{
|
|
43
|
+
...props,
|
|
44
|
+
ref: forwardRef,
|
|
45
|
+
className: classes,
|
|
46
|
+
"aria-disabled": disabled,
|
|
47
|
+
tabIndex: disabled ? -1 : void 0,
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: "chevron-right", className: styles[`${rootClassName}__chevron`] }),
|
|
50
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactSlot.Slottable, { children })
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
) });
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
Root.displayName = "Root";
|
|
57
|
+
exports.Root = Root;
|
|
58
|
+
exports.RootContext = RootContext;
|
|
59
|
+
exports.rootClassName = rootClassName;
|
|
60
|
+
exports.styles = styles;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const rootClassName = "teddy-subscription-card";
|
|
4
|
+
type Variant = 'white' | 'grey' | 'purple-light' | 'beige-light';
|
|
5
|
+
export declare const RootContext: React.Context<{
|
|
6
|
+
variant?: Variant | undefined;
|
|
7
|
+
} | undefined>;
|
|
8
|
+
export type RootProps = React.ComponentPropsWithoutRef<'a'> & {
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
variant?: Variant;
|
|
11
|
+
bordered?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const Root: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
15
|
+
asChild?: boolean | undefined;
|
|
16
|
+
variant?: Variant | undefined;
|
|
17
|
+
bordered?: boolean | undefined;
|
|
18
|
+
disabled?: boolean | undefined;
|
|
19
|
+
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { Slottable, Slot } from "@radix-ui/react-slot";
|
|
5
|
+
import "../../assets/sprite.c3af21af-teddy.svg";
|
|
6
|
+
import { Icon } from "../icon/icon.js";
|
|
7
|
+
const styles = {
|
|
8
|
+
"teddy-subscription-card": "_teddy-subscription-card_77suf_3",
|
|
9
|
+
"teddy-subscription-card__content": "_teddy-subscription-card__content_77suf_18",
|
|
10
|
+
"teddy-subscription-card--white": "_teddy-subscription-card--white_77suf_21",
|
|
11
|
+
"teddy-subscription-card--disabled": "_teddy-subscription-card--disabled_77suf_25",
|
|
12
|
+
"teddy-subscription-card--border": "_teddy-subscription-card--border_77suf_34",
|
|
13
|
+
"teddy-subscription-card--grey": "_teddy-subscription-card--grey_77suf_46",
|
|
14
|
+
"teddy-subscription-card--purple-light": "_teddy-subscription-card--purple-light_77suf_59",
|
|
15
|
+
"teddy-subscription-card--beige-light": "_teddy-subscription-card--beige-light_77suf_72",
|
|
16
|
+
"teddy-subscription-card__layout": "_teddy-subscription-card__layout_77suf_85",
|
|
17
|
+
"teddy-subscription-card__avatar": "_teddy-subscription-card__avatar_77suf_94",
|
|
18
|
+
"teddy-subscription-card__heading": "_teddy-subscription-card__heading_77suf_97",
|
|
19
|
+
"teddy-subscription-card__subtitle": "_teddy-subscription-card__subtitle_77suf_100",
|
|
20
|
+
"teddy-subscription-card__chevron": "_teddy-subscription-card__chevron_77suf_103"
|
|
21
|
+
};
|
|
22
|
+
const rootClassName = "teddy-subscription-card";
|
|
23
|
+
const RootContext = React__default.createContext(void 0);
|
|
24
|
+
const Root = React__default.forwardRef(
|
|
25
|
+
({ className, asChild, variant = "white", bordered = false, children, ...props }, forwardRef) => {
|
|
26
|
+
const { disabled } = props;
|
|
27
|
+
const classes = clsx(
|
|
28
|
+
[styles[`${rootClassName}`]],
|
|
29
|
+
{
|
|
30
|
+
[styles[`${rootClassName}--${variant}`]]: variant,
|
|
31
|
+
[styles[`${rootClassName}--border`]]: bordered,
|
|
32
|
+
[styles[`${rootClassName}--disabled`]]: disabled,
|
|
33
|
+
[styles[`${rootClassName}__layout`]]: true
|
|
34
|
+
},
|
|
35
|
+
className
|
|
36
|
+
);
|
|
37
|
+
const Comp = asChild ? Slot : "a";
|
|
38
|
+
return /* @__PURE__ */ jsx(RootContext.Provider, { value: { variant }, children: /* @__PURE__ */ jsxs(
|
|
39
|
+
Comp,
|
|
40
|
+
{
|
|
41
|
+
...props,
|
|
42
|
+
ref: forwardRef,
|
|
43
|
+
className: classes,
|
|
44
|
+
"aria-disabled": disabled,
|
|
45
|
+
tabIndex: disabled ? -1 : void 0,
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ jsx(Icon, { name: "chevron-right", className: styles[`${rootClassName}__chevron`] }),
|
|
48
|
+
/* @__PURE__ */ jsx(Slottable, { children })
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
) });
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
Root.displayName = "Root";
|
|
55
|
+
export {
|
|
56
|
+
Root,
|
|
57
|
+
RootContext,
|
|
58
|
+
rootClassName,
|
|
59
|
+
styles as s
|
|
60
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
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_text_text = require("../text/text.cjs");
|
|
7
|
+
const components_subscriptionCard_subscriptionCardRoot = require("./subscription-card-root.cjs");
|
|
8
|
+
const Subtitle = React.forwardRef(
|
|
9
|
+
({ className, ...props }, forwardRef) => {
|
|
10
|
+
const classes = clsx([components_subscriptionCard_subscriptionCardRoot.styles[`${components_subscriptionCard_subscriptionCardRoot.rootClassName}__subtitle`]], className);
|
|
11
|
+
const variant = props.variant ?? "additional-100";
|
|
12
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components_text_text.Text, { faded: true, ...props, variant, ref: forwardRef, className: classes });
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
exports.Subtitle = Subtitle;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Text as PrimitiveText } from '../text';
|
|
3
|
+
|
|
4
|
+
export type SubtitleProps = React.ComponentPropsWithoutRef<typeof PrimitiveText>;
|
|
5
|
+
export declare const Subtitle: React.ForwardRefExoticComponent<SubtitleProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { Text } from "../text/text.js";
|
|
5
|
+
import { s as styles, rootClassName } from "./subscription-card-root.js";
|
|
6
|
+
const Subtitle = React__default.forwardRef(
|
|
7
|
+
({ className, ...props }, forwardRef) => {
|
|
8
|
+
const classes = clsx([styles[`${rootClassName}__subtitle`]], className);
|
|
9
|
+
const variant = props.variant ?? "additional-100";
|
|
10
|
+
return /* @__PURE__ */ jsx(Text, { faded: true, ...props, variant, ref: forwardRef, className: classes });
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
export {
|
|
14
|
+
Subtitle
|
|
15
|
+
};
|
|
@@ -45,7 +45,7 @@ type TabsProps = {
|
|
|
45
45
|
* <Tabs.Content value="tab2">Content for second tab</Tabs.Content>
|
|
46
46
|
* </Tabs>
|
|
47
47
|
*/
|
|
48
|
-
declare const Tabs: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-tabs').TabsProps & import('react').RefAttributes<HTMLDivElement>, "ref">, "
|
|
48
|
+
declare const Tabs: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-tabs').TabsProps & import('react').RefAttributes<HTMLDivElement>, "ref">, "value" | "defaultValue" | "onValueChange" | "activationMode"> & {
|
|
49
49
|
value?: string | undefined;
|
|
50
50
|
onValueChange?: ((value: string) => void) | undefined;
|
|
51
51
|
defaultValue?: string | undefined;
|
|
@@ -34,7 +34,7 @@ type RootContextType = {
|
|
|
34
34
|
value: string | undefined;
|
|
35
35
|
};
|
|
36
36
|
export declare const RootContext: React.Context<RootContextType | undefined>;
|
|
37
|
-
export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref">, "
|
|
37
|
+
export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref">, "value" | "defaultValue" | "onValueChange" | "activationMode"> & {
|
|
38
38
|
/** The controlled value of the tab to activate. Should be used in conjunction with onValueChange. */
|
|
39
39
|
value?: TabsPrimitive.TabsProps['value'];
|
|
40
40
|
/** Event handler called when the value changes. */
|
|
@@ -10,8 +10,8 @@ export declare const ScrollButton: React.ForwardRefExoticComponent<Omit<Omit<Omi
|
|
|
10
10
|
loading?: boolean | undefined;
|
|
11
11
|
fullWidth?: boolean | undefined;
|
|
12
12
|
size?: "sm" | "md" | "lg" | undefined;
|
|
13
|
-
variant?: "
|
|
14
|
-
borderStyle?: ("
|
|
13
|
+
variant?: "list-item" | "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
14
|
+
borderStyle?: ("dashed" | "default") | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
iconOnly: true;
|
|
17
17
|
"aria-label": string;
|
|
@@ -22,8 +22,8 @@ export declare const ScrollButton: React.ForwardRefExoticComponent<Omit<Omit<Omi
|
|
|
22
22
|
loading?: boolean | undefined;
|
|
23
23
|
fullWidth?: boolean | undefined;
|
|
24
24
|
size?: "sm" | "md" | "lg" | undefined;
|
|
25
|
-
variant?: "
|
|
26
|
-
borderStyle?: ("
|
|
25
|
+
variant?: "list-item" | "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
26
|
+
borderStyle?: ("dashed" | "default") | undefined;
|
|
27
27
|
} & {
|
|
28
28
|
iconOnly?: false | undefined;
|
|
29
29
|
"aria-label"?: string | undefined;
|
|
@@ -5,7 +5,7 @@ export type ScrollProps = React.ComponentPropsWithoutRef<typeof ScrollArea>;
|
|
|
5
5
|
export declare const ScrollContext: React.Context<boolean>;
|
|
6
6
|
/** */
|
|
7
7
|
export declare const Scroll: React.ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-scroll-area').ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
8
|
-
variant?: ("button" | "
|
|
8
|
+
variant?: ("button" | "scrollbar" | "hidden") | undefined;
|
|
9
9
|
scrollBehavior?: "auto" | "smooth" | undefined;
|
|
10
10
|
viewPortClassName?: string | undefined;
|
|
11
11
|
barClassName?: string | undefined;
|
|
@@ -35,8 +35,8 @@ export declare const TextField: import('react').ForwardRefExoticComponent<Omit<i
|
|
|
35
35
|
loading?: boolean | undefined;
|
|
36
36
|
fullWidth?: boolean | undefined;
|
|
37
37
|
size?: "sm" | "md" | "lg" | undefined;
|
|
38
|
-
variant?: "
|
|
39
|
-
borderStyle?: ("
|
|
38
|
+
variant?: "list-item" | "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
39
|
+
borderStyle?: ("dashed" | "default") | undefined;
|
|
40
40
|
} & {
|
|
41
41
|
iconOnly: true;
|
|
42
42
|
"aria-label": string;
|
|
@@ -47,8 +47,8 @@ export declare const TextField: import('react').ForwardRefExoticComponent<Omit<i
|
|
|
47
47
|
loading?: boolean | undefined;
|
|
48
48
|
fullWidth?: boolean | undefined;
|
|
49
49
|
size?: "sm" | "md" | "lg" | undefined;
|
|
50
|
-
variant?: "
|
|
51
|
-
borderStyle?: ("
|
|
50
|
+
variant?: "list-item" | "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
51
|
+
borderStyle?: ("dashed" | "default") | undefined;
|
|
52
52
|
} & {
|
|
53
53
|
iconOnly?: false | undefined;
|
|
54
54
|
"aria-label"?: string | undefined;
|
|
@@ -11,8 +11,8 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
11
11
|
loading?: boolean | undefined;
|
|
12
12
|
fullWidth?: boolean | undefined;
|
|
13
13
|
size?: "sm" | "md" | "lg" | undefined;
|
|
14
|
-
variant?: "
|
|
15
|
-
borderStyle?: ("
|
|
14
|
+
variant?: "list-item" | "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
15
|
+
borderStyle?: ("dashed" | "default") | undefined;
|
|
16
16
|
} & {
|
|
17
17
|
iconOnly: true;
|
|
18
18
|
"aria-label": string;
|
|
@@ -23,8 +23,8 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
23
23
|
loading?: boolean | undefined;
|
|
24
24
|
fullWidth?: boolean | undefined;
|
|
25
25
|
size?: "sm" | "md" | "lg" | undefined;
|
|
26
|
-
variant?: "
|
|
27
|
-
borderStyle?: ("
|
|
26
|
+
variant?: "list-item" | "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
27
|
+
borderStyle?: ("dashed" | "default") | undefined;
|
|
28
28
|
} & {
|
|
29
29
|
iconOnly?: false | undefined;
|
|
30
30
|
"aria-label"?: string | undefined;
|
|
@@ -29,8 +29,8 @@ declare const Toggle: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHT
|
|
|
29
29
|
Input: React.ForwardRefExoticComponent<ToggleInputProps & React.RefAttributes<HTMLButtonElement>>;
|
|
30
30
|
Thumb: React.ForwardRefExoticComponent<Omit<SwitchPrimitive.SwitchThumbProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
31
31
|
Indicator: React.ForwardRefExoticComponent<Partial<Omit<React.SVGProps<SVGSVGElement> & {
|
|
32
|
-
name: "
|
|
33
|
-
size?: ("xxs" | "xs" | "sm" | "md" | "lg" | "xl"
|
|
32
|
+
name: "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "copy" | "dislike" | "download" | "edit" | "filter" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "play" | "remove-filled" | "remove" | "save" | "send" | "settings" | "share" | "shortcut" | "shuffle" | "skip-back-10sec" | "skip-back-30sec" | "skip-forward-10sec" | "skip-forward-30sec" | "star-filled" | "star" | "switch-arrows" | "sync" | "tv-next" | "tv-pause" | "tv-previous" | "tv-stop" | "upload" | "visible" | "volume" | "zoom-out" | "zoom" | "connected-building" | "home" | "hospital" | "industry" | "premises-datacenter" | "premises-large" | "premises-medium" | "premises-small" | "premises" | "store" | "address-book" | "b2b-customer" | "care" | "chat-robot" | "chat" | "child-1" | "child-2" | "conversation" | "customer-dialogue" | "dsl-hub" | "email" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-neutral" | "smiley-sad" | "sms" | "support" | "user-admin" | "vcard" | "voicemail" | "battery" | "bluetooth" | "broadband" | "broken-phone" | "cast" | "cloud-connect" | "connected" | "core-router" | "daas-device" | "data-transfer" | "desktop" | "devices" | "esim-simcard" | "esim" | "face-id" | "fiber" | "fingerprint" | "fiveg" | "fourg" | "home-installation" | "industrial-iot" | "internet" | "it-service" | "laptop" | "mobile-broadband" | "network" | "phone-recycling" | "phone-ringing" | "phone" | "rack" | "refill-card" | "remote-control" | "repair" | "roaming" | "router" | "secure-device" | "sense-car" | "server" | "service-device" | "service-supervision" | "slow-wifi" | "smart-wifi" | "smartphone" | "smartwatch" | "tablet" | "trade-phone" | "tv" | "usb" | "voice-switch" | "wallplug" | "wireless-off" | "wireless-weak" | "wireless" | "world-alert" | "world-off" | "world-question" | "bar-chart" | "doc" | "document-doc" | "document-edit" | "document-pdf" | "document-ppt" | "excel" | "folder-copy" | "folder-new" | "folder" | "gif" | "graph" | "media-content" | "org-chart" | "pie-chart" | "print" | "register" | "report" | "simcard" | "spell-check" | "summary" | "credit-card" | "euro" | "invoice" | "kontantkort" | "kr" | "late-payment" | "money-back-euro" | "money-back-kr" | "money-euro" | "money-kr" | "pay-monthly-euro" | "pay-monthly-kr" | "pay-once-euro" | "pay-once-kr" | "payment-success" | "savings" | "wallet" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "image" | "link" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "video" | "activity-level" | "add" | "ai-robot" | "bag" | "basketball" | "blood-pressure" | "bulb" | "business-continuity" | "business-intelligence" | "calendar" | "cart" | "close-circle" | "cloud" | "coffee" | "compass" | "construction" | "cookie" | "delivery" | "drone" | "education" | "efficiency" | "environment" | "facemask" | "flag" | "focus" | "food" | "fraud" | "getting-started" | "home-care" | "infinite" | "job-search" | "key" | "layers" | "map" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "radio" | "recycle" | "reservation" | "reverse" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "smart-connect" | "snowflake" | "speedometer" | "split" | "spyware" | "stop" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "time" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "x" | "youtube" | "alert-filled" | "alert" | "check-circle-filled" | "check-circle" | "error-filled" | "error" | "help" | "info-filled" | "info" | "question-filled" | "question" | "warning" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-subdirectory" | "arrow-up" | "card-view" | "checkmark-bold" | "checkmark" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "close" | "grid-view" | "list-view" | "menu" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "search" | "services" | "sorter" | "table-view";
|
|
33
|
+
size?: ("font" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl") | undefined;
|
|
34
34
|
children?: React.ReactNode;
|
|
35
35
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
36
36
|
};
|
|
@@ -17,7 +17,7 @@ export declare const Tooltip: typeof Root & {
|
|
|
17
17
|
}>) => void) | undefined;
|
|
18
18
|
side?: "top" | "bottom" | "left" | "right" | undefined;
|
|
19
19
|
sideOffset?: number | undefined;
|
|
20
|
-
align?: "
|
|
20
|
+
align?: "end" | "start" | "center" | undefined;
|
|
21
21
|
alignOffset?: number | undefined;
|
|
22
22
|
arrowPadding?: number | undefined;
|
|
23
23
|
avoidCollisions?: boolean | undefined;
|
package/dist/main.cjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const components_avatar_index = require("./components/avatar/index.cjs");
|
|
4
|
+
const components_subscriptionCard_index = require("./components/subscription-card/index.cjs");
|
|
3
5
|
const components_table_index = require("./components/table/index.cjs");
|
|
4
6
|
const components_flipCard_index = require("./components/flip-card/index.cjs");
|
|
5
7
|
const components_channelButton_index = require("./components/channel-button/index.cjs");
|
|
@@ -64,6 +66,8 @@ const tokens_spacing_variables = require("./tokens/spacing/variables.cjs");
|
|
|
64
66
|
const tokens_typography_variables = require("./tokens/typography/variables.cjs");
|
|
65
67
|
const sonner = require("sonner");
|
|
66
68
|
const components_input_inputGroup = require("./components/input/input-group.cjs");
|
|
69
|
+
exports.Avatar = components_avatar_index.Avatar;
|
|
70
|
+
exports.SubscriptionCard = components_subscriptionCard_index.SubscriptionCard;
|
|
67
71
|
exports.Table = components_table_index.Table;
|
|
68
72
|
exports.FlipCard = components_flipCard_index.FlipCard;
|
|
69
73
|
exports.ChannelButton = components_channelButton_index.ChannelButton;
|
package/dist/main.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Avatar } from "./components/avatar/index.js";
|
|
2
|
+
import { SubscriptionCard } from "./components/subscription-card/index.js";
|
|
1
3
|
import { Table } from "./components/table/index.js";
|
|
2
4
|
import { FlipCard } from "./components/flip-card/index.js";
|
|
3
5
|
import { ChannelButton } from "./components/channel-button/index.js";
|
|
@@ -66,6 +68,7 @@ export {
|
|
|
66
68
|
Accordion,
|
|
67
69
|
AlertBadge,
|
|
68
70
|
default3 as AllIcons,
|
|
71
|
+
Avatar,
|
|
69
72
|
Badge,
|
|
70
73
|
Box,
|
|
71
74
|
Breadcrumbs,
|
|
@@ -111,6 +114,7 @@ export {
|
|
|
111
114
|
Skeleton,
|
|
112
115
|
Slider,
|
|
113
116
|
Spinner,
|
|
117
|
+
SubscriptionCard,
|
|
114
118
|
Table,
|
|
115
119
|
Tabs,
|
|
116
120
|
Text,
|