@telia/teddy 0.0.21 → 0.0.22
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/accordion/accordion-content.d.ts +5 -0
- package/dist/components/accordion/accordion-content.js +15 -0
- package/dist/components/accordion/accordion-header.d.ts +6 -0
- package/dist/components/accordion/accordion-header.js +16 -0
- package/dist/components/accordion/accordion-indicator.d.ts +5 -0
- package/dist/components/accordion/accordion-indicator.js +16 -0
- package/dist/components/accordion/accordion-item.d.ts +8 -0
- package/dist/components/accordion/accordion-item.js +15 -0
- package/dist/components/accordion/accordion-root.d.ts +15 -0
- package/dist/components/accordion/accordion-root.js +39 -0
- package/dist/components/accordion/accordion-title.d.ts +7 -0
- package/dist/components/accordion/accordion-title.js +15 -0
- package/dist/components/accordion/accordion-trigger.d.ts +12 -0
- package/dist/components/accordion/accordion-trigger.js +20 -0
- package/dist/components/accordion/index.d.ts +29 -2
- package/dist/components/accordion/index.js +15 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/chip/chip-indicator.d.ts +2 -2
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/drawer/drawer-close.d.ts +15 -0
- package/dist/components/drawer/drawer-close.js +22 -0
- package/dist/components/drawer/drawer-content.d.ts +22 -0
- package/dist/components/drawer/drawer-content.js +25 -0
- package/dist/components/drawer/drawer-description.d.ts +9 -0
- package/dist/components/drawer/drawer-description.js +19 -0
- package/dist/components/drawer/drawer-footer.d.ts +8 -0
- package/dist/components/drawer/drawer-footer.js +16 -0
- package/dist/components/drawer/drawer-overlay.d.ts +13 -0
- package/dist/components/drawer/drawer-overlay.js +26 -0
- package/dist/components/drawer/drawer-root.d.ts +29 -0
- package/dist/components/drawer/drawer-root.js +11 -0
- package/dist/components/drawer/drawer-title.d.ts +9 -0
- package/dist/components/drawer/drawer-title.js +17 -0
- package/dist/components/drawer/drawer-trigger.d.ts +12 -0
- package/dist/components/drawer/drawer-trigger.js +10 -0
- package/dist/components/drawer/index.js +20 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +3 -1
- package/dist/components/modal/modal.js +10 -9
- package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
- package/dist/components/notification/notification.d.ts +2 -2
- package/dist/components/text-field/text-field.d.ts +1 -1
- package/dist/components/toggle/toggle.d.ts +2 -2
- package/dist/drawer.module-B3QhrxH1.js +14 -0
- package/dist/main.js +3 -1
- package/dist/style.css +273 -172
- 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 +14 -13
- package/dist/components/accordion/accordion.d.ts +0 -61
- package/dist/components/accordion/accordion.js +0 -93
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Heading } from '../heading';
|
|
3
|
+
|
|
4
|
+
import * as DrawerPrimitive from '@radix-ui/react-dialog';
|
|
5
|
+
/** -------------------------------------------------------------------------------------------------
|
|
6
|
+
* Title
|
|
7
|
+
* -----------------------------------------------------------------------------------------------*/
|
|
8
|
+
export type TitleProps = React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title> & React.ComponentPropsWithoutRef<typeof Heading>;
|
|
9
|
+
export declare const Title: React.ForwardRefExoticComponent<TitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import * as DrawerPrimitive from "@radix-ui/react-dialog";
|
|
5
|
+
import { s as styles } from "../../drawer.module-B3QhrxH1.js";
|
|
6
|
+
import { rootClassName } from "./drawer-root.js";
|
|
7
|
+
import { Heading } from "../heading/heading.js";
|
|
8
|
+
const Title = React__default.forwardRef(
|
|
9
|
+
({ className, asChild, children, variant, ...rest }, forwardedRef) => {
|
|
10
|
+
const classes = clsx([styles[`${rootClassName}__title`]], className);
|
|
11
|
+
return /* @__PURE__ */ jsx(DrawerPrimitive.Title, { className: classes, ref: forwardedRef, ...rest, asChild: true, children: /* @__PURE__ */ jsx(Heading, { variant: variant ?? "title-300", ...asChild ? { asChild: true } : { as: "h2" }, children }) });
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
Title.displayName = "Title";
|
|
15
|
+
export {
|
|
16
|
+
Title
|
|
17
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
import * as DrawerPrimitive from '@radix-ui/react-dialog';
|
|
4
|
+
/** -------------------------------------------------------------------------------------------------
|
|
5
|
+
* Trigger
|
|
6
|
+
* -----------------------------------------------------------------------------------------------*/
|
|
7
|
+
export type TriggerProps = Omit<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Trigger>, 'asChild' | 'children'> & {
|
|
8
|
+
children: React.ReactElement;
|
|
9
|
+
};
|
|
10
|
+
export declare const Trigger: React.ForwardRefExoticComponent<Omit<Omit<DrawerPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref">, "children" | "asChild"> & {
|
|
11
|
+
children: React.ReactElement;
|
|
12
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import * as DrawerPrimitive from "@radix-ui/react-dialog";
|
|
4
|
+
const Trigger = React__default.forwardRef(
|
|
5
|
+
({ children, ...props }, forwardedRef) => /* @__PURE__ */ jsx(DrawerPrimitive.Trigger, { ...props, ref: forwardedRef, asChild: true, children })
|
|
6
|
+
);
|
|
7
|
+
Trigger.displayName = "Trigger";
|
|
8
|
+
export {
|
|
9
|
+
Trigger
|
|
10
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Close } from "./drawer-close.js";
|
|
2
|
+
import { Content } from "./drawer-content.js";
|
|
3
|
+
import { Description } from "./drawer-description.js";
|
|
4
|
+
import { Footer } from "./drawer-footer.js";
|
|
5
|
+
import { Overlay } from "./drawer-overlay.js";
|
|
6
|
+
import { Root } from "./drawer-root.js";
|
|
7
|
+
import { Title } from "./drawer-title.js";
|
|
8
|
+
import { Trigger } from "./drawer-trigger.js";
|
|
9
|
+
const Drawer = Object.assign(Root, {
|
|
10
|
+
Title,
|
|
11
|
+
Description,
|
|
12
|
+
Trigger,
|
|
13
|
+
Overlay,
|
|
14
|
+
Content,
|
|
15
|
+
Footer,
|
|
16
|
+
Close
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
Drawer
|
|
20
|
+
};
|
package/dist/components/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Drawer } from "./drawer/index.js";
|
|
1
2
|
import { Image } from "./image/image.js";
|
|
2
3
|
import { Chip } from "./chip/index.js";
|
|
3
4
|
import { Modal } from "./modal/modal.js";
|
|
@@ -9,7 +10,7 @@ import { Card } from "./card/card.js";
|
|
|
9
10
|
import { Grid } from "./grid/grid.js";
|
|
10
11
|
import { NavigationMenu } from "./navigation-menu/navigation-menu.js";
|
|
11
12
|
import { Toggle } from "./toggle/toggle.js";
|
|
12
|
-
import { Accordion } from "./accordion/
|
|
13
|
+
import { Accordion } from "./accordion/index.js";
|
|
13
14
|
import { Link } from "./link/link.js";
|
|
14
15
|
import { Badge } from "./badge/badge.js";
|
|
15
16
|
import { Button } from "./button/button.js";
|
|
@@ -32,6 +33,7 @@ export {
|
|
|
32
33
|
Button,
|
|
33
34
|
Card,
|
|
34
35
|
Chip,
|
|
36
|
+
Drawer,
|
|
35
37
|
FieldErrorText,
|
|
36
38
|
Flex,
|
|
37
39
|
Grid,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useEffect } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as DrawerPrimitive from "@radix-ui/react-dialog";
|
|
4
|
+
import "../drawer/index.js";
|
|
4
5
|
import "../image/image.js";
|
|
5
6
|
import "../chip/index.js";
|
|
6
7
|
import "../notification/notification.js";
|
|
@@ -11,7 +12,7 @@ import "../card/card.js";
|
|
|
11
12
|
import "../grid/grid.js";
|
|
12
13
|
import "../navigation-menu/navigation-menu.js";
|
|
13
14
|
import "../toggle/toggle.js";
|
|
14
|
-
import "../accordion/
|
|
15
|
+
import "../accordion/index.js";
|
|
15
16
|
import "../link/link.js";
|
|
16
17
|
import "../badge/badge.js";
|
|
17
18
|
import { Button } from "../button/button.js";
|
|
@@ -56,18 +57,18 @@ const Root = (props) => {
|
|
|
56
57
|
const imageRef = React__default.useRef(null);
|
|
57
58
|
const actionGroupRef = React__default.useRef(null);
|
|
58
59
|
const scrollRef = React__default.useRef(null);
|
|
59
|
-
return /* @__PURE__ */ jsx(RootContext.Provider, { value: { imageRef, actionGroupRef, scrollRef }, children: /* @__PURE__ */ jsx(
|
|
60
|
+
return /* @__PURE__ */ jsx(RootContext.Provider, { value: { imageRef, actionGroupRef, scrollRef }, children: /* @__PURE__ */ jsx(DrawerPrimitive.Root, { ...props, modal: true }) });
|
|
60
61
|
};
|
|
61
62
|
Root.displayName = "Dialog.Root";
|
|
62
63
|
const Trigger = React__default.forwardRef(
|
|
63
|
-
({ children, ...props }, forwardedRef) => /* @__PURE__ */ jsx(
|
|
64
|
+
({ children, ...props }, forwardedRef) => /* @__PURE__ */ jsx(DrawerPrimitive.Trigger, { ...props, ref: forwardedRef, asChild: true, children })
|
|
64
65
|
);
|
|
65
66
|
Trigger.displayName = "Dialog.Trigger";
|
|
66
67
|
const OverlayContext = React__default.createContext(false);
|
|
67
68
|
const Overlay = React__default.forwardRef(
|
|
68
69
|
({ className, forceMount, container, ...rest }, forwardedRef) => {
|
|
69
70
|
const classes = clsx([styles[`${rootClassName}__overlay`]], className);
|
|
70
|
-
return /* @__PURE__ */ jsx(OverlayContext.Provider, { value: true, children: /* @__PURE__ */ jsx(
|
|
71
|
+
return /* @__PURE__ */ jsx(OverlayContext.Provider, { value: true, children: /* @__PURE__ */ jsx(DrawerPrimitive.Portal, { container, forceMount, children: /* @__PURE__ */ jsx(DrawerPrimitive.Overlay, { className: classes, ref: forwardedRef, ...rest }) }) });
|
|
71
72
|
}
|
|
72
73
|
);
|
|
73
74
|
Overlay.displayName = "Dialog.Content";
|
|
@@ -76,7 +77,7 @@ const InnerContent = React__default.forwardRef(
|
|
|
76
77
|
const classes = clsx([styles[`${rootClassName}__scroll`]], className);
|
|
77
78
|
const context = React__default.useContext(RootContext);
|
|
78
79
|
return /* @__PURE__ */ jsx(
|
|
79
|
-
|
|
80
|
+
DrawerPrimitive.Content,
|
|
80
81
|
{
|
|
81
82
|
...props,
|
|
82
83
|
ref: forwardedRef,
|
|
@@ -146,7 +147,7 @@ const Group = React__default.forwardRef(
|
|
|
146
147
|
Group.displayName = "Dialog.Group";
|
|
147
148
|
const TitleInner = React__default.forwardRef(
|
|
148
149
|
function TitleInner2(props, forwardedRef) {
|
|
149
|
-
return /* @__PURE__ */ jsx(
|
|
150
|
+
return /* @__PURE__ */ jsx(DrawerPrimitive.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { variant: "title-200", as: "h2", ...props, asChild: false, ref: forwardedRef }) });
|
|
150
151
|
}
|
|
151
152
|
);
|
|
152
153
|
const Title = React__default.forwardRef((props, forwardedRef) => {
|
|
@@ -157,7 +158,7 @@ const Title = React__default.forwardRef((props, forwardedRef) => {
|
|
|
157
158
|
return /* @__PURE__ */ jsx(TitleInner, { ...props, ref: forwardedRef });
|
|
158
159
|
});
|
|
159
160
|
Title.displayName = "Dialog.Title";
|
|
160
|
-
const Description = React__default.forwardRef((props, forwardedRef) => /* @__PURE__ */ jsx(
|
|
161
|
+
const Description = React__default.forwardRef((props, forwardedRef) => /* @__PURE__ */ jsx(DrawerPrimitive.Description, { asChild: true, children: /* @__PURE__ */ jsx(Text, { as: "p", variant: "paragraph-100", ...props, asChild: false, ref: forwardedRef }) }));
|
|
161
162
|
Description.displayName = "Dialog.Description";
|
|
162
163
|
const Image = React__default.forwardRef(({ asChild, ...props }, forwardedRef) => {
|
|
163
164
|
const classes = clsx([styles[`${rootClassName}__image`]], props.className);
|
|
@@ -179,7 +180,7 @@ const Close = React__default.forwardRef(
|
|
|
179
180
|
setHasImage(true);
|
|
180
181
|
}
|
|
181
182
|
}, [imageRef]);
|
|
182
|
-
return /* @__PURE__ */ jsx(
|
|
183
|
+
return /* @__PURE__ */ jsx(DrawerPrimitive.Close, { ...props, className: classes, ref: forwardedRef, asChild: true, children: props.children || /* @__PURE__ */ jsx(Button, { variant: hasImage ? "primary-negative" : "tertiary-purple", iconOnly: true, "aria-label": props["aria-label"], children: /* @__PURE__ */ jsx(Icon, { name: "close" }) }) });
|
|
183
184
|
}
|
|
184
185
|
);
|
|
185
186
|
Close.displayName = "Dialog.Close";
|
|
@@ -100,7 +100,7 @@ declare const NavigationMenu: React.ForwardRefExoticComponent<Omit<NavigationMen
|
|
|
100
100
|
variant?: "default" | "float" | undefined;
|
|
101
101
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
102
102
|
Link: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>, "ref"> & {
|
|
103
|
-
variant?: "
|
|
103
|
+
variant?: "button" | "small" | "default" | undefined;
|
|
104
104
|
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
105
105
|
Indicator: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
106
106
|
Viewport: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -80,8 +80,8 @@ declare const Notification: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<
|
|
|
80
80
|
Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
81
81
|
Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
82
82
|
Icon: React.ForwardRefExoticComponent<Partial<Omit<React.SVGProps<SVGSVGElement> & {
|
|
83
|
-
name: "
|
|
84
|
-
size?: ("
|
|
83
|
+
name: "link" | "map" | "menu" | "search" | "summary" | "time" | "video" | "filter" | "image" | "stop" | "split" | "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "copy" | "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" | "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" | "visible" | "volume" | "zoom-out" | "zoom" | "connected-building" | "home" | "hospital" | "industry" | "premises-datacenter" | "premises-large" | "premises-medium" | "premises-small" | "premises" | "store" | "address-book" | "b2b-customer" | "care" | "chat-robot" | "chat" | "child-1" | "child-2" | "conversation" | "customer-dialogue" | "dsl-hub" | "email" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-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" | "add" | "ai-robot" | "bag" | "basketball" | "blood-pressure" | "bulb" | "business-continuity" | "business-intelligence" | "calendar" | "cart" | "close-circle" | "cloud" | "coffee" | "compass" | "construction" | "cookie" | "delivery" | "drone" | "education" | "efficiency" | "environment" | "facemask" | "flag" | "focus" | "food" | "fraud" | "getting-started" | "home-care" | "infinite" | "job-search" | "key" | "layers" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "radio" | "recycle" | "reservation" | "reverse" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "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" | "alert" | "check-circle-filled" | "check-circle" | "error-filled" | "error" | "help" | "info-filled" | "info" | "question-filled" | "question" | "warning" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-subdirectory" | "arrow-up" | "card-view" | "checkmark-bold" | "checkmark" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "close" | "grid-view" | "list-view" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "services" | "sorter" | "table-view";
|
|
84
|
+
size?: ("font" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl") | undefined;
|
|
85
85
|
children?: React.ReactNode;
|
|
86
86
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
87
87
|
Dismiss: React.ForwardRefExoticComponent<DismissProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -74,7 +74,7 @@ export declare const TextField: React.ForwardRefExoticComponent<Omit<React.Detai
|
|
|
74
74
|
*/
|
|
75
75
|
isRequired?: boolean | undefined;
|
|
76
76
|
} & React.RefAttributes<HTMLDivElement>> & {
|
|
77
|
-
Input: React.ForwardRefExoticComponent<Omit<import('../input').InputProps, "
|
|
77
|
+
Input: React.ForwardRefExoticComponent<Omit<import('../input').InputProps, "id" | "disabled" | "readOnly" | "required"> & React.RefAttributes<HTMLInputElement>>;
|
|
78
78
|
Label: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-label').LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & {
|
|
79
79
|
disabled?: boolean | undefined;
|
|
80
80
|
isRequired?: boolean | undefined;
|
|
@@ -29,8 +29,8 @@ declare const Toggle: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHT
|
|
|
29
29
|
Input: React.ForwardRefExoticComponent<ToggleInputProps & React.RefAttributes<HTMLButtonElement>>;
|
|
30
30
|
Thumb: React.ForwardRefExoticComponent<Omit<SwitchPrimitive.SwitchThumbProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
31
31
|
Indicator: React.ForwardRefExoticComponent<Partial<Omit<React.SVGProps<SVGSVGElement> & {
|
|
32
|
-
name: "
|
|
33
|
-
size?: ("
|
|
32
|
+
name: "link" | "map" | "menu" | "search" | "summary" | "time" | "video" | "filter" | "image" | "stop" | "split" | "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "copy" | "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" | "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" | "visible" | "volume" | "zoom-out" | "zoom" | "connected-building" | "home" | "hospital" | "industry" | "premises-datacenter" | "premises-large" | "premises-medium" | "premises-small" | "premises" | "store" | "address-book" | "b2b-customer" | "care" | "chat-robot" | "chat" | "child-1" | "child-2" | "conversation" | "customer-dialogue" | "dsl-hub" | "email" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-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" | "add" | "ai-robot" | "bag" | "basketball" | "blood-pressure" | "bulb" | "business-continuity" | "business-intelligence" | "calendar" | "cart" | "close-circle" | "cloud" | "coffee" | "compass" | "construction" | "cookie" | "delivery" | "drone" | "education" | "efficiency" | "environment" | "facemask" | "flag" | "focus" | "food" | "fraud" | "getting-started" | "home-care" | "infinite" | "job-search" | "key" | "layers" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "radio" | "recycle" | "reservation" | "reverse" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "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" | "alert" | "check-circle-filled" | "check-circle" | "error-filled" | "error" | "help" | "info-filled" | "info" | "question-filled" | "question" | "warning" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-subdirectory" | "arrow-up" | "card-view" | "checkmark-bold" | "checkmark" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "close" | "grid-view" | "list-view" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "services" | "sorter" | "table-view";
|
|
33
|
+
size?: ("font" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl") | undefined;
|
|
34
34
|
children?: React.ReactNode;
|
|
35
35
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
36
36
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const styles = {
|
|
2
|
+
"teddy-drawer__overlay": "_teddy-drawer__overlay_1sy9d_17",
|
|
3
|
+
"teddy-drawer__overlay--container": "_teddy-drawer__overlay--container_1sy9d_29",
|
|
4
|
+
"teddy-drawer__content": "_teddy-drawer__content_1sy9d_35",
|
|
5
|
+
"teddy-drawer__close--floating": "_teddy-drawer__close--floating_1sy9d_50",
|
|
6
|
+
"drawer-overlay-no-op": "_drawer-overlay-no-op_1sy9d_1",
|
|
7
|
+
"teddy-fade-in": "_teddy-fade-in_1sy9d_1",
|
|
8
|
+
"teddy-fade-out": "_teddy-fade-out_1sy9d_1",
|
|
9
|
+
"drawer-content-show": "_drawer-content-show_1sy9d_1",
|
|
10
|
+
"drawer-content-hide": "_drawer-content-hide_1sy9d_1"
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
styles as s
|
|
14
|
+
};
|
package/dist/main.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Drawer } from "./components/drawer/index.js";
|
|
1
2
|
import { Image } from "./components/image/image.js";
|
|
2
3
|
import { Chip } from "./components/chip/index.js";
|
|
3
4
|
import { Modal } from "./components/modal/modal.js";
|
|
@@ -9,7 +10,7 @@ import { Card } from "./components/card/card.js";
|
|
|
9
10
|
import { Grid } from "./components/grid/grid.js";
|
|
10
11
|
import { NavigationMenu } from "./components/navigation-menu/navigation-menu.js";
|
|
11
12
|
import { Toggle } from "./components/toggle/toggle.js";
|
|
12
|
-
import { Accordion } from "./components/accordion/
|
|
13
|
+
import { Accordion } from "./components/accordion/index.js";
|
|
13
14
|
import { Link } from "./components/link/link.js";
|
|
14
15
|
import { Badge } from "./components/badge/badge.js";
|
|
15
16
|
import { Button } from "./components/button/button.js";
|
|
@@ -39,6 +40,7 @@ export {
|
|
|
39
40
|
Button,
|
|
40
41
|
Card,
|
|
41
42
|
Chip,
|
|
43
|
+
Drawer,
|
|
42
44
|
FieldErrorText,
|
|
43
45
|
Flex,
|
|
44
46
|
Grid,
|