@altinn/altinn-components 0.26.1 → 0.27.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/dist/FieldsetLegend-Dwb3U0vQ.js +10 -0
- package/dist/Input-B_w6SBmg.js +12 -0
- package/dist/Label-DjSEhgyW.js +11 -0
- package/dist/Paragraph-CFjOkbXa.js +11 -0
- package/dist/Textarea-BBstVlPT.js +10 -0
- package/dist/altinn-ds-overrides.css +2 -2
- package/dist/altinn-ds.css +47 -101
- package/dist/assets/Button.css +1 -1
- package/dist/assets/ButtonBase.css +1 -1
- package/dist/assets/ButtonIcon.css +1 -1
- package/dist/assets/ButtonLabel.css +1 -1
- package/dist/assets/ComboButton.css +1 -1
- package/dist/assets/IconButton.css +1 -1
- package/dist/assets/ListItemHeader.css +1 -1
- package/dist/assets/MenuItemLabel.css +1 -1
- package/dist/components/Bookmarks/EditableBookmark.js +31 -30
- package/dist/components/Button/Button.js +41 -43
- package/dist/components/Button/ButtonBase.js +28 -26
- package/dist/components/Button/ButtonIcon.js +3 -3
- package/dist/components/Button/ButtonLabel.js +3 -3
- package/dist/components/Button/ComboButton.js +30 -28
- package/dist/components/Button/IconButton.js +24 -25
- package/dist/components/ContextMenu/ContextMenu.js +5 -6
- package/dist/components/Dialog/DialogActions.js +22 -21
- package/dist/components/DsComponents/index.js +23 -21
- package/dist/components/Forms/Checkbox.js +16 -0
- package/dist/components/Forms/CheckboxOptions.js +12 -0
- package/dist/components/Forms/Field.js +6 -0
- package/dist/components/Forms/FieldBase.js +17 -0
- package/dist/components/Forms/Fieldset.js +28 -0
- package/dist/components/Forms/FieldsetBase.js +15 -0
- package/dist/components/Forms/Input.js +14 -0
- package/dist/components/Forms/Label.js +6 -0
- package/dist/components/Forms/Legend.js +14 -0
- package/dist/components/Forms/OptionsBase.js +18 -0
- package/dist/components/Forms/Radio.js +16 -0
- package/dist/components/Forms/RadioOptions.js +12 -0
- package/dist/components/Forms/Select.js +25 -0
- package/dist/components/Forms/SelectField.js +12 -0
- package/dist/components/Forms/Switch.js +16 -0
- package/dist/components/Forms/SwitchOptions.js +12 -0
- package/dist/components/Forms/TextField.js +12 -0
- package/dist/components/Forms/Textarea.js +6 -0
- package/dist/components/Forms/TextareaField.js +12 -0
- package/dist/components/Forms/index.js +40 -0
- package/dist/components/GlobalMenu/AccountMenu.js +2 -2
- package/dist/components/GlobalMenu/GlobalMenu.js +72 -65
- package/dist/components/List/ListItemHeader.js +30 -30
- package/dist/components/Menu/Menu.js +42 -38
- package/dist/components/Menu/MenuItemLabel.js +10 -10
- package/dist/components/Menu/MenuItemsVirtual.js +28 -27
- package/dist/components/Page/DashboardCard.js +10 -9
- package/dist/components/Page/PageDetails.js +1 -1
- package/dist/components/Page/PageNav.js +6 -6
- package/dist/components/Toolbar/ToolbarButton.js +23 -21
- package/dist/components/Toolbar/ToolbarFilter.js +27 -26
- package/dist/components/index.js +147 -113
- package/dist/{floating-ui.react-BQwG1HOM.js → floating-ui.react-DpzNAs2N.js} +26 -31
- package/dist/{index-DcykCrjD.js → index-B7UjMwQm.js} +13 -12
- package/dist/index-Bq6w9CqA.js +81 -0
- package/dist/index.js +177 -143
- package/dist/lite-1fxw3LjI.js +7 -0
- package/dist/tokens/README.md +1 -1
- package/dist/tokens/altinn-ds.css +48 -102
- package/dist/tokens/design-tokens-build/altinn-ds.css +48 -102
- package/dist/types/fields.js +1 -0
- package/dist/types/lib/components/Bookmarks/BookmarksSection.stories.d.ts +0 -1
- package/dist/types/lib/components/Button/Button.d.ts +1 -2
- package/dist/types/lib/components/Button/Button.stories.d.ts +5 -1
- package/dist/types/lib/components/Button/ButtonBase.d.ts +3 -2
- package/dist/types/lib/components/Button/ComboButton.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogActions.d.ts +2 -1
- package/dist/types/lib/components/Dialog/DialogActions.stories.d.ts +1 -1
- package/dist/types/lib/components/Forms/Checkbox.d.ts +7 -0
- package/dist/types/lib/components/Forms/Checkbox.stories.d.ts +15 -0
- package/dist/types/lib/components/Forms/CheckboxOptions.d.ts +5 -0
- package/dist/types/lib/components/Forms/CheckboxOptions.stories.d.ts +18 -0
- package/dist/types/lib/components/Forms/Field.d.ts +7 -0
- package/dist/types/lib/components/Forms/FieldBase.d.ts +8 -0
- package/dist/types/lib/components/Forms/Fieldset.d.ts +7 -0
- package/dist/types/lib/components/Forms/FieldsetBase.d.ts +8 -0
- package/dist/types/lib/components/Forms/Forms.stories.d.ts +7 -0
- package/dist/types/lib/components/Forms/Input.d.ts +10 -0
- package/dist/types/lib/components/Forms/Label.d.ts +7 -0
- package/dist/types/lib/components/Forms/Legend.d.ts +7 -0
- package/dist/types/lib/components/Forms/OptionsBase.d.ts +9 -0
- package/dist/types/lib/components/Forms/Radio.d.ts +7 -0
- package/dist/types/lib/components/Forms/Radio.stories.d.ts +15 -0
- package/dist/types/lib/components/Forms/RadioOptions.d.ts +6 -0
- package/dist/types/lib/components/Forms/RadioOptions.stories.d.ts +18 -0
- package/dist/types/lib/components/Forms/Select.d.ts +9 -0
- package/dist/types/lib/components/Forms/SelectField.d.ts +8 -0
- package/dist/types/lib/components/Forms/SelectField.stories.d.ts +14 -0
- package/dist/types/lib/components/Forms/Switch.d.ts +7 -0
- package/dist/types/lib/components/Forms/Switch.stories.d.ts +15 -0
- package/dist/types/lib/components/Forms/SwitchOptions.d.ts +6 -0
- package/dist/types/lib/components/Forms/SwitchOptions.stories.d.ts +18 -0
- package/dist/types/lib/components/Forms/TextField.d.ts +6 -0
- package/dist/types/lib/components/Forms/TextField.stories.d.ts +15 -0
- package/dist/types/lib/components/Forms/Textarea.d.ts +7 -0
- package/dist/types/lib/components/Forms/TextareaField.d.ts +6 -0
- package/dist/types/lib/components/Forms/TextareaField.stories.d.ts +15 -0
- package/dist/types/lib/components/Forms/index.d.ts +19 -0
- package/dist/types/lib/components/GlobalMenu/AccountMenu.d.ts +4 -2
- package/dist/types/lib/components/GlobalMenu/AccountMenu.stories.d.ts +3 -2
- package/dist/types/lib/components/GlobalMenu/GlobalMenu.d.ts +1 -1
- package/dist/types/lib/components/GlobalMenu/GlobalMenu.stories.d.ts +3 -2
- package/dist/types/lib/components/Header/Header.stories.d.ts +1 -0
- package/dist/types/lib/components/Menu/Examples.stories.d.ts +6 -6
- package/dist/types/lib/components/Menu/Menu.d.ts +3 -3
- package/dist/types/lib/components/Menu/Menu.stories.d.ts +1 -1
- package/dist/types/lib/components/Menu/MenuItems.d.ts +4 -0
- package/dist/types/lib/components/Menu/MenuItemsVirtual.d.ts +5 -1
- package/dist/types/lib/components/Page/DashboardHeader.stories.d.ts +12 -0
- package/dist/types/lib/components/Page/{Patterns.stories.d.ts → Examples.stories.d.ts} +2 -0
- package/dist/types/lib/components/Toolbar/ToolbarButton.d.ts +2 -1
- package/dist/types/lib/components/Toolbar/ToolbarButton.stories.d.ts +1 -1
- package/dist/types/lib/components/index.d.ts +1 -1
- package/dist/types/lib/types/fields.d.ts +2 -0
- package/dist/usePagination-B4GfH2GQ.js +1026 -0
- package/package.json +1 -1
- package/dist/assets/FieldBase.css +0 -1
- package/dist/assets/InputBase.css +0 -1
- package/dist/components/TextField/FieldBase.js +0 -16
- package/dist/components/TextField/InputBase.js +0 -33
- package/dist/components/TextField/TextField.js +0 -7
- package/dist/components/TextField/index.js +0 -8
- package/dist/types/lib/components/Button/Buttons.stories.d.ts +0 -18
- package/dist/types/lib/components/TextField/FieldBase.d.ts +0 -11
- package/dist/types/lib/components/TextField/InputBase.d.ts +0 -14
- package/dist/types/lib/components/TextField/TextField.d.ts +0 -7
- package/dist/types/lib/components/TextField/index.d.ts +0 -3
- package/dist/usePagination-BJD-uxk9.js +0 -1098
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { c as i } from "../../index-L8X2o7IH.js";
|
|
3
|
-
import '../../assets/ButtonBase.css';const
|
|
4
|
-
button:
|
|
5
|
-
},
|
|
6
|
-
as:
|
|
7
|
-
color:
|
|
8
|
-
className:
|
|
9
|
-
children:
|
|
3
|
+
import '../../assets/ButtonBase.css';const p = "_button_1c0tl_1", f = {
|
|
4
|
+
button: p
|
|
5
|
+
}, B = ({
|
|
6
|
+
as: a,
|
|
7
|
+
color: o,
|
|
8
|
+
className: e,
|
|
9
|
+
children: n,
|
|
10
|
+
reverse: s,
|
|
10
11
|
disabled: t = !1,
|
|
11
|
-
ariaLabel:
|
|
12
|
-
size:
|
|
13
|
-
selected:
|
|
14
|
-
variant:
|
|
15
|
-
tabIndex:
|
|
16
|
-
...
|
|
17
|
-
}) => /* @__PURE__ */
|
|
18
|
-
|
|
12
|
+
ariaLabel: r,
|
|
13
|
+
size: c,
|
|
14
|
+
selected: l,
|
|
15
|
+
variant: m,
|
|
16
|
+
tabIndex: u = 0,
|
|
17
|
+
...b
|
|
18
|
+
}) => /* @__PURE__ */ d(
|
|
19
|
+
a || "button",
|
|
19
20
|
{
|
|
20
|
-
tabIndex:
|
|
21
|
-
"data-size":
|
|
22
|
-
"data-
|
|
23
|
-
"data-
|
|
24
|
-
"data-
|
|
21
|
+
tabIndex: u,
|
|
22
|
+
"data-size": c,
|
|
23
|
+
"data-color": o,
|
|
24
|
+
"data-variant": m,
|
|
25
|
+
"data-reverse": s,
|
|
26
|
+
"data-selected": l,
|
|
25
27
|
"aria-disabled": t,
|
|
26
28
|
disabled: t,
|
|
27
|
-
className: i(
|
|
28
|
-
"aria-label":
|
|
29
|
-
...
|
|
30
|
-
children:
|
|
29
|
+
className: i(f.button, e),
|
|
30
|
+
"aria-label": r,
|
|
31
|
+
...b,
|
|
32
|
+
children: n
|
|
31
33
|
}
|
|
32
34
|
);
|
|
33
35
|
export {
|
|
34
|
-
|
|
36
|
+
B as ButtonBase
|
|
35
37
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "../../index-L8X2o7IH.js";
|
|
2
|
+
import { c as i } from "../../index-L8X2o7IH.js";
|
|
3
3
|
import { Icon as m } from "../Icon/Icon.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
6
|
import "../Search/AutocompleteBase.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import '../../assets/ButtonIcon.css';const s = "
|
|
8
|
+
import '../../assets/ButtonIcon.css';const s = "_icon_n7bze_1", e = {
|
|
9
9
|
icon: s
|
|
10
|
-
}, u = ({ className: t, size:
|
|
10
|
+
}, u = ({ className: t, size: n, icon: r, iconAltText: c }) => /* @__PURE__ */ o("span", { className: i(e.icon, t), "data-size": n, children: /* @__PURE__ */ o(m, { svgElement: r, altText: c }) });
|
|
11
11
|
export {
|
|
12
12
|
u as ButtonIcon
|
|
13
13
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { c as e } from "../../index-L8X2o7IH.js";
|
|
3
|
-
import '../../assets/ButtonLabel.css';const o = "
|
|
3
|
+
import '../../assets/ButtonLabel.css';const o = "_label_1v8cl_1", c = {
|
|
4
4
|
label: o
|
|
5
|
-
},
|
|
5
|
+
}, b = ({ className: l, size: a, children: s }) => /* @__PURE__ */ t("span", { className: e(c.label, l), "data-size": a, children: s });
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
b as ButtonLabel
|
|
8
8
|
};
|
|
@@ -1,41 +1,43 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { ButtonBase as
|
|
4
|
-
import { ButtonIcon as
|
|
5
|
-
import { ButtonLabel as
|
|
6
|
-
import '../../assets/ComboButton.css';const
|
|
7
|
-
button:
|
|
8
|
-
divider:
|
|
1
|
+
import { jsxs as u, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { c as y } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import { ButtonBase as t } from "./ButtonBase.js";
|
|
4
|
+
import { ButtonIcon as b } from "./ButtonIcon.js";
|
|
5
|
+
import { ButtonLabel as f } from "./ButtonLabel.js";
|
|
6
|
+
import '../../assets/ComboButton.css';const v = "_button_d26a8_1", x = "_divider_d26a8_7", B = "_primary_d26a8_14", N = "_secondary_d26a8_15", a = {
|
|
7
|
+
button: v,
|
|
8
|
+
divider: x,
|
|
9
9
|
primary: B,
|
|
10
|
-
secondary:
|
|
11
|
-
},
|
|
12
|
-
variant:
|
|
13
|
-
color:
|
|
10
|
+
secondary: N
|
|
11
|
+
}, L = ({
|
|
12
|
+
variant: n = "solid",
|
|
13
|
+
color: s,
|
|
14
14
|
size: o = "md",
|
|
15
|
-
selected:
|
|
16
|
-
icon:
|
|
15
|
+
selected: d = !1,
|
|
16
|
+
icon: c,
|
|
17
17
|
children: i,
|
|
18
|
-
className:
|
|
19
|
-
ariaLabel:
|
|
18
|
+
className: m,
|
|
19
|
+
ariaLabel: e,
|
|
20
20
|
onLabelClick: l,
|
|
21
|
-
onIconClick: _
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
onIconClick: _,
|
|
22
|
+
iconAltText: p
|
|
23
|
+
}) => /* @__PURE__ */ u(
|
|
24
|
+
t,
|
|
24
25
|
{
|
|
25
26
|
as: "div",
|
|
26
27
|
size: o,
|
|
27
|
-
variant:
|
|
28
|
-
color:
|
|
29
|
-
selected:
|
|
30
|
-
className:
|
|
31
|
-
ariaLabel:
|
|
28
|
+
variant: n,
|
|
29
|
+
color: s,
|
|
30
|
+
selected: d,
|
|
31
|
+
className: y(a.button, m),
|
|
32
|
+
ariaLabel: e,
|
|
33
|
+
tabIndex: -1,
|
|
32
34
|
children: [
|
|
33
|
-
/* @__PURE__ */ t
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */ t
|
|
35
|
+
/* @__PURE__ */ r(t, { size: o, onClick: l, className: a.primary, children: /* @__PURE__ */ r(f, { size: o, children: i }) }),
|
|
36
|
+
/* @__PURE__ */ r("span", { "data-size": o, className: a.divider }),
|
|
37
|
+
/* @__PURE__ */ r(t, { size: o, onClick: _, className: a.secondary, ariaLabel: p, children: /* @__PURE__ */ r(b, { icon: c, size: o }) })
|
|
36
38
|
]
|
|
37
39
|
}
|
|
38
40
|
);
|
|
39
41
|
export {
|
|
40
|
-
|
|
42
|
+
L as ComboButton
|
|
41
43
|
};
|
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { c as l } from "../../index-L8X2o7IH.js";
|
|
3
|
-
import { ButtonBase as
|
|
4
|
-
import { ButtonIcon as
|
|
5
|
-
import '../../assets/IconButton.css';const
|
|
6
|
-
button:
|
|
7
|
-
|
|
8
|
-
}, h = ({
|
|
3
|
+
import { ButtonBase as b } from "./ButtonBase.js";
|
|
4
|
+
import { ButtonIcon as d } from "./ButtonIcon.js";
|
|
5
|
+
import '../../assets/IconButton.css';const p = "_button_hmev5_1", f = {
|
|
6
|
+
button: p
|
|
7
|
+
}, I = ({
|
|
9
8
|
variant: n = "solid",
|
|
10
|
-
size:
|
|
11
|
-
icon:
|
|
12
|
-
color:
|
|
13
|
-
iconSize:
|
|
14
|
-
className:
|
|
15
|
-
selected:
|
|
16
|
-
onClick:
|
|
17
|
-
dataTestId:
|
|
9
|
+
size: t = "md",
|
|
10
|
+
icon: r,
|
|
11
|
+
color: s,
|
|
12
|
+
iconSize: m,
|
|
13
|
+
className: a,
|
|
14
|
+
selected: c,
|
|
15
|
+
onClick: e,
|
|
16
|
+
dataTestId: i,
|
|
18
17
|
iconAltText: u
|
|
19
|
-
}) => /* @__PURE__ */
|
|
20
|
-
|
|
18
|
+
}) => /* @__PURE__ */ o(
|
|
19
|
+
b,
|
|
21
20
|
{
|
|
22
21
|
variant: n,
|
|
23
|
-
color:
|
|
24
|
-
size:
|
|
25
|
-
className: l(f.button,
|
|
26
|
-
onClick:
|
|
27
|
-
selected:
|
|
28
|
-
"data-testid":
|
|
22
|
+
color: s,
|
|
23
|
+
size: t,
|
|
24
|
+
className: l(f.button, a),
|
|
25
|
+
onClick: e,
|
|
26
|
+
selected: c,
|
|
27
|
+
"data-testid": i,
|
|
29
28
|
"aria-label": u,
|
|
30
|
-
children: /* @__PURE__ */
|
|
29
|
+
children: /* @__PURE__ */ o(d, { icon: r, size: m || t })
|
|
31
30
|
}
|
|
32
31
|
);
|
|
33
32
|
export {
|
|
34
|
-
|
|
33
|
+
I as IconButton
|
|
35
34
|
};
|
|
@@ -28,14 +28,14 @@ const k = O((e, l) => {
|
|
|
28
28
|
n ? a.createElement("title", { id: r }, n) : null,
|
|
29
29
|
a.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M6 10.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m4.5 1.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0m6 0a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0", clipRule: "evenodd" })
|
|
30
30
|
);
|
|
31
|
-
}),
|
|
32
|
-
toggle:
|
|
33
|
-
button:
|
|
34
|
-
icon:
|
|
31
|
+
}), B = "_toggle_nol5i_1", P = "_button_nol5i_5", S = "_icon_nol5i_14", f = {
|
|
32
|
+
toggle: B,
|
|
33
|
+
button: P,
|
|
34
|
+
icon: S
|
|
35
35
|
}, J = ({
|
|
36
36
|
id: e = "context-menu",
|
|
37
37
|
placement: l = "right",
|
|
38
|
-
size: n,
|
|
38
|
+
size: n = "sm",
|
|
39
39
|
groups: t = {},
|
|
40
40
|
className: o,
|
|
41
41
|
items: r
|
|
@@ -56,7 +56,6 @@ const k = O((e, l) => {
|
|
|
56
56
|
className: f.button,
|
|
57
57
|
size: n,
|
|
58
58
|
icon: k,
|
|
59
|
-
iconSize: "md",
|
|
60
59
|
variant: "text",
|
|
61
60
|
color: "neutral",
|
|
62
61
|
onClick: g,
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { useMemo as
|
|
2
|
+
import { jsxs as h, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo as g } from "react";
|
|
4
4
|
import "../../index-L8X2o7IH.js";
|
|
5
|
-
import { Button as
|
|
6
|
-
import { ComboButton as
|
|
7
|
-
import { useRootContext as
|
|
8
|
-
import { DropdownBase as
|
|
9
|
-
import { Menu as
|
|
5
|
+
import { Button as y } from "../Button/Button.js";
|
|
6
|
+
import { ComboButton as C } from "../Button/ComboButton.js";
|
|
7
|
+
import { useRootContext as v } from "../RootProvider/RootProvider.js";
|
|
8
|
+
import { DropdownBase as b } from "../Dropdown/DropdownBase.js";
|
|
9
|
+
import { Menu as x } from "../Menu/Menu.js";
|
|
10
10
|
import "../Search/AutocompleteBase.js";
|
|
11
11
|
import "../Snackbar/useSnackbar.js";
|
|
12
12
|
import { S as B } from "../../ChevronUp-H8Nuww4h.js";
|
|
13
13
|
import { S as _ } from "../../ChevronDown-CRAwzuD3.js";
|
|
14
|
-
import '../../assets/DialogActions.css';const
|
|
15
|
-
action:
|
|
16
|
-
comboButton:
|
|
17
|
-
}, q = ({ items: c, maxItems:
|
|
18
|
-
const { currentId:
|
|
14
|
+
import '../../assets/DialogActions.css';const k = "_action_m3crc_1", I = "_comboButton_m3crc_7", m = {
|
|
15
|
+
action: k,
|
|
16
|
+
comboButton: I
|
|
17
|
+
}, q = ({ items: c, maxItems: s = 2, id: l = "dialog-actions", expandAltLabel: p }) => {
|
|
18
|
+
const { currentId: d, closeAll: a, toggleId: u } = v(), e = d === l, n = g(() => (c || []).filter((r) => !r.hidden).sort((r, o) => {
|
|
19
19
|
const i = ["primary", "secondary", "tertiary"];
|
|
20
20
|
return i.indexOf(r == null ? void 0 : r.priority) - i.indexOf(o == null ? void 0 : o.priority);
|
|
21
21
|
}), [c]);
|
|
22
|
-
if (!n.length ||
|
|
22
|
+
if (!n.length || s <= 0)
|
|
23
23
|
return null;
|
|
24
|
-
if (n.length >
|
|
24
|
+
if (n.length > s) {
|
|
25
25
|
const r = n.slice(1).map((o) => ({
|
|
26
26
|
id: o.id,
|
|
27
27
|
title: o.label,
|
|
@@ -29,25 +29,26 @@ import '../../assets/DialogActions.css';const x = "_action_m3crc_1", k = "_combo
|
|
|
29
29
|
group: o.priority,
|
|
30
30
|
hidden: o.hidden
|
|
31
31
|
}));
|
|
32
|
-
return /* @__PURE__ */
|
|
32
|
+
return /* @__PURE__ */ h("section", { className: m.comboButton, children: [
|
|
33
33
|
/* @__PURE__ */ t(
|
|
34
|
-
|
|
34
|
+
C,
|
|
35
35
|
{
|
|
36
36
|
variant: "solid",
|
|
37
37
|
icon: e ? B : _,
|
|
38
|
-
size: "
|
|
39
|
-
onIconClick: () =>
|
|
38
|
+
size: "md",
|
|
39
|
+
onIconClick: () => u(l),
|
|
40
40
|
onLabelClick: n[0].onClick,
|
|
41
41
|
ariaLabel: e ? "chevron up icon" : "chevron down icon",
|
|
42
|
+
iconAltText: p,
|
|
42
43
|
children: n[0].label
|
|
43
44
|
}
|
|
44
45
|
),
|
|
45
|
-
/* @__PURE__ */ t(
|
|
46
|
+
/* @__PURE__ */ t(b, { open: e, onClose: a, children: /* @__PURE__ */ t(x, { items: r }) })
|
|
46
47
|
] });
|
|
47
48
|
}
|
|
48
49
|
return /* @__PURE__ */ t("section", { className: m.action, children: n.map((r, o) => {
|
|
49
|
-
const { priority: i, id:
|
|
50
|
-
return /* @__PURE__ */ t(
|
|
50
|
+
const { priority: i, id: S, ...f } = r;
|
|
51
|
+
return /* @__PURE__ */ t(y, { variant: i === "primary" ? "solid" : "outline", size: "md", ...f, children: r.label }, "button-" + o);
|
|
51
52
|
}) });
|
|
52
53
|
};
|
|
53
54
|
export {
|
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
import { A as D, B as e, a as
|
|
2
|
-
import { D as
|
|
1
|
+
import { A as D, B as e, a as o, C as i, b as t, c as r, D as n, H as g, L as p, d, e as x, P as f, f as h, g as l, h as m, i as P, S as b, j as S, T as c, u as C } from "../../usePagination-B4GfH2GQ.js";
|
|
2
|
+
import { D as k } from "../../index-B7UjMwQm.js";
|
|
3
|
+
import { P as B } from "../../Paragraph-CFjOkbXa.js";
|
|
4
|
+
import { V as A } from "../../index-Bq6w9CqA.js";
|
|
3
5
|
export {
|
|
4
6
|
D as DsAlert,
|
|
5
7
|
e as DsBadge,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
o as DsButton,
|
|
9
|
+
i as DsCheckbox,
|
|
8
10
|
t as DsChip,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
r as DsCombobox,
|
|
12
|
+
k as DsDetails,
|
|
13
|
+
n as DsDialog,
|
|
12
14
|
g as DsHeading,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
15
|
+
p as DsLink,
|
|
16
|
+
d as DsListItem,
|
|
17
|
+
x as DsListUnordered,
|
|
18
|
+
f as DsPagination,
|
|
19
|
+
B as DsParagraph,
|
|
20
|
+
h as DsPopover,
|
|
21
|
+
l as DsSearch,
|
|
22
|
+
m as DsSkeleton,
|
|
23
|
+
P as DsSpinner,
|
|
24
|
+
b as DsSwitch,
|
|
25
|
+
S as DsTabs,
|
|
26
|
+
c as DsTextfield,
|
|
27
|
+
A as DsValidationMessage,
|
|
28
|
+
C as useDsPagination
|
|
27
29
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "../../index-L8X2o7IH.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../RootProvider/RootProvider.js";
|
|
5
|
+
import "../Search/AutocompleteBase.js";
|
|
6
|
+
import "../Snackbar/useSnackbar.js";
|
|
7
|
+
import { Field as e } from "./Field.js";
|
|
8
|
+
import { Label as c } from "./Label.js";
|
|
9
|
+
import { Input as n } from "./Input.js";
|
|
10
|
+
const u = ({ size: t, color: m, label: r, ...i }) => /* @__PURE__ */ p(e, { size: t, color: m, children: [
|
|
11
|
+
/* @__PURE__ */ o(n, { ...i, type: "checkbox" }),
|
|
12
|
+
!!r && /* @__PURE__ */ o(c, { children: r })
|
|
13
|
+
] });
|
|
14
|
+
export {
|
|
15
|
+
u as Checkbox
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "../../index-L8X2o7IH.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../RootProvider/RootProvider.js";
|
|
5
|
+
import "../Search/AutocompleteBase.js";
|
|
6
|
+
import "../Snackbar/useSnackbar.js";
|
|
7
|
+
import { Checkbox as i } from "./Checkbox.js";
|
|
8
|
+
import { OptionsBase as e } from "./OptionsBase.js";
|
|
9
|
+
const k = ({ options: r = [], ...t }) => /* @__PURE__ */ o(e, { ...t, children: r.map((m, p) => /* @__PURE__ */ o(i, { ...m }, p)) });
|
|
10
|
+
export {
|
|
11
|
+
k as CheckboxOptions
|
|
12
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsxs as d, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import "../../index-L8X2o7IH.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../RootProvider/RootProvider.js";
|
|
5
|
+
import { Typography as e } from "../Typography/Typography.js";
|
|
6
|
+
import "../Search/AutocompleteBase.js";
|
|
7
|
+
import "../Snackbar/useSnackbar.js";
|
|
8
|
+
import { Field as n } from "./Field.js";
|
|
9
|
+
import { Label as c } from "./Label.js";
|
|
10
|
+
const u = ({ size: r, color: p, label: o, helperText: i, children: t, ...s }) => /* @__PURE__ */ d(n, { size: r, color: p, ...s, children: [
|
|
11
|
+
o && /* @__PURE__ */ m(c, { size: r, children: o }),
|
|
12
|
+
t,
|
|
13
|
+
i && /* @__PURE__ */ m(e, { size: "xs", children: i })
|
|
14
|
+
] });
|
|
15
|
+
export {
|
|
16
|
+
u as FieldBase
|
|
17
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { c as d } from "../../lite-1fxw3LjI.js";
|
|
4
|
+
import { forwardRef as n } from "react";
|
|
5
|
+
import { P as a } from "../../Paragraph-CFjOkbXa.js";
|
|
6
|
+
import { F as c } from "../../FieldsetLegend-Dwb3U0vQ.js";
|
|
7
|
+
const l = n(function({ className: e, ...t }, i) {
|
|
8
|
+
return r("fieldset", { className: d("ds-fieldset", e), ref: i, ...t });
|
|
9
|
+
}), p = n(function(e, t) {
|
|
10
|
+
return r(a, { ref: t, ...e });
|
|
11
|
+
}), o = Object.assign(l, {
|
|
12
|
+
Legend: c,
|
|
13
|
+
Description: p
|
|
14
|
+
});
|
|
15
|
+
o.Legend.displayName = "Fieldset.Legend";
|
|
16
|
+
o.Description.displayName = "Fieldset.Description";
|
|
17
|
+
const D = ({ size: s, color: e, children: t, ...i }) => /* @__PURE__ */ r(
|
|
18
|
+
o,
|
|
19
|
+
{
|
|
20
|
+
...i,
|
|
21
|
+
"data-size": s,
|
|
22
|
+
"data-color": e,
|
|
23
|
+
children: t
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
export {
|
|
27
|
+
D as Fieldset
|
|
28
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsxs as i, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import "../../index-L8X2o7IH.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../RootProvider/RootProvider.js";
|
|
5
|
+
import "../Search/AutocompleteBase.js";
|
|
6
|
+
import "../Snackbar/useSnackbar.js";
|
|
7
|
+
import { Fieldset as e } from "./Fieldset.js";
|
|
8
|
+
import { Legend as p } from "./Legend.js";
|
|
9
|
+
const j = ({ legend: r, children: o, ...t }) => /* @__PURE__ */ i(e, { ...t, children: [
|
|
10
|
+
!!r && /* @__PURE__ */ m(p, { children: r }),
|
|
11
|
+
o
|
|
12
|
+
] });
|
|
13
|
+
export {
|
|
14
|
+
j as FieldsetBase
|
|
15
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { I as s } from "../../Input-B_w6SBmg.js";
|
|
3
|
+
const m = ({ inputSize: t, size: o, color: r, ...a }) => /* @__PURE__ */ p(
|
|
4
|
+
s,
|
|
5
|
+
{
|
|
6
|
+
size: t,
|
|
7
|
+
"data-color": r,
|
|
8
|
+
"data-size": o,
|
|
9
|
+
...a
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
export {
|
|
13
|
+
m as Input
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { F as d } from "../../FieldsetLegend-Dwb3U0vQ.js";
|
|
3
|
+
const m = ({ size: e, color: o, children: r, ...t }) => /* @__PURE__ */ a(
|
|
4
|
+
d,
|
|
5
|
+
{
|
|
6
|
+
...t,
|
|
7
|
+
"data-size": e,
|
|
8
|
+
"data-color": o,
|
|
9
|
+
children: r
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
export {
|
|
13
|
+
m as Legend
|
|
14
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
const l = ({ size: o, color: r, inline: e, children: t }) => /* @__PURE__ */ a(
|
|
3
|
+
"div",
|
|
4
|
+
{
|
|
5
|
+
"data-color": r,
|
|
6
|
+
"data-size": o,
|
|
7
|
+
style: {
|
|
8
|
+
display: "flex",
|
|
9
|
+
flexDirection: e ? "row" : "column",
|
|
10
|
+
rowGap: "1rem",
|
|
11
|
+
columnGap: "1rem"
|
|
12
|
+
},
|
|
13
|
+
children: t
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
export {
|
|
17
|
+
l as OptionsBase
|
|
18
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "../../index-L8X2o7IH.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../RootProvider/RootProvider.js";
|
|
5
|
+
import "../Search/AutocompleteBase.js";
|
|
6
|
+
import "../Snackbar/useSnackbar.js";
|
|
7
|
+
import { Field as e } from "./Field.js";
|
|
8
|
+
import { Label as d } from "./Label.js";
|
|
9
|
+
import { Input as n } from "./Input.js";
|
|
10
|
+
const y = ({ size: i, color: t, label: r, ...m }) => /* @__PURE__ */ p(e, { size: i, color: t, children: [
|
|
11
|
+
/* @__PURE__ */ o(n, { ...m, type: "radio" }),
|
|
12
|
+
!!r && /* @__PURE__ */ o(d, { children: r })
|
|
13
|
+
] });
|
|
14
|
+
export {
|
|
15
|
+
y as Radio
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import "../../index-L8X2o7IH.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../RootProvider/RootProvider.js";
|
|
5
|
+
import "../Search/AutocompleteBase.js";
|
|
6
|
+
import "../Snackbar/useSnackbar.js";
|
|
7
|
+
import { Radio as a } from "./Radio.js";
|
|
8
|
+
import { OptionsBase as e } from "./OptionsBase.js";
|
|
9
|
+
const h = ({ name: i, options: t = [], ...o }) => /* @__PURE__ */ m(e, { ...o, children: t.map((r, p) => /* @__PURE__ */ m(a, { name: (r == null ? void 0 : r.name) || i, ...r }, p)) });
|
|
10
|
+
export {
|
|
11
|
+
h as RadioOptions
|
|
12
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
3
|
+
import { c as s } from "../../lite-1fxw3LjI.js";
|
|
4
|
+
import { forwardRef as l } from "react";
|
|
5
|
+
import { S as f } from "../../index-C8BS_2GY.js";
|
|
6
|
+
const u = l(function({ className: r, onKeyDown: t, onMouseDown: e, width: n, ...i }, m) {
|
|
7
|
+
return c("select", { className: s("ds-input", r), "data-width": n, ref: m, onKeyDown: (p) => {
|
|
8
|
+
p.key !== "Tab" && (i.readOnly && p.preventDefault(), t == null || t(p));
|
|
9
|
+
}, onMouseDown: (p) => {
|
|
10
|
+
i.readOnly && p.preventDefault(), e == null || e(p);
|
|
11
|
+
}, ...i });
|
|
12
|
+
}), O = l(function({ asChild: r, ...t }, e) {
|
|
13
|
+
return c(r ? f : "optgroup", { ...t, ref: e });
|
|
14
|
+
}), S = l(function({ asChild: r, ...t }, e) {
|
|
15
|
+
return c(r ? f : "option", { ...t, ref: e });
|
|
16
|
+
}), a = Object.assign(u, {
|
|
17
|
+
Option: S,
|
|
18
|
+
Optgroup: O
|
|
19
|
+
});
|
|
20
|
+
a.Option.displayName = "Select.Option";
|
|
21
|
+
a.Optgroup.displayName = "Select.Optgroup";
|
|
22
|
+
const N = ({ size: o = "md", color: r, children: t, ...e }) => /* @__PURE__ */ c(a, { "data-color": r, "data-size": o, ...e, children: t });
|
|
23
|
+
export {
|
|
24
|
+
N as Select
|
|
25
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "../../index-L8X2o7IH.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../RootProvider/RootProvider.js";
|
|
5
|
+
import "../Search/AutocompleteBase.js";
|
|
6
|
+
import "../Snackbar/useSnackbar.js";
|
|
7
|
+
import { Select as e } from "./Select.js";
|
|
8
|
+
import { FieldBase as p } from "./FieldBase.js";
|
|
9
|
+
const S = ({ size: r = "md", label: t, children: m, ...i }) => /* @__PURE__ */ o(p, { label: t, size: r, children: /* @__PURE__ */ o(e, { ...i, size: r, children: m }) });
|
|
10
|
+
export {
|
|
11
|
+
S as SelectField
|
|
12
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "../../index-L8X2o7IH.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../RootProvider/RootProvider.js";
|
|
5
|
+
import "../Search/AutocompleteBase.js";
|
|
6
|
+
import "../Snackbar/useSnackbar.js";
|
|
7
|
+
import { Field as e } from "./Field.js";
|
|
8
|
+
import { Label as c } from "./Label.js";
|
|
9
|
+
import { Input as h } from "./Input.js";
|
|
10
|
+
const b = ({ size: t, color: i, label: r, ...m }) => /* @__PURE__ */ p(e, { size: t, color: i, children: [
|
|
11
|
+
/* @__PURE__ */ o(h, { ...m, type: "checkbox", role: "switch" }),
|
|
12
|
+
!!r && /* @__PURE__ */ o(c, { children: r })
|
|
13
|
+
] });
|
|
14
|
+
export {
|
|
15
|
+
b as Switch
|
|
16
|
+
};
|