@telia/teddy 0.7.67 → 0.7.69
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-card-group/checkbox-card-group-content.cjs +1 -1
- package/dist/components/checkbox-card-group/checkbox-card-group-content.js +2 -2
- package/dist/components/checkbox-card-group/checkbox-card-group-indicator.cjs +51 -40
- package/dist/components/checkbox-card-group/checkbox-card-group-indicator.js +66 -55
- package/dist/components/checkbox-card-group/checkbox-card-group-item-title.cjs +0 -1
- package/dist/components/checkbox-card-group/checkbox-card-group-item-title.js +0 -1
- package/dist/components/checkbox-card-group/checkbox-card-group-item.js +3 -3
- package/dist/components/index.cjs +3 -3
- package/dist/components/index.js +1 -1
- package/dist/components/meter-bar/meter-bar-indicator.js +1 -1
- package/dist/components/modal/modal-close.cjs +0 -1
- package/dist/components/modal/modal-close.js +2 -3
- package/dist/components/navigation-menu/global-navigation/global-navigation-desktop-simplified.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile-simplified.cjs +1 -0
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile-simplified.js +3 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-my-pages.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-root.js +4 -4
- package/dist/components/navigation-menu/global-navigation/global-navigation-search-field.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-search.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-shopping-cart.js +2 -2
- package/dist/components/navigation-menu/navigation-menu.cjs +0 -3
- package/dist/components/navigation-menu/navigation-menu.js +0 -3
- package/dist/components/radio-card-group/radio-card-group-content.cjs +1 -1
- package/dist/components/radio-card-group/radio-card-group-content.js +2 -2
- package/dist/components/radio-card-group/radio-card-group-item-title.cjs +0 -1
- package/dist/components/radio-card-group/radio-card-group-item-title.js +2 -3
- package/dist/components/radio-card-group/radio-card-group-item.cjs +0 -1
- package/dist/components/radio-card-group/radio-card-group-item.js +2 -3
- package/dist/components/scroll-area/scroll-area-bar.cjs +0 -1
- package/dist/components/scroll-area/scroll-area-bar.js +0 -1
- package/dist/components/scroll-area/scroll-area-corner.cjs +0 -1
- package/dist/components/scroll-area/scroll-area-corner.js +0 -1
- package/dist/components/scroll-area/scroll-area-root.cjs +0 -1
- package/dist/components/scroll-area/scroll-area-root.js +0 -1
- package/dist/components/shopping-cart/shopping-cart-disclaimer.cjs +9 -9
- package/dist/components/shopping-cart/shopping-cart-disclaimer.js +9 -9
- package/dist/components/shopping-cart/shopping-cart-item.cjs +45 -36
- package/dist/components/shopping-cart/shopping-cart-item.js +45 -36
- package/dist/components/tabs/tabs-root.cjs +5 -5
- package/dist/components/tabs/tabs-root.js +5 -5
- package/dist/main.cjs +3 -3
- package/dist/main.js +1 -1
- package/dist/teddy.css +1 -0
- package/dist/utils/generate-styling/index.cjs +1 -6
- package/dist/utils/generate-styling/index.js +1 -6
- package/dist/utils/useCallbackRef.cjs +2 -2
- package/dist/utils/useCallbackRef.js +2 -2
- package/package.json +3 -3
- package/dist/style.css +0 -9874
|
@@ -67,4 +67,4 @@ require("../container/container.cjs");
|
|
|
67
67
|
require("../carousel/carousel-root.cjs");
|
|
68
68
|
require("../slider/slider.cjs");
|
|
69
69
|
require("../textarea/index.cjs");
|
|
70
|
-
exports.Content = components_checkboxCardGroup_checkboxCardGroupIndicator.Content$
|
|
70
|
+
exports.Content = components_checkboxCardGroup_checkboxCardGroupIndicator.Content$2;
|
|
@@ -20,7 +20,7 @@ import "../collapsible/index.js";
|
|
|
20
20
|
import "../meter-bar/index.js";
|
|
21
21
|
import "../skeleton/index.js";
|
|
22
22
|
import "../checkbox/index.js";
|
|
23
|
-
import {
|
|
23
|
+
import { q } from "./checkbox-card-group-indicator.js";
|
|
24
24
|
import "../toast/toast-root.js";
|
|
25
25
|
import "sonner";
|
|
26
26
|
import "../toggletip/index.js";
|
|
@@ -66,5 +66,5 @@ import "../carousel/carousel-root.js";
|
|
|
66
66
|
import "../slider/slider.js";
|
|
67
67
|
import "../textarea/index.js";
|
|
68
68
|
export {
|
|
69
|
-
|
|
69
|
+
q as Content
|
|
70
70
|
};
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const React = require("react");
|
|
5
4
|
const clsx = require("clsx");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const utils_composeRefs = require("../../utils/composeRefs.cjs");
|
|
9
|
-
const components_visuallyHidden_visuallyHidden = require("../visually-hidden/visually-hidden.cjs");
|
|
10
|
-
const utils_composeEventHandlers = require("../../utils/composeEventHandlers.cjs");
|
|
11
|
-
const reactSlot = require("@radix-ui/react-slot");
|
|
12
|
-
const reactUseControllableState = require("@radix-ui/react-use-controllable-state");
|
|
13
|
-
const utils_generateStyling_index = require("../../utils/generate-styling/index.cjs");
|
|
14
|
-
const tokens_motion_variables = require("../../tokens/motion/variables.cjs");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
const components_checkboxCardGroup_checkboxCardGroupRoot = require("./checkbox-card-group-root.cjs");
|
|
15
7
|
require("../step-by-step/index.cjs");
|
|
16
8
|
require("../top-row-buttons/top-row-buttons.cjs");
|
|
17
9
|
require("../dashed-button/dashed-button-root.cjs");
|
|
@@ -30,8 +22,8 @@ require("../collapsible/index.cjs");
|
|
|
30
22
|
require("../meter-bar/index.cjs");
|
|
31
23
|
require("../skeleton/index.cjs");
|
|
32
24
|
const components_checkbox_index = require("../checkbox/index.cjs");
|
|
33
|
-
const components_checkboxCardGroup_checkboxCardGroupRoot = require("./checkbox-card-group-root.cjs");
|
|
34
25
|
const components_checkboxCardGroup_checkboxCardGroupLabel = require("./checkbox-card-group-label.cjs");
|
|
26
|
+
const reactSlot = require("@radix-ui/react-slot");
|
|
35
27
|
require("../toast/toast-root.cjs");
|
|
36
28
|
require("sonner");
|
|
37
29
|
require("../toggletip/index.cjs");
|
|
@@ -66,22 +58,31 @@ const components_box_box = require("../box/box.cjs");
|
|
|
66
58
|
const components_flex_flex = require("../flex/flex.cjs");
|
|
67
59
|
require("../card/index.cjs");
|
|
68
60
|
const components_grid_grid = require("../grid/grid.cjs");
|
|
69
|
-
require("
|
|
70
|
-
require("
|
|
71
|
-
require("../
|
|
61
|
+
const NavigationMenuPrimitive = require("@radix-ui/react-navigation-menu");
|
|
62
|
+
const utils_composeRefs = require("../../utils/composeRefs.cjs");
|
|
63
|
+
const components_visuallyHidden_visuallyHidden = require("../visually-hidden/visually-hidden.cjs");
|
|
64
|
+
const utils_composeEventHandlers = require("../../utils/composeEventHandlers.cjs");
|
|
65
|
+
const reactUseControllableState = require("@radix-ui/react-use-controllable-state");
|
|
66
|
+
const utils_generateStyling_index = require("../../utils/generate-styling/index.cjs");
|
|
67
|
+
const tokens_motion_variables = require("../../tokens/motion/variables.cjs");
|
|
68
|
+
const components_navigationMenu_globalNavigation_utils = require("../navigation-menu/global-navigation/utils.cjs");
|
|
69
|
+
const components_button_button = require("../button/button.cjs");
|
|
70
|
+
const components_heading_heading = require("../heading/heading.cjs");
|
|
71
|
+
const components_textSpacing_textSpacing = require("../text-spacing/text-spacing.cjs");
|
|
72
|
+
const components_textField_index = require("../text-field/index.cjs");
|
|
72
73
|
require("../badge/badge.cjs");
|
|
73
74
|
require("../badge/alert-badge.cjs");
|
|
74
75
|
const components_badge_counterBadge = require("../badge/counter-badge.cjs");
|
|
75
|
-
const
|
|
76
|
+
const utils_useSize = require("../../utils/useSize.cjs");
|
|
77
|
+
require("../toggle/toggle.cjs");
|
|
78
|
+
require("../accordion/index.cjs");
|
|
79
|
+
require("../link/link.cjs");
|
|
76
80
|
require("../field-error-text/field-error-text.cjs");
|
|
77
81
|
require("../helper-text/helper-text.cjs");
|
|
78
82
|
require("../input/index.cjs");
|
|
79
83
|
require("../label/label.cjs");
|
|
80
84
|
require("../spinner/spinner.cjs");
|
|
81
85
|
const components_text_text = require("../text/text.cjs");
|
|
82
|
-
const components_textField_index = require("../text-field/index.cjs");
|
|
83
|
-
const components_heading_heading = require("../heading/heading.cjs");
|
|
84
|
-
const components_textSpacing_textSpacing = require("../text-spacing/text-spacing.cjs");
|
|
85
86
|
require("../container/container.cjs");
|
|
86
87
|
require("../carousel/carousel-root.cjs");
|
|
87
88
|
require("../slider/slider.cjs");
|
|
@@ -92,7 +93,6 @@ const components_radioCardGroup_radioCardGroupIndicator = require("../radio-card
|
|
|
92
93
|
const components_radioCardGroup_radioCardGroupItemBody = require("../radio-card-group/radio-card-group-item-body.cjs");
|
|
93
94
|
const RadioGroupPrimitive = require("@radix-ui/react-radio-group");
|
|
94
95
|
const components_checkboxCardGroup_checkboxCardGroupItemBody = require("./checkbox-card-group-item-body.cjs");
|
|
95
|
-
const utils_useSize = require("../../utils/useSize.cjs");
|
|
96
96
|
function _interopNamespaceDefault(e) {
|
|
97
97
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
98
98
|
if (e) {
|
|
@@ -109,8 +109,8 @@ function _interopNamespaceDefault(e) {
|
|
|
109
109
|
n.default = e;
|
|
110
110
|
return Object.freeze(n);
|
|
111
111
|
}
|
|
112
|
-
const NavigationMenuPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(NavigationMenuPrimitive);
|
|
113
112
|
const DrawerPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(DrawerPrimitive);
|
|
113
|
+
const NavigationMenuPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(NavigationMenuPrimitive);
|
|
114
114
|
const RadioGroupPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(RadioGroupPrimitive);
|
|
115
115
|
const Indicator$1 = React.forwardRef(
|
|
116
116
|
({ className, checked, onCheckedChange, disabled, ...props }, forwardRef) => {
|
|
@@ -136,13 +136,6 @@ const Title$1 = React.forwardRef(
|
|
|
136
136
|
}
|
|
137
137
|
);
|
|
138
138
|
Title$1.displayName = "Title";
|
|
139
|
-
const Content$2 = React.forwardRef(
|
|
140
|
-
({ className, children, ...props }, forwardRef) => {
|
|
141
|
-
const classes = clsx([components_checkboxCardGroup_checkboxCardGroupRoot.styles[`${components_checkboxCardGroup_checkboxCardGroupRoot.rootClassName}__content-wrapper`]], className);
|
|
142
|
-
return /* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { direction: "column", width: "100%", gap: "50", ...props, ref: forwardRef, className: classes, children });
|
|
143
|
-
}
|
|
144
|
-
);
|
|
145
|
-
Content$2.displayName = "Content";
|
|
146
139
|
const ItemContext$1 = React.createContext(void 0);
|
|
147
140
|
const Item$2 = React.forwardRef(
|
|
148
141
|
({ className, children, value, imageUrl, checked, onCheckedChange, disabled, ...props }, forwardedRef) => {
|
|
@@ -182,7 +175,7 @@ const Item$2 = React.forwardRef(
|
|
|
182
175
|
onKeyDown: handleKeyDown,
|
|
183
176
|
children: [
|
|
184
177
|
imageUrl ? /* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { className: clsx([components_checkboxCardGroup_checkboxCardGroupRoot.styles[`${components_checkboxCardGroup_checkboxCardGroupRoot.rootClassName}__illustration`]], className), justify: "center", align: "center", children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: imageUrl, alt: value }) }) : null,
|
|
185
|
-
/* @__PURE__ */ jsxRuntime.jsx(Content
|
|
178
|
+
/* @__PURE__ */ jsxRuntime.jsx(Content, { children: React.Children.map(children, (child) => {
|
|
186
179
|
if (React.isValidElement(child) && child.type === Title$1) {
|
|
187
180
|
return React.cloneElement(child, {
|
|
188
181
|
...child.props,
|
|
@@ -222,13 +215,13 @@ const Title = React.forwardRef(
|
|
|
222
215
|
}
|
|
223
216
|
);
|
|
224
217
|
Title.displayName = "Title";
|
|
225
|
-
const Content$
|
|
218
|
+
const Content$2 = React.forwardRef(
|
|
226
219
|
({ className, children, ...props }, forwardRef) => {
|
|
227
220
|
const classes = clsx([components_radioCardGroup_radioCardGroupRoot.styles[`${components_radioCardGroup_radioCardGroupRoot.rootClassName}__content-wrapper`]], className);
|
|
228
221
|
return /* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { direction: "column", width: "100%", gap: "50", ...props, ref: forwardRef, className: classes, children });
|
|
229
222
|
}
|
|
230
223
|
);
|
|
231
|
-
Content$
|
|
224
|
+
Content$2.displayName = "Content";
|
|
232
225
|
const ItemContext = React.createContext(void 0);
|
|
233
226
|
const Item$1 = React.forwardRef(
|
|
234
227
|
({ className, children, value, ...props }, forwardedRef) => {
|
|
@@ -238,7 +231,7 @@ const Item$1 = React.forwardRef(
|
|
|
238
231
|
const id = props.id || (context == null ? void 0 : context.id);
|
|
239
232
|
return /* @__PURE__ */ jsxRuntime.jsxs(RadioGroupPrimitive__namespace.Item, { value, id, ...props, asChild: false, ref, className: classes, children: [
|
|
240
233
|
props.imageUrl ? /* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { className: clsx([components_radioCardGroup_radioCardGroupRoot.styles[`${components_radioCardGroup_radioCardGroupRoot.rootClassName}__illustration`]], className), justify: "center", align: "center", children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: props.imageUrl, alt: value }) }) : null,
|
|
241
|
-
/* @__PURE__ */ jsxRuntime.jsx(Content$
|
|
234
|
+
/* @__PURE__ */ jsxRuntime.jsx(Content$2, { children })
|
|
242
235
|
] });
|
|
243
236
|
}
|
|
244
237
|
);
|
|
@@ -562,7 +555,7 @@ const Trigger = React.forwardRef(
|
|
|
562
555
|
}
|
|
563
556
|
);
|
|
564
557
|
Trigger.displayName = "NavigationMenu.Trigger";
|
|
565
|
-
const Content = React.forwardRef(
|
|
558
|
+
const Content$1 = React.forwardRef(
|
|
566
559
|
({ className, variant = "default", ...props }, forwardRef) => {
|
|
567
560
|
const classes = clsx(
|
|
568
561
|
[styles$1[`${rootClassName$1}__content`]],
|
|
@@ -678,7 +671,7 @@ const NavigationMenu = Object.assign(Root$1, {
|
|
|
678
671
|
Separator,
|
|
679
672
|
Item,
|
|
680
673
|
Trigger,
|
|
681
|
-
Content,
|
|
674
|
+
Content: Content$1,
|
|
682
675
|
Link,
|
|
683
676
|
Indicator,
|
|
684
677
|
Viewport,
|
|
@@ -1128,6 +1121,7 @@ const HightlightedLinksDesktop = ({
|
|
|
1128
1121
|
] });
|
|
1129
1122
|
};
|
|
1130
1123
|
function Mobile(props) {
|
|
1124
|
+
var _a;
|
|
1131
1125
|
const [specifiedLink, setSpecifiedLink] = React.useState("");
|
|
1132
1126
|
const rootContext = React.useContext(RootContext);
|
|
1133
1127
|
const drawerRef = React.useRef(null);
|
|
@@ -1137,6 +1131,10 @@ function Mobile(props) {
|
|
|
1137
1131
|
const classes = clsx([styles[`${rootClassName}__mobile`]], props.className);
|
|
1138
1132
|
const linkClasses = clsx([styles[`${rootClassName}__link`]]);
|
|
1139
1133
|
const headerClasses = clsx([styles[`${rootClassName}__header`]]);
|
|
1134
|
+
const activeDomain = links.find((l) => l.name === rootContext.selectedDomainItem) || links[0];
|
|
1135
|
+
const logoEntry = (_a = activeDomain == null ? void 0 : activeDomain.links) == null ? void 0 : _a.find((l) => l.name === "Logo");
|
|
1136
|
+
const logoLink = (logoEntry == null ? void 0 : logoEntry.link) || "/";
|
|
1137
|
+
const logoAppKey = logoEntry == null ? void 0 : logoEntry.appKey;
|
|
1140
1138
|
return /* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { ...props, className: classes, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1141
1139
|
components_flex_flex.Flex,
|
|
1142
1140
|
{
|
|
@@ -1146,7 +1144,7 @@ function Mobile(props) {
|
|
|
1146
1144
|
gap: "200",
|
|
1147
1145
|
className: styles[`${rootClassName}__top-icon-wrapper`],
|
|
1148
1146
|
children: [
|
|
1149
|
-
/* @__PURE__ */ jsxRuntime.jsx(components_box_box.Box, { flexShrink: "0", children: /* @__PURE__ */ jsxRuntime.jsx(NavigationMenu.Link, { asChild: true, variant: "button", children: rootContext.appKey === "
|
|
1147
|
+
/* @__PURE__ */ jsxRuntime.jsx(components_box_box.Box, { flexShrink: "0", children: /* @__PURE__ */ jsxRuntime.jsx(NavigationMenu.Link, { asChild: true, variant: "button", children: logoAppKey === rootContext.appKey || rootContext.appKey === "storybook" ? /* @__PURE__ */ jsxRuntime.jsx(NavLink, { href: logoLink, children: /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { size: "lg", name: "telia-logo", "aria-label": "Telia logo" }) }) : /* @__PURE__ */ jsxRuntime.jsx("a", { href: logoLink, children: /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { size: "lg", name: "telia-logo", "aria-label": "Telia logo" }) }) }) }),
|
|
1150
1148
|
/* @__PURE__ */ jsxRuntime.jsxs(components_flex_flex.Flex, { flexBasis: "0", gap: { sm: "100", md: "200" }, className: styles[`${rootClassName}__top-menu-icons`], children: [
|
|
1151
1149
|
!rootContext.hideTopMenuList && /* @__PURE__ */ jsxRuntime.jsx(Search, {}),
|
|
1152
1150
|
/* @__PURE__ */ jsxRuntime.jsx(ShoppingCart, {}),
|
|
@@ -1168,9 +1166,9 @@ function Mobile(props) {
|
|
|
1168
1166
|
children: [
|
|
1169
1167
|
!rootContext.hideTopMenuList && /* @__PURE__ */ jsxRuntime.jsx(components_tabs_index.Tabs.List, { children: links.map((link) => /* @__PURE__ */ jsxRuntime.jsx(components_tabs_index.Tabs.Trigger, { asChild: true, value: link.name, children: link.appKey === rootContext.appKey || rootContext.appKey === "storybook" ? /* @__PURE__ */ jsxRuntime.jsx(NavLink, { href: link.link, children: link.name }) : /* @__PURE__ */ jsxRuntime.jsx("a", { href: link.link, children: link.name }) }, link.name)) }),
|
|
1170
1168
|
/* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: links.map((link) => {
|
|
1171
|
-
var
|
|
1169
|
+
var _a2, _b;
|
|
1172
1170
|
return /* @__PURE__ */ jsxRuntime.jsxs(components_tabs_index.Tabs.Content, { value: link.name, children: [
|
|
1173
|
-
/* @__PURE__ */ jsxRuntime.jsx(components_box_box.Box, { mt: "400", children: (
|
|
1171
|
+
/* @__PURE__ */ jsxRuntime.jsx(components_box_box.Box, { mt: "400", children: (_a2 = link.links) == null ? void 0 : _a2.filter((l) => l.name !== "Logo").map(
|
|
1174
1172
|
(subLink) => subLink.links && subLink.links.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(components_box_box.Box, { onClick: () => setSpecifiedLink(subLink.name), className: linkClasses, children: [
|
|
1175
1173
|
/* @__PURE__ */ jsxRuntime.jsx(components_heading_heading.Heading, { asChild: true, variant: "title-300", children: /* @__PURE__ */ jsxRuntime.jsx(components_button_button.Button, { className: styles[`${rootClassName}__sublink-button--mobile`], children: subLink.name }) }),
|
|
1176
1174
|
/* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: "chevron-right", size: "md" })
|
|
@@ -1203,8 +1201,8 @@ function Mobile(props) {
|
|
|
1203
1201
|
] }) }),
|
|
1204
1202
|
/* @__PURE__ */ jsxRuntime.jsx(components_box_box.Box, { mt: "100", children: links.filter((item) => item.name === rootContext.selectedDomainItem).map(
|
|
1205
1203
|
(link) => {
|
|
1206
|
-
var
|
|
1207
|
-
return (
|
|
1204
|
+
var _a2;
|
|
1205
|
+
return (_a2 = link.links) == null ? void 0 : _a2.filter((l) => l.name !== "Logo").map(
|
|
1208
1206
|
(subLink) => subLink.links && subLink.links.length > 0 && subLink.name === specifiedLink && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1209
1207
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1210
1208
|
HighlightedLinks,
|
|
@@ -1311,12 +1309,18 @@ const DesktopSimplified = React.forwardRef(() => {
|
|
|
1311
1309
|
});
|
|
1312
1310
|
DesktopSimplified.displayName = "DesktopSimplified";
|
|
1313
1311
|
function MobileSimplified(props) {
|
|
1312
|
+
var _a;
|
|
1314
1313
|
const rootContext = React.useContext(RootContext);
|
|
1315
1314
|
if (!rootContext) return null;
|
|
1316
1315
|
const { linkComponent: NavLink } = rootContext;
|
|
1317
1316
|
const classes = clsx([styles[`${rootClassName}__mobile`]], props.className);
|
|
1317
|
+
const links = components_navigationMenu_globalNavigation_utils.getLinks(rootContext.pathname.includes("bedrift/utstyrsavtale"), rootContext.customLinks);
|
|
1318
|
+
const activeDomain = links.find((l) => l.name === rootContext.selectedDomainItem) || links[0];
|
|
1319
|
+
const logoEntry = (_a = activeDomain == null ? void 0 : activeDomain.links) == null ? void 0 : _a.find((l) => l.name === "Logo");
|
|
1320
|
+
const logoLink = (logoEntry == null ? void 0 : logoEntry.link) || "/";
|
|
1321
|
+
const logoAppKey = logoEntry == null ? void 0 : logoEntry.appKey;
|
|
1318
1322
|
return /* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { ...props, className: classes, children: /* @__PURE__ */ jsxRuntime.jsxs(components_flex_flex.Flex, { flexGrow: "1", justify: "between", align: "center", gap: "200", children: [
|
|
1319
|
-
/* @__PURE__ */ jsxRuntime.jsx(components_box_box.Box, { flexShrink: "0", children: /* @__PURE__ */ jsxRuntime.jsx(NavigationMenu.Link, { asChild: true, variant: "button", children: rootContext.appKey === "
|
|
1323
|
+
/* @__PURE__ */ jsxRuntime.jsx(components_box_box.Box, { flexShrink: "0", children: /* @__PURE__ */ jsxRuntime.jsx(NavigationMenu.Link, { asChild: true, variant: "button", children: logoAppKey === rootContext.appKey || rootContext.appKey === "storybook" ? /* @__PURE__ */ jsxRuntime.jsx(NavLink, { href: logoLink, children: /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { size: "lg", name: "telia-logo", "aria-label": "Telia logo" }) }) : /* @__PURE__ */ jsxRuntime.jsx("a", { href: logoLink, children: /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { size: "lg", name: "telia-logo", "aria-label": "Telia logo" }) }) }) }),
|
|
1320
1324
|
/* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { flexBasis: "0", gap: { sm: "100", md: "200" }, children: /* @__PURE__ */ jsxRuntime.jsx(ShoppingCart, {}) })
|
|
1321
1325
|
] }) });
|
|
1322
1326
|
}
|
|
@@ -1462,13 +1466,20 @@ function getInitialMenuItem(currentPath, customLinks) {
|
|
|
1462
1466
|
}
|
|
1463
1467
|
Root.displayName = "GlobalNavigation";
|
|
1464
1468
|
const GlobalNavigation = Root;
|
|
1469
|
+
const Content = React.forwardRef(
|
|
1470
|
+
({ className, children, ...props }, forwardRef) => {
|
|
1471
|
+
const classes = clsx([components_checkboxCardGroup_checkboxCardGroupRoot.styles[`${components_checkboxCardGroup_checkboxCardGroupRoot.rootClassName}__content-wrapper`]], className);
|
|
1472
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { direction: "column", width: "100%", gap: "50", ...props, ref: forwardRef, className: classes, children });
|
|
1473
|
+
}
|
|
1474
|
+
);
|
|
1475
|
+
Content.displayName = "Content";
|
|
1465
1476
|
exports.CheckboxCardGroup = CheckboxCardGroup;
|
|
1466
1477
|
exports.CheckboxCardGroup$1 = CheckboxCardGroup;
|
|
1467
1478
|
exports.Close = Close;
|
|
1468
1479
|
exports.Close$1 = Close;
|
|
1469
1480
|
exports.Content = Content$2;
|
|
1470
1481
|
exports.Content$1 = Content$2;
|
|
1471
|
-
exports.Content$2 = Content
|
|
1482
|
+
exports.Content$2 = Content;
|
|
1472
1483
|
exports.Desktop = Desktop;
|
|
1473
1484
|
exports.Desktop$1 = Desktop;
|
|
1474
1485
|
exports.DesktopSimplified = DesktopSimplified;
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import React__default, { useEffect } from "react";
|
|
3
2
|
import clsx from "clsx";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { useComposedRefs } from "../../utils/composeRefs.js";
|
|
7
|
-
import { VisuallyHidden } from "../visually-hidden/visually-hidden.js";
|
|
8
|
-
import { composeEventHandlers } from "../../utils/composeEventHandlers.js";
|
|
9
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
10
|
-
import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
|
11
|
-
import { mergeStyles } from "../../utils/generate-styling/index.js";
|
|
12
|
-
import { teddyMotionDuration300 } from "../../tokens/motion/variables.js";
|
|
3
|
+
import React__default, { useEffect } from "react";
|
|
4
|
+
import { s as styles$2, rootClassName as rootClassName$2, Root as Root$2 } from "./checkbox-card-group-root.js";
|
|
13
5
|
import "../step-by-step/index.js";
|
|
14
6
|
import "../top-row-buttons/top-row-buttons.js";
|
|
15
7
|
import "../dashed-button/dashed-button-root.js";
|
|
@@ -28,8 +20,8 @@ import "../collapsible/index.js";
|
|
|
28
20
|
import "../meter-bar/index.js";
|
|
29
21
|
import "../skeleton/index.js";
|
|
30
22
|
import { Checkbox } from "../checkbox/index.js";
|
|
31
|
-
import { s as styles$2, rootClassName as rootClassName$2, Root as Root$2 } from "./checkbox-card-group-root.js";
|
|
32
23
|
import { GroupLabel } from "./checkbox-card-group-label.js";
|
|
24
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
33
25
|
import "../toast/toast-root.js";
|
|
34
26
|
import "sonner";
|
|
35
27
|
import "../toggletip/index.js";
|
|
@@ -64,22 +56,31 @@ import { Box } from "../box/box.js";
|
|
|
64
56
|
import { Flex } from "../flex/flex.js";
|
|
65
57
|
import "../card/index.js";
|
|
66
58
|
import { Grid } from "../grid/grid.js";
|
|
67
|
-
import "
|
|
68
|
-
import "
|
|
69
|
-
import "../
|
|
59
|
+
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
60
|
+
import { useComposedRefs } from "../../utils/composeRefs.js";
|
|
61
|
+
import { VisuallyHidden } from "../visually-hidden/visually-hidden.js";
|
|
62
|
+
import { composeEventHandlers } from "../../utils/composeEventHandlers.js";
|
|
63
|
+
import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
|
64
|
+
import { mergeStyles } from "../../utils/generate-styling/index.js";
|
|
65
|
+
import { teddyMotionDuration300 } from "../../tokens/motion/variables.js";
|
|
66
|
+
import { MY_PAGE_RETAILER_LINKS, MY_PAGE_LINKS, LOGGED_IN_LINKS_BUSINESS, getLinks, getActiveSubLink, DEFAULT_PRIVATE_LINKS, DEFAULT_BUSINESS_LINKS, DEFAULT_MDU_LINKS } from "../navigation-menu/global-navigation/utils.js";
|
|
67
|
+
import { Button } from "../button/button.js";
|
|
68
|
+
import { Heading } from "../heading/heading.js";
|
|
69
|
+
import { TextSpacing } from "../text-spacing/text-spacing.js";
|
|
70
|
+
import { TextField } from "../text-field/index.js";
|
|
70
71
|
import "../badge/badge.js";
|
|
71
72
|
import "../badge/alert-badge.js";
|
|
72
73
|
import { CounterBadge } from "../badge/counter-badge.js";
|
|
73
|
-
import {
|
|
74
|
+
import { useSize } from "../../utils/useSize.js";
|
|
75
|
+
import "../toggle/toggle.js";
|
|
76
|
+
import "../accordion/index.js";
|
|
77
|
+
import "../link/link.js";
|
|
74
78
|
import "../field-error-text/field-error-text.js";
|
|
75
79
|
import "../helper-text/helper-text.js";
|
|
76
80
|
import "../input/index.js";
|
|
77
81
|
import "../label/label.js";
|
|
78
82
|
import "../spinner/spinner.js";
|
|
79
83
|
import { Text } from "../text/text.js";
|
|
80
|
-
import { TextField } from "../text-field/index.js";
|
|
81
|
-
import { Heading } from "../heading/heading.js";
|
|
82
|
-
import { TextSpacing } from "../text-spacing/text-spacing.js";
|
|
83
84
|
import "../container/container.js";
|
|
84
85
|
import "../carousel/carousel-root.js";
|
|
85
86
|
import "../slider/slider.js";
|
|
@@ -90,7 +91,6 @@ import { Indicator as Indicator$2 } from "../radio-card-group/radio-card-group-i
|
|
|
90
91
|
import { Body as Body$1 } from "../radio-card-group/radio-card-group-item-body.js";
|
|
91
92
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
92
93
|
import { Body } from "./checkbox-card-group-item-body.js";
|
|
93
|
-
import { useSize } from "../../utils/useSize.js";
|
|
94
94
|
const Indicator$1 = React__default.forwardRef(
|
|
95
95
|
({ className, checked, onCheckedChange, disabled, ...props }, forwardRef) => {
|
|
96
96
|
const classes = clsx([styles$2[`${rootClassName$2}__checkbox-wrapper`]], className);
|
|
@@ -115,13 +115,6 @@ const Title$1 = React__default.forwardRef(
|
|
|
115
115
|
}
|
|
116
116
|
);
|
|
117
117
|
Title$1.displayName = "Title";
|
|
118
|
-
const Content$2 = React__default.forwardRef(
|
|
119
|
-
({ className, children, ...props }, forwardRef) => {
|
|
120
|
-
const classes = clsx([styles$2[`${rootClassName$2}__content-wrapper`]], className);
|
|
121
|
-
return /* @__PURE__ */ jsx(Flex, { direction: "column", width: "100%", gap: "50", ...props, ref: forwardRef, className: classes, children });
|
|
122
|
-
}
|
|
123
|
-
);
|
|
124
|
-
Content$2.displayName = "Content";
|
|
125
118
|
const ItemContext$1 = React__default.createContext(void 0);
|
|
126
119
|
const Item$2 = React__default.forwardRef(
|
|
127
120
|
({ className, children, value, imageUrl, checked, onCheckedChange, disabled, ...props }, forwardedRef) => {
|
|
@@ -161,7 +154,7 @@ const Item$2 = React__default.forwardRef(
|
|
|
161
154
|
onKeyDown: handleKeyDown,
|
|
162
155
|
children: [
|
|
163
156
|
imageUrl ? /* @__PURE__ */ jsx(Flex, { className: clsx([styles$2[`${rootClassName$2}__illustration`]], className), justify: "center", align: "center", children: /* @__PURE__ */ jsx("img", { src: imageUrl, alt: value }) }) : null,
|
|
164
|
-
/* @__PURE__ */ jsx(Content
|
|
157
|
+
/* @__PURE__ */ jsx(Content, { children: React__default.Children.map(children, (child) => {
|
|
165
158
|
if (React__default.isValidElement(child) && child.type === Title$1) {
|
|
166
159
|
return React__default.cloneElement(child, {
|
|
167
160
|
...child.props,
|
|
@@ -201,13 +194,13 @@ const Title = React__default.forwardRef(
|
|
|
201
194
|
}
|
|
202
195
|
);
|
|
203
196
|
Title.displayName = "Title";
|
|
204
|
-
const Content$
|
|
197
|
+
const Content$2 = React__default.forwardRef(
|
|
205
198
|
({ className, children, ...props }, forwardRef) => {
|
|
206
199
|
const classes = clsx([styles$3[`${rootClassName$3}__content-wrapper`]], className);
|
|
207
200
|
return /* @__PURE__ */ jsx(Flex, { direction: "column", width: "100%", gap: "50", ...props, ref: forwardRef, className: classes, children });
|
|
208
201
|
}
|
|
209
202
|
);
|
|
210
|
-
Content$
|
|
203
|
+
Content$2.displayName = "Content";
|
|
211
204
|
const ItemContext = React__default.createContext(void 0);
|
|
212
205
|
const Item$1 = React__default.forwardRef(
|
|
213
206
|
({ className, children, value, ...props }, forwardedRef) => {
|
|
@@ -217,7 +210,7 @@ const Item$1 = React__default.forwardRef(
|
|
|
217
210
|
const id = props.id || (context == null ? void 0 : context.id);
|
|
218
211
|
return /* @__PURE__ */ jsxs(RadioGroupPrimitive.Item, { value, id, ...props, asChild: false, ref, className: classes, children: [
|
|
219
212
|
props.imageUrl ? /* @__PURE__ */ jsx(Flex, { className: clsx([styles$3[`${rootClassName$3}__illustration`]], className), justify: "center", align: "center", children: /* @__PURE__ */ jsx("img", { src: props.imageUrl, alt: value }) }) : null,
|
|
220
|
-
/* @__PURE__ */ jsx(Content$
|
|
213
|
+
/* @__PURE__ */ jsx(Content$2, { children })
|
|
221
214
|
] });
|
|
222
215
|
}
|
|
223
216
|
);
|
|
@@ -541,7 +534,7 @@ const Trigger = React__default.forwardRef(
|
|
|
541
534
|
}
|
|
542
535
|
);
|
|
543
536
|
Trigger.displayName = "NavigationMenu.Trigger";
|
|
544
|
-
const Content = React__default.forwardRef(
|
|
537
|
+
const Content$1 = React__default.forwardRef(
|
|
545
538
|
({ className, variant = "default", ...props }, forwardRef) => {
|
|
546
539
|
const classes = clsx(
|
|
547
540
|
[styles$1[`${rootClassName$1}__content`]],
|
|
@@ -657,7 +650,7 @@ const NavigationMenu = Object.assign(Root$1, {
|
|
|
657
650
|
Separator,
|
|
658
651
|
Item,
|
|
659
652
|
Trigger,
|
|
660
|
-
Content,
|
|
653
|
+
Content: Content$1,
|
|
661
654
|
Link,
|
|
662
655
|
Indicator,
|
|
663
656
|
Viewport,
|
|
@@ -1107,6 +1100,7 @@ const HightlightedLinksDesktop = ({
|
|
|
1107
1100
|
] });
|
|
1108
1101
|
};
|
|
1109
1102
|
function Mobile(props) {
|
|
1103
|
+
var _a;
|
|
1110
1104
|
const [specifiedLink, setSpecifiedLink] = React__default.useState("");
|
|
1111
1105
|
const rootContext = React__default.useContext(RootContext);
|
|
1112
1106
|
const drawerRef = React__default.useRef(null);
|
|
@@ -1116,6 +1110,10 @@ function Mobile(props) {
|
|
|
1116
1110
|
const classes = clsx([styles[`${rootClassName}__mobile`]], props.className);
|
|
1117
1111
|
const linkClasses = clsx([styles[`${rootClassName}__link`]]);
|
|
1118
1112
|
const headerClasses = clsx([styles[`${rootClassName}__header`]]);
|
|
1113
|
+
const activeDomain = links.find((l) => l.name === rootContext.selectedDomainItem) || links[0];
|
|
1114
|
+
const logoEntry = (_a = activeDomain == null ? void 0 : activeDomain.links) == null ? void 0 : _a.find((l) => l.name === "Logo");
|
|
1115
|
+
const logoLink = (logoEntry == null ? void 0 : logoEntry.link) || "/";
|
|
1116
|
+
const logoAppKey = logoEntry == null ? void 0 : logoEntry.appKey;
|
|
1119
1117
|
return /* @__PURE__ */ jsx(Flex, { ...props, className: classes, children: /* @__PURE__ */ jsxs(
|
|
1120
1118
|
Flex,
|
|
1121
1119
|
{
|
|
@@ -1125,7 +1123,7 @@ function Mobile(props) {
|
|
|
1125
1123
|
gap: "200",
|
|
1126
1124
|
className: styles[`${rootClassName}__top-icon-wrapper`],
|
|
1127
1125
|
children: [
|
|
1128
|
-
/* @__PURE__ */ jsx(Box, { flexShrink: "0", children: /* @__PURE__ */ jsx(NavigationMenu.Link, { asChild: true, variant: "button", children: rootContext.appKey === "
|
|
1126
|
+
/* @__PURE__ */ jsx(Box, { flexShrink: "0", children: /* @__PURE__ */ jsx(NavigationMenu.Link, { asChild: true, variant: "button", children: logoAppKey === rootContext.appKey || rootContext.appKey === "storybook" ? /* @__PURE__ */ jsx(NavLink, { href: logoLink, children: /* @__PURE__ */ jsx(Icon, { size: "lg", name: "telia-logo", "aria-label": "Telia logo" }) }) : /* @__PURE__ */ jsx("a", { href: logoLink, children: /* @__PURE__ */ jsx(Icon, { size: "lg", name: "telia-logo", "aria-label": "Telia logo" }) }) }) }),
|
|
1129
1127
|
/* @__PURE__ */ jsxs(Flex, { flexBasis: "0", gap: { sm: "100", md: "200" }, className: styles[`${rootClassName}__top-menu-icons`], children: [
|
|
1130
1128
|
!rootContext.hideTopMenuList && /* @__PURE__ */ jsx(Search, {}),
|
|
1131
1129
|
/* @__PURE__ */ jsx(ShoppingCart, {}),
|
|
@@ -1147,9 +1145,9 @@ function Mobile(props) {
|
|
|
1147
1145
|
children: [
|
|
1148
1146
|
!rootContext.hideTopMenuList && /* @__PURE__ */ jsx(Tabs.List, { children: links.map((link) => /* @__PURE__ */ jsx(Tabs.Trigger, { asChild: true, value: link.name, children: link.appKey === rootContext.appKey || rootContext.appKey === "storybook" ? /* @__PURE__ */ jsx(NavLink, { href: link.link, children: link.name }) : /* @__PURE__ */ jsx("a", { href: link.link, children: link.name }) }, link.name)) }),
|
|
1149
1147
|
/* @__PURE__ */ jsx(Fragment, { children: links.map((link) => {
|
|
1150
|
-
var
|
|
1148
|
+
var _a2, _b;
|
|
1151
1149
|
return /* @__PURE__ */ jsxs(Tabs.Content, { value: link.name, children: [
|
|
1152
|
-
/* @__PURE__ */ jsx(Box, { mt: "400", children: (
|
|
1150
|
+
/* @__PURE__ */ jsx(Box, { mt: "400", children: (_a2 = link.links) == null ? void 0 : _a2.filter((l) => l.name !== "Logo").map(
|
|
1153
1151
|
(subLink) => subLink.links && subLink.links.length > 0 ? /* @__PURE__ */ jsxs(Box, { onClick: () => setSpecifiedLink(subLink.name), className: linkClasses, children: [
|
|
1154
1152
|
/* @__PURE__ */ jsx(Heading, { asChild: true, variant: "title-300", children: /* @__PURE__ */ jsx(Button, { className: styles[`${rootClassName}__sublink-button--mobile`], children: subLink.name }) }),
|
|
1155
1153
|
/* @__PURE__ */ jsx(Icon, { name: "chevron-right", size: "md" })
|
|
@@ -1182,8 +1180,8 @@ function Mobile(props) {
|
|
|
1182
1180
|
] }) }),
|
|
1183
1181
|
/* @__PURE__ */ jsx(Box, { mt: "100", children: links.filter((item) => item.name === rootContext.selectedDomainItem).map(
|
|
1184
1182
|
(link) => {
|
|
1185
|
-
var
|
|
1186
|
-
return (
|
|
1183
|
+
var _a2;
|
|
1184
|
+
return (_a2 = link.links) == null ? void 0 : _a2.filter((l) => l.name !== "Logo").map(
|
|
1187
1185
|
(subLink) => subLink.links && subLink.links.length > 0 && subLink.name === specifiedLink && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1188
1186
|
/* @__PURE__ */ jsx(
|
|
1189
1187
|
HighlightedLinks,
|
|
@@ -1290,12 +1288,18 @@ const DesktopSimplified = React__default.forwardRef(() => {
|
|
|
1290
1288
|
});
|
|
1291
1289
|
DesktopSimplified.displayName = "DesktopSimplified";
|
|
1292
1290
|
function MobileSimplified(props) {
|
|
1291
|
+
var _a;
|
|
1293
1292
|
const rootContext = React__default.useContext(RootContext);
|
|
1294
1293
|
if (!rootContext) return null;
|
|
1295
1294
|
const { linkComponent: NavLink } = rootContext;
|
|
1296
1295
|
const classes = clsx([styles[`${rootClassName}__mobile`]], props.className);
|
|
1296
|
+
const links = getLinks(rootContext.pathname.includes("bedrift/utstyrsavtale"), rootContext.customLinks);
|
|
1297
|
+
const activeDomain = links.find((l) => l.name === rootContext.selectedDomainItem) || links[0];
|
|
1298
|
+
const logoEntry = (_a = activeDomain == null ? void 0 : activeDomain.links) == null ? void 0 : _a.find((l) => l.name === "Logo");
|
|
1299
|
+
const logoLink = (logoEntry == null ? void 0 : logoEntry.link) || "/";
|
|
1300
|
+
const logoAppKey = logoEntry == null ? void 0 : logoEntry.appKey;
|
|
1297
1301
|
return /* @__PURE__ */ jsx(Flex, { ...props, className: classes, children: /* @__PURE__ */ jsxs(Flex, { flexGrow: "1", justify: "between", align: "center", gap: "200", children: [
|
|
1298
|
-
/* @__PURE__ */ jsx(Box, { flexShrink: "0", children: /* @__PURE__ */ jsx(NavigationMenu.Link, { asChild: true, variant: "button", children: rootContext.appKey === "
|
|
1302
|
+
/* @__PURE__ */ jsx(Box, { flexShrink: "0", children: /* @__PURE__ */ jsx(NavigationMenu.Link, { asChild: true, variant: "button", children: logoAppKey === rootContext.appKey || rootContext.appKey === "storybook" ? /* @__PURE__ */ jsx(NavLink, { href: logoLink, children: /* @__PURE__ */ jsx(Icon, { size: "lg", name: "telia-logo", "aria-label": "Telia logo" }) }) : /* @__PURE__ */ jsx("a", { href: logoLink, children: /* @__PURE__ */ jsx(Icon, { size: "lg", name: "telia-logo", "aria-label": "Telia logo" }) }) }) }),
|
|
1299
1303
|
/* @__PURE__ */ jsx(Flex, { flexBasis: "0", gap: { sm: "100", md: "200" }, children: /* @__PURE__ */ jsx(ShoppingCart, {}) })
|
|
1300
1304
|
] }) });
|
|
1301
1305
|
}
|
|
@@ -1441,6 +1445,13 @@ function getInitialMenuItem(currentPath, customLinks) {
|
|
|
1441
1445
|
}
|
|
1442
1446
|
Root.displayName = "GlobalNavigation";
|
|
1443
1447
|
const GlobalNavigation = Root;
|
|
1448
|
+
const Content = React__default.forwardRef(
|
|
1449
|
+
({ className, children, ...props }, forwardRef) => {
|
|
1450
|
+
const classes = clsx([styles$2[`${rootClassName$2}__content-wrapper`]], className);
|
|
1451
|
+
return /* @__PURE__ */ jsx(Flex, { direction: "column", width: "100%", gap: "50", ...props, ref: forwardRef, className: classes, children });
|
|
1452
|
+
}
|
|
1453
|
+
);
|
|
1454
|
+
Content.displayName = "Content";
|
|
1444
1455
|
export {
|
|
1445
1456
|
CheckboxCardGroup as C,
|
|
1446
1457
|
CheckboxCardGroup,
|
|
@@ -1453,7 +1464,7 @@ export {
|
|
|
1453
1464
|
GlobalNavigation,
|
|
1454
1465
|
HighlightedLinks as H,
|
|
1455
1466
|
HighlightedLinks,
|
|
1456
|
-
|
|
1467
|
+
Item$2 as I,
|
|
1457
1468
|
Indicator$1 as Indicator,
|
|
1458
1469
|
Item$2 as Item,
|
|
1459
1470
|
ItemContext$1 as ItemContext,
|
|
@@ -1473,23 +1484,23 @@ export {
|
|
|
1473
1484
|
ShoppingCart,
|
|
1474
1485
|
Title$1 as T,
|
|
1475
1486
|
Title$1 as Title,
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1487
|
+
ItemContext$1 as a,
|
|
1488
|
+
Title as b,
|
|
1489
|
+
Content$2 as c,
|
|
1490
|
+
Item$1 as d,
|
|
1480
1491
|
ItemContext as e,
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1492
|
+
Close as f,
|
|
1493
|
+
MyPages as g,
|
|
1494
|
+
SearchField as h,
|
|
1495
|
+
Search as i,
|
|
1496
|
+
ShoppingCart as j,
|
|
1497
|
+
Mobile as k,
|
|
1498
|
+
DesktopSimplified as l,
|
|
1499
|
+
MobileSimplified as m,
|
|
1500
|
+
Root as n,
|
|
1501
|
+
RootContext as o,
|
|
1502
|
+
rootClassName as p,
|
|
1503
|
+
Content as q,
|
|
1493
1504
|
rootClassName$1 as r,
|
|
1494
1505
|
rootClassName$1 as rootClassName
|
|
1495
1506
|
};
|
|
@@ -4,7 +4,6 @@ require("react/jsx-runtime");
|
|
|
4
4
|
require("clsx");
|
|
5
5
|
require("react");
|
|
6
6
|
require("./checkbox-card-group-root.cjs");
|
|
7
|
-
require("@radix-ui/react-slot");
|
|
8
7
|
require("../step-by-step/index.cjs");
|
|
9
8
|
require("../top-row-buttons/top-row-buttons.cjs");
|
|
10
9
|
require("../dashed-button/dashed-button-root.cjs");
|
|
@@ -2,7 +2,6 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "clsx";
|
|
3
3
|
import "react";
|
|
4
4
|
import "./checkbox-card-group-root.js";
|
|
5
|
-
import "@radix-ui/react-slot";
|
|
6
5
|
import "../step-by-step/index.js";
|
|
7
6
|
import "../top-row-buttons/top-row-buttons.js";
|
|
8
7
|
import "../dashed-button/dashed-button-root.js";
|
|
@@ -20,7 +20,7 @@ import "../collapsible/index.js";
|
|
|
20
20
|
import "../meter-bar/index.js";
|
|
21
21
|
import "../skeleton/index.js";
|
|
22
22
|
import "../checkbox/index.js";
|
|
23
|
-
import {
|
|
23
|
+
import { I, a } from "./checkbox-card-group-indicator.js";
|
|
24
24
|
import "../toast/toast-root.js";
|
|
25
25
|
import "sonner";
|
|
26
26
|
import "../toggletip/index.js";
|
|
@@ -67,6 +67,6 @@ import "../slider/slider.js";
|
|
|
67
67
|
import "../textarea/index.js";
|
|
68
68
|
import "../../utils/composeRefs.js";
|
|
69
69
|
export {
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
I as Item,
|
|
71
|
+
a as ItemContext
|
|
72
72
|
};
|
|
@@ -69,9 +69,9 @@ const components_circleBar_circleBar = require("./circle-bar/circle-bar.cjs");
|
|
|
69
69
|
const components_textarea_index = require("./textarea/index.cjs");
|
|
70
70
|
const components_video_video = require("./video/video.cjs");
|
|
71
71
|
const components_shoppingCart_types = require("./shopping-cart/types.cjs");
|
|
72
|
-
const sonner = require("sonner");
|
|
73
72
|
const components_input_inputGroup = require("./input/input-group.cjs");
|
|
74
73
|
const components_textarea_textareaGroup = require("./textarea/textarea-group.cjs");
|
|
74
|
+
const sonner = require("sonner");
|
|
75
75
|
exports.StepByStep = components_stepByStep_index.StepByStep;
|
|
76
76
|
exports.TopRowButtons = components_topRowButtons_topRowButtons.TopRowButtons;
|
|
77
77
|
exports.DashedButton = components_dashedButton_dashedButtonRoot.DashedButton;
|
|
@@ -145,9 +145,9 @@ exports.CircleBar = components_circleBar_circleBar.CircleBar;
|
|
|
145
145
|
exports.TextareaGroup = components_textarea_index.TextareaGroup;
|
|
146
146
|
exports.Video = components_video_video;
|
|
147
147
|
exports.CART_ITEM_TYPE = components_shoppingCart_types.CART_ITEM_TYPE;
|
|
148
|
+
exports.Input = components_input_inputGroup.Input$1;
|
|
149
|
+
exports.Textarea = components_textarea_textareaGroup.Textarea$1;
|
|
148
150
|
Object.defineProperty(exports, "toast", {
|
|
149
151
|
enumerable: true,
|
|
150
152
|
get: () => sonner.toast
|
|
151
153
|
});
|
|
152
|
-
exports.Input = components_input_inputGroup.Input$1;
|
|
153
|
-
exports.Textarea = components_textarea_textareaGroup.Textarea$1;
|
package/dist/components/index.js
CHANGED
|
@@ -67,9 +67,9 @@ import { CircleBar } from "./circle-bar/circle-bar.js";
|
|
|
67
67
|
import { TextareaGroup } from "./textarea/index.js";
|
|
68
68
|
import { default as default3 } from "./video/video.js";
|
|
69
69
|
import { CART_ITEM_TYPE } from "./shopping-cart/types.js";
|
|
70
|
-
import { toast } from "sonner";
|
|
71
70
|
import { I } from "./input/input-group.js";
|
|
72
71
|
import { T } from "./textarea/textarea-group.js";
|
|
72
|
+
import { toast } from "sonner";
|
|
73
73
|
export {
|
|
74
74
|
Accordion,
|
|
75
75
|
AlertBadge,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import { isValidMaxNumber, DEFAULT_MAX, isNumber, defaultGetValueLabel,
|
|
4
|
+
import { isValidMaxNumber, DEFAULT_MAX, isNumber, defaultGetValueLabel, isValidValueNumber, getProgress } from "./utils.js";
|
|
5
5
|
const slideInFromLeft = "_slideInFromLeft_1wiil_1";
|
|
6
6
|
const styles = {
|
|
7
7
|
"teddy-meter-bar": "_teddy-meter-bar_1wiil_1",
|