@telia/teddy 0.0.18 → 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/components/accordion/accordion.d.ts +2 -2
- 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/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/index.d.ts +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/modal/modal.d.ts +3 -3
- package/dist/components/modal/modal.js +1 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
- package/dist/components/notification/notification.d.ts +21 -18
- 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/main.js +2 -0
- 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,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>>;
|
|
@@ -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>>;
|
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";
|
|
@@ -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,
|