@telia/teddy 0.0.83 → 0.0.88
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/README.md +4 -4
- 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/card/index.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/expandable-card/expandable-card-button.d.ts +2 -2
- package/dist/components/expandable-card/index.d.ts +3 -3
- package/dist/components/icon/AllIcons.cjs +3 -0
- package/dist/components/icon/AllIcons.js +3 -0
- package/dist/components/index.cjs +2 -2
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +2 -2
- 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-desktop.cjs +3 -0
- package/dist/components/navigation-menu/global-navigation/global-navigation-desktop.js +3 -0
- package/dist/components/navigation-menu/global-navigation/utils.cjs +1 -0
- package/dist/components/navigation-menu/global-navigation/utils.d.ts +2 -0
- package/dist/components/navigation-menu/global-navigation/utils.js +1 -0
- package/dist/components/navigation-menu/navigation-menu.cjs +1 -1
- package/dist/components/navigation-menu/navigation-menu.js +1 -1
- package/dist/components/notabene/notabene-icon.d.ts +2 -2
- package/dist/components/notification/notification.d.ts +2 -2
- package/dist/components/radio-card-group/radio-card-group-content.cjs +1 -1
- package/dist/components/radio-card-group/radio-card-group-content.js +1 -1
- package/dist/components/radio-card-group/radio-card-group-item-body.cjs +1 -1
- package/dist/components/radio-card-group/radio-card-group-item-body.js +1 -1
- package/dist/components/radio-card-group/radio-card-group-item-title.cjs +12 -8
- package/dist/components/radio-card-group/radio-card-group-item-title.js +12 -8
- package/dist/components/radio-card-group/radio-card-group-item.cjs +1 -1
- package/dist/components/radio-card-group/radio-card-group-item.js +1 -1
- package/dist/components/radio-card-group/radio-card-group-root.cjs +10 -10
- package/dist/components/radio-card-group/radio-card-group-root.js +10 -10
- package/dist/components/scroll-area/index.d.ts +2 -2
- package/dist/components/scroll-area/scroll-area-button.d.ts +2 -2
- package/dist/components/slider/index.cjs +4 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/index.js +4 -0
- package/dist/components/slider/slider.cjs +46 -0
- package/dist/components/slider/slider.d.ts +15 -0
- package/dist/components/slider/slider.js +29 -0
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tabs/tabs-scroll-button.d.ts +2 -2
- package/dist/components/text-field/index.d.ts +2 -2
- package/dist/components/text-field/text-field-button.d.ts +2 -2
- package/dist/components/toggle/toggle.d.ts +2 -2
- package/dist/main.cjs +9 -303
- package/dist/main.js +17 -311
- package/dist/style.css +653 -634
- package/dist/tokens/border/variables.cjs +13 -0
- package/dist/tokens/border/variables.js +14 -1
- package/dist/tokens/breakpoint/variables.cjs +8 -0
- package/dist/tokens/breakpoint/variables.js +9 -1
- package/dist/tokens/color/variables.cjs +230 -0
- package/dist/tokens/color/variables.js +231 -1
- package/dist/tokens/index.cjs +7 -301
- package/dist/tokens/index.d.ts +7 -7
- package/dist/tokens/index.js +14 -308
- package/dist/tokens/motion/variables.cjs +15 -0
- package/dist/tokens/motion/variables.js +16 -1
- package/dist/tokens/shadow/variables.cjs +8 -0
- package/dist/tokens/shadow/variables.js +9 -1
- package/dist/tokens/spacing/variables.cjs +27 -0
- package/dist/tokens/spacing/variables.js +28 -1
- package/dist/tokens/typography/variables.cjs +28 -0
- package/dist/tokens/typography/variables.js +29 -1
- 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 +3 -2
- package/dist/components/navigation-card/index.cjs +0 -10
- package/dist/components/navigation-card/index.d.ts +0 -15
- package/dist/components/navigation-card/index.js +0 -10
- package/dist/components/navigation-card/navigation-card-content.cjs +0 -49
- package/dist/components/navigation-card/navigation-card-content.d.ts +0 -10
- package/dist/components/navigation-card/navigation-card-content.js +0 -49
- package/dist/components/navigation-card/navigation-card-root.cjs +0 -32
- package/dist/components/navigation-card/navigation-card-root.d.ts +0 -6
- package/dist/components/navigation-card/navigation-card-root.js +0 -32
|
@@ -12,7 +12,6 @@ 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("../navigation-card/index.cjs");
|
|
16
15
|
require("../checkbox/index.cjs");
|
|
17
16
|
require("../toast/toast-root.cjs");
|
|
18
17
|
require("sonner");
|
|
@@ -59,6 +58,7 @@ const components_heading_heading = require("../heading/heading.cjs");
|
|
|
59
58
|
const components_textSpacing_textSpacing = require("../text-spacing/text-spacing.cjs");
|
|
60
59
|
require("../container/container.cjs");
|
|
61
60
|
require("../carousel/carousel-root.cjs");
|
|
61
|
+
require("../slider/slider.cjs");
|
|
62
62
|
const components_radioCardGroup_radioCardGroupIndicator = require("./radio-card-group-indicator.cjs");
|
|
63
63
|
const RadioGroupPrimitive = require("@radix-ui/react-radio-group");
|
|
64
64
|
const utils_useSize = require("../../utils/useSize.cjs");
|
|
@@ -1018,7 +1018,13 @@ const Desktop = React.forwardRef(() => {
|
|
|
1018
1018
|
rootContext.setPathname(subSubLink.link);
|
|
1019
1019
|
},
|
|
1020
1020
|
variant: "small",
|
|
1021
|
-
children: subSubLink.appKey === rootContext.appKey || rootContext.appKey === "storybook" ? /* @__PURE__ */ jsxRuntime.jsx(Link2, { href: subSubLink.link, children:
|
|
1021
|
+
children: subSubLink.appKey === rootContext.appKey || rootContext.appKey === "storybook" ? /* @__PURE__ */ jsxRuntime.jsx(Link2, { href: subSubLink.link, children: /* @__PURE__ */ jsxRuntime.jsxs(components_flex_flex.Flex, { as: "span", align: "center", gap: "25", children: [
|
|
1022
|
+
subSubLink.name,
|
|
1023
|
+
"icon" in subSubLink && /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: subSubLink.icon })
|
|
1024
|
+
] }) }) : /* @__PURE__ */ jsxRuntime.jsx("a", { href: subSubLink.link, children: /* @__PURE__ */ jsxRuntime.jsxs(components_flex_flex.Flex, { as: "span", align: "center", gap: "25", children: [
|
|
1025
|
+
subSubLink.name,
|
|
1026
|
+
"icon" in subSubLink && /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: subSubLink.icon })
|
|
1027
|
+
] }) })
|
|
1022
1028
|
}
|
|
1023
1029
|
) }, subSubLink.name)) }) })
|
|
1024
1030
|
] }, subLink.name);
|
|
@@ -1136,14 +1142,12 @@ function Mobile(props) {
|
|
|
1136
1142
|
(_a3 = drawerRef.current) == null ? void 0 : _a3.click();
|
|
1137
1143
|
rootContext.setPathname(subSubLink.link);
|
|
1138
1144
|
},
|
|
1139
|
-
children: subSubLink.appKey === rootContext.appKey || rootContext.appKey === "storybook" ? /* @__PURE__ */ jsxRuntime.jsx(NavLink, { href: subSubLink.link, children: /* @__PURE__ */ jsxRuntime.jsxs(components_flex_flex.Flex, { as: "span", gap: "100", children: [
|
|
1145
|
+
children: subSubLink.appKey === rootContext.appKey || rootContext.appKey === "storybook" ? /* @__PURE__ */ jsxRuntime.jsx(NavLink, { href: subSubLink.link, children: /* @__PURE__ */ jsxRuntime.jsxs(components_flex_flex.Flex, { as: "span", gap: "icon" in subSubLink ? "25" : "100", align: "center", children: [
|
|
1140
1146
|
subSubLink.name,
|
|
1141
|
-
" "
|
|
1142
|
-
|
|
1143
|
-
] }) }) : /* @__PURE__ */ jsxRuntime.jsx("a", { href: subSubLink.link, children: /* @__PURE__ */ jsxRuntime.jsxs(components_flex_flex.Flex, { as: "span", gap: "100", children: [
|
|
1147
|
+
"icon" in subSubLink ? /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: subSubLink.icon }) : /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: "arrow-right" })
|
|
1148
|
+
] }) }) : /* @__PURE__ */ jsxRuntime.jsx("a", { href: subSubLink.link, children: /* @__PURE__ */ jsxRuntime.jsxs(components_flex_flex.Flex, { as: "span", gap: "icon" in subSubLink ? "25" : "100", align: "center", children: [
|
|
1144
1149
|
subSubLink.name,
|
|
1145
|
-
" "
|
|
1146
|
-
/* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: "arrow-right" })
|
|
1150
|
+
"icon" in subSubLink ? /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: subSubLink.icon }) : /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: "arrow-right" })
|
|
1147
1151
|
] }) })
|
|
1148
1152
|
}
|
|
1149
1153
|
) }, subSubLink.name)) }) })
|
|
@@ -10,7 +10,6 @@ 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 "../navigation-card/index.js";
|
|
14
13
|
import "../checkbox/index.js";
|
|
15
14
|
import "../toast/toast-root.js";
|
|
16
15
|
import "sonner";
|
|
@@ -57,6 +56,7 @@ import { Heading } from "../heading/heading.js";
|
|
|
57
56
|
import { TextSpacing } from "../text-spacing/text-spacing.js";
|
|
58
57
|
import "../container/container.js";
|
|
59
58
|
import "../carousel/carousel-root.js";
|
|
59
|
+
import "../slider/slider.js";
|
|
60
60
|
import { Indicator as Indicator$1 } from "./radio-card-group-indicator.js";
|
|
61
61
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
62
62
|
import { useSize } from "../../utils/useSize.js";
|
|
@@ -997,7 +997,13 @@ const Desktop = React__default.forwardRef(() => {
|
|
|
997
997
|
rootContext.setPathname(subSubLink.link);
|
|
998
998
|
},
|
|
999
999
|
variant: "small",
|
|
1000
|
-
children: subSubLink.appKey === rootContext.appKey || rootContext.appKey === "storybook" ? /* @__PURE__ */ jsx(Link2, { href: subSubLink.link, children:
|
|
1000
|
+
children: subSubLink.appKey === rootContext.appKey || rootContext.appKey === "storybook" ? /* @__PURE__ */ jsx(Link2, { href: subSubLink.link, children: /* @__PURE__ */ jsxs(Flex, { as: "span", align: "center", gap: "25", children: [
|
|
1001
|
+
subSubLink.name,
|
|
1002
|
+
"icon" in subSubLink && /* @__PURE__ */ jsx(Icon, { name: subSubLink.icon })
|
|
1003
|
+
] }) }) : /* @__PURE__ */ jsx("a", { href: subSubLink.link, children: /* @__PURE__ */ jsxs(Flex, { as: "span", align: "center", gap: "25", children: [
|
|
1004
|
+
subSubLink.name,
|
|
1005
|
+
"icon" in subSubLink && /* @__PURE__ */ jsx(Icon, { name: subSubLink.icon })
|
|
1006
|
+
] }) })
|
|
1001
1007
|
}
|
|
1002
1008
|
) }, subSubLink.name)) }) })
|
|
1003
1009
|
] }, subLink.name);
|
|
@@ -1115,14 +1121,12 @@ function Mobile(props) {
|
|
|
1115
1121
|
(_a3 = drawerRef.current) == null ? void 0 : _a3.click();
|
|
1116
1122
|
rootContext.setPathname(subSubLink.link);
|
|
1117
1123
|
},
|
|
1118
|
-
children: subSubLink.appKey === rootContext.appKey || rootContext.appKey === "storybook" ? /* @__PURE__ */ jsx(NavLink, { href: subSubLink.link, children: /* @__PURE__ */ jsxs(Flex, { as: "span", gap: "100", children: [
|
|
1124
|
+
children: subSubLink.appKey === rootContext.appKey || rootContext.appKey === "storybook" ? /* @__PURE__ */ jsx(NavLink, { href: subSubLink.link, children: /* @__PURE__ */ jsxs(Flex, { as: "span", gap: "icon" in subSubLink ? "25" : "100", align: "center", children: [
|
|
1119
1125
|
subSubLink.name,
|
|
1120
|
-
" "
|
|
1121
|
-
|
|
1122
|
-
] }) }) : /* @__PURE__ */ jsx("a", { href: subSubLink.link, children: /* @__PURE__ */ jsxs(Flex, { as: "span", gap: "100", children: [
|
|
1126
|
+
"icon" in subSubLink ? /* @__PURE__ */ jsx(Icon, { name: subSubLink.icon }) : /* @__PURE__ */ jsx(Icon, { name: "arrow-right" })
|
|
1127
|
+
] }) }) : /* @__PURE__ */ jsx("a", { href: subSubLink.link, children: /* @__PURE__ */ jsxs(Flex, { as: "span", gap: "icon" in subSubLink ? "25" : "100", align: "center", children: [
|
|
1123
1128
|
subSubLink.name,
|
|
1124
|
-
" "
|
|
1125
|
-
/* @__PURE__ */ jsx(Icon, { name: "arrow-right" })
|
|
1129
|
+
"icon" in subSubLink ? /* @__PURE__ */ jsx(Icon, { name: subSubLink.icon }) : /* @__PURE__ */ jsx(Icon, { name: "arrow-right" })
|
|
1126
1130
|
] }) })
|
|
1127
1131
|
}
|
|
1128
1132
|
) }, subSubLink.name)) }) })
|
|
@@ -5,7 +5,6 @@ require("clsx");
|
|
|
5
5
|
require("react");
|
|
6
6
|
require("./radio-card-group-root.cjs");
|
|
7
7
|
require("@radix-ui/react-radio-group");
|
|
8
|
-
require("../navigation-card/index.cjs");
|
|
9
8
|
require("../checkbox/index.cjs");
|
|
10
9
|
require("../toast/toast-root.cjs");
|
|
11
10
|
require("sonner");
|
|
@@ -50,6 +49,7 @@ require("../visually-hidden/visually-hidden.cjs");
|
|
|
50
49
|
require("../text-spacing/text-spacing.cjs");
|
|
51
50
|
require("../container/container.cjs");
|
|
52
51
|
require("../carousel/carousel-root.cjs");
|
|
52
|
+
require("../slider/slider.cjs");
|
|
53
53
|
require("../../utils/composeRefs.cjs");
|
|
54
54
|
exports.Item = components_radioCardGroup_radioCardGroupItemTitle.Item;
|
|
55
55
|
exports.ItemContext = components_radioCardGroup_radioCardGroupItemTitle.ItemContext;
|
|
@@ -3,7 +3,6 @@ import "clsx";
|
|
|
3
3
|
import "react";
|
|
4
4
|
import "./radio-card-group-root.js";
|
|
5
5
|
import "@radix-ui/react-radio-group";
|
|
6
|
-
import "../navigation-card/index.js";
|
|
7
6
|
import "../checkbox/index.js";
|
|
8
7
|
import "../toast/toast-root.js";
|
|
9
8
|
import "sonner";
|
|
@@ -48,6 +47,7 @@ import "../visually-hidden/visually-hidden.js";
|
|
|
48
47
|
import "../text-spacing/text-spacing.js";
|
|
49
48
|
import "../container/container.js";
|
|
50
49
|
import "../carousel/carousel-root.js";
|
|
50
|
+
import "../slider/slider.js";
|
|
51
51
|
import "../../utils/composeRefs.js";
|
|
52
52
|
export {
|
|
53
53
|
a as Item,
|
|
@@ -22,16 +22,16 @@ function _interopNamespaceDefault(e) {
|
|
|
22
22
|
}
|
|
23
23
|
const RadioGroupPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(RadioGroupPrimitive);
|
|
24
24
|
const styles = {
|
|
25
|
-
"teddy-radio-card-group": "_teddy-radio-card-
|
|
26
|
-
"teddy-radio-card-group__card-group-label": "_teddy-radio-card-group__card-group-
|
|
27
|
-
"teddy-radio-card-group__content-wrapper": "_teddy-radio-card-group__content-
|
|
28
|
-
"teddy-radio-card-group__title-wrapper": "_teddy-radio-card-group__title-
|
|
29
|
-
"teddy-radio-card-group__content": "_teddy-radio-card-
|
|
30
|
-
"teddy-radio-card-group__card-item": "_teddy-radio-card-group__card-
|
|
31
|
-
"teddy-radio-card-group__trigger": "_teddy-radio-card-
|
|
32
|
-
"teddy-radio-card-group__indicator": "_teddy-radio-card-
|
|
33
|
-
"teddy-radio-card-group__illustration": "_teddy-radio-card-
|
|
34
|
-
"teddy-radio-card-group__card-group-label--required": "_teddy-radio-card-group__card-group-label--
|
|
25
|
+
"teddy-radio-card-group": "_teddy-radio-card-group_upgkn_1",
|
|
26
|
+
"teddy-radio-card-group__card-group-label": "_teddy-radio-card-group__card-group-label_upgkn_9",
|
|
27
|
+
"teddy-radio-card-group__content-wrapper": "_teddy-radio-card-group__content-wrapper_upgkn_9",
|
|
28
|
+
"teddy-radio-card-group__title-wrapper": "_teddy-radio-card-group__title-wrapper_upgkn_12",
|
|
29
|
+
"teddy-radio-card-group__content": "_teddy-radio-card-group__content_upgkn_9",
|
|
30
|
+
"teddy-radio-card-group__card-item": "_teddy-radio-card-group__card-item_upgkn_18",
|
|
31
|
+
"teddy-radio-card-group__trigger": "_teddy-radio-card-group__trigger_upgkn_49",
|
|
32
|
+
"teddy-radio-card-group__indicator": "_teddy-radio-card-group__indicator_upgkn_133",
|
|
33
|
+
"teddy-radio-card-group__illustration": "_teddy-radio-card-group__illustration_upgkn_160",
|
|
34
|
+
"teddy-radio-card-group__card-group-label--required": "_teddy-radio-card-group__card-group-label--required_upgkn_177"
|
|
35
35
|
};
|
|
36
36
|
const rootClassName = "teddy-radio-card-group";
|
|
37
37
|
const RootContext = React.createContext(void 0);
|
|
@@ -3,16 +3,16 @@ import React__default from "react";
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
5
5
|
const styles = {
|
|
6
|
-
"teddy-radio-card-group": "_teddy-radio-card-
|
|
7
|
-
"teddy-radio-card-group__card-group-label": "_teddy-radio-card-group__card-group-
|
|
8
|
-
"teddy-radio-card-group__content-wrapper": "_teddy-radio-card-group__content-
|
|
9
|
-
"teddy-radio-card-group__title-wrapper": "_teddy-radio-card-group__title-
|
|
10
|
-
"teddy-radio-card-group__content": "_teddy-radio-card-
|
|
11
|
-
"teddy-radio-card-group__card-item": "_teddy-radio-card-group__card-
|
|
12
|
-
"teddy-radio-card-group__trigger": "_teddy-radio-card-
|
|
13
|
-
"teddy-radio-card-group__indicator": "_teddy-radio-card-
|
|
14
|
-
"teddy-radio-card-group__illustration": "_teddy-radio-card-
|
|
15
|
-
"teddy-radio-card-group__card-group-label--required": "_teddy-radio-card-group__card-group-label--
|
|
6
|
+
"teddy-radio-card-group": "_teddy-radio-card-group_upgkn_1",
|
|
7
|
+
"teddy-radio-card-group__card-group-label": "_teddy-radio-card-group__card-group-label_upgkn_9",
|
|
8
|
+
"teddy-radio-card-group__content-wrapper": "_teddy-radio-card-group__content-wrapper_upgkn_9",
|
|
9
|
+
"teddy-radio-card-group__title-wrapper": "_teddy-radio-card-group__title-wrapper_upgkn_12",
|
|
10
|
+
"teddy-radio-card-group__content": "_teddy-radio-card-group__content_upgkn_9",
|
|
11
|
+
"teddy-radio-card-group__card-item": "_teddy-radio-card-group__card-item_upgkn_18",
|
|
12
|
+
"teddy-radio-card-group__trigger": "_teddy-radio-card-group__trigger_upgkn_49",
|
|
13
|
+
"teddy-radio-card-group__indicator": "_teddy-radio-card-group__indicator_upgkn_133",
|
|
14
|
+
"teddy-radio-card-group__illustration": "_teddy-radio-card-group__illustration_upgkn_160",
|
|
15
|
+
"teddy-radio-card-group__card-group-label--required": "_teddy-radio-card-group__card-group-label--required_upgkn_177"
|
|
16
16
|
};
|
|
17
17
|
const rootClassName = "teddy-radio-card-group";
|
|
18
18
|
const RootContext = React__default.createContext(void 0);
|
|
@@ -19,7 +19,7 @@ export declare const ScrollArea: import('react').ForwardRefExoticComponent<Omit<
|
|
|
19
19
|
loading?: boolean | undefined;
|
|
20
20
|
fullWidth?: boolean | undefined;
|
|
21
21
|
size?: "sm" | "md" | "lg" | undefined;
|
|
22
|
-
variant?: "text" | "
|
|
22
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
23
23
|
} & {
|
|
24
24
|
iconOnly: true;
|
|
25
25
|
"aria-label": string;
|
|
@@ -30,7 +30,7 @@ export declare const ScrollArea: import('react').ForwardRefExoticComponent<Omit<
|
|
|
30
30
|
loading?: boolean | undefined;
|
|
31
31
|
fullWidth?: boolean | undefined;
|
|
32
32
|
size?: "sm" | "md" | "lg" | undefined;
|
|
33
|
-
variant?: "text" | "
|
|
33
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
34
34
|
} & {
|
|
35
35
|
iconOnly?: false | undefined;
|
|
36
36
|
"aria-label"?: string | undefined;
|
|
@@ -17,7 +17,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
17
17
|
loading?: boolean | undefined;
|
|
18
18
|
fullWidth?: boolean | undefined; /** Hidden will fade the button out. Used when the scrollbar is at the end */
|
|
19
19
|
size?: "sm" | "md" | "lg" | undefined;
|
|
20
|
-
variant?: "text" | "
|
|
20
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
21
21
|
} & {
|
|
22
22
|
iconOnly: true;
|
|
23
23
|
"aria-label": string;
|
|
@@ -28,7 +28,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
28
28
|
loading?: boolean | undefined;
|
|
29
29
|
fullWidth?: boolean | undefined; /** Hidden will fade the button out. Used when the scrollbar is at the end */
|
|
30
30
|
size?: "sm" | "md" | "lg" | undefined;
|
|
31
|
-
variant?: "text" | "
|
|
31
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
32
32
|
} & {
|
|
33
33
|
iconOnly?: false | undefined;
|
|
34
34
|
"aria-label"?: string | undefined;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const clsx = require("clsx");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
const PrimitiveSlider = require("@radix-ui/react-slider");
|
|
7
|
+
const components_box_box = require("../box/box.cjs");
|
|
8
|
+
function _interopNamespaceDefault(e) {
|
|
9
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
10
|
+
if (e) {
|
|
11
|
+
for (const k in e) {
|
|
12
|
+
if (k !== "default") {
|
|
13
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: () => e[k]
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
n.default = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
const PrimitiveSlider__namespace = /* @__PURE__ */ _interopNamespaceDefault(PrimitiveSlider);
|
|
25
|
+
const styles = {
|
|
26
|
+
"teddy-slider": "_teddy-slider_96kxz_1",
|
|
27
|
+
"teddy-slider__track": "_teddy-slider__track_96kxz_10",
|
|
28
|
+
"teddy-slider__range": "_teddy-slider__range_96kxz_17",
|
|
29
|
+
"teddy-slider__thumb": "_teddy-slider__thumb_96kxz_23"
|
|
30
|
+
};
|
|
31
|
+
const rootClassName = "teddy-slider";
|
|
32
|
+
const Slider = React.forwardRef(
|
|
33
|
+
({ className, ...props }, forwardRef) => {
|
|
34
|
+
const classes = clsx([styles[`${rootClassName}`]], [styles[``]], className);
|
|
35
|
+
const value = props.value || props.defaultValue || [];
|
|
36
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components_box_box.Box, { mb: "200", mt: "200", asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(PrimitiveSlider__namespace.Root, { ...props, ref: forwardRef, className: classes, children: [
|
|
37
|
+
/* @__PURE__ */ jsxRuntime.jsx(PrimitiveSlider__namespace.Track, { className: styles[`${rootClassName}__track`], children: /* @__PURE__ */ jsxRuntime.jsx(PrimitiveSlider__namespace.Range, { className: styles[`${rootClassName}__range`] }) }),
|
|
38
|
+
/* @__PURE__ */ jsxRuntime.jsx(PrimitiveSlider__namespace.Thumb, { className: styles[`${rootClassName}__thumb`] }),
|
|
39
|
+
/* @__PURE__ */ jsxRuntime.jsx(PrimitiveSlider__namespace.Thumb, { className: styles[`${rootClassName}__thumb`] }),
|
|
40
|
+
value.map((_, i) => /* @__PURE__ */ jsxRuntime.jsx(PrimitiveSlider__namespace.Thumb, {}, `teddy-slider-thumb-${i}`))
|
|
41
|
+
] }) });
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
Slider.displayName = "Slider";
|
|
45
|
+
exports.Slider = Slider;
|
|
46
|
+
exports.rootClassName = rootClassName;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
import * as PrimitiveSlider from '@radix-ui/react-slider';
|
|
4
|
+
export declare const rootClassName = "teddy-slider";
|
|
5
|
+
/** -------------------------------------------------------------------------------------------------
|
|
6
|
+
* Slider
|
|
7
|
+
* -----------------------------------------------------------------------------------------------*/
|
|
8
|
+
export type Variant = 'attention' | 'special' | 'neutral' | 'information' | 'success' | 'warning' | 'error';
|
|
9
|
+
type SliderProps = React.ComponentPropsWithoutRef<typeof PrimitiveSlider.Root>;
|
|
10
|
+
/**
|
|
11
|
+
* A slider track that can display one or two draggable thumbs.
|
|
12
|
+
*/
|
|
13
|
+
declare const Slider: React.ForwardRefExoticComponent<Omit<PrimitiveSlider.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
14
|
+
export { Slider };
|
|
15
|
+
export type { SliderProps };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import React__default from "react";
|
|
4
|
+
import * as PrimitiveSlider from "@radix-ui/react-slider";
|
|
5
|
+
import { Box } from "../box/box.js";
|
|
6
|
+
const styles = {
|
|
7
|
+
"teddy-slider": "_teddy-slider_96kxz_1",
|
|
8
|
+
"teddy-slider__track": "_teddy-slider__track_96kxz_10",
|
|
9
|
+
"teddy-slider__range": "_teddy-slider__range_96kxz_17",
|
|
10
|
+
"teddy-slider__thumb": "_teddy-slider__thumb_96kxz_23"
|
|
11
|
+
};
|
|
12
|
+
const rootClassName = "teddy-slider";
|
|
13
|
+
const Slider = React__default.forwardRef(
|
|
14
|
+
({ className, ...props }, forwardRef) => {
|
|
15
|
+
const classes = clsx([styles[`${rootClassName}`]], [styles[``]], className);
|
|
16
|
+
const value = props.value || props.defaultValue || [];
|
|
17
|
+
return /* @__PURE__ */ jsx(Box, { mb: "200", mt: "200", asChild: true, children: /* @__PURE__ */ jsxs(PrimitiveSlider.Root, { ...props, ref: forwardRef, className: classes, children: [
|
|
18
|
+
/* @__PURE__ */ jsx(PrimitiveSlider.Track, { className: styles[`${rootClassName}__track`], children: /* @__PURE__ */ jsx(PrimitiveSlider.Range, { className: styles[`${rootClassName}__range`] }) }),
|
|
19
|
+
/* @__PURE__ */ jsx(PrimitiveSlider.Thumb, { className: styles[`${rootClassName}__thumb`] }),
|
|
20
|
+
/* @__PURE__ */ jsx(PrimitiveSlider.Thumb, { className: styles[`${rootClassName}__thumb`] }),
|
|
21
|
+
value.map((_, i) => /* @__PURE__ */ jsx(PrimitiveSlider.Thumb, {}, `teddy-slider-thumb-${i}`))
|
|
22
|
+
] }) });
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
Slider.displayName = "Slider";
|
|
26
|
+
export {
|
|
27
|
+
Slider,
|
|
28
|
+
rootClassName
|
|
29
|
+
};
|
|
@@ -34,7 +34,7 @@ export declare const Tabs: import('react').ForwardRefExoticComponent<Omit<Omit<i
|
|
|
34
34
|
loading?: boolean | undefined;
|
|
35
35
|
fullWidth?: boolean | undefined;
|
|
36
36
|
size?: "sm" | "md" | "lg" | undefined;
|
|
37
|
-
variant?: "text" | "
|
|
37
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
38
38
|
} & {
|
|
39
39
|
iconOnly: true;
|
|
40
40
|
"aria-label": string;
|
|
@@ -45,7 +45,7 @@ export declare const Tabs: import('react').ForwardRefExoticComponent<Omit<Omit<i
|
|
|
45
45
|
loading?: boolean | undefined;
|
|
46
46
|
fullWidth?: boolean | undefined;
|
|
47
47
|
size?: "sm" | "md" | "lg" | undefined;
|
|
48
|
-
variant?: "text" | "
|
|
48
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
49
49
|
} & {
|
|
50
50
|
iconOnly?: false | undefined;
|
|
51
51
|
"aria-label"?: string | undefined;
|
|
@@ -10,7 +10,7 @@ export declare const ScrollButton: React.ForwardRefExoticComponent<Omit<Omit<Omi
|
|
|
10
10
|
loading?: boolean | undefined;
|
|
11
11
|
fullWidth?: boolean | undefined;
|
|
12
12
|
size?: "sm" | "md" | "lg" | undefined;
|
|
13
|
-
variant?: "text" | "
|
|
13
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
14
14
|
} & {
|
|
15
15
|
iconOnly: true;
|
|
16
16
|
"aria-label": string;
|
|
@@ -21,7 +21,7 @@ export declare const ScrollButton: React.ForwardRefExoticComponent<Omit<Omit<Omi
|
|
|
21
21
|
loading?: boolean | undefined;
|
|
22
22
|
fullWidth?: boolean | undefined;
|
|
23
23
|
size?: "sm" | "md" | "lg" | undefined;
|
|
24
|
-
variant?: "text" | "
|
|
24
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
25
25
|
} & {
|
|
26
26
|
iconOnly?: false | undefined;
|
|
27
27
|
"aria-label"?: string | undefined;
|
|
@@ -34,7 +34,7 @@ export declare const TextField: import('react').ForwardRefExoticComponent<Omit<i
|
|
|
34
34
|
loading?: boolean | undefined;
|
|
35
35
|
fullWidth?: boolean | undefined;
|
|
36
36
|
size?: "sm" | "md" | "lg" | undefined;
|
|
37
|
-
variant?: "text" | "
|
|
37
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
38
38
|
} & {
|
|
39
39
|
iconOnly: true;
|
|
40
40
|
"aria-label": string;
|
|
@@ -45,7 +45,7 @@ export declare const TextField: import('react').ForwardRefExoticComponent<Omit<i
|
|
|
45
45
|
loading?: boolean | undefined;
|
|
46
46
|
fullWidth?: boolean | undefined;
|
|
47
47
|
size?: "sm" | "md" | "lg" | undefined;
|
|
48
|
-
variant?: "text" | "
|
|
48
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
49
49
|
} & {
|
|
50
50
|
iconOnly?: false | undefined;
|
|
51
51
|
"aria-label"?: string | undefined;
|
|
@@ -11,7 +11,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
11
11
|
loading?: boolean | undefined;
|
|
12
12
|
fullWidth?: boolean | undefined;
|
|
13
13
|
size?: "sm" | "md" | "lg" | undefined;
|
|
14
|
-
variant?: "text" | "
|
|
14
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
iconOnly: true;
|
|
17
17
|
"aria-label": string;
|
|
@@ -22,7 +22,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
22
22
|
loading?: boolean | undefined;
|
|
23
23
|
fullWidth?: boolean | undefined;
|
|
24
24
|
size?: "sm" | "md" | "lg" | undefined;
|
|
25
|
-
variant?: "text" | "
|
|
25
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
26
26
|
} & {
|
|
27
27
|
iconOnly?: false | undefined;
|
|
28
28
|
"aria-label"?: string | 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: "link" | "map" | "menu" | "search" | "summary" | "time" | "video" | "filter" | "image" | "stop" | "key" | "
|
|
33
|
-
size?: ("xxs" | "xs" | "sm" | "md" | "lg" | "xl"
|
|
32
|
+
name: "link" | "map" | "menu" | "search" | "summary" | "time" | "video" | "filter" | "image" | "stop" | "key" | "x" | "download" | "split" | "alert" | "radio" | "email" | "copy" | "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" | "visible" | "volume" | "zoom-out" | "zoom" | "connected-building" | "home" | "hospital" | "industry" | "premises-datacenter" | "premises-large" | "premises-medium" | "premises-small" | "premises" | "store" | "address-book" | "b2b-customer" | "care" | "chat-robot" | "chat" | "child-1" | "child-2" | "conversation" | "customer-dialogue" | "dsl-hub" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-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" | "layers" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "recycle" | "reservation" | "reverse" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "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" | "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
|
};
|