@prokodo/ui 0.0.24 → 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-item/index.js +4 -2
- 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/dist/types/components/post-item/index.d.ts +1 -0
- 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,143 +1,143 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { memo as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { create as
|
|
7
|
-
import { isNull as
|
|
8
|
-
import
|
|
9
|
-
import { AnimatedText as
|
|
10
|
-
import { Icon as
|
|
11
|
-
import { Link as
|
|
12
|
-
import { Headline as
|
|
13
|
-
const m =
|
|
14
|
-
function
|
|
15
|
-
return
|
|
1
|
+
import { jsx as e, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { memo as R, useMemo as N, useCallback as T } from "react";
|
|
3
|
+
import _ from "react-markdown";
|
|
4
|
+
import A from "remark-breaks";
|
|
5
|
+
import j from "remark-gfm";
|
|
6
|
+
import { create as w } from "../../helpers/bem.js";
|
|
7
|
+
import { isNull as x } from "../../helpers/validations.js";
|
|
8
|
+
import I from "./RichText.module.scss.js";
|
|
9
|
+
import { AnimatedText as M } from "../animatedText/AnimatedText.js";
|
|
10
|
+
import { Icon as B } from "../icon/Icon.js";
|
|
11
|
+
import { Link as C } from "../link/Link.js";
|
|
12
|
+
import { Headline as d } from "../headline/Headline.js";
|
|
13
|
+
const m = w(I, "RichText");
|
|
14
|
+
function E(c) {
|
|
15
|
+
return x(c) && "tagName" in c;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
return !
|
|
17
|
+
function G(c) {
|
|
18
|
+
return !x(c) && (c == null ? void 0 : c.type) === "text" && "value" in c;
|
|
19
19
|
}
|
|
20
|
-
const
|
|
20
|
+
const H = R(
|
|
21
21
|
({
|
|
22
22
|
className: c,
|
|
23
|
-
animated:
|
|
24
|
-
animationProps:
|
|
25
|
-
variant:
|
|
26
|
-
schema:
|
|
27
|
-
itemProp:
|
|
28
|
-
children:
|
|
29
|
-
...
|
|
23
|
+
animated: a,
|
|
24
|
+
animationProps: r = {},
|
|
25
|
+
variant: v = "primary",
|
|
26
|
+
schema: f = {},
|
|
27
|
+
itemProp: y,
|
|
28
|
+
children: k,
|
|
29
|
+
...z
|
|
30
30
|
}) => {
|
|
31
|
-
const
|
|
31
|
+
const l = N(
|
|
32
32
|
() => ({
|
|
33
|
-
animated:
|
|
33
|
+
animated: a,
|
|
34
34
|
className: c ?? void 0,
|
|
35
|
-
...
|
|
35
|
+
...f
|
|
36
36
|
}),
|
|
37
|
-
[
|
|
38
|
-
), n =
|
|
37
|
+
[a, f, c]
|
|
38
|
+
), n = N(
|
|
39
39
|
() => ({
|
|
40
|
-
animationProps:
|
|
40
|
+
animationProps: r
|
|
41
41
|
}),
|
|
42
|
-
[
|
|
43
|
-
), t =
|
|
44
|
-
(i) =>
|
|
45
|
-
[
|
|
42
|
+
[r]
|
|
43
|
+
), t = T(
|
|
44
|
+
(i) => a === !1 || a === void 0 ? i : /* @__PURE__ */ e(M, { ...r, children: i }),
|
|
45
|
+
[a, r]
|
|
46
46
|
);
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
-
|
|
47
|
+
return /* @__PURE__ */ e(
|
|
48
|
+
_,
|
|
49
49
|
{
|
|
50
|
-
remarkPlugins: [
|
|
50
|
+
remarkPlugins: [j, A],
|
|
51
51
|
components: {
|
|
52
|
-
h1: (i) => /* @__PURE__ */
|
|
53
|
-
h2: (i) => /* @__PURE__ */
|
|
54
|
-
h3: (i) => /* @__PURE__ */
|
|
55
|
-
h4: (i) => /* @__PURE__ */
|
|
56
|
-
h5: (i) => /* @__PURE__ */
|
|
57
|
-
h6: (i) => /* @__PURE__ */
|
|
58
|
-
p: (i) => /* @__PURE__ */
|
|
52
|
+
h1: (i) => /* @__PURE__ */ e(d, { ...l, ...n, size: "xxl", type: "h1", children: i == null ? void 0 : i.children }),
|
|
53
|
+
h2: (i) => /* @__PURE__ */ e(d, { ...l, ...n, size: "xl", type: "h2", children: i == null ? void 0 : i.children }),
|
|
54
|
+
h3: (i) => /* @__PURE__ */ e(d, { ...l, ...n, size: "lg", type: "h3", children: i == null ? void 0 : i.children }),
|
|
55
|
+
h4: (i) => /* @__PURE__ */ e(d, { ...l, ...n, size: "md", type: "h4", children: i == null ? void 0 : i.children }),
|
|
56
|
+
h5: (i) => /* @__PURE__ */ e(d, { ...l, ...n, size: "sm", type: "h5", children: i == null ? void 0 : i.children }),
|
|
57
|
+
h6: (i) => /* @__PURE__ */ e(d, { ...l, ...n, size: "xs", type: "h6", children: i == null ? void 0 : i.children }),
|
|
58
|
+
p: (i) => /* @__PURE__ */ e(
|
|
59
59
|
"p",
|
|
60
60
|
{
|
|
61
|
-
...
|
|
62
|
-
className: m("p", void 0,
|
|
63
|
-
itemProp:
|
|
61
|
+
...l,
|
|
62
|
+
className: m("p", void 0, l == null ? void 0 : l.className),
|
|
63
|
+
itemProp: y,
|
|
64
64
|
children: t(i == null ? void 0 : i.children)
|
|
65
65
|
}
|
|
66
66
|
),
|
|
67
67
|
a: (i) => {
|
|
68
68
|
var h;
|
|
69
|
-
return /* @__PURE__ */
|
|
70
|
-
|
|
69
|
+
return /* @__PURE__ */ e(
|
|
70
|
+
C,
|
|
71
71
|
{
|
|
72
|
-
...
|
|
72
|
+
...l,
|
|
73
73
|
"aria-label": (h = i == null ? void 0 : i.children) == null ? void 0 : h.toString(),
|
|
74
74
|
href: (i == null ? void 0 : i.href) ?? "#",
|
|
75
75
|
children: t(i == null ? void 0 : i.children)
|
|
76
76
|
}
|
|
77
77
|
);
|
|
78
78
|
},
|
|
79
|
-
pre: (i) => /* @__PURE__ */
|
|
79
|
+
pre: (i) => /* @__PURE__ */ e(
|
|
80
80
|
"pre",
|
|
81
81
|
{
|
|
82
|
-
...
|
|
83
|
-
className: m("pre", void 0,
|
|
82
|
+
...l,
|
|
83
|
+
className: m("pre", void 0, l == null ? void 0 : l.className),
|
|
84
84
|
children: t(i == null ? void 0 : i.children)
|
|
85
85
|
}
|
|
86
86
|
),
|
|
87
|
-
ul: (i) => /* @__PURE__ */
|
|
87
|
+
ul: (i) => /* @__PURE__ */ e(
|
|
88
88
|
"ul",
|
|
89
89
|
{
|
|
90
|
-
...
|
|
91
|
-
className: m("ul", void 0,
|
|
90
|
+
...l,
|
|
91
|
+
className: m("ul", void 0, l == null ? void 0 : l.className),
|
|
92
92
|
children: t(i == null ? void 0 : i.children)
|
|
93
93
|
}
|
|
94
94
|
),
|
|
95
|
-
ol: ({ node: i }) => /* @__PURE__ */
|
|
95
|
+
ol: ({ node: i }) => /* @__PURE__ */ e(
|
|
96
96
|
"ol",
|
|
97
97
|
{
|
|
98
|
-
...
|
|
99
|
-
className: m("ol", void 0,
|
|
100
|
-
children: i == null ? void 0 : i.children.map((h,
|
|
98
|
+
...l,
|
|
99
|
+
className: m("ol", void 0, l == null ? void 0 : l.className),
|
|
100
|
+
children: i == null ? void 0 : i.children.map((h, g) => E(h) && h.children.length > 0 && G(h.children[0]) ? /* @__PURE__ */ u(
|
|
101
101
|
"li",
|
|
102
102
|
{
|
|
103
|
-
...
|
|
104
|
-
className: m("li", void 0,
|
|
103
|
+
...l,
|
|
104
|
+
className: m("li", void 0, l == null ? void 0 : l.className),
|
|
105
105
|
children: [
|
|
106
|
-
/* @__PURE__ */
|
|
107
|
-
t(/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ e("i", { className: m("ol__decimal"), children: g + 1 }),
|
|
107
|
+
t(/* @__PURE__ */ e("span", { children: h.children[0].value }))
|
|
108
108
|
]
|
|
109
109
|
},
|
|
110
110
|
`item-${h.children[0].value}`
|
|
111
111
|
) : null)
|
|
112
112
|
}
|
|
113
113
|
),
|
|
114
|
-
li: (i) => /* @__PURE__ */
|
|
114
|
+
li: (i) => /* @__PURE__ */ u(
|
|
115
115
|
"li",
|
|
116
116
|
{
|
|
117
|
-
...
|
|
118
|
-
className: m("li", void 0,
|
|
117
|
+
...l,
|
|
118
|
+
className: m("li", void 0, l == null ? void 0 : l.className),
|
|
119
119
|
children: [
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
-
|
|
120
|
+
/* @__PURE__ */ e(
|
|
121
|
+
B,
|
|
122
122
|
{
|
|
123
123
|
className: m("li__icon"),
|
|
124
|
-
color:
|
|
124
|
+
color: v,
|
|
125
125
|
name: "ArrowRight01Icon",
|
|
126
126
|
size: 18
|
|
127
127
|
}
|
|
128
128
|
),
|
|
129
|
-
t(/* @__PURE__ */
|
|
129
|
+
t(/* @__PURE__ */ e("span", { children: i == null ? void 0 : i.children }))
|
|
130
130
|
]
|
|
131
131
|
}
|
|
132
132
|
)
|
|
133
133
|
},
|
|
134
|
-
...
|
|
135
|
-
children:
|
|
134
|
+
...z,
|
|
135
|
+
children: k
|
|
136
136
|
}
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
139
|
);
|
|
140
|
-
|
|
140
|
+
H.displayName = "RichText";
|
|
141
141
|
export {
|
|
142
|
-
|
|
142
|
+
H as RichText
|
|
143
143
|
};
|
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { memo as
|
|
3
|
-
import { create as
|
|
4
|
-
import { isString as
|
|
5
|
-
import
|
|
6
|
-
import { Select as
|
|
7
|
-
import { Option as
|
|
8
|
-
import { Label as
|
|
9
|
-
const n =
|
|
1
|
+
import { jsxs as e, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { memo as q, useState as R, useEffect as w, useCallback as V } from "react";
|
|
3
|
+
import { create as I } from "../../helpers/bem.js";
|
|
4
|
+
import { isString as z, isTrue as C, isNull as D } from "../../helpers/validations.js";
|
|
5
|
+
import P from "./Select.module.scss.js";
|
|
6
|
+
import { Select as m } from "../../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";
|
|
7
|
+
import { Option as G } from "../../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";
|
|
8
|
+
import { Label as aa } from "../label/Label.js";
|
|
9
|
+
const n = I(P, "Select"), ra = q(
|
|
10
10
|
({
|
|
11
|
-
id:
|
|
12
|
-
iconVisible:
|
|
13
|
-
required:
|
|
14
|
-
multiple:
|
|
11
|
+
id: f,
|
|
12
|
+
iconVisible: j,
|
|
13
|
+
required: h,
|
|
14
|
+
multiple: t,
|
|
15
15
|
value: p,
|
|
16
|
-
placeholder:
|
|
17
|
-
color:
|
|
18
|
-
label:
|
|
19
|
-
labelProps:
|
|
16
|
+
placeholder: J,
|
|
17
|
+
color: g = "primary",
|
|
18
|
+
label: K,
|
|
19
|
+
labelProps: Q = {},
|
|
20
20
|
hideLabel: E,
|
|
21
|
-
className:
|
|
22
|
-
classNameSelect:
|
|
23
|
-
items:
|
|
21
|
+
className: U,
|
|
22
|
+
classNameSelect: W,
|
|
23
|
+
items: o,
|
|
24
24
|
slotProps: c,
|
|
25
|
-
errorText:
|
|
26
|
-
helperText:
|
|
27
|
-
onChange:
|
|
28
|
-
...
|
|
25
|
+
errorText: O,
|
|
26
|
+
helperText: M,
|
|
27
|
+
onChange: v,
|
|
28
|
+
...X
|
|
29
29
|
}) => {
|
|
30
|
-
const [i,
|
|
30
|
+
const [i, T] = R(
|
|
31
31
|
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
|
|
32
|
-
p ??
|
|
32
|
+
p ?? t ? [] : "default"
|
|
33
33
|
);
|
|
34
|
-
|
|
35
|
-
p !== void 0 &&
|
|
34
|
+
w(() => {
|
|
35
|
+
p !== void 0 && T(p);
|
|
36
36
|
}, [p, i]);
|
|
37
|
-
const
|
|
37
|
+
const Y = V(
|
|
38
38
|
(a, r) => {
|
|
39
|
-
r !== null && (
|
|
39
|
+
r !== null && (T(r), v == null || v(a, r));
|
|
40
40
|
},
|
|
41
|
-
[
|
|
42
|
-
),
|
|
43
|
-
if (Array.isArray(
|
|
41
|
+
[v]
|
|
42
|
+
), y = `${f}-label`, B = `${f}-error`, F = `${f}-helper`, [S, Z] = R(!1);
|
|
43
|
+
if (Array.isArray(o) ? o.length === 0 : Object.keys(o).length === 0)
|
|
44
44
|
return null;
|
|
45
|
-
const
|
|
46
|
-
expanded:
|
|
47
|
-
},
|
|
48
|
-
return /* @__PURE__ */
|
|
49
|
-
(E === void 0 || E === !1) && /* @__PURE__ */
|
|
50
|
-
|
|
45
|
+
const x = {
|
|
46
|
+
expanded: S
|
|
47
|
+
}, _ = J ?? "-- Please choose --", u = z(O), k = h === !0, b = t === !0, H = z(M);
|
|
48
|
+
return /* @__PURE__ */ e("div", { className: n(void 0, void 0, U), children: [
|
|
49
|
+
(E === void 0 || E === !1) && /* @__PURE__ */ d(
|
|
50
|
+
aa,
|
|
51
51
|
{
|
|
52
|
-
...
|
|
52
|
+
...Q,
|
|
53
53
|
error: u,
|
|
54
|
-
htmlFor:
|
|
55
|
-
label:
|
|
56
|
-
required:
|
|
54
|
+
htmlFor: y,
|
|
55
|
+
label: K,
|
|
56
|
+
required: h
|
|
57
57
|
}
|
|
58
58
|
),
|
|
59
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ d(
|
|
60
60
|
"div",
|
|
61
61
|
{
|
|
62
62
|
className: n("field", {
|
|
63
|
-
...
|
|
64
|
-
[
|
|
63
|
+
...x,
|
|
64
|
+
[g]: !!g
|
|
65
65
|
}),
|
|
66
|
-
children: /* @__PURE__ */
|
|
67
|
-
|
|
66
|
+
children: /* @__PURE__ */ e(
|
|
67
|
+
m,
|
|
68
68
|
{
|
|
69
|
-
...
|
|
69
|
+
...X,
|
|
70
70
|
"aria-invalid": u,
|
|
71
|
-
"aria-labelledby":
|
|
72
|
-
"aria-required":
|
|
73
|
-
className: n("select", void 0,
|
|
74
|
-
id:
|
|
75
|
-
multiple:
|
|
76
|
-
required:
|
|
71
|
+
"aria-labelledby": y,
|
|
72
|
+
"aria-required": h ? "true" : void 0,
|
|
73
|
+
className: n("select", void 0, W),
|
|
74
|
+
id: f,
|
|
75
|
+
multiple: t,
|
|
76
|
+
required: h,
|
|
77
77
|
slots: { root: "button", listbox: "ul", popup: "div" },
|
|
78
78
|
value: i,
|
|
79
|
-
"aria-describedby": u ?
|
|
79
|
+
"aria-describedby": u ? B : H ? F : void 0,
|
|
80
80
|
renderValue: (a) => {
|
|
81
|
-
var
|
|
82
|
-
if (a === null && (
|
|
83
|
-
return /* @__PURE__ */
|
|
81
|
+
var N, A, s, L;
|
|
82
|
+
if (a === null && (k || b) || Array.isArray(a) && a.length === 0 && (k || b))
|
|
83
|
+
return /* @__PURE__ */ d(
|
|
84
84
|
"span",
|
|
85
85
|
{
|
|
86
86
|
className: n("button__inner", {
|
|
87
87
|
"is-placeholder": !0
|
|
88
88
|
}),
|
|
89
|
-
children:
|
|
89
|
+
children: _
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
92
|
if (Array.isArray(a)) {
|
|
93
|
-
const l =
|
|
94
|
-
return /* @__PURE__ */
|
|
95
|
-
|
|
96
|
-
a.map((
|
|
93
|
+
const l = o == null ? void 0 : o.find(($) => $.value === p);
|
|
94
|
+
return /* @__PURE__ */ e("span", { className: n("button__inner", x), children: [
|
|
95
|
+
C(j) && !D((N = l == null ? void 0 : l.icon) == null ? void 0 : N.call(l)) && ((A = l == null ? void 0 : l.icon) == null ? void 0 : A.call(l)),
|
|
96
|
+
a.map(($) => $.label).join(", ")
|
|
97
97
|
] });
|
|
98
98
|
}
|
|
99
|
-
const r =
|
|
99
|
+
const r = o == null ? void 0 : o.find(
|
|
100
100
|
(l) => l.value === (a == null ? void 0 : a.value)
|
|
101
101
|
);
|
|
102
|
-
return /* @__PURE__ */
|
|
103
|
-
|
|
102
|
+
return /* @__PURE__ */ e("span", { className: n("button__inner", x), children: [
|
|
103
|
+
C(j) && !D((s = r == null ? void 0 : r.icon) == null ? void 0 : s.call(r)) && ((L = r == null ? void 0 : r.icon) == null ? void 0 : L.call(r)),
|
|
104
104
|
a == null ? void 0 : a.label
|
|
105
105
|
] });
|
|
106
106
|
},
|
|
@@ -108,10 +108,10 @@ const n = V(I, "Select"), aa = Z(
|
|
|
108
108
|
...c,
|
|
109
109
|
root: {
|
|
110
110
|
...c == null ? void 0 : c.root,
|
|
111
|
-
className: n("button",
|
|
111
|
+
className: n("button", x),
|
|
112
112
|
role: "button",
|
|
113
113
|
"aria-haspopup": "listbox",
|
|
114
|
-
"aria-expanded":
|
|
114
|
+
"aria-expanded": S ? "true" : "false"
|
|
115
115
|
},
|
|
116
116
|
listbox: {
|
|
117
117
|
...c == null ? void 0 : c.listbox,
|
|
@@ -122,49 +122,49 @@ const n = V(I, "Select"), aa = Z(
|
|
|
122
122
|
...c == null ? void 0 : c.popup,
|
|
123
123
|
disablePortal: !0,
|
|
124
124
|
className: n("popup", {
|
|
125
|
-
"is-expanded":
|
|
125
|
+
"is-expanded": S
|
|
126
126
|
})
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
|
-
onChange:
|
|
130
|
-
onListboxOpenChange: (a) =>
|
|
129
|
+
onChange: Y,
|
|
130
|
+
onListboxOpenChange: (a) => Z(a),
|
|
131
131
|
children: [
|
|
132
|
-
!
|
|
133
|
-
|
|
132
|
+
!k && !b && /* @__PURE__ */ d(
|
|
133
|
+
G,
|
|
134
134
|
{
|
|
135
|
-
"aria-label":
|
|
135
|
+
"aria-label": _.toString(),
|
|
136
136
|
"aria-selected": i === "default" ? "true" : "false",
|
|
137
137
|
value: "default",
|
|
138
138
|
className: n("item", {
|
|
139
139
|
selected: i === "default"
|
|
140
140
|
}),
|
|
141
|
-
children:
|
|
141
|
+
children: _
|
|
142
142
|
}
|
|
143
143
|
),
|
|
144
|
-
|
|
145
|
-
const { icon: r, ...
|
|
146
|
-
return /* @__PURE__ */
|
|
147
|
-
|
|
144
|
+
o.map((a) => {
|
|
145
|
+
const { icon: r, ...N } = a, s = ((a == null ? void 0 : a.value) === i || (i == null ? void 0 : i.includes(a == null ? void 0 : a.value))) === !0;
|
|
146
|
+
return /* @__PURE__ */ e(
|
|
147
|
+
G,
|
|
148
148
|
{
|
|
149
149
|
className: n(
|
|
150
150
|
"item",
|
|
151
151
|
{
|
|
152
|
-
selected:
|
|
152
|
+
selected: s && !b
|
|
153
153
|
},
|
|
154
154
|
a == null ? void 0 : a.className
|
|
155
155
|
),
|
|
156
|
-
...
|
|
156
|
+
...N,
|
|
157
157
|
"aria-label": a == null ? void 0 : a.label,
|
|
158
|
-
"aria-selected":
|
|
158
|
+
"aria-selected": s ? "true" : "false",
|
|
159
159
|
children: [
|
|
160
|
-
|
|
160
|
+
b && /* @__PURE__ */ d(
|
|
161
161
|
"input",
|
|
162
162
|
{
|
|
163
163
|
"aria-hidden": "true",
|
|
164
|
-
defaultChecked:
|
|
164
|
+
defaultChecked: s,
|
|
165
165
|
type: "checkbox",
|
|
166
166
|
className: n("checkbox", {
|
|
167
|
-
checked:
|
|
167
|
+
checked: s
|
|
168
168
|
})
|
|
169
169
|
}
|
|
170
170
|
),
|
|
@@ -172,7 +172,7 @@ const n = V(I, "Select"), aa = Z(
|
|
|
172
172
|
a == null ? void 0 : a.label
|
|
173
173
|
]
|
|
174
174
|
},
|
|
175
|
-
`${
|
|
175
|
+
`${y}-item-${a == null ? void 0 : a.value}`
|
|
176
176
|
);
|
|
177
177
|
})
|
|
178
178
|
]
|
|
@@ -180,20 +180,20 @@ const n = V(I, "Select"), aa = Z(
|
|
|
180
180
|
)
|
|
181
181
|
}
|
|
182
182
|
),
|
|
183
|
-
(u ||
|
|
183
|
+
(u || H) && /* @__PURE__ */ d(
|
|
184
184
|
"div",
|
|
185
185
|
{
|
|
186
186
|
"aria-live": u ? "assertive" : "polite",
|
|
187
187
|
className: n("helperText", { "is-error": u }),
|
|
188
|
-
id: u ?
|
|
188
|
+
id: u ? B : F,
|
|
189
189
|
role: u ? "alert" : void 0,
|
|
190
|
-
children: /* @__PURE__ */
|
|
190
|
+
children: /* @__PURE__ */ d("span", { className: n("helperText__content"), children: O ?? M })
|
|
191
191
|
}
|
|
192
192
|
)
|
|
193
193
|
] });
|
|
194
194
|
}
|
|
195
195
|
);
|
|
196
|
-
|
|
196
|
+
ra.displayName = "Select";
|
|
197
197
|
export {
|
|
198
|
-
|
|
198
|
+
ra as Select
|
|
199
199
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { create as a } from "../../helpers/bem.js";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import l from "./Skeleton.module.scss.js";
|
|
4
|
+
const c = a(l, "Skeleton"), f = ({
|
|
5
5
|
width: e = "100%",
|
|
6
6
|
height: t = "16px",
|
|
7
7
|
variant: o = "rectangular",
|
|
8
8
|
animation: r = "wave",
|
|
9
|
-
className:
|
|
10
|
-
}) => /* @__PURE__ */
|
|
9
|
+
className: m
|
|
10
|
+
}) => /* @__PURE__ */ s(
|
|
11
11
|
"div",
|
|
12
12
|
{
|
|
13
|
-
className:
|
|
13
|
+
className: c(
|
|
14
14
|
void 0,
|
|
15
15
|
{
|
|
16
16
|
[o]: !0,
|
|
17
17
|
[r]: !0
|
|
18
18
|
},
|
|
19
|
-
|
|
19
|
+
m
|
|
20
20
|
),
|
|
21
21
|
style: {
|
|
22
22
|
width: e,
|
|
@@ -25,5 +25,5 @@ const l = a(i, "Skeleton"), x = ({
|
|
|
25
25
|
}
|
|
26
26
|
);
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
f as Skeleton
|
|
29
29
|
};
|