@vkzstudio/muza-ui 1.0.47 → 1.0.48
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.d.ts +112 -18
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion/Accordion.js +208 -110
- package/dist/components/Accordion/Accordion.stories.d.ts +3 -0
- package/dist/components/Accordion/Accordion.stories.d.ts.map +1 -1
- package/dist/components/Alert/Alert.js +4 -4
- package/dist/components/ButtonArrow/ButtonArrow.stories.d.ts.map +1 -1
- package/dist/components/CardCheckboxAmount/CardCheckboxAmount.d.ts +111 -0
- package/dist/components/CardCheckboxAmount/CardCheckboxAmount.d.ts.map +1 -0
- package/dist/components/CardCheckboxAmount/CardCheckboxAmount.js +115 -0
- package/dist/components/CardCheckboxAmount/CardCheckboxAmount.stories.d.ts +13 -0
- package/dist/components/CardCheckboxAmount/CardCheckboxAmount.stories.d.ts.map +1 -0
- package/dist/components/CardCheckboxAmount/index.d.ts +2 -0
- package/dist/components/CardCheckboxAmount/index.d.ts.map +1 -0
- package/dist/components/Chip/Chip.d.ts.map +1 -1
- package/dist/components/Chip/Chip.js +6 -2
- package/dist/components/Chip/Chip.stories.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.js +10 -2
- package/dist/components/DatePicker/DatePicker.stories.d.ts.map +1 -1
- package/dist/components/DatePickerButton/DatePickerButton.d.ts +97 -0
- package/dist/components/DatePickerButton/DatePickerButton.d.ts.map +1 -0
- package/dist/components/DatePickerButton/DatePickerButton.js +329 -0
- package/dist/components/DatePickerButton/DatePickerButton.stories.d.ts +15 -0
- package/dist/components/DatePickerButton/DatePickerButton.stories.d.ts.map +1 -0
- package/dist/components/DatePickerButton/index.d.ts +2 -0
- package/dist/components/DatePickerButton/index.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.js +1 -1
- package/dist/components/Icons/CustomLogos.d.ts +18 -2
- package/dist/components/Icons/CustomLogos.d.ts.map +1 -1
- package/dist/components/Icons/CustomLogos.js +103 -97
- package/dist/components/Icons/LogosAndBadges.stories.d.ts +1 -0
- package/dist/components/Icons/LogosAndBadges.stories.d.ts.map +1 -1
- package/dist/components/LanguageSwitcher/LanguageSwitcher.d.ts +26 -1
- package/dist/components/LanguageSwitcher/LanguageSwitcher.d.ts.map +1 -1
- package/dist/components/LanguageSwitcher/LanguageSwitcher.js +86 -44
- package/dist/components/LanguageSwitcher/LanguageSwitcher.stories.d.ts +1 -0
- package/dist/components/LanguageSwitcher/LanguageSwitcher.stories.d.ts.map +1 -1
- package/dist/components/Popover/Popover.d.ts +8 -1
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/Popover/Popover.js +7 -6
- package/dist/components/SegmentedControl/SegmentedControl.stories.d.ts.map +1 -1
- package/dist/components/SegmentedIconControl/SegmentedIconControl.stories.d.ts.map +1 -1
- package/dist/components/TextEditor/TextEditor.d.ts.map +1 -1
- package/dist/components/TextEditor/TextEditor.js +12 -9
- package/dist/components/TextEditor/TextEditor.stories.d.ts.map +1 -1
- package/dist/components/Toggle/Toggle.stories.d.ts.map +1 -1
- package/dist/components/ToggleCheckButton/ToggleCheckButton.stories.d.ts.map +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts.map +1 -1
- package/dist/components/Typography/Typography.d.ts +10 -1
- package/dist/components/Typography/Typography.d.ts.map +1 -1
- package/dist/components/Typography/Typography.js +82 -67
- package/dist/components/Typography/Typography.stories.d.ts +1 -0
- package/dist/components/Typography/Typography.stories.d.ts.map +1 -1
- package/dist/components/TypographyLink/TypographyLink.d.ts +72 -0
- package/dist/components/TypographyLink/TypographyLink.d.ts.map +1 -0
- package/dist/components/TypographyLink/TypographyLink.js +103 -0
- package/dist/components/TypographyLink/TypographyLink.stories.d.ts +12 -0
- package/dist/components/TypographyLink/TypographyLink.stories.d.ts.map +1 -0
- package/dist/components/TypographyLink/index.d.ts +2 -0
- package/dist/components/TypographyLink/index.d.ts.map +1 -0
- package/dist/components/UniversalFooter/UniversalFooter.d.ts +198 -0
- package/dist/components/UniversalFooter/UniversalFooter.d.ts.map +1 -0
- package/dist/components/UniversalFooter/UniversalFooter.js +401 -0
- package/dist/components/UniversalFooter/UniversalFooter.stories.d.ts +19 -0
- package/dist/components/UniversalFooter/UniversalFooter.stories.d.ts.map +1 -0
- package/dist/components/UniversalFooter/index.d.ts +2 -0
- package/dist/components/UniversalFooter/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.js +353 -322
- package/dist/muza-ui.css +1 -1
- package/dist/styles/primitives.css +2 -0
- package/dist/styles/token-colors.css +51 -43
- package/dist/styles/token-sizes.css +40 -0
- package/dist/translations/index.d.ts +1 -1
- package/dist/translations/index.d.ts.map +1 -1
- package/dist/translations/locales/cs.d.ts.map +1 -1
- package/dist/translations/locales/cs.js +6 -1
- package/dist/translations/locales/en.d.ts.map +1 -1
- package/dist/translations/locales/en.js +6 -1
- package/dist/translations/locales/sk.d.ts.map +1 -1
- package/dist/translations/locales/sk.js +6 -1
- package/dist/translations/types.d.ts +12 -0
- package/dist/translations/types.d.ts.map +1 -1
- package/package.json +171 -169
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import { jsx as a, jsxs as B } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as k } from "react";
|
|
3
|
+
import { useControllableState as j } from "@radix-ui/react-use-controllable-state";
|
|
4
|
+
import { cva as w } from "class-variance-authority";
|
|
5
|
+
import { format as v } from "date-fns";
|
|
6
|
+
import { useMuzaTranslations as M } from "../../translations/TranslationContext.js";
|
|
7
|
+
import { DatePicker as T } from "../DatePicker/DatePicker.js";
|
|
8
|
+
import { PopoverTrigger as A, PopoverAnchor as R } from "../Popover/Popover.js";
|
|
9
|
+
import { XClose as E } from "../Icons/CustomIcons.js";
|
|
10
|
+
import { CalendarBold as U } from "@solar-icons/react-perf";
|
|
11
|
+
import { cn as m } from "../../utils/cn.js";
|
|
12
|
+
import { Typography as $ } from "../Typography/Typography.js";
|
|
13
|
+
const L = w(
|
|
14
|
+
[
|
|
15
|
+
"group relative inline-flex cursor-pointer items-center text-left outline-0",
|
|
16
|
+
"border border-comp-input-stroke-def bg-comp-input-fill-def transition-colors",
|
|
17
|
+
"rounded-full",
|
|
18
|
+
"hover:border-comp-input-stroke-hover hover:bg-comp-input-fill-hover",
|
|
19
|
+
"focus-visible:border-comp-input-icon-brand-focused",
|
|
20
|
+
"has-[[data-slot=date-picker-button-trigger]:focus-visible]:border-comp-input-icon-brand-focused",
|
|
21
|
+
"data-[state=open]:border-comp-input-icon-brand-focused",
|
|
22
|
+
"has-[[data-slot=date-picker-button-trigger][data-state=open]]:border-comp-input-icon-brand-focused"
|
|
23
|
+
],
|
|
24
|
+
{
|
|
25
|
+
variants: {
|
|
26
|
+
variant: {
|
|
27
|
+
default: "gap-comp-input-gap",
|
|
28
|
+
iconOnly: "justify-center"
|
|
29
|
+
},
|
|
30
|
+
size: {
|
|
31
|
+
xs: "",
|
|
32
|
+
sm: "",
|
|
33
|
+
base: "",
|
|
34
|
+
lg: ""
|
|
35
|
+
},
|
|
36
|
+
error: {
|
|
37
|
+
true: "border-comp-input-stroke-error-def hover:border-comp-input-stroke-error-def focus-visible:border-comp-input-stroke-error-def has-[[data-slot=date-picker-button-trigger][data-state=open]]:border-comp-input-stroke-error-def data-[state=open]:border-comp-input-stroke-error-def"
|
|
38
|
+
},
|
|
39
|
+
disabled: {
|
|
40
|
+
true: "cursor-not-allowed border-comp-input-stroke-disabled bg-comp-input-fill-disabled hover:border-comp-input-stroke-disabled hover:bg-comp-input-fill-disabled"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
compoundVariants: [
|
|
44
|
+
{
|
|
45
|
+
variant: "default",
|
|
46
|
+
size: "xs",
|
|
47
|
+
className: "h-comp-input-h-xsm px-comp-input-p-xsm"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
variant: "default",
|
|
51
|
+
size: "sm",
|
|
52
|
+
className: "h-comp-input-h-small px-comp-input-p-hor"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
variant: "default",
|
|
56
|
+
size: "base",
|
|
57
|
+
className: "h-comp-input-h-def px-comp-input-p-hor"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
variant: "default",
|
|
61
|
+
size: "lg",
|
|
62
|
+
className: "h-comp-input-h-large px-comp-input-p-hor"
|
|
63
|
+
},
|
|
64
|
+
{ variant: "iconOnly", size: "xs", className: "size-comp-input-h-xsm" },
|
|
65
|
+
{ variant: "iconOnly", size: "sm", className: "size-comp-input-h-small" },
|
|
66
|
+
{ variant: "iconOnly", size: "base", className: "size-comp-input-h-def" },
|
|
67
|
+
{
|
|
68
|
+
variant: "iconOnly",
|
|
69
|
+
size: "lg",
|
|
70
|
+
className: "size-comp-input-h-large"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
defaultVariants: {
|
|
74
|
+
variant: "default",
|
|
75
|
+
size: "base",
|
|
76
|
+
error: !1,
|
|
77
|
+
disabled: !1
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
), V = (e, r, n, s) => {
|
|
81
|
+
const [o, t] = j({
|
|
82
|
+
prop: e,
|
|
83
|
+
defaultProp: r,
|
|
84
|
+
onChange: n,
|
|
85
|
+
caller: s
|
|
86
|
+
});
|
|
87
|
+
return {
|
|
88
|
+
current: o,
|
|
89
|
+
handleChange: (i) => t(i),
|
|
90
|
+
hasValue: o !== void 0,
|
|
91
|
+
clear: () => t(void 0)
|
|
92
|
+
};
|
|
93
|
+
}, I = (e) => e === "xs" || e === "sm" ? "size-icon-small" : "size-icon-medium", X = (e) => v(e, "dd/MM/yyyy"), Y = (e) => e.from ? e.to ? `${v(e.from, "dd/MM/yyyy")} - ${v(e.to, "dd/MM/yyyy")}` : v(e.from, "dd/MM/yyyy") : "", O = k(
|
|
94
|
+
({
|
|
95
|
+
variant: e,
|
|
96
|
+
size: r,
|
|
97
|
+
error: n,
|
|
98
|
+
hideClearButton: s,
|
|
99
|
+
className: o,
|
|
100
|
+
disabled: t,
|
|
101
|
+
hasValue: i,
|
|
102
|
+
displayText: f,
|
|
103
|
+
onClear: b,
|
|
104
|
+
ariaLabel: c,
|
|
105
|
+
clearAriaLabel: h,
|
|
106
|
+
triggerProps: d
|
|
107
|
+
}, u) => {
|
|
108
|
+
const g = e === "default" && !i ? "iconOnly" : e, p = /* @__PURE__ */ a(
|
|
109
|
+
U,
|
|
110
|
+
{
|
|
111
|
+
"aria-hidden": !0,
|
|
112
|
+
className: m(
|
|
113
|
+
"shrink-0",
|
|
114
|
+
I(r),
|
|
115
|
+
t ? "text-icon-dark-tertiary" : "text-icon-brand-def"
|
|
116
|
+
)
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
return g === "iconOnly" ? /* @__PURE__ */ B(
|
|
120
|
+
A,
|
|
121
|
+
{
|
|
122
|
+
ref: u,
|
|
123
|
+
...d,
|
|
124
|
+
type: "button",
|
|
125
|
+
disabled: t,
|
|
126
|
+
"aria-label": c,
|
|
127
|
+
"data-slot": "date-picker-button-trigger",
|
|
128
|
+
className: m(
|
|
129
|
+
L({
|
|
130
|
+
variant: "iconOnly",
|
|
131
|
+
size: r,
|
|
132
|
+
error: n,
|
|
133
|
+
disabled: t
|
|
134
|
+
}),
|
|
135
|
+
o
|
|
136
|
+
),
|
|
137
|
+
children: [
|
|
138
|
+
p,
|
|
139
|
+
i && /* @__PURE__ */ a(G, { disabled: t })
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
) : /* @__PURE__ */ a(R, { asChild: !0, children: /* @__PURE__ */ B(
|
|
143
|
+
"div",
|
|
144
|
+
{
|
|
145
|
+
className: m(
|
|
146
|
+
L({
|
|
147
|
+
variant: "default",
|
|
148
|
+
size: r,
|
|
149
|
+
error: n,
|
|
150
|
+
disabled: t
|
|
151
|
+
}),
|
|
152
|
+
o
|
|
153
|
+
),
|
|
154
|
+
children: [
|
|
155
|
+
/* @__PURE__ */ B(
|
|
156
|
+
A,
|
|
157
|
+
{
|
|
158
|
+
ref: u,
|
|
159
|
+
...d,
|
|
160
|
+
type: "button",
|
|
161
|
+
disabled: t,
|
|
162
|
+
"aria-label": c,
|
|
163
|
+
"data-slot": "date-picker-button-trigger",
|
|
164
|
+
className: "group flex flex-1 cursor-pointer items-center gap-comp-input-gap text-left outline-0 disabled:cursor-not-allowed",
|
|
165
|
+
children: [
|
|
166
|
+
p,
|
|
167
|
+
/* @__PURE__ */ a(
|
|
168
|
+
$,
|
|
169
|
+
{
|
|
170
|
+
variant: "body",
|
|
171
|
+
size: r === "xs" || r === "sm" ? "sm" : "base",
|
|
172
|
+
weight: "medium",
|
|
173
|
+
component: "span",
|
|
174
|
+
fixY: !0,
|
|
175
|
+
className: m(
|
|
176
|
+
"flex-1 truncate",
|
|
177
|
+
t ? "text-comp-input-text-disabled" : "text-comp-input-text-primary"
|
|
178
|
+
),
|
|
179
|
+
children: f
|
|
180
|
+
}
|
|
181
|
+
)
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
),
|
|
185
|
+
!s && !t && /* @__PURE__ */ a(
|
|
186
|
+
"button",
|
|
187
|
+
{
|
|
188
|
+
type: "button",
|
|
189
|
+
"aria-label": h,
|
|
190
|
+
onClick: b,
|
|
191
|
+
className: m(
|
|
192
|
+
"flex shrink-0 cursor-pointer items-center justify-center text-icon-dark-secondary-def outline-0",
|
|
193
|
+
"hover:text-icon-dark-primary-def focus-visible:text-icon-brand-def"
|
|
194
|
+
),
|
|
195
|
+
children: /* @__PURE__ */ a(E, { className: "size-icon-small" })
|
|
196
|
+
}
|
|
197
|
+
)
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
) });
|
|
201
|
+
}
|
|
202
|
+
);
|
|
203
|
+
O.displayName = "DatePickerButtonTrigger";
|
|
204
|
+
const F = k((e, r) => {
|
|
205
|
+
const {
|
|
206
|
+
variant: n = "default",
|
|
207
|
+
size: s = "base",
|
|
208
|
+
error: o = !1,
|
|
209
|
+
hideClearButton: t = !1,
|
|
210
|
+
className: i,
|
|
211
|
+
"aria-label": f,
|
|
212
|
+
clearAriaLabel: b,
|
|
213
|
+
value: c,
|
|
214
|
+
defaultValue: h,
|
|
215
|
+
onChange: d,
|
|
216
|
+
dateFormatter: u,
|
|
217
|
+
popoverContentProps: g,
|
|
218
|
+
...p
|
|
219
|
+
} = e, x = M(), C = b ?? x.datePicker.clearDateAriaLabel, { current: l, handleChange: P, hasValue: N, clear: z } = V(
|
|
220
|
+
c,
|
|
221
|
+
h,
|
|
222
|
+
d,
|
|
223
|
+
"DatePickerButton"
|
|
224
|
+
), y = u ?? X, D = l ? y(l) : "";
|
|
225
|
+
return /* @__PURE__ */ a(
|
|
226
|
+
T,
|
|
227
|
+
{
|
|
228
|
+
...p,
|
|
229
|
+
mode: "single",
|
|
230
|
+
value: l,
|
|
231
|
+
onChange: P,
|
|
232
|
+
dateFormatter: y,
|
|
233
|
+
disabled: e.disabled,
|
|
234
|
+
popoverContentProps: { sideOffset: 8, ...g },
|
|
235
|
+
renderCustomTrigger: () => /* @__PURE__ */ a(
|
|
236
|
+
O,
|
|
237
|
+
{
|
|
238
|
+
ref: r,
|
|
239
|
+
variant: n,
|
|
240
|
+
size: s,
|
|
241
|
+
error: o,
|
|
242
|
+
hideClearButton: t,
|
|
243
|
+
className: i,
|
|
244
|
+
disabled: e.disabled,
|
|
245
|
+
hasValue: N,
|
|
246
|
+
displayText: D,
|
|
247
|
+
onClear: z,
|
|
248
|
+
ariaLabel: f,
|
|
249
|
+
clearAriaLabel: C
|
|
250
|
+
}
|
|
251
|
+
)
|
|
252
|
+
}
|
|
253
|
+
);
|
|
254
|
+
});
|
|
255
|
+
F.displayName = "DatePickerButtonSingle";
|
|
256
|
+
const S = k((e, r) => {
|
|
257
|
+
const {
|
|
258
|
+
variant: n = "default",
|
|
259
|
+
size: s = "base",
|
|
260
|
+
error: o = !1,
|
|
261
|
+
hideClearButton: t = !1,
|
|
262
|
+
className: i,
|
|
263
|
+
"aria-label": f,
|
|
264
|
+
clearAriaLabel: b,
|
|
265
|
+
value: c,
|
|
266
|
+
defaultValue: h,
|
|
267
|
+
onChange: d,
|
|
268
|
+
dateFormatter: u,
|
|
269
|
+
popoverContentProps: g,
|
|
270
|
+
...p
|
|
271
|
+
} = e, x = M(), C = b ?? x.datePicker.clearDateAriaLabel, { current: l, handleChange: P, hasValue: N, clear: z } = V(
|
|
272
|
+
c,
|
|
273
|
+
h,
|
|
274
|
+
d,
|
|
275
|
+
"DatePickerButton"
|
|
276
|
+
), y = u ?? Y, D = l ? y(l) : "";
|
|
277
|
+
return /* @__PURE__ */ a(
|
|
278
|
+
T,
|
|
279
|
+
{
|
|
280
|
+
...p,
|
|
281
|
+
mode: "range",
|
|
282
|
+
value: l,
|
|
283
|
+
onChange: P,
|
|
284
|
+
dateFormatter: y,
|
|
285
|
+
disabled: e.disabled,
|
|
286
|
+
popoverContentProps: { sideOffset: 8, ...g },
|
|
287
|
+
renderCustomTrigger: () => /* @__PURE__ */ a(
|
|
288
|
+
O,
|
|
289
|
+
{
|
|
290
|
+
ref: r,
|
|
291
|
+
variant: n,
|
|
292
|
+
size: s,
|
|
293
|
+
error: o,
|
|
294
|
+
hideClearButton: t,
|
|
295
|
+
className: i,
|
|
296
|
+
disabled: e.disabled,
|
|
297
|
+
hasValue: N,
|
|
298
|
+
displayText: D,
|
|
299
|
+
onClear: z,
|
|
300
|
+
ariaLabel: f,
|
|
301
|
+
clearAriaLabel: C
|
|
302
|
+
}
|
|
303
|
+
)
|
|
304
|
+
}
|
|
305
|
+
);
|
|
306
|
+
});
|
|
307
|
+
S.displayName = "DatePickerButtonRange";
|
|
308
|
+
const q = k((e, r) => e.mode === "single" ? /* @__PURE__ */ a(F, { ...e, ref: r }) : /* @__PURE__ */ a(S, { ...e, ref: r }));
|
|
309
|
+
q.displayName = "DatePickerButton";
|
|
310
|
+
const G = ({ disabled: e }) => /* @__PURE__ */ a(
|
|
311
|
+
"span",
|
|
312
|
+
{
|
|
313
|
+
"aria-hidden": !0,
|
|
314
|
+
className: m(
|
|
315
|
+
// Sit the dot's center on the circular border at the 1:30 position.
|
|
316
|
+
// For a circle of radius r=50% of the parent, the border at 45° is at
|
|
317
|
+
// (50% + 50%·cos45°, 50% − 50%·sin45°) ≈ (85.36%, 14.64%). The
|
|
318
|
+
// -translate-1/2 then centers the dot on that exact point so it
|
|
319
|
+
// straddles the visible border, regardless of size.
|
|
320
|
+
"pointer-events-none absolute top-[14.64%] left-[85.36%] -translate-x-1/2 -translate-y-1/2 rounded-full",
|
|
321
|
+
"size-comp-input-dot-size",
|
|
322
|
+
e ? "bg-icon-dark-tertiary" : "bg-surface-brand-primary"
|
|
323
|
+
)
|
|
324
|
+
}
|
|
325
|
+
);
|
|
326
|
+
export {
|
|
327
|
+
q as DatePickerButton,
|
|
328
|
+
L as datePickerButtonVariants
|
|
329
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { DatePickerButton } from './DatePickerButton';
|
|
3
|
+
declare const meta: Meta<typeof DatePickerButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof DatePickerButton>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Range: Story;
|
|
8
|
+
export declare const IconOnly: Story;
|
|
9
|
+
export declare const IconOnlyEmpty: Story;
|
|
10
|
+
export declare const Disabled: Story;
|
|
11
|
+
export declare const Error: Story;
|
|
12
|
+
export declare const AllSizes: Story;
|
|
13
|
+
export declare const AllStates: Story;
|
|
14
|
+
export declare const Controlled: Story;
|
|
15
|
+
//# sourceMappingURL=DatePickerButton.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatePickerButton.stories.d.ts","sourceRoot":"","sources":["../../../src/components/DatePickerButton/DatePickerButton.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAE3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,gBAAgB,CAgDvC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAE9C,eAAO,MAAM,OAAO,EAAE,KAkBrB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAwBnB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAuBtB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAmB3B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAetB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAenB,CAAA;AA4BD,eAAO,MAAM,QAAQ,EAAE,KAUtB,CAAA;AAkED,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAA;AA6BD,eAAO,MAAM,UAAU,EAAE,KAWxB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DatePickerButton/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
|
|
@@ -3,8 +3,8 @@ import { forwardRef as b, useState as O, useRef as E, Children as S, isValidElem
|
|
|
3
3
|
import * as o from "@radix-ui/react-dialog";
|
|
4
4
|
import { typographyVariants as P } from "../Typography/Typography.js";
|
|
5
5
|
import { useMuzaTranslations as T } from "../../translations/TranslationContext.js";
|
|
6
|
-
import { XClose as V } from "../Icons/CustomIcons.js";
|
|
7
6
|
import { cn as i } from "../../utils/cn.js";
|
|
7
|
+
import { XClose as V } from "../Icons/CustomIcons.js";
|
|
8
8
|
const Q = o.Root, U = o.Title, Z = o.Description, A = ({
|
|
9
9
|
className: l,
|
|
10
10
|
ariaLabel: t
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Shared SVG props for all Múza product logo components.
|
|
4
|
+
*
|
|
5
|
+
* Logos paint their glyph paths with `fill="currentColor"`, so they
|
|
6
|
+
* inherit color from the surrounding CSS `color` cascade. Use a Tailwind
|
|
7
|
+
* `text-*` class (or any `color`-setting style) to recolor.
|
|
8
|
+
*/
|
|
9
|
+
export interface LogoProps extends React.SVGProps<SVGSVGElement> {
|
|
10
|
+
/**
|
|
11
|
+
* Shortcut for the dark-surface treatment — applies
|
|
12
|
+
* `text-text-invert-def` so the logo renders in the invert (white)
|
|
13
|
+
* text color. Equivalent to `className="text-text-invert-def"`.
|
|
14
|
+
* Pass a custom `className` instead when you need a non-default color.
|
|
15
|
+
*
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
light?: boolean;
|
|
19
|
+
}
|
|
4
20
|
/**
|
|
5
21
|
* Base Múza logo.
|
|
6
22
|
* @component
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomLogos.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/CustomLogos.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"CustomLogos.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/CustomLogos.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B;;;;;;GAMG;AACH,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC;IAC9D;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAWD;;;GAGG;AACH,eAAO,MAAM,QAAQ,8FAiDpB,CAAA;AAGD;;;GAGG;AACH,eAAO,MAAM,WAAW,8FA6DvB,CAAA;AAGD;;;GAGG;AACH,eAAO,MAAM,cAAc,8FA8E1B,CAAA;AAGD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,8FAyI/B,CAAA;AAGD;;;GAGG;AACH,eAAO,MAAM,UAAU,8FAyDtB,CAAA"}
|