@telia/teddy 0.0.14 → 0.0.15
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/assets/badge.css +1 -1
- package/dist/{badge-C6I_qxYL.js → badge-Cnug5TzH.js} +382 -380
- package/dist/components/accordion/accordion.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/card/card.d.ts +4 -8
- package/dist/components/card/card.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification/notification.d.ts +35 -4
- package/dist/components/notification/notification.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/main.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../clsx-DB4S2d7J.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { A as y } from "../../badge-
|
|
4
|
+
import { A as y } from "../../badge-Cnug5TzH.js";
|
|
5
5
|
import "../../radio-group-B--zT3OL.js";
|
|
6
6
|
import "../box/box.js";
|
|
7
7
|
import "../flex/flex.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../clsx-DB4S2d7J.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { B as y } from "../../badge-
|
|
4
|
+
import { B as y } from "../../badge-Cnug5TzH.js";
|
|
5
5
|
import "../../index-DpfSJps6.js";
|
|
6
6
|
import "../../radio-group-B--zT3OL.js";
|
|
7
7
|
import "../box/box.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button as PrimitiveButton, Heading as PrimitiveHeading, Link as PrimitiveLink, Box } from '..';
|
|
1
|
+
import { Button as PrimitiveButton, Heading as PrimitiveHeading, Link as PrimitiveLink, Box, Flex } from '..';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
|
|
4
4
|
declare const variantOptions: readonly ["purple-light", "purple-dark", "gray", "white", "beige"];
|
|
@@ -6,7 +6,7 @@ type Variant = (typeof variantOptions)[number];
|
|
|
6
6
|
/** -------------------------------------------------------------------------------------------------
|
|
7
7
|
* Root
|
|
8
8
|
* -----------------------------------------------------------------------------------------------*/
|
|
9
|
-
type RootProps = React.ComponentPropsWithoutRef<
|
|
9
|
+
type RootProps = React.ComponentPropsWithoutRef<typeof Flex> & {
|
|
10
10
|
asChild?: boolean;
|
|
11
11
|
variant?: Variant;
|
|
12
12
|
bordered?: boolean;
|
|
@@ -39,12 +39,8 @@ type ButtonProps = Omit<React.ComponentPropsWithoutRef<typeof PrimitiveButton>,
|
|
|
39
39
|
* Link
|
|
40
40
|
* -----------------------------------------------------------------------------------------------*/
|
|
41
41
|
type LinkProps = React.ComponentPropsWithoutRef<typeof PrimitiveLink>;
|
|
42
|
-
declare const Card: React.ForwardRefExoticComponent<
|
|
43
|
-
|
|
44
|
-
variant?: "purple-light" | "purple-dark" | "gray" | "white" | "beige" | undefined;
|
|
45
|
-
bordered?: boolean | undefined;
|
|
46
|
-
backgroundImageSrc?: string | undefined;
|
|
47
|
-
} & React.RefAttributes<HTMLDivElement>> & {
|
|
42
|
+
declare const Card: React.ForwardRefExoticComponent<RootProps & React.RefAttributes<HTMLDivElement>> & {
|
|
43
|
+
Root: React.ForwardRefExoticComponent<RootProps & React.RefAttributes<HTMLDivElement>>;
|
|
48
44
|
Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
49
45
|
Content: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
50
46
|
Image: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../clsx-DB4S2d7J.js";
|
|
4
|
-
import { C as y } from "../../badge-
|
|
4
|
+
import { C as y } from "../../badge-Cnug5TzH.js";
|
|
5
5
|
import "../../radio-group-B--zT3OL.js";
|
|
6
6
|
import "../box/box.js";
|
|
7
7
|
import "../flex/flex.js";
|
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, B as t, C as p, M as x, N as f, T as a } from "../badge-
|
|
1
|
+
import { A as e, B as t, C as p, M as x, N as f, T as a } from "../badge-Cnug5TzH.js";
|
|
2
2
|
import { R as i } from "../radio-group-B--zT3OL.js";
|
|
3
3
|
import { Box as d } from "./box/box.js";
|
|
4
4
|
import { Flex as l } from "./flex/flex.js";
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { Text as TextPrimitives, Heading as HeadingPrimitives, Icon as IconPrimitives, Button as ButtonPrimitives } from '..';
|
|
1
|
+
import { Text as TextPrimitives, Heading as HeadingPrimitives, Card, Icon as IconPrimitives, Button as ButtonPrimitives } from '..';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
|
|
4
4
|
/** -------------------------------------------------------------------------------------------------
|
|
5
5
|
* Root
|
|
6
6
|
* -----------------------------------------------------------------------------------------------*/
|
|
7
|
-
type RootProps = React.ComponentPropsWithoutRef<'
|
|
8
|
-
asChild?: boolean;
|
|
7
|
+
type RootProps = Omit<React.ComponentPropsWithoutRef<typeof Card.Root>, 'variant' | 'as'> & {
|
|
9
8
|
variant?: 'success' | 'error' | 'warning' | 'information';
|
|
10
9
|
open?: boolean;
|
|
11
10
|
defaultOpen?: boolean;
|
|
@@ -28,8 +27,40 @@ type TextProps = React.ComponentPropsWithoutRef<typeof TextPrimitives>;
|
|
|
28
27
|
* Dismiss
|
|
29
28
|
* -----------------------------------------------------------------------------------------------*/
|
|
30
29
|
type DismissProps = Omit<React.ComponentPropsWithoutRef<typeof ButtonPrimitives>, 'variant'>;
|
|
31
|
-
declare const Notification: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
30
|
+
declare const Notification: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('../../utils/layout/flex').FlexChildren & import('../../utils/layout/grid').GridChildren & import('../../utils/layout/position').PositionProps & import('../../utils/layout/inset').InsetProps & import('../../utils/layout/margin').MarginProps & import('../../utils/layout/padding').PaddingProps & import('../../utils/layout/width').WidthProps & import('../../utils/layout/height').HeightProps & import('../../utils/layout/gap').GapProps & {
|
|
31
|
+
align?: import('../../utils/layout/align').Align | undefined;
|
|
32
|
+
justify?: import('../../utils/layout/justify').Justify | undefined;
|
|
33
|
+
} & import('../../utils/layout/flex').FlexLayout & {
|
|
34
|
+
asChild: true;
|
|
35
|
+
as?: undefined;
|
|
36
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
32
37
|
asChild?: boolean | undefined;
|
|
38
|
+
variant?: "purple-light" | "purple-dark" | "gray" | "white" | "beige" | undefined;
|
|
39
|
+
bordered?: boolean | undefined;
|
|
40
|
+
backgroundImageSrc?: string | undefined;
|
|
41
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('../../utils/layout/flex').FlexChildren & import('../../utils/layout/grid').GridChildren & import('../../utils/layout/position').PositionProps & import('../../utils/layout/inset').InsetProps & import('../../utils/layout/margin').MarginProps & import('../../utils/layout/padding').PaddingProps & import('../../utils/layout/width').WidthProps & import('../../utils/layout/height').HeightProps & import('../../utils/layout/gap').GapProps & {
|
|
42
|
+
align?: import('../../utils/layout/align').Align | undefined;
|
|
43
|
+
justify?: import('../../utils/layout/justify').Justify | undefined;
|
|
44
|
+
} & import('../../utils/layout/flex').FlexLayout & {
|
|
45
|
+
as?: "span" | undefined;
|
|
46
|
+
asChild?: false | undefined;
|
|
47
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
48
|
+
asChild?: boolean | undefined;
|
|
49
|
+
variant?: "purple-light" | "purple-dark" | "gray" | "white" | "beige" | undefined;
|
|
50
|
+
bordered?: boolean | undefined;
|
|
51
|
+
backgroundImageSrc?: string | undefined;
|
|
52
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('../../utils/layout/flex').FlexChildren & import('../../utils/layout/grid').GridChildren & import('../../utils/layout/position').PositionProps & import('../../utils/layout/inset').InsetProps & import('../../utils/layout/margin').MarginProps & import('../../utils/layout/padding').PaddingProps & import('../../utils/layout/width').WidthProps & import('../../utils/layout/height').HeightProps & import('../../utils/layout/gap').GapProps & {
|
|
53
|
+
align?: import('../../utils/layout/align').Align | undefined;
|
|
54
|
+
justify?: import('../../utils/layout/justify').Justify | undefined;
|
|
55
|
+
} & import('../../utils/layout/flex').FlexLayout & {
|
|
56
|
+
as: "div";
|
|
57
|
+
asChild?: false | undefined;
|
|
58
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
59
|
+
asChild?: boolean | undefined;
|
|
60
|
+
variant?: "purple-light" | "purple-dark" | "gray" | "white" | "beige" | undefined;
|
|
61
|
+
bordered?: boolean | undefined;
|
|
62
|
+
backgroundImageSrc?: string | undefined;
|
|
63
|
+
} & React.RefAttributes<HTMLDivElement>, "ref">, "as" | "variant"> & {
|
|
33
64
|
variant?: "error" | "warning" | "success" | "information" | undefined;
|
|
34
65
|
open?: boolean | undefined;
|
|
35
66
|
defaultOpen?: boolean | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../clsx-DB4S2d7J.js";
|
|
4
|
-
import { N as y } from "../../badge-
|
|
4
|
+
import { N as y } from "../../badge-Cnug5TzH.js";
|
|
5
5
|
import "../../index-FPIZOCcD.js";
|
|
6
6
|
import "../../radio-group-B--zT3OL.js";
|
|
7
7
|
import "../box/box.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../clsx-DB4S2d7J.js";
|
|
4
|
-
import { T as w } from "../../badge-
|
|
4
|
+
import { T as w } from "../../badge-Cnug5TzH.js";
|
|
5
5
|
import "../../assets/4bbd022cee9b0f06.svg";
|
|
6
6
|
import "../icon/icon.js";
|
|
7
7
|
import "../../radio-group-B--zT3OL.js";
|
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './assets/main.css';
|
|
2
|
-
import { A as e, B as t, C as p, M as x, N as a, T as f } from "./badge-
|
|
2
|
+
import { A as e, B as t, C as p, M as x, N as a, T as f } from "./badge-Cnug5TzH.js";
|
|
3
3
|
import { R as i } from "./radio-group-B--zT3OL.js";
|
|
4
4
|
import { Box as n } from "./components/box/box.js";
|
|
5
5
|
import { Flex as l } from "./components/flex/flex.js";
|