@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.
Files changed (121) hide show
  1. package/dist/assets/Badge.css +1 -1
  2. package/dist/assets/SettingsItem.css +1 -1
  3. package/dist/assets/SnackbarItem.css +1 -1
  4. package/dist/assets/TimelineLink.css +1 -1
  5. package/dist/components/Badge/Badge.js +5 -5
  6. package/dist/components/Dashboard/DashboardHeader.js +11 -11
  7. package/dist/components/List/ListItemHeader.js +7 -7
  8. package/dist/components/Settings/SettingsItem.js +13 -13
  9. package/dist/components/Settings/SettingsList.js +30 -0
  10. package/dist/components/Settings/SettingsSection.js +20 -0
  11. package/dist/components/Settings/index.js +6 -4
  12. package/dist/components/Snackbar/SnackbarItem.js +36 -37
  13. package/dist/components/Snackbar/useSnackbar.js +6 -6
  14. package/dist/components/Timeline/TimelineLink.js +18 -19
  15. package/dist/components/index.js +47 -45
  16. package/dist/index.js +73 -71
  17. package/dist/types/lib/components/Account/AccountList.stories.d.ts +16 -6
  18. package/dist/types/lib/components/Account/AccountListItem.stories.d.ts +2 -2
  19. package/dist/types/lib/components/Account/AccountMenu.stories.d.ts +1 -1
  20. package/dist/types/lib/components/Account/AccountSettingsList.stories.d.ts +14 -0
  21. package/dist/types/lib/components/ActivityLog/ActivityLog.stories.d.ts +1 -0
  22. package/dist/types/lib/components/Article/ArticleContact.stories.d.ts +1 -1
  23. package/dist/types/lib/components/Article/ArticleHeader.stories.d.ts +1 -1
  24. package/dist/types/lib/components/Attachment/AttachmentLink.stories.d.ts +1 -1
  25. package/dist/types/lib/components/Attachment/AttachmentList.stories.d.ts +1 -1
  26. package/dist/types/lib/components/Avatar/AvatarGroup.stories.d.ts +1 -1
  27. package/dist/types/lib/components/Avatar/avatar.stories.d.ts +1 -1
  28. package/dist/types/lib/components/Badge/Badge.d.ts +1 -1
  29. package/dist/types/lib/components/Badge/Badge.stories.d.ts +2 -1
  30. package/dist/types/lib/components/Bookmarks/BookmarksListItem.stories.d.ts +1 -1
  31. package/dist/types/lib/components/Bookmarks/BookmarksSection.stories.d.ts +1 -1
  32. package/dist/types/lib/components/Button/Button.stories.d.ts +1 -1
  33. package/dist/types/lib/components/Button/ComboButton.stories.d.ts +1 -1
  34. package/dist/types/lib/components/Button/IconButton.stories.d.ts +1 -1
  35. package/dist/types/lib/components/Byline/Byline.stories.d.ts +1 -1
  36. package/dist/types/lib/components/ContextMenu/ContextMenu.stories.d.ts +1 -1
  37. package/dist/types/lib/components/Dashboard/DashboardHeader.stories.d.ts +1 -1
  38. package/dist/types/lib/components/Dialog/Dialog.stories.d.ts +1 -1
  39. package/dist/types/lib/components/Dialog/DialogActions.stories.d.ts +1 -1
  40. package/dist/types/lib/components/Dialog/DialogAttachments.stories.d.ts +1 -1
  41. package/dist/types/lib/components/Dialog/DialogBody.stories.d.ts +1 -1
  42. package/dist/types/lib/components/Dialog/DialogBylline.stories.d.ts +1 -1
  43. package/dist/types/lib/components/Dialog/DialogHeader.stories.d.ts +1 -1
  44. package/dist/types/lib/components/Dialog/DialogHistory.stories.d.ts +1 -1
  45. package/dist/types/lib/components/Dialog/DialogList.stories.d.ts +1 -1
  46. package/dist/types/lib/components/Dialog/DialogListItem.stories.d.ts +1 -1
  47. package/dist/types/lib/components/Dialog/DialogMetadata.stories.d.ts +1 -1
  48. package/dist/types/lib/components/Dialog/DialogSeenBy.stories.d.ts +1 -1
  49. package/dist/types/lib/components/Dialog/DialogStatus.stories.d.ts +1 -1
  50. package/dist/types/lib/components/Dialog/DialogTouchedBy.stories.d.ts +1 -1
  51. package/dist/types/lib/components/Dialog/SeenByLog.stories.d.ts +1 -1
  52. package/dist/types/lib/components/DsComponents/DsComponents.stories.d.ts +1 -1
  53. package/dist/types/lib/components/Footer/Footer.stories.d.ts +1 -1
  54. package/dist/types/lib/components/Forms/Checkbox.stories.d.ts +1 -1
  55. package/dist/types/lib/components/Forms/CheckboxOptions.stories.d.ts +1 -1
  56. package/dist/types/lib/components/Forms/Radio.stories.d.ts +1 -1
  57. package/dist/types/lib/components/Forms/RadioOptions.stories.d.ts +1 -1
  58. package/dist/types/lib/components/Forms/SearchField.stories.d.ts +1 -1
  59. package/dist/types/lib/components/Forms/SelectField.stories.d.ts +1 -1
  60. package/dist/types/lib/components/Forms/Switch.stories.d.ts +1 -1
  61. package/dist/types/lib/components/Forms/SwitchOptions.stories.d.ts +1 -1
  62. package/dist/types/lib/components/Forms/TextField.stories.d.ts +1 -1
  63. package/dist/types/lib/components/Forms/TextareaField.stories.d.ts +1 -1
  64. package/dist/types/lib/components/GlobalMenu/GlobalMenu.stories.d.ts +1 -1
  65. package/dist/types/lib/components/GlobalMenu/GlobalMenuButton.stories.d.ts +1 -1
  66. package/dist/types/lib/components/Header/HeaderButton.stories.d.ts +1 -1
  67. package/dist/types/lib/components/Header/LocaleSwitcher.stories.d.ts +1 -1
  68. package/dist/types/lib/components/Icon/CheckboxIcon.stories.d.ts +1 -1
  69. package/dist/types/lib/components/Icon/Icon.stories.d.ts +1 -1
  70. package/dist/types/lib/components/Icon/ProgressIcon.stories.d.ts +1 -1
  71. package/dist/types/lib/components/Icon/RadioIcon.stories.d.ts +1 -1
  72. package/dist/types/lib/components/LayoutAction/LayoutAction.stories.d.ts +1 -1
  73. package/dist/types/lib/components/List/ListItem.stories.d.ts +1 -1
  74. package/dist/types/lib/components/Menu/Menu.stories.d.ts +1 -1
  75. package/dist/types/lib/components/Menu/MenuOption.stories.d.ts +1 -1
  76. package/dist/types/lib/components/Menu/MenuSearch.stories.d.ts +1 -1
  77. package/dist/types/lib/components/Metadata/MetaItem.stories.d.ts +1 -1
  78. package/dist/types/lib/components/Metadata/MetaProgress.stories.d.ts +1 -1
  79. package/dist/types/lib/components/Metadata/MetaTimestamp.stories.d.ts +1 -1
  80. package/dist/types/lib/components/Metadata/Metadata.stories.d.ts +1 -1
  81. package/dist/types/lib/components/Page/Breadcrumbs.stories.d.ts +1 -1
  82. package/dist/types/lib/components/Page/ContactSection.stories.d.ts +1 -1
  83. package/dist/types/lib/components/Page/Flex.stories.d.ts +1 -1
  84. package/dist/types/lib/components/Page/Grid.stories.d.ts +1 -1
  85. package/dist/types/lib/components/Page/List.stories.d.ts +1 -1
  86. package/dist/types/lib/components/Page/PageMenu.stories.d.ts +1 -1
  87. package/dist/types/lib/components/Page/PageNav.stories.d.ts +1 -1
  88. package/dist/types/lib/components/Page/PageTabs.stories.d.ts +1 -1
  89. package/dist/types/lib/components/ResourceList/ResourceList.stories.d.ts +1 -1
  90. package/dist/types/lib/components/ResourceList/ResourceListItem.stories.d.ts +1 -1
  91. package/dist/types/lib/components/Searchbar/Autocomplete.stories.d.ts +1 -1
  92. package/dist/types/lib/components/Searchbar/Searchbar.stories.d.ts +1 -1
  93. package/dist/types/lib/components/Settings/Settings.stories.d.ts +0 -1
  94. package/dist/types/lib/components/Settings/SettingsItem.d.ts +1 -0
  95. package/dist/types/lib/components/Settings/SettingsItem.stories.d.ts +3 -2
  96. package/dist/types/lib/components/Settings/SettingsList.d.ts +9 -0
  97. package/dist/types/lib/components/Settings/SettingsSection.d.ts +9 -0
  98. package/dist/types/lib/components/Settings/index.d.ts +2 -1
  99. package/dist/types/lib/components/Snackbar/SnackbarItem.d.ts +0 -2
  100. package/dist/types/lib/components/Snackbar/SnackbarItem.stories.d.ts +1 -1
  101. package/dist/types/lib/components/Timeline/TimelineActivity.stories.d.ts +1 -1
  102. package/dist/types/lib/components/Timeline/TimelineFooter.stories.d.ts +1 -1
  103. package/dist/types/lib/components/Timeline/TimelineHeader.stories.d.ts +1 -1
  104. package/dist/types/lib/components/Timeline/TimelineSection.stories.d.ts +1 -1
  105. package/dist/types/lib/components/Toolbar/Toolbar.stories.d.ts +1 -1
  106. package/dist/types/lib/components/Toolbar/ToolbarAdd.stories.d.ts +1 -1
  107. package/dist/types/lib/components/Toolbar/ToolbarButton.stories.d.ts +1 -1
  108. package/dist/types/lib/components/Toolbar/ToolbarDate.stories.d.ts +1 -1
  109. package/dist/types/lib/components/Toolbar/ToolbarDaterange.stories.d.ts +1 -1
  110. package/dist/types/lib/components/Toolbar/ToolbarFilter.stories.d.ts +1 -1
  111. package/dist/types/lib/components/Toolbar/ToolbarMenu.stories.d.ts +1 -1
  112. package/dist/types/lib/components/Toolbar/ToolbarOptions.stories.d.ts +1 -1
  113. package/dist/types/lib/components/Toolbar/ToolbarSearch.stories.d.ts +1 -1
  114. package/dist/types/lib/components/Typography/Heading.stories.d.ts +1 -1
  115. package/dist/types/lib/components/Typography/Typography.stories.d.ts +1 -1
  116. package/dist/types/lib/stories/Profile/Settings.stories.d.ts +3 -4
  117. package/dist/types/lib/stories/Profile.stories.d.ts +7 -7
  118. package/package.json +12 -16
  119. package/dist/components/Settings/Settings.js +0 -20
  120. package/dist/types/lib/components/Settings/Settings.d.ts +0 -9
  121. package/dist/types/lib/stories/Profile/Accounts.stories.d.ts +0 -14
@@ -1 +1 @@
1
- ._badge_1w7dc_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_1w7dc_1[data-size=xs]{width:.75rem;height:.75rem;padding:0;border-radius:1em}._badge_1w7dc_1[data-size=xs] ._label_1w7dc_22{color:transparent;width:100%;height:100%}._badge_1w7dc_1[data-size=sm]{font-weight:500;font-size:.75rem;line-height:1;padding:.5em;min-width:2em;border-radius:2em}._badge_1w7dc_1[data-variant=base]{--dsc-badge-background: var(--ds-color-base-default);--dsc-badge-color: var(--ds-color-base-contrast-default)}._badge_1w7dc_1[data-variant=tinted]{--dsc-badge-background: var(--ds-color-surface-tinted);--dsc-badge-color: var(--ds-color-text-default)}
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
- ._item_jqpsx_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}._label_jqpsx_12{margin:0}
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
- ._item_1dbl6_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_1dbl6_1{position:relative;display:flex;align-items:center;text-decoration:none;color:inherit;padding:.625rem}._media_1dbl6_23{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem}._icon_1dbl6_32{font-size:1.5rem}._content_1dbl6_36{flex-grow:1;display:flex;align-items:center;margin-left:.625rem;margin-right:1.25rem}._action_1dbl6_44{flex-shrink:0;display:flex;align-items:center;justify-content:center}._item_1dbl6_1{background-color:var(--ds-color-base-default);color:var(--ds-color-base-contrast-default)}._item_1dbl6_1[data-color=neutral]{background-color:var(--ds-color-background-default);color:var(--ds-color-text-default)}
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
- ._button_15kp4_1{display:inline-flex;align-items:center;column-gap:.125em;align-items:flex-start}._icon_15kp4_8{flex-shrink:0;flex-grow:0;font-size:1.25rem;width:1.5rem;height:1.5rem}._label_15kp4_16{flex-shrink:1;font-size:14px;font-weight:400;line-height:1.125rem;padding:.1875rem 0;white-space:inherit}
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 = "_badge_1w7dc_1", m = "_label_1w7dc_22", e = {
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: d = "tinted", theme: l, size: c = "sm", className: n, children: o }) => /* @__PURE__ */ a(
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": d,
12
- "data-theme": l,
13
- "data-size": c,
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 d } from "../Avatar/Avatar.js";
4
+ import { Avatar as a } from "../Avatar/Avatar.js";
5
5
  import "../RootProvider/RootProvider.js";
6
- import { Typography as a } from "../Typography/Typography.js";
7
- import { Heading as c } from "../Typography/Heading.js";
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 m } from "../Page/Flex.js";
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: p, description: n, loading: e, children: s }) => /* @__PURE__ */ i(h, { as: "header", theme: "default", padding: "page", spacing: 6, shadow: "xs", bleed: !0, children: [
14
- /* @__PURE__ */ i(m, { direction: "row", align: "center", spacing: 3, children: [
15
- /* @__PURE__ */ r("div", { style: { position: "relative" }, children: /* @__PURE__ */ r(d, { style: { fontSize: "2.75rem" }, type: o, name: t, loading: e }) }),
16
- /* @__PURE__ */ i(m, { direction: "col", children: [
17
- /* @__PURE__ */ r(c, { size: "lg", loading: e, children: p || t }),
18
- /* @__PURE__ */ r(a, { variant: "subtle", size: "xs", loading: e, children: /* @__PURE__ */ r("p", { children: n || o }) })
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: s })
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 l, jsx as e, Fragment as E } from "react/jsx-runtime";
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 a = 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__ */ l(
47
- "header",
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__ */ l(E, { children: [
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
- a && /* @__PURE__ */ e("span", { className: o.linkIcon, children: /* @__PURE__ */ e(
85
+ l && /* @__PURE__ */ e("span", { className: o.linkIcon, children: /* @__PURE__ */ e(
86
86
  D,
87
87
  {
88
- svgElement: a,
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 j } from "../Menu/MenuItemLabel.js";
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 x = "_item_jqpsx_1", I = "_label_jqpsx_12", t = {
12
- item: x,
13
- label: I
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: s,
16
- size: a,
15
+ color: o,
16
+ size: s,
17
17
  expanded: e,
18
- icon: o,
18
+ icon: a,
19
19
  label: l,
20
20
  title: m,
21
21
  value: c,
22
- description: p,
23
- children: n,
22
+ description: n,
23
+ children: b,
24
24
  ...r
25
25
  }) => {
26
- const b = r.ariaLabel || j(m);
27
- return /* @__PURE__ */ L(_, { className: t.item, color: s, size: a, expanded: e, children: [
28
- /* @__PURE__ */ i(f, { ...r, ariaLabel: b, className: t.header, icon: o, children: /* @__PURE__ */ i(h, { className: t.label, title: m, value: c, description: p, children: l }) }),
29
- e && n
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 { Settings as o } from "./Settings.js";
2
- import { SettingsItem as m } from "./SettingsItem.js";
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
- o as Settings,
5
- m as SettingsItem
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 r } from "react/jsx-runtime";
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 _ } from "../Button/IconButton.js";
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 g } from "../../useId-BVFxCjkq.js";
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, o) {
14
- var i = {};
15
- for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (i[t] = 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
- o.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (i[t[n]] = e[t[n]]);
19
- return i;
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 b = u((e, o) => {
22
- var { title: i, titleId: t } = e, n = w(e, ["title", "titleId"]);
23
- let c = g();
24
- return c = i ? t || "title-" + c : void 0, a.createElement(
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: o, "aria-labelledby": c }, n),
27
- i ? a.createElement("title", { id: c }, i) : null,
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
- }), y = "_item_1dbl6_1", x = "_media_1dbl6_23", O = "_icon_1dbl6_32", I = "_content_1dbl6_36", j = "_action_1dbl6_44", l = {
31
- item: y,
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: j
34
+ action: b
36
35
  };
37
- var N = /* @__PURE__ */ ((e) => (e.accent = "accent", e.neutral = "neutral", e.alert = "alert", e.success = "success", e.warning = "warning", e.danger = "danger", e.info = "info", e))(N || {});
38
- const D = ({
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: o,
41
- className: i,
42
- color: t = "accent",
43
- icon: n = b,
44
- iconAltText: c = "Bell icon",
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: d,
47
- ...m
48
- }) => /* @__PURE__ */ f(e || "div", { className: p(l.item, i), "data-color": t, ...m, children: [
49
- /* @__PURE__ */ r("div", { className: l.media, children: /* @__PURE__ */ r(v, { svgElement: n, className: l.icon }) }),
50
- /* @__PURE__ */ r("div", { className: l.content, children: o }),
51
- s && /* @__PURE__ */ r("div", { className: l.action, children: /* @__PURE__ */ r(
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: "outline",
56
- onClick: d,
57
- className: l.dismiss,
54
+ variant: "solid",
55
+ onClick: m,
56
+ className: c.dismiss,
58
57
  iconAltText: "close"
59
58
  }
60
59
  ) })
61
60
  ] });
62
61
  export {
63
- N as SnackbarColorEnum,
64
- D as SnackbarItem
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 C, useContext as S } from "react";
4
- var T = /* @__PURE__ */ ((e) => (e[e.infinite = 0] = "infinite", e[e.short = 1e3] = "short", e[e.normal = 3e3] = "normal", e[e.long = 5e3] = "long", e))(T || {});
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 C(() => {
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 = S(a);
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
- T as SnackbarDuration,
44
+ S as SnackbarDuration,
45
45
  P as SnackbarProvider,
46
46
  k as useSnackbar
47
47
  };
@@ -1,5 +1,5 @@
1
- import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
- import { c as a } from "../../index-L8X2o7IH.js";
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 _ = "_button_15kp4_1", f = "_icon_15kp4_8", k = "_label_15kp4_16", o = {
10
+ import '../../assets/TimelineLink.css';const _ = "_button_87kyt_1", f = "_label_87kyt_10", t = {
11
11
  button: _,
12
- icon: f,
13
- label: k
14
- }, I = ({
15
- size: t = "custom",
12
+ label: f
13
+ }, L = ({
14
+ size: o = "xs",
16
15
  color: m = "company",
17
- icon: n,
18
- reverse: c,
19
- label: s,
20
- children: e,
21
- ...i
22
- }) => /* @__PURE__ */ l(
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: t,
28
- className: a(o.button, { [o.reverse]: c }),
29
- ...i,
26
+ size: o,
27
+ className: c(t.button, { [t.reverse]: e }),
28
+ ...a,
30
29
  children: [
31
- n && /* @__PURE__ */ r(u, { className: o.icon, size: t, icon: n }),
32
- /* @__PURE__ */ r(b, { className: o.label, size: t, children: e || s })
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
- I as TimelineLink
36
+ L as TimelineLink
38
37
  };
@@ -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 { Settings as op } from "./Settings/Settings.js";
182
+ import { SettingsSection as op } from "./Settings/SettingsSection.js";
183
183
  import { SettingsItem as ep } from "./Settings/SettingsItem.js";
184
- import { DashboardHeader as mp } from "./Dashboard/DashboardHeader.js";
185
- import { DashboardCard as pp } from "./Dashboard/DashboardCard.js";
186
- import { DashboardIcon as fp } from "./Dashboard/DashboardIcon.js";
187
- import { ActivityLog as sp } from "./ActivityLog/ActivityLog.js";
188
- import { ActivityLogItem as cp } from "./ActivityLog/ActivityLogItem.js";
189
- import { ArticleHeader as up } from "./Article/ArticleHeader.js";
190
- import { ArticleContact as gp } from "./Article/ArticleContact.js";
191
- import { Article as dp } from "./Article/Article.js";
192
- import { A as Ip, B as Sp, a as bp, C as Ap, b as Mp, c as Tp, D as hp, H as kp, L as yp, d as Pp, e as Cp, P as Hp, f as Fp, g as vp, h as wp, i as Gp, S as Op, j as Rp, T as Ep, u as Qp } from "../usePagination-D247OF6_.js";
193
- import { D as Vp } from "../index-D3Rt9ate.js";
194
- import { P as zp } from "../Paragraph-Bm-eoPYv.js";
195
- import { V as qp } from "../index-CnWc2FNH.js";
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
- sp as ActivityLog,
208
- cp as ActivityLogItem,
209
- dp as Article,
210
- gp as ArticleContact,
211
- up as ArticleHeader,
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
- pp as DashboardCard,
241
- mp as DashboardHeader,
242
- fp as DashboardIcon,
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
- Ip as DsAlert,
276
- Sp as DsBadge,
277
- bp as DsButton,
278
- Ap as DsCheckbox,
279
- Mp as DsChip,
280
- Tp as DsCombobox,
281
- Vp as DsDetails,
282
- hp as DsDialog,
283
- kp as DsHeading,
284
- yp as DsLink,
285
- Pp as DsListItem,
286
- Cp as DsListUnordered,
287
- Hp as DsPagination,
288
- zp as DsParagraph,
289
- Fp as DsPopover,
290
- vp as DsSearch,
291
- wp as DsSkeleton,
292
- Gp as DsSpinner,
293
- Op as DsSwitch,
294
- Rp as DsTabs,
295
- Ep as DsTextfield,
296
- qp as DsValidationMessage,
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
- Qp as useDsPagination,
423
+ Vp as useDsPagination,
422
424
  st as useRootContext,
423
425
  jt as useSnackbar
424
426
  };