@telia/teddy 0.7.10 → 0.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/avatar/avatar-root.d.ts +1 -1
- package/dist/components/avatar/index.d.ts +1 -1
- package/dist/components/breadcrumbs/breadcrumbs-link.d.ts +1 -1
- package/dist/components/breadcrumbs/index.d.ts +1 -1
- package/dist/components/card/card-link.d.ts +1 -1
- package/dist/components/channel-button/channel-button-root.d.ts +2 -2
- package/dist/components/channel-button/index.d.ts +2 -2
- package/dist/components/checkbox/checkbox-group.d.ts +1 -1
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/chip/chip-indicator.d.ts +1 -1
- package/dist/components/chip/index.d.ts +1 -1
- package/dist/components/dashboard-card/dashboard-card-avatar.d.ts +1 -1
- package/dist/components/icon/utils.d.ts +1 -1
- package/dist/components/index.cjs +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/metric-meter-experimental/index.cjs +4 -0
- package/dist/components/metric-meter-experimental/index.d.ts +2 -0
- package/dist/components/metric-meter-experimental/index.js +4 -0
- package/dist/components/metric-meter-experimental/metric-meter-experimental.cjs +151 -0
- package/dist/components/metric-meter-experimental/metric-meter-experimental.d.ts +22 -0
- package/dist/components/metric-meter-experimental/metric-meter-experimental.js +151 -0
- package/dist/components/modal/modal-close.cjs +1 -0
- package/dist/components/modal/modal-close.js +1 -0
- package/dist/components/navigation-menu/navigation-menu.cjs +1 -0
- package/dist/components/navigation-menu/navigation-menu.js +1 -0
- package/dist/components/notabene/notabene-icon.d.ts +1 -1
- package/dist/components/notification/notification-icon.d.ts +1 -1
- package/dist/components/radio-card-group/radio-card-group-content.cjs +1 -0
- package/dist/components/radio-card-group/radio-card-group-content.js +1 -0
- package/dist/components/radio-card-group/radio-card-group-item-title.cjs +1 -0
- package/dist/components/radio-card-group/radio-card-group-item-title.js +1 -0
- package/dist/components/radio-card-group/radio-card-group-item.cjs +1 -0
- package/dist/components/radio-card-group/radio-card-group-item.js +1 -0
- package/dist/components/scroll-area/index.d.ts +1 -1
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/tabs-root.d.ts +1 -1
- package/dist/components/tabs/tabs-scroll.d.ts +1 -1
- package/dist/components/toggle/toggle.d.ts +1 -1
- package/dist/main.cjs +2 -0
- package/dist/main.js +2 -0
- package/dist/style.css +377 -349
- package/package.json +1 -1
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default, { useMemo } from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { Flex } from "../flex/flex.js";
|
|
5
|
+
import "../../assets/sprite.6511e521-teddy.svg";
|
|
6
|
+
import { Icon } from "../icon/icon.js";
|
|
7
|
+
import { Text } from "../text/text.js";
|
|
8
|
+
import { Button } from "../button/button.js";
|
|
9
|
+
import { Heading } from "../heading/heading.js";
|
|
10
|
+
import { teddyColorGray200, teddyColorPurple800 } from "../../tokens/color/variables.js";
|
|
11
|
+
const styles = {
|
|
12
|
+
"teddy-metric-meter-experimental": "_teddy-metric-meter-experimental_mgd0h_1",
|
|
13
|
+
"teddy-metric-meter-experimental--disabled": "_teddy-metric-meter-experimental--disabled_mgd0h_9",
|
|
14
|
+
"teddy-metric-meter-experimental__fade": "_teddy-metric-meter-experimental__fade_mgd0h_18",
|
|
15
|
+
"teddy-metric-meter-experimental__fade--hidden": "_teddy-metric-meter-experimental__fade--hidden_mgd0h_21",
|
|
16
|
+
"teddy-metric-meter-experimental__svg": "_teddy-metric-meter-experimental__svg_mgd0h_25"
|
|
17
|
+
};
|
|
18
|
+
const rootClassName = "teddy-metric-meter-experimental";
|
|
19
|
+
const MetricMeterExperimental = React__default.forwardRef(
|
|
20
|
+
({
|
|
21
|
+
className,
|
|
22
|
+
title,
|
|
23
|
+
unit,
|
|
24
|
+
percentage,
|
|
25
|
+
value,
|
|
26
|
+
disabled = false,
|
|
27
|
+
hideButtons,
|
|
28
|
+
fillColor = teddyColorPurple800,
|
|
29
|
+
backgroundColor = teddyColorGray200,
|
|
30
|
+
strokeWidth = 15,
|
|
31
|
+
gaugeClassName,
|
|
32
|
+
ariaLabel,
|
|
33
|
+
onIncrement,
|
|
34
|
+
onDecrement,
|
|
35
|
+
isIncrementDisabled,
|
|
36
|
+
isDecrementDisabled,
|
|
37
|
+
...rest
|
|
38
|
+
}, forwardRef) => {
|
|
39
|
+
const pct = useMemo(() => percentage < 0 ? 0 : percentage > 1 ? 1 : percentage, [percentage]);
|
|
40
|
+
const increaseDisabled = !!(disabled || isIncrementDisabled);
|
|
41
|
+
const decrementDisabled = !!(disabled || isDecrementDisabled);
|
|
42
|
+
const onKeyDown = (e) => {
|
|
43
|
+
switch (e.key) {
|
|
44
|
+
case "ArrowRight":
|
|
45
|
+
case "ArrowUp":
|
|
46
|
+
e.preventDefault();
|
|
47
|
+
if (!increaseDisabled) onIncrement == null ? void 0 : onIncrement();
|
|
48
|
+
break;
|
|
49
|
+
case "ArrowLeft":
|
|
50
|
+
case "ArrowDown":
|
|
51
|
+
e.preventDefault();
|
|
52
|
+
if (!decrementDisabled) onDecrement == null ? void 0 : onDecrement();
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const size = 240;
|
|
57
|
+
const center = size / 2;
|
|
58
|
+
const radius = center - strokeWidth * 2;
|
|
59
|
+
const normStart = 135;
|
|
60
|
+
const sweepDeg = 270;
|
|
61
|
+
const angleToPoint = (deg) => {
|
|
62
|
+
const rad = deg * Math.PI / 180;
|
|
63
|
+
const x = center + radius * Math.cos(rad);
|
|
64
|
+
const y = center + radius * Math.sin(rad);
|
|
65
|
+
return { x, y };
|
|
66
|
+
};
|
|
67
|
+
const startPt = angleToPoint(normStart);
|
|
68
|
+
const endAngleForPath = normStart + sweepDeg;
|
|
69
|
+
const endPt = angleToPoint(endAngleForPath);
|
|
70
|
+
const largeArcFlag = 1;
|
|
71
|
+
const pathD = `M ${startPt.x} ${startPt.y} A ${radius} ${radius} 0 ${largeArcFlag} 1 ${endPt.x} ${endPt.y}`;
|
|
72
|
+
const arcLength = Math.PI * radius * sweepDeg / 180;
|
|
73
|
+
const progressLength = arcLength * pct;
|
|
74
|
+
const dashArray = `${progressLength} ${arcLength - progressLength}`;
|
|
75
|
+
const classes = clsx([styles[`${rootClassName}`], disabled && styles[`${rootClassName}--disabled`], className]);
|
|
76
|
+
const svgClass = styles[`${rootClassName}__svg`];
|
|
77
|
+
const fadeClass = styles[`${rootClassName}__fade`];
|
|
78
|
+
const hiddenFadeClass = styles[`${rootClassName}__fade--hidden`];
|
|
79
|
+
return /* @__PURE__ */ jsxs(
|
|
80
|
+
"div",
|
|
81
|
+
{
|
|
82
|
+
...rest,
|
|
83
|
+
ref: forwardRef,
|
|
84
|
+
className: classes,
|
|
85
|
+
role: "progressbar",
|
|
86
|
+
tabIndex: disabled ? -1 : 0,
|
|
87
|
+
"aria-label": ariaLabel || (typeof title === "string" ? title : void 0),
|
|
88
|
+
"aria-valuemin": 0,
|
|
89
|
+
"aria-valuemax": 1,
|
|
90
|
+
"aria-valuenow": pct,
|
|
91
|
+
"aria-disabled": disabled || void 0,
|
|
92
|
+
onKeyDown,
|
|
93
|
+
"data-focusable": !disabled,
|
|
94
|
+
children: [
|
|
95
|
+
title && /* @__PURE__ */ jsx(Heading, { as: "h2", variant: "title-200", children: title }),
|
|
96
|
+
/* @__PURE__ */ jsxs(Flex, { align: "center", gap: "50", children: [
|
|
97
|
+
/* @__PURE__ */ jsx("div", { className: clsx(fadeClass, hideButtons && hiddenFadeClass), children: /* @__PURE__ */ jsx(
|
|
98
|
+
Button,
|
|
99
|
+
{
|
|
100
|
+
iconOnly: true,
|
|
101
|
+
size: "sm",
|
|
102
|
+
variant: "secondary",
|
|
103
|
+
"aria-label": "decrease",
|
|
104
|
+
disabled: decrementDisabled,
|
|
105
|
+
onClick: () => !decrementDisabled && (onDecrement == null ? void 0 : onDecrement()),
|
|
106
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "minus" })
|
|
107
|
+
}
|
|
108
|
+
) }),
|
|
109
|
+
/* @__PURE__ */ jsxs("div", { className: clsx(svgClass, gaugeClassName), children: [
|
|
110
|
+
/* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: `0 0 ${size} ${size}`, "aria-hidden": "true", focusable: "false", children: [
|
|
111
|
+
/* @__PURE__ */ jsx("path", { d: pathD, strokeWidth, stroke: backgroundColor, fill: "none", strokeLinecap: "round" }),
|
|
112
|
+
!disabled && /* @__PURE__ */ jsx(
|
|
113
|
+
"path",
|
|
114
|
+
{
|
|
115
|
+
d: pathD,
|
|
116
|
+
strokeWidth,
|
|
117
|
+
stroke: fillColor,
|
|
118
|
+
fill: "none",
|
|
119
|
+
strokeLinecap: "round",
|
|
120
|
+
strokeDasharray: dashArray,
|
|
121
|
+
style: { transition: "stroke-dasharray .35s ease" }
|
|
122
|
+
}
|
|
123
|
+
)
|
|
124
|
+
] }),
|
|
125
|
+
/* @__PURE__ */ jsxs(Flex, { direction: "column", align: "center", justify: "center", style: { position: "absolute", inset: 0 }, children: [
|
|
126
|
+
/* @__PURE__ */ jsx(Heading, { as: "h4", variant: "title-100", children: String(value) }),
|
|
127
|
+
/* @__PURE__ */ jsx(Text, { children: unit })
|
|
128
|
+
] })
|
|
129
|
+
] }),
|
|
130
|
+
/* @__PURE__ */ jsx("div", { className: clsx(fadeClass, hideButtons && hiddenFadeClass), children: /* @__PURE__ */ jsx(
|
|
131
|
+
Button,
|
|
132
|
+
{
|
|
133
|
+
iconOnly: true,
|
|
134
|
+
size: "sm",
|
|
135
|
+
variant: "secondary",
|
|
136
|
+
"aria-label": "increase",
|
|
137
|
+
disabled: increaseDisabled,
|
|
138
|
+
onClick: () => !increaseDisabled && (onIncrement == null ? void 0 : onIncrement()),
|
|
139
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "plus" })
|
|
140
|
+
}
|
|
141
|
+
) })
|
|
142
|
+
] })
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
);
|
|
148
|
+
export {
|
|
149
|
+
MetricMeterExperimental,
|
|
150
|
+
rootClassName
|
|
151
|
+
};
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
require("react/jsx-runtime");
|
|
4
4
|
require("react");
|
|
5
5
|
require("@radix-ui/react-dialog");
|
|
6
|
+
require("../metric-meter-experimental/metric-meter-experimental.cjs");
|
|
6
7
|
require("../footer/index.cjs");
|
|
7
8
|
require("../pagination/index.cjs");
|
|
8
9
|
require("../select/index.cjs");
|
|
@@ -12,6 +12,7 @@ require("@radix-ui/react-slot");
|
|
|
12
12
|
require("@radix-ui/react-use-controllable-state");
|
|
13
13
|
require("../../utils/generate-styling/index.cjs");
|
|
14
14
|
require("../../tokens/motion/variables.cjs");
|
|
15
|
+
require("../metric-meter-experimental/metric-meter-experimental.cjs");
|
|
15
16
|
require("../footer/index.cjs");
|
|
16
17
|
require("../pagination/index.cjs");
|
|
17
18
|
require("../select/index.cjs");
|
|
@@ -10,6 +10,7 @@ import "@radix-ui/react-slot";
|
|
|
10
10
|
import "@radix-ui/react-use-controllable-state";
|
|
11
11
|
import "../../utils/generate-styling/index.js";
|
|
12
12
|
import "../../tokens/motion/variables.js";
|
|
13
|
+
import "../metric-meter-experimental/metric-meter-experimental.js";
|
|
13
14
|
import "../footer/index.js";
|
|
14
15
|
import "../pagination/index.js";
|
|
15
16
|
import "../select/index.js";
|
|
@@ -3,7 +3,7 @@ import { Icon as PrimitiveIcon } from '../icon';
|
|
|
3
3
|
|
|
4
4
|
export type IconProps = Partial<React.ComponentPropsWithoutRef<typeof PrimitiveIcon>>;
|
|
5
5
|
export declare const Icon: React.ForwardRefExoticComponent<Partial<Omit<React.SVGProps<SVGSVGElement> & {
|
|
6
|
-
name: "
|
|
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" | "alert" | "email" | "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "dislike" | "download" | "edit" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "play" | "remove-filled" | "remove" | "save" | "send" | "settings" | "share" | "shortcut" | "shuffle" | "skip-back-10sec" | "skip-back-30sec" | "skip-forward-10sec" | "skip-forward-30sec" | "star-filled" | "star" | "switch-arrows" | "sync" | "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-neutral" | "smiley-sad" | "smiley-very-happy" | "smiley-very-sad" | "sms" | "support" | "user-admin" | "vcard" | "voicemail" | "battery" | "bluetooth" | "broadband" | "broken-phone" | "cast" | "cloud-connect" | "connected" | "core-router" | "daas-device" | "data-transfer" | "desktop" | "devices" | "esim-simcard" | "esim" | "face-id" | "fiber" | "fingerprint" | "fiveg" | "fourg" | "home-installation" | "industrial-iot" | "internet" | "it-service" | "laptop" | "mobile-broadband" | "network" | "phone-recycling" | "phone-ringing" | "phone" | "rack" | "refill-card" | "remote-control" | "repair" | "roaming" | "router" | "secure-device" | "sense-car" | "server" | "service-device" | "service-supervision" | "slow-wifi" | "smart-wifi" | "smartphone" | "smartwatch" | "tablet" | "trade-phone" | "tv" | "usb" | "voice-switch" | "wallplug" | "wireless-off" | "wireless-weak" | "wireless" | "world-alert" | "world-off" | "world-question" | "bar-chart" | "doc" | "document-doc" | "document-edit" | "document-pdf" | "document-ppt" | "excel" | "folder-copy" | "folder-new" | "folder" | "gif" | "graph" | "media-content" | "org-chart" | "pie-chart" | "print" | "register" | "report" | "simcard" | "spell-check" | "credit-card" | "euro" | "invoice" | "kontantkort" | "kr" | "late-payment" | "money-back-euro" | "money-back-kr" | "money-euro" | "money-kr" | "pay-monthly-euro" | "pay-monthly-kr" | "pay-once-euro" | "pay-once-kr" | "payment-success" | "savings" | "wallet" | "AI-star" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "activity-level" | "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" | "smart-connect" | "snowflake" | "speedometer" | "spyware" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "youtube" | "alert-filled" | "check-circle-filled" | "check-circle" | "error-filled" | "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
7
|
size?: ("sm" | "md" | "lg" | "xl" | "xs" | "font" | "xxs") | undefined;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -3,7 +3,7 @@ import { Icon as IconPrimitives } from '../icon';
|
|
|
3
3
|
|
|
4
4
|
export type IconProps = Partial<React.ComponentPropsWithoutRef<typeof IconPrimitives>>;
|
|
5
5
|
export declare const Icon: React.ForwardRefExoticComponent<Partial<Omit<React.SVGProps<SVGSVGElement> & {
|
|
6
|
-
name: "
|
|
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" | "alert" | "email" | "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "dislike" | "download" | "edit" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "play" | "remove-filled" | "remove" | "save" | "send" | "settings" | "share" | "shortcut" | "shuffle" | "skip-back-10sec" | "skip-back-30sec" | "skip-forward-10sec" | "skip-forward-30sec" | "star-filled" | "star" | "switch-arrows" | "sync" | "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-neutral" | "smiley-sad" | "smiley-very-happy" | "smiley-very-sad" | "sms" | "support" | "user-admin" | "vcard" | "voicemail" | "battery" | "bluetooth" | "broadband" | "broken-phone" | "cast" | "cloud-connect" | "connected" | "core-router" | "daas-device" | "data-transfer" | "desktop" | "devices" | "esim-simcard" | "esim" | "face-id" | "fiber" | "fingerprint" | "fiveg" | "fourg" | "home-installation" | "industrial-iot" | "internet" | "it-service" | "laptop" | "mobile-broadband" | "network" | "phone-recycling" | "phone-ringing" | "phone" | "rack" | "refill-card" | "remote-control" | "repair" | "roaming" | "router" | "secure-device" | "sense-car" | "server" | "service-device" | "service-supervision" | "slow-wifi" | "smart-wifi" | "smartphone" | "smartwatch" | "tablet" | "trade-phone" | "tv" | "usb" | "voice-switch" | "wallplug" | "wireless-off" | "wireless-weak" | "wireless" | "world-alert" | "world-off" | "world-question" | "bar-chart" | "doc" | "document-doc" | "document-edit" | "document-pdf" | "document-ppt" | "excel" | "folder-copy" | "folder-new" | "folder" | "gif" | "graph" | "media-content" | "org-chart" | "pie-chart" | "print" | "register" | "report" | "simcard" | "spell-check" | "credit-card" | "euro" | "invoice" | "kontantkort" | "kr" | "late-payment" | "money-back-euro" | "money-back-kr" | "money-euro" | "money-kr" | "pay-monthly-euro" | "pay-monthly-kr" | "pay-once-euro" | "pay-once-kr" | "payment-success" | "savings" | "wallet" | "AI-star" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "activity-level" | "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" | "smart-connect" | "snowflake" | "speedometer" | "spyware" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "youtube" | "alert-filled" | "check-circle-filled" | "check-circle" | "error-filled" | "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
7
|
size?: ("sm" | "md" | "lg" | "xl" | "xs" | "font" | "xxs") | undefined;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -4,6 +4,7 @@ require("react/jsx-runtime");
|
|
|
4
4
|
require("clsx");
|
|
5
5
|
require("react");
|
|
6
6
|
require("./radio-card-group-root.cjs");
|
|
7
|
+
require("../metric-meter-experimental/metric-meter-experimental.cjs");
|
|
7
8
|
require("../footer/index.cjs");
|
|
8
9
|
require("../pagination/index.cjs");
|
|
9
10
|
require("../select/index.cjs");
|
|
@@ -12,6 +12,7 @@ const reactSlot = require("@radix-ui/react-slot");
|
|
|
12
12
|
const reactUseControllableState = require("@radix-ui/react-use-controllable-state");
|
|
13
13
|
const utils_generateStyling_index = require("../../utils/generate-styling/index.cjs");
|
|
14
14
|
const tokens_motion_variables = require("../../tokens/motion/variables.cjs");
|
|
15
|
+
require("../metric-meter-experimental/metric-meter-experimental.cjs");
|
|
15
16
|
require("../footer/index.cjs");
|
|
16
17
|
require("../pagination/index.cjs");
|
|
17
18
|
require("../select/index.cjs");
|
|
@@ -10,6 +10,7 @@ import { Slot } from "@radix-ui/react-slot";
|
|
|
10
10
|
import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
|
11
11
|
import { mergeStyles } from "../../utils/generate-styling/index.js";
|
|
12
12
|
import { teddyMotionDuration300 } from "../../tokens/motion/variables.js";
|
|
13
|
+
import "../metric-meter-experimental/metric-meter-experimental.js";
|
|
13
14
|
import "../footer/index.js";
|
|
14
15
|
import "../pagination/index.js";
|
|
15
16
|
import "../select/index.js";
|
|
@@ -5,6 +5,7 @@ require("clsx");
|
|
|
5
5
|
require("react");
|
|
6
6
|
require("./radio-card-group-root.cjs");
|
|
7
7
|
require("@radix-ui/react-radio-group");
|
|
8
|
+
require("../metric-meter-experimental/metric-meter-experimental.cjs");
|
|
8
9
|
require("../footer/index.cjs");
|
|
9
10
|
require("../pagination/index.cjs");
|
|
10
11
|
require("../select/index.cjs");
|
|
@@ -3,6 +3,7 @@ import "clsx";
|
|
|
3
3
|
import "react";
|
|
4
4
|
import "./radio-card-group-root.js";
|
|
5
5
|
import "@radix-ui/react-radio-group";
|
|
6
|
+
import "../metric-meter-experimental/metric-meter-experimental.js";
|
|
6
7
|
import "../footer/index.js";
|
|
7
8
|
import "../pagination/index.js";
|
|
8
9
|
import "../select/index.js";
|
|
@@ -3,7 +3,7 @@ import { ItemProps } from './scroll-area-item';
|
|
|
3
3
|
import { ButtonProps } from './scroll-area-button';
|
|
4
4
|
|
|
5
5
|
export declare const ScrollArea: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-scroll-area').ScrollAreaProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
6
|
-
variant?: ("
|
|
6
|
+
variant?: ("button" | "hidden" | "scrollbar") | undefined;
|
|
7
7
|
scrollBehavior?: "auto" | "smooth" | undefined;
|
|
8
8
|
viewPortClassName?: string | undefined;
|
|
9
9
|
barClassName?: string | undefined;
|
|
@@ -45,7 +45,7 @@ type TabsProps = {
|
|
|
45
45
|
* <Tabs.Content value="tab2">Content for second tab</Tabs.Content>
|
|
46
46
|
* </Tabs>
|
|
47
47
|
*/
|
|
48
|
-
declare const Tabs: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-tabs').TabsProps & import('react').RefAttributes<HTMLDivElement>, "ref">, "
|
|
48
|
+
declare const Tabs: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-tabs').TabsProps & import('react').RefAttributes<HTMLDivElement>, "ref">, "value" | "defaultValue" | "onValueChange" | "activationMode"> & {
|
|
49
49
|
value?: string | undefined;
|
|
50
50
|
onValueChange?: ((value: string) => void) | undefined;
|
|
51
51
|
defaultValue?: string | undefined;
|
|
@@ -34,7 +34,7 @@ type RootContextType = {
|
|
|
34
34
|
value: string | undefined;
|
|
35
35
|
};
|
|
36
36
|
export declare const RootContext: React.Context<RootContextType | undefined>;
|
|
37
|
-
export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref">, "
|
|
37
|
+
export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref">, "value" | "defaultValue" | "onValueChange" | "activationMode"> & {
|
|
38
38
|
/** The controlled value of the tab to activate. Should be used in conjunction with onValueChange. */
|
|
39
39
|
value?: TabsPrimitive.TabsProps['value'];
|
|
40
40
|
/** Event handler called when the value changes. */
|
|
@@ -5,7 +5,7 @@ export type ScrollProps = React.ComponentPropsWithoutRef<typeof ScrollArea>;
|
|
|
5
5
|
export declare const ScrollContext: React.Context<boolean>;
|
|
6
6
|
/** */
|
|
7
7
|
export declare const Scroll: React.ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-scroll-area').ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
8
|
-
variant?: ("
|
|
8
|
+
variant?: ("button" | "hidden" | "scrollbar") | undefined;
|
|
9
9
|
scrollBehavior?: "auto" | "smooth" | undefined;
|
|
10
10
|
viewPortClassName?: string | undefined;
|
|
11
11
|
barClassName?: string | undefined;
|
|
@@ -29,7 +29,7 @@ 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: "
|
|
32
|
+
name: "key" | "search" | "split" | "link" | "add" | "reverse" | "infinite" | "radio" | "visible" | "copy" | "help" | "zoom-out" | "filter" | "x" | "zoom" | "menu" | "map" | "summary" | "time" | "video" | "image" | "stop" | "alert" | "email" | "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "dislike" | "download" | "edit" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "play" | "remove-filled" | "remove" | "save" | "send" | "settings" | "share" | "shortcut" | "shuffle" | "skip-back-10sec" | "skip-back-30sec" | "skip-forward-10sec" | "skip-forward-30sec" | "star-filled" | "star" | "switch-arrows" | "sync" | "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-neutral" | "smiley-sad" | "smiley-very-happy" | "smiley-very-sad" | "sms" | "support" | "user-admin" | "vcard" | "voicemail" | "battery" | "bluetooth" | "broadband" | "broken-phone" | "cast" | "cloud-connect" | "connected" | "core-router" | "daas-device" | "data-transfer" | "desktop" | "devices" | "esim-simcard" | "esim" | "face-id" | "fiber" | "fingerprint" | "fiveg" | "fourg" | "home-installation" | "industrial-iot" | "internet" | "it-service" | "laptop" | "mobile-broadband" | "network" | "phone-recycling" | "phone-ringing" | "phone" | "rack" | "refill-card" | "remote-control" | "repair" | "roaming" | "router" | "secure-device" | "sense-car" | "server" | "service-device" | "service-supervision" | "slow-wifi" | "smart-wifi" | "smartphone" | "smartwatch" | "tablet" | "trade-phone" | "tv" | "usb" | "voice-switch" | "wallplug" | "wireless-off" | "wireless-weak" | "wireless" | "world-alert" | "world-off" | "world-question" | "bar-chart" | "doc" | "document-doc" | "document-edit" | "document-pdf" | "document-ppt" | "excel" | "folder-copy" | "folder-new" | "folder" | "gif" | "graph" | "media-content" | "org-chart" | "pie-chart" | "print" | "register" | "report" | "simcard" | "spell-check" | "credit-card" | "euro" | "invoice" | "kontantkort" | "kr" | "late-payment" | "money-back-euro" | "money-back-kr" | "money-euro" | "money-kr" | "pay-monthly-euro" | "pay-monthly-kr" | "pay-once-euro" | "pay-once-kr" | "payment-success" | "savings" | "wallet" | "AI-star" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "activity-level" | "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" | "smart-connect" | "snowflake" | "speedometer" | "spyware" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "youtube" | "alert-filled" | "check-circle-filled" | "check-circle" | "error-filled" | "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
33
|
size?: ("sm" | "md" | "lg" | "xl" | "xs" | "font" | "xxs") | undefined;
|
|
34
34
|
children?: React.ReactNode;
|
|
35
35
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
package/dist/main.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const components_metricMeterExperimental_metricMeterExperimental = require("./components/metric-meter-experimental/metric-meter-experimental.cjs");
|
|
3
4
|
const components_footer_index = require("./components/footer/index.cjs");
|
|
4
5
|
const components_pagination_index = require("./components/pagination/index.cjs");
|
|
5
6
|
const components_select_index = require("./components/select/index.cjs");
|
|
@@ -70,6 +71,7 @@ const tokens_spacing_variables = require("./tokens/spacing/variables.cjs");
|
|
|
70
71
|
const tokens_typography_variables = require("./tokens/typography/variables.cjs");
|
|
71
72
|
const sonner = require("sonner");
|
|
72
73
|
const components_input_inputGroup = require("./components/input/input-group.cjs");
|
|
74
|
+
exports.MetricMeterExperimental = components_metricMeterExperimental_metricMeterExperimental.MetricMeterExperimental;
|
|
73
75
|
exports.Footer = components_footer_index.Footer;
|
|
74
76
|
exports.Pagination = components_pagination_index.Pagination;
|
|
75
77
|
exports.Select = components_select_index.Select;
|
package/dist/main.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MetricMeterExperimental } from "./components/metric-meter-experimental/metric-meter-experimental.js";
|
|
1
2
|
import { Footer } from "./components/footer/index.js";
|
|
2
3
|
import { Pagination } from "./components/pagination/index.js";
|
|
3
4
|
import { Select } from "./components/select/index.js";
|
|
@@ -109,6 +110,7 @@ export {
|
|
|
109
110
|
List,
|
|
110
111
|
MeterBar,
|
|
111
112
|
MetricMeter,
|
|
113
|
+
MetricMeterExperimental,
|
|
112
114
|
M as Modal,
|
|
113
115
|
N as NavigationMenu,
|
|
114
116
|
Notabene,
|