@telia/teddy 0.5.1 → 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/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 +349 -203
- 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
|
@@ -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;
|
|
@@ -27,8 +27,8 @@ export declare const ExpandableCard: import('react').ForwardRefExoticComponent<R
|
|
|
27
27
|
loading?: boolean | undefined;
|
|
28
28
|
fullWidth?: boolean | undefined;
|
|
29
29
|
size?: "sm" | "md" | "lg" | undefined;
|
|
30
|
-
variant?: "
|
|
31
|
-
borderStyle?: ("
|
|
30
|
+
variant?: "list-item" | "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
31
|
+
borderStyle?: ("dashed" | "default") | undefined;
|
|
32
32
|
} & {
|
|
33
33
|
iconOnly: true;
|
|
34
34
|
"aria-label": string;
|
|
@@ -39,13 +39,13 @@ export declare const ExpandableCard: import('react').ForwardRefExoticComponent<R
|
|
|
39
39
|
loading?: boolean | undefined;
|
|
40
40
|
fullWidth?: boolean | undefined;
|
|
41
41
|
size?: "sm" | "md" | "lg" | undefined;
|
|
42
|
-
variant?: "
|
|
43
|
-
borderStyle?: ("
|
|
42
|
+
variant?: "list-item" | "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
43
|
+
borderStyle?: ("dashed" | "default") | undefined;
|
|
44
44
|
} & {
|
|
45
45
|
iconOnly?: false | undefined;
|
|
46
46
|
"aria-label"?: string | undefined;
|
|
47
47
|
} & import('react').RefAttributes<HTMLButtonElement>, "ref">, "variant"> & {
|
|
48
|
-
variant?: "
|
|
48
|
+
variant?: "list-item" | "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
49
49
|
position?: "left" | "right" | undefined;
|
|
50
50
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
51
51
|
Indicator: import('react').ForwardRefExoticComponent<Omit<IndicatorProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
@@ -26,8 +26,8 @@ export declare const Trigger: React.ForwardRefExoticComponent<Omit<Omit<Omit<Rea
|
|
|
26
26
|
loading?: boolean | undefined;
|
|
27
27
|
fullWidth?: boolean | undefined;
|
|
28
28
|
size?: "sm" | "md" | "lg" | undefined;
|
|
29
|
-
variant?: "
|
|
30
|
-
borderStyle?: ("
|
|
29
|
+
variant?: "list-item" | "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
30
|
+
borderStyle?: ("dashed" | "default") | undefined;
|
|
31
31
|
} & {
|
|
32
32
|
iconOnly: true;
|
|
33
33
|
"aria-label": string;
|
|
@@ -38,8 +38,8 @@ export declare const Trigger: React.ForwardRefExoticComponent<Omit<Omit<Omit<Rea
|
|
|
38
38
|
loading?: boolean | undefined;
|
|
39
39
|
fullWidth?: boolean | undefined;
|
|
40
40
|
size?: "sm" | "md" | "lg" | undefined;
|
|
41
|
-
variant?: "
|
|
42
|
-
borderStyle?: ("
|
|
41
|
+
variant?: "list-item" | "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
42
|
+
borderStyle?: ("dashed" | "default") | undefined;
|
|
43
43
|
} & {
|
|
44
44
|
iconOnly?: false | undefined;
|
|
45
45
|
"aria-label"?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isIconName: (value: string | null) => value is "
|
|
1
|
+
export declare const isIconName: (value: string | null) => value is "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";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const components_avatar_index = require("./avatar/index.cjs");
|
|
4
|
+
const components_subscriptionCard_index = require("./subscription-card/index.cjs");
|
|
3
5
|
const components_table_index = require("./table/index.cjs");
|
|
4
6
|
const components_flipCard_index = require("./flip-card/index.cjs");
|
|
5
7
|
const components_channelButton_index = require("./channel-button/index.cjs");
|
|
@@ -57,6 +59,8 @@ const components_carousel_carouselRoot = require("./carousel/carousel-root.cjs")
|
|
|
57
59
|
const components_slider_slider = require("./slider/slider.cjs");
|
|
58
60
|
const sonner = require("sonner");
|
|
59
61
|
const components_input_inputGroup = require("./input/input-group.cjs");
|
|
62
|
+
exports.Avatar = components_avatar_index.Avatar;
|
|
63
|
+
exports.SubscriptionCard = components_subscriptionCard_index.SubscriptionCard;
|
|
60
64
|
exports.Table = components_table_index.Table;
|
|
61
65
|
exports.FlipCard = components_flipCard_index.FlipCard;
|
|
62
66
|
exports.ChannelButton = components_channelButton_index.ChannelButton;
|
package/dist/components/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Avatar } from "./avatar/index.js";
|
|
2
|
+
import { SubscriptionCard } from "./subscription-card/index.js";
|
|
1
3
|
import { Table } from "./table/index.js";
|
|
2
4
|
import { FlipCard } from "./flip-card/index.js";
|
|
3
5
|
import { ChannelButton } from "./channel-button/index.js";
|
|
@@ -59,6 +61,7 @@ export {
|
|
|
59
61
|
Accordion,
|
|
60
62
|
AlertBadge,
|
|
61
63
|
default3 as AllIcons,
|
|
64
|
+
Avatar,
|
|
62
65
|
Badge,
|
|
63
66
|
Box,
|
|
64
67
|
Breadcrumbs,
|
|
@@ -104,6 +107,7 @@ export {
|
|
|
104
107
|
Skeleton,
|
|
105
108
|
Slider,
|
|
106
109
|
Spinner,
|
|
110
|
+
SubscriptionCard,
|
|
107
111
|
Table,
|
|
108
112
|
Tabs,
|
|
109
113
|
Text,
|