@telia/teddy 0.0.17 → 0.0.19
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/README.md +0 -3
- package/dist/assets/{4bbd022cee9b0f06.svg → 5636ec8e4de58d64.svg} +3 -0
- package/dist/components/accordion/accordion.d.ts +2 -2
- package/dist/components/accordion/accordion.js +1 -1
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/box/box.d.ts +1 -1
- package/dist/components/box/box.js +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/card/card.d.ts +10 -9
- package/dist/components/card/card.js +37 -39
- package/dist/components/chip/chip-indicator.d.ts +9 -0
- package/dist/components/chip/chip-indicator.js +16 -0
- package/dist/components/chip/chip-item.d.ts +9 -0
- package/dist/components/chip/chip-item.js +28 -0
- package/dist/components/chip/chip.d.ts +20 -0
- package/dist/components/chip/chip.js +31 -0
- package/dist/components/chip/index.d.ts +17 -0
- package/dist/components/chip/index.js +10 -0
- package/dist/components/field-error-text/field-error-text.d.ts +2 -2
- package/dist/components/field-error-text/field-error-text.js +1 -1
- package/dist/components/flex/flex.d.ts +1 -1
- package/dist/components/flex/flex.js +1 -1
- package/dist/components/grid/grid.d.ts +1 -1
- package/dist/components/grid/grid.js +1 -1
- package/dist/components/heading/heading.d.ts +1 -1
- package/dist/components/heading/heading.js +1 -1
- package/dist/components/icon/icon.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +3 -1
- package/dist/components/input/input.js +1 -1
- package/dist/components/modal/modal.d.ts +3 -3
- package/dist/components/modal/modal.js +2 -1
- package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
- package/dist/components/notification/notification.d.ts +21 -18
- package/dist/components/notification/notification.js +1 -1
- package/dist/components/radio-group/radio-group.d.ts +1 -1
- package/dist/components/text/text.d.ts +3 -1
- package/dist/components/text/text.js +38 -27
- package/dist/components/text-field/text-field.d.ts +4 -4
- package/dist/components/toggle/toggle.d.ts +2 -2
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/icons/category.d.ts +3 -0
- package/dist/icons/category.js +1 -0
- package/dist/icons/name.d.ts +1 -1
- package/dist/icons/name.js +1 -0
- package/dist/main.js +3 -1
- package/dist/style.css +350 -221
- package/dist/utils/generate-styling/color.d.ts +15 -0
- package/dist/utils/generate-styling/color.js +12 -0
- package/dist/utils/{layout → generate-styling}/index.d.ts +18 -13
- package/dist/utils/{layout → generate-styling}/index.js +2 -0
- package/package.json +1 -1
- /package/dist/utils/{layout → generate-styling}/align.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/align.js +0 -0
- /package/dist/utils/{layout → generate-styling}/flex.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/flex.js +0 -0
- /package/dist/utils/{layout → generate-styling}/gap.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/gap.js +0 -0
- /package/dist/utils/{layout → generate-styling}/grid.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/grid.js +0 -0
- /package/dist/utils/{layout → generate-styling}/height.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/height.js +0 -0
- /package/dist/utils/{layout → generate-styling}/inset.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/inset.js +0 -0
- /package/dist/utils/{layout → generate-styling}/justify.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/justify.js +0 -0
- /package/dist/utils/{layout → generate-styling}/margin.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/margin.js +0 -0
- /package/dist/utils/{layout → generate-styling}/padding.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/padding.js +0 -0
- /package/dist/utils/{layout → generate-styling}/position.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/position.js +0 -0
- /package/dist/utils/{layout → generate-styling}/util.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/util.js +0 -0
- /package/dist/utils/{layout → generate-styling}/width.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/width.js +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useEffect } from "react";
|
|
3
3
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
4
|
+
import "../chip/index.js";
|
|
4
5
|
import "../notification/notification.js";
|
|
5
6
|
import "../radio-group/radio-group.js";
|
|
6
7
|
import "../box/box.js";
|
|
@@ -15,7 +16,7 @@ import "../badge/badge.js";
|
|
|
15
16
|
import { Button } from "../button/button.js";
|
|
16
17
|
import "../field-error-text/field-error-text.js";
|
|
17
18
|
import "../helper-text/helper-text.js";
|
|
18
|
-
import "../../assets/
|
|
19
|
+
import "../../assets/5636ec8e4de58d64.svg";
|
|
19
20
|
import { Icon } from "../icon/icon.js";
|
|
20
21
|
import "../input/input.js";
|
|
21
22
|
import "../label/label.js";
|
|
@@ -100,7 +100,7 @@ declare const NavigationMenu: React.ForwardRefExoticComponent<Omit<NavigationMen
|
|
|
100
100
|
variant?: "default" | "float" | undefined;
|
|
101
101
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
102
102
|
Link: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>, "ref"> & {
|
|
103
|
-
variant?: "
|
|
103
|
+
variant?: "small" | "button" | "default" | undefined;
|
|
104
104
|
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
105
105
|
Indicator: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
106
106
|
Viewport: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Card } from '../card';
|
|
2
|
-
import { Heading as HeadingPrimitives } from '../heading';
|
|
3
|
-
import { Icon as IconPrimitives } from '../icon';
|
|
4
|
-
import { Button as ButtonPrimitives } from '../button';
|
|
5
|
-
import { Text as TextPrimitives } from '../text';
|
|
6
1
|
import { default as React } from 'react';
|
|
2
|
+
import { Text as TextPrimitives } from '../text';
|
|
3
|
+
import { Button as ButtonPrimitives } from '../button';
|
|
4
|
+
import { Icon as IconPrimitives } from '../icon';
|
|
5
|
+
import { Heading as HeadingPrimitives } from '../heading';
|
|
6
|
+
import { Card } from '../card';
|
|
7
7
|
|
|
8
8
|
/** -------------------------------------------------------------------------------------------------
|
|
9
9
|
* Root
|
|
@@ -31,38 +31,41 @@ type TextProps = React.ComponentPropsWithoutRef<typeof TextPrimitives>;
|
|
|
31
31
|
* Dismiss
|
|
32
32
|
* -----------------------------------------------------------------------------------------------*/
|
|
33
33
|
type DismissProps = Omit<React.ComponentPropsWithoutRef<typeof ButtonPrimitives>, 'variant'>;
|
|
34
|
-
declare const Notification: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('../../utils/
|
|
35
|
-
align?: import('../../utils/
|
|
36
|
-
justify?: import('../../utils/
|
|
37
|
-
} & import('../../utils/
|
|
34
|
+
declare const Notification: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('../../utils/generate-styling/flex').FlexChildren & import('../../utils/generate-styling/grid').GridChildren & import('../../utils/generate-styling/position').PositionProps & import('../../utils/generate-styling/inset').InsetProps & import('../../utils/generate-styling/margin').MarginProps & import('../../utils/generate-styling/padding').PaddingProps & import('../../utils/generate-styling/width').WidthProps & import('../../utils/generate-styling/height').HeightProps & import('../../utils/generate-styling/color').ColorProps & import('../../utils/generate-styling/gap').GapProps & {
|
|
35
|
+
align?: import('../../utils/generate-styling/align').Align | undefined;
|
|
36
|
+
justify?: import('../../utils/generate-styling/justify').Justify | undefined;
|
|
37
|
+
} & import('../../utils/generate-styling/grid').GridLayout & {
|
|
38
38
|
asChild: true;
|
|
39
39
|
as?: undefined;
|
|
40
40
|
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
41
41
|
asChild?: boolean | undefined;
|
|
42
42
|
variant?: "beige" | "gray" | "white" | "purple-light" | "purple-dark" | undefined;
|
|
43
43
|
bordered?: boolean | undefined;
|
|
44
|
+
shadow?: boolean | undefined;
|
|
44
45
|
backgroundImageSrc?: string | undefined;
|
|
45
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('../../utils/
|
|
46
|
-
align?: import('../../utils/
|
|
47
|
-
justify?: import('../../utils/
|
|
48
|
-
} & import('../../utils/
|
|
46
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('../../utils/generate-styling/flex').FlexChildren & import('../../utils/generate-styling/grid').GridChildren & import('../../utils/generate-styling/position').PositionProps & import('../../utils/generate-styling/inset').InsetProps & import('../../utils/generate-styling/margin').MarginProps & import('../../utils/generate-styling/padding').PaddingProps & import('../../utils/generate-styling/width').WidthProps & import('../../utils/generate-styling/height').HeightProps & import('../../utils/generate-styling/color').ColorProps & import('../../utils/generate-styling/gap').GapProps & {
|
|
47
|
+
align?: import('../../utils/generate-styling/align').Align | undefined;
|
|
48
|
+
justify?: import('../../utils/generate-styling/justify').Justify | undefined;
|
|
49
|
+
} & import('../../utils/generate-styling/grid').GridLayout & {
|
|
49
50
|
as?: "span" | undefined;
|
|
50
51
|
asChild?: false | undefined;
|
|
51
52
|
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
52
53
|
asChild?: boolean | undefined;
|
|
53
54
|
variant?: "beige" | "gray" | "white" | "purple-light" | "purple-dark" | undefined;
|
|
54
55
|
bordered?: boolean | undefined;
|
|
56
|
+
shadow?: boolean | undefined;
|
|
55
57
|
backgroundImageSrc?: string | undefined;
|
|
56
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('../../utils/
|
|
57
|
-
align?: import('../../utils/
|
|
58
|
-
justify?: import('../../utils/
|
|
59
|
-
} & import('../../utils/
|
|
58
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('../../utils/generate-styling/flex').FlexChildren & import('../../utils/generate-styling/grid').GridChildren & import('../../utils/generate-styling/position').PositionProps & import('../../utils/generate-styling/inset').InsetProps & import('../../utils/generate-styling/margin').MarginProps & import('../../utils/generate-styling/padding').PaddingProps & import('../../utils/generate-styling/width').WidthProps & import('../../utils/generate-styling/height').HeightProps & import('../../utils/generate-styling/color').ColorProps & import('../../utils/generate-styling/gap').GapProps & {
|
|
59
|
+
align?: import('../../utils/generate-styling/align').Align | undefined;
|
|
60
|
+
justify?: import('../../utils/generate-styling/justify').Justify | undefined;
|
|
61
|
+
} & import('../../utils/generate-styling/grid').GridLayout & {
|
|
60
62
|
as: "div";
|
|
61
63
|
asChild?: false | undefined;
|
|
62
64
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
63
65
|
asChild?: boolean | undefined;
|
|
64
66
|
variant?: "beige" | "gray" | "white" | "purple-light" | "purple-dark" | undefined;
|
|
65
67
|
bordered?: boolean | undefined;
|
|
68
|
+
shadow?: boolean | undefined;
|
|
66
69
|
backgroundImageSrc?: string | undefined;
|
|
67
70
|
} & React.RefAttributes<HTMLDivElement>, "ref">, "as" | "variant"> & {
|
|
68
71
|
variant?: "error" | "warning" | "success" | "information" | undefined;
|
|
@@ -74,7 +77,7 @@ declare const Notification: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<
|
|
|
74
77
|
Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
75
78
|
Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
76
79
|
Icon: React.ForwardRefExoticComponent<Partial<Omit<React.SVGProps<SVGSVGElement> & {
|
|
77
|
-
name: "link" | "
|
|
80
|
+
name: "key" | "search" | "split" | "link" | "add" | "reverse" | "infinite" | "radio" | "visible" | "copy" | "help" | "zoom-out" | "filter" | "x" | "zoom" | "menu" | "map" | "summary" | "time" | "video" | "image" | "stop" | "download" | "alert" | "email" | "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "dislike" | "edit" | "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" | "shuffle" | "sync" | "skip-back-10sec" | "skip-back-30sec" | "skip-forward-10sec" | "skip-forward-30sec" | "star-filled" | "star" | "switch-arrows" | "tv-next" | "tv-pause" | "tv-previous" | "tv-stop" | "upload" | "volume" | "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" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "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" | "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" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "activity-level" | "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" | "job-search" | "layers" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "recycle" | "reservation" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "snowflake" | "speedometer" | "spyware" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "youtube" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "alert-filled" | "check-circle-filled" | "check-circle" | "error-filled" | "error" | "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" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "services" | "sorter" | "table-view";
|
|
78
81
|
size?: ("sm" | "md" | "lg" | "xl" | "font" | "xxs" | "xs") | undefined;
|
|
79
82
|
children?: React.ReactNode;
|
|
80
83
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -5,7 +5,7 @@ import * as Collapsible from "@radix-ui/react-collapsible";
|
|
|
5
5
|
import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
|
6
6
|
import { Text as Text$1 } from "../text/text.js";
|
|
7
7
|
import { Button } from "../button/button.js";
|
|
8
|
-
import "../../assets/
|
|
8
|
+
import "../../assets/5636ec8e4de58d64.svg";
|
|
9
9
|
import { Icon as Icon$1 } from "../icon/icon.js";
|
|
10
10
|
import { Heading as Heading$1 } from "../heading/heading.js";
|
|
11
11
|
import { Card } from "../card/card.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Label as LabelPrimitive } from '../label';
|
|
2
1
|
import { default as React } from 'react';
|
|
2
|
+
import { Label as LabelPrimitive } from '../label';
|
|
3
3
|
|
|
4
4
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
5
5
|
type RootProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root> & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { ChildrenLayoutProps } from '../../utils/generate-styling';
|
|
2
3
|
|
|
3
4
|
type AsChildProps = {
|
|
4
5
|
asChild: true;
|
|
@@ -27,11 +28,12 @@ type TextVariant = 'paragraph-100' | 'paragraph-100-medium' | 'paragraph-100-bol
|
|
|
27
28
|
type TextProps = {
|
|
28
29
|
enableHyphenation?: boolean;
|
|
29
30
|
disabled?: boolean;
|
|
31
|
+
faded?: boolean;
|
|
30
32
|
/**
|
|
31
33
|
* @default 'paragraph-100'
|
|
32
34
|
*/
|
|
33
35
|
variant?: TextVariant;
|
|
34
|
-
} & (AsChildProps | SpanProps | DivProps | LabelProps | PProps);
|
|
36
|
+
} & ChildrenLayoutProps & (AsChildProps | SpanProps | DivProps | LabelProps | PProps);
|
|
35
37
|
/**
|
|
36
38
|
* Text is used to render text elements. By default, it renders as a `p` tag.
|
|
37
39
|
*/
|
|
@@ -2,36 +2,47 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Slot } from "@radix-ui/react-slot";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import React__default from "react";
|
|
5
|
+
import { extractProps } from "../../utils/generate-styling/index.js";
|
|
6
|
+
import { teddyColorTextMedium } from "../../tokens/color/variables.js";
|
|
5
7
|
const styles = {
|
|
6
|
-
"teddy-text": "_teddy-
|
|
7
|
-
"teddy-text--disabled": "_teddy-text--
|
|
8
|
-
"teddy-text--hyphens": "_teddy-text--
|
|
9
|
-
"teddy-text--paragraph-100": "_teddy-text--paragraph-
|
|
10
|
-
"teddy-text--paragraph-100-medium": "_teddy-text--paragraph-100-
|
|
11
|
-
"teddy-text--paragraph-100-bold": "_teddy-text--paragraph-100-
|
|
12
|
-
"teddy-text--paragraph-200": "_teddy-text--paragraph-
|
|
13
|
-
"teddy-text--preamble-100": "_teddy-text--preamble-
|
|
14
|
-
"teddy-text--preamble-200": "_teddy-text--preamble-
|
|
15
|
-
"teddy-text--additional-100": "_teddy-text--additional-
|
|
16
|
-
"teddy-text--additional-100-medium": "_teddy-text--additional-100-
|
|
17
|
-
"teddy-text--overline-100": "_teddy-text--overline-
|
|
18
|
-
"teddy-text--overline-200": "_teddy-text--overline-
|
|
8
|
+
"teddy-text": "_teddy-text_15w9u_2",
|
|
9
|
+
"teddy-text--disabled": "_teddy-text--disabled_15w9u_8",
|
|
10
|
+
"teddy-text--hyphens": "_teddy-text--hyphens_15w9u_11",
|
|
11
|
+
"teddy-text--paragraph-100": "_teddy-text--paragraph-100_15w9u_14",
|
|
12
|
+
"teddy-text--paragraph-100-medium": "_teddy-text--paragraph-100-medium_15w9u_20",
|
|
13
|
+
"teddy-text--paragraph-100-bold": "_teddy-text--paragraph-100-bold_15w9u_27",
|
|
14
|
+
"teddy-text--paragraph-200": "_teddy-text--paragraph-200_15w9u_34",
|
|
15
|
+
"teddy-text--preamble-100": "_teddy-text--preamble-100_15w9u_40",
|
|
16
|
+
"teddy-text--preamble-200": "_teddy-text--preamble-200_15w9u_46",
|
|
17
|
+
"teddy-text--additional-100": "_teddy-text--additional-100_15w9u_52",
|
|
18
|
+
"teddy-text--additional-100-medium": "_teddy-text--additional-100-medium_15w9u_58",
|
|
19
|
+
"teddy-text--overline-100": "_teddy-text--overline-100_15w9u_65",
|
|
20
|
+
"teddy-text--overline-200": "_teddy-text--overline-200_15w9u_72"
|
|
19
21
|
};
|
|
20
22
|
const rootClassName = "teddy-text";
|
|
21
|
-
const Text = React__default.forwardRef(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
const Text = React__default.forwardRef(({ faded, ...props }, forwardRef) => {
|
|
24
|
+
const color = faded ? teddyColorTextMedium : props.color;
|
|
25
|
+
const {
|
|
26
|
+
className,
|
|
27
|
+
children,
|
|
28
|
+
disabled,
|
|
29
|
+
enableHyphenation,
|
|
30
|
+
variant = "paragraph-100",
|
|
31
|
+
asChild,
|
|
32
|
+
as: Tag = "p",
|
|
33
|
+
...rest
|
|
34
|
+
} = extractProps({ ...props, color });
|
|
35
|
+
const classes = clsx(
|
|
36
|
+
styles[rootClassName],
|
|
37
|
+
styles[`${rootClassName}--${variant}`],
|
|
38
|
+
{
|
|
39
|
+
[styles[`${rootClassName}--hyphens`]]: enableHyphenation,
|
|
40
|
+
[styles[`${rootClassName}--disabled`]]: disabled
|
|
41
|
+
},
|
|
42
|
+
className
|
|
43
|
+
);
|
|
44
|
+
return /* @__PURE__ */ jsx(Slot, { ...rest, ref: forwardRef, className: classes, children: asChild ? children : /* @__PURE__ */ jsx(Tag, { children }) });
|
|
45
|
+
});
|
|
35
46
|
Text.displayName = "Text";
|
|
36
47
|
export {
|
|
37
48
|
Text
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { InputGroupProps } from '../input';
|
|
2
|
-
import { LabelProps } from '../label';
|
|
3
|
-
import { HelperTextProps } from '../helper-text';
|
|
4
1
|
import { default as React } from 'react';
|
|
2
|
+
import { HelperTextProps } from '../helper-text';
|
|
3
|
+
import { LabelProps } from '../label';
|
|
4
|
+
import { InputGroupProps } from '../input';
|
|
5
5
|
|
|
6
6
|
type ListOfErrors = Array<string | null | undefined> | null | undefined;
|
|
7
7
|
type TextFieldContextValue = {
|
|
@@ -74,7 +74,7 @@ export declare const TextField: React.ForwardRefExoticComponent<Omit<React.Detai
|
|
|
74
74
|
*/
|
|
75
75
|
isRequired?: boolean | undefined;
|
|
76
76
|
} & React.RefAttributes<HTMLDivElement>> & {
|
|
77
|
-
Input: React.ForwardRefExoticComponent<Omit<import('../input').InputProps, "
|
|
77
|
+
Input: React.ForwardRefExoticComponent<Omit<import('../input').InputProps, "disabled" | "id" | "readOnly" | "required"> & React.RefAttributes<HTMLInputElement>>;
|
|
78
78
|
Label: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-label').LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & {
|
|
79
79
|
disabled?: boolean | undefined;
|
|
80
80
|
isRequired?: boolean | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Label } from '../label';
|
|
2
1
|
import { default as React } from 'react';
|
|
2
|
+
import { Label } from '../label';
|
|
3
3
|
|
|
4
4
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
5
5
|
/** -------------------------------------------------------------------------------------------------
|
|
@@ -29,7 +29,7 @@ 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: "link" | "
|
|
32
|
+
name: "key" | "search" | "split" | "link" | "add" | "reverse" | "infinite" | "radio" | "visible" | "copy" | "help" | "zoom-out" | "filter" | "x" | "zoom" | "menu" | "map" | "summary" | "time" | "video" | "image" | "stop" | "download" | "alert" | "email" | "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "dislike" | "edit" | "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" | "shuffle" | "sync" | "skip-back-10sec" | "skip-back-30sec" | "skip-forward-10sec" | "skip-forward-30sec" | "star-filled" | "star" | "switch-arrows" | "tv-next" | "tv-pause" | "tv-previous" | "tv-stop" | "upload" | "volume" | "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" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "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" | "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" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "activity-level" | "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" | "job-search" | "layers" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "recycle" | "reservation" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "snowflake" | "speedometer" | "spyware" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "youtube" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "alert-filled" | "check-circle-filled" | "check-circle" | "error-filled" | "error" | "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" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "services" | "sorter" | "table-view";
|
|
33
33
|
size?: ("sm" | "md" | "lg" | "xl" | "font" | "xxs" | "xs") | undefined;
|
|
34
34
|
children?: React.ReactNode;
|
|
35
35
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
5
|
-
import "../../assets/
|
|
5
|
+
import "../../assets/5636ec8e4de58d64.svg";
|
|
6
6
|
import { Icon } from "../icon/icon.js";
|
|
7
7
|
import { Label } from "../label/label.js";
|
|
8
8
|
const styles = {
|
package/dist/icons/category.d.ts
CHANGED
|
@@ -865,6 +865,9 @@ export declare const iconCategories: readonly [{
|
|
|
865
865
|
}, {
|
|
866
866
|
readonly category: "social";
|
|
867
867
|
readonly name: "snapchat";
|
|
868
|
+
}, {
|
|
869
|
+
readonly category: "social";
|
|
870
|
+
readonly name: "telia-logo";
|
|
868
871
|
}, {
|
|
869
872
|
readonly category: "social";
|
|
870
873
|
readonly name: "whatsapp";
|
package/dist/icons/category.js
CHANGED
|
@@ -288,6 +288,7 @@ const iconCategories = [
|
|
|
288
288
|
{ category: "social", name: "youtube" },
|
|
289
289
|
{ category: "social", name: "linkedin" },
|
|
290
290
|
{ category: "social", name: "snapchat" },
|
|
291
|
+
{ category: "social", name: "telia-logo" },
|
|
291
292
|
{ category: "social", name: "whatsapp" },
|
|
292
293
|
{ category: "social", name: "windows" },
|
|
293
294
|
{ category: "social", name: "x" },
|
package/dist/icons/name.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const iconNames: readonly ["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", "shuffle", "sync", "skip-back-10sec", "skip-back-30sec", "skip-forward-10sec", "skip-forward-30sec", "star-filled", "star", "switch-arrows", "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-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", "snowflake", "speedometer", "spyware", "split", "stop", "suitcase", "sustainability", "tag", "temperature", "thinking", "time", "train", "transfer", "undo", "wavelength", "weather", "world", "android", "apple", "bankid-norway", "bankid", "facebook", "instagram", "youtube", "linkedin", "snapchat", "whatsapp", "windows", "x", "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"];
|
|
1
|
+
export declare const iconNames: readonly ["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", "shuffle", "sync", "skip-back-10sec", "skip-back-30sec", "skip-forward-10sec", "skip-forward-30sec", "star-filled", "star", "switch-arrows", "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-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", "snowflake", "speedometer", "spyware", "split", "stop", "suitcase", "sustainability", "tag", "temperature", "thinking", "time", "train", "transfer", "undo", "wavelength", "weather", "world", "android", "apple", "bankid-norway", "bankid", "facebook", "instagram", "youtube", "linkedin", "snapchat", "telia-logo", "whatsapp", "windows", "x", "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"];
|
|
2
2
|
export type IconName = (typeof iconNames)[number];
|
package/dist/icons/name.js
CHANGED
package/dist/main.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Chip } from "./components/chip/index.js";
|
|
1
2
|
import { Modal } from "./components/modal/modal.js";
|
|
2
3
|
import { Notification } from "./components/notification/notification.js";
|
|
3
4
|
import { RadioGroup } from "./components/radio-group/radio-group.js";
|
|
@@ -13,7 +14,7 @@ import { Badge } from "./components/badge/badge.js";
|
|
|
13
14
|
import { Button } from "./components/button/button.js";
|
|
14
15
|
import { FieldErrorText } from "./components/field-error-text/field-error-text.js";
|
|
15
16
|
import { HelperText } from "./components/helper-text/helper-text.js";
|
|
16
|
-
import { default as default2 } from "./assets/
|
|
17
|
+
import { default as default2 } from "./assets/5636ec8e4de58d64.svg";
|
|
17
18
|
import { Icon } from "./components/icon/icon.js";
|
|
18
19
|
import { Input, InputGroup } from "./components/input/input.js";
|
|
19
20
|
import { Label } from "./components/label/label.js";
|
|
@@ -36,6 +37,7 @@ export {
|
|
|
36
37
|
Box,
|
|
37
38
|
Button,
|
|
38
39
|
Card,
|
|
40
|
+
Chip,
|
|
39
41
|
FieldErrorText,
|
|
40
42
|
Flex,
|
|
41
43
|
Grid,
|