@telia/teddy 0.3.1 → 0.3.2
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/card/card-illustration.d.ts +1 -1
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/channel-button/channel-button-illustration.cjs +33 -0
- package/dist/components/channel-button/channel-button-illustration.d.ts +8 -0
- package/dist/components/channel-button/channel-button-illustration.js +33 -0
- package/dist/components/channel-button/channel-button-image.cjs +19 -0
- package/dist/components/channel-button/channel-button-image.d.ts +5 -0
- package/dist/components/channel-button/channel-button-image.js +19 -0
- package/dist/components/channel-button/channel-button-root.cjs +41 -0
- package/dist/components/channel-button/channel-button-root.d.ts +34 -0
- package/dist/components/channel-button/channel-button-root.js +41 -0
- package/dist/components/channel-button/channel-button-text.cjs +23 -0
- package/dist/components/channel-button/channel-button-text.d.ts +5 -0
- package/dist/components/channel-button/channel-button-text.js +23 -0
- package/dist/components/channel-button/index.cjs +15 -0
- package/dist/components/channel-button/index.d.ts +91 -0
- package/dist/components/channel-button/index.js +15 -0
- 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/color-dot/index.d.ts +1 -1
- package/dist/components/expandable-card/expandable-card-button.d.ts +2 -2
- package/dist/components/expandable-card/index.d.ts +3 -3
- package/dist/components/icon/utils.d.ts +1 -1
- package/dist/components/index.cjs +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/link/link.cjs +10 -10
- package/dist/components/link/link.js +10 -10
- package/dist/components/modal/modal.cjs +1 -0
- package/dist/components/modal/modal.js +1 -0
- package/dist/components/navigation-menu/navigation-menu.cjs +1 -0
- package/dist/components/navigation-menu/navigation-menu.js +1 -0
- package/dist/components/notabene/index.cjs +2 -2
- package/dist/components/notabene/index.d.ts +1 -1
- package/dist/components/notabene/index.js +1 -1
- package/dist/components/notabene/notabene-icon.d.ts +2 -2
- package/dist/components/notification/index.d.ts +1 -1
- package/dist/components/notification/notification-icon.d.ts +2 -2
- package/dist/components/notification/notification-root.d.ts +1 -1
- package/dist/components/radio-card-group/radio-card-group-content.cjs +1 -0
- package/dist/components/radio-card-group/radio-card-group-content.js +1 -0
- package/dist/components/radio-card-group/radio-card-group-item-title.cjs +10 -9
- package/dist/components/radio-card-group/radio-card-group-item-title.js +10 -9
- package/dist/components/radio-card-group/radio-card-group-item.cjs +1 -0
- package/dist/components/radio-card-group/radio-card-group-item.js +1 -0
- package/dist/components/scroll-area/index.d.ts +2 -2
- package/dist/components/scroll-area/scroll-area-button.d.ts +2 -2
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tabs/tabs-scroll-button.d.ts +2 -2
- package/dist/components/text-field/index.d.ts +2 -2
- package/dist/components/text-field/text-field-button.d.ts +2 -2
- package/dist/components/toggle/toggle.d.ts +2 -2
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/main.cjs +2 -0
- package/dist/main.js +2 -0
- package/dist/style.css +983 -924
- 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 +1 -1
- /package/dist/components/notabene/{notabene-content.cjs → notabene.content.cjs} +0 -0
- /package/dist/components/notabene/{notabene-content.d.ts → notabene.content.d.ts} +0 -0
- /package/dist/components/notabene/{notabene-content.js → notabene.content.js} +0 -0
|
@@ -12,7 +12,7 @@ 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?: "
|
|
15
|
+
variant?: "primary" | "text" | "list-item" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
16
16
|
borderStyle?: ("default" | "dashed") | undefined;
|
|
17
17
|
} & {
|
|
18
18
|
iconOnly: true;
|
|
@@ -24,7 +24,7 @@ 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?: "
|
|
27
|
+
variant?: "primary" | "text" | "list-item" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
28
28
|
borderStyle?: ("default" | "dashed") | undefined;
|
|
29
29
|
} & {
|
|
30
30
|
iconOnly?: false | undefined;
|
|
@@ -27,7 +27,7 @@ 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?: "
|
|
30
|
+
variant?: "primary" | "text" | "list-item" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
31
31
|
borderStyle?: ("default" | "dashed") | undefined;
|
|
32
32
|
} & {
|
|
33
33
|
iconOnly: true;
|
|
@@ -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?: "
|
|
42
|
+
variant?: "primary" | "text" | "list-item" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
43
43
|
borderStyle?: ("default" | "dashed") | 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?: "primary" | "text" | "list-item" | "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>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isIconName: (value: string | null) => value is "link" | "map" | "menu" | "search" | "summary" | "time" | "video" | "filter" | "image" | "stop" | "
|
|
1
|
+
export declare const isIconName: (value: string | null) => value is "link" | "map" | "menu" | "search" | "summary" | "time" | "video" | "filter" | "image" | "stop" | "x" | "key" | "download" | "split" | "alert" | "radio" | "copy" | "add" | "reverse" | "infinite" | "visible" | "help" | "zoom-out" | "zoom" | "email" | "close" | "error" | "focus" | "play" | "sync" | "present" | "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "dislike" | "edit" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "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" | "tv-next" | "tv-pause" | "tv-previous" | "tv-stop" | "upload" | "volume" | "connected-building" | "home" | "hospital" | "industry" | "premises-datacenter" | "premises-large" | "premises-medium" | "premises-small" | "premises" | "store" | "address-book" | "b2b-customer" | "care" | "chat-robot" | "chat" | "child-1" | "child-2" | "conversation" | "customer-dialogue" | "dsl-hub" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-sad" | "sms" | "support" | "user-admin" | "vcard" | "voicemail" | "battery" | "bluetooth" | "broadband" | "broken-phone" | "cast" | "cloud-connect" | "connected" | "core-router" | "daas-device" | "data-transfer" | "desktop" | "devices" | "esim-simcard" | "esim" | "face-id" | "fiber" | "fingerprint" | "fiveg" | "fourg" | "home-installation" | "industrial-iot" | "internet" | "it-service" | "laptop" | "mobile-broadband" | "network" | "phone-recycling" | "phone-ringing" | "phone" | "rack" | "refill-card" | "remote-control" | "repair" | "roaming" | "router" | "secure-device" | "sense-car" | "server" | "service-device" | "service-supervision" | "slow-wifi" | "smart-wifi" | "smartphone" | "smartwatch" | "tablet" | "trade-phone" | "tv" | "usb" | "voice-switch" | "wallplug" | "wireless-off" | "wireless-weak" | "wireless" | "world-alert" | "world-off" | "world-question" | "bar-chart" | "doc" | "document-doc" | "document-edit" | "document-pdf" | "document-ppt" | "excel" | "folder-copy" | "folder-new" | "folder" | "gif" | "graph" | "media-content" | "org-chart" | "pie-chart" | "print" | "register" | "report" | "simcard" | "spell-check" | "credit-card" | "euro" | "invoice" | "kontantkort" | "kr" | "late-payment" | "money-back-euro" | "money-back-kr" | "money-euro" | "money-kr" | "pay-monthly-euro" | "pay-monthly-kr" | "pay-once-euro" | "pay-once-kr" | "payment-success" | "savings" | "wallet" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "activity-level" | "ai-robot" | "bag" | "basketball" | "blood-pressure" | "bulb" | "business-continuity" | "business-intelligence" | "calendar" | "cart" | "close-circle" | "cloud" | "coffee" | "compass" | "construction" | "cookie" | "delivery" | "drone" | "education" | "efficiency" | "environment" | "facemask" | "flag" | "food" | "fraud" | "getting-started" | "home-care" | "job-search" | "layers" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "press-button" | "price" | "pulse" | "recycle" | "reservation" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "smart-connect" | "snowflake" | "speedometer" | "spyware" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "youtube" | "alert-filled" | "check-circle-filled" | "check-circle" | "error-filled" | "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" | "grid-view" | "list-view" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "services" | "sorter" | "table-view";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const components_channelButton_index = require("./channel-button/index.cjs");
|
|
3
4
|
const components_collapsible_index = require("./collapsible/index.cjs");
|
|
4
5
|
const components_meterBar_index = require("./meter-bar/index.cjs");
|
|
5
6
|
const components_skeleton_index = require("./skeleton/index.cjs");
|
|
@@ -54,6 +55,7 @@ const components_carousel_carouselRoot = require("./carousel/carousel-root.cjs")
|
|
|
54
55
|
const components_slider_slider = require("./slider/slider.cjs");
|
|
55
56
|
const sonner = require("sonner");
|
|
56
57
|
const components_input_inputGroup = require("./input/input-group.cjs");
|
|
58
|
+
exports.ChannelButton = components_channelButton_index.ChannelButton;
|
|
57
59
|
exports.Collapsible = components_collapsible_index.Collapsible;
|
|
58
60
|
exports.MeterBar = components_meterBar_index.MeterBar;
|
|
59
61
|
exports.Skeleton = components_skeleton_index.Skeleton;
|
package/dist/components/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ChannelButton } from "./channel-button/index.js";
|
|
1
2
|
import { Collapsible } from "./collapsible/index.js";
|
|
2
3
|
import { MeterBar } from "./meter-bar/index.js";
|
|
3
4
|
import { Skeleton } from "./skeleton/index.js";
|
|
@@ -62,6 +63,7 @@ export {
|
|
|
62
63
|
Button,
|
|
63
64
|
Card,
|
|
64
65
|
Carousel,
|
|
66
|
+
ChannelButton,
|
|
65
67
|
Checkbox,
|
|
66
68
|
CheckboxGroup,
|
|
67
69
|
Chip,
|
|
@@ -5,16 +5,16 @@ const clsx = require("clsx");
|
|
|
5
5
|
const React = require("react");
|
|
6
6
|
const reactSlot = require("@radix-ui/react-slot");
|
|
7
7
|
const styles = {
|
|
8
|
-
"teddy-link": "_teddy-
|
|
9
|
-
"teddy-link--text": "_teddy-link--
|
|
10
|
-
"teddy-link--standalone": "_teddy-link--
|
|
11
|
-
"teddy-link--navigation": "_teddy-link--
|
|
12
|
-
"teddy-link--disable-visited": "_teddy-link--disable-
|
|
13
|
-
"teddy-link--text-negative": "_teddy-link--text-
|
|
14
|
-
"teddy-link--standalone-negative": "_teddy-link--standalone-
|
|
15
|
-
"teddy-link--navigation-negative": "_teddy-link--navigation-
|
|
16
|
-
"teddy-link--ensure-target-area": "_teddy-link--ensure-target-
|
|
17
|
-
"teddy-link--silent": "_teddy-link--
|
|
8
|
+
"teddy-link": "_teddy-link_1vpvx_2",
|
|
9
|
+
"teddy-link--text": "_teddy-link--text_1vpvx_17",
|
|
10
|
+
"teddy-link--standalone": "_teddy-link--standalone_1vpvx_17",
|
|
11
|
+
"teddy-link--navigation": "_teddy-link--navigation_1vpvx_17",
|
|
12
|
+
"teddy-link--disable-visited": "_teddy-link--disable-visited_1vpvx_27",
|
|
13
|
+
"teddy-link--text-negative": "_teddy-link--text-negative_1vpvx_30",
|
|
14
|
+
"teddy-link--standalone-negative": "_teddy-link--standalone-negative_1vpvx_30",
|
|
15
|
+
"teddy-link--navigation-negative": "_teddy-link--navigation-negative_1vpvx_30",
|
|
16
|
+
"teddy-link--ensure-target-area": "_teddy-link--ensure-target-area_1vpvx_57",
|
|
17
|
+
"teddy-link--silent": "_teddy-link--silent_1vpvx_63"
|
|
18
18
|
};
|
|
19
19
|
const rootClassName = "teddy-link";
|
|
20
20
|
const Link = React.forwardRef(
|
|
@@ -3,16 +3,16 @@ import clsx from "clsx";
|
|
|
3
3
|
import React__default from "react";
|
|
4
4
|
import { Slot } from "@radix-ui/react-slot";
|
|
5
5
|
const styles = {
|
|
6
|
-
"teddy-link": "_teddy-
|
|
7
|
-
"teddy-link--text": "_teddy-link--
|
|
8
|
-
"teddy-link--standalone": "_teddy-link--
|
|
9
|
-
"teddy-link--navigation": "_teddy-link--
|
|
10
|
-
"teddy-link--disable-visited": "_teddy-link--disable-
|
|
11
|
-
"teddy-link--text-negative": "_teddy-link--text-
|
|
12
|
-
"teddy-link--standalone-negative": "_teddy-link--standalone-
|
|
13
|
-
"teddy-link--navigation-negative": "_teddy-link--navigation-
|
|
14
|
-
"teddy-link--ensure-target-area": "_teddy-link--ensure-target-
|
|
15
|
-
"teddy-link--silent": "_teddy-link--
|
|
6
|
+
"teddy-link": "_teddy-link_1vpvx_2",
|
|
7
|
+
"teddy-link--text": "_teddy-link--text_1vpvx_17",
|
|
8
|
+
"teddy-link--standalone": "_teddy-link--standalone_1vpvx_17",
|
|
9
|
+
"teddy-link--navigation": "_teddy-link--navigation_1vpvx_17",
|
|
10
|
+
"teddy-link--disable-visited": "_teddy-link--disable-visited_1vpvx_27",
|
|
11
|
+
"teddy-link--text-negative": "_teddy-link--text-negative_1vpvx_30",
|
|
12
|
+
"teddy-link--standalone-negative": "_teddy-link--standalone-negative_1vpvx_30",
|
|
13
|
+
"teddy-link--navigation-negative": "_teddy-link--navigation-negative_1vpvx_30",
|
|
14
|
+
"teddy-link--ensure-target-area": "_teddy-link--ensure-target-area_1vpvx_57",
|
|
15
|
+
"teddy-link--silent": "_teddy-link--silent_1vpvx_63"
|
|
16
16
|
};
|
|
17
17
|
const rootClassName = "teddy-link";
|
|
18
18
|
const Link = React__default.forwardRef(
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
require("react/jsx-runtime");
|
|
4
4
|
require("react");
|
|
5
5
|
require("@radix-ui/react-dialog");
|
|
6
|
+
require("../channel-button/index.cjs");
|
|
6
7
|
require("../collapsible/index.cjs");
|
|
7
8
|
require("../meter-bar/index.cjs");
|
|
8
9
|
require("../skeleton/index.cjs");
|
|
@@ -12,6 +12,7 @@ require("@radix-ui/react-slot");
|
|
|
12
12
|
require("@radix-ui/react-use-controllable-state");
|
|
13
13
|
require("../../utils/generate-styling/index.cjs");
|
|
14
14
|
require("../../tokens/motion/variables.cjs");
|
|
15
|
+
require("../channel-button/index.cjs");
|
|
15
16
|
require("../collapsible/index.cjs");
|
|
16
17
|
require("../meter-bar/index.cjs");
|
|
17
18
|
require("../skeleton/index.cjs");
|
|
@@ -10,6 +10,7 @@ import "@radix-ui/react-slot";
|
|
|
10
10
|
import "@radix-ui/react-use-controllable-state";
|
|
11
11
|
import "../../utils/generate-styling/index.js";
|
|
12
12
|
import "../../tokens/motion/variables.js";
|
|
13
|
+
import "../channel-button/index.js";
|
|
13
14
|
import "../collapsible/index.js";
|
|
14
15
|
import "../meter-bar/index.js";
|
|
15
16
|
import "../skeleton/index.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const components_notabene_notabene_content = require("./notabene.content.cjs");
|
|
4
4
|
const components_notabene_notabeneHeading = require("./notabene-heading.cjs");
|
|
5
5
|
const components_notabene_notabeneIcon = require("./notabene-icon.cjs");
|
|
6
6
|
const components_notabene_notabeneRoot = require("./notabene-root.cjs");
|
|
7
7
|
const Notabene = components_notabene_notabeneRoot.Root;
|
|
8
|
-
Notabene.Content =
|
|
8
|
+
Notabene.Content = components_notabene_notabene_content.Content;
|
|
9
9
|
Notabene.Heading = components_notabene_notabeneHeading.Heading;
|
|
10
10
|
Notabene.Icon = components_notabene_notabeneIcon.Icon;
|
|
11
11
|
exports.Notabene = Notabene;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Content, ContentProps } from './notabene
|
|
1
|
+
import { Content, ContentProps } from './notabene.content';
|
|
2
2
|
import { Heading, HeadingProps } from './notabene-heading';
|
|
3
3
|
import { Icon, IconProps } from './notabene-icon';
|
|
4
4
|
import { RootProps } from './notabene-root';
|
|
@@ -3,7 +3,7 @@ import { Icon as PrimitiveIcon } from '../icon';
|
|
|
3
3
|
|
|
4
4
|
export type IconProps = Partial<React.ComponentPropsWithoutRef<typeof PrimitiveIcon>>;
|
|
5
5
|
export declare const Icon: React.ForwardRefExoticComponent<Partial<Omit<React.SVGProps<SVGSVGElement> & {
|
|
6
|
-
name: "link" | "map" | "menu" | "search" | "summary" | "time" | "video" | "filter" | "image" | "stop" | "
|
|
7
|
-
size?: ("
|
|
6
|
+
name: "link" | "map" | "menu" | "search" | "summary" | "time" | "video" | "filter" | "image" | "stop" | "x" | "key" | "download" | "split" | "alert" | "radio" | "copy" | "add" | "reverse" | "infinite" | "visible" | "help" | "zoom-out" | "zoom" | "email" | "close" | "error" | "focus" | "play" | "sync" | "present" | "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "dislike" | "edit" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "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" | "tv-next" | "tv-pause" | "tv-previous" | "tv-stop" | "upload" | "volume" | "connected-building" | "home" | "hospital" | "industry" | "premises-datacenter" | "premises-large" | "premises-medium" | "premises-small" | "premises" | "store" | "address-book" | "b2b-customer" | "care" | "chat-robot" | "chat" | "child-1" | "child-2" | "conversation" | "customer-dialogue" | "dsl-hub" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-sad" | "sms" | "support" | "user-admin" | "vcard" | "voicemail" | "battery" | "bluetooth" | "broadband" | "broken-phone" | "cast" | "cloud-connect" | "connected" | "core-router" | "daas-device" | "data-transfer" | "desktop" | "devices" | "esim-simcard" | "esim" | "face-id" | "fiber" | "fingerprint" | "fiveg" | "fourg" | "home-installation" | "industrial-iot" | "internet" | "it-service" | "laptop" | "mobile-broadband" | "network" | "phone-recycling" | "phone-ringing" | "phone" | "rack" | "refill-card" | "remote-control" | "repair" | "roaming" | "router" | "secure-device" | "sense-car" | "server" | "service-device" | "service-supervision" | "slow-wifi" | "smart-wifi" | "smartphone" | "smartwatch" | "tablet" | "trade-phone" | "tv" | "usb" | "voice-switch" | "wallplug" | "wireless-off" | "wireless-weak" | "wireless" | "world-alert" | "world-off" | "world-question" | "bar-chart" | "doc" | "document-doc" | "document-edit" | "document-pdf" | "document-ppt" | "excel" | "folder-copy" | "folder-new" | "folder" | "gif" | "graph" | "media-content" | "org-chart" | "pie-chart" | "print" | "register" | "report" | "simcard" | "spell-check" | "credit-card" | "euro" | "invoice" | "kontantkort" | "kr" | "late-payment" | "money-back-euro" | "money-back-kr" | "money-euro" | "money-kr" | "pay-monthly-euro" | "pay-monthly-kr" | "pay-once-euro" | "pay-once-kr" | "payment-success" | "savings" | "wallet" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "activity-level" | "ai-robot" | "bag" | "basketball" | "blood-pressure" | "bulb" | "business-continuity" | "business-intelligence" | "calendar" | "cart" | "close-circle" | "cloud" | "coffee" | "compass" | "construction" | "cookie" | "delivery" | "drone" | "education" | "efficiency" | "environment" | "facemask" | "flag" | "food" | "fraud" | "getting-started" | "home-care" | "job-search" | "layers" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "press-button" | "price" | "pulse" | "recycle" | "reservation" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "smart-connect" | "snowflake" | "speedometer" | "spyware" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "youtube" | "alert-filled" | "check-circle-filled" | "check-circle" | "error-filled" | "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" | "grid-view" | "list-view" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "services" | "sorter" | "table-view";
|
|
7
|
+
size?: ("xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "font") | undefined;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -74,7 +74,7 @@ declare const Notification: import('react').ForwardRefExoticComponent<Omit<Omit<
|
|
|
74
74
|
backgroundImageSrc?: string | undefined;
|
|
75
75
|
imageGradient?: ("default" | "dark" | "light") | undefined;
|
|
76
76
|
layout?: import('../card/card').Layout | undefined;
|
|
77
|
-
} & import('react').RefAttributes<HTMLDivElement>, "ref">, "as" | "
|
|
77
|
+
} & import('react').RefAttributes<HTMLDivElement>, "ref">, "as" | "variant" | "layout"> & {
|
|
78
78
|
variant?: "beige" | "gray" | "teal" | "error" | "warning" | "information" | "success" | undefined;
|
|
79
79
|
type?: "card" | "tile" | undefined;
|
|
80
80
|
open?: boolean | undefined;
|
|
@@ -3,7 +3,7 @@ import { Icon as IconPrimitives } from '../icon';
|
|
|
3
3
|
|
|
4
4
|
export type IconProps = Partial<React.ComponentPropsWithoutRef<typeof IconPrimitives>>;
|
|
5
5
|
export declare const Icon: React.ForwardRefExoticComponent<Partial<Omit<React.SVGProps<SVGSVGElement> & {
|
|
6
|
-
name: "link" | "map" | "menu" | "search" | "summary" | "time" | "video" | "filter" | "image" | "stop" | "
|
|
7
|
-
size?: ("
|
|
6
|
+
name: "link" | "map" | "menu" | "search" | "summary" | "time" | "video" | "filter" | "image" | "stop" | "x" | "key" | "download" | "split" | "alert" | "radio" | "copy" | "add" | "reverse" | "infinite" | "visible" | "help" | "zoom-out" | "zoom" | "email" | "close" | "error" | "focus" | "play" | "sync" | "present" | "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "dislike" | "edit" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "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" | "tv-next" | "tv-pause" | "tv-previous" | "tv-stop" | "upload" | "volume" | "connected-building" | "home" | "hospital" | "industry" | "premises-datacenter" | "premises-large" | "premises-medium" | "premises-small" | "premises" | "store" | "address-book" | "b2b-customer" | "care" | "chat-robot" | "chat" | "child-1" | "child-2" | "conversation" | "customer-dialogue" | "dsl-hub" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-sad" | "sms" | "support" | "user-admin" | "vcard" | "voicemail" | "battery" | "bluetooth" | "broadband" | "broken-phone" | "cast" | "cloud-connect" | "connected" | "core-router" | "daas-device" | "data-transfer" | "desktop" | "devices" | "esim-simcard" | "esim" | "face-id" | "fiber" | "fingerprint" | "fiveg" | "fourg" | "home-installation" | "industrial-iot" | "internet" | "it-service" | "laptop" | "mobile-broadband" | "network" | "phone-recycling" | "phone-ringing" | "phone" | "rack" | "refill-card" | "remote-control" | "repair" | "roaming" | "router" | "secure-device" | "sense-car" | "server" | "service-device" | "service-supervision" | "slow-wifi" | "smart-wifi" | "smartphone" | "smartwatch" | "tablet" | "trade-phone" | "tv" | "usb" | "voice-switch" | "wallplug" | "wireless-off" | "wireless-weak" | "wireless" | "world-alert" | "world-off" | "world-question" | "bar-chart" | "doc" | "document-doc" | "document-edit" | "document-pdf" | "document-ppt" | "excel" | "folder-copy" | "folder-new" | "folder" | "gif" | "graph" | "media-content" | "org-chart" | "pie-chart" | "print" | "register" | "report" | "simcard" | "spell-check" | "credit-card" | "euro" | "invoice" | "kontantkort" | "kr" | "late-payment" | "money-back-euro" | "money-back-kr" | "money-euro" | "money-kr" | "pay-monthly-euro" | "pay-monthly-kr" | "pay-once-euro" | "pay-once-kr" | "payment-success" | "savings" | "wallet" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "activity-level" | "ai-robot" | "bag" | "basketball" | "blood-pressure" | "bulb" | "business-continuity" | "business-intelligence" | "calendar" | "cart" | "close-circle" | "cloud" | "coffee" | "compass" | "construction" | "cookie" | "delivery" | "drone" | "education" | "efficiency" | "environment" | "facemask" | "flag" | "food" | "fraud" | "getting-started" | "home-care" | "job-search" | "layers" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "press-button" | "price" | "pulse" | "recycle" | "reservation" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "smart-connect" | "snowflake" | "speedometer" | "spyware" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "youtube" | "alert-filled" | "check-circle-filled" | "check-circle" | "error-filled" | "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" | "grid-view" | "list-view" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "services" | "sorter" | "table-view";
|
|
7
|
+
size?: ("xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "font") | undefined;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -68,7 +68,7 @@ export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<R
|
|
|
68
68
|
backgroundImageSrc?: string | undefined;
|
|
69
69
|
imageGradient?: ("default" | "dark" | "light") | undefined;
|
|
70
70
|
layout?: import('../card/card').Layout | undefined;
|
|
71
|
-
} & React.RefAttributes<HTMLDivElement>, "ref">, "as" | "
|
|
71
|
+
} & React.RefAttributes<HTMLDivElement>, "ref">, "as" | "variant" | "layout"> & {
|
|
72
72
|
/**
|
|
73
73
|
* The variant of the notification.
|
|
74
74
|
*
|
|
@@ -12,6 +12,7 @@ const reactSlot = require("@radix-ui/react-slot");
|
|
|
12
12
|
const reactUseControllableState = require("@radix-ui/react-use-controllable-state");
|
|
13
13
|
const utils_generateStyling_index = require("../../utils/generate-styling/index.cjs");
|
|
14
14
|
const tokens_motion_variables = require("../../tokens/motion/variables.cjs");
|
|
15
|
+
require("../channel-button/index.cjs");
|
|
15
16
|
require("../collapsible/index.cjs");
|
|
16
17
|
require("../meter-bar/index.cjs");
|
|
17
18
|
require("../skeleton/index.cjs");
|
|
@@ -156,11 +157,11 @@ const Root$2 = (props) => {
|
|
|
156
157
|
const scrollRef = React.useRef(null);
|
|
157
158
|
return /* @__PURE__ */ jsxRuntime.jsx(RootContext$1.Provider, { value: { imageRef, actionGroupRef, scrollRef }, children: /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Root, { ...props, modal: true }) });
|
|
158
159
|
};
|
|
159
|
-
Root$2.displayName = "
|
|
160
|
+
Root$2.displayName = "Modal.Root";
|
|
160
161
|
const Trigger$1 = React.forwardRef(
|
|
161
162
|
({ children, ...props }, forwardedRef) => /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Trigger, { ...props, ref: forwardedRef, asChild: true, children })
|
|
162
163
|
);
|
|
163
|
-
Trigger$1.displayName = "
|
|
164
|
+
Trigger$1.displayName = "Modal.Trigger";
|
|
164
165
|
const OverlayContext = React.createContext(false);
|
|
165
166
|
const Overlay = React.forwardRef(
|
|
166
167
|
({ className, forceMount, container, ...rest }, forwardedRef) => {
|
|
@@ -168,7 +169,7 @@ const Overlay = React.forwardRef(
|
|
|
168
169
|
return /* @__PURE__ */ jsxRuntime.jsx(OverlayContext.Provider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Portal, { container, forceMount, children: /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Overlay, { className: classes, ref: forwardedRef, ...rest }) }) });
|
|
169
170
|
}
|
|
170
171
|
);
|
|
171
|
-
Overlay.displayName = "
|
|
172
|
+
Overlay.displayName = "Modal.Content";
|
|
172
173
|
const InnerContent = React.forwardRef(
|
|
173
174
|
function InnerContent2({ asChild, children, className, ...props }, forwardedRef) {
|
|
174
175
|
const classes = clsx([styles$2[`${rootClassName$2}__scroll`]], className);
|
|
@@ -204,7 +205,7 @@ const Content$1 = React.forwardRef(
|
|
|
204
205
|
return /* @__PURE__ */ jsxRuntime.jsx(InnerContent, { ref: forwardedRef, ...contentProps });
|
|
205
206
|
}
|
|
206
207
|
);
|
|
207
|
-
Content$1.displayName = "
|
|
208
|
+
Content$1.displayName = "Modal.Content";
|
|
208
209
|
const GroupContext = React.createContext(false);
|
|
209
210
|
const Group = React.forwardRef(
|
|
210
211
|
({ className, variant, ...props }, forwardedRef) => {
|
|
@@ -241,7 +242,7 @@ const Group = React.forwardRef(
|
|
|
241
242
|
) });
|
|
242
243
|
}
|
|
243
244
|
);
|
|
244
|
-
Group.displayName = "
|
|
245
|
+
Group.displayName = "Modal.Group";
|
|
245
246
|
const TitleInner = React.forwardRef(
|
|
246
247
|
function TitleInner2(props, forwardedRef) {
|
|
247
248
|
return /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Title, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(components_heading_heading.Heading, { variant: "title-200", as: "h2", ...props, asChild: false, ref: forwardedRef }) });
|
|
@@ -254,16 +255,16 @@ const Title = React.forwardRef((props, forwardedRef) => {
|
|
|
254
255
|
}
|
|
255
256
|
return /* @__PURE__ */ jsxRuntime.jsx(TitleInner, { ...props, ref: forwardedRef });
|
|
256
257
|
});
|
|
257
|
-
Title.displayName = "
|
|
258
|
+
Title.displayName = "Modal.Title";
|
|
258
259
|
const Description = React.forwardRef((props, forwardedRef) => /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Description, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(components_text_text.Text, { as: "p", variant: "paragraph-100", ...props, asChild: false, ref: forwardedRef }) }));
|
|
259
|
-
Description.displayName = "
|
|
260
|
+
Description.displayName = "Modal.Description";
|
|
260
261
|
const Image = React.forwardRef(({ asChild, ...props }, forwardedRef) => {
|
|
261
262
|
const classes = clsx([styles$2[`${rootClassName$2}__image`]], props.className);
|
|
262
263
|
const context = React.useContext(RootContext$1);
|
|
263
264
|
const Comp = asChild ? reactSlot.Slot : "img";
|
|
264
265
|
return /* @__PURE__ */ jsxRuntime.jsx(Comp, { ...props, className: classes, ref: utils_composeRefs.composeRefs(context.imageRef, forwardedRef) });
|
|
265
266
|
});
|
|
266
|
-
Image.displayName = "
|
|
267
|
+
Image.displayName = "Modal.Image";
|
|
267
268
|
const Close = React.forwardRef(
|
|
268
269
|
({ className, ...props }, forwardedRef) => {
|
|
269
270
|
const classes = clsx([styles$2[`${rootClassName$2}__close`]], {
|
|
@@ -280,7 +281,7 @@ const Close = React.forwardRef(
|
|
|
280
281
|
return /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Close, { ...props, className: classes, ref: forwardedRef, asChild: true, children: props.children || /* @__PURE__ */ jsxRuntime.jsx(components_button_button.Button, { variant: hasImage ? "primary-negative" : "tertiary-purple", iconOnly: true, "aria-label": props["aria-label"], children: /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: "close" }) }) });
|
|
281
282
|
}
|
|
282
283
|
);
|
|
283
|
-
Close.displayName = "
|
|
284
|
+
Close.displayName = "Close";
|
|
284
285
|
const Modal = Object.assign(Root$2, { Trigger: Trigger$1, Content: Content$1, Title, Overlay, Description, Close, Image, Group });
|
|
285
286
|
const styles$1 = {
|
|
286
287
|
"teddy-navigation-menu": "_teddy-navigation-menu_6p30v_1",
|
|
@@ -10,6 +10,7 @@ import { Slot } from "@radix-ui/react-slot";
|
|
|
10
10
|
import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
|
11
11
|
import { mergeStyles } from "../../utils/generate-styling/index.js";
|
|
12
12
|
import { teddyMotionDuration300 } from "../../tokens/motion/variables.js";
|
|
13
|
+
import "../channel-button/index.js";
|
|
13
14
|
import "../collapsible/index.js";
|
|
14
15
|
import "../meter-bar/index.js";
|
|
15
16
|
import "../skeleton/index.js";
|
|
@@ -135,11 +136,11 @@ const Root$2 = (props) => {
|
|
|
135
136
|
const scrollRef = React__default.useRef(null);
|
|
136
137
|
return /* @__PURE__ */ jsx(RootContext$1.Provider, { value: { imageRef, actionGroupRef, scrollRef }, children: /* @__PURE__ */ jsx(DrawerPrimitive.Root, { ...props, modal: true }) });
|
|
137
138
|
};
|
|
138
|
-
Root$2.displayName = "
|
|
139
|
+
Root$2.displayName = "Modal.Root";
|
|
139
140
|
const Trigger$1 = React__default.forwardRef(
|
|
140
141
|
({ children, ...props }, forwardedRef) => /* @__PURE__ */ jsx(DrawerPrimitive.Trigger, { ...props, ref: forwardedRef, asChild: true, children })
|
|
141
142
|
);
|
|
142
|
-
Trigger$1.displayName = "
|
|
143
|
+
Trigger$1.displayName = "Modal.Trigger";
|
|
143
144
|
const OverlayContext = React__default.createContext(false);
|
|
144
145
|
const Overlay = React__default.forwardRef(
|
|
145
146
|
({ className, forceMount, container, ...rest }, forwardedRef) => {
|
|
@@ -147,7 +148,7 @@ const Overlay = React__default.forwardRef(
|
|
|
147
148
|
return /* @__PURE__ */ jsx(OverlayContext.Provider, { value: true, children: /* @__PURE__ */ jsx(DrawerPrimitive.Portal, { container, forceMount, children: /* @__PURE__ */ jsx(DrawerPrimitive.Overlay, { className: classes, ref: forwardedRef, ...rest }) }) });
|
|
148
149
|
}
|
|
149
150
|
);
|
|
150
|
-
Overlay.displayName = "
|
|
151
|
+
Overlay.displayName = "Modal.Content";
|
|
151
152
|
const InnerContent = React__default.forwardRef(
|
|
152
153
|
function InnerContent2({ asChild, children, className, ...props }, forwardedRef) {
|
|
153
154
|
const classes = clsx([styles$2[`${rootClassName$2}__scroll`]], className);
|
|
@@ -183,7 +184,7 @@ const Content$1 = React__default.forwardRef(
|
|
|
183
184
|
return /* @__PURE__ */ jsx(InnerContent, { ref: forwardedRef, ...contentProps });
|
|
184
185
|
}
|
|
185
186
|
);
|
|
186
|
-
Content$1.displayName = "
|
|
187
|
+
Content$1.displayName = "Modal.Content";
|
|
187
188
|
const GroupContext = React__default.createContext(false);
|
|
188
189
|
const Group = React__default.forwardRef(
|
|
189
190
|
({ className, variant, ...props }, forwardedRef) => {
|
|
@@ -220,7 +221,7 @@ const Group = React__default.forwardRef(
|
|
|
220
221
|
) });
|
|
221
222
|
}
|
|
222
223
|
);
|
|
223
|
-
Group.displayName = "
|
|
224
|
+
Group.displayName = "Modal.Group";
|
|
224
225
|
const TitleInner = React__default.forwardRef(
|
|
225
226
|
function TitleInner2(props, forwardedRef) {
|
|
226
227
|
return /* @__PURE__ */ jsx(DrawerPrimitive.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { variant: "title-200", as: "h2", ...props, asChild: false, ref: forwardedRef }) });
|
|
@@ -233,16 +234,16 @@ const Title = React__default.forwardRef((props, forwardedRef) => {
|
|
|
233
234
|
}
|
|
234
235
|
return /* @__PURE__ */ jsx(TitleInner, { ...props, ref: forwardedRef });
|
|
235
236
|
});
|
|
236
|
-
Title.displayName = "
|
|
237
|
+
Title.displayName = "Modal.Title";
|
|
237
238
|
const Description = React__default.forwardRef((props, forwardedRef) => /* @__PURE__ */ jsx(DrawerPrimitive.Description, { asChild: true, children: /* @__PURE__ */ jsx(Text, { as: "p", variant: "paragraph-100", ...props, asChild: false, ref: forwardedRef }) }));
|
|
238
|
-
Description.displayName = "
|
|
239
|
+
Description.displayName = "Modal.Description";
|
|
239
240
|
const Image = React__default.forwardRef(({ asChild, ...props }, forwardedRef) => {
|
|
240
241
|
const classes = clsx([styles$2[`${rootClassName$2}__image`]], props.className);
|
|
241
242
|
const context = React__default.useContext(RootContext$1);
|
|
242
243
|
const Comp = asChild ? Slot : "img";
|
|
243
244
|
return /* @__PURE__ */ jsx(Comp, { ...props, className: classes, ref: composeRefs(context.imageRef, forwardedRef) });
|
|
244
245
|
});
|
|
245
|
-
Image.displayName = "
|
|
246
|
+
Image.displayName = "Modal.Image";
|
|
246
247
|
const Close = React__default.forwardRef(
|
|
247
248
|
({ className, ...props }, forwardedRef) => {
|
|
248
249
|
const classes = clsx([styles$2[`${rootClassName$2}__close`]], {
|
|
@@ -259,7 +260,7 @@ const Close = React__default.forwardRef(
|
|
|
259
260
|
return /* @__PURE__ */ jsx(DrawerPrimitive.Close, { ...props, className: classes, ref: forwardedRef, asChild: true, children: props.children || /* @__PURE__ */ jsx(Button, { variant: hasImage ? "primary-negative" : "tertiary-purple", iconOnly: true, "aria-label": props["aria-label"], children: /* @__PURE__ */ jsx(Icon, { name: "close" }) }) });
|
|
260
261
|
}
|
|
261
262
|
);
|
|
262
|
-
Close.displayName = "
|
|
263
|
+
Close.displayName = "Close";
|
|
263
264
|
const Modal = Object.assign(Root$2, { Trigger: Trigger$1, Content: Content$1, Title, Overlay, Description, Close, Image, Group });
|
|
264
265
|
const styles$1 = {
|
|
265
266
|
"teddy-navigation-menu": "_teddy-navigation-menu_6p30v_1",
|
|
@@ -5,6 +5,7 @@ require("clsx");
|
|
|
5
5
|
require("react");
|
|
6
6
|
require("./radio-card-group-root.cjs");
|
|
7
7
|
require("@radix-ui/react-radio-group");
|
|
8
|
+
require("../channel-button/index.cjs");
|
|
8
9
|
require("../collapsible/index.cjs");
|
|
9
10
|
require("../meter-bar/index.cjs");
|
|
10
11
|
require("../skeleton/index.cjs");
|
|
@@ -19,7 +19,7 @@ export declare const ScrollArea: import('react').ForwardRefExoticComponent<Omit<
|
|
|
19
19
|
loading?: boolean | undefined;
|
|
20
20
|
fullWidth?: boolean | undefined;
|
|
21
21
|
size?: "sm" | "md" | "lg" | undefined;
|
|
22
|
-
variant?: "
|
|
22
|
+
variant?: "primary" | "text" | "list-item" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
23
23
|
borderStyle?: ("default" | "dashed") | undefined;
|
|
24
24
|
} & {
|
|
25
25
|
iconOnly: true;
|
|
@@ -31,7 +31,7 @@ export declare const ScrollArea: import('react').ForwardRefExoticComponent<Omit<
|
|
|
31
31
|
loading?: boolean | undefined;
|
|
32
32
|
fullWidth?: boolean | undefined;
|
|
33
33
|
size?: "sm" | "md" | "lg" | undefined;
|
|
34
|
-
variant?: "
|
|
34
|
+
variant?: "primary" | "text" | "list-item" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
35
35
|
borderStyle?: ("default" | "dashed") | undefined;
|
|
36
36
|
} & {
|
|
37
37
|
iconOnly?: false | undefined;
|
|
@@ -17,7 +17,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
17
17
|
loading?: boolean | undefined;
|
|
18
18
|
fullWidth?: boolean | undefined;
|
|
19
19
|
size?: "sm" | "md" | "lg" | undefined;
|
|
20
|
-
variant?: "
|
|
20
|
+
variant?: "primary" | "text" | "list-item" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
21
21
|
borderStyle?: ("default" | "dashed") | undefined;
|
|
22
22
|
} & {
|
|
23
23
|
iconOnly: true;
|
|
@@ -29,7 +29,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
29
29
|
loading?: boolean | undefined;
|
|
30
30
|
fullWidth?: boolean | undefined;
|
|
31
31
|
size?: "sm" | "md" | "lg" | undefined;
|
|
32
|
-
variant?: "
|
|
32
|
+
variant?: "primary" | "text" | "list-item" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
33
33
|
borderStyle?: ("default" | "dashed") | undefined;
|
|
34
34
|
} & {
|
|
35
35
|
iconOnly?: false | undefined;
|