@vkzstudio/muza-ui 1.5.0 → 1.5.2
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.js +1 -1
- package/dist/components/Accordion/index.js +16 -0
- package/dist/components/Alert/Alert.js +6 -6
- package/dist/components/Alert/index.js +4 -0
- package/dist/components/ArticleCard/ArticleCard.js +11 -11
- package/dist/components/ArticleCard/index.js +7 -0
- package/dist/components/Avatar/index.js +6 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +4 -4
- package/dist/components/Breadcrumb/index.js +10 -0
- package/dist/components/Button/Button.js +7 -7
- package/dist/components/Button/index.js +6 -0
- package/dist/components/ButtonArrow/index.js +5 -0
- package/dist/components/Calendar/Calendar.js +6 -6
- package/dist/components/Calendar/index.js +10 -0
- package/dist/components/Card/Card.js +7 -7
- package/dist/components/Card/index.js +5 -0
- package/dist/components/CardCheckboxAmount/CardCheckboxAmount.js +8 -8
- package/dist/components/CardCheckboxAmount/index.js +4 -0
- package/dist/components/Carousel/Carousel.js +5 -5
- package/dist/components/Carousel/index.js +9 -0
- package/dist/components/CategoryCard/CategoryCard.js +2 -2
- package/dist/components/CategoryCard/index.js +6 -0
- package/dist/components/CategoryIcon/index.js +5 -0
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checkbox/index.js +4 -0
- package/dist/components/Chip/Chip.js +5 -5
- package/dist/components/Chip/index.js +5 -0
- package/dist/components/DataTable/index.js +5 -0
- package/dist/components/DatePicker/DatePicker.js +18 -18
- package/dist/components/DatePicker/index.js +7 -0
- package/dist/components/DatePickerButton/DatePickerButton.js +5 -5
- package/dist/components/DatePickerButton/index.js +5 -0
- package/dist/components/Dialog/Dialog.js +21 -20
- package/dist/components/Dialog/index.js +13 -0
- package/dist/components/DotDivider/index.js +5 -0
- package/dist/components/DropdownMenu/DropdownMenu.js +2 -2
- package/dist/components/DropdownMenu/index.js +14 -0
- package/dist/components/DropdownSearchMenu/DropdownSearchMenu.js +7 -6
- package/dist/components/DropdownSearchMenu/index.js +7 -0
- package/dist/components/EdgeButton/EdgeButton.js +1 -1
- package/dist/components/EdgeButton/index.js +5 -0
- package/dist/components/EmptyState/index.js +4 -0
- package/dist/components/ExpandableTable/ExpandableTable.js +13 -13
- package/dist/components/ExpandableTable/index.js +4 -0
- package/dist/components/FileUpload/FileItem.js +1 -1
- package/dist/components/FileUpload/FileUpload.js +7 -7
- package/dist/components/FileUpload/index.js +4 -0
- package/dist/components/Flex/Flex.js +5 -5
- package/dist/components/Flex/index.js +7 -0
- package/dist/components/FormField/FormField.js +9 -9
- package/dist/components/FormField/InputHint.js +4 -4
- package/dist/components/FormField/index.js +8 -0
- package/dist/components/HeartButton/index.js +5 -0
- package/dist/components/Icons/index.js +65 -0
- package/dist/components/InfoCard/InfoCard.js +45 -0
- package/dist/components/InfoCard/index.js +5 -0
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/index.js +4 -0
- package/dist/components/InputOTP/InputOTP.js +7 -7
- package/dist/components/InputOTP/index.js +7 -0
- package/dist/components/LanguageSwitcher/LanguageSwitcher.js +9 -9
- package/dist/components/LanguageSwitcher/index.js +6 -0
- package/dist/components/Lightbox/Lightbox.js +1 -1
- package/dist/components/Lightbox/index.js +8 -0
- package/dist/components/Loader/index.js +4 -0
- package/dist/components/LoginScreen/LoginScreen.js +4 -4
- package/dist/components/LoginScreen/index.js +8 -0
- package/dist/components/MultiSelect/MultiSelect.js +20 -20
- package/dist/components/MultiSelect/index.js +4 -0
- package/dist/components/MuzaUIProvider/MuzaUIProvider.js +5 -5
- package/dist/components/MuzaUIProvider/index.js +13 -0
- package/dist/components/MuzaUIProvider/theme/ThemeSetterModal.js +17 -17
- package/dist/components/OfferCard/OfferCard.js +11 -11
- package/dist/components/OfferCard/index.js +7 -0
- package/dist/components/PageContainer/index.js +5 -0
- package/dist/components/Pagination/Pagination.js +5 -5
- package/dist/components/Pagination/index.js +4 -0
- package/dist/components/PartnerCard/PartnerCard.js +10 -10
- package/dist/components/PartnerCard/index.js +6 -0
- package/dist/components/PasswordInput/PasswordInput.d.ts.map +1 -1
- package/dist/components/PasswordInput/PasswordInput.js +18 -17
- package/dist/components/PasswordInput/PasswordInput.stories.d.ts +2 -0
- package/dist/components/PasswordInput/PasswordInput.stories.d.ts.map +1 -1
- package/dist/components/PasswordInput/index.js +4 -0
- package/dist/components/PhoneInput/CountrySelector.js +5 -5
- package/dist/components/PhoneInput/PhoneInput.js +8 -8
- package/dist/components/PhoneInput/index.js +4 -0
- package/dist/components/PinIndicator/index.js +4 -0
- package/dist/components/Popover/index.js +7 -0
- package/dist/components/Progress/index.js +5 -0
- package/dist/components/Radio/index.js +5 -0
- package/dist/components/Rating/Rating.js +5 -5
- package/dist/components/Rating/index.js +4 -0
- package/dist/components/RatingBlock/RatingBlock.js +2 -2
- package/dist/components/RatingBlock/index.js +4 -0
- package/dist/components/Reorderable/index.js +9 -0
- package/dist/components/ReorderableTable/ReorderableTable.js +7 -6
- package/dist/components/ReorderableTable/index.js +4 -0
- package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.js +5 -5
- package/dist/components/ResponsiveLayoutTable/index.js +4 -0
- package/dist/components/SearchFilters/SearchFilters.js +11 -11
- package/dist/components/SearchFilters/index.js +5 -0
- package/dist/components/Searchbar/index.js +4 -0
- package/dist/components/SegmentedControl/index.js +5 -0
- package/dist/components/SegmentedIconControl/index.js +5 -0
- package/dist/components/Select/Select.js +17 -17
- package/dist/components/Select/index.js +4 -0
- package/dist/components/Sheet/Sheet.js +13 -12
- package/dist/components/Sheet/index.js +15 -0
- package/dist/components/Skeleton/index.js +4 -0
- package/dist/components/Slider/index.js +7 -0
- package/dist/components/SliderIndicators/index.js +4 -0
- package/dist/components/Stepper/Stepper.js +6 -6
- package/dist/components/Stepper/index.js +4 -0
- package/dist/components/SwipeButton/SwipeButton.js +14 -14
- package/dist/components/SwipeButton/index.js +4 -0
- package/dist/components/Switch/index.js +4 -0
- package/dist/components/Tag/index.js +5 -0
- package/dist/components/TextEditor/EditorToolbar.js +15 -15
- package/dist/components/TextEditor/LinkBubbleMenu.js +9 -9
- package/dist/components/TextEditor/TextEditor.js +12 -12
- package/dist/components/TextEditor/index.js +9 -0
- package/dist/components/Textarea/Textarea.js +1 -1
- package/dist/components/Textarea/index.js +4 -0
- package/dist/components/TimePicker/TimePicker.js +4 -4
- package/dist/components/TimePicker/index.js +4 -0
- package/dist/components/Toast/Toast.js +7 -7
- package/dist/components/Toast/index.js +7 -0
- package/dist/components/Toggle/index.js +5 -0
- package/dist/components/ToggleCheckButton/index.js +5 -0
- package/dist/components/ToggleGroup/ToggleGroup.js +4 -4
- package/dist/components/ToggleGroup/index.js +5 -0
- package/dist/components/Tooltip/Tooltip.js +6 -6
- package/dist/components/Tooltip/index.js +7 -0
- package/dist/components/TransactionsListView/TransactionsListView.js +2 -2
- package/dist/components/TransactionsListView/index.js +5 -0
- package/dist/components/Typography/index.js +5 -0
- package/dist/components/TypographyLink/index.js +5 -0
- package/dist/components/UniversalFooter/UniversalFooter.js +2 -2
- package/dist/components/UniversalFooter/index.js +18 -0
- package/dist/components/VoucherCard/VoucherCard.js +2 -2
- package/dist/components/VoucherCard/index.js +7 -0
- package/dist/index.js +429 -429
- package/dist/utils/index.js +13 -0
- package/package.json +22 -5
|
@@ -2,9 +2,9 @@ import { jsx as a, jsxs as b } from "react/jsx-runtime";
|
|
|
2
2
|
import * as l from "react";
|
|
3
3
|
import * as g from "@radix-ui/react-accordion";
|
|
4
4
|
import { cva as p } from "class-variance-authority";
|
|
5
|
-
import { Typography as I } from "../Typography/Typography.js";
|
|
6
5
|
import { cn as i } from "../../utils/cn.js";
|
|
7
6
|
import { AltArrowDownOutline as A } from "@solar-icons/react-perf";
|
|
7
|
+
import { Typography as I } from "../Typography/Typography.js";
|
|
8
8
|
const N = p("relative w-full transition-colors", {
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Accordion as n, AccordionChevron as c, AccordionContent as i, AccordionFooter as a, AccordionHeader as t, AccordionItem as e, AccordionTitle as d, accordionChevronVariants as A, accordionContentInnerVariants as s, accordionFooterVariants as V, accordionItemVariants as C, accordionTitleVariants as m, accordionTriggerVariants as I } from "./Accordion.js";
|
|
2
|
+
export {
|
|
3
|
+
n as Accordion,
|
|
4
|
+
c as AccordionChevron,
|
|
5
|
+
i as AccordionContent,
|
|
6
|
+
a as AccordionFooter,
|
|
7
|
+
t as AccordionHeader,
|
|
8
|
+
e as AccordionItem,
|
|
9
|
+
d as AccordionTitle,
|
|
10
|
+
A as accordionChevronVariants,
|
|
11
|
+
s as accordionContentInnerVariants,
|
|
12
|
+
V as accordionFooterVariants,
|
|
13
|
+
C as accordionItemVariants,
|
|
14
|
+
m as accordionTitleVariants,
|
|
15
|
+
I as accordionTriggerVariants
|
|
16
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as h, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { cva as v } from "class-variance-authority";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { useMuzaTranslationContext as w } from "../../translations/TranslationContext.js";
|
|
5
|
+
import { cn as z } from "../../utils/cn.js";
|
|
6
|
+
import { XClose as T } from "../Icons/CustomIcons.js";
|
|
7
7
|
import { Typography as N } from "../Typography/Typography.js";
|
|
8
8
|
const V = v(["rounded-2xl"], {
|
|
9
9
|
variants: {
|
|
@@ -33,7 +33,7 @@ const V = v(["rounded-2xl"], {
|
|
|
33
33
|
closeAriaLabel: p,
|
|
34
34
|
...m
|
|
35
35
|
}) => {
|
|
36
|
-
const { translations: u } =
|
|
36
|
+
const { translations: u } = w(), g = p ?? u.alert.closeAriaLabel, [f, x] = o.useState(!0), [a, b] = o.useState(!1), d = () => {
|
|
37
37
|
b(!0);
|
|
38
38
|
}, y = () => {
|
|
39
39
|
a && (x(!1), e == null || e());
|
|
@@ -43,7 +43,7 @@ const V = v(["rounded-2xl"], {
|
|
|
43
43
|
{
|
|
44
44
|
"data-slot": "alert",
|
|
45
45
|
role: "alert",
|
|
46
|
-
className:
|
|
46
|
+
className: z(
|
|
47
47
|
V({ type: l, size: t }),
|
|
48
48
|
s,
|
|
49
49
|
"flex w-fit items-center gap-sm",
|
|
@@ -71,7 +71,7 @@ const V = v(["rounded-2xl"], {
|
|
|
71
71
|
"aria-label": g,
|
|
72
72
|
className: "cursor-pointer focus-visible-auto",
|
|
73
73
|
children: /* @__PURE__ */ r(
|
|
74
|
-
|
|
74
|
+
T,
|
|
75
75
|
{
|
|
76
76
|
className: t === "large" ? "size-icon-medium" : "size-icon-small"
|
|
77
77
|
}
|
|
@@ -3,16 +3,16 @@ import * as L from "react";
|
|
|
3
3
|
import { Slot as q } from "@radix-ui/react-slot";
|
|
4
4
|
import { cva as D } from "class-variance-authority";
|
|
5
5
|
import { useMuzaTranslationContext as G } from "../../translations/TranslationContext.js";
|
|
6
|
-
import {
|
|
6
|
+
import { cn as o } from "../../utils/cn.js";
|
|
7
|
+
import { disabledLinkProps as H } from "../../utils/disabledLinkProps.js";
|
|
8
|
+
import { formatDate as J } from "../../utils/formatDate.js";
|
|
9
|
+
import { Button as K } from "../Button/Button.js";
|
|
10
|
+
import { DotDivider as Q } from "../DotDivider/DotDivider.js";
|
|
7
11
|
import { Flex as d } from "../Flex/Flex.js";
|
|
8
|
-
import {
|
|
9
|
-
import { Tag as z } from "../Tag/Tag.js";
|
|
10
|
-
import { DotDivider as K } from "../DotDivider/DotDivider.js";
|
|
11
|
-
import { Button as Q } from "../Button/Button.js";
|
|
12
|
+
import { AltArrowRightOutline as U } from "@solar-icons/react-perf";
|
|
12
13
|
import { Skeleton as l } from "../Skeleton/Skeleton.js";
|
|
14
|
+
import { Tag as z } from "../Tag/Tag.js";
|
|
13
15
|
import { Typography as f } from "../Typography/Typography.js";
|
|
14
|
-
import { cn as o } from "../../utils/cn.js";
|
|
15
|
-
import { AltArrowRightOutline as U } from "@solar-icons/react-perf";
|
|
16
16
|
const X = D(
|
|
17
17
|
"group relative inline-flex border border-solid transition-colors focus-visible:outline-none data-[disabled=true]:pointer-events-none",
|
|
18
18
|
{
|
|
@@ -109,7 +109,7 @@ const b = ({
|
|
|
109
109
|
}
|
|
110
110
|
),
|
|
111
111
|
i != null && /* @__PURE__ */ t(T, { children: [
|
|
112
|
-
/* @__PURE__ */ e(
|
|
112
|
+
/* @__PURE__ */ e(Q, { variant: m }),
|
|
113
113
|
/* @__PURE__ */ e(
|
|
114
114
|
f,
|
|
115
115
|
{
|
|
@@ -129,7 +129,7 @@ b.displayName = "ArticleCard.Metadata";
|
|
|
129
129
|
const v = ({ variant: r, label: a }) => {
|
|
130
130
|
const i = r === "heroLarge";
|
|
131
131
|
return /* @__PURE__ */ e(
|
|
132
|
-
|
|
132
|
+
K,
|
|
133
133
|
{
|
|
134
134
|
asChild: !0,
|
|
135
135
|
variant: i ? "linkInvert" : "link",
|
|
@@ -317,7 +317,7 @@ const R = L.forwardRef(
|
|
|
317
317
|
className: $,
|
|
318
318
|
children: S,
|
|
319
319
|
...V
|
|
320
|
-
} = r, { translations: I } = G(), k = Y ?? I.articleCard.readArticle, y = B ?? I.articleCard.readingTime, C = (P ??
|
|
320
|
+
} = r, { translations: I } = G(), k = Y ?? I.articleCard.readArticle, y = B ?? I.articleCard.readingTime, C = (P ?? J)(ee(E)), g = m.length > 0, A = Z({ variant: s }), j = n ?? (s === "heroLarge" ? "" : i);
|
|
321
321
|
let h = null;
|
|
322
322
|
s === "compact" ? h = /* @__PURE__ */ t(T, { children: [
|
|
323
323
|
/* @__PURE__ */ t(
|
|
@@ -513,7 +513,7 @@ const R = L.forwardRef(
|
|
|
513
513
|
...V,
|
|
514
514
|
children: L.cloneElement(
|
|
515
515
|
S,
|
|
516
|
-
p ?
|
|
516
|
+
p ? H : void 0,
|
|
517
517
|
h
|
|
518
518
|
)
|
|
519
519
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { Slot as i } from "@radix-ui/react-slot";
|
|
4
|
-
import { typographyVariants as o, Typography as n } from "../Typography/Typography.js";
|
|
5
4
|
import { cn as a } from "../../utils/cn.js";
|
|
6
|
-
import { AltArrowRightOutline as
|
|
5
|
+
import { AltArrowRightOutline as n } from "@solar-icons/react-perf";
|
|
6
|
+
import { typographyVariants as o, Typography as m } from "../Typography/Typography.js";
|
|
7
7
|
const f = ({ ...r }) => /* @__PURE__ */ t("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...r }), g = ({ className: r, ...e }) => /* @__PURE__ */ t(
|
|
8
8
|
"ol",
|
|
9
9
|
{
|
|
@@ -77,7 +77,7 @@ const f = ({ ...r }) => /* @__PURE__ */ t("nav", { "aria-label": "breadcrumb", "
|
|
|
77
77
|
e
|
|
78
78
|
),
|
|
79
79
|
...s,
|
|
80
|
-
children: r ?? /* @__PURE__ */ t(
|
|
80
|
+
children: r ?? /* @__PURE__ */ t(n, {})
|
|
81
81
|
}
|
|
82
82
|
), B = ({
|
|
83
83
|
className: r,
|
|
@@ -94,7 +94,7 @@ const f = ({ ...r }) => /* @__PURE__ */ t("nav", { "aria-label": "breadcrumb", "
|
|
|
94
94
|
),
|
|
95
95
|
...e,
|
|
96
96
|
children: /* @__PURE__ */ t(
|
|
97
|
-
|
|
97
|
+
m,
|
|
98
98
|
{
|
|
99
99
|
component: "span",
|
|
100
100
|
variant: "body",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Breadcrumb as a, BreadcrumbEllipsis as m, BreadcrumbItem as b, BreadcrumbLink as c, BreadcrumbList as d, BreadcrumbPage as u, BreadcrumbSeparator as B } from "./Breadcrumb.js";
|
|
2
|
+
export {
|
|
3
|
+
a as Breadcrumb,
|
|
4
|
+
m as BreadcrumbEllipsis,
|
|
5
|
+
b as BreadcrumbItem,
|
|
6
|
+
c as BreadcrumbLink,
|
|
7
|
+
d as BreadcrumbList,
|
|
8
|
+
u as BreadcrumbPage,
|
|
9
|
+
B as BreadcrumbSeparator
|
|
10
|
+
};
|
|
@@ -2,10 +2,10 @@ import { jsxs as j, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import * as m from "react";
|
|
3
3
|
import { Slot as v, Slottable as u } from "@radix-ui/react-slot";
|
|
4
4
|
import "class-variance-authority";
|
|
5
|
-
import { ButtonLoader as w } from "./ButtonLoader.js";
|
|
6
|
-
import { buttonVariants as E } from "./buttonVariants.js";
|
|
7
5
|
import { cn as c } from "../../utils/cn.js";
|
|
8
|
-
import { Typography as
|
|
6
|
+
import { Typography as w } from "../Typography/Typography.js";
|
|
7
|
+
import { ButtonLoader as E } from "./ButtonLoader.js";
|
|
8
|
+
import { buttonVariants as R } from "./buttonVariants.js";
|
|
9
9
|
const S = m.forwardRef(
|
|
10
10
|
({
|
|
11
11
|
className: y,
|
|
@@ -23,7 +23,7 @@ const S = m.forwardRef(
|
|
|
23
23
|
...h
|
|
24
24
|
}, N) => {
|
|
25
25
|
const g = p ? v : "button", i = a === "icon" || d, l = (L) => /* @__PURE__ */ o(
|
|
26
|
-
|
|
26
|
+
w,
|
|
27
27
|
{
|
|
28
28
|
variant: "cta",
|
|
29
29
|
size: a === "sm" || a === "xs" ? "sm" : "base",
|
|
@@ -44,7 +44,7 @@ const S = m.forwardRef(
|
|
|
44
44
|
g,
|
|
45
45
|
{
|
|
46
46
|
className: c(
|
|
47
|
-
|
|
47
|
+
R({
|
|
48
48
|
variant: b,
|
|
49
49
|
size: a,
|
|
50
50
|
fullWidth: x,
|
|
@@ -60,7 +60,7 @@ const S = m.forwardRef(
|
|
|
60
60
|
"data-danger": f,
|
|
61
61
|
...h,
|
|
62
62
|
children: [
|
|
63
|
-
e && /* @__PURE__ */ o("span", { className: "absolute", children: /* @__PURE__ */ o(
|
|
63
|
+
e && /* @__PURE__ */ o("span", { className: "absolute", children: /* @__PURE__ */ o(E, {}) }),
|
|
64
64
|
(s || n === "start") && r,
|
|
65
65
|
B(),
|
|
66
66
|
s || n === "end" && r
|
|
@@ -72,5 +72,5 @@ const S = m.forwardRef(
|
|
|
72
72
|
S.displayName = "Button";
|
|
73
73
|
export {
|
|
74
74
|
S as Button,
|
|
75
|
-
|
|
75
|
+
R as buttonVariants
|
|
76
76
|
};
|
|
@@ -2,12 +2,12 @@ import { jsxs as p, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import * as W from "react";
|
|
3
3
|
import { getDefaultClassNames as F, DayPicker as J } from "react-day-picker";
|
|
4
4
|
import { useMuzaTranslationContext as K } from "../../translations/TranslationContext.js";
|
|
5
|
-
import { formatDateRange as P } from "../../utils/formatDateRange.js";
|
|
6
|
-
import { Button as Y } from "../Button/Button.js";
|
|
7
5
|
import { cn as e } from "../../utils/cn.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { formatDate as P } from "../../utils/formatDate.js";
|
|
7
|
+
import { formatDateRange as Q } from "../../utils/formatDateRange.js";
|
|
8
|
+
import { Button as Y } from "../Button/Button.js";
|
|
10
9
|
import { AltArrowLeftOutline as U, AltArrowRightOutline as X, AltArrowDownOutline as Z } from "@solar-icons/react-perf";
|
|
10
|
+
import { Typography as x, typographyVariants as v } from "../Typography/Typography.js";
|
|
11
11
|
const se = ({
|
|
12
12
|
leftPanelChildren: m,
|
|
13
13
|
defaultMonth: f,
|
|
@@ -22,8 +22,8 @@ const se = ({
|
|
|
22
22
|
renderResetButton: t,
|
|
23
23
|
renderConfirmButton: g,
|
|
24
24
|
bottomTextDefault: a,
|
|
25
|
-
dateFormatter: o =
|
|
26
|
-
dateRangeFormatter: s =
|
|
25
|
+
dateFormatter: o = P,
|
|
26
|
+
dateRangeFormatter: s = Q,
|
|
27
27
|
disabledDates: h,
|
|
28
28
|
weekStartsOn: _ = 1,
|
|
29
29
|
excludeDisabled: G,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Calendar as e, CalendarBase as o, CalendarDayButton as t } from "./Calendar.js";
|
|
2
|
+
import { formatDate as m } from "../../utils/formatDate.js";
|
|
3
|
+
import { formatDateRange as d } from "../../utils/formatDateRange.js";
|
|
4
|
+
export {
|
|
5
|
+
e as Calendar,
|
|
6
|
+
o as CalendarBase,
|
|
7
|
+
t as CalendarDayButton,
|
|
8
|
+
m as formatDate,
|
|
9
|
+
d as formatDateRange
|
|
10
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
2
|
import { Slot as g } from "@radix-ui/react-slot";
|
|
3
3
|
import { cva as x } from "class-variance-authority";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { cn as y } from "../../utils/cn.js";
|
|
5
|
+
import { getSpacingVariants as V } from "../../utils/spacing.js";
|
|
6
|
+
import { flexLayoutDefaults as C, flexLayoutVariants as z } from "../Flex/Flex.js";
|
|
7
7
|
const L = x("flex border border-solid", {
|
|
8
8
|
variants: {
|
|
9
|
-
...
|
|
9
|
+
...z,
|
|
10
10
|
variant: {
|
|
11
11
|
default: "rounded-comp-card-default-radius border-comp-card-muzain-stroke bg-comp-card-muzain-bg px-comp-card-default-p-hor py-comp-card-default-p-ver",
|
|
12
12
|
market: "rounded-comp-card-account-radius border-comp-card-account-stroke bg-comp-card-account-fill px-comp-card-account-p-hor py-comp-card-account-p-ver-def",
|
|
@@ -14,7 +14,7 @@ const L = x("flex border border-solid", {
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
defaultVariants: {
|
|
17
|
-
...
|
|
17
|
+
...C,
|
|
18
18
|
direction: "column",
|
|
19
19
|
variant: "default"
|
|
20
20
|
}
|
|
@@ -36,12 +36,12 @@ const L = x("flex border border-solid", {
|
|
|
36
36
|
children: l,
|
|
37
37
|
...k
|
|
38
38
|
}, b) => {
|
|
39
|
-
const h = f ? g : s, v =
|
|
39
|
+
const h = f ? g : s, v = V({ gap: u, padding: n, margin: i });
|
|
40
40
|
return r.createElement(
|
|
41
41
|
h,
|
|
42
42
|
{
|
|
43
43
|
ref: b,
|
|
44
|
-
className:
|
|
44
|
+
className: y(
|
|
45
45
|
L({
|
|
46
46
|
variant: o,
|
|
47
47
|
direction: t,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as v, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import { useMuzaTranslations as O } from "../../translations/TranslationContext.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { cn as Q } from "../../utils/cn.js";
|
|
5
|
+
import { Card as V } from "../Card/Card.js";
|
|
6
|
+
import { Checkbox as W } from "../Checkbox/Checkbox.js";
|
|
7
|
+
import { Stepper as X } from "../Stepper/Stepper.js";
|
|
8
8
|
import { Typography as y } from "../Typography/Typography.js";
|
|
9
9
|
const Y = i.forwardRef(
|
|
10
10
|
({
|
|
@@ -42,12 +42,12 @@ const Y = i.forwardRef(
|
|
|
42
42
|
(s = t == null ? void 0 : t.onKeyDown) == null || s.call(t, e), !(e.defaultPrevented || a) && e.key === "Enter" && (e.preventDefault(), w(!l));
|
|
43
43
|
}, H = l && !a, J = d !== void 0 && x >= d, h = S ?? f.cardCheckboxAmount.unavailableMessage, g = k ?? f.cardCheckboxAmount.maxAmountMessage;
|
|
44
44
|
return /* @__PURE__ */ v(
|
|
45
|
-
|
|
45
|
+
V,
|
|
46
46
|
{
|
|
47
47
|
ref: B,
|
|
48
48
|
variant: "checkout",
|
|
49
49
|
direction: "column",
|
|
50
|
-
className:
|
|
50
|
+
className: Q(
|
|
51
51
|
"items-start gap-md md:flex-row md:items-center md:gap-lg",
|
|
52
52
|
a && "border-stroke-base-disabled",
|
|
53
53
|
C
|
|
@@ -55,7 +55,7 @@ const Y = i.forwardRef(
|
|
|
55
55
|
...T,
|
|
56
56
|
children: [
|
|
57
57
|
/* @__PURE__ */ r("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ r(
|
|
58
|
-
|
|
58
|
+
W,
|
|
59
59
|
{
|
|
60
60
|
...t,
|
|
61
61
|
id: z,
|
|
@@ -82,7 +82,7 @@ const Y = i.forwardRef(
|
|
|
82
82
|
),
|
|
83
83
|
H && /* @__PURE__ */ v("div", { className: "flex flex-col items-start gap-2xs pl-2-5-xl md:items-end md:pl-0", children: [
|
|
84
84
|
/* @__PURE__ */ r(
|
|
85
|
-
|
|
85
|
+
X,
|
|
86
86
|
{
|
|
87
87
|
value: x,
|
|
88
88
|
onChange: F,
|
|
@@ -2,10 +2,10 @@ import { jsx as m, jsxs as j } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import _ from "embla-carousel-react";
|
|
4
4
|
import { useMuzaTranslations as L } from "../../translations/TranslationContext.js";
|
|
5
|
-
import { ButtonArrow as P } from "../ButtonArrow/ButtonArrow.js";
|
|
6
|
-
import { SliderIndicators as B } from "../SliderIndicators/SliderIndicators.js";
|
|
7
5
|
import { cn as h } from "../../utils/cn.js";
|
|
8
|
-
import {
|
|
6
|
+
import { ButtonArrow as P } from "../ButtonArrow/ButtonArrow.js";
|
|
7
|
+
import { Flex as B } from "../Flex/Flex.js";
|
|
8
|
+
import { SliderIndicators as F } from "../SliderIndicators/SliderIndicators.js";
|
|
9
9
|
const R = o.createContext(null), v = () => {
|
|
10
10
|
const t = o.useContext(R);
|
|
11
11
|
if (!t)
|
|
@@ -117,7 +117,7 @@ const U = o.forwardRef(
|
|
|
117
117
|
i ? "[touch-action:pan-y_pinch-zoom]" : "[touch-action:pan-x_pinch-zoom]"
|
|
118
118
|
),
|
|
119
119
|
children: /* @__PURE__ */ m(
|
|
120
|
-
|
|
120
|
+
B,
|
|
121
121
|
{
|
|
122
122
|
ref: l,
|
|
123
123
|
direction: i ? "row" : "column",
|
|
@@ -241,7 +241,7 @@ const J = ({
|
|
|
241
241
|
}) => {
|
|
242
242
|
const { selectedIndex: l, scrollTo: n, slidesCount: f } = v(), i = L();
|
|
243
243
|
return f <= 1 ? null : /* @__PURE__ */ m(
|
|
244
|
-
|
|
244
|
+
F,
|
|
245
245
|
{
|
|
246
246
|
count: f,
|
|
247
247
|
activeIndex: l,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Carousel as r, CarouselContent as s, CarouselDots as u, CarouselItem as C, CarouselNext as a, CarouselPrevious as l } from "./Carousel.js";
|
|
2
|
+
export {
|
|
3
|
+
r as Carousel,
|
|
4
|
+
s as CarouselContent,
|
|
5
|
+
u as CarouselDots,
|
|
6
|
+
C as CarouselItem,
|
|
7
|
+
a as CarouselNext,
|
|
8
|
+
l as CarouselPrevious
|
|
9
|
+
};
|
|
@@ -2,10 +2,10 @@ import { jsxs as l, Fragment as N, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import { Slot as C } from "@radix-ui/react-slot";
|
|
4
4
|
import { cva as w } from "class-variance-authority";
|
|
5
|
-
import { Flex as x } from "../Flex/Flex.js";
|
|
6
5
|
import { cn as t } from "../../utils/cn.js";
|
|
7
|
-
import {
|
|
6
|
+
import { Flex as x } from "../Flex/Flex.js";
|
|
8
7
|
import { Skeleton as n } from "../Skeleton/Skeleton.js";
|
|
8
|
+
import { Typography as f } from "../Typography/Typography.js";
|
|
9
9
|
const S = w([
|
|
10
10
|
"group inline-flex w-full items-center gap-md no-underline",
|
|
11
11
|
"py-sm pr-2xl pl-sm",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as v, useId as N } from "react";
|
|
3
3
|
import * as c from "@radix-ui/react-checkbox";
|
|
4
|
-
import { CheckMinus as z, Checked as w } from "../Icons/CustomIcons.js";
|
|
5
4
|
import { cn as a } from "../../utils/cn.js";
|
|
5
|
+
import { CheckMinus as z, Checked as w } from "../Icons/CustomIcons.js";
|
|
6
6
|
import { Typography as n } from "../Typography/Typography.js";
|
|
7
7
|
const C = v(
|
|
8
8
|
({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
3
|
import { cva as m } from "class-variance-authority";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { cn as f } from "../../utils/cn.js";
|
|
5
|
+
import { CheckCircleBold as p } from "@solar-icons/react-perf";
|
|
6
|
+
import { EmptyCircle as x } from "../Icons/CustomIcons.js";
|
|
7
7
|
import { Typography as b } from "../Typography/Typography.js";
|
|
8
8
|
const v = m(
|
|
9
9
|
[
|
|
@@ -73,11 +73,11 @@ const v = m(
|
|
|
73
73
|
"aria-disabled": e,
|
|
74
74
|
disabled: e,
|
|
75
75
|
"data-state": r ? "checked" : "unchecked",
|
|
76
|
-
className:
|
|
76
|
+
className: f(v({ checked: r, disabled: e, className: a })),
|
|
77
77
|
onClick: d,
|
|
78
78
|
...s,
|
|
79
79
|
children: [
|
|
80
|
-
r ? /* @__PURE__ */ t(
|
|
80
|
+
r ? /* @__PURE__ */ t(p, {}) : /* @__PURE__ */ t(x, {}),
|
|
81
81
|
/* @__PURE__ */ t(
|
|
82
82
|
b,
|
|
83
83
|
{
|
|
@@ -2,16 +2,16 @@ import { jsx as n, jsxs as ot } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as et, useState as k, useRef as Y, useEffect as it } from "react";
|
|
3
3
|
import { useIsDesktop as ft } from "../../hooks/use-is-desktop.js";
|
|
4
4
|
import { useIsMobile as ct } from "../../hooks/use-is-mobile.js";
|
|
5
|
-
import { Popover as pt, PopoverTrigger as nt, PopoverContent as dt } from "../Popover/Popover.js";
|
|
6
|
-
import { getDateRange as ut } from "./utils/getDateRange.js";
|
|
7
|
-
import { resolveOneDayRange as bt } from "./utils/resolveOneDayRange.js";
|
|
8
|
-
import { Input as st } from "../Input/Input.js";
|
|
9
|
-
import { Calendar as A } from "../Calendar/Calendar.js";
|
|
10
5
|
import { cn as l } from "../../utils/cn.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { CalendarBold as
|
|
6
|
+
import { formatDate as pt } from "../../utils/formatDate.js";
|
|
7
|
+
import { formatDateRange as nt } from "../../utils/formatDateRange.js";
|
|
8
|
+
import { Calendar as A } from "../Calendar/Calendar.js";
|
|
9
|
+
import { CalendarBold as dt } from "@solar-icons/react-perf";
|
|
10
|
+
import { Input as ut } from "../Input/Input.js";
|
|
11
|
+
import { Popover as bt, PopoverTrigger as st, PopoverContent as xt } from "../Popover/Popover.js";
|
|
12
|
+
import { typographyVariants as lt } from "../Typography/Typography.js";
|
|
13
|
+
import { getDateRange as yt } from "./utils/getDateRange.js";
|
|
14
|
+
import { resolveOneDayRange as mt } from "./utils/resolveOneDayRange.js";
|
|
15
15
|
const vt = et(
|
|
16
16
|
({
|
|
17
17
|
alignCalendar: G,
|
|
@@ -64,7 +64,7 @@ const vt = et(
|
|
|
64
64
|
"button",
|
|
65
65
|
{
|
|
66
66
|
className: l(
|
|
67
|
-
|
|
67
|
+
lt({
|
|
68
68
|
variant: "cta",
|
|
69
69
|
weight: "medium",
|
|
70
70
|
size: "sm",
|
|
@@ -77,13 +77,13 @@ const vt = et(
|
|
|
77
77
|
o == null ? void 0 : o.leftPanelButton
|
|
78
78
|
),
|
|
79
79
|
onClick: () => {
|
|
80
|
-
const p =
|
|
80
|
+
const p = yt(t.type);
|
|
81
81
|
u(p), f && (c(p), r == null || r(p));
|
|
82
82
|
},
|
|
83
83
|
children: t.name
|
|
84
84
|
},
|
|
85
85
|
t.type
|
|
86
|
-
)), D = H ?? (y === "single" ?
|
|
86
|
+
)), D = H ?? (y === "single" ? pt : nt), F = f ? e !== void 0 ? e : i : j, E = {
|
|
87
87
|
...a,
|
|
88
88
|
numberOfMonths: Z ?? (h ? 2 : 1),
|
|
89
89
|
hideNavigation: _,
|
|
@@ -103,7 +103,7 @@ const vt = et(
|
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
return /* @__PURE__ */ ot(
|
|
106
|
-
|
|
106
|
+
bt,
|
|
107
107
|
{
|
|
108
108
|
open: P,
|
|
109
109
|
onOpenChange: (t) => {
|
|
@@ -119,7 +119,7 @@ const vt = et(
|
|
|
119
119
|
// interactive elements inside another button.
|
|
120
120
|
S()
|
|
121
121
|
) : /* @__PURE__ */ n(
|
|
122
|
-
|
|
122
|
+
st,
|
|
123
123
|
{
|
|
124
124
|
className: l(
|
|
125
125
|
"group cursor-pointer rounded-full text-left outline-0",
|
|
@@ -127,7 +127,7 @@ const vt = et(
|
|
|
127
127
|
),
|
|
128
128
|
disabled: R,
|
|
129
129
|
children: /* @__PURE__ */ n(
|
|
130
|
-
|
|
130
|
+
ut,
|
|
131
131
|
{
|
|
132
132
|
ref: N,
|
|
133
133
|
value: F ? D(F) : "",
|
|
@@ -144,13 +144,13 @@ const vt = et(
|
|
|
144
144
|
o == null ? void 0 : o.input,
|
|
145
145
|
"group-hover:border-comp-input-stroke-hover group-focus-visible:border-comp-input-stroke-focused"
|
|
146
146
|
),
|
|
147
|
-
suffix: /* @__PURE__ */ n(
|
|
147
|
+
suffix: /* @__PURE__ */ n(dt, { className: "size-icon-medium text-icon-dark-secondary-def" })
|
|
148
148
|
}
|
|
149
149
|
)
|
|
150
150
|
}
|
|
151
151
|
),
|
|
152
152
|
/* @__PURE__ */ n(
|
|
153
|
-
|
|
153
|
+
xt,
|
|
154
154
|
{
|
|
155
155
|
...W,
|
|
156
156
|
className: l("flex w-auto p-0", o == null ? void 0 : o.popoverContent),
|
|
@@ -176,7 +176,7 @@ const vt = et(
|
|
|
176
176
|
min: B ? 1 : void 0,
|
|
177
177
|
selected: i,
|
|
178
178
|
onSelect: (t) => {
|
|
179
|
-
const p = B ?
|
|
179
|
+
const p = B ? mt(
|
|
180
180
|
i,
|
|
181
181
|
t,
|
|
182
182
|
x
|