@telia/teddy 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/accordion-root.cjs +17 -15
- package/dist/components/accordion/accordion-root.d.ts +2 -0
- package/dist/components/accordion/accordion-root.js +17 -15
- package/dist/components/avatar/avatar-root.cjs +34 -0
- package/dist/components/avatar/avatar-root.d.ts +17 -0
- package/dist/components/avatar/avatar-root.js +34 -0
- package/dist/components/avatar/index.cjs +6 -0
- package/dist/components/avatar/index.d.ts +9 -0
- package/dist/components/avatar/index.js +6 -0
- package/dist/components/avatar/utils.cjs +10 -0
- package/dist/components/avatar/utils.d.ts +1 -0
- package/dist/components/avatar/utils.js +10 -0
- package/dist/components/breadcrumbs/breadcrumbs-link.d.ts +1 -1
- package/dist/components/breadcrumbs/index.d.ts +1 -1
- package/dist/components/card/card-illustration.d.ts +1 -1
- package/dist/components/card/card-link.d.ts +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/channel-button/channel-button-root.d.ts +6 -6
- package/dist/components/channel-button/index.d.ts +6 -6
- package/dist/components/checkbox/checkbox-group-list.d.ts +1 -1
- package/dist/components/checkbox/checkbox-group.d.ts +1 -1
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/chip/chip-indicator.d.ts +2 -2
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/expandable-card/expandable-card-button.d.ts +4 -4
- package/dist/components/expandable-card/index.d.ts +5 -5
- package/dist/components/flip-card/flip-card-trigger.d.ts +4 -4
- package/dist/components/icon/utils.d.ts +1 -1
- package/dist/components/index.cjs +4 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +4 -0
- package/dist/components/modal/modal-close.cjs +2 -0
- package/dist/components/modal/modal-close.js +2 -0
- package/dist/components/modal/modal-title.d.ts +1 -1
- package/dist/components/navigation-menu/navigation-menu.cjs +2 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
- package/dist/components/navigation-menu/navigation-menu.js +2 -0
- package/dist/components/notabene/notabene-icon.d.ts +2 -2
- package/dist/components/notification/index.d.ts +8 -8
- package/dist/components/notification/notification-icon.d.ts +2 -2
- package/dist/components/notification/notification-root.d.ts +8 -8
- package/dist/components/radio-card-group/radio-card-group-content.cjs +2 -0
- package/dist/components/radio-card-group/radio-card-group-content.js +2 -0
- package/dist/components/radio-card-group/radio-card-group-item-title.cjs +2 -0
- package/dist/components/radio-card-group/radio-card-group-item-title.js +2 -0
- package/dist/components/radio-card-group/radio-card-group-item.cjs +2 -0
- package/dist/components/radio-card-group/radio-card-group-item.js +2 -0
- package/dist/components/scroll-area/index.d.ts +5 -5
- package/dist/components/scroll-area/scroll-area-button.d.ts +4 -4
- package/dist/components/subscription-card/index.cjs +18 -0
- package/dist/components/subscription-card/index.d.ts +74 -0
- package/dist/components/subscription-card/index.js +18 -0
- package/dist/components/subscription-card/subscription-card-avatar.cjs +25 -0
- package/dist/components/subscription-card/subscription-card-avatar.d.ts +10 -0
- package/dist/components/subscription-card/subscription-card-avatar.js +25 -0
- package/dist/components/subscription-card/subscription-card-content.cjs +13 -0
- package/dist/components/subscription-card/subscription-card-content.d.ts +4 -0
- package/dist/components/subscription-card/subscription-card-content.js +13 -0
- package/dist/components/subscription-card/subscription-card-heading.cjs +24 -0
- package/dist/components/subscription-card/subscription-card-heading.d.ts +5 -0
- package/dist/components/subscription-card/subscription-card-heading.js +24 -0
- package/dist/components/subscription-card/subscription-card-root.cjs +60 -0
- package/dist/components/subscription-card/subscription-card-root.d.ts +20 -0
- package/dist/components/subscription-card/subscription-card-root.js +60 -0
- package/dist/components/subscription-card/subscription-card-subtitle.cjs +15 -0
- package/dist/components/subscription-card/subscription-card-subtitle.d.ts +5 -0
- package/dist/components/subscription-card/subscription-card-subtitle.js +15 -0
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/tabs-root.d.ts +1 -1
- package/dist/components/tabs/tabs-scroll-button.d.ts +4 -4
- package/dist/components/tabs/tabs-scroll.d.ts +1 -1
- package/dist/components/text-field/index.d.ts +4 -4
- package/dist/components/text-field/text-field-button.d.ts +4 -4
- package/dist/components/toggle/toggle.d.ts +2 -2
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/main.cjs +4 -0
- package/dist/main.js +4 -0
- package/dist/style.css +404 -252
- package/dist/utils/generate-styling/grid.d.ts +24 -24
- package/dist/utils/generate-styling/index.d.ts +16 -16
- package/dist/utils/generate-styling/util.d.ts +2 -2
- package/package.json +2 -1
|
@@ -22,22 +22,23 @@ function _interopNamespaceDefault(e) {
|
|
|
22
22
|
return Object.freeze(n);
|
|
23
23
|
}
|
|
24
24
|
const AccordionPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(AccordionPrimitive);
|
|
25
|
-
const slideDown = "
|
|
26
|
-
const slideUp = "
|
|
25
|
+
const slideDown = "_slideDown_1hyar_1";
|
|
26
|
+
const slideUp = "_slideUp_1hyar_1";
|
|
27
27
|
const styles = {
|
|
28
|
-
"teddy-accordion": "_teddy-
|
|
29
|
-
"teddy-accordion--indented": "_teddy-accordion--
|
|
30
|
-
"teddy-accordion__header": "_teddy-
|
|
31
|
-
"teddy-accordion__content": "_teddy-
|
|
32
|
-
"teddy-accordion--
|
|
33
|
-
"teddy-
|
|
34
|
-
"teddy-
|
|
35
|
-
"teddy-
|
|
36
|
-
"teddy-
|
|
37
|
-
"teddy-accordion__indicator
|
|
28
|
+
"teddy-accordion": "_teddy-accordion_1hyar_3",
|
|
29
|
+
"teddy-accordion--indented": "_teddy-accordion--indented_1hyar_11",
|
|
30
|
+
"teddy-accordion__header": "_teddy-accordion__header_1hyar_11",
|
|
31
|
+
"teddy-accordion__content": "_teddy-accordion__content_1hyar_14",
|
|
32
|
+
"teddy-accordion--no-border": "_teddy-accordion--no-border_1hyar_17",
|
|
33
|
+
"teddy-accordion__item": "_teddy-accordion__item_1hyar_17",
|
|
34
|
+
"teddy-accordion--negative": "_teddy-accordion--negative_1hyar_23",
|
|
35
|
+
"teddy-accordion__title": "_teddy-accordion__title_1hyar_27",
|
|
36
|
+
"teddy-accordion__trigger": "_teddy-accordion__trigger_1hyar_30",
|
|
37
|
+
"teddy-accordion__indicator": "_teddy-accordion__indicator_1hyar_107",
|
|
38
|
+
"teddy-accordion__indicator--rotate": "_teddy-accordion__indicator--rotate_1hyar_118",
|
|
38
39
|
slideDown,
|
|
39
40
|
slideUp,
|
|
40
|
-
"teddy-accordion--info-area": "_teddy-accordion--info-
|
|
41
|
+
"teddy-accordion--info-area": "_teddy-accordion--info-area_1hyar_148"
|
|
41
42
|
};
|
|
42
43
|
const rootClassName = "teddy-accordion";
|
|
43
44
|
const RootContext = React.createContext({ value: void 0, variant: void 0 });
|
|
@@ -64,12 +65,13 @@ const AccordionMultiple = React.forwardRef(
|
|
|
64
65
|
}
|
|
65
66
|
);
|
|
66
67
|
const Root = React.forwardRef(
|
|
67
|
-
({ className, variant = "default", children, indented = false, ...props }, forwardRef) => {
|
|
68
|
+
({ className, variant = "default", children, indented = false, noborder = false, ...props }, forwardRef) => {
|
|
68
69
|
const classes = clsx(
|
|
69
70
|
styles[rootClassName],
|
|
70
71
|
styles[`${rootClassName}--${variant}`],
|
|
71
72
|
{
|
|
72
|
-
[styles[`${rootClassName}--indented`]]: indented || variant === "info-area"
|
|
73
|
+
[styles[`${rootClassName}--indented`]]: indented || variant === "info-area",
|
|
74
|
+
[styles[`${rootClassName}--no-border`]]: noborder
|
|
73
75
|
},
|
|
74
76
|
className
|
|
75
77
|
);
|
|
@@ -9,9 +9,11 @@ export declare const RootContext: React.Context<{
|
|
|
9
9
|
export type RootProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root> & ({
|
|
10
10
|
variant?: 'default' | 'negative';
|
|
11
11
|
indented?: boolean;
|
|
12
|
+
noborder?: boolean;
|
|
12
13
|
} | {
|
|
13
14
|
variant: 'info-area';
|
|
14
15
|
indented?: never;
|
|
16
|
+
noborder?: boolean;
|
|
15
17
|
});
|
|
16
18
|
/**
|
|
17
19
|
* The Accordion component is used to render the root element.
|
|
@@ -3,22 +3,23 @@ import clsx from "clsx";
|
|
|
3
3
|
import React__default from "react";
|
|
4
4
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
5
5
|
import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
|
6
|
-
const slideDown = "
|
|
7
|
-
const slideUp = "
|
|
6
|
+
const slideDown = "_slideDown_1hyar_1";
|
|
7
|
+
const slideUp = "_slideUp_1hyar_1";
|
|
8
8
|
const styles = {
|
|
9
|
-
"teddy-accordion": "_teddy-
|
|
10
|
-
"teddy-accordion--indented": "_teddy-accordion--
|
|
11
|
-
"teddy-accordion__header": "_teddy-
|
|
12
|
-
"teddy-accordion__content": "_teddy-
|
|
13
|
-
"teddy-accordion--
|
|
14
|
-
"teddy-
|
|
15
|
-
"teddy-
|
|
16
|
-
"teddy-
|
|
17
|
-
"teddy-
|
|
18
|
-
"teddy-accordion__indicator
|
|
9
|
+
"teddy-accordion": "_teddy-accordion_1hyar_3",
|
|
10
|
+
"teddy-accordion--indented": "_teddy-accordion--indented_1hyar_11",
|
|
11
|
+
"teddy-accordion__header": "_teddy-accordion__header_1hyar_11",
|
|
12
|
+
"teddy-accordion__content": "_teddy-accordion__content_1hyar_14",
|
|
13
|
+
"teddy-accordion--no-border": "_teddy-accordion--no-border_1hyar_17",
|
|
14
|
+
"teddy-accordion__item": "_teddy-accordion__item_1hyar_17",
|
|
15
|
+
"teddy-accordion--negative": "_teddy-accordion--negative_1hyar_23",
|
|
16
|
+
"teddy-accordion__title": "_teddy-accordion__title_1hyar_27",
|
|
17
|
+
"teddy-accordion__trigger": "_teddy-accordion__trigger_1hyar_30",
|
|
18
|
+
"teddy-accordion__indicator": "_teddy-accordion__indicator_1hyar_107",
|
|
19
|
+
"teddy-accordion__indicator--rotate": "_teddy-accordion__indicator--rotate_1hyar_118",
|
|
19
20
|
slideDown,
|
|
20
21
|
slideUp,
|
|
21
|
-
"teddy-accordion--info-area": "_teddy-accordion--info-
|
|
22
|
+
"teddy-accordion--info-area": "_teddy-accordion--info-area_1hyar_148"
|
|
22
23
|
};
|
|
23
24
|
const rootClassName = "teddy-accordion";
|
|
24
25
|
const RootContext = React__default.createContext({ value: void 0, variant: void 0 });
|
|
@@ -45,12 +46,13 @@ const AccordionMultiple = React__default.forwardRef(
|
|
|
45
46
|
}
|
|
46
47
|
);
|
|
47
48
|
const Root = React__default.forwardRef(
|
|
48
|
-
({ className, variant = "default", children, indented = false, ...props }, forwardRef) => {
|
|
49
|
+
({ className, variant = "default", children, indented = false, noborder = false, ...props }, forwardRef) => {
|
|
49
50
|
const classes = clsx(
|
|
50
51
|
styles[rootClassName],
|
|
51
52
|
styles[`${rootClassName}--${variant}`],
|
|
52
53
|
{
|
|
53
|
-
[styles[`${rootClassName}--indented`]]: indented || variant === "info-area"
|
|
54
|
+
[styles[`${rootClassName}--indented`]]: indented || variant === "info-area",
|
|
55
|
+
[styles[`${rootClassName}--no-border`]]: noborder
|
|
54
56
|
},
|
|
55
57
|
className
|
|
56
58
|
);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const clsx = require("clsx");
|
|
6
|
+
require("../../assets/sprite.c3af21af-teddy.svg");
|
|
7
|
+
const components_icon_icon = require("../icon/icon.cjs");
|
|
8
|
+
const components_text_text = require("../text/text.cjs");
|
|
9
|
+
const components_avatar_utils = require("./utils.cjs");
|
|
10
|
+
const styles = {
|
|
11
|
+
"teddy-avatar": "_teddy-avatar_e3370_1",
|
|
12
|
+
"teddy-avatar--beige": "_teddy-avatar--beige_e3370_12",
|
|
13
|
+
"teddy-avatar--grey": "_teddy-avatar--grey_e3370_15",
|
|
14
|
+
"teddy-avatar--purple-light": "_teddy-avatar--purple-light_e3370_18",
|
|
15
|
+
"teddy-avatar--white": "_teddy-avatar--white_e3370_21",
|
|
16
|
+
"teddy-avatar--orange": "_teddy-avatar--orange_e3370_24",
|
|
17
|
+
"teddy-avatar--blue": "_teddy-avatar--blue_e3370_27",
|
|
18
|
+
"teddy-avatar--green": "_teddy-avatar--green_e3370_30"
|
|
19
|
+
};
|
|
20
|
+
const rootClassName = "teddy-avatar";
|
|
21
|
+
const Root = React.forwardRef(
|
|
22
|
+
({ className, variant = "grey", icon, firstName, lastName, ...props }, forwardRef) => {
|
|
23
|
+
const classes = clsx(
|
|
24
|
+
[styles[`${rootClassName}`]],
|
|
25
|
+
{
|
|
26
|
+
[styles[`${rootClassName}--${variant}`]]: variant
|
|
27
|
+
},
|
|
28
|
+
className
|
|
29
|
+
);
|
|
30
|
+
const initials = components_avatar_utils.getInitials(firstName, lastName);
|
|
31
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ...props, ref: forwardRef, className: classes, children: initials ? /* @__PURE__ */ jsxRuntime.jsx(components_text_text.Text, { variant: "paragraph-100-medium", children: initials }) : /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { size: "md", name: icon || "end-user" }) });
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
exports.Root = Root;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IconName } from '../icon';
|
|
3
|
+
|
|
4
|
+
type Variant = 'beige' | 'grey' | 'purple-light' | 'white' | 'orange' | 'blue' | 'green';
|
|
5
|
+
export type RootProps = React.ComponentPropsWithoutRef<'div'> & {
|
|
6
|
+
variant?: Variant;
|
|
7
|
+
firstName?: string;
|
|
8
|
+
lastName?: string;
|
|
9
|
+
icon?: IconName;
|
|
10
|
+
};
|
|
11
|
+
export declare const Root: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
12
|
+
variant?: Variant | undefined;
|
|
13
|
+
firstName?: string | undefined;
|
|
14
|
+
lastName?: string | undefined;
|
|
15
|
+
icon?: "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "copy" | "dislike" | "download" | "edit" | "filter" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "play" | "remove-filled" | "remove" | "save" | "send" | "settings" | "share" | "shortcut" | "shuffle" | "skip-back-10sec" | "skip-back-30sec" | "skip-forward-10sec" | "skip-forward-30sec" | "star-filled" | "star" | "switch-arrows" | "sync" | "tv-next" | "tv-pause" | "tv-previous" | "tv-stop" | "upload" | "visible" | "volume" | "zoom-out" | "zoom" | "connected-building" | "home" | "hospital" | "industry" | "premises-datacenter" | "premises-large" | "premises-medium" | "premises-small" | "premises" | "store" | "address-book" | "b2b-customer" | "care" | "chat-robot" | "chat" | "child-1" | "child-2" | "conversation" | "customer-dialogue" | "dsl-hub" | "email" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-neutral" | "smiley-sad" | "sms" | "support" | "user-admin" | "vcard" | "voicemail" | "battery" | "bluetooth" | "broadband" | "broken-phone" | "cast" | "cloud-connect" | "connected" | "core-router" | "daas-device" | "data-transfer" | "desktop" | "devices" | "esim-simcard" | "esim" | "face-id" | "fiber" | "fingerprint" | "fiveg" | "fourg" | "home-installation" | "industrial-iot" | "internet" | "it-service" | "laptop" | "mobile-broadband" | "network" | "phone-recycling" | "phone-ringing" | "phone" | "rack" | "refill-card" | "remote-control" | "repair" | "roaming" | "router" | "secure-device" | "sense-car" | "server" | "service-device" | "service-supervision" | "slow-wifi" | "smart-wifi" | "smartphone" | "smartwatch" | "tablet" | "trade-phone" | "tv" | "usb" | "voice-switch" | "wallplug" | "wireless-off" | "wireless-weak" | "wireless" | "world-alert" | "world-off" | "world-question" | "bar-chart" | "doc" | "document-doc" | "document-edit" | "document-pdf" | "document-ppt" | "excel" | "folder-copy" | "folder-new" | "folder" | "gif" | "graph" | "media-content" | "org-chart" | "pie-chart" | "print" | "register" | "report" | "simcard" | "spell-check" | "summary" | "credit-card" | "euro" | "invoice" | "kontantkort" | "kr" | "late-payment" | "money-back-euro" | "money-back-kr" | "money-euro" | "money-kr" | "pay-monthly-euro" | "pay-monthly-kr" | "pay-once-euro" | "pay-once-kr" | "payment-success" | "savings" | "wallet" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "image" | "link" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "video" | "activity-level" | "add" | "ai-robot" | "bag" | "basketball" | "blood-pressure" | "bulb" | "business-continuity" | "business-intelligence" | "calendar" | "cart" | "close-circle" | "cloud" | "coffee" | "compass" | "construction" | "cookie" | "delivery" | "drone" | "education" | "efficiency" | "environment" | "facemask" | "flag" | "focus" | "food" | "fraud" | "getting-started" | "home-care" | "infinite" | "job-search" | "key" | "layers" | "map" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "radio" | "recycle" | "reservation" | "reverse" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "smart-connect" | "snowflake" | "speedometer" | "split" | "spyware" | "stop" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "time" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "x" | "youtube" | "alert-filled" | "alert" | "check-circle-filled" | "check-circle" | "error-filled" | "error" | "help" | "info-filled" | "info" | "question-filled" | "question" | "warning" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-subdirectory" | "arrow-up" | "card-view" | "checkmark-bold" | "checkmark" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "close" | "grid-view" | "list-view" | "menu" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "search" | "services" | "sorter" | "table-view" | undefined;
|
|
16
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import "../../assets/sprite.c3af21af-teddy.svg";
|
|
5
|
+
import { Icon } from "../icon/icon.js";
|
|
6
|
+
import { Text } from "../text/text.js";
|
|
7
|
+
import { getInitials } from "./utils.js";
|
|
8
|
+
const styles = {
|
|
9
|
+
"teddy-avatar": "_teddy-avatar_e3370_1",
|
|
10
|
+
"teddy-avatar--beige": "_teddy-avatar--beige_e3370_12",
|
|
11
|
+
"teddy-avatar--grey": "_teddy-avatar--grey_e3370_15",
|
|
12
|
+
"teddy-avatar--purple-light": "_teddy-avatar--purple-light_e3370_18",
|
|
13
|
+
"teddy-avatar--white": "_teddy-avatar--white_e3370_21",
|
|
14
|
+
"teddy-avatar--orange": "_teddy-avatar--orange_e3370_24",
|
|
15
|
+
"teddy-avatar--blue": "_teddy-avatar--blue_e3370_27",
|
|
16
|
+
"teddy-avatar--green": "_teddy-avatar--green_e3370_30"
|
|
17
|
+
};
|
|
18
|
+
const rootClassName = "teddy-avatar";
|
|
19
|
+
const Root = React__default.forwardRef(
|
|
20
|
+
({ className, variant = "grey", icon, firstName, lastName, ...props }, forwardRef) => {
|
|
21
|
+
const classes = clsx(
|
|
22
|
+
[styles[`${rootClassName}`]],
|
|
23
|
+
{
|
|
24
|
+
[styles[`${rootClassName}--${variant}`]]: variant
|
|
25
|
+
},
|
|
26
|
+
className
|
|
27
|
+
);
|
|
28
|
+
const initials = getInitials(firstName, lastName);
|
|
29
|
+
return /* @__PURE__ */ jsx("div", { ...props, ref: forwardRef, className: classes, children: initials ? /* @__PURE__ */ jsx(Text, { variant: "paragraph-100-medium", children: initials }) : /* @__PURE__ */ jsx(Icon, { size: "md", name: icon || "end-user" }) });
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
export {
|
|
33
|
+
Root
|
|
34
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RootProps } from './avatar-root';
|
|
2
|
+
|
|
3
|
+
export declare const Avatar: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
variant?: ("beige" | "blue" | "green" | "grey" | "orange" | "white" | "purple-light") | undefined;
|
|
5
|
+
firstName?: string | undefined;
|
|
6
|
+
lastName?: string | undefined;
|
|
7
|
+
icon?: "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "copy" | "dislike" | "download" | "edit" | "filter" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "play" | "remove-filled" | "remove" | "save" | "send" | "settings" | "share" | "shortcut" | "shuffle" | "skip-back-10sec" | "skip-back-30sec" | "skip-forward-10sec" | "skip-forward-30sec" | "star-filled" | "star" | "switch-arrows" | "sync" | "tv-next" | "tv-pause" | "tv-previous" | "tv-stop" | "upload" | "visible" | "volume" | "zoom-out" | "zoom" | "connected-building" | "home" | "hospital" | "industry" | "premises-datacenter" | "premises-large" | "premises-medium" | "premises-small" | "premises" | "store" | "address-book" | "b2b-customer" | "care" | "chat-robot" | "chat" | "child-1" | "child-2" | "conversation" | "customer-dialogue" | "dsl-hub" | "email" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-neutral" | "smiley-sad" | "sms" | "support" | "user-admin" | "vcard" | "voicemail" | "battery" | "bluetooth" | "broadband" | "broken-phone" | "cast" | "cloud-connect" | "connected" | "core-router" | "daas-device" | "data-transfer" | "desktop" | "devices" | "esim-simcard" | "esim" | "face-id" | "fiber" | "fingerprint" | "fiveg" | "fourg" | "home-installation" | "industrial-iot" | "internet" | "it-service" | "laptop" | "mobile-broadband" | "network" | "phone-recycling" | "phone-ringing" | "phone" | "rack" | "refill-card" | "remote-control" | "repair" | "roaming" | "router" | "secure-device" | "sense-car" | "server" | "service-device" | "service-supervision" | "slow-wifi" | "smart-wifi" | "smartphone" | "smartwatch" | "tablet" | "trade-phone" | "tv" | "usb" | "voice-switch" | "wallplug" | "wireless-off" | "wireless-weak" | "wireless" | "world-alert" | "world-off" | "world-question" | "bar-chart" | "doc" | "document-doc" | "document-edit" | "document-pdf" | "document-ppt" | "excel" | "folder-copy" | "folder-new" | "folder" | "gif" | "graph" | "media-content" | "org-chart" | "pie-chart" | "print" | "register" | "report" | "simcard" | "spell-check" | "summary" | "credit-card" | "euro" | "invoice" | "kontantkort" | "kr" | "late-payment" | "money-back-euro" | "money-back-kr" | "money-euro" | "money-kr" | "pay-monthly-euro" | "pay-monthly-kr" | "pay-once-euro" | "pay-once-kr" | "payment-success" | "savings" | "wallet" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "image" | "link" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "video" | "activity-level" | "add" | "ai-robot" | "bag" | "basketball" | "blood-pressure" | "bulb" | "business-continuity" | "business-intelligence" | "calendar" | "cart" | "close-circle" | "cloud" | "coffee" | "compass" | "construction" | "cookie" | "delivery" | "drone" | "education" | "efficiency" | "environment" | "facemask" | "flag" | "focus" | "food" | "fraud" | "getting-started" | "home-care" | "infinite" | "job-search" | "key" | "layers" | "map" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "radio" | "recycle" | "reservation" | "reverse" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "smart-connect" | "snowflake" | "speedometer" | "split" | "spyware" | "stop" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "time" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "x" | "youtube" | "alert-filled" | "alert" | "check-circle-filled" | "check-circle" | "error-filled" | "error" | "help" | "info-filled" | "info" | "question-filled" | "question" | "warning" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-subdirectory" | "arrow-up" | "card-view" | "checkmark-bold" | "checkmark" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "close" | "grid-view" | "list-view" | "menu" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "search" | "services" | "sorter" | "table-view" | undefined;
|
|
8
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export type AvatarProps = RootProps;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
function getInitials(firstName, lastName) {
|
|
4
|
+
if (!firstName && !lastName)
|
|
5
|
+
return "";
|
|
6
|
+
const firstInitial = firstName ? firstName.charAt(0).toLocaleUpperCase() : "";
|
|
7
|
+
const lastInitial = lastName ? lastName.charAt(0).toLocaleUpperCase() : "";
|
|
8
|
+
return `${firstInitial}${lastInitial}`;
|
|
9
|
+
}
|
|
10
|
+
exports.getInitials = getInitials;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getInitials(firstName?: string, lastName?: string): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
function getInitials(firstName, lastName) {
|
|
2
|
+
if (!firstName && !lastName)
|
|
3
|
+
return "";
|
|
4
|
+
const firstInitial = firstName ? firstName.charAt(0).toLocaleUpperCase() : "";
|
|
5
|
+
const lastInitial = lastName ? lastName.charAt(0).toLocaleUpperCase() : "";
|
|
6
|
+
return `${firstInitial}${lastInitial}`;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
getInitials
|
|
10
|
+
};
|
|
@@ -9,7 +9,7 @@ export declare const Link: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.
|
|
|
9
9
|
disableVisited?: boolean | undefined;
|
|
10
10
|
ensureTargetArea?: boolean | undefined;
|
|
11
11
|
silent?: boolean | undefined;
|
|
12
|
-
variant: "
|
|
12
|
+
variant: "navigation" | "text" | "text-negative" | "standalone" | "standalone-negative" | "navigation-negative";
|
|
13
13
|
} & React.RefAttributes<HTMLAnchorElement>, "ref">, "variant"> & {
|
|
14
14
|
home?: boolean | undefined;
|
|
15
15
|
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -15,7 +15,7 @@ export declare const Breadcrumbs: import('react').ForwardRefExoticComponent<Omit
|
|
|
15
15
|
disableVisited?: boolean | undefined;
|
|
16
16
|
ensureTargetArea?: boolean | undefined;
|
|
17
17
|
silent?: boolean | undefined;
|
|
18
|
-
variant: "
|
|
18
|
+
variant: "navigation" | "text" | "text-negative" | "standalone" | "standalone-negative" | "navigation-negative";
|
|
19
19
|
} & import('react').RefAttributes<HTMLAnchorElement>, "ref">, "variant"> & {
|
|
20
20
|
home?: boolean | undefined;
|
|
21
21
|
} & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
@@ -9,7 +9,7 @@ export type IllustrationProps = React.ComponentPropsWithoutRef<'div'> & {
|
|
|
9
9
|
/** The illustration for the card */
|
|
10
10
|
export declare const Illustration: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
11
11
|
/** The inset allows make the image bleed out to the edges */
|
|
12
|
-
inset?: "
|
|
12
|
+
inset?: "top" | "bottom" | "left" | "right" | "all" | "top-right-left" | "bottom-left-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-bottom" | "left-right" | undefined;
|
|
13
13
|
rounded?: boolean | undefined;
|
|
14
14
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
15
15
|
export {};
|
|
@@ -7,5 +7,5 @@ export declare const Link: React.ForwardRefExoticComponent<Omit<Omit<React.Detai
|
|
|
7
7
|
disableVisited?: boolean | undefined;
|
|
8
8
|
ensureTargetArea?: boolean | undefined;
|
|
9
9
|
silent?: boolean | undefined;
|
|
10
|
-
variant: "
|
|
10
|
+
variant: "navigation" | "text" | "text-negative" | "standalone" | "standalone-negative" | "navigation-negative";
|
|
11
11
|
} & React.RefAttributes<HTMLAnchorElement>, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -10,7 +10,7 @@ export type CardType = 'regular' | 'product';
|
|
|
10
10
|
export declare const RootContext: React.Context<{
|
|
11
11
|
buttonRef: React.RefObject<HTMLButtonElement>;
|
|
12
12
|
linkRef: React.RefObject<HTMLAnchorElement>;
|
|
13
|
-
variant?: "beige" | "gray" | "white" | "purple-light" | "
|
|
13
|
+
variant?: "beige" | "gray" | "white" | "purple-light" | "beige-light" | "purple-dark" | undefined;
|
|
14
14
|
layout?: Layout | undefined;
|
|
15
15
|
} | undefined>;
|
|
16
16
|
/** -------------------------------------------------------------------------------------------------
|
|
@@ -12,8 +12,8 @@ export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.
|
|
|
12
12
|
loading?: boolean | undefined;
|
|
13
13
|
fullWidth?: boolean | undefined;
|
|
14
14
|
size?: "sm" | "md" | "lg" | undefined;
|
|
15
|
-
variant?: "
|
|
16
|
-
borderStyle?: ("
|
|
15
|
+
variant?: "list-item" | "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
16
|
+
borderStyle?: ("dashed" | "default") | undefined;
|
|
17
17
|
} & {
|
|
18
18
|
iconOnly: true;
|
|
19
19
|
"aria-label": string;
|
|
@@ -24,11 +24,11 @@ export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.
|
|
|
24
24
|
loading?: boolean | undefined;
|
|
25
25
|
fullWidth?: boolean | undefined;
|
|
26
26
|
size?: "sm" | "md" | "lg" | undefined;
|
|
27
|
-
variant?: "
|
|
28
|
-
borderStyle?: ("
|
|
27
|
+
variant?: "list-item" | "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
28
|
+
borderStyle?: ("dashed" | "default") | undefined;
|
|
29
29
|
} & {
|
|
30
30
|
iconOnly?: false | undefined;
|
|
31
31
|
"aria-label"?: string | undefined;
|
|
32
|
-
} & React.RefAttributes<HTMLButtonElement>, "ref">, "
|
|
33
|
-
as?: "
|
|
32
|
+
} & React.RefAttributes<HTMLButtonElement>, "ref">, "size" | "aria-label" | "borderStyle" | "loading" | "variant" | "fullWidth" | "iconOnly"> & {
|
|
33
|
+
as?: "span" | "div" | undefined;
|
|
34
34
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -35,8 +35,8 @@ declare const ChannelButton: import('react').ForwardRefExoticComponent<Omit<Omit
|
|
|
35
35
|
loading?: boolean | undefined;
|
|
36
36
|
fullWidth?: boolean | undefined;
|
|
37
37
|
size?: "sm" | "md" | "lg" | undefined;
|
|
38
|
-
variant?: "
|
|
39
|
-
borderStyle?: ("
|
|
38
|
+
variant?: "list-item" | "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
39
|
+
borderStyle?: ("dashed" | "default") | undefined;
|
|
40
40
|
} & {
|
|
41
41
|
iconOnly: true;
|
|
42
42
|
"aria-label": string;
|
|
@@ -47,13 +47,13 @@ declare const ChannelButton: import('react').ForwardRefExoticComponent<Omit<Omit
|
|
|
47
47
|
loading?: boolean | undefined;
|
|
48
48
|
fullWidth?: boolean | undefined;
|
|
49
49
|
size?: "sm" | "md" | "lg" | undefined;
|
|
50
|
-
variant?: "
|
|
51
|
-
borderStyle?: ("
|
|
50
|
+
variant?: "list-item" | "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
51
|
+
borderStyle?: ("dashed" | "default") | undefined;
|
|
52
52
|
} & {
|
|
53
53
|
iconOnly?: false | undefined;
|
|
54
54
|
"aria-label"?: string | undefined;
|
|
55
|
-
} & import('react').RefAttributes<HTMLButtonElement>, "ref">, "
|
|
56
|
-
as?: "
|
|
55
|
+
} & import('react').RefAttributes<HTMLButtonElement>, "ref">, "size" | "aria-label" | "borderStyle" | "loading" | "variant" | "fullWidth" | "iconOnly"> & {
|
|
56
|
+
as?: "span" | "div" | undefined;
|
|
57
57
|
} & import('react').RefAttributes<HTMLButtonElement>> & {
|
|
58
58
|
/**
|
|
59
59
|
* The Illustration component is used to wrap the image in the ChannelButton.
|
|
@@ -32,7 +32,7 @@ declare const List: React.ForwardRefExoticComponent<Omit<Omit<import('../../util
|
|
|
32
32
|
} & import('../../utils/generate-styling/flex').FlexLayout & {
|
|
33
33
|
as: "div";
|
|
34
34
|
asChild?: false | undefined;
|
|
35
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "
|
|
35
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "as" | "asChild"> & {
|
|
36
36
|
parentValue?: string | undefined;
|
|
37
37
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
38
38
|
export { List };
|
|
@@ -34,7 +34,7 @@ export declare const Group: React.ForwardRefExoticComponent<Omit<Omit<import('..
|
|
|
34
34
|
} & import('../../utils/generate-styling/flex').FlexLayout & {
|
|
35
35
|
as: "div";
|
|
36
36
|
asChild?: false | undefined;
|
|
37
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "
|
|
37
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "direction" | "value" | "defaultValue" | "onValueChange"> & {
|
|
38
38
|
name?: string | undefined;
|
|
39
39
|
required?: boolean | undefined;
|
|
40
40
|
disabled?: boolean | undefined;
|
|
@@ -41,7 +41,7 @@ export declare const CheckboxGroup: import('react').ForwardRefExoticComponent<Om
|
|
|
41
41
|
} & import('../../utils/generate-styling/flex.ts').FlexLayout & {
|
|
42
42
|
as: "div";
|
|
43
43
|
asChild?: false | undefined;
|
|
44
|
-
} & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref">, "
|
|
44
|
+
} & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref">, "direction" | "value" | "defaultValue" | "onValueChange"> & {
|
|
45
45
|
name?: string | undefined;
|
|
46
46
|
required?: boolean | undefined;
|
|
47
47
|
disabled?: boolean | undefined;
|
|
@@ -79,7 +79,7 @@ export declare const CheckboxGroup: import('react').ForwardRefExoticComponent<Om
|
|
|
79
79
|
} & import('../../utils/generate-styling/flex.ts').FlexLayout & {
|
|
80
80
|
as: "div";
|
|
81
81
|
asChild?: false | undefined;
|
|
82
|
-
} & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref">, "
|
|
82
|
+
} & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref">, "as" | "asChild"> & {
|
|
83
83
|
parentValue?: string | undefined;
|
|
84
84
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
85
85
|
GroupLabel: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-label').LabelProps & import('react').RefAttributes<HTMLLabelElement>, "ref"> & {
|
|
@@ -3,7 +3,7 @@ import { Icon } from '../icon';
|
|
|
3
3
|
|
|
4
4
|
export type IndicatorProps = Partial<React.ComponentPropsWithoutRef<typeof Icon>>;
|
|
5
5
|
export declare const Indicator: React.ForwardRefExoticComponent<Partial<Omit<React.SVGProps<SVGSVGElement> & {
|
|
6
|
-
name: "
|
|
7
|
-
size?: ("xxs" | "xs" | "sm" | "md" | "lg" | "xl"
|
|
6
|
+
name: "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "copy" | "dislike" | "download" | "edit" | "filter" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "play" | "remove-filled" | "remove" | "save" | "send" | "settings" | "share" | "shortcut" | "shuffle" | "skip-back-10sec" | "skip-back-30sec" | "skip-forward-10sec" | "skip-forward-30sec" | "star-filled" | "star" | "switch-arrows" | "sync" | "tv-next" | "tv-pause" | "tv-previous" | "tv-stop" | "upload" | "visible" | "volume" | "zoom-out" | "zoom" | "connected-building" | "home" | "hospital" | "industry" | "premises-datacenter" | "premises-large" | "premises-medium" | "premises-small" | "premises" | "store" | "address-book" | "b2b-customer" | "care" | "chat-robot" | "chat" | "child-1" | "child-2" | "conversation" | "customer-dialogue" | "dsl-hub" | "email" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-neutral" | "smiley-sad" | "sms" | "support" | "user-admin" | "vcard" | "voicemail" | "battery" | "bluetooth" | "broadband" | "broken-phone" | "cast" | "cloud-connect" | "connected" | "core-router" | "daas-device" | "data-transfer" | "desktop" | "devices" | "esim-simcard" | "esim" | "face-id" | "fiber" | "fingerprint" | "fiveg" | "fourg" | "home-installation" | "industrial-iot" | "internet" | "it-service" | "laptop" | "mobile-broadband" | "network" | "phone-recycling" | "phone-ringing" | "phone" | "rack" | "refill-card" | "remote-control" | "repair" | "roaming" | "router" | "secure-device" | "sense-car" | "server" | "service-device" | "service-supervision" | "slow-wifi" | "smart-wifi" | "smartphone" | "smartwatch" | "tablet" | "trade-phone" | "tv" | "usb" | "voice-switch" | "wallplug" | "wireless-off" | "wireless-weak" | "wireless" | "world-alert" | "world-off" | "world-question" | "bar-chart" | "doc" | "document-doc" | "document-edit" | "document-pdf" | "document-ppt" | "excel" | "folder-copy" | "folder-new" | "folder" | "gif" | "graph" | "media-content" | "org-chart" | "pie-chart" | "print" | "register" | "report" | "simcard" | "spell-check" | "summary" | "credit-card" | "euro" | "invoice" | "kontantkort" | "kr" | "late-payment" | "money-back-euro" | "money-back-kr" | "money-euro" | "money-kr" | "pay-monthly-euro" | "pay-monthly-kr" | "pay-once-euro" | "pay-once-kr" | "payment-success" | "savings" | "wallet" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "image" | "link" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "video" | "activity-level" | "add" | "ai-robot" | "bag" | "basketball" | "blood-pressure" | "bulb" | "business-continuity" | "business-intelligence" | "calendar" | "cart" | "close-circle" | "cloud" | "coffee" | "compass" | "construction" | "cookie" | "delivery" | "drone" | "education" | "efficiency" | "environment" | "facemask" | "flag" | "focus" | "food" | "fraud" | "getting-started" | "home-care" | "infinite" | "job-search" | "key" | "layers" | "map" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "radio" | "recycle" | "reservation" | "reverse" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "smart-connect" | "snowflake" | "speedometer" | "split" | "spyware" | "stop" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "time" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "x" | "youtube" | "alert-filled" | "alert" | "check-circle-filled" | "check-circle" | "error-filled" | "error" | "help" | "info-filled" | "info" | "question-filled" | "question" | "warning" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-subdirectory" | "arrow-up" | "card-view" | "checkmark-bold" | "checkmark" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "close" | "grid-view" | "list-view" | "menu" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "search" | "services" | "sorter" | "table-view";
|
|
7
|
+
size?: ("font" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl") | undefined;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -5,8 +5,8 @@ import { ItemProps } from './chip-item';
|
|
|
5
5
|
export declare const Chip: import('react').ForwardRefExoticComponent<RootProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
6
6
|
Item: import('react').ForwardRefExoticComponent<ItemProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
7
7
|
Indicator: import('react').ForwardRefExoticComponent<Partial<Omit<import('react').SVGProps<SVGSVGElement> & {
|
|
8
|
-
name: "
|
|
9
|
-
size?: ("xxs" | "xs" | "sm" | "md" | "lg" | "xl"
|
|
8
|
+
name: "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "copy" | "dislike" | "download" | "edit" | "filter" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "play" | "remove-filled" | "remove" | "save" | "send" | "settings" | "share" | "shortcut" | "shuffle" | "skip-back-10sec" | "skip-back-30sec" | "skip-forward-10sec" | "skip-forward-30sec" | "star-filled" | "star" | "switch-arrows" | "sync" | "tv-next" | "tv-pause" | "tv-previous" | "tv-stop" | "upload" | "visible" | "volume" | "zoom-out" | "zoom" | "connected-building" | "home" | "hospital" | "industry" | "premises-datacenter" | "premises-large" | "premises-medium" | "premises-small" | "premises" | "store" | "address-book" | "b2b-customer" | "care" | "chat-robot" | "chat" | "child-1" | "child-2" | "conversation" | "customer-dialogue" | "dsl-hub" | "email" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-neutral" | "smiley-sad" | "sms" | "support" | "user-admin" | "vcard" | "voicemail" | "battery" | "bluetooth" | "broadband" | "broken-phone" | "cast" | "cloud-connect" | "connected" | "core-router" | "daas-device" | "data-transfer" | "desktop" | "devices" | "esim-simcard" | "esim" | "face-id" | "fiber" | "fingerprint" | "fiveg" | "fourg" | "home-installation" | "industrial-iot" | "internet" | "it-service" | "laptop" | "mobile-broadband" | "network" | "phone-recycling" | "phone-ringing" | "phone" | "rack" | "refill-card" | "remote-control" | "repair" | "roaming" | "router" | "secure-device" | "sense-car" | "server" | "service-device" | "service-supervision" | "slow-wifi" | "smart-wifi" | "smartphone" | "smartwatch" | "tablet" | "trade-phone" | "tv" | "usb" | "voice-switch" | "wallplug" | "wireless-off" | "wireless-weak" | "wireless" | "world-alert" | "world-off" | "world-question" | "bar-chart" | "doc" | "document-doc" | "document-edit" | "document-pdf" | "document-ppt" | "excel" | "folder-copy" | "folder-new" | "folder" | "gif" | "graph" | "media-content" | "org-chart" | "pie-chart" | "print" | "register" | "report" | "simcard" | "spell-check" | "summary" | "credit-card" | "euro" | "invoice" | "kontantkort" | "kr" | "late-payment" | "money-back-euro" | "money-back-kr" | "money-euro" | "money-kr" | "pay-monthly-euro" | "pay-monthly-kr" | "pay-once-euro" | "pay-once-kr" | "payment-success" | "savings" | "wallet" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "image" | "link" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "video" | "activity-level" | "add" | "ai-robot" | "bag" | "basketball" | "blood-pressure" | "bulb" | "business-continuity" | "business-intelligence" | "calendar" | "cart" | "close-circle" | "cloud" | "coffee" | "compass" | "construction" | "cookie" | "delivery" | "drone" | "education" | "efficiency" | "environment" | "facemask" | "flag" | "focus" | "food" | "fraud" | "getting-started" | "home-care" | "infinite" | "job-search" | "key" | "layers" | "map" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "radio" | "recycle" | "reservation" | "reverse" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "smart-connect" | "snowflake" | "speedometer" | "split" | "spyware" | "stop" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "time" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "x" | "youtube" | "alert-filled" | "alert" | "check-circle-filled" | "check-circle" | "error-filled" | "error" | "help" | "info-filled" | "info" | "question-filled" | "question" | "warning" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-subdirectory" | "arrow-up" | "card-view" | "checkmark-bold" | "checkmark" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "close" | "grid-view" | "list-view" | "menu" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "search" | "services" | "sorter" | "table-view";
|
|
9
|
+
size?: ("font" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl") | undefined;
|
|
10
10
|
children?: import('react').ReactNode;
|
|
11
11
|
}, "ref">> & import('react').RefAttributes<SVGSVGElement>>;
|
|
12
12
|
};
|
|
@@ -12,8 +12,8 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
12
12
|
loading?: boolean | undefined;
|
|
13
13
|
fullWidth?: boolean | undefined;
|
|
14
14
|
size?: "sm" | "md" | "lg" | undefined;
|
|
15
|
-
variant?: "
|
|
16
|
-
borderStyle?: ("
|
|
15
|
+
variant?: "list-item" | "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
16
|
+
borderStyle?: ("dashed" | "default") | undefined;
|
|
17
17
|
} & {
|
|
18
18
|
iconOnly: true;
|
|
19
19
|
"aria-label": string;
|
|
@@ -24,8 +24,8 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
24
24
|
loading?: boolean | undefined;
|
|
25
25
|
fullWidth?: boolean | undefined;
|
|
26
26
|
size?: "sm" | "md" | "lg" | undefined;
|
|
27
|
-
variant?: "
|
|
28
|
-
borderStyle?: ("
|
|
27
|
+
variant?: "list-item" | "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
28
|
+
borderStyle?: ("dashed" | "default") | undefined;
|
|
29
29
|
} & {
|
|
30
30
|
iconOnly?: false | undefined;
|
|
31
31
|
"aria-label"?: string | undefined;
|