@telia/teddy 0.7.51 → 0.7.53
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.d.ts +1 -1
- package/dist/components/avatar/index.d.ts +1 -1
- package/dist/components/breadcrumbs/breadcrumbs-link.d.ts +1 -1
- package/dist/components/breadcrumbs/index.d.ts +1 -1
- package/dist/components/card/card-link.d.ts +1 -1
- package/dist/components/channel-button/channel-button-root.d.ts +4 -4
- package/dist/components/channel-button/index.d.ts +4 -4
- package/dist/components/checkbox/checkbox-group.d.ts +1 -1
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox-card-group/checkbox-card-group-content.cjs +1 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-content.js +1 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-indicator.cjs +1 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-indicator.js +1 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-item-title.cjs +1 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-item-title.js +1 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-item.cjs +1 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-item.js +1 -0
- package/dist/components/chip/chip-indicator.d.ts +2 -2
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/dashboard-card/dashboard-card-avatar.d.ts +1 -1
- package/dist/components/dashed-button/dashed-button-root.d.ts +6 -6
- 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/flip-card/flip-card-trigger.d.ts +2 -2
- 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/modal/modal-close.cjs +1 -0
- package/dist/components/modal/modal-close.js +1 -0
- package/dist/components/navigation-menu/navigation-menu.cjs +1 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
- package/dist/components/navigation-menu/navigation-menu.js +1 -0
- 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.cjs +21 -15
- package/dist/components/notification/notification-root.d.ts +2 -2
- package/dist/components/notification/notification-root.js +21 -15
- 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 +1 -0
- package/dist/components/radio-card-group/radio-card-group-item-title.js +1 -0
- 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 +3 -3
- package/dist/components/scroll-area/scroll-area-button.d.ts +2 -2
- package/dist/components/step-by-step/index.cjs +19 -0
- package/dist/components/step-by-step/index.d.ts +30 -0
- package/dist/components/step-by-step/index.js +19 -0
- package/dist/components/step-by-step/step-by-step-content.cjs +23 -0
- package/dist/components/step-by-step/step-by-step-content.d.ts +8 -0
- package/dist/components/step-by-step/step-by-step-content.js +23 -0
- package/dist/components/step-by-step/step-by-step-description.cjs +17 -0
- package/dist/components/step-by-step/step-by-step-description.d.ts +33 -0
- package/dist/components/step-by-step/step-by-step-description.js +17 -0
- package/dist/components/step-by-step/step-by-step-icon.cjs +29 -0
- package/dist/components/step-by-step/step-by-step-icon.d.ts +24 -0
- package/dist/components/step-by-step/step-by-step-icon.js +29 -0
- package/dist/components/step-by-step/step-by-step-root.cjs +70 -0
- package/dist/components/step-by-step/step-by-step-root.d.ts +71 -0
- package/dist/components/step-by-step/step-by-step-root.js +70 -0
- package/dist/components/step-by-step/step-by-step-step.cjs +36 -0
- package/dist/components/step-by-step/step-by-step-step.d.ts +24 -0
- package/dist/components/step-by-step/step-by-step-step.js +36 -0
- package/dist/components/tabs/tabs-scroll-button.d.ts +2 -2
- package/dist/components/tabs/tabs-scroll.d.ts +1 -1
- package/dist/components/tabs/tabs-trigger.d.ts +1 -1
- 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 +1 -1
- package/dist/components/top-row-buttons/top-row-buttons.d.ts +1 -1
- package/dist/main.cjs +2 -0
- package/dist/main.js +2 -0
- package/dist/style.css +234 -16
- 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
|
@@ -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?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "text-underline" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
31
31
|
borderStyle?: ("dashed" | "default") | 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?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "text-underline" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
43
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?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "text-underline" | "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,7 +26,7 @@ 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?: "
|
|
29
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "text-underline" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
30
30
|
borderStyle?: ("dashed" | "default") | undefined;
|
|
31
31
|
} & {
|
|
32
32
|
iconOnly: true;
|
|
@@ -38,7 +38,7 @@ 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?: "
|
|
41
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "text-underline" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
42
42
|
borderStyle?: ("dashed" | "default") | undefined;
|
|
43
43
|
} & {
|
|
44
44
|
iconOnly?: false | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isIconName: (value: string | null) => value is "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "
|
|
1
|
+
export declare const isIconName: (value: string | null) => value is "link" | "map" | "menu" | "search" | "summary" | "time" | "video" | "filter" | "image" | "stop" | "key" | "split" | "alert" | "radio" | "email" | "copy" | "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "dislike" | "download" | "edit" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "play" | "remove-filled" | "remove" | "save" | "send" | "settings" | "share" | "shortcut" | "shuffle" | "sidepanel-hide" | "sidepanel-show" | "sync" | "skip-back-10sec" | "skip-back-30sec" | "skip-forward-10sec" | "skip-forward-30sec" | "star-filled" | "star" | "switch-arrows" | "tv-next" | "tv-pause" | "tv-previous" | "tv-stop" | "upload" | "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" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-neutral" | "smiley-sad" | "smiley-very-happy" | "smiley-very-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" | "AI-star" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "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" | "layers" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "recycle" | "reservation" | "reverse" | "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" | "youtube" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "x" | "alert-filled" | "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" | "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_stepByStep_index = require("./step-by-step/index.cjs");
|
|
3
4
|
const components_topRowButtons_topRowButtons = require("./top-row-buttons/top-row-buttons.cjs");
|
|
4
5
|
const components_dashedButton_dashedButtonRoot = require("./dashed-button/dashed-button-root.cjs");
|
|
5
6
|
const components_shoppingCart_index = require("./shopping-cart/index.cjs");
|
|
@@ -71,6 +72,7 @@ const components_shoppingCart_types = require("./shopping-cart/types.cjs");
|
|
|
71
72
|
const sonner = require("sonner");
|
|
72
73
|
const components_input_inputGroup = require("./input/input-group.cjs");
|
|
73
74
|
const components_textarea_textareaGroup = require("./textarea/textarea-group.cjs");
|
|
75
|
+
exports.StepByStep = components_stepByStep_index.StepByStep;
|
|
74
76
|
exports.TopRowButtons = components_topRowButtons_topRowButtons.TopRowButtons;
|
|
75
77
|
exports.DashedButton = components_dashedButton_dashedButtonRoot.DashedButton;
|
|
76
78
|
exports.ShoppingCart = components_shoppingCart_index.ShoppingCart;
|
package/dist/components/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { StepByStep } from "./step-by-step/index.js";
|
|
1
2
|
import { TopRowButtons } from "./top-row-buttons/top-row-buttons.js";
|
|
2
3
|
import { DashedButton } from "./dashed-button/dashed-button-root.js";
|
|
3
4
|
import { ShoppingCart } from "./shopping-cart/index.js";
|
|
@@ -128,6 +129,7 @@ export {
|
|
|
128
129
|
Skeleton,
|
|
129
130
|
Slider,
|
|
130
131
|
Spinner,
|
|
132
|
+
StepByStep,
|
|
131
133
|
StepIndicator,
|
|
132
134
|
Table,
|
|
133
135
|
Tabs,
|
|
@@ -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("../step-by-step/index.cjs");
|
|
6
7
|
require("../top-row-buttons/top-row-buttons.cjs");
|
|
7
8
|
require("../dashed-button/dashed-button-root.cjs");
|
|
8
9
|
require("../shopping-cart/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("../step-by-step/index.cjs");
|
|
15
16
|
require("../top-row-buttons/top-row-buttons.cjs");
|
|
16
17
|
require("../dashed-button/dashed-button-root.cjs");
|
|
17
18
|
require("../shopping-cart/index.cjs");
|
|
@@ -113,7 +113,7 @@ declare const NavigationMenu: React.ForwardRefExoticComponent<Omit<NavigationMen
|
|
|
113
113
|
variant?: "default" | "float" | undefined;
|
|
114
114
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
115
115
|
Link: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>, "ref"> & {
|
|
116
|
-
variant?: "
|
|
116
|
+
variant?: "button" | "small" | "default" | undefined;
|
|
117
117
|
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
118
118
|
Indicator: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
119
119
|
Viewport: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -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 "../step-by-step/index.js";
|
|
13
14
|
import "../top-row-buttons/top-row-buttons.js";
|
|
14
15
|
import "../dashed-button/dashed-button-root.js";
|
|
15
16
|
import "../shopping-cart/index.js";
|
|
@@ -3,8 +3,8 @@ 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: "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "
|
|
7
|
-
size?: ("
|
|
6
|
+
name: "link" | "map" | "menu" | "search" | "summary" | "time" | "video" | "filter" | "image" | "stop" | "key" | "split" | "alert" | "radio" | "email" | "copy" | "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "dislike" | "download" | "edit" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "play" | "remove-filled" | "remove" | "save" | "send" | "settings" | "share" | "shortcut" | "shuffle" | "sidepanel-hide" | "sidepanel-show" | "sync" | "skip-back-10sec" | "skip-back-30sec" | "skip-forward-10sec" | "skip-forward-30sec" | "star-filled" | "star" | "switch-arrows" | "tv-next" | "tv-pause" | "tv-previous" | "tv-stop" | "upload" | "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" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-neutral" | "smiley-sad" | "smiley-very-happy" | "smiley-very-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" | "AI-star" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "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" | "layers" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "recycle" | "reservation" | "reverse" | "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" | "youtube" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "x" | "alert-filled" | "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" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "services" | "sorter" | "table-view";
|
|
7
|
+
size?: ("xs" | "sm" | "md" | "lg" | "font" | "xxs" | "xl") | undefined;
|
|
8
8
|
title?: string | undefined;
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -99,7 +99,7 @@ declare const Notification: import('react').ForwardRefExoticComponent<Omit<Omit<
|
|
|
99
99
|
imageGradient?: ("none" | "dark" | "light" | "default") | undefined;
|
|
100
100
|
layout?: import('../card/card').Layout | undefined;
|
|
101
101
|
} & import('react').RefAttributes<HTMLDivElement>, "ref">, "variant" | "layout" | "as"> & {
|
|
102
|
-
variant?: "error" | "warning" | "beige" | "gray" | "teal" | "information" | "success" | undefined;
|
|
102
|
+
variant?: "error" | "warning" | "beige" | "gray" | "teal" | "information" | "success" | "light-purple" | undefined;
|
|
103
103
|
type?: "card" | "tile" | undefined;
|
|
104
104
|
open?: boolean | undefined;
|
|
105
105
|
defaultOpen?: boolean | undefined;
|
|
@@ -3,8 +3,8 @@ 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: "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "
|
|
7
|
-
size?: ("
|
|
6
|
+
name: "link" | "map" | "menu" | "search" | "summary" | "time" | "video" | "filter" | "image" | "stop" | "key" | "split" | "alert" | "radio" | "email" | "copy" | "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "dislike" | "download" | "edit" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "play" | "remove-filled" | "remove" | "save" | "send" | "settings" | "share" | "shortcut" | "shuffle" | "sidepanel-hide" | "sidepanel-show" | "sync" | "skip-back-10sec" | "skip-back-30sec" | "skip-forward-10sec" | "skip-forward-30sec" | "star-filled" | "star" | "switch-arrows" | "tv-next" | "tv-pause" | "tv-previous" | "tv-stop" | "upload" | "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" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-neutral" | "smiley-sad" | "smiley-very-happy" | "smiley-very-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" | "AI-star" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "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" | "layers" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "recycle" | "reservation" | "reverse" | "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" | "youtube" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "x" | "alert-filled" | "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" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "services" | "sorter" | "table-view";
|
|
7
|
+
size?: ("xs" | "sm" | "md" | "lg" | "font" | "xxs" | "xl") | undefined;
|
|
8
8
|
title?: string | undefined;
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -24,26 +24,32 @@ function _interopNamespaceDefault(e) {
|
|
|
24
24
|
}
|
|
25
25
|
const CollapsiblePrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(CollapsiblePrimitive);
|
|
26
26
|
const styles = {
|
|
27
|
-
"teddy-notification": "_teddy-
|
|
28
|
-
"teddy-notification--success": "_teddy-notification--
|
|
29
|
-
"teddy-notification--warning": "_teddy-notification--
|
|
30
|
-
"teddy-notification--error": "_teddy-notification--
|
|
31
|
-
"teddy-notification--information": "_teddy-notification--
|
|
32
|
-
"teddy-notification--beige": "_teddy-notification--
|
|
33
|
-
"teddy-notification--teal": "_teddy-notification--
|
|
34
|
-
"teddy-notification--gray": "_teddy-notification--
|
|
35
|
-
"teddy-notification--
|
|
36
|
-
"teddy-
|
|
37
|
-
"teddy-
|
|
38
|
-
"teddy-
|
|
39
|
-
"teddy-
|
|
40
|
-
"teddy-
|
|
27
|
+
"teddy-notification": "_teddy-notification_yr9vf_3",
|
|
28
|
+
"teddy-notification--success": "_teddy-notification--success_yr9vf_11",
|
|
29
|
+
"teddy-notification--warning": "_teddy-notification--warning_yr9vf_16",
|
|
30
|
+
"teddy-notification--error": "_teddy-notification--error_yr9vf_21",
|
|
31
|
+
"teddy-notification--information": "_teddy-notification--information_yr9vf_26",
|
|
32
|
+
"teddy-notification--beige": "_teddy-notification--beige_yr9vf_31",
|
|
33
|
+
"teddy-notification--teal": "_teddy-notification--teal_yr9vf_36",
|
|
34
|
+
"teddy-notification--gray": "_teddy-notification--gray_yr9vf_41",
|
|
35
|
+
"teddy-notification--light-purple": "_teddy-notification--light-purple_yr9vf_46",
|
|
36
|
+
"teddy-notification--tile": "_teddy-notification--tile_yr9vf_51",
|
|
37
|
+
"teddy-notification__text": "_teddy-notification__text_yr9vf_54",
|
|
38
|
+
"teddy-notification__dismiss": "_teddy-notification__dismiss_yr9vf_57",
|
|
39
|
+
"teddy-notification__heading": "_teddy-notification__heading_yr9vf_61",
|
|
40
|
+
"teddy-notification__footer": "_teddy-notification__footer_yr9vf_70",
|
|
41
|
+
"teddy-notification__icon": "_teddy-notification__icon_yr9vf_73"
|
|
41
42
|
};
|
|
42
43
|
const rootClassName = "teddy-notification";
|
|
43
44
|
const NotificationContext = React.createContext(void 0);
|
|
44
45
|
const Root = React.forwardRef(
|
|
45
46
|
({ className, open: openProp, defaultOpen, onOpenChange, variant, type, ...props }, forwardRef) => {
|
|
46
|
-
const classes = clsx(
|
|
47
|
+
const classes = clsx(
|
|
48
|
+
[styles[`${rootClassName}`]],
|
|
49
|
+
styles[`${rootClassName}--${variant}`],
|
|
50
|
+
styles[`${rootClassName}--${type}`],
|
|
51
|
+
className
|
|
52
|
+
);
|
|
47
53
|
const [open = true, setOpen] = reactUseControllableState.useControllableState({
|
|
48
54
|
prop: openProp,
|
|
49
55
|
defaultProp: defaultOpen,
|
|
@@ -7,7 +7,7 @@ export type RootProps = Omit<React.ComponentPropsWithoutRef<typeof Card>, 'varia
|
|
|
7
7
|
* The variant of the notification.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
variant?: 'success' | 'error' | 'warning' | 'information' | 'beige' | 'teal' | 'gray';
|
|
10
|
+
variant?: 'success' | 'error' | 'warning' | 'information' | 'beige' | 'teal' | 'gray' | 'light-purple';
|
|
11
11
|
/**
|
|
12
12
|
* The tyoe of the notification.
|
|
13
13
|
*
|
|
@@ -73,7 +73,7 @@ export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<R
|
|
|
73
73
|
* The variant of the notification.
|
|
74
74
|
*
|
|
75
75
|
*/
|
|
76
|
-
variant?: "error" | "warning" | "beige" | "gray" | "teal" | "information" | "success" | undefined;
|
|
76
|
+
variant?: "error" | "warning" | "beige" | "gray" | "teal" | "information" | "success" | "light-purple" | undefined;
|
|
77
77
|
/**
|
|
78
78
|
* The tyoe of the notification.
|
|
79
79
|
*
|
|
@@ -5,26 +5,32 @@ import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
|
5
5
|
import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
|
6
6
|
import { Card } from "../card/index.js";
|
|
7
7
|
const styles = {
|
|
8
|
-
"teddy-notification": "_teddy-
|
|
9
|
-
"teddy-notification--success": "_teddy-notification--
|
|
10
|
-
"teddy-notification--warning": "_teddy-notification--
|
|
11
|
-
"teddy-notification--error": "_teddy-notification--
|
|
12
|
-
"teddy-notification--information": "_teddy-notification--
|
|
13
|
-
"teddy-notification--beige": "_teddy-notification--
|
|
14
|
-
"teddy-notification--teal": "_teddy-notification--
|
|
15
|
-
"teddy-notification--gray": "_teddy-notification--
|
|
16
|
-
"teddy-notification--
|
|
17
|
-
"teddy-
|
|
18
|
-
"teddy-
|
|
19
|
-
"teddy-
|
|
20
|
-
"teddy-
|
|
21
|
-
"teddy-
|
|
8
|
+
"teddy-notification": "_teddy-notification_yr9vf_3",
|
|
9
|
+
"teddy-notification--success": "_teddy-notification--success_yr9vf_11",
|
|
10
|
+
"teddy-notification--warning": "_teddy-notification--warning_yr9vf_16",
|
|
11
|
+
"teddy-notification--error": "_teddy-notification--error_yr9vf_21",
|
|
12
|
+
"teddy-notification--information": "_teddy-notification--information_yr9vf_26",
|
|
13
|
+
"teddy-notification--beige": "_teddy-notification--beige_yr9vf_31",
|
|
14
|
+
"teddy-notification--teal": "_teddy-notification--teal_yr9vf_36",
|
|
15
|
+
"teddy-notification--gray": "_teddy-notification--gray_yr9vf_41",
|
|
16
|
+
"teddy-notification--light-purple": "_teddy-notification--light-purple_yr9vf_46",
|
|
17
|
+
"teddy-notification--tile": "_teddy-notification--tile_yr9vf_51",
|
|
18
|
+
"teddy-notification__text": "_teddy-notification__text_yr9vf_54",
|
|
19
|
+
"teddy-notification__dismiss": "_teddy-notification__dismiss_yr9vf_57",
|
|
20
|
+
"teddy-notification__heading": "_teddy-notification__heading_yr9vf_61",
|
|
21
|
+
"teddy-notification__footer": "_teddy-notification__footer_yr9vf_70",
|
|
22
|
+
"teddy-notification__icon": "_teddy-notification__icon_yr9vf_73"
|
|
22
23
|
};
|
|
23
24
|
const rootClassName = "teddy-notification";
|
|
24
25
|
const NotificationContext = React__default.createContext(void 0);
|
|
25
26
|
const Root = React__default.forwardRef(
|
|
26
27
|
({ className, open: openProp, defaultOpen, onOpenChange, variant, type, ...props }, forwardRef) => {
|
|
27
|
-
const classes = clsx(
|
|
28
|
+
const classes = clsx(
|
|
29
|
+
[styles[`${rootClassName}`]],
|
|
30
|
+
styles[`${rootClassName}--${variant}`],
|
|
31
|
+
styles[`${rootClassName}--${type}`],
|
|
32
|
+
className
|
|
33
|
+
);
|
|
28
34
|
const [open = true, setOpen] = useControllableState({
|
|
29
35
|
prop: openProp,
|
|
30
36
|
defaultProp: defaultOpen,
|
|
@@ -4,6 +4,7 @@ require("react/jsx-runtime");
|
|
|
4
4
|
require("clsx");
|
|
5
5
|
require("react");
|
|
6
6
|
require("./radio-card-group-root.cjs");
|
|
7
|
+
require("../step-by-step/index.cjs");
|
|
7
8
|
require("../top-row-buttons/top-row-buttons.cjs");
|
|
8
9
|
require("../dashed-button/dashed-button-root.cjs");
|
|
9
10
|
require("../shopping-cart/index.cjs");
|
|
@@ -2,6 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "clsx";
|
|
3
3
|
import "react";
|
|
4
4
|
import "./radio-card-group-root.js";
|
|
5
|
+
import "../step-by-step/index.js";
|
|
5
6
|
import "../top-row-buttons/top-row-buttons.js";
|
|
6
7
|
import "../dashed-button/dashed-button-root.js";
|
|
7
8
|
import "../shopping-cart/index.js";
|
|
@@ -5,6 +5,7 @@ require("clsx");
|
|
|
5
5
|
require("react");
|
|
6
6
|
require("./radio-card-group-root.cjs");
|
|
7
7
|
require("@radix-ui/react-slot");
|
|
8
|
+
require("../step-by-step/index.cjs");
|
|
8
9
|
require("../top-row-buttons/top-row-buttons.cjs");
|
|
9
10
|
require("../dashed-button/dashed-button-root.cjs");
|
|
10
11
|
require("../shopping-cart/index.cjs");
|
|
@@ -3,6 +3,7 @@ import "clsx";
|
|
|
3
3
|
import "react";
|
|
4
4
|
import "./radio-card-group-root.js";
|
|
5
5
|
import "@radix-ui/react-slot";
|
|
6
|
+
import "../step-by-step/index.js";
|
|
6
7
|
import "../top-row-buttons/top-row-buttons.js";
|
|
7
8
|
import "../dashed-button/dashed-button-root.js";
|
|
8
9
|
import "../shopping-cart/index.js";
|
|
@@ -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("../step-by-step/index.cjs");
|
|
8
9
|
require("../top-row-buttons/top-row-buttons.cjs");
|
|
9
10
|
require("../dashed-button/dashed-button-root.cjs");
|
|
10
11
|
require("../shopping-cart/index.cjs");
|
|
@@ -3,6 +3,7 @@ import "clsx";
|
|
|
3
3
|
import "react";
|
|
4
4
|
import "./radio-card-group-root.js";
|
|
5
5
|
import "@radix-ui/react-radio-group";
|
|
6
|
+
import "../step-by-step/index.js";
|
|
6
7
|
import "../top-row-buttons/top-row-buttons.js";
|
|
7
8
|
import "../dashed-button/dashed-button-root.js";
|
|
8
9
|
import "../shopping-cart/index.js";
|
|
@@ -3,7 +3,7 @@ import { ItemProps } from './scroll-area-item';
|
|
|
3
3
|
import { ButtonProps } from './scroll-area-button';
|
|
4
4
|
|
|
5
5
|
export declare const ScrollArea: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-scroll-area').ScrollAreaProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
6
|
-
variant?: ("button" | "
|
|
6
|
+
variant?: ("button" | "hidden" | "scrollbar") | undefined;
|
|
7
7
|
scrollBehavior?: "auto" | "smooth" | undefined;
|
|
8
8
|
viewPortClassName?: string | undefined;
|
|
9
9
|
barClassName?: string | undefined;
|
|
@@ -21,7 +21,7 @@ export declare const ScrollArea: import('react').ForwardRefExoticComponent<Omit<
|
|
|
21
21
|
loading?: boolean | undefined;
|
|
22
22
|
fullWidth?: boolean | undefined;
|
|
23
23
|
size?: "sm" | "md" | "lg" | undefined;
|
|
24
|
-
variant?: "
|
|
24
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "text-underline" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
25
25
|
borderStyle?: ("dashed" | "default") | undefined;
|
|
26
26
|
} & {
|
|
27
27
|
iconOnly: true;
|
|
@@ -33,7 +33,7 @@ export declare const ScrollArea: import('react').ForwardRefExoticComponent<Omit<
|
|
|
33
33
|
loading?: boolean | undefined;
|
|
34
34
|
fullWidth?: boolean | undefined;
|
|
35
35
|
size?: "sm" | "md" | "lg" | undefined;
|
|
36
|
-
variant?: "
|
|
36
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "text-underline" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
37
37
|
borderStyle?: ("dashed" | "default") | undefined;
|
|
38
38
|
} & {
|
|
39
39
|
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?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "text-underline" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
21
21
|
borderStyle?: ("dashed" | "default") | 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?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "text-underline" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
33
33
|
borderStyle?: ("dashed" | "default") | undefined;
|
|
34
34
|
} & {
|
|
35
35
|
iconOnly?: false | undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const components_stepByStep_stepByStepRoot = require("./step-by-step-root.cjs");
|
|
4
|
+
const components_stepByStep_stepByStepStep = require("./step-by-step-step.cjs");
|
|
5
|
+
const components_stepByStep_stepByStepIcon = require("./step-by-step-icon.cjs");
|
|
6
|
+
const components_stepByStep_stepByStepDescription = require("./step-by-step-description.cjs");
|
|
7
|
+
const components_stepByStep_stepByStepContent = require("./step-by-step-content.cjs");
|
|
8
|
+
components_stepByStep_stepByStepRoot.Root.displayName = "StepByStep";
|
|
9
|
+
components_stepByStep_stepByStepStep.Step.displayName = "StepByStep.Step";
|
|
10
|
+
components_stepByStep_stepByStepIcon.StepIcon.displayName = "StepByStep.Icon";
|
|
11
|
+
components_stepByStep_stepByStepDescription.Description.displayName = "StepByStep.Description";
|
|
12
|
+
components_stepByStep_stepByStepContent.Content.displayName = "StepByStep.Content";
|
|
13
|
+
const StepByStep = Object.assign(components_stepByStep_stepByStepRoot.Root, {
|
|
14
|
+
Step: components_stepByStep_stepByStepStep.Step,
|
|
15
|
+
Icon: components_stepByStep_stepByStepIcon.StepIcon,
|
|
16
|
+
Description: components_stepByStep_stepByStepDescription.Description,
|
|
17
|
+
Content: components_stepByStep_stepByStepContent.Content
|
|
18
|
+
});
|
|
19
|
+
exports.StepByStep = StepByStep;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { RootProps } from './step-by-step-root';
|
|
2
|
+
import { StepProps } from './step-by-step-step';
|
|
3
|
+
import { StepIcon, StepIconProps } from './step-by-step-icon';
|
|
4
|
+
import { Description, DescriptionProps } from './step-by-step-description';
|
|
5
|
+
import { ContentProps } from './step-by-step-content';
|
|
6
|
+
|
|
7
|
+
declare const StepByStep: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref">, "onSelect"> & {
|
|
8
|
+
interactive?: boolean | undefined;
|
|
9
|
+
selectedIndex?: number | undefined;
|
|
10
|
+
onSelect?: ((index: number) => void) | undefined;
|
|
11
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
12
|
+
borders?: "solid" | "dashed" | undefined;
|
|
13
|
+
standalone?: boolean | undefined;
|
|
14
|
+
} & import('react').RefAttributes<HTMLUListElement>> & {
|
|
15
|
+
Step: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
16
|
+
index?: number | undefined;
|
|
17
|
+
} & import('react').RefAttributes<HTMLLIElement>>;
|
|
18
|
+
Icon: typeof StepIcon;
|
|
19
|
+
Description: typeof Description;
|
|
20
|
+
Content: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
21
|
+
};
|
|
22
|
+
type StepByStepProps = {
|
|
23
|
+
Root: RootProps;
|
|
24
|
+
Step: StepProps;
|
|
25
|
+
Icon: StepIconProps;
|
|
26
|
+
Description: DescriptionProps;
|
|
27
|
+
Content: ContentProps;
|
|
28
|
+
};
|
|
29
|
+
export { StepByStep };
|
|
30
|
+
export type { StepByStepProps };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Root } from "./step-by-step-root.js";
|
|
2
|
+
import { Step } from "./step-by-step-step.js";
|
|
3
|
+
import { StepIcon } from "./step-by-step-icon.js";
|
|
4
|
+
import { Description } from "./step-by-step-description.js";
|
|
5
|
+
import { Content } from "./step-by-step-content.js";
|
|
6
|
+
Root.displayName = "StepByStep";
|
|
7
|
+
Step.displayName = "StepByStep.Step";
|
|
8
|
+
StepIcon.displayName = "StepByStep.Icon";
|
|
9
|
+
Description.displayName = "StepByStep.Description";
|
|
10
|
+
Content.displayName = "StepByStep.Content";
|
|
11
|
+
const StepByStep = Object.assign(Root, {
|
|
12
|
+
Step,
|
|
13
|
+
Icon: StepIcon,
|
|
14
|
+
Description,
|
|
15
|
+
Content
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
StepByStep
|
|
19
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
const components_stepByStep_stepByStepRoot = require("./step-by-step-root.cjs");
|
|
7
|
+
const components_stepByStep_stepByStepStep = require("./step-by-step-step.cjs");
|
|
8
|
+
const Content = React.forwardRef(
|
|
9
|
+
({ className, children, ...props }, forwardRef) => {
|
|
10
|
+
const { interactive, opened } = React.useContext(components_stepByStep_stepByStepStep.StepContext);
|
|
11
|
+
const classes = clsx(
|
|
12
|
+
components_stepByStep_stepByStepRoot.styles[`${components_stepByStep_stepByStepRoot.rootClassName}__content`],
|
|
13
|
+
{
|
|
14
|
+
[components_stepByStep_stepByStepRoot.styles[`${components_stepByStep_stepByStepRoot.rootClassName}__content--open`]]: interactive && opened,
|
|
15
|
+
[components_stepByStep_stepByStepRoot.styles[`${components_stepByStep_stepByStepRoot.rootClassName}__content--closed`]]: interactive && !opened
|
|
16
|
+
},
|
|
17
|
+
className
|
|
18
|
+
);
|
|
19
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ...props, ref: forwardRef, className: classes, children });
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
Content.displayName = "StepByStep.Content";
|
|
23
|
+
exports.Content = Content;
|