@altinn/altinn-components 0.43.8 → 0.45.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.
Files changed (163) hide show
  1. package/dist/ArrowUndo-hge1gMu8.js +24 -0
  2. package/dist/Button-B0t0vz2h.js +23 -0
  3. package/dist/Globe-BcPkcH4E.js +24 -0
  4. package/dist/Heading-By5DKz2H.js +12 -0
  5. package/dist/HeartFill-CYSrJ_xK.js +43 -0
  6. package/dist/PersonCircle-DlX_3kRO.js +24 -0
  7. package/dist/Spinner-BDXfwXIh.js +26 -0
  8. package/dist/assets/AccountMenuButton.css +1 -0
  9. package/dist/assets/AccountSelector.css +1 -0
  10. package/dist/assets/GlobalHeader.css +1 -0
  11. package/dist/assets/GlobalHeaderBase.css +1 -0
  12. package/dist/assets/GlobalMenuButton2.css +1 -0
  13. package/dist/assets/HeaderGroup2.css +1 -0
  14. package/dist/assets/HeaderLogo2.css +1 -0
  15. package/dist/assets/LayoutBody.css +1 -1
  16. package/dist/assets/NotificationItemBase.css +1 -0
  17. package/dist/assets/NotificationItemIcon.css +1 -0
  18. package/dist/assets/globalSearch.css +1 -0
  19. package/dist/components/Account/AccountListItemControls.js +22 -58
  20. package/dist/components/Account/AccountMenu.js +40 -36
  21. package/dist/components/Account/AccountMenuButton.js +131 -0
  22. package/dist/components/Account/AccountNotificationSettings.js +1 -1
  23. package/dist/components/Avatar/Avatar.js +23 -22
  24. package/dist/components/Bookmarks/BookmarksListItem.js +9 -7
  25. package/dist/components/Bookmarks/BookmarksSection.js +23 -27
  26. package/dist/components/Bookmarks/EditableBookmark.js +78 -63
  27. package/dist/components/Dashboard/DashboardHeader.js +1 -1
  28. package/dist/components/Dropdown/DrawerBase.js +17 -15
  29. package/dist/components/Dropdown/DropdownBase.js +14 -12
  30. package/dist/components/Dropdown/FloatingDropdown.js +6 -6
  31. package/dist/components/DsComponents/index.js +26 -22
  32. package/dist/components/Forms/Checkbox.js +1 -1
  33. package/dist/components/Forms/CheckboxOptions.js +1 -1
  34. package/dist/components/Forms/FieldBase.js +1 -1
  35. package/dist/components/Forms/FieldsetBase.js +1 -1
  36. package/dist/components/Forms/Radio.js +1 -1
  37. package/dist/components/Forms/RadioOptions.js +1 -1
  38. package/dist/components/Forms/SearchField.js +1 -1
  39. package/dist/components/Forms/SelectField.js +1 -1
  40. package/dist/components/Forms/Switch.js +1 -1
  41. package/dist/components/Forms/SwitchOptions.js +1 -1
  42. package/dist/components/Forms/TextField.js +1 -1
  43. package/dist/components/Forms/TextareaField.js +1 -1
  44. package/dist/components/GlobalHeader/AccountSelector.js +138 -0
  45. package/dist/components/GlobalHeader/DigdirLogomark.js +109 -0
  46. package/dist/components/GlobalHeader/GlobalHeader.js +117 -0
  47. package/dist/components/GlobalHeader/GlobalHeaderBase.js +22 -0
  48. package/dist/components/GlobalHeader/GlobalSearch.js +57 -0
  49. package/dist/components/GlobalHeader/GlobalSearchButton.js +53 -0
  50. package/dist/components/GlobalHeader/HeaderGroup.js +8 -0
  51. package/dist/components/GlobalHeader/HeaderLogo.js +17 -0
  52. package/dist/components/GlobalHeader/index.js +6 -0
  53. package/dist/components/GlobalMenu/BackButton.js +6 -24
  54. package/dist/components/GlobalMenu/EndUserLabel.js +10 -29
  55. package/dist/components/GlobalMenu/GlobalMenu.js +38 -61
  56. package/dist/components/GlobalMenu/GlobalMenuButton.js +69 -47
  57. package/dist/components/GlobalMenu/LocaleButton.js +12 -0
  58. package/dist/components/GlobalMenu/LocaleSwitcher.js +34 -0
  59. package/dist/components/GlobalMenu/index.js +6 -12
  60. package/dist/components/GlobalMenu_old/BackButton.js +11 -0
  61. package/dist/components/GlobalMenu_old/EndUserLabel.js +13 -0
  62. package/dist/components/GlobalMenu_old/GlobalMenu.js +75 -0
  63. package/dist/components/GlobalMenu_old/GlobalMenuBase.js +10 -0
  64. package/dist/components/GlobalMenu_old/GlobalMenuButton.js +58 -0
  65. package/dist/components/GlobalMenu_old/LogoutButton.js +14 -0
  66. package/dist/components/GlobalMenu_old/index.js +14 -0
  67. package/dist/components/Header/Header.js +25 -25
  68. package/dist/components/Header/LocaleButton.js +13 -30
  69. package/dist/components/Layout/Layout.js +25 -23
  70. package/dist/components/Layout/LayoutBody.js +1 -1
  71. package/dist/components/List/ListItemSelect.js +1 -1
  72. package/dist/components/Menu/MenuItem.js +1 -1
  73. package/dist/components/Menu/MenuSearch.js +2 -2
  74. package/dist/components/Notifications/NotificationItem.js +17 -0
  75. package/dist/components/Notifications/NotificationItemBase.js +86 -0
  76. package/dist/components/Notifications/NotificationItemControls.js +33 -0
  77. package/dist/components/Notifications/NotificationItemIcon.js +33 -0
  78. package/dist/components/Notifications/index.js +10 -0
  79. package/dist/components/RootProvider/RootProvider.js +42 -30
  80. package/dist/components/Searchbar/Searchbar.js +3 -3
  81. package/dist/components/Settings/BookmarksSettingsItem.js +1 -1
  82. package/dist/components/Settings/SettingsItem.js +22 -11
  83. package/dist/components/Toolbar/ToolbarAccountMenu.js +5 -5
  84. package/dist/components/Toolbar/ToolbarAdd.js +5 -5
  85. package/dist/components/Toolbar/ToolbarFilter.js +5 -5
  86. package/dist/components/Toolbar/ToolbarOptions.js +1 -1
  87. package/dist/components/Toolbar/ToolbarSearch.js +1 -1
  88. package/dist/components/index.js +305 -293
  89. package/dist/functions/date/date.js +16 -0
  90. package/dist/functions/date/date.spec.js +15 -0
  91. package/dist/functions/date/index.js +4 -0
  92. package/dist/functions/index.js +4 -2
  93. package/dist/globalSearch.module-Ejp7X0dO.js +9 -0
  94. package/dist/hooks/index.js +4 -2
  95. package/dist/hooks/useAccountSelector.js +214 -0
  96. package/dist/index-B6sKSsN9.js +2951 -0
  97. package/dist/index.js +304 -288
  98. package/dist/types/languageCode.js +1 -0
  99. package/dist/types/lib/components/Account/AccountMenu.d.ts +1 -1
  100. package/dist/types/lib/components/Account/AccountMenuButton.d.ts +11 -0
  101. package/dist/types/lib/components/Account/AccountMenuButton.stories.d.ts +31 -0
  102. package/dist/types/lib/components/Avatar/Avatar.d.ts +3 -1
  103. package/dist/types/lib/components/Avatar/Avatar.stories.d.ts +16 -1
  104. package/dist/types/lib/components/Bookmarks/BookmarksListItem.d.ts +2 -1
  105. package/dist/types/lib/components/Bookmarks/BookmarksListItem.stories.d.ts +1 -1
  106. package/dist/types/lib/components/Bookmarks/BookmarksSection.d.ts +1 -3
  107. package/dist/types/lib/components/Bookmarks/BookmarksSection.stories.d.ts +1 -19
  108. package/dist/types/lib/components/Bookmarks/EditableBookmark.d.ts +3 -7
  109. package/dist/types/lib/components/Dialog/SeenByLogItem.stories.d.ts +1 -0
  110. package/dist/types/lib/components/Dropdown/DrawerBase.d.ts +2 -1
  111. package/dist/types/lib/components/GlobalHeader/AccountSector.stories.d.ts +29 -0
  112. package/dist/types/lib/components/GlobalHeader/AccountSelector.d.ts +11 -0
  113. package/dist/types/lib/components/GlobalHeader/DigdirLogomark.d.ts +5 -0
  114. package/dist/types/lib/components/GlobalHeader/GlobalHeader.d.ts +20 -0
  115. package/dist/types/lib/components/GlobalHeader/GlobalHeader.stories.d.ts +27 -0
  116. package/dist/types/lib/components/GlobalHeader/GlobalHeaderBase.d.ts +9 -0
  117. package/dist/types/lib/components/GlobalHeader/GlobalSearch.d.ts +4 -0
  118. package/dist/types/lib/components/GlobalHeader/GlobalSearchButton.d.ts +4 -0
  119. package/dist/types/lib/components/GlobalHeader/HeaderGroup.d.ts +6 -0
  120. package/dist/types/lib/components/GlobalHeader/HeaderLogo.d.ts +10 -0
  121. package/dist/types/lib/components/GlobalHeader/index.d.ts +2 -0
  122. package/dist/types/lib/components/GlobalMenu/GlobalMenu.d.ts +3 -5
  123. package/dist/types/lib/components/GlobalMenu/GlobalMenu.stories.d.ts +6 -8
  124. package/dist/types/lib/components/GlobalMenu/GlobalMenuButton.d.ts +2 -3
  125. package/dist/types/lib/components/GlobalMenu/GlobalMenuButton.stories.d.ts +5 -9
  126. package/dist/types/lib/components/GlobalMenu/LocaleButton.d.ts +3 -0
  127. package/dist/types/lib/components/GlobalMenu/LocaleSwitcher.d.ts +7 -0
  128. package/dist/types/lib/components/GlobalMenu/index.d.ts +1 -4
  129. package/dist/types/lib/components/GlobalMenu_old/BackButton.d.ts +7 -0
  130. package/dist/types/lib/components/{GlobalMenu → GlobalMenu_old}/CurrentAccount.d.ts +1 -1
  131. package/dist/types/lib/components/GlobalMenu_old/EndUserLabel.d.ts +5 -0
  132. package/dist/types/lib/components/GlobalMenu_old/GlobalMenu.d.ts +18 -0
  133. package/dist/types/lib/components/GlobalMenu_old/GlobalMenu.stories.d.ts +30 -0
  134. package/dist/types/lib/components/GlobalMenu_old/GlobalMenuBase.d.ts +15 -0
  135. package/dist/types/lib/components/GlobalMenu_old/GlobalMenuButton.d.ts +13 -0
  136. package/dist/types/lib/components/GlobalMenu_old/GlobalMenuButton.stories.d.ts +19 -0
  137. package/dist/types/lib/components/GlobalMenu_old/LogoutButton.d.ts +7 -0
  138. package/dist/types/lib/components/GlobalMenu_old/index.d.ts +6 -0
  139. package/dist/types/lib/components/Header/Header.d.ts +2 -2
  140. package/dist/types/lib/components/Header/Header.stories.d.ts +2 -2
  141. package/dist/types/lib/components/Layout/Layout.d.ts +4 -2
  142. package/dist/types/lib/components/Layout/Layout.stories.d.ts +29 -5
  143. package/dist/types/lib/components/Notifications/NotificationItem.d.ts +7 -0
  144. package/dist/types/lib/components/Notifications/NotificationItemBase.d.ts +15 -0
  145. package/dist/types/lib/components/Notifications/NotificationItemControls.d.ts +10 -0
  146. package/dist/types/lib/components/Notifications/NotificationItemIcon.d.ts +11 -0
  147. package/dist/types/lib/components/Notifications/Notifications.stories.d.ts +10 -0
  148. package/dist/types/lib/components/Notifications/index.d.ts +4 -0
  149. package/dist/types/lib/components/RootProvider/RootProvider.d.ts +9 -4
  150. package/dist/types/lib/components/Settings/SettingsItem.d.ts +1 -1
  151. package/dist/types/lib/components/index.d.ts +2 -1
  152. package/dist/types/lib/functions/date/date.d.ts +6 -0
  153. package/dist/types/lib/functions/date/date.spec.d.ts +1 -0
  154. package/dist/types/lib/functions/date/index.d.ts +1 -0
  155. package/dist/types/lib/functions/index.d.ts +1 -0
  156. package/dist/types/lib/hooks/index.d.ts +1 -0
  157. package/dist/types/lib/hooks/useAccountSelector.d.ts +62 -0
  158. package/dist/types/lib/types/index.d.ts +1 -0
  159. package/dist/types/lib/types/languageCode.d.ts +1 -0
  160. package/dist/usePagination-cq1YWZkE.js +889 -0
  161. package/package.json +5 -1
  162. package/dist/usePagination-B24SmI8E.js +0 -3835
  163. /package/dist/components/{GlobalMenu → GlobalMenu_old}/CurrentAccount.js +0 -0
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import { jsx as a, jsxs as S } from "react/jsx-runtime";
3
- import { c as j } from "../../index-L8X2o7IH.js";
4
- import { useState as y } from "react";
5
- import { Skeleton as A } from "../Skeleton/Skeleton.js";
6
- import { fromStringToColor as E } from "./color.js";
7
- import '../../assets/Avatar.css';const q = "_avatar_1en7r_1", z = "_shape_1en7r_20", B = "_label_1en7r_31", H = "_image_1en7r_41", L = "_deletedIcon_1en7r_47", r = {
8
- avatar: q,
9
- shape: z,
10
- label: B,
11
- image: H,
12
- deletedIcon: L
13
- }, G = (e) => typeof e == "object" && e !== null && "name" in e, J = ({
2
+ import { jsx as a, jsxs as j } from "react/jsx-runtime";
3
+ import { c as y } from "../../index-L8X2o7IH.js";
4
+ import { useState as A } from "react";
5
+ import { Skeleton as E } from "../Skeleton/Skeleton.js";
6
+ import { fromStringToColor as q } from "./color.js";
7
+ import '../../assets/Avatar.css';const z = "_avatar_1en7r_1", B = "_shape_1en7r_20", H = "_label_1en7r_31", L = "_image_1en7r_41", M = "_deletedIcon_1en7r_47", r = {
8
+ avatar: z,
9
+ shape: B,
10
+ label: H,
11
+ image: L,
12
+ deletedIcon: M
13
+ }, J = (e) => typeof e == "object" && e !== null && "name" in e, K = ({
14
14
  type: e = "person",
15
15
  isParent: n,
16
16
  isDeleted: m = !1,
@@ -24,12 +24,13 @@ import '../../assets/Avatar.css';const q = "_avatar_1en7r_1", z = "_shape_1en7r_
24
24
  customLabel: v,
25
25
  loading: c,
26
26
  className: b,
27
+ colorKey: C,
27
28
  style: i = {}
28
29
  }) => {
29
- const [C, I] = y(!1), w = u || e === "person" ? "circle" : "square", x = g || e === "person" ? "light" : "dark";
30
+ const [I, w] = A(!1), x = u || e === "person" ? "circle" : "square", N = g || e === "person" ? "light" : "dark";
30
31
  let o = _;
31
32
  e === "company" && typeof n == "boolean" && (o = n ? "solid" : "outline");
32
- const { backgroundColor: p, foregroundColor: d } = E(l, x), N = (l[0] ?? "").toUpperCase(), s = t && !C, k = !c && !s ? {
33
+ const { backgroundColor: p, foregroundColor: d } = q(C ?? l, N), k = (l[0] ?? "").toUpperCase(), s = t && !I, S = !c && !s ? {
33
34
  ...i,
34
35
  backgroundColor: o === "outline" ? d : p,
35
36
  color: o === "outline" ? p : d
@@ -37,12 +38,12 @@ import '../../assets/Avatar.css';const q = "_avatar_1en7r_1", z = "_shape_1en7r_
37
38
  return /* @__PURE__ */ a(
38
39
  "div",
39
40
  {
40
- className: j(r.avatar, b),
41
- style: k,
42
- "data-shape": w,
41
+ className: y(r.avatar, b),
42
+ style: S,
43
+ "data-shape": x,
43
44
  "data-size": h,
44
45
  "aria-hidden": !0,
45
- children: /* @__PURE__ */ S(A, { loading: c, className: r.shape, variant: "circle", children: [
46
+ children: /* @__PURE__ */ j(E, { loading: c, className: r.shape, variant: "circle", children: [
46
47
  /* @__PURE__ */ a("div", { className: r.shape, "data-variant": o, children: s && /* @__PURE__ */ a(
47
48
  "img",
48
49
  {
@@ -50,11 +51,11 @@ import '../../assets/Avatar.css';const q = "_avatar_1en7r_1", z = "_shape_1en7r_
50
51
  className: r.image,
51
52
  alt: f || t,
52
53
  onError: () => {
53
- I(!0);
54
+ w(!0);
54
55
  }
55
56
  }
56
57
  ) }),
57
- !s && /* @__PURE__ */ a("span", { className: r.label, children: v || N }),
58
+ !s && /* @__PURE__ */ a("span", { className: r.label, children: v || k }),
58
59
  m && /* @__PURE__ */ a(
59
60
  "svg",
60
61
  {
@@ -73,6 +74,6 @@ import '../../assets/Avatar.css';const q = "_avatar_1en7r_1", z = "_shape_1en7r_
73
74
  );
74
75
  };
75
76
  export {
76
- J as Avatar,
77
- G as isAvatarProps
77
+ K as Avatar,
78
+ J as isAvatarProps
78
79
  };
@@ -1,20 +1,22 @@
1
- import { jsx as o } from "react/jsx-runtime";
1
+ import { jsx as t } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import { QueryLabel as e } from "../Searchbar/QueryLabel.js";
5
+ import { QueryLabel as i } from "../Searchbar/QueryLabel.js";
6
6
  import { ListItem as s } from "../List/ListItem.js";
7
7
  import "../Snackbar/useSnackbar.js";
8
- const I = ({ loading: r, title: m, ariaLabel: t, params: p, ...i }) => /* @__PURE__ */ o(
8
+ const j = ({ loading: r, title: m, ariaLabel: e, params: o, icon: p, ...f }) => /* @__PURE__ */ t(
9
9
  s,
10
10
  {
11
- ...i,
11
+ ...f,
12
12
  loading: r,
13
+ icon: p,
13
14
  title: m,
14
- ariaLabel: t,
15
- label: !m && !r && /* @__PURE__ */ o(e, { params: p })
15
+ ariaLabel: e,
16
+ description: !r && o && /* @__PURE__ */ t(i, { params: o }),
17
+ label: !m && !r && !o && /* @__PURE__ */ t(i, { params: o })
16
18
  }
17
19
  );
18
20
  export {
19
- I as BookmarksListItem
21
+ j as BookmarksListItem
20
22
  };
@@ -1,40 +1,36 @@
1
- import { jsxs as c, jsx as i } from "react/jsx-runtime";
2
- import { createElement as f } from "react";
1
+ import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
+ import { createElement as a } from "react";
3
3
  import "../../index-L8X2o7IH.js";
4
- import { Typography as h } from "../Typography/Typography.js";
4
+ import { Typography as c } from "../Typography/Typography.js";
5
5
  import { Heading as k } from "../Typography/Heading.js";
6
6
  import { BookmarksListItem as l } from "./BookmarksListItem.js";
7
- import { EditableBookmark as x } from "./EditableBookmark.js";
7
+ import { EditableBookmark as f } from "./EditableBookmark.js";
8
8
  import "../RootProvider/RootProvider.js";
9
- import { List as p } from "../List/List.js";
9
+ import { List as t } from "../List/List.js";
10
10
  import "../Snackbar/useSnackbar.js";
11
- import { Section as z } from "../Page/Section.js";
12
- const U = ({
11
+ import { Section as h } from "../Page/Section.js";
12
+ const H = ({
13
13
  loading: o,
14
- title: e,
15
- description: s,
16
- items: t,
17
- untitled: d = "Untitled bookmark",
18
- titleField: a,
19
- expandedId: n,
20
- onToggle: m
21
- }) => /* @__PURE__ */ c(z, { padding: 6, theme: "surface-hover", spacing: 4, bleed: !0, children: [
22
- /* @__PURE__ */ i(k, { size: "md", children: e }),
23
- o ? /* @__PURE__ */ i(p, { children: /* @__PURE__ */ i(l, { title: e, loading: o, size: "sm" }) }) : t.length > 0 && /* @__PURE__ */ i(p, { spacing: "xs", children: t.map((r) => /* @__PURE__ */ f(
24
- x,
14
+ title: m,
15
+ description: p,
16
+ items: e,
17
+ untitled: s = "Untitled bookmark",
18
+ titleField: n
19
+ }) => /* @__PURE__ */ d(h, { padding: 6, spacing: 4, bleed: !0, children: [
20
+ /* @__PURE__ */ r(k, { size: "md", children: m }),
21
+ o ? /* @__PURE__ */ r(t, { children: /* @__PURE__ */ r(l, { title: m, loading: o, size: "sm" }) }) : e.length > 0 && /* @__PURE__ */ r(t, { spacing: "xs", children: e.map((i) => /* @__PURE__ */ a(
22
+ f,
25
23
  {
26
- ...r,
27
- key: r.id,
28
- loading: o || r.loading,
29
- onToggle: () => m == null ? void 0 : m(r.id),
30
- expanded: n === r.id,
31
- untitled: d,
32
- titleField: a,
24
+ ...i,
25
+ key: i.id,
26
+ loading: o || i.loading,
27
+ untitled: s,
28
+ titleField: n,
33
29
  size: "sm"
34
30
  }
35
31
  )) }),
36
- /* @__PURE__ */ i(h, { size: "xs", children: s })
32
+ /* @__PURE__ */ r(c, { size: "xs", children: p })
37
33
  ] });
38
34
  export {
39
- U as BookmarksSection
35
+ H as BookmarksSection
40
36
  };
@@ -1,74 +1,89 @@
1
- import { jsx as o, jsxs as f } from "react/jsx-runtime";
2
- import { useState as b } from "react";
1
+ import { jsxs as s, Fragment as b, jsx as o } from "react/jsx-runtime";
2
+ import { useState as g } from "react";
3
+ import { Icon as d } from "../Icon/Icon.js";
3
4
  import "../../index-L8X2o7IH.js";
4
- import { Button as p } from "../Button/Button.js";
5
- import { IconButton as h } from "../Button/IconButton.js";
6
- import { BookmarksListItem as y } from "./BookmarksListItem.js";
5
+ import { Button as u } from "../Button/Button.js";
6
+ import { IconButton as C } from "../Button/IconButton.js";
7
+ import { BookmarksListItem as L } from "./BookmarksListItem.js";
7
8
  import "../RootProvider/RootProvider.js";
8
- import { QueryLabel as I } from "../Searchbar/QueryLabel.js";
9
+ import { QueryLabel as j } from "../Searchbar/QueryLabel.js";
10
+ import { TextField as F } from "../Forms/TextField.js";
9
11
  import "../Snackbar/useSnackbar.js";
10
- import { Flex as L } from "../Page/Flex.js";
11
- import { Section as d } from "../Page/Section.js";
12
- import { TextField as j } from "../Forms/TextField.js";
13
- import { S as v } from "../../XMark-tKk6aExO.js";
14
- import { S as T } from "../../Pencil-BVHLEoQy.js";
15
- const H = ({
16
- id: g,
17
- title: r,
12
+ import { Flex as x } from "../Page/Flex.js";
13
+ import { SettingsModal as M } from "../Settings/SettingsModal.js";
14
+ import { S as O } from "../../Pencil-BVHLEoQy.js";
15
+ import { S as h } from "../../MagnifyingGlass-bwVhw07z.js";
16
+ const U = ({
17
+ id: k,
18
+ title: t,
18
19
  untitled: e,
19
- params: n,
20
- expanded: i,
21
- onToggle: k,
22
- titleField: s,
23
- saveButton: t,
24
- removeButton: m,
25
- inputValue: a,
26
- onChange: l,
27
- expandIconAltText: S,
28
- ...u
20
+ params: m,
21
+ titleField: a,
22
+ saveButton: i,
23
+ removeButton: n,
24
+ inputValue: l,
25
+ onChange: c,
26
+ editIconAltText: S = "Edit",
27
+ ...v
29
28
  }) => {
30
- const [x, z] = b("");
31
- return /* @__PURE__ */ o(
32
- y,
33
- {
34
- ...u,
35
- expanded: i,
36
- id: g,
37
- title: i ? r || e : r,
38
- ariaLabel: r || e,
39
- params: n,
40
- controls: /* @__PURE__ */ o(
41
- h,
42
- {
43
- variant: "outline",
44
- size: "xs",
45
- icon: i ? v : T,
46
- onClick: k,
47
- iconAltText: S
48
- }
49
- ),
50
- children: /* @__PURE__ */ f(d, { padding: 4, spacing: 4, children: [
51
- /* @__PURE__ */ o(I, { params: n }),
52
- s && /* @__PURE__ */ o(
53
- j,
29
+ const [I, y] = g(""), [p, f] = g(!1), z = (r) => {
30
+ r.preventDefault(), r.stopPropagation(), f(!0);
31
+ }, E = () => {
32
+ f(!1);
33
+ };
34
+ return /* @__PURE__ */ s(b, { children: [
35
+ /* @__PURE__ */ o(
36
+ L,
37
+ {
38
+ ...v,
39
+ id: k,
40
+ title: t || e,
41
+ ariaLabel: t || e,
42
+ params: m,
43
+ icon: /* @__PURE__ */ o(d, { svgElement: h }),
44
+ linkIcon: !0,
45
+ controls: /* @__PURE__ */ o(
46
+ C,
54
47
  {
55
- ...s,
56
- size: "sm",
57
- name: "title",
58
- value: typeof a == "string" ? a : x,
59
- onChange: (c) => {
60
- typeof l == "function" ? l(c) : z(c.target.value);
61
- }
48
+ variant: "outline",
49
+ size: "xs",
50
+ icon: O,
51
+ onClick: z,
52
+ iconAltText: S
62
53
  }
63
- ),
64
- (t || m) && /* @__PURE__ */ f(L, { as: "footer", direction: "row", spacing: 2, children: [
65
- t && /* @__PURE__ */ o(p, { ...t, size: "sm" }),
66
- m && /* @__PURE__ */ o(p, { ...m, variant: "outline", size: "sm" })
54
+ )
55
+ }
56
+ ),
57
+ p && /* @__PURE__ */ o(
58
+ M,
59
+ {
60
+ icon: /* @__PURE__ */ o(d, { svgElement: h }),
61
+ title: t || e,
62
+ open: p,
63
+ onClose: E,
64
+ children: /* @__PURE__ */ s(x, { direction: "col", spacing: 4, children: [
65
+ /* @__PURE__ */ o(j, { params: m }),
66
+ a && /* @__PURE__ */ o(
67
+ F,
68
+ {
69
+ ...a,
70
+ size: "sm",
71
+ name: "title",
72
+ value: typeof l == "string" ? l : I,
73
+ onChange: (r) => {
74
+ typeof c == "function" ? c(r) : y(r.target.value);
75
+ }
76
+ }
77
+ ),
78
+ (i || n) && /* @__PURE__ */ s(x, { as: "footer", direction: "row", spacing: 2, children: [
79
+ i && /* @__PURE__ */ o(u, { ...i, size: "sm" }),
80
+ n && /* @__PURE__ */ o(u, { ...n, variant: "outline", size: "sm" })
81
+ ] })
67
82
  ] })
68
- ] })
69
- }
70
- );
83
+ }
84
+ )
85
+ ] });
71
86
  };
72
87
  export {
73
- H as EditableBookmark
88
+ U as EditableBookmark
74
89
  };
@@ -9,7 +9,7 @@ import "../Snackbar/useSnackbar.js";
9
9
  import { Flex as t } from "../Page/Flex.js";
10
10
  import { Section as d } from "../Page/Section.js";
11
11
  import { DashboardIcon as h } from "./DashboardIcon.js";
12
- const H = ({ icon: i, title: m, description: p, loading: r, children: s }) => /* @__PURE__ */ o(d, { as: "header", theme: "default", padding: "page", spacing: 6, shadow: "xs", bleed: !0, children: [
12
+ const H = ({ icon: i, title: m, description: p, loading: r, children: s }) => /* @__PURE__ */ o(d, { as: "header", theme: "default", padding: "page", spacing: 6, shadow: "xs", children: [
13
13
  /* @__PURE__ */ o(t, { direction: "row", align: "center", spacing: 3, children: [
14
14
  i && /* @__PURE__ */ e(h, { loading: r, icon: i }),
15
15
  /* @__PURE__ */ o(t, { direction: "col", spacing: 0, children: [
@@ -1,24 +1,26 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { c as d } from "../../index-L8X2o7IH.js";
3
- import '../../assets/DrawerBase.css';const s = "_drawer_tvpob_1", c = {
4
- drawer: s
5
- }, i = ({
1
+ import { jsx as d } from "react/jsx-runtime";
2
+ import { c as s } from "../../index-L8X2o7IH.js";
3
+ import '../../assets/DrawerBase.css';const c = "_drawer_tvpob_1", m = {
4
+ drawer: c
5
+ }, w = ({
6
6
  placement: a = "inline",
7
- open: e = !1,
8
- className: r,
9
- children: t,
10
- as: o = "div"
11
- }) => /* @__PURE__ */ n(
12
- o,
7
+ open: t = !1,
8
+ className: e,
9
+ children: o,
10
+ as: r = "div",
11
+ dataLayout: n = "mobile"
12
+ }) => /* @__PURE__ */ d(
13
+ r,
13
14
  {
14
- className: d(c.drawer, r),
15
+ className: s(m.drawer, e),
15
16
  "data-placement": a,
16
17
  "data-variant": "default",
17
18
  "data-color": "company",
18
- "data-expanded": e,
19
- children: t
19
+ "data-expanded": t,
20
+ "data-layout": n,
21
+ children: o
20
22
  }
21
23
  );
22
24
  export {
23
- i as DrawerBase
25
+ w as DrawerBase
24
26
  };
@@ -1,37 +1,39 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { c as l } from "../../index-L8X2o7IH.js";
3
- import { useRef as f } from "react";
4
- import { useClickOutside as i } from "../../hooks/useClickOutside.js";
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { c } from "../../index-L8X2o7IH.js";
3
+ import { useRef as l } from "react";
4
+ import { useClickOutside as f } from "../../hooks/useClickOutside.js";
5
+ import "../RootProvider/RootProvider.js";
6
+ import "../Snackbar/useSnackbar.js";
5
7
  import '../../assets/DropdownBase.css';const u = "_dropdown_1tyzv_1", w = {
6
8
  dropdown: u
7
- }, v = ({
9
+ }, g = ({
8
10
  layout: t,
9
11
  size: a = "auto",
10
12
  placement: d = "left",
11
13
  padding: e = !0,
12
- open: n = !1,
13
- className: r,
14
+ open: r = !1,
15
+ className: n,
14
16
  children: s,
15
17
  onClose: p,
16
18
  as: m = "div"
17
19
  }) => {
18
- const o = f(null);
19
- return i(o, p), /* @__PURE__ */ c(
20
+ const o = l(null);
21
+ return f(o, p), /* @__PURE__ */ i(
20
22
  m,
21
23
  {
22
24
  ref: o,
23
- className: l(w.dropdown, r),
25
+ className: c(w.dropdown, n),
24
26
  "data-layout": t,
25
27
  "data-theme": "default",
26
28
  "data-shadow": "md",
27
29
  "data-size": a,
28
30
  "data-placement": d,
29
31
  "data-padding": e,
30
- "data-expanded": n,
32
+ "data-expanded": r,
31
33
  children: s
32
34
  }
33
35
  );
34
36
  };
35
37
  export {
36
- v as DropdownBase
38
+ g as DropdownBase
37
39
  };
@@ -3,10 +3,10 @@ import { jsxs as m, jsx as o } from "react/jsx-runtime";
3
3
  import { useState as k, useRef as N } from "react";
4
4
  import { useClickOutside as T } from "../../hooks/useClickOutside.js";
5
5
  import { useEscapeKey as g } from "../../hooks/useEscapeKey.js";
6
- import { ButtonBase as x } from "../Button/ButtonBase.js";
6
+ import { Icon as x } from "../Icon/Icon.js";
7
7
  import "../../index-L8X2o7IH.js";
8
- import { ButtonIcon as y } from "../Button/ButtonIcon.js";
9
- import { Icon as v } from "../Icon/Icon.js";
8
+ import { ButtonBase as y } from "../Button/ButtonBase.js";
9
+ import { ButtonIcon as v } from "../Button/ButtonIcon.js";
10
10
  import "../RootProvider/RootProvider.js";
11
11
  import "../Snackbar/useSnackbar.js";
12
12
  import '../../assets/FloatingDropdown.css';const B = "_container_1t2id_1", j = "_button_1t2id_13", z = "_dropdown_1t2id_21", E = "_dropdownItem_1t2id_45", O = "_itemTitle_1t2id_71", n = {
@@ -37,11 +37,11 @@ import '../../assets/FloatingDropdown.css';const B = "_container_1t2id_1", j = "
37
37
  const a = e && s ? s : _;
38
38
  return /* @__PURE__ */ m("div", { className: n.container, ref: l, children: [
39
39
  e && /* @__PURE__ */ o("div", { className: n.dropdown, "data-color": d, children: h.map((t, r) => /* @__PURE__ */ m("button", { className: n.dropdownItem, onClick: C(t.onClick), type: "button", children: [
40
- /* @__PURE__ */ o(v, { svgElement: t.icon, size: "md", color: "inherit" }),
40
+ /* @__PURE__ */ o(x, { svgElement: t.icon, size: "md", color: "inherit" }),
41
41
  /* @__PURE__ */ o("span", { className: n.itemTitle, children: t.title })
42
42
  ] }, r)) }),
43
43
  /* @__PURE__ */ o(
44
- x,
44
+ y,
45
45
  {
46
46
  className: n.button,
47
47
  variant: p,
@@ -51,7 +51,7 @@ import '../../assets/FloatingDropdown.css';const B = "_container_1t2id_1", j = "
51
51
  "data-testid": I,
52
52
  "aria-label": w,
53
53
  "aria-expanded": e,
54
- children: a && /* @__PURE__ */ o(y, { icon: a, size: f })
54
+ children: a && /* @__PURE__ */ o(v, { icon: a, size: f })
55
55
  }
56
56
  )
57
57
  ] });
@@ -1,30 +1,34 @@
1
- import { A as D } from "../../Alert-BzifOfXl.js";
2
- import { B as o, a as r, C as t, b as i, c as n, D as p, H as g, L as x, d, e as f, P as m, f as h, g as l, h as P, i as b, S, j as c, T as C, u as L } from "../../usePagination-B24SmI8E.js";
3
- import { D as u } from "../../index-D3Rt9ate.js";
1
+ import { A as o } from "../../Alert-BzifOfXl.js";
2
+ import { B as D, C as r, a as t, b as i, D as p, L as n, c as x, d as f, P as m, e as g, f as d, S, g as l, T as P, u as b } from "../../usePagination-cq1YWZkE.js";
3
+ import { B as c } from "../../Button-B0t0vz2h.js";
4
+ import { D as C } from "../../index-D3Rt9ate.js";
5
+ import { H as k } from "../../Heading-By5DKz2H.js";
4
6
  import { P as T } from "../../Paragraph-Bm-eoPYv.js";
5
- import { V as H } from "../../index-CnWc2FNH.js";
7
+ import { S as H } from "../../index-B6sKSsN9.js";
8
+ import { S as v } from "../../Spinner-BDXfwXIh.js";
9
+ import { V as I } from "../../index-CnWc2FNH.js";
6
10
  export {
7
- D as DsAlert,
8
- o as DsBadge,
9
- r as DsButton,
10
- t as DsCheckbox,
11
- i as DsChip,
12
- n as DsCombobox,
13
- u as DsDetails,
11
+ o as DsAlert,
12
+ D as DsBadge,
13
+ c as DsButton,
14
+ r as DsCheckbox,
15
+ t as DsChip,
16
+ i as DsCombobox,
17
+ C as DsDetails,
14
18
  p as DsDialog,
15
- g as DsHeading,
16
- x as DsLink,
17
- d as DsListItem,
19
+ k as DsHeading,
20
+ n as DsLink,
21
+ x as DsListItem,
18
22
  f as DsListUnordered,
19
23
  m as DsPagination,
20
24
  T as DsParagraph,
21
- h as DsPopover,
22
- l as DsSearch,
23
- P as DsSkeleton,
24
- b as DsSpinner,
25
+ g as DsPopover,
26
+ H as DsSearch,
27
+ d as DsSkeleton,
28
+ v as DsSpinner,
25
29
  S as DsSwitch,
26
- c as DsTabs,
27
- C as DsTextfield,
28
- H as DsValidationMessage,
29
- L as useDsPagination
30
+ l as DsTabs,
31
+ P as DsTextfield,
32
+ I as DsValidationMessage,
33
+ b as useDsPagination
30
34
  };
@@ -2,10 +2,10 @@ import { jsxs as p, jsx as o } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import "../Snackbar/useSnackbar.js";
6
5
  import { Field as e } from "./Field.js";
7
6
  import { Label as c } from "./Label.js";
8
7
  import { Input as n } from "./Input.js";
8
+ import "../Snackbar/useSnackbar.js";
9
9
  const l = ({ size: t, color: m, label: r, ...i }) => /* @__PURE__ */ p(e, { size: t, color: m, children: [
10
10
  /* @__PURE__ */ o(n, { ...i, type: "checkbox" }),
11
11
  !!r && /* @__PURE__ */ o(c, { children: r })
@@ -2,9 +2,9 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import "../Snackbar/useSnackbar.js";
6
5
  import { Checkbox as i } from "./Checkbox.js";
7
6
  import { OptionsBase as e } from "./OptionsBase.js";
7
+ import "../Snackbar/useSnackbar.js";
8
8
  const b = ({ options: r = [], ...t }) => /* @__PURE__ */ o(e, { ...t, children: r.map((m, p) => /* @__PURE__ */ o(i, { ...m }, p)) });
9
9
  export {
10
10
  b as CheckboxOptions
@@ -3,9 +3,9 @@ import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import { Typography as e } from "../Typography/Typography.js";
5
5
  import "../RootProvider/RootProvider.js";
6
- import "../Snackbar/useSnackbar.js";
7
6
  import { Field as n } from "./Field.js";
8
7
  import { Label as c } from "./Label.js";
8
+ import "../Snackbar/useSnackbar.js";
9
9
  const g = ({ size: r, color: p, label: o, helperText: i, children: t, ...s }) => /* @__PURE__ */ d(n, { size: r, color: p, ...s, children: [
10
10
  o && /* @__PURE__ */ m(c, { size: r, children: o }),
11
11
  t,
@@ -2,9 +2,9 @@ import { jsxs as i, jsx as m } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import "../Snackbar/useSnackbar.js";
6
5
  import { Fieldset as e } from "./Fieldset.js";
7
6
  import { Legend as p } from "./Legend.js";
7
+ import "../Snackbar/useSnackbar.js";
8
8
  const h = ({ legend: r, children: o, ...t }) => /* @__PURE__ */ i(e, { ...t, children: [
9
9
  !!r && /* @__PURE__ */ m(p, { children: r }),
10
10
  o
@@ -2,10 +2,10 @@ import { jsxs as p, jsx as o } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import "../Snackbar/useSnackbar.js";
6
5
  import { Field as e } from "./Field.js";
7
6
  import { Label as d } from "./Label.js";
8
7
  import { Input as n } from "./Input.js";
8
+ import "../Snackbar/useSnackbar.js";
9
9
  const u = ({ size: i, color: t, label: r, ...m }) => /* @__PURE__ */ p(e, { size: i, color: t, children: [
10
10
  /* @__PURE__ */ o(n, { ...m, type: "radio" }),
11
11
  !!r && /* @__PURE__ */ o(d, { children: r })
@@ -2,9 +2,9 @@ import { jsx as m } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import "../Snackbar/useSnackbar.js";
6
5
  import { Radio as o } from "./Radio.js";
7
6
  import { OptionsBase as p } from "./OptionsBase.js";
7
+ import "../Snackbar/useSnackbar.js";
8
8
  const R = ({ name: i, options: t = [], ...a }) => /* @__PURE__ */ m(p, { ...a, children: t.map((r, e) => /* @__PURE__ */ m(o, { name: (r == null ? void 0 : r.name) || i, ...r }, e)) });
9
9
  export {
10
10
  R as RadioOptions
@@ -4,9 +4,9 @@ import "../../index-L8X2o7IH.js";
4
4
  import "react";
5
5
  import { IconButton as f } from "../Button/IconButton.js";
6
6
  import "../RootProvider/RootProvider.js";
7
- import "../Snackbar/useSnackbar.js";
8
7
  import { Input as _ } from "./Input.js";
9
8
  import { FieldBase as d } from "./FieldBase.js";
9
+ import "../Snackbar/useSnackbar.js";
10
10
  import { S as u } from "../../MagnifyingGlass-bwVhw07z.js";
11
11
  import { S as k } from "../../XMark-tKk6aExO.js";
12
12
  import '../../assets/SearchField.css';const g = "_field_zk1f7_1", h = "_icon_zk1f7_5", z = "_input_zk1f7_14", S = "_clear_zk1f7_24", o = {
@@ -2,9 +2,9 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import "../Snackbar/useSnackbar.js";
6
5
  import { Select as i } from "./Select.js";
7
6
  import { FieldBase as p } from "./FieldBase.js";
7
+ import "../Snackbar/useSnackbar.js";
8
8
  const F = ({ size: r = "md", label: t, children: m, ...e }) => /* @__PURE__ */ o(p, { label: t, size: r, children: /* @__PURE__ */ o(i, { ...e, size: r, children: m }) });
9
9
  export {
10
10
  F as SelectField