@vkzstudio/muza-ui 1.9.1 → 1.9.3
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/Input/Input.js +1 -1
- package/dist/components/PhoneInput/PhoneInput.d.ts.map +1 -1
- package/dist/components/PhoneInput/PhoneInput.js +68 -60
- package/dist/components/RatingBlock/RatingBlock.d.ts.map +1 -1
- package/dist/components/RatingBlock/RatingBlock.js +22 -19
- package/dist/components/Select/Select.d.ts +26 -0
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.js +81 -73
- package/dist/components/Select/Select.stories.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.js +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +6 -1
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +17 -17
- package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/dist/muza-ui.css +1 -1
- package/dist/stories/AutofillHarness.stories.d.ts +19 -0
- package/dist/stories/AutofillHarness.stories.d.ts.map +1 -0
- package/dist/styles/token-colors.css +4 -0
- package/dist/styles/token-sizes.css +12 -8
- package/dist/styles/utilities.css +28 -0
- package/dist/utils/cn.d.ts.map +1 -1
- package/dist/utils/cn.js +20 -1
- package/llms-full.md +2 -0
- package/package.json +1 -1
|
@@ -37,7 +37,7 @@ const Y = M(
|
|
|
37
37
|
weight: "medium",
|
|
38
38
|
fixY: !0
|
|
39
39
|
}),
|
|
40
|
-
"flex-1 bg-transparent outline-0 text-comp-input-text-primary transition-colors",
|
|
40
|
+
"autofill-field flex-1 bg-transparent outline-0 text-comp-input-text-primary transition-colors",
|
|
41
41
|
"placeholder:text-comp-input-text-placeholder",
|
|
42
42
|
"placeholder:font-regular",
|
|
43
43
|
"disabled:cursor-not-allowed",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhoneInput.d.ts","sourceRoot":"","sources":["../../../src/components/PhoneInput/PhoneInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAA;AACjE,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,aAAa,EAGnB,MAAM,2BAA2B,CAAA;AAOlC;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,qFAAqF;IACrF,UAAU,EAAE,MAAM,CAAA;IAClB,4DAA4D;IAC5D,OAAO,EAAE,aAAa,CAAA;CACvB;AAKD,QAAA,MAAM,oBAAoB;;;8EAyBzB,CAAA;
|
|
1
|
+
{"version":3,"file":"PhoneInput.d.ts","sourceRoot":"","sources":["../../../src/components/PhoneInput/PhoneInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAA;AACjE,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,aAAa,EAGnB,MAAM,2BAA2B,CAAA;AAOlC;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,qFAAqF;IACrF,UAAU,EAAE,MAAM,CAAA;IAClB,4DAA4D;IAC5D,OAAO,EAAE,aAAa,CAAA;CACvB;AAKD,QAAA,MAAM,oBAAoB;;;8EAyBzB,CAAA;AAsBD;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,eACf,SAAQ,IAAI,CACR,wBAAwB,CAAC,OAAO,CAAC,EACjC,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,cAAc,GAAG,UAAU,CACnE,EACD,YAAY,CAAC,OAAO,oBAAoB,CAAC;IAC3C,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,qDAAqD;IACrD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sDAAsD;IACtD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAAA;IAClC,4DAA4D;IAC5D,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAC9D,8EAA8E;IAC9E,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;;OAIG;IACH,SAAS,CAAC,EAAE,WAAW,EAAE,CAAA;IACzB;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,6FAA6F;IAC7F,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,sGAAsG;IACtG,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAA;IACjC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,eAAO,MAAM,UAAU,8GA6HtB,CAAA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { cva as
|
|
4
|
-
import { usePhoneInput as
|
|
5
|
-
import { useMuzaTranslations as
|
|
1
|
+
import { jsx as p, jsxs as W } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as B, useId as G, useRef as H, useState as J, useEffect as K } from "react";
|
|
3
|
+
import { cva as O } from "class-variance-authority";
|
|
4
|
+
import { usePhoneInput as Q, defaultCountries as U } from "react-international-phone";
|
|
5
|
+
import { useMuzaTranslations as X } from "../../translations/TranslationContext.js";
|
|
6
6
|
import { cn as v } from "../../utils/cn.js";
|
|
7
|
-
import { FormField as
|
|
7
|
+
import { FormField as Y } from "../FormField/FormField.js";
|
|
8
8
|
import { typographyVariants as Z } from "../Typography/Typography.js";
|
|
9
9
|
import { CountrySelector as _ } from "./CountrySelector.js";
|
|
10
|
-
const q =
|
|
10
|
+
const q = O(
|
|
11
11
|
[
|
|
12
12
|
"group flex items-center",
|
|
13
13
|
"rounded-full border border-comp-input-stroke-def bg-comp-input-fill-def transition-colors",
|
|
@@ -32,43 +32,51 @@ const q = K(
|
|
|
32
32
|
error: !1
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
), ee = (
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
), ee = (o) => {
|
|
36
|
+
const e = o === "xs" || o === "sm";
|
|
37
|
+
return v(
|
|
38
|
+
Z({
|
|
39
|
+
size: e ? "input" : "base",
|
|
40
|
+
weight: "medium"
|
|
41
|
+
}),
|
|
42
|
+
// This input fills the field's height, so the browser paints the autofill
|
|
43
|
+
// highlight across the whole segment. `fixY` would nudge that painted box
|
|
44
|
+
// down along with the text, past the wrapper's rounded bottom edge, so the
|
|
45
|
+
// baseline correction is applied as padding and the outer end is rounded to
|
|
46
|
+
// follow the pill.
|
|
47
|
+
e ? "fix-y-box-1" : "fix-y-box",
|
|
48
|
+
"autofill-field h-full min-w-0 flex-1 rounded-r-full bg-transparent px-comp-input-p-hor text-comp-input-text-primary outline-0 transition-colors",
|
|
49
|
+
"placeholder:font-regular placeholder:text-comp-input-text-placeholder",
|
|
50
|
+
"disabled:cursor-not-allowed"
|
|
51
|
+
);
|
|
52
|
+
}, te = B(
|
|
45
53
|
({
|
|
46
|
-
className:
|
|
47
|
-
label:
|
|
48
|
-
hint:
|
|
49
|
-
size:
|
|
50
|
-
error:
|
|
54
|
+
className: o,
|
|
55
|
+
label: e,
|
|
56
|
+
hint: d,
|
|
57
|
+
size: c,
|
|
58
|
+
error: r,
|
|
51
59
|
value: m,
|
|
52
60
|
defaultValue: C,
|
|
53
61
|
onChange: i,
|
|
54
62
|
defaultCountry: V = "cz",
|
|
55
|
-
countries:
|
|
56
|
-
disabled:
|
|
57
|
-
required:
|
|
63
|
+
countries: f = U,
|
|
64
|
+
disabled: h,
|
|
65
|
+
required: s,
|
|
58
66
|
disableRequiredAsterisk: w,
|
|
59
67
|
labelExtra: P,
|
|
60
68
|
infoTooltip: R,
|
|
61
69
|
id: k,
|
|
62
70
|
countrySelectorAriaLabel: N,
|
|
63
|
-
searchPlaceholder:
|
|
64
|
-
noResultsText:
|
|
71
|
+
searchPlaceholder: S,
|
|
72
|
+
noResultsText: z,
|
|
65
73
|
...b
|
|
66
|
-
},
|
|
67
|
-
const
|
|
74
|
+
}, t) => {
|
|
75
|
+
const u = X(), F = G(), n = k ?? F, x = d ? `${n}-hint` : void 0, y = e ? `${n}-label` : void 0, l = H(null), I = m !== void 0, [j, A] = J(C ?? ""), L = I ? m : j, { inputValue: M, country: T, setCountry: $, handlePhoneValueChange: D } = Q({
|
|
68
76
|
defaultCountry: V,
|
|
69
77
|
value: L,
|
|
70
|
-
countries:
|
|
71
|
-
inputRef:
|
|
78
|
+
countries: f,
|
|
79
|
+
inputRef: l,
|
|
72
80
|
// Keep the dial code out of the number field — it lives in the country
|
|
73
81
|
// selector segment. `phone` in onChange is still full E.164.
|
|
74
82
|
disableDialCodeAndPrefix: !0,
|
|
@@ -83,54 +91,54 @@ const q = K(
|
|
|
83
91
|
});
|
|
84
92
|
}
|
|
85
93
|
});
|
|
86
|
-
return
|
|
87
|
-
|
|
88
|
-
}, [
|
|
89
|
-
|
|
94
|
+
return K(() => {
|
|
95
|
+
t && (typeof t == "function" ? t(l.current) : t.current = l.current);
|
|
96
|
+
}, [t]), /* @__PURE__ */ p(
|
|
97
|
+
Y,
|
|
90
98
|
{
|
|
91
|
-
label:
|
|
92
|
-
hint:
|
|
93
|
-
error:
|
|
94
|
-
required:
|
|
99
|
+
label: e,
|
|
100
|
+
hint: d,
|
|
101
|
+
error: r,
|
|
102
|
+
required: s,
|
|
95
103
|
disableRequiredAsterisk: w,
|
|
96
|
-
htmlFor:
|
|
97
|
-
labelId:
|
|
98
|
-
hintId:
|
|
104
|
+
htmlFor: n,
|
|
105
|
+
labelId: y,
|
|
106
|
+
hintId: x,
|
|
99
107
|
labelExtra: P,
|
|
100
108
|
infoTooltip: R,
|
|
101
|
-
children: /* @__PURE__ */ W("div", { className: v(q({ size:
|
|
102
|
-
/* @__PURE__ */
|
|
109
|
+
children: /* @__PURE__ */ W("div", { className: v(q({ size: c, error: r }), o), children: [
|
|
110
|
+
/* @__PURE__ */ p(
|
|
103
111
|
_,
|
|
104
112
|
{
|
|
105
113
|
selectedCountry: T.iso2,
|
|
106
114
|
onCountryChange: (a) => $(a),
|
|
107
|
-
countries:
|
|
108
|
-
disabled:
|
|
109
|
-
error:
|
|
110
|
-
ariaLabel: N ??
|
|
111
|
-
searchPlaceholder:
|
|
112
|
-
noResultsText:
|
|
115
|
+
countries: f,
|
|
116
|
+
disabled: h,
|
|
117
|
+
error: r,
|
|
118
|
+
ariaLabel: N ?? u.phoneInput.countrySelectorAriaLabel,
|
|
119
|
+
searchPlaceholder: S ?? u.phoneInput.searchPlaceholder,
|
|
120
|
+
noResultsText: z ?? u.phoneInput.noResults
|
|
113
121
|
}
|
|
114
122
|
),
|
|
115
|
-
/* @__PURE__ */
|
|
123
|
+
/* @__PURE__ */ p(
|
|
116
124
|
"input",
|
|
117
125
|
{
|
|
118
126
|
...b,
|
|
119
|
-
ref:
|
|
120
|
-
id:
|
|
127
|
+
ref: l,
|
|
128
|
+
id: n,
|
|
121
129
|
type: "tel",
|
|
122
130
|
inputMode: "tel",
|
|
123
131
|
autoComplete: b.autoComplete ?? "tel",
|
|
124
132
|
"data-slot": "phone-input",
|
|
125
133
|
value: M,
|
|
126
134
|
onChange: D,
|
|
127
|
-
disabled:
|
|
128
|
-
required:
|
|
129
|
-
"aria-describedby":
|
|
130
|
-
"aria-labelledby":
|
|
131
|
-
"aria-invalid":
|
|
132
|
-
"aria-required":
|
|
133
|
-
className: ee(
|
|
135
|
+
disabled: h,
|
|
136
|
+
required: s,
|
|
137
|
+
"aria-describedby": x,
|
|
138
|
+
"aria-labelledby": y,
|
|
139
|
+
"aria-invalid": r,
|
|
140
|
+
"aria-required": s,
|
|
141
|
+
className: ee(c)
|
|
134
142
|
}
|
|
135
143
|
)
|
|
136
144
|
] })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RatingBlock.d.ts","sourceRoot":"","sources":["../../../src/components/RatingBlock/RatingBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAW9B;;GAEG;AACH,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC9D,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAA;IACb;;;;;;;OAOG;IACH,YAAY,EAAE,MAAM,CAAA;IACpB,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,uFAAuF;IACvF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;IACvC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAA;IAC9C;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"RatingBlock.d.ts","sourceRoot":"","sources":["../../../src/components/RatingBlock/RatingBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAW9B;;GAEG;AACH,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC9D,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAA;IACb;;;;;;;OAOG;IACH,YAAY,EAAE,MAAM,CAAA;IACpB,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,uFAAuF;IACvF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;IACvC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAA;IAC9C;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,WAAW,yFA8FhB,CAAA;AAGD,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as l, 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";
|
|
@@ -6,37 +6,37 @@ import { cn as p } from "../../utils/cn.js";
|
|
|
6
6
|
import { Card as B } from "../Card/Card.js";
|
|
7
7
|
import { Flex as C } from "../Flex/Flex.js";
|
|
8
8
|
import { Rating as z } from "../Rating/Rating.js";
|
|
9
|
-
import { Typography as
|
|
9
|
+
import { Typography as d } from "../Typography/Typography.js";
|
|
10
10
|
const T = n.forwardRef(
|
|
11
11
|
({
|
|
12
|
-
value:
|
|
13
|
-
reviewsCount:
|
|
12
|
+
value: m,
|
|
13
|
+
reviewsCount: u,
|
|
14
14
|
starCount: f = 5,
|
|
15
15
|
allowHalf: x = !1,
|
|
16
16
|
formatValue: e,
|
|
17
|
-
numberFormatOptions:
|
|
17
|
+
numberFormatOptions: i,
|
|
18
18
|
countText: g,
|
|
19
|
-
emptyText:
|
|
20
|
-
className:
|
|
19
|
+
emptyText: k,
|
|
20
|
+
className: h,
|
|
21
21
|
...y
|
|
22
22
|
}, v) => {
|
|
23
|
-
const { locale: t, translations: s } = b(), r = Math.max(0, Math.floor(
|
|
23
|
+
const { locale: t, translations: s } = b(), r = Math.max(0, Math.floor(u)), a = r === 0, c = n.useMemo(() => {
|
|
24
24
|
if (e) return e;
|
|
25
25
|
const N = new Intl.NumberFormat(t, {
|
|
26
26
|
minimumFractionDigits: 1,
|
|
27
27
|
maximumFractionDigits: 1,
|
|
28
|
-
...
|
|
28
|
+
...i
|
|
29
29
|
});
|
|
30
30
|
return (R) => N.format(R);
|
|
31
|
-
}, [e, t,
|
|
31
|
+
}, [e, t, i])(a ? 0 : m), w = n.useMemo(
|
|
32
32
|
() => new Intl.NumberFormat(t).format(r),
|
|
33
33
|
[t, r]
|
|
34
|
-
), F = a ?
|
|
34
|
+
), F = a ? k ?? s.ratingBlock.empty : (g ?? M(
|
|
35
35
|
r,
|
|
36
36
|
t,
|
|
37
37
|
s.ratingBlock.users
|
|
38
38
|
)).replace("{count}", w);
|
|
39
|
-
return /* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ l(
|
|
40
40
|
B,
|
|
41
41
|
{
|
|
42
42
|
ref: v,
|
|
@@ -44,11 +44,14 @@ const T = n.forwardRef(
|
|
|
44
44
|
direction: "row",
|
|
45
45
|
align: "center",
|
|
46
46
|
gap: "xl",
|
|
47
|
-
className: p(
|
|
47
|
+
className: p(
|
|
48
|
+
"w-full rounded-xl px-comp-market-card-p-ver py-comp-market-card-p-hor",
|
|
49
|
+
h
|
|
50
|
+
),
|
|
48
51
|
...y,
|
|
49
52
|
children: [
|
|
50
53
|
/* @__PURE__ */ o(
|
|
51
|
-
|
|
54
|
+
d,
|
|
52
55
|
{
|
|
53
56
|
component: "span",
|
|
54
57
|
variant: "title",
|
|
@@ -57,21 +60,21 @@ const T = n.forwardRef(
|
|
|
57
60
|
className: p("text-text-dark-primary-def", {
|
|
58
61
|
"text-text-dark-disabled": a
|
|
59
62
|
}),
|
|
60
|
-
children:
|
|
63
|
+
children: c
|
|
61
64
|
}
|
|
62
65
|
),
|
|
63
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ l(C, { direction: "column", align: "start", gap: "2xs", children: [
|
|
64
67
|
/* @__PURE__ */ o(
|
|
65
68
|
z,
|
|
66
69
|
{
|
|
67
|
-
value: a ? 0 :
|
|
70
|
+
value: a ? 0 : m,
|
|
68
71
|
count: f,
|
|
69
72
|
allowHalf: x,
|
|
70
|
-
"aria-label":
|
|
73
|
+
"aria-label": c
|
|
71
74
|
}
|
|
72
75
|
),
|
|
73
76
|
/* @__PURE__ */ o(
|
|
74
|
-
|
|
77
|
+
d,
|
|
75
78
|
{
|
|
76
79
|
component: "span",
|
|
77
80
|
variant: "body",
|
|
@@ -27,6 +27,32 @@ export interface ISelectOption {
|
|
|
27
27
|
* @see ISelectOption
|
|
28
28
|
*/
|
|
29
29
|
export interface ISelectProps {
|
|
30
|
+
/**
|
|
31
|
+
* `id` set on the trigger button, and the prefix of the generated label and hint
|
|
32
|
+
* ids. An external `<label htmlFor>` pointing at it forwards clicks to the trigger,
|
|
33
|
+
* but does not name it — a `<button>` takes its accessible name from
|
|
34
|
+
* `aria-labelledby`, `aria-label` or its own content, so pass `aria-labelledby`
|
|
35
|
+
* as well to label the select from outside.
|
|
36
|
+
* @default a generated id
|
|
37
|
+
*/
|
|
38
|
+
id?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Id(s) of element(s) labelling the trigger. Merged with the internal `label` id
|
|
41
|
+
* when both are present, so an external label can be added without losing the
|
|
42
|
+
* built-in one.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```tsx
|
|
46
|
+
* <span id="country-label">Country</span>
|
|
47
|
+
* <Select aria-labelledby="country-label" options={options} />
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
'aria-labelledby'?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Id(s) of element(s) describing the trigger — an external tooltip or help text.
|
|
53
|
+
* Merged with the internal `hint` id when both are present.
|
|
54
|
+
*/
|
|
55
|
+
'aria-describedby'?: string;
|
|
30
56
|
/** Label text rendered above the trigger by `FormField`. */
|
|
31
57
|
label?: string;
|
|
32
58
|
/** Helper text rendered below the trigger. Switches to the error color when `error` is `true`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAcd;;;;;;;;;GASG;AACH,MAAM,WAAW,aAAa;IAC5B,+EAA+E;IAC/E,KAAK,EAAE,MAAM,CAAA;IACb,wFAAwF;IACxF,KAAK,EAAE,SAAS,CAAA;IAChB,4EAA4E;IAC5E,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iEAAiE;IACjE,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,4DAA4D;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kGAAkG;IAClG,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kFAAkF;IAClF,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iFAAiF;IACjF,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,oEAAoE;IACpE,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,6EAA6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sxs as
|
|
2
|
-
import
|
|
3
|
-
import { useMuzaTranslations as
|
|
4
|
-
import { DropdownMenu as
|
|
5
|
-
import { Flex as
|
|
6
|
-
import { FormField as
|
|
7
|
-
import { Typography as
|
|
8
|
-
import { SelectTrigger as
|
|
9
|
-
const
|
|
10
|
-
(
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { jsx as t, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import p, { forwardRef as U, useId as X, useMemo as Y, useRef as T, useEffect as D } from "react";
|
|
3
|
+
import { useMuzaTranslations as Z } from "../../translations/TranslationContext.js";
|
|
4
|
+
import { DropdownMenu as ee, DropdownMenuTrigger as te, DropdownMenuContent as re, DropdownMenuRadioGroup as ne, DropdownMenuRadioItem as ie } from "../DropdownMenu/DropdownMenu.js";
|
|
5
|
+
import { Flex as le } from "../Flex/Flex.js";
|
|
6
|
+
import { FormField as oe } from "../FormField/FormField.js";
|
|
7
|
+
import { Typography as o } from "../Typography/Typography.js";
|
|
8
|
+
import { SelectTrigger as ae } from "./SelectTrigger.js";
|
|
9
|
+
const se = U(
|
|
10
|
+
(B, m) => {
|
|
11
|
+
const f = Z(), {
|
|
12
|
+
id: F,
|
|
13
|
+
"aria-labelledby": j,
|
|
14
|
+
"aria-describedby": C,
|
|
15
|
+
label: h,
|
|
16
|
+
hint: g,
|
|
17
|
+
error: b,
|
|
15
18
|
options: s,
|
|
16
19
|
onChange: c,
|
|
17
20
|
value: n,
|
|
18
21
|
disabled: x,
|
|
19
|
-
prefix:
|
|
20
|
-
size:
|
|
21
|
-
placeholder:
|
|
22
|
-
emptyMessage:
|
|
23
|
-
shouldScrollToSelectedOption:
|
|
24
|
-
collisionPadding:
|
|
25
|
-
required:
|
|
26
|
-
disableRequiredAsterisk:
|
|
27
|
-
labelExtra:
|
|
28
|
-
infoTooltip:
|
|
29
|
-
} =
|
|
22
|
+
prefix: O,
|
|
23
|
+
size: W,
|
|
24
|
+
placeholder: q,
|
|
25
|
+
emptyMessage: E,
|
|
26
|
+
shouldScrollToSelectedOption: y,
|
|
27
|
+
collisionPadding: P,
|
|
28
|
+
required: v,
|
|
29
|
+
disableRequiredAsterisk: V,
|
|
30
|
+
labelExtra: $,
|
|
31
|
+
infoTooltip: k
|
|
32
|
+
} = B, w = q ?? f.select.placeholder, A = E ?? f.select.noOptions, L = X(), i = F ?? L, R = h ? `${i}-label` : void 0, M = g ? `${i}-hint` : void 0, N = [R, j].filter(Boolean), _ = N.length ? [...N, i].join(" ") : void 0, G = [M, C].filter(Boolean).join(" ") || void 0, r = n ? s.find((e) => e.value === n) : void 0, H = Y(() => r ? r.description ? /* @__PURE__ */ S(le, { flex: 1, direction: "column", className: "min-w-0 text-left", children: [
|
|
30
33
|
/* @__PURE__ */ t(
|
|
31
|
-
|
|
34
|
+
o,
|
|
32
35
|
{
|
|
33
36
|
size: "sm",
|
|
34
37
|
variant: "title",
|
|
@@ -39,7 +42,7 @@ const te = B(
|
|
|
39
42
|
}
|
|
40
43
|
),
|
|
41
44
|
/* @__PURE__ */ t(
|
|
42
|
-
|
|
45
|
+
o,
|
|
43
46
|
{
|
|
44
47
|
size: "sm",
|
|
45
48
|
variant: "body",
|
|
@@ -50,7 +53,7 @@ const te = B(
|
|
|
50
53
|
}
|
|
51
54
|
)
|
|
52
55
|
] }) : typeof r.label != "function" ? /* @__PURE__ */ t(
|
|
53
|
-
|
|
56
|
+
o,
|
|
54
57
|
{
|
|
55
58
|
size: "input",
|
|
56
59
|
className: "grow-1 fix-y-text truncate text-left text-comp-select-text-primary",
|
|
@@ -59,99 +62,104 @@ const te = B(
|
|
|
59
62
|
children: r.label
|
|
60
63
|
}
|
|
61
64
|
) : r.label : /* @__PURE__ */ t(
|
|
62
|
-
|
|
65
|
+
o,
|
|
63
66
|
{
|
|
64
67
|
size: "input",
|
|
65
68
|
className: "grow-1 fix-y-text truncate text-left text-comp-select-text-placeholder",
|
|
66
69
|
weight: "regular",
|
|
67
70
|
component: "span",
|
|
68
|
-
children:
|
|
71
|
+
children: w
|
|
69
72
|
}
|
|
70
|
-
), [r,
|
|
71
|
-
return
|
|
73
|
+
), [r, w]), [z, J] = p.useState(!1), [I, K] = p.useState(0), d = p.useRef(!1), Q = T(null), u = T({}), l = (typeof m == "function" ? null : m) ?? Q;
|
|
74
|
+
return D(() => {
|
|
72
75
|
const e = () => {
|
|
73
|
-
|
|
76
|
+
l.current && K(l.current.offsetWidth);
|
|
74
77
|
};
|
|
75
78
|
e();
|
|
76
|
-
const
|
|
77
|
-
return
|
|
78
|
-
|
|
79
|
+
const a = new ResizeObserver(e);
|
|
80
|
+
return l.current && a.observe(l.current), () => {
|
|
81
|
+
a.disconnect();
|
|
79
82
|
};
|
|
80
|
-
}, [
|
|
83
|
+
}, [l]), D(() => {
|
|
81
84
|
var e;
|
|
82
|
-
|
|
83
|
-
}, [
|
|
84
|
-
|
|
85
|
+
z && n && u.current[n] && y && ((e = u.current[n]) == null || e.scrollIntoView({ block: "nearest" }));
|
|
86
|
+
}, [z, y, n]), /* @__PURE__ */ t(
|
|
87
|
+
oe,
|
|
85
88
|
{
|
|
86
|
-
label:
|
|
87
|
-
hint:
|
|
88
|
-
error:
|
|
89
|
-
required:
|
|
90
|
-
disableRequiredAsterisk:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
89
|
+
label: h,
|
|
90
|
+
hint: g,
|
|
91
|
+
error: b,
|
|
92
|
+
required: v,
|
|
93
|
+
disableRequiredAsterisk: V,
|
|
94
|
+
htmlFor: i,
|
|
95
|
+
labelId: R,
|
|
96
|
+
hintId: M,
|
|
97
|
+
labelExtra: $,
|
|
98
|
+
infoTooltip: k,
|
|
95
99
|
className: "flex-1",
|
|
96
|
-
children: /* @__PURE__ */
|
|
97
|
-
|
|
100
|
+
children: /* @__PURE__ */ S(
|
|
101
|
+
ee,
|
|
98
102
|
{
|
|
99
103
|
onOpenChange: (e) => {
|
|
100
|
-
|
|
104
|
+
J(e);
|
|
101
105
|
},
|
|
102
106
|
children: [
|
|
103
|
-
/* @__PURE__ */ t(
|
|
104
|
-
|
|
107
|
+
/* @__PURE__ */ t(te, { disabled: x, asChild: !0, children: /* @__PURE__ */ t(
|
|
108
|
+
ae,
|
|
105
109
|
{
|
|
106
|
-
ref:
|
|
110
|
+
ref: l,
|
|
107
111
|
role: "input",
|
|
108
112
|
tabIndex: 0,
|
|
109
113
|
disabled: x,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
+
id: i,
|
|
115
|
+
"aria-labelledby": _,
|
|
116
|
+
"aria-describedby": G,
|
|
117
|
+
"aria-required": v,
|
|
118
|
+
size: W,
|
|
119
|
+
error: b,
|
|
120
|
+
prefix: O,
|
|
114
121
|
hasDescription: !!(r != null && r.description),
|
|
115
|
-
children:
|
|
122
|
+
children: H
|
|
116
123
|
}
|
|
117
124
|
) }),
|
|
118
125
|
/* @__PURE__ */ t(
|
|
119
|
-
|
|
126
|
+
re,
|
|
120
127
|
{
|
|
128
|
+
"aria-labelledby": i,
|
|
121
129
|
className: "mt-1",
|
|
122
130
|
style: {
|
|
123
|
-
width:
|
|
131
|
+
width: I > 0 ? `${I}px` : void 0
|
|
124
132
|
},
|
|
125
133
|
align: "center",
|
|
126
134
|
onCloseAutoFocus: (e) => {
|
|
127
|
-
|
|
135
|
+
d.current || e.preventDefault(), d.current = !1;
|
|
128
136
|
},
|
|
129
|
-
collisionPadding:
|
|
137
|
+
collisionPadding: P,
|
|
130
138
|
children: s.length === 0 ? /* @__PURE__ */ t("div", { className: "px-lg py-md", role: "presentation", children: /* @__PURE__ */ t(
|
|
131
|
-
|
|
139
|
+
o,
|
|
132
140
|
{
|
|
133
141
|
component: "span",
|
|
134
142
|
size: "input",
|
|
135
143
|
weight: "regular",
|
|
136
144
|
className: "text-comp-select-text-secondary",
|
|
137
|
-
children:
|
|
145
|
+
children: A
|
|
138
146
|
}
|
|
139
147
|
) }) : /* @__PURE__ */ t(
|
|
140
|
-
|
|
148
|
+
ne,
|
|
141
149
|
{
|
|
142
150
|
value: n,
|
|
143
151
|
onValueChange: (e) => {
|
|
144
|
-
|
|
152
|
+
d.current = !0, c == null || c(e);
|
|
145
153
|
},
|
|
146
154
|
children: s.map((e) => /* @__PURE__ */ t(
|
|
147
|
-
|
|
155
|
+
ie,
|
|
148
156
|
{
|
|
149
157
|
value: e.value.toString(),
|
|
150
158
|
disabled: e.disabled,
|
|
151
159
|
icon: e.icon,
|
|
152
160
|
description: e.description,
|
|
153
|
-
ref: (
|
|
154
|
-
|
|
161
|
+
ref: (a) => {
|
|
162
|
+
u.current[e.value] = a;
|
|
155
163
|
},
|
|
156
164
|
children: e.label
|
|
157
165
|
},
|
|
@@ -168,7 +176,7 @@ const te = B(
|
|
|
168
176
|
);
|
|
169
177
|
}
|
|
170
178
|
);
|
|
171
|
-
|
|
179
|
+
se.displayName = "Select";
|
|
172
180
|
export {
|
|
173
|
-
|
|
181
|
+
se as Select
|
|
174
182
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAU3D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAU3D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAwJ7B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AA6BpC,eAAO,MAAM,OAAO,EAAE,KAwBrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KA2BvB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KA0B9B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KA0BvB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAwB/B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KA0BtB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KA0BtB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KA6DtB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KA0C7B,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAgCzB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAyBxB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAqDhC,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAkCjC,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAoDrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAqBvB,CAAA"}
|
|
@@ -11,7 +11,7 @@ const E = x(
|
|
|
11
11
|
weight: "medium",
|
|
12
12
|
size: "base"
|
|
13
13
|
}),
|
|
14
|
-
"w-full font-text text-comp-input-text-primary transition-colors outline-none",
|
|
14
|
+
"w-full font-text text-comp-input-text-primary autofill-field transition-colors outline-none",
|
|
15
15
|
"placeholder:font-regular placeholder:text-comp-input-text-placeholder",
|
|
16
16
|
"mr-[calc(var(--spacing-xl)/2)] pt-xl pr-[calc(var(--spacing-comp-input-p-hor)-var(--spacing-xl)/2)] pb-[calc(var(--spacing-xl)/2)] pl-comp-input-p-hor",
|
|
17
17
|
"disabled:cursor-not-allowed"
|
|
@@ -44,7 +44,12 @@ declare const Tooltip: ({ openOnClick, open: openProp, defaultOpen, onOpenChange
|
|
|
44
44
|
/** Props for the TooltipTrigger. Element that displays the tooltip on hover/focus, or on click/tap when the root opts in via `openOnClick`. Use `asChild` for custom elements. */
|
|
45
45
|
export type TooltipTriggerProps = React.ComponentProps<typeof TooltipPrimitive.Trigger>;
|
|
46
46
|
declare const TooltipTrigger: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
47
|
-
/**
|
|
47
|
+
/**
|
|
48
|
+
* Props for the TooltipContent. Styled floating container with positioning and
|
|
49
|
+
* animations. Short text sizes the bubble to itself, long text wraps at the
|
|
50
|
+
* design system's maximum tooltip width; pass a `max-w-*` class via `className`
|
|
51
|
+
* to override that cap for a single tooltip.
|
|
52
|
+
*/
|
|
48
53
|
export interface TooltipContentProps extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> {
|
|
49
54
|
/** Preferred side of the trigger to render against. @default 'top' */
|
|
50
55
|
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAA;AA+C3D,+FAA+F;AAC/F,MAAM,WAAW,oBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,QAAQ,CAAC;IACxE,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,yFAAyF;IACzF,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,4FAA4F;IAC5F,uBAAuB,CAAC,EAAE,OAAO,CAAA;CAClC;AAED,QAAA,MAAM,eAAe,GAAI,cAAc,oBAAoB,4CAE1D,CAAA;AAED,uEAAuE;AACvE,MAAM,WAAW,YACf,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,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