@vkzstudio/muza-ui 1.5.1 → 1.6.0
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.d.ts.map +1 -1
- package/dist/components/Button/Button.js +44 -42
- package/dist/components/Button/Button.stories.d.ts.map +1 -1
- 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.d.ts +99 -2
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.js +208 -151
- package/dist/components/Carousel/Carousel.stories.d.ts +2 -0
- package/dist/components/Carousel/Carousel.stories.d.ts.map +1 -1
- package/dist/components/Carousel/index.js +10 -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.d.ts +22 -3
- package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.js +131 -105
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +3 -2
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -1
- 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/MarketNav/MarketNav.examples.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +40 -41
- 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.js +7 -7
- 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.d.ts.map +1 -1
- package/dist/components/Select/Select.js +77 -103
- package/dist/components/Select/Select.stories.d.ts.map +1 -1
- package/dist/components/Select/SelectTrigger.d.ts +54 -0
- package/dist/components/Select/SelectTrigger.d.ts.map +1 -0
- package/dist/components/Select/SelectTrigger.js +57 -0
- package/dist/components/Select/SelectTrigger.stories.d.ts +11 -0
- package/dist/components/Select/SelectTrigger.stories.d.ts.map +1 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +8 -0
- package/dist/components/Select/utils.d.ts +10 -1
- package/dist/components/Select/utils.d.ts.map +1 -1
- package/dist/components/Select/utils.js +3 -5
- 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 +3 -3
- 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/components/WebCheckoutNav/WebCheckoutNav.examples.d.ts.map +1 -1
- package/dist/index.js +434 -429
- package/dist/muza-ui.css +1 -1
- package/dist/utils/index.js +13 -0
- package/llms-full.md +133 -2
- package/llms.txt +2 -0
- package/package.json +23 -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
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAI5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEj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AAI,CAAC,YAAY,CAAC,OAAO,cAAc,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAChE;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,EACJ,SAAS,GACT,WAAW,GACX,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,YAAY,CAAA;IAChB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAA;IACzC,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;IAC9B;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC5B;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,wFAAwF;IACxF,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,MAAM,uFA8FX,CAAA;AAGD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1,69 +1,71 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { Slot as
|
|
1
|
+
import { jsxs as h, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { Slot as j, Slottable as c } from "@radix-ui/react-slot";
|
|
4
4
|
import "class-variance-authority";
|
|
5
|
+
import { cn as b } from "../../utils/cn.js";
|
|
6
|
+
import { Typography as v } from "../Typography/Typography.js";
|
|
5
7
|
import { ButtonLoader as w } from "./ButtonLoader.js";
|
|
6
|
-
import { buttonVariants as
|
|
7
|
-
|
|
8
|
-
import { Typography as R } from "../Typography/Typography.js";
|
|
9
|
-
const S = m.forwardRef(
|
|
8
|
+
import { buttonVariants as R } from "./buttonVariants.js";
|
|
9
|
+
const S = s.forwardRef(
|
|
10
10
|
({
|
|
11
11
|
className: y,
|
|
12
|
-
variant:
|
|
13
|
-
size:
|
|
14
|
-
fullWidth:
|
|
15
|
-
asChild:
|
|
16
|
-
icon:
|
|
17
|
-
iconPosition:
|
|
18
|
-
secondIcon:
|
|
12
|
+
variant: x,
|
|
13
|
+
size: o,
|
|
14
|
+
fullWidth: N,
|
|
15
|
+
asChild: e = !1,
|
|
16
|
+
icon: m,
|
|
17
|
+
iconPosition: l = "start",
|
|
18
|
+
secondIcon: n,
|
|
19
19
|
ghost: d = !1,
|
|
20
20
|
danger: f = !1,
|
|
21
|
-
loading:
|
|
21
|
+
loading: p = !1,
|
|
22
22
|
children: t,
|
|
23
|
-
...
|
|
24
|
-
},
|
|
25
|
-
const
|
|
26
|
-
|
|
23
|
+
...g
|
|
24
|
+
}, B) => {
|
|
25
|
+
const E = e ? j : "button", i = o === "icon" || d, u = (V) => /* @__PURE__ */ a(
|
|
26
|
+
v,
|
|
27
27
|
{
|
|
28
28
|
variant: "cta",
|
|
29
|
-
size:
|
|
29
|
+
size: o === "sm" || o === "xs" ? "sm" : "base",
|
|
30
30
|
weight: "medium",
|
|
31
31
|
component: "span",
|
|
32
32
|
fixY: !0,
|
|
33
|
-
className:
|
|
34
|
-
"opacity-0":
|
|
33
|
+
className: b("transition-opacity", {
|
|
34
|
+
"opacity-0": p
|
|
35
35
|
}),
|
|
36
|
-
children:
|
|
36
|
+
children: V
|
|
37
37
|
}
|
|
38
|
-
),
|
|
38
|
+
), r = e && s.isValidElement(t) ? t.props.children : t, L = () => e ? s.isValidElement(t) ? /* @__PURE__ */ a(c, { children: s.cloneElement(
|
|
39
39
|
t,
|
|
40
40
|
void 0,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
// Skip the label wrapper for icon-only children so the flex gap
|
|
42
|
+
// doesn't offset the icon.
|
|
43
|
+
r && u(r)
|
|
44
|
+
) }) : /* @__PURE__ */ a(c, { children: t }) : t && u(t);
|
|
45
|
+
return /* @__PURE__ */ h(
|
|
46
|
+
E,
|
|
45
47
|
{
|
|
46
|
-
className:
|
|
47
|
-
|
|
48
|
-
variant:
|
|
49
|
-
size:
|
|
50
|
-
fullWidth:
|
|
51
|
-
iconOnly:
|
|
48
|
+
className: b(
|
|
49
|
+
R({
|
|
50
|
+
variant: x,
|
|
51
|
+
size: o,
|
|
52
|
+
fullWidth: N,
|
|
53
|
+
iconOnly: o === "icon" || !r,
|
|
52
54
|
ghost: i,
|
|
53
55
|
danger: f,
|
|
54
|
-
loading:
|
|
56
|
+
loading: p,
|
|
55
57
|
className: y
|
|
56
58
|
})
|
|
57
59
|
),
|
|
58
|
-
ref:
|
|
60
|
+
ref: B,
|
|
59
61
|
"data-ghost": i,
|
|
60
62
|
"data-danger": f,
|
|
61
|
-
...
|
|
63
|
+
...g,
|
|
62
64
|
children: [
|
|
63
|
-
|
|
64
|
-
(
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
p && /* @__PURE__ */ a("span", { className: "absolute", children: /* @__PURE__ */ a(w, {}) }),
|
|
66
|
+
(n || l === "start") && m,
|
|
67
|
+
L(),
|
|
68
|
+
n || l === "end" && m
|
|
67
69
|
]
|
|
68
70
|
}
|
|
69
71
|
);
|
|
@@ -72,5 +74,5 @@ const S = m.forwardRef(
|
|
|
72
74
|
S.displayName = "Button";
|
|
73
75
|
export {
|
|
74
76
|
S as Button,
|
|
75
|
-
|
|
77
|
+
R as buttonVariants
|
|
76
78
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.stories.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAA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AA;AAED,eAAO,MAAM,QAAQ,EAAE,KAoCtB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAgBvB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAyCzB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAkDtB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAmF/B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KA8D1B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAgB5B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAgB3B,CAAA;AAcD,eAAO,MAAM,gBAAgB,EAAE,KAqM9B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAgC/B,CAAA"}
|
|
@@ -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,
|
|
@@ -66,6 +66,10 @@ export interface CarouselProps {
|
|
|
66
66
|
* Embla plugins forwarded as the second argument to `useEmblaCarousel`
|
|
67
67
|
* (autoplay, classnames, fade, etc.).
|
|
68
68
|
*
|
|
69
|
+
* For a self-running carousel, prefer the {@link CarouselProps.autoplay}
|
|
70
|
+
* prop — it appends this same plugin with sensible pause/resume defaults.
|
|
71
|
+
* Reach for `plugins` directly when you need Embla's full option set.
|
|
72
|
+
*
|
|
69
73
|
* @example
|
|
70
74
|
* import Autoplay from 'embla-carousel-autoplay'
|
|
71
75
|
* <Carousel plugins={[Autoplay({ delay: 4000 })]}>...</Carousel>
|
|
@@ -73,6 +77,40 @@ export interface CarouselProps {
|
|
|
73
77
|
* @see CarouselPlugin
|
|
74
78
|
*/
|
|
75
79
|
plugins?: CarouselPlugin;
|
|
80
|
+
/**
|
|
81
|
+
* Advances to the next slide on a timer, with no user input. A convenience
|
|
82
|
+
* layer over {@link CarouselProps.plugins} — it appends Embla's official
|
|
83
|
+
* `Autoplay` plugin, so consumer-supplied plugins keep working alongside it.
|
|
84
|
+
*
|
|
85
|
+
* Pause/resume behaviour:
|
|
86
|
+
* - Pauses while the pointer hovers the carousel, resumes on leave (mouse
|
|
87
|
+
* only — a touch tap does not count as hovering).
|
|
88
|
+
* - Pauses on pointer down and resumes once the slide settles; a tap that
|
|
89
|
+
* never moves the track resumes too.
|
|
90
|
+
*
|
|
91
|
+
* Does nothing when the user's `prefers-reduced-motion: reduce` setting is
|
|
92
|
+
* active, when there is only one slide, or when `plugins` already contains
|
|
93
|
+
* an `Autoplay` instance (yours wins — a second one is never stacked).
|
|
94
|
+
*
|
|
95
|
+
* With `options={{ loop: true }}` the last slide wraps seamlessly to the
|
|
96
|
+
* first; without it, the carousel rewinds to the first slide instead.
|
|
97
|
+
*
|
|
98
|
+
* @default false
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* <Carousel autoplay options={{ loop: true }}>...</Carousel>
|
|
102
|
+
*/
|
|
103
|
+
autoplay?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Milliseconds a slide stays on screen before {@link CarouselProps.autoplay}
|
|
106
|
+
* advances to the next one. Ignored when `autoplay` is `false`.
|
|
107
|
+
*
|
|
108
|
+
* @default 5000
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* <Carousel autoplay autoplayDelay={3000}>...</Carousel>
|
|
112
|
+
*/
|
|
113
|
+
autoplayDelay?: number;
|
|
76
114
|
/**
|
|
77
115
|
* Controls scroll direction. Also drives keyboard navigation
|
|
78
116
|
* (←/→ for horizontal, ↑/↓ for vertical).
|
|
@@ -92,7 +130,66 @@ export interface CarouselProps {
|
|
|
92
130
|
*/
|
|
93
131
|
setApi?: (api: CarouselApi) => void;
|
|
94
132
|
}
|
|
95
|
-
|
|
133
|
+
/**
|
|
134
|
+
* Carousel state and controls shared with every descendant, and the return
|
|
135
|
+
* value of {@link useCarousel}. Alongside the members below it carries the
|
|
136
|
+
* root's own {@link CarouselProps} (`options`, `orientation`, `plugins`).
|
|
137
|
+
*/
|
|
138
|
+
export interface CarouselContextValue extends CarouselProps {
|
|
139
|
+
/**
|
|
140
|
+
* Ref callback for the scrolling viewport, applied by `CarouselContent`.
|
|
141
|
+
* Only needed when replacing `CarouselContent` with your own element.
|
|
142
|
+
*/
|
|
143
|
+
carouselRef: ReturnType<typeof useEmblaCarousel>[0];
|
|
144
|
+
/**
|
|
145
|
+
* Imperative Embla API, or `undefined` until the carousel has mounted.
|
|
146
|
+
*
|
|
147
|
+
* @see CarouselApi
|
|
148
|
+
*/
|
|
149
|
+
api: CarouselApi;
|
|
150
|
+
/** Scrolls to the previous slide. No-op at the start without `loop`. */
|
|
151
|
+
scrollPrev: () => void;
|
|
152
|
+
/** Scrolls to the next slide. No-op at the end without `loop`. */
|
|
153
|
+
scrollNext: () => void;
|
|
154
|
+
/** Whether a previous slide exists to scroll to. */
|
|
155
|
+
canScrollPrev: boolean;
|
|
156
|
+
/** Whether a next slide exists to scroll to. */
|
|
157
|
+
canScrollNext: boolean;
|
|
158
|
+
/** Index of the active slide (0-based). */
|
|
159
|
+
selectedIndex: number;
|
|
160
|
+
/** Scrolls to a slide by index (0-based). */
|
|
161
|
+
scrollTo: (index: number) => void;
|
|
162
|
+
/** Number of scroll snap points — i.e. navigable positions, not slides. */
|
|
163
|
+
slidesCount: number;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Reads the state and controls of the nearest `Carousel` ancestor. Use it to
|
|
167
|
+
* build custom controls — a slide counter, a progress bar, a bespoke dot
|
|
168
|
+
* strip — without threading the Embla API through `setApi` yourself.
|
|
169
|
+
*
|
|
170
|
+
* Throws when called outside a `<Carousel>`.
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* const SlideCounter = () => {
|
|
174
|
+
* const { selectedIndex, slidesCount } = useCarousel()
|
|
175
|
+
* return <span>{selectedIndex + 1} / {slidesCount}</span>
|
|
176
|
+
* }
|
|
177
|
+
*
|
|
178
|
+
* <Carousel>
|
|
179
|
+
* <CarouselContent>...</CarouselContent>
|
|
180
|
+
* <SlideCounter />
|
|
181
|
+
* </Carousel>
|
|
182
|
+
*
|
|
183
|
+
* @see CarouselContextValue
|
|
184
|
+
*/
|
|
185
|
+
declare const useCarousel: () => CarouselContextValue;
|
|
186
|
+
/**
|
|
187
|
+
* Full prop set accepted by the Carousel root element — {@link CarouselProps}
|
|
188
|
+
* plus all standard `<div>` attributes.
|
|
189
|
+
*/
|
|
190
|
+
export interface CarouselRootProps extends React.HTMLAttributes<HTMLDivElement>, CarouselProps {
|
|
191
|
+
}
|
|
192
|
+
declare const Carousel: React.ForwardRefExoticComponent<CarouselRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
96
193
|
/**
|
|
97
194
|
* Props for the CarouselContent component. Wraps the scrolling track and
|
|
98
195
|
* lays out its `CarouselItem` children along the active orientation axis.
|
|
@@ -172,5 +269,5 @@ export interface CarouselDotsProps {
|
|
|
172
269
|
buttonAriaLabel?: string;
|
|
173
270
|
}
|
|
174
271
|
declare const CarouselDots: React.FC<CarouselDotsProps>;
|
|
175
|
-
export { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, CarouselDots, };
|
|
272
|
+
export { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, CarouselDots, useCarousel, };
|
|
176
273
|
//# sourceMappingURL=Carousel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,gBAAgB,EAAE,EACvB,KAAK,oBAAoB,EAC1B,MAAM,sBAAsB,CAAA;AAI7B,OAAO,EAAE,WAAW,EAAE,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