@altinn/altinn-components 0.52.7 → 0.53.1

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 (243) hide show
  1. package/dist/assets/AccountSelector.css +1 -1
  2. package/dist/assets/Button.css +1 -1
  3. package/dist/assets/ButtonGroup.css +1 -1
  4. package/dist/assets/ButtonGroupDivider.css +1 -1
  5. package/dist/assets/ButtonLabel.css +1 -1
  6. package/dist/assets/DatepickerTable.css +1 -1
  7. package/dist/assets/IconButton.css +1 -0
  8. package/dist/assets/LocaleButton.css +1 -1
  9. package/dist/assets/ModalBody.css +1 -1
  10. package/dist/assets/ModalHeader.css +1 -1
  11. package/dist/assets/SearchField.css +1 -1
  12. package/dist/button-BB5sYVKY.js +38 -0
  13. package/dist/components/AccessAreaListItem/AccessAreaListItem.js +7 -6
  14. package/dist/components/AccessPackageListItem/AccessPackageListItem.js +3 -2
  15. package/dist/components/Account/AccountList.js +3 -2
  16. package/dist/components/Account/AccountListItem.js +6 -5
  17. package/dist/components/Account/AccountListItemControls.js +16 -16
  18. package/dist/components/Account/AccountListItemDetails.js +2 -2
  19. package/dist/components/Account/AccountListVirtual.js +9 -8
  20. package/dist/components/Account/AccountMenu.js +7 -6
  21. package/dist/components/Account/AccountMenuButton.js +30 -30
  22. package/dist/components/Account/AccountNotificationSettings.js +9 -8
  23. package/dist/components/Account/AccountOrganization.js +7 -6
  24. package/dist/components/ActivityLog/ActivityLogItem.js +3 -2
  25. package/dist/components/ActivityLog/ActivityLogSegment.js +3 -2
  26. package/dist/components/Article/Article.js +3 -2
  27. package/dist/components/Article/ArticleContact.js +3 -2
  28. package/dist/components/Article/ArticleHeader.js +3 -2
  29. package/dist/components/Attachment/AttachmentLink.js +24 -23
  30. package/dist/components/Banner/Banner.js +10 -19
  31. package/dist/components/Button/Button.js +22 -58
  32. package/dist/components/Button/ButtonGroup.js +11 -21
  33. package/dist/components/Button/ButtonGroupDivider.js +5 -4
  34. package/dist/components/Button/ButtonIcon.js +5 -4
  35. package/dist/components/Button/ButtonLabel.js +2 -2
  36. package/dist/components/Button/ComboButton.js +11 -68
  37. package/dist/components/Button/FloatingActionButton.js +13 -18
  38. package/dist/components/Button/IconButton.js +6 -33
  39. package/dist/components/Button/index.js +16 -16
  40. package/dist/components/Byline/Byline.js +7 -6
  41. package/dist/components/ContextMenu/ContextMenu.js +35 -35
  42. package/dist/components/Dashboard/DashboardCard.js +3 -2
  43. package/dist/components/Dashboard/DashboardHeader.js +10 -9
  44. package/dist/components/Dashboard/DashboardIcon.js +3 -2
  45. package/dist/components/Datepicker/DatepickerHeader.js +22 -22
  46. package/dist/components/Datepicker/DatepickerTable.js +14 -14
  47. package/dist/components/Dialog/Dialog.js +3 -2
  48. package/dist/components/Dialog/DialogActions.js +36 -44
  49. package/dist/components/Dialog/DialogActivityLog.js +3 -2
  50. package/dist/components/Dialog/DialogAttachments.js +3 -2
  51. package/dist/components/Dialog/DialogBody.js +3 -2
  52. package/dist/components/Dialog/DialogByline.js +3 -2
  53. package/dist/components/Dialog/DialogContact.js +3 -2
  54. package/dist/components/Dialog/DialogHeader.js +7 -6
  55. package/dist/components/Dialog/DialogHistoryItem.js +3 -2
  56. package/dist/components/Dialog/DialogHistorySegment.js +3 -2
  57. package/dist/components/Dialog/DialogLayout.js +3 -2
  58. package/dist/components/Dialog/DialogList.js +5 -4
  59. package/dist/components/Dialog/DialogListGroup.js +3 -2
  60. package/dist/components/Dialog/DialogListItem.js +3 -2
  61. package/dist/components/Dialog/DialogMetadata.js +3 -2
  62. package/dist/components/Dialog/DialogSection.js +3 -2
  63. package/dist/components/Dialog/DialogSeenBy.js +3 -2
  64. package/dist/components/Dialog/DialogSelect.js +5 -4
  65. package/dist/components/Dialog/DialogStatus.js +3 -2
  66. package/dist/components/Dialog/DialogTabs.js +3 -2
  67. package/dist/components/Dialog/SeenByLog.js +9 -8
  68. package/dist/components/Dialog/SeenByLogButton.js +3 -2
  69. package/dist/components/Dialog/SeenByLogItem.js +11 -10
  70. package/dist/components/Dropdown/DrawerButton.js +3 -3
  71. package/dist/components/Dropdown/DrawerHeader.js +8 -18
  72. package/dist/components/Dropdown/DrawerOrDropdown.js +7 -6
  73. package/dist/components/Dropdown/DropdownBase.js +7 -6
  74. package/dist/components/Dropdown/FloatingDropdown.js +36 -36
  75. package/dist/components/DsComponents/index.js +21 -22
  76. package/dist/components/Forms/Checkbox.js +3 -2
  77. package/dist/components/Forms/CheckboxOptions.js +3 -2
  78. package/dist/components/Forms/FieldBase.js +3 -2
  79. package/dist/components/Forms/FieldsetBase.js +3 -2
  80. package/dist/components/Forms/Radio.js +3 -2
  81. package/dist/components/Forms/RadioOptions.js +3 -2
  82. package/dist/components/Forms/SearchField.js +22 -23
  83. package/dist/components/Forms/SelectField.js +4 -3
  84. package/dist/components/Forms/Switch.js +3 -2
  85. package/dist/components/Forms/SwitchOptions.js +3 -2
  86. package/dist/components/Forms/TextField.js +3 -2
  87. package/dist/components/Forms/TextareaField.js +3 -2
  88. package/dist/components/GlobalHeader/AccountSelector.js +114 -94
  89. package/dist/components/GlobalHeader/GlobalHeader.js +3 -2
  90. package/dist/components/GlobalHeader/GlobalHeaderBase.js +6 -5
  91. package/dist/components/GlobalHeader/GlobalSearch.js +7 -6
  92. package/dist/components/GlobalHeader/GlobalSearchButton.js +8 -7
  93. package/dist/components/GlobalHeader/HeaderLogo.js +13 -16
  94. package/dist/components/GlobalMenu/BackButton.js +3 -2
  95. package/dist/components/GlobalMenu/GlobalMenu.js +9 -8
  96. package/dist/components/GlobalMenu/GlobalMenuButton.js +2 -2
  97. package/dist/components/GlobalMenu/LocaleButton.js +3 -2
  98. package/dist/components/GlobalMenu/LocaleSwitcher.js +3 -2
  99. package/dist/components/GlobalMenu/LogoutButton.js +6 -8
  100. package/dist/components/GlobalMenu_old/BackButton.js +3 -2
  101. package/dist/components/GlobalMenu_old/CurrentAccount.js +5 -4
  102. package/dist/components/GlobalMenu_old/GlobalMenu.js +11 -10
  103. package/dist/components/GlobalMenu_old/GlobalMenuButton.js +23 -23
  104. package/dist/components/GlobalMenu_old/LogoutButton.js +6 -8
  105. package/dist/components/Header/Header.js +3 -2
  106. package/dist/components/Header/HeaderBase.js +5 -4
  107. package/dist/components/Header/HeaderButton.js +22 -22
  108. package/dist/components/Header/HeaderLogo.js +13 -17
  109. package/dist/components/Header/LocaleButton.js +17 -17
  110. package/dist/components/Header/LocaleSwitcher.js +8 -7
  111. package/dist/components/Icon/Icon.js +12 -11
  112. package/dist/components/Icon/IconOrAvatar.js +15 -14
  113. package/dist/components/InboxSearch/InboxSearch.js +11 -10
  114. package/dist/components/Layout/Layout.js +11 -10
  115. package/dist/components/LayoutAction/ActionHeader.js +18 -18
  116. package/dist/components/LayoutAction/LayoutAction.js +3 -2
  117. package/dist/components/List/List.js +3 -2
  118. package/dist/components/List/ListBase.js +3 -2
  119. package/dist/components/List/ListItemHeader.js +5 -4
  120. package/dist/components/List/ListItemIcon.js +3 -2
  121. package/dist/components/List/ListItemLabel.js +16 -15
  122. package/dist/components/List/ListItemSelect.js +4 -3
  123. package/dist/components/Menu/MenuItem.js +15 -14
  124. package/dist/components/Menu/MenuItemBase.js +5 -5
  125. package/dist/components/Menu/MenuItemIcon.js +6 -5
  126. package/dist/components/Menu/MenuItemLabel.js +13 -12
  127. package/dist/components/Menu/MenuItems.js +1 -0
  128. package/dist/components/Menu/MenuItemsVirtual.js +26 -25
  129. package/dist/components/Menu/MenuOption.js +17 -16
  130. package/dist/components/Menu/MenuSearch.js +3 -2
  131. package/dist/components/Metadata/MetaItem.js +7 -6
  132. package/dist/components/Metadata/MetaItemIcon.js +3 -2
  133. package/dist/components/Metadata/MetaProgress.js +3 -2
  134. package/dist/components/Metadata/MetaTimestamp.js +7 -6
  135. package/dist/components/Metadata/Metadata.js +8 -7
  136. package/dist/components/Modal/Modal.js +13 -13
  137. package/dist/components/Modal/ModalBase.js +7 -6
  138. package/dist/components/Modal/ModalBody.js +5 -10
  139. package/dist/components/Modal/ModalFooter.js +3 -2
  140. package/dist/components/Modal/ModalHeader.js +26 -36
  141. package/dist/components/Modal/ModalIcon.js +7 -6
  142. package/dist/components/Notifications/NotificationItem.js +6 -5
  143. package/dist/components/Notifications/NotificationItemBase.js +10 -9
  144. package/dist/components/Notifications/NotificationItemControls.js +14 -24
  145. package/dist/components/Notifications/NotificationItemIcon.js +8 -7
  146. package/dist/components/Page/AccordionSection.js +3 -2
  147. package/dist/components/Page/Breadcrumbs.js +7 -6
  148. package/dist/components/Page/ContactButtons.js +11 -6
  149. package/dist/components/Page/ContactSection.js +3 -2
  150. package/dist/components/Page/PageMenu.js +6 -5
  151. package/dist/components/Page/PageNav.js +11 -8
  152. package/dist/components/Page/PageTabs.js +6 -5
  153. package/dist/components/Page/Section.js +27 -7
  154. package/dist/components/ResourceListItem/ResourceListItem.js +3 -2
  155. package/dist/components/RootProvider/RootProvider.js +9 -8
  156. package/dist/components/Search/SearchItem.js +5 -4
  157. package/dist/components/Searchbar/Autocomplete.js +3 -2
  158. package/dist/components/Searchbar/AutocompleteItem.js +11 -10
  159. package/dist/components/Searchbar/Searchbar.js +10 -9
  160. package/dist/components/Searchbar/SearchbarField.js +54 -53
  161. package/dist/components/Settings/BookmarksSettingsList.js +7 -6
  162. package/dist/components/Settings/SettingsItem.js +3 -2
  163. package/dist/components/Settings/SettingsItemBase.js +7 -6
  164. package/dist/components/Settings/SettingsList.js +7 -6
  165. package/dist/components/Settings/SettingsModal.js +33 -26
  166. package/dist/components/Settings/SettingsSection.js +3 -2
  167. package/dist/components/Settings/UsedByLog.js +8 -7
  168. package/dist/components/Settings/UsedByLogItem.js +10 -9
  169. package/dist/components/Snackbar/SnackbarItem.js +13 -22
  170. package/dist/components/Timeline/Timeline.js +3 -2
  171. package/dist/components/Timeline/TimelineActivity.js +3 -2
  172. package/dist/components/Timeline/TimelineBase.js +10 -9
  173. package/dist/components/Timeline/TimelineFooter.js +6 -5
  174. package/dist/components/Timeline/TimelineHeader.js +3 -2
  175. package/dist/components/Timeline/TimelineIcon.js +6 -5
  176. package/dist/components/Timeline/TimelineSection.js +3 -2
  177. package/dist/components/Timeline/TimelineSegment.js +6 -5
  178. package/dist/components/Timeline/index.js +2 -4
  179. package/dist/components/Toolbar/ToolbarAccountMenu.js +18 -17
  180. package/dist/components/Toolbar/ToolbarAdd.js +5 -4
  181. package/dist/components/Toolbar/ToolbarButton.js +94 -88
  182. package/dist/components/Toolbar/ToolbarDaterange.js +3 -2
  183. package/dist/components/Toolbar/ToolbarFilter.js +24 -23
  184. package/dist/components/Toolbar/ToolbarFilterBase.js +8 -8
  185. package/dist/components/Toolbar/ToolbarMenu.js +3 -2
  186. package/dist/components/Toolbar/ToolbarOptions.js +3 -2
  187. package/dist/components/Toolbar/ToolbarSearch.js +7 -6
  188. package/dist/components/Transmission/Transmission.js +8 -7
  189. package/dist/components/Transmission/TransmissionList.js +8 -7
  190. package/dist/components/Transmission/TransmissionType.js +3 -2
  191. package/dist/components/Typography/Heading.js +3 -2
  192. package/dist/components/UserListItem/UserListItem.js +12 -11
  193. package/dist/components/index.js +192 -195
  194. package/dist/hooks/useAccountSelector.js +130 -108
  195. package/dist/{index-Dg71_7ad.js → index-DttADHE1.js} +1 -1
  196. package/dist/index.js +204 -207
  197. package/dist/switch-Cemfhx0H.js +18 -0
  198. package/dist/{textfield-B_OMMEbF.js → textfield-DAuYWtUj.js} +100 -104
  199. package/dist/types/lib/components/Account/AccountListItemDetails.d.ts +5 -1
  200. package/dist/types/lib/components/Button/Button.d.ts +21 -10
  201. package/dist/types/lib/components/Button/Button.stories.d.ts +13 -10
  202. package/dist/types/lib/components/Button/ButtonGroup.d.ts +6 -6
  203. package/dist/types/lib/components/Button/ButtonGroup.stories.d.ts +3 -1
  204. package/dist/types/lib/components/Button/ButtonGroupDivider.d.ts +5 -1
  205. package/dist/types/lib/components/Button/ButtonIcon.d.ts +2 -1
  206. package/dist/types/lib/components/Button/ButtonLabel.d.ts +1 -1
  207. package/dist/types/lib/components/Button/ComboButton.d.ts +6 -15
  208. package/dist/types/lib/components/Button/ComboButton.stories.d.ts +0 -3
  209. package/dist/types/lib/components/Button/FloatingActionButton.d.ts +5 -12
  210. package/dist/types/lib/components/Button/IconButton.d.ts +4 -17
  211. package/dist/types/lib/components/Button/index.d.ts +4 -4
  212. package/dist/types/lib/components/Datepicker/Datepicker.stories.d.ts +6 -0
  213. package/dist/types/lib/components/Dialog/DialogActions.d.ts +1 -0
  214. package/dist/types/lib/components/Dropdown/FloatingDropdown.d.ts +2 -2
  215. package/dist/types/lib/components/GlobalHeader/AccountSector.stories.d.ts +1 -1
  216. package/dist/types/lib/components/GlobalHeader/AccountSelector.d.ts +5 -1
  217. package/dist/types/lib/components/GlobalHeader/HeaderLogo.d.ts +1 -2
  218. package/dist/types/lib/components/Header/HeaderButton.d.ts +0 -2
  219. package/dist/types/lib/components/Header/HeaderLogo.d.ts +1 -1
  220. package/dist/types/lib/components/Menu/MenuItem.d.ts +1 -1
  221. package/dist/types/lib/components/Menu/MenuItemBase.d.ts +2 -2
  222. package/dist/types/lib/components/Modal/ModalBody.d.ts +2 -3
  223. package/dist/types/lib/components/Page/ContactButtons.d.ts +1 -0
  224. package/dist/types/lib/components/Page/Section.d.ts +1 -1
  225. package/dist/types/lib/components/Settings/SettingsModal.d.ts +1 -0
  226. package/dist/types/lib/components/Settings/VerifySettingsModal.stories.d.ts +14 -0
  227. package/dist/types/lib/components/Timeline/index.d.ts +0 -1
  228. package/dist/types/lib/components/Toolbar/ToolbarButton.d.ts +2 -3
  229. package/dist/types/lib/components/Toolbar/ToolbarButton.stories.d.ts +1 -1
  230. package/dist/types/lib/components/Toolbar/ToolbarFilterBase.d.ts +2 -2
  231. package/dist/types/lib/hooks/useAccountSelector.d.ts +5 -1
  232. package/package.json +2 -2
  233. package/dist/assets/ButtonBase.css +0 -1
  234. package/dist/assets/ComboButton.css +0 -1
  235. package/dist/assets/TimelineLink.css +0 -1
  236. package/dist/button-MzZgmHyA.js +0 -23
  237. package/dist/components/Button/ButtonBase.js +0 -41
  238. package/dist/components/Timeline/TimelineLink.js +0 -36
  239. package/dist/heading-C_XYsUfi.js +0 -12
  240. package/dist/spinner-0Qe_jRGB.js +0 -23
  241. package/dist/types/lib/components/Button/ButtonBase.d.ts +0 -26
  242. package/dist/types/lib/components/Button/IconButton.stories.d.ts +0 -7
  243. package/dist/types/lib/components/Timeline/TimelineLink.d.ts +0 -9
@@ -1,13 +1,14 @@
1
1
  import { jsxs as s, jsx as d } from "react/jsx-runtime";
2
2
  import { c as p } from "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
+ import "../Button/Button.js";
4
5
  import "../RootProvider/RootProvider.js";
5
6
  import "../Snackbar/useSnackbar.js";
6
7
  import { Backdrop as m } from "../Dropdown/Backdrop.js";
7
- import '../../assets/GlobalHeaderBase.css';const n = "_header_t9h1f_1", i = "_backdrop_t9h1f_13", r = {
8
- header: n,
9
- backdrop: i
10
- }, x = ({
8
+ import '../../assets/GlobalHeaderBase.css';const i = "_header_t9h1f_1", n = "_backdrop_t9h1f_13", r = {
9
+ header: i,
10
+ backdrop: n
11
+ }, j = ({
11
12
  currentId: o,
12
13
  className: a,
13
14
  children: e,
@@ -18,5 +19,5 @@ import '../../assets/GlobalHeaderBase.css';const n = "_header_t9h1f_1", i = "_ba
18
19
  e
19
20
  ] });
20
21
  export {
21
- x as GlobalHeaderBase
22
+ j as GlobalHeaderBase
22
23
  };
@@ -2,13 +2,14 @@ import { jsx as e, jsxs as S } from "react/jsx-runtime";
2
2
  import { useState as d, useRef as g, useEffect as b } from "react";
3
3
  import "../../index-p1eeF8LQ.js";
4
4
  import { useIsDesktop as k } from "../../hooks/useIsDesktop.js";
5
+ import "../Button/Button.js";
5
6
  import { useRootContext as v } from "../RootProvider/RootProvider.js";
6
7
  import { s as o } from "../../globalSearch.module-DziLSGZg.js";
7
8
  import "../Snackbar/useSnackbar.js";
8
- import { S as r } from "../../index-Dg71_7ad.js";
9
+ import { S as r } from "../../index-DttADHE1.js";
9
10
  import { S as x } from "../../MagnifyingGlass-bwVhw07z.js";
10
- const q = ({ onSearch: t }) => {
11
- const u = k(), [n, i] = d(""), { languageCode: m, closeAll: p, currentId: s } = v(), { search: h, placeholder: c } = y(m), f = () => {
11
+ const w = ({ onSearch: t }) => {
12
+ const i = k(), [n, u] = d(""), { languageCode: m, closeAll: p, currentId: s } = v(), { search: h, placeholder: c } = y(m), f = () => {
12
13
  t(n), p();
13
14
  }, l = g(null);
14
15
  return b(() => {
@@ -19,13 +20,13 @@ const q = ({ onSearch: t }) => {
19
20
  onSubmit: (a) => {
20
21
  a.preventDefault(), f();
21
22
  },
22
- children: /* @__PURE__ */ S(r, { className: o.globalSearch, "data-size": u ? "lg" : "md", children: [
23
+ children: /* @__PURE__ */ S(r, { className: o.globalSearch, "data-size": i ? "lg" : "md", children: [
23
24
  /* @__PURE__ */ e(
24
25
  r.Input,
25
26
  {
26
27
  ref: l,
27
28
  placeholder: c,
28
- onChange: (a) => i(a.target.value),
29
+ onChange: (a) => u(a.target.value),
29
30
  value: n,
30
31
  "aria-label": c,
31
32
  className: o.searchInput
@@ -56,5 +57,5 @@ const q = ({ onSearch: t }) => {
56
57
  }
57
58
  };
58
59
  export {
59
- q as GlobalSearch
60
+ w as GlobalSearch
60
61
  };
@@ -3,14 +3,15 @@ import { jsxs as i, jsx as s } from "react/jsx-runtime";
3
3
  import "../../index-p1eeF8LQ.js";
4
4
  import "react";
5
5
  import { useIsDesktop as l } from "../../hooks/useIsDesktop.js";
6
- import { useRootContext as u } from "../RootProvider/RootProvider.js";
7
- import { s as m } from "../../globalSearch.module-DziLSGZg.js";
6
+ import "../Button/Button.js";
7
+ import { useRootContext as m } from "../RootProvider/RootProvider.js";
8
+ import { s as u } from "../../globalSearch.module-DziLSGZg.js";
8
9
  import "../Snackbar/useSnackbar.js";
9
- import { B as p } from "../../button-MzZgmHyA.js";
10
+ import { B as p } from "../../button-BB5sYVKY.js";
10
11
  import { S as h } from "../../XMark-tKk6aExO.js";
11
12
  import { S as f } from "../../MagnifyingGlass-bwVhw07z.js";
12
- const D = ({ onClick: t, expanded: o, ...a }) => {
13
- const { languageCode: n } = u(), { search: r, close: c } = k(n), e = l();
13
+ const G = ({ onClick: t, expanded: o, ...a }) => {
14
+ const { languageCode: n } = m(), { search: r, close: c } = k(n), e = l();
14
15
  return /* @__PURE__ */ i(
15
16
  p,
16
17
  {
@@ -20,7 +21,7 @@ const D = ({ onClick: t, expanded: o, ...a }) => {
20
21
  title: o ? c : r,
21
22
  onClick: t,
22
23
  "data-color": "neutral",
23
- className: m.searchButton,
24
+ className: u.searchButton,
24
25
  children: [
25
26
  o ? /* @__PURE__ */ s(h, { "aria-hidden": "true" }) : /* @__PURE__ */ s(f, { "aria-hidden": "true" }),
26
27
  e ? r : null
@@ -47,5 +48,5 @@ const D = ({ onClick: t, expanded: o, ...a }) => {
47
48
  }
48
49
  };
49
50
  export {
50
- D as GlobalSearchButton
51
+ G as GlobalSearchButton
51
52
  };
@@ -1,23 +1,20 @@
1
- import { jsxs as n, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
2
  import { c as a } from "../../index-p1eeF8LQ.js";
3
- import { Badge as g } from "../Badge/Badge.js";
4
- import { ButtonBase as l } from "../Button/ButtonBase.js";
5
- import "react";
6
- import { useRootContext as c } from "../RootProvider/RootProvider.js";
7
- import "../Snackbar/useSnackbar.js";
8
- import { DigdirLogomark as p } from "./DigdirLogomark.js";
9
- import '../../assets/HeaderLogo2.css';const f = "_logo_1d6ig_1", d = {
10
- logo: f
11
- }, x = {
3
+ import { Badge as c } from "../Badge/Badge.js";
4
+ import { useRootContext as g } from "../RootProvider/RootProvider.js";
5
+ import { DigdirLogomark as l } from "./DigdirLogomark.js";
6
+ import '../../assets/HeaderLogo2.css';const p = "_logo_1d6ig_1", d = {
7
+ logo: p
8
+ }, f = {
12
9
  nn: "Gå til framsida",
13
10
  en: "Go to homepage"
14
- }, C = ({ className: r, as: m = "a", href: s = "/", badge: o }) => {
15
- const { languageCode: e } = c(), i = x[e ?? ""] ?? "Gå til forsiden";
16
- return /* @__PURE__ */ n(l, { as: m, className: a(d.logo, r), href: s, children: [
17
- /* @__PURE__ */ t(p, { title: i }),
18
- o && /* @__PURE__ */ t(g, { ...o })
11
+ }, G = ({ className: n, as: r = "a", href: e = "/", badge: o }) => {
12
+ const { languageCode: s } = g(), m = f[s ?? ""] ?? "Gå til forsiden";
13
+ return /* @__PURE__ */ i(r, { className: a(d.logo, n), href: e, children: [
14
+ /* @__PURE__ */ t(l, { title: m }),
15
+ o && /* @__PURE__ */ t(c, { ...o })
19
16
  ] });
20
17
  };
21
18
  export {
22
- C as HeaderLogo
19
+ G as HeaderLogo
23
20
  };
@@ -1,11 +1,12 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  import "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
+ import "../Button/Button.js";
4
5
  import "../RootProvider/RootProvider.js";
5
6
  import "../Snackbar/useSnackbar.js";
6
7
  import { MenuItem as i } from "../Menu/MenuItem.js";
7
8
  import { S as p } from "../../ArrowUndo-hge1gMu8.js";
8
- const d = ({ label: o, onClick: r, as: t }) => /* @__PURE__ */ m(i, { size: "sm", id: "back", icon: p, title: o, onClick: r, as: t });
9
+ const k = ({ label: o, onClick: r, as: t }) => /* @__PURE__ */ m(i, { size: "sm", id: "back", icon: p, title: o, onClick: r, as: t });
9
10
  export {
10
- d as BackButton
11
+ k as BackButton
11
12
  };
@@ -2,6 +2,7 @@
2
2
  import { jsxs as l, jsx as o } from "react/jsx-runtime";
3
3
  import { useState as d, useEffect as g, useMemo as L } from "react";
4
4
  import "../../index-p1eeF8LQ.js";
5
+ import "../Button/Button.js";
5
6
  import "../RootProvider/RootProvider.js";
6
7
  import { LocaleSwitcher as b } from "./LocaleSwitcher.js";
7
8
  import "../Snackbar/useSnackbar.js";
@@ -11,21 +12,21 @@ import { BackButton as C } from "./BackButton.js";
11
12
  import { GlobalMenuBase as p, GlobalMenuHeader as G, GlobalMenuFooter as x } from "./GlobalMenuBase.js";
12
13
  import { LocaleButton as j } from "./LocaleButton.js";
13
14
  import { LogoutButton as v } from "./LogoutButton.js";
14
- const J = ({
15
+ const K = ({
15
16
  menu: r,
16
17
  backLabel: u = "Back",
17
18
  onClose: t,
18
19
  logoutButton: a,
19
- ariaLabel: n = "Menu",
20
+ ariaLabel: m = "Menu",
20
21
  localeSwitcher: i,
21
- isOpen: m = !1
22
+ isOpen: n = !1
22
23
  }) => {
23
24
  const [k, c] = d(!1), s = () => {
24
25
  c((e) => !e);
25
26
  };
26
27
  g(() => {
27
- m || c(!1);
28
- }, [m]);
28
+ n || c(!1);
29
+ }, [n]);
29
30
  const M = L(() => (r?.items ?? []).map((e) => ({
30
31
  ...e,
31
32
  onClick: () => {
@@ -38,18 +39,18 @@ const J = ({
38
39
  }
39
40
  })) : void 0
40
41
  })), [r, t]);
41
- return k ? /* @__PURE__ */ l(p, { "aria-label": n, children: [
42
+ return k ? /* @__PURE__ */ l(p, { "aria-label": m, children: [
42
43
  /* @__PURE__ */ l(G, { children: [
43
44
  /* @__PURE__ */ o(C, { onClick: s, label: u }),
44
45
  i && /* @__PURE__ */ o(b, { ...i })
45
46
  ] }),
46
47
  /* @__PURE__ */ o(B, { as: "div", role: "separator" })
47
- ] }) : /* @__PURE__ */ l(p, { "aria-label": n, children: [
48
+ ] }) : /* @__PURE__ */ l(p, { "aria-label": m, children: [
48
49
  r && /* @__PURE__ */ o(h, { ...r, items: M }),
49
50
  i && /* @__PURE__ */ o(j, { onClick: s }),
50
51
  a && /* @__PURE__ */ o(x, { children: /* @__PURE__ */ o(v, { ...a }) })
51
52
  ] });
52
53
  };
53
54
  export {
54
- J as GlobalMenu
55
+ K as GlobalMenu
55
56
  };
@@ -4,9 +4,9 @@ import { c as p } from "../../index-p1eeF8LQ.js";
4
4
  import { Badge as h } from "../Badge/Badge.js";
5
5
  import u, { forwardRef as x } from "react";
6
6
  import { useIsDesktop as M } from "../../hooks/useIsDesktop.js";
7
- import { ButtonBase as g } from "../Button/ButtonBase.js";
8
- import { ButtonLabel as _ } from "../Button/ButtonLabel.js";
7
+ import { Button as g } from "../Button/Button.js";
9
8
  import { ButtonIcon as d } from "../Button/ButtonIcon.js";
9
+ import { ButtonLabel as _ } from "../Button/ButtonLabel.js";
10
10
  import { useRootContext as O } from "../RootProvider/RootProvider.js";
11
11
  import "../Snackbar/useSnackbar.js";
12
12
  import { S as y } from "../../XMark-tKk6aExO.js";
@@ -2,11 +2,12 @@
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import "../../index-p1eeF8LQ.js";
4
4
  import "react";
5
+ import "../Button/Button.js";
5
6
  import "../RootProvider/RootProvider.js";
6
7
  import { MenuItem as r } from "../Menu/MenuItem.js";
7
8
  import "../Snackbar/useSnackbar.js";
8
9
  import { S as m } from "../../Globe-BcPkcH4E.js";
9
- const a = ({ onClick: o }) => /* @__PURE__ */ t(r, { size: "sm", icon: m, title: "Språk/language", onClick: o });
10
+ const c = ({ onClick: o }) => /* @__PURE__ */ t(r, { size: "sm", icon: m, title: "Språk/language", onClick: o });
10
11
  export {
11
- a as LocaleButton
12
+ c as LocaleButton
12
13
  };
@@ -3,11 +3,12 @@ import { jsx as r } from "react/jsx-runtime";
3
3
  import { useRef as p, useMemo as d } from "react";
4
4
  import { useEnterKey as f } from "../../hooks/useEnterKey.js";
5
5
  import "../../index-p1eeF8LQ.js";
6
+ import "../Button/Button.js";
6
7
  import { useRootContext as g } from "../RootProvider/RootProvider.js";
7
8
  import "../Snackbar/useSnackbar.js";
8
9
  import { MenuItems as h } from "../Menu/MenuItems.js";
9
10
  import { S as k } from "../../Checkmark-Byz_C9x4.js";
10
- const C = ({ title: s = "Select language", options: o, onSelect: i }) => {
11
+ const L = ({ title: s = "Select language", options: o, onSelect: i }) => {
11
12
  const n = p(null), { currentId: a, closeAll: c } = g(), l = a === "locale", u = d(() => o.map((e) => ({
12
13
  ...e,
13
14
  id: String(e.value),
@@ -29,5 +30,5 @@ const C = ({ title: s = "Select language", options: o, onSelect: i }) => {
29
30
  }), /* @__PURE__ */ r("div", { ref: n, "data-testid": "locale-switcher", children: /* @__PURE__ */ r(h, { groups: m, items: u, keyboardEvents: !0 }) });
30
31
  };
31
32
  export {
32
- C as LocaleSwitcher
33
+ L as LocaleSwitcher
33
34
  };
@@ -1,14 +1,12 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { ButtonBase as r } from "../Button/ButtonBase.js";
3
- import { ButtonLabel as s } from "../Button/ButtonLabel.js";
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { Button as i } from "../Button/Button.js";
4
3
  import "../../index-p1eeF8LQ.js";
5
4
  import "react";
6
5
  import "../RootProvider/RootProvider.js";
7
6
  import "../Snackbar/useSnackbar.js";
8
- import '../../assets/LogoutButton.css';const i = "_button_1260s_1", a = "_label_1260s_5", o = {
9
- button: i,
10
- label: a
11
- }, B = ({ label: l = "Logout", children: e, onClick: n }) => /* @__PURE__ */ t(r, { className: o.button, variant: "outline", size: "lg", onClick: n, children: /* @__PURE__ */ t(s, { className: o.label, size: "lg", children: e || l }) });
7
+ import '../../assets/LogoutButton.css';const s = "_button_1260s_1", u = {
8
+ button: s
9
+ }, b = ({ label: t = "Logout", children: o, onClick: n }) => /* @__PURE__ */ r(i, { className: u.button, variant: "outline", size: "lg", onClick: n, children: o || t });
12
10
  export {
13
- B as LogoutButton
11
+ b as LogoutButton
14
12
  };
@@ -1,11 +1,12 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  import "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
+ import "../Button/Button.js";
4
5
  import "../RootProvider/RootProvider.js";
5
6
  import "../Snackbar/useSnackbar.js";
6
7
  import { MenuItem as i } from "../Menu/MenuItem.js";
7
8
  import { S as p } from "../../ArrowUndo-hge1gMu8.js";
8
- const d = ({ label: o, onClick: r, as: t }) => /* @__PURE__ */ m(i, { size: "sm", id: "back", icon: p, title: o, onClick: r, as: t });
9
+ const k = ({ label: o, onClick: r, as: t }) => /* @__PURE__ */ m(i, { size: "sm", id: "back", icon: p, title: o, onClick: r, as: t });
9
10
  export {
10
- d as BackButton
11
+ k as BackButton
11
12
  };
@@ -1,17 +1,18 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
+ import "../Button/Button.js";
4
5
  import "../RootProvider/RootProvider.js";
5
6
  import { MenuItem as m } from "../Menu/MenuItem.js";
6
7
  import "../Snackbar/useSnackbar.js";
7
- const f = ({ account: i, multipleAccounts: r, as: e, onClick: t }) => /* @__PURE__ */ o(
8
+ const g = ({ account: i, multipleAccounts: r, as: t, onClick: e }) => /* @__PURE__ */ o(
8
9
  m,
9
10
  {
10
11
  id: "account",
11
12
  size: "lg",
12
13
  interactive: !!r,
13
- as: r ? e : "div",
14
- onClick: t,
14
+ as: r ? t : "div",
15
+ onClick: e,
15
16
  linkIcon: r,
16
17
  icon: i?.icon,
17
18
  title: { children: i?.name, size: "sm", weight: "medium" },
@@ -19,5 +20,5 @@ const f = ({ account: i, multipleAccounts: r, as: e, onClick: t }) => /* @__PURE
19
20
  }
20
21
  );
21
22
  export {
22
- f as CurrentAccount
23
+ g as CurrentAccount
23
24
  };
@@ -3,6 +3,7 @@ import { jsxs as c, jsx as r, Fragment as C } from "react/jsx-runtime";
3
3
  import { useState as G, useMemo as S } from "react";
4
4
  import "../../index-p1eeF8LQ.js";
5
5
  import { AccountMenu as x } from "../Account/AccountMenu.js";
6
+ import "../Button/Button.js";
6
7
  import "../RootProvider/RootProvider.js";
7
8
  import { CurrentAccount as y } from "./CurrentAccount.js";
8
9
  import { BackButton as j } from "./BackButton.js";
@@ -11,7 +12,7 @@ import { MenuListItem as h } from "../Menu/MenuBase.js";
11
12
  import { Menu as k } from "../Menu/Menu.js";
12
13
  import "../Snackbar/useSnackbar.js";
13
14
  import { GlobalMenuBase as a, GlobalMenuHeader as B, GlobalMenuFooter as b } from "./GlobalMenuBase.js";
14
- const K = ({
15
+ const L = ({
15
16
  accountMenu: t,
16
17
  menu: i,
17
18
  backLabel: g = "Back",
@@ -19,12 +20,12 @@ const K = ({
19
20
  onSelectAccount: A,
20
21
  onClose: l,
21
22
  logoutButton: s,
22
- ariaLabel: n = "Menu"
23
+ ariaLabel: m = "Menu"
23
24
  }) => {
24
- const [M, v] = G(!1), m = () => {
25
+ const [M, v] = G(!1), n = () => {
25
26
  v((o) => !o);
26
27
  }, u = (o) => {
27
- m(), l?.(), A?.(o);
28
+ n(), l?.(), A?.(o);
28
29
  }, p = S(() => (i?.items ?? []).map((o) => ({
29
30
  ...o,
30
31
  onClick: () => {
@@ -38,14 +39,14 @@ const K = ({
38
39
  })) : void 0
39
40
  })), [i, l]);
40
41
  if (M)
41
- return /* @__PURE__ */ c(a, { "aria-label": n, children: [
42
- /* @__PURE__ */ r(B, { children: /* @__PURE__ */ r(j, { onClick: m, label: g }) }),
42
+ return /* @__PURE__ */ c(a, { "aria-label": m, children: [
43
+ /* @__PURE__ */ r(B, { children: /* @__PURE__ */ r(j, { onClick: n, label: g }) }),
43
44
  /* @__PURE__ */ r(h, { as: "div", role: "separator" }),
44
45
  t && /* @__PURE__ */ r(x, { ...t, currentAccount: e, onSelectAccount: u })
45
46
  ] });
46
47
  if (e) {
47
48
  const o = t && t?.items?.length > 1;
48
- return /* @__PURE__ */ c(a, { "aria-label": n, color: e?.type, children: [
49
+ return /* @__PURE__ */ c(a, { "aria-label": m, color: e?.type, children: [
49
50
  e && /* @__PURE__ */ c(C, { children: [
50
51
  /* @__PURE__ */ r(
51
52
  y,
@@ -53,7 +54,7 @@ const K = ({
53
54
  account: e,
54
55
  multipleAccounts: o,
55
56
  as: o ? "button" : "div",
56
- onClick: o ? m : void 0
57
+ onClick: o ? n : void 0
57
58
  }
58
59
  ),
59
60
  /* @__PURE__ */ r(h, { as: "div", role: "separator" })
@@ -62,11 +63,11 @@ const K = ({
62
63
  s && /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(f, { ...s }) })
63
64
  ] });
64
65
  }
65
- return /* @__PURE__ */ c(a, { "aria-label": n, children: [
66
+ return /* @__PURE__ */ c(a, { "aria-label": m, children: [
66
67
  i && /* @__PURE__ */ r(k, { ...i, items: p }),
67
68
  s && /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(f, { ...s }) })
68
69
  ] });
69
70
  };
70
71
  export {
71
- K as GlobalMenu_old
72
+ L as GlobalMenu_old
72
73
  };
@@ -1,16 +1,16 @@
1
- import { jsxs as m, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
2
  import { c as l } from "../../index-p1eeF8LQ.js";
3
3
  import { Badge as _ } from "../Badge/Badge.js";
4
4
  import "react";
5
5
  import { Avatar as f } from "../Avatar/Avatar.js";
6
- import { ButtonBase as u } from "../Button/ButtonBase.js";
7
- import { ButtonLabel as I } from "../Button/ButtonLabel.js";
8
- import { ButtonIcon as h } from "../Button/ButtonIcon.js";
6
+ import { Button as u } from "../Button/Button.js";
7
+ import { ButtonIcon as I } from "../Button/ButtonIcon.js";
8
+ import { ButtonLabel as h } from "../Button/ButtonLabel.js";
9
9
  import "../RootProvider/RootProvider.js";
10
10
  import "../Snackbar/useSnackbar.js";
11
11
  import { S as N } from "../../XMark-tKk6aExO.js";
12
12
  import { S as g } from "../../PadlockLocked-XL1IB5Ae.js";
13
- import '../../assets/GlobalMenuButton.css';const v = "_button_1uh95_1", b = "_avatarIcon_1uh95_19", B = "_loginIcon_1uh95_20", x = "_closeIcon_1uh95_21", S = "_avatar_1uh95_19", k = "_icon_1uh95_44", L = "_badge_1uh95_50", a = {
13
+ import '../../assets/GlobalMenuButton.css';const v = "_button_1uh95_1", b = "_avatarIcon_1uh95_19", B = "_loginIcon_1uh95_20", x = "_closeIcon_1uh95_21", S = "_avatar_1uh95_19", k = "_icon_1uh95_44", L = "_badge_1uh95_50", n = {
14
14
  button: v,
15
15
  avatarIcon: b,
16
16
  loginIcon: B,
@@ -26,32 +26,32 @@ import '../../assets/GlobalMenuButton.css';const v = "_button_1uh95_1", b = "_av
26
26
  currentAccount: d,
27
27
  expanded: p,
28
28
  label: i = "Menu",
29
- badge: n,
30
- ...e
31
- }) => p ? /* @__PURE__ */ m(u, { ...e, as: t, variant: r, color: s, className: l(a.button, c), children: [
32
- /* @__PURE__ */ o(I, { children: i }),
33
- /* @__PURE__ */ o(h, { className: a.closeIcon, icon: /* @__PURE__ */ o(N, { className: a.icon, "aria-label": "Close Icon" }) }),
34
- n && /* @__PURE__ */ o(_, { ...n, className: a.badge })
35
- ] }) : d ? /* @__PURE__ */ m(u, { ...e, as: t, variant: r, color: s, className: l(a.button, c), children: [
36
- /* @__PURE__ */ o(I, { children: i }),
29
+ badge: a,
30
+ ...m
31
+ }) => p ? /* @__PURE__ */ e(u, { ...m, as: t, variant: r, color: s, className: l(n.button, c), children: [
32
+ /* @__PURE__ */ o(h, { children: i }),
33
+ /* @__PURE__ */ o(I, { className: n.closeIcon, icon: /* @__PURE__ */ o(N, { className: n.icon, "aria-label": "Close Icon" }) }),
34
+ a && /* @__PURE__ */ o(_, { ...a, className: n.badge })
35
+ ] }) : d ? /* @__PURE__ */ e(u, { ...m, as: t, variant: r, color: s, className: l(n.button, c), children: [
36
+ /* @__PURE__ */ o(h, { children: i }),
37
37
  /* @__PURE__ */ o(
38
- h,
38
+ I,
39
39
  {
40
- className: a.avatarIcon,
41
- icon: /* @__PURE__ */ o(f, { ...d?.icon, className: a.avatar })
40
+ className: n.avatarIcon,
41
+ icon: /* @__PURE__ */ o(f, { ...d?.icon, className: n.avatar })
42
42
  }
43
43
  ),
44
- n && /* @__PURE__ */ o(_, { ...n, className: a.badge })
45
- ] }) : /* @__PURE__ */ m(u, { ...e, as: t, variant: r, color: s, className: l(a.button, c), children: [
46
- /* @__PURE__ */ o(I, { children: i }),
44
+ a && /* @__PURE__ */ o(_, { ...a, className: n.badge })
45
+ ] }) : /* @__PURE__ */ e(u, { ...m, as: t, variant: r, color: s, className: l(n.button, c), children: [
46
+ /* @__PURE__ */ o(h, { children: i }),
47
47
  /* @__PURE__ */ o(
48
- h,
48
+ I,
49
49
  {
50
- className: a.loginIcon,
51
- icon: /* @__PURE__ */ o(g, { className: a.icon, "aria-label": "Login Icon" })
50
+ className: n.loginIcon,
51
+ icon: /* @__PURE__ */ o(g, { className: n.icon, "aria-label": "Login Icon" })
52
52
  }
53
53
  ),
54
- n && /* @__PURE__ */ o(_, { ...n, className: a.badge })
54
+ a && /* @__PURE__ */ o(_, { ...a, className: n.badge })
55
55
  ] });
56
56
  export {
57
57
  F as GlobalMenuButton_old
@@ -1,14 +1,12 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { ButtonBase as r } from "../Button/ButtonBase.js";
3
- import { ButtonLabel as s } from "../Button/ButtonLabel.js";
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { Button as i } from "../Button/Button.js";
4
3
  import "../../index-p1eeF8LQ.js";
5
4
  import "react";
6
5
  import "../RootProvider/RootProvider.js";
7
6
  import "../Snackbar/useSnackbar.js";
8
- import '../../assets/LogoutButton.css';const i = "_button_1260s_1", a = "_label_1260s_5", o = {
9
- button: i,
10
- label: a
11
- }, B = ({ label: l = "Logout", children: e, onClick: n }) => /* @__PURE__ */ t(r, { className: o.button, variant: "outline", size: "lg", onClick: n, children: /* @__PURE__ */ t(s, { className: o.label, size: "lg", children: e || l }) });
7
+ import '../../assets/LogoutButton.css';const s = "_button_1260s_1", u = {
8
+ button: s
9
+ }, b = ({ label: t = "Logout", children: o, onClick: n }) => /* @__PURE__ */ r(i, { className: u.button, variant: "outline", size: "lg", onClick: n, children: o || t });
12
10
  export {
13
- B as LogoutButton
11
+ b as LogoutButton
14
12
  };
@@ -3,6 +3,7 @@ import { jsxs as d, jsx as o } from "react/jsx-runtime";
3
3
  import "../../index-p1eeF8LQ.js";
4
4
  import "react";
5
5
  import { useIsDesktop as H } from "../../hooks/useIsDesktop.js";
6
+ import "../Button/Button.js";
6
7
  import { useRootContext as S } from "../RootProvider/RootProvider.js";
7
8
  import { DropdownBase as k } from "../Dropdown/DropdownBase.js";
8
9
  import { DrawerBase as B } from "../Dropdown/DrawerBase.js";
@@ -19,7 +20,7 @@ import '../../assets/Header.css';const N = "_drawer_afyu3_1", g = "_dropdown_afy
19
20
  drawer: N,
20
21
  dropdown: g,
21
22
  relative: j
22
- }, $ = ({
23
+ }, b = ({
23
24
  globalMenu: r,
24
25
  desktopMenu: w,
25
26
  mobileMenu: _,
@@ -94,5 +95,5 @@ import '../../assets/Header.css';const N = "_drawer_afyu3_1", g = "_dropdown_afy
94
95
  );
95
96
  };
96
97
  export {
97
- $ as Header
98
+ b as Header
98
99
  };
@@ -1,16 +1,17 @@
1
- import { jsxs as s, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as t, jsx as s } from "react/jsx-runtime";
2
2
  import { c as p } from "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
+ import "../Button/Button.js";
4
5
  import "../RootProvider/RootProvider.js";
5
6
  import { Backdrop as m } from "../Dropdown/Backdrop.js";
6
7
  import "../Snackbar/useSnackbar.js";
7
8
  import '../../assets/HeaderBase.css';const i = "_header_dg4o1_1", n = "_backdrop_dg4o1_17", r = {
8
9
  header: i,
9
10
  backdrop: n
10
- }, f = ({ currentId: o, className: e, children: a, open: c, onClose: d }) => /* @__PURE__ */ s("header", { className: p(r.header, e), "data-current-id": o, children: [
11
- c && /* @__PURE__ */ t(m, { className: r.backdrop, onClick: d }),
11
+ }, g = ({ currentId: o, className: e, children: a, open: c, onClose: d }) => /* @__PURE__ */ t("header", { className: p(r.header, e), "data-current-id": o, children: [
12
+ c && /* @__PURE__ */ s(m, { className: r.backdrop, onClick: d }),
12
13
  a
13
14
  ] });
14
15
  export {
15
- f as HeaderBase
16
+ g as HeaderBase
16
17
  };
@@ -1,23 +1,23 @@
1
- import { jsxs as i, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
2
  import { c } from "../../index-p1eeF8LQ.js";
3
3
  import { Avatar as b } from "../Avatar/Avatar.js";
4
4
  import { AvatarGroup as g } from "../Avatar/AvatarGroup.js";
5
5
  import { Badge as p } from "../Badge/Badge.js";
6
- import { ButtonBase as _ } from "../Button/ButtonBase.js";
6
+ import { Button as _ } from "../Button/Button.js";
7
7
  import "react";
8
8
  import { Icon as f } from "../Icon/Icon.js";
9
9
  import "../RootProvider/RootProvider.js";
10
10
  import "../Snackbar/useSnackbar.js";
11
11
  import { S as I } from "../../XMark-tKk6aExO.js";
12
12
  import { S as q } from "../../PadlockLocked-XL1IB5Ae.js";
13
- import '../../assets/HeaderButton.css';const y = "_button_1p2eq_1", S = "_label_1p2eq_12", v = "_icon_1p2eq_18", x = "_avatarGroup_1p2eq_28", B = "_loginIcon_1p2eq_37", G = "_closeIcon_1p2eq_42", k = "_badge_1p2eq_46", e = {
13
+ import '../../assets/HeaderButton.css';const y = "_button_1p2eq_1", S = "_label_1p2eq_12", v = "_icon_1p2eq_18", x = "_avatarGroup_1p2eq_28", G = "_loginIcon_1p2eq_37", k = "_closeIcon_1p2eq_42", B = "_badge_1p2eq_46", o = {
14
14
  button: y,
15
15
  label: S,
16
16
  icon: v,
17
17
  avatarGroup: x,
18
- loginIcon: B,
19
- closeIcon: G,
20
- badge: k
18
+ loginIcon: G,
19
+ closeIcon: k,
20
+ badge: B
21
21
  }, J = ({
22
22
  className: s,
23
23
  as: t = "button",
@@ -30,22 +30,22 @@ import '../../assets/HeaderButton.css';const y = "_button_1p2eq_1", S = "_label_
30
30
  label: r = "Menu",
31
31
  badge: n,
32
32
  ...m
33
- }) => h ? /* @__PURE__ */ i(_, { ...m, as: t, variant: l, color: a, className: c(e.button, s), children: [
34
- /* @__PURE__ */ o("span", { className: e.label, children: r }),
35
- /* @__PURE__ */ o("span", { className: c(e.icon, e.closeIcon), children: /* @__PURE__ */ o(f, { svgElement: I }) }),
36
- n && /* @__PURE__ */ o(p, { ...n, className: e.badge })
37
- ] }) : d ? /* @__PURE__ */ i(_, { ...m, as: t, variant: l, color: a, className: c(e.button, s), children: [
38
- /* @__PURE__ */ o("span", { className: e.label, children: r }),
39
- /* @__PURE__ */ o(g, { ...d, className: e.avatarGroup }),
40
- n && /* @__PURE__ */ o(p, { ...n, className: e.badge })
41
- ] }) : u ? /* @__PURE__ */ i(_, { ...m, as: t, variant: l, color: a, className: c(e.button, s), children: [
42
- /* @__PURE__ */ o("span", { className: e.label, children: r }),
43
- /* @__PURE__ */ o(b, { type: u?.type, name: u?.name, style: { fontSize: "2.25rem" } }),
44
- n && /* @__PURE__ */ o(p, { ...n, className: e.badge })
45
- ] }) : /* @__PURE__ */ i(_, { ...m, as: t, variant: l, color: a, className: c(e.button, s), children: [
46
- /* @__PURE__ */ o("span", { className: e.label, children: r }),
47
- /* @__PURE__ */ o("span", { className: c(e.icon, e.loginIcon), children: /* @__PURE__ */ o(f, { svgElement: N }) }),
48
- n && /* @__PURE__ */ o(p, { ...n, className: e.badge })
33
+ }) => h ? /* @__PURE__ */ i(_, { ...m, as: t, variant: l, color: a, className: c(o.button, s), children: [
34
+ /* @__PURE__ */ e("span", { className: o.label, children: r }),
35
+ /* @__PURE__ */ e("span", { className: c(o.icon, o.closeIcon), children: /* @__PURE__ */ e(f, { svgElement: I }) }),
36
+ n && /* @__PURE__ */ e(p, { ...n, className: o.badge })
37
+ ] }) : d ? /* @__PURE__ */ i(_, { ...m, as: t, variant: l, color: a, className: c(o.button, s), children: [
38
+ /* @__PURE__ */ e("span", { className: o.label, children: r }),
39
+ /* @__PURE__ */ e(g, { ...d, className: o.avatarGroup }),
40
+ n && /* @__PURE__ */ e(p, { ...n, className: o.badge })
41
+ ] }) : u ? /* @__PURE__ */ i(_, { ...m, as: t, variant: l, color: a, className: c(o.button, s), children: [
42
+ /* @__PURE__ */ e("span", { className: o.label, children: r }),
43
+ /* @__PURE__ */ e(b, { type: u?.type, name: u?.name, style: { fontSize: "2.25rem" } }),
44
+ n && /* @__PURE__ */ e(p, { ...n, className: o.badge })
45
+ ] }) : /* @__PURE__ */ i(_, { ...m, as: t, variant: l, color: a, className: c(o.button, s), children: [
46
+ /* @__PURE__ */ e("span", { className: o.label, children: r }),
47
+ /* @__PURE__ */ e("span", { className: c(o.icon, o.loginIcon), children: /* @__PURE__ */ e(f, { svgElement: N }) }),
48
+ n && /* @__PURE__ */ e(p, { ...n, className: o.badge })
49
49
  ] });
50
50
  export {
51
51
  J as HeaderButton