@altinn/altinn-components 0.29.1 → 0.29.3
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/assets/Badge.css +1 -1
- package/dist/assets/SettingsItem.css +1 -1
- package/dist/assets/SnackbarItem.css +1 -1
- package/dist/assets/TimelineLink.css +1 -1
- package/dist/components/Badge/Badge.js +5 -5
- package/dist/components/Dashboard/DashboardHeader.js +11 -11
- package/dist/components/List/ListItemHeader.js +7 -7
- package/dist/components/Settings/SettingsItem.js +13 -13
- package/dist/components/Settings/SettingsList.js +30 -0
- package/dist/components/Settings/SettingsSection.js +20 -0
- package/dist/components/Settings/index.js +6 -4
- package/dist/components/Snackbar/SnackbarItem.js +36 -37
- package/dist/components/Snackbar/useSnackbar.js +6 -6
- package/dist/components/Timeline/TimelineLink.js +18 -19
- package/dist/components/index.js +47 -45
- package/dist/index.js +73 -71
- package/dist/types/lib/components/Account/AccountList.stories.d.ts +16 -6
- package/dist/types/lib/components/Account/AccountListItem.stories.d.ts +2 -2
- package/dist/types/lib/components/Account/AccountMenu.stories.d.ts +1 -1
- package/dist/types/lib/components/Account/AccountSettingsList.stories.d.ts +14 -0
- package/dist/types/lib/components/ActivityLog/ActivityLog.stories.d.ts +1 -0
- package/dist/types/lib/components/Article/ArticleContact.stories.d.ts +1 -1
- package/dist/types/lib/components/Article/ArticleHeader.stories.d.ts +1 -1
- package/dist/types/lib/components/Attachment/AttachmentLink.stories.d.ts +1 -1
- package/dist/types/lib/components/Attachment/AttachmentList.stories.d.ts +1 -1
- package/dist/types/lib/components/Avatar/AvatarGroup.stories.d.ts +1 -1
- package/dist/types/lib/components/Avatar/avatar.stories.d.ts +1 -1
- package/dist/types/lib/components/Badge/Badge.d.ts +1 -1
- package/dist/types/lib/components/Badge/Badge.stories.d.ts +2 -1
- package/dist/types/lib/components/Bookmarks/BookmarksListItem.stories.d.ts +1 -1
- package/dist/types/lib/components/Bookmarks/BookmarksSection.stories.d.ts +1 -1
- package/dist/types/lib/components/Button/Button.stories.d.ts +1 -1
- package/dist/types/lib/components/Button/ComboButton.stories.d.ts +1 -1
- package/dist/types/lib/components/Button/IconButton.stories.d.ts +1 -1
- package/dist/types/lib/components/Byline/Byline.stories.d.ts +1 -1
- package/dist/types/lib/components/ContextMenu/ContextMenu.stories.d.ts +1 -1
- package/dist/types/lib/components/Dashboard/DashboardHeader.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/Dialog.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogActions.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogAttachments.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogBody.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogBylline.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogHeader.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogHistory.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogList.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogListItem.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogMetadata.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogSeenBy.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogStatus.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogTouchedBy.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/SeenByLog.stories.d.ts +1 -1
- package/dist/types/lib/components/DsComponents/DsComponents.stories.d.ts +1 -1
- package/dist/types/lib/components/Footer/Footer.stories.d.ts +1 -1
- package/dist/types/lib/components/Forms/Checkbox.stories.d.ts +1 -1
- package/dist/types/lib/components/Forms/CheckboxOptions.stories.d.ts +1 -1
- package/dist/types/lib/components/Forms/Radio.stories.d.ts +1 -1
- package/dist/types/lib/components/Forms/RadioOptions.stories.d.ts +1 -1
- package/dist/types/lib/components/Forms/SearchField.stories.d.ts +1 -1
- package/dist/types/lib/components/Forms/SelectField.stories.d.ts +1 -1
- package/dist/types/lib/components/Forms/Switch.stories.d.ts +1 -1
- package/dist/types/lib/components/Forms/SwitchOptions.stories.d.ts +1 -1
- package/dist/types/lib/components/Forms/TextField.stories.d.ts +1 -1
- package/dist/types/lib/components/Forms/TextareaField.stories.d.ts +1 -1
- package/dist/types/lib/components/GlobalMenu/GlobalMenu.stories.d.ts +1 -1
- package/dist/types/lib/components/GlobalMenu/GlobalMenuButton.stories.d.ts +1 -1
- package/dist/types/lib/components/Header/HeaderButton.stories.d.ts +1 -1
- package/dist/types/lib/components/Header/LocaleSwitcher.stories.d.ts +1 -1
- package/dist/types/lib/components/Icon/CheckboxIcon.stories.d.ts +1 -1
- package/dist/types/lib/components/Icon/Icon.stories.d.ts +1 -1
- package/dist/types/lib/components/Icon/ProgressIcon.stories.d.ts +1 -1
- package/dist/types/lib/components/Icon/RadioIcon.stories.d.ts +1 -1
- package/dist/types/lib/components/LayoutAction/LayoutAction.stories.d.ts +1 -1
- package/dist/types/lib/components/List/ListItem.stories.d.ts +1 -1
- package/dist/types/lib/components/Menu/Menu.stories.d.ts +1 -1
- package/dist/types/lib/components/Menu/MenuOption.stories.d.ts +1 -1
- package/dist/types/lib/components/Menu/MenuSearch.stories.d.ts +1 -1
- package/dist/types/lib/components/Metadata/MetaItem.stories.d.ts +1 -1
- package/dist/types/lib/components/Metadata/MetaProgress.stories.d.ts +1 -1
- package/dist/types/lib/components/Metadata/MetaTimestamp.stories.d.ts +1 -1
- package/dist/types/lib/components/Metadata/Metadata.stories.d.ts +1 -1
- package/dist/types/lib/components/Page/Breadcrumbs.stories.d.ts +1 -1
- package/dist/types/lib/components/Page/ContactSection.stories.d.ts +1 -1
- package/dist/types/lib/components/Page/Flex.stories.d.ts +1 -1
- package/dist/types/lib/components/Page/Grid.stories.d.ts +1 -1
- package/dist/types/lib/components/Page/List.stories.d.ts +1 -1
- package/dist/types/lib/components/Page/PageMenu.stories.d.ts +1 -1
- package/dist/types/lib/components/Page/PageNav.stories.d.ts +1 -1
- package/dist/types/lib/components/Page/PageTabs.stories.d.ts +1 -1
- package/dist/types/lib/components/ResourceList/ResourceList.stories.d.ts +1 -1
- package/dist/types/lib/components/ResourceList/ResourceListItem.stories.d.ts +1 -1
- package/dist/types/lib/components/Searchbar/Autocomplete.stories.d.ts +1 -1
- package/dist/types/lib/components/Searchbar/Searchbar.stories.d.ts +1 -1
- package/dist/types/lib/components/Settings/Settings.stories.d.ts +0 -1
- package/dist/types/lib/components/Settings/SettingsItem.d.ts +1 -0
- package/dist/types/lib/components/Settings/SettingsItem.stories.d.ts +3 -2
- package/dist/types/lib/components/Settings/SettingsList.d.ts +9 -0
- package/dist/types/lib/components/Settings/SettingsSection.d.ts +9 -0
- package/dist/types/lib/components/Settings/index.d.ts +2 -1
- package/dist/types/lib/components/Snackbar/SnackbarItem.d.ts +0 -2
- package/dist/types/lib/components/Snackbar/SnackbarItem.stories.d.ts +1 -1
- package/dist/types/lib/components/Timeline/TimelineActivity.stories.d.ts +1 -1
- package/dist/types/lib/components/Timeline/TimelineFooter.stories.d.ts +1 -1
- package/dist/types/lib/components/Timeline/TimelineHeader.stories.d.ts +1 -1
- package/dist/types/lib/components/Timeline/TimelineSection.stories.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/Toolbar.stories.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/ToolbarAdd.stories.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/ToolbarButton.stories.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/ToolbarDate.stories.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/ToolbarDaterange.stories.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/ToolbarFilter.stories.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/ToolbarMenu.stories.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/ToolbarOptions.stories.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/ToolbarSearch.stories.d.ts +1 -1
- package/dist/types/lib/components/Typography/Heading.stories.d.ts +1 -1
- package/dist/types/lib/components/Typography/Typography.stories.d.ts +1 -1
- package/dist/types/lib/stories/Profile/Settings.stories.d.ts +3 -4
- package/dist/types/lib/stories/Profile.stories.d.ts +7 -7
- package/package.json +12 -16
- package/dist/components/Settings/Settings.js +0 -20
- package/dist/types/lib/components/Settings/Settings.d.ts +0 -9
- package/dist/types/lib/stories/Profile/Accounts.stories.d.ts +0 -14
package/dist/assets/Badge.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._badge_80cwt_1{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;flex:0 0 auto;max-height:min-content;--dsc-badge-background: var(--ds-color-base-default);--dsc-badge-color: var(--ds-color-base-contrast-default);background-color:var(--dsc-badge-background);color:var(--dsc-badge-color)}._badge_80cwt_1[data-size=xs]{width:.75rem;height:.75rem;padding:0;border-radius:1em}._badge_80cwt_1[data-size=xs] ._label_80cwt_22{color:transparent;width:100%;height:100%}._badge_80cwt_1[data-size=sm]{font-weight:500;font-size:.75rem;line-height:1;padding:.5em;min-width:2em;border-radius:2em}._badge_80cwt_1[data-variant=tinted]{--dsc-badge-background: var(--ds-color-surface-tinted);--dsc-badge-color: var(--ds-color-text-default)}._badge_80cwt_1[data-variant=base]{--dsc-badge-background: var(--ds-color-base-default);--dsc-badge-color: var(--ds-color-base-contrast-default)}._badge_80cwt_1[data-variant=text],._badge_80cwt_1[data-variant=text][data-size=xs],._badge_80cwt_1[data-variant=text][data-size=sm]{--dsc-badge-background: "transparent";--dsc-badge-color: var(--ds-color-text-subtle);font-size:.875rem;font-weight:400;padding:.5em 0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._item_s2olz_1{--dsc-item-px: 0;--dsc-item-py: 0;--dsc-item-height: 2rem;--dsc-item-background: transparent;--dsc-item-background-hover: none;--dsc-item-outline-color: transparent;--dsc-item-border-color: transparent;box-shadow:none}._item_s2olz_1+._item_s2olz_1{margin-top:.5em}._label_s2olz_16{margin:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._item_1a13i_1{border:none;color:inherit;font:inherit;text-align:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-user-select:none;user-select:none;border-radius:.5rem;box-shadow:var(--ds-shadow-xs)}._item_1a13i_1{position:relative;display:flex;align-items:center;text-decoration:none;color:inherit;padding:.625rem}._icon_1a13i_23{flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:1.5rem;width:2.75rem;height:2.75rem}._content_1a13i_33{flex-grow:1;display:flex;align-items:center;margin-left:.625rem;margin-right:1.25rem}._action_1a13i_41{flex-shrink:0;display:flex;align-items:center;justify-content:center}._item_1a13i_1{background-color:var(--ds-color-base-default);color:var(--ds-color-base-contrast-default)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._button_87kyt_1{display:inline-flex;column-gap:.25em;align-items:center;justify-content:flex-start;font-size:.875rem;min-height:auto}._label_87kyt_10{flex-shrink:1;font-weight:400;white-space:inherit;padding:.3125rem}._button_87kyt_1 a{color:inherit}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { c as r } from "../../index-L8X2o7IH.js";
|
|
3
|
-
import '../../assets/Badge.css';const b = "
|
|
3
|
+
import '../../assets/Badge.css';const b = "_badge_80cwt_1", m = "_label_80cwt_22", e = {
|
|
4
4
|
badge: b,
|
|
5
5
|
label: m
|
|
6
|
-
}, g = ({ label: t, color: s, variant:
|
|
6
|
+
}, g = ({ label: t, color: s, variant: l = "tinted", theme: c, size: d = "sm", className: n, children: o }) => /* @__PURE__ */ a(
|
|
7
7
|
"span",
|
|
8
8
|
{
|
|
9
9
|
className: r(e.badge, n),
|
|
10
10
|
"data-color": s,
|
|
11
|
-
"data-variant":
|
|
12
|
-
"data-theme":
|
|
13
|
-
"data-size":
|
|
11
|
+
"data-variant": l,
|
|
12
|
+
"data-theme": c,
|
|
13
|
+
"data-size": d,
|
|
14
14
|
children: /* @__PURE__ */ a("span", { className: e.label, children: t || o })
|
|
15
15
|
}
|
|
16
16
|
);
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { Avatar as
|
|
4
|
+
import { Avatar as a } from "../Avatar/Avatar.js";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
|
-
import { Typography as
|
|
7
|
-
import { Heading as
|
|
6
|
+
import { Typography as c } from "../Typography/Typography.js";
|
|
7
|
+
import { Heading as d } from "../Typography/Heading.js";
|
|
8
8
|
import { Skeleton as l } from "../Skeleton/Skeleton.js";
|
|
9
9
|
import "../Searchbar/AutocompleteBase.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
|
-
import { Flex as
|
|
11
|
+
import { Flex as p } from "../Page/Flex.js";
|
|
12
12
|
import { Section as h } from "../Page/Section.js";
|
|
13
|
-
const k = ({ type: o, name: t, title:
|
|
14
|
-
/* @__PURE__ */ i(
|
|
15
|
-
/* @__PURE__ */ r("div", { style: { position: "relative" }, children: /* @__PURE__ */ r(
|
|
16
|
-
/* @__PURE__ */ i(
|
|
17
|
-
/* @__PURE__ */ r(
|
|
18
|
-
/* @__PURE__ */ r(
|
|
13
|
+
const k = ({ type: o, name: t, title: m, description: s, loading: e, children: n }) => /* @__PURE__ */ i(h, { as: "header", theme: "default", padding: "page", spacing: 6, shadow: "xs", bleed: !0, children: [
|
|
14
|
+
/* @__PURE__ */ i(p, { direction: "row", align: "center", spacing: 3, children: [
|
|
15
|
+
/* @__PURE__ */ r("div", { style: { position: "relative" }, children: /* @__PURE__ */ r(a, { style: { fontSize: "2.75rem" }, type: o, name: t, loading: e }) }),
|
|
16
|
+
/* @__PURE__ */ i(p, { direction: "col", spacing: 0, children: [
|
|
17
|
+
/* @__PURE__ */ r(d, { size: "lg", loading: e, children: m || t }),
|
|
18
|
+
/* @__PURE__ */ r(c, { as: "p", variant: "subtle", size: "xs", loading: e, children: s || o })
|
|
19
19
|
] })
|
|
20
20
|
] }),
|
|
21
|
-
/* @__PURE__ */ r(l, { loading: e, children:
|
|
21
|
+
/* @__PURE__ */ r(l, { loading: e, children: n })
|
|
22
22
|
] });
|
|
23
23
|
export {
|
|
24
24
|
k as DashboardHeader
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as a, jsx as e, Fragment as E } from "react/jsx-runtime";
|
|
2
2
|
import { c as g } from "../../index-L8X2o7IH.js";
|
|
3
3
|
import { useId as w, isValidElement as z } from "react";
|
|
4
4
|
import { Icon as D } from "../Icon/Icon.js";
|
|
@@ -42,9 +42,9 @@ import '../../assets/ListItemHeader.css';const K = "_header_s4ghf_1", M = "_labe
|
|
|
42
42
|
children: y,
|
|
43
43
|
ariaLabel: C
|
|
44
44
|
}) => {
|
|
45
|
-
const
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
-
"
|
|
45
|
+
const l = d ? v ? A : G : I ? J : void 0, j = () => r && !t && typeof r == "object" && "label" in r ? /* @__PURE__ */ e(F, { ...r }) : z(r) ? r : null, B = w();
|
|
46
|
+
return /* @__PURE__ */ a(
|
|
47
|
+
"div",
|
|
48
48
|
{
|
|
49
49
|
className: g(o.header, x),
|
|
50
50
|
"data-color": f,
|
|
@@ -80,12 +80,12 @@ import '../../assets/ListItemHeader.css';const K = "_header_s4ghf_1", M = "_labe
|
|
|
80
80
|
children: y
|
|
81
81
|
}
|
|
82
82
|
),
|
|
83
|
-
/* @__PURE__ */ e(V, { className: o.controls, children: n && !t ? /* @__PURE__ */ e("span", { style: { position: "relative" }, children: n }) : /* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ e(V, { className: o.controls, children: n && !t ? /* @__PURE__ */ e("span", { style: { position: "relative" }, children: n }) : /* @__PURE__ */ a(E, { children: [
|
|
84
84
|
j(),
|
|
85
|
-
|
|
85
|
+
l && /* @__PURE__ */ e("span", { className: o.linkIcon, children: /* @__PURE__ */ e(
|
|
86
86
|
D,
|
|
87
87
|
{
|
|
88
|
-
svgElement:
|
|
88
|
+
svgElement: l,
|
|
89
89
|
style: {
|
|
90
90
|
fontSize: "1.5rem"
|
|
91
91
|
}
|
|
@@ -5,28 +5,28 @@ import "../RootProvider/RootProvider.js";
|
|
|
5
5
|
import { ListItemBase as _ } from "../List/ListItemBase.js";
|
|
6
6
|
import { ListItemHeader as f } from "../List/ListItemHeader.js";
|
|
7
7
|
import { ListItemLabel as h } from "../List/ListItemLabel.js";
|
|
8
|
-
import { getAriaLabelFromTitle as
|
|
8
|
+
import { getAriaLabelFromTitle as I } from "../Menu/MenuItemLabel.js";
|
|
9
9
|
import "../Searchbar/AutocompleteBase.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
|
-
import '../../assets/SettingsItem.css';const
|
|
12
|
-
item:
|
|
13
|
-
label:
|
|
11
|
+
import '../../assets/SettingsItem.css';const d = "_item_s2olz_1", N = "_label_s2olz_16", t = {
|
|
12
|
+
item: d,
|
|
13
|
+
label: N
|
|
14
14
|
}, S = ({
|
|
15
|
-
color:
|
|
16
|
-
size:
|
|
15
|
+
color: o,
|
|
16
|
+
size: s,
|
|
17
17
|
expanded: e,
|
|
18
|
-
icon:
|
|
18
|
+
icon: a,
|
|
19
19
|
label: l,
|
|
20
20
|
title: m,
|
|
21
21
|
value: c,
|
|
22
|
-
description:
|
|
23
|
-
children:
|
|
22
|
+
description: n,
|
|
23
|
+
children: b,
|
|
24
24
|
...r
|
|
25
25
|
}) => {
|
|
26
|
-
const
|
|
27
|
-
return /* @__PURE__ */ L(_, { className: t.item, color:
|
|
28
|
-
/* @__PURE__ */ i(f, { ...r, ariaLabel:
|
|
29
|
-
e &&
|
|
26
|
+
const p = r.ariaLabel || I(m);
|
|
27
|
+
return /* @__PURE__ */ L(_, { className: t.item, color: o, size: s, expanded: e, children: [
|
|
28
|
+
/* @__PURE__ */ i(f, { ...r, ariaLabel: p, className: t.header, icon: a, children: /* @__PURE__ */ i(h, { className: t.label, title: m, value: c, description: n, children: l }) }),
|
|
29
|
+
e && b
|
|
30
30
|
] });
|
|
31
31
|
};
|
|
32
32
|
export {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as n, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment as a, createElement as p } from "react";
|
|
3
|
+
import "../../index-L8X2o7IH.js";
|
|
4
|
+
import "../RootProvider/RootProvider.js";
|
|
5
|
+
import { List as f } from "../List/List.js";
|
|
6
|
+
import { Divider as h } from "../Divider/Divider.js";
|
|
7
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
8
|
+
import "../Snackbar/useSnackbar.js";
|
|
9
|
+
import { SettingsItem as l } from "./SettingsItem.js";
|
|
10
|
+
const b = ({ items: e, groups: o }) => {
|
|
11
|
+
var s;
|
|
12
|
+
if (o) {
|
|
13
|
+
const r = (s = Object.keys(o).map((t) => {
|
|
14
|
+
const m = e == null ? void 0 : e.filter((d) => d.groupId === t && !d.hidden), { title: i } = o[t] || {};
|
|
15
|
+
return {
|
|
16
|
+
groupId: t,
|
|
17
|
+
title: i,
|
|
18
|
+
items: m
|
|
19
|
+
};
|
|
20
|
+
})) == null ? void 0 : s.filter((t) => t.items.length > 0);
|
|
21
|
+
return /* @__PURE__ */ n(f, { size: "sm", children: r.map((t, m) => /* @__PURE__ */ c(a, { children: [
|
|
22
|
+
m > 0 && /* @__PURE__ */ n(h, {}),
|
|
23
|
+
t.items.map((i) => /* @__PURE__ */ p(l, { ...i, key: i.id }))
|
|
24
|
+
] }, t.groupId)) });
|
|
25
|
+
}
|
|
26
|
+
return /* @__PURE__ */ n(f, { size: "sm", children: e.filter((r) => !(r != null && r.hidden)).map((r) => /* @__PURE__ */ p(l, { ...r, key: r.id })) });
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
b as SettingsList
|
|
30
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import "../../index-L8X2o7IH.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../RootProvider/RootProvider.js";
|
|
5
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
6
|
+
import "../Snackbar/useSnackbar.js";
|
|
7
|
+
import { Section as c } from "../Page/Section.js";
|
|
8
|
+
const j = ({
|
|
9
|
+
size: t = "sm",
|
|
10
|
+
theme: o = "default",
|
|
11
|
+
padding: r = 4,
|
|
12
|
+
spacing: i = 6,
|
|
13
|
+
shadow: m = "xs",
|
|
14
|
+
as: p,
|
|
15
|
+
color: e,
|
|
16
|
+
children: n
|
|
17
|
+
}) => /* @__PURE__ */ s(c, { as: p, size: t, color: e, theme: o, padding: r, spacing: i, shadow: m, children: n });
|
|
18
|
+
export {
|
|
19
|
+
j as SettingsSection
|
|
20
|
+
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SettingsItem as
|
|
1
|
+
import { SettingsSection as o } from "./SettingsSection.js";
|
|
2
|
+
import { SettingsItem as i } from "./SettingsItem.js";
|
|
3
|
+
import { SettingsList as n } from "./SettingsList.js";
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
i as SettingsItem,
|
|
6
|
+
n as SettingsList,
|
|
7
|
+
o as SettingsSection
|
|
6
8
|
};
|
|
@@ -1,65 +1,64 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as f, jsx as
|
|
2
|
+
import { jsxs as f, jsx as l } from "react/jsx-runtime";
|
|
3
3
|
import { c as p } from "../../index-L8X2o7IH.js";
|
|
4
4
|
import { Icon as v } from "../Icon/Icon.js";
|
|
5
5
|
import * as a from "react";
|
|
6
6
|
import { forwardRef as u } from "react";
|
|
7
|
-
import { IconButton as
|
|
7
|
+
import { IconButton as g } from "../Button/IconButton.js";
|
|
8
8
|
import "../RootProvider/RootProvider.js";
|
|
9
9
|
import "../Searchbar/AutocompleteBase.js";
|
|
10
10
|
import "./useSnackbar.js";
|
|
11
|
-
import { u as
|
|
11
|
+
import { u as _ } from "../../useId-BVFxCjkq.js";
|
|
12
12
|
import { S as h } from "../../XMark-DIqxCTTQ.js";
|
|
13
|
-
import '../../assets/SnackbarItem.css';var w = function(e,
|
|
14
|
-
var
|
|
15
|
-
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) &&
|
|
13
|
+
import '../../assets/SnackbarItem.css';var w = function(e, i) {
|
|
14
|
+
var o = {};
|
|
15
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && i.indexOf(t) < 0 && (o[t] = e[t]);
|
|
16
16
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
17
17
|
for (var n = 0, t = Object.getOwnPropertySymbols(e); n < t.length; n++)
|
|
18
|
-
|
|
19
|
-
return
|
|
18
|
+
i.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (o[t[n]] = e[t[n]]);
|
|
19
|
+
return o;
|
|
20
20
|
};
|
|
21
|
-
const
|
|
22
|
-
var { title:
|
|
23
|
-
let
|
|
24
|
-
return
|
|
21
|
+
const y = u((e, i) => {
|
|
22
|
+
var { title: o, titleId: t } = e, n = w(e, ["title", "titleId"]);
|
|
23
|
+
let r = _();
|
|
24
|
+
return r = o ? t || "title-" + r : void 0, a.createElement(
|
|
25
25
|
"svg",
|
|
26
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref:
|
|
27
|
-
|
|
26
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: i, "aria-labelledby": r }, n),
|
|
27
|
+
o ? a.createElement("title", { id: r }, o) : null,
|
|
28
28
|
a.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M12.75 2.5a.75.75 0 0 0-1.5 0v1.273c-2.222.14-3.655.92-4.499 2.186-.887 1.33-1.001 3.04-1.001 4.541v3c0 .809-.424 1.92-.92 2.915a18 18 0 0 1-.936 1.641l-.014.022-.004.006A.75.75 0 0 0 4.5 19.25h4.338a3.25 3.25 0 0 0 6.324 0H19.5a.75.75 0 0 0 .624-1.166l-.004-.006-.014-.022-.06-.091c-.05-.081-.125-.2-.215-.35-.18-.301-.42-.722-.66-1.2-.497-.994-.921-2.106-.921-2.915v-3c0-1.501-.114-3.21-1.001-4.541-.844-1.266-2.277-2.046-4.499-2.186zm-1.987 17.237a1.8 1.8 0 0 1-.344-.487h3.162a1.75 1.75 0 0 1-1.581 1 1.75 1.75 0 0 1-1.237-.513", clipRule: "evenodd" })
|
|
29
29
|
);
|
|
30
|
-
}),
|
|
31
|
-
item:
|
|
32
|
-
media: x,
|
|
30
|
+
}), x = "_item_1a13i_1", O = "_icon_1a13i_23", I = "_content_1a13i_33", b = "_action_1a13i_41", c = {
|
|
31
|
+
item: x,
|
|
33
32
|
icon: O,
|
|
34
33
|
content: I,
|
|
35
|
-
action:
|
|
34
|
+
action: b
|
|
36
35
|
};
|
|
37
|
-
var
|
|
38
|
-
const
|
|
36
|
+
var j = /* @__PURE__ */ ((e) => (e.accent = "accent", e.success = "success", e.warning = "warning", e.danger = "danger", e.info = "info", e))(j || {});
|
|
37
|
+
const H = ({
|
|
39
38
|
as: e,
|
|
40
|
-
message:
|
|
41
|
-
className:
|
|
42
|
-
color: t
|
|
43
|
-
icon: n =
|
|
44
|
-
iconAltText:
|
|
39
|
+
message: i,
|
|
40
|
+
className: o,
|
|
41
|
+
color: t,
|
|
42
|
+
icon: n = y,
|
|
43
|
+
iconAltText: r = "Bell icon",
|
|
45
44
|
dismissable: s = !0,
|
|
46
|
-
onDismiss:
|
|
47
|
-
...
|
|
48
|
-
}) => /* @__PURE__ */ f(e || "div", { className: p(
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
s && /* @__PURE__ */
|
|
52
|
-
|
|
45
|
+
onDismiss: m,
|
|
46
|
+
...d
|
|
47
|
+
}) => /* @__PURE__ */ f(e || "div", { className: p(c.item, o), "data-color": t, ...d, children: [
|
|
48
|
+
/* @__PURE__ */ l(v, { svgElement: n, className: c.icon }),
|
|
49
|
+
/* @__PURE__ */ l("div", { className: c.content, children: i }),
|
|
50
|
+
s && /* @__PURE__ */ l("div", { className: c.action, children: /* @__PURE__ */ l(
|
|
51
|
+
g,
|
|
53
52
|
{
|
|
54
53
|
icon: h,
|
|
55
|
-
variant: "
|
|
56
|
-
onClick:
|
|
57
|
-
className:
|
|
54
|
+
variant: "solid",
|
|
55
|
+
onClick: m,
|
|
56
|
+
className: c.dismiss,
|
|
58
57
|
iconAltText: "close"
|
|
59
58
|
}
|
|
60
59
|
) })
|
|
61
60
|
] });
|
|
62
61
|
export {
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
j as SnackbarColorEnum,
|
|
63
|
+
H as SnackbarItem
|
|
65
64
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as h } from "react/jsx-runtime";
|
|
3
|
-
import { createContext as x, useState as d, useRef as b, useCallback as v, useEffect as
|
|
4
|
-
var
|
|
3
|
+
import { createContext as x, useState as d, useRef as b, useCallback as v, useEffect as w, useContext as C } from "react";
|
|
4
|
+
var S = /* @__PURE__ */ ((e) => (e[e.infinite = 0] = "infinite", e[e.short = 1e3] = "short", e[e.normal = 3e3] = "normal", e[e.long = 5e3] = "long", e))(S || {});
|
|
5
5
|
const a = x(void 0), l = 3e3, P = ({ children: e }) => {
|
|
6
6
|
const [f, o] = d(!1), [i, c] = d([]), s = b(null), m = () => {
|
|
7
7
|
c([]), o(!1), s.current && clearTimeout(s.current);
|
|
@@ -14,9 +14,9 @@ const a = x(void 0), l = 3e3, P = ({ children: e }) => {
|
|
|
14
14
|
return o(r.length > 0), r;
|
|
15
15
|
});
|
|
16
16
|
}, []);
|
|
17
|
-
return
|
|
17
|
+
return w(() => {
|
|
18
18
|
const t = i.find((r) => (r.duration ?? l) > 0), n = (t == null ? void 0 : t.duration) || l;
|
|
19
|
-
return t && (s.current = setTimeout(() => {
|
|
19
|
+
return t && (s.current = window.setTimeout(() => {
|
|
20
20
|
u(t.id);
|
|
21
21
|
}, n)), () => {
|
|
22
22
|
s.current && clearTimeout(s.current);
|
|
@@ -35,13 +35,13 @@ const a = x(void 0), l = 3e3, P = ({ children: e }) => {
|
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
37
|
}, k = () => {
|
|
38
|
-
const e =
|
|
38
|
+
const e = C(a);
|
|
39
39
|
if (!e)
|
|
40
40
|
throw new Error("useSnackbar must be used within a SnackbarProvider");
|
|
41
41
|
return e;
|
|
42
42
|
};
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
S as SnackbarDuration,
|
|
45
45
|
P as SnackbarProvider,
|
|
46
46
|
k as useSnackbar
|
|
47
47
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c
|
|
1
|
+
import { jsxs as i, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { ButtonBase as p } from "../Button/ButtonBase.js";
|
|
5
5
|
import { ButtonLabel as b } from "../Button/ButtonLabel.js";
|
|
@@ -7,32 +7,31 @@ import { ButtonIcon as u } from "../Button/ButtonIcon.js";
|
|
|
7
7
|
import "../RootProvider/RootProvider.js";
|
|
8
8
|
import "../Searchbar/AutocompleteBase.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import '../../assets/TimelineLink.css';const _ = "
|
|
10
|
+
import '../../assets/TimelineLink.css';const _ = "_button_87kyt_1", f = "_label_87kyt_10", t = {
|
|
11
11
|
button: _,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
size: t = "custom",
|
|
12
|
+
label: f
|
|
13
|
+
}, L = ({
|
|
14
|
+
size: o = "xs",
|
|
16
15
|
color: m = "company",
|
|
17
|
-
icon:
|
|
18
|
-
reverse:
|
|
19
|
-
label:
|
|
20
|
-
children:
|
|
21
|
-
...
|
|
22
|
-
}) => /* @__PURE__ */
|
|
16
|
+
icon: r,
|
|
17
|
+
reverse: e,
|
|
18
|
+
label: l,
|
|
19
|
+
children: s,
|
|
20
|
+
...a
|
|
21
|
+
}) => /* @__PURE__ */ i(
|
|
23
22
|
p,
|
|
24
23
|
{
|
|
25
24
|
color: m,
|
|
26
25
|
variant: "link",
|
|
27
|
-
size:
|
|
28
|
-
className:
|
|
29
|
-
...
|
|
26
|
+
size: o,
|
|
27
|
+
className: c(t.button, { [t.reverse]: e }),
|
|
28
|
+
...a,
|
|
30
29
|
children: [
|
|
31
|
-
|
|
32
|
-
/* @__PURE__ */
|
|
30
|
+
r && /* @__PURE__ */ n(u, { className: t.icon, size: o, icon: r }),
|
|
31
|
+
/* @__PURE__ */ n(b, { className: t.label, size: o, children: s || l })
|
|
33
32
|
]
|
|
34
33
|
}
|
|
35
34
|
);
|
|
36
35
|
export {
|
|
37
|
-
|
|
36
|
+
L as TimelineLink
|
|
38
37
|
};
|
package/dist/components/index.js
CHANGED
|
@@ -179,20 +179,21 @@ import { OptionsBase as Ja } from "./Forms/OptionsBase.js";
|
|
|
179
179
|
import { RadioOptions as Wa } from "./Forms/RadioOptions.js";
|
|
180
180
|
import { SwitchOptions as Ya } from "./Forms/SwitchOptions.js";
|
|
181
181
|
import { CheckboxOptions as _a } from "./Forms/CheckboxOptions.js";
|
|
182
|
-
import {
|
|
182
|
+
import { SettingsSection as op } from "./Settings/SettingsSection.js";
|
|
183
183
|
import { SettingsItem as ep } from "./Settings/SettingsItem.js";
|
|
184
|
-
import {
|
|
185
|
-
import {
|
|
186
|
-
import {
|
|
187
|
-
import {
|
|
188
|
-
import {
|
|
189
|
-
import {
|
|
190
|
-
import {
|
|
191
|
-
import {
|
|
192
|
-
import {
|
|
193
|
-
import { D as Vp } from "../
|
|
194
|
-
import {
|
|
195
|
-
import {
|
|
184
|
+
import { SettingsList as mp } from "./Settings/SettingsList.js";
|
|
185
|
+
import { DashboardHeader as pp } from "./Dashboard/DashboardHeader.js";
|
|
186
|
+
import { DashboardCard as fp } from "./Dashboard/DashboardCard.js";
|
|
187
|
+
import { DashboardIcon as sp } from "./Dashboard/DashboardIcon.js";
|
|
188
|
+
import { ActivityLog as cp } from "./ActivityLog/ActivityLog.js";
|
|
189
|
+
import { ActivityLogItem as up } from "./ActivityLog/ActivityLogItem.js";
|
|
190
|
+
import { ArticleHeader as gp } from "./Article/ArticleHeader.js";
|
|
191
|
+
import { ArticleContact as dp } from "./Article/ArticleContact.js";
|
|
192
|
+
import { Article as Ip } from "./Article/Article.js";
|
|
193
|
+
import { A as bp, B as Ap, a as Mp, C as Tp, b as hp, c as kp, D as yp, H as Pp, L as Cp, d as Hp, e as Fp, P as vp, f as wp, g as Gp, h as Op, i as Rp, S as Ep, j as Qp, T as Up, u as Vp } from "../usePagination-D247OF6_.js";
|
|
194
|
+
import { D as zp } from "../index-D3Rt9ate.js";
|
|
195
|
+
import { P as qp } from "../Paragraph-Bm-eoPYv.js";
|
|
196
|
+
import { V as Kp } from "../index-CnWc2FNH.js";
|
|
196
197
|
export {
|
|
197
198
|
fa as AccessAreaList,
|
|
198
199
|
pa as AccessAreaListItem,
|
|
@@ -204,11 +205,11 @@ export {
|
|
|
204
205
|
u as AccountMenu,
|
|
205
206
|
$r as ActionFooter,
|
|
206
207
|
Zr as ActionHeader,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
208
|
+
cp as ActivityLog,
|
|
209
|
+
up as ActivityLogItem,
|
|
210
|
+
Ip as Article,
|
|
211
|
+
dp as ArticleContact,
|
|
212
|
+
gp as ArticleHeader,
|
|
212
213
|
m as AttachmentLink,
|
|
213
214
|
p as AttachmentList,
|
|
214
215
|
Mt as Autocomplete,
|
|
@@ -237,9 +238,9 @@ export {
|
|
|
237
238
|
jm as ContactSection,
|
|
238
239
|
j as ContextMenu,
|
|
239
240
|
pr as CurrentAccount,
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
241
|
+
fp as DashboardCard,
|
|
242
|
+
pp as DashboardHeader,
|
|
243
|
+
sp as DashboardIcon,
|
|
243
244
|
N as Dialog,
|
|
244
245
|
So as DialogActions,
|
|
245
246
|
Ao as DialogActivityLog,
|
|
@@ -272,28 +273,28 @@ export {
|
|
|
272
273
|
Wo as DrawerHeader,
|
|
273
274
|
er as DrawerOrDropdown,
|
|
274
275
|
jo as DropdownBase,
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
276
|
+
bp as DsAlert,
|
|
277
|
+
Ap as DsBadge,
|
|
278
|
+
Mp as DsButton,
|
|
279
|
+
Tp as DsCheckbox,
|
|
280
|
+
hp as DsChip,
|
|
281
|
+
kp as DsCombobox,
|
|
282
|
+
zp as DsDetails,
|
|
283
|
+
yp as DsDialog,
|
|
284
|
+
Pp as DsHeading,
|
|
285
|
+
Cp as DsLink,
|
|
286
|
+
Hp as DsListItem,
|
|
287
|
+
Fp as DsListUnordered,
|
|
288
|
+
vp as DsPagination,
|
|
289
|
+
qp as DsParagraph,
|
|
290
|
+
wp as DsPopover,
|
|
291
|
+
Gp as DsSearch,
|
|
292
|
+
Op as DsSkeleton,
|
|
293
|
+
Rp as DsSpinner,
|
|
294
|
+
Ep as DsSwitch,
|
|
295
|
+
Qp as DsTabs,
|
|
296
|
+
Up as DsTextfield,
|
|
297
|
+
Kp as DsValidationMessage,
|
|
297
298
|
M as EditableBookmark,
|
|
298
299
|
cr as EndUserLabel,
|
|
299
300
|
ua as Field,
|
|
@@ -381,8 +382,9 @@ export {
|
|
|
381
382
|
Eo as SeenByLog,
|
|
382
383
|
ha as Select,
|
|
383
384
|
Ua as SelectField,
|
|
384
|
-
op as Settings,
|
|
385
385
|
ep as SettingsItem,
|
|
386
|
+
mp as SettingsList,
|
|
387
|
+
op as SettingsSection,
|
|
386
388
|
e as SizeEnum,
|
|
387
389
|
Nt as Skeleton,
|
|
388
390
|
Gt as Snackbar,
|
|
@@ -418,7 +420,7 @@ export {
|
|
|
418
420
|
c as isAvatarGroupProps,
|
|
419
421
|
i as isAvatarProps,
|
|
420
422
|
Hr as isIconProps,
|
|
421
|
-
|
|
423
|
+
Vp as useDsPagination,
|
|
422
424
|
st as useRootContext,
|
|
423
425
|
jt as useSnackbar
|
|
424
426
|
};
|