@vkzstudio/muza-ui 1.5.1 → 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.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.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
|
@@ -3,18 +3,18 @@ import * as w from "react";
|
|
|
3
3
|
import { Slot as pe } from "@radix-ui/react-slot";
|
|
4
4
|
import { cva as Z } from "class-variance-authority";
|
|
5
5
|
import { useMuzaTranslationContext as he } from "../../translations/TranslationContext.js";
|
|
6
|
-
import { Button as ue } from "../Button/Button.js";
|
|
7
|
-
import { CategoryIcon as ge } from "../CategoryIcon/CategoryIcon.js";
|
|
8
6
|
import { cn as n } from "../../utils/cn.js";
|
|
9
|
-
import { Typography as f } from "../Typography/Typography.js";
|
|
10
7
|
import { disabledLinkProps as X } from "../../utils/disabledLinkProps.js";
|
|
8
|
+
import { Button as ue } from "../Button/Button.js";
|
|
9
|
+
import { CategoryIcon as ge } from "../CategoryIcon/CategoryIcon.js";
|
|
10
|
+
import { DotDivider as fe } from "../DotDivider/DotDivider.js";
|
|
11
11
|
import { Flex as m } from "../Flex/Flex.js";
|
|
12
|
-
import { MapBold as fe } from "@solar-icons/react-perf";
|
|
13
12
|
import { HeartButton as ve } from "../HeartButton/HeartButton.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { DotDivider as we } from "../DotDivider/DotDivider.js";
|
|
13
|
+
import { MapBold as be } from "@solar-icons/react-perf";
|
|
14
|
+
import { Rating as we } from "../Rating/Rating.js";
|
|
17
15
|
import { Skeleton as d } from "../Skeleton/Skeleton.js";
|
|
16
|
+
import { Tag as T } from "../Tag/Tag.js";
|
|
17
|
+
import { Typography as f } from "../Typography/Typography.js";
|
|
18
18
|
const xe = Z(
|
|
19
19
|
"group relative inline-flex border border-solid transition-colors focus-visible:outline-none data-[disabled=true]:pointer-events-none",
|
|
20
20
|
{
|
|
@@ -39,7 +39,7 @@ const xe = Z(
|
|
|
39
39
|
},
|
|
40
40
|
defaultVariants: { variant: "search" }
|
|
41
41
|
}), D = ({ rating: t, ratingCount: a, disabled: i }) => /* @__PURE__ */ r(m, { align: "center", gap: "xs", children: [
|
|
42
|
-
/* @__PURE__ */ e(
|
|
42
|
+
/* @__PURE__ */ e(we, { value: t, allowHalf: !0, disabled: i }),
|
|
43
43
|
a != null && /* @__PURE__ */ r(
|
|
44
44
|
f,
|
|
45
45
|
{
|
|
@@ -391,7 +391,7 @@ const re = w.forwardRef(
|
|
|
391
391
|
className: "hidden min-w-0 md:flex",
|
|
392
392
|
children: [
|
|
393
393
|
U,
|
|
394
|
-
o && c && /* @__PURE__ */ e(
|
|
394
|
+
o && c && /* @__PURE__ */ e(fe, {}),
|
|
395
395
|
Q
|
|
396
396
|
]
|
|
397
397
|
}
|
|
@@ -489,7 +489,7 @@ const re = w.forwardRef(
|
|
|
489
489
|
variant: "secondary",
|
|
490
490
|
ghost: !0,
|
|
491
491
|
size: "xs",
|
|
492
|
-
icon: /* @__PURE__ */ e(
|
|
492
|
+
icon: /* @__PURE__ */ e(be, {}),
|
|
493
493
|
onClick: A,
|
|
494
494
|
disabled: s,
|
|
495
495
|
className: "relative z-10",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as u, useState as p } from "react";
|
|
3
3
|
import { useMuzaTranslationContext as c } from "../../translations/TranslationContext.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { cn as f } from "../../utils/cn.js";
|
|
5
|
+
import { EyeBold as w } from "@solar-icons/react-perf";
|
|
6
|
+
import { EyeClosed as b } from "../Icons/CustomIcons.js";
|
|
7
|
+
import { Input as h } from "../Input/Input.js";
|
|
8
8
|
const P = u(
|
|
9
9
|
({
|
|
10
10
|
initialShowPassword: t,
|
|
@@ -16,7 +16,7 @@ const P = u(
|
|
|
16
16
|
t || !1
|
|
17
17
|
), m = e ? n ?? r.passwordInput.hidePasswordAriaLabel : i ?? r.passwordInput.showPasswordAriaLabel;
|
|
18
18
|
return /* @__PURE__ */ o(
|
|
19
|
-
|
|
19
|
+
h,
|
|
20
20
|
{
|
|
21
21
|
...s,
|
|
22
22
|
ref: d,
|
|
@@ -24,7 +24,7 @@ const P = u(
|
|
|
24
24
|
suffix: /* @__PURE__ */ o(
|
|
25
25
|
"button",
|
|
26
26
|
{
|
|
27
|
-
className:
|
|
27
|
+
className: f("cursor-pointer focus-visible-default", {
|
|
28
28
|
"pointer-events-none cursor-not-allowed": s.disabled
|
|
29
29
|
}),
|
|
30
30
|
onMouseDown: (a) => a.preventDefault(),
|
|
@@ -32,7 +32,7 @@ const P = u(
|
|
|
32
32
|
disabled: s.disabled,
|
|
33
33
|
type: "button",
|
|
34
34
|
"aria-label": m,
|
|
35
|
-
children: e ? /* @__PURE__ */ o(
|
|
35
|
+
children: e ? /* @__PURE__ */ o(w, { "aria-hidden": "true", className: "size-icon-medium" }) : /* @__PURE__ */ o(b, { "aria-hidden": "true", className: "size-icon-medium" })
|
|
36
36
|
}
|
|
37
37
|
)
|
|
38
38
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as p, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useState as u, useMemo as a } from "react";
|
|
3
3
|
import { parseCountry as v, FlagImage as l } from "react-international-phone";
|
|
4
|
-
import { DropdownSearchMenu as M, DropdownSearchMenuTrigger as y, DropdownSearchMenuContent as z, DropdownSearchMenuItem as D } from "../DropdownSearchMenu/DropdownSearchMenu.js";
|
|
5
4
|
import { cn as f } from "../../utils/cn.js";
|
|
6
|
-
import {
|
|
7
|
-
import { AltArrowUpOutline as
|
|
5
|
+
import { DropdownSearchMenu as M, DropdownSearchMenuTrigger as y, DropdownSearchMenuContent as z, DropdownSearchMenuItem as D } from "../DropdownSearchMenu/DropdownSearchMenu.js";
|
|
6
|
+
import { AltArrowUpOutline as N } from "@solar-icons/react-perf";
|
|
7
|
+
import { Typography as A } from "../Typography/Typography.js";
|
|
8
8
|
const O = ({
|
|
9
9
|
selectedCountry: c,
|
|
10
10
|
onCountryChange: h,
|
|
@@ -53,7 +53,7 @@ const O = ({
|
|
|
53
53
|
children: [
|
|
54
54
|
/* @__PURE__ */ r(l, { iso2: n.iso2, size: "20px" }),
|
|
55
55
|
/* @__PURE__ */ p(
|
|
56
|
-
|
|
56
|
+
A,
|
|
57
57
|
{
|
|
58
58
|
size: "input",
|
|
59
59
|
weight: "medium",
|
|
@@ -67,7 +67,7 @@ const O = ({
|
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
69
|
/* @__PURE__ */ r(
|
|
70
|
-
|
|
70
|
+
N,
|
|
71
71
|
{
|
|
72
72
|
"aria-hidden": "true",
|
|
73
73
|
className: f(
|
|
@@ -2,11 +2,11 @@ import { jsx as u, jsxs as W } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as Y, useId as B, useRef as G, useState as H, useEffect as J } from "react";
|
|
3
3
|
import { cva as K } from "class-variance-authority";
|
|
4
4
|
import { usePhoneInput as O, defaultCountries as Q } from "react-international-phone";
|
|
5
|
-
import {
|
|
6
|
-
import { useMuzaTranslations as X } from "../../translations/TranslationContext.js";
|
|
7
|
-
import { FormField as Z } from "../FormField/FormField.js";
|
|
5
|
+
import { useMuzaTranslations as U } from "../../translations/TranslationContext.js";
|
|
8
6
|
import { cn as v } from "../../utils/cn.js";
|
|
9
|
-
import {
|
|
7
|
+
import { FormField as X } from "../FormField/FormField.js";
|
|
8
|
+
import { typographyVariants as Z } from "../Typography/Typography.js";
|
|
9
|
+
import { CountrySelector as _ } from "./CountrySelector.js";
|
|
10
10
|
const q = K(
|
|
11
11
|
[
|
|
12
12
|
"group flex items-center",
|
|
@@ -33,7 +33,7 @@ const q = K(
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
), ee = (t) => v(
|
|
36
|
-
|
|
36
|
+
Z({
|
|
37
37
|
size: t === "xs" || t === "sm" ? "input" : "base",
|
|
38
38
|
weight: "medium",
|
|
39
39
|
fixY: !0
|
|
@@ -64,7 +64,7 @@ const q = K(
|
|
|
64
64
|
noResultsText: F,
|
|
65
65
|
...b
|
|
66
66
|
}, e) => {
|
|
67
|
-
const s =
|
|
67
|
+
const s = U(), S = B(), r = k ?? S, y = c ? `${r}-hint` : void 0, x = p ? `${r}-label` : void 0, n = G(null), I = m !== void 0, [j, A] = H(C ?? ""), L = I ? m : j, { inputValue: M, country: T, setCountry: $, handlePhoneValueChange: D } = O({
|
|
68
68
|
defaultCountry: V,
|
|
69
69
|
value: L,
|
|
70
70
|
countries: h,
|
|
@@ -86,7 +86,7 @@ const q = K(
|
|
|
86
86
|
return J(() => {
|
|
87
87
|
e && (typeof e == "function" ? e(n.current) : e.current = n.current);
|
|
88
88
|
}, [e]), /* @__PURE__ */ u(
|
|
89
|
-
|
|
89
|
+
X,
|
|
90
90
|
{
|
|
91
91
|
label: p,
|
|
92
92
|
hint: c,
|
|
@@ -100,7 +100,7 @@ const q = K(
|
|
|
100
100
|
infoTooltip: R,
|
|
101
101
|
children: /* @__PURE__ */ W("div", { className: v(q({ size: d, error: o }), t), children: [
|
|
102
102
|
/* @__PURE__ */ u(
|
|
103
|
-
|
|
103
|
+
_,
|
|
104
104
|
{
|
|
105
105
|
selectedCountry: T.iso2,
|
|
106
106
|
onCountryChange: (a) => $(a),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import * as a from "react";
|
|
3
3
|
import { useMuzaTranslationContext as _ } from "../../translations/TranslationContext.js";
|
|
4
|
-
import {
|
|
5
|
-
import { resolvePluralTemplate as C } from "../../translations/resolvePluralTemplate.js";
|
|
4
|
+
import { resolvePluralTemplate as z } from "../../translations/resolvePluralTemplate.js";
|
|
6
5
|
import { cn as y } from "../../utils/cn.js";
|
|
7
|
-
import { StarBold as
|
|
6
|
+
import { StarBold as C } from "@solar-icons/react-perf";
|
|
7
|
+
import { HalfStar as F } from "../Icons/CustomIcons.js";
|
|
8
8
|
const T = (l, m, p) => Array.from({ length: m }, (s, n) => {
|
|
9
9
|
const c = n + 1;
|
|
10
10
|
return p ? l >= c - 0.25 ? "full" : l >= c - 0.75 ? "half" : "empty" : l >= c - 0.5 ? "full" : "empty";
|
|
@@ -50,7 +50,7 @@ const T = (l, m, p) => Array.from({ length: m }, (s, n) => {
|
|
|
50
50
|
),
|
|
51
51
|
...R,
|
|
52
52
|
children: H.map((e, t) => {
|
|
53
|
-
const o = t + 1, v = /* @__PURE__ */ f(e === "half" ?
|
|
53
|
+
const o = t + 1, v = /* @__PURE__ */ f(e === "half" ? F : C, { className: y(e === "empty" ? "text-comp-rating-star-empty" : "text-comp-rating-star-default", "transition-colors") });
|
|
54
54
|
return i ? /* @__PURE__ */ f(
|
|
55
55
|
"button",
|
|
56
56
|
{
|
|
@@ -60,7 +60,7 @@ const T = (l, m, p) => Array.from({ length: m }, (s, n) => {
|
|
|
60
60
|
type: "button",
|
|
61
61
|
role: "radio",
|
|
62
62
|
"aria-checked": Math.ceil(r) === o,
|
|
63
|
-
"aria-label": (I ??
|
|
63
|
+
"aria-label": (I ?? z(
|
|
64
64
|
o,
|
|
65
65
|
D,
|
|
66
66
|
M.rating.starLabel
|
|
@@ -2,11 +2,11 @@ import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import * as n from "react";
|
|
3
3
|
import { useMuzaTranslationContext as b } from "../../translations/TranslationContext.js";
|
|
4
4
|
import { resolvePluralTemplate as M } from "../../translations/resolvePluralTemplate.js";
|
|
5
|
-
import { Card as B } from "../Card/Card.js";
|
|
6
5
|
import { cn as p } from "../../utils/cn.js";
|
|
7
|
-
import {
|
|
6
|
+
import { Card as B } from "../Card/Card.js";
|
|
8
7
|
import { Flex as C } from "../Flex/Flex.js";
|
|
9
8
|
import { Rating as z } from "../Rating/Rating.js";
|
|
9
|
+
import { Typography as u } from "../Typography/Typography.js";
|
|
10
10
|
const T = n.forwardRef(
|
|
11
11
|
({
|
|
12
12
|
value: i,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReorderableGroup as o, ReorderableHandle as a, ReorderableItem as d, ReorderableStaticItem as l, useReorderableGroup as b, useReorderableItem as t } from "./Reorderable.js";
|
|
2
|
+
export {
|
|
3
|
+
o as ReorderableGroup,
|
|
4
|
+
a as ReorderableHandle,
|
|
5
|
+
d as ReorderableItem,
|
|
6
|
+
l as ReorderableStaticItem,
|
|
7
|
+
b as useReorderableGroup,
|
|
8
|
+
t as useReorderableItem
|
|
9
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as e, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as S } from "react";
|
|
3
3
|
import { motion as l } from "motion/react";
|
|
4
|
-
import { ReorderableGroup as k, ReorderableItem as w, ReorderableHandle as z } from "../Reorderable/Reorderable.js";
|
|
5
|
-
import { Reorder as G } from "../Icons/CustomIcons.js";
|
|
6
4
|
import { cn as d } from "../../utils/cn.js";
|
|
5
|
+
import "@solar-icons/react-perf";
|
|
6
|
+
import { Reorder as k } from "../Icons/CustomIcons.js";
|
|
7
|
+
import { ReorderableGroup as w, ReorderableItem as z, ReorderableHandle as G } from "../Reorderable/Reorderable.js";
|
|
7
8
|
import { typographyVariants as W, Typography as K } from "../Typography/Typography.js";
|
|
8
9
|
const f = 72, N = 20, R = 24, U = 4, F = ({
|
|
9
10
|
data: g,
|
|
@@ -64,7 +65,7 @@ const f = 72, N = 20, R = 24, U = 4, F = ({
|
|
|
64
65
|
)
|
|
65
66
|
] }) }),
|
|
66
67
|
/* @__PURE__ */ e(
|
|
67
|
-
|
|
68
|
+
w,
|
|
68
69
|
{
|
|
69
70
|
values: g,
|
|
70
71
|
onReorder: x,
|
|
@@ -80,7 +81,7 @@ const f = 72, N = 20, R = 24, U = 4, F = ({
|
|
|
80
81
|
children: (o) => o.map((a, p) => {
|
|
81
82
|
const D = (m == null ? void 0 : m(a, p)) ?? !1, t = u || D, b = !!n && !t;
|
|
82
83
|
return /* @__PURE__ */ h(
|
|
83
|
-
|
|
84
|
+
z,
|
|
84
85
|
{
|
|
85
86
|
value: a,
|
|
86
87
|
as: "tr",
|
|
@@ -169,14 +170,14 @@ const f = 72, N = 20, R = 24, U = 4, F = ({
|
|
|
169
170
|
transition: { duration: 0.3, ease: "easeInOut" },
|
|
170
171
|
className: "flex h-full items-center justify-center overflow-hidden border-l border-stroke-base-secondary",
|
|
171
172
|
children: /* @__PURE__ */ e(
|
|
172
|
-
|
|
173
|
+
G,
|
|
173
174
|
{
|
|
174
175
|
disabled: !i || t,
|
|
175
176
|
className: d(
|
|
176
177
|
"flex h-comp-button-h-sm w-comp-button-w-sm items-center justify-center focus-visible-default",
|
|
177
178
|
t ? "text-text-dark-disabled" : "text-text-brand-def"
|
|
178
179
|
),
|
|
179
|
-
children: /* @__PURE__ */ e(
|
|
180
|
+
children: /* @__PURE__ */ e(k, { className: "size-icon-default" })
|
|
180
181
|
}
|
|
181
182
|
)
|
|
182
183
|
}
|
|
@@ -2,8 +2,8 @@ import { jsx as r, jsxs as T } from "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { useBreakpoints as E } from "../../hooks/use-is-breakpoint.js";
|
|
4
4
|
import { cn as l } from "../../utils/cn.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { Skeleton as H } from "../Skeleton/Skeleton.js";
|
|
6
|
+
import { typographyVariants as S, Typography as V } from "../Typography/Typography.js";
|
|
7
7
|
const J = ({
|
|
8
8
|
data: y,
|
|
9
9
|
layouts: n,
|
|
@@ -50,7 +50,7 @@ const J = ({
|
|
|
50
50
|
"th",
|
|
51
51
|
{
|
|
52
52
|
className: l(
|
|
53
|
-
|
|
53
|
+
S({
|
|
54
54
|
size: "sm",
|
|
55
55
|
uppercase: !0,
|
|
56
56
|
variant: "body",
|
|
@@ -100,8 +100,8 @@ const J = ({
|
|
|
100
100
|
i && "relative",
|
|
101
101
|
t.className
|
|
102
102
|
),
|
|
103
|
-
children: a ? t.skeleton ?? /* @__PURE__ */ r(
|
|
104
|
-
|
|
103
|
+
children: a ? t.skeleton ?? /* @__PURE__ */ r(H, { color: "light", className: "h-4 w-full" }) : t.render ? t.render(e, s, o) : /* @__PURE__ */ r(
|
|
104
|
+
V,
|
|
105
105
|
{
|
|
106
106
|
variant: "body",
|
|
107
107
|
size: "base",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e, Fragment as N } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
|
+
import { cn as l } from "../../utils/cn.js";
|
|
3
4
|
import { Button as w } from "../Button/Button.js";
|
|
4
|
-
import {
|
|
5
|
-
import { Carousel as y, CarouselContent as v, CarouselItem as S, CarouselPrevious as C, CarouselNext as F } from "../Carousel/Carousel.js";
|
|
5
|
+
import { Carousel as k, CarouselContent as y, CarouselItem as v, CarouselPrevious as S, CarouselNext as C } from "../Carousel/Carousel.js";
|
|
6
6
|
import { Flex as m } from "../Flex/Flex.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { ArrowLeftOutline as F } from "@solar-icons/react-perf";
|
|
8
|
+
import { Searchbar as A } from "../Searchbar/Searchbar.js";
|
|
9
9
|
import { Skeleton as f } from "../Skeleton/Skeleton.js";
|
|
10
10
|
const R = n.forwardRef(
|
|
11
11
|
({
|
|
@@ -55,13 +55,13 @@ const R = n.forwardRef(
|
|
|
55
55
|
{
|
|
56
56
|
variant: "tertiary",
|
|
57
57
|
size: "icon",
|
|
58
|
-
icon: /* @__PURE__ */ e(
|
|
58
|
+
icon: /* @__PURE__ */ e(F, {}),
|
|
59
59
|
...a
|
|
60
60
|
}
|
|
61
61
|
)
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
|
-
r && /* @__PURE__ */ e("div", { className: "flex-1 md:w-[280px] md:flex-none", children: /* @__PURE__ */ e(
|
|
64
|
+
r && /* @__PURE__ */ e("div", { className: "flex-1 md:w-[280px] md:flex-none", children: /* @__PURE__ */ e(A, { ...r }) })
|
|
65
65
|
]
|
|
66
66
|
}
|
|
67
67
|
),
|
|
@@ -89,9 +89,9 @@ const R = n.forwardRef(
|
|
|
89
89
|
// bleed to the viewport's right edge (left stays inset by the bar).
|
|
90
90
|
"md:-mr-2xl md:flex-1 md:border-b-0 md:p-0"
|
|
91
91
|
),
|
|
92
|
-
children: /* @__PURE__ */ s(
|
|
93
|
-
/* @__PURE__ */ e(
|
|
94
|
-
|
|
92
|
+
children: /* @__PURE__ */ s(k, { align: "start", options: d, className: "w-full", children: [
|
|
93
|
+
/* @__PURE__ */ e(y, { className: "!ml-0 items-center gap-xs", children: p.map((g, o) => /* @__PURE__ */ e(
|
|
94
|
+
v,
|
|
95
95
|
{
|
|
96
96
|
className: l(
|
|
97
97
|
"!basis-auto !pl-0",
|
|
@@ -108,14 +108,14 @@ const R = n.forwardRef(
|
|
|
108
108
|
)) }),
|
|
109
109
|
u && /* @__PURE__ */ s(N, { children: [
|
|
110
110
|
/* @__PURE__ */ e(
|
|
111
|
-
|
|
111
|
+
S,
|
|
112
112
|
{
|
|
113
113
|
hideWhenDisabled: !0,
|
|
114
114
|
className: "hidden md:left-0 md:flex"
|
|
115
115
|
}
|
|
116
116
|
),
|
|
117
117
|
/* @__PURE__ */ e(
|
|
118
|
-
|
|
118
|
+
C,
|
|
119
119
|
{
|
|
120
120
|
hideWhenDisabled: !0,
|
|
121
121
|
className: "hidden md:right-2xl md:flex"
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as t, jsxs as u } from "react/jsx-runtime";
|
|
2
2
|
import f, { forwardRef as G, useId as L, useMemo as U, useRef as S, useEffect as T } from "react";
|
|
3
|
-
import {
|
|
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";
|
|
3
|
+
import { useMuzaTranslations as H } from "../../translations/TranslationContext.js";
|
|
9
4
|
import { cn as D } from "../../utils/cn.js";
|
|
10
|
-
import {
|
|
5
|
+
import { DropdownMenu as J, DropdownMenuTrigger as K, DropdownMenuContent as Q, DropdownMenuRadioGroup as X, DropdownMenuRadioItem as Y } from "../DropdownMenu/DropdownMenu.js";
|
|
6
|
+
import { Flex as Z } from "../Flex/Flex.js";
|
|
7
|
+
import { FormField as ee } from "../FormField/FormField.js";
|
|
8
|
+
import { AltArrowUpOutline as te } from "@solar-icons/react-perf";
|
|
9
|
+
import { Typography as o } from "../Typography/Typography.js";
|
|
10
|
+
import { triggerWrapperVariants as re } from "./utils.js";
|
|
11
11
|
const ne = G(
|
|
12
12
|
(I, h) => {
|
|
13
|
-
const g =
|
|
13
|
+
const g = H(), {
|
|
14
14
|
label: x,
|
|
15
15
|
hint: b,
|
|
16
16
|
error: w,
|
|
@@ -28,7 +28,7 @@ const ne = G(
|
|
|
28
28
|
disableRequiredAsterisk: F,
|
|
29
29
|
labelExtra: V,
|
|
30
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(
|
|
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(Z, { flex: 1, direction: "column", className: "min-w-0 text-left", children: [
|
|
32
32
|
/* @__PURE__ */ t(
|
|
33
33
|
o,
|
|
34
34
|
{
|
|
@@ -83,7 +83,7 @@ const ne = G(
|
|
|
83
83
|
var e;
|
|
84
84
|
l && n && m.current[n] && v && ((e = m.current[n]) == null || e.scrollIntoView({ block: "nearest" }));
|
|
85
85
|
}, [l, v, n]), /* @__PURE__ */ t(
|
|
86
|
-
|
|
86
|
+
ee,
|
|
87
87
|
{
|
|
88
88
|
label: x,
|
|
89
89
|
hint: b,
|
|
@@ -96,13 +96,13 @@ const ne = G(
|
|
|
96
96
|
infoTooltip: q,
|
|
97
97
|
className: "flex-1",
|
|
98
98
|
children: /* @__PURE__ */ u(
|
|
99
|
-
|
|
99
|
+
J,
|
|
100
100
|
{
|
|
101
101
|
onOpenChange: (e) => {
|
|
102
102
|
k(e);
|
|
103
103
|
},
|
|
104
104
|
children: [
|
|
105
|
-
/* @__PURE__ */ t(
|
|
105
|
+
/* @__PURE__ */ t(K, { disabled: s, asChild: !0, children: /* @__PURE__ */ t(
|
|
106
106
|
"button",
|
|
107
107
|
{
|
|
108
108
|
ref: i,
|
|
@@ -112,7 +112,7 @@ const ne = G(
|
|
|
112
112
|
disabled: s,
|
|
113
113
|
"aria-required": N,
|
|
114
114
|
className: D(
|
|
115
|
-
|
|
115
|
+
re({
|
|
116
116
|
size: O,
|
|
117
117
|
error: w,
|
|
118
118
|
expanded: l,
|
|
@@ -129,7 +129,7 @@ const ne = G(
|
|
|
129
129
|
),
|
|
130
130
|
j,
|
|
131
131
|
/* @__PURE__ */ t(
|
|
132
|
-
|
|
132
|
+
te,
|
|
133
133
|
{
|
|
134
134
|
className: D(
|
|
135
135
|
"transition-transform duration-200",
|
|
@@ -142,7 +142,7 @@ const ne = G(
|
|
|
142
142
|
}
|
|
143
143
|
) }),
|
|
144
144
|
/* @__PURE__ */ t(
|
|
145
|
-
|
|
145
|
+
Q,
|
|
146
146
|
{
|
|
147
147
|
className: "mt-1",
|
|
148
148
|
style: {
|
|
@@ -163,14 +163,14 @@ const ne = G(
|
|
|
163
163
|
children: E
|
|
164
164
|
}
|
|
165
165
|
) }) : /* @__PURE__ */ t(
|
|
166
|
-
|
|
166
|
+
X,
|
|
167
167
|
{
|
|
168
168
|
value: n,
|
|
169
169
|
onValueChange: (e) => {
|
|
170
170
|
p.current = !0, d == null || d(e);
|
|
171
171
|
},
|
|
172
172
|
children: a.map((e) => /* @__PURE__ */ t(
|
|
173
|
-
|
|
173
|
+
Y,
|
|
174
174
|
{
|
|
175
175
|
value: e.value.toString(),
|
|
176
176
|
disabled: e.disabled,
|