@telia/teddy 0.0.25 → 0.0.27
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/assets/{sprite.5636ec8e-teddy.svg → sprite.269ba410-teddy.svg} +3 -0
- package/dist/components/accordion/accordion-indicator.cjs +14 -3
- package/dist/components/accordion/accordion-indicator.js +15 -4
- package/dist/components/accordion/accordion-item.cjs +6 -1
- package/dist/components/accordion/accordion-item.d.ts +3 -0
- package/dist/components/accordion/accordion-item.js +8 -3
- package/dist/components/accordion/accordion-root.cjs +40 -13
- package/dist/components/accordion/accordion-root.d.ts +9 -5
- package/dist/components/accordion/accordion-root.js +40 -13
- package/dist/components/badge/alert-badge.cjs +19 -0
- package/dist/components/badge/alert-badge.d.ts +10 -0
- package/dist/components/badge/alert-badge.js +19 -0
- package/dist/components/badge/badge.cjs +13 -9
- package/dist/components/badge/badge.d.ts +2 -1
- package/dist/components/badge/badge.js +14 -10
- package/dist/components/badge/counter-badge.cjs +19 -0
- package/dist/components/badge/counter-badge.d.ts +10 -0
- package/dist/components/badge/counter-badge.js +19 -0
- package/dist/components/badge/index.cjs +4 -0
- package/dist/components/badge/index.d.ts +4 -0
- package/dist/components/badge/index.js +5 -1
- package/dist/components/button/button.cjs +27 -25
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/button/button.js +27 -25
- package/dist/components/card/card.d.ts +7 -3
- package/dist/components/chip/chip-indicator.cjs +1 -1
- package/dist/components/chip/chip-indicator.d.ts +2 -2
- package/dist/components/chip/chip-indicator.js +1 -1
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/drawer/drawer-close.cjs +2 -2
- package/dist/components/drawer/drawer-close.d.ts +0 -3
- package/dist/components/drawer/drawer-close.js +2 -2
- package/dist/components/drawer/drawer-content.cjs +3 -2
- package/dist/components/drawer/drawer-content.d.ts +3 -12
- package/dist/components/drawer/drawer-content.js +3 -2
- package/dist/components/drawer/drawer-description.cjs +1 -1
- package/dist/components/drawer/drawer-description.d.ts +0 -3
- package/dist/components/drawer/drawer-description.js +1 -1
- package/dist/components/drawer/drawer-footer.cjs +1 -1
- package/dist/components/drawer/drawer-footer.d.ts +0 -3
- package/dist/components/drawer/drawer-footer.js +1 -1
- package/dist/components/drawer/drawer-overlay.cjs +1 -1
- package/dist/components/drawer/drawer-overlay.d.ts +0 -3
- package/dist/components/drawer/drawer-overlay.js +1 -1
- package/dist/components/drawer/drawer-root.d.ts +1 -1
- package/dist/components/drawer/drawer-title.cjs +1 -1
- package/dist/components/drawer/drawer-title.d.ts +4 -3
- package/dist/components/drawer/drawer-title.js +1 -1
- package/dist/components/drawer/drawer-trigger.d.ts +5 -3
- package/dist/components/drawer/index.cjs +8 -0
- package/dist/components/drawer/index.d.ts +28 -0
- package/dist/components/drawer/index.js +8 -0
- package/dist/components/field-error-text/field-error-text.cjs +1 -1
- package/dist/components/field-error-text/field-error-text.js +1 -1
- package/dist/components/flex/flex.cjs +1 -1
- package/dist/components/flex/flex.js +1 -1
- package/dist/components/icon/icon.cjs +3 -3
- package/dist/components/icon/icon.js +3 -3
- package/dist/components/icon/index.cjs +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/index.cjs +7 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +7 -1
- package/dist/components/input/input-clear-button.cjs +1 -1
- package/dist/components/input/input-clear-button.js +1 -1
- package/dist/components/input/input-group.cjs +11 -11
- package/dist/components/input/input-group.js +11 -11
- package/dist/components/input/input-indicator.cjs +1 -1
- package/dist/components/input/input-indicator.js +1 -1
- package/dist/components/list/index.cjs +16 -0
- package/dist/components/list/index.d.ts +47 -0
- package/dist/components/list/index.js +16 -0
- package/dist/components/list/list-content.cjs +14 -0
- package/dist/components/list/list-content.d.ts +4 -0
- package/dist/components/list/list-content.js +14 -0
- package/dist/components/list/list-illustration.cjs +23 -0
- package/dist/components/list/list-illustration.d.ts +9 -0
- package/dist/components/list/list-illustration.js +23 -0
- package/dist/components/list/list-item.cjs +12 -0
- package/dist/components/list/list-item.d.ts +4 -0
- package/dist/components/list/list-item.js +12 -0
- package/dist/components/list/list.cjs +52 -0
- package/dist/components/list/list.d.ts +43 -0
- package/dist/components/list/list.js +52 -0
- package/dist/components/modal/modal.cjs +19 -15
- package/dist/components/modal/modal.js +19 -15
- package/dist/components/navigation-menu/navigation-menu.cjs +24 -22
- package/dist/components/navigation-menu/navigation-menu.d.ts +3 -1
- package/dist/components/navigation-menu/navigation-menu.js +24 -22
- package/dist/components/notification/notification.cjs +1 -1
- package/dist/components/notification/notification.d.ts +11 -5
- package/dist/components/notification/notification.js +1 -1
- package/dist/components/scroll-area/index.d.ts +6 -2
- package/dist/components/scroll-area/scroll-area-bar.cjs +19 -13
- package/dist/components/scroll-area/scroll-area-bar.js +19 -13
- package/dist/components/scroll-area/scroll-area-button.cjs +1 -1
- package/dist/components/scroll-area/scroll-area-button.d.ts +6 -2
- package/dist/components/scroll-area/scroll-area-button.js +1 -1
- package/dist/components/tabs/index.cjs +6 -0
- package/dist/components/tabs/index.d.ts +7 -3
- package/dist/components/tabs/index.js +6 -0
- package/dist/components/tabs/tabs-root.cjs +5 -4
- package/dist/components/tabs/tabs-root.d.ts +1 -1
- package/dist/components/tabs/tabs-root.js +5 -4
- package/dist/components/tabs/tabs-scroll-button.d.ts +6 -2
- package/dist/components/tabs/tabs-trigger.cjs +2 -1
- package/dist/components/tabs/tabs-trigger.js +2 -1
- package/dist/components/text-field/index.d.ts +6 -2
- package/dist/components/text-field/text-field-button.d.ts +6 -2
- package/dist/components/toggle/toggle.cjs +5 -5
- package/dist/components/toggle/toggle.d.ts +2 -2
- package/dist/components/toggle/toggle.js +5 -5
- package/dist/drawer.module-BZV0Appw.js +14 -0
- package/dist/drawer.module-rgUBNOkt.cjs +13 -0
- package/dist/icons/category.cjs +1 -0
- package/dist/icons/category.d.ts +3 -0
- package/dist/icons/category.js +1 -0
- package/dist/icons/name.cjs +1 -0
- package/dist/icons/name.d.ts +1 -1
- package/dist/icons/name.js +1 -0
- package/dist/main.cjs +7 -1
- package/dist/main.js +7 -1
- package/dist/style.css +568 -397
- package/dist/utils/generate-styling/grid.d.ts +24 -24
- package/dist/utils/generate-styling/index.cjs +12 -2
- package/dist/utils/generate-styling/index.d.ts +86 -19
- package/dist/utils/generate-styling/index.js +12 -2
- package/dist/utils/generate-styling/util.d.ts +2 -2
- package/package.json +1 -1
- package/dist/drawer.module-B3QhrxH1.js +0 -14
- package/dist/drawer.module-w9nGK9pO.cjs +0 -13
|
@@ -4,32 +4,33 @@ import { clsx } from "clsx";
|
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { Spinner } from "../spinner/spinner.js";
|
|
6
6
|
import { extractProps } from "../../utils/generate-styling/index.js";
|
|
7
|
-
const fadeInAnimation = "
|
|
8
|
-
const scaleInAnimation = "
|
|
7
|
+
const fadeInAnimation = "_fadeInAnimation_aswkh_1";
|
|
8
|
+
const scaleInAnimation = "_scaleInAnimation_aswkh_1";
|
|
9
9
|
const styles = {
|
|
10
|
-
"teddy-button": "_teddy-
|
|
11
|
-
"teddy-button--sm": "_teddy-button--
|
|
12
|
-
"teddy-button--icon-only": "_teddy-button--icon-
|
|
13
|
-
"teddy-button--md": "_teddy-button--
|
|
14
|
-
"teddy-button--lg": "_teddy-button--
|
|
15
|
-
"teddy-button--full-width": "_teddy-button--full-
|
|
16
|
-
"teddy-button--primary": "_teddy-button--
|
|
17
|
-
"teddy-button--disabled": "_teddy-button--
|
|
18
|
-
"teddy-button--primary-negative": "_teddy-button--primary-
|
|
19
|
-
"teddy-button--secondary": "_teddy-button--
|
|
20
|
-
"teddy-button--secondary-negative": "_teddy-button--secondary-
|
|
21
|
-
"teddy-button--expressive": "_teddy-button--
|
|
22
|
-
"teddy-button--expressive-negative": "_teddy-button--expressive-
|
|
23
|
-
"teddy-button--negative": "_teddy-button--
|
|
24
|
-
"teddy-button--destructive": "_teddy-button--
|
|
25
|
-
"teddy-button--destructive-negative": "_teddy-button--destructive-
|
|
26
|
-
"teddy-button--tertiary-purple": "_teddy-button--tertiary-
|
|
27
|
-
"teddy-button--tertiary-purple-negative": "_teddy-button--tertiary-purple-
|
|
28
|
-
"teddy-button--
|
|
29
|
-
"teddy-button--text": "_teddy-button--
|
|
30
|
-
"teddy-
|
|
10
|
+
"teddy-button": "_teddy-button_aswkh_18",
|
|
11
|
+
"teddy-button--sm": "_teddy-button--sm_aswkh_53",
|
|
12
|
+
"teddy-button--icon-only": "_teddy-button--icon-only_aswkh_56",
|
|
13
|
+
"teddy-button--md": "_teddy-button--md_aswkh_59",
|
|
14
|
+
"teddy-button--lg": "_teddy-button--lg_aswkh_65",
|
|
15
|
+
"teddy-button--full-width": "_teddy-button--full-width_aswkh_71",
|
|
16
|
+
"teddy-button--primary": "_teddy-button--primary_aswkh_74",
|
|
17
|
+
"teddy-button--disabled": "_teddy-button--disabled_aswkh_78",
|
|
18
|
+
"teddy-button--primary-negative": "_teddy-button--primary-negative_aswkh_84",
|
|
19
|
+
"teddy-button--secondary": "_teddy-button--secondary_aswkh_96",
|
|
20
|
+
"teddy-button--secondary-negative": "_teddy-button--secondary-negative_aswkh_107",
|
|
21
|
+
"teddy-button--expressive": "_teddy-button--expressive_aswkh_118",
|
|
22
|
+
"teddy-button--expressive-negative": "_teddy-button--expressive-negative_aswkh_128",
|
|
23
|
+
"teddy-button--negative": "_teddy-button--negative_aswkh_140",
|
|
24
|
+
"teddy-button--destructive": "_teddy-button--destructive_aswkh_147",
|
|
25
|
+
"teddy-button--destructive-negative": "_teddy-button--destructive-negative_aswkh_157",
|
|
26
|
+
"teddy-button--tertiary-purple": "_teddy-button--tertiary-purple_aswkh_167",
|
|
27
|
+
"teddy-button--tertiary-purple-negative": "_teddy-button--tertiary-purple-negative_aswkh_180",
|
|
28
|
+
"teddy-button--list-item": "_teddy-button--list-item_aswkh_195",
|
|
29
|
+
"teddy-button--text-negative": "_teddy-button--text-negative_aswkh_214",
|
|
30
|
+
"teddy-button--text": "_teddy-button--text_aswkh_214",
|
|
31
|
+
"teddy-button__loading": "_teddy-button__loading_aswkh_261",
|
|
31
32
|
fadeInAnimation,
|
|
32
|
-
"teddy-button__spinner": "_teddy-
|
|
33
|
+
"teddy-button__spinner": "_teddy-button__spinner_aswkh_272",
|
|
33
34
|
scaleInAnimation
|
|
34
35
|
};
|
|
35
36
|
const rootClassName = "teddy-button";
|
|
@@ -45,7 +46,8 @@ const variants = [
|
|
|
45
46
|
"destructive-negative",
|
|
46
47
|
"tertiary-purple-negative",
|
|
47
48
|
"text-negative",
|
|
48
|
-
"expressive-negative"
|
|
49
|
+
"expressive-negative",
|
|
50
|
+
"list-item"
|
|
49
51
|
];
|
|
50
52
|
const Root = React.forwardRef((args, ref) => {
|
|
51
53
|
const {
|
|
@@ -58,23 +58,27 @@ declare const Card: React.ForwardRefExoticComponent<RootProps & React.RefAttribu
|
|
|
58
58
|
Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
59
59
|
Illustration: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
60
60
|
/** The inset allows make the image bleed out to the edges */
|
|
61
|
-
inset?: "
|
|
61
|
+
inset?: "top" | "bottom" | "left" | "right" | "all" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-right-left" | "bottom-left-right" | "top-bottom" | "left-right" | undefined;
|
|
62
62
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
63
63
|
Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "aria-label"> & 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/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 & {
|
|
64
|
+
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
65
|
+
} & {
|
|
64
66
|
asChild?: boolean | undefined;
|
|
65
67
|
loading?: boolean | undefined;
|
|
66
68
|
fullWidth?: boolean | undefined;
|
|
67
69
|
size?: "sm" | "md" | "lg" | undefined;
|
|
68
|
-
variant?: "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
70
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
69
71
|
} & {
|
|
70
72
|
iconOnly: true;
|
|
71
73
|
"aria-label": string;
|
|
72
74
|
} & React.RefAttributes<HTMLButtonElement>, "ref"> | Omit<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "aria-label"> & 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/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 & {
|
|
75
|
+
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
76
|
+
} & {
|
|
73
77
|
asChild?: boolean | undefined;
|
|
74
78
|
loading?: boolean | undefined;
|
|
75
79
|
fullWidth?: boolean | undefined;
|
|
76
80
|
size?: "sm" | "md" | "lg" | undefined;
|
|
77
|
-
variant?: "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
81
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
78
82
|
} & {
|
|
79
83
|
iconOnly?: false | undefined;
|
|
80
84
|
"aria-label"?: string | undefined;
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const components_chip_chip = require("./chip.cjs");
|
|
7
|
-
require("../../assets/sprite.
|
|
7
|
+
require("../../assets/sprite.269ba410-teddy.svg");
|
|
8
8
|
const components_icon_icon = require("../icon/icon.cjs");
|
|
9
9
|
const Indicator = React.forwardRef(
|
|
10
10
|
({ className, ...props }, forwardRef) => {
|
|
@@ -3,7 +3,7 @@ import { Icon } from '../icon';
|
|
|
3
3
|
|
|
4
4
|
export type IndicatorProps = Partial<React.ComponentPropsWithoutRef<typeof Icon>>;
|
|
5
5
|
export declare const Indicator: React.ForwardRefExoticComponent<Partial<Omit<React.SVGProps<SVGSVGElement> & {
|
|
6
|
-
name: "
|
|
7
|
-
size?: ("
|
|
6
|
+
name: "key" | "search" | "split" | "link" | "add" | "reverse" | "infinite" | "radio" | "visible" | "copy" | "help" | "zoom-out" | "filter" | "x" | "zoom" | "menu" | "map" | "summary" | "time" | "video" | "image" | "stop" | "download" | "alert" | "email" | "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" | "play" | "remove-filled" | "remove" | "save" | "send" | "settings" | "share" | "shortcut" | "shuffle" | "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" | "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" | "focus" | "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" | "present" | "press-button" | "price" | "pulse" | "recycle" | "reservation" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "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" | "alert-filled" | "check-circle-filled" | "check-circle" | "error-filled" | "error" | "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?: ("sm" | "md" | "lg" | "xl" | "font" | "xxs" | "xs") | undefined;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { s as styles, rootClassName } from "./chip.js";
|
|
5
|
-
import "../../assets/sprite.
|
|
5
|
+
import "../../assets/sprite.269ba410-teddy.svg";
|
|
6
6
|
import { Icon } from "../icon/icon.js";
|
|
7
7
|
const Indicator = React__default.forwardRef(
|
|
8
8
|
({ className, ...props }, forwardRef) => {
|
|
@@ -5,8 +5,8 @@ import { ItemProps } from './chip-item';
|
|
|
5
5
|
export declare const Chip: import('react').ForwardRefExoticComponent<RootProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
6
6
|
Item: import('react').ForwardRefExoticComponent<ItemProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
7
7
|
Indicator: import('react').ForwardRefExoticComponent<Partial<Omit<import('react').SVGProps<SVGSVGElement> & {
|
|
8
|
-
name: "
|
|
9
|
-
size?: ("
|
|
8
|
+
name: "key" | "search" | "split" | "link" | "add" | "reverse" | "infinite" | "radio" | "visible" | "copy" | "help" | "zoom-out" | "filter" | "x" | "zoom" | "menu" | "map" | "summary" | "time" | "video" | "image" | "stop" | "download" | "alert" | "email" | "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" | "play" | "remove-filled" | "remove" | "save" | "send" | "settings" | "share" | "shortcut" | "shuffle" | "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" | "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" | "focus" | "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" | "present" | "press-button" | "price" | "pulse" | "recycle" | "reservation" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "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" | "alert-filled" | "check-circle-filled" | "check-circle" | "error-filled" | "error" | "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";
|
|
9
|
+
size?: ("sm" | "md" | "lg" | "xl" | "font" | "xxs" | "xs") | undefined;
|
|
10
10
|
children?: import('react').ReactNode;
|
|
11
11
|
}, "ref">> & import('react').RefAttributes<SVGSVGElement>>;
|
|
12
12
|
};
|
|
@@ -4,9 +4,9 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const DrawerPrimitive = require("@radix-ui/react-dialog");
|
|
7
|
-
const drawer_module = require("../../drawer.module-
|
|
7
|
+
const drawer_module = require("../../drawer.module-rgUBNOkt.cjs");
|
|
8
8
|
const components_drawer_drawerRoot = require("./drawer-root.cjs");
|
|
9
|
-
require("../../assets/sprite.
|
|
9
|
+
require("../../assets/sprite.269ba410-teddy.svg");
|
|
10
10
|
const components_icon_icon = require("../icon/icon.cjs");
|
|
11
11
|
const components_button_button = require("../button/button.cjs");
|
|
12
12
|
function _interopNamespaceDefault(e) {
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
3
|
import * as DrawerPrimitive from '@radix-ui/react-dialog';
|
|
4
|
-
/** -------------------------------------------------------------------------------------------------
|
|
5
|
-
* Close
|
|
6
|
-
* -----------------------------------------------------------------------------------------------*/
|
|
7
4
|
export type CloseProps = Omit<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Close>, 'asChild' | 'children'> & ({
|
|
8
5
|
children: React.ReactElement;
|
|
9
6
|
slot: 'content';
|
|
@@ -2,9 +2,9 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import * as DrawerPrimitive from "@radix-ui/react-dialog";
|
|
5
|
-
import { s as styles } from "../../drawer.module-
|
|
5
|
+
import { s as styles } from "../../drawer.module-BZV0Appw.js";
|
|
6
6
|
import { rootClassName } from "./drawer-root.js";
|
|
7
|
-
import "../../assets/sprite.
|
|
7
|
+
import "../../assets/sprite.269ba410-teddy.svg";
|
|
8
8
|
import { Icon } from "../icon/icon.js";
|
|
9
9
|
import { Button } from "../button/button.js";
|
|
10
10
|
const Close = React__default.forwardRef(
|
|
@@ -4,9 +4,10 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const DrawerPrimitive = require("@radix-ui/react-dialog");
|
|
7
|
-
const drawer_module = require("../../drawer.module-
|
|
7
|
+
const drawer_module = require("../../drawer.module-rgUBNOkt.cjs");
|
|
8
8
|
const components_drawer_drawerRoot = require("./drawer-root.cjs");
|
|
9
9
|
const components_drawer_drawerOverlay = require("./drawer-overlay.cjs");
|
|
10
|
+
const components_flex_flex = require("../flex/flex.cjs");
|
|
10
11
|
function _interopNamespaceDefault(e) {
|
|
11
12
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
12
13
|
if (e) {
|
|
@@ -27,7 +28,7 @@ const DrawerPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(Draw
|
|
|
27
28
|
const InnerContent = React.forwardRef(
|
|
28
29
|
function InnerContent2({ children, className, ...props }, forwardedRef) {
|
|
29
30
|
const classes = clsx([drawer_module.styles[`${components_drawer_drawerRoot.rootClassName}__content`]], className);
|
|
30
|
-
return /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Content, { ...props, ref: forwardedRef, className: classes, children });
|
|
31
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Content, { ...props, ref: forwardedRef, className: classes, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { children }) });
|
|
31
32
|
}
|
|
32
33
|
);
|
|
33
34
|
const Content = React.forwardRef(
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { Flex } from '../flex';
|
|
2
3
|
|
|
3
4
|
import * as DrawerPrimitive from '@radix-ui/react-dialog';
|
|
4
|
-
/** -------------------------------------------------------------------------------------------------
|
|
5
|
-
* Content
|
|
6
|
-
* -----------------------------------------------------------------------------------------------*/
|
|
7
5
|
export type ContentProps = Omit<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>, 'forceMount' | 'onOpenAutoFocus' | 'onCloseAutoFocus' | 'onEscapeKeyDown' | 'onPointerDownOutside' | 'onInteractOutside'> & {
|
|
8
6
|
forceMount?: DrawerPrimitive.DialogContentProps['forceMount'];
|
|
9
7
|
onOpenAutoFocus?: DrawerPrimitive.DialogContentProps['onOpenAutoFocus'];
|
|
@@ -11,12 +9,5 @@ export type ContentProps = Omit<React.ComponentPropsWithoutRef<typeof DrawerPrim
|
|
|
11
9
|
onEscapeKeyDown?: DrawerPrimitive.DialogContentProps['onEscapeKeyDown'];
|
|
12
10
|
onPointerDownOutside?: DrawerPrimitive.DialogContentProps['onPointerDownOutside'];
|
|
13
11
|
onInteractOutside?: DrawerPrimitive.DialogContentProps['onInteractOutside'];
|
|
14
|
-
}
|
|
15
|
-
export declare const Content: React.ForwardRefExoticComponent<
|
|
16
|
-
forceMount?: DrawerPrimitive.DialogContentProps['forceMount'];
|
|
17
|
-
onOpenAutoFocus?: DrawerPrimitive.DialogContentProps['onOpenAutoFocus'];
|
|
18
|
-
onCloseAutoFocus?: DrawerPrimitive.DialogContentProps['onCloseAutoFocus'];
|
|
19
|
-
onEscapeKeyDown?: DrawerPrimitive.DialogContentProps['onEscapeKeyDown'];
|
|
20
|
-
onPointerDownOutside?: DrawerPrimitive.DialogContentProps['onPointerDownOutside'];
|
|
21
|
-
onInteractOutside?: DrawerPrimitive.DialogContentProps['onInteractOutside'];
|
|
22
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
} & React.ComponentPropsWithoutRef<typeof Flex>;
|
|
13
|
+
export declare const Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -2,13 +2,14 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import * as DrawerPrimitive from "@radix-ui/react-dialog";
|
|
5
|
-
import { s as styles } from "../../drawer.module-
|
|
5
|
+
import { s as styles } from "../../drawer.module-BZV0Appw.js";
|
|
6
6
|
import { rootClassName } from "./drawer-root.js";
|
|
7
7
|
import { OverlayContext, Overlay } from "./drawer-overlay.js";
|
|
8
|
+
import { Flex } from "../flex/flex.js";
|
|
8
9
|
const InnerContent = React__default.forwardRef(
|
|
9
10
|
function InnerContent2({ children, className, ...props }, forwardedRef) {
|
|
10
11
|
const classes = clsx([styles[`${rootClassName}__content`]], className);
|
|
11
|
-
return /* @__PURE__ */ jsx(DrawerPrimitive.Content, { ...props, ref: forwardedRef, className: classes, children });
|
|
12
|
+
return /* @__PURE__ */ jsx(DrawerPrimitive.Content, { ...props, ref: forwardedRef, className: classes, asChild: true, children: /* @__PURE__ */ jsx(Flex, { children }) });
|
|
12
13
|
}
|
|
13
14
|
);
|
|
14
15
|
const Content = React__default.forwardRef(
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const DrawerPrimitive = require("@radix-ui/react-dialog");
|
|
7
|
-
const drawer_module = require("../../drawer.module-
|
|
7
|
+
const drawer_module = require("../../drawer.module-rgUBNOkt.cjs");
|
|
8
8
|
const components_drawer_drawerRoot = require("./drawer-root.cjs");
|
|
9
9
|
const components_text_text = require("../text/text.cjs");
|
|
10
10
|
function _interopNamespaceDefault(e) {
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
3
|
import * as DrawerPrimitive from '@radix-ui/react-dialog';
|
|
4
|
-
/** -------------------------------------------------------------------------------------------------
|
|
5
|
-
* Description
|
|
6
|
-
* -----------------------------------------------------------------------------------------------*/
|
|
7
4
|
export declare const DescriptionContext: React.Context<boolean>;
|
|
8
5
|
export type DescriptionProps = React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description>;
|
|
9
6
|
export declare const Description: React.ForwardRefExoticComponent<Omit<DrawerPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import * as DrawerPrimitive from "@radix-ui/react-dialog";
|
|
5
|
-
import { s as styles } from "../../drawer.module-
|
|
5
|
+
import { s as styles } from "../../drawer.module-BZV0Appw.js";
|
|
6
6
|
import { rootClassName } from "./drawer-root.js";
|
|
7
7
|
import { Text } from "../text/text.js";
|
|
8
8
|
const DescriptionContext = React__default.createContext(false);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
|
-
const drawer_module = require("../../drawer.module-
|
|
6
|
+
const drawer_module = require("../../drawer.module-rgUBNOkt.cjs");
|
|
7
7
|
const components_drawer_drawerRoot = require("./drawer-root.cjs");
|
|
8
8
|
const components_flex_flex = require("../flex/flex.cjs");
|
|
9
9
|
const Footer = React.forwardRef(
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { Flex } from '../flex';
|
|
3
3
|
|
|
4
|
-
/** -------------------------------------------------------------------------------------------------
|
|
5
|
-
* Footer
|
|
6
|
-
* -----------------------------------------------------------------------------------------------*/
|
|
7
4
|
export type FooterProps = React.ComponentPropsWithoutRef<typeof Flex>;
|
|
8
5
|
export declare const Footer: React.ForwardRefExoticComponent<FooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import { s as styles } from "../../drawer.module-
|
|
4
|
+
import { s as styles } from "../../drawer.module-BZV0Appw.js";
|
|
5
5
|
import { rootClassName } from "./drawer-root.js";
|
|
6
6
|
import { Flex } from "../flex/flex.js";
|
|
7
7
|
const Footer = React__default.forwardRef(
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const DrawerPrimitive = require("@radix-ui/react-dialog");
|
|
7
|
-
const drawer_module = require("../../drawer.module-
|
|
7
|
+
const drawer_module = require("../../drawer.module-rgUBNOkt.cjs");
|
|
8
8
|
const components_drawer_drawerRoot = require("./drawer-root.cjs");
|
|
9
9
|
function _interopNamespaceDefault(e) {
|
|
10
10
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
3
|
import * as DrawerPrimitive from '@radix-ui/react-dialog';
|
|
4
|
-
/** -------------------------------------------------------------------------------------------------
|
|
5
|
-
* Overlay
|
|
6
|
-
* -----------------------------------------------------------------------------------------------*/
|
|
7
4
|
export declare const OverlayContext: React.Context<boolean>;
|
|
8
5
|
export type OverlayProps = React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay> & {
|
|
9
6
|
container?: React.ComponentProps<typeof DrawerPrimitive.Portal>['container'];
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import * as DrawerPrimitive from "@radix-ui/react-dialog";
|
|
5
|
-
import { s as styles } from "../../drawer.module-
|
|
5
|
+
import { s as styles } from "../../drawer.module-BZV0Appw.js";
|
|
6
6
|
import { rootClassName } from "./drawer-root.js";
|
|
7
7
|
const OverlayContext = React__default.createContext(false);
|
|
8
8
|
const Overlay = React__default.forwardRef(
|
|
@@ -20,7 +20,7 @@ export type RootProps = Omit<React.ComponentPropsWithoutRef<typeof DrawerPrimiti
|
|
|
20
20
|
*/
|
|
21
21
|
modal?: DrawerPrimitive.DialogProps['modal'];
|
|
22
22
|
};
|
|
23
|
-
export declare function Root(props: RootProps):
|
|
23
|
+
export declare function Root(props: RootProps): JSX.Element;
|
|
24
24
|
export declare namespace Root {
|
|
25
25
|
var displayName: string;
|
|
26
26
|
}
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const DrawerPrimitive = require("@radix-ui/react-dialog");
|
|
7
|
-
const drawer_module = require("../../drawer.module-
|
|
7
|
+
const drawer_module = require("../../drawer.module-rgUBNOkt.cjs");
|
|
8
8
|
const components_drawer_drawerRoot = require("./drawer-root.cjs");
|
|
9
9
|
const components_heading_heading = require("../heading/heading.cjs");
|
|
10
10
|
function _interopNamespaceDefault(e) {
|
|
@@ -2,8 +2,9 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { Heading } from '../heading';
|
|
3
3
|
|
|
4
4
|
import * as DrawerPrimitive from '@radix-ui/react-dialog';
|
|
5
|
-
/** -------------------------------------------------------------------------------------------------
|
|
6
|
-
* Title
|
|
7
|
-
* -----------------------------------------------------------------------------------------------*/
|
|
8
5
|
export type TitleProps = React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title> & React.ComponentPropsWithoutRef<typeof Heading>;
|
|
6
|
+
/**
|
|
7
|
+
* The title of the drawer.
|
|
8
|
+
* The tag is an `h2` by default, but can be changed with the `as` prop.
|
|
9
|
+
*/
|
|
9
10
|
export declare const Title: React.ForwardRefExoticComponent<TitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import * as DrawerPrimitive from "@radix-ui/react-dialog";
|
|
5
|
-
import { s as styles } from "../../drawer.module-
|
|
5
|
+
import { s as styles } from "../../drawer.module-BZV0Appw.js";
|
|
6
6
|
import { rootClassName } from "./drawer-root.js";
|
|
7
7
|
import { Heading } from "../heading/heading.js";
|
|
8
8
|
const Title = React__default.forwardRef(
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
3
|
import * as DrawerPrimitive from '@radix-ui/react-dialog';
|
|
4
|
-
/** -------------------------------------------------------------------------------------------------
|
|
5
|
-
* Trigger
|
|
6
|
-
* -----------------------------------------------------------------------------------------------*/
|
|
7
4
|
export type TriggerProps = Omit<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Trigger>, 'asChild' | 'children'> & {
|
|
8
5
|
children: React.ReactElement;
|
|
9
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* The trigger for the drawer.
|
|
9
|
+
* The children of this component will be used as the trigger.
|
|
10
|
+
* Normally a plain `<button>`.
|
|
11
|
+
*/
|
|
10
12
|
export declare const Trigger: React.ForwardRefExoticComponent<Omit<Omit<DrawerPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref">, "children" | "asChild"> & {
|
|
11
13
|
children: React.ReactElement;
|
|
12
14
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -8,6 +8,14 @@ const components_drawer_drawerOverlay = require("./drawer-overlay.cjs");
|
|
|
8
8
|
const components_drawer_drawerRoot = require("./drawer-root.cjs");
|
|
9
9
|
const components_drawer_drawerTitle = require("./drawer-title.cjs");
|
|
10
10
|
const components_drawer_drawerTrigger = require("./drawer-trigger.cjs");
|
|
11
|
+
components_drawer_drawerClose.Close.displayName = "Drawer.Close";
|
|
12
|
+
components_drawer_drawerContent.Content.displayName = "Drawer.Content";
|
|
13
|
+
components_drawer_drawerDescription.Description.displayName = "Drawer.Description";
|
|
14
|
+
components_drawer_drawerFooter.Footer.displayName = "Drawer.Footer";
|
|
15
|
+
components_drawer_drawerOverlay.Overlay.displayName = "Drawer.Overlay";
|
|
16
|
+
components_drawer_drawerRoot.Root.displayName = "Drawer";
|
|
17
|
+
components_drawer_drawerTitle.Title.displayName = "Drawer.Title";
|
|
18
|
+
components_drawer_drawerTrigger.Trigger.displayName = "Drawer.Trigger";
|
|
11
19
|
const Drawer = Object.assign(components_drawer_drawerRoot.Root, {
|
|
12
20
|
Title: components_drawer_drawerTitle.Title,
|
|
13
21
|
Description: components_drawer_drawerDescription.Description,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Close, CloseProps } from './drawer-close';
|
|
2
|
+
import { Content, ContentProps } from './drawer-content';
|
|
3
|
+
import { Description, DescriptionProps } from './drawer-description';
|
|
4
|
+
import { Footer, FooterProps } from './drawer-footer';
|
|
5
|
+
import { Overlay, OverlayProps } from './drawer-overlay';
|
|
6
|
+
import { Root, RootProps } from './drawer-root';
|
|
7
|
+
import { Title, TitleProps } from './drawer-title';
|
|
8
|
+
import { Trigger, TriggerProps } from './drawer-trigger';
|
|
9
|
+
|
|
10
|
+
export declare const Drawer: typeof Root & {
|
|
11
|
+
Title: typeof Title;
|
|
12
|
+
Description: typeof Description;
|
|
13
|
+
Trigger: typeof Trigger;
|
|
14
|
+
Overlay: typeof Overlay;
|
|
15
|
+
Content: typeof Content;
|
|
16
|
+
Footer: typeof Footer;
|
|
17
|
+
Close: typeof Close;
|
|
18
|
+
};
|
|
19
|
+
export type DrawerProps = {
|
|
20
|
+
Root: RootProps;
|
|
21
|
+
Title: TitleProps;
|
|
22
|
+
Description: DescriptionProps;
|
|
23
|
+
Trigger: TriggerProps;
|
|
24
|
+
Overlay: OverlayProps;
|
|
25
|
+
Content: ContentProps;
|
|
26
|
+
Footer: FooterProps;
|
|
27
|
+
Close: CloseProps;
|
|
28
|
+
};
|
|
@@ -6,6 +6,14 @@ import { Overlay } from "./drawer-overlay.js";
|
|
|
6
6
|
import { Root } from "./drawer-root.js";
|
|
7
7
|
import { Title } from "./drawer-title.js";
|
|
8
8
|
import { Trigger } from "./drawer-trigger.js";
|
|
9
|
+
Close.displayName = "Drawer.Close";
|
|
10
|
+
Content.displayName = "Drawer.Content";
|
|
11
|
+
Description.displayName = "Drawer.Description";
|
|
12
|
+
Footer.displayName = "Drawer.Footer";
|
|
13
|
+
Overlay.displayName = "Drawer.Overlay";
|
|
14
|
+
Root.displayName = "Drawer";
|
|
15
|
+
Title.displayName = "Drawer.Title";
|
|
16
|
+
Trigger.displayName = "Drawer.Trigger";
|
|
9
17
|
const Drawer = Object.assign(Root, {
|
|
10
18
|
Title,
|
|
11
19
|
Description,
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const clsx = require("clsx");
|
|
5
5
|
const React = require("react");
|
|
6
|
-
require("../../assets/sprite.
|
|
6
|
+
require("../../assets/sprite.269ba410-teddy.svg");
|
|
7
7
|
const components_icon_icon = require("../icon/icon.cjs");
|
|
8
8
|
const components_text_text = require("../text/text.cjs");
|
|
9
9
|
const styles = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import React__default from "react";
|
|
4
|
-
import "../../assets/sprite.
|
|
4
|
+
import "../../assets/sprite.269ba410-teddy.svg";
|
|
5
5
|
import { Icon } from "../icon/icon.js";
|
|
6
6
|
import { Text } from "../text/text.js";
|
|
7
7
|
const styles = {
|
|
@@ -6,7 +6,7 @@ const clsx = require("clsx");
|
|
|
6
6
|
const reactSlot = require("@radix-ui/react-slot");
|
|
7
7
|
const utils_generateStyling_index = require("../../utils/generate-styling/index.cjs");
|
|
8
8
|
const styles = {
|
|
9
|
-
"teddy-flex": "_teddy-
|
|
9
|
+
"teddy-flex": "_teddy-flex_1ncy4_1"
|
|
10
10
|
};
|
|
11
11
|
const rootClassName = "teddy-flex";
|
|
12
12
|
const Flex = React.forwardRef((props, forwardRef) => {
|
|
@@ -4,7 +4,7 @@ import clsx from "clsx";
|
|
|
4
4
|
import { Slot } from "@radix-ui/react-slot";
|
|
5
5
|
import { extractProps } from "../../utils/generate-styling/index.js";
|
|
6
6
|
const styles = {
|
|
7
|
-
"teddy-flex": "_teddy-
|
|
7
|
+
"teddy-flex": "_teddy-flex_1ncy4_1"
|
|
8
8
|
};
|
|
9
9
|
const rootClassName = "teddy-flex";
|
|
10
10
|
const Flex = React__default.forwardRef((props, forwardRef) => {
|