@telia/teddy 0.0.52 → 0.0.54

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.
Files changed (78) hide show
  1. package/dist/components/breadcrumbs/breadcrumbs-item.cjs +12 -0
  2. package/dist/components/breadcrumbs/breadcrumbs-item.d.ts +5 -0
  3. package/dist/components/breadcrumbs/breadcrumbs-item.js +12 -0
  4. package/dist/components/breadcrumbs/breadcrumbs-link.cjs +30 -0
  5. package/dist/components/breadcrumbs/breadcrumbs-link.d.ts +10 -0
  6. package/dist/components/breadcrumbs/breadcrumbs-link.js +30 -0
  7. package/dist/components/breadcrumbs/breadcrumbs-list.cjs +12 -0
  8. package/dist/components/breadcrumbs/breadcrumbs-list.d.ts +4 -0
  9. package/dist/components/breadcrumbs/breadcrumbs-list.js +12 -0
  10. package/dist/components/breadcrumbs/breadcrumbs-page.cjs +20 -0
  11. package/dist/components/breadcrumbs/breadcrumbs-page.d.ts +5 -0
  12. package/dist/components/breadcrumbs/breadcrumbs-page.js +20 -0
  13. package/dist/components/breadcrumbs/breadcrumbs-root.cjs +29 -0
  14. package/dist/components/breadcrumbs/breadcrumbs-root.d.ts +11 -0
  15. package/dist/components/breadcrumbs/breadcrumbs-root.js +29 -0
  16. package/dist/components/breadcrumbs/breadcrumbs-separator.cjs +25 -0
  17. package/dist/components/breadcrumbs/breadcrumbs-separator.d.ts +4 -0
  18. package/dist/components/breadcrumbs/breadcrumbs-separator.js +25 -0
  19. package/dist/components/breadcrumbs/index.cjs +22 -0
  20. package/dist/components/breadcrumbs/index.d.ts +27 -0
  21. package/dist/components/breadcrumbs/index.js +22 -0
  22. package/dist/components/card/card-illustration.d.ts +1 -1
  23. package/dist/components/card/index.d.ts +1 -1
  24. package/dist/components/chip/chip-indicator.d.ts +2 -2
  25. package/dist/components/chip/index.d.ts +2 -2
  26. package/dist/components/color-dot/index.d.ts +1 -1
  27. package/dist/components/expandable-card/expandable-card-button.d.ts +1 -1
  28. package/dist/components/expandable-card/index.d.ts +1 -1
  29. package/dist/components/index.cjs +5 -2
  30. package/dist/components/index.d.ts +2 -0
  31. package/dist/components/index.js +5 -2
  32. package/dist/components/modal/index.cjs +2 -2
  33. package/dist/components/modal/index.js +2 -2
  34. package/dist/components/modal/modal.cjs +14 -184
  35. package/dist/components/modal/modal.js +14 -167
  36. package/dist/components/navigation-menu/global-navigation/global-navigation-my-pages.cjs +2 -2
  37. package/dist/components/navigation-menu/global-navigation/global-navigation-my-pages.js +3 -3
  38. package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
  39. package/dist/components/notabene/notabene-icon.d.ts +2 -2
  40. package/dist/components/notification/notification.d.ts +5 -5
  41. package/dist/components/radio-card-group/index.cjs +6 -0
  42. package/dist/components/radio-card-group/index.d.ts +67 -0
  43. package/dist/components/radio-card-group/index.js +6 -0
  44. package/dist/components/radio-card-group/radio-card-group-content.cjs +47 -0
  45. package/dist/components/radio-card-group/radio-card-group-content.d.ts +5 -0
  46. package/dist/components/radio-card-group/radio-card-group-content.js +47 -0
  47. package/dist/components/radio-card-group/radio-card-group-indicator.cjs +32 -0
  48. package/dist/components/radio-card-group/radio-card-group-indicator.d.ts +5 -0
  49. package/dist/components/radio-card-group/radio-card-group-indicator.js +15 -0
  50. package/dist/components/radio-card-group/radio-card-group-item-body.cjs +48 -0
  51. package/dist/components/radio-card-group/radio-card-group-item-body.d.ts +8 -0
  52. package/dist/components/radio-card-group/radio-card-group-item-body.js +48 -0
  53. package/dist/components/radio-card-group/radio-card-group-item-title.cjs +282 -0
  54. package/dist/components/radio-card-group/radio-card-group-item-title.d.ts +8 -0
  55. package/dist/components/radio-card-group/radio-card-group-item-title.js +264 -0
  56. package/dist/components/radio-card-group/radio-card-group-item.cjs +50 -0
  57. package/dist/components/radio-card-group/radio-card-group-item.d.ts +17 -0
  58. package/dist/components/radio-card-group/radio-card-group-item.js +50 -0
  59. package/dist/components/radio-card-group/radio-card-group-label.cjs +29 -0
  60. package/dist/components/radio-card-group/radio-card-group-label.d.ts +65 -0
  61. package/dist/components/radio-card-group/radio-card-group-label.js +29 -0
  62. package/dist/components/radio-card-group/radio-card-group-root.cjs +49 -0
  63. package/dist/components/radio-card-group/radio-card-group-root.d.ts +52 -0
  64. package/dist/components/radio-card-group/radio-card-group-root.js +32 -0
  65. package/dist/components/scroll-area/index.d.ts +1 -1
  66. package/dist/components/scroll-area/scroll-area-button.d.ts +1 -1
  67. package/dist/components/tabs/index.d.ts +2 -2
  68. package/dist/components/tabs/tabs-root.d.ts +1 -1
  69. package/dist/components/tabs/tabs-scroll-button.d.ts +1 -1
  70. package/dist/components/toggle/toggle.d.ts +2 -2
  71. package/dist/components/tooltip/index.d.ts +3 -3
  72. package/dist/main.cjs +5 -2
  73. package/dist/main.js +5 -2
  74. package/dist/style.css +1135 -889
  75. package/dist/utils/generate-styling/grid.d.ts +24 -24
  76. package/dist/utils/generate-styling/index.d.ts +16 -16
  77. package/dist/utils/generate-styling/util.d.ts +2 -2
  78. package/package.json +1 -1
@@ -1,3 +1,5 @@
1
+ import { Breadcrumbs } from "./breadcrumbs/index.js";
2
+ import { M, R } from "./radio-card-group/radio-card-group-item-title.js";
1
3
  import { Ribbon } from "./ribbon/index.js";
2
4
  import { ExpandableCard } from "./expandable-card/index.js";
3
5
  import { ColorDot } from "./color-dot/index.js";
@@ -11,7 +13,6 @@ import { Drawer } from "./drawer/index.js";
11
13
  import { Image } from "./image/image.js";
12
14
  import { Chip } from "./chip/index.js";
13
15
  import { DatePicker } from "./date-picker/date-picker.js";
14
- import { Modal } from "./modal/modal.js";
15
16
  import { Notification } from "./notification/notification.js";
16
17
  import { RadioGroup } from "./radio-group/index.js";
17
18
  import { Box } from "./box/box.js";
@@ -47,6 +48,7 @@ export {
47
48
  default3 as AllIcons,
48
49
  Badge,
49
50
  Box,
51
+ Breadcrumbs,
50
52
  Button,
51
53
  Card,
52
54
  Chip,
@@ -68,11 +70,12 @@ export {
68
70
  Label,
69
71
  Link,
70
72
  List,
71
- Modal,
73
+ M as Modal,
72
74
  NavigationMenu,
73
75
  Notabene,
74
76
  Notification,
75
77
  ProgressBar,
78
+ R as RadioCardGroup,
76
79
  RadioGroup,
77
80
  Ribbon,
78
81
  ScrollArea,
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const components_modal_modal = require("./modal.cjs");
4
- exports.Modal = components_modal_modal.Modal;
3
+ const components_radioCardGroup_radioCardGroupItemTitle = require("../radio-card-group/radio-card-group-item-title.cjs");
4
+ exports.Modal = components_radioCardGroup_radioCardGroupItemTitle.Modal;
@@ -1,4 +1,4 @@
1
- import { Modal } from "./modal.js";
1
+ import { M } from "../radio-card-group/radio-card-group-item-title.js";
2
2
  export {
3
- Modal
3
+ M as Modal
4
4
  };
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("react/jsx-runtime");
4
- const React = require("react");
5
- const DrawerPrimitive = require("@radix-ui/react-dialog");
3
+ require("react/jsx-runtime");
4
+ require("react");
5
+ require("@radix-ui/react-dialog");
6
+ require("../breadcrumbs/index.cjs");
7
+ const components_radioCardGroup_radioCardGroupItemTitle = require("../radio-card-group/radio-card-group-item-title.cjs");
6
8
  require("../ribbon/index.cjs");
7
9
  require("../expandable-card/index.cjs");
8
10
  require("../color-dot/color-dot-root.cjs");
@@ -16,12 +18,12 @@ require("../drawer/index.cjs");
16
18
  require("../image/image.cjs");
17
19
  require("../chip/index.cjs");
18
20
  require("../../assets/sprite.269ba410-teddy.svg");
19
- const components_icon_icon = require("../icon/icon.cjs");
20
- const clsx = require("clsx");
21
+ require("../icon/icon.cjs");
22
+ require("clsx");
21
23
  require("../notification/notification.cjs");
22
24
  require("../radio-group/index.cjs");
23
25
  require("../box/box.cjs");
24
- const components_flex_flex = require("../flex/flex.cjs");
26
+ require("../flex/flex.cjs");
25
27
  require("../card/index.cjs");
26
28
  require("../grid/grid.cjs");
27
29
  require("../navigation-menu/navigation-menu.cjs");
@@ -32,189 +34,17 @@ require("../link/link.cjs");
32
34
  require("../badge/badge.cjs");
33
35
  require("../badge/alert-badge.cjs");
34
36
  require("../badge/counter-badge.cjs");
35
- const components_button_button = require("../button/button.cjs");
37
+ require("../button/button.cjs");
36
38
  require("../field-error-text/field-error-text.cjs");
37
39
  require("../helper-text/helper-text.cjs");
38
40
  require("../input/index.cjs");
39
41
  require("../label/label.cjs");
40
42
  require("../spinner/spinner.cjs");
41
- const components_text_text = require("../text/text.cjs");
43
+ require("../text/text.cjs");
42
44
  require("../text-field/index.cjs");
43
- const components_heading_heading = require("../heading/heading.cjs");
45
+ require("../heading/heading.cjs");
44
46
  require("../visually-hidden/visually-hidden.cjs");
45
47
  require("../text-spacing/text-spacing.cjs");
46
- const reactSlot = require("@radix-ui/react-slot");
47
- const utils_composeRefs = require("../../utils/composeRefs.cjs");
48
- function _interopNamespaceDefault(e) {
49
- const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
50
- if (e) {
51
- for (const k in e) {
52
- if (k !== "default") {
53
- const d = Object.getOwnPropertyDescriptor(e, k);
54
- Object.defineProperty(n, k, d.get ? d : {
55
- enumerable: true,
56
- get: () => e[k]
57
- });
58
- }
59
- }
60
- }
61
- n.default = e;
62
- return Object.freeze(n);
63
- }
64
- const DrawerPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(DrawerPrimitive);
65
- const styles = {
66
- "teddy-modal__overlay": "_teddy-modal__overlay_3n21u_25",
67
- "teddy-modal__content": "_teddy-modal__content_3n21u_37",
68
- "teddy-modal__scroll": "_teddy-modal__scroll_3n21u_55",
69
- "teddy-modal__image": "_teddy-modal__image_3n21u_59",
70
- "teddy-modal__close--floating": "_teddy-modal__close--floating_3n21u_69",
71
- "teddy-modal__group": "_teddy-modal__group_3n21u_74",
72
- "teddy-modal__group--title": "_teddy-modal__group--title_3n21u_78",
73
- "teddy-modal__group--scroll": "_teddy-modal__group--scroll_3n21u_84",
74
- "teddy-modal__group--action": "_teddy-modal__group--action_3n21u_93",
75
- "modal-overlay-no-op": "_modal-overlay-no-op_3n21u_1",
76
- "teddy-fade-in": "_teddy-fade-in_3n21u_1",
77
- "teddy-fade-out": "_teddy-fade-out_3n21u_1",
78
- "modal-content-show": "_modal-content-show_3n21u_1",
79
- "modal-content-hide": "_modal-content-hide_3n21u_1",
80
- "teddy-overlay-no-op": "_teddy-overlay-no-op_3n21u_1"
81
- };
82
- const rootClassName = "teddy-modal";
83
- const RootContext = React.createContext({
84
- imageRef: null,
85
- actionGroupRef: null,
86
- scrollRef: null
87
- });
88
- const Root = (props) => {
89
- const imageRef = React.useRef(null);
90
- const actionGroupRef = React.useRef(null);
91
- const scrollRef = React.useRef(null);
92
- return /* @__PURE__ */ jsxRuntime.jsx(RootContext.Provider, { value: { imageRef, actionGroupRef, scrollRef }, children: /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Root, { ...props, modal: true }) });
93
- };
94
- Root.displayName = "Dialog.Root";
95
- const Trigger = React.forwardRef(
96
- ({ children, ...props }, forwardedRef) => /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Trigger, { ...props, ref: forwardedRef, asChild: true, children })
97
- );
98
- Trigger.displayName = "Dialog.Trigger";
99
- const OverlayContext = React.createContext(false);
100
- const Overlay = React.forwardRef(
101
- ({ className, forceMount, container, ...rest }, forwardedRef) => {
102
- const classes = clsx([styles[`${rootClassName}__overlay`]], className);
103
- return /* @__PURE__ */ jsxRuntime.jsx(OverlayContext.Provider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Portal, { container, forceMount, children: /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Overlay, { className: classes, ref: forwardedRef, ...rest }) }) });
104
- }
105
- );
106
- Overlay.displayName = "Dialog.Content";
107
- const InnerContent = React.forwardRef(
108
- function InnerContent2({ asChild, children, className, ...props }, forwardedRef) {
109
- const classes = clsx([styles[`${rootClassName}__scroll`]], className);
110
- const context = React.useContext(RootContext);
111
- return /* @__PURE__ */ jsxRuntime.jsx(
112
- DrawerPrimitive__namespace.Content,
113
- {
114
- ...props,
115
- ref: forwardedRef,
116
- className: clsx([styles[`${rootClassName}__content`]]),
117
- asChild: true,
118
- children: /* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { children: /* @__PURE__ */ jsxRuntime.jsx(
119
- components_flex_flex.Flex,
120
- {
121
- ...asChild ? { as: void 0, asChild } : {},
122
- direction: "column",
123
- align: "start",
124
- maxWidth: { md: "600px" },
125
- className: classes,
126
- ref: context.scrollRef,
127
- children
128
- }
129
- ) })
130
- }
131
- );
132
- }
133
- );
134
- const Content = React.forwardRef(
135
- ({ forceMount, ...contentProps }, forwardedRef) => {
136
- const hasOverlay = React.useContext(OverlayContext);
137
- if (!hasOverlay)
138
- return /* @__PURE__ */ jsxRuntime.jsx(Overlay, { forceMount, children: /* @__PURE__ */ jsxRuntime.jsx(InnerContent, { ref: forwardedRef, ...contentProps }) });
139
- return /* @__PURE__ */ jsxRuntime.jsx(InnerContent, { ref: forwardedRef, ...contentProps });
140
- }
141
- );
142
- Content.displayName = "Dialog.Content";
143
- const GroupContext = React.createContext(false);
144
- const Group = React.forwardRef(
145
- ({ className, variant, ...props }, forwardedRef) => {
146
- const strollerRef = React.useContext(RootContext).scrollRef;
147
- const [isOverflowing, setIsOverflowing] = React.useState(false);
148
- React.useEffect(() => {
149
- if (strollerRef == null ? void 0 : strollerRef.current) {
150
- const hasOverflow = strollerRef.current.scrollHeight > strollerRef.current.clientHeight;
151
- setIsOverflowing(hasOverflow);
152
- }
153
- }, [strollerRef]);
154
- const classes = clsx(
155
- [styles[`${rootClassName}__group`]],
156
- {
157
- [styles[`${rootClassName}__group--action`]]: variant === "action",
158
- [styles[`${rootClassName}__group--title`]]: variant === "title",
159
- [styles[`${rootClassName}__group--scroll`]]: isOverflowing
160
- },
161
- className
162
- );
163
- return /* @__PURE__ */ jsxRuntime.jsx(GroupContext.Provider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsx(
164
- components_flex_flex.Flex,
165
- {
166
- ...variant === "action" ? {
167
- gap: "200",
168
- justify: { md: "end" },
169
- align: { sm: "stretch", md: "end" },
170
- direction: { sm: "column-reverse", md: "row" }
171
- } : { direction: "column" },
172
- ref: forwardedRef,
173
- ...props,
174
- className: classes
175
- }
176
- ) });
177
- }
178
- );
179
- Group.displayName = "Dialog.Group";
180
- const TitleInner = React.forwardRef(
181
- function TitleInner2(props, forwardedRef) {
182
- return /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Title, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(components_heading_heading.Heading, { variant: "title-200", as: "h2", ...props, asChild: false, ref: forwardedRef }) });
183
- }
184
- );
185
- const Title = React.forwardRef((props, forwardedRef) => {
186
- const isInsideGroup = React.useContext(GroupContext);
187
- if (!isInsideGroup) {
188
- return /* @__PURE__ */ jsxRuntime.jsx(Group, { variant: "title", children: /* @__PURE__ */ jsxRuntime.jsx(TitleInner, { ...props, ref: forwardedRef }) });
189
- }
190
- return /* @__PURE__ */ jsxRuntime.jsx(TitleInner, { ...props, ref: forwardedRef });
191
- });
192
- Title.displayName = "Dialog.Title";
193
- const Description = React.forwardRef((props, forwardedRef) => /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Description, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(components_text_text.Text, { as: "p", variant: "paragraph-100", ...props, asChild: false, ref: forwardedRef }) }));
194
- Description.displayName = "Dialog.Description";
195
- const Image = React.forwardRef(({ asChild, ...props }, forwardedRef) => {
196
- const classes = clsx([styles[`${rootClassName}__image`]], props.className);
197
- const context = React.useContext(RootContext);
198
- const Comp = asChild ? reactSlot.Slot : "img";
199
- return /* @__PURE__ */ jsxRuntime.jsx(Comp, { ...props, className: classes, ref: utils_composeRefs.composeRefs(context.imageRef, forwardedRef) });
200
- });
201
- Image.displayName = "Dialog.Image";
202
- const Close = React.forwardRef(
203
- ({ className, ...props }, forwardedRef) => {
204
- const classes = clsx([styles[`${rootClassName}__close`]], {
205
- [styles[`${rootClassName}__close--floating`]]: props.slot === "floating",
206
- className
207
- });
208
- const imageRef = React.useContext(RootContext).imageRef;
209
- const [hasImage, setHasImage] = React.useState(false);
210
- React.useEffect(() => {
211
- if (imageRef == null ? void 0 : imageRef.current) {
212
- setHasImage(true);
213
- }
214
- }, [imageRef]);
215
- return /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Close, { ...props, className: classes, ref: forwardedRef, asChild: true, children: props.children || /* @__PURE__ */ jsxRuntime.jsx(components_button_button.Button, { variant: hasImage ? "primary-negative" : "tertiary-purple", iconOnly: true, "aria-label": props["aria-label"], children: /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: "close" }) }) });
216
- }
217
- );
218
- Close.displayName = "Dialog.Close";
219
- const Modal = Object.assign(Root, { Trigger, Content, Title, Overlay, Description, Close, Image, Group });
220
- exports.Modal = Modal;
48
+ require("@radix-ui/react-slot");
49
+ require("../../utils/composeRefs.cjs");
50
+ exports.Modal = components_radioCardGroup_radioCardGroupItemTitle.Modal;
@@ -1,6 +1,8 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import React__default, { useEffect } from "react";
3
- import * as DrawerPrimitive from "@radix-ui/react-dialog";
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "@radix-ui/react-dialog";
4
+ import "../breadcrumbs/index.js";
5
+ import { M } from "../radio-card-group/radio-card-group-item-title.js";
4
6
  import "../ribbon/index.js";
5
7
  import "../expandable-card/index.js";
6
8
  import "../color-dot/color-dot-root.js";
@@ -14,12 +16,12 @@ import "../drawer/index.js";
14
16
  import "../image/image.js";
15
17
  import "../chip/index.js";
16
18
  import "../../assets/sprite.269ba410-teddy.svg";
17
- import { Icon } from "../icon/icon.js";
18
- import clsx from "clsx";
19
+ import "../icon/icon.js";
20
+ import "clsx";
19
21
  import "../notification/notification.js";
20
22
  import "../radio-group/index.js";
21
23
  import "../box/box.js";
22
- import { Flex } from "../flex/flex.js";
24
+ import "../flex/flex.js";
23
25
  import "../card/index.js";
24
26
  import "../grid/grid.js";
25
27
  import "../navigation-menu/navigation-menu.js";
@@ -30,174 +32,19 @@ import "../link/link.js";
30
32
  import "../badge/badge.js";
31
33
  import "../badge/alert-badge.js";
32
34
  import "../badge/counter-badge.js";
33
- import { Button } from "../button/button.js";
35
+ import "../button/button.js";
34
36
  import "../field-error-text/field-error-text.js";
35
37
  import "../helper-text/helper-text.js";
36
38
  import "../input/index.js";
37
39
  import "../label/label.js";
38
40
  import "../spinner/spinner.js";
39
- import { Text } from "../text/text.js";
41
+ import "../text/text.js";
40
42
  import "../text-field/index.js";
41
- import { Heading } from "../heading/heading.js";
43
+ import "../heading/heading.js";
42
44
  import "../visually-hidden/visually-hidden.js";
43
45
  import "../text-spacing/text-spacing.js";
44
- import { Slot } from "@radix-ui/react-slot";
45
- import { composeRefs } from "../../utils/composeRefs.js";
46
- const styles = {
47
- "teddy-modal__overlay": "_teddy-modal__overlay_3n21u_25",
48
- "teddy-modal__content": "_teddy-modal__content_3n21u_37",
49
- "teddy-modal__scroll": "_teddy-modal__scroll_3n21u_55",
50
- "teddy-modal__image": "_teddy-modal__image_3n21u_59",
51
- "teddy-modal__close--floating": "_teddy-modal__close--floating_3n21u_69",
52
- "teddy-modal__group": "_teddy-modal__group_3n21u_74",
53
- "teddy-modal__group--title": "_teddy-modal__group--title_3n21u_78",
54
- "teddy-modal__group--scroll": "_teddy-modal__group--scroll_3n21u_84",
55
- "teddy-modal__group--action": "_teddy-modal__group--action_3n21u_93",
56
- "modal-overlay-no-op": "_modal-overlay-no-op_3n21u_1",
57
- "teddy-fade-in": "_teddy-fade-in_3n21u_1",
58
- "teddy-fade-out": "_teddy-fade-out_3n21u_1",
59
- "modal-content-show": "_modal-content-show_3n21u_1",
60
- "modal-content-hide": "_modal-content-hide_3n21u_1",
61
- "teddy-overlay-no-op": "_teddy-overlay-no-op_3n21u_1"
62
- };
63
- const rootClassName = "teddy-modal";
64
- const RootContext = React__default.createContext({
65
- imageRef: null,
66
- actionGroupRef: null,
67
- scrollRef: null
68
- });
69
- const Root = (props) => {
70
- const imageRef = React__default.useRef(null);
71
- const actionGroupRef = React__default.useRef(null);
72
- const scrollRef = React__default.useRef(null);
73
- return /* @__PURE__ */ jsx(RootContext.Provider, { value: { imageRef, actionGroupRef, scrollRef }, children: /* @__PURE__ */ jsx(DrawerPrimitive.Root, { ...props, modal: true }) });
74
- };
75
- Root.displayName = "Dialog.Root";
76
- const Trigger = React__default.forwardRef(
77
- ({ children, ...props }, forwardedRef) => /* @__PURE__ */ jsx(DrawerPrimitive.Trigger, { ...props, ref: forwardedRef, asChild: true, children })
78
- );
79
- Trigger.displayName = "Dialog.Trigger";
80
- const OverlayContext = React__default.createContext(false);
81
- const Overlay = React__default.forwardRef(
82
- ({ className, forceMount, container, ...rest }, forwardedRef) => {
83
- const classes = clsx([styles[`${rootClassName}__overlay`]], className);
84
- return /* @__PURE__ */ jsx(OverlayContext.Provider, { value: true, children: /* @__PURE__ */ jsx(DrawerPrimitive.Portal, { container, forceMount, children: /* @__PURE__ */ jsx(DrawerPrimitive.Overlay, { className: classes, ref: forwardedRef, ...rest }) }) });
85
- }
86
- );
87
- Overlay.displayName = "Dialog.Content";
88
- const InnerContent = React__default.forwardRef(
89
- function InnerContent2({ asChild, children, className, ...props }, forwardedRef) {
90
- const classes = clsx([styles[`${rootClassName}__scroll`]], className);
91
- const context = React__default.useContext(RootContext);
92
- return /* @__PURE__ */ jsx(
93
- DrawerPrimitive.Content,
94
- {
95
- ...props,
96
- ref: forwardedRef,
97
- className: clsx([styles[`${rootClassName}__content`]]),
98
- asChild: true,
99
- children: /* @__PURE__ */ jsx(Flex, { children: /* @__PURE__ */ jsx(
100
- Flex,
101
- {
102
- ...asChild ? { as: void 0, asChild } : {},
103
- direction: "column",
104
- align: "start",
105
- maxWidth: { md: "600px" },
106
- className: classes,
107
- ref: context.scrollRef,
108
- children
109
- }
110
- ) })
111
- }
112
- );
113
- }
114
- );
115
- const Content = React__default.forwardRef(
116
- ({ forceMount, ...contentProps }, forwardedRef) => {
117
- const hasOverlay = React__default.useContext(OverlayContext);
118
- if (!hasOverlay)
119
- return /* @__PURE__ */ jsx(Overlay, { forceMount, children: /* @__PURE__ */ jsx(InnerContent, { ref: forwardedRef, ...contentProps }) });
120
- return /* @__PURE__ */ jsx(InnerContent, { ref: forwardedRef, ...contentProps });
121
- }
122
- );
123
- Content.displayName = "Dialog.Content";
124
- const GroupContext = React__default.createContext(false);
125
- const Group = React__default.forwardRef(
126
- ({ className, variant, ...props }, forwardedRef) => {
127
- const strollerRef = React__default.useContext(RootContext).scrollRef;
128
- const [isOverflowing, setIsOverflowing] = React__default.useState(false);
129
- useEffect(() => {
130
- if (strollerRef == null ? void 0 : strollerRef.current) {
131
- const hasOverflow = strollerRef.current.scrollHeight > strollerRef.current.clientHeight;
132
- setIsOverflowing(hasOverflow);
133
- }
134
- }, [strollerRef]);
135
- const classes = clsx(
136
- [styles[`${rootClassName}__group`]],
137
- {
138
- [styles[`${rootClassName}__group--action`]]: variant === "action",
139
- [styles[`${rootClassName}__group--title`]]: variant === "title",
140
- [styles[`${rootClassName}__group--scroll`]]: isOverflowing
141
- },
142
- className
143
- );
144
- return /* @__PURE__ */ jsx(GroupContext.Provider, { value: true, children: /* @__PURE__ */ jsx(
145
- Flex,
146
- {
147
- ...variant === "action" ? {
148
- gap: "200",
149
- justify: { md: "end" },
150
- align: { sm: "stretch", md: "end" },
151
- direction: { sm: "column-reverse", md: "row" }
152
- } : { direction: "column" },
153
- ref: forwardedRef,
154
- ...props,
155
- className: classes
156
- }
157
- ) });
158
- }
159
- );
160
- Group.displayName = "Dialog.Group";
161
- const TitleInner = React__default.forwardRef(
162
- function TitleInner2(props, forwardedRef) {
163
- return /* @__PURE__ */ jsx(DrawerPrimitive.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { variant: "title-200", as: "h2", ...props, asChild: false, ref: forwardedRef }) });
164
- }
165
- );
166
- const Title = React__default.forwardRef((props, forwardedRef) => {
167
- const isInsideGroup = React__default.useContext(GroupContext);
168
- if (!isInsideGroup) {
169
- return /* @__PURE__ */ jsx(Group, { variant: "title", children: /* @__PURE__ */ jsx(TitleInner, { ...props, ref: forwardedRef }) });
170
- }
171
- return /* @__PURE__ */ jsx(TitleInner, { ...props, ref: forwardedRef });
172
- });
173
- Title.displayName = "Dialog.Title";
174
- const Description = React__default.forwardRef((props, forwardedRef) => /* @__PURE__ */ jsx(DrawerPrimitive.Description, { asChild: true, children: /* @__PURE__ */ jsx(Text, { as: "p", variant: "paragraph-100", ...props, asChild: false, ref: forwardedRef }) }));
175
- Description.displayName = "Dialog.Description";
176
- const Image = React__default.forwardRef(({ asChild, ...props }, forwardedRef) => {
177
- const classes = clsx([styles[`${rootClassName}__image`]], props.className);
178
- const context = React__default.useContext(RootContext);
179
- const Comp = asChild ? Slot : "img";
180
- return /* @__PURE__ */ jsx(Comp, { ...props, className: classes, ref: composeRefs(context.imageRef, forwardedRef) });
181
- });
182
- Image.displayName = "Dialog.Image";
183
- const Close = React__default.forwardRef(
184
- ({ className, ...props }, forwardedRef) => {
185
- const classes = clsx([styles[`${rootClassName}__close`]], {
186
- [styles[`${rootClassName}__close--floating`]]: props.slot === "floating",
187
- className
188
- });
189
- const imageRef = React__default.useContext(RootContext).imageRef;
190
- const [hasImage, setHasImage] = React__default.useState(false);
191
- useEffect(() => {
192
- if (imageRef == null ? void 0 : imageRef.current) {
193
- setHasImage(true);
194
- }
195
- }, [imageRef]);
196
- return /* @__PURE__ */ jsx(DrawerPrimitive.Close, { ...props, className: classes, ref: forwardedRef, asChild: true, children: props.children || /* @__PURE__ */ jsx(Button, { variant: hasImage ? "primary-negative" : "tertiary-purple", iconOnly: true, "aria-label": props["aria-label"], children: /* @__PURE__ */ jsx(Icon, { name: "close" }) }) });
197
- }
198
- );
199
- Close.displayName = "Dialog.Close";
200
- const Modal = Object.assign(Root, { Trigger, Content, Title, Overlay, Description, Close, Image, Group });
46
+ import "@radix-ui/react-slot";
47
+ import "../../utils/composeRefs.js";
201
48
  export {
202
- Modal
49
+ M as Modal
203
50
  };
@@ -48,7 +48,7 @@ function MyPages(props) {
48
48
  const rootContext = React.useContext(RootContext);
49
49
  const isLoggedIn = (((_a = rootContext == null ? void 0 : rootContext.loggedInUser) == null ? void 0 : _a.name.length) || 0) > 0;
50
50
  return /* @__PURE__ */ jsxRuntime.jsxs(components_drawer_index.Drawer, { ...props, children: [
51
- /* @__PURE__ */ jsxRuntime.jsx(components_navigationMenu_navigationMenu.NavigationMenu.Link, { asChild: true, variant: "button", children: /* @__PURE__ */ jsxRuntime.jsx(components_drawer_index.Drawer.Trigger, { children: ((_b = rootContext == null ? void 0 : rootContext.loggedInUser) == null ? void 0 : _b.name.length) ? /* @__PURE__ */ jsxRuntime.jsxs("button", { children: [
51
+ /* @__PURE__ */ jsxRuntime.jsx(components_navigationMenu_navigationMenu.NavigationMenu.Link, { asChild: true, variant: "button", children: /* @__PURE__ */ jsxRuntime.jsx(components_drawer_index.Drawer.Trigger, { children: ((_b = rootContext == null ? void 0 : rootContext.loggedInUser) == null ? void 0 : _b.name.length) ? /* @__PURE__ */ jsxRuntime.jsxs("button", { "data-di-mask": true, children: [
52
52
  /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: "end-user", size: "sm" }),
53
53
  rootContext.loggedInUser.name
54
54
  ] }) : /* @__PURE__ */ jsxRuntime.jsxs("button", { children: [
@@ -208,7 +208,7 @@ const Desktop = React.forwardRef(() => {
208
208
  const topMenuRef = React.useRef(null);
209
209
  const viewPortRef = React.useRef(null);
210
210
  const shouldShowViewport = [...components_navigationMenu_globalNavigation_utils.PRIVATE_LINKS.links, ...components_navigationMenu_globalNavigation_utils.BUSINESS_LINKS.links, ...components_navigationMenu_globalNavigation_utils.MDU_LINKS.links].some(
211
- (link) => link.links.some((subLink) => subLink.link === (rootContext == null ? void 0 : rootContext.pathname)) || link.links.length && link.link === (rootContext == null ? void 0 : rootContext.pathname)
211
+ (link) => !!components_navigationMenu_globalNavigation_utils.getActiveSubLink((rootContext == null ? void 0 : rootContext.pathname) || "", link.links) || link.links.length && link.link === (rootContext == null ? void 0 : rootContext.pathname)
212
212
  );
213
213
  const viewPortSize = utils_useSize.useSize(viewPortRef.current);
214
214
  const topMenuSize = utils_useSize.useSize(topMenuRef.current);
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import React__default from "react";
3
3
  import clsx from "clsx";
4
- import { MY_PAGE_LINKS, LOGGED_IN_LINKS_BUSINESS, PRIVATE_LINKS, BUSINESS_LINKS, MDU_LINKS, LINKS, getActiveSubLink } from "./utils.js";
4
+ import { MY_PAGE_LINKS, LOGGED_IN_LINKS_BUSINESS, PRIVATE_LINKS, BUSINESS_LINKS, MDU_LINKS, getActiveSubLink, LINKS } from "./utils.js";
5
5
  import { NavigationMenu } from "../navigation-menu.js";
6
6
  import { Box } from "../../box/box.js";
7
7
  import { Drawer } from "../../drawer/index.js";
@@ -46,7 +46,7 @@ function MyPages(props) {
46
46
  const rootContext = React__default.useContext(RootContext);
47
47
  const isLoggedIn = (((_a = rootContext == null ? void 0 : rootContext.loggedInUser) == null ? void 0 : _a.name.length) || 0) > 0;
48
48
  return /* @__PURE__ */ jsxs(Drawer, { ...props, children: [
49
- /* @__PURE__ */ jsx(NavigationMenu.Link, { asChild: true, variant: "button", children: /* @__PURE__ */ jsx(Drawer.Trigger, { children: ((_b = rootContext == null ? void 0 : rootContext.loggedInUser) == null ? void 0 : _b.name.length) ? /* @__PURE__ */ jsxs("button", { children: [
49
+ /* @__PURE__ */ jsx(NavigationMenu.Link, { asChild: true, variant: "button", children: /* @__PURE__ */ jsx(Drawer.Trigger, { children: ((_b = rootContext == null ? void 0 : rootContext.loggedInUser) == null ? void 0 : _b.name.length) ? /* @__PURE__ */ jsxs("button", { "data-di-mask": true, children: [
50
50
  /* @__PURE__ */ jsx(Icon, { name: "end-user", size: "sm" }),
51
51
  rootContext.loggedInUser.name
52
52
  ] }) : /* @__PURE__ */ jsxs("button", { children: [
@@ -206,7 +206,7 @@ const Desktop = React__default.forwardRef(() => {
206
206
  const topMenuRef = React__default.useRef(null);
207
207
  const viewPortRef = React__default.useRef(null);
208
208
  const shouldShowViewport = [...PRIVATE_LINKS.links, ...BUSINESS_LINKS.links, ...MDU_LINKS.links].some(
209
- (link) => link.links.some((subLink) => subLink.link === (rootContext == null ? void 0 : rootContext.pathname)) || link.links.length && link.link === (rootContext == null ? void 0 : rootContext.pathname)
209
+ (link) => !!getActiveSubLink((rootContext == null ? void 0 : rootContext.pathname) || "", link.links) || link.links.length && link.link === (rootContext == null ? void 0 : rootContext.pathname)
210
210
  );
211
211
  const viewPortSize = useSize(viewPortRef.current);
212
212
  const topMenuSize = useSize(topMenuRef.current);
@@ -106,7 +106,7 @@ declare const NavigationMenu: React.ForwardRefExoticComponent<Omit<NavigationMen
106
106
  variant?: "default" | "float" | undefined;
107
107
  } & React.RefAttributes<HTMLDivElement>>;
108
108
  Link: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>, "ref"> & {
109
- variant?: "small" | "button" | "default" | undefined;
109
+ variant?: "button" | "small" | "default" | undefined;
110
110
  } & React.RefAttributes<HTMLAnchorElement>>;
111
111
  Indicator: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
112
112
  Viewport: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -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: "key" | "search" | "split" | "link" | "add" | "reverse" | "infinite" | "radio" | "visible" | "copy" | "help" | "zoom-out" | "filter" | "x" | "zoom" | "menu" | "map" | "summary" | "time" | "video" | "image" | "stop" | "download" | "alert" | "email" | "close" | "error" | "focus" | "play" | "present" | "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "dislike" | "edit" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "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" | "volume" | "connected-building" | "home" | "hospital" | "industry" | "premises-datacenter" | "premises-large" | "premises-medium" | "premises-small" | "premises" | "store" | "address-book" | "b2b-customer" | "care" | "chat-robot" | "chat" | "child-1" | "child-2" | "conversation" | "customer-dialogue" | "dsl-hub" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-sad" | "sms" | "support" | "user-admin" | "vcard" | "voicemail" | "battery" | "bluetooth" | "broadband" | "broken-phone" | "cast" | "cloud-connect" | "connected" | "core-router" | "daas-device" | "data-transfer" | "desktop" | "devices" | "esim-simcard" | "esim" | "face-id" | "fiber" | "fingerprint" | "fiveg" | "fourg" | "home-installation" | "industrial-iot" | "internet" | "it-service" | "laptop" | "mobile-broadband" | "network" | "phone-recycling" | "phone-ringing" | "phone" | "rack" | "refill-card" | "remote-control" | "repair" | "roaming" | "router" | "secure-device" | "sense-car" | "server" | "service-device" | "service-supervision" | "slow-wifi" | "smart-wifi" | "smartphone" | "smartwatch" | "tablet" | "trade-phone" | "tv" | "usb" | "voice-switch" | "wallplug" | "wireless-off" | "wireless-weak" | "wireless" | "world-alert" | "world-off" | "world-question" | "bar-chart" | "doc" | "document-doc" | "document-edit" | "document-pdf" | "document-ppt" | "excel" | "folder-copy" | "folder-new" | "folder" | "gif" | "graph" | "media-content" | "org-chart" | "pie-chart" | "print" | "register" | "report" | "simcard" | "spell-check" | "credit-card" | "euro" | "invoice" | "kontantkort" | "kr" | "late-payment" | "money-back-euro" | "money-back-kr" | "money-euro" | "money-kr" | "pay-monthly-euro" | "pay-monthly-kr" | "pay-once-euro" | "pay-once-kr" | "payment-success" | "savings" | "wallet" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "activity-level" | "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" | "food" | "fraud" | "getting-started" | "home-care" | "job-search" | "layers" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "press-button" | "price" | "pulse" | "recycle" | "reservation" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "snowflake" | "speedometer" | "spyware" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "youtube" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "alert-filled" | "check-circle-filled" | "check-circle" | "error-filled" | "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" | "grid-view" | "list-view" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "services" | "sorter" | "table-view";
7
- size?: ("sm" | "md" | "lg" | "xl" | "font" | "xxs" | "xs") | undefined;
6
+ name: "link" | "map" | "menu" | "search" | "summary" | "time" | "video" | "filter" | "image" | "stop" | "key" | "x" | "download" | "split" | "alert" | "radio" | "email" | "copy" | "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "dislike" | "edit" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "play" | "remove-filled" | "remove" | "save" | "send" | "settings" | "share" | "shortcut" | "shuffle" | "sync" | "skip-back-10sec" | "skip-back-30sec" | "skip-forward-10sec" | "skip-forward-30sec" | "star-filled" | "star" | "switch-arrows" | "tv-next" | "tv-pause" | "tv-previous" | "tv-stop" | "upload" | "visible" | "volume" | "zoom-out" | "zoom" | "connected-building" | "home" | "hospital" | "industry" | "premises-datacenter" | "premises-large" | "premises-medium" | "premises-small" | "premises" | "store" | "address-book" | "b2b-customer" | "care" | "chat-robot" | "chat" | "child-1" | "child-2" | "conversation" | "customer-dialogue" | "dsl-hub" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-sad" | "sms" | "support" | "user-admin" | "vcard" | "voicemail" | "battery" | "bluetooth" | "broadband" | "broken-phone" | "cast" | "cloud-connect" | "connected" | "core-router" | "daas-device" | "data-transfer" | "desktop" | "devices" | "esim-simcard" | "esim" | "face-id" | "fiber" | "fingerprint" | "fiveg" | "fourg" | "home-installation" | "industrial-iot" | "internet" | "it-service" | "laptop" | "mobile-broadband" | "network" | "phone-recycling" | "phone-ringing" | "phone" | "rack" | "refill-card" | "remote-control" | "repair" | "roaming" | "router" | "secure-device" | "sense-car" | "server" | "service-device" | "service-supervision" | "slow-wifi" | "smart-wifi" | "smartphone" | "smartwatch" | "tablet" | "trade-phone" | "tv" | "usb" | "voice-switch" | "wallplug" | "wireless-off" | "wireless-weak" | "wireless" | "world-alert" | "world-off" | "world-question" | "bar-chart" | "doc" | "document-doc" | "document-edit" | "document-pdf" | "document-ppt" | "excel" | "folder-copy" | "folder-new" | "folder" | "gif" | "graph" | "media-content" | "org-chart" | "pie-chart" | "print" | "register" | "report" | "simcard" | "spell-check" | "credit-card" | "euro" | "invoice" | "kontantkort" | "kr" | "late-payment" | "money-back-euro" | "money-back-kr" | "money-euro" | "money-kr" | "pay-monthly-euro" | "pay-monthly-kr" | "pay-once-euro" | "pay-once-kr" | "payment-success" | "savings" | "wallet" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "activity-level" | "add" | "ai-robot" | "bag" | "basketball" | "blood-pressure" | "bulb" | "business-continuity" | "business-intelligence" | "calendar" | "cart" | "close-circle" | "cloud" | "coffee" | "compass" | "construction" | "cookie" | "delivery" | "drone" | "education" | "efficiency" | "environment" | "facemask" | "flag" | "focus" | "food" | "fraud" | "getting-started" | "home-care" | "infinite" | "job-search" | "layers" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "recycle" | "reservation" | "reverse" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "snowflake" | "speedometer" | "spyware" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "youtube" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "alert-filled" | "check-circle-filled" | "check-circle" | "error-filled" | "error" | "help" | "info-filled" | "info" | "question-filled" | "question" | "warning" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-subdirectory" | "arrow-up" | "card-view" | "checkmark-bold" | "checkmark" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "close" | "grid-view" | "list-view" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "services" | "sorter" | "table-view";
7
+ size?: ("font" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl") | undefined;
8
8
  children?: React.ReactNode;
9
9
  }, "ref">> & React.RefAttributes<SVGSVGElement>>;