@telia/teddy 0.0.63 → 0.0.64
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/checkbox/checkbox-group-item.cjs +2 -2
- package/dist/components/checkbox/checkbox-group-item.d.ts +1 -1
- package/dist/components/checkbox/checkbox-group-item.js +2 -2
- package/dist/components/checkbox/checkbox-group-label.cjs +2 -2
- package/dist/components/checkbox/checkbox-group-label.js +1 -1
- package/dist/components/checkbox/checkbox-group.cjs +1 -1
- package/dist/components/checkbox/checkbox-group.js +1 -1
- package/dist/components/checkbox/checkbox-indicator.cjs +4 -4
- package/dist/components/checkbox/checkbox-indicator.js +1 -1
- package/dist/components/checkbox/{checkbox-label.cjs → checkbox-root.cjs} +3 -3
- package/dist/components/checkbox/{checkbox-label.d.ts → checkbox-root.d.ts} +2 -2
- package/dist/components/checkbox/{checkbox-label.js → checkbox-root.js} +3 -3
- package/dist/components/checkbox/checkbox-trigger.cjs +2 -2
- package/dist/components/checkbox/checkbox-trigger.js +1 -1
- package/dist/components/checkbox/index.cjs +5 -3
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/index.js +5 -3
- package/dist/components/navigation-menu/global-navigation/utils.cjs +10 -10
- package/dist/components/navigation-menu/global-navigation/utils.d.ts +16 -0
- package/dist/components/navigation-menu/global-navigation/utils.js +10 -10
- package/dist/components/toast/toast-root.cjs +75 -73
- package/dist/components/toast/toast-root.js +75 -73
- package/dist/style.css +204 -179
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
|
-
const
|
|
5
|
+
const components_checkbox_checkboxRoot = require("./checkbox-root.cjs");
|
|
6
6
|
const components_checkbox_checkboxTrigger = require("./checkbox-trigger.cjs");
|
|
7
7
|
const components_checkbox_checkboxGroup = require("./checkbox-group.cjs");
|
|
8
8
|
const components_flex_flex = require("../flex/flex.cjs");
|
|
@@ -30,7 +30,7 @@ const Item = React.forwardRef(
|
|
|
30
30
|
isRegistered.current = true;
|
|
31
31
|
}
|
|
32
32
|
}, [listContext.parentValue, value, rootContext, id]);
|
|
33
|
-
return /* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { direction: "column", ml: `calc(${listContext.level - 1} * ${tokens_spacing_variables.teddySpacing250})`, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
33
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { direction: "column", ml: `calc(${listContext.level - 1} * ${tokens_spacing_variables.teddySpacing250})`, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(components_checkbox_checkboxRoot.Root, { ref: forwardedRef, ...props, children: [
|
|
34
34
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35
35
|
components_checkbox_checkboxTrigger.Trigger,
|
|
36
36
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useContext, useRef, useId, useEffect } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { Root } from "./checkbox-root.js";
|
|
4
4
|
import { Trigger } from "./checkbox-trigger.js";
|
|
5
5
|
import { CheckboxGroupContext } from "./checkbox-group.js";
|
|
6
6
|
import { Flex } from "../flex/flex.js";
|
|
@@ -28,7 +28,7 @@ const Item = React__default.forwardRef(
|
|
|
28
28
|
isRegistered.current = true;
|
|
29
29
|
}
|
|
30
30
|
}, [listContext.parentValue, value, rootContext, id]);
|
|
31
|
-
return /* @__PURE__ */ jsx(Flex, { direction: "column", ml: `calc(${listContext.level - 1} * ${teddySpacing250})`, asChild: true, children: /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
|
|
31
|
+
return /* @__PURE__ */ jsx(Flex, { direction: "column", ml: `calc(${listContext.level - 1} * ${teddySpacing250})`, asChild: true, children: /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Root, { ref: forwardedRef, ...props, children: [
|
|
32
32
|
/* @__PURE__ */ jsx(
|
|
33
33
|
Trigger,
|
|
34
34
|
{
|
|
@@ -4,14 +4,14 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const components_checkbox_checkboxGroup = require("./checkbox-group.cjs");
|
|
6
6
|
const clsx = require("clsx");
|
|
7
|
-
const
|
|
7
|
+
const components_checkbox_checkboxRoot = require("./checkbox-root.cjs");
|
|
8
8
|
const components_label_label = require("../label/label.cjs");
|
|
9
9
|
const components_text_text = require("../text/text.cjs");
|
|
10
10
|
const GroupLabel = React.forwardRef((props, forwardedRef) => {
|
|
11
11
|
const rootContext = React.useContext(components_checkbox_checkboxGroup.CheckboxGroupContext);
|
|
12
12
|
const fallbackId = React.useId();
|
|
13
13
|
const id = props.id || fallbackId;
|
|
14
|
-
const classes = clsx([
|
|
14
|
+
const classes = clsx([components_checkbox_checkboxRoot.styles[`${components_checkbox_checkboxRoot.rootClassName}__label`]], props.className);
|
|
15
15
|
React.useEffect(() => {
|
|
16
16
|
rootContext == null ? void 0 : rootContext.setLabelId(id);
|
|
17
17
|
}, [id, rootContext]);
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default, { useId } from "react";
|
|
3
3
|
import { CheckboxGroupContext } from "./checkbox-group.js";
|
|
4
4
|
import clsx from "clsx";
|
|
5
|
-
import { s as styles, rootClassName } from "./checkbox-
|
|
5
|
+
import { s as styles, rootClassName } from "./checkbox-root.js";
|
|
6
6
|
import { Label } from "../label/label.js";
|
|
7
7
|
import { Text } from "../text/text.js";
|
|
8
8
|
const GroupLabel = React__default.forwardRef((props, forwardedRef) => {
|
|
@@ -120,6 +120,6 @@ const Group = React.forwardRef(
|
|
|
120
120
|
}
|
|
121
121
|
);
|
|
122
122
|
const CheckboxGroupContext = React.createContext(void 0);
|
|
123
|
-
Group.displayName = "
|
|
123
|
+
Group.displayName = "Group";
|
|
124
124
|
exports.CheckboxGroupContext = CheckboxGroupContext;
|
|
125
125
|
exports.Group = Group;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
|
-
const
|
|
6
|
+
const components_checkbox_checkboxRoot = require("./checkbox-root.cjs");
|
|
7
7
|
const CheckboxPrimitive = require("@radix-ui/react-checkbox");
|
|
8
8
|
require("../../assets/sprite.269ba410-teddy.svg");
|
|
9
9
|
const components_icon_icon = require("../icon/icon.cjs");
|
|
@@ -26,10 +26,10 @@ function _interopNamespaceDefault(e) {
|
|
|
26
26
|
const CheckboxPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(CheckboxPrimitive);
|
|
27
27
|
const Indicator = React.forwardRef(
|
|
28
28
|
({ className, ...props }, forwardRef) => {
|
|
29
|
-
const classes = clsx([
|
|
29
|
+
const classes = clsx([components_checkbox_checkboxRoot.styles[`${components_checkbox_checkboxRoot.rootClassName}__indicator`]], className);
|
|
30
30
|
return /* @__PURE__ */ jsxRuntime.jsxs(CheckboxPrimitive__namespace.Indicator, { ...props, ref: forwardRef, className: classes, children: [
|
|
31
|
-
/* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: "checkmark-bold", className: clsx(
|
|
32
|
-
/* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: "minus-bold", className: clsx(
|
|
31
|
+
/* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: "checkmark-bold", className: clsx(components_checkbox_checkboxRoot.styles[`${components_checkbox_checkboxRoot.rootClassName}__indicator-icon-checked`]) }),
|
|
32
|
+
/* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: "minus-bold", className: clsx(components_checkbox_checkboxRoot.styles[`${components_checkbox_checkboxRoot.rootClassName}__indicator-icon-indeterminate`]) })
|
|
33
33
|
] });
|
|
34
34
|
}
|
|
35
35
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import { s as styles, rootClassName } from "./checkbox-
|
|
4
|
+
import { s as styles, rootClassName } from "./checkbox-root.js";
|
|
5
5
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
6
6
|
import "../../assets/sprite.269ba410-teddy.svg";
|
|
7
7
|
import { Icon } from "../icon/icon.js";
|
|
@@ -13,7 +13,7 @@ const styles = {
|
|
|
13
13
|
"teddy-checkbox--error": "_teddy-checkbox--error_1tihh_89"
|
|
14
14
|
};
|
|
15
15
|
const rootClassName = "teddy-checkbox";
|
|
16
|
-
const
|
|
16
|
+
const Root = React.forwardRef(
|
|
17
17
|
({ className, isError, ...props }, forwardRef) => {
|
|
18
18
|
const classes = clsx([styles[`${rootClassName}`]], className, {
|
|
19
19
|
[styles[`${rootClassName}--error`]]: isError
|
|
@@ -21,7 +21,7 @@ const Label = React.forwardRef(
|
|
|
21
21
|
return /* @__PURE__ */ jsxRuntime.jsx("label", { className: classes, ...props, ref: forwardRef });
|
|
22
22
|
}
|
|
23
23
|
);
|
|
24
|
-
|
|
25
|
-
exports.
|
|
24
|
+
Root.displayName = "Root";
|
|
25
|
+
exports.Root = Root;
|
|
26
26
|
exports.rootClassName = rootClassName;
|
|
27
27
|
exports.styles = styles;
|
|
@@ -4,7 +4,7 @@ export declare const rootClassName = "teddy-checkbox";
|
|
|
4
4
|
export type LabelProps = React.ComponentPropsWithoutRef<'label'> & {
|
|
5
5
|
isError?: boolean;
|
|
6
6
|
};
|
|
7
|
-
/** */
|
|
8
|
-
export declare const
|
|
7
|
+
/** The root element of the checkbox component is based on the label component. */
|
|
8
|
+
export declare const Root: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
|
|
9
9
|
isError?: boolean | undefined;
|
|
10
10
|
} & React.RefAttributes<HTMLLabelElement>>;
|
|
@@ -11,7 +11,7 @@ const styles = {
|
|
|
11
11
|
"teddy-checkbox--error": "_teddy-checkbox--error_1tihh_89"
|
|
12
12
|
};
|
|
13
13
|
const rootClassName = "teddy-checkbox";
|
|
14
|
-
const
|
|
14
|
+
const Root = React__default.forwardRef(
|
|
15
15
|
({ className, isError, ...props }, forwardRef) => {
|
|
16
16
|
const classes = clsx([styles[`${rootClassName}`]], className, {
|
|
17
17
|
[styles[`${rootClassName}--error`]]: isError
|
|
@@ -19,9 +19,9 @@ const Label = React__default.forwardRef(
|
|
|
19
19
|
return /* @__PURE__ */ jsx("label", { className: classes, ...props, ref: forwardRef });
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
|
-
|
|
22
|
+
Root.displayName = "Root";
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
Root,
|
|
25
25
|
rootClassName,
|
|
26
26
|
styles as s
|
|
27
27
|
};
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const CheckboxPrimitive = require("@radix-ui/react-checkbox");
|
|
7
|
-
const
|
|
7
|
+
const components_checkbox_checkboxRoot = require("./checkbox-root.cjs");
|
|
8
8
|
const components_checkbox_checkboxIndicator = require("./checkbox-indicator.cjs");
|
|
9
9
|
function _interopNamespaceDefault(e) {
|
|
10
10
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -25,7 +25,7 @@ function _interopNamespaceDefault(e) {
|
|
|
25
25
|
const CheckboxPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(CheckboxPrimitive);
|
|
26
26
|
const Trigger = React.forwardRef(
|
|
27
27
|
({ className, ...props }, forwardRef) => {
|
|
28
|
-
const classes = clsx([
|
|
28
|
+
const classes = clsx([components_checkbox_checkboxRoot.styles[`${components_checkbox_checkboxRoot.rootClassName}__trigger`]], className);
|
|
29
29
|
return /* @__PURE__ */ jsxRuntime.jsx(CheckboxPrimitive__namespace.Root, { ...props, ref: forwardRef, className: classes, children: props.children || /* @__PURE__ */ jsxRuntime.jsx(components_checkbox_checkboxIndicator.Indicator, {}) });
|
|
30
30
|
}
|
|
31
31
|
);
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
5
|
-
import { s as styles, rootClassName } from "./checkbox-
|
|
5
|
+
import { s as styles, rootClassName } from "./checkbox-root.js";
|
|
6
6
|
import { Indicator } from "./checkbox-indicator.js";
|
|
7
7
|
const Trigger = React__default.forwardRef(
|
|
8
8
|
({ className, ...props }, forwardRef) => {
|
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const components_checkbox_checkboxRoot = require("./checkbox-root.cjs");
|
|
4
4
|
const components_checkbox_checkboxTrigger = require("./checkbox-trigger.cjs");
|
|
5
5
|
const components_checkbox_checkboxIndicator = require("./checkbox-indicator.cjs");
|
|
6
6
|
const components_checkbox_checkboxGroup = require("./checkbox-group.cjs");
|
|
7
7
|
const components_checkbox_checkboxGroupItem = require("./checkbox-group-item.cjs");
|
|
8
8
|
const components_checkbox_checkboxGroupList = require("./checkbox-group-list.cjs");
|
|
9
9
|
const components_checkbox_checkboxGroupLabel = require("./checkbox-group-label.cjs");
|
|
10
|
-
|
|
10
|
+
components_checkbox_checkboxRoot.Root.displayName = "Checkbox";
|
|
11
11
|
components_checkbox_checkboxIndicator.Indicator.displayName = "Checkbox.Indicator";
|
|
12
12
|
components_checkbox_checkboxTrigger.Trigger.displayName = "Checkbox.Trigger";
|
|
13
13
|
components_checkbox_checkboxGroup.Group.displayName = "CheckboxGroup";
|
|
14
14
|
components_checkbox_checkboxGroupList.List.displayName = "CheckboxGroup.List";
|
|
15
15
|
components_checkbox_checkboxGroupLabel.GroupLabel.displayName = "CheckboxGroup.GroupLabel";
|
|
16
|
-
const Checkbox = Object.assign(
|
|
16
|
+
const Checkbox = Object.assign(components_checkbox_checkboxRoot.Root, {
|
|
17
17
|
Indicator: components_checkbox_checkboxIndicator.Indicator,
|
|
18
18
|
Trigger: components_checkbox_checkboxTrigger.Trigger
|
|
19
19
|
});
|
|
20
|
+
Checkbox.displayName = "Checkbox";
|
|
20
21
|
const CheckboxGroup = Object.assign(components_checkbox_checkboxGroup.Group, {
|
|
21
22
|
Item: components_checkbox_checkboxGroupItem.Item,
|
|
22
23
|
List: components_checkbox_checkboxGroupList.List,
|
|
23
24
|
GroupLabel: components_checkbox_checkboxGroupLabel.GroupLabel
|
|
24
25
|
});
|
|
26
|
+
CheckboxGroup.displayName = "CheckboxGroup";
|
|
25
27
|
exports.Checkbox = Checkbox;
|
|
26
28
|
exports.CheckboxGroup = CheckboxGroup;
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Root } from "./checkbox-root.js";
|
|
2
2
|
import { Trigger } from "./checkbox-trigger.js";
|
|
3
3
|
import { Indicator } from "./checkbox-indicator.js";
|
|
4
4
|
import { Group } from "./checkbox-group.js";
|
|
5
5
|
import { Item } from "./checkbox-group-item.js";
|
|
6
6
|
import { List } from "./checkbox-group-list.js";
|
|
7
7
|
import { GroupLabel } from "./checkbox-group-label.js";
|
|
8
|
-
|
|
8
|
+
Root.displayName = "Checkbox";
|
|
9
9
|
Indicator.displayName = "Checkbox.Indicator";
|
|
10
10
|
Trigger.displayName = "Checkbox.Trigger";
|
|
11
11
|
Group.displayName = "CheckboxGroup";
|
|
12
12
|
List.displayName = "CheckboxGroup.List";
|
|
13
13
|
GroupLabel.displayName = "CheckboxGroup.GroupLabel";
|
|
14
|
-
const Checkbox = Object.assign(
|
|
14
|
+
const Checkbox = Object.assign(Root, {
|
|
15
15
|
Indicator,
|
|
16
16
|
Trigger
|
|
17
17
|
});
|
|
18
|
+
Checkbox.displayName = "Checkbox";
|
|
18
19
|
const CheckboxGroup = Object.assign(Group, {
|
|
19
20
|
Item,
|
|
20
21
|
List,
|
|
21
22
|
GroupLabel
|
|
22
23
|
});
|
|
24
|
+
CheckboxGroup.displayName = "CheckboxGroup";
|
|
23
25
|
export {
|
|
24
26
|
Checkbox,
|
|
25
27
|
CheckboxGroup
|
|
@@ -135,21 +135,21 @@ const PRIVATE_LINKS = {
|
|
|
135
135
|
link: "/tv/innholdsoversikt/",
|
|
136
136
|
appKey: APP_KEYS["open-pages"]
|
|
137
137
|
},
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
138
|
+
{
|
|
139
|
+
name: "Strømmetjenester",
|
|
140
|
+
link: "/tv/innholdsoversikt/strommetjenester/",
|
|
141
|
+
appKey: APP_KEYS["open-pages"]
|
|
142
|
+
},
|
|
143
143
|
// {
|
|
144
144
|
// name: 'TV-kanaler',
|
|
145
145
|
// link: '/tv/tv-kanaler-og-kanalpakker/',
|
|
146
146
|
// appKey: APP_KEYS['open-pages'],
|
|
147
147
|
// },
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
148
|
+
{
|
|
149
|
+
name: "Premiumtjenester",
|
|
150
|
+
link: "/tv/innholdsoversikt/premiumtjenester/",
|
|
151
|
+
appKey: APP_KEYS["open-pages"]
|
|
152
|
+
},
|
|
153
153
|
// {
|
|
154
154
|
// name: 'Filmer',
|
|
155
155
|
// link: '/tv/filmleie-og-filmkjop/',
|
|
@@ -181,6 +181,14 @@ export declare const PRIVATE_LINKS: {
|
|
|
181
181
|
readonly name: "Innholdsoversikt";
|
|
182
182
|
readonly link: "/tv/innholdsoversikt/";
|
|
183
183
|
readonly appKey: "open-pages";
|
|
184
|
+
}, {
|
|
185
|
+
readonly name: "Strømmetjenester";
|
|
186
|
+
readonly link: "/tv/innholdsoversikt/strommetjenester/";
|
|
187
|
+
readonly appKey: "open-pages";
|
|
188
|
+
}, {
|
|
189
|
+
readonly name: "Premiumtjenester";
|
|
190
|
+
readonly link: "/tv/innholdsoversikt/premiumtjenester/";
|
|
191
|
+
readonly appKey: "open-pages";
|
|
184
192
|
}, {
|
|
185
193
|
readonly name: "TV-bokser";
|
|
186
194
|
readonly link: "/tv/tv-bokser/";
|
|
@@ -382,6 +390,14 @@ export declare const LINKS: [{
|
|
|
382
390
|
readonly name: "Innholdsoversikt";
|
|
383
391
|
readonly link: "/tv/innholdsoversikt/";
|
|
384
392
|
readonly appKey: "open-pages";
|
|
393
|
+
}, {
|
|
394
|
+
readonly name: "Strømmetjenester";
|
|
395
|
+
readonly link: "/tv/innholdsoversikt/strommetjenester/";
|
|
396
|
+
readonly appKey: "open-pages";
|
|
397
|
+
}, {
|
|
398
|
+
readonly name: "Premiumtjenester";
|
|
399
|
+
readonly link: "/tv/innholdsoversikt/premiumtjenester/";
|
|
400
|
+
readonly appKey: "open-pages";
|
|
385
401
|
}, {
|
|
386
402
|
readonly name: "TV-bokser";
|
|
387
403
|
readonly link: "/tv/tv-bokser/";
|
|
@@ -133,21 +133,21 @@ const PRIVATE_LINKS = {
|
|
|
133
133
|
link: "/tv/innholdsoversikt/",
|
|
134
134
|
appKey: APP_KEYS["open-pages"]
|
|
135
135
|
},
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
136
|
+
{
|
|
137
|
+
name: "Strømmetjenester",
|
|
138
|
+
link: "/tv/innholdsoversikt/strommetjenester/",
|
|
139
|
+
appKey: APP_KEYS["open-pages"]
|
|
140
|
+
},
|
|
141
141
|
// {
|
|
142
142
|
// name: 'TV-kanaler',
|
|
143
143
|
// link: '/tv/tv-kanaler-og-kanalpakker/',
|
|
144
144
|
// appKey: APP_KEYS['open-pages'],
|
|
145
145
|
// },
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
146
|
+
{
|
|
147
|
+
name: "Premiumtjenester",
|
|
148
|
+
link: "/tv/innholdsoversikt/premiumtjenester/",
|
|
149
|
+
appKey: APP_KEYS["open-pages"]
|
|
150
|
+
},
|
|
151
151
|
// {
|
|
152
152
|
// name: 'Filmer',
|
|
153
153
|
// link: '/tv/filmleie-og-filmkjop/',
|
|
@@ -6,79 +6,81 @@ const sonner = require("sonner");
|
|
|
6
6
|
require("../../assets/sprite.269ba410-teddy.svg");
|
|
7
7
|
const components_icon_icon = require("../icon/icon.cjs");
|
|
8
8
|
const components_spinner_spinner = require("../spinner/spinner.cjs");
|
|
9
|
-
const fadeInAnimation = "
|
|
10
|
-
const scaleInAnimation = "
|
|
9
|
+
const fadeInAnimation = "_fadeInAnimation_r0i1g_1";
|
|
10
|
+
const scaleInAnimation = "_scaleInAnimation_r0i1g_1";
|
|
11
11
|
const styles = {
|
|
12
|
-
"teddy-button": "_teddy-
|
|
13
|
-
"teddy-button--sm": "_teddy-button--
|
|
14
|
-
"teddy-button--icon-only": "_teddy-button--icon-
|
|
15
|
-
"teddy-button--md": "_teddy-button--
|
|
16
|
-
"teddy-button--lg": "_teddy-button--
|
|
17
|
-
"teddy-button--full-width": "_teddy-button--full-
|
|
18
|
-
"teddy-button--primary": "_teddy-button--
|
|
19
|
-
"teddy-button--disabled": "_teddy-button--
|
|
20
|
-
"teddy-button--primary-negative": "_teddy-button--primary-
|
|
21
|
-
"teddy-button--secondary": "_teddy-button--
|
|
22
|
-
"teddy-button--secondary-negative": "_teddy-button--secondary-
|
|
23
|
-
"teddy-button--expressive": "_teddy-button--
|
|
24
|
-
"teddy-button--expressive-negative": "_teddy-button--expressive-
|
|
25
|
-
"teddy-button--negative": "_teddy-button--
|
|
26
|
-
"teddy-button--destructive": "_teddy-button--
|
|
27
|
-
"teddy-button--destructive-negative": "_teddy-button--destructive-
|
|
28
|
-
"teddy-button--tertiary-purple": "_teddy-button--tertiary-
|
|
29
|
-
"teddy-button--tertiary-purple-negative": "_teddy-button--tertiary-purple-
|
|
30
|
-
"teddy-button--list-item": "_teddy-button--list-
|
|
31
|
-
"teddy-button--text-negative": "_teddy-button--text-
|
|
32
|
-
"teddy-button--text": "_teddy-button--
|
|
33
|
-
"teddy-button__loading": "_teddy-
|
|
12
|
+
"teddy-button": "_teddy-button_r0i1g_18",
|
|
13
|
+
"teddy-button--sm": "_teddy-button--sm_r0i1g_53",
|
|
14
|
+
"teddy-button--icon-only": "_teddy-button--icon-only_r0i1g_56",
|
|
15
|
+
"teddy-button--md": "_teddy-button--md_r0i1g_59",
|
|
16
|
+
"teddy-button--lg": "_teddy-button--lg_r0i1g_65",
|
|
17
|
+
"teddy-button--full-width": "_teddy-button--full-width_r0i1g_71",
|
|
18
|
+
"teddy-button--primary": "_teddy-button--primary_r0i1g_74",
|
|
19
|
+
"teddy-button--disabled": "_teddy-button--disabled_r0i1g_78",
|
|
20
|
+
"teddy-button--primary-negative": "_teddy-button--primary-negative_r0i1g_84",
|
|
21
|
+
"teddy-button--secondary": "_teddy-button--secondary_r0i1g_96",
|
|
22
|
+
"teddy-button--secondary-negative": "_teddy-button--secondary-negative_r0i1g_107",
|
|
23
|
+
"teddy-button--expressive": "_teddy-button--expressive_r0i1g_118",
|
|
24
|
+
"teddy-button--expressive-negative": "_teddy-button--expressive-negative_r0i1g_128",
|
|
25
|
+
"teddy-button--negative": "_teddy-button--negative_r0i1g_140",
|
|
26
|
+
"teddy-button--destructive": "_teddy-button--destructive_r0i1g_147",
|
|
27
|
+
"teddy-button--destructive-negative": "_teddy-button--destructive-negative_r0i1g_157",
|
|
28
|
+
"teddy-button--tertiary-purple": "_teddy-button--tertiary-purple_r0i1g_167",
|
|
29
|
+
"teddy-button--tertiary-purple-negative": "_teddy-button--tertiary-purple-negative_r0i1g_180",
|
|
30
|
+
"teddy-button--list-item": "_teddy-button--list-item_r0i1g_195",
|
|
31
|
+
"teddy-button--text-negative": "_teddy-button--text-negative_r0i1g_214",
|
|
32
|
+
"teddy-button--text": "_teddy-button--text_r0i1g_214",
|
|
33
|
+
"teddy-button__loading": "_teddy-button__loading_r0i1g_261",
|
|
34
34
|
fadeInAnimation,
|
|
35
|
-
"teddy-button__spinner": "_teddy-
|
|
36
|
-
"teddy-toast": "_teddy-
|
|
37
|
-
"teddy-toast__title": "_teddy-
|
|
38
|
-
"teddy-toast__description": "_teddy-
|
|
39
|
-
"teddy-
|
|
40
|
-
"teddy-toast__close-button
|
|
41
|
-
"teddy-toast__close-button--
|
|
42
|
-
"teddy-toast__close-button--
|
|
43
|
-
"teddy-toast__close-button--
|
|
44
|
-
"teddy-toast__close-button--
|
|
45
|
-
"teddy-toast__close-button--
|
|
46
|
-
"teddy-toast__close-button--
|
|
47
|
-
"teddy-toast__close-button--
|
|
48
|
-
"teddy-toast__close-button--
|
|
49
|
-
"teddy-toast__close-button--secondary
|
|
50
|
-
"teddy-toast__close-button--
|
|
51
|
-
"teddy-toast__close-button--expressive
|
|
52
|
-
"teddy-
|
|
53
|
-
"teddy-toast--
|
|
54
|
-
"teddy-
|
|
55
|
-
"teddy-
|
|
56
|
-
"teddy-toast--
|
|
57
|
-
"teddy-toast--
|
|
58
|
-
"teddy-
|
|
59
|
-
"teddy-
|
|
60
|
-
"teddy-toast__action-button
|
|
61
|
-
"teddy-toast__cancel-button
|
|
62
|
-
"teddy-
|
|
63
|
-
"teddy-
|
|
64
|
-
"teddy-toast__cancel-button--
|
|
65
|
-
"teddy-toast__action-button--
|
|
66
|
-
"teddy-toast__cancel-button--
|
|
67
|
-
"teddy-toast__action-button--
|
|
68
|
-
"teddy-toast__cancel-button--
|
|
69
|
-
"teddy-toast__action-button--
|
|
70
|
-
"teddy-toast__cancel-button--
|
|
71
|
-
"teddy-
|
|
72
|
-
"teddy-
|
|
73
|
-
"teddy-toast__cancel-button--
|
|
74
|
-
"teddy-toast__action-button--
|
|
75
|
-
"teddy-toast__cancel-button--
|
|
76
|
-
"teddy-toast__action-button--secondary
|
|
77
|
-
"teddy-toast__cancel-button--secondary
|
|
78
|
-
"teddy-toast__action-button--
|
|
79
|
-
"teddy-toast__cancel-button--
|
|
80
|
-
"teddy-toast__action-button--expressive
|
|
81
|
-
"teddy-toast__cancel-button--expressive
|
|
35
|
+
"teddy-button__spinner": "_teddy-button__spinner_r0i1g_272",
|
|
36
|
+
"teddy-toast": "_teddy-toast_r0i1g_279",
|
|
37
|
+
"teddy-toast__title": "_teddy-toast__title_r0i1g_291",
|
|
38
|
+
"teddy-toast__description": "_teddy-toast__description_r0i1g_295",
|
|
39
|
+
"teddy-toast__icon": "_teddy-toast__icon_r0i1g_300",
|
|
40
|
+
"teddy-toast__close-button": "_teddy-toast__close-button_r0i1g_309",
|
|
41
|
+
"teddy-toast__close-button--sm": "_teddy-toast__close-button--sm_r0i1g_356",
|
|
42
|
+
"teddy-toast__close-button--icon-only": "_teddy-toast__close-button--icon-only_r0i1g_359",
|
|
43
|
+
"teddy-toast__close-button--md": "_teddy-toast__close-button--md_r0i1g_362",
|
|
44
|
+
"teddy-toast__close-button--lg": "_teddy-toast__close-button--lg_r0i1g_368",
|
|
45
|
+
"teddy-toast__close-button--full-width": "_teddy-toast__close-button--full-width_r0i1g_374",
|
|
46
|
+
"teddy-toast__close-button--primary": "_teddy-toast__close-button--primary_r0i1g_377",
|
|
47
|
+
"teddy-toast__close-button--disabled": "_teddy-toast__close-button--disabled_r0i1g_381",
|
|
48
|
+
"teddy-toast__close-button--primary-negative": "_teddy-toast__close-button--primary-negative_r0i1g_387",
|
|
49
|
+
"teddy-toast__close-button--secondary": "_teddy-toast__close-button--secondary_r0i1g_399",
|
|
50
|
+
"teddy-toast__close-button--secondary-negative": "_teddy-toast__close-button--secondary-negative_r0i1g_410",
|
|
51
|
+
"teddy-toast__close-button--expressive": "_teddy-toast__close-button--expressive_r0i1g_421",
|
|
52
|
+
"teddy-toast__close-button--expressive-negative": "_teddy-toast__close-button--expressive-negative_r0i1g_431",
|
|
53
|
+
"teddy-toast--disabled": "_teddy-toast--disabled_r0i1g_443",
|
|
54
|
+
"teddy-toast__content": "_teddy-toast__content_r0i1g_456",
|
|
55
|
+
"teddy-toast__loading": "_teddy-toast__loading_r0i1g_459",
|
|
56
|
+
"teddy-toast--success": "_teddy-toast--success_r0i1g_463",
|
|
57
|
+
"teddy-toast--info": "_teddy-toast--info_r0i1g_475",
|
|
58
|
+
"teddy-toast--warning": "_teddy-toast--warning_r0i1g_487",
|
|
59
|
+
"teddy-toast--error": "_teddy-toast--error_r0i1g_499",
|
|
60
|
+
"teddy-toast__action-button": "_teddy-toast__action-button_r0i1g_511",
|
|
61
|
+
"teddy-toast__cancel-button": "_teddy-toast__cancel-button_r0i1g_512",
|
|
62
|
+
"teddy-toast__action-button--sm": "_teddy-toast__action-button--sm_r0i1g_559",
|
|
63
|
+
"teddy-toast__cancel-button--sm": "_teddy-toast__cancel-button--sm_r0i1g_560",
|
|
64
|
+
"teddy-toast__cancel-button--icon-only": "_teddy-toast__cancel-button--icon-only_r0i1g_563",
|
|
65
|
+
"teddy-toast__action-button--md": "_teddy-toast__action-button--md_r0i1g_568",
|
|
66
|
+
"teddy-toast__cancel-button--md": "_teddy-toast__cancel-button--md_r0i1g_569",
|
|
67
|
+
"teddy-toast__action-button--lg": "_teddy-toast__action-button--lg_r0i1g_577",
|
|
68
|
+
"teddy-toast__cancel-button--lg": "_teddy-toast__cancel-button--lg_r0i1g_578",
|
|
69
|
+
"teddy-toast__action-button--full-width": "_teddy-toast__action-button--full-width_r0i1g_586",
|
|
70
|
+
"teddy-toast__cancel-button--full-width": "_teddy-toast__cancel-button--full-width_r0i1g_587",
|
|
71
|
+
"teddy-toast__action-button--primary": "_teddy-toast__action-button--primary_r0i1g_590",
|
|
72
|
+
"teddy-toast__cancel-button--primary": "_teddy-toast__cancel-button--primary_r0i1g_591",
|
|
73
|
+
"teddy-toast__cancel-button--disabled": "_teddy-toast__cancel-button--disabled_r0i1g_595",
|
|
74
|
+
"teddy-toast__action-button--primary-negative": "_teddy-toast__action-button--primary-negative_r0i1g_603",
|
|
75
|
+
"teddy-toast__cancel-button--primary-negative": "_teddy-toast__cancel-button--primary-negative_r0i1g_604",
|
|
76
|
+
"teddy-toast__action-button--secondary": "_teddy-toast__action-button--secondary_r0i1g_618",
|
|
77
|
+
"teddy-toast__cancel-button--secondary": "_teddy-toast__cancel-button--secondary_r0i1g_619",
|
|
78
|
+
"teddy-toast__action-button--secondary-negative": "_teddy-toast__action-button--secondary-negative_r0i1g_632",
|
|
79
|
+
"teddy-toast__cancel-button--secondary-negative": "_teddy-toast__cancel-button--secondary-negative_r0i1g_633",
|
|
80
|
+
"teddy-toast__action-button--expressive": "_teddy-toast__action-button--expressive_r0i1g_646",
|
|
81
|
+
"teddy-toast__cancel-button--expressive": "_teddy-toast__cancel-button--expressive_r0i1g_647",
|
|
82
|
+
"teddy-toast__action-button--expressive-negative": "_teddy-toast__action-button--expressive-negative_r0i1g_659",
|
|
83
|
+
"teddy-toast__cancel-button--expressive-negative": "_teddy-toast__cancel-button--expressive-negative_r0i1g_660",
|
|
82
84
|
scaleInAnimation
|
|
83
85
|
};
|
|
84
86
|
const rootClassName = "teddy-toast";
|
|
@@ -98,7 +100,6 @@ const Root = ({ className, ...props }) => {
|
|
|
98
100
|
},
|
|
99
101
|
closeButton: true,
|
|
100
102
|
toastOptions: {
|
|
101
|
-
// unstyled: true,
|
|
102
103
|
className: classes,
|
|
103
104
|
classNames: {
|
|
104
105
|
error: clsx(styles[`${rootClassName}--error`], (_b = (_a = props.toastOptions) == null ? void 0 : _a.classNames) == null ? void 0 : _b.error),
|
|
@@ -110,7 +111,8 @@ const Root = ({ className, ...props }) => {
|
|
|
110
111
|
title: styles[`${rootClassName}__title`],
|
|
111
112
|
closeButton: styles[`${rootClassName}__close-button`],
|
|
112
113
|
actionButton: styles[`${rootClassName}__action-button`],
|
|
113
|
-
cancelButton: styles[`${rootClassName}__cancel-button`]
|
|
114
|
+
cancelButton: styles[`${rootClassName}__cancel-button`],
|
|
115
|
+
content: styles[`${rootClassName}__content`]
|
|
114
116
|
}
|
|
115
117
|
},
|
|
116
118
|
...props
|