@prokodo/ui 0.0.25 → 0.0.26
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 +65 -65
- package/dist/components/animated/Animated.js +17 -17
- package/dist/components/animatedText/AnimatedText.js +4 -4
- package/dist/components/avatar/Avatar.js +34 -34
- package/dist/components/base-link/BaseLink.js +12 -12
- package/dist/components/button/Button.js +48 -48
- package/dist/components/calendly/Calendly.js +32 -32
- package/dist/components/card/Card.js +107 -107
- package/dist/components/carousel/Carousel.js +106 -106
- package/dist/components/chip/Chip.js +26 -26
- package/dist/components/datePicker/DatePicker.js +37 -37
- package/dist/components/dialog/Dialog.js +82 -82
- package/dist/components/drawer/Drawer.js +48 -48
- package/dist/components/form/Form.js +94 -94
- package/dist/components/form/FormField.js +41 -41
- package/dist/components/form/FormResponse.js +22 -22
- package/dist/components/grid/Grid.js +8 -8
- package/dist/components/grid/GridRow.js +10 -10
- package/dist/components/headline/Headline.js +28 -28
- package/dist/components/icon/Icon.js +4 -4
- package/dist/components/image/Image.js +15 -15
- package/dist/components/image-text/ImageText.js +48 -48
- package/dist/components/input/Input.js +121 -121
- package/dist/components/inputOTP/InputOTP.js +24 -24
- package/dist/components/label/Label.js +26 -26
- package/dist/components/link/Link.js +27 -27
- package/dist/components/list/List.js +75 -75
- package/dist/components/loading/Loading.js +17 -17
- package/dist/components/lottie/Lottie.js +23 -23
- package/dist/components/map/Map.js +19 -19
- package/dist/components/post-item/PostItem.js +73 -73
- package/dist/components/post-item/PostItemAuthor.js +16 -16
- package/dist/components/post-teaser/PostTeaser.js +76 -76
- package/dist/components/post-widget/PostWidget.js +63 -63
- package/dist/components/post-widget-carousel/PostWidgetCarousel.js +67 -67
- package/dist/components/quote/Quote.js +40 -40
- package/dist/components/rich-text/RichText.js +76 -76
- package/dist/components/select/Select.js +92 -92
- package/dist/components/skeleton/Skeleton.js +8 -8
- package/dist/components/slider/Slider.js +50 -50
- package/dist/components/stepper/Stepper.js +41 -41
- package/dist/components/switch/Switch.js +32 -32
- package/dist/components/table/Table.js +31 -31
- package/dist/components/teaser/Teaser.js +55 -55
- package/dist/constants/project.js +1 -1
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Option/Option.js +23 -23
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Portal/Portal.js +22 -22
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Select/Select.js +46 -46
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Slider/Slider.js +141 -141
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Switch/Switch.js +33 -33
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Unstable_Popup/Popup.js +31 -31
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useSelect/SelectProvider.js +14 -14
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -3
- package/dist/_virtual/jsx-runtime.js +0 -5
- package/dist/_virtual/jsx-runtime2.js +0 -4
- package/dist/_virtual/react-jsx-runtime.development.js +0 -4
- package/dist/_virtual/react-jsx-runtime.production.js +0 -4
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-jsx-runtime.development.js +0 -247
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-jsx-runtime.production.js +0 -35
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.js +0 -10
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { memo as
|
|
3
|
-
import { create as
|
|
4
|
-
import { isString as
|
|
5
|
-
import
|
|
6
|
-
import { Card as
|
|
7
|
-
import { Lottie as
|
|
8
|
-
import { Image as
|
|
9
|
-
import { Headline as
|
|
10
|
-
import { RichText as
|
|
11
|
-
import { Icon as
|
|
12
|
-
const
|
|
1
|
+
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { memo as v } from "react";
|
|
3
|
+
import { create as x } from "../../helpers/bem.js";
|
|
4
|
+
import { isString as _ } from "../../helpers/validations.js";
|
|
5
|
+
import C from "./Teaser.module.scss.js";
|
|
6
|
+
import { Card as y } from "../card/Card.js";
|
|
7
|
+
import { Lottie as T } from "../lottie/Lottie.js";
|
|
8
|
+
import { Image as b } from "../image/Image.js";
|
|
9
|
+
import { Headline as I } from "../headline/Headline.js";
|
|
10
|
+
import { RichText as j } from "../rich-text/RichText.js";
|
|
11
|
+
import { Icon as k } from "../icon/Icon.js";
|
|
12
|
+
const m = x(C, "Teaser"), w = v(
|
|
13
13
|
({
|
|
14
|
-
className:
|
|
14
|
+
className: g,
|
|
15
15
|
variant: n = "primary",
|
|
16
|
-
animation:
|
|
17
|
-
lineClamp:
|
|
16
|
+
animation: c,
|
|
17
|
+
lineClamp: N,
|
|
18
18
|
align: p,
|
|
19
|
-
image:
|
|
20
|
-
title:
|
|
21
|
-
content:
|
|
22
|
-
onClick:
|
|
19
|
+
image: h,
|
|
20
|
+
title: o,
|
|
21
|
+
content: i,
|
|
22
|
+
onClick: r,
|
|
23
23
|
redirect: a,
|
|
24
|
-
...
|
|
24
|
+
...e
|
|
25
25
|
}) => {
|
|
26
|
-
var
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
-
|
|
26
|
+
var f;
|
|
27
|
+
return /* @__PURE__ */ l(
|
|
28
|
+
y,
|
|
29
29
|
{
|
|
30
30
|
variant: n,
|
|
31
|
-
...
|
|
32
|
-
className:
|
|
33
|
-
contentClassName:
|
|
31
|
+
...e,
|
|
32
|
+
className: m(void 0, void 0, g),
|
|
33
|
+
contentClassName: m("card"),
|
|
34
34
|
redirect: a,
|
|
35
|
-
onClick:
|
|
35
|
+
onClick: r,
|
|
36
36
|
children: [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
c && /* @__PURE__ */ s(T, { animationName: c, className: m("animation") }),
|
|
38
|
+
h && /* @__PURE__ */ s("div", { className: m("image__wrapper"), children: /* @__PURE__ */ s(
|
|
39
|
+
b,
|
|
40
40
|
{
|
|
41
|
-
...
|
|
42
|
-
captionClassName:
|
|
43
|
-
className:
|
|
44
|
-
containerClassName:
|
|
41
|
+
...h,
|
|
42
|
+
captionClassName: m("image__caption"),
|
|
43
|
+
className: m("image"),
|
|
44
|
+
containerClassName: m("image")
|
|
45
45
|
}
|
|
46
46
|
) }),
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
|
|
47
|
+
/* @__PURE__ */ l("div", { className: m("card__content"), children: [
|
|
48
|
+
/* @__PURE__ */ s(
|
|
49
|
+
I,
|
|
50
50
|
{
|
|
51
51
|
align: p ?? "center",
|
|
52
52
|
size: "md",
|
|
53
53
|
type: "h3",
|
|
54
|
-
...
|
|
55
|
-
variant: (
|
|
56
|
-
className:
|
|
54
|
+
...o,
|
|
55
|
+
variant: (o == null ? void 0 : o.variant) ?? n,
|
|
56
|
+
className: m(
|
|
57
57
|
"headline",
|
|
58
58
|
{
|
|
59
|
-
"has-lineClamp": !!
|
|
59
|
+
"has-lineClamp": !!N
|
|
60
60
|
},
|
|
61
|
-
|
|
61
|
+
o == null ? void 0 : o.className
|
|
62
62
|
),
|
|
63
|
-
children:
|
|
63
|
+
children: o == null ? void 0 : o.content
|
|
64
64
|
}
|
|
65
65
|
),
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
_(i) && /* @__PURE__ */ s(
|
|
67
|
+
j,
|
|
68
68
|
{
|
|
69
|
-
className:
|
|
70
|
-
"has-lineClamp": !!
|
|
69
|
+
className: m("content", {
|
|
70
|
+
"has-lineClamp": !!N,
|
|
71
71
|
[`align-${p}`]: !!p
|
|
72
72
|
}),
|
|
73
|
-
children:
|
|
73
|
+
children: i
|
|
74
74
|
}
|
|
75
75
|
),
|
|
76
|
-
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
|
|
76
|
+
_(a == null ? void 0 : a.label) && /* @__PURE__ */ l("span", { className: m("link"), children: [
|
|
77
|
+
/* @__PURE__ */ s(
|
|
78
|
+
k,
|
|
79
79
|
{
|
|
80
80
|
color: n,
|
|
81
81
|
name: "ArrowRight01Icon",
|
|
82
82
|
size: "xs",
|
|
83
83
|
...a == null ? void 0 : a.icon,
|
|
84
|
-
className:
|
|
84
|
+
className: m(
|
|
85
85
|
"link__icon",
|
|
86
86
|
void 0,
|
|
87
|
-
(
|
|
87
|
+
(f = a == null ? void 0 : a.icon) == null ? void 0 : f.className
|
|
88
88
|
)
|
|
89
89
|
}
|
|
90
90
|
),
|
|
@@ -96,7 +96,7 @@ const s = e(g, "Teaser"), R = r(
|
|
|
96
96
|
);
|
|
97
97
|
}
|
|
98
98
|
);
|
|
99
|
-
|
|
99
|
+
w.displayName = "Teaser";
|
|
100
100
|
export {
|
|
101
|
-
|
|
101
|
+
w as Teaser
|
|
102
102
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as n from "react";
|
|
2
2
|
import o from "../../../../../../../_virtual/index.js";
|
|
3
|
-
import { getOptionUtilityClass as
|
|
4
|
-
import { useClassNamesOverride as
|
|
5
|
-
import {
|
|
6
|
-
import { useOptionContextStabilizer as
|
|
7
|
-
import
|
|
3
|
+
import { getOptionUtilityClass as S } from "./optionClasses.js";
|
|
4
|
+
import { useClassNamesOverride as T } from "../utils/ClassNameConfigurator.js";
|
|
5
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
6
|
+
import { useOptionContextStabilizer as w } from "../useOption/useOptionContextStabilizer.js";
|
|
7
|
+
import j from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useForkRef/useForkRef.js";
|
|
8
8
|
import { useOption as E } from "../useOption/useOption.js";
|
|
9
9
|
import F from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js";
|
|
10
10
|
import L from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/composeClasses/composeClasses.js";
|
|
@@ -17,7 +17,7 @@ function V(i) {
|
|
|
17
17
|
} = i;
|
|
18
18
|
return L({
|
|
19
19
|
root: ["root", e && "disabled", s && "highlighted", t && "selected"]
|
|
20
|
-
}, S
|
|
20
|
+
}, T(S));
|
|
21
21
|
}
|
|
22
22
|
const k = /* @__PURE__ */ n.memo(/* @__PURE__ */ n.forwardRef(function(e, s) {
|
|
23
23
|
var m, d;
|
|
@@ -27,34 +27,34 @@ const k = /* @__PURE__ */ n.memo(/* @__PURE__ */ n.forwardRef(function(e, s) {
|
|
|
27
27
|
label: f,
|
|
28
28
|
slotProps: u = {},
|
|
29
29
|
slots: h = {},
|
|
30
|
-
value:
|
|
31
|
-
...
|
|
32
|
-
} = e, p = h.root ?? "li", c = n.useRef(null),
|
|
33
|
-
getRootProps:
|
|
34
|
-
selected:
|
|
30
|
+
value: b,
|
|
31
|
+
...g
|
|
32
|
+
} = e, p = h.root ?? "li", c = n.useRef(null), R = j(c, s), O = f ?? (typeof t == "string" ? t : (d = (m = c.current) == null ? void 0 : m.textContent) == null ? void 0 : d.trim()), {
|
|
33
|
+
getRootProps: P,
|
|
34
|
+
selected: x,
|
|
35
35
|
highlighted: y,
|
|
36
36
|
index: v
|
|
37
37
|
} = E({
|
|
38
38
|
disabled: r,
|
|
39
|
-
label:
|
|
40
|
-
rootRef:
|
|
41
|
-
value:
|
|
39
|
+
label: O,
|
|
40
|
+
rootRef: R,
|
|
41
|
+
value: b
|
|
42
42
|
}), a = {
|
|
43
43
|
...e,
|
|
44
44
|
disabled: r,
|
|
45
45
|
highlighted: y,
|
|
46
46
|
index: v,
|
|
47
|
-
selected:
|
|
48
|
-
}, C = V(a),
|
|
49
|
-
getSlotProps:
|
|
47
|
+
selected: x
|
|
48
|
+
}, C = V(a), N = F({
|
|
49
|
+
getSlotProps: P,
|
|
50
50
|
elementType: p,
|
|
51
51
|
externalSlotProps: u.root,
|
|
52
|
-
externalForwardedProps:
|
|
52
|
+
externalForwardedProps: g,
|
|
53
53
|
className: C.root,
|
|
54
54
|
ownerState: a
|
|
55
55
|
});
|
|
56
|
-
return /* @__PURE__ */ l
|
|
57
|
-
...
|
|
56
|
+
return /* @__PURE__ */ l(p, {
|
|
57
|
+
...N,
|
|
58
58
|
children: t
|
|
59
59
|
});
|
|
60
60
|
})), q = /* @__PURE__ */ n.forwardRef(function(e, s) {
|
|
@@ -62,10 +62,10 @@ const k = /* @__PURE__ */ n.memo(/* @__PURE__ */ n.forwardRef(function(e, s) {
|
|
|
62
62
|
value: t
|
|
63
63
|
} = e, {
|
|
64
64
|
contextValue: r
|
|
65
|
-
} =
|
|
66
|
-
return /* @__PURE__ */ l
|
|
65
|
+
} = w(t);
|
|
66
|
+
return /* @__PURE__ */ l(U.Provider, {
|
|
67
67
|
value: r,
|
|
68
|
-
children: /* @__PURE__ */ l
|
|
68
|
+
children: /* @__PURE__ */ l(k, {
|
|
69
69
|
...e,
|
|
70
70
|
ref: s
|
|
71
71
|
})
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
2
|
import * as y from "react-dom";
|
|
3
3
|
import p from "../../../../../../../_virtual/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
5
5
|
import P from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useForkRef/useForkRef.js";
|
|
6
6
|
import N from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/getReactNodeRef/getReactNodeRef.js";
|
|
7
|
-
import
|
|
7
|
+
import s from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js";
|
|
8
8
|
import l from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/setRef/setRef.js";
|
|
9
9
|
import T from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType.js";
|
|
10
10
|
import h from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/exactProp/exactProp.js";
|
|
11
|
-
function
|
|
11
|
+
function R(n) {
|
|
12
12
|
return typeof n == "function" ? n() : n;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const m = /* @__PURE__ */ o.forwardRef(function(u, i) {
|
|
15
15
|
const {
|
|
16
|
-
children:
|
|
17
|
-
container:
|
|
18
|
-
disablePortal:
|
|
19
|
-
} = u, [e, a] = o.useState(null), d = P(N(
|
|
20
|
-
if (
|
|
21
|
-
|
|
22
|
-
}, [
|
|
23
|
-
if (e && !
|
|
16
|
+
children: r,
|
|
17
|
+
container: c,
|
|
18
|
+
disablePortal: t = !1
|
|
19
|
+
} = u, [e, a] = o.useState(null), d = P(N(r), i);
|
|
20
|
+
if (s(() => {
|
|
21
|
+
t || a(R(c) || document.body);
|
|
22
|
+
}, [c, t]), s(() => {
|
|
23
|
+
if (e && !t)
|
|
24
24
|
return l(i, e), () => {
|
|
25
25
|
l(i, null);
|
|
26
26
|
};
|
|
27
|
-
}, [i, e,
|
|
28
|
-
if (/* @__PURE__ */ o.isValidElement(
|
|
27
|
+
}, [i, e, t]), t) {
|
|
28
|
+
if (/* @__PURE__ */ o.isValidElement(r)) {
|
|
29
29
|
const E = {
|
|
30
30
|
ref: d
|
|
31
31
|
};
|
|
32
|
-
return /* @__PURE__ */ o.cloneElement(
|
|
32
|
+
return /* @__PURE__ */ o.cloneElement(r, E);
|
|
33
33
|
}
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
-
children:
|
|
34
|
+
return /* @__PURE__ */ f(o.Fragment, {
|
|
35
|
+
children: r
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
return /* @__PURE__ */
|
|
39
|
-
children: e && /* @__PURE__ */ y.createPortal(
|
|
38
|
+
return /* @__PURE__ */ f(o.Fragment, {
|
|
39
|
+
children: e && /* @__PURE__ */ y.createPortal(r, e)
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
|
-
process.env.NODE_ENV !== "production" && (
|
|
42
|
+
process.env.NODE_ENV !== "production" && (m.propTypes = {
|
|
43
43
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
44
44
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
45
45
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -65,7 +65,7 @@ process.env.NODE_ENV !== "production" && (s.propTypes = {
|
|
|
65
65
|
*/
|
|
66
66
|
disablePortal: p.bool
|
|
67
67
|
});
|
|
68
|
-
process.env.NODE_ENV !== "production" && (
|
|
68
|
+
process.env.NODE_ENV !== "production" && (m.propTypes = h(m.propTypes));
|
|
69
69
|
export {
|
|
70
|
-
|
|
70
|
+
m as Portal
|
|
71
71
|
};
|
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
import * as t from "react";
|
|
2
2
|
import e from "../../../../../../../_virtual/index.js";
|
|
3
3
|
import { Popup as ne } from "../Unstable_Popup/Popup.js";
|
|
4
|
-
import { getSelectUtilityClass as
|
|
5
|
-
import { defaultOptionStringifier as
|
|
4
|
+
import { getSelectUtilityClass as le } from "./selectClasses.js";
|
|
5
|
+
import { defaultOptionStringifier as se } from "../useSelect/defaultOptionStringifier.js";
|
|
6
6
|
import { useClassNamesOverride as re } from "../utils/ClassNameConfigurator.js";
|
|
7
7
|
import { SelectProvider as ae } from "../useSelect/SelectProvider.js";
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import { useSelect as
|
|
8
|
+
import { jsxs as pe, jsx as n } from "react/jsx-runtime";
|
|
9
|
+
import ie from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useForkRef/useForkRef.js";
|
|
10
|
+
import { useSelect as ue } from "../useSelect/useSelect.js";
|
|
11
11
|
import P from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js";
|
|
12
|
-
import
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
return Array.isArray(o) ? /* @__PURE__ */ n
|
|
16
|
-
children: o.map((
|
|
12
|
+
import ce from "../../../../../@mui_utils@6.0.0-rc.0_@types_react@19.1.0_react@19.1.0/node_modules/@mui/utils/esm/composeClasses/composeClasses.js";
|
|
13
|
+
var R;
|
|
14
|
+
function de(o) {
|
|
15
|
+
return Array.isArray(o) ? /* @__PURE__ */ n(t.Fragment, {
|
|
16
|
+
children: o.map((l) => l.label).join(", ")
|
|
17
17
|
}) : (o == null ? void 0 : o.label) ?? null;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function fe(o) {
|
|
20
20
|
const {
|
|
21
|
-
active:
|
|
21
|
+
active: l,
|
|
22
22
|
disabled: r,
|
|
23
23
|
open: p,
|
|
24
24
|
focusVisible: i
|
|
25
25
|
} = o;
|
|
26
|
-
return
|
|
27
|
-
root: ["root", r && "disabled", i && "focusVisible",
|
|
26
|
+
return ce({
|
|
27
|
+
root: ["root", r && "disabled", i && "focusVisible", l && "active", p && "expanded"],
|
|
28
28
|
listbox: ["listbox", r && "disabled"],
|
|
29
29
|
popup: ["popup"]
|
|
30
|
-
}, re(
|
|
30
|
+
}, re(le));
|
|
31
31
|
}
|
|
32
|
-
const
|
|
32
|
+
const me = /* @__PURE__ */ t.forwardRef(function(l, r) {
|
|
33
33
|
const {
|
|
34
34
|
areOptionsEqual: p,
|
|
35
35
|
autoComplete: i,
|
|
36
36
|
autoFocus: u,
|
|
37
|
-
children:
|
|
38
|
-
defaultValue:
|
|
37
|
+
children: T,
|
|
38
|
+
defaultValue: N,
|
|
39
39
|
defaultListboxOpen: h = !1,
|
|
40
|
-
disabled:
|
|
41
|
-
getSerializedValue:
|
|
40
|
+
disabled: F,
|
|
41
|
+
getSerializedValue: j,
|
|
42
42
|
listboxId: B,
|
|
43
|
-
listboxOpen:
|
|
43
|
+
listboxOpen: L,
|
|
44
44
|
multiple: c = !1,
|
|
45
|
-
name:
|
|
46
|
-
required:
|
|
45
|
+
name: A,
|
|
46
|
+
required: E = !1,
|
|
47
47
|
onChange: q,
|
|
48
48
|
onListboxOpenChange: k,
|
|
49
|
-
getOptionAsString: w =
|
|
49
|
+
getOptionAsString: w = se,
|
|
50
50
|
renderValue: D,
|
|
51
51
|
placeholder: I,
|
|
52
52
|
slotProps: d = {},
|
|
53
53
|
slots: f = {},
|
|
54
54
|
value: M,
|
|
55
55
|
...z
|
|
56
|
-
} =
|
|
57
|
-
_(
|
|
58
|
-
}, []), J =
|
|
56
|
+
} = l, S = D ?? de, [U, _] = t.useState(!1), m = t.useRef(null), H = t.useRef(null), y = f.root ?? "button", v = f.listbox ?? "ul", C = f.popup ?? "div", G = t.useCallback((s) => {
|
|
57
|
+
_(s != null);
|
|
58
|
+
}, []), J = ie(r, m, G);
|
|
59
59
|
t.useEffect(() => {
|
|
60
60
|
u && m.current.focus();
|
|
61
61
|
}, [u]);
|
|
@@ -70,25 +70,25 @@ const fe = /* @__PURE__ */ t.forwardRef(function(s, r) {
|
|
|
70
70
|
getOptionMetadata: O,
|
|
71
71
|
value: b,
|
|
72
72
|
open: V
|
|
73
|
-
} =
|
|
74
|
-
name:
|
|
75
|
-
required:
|
|
76
|
-
getSerializedValue:
|
|
73
|
+
} = ue({
|
|
74
|
+
name: A,
|
|
75
|
+
required: E,
|
|
76
|
+
getSerializedValue: j,
|
|
77
77
|
areOptionsEqual: p,
|
|
78
78
|
buttonRef: J,
|
|
79
79
|
defaultOpen: h,
|
|
80
|
-
defaultValue:
|
|
81
|
-
disabled:
|
|
80
|
+
defaultValue: N,
|
|
81
|
+
disabled: F,
|
|
82
82
|
listboxId: B,
|
|
83
83
|
multiple: c,
|
|
84
|
-
open:
|
|
84
|
+
open: L,
|
|
85
85
|
onChange: q,
|
|
86
86
|
onOpenChange: k,
|
|
87
87
|
getOptionAsString: w,
|
|
88
88
|
value: M,
|
|
89
89
|
componentName: "Select"
|
|
90
90
|
}), a = {
|
|
91
|
-
...
|
|
91
|
+
...l,
|
|
92
92
|
active: K,
|
|
93
93
|
defaultListboxOpen: h,
|
|
94
94
|
disabled: X,
|
|
@@ -97,7 +97,7 @@ const fe = /* @__PURE__ */ t.forwardRef(function(s, r) {
|
|
|
97
97
|
multiple: c,
|
|
98
98
|
renderValue: S,
|
|
99
99
|
value: b
|
|
100
|
-
}, x =
|
|
100
|
+
}, x = fe(a), ee = P({
|
|
101
101
|
elementType: y,
|
|
102
102
|
getSlotProps: Y,
|
|
103
103
|
externalSlotProps: d.root,
|
|
@@ -127,34 +127,34 @@ const fe = /* @__PURE__ */ t.forwardRef(function(s, r) {
|
|
|
127
127
|
className: x.popup
|
|
128
128
|
});
|
|
129
129
|
let g;
|
|
130
|
-
return c ? g = b.map((
|
|
131
|
-
children: [/* @__PURE__ */ n
|
|
130
|
+
return c ? g = b.map((s) => O(s)).filter((s) => s !== void 0) : g = O(b) ?? null, /* @__PURE__ */ pe(t.Fragment, {
|
|
131
|
+
children: [/* @__PURE__ */ n(y, {
|
|
132
132
|
...ee,
|
|
133
133
|
children: S(g) ?? I ?? // fall back to a zero-width space to prevent layout shift
|
|
134
134
|
// from https://github.com/mui/material-ui/pull/24563
|
|
135
|
-
(
|
|
135
|
+
(R || (R = /* @__PURE__ */ n("span", {
|
|
136
136
|
className: "notranslate",
|
|
137
137
|
children: ""
|
|
138
138
|
})))
|
|
139
|
-
}), U && /* @__PURE__ */ n
|
|
139
|
+
}), U && /* @__PURE__ */ n(ne, {
|
|
140
140
|
slots: {
|
|
141
141
|
root: C
|
|
142
142
|
},
|
|
143
143
|
...te,
|
|
144
|
-
children: /* @__PURE__ */ n
|
|
144
|
+
children: /* @__PURE__ */ n(v, {
|
|
145
145
|
...oe,
|
|
146
|
-
children: /* @__PURE__ */ n
|
|
146
|
+
children: /* @__PURE__ */ n(ae, {
|
|
147
147
|
value: W,
|
|
148
|
-
children:
|
|
148
|
+
children: T
|
|
149
149
|
})
|
|
150
150
|
})
|
|
151
|
-
}), /* @__PURE__ */ n
|
|
151
|
+
}), /* @__PURE__ */ n("input", {
|
|
152
152
|
...$(),
|
|
153
153
|
autoComplete: i
|
|
154
154
|
})]
|
|
155
155
|
});
|
|
156
156
|
});
|
|
157
|
-
process.env.NODE_ENV !== "production" && (
|
|
157
|
+
process.env.NODE_ENV !== "production" && (me.propTypes = {
|
|
158
158
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
159
159
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
160
160
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -282,5 +282,5 @@ process.env.NODE_ENV !== "production" && (fe.propTypes = {
|
|
|
282
282
|
value: e.any
|
|
283
283
|
});
|
|
284
284
|
export {
|
|
285
|
-
|
|
285
|
+
me as Select
|
|
286
286
|
};
|