@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.
@@ -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-C6I_qxYL.js";
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,4 +1,4 @@
1
- import { A as c } from "../../badge-C6I_qxYL.js";
1
+ import { A as c } from "../../badge-Cnug5TzH.js";
2
2
  export {
3
3
  c as Accordion
4
4
  };
@@ -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-C6I_qxYL.js";
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 { B as o } from "../../badge-C6I_qxYL.js";
1
+ import { B as o } from "../../badge-Cnug5TzH.js";
2
2
  export {
3
3
  o as Badge
4
4
  };
@@ -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<'div'> & {
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<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
43
- asChild?: boolean | undefined;
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-C6I_qxYL.js";
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";
@@ -1,4 +1,4 @@
1
- import { C as o } from "../../badge-C6I_qxYL.js";
1
+ import { C as o } from "../../badge-Cnug5TzH.js";
2
2
  export {
3
3
  o as Card
4
4
  };
@@ -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-C6I_qxYL.js";
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,4 +1,4 @@
1
- import { M as r } from "../../badge-C6I_qxYL.js";
1
+ import { M as r } from "../../badge-Cnug5TzH.js";
2
2
  export {
3
3
  r as Modal
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { M as z } from "../../badge-C6I_qxYL.js";
3
+ import { M as z } from "../../badge-Cnug5TzH.js";
4
4
  import "../../radio-group-B--zT3OL.js";
5
5
  import "../box/box.js";
6
6
  import "../flex/flex.js";
@@ -1,4 +1,4 @@
1
- import { N as t } from "../../badge-C6I_qxYL.js";
1
+ import { N as t } from "../../badge-Cnug5TzH.js";
2
2
  export {
3
3
  t as Notification
4
4
  };
@@ -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<'div'> & {
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-C6I_qxYL.js";
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,4 +1,4 @@
1
- import { T as g } from "../../badge-C6I_qxYL.js";
1
+ import { T as g } from "../../badge-Cnug5TzH.js";
2
2
  export {
3
3
  g as Toggle
4
4
  };
@@ -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-C6I_qxYL.js";
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-C6I_qxYL.js";
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";
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "pnpm": ">=8"
12
12
  },
13
13
  "private": false,
14
- "version": "0.0.14",
14
+ "version": "0.0.15",
15
15
  "sideEffects": [
16
16
  "**/*.css"
17
17
  ],