@telia/teddy 0.0.32 → 0.0.33
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/chip/chip-indicator.d.ts +2 -2
- package/dist/components/chip/chip.cjs +3 -3
- package/dist/components/chip/chip.js +3 -3
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/index.cjs +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/modal/modal.cjs +1 -1
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.cjs +0 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.d.ts +4 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.js +0 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-my-pages.cjs +45 -8
- package/dist/components/navigation-menu/global-navigation/global-navigation-my-pages.js +46 -9
- package/dist/components/navigation-menu/global-navigation/global-navigation-root.d.ts +3 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-root.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-search-field.cjs +7 -34
- package/dist/components/navigation-menu/global-navigation/global-navigation-search-field.js +7 -34
- package/dist/components/navigation-menu/global-navigation/global-navigation-search.cjs +0 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-search.js +2 -3
- package/dist/components/navigation-menu/global-navigation/global-navigation-shopping-cart.js +2 -2
- package/dist/components/notabene/index.cjs +14 -2
- package/dist/components/notabene/index.d.ts +16 -1
- package/dist/components/notabene/index.js +13 -1
- package/dist/components/notabene/notabene-heading.cjs +25 -0
- package/dist/components/notabene/notabene-heading.d.ts +5 -0
- package/dist/components/notabene/notabene-heading.js +25 -0
- package/dist/components/notabene/notabene-icon.cjs +18 -0
- package/dist/components/notabene/notabene-icon.d.ts +9 -0
- package/dist/components/notabene/notabene-icon.js +18 -0
- package/dist/components/notabene/notabene-root.cjs +22 -0
- package/dist/components/notabene/notabene-root.d.ts +6 -0
- package/dist/components/notabene/notabene-root.js +22 -0
- package/dist/components/notabene/notabene.content.cjs +15 -0
- package/dist/components/notabene/notabene.content.d.ts +5 -0
- package/dist/components/notabene/notabene.content.js +15 -0
- package/dist/components/notification/notification.d.ts +2 -2
- package/dist/components/tabs/tabs-list.cjs +11 -0
- package/dist/components/tabs/tabs-list.js +11 -0
- package/dist/components/tabs/tabs-trigger.cjs +2 -2
- package/dist/components/tabs/tabs-trigger.js +2 -2
- package/dist/components/toggle/toggle.d.ts +2 -2
- package/dist/main.cjs +2 -2
- package/dist/main.js +1 -1
- package/dist/style.css +158 -156
- package/dist/utils/generate-styling/grid.d.ts +24 -24
- package/dist/utils/generate-styling/index.d.ts +16 -16
- package/dist/utils/generate-styling/util.d.ts +2 -2
- package/package.json +1 -1
- package/dist/components/notabene/notabene.cjs +0 -35
- package/dist/components/notabene/notabene.d.ts +0 -15
- package/dist/components/notabene/notabene.js +0 -35
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { Content, ContentProps } from './notabene.content';
|
|
2
|
+
import { Heading, HeadingProps } from './notabene-heading';
|
|
3
|
+
import { Icon, IconProps } from './notabene-icon';
|
|
4
|
+
import { Root, RootProps } from './notabene-root';
|
|
5
|
+
|
|
6
|
+
export declare const Notabene: typeof Root & {
|
|
7
|
+
Content: typeof Content;
|
|
8
|
+
Heading: typeof Heading;
|
|
9
|
+
Icon: typeof Icon;
|
|
10
|
+
};
|
|
11
|
+
export type NotabeneProps = {
|
|
12
|
+
Content: ContentProps;
|
|
13
|
+
Heading: HeadingProps;
|
|
14
|
+
Icon: IconProps;
|
|
15
|
+
Root: RootProps;
|
|
16
|
+
};
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Content } from "./notabene.content.js";
|
|
2
|
+
import { Heading } from "./notabene-heading.js";
|
|
3
|
+
import { Icon } from "./notabene-icon.js";
|
|
4
|
+
import { Root } from "./notabene-root.js";
|
|
5
|
+
Content.displayName = "Notabene.Content";
|
|
6
|
+
Heading.displayName = "Notabene.Heading";
|
|
7
|
+
Icon.displayName = "Notabene.Icon";
|
|
8
|
+
Root.displayName = "Notabene";
|
|
9
|
+
const Notabene = Object.assign(Root, {
|
|
10
|
+
Content,
|
|
11
|
+
Heading,
|
|
12
|
+
Icon
|
|
13
|
+
});
|
|
2
14
|
export {
|
|
3
15
|
Notabene
|
|
4
16
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
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_heading_heading = require("../heading/heading.cjs");
|
|
7
|
+
const components_notabene_notabeneRoot = require("./notabene-root.cjs");
|
|
8
|
+
const Heading = React.forwardRef(
|
|
9
|
+
({ className, as = "h2", variant = "title-200", mb = "150", ...props }, forwardRef) => {
|
|
10
|
+
const classes = clsx([components_notabene_notabeneRoot.styles[`${components_notabene_notabeneRoot.rootClassName}__heading`]], className);
|
|
11
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12
|
+
components_heading_heading.Heading,
|
|
13
|
+
{
|
|
14
|
+
...props,
|
|
15
|
+
...!props.asChild ? { as, asChild: false } : { as: void 0, asChild: true },
|
|
16
|
+
variant,
|
|
17
|
+
ref: forwardRef,
|
|
18
|
+
className: classes,
|
|
19
|
+
mb
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
Heading.displayName = "Heading";
|
|
25
|
+
exports.Heading = Heading;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Heading as PrimitiveHeading } from '../heading';
|
|
3
|
+
|
|
4
|
+
export type HeadingProps = Partial<React.ComponentPropsWithoutRef<typeof PrimitiveHeading>>;
|
|
5
|
+
export declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { Heading as Heading$1 } from "../heading/heading.js";
|
|
5
|
+
import { s as styles, rootClassName } from "./notabene-root.js";
|
|
6
|
+
const Heading = React__default.forwardRef(
|
|
7
|
+
({ className, as = "h2", variant = "title-200", mb = "150", ...props }, forwardRef) => {
|
|
8
|
+
const classes = clsx([styles[`${rootClassName}__heading`]], className);
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
Heading$1,
|
|
11
|
+
{
|
|
12
|
+
...props,
|
|
13
|
+
...!props.asChild ? { as, asChild: false } : { as: void 0, asChild: true },
|
|
14
|
+
variant,
|
|
15
|
+
ref: forwardRef,
|
|
16
|
+
className: classes,
|
|
17
|
+
mb
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
Heading.displayName = "Heading";
|
|
23
|
+
export {
|
|
24
|
+
Heading
|
|
25
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
require("../../assets/sprite.269ba410-teddy.svg");
|
|
7
|
+
const components_icon_icon = require("../icon/icon.cjs");
|
|
8
|
+
const components_notabene_notabeneRoot = require("./notabene-root.cjs");
|
|
9
|
+
const Icon = React.forwardRef(
|
|
10
|
+
({ className, name, ...props }, forwardRef) => {
|
|
11
|
+
const classes = clsx([components_notabene_notabeneRoot.styles[`${components_notabene_notabeneRoot.rootClassName}__icon`]], className);
|
|
12
|
+
if (!name)
|
|
13
|
+
return null;
|
|
14
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { size: "lg", ...props, name, ref: forwardRef, className: classes });
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
Icon.displayName = "Notabene.Icon";
|
|
18
|
+
exports.Icon = Icon;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Icon as PrimitiveIcon } from '../icon';
|
|
3
|
+
|
|
4
|
+
export type IconProps = Partial<React.ComponentPropsWithoutRef<typeof PrimitiveIcon>>;
|
|
5
|
+
export declare const Icon: React.ForwardRefExoticComponent<Partial<Omit<React.SVGProps<SVGSVGElement> & {
|
|
6
|
+
name: "link" | "map" | "menu" | "search" | "summary" | "time" | "video" | "filter" | "image" | "stop" | "key" | "x" | "download" | "split" | "add" | "reverse" | "infinite" | "radio" | "visible" | "copy" | "help" | "zoom-out" | "zoom" | "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
|
+
children?: React.ReactNode;
|
|
9
|
+
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import "../../assets/sprite.269ba410-teddy.svg";
|
|
5
|
+
import { Icon as Icon$1 } from "../icon/icon.js";
|
|
6
|
+
import { s as styles, rootClassName } from "./notabene-root.js";
|
|
7
|
+
const Icon = React__default.forwardRef(
|
|
8
|
+
({ className, name, ...props }, forwardRef) => {
|
|
9
|
+
const classes = clsx([styles[`${rootClassName}__icon`]], className);
|
|
10
|
+
if (!name)
|
|
11
|
+
return null;
|
|
12
|
+
return /* @__PURE__ */ jsx(Icon$1, { size: "lg", ...props, name, ref: forwardRef, className: classes });
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
Icon.displayName = "Notabene.Icon";
|
|
16
|
+
export {
|
|
17
|
+
Icon
|
|
18
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
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_box_box = require("../box/box.cjs");
|
|
7
|
+
const styles = {
|
|
8
|
+
"teddy-notabene": "_teddy-notabene_1dybk_1",
|
|
9
|
+
"teddy-notabene__icon": "_teddy-notabene__icon_1dybk_9",
|
|
10
|
+
"teddy-notabene__heading": "_teddy-notabene__heading_1dybk_9"
|
|
11
|
+
};
|
|
12
|
+
const rootClassName = "teddy-notabene";
|
|
13
|
+
const Root = React.forwardRef(
|
|
14
|
+
({ children, className, ...props }, forwardRef) => {
|
|
15
|
+
const classes = clsx([styles[`${rootClassName}`]], className);
|
|
16
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components_box_box.Box, { ...props, ref: forwardRef, className: classes, children });
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
Root.displayName = "Root";
|
|
20
|
+
exports.Root = Root;
|
|
21
|
+
exports.rootClassName = rootClassName;
|
|
22
|
+
exports.styles = styles;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Box as PrimitiveBox } from '../box';
|
|
3
|
+
|
|
4
|
+
export declare const rootClassName = "teddy-notabene";
|
|
5
|
+
export type RootProps = Partial<React.ComponentPropsWithoutRef<typeof PrimitiveBox>>;
|
|
6
|
+
export declare const Root: React.ForwardRefExoticComponent<RootProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { Box } from "../box/box.js";
|
|
5
|
+
const styles = {
|
|
6
|
+
"teddy-notabene": "_teddy-notabene_1dybk_1",
|
|
7
|
+
"teddy-notabene__icon": "_teddy-notabene__icon_1dybk_9",
|
|
8
|
+
"teddy-notabene__heading": "_teddy-notabene__heading_1dybk_9"
|
|
9
|
+
};
|
|
10
|
+
const rootClassName = "teddy-notabene";
|
|
11
|
+
const Root = React__default.forwardRef(
|
|
12
|
+
({ children, className, ...props }, forwardRef) => {
|
|
13
|
+
const classes = clsx([styles[`${rootClassName}`]], className);
|
|
14
|
+
return /* @__PURE__ */ jsx(Box, { ...props, ref: forwardRef, className: classes, children });
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
Root.displayName = "Root";
|
|
18
|
+
export {
|
|
19
|
+
Root,
|
|
20
|
+
rootClassName,
|
|
21
|
+
styles as s
|
|
22
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
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_box_box = require("../box/box.cjs");
|
|
7
|
+
const components_notabene_notabeneRoot = require("./notabene-root.cjs");
|
|
8
|
+
const Content = React.forwardRef(
|
|
9
|
+
({ className, children, ...props }, forwardRef) => {
|
|
10
|
+
const classes = clsx([components_notabene_notabeneRoot.styles[`${components_notabene_notabeneRoot.rootClassName}__header`]], className);
|
|
11
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components_box_box.Box, { ...props, ref: forwardRef, className: classes, children });
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
Content.displayName = "Content";
|
|
15
|
+
exports.Content = Content;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Box as PrimitiveBox } from '../box';
|
|
3
|
+
|
|
4
|
+
export type ContentProps = Partial<React.ComponentPropsWithoutRef<typeof PrimitiveBox>>;
|
|
5
|
+
export declare const Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { Box } from "../box/box.js";
|
|
5
|
+
import { s as styles, rootClassName } from "./notabene-root.js";
|
|
6
|
+
const Content = React__default.forwardRef(
|
|
7
|
+
({ className, children, ...props }, forwardRef) => {
|
|
8
|
+
const classes = clsx([styles[`${rootClassName}__header`]], className);
|
|
9
|
+
return /* @__PURE__ */ jsx(Box, { ...props, ref: forwardRef, className: classes, children });
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
Content.displayName = "Content";
|
|
13
|
+
export {
|
|
14
|
+
Content
|
|
15
|
+
};
|
|
@@ -86,8 +86,8 @@ declare const Notification: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<
|
|
|
86
86
|
Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
87
87
|
Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
88
88
|
Icon: React.ForwardRefExoticComponent<Partial<Omit<React.SVGProps<SVGSVGElement> & {
|
|
89
|
-
name: "link" | "map" | "menu" | "search" | "summary" | "time" | "video" | "filter" | "image" | "stop" | "key" | "x" | "download" | "split" | "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "
|
|
90
|
-
size?: ("
|
|
89
|
+
name: "link" | "map" | "menu" | "search" | "summary" | "time" | "video" | "filter" | "image" | "stop" | "key" | "x" | "download" | "split" | "add" | "reverse" | "infinite" | "radio" | "visible" | "copy" | "help" | "zoom-out" | "zoom" | "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";
|
|
90
|
+
size?: ("sm" | "md" | "lg" | "xl" | "font" | "xxs" | "xs") | undefined;
|
|
91
91
|
children?: React.ReactNode;
|
|
92
92
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
93
93
|
Dismiss: React.ForwardRefExoticComponent<DismissProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -7,6 +7,7 @@ const clsx = require("clsx");
|
|
|
7
7
|
const components_tabs_tabsRoot = require("./tabs-root.cjs");
|
|
8
8
|
const components_tabs_tabsScroll = require("./tabs-scroll.cjs");
|
|
9
9
|
const utils_composeRefs = require("../../utils/composeRefs.cjs");
|
|
10
|
+
const tokens_motion_variables = require("../../tokens/motion/variables.cjs");
|
|
10
11
|
function _interopNamespaceDefault(e) {
|
|
11
12
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
12
13
|
if (e) {
|
|
@@ -29,6 +30,16 @@ const List = React.forwardRef(
|
|
|
29
30
|
const classes = clsx([components_tabs_tabsRoot.styles[`${components_tabs_tabsRoot.rootClassName}__list`]], className);
|
|
30
31
|
const scrollContext = React.useContext(components_tabs_tabsScroll.ScrollContext);
|
|
31
32
|
const rootContext = React.useContext(components_tabs_tabsRoot.RootContext);
|
|
33
|
+
const isFirstRender = React.useRef(true);
|
|
34
|
+
React.useEffect(() => {
|
|
35
|
+
if (rootContext) {
|
|
36
|
+
const tabsContainer = rootContext == null ? void 0 : rootContext.listElement.current;
|
|
37
|
+
if (!tabsContainer)
|
|
38
|
+
return;
|
|
39
|
+
tabsContainer.style.setProperty("--_duration", isFirstRender.current ? "0ms" : tokens_motion_variables.teddyMotionDuration200);
|
|
40
|
+
isFirstRender.current = false;
|
|
41
|
+
}
|
|
42
|
+
}, [rootContext]);
|
|
32
43
|
if (!scrollContext) {
|
|
33
44
|
return /* @__PURE__ */ jsxRuntime.jsx(components_tabs_tabsScroll.Scroll, { children: /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.List, { ...props, ref: utils_composeRefs.composeRefs(forwardRef, rootContext == null ? void 0 : rootContext.listElement), className: classes, children }) });
|
|
34
45
|
}
|
|
@@ -5,11 +5,22 @@ import clsx from "clsx";
|
|
|
5
5
|
import { s as styles, rootClassName, RootContext } from "./tabs-root.js";
|
|
6
6
|
import { ScrollContext, Scroll } from "./tabs-scroll.js";
|
|
7
7
|
import { composeRefs } from "../../utils/composeRefs.js";
|
|
8
|
+
import { teddyMotionDuration200 } from "../../tokens/motion/variables.js";
|
|
8
9
|
const List = React__default.forwardRef(
|
|
9
10
|
({ className, children, ...props }, forwardRef) => {
|
|
10
11
|
const classes = clsx([styles[`${rootClassName}__list`]], className);
|
|
11
12
|
const scrollContext = React__default.useContext(ScrollContext);
|
|
12
13
|
const rootContext = React__default.useContext(RootContext);
|
|
14
|
+
const isFirstRender = React__default.useRef(true);
|
|
15
|
+
React__default.useEffect(() => {
|
|
16
|
+
if (rootContext) {
|
|
17
|
+
const tabsContainer = rootContext == null ? void 0 : rootContext.listElement.current;
|
|
18
|
+
if (!tabsContainer)
|
|
19
|
+
return;
|
|
20
|
+
tabsContainer.style.setProperty("--_duration", isFirstRender.current ? "0ms" : teddyMotionDuration200);
|
|
21
|
+
isFirstRender.current = false;
|
|
22
|
+
}
|
|
23
|
+
}, [rootContext]);
|
|
13
24
|
if (!scrollContext) {
|
|
14
25
|
return /* @__PURE__ */ jsx(Scroll, { children: /* @__PURE__ */ jsx(TabsPrimitive.List, { ...props, ref: composeRefs(forwardRef, rootContext == null ? void 0 : rootContext.listElement), className: classes, children }) });
|
|
15
26
|
}
|
|
@@ -8,7 +8,6 @@ const components_tabs_tabsRoot = require("./tabs-root.cjs");
|
|
|
8
8
|
const components_scrollArea_index = require("../scroll-area/index.cjs");
|
|
9
9
|
const components_button_button = require("../button/button.cjs");
|
|
10
10
|
const utils_composeRefs = require("../../utils/composeRefs.cjs");
|
|
11
|
-
const tokens_motion_variables = require("../../tokens/motion/variables.cjs");
|
|
12
11
|
function _interopNamespaceDefault(e) {
|
|
13
12
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
14
13
|
if (e) {
|
|
@@ -31,6 +30,7 @@ const Trigger = React.forwardRef(
|
|
|
31
30
|
const classes = clsx([components_tabs_tabsRoot.styles[`${components_tabs_tabsRoot.rootClassName}__trigger`]], className);
|
|
32
31
|
const innerElementRef = React.useRef(null);
|
|
33
32
|
const context = React.useContext(components_tabs_tabsRoot.RootContext);
|
|
33
|
+
const isFirstRender = React.useRef(true);
|
|
34
34
|
React.useEffect(() => {
|
|
35
35
|
if ((context == null ? void 0 : context.value) === props.value && innerElementRef.current) {
|
|
36
36
|
const newTab = innerElementRef.current;
|
|
@@ -43,7 +43,7 @@ const Trigger = React.forwardRef(
|
|
|
43
43
|
const width = newTabWidth.toFixed(3);
|
|
44
44
|
tabsContainer.style.setProperty("--_width", width);
|
|
45
45
|
tabsContainer.style.setProperty("--_left", newTab.offsetLeft + "px");
|
|
46
|
-
|
|
46
|
+
isFirstRender.current = false;
|
|
47
47
|
}
|
|
48
48
|
}, [context, props.value]);
|
|
49
49
|
if (context == null ? void 0 : context.snapCenter) {
|
|
@@ -6,12 +6,12 @@ import { s as styles, rootClassName, RootContext } from "./tabs-root.js";
|
|
|
6
6
|
import { ScrollArea } from "../scroll-area/index.js";
|
|
7
7
|
import { Button } from "../button/button.js";
|
|
8
8
|
import { composeRefs } from "../../utils/composeRefs.js";
|
|
9
|
-
import { teddyMotionDuration200 } from "../../tokens/motion/variables.js";
|
|
10
9
|
const Trigger = React__default.forwardRef(
|
|
11
10
|
({ className, ...props }, forwardRef) => {
|
|
12
11
|
const classes = clsx([styles[`${rootClassName}__trigger`]], className);
|
|
13
12
|
const innerElementRef = React__default.useRef(null);
|
|
14
13
|
const context = React__default.useContext(RootContext);
|
|
14
|
+
const isFirstRender = React__default.useRef(true);
|
|
15
15
|
React__default.useEffect(() => {
|
|
16
16
|
if ((context == null ? void 0 : context.value) === props.value && innerElementRef.current) {
|
|
17
17
|
const newTab = innerElementRef.current;
|
|
@@ -24,7 +24,7 @@ const Trigger = React__default.forwardRef(
|
|
|
24
24
|
const width = newTabWidth.toFixed(3);
|
|
25
25
|
tabsContainer.style.setProperty("--_width", width);
|
|
26
26
|
tabsContainer.style.setProperty("--_left", newTab.offsetLeft + "px");
|
|
27
|
-
|
|
27
|
+
isFirstRender.current = false;
|
|
28
28
|
}
|
|
29
29
|
}, [context, props.value]);
|
|
30
30
|
if (context == null ? void 0 : context.snapCenter) {
|
|
@@ -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: "link" | "map" | "menu" | "search" | "summary" | "time" | "video" | "filter" | "image" | "stop" | "key" | "x" | "download" | "split" | "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "
|
|
33
|
-
size?: ("
|
|
32
|
+
name: "link" | "map" | "menu" | "search" | "summary" | "time" | "video" | "filter" | "image" | "stop" | "key" | "x" | "download" | "split" | "add" | "reverse" | "infinite" | "radio" | "visible" | "copy" | "help" | "zoom-out" | "zoom" | "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";
|
|
33
|
+
size?: ("sm" | "md" | "lg" | "xl" | "font" | "xxs" | "xs") | undefined;
|
|
34
34
|
children?: React.ReactNode;
|
|
35
35
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
36
36
|
};
|
package/dist/main.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const components_progressBar_progressBar = require("./components/progress-bar/progress-bar.cjs");
|
|
4
|
-
const
|
|
4
|
+
const components_notabene_index = require("./components/notabene/index.cjs");
|
|
5
5
|
const components_tooltip_index = require("./components/tooltip/index.cjs");
|
|
6
6
|
const components_list_index = require("./components/list/index.cjs");
|
|
7
7
|
const components_scrollArea_index = require("./components/scroll-area/index.cjs");
|
|
@@ -47,7 +47,7 @@ const tokens_spacing_variables = require("./tokens/spacing/variables.cjs");
|
|
|
47
47
|
const tokens_typography_variables = require("./tokens/typography/variables.cjs");
|
|
48
48
|
const components_input_inputGroup = require("./components/input/input-group.cjs");
|
|
49
49
|
exports.ProgressBar = components_progressBar_progressBar.ProgressBar;
|
|
50
|
-
exports.Notabene =
|
|
50
|
+
exports.Notabene = components_notabene_index.Notabene;
|
|
51
51
|
exports.Tooltip = components_tooltip_index.Tooltip;
|
|
52
52
|
exports.List = components_list_index.List;
|
|
53
53
|
exports.ScrollArea = components_scrollArea_index.ScrollArea;
|
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProgressBar } from "./components/progress-bar/progress-bar.js";
|
|
2
|
-
import { Notabene } from "./components/notabene/
|
|
2
|
+
import { Notabene } from "./components/notabene/index.js";
|
|
3
3
|
import { Tooltip } from "./components/tooltip/index.js";
|
|
4
4
|
import { List } from "./components/list/index.js";
|
|
5
5
|
import { ScrollArea } from "./components/scroll-area/index.js";
|