@telia/teddy 0.0.24 → 0.0.25
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/accordion/accordion-content.cjs +32 -0
- package/dist/components/accordion/accordion-header.cjs +33 -0
- package/dist/components/accordion/accordion-indicator.cjs +16 -0
- package/dist/components/accordion/accordion-item.cjs +32 -0
- package/dist/components/accordion/accordion-root.cjs +56 -0
- package/dist/components/accordion/accordion-root.js +11 -11
- package/dist/components/accordion/accordion-title.cjs +15 -0
- package/dist/components/accordion/accordion-trigger.cjs +37 -0
- package/dist/components/accordion/index.cjs +25 -0
- package/dist/components/accordion/index.js +7 -0
- package/dist/components/badge/badge.cjs +43 -0
- package/dist/components/badge/index.cjs +4 -0
- package/dist/components/box/box.cjs +17 -0
- package/dist/components/box/index.cjs +4 -0
- package/dist/components/button/button.cjs +130 -0
- package/dist/components/button/button.js +24 -24
- package/dist/components/button/index.cjs +4 -0
- package/dist/components/card/card.cjs +219 -0
- package/dist/components/card/index.cjs +4 -0
- package/dist/components/chip/chip-indicator.cjs +16 -0
- package/dist/components/chip/chip-item.cjs +45 -0
- package/dist/components/chip/chip.cjs +48 -0
- package/dist/components/chip/index.cjs +10 -0
- package/dist/components/drawer/drawer-close.cjs +39 -0
- package/dist/components/drawer/drawer-content.cjs +42 -0
- package/dist/components/drawer/drawer-description.cjs +36 -0
- package/dist/components/drawer/drawer-footer.cjs +16 -0
- package/dist/components/drawer/drawer-overlay.cjs +43 -0
- package/dist/components/drawer/drawer-root.cjs +28 -0
- package/dist/components/drawer/drawer-title.cjs +34 -0
- package/dist/components/drawer/drawer-trigger.cjs +27 -0
- package/dist/components/drawer/index.cjs +20 -0
- package/dist/components/field-error-text/field-error-text.cjs +30 -0
- package/dist/components/field-error-text/index.cjs +4 -0
- package/dist/components/flex/flex.cjs +19 -0
- package/dist/components/flex/index.cjs +4 -0
- package/dist/components/grid/grid.cjs +19 -0
- package/dist/components/grid/index.cjs +4 -0
- package/dist/components/heading/heading.cjs +55 -0
- package/dist/components/heading/index.cjs +4 -0
- package/dist/components/helper-text/helper-text.cjs +21 -0
- package/dist/components/helper-text/helper-text.d.ts +2 -4
- package/dist/components/helper-text/index.cjs +4 -0
- package/dist/components/icon/AllIcons.cjs +1091 -0
- package/dist/components/icon/AllIcons.d.ts +2 -0
- package/dist/components/icon/AllIcons.js +1092 -0
- package/dist/components/icon/icon.cjs +29 -0
- package/dist/components/icon/index.cjs +8 -0
- package/dist/components/icon/index.d.ts +1 -0
- package/dist/components/icon/index.js +2 -0
- package/dist/components/image/image.cjs +17 -0
- package/dist/components/image/index.cjs +4 -0
- package/dist/components/index.cjs +66 -0
- package/dist/components/index.js +6 -3
- package/dist/components/input/index.cjs +14 -0
- package/dist/components/input/index.d.ts +27 -2
- package/dist/components/input/index.js +10 -1
- package/dist/components/input/input-clear-button.cjs +43 -0
- package/dist/components/input/input-clear-button.d.ts +6 -0
- package/dist/components/input/input-clear-button.js +43 -0
- package/dist/components/input/input-group.cjs +132 -0
- package/dist/components/input/input-group.d.ts +16 -0
- package/dist/components/input/input-group.js +132 -0
- package/dist/components/input/input-indicator.cjs +10 -0
- package/dist/components/input/input-indicator.d.ts +23 -0
- package/dist/components/input/input-indicator.js +10 -0
- package/dist/components/input/input.cjs +9 -0
- package/dist/components/input/input.d.ts +4 -28
- package/dist/components/input/input.js +7 -114
- package/dist/components/label/index.cjs +4 -0
- package/dist/components/label/label.cjs +44 -0
- package/dist/components/link/index.cjs +4 -0
- package/dist/components/link/link.cjs +37 -0
- package/dist/components/link/link.js +10 -10
- package/dist/components/modal/index.cjs +4 -0
- package/dist/components/modal/modal.cjs +209 -0
- package/dist/components/modal/modal.js +2 -2
- package/dist/components/navigation-menu/index.cjs +4 -0
- package/dist/components/navigation-menu/navigation-menu.cjs +410 -0
- package/dist/components/notification/index.cjs +4 -0
- package/dist/components/notification/notification.cjs +116 -0
- package/dist/components/notification/notification.js +8 -8
- package/dist/components/radio-group/index.cjs +4 -0
- package/dist/components/radio-group/radio-group.cjs +110 -0
- package/dist/components/scroll-area/index.cjs +9 -0
- package/dist/components/scroll-area/scroll-area-bar.cjs +175 -0
- package/dist/components/scroll-area/scroll-area-bar.js +8 -8
- package/dist/components/scroll-area/scroll-area-button.cjs +11 -0
- package/dist/components/scroll-area/scroll-area-corner.cjs +8 -0
- package/dist/components/scroll-area/scroll-area-item.cjs +42 -0
- package/dist/components/scroll-area/scroll-area-item.js +2 -1
- package/dist/components/scroll-area/scroll-area-root.cjs +11 -0
- package/dist/components/scroll-area/scroll-area-thumb.cjs +8 -0
- package/dist/components/spinner/index.cjs +4 -0
- package/dist/components/spinner/spinner.cjs +57 -0
- package/dist/components/tabs/index.cjs +16 -0
- package/dist/components/tabs/tabs-content.cjs +32 -0
- package/dist/components/tabs/tabs-list.cjs +39 -0
- package/dist/components/tabs/tabs-list.js +6 -4
- package/dist/components/tabs/tabs-root.cjs +75 -0
- package/dist/components/tabs/tabs-root.d.ts +4 -7
- package/dist/components/tabs/tabs-root.js +25 -8
- package/dist/components/tabs/tabs-scroll-button.cjs +15 -0
- package/dist/components/tabs/tabs-scroll.cjs +22 -0
- package/dist/components/tabs/tabs-trigger.cjs +55 -0
- package/dist/components/tabs/tabs-trigger.js +19 -9
- package/dist/components/text/index.cjs +4 -0
- package/dist/components/text/text.cjs +49 -0
- package/dist/components/text-field/index.cjs +31 -0
- package/dist/components/text-field/index.d.ts +63 -2
- package/dist/components/text-field/index.js +28 -1
- package/dist/components/text-field/text-field-button.cjs +31 -0
- package/dist/components/text-field/text-field-button.d.ts +27 -0
- package/dist/components/text-field/text-field-button.js +31 -0
- package/dist/components/text-field/text-field-clear-button.cjs +12 -0
- package/dist/components/text-field/text-field-clear-button.d.ts +6 -0
- package/dist/components/text-field/text-field-clear-button.js +12 -0
- package/dist/components/text-field/text-field-error-list.cjs +28 -0
- package/dist/components/text-field/text-field-error-list.d.ts +9 -0
- package/dist/components/text-field/text-field-error-list.js +28 -0
- package/dist/components/text-field/text-field-helper-text.cjs +19 -0
- package/dist/components/text-field/text-field-helper-text.d.ts +5 -0
- package/dist/components/text-field/text-field-helper-text.js +19 -0
- package/dist/components/text-field/text-field-indicator.cjs +14 -0
- package/dist/components/text-field/text-field-indicator.d.ts +6 -0
- package/dist/components/text-field/text-field-indicator.js +14 -0
- package/dist/components/text-field/text-field-input-group.cjs +11 -0
- package/dist/components/text-field/text-field-input-group.d.ts +7 -0
- package/dist/components/text-field/text-field-input-group.js +11 -0
- package/dist/components/text-field/text-field-input.cjs +27 -0
- package/dist/components/text-field/text-field-input.d.ts +5 -0
- package/dist/components/text-field/text-field-input.js +27 -0
- package/dist/components/text-field/text-field-label.cjs +27 -0
- package/dist/components/text-field/text-field-label.d.ts +8 -0
- package/dist/components/text-field/text-field-label.js +27 -0
- package/dist/components/text-field/text-field.cjs +54 -0
- package/dist/components/text-field/text-field.d.ts +12 -58
- package/dist/components/text-field/text-field.js +17 -101
- package/dist/components/text-field/util.cjs +4 -0
- package/dist/components/text-field/util.d.ts +1 -0
- package/dist/components/text-field/util.js +4 -0
- package/dist/components/text-spacing/index.cjs +4 -0
- package/dist/components/text-spacing/text-spacing.cjs +19 -0
- package/dist/components/toggle/index.cjs +4 -0
- package/dist/components/toggle/toggle.cjs +104 -0
- package/dist/components/visually-hidden/index.cjs +4 -0
- package/dist/components/visually-hidden/visually-hidden.cjs +26 -0
- package/dist/drawer.module-w9nGK9pO.cjs +13 -0
- package/dist/icons/category.cjs +335 -0
- package/dist/icons/name.cjs +335 -0
- package/dist/icons/name.d.cjs +1 -0
- package/dist/main.cjs +374 -0
- package/dist/main.js +6 -3
- package/dist/style.css +385 -323
- package/dist/tokens/border/variables.cjs +20 -0
- package/dist/tokens/breakpoint/variables.cjs +10 -0
- package/dist/tokens/color/variables.cjs +454 -0
- package/dist/tokens/index.cjs +310 -0
- package/dist/tokens/motion/variables.cjs +24 -0
- package/dist/tokens/shadow/variables.cjs +10 -0
- package/dist/tokens/spacing/variables.cjs +48 -0
- package/dist/tokens/typography/variables.cjs +50 -0
- package/dist/utils/action.cjs +21 -0
- package/dist/utils/component-props-as.cjs +1 -0
- package/dist/utils/composeEventHandlers.cjs +11 -0
- package/dist/utils/composeRefs.cjs +18 -0
- package/dist/utils/generate-styling/align.cjs +32 -0
- package/dist/utils/generate-styling/color.cjs +12 -0
- package/dist/utils/generate-styling/flex.cjs +67 -0
- package/dist/utils/generate-styling/gap.cjs +22 -0
- package/dist/utils/generate-styling/grid.cjs +123 -0
- package/dist/utils/generate-styling/height.cjs +51 -0
- package/dist/utils/generate-styling/index.cjs +97 -0
- package/dist/utils/generate-styling/inset.cjs +33 -0
- package/dist/utils/generate-styling/justify.cjs +18 -0
- package/dist/utils/generate-styling/margin.cjs +33 -0
- package/dist/utils/generate-styling/object-fit.cjs +18 -0
- package/dist/utils/generate-styling/padding.cjs +33 -0
- package/dist/utils/generate-styling/position.cjs +21 -0
- package/dist/utils/generate-styling/util.cjs +33 -0
- package/dist/utils/generate-styling/width.cjs +26 -0
- package/dist/vite-env.d.cjs +1 -0
- package/package.json +6 -4
- package/dist/components/text-field/tex-field-label.d.ts +0 -0
- package/dist/components/text-field/tex-field-label.js +0 -1
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const clsx = require("clsx");
|
|
6
|
+
const utils_composeRefs = require("../../utils/composeRefs.cjs");
|
|
7
|
+
const utils_composeEventHandlers = require("../../utils/composeEventHandlers.cjs");
|
|
8
|
+
const components_box_box = require("../box/box.cjs");
|
|
9
|
+
const components_heading_heading = require("../heading/heading.cjs");
|
|
10
|
+
const components_button_button = require("../button/button.cjs");
|
|
11
|
+
const components_link_link = require("../link/link.cjs");
|
|
12
|
+
const tokens_spacing_variables = require("../../tokens/spacing/variables.cjs");
|
|
13
|
+
const components_grid_grid = require("../grid/grid.cjs");
|
|
14
|
+
const styles = {
|
|
15
|
+
"teddy-card": "_teddy-card_aok47_3",
|
|
16
|
+
"teddy-card__slot": "_teddy-card__slot_aok47_13",
|
|
17
|
+
"teddy-card__slot--bottom": "_teddy-card__slot--bottom_aok47_16",
|
|
18
|
+
"teddy-card__slot--center": "_teddy-card__slot--center_aok47_19",
|
|
19
|
+
"teddy-card--shadow": "_teddy-card--shadow_aok47_41",
|
|
20
|
+
"teddy-card__action": "_teddy-card__action_aok47_45",
|
|
21
|
+
"teddy-card__action--disabled": "_teddy-card__action--disabled_aok47_45",
|
|
22
|
+
"teddy-card--border": "_teddy-card--border_aok47_52",
|
|
23
|
+
"teddy-card--layout": "_teddy-card--layout_aok47_55",
|
|
24
|
+
"teddy-card__illustration": "_teddy-card__illustration_aok47_55",
|
|
25
|
+
"teddy-card__content": "_teddy-card__content_aok47_58",
|
|
26
|
+
"teddy-card__heading": "_teddy-card__heading_aok47_61",
|
|
27
|
+
"teddy-card--navigation-vertical": "_teddy-card--navigation-vertical_aok47_67",
|
|
28
|
+
"teddy-card--navigation-horizontal-small": "_teddy-card--navigation-horizontal-small_aok47_86",
|
|
29
|
+
"teddy-card--navigation-horizontal-large": "_teddy-card--navigation-horizontal-large_aok47_98",
|
|
30
|
+
"teddy-card--rich-card": "_teddy-card--rich-card_aok47_110",
|
|
31
|
+
"teddy-card__line": "_teddy-card__line_aok47_128",
|
|
32
|
+
"teddy-card--purple-light": "_teddy-card--purple-light_aok47_132",
|
|
33
|
+
"teddy-card--purple-dark": "_teddy-card--purple-dark_aok47_146",
|
|
34
|
+
"teddy-card--white": "_teddy-card--white_aok47_165",
|
|
35
|
+
"teddy-card--gray": "_teddy-card--gray_aok47_179",
|
|
36
|
+
"teddy-card--beige": "_teddy-card--beige_aok47_193",
|
|
37
|
+
"teddy-card__image--as-background": "_teddy-card__image--as-background_aok47_207",
|
|
38
|
+
"teddy-card--background-image": "_teddy-card--background-image_aok47_213",
|
|
39
|
+
"teddy-card__inset": "_teddy-card__inset_aok47_218",
|
|
40
|
+
"teddy-card__inset--top": "_teddy-card__inset--top_aok47_221",
|
|
41
|
+
"teddy-card__inset--left": "_teddy-card__inset--left_aok47_224",
|
|
42
|
+
"teddy-card__inset--right": "_teddy-card__inset--right_aok47_227",
|
|
43
|
+
"teddy-card__inset--bottom": "_teddy-card__inset--bottom_aok47_230"
|
|
44
|
+
};
|
|
45
|
+
const rootClassName = "teddy-card";
|
|
46
|
+
const actionElementIdentifier = `${rootClassName}__action`;
|
|
47
|
+
const variantOptions = ["purple-light", "purple-dark", "gray", "white", "beige"];
|
|
48
|
+
const RootContext = React.createContext(void 0);
|
|
49
|
+
const Root = React.forwardRef(
|
|
50
|
+
({ className, children, shadow, backgroundImageSrc, layout, variant, bordered, ...props }, forwardRef) => {
|
|
51
|
+
const buttonRef = React.useRef(null);
|
|
52
|
+
const linkRef = React.useRef(null);
|
|
53
|
+
const classes = clsx(
|
|
54
|
+
[styles[`${rootClassName}`]],
|
|
55
|
+
{
|
|
56
|
+
[styles[`${rootClassName}--${variant}`]]: variant,
|
|
57
|
+
[styles[`${rootClassName}--border`]]: bordered,
|
|
58
|
+
[styles[`${rootClassName}--shadow`]]: shadow,
|
|
59
|
+
[styles[`${rootClassName}--background-image`]]: backgroundImageSrc,
|
|
60
|
+
[styles[`${rootClassName}--layout`]]: layout,
|
|
61
|
+
[styles[`${rootClassName}--${layout}`]]: layout
|
|
62
|
+
},
|
|
63
|
+
className
|
|
64
|
+
);
|
|
65
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RootContext.Provider, { value: { buttonRef, linkRef, variant, layout }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
66
|
+
components_grid_grid.Grid,
|
|
67
|
+
{
|
|
68
|
+
...props,
|
|
69
|
+
className: classes,
|
|
70
|
+
style: backgroundImageSrc ? { background: `url(${backgroundImageSrc})`, ...props.style } : props.style,
|
|
71
|
+
onClick: utils_composeEventHandlers.composeEventHandlers(props.onClick, (e) => {
|
|
72
|
+
var _a;
|
|
73
|
+
if (e.isDefaultPrevented())
|
|
74
|
+
return;
|
|
75
|
+
if (linkRef.current)
|
|
76
|
+
return linkRef.current.click();
|
|
77
|
+
(_a = buttonRef.current) == null ? void 0 : _a.click();
|
|
78
|
+
}),
|
|
79
|
+
ref: forwardRef,
|
|
80
|
+
children
|
|
81
|
+
}
|
|
82
|
+
) });
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
Root.displayName = "Card";
|
|
86
|
+
const Heading = React.forwardRef(
|
|
87
|
+
({ className, as = "h2", ...props }, forwardRef) => {
|
|
88
|
+
const classes = clsx([styles[`${rootClassName}__heading`]], className);
|
|
89
|
+
const variant = props.variant ?? "title-200";
|
|
90
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
91
|
+
components_heading_heading.Heading,
|
|
92
|
+
{
|
|
93
|
+
...props,
|
|
94
|
+
...!props.asChild ? { as, asChild: false } : { as: void 0, asChild: true },
|
|
95
|
+
variant,
|
|
96
|
+
ref: forwardRef,
|
|
97
|
+
className: classes
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
Heading.displayName = "Card.Heading";
|
|
103
|
+
const Content = React.forwardRef(({ className, ...props }, forwardRef) => {
|
|
104
|
+
const classes = clsx([styles[`${rootClassName}__content`]], className);
|
|
105
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components_box_box.Box, { ...props, ref: forwardRef, className: classes });
|
|
106
|
+
});
|
|
107
|
+
Content.displayName = "Card.Content";
|
|
108
|
+
const Slot = React.forwardRef(({ className, align, ...props }, forwardRef) => {
|
|
109
|
+
const classes = clsx(
|
|
110
|
+
[
|
|
111
|
+
styles[`${rootClassName}__slot`],
|
|
112
|
+
{
|
|
113
|
+
[styles[`${rootClassName}__slot--center`]]: align === "top" || align === "bottom",
|
|
114
|
+
[styles[`${rootClassName}__slot--bottom`]]: align == null ? void 0 : align.includes("bottom")
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
className
|
|
118
|
+
);
|
|
119
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
120
|
+
components_box_box.Box,
|
|
121
|
+
{
|
|
122
|
+
position: "absolute",
|
|
123
|
+
top: (align == null ? void 0 : align.includes("top")) ? "0" : void 0,
|
|
124
|
+
bottom: (align == null ? void 0 : align.includes("bottom")) ? "0" : void 0,
|
|
125
|
+
left: (align == null ? void 0 : align.includes("left")) ? "200" : (align == null ? void 0 : align.includes("right")) ? void 0 : "50%",
|
|
126
|
+
right: (align == null ? void 0 : align.includes("right")) ? "200" : void 0,
|
|
127
|
+
...props,
|
|
128
|
+
ref: forwardRef,
|
|
129
|
+
className: classes
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
});
|
|
133
|
+
const insetOptions = [
|
|
134
|
+
"top",
|
|
135
|
+
"bottom",
|
|
136
|
+
"left",
|
|
137
|
+
"right",
|
|
138
|
+
"all",
|
|
139
|
+
"top-right-left",
|
|
140
|
+
"bottom-left-right",
|
|
141
|
+
"top-left",
|
|
142
|
+
"top-right",
|
|
143
|
+
"bottom-left",
|
|
144
|
+
"bottom-right",
|
|
145
|
+
"top-bottom",
|
|
146
|
+
"left-right"
|
|
147
|
+
];
|
|
148
|
+
const Illustration = React.forwardRef(
|
|
149
|
+
({ className, children, ...props }, forwardRef) => {
|
|
150
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
151
|
+
const classes = clsx([styles[`${rootClassName}__illustration`]], className, [styles[`${rootClassName}__inset`]], {
|
|
152
|
+
[styles[`${rootClassName}__inset--top`]]: ((_a = props.inset) == null ? void 0 : _a.includes("top")) || ((_b = props.inset) == null ? void 0 : _b.includes("all")),
|
|
153
|
+
[styles[`${rootClassName}__inset--bottom`]]: ((_c = props.inset) == null ? void 0 : _c.includes("bottom")) || ((_d = props.inset) == null ? void 0 : _d.includes("all")),
|
|
154
|
+
[styles[`${rootClassName}__inset--left`]]: ((_e = props.inset) == null ? void 0 : _e.includes("left")) || ((_f = props.inset) == null ? void 0 : _f.includes("all")),
|
|
155
|
+
[styles[`${rootClassName}__inset--right`]]: ((_g = props.inset) == null ? void 0 : _g.includes("right")) || ((_h = props.inset) == null ? void 0 : _h.includes("all"))
|
|
156
|
+
});
|
|
157
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ...props, className: classes, ref: forwardRef, children });
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
Illustration.displayName = "Card.Illustration";
|
|
161
|
+
function getButtonVariant(variant) {
|
|
162
|
+
switch (variant) {
|
|
163
|
+
case "purple-dark":
|
|
164
|
+
return "primary-negative";
|
|
165
|
+
default:
|
|
166
|
+
return "primary";
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
const Button = React.forwardRef(
|
|
170
|
+
({ className, iconOnly = false, ...props }, forwardRef) => {
|
|
171
|
+
const context = React.useContext(RootContext);
|
|
172
|
+
const classes = clsx(
|
|
173
|
+
[styles[`${rootClassName}__button`]],
|
|
174
|
+
styles[actionElementIdentifier],
|
|
175
|
+
{
|
|
176
|
+
[styles[`${actionElementIdentifier}--disabled`]]: props.disabled
|
|
177
|
+
},
|
|
178
|
+
className
|
|
179
|
+
);
|
|
180
|
+
const ref = utils_composeRefs.composeRefs(context == null ? void 0 : context.buttonRef, forwardRef);
|
|
181
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
182
|
+
components_button_button.Button,
|
|
183
|
+
{
|
|
184
|
+
...!iconOnly || !props["aria-label"] ? { iconOnly: false, "aria-label": void 0 } : { iconOnly: true, "aria-label": props["aria-label"] },
|
|
185
|
+
ref,
|
|
186
|
+
variant: getButtonVariant(context == null ? void 0 : context.variant),
|
|
187
|
+
...props,
|
|
188
|
+
className: classes
|
|
189
|
+
}
|
|
190
|
+
) });
|
|
191
|
+
}
|
|
192
|
+
);
|
|
193
|
+
Button.displayName = "Card.Button";
|
|
194
|
+
const Link = React.forwardRef(
|
|
195
|
+
({ className, ...props }, forwardRef) => {
|
|
196
|
+
const context = React.useContext(RootContext);
|
|
197
|
+
const classes = clsx([styles[`${rootClassName}__link`]], styles[actionElementIdentifier], className);
|
|
198
|
+
const ref = utils_composeRefs.composeRefs(context == null ? void 0 : context.linkRef, forwardRef);
|
|
199
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components_link_link.Link, { ...props, ref, className: classes });
|
|
200
|
+
}
|
|
201
|
+
);
|
|
202
|
+
Link.displayName = "Card.Link";
|
|
203
|
+
const Line = React.forwardRef(({ className, ...props }, forwardRef) => {
|
|
204
|
+
const classes = clsx([styles[`${rootClassName}__line`]], className);
|
|
205
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components_box_box.Box, { width: "100%", p: "0", m: `${tokens_spacing_variables.teddySpacing50} 0`, ...props, ref: forwardRef, className: classes, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("hr", {}) });
|
|
206
|
+
});
|
|
207
|
+
const Card = Object.assign(Root, {
|
|
208
|
+
Root,
|
|
209
|
+
Heading,
|
|
210
|
+
Content,
|
|
211
|
+
Illustration,
|
|
212
|
+
Button,
|
|
213
|
+
Link,
|
|
214
|
+
Slot,
|
|
215
|
+
Line,
|
|
216
|
+
variantOptions,
|
|
217
|
+
insetOptions
|
|
218
|
+
});
|
|
219
|
+
exports.Card = Card;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const clsx = require("clsx");
|
|
6
|
+
const components_chip_chip = require("./chip.cjs");
|
|
7
|
+
require("../../assets/sprite.5636ec8e-teddy.svg");
|
|
8
|
+
const components_icon_icon = require("../icon/icon.cjs");
|
|
9
|
+
const Indicator = React.forwardRef(
|
|
10
|
+
({ className, ...props }, forwardRef) => {
|
|
11
|
+
const classes = clsx([components_chip_chip.styles[`${components_chip_chip.rootClassName}__indicator`]], className);
|
|
12
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: "checkmark", ...props, ref: forwardRef, className: classes });
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
Indicator.displayName = "Indicator";
|
|
16
|
+
exports.Indicator = Indicator;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const clsx = require("clsx");
|
|
6
|
+
const ToggleGroupPrimitive = require("@radix-ui/react-toggle-group");
|
|
7
|
+
const components_chip_chip = require("./chip.cjs");
|
|
8
|
+
const components_flex_flex = require("../flex/flex.cjs");
|
|
9
|
+
const components_chip_chipIndicator = require("./chip-indicator.cjs");
|
|
10
|
+
function _interopNamespaceDefault(e) {
|
|
11
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
12
|
+
if (e) {
|
|
13
|
+
for (const k in e) {
|
|
14
|
+
if (k !== "default") {
|
|
15
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: () => e[k]
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
n.default = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
const ToggleGroupPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(ToggleGroupPrimitive);
|
|
27
|
+
const Item = React.forwardRef(function Item2({ className, unavailable, ...props }, forwardRef) {
|
|
28
|
+
const context = React.useContext(components_chip_chip.RootContext);
|
|
29
|
+
const classes = clsx(
|
|
30
|
+
[
|
|
31
|
+
components_chip_chip.styles[`${components_chip_chip.rootClassName}__item`],
|
|
32
|
+
{
|
|
33
|
+
[components_chip_chip.styles[`${components_chip_chip.rootClassName}__item--${context == null ? void 0 : context.variant}`]]: context == null ? void 0 : context.variant,
|
|
34
|
+
[components_chip_chip.styles[`${components_chip_chip.rootClassName}__item--unavailable`]]: unavailable
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
className
|
|
38
|
+
);
|
|
39
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { gap: props.gap || "100", flexGrow: (context == null ? void 0 : context.fullWidth) ? "1" : "0", asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(ToggleGroupPrimitive__namespace.Item, { ...props, className: classes, ref: forwardRef, children: [
|
|
40
|
+
props.children,
|
|
41
|
+
(context == null ? void 0 : context.variant) === "filter" && /* @__PURE__ */ jsxRuntime.jsx(components_chip_chipIndicator.Indicator, {})
|
|
42
|
+
] }) });
|
|
43
|
+
});
|
|
44
|
+
Item.displayName = "Item";
|
|
45
|
+
exports.Item = Item;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const clsx = require("clsx");
|
|
6
|
+
const ToggleGroupPrimitive = require("@radix-ui/react-toggle-group");
|
|
7
|
+
const components_flex_flex = require("../flex/flex.cjs");
|
|
8
|
+
function _interopNamespaceDefault(e) {
|
|
9
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
10
|
+
if (e) {
|
|
11
|
+
for (const k in e) {
|
|
12
|
+
if (k !== "default") {
|
|
13
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: () => e[k]
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
n.default = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
const ToggleGroupPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(ToggleGroupPrimitive);
|
|
25
|
+
const styles = {
|
|
26
|
+
"teddy-chip__item": "_teddy-chip__item_1er2j_1",
|
|
27
|
+
"teddy-chip__item--unavailable": "_teddy-chip__item--unavailable_1er2j_33",
|
|
28
|
+
"teddy-chip__indicator": "_teddy-chip__indicator_1er2j_82"
|
|
29
|
+
};
|
|
30
|
+
const rootClassName = "teddy-chip";
|
|
31
|
+
const RootContext = React.createContext(void 0);
|
|
32
|
+
const Root = React.forwardRef(
|
|
33
|
+
({ className, children, fullWidth, variant, asChild, ...props }, forwardRef) => {
|
|
34
|
+
const classes = clsx([styles[`${rootClassName}`]], className);
|
|
35
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
36
|
+
RootContext.Provider,
|
|
37
|
+
{
|
|
38
|
+
value: { variant: variant || (props.type === "multiple" ? "filter" : "choice"), fullWidth },
|
|
39
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupPrimitive__namespace.Root, { ...props, ref: forwardRef, className: classes, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { gap: "200", ...asChild ? { asChild: true, as: void 0 } : { as: "div" }, children }) })
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
Root.displayName = "Root";
|
|
45
|
+
exports.Root = Root;
|
|
46
|
+
exports.RootContext = RootContext;
|
|
47
|
+
exports.rootClassName = rootClassName;
|
|
48
|
+
exports.styles = styles;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const components_chip_chip = require("./chip.cjs");
|
|
4
|
+
const components_chip_chipIndicator = require("./chip-indicator.cjs");
|
|
5
|
+
const components_chip_chipItem = require("./chip-item.cjs");
|
|
6
|
+
const Chip = Object.assign(components_chip_chip.Root, {
|
|
7
|
+
Item: components_chip_chipItem.Item,
|
|
8
|
+
Indicator: components_chip_chipIndicator.Indicator
|
|
9
|
+
});
|
|
10
|
+
exports.Chip = Chip;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const clsx = require("clsx");
|
|
6
|
+
const DrawerPrimitive = require("@radix-ui/react-dialog");
|
|
7
|
+
const drawer_module = require("../../drawer.module-w9nGK9pO.cjs");
|
|
8
|
+
const components_drawer_drawerRoot = require("./drawer-root.cjs");
|
|
9
|
+
require("../../assets/sprite.5636ec8e-teddy.svg");
|
|
10
|
+
const components_icon_icon = require("../icon/icon.cjs");
|
|
11
|
+
const components_button_button = require("../button/button.cjs");
|
|
12
|
+
function _interopNamespaceDefault(e) {
|
|
13
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
14
|
+
if (e) {
|
|
15
|
+
for (const k in e) {
|
|
16
|
+
if (k !== "default") {
|
|
17
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: () => e[k]
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
n.default = e;
|
|
26
|
+
return Object.freeze(n);
|
|
27
|
+
}
|
|
28
|
+
const DrawerPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(DrawerPrimitive);
|
|
29
|
+
const Close = React.forwardRef(
|
|
30
|
+
({ className, ...props }, forwardedRef) => {
|
|
31
|
+
const classes = clsx([drawer_module.styles[`${components_drawer_drawerRoot.rootClassName}__close`]], {
|
|
32
|
+
[drawer_module.styles[`${components_drawer_drawerRoot.rootClassName}__close--floating`]]: props.slot === "floating",
|
|
33
|
+
className
|
|
34
|
+
});
|
|
35
|
+
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: "tertiary-purple", iconOnly: true, "aria-label": props["aria-label"], children: /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: "close" }) }) });
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
Close.displayName = "Close";
|
|
39
|
+
exports.Close = Close;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const clsx = require("clsx");
|
|
6
|
+
const DrawerPrimitive = require("@radix-ui/react-dialog");
|
|
7
|
+
const drawer_module = require("../../drawer.module-w9nGK9pO.cjs");
|
|
8
|
+
const components_drawer_drawerRoot = require("./drawer-root.cjs");
|
|
9
|
+
const components_drawer_drawerOverlay = require("./drawer-overlay.cjs");
|
|
10
|
+
function _interopNamespaceDefault(e) {
|
|
11
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
12
|
+
if (e) {
|
|
13
|
+
for (const k in e) {
|
|
14
|
+
if (k !== "default") {
|
|
15
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: () => e[k]
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
n.default = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
const DrawerPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(DrawerPrimitive);
|
|
27
|
+
const InnerContent = React.forwardRef(
|
|
28
|
+
function InnerContent2({ children, className, ...props }, forwardedRef) {
|
|
29
|
+
const classes = clsx([drawer_module.styles[`${components_drawer_drawerRoot.rootClassName}__content`]], className);
|
|
30
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Content, { ...props, ref: forwardedRef, className: classes, children });
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
const Content = React.forwardRef(
|
|
34
|
+
({ forceMount, ...contentProps }, forwardedRef) => {
|
|
35
|
+
const hasOverlay = React.useContext(components_drawer_drawerOverlay.OverlayContext);
|
|
36
|
+
if (!hasOverlay)
|
|
37
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components_drawer_drawerOverlay.Overlay, { forceMount, children: /* @__PURE__ */ jsxRuntime.jsx(InnerContent, { ref: forwardedRef, ...contentProps }) });
|
|
38
|
+
return /* @__PURE__ */ jsxRuntime.jsx(InnerContent, { ref: forwardedRef, ...contentProps });
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
Content.displayName = "Content";
|
|
42
|
+
exports.Content = Content;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const clsx = require("clsx");
|
|
6
|
+
const DrawerPrimitive = require("@radix-ui/react-dialog");
|
|
7
|
+
const drawer_module = require("../../drawer.module-w9nGK9pO.cjs");
|
|
8
|
+
const components_drawer_drawerRoot = require("./drawer-root.cjs");
|
|
9
|
+
const components_text_text = require("../text/text.cjs");
|
|
10
|
+
function _interopNamespaceDefault(e) {
|
|
11
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
12
|
+
if (e) {
|
|
13
|
+
for (const k in e) {
|
|
14
|
+
if (k !== "default") {
|
|
15
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: () => e[k]
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
n.default = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
const DrawerPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(DrawerPrimitive);
|
|
27
|
+
const DescriptionContext = React.createContext(false);
|
|
28
|
+
const Description = React.forwardRef(
|
|
29
|
+
({ className, children, ...rest }, forwardedRef) => {
|
|
30
|
+
const classes = clsx([drawer_module.styles[`${components_drawer_drawerRoot.rootClassName}__description`]], className);
|
|
31
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Description, { className: classes, ref: forwardedRef, ...rest, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(components_text_text.Text, { children }) });
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
Description.displayName = "Description";
|
|
35
|
+
exports.Description = Description;
|
|
36
|
+
exports.DescriptionContext = DescriptionContext;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const clsx = require("clsx");
|
|
6
|
+
const drawer_module = require("../../drawer.module-w9nGK9pO.cjs");
|
|
7
|
+
const components_drawer_drawerRoot = require("./drawer-root.cjs");
|
|
8
|
+
const components_flex_flex = require("../flex/flex.cjs");
|
|
9
|
+
const Footer = React.forwardRef(
|
|
10
|
+
({ className, ...rest }, forwardedRef) => {
|
|
11
|
+
const classes = clsx([drawer_module.styles[`${components_drawer_drawerRoot.rootClassName}__footer`]], className);
|
|
12
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { mt: "auto", justify: "end", gap: "200", className: classes, ref: forwardedRef, ...rest });
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
Footer.displayName = "Footer";
|
|
16
|
+
exports.Footer = Footer;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const clsx = require("clsx");
|
|
6
|
+
const DrawerPrimitive = require("@radix-ui/react-dialog");
|
|
7
|
+
const drawer_module = require("../../drawer.module-w9nGK9pO.cjs");
|
|
8
|
+
const components_drawer_drawerRoot = require("./drawer-root.cjs");
|
|
9
|
+
function _interopNamespaceDefault(e) {
|
|
10
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
11
|
+
if (e) {
|
|
12
|
+
for (const k in e) {
|
|
13
|
+
if (k !== "default") {
|
|
14
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: () => e[k]
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
n.default = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
const DrawerPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(DrawerPrimitive);
|
|
26
|
+
const OverlayContext = React.createContext(false);
|
|
27
|
+
const Overlay = React.forwardRef(
|
|
28
|
+
({ className, forceMount, container, ...rest }, forwardedRef) => {
|
|
29
|
+
const classes = clsx(
|
|
30
|
+
[
|
|
31
|
+
drawer_module.styles[`${components_drawer_drawerRoot.rootClassName}__overlay`],
|
|
32
|
+
{
|
|
33
|
+
[drawer_module.styles[`${components_drawer_drawerRoot.rootClassName}__overlay--container`]]: container
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
className
|
|
37
|
+
);
|
|
38
|
+
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 }) }) });
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
Overlay.displayName = "Overlay";
|
|
42
|
+
exports.Overlay = Overlay;
|
|
43
|
+
exports.OverlayContext = OverlayContext;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const DrawerPrimitive = require("@radix-ui/react-dialog");
|
|
5
|
+
function _interopNamespaceDefault(e) {
|
|
6
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
7
|
+
if (e) {
|
|
8
|
+
for (const k in e) {
|
|
9
|
+
if (k !== "default") {
|
|
10
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
11
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: () => e[k]
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
n.default = e;
|
|
19
|
+
return Object.freeze(n);
|
|
20
|
+
}
|
|
21
|
+
const DrawerPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(DrawerPrimitive);
|
|
22
|
+
const rootClassName = "teddy-drawer";
|
|
23
|
+
function Root(props) {
|
|
24
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Root, { ...props });
|
|
25
|
+
}
|
|
26
|
+
Root.displayName = "Root";
|
|
27
|
+
exports.Root = Root;
|
|
28
|
+
exports.rootClassName = rootClassName;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const clsx = require("clsx");
|
|
6
|
+
const DrawerPrimitive = require("@radix-ui/react-dialog");
|
|
7
|
+
const drawer_module = require("../../drawer.module-w9nGK9pO.cjs");
|
|
8
|
+
const components_drawer_drawerRoot = require("./drawer-root.cjs");
|
|
9
|
+
const components_heading_heading = require("../heading/heading.cjs");
|
|
10
|
+
function _interopNamespaceDefault(e) {
|
|
11
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
12
|
+
if (e) {
|
|
13
|
+
for (const k in e) {
|
|
14
|
+
if (k !== "default") {
|
|
15
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: () => e[k]
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
n.default = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
const DrawerPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(DrawerPrimitive);
|
|
27
|
+
const Title = React.forwardRef(
|
|
28
|
+
({ className, asChild, children, variant, ...rest }, forwardedRef) => {
|
|
29
|
+
const classes = clsx([drawer_module.styles[`${components_drawer_drawerRoot.rootClassName}__title`]], className);
|
|
30
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Title, { className: classes, ref: forwardedRef, ...rest, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(components_heading_heading.Heading, { variant: variant ?? "title-300", ...asChild ? { asChild: true } : { as: "h2" }, children }) });
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
Title.displayName = "Title";
|
|
34
|
+
exports.Title = Title;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
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");
|
|
6
|
+
function _interopNamespaceDefault(e) {
|
|
7
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
8
|
+
if (e) {
|
|
9
|
+
for (const k in e) {
|
|
10
|
+
if (k !== "default") {
|
|
11
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: () => e[k]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
n.default = e;
|
|
20
|
+
return Object.freeze(n);
|
|
21
|
+
}
|
|
22
|
+
const DrawerPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(DrawerPrimitive);
|
|
23
|
+
const Trigger = React.forwardRef(
|
|
24
|
+
({ children, ...props }, forwardedRef) => /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Trigger, { ...props, ref: forwardedRef, asChild: true, children })
|
|
25
|
+
);
|
|
26
|
+
Trigger.displayName = "Trigger";
|
|
27
|
+
exports.Trigger = Trigger;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const components_drawer_drawerClose = require("./drawer-close.cjs");
|
|
4
|
+
const components_drawer_drawerContent = require("./drawer-content.cjs");
|
|
5
|
+
const components_drawer_drawerDescription = require("./drawer-description.cjs");
|
|
6
|
+
const components_drawer_drawerFooter = require("./drawer-footer.cjs");
|
|
7
|
+
const components_drawer_drawerOverlay = require("./drawer-overlay.cjs");
|
|
8
|
+
const components_drawer_drawerRoot = require("./drawer-root.cjs");
|
|
9
|
+
const components_drawer_drawerTitle = require("./drawer-title.cjs");
|
|
10
|
+
const components_drawer_drawerTrigger = require("./drawer-trigger.cjs");
|
|
11
|
+
const Drawer = Object.assign(components_drawer_drawerRoot.Root, {
|
|
12
|
+
Title: components_drawer_drawerTitle.Title,
|
|
13
|
+
Description: components_drawer_drawerDescription.Description,
|
|
14
|
+
Trigger: components_drawer_drawerTrigger.Trigger,
|
|
15
|
+
Overlay: components_drawer_drawerOverlay.Overlay,
|
|
16
|
+
Content: components_drawer_drawerContent.Content,
|
|
17
|
+
Footer: components_drawer_drawerFooter.Footer,
|
|
18
|
+
Close: components_drawer_drawerClose.Close
|
|
19
|
+
});
|
|
20
|
+
exports.Drawer = Drawer;
|