@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
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as t, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import u, { forwardRef as L, useId as U, useMemo as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { Flex as z } from "../Flex/Flex.js";
|
|
9
|
-
import { Tag as f } from "../Tag/Tag.js";
|
|
2
|
+
import u, { forwardRef as L, useId as U, useMemo as T, useRef as G, useEffect as H } from "react";
|
|
3
|
+
import { useMuzaTranslations as J } from "../../translations/TranslationContext.js";
|
|
4
|
+
import { cn as K } from "../../utils/cn.js";
|
|
5
|
+
import { DropdownMenu as Q, DropdownMenuTrigger as X, DropdownMenuContent as Y, DropdownMenuCheckboxItem as Z } from "../DropdownMenu/DropdownMenu.js";
|
|
6
|
+
import { Flex as k } from "../Flex/Flex.js";
|
|
7
|
+
import { FormField as ee } from "../FormField/FormField.js";
|
|
10
8
|
import { AltArrowUpOutline as te } from "@solar-icons/react-perf";
|
|
11
|
-
import {
|
|
9
|
+
import { triggerWrapperVariants as re } from "../Select/utils.js";
|
|
10
|
+
import { Tag as f } from "../Tag/Tag.js";
|
|
11
|
+
import { Typography as I } from "../Typography/Typography.js";
|
|
12
12
|
const ne = L(
|
|
13
|
-
(
|
|
14
|
-
const g =
|
|
13
|
+
(z, h) => {
|
|
14
|
+
const g = J(), {
|
|
15
15
|
label: x,
|
|
16
16
|
hint: b,
|
|
17
17
|
error: w,
|
|
@@ -21,18 +21,18 @@ const ne = L(
|
|
|
21
21
|
disabled: o,
|
|
22
22
|
prefix: d,
|
|
23
23
|
maxNumberOfVisibleTags: c = 2,
|
|
24
|
-
size:
|
|
25
|
-
placeholder:
|
|
26
|
-
emptyMessage:
|
|
24
|
+
size: D,
|
|
25
|
+
placeholder: O,
|
|
26
|
+
emptyMessage: S,
|
|
27
27
|
required: v,
|
|
28
|
-
disableRequiredAsterisk:
|
|
29
|
-
labelExtra:
|
|
30
|
-
infoTooltip:
|
|
31
|
-
collisionPadding:
|
|
32
|
-
} =
|
|
28
|
+
disableRequiredAsterisk: W,
|
|
29
|
+
labelExtra: j,
|
|
30
|
+
infoTooltip: A,
|
|
31
|
+
collisionPadding: C
|
|
32
|
+
} = z, y = O ?? g.select.placeholder, F = S ?? g.select.noOptions, N = U(), q = x ? `${N}-label` : void 0, E = b ? `${N}-hint` : void 0, M = T(() => new Map(a.map((e) => [e.value, e.label])), [a]), P = T(() => {
|
|
33
33
|
const e = r && r.map((n) => M.get(n));
|
|
34
34
|
return e != null && e.length ? e.length <= c ? /* @__PURE__ */ t(
|
|
35
|
-
|
|
35
|
+
k,
|
|
36
36
|
{
|
|
37
37
|
gap: "xs",
|
|
38
38
|
justify: "start",
|
|
@@ -42,7 +42,7 @@ const ne = L(
|
|
|
42
42
|
children: e.map((n, i) => /* @__PURE__ */ t(f, { variant: "info", className: "min-w-[50px] shrink-1", children: n }, i))
|
|
43
43
|
}
|
|
44
44
|
) : /* @__PURE__ */ t(
|
|
45
|
-
|
|
45
|
+
k,
|
|
46
46
|
{
|
|
47
47
|
gap: "xs",
|
|
48
48
|
justify: "start",
|
|
@@ -75,7 +75,7 @@ const ne = L(
|
|
|
75
75
|
children: y
|
|
76
76
|
}
|
|
77
77
|
);
|
|
78
|
-
}, [r, y, c, M]), [
|
|
78
|
+
}, [r, y, c, M]), [V, $] = u.useState(!1), [R, _] = u.useState(0), m = u.useRef(!1), B = G(null), l = (typeof h == "function" ? null : h) ?? B;
|
|
79
79
|
return H(() => {
|
|
80
80
|
const e = () => {
|
|
81
81
|
l.current && _(l.current.offsetWidth);
|
|
@@ -86,25 +86,25 @@ const ne = L(
|
|
|
86
86
|
n.disconnect();
|
|
87
87
|
};
|
|
88
88
|
}, [l]), /* @__PURE__ */ t(
|
|
89
|
-
|
|
89
|
+
ee,
|
|
90
90
|
{
|
|
91
91
|
label: x,
|
|
92
92
|
hint: b,
|
|
93
93
|
error: w,
|
|
94
94
|
required: v,
|
|
95
|
-
disableRequiredAsterisk:
|
|
96
|
-
labelId:
|
|
97
|
-
hintId:
|
|
98
|
-
labelExtra:
|
|
99
|
-
infoTooltip:
|
|
95
|
+
disableRequiredAsterisk: W,
|
|
96
|
+
labelId: q,
|
|
97
|
+
hintId: E,
|
|
98
|
+
labelExtra: j,
|
|
99
|
+
infoTooltip: A,
|
|
100
100
|
children: /* @__PURE__ */ p(
|
|
101
|
-
|
|
101
|
+
Q,
|
|
102
102
|
{
|
|
103
103
|
onOpenChange: (e) => {
|
|
104
104
|
$(e);
|
|
105
105
|
},
|
|
106
106
|
children: [
|
|
107
|
-
/* @__PURE__ */ t(
|
|
107
|
+
/* @__PURE__ */ t(X, { disabled: o, asChild: !0, children: /* @__PURE__ */ t(
|
|
108
108
|
"button",
|
|
109
109
|
{
|
|
110
110
|
ref: l,
|
|
@@ -113,10 +113,9 @@ const ne = L(
|
|
|
113
113
|
tabIndex: 0,
|
|
114
114
|
disabled: o,
|
|
115
115
|
"aria-required": v,
|
|
116
|
-
className:
|
|
117
|
-
size:
|
|
116
|
+
className: re({
|
|
117
|
+
size: D,
|
|
118
118
|
error: w,
|
|
119
|
-
expanded: R,
|
|
120
119
|
hasIcon: !!d || (r == null ? void 0 : r.length) === 0
|
|
121
120
|
}),
|
|
122
121
|
children: /* @__PURE__ */ p("div", { className: "flex min-w-0 flex-1 items-center gap-sm", children: [
|
|
@@ -127,13 +126,13 @@ const ne = L(
|
|
|
127
126
|
children: d
|
|
128
127
|
}
|
|
129
128
|
),
|
|
130
|
-
|
|
129
|
+
P,
|
|
131
130
|
/* @__PURE__ */ t(
|
|
132
131
|
te,
|
|
133
132
|
{
|
|
134
|
-
className:
|
|
133
|
+
className: K(
|
|
135
134
|
"shrink-0 transition-transform duration-200",
|
|
136
|
-
|
|
135
|
+
V ? "rotate-0" : "rotate-180",
|
|
137
136
|
o ? "text-comp-select-icon-disabled" : "text-comp-select-icon-brand-def"
|
|
138
137
|
)
|
|
139
138
|
}
|
|
@@ -142,16 +141,16 @@ const ne = L(
|
|
|
142
141
|
}
|
|
143
142
|
) }),
|
|
144
143
|
/* @__PURE__ */ t(
|
|
145
|
-
|
|
144
|
+
Y,
|
|
146
145
|
{
|
|
147
146
|
className: "mt-1",
|
|
148
147
|
style: {
|
|
149
|
-
width:
|
|
148
|
+
width: R > 0 ? `${R}px` : void 0
|
|
150
149
|
},
|
|
151
150
|
onCloseAutoFocus: (e) => {
|
|
152
151
|
m.current || e.preventDefault(), m.current = !1;
|
|
153
152
|
},
|
|
154
|
-
collisionPadding:
|
|
153
|
+
collisionPadding: C,
|
|
155
154
|
children: a.length === 0 ? /* @__PURE__ */ t("div", { className: "px-lg py-md", role: "presentation", children: /* @__PURE__ */ t(
|
|
156
155
|
I,
|
|
157
156
|
{
|
|
@@ -159,10 +158,10 @@ const ne = L(
|
|
|
159
158
|
size: "input",
|
|
160
159
|
weight: "regular",
|
|
161
160
|
className: "text-comp-select-text-secondary",
|
|
162
|
-
children:
|
|
161
|
+
children: F
|
|
163
162
|
}
|
|
164
163
|
) }) : a.map((e) => /* @__PURE__ */ t(
|
|
165
|
-
|
|
164
|
+
Z,
|
|
166
165
|
{
|
|
167
166
|
checked: r == null ? void 0 : r.includes(e.value),
|
|
168
167
|
disabled: e.disabled,
|
|
@@ -2,18 +2,18 @@ import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "sonner";
|
|
4
4
|
import { TranslationProvider as d } from "../../translations/TranslationContext.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { ToastContainer as n } from "../Toast/ToastContainer.js";
|
|
6
|
+
import { TooltipProvider as a } from "../Tooltip/Tooltip.js";
|
|
7
|
+
import { ThemeProvider as s } from "./theme/ThemeProvider.js";
|
|
8
8
|
const l = ({
|
|
9
9
|
children: o,
|
|
10
10
|
tooltipConfig: i = {},
|
|
11
11
|
toastConfig: e = {},
|
|
12
12
|
translationConfig: m = {},
|
|
13
13
|
color: t
|
|
14
|
-
}) => /* @__PURE__ */ r(d, { ...m, children: /* @__PURE__ */ r(
|
|
14
|
+
}) => /* @__PURE__ */ r(d, { ...m, children: /* @__PURE__ */ r(a, { ...i, children: /* @__PURE__ */ p(s, { color: t, children: [
|
|
15
15
|
o,
|
|
16
|
-
/* @__PURE__ */ r(
|
|
16
|
+
/* @__PURE__ */ r(n, { ...e })
|
|
17
17
|
] }) }) });
|
|
18
18
|
l.displayName = "MuzaUIProvider";
|
|
19
19
|
export {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MuzaUIProvider as o } from "./MuzaUIProvider.js";
|
|
2
|
+
import { useTheme as m } from "./theme/ThemeProvider.js";
|
|
3
|
+
import { setThemeVariables as a } from "./theme/setThemeVariables.js";
|
|
4
|
+
import { themePresets as h } from "./theme/themePresets.js";
|
|
5
|
+
import { formatShadesAsObject as x, generateColorShades as d } from "./theme/colorShades.js";
|
|
6
|
+
export {
|
|
7
|
+
o as MuzaUIProvider,
|
|
8
|
+
x as formatShadesAsObject,
|
|
9
|
+
d as generateColorShades,
|
|
10
|
+
a as setThemeVariables,
|
|
11
|
+
h as themePresets,
|
|
12
|
+
m as useTheme
|
|
13
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as r, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import { useState as f } from "react";
|
|
3
|
-
import { useTheme as D } from "./ThemeProvider.js";
|
|
4
|
-
import { themePresets as u } from "./themePresets.js";
|
|
5
|
-
import { Dialog as I, DialogOverlay as M, DialogContent as H } from "../../Dialog/Dialog.js";
|
|
6
3
|
import { Button as s } from "../../Button/Button.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { Dialog as D, DialogOverlay as I, DialogContent as M } from "../../Dialog/Dialog.js";
|
|
5
|
+
import { DropdownMenu as u, DropdownMenuTrigger as v, DropdownMenuContent as N, DropdownMenuItem as p } from "../../DropdownMenu/DropdownMenu.js";
|
|
6
|
+
import { Input as H } from "../../Input/Input.js";
|
|
7
|
+
import { useTheme as R } from "./ThemeProvider.js";
|
|
8
|
+
import { themePresets as b } from "./themePresets.js";
|
|
9
9
|
const z = ({
|
|
10
10
|
isOpen: C,
|
|
11
11
|
onClose: o
|
|
@@ -16,7 +16,7 @@ const z = ({
|
|
|
16
16
|
setShadesFromHex: c,
|
|
17
17
|
setShadesFromPreset: S,
|
|
18
18
|
setShadesGenerator: k
|
|
19
|
-
} =
|
|
19
|
+
} = R(), n = () => {
|
|
20
20
|
o == null || o();
|
|
21
21
|
}, [i, d] = f(t[500]), [m, y] = f(""), P = (e) => {
|
|
22
22
|
if (d(e), /^#?([A-Fa-f0-9]{6})$/.test(e)) {
|
|
@@ -27,7 +27,7 @@ const z = ({
|
|
|
27
27
|
c(e), d(e);
|
|
28
28
|
}, G = (e) => {
|
|
29
29
|
S(e);
|
|
30
|
-
const l =
|
|
30
|
+
const l = b[e]["--brand-primary"];
|
|
31
31
|
l && d(l);
|
|
32
32
|
}, x = (e) => {
|
|
33
33
|
k(e), c(i);
|
|
@@ -36,14 +36,14 @@ const z = ({
|
|
|
36
36
|
preserve500: "Preserve 500"
|
|
37
37
|
};
|
|
38
38
|
return /* @__PURE__ */ r(
|
|
39
|
-
|
|
39
|
+
D,
|
|
40
40
|
{
|
|
41
41
|
open: C,
|
|
42
42
|
onOpenChange: (e) => {
|
|
43
43
|
e === !1 && n();
|
|
44
44
|
},
|
|
45
|
-
children: /* @__PURE__ */ r(
|
|
46
|
-
|
|
45
|
+
children: /* @__PURE__ */ r(I, { className: "bg-transparent", children: /* @__PURE__ */ a(
|
|
46
|
+
M,
|
|
47
47
|
{
|
|
48
48
|
size: "large",
|
|
49
49
|
className: "space-y-6",
|
|
@@ -51,9 +51,9 @@ const z = ({
|
|
|
51
51
|
children: [
|
|
52
52
|
/* @__PURE__ */ a("div", { className: "flex flex-col gap-2", children: [
|
|
53
53
|
/* @__PURE__ */ r("label", { className: "text-sm font-medium text-gray-700", children: "Generator Algorithm" }),
|
|
54
|
-
/* @__PURE__ */ a(
|
|
55
|
-
/* @__PURE__ */ r(
|
|
56
|
-
/* @__PURE__ */ a(
|
|
54
|
+
/* @__PURE__ */ a(u, { children: [
|
|
55
|
+
/* @__PURE__ */ r(v, { asChild: !0, children: /* @__PURE__ */ r(s, { variant: "secondary", className: "w-max", children: h[w] }) }),
|
|
56
|
+
/* @__PURE__ */ a(N, { className: "w-full", children: [
|
|
57
57
|
/* @__PURE__ */ r(
|
|
58
58
|
p,
|
|
59
59
|
{
|
|
@@ -88,7 +88,7 @@ const z = ({
|
|
|
88
88
|
/* @__PURE__ */ a("div", { className: "flex flex-1 flex-col gap-2", children: [
|
|
89
89
|
/* @__PURE__ */ r("label", { className: "text-sm font-medium text-gray-700", children: "Hex Code" }),
|
|
90
90
|
/* @__PURE__ */ r(
|
|
91
|
-
|
|
91
|
+
H,
|
|
92
92
|
{
|
|
93
93
|
value: i,
|
|
94
94
|
onChange: (e) => P(e.target.value),
|
|
@@ -100,9 +100,9 @@ const z = ({
|
|
|
100
100
|
] }),
|
|
101
101
|
/* @__PURE__ */ a("div", { className: "flex flex-col gap-2", children: [
|
|
102
102
|
/* @__PURE__ */ r("label", { className: "text-sm font-medium text-gray-700", children: "Presets" }),
|
|
103
|
-
/* @__PURE__ */ a(
|
|
104
|
-
/* @__PURE__ */ r(
|
|
105
|
-
/* @__PURE__ */ r(
|
|
103
|
+
/* @__PURE__ */ a(u, { children: [
|
|
104
|
+
/* @__PURE__ */ r(v, { asChild: !0, children: /* @__PURE__ */ r(s, { variant: "secondary", className: "h-12", children: "Select Preset" }) }),
|
|
105
|
+
/* @__PURE__ */ r(N, { children: Object.keys(b).map(
|
|
106
106
|
(e) => /* @__PURE__ */ r(
|
|
107
107
|
p,
|
|
108
108
|
{
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r, Fragment as D } from "react/jsx-runtime";
|
|
2
2
|
import * as w from "react";
|
|
3
3
|
import { cva as z } from "class-variance-authority";
|
|
4
|
-
import { HeartButton as Q } from "../HeartButton/HeartButton.js";
|
|
5
|
-
import { Rating as U } from "../Rating/Rating.js";
|
|
6
4
|
import { cn as s } from "../../utils/cn.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { Tag as Z } from "../Tag/Tag.js";
|
|
5
|
+
import { disabledLinkProps as Q } from "../../utils/disabledLinkProps.js";
|
|
6
|
+
import { DotDivider as U } from "../DotDivider/DotDivider.js";
|
|
10
7
|
import { Flex as f } from "../Flex/Flex.js";
|
|
11
|
-
import {
|
|
8
|
+
import { HeartButton as X } from "../HeartButton/HeartButton.js";
|
|
9
|
+
import { Rating as Z } from "../Rating/Rating.js";
|
|
12
10
|
import { Skeleton as o } from "../Skeleton/Skeleton.js";
|
|
11
|
+
import { Tag as ee } from "../Tag/Tag.js";
|
|
12
|
+
import { Typography as n } from "../Typography/Typography.js";
|
|
13
13
|
const ae = z(
|
|
14
14
|
"group relative inline-flex border border-solid transition-colors focus-visible:outline-none data-[disabled=true]:pointer-events-none",
|
|
15
15
|
{
|
|
@@ -54,7 +54,7 @@ const ae = z(
|
|
|
54
54
|
},
|
|
55
55
|
defaultVariants: { variant: "compact" }
|
|
56
56
|
}), k = ({ rating: c, ratingCount: a, disabled: t }) => /* @__PURE__ */ r(f, { align: "center", gap: "2xs", children: [
|
|
57
|
-
/* @__PURE__ */ e(
|
|
57
|
+
/* @__PURE__ */ e(Z, { value: c, allowHalf: !0, disabled: t }),
|
|
58
58
|
a != null && /* @__PURE__ */ r(
|
|
59
59
|
n,
|
|
60
60
|
{
|
|
@@ -242,11 +242,11 @@ const L = w.forwardRef(
|
|
|
242
242
|
v,
|
|
243
243
|
{
|
|
244
244
|
className: s(A, v.props.className),
|
|
245
|
-
...d ?
|
|
245
|
+
...d ? Q : null
|
|
246
246
|
},
|
|
247
247
|
F
|
|
248
248
|
) : /* @__PURE__ */ e("a", { href: d ? void 0 : $, className: A, children: F }), Y = P && /* @__PURE__ */ e(
|
|
249
|
-
|
|
249
|
+
X,
|
|
250
250
|
{
|
|
251
251
|
active: B,
|
|
252
252
|
defaultActive: O,
|
|
@@ -275,7 +275,7 @@ const L = w.forwardRef(
|
|
|
275
275
|
),
|
|
276
276
|
/* @__PURE__ */ r("div", { className: "absolute top-comp-offer-card-compact-p-img right-comp-offer-card-compact-p-img left-comp-offer-card-compact-p-img flex items-start justify-between gap-sm", children: [
|
|
277
277
|
C ? /* @__PURE__ */ e(
|
|
278
|
-
|
|
278
|
+
ee,
|
|
279
279
|
{
|
|
280
280
|
variant: "invert",
|
|
281
281
|
className: "min-w-[50px] shrink overflow-hidden",
|
|
@@ -374,7 +374,7 @@ const L = w.forwardRef(
|
|
|
374
374
|
children: u
|
|
375
375
|
}
|
|
376
376
|
),
|
|
377
|
-
u && x && /* @__PURE__ */ e(
|
|
377
|
+
u && x && /* @__PURE__ */ e(U, {}),
|
|
378
378
|
x && /* @__PURE__ */ e(
|
|
379
379
|
k,
|
|
380
380
|
{
|
|
@@ -2,10 +2,10 @@ import { jsxs as l, jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import * as X from "react";
|
|
3
3
|
import { useState as S, useCallback as b, useEffect as Y } from "react";
|
|
4
4
|
import { useMuzaTranslations as C } from "../../translations/TranslationContext.js";
|
|
5
|
-
import { Select as aa } from "../Select/Select.js";
|
|
6
|
-
import { Flex as p } from "../Flex/Flex.js";
|
|
7
5
|
import { ButtonArrow as z } from "../ButtonArrow/ButtonArrow.js";
|
|
8
|
-
import {
|
|
6
|
+
import { Flex as p } from "../Flex/Flex.js";
|
|
7
|
+
import { Input as aa } from "../Input/Input.js";
|
|
8
|
+
import { Select as ea } from "../Select/Select.js";
|
|
9
9
|
import { Typography as v } from "../Typography/Typography.js";
|
|
10
10
|
const ta = [
|
|
11
11
|
{ value: "10", label: "10" },
|
|
@@ -91,7 +91,7 @@ const ta = [
|
|
|
91
91
|
"aria-label": `${L}: ${a} ${h} ${e}`,
|
|
92
92
|
children: [
|
|
93
93
|
/* @__PURE__ */ n(
|
|
94
|
-
|
|
94
|
+
aa,
|
|
95
95
|
{
|
|
96
96
|
value: u,
|
|
97
97
|
size: "xs",
|
|
@@ -189,7 +189,7 @@ const ta = [
|
|
|
189
189
|
}
|
|
190
190
|
),
|
|
191
191
|
/* @__PURE__ */ n(
|
|
192
|
-
|
|
192
|
+
ea,
|
|
193
193
|
{
|
|
194
194
|
value: d.toString(),
|
|
195
195
|
onChange: Q,
|
|
@@ -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),
|