@vkzstudio/muza-ui 1.0.44 → 1.0.46
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.stories.d.ts.map +1 -1
- package/dist/components/Button/Button.stories.d.ts.map +1 -1
- package/dist/components/Card/Card.d.ts +63 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/Card.js +67 -0
- package/dist/components/Card/Card.stories.d.ts +13 -0
- package/dist/components/Card/Card.stories.d.ts.map +1 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/index.d.ts.map +1 -0
- package/dist/components/Carousel/Carousel.d.ts +140 -0
- package/dist/components/Carousel/Carousel.d.ts.map +1 -0
- package/dist/components/Carousel/Carousel.js +241 -0
- package/dist/components/Carousel/Carousel.stories.d.ts +13 -0
- package/dist/components/Carousel/Carousel.stories.d.ts.map +1 -0
- package/dist/components/Carousel/index.d.ts +2 -0
- package/dist/components/Carousel/index.d.ts.map +1 -0
- package/dist/components/DataTable/DataTable.d.ts +14 -5
- package/dist/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.js +39 -39
- package/dist/components/DataTable/DataTable.stories.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +38 -7
- package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.js +165 -163
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +3 -17
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -1
- package/dist/components/EdgeButton/EdgeButton.stories.d.ts.map +1 -1
- package/dist/components/ExpandableTable/ExpandableTable.d.ts +30 -11
- package/dist/components/ExpandableTable/ExpandableTable.d.ts.map +1 -1
- package/dist/components/ExpandableTable/ExpandableTable.js +100 -111
- package/dist/components/ExpandableTable/ExpandableTable.stories.d.ts +3 -1
- package/dist/components/ExpandableTable/ExpandableTable.stories.d.ts.map +1 -1
- package/dist/components/FileUpload/FileItem.d.ts +6 -0
- package/dist/components/FileUpload/FileItem.d.ts.map +1 -1
- package/dist/components/FileUpload/FileItem.js +38 -41
- package/dist/components/FileUpload/FileUpload.d.ts +32 -0
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/components/FileUpload/FileUpload.js +87 -83
- package/dist/components/FileUpload/FileUpload.stories.d.ts +1 -0
- package/dist/components/FileUpload/FileUpload.stories.d.ts.map +1 -1
- package/dist/components/Flex/Flex.d.ts +373 -2
- package/dist/components/Flex/Flex.d.ts.map +1 -1
- package/dist/components/Flex/Flex.js +61 -63
- package/dist/components/Flex/Flex.stories.d.ts.map +1 -1
- package/dist/components/Icons/CustomBadges.d.ts +14 -0
- package/dist/components/Icons/CustomBadges.d.ts.map +1 -0
- package/dist/components/Icons/CustomBadges.js +334 -0
- package/dist/components/Icons/CustomIcons.d.ts +24 -0
- package/dist/components/Icons/CustomIcons.d.ts.map +1 -1
- package/dist/components/Icons/CustomIcons.js +88 -42
- package/dist/components/Icons/CustomLogos.d.ts +29 -0
- package/dist/components/Icons/CustomLogos.d.ts.map +1 -0
- package/dist/components/Icons/CustomLogos.js +593 -0
- package/dist/components/Icons/Icons.stories.d.ts.map +1 -1
- package/dist/components/Icons/LogosAndBadges.stories.d.ts +7 -0
- package/dist/components/Icons/LogosAndBadges.stories.d.ts.map +1 -0
- package/dist/components/Icons/index.d.ts +2 -0
- package/dist/components/Icons/index.d.ts.map +1 -1
- package/dist/components/LanguageSwitcher/LanguageSwitcher.d.ts +24 -1
- package/dist/components/LanguageSwitcher/LanguageSwitcher.d.ts.map +1 -1
- package/dist/components/LanguageSwitcher/LanguageSwitcher.js +71 -52
- package/dist/components/LanguageSwitcher/LanguageSwitcher.stories.d.ts +2 -0
- package/dist/components/LanguageSwitcher/LanguageSwitcher.stories.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +18 -17
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts.map +1 -1
- package/dist/components/MuzaUIProvider/MuzaUIProvider.stories.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/Pagination.stories.d.ts.map +1 -1
- package/dist/components/Progress/Progress.d.ts +49 -0
- package/dist/components/Progress/Progress.d.ts.map +1 -0
- package/dist/components/Progress/Progress.js +64 -0
- package/dist/components/Progress/Progress.stories.d.ts +13 -0
- package/dist/components/Progress/Progress.stories.d.ts.map +1 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Progress/index.d.ts.map +1 -0
- package/dist/components/Reorderable/Reorderable.stories.d.ts.map +1 -1
- package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.d.ts +266 -0
- package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.d.ts.map +1 -0
- package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.examples.d.ts +39 -0
- package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.examples.d.ts.map +1 -0
- package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.js +134 -0
- package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.stories.d.ts +14 -0
- package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.stories.d.ts.map +1 -0
- package/dist/components/ResponsiveLayoutTable/index.d.ts +2 -0
- package/dist/components/ResponsiveLayoutTable/index.d.ts.map +1 -0
- package/dist/components/Select/Select.d.ts +20 -7
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.js +123 -92
- package/dist/components/Select/Select.stories.d.ts +1 -0
- package/dist/components/Select/Select.stories.d.ts.map +1 -1
- package/dist/components/Select/utils.d.ts +1 -0
- package/dist/components/Select/utils.d.ts.map +1 -1
- package/dist/components/Select/utils.js +5 -2
- package/dist/components/Sheet/Sheet.d.ts +89 -0
- package/dist/components/Sheet/Sheet.d.ts.map +1 -0
- package/dist/components/Sheet/Sheet.js +189 -0
- package/dist/components/Sheet/Sheet.stories.d.ts +20 -0
- package/dist/components/Sheet/Sheet.stories.d.ts.map +1 -0
- package/dist/components/Sheet/index.d.ts +2 -0
- package/dist/components/Sheet/index.d.ts.map +1 -0
- package/dist/components/Slider/Slider.d.ts +65 -0
- package/dist/components/Slider/Slider.d.ts.map +1 -0
- package/dist/components/Slider/Slider.js +134 -0
- package/dist/components/Slider/Slider.stories.d.ts +12 -0
- package/dist/components/Slider/Slider.stories.d.ts.map +1 -0
- package/dist/components/Slider/index.d.ts +2 -0
- package/dist/components/Slider/index.d.ts.map +1 -0
- package/dist/components/TextEditor/TextEditor.stories.d.ts.map +1 -1
- package/dist/components/Toggle/Toggle.js +1 -1
- package/dist/components/ToggleCheckButton/ToggleCheckButton.d.ts +69 -0
- package/dist/components/ToggleCheckButton/ToggleCheckButton.d.ts.map +1 -0
- package/dist/components/ToggleCheckButton/ToggleCheckButton.js +64 -0
- package/dist/components/ToggleCheckButton/ToggleCheckButton.stories.d.ts +8 -0
- package/dist/components/ToggleCheckButton/ToggleCheckButton.stories.d.ts.map +1 -0
- package/dist/components/ToggleCheckButton/index.d.ts +2 -0
- package/dist/components/ToggleCheckButton/index.d.ts.map +1 -0
- package/dist/components/Typography/Typography.stories.d.ts.map +1 -1
- package/dist/components/WebCheckoutNav/WebCheckoutNav.examples.d.ts +19 -0
- package/dist/components/WebCheckoutNav/WebCheckoutNav.examples.d.ts.map +1 -0
- package/dist/components/WebCheckoutNav/WebCheckoutNav.stories.d.ts +8 -0
- package/dist/components/WebCheckoutNav/WebCheckoutNav.stories.d.ts.map +1 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/globals.css +1 -0
- package/dist/hooks/use-is-breakpoint.d.ts +11 -0
- package/dist/hooks/use-is-breakpoint.d.ts.map +1 -1
- package/dist/hooks/use-is-breakpoint.js +24 -13
- package/dist/index.js +316 -262
- package/dist/muza-ui.css +1 -1
- package/dist/styles/primitives.css +5 -1
- package/dist/styles/token-colors.css +221 -12
- package/dist/styles/token-sizes.css +636 -267
- package/dist/styles/typography.css +36 -7
- package/dist/translations/locales/cs.d.ts.map +1 -1
- package/dist/translations/locales/cs.js +17 -0
- package/dist/translations/locales/en.d.ts.map +1 -1
- package/dist/translations/locales/en.js +17 -0
- package/dist/translations/locales/sk.d.ts.map +1 -1
- package/dist/translations/locales/sk.js +19 -2
- package/dist/translations/types.d.ts +42 -0
- package/dist/translations/types.d.ts.map +1 -1
- package/dist/utils/cn.d.ts.map +1 -1
- package/dist/utils/cn.js +24 -7
- package/package.json +6 -3
|
@@ -1,111 +1,140 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { triggerWrapperVariants as
|
|
4
|
-
import { useMuzaTranslations as
|
|
5
|
-
import { FormField as
|
|
6
|
-
import { Typography as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { cn as
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
import { jsx as t, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import f, { forwardRef as G, useId as L, useMemo as U, useRef as S, useEffect as T } from "react";
|
|
3
|
+
import { triggerWrapperVariants as H } from "./utils.js";
|
|
4
|
+
import { useMuzaTranslations as J } from "../../translations/TranslationContext.js";
|
|
5
|
+
import { FormField as K } from "../FormField/FormField.js";
|
|
6
|
+
import { Typography as o } from "../Typography/Typography.js";
|
|
7
|
+
import { Flex as Q } from "../Flex/Flex.js";
|
|
8
|
+
import { DropdownMenu as X, DropdownMenuTrigger as Y, DropdownMenuContent as Z, DropdownMenuRadioGroup as ee, DropdownMenuRadioItem as te } from "../DropdownMenu/DropdownMenu.js";
|
|
9
|
+
import { cn as D } from "../../utils/cn.js";
|
|
10
|
+
import { AltArrowUpOutline as re } from "@solar-icons/react-perf";
|
|
11
|
+
const ne = G(
|
|
12
|
+
(I, h) => {
|
|
13
|
+
const g = J(), {
|
|
14
|
+
label: x,
|
|
15
|
+
hint: b,
|
|
16
|
+
error: w,
|
|
17
|
+
options: a,
|
|
18
|
+
onChange: d,
|
|
19
|
+
value: n,
|
|
20
|
+
disabled: s,
|
|
21
|
+
prefix: y,
|
|
22
|
+
size: O,
|
|
23
|
+
placeholder: W,
|
|
24
|
+
emptyMessage: A,
|
|
25
|
+
shouldScrollToSelectedOption: v,
|
|
26
|
+
collisionPadding: C,
|
|
27
|
+
required: N,
|
|
28
|
+
disableRequiredAsterisk: F,
|
|
29
|
+
labelExtra: V,
|
|
30
|
+
infoTooltip: q
|
|
31
|
+
} = I, R = W ?? g.select.placeholder, E = A ?? g.select.noOptions, M = L(), P = x ? `${M}-label` : void 0, $ = b ? `${M}-hint` : void 0, r = n ? a.find((e) => e.value === n) : void 0, j = U(() => r ? r.description ? /* @__PURE__ */ u(Q, { flex: 1, direction: "column", className: "min-w-0 text-left", children: [
|
|
32
|
+
/* @__PURE__ */ t(
|
|
33
|
+
o,
|
|
34
34
|
{
|
|
35
|
-
size: "
|
|
36
|
-
|
|
35
|
+
size: "sm",
|
|
36
|
+
variant: "title",
|
|
37
37
|
weight: "medium",
|
|
38
38
|
component: "span",
|
|
39
|
-
|
|
39
|
+
className: "truncate text-comp-select-text-primary",
|
|
40
|
+
children: r.label
|
|
40
41
|
}
|
|
41
|
-
)
|
|
42
|
-
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ t(
|
|
44
|
+
o,
|
|
43
45
|
{
|
|
44
|
-
size: "
|
|
45
|
-
|
|
46
|
+
size: "sm",
|
|
47
|
+
variant: "body",
|
|
46
48
|
weight: "regular",
|
|
47
49
|
component: "span",
|
|
48
|
-
|
|
50
|
+
className: "truncate text-comp-select-text-primary",
|
|
51
|
+
children: r.description
|
|
49
52
|
}
|
|
50
|
-
)
|
|
51
|
-
|
|
53
|
+
)
|
|
54
|
+
] }) : typeof r.label != "function" ? /* @__PURE__ */ t(
|
|
55
|
+
o,
|
|
56
|
+
{
|
|
57
|
+
size: "input",
|
|
58
|
+
className: "grow-1 fix-y-text truncate text-left text-comp-select-text-primary",
|
|
59
|
+
weight: "medium",
|
|
60
|
+
component: "span",
|
|
61
|
+
children: r.label
|
|
62
|
+
}
|
|
63
|
+
) : r.label : /* @__PURE__ */ t(
|
|
64
|
+
o,
|
|
65
|
+
{
|
|
66
|
+
size: "input",
|
|
67
|
+
className: "grow-1 fix-y-text truncate text-left text-comp-select-text-placeholder",
|
|
68
|
+
weight: "regular",
|
|
69
|
+
component: "span",
|
|
70
|
+
children: R
|
|
71
|
+
}
|
|
72
|
+
), [r, R]), [l, k] = f.useState(!1), [z, _] = f.useState(0), p = f.useRef(!1), B = S(null), m = S({}), i = (typeof h == "function" ? null : h) ?? B;
|
|
52
73
|
return T(() => {
|
|
53
74
|
const e = () => {
|
|
54
|
-
|
|
75
|
+
i.current && _(i.current.offsetWidth);
|
|
55
76
|
};
|
|
56
77
|
e();
|
|
57
|
-
const
|
|
58
|
-
return
|
|
59
|
-
|
|
78
|
+
const c = new ResizeObserver(e);
|
|
79
|
+
return i.current && c.observe(i.current), () => {
|
|
80
|
+
c.disconnect();
|
|
60
81
|
};
|
|
61
|
-
}, [
|
|
82
|
+
}, [i]), T(() => {
|
|
62
83
|
var e;
|
|
63
|
-
|
|
64
|
-
}, [
|
|
65
|
-
|
|
84
|
+
l && n && m.current[n] && v && ((e = m.current[n]) == null || e.scrollIntoView({ block: "nearest" }));
|
|
85
|
+
}, [l, v, n]), /* @__PURE__ */ t(
|
|
86
|
+
K,
|
|
66
87
|
{
|
|
67
|
-
label:
|
|
68
|
-
hint:
|
|
69
|
-
error:
|
|
70
|
-
required:
|
|
71
|
-
disableRequiredAsterisk:
|
|
72
|
-
labelId:
|
|
73
|
-
hintId:
|
|
74
|
-
labelExtra:
|
|
75
|
-
infoTooltip:
|
|
88
|
+
label: x,
|
|
89
|
+
hint: b,
|
|
90
|
+
error: w,
|
|
91
|
+
required: N,
|
|
92
|
+
disableRequiredAsterisk: F,
|
|
93
|
+
labelId: P,
|
|
94
|
+
hintId: $,
|
|
95
|
+
labelExtra: V,
|
|
96
|
+
infoTooltip: q,
|
|
76
97
|
className: "flex-1",
|
|
77
|
-
children: /* @__PURE__ */
|
|
78
|
-
|
|
98
|
+
children: /* @__PURE__ */ u(
|
|
99
|
+
X,
|
|
79
100
|
{
|
|
80
101
|
onOpenChange: (e) => {
|
|
81
|
-
|
|
102
|
+
k(e);
|
|
82
103
|
},
|
|
83
104
|
children: [
|
|
84
|
-
/* @__PURE__ */ t(
|
|
105
|
+
/* @__PURE__ */ t(Y, { disabled: s, asChild: !0, children: /* @__PURE__ */ t(
|
|
85
106
|
"button",
|
|
86
107
|
{
|
|
87
|
-
ref:
|
|
108
|
+
ref: i,
|
|
88
109
|
type: "button",
|
|
89
110
|
role: "input",
|
|
90
111
|
tabIndex: 0,
|
|
91
|
-
disabled:
|
|
92
|
-
"aria-required":
|
|
93
|
-
className:
|
|
94
|
-
|
|
95
|
-
|
|
112
|
+
disabled: s,
|
|
113
|
+
"aria-required": N,
|
|
114
|
+
className: D(
|
|
115
|
+
H({
|
|
116
|
+
size: O,
|
|
117
|
+
error: w,
|
|
118
|
+
expanded: l,
|
|
119
|
+
hasDescription: !!(r != null && r.description)
|
|
120
|
+
})
|
|
121
|
+
),
|
|
122
|
+
children: /* @__PURE__ */ u("div", { className: "flex min-w-0 flex-1 items-center gap-sm", children: [
|
|
123
|
+
y && /* @__PURE__ */ t(
|
|
96
124
|
"span",
|
|
97
125
|
{
|
|
98
|
-
className:
|
|
99
|
-
children:
|
|
126
|
+
className: s ? "text-comp-select-icon-disabled" : "text-comp-select-icon-brand-def",
|
|
127
|
+
children: y
|
|
100
128
|
}
|
|
101
129
|
),
|
|
102
|
-
|
|
130
|
+
j,
|
|
103
131
|
/* @__PURE__ */ t(
|
|
104
|
-
|
|
132
|
+
re,
|
|
105
133
|
{
|
|
106
|
-
className:
|
|
134
|
+
className: D(
|
|
107
135
|
"transition-transform duration-200",
|
|
108
|
-
|
|
136
|
+
l ? "rotate-0" : "rotate-180",
|
|
137
|
+
s ? "text-comp-select-icon-disabled" : "text-comp-select-icon-brand-def"
|
|
109
138
|
)
|
|
110
139
|
}
|
|
111
140
|
)
|
|
@@ -113,40 +142,42 @@ const te = _(
|
|
|
113
142
|
}
|
|
114
143
|
) }),
|
|
115
144
|
/* @__PURE__ */ t(
|
|
116
|
-
|
|
145
|
+
Z,
|
|
117
146
|
{
|
|
118
147
|
className: "mt-1",
|
|
119
148
|
style: {
|
|
120
|
-
width:
|
|
149
|
+
width: z > 0 ? `${z}px` : void 0
|
|
121
150
|
},
|
|
151
|
+
align: "center",
|
|
122
152
|
onCloseAutoFocus: (e) => {
|
|
123
|
-
|
|
153
|
+
p.current || e.preventDefault(), p.current = !1;
|
|
124
154
|
},
|
|
125
|
-
collisionPadding:
|
|
126
|
-
children:
|
|
127
|
-
|
|
155
|
+
collisionPadding: C,
|
|
156
|
+
children: a.length === 0 ? /* @__PURE__ */ t("div", { className: "px-lg py-md", role: "presentation", children: /* @__PURE__ */ t(
|
|
157
|
+
o,
|
|
128
158
|
{
|
|
129
159
|
component: "span",
|
|
130
160
|
size: "input",
|
|
131
161
|
weight: "regular",
|
|
132
162
|
className: "text-comp-select-text-secondary",
|
|
133
|
-
children:
|
|
163
|
+
children: E
|
|
134
164
|
}
|
|
135
165
|
) }) : /* @__PURE__ */ t(
|
|
136
|
-
|
|
166
|
+
ee,
|
|
137
167
|
{
|
|
138
|
-
value:
|
|
168
|
+
value: n,
|
|
139
169
|
onValueChange: (e) => {
|
|
140
|
-
|
|
170
|
+
p.current = !0, d == null || d(e);
|
|
141
171
|
},
|
|
142
|
-
children:
|
|
143
|
-
|
|
172
|
+
children: a.map((e) => /* @__PURE__ */ t(
|
|
173
|
+
te,
|
|
144
174
|
{
|
|
145
175
|
value: e.value.toString(),
|
|
146
176
|
disabled: e.disabled,
|
|
147
177
|
icon: e.icon,
|
|
148
|
-
|
|
149
|
-
|
|
178
|
+
description: e.description,
|
|
179
|
+
ref: (c) => {
|
|
180
|
+
m.current[e.value] = c;
|
|
150
181
|
},
|
|
151
182
|
children: e.label
|
|
152
183
|
},
|
|
@@ -163,7 +194,7 @@ const te = _(
|
|
|
163
194
|
);
|
|
164
195
|
}
|
|
165
196
|
);
|
|
166
|
-
|
|
197
|
+
ne.displayName = "Select";
|
|
167
198
|
export {
|
|
168
|
-
|
|
199
|
+
ne as Select
|
|
169
200
|
};
|
|
@@ -15,5 +15,6 @@ export declare const Interactive: Story;
|
|
|
15
15
|
export declare const WithPrefix: Story;
|
|
16
16
|
export declare const WithIconsInOptions: Story;
|
|
17
17
|
export declare const WithDisabledOptions: Story;
|
|
18
|
+
export declare const TwoLine: Story;
|
|
18
19
|
export declare const NoOptions: Story;
|
|
19
20
|
//# sourceMappingURL=Select.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAS3D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAS3D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAoI7B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AA6BpC,eAAO,MAAM,OAAO,EAAE,KAwBrB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KA0B9B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KA0BvB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAwB/B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KA0BtB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KA0BtB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KA6DtB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KA0C7B,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAgCzB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAyBxB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAqDhC,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAkCjC,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAoDrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAqBvB,CAAA"}
|
|
@@ -3,5 +3,6 @@ export declare const triggerWrapperVariants: (props?: ({
|
|
|
3
3
|
error?: boolean | null | undefined;
|
|
4
4
|
expanded?: boolean | null | undefined;
|
|
5
5
|
hasIcon?: boolean | null | undefined;
|
|
6
|
+
hasDescription?: boolean | null | undefined;
|
|
6
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
8
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Select/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Select/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB;;;;;;8EAkClC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cva as e } from "class-variance-authority";
|
|
2
|
-
const
|
|
2
|
+
const r = e(
|
|
3
3
|
[
|
|
4
4
|
"flex w-full cursor-pointer items-center gap-sm rounded-full border border-comp-select-stroke-def",
|
|
5
5
|
"overflow-hidden bg-comp-select-fill-def whitespace-nowrap focus-visible-default transition-colors",
|
|
@@ -23,6 +23,9 @@ const o = e(
|
|
|
23
23
|
},
|
|
24
24
|
hasIcon: {
|
|
25
25
|
false: "pl-comp-select-p-large"
|
|
26
|
+
},
|
|
27
|
+
hasDescription: {
|
|
28
|
+
true: "py-sm"
|
|
26
29
|
}
|
|
27
30
|
},
|
|
28
31
|
defaultVariants: {
|
|
@@ -32,5 +35,5 @@ const o = e(
|
|
|
32
35
|
}
|
|
33
36
|
);
|
|
34
37
|
export {
|
|
35
|
-
|
|
38
|
+
r as triggerWrapperVariants
|
|
36
39
|
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
4
|
+
/**
|
|
5
|
+
* Props for the Sheet root component. Controls open state and modality.
|
|
6
|
+
* Extends Radix Dialog Root props.
|
|
7
|
+
*/
|
|
8
|
+
export interface SheetProps extends React.ComponentProps<typeof SheetPrimitive.Root> {
|
|
9
|
+
/** Controlled open state of the sheet. Pair with `onOpenChange` for controlled usage. */
|
|
10
|
+
open?: boolean;
|
|
11
|
+
/** Initial open state for uncontrolled usage. @default false */
|
|
12
|
+
defaultOpen?: boolean;
|
|
13
|
+
/** Fires when the open state changes. Receives the new open state. */
|
|
14
|
+
onOpenChange?: (open: boolean) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Controls whether the sheet blocks interaction with page content behind it.
|
|
17
|
+
* When `true`, renders a backdrop overlay and traps focus inside the sheet.
|
|
18
|
+
* @default true
|
|
19
|
+
*/
|
|
20
|
+
modal?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare const Sheet: React.FC<SheetProps>;
|
|
23
|
+
declare const SheetTrigger: import('react').ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
24
|
+
declare const SheetPortal: import('react').FC<SheetPrimitive.DialogPortalProps>;
|
|
25
|
+
declare const SheetClose: import('react').ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
26
|
+
declare const SheetTitle: import('react').ForwardRefExoticComponent<SheetPrimitive.DialogTitleProps & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
27
|
+
declare const SheetDescription: import('react').ForwardRefExoticComponent<SheetPrimitive.DialogDescriptionProps & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
28
|
+
declare const SheetOverlay: import('react').ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
29
|
+
export declare const sheetContentVariants: (props?: ({
|
|
30
|
+
side?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
31
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
32
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
33
|
+
/**
|
|
34
|
+
* Props for the SheetContent component. Renders the slide-out panel with
|
|
35
|
+
* backdrop and side-aware slide-in/out animations.
|
|
36
|
+
*/
|
|
37
|
+
export interface SheetContentProps extends ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, Omit<VariantProps<typeof sheetContentVariants>, 'side' | 'size'> {
|
|
38
|
+
/**
|
|
39
|
+
* Edge of the viewport the sheet slides in from. Determines the slide
|
|
40
|
+
* direction and which corners are rounded.
|
|
41
|
+
* @default 'right'
|
|
42
|
+
*/
|
|
43
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
44
|
+
/**
|
|
45
|
+
* Controls panel size — width for `left`/`right` sides, height for
|
|
46
|
+
* `top`/`bottom` sides.
|
|
47
|
+
* @default 'medium'
|
|
48
|
+
*/
|
|
49
|
+
size?: 'small' | 'medium' | 'large';
|
|
50
|
+
}
|
|
51
|
+
declare const SheetContent: import('react').ForwardRefExoticComponent<SheetContentProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
52
|
+
/**
|
|
53
|
+
* Props for the SheetHeader component. Renders a styled header with an
|
|
54
|
+
* optional icon, an accessible title (rendered via Radix `Dialog.Title`), and
|
|
55
|
+
* a close button. Extends `<div>` attributes (without `title`, which is
|
|
56
|
+
* repurposed for the sheet title content).
|
|
57
|
+
*/
|
|
58
|
+
export interface SheetHeaderProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
59
|
+
/** Optional icon element displayed before the title. */
|
|
60
|
+
icon?: ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* Sheet title content. Falls back to `children` when not provided so the
|
|
63
|
+
* common case of `<SheetHeader>Title</SheetHeader>` keeps working.
|
|
64
|
+
*/
|
|
65
|
+
title?: ReactNode;
|
|
66
|
+
/** Hides the close button in the header. @default false */
|
|
67
|
+
hideCloseButton?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Accessible label for the close button. Falls back to the
|
|
70
|
+
* `sheet.closeAriaLabel` translation (English default: `'Close'`).
|
|
71
|
+
*/
|
|
72
|
+
closeAriaLabel?: string;
|
|
73
|
+
}
|
|
74
|
+
declare const SheetHeader: import('react').ForwardRefExoticComponent<SheetHeaderProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
75
|
+
/**
|
|
76
|
+
* Props for the SheetBody component. Scrollable main content area rendered
|
|
77
|
+
* between `SheetHeader` and `SheetFooter`. Extends standard `<div>` attributes.
|
|
78
|
+
*/
|
|
79
|
+
export type SheetBodyProps = ComponentPropsWithoutRef<'div'>;
|
|
80
|
+
declare const SheetBody: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
81
|
+
/**
|
|
82
|
+
* Props for the SheetFooter component. Renders a fixed footer area for action
|
|
83
|
+
* buttons with a top border separating it from `SheetBody`. Extends standard
|
|
84
|
+
* `<div>` attributes.
|
|
85
|
+
*/
|
|
86
|
+
export type SheetFooterProps = ComponentPropsWithoutRef<'div'>;
|
|
87
|
+
declare const SheetFooter: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
88
|
+
export { Sheet, SheetPortal, SheetOverlay, SheetClose, SheetTrigger, SheetContent, SheetHeader, SheetBody, SheetFooter, SheetTitle, SheetDescription, };
|
|
89
|
+
//# sourceMappingURL=Sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sheet.d.ts","sourceRoot":"","sources":["../../../src/components/Sheet/Sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAE7B,KAAK,SAAS,EAEf,MAAM,OAAO,CAAA;AACd,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAOjE;;;GAGG;AACH,MAAM,WAAW,UACf,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC;IACxD,yFAAyF;IACzF,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,gEAAgE;IAChE,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,sEAAsE;IACtE,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAAuB,CAAA;AACvD,QAAA,MAAM,YAAY,iIAAyB,CAAA;AAC3C,QAAA,MAAM,WAAW,sDAAwB,CAAA;AACzC,QAAA,MAAM,UAAU,+HAAuB,CAAA;AACvC,QAAA,MAAM,UAAU,gIAAuB,CAAA;AACvC,QAAA,MAAM,gBAAgB,wIAA6B,CAAA;AAEnD,QAAA,MAAM,YAAY,2LAYhB,CAAA;AAGF,eAAO,MAAM,oBAAoB;;;8EAuDhC,CAAA;AAED;;;GAGG;AACH,MAAM,WAAW,iBACf,SAAQ,wBAAwB,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,EAC7D,IAAI,CAAC,YAAY,CAAC,OAAO,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAClE;;;;OAIG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;IAC1C;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;CACpC;AAED,QAAA,MAAM,YAAY,8GAchB,CAAA;AAGF;;;;;GAKG;AACH,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACtD,wDAAwD;IACxD,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,2DAA2D;IAC3D,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,QAAA,MAAM,WAAW,6GAyDhB,CAAA;AAGD;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAE5D,QAAA,MAAM,SAAS,2MAed,CAAA;AAGD;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAE9D,QAAA,MAAM,WAAW,2MAgBhB,CAAA;AAGD,OAAO,EACL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,SAAS,EACT,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,CAAA"}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { jsx as o, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as l } from "react";
|
|
3
|
+
import * as e from "@radix-ui/react-dialog";
|
|
4
|
+
import { cva as g } from "class-variance-authority";
|
|
5
|
+
import { typographyVariants as y } from "../Typography/Typography.js";
|
|
6
|
+
import { useMuzaTranslations as x } from "../../translations/TranslationContext.js";
|
|
7
|
+
import { cn as i } from "../../utils/cn.js";
|
|
8
|
+
import { Flex as n } from "../Flex/Flex.js";
|
|
9
|
+
import { XClose as N } from "../Icons/CustomIcons.js";
|
|
10
|
+
const P = e.Root, B = e.Trigger, v = e.Portal, H = e.Close, R = e.Title, M = e.Description, c = l(({ className: a, ...t }, s) => /* @__PURE__ */ o(
|
|
11
|
+
e.Overlay,
|
|
12
|
+
{
|
|
13
|
+
ref: s,
|
|
14
|
+
className: i(
|
|
15
|
+
"fixed inset-0 z-50 bg-surface-base-overlay data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
|
|
16
|
+
a
|
|
17
|
+
),
|
|
18
|
+
...t
|
|
19
|
+
}
|
|
20
|
+
));
|
|
21
|
+
c.displayName = e.Overlay.displayName;
|
|
22
|
+
const w = g(
|
|
23
|
+
"fixed z-50 flex flex-col bg-comp-sheet-bg-def text-comp-sheet-text-def shadow-lg transition ease-in-out outline-none data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500",
|
|
24
|
+
{
|
|
25
|
+
variants: {
|
|
26
|
+
side: {
|
|
27
|
+
top: "inset-x-0 top-0 rounded-b-comp-sheet-radius border-b border-stroke-base-primary data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
28
|
+
bottom: "inset-x-0 bottom-0 rounded-t-comp-sheet-radius border-t border-stroke-base-primary data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
|
|
29
|
+
left: "inset-y-0 left-0 h-full rounded-r-comp-sheet-radius border-r border-stroke-base-primary data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",
|
|
30
|
+
right: "inset-y-0 right-0 h-full rounded-l-comp-sheet-radius border-l border-stroke-base-primary data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right"
|
|
31
|
+
},
|
|
32
|
+
size: {
|
|
33
|
+
small: "",
|
|
34
|
+
medium: "",
|
|
35
|
+
large: ""
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
compoundVariants: [
|
|
39
|
+
{
|
|
40
|
+
side: ["left", "right"],
|
|
41
|
+
size: "small",
|
|
42
|
+
className: "w-full max-w-comp-sheet-w-sm"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
side: ["left", "right"],
|
|
46
|
+
size: "medium",
|
|
47
|
+
className: "w-full max-w-comp-sheet-w-md"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
side: ["left", "right"],
|
|
51
|
+
size: "large",
|
|
52
|
+
className: "w-full max-w-comp-sheet-w-lg"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
side: ["top", "bottom"],
|
|
56
|
+
size: "small",
|
|
57
|
+
className: "h-comp-sheet-h-sm"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
side: ["top", "bottom"],
|
|
61
|
+
size: "medium",
|
|
62
|
+
className: "h-comp-sheet-h-md"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
side: ["top", "bottom"],
|
|
66
|
+
size: "large",
|
|
67
|
+
className: "h-comp-sheet-h-lg"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
defaultVariants: {
|
|
71
|
+
side: "right",
|
|
72
|
+
size: "medium"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
), z = l(({ className: a, children: t, side: s = "right", size: r = "medium", ...m }, d) => /* @__PURE__ */ p(v, { children: [
|
|
76
|
+
/* @__PURE__ */ o(c, {}),
|
|
77
|
+
/* @__PURE__ */ o(
|
|
78
|
+
e.Content,
|
|
79
|
+
{
|
|
80
|
+
ref: d,
|
|
81
|
+
className: i(w({ side: s, size: r }), a),
|
|
82
|
+
...m,
|
|
83
|
+
children: t
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
] }));
|
|
87
|
+
z.displayName = e.Content.displayName;
|
|
88
|
+
const S = l(
|
|
89
|
+
({
|
|
90
|
+
className: a,
|
|
91
|
+
icon: t,
|
|
92
|
+
children: s,
|
|
93
|
+
title: r,
|
|
94
|
+
hideCloseButton: m = !1,
|
|
95
|
+
closeAriaLabel: d,
|
|
96
|
+
...h
|
|
97
|
+
}, f) => {
|
|
98
|
+
const u = x(), b = d ?? u.sheet.closeAriaLabel;
|
|
99
|
+
return /* @__PURE__ */ p(
|
|
100
|
+
n,
|
|
101
|
+
{
|
|
102
|
+
ref: f,
|
|
103
|
+
align: "center",
|
|
104
|
+
gap: "lg",
|
|
105
|
+
className: i(
|
|
106
|
+
"border-b border-stroke-base-primary px-comp-sheet-p py-comp-sheet-p-ver-def",
|
|
107
|
+
a
|
|
108
|
+
),
|
|
109
|
+
...h,
|
|
110
|
+
children: [
|
|
111
|
+
t && /* @__PURE__ */ o("span", { className: "text-surface-brand-primary [&>svg]:size-icon-medium", children: t }),
|
|
112
|
+
/* @__PURE__ */ o(
|
|
113
|
+
e.Title,
|
|
114
|
+
{
|
|
115
|
+
className: i(
|
|
116
|
+
"text-text-primary min-w-0 flex-1",
|
|
117
|
+
y({
|
|
118
|
+
variant: "title",
|
|
119
|
+
size: "md",
|
|
120
|
+
weight: "medium",
|
|
121
|
+
fixY: !0
|
|
122
|
+
})
|
|
123
|
+
),
|
|
124
|
+
children: r ?? s
|
|
125
|
+
}
|
|
126
|
+
),
|
|
127
|
+
!m && /* @__PURE__ */ o(
|
|
128
|
+
e.Close,
|
|
129
|
+
{
|
|
130
|
+
className: "shrink-0 cursor-pointer transition-opacity focus-visible:focus-default disabled:pointer-events-none",
|
|
131
|
+
"aria-label": b,
|
|
132
|
+
children: /* @__PURE__ */ o(N, { className: "size-icon-medium" })
|
|
133
|
+
}
|
|
134
|
+
)
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
);
|
|
140
|
+
S.displayName = "SheetHeader";
|
|
141
|
+
const C = l(
|
|
142
|
+
({ className: a, children: t, ...s }, r) => /* @__PURE__ */ o(
|
|
143
|
+
n,
|
|
144
|
+
{
|
|
145
|
+
ref: r,
|
|
146
|
+
direction: "column",
|
|
147
|
+
flex: 1,
|
|
148
|
+
className: i(
|
|
149
|
+
"min-h-0 gap-comp-sheet-gap overflow-y-auto p-comp-sheet-p",
|
|
150
|
+
a
|
|
151
|
+
),
|
|
152
|
+
...s,
|
|
153
|
+
children: t
|
|
154
|
+
}
|
|
155
|
+
)
|
|
156
|
+
);
|
|
157
|
+
C.displayName = "SheetBody";
|
|
158
|
+
const k = l(
|
|
159
|
+
({ className: a, children: t, ...s }, r) => /* @__PURE__ */ o(
|
|
160
|
+
n,
|
|
161
|
+
{
|
|
162
|
+
ref: r,
|
|
163
|
+
align: "center",
|
|
164
|
+
justify: "end",
|
|
165
|
+
gap: "sm",
|
|
166
|
+
className: i(
|
|
167
|
+
"border-t border-stroke-base-primary px-comp-sheet-p py-comp-sheet-p-ver-sm",
|
|
168
|
+
a
|
|
169
|
+
),
|
|
170
|
+
...s,
|
|
171
|
+
children: t
|
|
172
|
+
}
|
|
173
|
+
)
|
|
174
|
+
);
|
|
175
|
+
k.displayName = "SheetFooter";
|
|
176
|
+
export {
|
|
177
|
+
P as Sheet,
|
|
178
|
+
C as SheetBody,
|
|
179
|
+
H as SheetClose,
|
|
180
|
+
z as SheetContent,
|
|
181
|
+
M as SheetDescription,
|
|
182
|
+
k as SheetFooter,
|
|
183
|
+
S as SheetHeader,
|
|
184
|
+
c as SheetOverlay,
|
|
185
|
+
v as SheetPortal,
|
|
186
|
+
R as SheetTitle,
|
|
187
|
+
B as SheetTrigger,
|
|
188
|
+
w as sheetContentVariants
|
|
189
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Sheet } from './Sheet';
|
|
3
|
+
declare const meta: Meta<typeof Sheet>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<PlaygroundProps>;
|
|
6
|
+
type PlaygroundProps = {
|
|
7
|
+
side: 'top' | 'right' | 'bottom' | 'left';
|
|
8
|
+
size: 'small' | 'medium' | 'large';
|
|
9
|
+
textButton?: string;
|
|
10
|
+
closeAriaLabel?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const Default: Story;
|
|
13
|
+
export declare const SideLeft: Story;
|
|
14
|
+
export declare const SideTop: Story;
|
|
15
|
+
export declare const SideBottom: Story;
|
|
16
|
+
export declare const SizeSmall: Story;
|
|
17
|
+
export declare const SizeLarge: Story;
|
|
18
|
+
export declare const Scrollable: Story;
|
|
19
|
+
export declare const MinimalNoHeaderFooter: Story;
|
|
20
|
+
//# sourceMappingURL=Sheet.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sheet.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Sheet/Sheet.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAG3D,OAAO,EACL,KAAK,EASN,MAAM,SAAS,CAAA;AAEhB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CAoD5B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAA;AAEtC,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;IACzC,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IAClC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAmErB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAiBtB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAiBrB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAiBxB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAgBvB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAiBvB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KA6CxB,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,KAgCnC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Sheet/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
|