@telia/teddy 0.0.60 → 0.0.62
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/breadcrumbs/breadcrumbs-link.d.ts +1 -1
- package/dist/components/breadcrumbs/index.d.ts +1 -1
- package/dist/components/card/card-illustration.d.ts +1 -1
- package/dist/components/card/card-link.d.ts +1 -1
- package/dist/components/card/index.d.ts +2 -2
- package/dist/components/chip/chip-indicator.d.ts +1 -1
- package/dist/components/chip/index.d.ts +1 -1
- package/dist/components/expandable-card/expandable-card-button.d.ts +3 -3
- package/dist/components/expandable-card/index.d.ts +4 -4
- package/dist/components/index.cjs +11 -4
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +9 -5
- package/dist/components/modal/modal.cjs +3 -2
- package/dist/components/modal/modal.js +3 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-desktop-simplified.cjs +2 -3
- package/dist/components/navigation-menu/global-navigation/global-navigation-desktop-simplified.js +2 -3
- package/dist/components/navigation-menu/global-navigation/global-navigation-desktop.cjs +2 -3
- package/dist/components/navigation-menu/global-navigation/global-navigation-desktop.js +1 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile-simplified.cjs +2 -3
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile-simplified.js +2 -3
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.cjs +2 -3
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.js +2 -3
- package/dist/components/navigation-menu/global-navigation/global-navigation-my-pages.cjs +12 -682
- package/dist/components/navigation-menu/global-navigation/global-navigation-my-pages.js +12 -682
- package/dist/components/navigation-menu/global-navigation/global-navigation-root.cjs +4 -5
- package/dist/components/navigation-menu/global-navigation/global-navigation-root.js +4 -5
- package/dist/components/navigation-menu/global-navigation/global-navigation-search-field.cjs +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-search-field.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-search.cjs +2 -3
- package/dist/components/navigation-menu/global-navigation/global-navigation-search.js +2 -3
- package/dist/components/navigation-menu/global-navigation/global-navigation-shopping-cart.cjs +2 -3
- package/dist/components/navigation-menu/global-navigation/global-navigation-shopping-cart.js +2 -3
- package/dist/components/navigation-menu/global-navigation/index.cjs +2 -2
- package/dist/components/navigation-menu/global-navigation/index.js +1 -1
- package/dist/components/navigation-menu/index.cjs +3 -4
- package/dist/components/navigation-menu/index.js +2 -3
- package/dist/components/navigation-menu/navigation-menu.cjs +55 -436
- package/dist/components/navigation-menu/navigation-menu.d.ts +9 -1
- package/dist/components/navigation-menu/navigation-menu.js +55 -419
- package/dist/components/notabene/notabene-icon.d.ts +1 -1
- package/dist/components/notification/notification.d.ts +1 -1
- package/dist/components/radio-card-group/radio-card-group-content.cjs +3 -2
- package/dist/components/radio-card-group/radio-card-group-content.js +3 -2
- package/dist/components/radio-card-group/radio-card-group-item-body.cjs +3 -2
- package/dist/components/radio-card-group/radio-card-group-item-body.js +3 -2
- package/dist/components/radio-card-group/radio-card-group-item-title.cjs +1137 -51
- package/dist/components/radio-card-group/radio-card-group-item-title.js +1148 -63
- package/dist/components/radio-card-group/radio-card-group-item.cjs +3 -2
- package/dist/components/radio-card-group/radio-card-group-item.js +3 -2
- package/dist/components/scroll-area/index.d.ts +3 -3
- package/dist/components/scroll-area/scroll-area-button.d.ts +3 -3
- package/dist/components/tabs/index.d.ts +3 -3
- package/dist/components/tabs/tabs-scroll-button.d.ts +3 -3
- 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/toast/index.cjs +10 -0
- package/dist/components/toast/index.d.ts +9 -0
- package/dist/components/toast/index.js +7 -0
- package/dist/components/toast/toast-root.cjs +121 -0
- package/dist/components/toast/toast-root.d.ts +9 -0
- package/dist/components/toast/toast-root.js +121 -0
- package/dist/components/toggle/toggle.d.ts +1 -1
- package/dist/components/toggletip/index.cjs +31 -0
- package/dist/components/toggletip/index.d.ts +33 -0
- package/dist/components/toggletip/index.js +31 -0
- package/dist/components/toggletip/toggletip-anchor.cjs +33 -0
- package/dist/components/toggletip/toggletip-anchor.d.ts +6 -0
- package/dist/components/toggletip/toggletip-anchor.js +16 -0
- package/dist/components/toggletip/toggletip-arrow.cjs +38 -0
- package/dist/components/toggletip/toggletip-arrow.d.ts +6 -0
- package/dist/components/toggletip/toggletip-arrow.js +21 -0
- package/dist/components/toggletip/toggletip-close.cjs +48 -0
- package/dist/components/toggletip/toggletip-close.d.ts +10 -0
- package/dist/components/toggletip/toggletip-close.js +31 -0
- package/dist/components/toggletip/toggletip-content.cjs +80 -0
- package/dist/components/toggletip/toggletip-content.d.ts +16 -0
- package/dist/components/toggletip/toggletip-content.js +63 -0
- package/dist/components/toggletip/toggletip-footer.cjs +10 -0
- package/dist/components/toggletip/toggletip-footer.d.ts +6 -0
- package/dist/components/toggletip/toggletip-footer.js +10 -0
- package/dist/components/toggletip/toggletip-heading.cjs +25 -0
- package/dist/components/toggletip/toggletip-heading.d.ts +6 -0
- package/dist/components/toggletip/toggletip-heading.js +25 -0
- package/dist/components/toggletip/toggletip-portal.cjs +31 -0
- package/dist/components/toggletip/toggletip-portal.d.ts +11 -0
- package/dist/components/toggletip/toggletip-portal.js +14 -0
- package/dist/components/toggletip/toggletip-root.cjs +36 -0
- package/dist/components/toggletip/toggletip-root.d.ts +26 -0
- package/dist/components/toggletip/toggletip-root.js +19 -0
- package/dist/components/toggletip/toggletip-trigger.cjs +33 -0
- package/dist/components/toggletip/toggletip-trigger.d.ts +10 -0
- package/dist/components/toggletip/toggletip-trigger.js +16 -0
- package/dist/components/tooltip/index.d.ts +3 -3
- package/dist/main.cjs +11 -4
- package/dist/main.js +9 -5
- package/dist/style.css +3458 -2751
- package/dist/toggletip.module-A6XIfaD_.cjs +10 -0
- package/dist/toggletip.module-BUx6_4pv.js +11 -0
- 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 +17 -15
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { Box } from '..';
|
|
2
3
|
|
|
3
4
|
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
4
5
|
export declare const rootClassName = "teddy-navigation-menu";
|
|
@@ -41,6 +42,11 @@ type ListProps = React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.L
|
|
|
41
42
|
*/
|
|
42
43
|
value?: string;
|
|
43
44
|
};
|
|
45
|
+
/** -------------------------------------------------------------------------------------------------
|
|
46
|
+
* Separator
|
|
47
|
+
* -----------------------------------------------------------------------------------------------*/
|
|
48
|
+
export type SeparatorProps = Omit<React.ComponentPropsWithoutRef<typeof Box>, 'asChild' | 'as' | 'children'>;
|
|
49
|
+
export declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
44
50
|
/** -------------------------------------------------------------------------------------------------
|
|
45
51
|
* NavigationMenuItem
|
|
46
52
|
* -----------------------------------------------------------------------------------------------*/
|
|
@@ -95,6 +101,7 @@ declare const NavigationMenu: React.ForwardRefExoticComponent<Omit<NavigationMen
|
|
|
95
101
|
*/
|
|
96
102
|
value?: string | undefined;
|
|
97
103
|
} & React.RefAttributes<HTMLUListElement>>;
|
|
104
|
+
Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
98
105
|
Item: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>, "ref"> & {
|
|
99
106
|
defaultValue?: string | undefined;
|
|
100
107
|
} & React.RefAttributes<HTMLLIElement>>;
|
|
@@ -106,7 +113,7 @@ declare const NavigationMenu: React.ForwardRefExoticComponent<Omit<NavigationMen
|
|
|
106
113
|
variant?: "default" | "float" | undefined;
|
|
107
114
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
108
115
|
Link: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>, "ref"> & {
|
|
109
|
-
variant?: "
|
|
116
|
+
variant?: "small" | "button" | "default" | undefined;
|
|
110
117
|
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
111
118
|
Indicator: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
112
119
|
Viewport: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -122,6 +129,7 @@ declare const NavigationMenu: React.ForwardRefExoticComponent<Omit<NavigationMen
|
|
|
122
129
|
type NavigationMenuProps = {
|
|
123
130
|
Root: RootProps;
|
|
124
131
|
List: ListProps;
|
|
132
|
+
Separator: SeparatorProps;
|
|
125
133
|
Item: ItemProps;
|
|
126
134
|
Trigger: TriggerProps;
|
|
127
135
|
Content: ContentProps;
|
|
@@ -1,421 +1,57 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
onFocusProxyEnter: () => {
|
|
54
|
-
},
|
|
55
|
-
onContentFocusOutside: () => {
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
const Root = React__default.forwardRef(
|
|
59
|
-
({ className, defaultTopMenuValue, topMenuValue, onTopMenuValueChange, ...props }, forwardRef) => {
|
|
60
|
-
const [selectedTopMenu, setSelectedTopMenu] = useControllableState({
|
|
61
|
-
defaultProp: defaultTopMenuValue,
|
|
62
|
-
prop: topMenuValue,
|
|
63
|
-
onChange: onTopMenuValueChange
|
|
64
|
-
});
|
|
65
|
-
const contentRef = React__default.useRef(null);
|
|
66
|
-
const [allowAnimationOfHeight, setAllowAnimationOfHeight] = React__default.useState(false);
|
|
67
|
-
const timerRef = React__default.useRef(void 0);
|
|
68
|
-
const restoreContentTabOrderRef = React__default.useRef(() => {
|
|
69
|
-
});
|
|
70
|
-
const focusProxyRef = React__default.useRef(null);
|
|
71
|
-
const topMenuRef = React__default.useRef(null);
|
|
72
|
-
const id = React__default.useId();
|
|
73
|
-
const handleContentEntry = React__default.useCallback((side = "start") => {
|
|
74
|
-
if (contentRef.current) {
|
|
75
|
-
restoreContentTabOrderRef.current();
|
|
76
|
-
const candidates = getTabbableCandidates(contentRef.current);
|
|
77
|
-
if (candidates.length)
|
|
78
|
-
focusFirst(side === "start" ? candidates : candidates.reverse());
|
|
79
|
-
}
|
|
80
|
-
}, []);
|
|
81
|
-
const handleContentExit = React__default.useCallback(() => {
|
|
82
|
-
if (contentRef.current) {
|
|
83
|
-
const candidates = getTabbableCandidates(contentRef.current);
|
|
84
|
-
if (candidates.length)
|
|
85
|
-
restoreContentTabOrderRef.current = removeFromTabOrder(candidates);
|
|
86
|
-
}
|
|
87
|
-
}, []);
|
|
88
|
-
React__default.useEffect(() => {
|
|
89
|
-
timerRef.current = setTimeout(() => {
|
|
90
|
-
setAllowAnimationOfHeight(true);
|
|
91
|
-
}, 500);
|
|
92
|
-
return () => {
|
|
93
|
-
timerRef.current && clearTimeout(timerRef.current);
|
|
94
|
-
};
|
|
95
|
-
}, []);
|
|
96
|
-
const classes = clsx([styles[`${rootClassName}`]], className);
|
|
97
|
-
return /* @__PURE__ */ jsx(
|
|
98
|
-
NavigationMenuContext.Provider,
|
|
99
|
-
{
|
|
100
|
-
value: {
|
|
101
|
-
contentRef,
|
|
102
|
-
focusProxyRef,
|
|
103
|
-
topMenuRef,
|
|
104
|
-
id,
|
|
105
|
-
dir: props.dir || "ltr",
|
|
106
|
-
orientation: props.orientation || "horizontal",
|
|
107
|
-
onEntryKeyDown: handleContentEntry,
|
|
108
|
-
onFocusProxyEnter: handleContentEntry,
|
|
109
|
-
onContentFocusOutside: handleContentExit,
|
|
110
|
-
selectedTopMenu,
|
|
111
|
-
setSelectedTopMenu
|
|
112
|
-
},
|
|
113
|
-
children: /* @__PURE__ */ jsx(
|
|
114
|
-
NavigationMenuPrimitive.Root,
|
|
115
|
-
{
|
|
116
|
-
...props,
|
|
117
|
-
style: allowAnimationOfHeight ? mergeStyles(props.style, { ["--teddy-motion-duration-controlled"]: teddyMotionDuration300 }) : props.style,
|
|
118
|
-
ref: forwardRef,
|
|
119
|
-
className: classes
|
|
120
|
-
}
|
|
121
|
-
)
|
|
122
|
-
}
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
);
|
|
126
|
-
Root.displayName = "NavigationMenu";
|
|
127
|
-
const TopMenuList = React__default.forwardRef(
|
|
128
|
-
({ className, ...props }, forwardRef) => {
|
|
129
|
-
const classes = clsx([styles[`${rootClassName}__top-menu-list`]], className);
|
|
130
|
-
const context = React__default.useContext(NavigationMenuContext);
|
|
131
|
-
const ref = useComposedRefs(context.topMenuRef, forwardRef);
|
|
132
|
-
return /* @__PURE__ */ jsx("ul", { ...props, ref, className: classes });
|
|
133
|
-
}
|
|
134
|
-
);
|
|
135
|
-
TopMenuList.displayName = "NavigationMenu.TopMenuList";
|
|
136
|
-
const TopMenuItem = React__default.forwardRef(
|
|
137
|
-
({ className, ...props }, forwardRef) => {
|
|
138
|
-
const classes = clsx([styles[`${rootClassName}__top-menu-item`]], className);
|
|
139
|
-
return /* @__PURE__ */ jsx("li", { ...props, ref: forwardRef, className: classes });
|
|
140
|
-
}
|
|
141
|
-
);
|
|
142
|
-
const TopMenuTrigger = React__default.forwardRef(
|
|
143
|
-
({ className, asChild, active, ...props }, forwardRef) => {
|
|
144
|
-
const classes = clsx(
|
|
145
|
-
[styles[`${rootClassName}__top-menu-trigger`], styles[`${rootClassName}__top-menu-trigger--small`]],
|
|
146
|
-
className
|
|
147
|
-
);
|
|
148
|
-
const Comp = asChild ? Slot : "button";
|
|
149
|
-
const context = React__default.useContext(NavigationMenuContext);
|
|
150
|
-
const innerRef = React__default.useRef(null);
|
|
151
|
-
const ref = useComposedRefs(innerRef, forwardRef);
|
|
152
|
-
const isOpen = context.selectedTopMenu === props.value;
|
|
153
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
154
|
-
/* @__PURE__ */ jsx(
|
|
155
|
-
Comp,
|
|
156
|
-
{
|
|
157
|
-
...props,
|
|
158
|
-
ref,
|
|
159
|
-
className: classes,
|
|
160
|
-
"data-state": isOpen ? "open" : "closed",
|
|
161
|
-
"data-active": active ? "true" : void 0,
|
|
162
|
-
"aria-expanded": isOpen,
|
|
163
|
-
"aria-controls": makeContentId({ value: props.value, baseId: context.id }),
|
|
164
|
-
...{ [ITEM_DATA_ATTR]: "" },
|
|
165
|
-
onClick: composeEventHandlers(props.onClick, () => {
|
|
166
|
-
context.setSelectedTopMenu(props.value);
|
|
167
|
-
}),
|
|
168
|
-
onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {
|
|
169
|
-
var _a;
|
|
170
|
-
const verticalEntryKey = context.dir === "rtl" ? "ArrowLeft" : "ArrowRight";
|
|
171
|
-
const entryKey = { horizontal: "ArrowDown", vertical: verticalEntryKey }[context.orientation];
|
|
172
|
-
if (isOpen && event.key === entryKey) {
|
|
173
|
-
context.onEntryKeyDown();
|
|
174
|
-
return event.preventDefault();
|
|
175
|
-
}
|
|
176
|
-
const isFocusNavigationKey = ["Home", "End", ...ARROW_KEYS].includes(event.key);
|
|
177
|
-
if (isFocusNavigationKey) {
|
|
178
|
-
const triggers = (_a = context.topMenuRef.current) == null ? void 0 : _a.querySelectorAll(`[${ITEM_DATA_ATTR}]`);
|
|
179
|
-
if (!triggers)
|
|
180
|
-
return;
|
|
181
|
-
let candidateNodes = Array.from(triggers == null ? void 0 : triggers.values());
|
|
182
|
-
const prevItemKey = context.dir === "rtl" ? "ArrowRight" : "ArrowLeft";
|
|
183
|
-
const prevKeys = [prevItemKey, "ArrowUp", "End"];
|
|
184
|
-
if (prevKeys.includes(event.key))
|
|
185
|
-
candidateNodes.reverse();
|
|
186
|
-
if (ARROW_KEYS.includes(event.key)) {
|
|
187
|
-
const currentIndex = candidateNodes.indexOf(event.currentTarget);
|
|
188
|
-
candidateNodes = candidateNodes.slice(currentIndex + 1);
|
|
189
|
-
focusFirst(candidateNodes);
|
|
190
|
-
event.preventDefault();
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
})
|
|
194
|
-
}
|
|
195
|
-
),
|
|
196
|
-
isOpen && /* @__PURE__ */ jsx(
|
|
197
|
-
VisuallyHidden,
|
|
198
|
-
{
|
|
199
|
-
"aria-hidden": true,
|
|
200
|
-
tabIndex: 0,
|
|
201
|
-
ref: context.focusProxyRef,
|
|
202
|
-
onFocus: (event) => {
|
|
203
|
-
const content = context.contentRef.current;
|
|
204
|
-
const prevFocusedElement = event.relatedTarget;
|
|
205
|
-
const wasTriggerFocused = prevFocusedElement === innerRef.current;
|
|
206
|
-
const wasFocusFromContent = content == null ? void 0 : content.contains(prevFocusedElement);
|
|
207
|
-
if (wasTriggerFocused || !wasFocusFromContent) {
|
|
208
|
-
context.onFocusProxyEnter(wasTriggerFocused ? "start" : "end");
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
)
|
|
213
|
-
] });
|
|
214
|
-
}
|
|
215
|
-
);
|
|
216
|
-
const List = React__default.forwardRef(
|
|
217
|
-
({ className, variant, value, ...props }, forwardRef) => {
|
|
218
|
-
const classes = clsx([styles[`${rootClassName}__list`]], [styles[`${rootClassName}__list--${variant}`]], className);
|
|
219
|
-
const context = React__default.useContext(NavigationMenuContext);
|
|
220
|
-
const refOnOpen = useComposedRefs(context.contentRef, forwardRef);
|
|
221
|
-
const hasTopMenu = context.selectedTopMenu !== void 0;
|
|
222
|
-
const isOpen = context.selectedTopMenu === value;
|
|
223
|
-
if (!isOpen)
|
|
224
|
-
return null;
|
|
225
|
-
return /* @__PURE__ */ jsx(
|
|
226
|
-
NavigationMenuPrimitive.List,
|
|
227
|
-
{
|
|
228
|
-
ref: hasTopMenu ? refOnOpen : forwardRef,
|
|
229
|
-
id: value && makeContentId({ value, baseId: context.id }),
|
|
230
|
-
...props,
|
|
231
|
-
onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {
|
|
232
|
-
var _a;
|
|
233
|
-
if (!value)
|
|
234
|
-
return;
|
|
235
|
-
const isMetaKey = event.altKey || event.ctrlKey || event.metaKey;
|
|
236
|
-
const isTabKey = event.key === "Tab" && !isMetaKey;
|
|
237
|
-
if (isTabKey) {
|
|
238
|
-
const candidates = getTabbableCandidates(event.currentTarget);
|
|
239
|
-
const focusedElement = document.activeElement;
|
|
240
|
-
const index = candidates.findIndex((candidate) => candidate === focusedElement);
|
|
241
|
-
const isMovingBackwards = event.shiftKey;
|
|
242
|
-
const nextCandidates = isMovingBackwards ? candidates.slice(0, index).reverse() : candidates.slice(index + 1, candidates.length);
|
|
243
|
-
if (focusFirst(nextCandidates)) {
|
|
244
|
-
event.preventDefault();
|
|
245
|
-
} else {
|
|
246
|
-
(_a = context.focusProxyRef.current) == null ? void 0 : _a.focus();
|
|
247
|
-
context.onContentFocusOutside();
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}),
|
|
251
|
-
className: classes
|
|
252
|
-
}
|
|
253
|
-
);
|
|
254
|
-
}
|
|
255
|
-
);
|
|
256
|
-
List.displayName = "NavigationMenu.List";
|
|
257
|
-
const Item = React__default.forwardRef(
|
|
258
|
-
({ className, ...props }, forwardRef) => {
|
|
259
|
-
const classes = clsx([styles[`${rootClassName}__item`]], className);
|
|
260
|
-
return /* @__PURE__ */ jsx(NavigationMenuPrimitive.Item, { ...props, ref: forwardRef, className: classes });
|
|
261
|
-
}
|
|
262
|
-
);
|
|
263
|
-
Item.displayName = "NavigationMenu.Item";
|
|
264
|
-
const Trigger = React__default.forwardRef(
|
|
265
|
-
({ className, active, variant = "default", ...props }, forwardRef) => {
|
|
266
|
-
const classes = clsx(
|
|
267
|
-
[styles[`${rootClassName}__trigger`]],
|
|
268
|
-
[styles[`${rootClassName}__trigger--${variant}`]],
|
|
269
|
-
className
|
|
270
|
-
);
|
|
271
|
-
const innerRef = React__default.useRef(null);
|
|
272
|
-
const ref = useComposedRefs(forwardRef, innerRef);
|
|
273
|
-
return /* @__PURE__ */ jsx(
|
|
274
|
-
NavigationMenuPrimitive.Trigger,
|
|
275
|
-
{
|
|
276
|
-
onPointerEnter: (e) => e.preventDefault(),
|
|
277
|
-
onPointerMove: (e) => e.preventDefault(),
|
|
278
|
-
onPointerLeave: (e) => e.preventDefault(),
|
|
279
|
-
...props,
|
|
280
|
-
ref,
|
|
281
|
-
"data-active": active ? "true" : void 0,
|
|
282
|
-
className: classes,
|
|
283
|
-
"data-text": getLabelFromChildren(props.children)
|
|
284
|
-
}
|
|
285
|
-
);
|
|
286
|
-
}
|
|
287
|
-
);
|
|
288
|
-
Trigger.displayName = "NavigationMenu.Trigger";
|
|
289
|
-
const Content = React__default.forwardRef(
|
|
290
|
-
({ className, variant = "default", ...props }, forwardRef) => {
|
|
291
|
-
const classes = clsx(
|
|
292
|
-
[styles[`${rootClassName}__content`]],
|
|
293
|
-
[styles[`${rootClassName}__content--${variant}`]],
|
|
294
|
-
className
|
|
295
|
-
);
|
|
296
|
-
return /* @__PURE__ */ jsx(
|
|
297
|
-
NavigationMenuPrimitive.Content,
|
|
298
|
-
{
|
|
299
|
-
onPointerEnter: (e) => e.preventDefault(),
|
|
300
|
-
onPointerLeave: (e) => e.preventDefault(),
|
|
301
|
-
...props,
|
|
302
|
-
ref: forwardRef,
|
|
303
|
-
className: classes
|
|
304
|
-
}
|
|
305
|
-
);
|
|
306
|
-
}
|
|
307
|
-
);
|
|
308
|
-
const Link = React__default.forwardRef(
|
|
309
|
-
({ className, variant = "default", ...props }, forwardRef) => {
|
|
310
|
-
const classes = clsx([styles[`${rootClassName}__link`]], [styles[`${rootClassName}__link--${variant}`]], className);
|
|
311
|
-
return /* @__PURE__ */ jsx(
|
|
312
|
-
NavigationMenuPrimitive.Link,
|
|
313
|
-
{
|
|
314
|
-
...props,
|
|
315
|
-
ref: forwardRef,
|
|
316
|
-
className: classes,
|
|
317
|
-
"data-text": getLabelFromChildren(props.children)
|
|
318
|
-
}
|
|
319
|
-
);
|
|
320
|
-
}
|
|
321
|
-
);
|
|
322
|
-
Link.displayName = "NavigationMenu.Link";
|
|
323
|
-
const Indicator = React__default.forwardRef(
|
|
324
|
-
({ className, ...props }, forwardRef) => {
|
|
325
|
-
const classes = clsx([styles[`${rootClassName}__indicator`]], className);
|
|
326
|
-
return /* @__PURE__ */ jsx(NavigationMenuPrimitive.Indicator, { ...props, ref: forwardRef, className: classes });
|
|
327
|
-
}
|
|
328
|
-
);
|
|
329
|
-
Indicator.displayName = "NavigationMenu.Indicator";
|
|
330
|
-
const Viewport = React__default.forwardRef(
|
|
331
|
-
({ className, ...props }, forwardRef) => {
|
|
332
|
-
const classes = clsx([styles[`${rootClassName}__viewport`]], className);
|
|
333
|
-
return /* @__PURE__ */ jsx(NavigationMenuPrimitive.Viewport, { ...props, ref: forwardRef, className: classes });
|
|
334
|
-
}
|
|
335
|
-
);
|
|
336
|
-
Viewport.displayName = "NavigationMenu.Viewport";
|
|
337
|
-
const Sub = React__default.forwardRef(
|
|
338
|
-
({ className, ...props }, forwardRef) => {
|
|
339
|
-
const classes = clsx([styles[`${rootClassName}__sub`]], className);
|
|
340
|
-
return /* @__PURE__ */ jsx(NavigationMenuPrimitive.Sub, { ...props, ref: forwardRef, className: classes });
|
|
341
|
-
}
|
|
342
|
-
);
|
|
343
|
-
Sub.displayName = "NavigationMenu.Sub";
|
|
344
|
-
function getLabelFromChildren(children) {
|
|
345
|
-
function findLabel(node) {
|
|
346
|
-
if (typeof node === "string") {
|
|
347
|
-
return node;
|
|
348
|
-
}
|
|
349
|
-
if (React__default.isValidElement(node) && node.props.children) {
|
|
350
|
-
return findLabel(node.props.children);
|
|
351
|
-
}
|
|
352
|
-
if (Array.isArray(node)) {
|
|
353
|
-
for (let i = node.length - 1; i >= 0; i--) {
|
|
354
|
-
const label = findLabel(node[i]);
|
|
355
|
-
if (label) {
|
|
356
|
-
return label;
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
return void 0;
|
|
361
|
-
}
|
|
362
|
-
return findLabel(children);
|
|
363
|
-
}
|
|
364
|
-
function getTabbableCandidates(container) {
|
|
365
|
-
const nodes = [];
|
|
366
|
-
const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
|
|
367
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
368
|
-
acceptNode: (node) => {
|
|
369
|
-
const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
|
|
370
|
-
if (node.disabled || node.hidden || isHiddenInput)
|
|
371
|
-
return NodeFilter.FILTER_SKIP;
|
|
372
|
-
return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
373
|
-
}
|
|
374
|
-
});
|
|
375
|
-
while (walker.nextNode())
|
|
376
|
-
nodes.push(walker.currentNode);
|
|
377
|
-
return nodes;
|
|
378
|
-
}
|
|
379
|
-
function focusFirst(candidates) {
|
|
380
|
-
const previouslyFocusedElement = document.activeElement;
|
|
381
|
-
return candidates.some((candidate) => {
|
|
382
|
-
if (candidate === previouslyFocusedElement)
|
|
383
|
-
return true;
|
|
384
|
-
candidate.focus();
|
|
385
|
-
return document.activeElement !== previouslyFocusedElement;
|
|
386
|
-
});
|
|
387
|
-
}
|
|
388
|
-
function removeFromTabOrder(candidates) {
|
|
389
|
-
candidates.forEach((candidate) => {
|
|
390
|
-
candidate.dataset.tabindex = candidate.getAttribute("tabindex") || "";
|
|
391
|
-
candidate.setAttribute("tabindex", "-1");
|
|
392
|
-
});
|
|
393
|
-
return () => {
|
|
394
|
-
candidates.forEach((candidate) => {
|
|
395
|
-
const prevTabIndex = candidate.dataset.tabindex;
|
|
396
|
-
candidate.setAttribute("tabindex", prevTabIndex);
|
|
397
|
-
});
|
|
398
|
-
};
|
|
399
|
-
}
|
|
400
|
-
const ITEM_DATA_ATTR = "data-teddy-top-selector-trigger";
|
|
401
|
-
const ARROW_KEYS = ["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown"];
|
|
402
|
-
function makeContentId(args) {
|
|
403
|
-
return `teddy-navigation-menu-${args.baseId}-${args.value}-content`;
|
|
404
|
-
}
|
|
405
|
-
const NavigationMenu = Object.assign(Root, {
|
|
406
|
-
List,
|
|
407
|
-
Item,
|
|
408
|
-
Trigger,
|
|
409
|
-
Content,
|
|
410
|
-
Link,
|
|
411
|
-
Indicator,
|
|
412
|
-
Viewport,
|
|
413
|
-
Sub,
|
|
414
|
-
TopMenuList,
|
|
415
|
-
TopMenuItem,
|
|
416
|
-
TopMenuTrigger
|
|
417
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "clsx";
|
|
4
|
+
import "@radix-ui/react-navigation-menu";
|
|
5
|
+
import { N, S, r } from "../radio-card-group/radio-card-group-item-title.js";
|
|
6
|
+
import "../../utils/composeRefs.js";
|
|
7
|
+
import "../visually-hidden/visually-hidden.js";
|
|
8
|
+
import "../../utils/composeEventHandlers.js";
|
|
9
|
+
import "@radix-ui/react-slot";
|
|
10
|
+
import "@radix-ui/react-use-controllable-state";
|
|
11
|
+
import "../../utils/generate-styling/index.js";
|
|
12
|
+
import "../../tokens/motion/variables.js";
|
|
13
|
+
import "../toast/toast-root.js";
|
|
14
|
+
import "sonner";
|
|
15
|
+
import "../toggletip/index.js";
|
|
16
|
+
import "../breadcrumbs/index.js";
|
|
17
|
+
import "../ribbon/index.js";
|
|
18
|
+
import "../expandable-card/index.js";
|
|
19
|
+
import "../color-dot/color-dot-root.js";
|
|
20
|
+
import "../progress-bar/progress-bar.js";
|
|
21
|
+
import "../notabene/index.js";
|
|
22
|
+
import "../tooltip/index.js";
|
|
23
|
+
import "../list/index.js";
|
|
24
|
+
import "../scroll-area/index.js";
|
|
25
|
+
import "../tabs/index.js";
|
|
26
|
+
import "../drawer/index.js";
|
|
27
|
+
import "../image/image.js";
|
|
28
|
+
import "../chip/index.js";
|
|
29
|
+
import "../../assets/sprite.269ba410-teddy.svg";
|
|
30
|
+
import "../notification/notification.js";
|
|
31
|
+
import "../radio-group/index.js";
|
|
32
|
+
import "../box/box.js";
|
|
33
|
+
import "../flex/flex.js";
|
|
34
|
+
import "../card/index.js";
|
|
35
|
+
import "../grid/grid.js";
|
|
36
|
+
import "../toggle/toggle.js";
|
|
37
|
+
import "../accordion/index.js";
|
|
38
|
+
import "../link/link.js";
|
|
39
|
+
import "../badge/badge.js";
|
|
40
|
+
import "../badge/alert-badge.js";
|
|
41
|
+
import "../badge/counter-badge.js";
|
|
42
|
+
import "../button/button.js";
|
|
43
|
+
import "../field-error-text/field-error-text.js";
|
|
44
|
+
import "../helper-text/helper-text.js";
|
|
45
|
+
import "../input/index.js";
|
|
46
|
+
import "../label/label.js";
|
|
47
|
+
import "../spinner/spinner.js";
|
|
48
|
+
import "../text/text.js";
|
|
49
|
+
import "../text-field/index.js";
|
|
50
|
+
import "../heading/heading.js";
|
|
51
|
+
import "../text-spacing/text-spacing.js";
|
|
52
|
+
import "../container/container.js";
|
|
418
53
|
export {
|
|
419
|
-
NavigationMenu,
|
|
420
|
-
|
|
54
|
+
N as NavigationMenu,
|
|
55
|
+
S as Separator,
|
|
56
|
+
r as rootClassName
|
|
421
57
|
};
|
|
@@ -3,7 +3,7 @@ import { Icon as PrimitiveIcon } from '../icon';
|
|
|
3
3
|
|
|
4
4
|
export type IconProps = Partial<React.ComponentPropsWithoutRef<typeof PrimitiveIcon>>;
|
|
5
5
|
export declare const Icon: React.ForwardRefExoticComponent<Partial<Omit<React.SVGProps<SVGSVGElement> & {
|
|
6
|
-
name: "
|
|
6
|
+
name: "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "copy" | "dislike" | "download" | "edit" | "filter" | "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" | "email" | "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" | "summary" | "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" | "image" | "link" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "video" | "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" | "key" | "layers" | "map" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "radio" | "recycle" | "reservation" | "reverse" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "snowflake" | "speedometer" | "spyware" | "split" | "stop" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "time" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "youtube" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "x" | "alert-filled" | "alert" | "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" | "menu" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "search" | "services" | "sorter" | "table-view";
|
|
7
7
|
size?: ("font" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl") | undefined;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -89,7 +89,7 @@ declare const Notification: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<
|
|
|
89
89
|
Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
90
90
|
Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
91
91
|
Icon: React.ForwardRefExoticComponent<Partial<Omit<React.SVGProps<SVGSVGElement> & {
|
|
92
|
-
name: "
|
|
92
|
+
name: "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "copy" | "dislike" | "download" | "edit" | "filter" | "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" | "email" | "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" | "summary" | "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" | "image" | "link" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "video" | "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" | "key" | "layers" | "map" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "radio" | "recycle" | "reservation" | "reverse" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "snowflake" | "speedometer" | "spyware" | "split" | "stop" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "time" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "youtube" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "x" | "alert-filled" | "alert" | "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" | "menu" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "search" | "services" | "sorter" | "table-view";
|
|
93
93
|
size?: ("font" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl") | undefined;
|
|
94
94
|
children?: React.ReactNode;
|
|
95
95
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -4,6 +4,9 @@ require("react/jsx-runtime");
|
|
|
4
4
|
require("clsx");
|
|
5
5
|
require("react");
|
|
6
6
|
require("./radio-card-group-root.cjs");
|
|
7
|
+
require("../toast/toast-root.cjs");
|
|
8
|
+
require("sonner");
|
|
9
|
+
require("../toggletip/index.cjs");
|
|
7
10
|
require("../breadcrumbs/index.cjs");
|
|
8
11
|
const components_radioCardGroup_radioCardGroupItemTitle = require("./radio-card-group-item-title.cjs");
|
|
9
12
|
require("../ribbon/index.cjs");
|
|
@@ -25,8 +28,6 @@ require("../box/box.cjs");
|
|
|
25
28
|
require("../flex/flex.cjs");
|
|
26
29
|
require("../card/index.cjs");
|
|
27
30
|
require("../grid/grid.cjs");
|
|
28
|
-
require("../navigation-menu/navigation-menu.cjs");
|
|
29
|
-
require("../navigation-menu/global-navigation/global-navigation-my-pages.cjs");
|
|
30
31
|
require("../toggle/toggle.cjs");
|
|
31
32
|
require("../accordion/index.cjs");
|
|
32
33
|
require("../link/link.cjs");
|
|
@@ -2,6 +2,9 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "clsx";
|
|
3
3
|
import "react";
|
|
4
4
|
import "./radio-card-group-root.js";
|
|
5
|
+
import "../toast/toast-root.js";
|
|
6
|
+
import "sonner";
|
|
7
|
+
import "../toggletip/index.js";
|
|
5
8
|
import "../breadcrumbs/index.js";
|
|
6
9
|
import { C } from "./radio-card-group-item-title.js";
|
|
7
10
|
import "../ribbon/index.js";
|
|
@@ -23,8 +26,6 @@ import "../box/box.js";
|
|
|
23
26
|
import "../flex/flex.js";
|
|
24
27
|
import "../card/index.js";
|
|
25
28
|
import "../grid/grid.js";
|
|
26
|
-
import "../navigation-menu/navigation-menu.js";
|
|
27
|
-
import "../navigation-menu/global-navigation/global-navigation-my-pages.js";
|
|
28
29
|
import "../toggle/toggle.js";
|
|
29
30
|
import "../accordion/index.js";
|
|
30
31
|
import "../link/link.js";
|