@telia/teddy 0.3.2 → 0.3.3
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/drawer/drawer-close.cjs +1 -1
- package/dist/components/drawer/drawer-close.js +1 -1
- package/dist/components/drawer/drawer-content.cjs +1 -1
- package/dist/components/drawer/drawer-content.js +1 -1
- package/dist/components/drawer/drawer-description.cjs +1 -1
- package/dist/components/drawer/drawer-description.js +1 -1
- package/dist/components/drawer/drawer-footer.cjs +1 -1
- package/dist/components/drawer/drawer-footer.js +1 -1
- package/dist/components/drawer/drawer-overlay.cjs +1 -1
- package/dist/components/drawer/drawer-overlay.js +1 -1
- package/dist/components/drawer/drawer-title.cjs +1 -1
- package/dist/components/drawer/drawer-title.js +1 -1
- package/dist/components/modal/index.cjs +8 -0
- package/dist/components/modal/index.d.ts +185 -2
- package/dist/components/modal/index.js +8 -0
- package/dist/components/modal/{modal.cjs → modal-close.cjs} +3 -3
- package/dist/components/modal/modal-close.d.ts +19 -0
- package/dist/components/modal/{modal.js → modal-close.js} +4 -4
- package/dist/components/modal/modal-content.cjs +65 -0
- package/dist/components/modal/modal-content.d.ts +7 -0
- package/dist/components/modal/modal-content.js +48 -0
- package/dist/components/modal/modal-description.cjs +26 -0
- package/dist/components/modal/modal-description.d.ts +8 -0
- package/dist/components/modal/modal-description.js +9 -0
- package/dist/components/modal/modal-group.cjs +47 -0
- package/dist/components/modal/modal-group.d.ts +10 -0
- package/dist/components/modal/modal-group.js +47 -0
- package/dist/components/modal/modal-image.cjs +17 -0
- package/dist/components/modal/modal-image.d.ts +10 -0
- package/dist/components/modal/modal-image.js +17 -0
- package/dist/components/modal/modal-overlay.cjs +35 -0
- package/dist/components/modal/modal-overlay.d.ts +12 -0
- package/dist/components/modal/modal-overlay.js +18 -0
- package/dist/components/modal/modal-root.cjs +38 -0
- package/dist/components/modal/modal-root.d.ts +16 -0
- package/dist/components/modal/modal-root.js +21 -0
- package/dist/components/modal/modal-title.cjs +45 -0
- package/dist/components/modal/modal-title.d.ts +18 -0
- package/dist/components/modal/modal-title.js +28 -0
- package/dist/components/modal/modal-trigger.cjs +27 -0
- package/dist/components/modal/modal-trigger.d.ts +21 -0
- package/dist/components/modal/modal-trigger.js +10 -0
- 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.js +2 -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/notabene/index.cjs +4 -0
- package/dist/components/notabene/index.js +4 -0
- package/dist/components/notification/index.cjs +6 -0
- package/dist/components/notification/index.js +6 -0
- package/dist/components/notification/notification-footer.cjs +1 -1
- package/dist/components/notification/notification-footer.js +1 -1
- package/dist/components/radio-card-group/radio-card-group-item-title.cjs +49 -151
- package/dist/components/radio-card-group/radio-card-group-item-title.js +67 -169
- package/dist/drawer.module-Bh77Byg_.js +16 -0
- package/dist/drawer.module-khivHSFm.cjs +15 -0
- package/dist/modal.module-BfeNqXoN.cjs +19 -0
- package/dist/modal.module-DuP4in7f.js +20 -0
- package/dist/style.css +194 -190
- package/package.json +1 -1
- package/dist/components/modal/modal.d.ts +0 -76
- package/dist/drawer.module-Am9xxZYU.js +0 -16
- package/dist/drawer.module-CoqKvqzl.cjs +0 -15
|
@@ -36,6 +36,13 @@ const components_drawer_index = require("../drawer/index.cjs");
|
|
|
36
36
|
require("../image/image.cjs");
|
|
37
37
|
require("../chip/index.cjs");
|
|
38
38
|
require("../../assets/sprite.1321fab0-teddy.svg");
|
|
39
|
+
const components_modal_modalRoot = require("../modal/modal-root.cjs");
|
|
40
|
+
const components_modal_modalTrigger = require("../modal/modal-trigger.cjs");
|
|
41
|
+
const components_modal_modalContent = require("../modal/modal-content.cjs");
|
|
42
|
+
const components_modal_modalTitle = require("../modal/modal-title.cjs");
|
|
43
|
+
const components_modal_modalDescription = require("../modal/modal-description.cjs");
|
|
44
|
+
const components_modal_modalOverlay = require("../modal/modal-overlay.cjs");
|
|
45
|
+
const components_modal_modalGroup = require("../modal/modal-group.cjs");
|
|
39
46
|
const DrawerPrimitive = require("@radix-ui/react-dialog");
|
|
40
47
|
const components_icon_icon = require("../icon/icon.cjs");
|
|
41
48
|
require("../notification/index.cjs");
|
|
@@ -63,6 +70,8 @@ const components_textSpacing_textSpacing = require("../text-spacing/text-spacing
|
|
|
63
70
|
require("../container/container.cjs");
|
|
64
71
|
require("../carousel/carousel-root.cjs");
|
|
65
72
|
require("../slider/slider.cjs");
|
|
73
|
+
const modal_module = require("../../modal.module-BfeNqXoN.cjs");
|
|
74
|
+
const components_modal_modalImage = require("../modal/modal-image.cjs");
|
|
66
75
|
const components_radioCardGroup_radioCardGroupIndicator = require("./radio-card-group-indicator.cjs");
|
|
67
76
|
const components_radioCardGroup_radioCardGroupItemBody = require("./radio-card-group-item-body.cjs");
|
|
68
77
|
const RadioGroupPrimitive = require("@radix-ui/react-radio-group");
|
|
@@ -86,7 +95,7 @@ function _interopNamespaceDefault(e) {
|
|
|
86
95
|
const NavigationMenuPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(NavigationMenuPrimitive);
|
|
87
96
|
const DrawerPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(DrawerPrimitive);
|
|
88
97
|
const RadioGroupPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(RadioGroupPrimitive);
|
|
89
|
-
const Title
|
|
98
|
+
const Title = React.forwardRef(
|
|
90
99
|
({ className, children, asChild, ...props }, forwardRef) => {
|
|
91
100
|
const classes = clsx([components_radioCardGroup_radioCardGroupRoot.styles[`${components_radioCardGroup_radioCardGroupRoot.rootClassName}__title`]], className);
|
|
92
101
|
return /* @__PURE__ */ jsxRuntime.jsxs(components_flex_flex.Flex, { width: "100%", gap: "150", className: components_radioCardGroup_radioCardGroupRoot.styles[`${components_radioCardGroup_radioCardGroupRoot.rootClassName}__title-wrapper`], children: [
|
|
@@ -95,14 +104,14 @@ const Title$1 = React.forwardRef(
|
|
|
95
104
|
] });
|
|
96
105
|
}
|
|
97
106
|
);
|
|
98
|
-
Title
|
|
99
|
-
const Content$
|
|
107
|
+
Title.displayName = "Title";
|
|
108
|
+
const Content$1 = React.forwardRef(
|
|
100
109
|
({ className, children, ...props }, forwardRef) => {
|
|
101
110
|
const classes = clsx([components_radioCardGroup_radioCardGroupRoot.styles[`${components_radioCardGroup_radioCardGroupRoot.rootClassName}__content-wrapper`]], className);
|
|
102
111
|
return /* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { direction: "column", width: "100%", gap: "50", ...props, ref: forwardRef, className: classes, children });
|
|
103
112
|
}
|
|
104
113
|
);
|
|
105
|
-
Content$
|
|
114
|
+
Content$1.displayName = "Content";
|
|
106
115
|
const ItemContext = React.createContext(void 0);
|
|
107
116
|
const Item$1 = React.forwardRef(
|
|
108
117
|
({ className, children, value, ...props }, forwardedRef) => {
|
|
@@ -112,7 +121,7 @@ const Item$1 = React.forwardRef(
|
|
|
112
121
|
const id = props.id || (context == null ? void 0 : context.id);
|
|
113
122
|
return /* @__PURE__ */ jsxRuntime.jsxs(RadioGroupPrimitive__namespace.Item, { value, id, ...props, asChild: false, ref, className: classes, children: [
|
|
114
123
|
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,
|
|
115
|
-
/* @__PURE__ */ jsxRuntime.jsx(Content$
|
|
124
|
+
/* @__PURE__ */ jsxRuntime.jsx(Content$1, { children })
|
|
116
125
|
] });
|
|
117
126
|
}
|
|
118
127
|
);
|
|
@@ -120,169 +129,57 @@ Item$1.displayName = "Item";
|
|
|
120
129
|
components_radioCardGroup_radioCardGroupRoot.Root.displayName = "RadioCardGroup";
|
|
121
130
|
components_radioCardGroup_radioCardGroupLabel.GroupLabel.displayName = "RadioCardGroup.GroupLabel";
|
|
122
131
|
Item$1.displayName = "RadioCardGroup.Item";
|
|
123
|
-
Title
|
|
132
|
+
Title.displayName = "RadioCardGroup.Title";
|
|
124
133
|
components_radioCardGroup_radioCardGroupItemBody.Body.displayName = "RadioCardGroup.Body";
|
|
125
134
|
const RadioCardGroup = Object.assign(components_radioCardGroup_radioCardGroupRoot.Root, {
|
|
126
135
|
GroupLabel: components_radioCardGroup_radioCardGroupLabel.GroupLabel,
|
|
127
136
|
Item: Item$1,
|
|
128
|
-
Title
|
|
137
|
+
Title,
|
|
129
138
|
Body: components_radioCardGroup_radioCardGroupItemBody.Body
|
|
130
139
|
});
|
|
131
|
-
const styles$2 = {
|
|
132
|
-
"teddy-modal__overlay": "_teddy-modal__overlay_lkqhu_25",
|
|
133
|
-
"teddy-modal__content": "_teddy-modal__content_lkqhu_37",
|
|
134
|
-
"teddy-modal__scroll": "_teddy-modal__scroll_lkqhu_55",
|
|
135
|
-
"teddy-modal__image": "_teddy-modal__image_lkqhu_59",
|
|
136
|
-
"teddy-modal__close--floating": "_teddy-modal__close--floating_lkqhu_69",
|
|
137
|
-
"teddy-modal__group": "_teddy-modal__group_lkqhu_79",
|
|
138
|
-
"teddy-modal__group--title": "_teddy-modal__group--title_lkqhu_83",
|
|
139
|
-
"teddy-modal__group--scroll": "_teddy-modal__group--scroll_lkqhu_94",
|
|
140
|
-
"teddy-modal__group--action": "_teddy-modal__group--action_lkqhu_103",
|
|
141
|
-
"modal-overlay-no-op": "_modal-overlay-no-op_lkqhu_1",
|
|
142
|
-
"teddy-fade-in": "_teddy-fade-in_lkqhu_1",
|
|
143
|
-
"teddy-fade-out": "_teddy-fade-out_lkqhu_1",
|
|
144
|
-
"modal-content-show": "_modal-content-show_lkqhu_1",
|
|
145
|
-
"modal-content-hide": "_modal-content-hide_lkqhu_1",
|
|
146
|
-
"teddy-overlay-no-op": "_teddy-overlay-no-op_lkqhu_1"
|
|
147
|
-
};
|
|
148
|
-
const rootClassName$2 = "teddy-modal";
|
|
149
|
-
const RootContext$1 = React.createContext({
|
|
150
|
-
imageRef: null,
|
|
151
|
-
actionGroupRef: null,
|
|
152
|
-
scrollRef: null
|
|
153
|
-
});
|
|
154
|
-
const Root$2 = (props) => {
|
|
155
|
-
const imageRef = React.useRef(null);
|
|
156
|
-
const actionGroupRef = React.useRef(null);
|
|
157
|
-
const scrollRef = React.useRef(null);
|
|
158
|
-
return /* @__PURE__ */ jsxRuntime.jsx(RootContext$1.Provider, { value: { imageRef, actionGroupRef, scrollRef }, children: /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Root, { ...props, modal: true }) });
|
|
159
|
-
};
|
|
160
|
-
Root$2.displayName = "Modal.Root";
|
|
161
|
-
const Trigger$1 = React.forwardRef(
|
|
162
|
-
({ children, ...props }, forwardedRef) => /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Trigger, { ...props, ref: forwardedRef, asChild: true, children })
|
|
163
|
-
);
|
|
164
|
-
Trigger$1.displayName = "Modal.Trigger";
|
|
165
|
-
const OverlayContext = React.createContext(false);
|
|
166
|
-
const Overlay = React.forwardRef(
|
|
167
|
-
({ className, forceMount, container, ...rest }, forwardedRef) => {
|
|
168
|
-
const classes = clsx([styles$2[`${rootClassName$2}__overlay`]], className);
|
|
169
|
-
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 }) }) });
|
|
170
|
-
}
|
|
171
|
-
);
|
|
172
|
-
Overlay.displayName = "Modal.Content";
|
|
173
|
-
const InnerContent = React.forwardRef(
|
|
174
|
-
function InnerContent2({ asChild, children, className, ...props }, forwardedRef) {
|
|
175
|
-
const classes = clsx([styles$2[`${rootClassName$2}__scroll`]], className);
|
|
176
|
-
const context = React.useContext(RootContext$1);
|
|
177
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
178
|
-
DrawerPrimitive__namespace.Content,
|
|
179
|
-
{
|
|
180
|
-
...props,
|
|
181
|
-
ref: forwardedRef,
|
|
182
|
-
className: clsx([styles$2[`${rootClassName$2}__content`]]),
|
|
183
|
-
asChild: true,
|
|
184
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
185
|
-
components_flex_flex.Flex,
|
|
186
|
-
{
|
|
187
|
-
...asChild ? { as: void 0, asChild } : {},
|
|
188
|
-
direction: "column",
|
|
189
|
-
align: "start",
|
|
190
|
-
maxWidth: { md: "600px" },
|
|
191
|
-
className: classes,
|
|
192
|
-
ref: context.scrollRef,
|
|
193
|
-
children
|
|
194
|
-
}
|
|
195
|
-
) })
|
|
196
|
-
}
|
|
197
|
-
);
|
|
198
|
-
}
|
|
199
|
-
);
|
|
200
|
-
const Content$1 = React.forwardRef(
|
|
201
|
-
({ forceMount, ...contentProps }, forwardedRef) => {
|
|
202
|
-
const hasOverlay = React.useContext(OverlayContext);
|
|
203
|
-
if (!hasOverlay)
|
|
204
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Overlay, { forceMount, children: /* @__PURE__ */ jsxRuntime.jsx(InnerContent, { ref: forwardedRef, ...contentProps }) });
|
|
205
|
-
return /* @__PURE__ */ jsxRuntime.jsx(InnerContent, { ref: forwardedRef, ...contentProps });
|
|
206
|
-
}
|
|
207
|
-
);
|
|
208
|
-
Content$1.displayName = "Modal.Content";
|
|
209
|
-
const GroupContext = React.createContext(false);
|
|
210
|
-
const Group = React.forwardRef(
|
|
211
|
-
({ className, variant, ...props }, forwardedRef) => {
|
|
212
|
-
const strollerRef = React.useContext(RootContext$1).scrollRef;
|
|
213
|
-
const [isOverflowing, setIsOverflowing] = React.useState(false);
|
|
214
|
-
React.useEffect(() => {
|
|
215
|
-
if (strollerRef == null ? void 0 : strollerRef.current) {
|
|
216
|
-
const hasOverflow = strollerRef.current.scrollHeight > strollerRef.current.clientHeight;
|
|
217
|
-
setIsOverflowing(hasOverflow);
|
|
218
|
-
}
|
|
219
|
-
}, [strollerRef]);
|
|
220
|
-
const classes = clsx(
|
|
221
|
-
[styles$2[`${rootClassName$2}__group`]],
|
|
222
|
-
{
|
|
223
|
-
[styles$2[`${rootClassName$2}__group--action`]]: variant === "action",
|
|
224
|
-
[styles$2[`${rootClassName$2}__group--title`]]: variant === "title",
|
|
225
|
-
[styles$2[`${rootClassName$2}__group--scroll`]]: isOverflowing
|
|
226
|
-
},
|
|
227
|
-
className
|
|
228
|
-
);
|
|
229
|
-
return /* @__PURE__ */ jsxRuntime.jsx(GroupContext.Provider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
230
|
-
components_flex_flex.Flex,
|
|
231
|
-
{
|
|
232
|
-
...variant === "action" ? {
|
|
233
|
-
gap: "200",
|
|
234
|
-
justify: { md: "end" },
|
|
235
|
-
align: { sm: "stretch", md: "end" },
|
|
236
|
-
direction: { sm: "column-reverse", md: "row" }
|
|
237
|
-
} : { direction: "column" },
|
|
238
|
-
ref: forwardedRef,
|
|
239
|
-
...props,
|
|
240
|
-
className: classes
|
|
241
|
-
}
|
|
242
|
-
) });
|
|
243
|
-
}
|
|
244
|
-
);
|
|
245
|
-
Group.displayName = "Modal.Group";
|
|
246
|
-
const TitleInner = React.forwardRef(
|
|
247
|
-
function TitleInner2(props, forwardedRef) {
|
|
248
|
-
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 }) });
|
|
249
|
-
}
|
|
250
|
-
);
|
|
251
|
-
const Title = React.forwardRef((props, forwardedRef) => {
|
|
252
|
-
const isInsideGroup = React.useContext(GroupContext);
|
|
253
|
-
if (!isInsideGroup) {
|
|
254
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Group, { variant: "title", children: /* @__PURE__ */ jsxRuntime.jsx(TitleInner, { ...props, ref: forwardedRef }) });
|
|
255
|
-
}
|
|
256
|
-
return /* @__PURE__ */ jsxRuntime.jsx(TitleInner, { ...props, ref: forwardedRef });
|
|
257
|
-
});
|
|
258
|
-
Title.displayName = "Modal.Title";
|
|
259
|
-
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 }) }));
|
|
260
|
-
Description.displayName = "Modal.Description";
|
|
261
|
-
const Image = React.forwardRef(({ asChild, ...props }, forwardedRef) => {
|
|
262
|
-
const classes = clsx([styles$2[`${rootClassName$2}__image`]], props.className);
|
|
263
|
-
const context = React.useContext(RootContext$1);
|
|
264
|
-
const Comp = asChild ? reactSlot.Slot : "img";
|
|
265
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Comp, { ...props, className: classes, ref: utils_composeRefs.composeRefs(context.imageRef, forwardedRef) });
|
|
266
|
-
});
|
|
267
|
-
Image.displayName = "Modal.Image";
|
|
268
140
|
const Close = React.forwardRef(
|
|
269
141
|
({ className, ...props }, forwardedRef) => {
|
|
270
|
-
const classes = clsx([styles
|
|
271
|
-
[styles
|
|
142
|
+
const classes = clsx([modal_module.styles[`${components_modal_modalRoot.rootClassName}__close`]], {
|
|
143
|
+
[modal_module.styles[`${components_modal_modalRoot.rootClassName}__close--floating`]]: props.slot === "floating",
|
|
272
144
|
className
|
|
273
145
|
});
|
|
274
|
-
const imageRef = React.useContext(RootContext
|
|
146
|
+
const imageRef = React.useContext(components_modal_modalRoot.RootContext).imageRef;
|
|
275
147
|
const [hasImage, setHasImage] = React.useState(false);
|
|
276
148
|
React.useEffect(() => {
|
|
277
149
|
if (imageRef == null ? void 0 : imageRef.current) {
|
|
278
150
|
setHasImage(true);
|
|
279
151
|
}
|
|
280
152
|
}, [imageRef]);
|
|
281
|
-
return /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Close, { ...props, className: classes, ref: forwardedRef, asChild: true, children: props.children || /* @__PURE__ */ jsxRuntime.jsx(
|
|
153
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Close, { ...props, className: classes, ref: forwardedRef, asChild: true, children: props.children || /* @__PURE__ */ jsxRuntime.jsx(
|
|
154
|
+
components_button_button.Button,
|
|
155
|
+
{
|
|
156
|
+
variant: hasImage ? "primary-negative" : "tertiary-purple",
|
|
157
|
+
iconOnly: true,
|
|
158
|
+
"aria-label": props["aria-label"] ?? "Lukk",
|
|
159
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: "close" })
|
|
160
|
+
}
|
|
161
|
+
) });
|
|
282
162
|
}
|
|
283
163
|
);
|
|
284
164
|
Close.displayName = "Close";
|
|
285
|
-
const Modal =
|
|
165
|
+
const Modal = components_modal_modalRoot.Root;
|
|
166
|
+
Modal.displayName = "Modal";
|
|
167
|
+
Modal.Trigger = components_modal_modalTrigger.Trigger;
|
|
168
|
+
Modal.Trigger.displayName = "Modal.Trigger";
|
|
169
|
+
Modal.Content = components_modal_modalContent.Content;
|
|
170
|
+
Modal.Content.displayName = "Modal.Content";
|
|
171
|
+
Modal.Title = components_modal_modalTitle.Title;
|
|
172
|
+
Modal.Title.displayName = "Modal.Title";
|
|
173
|
+
Modal.Description = components_modal_modalDescription.Description;
|
|
174
|
+
Modal.Description.displayName = "Modal.Description";
|
|
175
|
+
Modal.Overlay = components_modal_modalOverlay.Overlay;
|
|
176
|
+
Modal.Overlay.displayName = "Modal.Overlay";
|
|
177
|
+
Modal.Group = components_modal_modalGroup.Group;
|
|
178
|
+
Modal.Group.displayName = "Modal.Group";
|
|
179
|
+
Modal.Close = Close;
|
|
180
|
+
Modal.Close.displayName = "Modal.Close";
|
|
181
|
+
Modal.Image = components_modal_modalImage.Image;
|
|
182
|
+
Modal.Image.displayName = "Modal.Image";
|
|
286
183
|
const styles$1 = {
|
|
287
184
|
"teddy-navigation-menu": "_teddy-navigation-menu_6p30v_1",
|
|
288
185
|
"teddy-navigation-menu__viewport": "_teddy-navigation-menu__viewport_6p30v_34",
|
|
@@ -1403,7 +1300,8 @@ function getInitialMenuItem(currentPath) {
|
|
|
1403
1300
|
}
|
|
1404
1301
|
Root.displayName = "GlobalNavigation";
|
|
1405
1302
|
const GlobalNavigation = Root;
|
|
1406
|
-
exports.
|
|
1303
|
+
exports.Close = Close;
|
|
1304
|
+
exports.Content = Content$1;
|
|
1407
1305
|
exports.Desktop = Desktop;
|
|
1408
1306
|
exports.DesktopSimplified = DesktopSimplified;
|
|
1409
1307
|
exports.GlobalNavigation = GlobalNavigation;
|
|
@@ -1422,6 +1320,6 @@ exports.Search = Search;
|
|
|
1422
1320
|
exports.SearchField = SearchField;
|
|
1423
1321
|
exports.Separator = Separator;
|
|
1424
1322
|
exports.ShoppingCart = ShoppingCart;
|
|
1425
|
-
exports.Title = Title
|
|
1323
|
+
exports.Title = Title;
|
|
1426
1324
|
exports.rootClassName = rootClassName$1;
|
|
1427
1325
|
exports.rootClassName$1 = rootClassName;
|
|
@@ -3,7 +3,7 @@ import React__default, { useEffect } from "react";
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { MY_PAGE_LINKS, LOGGED_IN_LINKS_BUSINESS, PRIVATE_LINKS, BUSINESS_LINKS, BUSINESS_UKKO_LINKS, MDU_LINKS, getLinks, getActiveSubLink } from "../navigation-menu/global-navigation/utils.js";
|
|
5
5
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
6
|
-
import { useComposedRefs
|
|
6
|
+
import { useComposedRefs } from "../../utils/composeRefs.js";
|
|
7
7
|
import { VisuallyHidden } from "../visually-hidden/visually-hidden.js";
|
|
8
8
|
import { composeEventHandlers } from "../../utils/composeEventHandlers.js";
|
|
9
9
|
import { Slot } from "@radix-ui/react-slot";
|
|
@@ -19,7 +19,7 @@ import "../toast/toast-root.js";
|
|
|
19
19
|
import "sonner";
|
|
20
20
|
import "../toggletip/index.js";
|
|
21
21
|
import "../breadcrumbs/index.js";
|
|
22
|
-
import { s as styles$
|
|
22
|
+
import { s as styles$2, rootClassName as rootClassName$2, Root as Root$2 } from "./radio-card-group-root.js";
|
|
23
23
|
import { GroupLabel } from "./radio-card-group-label.js";
|
|
24
24
|
import "../ribbon/index.js";
|
|
25
25
|
import "../expandable-card/index.js";
|
|
@@ -34,6 +34,13 @@ import { Drawer } from "../drawer/index.js";
|
|
|
34
34
|
import "../image/image.js";
|
|
35
35
|
import "../chip/index.js";
|
|
36
36
|
import "../../assets/sprite.1321fab0-teddy.svg";
|
|
37
|
+
import { rootClassName as rootClassName$3, RootContext as RootContext$1, Root as Root$3 } from "../modal/modal-root.js";
|
|
38
|
+
import { Trigger as Trigger$1 } from "../modal/modal-trigger.js";
|
|
39
|
+
import { Content as Content$2 } from "../modal/modal-content.js";
|
|
40
|
+
import { Title as Title$1 } from "../modal/modal-title.js";
|
|
41
|
+
import { Description } from "../modal/modal-description.js";
|
|
42
|
+
import { Overlay } from "../modal/modal-overlay.js";
|
|
43
|
+
import { Group } from "../modal/modal-group.js";
|
|
37
44
|
import * as DrawerPrimitive from "@radix-ui/react-dialog";
|
|
38
45
|
import { Icon } from "../icon/icon.js";
|
|
39
46
|
import "../notification/index.js";
|
|
@@ -61,193 +68,58 @@ import { TextSpacing } from "../text-spacing/text-spacing.js";
|
|
|
61
68
|
import "../container/container.js";
|
|
62
69
|
import "../carousel/carousel-root.js";
|
|
63
70
|
import "../slider/slider.js";
|
|
71
|
+
import { s as styles$3 } from "../../modal.module-DuP4in7f.js";
|
|
72
|
+
import { Image } from "../modal/modal-image.js";
|
|
64
73
|
import { Indicator as Indicator$1 } from "./radio-card-group-indicator.js";
|
|
65
74
|
import { Body } from "./radio-card-group-item-body.js";
|
|
66
75
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
67
76
|
import { useSize } from "../../utils/useSize.js";
|
|
68
|
-
const Title
|
|
77
|
+
const Title = React__default.forwardRef(
|
|
69
78
|
({ className, children, asChild, ...props }, forwardRef) => {
|
|
70
|
-
const classes = clsx([styles$
|
|
71
|
-
return /* @__PURE__ */ jsxs(Flex, { width: "100%", gap: "150", className: styles$
|
|
79
|
+
const classes = clsx([styles$2[`${rootClassName$2}__title`]], className);
|
|
80
|
+
return /* @__PURE__ */ jsxs(Flex, { width: "100%", gap: "150", className: styles$2[`${rootClassName$2}__title-wrapper`], children: [
|
|
72
81
|
asChild ? /* @__PURE__ */ jsx(Slot, { ...props, ref: forwardRef, className: classes, children }) : /* @__PURE__ */ jsx(Text, { variant: "paragraph-100-bold", ref: forwardRef, className: classes, children }),
|
|
73
82
|
/* @__PURE__ */ jsx(Indicator$1, {})
|
|
74
83
|
] });
|
|
75
84
|
}
|
|
76
85
|
);
|
|
77
|
-
Title
|
|
78
|
-
const Content$
|
|
86
|
+
Title.displayName = "Title";
|
|
87
|
+
const Content$1 = React__default.forwardRef(
|
|
79
88
|
({ className, children, ...props }, forwardRef) => {
|
|
80
|
-
const classes = clsx([styles$
|
|
89
|
+
const classes = clsx([styles$2[`${rootClassName$2}__content-wrapper`]], className);
|
|
81
90
|
return /* @__PURE__ */ jsx(Flex, { direction: "column", width: "100%", gap: "50", ...props, ref: forwardRef, className: classes, children });
|
|
82
91
|
}
|
|
83
92
|
);
|
|
84
|
-
Content$
|
|
93
|
+
Content$1.displayName = "Content";
|
|
85
94
|
const ItemContext = React__default.createContext(void 0);
|
|
86
95
|
const Item$1 = React__default.forwardRef(
|
|
87
96
|
({ className, children, value, ...props }, forwardedRef) => {
|
|
88
|
-
const classes = clsx([styles$
|
|
97
|
+
const classes = clsx([styles$2[`${rootClassName$2}__card-item`]], className);
|
|
89
98
|
const context = React__default.useContext(ItemContext);
|
|
90
99
|
const ref = useComposedRefs(forwardedRef, context == null ? void 0 : context.triggerRef);
|
|
91
100
|
const id = props.id || (context == null ? void 0 : context.id);
|
|
92
101
|
return /* @__PURE__ */ jsxs(RadioGroupPrimitive.Item, { value, id, ...props, asChild: false, ref, className: classes, children: [
|
|
93
|
-
props.imageUrl ? /* @__PURE__ */ jsx(Flex, { className: clsx([styles$
|
|
94
|
-
/* @__PURE__ */ jsx(Content$
|
|
102
|
+
props.imageUrl ? /* @__PURE__ */ jsx(Flex, { className: clsx([styles$2[`${rootClassName$2}__illustration`]], className), justify: "center", align: "center", children: /* @__PURE__ */ jsx("img", { src: props.imageUrl, alt: value }) }) : null,
|
|
103
|
+
/* @__PURE__ */ jsx(Content$1, { children })
|
|
95
104
|
] });
|
|
96
105
|
}
|
|
97
106
|
);
|
|
98
107
|
Item$1.displayName = "Item";
|
|
99
|
-
Root$
|
|
108
|
+
Root$2.displayName = "RadioCardGroup";
|
|
100
109
|
GroupLabel.displayName = "RadioCardGroup.GroupLabel";
|
|
101
110
|
Item$1.displayName = "RadioCardGroup.Item";
|
|
102
|
-
Title
|
|
111
|
+
Title.displayName = "RadioCardGroup.Title";
|
|
103
112
|
Body.displayName = "RadioCardGroup.Body";
|
|
104
|
-
const RadioCardGroup = Object.assign(Root$
|
|
113
|
+
const RadioCardGroup = Object.assign(Root$2, {
|
|
105
114
|
GroupLabel,
|
|
106
115
|
Item: Item$1,
|
|
107
|
-
Title
|
|
116
|
+
Title,
|
|
108
117
|
Body
|
|
109
118
|
});
|
|
110
|
-
const styles$2 = {
|
|
111
|
-
"teddy-modal__overlay": "_teddy-modal__overlay_lkqhu_25",
|
|
112
|
-
"teddy-modal__content": "_teddy-modal__content_lkqhu_37",
|
|
113
|
-
"teddy-modal__scroll": "_teddy-modal__scroll_lkqhu_55",
|
|
114
|
-
"teddy-modal__image": "_teddy-modal__image_lkqhu_59",
|
|
115
|
-
"teddy-modal__close--floating": "_teddy-modal__close--floating_lkqhu_69",
|
|
116
|
-
"teddy-modal__group": "_teddy-modal__group_lkqhu_79",
|
|
117
|
-
"teddy-modal__group--title": "_teddy-modal__group--title_lkqhu_83",
|
|
118
|
-
"teddy-modal__group--scroll": "_teddy-modal__group--scroll_lkqhu_94",
|
|
119
|
-
"teddy-modal__group--action": "_teddy-modal__group--action_lkqhu_103",
|
|
120
|
-
"modal-overlay-no-op": "_modal-overlay-no-op_lkqhu_1",
|
|
121
|
-
"teddy-fade-in": "_teddy-fade-in_lkqhu_1",
|
|
122
|
-
"teddy-fade-out": "_teddy-fade-out_lkqhu_1",
|
|
123
|
-
"modal-content-show": "_modal-content-show_lkqhu_1",
|
|
124
|
-
"modal-content-hide": "_modal-content-hide_lkqhu_1",
|
|
125
|
-
"teddy-overlay-no-op": "_teddy-overlay-no-op_lkqhu_1"
|
|
126
|
-
};
|
|
127
|
-
const rootClassName$2 = "teddy-modal";
|
|
128
|
-
const RootContext$1 = React__default.createContext({
|
|
129
|
-
imageRef: null,
|
|
130
|
-
actionGroupRef: null,
|
|
131
|
-
scrollRef: null
|
|
132
|
-
});
|
|
133
|
-
const Root$2 = (props) => {
|
|
134
|
-
const imageRef = React__default.useRef(null);
|
|
135
|
-
const actionGroupRef = React__default.useRef(null);
|
|
136
|
-
const scrollRef = React__default.useRef(null);
|
|
137
|
-
return /* @__PURE__ */ jsx(RootContext$1.Provider, { value: { imageRef, actionGroupRef, scrollRef }, children: /* @__PURE__ */ jsx(DrawerPrimitive.Root, { ...props, modal: true }) });
|
|
138
|
-
};
|
|
139
|
-
Root$2.displayName = "Modal.Root";
|
|
140
|
-
const Trigger$1 = React__default.forwardRef(
|
|
141
|
-
({ children, ...props }, forwardedRef) => /* @__PURE__ */ jsx(DrawerPrimitive.Trigger, { ...props, ref: forwardedRef, asChild: true, children })
|
|
142
|
-
);
|
|
143
|
-
Trigger$1.displayName = "Modal.Trigger";
|
|
144
|
-
const OverlayContext = React__default.createContext(false);
|
|
145
|
-
const Overlay = React__default.forwardRef(
|
|
146
|
-
({ className, forceMount, container, ...rest }, forwardedRef) => {
|
|
147
|
-
const classes = clsx([styles$2[`${rootClassName$2}__overlay`]], className);
|
|
148
|
-
return /* @__PURE__ */ jsx(OverlayContext.Provider, { value: true, children: /* @__PURE__ */ jsx(DrawerPrimitive.Portal, { container, forceMount, children: /* @__PURE__ */ jsx(DrawerPrimitive.Overlay, { className: classes, ref: forwardedRef, ...rest }) }) });
|
|
149
|
-
}
|
|
150
|
-
);
|
|
151
|
-
Overlay.displayName = "Modal.Content";
|
|
152
|
-
const InnerContent = React__default.forwardRef(
|
|
153
|
-
function InnerContent2({ asChild, children, className, ...props }, forwardedRef) {
|
|
154
|
-
const classes = clsx([styles$2[`${rootClassName$2}__scroll`]], className);
|
|
155
|
-
const context = React__default.useContext(RootContext$1);
|
|
156
|
-
return /* @__PURE__ */ jsx(
|
|
157
|
-
DrawerPrimitive.Content,
|
|
158
|
-
{
|
|
159
|
-
...props,
|
|
160
|
-
ref: forwardedRef,
|
|
161
|
-
className: clsx([styles$2[`${rootClassName$2}__content`]]),
|
|
162
|
-
asChild: true,
|
|
163
|
-
children: /* @__PURE__ */ jsx(Flex, { children: /* @__PURE__ */ jsx(
|
|
164
|
-
Flex,
|
|
165
|
-
{
|
|
166
|
-
...asChild ? { as: void 0, asChild } : {},
|
|
167
|
-
direction: "column",
|
|
168
|
-
align: "start",
|
|
169
|
-
maxWidth: { md: "600px" },
|
|
170
|
-
className: classes,
|
|
171
|
-
ref: context.scrollRef,
|
|
172
|
-
children
|
|
173
|
-
}
|
|
174
|
-
) })
|
|
175
|
-
}
|
|
176
|
-
);
|
|
177
|
-
}
|
|
178
|
-
);
|
|
179
|
-
const Content$1 = React__default.forwardRef(
|
|
180
|
-
({ forceMount, ...contentProps }, forwardedRef) => {
|
|
181
|
-
const hasOverlay = React__default.useContext(OverlayContext);
|
|
182
|
-
if (!hasOverlay)
|
|
183
|
-
return /* @__PURE__ */ jsx(Overlay, { forceMount, children: /* @__PURE__ */ jsx(InnerContent, { ref: forwardedRef, ...contentProps }) });
|
|
184
|
-
return /* @__PURE__ */ jsx(InnerContent, { ref: forwardedRef, ...contentProps });
|
|
185
|
-
}
|
|
186
|
-
);
|
|
187
|
-
Content$1.displayName = "Modal.Content";
|
|
188
|
-
const GroupContext = React__default.createContext(false);
|
|
189
|
-
const Group = React__default.forwardRef(
|
|
190
|
-
({ className, variant, ...props }, forwardedRef) => {
|
|
191
|
-
const strollerRef = React__default.useContext(RootContext$1).scrollRef;
|
|
192
|
-
const [isOverflowing, setIsOverflowing] = React__default.useState(false);
|
|
193
|
-
useEffect(() => {
|
|
194
|
-
if (strollerRef == null ? void 0 : strollerRef.current) {
|
|
195
|
-
const hasOverflow = strollerRef.current.scrollHeight > strollerRef.current.clientHeight;
|
|
196
|
-
setIsOverflowing(hasOverflow);
|
|
197
|
-
}
|
|
198
|
-
}, [strollerRef]);
|
|
199
|
-
const classes = clsx(
|
|
200
|
-
[styles$2[`${rootClassName$2}__group`]],
|
|
201
|
-
{
|
|
202
|
-
[styles$2[`${rootClassName$2}__group--action`]]: variant === "action",
|
|
203
|
-
[styles$2[`${rootClassName$2}__group--title`]]: variant === "title",
|
|
204
|
-
[styles$2[`${rootClassName$2}__group--scroll`]]: isOverflowing
|
|
205
|
-
},
|
|
206
|
-
className
|
|
207
|
-
);
|
|
208
|
-
return /* @__PURE__ */ jsx(GroupContext.Provider, { value: true, children: /* @__PURE__ */ jsx(
|
|
209
|
-
Flex,
|
|
210
|
-
{
|
|
211
|
-
...variant === "action" ? {
|
|
212
|
-
gap: "200",
|
|
213
|
-
justify: { md: "end" },
|
|
214
|
-
align: { sm: "stretch", md: "end" },
|
|
215
|
-
direction: { sm: "column-reverse", md: "row" }
|
|
216
|
-
} : { direction: "column" },
|
|
217
|
-
ref: forwardedRef,
|
|
218
|
-
...props,
|
|
219
|
-
className: classes
|
|
220
|
-
}
|
|
221
|
-
) });
|
|
222
|
-
}
|
|
223
|
-
);
|
|
224
|
-
Group.displayName = "Modal.Group";
|
|
225
|
-
const TitleInner = React__default.forwardRef(
|
|
226
|
-
function TitleInner2(props, forwardedRef) {
|
|
227
|
-
return /* @__PURE__ */ jsx(DrawerPrimitive.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { variant: "title-200", as: "h2", ...props, asChild: false, ref: forwardedRef }) });
|
|
228
|
-
}
|
|
229
|
-
);
|
|
230
|
-
const Title = React__default.forwardRef((props, forwardedRef) => {
|
|
231
|
-
const isInsideGroup = React__default.useContext(GroupContext);
|
|
232
|
-
if (!isInsideGroup) {
|
|
233
|
-
return /* @__PURE__ */ jsx(Group, { variant: "title", children: /* @__PURE__ */ jsx(TitleInner, { ...props, ref: forwardedRef }) });
|
|
234
|
-
}
|
|
235
|
-
return /* @__PURE__ */ jsx(TitleInner, { ...props, ref: forwardedRef });
|
|
236
|
-
});
|
|
237
|
-
Title.displayName = "Modal.Title";
|
|
238
|
-
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 }) }));
|
|
239
|
-
Description.displayName = "Modal.Description";
|
|
240
|
-
const Image = React__default.forwardRef(({ asChild, ...props }, forwardedRef) => {
|
|
241
|
-
const classes = clsx([styles$2[`${rootClassName$2}__image`]], props.className);
|
|
242
|
-
const context = React__default.useContext(RootContext$1);
|
|
243
|
-
const Comp = asChild ? Slot : "img";
|
|
244
|
-
return /* @__PURE__ */ jsx(Comp, { ...props, className: classes, ref: composeRefs(context.imageRef, forwardedRef) });
|
|
245
|
-
});
|
|
246
|
-
Image.displayName = "Modal.Image";
|
|
247
119
|
const Close = React__default.forwardRef(
|
|
248
120
|
({ className, ...props }, forwardedRef) => {
|
|
249
|
-
const classes = clsx([styles$
|
|
250
|
-
[styles$
|
|
121
|
+
const classes = clsx([styles$3[`${rootClassName$3}__close`]], {
|
|
122
|
+
[styles$3[`${rootClassName$3}__close--floating`]]: props.slot === "floating",
|
|
251
123
|
className
|
|
252
124
|
});
|
|
253
125
|
const imageRef = React__default.useContext(RootContext$1).imageRef;
|
|
@@ -257,11 +129,36 @@ const Close = React__default.forwardRef(
|
|
|
257
129
|
setHasImage(true);
|
|
258
130
|
}
|
|
259
131
|
}, [imageRef]);
|
|
260
|
-
return /* @__PURE__ */ jsx(DrawerPrimitive.Close, { ...props, className: classes, ref: forwardedRef, asChild: true, children: props.children || /* @__PURE__ */ jsx(
|
|
132
|
+
return /* @__PURE__ */ jsx(DrawerPrimitive.Close, { ...props, className: classes, ref: forwardedRef, asChild: true, children: props.children || /* @__PURE__ */ jsx(
|
|
133
|
+
Button,
|
|
134
|
+
{
|
|
135
|
+
variant: hasImage ? "primary-negative" : "tertiary-purple",
|
|
136
|
+
iconOnly: true,
|
|
137
|
+
"aria-label": props["aria-label"] ?? "Lukk",
|
|
138
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "close" })
|
|
139
|
+
}
|
|
140
|
+
) });
|
|
261
141
|
}
|
|
262
142
|
);
|
|
263
143
|
Close.displayName = "Close";
|
|
264
|
-
const Modal =
|
|
144
|
+
const Modal = Root$3;
|
|
145
|
+
Modal.displayName = "Modal";
|
|
146
|
+
Modal.Trigger = Trigger$1;
|
|
147
|
+
Modal.Trigger.displayName = "Modal.Trigger";
|
|
148
|
+
Modal.Content = Content$2;
|
|
149
|
+
Modal.Content.displayName = "Modal.Content";
|
|
150
|
+
Modal.Title = Title$1;
|
|
151
|
+
Modal.Title.displayName = "Modal.Title";
|
|
152
|
+
Modal.Description = Description;
|
|
153
|
+
Modal.Description.displayName = "Modal.Description";
|
|
154
|
+
Modal.Overlay = Overlay;
|
|
155
|
+
Modal.Overlay.displayName = "Modal.Overlay";
|
|
156
|
+
Modal.Group = Group;
|
|
157
|
+
Modal.Group.displayName = "Modal.Group";
|
|
158
|
+
Modal.Close = Close;
|
|
159
|
+
Modal.Close.displayName = "Modal.Close";
|
|
160
|
+
Modal.Image = Image;
|
|
161
|
+
Modal.Image.displayName = "Modal.Image";
|
|
265
162
|
const styles$1 = {
|
|
266
163
|
"teddy-navigation-menu": "_teddy-navigation-menu_6p30v_1",
|
|
267
164
|
"teddy-navigation-menu__viewport": "_teddy-navigation-menu__viewport_6p30v_34",
|
|
@@ -1383,7 +1280,7 @@ function getInitialMenuItem(currentPath) {
|
|
|
1383
1280
|
Root.displayName = "GlobalNavigation";
|
|
1384
1281
|
const GlobalNavigation = Root;
|
|
1385
1282
|
export {
|
|
1386
|
-
Content$
|
|
1283
|
+
Content$1 as C,
|
|
1387
1284
|
Desktop as D,
|
|
1388
1285
|
GlobalNavigation as G,
|
|
1389
1286
|
HighlightedLinks as H,
|
|
@@ -1392,17 +1289,18 @@ export {
|
|
|
1392
1289
|
NavigationMenu as N,
|
|
1393
1290
|
RadioCardGroup as R,
|
|
1394
1291
|
Separator as S,
|
|
1395
|
-
Title
|
|
1292
|
+
Title,
|
|
1396
1293
|
Item$1 as a,
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1294
|
+
Close as b,
|
|
1295
|
+
MyPages as c,
|
|
1296
|
+
SearchField as d,
|
|
1297
|
+
Search as e,
|
|
1298
|
+
ShoppingCart as f,
|
|
1299
|
+
Mobile as g,
|
|
1300
|
+
DesktopSimplified as h,
|
|
1301
|
+
MobileSimplified as i,
|
|
1302
|
+
rootClassName as j,
|
|
1303
|
+
RootContext as k,
|
|
1304
|
+
Root as l,
|
|
1407
1305
|
rootClassName$1 as r
|
|
1408
1306
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const styles = {
|
|
2
|
+
"teddy-drawer__overlay": "_teddy-drawer__overlay_1hfde_26",
|
|
3
|
+
"teddy-overlay-no-op": "_teddy-overlay-no-op_1hfde_1",
|
|
4
|
+
"teddy-fade-in": "_teddy-fade-in_1hfde_1",
|
|
5
|
+
"teddy-fade-out": "_teddy-fade-out_1hfde_1",
|
|
6
|
+
"teddy-drawer__overlay--container": "_teddy-drawer__overlay--container_1hfde_60",
|
|
7
|
+
"teddy-drawer__content": "_teddy-drawer__content_1hfde_66",
|
|
8
|
+
"teddy-drawer__title": "_teddy-drawer__title_1hfde_70",
|
|
9
|
+
"drawer-content-show": "_drawer-content-show_1hfde_1",
|
|
10
|
+
"drawer-content-hide": "_drawer-content-hide_1hfde_1",
|
|
11
|
+
"teddy-drawer__content--lg": "_teddy-drawer__content--lg_1hfde_102",
|
|
12
|
+
"teddy-drawer__close--floating": "_teddy-drawer__close--floating_1hfde_107"
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
styles as s
|
|
16
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const styles = {
|
|
3
|
+
"teddy-drawer__overlay": "_teddy-drawer__overlay_1hfde_26",
|
|
4
|
+
"teddy-overlay-no-op": "_teddy-overlay-no-op_1hfde_1",
|
|
5
|
+
"teddy-fade-in": "_teddy-fade-in_1hfde_1",
|
|
6
|
+
"teddy-fade-out": "_teddy-fade-out_1hfde_1",
|
|
7
|
+
"teddy-drawer__overlay--container": "_teddy-drawer__overlay--container_1hfde_60",
|
|
8
|
+
"teddy-drawer__content": "_teddy-drawer__content_1hfde_66",
|
|
9
|
+
"teddy-drawer__title": "_teddy-drawer__title_1hfde_70",
|
|
10
|
+
"drawer-content-show": "_drawer-content-show_1hfde_1",
|
|
11
|
+
"drawer-content-hide": "_drawer-content-hide_1hfde_1",
|
|
12
|
+
"teddy-drawer__content--lg": "_teddy-drawer__content--lg_1hfde_102",
|
|
13
|
+
"teddy-drawer__close--floating": "_teddy-drawer__close--floating_1hfde_107"
|
|
14
|
+
};
|
|
15
|
+
exports.styles = styles;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const styles = {
|
|
3
|
+
"teddy-modal__overlay": "_teddy-modal__overlay_1mjv8_25",
|
|
4
|
+
"teddy-modal__content": "_teddy-modal__content_1mjv8_37",
|
|
5
|
+
"teddy-modal__scroll": "_teddy-modal__scroll_1mjv8_55",
|
|
6
|
+
"teddy-modal__image": "_teddy-modal__image_1mjv8_59",
|
|
7
|
+
"teddy-modal__close--floating": "_teddy-modal__close--floating_1mjv8_69",
|
|
8
|
+
"teddy-modal__group": "_teddy-modal__group_1mjv8_79",
|
|
9
|
+
"teddy-modal__group--title": "_teddy-modal__group--title_1mjv8_83",
|
|
10
|
+
"teddy-modal__group--scroll": "_teddy-modal__group--scroll_1mjv8_94",
|
|
11
|
+
"teddy-modal__group--action": "_teddy-modal__group--action_1mjv8_103",
|
|
12
|
+
"modal-overlay-no-op": "_modal-overlay-no-op_1mjv8_1",
|
|
13
|
+
"teddy-fade-in": "_teddy-fade-in_1mjv8_1",
|
|
14
|
+
"teddy-fade-out": "_teddy-fade-out_1mjv8_1",
|
|
15
|
+
"modal-content-show": "_modal-content-show_1mjv8_1",
|
|
16
|
+
"modal-content-hide": "_modal-content-hide_1mjv8_1",
|
|
17
|
+
"teddy-overlay-no-op": "_teddy-overlay-no-op_1mjv8_1"
|
|
18
|
+
};
|
|
19
|
+
exports.styles = styles;
|