@telia/teddy 0.3.0 → 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 +4 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +3 -1
- package/dist/components/link/link.cjs +10 -10
- package/dist/components/link/link.js +10 -10
- package/dist/components/modal/modal.cjs +2 -1
- package/dist/components/modal/modal.js +2 -1
- package/dist/components/navigation-menu/navigation-menu.cjs +2 -1
- package/dist/components/navigation-menu/navigation-menu.js +2 -1
- package/dist/components/notabene/index.cjs +4 -9
- package/dist/components/notabene/index.d.ts +51 -8
- package/dist/components/notabene/index.js +4 -9
- package/dist/components/notabene/notabene-icon.cjs +1 -1
- package/dist/components/notabene/notabene-icon.d.ts +2 -2
- package/dist/components/notabene/notabene-icon.js +1 -1
- package/dist/components/notification/index.cjs +13 -2
- package/dist/components/notification/index.d.ts +132 -2
- package/dist/components/notification/index.js +12 -1
- package/dist/components/notification/notification-dismiss.cjs +46 -0
- package/dist/components/notification/notification-dismiss.d.ts +5 -0
- package/dist/components/notification/notification-dismiss.js +29 -0
- package/dist/components/notification/notification-footer.cjs +18 -0
- package/dist/components/notification/notification-footer.d.ts +5 -0
- package/dist/components/notification/notification-footer.js +18 -0
- package/dist/components/notification/notification-heading.cjs +18 -0
- package/dist/components/notification/notification-heading.d.ts +5 -0
- package/dist/components/notification/notification-heading.js +18 -0
- package/dist/components/notification/notification-icon.cjs +32 -0
- package/dist/components/notification/notification-icon.d.ts +9 -0
- package/dist/components/notification/notification-icon.js +32 -0
- package/dist/components/notification/notification-root.cjs +59 -0
- package/dist/components/notification/notification-root.d.ts +86 -0
- package/dist/components/notification/notification-root.js +42 -0
- package/dist/components/notification/notification-text.cjs +15 -0
- package/dist/components/notification/notification-text.d.ts +5 -0
- package/dist/components/notification/notification-text.js +15 -0
- package/dist/components/radio-card-group/radio-card-group-content.cjs +2 -1
- package/dist/components/radio-card-group/radio-card-group-content.js +2 -1
- package/dist/components/radio-card-group/radio-card-group-item-title.cjs +11 -10
- package/dist/components/radio-card-group/radio-card-group-item-title.js +11 -10
- package/dist/components/radio-card-group/radio-card-group-item.cjs +2 -1
- package/dist/components/radio-card-group/radio-card-group-item.js +2 -1
- 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 +4 -2
- package/dist/main.js +3 -1
- package/dist/style.css +1035 -948
- 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 +16 -16
- package/dist/components/notification/notification.cjs +0 -116
- package/dist/components/notification/notification.d.ts +0 -106
- package/dist/components/notification/notification.js +0 -99
|
@@ -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");
|
|
@@ -22,7 +23,7 @@ const components_image_image = require("./image/image.cjs");
|
|
|
22
23
|
const components_chip_index = require("./chip/index.cjs");
|
|
23
24
|
const components_datePicker_datePicker = require("./date-picker/date-picker.cjs");
|
|
24
25
|
const components_metricmeter_metricmeter = require("./metricmeter/metricmeter.cjs");
|
|
25
|
-
const
|
|
26
|
+
const components_notification_index = require("./notification/index.cjs");
|
|
26
27
|
const components_radioGroup_index = require("./radio-group/index.cjs");
|
|
27
28
|
const components_box_box = require("./box/box.cjs");
|
|
28
29
|
const components_flex_flex = require("./flex/flex.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;
|
|
@@ -80,7 +82,7 @@ exports.Image = components_image_image.Image;
|
|
|
80
82
|
exports.Chip = components_chip_index.Chip;
|
|
81
83
|
exports.DatePicker = components_datePicker_datePicker.DatePicker;
|
|
82
84
|
exports.MetricMeter = components_metricmeter_metricmeter.MetricMeter;
|
|
83
|
-
exports.Notification =
|
|
85
|
+
exports.Notification = components_notification_index.Notification;
|
|
84
86
|
exports.RadioGroup = components_radioGroup_index.RadioGroup;
|
|
85
87
|
exports.Box = components_box_box.Box;
|
|
86
88
|
exports.Flex = components_flex_flex.Flex;
|
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";
|
|
@@ -20,7 +21,7 @@ import { Image } from "./image/image.js";
|
|
|
20
21
|
import { Chip } from "./chip/index.js";
|
|
21
22
|
import { DatePicker } from "./date-picker/date-picker.js";
|
|
22
23
|
import { MetricMeter } from "./metricmeter/metricmeter.js";
|
|
23
|
-
import { Notification } from "./notification/
|
|
24
|
+
import { Notification } from "./notification/index.js";
|
|
24
25
|
import { RadioGroup } from "./radio-group/index.js";
|
|
25
26
|
import { Box } from "./box/box.js";
|
|
26
27
|
import { Flex } from "./flex/flex.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");
|
|
@@ -27,7 +28,7 @@ require("../chip/index.cjs");
|
|
|
27
28
|
require("../../assets/sprite.1321fab0-teddy.svg");
|
|
28
29
|
require("../icon/icon.cjs");
|
|
29
30
|
require("clsx");
|
|
30
|
-
require("../notification/
|
|
31
|
+
require("../notification/index.cjs");
|
|
31
32
|
require("../radio-group/index.cjs");
|
|
32
33
|
require("../box/box.cjs");
|
|
33
34
|
require("../flex/flex.cjs");
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "@radix-ui/react-dialog";
|
|
4
|
+
import "../channel-button/index.js";
|
|
4
5
|
import "../collapsible/index.js";
|
|
5
6
|
import "../meter-bar/index.js";
|
|
6
7
|
import "../skeleton/index.js";
|
|
@@ -25,7 +26,7 @@ import "../chip/index.js";
|
|
|
25
26
|
import "../../assets/sprite.1321fab0-teddy.svg";
|
|
26
27
|
import "../icon/icon.js";
|
|
27
28
|
import "clsx";
|
|
28
|
-
import "../notification/
|
|
29
|
+
import "../notification/index.js";
|
|
29
30
|
import "../radio-group/index.js";
|
|
30
31
|
import "../box/box.js";
|
|
31
32
|
import "../flex/flex.js";
|
|
@@ -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");
|
|
@@ -33,7 +34,7 @@ require("../drawer/index.cjs");
|
|
|
33
34
|
require("../image/image.cjs");
|
|
34
35
|
require("../chip/index.cjs");
|
|
35
36
|
require("../../assets/sprite.1321fab0-teddy.svg");
|
|
36
|
-
require("../notification/
|
|
37
|
+
require("../notification/index.cjs");
|
|
37
38
|
require("../radio-group/index.cjs");
|
|
38
39
|
require("../box/box.cjs");
|
|
39
40
|
require("../flex/flex.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";
|
|
@@ -31,7 +32,7 @@ import "../drawer/index.js";
|
|
|
31
32
|
import "../image/image.js";
|
|
32
33
|
import "../chip/index.js";
|
|
33
34
|
import "../../assets/sprite.1321fab0-teddy.svg";
|
|
34
|
-
import "../notification/
|
|
35
|
+
import "../notification/index.js";
|
|
35
36
|
import "../radio-group/index.js";
|
|
36
37
|
import "../box/box.js";
|
|
37
38
|
import "../flex/flex.js";
|
|
@@ -4,13 +4,8 @@ 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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const Notabene = Object.assign(components_notabene_notabeneRoot.Root, {
|
|
12
|
-
Content: components_notabene_notabene_content.Content,
|
|
13
|
-
Heading: components_notabene_notabeneHeading.Heading,
|
|
14
|
-
Icon: components_notabene_notabeneIcon.Icon
|
|
15
|
-
});
|
|
7
|
+
const Notabene = components_notabene_notabeneRoot.Root;
|
|
8
|
+
Notabene.Content = components_notabene_notabene_content.Content;
|
|
9
|
+
Notabene.Heading = components_notabene_notabeneHeading.Heading;
|
|
10
|
+
Notabene.Icon = components_notabene_notabeneIcon.Icon;
|
|
16
11
|
exports.Notabene = Notabene;
|
|
@@ -1,16 +1,59 @@
|
|
|
1
1
|
import { Content, ContentProps } from './notabene.content';
|
|
2
2
|
import { Heading, HeadingProps } from './notabene-heading';
|
|
3
3
|
import { Icon, IconProps } from './notabene-icon';
|
|
4
|
-
import {
|
|
4
|
+
import { RootProps } from './notabene-root';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Heading: typeof Heading;
|
|
9
|
-
Icon: typeof Icon;
|
|
10
|
-
};
|
|
11
|
-
export type NotabeneProps = {
|
|
6
|
+
type NotabeneProps = {
|
|
7
|
+
Root: RootProps;
|
|
12
8
|
Content: ContentProps;
|
|
13
9
|
Heading: HeadingProps;
|
|
14
10
|
Icon: IconProps;
|
|
15
|
-
Root: RootProps;
|
|
16
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* The Notabene Card is a component that is used to attract special attention to a message, where it would otherwise be lost in neighbouring content.
|
|
14
|
+
*
|
|
15
|
+
* @component
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* <Notabene>
|
|
19
|
+
* <Notabene.Icon name="bulb" />
|
|
20
|
+
* <Notabene.Content>
|
|
21
|
+
* <Notabene.Heading>Good to know!</Notabene.Heading>
|
|
22
|
+
* <Text mb="50">Lorem ipsum dolor sit amet consectetur adipisicing elit. Tenetur, provident!</Text>
|
|
23
|
+
* <Link variant="standalone" href="https://www.example.com" target="_blank">
|
|
24
|
+
* Do not click me <Icon name="arrow-right" />
|
|
25
|
+
* </Link>
|
|
26
|
+
* </Notabene.Content>
|
|
27
|
+
* </Notabene>
|
|
28
|
+
*/
|
|
29
|
+
declare const Notabene: import('react').ForwardRefExoticComponent<RootProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
30
|
+
/**
|
|
31
|
+
* Content component displays the detailed message.
|
|
32
|
+
*
|
|
33
|
+
* @component
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* <Notabene.Content>This is the detailed message of the notabene.</Notabene.Content>
|
|
37
|
+
*/
|
|
38
|
+
Content: typeof Content;
|
|
39
|
+
/**
|
|
40
|
+
* Heading component displays the title of the notabene.
|
|
41
|
+
*
|
|
42
|
+
* @component
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* <Notabene.Heading as="h3">Notabene Title</Notabene.Heading>
|
|
46
|
+
*/
|
|
47
|
+
Heading: typeof Heading;
|
|
48
|
+
/**
|
|
49
|
+
* Icon component displays an icon in the notabene.
|
|
50
|
+
*
|
|
51
|
+
* @component
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* <Notabene.Icon name="info" />
|
|
55
|
+
*/
|
|
56
|
+
Icon: typeof Icon;
|
|
57
|
+
};
|
|
58
|
+
export { Notabene };
|
|
59
|
+
export type { NotabeneProps };
|
|
@@ -2,15 +2,10 @@ import { Content } from "./notabene.content.js";
|
|
|
2
2
|
import { Heading } from "./notabene-heading.js";
|
|
3
3
|
import { Icon } from "./notabene-icon.js";
|
|
4
4
|
import { Root } from "./notabene-root.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const Notabene = Object.assign(Root, {
|
|
10
|
-
Content,
|
|
11
|
-
Heading,
|
|
12
|
-
Icon
|
|
13
|
-
});
|
|
5
|
+
const Notabene = Root;
|
|
6
|
+
Notabene.Content = Content;
|
|
7
|
+
Notabene.Heading = Heading;
|
|
8
|
+
Notabene.Icon = Icon;
|
|
14
9
|
export {
|
|
15
10
|
Notabene
|
|
16
11
|
};
|
|
@@ -14,5 +14,5 @@ const Icon = React.forwardRef(
|
|
|
14
14
|
return /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { size: "lg", ...props, name, ref: forwardRef, className: classes });
|
|
15
15
|
}
|
|
16
16
|
);
|
|
17
|
-
Icon.displayName = "
|
|
17
|
+
Icon.displayName = "Icon";
|
|
18
18
|
exports.Icon = Icon;
|
|
@@ -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>>;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
|
|
3
|
+
const components_notification_notificationDismiss = require("./notification-dismiss.cjs");
|
|
4
|
+
const components_notification_notificationHeading = require("./notification-heading.cjs");
|
|
5
|
+
const components_notification_notificationIcon = require("./notification-icon.cjs");
|
|
6
|
+
const components_notification_notificationRoot = require("./notification-root.cjs");
|
|
7
|
+
const components_notification_notificationText = require("./notification-text.cjs");
|
|
8
|
+
const components_notification_notificationFooter = require("./notification-footer.cjs");
|
|
9
|
+
const Notification = components_notification_notificationRoot.Root;
|
|
10
|
+
Notification.Text = components_notification_notificationText.Text;
|
|
11
|
+
Notification.Heading = components_notification_notificationHeading.Heading;
|
|
12
|
+
Notification.Footer = components_notification_notificationFooter.Footer;
|
|
13
|
+
Notification.Icon = components_notification_notificationIcon.Icon;
|
|
14
|
+
Notification.Dismiss = components_notification_notificationDismiss.Dismiss;
|
|
15
|
+
exports.Notification = Notification;
|
|
@@ -1,2 +1,132 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { Dismiss, DismissProps } from './notification-dismiss';
|
|
2
|
+
import { Heading, HeadingProps } from './notification-heading';
|
|
3
|
+
import { Icon, IconProps } from './notification-icon';
|
|
4
|
+
import { RootProps } from './notification-root';
|
|
5
|
+
import { TextProps, Text } from './notification-text';
|
|
6
|
+
import { FooterProps, Footer } from './notification-footer';
|
|
7
|
+
|
|
8
|
+
type NotificationProps = {
|
|
9
|
+
Root: RootProps;
|
|
10
|
+
Text: TextProps;
|
|
11
|
+
Heading: HeadingProps;
|
|
12
|
+
Footer: FooterProps;
|
|
13
|
+
Icon: IconProps;
|
|
14
|
+
Dismiss: DismissProps;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Notifications are messages that communicate information or feedback to the user.
|
|
18
|
+
*
|
|
19
|
+
* @component
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* <Notification variant="success">
|
|
23
|
+
* <Notification.Dismiss />
|
|
24
|
+
* <Notification.Heading as="h3">
|
|
25
|
+
* <Notification.Icon /> Notification Title</Notification.Heading>
|
|
26
|
+
* <Notification.Text>This is the detailed message of the notification.</Notification.Text>
|
|
27
|
+
* </Notification>
|
|
28
|
+
*/
|
|
29
|
+
declare const Notification: import('react').ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('../../utils/generate-styling/flex').FlexChildren & import('../../utils/generate-styling/grid').GridChildren & import('../../utils/generate-styling/position').PositionProps & import('../../utils/generate-styling/inset').InsetProps & import('../../utils/generate-styling/radius').RadiusProps & import('../../utils/generate-styling/margin').MarginProps & import('../../utils/generate-styling/padding').PaddingProps & import('../../utils/generate-styling/width').WidthProps & import('../../utils/generate-styling/height').HeightProps & import('../../utils/generate-styling/color').ColorProps & {
|
|
30
|
+
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
31
|
+
} & import('../../utils/generate-styling/gap').GapProps & {
|
|
32
|
+
align?: import('../../utils/generate-styling/align').Align | undefined;
|
|
33
|
+
justify?: import('../../utils/generate-styling/justify').Justify | undefined;
|
|
34
|
+
} & import('../../utils/generate-styling/grid').GridLayout & {
|
|
35
|
+
asChild: true;
|
|
36
|
+
as?: undefined;
|
|
37
|
+
} & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
38
|
+
asChild?: boolean | undefined;
|
|
39
|
+
variant?: "beige" | "gray" | "white" | "purple-light" | "purple-dark" | "beige-light" | undefined;
|
|
40
|
+
bordered?: boolean | undefined;
|
|
41
|
+
shadow?: boolean | undefined;
|
|
42
|
+
backgroundImageSrc?: string | undefined;
|
|
43
|
+
imageGradient?: ("default" | "dark" | "light") | undefined;
|
|
44
|
+
layout?: import('../card/card').Layout | undefined;
|
|
45
|
+
} & import('react').RefAttributes<HTMLDivElement>, "ref"> | Omit<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('../../utils/generate-styling/flex').FlexChildren & import('../../utils/generate-styling/grid').GridChildren & import('../../utils/generate-styling/position').PositionProps & import('../../utils/generate-styling/inset').InsetProps & import('../../utils/generate-styling/radius').RadiusProps & import('../../utils/generate-styling/margin').MarginProps & import('../../utils/generate-styling/padding').PaddingProps & import('../../utils/generate-styling/width').WidthProps & import('../../utils/generate-styling/height').HeightProps & import('../../utils/generate-styling/color').ColorProps & {
|
|
46
|
+
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
47
|
+
} & import('../../utils/generate-styling/gap').GapProps & {
|
|
48
|
+
align?: import('../../utils/generate-styling/align').Align | undefined;
|
|
49
|
+
justify?: import('../../utils/generate-styling/justify').Justify | undefined;
|
|
50
|
+
} & import('../../utils/generate-styling/grid').GridLayout & {
|
|
51
|
+
as?: "span" | undefined;
|
|
52
|
+
asChild?: false | undefined;
|
|
53
|
+
} & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
54
|
+
asChild?: boolean | undefined;
|
|
55
|
+
variant?: "beige" | "gray" | "white" | "purple-light" | "purple-dark" | "beige-light" | undefined;
|
|
56
|
+
bordered?: boolean | undefined;
|
|
57
|
+
shadow?: boolean | undefined;
|
|
58
|
+
backgroundImageSrc?: string | undefined;
|
|
59
|
+
imageGradient?: ("default" | "dark" | "light") | undefined;
|
|
60
|
+
layout?: import('../card/card').Layout | undefined;
|
|
61
|
+
} & import('react').RefAttributes<HTMLDivElement>, "ref"> | Omit<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('../../utils/generate-styling/flex').FlexChildren & import('../../utils/generate-styling/grid').GridChildren & import('../../utils/generate-styling/position').PositionProps & import('../../utils/generate-styling/inset').InsetProps & import('../../utils/generate-styling/radius').RadiusProps & import('../../utils/generate-styling/margin').MarginProps & import('../../utils/generate-styling/padding').PaddingProps & import('../../utils/generate-styling/width').WidthProps & import('../../utils/generate-styling/height').HeightProps & import('../../utils/generate-styling/color').ColorProps & {
|
|
62
|
+
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
63
|
+
} & import('../../utils/generate-styling/gap').GapProps & {
|
|
64
|
+
align?: import('../../utils/generate-styling/align').Align | undefined;
|
|
65
|
+
justify?: import('../../utils/generate-styling/justify').Justify | undefined;
|
|
66
|
+
} & import('../../utils/generate-styling/grid').GridLayout & {
|
|
67
|
+
as: "div";
|
|
68
|
+
asChild?: false | undefined;
|
|
69
|
+
} & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
70
|
+
asChild?: boolean | undefined;
|
|
71
|
+
variant?: "beige" | "gray" | "white" | "purple-light" | "purple-dark" | "beige-light" | undefined;
|
|
72
|
+
bordered?: boolean | undefined;
|
|
73
|
+
shadow?: boolean | undefined;
|
|
74
|
+
backgroundImageSrc?: string | undefined;
|
|
75
|
+
imageGradient?: ("default" | "dark" | "light") | undefined;
|
|
76
|
+
layout?: import('../card/card').Layout | undefined;
|
|
77
|
+
} & import('react').RefAttributes<HTMLDivElement>, "ref">, "as" | "variant" | "layout"> & {
|
|
78
|
+
variant?: "beige" | "gray" | "teal" | "error" | "warning" | "information" | "success" | undefined;
|
|
79
|
+
type?: "card" | "tile" | undefined;
|
|
80
|
+
open?: boolean | undefined;
|
|
81
|
+
defaultOpen?: boolean | undefined;
|
|
82
|
+
onOpenChange?: ((open: boolean) => void) | undefined;
|
|
83
|
+
role?: "alert" | undefined;
|
|
84
|
+
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
85
|
+
/**
|
|
86
|
+
* Text component displays the detailed message.
|
|
87
|
+
*
|
|
88
|
+
* @component
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* <Notification.Text>This is the detailed message of the notification.</Notification.Text>
|
|
92
|
+
*/
|
|
93
|
+
Text: typeof Text;
|
|
94
|
+
/**
|
|
95
|
+
* Heading component displays the title of the notification.
|
|
96
|
+
*
|
|
97
|
+
* @component
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* <Notification.Heading as="h3">Notification Title</Notification.Heading>
|
|
101
|
+
*/
|
|
102
|
+
Heading: typeof Heading;
|
|
103
|
+
/**
|
|
104
|
+
* Footer component displays the footer of the notification.
|
|
105
|
+
*
|
|
106
|
+
* @component
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* <Notification.Footer">Notification Footer</Notification.Footer>
|
|
110
|
+
*/
|
|
111
|
+
Footer: typeof Footer;
|
|
112
|
+
/**
|
|
113
|
+
* Icon component displays an icon in the notification. The icon is automatically determined based on the variant, but can be overridden.
|
|
114
|
+
*
|
|
115
|
+
* @component
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* <Notification.Icon name="info" />
|
|
119
|
+
*/
|
|
120
|
+
Icon: typeof Icon;
|
|
121
|
+
/**
|
|
122
|
+
* Dismiss component provides a button to dismiss the notification.
|
|
123
|
+
*
|
|
124
|
+
* @component
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* <Notification.Dismiss />
|
|
128
|
+
*/
|
|
129
|
+
Dismiss: typeof Dismiss;
|
|
130
|
+
};
|
|
131
|
+
export { Notification };
|
|
132
|
+
export type { NotificationProps };
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dismiss } from "./notification-dismiss.js";
|
|
2
|
+
import { Heading } from "./notification-heading.js";
|
|
3
|
+
import { Icon } from "./notification-icon.js";
|
|
4
|
+
import { Root } from "./notification-root.js";
|
|
5
|
+
import { Text } from "./notification-text.js";
|
|
6
|
+
import { Footer } from "./notification-footer.js";
|
|
7
|
+
const Notification = Root;
|
|
8
|
+
Notification.Text = Text;
|
|
9
|
+
Notification.Heading = Heading;
|
|
10
|
+
Notification.Footer = Footer;
|
|
11
|
+
Notification.Icon = Icon;
|
|
12
|
+
Notification.Dismiss = Dismiss;
|
|
2
13
|
export {
|
|
3
14
|
Notification
|
|
4
15
|
};
|