reactive-bulma 4.3.28 → 4.4.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/README.md +1 -0
- package/dist/assets/reactive-bulma.css +1 -1
- package/dist/components/atoms/BreadcrumbItem/index.js +58 -34
- package/dist/components/atoms/BreadcrumbItem/index.stories.d.ts +1 -0
- package/dist/components/atoms/Button/index.js +76 -38
- package/dist/components/atoms/Button/index.stories.d.ts +5 -0
- package/dist/components/atoms/Checkbox/index.js +47 -40
- package/dist/components/atoms/Column/index.js +22 -21
- package/dist/components/atoms/Delete/index.js +22 -17
- package/dist/components/atoms/GridCell/index.d.ts +4 -0
- package/dist/components/atoms/GridCell/index.js +40 -0
- package/dist/components/atoms/GridCell/index.stories.d.ts +5 -0
- package/dist/components/atoms/GridCell/index.test.d.ts +0 -0
- package/dist/components/atoms/Icon/index.js +54 -57
- package/dist/components/atoms/Image/index.js +28 -27
- package/dist/components/atoms/Image/index.stories.d.ts +1 -0
- package/dist/components/atoms/NavBarItem/index.js +7 -7
- package/dist/components/atoms/ProgressBar/index.js +25 -24
- package/dist/components/atoms/RadioButton/index.js +53 -73
- package/dist/components/atoms/Select/index.js +72 -54
- package/dist/components/atoms/TabItem/index.js +34 -30
- package/dist/components/atoms/TableCell/index.js +20 -15
- package/dist/components/atoms/TableCell/index.stories.d.ts +1 -0
- package/dist/components/atoms/TableHeadCell/index.js +22 -14
- package/dist/components/atoms/TableHeadCell/index.stories.d.ts +1 -0
- package/dist/components/atoms/Tag/index.js +36 -69
- package/dist/components/atoms/Tag/index.stories.d.ts +0 -3
- package/dist/components/atoms/TagWithAddon/index.d.ts +4 -0
- package/dist/components/atoms/TagWithAddon/index.js +91 -0
- package/dist/components/atoms/TagWithAddon/index.stories.d.ts +11 -0
- package/dist/components/atoms/TagWithAddon/index.test.d.ts +0 -0
- package/dist/components/atoms/Tile/index.js +31 -29
- package/dist/components/atoms/Title/index.js +28 -16
- package/dist/components/atoms/index.d.ts +2 -0
- package/dist/components/atoms/index.js +36 -32
- package/dist/components/molecules/Breadcrumbs/index.js +48 -49
- package/dist/components/molecules/CheckboxGroup/index.d.ts +4 -0
- package/dist/components/molecules/CheckboxGroup/index.js +34 -0
- package/dist/components/molecules/CheckboxGroup/index.stories.d.ts +5 -0
- package/dist/components/molecules/CheckboxGroup/index.test.d.ts +0 -0
- package/dist/components/molecules/ColumnGroup/index.js +41 -37
- package/dist/components/molecules/Dropdown/index.js +58 -49
- package/dist/components/molecules/Dropdown/index.stories.d.ts +3 -0
- package/dist/components/molecules/FormFieldInput/index.js +68 -85
- package/dist/components/molecules/FormFieldInput/index.stories.d.ts +1 -3
- package/dist/components/molecules/Grid/index.d.ts +4 -0
- package/dist/components/molecules/Grid/index.js +86 -0
- package/dist/components/molecules/Grid/index.stories.d.ts +12 -0
- package/dist/components/molecules/Grid/index.test.d.ts +0 -0
- package/dist/components/molecules/InputControl/index.js +92 -47
- package/dist/components/molecules/InputControl/index.stories.d.ts +2 -0
- package/dist/components/molecules/Menu/index.js +32 -29
- package/dist/components/molecules/MenuList/index.js +33 -30
- package/dist/components/molecules/Message/index.js +32 -26
- package/dist/components/molecules/NavBarBrand/index.js +1 -1
- package/dist/components/molecules/NavBarDropdown/index.js +55 -57
- package/dist/components/molecules/NavBarDropdown/index.stories.d.ts +2 -0
- package/dist/components/molecules/Notification/index.js +26 -25
- package/dist/components/molecules/Pagination/index.js +91 -81
- package/dist/components/molecules/Pagination/index.stories.d.ts +2 -0
- package/dist/components/molecules/Section/index.js +18 -13
- package/dist/components/molecules/TableRow/index.js +41 -32
- package/dist/components/molecules/TableRow/index.stories.d.ts +1 -0
- package/dist/components/molecules/Tabs/index.js +36 -32
- package/dist/components/molecules/TagList/index.d.ts +4 -0
- package/dist/components/molecules/TagList/index.js +31 -0
- package/dist/components/molecules/TagList/index.stories.d.ts +5 -0
- package/dist/components/molecules/TagList/index.test.d.ts +0 -0
- package/dist/components/molecules/TileBox/index.js +1 -1
- package/dist/components/molecules/index.d.ts +3 -0
- package/dist/components/molecules/index.js +26 -20
- package/dist/components/organisms/Card/index.js +84 -72
- package/dist/components/organisms/FormField/index.js +54 -57
- package/dist/components/organisms/FormField/index.stories.d.ts +2 -0
- package/dist/components/organisms/Hero/index.js +26 -20
- package/dist/components/organisms/Level/index.js +43 -30
- package/dist/components/organisms/NavBar/index.js +65 -57
- package/dist/components/organisms/Panel/index.js +33 -27
- package/dist/components/organisms/Table/index.js +2 -2
- package/dist/components/organisms/Table/index.stories.d.ts +1 -0
- package/dist/components/organisms/TileGroup/index.js +31 -36
- package/dist/constants/classes.d.ts +34 -0
- package/dist/constants/classes.js +37 -0
- package/dist/constants/regExp.d.ts +18 -0
- package/dist/constants/regExp.js +23 -0
- package/dist/functions/parsers.js +5 -4
- package/dist/index.js +104 -94
- package/dist/interfaces/atomProps.d.ts +62 -31
- package/dist/interfaces/commonProps.d.ts +5 -0
- package/dist/interfaces/moleculeProps.d.ts +67 -22
- package/dist/interfaces/moleculeProps.js +1 -1
- package/dist/interfaces/organismProps.d.ts +35 -5
- package/dist/types/domTypes.d.ts +4 -3
- package/dist/types/domTypes.js +2 -2
- package/dist/types/styleTypes.d.ts +28 -18
- package/package.json +18 -17
|
@@ -1,88 +1,85 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as M, jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { IconSizeEnum as N } from "../../../types/domTypes.js";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
replacer: ""
|
|
12
|
-
}
|
|
13
|
-
]
|
|
3
|
+
import { COMMON_CLASSES as e } from "../../../constants/classes.js";
|
|
4
|
+
import { TEST_ID_REGEXP as u } from "../../../constants/regExp.js";
|
|
5
|
+
import { parseClasses as E, parseTestId as T } from "../../../functions/parsers.js";
|
|
6
|
+
const l = "icon", s = "mdi", X = (t, n) => {
|
|
7
|
+
const r = n ? `${l}-text-${n}` : `${l}-text`, o = T({
|
|
8
|
+
tag: `${l}-container`,
|
|
9
|
+
parsedClasses: n ? `${e.HAS_TEXT}${n}` : "",
|
|
10
|
+
rules: [{ regExp: u.HAS_TEXT, replacer: "" }]
|
|
14
11
|
});
|
|
15
|
-
return /* @__PURE__ */
|
|
12
|
+
return /* @__PURE__ */ p(
|
|
16
13
|
"span",
|
|
17
14
|
{
|
|
18
|
-
"data-testid":
|
|
19
|
-
className:
|
|
20
|
-
children:
|
|
15
|
+
"data-testid": o,
|
|
16
|
+
className: r,
|
|
17
|
+
children: t
|
|
21
18
|
}
|
|
22
19
|
);
|
|
23
|
-
},
|
|
24
|
-
testId:
|
|
20
|
+
}, y = ({
|
|
21
|
+
testId: t = null,
|
|
25
22
|
containerTestId: n = null,
|
|
26
|
-
cssClasses:
|
|
27
|
-
containerCssClasses:
|
|
28
|
-
style:
|
|
29
|
-
containerStyle:
|
|
30
|
-
iconLabel:
|
|
31
|
-
text:
|
|
32
|
-
color:
|
|
23
|
+
cssClasses: r = null,
|
|
24
|
+
containerCssClasses: o = null,
|
|
25
|
+
style: S = null,
|
|
26
|
+
containerStyle: x = null,
|
|
27
|
+
iconLabel: f,
|
|
28
|
+
text: c = null,
|
|
29
|
+
color: i = null,
|
|
33
30
|
size: a = null,
|
|
34
|
-
colorMode:
|
|
35
|
-
isSpinning:
|
|
36
|
-
position:
|
|
31
|
+
colorMode: $ = null,
|
|
32
|
+
isSpinning: _ = !1,
|
|
33
|
+
position: d = null
|
|
37
34
|
}) => {
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
a,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
]),
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
a ?
|
|
50
|
-
|
|
51
|
-
]),
|
|
52
|
-
tag:
|
|
53
|
-
parsedClasses:
|
|
35
|
+
const g = E([
|
|
36
|
+
l,
|
|
37
|
+
i ? `${e.HAS_TEXT}${i}` : null,
|
|
38
|
+
a ? `${e.IS}${a}` : null,
|
|
39
|
+
d ? `${e.IS}${d}` : null,
|
|
40
|
+
o
|
|
41
|
+
]), m = E([
|
|
42
|
+
s,
|
|
43
|
+
`${s}-${f}`,
|
|
44
|
+
$ ? `${s}-${e.IS}${$}` : null,
|
|
45
|
+
_ ? `${s}-spin` : null,
|
|
46
|
+
a ? `${s}-${N[a]}px` : `${s}-24px`,
|
|
47
|
+
r
|
|
48
|
+
]), C = n ?? T({
|
|
49
|
+
tag: l,
|
|
50
|
+
parsedClasses: m,
|
|
54
51
|
rules: [
|
|
55
52
|
{
|
|
56
|
-
regExp:
|
|
53
|
+
regExp: u.MDI,
|
|
57
54
|
replacer: ""
|
|
58
55
|
},
|
|
59
56
|
{
|
|
60
|
-
regExp:
|
|
57
|
+
regExp: u.MDI_EMPTY,
|
|
61
58
|
replacer: "-"
|
|
62
59
|
}
|
|
63
60
|
],
|
|
64
61
|
separator: "-"
|
|
65
|
-
}),
|
|
62
|
+
}), A = t ?? `${C}-i`, I = /* @__PURE__ */ M(
|
|
66
63
|
"span",
|
|
67
64
|
{
|
|
68
|
-
"data-testid":
|
|
69
|
-
className:
|
|
70
|
-
style:
|
|
65
|
+
"data-testid": C,
|
|
66
|
+
className: g,
|
|
67
|
+
style: x ?? void 0,
|
|
71
68
|
children: [
|
|
72
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ p(
|
|
73
70
|
"i",
|
|
74
71
|
{
|
|
75
|
-
"data-testid":
|
|
76
|
-
className:
|
|
77
|
-
style:
|
|
72
|
+
"data-testid": A,
|
|
73
|
+
className: m,
|
|
74
|
+
style: S ?? void 0
|
|
78
75
|
}
|
|
79
76
|
),
|
|
80
|
-
|
|
77
|
+
c ? /* @__PURE__ */ p("span", { children: c }) : null
|
|
81
78
|
]
|
|
82
79
|
}
|
|
83
80
|
);
|
|
84
|
-
return
|
|
81
|
+
return c ? X(I, i) : I;
|
|
85
82
|
};
|
|
86
83
|
export {
|
|
87
|
-
|
|
84
|
+
y as default
|
|
88
85
|
};
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { parseClasses as
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { parseClasses as n, parseTestId as N } from "../../../functions/parsers.js";
|
|
3
|
+
import { COMMON_CLASSES as i } from "../../../constants/classes.js";
|
|
3
4
|
const T = ({
|
|
4
|
-
testId:
|
|
5
|
-
containerTestId:
|
|
6
|
-
cssClasses:
|
|
7
|
-
containerCssClasses:
|
|
5
|
+
testId: o = null,
|
|
6
|
+
containerTestId: m = null,
|
|
7
|
+
cssClasses: r = null,
|
|
8
|
+
containerCssClasses: u = null,
|
|
8
9
|
style: d = null,
|
|
9
|
-
containerStyle:
|
|
10
|
-
src:
|
|
11
|
-
alt:
|
|
12
|
-
fixedSize:
|
|
13
|
-
isRounded:
|
|
10
|
+
containerStyle: g = null,
|
|
11
|
+
src: c,
|
|
12
|
+
alt: C = null,
|
|
13
|
+
fixedSize: s = null,
|
|
14
|
+
isRounded: p = !1
|
|
14
15
|
}) => {
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
]),
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
]), e =
|
|
23
|
-
return /* @__PURE__ */
|
|
16
|
+
const l = "image", a = n([
|
|
17
|
+
l,
|
|
18
|
+
s ? `${i.IS}${s}` : null,
|
|
19
|
+
u
|
|
20
|
+
]), f = n([
|
|
21
|
+
p ? i.ROUNDED : null,
|
|
22
|
+
r
|
|
23
|
+
]), e = m ?? N({ tag: l, parsedClasses: a }), I = o ?? `${e}-img`;
|
|
24
|
+
return /* @__PURE__ */ t(
|
|
24
25
|
"figure",
|
|
25
26
|
{
|
|
26
27
|
"data-testid": e,
|
|
27
|
-
className:
|
|
28
|
-
style:
|
|
29
|
-
children: /* @__PURE__ */
|
|
28
|
+
className: a,
|
|
29
|
+
style: g ?? void 0,
|
|
30
|
+
children: /* @__PURE__ */ t(
|
|
30
31
|
"img",
|
|
31
32
|
{
|
|
32
|
-
"data-testid":
|
|
33
|
-
className:
|
|
33
|
+
"data-testid": I,
|
|
34
|
+
className: f,
|
|
34
35
|
style: d ?? void 0,
|
|
35
|
-
src:
|
|
36
|
-
alt:
|
|
36
|
+
src: c,
|
|
37
|
+
alt: C ?? void 0
|
|
37
38
|
}
|
|
38
39
|
)
|
|
39
40
|
}
|
|
@@ -4,5 +4,6 @@ declare const _default: Meta<typeof Image>;
|
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const BasicExample: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ImageProps>;
|
|
6
6
|
export declare const WithFixedStyle: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ImageProps>;
|
|
7
|
+
export declare const FullSized: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ImageProps>;
|
|
7
8
|
export declare const IsRounded: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ImageProps>;
|
|
8
9
|
export declare const CustomStyle: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('../../../interfaces/atomProps').ImageProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { parseClasses as
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { parseClasses as o, parseTestId as m } from "../../../functions/parsers.js";
|
|
3
3
|
const c = ({
|
|
4
4
|
testId: s = null,
|
|
5
5
|
cssClasses: e = null,
|
|
@@ -8,15 +8,15 @@ const c = ({
|
|
|
8
8
|
isActive: r = !1,
|
|
9
9
|
onClick: n = null
|
|
10
10
|
}) => {
|
|
11
|
-
const a =
|
|
11
|
+
const a = o([
|
|
12
12
|
"navbar-item",
|
|
13
|
-
r ? "is-
|
|
13
|
+
r ? "is-selected" : null,
|
|
14
14
|
e
|
|
15
|
-
]),
|
|
16
|
-
return /* @__PURE__ */
|
|
15
|
+
]), d = s ?? m({ tag: "navbar-item", parsedClasses: a });
|
|
16
|
+
return /* @__PURE__ */ i(
|
|
17
17
|
"a",
|
|
18
18
|
{
|
|
19
|
-
"data-testid":
|
|
19
|
+
"data-testid": d,
|
|
20
20
|
className: a,
|
|
21
21
|
style: t ?? void 0,
|
|
22
22
|
"aria-hidden": "true",
|
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { COMMON_CLASSES as p } from "../../../constants/classes.js";
|
|
3
|
+
import { parseClasses as g, parseTestId as i } from "../../../functions/parsers.js";
|
|
4
|
+
const I = ({
|
|
5
|
+
testId: n = null,
|
|
6
|
+
cssClasses: d = null,
|
|
7
|
+
style: m = null,
|
|
7
8
|
value: s = 0,
|
|
8
9
|
max: r = 100,
|
|
9
|
-
color:
|
|
10
|
-
size:
|
|
11
|
-
isLoading:
|
|
10
|
+
color: e = "primary",
|
|
11
|
+
size: l = null,
|
|
12
|
+
isLoading: t = !1
|
|
12
13
|
}) => {
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
p,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
]),
|
|
19
|
-
tag:
|
|
20
|
-
parsedClasses:
|
|
14
|
+
const o = "progress", u = s > r || s < 0 ? 0 : s, a = g([
|
|
15
|
+
o,
|
|
16
|
+
e ? `${p.IS}${e}` : null,
|
|
17
|
+
l ? `${p.IS}${l}` : null,
|
|
18
|
+
d
|
|
19
|
+
]), c = n ?? i({
|
|
20
|
+
tag: o,
|
|
21
|
+
parsedClasses: a
|
|
21
22
|
});
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ f(
|
|
23
24
|
"progress",
|
|
24
25
|
{
|
|
25
|
-
"data-testid":
|
|
26
|
-
className:
|
|
27
|
-
style:
|
|
28
|
-
value:
|
|
26
|
+
"data-testid": c,
|
|
27
|
+
className: a,
|
|
28
|
+
style: m ?? void 0,
|
|
29
|
+
value: t ? void 0 : s,
|
|
29
30
|
max: r,
|
|
30
|
-
children: `${
|
|
31
|
+
children: `${t ? 0 : u}%`
|
|
31
32
|
}
|
|
32
33
|
);
|
|
33
34
|
};
|
|
34
35
|
export {
|
|
35
|
-
|
|
36
|
+
I as default
|
|
36
37
|
};
|
|
@@ -1,86 +1,66 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { parseClasses as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
onBlur: u
|
|
15
|
-
} = d, c = r ?? `test-radio-button-item-${t}`;
|
|
16
|
-
return /* @__PURE__ */ B(
|
|
17
|
-
"label",
|
|
18
|
-
{
|
|
19
|
-
className: "radio",
|
|
20
|
-
children: [
|
|
21
|
-
/* @__PURE__ */ m(
|
|
22
|
-
"input",
|
|
23
|
-
{
|
|
24
|
-
"data-testid": c,
|
|
25
|
-
type: "radio",
|
|
26
|
-
style: n ?? void 0,
|
|
27
|
-
name: s,
|
|
28
|
-
defaultChecked: a,
|
|
29
|
-
disabled: o,
|
|
30
|
-
onClick: l,
|
|
31
|
-
onChange: i,
|
|
32
|
-
onBlur: u
|
|
33
|
-
}
|
|
34
|
-
),
|
|
35
|
-
/* @__PURE__ */ m("p", { style: {
|
|
36
|
-
display: "inline-block",
|
|
37
|
-
marginLeft: "5px"
|
|
38
|
-
}, children: e })
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
t
|
|
42
|
-
);
|
|
43
|
-
}, x = ({
|
|
44
|
-
containerTestId: d = null,
|
|
45
|
-
containerCssClasses: t = null,
|
|
46
|
-
containerStyle: r = null,
|
|
47
|
-
options: e,
|
|
48
|
-
name: s,
|
|
49
|
-
onClick: a,
|
|
50
|
-
onChange: o,
|
|
51
|
-
onBlur: n
|
|
1
|
+
import { jsxs as B, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as h } from "react";
|
|
3
|
+
import { parseClasses as x, parseTestId as I } from "../../../functions/parsers.js";
|
|
4
|
+
import { generateKey as f } from "../../../functions/generators.js";
|
|
5
|
+
const N = ({
|
|
6
|
+
containerTestId: o = null,
|
|
7
|
+
containerCssClasses: n = null,
|
|
8
|
+
containerStyle: c = null,
|
|
9
|
+
options: s,
|
|
10
|
+
name: a,
|
|
11
|
+
onClick: r,
|
|
12
|
+
onChange: d,
|
|
13
|
+
onBlur: l
|
|
52
14
|
}) => {
|
|
53
|
-
const
|
|
15
|
+
const i = x([
|
|
54
16
|
"control",
|
|
55
|
-
|
|
56
|
-
]),
|
|
17
|
+
n
|
|
18
|
+
]), u = o ?? I({
|
|
57
19
|
tag: "container-",
|
|
58
|
-
parsedClasses:
|
|
59
|
-
}),
|
|
60
|
-
() =>
|
|
61
|
-
|
|
20
|
+
parsedClasses: i
|
|
21
|
+
}), m = h(
|
|
22
|
+
() => s.map((t, p) => {
|
|
23
|
+
const y = t.testId ?? `test-radio-button-item-${p}`, b = {
|
|
24
|
+
display: "inline-block",
|
|
25
|
+
marginLeft: "5px"
|
|
26
|
+
};
|
|
27
|
+
return /* @__PURE__ */ B(
|
|
28
|
+
"label",
|
|
62
29
|
{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
30
|
+
className: "radio",
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ e(
|
|
33
|
+
"input",
|
|
34
|
+
{
|
|
35
|
+
"data-testid": y,
|
|
36
|
+
type: "radio",
|
|
37
|
+
style: t.style ?? void 0,
|
|
38
|
+
name: a,
|
|
39
|
+
defaultChecked: t.isChecked,
|
|
40
|
+
disabled: t.isDisabled,
|
|
41
|
+
onClick: r,
|
|
42
|
+
onChange: d,
|
|
43
|
+
onBlur: l
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
/* @__PURE__ */ e("p", { style: b, children: t.label })
|
|
47
|
+
]
|
|
68
48
|
},
|
|
69
|
-
|
|
70
|
-
)
|
|
71
|
-
),
|
|
72
|
-
[
|
|
49
|
+
`radio-button-item-${f()}`
|
|
50
|
+
);
|
|
51
|
+
}),
|
|
52
|
+
[s, a, r, d, l]
|
|
73
53
|
);
|
|
74
|
-
return /* @__PURE__ */
|
|
54
|
+
return /* @__PURE__ */ e(
|
|
75
55
|
"section",
|
|
76
56
|
{
|
|
77
|
-
"data-testid":
|
|
78
|
-
className:
|
|
79
|
-
style:
|
|
80
|
-
children:
|
|
57
|
+
"data-testid": u,
|
|
58
|
+
className: i,
|
|
59
|
+
style: c ?? void 0,
|
|
60
|
+
children: m
|
|
81
61
|
}
|
|
82
62
|
);
|
|
83
63
|
};
|
|
84
64
|
export {
|
|
85
|
-
|
|
65
|
+
N as default
|
|
86
66
|
};
|
|
@@ -1,68 +1,86 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as s } from "react";
|
|
3
|
+
import { parseClasses as I, parseTestId as q } from "../../../functions/parsers.js";
|
|
4
|
+
const B = ({
|
|
4
5
|
testId: a = null,
|
|
5
6
|
containerTestId: o = null,
|
|
6
|
-
cssClasses:
|
|
7
|
-
containerCssClasses:
|
|
8
|
-
style:
|
|
9
|
-
containerStyle:
|
|
10
|
-
isDisabled:
|
|
11
|
-
options:
|
|
12
|
-
selectedValues:
|
|
13
|
-
name:
|
|
14
|
-
showOptions:
|
|
15
|
-
isMultiple:
|
|
16
|
-
color:
|
|
17
|
-
size:
|
|
18
|
-
isRounded:
|
|
19
|
-
isHovered:
|
|
20
|
-
isFocused:
|
|
21
|
-
onClick:
|
|
22
|
-
onChange:
|
|
23
|
-
onBlur:
|
|
7
|
+
cssClasses: f = null,
|
|
8
|
+
containerCssClasses: u = null,
|
|
9
|
+
style: v = null,
|
|
10
|
+
containerStyle: S = null,
|
|
11
|
+
isDisabled: h,
|
|
12
|
+
options: $ = [],
|
|
13
|
+
selectedValues: g,
|
|
14
|
+
name: y,
|
|
15
|
+
showOptions: x = 1,
|
|
16
|
+
isMultiple: e = !1,
|
|
17
|
+
color: i = null,
|
|
18
|
+
size: r = null,
|
|
19
|
+
isRounded: c = null,
|
|
20
|
+
isHovered: d = null,
|
|
21
|
+
isFocused: m = null,
|
|
22
|
+
onClick: N,
|
|
23
|
+
onChange: T,
|
|
24
|
+
onBlur: b
|
|
24
25
|
}) => {
|
|
25
|
-
const t =
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
26
|
+
const t = s(
|
|
27
|
+
() => I([
|
|
28
|
+
"select",
|
|
29
|
+
i,
|
|
30
|
+
r,
|
|
31
|
+
e ? "is-multiple" : null,
|
|
32
|
+
c ? "is-rounded" : null,
|
|
33
|
+
d ? "is-hovered" : null,
|
|
34
|
+
m ? "is-focused" : null,
|
|
35
|
+
u
|
|
36
|
+
]),
|
|
37
|
+
[
|
|
38
|
+
i,
|
|
39
|
+
r,
|
|
40
|
+
e,
|
|
41
|
+
c,
|
|
42
|
+
d,
|
|
43
|
+
m,
|
|
44
|
+
u
|
|
45
|
+
]
|
|
46
|
+
), l = s(
|
|
47
|
+
() => a ?? q({
|
|
48
|
+
tag: "select",
|
|
49
|
+
parsedClasses: t
|
|
50
|
+
}),
|
|
51
|
+
[a, t]
|
|
52
|
+
), j = s(
|
|
53
|
+
() => o ?? `${l}-container`,
|
|
54
|
+
[o, l]
|
|
55
|
+
);
|
|
56
|
+
return /* @__PURE__ */ n(
|
|
39
57
|
"section",
|
|
40
58
|
{
|
|
41
|
-
"data-testid":
|
|
59
|
+
"data-testid": j,
|
|
42
60
|
className: t,
|
|
43
|
-
style:
|
|
44
|
-
children: /* @__PURE__ */
|
|
61
|
+
style: S ?? void 0,
|
|
62
|
+
children: /* @__PURE__ */ n(
|
|
45
63
|
"select",
|
|
46
64
|
{
|
|
47
65
|
"data-testid": l,
|
|
48
|
-
className:
|
|
49
|
-
style:
|
|
50
|
-
value:
|
|
51
|
-
name:
|
|
52
|
-
disabled:
|
|
53
|
-
multiple:
|
|
54
|
-
size:
|
|
55
|
-
onClick:
|
|
56
|
-
onChange:
|
|
57
|
-
onBlur:
|
|
58
|
-
children:
|
|
66
|
+
className: f ?? void 0,
|
|
67
|
+
style: v ?? void 0,
|
|
68
|
+
value: g,
|
|
69
|
+
name: y,
|
|
70
|
+
disabled: h ?? !1,
|
|
71
|
+
multiple: e,
|
|
72
|
+
size: x,
|
|
73
|
+
onClick: N,
|
|
74
|
+
onChange: T,
|
|
75
|
+
onBlur: b,
|
|
76
|
+
children: $.map(({ id: p, name: k }, C) => /* @__PURE__ */ n(
|
|
59
77
|
"option",
|
|
60
78
|
{
|
|
61
|
-
"data-testid": `${l}-option-${
|
|
62
|
-
value:
|
|
63
|
-
children:
|
|
79
|
+
"data-testid": `${l}-option-${C}`,
|
|
80
|
+
value: p.toString(),
|
|
81
|
+
children: k
|
|
64
82
|
},
|
|
65
|
-
`key-option-${
|
|
83
|
+
`key-option-${p.toString()}`
|
|
66
84
|
))
|
|
67
85
|
}
|
|
68
86
|
)
|
|
@@ -70,5 +88,5 @@ const w = ({
|
|
|
70
88
|
);
|
|
71
89
|
};
|
|
72
90
|
export {
|
|
73
|
-
|
|
91
|
+
B as default
|
|
74
92
|
};
|