@altinn/altinn-components 0.29.4 → 0.29.5
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.
|
@@ -1,39 +1,29 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as u, jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import { MenuItemBase as
|
|
5
|
+
import { MenuItemBase as x } from "./MenuItemBase.js";
|
|
6
6
|
import { MenuItemLabel as I } from "./MenuItemLabel.js";
|
|
7
7
|
import "../Searchbar/AutocompleteBase.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
import { Label as M } from "../Forms/Label.js";
|
|
10
10
|
import { Input as b } from "../Forms/Input.js";
|
|
11
11
|
const y = ({
|
|
12
|
-
size:
|
|
13
|
-
type:
|
|
12
|
+
size: t = "md",
|
|
13
|
+
type: o,
|
|
14
14
|
name: e,
|
|
15
15
|
value: i,
|
|
16
16
|
label: p,
|
|
17
|
-
title:
|
|
17
|
+
title: d,
|
|
18
18
|
description: s,
|
|
19
|
-
badge:
|
|
20
|
-
checked:
|
|
19
|
+
badge: n,
|
|
20
|
+
checked: r = !1,
|
|
21
21
|
disabled: l,
|
|
22
|
-
onChange:
|
|
23
|
-
...
|
|
24
|
-
}) => /* @__PURE__ */ x
|
|
25
|
-
/* @__PURE__ */ o
|
|
26
|
-
|
|
27
|
-
{
|
|
28
|
-
size: "xs",
|
|
29
|
-
name: e,
|
|
30
|
-
value: i,
|
|
31
|
-
type: t,
|
|
32
|
-
checked: m,
|
|
33
|
-
onChange: a
|
|
34
|
-
}
|
|
35
|
-
),
|
|
36
|
-
/* @__PURE__ */ o(I, { title: n, description: s, size: r, badge: f, children: p })
|
|
22
|
+
onChange: f,
|
|
23
|
+
...a
|
|
24
|
+
}) => /* @__PURE__ */ u(x, { disabled: l, selected: r, size: t, as: M, ...a, children: [
|
|
25
|
+
/* @__PURE__ */ m(b, { size: "xs", name: e, value: i, type: o, checked: r, onChange: f }),
|
|
26
|
+
/* @__PURE__ */ m(I, { title: p, description: s, size: t, badge: n })
|
|
37
27
|
] });
|
|
38
28
|
export {
|
|
39
29
|
y as MenuOption
|