@altinn/altinn-components 0.7.3 → 0.7.5

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 (78) hide show
  1. package/dist/Autocomplete-hEFuiN2u.js +287 -0
  2. package/dist/assets/Autocomplete.css +1 -0
  3. package/dist/assets/GlobalMenuBase.css +1 -1
  4. package/dist/assets/Header.css +1 -1
  5. package/dist/assets/LayoutBase.css +1 -1
  6. package/dist/components/Bookmarks/BookmarksList.js +1 -1
  7. package/dist/components/Bookmarks/BookmarksListItem.js +4 -5
  8. package/dist/components/Bookmarks/BookmarksListItem.stories.js +7 -7
  9. package/dist/components/Bookmarks/index.js +4 -4
  10. package/dist/components/Button/Buttons.stories.js +5 -4
  11. package/dist/components/ContextMenu/ContextMenu.js +4 -27
  12. package/dist/components/ContextMenu/ContextMenu.stories.js +3 -3
  13. package/dist/components/ContextMenu/ContextMenuBase.js +6 -32
  14. package/dist/components/ContextMenu/index.js +1 -1
  15. package/dist/components/Dialog/DialogActions.js +3 -2
  16. package/dist/components/Dialog/DialogGroup.js +3 -2
  17. package/dist/components/Dialog/DialogList.js +1 -1
  18. package/dist/components/Dialog/DialogListItem.js +13 -87
  19. package/dist/components/Dialog/DialogListItem.stories.js +1 -1
  20. package/dist/components/Dialog/DialogNav.js +11 -11
  21. package/dist/components/Dialog/Examples.stories.js +1 -1
  22. package/dist/components/Dialog/index.js +1 -1
  23. package/dist/components/Dropdown/DrawerButton.js +5 -4
  24. package/dist/components/Dropdown/DrawerOrDropdown.js +7 -6
  25. package/dist/components/GlobalMenu/AccountButton.js +3 -2
  26. package/dist/components/GlobalMenu/AccountMenu.d.ts +5 -2
  27. package/dist/components/GlobalMenu/AccountMenu.js +35 -26
  28. package/dist/components/GlobalMenu/AccountMenu.stories.js +19 -2
  29. package/dist/components/GlobalMenu/BackButton.js +3 -2
  30. package/dist/components/GlobalMenu/GlobalMenu.js +3 -2
  31. package/dist/components/GlobalMenu/GlobalMenu.stories.js +6 -12
  32. package/dist/components/GlobalMenu/GlobalMenuBase.js +9 -9
  33. package/dist/components/Header/Header.js +13 -13
  34. package/dist/components/Header/HeaderBase.js +5 -4
  35. package/dist/components/Layout/Layout.js +9 -8
  36. package/dist/components/Layout/Layout.stories.js +140 -49
  37. package/dist/components/Layout/LayoutBase.js +3 -3
  38. package/dist/components/LayoutAction/ActionMenu.js +5 -4
  39. package/dist/components/List/List.js +3 -3
  40. package/dist/components/List/List.stories.js +5 -4
  41. package/dist/components/List/ListItem.js +6 -39
  42. package/dist/components/List/ListItem.stories.js +1 -1
  43. package/dist/components/List/ListItemControls.js +5 -15
  44. package/dist/components/List/index.js +12 -13
  45. package/dist/components/Menu/Menu.js +9 -9
  46. package/dist/components/Menu/MenuItem.stories.js +21 -20
  47. package/dist/components/Menu/MenuItems.js +8 -59
  48. package/dist/components/Menu/MenuItems.stories.js +1 -1
  49. package/dist/components/Menu/MenuSearch.js +6 -5
  50. package/dist/components/Menu/index.js +7 -7
  51. package/dist/components/Page/PageHeader.js +8 -7
  52. package/dist/components/Searchbar/Autocomplete.d.ts +1 -2
  53. package/dist/components/Searchbar/Autocomplete.js +7 -23
  54. package/dist/components/Searchbar/Autocomplete.stories.js +1 -1
  55. package/dist/components/Searchbar/AutocompleteBase.d.ts +2 -1
  56. package/dist/components/Searchbar/AutocompleteBase.js +9 -6
  57. package/dist/components/Searchbar/AutocompleteItem.js +3 -20
  58. package/dist/components/Searchbar/ScopeListItem.d.ts +2 -2
  59. package/dist/components/Searchbar/ScopeListItem.js +3 -6
  60. package/dist/components/Searchbar/SearchField.js +39 -39
  61. package/dist/components/Searchbar/Searchbar.d.ts +1 -1
  62. package/dist/components/Searchbar/Searchbar.js +25 -17
  63. package/dist/components/Searchbar/Searchbar.stories.js +63 -47
  64. package/dist/components/Toolbar/ToolbarAdd.js +3 -2
  65. package/dist/components/Toolbar/ToolbarDaterange.js +3 -2
  66. package/dist/components/Toolbar/ToolbarFilter.js +3 -2
  67. package/dist/components/Toolbar/ToolbarMenu.js +3 -2
  68. package/dist/components/Toolbar/ToolbarOptions.js +13 -12
  69. package/dist/components/Toolbar/ToolbarSearch.js +16 -15
  70. package/dist/components/index.js +213 -218
  71. package/dist/hooks/useEnterKey.d.ts +1 -0
  72. package/dist/hooks/useEnterKey.js +15 -0
  73. package/dist/index.js +226 -231
  74. package/package.json +1 -1
  75. package/dist/assets/ContextMenuBase.css +0 -1
  76. package/dist/assets/DialogListItem.css +0 -1
  77. package/dist/assets/ListItemControls.css +0 -1
  78. package/dist/assets/ScopeListItem.css +0 -1
@@ -1,15 +1,15 @@
1
- import { jsx as n, jsxs as u, Fragment as I } from "react/jsx-runtime";
2
- import { useState as g, createElement as y } from "react";
1
+ import { jsx as o, jsxs as p, Fragment as y } from "react/jsx-runtime";
2
+ import { useState as h, createElement as I } from "react";
3
3
  import "../../index-L8X2o7IH.js";
4
4
  import "../Icon/SvgIcon.js";
5
5
  import "../RootProvider/RootProvider.js";
6
- import { DialogListItem as A } from "../Dialog/DialogListItem.js";
7
- import { ListBase as v } from "../List/ListBase.js";
6
+ import { D as A } from "../../Autocomplete-hEFuiN2u.js";
8
7
  import { Layout as k } from "./Layout.js";
9
- import { ActionHeader as w } from "../LayoutAction/ActionHeader.js";
10
- import { ActionFooter as C } from "../LayoutAction/ActionFooter.js";
8
+ import { ActionHeader as S } from "../LayoutAction/ActionHeader.js";
9
+ import { ActionFooter as v } from "../LayoutAction/ActionFooter.js";
11
10
  import { ActionMenu as L } from "../LayoutAction/ActionMenu.js";
12
- import { Snackbar as M } from "../Snackbar/Snackbar.js";
11
+ import { ListBase as w } from "../List/ListBase.js";
12
+ import { Snackbar as B } from "../Snackbar/Snackbar.js";
13
13
  const m = {
14
14
  search: {
15
15
  name: "search",
@@ -21,15 +21,104 @@ const m = {
21
21
  name: "Aurora Mikalsen"
22
22
  },
23
23
  menu: {
24
+ logoutButton: {
25
+ label: "Logg ut"
26
+ },
27
+ items: [
28
+ {
29
+ id: "1",
30
+ icon: "airplane",
31
+ size: "lg",
32
+ title: "Section 1"
33
+ },
34
+ {
35
+ id: "2",
36
+ icon: "briefcase",
37
+ size: "lg",
38
+ title: "Section 2"
39
+ },
40
+ {
41
+ id: "3",
42
+ size: "lg",
43
+ title: "Section 3",
44
+ icon: "camera"
45
+ }
46
+ ],
47
+ accountSearch: {
48
+ name: "account-search",
49
+ placeholder: "Søk etter konto"
50
+ },
51
+ accountGroups: {
52
+ primary: {
53
+ title: "Deg selv og favoritter"
54
+ },
55
+ secondary: {
56
+ title: "Andre kontoer"
57
+ }
58
+ },
24
59
  accounts: [
25
60
  {
26
- id: "party:aurora",
61
+ id: "aurora",
62
+ groupId: "primary",
27
63
  type: "person",
28
- name: "Aurora Mikalsen"
64
+ name: "Aurora Mikalsen",
65
+ selected: !0,
66
+ badge: {
67
+ label: "2"
68
+ }
69
+ },
70
+ {
71
+ id: "bergen-bar",
72
+ groupId: "favourites",
73
+ type: "company",
74
+ name: "Bergen Bar",
75
+ selected: !1,
76
+ badge: {
77
+ label: "19"
78
+ }
79
+ },
80
+ {
81
+ id: "allAccounts",
82
+ groupId: "groups",
83
+ type: "company",
84
+ name: "Alle virksomheter",
85
+ accountNames: ["Keeperhansker AS", "Stadion drift AS", "Landslaget"],
86
+ selected: !1,
87
+ badge: {
88
+ label: "19"
89
+ }
90
+ },
91
+ {
92
+ id: "keeper",
93
+ groupId: "secondary",
94
+ type: "company",
95
+ name: "Keeperhansker AS",
96
+ selected: !1
97
+ },
98
+ {
99
+ id: "stadion-drift",
100
+ groupId: "secondary",
101
+ type: "company",
102
+ name: "Stadion drift AS",
103
+ selected: !1
104
+ },
105
+ {
106
+ id: "sk-brann",
107
+ groupId: "favourites",
108
+ type: "company",
109
+ name: "Sportsklubben Brann",
110
+ selected: !1
111
+ },
112
+ {
113
+ id: "norge",
114
+ groupId: "secondary",
115
+ type: "company",
116
+ name: "Landslaget",
117
+ selected: !1
29
118
  }
30
119
  ]
31
120
  }
32
- }, x = {
121
+ }, C = {
33
122
  address: "Postboks 1382 Vika, 0114 Oslo.",
34
123
  address2: "Org.nr. 991 825 827",
35
124
  menu: {
@@ -100,7 +189,7 @@ const m = {
100
189
  title: "Papirkurv"
101
190
  }
102
191
  ]
103
- }, Q = {
192
+ }, G = {
104
193
  title: "Layout/Layout",
105
194
  component: k,
106
195
  tags: ["autodocs"],
@@ -110,32 +199,34 @@ const m = {
110
199
  args: {
111
200
  theme: "person",
112
201
  header: m,
113
- footer: x,
202
+ footer: C,
114
203
  sidebar: {
115
204
  menu: f
116
205
  }
117
206
  }
118
- }, U = {
207
+ }, H = {
119
208
  args: {}
120
- }, V = (a) => {
121
- const [r, s] = g(""), h = (t) => {
209
+ }, N = (l) => {
210
+ const [r, s] = h(""), u = (t) => {
122
211
  s(t.target.value);
123
- }, p = [
212
+ }, g = [
124
213
  {
214
+ type: "scope",
125
215
  groupId: "1",
126
216
  id: "inbox",
127
217
  href: "#",
128
- label: r ? () => /* @__PURE__ */ u("span", { children: [
129
- /* @__PURE__ */ n("mark", { children: r }),
218
+ label: r ? () => /* @__PURE__ */ p("span", { children: [
219
+ /* @__PURE__ */ o("mark", { children: r }),
130
220
  " i innboksen"
131
221
  ] }) : "Alt i innboksen"
132
222
  },
133
223
  {
224
+ type: "scope",
134
225
  groupId: "1",
135
226
  id: "global",
136
227
  href: "#",
137
- label: r ? () => /* @__PURE__ */ u("span", { children: [
138
- /* @__PURE__ */ n("mark", { children: r }),
228
+ label: r ? () => /* @__PURE__ */ p("span", { children: [
229
+ /* @__PURE__ */ o("mark", { children: r }),
139
230
  " i hele Altinn"
140
231
  ] }) : "Alt i hele Altinn"
141
232
  }
@@ -143,39 +234,39 @@ const m = {
143
234
  {
144
235
  groupId: "2",
145
236
  href: "http://www.altinn.no",
146
- label: "Skattemelding 2024"
237
+ description: "Skattemelding 2024"
147
238
  },
148
239
  {
149
240
  groupId: "2",
150
241
  href: "http://www.altinn.no",
151
- label: "Skattemelding 2025"
242
+ description: "Skattemelding 2025"
152
243
  }
153
- ].filter((t) => t.label.toLowerCase().includes((r ?? "").toLowerCase())) : [], d = {
244
+ ].filter((t) => t.description.toLowerCase().includes((r ?? "").toLowerCase())) : [], d = {
154
245
  groups: {
155
246
  2: {
156
247
  title: `${c.length} treff i innboksen`
157
248
  }
158
249
  },
159
- items: [...p, ...c]
250
+ items: [...g, ...c]
160
251
  };
161
- return /* @__PURE__ */ n(
252
+ return /* @__PURE__ */ o(
162
253
  k,
163
254
  {
164
- ...a,
255
+ ...l,
165
256
  header: {
166
- ...a.header,
257
+ ...l.header,
167
258
  search: {
168
- ...a.header.search,
259
+ ...l.header.search,
169
260
  value: r,
170
- onChange: h,
261
+ onChange: u,
171
262
  onClear: () => s(""),
172
263
  autocomplete: d
173
264
  }
174
265
  }
175
266
  }
176
267
  );
177
- }, $ = (a) => {
178
- const [r, s] = g([]), [h, p] = g({
268
+ }, Q = (l) => {
269
+ const [r, s] = h([]), [u, g] = h({
179
270
  1: {
180
271
  id: "1",
181
272
  title: "Item 1",
@@ -215,31 +306,31 @@ const m = {
215
306
  ].map((e) => ({
216
307
  ...e,
217
308
  as: "button",
218
- onClick: () => s((o) => [
219
- ...o,
309
+ onClick: () => s((n) => [
310
+ ...n,
220
311
  {
221
312
  message: "Snack me"
222
313
  }
223
314
  ])
224
315
  })), d = ({ id: e }) => {
225
- p((o) => ({
226
- ...o,
316
+ g((n) => ({
317
+ ...n,
227
318
  [e]: {
228
- ...o[e],
229
- selected: !o[e].selected
319
+ ...n[e],
320
+ selected: !n[e].selected
230
321
  }
231
322
  }));
232
- }, t = Object.values(h), l = t == null ? void 0 : t.filter((e) => e.selected), i = (l == null ? void 0 : l.length) > 0, b = (l == null ? void 0 : l.length) + " av " + (t == null ? void 0 : t.length) + " valgt";
233
- return /* @__PURE__ */ u(
323
+ }, t = Object.values(u), a = t == null ? void 0 : t.filter((e) => e.selected), i = (a == null ? void 0 : a.length) > 0, b = (a == null ? void 0 : a.length) + " av " + (t == null ? void 0 : t.length) + " valgt";
324
+ return /* @__PURE__ */ p(
234
325
  k,
235
326
  {
236
327
  theme: i ? "neutral" : "company",
237
- header: { ...m, search: i ? null : m.search },
328
+ header: { ...m, search: i ? void 0 : m.search },
238
329
  sidebar: { hidden: i, menu: f },
239
330
  content: { theme: "neutral" },
240
331
  children: [
241
- /* @__PURE__ */ n(w, { title: b, hidden: !i }),
242
- /* @__PURE__ */ n(v, { children: t == null ? void 0 : t.map((e) => /* @__PURE__ */ y(
332
+ /* @__PURE__ */ o(S, { title: b, hidden: !i }),
333
+ /* @__PURE__ */ o(w, { children: t == null ? void 0 : t.map((e) => /* @__PURE__ */ I(
243
334
  A,
244
335
  {
245
336
  ...e,
@@ -250,17 +341,17 @@ const m = {
250
341
  select: { checked: e == null ? void 0 : e.selected, onChange: () => d(e) }
251
342
  }
252
343
  )) }),
253
- /* @__PURE__ */ n(C, { hidden: !1, children: /* @__PURE__ */ u(I, { children: [
254
- i && /* @__PURE__ */ n(L, { items: c, theme: "global-dark" }),
255
- r.length > 0 && (r == null ? void 0 : r.map((e, o) => /* @__PURE__ */ n(M, { ...e }, o)))
344
+ /* @__PURE__ */ o(v, { hidden: !1, children: /* @__PURE__ */ p(y, { children: [
345
+ i && /* @__PURE__ */ o(L, { items: c, theme: "global-dark" }),
346
+ r.length > 0 && (r == null ? void 0 : r.map((e, n) => /* @__PURE__ */ o(B, { ...e }, n)))
256
347
  ] }) })
257
348
  ]
258
349
  }
259
350
  );
260
351
  };
261
352
  export {
262
- V as ControlledStateSearch,
263
- U as Default,
264
- $ as InboxBulkMode,
265
- Q as default
353
+ N as ControlledStateSearch,
354
+ H as Default,
355
+ Q as InboxBulkMode,
356
+ G as default
266
357
  };
@@ -1,7 +1,7 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import '../../assets/LayoutBase.css';const o = "_base_1401f_1", r = {
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import '../../assets/LayoutBase.css';const o = "_base_wqztk_1", r = {
3
3
  base: o
4
- }, n = ({ currentId: s, theme: a, children: e }) => /* @__PURE__ */ t("div", { className: r.base, "data-theme": a, "data-current-id": s, children: e });
4
+ }, n = ({ currentId: s, theme: t, children: a }) => /* @__PURE__ */ e("div", { className: r.base, "data-theme": t, "data-current-id": s, children: a });
5
5
  export {
6
6
  n as LayoutBase
7
7
  };
@@ -2,13 +2,14 @@ import { jsx as t } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "../Icon/SvgIcon.js";
4
4
  import "react";
5
- import { MenuItem as n } from "../Menu/MenuItem.js";
5
+ import { MenuItem as o } from "../Menu/MenuItem.js";
6
6
  import "../RootProvider/RootProvider.js";
7
- import { MenuBase as o } from "../Menu/MenuBase.js";
7
+ import "../../Autocomplete-hEFuiN2u.js";
8
+ import { MenuBase as n } from "../Menu/MenuBase.js";
8
9
  import '../../assets/ActionMenu.css';const s = "_menu_12gbo_1", l = "_list_12gbo_14", e = {
9
10
  menu: s,
10
11
  list: l
11
- }, f = ({ theme: m = "inherit", items: r = [] }) => /* @__PURE__ */ t(o, { theme: m, className: e.menu, children: /* @__PURE__ */ t("ul", { className: e.list, children: r.map((i) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(n, { ...i, className: e.item }) }, i.id)) }) });
12
+ }, M = ({ theme: m = "inherit", items: r = [] }) => /* @__PURE__ */ t(n, { theme: m, className: e.menu, children: /* @__PURE__ */ t("ul", { className: e.list, children: r.map((i) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(o, { ...i, className: e.item }) }, i.id)) }) });
12
13
  export {
13
- f as ActionMenu
14
+ M as ActionMenu
14
15
  };
@@ -3,9 +3,9 @@ import { createElement as s } from "react";
3
3
  import "../../index-L8X2o7IH.js";
4
4
  import "../Icon/SvgIcon.js";
5
5
  import "../RootProvider/RootProvider.js";
6
- import { ListItem as n } from "./ListItem.js";
7
- import { ListBase as f } from "./ListBase.js";
8
- const h = ({ theme: r, size: t = "md", spacing: m = "md", items: o = [] }) => /* @__PURE__ */ p(f, { theme: r, spacing: m, children: o.map((e, i) => /* @__PURE__ */ s(n, { ...e, size: t, key: "item" + i })) });
6
+ import { a } from "../../Autocomplete-hEFuiN2u.js";
7
+ import { ListBase as n } from "./ListBase.js";
8
+ const h = ({ theme: r, size: t = "md", spacing: m = "md", items: o = [] }) => /* @__PURE__ */ p(n, { theme: r, spacing: m, children: o.map((e, i) => /* @__PURE__ */ s(a, { ...e, size: t, key: "item" + i })) });
9
9
  export {
10
10
  h as List
11
11
  };
@@ -3,8 +3,9 @@ import "../../index-L8X2o7IH.js";
3
3
  import "../Icon/SvgIcon.js";
4
4
  import "react";
5
5
  import "../RootProvider/RootProvider.js";
6
+ import "../../Autocomplete-hEFuiN2u.js";
6
7
  import { List as t } from "./List.js";
7
- const m = {
8
+ const a = {
8
9
  title: "List/List",
9
10
  component: t,
10
11
  tags: ["autodocs"],
@@ -31,10 +32,10 @@ const m = {
31
32
  }
32
33
  ]
33
34
  }
34
- }, a = {
35
+ }, c = {
35
36
  args: {}
36
37
  };
37
38
  export {
38
- a as Default,
39
- m as default
39
+ c as Default,
40
+ a as default
40
41
  };
@@ -1,41 +1,8 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { ListItemBase as v } from "./ListItemBase.js";
3
- import { ListItemControls as x } from "./ListItemControls.js";
4
- import { ListItemHeader as j } from "./ListItemHeader.js";
5
- import { ListItemLabel as w } from "./ListItemLabel.js";
6
- const D = ({
7
- as: e = "a",
8
- color: n,
9
- loading: o,
10
- size: r = "sm",
11
- icon: i,
12
- avatar: c,
13
- avatarGroup: p,
14
- title: s,
15
- description: I,
16
- collapsible: m,
17
- expanded: L,
18
- badge: a,
19
- linkText: f,
20
- linkIcon: l,
21
- menu: h,
22
- select: k,
23
- controls: b,
24
- children: d,
25
- ...u
26
- }) => /* @__PURE__ */ t(
27
- v,
28
- {
29
- as: e,
30
- size: r,
31
- color: n,
32
- loading: o,
33
- select: k,
34
- controls: b || /* @__PURE__ */ t(x, { linkIcon: m && L ? "chevron-up" : m ? "chevron-down" : l, linkText: f, menu: h, badge: a }),
35
- ...u,
36
- children: /* @__PURE__ */ t(j, { loading: o, size: r, icon: i, avatar: c, avatarGroup: p, children: /* @__PURE__ */ t(w, { loading: o, title: s, description: I, size: r, children: d }) })
37
- }
38
- );
1
+ import "react/jsx-runtime";
2
+ import "./ListItemBase.js";
3
+ import { a } from "../../Autocomplete-hEFuiN2u.js";
4
+ import "./ListItemHeader.js";
5
+ import "./ListItemLabel.js";
39
6
  export {
40
- D as ListItem
7
+ a as ListItem
41
8
  };
@@ -5,7 +5,7 @@ import "../Icon/SvgIcon.js";
5
5
  import { Button as b } from "../Button/Button.js";
6
6
  import "../RootProvider/RootProvider.js";
7
7
  import { MetaItem as r } from "../Meta/MetaItem.js";
8
- import { ListItem as t } from "./ListItem.js";
8
+ import { a as t } from "../../Autocomplete-hEFuiN2u.js";
9
9
  import { ListBase as d } from "./ListBase.js";
10
10
  import { List as k } from "./List.js";
11
11
  const l = ["lg", "md", "sm", "xs"], T = {
@@ -1,19 +1,9 @@
1
- import { jsx as t, jsxs as l, Fragment as m } from "react/jsx-runtime";
2
- import { Badge as i } from "../Badge/Badge.js";
3
- import { ContextMenu as a } from "../ContextMenu/ContextMenu.js";
4
- import { Icon as d } from "../Icon/Icon.js";
1
+ import "react/jsx-runtime";
2
+ import "../Badge/Badge.js";
3
+ import { L as e } from "../../Autocomplete-hEFuiN2u.js";
4
+ import "../Icon/Icon.js";
5
5
  import "../Icon/SvgIcon.js";
6
6
  import "../../index-L8X2o7IH.js";
7
- import '../../assets/ListItemControls.css';const _ = "_controls_dduzt_1", p = "_linkText_dduzt_14", x = "_linkIcon_dduzt_19", o = {
8
- controls: _,
9
- linkText: p,
10
- linkIcon: x
11
- }, T = ({ badge: s, linkText: r, linkIcon: c, menu: n, children: e }) => /* @__PURE__ */ t("div", { className: o.controls, "data-menu": n && !0, children: e || /* @__PURE__ */ l(m, { children: [
12
- s && /* @__PURE__ */ t(i, { ...s }),
13
- r && /* @__PURE__ */ t("span", { className: o.linkText, children: r }),
14
- c && /* @__PURE__ */ t(d, { name: c, className: o.linkIcon }),
15
- n && /* @__PURE__ */ t(a, { ...n, className: o.menu })
16
- ] }) });
17
7
  export {
18
- T as ListItemControls
8
+ e as ListItemControls
19
9
  };
@@ -1,20 +1,19 @@
1
1
  import { ListItemBase as o } from "./ListItemBase.js";
2
2
  import { ListItemHeader as m } from "./ListItemHeader.js";
3
- import { ListItemLabel as i } from "./ListItemLabel.js";
4
- import { ListItemMedia as f } from "./ListItemMedia.js";
5
- import { ListItemControls as x } from "./ListItemControls.js";
6
- import { ListItemSelect as a } from "./ListItemSelect.js";
7
- import { ListItem as d } from "./ListItem.js";
8
- import { ListBase as b } from "./ListBase.js";
9
- import { List as n } from "./List.js";
3
+ import { ListItemLabel as L } from "./ListItemLabel.js";
4
+ import { ListItemMedia as a } from "./ListItemMedia.js";
5
+ import { a as p, L as x } from "../../Autocomplete-hEFuiN2u.js";
6
+ import { ListItemSelect as l } from "./ListItemSelect.js";
7
+ import { ListBase as B } from "./ListBase.js";
8
+ import { List as c } from "./List.js";
10
9
  export {
11
- n as List,
12
- b as ListBase,
13
- d as ListItem,
10
+ c as List,
11
+ B as ListBase,
12
+ p as ListItem,
14
13
  o as ListItemBase,
15
14
  x as ListItemControls,
16
15
  m as ListItemHeader,
17
- i as ListItemLabel,
18
- f as ListItemMedia,
19
- a as ListItemSelect
16
+ L as ListItemLabel,
17
+ a as ListItemMedia,
18
+ l as ListItemSelect
20
19
  };
@@ -1,18 +1,18 @@
1
- import { jsxs as s, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
2
  import { MenuBase as u } from "./MenuBase.js";
3
- import { MenuItems as p } from "./MenuItems.js";
4
- import { MenuSearch as f } from "./MenuSearch.js";
5
- const j = ({
3
+ import { M as p } from "../../Autocomplete-hEFuiN2u.js";
4
+ import { MenuSearch as M } from "./MenuSearch.js";
5
+ const h = ({
6
6
  theme: m = "inherit",
7
7
  defaultItemColor: o = "subtle",
8
8
  defaultItemSize: t = "sm",
9
9
  groups: n,
10
- items: i = [],
10
+ items: s = [],
11
11
  search: r
12
- }) => /* @__PURE__ */ s(u, { theme: m, children: [
13
- r && /* @__PURE__ */ e(f, { ...r }),
14
- /* @__PURE__ */ e(p, { items: i, groups: n, defaultItemColor: o, defaultItemSize: t })
12
+ }) => /* @__PURE__ */ i(u, { theme: m, children: [
13
+ r && /* @__PURE__ */ e(M, { ...r }),
14
+ /* @__PURE__ */ e(p, { items: s, groups: n, defaultItemColor: o, defaultItemSize: t })
15
15
  ] });
16
16
  export {
17
- j as Menu
17
+ h as Menu
18
18
  };
@@ -8,7 +8,8 @@ import "../RootProvider/RootProvider.js";
8
8
  import { MetaItem as p } from "../Meta/MetaItem.js";
9
9
  import { MenuItem as o } from "./MenuItem.js";
10
10
  import { MenuBase as m } from "./MenuBase.js";
11
- const v = {
11
+ import "../../Autocomplete-hEFuiN2u.js";
12
+ const I = {
12
13
  title: "Menu/MenuItem",
13
14
  component: o,
14
15
  tags: ["autodocs"],
@@ -17,12 +18,12 @@ const v = {
17
18
  id: "inbox",
18
19
  onClick: i()
19
20
  }
20
- }, I = {
21
+ }, A = {
21
22
  args: {
22
23
  icon: "inbox",
23
24
  title: "Innboks"
24
25
  }
25
- }, A = {
26
+ }, C = {
26
27
  args: {
27
28
  icon: "inbox",
28
29
  title: "Innboks",
@@ -30,14 +31,14 @@ const v = {
30
31
  label: "4"
31
32
  }
32
33
  }
33
- }, C = {
34
+ }, G = {
34
35
  args: {
35
36
  size: "lg",
36
37
  icon: "inbox",
37
38
  title: "Innboks",
38
39
  color: "strong"
39
40
  }
40
- }, G = {
41
+ }, M = {
41
42
  args: {
42
43
  size: "lg",
43
44
  icon: "inbox",
@@ -56,7 +57,7 @@ const v = {
56
57
  },
57
58
  title: "Eirik Horneland"
58
59
  }
59
- }, M = {
60
+ }, z = {
60
61
  args: {
61
62
  avatarGroup: {
62
63
  items: [
@@ -84,7 +85,7 @@ const v = {
84
85
  },
85
86
  title: "Sportsklubben Brann"
86
87
  }
87
- }, z = {
88
+ }, H = {
88
89
  args: {
89
90
  avatarGroup: {
90
91
  defaultType: "company",
@@ -102,19 +103,19 @@ const v = {
102
103
  },
103
104
  title: "3 virksomheter"
104
105
  }
105
- }, H = {
106
+ }, S = {
106
107
  args: {
107
108
  ...c.args,
108
109
  size: "lg",
109
110
  description: "Født: XX.XX.XXXX"
110
111
  }
111
- }, S = {
112
+ }, E = {
112
113
  args: {
113
114
  ...g.args,
114
115
  size: "lg",
115
116
  description: "Org nr.: XX.XX.XXXX"
116
117
  }
117
- }, E = () => {
118
+ }, L = () => {
118
119
  const t = ["global", "neutral", "company", "person", "global-dark"], a = ["neutral", "subtle", "strong", "company", "person"];
119
120
  return /* @__PURE__ */ n("div", { style: { display: "flex", width: "100%" }, children: t.map((e) => /* @__PURE__ */ n("div", { style: { flexGrow: 1 }, children: /* @__PURE__ */ n(l, { theme: e, children: /* @__PURE__ */ n(m, { children: a.map((r) => /* @__PURE__ */ s("div", { children: [
120
121
  /* @__PURE__ */ n(o, { icon: "inbox", title: "Title", color: r, id: "inbox" }),
@@ -122,16 +123,16 @@ const v = {
122
123
  ] }, r)) }) }) }, e)) });
123
124
  };
124
125
  export {
125
- G as AlertBadge,
126
+ M as AlertBadge,
126
127
  g as Company,
127
- S as CompanyAccount,
128
- z as CompanyGroup,
129
- I as Default,
130
- A as DefaultBadge,
131
- C as Large,
128
+ E as CompanyAccount,
129
+ H as CompanyGroup,
130
+ A as Default,
131
+ C as DefaultBadge,
132
+ G as Large,
132
133
  c as Person,
133
- H as PersonAccount,
134
- M as PersonGroup,
135
- E as ThemesAndColors,
136
- v as default
134
+ S as PersonAccount,
135
+ z as PersonGroup,
136
+ L as ThemesAndColors,
137
+ I as default
137
138
  };